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

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 (110) hide show
  1. package/dist/index100.js +15 -11
  2. package/dist/index101.js +13 -217
  3. package/dist/index102.js +7 -13
  4. package/dist/index103.js +50 -30
  5. package/dist/index104.js +633 -118
  6. package/dist/index105.js +13 -15
  7. package/dist/index106.js +227 -9
  8. package/dist/index107.js +219 -49
  9. package/dist/index108.js +30 -11
  10. package/dist/index109.js +11 -4
  11. package/dist/index110.js +4 -13
  12. package/dist/index111.js +12 -3
  13. package/dist/index112.js +3 -46
  14. package/dist/index113.js +46 -14
  15. package/dist/index114.js +7 -650
  16. package/dist/index115.js +14 -13
  17. package/dist/index116.js +178 -223
  18. package/dist/index121.js +1 -1
  19. package/dist/index123.js +1 -1
  20. package/dist/index124.js +3 -3
  21. package/dist/index127.js +3 -3
  22. package/dist/index128.js +3 -3
  23. package/dist/index200.js +5 -525
  24. package/dist/index201.js +3 -128
  25. package/dist/index202.js +22 -132
  26. package/dist/index203.js +110 -5
  27. package/dist/index204.js +16 -3
  28. package/dist/index205.js +522 -21
  29. package/dist/index206.js +127 -109
  30. package/dist/index207.js +133 -15
  31. package/dist/index217.js +2 -2
  32. package/dist/index218.js +2 -2
  33. package/dist/index221.js +3 -3
  34. package/dist/index222.js +1 -1
  35. package/dist/index223.js +2 -2
  36. package/dist/index225.js +1 -1
  37. package/dist/index226.js +2 -2
  38. package/dist/index227.js +1 -1
  39. package/dist/index228.js +6 -6
  40. package/dist/index229.js +3 -3
  41. package/dist/index230.js +1 -1
  42. package/dist/index231.js +1 -1
  43. package/dist/index232.js +3 -3
  44. package/dist/index233.js +1 -1
  45. package/dist/index234.js +1 -1
  46. package/dist/index236.js +1 -1
  47. package/dist/index237.js +1 -1
  48. package/dist/index238.js +1 -1
  49. package/dist/index239.js +2 -2
  50. package/dist/index240.js +2 -2
  51. package/dist/index241.js +3 -3
  52. package/dist/index242.js +2 -2
  53. package/dist/index243.js +1 -1
  54. package/dist/index245.js +1 -1
  55. package/dist/index246.js +2 -2
  56. package/dist/index247.js +1 -1
  57. package/dist/index269.js +1 -1
  58. package/dist/index274.js +1 -1
  59. package/dist/index276.js +1 -1
  60. package/dist/index277.js +2 -2
  61. package/dist/index282.js +6 -5
  62. package/dist/index283.js +15 -5
  63. package/dist/index284.js +29 -4
  64. package/dist/index285.js +12 -15
  65. package/dist/index286.js +5 -8
  66. package/dist/index287.js +5 -5
  67. package/dist/index288.js +4 -5
  68. package/dist/index289.js +15 -512
  69. package/dist/index290.js +9 -50
  70. package/dist/index291.js +5 -17
  71. package/dist/index292.js +4 -6
  72. package/dist/index293.js +512 -8
  73. package/dist/index294.js +50 -8
  74. package/dist/index295.js +17 -8
  75. package/dist/index296.js +6 -12
  76. package/dist/index297.js +8 -10
  77. package/dist/index298.js +7 -14
  78. package/dist/index299.js +8 -6
  79. package/dist/index300.js +12 -15
  80. package/dist/index301.js +10 -28
  81. package/dist/index302.js +14 -12
  82. package/dist/index33.js +89 -73
  83. package/dist/index40.js +1 -1
  84. package/dist/index42.js +4 -4
  85. package/dist/index44.js +7 -7
  86. package/dist/index46.js +5 -5
  87. package/dist/index49.js +12 -12
  88. package/dist/index52.js +10 -10
  89. package/dist/index59.js +5 -5
  90. package/dist/index63.js +1 -1
  91. package/dist/index75.js +7 -7
  92. package/dist/index80.js +2 -2
  93. package/dist/index82.js +19 -19
  94. package/dist/index83.js +5 -5
  95. package/dist/index85.js +13 -13
  96. package/dist/index86.js +4 -4
  97. package/dist/index87.js +6 -6
  98. package/dist/index89.js +25 -5
  99. package/dist/index90.js +64 -23
  100. package/dist/index91.js +5 -66
  101. package/dist/index92.js +1 -1
  102. package/dist/index94.js +1 -1
  103. package/dist/index95.js +68 -32
  104. package/dist/index96.js +33 -181
  105. package/dist/index97.js +10 -7
  106. package/dist/index98.js +120 -64
  107. package/dist/index99.js +126 -116
  108. package/dist/style.css +1 -1
  109. package/dist/types/index.d.ts +4 -1
  110. package/package.json +1 -1
package/dist/index112.js CHANGED
@@ -1,49 +1,6 @@
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
- ];
1
+ function m(t, [a, n]) {
2
+ return Math.min(n, Math.max(a, t));
46
3
  }
47
4
  export {
48
- g as createCollection
5
+ m as clamp
49
6
  };
package/dist/index113.js CHANGED
@@ -1,17 +1,49 @@
1
- var m = 1, j = 0.9, k = 0.8, B = 0.17, v = 0.1, w = 0.999, D = 0.9999, G = 0.99, H = /[\\\/_+.#"@\[\(\{&]/, J = /[\\\/_+.#"@\[\(\{&]/g, K = /[\s-]/, A = /[\s-]/g;
2
- function $(t, o, e, i, n, h, u) {
3
- if (h === o.length) return n === t.length ? m : G;
4
- var s = `${n},${h}`;
5
- if (u[s] !== void 0) return u[s];
6
- for (var d = i.charAt(h), a = e.indexOf(d, n), l = 0, r, g, c, p; a >= 0; ) r = $(t, o, e, i, a + 1, h + 1, u), r > l && (a === n ? r *= m : H.test(t.charAt(a - 1)) ? (r *= k, c = t.slice(n, a - 1).match(J), c && n > 0 && (r *= Math.pow(w, c.length))) : K.test(t.charAt(a - 1)) ? (r *= j, p = t.slice(n, a - 1).match(A), p && n > 0 && (r *= Math.pow(w, p.length))) : (r *= B, n > 0 && (r *= Math.pow(w, a - n))), t.charAt(a) !== o.charAt(h) && (r *= D)), (r < v && e.charAt(a - 1) === i.charAt(h + 1) || i.charAt(h + 1) === i.charAt(h) && e.charAt(a - 1) !== i.charAt(h)) && (g = $(t, o, e, i, a + 1, h + 2, u), g * v > r && (r = g * v)), r > l && (l = r), a = e.indexOf(d, a + 1);
7
- return u[s] = l, l;
8
- }
9
- function x(t) {
10
- return t.toLowerCase().replace(A, " ");
11
- }
12
- function M(t, o, e) {
13
- return t = e && e.length > 0 ? `${t + " " + e.join(" ")}` : t, $(t, o, x(t), x(o), 0, 0, {});
1
+ "use client";
2
+ import r from "react";
3
+ import { createContextScope as y } from "./index90.js";
4
+ import { useComposedRefs as M } from "./index89.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
+ ];
14
46
  }
15
47
  export {
16
- M as a
48
+ g as createCollection
17
49
  };