@frontile/theme 0.18.0-alpha.13 → 0.18.0-alpha.15
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/declarations/colors/types.d.ts +35 -6
- package/declarations/components/chip.d.ts +50 -35
- package/declarations/components/dropdown.d.ts +2 -2
- package/declarations/components/forms/forms.d.ts +170 -0
- package/declarations/components/popover.d.ts +2 -2
- package/declarations/types.d.ts +18 -1
- package/dist/colors.js +1 -1
- package/dist/{config-ClW7jR7w.js → config-BZyMPeuH.js} +28 -25
- package/dist/config-BZyMPeuH.js.map +1 -0
- package/dist/{forms-legacy-BYj1fPB4.js → forms-legacy-9Umui1Bp.js} +285 -69
- package/dist/forms-legacy-9Umui1Bp.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/plugin.js +9 -7
- package/dist/plugin.js.map +1 -1
- package/package.json +2 -2
- package/src/index.css +10 -10
- package/src/styles/theme.css +18 -7
- package/src/styles/typography.css +9 -7
- package/dist/config-ClW7jR7w.js.map +0 -1
- package/dist/forms-legacy-BYj1fPB4.js.map +0 -1
|
@@ -118,8 +118,13 @@ export interface SurfaceOverlay {
|
|
|
118
118
|
mild: string;
|
|
119
119
|
firm: string;
|
|
120
120
|
/**
|
|
121
|
-
* Heaviest overlay step
|
|
122
|
-
*
|
|
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.
|
|
123
128
|
*
|
|
124
129
|
* Follows the same darken-in-light / lighten-in-dark direction as
|
|
125
130
|
* `subtle`/`soft`/`mild`/`firm`, just at much higher opacity (75%) so it
|
|
@@ -129,7 +134,7 @@ export interface SurfaceOverlay {
|
|
|
129
134
|
* (white tint) instead — same visual weight, opposite direction.
|
|
130
135
|
*
|
|
131
136
|
* @example
|
|
132
|
-
* <div className="fixed inset-0 bg-surface-overlay-strong">
|
|
137
|
+
* <div className="fixed inset-0 bg-surface-overlay-strong dark:bg-surface-lift-strong">
|
|
133
138
|
*/
|
|
134
139
|
strong: string;
|
|
135
140
|
}
|
|
@@ -251,7 +256,9 @@ export interface SurfaceColors {
|
|
|
251
256
|
* through the elevation-luminance principle.
|
|
252
257
|
*
|
|
253
258
|
* Light: Pure white, creating lifted appearance against gray canvas
|
|
254
|
-
* 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.
|
|
255
262
|
*
|
|
256
263
|
* @example
|
|
257
264
|
* // Product card
|
|
@@ -265,6 +272,27 @@ export interface SurfaceColors {
|
|
|
265
272
|
* <div className="bg-surface-card hover:bg-surface-overlay-subtle">
|
|
266
273
|
*/
|
|
267
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;
|
|
268
296
|
/**
|
|
269
297
|
* Form control surface for inputs, checkboxes, radios, and similar controls
|
|
270
298
|
* (hierarchy level -1).
|
|
@@ -283,7 +311,8 @@ export interface SurfaceColors {
|
|
|
283
311
|
*
|
|
284
312
|
* Used for modal dialogs, drawers, dropdown menus, and other floating
|
|
285
313
|
* content that appears above all other surfaces. Modals and drawers pair it
|
|
286
|
-
* with a `surface-overlay-strong` backdrop to focus
|
|
314
|
+
* with a `surface-overlay-strong dark:surface-lift-strong` backdrop to focus
|
|
315
|
+
* attention.
|
|
287
316
|
*
|
|
288
317
|
* Light: Pure white, highest elevation
|
|
289
318
|
* Dark: Medium gray, lightest surface for maximum elevation
|
|
@@ -297,7 +326,7 @@ export interface SurfaceColors {
|
|
|
297
326
|
*
|
|
298
327
|
* @example
|
|
299
328
|
* // Drawer with backdrop
|
|
300
|
-
* <div className="fixed inset-0 bg-surface-overlay-strong">
|
|
329
|
+
* <div className="fixed inset-0 bg-surface-overlay-strong dark:bg-surface-lift-strong">
|
|
301
330
|
* <aside className="bg-surface-modal h-full w-80">
|
|
302
331
|
* <DrawerContent />
|
|
303
332
|
* </aside>
|
|
@@ -10,47 +10,50 @@ declare const chip: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
intent: {
|
|
11
11
|
default: {
|
|
12
12
|
dot: string;
|
|
13
|
-
closeButton: string
|
|
13
|
+
closeButton: string;
|
|
14
14
|
};
|
|
15
15
|
primary: {
|
|
16
16
|
dot: string;
|
|
17
|
-
closeButton: string
|
|
17
|
+
closeButton: string;
|
|
18
18
|
};
|
|
19
19
|
secondary: {
|
|
20
20
|
dot: string;
|
|
21
|
-
closeButton: string
|
|
21
|
+
closeButton: string;
|
|
22
22
|
};
|
|
23
23
|
tertiary: {
|
|
24
24
|
dot: string;
|
|
25
|
-
closeButton: string
|
|
25
|
+
closeButton: string;
|
|
26
26
|
};
|
|
27
27
|
success: {
|
|
28
28
|
dot: string;
|
|
29
|
-
closeButton: string
|
|
29
|
+
closeButton: string;
|
|
30
30
|
};
|
|
31
31
|
warning: {
|
|
32
32
|
dot: string;
|
|
33
|
-
closeButton: string
|
|
33
|
+
closeButton: string;
|
|
34
34
|
};
|
|
35
35
|
danger: {
|
|
36
36
|
dot: string;
|
|
37
|
-
closeButton: string
|
|
37
|
+
closeButton: string;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
size: {
|
|
41
41
|
sm: {
|
|
42
42
|
base: string;
|
|
43
43
|
content: string;
|
|
44
|
+
dot: string;
|
|
44
45
|
closeButton: string;
|
|
45
46
|
};
|
|
46
47
|
md: {
|
|
47
48
|
base: string;
|
|
48
49
|
content: string;
|
|
50
|
+
dot: string;
|
|
49
51
|
closeButton: string;
|
|
50
52
|
};
|
|
51
53
|
lg: {
|
|
52
54
|
base: string;
|
|
53
55
|
content: string;
|
|
56
|
+
dot: string;
|
|
54
57
|
closeButton: string;
|
|
55
58
|
};
|
|
56
59
|
};
|
|
@@ -126,47 +129,50 @@ declare const chip: import("tailwind-variants").TVReturnType<{
|
|
|
126
129
|
intent: {
|
|
127
130
|
default: {
|
|
128
131
|
dot: string;
|
|
129
|
-
closeButton: string
|
|
132
|
+
closeButton: string;
|
|
130
133
|
};
|
|
131
134
|
primary: {
|
|
132
135
|
dot: string;
|
|
133
|
-
closeButton: string
|
|
136
|
+
closeButton: string;
|
|
134
137
|
};
|
|
135
138
|
secondary: {
|
|
136
139
|
dot: string;
|
|
137
|
-
closeButton: string
|
|
140
|
+
closeButton: string;
|
|
138
141
|
};
|
|
139
142
|
tertiary: {
|
|
140
143
|
dot: string;
|
|
141
|
-
closeButton: string
|
|
144
|
+
closeButton: string;
|
|
142
145
|
};
|
|
143
146
|
success: {
|
|
144
147
|
dot: string;
|
|
145
|
-
closeButton: string
|
|
148
|
+
closeButton: string;
|
|
146
149
|
};
|
|
147
150
|
warning: {
|
|
148
151
|
dot: string;
|
|
149
|
-
closeButton: string
|
|
152
|
+
closeButton: string;
|
|
150
153
|
};
|
|
151
154
|
danger: {
|
|
152
155
|
dot: string;
|
|
153
|
-
closeButton: string
|
|
156
|
+
closeButton: string;
|
|
154
157
|
};
|
|
155
158
|
};
|
|
156
159
|
size: {
|
|
157
160
|
sm: {
|
|
158
161
|
base: string;
|
|
159
162
|
content: string;
|
|
163
|
+
dot: string;
|
|
160
164
|
closeButton: string;
|
|
161
165
|
};
|
|
162
166
|
md: {
|
|
163
167
|
base: string;
|
|
164
168
|
content: string;
|
|
169
|
+
dot: string;
|
|
165
170
|
closeButton: string;
|
|
166
171
|
};
|
|
167
172
|
lg: {
|
|
168
173
|
base: string;
|
|
169
174
|
content: string;
|
|
175
|
+
dot: string;
|
|
170
176
|
closeButton: string;
|
|
171
177
|
};
|
|
172
178
|
};
|
|
@@ -193,47 +199,50 @@ declare const chip: import("tailwind-variants").TVReturnType<{
|
|
|
193
199
|
intent: {
|
|
194
200
|
default: {
|
|
195
201
|
dot: string;
|
|
196
|
-
closeButton: string
|
|
202
|
+
closeButton: string;
|
|
197
203
|
};
|
|
198
204
|
primary: {
|
|
199
205
|
dot: string;
|
|
200
|
-
closeButton: string
|
|
206
|
+
closeButton: string;
|
|
201
207
|
};
|
|
202
208
|
secondary: {
|
|
203
209
|
dot: string;
|
|
204
|
-
closeButton: string
|
|
210
|
+
closeButton: string;
|
|
205
211
|
};
|
|
206
212
|
tertiary: {
|
|
207
213
|
dot: string;
|
|
208
|
-
closeButton: string
|
|
214
|
+
closeButton: string;
|
|
209
215
|
};
|
|
210
216
|
success: {
|
|
211
217
|
dot: string;
|
|
212
|
-
closeButton: string
|
|
218
|
+
closeButton: string;
|
|
213
219
|
};
|
|
214
220
|
warning: {
|
|
215
221
|
dot: string;
|
|
216
|
-
closeButton: string
|
|
222
|
+
closeButton: string;
|
|
217
223
|
};
|
|
218
224
|
danger: {
|
|
219
225
|
dot: string;
|
|
220
|
-
closeButton: string
|
|
226
|
+
closeButton: string;
|
|
221
227
|
};
|
|
222
228
|
};
|
|
223
229
|
size: {
|
|
224
230
|
sm: {
|
|
225
231
|
base: string;
|
|
226
232
|
content: string;
|
|
233
|
+
dot: string;
|
|
227
234
|
closeButton: string;
|
|
228
235
|
};
|
|
229
236
|
md: {
|
|
230
237
|
base: string;
|
|
231
238
|
content: string;
|
|
239
|
+
dot: string;
|
|
232
240
|
closeButton: string;
|
|
233
241
|
};
|
|
234
242
|
lg: {
|
|
235
243
|
base: string;
|
|
236
244
|
content: string;
|
|
245
|
+
dot: string;
|
|
237
246
|
closeButton: string;
|
|
238
247
|
};
|
|
239
248
|
};
|
|
@@ -260,47 +269,50 @@ declare const chip: import("tailwind-variants").TVReturnType<{
|
|
|
260
269
|
intent: {
|
|
261
270
|
default: {
|
|
262
271
|
dot: string;
|
|
263
|
-
closeButton: string
|
|
272
|
+
closeButton: string;
|
|
264
273
|
};
|
|
265
274
|
primary: {
|
|
266
275
|
dot: string;
|
|
267
|
-
closeButton: string
|
|
276
|
+
closeButton: string;
|
|
268
277
|
};
|
|
269
278
|
secondary: {
|
|
270
279
|
dot: string;
|
|
271
|
-
closeButton: string
|
|
280
|
+
closeButton: string;
|
|
272
281
|
};
|
|
273
282
|
tertiary: {
|
|
274
283
|
dot: string;
|
|
275
|
-
closeButton: string
|
|
284
|
+
closeButton: string;
|
|
276
285
|
};
|
|
277
286
|
success: {
|
|
278
287
|
dot: string;
|
|
279
|
-
closeButton: string
|
|
288
|
+
closeButton: string;
|
|
280
289
|
};
|
|
281
290
|
warning: {
|
|
282
291
|
dot: string;
|
|
283
|
-
closeButton: string
|
|
292
|
+
closeButton: string;
|
|
284
293
|
};
|
|
285
294
|
danger: {
|
|
286
295
|
dot: string;
|
|
287
|
-
closeButton: string
|
|
296
|
+
closeButton: string;
|
|
288
297
|
};
|
|
289
298
|
};
|
|
290
299
|
size: {
|
|
291
300
|
sm: {
|
|
292
301
|
base: string;
|
|
293
302
|
content: string;
|
|
303
|
+
dot: string;
|
|
294
304
|
closeButton: string;
|
|
295
305
|
};
|
|
296
306
|
md: {
|
|
297
307
|
base: string;
|
|
298
308
|
content: string;
|
|
309
|
+
dot: string;
|
|
299
310
|
closeButton: string;
|
|
300
311
|
};
|
|
301
312
|
lg: {
|
|
302
313
|
base: string;
|
|
303
314
|
content: string;
|
|
315
|
+
dot: string;
|
|
304
316
|
closeButton: string;
|
|
305
317
|
};
|
|
306
318
|
};
|
|
@@ -322,47 +334,50 @@ declare const chip: import("tailwind-variants").TVReturnType<{
|
|
|
322
334
|
intent: {
|
|
323
335
|
default: {
|
|
324
336
|
dot: string;
|
|
325
|
-
closeButton: string
|
|
337
|
+
closeButton: string;
|
|
326
338
|
};
|
|
327
339
|
primary: {
|
|
328
340
|
dot: string;
|
|
329
|
-
closeButton: string
|
|
341
|
+
closeButton: string;
|
|
330
342
|
};
|
|
331
343
|
secondary: {
|
|
332
344
|
dot: string;
|
|
333
|
-
closeButton: string
|
|
345
|
+
closeButton: string;
|
|
334
346
|
};
|
|
335
347
|
tertiary: {
|
|
336
348
|
dot: string;
|
|
337
|
-
closeButton: string
|
|
349
|
+
closeButton: string;
|
|
338
350
|
};
|
|
339
351
|
success: {
|
|
340
352
|
dot: string;
|
|
341
|
-
closeButton: string
|
|
353
|
+
closeButton: string;
|
|
342
354
|
};
|
|
343
355
|
warning: {
|
|
344
356
|
dot: string;
|
|
345
|
-
closeButton: string
|
|
357
|
+
closeButton: string;
|
|
346
358
|
};
|
|
347
359
|
danger: {
|
|
348
360
|
dot: string;
|
|
349
|
-
closeButton: string
|
|
361
|
+
closeButton: string;
|
|
350
362
|
};
|
|
351
363
|
};
|
|
352
364
|
size: {
|
|
353
365
|
sm: {
|
|
354
366
|
base: string;
|
|
355
367
|
content: string;
|
|
368
|
+
dot: string;
|
|
356
369
|
closeButton: string;
|
|
357
370
|
};
|
|
358
371
|
md: {
|
|
359
372
|
base: string;
|
|
360
373
|
content: string;
|
|
374
|
+
dot: string;
|
|
361
375
|
closeButton: string;
|
|
362
376
|
};
|
|
363
377
|
lg: {
|
|
364
378
|
base: string;
|
|
365
379
|
content: string;
|
|
380
|
+
dot: string;
|
|
366
381
|
closeButton: string;
|
|
367
382
|
};
|
|
368
383
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const dropdownContent: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-surface-input w-[260px] rounded-
|
|
1
|
+
declare const dropdownContent: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-surface-input w-[260px] rounded-xl border border-neutral-subtle", {
|
|
2
2
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {} | undefined;
|
|
3
3
|
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
4
4
|
twMerge: true;
|
|
@@ -41,5 +41,5 @@ declare const dropdownContent: import("tailwind-variants").TVReturnType<{} | {}
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
}, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "bg-surface-input w-[260px] rounded-
|
|
44
|
+
}, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "bg-surface-input w-[260px] rounded-xl border border-neutral-subtle", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
45
45
|
export { dropdownContent };
|