@tensor_1/tokens 2.19.0 → 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.0",
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": [
@@ -5,7 +5,8 @@
5
5
  .uix-card__title { font-size: var(--uix-text-h3); font-weight: 600; }
6
6
  .uix-card__subtitle { font-size: var(--uix-text-meta); color: var(--uix-text-muted); margin-top: var(--uix-space-1); }
7
7
  .uix-card__body { padding: var(--uix-space-6); }
8
- .uix-card__footer { padding: var(--uix-space-4) var(--uix-space-6); border-top: 1px solid var(--uix-border); display: flex; gap: var(--uix-space-2); justify-content: flex-end; }
8
+ /* wraps at 320 px (WCAG 1.4.10) */
9
+ .uix-card__footer { padding: var(--uix-space-4) var(--uix-space-6); border-top: 1px solid var(--uix-border); display: flex; flex-wrap: wrap; gap: var(--uix-space-2); justify-content: flex-end; }
9
10
  .uix-card--interactive { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: border-color var(--uix-dur-fast) var(--uix-ease-out), box-shadow var(--uix-dur-fast) var(--uix-ease-out), transform var(--uix-dur-fast) var(--uix-ease-out); }
10
11
  .uix-card--interactive:is(:hover, :focus-visible) { border-color: var(--uix-border-strong); box-shadow: var(--uix-shadow-md); text-decoration: none; transform: translateY(-1px); }
11
12
  .uix-card--interactive:focus-visible { outline: 2px solid var(--uix-ring); outline-offset: 2px; }
@@ -22,7 +22,8 @@
22
22
  .uix-composer:focus-within { border-color: var(--uix-ring); box-shadow: 0 0 0 3px var(--uix-brand-muted); }
23
23
  .uix-composer textarea { width: 100%; border: 0; background: transparent; resize: vertical; padding: var(--uix-space-3) var(--uix-space-3); color: var(--uix-text); font: inherit; min-height: 60px; }
24
24
  .uix-composer textarea:focus { outline: none; }
25
- .uix-composer__bar { display: flex; justify-content: flex-end; gap: var(--uix-space-2); padding: var(--uix-space-2); border-top: 1px solid var(--uix-border); }
25
+ /* wraps at 320 px (WCAG 1.4.10): toggle + submit stack, never clip */
26
+ .uix-composer__bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--uix-space-2); row-gap: var(--uix-space-2); padding: var(--uix-space-2); border-top: 1px solid var(--uix-border); }
26
27
  /* Block so the thumbnail drops onto its own line below the comment text (not inline with it). */
27
28
  .uix-comment__image { display: block; margin-top: var(--uix-space-2); padding: 0; border-radius: var(--uix-radius-sm); overflow: hidden; border: 1px solid var(--uix-border); background: none; cursor: zoom-in; max-width: 200px; }
28
29
  .uix-comment__image img { display: block; width: 100%; height: auto; }
@@ -29,7 +29,8 @@
29
29
  .uix-dialog__close:hover { background: var(--uix-bg-hover); color: var(--uix-text); }
30
30
  .uix-dialog__close svg { width: var(--uix-icon-md); height: var(--uix-icon-md); }
31
31
  .uix-dialog__body { padding: var(--uix-space-5); color: var(--uix-text-hushed); }
32
- .uix-dialog__footer { display: flex; gap: var(--uix-space-2); justify-content: flex-end; padding: var(--uix-space-4) var(--uix-space-5); border-top: 1px solid var(--uix-border); }
32
+ /* wraps at 320 px (WCAG 1.4.10) */
33
+ .uix-dialog__footer { display: flex; flex-wrap: wrap; gap: var(--uix-space-2); justify-content: flex-end; padding: var(--uix-space-4) var(--uix-space-5); border-top: 1px solid var(--uix-border); }
33
34
  }
34
35
 
35
36
  @layer uix.components {
@@ -123,7 +123,8 @@
123
123
  /* composer variant — the composer draws the box; the toolbar joins the action bar */
124
124
  .uix-rich-text--composer { border-radius: var(--uix-radius-md); }
125
125
  .uix-rich-text--composer.uix-rich-text:focus-within { box-shadow: 0 0 0 3px var(--uix-brand-muted); }
126
- .uix-rich-text--composer .uix-rich-text__bar { align-items: center; justify-content: flex-start; min-width: 0; }
126
+ /* one row: the toolbar scrolls instead of wrapping */
127
+ .uix-rich-text--composer .uix-rich-text__bar { flex-wrap: nowrap; align-items: center; justify-content: flex-start; min-width: 0; }
127
128
  .uix-rich-text--composer .uix-rich-text__toolbar { flex: 1 1 auto; padding: 0; border-bottom: 0; }
128
129
  .uix-rich-text--composer .uix-rich-text__group--end { margin-left: 0; }
129
130
  .uix-rich-text--composer .uix-rich-text__counter,
@@ -1,9 +1,13 @@
1
1
  /* uix segmented control — depends only on --uix-* tokens. */
2
2
  @layer uix.components {
3
- .uix-segmented { display: inline-flex; 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); }
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); }