@boxcustodia/library 0.2.3 → 0.2.4

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 (248) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.es101.js +2 -2
  3. package/dist/index.es104.js +9 -4
  4. package/dist/index.es105.js +4 -14
  5. package/dist/index.es106.js +14 -5
  6. package/dist/index.es107.js +4 -56
  7. package/dist/index.es108.js +55 -222
  8. package/dist/index.es109.js +224 -11
  9. package/dist/index.es110.js +4 -4
  10. package/dist/index.es111.js +11 -41
  11. package/dist/index.es112.js +41 -11
  12. package/dist/index.es113.js +21 -33
  13. package/dist/index.es114.js +12 -21
  14. package/dist/index.es115.js +4 -5
  15. package/dist/index.es116.js +4 -3
  16. package/dist/index.es117.js +4 -5
  17. package/dist/index.es118.js +14 -14
  18. package/dist/index.es119.js +813 -55
  19. package/dist/index.es120.js +9 -822
  20. package/dist/index.es121.js +5 -3
  21. package/dist/index.es122.js +4 -11
  22. package/dist/index.es123.js +64 -4
  23. package/dist/index.es124.js +33 -13
  24. package/dist/index.es125.js +13 -33
  25. package/dist/index.es126.js +216 -13
  26. package/dist/index.es127.js +13 -8
  27. package/dist/index.es128.js +7 -215
  28. package/dist/index.es130.js +1 -1
  29. package/dist/index.es131.js +1 -1
  30. package/dist/index.es132.js +12 -9
  31. package/dist/index.es133.js +196 -204
  32. package/dist/index.es134.js +41 -10
  33. package/dist/index.es135.js +9 -12
  34. package/dist/index.es136.js +204 -196
  35. package/dist/index.es137.js +10 -41
  36. package/dist/index.es139.js +1 -1
  37. package/dist/index.es140.js +1 -1
  38. package/dist/index.es141.js +12 -6
  39. package/dist/index.es142.js +5 -63
  40. package/dist/index.es143.js +64 -10
  41. package/dist/index.es144.js +10 -124
  42. package/dist/index.es145.js +116 -126
  43. package/dist/index.es146.js +134 -13
  44. package/dist/index.es147.js +14 -33
  45. package/dist/index.es148.js +32 -14
  46. package/dist/index.es149.js +14 -8
  47. package/dist/index.es15.js +1 -1
  48. package/dist/index.es150.js +9 -50
  49. package/dist/index.es151.js +50 -6
  50. package/dist/index.es152.js +6 -2
  51. package/dist/index.es153.js +2 -44
  52. package/dist/index.es154.js +40 -646
  53. package/dist/index.es155.js +648 -11
  54. package/dist/index.es156.js +5 -5
  55. package/dist/index.es157.js +4 -4
  56. package/dist/index.es158.js +45 -3
  57. package/dist/index.es159.js +7 -45
  58. package/dist/index.es160.js +4 -8
  59. package/dist/index.es162.js +1 -1
  60. package/dist/index.es163.js +6 -118
  61. package/dist/index.es164.js +3 -35
  62. package/dist/index.es165.js +2054 -2
  63. package/dist/index.es166.js +118 -2
  64. package/dist/index.es167.js +33 -6
  65. package/dist/index.es168.js +4 -3
  66. package/dist/index.es169.js +2 -2054
  67. package/dist/index.es176.js +1 -1
  68. package/dist/index.es177.js +1 -1
  69. package/dist/index.es178.js +1 -1
  70. package/dist/index.es181.js +2 -2
  71. package/dist/index.es183.js +1 -1
  72. package/dist/index.es203.js +1 -1
  73. package/dist/index.es22.js +2 -2
  74. package/dist/index.es236.js +176 -19
  75. package/dist/index.es237.js +15 -3
  76. package/dist/index.es238.js +3 -32
  77. package/dist/index.es239.js +32 -12
  78. package/dist/index.es240.js +17 -177
  79. package/dist/index.es242.js +5 -5
  80. package/dist/index.es243.js +16 -18
  81. package/dist/index.es246.js +1 -1
  82. package/dist/index.es247.js +1 -1
  83. package/dist/index.es248.js +3 -3
  84. package/dist/index.es27.js +1 -1
  85. package/dist/index.es275.js +12 -12
  86. package/dist/index.es276.js +2 -2
  87. package/dist/index.es277.js +2 -2
  88. package/dist/index.es278.js +8 -8
  89. package/dist/index.es279.js +2 -2
  90. package/dist/index.es28.js +1 -1
  91. package/dist/index.es283.js +16 -15
  92. package/dist/index.es284.js +8 -3
  93. package/dist/index.es285.js +15 -16
  94. package/dist/index.es286.js +3 -8
  95. package/dist/index.es29.js +3 -3
  96. package/dist/index.es30.js +23 -23
  97. package/dist/index.es32.js +2 -2
  98. package/dist/index.es325.js +1 -1
  99. package/dist/index.es33.js +2 -2
  100. package/dist/index.es335.js +3 -3
  101. package/dist/index.es338.js +1 -1
  102. package/dist/index.es339.js +1 -1
  103. package/dist/index.es34.js +46 -35
  104. package/dist/index.es342.js +2 -2
  105. package/dist/index.es343.js +2 -2
  106. package/dist/index.es35.js +2 -2
  107. package/dist/index.es350.js +2 -29
  108. package/dist/index.es351.js +106 -5
  109. package/dist/index.es352.js +76 -2
  110. package/dist/index.es353.js +36 -107
  111. package/dist/index.es354.js +60 -73
  112. package/dist/index.es355.js +28 -30
  113. package/dist/index.es356.js +63 -61
  114. package/dist/index.es357.js +109 -30
  115. package/dist/index.es358.js +87 -59
  116. package/dist/index.es359.js +40 -110
  117. package/dist/index.es360.js +3 -94
  118. package/dist/index.es361.js +3 -43
  119. package/dist/index.es362.js +2 -2
  120. package/dist/index.es363.js +2 -2
  121. package/dist/index.es364.js +2 -2
  122. package/dist/index.es366.js +2 -2
  123. package/dist/index.es367.js +2 -2
  124. package/dist/index.es368.js +2 -2
  125. package/dist/index.es369.js +241 -4
  126. package/dist/index.es370.js +384 -4
  127. package/dist/index.es371.js +132 -204
  128. package/dist/index.es372.js +103 -334
  129. package/dist/index.es373.js +75 -102
  130. package/dist/index.es374.js +4 -153
  131. package/dist/index.es375.js +4 -142
  132. package/dist/index.es376.js +2 -2
  133. package/dist/index.es377.js +2 -2
  134. package/dist/index.es378.js +2 -2
  135. package/dist/index.es379.js +2 -2
  136. package/dist/index.es38.js +1 -1
  137. package/dist/index.es380.js +29 -2
  138. package/dist/index.es381.js +5 -2
  139. package/dist/index.es39.js +1 -1
  140. package/dist/index.es393.js +1 -1
  141. package/dist/index.es394.js +1 -1
  142. package/dist/index.es404.js +68 -2
  143. package/dist/index.es405.js +31 -47
  144. package/dist/index.es406.js +16 -83
  145. package/dist/index.es407.js +140 -13
  146. package/dist/index.es408.js +113 -340
  147. package/dist/index.es409.js +507 -63
  148. package/dist/index.es41.js +1 -1
  149. package/dist/index.es410.js +126 -10
  150. package/dist/index.es411.js +117 -510
  151. package/dist/index.es412.js +64 -116
  152. package/dist/index.es413.js +10 -125
  153. package/dist/index.es414.js +2 -68
  154. package/dist/index.es415.js +47 -31
  155. package/dist/index.es416.js +83 -16
  156. package/dist/index.es417.js +13 -140
  157. package/dist/index.es418.js +340 -113
  158. package/dist/index.es43.js +1 -1
  159. package/dist/index.es439.js +2 -2
  160. package/dist/index.es44.js +4 -4
  161. package/dist/index.es441.js +275 -3
  162. package/dist/index.es442.js +78 -105
  163. package/dist/index.es443.js +166 -2
  164. package/dist/index.es444.js +3 -2
  165. package/dist/index.es445.js +100 -268
  166. package/dist/index.es446.js +2 -80
  167. package/dist/index.es447.js +2 -166
  168. package/dist/index.es45.js +1 -1
  169. package/dist/index.es46.js +5 -5
  170. package/dist/index.es475.js +1 -1
  171. package/dist/index.es476.js +1 -1
  172. package/dist/index.es49.js +2 -2
  173. package/dist/index.es50.js +1 -1
  174. package/dist/index.es51.js +4 -4
  175. package/dist/index.es54.js +1 -1
  176. package/dist/index.es57.js +3 -3
  177. package/dist/index.es59.js +2 -2
  178. package/dist/index.es61.js +1 -1
  179. package/dist/index.es62.js +1 -1
  180. package/dist/index.es63.js +2 -2
  181. package/dist/index.es64.js +1 -1
  182. package/dist/index.es65.js +3 -3
  183. package/dist/index.es66.js +2 -2
  184. package/dist/index.es67.js +2 -2
  185. package/dist/index.es753.js +5 -5
  186. package/dist/index.es754.js +22 -14
  187. package/dist/index.es755.js +82 -59
  188. package/dist/index.es756.js +14 -22
  189. package/dist/index.es757.js +59 -82
  190. package/dist/index.es769.js +2 -8
  191. package/dist/index.es770.js +2 -56
  192. package/dist/index.es771.js +7 -18
  193. package/dist/index.es772.js +56 -2
  194. package/dist/index.es773.js +19 -2
  195. package/dist/index.es780.js +28 -28
  196. package/dist/index.es782.js +5 -5
  197. package/dist/index.es783.js +13 -17
  198. package/dist/index.es785.js +5 -11
  199. package/dist/index.es786.js +28 -28
  200. package/dist/index.es787.js +5 -5
  201. package/dist/index.es788.js +17 -13
  202. package/dist/index.es789.js +11 -5
  203. package/dist/index.es79.js +1 -1
  204. package/dist/index.es790.js +1 -1
  205. package/dist/index.es796.js +1 -1
  206. package/dist/index.es797.js +1 -1
  207. package/dist/index.es798.js +1 -1
  208. package/dist/index.es799.js +1 -1
  209. package/dist/index.es80.js +1 -1
  210. package/dist/index.es801.js +1 -1
  211. package/dist/index.es805.js +8 -10
  212. package/dist/index.es806.js +9 -7
  213. package/dist/index.es807.js +1 -1
  214. package/dist/index.es808.js +10 -8
  215. package/dist/index.es809.js +7 -9
  216. package/dist/index.es810.js +5 -5
  217. package/dist/index.es811.js +2 -2
  218. package/dist/index.es812.js +1 -1
  219. package/dist/index.es814.js +2 -2
  220. package/dist/index.es822.js +1 -1
  221. package/dist/index.es824.js +25 -38
  222. package/dist/index.es825.js +38 -25
  223. package/dist/index.es826.js +15 -64
  224. package/dist/index.es827.js +7 -11
  225. package/dist/index.es828.js +61 -38
  226. package/dist/index.es829.js +7 -54
  227. package/dist/index.es830.js +40 -16
  228. package/dist/index.es831.js +57 -17
  229. package/dist/index.es832.js +20 -7
  230. package/dist/index.es833.js +1 -1
  231. package/dist/index.es84.js +305 -33
  232. package/dist/index.es85.js +12 -46
  233. package/dist/index.es86.js +34 -29
  234. package/dist/index.es87.js +42 -26
  235. package/dist/index.es88.js +27 -304
  236. package/dist/index.es89.js +30 -12
  237. package/dist/index.es90.js +55 -9
  238. package/dist/index.es91.js +52 -52
  239. package/dist/index.es92.js +92 -55
  240. package/dist/index.es93.js +34 -87
  241. package/dist/index.es94.js +23 -36
  242. package/dist/index.es95.js +24 -18
  243. package/dist/index.es96.js +257 -28
  244. package/dist/index.es97.js +5 -5
  245. package/dist/index.es98.js +32 -258
  246. package/dist/index.es99.js +5 -5
  247. package/dist/style.css +8 -8
  248. package/package.json +1 -1
