@tensor_1/tokens 2.44.1 → 2.45.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tensor_1/tokens",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.45.1",
|
|
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": [
|
|
@@ -54,5 +54,29 @@
|
|
|
54
54
|
.uix-relationship-graph__collapse { position:absolute; height:22px; padding:0 var(--uix-space-2); border:1px dashed var(--uix-border-strong); border-radius:var(--uix-radius-pill); background:var(--uix-surface); color:var(--uix-text-muted); font-size:var(--uix-text-meta); cursor:pointer; }
|
|
55
55
|
.uix-relationship-graph__collapse:focus-visible { outline:2px solid var(--uix-ring); outline-offset:2px; }
|
|
56
56
|
.uix-relationship-graph--compact .uix-relationship-graph__item { padding:var(--uix-space-1) var(--uix-space-2); }
|
|
57
|
+
/* Map controls (controls="compact", TENSOR HAR-2501): an icon cluster in the map's corner,
|
|
58
|
+
the map itself focusable, and a full-screen state that covers the page. */
|
|
59
|
+
.uix-relationship-graph--map .uix-relationship-graph__viewport:focus-visible { outline:2px solid var(--uix-ring); outline-offset:2px; }
|
|
60
|
+
/* The hint, the zoom level and the cluster share one row along the map's bottom edge (TENSOR
|
|
61
|
+
HAR-2512: positioned apart, "Zoom 75 %" was drawn over the hint on a 500–600 px map). The hint
|
|
62
|
+
takes only the room the controls leave: it ellipsises, then hides; then the zoom level gives
|
|
63
|
+
way; the cluster always stays. The row lets the pointer through to the map. */
|
|
64
|
+
.uix-relationship-graph__footer { position:absolute; right:var(--uix-space-3); bottom:var(--uix-space-3); left:var(--uix-space-3); z-index:var(--uix-z-raised, 1); display:flex; align-items:center; justify-content:flex-end; gap:var(--uix-space-3); container:uix-relationship-graph-footer / inline-size; pointer-events:none; }
|
|
65
|
+
.uix-relationship-graph__controls { display:flex; flex:0 1 auto; align-items:center; gap:var(--uix-space-2); min-width:0; pointer-events:auto; }
|
|
66
|
+
.uix-relationship-graph__control-cluster { display:flex; flex:none; padding:var(--uix-space-1); border:1px solid var(--uix-border-strong); border-radius:var(--uix-radius-md); background:var(--uix-surface); box-shadow:var(--uix-shadow-sm); }
|
|
67
|
+
.uix-relationship-graph__control { display:inline-grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:var(--uix-radius-sm); background:transparent; color:var(--uix-text-muted); cursor:pointer; }
|
|
68
|
+
.uix-relationship-graph__control:hover:not(:disabled) { background:var(--uix-bg-hover); color:var(--uix-text); }
|
|
69
|
+
.uix-relationship-graph__control:focus-visible { outline:2px solid var(--uix-ring); outline-offset:1px; }
|
|
70
|
+
.uix-relationship-graph__control:disabled { opacity:.45; cursor:not-allowed; }
|
|
71
|
+
.uix-relationship-graph__control svg { width:16px; height:16px; }
|
|
72
|
+
.uix-relationship-graph__zoom-level { flex:0 1 auto; min-width:0; overflow:hidden; padding:0 var(--uix-space-1); border-radius:var(--uix-radius-sm); background:color-mix(in srgb, var(--uix-bg-subtle) 85%, transparent); color:var(--uix-text-muted); font-size:var(--uix-text-meta); font-variant-numeric:tabular-nums; white-space:nowrap; text-overflow:ellipsis; }
|
|
73
|
+
.uix-relationship-graph__hint { flex:1 1 0; min-width:0; margin:0; overflow:hidden; color:var(--uix-text-muted); font-size:var(--uix-text-meta); white-space:nowrap; text-overflow:ellipsis; }
|
|
74
|
+
/* A hint cut to a few words says nothing, so it goes; on the narrowest map so does the zoom level. */
|
|
75
|
+
@container uix-relationship-graph-footer (max-width:24rem) { .uix-relationship-graph__hint { display:none; } }
|
|
76
|
+
@container uix-relationship-graph-footer (max-width:17rem) { .uix-relationship-graph__zoom-level { display:none; } }
|
|
77
|
+
.uix-relationship-graph__toast { position:absolute; top:var(--uix-space-3); left:50%; z-index:var(--uix-z-toast, 3); max-width:calc(100% - 2 * var(--uix-space-3)); margin:0; padding:var(--uix-space-1) var(--uix-space-3); border-radius:var(--uix-radius-sm); background:var(--uix-text); color:var(--uix-surface); font-size:var(--uix-text-meta); transform:translateX(-50%); pointer-events:none; }
|
|
78
|
+
.uix-relationship-graph--fullscreen { position:fixed; inset:0; z-index:var(--uix-z-overlay, 1000); display:flex; flex-direction:column; padding:var(--uix-space-4); background:var(--uix-bg-app, var(--uix-surface)); }
|
|
79
|
+
.uix-relationship-graph--fullscreen .uix-relationship-graph__viewport { flex:1; min-height:0; height:auto; }
|
|
80
|
+
@media (max-width:640px) { .uix-relationship-graph__hint { display:none; } }
|
|
57
81
|
@media (forced-colors: active) { .uix-relationship-graph__link path { stroke:CanvasText; } .uix-relationship-graph__link polygon { fill:CanvasText; } .uix-relationship-graph__item { border-color:ButtonText; } }
|
|
58
82
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* uix rich-text editor — markdown editing surface (.uix-prose), a roving-tabindex toolbar
|
|
2
|
-
|
|
1
|
+
/* uix rich-text editor — markdown editing surface (.uix-prose), a roving-tabindex toolbar whose
|
|
2
|
+
groups wrap on narrow screens, source mode, counter/status footer, link popover and the
|
|
3
3
|
:shortcode emoji list. Composes with .uix-composer for comment boxes. Depends only on --uix-* tokens. */
|
|
4
4
|
@layer uix.components {
|
|
5
5
|
.uix-rich-text {
|
|
@@ -17,16 +17,22 @@
|
|
|
17
17
|
.uix-rich-text--fallback { border: 0; background: transparent; }
|
|
18
18
|
.uix-rich-text--fallback:focus-within { box-shadow: none; }
|
|
19
19
|
|
|
20
|
-
/* toolbar —
|
|
20
|
+
/* toolbar — the groups wrap onto more rows, so a narrow field shows every control and never
|
|
21
|
+
scrolls sideways (a collection wraps; TENSOR HAR-2511: at 320 px two thirds of the tools hid
|
|
22
|
+
behind a scroll inside the field). Each group draws its separator on its left edge, 1px
|
|
23
|
+
outside the toolbar's left padding edge for a group that starts a row, where the clip hides it. */
|
|
21
24
|
.uix-rich-text__toolbar {
|
|
22
|
-
display: flex; align-items: center; gap: var(--uix-space-1); min-width: 0;
|
|
23
|
-
padding: var(--uix-space-1) var(--uix-space-
|
|
24
|
-
overflow-x:
|
|
25
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: var(--uix-space-1); min-width: 0;
|
|
26
|
+
padding: var(--uix-space-1) var(--uix-space-1) var(--uix-space-1) 0; border-bottom: 1px solid var(--uix-border);
|
|
27
|
+
overflow-x: clip;
|
|
25
28
|
/* size to the container, never to the row of tools (keeps grid/flex parents from widening) */
|
|
26
29
|
contain: inline-size;
|
|
27
30
|
}
|
|
28
|
-
|
|
29
|
-
.uix-rich-text__group
|
|
31
|
+
/* A group wider than the whole row (a very narrow field) wraps its own tools. */
|
|
32
|
+
.uix-rich-text__group {
|
|
33
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: var(--uix-space-0); flex: 0 1 auto; min-width: 0;
|
|
34
|
+
margin-left: -1px; padding-left: var(--uix-space-1); border-left: 1px solid var(--uix-border);
|
|
35
|
+
}
|
|
30
36
|
.uix-rich-text__group--end { margin-left: auto; }
|
|
31
37
|
.uix-rich-text__tool {
|
|
32
38
|
display: inline-flex; align-items: center; justify-content: center; flex: none;
|
|
@@ -75,8 +81,12 @@
|
|
|
75
81
|
.uix-rich-text__content h1 { font-size: var(--uix-text-h2); line-height: var(--uix-leading-h2); }
|
|
76
82
|
.uix-rich-text__content h2 { font-size: var(--uix-text-h3); line-height: var(--uix-leading-h3); }
|
|
77
83
|
.uix-rich-text__content h3 { font-size: var(--uix-text-body); line-height: var(--uix-leading-body); }
|
|
84
|
+
/* The placeholder floats full width with no width of its own, so the caret stays at the start
|
|
85
|
+
of its first line; it keeps its height, so a long placeholder grows the editor instead of
|
|
86
|
+
running over what follows the field (TENSOR HAR-2511). */
|
|
78
87
|
.uix-rich-text__content .is-editor-empty:first-child::before {
|
|
79
|
-
content: attr(data-placeholder); float: left;
|
|
88
|
+
content: attr(data-placeholder); float: left; width: 100%; margin-right: -100%;
|
|
89
|
+
pointer-events: none; color: var(--uix-text-muted);
|
|
80
90
|
}
|
|
81
91
|
.uix-rich-text__content a { cursor: text; }
|
|
82
92
|
/* the glyph stays in the text for editing and copying; its fallback image is drawn beside it */
|
|
@@ -123,11 +133,16 @@
|
|
|
123
133
|
/* composer variant — the composer draws the box; the toolbar joins the action bar */
|
|
124
134
|
.uix-rich-text--composer { border-radius: var(--uix-radius-md); }
|
|
125
135
|
.uix-rich-text--composer.uix-rich-text:focus-within { box-shadow: 0 0 0 3px var(--uix-brand-muted); }
|
|
126
|
-
/* the tool row
|
|
127
|
-
toggle + submit on one row left the tools 0 px
|
|
136
|
+
/* the tool row asks for one row of tools and keeps at least five; the counter and toolbarEnd wrap
|
|
137
|
+
below it first, then the row wraps its groups (a toggle + submit on one row left the tools 0 px
|
|
138
|
+
on a phone, TENSOR HAR-1125; tools wrapped five to a row beside a submit, HAR-2511). Its start
|
|
139
|
+
margin keeps the first tool flush with the bar: a group's left padding and separator sit in it. */
|
|
128
140
|
.uix-rich-text--composer .uix-rich-text__bar { flex-wrap: wrap; align-items: center; justify-content: flex-start; min-width: 0; }
|
|
129
|
-
.uix-rich-text--composer .uix-rich-text__toolbar {
|
|
130
|
-
|
|
141
|
+
.uix-rich-text--composer .uix-rich-text__toolbar {
|
|
142
|
+
flex: 1 1 auto; min-width: min(5 * 32px + var(--uix-space-1), 100%); margin-left: calc(-1 * var(--uix-space-1));
|
|
143
|
+
padding: 0; border-bottom: 0; contain: none;
|
|
144
|
+
}
|
|
145
|
+
.uix-rich-text--composer .uix-rich-text__group--end { margin-left: -1px; }
|
|
131
146
|
.uix-rich-text--composer .uix-rich-text__counter,
|
|
132
147
|
.uix-rich-text--composer .uix-rich-text__status { flex: none; margin-right: 0; }
|
|
133
148
|
.uix-rich-text--composer .uix-rich-text__bar > :last-child:not(.uix-rich-text__toolbar) { margin-left: auto; }
|