@datawire-ai/busyfile-design-library 1.31.1 → 1.33.0

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 (64) hide show
  1. package/dist/index100.js +3 -3
  2. package/dist/index101.js +2 -2
  3. package/dist/index102.js +2 -2
  4. package/dist/index106.js +5 -5
  5. package/dist/index107.js +1 -1
  6. package/dist/index108.js +3 -14
  7. package/dist/index109.js +46 -10
  8. package/dist/index110.js +11 -4
  9. package/dist/index111.js +4 -13
  10. package/dist/index112.js +12 -3
  11. package/dist/index113.js +644 -40
  12. package/dist/index116.js +23 -649
  13. package/dist/index117.js +15 -18
  14. package/dist/index118.js +33 -16
  15. package/dist/index119.js +12 -33
  16. package/dist/index12.js +28 -30
  17. package/dist/index120.js +15 -18
  18. package/dist/index121.js +1 -1
  19. package/dist/index123.js +1 -1
  20. package/dist/index30.js +52 -51
  21. package/dist/index42.js +6 -6
  22. package/dist/index44.js +9 -9
  23. package/dist/index46.js +7 -7
  24. package/dist/index48.js +1 -1
  25. package/dist/index49.js +5 -5
  26. package/dist/index50.js +1 -1
  27. package/dist/index52.js +5 -5
  28. package/dist/index54.js +1 -1
  29. package/dist/index55.js +1 -1
  30. package/dist/index56.js +1 -1
  31. package/dist/index57.js +1 -1
  32. package/dist/index59.js +5 -5
  33. package/dist/index61.js +1 -1
  34. package/dist/index62.js +1 -1
  35. package/dist/index63.js +1 -1
  36. package/dist/index65.js +1 -1
  37. package/dist/index66.js +1 -1
  38. package/dist/index67.js +1 -1
  39. package/dist/index68.js +1 -1
  40. package/dist/index70.js +1 -1
  41. package/dist/index71.js +1 -1
  42. package/dist/index73.js +1 -1
  43. package/dist/index75.js +7 -7
  44. package/dist/index78.js +1 -1
  45. package/dist/index79.js +1 -1
  46. package/dist/index81.js +1 -1
  47. package/dist/index82.js +10 -10
  48. package/dist/index84.js +1 -1
  49. package/dist/index85.js +5 -5
  50. package/dist/index86.js +2 -2
  51. package/dist/index87.js +5 -5
  52. package/dist/index88.js +1 -1
  53. package/dist/index90.js +5 -66
  54. package/dist/index91.js +66 -5
  55. package/dist/index92.js +33 -51
  56. package/dist/index93.js +181 -5
  57. package/dist/index94.js +51 -24
  58. package/dist/index95.js +7 -69
  59. package/dist/index96.js +24 -33
  60. package/dist/index97.js +5 -181
  61. package/dist/index98.js +69 -7
  62. package/dist/index99.js +1 -1
  63. package/dist/types/index.d.ts +3 -3
  64. package/package.json +1 -1
package/dist/index100.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import * as n from "react";
3
- import { composeEventHandlers as m } from "./index91.js";
4
- import { Primitive as g, dispatchDiscreteCustomEvent as k } from "./index96.js";
3
+ import { composeEventHandlers as m } from "./index90.js";
4
+ import { Primitive as g, dispatchDiscreteCustomEvent as k } from "./index92.js";
5
5
  import { useComposedRefs as R } from "./index89.js";
6
- import { useCallbackRef as w } from "./index109.js";
6
+ import { useCallbackRef as w } from "./index110.js";
7
7
  import { useEscapeKeydown as U } from "./index121.js";
8
8
  import { jsx as T } from "react/jsx-runtime";
9
9
  var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", L, B = n.createContext({
package/dist/index101.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import * as d from "react";
3
3
  import { useComposedRefs as R } from "./index89.js";
4
- import { Primitive as M } from "./index96.js";
5
- import { useCallbackRef as y } from "./index109.js";
4
+ import { Primitive as M } from "./index92.js";
5
+ import { useCallbackRef as y } from "./index110.js";
6
6
  import { jsx as _ } from "react/jsx-runtime";
7
7
  var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
