@skybin-tech/nebula-ui 0.0.26 → 0.0.27

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 (286) hide show
  1. package/dist/cjs/_virtual/_rolldown/runtime.cjs +24 -0
  2. package/dist/cjs/components/Accordion/Accordion.cjs +20 -10
  3. package/dist/cjs/components/Accordion/Accordion.cjs.map +1 -1
  4. package/dist/cjs/components/Alert/Alert.cjs +19 -9
  5. package/dist/cjs/components/Alert/Alert.cjs.map +1 -1
  6. package/dist/cjs/components/Avatar/Avatar.cjs +19 -9
  7. package/dist/cjs/components/Avatar/Avatar.cjs.map +1 -1
  8. package/dist/cjs/components/Badge/Badge.cjs +8 -7
  9. package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
  10. package/dist/cjs/components/Button/Button.cjs +37 -47
  11. package/dist/cjs/components/Button/Button.cjs.map +1 -1
  12. package/dist/cjs/components/Card/Card.cjs +31 -12
  13. package/dist/cjs/components/Card/Card.cjs.map +1 -1
  14. package/dist/cjs/components/Checkbox/Checkbox.cjs +12 -7
  15. package/dist/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
  16. package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs +55 -21
  17. package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  18. package/dist/cjs/components/Form/Checkbox.cjs +128 -142
  19. package/dist/cjs/components/Form/Checkbox.cjs.map +1 -1
  20. package/dist/cjs/components/Form/Form.cjs +106 -105
  21. package/dist/cjs/components/Form/Form.cjs.map +1 -1
  22. package/dist/cjs/components/Form/FormSwitch.cjs +126 -0
  23. package/dist/cjs/components/Form/FormSwitch.cjs.map +1 -0
  24. package/dist/cjs/components/Form/Radio.cjs +157 -172
  25. package/dist/cjs/components/Form/Radio.cjs.map +1 -1
  26. package/dist/cjs/components/Form/TextArea.cjs +137 -152
  27. package/dist/cjs/components/Form/TextArea.cjs.map +1 -1
  28. package/dist/cjs/components/Form/TextBox.cjs +184 -206
  29. package/dist/cjs/components/Form/TextBox.cjs.map +1 -1
  30. package/dist/cjs/components/Form/context.cjs +109 -122
  31. package/dist/cjs/components/Form/context.cjs.map +1 -1
  32. package/dist/cjs/components/Form/hooks.cjs +34 -24
  33. package/dist/cjs/components/Form/hooks.cjs.map +1 -1
  34. package/dist/cjs/components/Form/variants.cjs +14 -14
  35. package/dist/cjs/components/Form/variants.cjs.map +1 -1
  36. package/dist/cjs/components/Input/Input.cjs +11 -7
  37. package/dist/cjs/components/Input/Input.cjs.map +1 -1
  38. package/dist/cjs/components/Label/Label.cjs +11 -7
  39. package/dist/cjs/components/Label/Label.cjs.map +1 -1
  40. package/dist/cjs/components/Pagination/Pagination.cjs +58 -95
  41. package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -1
  42. package/dist/cjs/components/Separator/Separator.cjs +11 -7
  43. package/dist/cjs/components/Separator/Separator.cjs.map +1 -1
  44. package/dist/cjs/components/Skeleton/Skeleton.cjs +7 -6
  45. package/dist/cjs/components/Skeleton/Skeleton.cjs.map +1 -1
  46. package/dist/cjs/components/Switch/Switch.cjs +14 -0
  47. package/dist/cjs/components/Switch/Switch.cjs.map +1 -0
  48. package/dist/cjs/components/Tabs/Tabs.cjs +23 -10
  49. package/dist/cjs/components/Tabs/Tabs.cjs.map +1 -1
  50. package/dist/cjs/components/Textarea/Textarea.cjs +11 -7
  51. package/dist/cjs/components/Textarea/Textarea.cjs.map +1 -1
  52. package/dist/cjs/components/Tooltip/Tooltip.cjs +14 -10
  53. package/dist/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
  54. package/dist/cjs/hooks/useDebounce.cjs +22 -14
  55. package/dist/cjs/hooks/useDebounce.cjs.map +1 -1
  56. package/dist/cjs/hooks/useToast.cjs +105 -84
  57. package/dist/cjs/hooks/useToast.cjs.map +1 -1
  58. package/dist/cjs/hooks/useToggle.cjs +15 -9
  59. package/dist/cjs/hooks/useToggle.cjs.map +1 -1
  60. package/dist/cjs/index.cjs +170 -170
  61. package/dist/cjs/primitives/accordion.cjs +38 -61
  62. package/dist/cjs/primitives/accordion.cjs.map +1 -1
  63. package/dist/cjs/primitives/alert.cjs +33 -63
  64. package/dist/cjs/primitives/alert.cjs.map +1 -1
  65. package/dist/cjs/primitives/avatar.cjs +29 -58
  66. package/dist/cjs/primitives/avatar.cjs.map +1 -1
  67. package/dist/cjs/primitives/badge.cjs +26 -27
  68. package/dist/cjs/primitives/badge.cjs.map +1 -1
  69. package/dist/cjs/primitives/button.cjs +44 -63
  70. package/dist/cjs/primitives/button.cjs.map +1 -1
  71. package/dist/cjs/primitives/calendar.cjs +41 -44
  72. package/dist/cjs/primitives/calendar.cjs.map +1 -1
  73. package/dist/cjs/primitives/card.cjs +39 -70
  74. package/dist/cjs/primitives/card.cjs.map +1 -1
  75. package/dist/cjs/primitives/checkbox.cjs +22 -45
  76. package/dist/cjs/primitives/checkbox.cjs.map +1 -1
  77. package/dist/cjs/primitives/command.cjs +65 -73
  78. package/dist/cjs/primitives/command.cjs.map +1 -1
  79. package/dist/cjs/primitives/dialog.cjs +55 -84
  80. package/dist/cjs/primitives/dialog.cjs.map +1 -1
  81. package/dist/cjs/primitives/dropdown-menu.cjs +82 -153
  82. package/dist/cjs/primitives/dropdown-menu.cjs.map +1 -1
  83. package/dist/cjs/primitives/input.cjs +17 -39
  84. package/dist/cjs/primitives/input.cjs.map +1 -1
  85. package/dist/cjs/primitives/label.cjs +19 -38
  86. package/dist/cjs/primitives/label.cjs.map +1 -1
  87. package/dist/cjs/primitives/popover.cjs +22 -42
  88. package/dist/cjs/primitives/popover.cjs.map +1 -1
  89. package/dist/cjs/primitives/radio-group.cjs +31 -50
  90. package/dist/cjs/primitives/radio-group.cjs.map +1 -1
  91. package/dist/cjs/primitives/scroll-area.cjs +33 -55
  92. package/dist/cjs/primitives/scroll-area.cjs.map +1 -1
  93. package/dist/cjs/primitives/select.cjs +76 -133
  94. package/dist/cjs/primitives/select.cjs.map +1 -1
  95. package/dist/cjs/primitives/separator.cjs +20 -42
  96. package/dist/cjs/primitives/separator.cjs.map +1 -1
  97. package/dist/cjs/primitives/skeleton.cjs +10 -12
  98. package/dist/cjs/primitives/skeleton.cjs.map +1 -1
  99. package/dist/cjs/primitives/sonner.cjs +16 -20
  100. package/dist/cjs/primitives/sonner.cjs.map +1 -1
  101. package/dist/cjs/primitives/switch.cjs +19 -45
  102. package/dist/cjs/primitives/switch.cjs.map +1 -1
  103. package/dist/cjs/primitives/table.cjs +52 -61
  104. package/dist/cjs/primitives/table.cjs.map +1 -1
  105. package/dist/cjs/primitives/tabs.cjs +30 -62
  106. package/dist/cjs/primitives/tabs.cjs.map +1 -1
  107. package/dist/cjs/primitives/textarea.cjs +15 -35
  108. package/dist/cjs/primitives/textarea.cjs.map +1 -1
  109. package/dist/cjs/primitives/textbox.cjs +17 -39
  110. package/dist/cjs/primitives/textbox.cjs.map +1 -1
  111. package/dist/cjs/primitives/toast.cjs +59 -107
  112. package/dist/cjs/primitives/toast.cjs.map +1 -1
  113. package/dist/cjs/primitives/toggle.cjs +39 -55
  114. package/dist/cjs/primitives/toggle.cjs.map +1 -1
  115. package/dist/cjs/primitives/tooltip.cjs +21 -41
  116. package/dist/cjs/primitives/tooltip.cjs.map +1 -1
  117. package/dist/cjs/utils/cn.cjs +11 -6
  118. package/dist/cjs/utils/cn.cjs.map +1 -1
  119. package/dist/components/Accordion/Accordion.js +20 -13
  120. package/dist/components/Accordion/Accordion.js.map +1 -1
  121. package/dist/components/Alert/Alert.js +19 -11
  122. package/dist/components/Alert/Alert.js.map +1 -1
  123. package/dist/components/Avatar/Avatar.js +19 -11
  124. package/dist/components/Avatar/Avatar.js.map +1 -1
  125. package/dist/components/Badge/Badge.d.ts +1 -1
  126. package/dist/components/Badge/Badge.d.ts.map +1 -1
  127. package/dist/components/Badge/Badge.js +8 -8
  128. package/dist/components/Badge/Badge.js.map +1 -1
  129. package/dist/components/Button/Button.js +37 -48
  130. package/dist/components/Button/Button.js.map +1 -1
  131. package/dist/components/Card/Card.js +31 -17
  132. package/dist/components/Card/Card.js.map +1 -1
  133. package/dist/components/Checkbox/Checkbox.js +12 -7
  134. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  135. package/dist/components/DropdownMenu/DropdownMenu.d.ts +4 -4
  136. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  137. package/dist/components/DropdownMenu/DropdownMenu.js +55 -35
  138. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  139. package/dist/components/Form/Checkbox.js +126 -140
  140. package/dist/components/Form/Checkbox.js.map +1 -1
  141. package/dist/components/Form/Form.d.ts +1 -1
  142. package/dist/components/Form/Form.d.ts.map +1 -1
  143. package/dist/components/Form/Form.js +104 -103
  144. package/dist/components/Form/Form.js.map +1 -1
  145. package/dist/components/Form/{Switch.d.ts → FormSwitch.d.ts} +3 -3
  146. package/dist/components/Form/FormSwitch.d.ts.map +1 -0
  147. package/dist/components/Form/FormSwitch.js +126 -0
  148. package/dist/components/Form/FormSwitch.js.map +1 -0
  149. package/dist/components/Form/Radio.d.ts +1 -1
  150. package/dist/components/Form/Radio.d.ts.map +1 -1
  151. package/dist/components/Form/Radio.js +155 -171
  152. package/dist/components/Form/Radio.js.map +1 -1
  153. package/dist/components/Form/Select.d.ts +1 -1
  154. package/dist/components/Form/Select.d.ts.map +1 -1
  155. package/dist/components/Form/TextArea.js +134 -149
  156. package/dist/components/Form/TextArea.js.map +1 -1
  157. package/dist/components/Form/TextBox.js +179 -201
  158. package/dist/components/Form/TextBox.js.map +1 -1
  159. package/dist/components/Form/context.d.ts +3 -5
  160. package/dist/components/Form/context.d.ts.map +1 -1
  161. package/dist/components/Form/context.js +109 -125
  162. package/dist/components/Form/context.js.map +1 -1
  163. package/dist/components/Form/hooks.js +35 -28
  164. package/dist/components/Form/hooks.js.map +1 -1
  165. package/dist/components/Form/index.d.ts +2 -2
  166. package/dist/components/Form/index.d.ts.map +1 -1
  167. package/dist/components/Form/variants.js +15 -14
  168. package/dist/components/Form/variants.js.map +1 -1
  169. package/dist/components/Input/Input.js +11 -7
  170. package/dist/components/Input/Input.js.map +1 -1
  171. package/dist/components/Label/Label.js +11 -7
  172. package/dist/components/Label/Label.js.map +1 -1
  173. package/dist/components/Pagination/Pagination.d.ts +5 -5
  174. package/dist/components/Pagination/Pagination.js +55 -83
  175. package/dist/components/Pagination/Pagination.js.map +1 -1
  176. package/dist/components/Separator/Separator.js +11 -7
  177. package/dist/components/Separator/Separator.js.map +1 -1
  178. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  179. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
  180. package/dist/components/Skeleton/Skeleton.js +7 -6
  181. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  182. package/dist/components/Switch/Switch.d.ts +4 -1
  183. package/dist/components/Switch/Switch.d.ts.map +1 -1
  184. package/dist/components/Switch/Switch.js +14 -0
  185. package/dist/components/Switch/Switch.js.map +1 -0
  186. package/dist/components/Switch/index.d.ts +1 -0
  187. package/dist/components/Switch/index.d.ts.map +1 -1
  188. package/dist/components/Tabs/Tabs.js +23 -13
  189. package/dist/components/Tabs/Tabs.js.map +1 -1
  190. package/dist/components/Textarea/Textarea.js +11 -7
  191. package/dist/components/Textarea/Textarea.js.map +1 -1
  192. package/dist/components/Tooltip/Tooltip.js +14 -13
  193. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  194. package/dist/hooks/useDebounce.js +23 -15
  195. package/dist/hooks/useDebounce.js.map +1 -1
  196. package/dist/hooks/useToast.js +103 -69
  197. package/dist/hooks/useToast.js.map +1 -1
  198. package/dist/hooks/useToggle.js +16 -10
  199. package/dist/hooks/useToggle.js.map +1 -1
  200. package/dist/index.d.ts +4 -2
  201. package/dist/index.d.ts.map +1 -1
  202. package/dist/index.js +29 -160
  203. package/dist/primitives/accordion.js +32 -43
  204. package/dist/primitives/accordion.js.map +1 -1
  205. package/dist/primitives/alert.js +30 -47
  206. package/dist/primitives/alert.js.map +1 -1
  207. package/dist/primitives/avatar.js +22 -38
  208. package/dist/primitives/avatar.js.map +1 -1
  209. package/dist/primitives/badge.d.ts +1 -1
  210. package/dist/primitives/badge.d.ts.map +1 -1
  211. package/dist/primitives/badge.js +23 -27
  212. package/dist/primitives/badge.js.map +1 -1
  213. package/dist/primitives/button.js +41 -46
  214. package/dist/primitives/button.js.map +1 -1
  215. package/dist/primitives/calendar.d.ts +1 -1
  216. package/dist/primitives/calendar.d.ts.map +1 -1
  217. package/dist/primitives/calendar.js +37 -42
  218. package/dist/primitives/calendar.js.map +1 -1
  219. package/dist/primitives/card.js +37 -58
  220. package/dist/primitives/card.js.map +1 -1
  221. package/dist/primitives/checkbox.js +17 -25
  222. package/dist/primitives/checkbox.js.map +1 -1
  223. package/dist/primitives/command.d.ts +2 -2
  224. package/dist/primitives/command.d.ts.map +1 -1
  225. package/dist/primitives/command.js +70 -71
  226. package/dist/primitives/command.js.map +1 -1
  227. package/dist/primitives/dialog.d.ts +2 -2
  228. package/dist/primitives/dialog.js +47 -70
  229. package/dist/primitives/dialog.js.map +1 -1
  230. package/dist/primitives/dropdown-menu.d.ts +1 -1
  231. package/dist/primitives/dropdown-menu.js +70 -140
  232. package/dist/primitives/dropdown-menu.js.map +1 -1
  233. package/dist/primitives/input.js +15 -22
  234. package/dist/primitives/input.js.map +1 -1
  235. package/dist/primitives/label.js +14 -18
  236. package/dist/primitives/label.js.map +1 -1
  237. package/dist/primitives/popover.js +17 -25
  238. package/dist/primitives/popover.js.map +1 -1
  239. package/dist/primitives/radio-group.js +25 -30
  240. package/dist/primitives/radio-group.js.map +1 -1
  241. package/dist/primitives/scroll-area.js +27 -35
  242. package/dist/primitives/scroll-area.js.map +1 -1
  243. package/dist/primitives/select.js +65 -116
  244. package/dist/primitives/select.js.map +1 -1
  245. package/dist/primitives/separator.js +15 -22
  246. package/dist/primitives/separator.js.map +1 -1
  247. package/dist/primitives/skeleton.d.ts +1 -1
  248. package/dist/primitives/skeleton.d.ts.map +1 -1
  249. package/dist/primitives/skeleton.js +10 -12
  250. package/dist/primitives/skeleton.js.map +1 -1
  251. package/dist/primitives/sonner.d.ts +1 -1
  252. package/dist/primitives/sonner.d.ts.map +1 -1
  253. package/dist/primitives/sonner.js +17 -21
  254. package/dist/primitives/sonner.js.map +1 -1
  255. package/dist/primitives/switch.js +14 -25
  256. package/dist/primitives/switch.js.map +1 -1
  257. package/dist/primitives/table.js +50 -51
  258. package/dist/primitives/table.js.map +1 -1
  259. package/dist/primitives/tabs.js +23 -43
  260. package/dist/primitives/tabs.js.map +1 -1
  261. package/dist/primitives/textarea.js +13 -18
  262. package/dist/primitives/textarea.js.map +1 -1
  263. package/dist/primitives/textbox.js +15 -22
  264. package/dist/primitives/textbox.js.map +1 -1
  265. package/dist/primitives/toast.js +48 -87
  266. package/dist/primitives/toast.js.map +1 -1
  267. package/dist/primitives/toggle.js +34 -36
  268. package/dist/primitives/toggle.js.map +1 -1
  269. package/dist/primitives/tooltip.js +16 -24
  270. package/dist/primitives/tooltip.js.map +1 -1
  271. package/dist/stories/Button.d.ts +1 -1
  272. package/dist/stories/Button.d.ts.map +1 -1
  273. package/dist/stories/Button.stories.d.ts +1 -1
  274. package/dist/stories/Header.d.ts +1 -1
  275. package/dist/stories/Header.d.ts.map +1 -1
  276. package/dist/stories/Header.stories.d.ts +1 -1
  277. package/dist/utils/cn.js +10 -5
  278. package/dist/utils/cn.js.map +1 -1
  279. package/package.json +44 -37
  280. package/dist/cjs/components/Form/Switch.cjs +0 -126
  281. package/dist/cjs/components/Form/Switch.cjs.map +0 -1
  282. package/dist/cjs/index.cjs.map +0 -1
  283. package/dist/components/Form/Switch.d.ts.map +0 -1
  284. package/dist/components/Form/Switch.js +0 -126
  285. package/dist/components/Form/Switch.js.map +0 -1
  286. package/dist/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAE/E,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAA;AAE5C,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAEtC;yBAFe,KAAK;;;AAKrB,eAAO,MAAM,aAAa;;8EAAyB,CAAA"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAE/E,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAA;AAE5C,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAEtC;yBAFe,KAAK;;;AAKrB,eAAO,MAAM,aAAa;;8EAAyB,CAAA"}
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import { Badge as Badge$1, badgeVariants as badgeVariants$1 } from "../../primitives/badge.js";
2
3
  import { jsx } from "react/jsx-runtime";
