@zeyos/zx 5.3.0 → 5.5.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 +125 -0
- package/README.md +49 -16
- package/dist/types/components/app-sidebar/app-sidebar.d.ts +33 -0
- package/dist/types/components/badge/badge.d.ts +5 -4
- package/dist/types/components/datebox/date-range-box.d.ts +15 -2
- package/dist/types/components/datebox/datebox.d.ts +37 -3
- package/dist/types/components/kbd/kbd.d.ts +41 -0
- package/dist/types/components/launcher/launcher.d.ts +4 -2
- package/dist/types/components/prose/prose.d.ts +69 -0
- package/dist/types/components/questionnaire/questionnaire.d.ts +0 -36
- package/dist/types/components/stat-tile/stat-tile.d.ts +20 -0
- package/dist/types/components/tag-picker/tag-picker.d.ts +11 -5
- package/dist/types/components/tree/tree.d.ts +44 -3
- package/dist/types/core/icons.d.ts +22 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/internal/app-rail.d.ts +10 -3
- package/dist/types/internal/row-actions.d.ts +151 -0
- package/dist/zx-zeyos.esm.js +264 -82
- package/dist/zx-zeyos.esm.min.js +4 -4
- package/dist/zx.css +1288 -439
- package/dist/zx.esm.js +952 -392
- package/dist/zx.esm.min.js +6 -6
- package/dist/zx.global.js +952 -392
- package/dist/zx.global.min.js +6 -6
- package/dist/zx.min.css +1 -1
- package/docs/api.json +112 -4
- package/docs/llms.md +433 -38
- package/docs/llms.txt +21 -1
- package/package.json +1 -1
- package/src/components/account-menu/account-menu.js +2 -2
- package/src/components/app-rail/app-rail.css +11 -11
- package/src/components/app-sidebar/app-sidebar.css +90 -17
- package/src/components/app-sidebar/app-sidebar.js +120 -12
- package/src/components/badge/badge.css +33 -20
- package/src/components/badge/badge.js +5 -4
- package/src/components/breadcrumb/breadcrumb.css +28 -3
- package/src/components/breadcrumb/breadcrumb.js +2 -2
- package/src/components/button/button.css +24 -13
- package/src/components/button/button.js +20 -2
- package/src/components/calendar/calendar.css +14 -4
- package/src/components/card-view/card-view.js +2 -2
- package/src/components/chart/chart.js +20 -5
- package/src/components/check-button/check-button.css +11 -3
- package/src/components/check-button/check-button.js +3 -3
- package/src/components/context-menu/context-menu.css +7 -1
- package/src/components/date-picker/date-picker.css +6 -0
- package/src/components/date-picker/date-picker.js +5 -5
- package/src/components/date-picker/date-range-picker.css +6 -0
- package/src/components/date-picker/date-range-picker.js +3 -3
- package/src/components/date-picker/month-picker.js +3 -3
- package/src/components/date-picker/time-picker.css +6 -0
- package/src/components/datebox/date-range-box.js +30 -6
- package/src/components/datebox/datebox.js +44 -7
- package/src/components/dialog/dialog.css +0 -1
- package/src/components/dialog/dialog.js +2 -1
- package/src/components/dock/dock.js +2 -2
- package/src/components/dropdown/dropdown.css +2 -1
- package/src/components/entity-ref/entity-ref.css +8 -1
- package/src/components/file-item/file-item.css +1 -1
- package/src/components/finder/finder.js +2 -2
- package/src/components/groupbox/groupbox.js +2 -2
- package/src/components/kanban-view/kanban-view.css +8 -4
- package/src/components/kanban-view/kanban-view.js +3 -3
- package/src/components/kbd/kbd.css +64 -0
- package/src/components/kbd/kbd.js +121 -0
- package/src/components/launcher/launcher.css +30 -25
- package/src/components/launcher/launcher.js +15 -21
- package/src/components/list-toolbar/list-toolbar.css +7 -1
- package/src/components/menu-button/menu-button.css +9 -2
- package/src/components/message/message.css +6 -2
- package/src/components/message/message.js +2 -2
- package/src/components/module-bar/module-bar.css +11 -1
- package/src/components/multi-value-editor/multi-value-editor.js +4 -4
- package/src/components/navigation-bar/navigation-bar.css +3 -2
- package/src/components/pagination/pagination.js +2 -2
- package/src/components/panel/panel.js +2 -2
- package/src/components/prose/prose.css +53 -0
- package/src/components/prose/prose.js +152 -0
- package/src/components/questionnaire/questionnaire.css +7 -17
- package/src/components/questionnaire/questionnaire.js +16 -1
- package/src/components/rating/rating.css +3 -1
- package/src/components/search/search.js +2 -2
- package/src/components/select/glyphs.js +3 -3
- package/src/components/select/select.css +35 -7
- package/src/components/select/select.js +4 -4
- package/src/components/stat-tile/stat-tile.css +56 -2
- package/src/components/stat-tile/stat-tile.js +25 -2
- package/src/components/stepper/stepper.css +2 -1
- package/src/components/stepper/stepper.js +3 -3
- package/src/components/tabbox/tabbox.css +2 -2
- package/src/components/tabbox/tabbox.js +2 -2
- package/src/components/table/table.css +52 -16
- package/src/components/table/table.js +7 -5
- package/src/components/tag-picker/tag-picker.css +56 -43
- package/src/components/tag-picker/tag-picker.js +21 -16
- package/src/components/tree/tree.css +44 -0
- package/src/components/tree/tree.js +97 -9
- package/src/components/value-list/value-list.css +25 -4
- package/src/components/value-list/value-list.js +2 -1
- package/src/components/view/record-view.js +3 -3
- package/src/components/view-settings/view-settings.css +2 -1
- package/src/components/workspace-switcher/workspace-switcher.js +3 -3
- package/src/core/icons.js +34 -3
- package/src/elements/define.js +1 -0
- package/src/index.js +4 -2
- package/src/internal/app-rail.js +5 -1
- package/src/internal/row-actions.js +203 -0
- package/styles/base.css +26 -1
- package/styles/prose.css +306 -0
- package/styles/tokens/dark.css +108 -103
- package/styles/tokens/global.css +24 -9
- package/styles/tokens/semantic.css +520 -198
- package/styles/tokens/themes.css +9 -0
- package/styles/zx.css +3 -0
package/docs/api.json
CHANGED
|
@@ -555,6 +555,12 @@
|
|
|
555
555
|
"default": "'Applications'",
|
|
556
556
|
"description": "Navigation accessible label."
|
|
557
557
|
},
|
|
558
|
+
{
|
|
559
|
+
"name": "moreLabel",
|
|
560
|
+
"type": "string",
|
|
561
|
+
"default": "'More actions'",
|
|
562
|
+
"description": "Name of a destination's overflow menu when its `actions` fold; every action name is followed by the destination's label."
|
|
563
|
+
},
|
|
558
564
|
{
|
|
559
565
|
"name": "header",
|
|
560
566
|
"type": "Node|string|number|{toElement: () => Node|null}|null",
|
|
@@ -995,7 +1001,7 @@
|
|
|
995
1001
|
"name": "tone",
|
|
996
1002
|
"type": "BadgeTone|null",
|
|
997
1003
|
"default": "null",
|
|
998
|
-
"description": "Categorical colour — a project, a label, a module — from the tone palette rather than the status set, so a tag never reads as a warning. When set it decides the colour and `kind` is ignored for it; `variant` still applies. Unknown names are ignored."
|
|
1004
|
+
"description": "Categorical colour — a project, a label, a module — from the tone palette rather than the status set, so a tag never reads as a warning. When set it decides the colour and the shape — a tag's small corners instead of a status pill — and `kind` is ignored for it; `variant` still applies. Unknown names are ignored."
|
|
999
1005
|
},
|
|
1000
1006
|
{
|
|
1001
1007
|
"name": "variant",
|
|
@@ -2873,7 +2879,13 @@
|
|
|
2873
2879
|
"name": "format",
|
|
2874
2880
|
"type": "string",
|
|
2875
2881
|
"default": "'%d.%m.%Y'",
|
|
2876
|
-
"description": "Kernel date format
|
|
2882
|
+
"description": "Kernel date format the reader types for both endpoints, shown while the field has focus. Numeric tokens only, since it is parsed."
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
"name": "displayFormat",
|
|
2886
|
+
"type": "string|null",
|
|
2887
|
+
"default": "null",
|
|
2888
|
+
"description": "Format both endpoints are shown in while the field does not have focus. It is never parsed, so it may use any `formatDate()` token, month and weekday names included. Null shows `format`."
|
|
2877
2889
|
},
|
|
2878
2890
|
{
|
|
2879
2891
|
"name": "separator",
|
|
@@ -3170,7 +3182,13 @@
|
|
|
3170
3182
|
"name": "format",
|
|
3171
3183
|
"type": "string",
|
|
3172
3184
|
"default": "'%d.%m.%Y'",
|
|
3173
|
-
"description": "Kernel date format."
|
|
3185
|
+
"description": "Kernel date format the reader types, shown while the field has focus. Numeric tokens only (`%d %e %m %Y %y %H %M %S`), since it is parsed."
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
"name": "displayFormat",
|
|
3189
|
+
"type": "string|null",
|
|
3190
|
+
"default": "null",
|
|
3191
|
+
"description": "Format the field shows while it does not have focus, so a date reads as the rest of the screen writes dates. It is never parsed, so it may use any `formatDate()` token, month and weekday names included. Null shows `format`."
|
|
3174
3192
|
},
|
|
3175
3193
|
{
|
|
3176
3194
|
"name": "time",
|
|
@@ -5912,6 +5930,24 @@
|
|
|
5912
5930
|
}
|
|
5913
5931
|
]
|
|
5914
5932
|
},
|
|
5933
|
+
"Kbd": {
|
|
5934
|
+
"options": [
|
|
5935
|
+
{
|
|
5936
|
+
"name": "size",
|
|
5937
|
+
"type": "'md'|'sm'",
|
|
5938
|
+
"default": "'md'",
|
|
5939
|
+
"description": "Keycap size; `sm` sits inside a button or a menu row."
|
|
5940
|
+
},
|
|
5941
|
+
{
|
|
5942
|
+
"name": "tone",
|
|
5943
|
+
"type": "'neutral'|'inherit'",
|
|
5944
|
+
"default": "'neutral'",
|
|
5945
|
+
"description": "`inherit` draws the keycaps in the surrounding ink — on a solid primary button, a dark toast — instead of the neutral surface keycap."
|
|
5946
|
+
}
|
|
5947
|
+
],
|
|
5948
|
+
"events": [],
|
|
5949
|
+
"methods": []
|
|
5950
|
+
},
|
|
5915
5951
|
"Launcher": {
|
|
5916
5952
|
"options": [
|
|
5917
5953
|
{
|
|
@@ -7769,6 +7805,54 @@
|
|
|
7769
7805
|
"events": [],
|
|
7770
7806
|
"methods": []
|
|
7771
7807
|
},
|
|
7808
|
+
"ProseAnchors": {
|
|
7809
|
+
"options": [
|
|
7810
|
+
{
|
|
7811
|
+
"name": "selector",
|
|
7812
|
+
"type": "string",
|
|
7813
|
+
"default": "'h2[id], h3[id], h4[id]'",
|
|
7814
|
+
"description": "The headings that get a link, inside a `.zx-prose` under the root. A heading without an `id` has nothing to link to and is skipped."
|
|
7815
|
+
},
|
|
7816
|
+
{
|
|
7817
|
+
"name": "label",
|
|
7818
|
+
"type": "string",
|
|
7819
|
+
"default": "'Copy link to %1'",
|
|
7820
|
+
"description": "The link's accessible name; `%1` is the heading."
|
|
7821
|
+
},
|
|
7822
|
+
{
|
|
7823
|
+
"name": "title",
|
|
7824
|
+
"type": "string",
|
|
7825
|
+
"default": "'Copy link'",
|
|
7826
|
+
"description": "The link's tooltip."
|
|
7827
|
+
},
|
|
7828
|
+
{
|
|
7829
|
+
"name": "feedback",
|
|
7830
|
+
"type": "string",
|
|
7831
|
+
"default": "'Link copied'",
|
|
7832
|
+
"description": "What the live region says after a copy."
|
|
7833
|
+
},
|
|
7834
|
+
{
|
|
7835
|
+
"name": "feedbackDuration",
|
|
7836
|
+
"type": "number",
|
|
7837
|
+
"default": "2000",
|
|
7838
|
+
"description": "Milliseconds the tick and the message stay."
|
|
7839
|
+
},
|
|
7840
|
+
{
|
|
7841
|
+
"name": "href",
|
|
7842
|
+
"type": "(id: string) => string",
|
|
7843
|
+
"default": null,
|
|
7844
|
+
"description": "The address copied for a heading id. Defaults to the current address with its hash replaced (`sectionHref(location.href, id)`)."
|
|
7845
|
+
}
|
|
7846
|
+
],
|
|
7847
|
+
"events": [
|
|
7848
|
+
{
|
|
7849
|
+
"name": "copy",
|
|
7850
|
+
"payload": null,
|
|
7851
|
+
"description": "Called with the address and whether the clipboard took it."
|
|
7852
|
+
}
|
|
7853
|
+
],
|
|
7854
|
+
"methods": []
|
|
7855
|
+
},
|
|
7772
7856
|
"Questionnaire": {
|
|
7773
7857
|
"options": [
|
|
7774
7858
|
{
|
|
@@ -9810,6 +9894,18 @@
|
|
|
9810
9894
|
"default": "'neutral'",
|
|
9811
9895
|
"description": "Semantic intent. It tints the sparkline and never the value, which stays at full text contrast whatever intent a record carries."
|
|
9812
9896
|
},
|
|
9897
|
+
{
|
|
9898
|
+
"name": "variant",
|
|
9899
|
+
"type": "StatTileVariant",
|
|
9900
|
+
"default": "'default'",
|
|
9901
|
+
"description": "`'default'` is a framed tile on its own surface, for a figure that stands among other content (a dashboard). `'plain'` drops the frame, the fill and the padding and sets the figure a size smaller, for a row of figures on a page (a record's amounts under its title). Reflected as `data-variant` on the root."
|
|
9902
|
+
},
|
|
9903
|
+
{
|
|
9904
|
+
"name": "emphasis",
|
|
9905
|
+
"type": "boolean",
|
|
9906
|
+
"default": "false",
|
|
9907
|
+
"description": "The figure leads its row: in a plain row it is set at the display size while the others stay smaller, on a framed tile one step above the display size. Give it to one tile per row. Reflected as `data-emphasis=\"true\"`."
|
|
9908
|
+
},
|
|
9813
9909
|
{
|
|
9814
9910
|
"name": "href",
|
|
9815
9911
|
"type": "string|null",
|
|
@@ -10811,7 +10907,7 @@
|
|
|
10811
10907
|
"name": "toneKey",
|
|
10812
10908
|
"type": "TagValueReader",
|
|
10813
10909
|
"default": "'tone'",
|
|
10814
|
-
"description": "Optional item tone property or reader: a categorical tone name from the Badge palette (`blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `violet`, `slate`).
|
|
10910
|
+
"description": "Optional item tone property or reader: a categorical tone name from the Badge palette (`blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `violet`, `slate`). Every tag is built by `badge()`, so a toned tag is the Badge with that `tone` — the same shape, size, fill and ink it has in a list row or a record header; a tone wins over a colour, and unknown names are ignored."
|
|
10815
10911
|
},
|
|
10816
10912
|
{
|
|
10817
10913
|
"name": "searchKeys",
|
|
@@ -11537,6 +11633,18 @@
|
|
|
11537
11633
|
"default": "null",
|
|
11538
11634
|
"description": "Label renderer."
|
|
11539
11635
|
},
|
|
11636
|
+
{
|
|
11637
|
+
"name": "rowActions",
|
|
11638
|
+
"type": "((node: TreeNode) => Array<RowAction|Node>)|null",
|
|
11639
|
+
"default": "null",
|
|
11640
|
+
"description": "A row's actions: `{icon, label, onSelect(node), disabled?, danger?}` descriptors, or nodes placed as given. They rest out of sight and show while the row is pointed at, focused or selected; one or two show as icon buttons, more fold after the first into a \"More actions\" menu. Every descriptor is also in the row's context menu, and the focused row's actions follow it in the Tab order."
|
|
11641
|
+
},
|
|
11642
|
+
{
|
|
11643
|
+
"name": "moreLabel",
|
|
11644
|
+
"type": "string",
|
|
11645
|
+
"default": "'More actions'",
|
|
11646
|
+
"description": "Name of a row's overflow menu; every action name is followed by the row's name (\"More actions: Q3 plan\")."
|
|
11647
|
+
},
|
|
11540
11648
|
{
|
|
11541
11649
|
"name": "load",
|
|
11542
11650
|
"type": "((node: TreeNode) => Promise<TreeNode[]>|TreeNode[])|null",
|