@jxsuite/ui 0.4.1 → 0.5.1

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.
@@ -5,6 +5,7 @@
5
5
  "observedAttributes": [
6
6
  "headline",
7
7
  "confirm-label",
8
+ "confirm-disabled",
8
9
  "secondary-label",
9
10
  "cancel-label",
10
11
  "destructive",
@@ -29,6 +30,12 @@
29
30
  "attribute": "confirm-label",
30
31
  "description": "The primary button's text; empty for no primary button."
31
32
  },
33
+ "confirmDisabled": {
34
+ "type": "boolean",
35
+ "default": false,
36
+ "attribute": "confirm-disabled",
37
+ "description": "The primary answer cannot be given yet: its button stays in the footer, announced and disabled, and dispatches nothing. For a dialog whose answer is a choice the reader has not made, where hiding the button would leave them nothing to look for."
38
+ },
32
39
  "secondaryLabel": {
33
40
  "type": "string",
34
41
  "default": "",
@@ -57,7 +64,7 @@
57
64
  "type": "string",
58
65
  "default": "sm",
59
66
  "attribute": "size",
60
- "description": "sm, md or lg: the dialog's width."
67
+ "description": "sm, md, lg or xl: the dialog's width. xl is for a dialog that lays two panes side by side, such as a picker with a list and the chosen item's detail."
61
68
  },
62
69
  "open": {
63
70
  "type": "boolean",
@@ -214,12 +221,30 @@
214
221
  "outline": "var(--jx-focus-ring)"
215
222
  }
216
223
  },
224
+ "& > [part=\"dialog\"][open]": {
225
+ "$description": "Open, the box is a column whose BODY scrolls, never the box itself. A dialog that scrolled as one carried its own scrollbar beside any list the body scrolled for itself, and took the headline and the answers off screen exactly when the content was long enough to need them. Keyed on [open] because a closed <dialog> is hidden by the user agent's display: none, which an unconditional display here would override.",
226
+ "display": "flex",
227
+ "flexDirection": "column",
228
+ "overflow": "hidden"
229
+ },
230
+ "& > [part=\"dialog\"] > [part=\"header\"], & > [part=\"dialog\"] > [part=\"footer\"]": {
231
+ "flex": "none"
232
+ },
233
+ "& > [part=\"dialog\"] > [part=\"body\"]": {
234
+ "$description": "The one region that scrolls. Child combinators, not the descendant ones the parts below use, because a consumer's content is light DOM inside this same box and a surface may name a [part=\"body\"] of its own.",
235
+ "flex": "1 1 auto",
236
+ "minHeight": "0",
237
+ "overflowY": "auto"
238
+ },
217
239
  "&[data-size=\"md\"] > [part=\"dialog\"]": {
218
240
  "width": "min(90vw, 32rem)"
219
241
  },
220
242
  "&[data-size=\"lg\"] > [part=\"dialog\"]": {
221
243
  "width": "min(90vw, 44rem)"
222
244
  },
245
+ "&[data-size=\"xl\"] > [part=\"dialog\"]": {
246
+ "width": "min(92vw, 60rem)"
247
+ },
223
248
  "& [part=\"header\"]": {
224
249
  "padding": "var(--jx-space-5) var(--jx-space-5) 0"
225
250
  },
@@ -381,6 +406,9 @@
381
406
  "$props": {
382
407
  "variant": {
383
408
  "$ref": "#/state/confirmVariant"
409
+ },
410
+ "disabled": {
411
+ "$ref": "#/state/confirmDisabled"
384
412
  }
385
413
  },
386
414
  "attributes": {
package/icons/list.json CHANGED
@@ -24,6 +24,7 @@
24
24
  "arrows-out-line-horizontal": ["regular"],
25
25
  "arrows-out-line-vertical": ["regular"],
26
26
  "arrows-vertical": ["regular"],
27
+ "books": ["regular"],
27
28
  "brackets-curly": ["regular"],
28
29
  "browser": ["regular"],
29
30
  "caret-down": ["regular", "bold"],
@@ -79,6 +79,9 @@
79
79
  "arrows-vertical": {
80
80
  "regular": "M165.66,194.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L120,212.69V43.31L101.66,61.66A8,8,0,0,1,90.34,50.34l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V212.69l18.34-18.35A8,8,0,0,1,165.66,194.34Z"
81
81
  },
82
+ "books": {
83
+ "regular": "M231.65,194.55,198.46,36.75a16,16,0,0,0-19-12.39L132.65,34.42a16.08,16.08,0,0,0-12.3,19l33.19,157.8A16,16,0,0,0,169.16,224a16.25,16.25,0,0,0,3.38-.36l46.81-10.06A16.09,16.09,0,0,0,231.65,194.55ZM136,50.15c0-.06,0-.09,0-.09l46.8-10,3.33,15.87L139.33,66Zm6.62,31.47,46.82-10.05,3.34,15.9L146,97.53Zm6.64,31.57,46.82-10.06,13.3,63.24-46.82,10.06ZM216,197.94l-46.8,10-3.33-15.87L212.67,182,216,197.85C216,197.91,216,197.94,216,197.94ZM104,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V48A16,16,0,0,0,104,32ZM56,48h48V64H56Zm0,32h48v96H56Zm48,128H56V192h48v16Z"
84
+ },
82
85
  "brackets-curly": {
83
86
  "regular": "M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"
84
87
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/ui",
3
- "version": "0.4.1",
3
+ "version": "0.5.1",
4
4
  "description": "The Jx UI kit: interface elements authored as Jx documents, with their theme and icons",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -58,11 +58,11 @@
58
58
  "upgrade": "bun update --latest && bun install"
59
59
  },
60
60
  "dependencies": {
61
- "@jxsuite/runtime": "^4.0.3",
61
+ "@jxsuite/runtime": "^4.1.0",
62
62
  "@jxsuite/schema": "^3.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@happy-dom/global-registrator": "^20.14.5",
65
+ "@happy-dom/global-registrator": "^20.14.6",
66
66
  "@phosphor-icons/core": "^2.1.1"
67
67
  }
68
68
  }
@@ -35,6 +35,7 @@
35
35
  "arrows-out-line-horizontal",
36
36
  "arrows-out-line-vertical",
37
37
  "arrows-vertical",
38
+ "books",
38
39
  "brackets-curly",
39
40
  "browser",
40
41
  "caret-down",