@tensor_1/tokens 2.21.0 → 2.22.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensor_1/tokens",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
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": [
@@ -8,6 +8,10 @@
8
8
  .uix-avatar img { width: 100%; height: 100%; object-fit: cover; }
9
9
  .uix-avatar--sm { width: 24px; height: 24px; font-size: var(--uix-text-eyebrow); }
10
10
  .uix-avatar--lg { width: 44px; height: 44px; }
11
+ .uix-avatar--xl { width: 64px; height: 64px; font-size: var(--uix-text-h3); }
12
+ .uix-avatar--2xl { width: 96px; height: 96px; font-size: var(--uix-text-h2); }
13
+ .uix-avatar--xl .uix-avatar__status { width: 14px; height: 14px; right: 1px; bottom: 1px; }
14
+ .uix-avatar--2xl .uix-avatar__status { width: 18px; height: 18px; border-width: 3px; right: 4px; bottom: 4px; }
11
15
  .uix-avatar__status { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--uix-surface); background: var(--uix-success); }
12
16
  .uix-avatar-group { display: inline-flex; }
13
17
  .uix-avatar-group .uix-avatar { box-shadow: 0 0 0 2px var(--uix-surface); margin-left: calc(-1 * var(--uix-space-2)); }
@@ -1,9 +1,12 @@
1
1
  @layer uix.components {
2
2
  .uix-brand-profiles { display:grid; grid-template-columns:minmax(16rem,.8fr) minmax(18rem,1.2fr); gap:var(--uix-space-5); color:var(--uix-text); }
3
- .uix-brand-profiles__form { display:grid; align-content:start; gap:var(--uix-space-3); }
4
- .uix-brand-profiles__form label { display:grid; gap:var(--uix-space-2); font-weight:600; }
5
- .uix-brand-profiles__colors { display:grid; grid-template-columns:1fr 1fr; gap:var(--uix-space-3); }
3
+ .uix-brand-profiles__form { display:grid; grid-template-columns:minmax(0,1fr); align-content:start; gap:var(--uix-space-3); min-width:0; }
4
+ .uix-brand-profiles__form label { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--uix-space-2); min-width:0; font-weight:600; }
5
+ .uix-brand-profiles__colors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--uix-space-3); }
6
6
  .uix-brand-profiles__upload { padding:var(--uix-space-3); border:1px dashed var(--uix-border-strong); border-radius:var(--uix-radius-md); background:var(--uix-bg-subtle); }
7
+ /* A native file input has a ~360px intrinsic width; let it shrink so it cannot push the form under the preview. */
8
+ .uix-brand-profiles__upload input { min-width:0; max-width:100%; }
9
+ .uix-brand-profiles__colors .uix-color-picker__trigger { max-width:100%; }
7
10
  .uix-brand-profiles__preview { overflow:hidden; align-self:start; border:1px solid var(--uix-border); border-radius:var(--uix-radius-lg); background:var(--uix-surface); box-shadow:var(--uix-shadow-sm); font-family:var(--uix-font-sans); }
8
11
  .uix-brand-profiles__preview-header { display:flex; align-items:center; gap:var(--uix-space-3); padding:var(--uix-space-4); background:var(--uix-accent); color:var(--uix-accent-fg); }
9
12
  .uix-brand-profiles__preview-header img,.uix-brand-profiles__logo-placeholder { display:grid; place-items:center; width:3rem; height:3rem; border-radius:var(--uix-radius-md); background:var(--uix-surface); color:var(--uix-text); object-fit:contain; }
