toku-ui 4.3.0 → 4.4.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/components/TThemeProvider/TThemeProvider.stories.d.ts +1 -1
- package/dist/index.es.js +274 -274
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tokens.css +60 -59
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[data-v-519905d4]{box-sizing:border-box;margin:0}.t-chip[data-v-519905d4]{border:.5px solid var(--v3457cee4);background-color:var(--v38cf7840);border-radius:32px;align-items:center;gap:4px;padding:4px 8px;display:inline-flex}.t-chip[data-v-519905d4] *{color:var(--v3457cee4);font-size:.75rem;line-height:18px}.t-chip--active[data-v-519905d4]{border:.5px solid var(--v2d9fac57);background-color:var(--v4320e4fd)}.t-chip--active[data-v-519905d4] *{color:var(--v2d9fac57)}.t-file-upload[data-v-
|
|
1
|
+
[data-v-519905d4]{box-sizing:border-box;margin:0}.t-chip[data-v-519905d4]{border:.5px solid var(--v3457cee4);background-color:var(--v38cf7840);border-radius:32px;align-items:center;gap:4px;padding:4px 8px;display:inline-flex}.t-chip[data-v-519905d4] *{color:var(--v3457cee4);font-size:.75rem;line-height:18px}.t-chip--active[data-v-519905d4]{border:.5px solid var(--v2d9fac57);background-color:var(--v4320e4fd)}.t-chip--active[data-v-519905d4] *{color:var(--v2d9fac57)}.t-file-upload[data-v-0e554550]{gap:var(--space-2);flex-direction:column;width:100%;display:flex}.t-file-upload[data-disabled] .t-file-upload__box[data-state=empty][data-v-0e554550]{cursor:not-allowed;opacity:.5}.t-file-upload[data-disabled] .t-file-upload__box[data-state=empty][data-v-0e554550]:hover{background-color:#0000}.t-file-upload[data-disabled] .t-file-upload__remove[data-v-0e554550]{cursor:not-allowed;opacity:.5}.t-file-upload:focus-within .t-file-upload__box[data-state=empty][data-v-0e554550]{border:1px dashed var(--color-brand-9);background-color:var(--color-brand-a-3);outline:none}.t-file-upload__label[data-v-0e554550]{display:flex}.t-file-upload__box[data-v-0e554550]{justify-content:center;align-items:center;gap:var(--space-2);padding:var(--space-5) var(--space-4);border-radius:var(--radius-md);transition:background-color .15s,border-color .15s;display:flex;position:relative}.t-file-upload__box[data-state=empty][data-v-0e554550]{border:1px dashed var(--color-gray-4);cursor:pointer;background-color:#0000}.t-file-upload__box[data-state=empty][data-v-0e554550]:hover{background-color:var(--color-gray-1)}.t-file-upload__box[data-state=loading][data-v-0e554550]{border:1px dashed var(--color-brand-9);background-color:var(--color-brand-a-3)}.t-file-upload__box[data-state=loaded][data-v-0e554550]{border:1px solid var(--color-brand-9);background-color:var(--color-brand-a-3);padding:var(--space-2) var(--space-4)}.t-file-upload__input[data-v-0e554550]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.t-file-upload__cta-text[data-v-0e554550]{text-decoration:underline}.t-file-upload__filename[data-v-0e554550]{min-width:0;overflow:hidden}.t-file-upload__filename-text[data-v-0e554550]{text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;overflow:hidden}.t-file-upload__remove[data-v-0e554550]{top:calc(-1 * var(--space-2));background:radial-gradient(circle, var(--color-brand-9) 0, var(--color-brand-9) 6px, transparent 7.5px);border-radius:var(--radius-full);cursor:pointer;box-sizing:border-box;border:none;justify-content:center;align-items:center;width:18px;height:18px;padding:0;display:flex;position:absolute;right:-2px}.t-file-upload__hints[data-v-0e554550]{justify-content:space-between;gap:var(--space-4);display:flex}.t-switch[data-v-f80e4486]{align-items:center;gap:var(--space-2);display:inline-flex}.t-switch[data-label-position=left][data-v-f80e4486]{flex-direction:row-reverse}.t-switch[data-disabled][data-v-f80e4486]{cursor:not-allowed;opacity:var(--opacity-disabled)}.t-switch-track[data-v-f80e4486]{border-radius:var(--radius-pill-default);background:var(--color-gray-3);cursor:pointer;outline:var(--focus-ring-width) solid transparent;outline-offset:var(--focus-ring-offset);width:2.5rem;height:1.25rem;transition:background-color var(--motion-control-duration) var(--motion-control-easing), outline-color var(--motion-control-duration) var(--motion-control-easing), box-shadow var(--motion-control-duration) var(--motion-control-easing);border:0;flex-shrink:0;padding:0;display:inline-flex;position:relative}.t-switch-track[data-state=checked][data-v-f80e4486]{background:var(--color-bg-primary-default)}.t-switch-track[data-v-f80e4486]:not([data-disabled]):hover{background:var(--color-gray-4)}.t-switch-track:not([data-disabled]):hover[data-state=checked][data-v-f80e4486]{background:var(--color-bg-primary-hover)}.t-switch-track[data-disabled][data-v-f80e4486]:not([data-state=checked]){background:var(--color-gray-2)}.t-switch-track[data-disabled][data-v-f80e4486]{cursor:not-allowed}.t-switch-track[data-v-f80e4486]:focus-visible{outline-color:var(--color-ring-focus-default);box-shadow:0 0 0 var(--focus-ring-halo-width) var(--color-ring-focus-halo-default)}.t-switch-thumb[data-v-f80e4486]{border-radius:var(--radius-pill-default);background:var(--color-bg-surface-raised-default);width:1rem;height:1rem;box-shadow:var(--shadow-sm);transition:transform var(--motion-control-duration) var(--motion-control-easing), box-shadow var(--motion-control-duration) var(--motion-control-easing);will-change:transform;margin:2px;display:block}.t-switch-thumb[data-state=checked][data-v-f80e4486]{transform:translate(calc(1.5rem - 4px))}.t-switch-track:not([data-disabled]):active .t-switch-thumb[data-v-f80e4486],.t-switch-track[data-disabled] .t-switch-thumb[data-v-f80e4486]{box-shadow:none}.t-switch-label[data-v-f80e4486]{font-family:var(--font-family-base);font-size:var(--font-b2-font-size);line-height:var(--font-b2-line-height);font-weight:var(--font-weight-regular);color:var(--color-text-default-default);cursor:pointer;-webkit-user-select:none;user-select:none}.t-switch[data-disabled] .t-switch-label[data-v-f80e4486]{cursor:not-allowed;color:var(--color-text-disabled-default)}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/tokens.css
CHANGED
|
@@ -3,54 +3,54 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root, .toku-theme {
|
|
6
|
-
--color-brand-1: #
|
|
7
|
-
--color-brand-2: #
|
|
8
|
-
--color-brand-3: #
|
|
9
|
-
--color-brand-4: #
|
|
10
|
-
--color-brand-5: #
|
|
11
|
-
--color-brand-6: #
|
|
12
|
-
--color-brand-7: #
|
|
13
|
-
--color-brand-8: #
|
|
14
|
-
--color-brand-9: #
|
|
15
|
-
--color-brand-10: #
|
|
16
|
-
--color-brand-11: #
|
|
17
|
-
--color-brand-12: #
|
|
18
|
-
--color-brand-a-1: rgba(
|
|
19
|
-
--color-brand-a-2: rgba(
|
|
20
|
-
--color-brand-a-3: rgba(
|
|
21
|
-
--color-brand-a-4: rgba(
|
|
22
|
-
--color-brand-a-5: rgba(
|
|
23
|
-
--color-brand-a-6: rgba(
|
|
24
|
-
--color-brand-a-7: rgba(
|
|
25
|
-
--color-brand-a-8: rgba(
|
|
26
|
-
--color-brand-a-9: rgba(
|
|
27
|
-
--color-brand-a-10: rgba(
|
|
28
|
-
--color-brand-a-11: rgba(
|
|
29
|
-
--color-brand-a-12: rgba(
|
|
30
|
-
--color-gray-1: #
|
|
31
|
-
--color-gray-2: #
|
|
32
|
-
--color-gray-3: #
|
|
33
|
-
--color-gray-4: #
|
|
34
|
-
--color-gray-5: #
|
|
35
|
-
--color-gray-6: #
|
|
36
|
-
--color-gray-7: #
|
|
37
|
-
--color-gray-8: #
|
|
38
|
-
--color-gray-9: #
|
|
39
|
-
--color-gray-10: #
|
|
40
|
-
--color-gray-11: #
|
|
41
|
-
--color-gray-12: #
|
|
42
|
-
--color-gray-a-1: rgba(0, 0, 0, 0.
|
|
43
|
-
--color-gray-a-2: rgba(0, 0, 0, 0.
|
|
44
|
-
--color-gray-a-3: rgba(0, 0, 0, 0.
|
|
45
|
-
--color-gray-a-4: rgba(0, 0, 0, 0.
|
|
6
|
+
--color-brand-1: #f3f1f4; /** App background. Was primary.light5. */
|
|
7
|
+
--color-brand-2: #f0ecf3; /** Subtle background. Was primary.light4. */
|
|
8
|
+
--color-brand-3: #ebe1f2; /** UI element background. Was primary.light3. */
|
|
9
|
+
--color-brand-4: #e5d5f0; /** Hovered UI element background. Was primary.light2. */
|
|
10
|
+
--color-brand-5: #ddc7ed; /** Active / selected UI element background. */
|
|
11
|
+
--color-brand-6: #d2b5e7; /** Subtle borders / separators. */
|
|
12
|
+
--color-brand-7: #c59fdf; /** UI element borders / focused inputs. Legacy primary.light1 (focus / active borders). */
|
|
13
|
+
--color-brand-8: #b481d5; /** Hovered UI element borders. */
|
|
14
|
+
--color-brand-9: #3c1053; /** Solid background (brand buttons, header). The anchor — exact input hex (#3C1053). Was primary.main / primary.dark. */
|
|
15
|
+
--color-brand-10: #51276a; /** Hovered solid background. Radix step 10 — lighter than step 9, the Radix convention for a dark accent. Was primary.toku. (Tenant themes darken step 10 via createTheme's generator, which suits non-dark brands.) */
|
|
16
|
+
--color-brand-11: #72418f; /** Low-contrast text (secondary text). */
|
|
17
|
+
--color-brand-12: #461b5e; /** High-contrast text (headings, primary text). Was primary.ultraDark. */
|
|
18
|
+
--color-brand-a-1: rgba(144, 42, 195, 0.02); /** ≈2% opacity. Faintest brand tint. */
|
|
19
|
+
--color-brand-a-2: rgba(118, 16, 194, 0.04); /** ≈4% opacity. */
|
|
20
|
+
--color-brand-a-3: rgba(124, 3, 209, 0.08); /** ≈8% opacity. */
|
|
21
|
+
--color-brand-a-4: rgba(125, 5, 208, 0.13); /** ≈13% opacity. */
|
|
22
|
+
--color-brand-a-5: rgba(118, 1, 203, 0.19); /** ≈19% opacity. Common for focus ring halos. */
|
|
23
|
+
--color-brand-a-6: rgba(112, 1, 192, 0.26); /** ≈26% opacity. */
|
|
24
|
+
--color-brand-a-7: rgba(109, 1, 182, 0.35); /** ≈35% opacity. */
|
|
25
|
+
--color-brand-a-8: rgba(108, 1, 178, 0.47); /** ≈47% opacity. */
|
|
26
|
+
--color-brand-a-9: rgba(48, 1, 73, 0.94); /** ≈94% opacity. */
|
|
27
|
+
--color-brand-a-10: rgba(51, 1, 81, 0.84); /** ≈84% opacity. */
|
|
28
|
+
--color-brand-a-11: rgba(68, 1, 107, 0.74); /** ≈74% opacity. */
|
|
29
|
+
--color-brand-a-12: rgba(48, 0, 75, 0.89); /** ≈89% opacity. Near-opaque brand. */
|
|
30
|
+
--color-gray-1: #f2f2f2; /** App background. Radix gray-1. */
|
|
31
|
+
--color-gray-2: #eeeeee; /** Subtle background. Radix gray-2. */
|
|
32
|
+
--color-gray-3: #e4e4e4; /** UI element background. Radix gray-3. */
|
|
33
|
+
--color-gray-4: #dbdbdb; /** Hovered UI element background. Radix gray-4. */
|
|
34
|
+
--color-gray-5: #d3d3d3; /** Active / selected UI element background. Radix gray-5. */
|
|
35
|
+
--color-gray-6: #cbcbcb; /** Subtle borders / separators. Radix gray-6. */
|
|
36
|
+
--color-gray-7: #c0c0c0; /** UI element borders / focused inputs. Radix gray-7. */
|
|
37
|
+
--color-gray-8: #acacac; /** Hovered UI element borders. Radix gray-8. */
|
|
38
|
+
--color-gray-9: #7f7f7f; /** Solid neutral fill. Radix gray-9. */
|
|
39
|
+
--color-gray-10: #747474; /** Hovered solid neutral fill. Radix gray-10. */
|
|
40
|
+
--color-gray-11: #575757; /** Low-contrast text (secondary). Radix gray-11. */
|
|
41
|
+
--color-gray-12: #202020; /** High-contrast text (body / headings). Radix gray-12. */
|
|
42
|
+
--color-gray-a-1: rgba(0, 0, 0, 0.01); /** ≈1% opacity. */
|
|
43
|
+
--color-gray-a-2: rgba(0, 0, 0, 0.03); /** ≈3% opacity. */
|
|
44
|
+
--color-gray-a-3: rgba(0, 0, 0, 0.07); /** ≈7% opacity. Subtle dividers. */
|
|
45
|
+
--color-gray-a-4: rgba(0, 0, 0, 0.11); /** ≈11% opacity. */
|
|
46
46
|
--color-gray-a-5: rgba(0, 0, 0, 0.14); /** ≈14% opacity. */
|
|
47
|
-
--color-gray-a-6: rgba(0, 0, 0, 0.
|
|
48
|
-
--color-gray-a-7: rgba(0, 0, 0, 0.
|
|
49
|
-
--color-gray-a-8: rgba(0, 0, 0, 0.
|
|
50
|
-
--color-gray-a-9: rgba(0, 0, 0, 0.
|
|
51
|
-
--color-gray-a-10: rgba(0, 0, 0, 0.
|
|
52
|
-
--color-gray-a-11: rgba(0, 0, 0, 0.
|
|
53
|
-
--color-gray-a-12: rgba(0, 0, 0, 0.
|
|
47
|
+
--color-gray-a-6: rgba(0, 0, 0, 0.17); /** ≈17% opacity. */
|
|
48
|
+
--color-gray-a-7: rgba(0, 0, 0, 0.22); /** ≈22% opacity. */
|
|
49
|
+
--color-gray-a-8: rgba(0, 0, 0, 0.3); /** ≈30% opacity. */
|
|
50
|
+
--color-gray-a-9: rgba(0, 0, 0, 0.48); /** ≈48% opacity. Modal backdrops. */
|
|
51
|
+
--color-gray-a-10: rgba(0, 0, 0, 0.53); /** ≈53% opacity. */
|
|
52
|
+
--color-gray-a-11: rgba(0, 0, 0, 0.64); /** ≈64% opacity. */
|
|
53
|
+
--color-gray-a-12: rgba(0, 0, 0, 0.87); /** ≈87% opacity. */
|
|
54
54
|
--color-red-7: #b72e29; /** Solid danger color. Was colors.error. */
|
|
55
55
|
--color-green-7: #408645; /** Solid success color. Was colors.success. */
|
|
56
56
|
--color-amber-7: #ffb038; /** Solid in-process color. Was colors.inProcess. */
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
--color-blue-7: #3070dd; /** Solid info color. Was colors.info. */
|
|
60
60
|
--color-white: #ffffff; /** Pure white. Was typography.buttonTextColor (inline). */
|
|
61
61
|
--color-black: #000000; /** Pure black. Add as primitive if needed; otherwise reach color.gray.12. See proposal §8 Q27. */
|
|
62
|
+
--color-background: #f5f5f5; /** App page canvas — Radix's dedicated --color-background, distinct from gray-1. Sits between gray-1 and white. Was colors.background in base.ts. */
|
|
62
63
|
--space-0: 0; /** Zero spacing. */
|
|
63
64
|
--space-1: 4px; /** Base unit. Was theme.spacing. */
|
|
64
65
|
--space-2: 8px;
|
|
@@ -157,7 +158,7 @@
|
|
|
157
158
|
--focus-ring-halo-width: 4px; /** TBD: design — width of the translucent halo. */
|
|
158
159
|
--breakpoint-mobile: 0px;
|
|
159
160
|
--breakpoint-desktop: 769px;
|
|
160
|
-
--color-bg-surface-default: var(--color-
|
|
161
|
+
--color-bg-surface-default: var(--color-background); /** Default app surface / page canvas. Radix --color-background (#F5F5F5). */
|
|
161
162
|
--color-bg-surface-subtle-default: var(--color-gray-2);
|
|
162
163
|
--color-bg-surface-raised-default: var(--color-white); /** Elevated surfaces (cards on a non-white app bg). */
|
|
163
164
|
--color-bg-surface-sunken-default: var(--color-gray-3); /** Inset surfaces (input bg on a card). */
|
|
@@ -170,10 +171,10 @@
|
|
|
170
171
|
--color-bg-success-default: var(--color-green-7);
|
|
171
172
|
--color-bg-warning-default: var(--color-orange-7);
|
|
172
173
|
--color-bg-info-default: var(--color-blue-7);
|
|
173
|
-
--color-bg-overlay-default: var(--color-gray-a-
|
|
174
|
+
--color-bg-overlay-default: var(--color-gray-a-9); /** Modal backdrop / scrim. ~48% black over the page (Radix gray-a-9). */
|
|
174
175
|
--color-bg-disabled-default: var(--color-gray-3); /** Generic disabled surface. */
|
|
175
|
-
--color-text-default-default: var(--color-gray-
|
|
176
|
-
--color-text-muted-default: var(--color-gray-
|
|
176
|
+
--color-text-default-default: var(--color-gray-12); /** Default body text. High-contrast text per Radix role layout (gray-12, #202020 — ~15:1 on white). */
|
|
177
|
+
--color-text-muted-default: var(--color-gray-11); /** Secondary / supporting text. Low-contrast text per Radix (gray-11, #575757 — ~7:1 on white, passes AA). */
|
|
177
178
|
--color-text-primary-default: var(--color-brand-11); /** Brand-tinted text (e.g. links inside a brand-primary surface). */
|
|
178
179
|
--color-text-on-primary-default: var(--color-white); /** Text on top of color.bg.primary. Was typography.buttonTextColor. */
|
|
179
180
|
--color-text-danger-default: var(--color-red-7); /** Error text. Will move to color.red.11 once full red ramp lands. */
|
|
@@ -181,24 +182,24 @@
|
|
|
181
182
|
--color-text-warning-default: var(--color-orange-7);
|
|
182
183
|
--color-text-info-default: var(--color-blue-7);
|
|
183
184
|
--color-text-link-default: var(--color-brand-9); /** TBD: design — link color. May want a dedicated blue for inline links rather than reusing brand. */
|
|
184
|
-
--color-text-disabled-default: var(--color-gray-
|
|
185
|
+
--color-text-disabled-default: var(--color-gray-9); /** Disabled text (gray-9). Intentionally low-contrast; exempt from WCAG minimums. Not for placeholders — add a dedicated placeholder token if one is needed. */
|
|
185
186
|
--color-text-inverse-default: var(--color-white); /** Text on dark surfaces. */
|
|
186
|
-
--color-border-default-default: var(--color-gray-
|
|
187
|
-
--color-border-subtle-default: var(--color-gray-
|
|
188
|
-
--color-border-strong-default: var(--color-gray-
|
|
187
|
+
--color-border-default-default: var(--color-gray-7); /** Default UI border — inputs, cards (gray-7, Radix UI element border). */
|
|
188
|
+
--color-border-subtle-default: var(--color-gray-6); /** Subtle border / separator (gray-6). */
|
|
189
|
+
--color-border-strong-default: var(--color-gray-8); /** Strong / hovered border (gray-8). */
|
|
189
190
|
--color-border-primary-default: var(--color-brand-7);
|
|
190
191
|
--color-border-danger-default: var(--color-red-7);
|
|
191
192
|
--color-border-focus-default: var(--color-brand-7); /** Focus ring color. TBD: design may want a dedicated focus color for higher contrast. */
|
|
192
|
-
--color-border-disabled-default: var(--color-gray-
|
|
193
|
-
--color-icon-default-default: var(--color-gray-
|
|
194
|
-
--color-icon-muted-default: var(--color-gray-
|
|
193
|
+
--color-border-disabled-default: var(--color-gray-5); /** Disabled control border (gray-5). */
|
|
194
|
+
--color-icon-default-default: var(--color-gray-12); /** Default icon — mirrors text.default (gray-12). */
|
|
195
|
+
--color-icon-muted-default: var(--color-gray-11); /** Muted icon — mirrors text.muted (gray-11). */
|
|
195
196
|
--color-icon-primary-default: var(--color-brand-9);
|
|
196
197
|
--color-icon-danger-default: var(--color-red-7);
|
|
197
198
|
--color-icon-success-default: var(--color-green-7);
|
|
198
199
|
--color-icon-warning-default: var(--color-orange-7);
|
|
199
200
|
--color-icon-info-default: var(--color-blue-7);
|
|
200
201
|
--color-icon-on-primary-default: var(--color-white);
|
|
201
|
-
--color-icon-disabled-default: var(--color-gray-
|
|
202
|
+
--color-icon-disabled-default: var(--color-gray-9); /** Disabled icon (gray-9). */
|
|
202
203
|
--color-ring-focus-default: var(--color-brand-7); /** Solid focus outline color. */
|
|
203
204
|
--color-ring-focus-halo-default: var(--color-brand-a-5); /** Translucent focus halo. Uses brand alpha so it tints over any background without obscuring it. */
|
|
204
205
|
--radius-control-default: var(--radius-md); /** Buttons, selects, switches — interactive controls. */
|