@frontile/theme 0.18.0-alpha.9 → 0.18.0-beta.1

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.
Files changed (65) hide show
  1. package/README.md +3 -2
  2. package/declarations/colors/config.d.ts +10 -4
  3. package/declarations/colors/semantic.d.ts +4 -0
  4. package/declarations/colors/types.d.ts +118 -13
  5. package/declarations/colors/util.d.ts +2 -1
  6. package/declarations/colors.d.ts +1 -0
  7. package/declarations/components/accordion.d.ts +308 -0
  8. package/declarations/components/alert.d.ts +294 -0
  9. package/declarations/components/avatar.d.ts +9 -7
  10. package/declarations/components/button.d.ts +118 -48
  11. package/declarations/components/calendar.d.ts +382 -0
  12. package/declarations/components/chip.d.ts +79 -42
  13. package/declarations/components/close-button.d.ts +9 -7
  14. package/declarations/components/command.d.ts +281 -0
  15. package/declarations/components/divider.d.ts +9 -7
  16. package/declarations/components/dropdown.d.ts +11 -9
  17. package/declarations/components/external-link.d.ts +160 -0
  18. package/declarations/components/forms/forms-legacy.d.ts +108 -84
  19. package/declarations/components/forms/forms.d.ts +652 -162
  20. package/declarations/components/index.d.ts +11 -0
  21. package/declarations/components/kbd.d.ts +315 -0
  22. package/declarations/components/listbox.d.ts +122 -23
  23. package/declarations/components/notification-card.d.ts +182 -111
  24. package/declarations/components/notifications-container.d.ts +111 -40
  25. package/declarations/components/overlays.d.ts +429 -29
  26. package/declarations/components/pagination.d.ts +359 -0
  27. package/declarations/components/popover.d.ts +11 -9
  28. package/declarations/components/progress-bar.d.ts +29 -12
  29. package/declarations/components/segmented-control.d.ts +463 -0
  30. package/declarations/components/shared.d.ts +9 -0
  31. package/declarations/components/skeleton.d.ts +151 -0
  32. package/declarations/components/spinner.d.ts +19 -12
  33. package/declarations/components/table.d.ts +20 -12
  34. package/declarations/components/tabs.d.ts +463 -0
  35. package/declarations/components/tooltip.d.ts +270 -0
  36. package/declarations/plugin/default-config.d.ts +10 -4
  37. package/declarations/tw.d.ts +9 -7
  38. package/declarations/types.d.ts +18 -1
  39. package/dist/colors.js +2 -1
  40. package/dist/colors.js.map +1 -1
  41. package/dist/index.js +3831 -5
  42. package/dist/index.js.map +1 -1
  43. package/dist/overlays-DIZlPzFH.js +654 -0
  44. package/dist/overlays-DIZlPzFH.js.map +1 -0
  45. package/dist/plugin.js +54 -83
  46. package/dist/plugin.js.map +1 -1
  47. package/dist/util-Dp_dlOPq.js +482 -0
  48. package/dist/util-Dp_dlOPq.js.map +1 -0
  49. package/package.json +12 -12
  50. package/src/index.css +64 -15
  51. package/src/styles/font-faces.css +23 -5
  52. package/src/styles/theme.css +18 -7
  53. package/src/styles/typography.css +36 -29
  54. package/declarations/colors/contrast.d.ts +0 -16
  55. package/declarations/colors/defaults.d.ts +0 -66
  56. package/declarations/colors/palette-dark.d.ts +0 -123
  57. package/declarations/colors/palette-light.d.ts +0 -123
  58. package/dist/config-CDp8PRHs.js +0 -370
  59. package/dist/config-CDp8PRHs.js.map +0 -1
  60. package/dist/forms-legacy-CgoY8bbm.js +0 -1967
  61. package/dist/forms-legacy-CgoY8bbm.js.map +0 -1
  62. package/dist/index.css +0 -63
  63. package/dist/styles/font-faces.css +0 -70
  64. package/dist/styles/theme.css +0 -48
  65. package/dist/styles/typography.css +0 -387