@@ -1,32 +1,261 @@
1
- import { j as o } from "./index.es83.js";
2
- import { useMemo as c } from "react";
3
- import { setYear as d } from "./index.es232.js";
4
- import { Button as f } from "./index.es28.js";
5
- import { formatDate as a } from "./index.es107.js";
6
- import { eachYearOfInterval as p } from "./index.es195.js";
7
- import { startOfDecade as u } from "./index.es233.js";
8
- import { endOfDecade as y } from "./index.es196.js";
9
- const l = ({ value: r, onChange: s }) => {
10
- const i = () => p({
11
- start: u(r),
12
- end: y(r)
13
- }), m = (t) => {
14
- const e = d(r, parseInt(a(t, "yyyy")));
15
- s(e);
16
- }, n = c(i, [r]);
17
- return /* @__PURE__ */ o.jsx("div", { className: "ui-grid ui-grid-cols-3 ui-grow", children: n.map((t, e) => /* @__PURE__ */ o.jsx(
18
- f,
1
+ import * as s from "react";
2
+ import { composeEventHandlers as p } from "./index.es142.js";
3
+ import { useComposedRefs as C } from "./index.es135.js";
4
+ import { createContextScope as B, createContext as H } from "./index.es143.js";
5
+ import { useId as x } from "./index.es144.js";
6
+ import { useControllableState as V } from "./index.es89.js";
7
+ import { DismissableLayer as q } from "./index.es145.js";
8
+ import { FocusScope as K } from "./index.es146.js";
9
+ import { Portal as U } from "./index.es147.js";
10
+ import { Presence as R } from "./index.es123.js";
11
+ import { Primitive as m } from "./index.es148.js";
12
+ import { useFocusGuards as Y } from "./index.es149.js";
13
+ import Z from "./index.es150.js";
14
+ import { hideOthers as z } from "./index.es151.js";
15
+ import { Slot as J } from "./index.es87.js";
16
+ import { j as i } from "./index.es83.js";
17
+ var _ = "Dialog", [P, _e] = B(_), [Q, u] = P(_), y = (e) => {
18
+ const {
19
+ __scopeDialog: o,
20
+ children: n,
21
+ open: a,
22
+ defaultOpen: r,
23
+ onOpenChange: t,
24
+ modal: c = !0
25
+ } = e, l = s.useRef(null), d = s.useRef(null), [g = !1, v] = V({
26
+ prop: a,
27
+ defaultProp: r,
28
+ onChange: t
29
+ });
30
+ return /* @__PURE__ */ i.jsx(
31
+ Q,
19
32
  {
20
- onClick: () => m(t),
21
- className: "ui-h-full ui-rounded-none",
22
- type: "button",
23
- variant: "ghost",
24
- children: a(t, "yyyy")
25
- },
26
- e
27
- )) });
33
+ scope: o,
34
+ triggerRef: l,
35
+ contentRef: d,
36
+ contentId: x(),
37
+ titleId: x(),
38
+ descriptionId: x(),
39
+ open: g,
40
+ onOpenChange: v,
41
+ onOpenToggle: s.useCallback(() => v(($) => !$), [v]),
42
+ modal: c,
43
+ children: n
44
+ }
45
+ );
28
46
  };