3
- import { badgeVariants as badgeVariants$1, Badge as Badge$1 } from "../../primitives/badge.js";
4
+ //#region src/components/Badge/Badge.tsx
4
5
  function Badge(props) {
5
- return /* @__PURE__ */ jsx(Badge$1, { ...props });
6
+ return /* @__PURE__ */ jsx(Badge$1, { ...props });
6
7
  }
7
8
  Badge.displayName = "Badge";
8
- const badgeVariants = badgeVariants$1;
9
- export {
10
- Badge,
11
- badgeVariants
12
- };
13
- //# sourceMappingURL=Badge.js.map
9
+ var badgeVariants = badgeVariants$1;
10
+ //#endregion
11
+ export { Badge, badgeVariants };
12
+
13
+ //# sourceMappingURL=Badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { Badge as BadgePrimitive, badgeVariants as badgeVariantsPrimitive } from \"../../primitives/badge\"\nimport type { BadgeProps as BadgePrimitiveProps } from \"../../primitives/badge\"\n\nexport type BadgeProps = BadgePrimitiveProps\n\nexport function Badge(props: BadgeProps) {\n return <BadgePrimitive {...props} />\n}\nBadge.displayName = \"Badge\"\n\nexport const badgeVariants = badgeVariantsPrimitive\n"],"names":["BadgePrimitive","badgeVariantsPrimitive"],"mappings":";;;AAKO,SAAS,MAAM,OAAmB;AACvC,SAAO,oBAACA,SAAA,EAAgB,GAAG,MAAA,CAAO;AACpC;AACA,MAAM,cAAc;AAEb,MAAM,gBAAgBC;"}
1
+ {"version":3,"file":"Badge.js","names":[],"sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { Badge as BadgePrimitive, badgeVariants as badgeVariantsPrimitive } from \"../../primitives/badge\"\nimport type { BadgeProps as BadgePrimitiveProps } from \"../../primitives/badge\"\n\nexport type BadgeProps = BadgePrimitiveProps\n\nexport function Badge(props: BadgeProps) {\n return <BadgePrimitive {...props} />\n}\nBadge.displayName = \"Badge\"\n\nexport const badgeVariants = badgeVariantsPrimitive\n"],"mappings":";;;;AAKA,SAAgB,MAAM,OAAmB;CACvC,OAAO,oBAAC,SAAD,EAAgB,GAAI,MAAQ,CAAA;AACrC;AACA,MAAM,cAAc;AAEpB,IAAa,gBAAgB"}
@@ -1,55 +1,44 @@
1
1
  "use client";
