@tensor_1/tokens 2.19.1 → 2.19.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tensor_1/tokens",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.2",
|
|
4
4
|
"description": "UIx v2 design tokens — the --uix-* contract for house products (Tensor, POSx, SHOPx). One DTCG source -> CSS variables, Tailwind theme, and typed TS constants.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/* uix segmented control — depends only on --uix-* tokens. */
|
|
2
2
|
@layer uix.components {
|
|
3
|
-
|
|
3
|
+
/* min-inline-size: 0 + max-inline-size: 100% — a <fieldset> defaults to min-inline-size:
|
|
4
|
+
min-content, so a segmented control on one could never be narrower than its longest words
|
|
5
|
+
and ran past its container at 320 px (WCAG 1.4.10). The options wrap instead. */
|
|
6
|
+
.uix-segmented { display: inline-flex; min-inline-size: 0; max-inline-size: 100%; padding: var(--uix-space-1); gap: var(--uix-space-1); background: var(--uix-bg-subtle); border: 1px solid var(--uix-border); border-radius: var(--uix-radius-md); }
|
|
4
7
|
.uix-segmented__option {
|
|
5
8
|
border: 0; background: transparent; color: var(--uix-text-hushed); font: inherit; font-size: var(--uix-text-meta); font-weight: 500;
|
|
6
9
|
padding: var(--uix-space-2) var(--uix-space-3); border-radius: calc(var(--uix-radius-md) - 3px); cursor: pointer;
|
|
10
|
+
white-space: normal; overflow-wrap: anywhere;
|
|
7
11
|
transition: background-color var(--uix-dur-fast) var(--uix-ease-out), color var(--uix-dur-fast) var(--uix-ease-out);
|
|
8
12
|
}
|
|
9
13
|
.uix-segmented__option:hover { color: var(--uix-text); }
|