@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
|
@@ -65,8 +65,10 @@
|
|
|
65
65
|
align-items: stretch;
|
|
66
66
|
gap: var(--xeno-seg-gap);
|
|
67
67
|
padding: var(--xeno-seg-pad);
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
/* Track and thumb are on the chrome axis: Industrial a borderless hover-tinted well with a raised
|
|
69
|
+
plate (the owner's references), Soft its outlined track. */
|
|
70
|
+
background: var(--xeno-chrome-seg-track, var(--xeno-surface));
|
|
71
|
+
border: 1px solid var(--xeno-chrome-seg-track-border, var(--xeno-border));
|
|
70
72
|
border-radius: var(--xeno-radius-md);
|
|
71
73
|
/* The travel itself: the index slides, and everything computed from it slides with it. */
|
|
72
74
|
transition: --xeno-seg-index var(--xeno-seg-dur) var(--xeno-seg-ease);
|
|
@@ -87,7 +89,8 @@
|
|
|
87
89
|
var(--xeno-seg-count, 1)
|
|
88
90
|
);
|
|
89
91
|
translate: calc(var(--xeno-seg-index, 0) * (100% + var(--xeno-seg-gap))) 0;
|
|
90
|
-
background: var(--xeno-control);
|
|
92
|
+
background: var(--xeno-chrome-seg-thumb, var(--xeno-control));
|
|
93
|
+
box-shadow: var(--xeno-chrome-seg-thumb-shadow, none);
|
|
91
94
|
border-radius: var(--xeno-radius-xs);
|
|
92
95
|
pointer-events: none;
|
|
93
96
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.xeno-shortcuts-modal {
|
|
2
|
+
width: min(620px, calc(100vw - 32px));
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.xeno-shortcuts-grid {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
8
|
+
gap: 18px 24px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.xeno-shortcuts-section {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.xeno-shortcuts-heading {
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-size: 11px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
letter-spacing: 0.06em;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
color: var(--xeno-muted-text);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.xeno-shortcuts-list {
|
|
27
|
+
margin: 0;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 4px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.xeno-shortcuts-row {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
gap: 12px;
|
|
38
|
+
min-height: 28px;
|
|
39
|
+
padding: 2px 0;
|
|
40
|
+
border-bottom: 1px solid var(--xeno-border-subtle);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.xeno-shortcuts-row:last-child {
|
|
44
|
+
border-bottom: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.xeno-shortcuts-label {
|
|
48
|
+
font-size: 12.5px;
|
|
49
|
+
color: var(--xeno-text);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.xeno-shortcuts-keys {
|
|
53
|
+
margin: 0;
|
|
54
|
+
flex: none;
|
|
55
|
+
}
|
package/src/overlays/tooltip.css
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
background: var(--xeno-elevated);
|
|
19
19
|
border: 1px solid var(--xeno-border);
|
|
20
20
|
border-radius: var(--xeno-radius-sm);
|
|
21
|
-
color: var(--xeno-
|
|
22
|
-
font-family:
|
|
23
|
-
font-size:
|
|
21
|
+
color: var(--xeno-text);
|
|
22
|
+
font-family: var(--xeno-font-mono);
|
|
23
|
+
font-size: 11.5px;
|
|
24
24
|
line-height: 1.4;
|
|
25
25
|
letter-spacing: 0.01em;
|
|
26
26
|
text-align: left;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
opacity: 0;
|
|
30
30
|
visibility: hidden;
|
|
31
|
-
box-shadow:
|
|
31
|
+
box-shadow: var(--xeno-chrome-pop, var(--xeno-pop));
|
|
32
32
|
transition:
|
|
33
33
|
opacity var(--xeno-dur) var(--xeno-ease),
|
|
34
34
|
transform var(--xeno-dur) var(--xeno-ease),
|
|
@@ -70,6 +70,24 @@
|
|
|
70
70
|
transform: translateX(-4px);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
.xeno-tooltip-portal {
|
|
74
|
+
display: contents;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.xeno-tooltip-panel--portaled,
|
|
78
|
+
.xeno-tooltip-panel--portaled[data-side='top'],
|
|
79
|
+
.xeno-tooltip-panel--portaled[data-side='bottom'],
|
|
80
|
+
.xeno-tooltip-panel--portaled[data-side='left'],
|
|
81
|
+
.xeno-tooltip-panel--portaled[data-side='right'] {
|
|
82
|
+
position: fixed;
|
|
83
|
+
z-index: 1050;
|
|
84
|
+
top: auto;
|
|
85
|
+
bottom: auto;
|
|
86
|
+
left: auto;
|
|
87
|
+
right: auto;
|
|
88
|
+
margin: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
73
91
|
/* Revealed — settle to the resting position; keep visibility on until the fade completes on close. */
|
|
74
92
|
.xeno-tooltip-panel[data-state='open'] {
|
|
75
93
|
opacity: 1;
|
package/src/size.css
CHANGED
|
@@ -177,3 +177,43 @@
|
|
|
177
177
|
min-height: var(--xeno-hit, 44px);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
+
|
|
181
|
+
/* ── Unified Instrument Density axis (`data-density="compact" | "default" | "comfortable"`) ──
|
|
182
|
+
* Lets the exact same Elements + Components contract smoothly from studio inspector density
|
|
183
|
+
* (Motion/Pixel 24px controls, 22px rows) to standard desktop app shell (28px controls, 36px rows)
|
|
184
|
+
* to comfortable reading/touch dashboards (34px controls, 42px rows) with zero component forks. */
|
|
185
|
+
[data-density='compact'] {
|
|
186
|
+
--xeno-app-header-h: 36px;
|
|
187
|
+
--xeno-app-footer-h: 24px;
|
|
188
|
+
--xeno-shell-row-h: 28px;
|
|
189
|
+
--xeno-row-h: 22px;
|
|
190
|
+
--xeno-control-h: 20px;
|
|
191
|
+
}
|
|
192
|
+
[data-density='compact'] [data-xeno-size='sm'] {
|
|
193
|
+
--xeno-h: 24px;
|
|
194
|
+
--xeno-padx: 8px;
|
|
195
|
+
--xeno-font: 12px;
|
|
196
|
+
}
|
|
197
|
+
[data-density='compact'] [data-xeno-size='md'] {
|
|
198
|
+
--xeno-h: 28px;
|
|
199
|
+
--xeno-padx: 10px;
|
|
200
|
+
--xeno-font: 12.5px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
[data-density='comfortable'] {
|
|
204
|
+
--xeno-app-header-h: 48px;
|
|
205
|
+
--xeno-app-footer-h: 32px;
|
|
206
|
+
--xeno-shell-row-h: 40px;
|
|
207
|
+
--xeno-row-h: 32px;
|
|
208
|
+
--xeno-control-h: 28px;
|
|
209
|
+
}
|
|
210
|
+
[data-density='comfortable'] [data-xeno-size='sm'] {
|
|
211
|
+
--xeno-h: 32px;
|
|
212
|
+
--xeno-padx: 12px;
|
|
213
|
+
--xeno-font: 13.5px;
|
|
214
|
+
}
|
|
215
|
+
[data-density='comfortable'] [data-xeno-size='md'] {
|
|
216
|
+
--xeno-h: 36px;
|
|
217
|
+
--xeno-padx: 14px;
|
|
218
|
+
--xeno-font: 14px;
|
|
219
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.xeno-banner {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
min-height: 32px;
|
|
6
|
+
padding: 4px 14px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
border-bottom: 1px solid var(--xeno-border);
|
|
9
|
+
background: var(--xeno-surface);
|
|
10
|
+
color: var(--xeno-text);
|
|
11
|
+
font-family: var(--xeno-font-sans);
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
line-height: 1.35;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.xeno-banner[data-tone='info'] {
|
|
17
|
+
background: color-mix(in srgb, var(--xeno-info) 8%, var(--xeno-surface));
|
|
18
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-info) 24%, var(--xeno-border));
|
|
19
|
+
color: var(--xeno-text);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.xeno-banner[data-tone='ok'] {
|
|
23
|
+
background: color-mix(in srgb, var(--xeno-ok) 8%, var(--xeno-surface));
|
|
24
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-ok) 24%, var(--xeno-border));
|
|
25
|
+
color: var(--xeno-text);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.xeno-banner[data-tone='warn'] {
|
|
29
|
+
background: color-mix(in srgb, var(--xeno-warn) 10%, var(--xeno-surface));
|
|
30
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-warn) 28%, var(--xeno-border));
|
|
31
|
+
color: var(--xeno-text);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.xeno-banner[data-tone='danger'] {
|
|
35
|
+
background: color-mix(in srgb, var(--xeno-danger) 10%, var(--xeno-surface));
|
|
36
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-danger) 28%, var(--xeno-border));
|
|
37
|
+
color: var(--xeno-text);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.xeno-banner-dot {
|
|
41
|
+
flex: none;
|
|
42
|
+
width: var(--xeno-chrome-badge-dot, 7px);
|
|
43
|
+
height: var(--xeno-chrome-badge-dot, 7px);
|
|
44
|
+
border-radius: 1.5px;
|
|
45
|
+
background: currentColor;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.xeno-banner[data-tone='neutral'] .xeno-banner-dot {
|
|
49
|
+
background: var(--xeno-muted-text);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.xeno-banner[data-tone='ok'] .xeno-banner-dot {
|
|
53
|
+
background: var(--xeno-ok);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.xeno-banner[data-tone='warn'] .xeno-banner-dot {
|
|
57
|
+
background: var(--xeno-warn);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.xeno-banner[data-tone='danger'] .xeno-banner-dot {
|
|
61
|
+
background: var(--xeno-danger);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.xeno-banner[data-tone='info'] .xeno-banner-dot {
|
|
65
|
+
background: var(--xeno-info);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.xeno-banner-body {
|
|
69
|
+
flex: 1 1 auto;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.xeno-banner-action {
|
|
75
|
+
flex: none;
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 6px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.xeno-banner-dismiss {
|
|
82
|
+
flex: none;
|
|
83
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.xeno-empty-state {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
text-align: center;
|
|
7
|
+
gap: 8px;
|
|
8
|
+
padding-block: 36px;
|
|
9
|
+
padding-inline: 24px;
|
|
10
|
+
border-radius: var(--xeno-radius-md, 8px);
|
|
11
|
+
border: 1px dashed var(--xeno-border);
|
|
12
|
+
background: var(--xeno-surface);
|
|
13
|
+
color: var(--xeno-text);
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.xeno-empty-state[data-compact='true'] {
|
|
18
|
+
padding-block: 20px;
|
|
19
|
+
padding-inline: 16px;
|
|
20
|
+
gap: 6px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.xeno-empty-state-icon {
|
|
24
|
+
width: 36px;
|
|
25
|
+
height: 36px;
|
|
26
|
+
border-radius: var(--xeno-radius-md, 8px);
|
|
27
|
+
border: 1px solid var(--xeno-border);
|
|
28
|
+
background: var(--xeno-control);
|
|
29
|
+
color: var(--xeno-muted-text);
|
|
30
|
+
display: grid;
|
|
31
|
+
place-items: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.xeno-empty-state-title {
|
|
35
|
+
margin: 0;
|
|
36
|
+
font-size: 13.5px;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
color: var(--xeno-text);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.xeno-empty-state-desc {
|
|
42
|
+
margin: 0;
|
|
43
|
+
max-width: 380px;
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
line-height: 1.5;
|
|
46
|
+
color: var(--xeno-muted-text);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.xeno-empty-state-actions {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
gap: 8px;
|
|
54
|
+
margin-top: 6px;
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.xeno-skeleton {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
vertical-align: middle;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 1em;
|
|
6
|
+
border-radius: var(--xeno-radius-sm, 4px);
|
|
7
|
+
background: var(--xeno-control);
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.xeno-skeleton:not([data-static='true'])::after {
|
|
14
|
+
content: '';
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0;
|
|
17
|
+
background: linear-gradient(
|
|
18
|
+
90deg,
|
|
19
|
+
transparent 0%,
|
|
20
|
+
var(--xeno-hover) 50%,
|
|
21
|
+
transparent 100%
|
|
22
|
+
);
|
|
23
|
+
transform: translateX(-100%);
|
|
24
|
+
animation: xeno-skeleton-sweep 1.4s ease-in-out infinite;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes xeno-skeleton-sweep {
|
|
28
|
+
100% {
|
|
29
|
+
transform: translateX(100%);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.xeno-skeleton-stack {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
width: 100%;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.xeno-skeleton-container {
|
|
41
|
+
display: grid;
|
|
42
|
+
position: relative;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.xeno-skeleton-layer {
|
|
47
|
+
grid-area: 1 / 1;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
min-height: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.xeno-skeleton-container[data-loading='true'] > .xeno-skeleton-content {
|
|
53
|
+
visibility: hidden;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
user-select: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.xeno-skeleton-overlay {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: stretch;
|
|
61
|
+
justify-content: stretch;
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.xeno-skeleton::after {
|
|
67
|
+
animation: none;
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.xeno-toast-stack {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 60;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
max-width: min(380px, calc(100vw - 24px));
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.xeno-toast-stack[data-placement='bottom-right'] {
|
|
12
|
+
right: 16px;
|
|
13
|
+
bottom: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.xeno-toast-stack[data-placement='bottom-center'] {
|
|
17
|
+
left: 50%;
|
|
18
|
+
bottom: 16px;
|
|
19
|
+
transform: translateX(-50%);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.xeno-toast-stack[data-placement='top-right'] {
|
|
23
|
+
top: 56px;
|
|
24
|
+
right: 16px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.xeno-toast {
|
|
28
|
+
pointer-events: auto;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 10px;
|
|
32
|
+
min-width: 240px;
|
|
33
|
+
padding: 9px 12px;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
border-radius: var(--xeno-radius-md);
|
|
36
|
+
border: 1px solid var(--xeno-border);
|
|
37
|
+
background: var(--xeno-elevated);
|
|
38
|
+
color: var(--xeno-text);
|
|
39
|
+
box-shadow: none;
|
|
40
|
+
font-family: var(--xeno-font-sans);
|
|
41
|
+
font-size: 12.5px;
|
|
42
|
+
line-height: 1.35;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Floating elevation applies ONLY when mounted inside a fixed ToastStack overlay, never inline. */
|
|
46
|
+
.xeno-toast-stack .xeno-toast {
|
|
47
|
+
box-shadow: var(--xeno-chrome-pop, var(--xeno-pop));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.xeno-toast-dot {
|
|
51
|
+
flex: none;
|
|
52
|
+
width: var(--xeno-chrome-badge-dot, 7px);
|
|
53
|
+
height: var(--xeno-chrome-badge-dot, 7px);
|
|
54
|
+
border-radius: 1.5px;
|
|
55
|
+
background: var(--xeno-muted-text);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.xeno-toast[data-tone='ok'] .xeno-toast-dot {
|
|
59
|
+
background: var(--xeno-ok);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.xeno-toast[data-tone='warn'] .xeno-toast-dot {
|
|
63
|
+
background: var(--xeno-warn);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.xeno-toast[data-tone='danger'] .xeno-toast-dot {
|
|
67
|
+
background: var(--xeno-danger);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.xeno-toast[data-tone='info'] .xeno-toast-dot {
|
|
71
|
+
background: var(--xeno-info);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.xeno-toast-copy {
|
|
75
|
+
flex: 1 1 auto;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
gap: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.xeno-toast-title {
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
color: var(--xeno-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.xeno-toast-desc {
|
|
88
|
+
font-size: 11.5px;
|
|
89
|
+
color: var(--xeno-muted-text);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.xeno-toast-action,
|
|
93
|
+
.xeno-toast-dismiss {
|
|
94
|
+
flex: none;
|
|
95
|
+
}
|
package/src/xeno-elements.css
CHANGED
|
@@ -9,63 +9,90 @@
|
|
|
9
9
|
* Tokens must come first so every rule below can read the CSS custom properties.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/*
|
|
13
|
+
* Cascade layer order — guarantees predictable specificity when embedded inside Tailwind, Next.js,
|
|
14
|
+
* or product stylesheets without forcing `!important` overrides.
|
|
15
|
+
*/
|
|
16
|
+
@layer xeno.tokens, xeno.base, xeno.controls, xeno.components, xeno.a11y;
|
|
17
|
+
|
|
12
18
|
/* Foundation: tokens, then the renderer + controls. */
|
|
13
|
-
@import './xeno-theme.css';
|
|
19
|
+
@import './xeno-theme.css' layer(xeno.tokens);
|
|
14
20
|
/* The chrome axis — one file per construction, one owner each. See either file's header. */
|
|
15
|
-
@import './chrome-separated.css';
|
|
16
|
-
@import './chrome-unified.css';
|
|
17
|
-
|
|
18
|
-
@import './
|
|
19
|
-
@import './
|
|
20
|
-
@import './
|
|
21
|
-
@import './
|
|
22
|
-
@import './
|
|
21
|
+
@import './chrome-separated.css' layer(xeno.tokens);
|
|
22
|
+
@import './chrome-unified.css' layer(xeno.tokens);
|
|
23
|
+
/* Dual layout axis — flush `grid` (default) vs floating gapped `platform`. */
|
|
24
|
+
@import './layout-platform.css' layer(xeno.tokens);
|
|
25
|
+
@import './size.css' layer(xeno.base);
|
|
26
|
+
@import './xeno-element.css' layer(xeno.base);
|
|
27
|
+
@import './scrollbar.css' layer(xeno.base);
|
|
28
|
+
@import './icon-motion.css' layer(xeno.base);
|
|
29
|
+
@import './goo.css' layer(xeno.base);
|
|
30
|
+
@import './controls.css' layer(xeno.controls);
|
|
23
31
|
|
|
24
32
|
/* Containers */
|
|
25
|
-
@import './containers/card.css';
|
|
26
|
-
@import './containers/panel.css';
|
|
27
|
-
@import './containers/chip.css';
|
|
28
|
-
@import './containers/tile.css';
|
|
29
|
-
@import './containers/message-bubble.css';
|
|
30
|
-
@import './containers/Badges.css';
|
|
31
|
-
@import './containers/avatar.css';
|
|
32
|
-
@import './containers/list-row.css';
|
|
33
|
-
@import './containers/table.css';
|
|
33
|
+
@import './containers/card.css' layer(xeno.components);
|
|
34
|
+
@import './containers/panel.css' layer(xeno.components);
|
|
35
|
+
@import './containers/chip.css' layer(xeno.components);
|
|
36
|
+
@import './containers/tile.css' layer(xeno.components);
|
|
37
|
+
@import './containers/message-bubble.css' layer(xeno.components);
|
|
38
|
+
@import './containers/Badges.css' layer(xeno.components);
|
|
39
|
+
@import './containers/avatar.css' layer(xeno.components);
|
|
40
|
+
@import './containers/list-row.css' layer(xeno.components);
|
|
41
|
+
@import './containers/table.css' layer(xeno.components);
|
|
42
|
+
@import './containers/bulk-action-bar.css' layer(xeno.components);
|
|
34
43
|
|
|
35
44
|
/* Overlays (Popover shares menu.css) */
|
|
36
|
-
@import './overlays/menu.css';
|
|
37
|
-
@import './overlays/modal.css';
|
|
38
|
-
@import './overlays/
|
|
39
|
-
@import './overlays/
|
|
40
|
-
@import './overlays/
|
|
41
|
-
@import './overlays/
|
|
42
|
-
@import './overlays/
|
|
43
|
-
@import './overlays/
|
|
44
|
-
@import './overlays/
|
|
45
|
+
@import './overlays/menu.css' layer(xeno.components);
|
|
46
|
+
@import './overlays/modal.css' layer(xeno.components);
|
|
47
|
+
@import './overlays/drawer.css' layer(xeno.components);
|
|
48
|
+
@import './overlays/tabs.css' layer(xeno.components);
|
|
49
|
+
@import './overlays/segmented-control.css' layer(xeno.components);
|
|
50
|
+
@import './overlays/pill-filter.css' layer(xeno.components);
|
|
51
|
+
@import './overlays/tooltip.css' layer(xeno.components);
|
|
52
|
+
@import './overlays/date-time-picker.css' layer(xeno.components);
|
|
53
|
+
@import './overlays/reveal.css' layer(xeno.components);
|
|
54
|
+
@import './overlays/picker-field.css' layer(xeno.components);
|
|
55
|
+
@import './overlays/command-palette.css' layer(xeno.components);
|
|
56
|
+
@import './overlays/shortcuts-sheet.css' layer(xeno.components);
|
|
57
|
+
@import './overlays/onboarding.css' layer(xeno.components);
|
|
45
58
|
|
|
46
59
|
/* Forms */
|
|
47
|
-
@import './forms/Checkbox.css';
|
|
48
|
-
@import './forms/RadioGroup.css';
|
|
60
|
+
@import './forms/Checkbox.css' layer(xeno.components);
|
|
61
|
+
@import './forms/RadioGroup.css' layer(xeno.components);
|
|
62
|
+
@import './forms/form-field.css' layer(xeno.components);
|
|
63
|
+
@import './forms/select.css' layer(xeno.components);
|
|
64
|
+
@import './forms/slider.css' layer(xeno.components);
|
|
65
|
+
@import './forms/number-input.css' layer(xeno.components);
|
|
49
66
|
|
|
50
67
|
/* Content */
|
|
51
|
-
@import './content/code-block.css';
|
|
52
|
-
@import './content/source-card.css';
|
|
53
|
-
@import './content/sources-disclosure.css';
|
|
54
|
-
@import './content/model-picker.css';
|
|
55
|
-
@import './content/inline-code.css';
|
|
56
|
-
@import './content/
|
|
57
|
-
@import './content/
|
|
58
|
-
@import './content/
|
|
68
|
+
@import './content/code-block.css' layer(xeno.components);
|
|
69
|
+
@import './content/source-card.css' layer(xeno.components);
|
|
70
|
+
@import './content/sources-disclosure.css' layer(xeno.components);
|
|
71
|
+
@import './content/model-picker.css' layer(xeno.components);
|
|
72
|
+
@import './content/inline-code.css' layer(xeno.components);
|
|
73
|
+
@import './content/kbd.css' layer(xeno.components);
|
|
74
|
+
@import './content/callout.css' layer(xeno.components);
|
|
75
|
+
@import './content/collapsible.css' layer(xeno.components);
|
|
76
|
+
@import './content/caret.css' layer(xeno.components);
|
|
59
77
|
|
|
60
78
|
/* Nav */
|
|
61
|
-
@import './nav/sidebar.css';
|
|
79
|
+
@import './nav/sidebar.css' layer(xeno.components);
|
|
80
|
+
@import './nav/breadcrumb.css' layer(xeno.components);
|
|
81
|
+
@import './nav/pagination.css' layer(xeno.components);
|
|
62
82
|
|
|
63
83
|
/* Layout */
|
|
64
|
-
@import './layout/ResizablePanel.css';
|
|
84
|
+
@import './layout/ResizablePanel.css' layer(xeno.components);
|
|
65
85
|
|
|
66
86
|
/* Status */
|
|
67
|
-
@import './status/thinkingcube.css';
|
|
68
|
-
@import './status/spinner.css';
|
|
69
|
-
@import './status/progress-bar.css';
|
|
70
|
-
@import './status/steptimeline.css';
|
|
71
|
-
@import './status/statusindicator.css';
|
|
87
|
+
@import './status/thinkingcube.css' layer(xeno.components);
|
|
88
|
+
@import './status/spinner.css' layer(xeno.components);
|
|
89
|
+
@import './status/progress-bar.css' layer(xeno.components);
|
|
90
|
+
@import './status/steptimeline.css' layer(xeno.components);
|
|
91
|
+
@import './status/statusindicator.css' layer(xeno.components);
|
|
92
|
+
@import './status/banner.css' layer(xeno.components);
|
|
93
|
+
@import './status/toast.css' layer(xeno.components);
|
|
94
|
+
@import './status/skeleton.css' layer(xeno.components);
|
|
95
|
+
@import './status/empty-state.css' layer(xeno.components);
|
|
96
|
+
|
|
97
|
+
/* High-contrast / Forced Colors override layer */
|
|
98
|
+
@import './forced-colors.css' layer(xeno.a11y);
|