@datawire-ai/busyfile-design-library 1.31.1 → 1.32.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 (166) hide show
  1. package/dist/index100.js +10 -125
  2. package/dist/index101.js +212 -128
  3. package/dist/index102.js +2 -2
  4. package/dist/index103.js +30 -16
  5. package/dist/index104.js +4 -9
  6. package/dist/index105.js +46 -49
  7. package/dist/index106.js +13 -217
  8. package/dist/index107.js +135 -29
  9. package/dist/index108.js +10 -14
  10. package/dist/index109.js +4 -11
  11. package/dist/index110.js +49 -3
  12. package/dist/index111.js +9 -13
  13. package/dist/index112.js +650 -3
  14. package/dist/index113.js +13 -46
  15. package/dist/index114.js +226 -13
  16. package/dist/index115.js +14 -226
  17. package/dist/index116.js +10 -648
  18. package/dist/index117.js +12 -25
  19. package/dist/index118.js +205 -21
  20. package/dist/index119.js +21 -38
  21. package/dist/index120.js +399 -17
  22. package/dist/index121.js +25 -12
  23. package/dist/index122.js +21 -205
  24. package/dist/index123.js +38 -21
  25. package/dist/index124.js +17 -399
  26. package/dist/index127.js +3 -3
  27. package/dist/index128.js +3 -3
  28. package/dist/index130.js +1 -1
  29. package/dist/index131.js +1 -1
  30. package/dist/index132.js +525 -52
  31. package/dist/index133.js +127 -4
  32. package/dist/index134.js +133 -4
  33. package/dist/index135.js +52 -16
  34. package/dist/index136.js +4 -5
  35. package/dist/index137.js +4 -8
  36. package/dist/index138.js +13 -14
  37. package/dist/index139.js +5 -4
  38. package/dist/index140.js +8 -4
  39. package/dist/index141.js +16 -5
  40. package/dist/index142.js +4 -5
  41. package/dist/index143.js +4 -4
  42. package/dist/index144.js +5 -4
  43. package/dist/index145.js +5 -6
  44. package/dist/index146.js +4 -24
  45. package/dist/index147.js +4 -6
  46. package/dist/index148.js +5 -3
  47. package/dist/index149.js +24 -6
  48. package/dist/index150.js +6 -5
  49. package/dist/index151.js +4 -4
  50. package/dist/index152.js +6 -5
  51. package/dist/index153.js +5 -4
  52. package/dist/index154.js +4 -8
  53. package/dist/index155.js +2 -2
  54. package/dist/index156.js +1 -1
  55. package/dist/index157.js +8 -4
  56. package/dist/index158.js +4 -5
  57. package/dist/index159.js +4 -58
  58. package/dist/index160.js +4 -66
  59. package/dist/index161.js +6 -240
  60. package/dist/index162.js +56 -37
  61. package/dist/index163.js +66 -4
  62. package/dist/index164.js +240 -7
  63. package/dist/index165.js +38 -12
  64. package/dist/index166.js +4 -7
  65. package/dist/index167.js +7 -10
  66. package/dist/index168.js +12 -9
  67. package/dist/index169.js +7 -8
  68. package/dist/index170.js +9 -15
  69. package/dist/index171.js +11 -24
  70. package/dist/index172.js +9 -20
  71. package/dist/index173.js +15 -52
  72. package/dist/index174.js +24 -42
  73. package/dist/index175.js +20 -10
  74. package/dist/index176.js +51 -18
  75. package/dist/index177.js +40 -15
  76. package/dist/index178.js +9 -6
  77. package/dist/index179.js +20 -23
  78. package/dist/index180.js +16 -18
  79. package/dist/index181.js +7 -16
  80. package/dist/index182.js +23 -6
  81. package/dist/index183.js +19 -5
  82. package/dist/index184.js +16 -5
  83. package/dist/index185.js +6 -4
  84. package/dist/index186.js +4 -4
  85. package/dist/index187.js +4 -3
  86. package/dist/index188.js +4 -6
  87. package/dist/index189.js +4 -7
  88. package/dist/index190.js +3 -6
  89. package/dist/index191.js +6 -5
  90. package/dist/index192.js +7 -3
  91. package/dist/index193.js +6 -3
  92. package/dist/index194.js +5 -3
  93. package/dist/index195.js +3 -3
  94. package/dist/index196.js +3 -4
  95. package/dist/index197.js +3 -3
  96. package/dist/index198.js +3 -3
  97. package/dist/index199.js +4 -3
  98. package/dist/index200.js +4 -5
  99. package/dist/index201.js +4 -3
  100. package/dist/index202.js +3 -23
  101. package/dist/index203.js +2 -110
  102. package/dist/index204.js +2 -16
  103. package/dist/index205.js +5 -525
  104. package/dist/index206.js +3 -128
  105. package/dist/index207.js +22 -132
  106. package/dist/index208.js +110 -2
  107. package/dist/index209.js +16 -2
  108. package/dist/index212.js +1 -1
  109. package/dist/index228.js +1 -1
  110. package/dist/index248.js +3 -3
  111. package/dist/index259.js +1 -1
  112. package/dist/index262.js +1 -1
  113. package/dist/index264.js +1 -1
  114. package/dist/index265.js +1 -1
  115. package/dist/index266.js +3 -3
  116. package/dist/index267.js +2 -2
  117. package/dist/index268.js +65 -69
  118. package/dist/index269.js +68 -8
  119. package/dist/index270.js +9 -14
  120. package/dist/index271.js +14 -66
  121. package/dist/index272.js +65 -64
  122. package/dist/index30.js +52 -51
  123. package/dist/index42.js +3 -3
  124. package/dist/index44.js +6 -6
  125. package/dist/index46.js +4 -4
  126. package/dist/index48.js +1 -1
  127. package/dist/index49.js +10 -10
  128. package/dist/index50.js +1 -1
  129. package/dist/index52.js +8 -8
  130. package/dist/index54.js +1 -1
  131. package/dist/index55.js +1 -1
  132. package/dist/index56.js +1 -1
  133. package/dist/index57.js +1 -1
  134. package/dist/index59.js +5 -5
  135. package/dist/index61.js +1 -1
  136. package/dist/index62.js +1 -1
  137. package/dist/index63.js +1 -1
  138. package/dist/index65.js +1 -1
  139. package/dist/index66.js +1 -1
  140. package/dist/index67.js +1 -1
  141. package/dist/index68.js +1 -1
  142. package/dist/index70.js +1 -1
  143. package/dist/index71.js +1 -1
  144. package/dist/index73.js +1 -1
  145. package/dist/index75.js +7 -7
  146. package/dist/index78.js +1 -1
  147. package/dist/index79.js +1 -1
  148. package/dist/index80.js +2 -2
  149. package/dist/index81.js +1 -1
  150. package/dist/index82.js +16 -16
  151. package/dist/index84.js +1 -1
  152. package/dist/index85.js +11 -11
  153. package/dist/index86.js +3 -3
  154. package/dist/index87.js +5 -5
  155. package/dist/index88.js +1 -1
  156. package/dist/index90.js +5 -66
  157. package/dist/index91.js +66 -5
  158. package/dist/index92.js +1 -1
  159. package/dist/index94.js +1 -1
  160. package/dist/index95.js +32 -68
  161. package/dist/index96.js +181 -33
  162. package/dist/index97.js +7 -181
  163. package/dist/index98.js +69 -7
  164. package/dist/index99.js +125 -10
  165. package/dist/types/index.d.ts +2 -0
  166. package/package.json +1 -1
