@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.
Files changed (89) hide show
  1. package/dist/containers/Avatar.d.ts +8 -1
  2. package/dist/containers/Avatar.js +3 -3
  3. package/dist/containers/BulkActionBar.d.ts +20 -0
  4. package/dist/containers/BulkActionBar.js +8 -0
  5. package/dist/containers/DataTable.d.ts +50 -6
  6. package/dist/containers/DataTable.js +185 -11
  7. package/dist/containers/Table.d.ts +2 -2
  8. package/dist/containers/Table.js +4 -3
  9. package/dist/content/Kbd.d.ts +16 -0
  10. package/dist/content/Kbd.js +8 -0
  11. package/dist/forms/FormField.d.ts +32 -0
  12. package/dist/forms/FormField.js +26 -0
  13. package/dist/forms/NumberInput.d.ts +27 -0
  14. package/dist/forms/NumberInput.js +69 -0
  15. package/dist/forms/Select.d.ts +84 -0
  16. package/dist/forms/Select.js +243 -0
  17. package/dist/forms/Slider.d.ts +38 -0
  18. package/dist/forms/Slider.js +31 -0
  19. package/dist/index.d.ts +20 -1
  20. package/dist/index.js +20 -1
  21. package/dist/nav/Breadcrumb.d.ts +22 -0
  22. package/dist/nav/Breadcrumb.js +10 -0
  23. package/dist/nav/Pagination.d.ts +22 -0
  24. package/dist/nav/Pagination.js +35 -0
  25. package/dist/overlays/CommandPalette.d.ts +43 -0
  26. package/dist/overlays/CommandPalette.js +96 -0
  27. package/dist/overlays/Drawer.d.ts +30 -0
  28. package/dist/overlays/Drawer.js +41 -0
  29. package/dist/overlays/Popover.d.ts +27 -12
  30. package/dist/overlays/Popover.js +104 -7
  31. package/dist/overlays/ShortcutsSheet.d.ts +21 -0
  32. package/dist/overlays/ShortcutsSheet.js +7 -0
  33. package/dist/overlays/Tooltip.d.ts +21 -10
  34. package/dist/overlays/Tooltip.js +93 -9
  35. package/dist/shortcuts.d.ts +45 -0
  36. package/dist/shortcuts.js +164 -0
  37. package/dist/status/Banner.d.ts +23 -0
  38. package/dist/status/Banner.js +8 -0
  39. package/dist/status/EmptyState.d.ts +20 -0
  40. package/dist/status/EmptyState.js +9 -0
  41. package/dist/status/Skeleton.d.ts +36 -0
  42. package/dist/status/Skeleton.js +31 -0
  43. package/dist/status/Toast.d.ts +28 -0
  44. package/dist/status/Toast.js +11 -0
  45. package/dist/uiTree.d.ts +53 -0
  46. package/dist/uiTree.js +197 -0
  47. package/dist/useDialog.d.ts +3 -1
  48. package/dist/useDialog.js +37 -1
  49. package/dist/useMenu.js +31 -1
  50. package/dist/useToastQueue.d.ts +29 -0
  51. package/dist/useToastQueue.js +73 -0
  52. package/package.json +9 -3
  53. package/src/chrome-separated.css +133 -72
  54. package/src/chrome-unified.css +48 -16
  55. package/src/containers/Badges.css +52 -28
  56. package/src/containers/avatar.css +7 -2
  57. package/src/containers/bulk-action-bar.css +45 -0
  58. package/src/containers/card.css +14 -13
  59. package/src/containers/chip.css +1 -1
  60. package/src/containers/panel.css +16 -53
  61. package/src/containers/table.css +107 -1
  62. package/src/content/kbd.css +33 -0
  63. package/src/content/model-picker.css +2 -1
  64. package/src/controls.css +25 -11
  65. package/src/fonts.css +8 -2
  66. package/src/forced-colors.css +41 -0
  67. package/src/forms/form-field.css +78 -0
  68. package/src/forms/number-input.css +86 -0
  69. package/src/forms/select.css +210 -0
  70. package/src/forms/slider.css +145 -0
  71. package/src/layout-platform.css +495 -0
  72. package/src/mcp-app-platform.css +1019 -0
  73. package/src/nav/breadcrumb.css +84 -0
  74. package/src/nav/pagination.css +61 -0
  75. package/src/overlays/command-palette.css +157 -0
  76. package/src/overlays/drawer.css +79 -0
  77. package/src/overlays/menu.css +25 -16
  78. package/src/overlays/modal.css +9 -27
  79. package/src/overlays/onboarding.css +1305 -0
  80. package/src/overlays/segmented-control.css +6 -3
  81. package/src/overlays/shortcuts-sheet.css +55 -0
  82. package/src/overlays/tooltip.css +22 -4
  83. package/src/size.css +40 -0
  84. package/src/status/banner.css +83 -0
  85. package/src/status/empty-state.css +56 -0
  86. package/src/status/skeleton.css +70 -0
  87. package/src/status/toast.css +95 -0
  88. package/src/xeno-elements.css +71 -44
  89. package/src/xeno-theme.css +75 -31
@@ -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 (chat lab ground). Same monochrome roles, inverted values. */
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: #faf9f7;
83
- --xeno-surface: #ffffff;
84
- --xeno-elevated: #ffffff;
85
- --xeno-control: #f0efec;
86
- /* PROPOSED, like the rest of this block. Dark puts the heading one step LIGHTER than the body
87
- (#1a1a1a over #161618); light mirrors that by going one step darker than a white body. It reuses
88
- the existing control value rather than inventing a hue — but it must not equal `--xeno-canvas`,
89
- or the 4px gap stops reading against the page and the separated architecture disappears. A real
90
- light ramp is the design system's call, not this file's. */
91
- --xeno-panel-header: #f0efec;
92
- /* PROPOSED. Reuses this block's white rather than minting a fourth light value; the only
93
- requirement is that shell / plate / body stay mutually distinguishable, or the gaps stop reading
94
- and the separated construction collapses. */
95
- --xeno-viewport: #ffffff;
96
- --xeno-border: rgba(0, 0, 0, 0.12);
97
- --xeno-border-subtle: rgba(0, 0, 0, 0.06);
98
- --xeno-hover: rgba(0, 0, 0, 0.05);
99
- --xeno-text: #1a1815;
100
- --xeno-muted: #6f6b64;
101
- --xeno-muted-text: #5f5b55;
102
- --xeno-active: #3a3833;
103
- --xeno-on-accent: #faf9f7;
104
- --xeno-danger-text: #b42318;
105
- --xeno-success-text: #1a6b32;
106
- --xeno-warning-text: #7a4f00;
107
- --xeno-info-text: #2a5f8a;
108
- --xeno-scroll-rail: rgba(0, 0, 0, 0.08);
109
- --xeno-scroll-thumb: rgba(0, 0, 0, 0.18);
110
- --xeno-scroll-thumb-hover: rgba(0, 0, 0, 0.32);
111
- --xeno-scroll-thumb-active: rgba(0, 0, 0, 0.46);
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
  }