8
8
  const {
package/dist/index102.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import * as r from "react";
3
3
  import s from "react-dom";
4
- import { Primitive as c } from "./index96.js";
5
- import { useLayoutEffect as u } from "./index110.js";
4
+ import { Primitive as c } from "./index92.js";
5
+ import { useLayoutEffect as u } from "./index111.js";
6
6
  import { jsx as l } from "react/jsx-runtime";
7
7
  var p = "Portal", d = r.forwardRef((e, a) => {
8
8
  var o;
package/dist/index106.js CHANGED
@@ -3,11 +3,11 @@ import * as p from "react";
3
3
  import { useFloating as xe, offset as Pe, shift as ye, flip as Ae, size as ve, arrow as Ce, hide as be, limitShift as Se } from "./index122.js";
4
4
  import { Root as Oe } from "./index123.js";
5
5
  import { useComposedRefs as j } from "./index89.js";
6
- import { createContextScope as Re } from "./index90.js";
7
- import { Primitive as z } from "./index96.js";
8
- import { useCallbackRef as Ee } from "./index109.js";
9
- import { useLayoutEffect as T } from "./index110.js";
10
- import { useSize as Ne } from "./index94.js";
6
+ import { createContextScope as Re } from "./index91.js";
7
+ import { Primitive as z } from "./index92.js";
8
+ import { useCallbackRef as Ee } from "./index110.js";
9
+ import { useLayoutEffect as T } from "./index111.js";
10
+ import { useSize as Ne } from "./index96.js";
11
11
  import { jsx as f } from "react/jsx-runtime";
12
12
  import { autoUpdate as _e } from "./index124.js";
13
13
  var N = "Popper", [L, Ue] = Re(N), [$e, Z] = L(N), U = (e) => {
package/dist/index107.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as a from "react";
2
- import { Primitive as o } from "./index96.js";
2
+ import { Primitive as o } from "./index92.js";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  var d = Object.freeze({
5
5
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
package/dist/index108.js CHANGED
@@ -1,17 +1,6 @@
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
+ function m(t, [a, n]) {
2
+ return Math.min(n, Math.max(a, t));
14
3
  }
15
4
  export {
16
- M as a
5
+ m as clamp
17
6
  };
package/dist/index109.js CHANGED
@@ -1,13 +1,49 @@
1
- import * as r from "react";
2
- function o(t) {
3
- const e = r.useRef(t);
4
- return r.useEffect(() => {
5
- e.current = t;
6
- }), r.useMemo(() => (...n) => {
7
- var u;
8
- return (u = e.current) == null ? void 0 : u.call(e, ...n);
9
- }, []);
1
+ "use client";
2
+ import r from "react";
3
+ import { createContextScope as y } from "./index91.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
+ ];
10
46
  }
11
47
  export {
12
- o as useCallbackRef
48
+ g as createCollection
13
49
  };
package/dist/index110.js CHANGED
@@ -1,6 +1,13 @@
1
- import * as t from "react";
2
- var e = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
3
- };
1
+ import * as r from "react";
2
+ function o(t) {
3
+ const e = r.useRef(t);
4
+ return r.useEffect(() => {
5
+ e.current = t;
6
+ }), r.useMemo(() => (...n) => {
7
+ var u;
8
+ return (u = e.current) == null ? void 0 : u.call(e, ...n);
9
+ }, []);
10
+ }
4
11
  export {
5
- e as useLayoutEffect
12
+ o as useCallbackRef
6
13
  };
package/dist/index111.js CHANGED
@@ -1,15 +1,6 @@
1
- import { s as r } from "./index125.js";
2
- function s() {
3
- return r.useSyncExternalStore(
4
- e,
5
- () => !0,
6
- () => !1
7
- );
8
- }
9
- function e() {
10
- return () => {
11
- };
12
- }
1
+ import * as t from "react";
2
+ var e = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
3
+ };
13
4
  export {
14
- s as useIsHydrated
5
+ e as useLayoutEffect
15
6
  };
package/dist/index112.js CHANGED
@@ -1,6 +1,15 @@
1
- function m(t, [a, n]) {
2
- return Math.min(n, Math.max(a, t));
1
+ import { s as r } from "./index125.js";
2
+ function s() {
3
+ return r.useSyncExternalStore(
4
+ e,
5
+ () => !0,
6
+ () => !1
7
+ );
8
+ }
9
+ function e() {
10
+ return () => {
11
+ };
3
12
  }
4
13
  export {
5
- m as clamp
14
+ s as useIsHydrated
6
15
  };