@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.
Files changed (42) hide show
  1. package/README.md +42 -16
  2. package/dist/cdn/loader.v1.global.js +4 -2
  3. package/dist/cdn/loader.v1.global.js.map +1 -1
  4. package/dist/chunk-27RCQJAE.cjs +142 -0
  5. package/dist/chunk-27RCQJAE.cjs.map +1 -0
  6. package/dist/chunk-DV5YSBNS.js +140 -0
  7. package/dist/chunk-DV5YSBNS.js.map +1 -0
  8. package/dist/{chunk-M4COFGFO.cjs → chunk-YNWENXR2.js} +6 -142
  9. package/dist/chunk-YNWENXR2.js.map +1 -0
  10. package/dist/{chunk-J6UVDGJO.js → chunk-ZOOUTUWU.cjs} +10 -140
  11. package/dist/chunk-ZOOUTUWU.cjs.map +1 -0
  12. package/dist/client-B1KPVLJR.d.ts +95 -0
  13. package/dist/client-DP2jyZzm.d.cts +95 -0
  14. package/dist/index.cjs +4 -3
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +3 -2
  17. package/dist/index.d.ts +3 -2
  18. package/dist/index.js +3 -2
  19. package/dist/index.js.map +1 -1
  20. package/dist/node.cjs +244 -0
  21. package/dist/node.cjs.map +1 -0
  22. package/dist/node.d.cts +56 -0
  23. package/dist/node.d.ts +56 -0
  24. package/dist/node.js +221 -0
  25. package/dist/node.js.map +1 -0
  26. package/dist/picker.cjs +5 -2
  27. package/dist/picker.cjs.map +1 -1
  28. package/dist/picker.d.cts +3 -2
  29. package/dist/picker.d.ts +3 -2
  30. package/dist/picker.js +5 -2
  31. package/dist/picker.js.map +1 -1
  32. package/dist/react.cjs +3 -2
  33. package/dist/react.cjs.map +1 -1
  34. package/dist/react.d.cts +4 -2
  35. package/dist/react.d.ts +4 -2
  36. package/dist/react.js +2 -1
  37. package/dist/react.js.map +1 -1
  38. package/dist/{client-I6TadQ-m.d.cts → types-50o0pbff.d.cts} +7 -93
  39. package/dist/{client-I6TadQ-m.d.ts → types-50o0pbff.d.ts} +7 -93
  40. package/package.json +7 -1
  41. package/dist/chunk-J6UVDGJO.js.map +0 -1
  42. 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"]') ?? (this.$deviceSource?.style.display !== "none" ? panel.querySelector(".us-dropzone") : panel.querySelector(".us-url-input")) ?? this.$closeBtn;
1230
- target?.focus();
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) {