2
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { cn } from "../../utils/cn.js";
3
+ import { ButtonPrimitive, buttonVariants as buttonVariants$1 } from "../../primitives/button.js";
3
4
  import { forwardRef } from "react";
4
5
  import "class-variance-authority";
5
- import { cn } from "../../utils/cn.js";
6
- import { buttonVariants as buttonVariants$1, ButtonPrimitive } from "../../primitives/button.js";
7
- const buttonVariants = buttonVariants$1;
8
- const variantMap = {
9
- primary: "default",
10
- secondary: "secondary",
11
- outline: "outline",
12
- ghost: "ghost",
13
- danger: "destructive"
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ //#region src/components/Button/Button.tsx
8
+ var buttonVariants = buttonVariants$1;
9
+ var variantMap = {
10
+ primary: "default",
11
+ secondary: "secondary",
12
+ outline: "outline",
13
+ ghost: "ghost",
14
+ danger: "destructive"
14
15
  };
15
- const sizeMap = {
16
- sm: "sm",
17
- md: "default",
18
- lg: "lg"
16
+ var sizeMap = {
17
+ sm: "sm",
18
+ md: "default",
19
+ lg: "lg"
19
20
  };
20
- const Button = forwardRef(function Button2({
21
- children,
22
- variant = "primary",
23
- size = "md",
24
- fullWidth = false,
25
- loading = false,
26
- disabled,
27
- className,
28
- asChild = false,
29
- style,
30
- ...props
31
- }, ref) {
32
- return /* @__PURE__ */ jsx(
33
- ButtonPrimitive,
34
- {
35
- ref,
36
- variant: variantMap[variant],
37
- size: sizeMap[size],
38
- asChild,
39
- disabled: disabled || loading,
40
- className: cn(fullWidth && "w-full", "relative cursor-pointer", className),
41
- style,
42
- ...props,
43
- children: asChild ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
44
- loading && /* @__PURE__ */ jsx("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "size-4 border-2 border-current border-r-transparent rounded-full animate-spin" }) }),
45
- /* @__PURE__ */ jsx("span", { className: cn("inline-flex items-center gap-2", loading && "invisible"), children })
46
- ] })
47
- }
48
- );
21
+ var Button = forwardRef(function Button({ children, variant = "primary", size = "md", fullWidth = false, loading = false, disabled, className, asChild = false, style, ...props }, ref) {
22
+ return /* @__PURE__ */ jsx(ButtonPrimitive, {
23
+ ref,
24
+ variant: variantMap[variant],
25
+ size: sizeMap[size],
26
+ asChild,
27
+ disabled: disabled || loading,
28
+ className: cn(fullWidth && "w-full", "relative cursor-pointer", className),
29
+ style,
30
+ ...props,
31
+ children: asChild ? children : /* @__PURE__ */ jsxs(Fragment, { children: [loading && /* @__PURE__ */ jsx("span", {
32
+ className: "absolute inset-0 flex items-center justify-center",
33
+ children: /* @__PURE__ */ jsx("span", { className: "size-4 border-2 border-current border-r-transparent rounded-full animate-spin" })
34
+ }), /* @__PURE__ */ jsx("span", {
35
+ className: cn("inline-flex items-center gap-2", loading && "invisible"),
36
+ children
37
+ })] })
38
+ });
49
39
  });
50
40
  Button.displayName = "Button";
51
- export {
52
- Button,
53
- buttonVariants
54
- };
55
- //# sourceMappingURL=Button.js.map
41
+ //#endregion
42
+ export { Button, buttonVariants };
43
+
44
+ //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../utils/cn\";\nimport { ButtonPrimitive, buttonVariants as buttonVariantsPrimitive } from \"../../primitives/button\"\n\nexport const buttonVariants = buttonVariantsPrimitive;\n\ntype PrimitiveVariant = NonNullable<VariantProps<typeof buttonVariants>[\"variant\"]>;\ntype PrimitiveSize = NonNullable<VariantProps<typeof buttonVariants>[\"size\"]>;\n\nconst variantMap: Record<string, PrimitiveVariant> = {\n primary: \"default\",\n secondary: \"secondary\",\n outline: \"outline\",\n ghost: \"ghost\",\n danger: \"destructive\",\n};\n\nconst sizeMap: Record<string, PrimitiveSize> = {\n sm: \"sm\",\n md: \"default\",\n lg: \"lg\",\n};\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style variant */\n variant?: keyof typeof variantMap;\n /** Size of the button */\n size?: keyof typeof sizeMap;\n /** Stretch button to full container width */\n fullWidth?: boolean;\n /** Show a loading spinner and disable interaction */\n loading?: boolean;\n /** Render as child element via Slot (e.g. wrap a Link) */\n asChild?: boolean;\n children: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n children,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n loading = false,\n disabled,\n className,\n asChild = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <ButtonPrimitive\n ref={ref}\n variant={variantMap[variant]}\n size={sizeMap[size]}\n asChild={asChild}\n disabled={disabled || loading}\n className={cn(fullWidth && \"w-full\", \"relative cursor-pointer\", className)}\n style={style}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {loading && (\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <span className=\"size-4 border-2 border-current border-r-transparent rounded-full animate-spin\" />\n </span>\n )}\n <span className={cn(\"inline-flex items-center gap-2\", loading && \"invisible\")}>{children}</span>\n </>\n )}\n </ButtonPrimitive>\n );\n});\n\nButton.displayName = \"Button\";\n"],"names":["buttonVariantsPrimitive","Button"],"mappings":";;;;;;AAKO,MAAM,iBAAiBA;AAK9B,MAAM,aAA+C;AAAA,EACnD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AACV;AAEA,MAAM,UAAyC;AAAA,EAC7C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAgBO,MAAM,SAAS,WAA2C,SAASC,QACxE;AAAA,EACE;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,SAAS,WAAW,OAAO;AAAA,MAC3B,MAAM,QAAQ,IAAI;AAAA,MAClB;AAAA,MACA,UAAU,YAAY;AAAA,MACtB,WAAW,GAAG,aAAa,UAAU,2BAA2B,SAAS;AAAA,MACzE;AAAA,MACC,GAAG;AAAA,MAEH,UAAA,UACC,WAEA,qBAAA,UAAA,EACG,UAAA;AAAA,QAAA,WACC,oBAAC,UAAK,WAAU,qDACd,8BAAC,QAAA,EAAK,WAAU,iFAAgF,EAAA,CAClG;AAAA,QAEF,oBAAC,UAAK,WAAW,GAAG,kCAAkC,WAAW,WAAW,GAAI,SAAA,CAAS;AAAA,MAAA,EAAA,CAC3F;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;AAED,OAAO,cAAc;"}
1
+ {"version":3,"file":"Button.js","names":[],"sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../utils/cn\";\nimport { ButtonPrimitive, buttonVariants as buttonVariantsPrimitive } from \"../../primitives/button\"\n\nexport const buttonVariants = buttonVariantsPrimitive;\n\ntype PrimitiveVariant = NonNullable<VariantProps<typeof buttonVariants>[\"variant\"]>;\ntype PrimitiveSize = NonNullable<VariantProps<typeof buttonVariants>[\"size\"]>;\n\nconst variantMap: Record<string, PrimitiveVariant> = {\n primary: \"default\",\n secondary: \"secondary\",\n outline: \"outline\",\n ghost: \"ghost\",\n danger: \"destructive\",\n};\n\nconst sizeMap: Record<string, PrimitiveSize> = {\n sm: \"sm\",\n md: \"default\",\n lg: \"lg\",\n};\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style variant */\n variant?: keyof typeof variantMap;\n /** Size of the button */\n size?: keyof typeof sizeMap;\n /** Stretch button to full container width */\n fullWidth?: boolean;\n /** Show a loading spinner and disable interaction */\n loading?: boolean;\n /** Render as child element via Slot (e.g. wrap a Link) */\n asChild?: boolean;\n children: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n children,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n loading = false,\n disabled,\n className,\n asChild = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <ButtonPrimitive\n ref={ref}\n variant={variantMap[variant]}\n size={sizeMap[size]}\n asChild={asChild}\n disabled={disabled || loading}\n className={cn(fullWidth && \"w-full\", \"relative cursor-pointer\", className)}\n style={style}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {loading && (\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <span className=\"size-4 border-2 border-current border-r-transparent rounded-full animate-spin\" />\n </span>\n )}\n <span className={cn(\"inline-flex items-center gap-2\", loading && \"invisible\")}>{children}</span>\n </>\n )}\n </ButtonPrimitive>\n );\n});\n\nButton.displayName = \"Button\";\n"],"mappings":";;;;;;;AAKA,IAAa,iBAAiB;AAK9B,IAAM,aAA+C;CACnD,SAAS;CACT,WAAW;CACX,SAAS;CACT,OAAO;CACP,QAAQ;AACV;AAEA,IAAM,UAAyC;CAC7C,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;AAgBA,IAAa,SAAS,WAA2C,SAAS,OACxE,EACE,UACA,UAAU,WACV,OAAO,MACP,YAAY,OACZ,UAAU,OACV,UACA,WACA,UAAU,OACV,OACA,GAAG,SAEL,KACA;CACA,OACE,oBAAC,iBAAD;EACO;EACL,SAAS,WAAW;EACpB,MAAM,QAAQ;EACL;EACT,UAAU,YAAY;EACtB,WAAW,GAAG,aAAa,UAAU,2BAA2B,SAAS;EAClE;EACP,GAAI;YAEH,UACC,WAEA,qBAAA,UAAA,EAAA,UAAA,CACG,WACC,oBAAC,QAAD;GAAM,WAAU;aACd,oBAAC,QAAD,EAAM,WAAU,gFAAiF,CAAA;EAC7F,CAAA,GAER,oBAAC,QAAD;GAAM,WAAW,GAAG,kCAAkC,WAAW,WAAW;GAAI;EAAe,CAAA,CAC/F,EAAA,CAAA;CAEW,CAAA;AAErB,CAAC;AAED,OAAO,cAAc"}
@@ -1,25 +1,39 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { forwardRef } from "react";
4
2
  import { Card as Card$1, CardContent as CardContent$1, CardDescription as CardDescription$1, CardFooter as CardFooter$1, CardHeader as CardHeader$1, CardTitle as CardTitle$1 } from "../../primitives/card.js";
5
- const Card = forwardRef((props, ref) => /* @__PURE__ */ jsx(Card$1, { ref, ...props }));
3
+ import { forwardRef } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/Card/Card.tsx
6
+ var Card = forwardRef((props, ref) => /* @__PURE__ */ jsx(Card$1, {
7
+ ref,
8
+ ...props
9
+ }));
6
10
  Card.displayName = "Card";
7
- const CardHeader = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardHeader$1, { ref, ...props }));
11
+ var CardHeader = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardHeader$1, {
12
+ ref,
13
+ ...props
14
+ }));
8
15
  CardHeader.displayName = "CardHeader";
