@nipsys/shadcn-lsd 0.1.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 (485) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +130 -0
  3. package/dist/Autocomplete-Cuui1Aca.js +216 -0
  4. package/dist/Badge-DgWf6s7v.js +120 -0
  5. package/dist/Button-L-du0fyx.js +123 -0
  6. package/dist/ButtonGroup-BgylmC1j.js +34 -0
  7. package/dist/Input-CNaDUPU7.js +119 -0
  8. package/dist/Label-Bz0dz1Kz.js +51 -0
  9. package/dist/ScrollBar-CyKMm83e.js +552 -0
  10. package/dist/SidebarContext-7jKqX7F3.js +107 -0
  11. package/dist/Toggle-B7BF2ro7.js +34 -0
  12. package/dist/Typography-D8OaaVSH.js +91 -0
  13. package/dist/__tests__/setup.d.ts +0 -0
  14. package/dist/assets/style.css +1 -0
  15. package/dist/check-Bt2UikoU.js +5 -0
  16. package/dist/chevron-down-BBFYYzZq.js +5 -0
  17. package/dist/components/ui/accordion/Accordion.d.ts +4 -0
  18. package/dist/components/ui/accordion/Accordion.js +10 -0
  19. package/dist/components/ui/accordion/AccordionContent.d.ts +7 -0
  20. package/dist/components/ui/accordion/AccordionContent.js +33 -0
  21. package/dist/components/ui/accordion/AccordionItem.d.ts +4 -0
  22. package/dist/components/ui/accordion/AccordionItem.js +19 -0
  23. package/dist/components/ui/accordion/AccordionTrigger.d.ts +7 -0
  24. package/dist/components/ui/accordion/AccordionTrigger.js +45 -0
  25. package/dist/components/ui/accordion/__tests__/accordion-content.test.d.ts +1 -0
  26. package/dist/components/ui/accordion/__tests__/accordion-content.test.js +56 -0
  27. package/dist/components/ui/accordion/__tests__/accordion-item.test.d.ts +1 -0
  28. package/dist/components/ui/accordion/__tests__/accordion-item.test.js +37 -0
  29. package/dist/components/ui/accordion/__tests__/accordion-trigger.test.d.ts +1 -0
  30. package/dist/components/ui/accordion/__tests__/accordion-trigger.test.js +51 -0
  31. package/dist/components/ui/accordion/__tests__/accordion.test.d.ts +1 -0
  32. package/dist/components/ui/accordion/__tests__/accordion.test.js +64 -0
  33. package/dist/components/ui/accordion/index.d.ts +5 -0
  34. package/dist/components/ui/accordion/types.d.ts +11 -0
  35. package/dist/components/ui/alert-dialog/AlertDialog.d.ts +4 -0
  36. package/dist/components/ui/alert-dialog/AlertDialog.js +10 -0
  37. package/dist/components/ui/alert-dialog/AlertDialogAction.d.ts +4 -0
  38. package/dist/components/ui/alert-dialog/AlertDialogAction.js +19 -0
  39. package/dist/components/ui/alert-dialog/AlertDialogCancel.d.ts +4 -0
  40. package/dist/components/ui/alert-dialog/AlertDialogCancel.js +19 -0
  41. package/dist/components/ui/alert-dialog/AlertDialogContent.d.ts +4 -0
  42. package/dist/components/ui/alert-dialog/AlertDialogContent.js +27 -0
  43. package/dist/components/ui/alert-dialog/AlertDialogDescription.d.ts +4 -0
  44. package/dist/components/ui/alert-dialog/AlertDialogDescription.js +19 -0
  45. package/dist/components/ui/alert-dialog/AlertDialogFooter.d.ts +3 -0
  46. package/dist/components/ui/alert-dialog/AlertDialogFooter.js +21 -0
  47. package/dist/components/ui/alert-dialog/AlertDialogHeader.d.ts +3 -0
  48. package/dist/components/ui/alert-dialog/AlertDialogHeader.js +21 -0
  49. package/dist/components/ui/alert-dialog/AlertDialogOverlay.d.ts +4 -0
  50. package/dist/components/ui/alert-dialog/AlertDialogOverlay.js +22 -0
  51. package/dist/components/ui/alert-dialog/AlertDialogPortal.d.ts +4 -0
  52. package/dist/components/ui/alert-dialog/AlertDialogPortal.js +10 -0
  53. package/dist/components/ui/alert-dialog/AlertDialogTitle.d.ts +4 -0
  54. package/dist/components/ui/alert-dialog/AlertDialogTitle.js +22 -0
  55. package/dist/components/ui/alert-dialog/AlertDialogTrigger.d.ts +4 -0
  56. package/dist/components/ui/alert-dialog/AlertDialogTrigger.js +10 -0
  57. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-action.test.d.ts +1 -0
  58. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-action.test.js +39 -0
  59. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-cancel.test.d.ts +1 -0
  60. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-cancel.test.js +39 -0
  61. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-content.test.d.ts +1 -0
  62. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-content.test.js +48 -0
  63. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-description.test.d.ts +1 -0
  64. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-description.test.js +47 -0
  65. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-footer.test.d.ts +1 -0
  66. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-footer.test.js +36 -0
  67. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-header.test.d.ts +1 -0
  68. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-header.test.js +39 -0
  69. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-overlay.test.d.ts +1 -0
  70. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-overlay.test.js +50 -0
  71. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-title.test.d.ts +1 -0
  72. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-title.test.js +42 -0
  73. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-trigger.test.d.ts +1 -0
  74. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-trigger.test.js +34 -0
  75. package/dist/components/ui/alert-dialog/__tests__/alert-dialog.test.d.ts +1 -0
  76. package/dist/components/ui/alert-dialog/__tests__/alert-dialog.test.js +60 -0
  77. package/dist/components/ui/alert-dialog/index.d.ts +11 -0
  78. package/dist/components/ui/autocomplete/Autocomplete.d.ts +4 -0
  79. package/dist/components/ui/autocomplete/Autocomplete.js +11 -0
  80. package/dist/components/ui/autocomplete/AutocompleteList.d.ts +13 -0
  81. package/dist/components/ui/autocomplete/AutocompleteList.js +61 -0
  82. package/dist/components/ui/autocomplete/__tests__/autocomplete.test.d.ts +1 -0
  83. package/dist/components/ui/autocomplete/__tests__/autocomplete.test.js +163 -0
  84. package/dist/components/ui/autocomplete/index.d.ts +5 -0
  85. package/dist/components/ui/autocomplete/types.d.ts +35 -0
  86. package/dist/components/ui/autocomplete/useAutocompleteFetch.d.ts +13 -0
  87. package/dist/components/ui/badge/Badge.d.ts +12 -0
  88. package/dist/components/ui/badge/Badge.js +7 -0
  89. package/dist/components/ui/badge/badge.test.d.ts +1 -0
  90. package/dist/components/ui/badge/badge.test.js +144 -0
  91. package/dist/components/ui/badge/index.d.ts +2 -0
  92. package/dist/components/ui/badge/types.d.ts +11 -0
  93. package/dist/components/ui/button/Button.d.ts +8 -0
  94. package/dist/components/ui/button/Button.js +7 -0
  95. package/dist/components/ui/button/button.test.d.ts +1 -0
  96. package/dist/components/ui/button/button.test.js +224 -0
  97. package/dist/components/ui/button/index.d.ts +2 -0
  98. package/dist/components/ui/button/types.d.ts +11 -0
  99. package/dist/components/ui/button-group/ButtonGroup.d.ts +4 -0
  100. package/dist/components/ui/button-group/ButtonGroup.js +7 -0
  101. package/dist/components/ui/button-group/ButtonGroupSeparator.d.ts +3 -0
  102. package/dist/components/ui/button-group/ButtonGroupSeparator.js +21 -0
  103. package/dist/components/ui/button-group/ButtonGroupText.d.ts +4 -0
  104. package/dist/components/ui/button-group/ButtonGroupText.js +21 -0
  105. package/dist/components/ui/button-group/__tests__/button-group-separator.test.d.ts +1 -0
  106. package/dist/components/ui/button-group/__tests__/button-group-separator.test.js +40 -0
  107. package/dist/components/ui/button-group/__tests__/button-group-text.test.d.ts +1 -0
  108. package/dist/components/ui/button-group/__tests__/button-group-text.test.js +36 -0
  109. package/dist/components/ui/button-group/__tests__/button-group.test.d.ts +1 -0
  110. package/dist/components/ui/button-group/__tests__/button-group.test.js +84 -0
  111. package/dist/components/ui/button-group/index.d.ts +4 -0
  112. package/dist/components/ui/button-group/types.d.ts +10 -0
  113. package/dist/components/ui/card/Card.d.ts +3 -0
  114. package/dist/components/ui/card/Card.js +21 -0
  115. package/dist/components/ui/card/CardAction.d.ts +3 -0
  116. package/dist/components/ui/card/CardAction.js +19 -0
  117. package/dist/components/ui/card/CardContent.d.ts +3 -0
  118. package/dist/components/ui/card/CardContent.js +16 -0
  119. package/dist/components/ui/card/CardDescription.d.ts +3 -0
  120. package/dist/components/ui/card/CardDescription.js +16 -0
  121. package/dist/components/ui/card/CardFooter.d.ts +3 -0
  122. package/dist/components/ui/card/CardFooter.js +19 -0
  123. package/dist/components/ui/card/CardHeader.d.ts +3 -0
  124. package/dist/components/ui/card/CardHeader.js +19 -0
  125. package/dist/components/ui/card/CardTitle.d.ts +3 -0
  126. package/dist/components/ui/card/CardTitle.js +18 -0
  127. package/dist/components/ui/card/__tests__/card-action.test.d.ts +1 -0
  128. package/dist/components/ui/card/__tests__/card-action.test.js +29 -0
  129. package/dist/components/ui/card/__tests__/card-content.test.d.ts +1 -0
  130. package/dist/components/ui/card/__tests__/card-content.test.js +29 -0
  131. package/dist/components/ui/card/__tests__/card-description.test.d.ts +1 -0
  132. package/dist/components/ui/card/__tests__/card-description.test.js +29 -0
  133. package/dist/components/ui/card/__tests__/card-footer.test.d.ts +1 -0
  134. package/dist/components/ui/card/__tests__/card-footer.test.js +29 -0
  135. package/dist/components/ui/card/__tests__/card-header.test.d.ts +1 -0
  136. package/dist/components/ui/card/__tests__/card-header.test.js +29 -0
  137. package/dist/components/ui/card/__tests__/card-title.test.d.ts +1 -0
  138. package/dist/components/ui/card/__tests__/card-title.test.js +29 -0
  139. package/dist/components/ui/card/__tests__/card.test.d.ts +1 -0
  140. package/dist/components/ui/card/__tests__/card.test.js +52 -0
  141. package/dist/components/ui/card/index.d.ts +7 -0
  142. package/dist/components/ui/checkbox/Checkbox.d.ts +4 -0
  143. package/dist/components/ui/checkbox/Checkbox.js +267 -0
  144. package/dist/components/ui/checkbox/checkbox.test.d.ts +1 -0
  145. package/dist/components/ui/checkbox/checkbox.test.js +56 -0
  146. package/dist/components/ui/checkbox/index.d.ts +1 -0
  147. package/dist/components/ui/command/Command.d.ts +3 -0
  148. package/dist/components/ui/command/Command.js +22 -0
  149. package/dist/components/ui/command/CommandDialog.d.ts +8 -0
  150. package/dist/components/ui/command/CommandDialog.js +34 -0
  151. package/dist/components/ui/command/CommandEmpty.d.ts +3 -0
  152. package/dist/components/ui/command/CommandEmpty.js +17 -0
  153. package/dist/components/ui/command/CommandGroup.d.ts +3 -0
  154. package/dist/components/ui/command/CommandGroup.js +22 -0
  155. package/dist/components/ui/command/CommandInput.d.ts +3 -0
  156. package/dist/components/ui/command/CommandInput.js +37 -0
  157. package/dist/components/ui/command/CommandItem.d.ts +3 -0
  158. package/dist/components/ui/command/CommandItem.js +22 -0
  159. package/dist/components/ui/command/CommandList.d.ts +3 -0
  160. package/dist/components/ui/command/CommandList.js +22 -0
  161. package/dist/components/ui/command/CommandSeparator.d.ts +3 -0
  162. package/dist/components/ui/command/CommandSeparator.js +19 -0
  163. package/dist/components/ui/command/CommandShortcut.d.ts +2 -0
  164. package/dist/components/ui/command/CommandShortcut.js +21 -0
  165. package/dist/components/ui/command/__tests__/command-dialog.test.d.ts +1 -0
  166. package/dist/components/ui/command/__tests__/command-dialog.test.js +50 -0
  167. package/dist/components/ui/command/__tests__/command-empty.test.d.ts +1 -0
  168. package/dist/components/ui/command/__tests__/command-empty.test.js +43 -0
  169. package/dist/components/ui/command/__tests__/command-group.test.d.ts +1 -0
  170. package/dist/components/ui/command/__tests__/command-group.test.js +55 -0
  171. package/dist/components/ui/command/__tests__/command-input.test.d.ts +1 -0
  172. package/dist/components/ui/command/__tests__/command-input.test.js +87 -0
  173. package/dist/components/ui/command/__tests__/command-item.test.d.ts +1 -0
  174. package/dist/components/ui/command/__tests__/command-item.test.js +85 -0
  175. package/dist/components/ui/command/__tests__/command-list.test.d.ts +1 -0
  176. package/dist/components/ui/command/__tests__/command-list.test.js +54 -0
  177. package/dist/components/ui/command/__tests__/command-separator.test.d.ts +1 -0
  178. package/dist/components/ui/command/__tests__/command-separator.test.js +62 -0
  179. package/dist/components/ui/command/__tests__/command-shortcut.test.d.ts +1 -0
  180. package/dist/components/ui/command/__tests__/command-shortcut.test.js +80 -0
  181. package/dist/components/ui/command/__tests__/command.test.d.ts +1 -0
  182. package/dist/components/ui/command/__tests__/command.test.js +80 -0
  183. package/dist/components/ui/command/index.d.ts +9 -0
  184. package/dist/components/ui/dialog/Dialog.d.ts +4 -0
  185. package/dist/components/ui/dialog/Dialog.js +10 -0
  186. package/dist/components/ui/dialog/DialogClose.d.ts +4 -0
  187. package/dist/components/ui/dialog/DialogClose.js +10 -0
  188. package/dist/components/ui/dialog/DialogContent.d.ts +6 -0
  189. package/dist/components/ui/dialog/DialogContent.js +45 -0
  190. package/dist/components/ui/dialog/DialogDescription.d.ts +4 -0
  191. package/dist/components/ui/dialog/DialogDescription.js +19 -0
  192. package/dist/components/ui/dialog/DialogFooter.d.ts +3 -0
  193. package/dist/components/ui/dialog/DialogFooter.js +18 -0
  194. package/dist/components/ui/dialog/DialogHeader.d.ts +3 -0
  195. package/dist/components/ui/dialog/DialogHeader.js +18 -0
  196. package/dist/components/ui/dialog/DialogOverlay.d.ts +4 -0
  197. package/dist/components/ui/dialog/DialogOverlay.js +22 -0
  198. package/dist/components/ui/dialog/DialogPortal.d.ts +4 -0
  199. package/dist/components/ui/dialog/DialogPortal.js +10 -0
  200. package/dist/components/ui/dialog/DialogTitle.d.ts +4 -0
  201. package/dist/components/ui/dialog/DialogTitle.js +22 -0
  202. package/dist/components/ui/dialog/DialogTrigger.d.ts +4 -0
  203. package/dist/components/ui/dialog/DialogTrigger.js +10 -0
  204. package/dist/components/ui/dialog/__tests__/dialog-close.test.d.ts +1 -0
  205. package/dist/components/ui/dialog/__tests__/dialog-close.test.js +33 -0
  206. package/dist/components/ui/dialog/__tests__/dialog-content.test.d.ts +1 -0
  207. package/dist/components/ui/dialog/__tests__/dialog-content.test.js +62 -0
  208. package/dist/components/ui/dialog/__tests__/dialog-description.test.d.ts +1 -0
  209. package/dist/components/ui/dialog/__tests__/dialog-description.test.js +44 -0
  210. package/dist/components/ui/dialog/__tests__/dialog-footer.test.d.ts +1 -0
  211. package/dist/components/ui/dialog/__tests__/dialog-footer.test.js +35 -0
  212. package/dist/components/ui/dialog/__tests__/dialog-header.test.d.ts +1 -0
  213. package/dist/components/ui/dialog/__tests__/dialog-header.test.js +39 -0
  214. package/dist/components/ui/dialog/__tests__/dialog-overlay.test.d.ts +1 -0
  215. package/dist/components/ui/dialog/__tests__/dialog-overlay.test.js +43 -0
  216. package/dist/components/ui/dialog/__tests__/dialog-title.test.d.ts +1 -0
  217. package/dist/components/ui/dialog/__tests__/dialog-title.test.js +41 -0
  218. package/dist/components/ui/dialog/__tests__/dialog-trigger.test.d.ts +1 -0
  219. package/dist/components/ui/dialog/__tests__/dialog-trigger.test.js +45 -0
  220. package/dist/components/ui/dialog/__tests__/dialog.test.d.ts +1 -0
  221. package/dist/components/ui/dialog/__tests__/dialog.test.js +55 -0
  222. package/dist/components/ui/dialog/index.d.ts +10 -0
  223. package/dist/components/ui/input/Input.d.ts +4 -0
  224. package/dist/components/ui/input/Input.js +7 -0
  225. package/dist/components/ui/input/index.d.ts +3 -0
  226. package/dist/components/ui/input/input.test.d.ts +1 -0
  227. package/dist/components/ui/input/input.test.js +118 -0
  228. package/dist/components/ui/input/types.d.ts +8 -0
  229. package/dist/components/ui/input/utils.d.ts +4 -0
  230. package/dist/components/ui/label/Label.d.ts +7 -0
  231. package/dist/components/ui/label/Label.js +6 -0
  232. package/dist/components/ui/label/index.d.ts +2 -0
  233. package/dist/components/ui/label/label.test.d.ts +1 -0
  234. package/dist/components/ui/label/label.test.js +83 -0
  235. package/dist/components/ui/label/types.d.ts +11 -0
  236. package/dist/components/ui/popover/Popover.d.ts +7 -0
  237. package/dist/components/ui/popover/Popover.js +16 -0
  238. package/dist/components/ui/popover/PopoverAnchor.d.ts +4 -0
  239. package/dist/components/ui/popover/PopoverAnchor.js +10 -0
  240. package/dist/components/ui/popover/PopoverContent.d.ts +4 -0
  241. package/dist/components/ui/popover/PopoverContent.js +26 -0
  242. package/dist/components/ui/popover/PopoverTrigger.d.ts +4 -0
  243. package/dist/components/ui/popover/PopoverTrigger.js +10 -0
  244. package/dist/components/ui/popover/__tests__/popover-anchor.test.d.ts +1 -0
  245. package/dist/components/ui/popover/__tests__/popover-anchor.test.js +39 -0
  246. package/dist/components/ui/popover/__tests__/popover-content.test.d.ts +1 -0
  247. package/dist/components/ui/popover/__tests__/popover-content.test.js +78 -0
  248. package/dist/components/ui/popover/__tests__/popover-trigger.test.d.ts +1 -0
  249. package/dist/components/ui/popover/__tests__/popover-trigger.test.js +33 -0
  250. package/dist/components/ui/popover/__tests__/popover.test.d.ts +1 -0
  251. package/dist/components/ui/popover/__tests__/popover.test.js +39 -0
  252. package/dist/components/ui/popover/index.d.ts +4 -0
  253. package/dist/components/ui/progress/Progress.d.ts +4 -0
  254. package/dist/components/ui/progress/Progress.js +193 -0
  255. package/dist/components/ui/progress/index.d.ts +2 -0
  256. package/dist/components/ui/progress/progress.test.d.ts +1 -0
  257. package/dist/components/ui/progress/progress.test.js +101 -0
  258. package/dist/components/ui/progress/types.d.ts +11 -0
  259. package/dist/components/ui/scroll-area/ScrollArea.d.ts +4 -0
  260. package/dist/components/ui/scroll-area/ScrollArea.js +32 -0
  261. package/dist/components/ui/scroll-area/ScrollBar.d.ts +4 -0
  262. package/dist/components/ui/scroll-area/ScrollBar.js +6 -0
  263. package/dist/components/ui/scroll-area/__tests__/scroll-area.test.d.ts +1 -0
  264. package/dist/components/ui/scroll-area/__tests__/scroll-area.test.js +66 -0
  265. package/dist/components/ui/scroll-area/__tests__/scroll-bar.test.d.ts +1 -0
  266. package/dist/components/ui/scroll-area/__tests__/scroll-bar.test.js +42 -0
  267. package/dist/components/ui/scroll-area/index.d.ts +2 -0
  268. package/dist/components/ui/select/Select.d.ts +3 -0
  269. package/dist/components/ui/select/Select.js +10 -0
  270. package/dist/components/ui/select/SelectContent.d.ts +3 -0
  271. package/dist/components/ui/select/SelectContent.js +44 -0
  272. package/dist/components/ui/select/SelectGroup.d.ts +3 -0
  273. package/dist/components/ui/select/SelectGroup.js +10 -0
  274. package/dist/components/ui/select/SelectItem.d.ts +3 -0
  275. package/dist/components/ui/select/SelectItem.js +28 -0
  276. package/dist/components/ui/select/SelectLabel.d.ts +3 -0
  277. package/dist/components/ui/select/SelectLabel.js +22 -0
  278. package/dist/components/ui/select/SelectScrollDownButton.d.ts +3 -0
  279. package/dist/components/ui/select/SelectScrollDownButton.js +24 -0
  280. package/dist/components/ui/select/SelectScrollUpButton.d.ts +3 -0
  281. package/dist/components/ui/select/SelectScrollUpButton.js +25 -0
  282. package/dist/components/ui/select/SelectSeparator.d.ts +3 -0
  283. package/dist/components/ui/select/SelectSeparator.js +22 -0
  284. package/dist/components/ui/select/SelectTrigger.d.ts +5 -0
  285. package/dist/components/ui/select/SelectTrigger.js +30 -0
  286. package/dist/components/ui/select/SelectValue.d.ts +3 -0
  287. package/dist/components/ui/select/SelectValue.js +10 -0
  288. package/dist/components/ui/select/__tests__/select-content.test.d.ts +1 -0
  289. package/dist/components/ui/select/__tests__/select-content.test.js +74 -0
  290. package/dist/components/ui/select/__tests__/select-group.test.d.ts +1 -0
  291. package/dist/components/ui/select/__tests__/select-group.test.js +42 -0
  292. package/dist/components/ui/select/__tests__/select-item.test.d.ts +1 -0
  293. package/dist/components/ui/select/__tests__/select-item.test.js +64 -0
  294. package/dist/components/ui/select/__tests__/select-label.test.d.ts +1 -0
  295. package/dist/components/ui/select/__tests__/select-label.test.js +58 -0
  296. package/dist/components/ui/select/__tests__/select-separator.test.d.ts +1 -0
  297. package/dist/components/ui/select/__tests__/select-separator.test.js +63 -0
  298. package/dist/components/ui/select/__tests__/select-trigger.test.d.ts +1 -0
  299. package/dist/components/ui/select/__tests__/select-trigger.test.js +71 -0
  300. package/dist/components/ui/select/__tests__/select-value.test.d.ts +1 -0
  301. package/dist/components/ui/select/__tests__/select-value.test.js +33 -0
  302. package/dist/components/ui/select/__tests__/select.test.d.ts +1 -0
  303. package/dist/components/ui/select/__tests__/select.test.js +64 -0
  304. package/dist/components/ui/select/index.d.ts +10 -0
  305. package/dist/components/ui/separator/Separator.d.ts +4 -0
  306. package/dist/components/ui/separator/Separator.js +41 -0
  307. package/dist/components/ui/separator/index.d.ts +1 -0
  308. package/dist/components/ui/separator/separator.test.d.ts +1 -0
  309. package/dist/components/ui/separator/separator.test.js +50 -0
  310. package/dist/components/ui/sheet/Sheet.d.ts +3 -0
  311. package/dist/components/ui/sheet/Sheet.js +10 -0
  312. package/dist/components/ui/sheet/SheetClose.d.ts +3 -0
  313. package/dist/components/ui/sheet/SheetClose.js +10 -0
  314. package/dist/components/ui/sheet/SheetContent.d.ts +5 -0
  315. package/dist/components/ui/sheet/SheetContent.js +41 -0
  316. package/dist/components/ui/sheet/SheetDescription.d.ts +3 -0
  317. package/dist/components/ui/sheet/SheetDescription.js +19 -0
  318. package/dist/components/ui/sheet/SheetFooter.d.ts +2 -0
  319. package/dist/components/ui/sheet/SheetFooter.js +21 -0
  320. package/dist/components/ui/sheet/SheetHeader.d.ts +2 -0
  321. package/dist/components/ui/sheet/SheetHeader.js +18 -0
  322. package/dist/components/ui/sheet/SheetOverlay.d.ts +3 -0
  323. package/dist/components/ui/sheet/SheetOverlay.js +22 -0
  324. package/dist/components/ui/sheet/SheetPortal.d.ts +3 -0
  325. package/dist/components/ui/sheet/SheetPortal.js +10 -0
  326. package/dist/components/ui/sheet/SheetTitle.d.ts +3 -0
  327. package/dist/components/ui/sheet/SheetTitle.js +19 -0
  328. package/dist/components/ui/sheet/SheetTrigger.d.ts +3 -0
  329. package/dist/components/ui/sheet/SheetTrigger.js +10 -0
  330. package/dist/components/ui/sheet/__tests__/sheet-close.test.d.ts +1 -0
  331. package/dist/components/ui/sheet/__tests__/sheet-close.test.js +33 -0
  332. package/dist/components/ui/sheet/__tests__/sheet-content.test.d.ts +1 -0
  333. package/dist/components/ui/sheet/__tests__/sheet-content.test.js +76 -0
  334. package/dist/components/ui/sheet/__tests__/sheet-description.test.d.ts +1 -0
  335. package/dist/components/ui/sheet/__tests__/sheet-description.test.js +44 -0
  336. package/dist/components/ui/sheet/__tests__/sheet-footer.test.d.ts +1 -0
  337. package/dist/components/ui/sheet/__tests__/sheet-footer.test.js +35 -0
  338. package/dist/components/ui/sheet/__tests__/sheet-header.test.d.ts +1 -0
  339. package/dist/components/ui/sheet/__tests__/sheet-header.test.js +39 -0
  340. package/dist/components/ui/sheet/__tests__/sheet-title.test.d.ts +1 -0
  341. package/dist/components/ui/sheet/__tests__/sheet-title.test.js +41 -0
  342. package/dist/components/ui/sheet/__tests__/sheet-trigger.test.d.ts +1 -0
  343. package/dist/components/ui/sheet/__tests__/sheet-trigger.test.js +35 -0
  344. package/dist/components/ui/sheet/__tests__/sheet.test.d.ts +1 -0
  345. package/dist/components/ui/sheet/__tests__/sheet.test.js +55 -0
  346. package/dist/components/ui/sheet/index.d.ts +10 -0
  347. package/dist/components/ui/sidebar/Sidebar.d.ts +2 -0
  348. package/dist/components/ui/sidebar/Sidebar.js +99 -0
  349. package/dist/components/ui/sidebar/SidebarContent.d.ts +9 -0
  350. package/dist/components/ui/sidebar/SidebarContent.js +148 -0
  351. package/dist/components/ui/sidebar/SidebarContext.d.ts +5 -0
  352. package/dist/components/ui/sidebar/SidebarContext.js +10 -0
  353. package/dist/components/ui/sidebar/SidebarGroup.d.ts +5 -0
  354. package/dist/components/ui/sidebar/SidebarGroup.js +77 -0
  355. package/dist/components/ui/sidebar/SidebarMenu.d.ts +10 -0
  356. package/dist/components/ui/sidebar/SidebarMenu.js +219 -0
  357. package/dist/components/ui/sidebar/__tests__/sidebar-content.test.d.ts +1 -0
  358. package/dist/components/ui/sidebar/__tests__/sidebar-content.test.js +25 -0
  359. package/dist/components/ui/sidebar/__tests__/sidebar-group.test.d.ts +1 -0
  360. package/dist/components/ui/sidebar/__tests__/sidebar-group.test.js +28 -0
  361. package/dist/components/ui/sidebar/__tests__/sidebar-menu.test.d.ts +1 -0
  362. package/dist/components/ui/sidebar/__tests__/sidebar-menu.test.js +27 -0
  363. package/dist/components/ui/sidebar/__tests__/sidebar.test.d.ts +1 -0
  364. package/dist/components/ui/sidebar/__tests__/sidebar.test.js +486 -0
  365. package/dist/components/ui/sidebar/index.d.ts +7 -0
  366. package/dist/components/ui/sidebar/types.d.ts +87 -0
  367. package/dist/components/ui/skeleton/Skeleton.d.ts +2 -0
  368. package/dist/components/ui/skeleton/Skeleton.js +18 -0
  369. package/dist/components/ui/skeleton/index.d.ts +1 -0
  370. package/dist/components/ui/skeleton/skeleton.test.d.ts +1 -0
  371. package/dist/components/ui/skeleton/skeleton.test.js +43 -0
  372. package/dist/components/ui/sonner/Toaster.d.ts +3 -0
  373. package/dist/components/ui/sonner/Toaster.js +803 -0
  374. package/dist/components/ui/sonner/index.d.ts +1 -0
  375. package/dist/components/ui/sonner/sonner.test.d.ts +1 -0
  376. package/dist/components/ui/sonner/sonner.test.js +44 -0
  377. package/dist/components/ui/switch/Switch.d.ts +10 -0
  378. package/dist/components/ui/switch/Switch.js +176 -0
  379. package/dist/components/ui/switch/index.d.ts +3 -0
  380. package/dist/components/ui/switch/switch.test.d.ts +1 -0
  381. package/dist/components/ui/switch/switch.test.js +138 -0
  382. package/dist/components/ui/switch/types.d.ts +4 -0
  383. package/dist/components/ui/tabs/Tabs.d.ts +3 -0
  384. package/dist/components/ui/tabs/Tabs.js +17 -0
  385. package/dist/components/ui/tabs/TabsContent.d.ts +4 -0
  386. package/dist/components/ui/tabs/TabsContent.js +19 -0
  387. package/dist/components/ui/tabs/TabsList.d.ts +3 -0
  388. package/dist/components/ui/tabs/TabsList.js +17 -0
  389. package/dist/components/ui/tabs/TabsTrigger.d.ts +3 -0
  390. package/dist/components/ui/tabs/TabsTrigger.js +22 -0
  391. package/dist/components/ui/tabs/__tests__/tabs-content.test.d.ts +1 -0
  392. package/dist/components/ui/tabs/__tests__/tabs-content.test.js +62 -0
  393. package/dist/components/ui/tabs/__tests__/tabs-list.test.d.ts +1 -0
  394. package/dist/components/ui/tabs/__tests__/tabs-list.test.js +102 -0
  395. package/dist/components/ui/tabs/__tests__/tabs-trigger.test.d.ts +1 -0
  396. package/dist/components/ui/tabs/__tests__/tabs-trigger.test.js +127 -0
  397. package/dist/components/ui/tabs/__tests__/tabs.test.d.ts +1 -0
  398. package/dist/components/ui/tabs/__tests__/tabs.test.js +101 -0
  399. package/dist/components/ui/tabs/index.d.ts +5 -0
  400. package/dist/components/ui/tabs/types.d.ts +23 -0
  401. package/dist/components/ui/toggle/Toggle.d.ts +7 -0
  402. package/dist/components/ui/toggle/Toggle.js +8 -0
  403. package/dist/components/ui/toggle/index.d.ts +2 -0
  404. package/dist/components/ui/toggle/toggle.test.d.ts +1 -0
  405. package/dist/components/ui/toggle/toggle.test.js +81 -0
  406. package/dist/components/ui/toggle/types.d.ts +8 -0
  407. package/dist/components/ui/toggle-group/ToggleGroup.d.ts +5 -0
  408. package/dist/components/ui/toggle-group/ToggleGroup.js +23 -0
  409. package/dist/components/ui/toggle-group/ToggleGroupItem.d.ts +5 -0
  410. package/dist/components/ui/toggle-group/ToggleGroupItem.js +30 -0
  411. package/dist/components/ui/toggle-group/__tests__/toggle-group-item.test.d.ts +1 -0
  412. package/dist/components/ui/toggle-group/__tests__/toggle-group-item.test.js +83 -0
  413. package/dist/components/ui/toggle-group/__tests__/toggle-group.test.d.ts +1 -0
  414. package/dist/components/ui/toggle-group/__tests__/toggle-group.test.js +129 -0
  415. package/dist/components/ui/toggle-group/context.d.ts +5 -0
  416. package/dist/components/ui/toggle-group/context.js +7 -0
  417. package/dist/components/ui/toggle-group/index.d.ts +4 -0
  418. package/dist/components/ui/toggle-group/types.d.ts +3 -0
  419. package/dist/components/ui/tooltip/Tooltip.d.ts +7 -0
  420. package/dist/components/ui/tooltip/Tooltip.js +16 -0
  421. package/dist/components/ui/tooltip/TooltipContent.d.ts +4 -0
  422. package/dist/components/ui/tooltip/TooltipContent.js +29 -0
  423. package/dist/components/ui/tooltip/TooltipProvider.d.ts +4 -0
  424. package/dist/components/ui/tooltip/TooltipProvider.js +18 -0
  425. package/dist/components/ui/tooltip/TooltipTrigger.d.ts +4 -0
  426. package/dist/components/ui/tooltip/TooltipTrigger.js +10 -0
  427. package/dist/components/ui/tooltip/__tests__/tooltip-content.test.d.ts +1 -0
  428. package/dist/components/ui/tooltip/__tests__/tooltip-content.test.js +90 -0
  429. package/dist/components/ui/tooltip/__tests__/tooltip-provider.test.d.ts +1 -0
  430. package/dist/components/ui/tooltip/__tests__/tooltip-provider.test.js +43 -0
  431. package/dist/components/ui/tooltip/__tests__/tooltip-trigger.test.d.ts +1 -0
  432. package/dist/components/ui/tooltip/__tests__/tooltip-trigger.test.js +40 -0
  433. package/dist/components/ui/tooltip/__tests__/tooltip.test.d.ts +1 -0
  434. package/dist/components/ui/tooltip/__tests__/tooltip.test.js +55 -0
  435. package/dist/components/ui/tooltip/index.d.ts +4 -0
  436. package/dist/components/ui/typography/Typography.d.ts +4 -0
  437. package/dist/components/ui/typography/Typography.js +7 -0
  438. package/dist/components/ui/typography/index.d.ts +3 -0
  439. package/dist/components/ui/typography/types.d.ts +10 -0
  440. package/dist/components/ui/typography/typography.test.d.ts +1 -0
  441. package/dist/components/ui/typography/typography.test.js +157 -0
  442. package/dist/components/ui/typography/utils.d.ts +3 -0
  443. package/dist/createLucideIcon-CP-mMPfa.js +75 -0
  444. package/dist/hooks/use-mobile.d.ts +1 -0
  445. package/dist/index-0f4yVZZh.js +31 -0
  446. package/dist/index-0ioNhtNM.js +10 -0
  447. package/dist/index-B1JZzM7N.js +227 -0
  448. package/dist/index-B5_JiqiV.js +135 -0
  449. package/dist/index-BApqy9Mj.js +329 -0
  450. package/dist/index-BZPx6jYI.js +8 -0
  451. package/dist/index-B_9m43p4.js +825 -0
  452. package/dist/index-BiHZqHTp.js +70 -0
  453. package/dist/index-Bu0XjYP8.js +27 -0
  454. package/dist/index-BvoZGpli.js +60 -0
  455. package/dist/index-ByaXH_ih.js +10 -0
  456. package/dist/index-C07QG_0b.js +115 -0
  457. package/dist/index-C8zhdkSa.js +158 -0
  458. package/dist/index-CDPBTubN.js +32 -0
  459. package/dist/index-CHaTVqnF.js +244 -0
  460. package/dist/index-CLZRNDoo.js +180 -0
  461. package/dist/index-Cc1WoggG.js +95 -0
  462. package/dist/index-Ce5p59aV.js +1544 -0
  463. package/dist/index-D1Qyh-m-.js +677 -0
  464. package/dist/index-D4uZ9LKw.js +142 -0
  465. package/dist/index-D69Iqk5J.js +34 -0
  466. package/dist/index-DFZozV_h.js +68 -0
  467. package/dist/index-DLcqcWxM.js +29 -0
  468. package/dist/index-DrO-qzxY.js +13 -0
  469. package/dist/index-MQOgPrDL.js +314 -0
  470. package/dist/index-SrglpxlM.js +330 -0
  471. package/dist/index-TznoxaGd.js +52 -0
  472. package/dist/index-VnDe3Nx7.js +50 -0
  473. package/dist/index-rKs9bXHr.js +6 -0
  474. package/dist/index-yX7K5Wk9.js +32 -0
  475. package/dist/lib/types.d.ts +3 -0
  476. package/dist/lib/utils.d.ts +2 -0
  477. package/dist/magic-string.es-uPKorP4O.js +663 -0
  478. package/dist/main.d.ts +26 -0
  479. package/dist/main.js +234 -0
  480. package/dist/types-B02xH7lg.js +61 -0
  481. package/dist/types-BKY1Yguv.js +34 -0
  482. package/dist/utils-DtaLkIY8.js +2776 -0
  483. package/dist/vi.2VT5v0um-D9hIOtVQ.js +48041 -0
  484. package/dist/x-B9bYxG31.js +8 -0
  485. package/package.json +97 -0
