lucent-ui 0.24.0 → 0.25.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.cjs +62 -47
- package/dist/index.d.ts +12 -3
- package/dist/index.js +2036 -1994
- package/dist-cli/cli/entry.js +0 -0
- package/dist-cli/cli/index.js +0 -0
- package/dist-server/server/index.js +0 -0
- package/dist-server/src/components/atoms/Text/Text.manifest.js +7 -1
- package/dist-server/src/components/molecules/Card/Card.manifest.js +32 -3
- package/dist-server/src/components/molecules/Collapsible/Collapsible.manifest.js +43 -3
- package/dist-server/src/components/molecules/NavMenu/NavMenu.manifest.js +98 -89
- package/dist-server/src/components/molecules/SearchInput/SearchInput.manifest.js +18 -4
- package/dist-server/src/manifest/validate.test.js +28 -0
- package/package.json +15 -13
package/dist/index.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export declare type ButtonSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
|
145
145
|
|
|
146
146
|
export declare type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'danger-outline' | 'danger-ghost';
|
|
147
147
|
|
|
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;
|
|
148
|
+
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
149
|
|
|
150
150
|
export declare function CardBleed({ children, style }: CardBleedProps): JSX_2.Element;
|
|
151
151
|
|
|
@@ -183,6 +183,8 @@ export declare interface CardProps {
|
|
|
183
183
|
status?: CardStatus;
|
|
184
184
|
/** Accent inset ring indicating selection. */
|
|
185
185
|
selected?: boolean;
|
|
186
|
+
/** Enables hover/press visual feedback without making the card a button or link. */
|
|
187
|
+
hoverable?: boolean;
|
|
186
188
|
/** Full-bleed content rendered at the top (before header). */
|
|
187
189
|
media?: ReactNode;
|
|
188
190
|
}
|
|
@@ -275,7 +277,7 @@ export declare interface CodeBlockTab {
|
|
|
275
277
|
|
|
276
278
|
export declare type CodeBlockVariant = 'code' | 'prompt';
|
|
277
279
|
|
|
278
|
-
export declare function Collapsible({ trigger, children, defaultOpen, open, onOpenChange, style }: CollapsibleProps): JSX_2.Element;
|
|
280
|
+
export declare function Collapsible({ trigger, children, defaultOpen, open, onOpenChange, padded, disabled, style }: CollapsibleProps): JSX_2.Element;
|
|
279
281
|
|
|
280
282
|
export declare interface CollapsibleProps {
|
|
281
283
|
trigger: ReactNode;
|
|
@@ -283,6 +285,10 @@ export declare interface CollapsibleProps {
|
|
|
283
285
|
defaultOpen?: boolean;
|
|
284
286
|
open?: boolean;
|
|
285
287
|
onOpenChange?: (open: boolean) => void;
|
|
288
|
+
/** When false, removes the default content padding so children can provide their own. */
|
|
289
|
+
padded?: boolean;
|
|
290
|
+
/** Disables the trigger button. */
|
|
291
|
+
disabled?: boolean;
|
|
286
292
|
style?: CSSProperties;
|
|
287
293
|
}
|
|
288
294
|
|
|
@@ -1149,13 +1155,16 @@ export declare interface RowProps {
|
|
|
1149
1155
|
'aria-labelledby'?: string;
|
|
1150
1156
|
}
|
|
1151
1157
|
|
|
1152
|
-
export declare function SearchInput({ value, onChange, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
|
|
1158
|
+
export declare function SearchInput({ value, onChange, mode, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
|
|
1153
1159
|
|
|
1154
1160
|
export declare const SearchInputManifest: ComponentManifest;
|
|
1155
1161
|
|
|
1162
|
+
export declare type SearchInputMode = 'search' | 'filter';
|
|
1163
|
+
|
|
1156
1164
|
export declare interface SearchInputProps {
|
|
1157
1165
|
value: string;
|
|
1158
1166
|
onChange: (value: string) => void;
|
|
1167
|
+
mode?: SearchInputMode;
|
|
1159
1168
|
placeholder?: string;
|
|
1160
1169
|
size?: InputSize;
|
|
1161
1170
|
label?: string;
|