@datawire-ai/busyfile-design-library 1.30.1 → 1.30.2

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 (316) hide show
  1. package/dist/index.js +164 -15903
  2. package/dist/index10.js +109 -0
  3. package/dist/index100.js +184 -0
  4. package/dist/index101.js +10 -0
  5. package/dist/index102.js +72 -0
  6. package/dist/index103.js +13 -0
  7. package/dist/index104.js +128 -0
  8. package/dist/index105.js +138 -0
  9. package/dist/index106.js +17 -0
  10. package/dist/index107.js +18 -0
  11. package/dist/index108.js +11 -0
  12. package/dist/index109.js +52 -0
  13. package/dist/index11.js +21 -0
  14. package/dist/index110.js +653 -0
  15. package/dist/index111.js +222 -0
  16. package/dist/index112.js +32 -0
  17. package/dist/index113.js +13 -0
  18. package/dist/index114.js +6 -0
  19. package/dist/index115.js +15 -0
  20. package/dist/index116.js +17 -0
  21. package/dist/index117.js +6 -0
  22. package/dist/index118.js +49 -0
  23. package/dist/index119.js +16 -0
  24. package/dist/index12.js +109 -0
  25. package/dist/index120.js +229 -0
  26. package/dist/index121.js +4 -0
  27. package/dist/index122.js +4 -0
  28. package/dist/index123.js +27 -0
  29. package/dist/index124.js +24 -0
  30. package/dist/index125.js +41 -0
  31. package/dist/index126.js +20 -0
  32. package/dist/index127.js +14 -0
  33. package/dist/index128.js +208 -0
  34. package/dist/index129.js +24 -0
  35. package/dist/index13.js +191 -0
  36. package/dist/index130.js +402 -0
  37. package/dist/index131.js +9 -0
  38. package/dist/index132.js +27 -0
  39. package/dist/index133.js +31 -0
  40. package/dist/index134.js +7 -0
  41. package/dist/index135.js +4 -0
  42. package/dist/index136.js +56 -0
  43. package/dist/index137.js +68 -0
  44. package/dist/index138.js +54 -0
  45. package/dist/index139.js +7 -0
  46. package/dist/index14.js +30 -0
  47. package/dist/index140.js +7 -0
  48. package/dist/index141.js +18 -0
  49. package/dist/index142.js +8 -0
  50. package/dist/index143.js +11 -0
  51. package/dist/index144.js +19 -0
  52. package/dist/index145.js +7 -0
  53. package/dist/index146.js +7 -0
  54. package/dist/index147.js +8 -0
  55. package/dist/index148.js +8 -0
  56. package/dist/index149.js +7 -0
  57. package/dist/index15.js +118 -0
  58. package/dist/index150.js +7 -0
  59. package/dist/index151.js +9 -0
  60. package/dist/index152.js +27 -0
  61. package/dist/index153.js +9 -0
  62. package/dist/index154.js +7 -0
  63. package/dist/index155.js +9 -0
  64. package/dist/index156.js +8 -0
  65. package/dist/index157.js +7 -0
  66. package/dist/index158.js +8 -0
  67. package/dist/index159.js +7 -0
  68. package/dist/index16.js +41 -0
  69. package/dist/index160.js +11 -0
  70. package/dist/index161.js +8 -0
  71. package/dist/index162.js +7 -0
  72. package/dist/index163.js +7 -0
  73. package/dist/index164.js +9 -0
  74. package/dist/index165.js +61 -0
  75. package/dist/index166.js +69 -0
  76. package/dist/index167.js +243 -0
  77. package/dist/index168.js +42 -0
  78. package/dist/index169.js +7 -0
  79. package/dist/index17.js +78 -0
  80. package/dist/index170.js +10 -0
  81. package/dist/index171.js +16 -0
  82. package/dist/index172.js +10 -0
  83. package/dist/index173.js +13 -0
  84. package/dist/index174.js +13 -0
  85. package/dist/index175.js +11 -0
  86. package/dist/index176.js +19 -0
  87. package/dist/index177.js +26 -0
  88. package/dist/index178.js +22 -0
  89. package/dist/index179.js +56 -0
  90. package/dist/index18.js +44 -0
  91. package/dist/index180.js +44 -0
  92. package/dist/index181.js +12 -0
  93. package/dist/index182.js +23 -0
  94. package/dist/index183.js +19 -0
  95. package/dist/index184.js +9 -0
  96. package/dist/index185.js +26 -0
  97. package/dist/index186.js +21 -0
  98. package/dist/index187.js +18 -0
  99. package/dist/index188.js +9 -0
  100. package/dist/index189.js +7 -0
  101. package/dist/index19.js +86 -0
  102. package/dist/index190.js +7 -0
  103. package/dist/index191.js +7 -0
  104. package/dist/index192.js +7 -0
  105. package/dist/index193.js +6 -0
  106. package/dist/index194.js +9 -0
  107. package/dist/index195.js +10 -0
  108. package/dist/index196.js +9 -0
  109. package/dist/index197.js +8 -0
  110. package/dist/index198.js +6 -0
  111. package/dist/index199.js +6 -0
  112. package/dist/index20.js +15 -0
  113. package/dist/index200.js +6 -0
  114. package/dist/index201.js +6 -0
  115. package/dist/index202.js +7 -0
  116. package/dist/index203.js +6 -0
  117. package/dist/index204.js +6 -0
  118. package/dist/index205.js +6 -0
  119. package/dist/index206.js +7 -0
  120. package/dist/index207.js +5 -0
  121. package/dist/index208.js +26 -0
  122. package/dist/index209.js +112 -0
  123. package/dist/index21.js +43 -0
  124. package/dist/index210.js +18 -0
  125. package/dist/index211.js +527 -0
  126. package/dist/index212.js +130 -0
  127. package/dist/index213.js +136 -0
  128. package/dist/index214.js +4 -0
  129. package/dist/index215.js +4 -0
  130. package/dist/index216.js +11 -0
  131. package/dist/index217.js +22 -0
  132. package/dist/index218.js +19 -0
  133. package/dist/index219.js +8 -0
  134. package/dist/index22.js +110 -0
  135. package/dist/index220.js +8 -0
  136. package/dist/index221.js +9 -0
  137. package/dist/index222.js +7 -0
  138. package/dist/index223.js +10 -0
  139. package/dist/index224.js +20 -0
  140. package/dist/index225.js +8 -0
  141. package/dist/index226.js +8 -0
  142. package/dist/index227.js +16 -0
  143. package/dist/index228.js +13 -0
  144. package/dist/index229.js +17 -0
  145. package/dist/index23.js +45 -0
  146. package/dist/index230.js +8 -0
  147. package/dist/index231.js +9 -0
  148. package/dist/index232.js +11 -0
  149. package/dist/index233.js +9 -0
  150. package/dist/index234.js +59 -0
  151. package/dist/index235.js +12 -0
  152. package/dist/index236.js +8 -0
  153. package/dist/index237.js +8 -0
  154. package/dist/index238.js +12 -0
  155. package/dist/index239.js +8 -0
  156. package/dist/index24.js +17 -0
  157. package/dist/index240.js +8 -0
  158. package/dist/index241.js +7 -0
  159. package/dist/index242.js +14 -0
  160. package/dist/index243.js +13 -0
  161. package/dist/index244.js +13 -0
  162. package/dist/index245.js +14 -0
  163. package/dist/index246.js +14 -0
  164. package/dist/index247.js +13 -0
  165. package/dist/index248.js +10 -0
  166. package/dist/index249.js +9 -0
  167. package/dist/index25.js +22 -0
  168. package/dist/index250.js +8 -0
  169. package/dist/index251.js +9 -0
  170. package/dist/index252.js +11 -0
  171. package/dist/index253.js +9 -0
  172. package/dist/index254.js +26 -0
  173. package/dist/index255.js +21 -0
  174. package/dist/index256.js +10 -0
  175. package/dist/index257.js +13 -0
  176. package/dist/index258.js +13 -0
  177. package/dist/index259.js +24 -0
  178. package/dist/index26.js +20 -0
  179. package/dist/index260.js +13 -0
  180. package/dist/index261.js +12 -0
  181. package/dist/index262.js +12 -0
  182. package/dist/index263.js +7 -0
  183. package/dist/index264.js +8 -0
  184. package/dist/index265.js +19 -0
  185. package/dist/index266.js +12 -0
  186. package/dist/index267.js +21 -0
  187. package/dist/index268.js +18 -0
  188. package/dist/index269.js +15 -0
  189. package/dist/index27.js +61 -0
  190. package/dist/index270.js +32 -0
  191. package/dist/index271.js +15 -0
  192. package/dist/index272.js +28 -0
  193. package/dist/index273.js +8 -0
  194. package/dist/index274.js +67 -0
  195. package/dist/index275.js +71 -0
  196. package/dist/index276.js +11 -0
  197. package/dist/index277.js +16 -0
  198. package/dist/index278.js +68 -0
  199. package/dist/index279.js +70 -0
  200. package/dist/index28.js +543 -0
  201. package/dist/index280.js +33 -0
  202. package/dist/index281.js +11 -0
  203. package/dist/index282.js +155 -0
  204. package/dist/index283.js +110 -0
  205. package/dist/index284.js +7 -0
  206. package/dist/index285.js +15 -0
  207. package/dist/index286.js +6 -0
  208. package/dist/index287.js +25 -0
  209. package/dist/index288.js +8 -0
  210. package/dist/index289.js +8 -0
  211. package/dist/index29.js +80 -0
  212. package/dist/index290.js +6 -0
  213. package/dist/index291.js +18 -0
  214. package/dist/index292.js +11 -0
  215. package/dist/index293.js +8 -0
  216. package/dist/index294.js +7 -0
  217. package/dist/index295.js +515 -0
  218. package/dist/index296.js +52 -0
  219. package/dist/index297.js +20 -0
  220. package/dist/index298.js +9 -0
  221. package/dist/index299.js +11 -0
  222. package/dist/index3.js +26 -0
  223. package/dist/index30.js +239 -0
  224. package/dist/index300.js +10 -0
  225. package/dist/index301.js +11 -0
  226. package/dist/index302.js +15 -0
  227. package/dist/index303.js +13 -0
  228. package/dist/index304.js +17 -0
  229. package/dist/index305.js +9 -0
  230. package/dist/index306.js +18 -0
  231. package/dist/index307.js +31 -0
  232. package/dist/index308.js +15 -0
  233. package/dist/index309.js +15 -0
  234. package/dist/index31.js +118 -0
  235. package/dist/index310.js +30 -0
  236. package/dist/index311.js +7 -0
  237. package/dist/index312.js +25 -0
  238. package/dist/index313.js +7 -0
  239. package/dist/index314.js +59 -0
  240. package/dist/index32.js +6 -0
  241. package/dist/index33.js +135 -0
  242. package/dist/index34.js +45 -0
  243. package/dist/index35.js +171 -0
  244. package/dist/index36.js +252 -0
  245. package/dist/index37.js +8 -0
  246. package/dist/index38.js +17 -0
  247. package/dist/index39.js +2731 -0
  248. package/dist/index4.js +28 -0
  249. package/dist/index40.js +9 -0
  250. package/dist/index41.js +59 -0
  251. package/dist/index42.js +29 -0
  252. package/dist/index43.js +134 -0
  253. package/dist/index44.js +25 -0
  254. package/dist/index45.js +240 -0
  255. package/dist/index46.js +31 -0
  256. package/dist/index47.js +253 -0
  257. package/dist/index48.js +20 -0
  258. package/dist/index49.js +12 -0
  259. package/dist/index5.js +36 -0
  260. package/dist/index50.js +263 -0
  261. package/dist/index51.js +15 -0
  262. package/dist/index52.js +33 -0
  263. package/dist/index53.js +341 -0
  264. package/dist/index54.js +43 -0
  265. package/dist/index55.js +29 -0
  266. package/dist/index56.js +21 -0
  267. package/dist/index57.js +15 -0
  268. package/dist/index58.js +12 -0
  269. package/dist/index59.js +15 -0
  270. package/dist/index6.js +22 -0
  271. package/dist/index60.js +77 -0
  272. package/dist/index61.js +91 -0
  273. package/dist/index62.js +15 -0
  274. package/dist/index63.js +21 -0
  275. package/dist/index64.js +24 -0
  276. package/dist/index65.js +73 -0
  277. package/dist/index66.js +17 -0
  278. package/dist/index67.js +21 -0
  279. package/dist/index68.js +21 -0
  280. package/dist/index69.js +16 -0
  281. package/dist/index7.js +137 -0
  282. package/dist/index70.js +4 -0
  283. package/dist/index71.js +12 -0
  284. package/dist/index72.js +16 -0
  285. package/dist/index73.js +8 -0
  286. package/dist/index74.js +15 -0
  287. package/dist/index75.js +24 -0
  288. package/dist/index76.js +165 -0
  289. package/dist/index77.js +25 -0
  290. package/dist/index78.js +35 -0
  291. package/dist/index79.js +15 -0
  292. package/dist/index8.js +35 -0
  293. package/dist/index80.js +21 -0
  294. package/dist/index81.js +178 -0
  295. package/dist/index82.js +12 -0
  296. package/dist/index83.js +864 -0
  297. package/dist/index84.js +38 -0
  298. package/dist/index85.js +12 -0
  299. package/dist/index86.js +245 -0
  300. package/dist/index87.js +313 -0
  301. package/dist/index88.js +229 -0
  302. package/dist/index89.js +12 -0
  303. package/dist/index9.js +56 -0
  304. package/dist/index90.js +4 -0
  305. package/dist/index91.js +36 -0
  306. package/dist/index92.js +248 -0
  307. package/dist/index93.js +9 -0
  308. package/dist/index94.js +29 -0
  309. package/dist/index95.js +70 -0
  310. package/dist/index96.js +54 -0
  311. package/dist/index97.js +8 -0
  312. package/dist/index98.js +27 -0
  313. package/dist/index99.js +36 -0
  314. package/dist/style.css +1 -1
  315. package/package.json +2 -1
  316. package/dist/index.umd.cjs +0 -202
