@storybook/addon-a11y 10.6.0-alpha.3 → 10.6.0-alpha.4
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/manager.js +47 -4
- package/dist/postinstall.js +6 -6
- package/dist/preset.js +6 -6
- package/package.json +2 -2
package/dist/manager.js
CHANGED
|
@@ -1000,7 +1000,7 @@ import { forwardRef as $98Iye$forwardRef, createElement as $98Iye$createElement,
|
|
|
1000
1000
|
// ../../../node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
1001
1001
|
import $6vYhU$react from "react";
|
|
1002
1002
|
|
|
1003
|
-
// ../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1003
|
+
// ../../../node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1004
1004
|
import { useCallback as $3vqmr$useCallback } from "react";
|
|
1005
1005
|
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
1006
1006
|
typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
|
|
@@ -1130,6 +1130,20 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
|
1130
1130
|
];
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
|
+
// ../../../node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1134
|
+
import { useCallback as $3vqmr$useCallback2 } from "react";
|
|
1135
|
+
function $6ed0406888f73fc4$var$setRef2(ref, value) {
|
|
1136
|
+
typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
|
|
1137
|
+
}
|
|
1138
|
+
function $6ed0406888f73fc4$export$43e446d32b3d21af2(...refs) {
|
|
1139
|
+
return (node) => refs.forEach(
|
|
1140
|
+
(ref) => $6ed0406888f73fc4$var$setRef2(ref, node)
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
function $6ed0406888f73fc4$export$c7b2cbe3552a0d052(...refs) {
|
|
1144
|
+
return $3vqmr$useCallback2($6ed0406888f73fc4$export$43e446d32b3d21af2(...refs), refs);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1133
1147
|
// ../../../node_modules/@radix-ui/react-id/dist/index.mjs
|
|
1134
1148
|
import * as $2AODx$react from "react";
|
|
1135
1149
|
|
|
@@ -1158,6 +1172,19 @@ import { flushSync as $4q5Fq$flushSync } from "react-dom";
|
|
|
1158
1172
|
|
|
1159
1173
|
// ../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1160
1174
|
import { forwardRef as $9IrjX$forwardRef2, Children as $9IrjX$Children2, isValidElement as $9IrjX$isValidElement2, createElement as $9IrjX$createElement2, cloneElement as $9IrjX$cloneElement2, Fragment as $9IrjX$Fragment2 } from "react";
|
|
1175
|
+
|
|
1176
|
+
// ../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1177
|
+
import { useCallback as $3vqmr$useCallback3 } from "react";
|
|
1178
|
+
function $6ed0406888f73fc4$var$setRef3(ref, value) {
|
|
1179
|
+
typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
|
|
1180
|
+
}
|
|
1181
|
+
function $6ed0406888f73fc4$export$43e446d32b3d21af3(...refs) {
|
|
1182
|
+
return (node) => refs.forEach(
|
|
1183
|
+
(ref) => $6ed0406888f73fc4$var$setRef3(ref, node)
|
|
1184
|
+
);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
// ../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1161
1188
|
var $5e63c961fc1ce211$export$8c6ed5c666ac13602 = $9IrjX$forwardRef2((props, forwardedRef) => {
|
|
1162
1189
|
let { children, ...slotProps } = props, childrenArray = $9IrjX$Children2.toArray(children), slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable2);
|
|
1163
1190
|
if (slottable) {
|
|
@@ -1175,7 +1202,7 @@ var $5e63c961fc1ce211$var$SlotClone2 = $9IrjX$forwardRef2((props, forwardedRef)
|
|
|
1175
1202
|
let { children, ...slotProps } = props;
|
|
1176
1203
|
return $9IrjX$isValidElement2(children) ? $9IrjX$cloneElement2(children, {
|
|
1177
1204
|
...$5e63c961fc1ce211$var$mergeProps2(slotProps, children.props),
|
|
1178
|
-
ref: forwardedRef ? $6ed0406888f73fc4$export$
|
|
1205
|
+
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af3(forwardedRef, children.ref) : children.ref
|
|
1179
1206
|
}) : $9IrjX$Children2.count(children) > 1 ? $9IrjX$Children2.only(null) : null;
|
|
1180
1207
|
});
|
|
1181
1208
|
$5e63c961fc1ce211$var$SlotClone2.displayName = "SlotClone";
|
|
@@ -1312,7 +1339,7 @@ Object.assign($d7bdfb9eb0fdf311$export$8699f7c8af148338, {
|
|
|
1312
1339
|
displayName: $d7bdfb9eb0fdf311$var$GROUP_NAME
|
|
1313
1340
|
});
|
|
1314
1341
|
var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = $98Iye$forwardRef((props, forwardedRef) => {
|
|
1315
|
-
let { __scopeRovingFocusGroup, orientation, loop = !1, dir, currentTabStopId: currentTabStopIdProp, defaultCurrentTabStopId, onCurrentTabStopIdChange, onEntryFocus, ...groupProps } = props, ref = $98Iye$useRef(null), composedRefs = $6ed0406888f73fc4$export$
|
|
1342
|
+
let { __scopeRovingFocusGroup, orientation, loop = !1, dir, currentTabStopId: currentTabStopIdProp, defaultCurrentTabStopId, onCurrentTabStopIdChange, onEntryFocus, ...groupProps } = props, ref = $98Iye$useRef(null), composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d052(forwardedRef, ref), direction = $f631663db3294ace$export$b39126d51d94e6f3(dir), [currentTabStopId = null, setCurrentTabStopId] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
1316
1343
|
prop: currentTabStopIdProp,
|
|
1317
1344
|
defaultProp: defaultCurrentTabStopId,
|
|
1318
1345
|
onChange: onCurrentTabStopIdChange
|
|
@@ -1486,6 +1513,22 @@ var $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 = $d7bdfb9eb0fdf311$export$8699f7c
|
|
|
1486
1513
|
// ../../../node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
1487
1514
|
import { Children as $iqq3r$Children, cloneElement as $iqq3r$cloneElement, useState as $iqq3r$useState, useRef as $iqq3r$useRef, useEffect as $iqq3r$useEffect, useCallback as $iqq3r$useCallback, useReducer as $iqq3r$useReducer } from "react";
|
|
1488
1515
|
import { flushSync as $iqq3r$flushSync } from "react-dom";
|
|
1516
|
+
|
|
1517
|
+
// ../../../node_modules/@radix-ui/react-presence/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1518
|
+
import { useCallback as $3vqmr$useCallback4 } from "react";
|
|
1519
|
+
function $6ed0406888f73fc4$var$setRef4(ref, value) {
|
|
1520
|
+
typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
|
|
1521
|
+
}
|
|
1522
|
+
function $6ed0406888f73fc4$export$43e446d32b3d21af4(...refs) {
|
|
1523
|
+
return (node) => refs.forEach(
|
|
1524
|
+
(ref) => $6ed0406888f73fc4$var$setRef4(ref, node)
|
|
1525
|
+
);
|
|
1526
|
+
}
|
|
1527
|
+
function $6ed0406888f73fc4$export$c7b2cbe3552a0d053(...refs) {
|
|
1528
|
+
return $3vqmr$useCallback4($6ed0406888f73fc4$export$43e446d32b3d21af4(...refs), refs);
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
// ../../../node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
1489
1532
|
function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
|
|
1490
1533
|
return $iqq3r$useReducer((state, event) => {
|
|
1491
1534
|
let nextState = machine[state][event];
|
|
@@ -1495,7 +1538,7 @@ function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
|
|
|
1495
1538
|
var $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props) => {
|
|
1496
1539
|
let { present, children } = props, presence = $921a889cee6df7e8$var$usePresence(present), child = typeof children == "function" ? children({
|
|
1497
1540
|
present: presence.isPresent
|
|
1498
|
-
}) : $iqq3r$Children.only(children), ref = $6ed0406888f73fc4$export$
|
|
1541
|
+
}) : $iqq3r$Children.only(children), ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d053(presence.ref, child.ref);
|
|
1499
1542
|
return typeof children == "function" || presence.isPresent ? $iqq3r$cloneElement(child, {
|
|
1500
1543
|
ref
|
|
1501
1544
|
}) : null;
|
package/dist/postinstall.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk2cqgxlo8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk2cqgxlo8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk2cqgxlo8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk2cqgxlo8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk2cqgxlo8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk2cqgxlo8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk2cqgxlo8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk2cqgxlo8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk2cqgxlo8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk2cqgxlo8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk2cqgxlo8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk2cqgxlo8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-a11y",
|
|
3
|
-
"version": "10.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.4",
|
|
4
4
|
"description": "Storybook Addon A11y: Test UI component compliance with WCAG web accessibility standards",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"a11y",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"vitest-axe": "^0.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"storybook": "^10.6.0-alpha.
|
|
76
|
+
"storybook": "^10.6.0-alpha.4"
|
|
77
77
|
},
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|