@frontile/theme 0.18.0-alpha.18 → 0.18.0-alpha.19

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.
@@ -15,6 +15,7 @@ export declare const semanticColors: {
15
15
  'on-success'?: import("./types").OnColorCategory;
16
16
  'on-warning'?: import("./types").OnColorCategory;
17
17
  'on-danger'?: import("./types").OnColorCategory;
18
+ 'on-surface-input'?: string;
18
19
  'on-surface-modal'?: string;
19
20
  background: import("./types").ColorScale;
20
21
  divider: import("./types").ColorScale;
@@ -36,6 +37,7 @@ export declare const semanticColors: {
36
37
  'on-success'?: import("./types").OnColorCategory;
37
38
  'on-warning'?: import("./types").OnColorCategory;
38
39
  'on-danger'?: import("./types").OnColorCategory;
40
+ 'on-surface-input'?: string;
39
41
  'on-surface-modal'?: string;
40
42
  background: import("./types").ColorScale;
41
43
  divider: import("./types").ColorScale;
@@ -293,6 +293,26 @@ export interface SurfaceColors {
293
293
  * <thead className="sticky top-0 bg-surface-table">
294
294
  */
295
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;
296
316
  /**
297
317
  * Form control surface for inputs, checkboxes, radios, and similar controls
298
318
  * (hierarchy level -1).
@@ -356,6 +376,16 @@ export interface ThemeColors {
356
376
  'on-success'?: OnColorCategory;
357
377
  'on-warning'?: OnColorCategory;
358
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;
359
389
  /**
360
390
  * Optional on-color override for the `surface-modal` background.
361
391
  *
@@ -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>;
@@ -0,0 +1,294 @@
1
+ declare const alert: import("tailwind-variants").TVReturnType<{
2
+ intent: {
3
+ default: {};
4
+ info: {};
5
+ success: {};
6
+ warning: {};
7
+ danger: {};
8
+ };
9
+ variant: {
10
+ default: {
11
+ base: string;
12
+ description: string;
13
+ };
14
+ tonal: {
15
+ base: string;
16
+ description: string;
17
+ };
18
+ solid: {
19
+ base: string;
20
+ };
21
+ };
22
+ layout: {
23
+ inline: {};
24
+ banner: {
25
+ base: string;
26
+ inner: string;
27
+ content: string;
28
+ closeButton: string;
29
+ };
30
+ };
31
+ hasDescription: {
32
+ true: {
33
+ inner: string;
34
+ icon: string;
35
+ };
36
+ false: {
37
+ inner: string;
38
+ };
39
+ };
40
+ hasCloseButton: {
41
+ true: {};
42
+ false: {};
43
+ };
44
+ }, {
45
+ base: string;
46
+ inner: string;
47
+ icon: string;
48
+ content: string;
49
+ title: string;
50
+ description: string;
51
+ actions: string;
52
+ closeButton: string[];
53
+ }, undefined, {
54
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
55
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
56
+ intent?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
57
+ layout?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
58
+ hasDescription?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
59
+ hasCloseButton?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
60
+ } | undefined;
61
+ } & import("tailwind-variants/dist/config.js").TWMConfig & {
62
+ twMerge: true;
63
+ twMergeConfig: {
64
+ readonly extend: {
65
+ readonly classGroups: {
66
+ readonly 'icon-size': readonly [{
67
+ readonly 'size-icon': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
68
+ }];
69
+ readonly 'border-w': readonly [{
70
+ readonly border: readonly ["thin", "heavy", "aggressive"];
71
+ }];
72
+ readonly rounded: readonly [{
73
+ readonly rounded: readonly ["default", "pill"];
74
+ }];
75
+ readonly shadow: readonly [{
76
+ readonly 'shadow-elevation': string[];
77
+ }];
78
+ readonly opacity: readonly [{
79
+ readonly opacity: readonly ["hover", "disabled"];
80
+ }];
81
+ readonly 'font-size': readonly [{
82
+ readonly 'text-marquee': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
83
+ }, {
84
+ readonly 'text-header': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
85
+ }, {
86
+ readonly 'text-body': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
87
+ }, {
88
+ readonly 'text-strong': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
89
+ }, {
90
+ readonly 'text-code': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
91
+ }, {
92
+ readonly 'text-caption': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
93
+ }, {
94
+ readonly 'text-label': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
95
+ }];
96
+ };
97
+ readonly conflictingClassGroups: {
98
+ readonly 'icon-size': readonly ["w", "h", "size"];
99
+ };
100
+ };
101
+ };
102
+ }, {
103
+ intent: {
104
+ default: {};
105
+ info: {};
106
+ success: {};
107
+ warning: {};
108
+ danger: {};
109
+ };
110
+ variant: {
111
+ default: {
112
+ base: string;
113
+ description: string;
114
+ };
115
+ tonal: {
116
+ base: string;
117
+ description: string;
118
+ };
119
+ solid: {
120
+ base: string;
121
+ };
122
+ };
123
+ layout: {
124
+ inline: {};
125
+ banner: {
126
+ base: string;
127
+ inner: string;
128
+ content: string;
129
+ closeButton: string;
130
+ };
131
+ };
132
+ hasDescription: {
133
+ true: {
134
+ inner: string;
135
+ icon: string;
136
+ };
137
+ false: {
138
+ inner: string;
139
+ };
140
+ };
141
+ hasCloseButton: {
142
+ true: {};
143
+ false: {};
144
+ };
145
+ }, {
146
+ base: string;
147
+ inner: string;
148
+ icon: string;
149
+ content: string;
150
+ title: string;
151
+ description: string;
152
+ actions: string;
153
+ closeButton: string[];
154
+ }, import("tailwind-variants").TVReturnType<{
155
+ intent: {
156
+ default: {};
157
+ info: {};
158
+ success: {};
159
+ warning: {};
160
+ danger: {};
161
+ };
162
+ variant: {
163
+ default: {
164
+ base: string;
165
+ description: string;
166
+ };
167
+ tonal: {
168
+ base: string;
169
+ description: string;
170
+ };
171
+ solid: {
172
+ base: string;
173
+ };
174
+ };
175
+ layout: {
176
+ inline: {};
177
+ banner: {
178
+ base: string;
179
+ inner: string;
180
+ content: string;
181
+ closeButton: string;
182
+ };
183
+ };
184
+ hasDescription: {
185
+ true: {
186
+ inner: string;
187
+ icon: string;
188
+ };
189
+ false: {
190
+ inner: string;
191
+ };
192
+ };
193
+ hasCloseButton: {
194
+ true: {};
195
+ false: {};
196
+ };
197
+ }, {
198
+ base: string;
199
+ inner: string;
200
+ icon: string;
201
+ content: string;
202
+ title: string;
203
+ description: string;
204
+ actions: string;
205
+ closeButton: string[];
206
+ }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
207
+ intent: {
208
+ default: {};
209
+ info: {};
210
+ success: {};
211
+ warning: {};
212
+ danger: {};
213
+ };
214
+ variant: {
215
+ default: {
216
+ base: string;
217
+ description: string;
218
+ };
219
+ tonal: {
220
+ base: string;
221
+ description: string;
222
+ };
223
+ solid: {
224
+ base: string;
225
+ };
226
+ };
227
+ layout: {
228
+ inline: {};
229
+ banner: {
230
+ base: string;
231
+ inner: string;
232
+ content: string;
233
+ closeButton: string;
234
+ };
235
+ };
236
+ hasDescription: {
237
+ true: {
238
+ inner: string;
239
+ icon: string;
240
+ };
241
+ false: {
242
+ inner: string;
243
+ };
244
+ };
245
+ hasCloseButton: {
246
+ true: {};
247
+ false: {};
248
+ };
249
+ }, {
250
+ intent: {
251
+ default: {};
252
+ info: {};
253
+ success: {};
254
+ warning: {};
255
+ danger: {};
256
+ };
257
+ variant: {
258
+ default: {
259
+ base: string;
260
+ description: string;
261
+ };
262
+ tonal: {
263
+ base: string;
264
+ description: string;
265
+ };
266
+ solid: {
267
+ base: string;
268
+ };
269
+ };
270
+ layout: {
271
+ inline: {};
272
+ banner: {
273
+ base: string;
274
+ inner: string;
275
+ content: string;
276
+ closeButton: string;
277
+ };
278
+ };
279
+ hasDescription: {
280
+ true: {
281
+ inner: string;
282
+ icon: string;
283
+ };
284
+ false: {
285
+ inner: string;
286
+ };
287
+ };
288
+ hasCloseButton: {
289
+ true: {};
290
+ false: {};
291
+ };
292
+ }>, unknown, unknown, undefined>>;
293
+ export type AlertSlots = keyof ReturnType<typeof alert>;
294
+ export { alert };