@@ -0,0 +1,543 @@
1
+ "use client";
2
+ import { j as t } from "./index40.js";
3
+ import { Root as m } from "./index41.js";
4
+ import { cva as z } from "./index78.js";
5
+ import * as o from "react";
6
+ import { Button as M } from "./index3.js";
7
+ import { cn as r } from "./index37.js";
8
+ import { Skeleton as S } from "./index20.js";
9
+ import { Tooltip as _, TooltipTrigger as C, TooltipContent as E } from "./index53.js";
10
+ import { Divider as I } from "./index16.js";
11
+ import T from "./index79.js";
12
+ const A = "sidebar_state", B = 60 * 60 * 24 * 7, D = "14.375rem", R = "4.5rem", O = "b", j = o.createContext(null);
13
+ function v() {
14
+ const a = o.useContext(j);
15
+ if (!a)
16
+ throw new Error("useSidebar must be used within a SidebarProvider.");
17
+ return a;
18
+ }
19
+ const U = ({
20
+ defaultOpen: a = !0,
21
+ open: e,
22
+ onOpenChange: s,
23
+ className: i,
24
+ style: n,
25
+ children: d,
26
+ ...u
27
+ }) => {
28
+ const [g, b] = o.useState(!1), [f, N] = o.useState(a), p = e ?? f, x = o.useCallback(
29
+ (l) => {
30
+ const c = typeof l == "function" ? l(p) : l;
31
+ s ? s(c) : N(c), document.cookie = `${A}=${c}; path=/; max-age=${B}`;
32
+ },
33
+ [s, p]
34
+ ), h = o.useCallback(() => x((l) => !l), [!1, x, b]);
35
+ o.useEffect(() => {
36
+ const l = (c) => {
37
+ c.key === O && (c.metaKey || c.ctrlKey) && (c.preventDefault(), h());
38
+ };
39
+ return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
40
+ }, [h]);
41
+ const y = p ? "expanded" : "collapsed", k = o.useMemo(
42
+ () => ({
43
+ state: y,
44
+ open: p,
45
+ setOpen: x,
46
+ isMobile: !1,
47
+ openMobile: g,
48
+ setOpenMobile: b,
49
+ toggleSidebar: h
50
+ }),
51
+ [y, p, x, !1, g, b, h]
52
+ );
53
+ return /* @__PURE__ */ t.jsx(j.Provider, { value: k, children: /* @__PURE__ */ t.jsx(
54
+ "div",
55
+ {
56
+ "data-slot": "sidebar-wrapper",
57
+ style: {
58
+ "--sidebar-width": D,
59
+ "--sidebar-width-icon": R,
60
+ ...n
61
+ },
62
+ className: r(
63
+ "group/sidebar-wrapper has-data-[variant=inset]:bg-brand-50 flex min-h-svh w-full",
64
+ i
65
+ ),
66
+ ...u,
67
+ children: d
68
+ }
69
+ ) });
70
+ }, X = ({
71
+ side: a = "left",
72
+ variant: e = "sidebar",
73
+ collapsible: s = "offcanvas",
74
+ className: i,
75
+ children: n,
76
+ ...d
77
+ }) => {
78
+ const { state: u } = v();
79
+ return s === "none" ? /* @__PURE__ */ t.jsx(
80
+ "div",
81
+ {
82
+ "data-slot": "sidebar",
83
+ className: r(
84
+ "bg-brand-50 text-brand-950 flex h-full w-(--sidebar-width) flex-col",
85
+ i
86
+ ),
87
+ ...d,
88
+ children: n
89
+ }
90
+ ) : /* @__PURE__ */ t.jsxs(
91
+ "div",
92
+ {
93
+ className: "text-brand-950 group peer hidden md:block",
94
+ "data-state": u,
95
+ "data-collapsible": u === "collapsed" ? s : "",
96
+ "data-variant": e,
97
+ "data-side": a,
98
+ "data-slot": "sidebar",
99
+ children: [
100
+ /* @__PURE__ */ t.jsx(
101
+ "div",
102
+ {
103
+ "data-slot": "sidebar-gap",
104
+ className: r(
105
+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
106
+ "group-data-[collapsible=offcanvas]:w-0",
107
+ "group-data-[side=right]:rotate-180",
108
+ e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
109
+ )
110
+ }
111
+ ),
112
+ /* @__PURE__ */ t.jsx(
113
+ "div",
114
+ {
115
+ "data-slot": "sidebar-container",
116
+ className: r(
117
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
118
+ a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
119
+ // Adjust the padding for floating and inset variants.
120
+ e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l border-neutral-black-5",
121
+ i
122
+ ),
123
+ ...d,
124
+ children: /* @__PURE__ */ t.jsx(
125
+ "div",
126
+ {
127
+ "data-sidebar": "sidebar",
128
+ "data-slot": "sidebar-inner",
129
+ className: "bg-tag-light-gray group-data-[variant=floating]:border-neutral-black-5 flex h-full w-full flex-col p-4 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-xs",
130
+ children: n
131
+ }
132
+ )
133
+ }
134
+ )
135
+ ]
136
+ }
137
+ );
138
+ }, Y = ({
139
+ className: a,
140
+ onClick: e,
141
+ ...s
142
+ }) => {
143
+ const { toggleSidebar: i } = v();
144
+ return /* @__PURE__ */ t.jsxs(
145
+ M,
146
+ {
147
+ "data-sidebar": "trigger",
148
+ "data-slot": "sidebar-trigger",
149
+ variant: "outline",
150
+ size: "icon",
151
+ className: r("size-8", a),
152
+ onClick: (n) => {
153
+ e == null || e(n), i();
154
+ },
155
+ ...s,
156
+ children: [
157
+ /* @__PURE__ */ t.jsx(T, { className: "text-brand-950 size-6" }),
158
+ /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
159
+ ]
160
+ }
161
+ );
162
+ }, J = ({
163
+ className: a,
164
+ ...e
165
+ }) => {
166
+ const { toggleSidebar: s } = v();
167
+ return /* @__PURE__ */ t.jsx(
168
+ "button",
169
+ {
170
+ type: "button",
171
+ "data-sidebar": "rail",
172
+ "data-slot": "sidebar-rail",
173
+ "aria-label": "Toggle Sidebar",
174
+ tabIndex: -1,
175
+ onClick: s,
176
+ title: "Toggle Sidebar",
177
+ className: r(
178
+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
179
+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
180
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
181
+ "group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
182
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
183
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
184
+ a
185
+ ),
186
+ ...e
187
+ }
188
+ );
189
+ }, Q = ({
190
+ className: a,
191
+ ...e
192
+ }) => /* @__PURE__ */ t.jsx(
193
+ "main",
194
+ {
195
+ "data-slot": "sidebar-inset",
196
+ className: r(
197
+ "bg-background relative flex w-full flex-1 flex-col",
198
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-xs md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",
199
+ a
200
+ ),
201
+ ...e
202
+ }
203
+ ), Z = ({
204
+ className: a,
205
+ ...e
206
+ }) => /* @__PURE__ */ t.jsx(
207
+ "div",
208
+ {
209
+ "data-slot": "sidebar-header",
210
+ "data-sidebar": "header",
211
+ className: r("flex flex-col gap-2", a),
212
+ ...e
213
+ }
214
+ ), ee = ({
215
+ className: a,
216
+ ...e
217
+ }) => /* @__PURE__ */ t.jsx(
218
+ "div",
219
+ {
220
+ "data-slot": "sidebar-footer",
221
+ "data-sidebar": "footer",
222
+ className: r(
223
+ "flex flex-col text-sm gap-2 text-neutral-black-1",
224
+ a
225
+ ),
226
+ ...e
227
+ }
228
+ ), ae = ({
229
+ className: a,
230
+ ...e
231
+ }) => /* @__PURE__ */ t.jsx(
232
+ I,
233
+ {
234
+ "data-slot": "sidebar-separator",
235
+ "data-sidebar": "separator",
236
+ className: r("bg-sidebar-border mx-2 w-auto", a),
237
+ ...e
238
+ }
239
+ ), te = ({
240
+ className: a,
241
+ ...e
242
+ }) => /* @__PURE__ */ t.jsx(
243
+ "div",
244
+ {
245
+ "data-slot": "sidebar-content",
246
+ "data-sidebar": "content",
247
+ className: r(
248
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
249
+ a
250
+ ),
251
+ ...e
252
+ }
253
+ ), re = ({ className: a, ...e }) => /* @__PURE__ */ t.jsx(
254
+ "div",
255
+ {
256
+ "data-slot": "sidebar-group",
257
+ "data-sidebar": "group",
258
+ className: r("relative flex w-full min-w-0 flex-col", a),
259
+ ...e
260
+ }
261
+ ), se = ({
262
+ className: a,
263
+ asChild: e = !1,
264
+ ...s
265
+ }) => {
266
+ const i = e ? m : "div";
267
+ return /* @__PURE__ */ t.jsx(
268
+ i,
269
+ {
270
+ "data-slot": "sidebar-group-label",
271
+ "data-sidebar": "group-label",
272
+ className: r(
273
+ "text-brand-950/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
274
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
275
+ a
276
+ ),
277
+ ...s
278
+ }
279
+ );
280
+ }, ie = ({
281
+ className: a,
282
+ asChild: e = !1,
283
+ ...s
284
+ }) => {
285
+ const i = e ? m : "button";
286
+ return /* @__PURE__ */ t.jsx(
287
+ i,
288
+ {
289
+ "data-slot": "sidebar-group-action",
290
+ "data-sidebar": "group-action",
291
+ className: r(
292
+ "text-brand-950 ring-sidebar-ring hover:bg-sidebar-accent hover:text-secondary-50 absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
293
+ // Increases the hit area of the button on mobile.
294
+ "after:absolute after:-inset-2 md:after:hidden",
295
+ "group-data-[collapsible=icon]:hidden",
296
+ a
297
+ ),
298
+ ...s
299
+ }
300
+ );
301
+ }, ne = ({
302
+ className: a,
303
+ ...e
304
+ }) => /* @__PURE__ */ t.jsx(
305
+ "div",
306
+ {
307
+ "data-slot": "sidebar-group-content",
308
+ "data-sidebar": "group-content",
309
+ className: r("w-full text-sm", a),
310
+ ...e
311
+ }
312
+ ), oe = ({ className: a, ...e }) => /* @__PURE__ */ t.jsx(
313
+ "ul",
314
+ {
315
+ "data-slot": "sidebar-menu",
316
+ "data-sidebar": "menu",
317
+ className: r(
318
+ "flex group-data-[collapsible=icon]:items-center w-full min-w-0 flex-col gap-2",
319
+ a
320
+ ),
321
+ ...e
322
+ }
323
+ ), de = ({
324
+ className: a,
325
+ ...e
326
+ }) => /* @__PURE__ */ t.jsx(
327
+ "li",
328
+ {
329
+ "data-slot": "sidebar-menu-item",
330
+ "data-sidebar": "menu-item",
331
+ className: r("group/menu-item relative justify-center", a),
332
+ ...e
333
+ }
334
+ ), K = z(
335
+ "peer/menu-button flex w-full items-center gap-2 text-neutral-black-1 overflow-hidden rounded-lg py-2.5 px-3 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding,color] duration-300 hover:bg-brand-700 hover:text-secondary-50 focus-visible:ring-2 active:bg-primary-2 active:text-secondary-50 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-primary-2 data-[active=true]:font-normal data-[active=true]:text-primary-1 data-[state=open]:hover:bg-primary-2 data-[state=open]:hover:text-primary-1 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 cursor-pointer",
336
+ {
337
+ variants: {
338
+ variant: {
339
+ default: "hover:bg-primary-2 hover:text-primary-1",
340
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-secondary-50 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
341
+ },
342
+ size: {
343
+ default: "h-8 text-sm",
344
+ sm: "h-7 text-xs",
345
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
346
+ }
347
+ },
348
+ defaultVariants: {
349
+ variant: "default",
350
+ size: "default"
351
+ }
352
+ }
353
+ ), le = ({
354
+ asChild: a = !1,
355
+ isActive: e = !1,
356
+ variant: s = "default",
357
+ size: i = "default",
358
+ tooltip: n,
359
+ className: d,
360
+ ...u
361
+ }) => {
362
+ const w = a ? m : "button", { isMobile: g, state: b } = v(), f = /* @__PURE__ */ t.jsx(
363
+ w,
364
+ {
365
+ "data-slot": "sidebar-menu-button",
366
+ "data-sidebar": "menu-button",
367
+ "data-size": i,
368
+ "data-active": e,
369
+ className: r(K({ variant: s, size: i }), d),
370
+ ...u
371
+ }
372
+ );
373
+ return n ? (typeof n == "string" && (n = {
374
+ children: n
375
+ }), /* @__PURE__ */ t.jsxs(_, { children: [
376
+ /* @__PURE__ */ t.jsx(C, { asChild: !0, children: f }),
377
+ /* @__PURE__ */ t.jsx(
378
+ E,
379
+ {
380
+ side: "right",
381
+ align: "center",
382
+ hidden: b !== "collapsed" || g,
383
+ ...n
384
+ }
385
+ )
386
+ ] })) : f;
387
+ }, ce = ({
388
+ className: a,
389
+ asChild: e = !1,
390
+ showOnHover: s = !1,
391
+ ...i
392
+ }) => {
393
+ const n = e ? m : "button";
394
+ return /* @__PURE__ */ t.jsx(
395
+ n,
396
+ {
397
+ "data-slot": "sidebar-menu-action",
398
+ "data-sidebar": "menu-action",
399
+ className: r(
400
+ "text-brand-950 ring-sidebar-ring hover:bg-sidebar-accent hover:text-secondary-50 peer-hover/menu-button:text-secondary-50 absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
401
+ // Increases the hit area of the button on mobile.
402
+ "after:absolute after:-inset-2 md:after:hidden",
403
+ "peer-data-[size=sm]/menu-button:top-1",
404
+ "peer-data-[size=default]/menu-button:top-1.5",
405
+ "peer-data-[size=lg]/menu-button:top-2.5",
406
+ "group-data-[collapsible=icon]:hidden",
407
+ s && "peer-data-[active=true]/menu-button:text-secondary-50 group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
408
+ a
409
+ ),
410
+ ...i
411
+ }
412
+ );
413
+ }, ue = ({
414
+ className: a,
415
+ ...e
416
+ }) => /* @__PURE__ */ t.jsx(
417
+ "div",
418
+ {
419
+ "data-slot": "sidebar-menu-badge",
420
+ "data-sidebar": "menu-badge",
421
+ className: r(
422
+ "text-brand-950 pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
423
+ "peer-hover/menu-button:text-secondary-50 peer-data-[active=true]/menu-button:text-secondary-50",
424
+ "peer-data-[size=sm]/menu-button:top-1",
425
+ "peer-data-[size=default]/menu-button:top-1.5",
426
+ "peer-data-[size=lg]/menu-button:top-2.5",
427
+ "group-data-[collapsible=icon]:hidden",
428
+ a
429
+ ),
430
+ ...e
431
+ }
432
+ ), be = ({
433
+ className: a,
434
+ showIcon: e = !1,
435
+ ...s
436
+ }) => {
437
+ const i = o.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
438
+ return /* @__PURE__ */ t.jsxs(
439
+ "div",
440
+ {
441
+ "data-slot": "sidebar-menu-skeleton",
442
+ "data-sidebar": "menu-skeleton",
443
+ className: r("flex h-8 items-center gap-2 rounded-md px-2", a),
444
+ ...s,
445
+ children: [
446
+ e && /* @__PURE__ */ t.jsx(
447
+ S,
448
+ {
449
+ className: "size-4 rounded-md",
450
+ "data-sidebar": "menu-skeleton-icon"
451
+ }
452
+ ),
453
+ /* @__PURE__ */ t.jsx(
454
+ S,
455
+ {
456
+ className: "h-4 max-w-(--skeleton-width) flex-1",
457
+ "data-sidebar": "menu-skeleton-text",
458
+ style: {
459
+ "--skeleton-width": i
460
+ }
461
+ }
462
+ )
463
+ ]
464
+ }
465
+ );
466
+ }, pe = ({
467
+ className: a,
468
+ ...e
469
+ }) => /* @__PURE__ */ t.jsx(
470
+ "ul",
471
+ {
472
+ "data-slot": "sidebar-menu-sub",
473
+ "data-sidebar": "menu-sub",
474
+ className: r(
475
+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
476
+ "group-data-[collapsible=icon]:hidden",
477
+ a
478
+ ),
479
+ ...e
480
+ }
481
+ ), me = ({
482
+ className: a,
483
+ ...e
484
+ }) => /* @__PURE__ */ t.jsx(
485
+ "li",
486
+ {
487
+ "data-slot": "sidebar-menu-sub-item",
488
+ "data-sidebar": "menu-sub-item",
489
+ className: r("group/menu-sub-item relative", a),
490
+ ...e
491
+ }
492
+ ), ge = ({
493
+ asChild: a = !1,
494
+ size: e = "md",
495
+ isActive: s = !1,
496
+ className: i,
497
+ ...n
498
+ }) => {
499
+ const d = a ? m : "a";
500
+ return /* @__PURE__ */ t.jsx(
501
+ d,
502
+ {
503
+ "data-slot": "sidebar-menu-sub-button",
504
+ "data-sidebar": "menu-sub-button",
505
+ "data-size": e,
506
+ "data-active": s,
507
+ className: r(
508
+ "text-brand-950 ring-sidebar-ring hover:bg-brand-700 hover:text-secondary-50 active:bg-brand-700 active:text-secondary-50 [&>svg]:text-secondary-50 flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
509
+ "data-[active=true]:bg-brand-700 data-[active=true]:text-secondary-50",
510
+ e === "sm" && "text-xs",
511
+ e === "md" && "text-sm",
512
+ "group-data-[collapsible=icon]:hidden",
513
+ i
514
+ ),
515
+ ...n
516
+ }
517
+ );
518
+ };
519
+ export {
520
+ X as Sidebar,
521
+ te as SidebarContent,
522
+ ee as SidebarFooter,
523
+ re as SidebarGroup,
524
+ ie as SidebarGroupAction,
525
+ ne as SidebarGroupContent,
526
+ se as SidebarGroupLabel,
527
+ Z as SidebarHeader,
528
+ Q as SidebarInset,
529
+ oe as SidebarMenu,
530
+ ce as SidebarMenuAction,
531
+ ue as SidebarMenuBadge,
532
+ le as SidebarMenuButton,
533
+ de as SidebarMenuItem,
534
+ be as SidebarMenuSkeleton,
535
+ pe as SidebarMenuSub,
536
+ ge as SidebarMenuSubButton,
537
+ me as SidebarMenuSubItem,
538
+ U as SidebarProvider,
539
+ J as SidebarRail,
540
+ ae as SidebarSeparator,
541
+ Y as SidebarTrigger,
542
+ v as useSidebar
543
+ };
@@ -0,0 +1,33 @@
1
+ import { buildFormatLongFn as t } from "./index305.js";
2
+ const m = {
3
+ full: "EEEE, MMMM do, y",
4
+ long: "MMMM do, y",
5
+ medium: "MMM d, y",
6
+ short: "MM/dd/yyyy"
7
+ }, a = {
8
+ full: "h:mm:ss a zzzz",
9
+ long: "h:mm:ss a z",
10
+ medium: "h:mm:ss a",
11
+ short: "h:mm a"
12
+ }, o = {
13
+ full: "{{date}} 'at' {{time}}",
14
+ long: "{{date}} 'at' {{time}}",
15
+ medium: "{{date}}, {{time}}",
16
+ short: "{{date}}, {{time}}"
17
+ }, e = {
18
+ date: t({
19
+ formats: m,
20
+ defaultWidth: "full"
21
+ }),
22
+ time: t({
23
+ formats: a,
24
+ defaultWidth: "full"
25
+ }),
26
+ dateTime: t({
27
+ formats: o,
28
+ defaultWidth: "full"
29
+ })
30
+ };
31
+ export {
32
+ e as formatLong
33
+ };
@@ -0,0 +1,11 @@
1
+ const t = {
2
+ lastWeek: "'last' eeee 'at' p",
3
+ yesterday: "'yesterday at' p",
4
+ today: "'today at' p",
5
+ tomorrow: "'tomorrow at' p",
6
+ nextWeek: "eeee 'at' p",
7
+ other: "P"
8
+ }, s = (e, a, o, r) => t[e];
9
+ export {
10
+ s as formatRelative
11
+ };