lucent-ui 0.11.0 → 0.13.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
@@ -126,7 +126,7 @@ export declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElem
126
126
  bordered?: boolean;
127
127
  }
128
128
 
129
- export declare type ButtonSize = 'sm' | 'md' | 'lg';
129
+ export declare type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
130
130
 
131
131
  export declare type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
132
132
 
@@ -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;
172
+ }
173
+
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;
168
198
  }
169
199
 
170
- export declare type CheckboxSize = 'sm' | 'md';
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, style, }: DatePickerProps): JSX_2.Element;
459
+ export declare function DatePicker({ value: controlledValue, defaultValue, onChange, placeholder, disabled, min, max, size, style, }: DatePickerProps): JSX_2.Element;
428
460
 
429
461
  export declare interface DatePickerProps {
430
462
  value?: Date;
@@ -434,15 +466,18 @@ export declare interface DatePickerProps {
434
466
  disabled?: boolean;
435
467
  min?: Date;
436
468
  max?: Date;
469
+ size?: DatePickerSize;
437
470
  style?: CSSProperties;
438
471
  }
439
472
 
473
+ declare type DatePickerSize = 'sm' | 'md' | 'lg';
474
+
440
475
  export declare interface DateRange {
441
476
  start: Date;
442
477
  end: Date;
443
478
  }
444
479
 
445
- export declare function DateRangePicker({ value: controlledValue, defaultValue, onChange, placeholder, disabled, min, max, style, }: DateRangePickerProps): JSX_2.Element;
480
+ export declare function DateRangePicker({ value: controlledValue, defaultValue, onChange, placeholder, disabled, min, max, size, style, }: DateRangePickerProps): JSX_2.Element;
446
481
 
447
482
  export declare interface DateRangePickerProps {
448
483
  value?: DateRange;
@@ -452,9 +487,12 @@ export declare interface DateRangePickerProps {
452
487
  disabled?: boolean;
453
488
  min?: Date;
454
489
  max?: Date;
490
+ size?: DateRangePickerSize;
455
491
  style?: CSSProperties;
456
492
  }
457
493
 
494
+ declare type DateRangePickerSize = 'sm' | 'md' | 'lg';
495
+
458
496
  export declare const defaultDensity: DensityPreset;
459
497
 
460
498
  export declare const defaultPalette: ColorPalette;
@@ -716,7 +754,7 @@ declare interface MotionTokens {
716
754
 
717
755
  export declare const MULTI_SELECT_MANIFEST: ComponentManifest;
718
756
 
719
- export declare function MultiSelect({ options, value: controlledValue, defaultValue, onChange, placeholder, disabled, max, style, }: MultiSelectProps): JSX_2.Element;
757
+ export declare function MultiSelect({ options, value: controlledValue, defaultValue, onChange, placeholder, disabled, max, size, label, helperText, errorText, style, }: MultiSelectProps): JSX_2.Element;
720
758
 
721
759
  export declare interface MultiSelectOption {
722
760
  value: string;
@@ -733,9 +771,15 @@ export declare interface MultiSelectProps {
733
771
  disabled?: boolean;
734
772
  /** Max number of items that can be selected. No limit by default. */
735
773
  max?: number;
774
+ size?: MultiSelectSize;
775
+ label?: string;
776
+ helperText?: string;
777
+ errorText?: string;
736
778
  style?: CSSProperties;
737
779
  }
738
780
 
781
+ declare type MultiSelectSize = 'sm' | 'md' | 'lg';
782
+
739
783
  export declare function NavLink({ children, href, isActive, icon, disabled, onClick, as, style, }: NavLinkProps): JSX_2.Element;
740
784
 
741
785
  export declare interface NavLinkProps {
@@ -811,7 +855,7 @@ export declare interface PropDescriptor {
811
855
 
812
856
  export declare type PropType = 'string' | 'number' | 'boolean' | 'ReactNode' | 'function' | 'enum' | 'object' | 'array' | 'ref' | string;
813
857
 
814
- export declare function Radio({ value, label, size, disabled, id, onChange, checked, ...rest }: RadioProps): JSX_2.Element;
858
+ export declare function Radio({ value, label, size, contained, helperText, disabled, id, onChange, checked, style, ...rest }: RadioProps): JSX_2.Element;
815
859
 
816
860
  export declare function RadioGroup({ name, value, onChange, disabled, orientation, label, children, }: RadioGroupProps): JSX_2.Element;
817
861
 
@@ -840,9 +884,13 @@ export declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputEl
840
884
  value: string;
841
885
  label?: string;
842
886
  size?: RadioSize;
887
+ /** Wraps the radio in a bordered container with padding. */
888
+ contained?: boolean;
889
+ /** Helper text displayed below the label. */
890
+ helperText?: string;
843
891
  }
844
892
 
845
- export declare type RadioSize = 'sm' | 'md';
893
+ export declare type RadioSize = 'sm' | 'md' | 'lg';
846
894
 
847
895
  declare interface RadiusTokens {
848
896
  radiusNone: string;
@@ -864,7 +912,7 @@ export declare const rosePalette: ColorPalette;
864
912
 
865
913
  export declare const roundedShape: ShapePreset;
866
914
 
867
- export declare function SearchInput({ value, onChange, placeholder, size, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
915
+ export declare function SearchInput({ value, onChange, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
868
916
 
869
917
  export declare const SearchInputManifest: ComponentManifest;
870
918
 
@@ -873,6 +921,9 @@ export declare interface SearchInputProps {
873
921
  onChange: (value: string) => void;
874
922
  placeholder?: string;
875
923
  size?: InputSize;
924
+ label?: string;
925
+ helperText?: string;
926
+ errorText?: string;
876
927
  results?: SearchResult[];
877
928
  onResultSelect?: (result: SearchResult) => void;
878
929
  isLoading?: boolean;
@@ -1122,7 +1173,7 @@ export declare interface TagProps {
1122
1173
  disabled?: boolean;
1123
1174
  }
1124
1175
 
1125
- export declare type TagSize = 'sm' | 'md';
1176
+ export declare type TagSize = 'sm' | 'md' | 'lg';
1126
1177
 
1127
1178
  export declare type TagVariant = 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
1128
1179
 
@@ -1142,8 +1193,11 @@ export declare interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAr
1142
1193
  autoResize?: boolean;
1143
1194
  maxLength?: number;
1144
1195
  showCount?: boolean;
1196
+ size?: TextareaSize;
1145
1197
  }
1146
1198
 
1199
+ declare type TextareaSize = 'sm' | 'md' | 'lg';
1200
+
1147
1201
  export declare type TextAs = 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div' | 'label' | 'strong' | 'em' | 'code';
1148
1202
 
1149
1203
  export declare type TextColor = 'primary' | 'secondary' | 'disabled' | 'inverse' | 'onAccent' | 'success' | 'warning' | 'danger' | 'info';
@@ -1238,7 +1292,7 @@ export declare interface TimelineProps {
1238
1292
  style?: CSSProperties;
1239
1293
  }
1240
1294
 
1241
- export declare function Toggle({ label, size, checked, defaultChecked, disabled, id, onChange, style, ...rest }: ToggleProps): JSX_2.Element;
1295
+ export declare function Toggle({ label, size, checked, defaultChecked, contained, helperText, align, disabled, id, onChange, style, ...rest }: ToggleProps): JSX_2.Element;
1242
1296
 
1243
1297
  export declare const ToggleManifest: ComponentManifest;
1244
1298
 
@@ -1247,6 +1301,12 @@ export declare interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputE
1247
1301
  size?: ToggleSize;
1248
1302
  checked?: boolean;
1249
1303
  defaultChecked?: boolean;
1304
+ /** Wraps the toggle in a bordered container with padding. */
1305
+ contained?: boolean;
1306
+ /** Helper text displayed below the label. */
1307
+ helperText?: string;
1308
+ /** Position of the toggle track relative to the label. */
1309
+ align?: 'left' | 'right';
1250
1310
  }
1251
1311
 
1252
1312
  export declare type ToggleSize = 'sm' | 'md' | 'lg';