9
- const CardTitle = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardTitle$1, { ref, ...props }));
16
+ var CardTitle = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardTitle$1, {
17
+ ref,
18
+ ...props
19
+ }));
10
20
  CardTitle.displayName = "CardTitle";
11
- const CardDescription = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardDescription$1, { ref, ...props }));
21
+ var CardDescription = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardDescription$1, {
22
+ ref,
23
+ ...props
24
+ }));
12
25
  CardDescription.displayName = "CardDescription";
13
- const CardContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardContent$1, { ref, ...props }));
26
+ var CardContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardContent$1, {
27
+ ref,
28
+ ...props
29
+ }));
14
30
  CardContent.displayName = "CardContent";
15
- const CardFooter = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardFooter$1, { ref, ...props }));
31
+ var CardFooter = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardFooter$1, {
32
+ ref,
33
+ ...props
34
+ }));
16
35
  CardFooter.displayName = "CardFooter";
17
- export {
18
- Card,
19
- CardContent,
20
- CardDescription,
21
- CardFooter,
22
- CardHeader,
23
- CardTitle
24
- };
25
- //# sourceMappingURL=Card.js.map
36
+ //#endregion
37
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
38
+
39
+ //# sourceMappingURL=Card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Card as CardPrimitive,\n CardHeader as CardHeaderPrimitive,\n CardTitle as CardTitlePrimitive,\n CardDescription as CardDescriptionPrimitive,\n CardContent as CardContentPrimitive,\n CardFooter as CardFooterPrimitive,\n} from \"../../primitives/card\"\n\nexport const Card = forwardRef<\n ElementRef<typeof CardPrimitive>,\n ComponentPropsWithoutRef<typeof CardPrimitive>\n>((props, ref) => <CardPrimitive ref={ref} {...props} />)\nCard.displayName = \"Card\"\n\nexport const CardHeader = forwardRef<\n ElementRef<typeof CardHeaderPrimitive>,\n ComponentPropsWithoutRef<typeof CardHeaderPrimitive>\n>((props, ref) => <CardHeaderPrimitive ref={ref} {...props} />)\nCardHeader.displayName = \"CardHeader\"\n\nexport const CardTitle = forwardRef<\n ElementRef<typeof CardTitlePrimitive>,\n ComponentPropsWithoutRef<typeof CardTitlePrimitive>\n>((props, ref) => <CardTitlePrimitive ref={ref} {...props} />)\nCardTitle.displayName = \"CardTitle\"\n\nexport const CardDescription = forwardRef<\n ElementRef<typeof CardDescriptionPrimitive>,\n ComponentPropsWithoutRef<typeof CardDescriptionPrimitive>\n>((props, ref) => <CardDescriptionPrimitive ref={ref} {...props} />)\nCardDescription.displayName = \"CardDescription\"\n\nexport const CardContent = forwardRef<\n ElementRef<typeof CardContentPrimitive>,\n ComponentPropsWithoutRef<typeof CardContentPrimitive>\n>((props, ref) => <CardContentPrimitive ref={ref} {...props} />)\nCardContent.displayName = \"CardContent\"\n\nexport const CardFooter = forwardRef<\n ElementRef<typeof CardFooterPrimitive>,\n ComponentPropsWithoutRef<typeof CardFooterPrimitive>\n>((props, ref) => <CardFooterPrimitive ref={ref} {...props} />)\nCardFooter.displayName = \"CardFooter\"\n"],"names":["CardPrimitive","CardHeaderPrimitive","CardTitlePrimitive","CardDescriptionPrimitive","CardContentPrimitive","CardFooterPrimitive"],"mappings":";;;;AAWO,MAAM,OAAO,WAGlB,CAAC,OAAO,4BAASA,QAAA,EAAc,KAAW,GAAG,OAAO,CAAE;AACxD,KAAK,cAAc;AAEZ,MAAM,aAAa,WAGxB,CAAC,OAAO,4BAASC,cAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;AAElB,MAAM,YAAY,WAGvB,CAAC,OAAO,4BAASC,aAAA,EAAmB,KAAW,GAAG,OAAO,CAAE;AAC7D,UAAU,cAAc;AAEjB,MAAM,kBAAkB,WAG7B,CAAC,OAAO,4BAASC,mBAAA,EAAyB,KAAW,GAAG,OAAO,CAAE;AACnE,gBAAgB,cAAc;AAEvB,MAAM,cAAc,WAGzB,CAAC,OAAO,4BAASC,eAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;AAEnB,MAAM,aAAa,WAGxB,CAAC,OAAO,4BAASC,cAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;"}
1
+ {"version":3,"file":"Card.js","names":[],"sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Card as CardPrimitive,\n CardHeader as CardHeaderPrimitive,\n CardTitle as CardTitlePrimitive,\n CardDescription as CardDescriptionPrimitive,\n CardContent as CardContentPrimitive,\n CardFooter as CardFooterPrimitive,\n} from \"../../primitives/card\"\n\nexport const Card = forwardRef<\n ElementRef<typeof CardPrimitive>,\n ComponentPropsWithoutRef<typeof CardPrimitive>\n>((props, ref) => <CardPrimitive ref={ref} {...props} />)\nCard.displayName = \"Card\"\n\nexport const CardHeader = forwardRef<\n ElementRef<typeof CardHeaderPrimitive>,\n ComponentPropsWithoutRef<typeof CardHeaderPrimitive>\n>((props, ref) => <CardHeaderPrimitive ref={ref} {...props} />)\nCardHeader.displayName = \"CardHeader\"\n\nexport const CardTitle = forwardRef<\n ElementRef<typeof CardTitlePrimitive>,\n ComponentPropsWithoutRef<typeof CardTitlePrimitive>\n>((props, ref) => <CardTitlePrimitive ref={ref} {...props} />)\nCardTitle.displayName = \"CardTitle\"\n\nexport const CardDescription = forwardRef<\n ElementRef<typeof CardDescriptionPrimitive>,\n ComponentPropsWithoutRef<typeof CardDescriptionPrimitive>\n>((props, ref) => <CardDescriptionPrimitive ref={ref} {...props} />)\nCardDescription.displayName = \"CardDescription\"\n\nexport const CardContent = forwardRef<\n ElementRef<typeof CardContentPrimitive>,\n ComponentPropsWithoutRef<typeof CardContentPrimitive>\n>((props, ref) => <CardContentPrimitive ref={ref} {...props} />)\nCardContent.displayName = \"CardContent\"\n\nexport const CardFooter = forwardRef<\n ElementRef<typeof CardFooterPrimitive>,\n ComponentPropsWithoutRef<typeof CardFooterPrimitive>\n>((props, ref) => <CardFooterPrimitive ref={ref} {...props} />)\nCardFooter.displayName = \"CardFooter\"\n"],"mappings":";;;;;AAWA,IAAa,OAAO,YAGjB,OAAO,QAAQ,oBAAC,QAAD;CAAoB;CAAK,GAAI;AAAQ,CAAA,CAAC;AACxD,KAAK,cAAc;AAEnB,IAAa,aAAa,YAGvB,OAAO,QAAQ,oBAAC,cAAD;CAA0B;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC9D,WAAW,cAAc;AAEzB,IAAa,YAAY,YAGtB,OAAO,QAAQ,oBAAC,aAAD;CAAyB;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC7D,UAAU,cAAc;AAExB,IAAa,kBAAkB,YAG5B,OAAO,QAAQ,oBAAC,mBAAD;CAA+B;CAAK,GAAI;AAAQ,CAAA,CAAC;AACnE,gBAAgB,cAAc;AAE9B,IAAa,cAAc,YAGxB,OAAO,QAAQ,oBAAC,eAAD;CAA2B;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC/D,YAAY,cAAc;AAE1B,IAAa,aAAa,YAGvB,OAAO,QAAQ,oBAAC,cAAD;CAA0B;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC9D,WAAW,cAAc"}
@@ -1,10 +1,15 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { forwardRef } from "react";
2
+ "use client";
4
3
  import { Checkbox as Checkbox$1 } from "../../primitives/checkbox.js";
