@zeyos/zx 4.4.0 → 5.0.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/CHANGELOG.md +283 -0
- package/README.md +42 -10
- package/dist/types/components/activity-list/activity-list.d.ts +22 -0
- package/dist/types/components/app-sidebar/app-sidebar.d.ts +5 -3
- package/dist/types/components/avatar/avatar.d.ts +46 -7
- package/dist/types/components/badge/badge.d.ts +21 -1
- package/dist/types/components/button/button.d.ts +15 -0
- package/dist/types/components/chart/chart.d.ts +10 -0
- package/dist/types/components/checklist/checklist.d.ts +9 -0
- package/dist/types/components/code-editor/code-editor.d.ts +6 -17
- package/dist/types/components/datebox/date-range-box.d.ts +5 -1
- package/dist/types/components/datebox/datebox.d.ts +7 -2
- package/dist/types/components/dialog/dialog.d.ts +46 -6
- package/dist/types/components/dropdown/dropdown.d.ts +2 -2
- package/dist/types/components/entity-ref/entity-ref.d.ts +2 -2
- package/dist/types/components/field/field.d.ts +24 -2
- package/dist/types/components/fieldset/fieldset.d.ts +19 -1
- package/dist/types/components/file-item/file-item.d.ts +34 -6
- package/dist/types/components/form/form.d.ts +12 -1
- package/dist/types/components/kanban-view/kanban-card.d.ts +8 -0
- package/dist/types/components/launcher/launcher.d.ts +260 -15
- package/dist/types/components/list-toolbar/list-toolbar.d.ts +1 -1
- package/dist/types/components/menu-button/menu-button.d.ts +33 -5
- package/dist/types/components/message/message.d.ts +119 -17
- package/dist/types/components/modal/modal.d.ts +13 -2
- package/dist/types/components/select/color.d.ts +12 -0
- package/dist/types/components/select/glyphs.d.ts +124 -0
- package/dist/types/components/select/select.d.ts +11 -3
- package/dist/types/components/stat-tile/stat-tile.d.ts +16 -5
- package/dist/types/components/tabbox/tabbox.d.ts +9 -0
- package/dist/types/components/table/table.d.ts +46 -1
- package/dist/types/components/tag-picker/tag-picker.d.ts +21 -4
- package/dist/types/components/tree/tree.d.ts +13 -0
- package/dist/types/core/breakpoint.d.ts +1 -1
- package/dist/types/core/icons.d.ts +23 -25
- package/dist/types/core/motion.d.ts +59 -0
- package/dist/types/core/overlay-host.d.ts +15 -1
- package/dist/types/index.d.ts +5 -3
- package/dist/types/zeyos/connect.d.ts +6 -0
- package/dist/types/zeyos/form.d.ts +50 -9
- package/dist/types/zeyos/index.d.ts +1 -1
- package/dist/types/zeyos/query.d.ts +79 -0
- package/dist/types/zeyos/schema.d.ts +24 -1
- package/dist/types/zeyos/table.d.ts +100 -14
- package/dist/types/zeyos/view.d.ts +10 -0
- package/dist/zx-zeyos.esm.js +1621 -443
- package/dist/zx-zeyos.esm.min.js +53 -5
- package/dist/zx.css +1411 -660
- package/dist/zx.esm.js +1976 -703
- package/dist/zx.esm.min.js +56 -8
- package/dist/zx.global.js +1978 -705
- package/dist/zx.global.min.js +56 -8
- package/dist/zx.min.css +1 -1
- package/docs/api.json +219 -34
- package/docs/llms.md +472 -110
- package/docs/llms.txt +3 -3
- package/package.json +1 -1
- package/src/components/account-menu/account-menu.css +35 -10
- package/src/components/activity-item/activity-item.css +1 -1
- package/src/components/activity-item/activity-item.js +3 -0
- package/src/components/activity-list/activity-list.css +38 -3
- package/src/components/activity-list/activity-list.js +34 -0
- package/src/components/app-icon/app-icon.css +1 -1
- package/src/components/app-rail/app-rail.css +40 -79
- package/src/components/app-sidebar/app-sidebar.css +109 -174
- package/src/components/app-sidebar/app-sidebar.js +21 -6
- package/src/components/aurora/aurora.css +5 -3
- package/src/components/avatar/avatar.css +32 -7
- package/src/components/avatar/avatar.js +72 -8
- package/src/components/badge/badge.css +54 -2
- package/src/components/badge/badge.js +29 -2
- package/src/components/button/button.css +67 -9
- package/src/components/button/button.js +38 -0
- package/src/components/calendar/calendar.css +46 -46
- package/src/components/card/card.css +2 -2
- package/src/components/card-view/card-view.css +9 -7
- package/src/components/chart/chart.css +4 -1
- package/src/components/chart/chart.js +12 -0
- package/src/components/check-button/check-button.css +10 -2
- package/src/components/checklist/checklist.css +9 -2
- package/src/components/checklist/checklist.js +11 -5
- package/src/components/checklist/field-adapter.js +3 -1
- package/src/components/code-editor/code-editor.css +6 -5
- package/src/components/code-editor/code-editor.js +19 -1
- package/src/components/context-menu/context-menu.css +9 -4
- package/src/components/copy/copy-button.css +6 -0
- package/src/components/copy/copy-input.css +8 -3
- package/src/components/data-filter/data-filter.css +5 -4
- package/src/components/date-picker/date-picker.css +6 -6
- package/src/components/date-picker/date-range-picker.css +3 -3
- package/src/components/date-picker/time-picker.css +1 -1
- package/src/components/datebox/date-range-box.css +79 -2
- package/src/components/datebox/date-range-box.js +13 -2
- package/src/components/datebox/datebox.css +79 -2
- package/src/components/datebox/datebox.js +13 -2
- package/src/components/dialog/dialog.css +26 -0
- package/src/components/dialog/dialog.js +99 -17
- package/src/components/dropdown/dropdown.css +1 -1
- package/src/components/dropdown/dropdown.js +5 -3
- package/src/components/empty-state/empty-state.css +2 -2
- package/src/components/entity-ref/entity-ref.css +1 -1
- package/src/components/entity-ref/entity-ref.js +1 -1
- package/src/components/field/field.css +28 -9
- package/src/components/field/field.js +68 -26
- package/src/components/field-upload/field-upload.css +1 -1
- package/src/components/fieldset/fieldset.css +5 -3
- package/src/components/fieldset/fieldset.js +28 -5
- package/src/components/file-item/file-item.js +144 -10
- package/src/components/filter/filter.js +7 -3
- package/src/components/filter-panel/filter-panel.css +1 -1
- package/src/components/finder/finder.css +15 -13
- package/src/components/form/form.css +5 -4
- package/src/components/form/form.js +11 -2
- package/src/components/grid/grid.css +1 -1
- package/src/components/groupbox/groupbox.css +1 -1
- package/src/components/kanban-view/kanban-card.js +11 -3
- package/src/components/kanban-view/kanban-view.css +39 -15
- package/src/components/kanban-view/kanban-view.js +4 -4
- package/src/components/launcher/launcher.css +107 -25
- package/src/components/launcher/launcher.js +503 -41
- package/src/components/list-toolbar/list-toolbar.css +13 -8
- package/src/components/list-toolbar/list-toolbar.js +1 -1
- package/src/components/master-panel/master-panel.css +2 -0
- package/src/components/menu-button/menu-button.css +9 -4
- package/src/components/menu-button/menu-button.js +65 -9
- package/src/components/message/message.css +33 -3
- package/src/components/message/message.js +217 -15
- package/src/components/modal/modal.js +18 -3
- package/src/components/navigation-bar/navigation-bar.css +18 -9
- package/src/components/number-field/field-adapter.js +1 -0
- package/src/components/number-field/number-field.css +70 -0
- package/src/components/number-field/number-field.js +2 -0
- package/src/components/pagination/pagination.css +8 -6
- package/src/components/panel/panel.css +1 -1
- package/src/components/rating/rating.css +7 -0
- package/src/components/select/color.js +22 -0
- package/src/components/select/field-adapter.js +2 -0
- package/src/components/select/glyphs.js +165 -0
- package/src/components/select/select.css +138 -45
- package/src/components/select/select.js +83 -47
- package/src/components/sheet/sheet.css +11 -8
- package/src/components/slider/slider.css +16 -2
- package/src/components/slider/slider.js +1 -1
- package/src/components/sort-control/sort-control.css +4 -1
- package/src/components/stat-tile/stat-tile.css +41 -46
- package/src/components/stat-tile/stat-tile.js +17 -6
- package/src/components/tabbox/tabbox.css +32 -27
- package/src/components/tabbox/tabbox.js +5 -1
- package/src/components/table/table.css +104 -29
- package/src/components/table/table.js +90 -16
- package/src/components/tag-picker/tag-picker.css +83 -5
- package/src/components/tag-picker/tag-picker.js +25 -8
- package/src/components/timebox/timebox.css +22 -2
- package/src/components/toggle/toggle.css +12 -1
- package/src/components/toolbar/toolbar.js +2 -2
- package/src/components/tooltip/tooltip.css +4 -0
- package/src/components/tooltip/tooltip.js +10 -3
- package/src/components/tree/tree.css +25 -16
- package/src/components/tree/tree.js +31 -0
- package/src/components/value-list/value-list.css +3 -3
- package/src/components/view/record-view.js +1 -1
- package/src/core/breakpoint.js +1 -1
- package/src/core/icons.js +193 -60
- package/src/core/motion.js +147 -0
- package/src/core/overlay-host.js +21 -2
- package/src/index.js +5 -3
- package/src/internal/app-rail.js +1 -2
- package/src/zeyos/connect.js +6 -2
- package/src/zeyos/form.js +67 -27
- package/src/zeyos/index.js +1 -1
- package/src/zeyos/query.js +153 -0
- package/src/zeyos/schema.js +144 -27
- package/src/zeyos/table.js +68 -5
- package/src/zeyos/view.js +6 -0
- package/styles/base.css +56 -0
- package/styles/icons.css +11 -1
- package/styles/tokens/dark.css +113 -37
- package/styles/tokens/global.css +121 -27
- package/styles/tokens/semantic.css +100 -31
- package/styles/tokens/themes.css +7 -6
- package/styles/zx.css +0 -1
- package/styles/tokens/density.css +0 -9
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
inline-size: min(760px, calc(100vw - (2 * var(--zx-space-4))));
|
|
3
3
|
max-block-size: min(720px, calc(100vh - (2 * var(--zx-space-6))));
|
|
4
4
|
border: 1px solid var(--zx-color-overlay-border);
|
|
5
|
-
border-radius: var(--zx-radius-
|
|
5
|
+
border-radius: var(--zx-radius-lg);
|
|
6
6
|
background-color: var(--zx-color-overlay-panel);
|
|
7
7
|
background-image: var(--zx-overlay-panel-image);
|
|
8
8
|
background-clip: padding-box;
|
|
@@ -29,24 +29,60 @@
|
|
|
29
29
|
|
|
30
30
|
.zx-launcher__surface {
|
|
31
31
|
display: grid;
|
|
32
|
+
/* One column no wider than the dialog: a long page chip or a wide row shrinks inside it rather
|
|
33
|
+
than pushing the close button off a phone screen. */
|
|
34
|
+
grid-template-columns: minmax(0, 1fr);
|
|
32
35
|
grid-template-rows: auto auto minmax(0, 1fr) auto;
|
|
33
36
|
max-block-size: inherit;
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
.zx-launcher__search {
|
|
37
|
-
display:
|
|
38
|
-
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
40
|
+
display: flex;
|
|
39
41
|
align-items: center;
|
|
40
42
|
gap: var(--zx-space-3);
|
|
41
43
|
border-block-end: 1px solid var(--zx-color-overlay-divider);
|
|
42
44
|
padding: var(--zx-space-3) var(--zx-space-4);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
.zx-launcher__search
|
|
46
|
-
|
|
47
|
+
.zx-launcher__search > .zx-icon {
|
|
48
|
+
flex: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* The page you are on, before the query: where you are, so neutral rather than accent. Its × is
|
|
52
|
+
one step back. */
|
|
53
|
+
.zx-launcher__scope {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
flex: 0 1 auto;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: var(--zx-space-1);
|
|
58
|
+
min-inline-size: 0;
|
|
59
|
+
max-inline-size: 50%;
|
|
60
|
+
border-radius: var(--zx-radius-sm);
|
|
61
|
+
background: var(--zx-color-bg-current);
|
|
62
|
+
padding-inline: var(--zx-space-2) 2px;
|
|
63
|
+
color: var(--zx-color-text);
|
|
64
|
+
font-size: var(--zx-text-sm);
|
|
65
|
+
font-weight: var(--zx-weight-medium);
|
|
66
|
+
line-height: 1.5;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.zx-launcher__scope[hidden] { display: none; }
|
|
71
|
+
|
|
72
|
+
.zx-launcher__scope-label {
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* A 24px target (WCAG 2.5.8); the chip's own padding stays slim beside it. */
|
|
78
|
+
.zx-launcher__scope .zx-launcher__scope-back {
|
|
79
|
+
inline-size: 24px;
|
|
80
|
+
block-size: 24px;
|
|
47
81
|
}
|
|
48
82
|
|
|
49
83
|
.zx-launcher__input {
|
|
84
|
+
/* The query yields its room first; the chip keeps its label until it reaches its cap. */
|
|
85
|
+
flex: 1 1 0;
|
|
50
86
|
min-inline-size: 0;
|
|
51
87
|
border: 0;
|
|
52
88
|
outline: 0;
|
|
@@ -62,7 +98,8 @@
|
|
|
62
98
|
.zx-launcher__input::-webkit-search-cancel-button { display: none; }
|
|
63
99
|
|
|
64
100
|
.zx-launcher__shortcut,
|
|
65
|
-
.zx-launcher__hints kbd
|
|
101
|
+
.zx-launcher__hints kbd,
|
|
102
|
+
.zx-launcher__key {
|
|
66
103
|
border: 1px solid var(--zx-color-border-control);
|
|
67
104
|
border-radius: var(--zx-radius-sm);
|
|
68
105
|
background: var(--zx-color-bg-muted);
|
|
@@ -74,6 +111,7 @@
|
|
|
74
111
|
}
|
|
75
112
|
|
|
76
113
|
.zx-launcher__shortcut {
|
|
114
|
+
flex: none;
|
|
77
115
|
padding-inline: var(--zx-space-2);
|
|
78
116
|
white-space: nowrap;
|
|
79
117
|
}
|
|
@@ -90,16 +128,16 @@
|
|
|
90
128
|
.zx-launcher__results {
|
|
91
129
|
min-block-size: 0;
|
|
92
130
|
overflow: auto;
|
|
93
|
-
padding: var(--zx-space-
|
|
131
|
+
padding: var(--zx-space-1);
|
|
94
132
|
}
|
|
95
133
|
|
|
134
|
+
/* A caption above its rows, never taller than one of them; inset like the rows so the label and
|
|
135
|
+
the labels under it start on one line. */
|
|
96
136
|
.zx-launcher__group-label {
|
|
97
|
-
padding: var(--zx-space-
|
|
137
|
+
padding: var(--zx-space-2) var(--zx-space-3) var(--zx-space-1);
|
|
98
138
|
color: var(--zx-color-text-muted);
|
|
99
139
|
font-size: var(--zx-text-xs);
|
|
100
|
-
font-weight:
|
|
101
|
-
letter-spacing: .04em;
|
|
102
|
-
text-transform: uppercase;
|
|
140
|
+
font-weight: var(--zx-weight-semibold);
|
|
103
141
|
}
|
|
104
142
|
|
|
105
143
|
.zx-launcher__group[data-layout="grid"] {
|
|
@@ -119,11 +157,11 @@
|
|
|
119
157
|
align-items: center;
|
|
120
158
|
gap: var(--zx-space-3);
|
|
121
159
|
inline-size: 100%;
|
|
122
|
-
min-block-size:
|
|
160
|
+
min-block-size: var(--zx-control-height);
|
|
123
161
|
border: 0;
|
|
124
|
-
border-radius: var(--zx-radius-
|
|
162
|
+
border-radius: var(--zx-radius-sm);
|
|
125
163
|
background: transparent;
|
|
126
|
-
padding: var(--zx-space-
|
|
164
|
+
padding: var(--zx-space-1) var(--zx-space-3);
|
|
127
165
|
color: inherit;
|
|
128
166
|
text-align: start;
|
|
129
167
|
text-decoration: none;
|
|
@@ -134,9 +172,15 @@
|
|
|
134
172
|
background: var(--zx-color-overlay-hover);
|
|
135
173
|
}
|
|
136
174
|
|
|
175
|
+
/* The application you are in is where you are, not a pick: the neutral current fill and a
|
|
176
|
+
heavier label. The highlighted row stays the lighter hover step. */
|
|
137
177
|
.zx-launcher__option[aria-current="page"] {
|
|
138
|
-
background: var(--zx-color-
|
|
139
|
-
color: var(--zx-color-
|
|
178
|
+
background: var(--zx-color-bg-current);
|
|
179
|
+
color: var(--zx-color-text);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.zx-launcher__option[aria-current="page"] .zx-launcher__label {
|
|
183
|
+
font-weight: var(--zx-weight-semibold);
|
|
140
184
|
}
|
|
141
185
|
|
|
142
186
|
.zx-launcher__option[data-kind="application"] {
|
|
@@ -145,12 +189,13 @@
|
|
|
145
189
|
justify-items: center;
|
|
146
190
|
align-content: center;
|
|
147
191
|
min-block-size: 92px;
|
|
192
|
+
border-radius: var(--zx-radius-md);
|
|
148
193
|
padding: var(--zx-space-3) var(--zx-space-2);
|
|
149
194
|
text-align: center;
|
|
150
195
|
}
|
|
151
196
|
|
|
152
197
|
.zx-launcher__option[data-kind="application"][aria-current="page"] {
|
|
153
|
-
background: var(--zx-color-
|
|
198
|
+
background: var(--zx-color-bg-current);
|
|
154
199
|
}
|
|
155
200
|
|
|
156
201
|
.zx-launcher__option[data-kind="application"] .zx-launcher__icon {
|
|
@@ -162,8 +207,9 @@
|
|
|
162
207
|
inline-size: 100%;
|
|
163
208
|
}
|
|
164
209
|
|
|
165
|
-
.zx-launcher__option[data-kind="application"]
|
|
166
|
-
.zx-
|
|
210
|
+
.zx-launcher__option[data-kind="application"] :is(
|
|
211
|
+
.zx-launcher__description, .zx-launcher__badge, .zx-launcher__hint, .zx-launcher__keys, .zx-launcher__chevron
|
|
212
|
+
) {
|
|
167
213
|
display: none;
|
|
168
214
|
}
|
|
169
215
|
|
|
@@ -179,10 +225,47 @@
|
|
|
179
225
|
|
|
180
226
|
.zx-launcher__icon { display: inline-flex; flex: none; }
|
|
181
227
|
.zx-launcher__copy { display: grid; min-inline-size: 0; gap: 2px; }
|
|
182
|
-
.zx-launcher__label { overflow: hidden; font-weight:
|
|
228
|
+
.zx-launcher__label { overflow: hidden; font-weight: var(--zx-weight-medium); text-overflow: ellipsis; white-space: nowrap; }
|
|
183
229
|
.zx-launcher__description { overflow: hidden; color: var(--zx-color-text-muted); font-size: var(--zx-text-sm); text-overflow: ellipsis; white-space: nowrap; }
|
|
184
230
|
.zx-launcher__badge { margin-inline-start: auto; color: var(--zx-color-text-muted); font-size: var(--zx-text-xs); }
|
|
185
231
|
|
|
232
|
+
/* A row's copy takes the room; what trails it (badge, hint, key caps, the page chevron) sits at
|
|
233
|
+
the end in that order. */
|
|
234
|
+
.zx-launcher__option:not([data-kind="application"]) .zx-launcher__copy { flex: 1 1 auto; }
|
|
235
|
+
|
|
236
|
+
.zx-launcher__hint {
|
|
237
|
+
flex: 0 1 auto;
|
|
238
|
+
min-inline-size: 0;
|
|
239
|
+
max-inline-size: 40%;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
color: var(--zx-color-text-muted);
|
|
242
|
+
font-size: var(--zx-text-sm);
|
|
243
|
+
text-overflow: ellipsis;
|
|
244
|
+
white-space: nowrap;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.zx-launcher__keys {
|
|
248
|
+
display: inline-flex;
|
|
249
|
+
flex: none;
|
|
250
|
+
gap: var(--zx-space-1);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.zx-launcher__chevron {
|
|
254
|
+
display: inline-flex;
|
|
255
|
+
flex: none;
|
|
256
|
+
color: var(--zx-color-text-subtle);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* Spoken, not drawn: where a page change landed. */
|
|
260
|
+
.zx-launcher__announce {
|
|
261
|
+
position: absolute;
|
|
262
|
+
inline-size: 1px;
|
|
263
|
+
block-size: 1px;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
clip-path: inset(50%);
|
|
266
|
+
white-space: nowrap;
|
|
267
|
+
}
|
|
268
|
+
|
|
186
269
|
.zx-launcher__hints {
|
|
187
270
|
display: flex;
|
|
188
271
|
flex-wrap: wrap;
|
|
@@ -200,7 +283,10 @@
|
|
|
200
283
|
gap: var(--zx-space-1);
|
|
201
284
|
}
|
|
202
285
|
|
|
203
|
-
.zx-launcher__hints
|
|
286
|
+
.zx-launcher__hints span[hidden] { display: none; }
|
|
287
|
+
|
|
288
|
+
.zx-launcher__hints kbd,
|
|
289
|
+
.zx-launcher__key {
|
|
204
290
|
min-inline-size: 1.5rem;
|
|
205
291
|
padding-inline: 4px;
|
|
206
292
|
text-align: center;
|
|
@@ -215,10 +301,6 @@
|
|
|
215
301
|
display: none;
|
|
216
302
|
}
|
|
217
303
|
|
|
218
|
-
.zx-launcher__search {
|
|
219
|
-
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
304
|
.zx-launcher__hints {
|
|
223
305
|
justify-content: center;
|
|
224
306
|
}
|