@giddaa-housing/ui 0.1.0 → 1.0.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 (334) hide show
  1. package/README.md +18 -6
  2. package/css/base.css +37 -0
  3. package/css/components.css +135 -0
  4. package/css/generated/shared.css +1 -0
  5. package/css/giddaa.css +402 -0
  6. package/css/preset.css +77 -0
  7. package/css/styles.css +2 -0
  8. package/css/theme.css +255 -0
  9. package/dist/accordion.js +5 -35
  10. package/dist/accordion.js.map +1 -1
  11. package/dist/activity-timeline.d.ts +33 -0
  12. package/dist/activity-timeline.js +212 -0
  13. package/dist/activity-timeline.js.map +1 -0
  14. package/dist/alert.js +5 -35
  15. package/dist/alert.js.map +1 -1
  16. package/dist/auth-layout.d.ts +23 -0
  17. package/dist/auth-layout.js +304 -0
  18. package/dist/auth-layout.js.map +1 -0
  19. package/dist/avatar.js +10 -142
  20. package/dist/avatar.js.map +1 -1
  21. package/dist/badge.d.ts +3 -2
  22. package/dist/badge.js +6 -114
  23. package/dist/badge.js.map +1 -1
  24. package/dist/bar-chart.d.ts +101 -77
  25. package/dist/bar-chart.js +142 -220
  26. package/dist/bar-chart.js.map +1 -1
  27. package/dist/breadcrumb.js +5 -35
  28. package/dist/breadcrumb.js.map +1 -1
  29. package/dist/bullet-chart.js +15 -48
  30. package/dist/bullet-chart.js.map +1 -1
  31. package/dist/button-group.js +14 -90
  32. package/dist/button-group.js.map +1 -1
  33. package/dist/button.d.ts +5 -5
  34. package/dist/button.js +7 -140
  35. package/dist/button.js.map +1 -1
  36. package/dist/calendar.js +12 -287
  37. package/dist/calendar.js.map +1 -1
  38. package/dist/card.js +5 -35
  39. package/dist/card.js.map +1 -1
  40. package/dist/carousel.js +12 -386
  41. package/dist/carousel.js.map +1 -1
  42. package/dist/chart.js +16 -480
  43. package/dist/chart.js.map +1 -1
  44. package/dist/checkbox.d.ts +1 -1
  45. package/dist/checkbox.js +13 -48
  46. package/dist/checkbox.js.map +1 -1
  47. package/dist/chunk-322YCNVL.js +278 -0
  48. package/dist/chunk-322YCNVL.js.map +1 -0
  49. package/dist/chunk-3ACQVT7A.js +25 -0
  50. package/dist/chunk-3ACQVT7A.js.map +1 -0
  51. package/dist/chunk-3T65TLJX.js +334 -0
  52. package/dist/chunk-3T65TLJX.js.map +1 -0
  53. package/dist/chunk-6ZSGQHH2.js +192 -0
  54. package/dist/chunk-6ZSGQHH2.js.map +1 -0
  55. package/dist/chunk-7TBMLFGW.js +41 -0
  56. package/dist/chunk-7TBMLFGW.js.map +1 -0
  57. package/dist/chunk-B4H6RNDH.js +135 -0
  58. package/dist/chunk-B4H6RNDH.js.map +1 -0
  59. package/dist/chunk-BUXCGZ6X.js +219 -0
  60. package/dist/chunk-BUXCGZ6X.js.map +1 -0
  61. package/dist/chunk-CHII2QHH.js +58 -0
  62. package/dist/chunk-CHII2QHH.js.map +1 -0
  63. package/dist/chunk-DMNOXRRW.js +147 -0
  64. package/dist/chunk-DMNOXRRW.js.map +1 -0
  65. package/dist/chunk-EFSOSSIC.js +130 -0
  66. package/dist/chunk-EFSOSSIC.js.map +1 -0
  67. package/dist/chunk-FZDSVMKY.js +363 -0
  68. package/dist/chunk-FZDSVMKY.js.map +1 -0
  69. package/dist/chunk-GJOFIJS3.js +246 -0
  70. package/dist/chunk-GJOFIJS3.js.map +1 -0
  71. package/dist/chunk-HL3ZSYES.js +23 -0
  72. package/dist/chunk-HL3ZSYES.js.map +1 -0
  73. package/dist/chunk-JVLUBAPB.js +129 -0
  74. package/dist/chunk-JVLUBAPB.js.map +1 -0
  75. package/dist/chunk-KDPYSOYZ.js +64 -0
  76. package/dist/chunk-KDPYSOYZ.js.map +1 -0
  77. package/dist/chunk-KSMDANKI.js +43 -0
  78. package/dist/chunk-KSMDANKI.js.map +1 -0
  79. package/dist/chunk-MEKCCOP5.js +46 -0
  80. package/dist/chunk-MEKCCOP5.js.map +1 -0
  81. package/dist/chunk-NOFXVRWL.js +451 -0
  82. package/dist/chunk-NOFXVRWL.js.map +1 -0
  83. package/dist/chunk-PC5MHNVA.js +171 -0
  84. package/dist/chunk-PC5MHNVA.js.map +1 -0
  85. package/dist/chunk-QKAQZ2GU.js +122 -0
  86. package/dist/chunk-QKAQZ2GU.js.map +1 -0
  87. package/dist/chunk-QZHSHSVV.js +26 -0
  88. package/dist/chunk-QZHSHSVV.js.map +1 -0
  89. package/dist/chunk-RBMK26XD.js +19 -0
  90. package/dist/chunk-RBMK26XD.js.map +1 -0
  91. package/dist/chunk-SFNJGF6M.js +262 -0
  92. package/dist/chunk-SFNJGF6M.js.map +1 -0
  93. package/dist/chunk-UJJNLGTM.js +112 -0
  94. package/dist/chunk-UJJNLGTM.js.map +1 -0
  95. package/dist/chunk-VGR4ZWJ3.js +418 -0
  96. package/dist/chunk-VGR4ZWJ3.js.map +1 -0
  97. package/dist/chunk-XG47P6D4.js +99 -0
  98. package/dist/chunk-XG47P6D4.js.map +1 -0
  99. package/dist/chunk-XZZAHNVM.js +21 -0
  100. package/dist/chunk-XZZAHNVM.js.map +1 -0
  101. package/dist/chunk-Y4TTYVNE.js +36 -0
  102. package/dist/chunk-Y4TTYVNE.js.map +1 -0
  103. package/dist/chunk-YDWIHW6Q.js +69 -0
  104. package/dist/chunk-YDWIHW6Q.js.map +1 -0
  105. package/dist/collapsible.js +6 -35
  106. package/dist/collapsible.js.map +1 -1
  107. package/dist/combobox.js +26 -694
  108. package/dist/combobox.js.map +1 -1
  109. package/dist/cta.d.ts +66 -0
  110. package/dist/cta.js +358 -0
  111. package/dist/cta.js.map +1 -0
  112. package/dist/currency-selector.d.ts +42 -0
  113. package/dist/currency-selector.js +192 -0
  114. package/dist/currency-selector.js.map +1 -0
  115. package/dist/date-picker.d.ts +18 -10
  116. package/dist/date-picker.js +105 -430
  117. package/dist/date-picker.js.map +1 -1
  118. package/dist/details-card.d.ts +19 -0
  119. package/dist/details-card.js +267 -0
  120. package/dist/details-card.js.map +1 -0
  121. package/dist/dialog.js +36 -146
  122. package/dist/dialog.js.map +1 -1
  123. package/dist/dropdown-menu.d.ts +1 -1
  124. package/dist/dropdown-menu.js +20 -358
  125. package/dist/dropdown-menu.js.map +1 -1
  126. package/dist/dropzone.js +13 -40
  127. package/dist/dropzone.js.map +1 -1
  128. package/dist/editorial-card.d.ts +29 -0
  129. package/dist/editorial-card.js +311 -0
  130. package/dist/editorial-card.js.map +1 -0
  131. package/dist/empty-state.js +5 -35
  132. package/dist/empty-state.js.map +1 -1
  133. package/dist/field.js +30 -135
  134. package/dist/field.js.map +1 -1
  135. package/dist/footer.d.ts +47 -0
  136. package/dist/footer.js +430 -0
  137. package/dist/footer.js.map +1 -0
  138. package/dist/funnel-chart.js +42 -415
  139. package/dist/funnel-chart.js.map +1 -1
  140. package/dist/gallery-indicator.d.ts +18 -0
  141. package/dist/gallery-indicator.js +12 -0
  142. package/dist/gallery-indicator.js.map +1 -0
  143. package/dist/heatmap-chart.d.ts +98 -0
  144. package/dist/heatmap-chart.js +248 -0
  145. package/dist/heatmap-chart.js.map +1 -0
  146. package/dist/infotip.d.ts +11 -0
  147. package/dist/infotip.js +66 -0
  148. package/dist/infotip.js.map +1 -0
  149. package/dist/input-group.d.ts +2 -1
  150. package/dist/input-group.js +15 -371
  151. package/dist/input-group.js.map +1 -1
  152. package/dist/input-size-context.js +5 -19
  153. package/dist/input-size-context.js.map +1 -1
  154. package/dist/input.js +6 -78
  155. package/dist/input.js.map +1 -1
  156. package/dist/item.js +5 -35
  157. package/dist/item.js.map +1 -1
  158. package/dist/kpi-card.js +12 -52
  159. package/dist/kpi-card.js.map +1 -1
  160. package/dist/label.js +5 -64
  161. package/dist/label.js.map +1 -1
  162. package/dist/line-chart.js +9 -166
  163. package/dist/line-chart.js.map +1 -1
  164. package/dist/logo.js +4 -141
  165. package/dist/logo.js.map +1 -1
  166. package/dist/map-indicator.d.ts +13 -0
  167. package/dist/map-indicator.js +109 -0
  168. package/dist/map-indicator.js.map +1 -0
  169. package/dist/match.d.ts +16 -0
  170. package/dist/match.js +113 -0
  171. package/dist/match.js.map +1 -0
  172. package/dist/media-gallery-hero.d.ts +60 -0
  173. package/dist/media-gallery-hero.js +362 -0
  174. package/dist/media-gallery-hero.js.map +1 -0
  175. package/dist/media-player.d.ts +60 -0
  176. package/dist/media-player.js +1394 -0
  177. package/dist/media-player.js.map +1 -0
  178. package/dist/number-input.js +30 -325
  179. package/dist/number-input.js.map +1 -1
  180. package/dist/page-header.js +4 -32
  181. package/dist/page-header.js.map +1 -1
  182. package/dist/pagination.d.ts +1 -0
  183. package/dist/pagination.js +27 -161
  184. package/dist/pagination.js.map +1 -1
  185. package/dist/password-input.d.ts +1 -0
  186. package/dist/password-input.js +21 -319
  187. package/dist/password-input.js.map +1 -1
  188. package/dist/phone-input.d.ts +2 -1
  189. package/dist/phone-input.js +148 -359
  190. package/dist/phone-input.js.map +1 -1
  191. package/dist/photo-gallery.d.ts +1 -1
  192. package/dist/photo-gallery.js +97 -393
  193. package/dist/photo-gallery.js.map +1 -1
  194. package/dist/pie-chart.js +17 -52
  195. package/dist/pie-chart.js.map +1 -1
  196. package/dist/popover.js +13 -158
  197. package/dist/popover.js.map +1 -1
  198. package/dist/price-tag.d.ts +35 -0
  199. package/dist/price-tag.js +178 -0
  200. package/dist/price-tag.js.map +1 -0
  201. package/dist/progress.d.ts +5 -2
  202. package/dist/progress.js +14 -303
  203. package/dist/progress.js.map +1 -1
  204. package/dist/property-listing-card.d.ts +32 -0
  205. package/dist/property-listing-card.js +235 -0
  206. package/dist/property-listing-card.js.map +1 -0
  207. package/dist/radar-chart.d.ts +110 -0
  208. package/dist/radar-chart.js +147 -0
  209. package/dist/radar-chart.js.map +1 -0
  210. package/dist/radio-group.js +15 -50
  211. package/dist/radio-group.js.map +1 -1
  212. package/dist/review-block.d.ts +20 -0
  213. package/dist/review-block.js +10 -0
  214. package/dist/review-block.js.map +1 -0
  215. package/dist/rich-text-editor.js +172 -433
  216. package/dist/rich-text-editor.js.map +1 -1
  217. package/dist/scatter-chart.d.ts +142 -0
  218. package/dist/scatter-chart.js +252 -0
  219. package/dist/scatter-chart.js.map +1 -0
  220. package/dist/search-input.d.ts +1 -0
  221. package/dist/search-input.js +22 -320
  222. package/dist/search-input.js.map +1 -1
  223. package/dist/select.js +15 -292
  224. package/dist/select.js.map +1 -1
  225. package/dist/separator.js +5 -68
  226. package/dist/separator.js.map +1 -1
  227. package/dist/sheet.js +14 -271
  228. package/dist/sheet.js.map +1 -1
  229. package/dist/sidebar.d.ts +1 -1
  230. package/dist/sidebar.js +89 -494
  231. package/dist/sidebar.js.map +1 -1
  232. package/dist/size-context.js +5 -17
  233. package/dist/size-context.js.map +1 -1
  234. package/dist/skeleton.js +4 -44
  235. package/dist/skeleton.js.map +1 -1
  236. package/dist/slider.d.ts +28 -0
  237. package/dist/slider.js +152 -0
  238. package/dist/slider.js.map +1 -0
  239. package/dist/sparkline.js +33 -341
  240. package/dist/sparkline.js.map +1 -1
  241. package/dist/stepper.js +5 -35
  242. package/dist/stepper.js.map +1 -1
  243. package/dist/styles.css +9593 -2
  244. package/dist/switch.js +13 -48
  245. package/dist/switch.js.map +1 -1
  246. package/dist/tab-list.js +35 -306
  247. package/dist/tab-list.js.map +1 -1
  248. package/dist/table.js +5 -32
  249. package/dist/table.js.map +1 -1
  250. package/dist/tabs.js +10 -150
  251. package/dist/tabs.js.map +1 -1
  252. package/dist/tag.d.ts +7 -6
  253. package/dist/tag.js +101 -97
  254. package/dist/tag.js.map +1 -1
  255. package/dist/testimonial-block.d.ts +34 -0
  256. package/dist/testimonial-block.js +377 -0
  257. package/dist/testimonial-block.js.map +1 -0
  258. package/dist/textarea.js +6 -73
  259. package/dist/textarea.js.map +1 -1
  260. package/dist/time-picker.js +119 -279
  261. package/dist/time-picker.js.map +1 -1
  262. package/dist/toast.js +27 -132
  263. package/dist/toast.js.map +1 -1
  264. package/dist/tooltip.d.ts +5 -5
  265. package/dist/tooltip.js +7 -90
  266. package/dist/tooltip.js.map +1 -1
  267. package/dist/tree-map.js +41 -414
  268. package/dist/tree-map.js.map +1 -1
  269. package/dist/waterfall-chart.d.ts +129 -0
  270. package/dist/waterfall-chart.js +577 -0
  271. package/dist/waterfall-chart.js.map +1 -0
  272. package/package.json +98 -28
  273. package/dist/base.css +0 -32
  274. package/dist/files/red-hat-display-latin-300-italic.woff +0 -0
  275. package/dist/files/red-hat-display-latin-300-italic.woff2 +0 -0
  276. package/dist/files/red-hat-display-latin-300-normal.woff +0 -0
  277. package/dist/files/red-hat-display-latin-300-normal.woff2 +0 -0
  278. package/dist/files/red-hat-display-latin-400-italic.woff +0 -0
  279. package/dist/files/red-hat-display-latin-400-italic.woff2 +0 -0
  280. package/dist/files/red-hat-display-latin-400-normal.woff +0 -0
  281. package/dist/files/red-hat-display-latin-400-normal.woff2 +0 -0
  282. package/dist/files/red-hat-display-latin-500-italic.woff +0 -0
  283. package/dist/files/red-hat-display-latin-500-italic.woff2 +0 -0
  284. package/dist/files/red-hat-display-latin-500-normal.woff +0 -0
  285. package/dist/files/red-hat-display-latin-500-normal.woff2 +0 -0
  286. package/dist/files/red-hat-display-latin-600-italic.woff +0 -0
  287. package/dist/files/red-hat-display-latin-600-italic.woff2 +0 -0
  288. package/dist/files/red-hat-display-latin-600-normal.woff +0 -0
  289. package/dist/files/red-hat-display-latin-600-normal.woff2 +0 -0
  290. package/dist/files/red-hat-display-latin-700-italic.woff +0 -0
  291. package/dist/files/red-hat-display-latin-700-italic.woff2 +0 -0
  292. package/dist/files/red-hat-display-latin-700-normal.woff +0 -0
  293. package/dist/files/red-hat-display-latin-700-normal.woff2 +0 -0
  294. package/dist/files/red-hat-display-latin-800-italic.woff +0 -0
  295. package/dist/files/red-hat-display-latin-800-italic.woff2 +0 -0
  296. package/dist/files/red-hat-display-latin-800-normal.woff +0 -0
  297. package/dist/files/red-hat-display-latin-800-normal.woff2 +0 -0
  298. package/dist/files/red-hat-display-latin-900-italic.woff +0 -0
  299. package/dist/files/red-hat-display-latin-900-italic.woff2 +0 -0
  300. package/dist/files/red-hat-display-latin-900-normal.woff +0 -0
  301. package/dist/files/red-hat-display-latin-900-normal.woff2 +0 -0
  302. package/dist/files/red-hat-display-latin-ext-300-italic.woff +0 -0
  303. package/dist/files/red-hat-display-latin-ext-300-italic.woff2 +0 -0
  304. package/dist/files/red-hat-display-latin-ext-300-normal.woff +0 -0
  305. package/dist/files/red-hat-display-latin-ext-300-normal.woff2 +0 -0
  306. package/dist/files/red-hat-display-latin-ext-400-italic.woff +0 -0
  307. package/dist/files/red-hat-display-latin-ext-400-italic.woff2 +0 -0
  308. package/dist/files/red-hat-display-latin-ext-400-normal.woff +0 -0
  309. package/dist/files/red-hat-display-latin-ext-400-normal.woff2 +0 -0
  310. package/dist/files/red-hat-display-latin-ext-500-italic.woff +0 -0
  311. package/dist/files/red-hat-display-latin-ext-500-italic.woff2 +0 -0
  312. package/dist/files/red-hat-display-latin-ext-500-normal.woff +0 -0
  313. package/dist/files/red-hat-display-latin-ext-500-normal.woff2 +0 -0
  314. package/dist/files/red-hat-display-latin-ext-600-italic.woff +0 -0
  315. package/dist/files/red-hat-display-latin-ext-600-italic.woff2 +0 -0
  316. package/dist/files/red-hat-display-latin-ext-600-normal.woff +0 -0
  317. package/dist/files/red-hat-display-latin-ext-600-normal.woff2 +0 -0
  318. package/dist/files/red-hat-display-latin-ext-700-italic.woff +0 -0
  319. package/dist/files/red-hat-display-latin-ext-700-italic.woff2 +0 -0
  320. package/dist/files/red-hat-display-latin-ext-700-normal.woff +0 -0
  321. package/dist/files/red-hat-display-latin-ext-700-normal.woff2 +0 -0
  322. package/dist/files/red-hat-display-latin-ext-800-italic.woff +0 -0
  323. package/dist/files/red-hat-display-latin-ext-800-italic.woff2 +0 -0
  324. package/dist/files/red-hat-display-latin-ext-800-normal.woff +0 -0
  325. package/dist/files/red-hat-display-latin-ext-800-normal.woff2 +0 -0
  326. package/dist/files/red-hat-display-latin-ext-900-italic.woff +0 -0
  327. package/dist/files/red-hat-display-latin-ext-900-italic.woff2 +0 -0
  328. package/dist/files/red-hat-display-latin-ext-900-normal.woff +0 -0
  329. package/dist/files/red-hat-display-latin-ext-900-normal.woff2 +0 -0
  330. package/dist/index.d.ts +0 -87
  331. package/dist/index.js +0 -10448
  332. package/dist/index.js.map +0 -1
  333. package/dist/red-hat-display.css +0 -2
  334. package/dist/theme/giddaa.css +0 -2
