@datawire-ai/busyfile-design-library 1.30.5 → 1.30.7

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 (101) hide show
  1. package/dist/index10.js +28 -25
  2. package/dist/index100.js +124 -13
  3. package/dist/index101.js +134 -14
  4. package/dist/index102.js +13 -7
  5. package/dist/index103.js +16 -50
  6. package/dist/index104.js +8 -650
  7. package/dist/index105.js +50 -14
  8. package/dist/index106.js +215 -222
  9. package/dist/index107.js +29 -219
  10. package/dist/index108.js +11 -30
  11. package/dist/index109.js +4 -11
  12. package/dist/index110.js +13 -4
  13. package/dist/index111.js +13 -12
  14. package/dist/index112.js +226 -3
  15. package/dist/index113.js +3 -46
  16. package/dist/index114.js +46 -7
  17. package/dist/index115.js +648 -12
  18. package/dist/index116.js +12 -179
  19. package/dist/index121.js +1 -1
  20. package/dist/index123.js +1 -1
  21. package/dist/index217.js +2 -2
  22. package/dist/index218.js +2 -2
  23. package/dist/index221.js +3 -3
  24. package/dist/index222.js +1 -1
  25. package/dist/index223.js +2 -2
  26. package/dist/index225.js +1 -1
  27. package/dist/index226.js +2 -2
  28. package/dist/index227.js +1 -1
  29. package/dist/index228.js +6 -6
  30. package/dist/index229.js +3 -3
  31. package/dist/index23.js +38 -32
  32. package/dist/index230.js +1 -1
  33. package/dist/index231.js +1 -1
  34. package/dist/index232.js +3 -3
  35. package/dist/index233.js +1 -1
  36. package/dist/index234.js +1 -1
  37. package/dist/index236.js +1 -1
  38. package/dist/index237.js +1 -1
  39. package/dist/index238.js +1 -1
  40. package/dist/index239.js +2 -2
  41. package/dist/index240.js +2 -2
  42. package/dist/index241.js +3 -3
  43. package/dist/index242.js +2 -2
  44. package/dist/index243.js +1 -1
  45. package/dist/index245.js +1 -1
  46. package/dist/index246.js +2 -2
  47. package/dist/index247.js +1 -1
  48. package/dist/index274.js +1 -1
  49. package/dist/index276.js +1 -1
  50. package/dist/index277.js +2 -2
  51. package/dist/index282.js +5 -6
  52. package/dist/index283.js +5 -15
  53. package/dist/index284.js +4 -29
  54. package/dist/index285.js +15 -12
  55. package/dist/index286.js +8 -5
  56. package/dist/index287.js +5 -5
  57. package/dist/index288.js +5 -4
  58. package/dist/index289.js +512 -15
  59. package/dist/index290.js +50 -9
  60. package/dist/index291.js +17 -5
  61. package/dist/index292.js +6 -4
  62. package/dist/index293.js +8 -512
  63. package/dist/index294.js +8 -50
  64. package/dist/index295.js +8 -17
  65. package/dist/index296.js +12 -6
  66. package/dist/index297.js +10 -8
  67. package/dist/index298.js +14 -7
  68. package/dist/index299.js +6 -8
  69. package/dist/index300.js +15 -12
  70. package/dist/index301.js +28 -10
  71. package/dist/index302.js +12 -14
  72. package/dist/index40.js +1 -1
  73. package/dist/index41.js +1 -1
  74. package/dist/index42.js +4 -4
  75. package/dist/index44.js +7 -7
  76. package/dist/index46.js +5 -5
  77. package/dist/index49.js +12 -12
  78. package/dist/index52.js +10 -10
  79. package/dist/index59.js +5 -5
  80. package/dist/index63.js +1 -1
  81. package/dist/index72.js +6 -3
  82. package/dist/index74.js +1 -1
  83. package/dist/index75.js +7 -7
  84. package/dist/index80.js +2 -2
  85. package/dist/index82.js +18 -18
  86. package/dist/index83.js +1 -1
  87. package/dist/index85.js +13 -13
  88. package/dist/index86.js +4 -4
  89. package/dist/index87.js +6 -6
  90. package/dist/index89.js +5 -25
  91. package/dist/index90.js +23 -64
  92. package/dist/index91.js +66 -5
  93. package/dist/index92.js +1 -1
  94. package/dist/index94.js +1 -1
  95. package/dist/index95.js +32 -68
  96. package/dist/index96.js +68 -32
  97. package/dist/index97.js +181 -10
  98. package/dist/index98.js +7 -125
  99. package/dist/index99.js +10 -135
  100. package/dist/style.css +1 -1
  101. package/package.json +1 -1
package/dist/index114.js CHANGED
@@ -1,10 +1,49 @@
1
- import * as t from "react";
2
- import "react/jsx-runtime";
3
- var r = t.createContext(void 0);
4
- function n(o) {
5
- const e = t.useContext(r);
6
- return o || e || "ltr";
1
+ "use client";
2
+ import r from "react";
3
+ import { createContextScope as y } from "./index91.js";
4
+ import { useComposedRefs as M } from "./index90.js";
5
+ import { createSlot as x } from "./index40.js";
6
+ import { jsx as u } from "react/jsx-runtime";
7
+ function g(s) {
8
+ const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
9
+ m,
10
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
11
+ ), p = (c) => {
12
+ const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
13
+ return /* @__PURE__ */ u(_, { scope: e, itemMap: t, collectionRef: o, children: l });
14
+ };
15
+ p.displayName = m;
16
+ const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
17
+ (c, e) => {
18
+ const { scope: l, children: o } = c, t = f(a, l), n = M(e, t.collectionRef);
19
+ return /* @__PURE__ */ u(E, { ref: n, children: o });
20
+ }
21
+ );
22
+ C.displayName = a;
23
+ const d = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(d), I = r.forwardRef(
24
+ (c, e) => {
25
+ const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(d, l);
26
+ return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ u(T, { [R]: "", ref: S, children: o });
27
+ }
28
+ );
29
+ I.displayName = d;
30
+ function O(c) {
31
+ const e = f(s + "CollectionConsumer", c);
32
+ return r.useCallback(() => {
33
+ const o = e.collectionRef.current;
34
+ if (!o) return [];
35
+ const t = Array.from(o.querySelectorAll(`[${R}]`));
36
+ return Array.from(e.itemMap.values()).sort(
37
+ (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
38
+ );
39
+ }, [e.collectionRef, e.itemMap]);
40
+ }
41
+ return [
42
+ { Provider: p, Slot: C, ItemSlot: I },
43
+ O,
44
+ N
45
+ ];
7
46
  }
8
47
  export {
9
- n as useDirection
48
+ g as createCollection
10
49
  };