5
- const Checkbox = forwardRef((props, ref) => /* @__PURE__ */ jsx(Checkbox$1, { ref, ...props }));
4
+ import { forwardRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/components/Checkbox/Checkbox.tsx
7
+ var Checkbox = forwardRef((props, ref) => /* @__PURE__ */ jsx(Checkbox$1, {
8
+ ref,
9
+ ...props
10
+ }));
6
11
  Checkbox.displayName = "Checkbox";
7
- export {
8
- Checkbox
9
- };
10
- //# sourceMappingURL=Checkbox.js.map
12
+ //#endregion
13
+ export { Checkbox };
14
+
15
+ //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"../../primitives/checkbox\"\n\nexport type CheckboxProps = ComponentPropsWithoutRef<typeof CheckboxPrimitive>\n\nexport const Checkbox = forwardRef<\n ElementRef<typeof CheckboxPrimitive>,\n CheckboxProps\n>((props, ref) => <CheckboxPrimitive ref={ref} {...props} />)\nCheckbox.displayName = \"Checkbox\"\n"],"names":["CheckboxPrimitive"],"mappings":";;;;AAQO,MAAM,WAAW,WAGtB,CAAC,OAAO,4BAASA,YAAA,EAAkB,KAAW,GAAG,OAAO,CAAE;AAC5D,SAAS,cAAc;"}
1
+ {"version":3,"file":"Checkbox.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"../../primitives/checkbox\"\n\nexport type CheckboxProps = ComponentPropsWithoutRef<typeof CheckboxPrimitive>\n\nexport const Checkbox = forwardRef<\n ElementRef<typeof CheckboxPrimitive>,\n CheckboxProps\n>((props, ref) => <CheckboxPrimitive ref={ref} {...props} />)\nCheckbox.displayName = \"Checkbox\"\n"],"mappings":";;;;;;AAQA,IAAa,WAAW,YAGrB,OAAO,QAAQ,oBAAC,YAAD;CAAwB;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC5D,SAAS,cAAc"}
@@ -1,8 +1,8 @@
1
1
  import { ComponentPropsWithoutRef, HTMLAttributes } from 'react';
2
2
  import { DropdownMenu as DropdownMenuPrimitive, DropdownMenuPortal as DropdownMenuPortalPrimitive, DropdownMenuSub as DropdownMenuSubPrimitive } from '../../primitives/dropdown-menu';
3
- export declare function DropdownMenu(props: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive>): import("react/jsx-runtime").JSX.Element;
4
- export declare function DropdownMenuPortal(props: ComponentPropsWithoutRef<typeof DropdownMenuPortalPrimitive>): import("react/jsx-runtime").JSX.Element;
5
- export declare function DropdownMenuSub(props: ComponentPropsWithoutRef<typeof DropdownMenuSubPrimitive>): import("react/jsx-runtime").JSX.Element;
3
+ export declare function DropdownMenu(props: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive>): import("react").JSX.Element;
4
+ export declare function DropdownMenuPortal(props: ComponentPropsWithoutRef<typeof DropdownMenuPortalPrimitive>): import("react").JSX.Element;
5
+ export declare function DropdownMenuSub(props: ComponentPropsWithoutRef<typeof DropdownMenuSubPrimitive>): import("react").JSX.Element;
6
6
  export declare const DropdownMenuTrigger: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-dropdown-menu').DropdownMenuTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