package/dist/sidebar.js CHANGED
@@ -1,460 +1,55 @@
1
- // src/components/ui/sidebar.tsx
1
+ "use client";
2
+ import {
3
+ useIsMobile
4
+ } from "./chunk-RBMK26XD.js";
5
+ import {
6
+ Sheet,
7
+ SheetContent,
8
+ SheetDescription,
9
+ SheetHeader,
10
+ SheetTitle
11
+ } from "./chunk-PC5MHNVA.js";
12
+ import {
13
+ Tooltip,
14
+ TooltipContent,
15
+ TooltipTrigger
16
+ } from "./chunk-KDPYSOYZ.js";
17
+ import {
18
+ Skeleton
19
+ } from "./chunk-XZZAHNVM.js";
20
+ import {
21
+ useUncontrolled
22
+ } from "./chunk-QZHSHSVV.js";
23
+ import {
24
+ Separator
25
+ } from "./chunk-CHII2QHH.js";
26
+ import {
27
+ Input
28
+ } from "./chunk-MEKCCOP5.js";
29
+ import "./chunk-3ACQVT7A.js";
30
+ import {
31
+ Button
32
+ } from "./chunk-B4H6RNDH.js";
33
+ import "./chunk-HL3ZSYES.js";
34
+ import {
35
+ cn
36
+ } from "./chunk-Y4TTYVNE.js";
37
+
38
+ // src/sidebar.tsx
2
39
  import { mergeProps } from "@base-ui/react/merge-props";
