@zag-js/color-picker 1.29.1 → 1.31.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/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -320,11 +320,12 @@ function connect(service, normalize) {
|
|
|
320
320
|
"aria-label": `select color. current color is ${valueAsString}`,
|
|
321
321
|
"aria-controls": getContentId(scope),
|
|
322
322
|
"aria-labelledby": getLabelId(scope),
|
|
323
|
+
"aria-haspopup": prop("inline") ? void 0 : "dialog",
|
|
323
324
|
"data-disabled": domQuery.dataAttr(disabled),
|
|
324
325
|
"data-readonly": domQuery.dataAttr(readOnly),
|
|
325
326
|
"data-invalid": domQuery.dataAttr(invalid),
|
|
326
327
|
"data-placement": currentPlacement,
|
|
327
|
-
"aria-expanded":
|
|
328
|
+
"aria-expanded": open,
|
|
328
329
|
"data-state": open ? "open" : "closed",
|
|
329
330
|
"data-focus": domQuery.dataAttr(focused),
|
|
330
331
|
type: "button",
|
|
@@ -354,6 +355,7 @@ function connect(service, normalize) {
|
|
|
354
355
|
...parts.content.attrs,
|
|
355
356
|
id: getContentId(scope),
|
|
356
357
|
dir: prop("dir"),
|
|
358
|
+
role: prop("inline") ? void 0 : "dialog",
|
|
357
359
|
tabIndex: -1,
|
|
358
360
|
"data-placement": currentPlacement,
|
|
359
361
|
"data-state": open ? "open" : "closed",
|
package/dist/index.mjs
CHANGED
|
@@ -318,11 +318,12 @@ function connect(service, normalize) {
|
|
|
318
318
|
"aria-label": `select color. current color is ${valueAsString}`,
|
|
319
319
|
"aria-controls": getContentId(scope),
|
|
320
320
|
"aria-labelledby": getLabelId(scope),
|
|
321
|
+
"aria-haspopup": prop("inline") ? void 0 : "dialog",
|
|
321
322
|
"data-disabled": dataAttr(disabled),
|
|
322
323
|
"data-readonly": dataAttr(readOnly),
|
|
323
324
|
"data-invalid": dataAttr(invalid),
|
|
324
325
|
"data-placement": currentPlacement,
|
|
325
|
-
"aria-expanded":
|
|
326
|
+
"aria-expanded": open,
|
|
326
327
|
"data-state": open ? "open" : "closed",
|
|
327
328
|
"data-focus": dataAttr(focused),
|
|
328
329
|
type: "button",
|
|
@@ -352,6 +353,7 @@ function connect(service, normalize) {
|
|
|
352
353
|
...parts.content.attrs,
|
|
353
354
|
id: getContentId(scope),
|
|
354
355
|
dir: prop("dir"),
|
|
356
|
+
role: prop("inline") ? void 0 : "dialog",
|
|
355
357
|
tabIndex: -1,
|
|
356
358
|
"data-placement": currentPlacement,
|
|
357
359
|
"data-state": open ? "open" : "closed",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/color-picker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0",
|
|
4
4
|
"description": "Core logic for the color-picker widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/core": "1.
|
|
31
|
-
"@zag-js/anatomy": "1.
|
|
32
|
-
"@zag-js/dom-query": "1.
|
|
33
|
-
"@zag-js/dismissable": "1.
|
|
34
|
-
"@zag-js/utils": "1.
|
|
35
|
-
"@zag-js/color-utils": "1.
|
|
36
|
-
"@zag-js/popper": "1.
|
|
37
|
-
"@zag-js/types": "1.
|
|
30
|
+
"@zag-js/core": "1.31.0",
|
|
31
|
+
"@zag-js/anatomy": "1.31.0",
|
|
32
|
+
"@zag-js/dom-query": "1.31.0",
|
|
33
|
+
"@zag-js/dismissable": "1.31.0",
|
|
34
|
+
"@zag-js/utils": "1.31.0",
|
|
35
|
+
"@zag-js/color-utils": "1.31.0",
|
|
36
|
+
"@zag-js/popper": "1.31.0",
|
|
37
|
+
"@zag-js/types": "1.31.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"clean-package": "2.2.0"
|