lucent-ui 0.12.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
@@ -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
 
@@ -722,7 +754,7 @@ declare interface MotionTokens {
722
754
 
723
755
  export declare const MULTI_SELECT_MANIFEST: ComponentManifest;
724
756
 
725
- export declare function MultiSelect({ options, value: controlledValue, defaultValue, onChange, placeholder, disabled, max, size, 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;
726
758
 
727
759
  export declare interface MultiSelectOption {
728
760
  value: string;
@@ -740,6 +772,9 @@ export declare interface MultiSelectProps {
740
772
  /** Max number of items that can be selected. No limit by default. */
741
773
  max?: number;
742
774
  size?: MultiSelectSize;
775
+ label?: string;
776
+ helperText?: string;
777
+ errorText?: string;
743
778
  style?: CSSProperties;
744
779
  }
745
780
 
@@ -820,7 +855,7 @@ export declare interface PropDescriptor {
820
855
 
821
856
  export declare type PropType = 'string' | 'number' | 'boolean' | 'ReactNode' | 'function' | 'enum' | 'object' | 'array' | 'ref' | string;
822
857
 
823
- 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;
824
859
 
825
860
  export declare function RadioGroup({ name, value, onChange, disabled, orientation, label, children, }: RadioGroupProps): JSX_2.Element;
826
861
 
@@ -849,9 +884,13 @@ export declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputEl
849
884
  value: string;
850
885
  label?: string;
851
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;
852
891
  }
853
892
 
854
- export declare type RadioSize = 'sm' | 'md';
893
+ export declare type RadioSize = 'sm' | 'md' | 'lg';
855
894
 
856
895
  declare interface RadiusTokens {
857
896
  radiusNone: string;
@@ -873,7 +912,7 @@ export declare const rosePalette: ColorPalette;
873
912
 
874
913
  export declare const roundedShape: ShapePreset;
875
914
 
876
- 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;
877
916
 
878
917
  export declare const SearchInputManifest: ComponentManifest;
879
918
 
@@ -882,6 +921,9 @@ export declare interface SearchInputProps {
882
921
  onChange: (value: string) => void;
883
922
  placeholder?: string;
884
923
  size?: InputSize;
924
+ label?: string;
925
+ helperText?: string;
926
+ errorText?: string;
885
927
  results?: SearchResult[];
886
928
  onResultSelect?: (result: SearchResult) => void;
887
929
  isLoading?: boolean;
@@ -1151,8 +1193,11 @@ export declare interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAr
1151
1193
  autoResize?: boolean;
1152
1194
  maxLength?: number;
1153
1195
  showCount?: boolean;
1196
+ size?: TextareaSize;
1154
1197
  }
1155
1198
 
1199
+ declare type TextareaSize = 'sm' | 'md' | 'lg';
1200
+
1156
1201
  export declare type TextAs = 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div' | 'label' | 'strong' | 'em' | 'code';
1157
1202
 
1158
1203
  export declare type TextColor = 'primary' | 'secondary' | 'disabled' | 'inverse' | 'onAccent' | 'success' | 'warning' | 'danger' | 'info';
@@ -1247,7 +1292,7 @@ export declare interface TimelineProps {
1247
1292
  style?: CSSProperties;
1248
1293
  }
1249
1294
 
1250
- 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;
1251
1296
 
1252
1297
  export declare const ToggleManifest: ComponentManifest;
1253
1298
 
@@ -1256,6 +1301,12 @@ export declare interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputE
1256
1301
  size?: ToggleSize;
1257
1302
  checked?: boolean;
1258
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';
1259
1310
  }
1260
1311
 
1261
1312
  export declare type ToggleSize = 'sm' | 'md' | 'lg';