7
7
  export declare const DropdownMenuGroup: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-dropdown-menu').DropdownMenuGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
8
  export declare const DropdownMenuRadioGroup: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-dropdown-menu').DropdownMenuRadioGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -20,7 +20,7 @@ export declare const DropdownMenuLabel: import('react').ForwardRefExoticComponen
20
20
  inset?: boolean;
21
21
  } & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
22
22
  export declare const DropdownMenuSeparator: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dropdown-menu').DropdownMenuSeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
23
- export declare function DropdownMenuShortcut(props: HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
23
+ export declare function DropdownMenuShortcut(props: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
24
24
  export declare namespace DropdownMenuShortcut {
25
25
  var displayName: string;
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAc,cAAc,EAAE,MAAM,OAAO,CAAA;AACjF,OAAO,EACL,YAAY,IAAI,qBAAqB,EAUrC,kBAAkB,IAAI,2BAA2B,EACjD,eAAe,IAAI,wBAAwB,EAI5C,MAAM,gCAAgC,CAAA;AAGvC,wBAAgB,YAAY,CAAC,KAAK,EAAE,wBAAwB,CAAC,OAAO,qBAAqB,CAAC,2CAEzF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,wBAAwB,CAAC,OAAO,2BAA2B,CAAC,2CAErG;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,wBAAwB,CAAC,OAAO,wBAAwB,CAAC,2CAE/F;AAGD,eAAO,MAAM,mBAAmB,gOAGwC,CAAA;AAGxE,eAAO,MAAM,iBAAiB,wNAGwC,CAAA;AAGtE,eAAO,MAAM,sBAAsB,6NAGwC,CAAA;AAG3E,eAAO,MAAM,mBAAmB,uRAGwC,CAAA;AAGxE,eAAO,MAAM,sBAAsB,0RAGwC,CAAA;AAG3E,eAAO,MAAM,sBAAsB;;0GAGwC,CAAA;AAG3E,eAAO,MAAM,gBAAgB;;0GAGwC,CAAA;AAGrE,eAAO,MAAM,wBAAwB,4RAGwC,CAAA;AAG7E,eAAO,MAAM,qBAAqB,yRAGwC,CAAA;AAG1E,eAAO,MAAM,iBAAiB;;0GAGwC,CAAA;AAGtE,eAAO,MAAM,qBAAqB,yRAGwC,CAAA;AAI1E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,CAAC,eAAe,CAAC,2CAE1E;yBAFe,oBAAoB"}
1
+ {"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAc,cAAc,EAAE,MAAM,OAAO,CAAA;AACjF,OAAO,EACL,YAAY,IAAI,qBAAqB,EAUrC,kBAAkB,IAAI,2BAA2B,EACjD,eAAe,IAAI,wBAAwB,EAI5C,MAAM,gCAAgC,CAAA;AAGvC,wBAAgB,YAAY,CAAC,KAAK,EAAE,wBAAwB,CAAC,OAAO,qBAAqB,CAAC,+BAEzF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,wBAAwB,CAAC,OAAO,2BAA2B,CAAC,+BAErG;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,wBAAwB,CAAC,OAAO,wBAAwB,CAAC,+BAE/F;AAGD,eAAO,MAAM,mBAAmB,gOAGwC,CAAA;AAGxE,eAAO,MAAM,iBAAiB,wNAGwC,CAAA;AAGtE,eAAO,MAAM,sBAAsB,6NAGwC,CAAA;AAG3E,eAAO,MAAM,mBAAmB,uRAGwC,CAAA;AAGxE,eAAO,MAAM,sBAAsB,0RAGwC,CAAA;AAG3E,eAAO,MAAM,sBAAsB;;0GAGwC,CAAA;AAG3E,eAAO,MAAM,gBAAgB;;0GAGwC,CAAA;AAGrE,eAAO,MAAM,wBAAwB,4RAGwC,CAAA;AAG7E,eAAO,MAAM,qBAAqB,yRAGwC,CAAA;AAG1E,eAAO,MAAM,iBAAiB;;0GAGwC,CAAA;AAGtE,eAAO,MAAM,qBAAqB,yRAGwC,CAAA;AAI1E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,CAAC,eAAe,CAAC,+BAE1E;yBAFe,oBAAoB"}
@@ -1,57 +1,77 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { forwardRef } from "react";
4
2
  import { DropdownMenu as DropdownMenu$1, DropdownMenuCheckboxItem as DropdownMenuCheckboxItem$1, DropdownMenuContent as DropdownMenuContent$1, DropdownMenuGroup as DropdownMenuGroup$1, DropdownMenuItem as DropdownMenuItem$1, DropdownMenuLabel as DropdownMenuLabel$1, DropdownMenuPortal as DropdownMenuPortal$1, DropdownMenuRadioGroup as DropdownMenuRadioGroup$1, DropdownMenuRadioItem as DropdownMenuRadioItem$1, DropdownMenuSeparator as DropdownMenuSeparator$1, DropdownMenuShortcut as DropdownMenuShortcut$1, DropdownMenuSub as DropdownMenuSub$1, DropdownMenuSubContent as DropdownMenuSubContent$1, DropdownMenuSubTrigger as DropdownMenuSubTrigger$1, DropdownMenuTrigger as DropdownMenuTrigger$1 } from "../../primitives/dropdown-menu.js";
3
+ import { forwardRef } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/DropdownMenu/DropdownMenu.tsx
5
6
  function DropdownMenu(props) {
6
- return /* @__PURE__ */ jsx(DropdownMenu$1, { ...props });
7
+ return /* @__PURE__ */ jsx(DropdownMenu$1, { ...props });
7
8
  }
8
9
  function DropdownMenuPortal(props) {
9
- return /* @__PURE__ */ jsx(DropdownMenuPortal$1, { ...props });
10
+ return /* @__PURE__ */ jsx(DropdownMenuPortal$1, { ...props });
10
11
  }
11
12
  function DropdownMenuSub(props) {
12
- return /* @__PURE__ */ jsx(DropdownMenuSub$1, { ...props });
13
+ return /* @__PURE__ */ jsx(DropdownMenuSub$1, { ...props });
13
14
  }
14
- const DropdownMenuTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuTrigger$1, { ref, ...props }));
15
+ var DropdownMenuTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuTrigger$1, {
16
+ ref,
17
+ ...props
18
+ }));
15
19
  DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
16
- const DropdownMenuGroup = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuGroup$1, { ref, ...props }));
20
+ var DropdownMenuGroup = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuGroup$1, {
21
+ ref,
22
+ ...props
23
+ }));
17
24
  DropdownMenuGroup.displayName = "DropdownMenuGroup";
18
- const DropdownMenuRadioGroup = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuRadioGroup$1, { ref, ...props }));
25
+ var DropdownMenuRadioGroup = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuRadioGroup$1, {
26
+ ref,
27
+ ...props
28
+ }));
19
29
  DropdownMenuRadioGroup.displayName = "DropdownMenuRadioGroup";
20
- const DropdownMenuContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuContent$1, { ref, ...props }));
30
+ var DropdownMenuContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuContent$1, {
31
+ ref,
32
+ ...props
33
+ }));
21
34
  DropdownMenuContent.displayName = "DropdownMenuContent";
22
- const DropdownMenuSubContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSubContent$1, { ref, ...props }));
35
+ var DropdownMenuSubContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSubContent$1, {
36
+ ref,
37
+ ...props
38
+ }));
23
39
  DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
24
- const DropdownMenuSubTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSubTrigger$1, { ref, ...props }));
40
+ var DropdownMenuSubTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSubTrigger$1, {
41
+ ref,
42
+ ...props
43
+ }));
25
44
  DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
26
- const DropdownMenuItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuItem$1, { ref, ...props }));
45
+ var DropdownMenuItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuItem$1, {
46
+ ref,
47
+ ...props
48
+ }));
27
49
  DropdownMenuItem.displayName = "DropdownMenuItem";
28
- const DropdownMenuCheckboxItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuCheckboxItem$1, { ref, ...props }));
50
+ var DropdownMenuCheckboxItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuCheckboxItem$1, {
51
+ ref,
52
+ ...props
53
+ }));
29
54
  DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
30
- const DropdownMenuRadioItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuRadioItem$1, { ref, ...props }));
55
+ var DropdownMenuRadioItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuRadioItem$1, {
56
+ ref,
57
+ ...props
58
+ }));
31
59
  DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
32
- const DropdownMenuLabel = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuLabel$1, { ref, ...props }));
60
+ var DropdownMenuLabel = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuLabel$1, {
61
+ ref,
62
+ ...props
63
+ }));
33
64
  DropdownMenuLabel.displayName = "DropdownMenuLabel";