3
40
  import { useRender } from "@base-ui/react/use-render";
4
- import { cva as cva4 } from "class-variance-authority";
41
+ import { cva } from "class-variance-authority";
5
42
  import { Menu } from "lucide-react";
6
- import * as React2 from "react";
7
-
8
- // src/lib/cn.ts
9
- import { clsx } from "clsx";
10
- import { extendTailwindMerge } from "tailwind-merge";
11
- var twMerge = extendTailwindMerge({
12
- extend: {
13
- classGroups: {
14
- "font-size": [
15
- {
16
- text: [
17
- "gdt-display",
18
- "gdt-h1",
19
- "gdt-h2",
20
- "gdt-h3",
21
- "gdt-h4",
22
- "gdt-h5",
23
- "gdt-xl",
24
- "gdt-lg",
25
- "gdt-md",
26
- "gdt-sm",
27
- "gdt-xs",
28
- "gdt-subtext",
29
- "gdt-capitalized"
30
- ]
31
- }
32
- ]
33
- }
34
- }
35
- });
36
- function cn(...inputs) {
37
- return twMerge(clsx(inputs));
38
- }
39
-
40
- // src/lib/use-mobile.ts
41
43
  import * as React from "react";
42
- var DEFAULT_MOBILE_BREAKPOINT = 1024;
43
- function useIsMobile(breakpoint = DEFAULT_MOBILE_BREAKPOINT) {
44
- const [isMobile, setIsMobile] = React.useState(false);
45
- React.useEffect(() => {
46
- const mediaQuery = window.matchMedia(`(max-width: ${breakpoint - 1}px)`);
47
- const update = () => setIsMobile(window.innerWidth < breakpoint);
48
- update();
49
- mediaQuery.addEventListener("change", update);
50
- return () => mediaQuery.removeEventListener("change", update);
51
- }, [breakpoint]);
52
- return isMobile;
53
- }
54
-
55
- // src/lib/use-uncontrolled.ts
56
- import { useState as useState2 } from "react";
57
- function useUncontrolled({
58
- value,
59
- defaultValue,
60
- finalValue,
61
- onChange = () => {
62
- }
63
- }) {
64
- const [uncontrolledValue, setUncontrolledValue] = useState2(
65
- defaultValue !== void 0 ? defaultValue : finalValue
66
- );
67
- const handleUncontrolledChange = (nextValue, ...payload) => {
68
- setUncontrolledValue(nextValue);
69
- onChange?.(nextValue, ...payload);
70
- };
71
- if (value !== void 0) {
72
- return [value, onChange, true];
73
- }
74
- return [uncontrolledValue, handleUncontrolledChange, false];
75
- }
76
-
77
- // src/components/ui/button.tsx
78
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
79
- import { cva } from "class-variance-authority";
80
- import { Loader } from "lucide-react";
81
-
82
- // src/components/ui/size-context.tsx
83
- import { createContext, useContext } from "react";
84
- import { Fragment, jsx } from "react/jsx-runtime";
85
- var SizeContext = createContext(void 0);
86
- function SizeProvider({
87
- children,
88
- size
89
- }) {
90
- if (!size) {
91
- return /* @__PURE__ */ jsx(Fragment, { children });
92
- }
93
- return /* @__PURE__ */ jsx(SizeContext.Provider, { value: size, children });
94
- }
95
- function useComponentSize(size, fallback = "md") {
96
- const inheritedSize = useContext(SizeContext);
97
- return size ?? inheritedSize ?? fallback;
98
- }
99
-
100
- // src/components/ui/button.tsx
101
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
102
- var buttonVariants = cva(
103
- "group/button inline-flex shrink-0 items-center justify-center rounded-full bg-clip-padding whitespace-nowrap font-bold transition-[background-color,color,border-color,box-shadow,transform] outline-none select-none focus-visible:border-line-focus focus-visible:shadow-[0px_0px_0px_2px_var(--color-line-focus)] active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-invalid:border-line-danger aria-invalid:ring-3 aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
104
- {
105
- variants: {
106
- variant: {
107
- primary: "bg-action-primary text-fg-on-brand hover:bg-action-primary-hover active:bg-action-primary-pressed",
108
- "primary-outline": "border-2 border-action-primary bg-transparent text-fg-brand hover:bg-surface-brand-subtle active:bg-surface-brand-subtle data-focused:bg-surface-brand-subtle data-pressed:bg-surface-brand-subtle",
109
- secondary: "bg-surface-brand-subtle text-fg-brand hover:bg-action-primary-hover hover:text-fg-on-brand active:bg-action-primary-pressed active:text-fg-on-brand data-focused:bg-action-primary-hover data-pressed:bg-action-primary-pressed data-focused:text-fg-on-brand data-pressed:text-fg-on-brand",
110
- "secondary-outline": "border-2 border-action-secondary bg-transparent text-fg-brand hover:bg-surface-brand-subtle active:bg-surface-brand-subtle data-focused:bg-surface-brand-subtle data-pressed:bg-surface-brand-subtle",
111
- tertiary: "bg-action-tertiary text-fg-primary hover:bg-action-tertiary-hover active:bg-action-tertiary-pressed data-focused:bg-action-tertiary-hover data-pressed:bg-action-tertiary-pressed",
112
- "tertiary-outline": "border border-line-strong bg-transparent text-fg-primary hover:bg-surface active:bg-surface-raised data-focused:bg-surface data-pressed:bg-surface-raised",
113
- ghost: "bg-transparent text-fg-primary hover:bg-surface active:bg-surface-raised data-focused:bg-surface data-pressed:bg-surface-raised",
114
- danger: "bg-action-danger text-fg-on-brand hover:bg-action-danger-hover active:bg-action-danger-pressed data-focused:bg-action-danger-hover data-pressed:bg-action-danger-pressed",
115
- "glass-overlay": "bg-surface-glass-overlay-button text-fg-on-brand",
116
- "link-brand": "border-transparent bg-transparent px-0 text-fg-brand hover:underline active:underline active:opacity-70",
117
- "link-neutral": "border-transparent bg-transparent px-0 text-fg-secondary hover:underline active:underline active:opacity-70"
118
- },
119
- size: {
120
- sm: "h-8 gap-2 px-3.5 text-gdt-xs has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3 [&_svg:not([class*='size-'])]:size-3.5",
121
- md: "h-10 gap-2 px-4.5 text-gdt-sm has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4",
122
- lg: "h-12.5 gap-2.5 px-5.5 text-gdt-md has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5 [&_svg:not([class*='size-'])]:size-4.5",
123
- xl: "h-14 gap-3 px-6.5 text-gdt-lg has-data-[icon=inline-end]:pr-6 has-data-[icon=inline-start]:pl-6 [&_svg:not([class*='size-'])]:size-5",
124
- icon: "size-10",
125
- "icon-xs": "size-6 text-gdt-xs [&_svg:not([class*='size-'])]:size-3",
126
- "icon-sm": "size-8 text-gdt-sm [&_svg:not([class*='size-'])]:size-3.5",
127
- "icon-lg": "size-12.5 text-gdt-md [&_svg:not([class*='size-'])]:size-4.5",
128
- "icon-xl": "size-14 text-gdt-lg [&_svg:not([class*='size-'])]:size-5"
129
- }
130
- },
131
- defaultVariants: {
132
- variant: "primary",
133
- size: "md"
134
- }
135
- }
136
- );
137
- function Button({
138
- className,
139
- variant = "primary",
140
- size,
141
- isLoading = false,
142
- children,
143
- disabled = false,
144
- ...props
145
- }) {
146
- const inheritedSize = useComponentSize();
147
- const resolvedSize = size ?? inheritedSize;
148
- const _disabled = disabled || isLoading;
149
- return /* @__PURE__ */ jsxs(
150
- ButtonPrimitive,
151
- {
152
- "data-slot": "button",
153
- className: cn(buttonVariants({ variant, size: resolvedSize, className })),
154
- disabled: _disabled,
155
- ...props,
156
- children: [
157
- isLoading && /* @__PURE__ */ jsx2(Loader, { className: "size-4 animate-spin" }),
158
- " ",
159
- children
160
- ]
161
- }
162
- );
163
- }
164
-
165
- // src/components/ui/input.tsx
166
- import { Input as InputPrimitive } from "@base-ui/react/input";
167
- import { cva as cva2 } from "class-variance-authority";
168
-
169
- // src/components/ui/input-size-context.tsx
170
- import { createContext as createContext2, useContext as useContext2 } from "react";
171
- import { Fragment as Fragment2, jsx as jsx3 } from "react/jsx-runtime";
172
- var InputSizeContext = createContext2(
173
- void 0
174
- );
175
- function useInputComponentSize(size, fallback = "md") {
176
- const inheritedSize = useContext2(InputSizeContext);
177
- return size ?? inheritedSize ?? fallback;
178
- }
179
-
180
- // src/components/ui/input.tsx
181
- import { jsx as jsx4 } from "react/jsx-runtime";
182
- var inputVariants = cva2(
183
- "flex w-full min-w-0 rounded-full border border-line bg-canvas text-fg-primary transition-[background-color,border-color,box-shadow,color] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-normal file:text-fg-primary placeholder:text-fg-muted hover:border-line-strong focus-visible:border-line-focus focus-visible:inset-ring-1 inset-ring-line-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-line-subtle disabled:bg-surface disabled:text-fg-muted disabled:placeholder:text-fg-muted aria-invalid:border-line-danger aria-invalid:text-fg-danger aria-invalid:placeholder:text-fg-danger aria-invalid:shadow-none",
184
- {
185
- variants: {
186
- size: {
187
- sm: "h-8 px-3 text-gdt-xs font-normal file:text-gdt-xs",
188
- md: "h-10 px-3.5 text-gdt-sm font-normal file:text-gdt-sm",
189
- lg: "h-12 px-4 text-gdt-md font-normal file:text-gdt-md",
190
- xl: "h-14 px-4.5 text-gdt-lg font-normal file:text-gdt-lg"
191
- }
192
- },
193
- defaultVariants: {
194
- size: "md"
195
- }
196
- }
197
- );
198
- function Input({ className, size, type, ...props }) {
199
- const resolvedSize = useInputComponentSize(size);
200
- return /* @__PURE__ */ jsx4(
201
- InputPrimitive,
202
- {
203
- type,
204
- "data-slot": "input",
205
- "data-size": resolvedSize,
206
- className: cn(inputVariants({ size: resolvedSize }), className),
207
- ...props
208
- }
209
- );
210
- }
211
-
212
- // src/components/ui/separator.tsx
213
- import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
214
- import { jsx as jsx5 } from "react/jsx-runtime";
215
- function Separator({
216
- className,
217
- orientation = "horizontal",
218
- dashed = false,
219
- shade = "feint",
220
- thickness = "default",
221
- ...props
222
- }) {
223
- return /* @__PURE__ */ jsx5(
224
- SeparatorPrimitive,
225
- {
226
- "data-slot": "separator",
227
- orientation,
228
- className: cn(
229
- "shrink-0 data-horizontal:h-0 data-horizontal:w-full data-vertical:w-0 data-vertical:self-stretch",
230
- // style
231
- dashed ? "border-dashed" : "border-solid",
232
- // shade
233
- shade === "feint" && "border-line-subtle",
234
- shade === "deep" && "border-line",
235
- // thickness
236
- thickness === "hairline" && "data-horizontal:border-t-[0.5px] data-vertical:border-l-[0.5px]",
237
- thickness === "default" && "data-horizontal:border-t data-vertical:border-l",
238
- thickness === "thick" && "data-horizontal:border-t-2 data-vertical:border-l-2",
239
- thickness === "extra-thick" && "data-horizontal:border-t-[3px] data-vertical:border-l-[3px]",
240
- className
241
- ),
242
- ...props
243
- }
244
- );
245
- }
246
-
247
- // src/components/ui/sheet.tsx
248
- import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
249
- import { cva as cva3 } from "class-variance-authority";
250
- import { XIcon } from "lucide-react";
251
- import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
252
- function Sheet({ ...props }) {
253
- return /* @__PURE__ */ jsx6(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
254
- }
255
- function SheetPortal({ ...props }) {
256
- return /* @__PURE__ */ jsx6(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
257
- }
258
- function SheetOverlay({ className, ...props }) {
259
- return /* @__PURE__ */ jsx6(
260
- SheetPrimitive.Backdrop,
261
- {
262
- "data-slot": "sheet-overlay",
263
- className: cn(
264
- "fixed inset-0 z-50 bg-black/55 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xl",
265
- className
266
- ),
267
- ...props
268
- }
269
- );
270
- }
271
- var sheetContentVariants = cva3(
272
- "group/sheet-content fixed z-50 flex flex-col gap-0 overflow-visible rounded-2xl border border-line-subtle bg-surface-overlay bg-clip-padding text-fg-primary shadow-(--elevation-e2-shadow) transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 [--sheet-padding-x:1rem] [--sheet-padding-top:1rem] data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:w-full data-[side=bottom]:rounded-b-none data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:w-full data-[side=top]:rounded-t-none data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:rounded-l-none data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:rounded-r-none data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] px-(--sheet-padding-x) **:data-[slot=tabs]:has-data-[variant=underline]:-mx-(--sheet-padding-x) **:has-data-[variant=underline]:*:px-(--sheet-padding-x)",
273
- {
274
- variants: {
275
- size: {
276
- sm: "sm:[--sheet-padding-top:1.5rem] sm:[--sheet-padding-x:1.5rem] w-90 max-w-[calc(100vw-2.5rem)] [--sheet-title:var(--text-gdt-h5)]",
277
- md: "sm:[--sheet-padding-top:1.5rem] sm:[--sheet-padding-x:2rem] xl:[--sheet-padding-x:2.5rem] w-120 max-w-[calc(100vw-2.5rem)] [--sheet-title:var(--text-gdt-h4)]",
278
- lg: "sm:[--sheet-padding-top:1.5rem] sm:[--sheet-padding-x:2rem] xl:[--sheet-padding-x:2.5rem] w-160 max-w-[calc(100vw-2.5rem)] [--sheet-title:var(--text-gdt-h3)]",
279
- fullscreen: "sm:[--sheet-padding-top:2rem] sm:[--sheet-padding-x:2.5rem] xl:[--sheet-padding-x:5rem] [--sheet-title:var(--text-gdt-h2)] h-[calc(100lvh-3.5rem)] rounded:xl sm:rounded-2xl"
280
- }
281
- },
282
- defaultVariants: {
283
- size: "md"
284
- }
285
- }
286
- );
287
- function SheetContent({
288
- className,
289
- children,
290
- side = "left",
291
- size = "md",
292
- showCloseButton = true,
293
- ...props
294
- }) {
295
- const resolvedSize = side === "top" || side === "bottom" ? "fullscreen" : size !== "fullscreen" ? size : "md";
296
- const contentSize = resolvedSize === "fullscreen" ? "lg" : resolvedSize;
297
- return /* @__PURE__ */ jsxs2(SheetPortal, { children: [
298
- /* @__PURE__ */ jsx6(SheetOverlay, {}),
299
- /* @__PURE__ */ jsx6(SizeProvider, { size: contentSize, children: /* @__PURE__ */ jsxs2(
300
- SheetPrimitive.Popup,
301
- {
302
- "data-slot": "sheet-content",
303
- "data-side": side,
304
- "data-size": resolvedSize,
305
- className: cn(
306
- sheetContentVariants({ size: resolvedSize }),
307
- className
308
- ),
309
- ...props,
310
- children: [
311
- children,
312
- showCloseButton && /* @__PURE__ */ jsx6(
313
- SheetPrimitive.Close,
314
- {
315
- "data-slot": "sheet-close",
316
- render: /* @__PURE__ */ jsxs2(
317
- Button,
318
- {
319
- variant: "ghost",
320
- className: "absolute z-10 size-8 border border-line bg-surface p-0 text-fg-primary shadow-(--elevation-e1-shadow) hover:bg-surface-raised group-data-[side=bottom]/sheet-content:-top-10 group-data-[side=bottom]/sheet-content:right-4 group-data-[side=top]/sheet-content:-bottom-10 group-data-[side=top]/sheet-content:right-4 group-data-[side=left]/sheet-content:-right-10 group-data-[side=left]/sheet-content:top-4 group-data-[side=right]/sheet-content:-left-10 group-data-[side=right]/sheet-content:top-4",
321
- size: "icon-sm",
322
- children: [
323
- /* @__PURE__ */ jsx6(XIcon, {}),
324
- /* @__PURE__ */ jsx6("span", { className: "sr-only", children: "Close" })
325
- ]
326
- }
327
- )
328
- }
329
- )
330
- ]
331
- }
332
- ) })
333
- ] });
334
- }
335
- function SheetHeader({ className, ...props }) {
336
- return /* @__PURE__ */ jsx6(
337
- "div",
338
- {
339
- "data-slot": "sheet-header",
340
- className: cn(
341
- "flex flex-col gap-1 -mx-(--sheet-padding-x) px-(--sheet-padding-x) pt-(--sheet-padding-top) pb-4 border-b border-line-subtle group-has-[[data-slot=tabs-list][data-variant=underline]]/sheet-content:border-b-0 group-has-[[data-slot=tabs-list][data-variant=underline]]/sheet-content:pb-2",
342
- className
343
- ),
344
- ...props
345
- }
346
- );
347
- }
348
- function SheetTitle({ className, ...props }) {
349
- return /* @__PURE__ */ jsx6(
350
- SheetPrimitive.Title,
351
- {
352
- "data-slot": "sheet-title",
353
- className: cn(
354
- "font-extrabold text-fg-primary tracking-tight group-data-[size=fullscreen]/sheet-content:text-gdt-h2 group-data-[size=lg]/sheet-content:text-gdt-h3 group-data-[size=md]/sheet-content:text-gdt-h4 group-data-[size=sm]/sheet-content:text-gdt-h5",
355
- className
356
- ),
357
- ...props
358
- }
359
- );
360
- }
361
- function SheetDescription({
362
- className,
363
- ...props
364
- }) {
365
- return /* @__PURE__ */ jsx6(
366
- SheetPrimitive.Description,
367
- {
368
- "data-slot": "sheet-description",
369
- className: cn(
370
- "text-fg-secondary group-data-[size=fullscreen]/sheet-content:text-gdt-lg group-data-[size=lg]/sheet-content:text-gdt-md group-data-[size=md]/sheet-content:text-gdt-sm group-data-[size=sm]/sheet-content:text-gdt-xs",
371
- className
372
- ),
373
- ...props
374
- }
375
- );
376
- }
377
-
378
- // src/components/ui/skeleton.tsx
379
- import { jsx as jsx7 } from "react/jsx-runtime";
380
- function Skeleton({ className, ...props }) {
381
- return /* @__PURE__ */ jsx7(
382
- "div",
383
- {
384
- "data-slot": "skeleton",
385
- className: cn("animate-pulse rounded-md bg-line", className),
386
- ...props
387
- }
388
- );
389
- }
390
-
391
- // src/components/ui/tooltip.tsx
392
- import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
393
- import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
394
- function Tooltip({ ...props }) {
395
- return /* @__PURE__ */ jsx8(PopoverPrimitive.Root, { "data-slot": "tooltip", ...props });
396
- }
397
- function TooltipTrigger({
398
- ...props
399
- }) {
400
- return /* @__PURE__ */ jsx8(
401
- PopoverPrimitive.Trigger,
402
- {
403
- nativeButton: false,
404
- "data-slot": "tooltip-trigger",
405
- openOnHover: true,
406
- delay: 100,
407
- ...props
408
- }
409
- );
410
- }
411
- function TooltipContent({
412
- className,
413
- side = "top",
414
- sideOffset = 6,
415
- align = "center",
416
- alignOffset = 0,
417
- showArrow = true,
418
- children,
419
- ...props
420
- }) {
421
- return /* @__PURE__ */ jsx8(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx8(
422
- PopoverPrimitive.Positioner,
423
- {
424
- align,
425
- alignOffset,
426
- side,
427
- sideOffset,
428
- className: "isolate z-50",
429
- children: /* @__PURE__ */ jsxs3(
430
- PopoverPrimitive.Popup,
431
- {
432
- "data-slot": "tooltip-content",
433
- className: cn(
434
- "z-50 relative inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-[6px] border border-line bg-surface-overlay px-3 py-2 text-gdt-sm font-medium text-fg-primary shadow-2 duration-100 has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
435
- className
436
- ),
437
- ...props,
438
- children: [
439
- children,
440
- showArrow ? /* @__PURE__ */ jsx8(PopoverPrimitive.Arrow, { className: "relative block w-3 h-1.5 overflow-clip data-[side=bottom]:top-[-6px] data-[side=left]:right-[-9px] data-[side=left]:rotate-90 data-[side=right]:left-[-9px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-6px] data-[side=top]:rotate-180 before:content-[''] before:absolute before:bottom-0 before:left-1/2 before:w-[calc(6px*sqrt(2))] before:h-[calc(6px*sqrt(2))] before:bg-surface-overlay before:border before:border-line before:[transform:translate(-50%,50%)_rotate(45deg)]" }) : null
441
- ]
442
- }
443
- )
444
- }
445
- ) });
446
- }
447
-
448
- // src/components/ui/sidebar.tsx
449
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
44
+ import { jsx, jsxs } from "react/jsx-runtime";
450
45
  var SIDEBAR_LS_KEY = "sidebar_state";
451
46
  var SIDEBAR_WIDTH = "17.5rem";
452
47
  var SIDEBAR_WIDTH_MOBILE = "17.5rem";
453
48
  var SIDEBAR_WIDTH_ICON = "4.5rem";
454
49
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
455
- var SidebarContext = React2.createContext(null);
50
+ var SidebarContext = React.createContext(null);
456
51
  function useSidebar() {
457
- const context = React2.useContext(SidebarContext);
52
+ const context = React.useContext(SidebarContext);
458
53
  if (!context) {
459
54
  throw new Error("useSidebar must be used within a SidebarProvider.");
460
55
  }
@@ -470,7 +65,7 @@ function SidebarProvider({
470
65
  ...props
471
66
  }) {
472
67
  const isMobile = useIsMobile();
473
- const [openMobile, setOpenMobile] = React2.useState(false);
68
+ const [openMobile, setOpenMobile] = React.useState(false);
474
69
  const [open, setOpen] = useUncontrolled({
475
70
  value: openProp,
476
71
  onChange: (open2) => {
@@ -481,17 +76,17 @@ function SidebarProvider({
481
76
  },
482
77
  defaultValue: defaultOpen
483
78
  });
484
- React2.useEffect(() => {
79
+ React.useEffect(() => {
485
80
  if (openProp !== void 0) return;
486
81
  const storedOpen = window.localStorage.getItem(SIDEBAR_LS_KEY);
487
82
  if (storedOpen !== null) {
488
83
  setOpen(storedOpen !== "false");
489
84
  }
490
85
  }, [openProp, setOpen]);
491
- const toggleSidebar = React2.useCallback(() => {
86
+ const toggleSidebar = React.useCallback(() => {
492
87
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen(!open);
493
88
  }, [isMobile, open, setOpen]);
494
- React2.useEffect(() => {
89
+ React.useEffect(() => {
495
90
  const handleKeyDown = (event) => {
496
91
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
497
92
  event.preventDefault();
@@ -502,7 +97,7 @@ function SidebarProvider({
502
97
  return () => window.removeEventListener("keydown", handleKeyDown);
503
98
  }, [toggleSidebar]);
504
99
  const state = open ? "expanded" : "collapsed";
505
- const contextValue = React2.useMemo(
100
+ const contextValue = React.useMemo(
506
101
  () => ({
507
102
  state,
508
103
  open,
@@ -514,7 +109,7 @@ function SidebarProvider({
514
109
  }),
515
110
  [state, open, setOpen, isMobile, openMobile, toggleSidebar]
516
111
  );
517
- return /* @__PURE__ */ jsx9(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx9(
112
+ return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
518
113
  "div",
519
114
  {
520
115
  "data-slot": "sidebar-wrapper",
@@ -543,7 +138,7 @@ function Sidebar({
543
138
  }) {
544
139
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
545
140
  if (collapsible === "none") {
546
- return /* @__PURE__ */ jsx9(
141
+ return /* @__PURE__ */ jsx(
547
142
  "div",
548
143
  {
549
144
  "data-slot": "sidebar",
@@ -557,7 +152,7 @@ function Sidebar({
557
152
  );
558
153
  }
559
154
  if (isMobile) {
560
- return /* @__PURE__ */ jsx9(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs4(
155
+ return /* @__PURE__ */ jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs(
561
156
  SheetContent,
562
157
  {
563
158
  dir,
@@ -570,16 +165,16 @@ function Sidebar({
570
165
  },
571
166
  side: "right",
572
167
  children: [
573
- /* @__PURE__ */ jsxs4(SheetHeader, { className: "sr-only", children: [
574
- /* @__PURE__ */ jsx9(SheetTitle, { children: "Sidebar" }),
575
- /* @__PURE__ */ jsx9(SheetDescription, { children: "Displays the mobile sidebar." })
168
+ /* @__PURE__ */ jsxs(SheetHeader, { className: "sr-only", children: [
169
+ /* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }),
170
+ /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })
576
171
  ] }),
577
- /* @__PURE__ */ jsx9("div", { className: "flex h-full w-full flex-col", children })
172
+ /* @__PURE__ */ jsx("div", { className: "flex h-full w-full flex-col", children })
578
173
  ]
579
174
  }
580
175
  ) });
581
176
  }
582
- return /* @__PURE__ */ jsxs4(
177
+ return /* @__PURE__ */ jsxs(
583
178
  "div",
584
179
  {
585
180
  className: "group peer hidden text-fg-secondary lg:block",
@@ -589,31 +184,31 @@ function Sidebar({
589
184
  "data-side": side,
590
185
  "data-slot": "sidebar",
591
186
  children: [
592
- /* @__PURE__ */ jsx9(
187
+ /* @__PURE__ */ jsx(
593
188
  "div",
594
189
  {
595
190
  "data-slot": "sidebar-gap",
596
191
  className: cn(
597
- "relative w-(--layout-nav-width) bg-transparent transition-[width] duration-200 ease-linear",
192
+ "relative w-(--layout-nav-width) bg-transparent transition-[width] duration-200 ease-out",
598
193
  "group-data-[collapsible=offcanvas]:w-0",
599
194
  "group-data-[side=right]:rotate-180",
600
195
  variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--layout-nav-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--layout-nav-width-icon)"
601
196
  )
602
197
  }
603
198
  ),
604
- /* @__PURE__ */ jsx9(
199
+ /* @__PURE__ */ jsx(
605
200
  "div",
606
201
  {
607
202
  "data-slot": "sidebar-container",
608
203
  "data-side": side,
609
204
  className: cn(
610
- "fixed inset-y-0 z-10 hidden h-svh w-(--layout-nav-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--layout-nav-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--layout-nav-width)*-1)] lg:flex",
205
+ "fixed inset-y-0 z-10 hidden h-svh w-(--layout-nav-width) transition-[left,right,width] duration-200 ease-out data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--layout-nav-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--layout-nav-width)*-1)] lg:flex",
611
206
  // Adjust the padding for floating and inset variants.
612
207
  variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--layout-nav-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--layout-nav-width-icon) group-data-[side=left]:border-r group-data-[side=left]:border-r-line-subtle group-data-[side=right]:border-l group-data-[side=right]:border-l-line-subtle",
613
208
  className
614
209
  ),
615
210
  ...props,
616
- children: /* @__PURE__ */ jsx9(
211
+ children: /* @__PURE__ */ jsx(
617
212
  "div",
618
213
  {
619
214
  "data-sidebar": "sidebar",
@@ -634,7 +229,7 @@ function SidebarTrigger({
634
229
  ...props
635
230
  }) {
636
231
  const { toggleSidebar } = useSidebar();
637
- return /* @__PURE__ */ jsxs4(
232
+ return /* @__PURE__ */ jsxs(
638
233
  Button,
639
234
  {
640
235
  "data-sidebar": "trigger",
@@ -648,15 +243,15 @@ function SidebarTrigger({
648
243
  },
649
244
  ...props,
650
245
  children: [
651
- /* @__PURE__ */ jsx9(Menu, { className: "cn-rtl-flip" }),
652
- /* @__PURE__ */ jsx9("span", { className: "sr-only", children: "Toggle Sidebar" })
246
+ /* @__PURE__ */ jsx(Menu, { className: "cn-rtl-flip" }),
247
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
653
248
  ]
654
249
  }
655
250
  );
656
251
  }
657
252
  function SidebarRail({ className, ...props }) {
658
253
  const { toggleSidebar } = useSidebar();
659
- return /* @__PURE__ */ jsx9(
254
+ return /* @__PURE__ */ jsx(
660
255
  "button",
661
256
  {
662
257
  "data-sidebar": "rail",
@@ -679,7 +274,7 @@ function SidebarRail({ className, ...props }) {
679
274
  );
680
275
  }
681
276
  function SidebarInset({ className, ...props }) {
682
- return /* @__PURE__ */ jsx9(
277
+ return /* @__PURE__ */ jsx(
683
278
  "main",
684
279
  {
685
280
  "data-slot": "sidebar-inset",
@@ -695,7 +290,7 @@ function SidebarInput({
695
290
  className,
696
291
  ...props
697
292
  }) {
698
- return /* @__PURE__ */ jsx9(
293
+ return /* @__PURE__ */ jsx(
699
294
  Input,
700
295
  {
701
296
  "data-slot": "sidebar-input",
@@ -706,7 +301,7 @@ function SidebarInput({
706
301
  );
707
302
  }
708
303
  function SidebarHeader({ className, ...props }) {
709
- return /* @__PURE__ */ jsx9(
304
+ return /* @__PURE__ */ jsx(
710
305
  "div",
711
306
  {
712
307
  "data-slot": "sidebar-header",
@@ -717,7 +312,7 @@ function SidebarHeader({ className, ...props }) {
717
312
  );
718
313
  }
719
314
  function SidebarFooter({ className, ...props }) {
720
- return /* @__PURE__ */ jsx9(
315
+ return /* @__PURE__ */ jsx(
721
316
  "div",
722
317
  {
723
318
  "data-slot": "sidebar-footer",
@@ -731,7 +326,7 @@ function SidebarSeparator({
731
326
  className,
732
327
  ...props
733
328
  }) {
734
- return /* @__PURE__ */ jsx9(
329
+ return /* @__PURE__ */ jsx(
735
330
  Separator,
736
331
  {
737
332
  "data-slot": "sidebar-separator",
@@ -742,7 +337,7 @@ function SidebarSeparator({
742
337
  );
743
338
  }
744
339
  function SidebarContent({ className, ...props }) {
745
- return /* @__PURE__ */ jsx9(
340
+ return /* @__PURE__ */ jsx(
746
341
  "div",
747
342
  {
748
343
  "data-slot": "sidebar-content",
@@ -756,7 +351,7 @@ function SidebarContent({ className, ...props }) {
756
351
  );
757
352
  }
758
353
  function SidebarGroup({ className, ...props }) {
759
- return /* @__PURE__ */ jsx9(
354
+ return /* @__PURE__ */ jsx(
760
355
  "div",
761
356
  {
762
357
  "data-slot": "sidebar-group",
@@ -776,7 +371,7 @@ function SidebarGroupLabel({
776
371
  props: mergeProps(
777
372
  {
778
373
  className: cn(
779
- "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-fg-muted outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:shadow-[0px_0px_0px_2px_var(--color-line-focus)] [&>svg]:size-4 [&>svg]:shrink-0",
374
+ "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-fg-caption-placeholder outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:shadow-[0px_0px_0px_2px_var(--color-line-focus)] [&>svg]:size-4 [&>svg]:shrink-0",
780
375
  className
781
376
  )
782
377
  },
@@ -816,7 +411,7 @@ function SidebarGroupContent({
816
411
  className,
817
412
  ...props
818
413
  }) {
819
- return /* @__PURE__ */ jsx9(
414
+ return /* @__PURE__ */ jsx(
820
415
  "div",
821
416
  {
822
417
  "data-slot": "sidebar-group-content",
@@ -827,7 +422,7 @@ function SidebarGroupContent({
827
422
  );
828
423
  }
829
424
  function SidebarMenu({ className, ...props }) {
830
- return /* @__PURE__ */ jsx9(
425
+ return /* @__PURE__ */ jsx(
831
426
  "ul",
832
427
  {
833
428
  "data-slot": "sidebar-menu",
@@ -838,7 +433,7 @@ function SidebarMenu({ className, ...props }) {
838
433
  );
839
434
  }
840
435
  function SidebarMenuItem({ className, ...props }) {
841
- return /* @__PURE__ */ jsx9(
436
+ return /* @__PURE__ */ jsx(
842
437
  "li",
843
438
  {
844
439
  "data-slot": "sidebar-menu-item",
@@ -848,8 +443,8 @@ function SidebarMenuItem({ className, ...props }) {
848
443
  }
849
444
  );
850
445
  }
851
- var sidebarMenuButtonVariants = cva4(
852
- "peer/menu-button group/menu-button flex w-full items-center gap-3 overflow-hidden rounded-[10px] px-3 py-3 text-left text-gdt-sm font-semibold text-fg-secondary outline-hidden transition-[width,height,padding,gap,color,background-color] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:px-2! group-data-[collapsible=icon]:[&>span]:max-w-0 group-data-[collapsible=icon]:[&>span]:opacity-0 hover:bg-surface-raised hover:text-fg-primary focus-visible:inset-ring-1 inset-ring-line-focus active:bg-surface-raised active:text-fg-primary disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-surface-raised data-open:hover:text-fg-primary data-active:bg-surface-brand-subtle data-active:font-medium data-active:text-fg-brand [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-current [&>span]:min-w-0 [&>span]:truncate",
446
+ var sidebarMenuButtonVariants = cva(
447
+ "peer/menu-button group/menu-button flex w-full items-center gap-3 overflow-hidden rounded-[10px] px-3 py-3 text-left text-gdt-sm font-semibold text-fg-secondary outline-hidden transition-[width,height,padding,gap,color,background-color] duration-200 ease-out group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:px-5! group-data-[collapsible=icon]:[&>span]:max-w-0 group-data-[collapsible=icon]:[&>span]:opacity-0 hover:bg-surface-raised hover:text-fg-primary focus-visible:inset-ring-1 inset-ring-line-focus active:bg-surface-raised active:text-fg-primary disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-surface-raised data-open:hover:text-fg-primary data-active:bg-surface-brand-subtle data-active:font-medium data-active:text-fg-brand [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-current [&>span]:min-w-0 [&>span]:truncate [&>span]:transition-[max-width,opacity] [&>span]:duration-200 [&>span]:ease-out",
853
448
  {
854
449
  variants: {
855
450
  variant: {
@@ -859,7 +454,7 @@ var sidebarMenuButtonVariants = cva4(
859
454
  size: {
860
455
  md: "h-12",
861
456
  sm: "h-9 text-xs",
862
- lg: "h-12 group-data-[collapsible=icon]:size-12 group-data-[collapsible=icon]:p-3! [&_svg]:size-5"
457
+ lg: "h-12 group-data-[collapsible=icon]:px-[18px]! [&_svg]:size-5"
863
458
  }
864
459
  },
865
460
  defaultVariants: {
@@ -886,7 +481,7 @@ function SidebarMenuButton({
886
481
  },
887
482
  props
888
483
  ),
889
- render: !tooltip ? render : /* @__PURE__ */ jsx9(TooltipTrigger, { render }),
484
+ render: !tooltip ? render : /* @__PURE__ */ jsx(TooltipTrigger, { render }),
890
485
  state: {
891
486
  slot: "sidebar-menu-button",
892
487
  sidebar: "menu-button",
@@ -902,9 +497,9 @@ function SidebarMenuButton({
902
497
  children: tooltip
903
498
  };
904
499
  }
905
- return /* @__PURE__ */ jsxs4(Tooltip, { children: [
500
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [
906
501
  comp,
907
- /* @__PURE__ */ jsx9(
502
+ /* @__PURE__ */ jsx(
908
503
  TooltipContent,
909
504
  {
910
505
  side: "right",
@@ -944,7 +539,7 @@ function SidebarMenuBadge({
944
539
  className,
945
540
  ...props
946
541
  }) {
947
- return /* @__PURE__ */ jsx9(
542
+ return /* @__PURE__ */ jsx(
948
543
  "div",
949
544
  {
950
545
  "data-slot": "sidebar-menu-badge",
@@ -962,10 +557,10 @@ function SidebarMenuSkeleton({
962
557
  showIcon = false,
963
558
  ...props
964
559
  }) {
965
- const [width] = React2.useState(() => {
560
+ const [width] = React.useState(() => {
966
561
  return `${Math.floor(Math.random() * 40) + 50}%`;
967
562
  });
968
- return /* @__PURE__ */ jsxs4(
563
+ return /* @__PURE__ */ jsxs(
969
564
  "div",
970
565
  {
971
566
  "data-slot": "sidebar-menu-skeleton",
@@ -973,14 +568,14 @@ function SidebarMenuSkeleton({
973
568
  className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
974
569
  ...props,
975
570
  children: [
976
- showIcon && /* @__PURE__ */ jsx9(
571
+ showIcon && /* @__PURE__ */ jsx(
977
572
  Skeleton,
978
573
  {
979
574
  className: "size-4 rounded-md",
980
575
  "data-sidebar": "menu-skeleton-icon"
981
576
  }
982
577
  ),
983
- /* @__PURE__ */ jsx9(
578
+ /* @__PURE__ */ jsx(
984
579
  Skeleton,
985
580
  {
986
581
  className: "h-4 max-w-(--skeleton-width) flex-1",
@@ -995,7 +590,7 @@ function SidebarMenuSkeleton({
995
590
  );
996
591
  }
997
592
  function SidebarMenuSub({ className, ...props }) {
998
- return /* @__PURE__ */ jsx9(
593
+ return /* @__PURE__ */ jsx(
999
594
  "ul",
1000
595
  {
1001
596
  "data-slot": "sidebar-menu-sub",
@@ -1012,7 +607,7 @@ function SidebarMenuSubItem({
1012
607
  className,
1013
608
  ...props
1014
609
  }) {
1015
- return /* @__PURE__ */ jsx9(
610
+ return /* @__PURE__ */ jsx(
1016
611
  "li",
1017
612
  {
1018
613
  "data-slot": "sidebar-menu-sub-item",
@@ -1034,7 +629,7 @@ function SidebarMenuSubButton({
1034
629
  props: mergeProps(
1035
630
  {
1036
631
  className: cn(
1037
- "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-fg-secondary outline-hidden group-data-[collapsible=icon]:hidden hover:bg-surface-raised hover:text-fg-primary focus-visible:shadow-[0px_0px_0px_2px_var(--color-line-focus)] active:bg-surface-raised active:text-fg-primary disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-surface-brand-subtle data-active:text-fg-brand [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-fg-muted",
632
+ "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-fg-secondary outline-hidden group-data-[collapsible=icon]:hidden hover:bg-surface-raised hover:text-fg-primary focus-visible:shadow-[0px_0px_0px_2px_var(--color-line-focus)] active:bg-surface-raised active:text-fg-primary disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-surface-brand-subtle data-active:text-fg-brand [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-fg-caption-placeholder",
1038
633
  className
1039
634
  )
1040
635
  },