package/dist/index54.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index55.js CHANGED
@@ -1,4 +1,4 @@
1
- import c from "./index117.js";
1
+ import c from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index56.js CHANGED
@@ -1,4 +1,4 @@
1
- import c from "./index117.js";
1
+ import c from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index57.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index117.js";
1
+ import o from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index59.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import * as i from "react";
3
- import { createContextScope as C } from "./index90.js";
4
- import { useCallbackRef as h } from "./index109.js";
5
- import { useLayoutEffect as f } from "./index110.js";
6
- import { Primitive as v } from "./index96.js";
7
- import { useIsHydrated as _ } from "./index111.js";
3
+ import { createContextScope as C } from "./index91.js";
4
+ import { useCallbackRef as h } from "./index108.js";
5
+ import { useLayoutEffect as f } from "./index109.js";
6
+ import { Primitive as v } from "./index95.js";
7
+ import { useIsHydrated as _ } from "./index116.js";
8
8
  import { jsx as l } from "react/jsx-runtime";
9
9
  var m = "Avatar", [y, H] = C(m), [x, A] = y(m), L = i.forwardRef(
10
10
  (t, e) => {
package/dist/index61.js CHANGED
@@ -1,4 +1,4 @@
1
- import c from "./index117.js";
1
+ import c from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index62.js CHANGED
@@ -1,4 +1,4 @@
1
- import a from "./index117.js";
1
+ import a from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index63.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as p from "react";
2
- import { Primitive as v } from "./index96.js";
2
+ import { Primitive as v } from "./index95.js";
3
3
  import { jsx as m } from "react/jsx-runtime";
4
4
  var d = "Separator", a = "horizontal", l = ["horizontal", "vertical"], i = p.forwardRef((r, n) => {
5
5
  const { decorative: e, orientation: t = a, ...s } = r, o = f(t) ? t : a, c = e ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
package/dist/index65.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index66.js CHANGED
@@ -1,4 +1,4 @@
1
- import a from "./index117.js";
1
+ import a from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index67.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index68.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index70.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index117.js";
1
+ import o from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index71.js CHANGED
@@ -1,4 +1,4 @@
1
- import c from "./index117.js";
1
+ import c from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index73.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index75.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import * as v from "react";
3
- import { composeEventHandlers as g } from "./index91.js";
4
- import { createContextScope as x } from "./index90.js";
5
- import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index97.js";
6
- import { Presence as w } from "./index95.js";
7
- import { Primitive as b } from "./index96.js";
8
- import { useDirection as D } from "./index98.js";
3
+ import { composeEventHandlers as g } from "./index90.js";
4
+ import { createContextScope as x } from "./index91.js";
5
+ import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index96.js";
6
+ import { Presence as w } from "./index98.js";
7
+ import { Primitive as b } from "./index95.js";
8
+ import { useDirection as D } from "./index97.js";
9
9
  import { useControllableState as V } from "./index92.js";
10
- import { useId as G } from "./index99.js";
10
+ import { useId as G } from "./index100.js";
11
11
  import { jsx as l } from "react/jsx-runtime";
12
12
  var p = "Tabs", [L, Q] = x(p, [
13
13
  C
package/dist/index78.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index79.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index80.js CHANGED
@@ -4,8 +4,8 @@ import * as m from "react";
4
4
  import { cn as e } from "./index37.js";
5
5
  import { Button as x } from "./index3.js";
6
6
  import { buttonVariants as f } from "./index41.js";
7
- import { getDefaultClassNames as p } from "./index114.js";
8
- import { DayPicker as w } from "./index115.js";
7
+ import { getDefaultClassNames as p } from "./index113.js";
8
+ import { DayPicker as w } from "./index114.js";
9
9
  import h from "./index81.js";
10
10
  import _ from "./index70.js";
11
11
  import v from "./index57.js";
package/dist/index81.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index117.js";
1
+ import e from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index82.js CHANGED
@@ -1,27 +1,27 @@
1
1
  "use client";
2
2
  import * as t from "react";
3
3
  import * as be from "react-dom";
4
- import { clamp as Re } from "./index112.js";
5
- import { composeEventHandlers as E } from "./index91.js";
6
- import { createCollection as st } from "./index113.js";
4
+ import { clamp as Re } from "./index104.js";
5
+ import { composeEventHandlers as E } from "./index90.js";
6
+ import { createCollection as st } from "./index105.js";
7
7
  import { useComposedRefs as B } from "./index89.js";
8
- import { createContextScope as lt } from "./index90.js";
9
- import { useDirection as ct } from "./index98.js";
10
- import { DismissableLayer as it } from "./index100.js";
11
- import { useFocusGuards as at } from "./index103.js";
12
- import { FocusScope as dt } from "./index101.js";
13
- import { useId as Ie } from "./index99.js";
14
- import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index106.js";
8
+ import { createContextScope as lt } from "./index91.js";
9
+ import { useDirection as ct } from "./index97.js";
10
+ import { DismissableLayer as it } from "./index99.js";
11
+ import { useFocusGuards as at } from "./index106.js";
12
+ import { FocusScope as dt } from "./index107.js";
13
+ import { useId as Ie } from "./index100.js";
14
+ import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index101.js";
15
15
  import { Portal as ht } from "./index102.js";
16
- import { Primitive as M } from "./index96.js";
16
+ import { Primitive as M } from "./index95.js";
17
17
  import { createSlot as vt } from "./index40.js";
18
- import { useCallbackRef as gt } from "./index109.js";
18
+ import { useCallbackRef as gt } from "./index108.js";
19
19
  import { useControllableState as Ee } from "./index92.js";
20
- import { useLayoutEffect as Y } from "./index110.js";
20
+ import { useLayoutEffect as Y } from "./index109.js";
21
21
  import { usePrevious as St } from "./index93.js";
22
- import { VISUALLY_HIDDEN_STYLES as wt } from "./index107.js";
23
- import { hideOthers as Ct } from "./index105.js";
24
- import yt from "./index104.js";
22
+ import { VISUALLY_HIDDEN_STYLES as wt } from "./index103.js";
23
+ import { hideOthers as Ct } from "./index110.js";
24
+ import yt from "./index111.js";
25
25
  import { jsx as m, Fragment as Te, jsxs as ce } from "react/jsx-runtime";
26
26
  var xt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ae, de, Tt] = st(J), [te, uo] = lt(J, [
27
27
  Tt,
package/dist/index84.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index117.js";
1
+ import o from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index85.js CHANGED
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import * as i from "react";
3
- import { composeEventHandlers as P } from "./index91.js";
3
+ import { composeEventHandlers as P } from "./index90.js";
4
4
  import { useComposedRefs as O } from "./index89.js";
5
- import { createContextScope as G } from "./index90.js";
6
- import { DismissableLayer as H } from "./index100.js";
7
- import { useFocusGuards as K } from "./index103.js";
8
- import { FocusScope as $ } from "./index101.js";
9
- import { useId as j } from "./index99.js";
10
- import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./index106.js";
5
+ import { createContextScope as G } from "./index91.js";
6
+ import { DismissableLayer as H } from "./index99.js";
7
+ import { useFocusGuards as K } from "./index106.js";
8
+ import { FocusScope as $ } from "./index107.js";
9
+ import { useId as j } from "./index100.js";
10
+ import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./index101.js";
11
11
  import { Portal as Z } from "./index102.js";
12
- import { Presence as w } from "./index95.js";
13
- import { Primitive as E } from "./index96.js";
12
+ import { Presence as w } from "./index98.js";
13
+ import { Primitive as E } from "./index95.js";
14
14
  import { createSlot as q } from "./index40.js";
15
15
  import { useControllableState as z } from "./index92.js";
16
- import { hideOthers as B } from "./index105.js";
17
- import J from "./index104.js";
16
+ import { hideOthers as B } from "./index110.js";
17
+ import J from "./index111.js";
18
18
  import { jsx as p } from "react/jsx-runtime";
19
19
  var C = "Popover", [b, _o] = G(C, [
20
20
  _
package/dist/index86.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { a as pe } from "./index108.js";
2
+ import { a as pe } from "./index115.js";
3
3
  import { Root as ge, Portal as he, Overlay as be, Content as Ee } from "./index49.js";
4
4
  import * as n from "react";
5
- import { Primitive as I } from "./index96.js";
6
- import { useId as K } from "./index99.js";
5
+ import { Primitive as I } from "./index95.js";
6
+ import { useId as K } from "./index100.js";
7
7
  import { composeRefs as q } from "./index89.js";
8
8
  var $ = '[cmdk-group=""]', X = '[cmdk-group-items=""]', ye = '[cmdk-group-heading=""]', oe = '[cmdk-item=""]', ie = `${oe}:not([aria-disabled="true"])`, Y = "cmdk-item-select", D = "data-value", Ce = (t, a, r) => pe(t, a, r), ce = n.createContext(void 0), O = () => n.useContext(ce), de = n.createContext(void 0), Z = () => n.useContext(de), se = n.createContext(void 0), fe = n.forwardRef((t, a) => {
9
9
  let r = F(() => {
package/dist/index87.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import * as u from "react";
3
- import { composeEventHandlers as m } from "./index91.js";
3
+ import { composeEventHandlers as m } from "./index90.js";
4
4
  import { composeRefs as K } from "./index89.js";
5
- import { createContextScope as U } from "./index90.js";
5
+ import { createContextScope as U } from "./index91.js";
6
6
  import { useControllableState as g } from "./index92.js";
7
- import { Primitive as B } from "./index96.js";
8
- import { createMenuScope as D, Root as F, Portal as H, Anchor as W, Content as $, Group as j, Label as X, Item as q, CheckboxItem as z, RadioGroup as J, RadioItem as Q, ItemIndicator as V, Separator as Y, Sub as Z, SubTrigger as oo, SubContent as eo, Arrow as ro } from "./index116.js";
9
- import { useId as v } from "./index99.js";
7
+ import { Primitive as B } from "./index95.js";
8
+ import { createMenuScope as D, Root as F, Portal as H, Anchor as W, Content as $, Group as j, Label as X, Item as q, CheckboxItem as z, RadioGroup as J, RadioItem as Q, ItemIndicator as V, Separator as Y, Sub as Z, SubTrigger as oo, SubContent as eo, Arrow as ro } from "./index112.js";
9
+ import { useId as v } from "./index100.js";
10
10
  import { jsx as t } from "react/jsx-runtime";
11
11
  var f = "DropdownMenu", [no, xo] = U(
12
12
  f,
package/dist/index88.js CHANGED
@@ -1,4 +1,4 @@
1
- import c from "./index117.js";
1
+ import c from "./index121.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
package/dist/index90.js CHANGED
@@ -1,70 +1,9 @@
1
- import * as u from "react";
2
- import { jsx as h } from "react/jsx-runtime";
3
- function w(e, c) {
4
- const o = u.createContext(c), a = (r) => {
5
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
- return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
7
5
  };
8
- a.displayName = e + "Provider";
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return [a, i];
16
- }
17
- function _(e, c = []) {
18
- let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- const p = (d) => {
23
- var S;
24
- const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
- return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
26
- };
27
- p.displayName = r + "Provider";
28
- function f(d, x) {
29
- var v;
30
- const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
31
- if (m) return m;
32
- if (t !== void 0) return t;
33
- throw new Error(`\`${d}\` must be used within \`${r}\``);
34
- }
35
- return [p, f];
36
- }
37
- const i = () => {
38
- const r = o.map((t) => u.createContext(t));
39
- return function(n) {
40
- const s = (n == null ? void 0 : n[e]) || r;
41
- return u.useMemo(
42
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
- [n, s]
44
- );
45
- };
46
- };
47
- return i.scopeName = e, [a, l(i, ...c)];
48
- }
49
- function l(...e) {
50
- const c = e[0];
51
- if (e.length === 1) return c;
52
- const o = () => {
53
- const a = e.map((i) => ({
54
- useScope: i(),
55
- scopeName: i.scopeName
56
- }));
57
- return function(r) {
58
- const t = a.reduce((n, { useScope: s, scopeName: p }) => {
59
- const d = s(r)[`__scope${p}`];
60
- return { ...n, ...d };
61
- }, {});
62
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
- };
64
- };
65
- return o.scopeName = c.scopeName, o;
66
6
  }
67
7
  export {
68
- w as createContext,
69
- _ as createContextScope
8
+ h as composeEventHandlers
70
9
  };
package/dist/index91.js CHANGED
@@ -1,9 +1,70 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
1
+ import * as u from "react";
2
+ import { jsx as h } from "react/jsx-runtime";
3
+ function w(e, c) {
4
+ const o = u.createContext(c), a = (r) => {
5
+ const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
+ return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
5
7
  };
8
+ a.displayName = e + "Provider";
9
+ function i(r) {
10
+ const t = u.useContext(o);
11
+ if (t) return t;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${r}\` must be used within \`${e}\``);
14
+ }
15
+ return [a, i];
16
+ }
17
+ function _(e, c = []) {
18
+ let o = [];
19
+ function a(r, t) {
20
+ const n = u.createContext(t), s = o.length;
21
+ o = [...o, t];
22
+ const p = (d) => {
23
+ var S;
24
+ const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
+ return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
26
+ };
27
+ p.displayName = r + "Provider";
28
+ function f(d, x) {
29
+ var v;
30
+ const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
31
+ if (m) return m;
32
+ if (t !== void 0) return t;
33
+ throw new Error(`\`${d}\` must be used within \`${r}\``);
34
+ }
35
+ return [p, f];
36
+ }
37
+ const i = () => {
38
+ const r = o.map((t) => u.createContext(t));
39
+ return function(n) {
40
+ const s = (n == null ? void 0 : n[e]) || r;
41
+ return u.useMemo(
42
+ () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
+ [n, s]
44
+ );
45
+ };
46
+ };
47
+ return i.scopeName = e, [a, l(i, ...c)];
48
+ }
49
+ function l(...e) {
50
+ const c = e[0];
51
+ if (e.length === 1) return c;
52
+ const o = () => {
53
+ const a = e.map((i) => ({
54
+ useScope: i(),
55
+ scopeName: i.scopeName
56
+ }));
57
+ return function(r) {
58
+ const t = a.reduce((n, { useScope: s, scopeName: p }) => {
59
+ const d = s(r)[`__scope${p}`];
60
+ return { ...n, ...d };
61
+ }, {});
62
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
+ };
64
+ };
65
+ return o.scopeName = c.scopeName, o;
6
66
  }
7
67
  export {
8
- h as composeEventHandlers
68
+ w as createContext,
69
+ _ as createContextScope
9
70
  };
package/dist/index92.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as n from "react";
2
- import { useLayoutEffect as v } from "./index110.js";
2
+ import { useLayoutEffect as v } from "./index109.js";
3
3
  var E = n[" useInsertionEffect ".trim().toString()] || v;
4
4
  function y({
5
5
  prop: t,
package/dist/index94.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as h from "react";
2
- import { useLayoutEffect as z } from "./index110.js";
2
+ import { useLayoutEffect as z } from "./index109.js";
3
3
  function c(r) {
4
4
  const [d, e] = h.useState(void 0);
5
5
  return z(() => {
package/dist/index95.js CHANGED
@@ -1,72 +1,36 @@
1
- "use client";
2
- import * as a from "react";
3
- import { useComposedRefs as E } from "./index89.js";
4
- import { useLayoutEffect as A } from "./index110.js";
5
- function T(n, e) {
6
- return a.useReducer((r, t) => e[r][t] ?? r, n);
7
- }
8
- var R = (n) => {
9
- const { present: e, children: r } = n, t = v(e), i = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = E(t.ref, P(i));
10
- return typeof r == "function" || t.isPresent ? a.cloneElement(i, { ref: c }) : null;
11
- };
12
- R.displayName = "Presence";
13
- function v(n) {
14
- const [e, r] = a.useState(), t = a.useRef(null), i = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
15
- mounted: {
16
- UNMOUNT: "unmounted",
17
- ANIMATION_OUT: "unmountSuspended"
18
- },
19
- unmountSuspended: {
20
- MOUNT: "mounted",
21
- ANIMATION_END: "unmounted"
22
- },
23
- unmounted: {
24
- MOUNT: "mounted"
25
- }
1
+ import * as f from "react";
2
+ import * as p from "react-dom";
3
+ import { createSlot as c } from "./index40.js";
4
+ import { jsx as l } from "react/jsx-runtime";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], h = u.reduce((t, i) => {
24
+ const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
+ const { asChild: s, ...a } = e, n = s ? o : i;
26
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
26
27
  });
27
- return a.useEffect(() => {
28
- const o = l(t.current);
29
- c.current = N === "mounted" ? o : "none";
30
- }, [N]), A(() => {
31
- const o = t.current, m = i.current;
32
- if (m !== n) {
33
- const f = c.current, u = l(o);
34
- n ? s("MOUNT") : u === "none" || (o == null ? void 0 : o.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
35
- }
36
- }, [n, s]), A(() => {
37
- if (e) {
38
- let o;
39
- const m = e.ownerDocument.defaultView ?? window, d = (u) => {
40
- const g = l(t.current).includes(CSS.escape(u.animationName));
41
- if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
42
- const O = e.style.animationFillMode;
43
- e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
44
- e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
45
- });
46
- }
47
- }, f = (u) => {
48
- u.target === e && (c.current = l(t.current));
49
- };
50
- return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
51
- m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
52
- };
53
- } else
54
- s("ANIMATION_END");
55
- }, [e, s]), {
56
- isPresent: ["mounted", "unmountSuspended"].includes(N),
57
- ref: a.useCallback((o) => {
58
- t.current = o ? getComputedStyle(o) : null, r(o);
59
- }, [])
60
- };
61
- }
62
- function l(n) {
63
- return (n == null ? void 0 : n.animationName) || "none";
64
- }
65
- function P(n) {
66
- var t, i;
67
- let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
68
- return r ? n.ref : (e = (i = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : i.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ function w(t, i) {
31
+ t && p.flushSync(() => t.dispatchEvent(i));
69
32
  }
70
33
  export {
71
- R as Presence
34
+ h as Primitive,
35
+ w as dispatchDiscreteCustomEvent
72
36
  };