@@ -0,0 +1,825 @@
1
+ import * as t from "react";
2
+ import * as be from "react-dom";
3
+ import { c as Re } from "./index-rKs9bXHr.js";
4
+ import { u as Y, P as M, c as R, b as st } from "./index-Cc1WoggG.js";
5
+ import { c as ct } from "./index-VnDe3Nx7.js";
6
+ import { u as k } from "./index-DLcqcWxM.js";
7
+ import { c as lt } from "./index-DFZozV_h.js";
8
+ import { u as at } from "./index-ByaXH_ih.js";
9
+ import { P as it, D as dt } from "./index-D4uZ9LKw.js";
10
+ import { h as ut, u as pt, R as ft, F as mt } from "./index-D1Qyh-m-.js";
11
+ import { u as Ie } from "./index-DrO-qzxY.js";
12
+ import { R as ht, A as vt, c as _e, C as gt, a as St } from "./index-Ce5p59aV.js";
13
+ import { u as wt } from "./index-0ioNhtNM.js";
14
+ import { u as Ee } from "./index-TznoxaGd.js";
15
+ import { u as Ct } from "./index-BZPx6jYI.js";
16
+ import { V as xt } from "./index-0f4yVZZh.js";
17
+ import { jsx as p, jsxs as le, Fragment as Te } from "react/jsx-runtime";
18
+ var yt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ie, de, Tt] = ct(J), [te] = lt(J, [
19
+ Tt,
20
+ _e
21
+ ]), ue = _e(), [Pt, j] = te(J), [Rt, Et] = te(J), Ne = (o) => {
22
+ const {
23
+ __scopeSelect: l,
24
+ children: e,
25
+ open: a,
26
+ defaultOpen: s,
27
+ onOpenChange: d,
28
+ value: n,
29
+ defaultValue: r,
30
+ onValueChange: c,
31
+ dir: f,
32
+ name: g,
33
+ autoComplete: C,
34
+ disabled: E,
35
+ required: T,
36
+ form: y
37
+ } = o, i = ue(l), [h, S] = t.useState(null), [m, v] = t.useState(null), [W, A] = t.useState(!1), oe = at(f), [b, D] = Ee({
38
+ prop: a,
39
+ defaultProp: s ?? !1,
40
+ onChange: d,
41
+ caller: J
42
+ }), [K, X] = Ee({
43
+ prop: n,
44
+ defaultProp: r,
45
+ onChange: c,
46
+ caller: J
47
+ }), V = t.useRef(null), B = h ? y || !!h.closest("form") : !0, [G, H] = t.useState(/* @__PURE__ */ new Set()), F = Array.from(G).map((_) => _.props.value).join(";");
48
+ return /* @__PURE__ */ p(ht, { ...i, children: /* @__PURE__ */ le(
49
+ Pt,
50
+ {
51
+ required: T,
52
+ scope: l,
53
+ trigger: h,
54
+ onTriggerChange: S,
55
+ valueNode: m,
56
+ onValueNodeChange: v,
57
+ valueNodeHasChildren: W,
58
+ onValueNodeHasChildrenChange: A,
59
+ contentId: Ie(),
60
+ value: K,
61
+ onValueChange: X,
62
+ open: b,
63
+ onOpenChange: D,
64
+ dir: oe,
65
+ triggerPointerDownPosRef: V,
66
+ disabled: E,
67
+ children: [
68
+ /* @__PURE__ */ p(ie.Provider, { scope: l, children: /* @__PURE__ */ p(
69
+ Rt,
70
+ {
71
+ scope: o.__scopeSelect,
72
+ onNativeOptionAdd: t.useCallback((_) => {
73
+ H((L) => new Set(L).add(_));
74
+ }, []),
75
+ onNativeOptionRemove: t.useCallback((_) => {
76
+ H((L) => {
77
+ const U = new Set(L);
78
+ return U.delete(_), U;
79
+ });
80
+ }, []),
81
+ children: e
82
+ }
83
+ ) }),
84
+ B ? /* @__PURE__ */ le(
85
+ tt,
86
+ {
87
+ "aria-hidden": !0,
88
+ required: T,
89
+ tabIndex: -1,
90
+ name: g,
91
+ autoComplete: C,
92
+ value: K,
93
+ onChange: (_) => X(_.target.value),
94
+ disabled: E,
95
+ form: y,
96
+ children: [
97
+ K === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
98
+ Array.from(G)
99
+ ]
100
+ },
101
+ F
102
+ ) : null
103
+ ]
104
+ }
105
+ ) });
106
+ };
107
+ Ne.displayName = J;
108
+ var Me = "SelectTrigger", Ae = t.forwardRef(
109
+ (o, l) => {
110
+ const { __scopeSelect: e, disabled: a = !1, ...s } = o, d = ue(e), n = j(Me, e), r = n.disabled || a, c = k(l, n.onTriggerChange), f = de(e), g = t.useRef("touch"), [C, E, T] = nt((i) => {
111
+ const h = f().filter((v) => !v.disabled), S = h.find((v) => v.value === n.value), m = rt(h, i, S);
112
+ m !== void 0 && n.onValueChange(m.value);
113
+ }), y = (i) => {
114
+ r || (n.onOpenChange(!0), T()), i && (n.triggerPointerDownPosRef.current = {
115
+ x: Math.round(i.pageX),
116
+ y: Math.round(i.pageY)
117
+ });
118
+ };
119
+ return /* @__PURE__ */ p(vt, { asChild: !0, ...d, children: /* @__PURE__ */ p(
120
+ M.button,
121
+ {
122
+ type: "button",
123
+ role: "combobox",
124
+ "aria-controls": n.contentId,
125
+ "aria-expanded": n.open,
126
+ "aria-required": n.required,
127
+ "aria-autocomplete": "none",
128
+ dir: n.dir,
129
+ "data-state": n.open ? "open" : "closed",
130
+ disabled: r,
131
+ "data-disabled": r ? "" : void 0,
132
+ "data-placeholder": ot(n.value) ? "" : void 0,
133
+ ...s,
134
+ ref: c,
135
+ onClick: R(s.onClick, (i) => {
136
+ i.currentTarget.focus(), g.current !== "mouse" && y(i);
137
+ }),
138
+ onPointerDown: R(s.onPointerDown, (i) => {
139
+ g.current = i.pointerType;
140
+ const h = i.target;
141
+ h.hasPointerCapture(i.pointerId) && h.releasePointerCapture(i.pointerId), i.button === 0 && i.ctrlKey === !1 && i.pointerType === "mouse" && (y(i), i.preventDefault());
142
+ }),
143
+ onKeyDown: R(s.onKeyDown, (i) => {
144
+ const h = C.current !== "";
145
+ !(i.ctrlKey || i.altKey || i.metaKey) && i.key.length === 1 && E(i.key), !(h && i.key === " ") && yt.includes(i.key) && (y(), i.preventDefault());
146
+ })
147
+ }
148
+ ) });
149
+ }
150
+ );
151
+ Ae.displayName = Me;
152
+ var Oe = "SelectValue", De = t.forwardRef(
153
+ (o, l) => {
154
+ const { __scopeSelect: e, className: a, style: s, children: d, placeholder: n = "", ...r } = o, c = j(Oe, e), { onValueNodeHasChildrenChange: f } = c, g = d !== void 0, C = k(l, c.onValueNodeChange);
155
+ return Y(() => {
156
+ f(g);
157
+ }, [f, g]), /* @__PURE__ */ p(
158
+ M.span,
159
+ {
160
+ ...r,
161
+ ref: C,
162
+ style: { pointerEvents: "none" },
163
+ children: ot(c.value) ? /* @__PURE__ */ p(Te, { children: n }) : d
164
+ }
165
+ );
166
+ }
167
+ );
168
+ De.displayName = Oe;
169
+ var bt = "SelectIcon", Le = t.forwardRef(
170
+ (o, l) => {
171
+ const { __scopeSelect: e, children: a, ...s } = o;
172
+ return /* @__PURE__ */ p(M.span, { "aria-hidden": !0, ...s, ref: l, children: a || "▼" });
173
+ }
174
+ );
175
+ Le.displayName = bt;
176
+ var _t = "SelectPortal", ke = (o) => /* @__PURE__ */ p(it, { asChild: !0, ...o });
177
+ ke.displayName = _t;
178
+ var Q = "SelectContent", Ve = t.forwardRef(
179
+ (o, l) => {
180
+ const e = j(Q, o.__scopeSelect), [a, s] = t.useState();
181
+ if (Y(() => {
182
+ s(new DocumentFragment());
183
+ }, []), !e.open) {
184
+ const d = a;
185
+ return d ? be.createPortal(
186
+ /* @__PURE__ */ p(Be, { scope: o.__scopeSelect, children: /* @__PURE__ */ p(ie.Slot, { scope: o.__scopeSelect, children: /* @__PURE__ */ p("div", { children: o.children }) }) }),
187
+ d
188
+ ) : null;
189
+ }
190
+ return /* @__PURE__ */ p(He, { ...o, ref: l });
191
+ }
192
+ );
193
+ Ve.displayName = Q;
194
+ var O = 10, [Be, q] = te(Q), Nt = "SelectContentImpl", Mt = st("SelectContent.RemoveScroll"), He = t.forwardRef(
195
+ (o, l) => {
196
+ const {
197
+ __scopeSelect: e,
198
+ position: a = "item-aligned",
199
+ onCloseAutoFocus: s,
200
+ onEscapeKeyDown: d,
201
+ onPointerDownOutside: n,
202
+ //
203
+ // PopperContent props
204
+ side: r,
205
+ sideOffset: c,
206
+ align: f,
207
+ alignOffset: g,
208
+ arrowPadding: C,
209
+ collisionBoundary: E,
210
+ collisionPadding: T,
211
+ sticky: y,
212
+ hideWhenDetached: i,
213
+ avoidCollisions: h,
214
+ //
215
+ ...S
216
+ } = o, m = j(Q, e), [v, W] = t.useState(null), [A, oe] = t.useState(null), b = k(l, (u) => W(u)), [D, K] = t.useState(null), [X, V] = t.useState(
217
+ null
218
+ ), B = de(e), [G, H] = t.useState(!1), F = t.useRef(!1);
219
+ t.useEffect(() => {
220
+ if (v) return ut(v);
221
+ }, [v]), pt();
222
+ const _ = t.useCallback(
223
+ (u) => {
224
+ const [I, ...N] = B().map((P) => P.ref.current), [w] = N.slice(-1), x = document.activeElement;
225
+ for (const P of u)
226
+ if (P === x || (P?.scrollIntoView({ block: "nearest" }), P === I && A && (A.scrollTop = 0), P === w && A && (A.scrollTop = A.scrollHeight), P?.focus(), document.activeElement !== x)) return;
227
+ },
228
+ [B, A]
229
+ ), L = t.useCallback(
230
+ () => _([D, v]),
231
+ [_, D, v]
232
+ );
233
+ t.useEffect(() => {
234
+ G && L();
235
+ }, [G, L]);
236
+ const { onOpenChange: U, triggerPointerDownPosRef: z } = m;
237
+ t.useEffect(() => {
238
+ if (v) {
239
+ let u = { x: 0, y: 0 };
240
+ const I = (w) => {
241
+ u = {
242
+ x: Math.abs(Math.round(w.pageX) - (z.current?.x ?? 0)),
243
+ y: Math.abs(Math.round(w.pageY) - (z.current?.y ?? 0))
244
+ };
245
+ }, N = (w) => {
246
+ u.x <= 10 && u.y <= 10 ? w.preventDefault() : v.contains(w.target) || U(!1), document.removeEventListener("pointermove", I), z.current = null;
247
+ };
248
+ return z.current !== null && (document.addEventListener("pointermove", I), document.addEventListener("pointerup", N, { capture: !0, once: !0 })), () => {
249
+ document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", N, { capture: !0 });
250
+ };
251
+ }
252
+ }, [v, U, z]), t.useEffect(() => {
253
+ const u = () => U(!1);
254
+ return window.addEventListener("blur", u), window.addEventListener("resize", u), () => {
255
+ window.removeEventListener("blur", u), window.removeEventListener("resize", u);
256
+ };
257
+ }, [U]);
258
+ const [pe, se] = nt((u) => {
259
+ const I = B().filter((x) => !x.disabled), N = I.find((x) => x.ref.current === document.activeElement), w = rt(I, u, N);
260
+ w && setTimeout(() => w.ref.current.focus());
261
+ }), fe = t.useCallback(
262
+ (u, I, N) => {
263
+ const w = !F.current && !N;
264
+ (m.value !== void 0 && m.value === I || w) && (K(u), w && (F.current = !0));
265
+ },
266
+ [m.value]
267
+ ), me = t.useCallback(() => v?.focus(), [v]), ee = t.useCallback(
268
+ (u, I, N) => {
269
+ const w = !F.current && !N;
270
+ (m.value !== void 0 && m.value === I || w) && V(u);
271
+ },
272
+ [m.value]
273
+ ), ce = a === "popper" ? Se : Fe, ne = ce === Se ? {
274
+ side: r,
275
+ sideOffset: c,
276
+ align: f,
277
+ alignOffset: g,
278
+ arrowPadding: C,
279
+ collisionBoundary: E,
280
+ collisionPadding: T,
281
+ sticky: y,
282
+ hideWhenDetached: i,
283
+ avoidCollisions: h
284
+ } : {};
285
+ return /* @__PURE__ */ p(
286
+ Be,
287
+ {
288
+ scope: e,
289
+ content: v,
290
+ viewport: A,
291
+ onViewportChange: oe,
292
+ itemRefCallback: fe,
293
+ selectedItem: D,
294
+ onItemLeave: me,
295
+ itemTextRefCallback: ee,
296
+ focusSelectedItem: L,
297
+ selectedItemText: X,
298
+ position: a,
299
+ isPositioned: G,
300
+ searchRef: pe,
301
+ children: /* @__PURE__ */ p(ft, { as: Mt, allowPinchZoom: !0, children: /* @__PURE__ */ p(
302
+ mt,
303
+ {
304
+ asChild: !0,
305
+ trapped: m.open,
306
+ onMountAutoFocus: (u) => {
307
+ u.preventDefault();
308
+ },
309
+ onUnmountAutoFocus: R(s, (u) => {
310
+ m.trigger?.focus({ preventScroll: !0 }), u.preventDefault();
311
+ }),
312
+ children: /* @__PURE__ */ p(
313
+ dt,
314
+ {
315
+ asChild: !0,
316
+ disableOutsidePointerEvents: !0,
317
+ onEscapeKeyDown: d,
318
+ onPointerDownOutside: n,
319
+ onFocusOutside: (u) => u.preventDefault(),
320
+ onDismiss: () => m.onOpenChange(!1),
321
+ children: /* @__PURE__ */ p(
322
+ ce,
323
+ {
324
+ role: "listbox",
325
+ id: m.contentId,
326
+ "data-state": m.open ? "open" : "closed",
327
+ dir: m.dir,
328
+ onContextMenu: (u) => u.preventDefault(),
329
+ ...S,
330
+ ...ne,
331
+ onPlaced: () => H(!0),
332
+ ref: b,
333
+ style: {
334
+ // flex layout so we can place the scroll buttons properly
335
+ display: "flex",
336
+ flexDirection: "column",
337
+ // reset the outline by default as the content MAY get focused
338
+ outline: "none",
339
+ ...S.style
340
+ },
341
+ onKeyDown: R(S.onKeyDown, (u) => {
342
+ const I = u.ctrlKey || u.altKey || u.metaKey;
343
+ if (u.key === "Tab" && u.preventDefault(), !I && u.key.length === 1 && se(u.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(u.key)) {
344
+ let w = B().filter((x) => !x.disabled).map((x) => x.ref.current);
345
+ if (["ArrowUp", "End"].includes(u.key) && (w = w.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(u.key)) {
346
+ const x = u.target, P = w.indexOf(x);
347
+ w = w.slice(P + 1);
348
+ }
349
+ setTimeout(() => _(w)), u.preventDefault();
350
+ }
351
+ })
352
+ }
353
+ )
354
+ }
355
+ )
356
+ }
357
+ ) })
358
+ }
359
+ );
360
+ }
361
+ );
362
+ He.displayName = Nt;
363
+ var At = "SelectItemAlignedPosition", Fe = t.forwardRef((o, l) => {
364
+ const { __scopeSelect: e, onPlaced: a, ...s } = o, d = j(Q, e), n = q(Q, e), [r, c] = t.useState(null), [f, g] = t.useState(null), C = k(l, (b) => g(b)), E = de(e), T = t.useRef(!1), y = t.useRef(!0), { viewport: i, selectedItem: h, selectedItemText: S, focusSelectedItem: m } = n, v = t.useCallback(() => {
365
+ if (d.trigger && d.valueNode && r && f && i && h && S) {
366
+ const b = d.trigger.getBoundingClientRect(), D = f.getBoundingClientRect(), K = d.valueNode.getBoundingClientRect(), X = S.getBoundingClientRect();
367
+ if (d.dir !== "rtl") {
368
+ const x = X.left - D.left, P = K.left - x, Z = b.left - P, $ = b.width + Z, he = Math.max($, D.width), ve = window.innerWidth - O, ge = Re(P, [
369
+ O,
370
+ // Prevents the content from going off the starting edge of the
371
+ // viewport. It may still go off the ending edge, but this can be
372
+ // controlled by the user since they may want to manage overflow in a
373
+ // specific way.
374
+ // https://github.com/radix-ui/primitives/issues/2049
375
+ Math.max(O, ve - he)
376
+ ]);
377
+ r.style.minWidth = $ + "px", r.style.left = ge + "px";
378
+ } else {
379
+ const x = D.right - X.right, P = window.innerWidth - K.right - x, Z = window.innerWidth - b.right - P, $ = b.width + Z, he = Math.max($, D.width), ve = window.innerWidth - O, ge = Re(P, [
380
+ O,
381
+ Math.max(O, ve - he)
382
+ ]);
383
+ r.style.minWidth = $ + "px", r.style.right = ge + "px";
384
+ }
385
+ const V = E(), B = window.innerHeight - O * 2, G = i.scrollHeight, H = window.getComputedStyle(f), F = parseInt(H.borderTopWidth, 10), _ = parseInt(H.paddingTop, 10), L = parseInt(H.borderBottomWidth, 10), U = parseInt(H.paddingBottom, 10), z = F + _ + G + U + L, pe = Math.min(h.offsetHeight * 5, z), se = window.getComputedStyle(i), fe = parseInt(se.paddingTop, 10), me = parseInt(se.paddingBottom, 10), ee = b.top + b.height / 2 - O, ce = B - ee, ne = h.offsetHeight / 2, u = h.offsetTop + ne, I = F + _ + u, N = z - I;
386
+ if (I <= ee) {
387
+ const x = V.length > 0 && h === V[V.length - 1].ref.current;
388
+ r.style.bottom = "0px";
389
+ const P = f.clientHeight - i.offsetTop - i.offsetHeight, Z = Math.max(
390
+ ce,
391
+ ne + // viewport might have padding bottom, include it to avoid a scrollable viewport
392
+ (x ? me : 0) + P + L
393
+ ), $ = I + Z;
394
+ r.style.height = $ + "px";
395
+ } else {
396
+ const x = V.length > 0 && h === V[0].ref.current;
397
+ r.style.top = "0px";
398
+ const Z = Math.max(
399
+ ee,
400
+ F + i.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
401
+ (x ? fe : 0) + ne
402
+ ) + N;
403
+ r.style.height = Z + "px", i.scrollTop = I - ee + i.offsetTop;
404
+ }
405
+ r.style.margin = `${O}px 0`, r.style.minHeight = pe + "px", r.style.maxHeight = B + "px", a?.(), requestAnimationFrame(() => T.current = !0);
406
+ }
407
+ }, [
408
+ E,
409
+ d.trigger,
410
+ d.valueNode,
411
+ r,
412
+ f,
413
+ i,
414
+ h,
415
+ S,
416
+ d.dir,
417
+ a
418
+ ]);
419
+ Y(() => v(), [v]);
420
+ const [W, A] = t.useState();
421
+ Y(() => {
422
+ f && A(window.getComputedStyle(f).zIndex);
423
+ }, [f]);
424
+ const oe = t.useCallback(
425
+ (b) => {
426
+ b && y.current === !0 && (v(), m?.(), y.current = !1);
427
+ },
428
+ [v, m]
429
+ );
430
+ return /* @__PURE__ */ p(
431
+ Dt,
432
+ {
433
+ scope: e,
434
+ contentWrapper: r,
435
+ shouldExpandOnScrollRef: T,
436
+ onScrollButtonChange: oe,
437
+ children: /* @__PURE__ */ p(
438
+ "div",
439
+ {
440
+ ref: c,
441
+ style: {
442
+ display: "flex",
443
+ flexDirection: "column",
444
+ position: "fixed",
445
+ zIndex: W
446
+ },
447
+ children: /* @__PURE__ */ p(
448
+ M.div,
449
+ {
450
+ ...s,
451
+ ref: C,
452
+ style: {
453
+ // When we get the height of the content, it includes borders. If we were to set
454
+ // the height without having `boxSizing: 'border-box'` it would be too big.
455
+ boxSizing: "border-box",
456
+ // We need to ensure the content doesn't get taller than the wrapper
457
+ maxHeight: "100%",
458
+ ...s.style
459
+ }
460
+ }
461
+ )
462
+ }
463
+ )
464
+ }
465
+ );
466
+ });
467
+ Fe.displayName = At;
468
+ var Ot = "SelectPopperPosition", Se = t.forwardRef((o, l) => {
469
+ const {
470
+ __scopeSelect: e,
471
+ align: a = "start",
472
+ collisionPadding: s = O,
473
+ ...d
474
+ } = o, n = ue(e);
475
+ return /* @__PURE__ */ p(
476
+ gt,
477
+ {
478
+ ...n,
479
+ ...d,
480
+ ref: l,
481
+ align: a,
482
+ collisionPadding: s,
483
+ style: {
484
+ // Ensure border-box for floating-ui calculations
485
+ boxSizing: "border-box",
486
+ ...d.style,
487
+ "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
488
+ "--radix-select-content-available-width": "var(--radix-popper-available-width)",
489
+ "--radix-select-content-available-height": "var(--radix-popper-available-height)",
490
+ "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
491
+ "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
492
+ }
493
+ }
494
+ );
495
+ });
496
+ Se.displayName = Ot;
497
+ var [Dt, Pe] = te(Q, {}), we = "SelectViewport", Ue = t.forwardRef(
498
+ (o, l) => {
499
+ const { __scopeSelect: e, nonce: a, ...s } = o, d = q(we, e), n = Pe(we, e), r = k(l, d.onViewportChange), c = t.useRef(0);
500
+ return /* @__PURE__ */ le(Te, { children: [
501
+ /* @__PURE__ */ p(
502
+ "style",
503
+ {
504
+ dangerouslySetInnerHTML: {
505
+ __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
506
+ },
507
+ nonce: a
508
+ }
509
+ ),
510
+ /* @__PURE__ */ p(ie.Slot, { scope: e, children: /* @__PURE__ */ p(
511
+ M.div,
512
+ {
513
+ "data-radix-select-viewport": "",
514
+ role: "presentation",
515
+ ...s,
516
+ ref: r,
517
+ style: {
518
+ // we use position: 'relative' here on the `viewport` so that when we call
519
+ // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
520
+ // (independent of the scrollUpButton).
521
+ position: "relative",
522
+ flex: 1,
523
+ // Viewport should only be scrollable in the vertical direction.
524
+ // This won't work in vertical writing modes, so we'll need to
525
+ // revisit this if/when that is supported
526
+ // https://developer.chrome.com/blog/vertical-form-controls
527
+ overflow: "hidden auto",
528
+ ...s.style
529
+ },
530
+ onScroll: R(s.onScroll, (f) => {
531
+ const g = f.currentTarget, { contentWrapper: C, shouldExpandOnScrollRef: E } = n;
532
+ if (E?.current && C) {
533
+ const T = Math.abs(c.current - g.scrollTop);
534
+ if (T > 0) {
535
+ const y = window.innerHeight - O * 2, i = parseFloat(C.style.minHeight), h = parseFloat(C.style.height), S = Math.max(i, h);
536
+ if (S < y) {
537
+ const m = S + T, v = Math.min(y, m), W = m - v;
538
+ C.style.height = v + "px", C.style.bottom === "0px" && (g.scrollTop = W > 0 ? W : 0, C.style.justifyContent = "flex-end");
539
+ }
540
+ }
541
+ }
542
+ c.current = g.scrollTop;
543
+ })
544
+ }
545
+ ) })
546
+ ] });
547
+ }
548
+ );
549
+ Ue.displayName = we;
550
+ var We = "SelectGroup", [Lt, kt] = te(We), Ke = t.forwardRef(
551
+ (o, l) => {
552
+ const { __scopeSelect: e, ...a } = o, s = Ie();
553
+ return /* @__PURE__ */ p(Lt, { scope: e, id: s, children: /* @__PURE__ */ p(M.div, { role: "group", "aria-labelledby": s, ...a, ref: l }) });
554
+ }
555
+ );
556
+ Ke.displayName = We;
557
+ var Ge = "SelectLabel", ze = t.forwardRef(
558
+ (o, l) => {
559
+ const { __scopeSelect: e, ...a } = o, s = kt(Ge, e);
560
+ return /* @__PURE__ */ p(M.div, { id: s.id, ...a, ref: l });
561
+ }
562
+ );
563
+ ze.displayName = Ge;
564
+ var ae = "SelectItem", [Vt, Ye] = te(ae), je = t.forwardRef(
565
+ (o, l) => {
566
+ const {
567
+ __scopeSelect: e,
568
+ value: a,
569
+ disabled: s = !1,
570
+ textValue: d,
571
+ ...n
572
+ } = o, r = j(ae, e), c = q(ae, e), f = r.value === a, [g, C] = t.useState(d ?? ""), [E, T] = t.useState(!1), y = k(
573
+ l,
574
+ (m) => c.itemRefCallback?.(m, a, s)
575
+ ), i = Ie(), h = t.useRef("touch"), S = () => {
576
+ s || (r.onValueChange(a), r.onOpenChange(!1));
577
+ };
578
+ if (a === "")
579
+ throw new Error(
580
+ "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
581
+ );
582
+ return /* @__PURE__ */ p(
583
+ Vt,
584
+ {
585
+ scope: e,
586
+ value: a,
587
+ disabled: s,
588
+ textId: i,
589
+ isSelected: f,
590
+ onItemTextChange: t.useCallback((m) => {
591
+ C((v) => v || (m?.textContent ?? "").trim());
592
+ }, []),
593
+ children: /* @__PURE__ */ p(
594
+ ie.ItemSlot,
595
+ {
596
+ scope: e,
597
+ value: a,
598
+ disabled: s,
599
+ textValue: g,
600
+ children: /* @__PURE__ */ p(
601
+ M.div,
602
+ {
603
+ role: "option",
604
+ "aria-labelledby": i,
605
+ "data-highlighted": E ? "" : void 0,
606
+ "aria-selected": f && E,
607
+ "data-state": f ? "checked" : "unchecked",
608
+ "aria-disabled": s || void 0,
609
+ "data-disabled": s ? "" : void 0,
610
+ tabIndex: s ? void 0 : -1,
611
+ ...n,
612
+ ref: y,
613
+ onFocus: R(n.onFocus, () => T(!0)),
614
+ onBlur: R(n.onBlur, () => T(!1)),
615
+ onClick: R(n.onClick, () => {
616
+ h.current !== "mouse" && S();
617
+ }),
618
+ onPointerUp: R(n.onPointerUp, () => {
619
+ h.current === "mouse" && S();
620
+ }),
621
+ onPointerDown: R(n.onPointerDown, (m) => {
622
+ h.current = m.pointerType;
623
+ }),
624
+ onPointerMove: R(n.onPointerMove, (m) => {
625
+ h.current = m.pointerType, s ? c.onItemLeave?.() : h.current === "mouse" && m.currentTarget.focus({ preventScroll: !0 });
626
+ }),
627
+ onPointerLeave: R(n.onPointerLeave, (m) => {
628
+ m.currentTarget === document.activeElement && c.onItemLeave?.();
629
+ }),
630
+ onKeyDown: R(n.onKeyDown, (m) => {
631
+ c.searchRef?.current !== "" && m.key === " " || (It.includes(m.key) && S(), m.key === " " && m.preventDefault());
632
+ })
633
+ }
634
+ )
635
+ }
636
+ )
637
+ }
638
+ );
639
+ }
640
+ );
641
+ je.displayName = ae;
642
+ var re = "SelectItemText", qe = t.forwardRef(
643
+ (o, l) => {
644
+ const { __scopeSelect: e, className: a, style: s, ...d } = o, n = j(re, e), r = q(re, e), c = Ye(re, e), f = Et(re, e), [g, C] = t.useState(null), E = k(
645
+ l,
646
+ (S) => C(S),
647
+ c.onItemTextChange,
648
+ (S) => r.itemTextRefCallback?.(S, c.value, c.disabled)
649
+ ), T = g?.textContent, y = t.useMemo(
650
+ () => /* @__PURE__ */ p("option", { value: c.value, disabled: c.disabled, children: T }, c.value),
651
+ [c.disabled, c.value, T]
652
+ ), { onNativeOptionAdd: i, onNativeOptionRemove: h } = f;
653
+ return Y(() => (i(y), () => h(y)), [i, h, y]), /* @__PURE__ */ le(Te, { children: [
654
+ /* @__PURE__ */ p(M.span, { id: c.textId, ...d, ref: E }),
655
+ c.isSelected && n.valueNode && !n.valueNodeHasChildren ? be.createPortal(d.children, n.valueNode) : null
656
+ ] });
657
+ }
658
+ );
659
+ qe.displayName = re;
660
+ var Xe = "SelectItemIndicator", Ze = t.forwardRef(
661
+ (o, l) => {
662
+ const { __scopeSelect: e, ...a } = o;
663
+ return Ye(Xe, e).isSelected ? /* @__PURE__ */ p(M.span, { "aria-hidden": !0, ...a, ref: l }) : null;
664
+ }
665
+ );
666
+ Ze.displayName = Xe;
667
+ var Ce = "SelectScrollUpButton", $e = t.forwardRef((o, l) => {
668
+ const e = q(Ce, o.__scopeSelect), a = Pe(Ce, o.__scopeSelect), [s, d] = t.useState(!1), n = k(l, a.onScrollButtonChange);
669
+ return Y(() => {
670
+ if (e.viewport && e.isPositioned) {
671
+ let r = function() {
672
+ const f = c.scrollTop > 0;
673
+ d(f);
674
+ };
675
+ const c = e.viewport;
676
+ return r(), c.addEventListener("scroll", r), () => c.removeEventListener("scroll", r);
677
+ }
678
+ }, [e.viewport, e.isPositioned]), s ? /* @__PURE__ */ p(
679
+ Qe,
680
+ {
681
+ ...o,
682
+ ref: n,
683
+ onAutoScroll: () => {
684
+ const { viewport: r, selectedItem: c } = e;
685
+ r && c && (r.scrollTop = r.scrollTop - c.offsetHeight);
686
+ }
687
+ }
688
+ ) : null;
689
+ });
690
+ $e.displayName = Ce;
691
+ var xe = "SelectScrollDownButton", Je = t.forwardRef((o, l) => {
692
+ const e = q(xe, o.__scopeSelect), a = Pe(xe, o.__scopeSelect), [s, d] = t.useState(!1), n = k(l, a.onScrollButtonChange);
693
+ return Y(() => {
694
+ if (e.viewport && e.isPositioned) {
695
+ let r = function() {
696
+ const f = c.scrollHeight - c.clientHeight, g = Math.ceil(c.scrollTop) < f;
697
+ d(g);
698
+ };
699
+ const c = e.viewport;
700
+ return r(), c.addEventListener("scroll", r), () => c.removeEventListener("scroll", r);
701
+ }
702
+ }, [e.viewport, e.isPositioned]), s ? /* @__PURE__ */ p(
703
+ Qe,
704
+ {
705
+ ...o,
706
+ ref: n,
707
+ onAutoScroll: () => {
708
+ const { viewport: r, selectedItem: c } = e;
709
+ r && c && (r.scrollTop = r.scrollTop + c.offsetHeight);
710
+ }
711
+ }
712
+ ) : null;
713
+ });
714
+ Je.displayName = xe;
715
+ var Qe = t.forwardRef((o, l) => {
716
+ const { __scopeSelect: e, onAutoScroll: a, ...s } = o, d = q("SelectScrollButton", e), n = t.useRef(null), r = de(e), c = t.useCallback(() => {
717
+ n.current !== null && (window.clearInterval(n.current), n.current = null);
718
+ }, []);
719
+ return t.useEffect(() => () => c(), [c]), Y(() => {
720
+ r().find((g) => g.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
721
+ }, [r]), /* @__PURE__ */ p(
722
+ M.div,
723
+ {
724
+ "aria-hidden": !0,
725
+ ...s,
726
+ ref: l,
727
+ style: { flexShrink: 0, ...s.style },
728
+ onPointerDown: R(s.onPointerDown, () => {
729
+ n.current === null && (n.current = window.setInterval(a, 50));
730
+ }),
731
+ onPointerMove: R(s.onPointerMove, () => {
732
+ d.onItemLeave?.(), n.current === null && (n.current = window.setInterval(a, 50));
733
+ }),
734
+ onPointerLeave: R(s.onPointerLeave, () => {
735
+ c();
736
+ })
737
+ }
738
+ );
739
+ }), Bt = "SelectSeparator", et = t.forwardRef(
740
+ (o, l) => {
741
+ const { __scopeSelect: e, ...a } = o;
742
+ return /* @__PURE__ */ p(M.div, { "aria-hidden": !0, ...a, ref: l });
743
+ }
744
+ );
745
+ et.displayName = Bt;
746
+ var ye = "SelectArrow", Ht = t.forwardRef(
747
+ (o, l) => {
748
+ const { __scopeSelect: e, ...a } = o, s = ue(e), d = j(ye, e), n = q(ye, e);
749
+ return d.open && n.position === "popper" ? /* @__PURE__ */ p(St, { ...s, ...a, ref: l }) : null;
750
+ }
751
+ );
752
+ Ht.displayName = ye;
753
+ var Ft = "SelectBubbleInput", tt = t.forwardRef(
754
+ ({ __scopeSelect: o, value: l, ...e }, a) => {
755
+ const s = t.useRef(null), d = k(a, s), n = Ct(l);
756
+ return t.useEffect(() => {
757
+ const r = s.current;
758
+ if (!r) return;
759
+ const c = window.HTMLSelectElement.prototype, g = Object.getOwnPropertyDescriptor(
760
+ c,
761
+ "value"
762
+ ).set;
763
+ if (n !== l && g) {
764
+ const C = new Event("change", { bubbles: !0 });
765
+ g.call(r, l), r.dispatchEvent(C);
766
+ }
767
+ }, [n, l]), /* @__PURE__ */ p(
768
+ M.select,
769
+ {
770
+ ...e,
771
+ style: { ...xt, ...e.style },
772
+ ref: d,
773
+ defaultValue: l
774
+ }
775
+ );
776
+ }
777
+ );
778
+ tt.displayName = Ft;
779
+ function ot(o) {
780
+ return o === "" || o === void 0;
781
+ }
782
+ function nt(o) {
783
+ const l = wt(o), e = t.useRef(""), a = t.useRef(0), s = t.useCallback(
784
+ (n) => {
785
+ const r = e.current + n;
786
+ l(r), (function c(f) {
787
+ e.current = f, window.clearTimeout(a.current), f !== "" && (a.current = window.setTimeout(() => c(""), 1e3));
788
+ })(r);
789
+ },
790
+ [l]
791
+ ), d = t.useCallback(() => {
792
+ e.current = "", window.clearTimeout(a.current);
793
+ }, []);
794
+ return t.useEffect(() => () => window.clearTimeout(a.current), []), [e, s, d];
795
+ }
796
+ function rt(o, l, e) {
797
+ const s = l.length > 1 && Array.from(l).every((f) => f === l[0]) ? l[0] : l, d = e ? o.indexOf(e) : -1;
798
+ let n = Ut(o, Math.max(d, 0));
799
+ s.length === 1 && (n = n.filter((f) => f !== e));
800
+ const c = n.find(
801
+ (f) => f.textValue.toLowerCase().startsWith(s.toLowerCase())
802
+ );
803
+ return c !== e ? c : void 0;
804
+ }
805
+ function Ut(o, l) {
806
+ return o.map((e, a) => o[(l + a) % o.length]);
807
+ }
808
+ var no = Ne, ro = Ae, so = De, co = Le, lo = ke, ao = Ve, io = Ue, uo = Ke, po = ze, fo = je, mo = qe, ho = Ze, vo = $e, go = Je, So = et;
809
+ export {
810
+ ao as C,
811
+ uo as G,
812
+ fo as I,
813
+ po as L,
814
+ lo as P,
815
+ no as R,
816
+ go as S,
817
+ ro as T,
818
+ io as V,
819
+ ho as a,
820
+ mo as b,
821
+ So as c,
822
+ co as d,
823
+ so as e,
824
+ vo as f
825
+ };