29
- l.displayName = "DecadeView";
47
+ y.displayName = _;
48
+ var I = "DialogTrigger", O = s.forwardRef(
49
+ (e, o) => {
50
+ const { __scopeDialog: n, ...a } = e, r = u(I, n), t = C(o, r.triggerRef);
51
+ return /* @__PURE__ */ i.jsx(
52
+ m.button,
53
+ {
54
+ type: "button",
55
+ "aria-haspopup": "dialog",
56
+ "aria-expanded": r.open,
57
+ "aria-controls": r.contentId,
58
+ "data-state": N(r.open),
59
+ ...a,
60
+ ref: t,
61
+ onClick: p(e.onClick, r.onOpenToggle)
62
+ }
63
+ );
64
+ }
65
+ );
66
+ O.displayName = I;
67
+ var h = "DialogPortal", [X, A] = P(h, {
68
+ forceMount: void 0
69
+ }), j = (e) => {
70
+ const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(h, o);
71
+ return /* @__PURE__ */ i.jsx(X, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i.jsx(R, { present: n || t.open, children: /* @__PURE__ */ i.jsx(U, { asChild: !0, container: r, children: c }) })) });
72
+ };
73
+ j.displayName = h;
74
+ var D = "DialogOverlay", T = s.forwardRef(
75
+ (e, o) => {
76
+ const n = A(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
77
+ return t.modal ? /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: /* @__PURE__ */ i.jsx(ee, { ...r, ref: o }) }) : null;
78
+ }
79
+ );
80
+ T.displayName = D;
81
+ var ee = s.forwardRef(
82
+ (e, o) => {
83
+ const { __scopeDialog: n, ...a } = e, r = u(D, n);
84
+ return (
85
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
86
+ // ie. when `Overlay` and `Content` are siblings
87
+ /* @__PURE__ */ i.jsx(Z, { as: J, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i.jsx(
88
+ m.div,
89
+ {
90
+ "data-state": N(r.open),
91
+ ...a,
92
+ ref: o,
93
+ style: { pointerEvents: "auto", ...a.style }
94
+ }
95
+ ) })
96
+ );
97
+ }
98
+ ), f = "DialogContent", b = s.forwardRef(
99
+ (e, o) => {
100
+ const n = A(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
101
+ return /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i.jsx(te, { ...r, ref: o }) : /* @__PURE__ */ i.jsx(oe, { ...r, ref: o }) });
102
+ }
103
+ );
104
+ b.displayName = f;
105
+ var te = s.forwardRef(
106
+ (e, o) => {
107
+ const n = u(f, e.__scopeDialog), a = s.useRef(null), r = C(o, n.contentRef, a);
108
+ return s.useEffect(() => {
109
+ const t = a.current;
110
+ if (t) return z(t);
111
+ }, []), /* @__PURE__ */ i.jsx(
112
+ M,
113
+ {
114
+ ...e,
115
+ ref: r,
116
+ trapFocus: n.open,
117
+ disableOutsidePointerEvents: !0,
118
+ onCloseAutoFocus: p(e.onCloseAutoFocus, (t) => {
119
+ var c;
120
+ t.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
121
+ }),
122
+ onPointerDownOutside: p(e.onPointerDownOutside, (t) => {
123
+ const c = t.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
124
+ (c.button === 2 || l) && t.preventDefault();
125
+ }),
126
+ onFocusOutside: p(
127
+ e.onFocusOutside,
128
+ (t) => t.preventDefault()
129
+ )
130
+ }
131
+ );
132
+ }
133
+ ), oe = s.forwardRef(
134
+ (e, o) => {
135
+ const n = u(f, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
136
+ return /* @__PURE__ */ i.jsx(
137
+ M,
138
+ {
139
+ ...e,
140
+ ref: o,
141
+ trapFocus: !1,
142
+ disableOutsidePointerEvents: !1,
143
+ onCloseAutoFocus: (t) => {
144
+ var c, l;
145
+ (c = e.onCloseAutoFocus) == null || c.call(e, t), t.defaultPrevented || (a.current || (l = n.triggerRef.current) == null || l.focus(), t.preventDefault()), a.current = !1, r.current = !1;
146
+ },
147
+ onInteractOutside: (t) => {
148
+ var d, g;
149
+ (d = e.onInteractOutside) == null || d.call(e, t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
150
+ const c = t.target;
151
+ ((g = n.triggerRef.current) == null ? void 0 : g.contains(c)) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
152
+ }
153
+ }
154
+ );
155
+ }
156
+ ), M = s.forwardRef(
157
+ (e, o) => {
158
+ const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = C(o, d);
159
+ return Y(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
160
+ /* @__PURE__ */ i.jsx(
161
+ K,
162
+ {
163
+ asChild: !0,
164
+ loop: !0,
165
+ trapped: a,
166
+ onMountAutoFocus: r,
167
+ onUnmountAutoFocus: t,
168
+ children: /* @__PURE__ */ i.jsx(
169
+ q,
170
+ {
171
+ role: "dialog",
172
+ id: l.contentId,
173
+ "aria-describedby": l.descriptionId,
174
+ "aria-labelledby": l.titleId,
175
+ "data-state": N(l.open),
176
+ ...c,
177
+ ref: g,
178
+ onDismiss: () => l.onOpenChange(!1)
179
+ }
180
+ )
181
+ }
182
+ ),
183
+ /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
184
+ /* @__PURE__ */ i.jsx(re, { titleId: l.titleId }),
185
+ /* @__PURE__ */ i.jsx(ae, { contentRef: d, descriptionId: l.descriptionId })
186
+ ] })
187
+ ] });
188
+ }
189
+ ), E = "DialogTitle", w = s.forwardRef(
190
+ (e, o) => {
191
+ const { __scopeDialog: n, ...a } = e, r = u(E, n);
192
+ return /* @__PURE__ */ i.jsx(m.h2, { id: r.titleId, ...a, ref: o });
193
+ }
194
+ );
195
+ w.displayName = E;
196
+ var F = "DialogDescription", S = s.forwardRef(
197
+ (e, o) => {
198
+ const { __scopeDialog: n, ...a } = e, r = u(F, n);
199
+ return /* @__PURE__ */ i.jsx(m.p, { id: r.descriptionId, ...a, ref: o });
200
+ }
201
+ );
202
+ S.displayName = F;
203
+ var W = "DialogClose", k = s.forwardRef(
204
+ (e, o) => {
205
+ const { __scopeDialog: n, ...a } = e, r = u(W, n);
206
+ return /* @__PURE__ */ i.jsx(
207
+ m.button,
208
+ {
209
+ type: "button",
210
+ ...a,
211
+ ref: o,
212
+ onClick: p(e.onClick, () => r.onOpenChange(!1))
213
+ }
214
+ );
215
+ }
216
+ );
217
+ k.displayName = W;
218
+ function N(e) {
219
+ return e ? "open" : "closed";
220
+ }
221
+ var G = "DialogTitleWarning", [he, L] = H(G, {
222
+ contentName: f,
223
+ titleName: E,
224
+ docsSlug: "dialog"
225
+ }), re = ({ titleId: e }) => {
226
+ const o = L(G), n = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
227
+
228
+ If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
229
+
230
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
231
+ return s.useEffect(() => {
232
+ e && (document.getElementById(e) || console.error(n));
233
+ }, [n, e]), null;
234
+ }, ne = "DialogDescriptionWarning", ae = ({ contentRef: e, descriptionId: o }) => {
235
+ const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(ne).contentName}}.`;
236
+ return s.useEffect(() => {
237
+ var t;
238
+ const r = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
239
+ o && r && (document.getElementById(o) || console.warn(a));
240
+ }, [a, e, o]), null;
241
+ }, Ee = y, Ne = O, Pe = j, ye = T, Ie = b, Oe = w, Ae = S, je = k;
30
242
  export {
31
- l as DecadeView
243
+ je as Close,
244
+ Ie as Content,
245
+ Ae as Description,
246
+ y as Dialog,
247
+ k as DialogClose,
248
+ b as DialogContent,
249
+ S as DialogDescription,
250
+ T as DialogOverlay,
251
+ j as DialogPortal,
252
+ w as DialogTitle,
253
+ O as DialogTrigger,
254
+ ye as Overlay,
255
+ Pe as Portal,
256
+ Ee as Root,
257
+ Oe as Title,
258
+ Ne as Trigger,
259
+ he as WarningProvider,
260
+ _e as createDialogScope
32
261
  };
@@ -1,14 +1,14 @@
1
- import e from "./index.es236.js";
1
+ import e from "./index.es237.js";
2
2
  /**
3
3
  * @license lucide-react v0.379.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
7
  */
8
- const t = e("ChevronsUpDown", [
9
- ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
10
- ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
8
+ const a = e("X", [
9
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
10
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
11
11
  ]);
12
12
  export {
13
- t as default
13
+ a as default
14
14
  };
@@ -1,261 +1,35 @@
1
- import * as s from "react";
2
- import { composeEventHandlers as p } from "./index.es141.js";
3
- import { useComposedRefs as C } from "./index.es132.js";
4
- import { createContextScope as B, createContext as H } from "./index.es142.js";
5
- import { useId as x } from "./index.es143.js";
6
- import { useControllableState as V } from "./index.es87.js";
7
- import { DismissableLayer as q } from "./index.es144.js";
8
- import { FocusScope as K } from "./index.es145.js";
9
- import { Portal as U } from "./index.es146.js";
10
- import { Presence as R } from "./index.es119.js";
11
- import { Primitive as m } from "./index.es147.js";
12
- import { useFocusGuards as Y } from "./index.es148.js";
13
- import Z from "./index.es149.js";
14
- import { hideOthers as z } from "./index.es150.js";
15
- import { Slot as J } from "./index.es85.js";
16
- import { j as i } from "./index.es83.js";
17
- var _ = "Dialog", [P, _e] = B(_), [Q, u] = P(_), y = (e) => {
18
- const {
19
- __scopeDialog: o,
20
- children: n,
21
- open: a,
22
- defaultOpen: r,
23
- onOpenChange: t,
24
- modal: c = !0
25
- } = e, l = s.useRef(null), d = s.useRef(null), [g = !1, v] = V({
26
- prop: a,
27
- defaultProp: r,
28
- onChange: t
29
- });
30
- return /* @__PURE__ */ i.jsx(
31
- Q,
32
- {
33
- scope: o,
34
- triggerRef: l,
35
- contentRef: d,
36
- contentId: x(),
37
- titleId: x(),
38
- descriptionId: x(),
39
- open: g,
40
- onOpenChange: v,
41
- onOpenToggle: s.useCallback(() => v(($) => !$), [v]),
42
- modal: c,
43
- children: n
44
- }
45
- );
1
+ import { clsx as O } from "./index.es141.js";
2
+ const m = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
+ var r;
4
+ if ((l == null ? void 0 : l.variants) == null) return y(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
5
+ const { variants: o, defaultVariants: d } = l, N = Object.keys(o).map((t) => {
6
+ const a = n == null ? void 0 : n[t], u = d == null ? void 0 : d[t];
7
+ if (a === null) return null;
8
+ const i = m(a) || m(u);
9
+ return o[t][i];
10
+ }), v = n && Object.entries(n).reduce((t, a) => {
11
+ let [u, i] = a;
12
+ return i === void 0 || (t[u] = i), t;
13
+ }, {}), V = l == null || (r = l.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((t, a) => {
14
+ let { class: u, className: i, ...f } = a;
15
+ return Object.entries(f).every((C) => {
16
+ let [c, s] = C;
17
+ return Array.isArray(s) ? s.includes({
18
+ ...d,
19
+ ...v
20
+ }[c]) : {
21
+ ...d,
22
+ ...v
23
+ }[c] === s;
24
+ }) ? [
25
+ ...t,
26
+ u,
27
+ i
28
+ ] : t;
29
+ }, []);
30
+ return y(e, N, V, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
46
31
  };
47
- y.displayName = _;
48
- var I = "DialogTrigger", O = s.forwardRef(
49
- (e, o) => {
50
- const { __scopeDialog: n, ...a } = e, r = u(I, n), t = C(o, r.triggerRef);
51
- return /* @__PURE__ */ i.jsx(
52
- m.button,
53
- {
54
- type: "button",
55
- "aria-haspopup": "dialog",
56
- "aria-expanded": r.open,
57
- "aria-controls": r.contentId,
58
- "data-state": N(r.open),
59
- ...a,
60
- ref: t,
61
- onClick: p(e.onClick, r.onOpenToggle)
62
- }
63
- );
64
- }
65
- );
66
- O.displayName = I;
67
- var h = "DialogPortal", [X, A] = P(h, {
68
- forceMount: void 0
69
- }), j = (e) => {
70
- const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(h, o);
71
- return /* @__PURE__ */ i.jsx(X, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i.jsx(R, { present: n || t.open, children: /* @__PURE__ */ i.jsx(U, { asChild: !0, container: r, children: c }) })) });
72
- };
73
- j.displayName = h;
74
- var D = "DialogOverlay", T = s.forwardRef(
75
- (e, o) => {
76
- const n = A(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
77
- return t.modal ? /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: /* @__PURE__ */ i.jsx(ee, { ...r, ref: o }) }) : null;
78
- }
79
- );
80
- T.displayName = D;
81
- var ee = s.forwardRef(
82
- (e, o) => {
83
- const { __scopeDialog: n, ...a } = e, r = u(D, n);
84
- return (
85
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
86
- // ie. when `Overlay` and `Content` are siblings
87
- /* @__PURE__ */ i.jsx(Z, { as: J, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i.jsx(
88
- m.div,
89
- {
90
- "data-state": N(r.open),
91
- ...a,
92
- ref: o,
93
- style: { pointerEvents: "auto", ...a.style }
94
- }
95
- ) })
96
- );
97
- }
98
- ), f = "DialogContent", b = s.forwardRef(
99
- (e, o) => {
100
- const n = A(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
101
- return /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i.jsx(te, { ...r, ref: o }) : /* @__PURE__ */ i.jsx(oe, { ...r, ref: o }) });
102
- }
103
- );
104
- b.displayName = f;
105
- var te = s.forwardRef(
106
- (e, o) => {
107
- const n = u(f, e.__scopeDialog), a = s.useRef(null), r = C(o, n.contentRef, a);
108
- return s.useEffect(() => {
109
- const t = a.current;
110
- if (t) return z(t);
111
- }, []), /* @__PURE__ */ i.jsx(
112
- M,
113
- {
114
- ...e,
115
- ref: r,
116
- trapFocus: n.open,
117
- disableOutsidePointerEvents: !0,
118
- onCloseAutoFocus: p(e.onCloseAutoFocus, (t) => {
119
- var c;
120
- t.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
121
- }),
122
- onPointerDownOutside: p(e.onPointerDownOutside, (t) => {
123
- const c = t.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
124
- (c.button === 2 || l) && t.preventDefault();
125
- }),
126
- onFocusOutside: p(
127
- e.onFocusOutside,
128
- (t) => t.preventDefault()
129
- )
130
- }
131
- );
132
- }
133
- ), oe = s.forwardRef(
134
- (e, o) => {
135
- const n = u(f, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
136
- return /* @__PURE__ */ i.jsx(
137
- M,
138
- {
139
- ...e,
140
- ref: o,
141
- trapFocus: !1,
142
- disableOutsidePointerEvents: !1,
143
- onCloseAutoFocus: (t) => {
144
- var c, l;
145
- (c = e.onCloseAutoFocus) == null || c.call(e, t), t.defaultPrevented || (a.current || (l = n.triggerRef.current) == null || l.focus(), t.preventDefault()), a.current = !1, r.current = !1;
146
- },
147
- onInteractOutside: (t) => {
148
- var d, g;
149
- (d = e.onInteractOutside) == null || d.call(e, t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
150
- const c = t.target;
151
- ((g = n.triggerRef.current) == null ? void 0 : g.contains(c)) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
152
- }
153
- }
154
- );
155
- }
156
- ), M = s.forwardRef(
157
- (e, o) => {
158
- const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = C(o, d);
159
- return Y(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
160
- /* @__PURE__ */ i.jsx(
161
- K,
162
- {
163
- asChild: !0,
164
- loop: !0,
165
- trapped: a,
166
- onMountAutoFocus: r,
167
- onUnmountAutoFocus: t,
168
- children: /* @__PURE__ */ i.jsx(
169
- q,
170
- {
171
- role: "dialog",
172
- id: l.contentId,
173
- "aria-describedby": l.descriptionId,
174
- "aria-labelledby": l.titleId,
175
- "data-state": N(l.open),
176
- ...c,
177
- ref: g,
178
- onDismiss: () => l.onOpenChange(!1)
179
- }
180
- )
181
- }
182
- ),
183
- /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
184
- /* @__PURE__ */ i.jsx(re, { titleId: l.titleId }),
185
- /* @__PURE__ */ i.jsx(ae, { contentRef: d, descriptionId: l.descriptionId })
186
- ] })
187
- ] });
188
- }
189
- ), E = "DialogTitle", w = s.forwardRef(
190
- (e, o) => {
191
- const { __scopeDialog: n, ...a } = e, r = u(E, n);
192
- return /* @__PURE__ */ i.jsx(m.h2, { id: r.titleId, ...a, ref: o });
193
- }
194
- );
195
- w.displayName = E;
196
- var F = "DialogDescription", S = s.forwardRef(
197
- (e, o) => {
198
- const { __scopeDialog: n, ...a } = e, r = u(F, n);
199
- return /* @__PURE__ */ i.jsx(m.p, { id: r.descriptionId, ...a, ref: o });
200
- }
201
- );
202
- S.displayName = F;
203
- var W = "DialogClose", k = s.forwardRef(
204
- (e, o) => {
205
- const { __scopeDialog: n, ...a } = e, r = u(W, n);
206
- return /* @__PURE__ */ i.jsx(
207
- m.button,
208
- {
209
- type: "button",
210
- ...a,
211
- ref: o,
212
- onClick: p(e.onClick, () => r.onOpenChange(!1))
213
- }
214
- );
215
- }
216
- );
217
- k.displayName = W;
218
- function N(e) {
219
- return e ? "open" : "closed";
220
- }
221
- var G = "DialogTitleWarning", [he, L] = H(G, {
222
- contentName: f,
223
- titleName: E,
224
- docsSlug: "dialog"
225
- }), re = ({ titleId: e }) => {
226
- const o = L(G), n = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
227
-
228
- If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
229
-
230
- For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
231
- return s.useEffect(() => {
232
- e && (document.getElementById(e) || console.error(n));
233
- }, [n, e]), null;
234
- }, ne = "DialogDescriptionWarning", ae = ({ contentRef: e, descriptionId: o }) => {
235
- const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(ne).contentName}}.`;
236
- return s.useEffect(() => {
237
- var t;
238
- const r = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
239
- o && r && (document.getElementById(o) || console.warn(a));
240
- }, [a, e, o]), null;
241
- }, Ee = y, Ne = O, Pe = j, ye = T, Ie = b, Oe = w, Ae = S, je = k;
242
32
  export {
243
- je as Close,
244
- Ie as Content,
245
- Ae as Description,
246
- y as Dialog,
247
- k as DialogClose,
248
- b as DialogContent,
249
- S as DialogDescription,
250
- T as DialogOverlay,
251
- j as DialogPortal,
252
- w as DialogTitle,
253
- O as DialogTrigger,
254
- ye as Overlay,
255
- Pe as Portal,
256
- Ee as Root,
257
- Oe as Title,
258
- Ne as Trigger,
259
- he as WarningProvider,
260
- _e as createDialogScope
33
+ j as cva,
34
+ y as cx
261
35
  };
