lucent-ui 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -165,9 +165,41 @@ export declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInpu
165
165
  label?: string;
166
166
  size?: CheckboxSize;
167
167
  indeterminate?: boolean;
168
+ /** Wraps the checkbox in a bordered container with padding. */
169
+ contained?: boolean;
170
+ /** Helper text displayed below the label. */
171
+ helperText?: string;
168
172
  }
169
173
 
170
- export declare type CheckboxSize = 'sm' | 'md';
174
+ export declare type CheckboxSize = 'sm' | 'md' | 'lg';
175
+
176
+ export declare function Chip({ children, variant, size, onDismiss, onClick, leftIcon, swatch, dot, borderless, disabled, style, }: ChipProps): JSX_2.Element;
177
+
178
+ export declare const CHIP_MANIFEST: ComponentManifest;
179
+
180
+ export declare interface ChipProps {
181
+ children: ReactNode;
182
+ variant?: ChipVariant;
183
+ size?: ChipSize;
184
+ /** Renders an × button. Fires when clicked. */
185
+ onDismiss?: () => void;
186
+ /** Makes the chip clickable (renders as button). */
187
+ onClick?: () => void;
188
+ /** Icon or element rendered before the label. */
189
+ leftIcon?: ReactNode;
190
+ /** Color swatch dot rendered before the label. */
191
+ swatch?: string;
192
+ /** Status dot rendered before the label (uses variant color). */
193
+ dot?: boolean;
194
+ /** Removes the border for a filled-only look. */
195
+ borderless?: boolean;
196
+ disabled?: boolean;
197
+ style?: CSSProperties;
198
+ }
199
+
200
+ export declare type ChipSize = 'sm' | 'md' | 'lg';
201
+
202
+ export declare type ChipVariant = 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
171
203
 
172
204
  export declare function CodeBlock({ code, language, tabs, variant, helperText, showCopyButton, style, }: CodeBlockProps): JSX_2.Element;
173
205
 
@@ -424,7 +456,7 @@ export declare const DATE_PICKER_MANIFEST: ComponentManifest;
424
456
 
425
457
  export declare const DATE_RANGE_PICKER_MANIFEST: ComponentManifest;
426
458
 
427
- export declare function DatePicker({ value: controlledValue, defaultValue, onChange, placeholder, disabled, min, max, size, style, }: DatePickerProps): JSX_2.Element;
459
+ export declare function DatePicker({ value: controlledValue, defaultValue, onChange, placeholder, disabled, min, max, size, label, helperText, errorText, style, }: DatePickerProps): JSX_2.Element;
428
460
 
