Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/raystack/components/filter-chip/filter-chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const FilterChip = ({
value={filterValue}
onSelect={date => handleFilterValueChange(date)}
showCalendarIcon={false}
inputProps={{ className: styles.dateField }}
inputProps={{ classNames: { container: styles.dateField } }}
/>
</div>
);
Expand All @@ -148,7 +148,7 @@ export const FilterChip = ({
<div className={styles.inputFieldWrapper}>
<Input
variant={variant === 'text' ? 'borderless' : 'default'}
className={styles.inputField}
classNames={{ container: styles.inputField }}
value={filterValue}
onChange={e => handleFilterValueChange(e.target.value)}
/>
Expand Down
5 changes: 4 additions & 1 deletion packages/raystack/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface InputProps
maxChipsVisible?: number;
variant?: 'default' | 'borderless';
containerRef?: RefObject<HTMLDivElement | null>;
classNames?: { container?: string };
}

export function Input({
Expand All @@ -51,6 +52,7 @@ export function Input({
size,
variant = 'default',
containerRef,
classNames,
required,
...props
}: InputProps) {
Expand All @@ -61,7 +63,8 @@ export function Input({
<div
className={cx(
inputWrapper({ size, variant }),
chips?.length && styles['has-chips']
chips?.length && styles['has-chips'],
classNames?.container
)}
data-disabled={disabled || undefined}
style={{ width: width || '100%' }}
Expand Down
Loading