@xenosystem/components 0.8.1 → 0.9.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/catalog.json +11 -11
- package/dist/chrome/index.d.ts +49 -49
- package/dist/chrome/index.js +178 -178
- package/package.json +1 -1
package/dist/catalog.json
CHANGED
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
{
|
|
361
361
|
"name": "IconButton",
|
|
362
362
|
"file": "controls.tsx",
|
|
363
|
-
"doc": "A square icon-only button — the toolbar/row workhorse.\
|
|
363
|
+
"doc": "A square icon-only button — the toolbar/row workhorse.\n\n@example\n```tsx\n<IconButton icon={<TrashGlyph />} label=\"Delete layer\" onClick={remove} disabled={!selection} />\n```",
|
|
364
364
|
"props": "IconButtonProps",
|
|
365
365
|
"propList": [
|
|
366
366
|
{
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
{
|
|
411
411
|
"name": "TextButton",
|
|
412
412
|
"file": "controls.tsx",
|
|
413
|
-
"doc": "A borderless text action — the inline `+ Add` / `Clear` / `Unbind` affordance. Muted by default so\
|
|
413
|
+
"doc": "A borderless text action — the inline `+ Add` / `Clear` / `Unbind` affordance. Muted by default so\nit reads as secondary; `strong` promotes it. Never a filled button: `DESIGN_SYSTEM.md` §7 allows\nexactly one primary action on screen and a panel is rarely the place for it.",
|
|
414
414
|
"props": "TextButtonProps",
|
|
415
415
|
"propList": [
|
|
416
416
|
{
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
{
|
|
449
449
|
"name": "SearchField",
|
|
450
450
|
"file": "controls.tsx",
|
|
451
|
-
"doc": "The canonical filter input: recessed well, leading glyph, Escape-to-clear, and a clear button\
|
|
451
|
+
"doc": "The canonical filter input: recessed well, leading glyph, Escape-to-clear, and a clear button\nthat only appears when there is something to clear.\n\n@example\n```tsx\n<SearchField value={query} onChange={setQuery} placeholder=\"Filter layers…\" />\n```",
|
|
452
452
|
"props": "SearchFieldProps",
|
|
453
453
|
"propList": [
|
|
454
454
|
{
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
{
|
|
555
555
|
"name": "Toggle",
|
|
556
556
|
"file": "controls.tsx",
|
|
557
|
-
"doc": "The signature XENO toggle: a rectangular track with a SQUARE knob whose corner radius softens\
|
|
557
|
+
"doc": "The signature XENO toggle: a rectangular track with a SQUARE knob whose corner radius softens\nwhen it moves to the ON position (DESIGN_SYSTEM §3 \"The Toggle Switch\"). Never a pill.",
|
|
558
558
|
"props": "ToggleProps",
|
|
559
559
|
"propList": [
|
|
560
560
|
{
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
{
|
|
599
599
|
"name": "FieldGroup",
|
|
600
600
|
"file": "controls.tsx",
|
|
601
|
-
"doc": "A label-column layout: every {@link Field} inside shares ONE label width, so labels start at the\
|
|
601
|
+
"doc": "A label-column layout: every {@link Field} inside shares ONE label width, so labels start at the\nsame x and controls end at the same x — the column alignment DESIGN_SYSTEM §5 requires and the\nthing hand-rolled property grids always get wrong.\n\n@example\n```tsx\n<FieldGroup labelWidth={64}>\n <Field label=\"Opacity\"><Slider … /></Field>\n <Field label=\"Blend\"><Select … /></Field>\n</FieldGroup>\n```",
|
|
602
602
|
"props": "FieldGroupProps",
|
|
603
603
|
"propList": [
|
|
604
604
|
{
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
{
|
|
817
817
|
"name": "Badge",
|
|
818
818
|
"file": "indicators.tsx",
|
|
819
|
-
"doc": "A small rectangular chip. Never interactive — `DESIGN_SYSTEM.md` §7: \"If a badge needs to be\
|
|
819
|
+
"doc": "A small rectangular chip. Never interactive — `DESIGN_SYSTEM.md` §7: \"If a badge needs to be\nclickable, it's a ghost button, not a badge.\"",
|
|
820
820
|
"props": "BadgeProps",
|
|
821
821
|
"propList": [
|
|
822
822
|
{
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
{
|
|
881
881
|
"name": "StatusBadge",
|
|
882
882
|
"file": "indicators.tsx",
|
|
883
|
-
"doc": "Dot + label. Color is never the sole indicator (`DESIGN_SYSTEM.md` §11) — the word carries the\
|
|
883
|
+
"doc": "Dot + label. Color is never the sole indicator (`DESIGN_SYSTEM.md` §11) — the word carries the\nstate and the dot reinforces it.",
|
|
884
884
|
"props": "StatusBadgeProps",
|
|
885
885
|
"propList": [
|
|
886
886
|
{
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
{
|
|
933
933
|
"name": "StatTile",
|
|
934
934
|
"file": "indicators.tsx",
|
|
935
|
-
"doc": "Label + big value tile — the KPI unit of the future `metrics` panel.\
|
|
935
|
+
"doc": "Label + big value tile — the KPI unit of the future `metrics` panel.\n\n@example\n```tsx\n<StatTile label=\"p95 frame\" value=\"14.2 ms\" sub=\"last 60 s\" />\n```",
|
|
936
936
|
"props": "StatTileProps",
|
|
937
937
|
"propList": [
|
|
938
938
|
{
|
|
@@ -976,7 +976,7 @@
|
|
|
976
976
|
{
|
|
977
977
|
"name": "ProportionBar",
|
|
978
978
|
"file": "indicators.tsx",
|
|
979
|
-
"doc": "A horizontal stacked bar — the monochromatic replacement for a pie/donut chart.\
|
|
979
|
+
"doc": "A horizontal stacked bar — the monochromatic replacement for a pie/donut chart.\n\nSlices are separated by white ALPHA, not hue: `DESIGN_SYSTEM.md` §13 forbids chromatic color\noutside status contexts, and a categorical palette is exactly that. When no `opacity` is supplied\nthe bar ramps evenly from bright to dim across the slices.",
|
|
980
980
|
"props": "ProportionBarProps",
|
|
981
981
|
"propList": [
|
|
982
982
|
{
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
{
|
|
1003
1003
|
"name": "StatusBar",
|
|
1004
1004
|
"file": "indicators.tsx",
|
|
1005
|
-
"doc": "The panel footer strip. Census: layers and history already ship a byte-identical one\
|
|
1005
|
+
"doc": "The panel footer strip. Census: layers and history already ship a byte-identical one\n(`2px 6px`, 9px, muted, header surface, space-between) — this is that, once.",
|
|
1006
1006
|
"props": "StatusBarProps",
|
|
1007
1007
|
"propList": [
|
|
1008
1008
|
{
|
|
@@ -1034,7 +1034,7 @@
|
|
|
1034
1034
|
{
|
|
1035
1035
|
"name": "Sparkline",
|
|
1036
1036
|
"file": "indicators.tsx",
|
|
1037
|
-
"doc": "A monochrome trend line.\
|
|
1037
|
+
"doc": "A monochrome trend line.\n\nLifted from `xeno-post`'s `ui/kit.tsx`, which is the only sparkline implementation in the\necosystem. It lives here rather than in a panel because three consumers want it — `metrics` (which\nshipped a local copy first), `chart`, and the future `runs` panel — and three copies of a mark is\nhow a design system stops being one.\n\nDistinct from {@link ProportionBar}: a line is a different MARK, not a variant. The two are not\ninterchangeable and neither is a special case of the other.\n\nDegenerate inputs render an empty well rather than throwing: a series of one point has no slope,\nand a flat series has no range to normalize against (it draws a centred straight line).",
|
|
1038
1038
|
"props": "SparklineProps",
|
|
1039
1039
|
"propList": [
|
|
1040
1040
|
{
|
package/dist/chrome/index.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ declare function Section({ title, children, badge, actions, collapsible, collaps
|
|
|
182
182
|
* (Section, RowList/Row, Toolbar, StatTile, ProportionBar, EmptyState, LoadingState, ErrorState,
|
|
183
183
|
* StatusBadge, IconFrame …), re-cut for dense in-panel density rather than dashboard-page density.
|
|
184
184
|
*
|
|
185
|
-
* Modifiers use BEM's double dash (`
|
|
185
|
+
* Modifiers use BEM's double dash (`xc-row--selected`), matching workflow's existing
|
|
186
186
|
* `xeno-panel-content--no-header`.
|
|
187
187
|
*
|
|
188
188
|
* @module
|
|
@@ -198,101 +198,101 @@ declare const CLS_PANEL_CONTENT = "xeno-panel-content";
|
|
|
198
198
|
/** Applied to the content well when the frame renders no header. */
|
|
199
199
|
declare const CLS_PANEL_CONTENT_NO_HEADER = "xeno-panel-content--no-header";
|
|
200
200
|
/** Horizontal control strip (`left` / `right` clusters). */
|
|
201
|
-
declare const CLS_TOOLBAR = "
|
|
201
|
+
declare const CLS_TOOLBAR = "xc-toolbar";
|
|
202
202
|
/** A cluster of controls inside a toolbar. */
|
|
203
|
-
declare const CLS_TOOLBAR_GROUP = "
|
|
203
|
+
declare const CLS_TOOLBAR_GROUP = "xc-toolbar-group";
|
|
204
204
|
/** Footer strip: counts on the left, state on the right. */
|
|
205
|
-
declare const CLS_STATUSBAR = "
|
|
205
|
+
declare const CLS_STATUSBAR = "xc-statusbar";
|
|
206
206
|
/** 1px hairline; `--vertical` for an inline separator inside a toolbar. */
|
|
207
|
-
declare const CLS_DIVIDER = "
|
|
207
|
+
declare const CLS_DIVIDER = "xc-divider";
|
|
208
208
|
/** Collapsible titled group. */
|
|
209
|
-
declare const CLS_SECTION = "
|
|
209
|
+
declare const CLS_SECTION = "xc-section";
|
|
210
210
|
/** The section's header row. */
|
|
211
|
-
declare const CLS_SECTION_HEADER = "
|
|
211
|
+
declare const CLS_SECTION_HEADER = "xc-section-header";
|
|
212
212
|
/** The `<button>` inside the header that toggles collapse (siblings stay outside it — see `Section`). */
|
|
213
|
-
declare const CLS_SECTION_TRIGGER = "
|
|
213
|
+
declare const CLS_SECTION_TRIGGER = "xc-section-trigger";
|
|
214
214
|
/** Disclosure chevron wrapper (rotates via the `--collapsed` modifier). */
|
|
215
|
-
declare const CLS_SECTION_CHEVRON = "
|
|
215
|
+
declare const CLS_SECTION_CHEVRON = "xc-section-chevron";
|
|
216
216
|
/** Uppercase section label. */
|
|
217
|
-
declare const CLS_SECTION_TITLE = "
|
|
217
|
+
declare const CLS_SECTION_TITLE = "xc-section-title";
|
|
218
218
|
/** Trailing cluster in the section header (badge + actions + toggle). */
|
|
219
|
-
declare const CLS_SECTION_ACTIONS = "
|
|
219
|
+
declare const CLS_SECTION_ACTIONS = "xc-section-actions";
|
|
220
220
|
/** The section's body. */
|
|
221
|
-
declare const CLS_SECTION_BODY = "
|
|
221
|
+
declare const CLS_SECTION_BODY = "xc-section-body";
|
|
222
222
|
/** Hairline-divided vertical list container. */
|
|
223
|
-
declare const CLS_ROWLIST = "
|
|
223
|
+
declare const CLS_ROWLIST = "xc-rowlist";
|
|
224
224
|
/** A single dense row. */
|
|
225
|
-
declare const CLS_ROW = "
|
|
225
|
+
declare const CLS_ROW = "xc-row";
|
|
226
226
|
/** Fixed-width leading icon slot (keeps labels in one column — DESIGN_SYSTEM §5). */
|
|
227
|
-
declare const CLS_ROW_ICON = "
|
|
227
|
+
declare const CLS_ROW_ICON = "xc-row-icon";
|
|
228
228
|
/** The row's flexible label column. */
|
|
229
|
-
declare const CLS_ROW_LABEL = "
|
|
229
|
+
declare const CLS_ROW_LABEL = "xc-row-label";
|
|
230
230
|
/** Secondary text after the label. */
|
|
231
|
-
declare const CLS_ROW_META = "
|
|
231
|
+
declare const CLS_ROW_META = "xc-row-meta";
|
|
232
232
|
/** Right-aligned trailing slot. */
|
|
233
|
-
declare const CLS_ROW_TRAILING = "
|
|
233
|
+
declare const CLS_ROW_TRAILING = "xc-row-trailing";
|
|
234
234
|
/** Square icon-only button. */
|
|
235
|
-
declare const CLS_ICON_BUTTON = "
|
|
235
|
+
declare const CLS_ICON_BUTTON = "xc-iconbtn";
|
|
236
236
|
/** Borderless inline text action (`+ Add`, `Clear`, `Unbind`). */
|
|
237
|
-
declare const CLS_TEXT_BUTTON = "
|
|
237
|
+
declare const CLS_TEXT_BUTTON = "xc-textbtn";
|
|
238
238
|
/** Search / filter input wrapper. */
|
|
239
|
-
declare const CLS_SEARCH = "
|
|
239
|
+
declare const CLS_SEARCH = "xc-search";
|
|
240
240
|
/** The `<input>` inside a search field. */
|
|
241
|
-
declare const CLS_SEARCH_INPUT = "
|
|
241
|
+
declare const CLS_SEARCH_INPUT = "xc-search-input";
|
|
242
242
|
/** Segmented (radio-group) control. */
|
|
243
|
-
declare const CLS_SEGMENTED = "
|
|
243
|
+
declare const CLS_SEGMENTED = "xc-segmented";
|
|
244
244
|
/** One segment button. */
|
|
245
|
-
declare const CLS_SEGMENT = "
|
|
245
|
+
declare const CLS_SEGMENT = "xc-segment";
|
|
246
246
|
/** The signature XENO toggle (rectangular track, square knob). */
|
|
247
|
-
declare const CLS_TOGGLE = "
|
|
247
|
+
declare const CLS_TOGGLE = "xc-toggle";
|
|
248
248
|
/** The toggle's knob. */
|
|
249
|
-
declare const CLS_TOGGLE_KNOB = "
|
|
249
|
+
declare const CLS_TOGGLE_KNOB = "xc-toggle-knob";
|
|
250
250
|
/** Label-column field group (all labels share one width). */
|
|
251
|
-
declare const CLS_FIELD_GROUP = "
|
|
251
|
+
declare const CLS_FIELD_GROUP = "xc-fieldgroup";
|
|
252
252
|
/** One label + control row. */
|
|
253
|
-
declare const CLS_FIELD = "
|
|
253
|
+
declare const CLS_FIELD = "xc-field";
|
|
254
254
|
/** The field's label cell. */
|
|
255
|
-
declare const CLS_FIELD_LABEL = "
|
|
255
|
+
declare const CLS_FIELD_LABEL = "xc-field-label";
|
|
256
256
|
/** The field's control cell. */
|
|
257
|
-
declare const CLS_FIELD_CONTROL = "
|
|
257
|
+
declare const CLS_FIELD_CONTROL = "xc-field-control";
|
|
258
258
|
/** Muted hint under a field. */
|
|
259
|
-
declare const CLS_FIELD_HINT = "
|
|
259
|
+
declare const CLS_FIELD_HINT = "xc-field-hint";
|
|
260
260
|
/** Centered zero-content state. */
|
|
261
|
-
declare const CLS_EMPTY = "
|
|
261
|
+
declare const CLS_EMPTY = "xc-empty";
|
|
262
262
|
/** Centered busy state. */
|
|
263
|
-
declare const CLS_LOADING = "
|
|
263
|
+
declare const CLS_LOADING = "xc-loading";
|
|
264
264
|
/** Centered failure state. */
|
|
265
|
-
declare const CLS_ERROR = "
|
|
265
|
+
declare const CLS_ERROR = "xc-error";
|
|
266
266
|
/** Shared container for the three states above. */
|
|
267
|
-
declare const CLS_STATE = "
|
|
267
|
+
declare const CLS_STATE = "xc-state";
|
|
268
268
|
/** The state's icon chip. */
|
|
269
|
-
declare const CLS_STATE_ICON = "
|
|
269
|
+
declare const CLS_STATE_ICON = "xc-state-icon";
|
|
270
270
|
/** The state's headline. */
|
|
271
|
-
declare const CLS_STATE_TITLE = "
|
|
271
|
+
declare const CLS_STATE_TITLE = "xc-state-title";
|
|
272
272
|
/** The state's supporting line — the ACTIONABLE hint. */
|
|
273
|
-
declare const CLS_STATE_HINT = "
|
|
273
|
+
declare const CLS_STATE_HINT = "xc-state-hint";
|
|
274
274
|
/** Indeterminate progress bar used by the loading state (no spinner — no circles). */
|
|
275
|
-
declare const CLS_STATE_PROGRESS = "
|
|
275
|
+
declare const CLS_STATE_PROGRESS = "xc-state-progress";
|
|
276
276
|
/** Small rectangular status/metadata chip. */
|
|
277
|
-
declare const CLS_BADGE = "
|
|
277
|
+
declare const CLS_BADGE = "xc-badge";
|
|
278
278
|
/** 2px-radius square status dot (never a circle). */
|
|
279
|
-
declare const CLS_DOT = "
|
|
279
|
+
declare const CLS_DOT = "xc-dot";
|
|
280
280
|
/** Flat outlined icon container. */
|
|
281
|
-
declare const CLS_ICON_FRAME = "
|
|
281
|
+
declare const CLS_ICON_FRAME = "xc-iconframe";
|
|
282
282
|
/** Label + big value tile. */
|
|
283
|
-
declare const CLS_STAT = "
|
|
283
|
+
declare const CLS_STAT = "xc-stat";
|
|
284
284
|
/** The stat's uppercase label row. */
|
|
285
|
-
declare const CLS_STAT_LABEL = "
|
|
285
|
+
declare const CLS_STAT_LABEL = "xc-stat-label";
|
|
286
286
|
/** The stat's value. */
|
|
287
|
-
declare const CLS_STAT_VALUE = "
|
|
287
|
+
declare const CLS_STAT_VALUE = "xc-stat-value";
|
|
288
288
|
/** The stat's sub-line. */
|
|
289
|
-
declare const CLS_STAT_SUB = "
|
|
289
|
+
declare const CLS_STAT_SUB = "xc-stat-sub";
|
|
290
290
|
/** Horizontal stacked proportion bar (replaces a pie/donut — no circles). */
|
|
291
|
-
declare const CLS_BAR = "
|
|
291
|
+
declare const CLS_BAR = "xc-bar";
|
|
292
292
|
/** One segment of a proportion bar. */
|
|
293
|
-
declare const CLS_BAR_SEGMENT = "
|
|
293
|
+
declare const CLS_BAR_SEGMENT = "xc-bar-segment";
|
|
294
294
|
/** Scroll container with the canonical thin rectangular thumb. */
|
|
295
|
-
declare const CLS_SCROLL = "
|
|
295
|
+
declare const CLS_SCROLL = "xc-scroll";
|
|
296
296
|
/**
|
|
297
297
|
* Semantic tone for badges, dots and states. `neutral` is the default and the only tone that is
|
|
298
298
|
* purely monochromatic; the other four are the ONLY places DESIGN_SYSTEM permits chromatic color
|
package/dist/chrome/index.js
CHANGED
|
@@ -4,54 +4,54 @@ var CLS_PANEL_HEADER = "xeno-panel-header";
|
|
|
4
4
|
var CLS_PANEL_TITLE = "xeno-panel-title";
|
|
5
5
|
var CLS_PANEL_CONTENT = "xeno-panel-content";
|
|
6
6
|
var CLS_PANEL_CONTENT_NO_HEADER = "xeno-panel-content--no-header";
|
|
7
|
-
var CLS_TOOLBAR = "
|
|
8
|
-
var CLS_TOOLBAR_GROUP = "
|
|
9
|
-
var CLS_STATUSBAR = "
|
|
10
|
-
var CLS_DIVIDER = "
|
|
11
|
-
var CLS_SECTION = "
|
|
12
|
-
var CLS_SECTION_HEADER = "
|
|
13
|
-
var CLS_SECTION_TRIGGER = "
|
|
14
|
-
var CLS_SECTION_CHEVRON = "
|
|
15
|
-
var CLS_SECTION_TITLE = "
|
|
16
|
-
var CLS_SECTION_ACTIONS = "
|
|
17
|
-
var CLS_SECTION_BODY = "
|
|
18
|
-
var CLS_ROWLIST = "
|
|
19
|
-
var CLS_ROW = "
|
|
20
|
-
var CLS_ROW_ICON = "
|
|
21
|
-
var CLS_ROW_LABEL = "
|
|
22
|
-
var CLS_ROW_META = "
|
|
23
|
-
var CLS_ROW_TRAILING = "
|
|
24
|
-
var CLS_ICON_BUTTON = "
|
|
25
|
-
var CLS_TEXT_BUTTON = "
|
|
26
|
-
var CLS_SEARCH = "
|
|
27
|
-
var CLS_SEARCH_INPUT = "
|
|
28
|
-
var CLS_SEGMENTED = "
|
|
29
|
-
var CLS_SEGMENT = "
|
|
30
|
-
var CLS_TOGGLE = "
|
|
31
|
-
var CLS_TOGGLE_KNOB = "
|
|
32
|
-
var CLS_FIELD_GROUP = "
|
|
33
|
-
var CLS_FIELD = "
|
|
34
|
-
var CLS_FIELD_LABEL = "
|
|
35
|
-
var CLS_FIELD_CONTROL = "
|
|
36
|
-
var CLS_FIELD_HINT = "
|
|
37
|
-
var CLS_EMPTY = "
|
|
38
|
-
var CLS_LOADING = "
|
|
39
|
-
var CLS_ERROR = "
|
|
40
|
-
var CLS_STATE = "
|
|
41
|
-
var CLS_STATE_ICON = "
|
|
42
|
-
var CLS_STATE_TITLE = "
|
|
43
|
-
var CLS_STATE_HINT = "
|
|
44
|
-
var CLS_STATE_PROGRESS = "
|
|
45
|
-
var CLS_BADGE = "
|
|
46
|
-
var CLS_DOT = "
|
|
47
|
-
var CLS_ICON_FRAME = "
|
|
48
|
-
var CLS_STAT = "
|
|
49
|
-
var CLS_STAT_LABEL = "
|
|
50
|
-
var CLS_STAT_VALUE = "
|
|
51
|
-
var CLS_STAT_SUB = "
|
|
52
|
-
var CLS_BAR = "
|
|
53
|
-
var CLS_BAR_SEGMENT = "
|
|
54
|
-
var CLS_SCROLL = "
|
|
7
|
+
var CLS_TOOLBAR = "xc-toolbar";
|
|
8
|
+
var CLS_TOOLBAR_GROUP = "xc-toolbar-group";
|
|
9
|
+
var CLS_STATUSBAR = "xc-statusbar";
|
|
10
|
+
var CLS_DIVIDER = "xc-divider";
|
|
11
|
+
var CLS_SECTION = "xc-section";
|
|
12
|
+
var CLS_SECTION_HEADER = "xc-section-header";
|
|
13
|
+
var CLS_SECTION_TRIGGER = "xc-section-trigger";
|
|
14
|
+
var CLS_SECTION_CHEVRON = "xc-section-chevron";
|
|
15
|
+
var CLS_SECTION_TITLE = "xc-section-title";
|
|
16
|
+
var CLS_SECTION_ACTIONS = "xc-section-actions";
|
|
17
|
+
var CLS_SECTION_BODY = "xc-section-body";
|
|
18
|
+
var CLS_ROWLIST = "xc-rowlist";
|
|
19
|
+
var CLS_ROW = "xc-row";
|
|
20
|
+
var CLS_ROW_ICON = "xc-row-icon";
|
|
21
|
+
var CLS_ROW_LABEL = "xc-row-label";
|
|
22
|
+
var CLS_ROW_META = "xc-row-meta";
|
|
23
|
+
var CLS_ROW_TRAILING = "xc-row-trailing";
|
|
24
|
+
var CLS_ICON_BUTTON = "xc-iconbtn";
|
|
25
|
+
var CLS_TEXT_BUTTON = "xc-textbtn";
|
|
26
|
+
var CLS_SEARCH = "xc-search";
|
|
27
|
+
var CLS_SEARCH_INPUT = "xc-search-input";
|
|
28
|
+
var CLS_SEGMENTED = "xc-segmented";
|
|
29
|
+
var CLS_SEGMENT = "xc-segment";
|
|
30
|
+
var CLS_TOGGLE = "xc-toggle";
|
|
31
|
+
var CLS_TOGGLE_KNOB = "xc-toggle-knob";
|
|
32
|
+
var CLS_FIELD_GROUP = "xc-fieldgroup";
|
|
33
|
+
var CLS_FIELD = "xc-field";
|
|
34
|
+
var CLS_FIELD_LABEL = "xc-field-label";
|
|
35
|
+
var CLS_FIELD_CONTROL = "xc-field-control";
|
|
36
|
+
var CLS_FIELD_HINT = "xc-field-hint";
|
|
37
|
+
var CLS_EMPTY = "xc-empty";
|
|
38
|
+
var CLS_LOADING = "xc-loading";
|
|
39
|
+
var CLS_ERROR = "xc-error";
|
|
40
|
+
var CLS_STATE = "xc-state";
|
|
41
|
+
var CLS_STATE_ICON = "xc-state-icon";
|
|
42
|
+
var CLS_STATE_TITLE = "xc-state-title";
|
|
43
|
+
var CLS_STATE_HINT = "xc-state-hint";
|
|
44
|
+
var CLS_STATE_PROGRESS = "xc-state-progress";
|
|
45
|
+
var CLS_BADGE = "xc-badge";
|
|
46
|
+
var CLS_DOT = "xc-dot";
|
|
47
|
+
var CLS_ICON_FRAME = "xc-iconframe";
|
|
48
|
+
var CLS_STAT = "xc-stat";
|
|
49
|
+
var CLS_STAT_LABEL = "xc-stat-label";
|
|
50
|
+
var CLS_STAT_VALUE = "xc-stat-value";
|
|
51
|
+
var CLS_STAT_SUB = "xc-stat-sub";
|
|
52
|
+
var CLS_BAR = "xc-bar";
|
|
53
|
+
var CLS_BAR_SEGMENT = "xc-bar-segment";
|
|
54
|
+
var CLS_SCROLL = "xc-scroll";
|
|
55
55
|
var PANEL_TONES = Object.freeze([
|
|
56
56
|
"neutral",
|
|
57
57
|
"info",
|
|
@@ -284,7 +284,7 @@ var PANEL_PRIMITIVES_CSS = `
|
|
|
284
284
|
|
|
285
285
|
/* \u2500\u2500\u2500 2. Strips: toolbar, status bar, divider, scroll \u2500\u2500\u2500 */
|
|
286
286
|
|
|
287
|
-
.
|
|
287
|
+
.xc-toolbar {
|
|
288
288
|
display: flex;
|
|
289
289
|
align-items: center;
|
|
290
290
|
gap: ${PANEL_METRICS.gutter}px;
|
|
@@ -298,21 +298,21 @@ var PANEL_PRIMITIVES_CSS = `
|
|
|
298
298
|
font-size: ${PANEL_METRICS.fontBody}px;
|
|
299
299
|
user-select: none;
|
|
300
300
|
}
|
|
301
|
-
.
|
|
301
|
+
.xc-toolbar--flush {
|
|
302
302
|
border-bottom: none;
|
|
303
303
|
}
|
|
304
|
-
.
|
|
304
|
+
.xc-toolbar-group {
|
|
305
305
|
display: flex;
|
|
306
306
|
align-items: center;
|
|
307
307
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
308
308
|
min-width: 0;
|
|
309
309
|
}
|
|
310
|
-
.
|
|
310
|
+
.xc-toolbar-group--end {
|
|
311
311
|
margin-left: auto;
|
|
312
312
|
flex: 0 0 auto;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
.
|
|
315
|
+
.xc-statusbar {
|
|
316
316
|
display: flex;
|
|
317
317
|
align-items: center;
|
|
318
318
|
justify-content: space-between;
|
|
@@ -326,39 +326,39 @@ var PANEL_PRIMITIVES_CSS = `
|
|
|
326
326
|
user-select: none;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
.
|
|
329
|
+
.xc-divider {
|
|
330
330
|
flex: 0 0 auto;
|
|
331
331
|
background: ${BORDER};
|
|
332
332
|
height: 1px;
|
|
333
333
|
width: 100%;
|
|
334
334
|
}
|
|
335
|
-
.
|
|
335
|
+
.xc-divider--vertical {
|
|
336
336
|
width: 1px;
|
|
337
337
|
height: 12px;
|
|
338
338
|
align-self: center;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
.
|
|
341
|
+
.xc-scroll {
|
|
342
342
|
flex: 1 1 auto;
|
|
343
343
|
min-height: 0;
|
|
344
344
|
overflow-y: auto;
|
|
345
345
|
overflow-x: hidden;
|
|
346
346
|
outline: none;
|
|
347
347
|
}
|
|
348
|
-
.
|
|
348
|
+
.xc-scroll::-webkit-scrollbar {
|
|
349
349
|
width: 10px;
|
|
350
350
|
height: 10px;
|
|
351
351
|
}
|
|
352
|
-
.
|
|
352
|
+
.xc-scroll::-webkit-scrollbar-track {
|
|
353
353
|
background: transparent;
|
|
354
354
|
}
|
|
355
|
-
.
|
|
355
|
+
.xc-scroll::-webkit-scrollbar-thumb {
|
|
356
356
|
background: #3a3a3d;
|
|
357
357
|
border: 3px solid transparent;
|
|
358
358
|
background-clip: padding-box;
|
|
359
359
|
border-radius: ${PANEL_METRICS.radius}px;
|
|
360
360
|
}
|
|
361
|
-
.
|
|
361
|
+
.xc-scroll::-webkit-scrollbar-thumb:hover {
|
|
362
362
|
background: #555555;
|
|
363
363
|
border: 3px solid transparent;
|
|
364
364
|
background-clip: padding-box;
|
|
@@ -366,13 +366,13 @@ var PANEL_PRIMITIVES_CSS = `
|
|
|
366
366
|
|
|
367
367
|
/* \u2500\u2500\u2500 3. Section \u2500\u2500\u2500 */
|
|
368
368
|
|
|
369
|
-
.
|
|
369
|
+
.xc-section {
|
|
370
370
|
display: flex;
|
|
371
371
|
flex-direction: column;
|
|
372
372
|
flex: 0 0 auto;
|
|
373
373
|
min-width: 0;
|
|
374
374
|
}
|
|
375
|
-
.
|
|
375
|
+
.xc-section-header {
|
|
376
376
|
display: flex;
|
|
377
377
|
align-items: center;
|
|
378
378
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
@@ -382,7 +382,7 @@ var PANEL_PRIMITIVES_CSS = `
|
|
|
382
382
|
background: ${PANEL_COLORS.wash};
|
|
383
383
|
user-select: none;
|
|
384
384
|
}
|
|
385
|
-
.
|
|
385
|
+
.xc-section-trigger {
|
|
386
386
|
display: flex;
|
|
387
387
|
align-items: center;
|
|
388
388
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
@@ -398,10 +398,10 @@ var PANEL_PRIMITIVES_CSS = `
|
|
|
398
398
|
cursor: pointer;
|
|
399
399
|
}
|
|
400
400
|
/* A non-collapsible header renders a <div> with this class, not a disabled button. */
|
|
401
|
-
div.
|
|
401
|
+
div.xc-section-trigger {
|
|
402
402
|
cursor: default;
|
|
403
403
|
}
|
|
404
|
-
.
|
|
404
|
+
.xc-section-chevron {
|
|
405
405
|
display: flex;
|
|
406
406
|
align-items: center;
|
|
407
407
|
justify-content: center;
|
|
@@ -412,10 +412,10 @@ div.xeno-section-trigger {
|
|
|
412
412
|
transform: rotate(90deg);
|
|
413
413
|
transition: transform 80ms ease;
|
|
414
414
|
}
|
|
415
|
-
.
|
|
415
|
+
.xc-section--collapsed .xc-section-chevron {
|
|
416
416
|
transform: rotate(0deg);
|
|
417
417
|
}
|
|
418
|
-
.
|
|
418
|
+
.xc-section-title {
|
|
419
419
|
flex: 1 1 auto;
|
|
420
420
|
min-width: 0;
|
|
421
421
|
overflow: hidden;
|
|
@@ -427,39 +427,39 @@ div.xeno-section-trigger {
|
|
|
427
427
|
text-transform: uppercase;
|
|
428
428
|
color: ${MUTED};
|
|
429
429
|
}
|
|
430
|
-
.
|
|
430
|
+
.xc-section-actions {
|
|
431
431
|
display: flex;
|
|
432
432
|
align-items: center;
|
|
433
433
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
434
434
|
flex: 0 0 auto;
|
|
435
435
|
}
|
|
436
|
-
.
|
|
436
|
+
.xc-section-body {
|
|
437
437
|
padding: 3px 0;
|
|
438
438
|
min-width: 0;
|
|
439
439
|
}
|
|
440
|
-
.
|
|
440
|
+
.xc-section-body--off {
|
|
441
441
|
opacity: ${PANEL_DISABLED_OPACITY};
|
|
442
442
|
pointer-events: none;
|
|
443
443
|
}
|
|
444
|
-
.
|
|
444
|
+
.xc-section-body--flush {
|
|
445
445
|
padding: 0;
|
|
446
446
|
}
|
|
447
|
-
.
|
|
447
|
+
.xc-section--collapsed .xc-section-body {
|
|
448
448
|
display: none;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
/* \u2500\u2500\u2500 4. Rows \u2500\u2500\u2500 */
|
|
452
452
|
|
|
453
|
-
.
|
|
453
|
+
.xc-rowlist {
|
|
454
454
|
display: flex;
|
|
455
455
|
flex-direction: column;
|
|
456
456
|
min-width: 0;
|
|
457
457
|
}
|
|
458
|
-
.
|
|
458
|
+
.xc-rowlist--divided .xc-row {
|
|
459
459
|
border-bottom: 1px solid ${BORDER};
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
.
|
|
462
|
+
.xc-row {
|
|
463
463
|
display: flex;
|
|
464
464
|
align-items: center;
|
|
465
465
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
@@ -475,33 +475,33 @@ div.xeno-section-trigger {
|
|
|
475
475
|
user-select: none;
|
|
476
476
|
transition: background-color 80ms ease;
|
|
477
477
|
}
|
|
478
|
-
.
|
|
478
|
+
.xc-row--interactive {
|
|
479
479
|
cursor: pointer;
|
|
480
480
|
}
|
|
481
|
-
.
|
|
481
|
+
.xc-row--interactive:hover {
|
|
482
482
|
background: ${PANEL_COLORS.rowHover};
|
|
483
483
|
}
|
|
484
|
-
.
|
|
484
|
+
.xc-row--selected {
|
|
485
485
|
background: ${PANEL_COLORS.rowSelected};
|
|
486
486
|
}
|
|
487
|
-
.
|
|
487
|
+
.xc-row--selected:hover {
|
|
488
488
|
background: ${PANEL_COLORS.rowSelected};
|
|
489
489
|
}
|
|
490
|
-
.
|
|
490
|
+
.xc-row--active {
|
|
491
491
|
box-shadow: inset 0 0 0 1px ${PANEL_COLORS.ring};
|
|
492
492
|
}
|
|
493
|
-
.
|
|
493
|
+
.xc-row--disabled {
|
|
494
494
|
opacity: ${PANEL_DISABLED_OPACITY};
|
|
495
495
|
cursor: not-allowed;
|
|
496
496
|
}
|
|
497
|
-
.
|
|
497
|
+
.xc-row--disabled:hover {
|
|
498
498
|
background: transparent;
|
|
499
499
|
}
|
|
500
|
-
.
|
|
500
|
+
.xc-row:focus-visible {
|
|
501
501
|
outline: 1px solid ${PANEL_COLORS.focus};
|
|
502
502
|
outline-offset: -1px;
|
|
503
503
|
}
|
|
504
|
-
.
|
|
504
|
+
.xc-row-icon {
|
|
505
505
|
display: flex;
|
|
506
506
|
align-items: center;
|
|
507
507
|
justify-content: center;
|
|
@@ -510,20 +510,20 @@ div.xeno-section-trigger {
|
|
|
510
510
|
flex: 0 0 auto;
|
|
511
511
|
opacity: 0.8;
|
|
512
512
|
}
|
|
513
|
-
.
|
|
513
|
+
.xc-row-label {
|
|
514
514
|
flex: 1 1 auto;
|
|
515
515
|
min-width: 0;
|
|
516
516
|
overflow: hidden;
|
|
517
517
|
text-overflow: ellipsis;
|
|
518
518
|
white-space: nowrap;
|
|
519
519
|
}
|
|
520
|
-
.
|
|
520
|
+
.xc-row-meta {
|
|
521
521
|
flex: 0 0 auto;
|
|
522
522
|
font-size: ${PANEL_METRICS.fontLabel}px;
|
|
523
523
|
color: ${MUTED};
|
|
524
524
|
font-variant-numeric: tabular-nums;
|
|
525
525
|
}
|
|
526
|
-
.
|
|
526
|
+
.xc-row-trailing {
|
|
527
527
|
display: flex;
|
|
528
528
|
align-items: center;
|
|
529
529
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
@@ -533,7 +533,7 @@ div.xeno-section-trigger {
|
|
|
533
533
|
|
|
534
534
|
/* \u2500\u2500\u2500 5. Controls \u2500\u2500\u2500 */
|
|
535
535
|
|
|
536
|
-
.
|
|
536
|
+
.xc-iconbtn {
|
|
537
537
|
display: flex;
|
|
538
538
|
align-items: center;
|
|
539
539
|
justify-content: center;
|
|
@@ -547,41 +547,41 @@ div.xeno-section-trigger {
|
|
|
547
547
|
opacity: 0.8;
|
|
548
548
|
transition: background-color 80ms ease, opacity 80ms ease;
|
|
549
549
|
}
|
|
550
|
-
.
|
|
550
|
+
.xc-iconbtn--sm {
|
|
551
551
|
width: ${PANEL_METRICS.iconButtonSm}px;
|
|
552
552
|
height: ${PANEL_METRICS.iconButtonSm}px;
|
|
553
553
|
}
|
|
554
|
-
.
|
|
554
|
+
.xc-iconbtn--md {
|
|
555
555
|
width: ${PANEL_METRICS.iconButton}px;
|
|
556
556
|
height: ${PANEL_METRICS.iconButton}px;
|
|
557
557
|
}
|
|
558
|
-
.
|
|
558
|
+
.xc-iconbtn--sm svg {
|
|
559
559
|
width: ${PANEL_METRICS.iconGlyphSm}px;
|
|
560
560
|
height: ${PANEL_METRICS.iconGlyphSm}px;
|
|
561
561
|
}
|
|
562
|
-
.
|
|
562
|
+
.xc-iconbtn--md svg {
|
|
563
563
|
width: ${PANEL_METRICS.iconGlyph}px;
|
|
564
564
|
height: ${PANEL_METRICS.iconGlyph}px;
|
|
565
565
|
}
|
|
566
|
-
.
|
|
566
|
+
.xc-iconbtn:hover {
|
|
567
567
|
background: ${PANEL_COLORS.soft};
|
|
568
568
|
opacity: 1;
|
|
569
569
|
}
|
|
570
|
-
.
|
|
570
|
+
.xc-iconbtn--active {
|
|
571
571
|
background: ${PANEL_COLORS.rowSelected};
|
|
572
572
|
opacity: 1;
|
|
573
573
|
}
|
|
574
|
-
.
|
|
574
|
+
.xc-iconbtn:focus-visible {
|
|
575
575
|
outline: 1px solid ${PANEL_COLORS.focus};
|
|
576
576
|
outline-offset: 1px;
|
|
577
577
|
}
|
|
578
|
-
.
|
|
578
|
+
.xc-iconbtn[disabled] {
|
|
579
579
|
opacity: ${PANEL_DISABLED_OPACITY};
|
|
580
580
|
cursor: not-allowed;
|
|
581
581
|
background: transparent;
|
|
582
582
|
}
|
|
583
583
|
|
|
584
|
-
.
|
|
584
|
+
.xc-textbtn {
|
|
585
585
|
flex: 0 0 auto;
|
|
586
586
|
padding: 0;
|
|
587
587
|
border: none;
|
|
@@ -593,23 +593,23 @@ div.xeno-section-trigger {
|
|
|
593
593
|
cursor: pointer;
|
|
594
594
|
transition: color 80ms ease;
|
|
595
595
|
}
|
|
596
|
-
.
|
|
596
|
+
.xc-textbtn:hover {
|
|
597
597
|
color: ${FG};
|
|
598
598
|
}
|
|
599
|
-
.
|
|
599
|
+
.xc-textbtn--strong {
|
|
600
600
|
color: ${FG};
|
|
601
601
|
}
|
|
602
|
-
.
|
|
602
|
+
.xc-textbtn:focus-visible {
|
|
603
603
|
outline: 1px solid ${PANEL_COLORS.focus};
|
|
604
604
|
outline-offset: 1px;
|
|
605
605
|
}
|
|
606
|
-
.
|
|
606
|
+
.xc-textbtn[disabled] {
|
|
607
607
|
opacity: ${PANEL_DISABLED_OPACITY};
|
|
608
608
|
cursor: not-allowed;
|
|
609
609
|
color: ${MUTED};
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
.
|
|
612
|
+
.xc-search {
|
|
613
613
|
display: flex;
|
|
614
614
|
align-items: center;
|
|
615
615
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
@@ -624,20 +624,20 @@ div.xeno-section-trigger {
|
|
|
624
624
|
color: ${FG};
|
|
625
625
|
transition: border-color 80ms ease;
|
|
626
626
|
}
|
|
627
|
-
.
|
|
627
|
+
.xc-search:focus-within {
|
|
628
628
|
border-color: ${PANEL_COLORS.ring};
|
|
629
629
|
}
|
|
630
|
-
.
|
|
630
|
+
.xc-search--disabled {
|
|
631
631
|
opacity: ${PANEL_DISABLED_OPACITY};
|
|
632
632
|
}
|
|
633
|
-
.
|
|
633
|
+
.xc-search-glyph {
|
|
634
634
|
display: flex;
|
|
635
635
|
align-items: center;
|
|
636
636
|
justify-content: center;
|
|
637
637
|
flex: 0 0 auto;
|
|
638
638
|
color: ${MUTED};
|
|
639
639
|
}
|
|
640
|
-
.
|
|
640
|
+
.xc-search-input {
|
|
641
641
|
flex: 1 1 auto;
|
|
642
642
|
min-width: 0;
|
|
643
643
|
height: 100%;
|
|
@@ -650,10 +650,10 @@ div.xeno-section-trigger {
|
|
|
650
650
|
outline: none;
|
|
651
651
|
cursor: text;
|
|
652
652
|
}
|
|
653
|
-
.
|
|
653
|
+
.xc-search-input::placeholder {
|
|
654
654
|
color: ${DIM};
|
|
655
655
|
}
|
|
656
|
-
.
|
|
656
|
+
.xc-search-clear {
|
|
657
657
|
display: flex;
|
|
658
658
|
align-items: center;
|
|
659
659
|
justify-content: center;
|
|
@@ -667,12 +667,12 @@ div.xeno-section-trigger {
|
|
|
667
667
|
color: ${MUTED};
|
|
668
668
|
cursor: pointer;
|
|
669
669
|
}
|
|
670
|
-
.
|
|
670
|
+
.xc-search-clear:hover {
|
|
671
671
|
color: ${FG};
|
|
672
672
|
background: ${PANEL_COLORS.soft};
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
-
.
|
|
675
|
+
.xc-segmented {
|
|
676
676
|
display: inline-flex;
|
|
677
677
|
align-items: stretch;
|
|
678
678
|
flex: 0 0 auto;
|
|
@@ -682,20 +682,20 @@ div.xeno-section-trigger {
|
|
|
682
682
|
border-radius: ${PANEL_METRICS.radius}px;
|
|
683
683
|
box-sizing: border-box;
|
|
684
684
|
}
|
|
685
|
-
.
|
|
685
|
+
.xc-segmented--sm {
|
|
686
686
|
height: ${PANEL_METRICS.iconButtonSm + 2}px;
|
|
687
687
|
}
|
|
688
|
-
.
|
|
688
|
+
.xc-segmented--md {
|
|
689
689
|
height: ${CTRL_H};
|
|
690
690
|
}
|
|
691
|
-
.
|
|
691
|
+
.xc-segmented--stretch {
|
|
692
692
|
display: flex;
|
|
693
693
|
width: 100%;
|
|
694
694
|
}
|
|
695
|
-
.
|
|
695
|
+
.xc-segmented--stretch .xc-segment {
|
|
696
696
|
flex: 1 1 0;
|
|
697
697
|
}
|
|
698
|
-
.
|
|
698
|
+
.xc-segment {
|
|
699
699
|
display: flex;
|
|
700
700
|
align-items: center;
|
|
701
701
|
justify-content: center;
|
|
@@ -712,23 +712,23 @@ div.xeno-section-trigger {
|
|
|
712
712
|
transition: background-color 80ms ease, color 80ms ease;
|
|
713
713
|
white-space: nowrap;
|
|
714
714
|
}
|
|
715
|
-
.
|
|
715
|
+
.xc-segment:hover {
|
|
716
716
|
color: ${FG};
|
|
717
717
|
}
|
|
718
|
-
.
|
|
718
|
+
.xc-segment--checked {
|
|
719
719
|
background: ${PANEL_COLORS.rowSelected};
|
|
720
720
|
color: ${FG};
|
|
721
721
|
}
|
|
722
|
-
.
|
|
722
|
+
.xc-segment:focus-visible {
|
|
723
723
|
outline: 1px solid ${PANEL_COLORS.focus};
|
|
724
724
|
outline-offset: -1px;
|
|
725
725
|
}
|
|
726
|
-
.
|
|
726
|
+
.xc-segment[disabled] {
|
|
727
727
|
opacity: ${PANEL_DISABLED_OPACITY};
|
|
728
728
|
cursor: not-allowed;
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
-
.
|
|
731
|
+
.xc-toggle {
|
|
732
732
|
position: relative;
|
|
733
733
|
display: inline-flex;
|
|
734
734
|
align-items: center;
|
|
@@ -740,18 +740,18 @@ div.xeno-section-trigger {
|
|
|
740
740
|
cursor: pointer;
|
|
741
741
|
transition: background-color 80ms ease;
|
|
742
742
|
}
|
|
743
|
-
.
|
|
743
|
+
.xc-toggle--sm {
|
|
744
744
|
width: 16px;
|
|
745
745
|
height: 10px;
|
|
746
746
|
}
|
|
747
|
-
.
|
|
747
|
+
.xc-toggle--md {
|
|
748
748
|
width: 22px;
|
|
749
749
|
height: 12px;
|
|
750
750
|
}
|
|
751
|
-
.
|
|
751
|
+
.xc-toggle--on {
|
|
752
752
|
background: rgba(255, 255, 255, 0.25);
|
|
753
753
|
}
|
|
754
|
-
.
|
|
754
|
+
.xc-toggle-knob {
|
|
755
755
|
position: absolute;
|
|
756
756
|
top: 2px;
|
|
757
757
|
left: 2px;
|
|
@@ -759,45 +759,45 @@ div.xeno-section-trigger {
|
|
|
759
759
|
border-radius: 1px;
|
|
760
760
|
transition: transform 80ms ease, border-radius 80ms ease, background-color 80ms ease;
|
|
761
761
|
}
|
|
762
|
-
.
|
|
762
|
+
.xc-toggle--sm .xc-toggle-knob {
|
|
763
763
|
width: 6px;
|
|
764
764
|
height: 6px;
|
|
765
765
|
}
|
|
766
|
-
.
|
|
766
|
+
.xc-toggle--md .xc-toggle-knob {
|
|
767
767
|
width: 8px;
|
|
768
768
|
height: 8px;
|
|
769
769
|
}
|
|
770
|
-
.
|
|
770
|
+
.xc-toggle--on .xc-toggle-knob {
|
|
771
771
|
background: ${FG};
|
|
772
772
|
border-radius: ${PANEL_METRICS.radius}px;
|
|
773
773
|
}
|
|
774
|
-
.
|
|
774
|
+
.xc-toggle--sm.xc-toggle--on .xc-toggle-knob {
|
|
775
775
|
transform: translateX(6px);
|
|
776
776
|
}
|
|
777
|
-
.
|
|
777
|
+
.xc-toggle--md.xc-toggle--on .xc-toggle-knob {
|
|
778
778
|
transform: translateX(10px);
|
|
779
779
|
}
|
|
780
|
-
.
|
|
780
|
+
.xc-toggle:focus-visible {
|
|
781
781
|
outline: 1px solid ${PANEL_COLORS.focus};
|
|
782
782
|
outline-offset: 1px;
|
|
783
783
|
}
|
|
784
784
|
/* Both layers, per DESIGN_SYSTEM \xA73.1 "Cursors \u2014 two layers, both required": the modifier class
|
|
785
785
|
for callers that style a wrapper, and the attribute selector for the real disabled control. */
|
|
786
|
-
.
|
|
787
|
-
.
|
|
786
|
+
.xc-toggle--disabled,
|
|
787
|
+
.xc-toggle[disabled] {
|
|
788
788
|
opacity: ${PANEL_DISABLED_OPACITY};
|
|
789
789
|
cursor: not-allowed;
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
/* \u2500\u2500\u2500 6. Fields \u2500\u2500\u2500 */
|
|
793
793
|
|
|
794
|
-
.
|
|
794
|
+
.xc-fieldgroup {
|
|
795
795
|
display: flex;
|
|
796
796
|
flex-direction: column;
|
|
797
797
|
gap: 2px;
|
|
798
798
|
min-width: 0;
|
|
799
799
|
}
|
|
800
|
-
.
|
|
800
|
+
.xc-field {
|
|
801
801
|
display: flex;
|
|
802
802
|
align-items: center;
|
|
803
803
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
@@ -807,7 +807,7 @@ div.xeno-section-trigger {
|
|
|
807
807
|
box-sizing: border-box;
|
|
808
808
|
min-width: 0;
|
|
809
809
|
}
|
|
810
|
-
.
|
|
810
|
+
.xc-field-label {
|
|
811
811
|
flex: 0 0 auto;
|
|
812
812
|
width: ${LABEL_W};
|
|
813
813
|
overflow: hidden;
|
|
@@ -818,7 +818,7 @@ div.xeno-section-trigger {
|
|
|
818
818
|
user-select: none;
|
|
819
819
|
cursor: default;
|
|
820
820
|
}
|
|
821
|
-
.
|
|
821
|
+
.xc-field-control {
|
|
822
822
|
display: flex;
|
|
823
823
|
align-items: center;
|
|
824
824
|
gap: ${PANEL_METRICS.rowGap}px;
|
|
@@ -826,29 +826,29 @@ div.xeno-section-trigger {
|
|
|
826
826
|
min-width: 0;
|
|
827
827
|
justify-content: flex-end;
|
|
828
828
|
}
|
|
829
|
-
.
|
|
829
|
+
.xc-field-hint {
|
|
830
830
|
flex: 1 1 100%;
|
|
831
831
|
padding-left: ${LABEL_W};
|
|
832
832
|
font-size: ${PANEL_METRICS.fontLabel}px;
|
|
833
833
|
color: ${DIM};
|
|
834
834
|
}
|
|
835
|
-
.
|
|
835
|
+
.xc-field--stacked {
|
|
836
836
|
flex-direction: column;
|
|
837
837
|
align-items: stretch;
|
|
838
838
|
}
|
|
839
|
-
.
|
|
839
|
+
.xc-field--stacked .xc-field-label {
|
|
840
840
|
width: auto;
|
|
841
841
|
}
|
|
842
|
-
.
|
|
842
|
+
.xc-field--stacked .xc-field-control {
|
|
843
843
|
justify-content: flex-start;
|
|
844
844
|
}
|
|
845
|
-
.
|
|
845
|
+
.xc-field--stacked .xc-field-hint {
|
|
846
846
|
padding-left: 0;
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
/* \u2500\u2500\u2500 7. States \u2500\u2500\u2500 */
|
|
850
850
|
|
|
851
|
-
.
|
|
851
|
+
.xc-state {
|
|
852
852
|
display: flex;
|
|
853
853
|
flex-direction: column;
|
|
854
854
|
align-items: center;
|
|
@@ -858,7 +858,7 @@ div.xeno-section-trigger {
|
|
|
858
858
|
text-align: center;
|
|
859
859
|
min-width: 0;
|
|
860
860
|
}
|
|
861
|
-
.
|
|
861
|
+
.xc-state-icon {
|
|
862
862
|
display: flex;
|
|
863
863
|
align-items: center;
|
|
864
864
|
justify-content: center;
|
|
@@ -868,28 +868,28 @@ div.xeno-section-trigger {
|
|
|
868
868
|
border-radius: ${PANEL_METRICS.radius}px;
|
|
869
869
|
color: ${MUTED};
|
|
870
870
|
}
|
|
871
|
-
.
|
|
872
|
-
.
|
|
871
|
+
.xc-empty,
|
|
872
|
+
.xc-loading {
|
|
873
873
|
user-select: none;
|
|
874
874
|
}
|
|
875
|
-
.
|
|
875
|
+
.xc-state-title {
|
|
876
876
|
font-size: ${PANEL_METRICS.fontMeta}px;
|
|
877
877
|
text-transform: uppercase;
|
|
878
878
|
letter-spacing: 0.08em;
|
|
879
879
|
opacity: 0.4;
|
|
880
880
|
color: ${FG};
|
|
881
881
|
}
|
|
882
|
-
.
|
|
882
|
+
.xc-state-hint {
|
|
883
883
|
max-width: 28ch;
|
|
884
884
|
font-size: ${PANEL_METRICS.fontMeta}px;
|
|
885
885
|
line-height: 1.45;
|
|
886
886
|
color: ${MUTED};
|
|
887
887
|
}
|
|
888
|
-
.
|
|
888
|
+
.xc-error .xc-state-title {
|
|
889
889
|
opacity: 1;
|
|
890
890
|
color: ${PANEL_COLORS.errorText};
|
|
891
891
|
}
|
|
892
|
-
.
|
|
892
|
+
.xc-state-progress {
|
|
893
893
|
position: relative;
|
|
894
894
|
width: 64px;
|
|
895
895
|
height: 2px;
|
|
@@ -897,7 +897,7 @@ div.xeno-section-trigger {
|
|
|
897
897
|
background: ${PANEL_COLORS.soft};
|
|
898
898
|
overflow: hidden;
|
|
899
899
|
}
|
|
900
|
-
.
|
|
900
|
+
.xc-state-progress::after {
|
|
901
901
|
content: '';
|
|
902
902
|
position: absolute;
|
|
903
903
|
top: 0;
|
|
@@ -921,7 +921,7 @@ div.xeno-section-trigger {
|
|
|
921
921
|
|
|
922
922
|
/* \u2500\u2500\u2500 8. Indicators \u2500\u2500\u2500 */
|
|
923
923
|
|
|
924
|
-
.
|
|
924
|
+
.xc-badge {
|
|
925
925
|
display: inline-flex;
|
|
926
926
|
align-items: center;
|
|
927
927
|
gap: 3px;
|
|
@@ -937,18 +937,18 @@ div.xeno-section-trigger {
|
|
|
937
937
|
white-space: nowrap;
|
|
938
938
|
user-select: none;
|
|
939
939
|
}
|
|
940
|
-
.
|
|
940
|
+
.xc-badge--md {
|
|
941
941
|
height: ${PANEL_METRICS.badgeHeightMd}px;
|
|
942
942
|
line-height: ${PANEL_METRICS.badgeHeightMd}px;
|
|
943
943
|
padding: 0 5px;
|
|
944
944
|
font-size: ${PANEL_METRICS.fontMeta}px;
|
|
945
945
|
}
|
|
946
|
-
.
|
|
947
|
-
.
|
|
948
|
-
.
|
|
949
|
-
.
|
|
946
|
+
.xc-badge--info { color: ${PANEL_COLORS.infoText}; }
|
|
947
|
+
.xc-badge--success { color: ${PANEL_COLORS.successText}; }
|
|
948
|
+
.xc-badge--warning { color: ${PANEL_COLORS.warningText}; }
|
|
949
|
+
.xc-badge--error { color: ${PANEL_COLORS.errorText}; }
|
|
950
950
|
|
|
951
|
-
.
|
|
951
|
+
.xc-dot {
|
|
952
952
|
display: inline-block;
|
|
953
953
|
flex: 0 0 auto;
|
|
954
954
|
width: ${PANEL_METRICS.dotSize}px;
|
|
@@ -956,12 +956,12 @@ div.xeno-section-trigger {
|
|
|
956
956
|
border-radius: 1px;
|
|
957
957
|
background: ${MUTED};
|
|
958
958
|
}
|
|
959
|
-
.
|
|
960
|
-
.
|
|
961
|
-
.
|
|
962
|
-
.
|
|
959
|
+
.xc-dot--info { background: ${PANEL_COLORS.infoText}; }
|
|
960
|
+
.xc-dot--success { background: ${PANEL_COLORS.successText}; }
|
|
961
|
+
.xc-dot--warning { background: ${PANEL_COLORS.warningText}; }
|
|
962
|
+
.xc-dot--error { background: ${PANEL_COLORS.error}; }
|
|
963
963
|
|
|
964
|
-
.
|
|
964
|
+
.xc-iconframe {
|
|
965
965
|
display: flex;
|
|
966
966
|
align-items: center;
|
|
967
967
|
justify-content: center;
|
|
@@ -974,7 +974,7 @@ div.xeno-section-trigger {
|
|
|
974
974
|
|
|
975
975
|
/* \u2500\u2500\u2500 9. Data tiles \u2500\u2500\u2500 */
|
|
976
976
|
|
|
977
|
-
.
|
|
977
|
+
.xc-stat {
|
|
978
978
|
display: flex;
|
|
979
979
|
flex-direction: column;
|
|
980
980
|
gap: 3px;
|
|
@@ -984,7 +984,7 @@ div.xeno-section-trigger {
|
|
|
984
984
|
border-radius: ${PANEL_METRICS.radius}px;
|
|
985
985
|
background: rgba(0, 0, 0, 0.2);
|
|
986
986
|
}
|
|
987
|
-
.
|
|
987
|
+
.xc-stat-label {
|
|
988
988
|
display: flex;
|
|
989
989
|
align-items: center;
|
|
990
990
|
justify-content: space-between;
|
|
@@ -994,7 +994,7 @@ div.xeno-section-trigger {
|
|
|
994
994
|
letter-spacing: 0.06em;
|
|
995
995
|
color: ${MUTED};
|
|
996
996
|
}
|
|
997
|
-
.
|
|
997
|
+
.xc-stat-value {
|
|
998
998
|
font-size: 16px;
|
|
999
999
|
font-weight: 600;
|
|
1000
1000
|
line-height: 1.1;
|
|
@@ -1004,13 +1004,13 @@ div.xeno-section-trigger {
|
|
|
1004
1004
|
text-overflow: ellipsis;
|
|
1005
1005
|
white-space: nowrap;
|
|
1006
1006
|
}
|
|
1007
|
-
.
|
|
1007
|
+
.xc-stat-sub {
|
|
1008
1008
|
font-size: ${PANEL_METRICS.fontLabel}px;
|
|
1009
1009
|
color: ${DIM};
|
|
1010
1010
|
font-variant-numeric: tabular-nums;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
|
-
.
|
|
1013
|
+
.xc-bar {
|
|
1014
1014
|
display: flex;
|
|
1015
1015
|
width: 100%;
|
|
1016
1016
|
height: 6px;
|
|
@@ -1018,7 +1018,7 @@ div.xeno-section-trigger {
|
|
|
1018
1018
|
background: rgba(255, 255, 255, 0.04);
|
|
1019
1019
|
overflow: hidden;
|
|
1020
1020
|
}
|
|
1021
|
-
.
|
|
1021
|
+
.xc-bar-segment {
|
|
1022
1022
|
height: 100%;
|
|
1023
1023
|
min-width: 0;
|
|
1024
1024
|
}
|
|
@@ -1026,16 +1026,16 @@ div.xeno-section-trigger {
|
|
|
1026
1026
|
/* \u2500\u2500\u2500 10. Reduced motion (DESIGN_SYSTEM \xA711) \u2500\u2500\u2500 */
|
|
1027
1027
|
|
|
1028
1028
|
@media (prefers-reduced-motion: reduce) {
|
|
1029
|
-
.
|
|
1030
|
-
.
|
|
1031
|
-
.
|
|
1032
|
-
.
|
|
1033
|
-
.
|
|
1034
|
-
.
|
|
1035
|
-
.
|
|
1029
|
+
.xc-row,
|
|
1030
|
+
.xc-iconbtn,
|
|
1031
|
+
.xc-segment,
|
|
1032
|
+
.xc-toggle,
|
|
1033
|
+
.xc-toggle-knob,
|
|
1034
|
+
.xc-search,
|
|
1035
|
+
.xc-section-chevron {
|
|
1036
1036
|
transition: none;
|
|
1037
1037
|
}
|
|
1038
|
-
.
|
|
1038
|
+
.xc-state-progress::after,
|
|
1039
1039
|
.xeno-spin {
|
|
1040
1040
|
animation: none;
|
|
1041
1041
|
}
|
|
@@ -1204,7 +1204,7 @@ function IconButton({
|
|
|
1204
1204
|
"aria-pressed": active,
|
|
1205
1205
|
disabled,
|
|
1206
1206
|
onClick,
|
|
1207
|
-
className: iconButtonClass({ active, disabled }, cx(`${"
|
|
1207
|
+
className: iconButtonClass({ active, disabled }, cx(`${"xc-iconbtn"}--${size}`, className)),
|
|
1208
1208
|
children: icon
|
|
1209
1209
|
}
|
|
1210
1210
|
);
|
|
@@ -1590,7 +1590,7 @@ function Badge({
|
|
|
1590
1590
|
className
|
|
1591
1591
|
}) {
|
|
1592
1592
|
usePanelPrimitives();
|
|
1593
|
-
return /* @__PURE__ */ jsx6("span", { title, className: badgeClass(tone, cx(size === "md" && "
|
|
1593
|
+
return /* @__PURE__ */ jsx6("span", { title, className: badgeClass(tone, cx(size === "md" && "xc-badge--md", className)), children });
|
|
1594
1594
|
}
|
|
1595
1595
|
function StatusDot({ tone = "neutral", label, className }) {
|
|
1596
1596
|
usePanelPrimitives();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenosystem/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "XENO Components \u2014 rung 2 of the front ladder: molecules composed from @xenosystem/elements, with no host contract. Families as subpaths: /auth, /navigation, /feedback, /data.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|