429
461
  export declare interface DatePickerProps {
430
462
  value?: Date;
@@ -435,6 +467,9 @@ export declare interface DatePickerProps {
435
467
  min?: Date;
436
468
  max?: Date;
437
469
  size?: DatePickerSize;
470
+ label?: string;
471
+ helperText?: string;
472
+ errorText?: string;
438
473
  style?: CSSProperties;
439
474
  }
440
475
 
@@ -445,7 +480,7 @@ export declare interface DateRange {
445
480
  end: Date;
446
481
  }
447
482
 
448
- export declare function DateRangePicker({ value: controlledValue, defaultValue, onChange, placeholder, disabled, min, max, size, style, }: DateRangePickerProps): JSX_2.Element;
483
+ export declare function DateRangePicker({ value: controlledValue, defaultValue, onChange, placeholder, disabled, min, max, size, label, helperText, errorText, style, }: DateRangePickerProps): JSX_2.Element;
449
484
 
450
485
  export declare interface DateRangePickerProps {
451
486
  value?: DateRange;
@@ -456,6 +491,9 @@ export declare interface DateRangePickerProps {
456
491
  min?: Date;
457
492
  max?: Date;
458
493
  size?: DateRangePickerSize;
494
+ label?: string;
495
+ helperText?: string;
496
+ errorText?: string;
459
497
  style?: CSSProperties;
460
498
  }
461
499
 
@@ -722,7 +760,7 @@ declare interface MotionTokens {
722
760
 
723
761
  export declare const MULTI_SELECT_MANIFEST: ComponentManifest;
724
762
 
725
- export declare function MultiSelect({ options, value: controlledValue, defaultValue, onChange, placeholder, disabled, max, size, style, }: MultiSelectProps): JSX_2.Element;
763
+ export declare function MultiSelect({ options, value: controlledValue, defaultValue, onChange, placeholder, disabled, max, size, label, helperText, errorText, style, }: MultiSelectProps): JSX_2.Element;
726
764
 
727
765
  export declare interface MultiSelectOption {
728
766
  value: string;
@@ -740,6 +778,9 @@ export declare interface MultiSelectProps {
740
778
  /** Max number of items that can be selected. No limit by default. */
741
779
  max?: number;
742
780
  size?: MultiSelectSize;
781
+ label?: string;
782
+ helperText?: string;
783
+ errorText?: string;
743
784
  style?: CSSProperties;
744
785
  }
745
786
 
@@ -820,7 +861,7 @@ export declare interface PropDescriptor {
820
861
 
821
862
  export declare type PropType = 'string' | 'number' | 'boolean' | 'ReactNode' | 'function' | 'enum' | 'object' | 'array' | 'ref' | string;
822
863
 
823
- export declare function Radio({ value, label, size, disabled, id, onChange, checked, ...rest }: RadioProps): JSX_2.Element;
864
+ export declare function Radio({ value, label, size, contained, helperText, disabled, id, onChange, checked, style, ...rest }: RadioProps): JSX_2.Element;
824
865
 
825
866
  export declare function RadioGroup({ name, value, onChange, disabled, orientation, label, children, }: RadioGroupProps): JSX_2.Element;
826
867
 
@@ -849,9 +890,13 @@ export declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputEl
849
890
  value: string;
850
891
  label?: string;
851
892
  size?: RadioSize;
893
+ /** Wraps the radio in a bordered container with padding. */
894
+ contained?: boolean;
895
+ /** Helper text displayed below the label. */
896
+ helperText?: string;
852
897
  }
853
898
 
854
- export declare type RadioSize = 'sm' | 'md';
899
+ export declare type RadioSize = 'sm' | 'md' | 'lg';
855
900
 
856
901
  declare interface RadiusTokens {
857
902
  radiusNone: string;
@@ -873,7 +918,7 @@ export declare const rosePalette: ColorPalette;
873
918
 
874
919
  export declare const roundedShape: ShapePreset;
875
920
 
876
- export declare function SearchInput({ value, onChange, placeholder, size, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
921
+ export declare function SearchInput({ value, onChange, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
877
922
 
878
923
  export declare const SearchInputManifest: ComponentManifest;
879
924
 
@@ -882,6 +927,9 @@ export declare interface SearchInputProps {
882
927
  onChange: (value: string) => void;
883
928
  placeholder?: string;
884
929
  size?: InputSize;
930
+ label?: string;
931
+ helperText?: string;
932
+ errorText?: string;
885
933
  results?: SearchResult[];
886
934
  onResultSelect?: (result: SearchResult) => void;
887
935
  isLoading?: boolean;
@@ -1151,8 +1199,11 @@ export declare interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAr
1151
1199
  autoResize?: boolean;
1152
1200
  maxLength?: number;
1153
1201
  showCount?: boolean;
1202
+ size?: TextareaSize;
1154
1203
  }
1155
1204
 
1205
+ declare type TextareaSize = 'sm' | 'md' | 'lg';
1206
+
1156
1207
  export declare type TextAs = 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div' | 'label' | 'strong' | 'em' | 'code';
1157
1208
 
1158
1209
  export declare type TextColor = 'primary' | 'secondary' | 'disabled' | 'inverse' | 'onAccent' | 'success' | 'warning' | 'danger' | 'info';
@@ -1247,7 +1298,7 @@ export declare interface TimelineProps {
1247
1298
  style?: CSSProperties;
1248
1299
  }
1249
1300
 
1250
- export declare function Toggle({ label, size, checked, defaultChecked, disabled, id, onChange, style, ...rest }: ToggleProps): JSX_2.Element;
1301
+ export declare function Toggle({ label, size, checked, defaultChecked, contained, helperText, align, disabled, id, onChange, style, ...rest }: ToggleProps): JSX_2.Element;
1251
1302
 
1252
1303
  export declare const ToggleManifest: ComponentManifest;
1253
1304
 
@@ -1256,6 +1307,12 @@ export declare interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputE
1256
1307
  size?: ToggleSize;
1257
1308
  checked?: boolean;
1258
1309
  defaultChecked?: boolean;
1310
+ /** Wraps the toggle in a bordered container with padding. */
1311
+ contained?: boolean;
1312
+ /** Helper text displayed below the label. */
1313
+ helperText?: string;
1314
+ /** Position of the toggle track relative to the label. */
1315
+ align?: 'left' | 'right';
1259
1316
  }
1260
1317
 
1261
1318
  export declare type ToggleSize = 'sm' | 'md' | 'lg';