lucent-ui 0.24.0 → 0.25.1

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
@@ -1,4 +1,5 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
+ import { Context } from 'react';
2
3
  import { CSSProperties } from 'react';
3
4
  import { default as default_2 } from 'react';
4
5
  import { ForwardRefExoticComponent } from 'react';
@@ -145,7 +146,7 @@ export declare type ButtonSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg';
145
146
 
146
147
  export declare type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'danger-outline' | 'danger-ghost';
147
148
 
148
- export declare function Card({ variant, header, footer, children, padding, shadow, radius, style, onClick, href, target, rel, disabled, status, selected, media, }: CardProps): JSX_2.Element;
149
+ export declare function Card({ variant, header, footer, children, padding, shadow, radius, style, onClick, href, target, rel, disabled, status, selected, hoverable, media, }: CardProps): JSX_2.Element;
149
150
 
150
151
  export declare function CardBleed({ children, style }: CardBleedProps): JSX_2.Element;
151
152
 
@@ -158,6 +159,11 @@ export declare const CardManifest: ComponentManifest;
158
159
 
159
160
  export declare type CardPadding = 'none' | 'sm' | 'md' | 'lg';
160
161
 
162
+ export declare const CardPaddingContext: Context< {
163
+ px: string;
164
+ py: string;
165
+ }>;
166
+
161
167
  export declare interface CardProps {
162
168
  /** Elevation variant — controls background, border, and default shadow. */
163
169
  variant?: CardVariant;
@@ -183,6 +189,8 @@ export declare interface CardProps {
183
189
  status?: CardStatus;
184
190
  /** Accent inset ring indicating selection. */
185
191
  selected?: boolean;
192
+ /** Enables hover/press visual feedback without making the card a button or link. */
193
+ hoverable?: boolean;
186
194
  /** Full-bleed content rendered at the top (before header). */
187
195
  media?: ReactNode;
188
196
  }
@@ -275,7 +283,7 @@ export declare interface CodeBlockTab {
275
283
 
276
284
  export declare type CodeBlockVariant = 'code' | 'prompt';
277
285
 
278
- export declare function Collapsible({ trigger, children, defaultOpen, open, onOpenChange, style }: CollapsibleProps): JSX_2.Element;
286
+ export declare function Collapsible({ trigger, children, defaultOpen, open, onOpenChange, padded, disabled, style }: CollapsibleProps): JSX_2.Element;
279
287
 
280
288
  export declare interface CollapsibleProps {
281
289
  trigger: ReactNode;
@@ -283,6 +291,10 @@ export declare interface CollapsibleProps {
283
291
  defaultOpen?: boolean;
284
292
  open?: boolean;
285
293
  onOpenChange?: (open: boolean) => void;
294
+ /** When false, removes the default content padding so children can provide their own. */
295
+ padded?: boolean;
296
+ /** Disables the trigger button. */
297
+ disabled?: boolean;
286
298
  style?: CSSProperties;
287
299
  }
288
300
 
@@ -1149,13 +1161,16 @@ export declare interface RowProps {
1149
1161
  'aria-labelledby'?: string;
1150
1162
  }
1151
1163
 
1152
- export declare function SearchInput({ value, onChange, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
1164
+ export declare function SearchInput({ value, onChange, mode, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
1153
1165
 
1154
1166
  export declare const SearchInputManifest: ComponentManifest;
1155
1167
 
1168
+ export declare type SearchInputMode = 'search' | 'filter';
1169
+
1156
1170
  export declare interface SearchInputProps {
1157
1171
  value: string;
1158
1172
  onChange: (value: string) => void;
1173
+ mode?: SearchInputMode;
1159
1174
  placeholder?: string;
1160
1175
  size?: InputSize;
1161
1176
  label?: string;