@masters-union/union-stack 0.3.7 → 0.3.9
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/README.md +42 -16
- package/dist/cdn/loader.v1.global.js +4 -2
- package/dist/cdn/loader.v1.global.js.map +1 -1
- package/dist/chunk-27RCQJAE.cjs +142 -0
- package/dist/chunk-27RCQJAE.cjs.map +1 -0
- package/dist/chunk-DV5YSBNS.js +140 -0
- package/dist/chunk-DV5YSBNS.js.map +1 -0
- package/dist/{chunk-M4COFGFO.cjs → chunk-YNWENXR2.js} +6 -142
- package/dist/chunk-YNWENXR2.js.map +1 -0
- package/dist/{chunk-J6UVDGJO.js → chunk-ZOOUTUWU.cjs} +10 -140
- package/dist/chunk-ZOOUTUWU.cjs.map +1 -0
- package/dist/client-B1KPVLJR.d.ts +95 -0
- package/dist/client-DP2jyZzm.d.cts +95 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/node.cjs +244 -0
- package/dist/node.cjs.map +1 -0
- package/dist/node.d.cts +56 -0
- package/dist/node.d.ts +56 -0
- package/dist/node.js +221 -0
- package/dist/node.js.map +1 -0
- package/dist/picker.cjs +5 -2
- package/dist/picker.cjs.map +1 -1
- package/dist/picker.d.cts +3 -2
- package/dist/picker.d.ts +3 -2
- package/dist/picker.js +5 -2
- package/dist/picker.js.map +1 -1
- package/dist/react.cjs +3 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -2
- package/dist/react.d.ts +4 -2
- package/dist/react.js +2 -1
- package/dist/react.js.map +1 -1
- package/dist/{client-I6TadQ-m.d.cts → types-50o0pbff.d.cts} +7 -93
- package/dist/{client-I6TadQ-m.d.ts → types-50o0pbff.d.ts} +7 -93
- package/package.json +7 -1
- package/dist/chunk-J6UVDGJO.js.map +0 -1
- package/dist/chunk-M4COFGFO.cjs.map +0 -1
package/dist/picker.cjs
CHANGED
|
@@ -131,6 +131,8 @@ var BASE_CSS = `
|
|
|
131
131
|
overflow: hidden;
|
|
132
132
|
animation: us-rise 240ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
133
133
|
}
|
|
134
|
+
/* Container is only a programmatic focus fallback \u2014 no visible focus ring. */
|
|
135
|
+
.us-picker:focus { outline: none; }
|
|
134
136
|
@keyframes us-rise {
|
|
135
137
|
from { opacity: 0; transform: translateY(8px) scale(0.985); }
|
|
136
138
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
@@ -1149,6 +1151,7 @@ var Picker = class {
|
|
|
1149
1151
|
panel.setAttribute("role", "dialog");
|
|
1150
1152
|
panel.setAttribute("aria-modal", "true");
|
|
1151
1153
|
panel.setAttribute("aria-labelledby", titleId);
|
|
1154
|
+
panel.tabIndex = -1;
|
|
1152
1155
|
panel.addEventListener("keydown", (e) => {
|
|
1153
1156
|
if (e.key === "Escape" && !this.uploadStarted) {
|
|
1154
1157
|
e.preventDefault();
|
|
@@ -1226,8 +1229,8 @@ var Picker = class {
|
|
|
1226
1229
|
root.appendChild(panel);
|
|
1227
1230
|
(this.opts.container ?? document.body).appendChild(root);
|
|
1228
1231
|
this.$backdrop = root;
|
|
1229
|
-
const target = panel.querySelector('.us-source-tab[data-active="true"]') ??
|
|
1230
|
-
target
|
|
1232
|
+
const target = panel.querySelector('.us-source-tab[data-active="true"]') ?? panel;
|
|
1233
|
+
target.focus();
|
|
1231
1234
|
}
|
|
1232
1235
|
// Keeps Tab focus cycling within the modal (focus trap).
|
|
1233
1236
|
trapFocus(e) {
|