@xenosystem/elements-react 0.0.10 → 0.0.12
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/containers/Avatar.d.ts +8 -1
- package/dist/containers/Avatar.js +3 -3
- package/dist/containers/BulkActionBar.d.ts +20 -0
- package/dist/containers/BulkActionBar.js +8 -0
- package/dist/containers/DataTable.d.ts +50 -6
- package/dist/containers/DataTable.js +185 -11
- package/dist/containers/Table.d.ts +2 -2
- package/dist/containers/Table.js +4 -3
- package/dist/content/Kbd.d.ts +16 -0
- package/dist/content/Kbd.js +8 -0
- package/dist/forms/FormField.d.ts +32 -0
- package/dist/forms/FormField.js +26 -0
- package/dist/forms/NumberInput.d.ts +27 -0
- package/dist/forms/NumberInput.js +69 -0
- package/dist/forms/Select.d.ts +84 -0
- package/dist/forms/Select.js +243 -0
- package/dist/forms/Slider.d.ts +38 -0
- package/dist/forms/Slider.js +31 -0
- package/dist/index.d.ts +20 -1
- package/dist/index.js +20 -1
- package/dist/nav/Breadcrumb.d.ts +22 -0
- package/dist/nav/Breadcrumb.js +10 -0
- package/dist/nav/Pagination.d.ts +22 -0
- package/dist/nav/Pagination.js +35 -0
- package/dist/overlays/CommandPalette.d.ts +43 -0
- package/dist/overlays/CommandPalette.js +96 -0
- package/dist/overlays/Drawer.d.ts +30 -0
- package/dist/overlays/Drawer.js +41 -0
- package/dist/overlays/Popover.d.ts +27 -12
- package/dist/overlays/Popover.js +104 -7
- package/dist/overlays/ShortcutsSheet.d.ts +21 -0
- package/dist/overlays/ShortcutsSheet.js +7 -0
- package/dist/overlays/Tooltip.d.ts +21 -10
- package/dist/overlays/Tooltip.js +93 -9
- package/dist/shortcuts.d.ts +45 -0
- package/dist/shortcuts.js +164 -0
- package/dist/status/Banner.d.ts +23 -0
- package/dist/status/Banner.js +8 -0
- package/dist/status/EmptyState.d.ts +20 -0
- package/dist/status/EmptyState.js +9 -0
- package/dist/status/Skeleton.d.ts +36 -0
- package/dist/status/Skeleton.js +31 -0
- package/dist/status/Toast.d.ts +28 -0
- package/dist/status/Toast.js +11 -0
- package/dist/uiTree.d.ts +53 -0
- package/dist/uiTree.js +197 -0
- package/dist/useDialog.d.ts +3 -1
- package/dist/useDialog.js +37 -1
- package/dist/useMenu.js +31 -1
- package/dist/useToastQueue.d.ts +29 -0
- package/dist/useToastQueue.js +73 -0
- package/package.json +9 -3
- package/src/chrome-separated.css +133 -72
- package/src/chrome-unified.css +48 -16
- package/src/containers/Badges.css +52 -28
- package/src/containers/avatar.css +7 -2
- package/src/containers/bulk-action-bar.css +45 -0
- package/src/containers/card.css +14 -13
- package/src/containers/chip.css +1 -1
- package/src/containers/panel.css +16 -53
- package/src/containers/table.css +107 -1
- package/src/content/kbd.css +33 -0
- package/src/content/model-picker.css +2 -1
- package/src/controls.css +25 -11
- package/src/fonts.css +8 -2
- package/src/forced-colors.css +41 -0
- package/src/forms/form-field.css +78 -0
- package/src/forms/number-input.css +86 -0
- package/src/forms/select.css +210 -0
- package/src/forms/slider.css +145 -0
- package/src/layout-platform.css +495 -0
- package/src/mcp-app-platform.css +1019 -0
- package/src/nav/breadcrumb.css +84 -0
- package/src/nav/pagination.css +61 -0
- package/src/overlays/command-palette.css +157 -0
- package/src/overlays/drawer.css +79 -0
- package/src/overlays/menu.css +25 -16
- package/src/overlays/modal.css +9 -27
- package/src/overlays/onboarding.css +1305 -0
- package/src/overlays/segmented-control.css +6 -3
- package/src/overlays/shortcuts-sheet.css +55 -0
- package/src/overlays/tooltip.css +22 -4
- package/src/size.css +40 -0
- package/src/status/banner.css +83 -0
- package/src/status/empty-state.css +56 -0
- package/src/status/skeleton.css +70 -0
- package/src/status/toast.css +95 -0
- package/src/xeno-elements.css +71 -44
- package/src/xeno-theme.css +75 -31
package/src/xeno-theme.css
CHANGED
|
@@ -26,6 +26,18 @@
|
|
|
26
26
|
--xeno-panel-header: #1a1a1a;
|
|
27
27
|
--xeno-elevated: #111115;
|
|
28
28
|
--xeno-control: #2b2b2b;
|
|
29
|
+
/* FIELD: what a text input / text area paints. In dark it is the page value, exactly what inputs
|
|
30
|
+
drew before it had a name; light makes it white (the references' inputs). */
|
|
31
|
+
--xeno-field: #08080a;
|
|
32
|
+
/* RAISED: a plate lifted off a well (the chosen segment). In dark the control value, as before. */
|
|
33
|
+
--xeno-raised: #2b2b2b;
|
|
34
|
+
/* DEPTH — clean elevation without duplicate `0 0 0 1px` wire rings (every XENO container and
|
|
35
|
+
overlay owns its crisp `1px solid var(--xeno-border)` so shadows never double-outline or fail
|
|
36
|
+
in Windows forced-colors mode).
|
|
37
|
+
SHADOW: subtle elevation for raised thumbs and `Card variant="elevated"` (`none` in dark).
|
|
38
|
+
POP: restrained floating elevation for portaled menus, popovers, dialogs, and stacked toasts. */
|
|
39
|
+
--xeno-shadow: none;
|
|
40
|
+
--xeno-pop: 0 8px 24px rgba(0, 0, 0, 0.36), 0 2px 6px rgba(0, 0, 0, 0.22);
|
|
29
41
|
--xeno-border: rgba(255, 255, 255, 0.1);
|
|
30
42
|
/* Half-weight hairline. `Plate` frames its shell at white/[0.05]; `--xeno-border` (0.1) is twice
|
|
31
43
|
that and reads as a drawn line rather than an edge. The playbook calls it `border-subtle`. */
|
|
@@ -44,6 +56,19 @@
|
|
|
44
56
|
--xeno-success-text: #6fae7f;
|
|
45
57
|
--xeno-warning-text: #c98d2a;
|
|
46
58
|
--xeno-info-text: #7aa2c4;
|
|
59
|
+
/* Semantic fills, soft tints & canvas/code roles from the five owner references */
|
|
60
|
+
--xeno-ok: oklch(0.72 0.12 145);
|
|
61
|
+
--xeno-ok-soft: oklch(0.72 0.12 145 / 0.14);
|
|
62
|
+
--xeno-warn: oklch(0.72 0.13 75);
|
|
63
|
+
--xeno-warn-soft: oklch(0.72 0.13 75 / 0.16);
|
|
64
|
+
--xeno-danger-soft: oklch(0.64 0.15 25 / 0.14);
|
|
65
|
+
--xeno-info: oklch(0.72 0.12 250);
|
|
66
|
+
--xeno-info-soft: oklch(0.72 0.12 250 / 0.14);
|
|
67
|
+
--xeno-dot: #2e2c29;
|
|
68
|
+
--xeno-lane: rgba(237, 235, 231, 0.025);
|
|
69
|
+
--xeno-edge: #5a5651;
|
|
70
|
+
--xeno-code: #111110;
|
|
71
|
+
--xeno-stripe: rgba(237, 235, 231, 0.05);
|
|
47
72
|
--xeno-on-accent: #08080a;
|
|
48
73
|
|
|
49
74
|
/* scrollbar — its own alphas on purpose. A thumb sitting on any surface in the set has to be legible
|
|
@@ -77,36 +102,55 @@
|
|
|
77
102
|
}
|
|
78
103
|
|
|
79
104
|
|
|
80
|
-
/* Light — PROPOSED
|
|
105
|
+
/* Light — PROPOSED, now MEASURED. The earlier block was a placeholder ("a real light ramp is the design
|
|
106
|
+
system's call, not this file's"). These values are the one light ramp the owner's five design
|
|
107
|
+
references agree on (XENO Workshop v3, XENO Motion v12, XENO Desktop, XENO Corpus, XENO Creator;
|
|
108
|
+
Motion `handoff/tokens.md` and the Workshop handoff list them identically). Warm neutrals, the same
|
|
109
|
+
roles as dark: the page/frame is the darkest step, bars and headers one step up, content and dialogs
|
|
110
|
+
white. Still PROPOSED until DESIGN_SYSTEM.md §2 carries a light ramp; dark is untouched.
|
|
111
|
+
Reference role in brackets. */
|
|
81
112
|
.xeno[data-theme='light'] {
|
|
82
|
-
--xeno-canvas: #
|
|
83
|
-
--xeno-surface: #
|
|
84
|
-
--xeno-elevated: #ffffff;
|
|
85
|
-
--xeno-control: #
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
--xeno-panel-header: #
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
--xeno-
|
|
96
|
-
--xeno-
|
|
97
|
-
--xeno-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
--xeno-muted: #
|
|
101
|
-
--xeno-
|
|
102
|
-
--xeno-
|
|
103
|
-
--xeno-
|
|
104
|
-
--xeno-danger-
|
|
105
|
-
--xeno-
|
|
106
|
-
--xeno-
|
|
107
|
-
--xeno-
|
|
108
|
-
--xeno-
|
|
109
|
-
--xeno-
|
|
110
|
-
--xeno-
|
|
111
|
-
--xeno-
|
|
113
|
+
--xeno-canvas: #e9e6e1; /* [frame/gap] the void between panels */
|
|
114
|
+
--xeno-surface: #f6f4f1; /* [body/head] bars, headers, sidebars */
|
|
115
|
+
--xeno-elevated: #ffffff; /* [dialog/menu] */
|
|
116
|
+
--xeno-control: #eae7e2; /* [ghost2] control fills and wells */
|
|
117
|
+
--xeno-field: #ffffff; /* [input] text fields are white on the warm ground */
|
|
118
|
+
--xeno-raised: #ffffff; /* [seg] the chosen segment's plate */
|
|
119
|
+
--xeno-shadow: 0 1px 2px rgba(31, 28, 24, 0.08);
|
|
120
|
+
--xeno-pop: 0 8px 24px rgba(31, 28, 24, 0.1), 0 2px 6px rgba(31, 28, 24, 0.05);
|
|
121
|
+
/* Must not equal `--xeno-canvas`, or the separated gaps stop reading. It does not: one step up. */
|
|
122
|
+
--xeno-panel-header: #f6f4f1; /* [head] */
|
|
123
|
+
--xeno-viewport: #ffffff; /* [canvas] panel content */
|
|
124
|
+
--xeno-border: #dedad4; /* [seam / b3] */
|
|
125
|
+
--xeno-border-subtle: #e4e0da; /* [b2 hairline] */
|
|
126
|
+
--xeno-hover: rgba(31, 31, 31, 0.06); /* [hov] */
|
|
127
|
+
--xeno-text: #1f1f1f; /* [t1] */
|
|
128
|
+
--xeno-muted: #6e6a64; /* [t4 / idle] resting interactive label */
|
|
129
|
+
/* [t3] Reading text must be AA on every surface down to the control well; t4 is 4.3:1 on #eae7e2,
|
|
130
|
+
so prose takes the next reference step up instead of a new value. */
|
|
131
|
+
--xeno-muted-text: #4e4a45;
|
|
132
|
+
--xeno-active: #2e2c29; /* [t2] */
|
|
133
|
+
--xeno-on-accent: #faf9f7; /* [on-accent] */
|
|
134
|
+
--xeno-danger: oklch(0.55 0.15 25); /* [red] */
|
|
135
|
+
--xeno-danger-hover: oklch(0.5 0.15 25);
|
|
136
|
+
--xeno-danger-text: oklch(0.5 0.15 25); /* [red-t] */
|
|
137
|
+
--xeno-success-text: oklch(0.45 0.11 145); /* [ok-ink] */
|
|
138
|
+
--xeno-warning-text: oklch(0.5 0.12 70); /* [amber-t] */
|
|
139
|
+
--xeno-info-text: oklch(0.5 0.13 250); /* [person J / focus hue, ink step] */
|
|
140
|
+
--xeno-ok: oklch(0.6 0.13 145); /* [ok] */
|
|
141
|
+
--xeno-ok-soft: oklch(0.6 0.13 145 / 0.13); /* [ok-soft] */
|
|
142
|
+
--xeno-warn: oklch(0.72 0.13 75); /* [warn] */
|
|
143
|
+
--xeno-warn-soft: oklch(0.72 0.13 75 / 0.18); /* [warn-soft] */
|
|
144
|
+
--xeno-danger-soft: oklch(0.55 0.15 25 / 0.1); /* [danger-soft] */
|
|
145
|
+
--xeno-info: oklch(0.55 0.15 250); /* [corpus / focus hue] */
|
|
146
|
+
--xeno-info-soft: oklch(0.55 0.15 250 / 0.1); /* [corpus-soft] */
|
|
147
|
+
--xeno-dot: #d6d2cb; /* [dot] dotted canvas grid */
|
|
148
|
+
--xeno-lane: rgba(31, 31, 31, 0.025); /* [lane] */
|
|
149
|
+
--xeno-edge: #b3ada4; /* [edge] */
|
|
150
|
+
--xeno-code: #161514; /* [code] */
|
|
151
|
+
--xeno-stripe: rgba(31, 31, 31, 0.05); /* [stripe] */
|
|
152
|
+
--xeno-scroll-rail: rgba(31, 31, 31, 0.06); /* [stripe] */
|
|
153
|
+
--xeno-scroll-thumb: rgba(31, 31, 31, 0.22); /* [sbt] */
|
|
154
|
+
--xeno-scroll-thumb-hover: rgba(31, 31, 31, 0.32);
|
|
155
|
+
--xeno-scroll-thumb-active: rgba(31, 31, 31, 0.46);
|
|
112
156
|
}
|