@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.d.cts CHANGED
@@ -1,5 +1,6 @@
1
- import { U as UnionStackClient, g as PickerOptions, P as PickResponse, h as PickerHandle } from './client-I6TadQ-m.cjs';
2
- export { i as PickerBranding, j as PickerTheme } from './client-I6TadQ-m.cjs';
1
+ import { U as UnionStackClient, P as PickerOptions, a as PickerHandle } from './client-DP2jyZzm.cjs';
2
+ export { b as PickerBranding, c as PickerTheme } from './client-DP2jyZzm.cjs';
3
+ import { P as PickResponse } from './types-50o0pbff.cjs';
3
4
 
4
5
  /**
5
6
  * Single-shot file picker modal. Built imperatively (no framework) so it can
package/dist/picker.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { U as UnionStackClient, g as PickerOptions, P as PickResponse, h as PickerHandle } from './client-I6TadQ-m.js';
2
- export { i as PickerBranding, j as PickerTheme } from './client-I6TadQ-m.js';
1
+ import { U as UnionStackClient, P as PickerOptions, a as PickerHandle } from './client-B1KPVLJR.js';
2
+ export { b as PickerBranding, c as PickerTheme } from './client-B1KPVLJR.js';
3
+ import { P as PickResponse } from './types-50o0pbff.js';
3
4
 
4
5
  /**
5
6
  * Single-shot file picker modal. Built imperatively (no framework) so it can
package/dist/picker.js CHANGED
@@ -129,6 +129,8 @@ var BASE_CSS = `
129
129
  overflow: hidden;
130
130
  animation: us-rise 240ms cubic-bezier(0.16, 1, 0.3, 1);
131
131
  }
132
+ /* Container is only a programmatic focus fallback \u2014 no visible focus ring. */
133
+ .us-picker:focus { outline: none; }
132
134
  @keyframes us-rise {
133
135
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
134
136
  to { opacity: 1; transform: translateY(0) scale(1); }
@@ -1147,6 +1149,7 @@ var Picker = class {
1147
1149
  panel.setAttribute("role", "dialog");
1148
1150
  panel.setAttribute("aria-modal", "true");
1149
1151
  panel.setAttribute("aria-labelledby", titleId);
1152
+ panel.tabIndex = -1;
1150
1153
  panel.addEventListener("keydown", (e) => {
1151
1154
  if (e.key === "Escape" && !this.uploadStarted) {
1152
1155
  e.preventDefault();
@@ -1224,8 +1227,8 @@ var Picker = class {
1224
1227
  root.appendChild(panel);
1225
1228
  (this.opts.container ?? document.body).appendChild(root);
1226
1229
  this.$backdrop = root;
1227
- 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;
1228
- target?.focus();
1230
+ const target = panel.querySelector('.us-source-tab[data-active="true"]') ?? panel;
1231
+ target.focus();
1229
1232
  }
1230
1233
  // Keeps Tab focus cycling within the modal (focus trap).
1231
1234
  trapFocus(e) {