34
- const DropdownMenuSeparator = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSeparator$1, { ref, ...props }));
65
+ var DropdownMenuSeparator = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSeparator$1, {
66
+ ref,
67
+ ...props
68
+ }));
35
69
  DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
36
70
  function DropdownMenuShortcut(props) {
37
- return /* @__PURE__ */ jsx(DropdownMenuShortcut$1, { ...props });
71
+ return /* @__PURE__ */ jsx(DropdownMenuShortcut$1, { ...props });
38
72
  }
39
73
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
40
- export {
41
- DropdownMenu,
42
- DropdownMenuCheckboxItem,
43
- DropdownMenuContent,
44
- DropdownMenuGroup,
45
- DropdownMenuItem,
46
- DropdownMenuLabel,
47
- DropdownMenuPortal,
48
- DropdownMenuRadioGroup,
49
- DropdownMenuRadioItem,
50
- DropdownMenuSeparator,
51
- DropdownMenuShortcut,
52
- DropdownMenuSub,
53
- DropdownMenuSubContent,
54
- DropdownMenuSubTrigger,
55
- DropdownMenuTrigger
56
- };
57
- //# sourceMappingURL=DropdownMenu.js.map
74
+ //#endregion
75
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
76
+
77
+ //# sourceMappingURL=DropdownMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.js","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef, HTMLAttributes } from \"react\"\nimport {\n DropdownMenu as DropdownMenuPrimitive,\n DropdownMenuTrigger as DropdownMenuTriggerPrimitive,\n DropdownMenuContent as DropdownMenuContentPrimitive,\n DropdownMenuItem as DropdownMenuItemPrimitive,\n DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive,\n DropdownMenuRadioItem as DropdownMenuRadioItemPrimitive,\n DropdownMenuLabel as DropdownMenuLabelPrimitive,\n DropdownMenuSeparator as DropdownMenuSeparatorPrimitive,\n DropdownMenuShortcut as DropdownMenuShortcutPrimitive,\n DropdownMenuGroup as DropdownMenuGroupPrimitive,\n DropdownMenuPortal as DropdownMenuPortalPrimitive,\n DropdownMenuSub as DropdownMenuSubPrimitive,\n DropdownMenuSubContent as DropdownMenuSubContentPrimitive,\n DropdownMenuSubTrigger as DropdownMenuSubTriggerPrimitive,\n DropdownMenuRadioGroup as DropdownMenuRadioGroupPrimitive,\n} from \"../../primitives/dropdown-menu\"\n\n// Root / context-only components (no DOM element to ref)\nexport function DropdownMenu(props: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive>) {\n return <DropdownMenuPrimitive {...props} />\n}\n\nexport function DropdownMenuPortal(props: ComponentPropsWithoutRef<typeof DropdownMenuPortalPrimitive>) {\n return <DropdownMenuPortalPrimitive {...props} />\n}\n\nexport function DropdownMenuSub(props: ComponentPropsWithoutRef<typeof DropdownMenuSubPrimitive>) {\n return <DropdownMenuSubPrimitive {...props} />\n}\n\n// DOM-rendering components (forwardRef)\nexport const DropdownMenuTrigger = forwardRef<\n ElementRef<typeof DropdownMenuTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuTriggerPrimitive>\n>((props, ref) => <DropdownMenuTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\"\n\nexport const DropdownMenuGroup = forwardRef<\n ElementRef<typeof DropdownMenuGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuGroupPrimitive>\n>((props, ref) => <DropdownMenuGroupPrimitive ref={ref} {...props} />)\nDropdownMenuGroup.displayName = \"DropdownMenuGroup\"\n\nexport const DropdownMenuRadioGroup = forwardRef<\n ElementRef<typeof DropdownMenuRadioGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioGroupPrimitive>\n>((props, ref) => <DropdownMenuRadioGroupPrimitive ref={ref} {...props} />)\nDropdownMenuRadioGroup.displayName = \"DropdownMenuRadioGroup\"\n\nexport const DropdownMenuContent = forwardRef<\n ElementRef<typeof DropdownMenuContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuContentPrimitive>\n>((props, ref) => <DropdownMenuContentPrimitive ref={ref} {...props} />)\nDropdownMenuContent.displayName = \"DropdownMenuContent\"\n\nexport const DropdownMenuSubContent = forwardRef<\n ElementRef<typeof DropdownMenuSubContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubContentPrimitive>\n>((props, ref) => <DropdownMenuSubContentPrimitive ref={ref} {...props} />)\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\"\n\nexport const DropdownMenuSubTrigger = forwardRef<\n ElementRef<typeof DropdownMenuSubTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubTriggerPrimitive>\n>((props, ref) => <DropdownMenuSubTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\"\n\nexport const DropdownMenuItem = forwardRef<\n ElementRef<typeof DropdownMenuItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuItemPrimitive>\n>((props, ref) => <DropdownMenuItemPrimitive ref={ref} {...props} />)\nDropdownMenuItem.displayName = \"DropdownMenuItem\"\n\nexport const DropdownMenuCheckboxItem = forwardRef<\n ElementRef<typeof DropdownMenuCheckboxItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuCheckboxItemPrimitive>\n>((props, ref) => <DropdownMenuCheckboxItemPrimitive ref={ref} {...props} />)\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\"\n\nexport const DropdownMenuRadioItem = forwardRef<\n ElementRef<typeof DropdownMenuRadioItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioItemPrimitive>\n>((props, ref) => <DropdownMenuRadioItemPrimitive ref={ref} {...props} />)\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\"\n\nexport const DropdownMenuLabel = forwardRef<\n ElementRef<typeof DropdownMenuLabelPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuLabelPrimitive>\n>((props, ref) => <DropdownMenuLabelPrimitive ref={ref} {...props} />)\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\"\n\nexport const DropdownMenuSeparator = forwardRef<\n ElementRef<typeof DropdownMenuSeparatorPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSeparatorPrimitive>\n>((props, ref) => <DropdownMenuSeparatorPrimitive ref={ref} {...props} />)\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\"\n\n// Utility span — no ref needed\nexport function DropdownMenuShortcut(props: HTMLAttributes<HTMLSpanElement>) {\n return <DropdownMenuShortcutPrimitive {...props} />\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n"],"names":["DropdownMenuPrimitive","DropdownMenuPortalPrimitive","DropdownMenuSubPrimitive","DropdownMenuTriggerPrimitive","DropdownMenuGroupPrimitive","DropdownMenuRadioGroupPrimitive","DropdownMenuContentPrimitive","DropdownMenuSubContentPrimitive","DropdownMenuSubTriggerPrimitive","DropdownMenuItemPrimitive","DropdownMenuCheckboxItemPrimitive","DropdownMenuRadioItemPrimitive","DropdownMenuLabelPrimitive","DropdownMenuSeparatorPrimitive","DropdownMenuShortcutPrimitive"],"mappings":";;;;AAqBO,SAAS,aAAa,OAA+D;AAC1F,SAAO,oBAACA,gBAAA,EAAuB,GAAG,MAAA,CAAO;AAC3C;AAEO,SAAS,mBAAmB,OAAqE;AACtG,SAAO,oBAACC,sBAAA,EAA6B,GAAG,MAAA,CAAO;AACjD;AAEO,SAAS,gBAAgB,OAAkE;AAChG,SAAO,oBAACC,mBAAA,EAA0B,GAAG,MAAA,CAAO;AAC9C;AAGO,MAAM,sBAAsB,WAGjC,CAAC,OAAO,4BAASC,uBAAA,EAA6B,KAAW,GAAG,OAAO,CAAE;AACvE,oBAAoB,cAAc;AAE3B,MAAM,oBAAoB,WAG/B,CAAC,OAAO,4BAASC,qBAAA,EAA2B,KAAW,GAAG,OAAO,CAAE;AACrE,kBAAkB,cAAc;AAEzB,MAAM,yBAAyB,WAGpC,CAAC,OAAO,4BAASC,0BAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,sBAAsB,WAGjC,CAAC,OAAO,4BAASC,uBAAA,EAA6B,KAAW,GAAG,OAAO,CAAE;AACvE,oBAAoB,cAAc;AAE3B,MAAM,yBAAyB,WAGpC,CAAC,OAAO,4BAASC,0BAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,yBAAyB,WAGpC,CAAC,OAAO,4BAASC,0BAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,mBAAmB,WAG9B,CAAC,OAAO,4BAASC,oBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;AAExB,MAAM,2BAA2B,WAGtC,CAAC,OAAO,4BAASC,4BAAA,EAAkC,KAAW,GAAG,OAAO,CAAE;AAC5E,yBAAyB,cAAc;AAEhC,MAAM,wBAAwB,WAGnC,CAAC,OAAO,4BAASC,yBAAA,EAA+B,KAAW,GAAG,OAAO,CAAE;AACzE,sBAAsB,cAAc;AAE7B,MAAM,oBAAoB,WAG/B,CAAC,OAAO,4BAASC,qBAAA,EAA2B,KAAW,GAAG,OAAO,CAAE;AACrE,kBAAkB,cAAc;AAEzB,MAAM,wBAAwB,WAGnC,CAAC,OAAO,4BAASC,yBAAA,EAA+B,KAAW,GAAG,OAAO,CAAE;AACzE,sBAAsB,cAAc;AAG7B,SAAS,qBAAqB,OAAwC;AAC3E,SAAO,oBAACC,wBAAA,EAA+B,GAAG,MAAA,CAAO;AACnD;AACA,qBAAqB,cAAc;"}
1
+ {"version":3,"file":"DropdownMenu.js","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef, HTMLAttributes } from \"react\"\nimport {\n DropdownMenu as DropdownMenuPrimitive,\n DropdownMenuTrigger as DropdownMenuTriggerPrimitive,\n DropdownMenuContent as DropdownMenuContentPrimitive,\n DropdownMenuItem as DropdownMenuItemPrimitive,\n DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive,\n DropdownMenuRadioItem as DropdownMenuRadioItemPrimitive,\n DropdownMenuLabel as DropdownMenuLabelPrimitive,\n DropdownMenuSeparator as DropdownMenuSeparatorPrimitive,\n DropdownMenuShortcut as DropdownMenuShortcutPrimitive,\n DropdownMenuGroup as DropdownMenuGroupPrimitive,\n DropdownMenuPortal as DropdownMenuPortalPrimitive,\n DropdownMenuSub as DropdownMenuSubPrimitive,\n DropdownMenuSubContent as DropdownMenuSubContentPrimitive,\n DropdownMenuSubTrigger as DropdownMenuSubTriggerPrimitive,\n DropdownMenuRadioGroup as DropdownMenuRadioGroupPrimitive,\n} from \"../../primitives/dropdown-menu\"\n\n// Root / context-only components (no DOM element to ref)\nexport function DropdownMenu(props: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive>) {\n return <DropdownMenuPrimitive {...props} />\n}\n\nexport function DropdownMenuPortal(props: ComponentPropsWithoutRef<typeof DropdownMenuPortalPrimitive>) {\n return <DropdownMenuPortalPrimitive {...props} />\n}\n\nexport function DropdownMenuSub(props: ComponentPropsWithoutRef<typeof DropdownMenuSubPrimitive>) {\n return <DropdownMenuSubPrimitive {...props} />\n}\n\n// DOM-rendering components (forwardRef)\nexport const DropdownMenuTrigger = forwardRef<\n ElementRef<typeof DropdownMenuTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuTriggerPrimitive>\n>((props, ref) => <DropdownMenuTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\"\n\nexport const DropdownMenuGroup = forwardRef<\n ElementRef<typeof DropdownMenuGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuGroupPrimitive>\n>((props, ref) => <DropdownMenuGroupPrimitive ref={ref} {...props} />)\nDropdownMenuGroup.displayName = \"DropdownMenuGroup\"\n\nexport const DropdownMenuRadioGroup = forwardRef<\n ElementRef<typeof DropdownMenuRadioGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioGroupPrimitive>\n>((props, ref) => <DropdownMenuRadioGroupPrimitive ref={ref} {...props} />)\nDropdownMenuRadioGroup.displayName = \"DropdownMenuRadioGroup\"\n\nexport const DropdownMenuContent = forwardRef<\n ElementRef<typeof DropdownMenuContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuContentPrimitive>\n>((props, ref) => <DropdownMenuContentPrimitive ref={ref} {...props} />)\nDropdownMenuContent.displayName = \"DropdownMenuContent\"\n\nexport const DropdownMenuSubContent = forwardRef<\n ElementRef<typeof DropdownMenuSubContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubContentPrimitive>\n>((props, ref) => <DropdownMenuSubContentPrimitive ref={ref} {...props} />)\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\"\n\nexport const DropdownMenuSubTrigger = forwardRef<\n ElementRef<typeof DropdownMenuSubTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubTriggerPrimitive>\n>((props, ref) => <DropdownMenuSubTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\"\n\nexport const DropdownMenuItem = forwardRef<\n ElementRef<typeof DropdownMenuItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuItemPrimitive>\n>((props, ref) => <DropdownMenuItemPrimitive ref={ref} {...props} />)\nDropdownMenuItem.displayName = \"DropdownMenuItem\"\n\nexport const DropdownMenuCheckboxItem = forwardRef<\n ElementRef<typeof DropdownMenuCheckboxItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuCheckboxItemPrimitive>\n>((props, ref) => <DropdownMenuCheckboxItemPrimitive ref={ref} {...props} />)\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\"\n\nexport const DropdownMenuRadioItem = forwardRef<\n ElementRef<typeof DropdownMenuRadioItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioItemPrimitive>\n>((props, ref) => <DropdownMenuRadioItemPrimitive ref={ref} {...props} />)\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\"\n\nexport const DropdownMenuLabel = forwardRef<\n ElementRef<typeof DropdownMenuLabelPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuLabelPrimitive>\n>((props, ref) => <DropdownMenuLabelPrimitive ref={ref} {...props} />)\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\"\n\nexport const DropdownMenuSeparator = forwardRef<\n ElementRef<typeof DropdownMenuSeparatorPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSeparatorPrimitive>\n>((props, ref) => <DropdownMenuSeparatorPrimitive ref={ref} {...props} />)\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\"\n\n// Utility span — no ref needed\nexport function DropdownMenuShortcut(props: HTMLAttributes<HTMLSpanElement>) {\n return <DropdownMenuShortcutPrimitive {...props} />\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n"],"mappings":";;;;;AAqBA,SAAgB,aAAa,OAA+D;CAC1F,OAAO,oBAAC,gBAAD,EAAuB,GAAI,MAAQ,CAAA;AAC5C;AAEA,SAAgB,mBAAmB,OAAqE;CACtG,OAAO,oBAAC,sBAAD,EAA6B,GAAI,MAAQ,CAAA;AAClD;AAEA,SAAgB,gBAAgB,OAAkE;CAChG,OAAO,oBAAC,mBAAD,EAA0B,GAAI,MAAQ,CAAA;AAC/C;AAGA,IAAa,sBAAsB,YAGhC,OAAO,QAAQ,oBAAC,uBAAD;CAAmC;CAAK,GAAI;AAAQ,CAAA,CAAC;AACvE,oBAAoB,cAAc;AAElC,IAAa,oBAAoB,YAG9B,OAAO,QAAQ,oBAAC,qBAAD;CAAiC;CAAK,GAAI;AAAQ,CAAA,CAAC;AACrE,kBAAkB,cAAc;AAEhC,IAAa,yBAAyB,YAGnC,OAAO,QAAQ,oBAAC,0BAAD;CAAsC;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC1E,uBAAuB,cAAc;AAErC,IAAa,sBAAsB,YAGhC,OAAO,QAAQ,oBAAC,uBAAD;CAAmC;CAAK,GAAI;AAAQ,CAAA,CAAC;AACvE,oBAAoB,cAAc;AAElC,IAAa,yBAAyB,YAGnC,OAAO,QAAQ,oBAAC,0BAAD;CAAsC;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC1E,uBAAuB,cAAc;AAErC,IAAa,yBAAyB,YAGnC,OAAO,QAAQ,oBAAC,0BAAD;CAAsC;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC1E,uBAAuB,cAAc;AAErC,IAAa,mBAAmB,YAG7B,OAAO,QAAQ,oBAAC,oBAAD;CAAgC;CAAK,GAAI;AAAQ,CAAA,CAAC;AACpE,iBAAiB,cAAc;AAE/B,IAAa,2BAA2B,YAGrC,OAAO,QAAQ,oBAAC,4BAAD;CAAwC;CAAK,GAAI;AAAQ,CAAA,CAAC;AAC5E,yBAAyB,cAAc;AAEvC,IAAa,wBAAwB,YAGlC,OAAO,QAAQ,oBAAC,yBAAD;CAAqC;CAAK,GAAI;AAAQ,CAAA,CAAC;AACzE,sBAAsB,cAAc;AAEpC,IAAa,oBAAoB,YAG9B,OAAO,QAAQ,oBAAC,qBAAD;CAAiC;CAAK,GAAI;AAAQ,CAAA,CAAC;AACrE,kBAAkB,cAAc;AAEhC,IAAa,wBAAwB,YAGlC,OAAO,QAAQ,oBAAC,yBAAD;CAAqC;CAAK,GAAI;AAAQ,CAAA,CAAC;AACzE,sBAAsB,cAAc;AAGpC,SAAgB,qBAAqB,OAAwC;CAC3E,OAAO,oBAAC,wBAAD,EAA+B,GAAI,MAAQ,CAAA;AACpD;AACA,qBAAqB,cAAc"}