@@ -0,0 +1,270 @@
1
+ import { type VariantProps } from '../tw';
2
+ declare const tooltip: import("tailwind-variants").TVReturnType<{
3
+ size: {
4
+ sm: {
5
+ base: string;
6
+ };
7
+ md: {
8
+ base: string;
9
+ };
10
+ lg: {
11
+ base: string;
12
+ };
13
+ };
14
+ intent: {
15
+ default: {
16
+ base: string;
17
+ arrow: string;
18
+ };
19
+ primary: {
20
+ base: string;
21
+ arrow: string;
22
+ };
23
+ secondary: {
24
+ base: string;
25
+ arrow: string;
26
+ };
27
+ tertiary: {
28
+ base: string;
29
+ arrow: string;
30
+ };
31
+ success: {
32
+ base: string;
33
+ arrow: string;
34
+ };
35
+ warning: {
36
+ base: string;
37
+ arrow: string;
38
+ };
39
+ danger: {
40
+ base: string;
41
+ arrow: string;
42
+ };
43
+ };
44
+ }, {
45
+ base: string[];
46
+ arrow: string;
47
+ }, undefined, {
48
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
49
+ size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
50
+ intent?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
51
+ } | undefined;
52
+ } & import("tailwind-variants/dist/config.js").TWMConfig & {
53
+ twMerge: true;
54
+ twMergeConfig: {
55
+ readonly extend: {
56
+ readonly classGroups: {
57
+ readonly 'icon-size': readonly [{
58
+ readonly 'size-icon': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
59
+ }];
60
+ readonly 'border-w': readonly [{
61
+ readonly border: readonly ["thin", "heavy", "aggressive"];
62
+ }];
63
+ readonly rounded: readonly [{
64
+ readonly rounded: readonly ["default", "pill"];
65
+ }];
66
+ readonly shadow: readonly [{
67
+ readonly 'shadow-elevation': string[];
68
+ }];
69
+ readonly opacity: readonly [{
70
+ readonly opacity: readonly ["hover", "disabled"];
71
+ }];
72
+ readonly 'font-size': readonly [{
73
+ readonly 'text-marquee': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
74
+ }, {
75
+ readonly 'text-header': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
76
+ }, {
77
+ readonly 'text-body': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
78
+ }, {
79
+ readonly 'text-strong': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
80
+ }, {
81
+ readonly 'text-code': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
82
+ }, {
83
+ readonly 'text-caption': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
84
+ }, {
85
+ readonly 'text-label': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
86
+ }];
87
+ };
88
+ readonly conflictingClassGroups: {
89
+ readonly 'icon-size': readonly ["w", "h", "size"];
90
+ };
91
+ };
92
+ };
93
+ }, {
94
+ size: {
95
+ sm: {
96
+ base: string;
97
+ };
98
+ md: {
99
+ base: string;
100
+ };
101
+ lg: {
102
+ base: string;
103
+ };
104
+ };
105
+ intent: {
106
+ default: {
107
+ base: string;
108
+ arrow: string;
109
+ };
110
+ primary: {
111
+ base: string;
112
+ arrow: string;
113
+ };
114
+ secondary: {
115
+ base: string;
116
+ arrow: string;
117
+ };
118
+ tertiary: {
119
+ base: string;
120
+ arrow: string;
121
+ };
122
+ success: {
123
+ base: string;
124
+ arrow: string;
125
+ };
126
+ warning: {
127
+ base: string;
128
+ arrow: string;
129
+ };
130
+ danger: {
131
+ base: string;
132
+ arrow: string;
133
+ };
134
+ };
135
+ }, {
136
+ base: string[];
137
+ arrow: string;
138
+ }, import("tailwind-variants").TVReturnType<{
139
+ size: {
140
+ sm: {
141
+ base: string;
142
+ };
143
+ md: {
144
+ base: string;
145
+ };
146
+ lg: {
147
+ base: string;
148
+ };
149
+ };
150
+ intent: {
151
+ default: {
152
+ base: string;
153
+ arrow: string;
154
+ };
155
+ primary: {
156
+ base: string;
157
+ arrow: string;
158
+ };
159
+ secondary: {
160
+ base: string;
161
+ arrow: string;
162
+ };
163
+ tertiary: {
164
+ base: string;
165
+ arrow: string;
166
+ };
167
+ success: {
168
+ base: string;
169
+ arrow: string;
170
+ };
171
+ warning: {
172
+ base: string;
173
+ arrow: string;
174
+ };
175
+ danger: {
176
+ base: string;
177
+ arrow: string;
178
+ };
179
+ };
180
+ }, {
181
+ base: string[];
182
+ arrow: string;
183
+ }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
184
+ size: {
185
+ sm: {
186
+ base: string;
187
+ };
188
+ md: {
189
+ base: string;
190
+ };
191
+ lg: {
192
+ base: string;
193
+ };
194
+ };
195
+ intent: {
196
+ default: {
197
+ base: string;
198
+ arrow: string;
199
+ };
200
+ primary: {
201
+ base: string;
202
+ arrow: string;
203
+ };
204
+ secondary: {
205
+ base: string;
206
+ arrow: string;
207
+ };
208
+ tertiary: {
209
+ base: string;
210
+ arrow: string;
211
+ };
212
+ success: {
213
+ base: string;
214
+ arrow: string;
215
+ };
216
+ warning: {
217
+ base: string;
218
+ arrow: string;
219
+ };
220
+ danger: {
221
+ base: string;
222
+ arrow: string;
223
+ };
224
+ };
225
+ }, {
226
+ size: {
227
+ sm: {
228
+ base: string;
229
+ };
230
+ md: {
231
+ base: string;
232
+ };
233
+ lg: {
234
+ base: string;
235
+ };
236
+ };
237
+ intent: {
238
+ default: {
239
+ base: string;
240
+ arrow: string;
241
+ };
242
+ primary: {
243
+ base: string;
244
+ arrow: string;
245
+ };
246
+ secondary: {
247
+ base: string;
248
+ arrow: string;
249
+ };
250
+ tertiary: {
251
+ base: string;
252
+ arrow: string;
253
+ };
254
+ success: {
255
+ base: string;
256
+ arrow: string;
257
+ };
258
+ warning: {
259
+ base: string;
260
+ arrow: string;
261
+ };
262
+ danger: {
263
+ base: string;
264
+ arrow: string;
265
+ };
266
+ };
267
+ }>, unknown, unknown, undefined>>;
268
+ export type TooltipVariants = VariantProps<typeof tooltip>;
269
+ export type TooltipSlots = keyof ReturnType<typeof tooltip>;
270
+ export { tooltip };
@@ -6,17 +6,20 @@ declare const defaultConfig: {
6
6
  colors: {
7
7
  neutral: import("../colors").SemanticColorCategory;
8
8
  primary: import("../colors").SemanticColorCategory;
9
- accent: import("../colors").SemanticColorCategory;
9
+ secondary: import("../colors").SemanticColorCategory;
10
+ tertiary: import("../colors").SemanticColorCategory;
10
11
  success: import("../colors").SemanticColorCategory;
11
12
  warning: import("../colors").SemanticColorCategory;
12
13
  danger: import("../colors").SemanticColorCategory;
13
14
  surface: import("../colors").SurfaceColors;
14
15
  'on-neutral'?: import("../colors").OnColorCategory;
15
16
  'on-primary'?: import("../colors").OnColorCategory;
16
- 'on-accent'?: import("../colors").OnColorCategory;
17
+ 'on-secondary'?: import("../colors").OnColorCategory;
18
+ 'on-tertiary'?: import("../colors").OnColorCategory;
17
19
  'on-success'?: import("../colors").OnColorCategory;
18
20
  'on-warning'?: import("../colors").OnColorCategory;
19
21
  'on-danger'?: import("../colors").OnColorCategory;
22
+ 'on-surface-input'?: string;
20
23
  'on-surface-modal'?: string;
21
24
  background: import("../colors").ColorScale;
22
25
  divider: import("../colors").ColorScale;
@@ -28,17 +31,20 @@ declare const defaultConfig: {
28
31
  colors: {
29
32
  neutral: import("../colors").SemanticColorCategory;
30
33
  primary: import("../colors").SemanticColorCategory;
31
- accent: import("../colors").SemanticColorCategory;
34
+ secondary: import("../colors").SemanticColorCategory;
35
+ tertiary: import("../colors").SemanticColorCategory;
32
36
  success: import("../colors").SemanticColorCategory;
33
37
  warning: import("../colors").SemanticColorCategory;
34
38
  danger: import("../colors").SemanticColorCategory;
35
39
  surface: import("../colors").SurfaceColors;
36
40
  'on-neutral'?: import("../colors").OnColorCategory;
37
41
  'on-primary'?: import("../colors").OnColorCategory;
38
- 'on-accent'?: import("../colors").OnColorCategory;
42
+ 'on-secondary'?: import("../colors").OnColorCategory;
43
+ 'on-tertiary'?: import("../colors").OnColorCategory;
39
44
  'on-success'?: import("../colors").OnColorCategory;
40
45
  'on-warning'?: import("../colors").OnColorCategory;
41
46
  'on-danger'?: import("../colors").OnColorCategory;
47
+ 'on-surface-input'?: string;
42
48
  'on-surface-modal'?: string;
43
49
  background: import("../colors").ColorScale;
44
50
  divider: import("../colors").ColorScale;
@@ -7,7 +7,7 @@ export declare const tv: import("tailwind-variants").CreateTV<{
7
7
  readonly extend: {
8
8
  readonly classGroups: {
9
9
  readonly 'icon-size': readonly [{
10
- readonly 'size-icon': readonly ["pico", "nano", "micro", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
10
+ readonly 'size-icon': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
11
11
  }];
12
12
  readonly 'border-w': readonly [{
13
13
  readonly border: readonly ["thin", "heavy", "aggressive"];
@@ -22,17 +22,19 @@ export declare const tv: import("tailwind-variants").CreateTV<{
22
22
  readonly opacity: readonly ["hover", "disabled"];
23
23
  }];
24
24
  readonly 'font-size': readonly [{
25
- readonly 'text-marquee': readonly ["pico", "nano", "micro", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
25
+ readonly 'text-marquee': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
26
26
  }, {
27
- readonly 'text-header': readonly ["pico", "nano", "micro", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
27
+ readonly 'text-header': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
28
28
  }, {
29
- readonly 'text-body': readonly ["pico", "nano", "micro", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
29
+ readonly 'text-body': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
30
30
  }, {
31
- readonly 'text-code': readonly ["pico", "nano", "micro", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
31
+ readonly 'text-strong': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
32
32
  }, {
33
- readonly 'text-caption': readonly ["pico", "nano", "micro", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
33
+ readonly 'text-code': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
34
34
  }, {
35
- readonly 'text-label': readonly ["pico", "nano", "micro", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
35
+ readonly 'text-caption': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
36
+ }, {
37
+ readonly 'text-label': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
36
38
  }];
37
39
  };
38
40
  readonly conflictingClassGroups: {
@@ -19,15 +19,32 @@ export interface LayoutTheme {
19
19
  /**
20
20
  * Border radius configuration for components.
21
21
  * Values can be any valid CSS length unit (px, rem, em, etc.)
22
+ *
23
+ * `DEFAULT` is the single knob for the whole system: every other step is
24
+ * derived from it via `calc()`, so setting it alone scales all component
25
+ * radii proportionally.
26
+ *
27
+ * ```ts
28
+ * frontile({ layout: { radius: { DEFAULT: '0.75rem' } } }) // softer overall
29
+ * frontile({ layout: { radius: { DEFAULT: '0' } } }) // fully squared off
30
+ * ```
31
+ *
32
+ * The individual steps are escape hatches — set one only to break a single
33
+ * step out of the derived scale. `none` and `pill` are absolutes and are not
34
+ * affected by `DEFAULT`.
22
35
  */
23
36
  radius?: {
37
+ /** Base unit the scale is derived from. Defaults to `0.5rem` (8px). */
38
+ DEFAULT?: string;
39
+ none?: string;
24
40
  xs?: string;
25
41
  sm?: string;
26
42
  md?: string;
27
43
  lg?: string;
28
- DEFAULT?: string;
29
44
  xl?: string;
30
45
  '2xl'?: string;
46
+ '3xl'?: string;
47
+ '4xl'?: string;
31
48
  full?: string;
32
49
  pill?: string;
33
50
  };
package/dist/colors.js CHANGED
@@ -1,2 +1,3 @@
1
- export { b as blue, g as gray, a as green, o as orange, p as pink, r as red, s as semanticColors, t as teal, v as violet, y as yellow } from './config-CDp8PRHs.js';
1
+ export { b as blue, g as getContrastingColor, a as gray, c as green, o as orange, p as pink, r as red, s as semanticColors, d as swapColorValues, t as teal, v as violet, y as yellow } from './util-Dp_dlOPq.js';
2
+ export { parse, wcagContrast } from 'culori';
2
3
  //# sourceMappingURL=colors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"colors.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}