@@ -1,14 +1,14 @@
1
- import e from "./index.es236.js";
1
+ import e from "./index.es237.js";
2
2
  /**
3
3
  * @license lucide-react v0.379.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
7
  */
8
- const a = e("X", [
9
- ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
10
- ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
8
+ const t = e("ChevronsUpDown", [
9
+ ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
10
+ ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
11
11
  ]);
12
12
  export {
13
- a as default
13
+ t as default
14
14
  };
package/dist/style.css CHANGED
@@ -566,7 +566,7 @@ video {
566
566
  --muted: #f1f5f9;
567
567
  --muted-foreground: #64748b;
568
568
 
569
- --accent: #eef2ff;
569
+ --accent: #f4f4f5;
570
570
  --accent-foreground: #131415;
571
571
 
572
572
  --error: #ef4444;
@@ -601,7 +601,7 @@ video {
601
601
  --muted: #f1f5f9;
602
602
  --muted-foreground: #64748b;
603
603
 
604
- --accent: #eef2ff;
604
+ --accent: #f4f4f5;
605
605
  --accent-foreground: #131415;
606
606
 
607
607
  --error: #ef4444;
@@ -1032,6 +1032,9 @@ video {
1032
1032
  .ui-w-56 {
1033
1033
  width: 14rem;
1034
1034
  }
1035
+ .ui-w-6 {
1036
+ width: 1.5rem;
1037
+ }
1035
1038
  .ui-w-60 {
1036
1039
  width: 15rem;
1037
1040
  }
@@ -1565,6 +1568,9 @@ video {
1565
1568
  .ui-pt-\[2px\] {
1566
1569
  padding-top: 2px;
1567
1570
  }
1571
+ .ui-pt-px {
1572
+ padding-top: 1px;
1573
+ }
1568
1574
  .ui-text-left {
1569
1575
  text-align: left;
1570
1576
  }
@@ -2028,12 +2034,6 @@ video {
2028
2034
  .data-\[state-in-range\]\:ui-rounded-none[data-state-in-range] {
2029
2035
  border-radius: 0px;
2030
2036
  }
2031
- .data-\[state-mode\=\'multiple\'\]\:ui-rounded-full[data-state-mode='multiple'] {
2032
- border-radius: 9999px;
2033
- }
2034
- .data-\[state-mode\=\'single\'\]\:ui-rounded-full[data-state-mode='single'] {
2035
- border-radius: 9999px;
2036
- }
2037
2037
  .data-\[state-today\]\:ui-rounded-full[data-state-today] {
2038
2038
  border-radius: 9999px;
2039
2039
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxcustodia/library",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",