@frontile/theme 0.18.0-alpha.9 → 0.18.0-beta.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/README.md +3 -2
- package/declarations/colors/config.d.ts +10 -4
- package/declarations/colors/semantic.d.ts +4 -0
- package/declarations/colors/types.d.ts +118 -13
- package/declarations/colors/util.d.ts +2 -1
- package/declarations/colors.d.ts +1 -0
- package/declarations/components/accordion.d.ts +308 -0
- package/declarations/components/alert.d.ts +294 -0
- package/declarations/components/avatar.d.ts +9 -7
- package/declarations/components/button.d.ts +118 -48
- package/declarations/components/calendar.d.ts +382 -0
- package/declarations/components/chip.d.ts +79 -42
- package/declarations/components/close-button.d.ts +9 -7
- package/declarations/components/command.d.ts +281 -0
- package/declarations/components/divider.d.ts +9 -7
- package/declarations/components/dropdown.d.ts +11 -9
- package/declarations/components/external-link.d.ts +160 -0
- package/declarations/components/forms/forms-legacy.d.ts +108 -84
- package/declarations/components/forms/forms.d.ts +652 -162
- package/declarations/components/index.d.ts +11 -0
- package/declarations/components/kbd.d.ts +315 -0
- package/declarations/components/listbox.d.ts +122 -23
- package/declarations/components/notification-card.d.ts +182 -111
- package/declarations/components/notifications-container.d.ts +111 -40
- package/declarations/components/overlays.d.ts +429 -29
- package/declarations/components/pagination.d.ts +359 -0
- package/declarations/components/popover.d.ts +11 -9
- package/declarations/components/progress-bar.d.ts +29 -12
- package/declarations/components/segmented-control.d.ts +463 -0
- package/declarations/components/shared.d.ts +9 -0
- package/declarations/components/skeleton.d.ts +151 -0
- package/declarations/components/spinner.d.ts +19 -12
- package/declarations/components/table.d.ts +17 -9
- package/declarations/components/tabs.d.ts +463 -0
- package/declarations/components/tooltip.d.ts +270 -0
- package/declarations/plugin/default-config.d.ts +10 -4
- package/declarations/tw.d.ts +9 -7
- package/declarations/types.d.ts +18 -1
- package/dist/colors.js +2 -1
- package/dist/colors.js.map +1 -1
- package/dist/index.js +3824 -5
- package/dist/index.js.map +1 -1
- package/dist/overlays-DIZlPzFH.js +654 -0
- package/dist/overlays-DIZlPzFH.js.map +1 -0
- package/dist/plugin.js +54 -83
- package/dist/plugin.js.map +1 -1
- package/dist/util-Dp_dlOPq.js +482 -0
- package/dist/util-Dp_dlOPq.js.map +1 -0
- package/package.json +12 -12
- package/src/index.css +64 -15
- package/src/styles/font-faces.css +23 -5
- package/src/styles/theme.css +18 -7
- package/src/styles/typography.css +36 -29
- package/declarations/colors/contrast.d.ts +0 -16
- package/declarations/colors/defaults.d.ts +0 -66
- package/declarations/colors/palette-dark.d.ts +0 -123
- package/declarations/colors/palette-light.d.ts +0 -123
- package/dist/config-CDp8PRHs.js +0 -370
- package/dist/config-CDp8PRHs.js.map +0 -1
- package/dist/forms-legacy-CgoY8bbm.js +0 -1967
- package/dist/forms-legacy-CgoY8bbm.js.map +0 -1
- package/dist/index.css +0 -63
- package/dist/styles/font-faces.css +0 -70
- package/dist/styles/theme.css +0 -48
- package/dist/styles/typography.css +0 -387
package/README.md
CHANGED
|
@@ -180,8 +180,9 @@ module.exports = frontile({
|
|
|
180
180
|
```
|
|
181
181
|
|
|
182
182
|
You can override on-colors for any semantic color category:
|
|
183
|
-
- `on-neutral`, `on-primary`, `on-
|
|
184
|
-
- `on-
|
|
183
|
+
- `on-neutral`, `on-primary`, `on-secondary`, `on-tertiary`, `on-success`,
|
|
184
|
+
`on-warning`, `on-danger`
|
|
185
|
+
- `on-surface-modal`
|
|
185
186
|
|
|
186
187
|
#### Option 2: Via CSS Variables
|
|
187
188
|
|
|
@@ -2,17 +2,20 @@ export declare const semanticColors: {
|
|
|
2
2
|
light: {
|
|
3
3
|
neutral: import("./types").SemanticColorCategory;
|
|
4
4
|
primary: import("./types").SemanticColorCategory;
|
|
5
|
-
|
|
5
|
+
secondary: import("./types").SemanticColorCategory;
|
|
6
|
+
tertiary: import("./types").SemanticColorCategory;
|
|
6
7
|
success: import("./types").SemanticColorCategory;
|
|
7
8
|
warning: import("./types").SemanticColorCategory;
|
|
8
9
|
danger: import("./types").SemanticColorCategory;
|
|
9
10
|
surface: import("./types").SurfaceColors;
|
|
10
11
|
'on-neutral'?: import("./types").OnColorCategory;
|
|
11
12
|
'on-primary'?: import("./types").OnColorCategory;
|
|
12
|
-
'on-
|
|
13
|
+
'on-secondary'?: import("./types").OnColorCategory;
|
|
14
|
+
'on-tertiary'?: import("./types").OnColorCategory;
|
|
13
15
|
'on-success'?: import("./types").OnColorCategory;
|
|
14
16
|
'on-warning'?: import("./types").OnColorCategory;
|
|
15
17
|
'on-danger'?: import("./types").OnColorCategory;
|
|
18
|
+
'on-surface-input'?: string;
|
|
16
19
|
'on-surface-modal'?: string;
|
|
17
20
|
background: import("./types").ColorScale;
|
|
18
21
|
divider: import("./types").ColorScale;
|
|
@@ -21,17 +24,20 @@ export declare const semanticColors: {
|
|
|
21
24
|
dark: {
|
|
22
25
|
neutral: import("./types").SemanticColorCategory;
|
|
23
26
|
primary: import("./types").SemanticColorCategory;
|
|
24
|
-
|
|
27
|
+
secondary: import("./types").SemanticColorCategory;
|
|
28
|
+
tertiary: import("./types").SemanticColorCategory;
|
|
25
29
|
success: import("./types").SemanticColorCategory;
|
|
26
30
|
warning: import("./types").SemanticColorCategory;
|
|
27
31
|
danger: import("./types").SemanticColorCategory;
|
|
28
32
|
surface: import("./types").SurfaceColors;
|
|
29
33
|
'on-neutral'?: import("./types").OnColorCategory;
|
|
30
34
|
'on-primary'?: import("./types").OnColorCategory;
|
|
31
|
-
'on-
|
|
35
|
+
'on-secondary'?: import("./types").OnColorCategory;
|
|
36
|
+
'on-tertiary'?: import("./types").OnColorCategory;
|
|
32
37
|
'on-success'?: import("./types").OnColorCategory;
|
|
33
38
|
'on-warning'?: import("./types").OnColorCategory;
|
|
34
39
|
'on-danger'?: import("./types").OnColorCategory;
|
|
40
|
+
'on-surface-input'?: string;
|
|
35
41
|
'on-surface-modal'?: string;
|
|
36
42
|
background: import("./types").ColorScale;
|
|
37
43
|
divider: import("./types").ColorScale;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Frontile Semantic Colors
|
|
3
3
|
*
|
|
4
4
|
* Semantic color mappings for light and dark themes.
|
|
5
|
+
*
|
|
6
|
+
* Values are transcribed from the Beacon design tokens (Figma), where alpha is
|
|
7
|
+
* expressed as a 0–1 float. Here it is folded into the color as a two-digit
|
|
8
|
+
* hex suffix — e.g. 20% becomes `33` (round(0.2 * 255) = 51 = 0x33).
|
|
5
9
|
*/
|
|
6
10
|
import type { ThemeColors } from './types';
|
|
7
11
|
declare const _default: {
|
|
@@ -37,7 +37,7 @@ export type SemanticBaseColors = {
|
|
|
37
37
|
* Surface band — fills. Backgrounds and decorative borders for filled/tinted
|
|
38
38
|
* surfaces, ordered low → high emphasis:
|
|
39
39
|
*
|
|
40
|
-
* subtle → muted → soft → DEFAULT → firm
|
|
40
|
+
* subtle → muted → soft → mild → DEFAULT → firm
|
|
41
41
|
*
|
|
42
42
|
* `DEFAULT` is the resting fill (the bare `bg-{category}` class); `firm` is the
|
|
43
43
|
* most emphatic fill, e.g. a pressed/active background.
|
|
@@ -49,6 +49,8 @@ export interface SurfaceBand {
|
|
|
49
49
|
muted: string;
|
|
50
50
|
/** Soft fill — the hover step for solid fills. */
|
|
51
51
|
soft: string;
|
|
52
|
+
/** Between `soft` and `DEFAULT` — a lower-emphasis fill just short of resting. */
|
|
53
|
+
mild: string;
|
|
52
54
|
/** Resting fill — the bare `bg-{category}` / `border-{category}` token. */
|
|
53
55
|
DEFAULT: string;
|
|
54
56
|
/** Most emphatic fill — pressed/active backgrounds. */
|
|
@@ -104,6 +106,7 @@ export interface OnColorCategory {
|
|
|
104
106
|
subtle?: string;
|
|
105
107
|
muted?: string;
|
|
106
108
|
soft?: string;
|
|
109
|
+
mild?: string;
|
|
107
110
|
DEFAULT?: string;
|
|
108
111
|
firm?: string;
|
|
109
112
|
strong?: string;
|
|
@@ -112,22 +115,58 @@ export interface OnColorCategory {
|
|
|
112
115
|
export interface SurfaceOverlay {
|
|
113
116
|
subtle: string;
|
|
114
117
|
soft: string;
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
mild: string;
|
|
119
|
+
firm: string;
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* Heaviest overlay step (75% in light, 95% in dark).
|
|
122
|
+
*
|
|
123
|
+
* In light mode this is the backdrop tint behind modals and drawers. In dark
|
|
124
|
+
* mode the black scrim is {@link SurfaceLift}'s `strong` instead, because the
|
|
125
|
+
* families mirror each other — pair them as
|
|
126
|
+
* `bg-surface-overlay-strong dark:bg-surface-lift-strong` for a scrim that
|
|
127
|
+
* holds in both schemes.
|
|
119
128
|
*
|
|
120
129
|
* Follows the same darken-in-light / lighten-in-dark direction as
|
|
121
|
-
* `subtle`/`soft`/`
|
|
130
|
+
* `subtle`/`soft`/`mild`/`firm`, just at much higher opacity (75%) so it
|
|
122
131
|
* reads as a deliberate backdrop rather than a hover/elevation hint. A black
|
|
123
|
-
* tint is used in light mode; a black
|
|
132
|
+
* tint is used in light mode; a black backdrop in dark mode would barely
|
|
124
133
|
* register against an already near-black page, so dark mode lightens
|
|
125
134
|
* (white tint) instead — same visual weight, opposite direction.
|
|
126
135
|
*
|
|
127
136
|
* @example
|
|
128
|
-
* <div className="fixed inset-0 bg-surface-overlay-
|
|
137
|
+
* <div className="fixed inset-0 bg-surface-overlay-strong dark:bg-surface-lift-strong">
|
|
129
138
|
*/
|
|
130
|
-
|
|
139
|
+
strong: string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Translucent overlay system that *lightens* in light mode and *darkens* in
|
|
143
|
+
* dark mode — the mirror of {@link SurfaceOverlay}.
|
|
144
|
+
*
|
|
145
|
+
* Where overlay pushes an element down into its background, lift pulls it up
|
|
146
|
+
* off of it: a white veil on a light page, a black veil on a dark one. Use it
|
|
147
|
+
* for frosted/glass panels, sticky headers over content, and any surface that
|
|
148
|
+
* should read as floating above what it covers.
|
|
149
|
+
*
|
|
150
|
+
* Levels run low → high emphasis, same as overlay: `subtle`, `soft`, `mild`,
|
|
151
|
+
* `firm`, `strong`.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* // Frosted sticky header
|
|
155
|
+
* <header className="bg-surface-lift-firm backdrop-blur-md" />
|
|
156
|
+
*/
|
|
157
|
+
export interface SurfaceLift {
|
|
158
|
+
subtle: string;
|
|
159
|
+
soft: string;
|
|
160
|
+
mild: string;
|
|
161
|
+
firm: string;
|
|
162
|
+
/**
|
|
163
|
+
* Heaviest lift step, near-opaque (95%) — a panel lifted essentially clear
|
|
164
|
+
* of the page rather than a veil you see through.
|
|
165
|
+
*
|
|
166
|
+
* Flips with the scheme like every other lift level: white in light mode,
|
|
167
|
+
* black in dark mode. (Overlay's `strong` is the one that does *not* flip.)
|
|
168
|
+
*/
|
|
169
|
+
strong: string;
|
|
131
170
|
}
|
|
132
171
|
/**
|
|
133
172
|
* Surface color system defining background colors for UI containers.
|
|
@@ -157,6 +196,16 @@ export interface SurfaceColors {
|
|
|
157
196
|
* <div className="bg-surface-app bg-surface-overlay-soft" />
|
|
158
197
|
*/
|
|
159
198
|
overlay: SurfaceOverlay;
|
|
199
|
+
/**
|
|
200
|
+
* Translucent lift system for elements that float above the page.
|
|
201
|
+
*
|
|
202
|
+
* The mirror of {@link overlay}: lightens in light mode, darkens in dark
|
|
203
|
+
* mode. See {@link SurfaceLift}.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* <div className="bg-surface-lift-soft backdrop-blur-sm" />
|
|
207
|
+
*/
|
|
208
|
+
lift: SurfaceLift;
|
|
160
209
|
/**
|
|
161
210
|
* Root application background layer (hierarchy level 0).
|
|
162
211
|
*
|
|
@@ -207,7 +256,9 @@ export interface SurfaceColors {
|
|
|
207
256
|
* through the elevation-luminance principle.
|
|
208
257
|
*
|
|
209
258
|
* Light: Pure white, creating lifted appearance against gray canvas
|
|
210
|
-
* Dark:
|
|
259
|
+
* Dark: A translucent veil (white @ 7%, the same value as `overlay-subtle`),
|
|
260
|
+
* so content behind it shows through faintly. Where a surface has to stay
|
|
261
|
+
* opaque, use {@link table} — the same color without the transparency.
|
|
211
262
|
*
|
|
212
263
|
* @example
|
|
213
264
|
* // Product card
|
|
@@ -221,6 +272,47 @@ export interface SurfaceColors {
|
|
|
221
272
|
* <div className="bg-surface-card hover:bg-surface-overlay-subtle">
|
|
222
273
|
*/
|
|
223
274
|
card: string;
|
|
275
|
+
/**
|
|
276
|
+
* Data table surface (hierarchy level 1).
|
|
277
|
+
*
|
|
278
|
+
* The same color as {@link card}, guaranteed opaque. Tables need that
|
|
279
|
+
* guarantee: a sticky header, a frozen row, or a pinned column paints over the
|
|
280
|
+
* rows and columns scrolling beneath it, and anything translucent lets them
|
|
281
|
+
* show through.
|
|
282
|
+
*
|
|
283
|
+
* Light: Pure white, identical to `card`
|
|
284
|
+
* Dark: `gray-900` — the color `card` renders over `canvas`, so the two are
|
|
285
|
+
* indistinguishable on a canvas-backed page
|
|
286
|
+
*
|
|
287
|
+
* For one table on a different background, set `--color-surface-table` on it
|
|
288
|
+
* rather than recolouring the role — it is a plain custom property, and it
|
|
289
|
+
* applies to everything below it.
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* // Sticky table header, which the rows scroll under
|
|
293
|
+
* <thead className="sticky top-0 bg-surface-table">
|
|
294
|
+
*/
|
|
295
|
+
table: string;
|
|
296
|
+
/**
|
|
297
|
+
* Drawer body surface (hierarchy level 3).
|
|
298
|
+
*
|
|
299
|
+
* The scrollable content area of a Drawer, deliberately one step off the
|
|
300
|
+
* drawer's own header and footer bands so the body reads as a distinct
|
|
301
|
+
* region rather than one flat panel.
|
|
302
|
+
*
|
|
303
|
+
* Light: `gray-50`, a hair off the white footer
|
|
304
|
+
* Dark: `gray-900`, one step above the black footer
|
|
305
|
+
*
|
|
306
|
+
* Opaque in both schemes — a drawer sits over a backdrop, and a translucent
|
|
307
|
+
* body would let the page behind bleed through the content.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* // Drawer body
|
|
311
|
+
* <div className="bg-surface-drawer text-on-surface-drawer px-8 py-4">
|
|
312
|
+
* Content
|
|
313
|
+
* </div>
|
|
314
|
+
*/
|
|
315
|
+
drawer: string;
|
|
224
316
|
/**
|
|
225
317
|
* Form control surface for inputs, checkboxes, radios, and similar controls
|
|
226
318
|
* (hierarchy level -1).
|
|
@@ -239,7 +331,8 @@ export interface SurfaceColors {
|
|
|
239
331
|
*
|
|
240
332
|
* Used for modal dialogs, drawers, dropdown menus, and other floating
|
|
241
333
|
* content that appears above all other surfaces. Modals and drawers pair it
|
|
242
|
-
* with a
|
|
334
|
+
* with a `surface-overlay-strong dark:surface-lift-strong` backdrop to focus
|
|
335
|
+
* attention.
|
|
243
336
|
*
|
|
244
337
|
* Light: Pure white, highest elevation
|
|
245
338
|
* Dark: Medium gray, lightest surface for maximum elevation
|
|
@@ -253,7 +346,7 @@ export interface SurfaceColors {
|
|
|
253
346
|
*
|
|
254
347
|
* @example
|
|
255
348
|
* // Drawer with backdrop
|
|
256
|
-
* <div className="fixed inset-0 bg-surface-overlay-
|
|
349
|
+
* <div className="fixed inset-0 bg-surface-overlay-strong dark:bg-surface-lift-strong">
|
|
257
350
|
* <aside className="bg-surface-modal h-full w-80">
|
|
258
351
|
* <DrawerContent />
|
|
259
352
|
* </aside>
|
|
@@ -270,17 +363,29 @@ export interface SurfaceColors {
|
|
|
270
363
|
export interface ThemeColors {
|
|
271
364
|
neutral: SemanticColorCategory;
|
|
272
365
|
primary: SemanticColorCategory;
|
|
273
|
-
|
|
366
|
+
secondary: SemanticColorCategory;
|
|
367
|
+
tertiary: SemanticColorCategory;
|
|
274
368
|
success: SemanticColorCategory;
|
|
275
369
|
warning: SemanticColorCategory;
|
|
276
370
|
danger: SemanticColorCategory;
|
|
277
371
|
surface: SurfaceColors;
|
|
278
372
|
'on-neutral'?: OnColorCategory;
|
|
279
373
|
'on-primary'?: OnColorCategory;
|
|
280
|
-
'on-
|
|
374
|
+
'on-secondary'?: OnColorCategory;
|
|
375
|
+
'on-tertiary'?: OnColorCategory;
|
|
281
376
|
'on-success'?: OnColorCategory;
|
|
282
377
|
'on-warning'?: OnColorCategory;
|
|
283
378
|
'on-danger'?: OnColorCategory;
|
|
379
|
+
/**
|
|
380
|
+
* Optional on-color override for the `surface-input` background.
|
|
381
|
+
*
|
|
382
|
+
* By default, auto-generated for optimal WCAG contrast, same as the other
|
|
383
|
+
* semantic categories.
|
|
384
|
+
*
|
|
385
|
+
* @example
|
|
386
|
+
* 'on-surface-input': '#111111'
|
|
387
|
+
*/
|
|
388
|
+
'on-surface-input'?: string;
|
|
284
389
|
/**
|
|
285
390
|
* Optional on-color override for the `surface-modal` background.
|
|
286
391
|
*
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { parse, wcagContrast } from 'culori';
|
|
1
2
|
declare function swapColorValues<T extends Record<string, unknown>>(colors: T): Record<string, unknown>;
|
|
2
3
|
/**
|
|
3
4
|
* Get optimal contrasting color (black or white) for text on a given background.
|
|
4
5
|
* Uses WCAG contrast ratios to determine which provides better readability.
|
|
5
6
|
*/
|
|
6
7
|
declare function getContrastingColor(backgroundColor: string): string;
|
|
7
|
-
export { swapColorValues, getContrastingColor };
|
|
8
|
+
export { swapColorValues, getContrastingColor, parse, wcagContrast };
|
package/declarations/colors.d.ts
CHANGED
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import type { VariantProps } from '../tw';
|
|
2
|
+
declare const accordion: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
ghost: {};
|
|
5
|
+
outlined: {
|
|
6
|
+
item: string;
|
|
7
|
+
};
|
|
8
|
+
faded: {
|
|
9
|
+
item: string;
|
|
10
|
+
trigger: string;
|
|
11
|
+
contentBody: string;
|
|
12
|
+
};
|
|
13
|
+
enclosed: {
|
|
14
|
+
base: string;
|
|
15
|
+
item: string;
|
|
16
|
+
trigger: string;
|
|
17
|
+
contentBody: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
sm: {
|
|
22
|
+
trigger: string;
|
|
23
|
+
subtitle: string;
|
|
24
|
+
indicator: string;
|
|
25
|
+
contentBody: string;
|
|
26
|
+
};
|
|
27
|
+
md: {
|
|
28
|
+
trigger: string;
|
|
29
|
+
subtitle: string;
|
|
30
|
+
indicator: string;
|
|
31
|
+
contentBody: string;
|
|
32
|
+
};
|
|
33
|
+
lg: {
|
|
34
|
+
trigger: string;
|
|
35
|
+
subtitle: string;
|
|
36
|
+
indicator: string;
|
|
37
|
+
contentBody: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
isDisabled: {
|
|
41
|
+
true: {
|
|
42
|
+
base: string;
|
|
43
|
+
trigger: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
base: string;
|
|
48
|
+
item: string;
|
|
49
|
+
heading: string;
|
|
50
|
+
trigger: string[];
|
|
51
|
+
startContent: string;
|
|
52
|
+
titleWrapper: string;
|
|
53
|
+
title: string;
|
|
54
|
+
subtitle: string;
|
|
55
|
+
indicator: string[];
|
|
56
|
+
content: string;
|
|
57
|
+
contentBody: string;
|
|
58
|
+
}, undefined, {
|
|
59
|
+
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
60
|
+
size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
61
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
62
|
+
isDisabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
65
|
+
twMerge: true;
|
|
66
|
+
twMergeConfig: {
|
|
67
|
+
readonly extend: {
|
|
68
|
+
readonly classGroups: {
|
|
69
|
+
readonly 'icon-size': readonly [{
|
|
70
|
+
readonly 'size-icon': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
71
|
+
}];
|
|
72
|
+
readonly 'border-w': readonly [{
|
|
73
|
+
readonly border: readonly ["thin", "heavy", "aggressive"];
|
|
74
|
+
}];
|
|
75
|
+
readonly rounded: readonly [{
|
|
76
|
+
readonly rounded: readonly ["default", "pill"];
|
|
77
|
+
}];
|
|
78
|
+
readonly shadow: readonly [{
|
|
79
|
+
readonly 'shadow-elevation': string[];
|
|
80
|
+
}];
|
|
81
|
+
readonly opacity: readonly [{
|
|
82
|
+
readonly opacity: readonly ["hover", "disabled"];
|
|
83
|
+
}];
|
|
84
|
+
readonly 'font-size': readonly [{
|
|
85
|
+
readonly 'text-marquee': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
86
|
+
}, {
|
|
87
|
+
readonly 'text-header': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
88
|
+
}, {
|
|
89
|
+
readonly 'text-body': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
90
|
+
}, {
|
|
91
|
+
readonly 'text-strong': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
92
|
+
}, {
|
|
93
|
+
readonly 'text-code': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
94
|
+
}, {
|
|
95
|
+
readonly 'text-caption': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
96
|
+
}, {
|
|
97
|
+
readonly 'text-label': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
|
|
98
|
+
}];
|
|
99
|
+
};
|
|
100
|
+
readonly conflictingClassGroups: {
|
|
101
|
+
readonly 'icon-size': readonly ["w", "h", "size"];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
variant: {
|
|
107
|
+
ghost: {};
|
|
108
|
+
outlined: {
|
|
109
|
+
item: string;
|
|
110
|
+
};
|
|
111
|
+
faded: {
|
|
112
|
+
item: string;
|
|
113
|
+
trigger: string;
|
|
114
|
+
contentBody: string;
|
|
115
|
+
};
|
|
116
|
+
enclosed: {
|
|
117
|
+
base: string;
|
|
118
|
+
item: string;
|
|
119
|
+
trigger: string;
|
|
120
|
+
contentBody: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
size: {
|
|
124
|
+
sm: {
|
|
125
|
+
trigger: string;
|
|
126
|
+
subtitle: string;
|
|
127
|
+
indicator: string;
|
|
128
|
+
contentBody: string;
|
|
129
|
+
};
|
|
130
|
+
md: {
|
|
131
|
+
trigger: string;
|
|
132
|
+
subtitle: string;
|
|
133
|
+
indicator: string;
|
|
134
|
+
contentBody: string;
|
|
135
|
+
};
|
|
136
|
+
lg: {
|
|
137
|
+
trigger: string;
|
|
138
|
+
subtitle: string;
|
|
139
|
+
indicator: string;
|
|
140
|
+
contentBody: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
isDisabled: {
|
|
144
|
+
true: {
|
|
145
|
+
base: string;
|
|
146
|
+
trigger: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
base: string;
|
|
151
|
+
item: string;
|
|
152
|
+
heading: string;
|
|
153
|
+
trigger: string[];
|
|
154
|
+
startContent: string;
|
|
155
|
+
titleWrapper: string;
|
|
156
|
+
title: string;
|
|
157
|
+
subtitle: string;
|
|
158
|
+
indicator: string[];
|
|
159
|
+
content: string;
|
|
160
|
+
contentBody: string;
|
|
161
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
162
|
+
variant: {
|
|
163
|
+
ghost: {};
|
|
164
|
+
outlined: {
|
|
165
|
+
item: string;
|
|
166
|
+
};
|
|
167
|
+
faded: {
|
|
168
|
+
item: string;
|
|
169
|
+
trigger: string;
|
|
170
|
+
contentBody: string;
|
|
171
|
+
};
|
|
172
|
+
enclosed: {
|
|
173
|
+
base: string;
|
|
174
|
+
item: string;
|
|
175
|
+
trigger: string;
|
|
176
|
+
contentBody: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
size: {
|
|
180
|
+
sm: {
|
|
181
|
+
trigger: string;
|
|
182
|
+
subtitle: string;
|
|
183
|
+
indicator: string;
|
|
184
|
+
contentBody: string;
|
|
185
|
+
};
|
|
186
|
+
md: {
|
|
187
|
+
trigger: string;
|
|
188
|
+
subtitle: string;
|
|
189
|
+
indicator: string;
|
|
190
|
+
contentBody: string;
|
|
191
|
+
};
|
|
192
|
+
lg: {
|
|
193
|
+
trigger: string;
|
|
194
|
+
subtitle: string;
|
|
195
|
+
indicator: string;
|
|
196
|
+
contentBody: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
isDisabled: {
|
|
200
|
+
true: {
|
|
201
|
+
base: string;
|
|
202
|
+
trigger: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
base: string;
|
|
207
|
+
item: string;
|
|
208
|
+
heading: string;
|
|
209
|
+
trigger: string[];
|
|
210
|
+
startContent: string;
|
|
211
|
+
titleWrapper: string;
|
|
212
|
+
title: string;
|
|
213
|
+
subtitle: string;
|
|
214
|
+
indicator: string[];
|
|
215
|
+
content: string;
|
|
216
|
+
contentBody: string;
|
|
217
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
218
|
+
variant: {
|
|
219
|
+
ghost: {};
|
|
220
|
+
outlined: {
|
|
221
|
+
item: string;
|
|
222
|
+
};
|
|
223
|
+
faded: {
|
|
224
|
+
item: string;
|
|
225
|
+
trigger: string;
|
|
226
|
+
contentBody: string;
|
|
227
|
+
};
|
|
228
|
+
enclosed: {
|
|
229
|
+
base: string;
|
|
230
|
+
item: string;
|
|
231
|
+
trigger: string;
|
|
232
|
+
contentBody: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
size: {
|
|
236
|
+
sm: {
|
|
237
|
+
trigger: string;
|
|
238
|
+
subtitle: string;
|
|
239
|
+
indicator: string;
|
|
240
|
+
contentBody: string;
|
|
241
|
+
};
|
|
242
|
+
md: {
|
|
243
|
+
trigger: string;
|
|
244
|
+
subtitle: string;
|
|
245
|
+
indicator: string;
|
|
246
|
+
contentBody: string;
|
|
247
|
+
};
|
|
248
|
+
lg: {
|
|
249
|
+
trigger: string;
|
|
250
|
+
subtitle: string;
|
|
251
|
+
indicator: string;
|
|
252
|
+
contentBody: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
isDisabled: {
|
|
256
|
+
true: {
|
|
257
|
+
base: string;
|
|
258
|
+
trigger: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
variant: {
|
|
263
|
+
ghost: {};
|
|
264
|
+
outlined: {
|
|
265
|
+
item: string;
|
|
266
|
+
};
|
|
267
|
+
faded: {
|
|
268
|
+
item: string;
|
|
269
|
+
trigger: string;
|
|
270
|
+
contentBody: string;
|
|
271
|
+
};
|
|
272
|
+
enclosed: {
|
|
273
|
+
base: string;
|
|
274
|
+
item: string;
|
|
275
|
+
trigger: string;
|
|
276
|
+
contentBody: string;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
size: {
|
|
280
|
+
sm: {
|
|
281
|
+
trigger: string;
|
|
282
|
+
subtitle: string;
|
|
283
|
+
indicator: string;
|
|
284
|
+
contentBody: string;
|
|
285
|
+
};
|
|
286
|
+
md: {
|
|
287
|
+
trigger: string;
|
|
288
|
+
subtitle: string;
|
|
289
|
+
indicator: string;
|
|
290
|
+
contentBody: string;
|
|
291
|
+
};
|
|
292
|
+
lg: {
|
|
293
|
+
trigger: string;
|
|
294
|
+
subtitle: string;
|
|
295
|
+
indicator: string;
|
|
296
|
+
contentBody: string;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
isDisabled: {
|
|
300
|
+
true: {
|
|
301
|
+
base: string;
|
|
302
|
+
trigger: string;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
}>, unknown, unknown, undefined>>;
|
|
306
|
+
export { accordion };
|
|
307
|
+
export type AccordionSlots = keyof ReturnType<typeof accordion>;
|
|
308
|
+
export type AccordionVariants = VariantProps<typeof accordion>;
|