lucent-ui 0.14.1 → 0.15.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 +80 -58
- package/dist/index.d.ts +27 -6
- package/dist/index.js +2292 -2048
- package/dist-server/src/components/molecules/Card/Card.manifest.js +194 -29
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ export declare type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
|
130
130
|
|
|
131
131
|
export declare type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
|
|
132
132
|
|
|
133
|
-
export declare function Card({ header, footer, children, padding, shadow, radius, style, }: CardProps): JSX_2.Element;
|
|
133
|
+
export declare function Card({ variant, header, footer, children, padding, shadow, radius, style, onClick, href, target, rel, disabled, status, selected, media, }: CardProps): JSX_2.Element;
|
|
134
134
|
|
|
135
135
|
export declare function CardBleed({ children, style }: CardBleedProps): JSX_2.Element;
|
|
136
136
|
|
|
@@ -144,19 +144,42 @@ export declare const CardManifest: ComponentManifest;
|
|
|
144
144
|
export declare type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
145
145
|
|
|
146
146
|
export declare interface CardProps {
|
|
147
|
+
/** Elevation variant — controls background, border, and default shadow. */
|
|
148
|
+
variant?: CardVariant;
|
|
147
149
|
header?: ReactNode;
|
|
148
150
|
footer?: ReactNode;
|
|
149
151
|
children: ReactNode;
|
|
150
152
|
padding?: CardPadding;
|
|
153
|
+
/** Overrides the variant's default shadow when set explicitly. */
|
|
151
154
|
shadow?: CardShadow;
|
|
152
155
|
radius?: CardRadius;
|
|
153
156
|
style?: CSSProperties;
|
|
157
|
+
/** Makes the card clickable. Renders as <button>. */
|
|
158
|
+
onClick?: MouseEventHandler;
|
|
159
|
+
/** Makes the card a link. Renders as <a>. */
|
|
160
|
+
href?: string;
|
|
161
|
+
/** Passed to <a> when href is set. */
|
|
162
|
+
target?: string;
|
|
163
|
+
/** Passed to <a> when href is set. */
|
|
164
|
+
rel?: string;
|
|
165
|
+
/** Disables interactive behavior. */
|
|
166
|
+
disabled?: boolean;
|
|
167
|
+
/** Colored left-edge accent bar indicating status. */
|
|
168
|
+
status?: CardStatus;
|
|
169
|
+
/** Accent inset ring indicating selection. */
|
|
170
|
+
selected?: boolean;
|
|
171
|
+
/** Full-bleed content rendered at the top (before header). */
|
|
172
|
+
media?: ReactNode;
|
|
154
173
|
}
|
|
155
174
|
|
|
156
175
|
export declare type CardRadius = 'none' | 'sm' | 'md' | 'lg';
|
|
157
176
|
|
|
158
177
|
export declare type CardShadow = 'none' | 'sm' | 'md' | 'lg';
|
|
159
178
|
|
|
179
|
+
export declare type CardStatus = 'success' | 'warning' | 'danger' | 'info';
|
|
180
|
+
|
|
181
|
+
export declare type CardVariant = 'ghost' | 'outline' | 'filled' | 'elevated' | 'combo';
|
|
182
|
+
|
|
160
183
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
161
184
|
|
|
162
185
|
export declare const CheckboxManifest: ComponentManifest;
|
|
@@ -402,9 +425,7 @@ export declare interface CompositionNode {
|
|
|
402
425
|
* @example
|
|
403
426
|
* const tokens = createTheme({
|
|
404
427
|
* bgBase: '#ffffff',
|
|
405
|
-
* surface: '#f9fafb',
|
|
406
428
|
* borderDefault: '#e5e7eb',
|
|
407
|
-
* textPrimary: '#111827',
|
|
408
429
|
* accentDefault: '#6366f1',
|
|
409
430
|
* successDefault: '#22c55e',
|
|
410
431
|
* warningDefault: '#f59e0b',
|
|
@@ -1004,9 +1025,11 @@ declare interface SemanticColorTokens {
|
|
|
1004
1025
|
surfaceSecondary: string;
|
|
1005
1026
|
surfaceRaised: string;
|
|
1006
1027
|
surfaceOverlay: string;
|
|
1028
|
+
surfaceTint: string;
|
|
1007
1029
|
borderDefault: string;
|
|
1008
1030
|
borderSubtle: string;
|
|
1009
1031
|
borderStrong: string;
|
|
1032
|
+
controlTrack: string;
|
|
1010
1033
|
textPrimary: string;
|
|
1011
1034
|
textSecondary: string;
|
|
1012
1035
|
textDisabled: string;
|
|
@@ -1249,9 +1272,7 @@ export declare type Theme = 'light' | 'dark';
|
|
|
1249
1272
|
* @example
|
|
1250
1273
|
* const myTheme = createTheme({
|
|
1251
1274
|
* bgBase: '#ffffff',
|
|
1252
|
-
* surface: '#f9fafb',
|
|
1253
1275
|
* borderDefault: '#e5e7eb',
|
|
1254
|
-
* textPrimary: '#111827',
|
|
1255
1276
|
* accentDefault: '#6366f1',
|
|
1256
1277
|
* successDefault: '#22c55e',
|
|
1257
1278
|
* warningDefault: '#f59e0b',
|
|
@@ -1259,7 +1280,7 @@ export declare type Theme = 'light' | 'dark';
|
|
|
1259
1280
|
* infoDefault: '#3b82f6',
|
|
1260
1281
|
* });
|
|
1261
1282
|
*/
|
|
1262
|
-
export declare type ThemeAnchors = Pick<LucentTokens, 'bgBase' | '
|
|
1283
|
+
export declare type ThemeAnchors = Pick<LucentTokens, 'bgBase' | 'borderDefault' | 'accentDefault' | 'successDefault' | 'warningDefault' | 'dangerDefault' | 'infoDefault'> & Partial<Pick<LucentTokens, 'textPrimary' | 'surface'>>;
|
|
1263
1284
|
|
|
1264
1285
|
/**
|
|
1265
1286
|
* Semantic guidance for each ThemeAnchors key.
|