@@ -1,9 +1,10 @@
1
1
  @layer uix.components {
2
2
  .uix-metric-input { display:grid; gap:var(--uix-space-2); color:var(--uix-text); }
3
- .uix-metric-input__control { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:stretch; max-width:22rem; }
4
- .uix-metric-input__control .uix-input { border-top-right-radius:0; border-bottom-right-radius:0; font-variant-numeric:tabular-nums; }
3
+ .uix-metric-input__control { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:stretch; height:var(--uix-control-h); max-width:22rem; }
4
+ /* The row is pinned to the control height: the stacked steps split it (1fr each) instead of growing it past the input. */
5
+ .uix-metric-input__control .uix-input { height:100%; border-top-right-radius:0; border-bottom-right-radius:0; font-variant-numeric:tabular-nums; }
5
6
  .uix-metric-input__unit { display:flex; align-items:center; padding-inline:var(--uix-space-3); border-block:1px solid var(--uix-border-strong); background:var(--uix-bg-subtle); color:var(--uix-text-muted); }
6
- .uix-metric-input__steps { display:grid; width:2.5rem; }
7
- .uix-metric-input__step { border:1px solid var(--uix-border-strong); background:var(--uix-surface); color:var(--uix-text); line-height:1; } .uix-metric-input__step:first-child { border-top-right-radius:var(--uix-radius-md); } .uix-metric-input__step:last-child { border-top:0; border-bottom-right-radius:var(--uix-radius-md); }
7
+ .uix-metric-input__steps { display:grid; grid-template-rows:1fr 1fr; width:2.5rem; min-height:0; }
8
+ .uix-metric-input__step { min-height:0; padding:0; border:1px solid var(--uix-border-strong); background:var(--uix-surface); color:var(--uix-text); line-height:1; } .uix-metric-input__step:first-child { border-top-right-radius:var(--uix-radius-md); } .uix-metric-input__step:last-child { border-top:0; border-bottom-right-radius:var(--uix-radius-md); }
8
9
  .uix-metric-input__step:hover { background:var(--uix-bg-hover); } .uix-metric-input--invalid .uix-metric-input__control { color:var(--uix-danger-text); }
9
10
  }
@@ -6,7 +6,8 @@
6
6
  .uix-relationship-graph__visual svg { display:block; width:100%; height:22rem; }
7
7
  .uix-relationship-graph__edge { stroke:var(--uix-border-strong); stroke-width:2; } .uix-relationship-graph__edge[data-highlighted] { stroke:var(--uix-accent); stroke-width:4; } .uix-relationship-graph__edge[data-conflicted] { stroke:var(--uix-danger); stroke-dasharray:6 4; }
8
8
  .uix-relationship-graph__node { cursor:pointer; } .uix-relationship-graph__node rect { fill:var(--uix-surface); stroke:var(--uix-border-strong); stroke-width:2; } .uix-relationship-graph__node text { fill:var(--uix-text); font-family:var(--uix-font-sans); font-size:var(--uix-text-meta); }
9
- .uix-relationship-graph__node[data-selected] rect,.uix-relationship-graph__node[data-highlighted] rect { fill:var(--uix-brand-muted); stroke:var(--uix-accent); stroke-width:3; } .uix-relationship-graph__node[data-conflicted] rect { fill:var(--uix-danger-bg); stroke:var(--uix-danger); stroke-dasharray:4 2; }
9
+ /* Node fills must be opaque: edges run to node centres, so a translucent tint lets them strike through the label. */
10
+ .uix-relationship-graph__node[data-selected] rect,.uix-relationship-graph__node[data-highlighted] rect { fill:color-mix(in srgb, var(--uix-accent) 16%, var(--uix-surface)); stroke:var(--uix-accent); stroke-width:3; } .uix-relationship-graph__node[data-conflicted] rect { fill:color-mix(in srgb, var(--uix-danger) 20%, var(--uix-surface)); stroke:var(--uix-danger); stroke-dasharray:4 2; }
10
11
  .uix-relationship-graph__node:focus-visible rect { stroke:var(--uix-ring); stroke-width:4; }
11
12
  .uix-relationship-graph__legend { display:flex; gap:var(--uix-space-4); flex-wrap:wrap; margin:0; padding:0; list-style:none; color:var(--uix-text-muted); font-size:var(--uix-text-meta); }
12
13
  .uix-relationship-graph__legend li::before { content:""; display:inline-block; width:.8rem; height:.8rem; margin-right:var(--uix-space-1); border:2px solid var(--uix-graph-type-color, var(--uix-chart-1)); border-radius:var(--uix-radius-pill); vertical-align:middle; }
@@ -1,6 +1,6 @@
1
1
  /* uix number stepper — depends only on --uix-* tokens. */
2
2
  @layer uix.components {
3
- .uix-stepper { display: inline-flex; align-items: center; height: var(--uix-control-h); overflow: hidden;
3
+ .uix-stepper { display: inline-flex; align-items: center; width: fit-content; height: var(--uix-control-h); overflow: hidden;
4
4
  border: 1px solid var(--uix-border); border-radius: var(--uix-radius-md); background: var(--uix-surface); }
5
5
  .uix-stepper__btn { width: 32px; align-self: stretch; border: 0; background: transparent; color: var(--uix-text); cursor: pointer;
6
6
  display: grid; place-items: center; transition: background-color var(--uix-dur-fast) var(--uix-ease-out); }