@comfyorg/design-system 1.1.0 → 1.3.0-alpha.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 (509) hide show
  1. package/README.md +113 -10
  2. package/dist/accordion/PropertiesAccordionItem.vue.d.ts +34 -0
  3. package/dist/accordion/PropertiesAccordionItem.vue.js +62 -0
  4. package/dist/badge/Badge.vue.d.ts +49 -0
  5. package/dist/badge/Badge.vue.js +1 -0
  6. package/dist/badge/CreditBadge.vue.d.ts +6 -0
  7. package/dist/badge/CreditBadge.vue.js +21 -0
  8. package/dist/badge/badge.variants.d.ts +12 -0
  9. package/dist/button/Button.vue.d.ts +31 -0
  10. package/dist/button/Button.vue.js +1 -0
  11. package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
  12. package/dist/button-group/ButtonGroup.vue.js +35 -0
  13. package/dist/button-group/IconGroup.vue.d.ts +16 -0
  14. package/dist/button-group/IconGroup.vue.js +13 -0
  15. package/dist/card/Card.vue.d.ts +19 -0
  16. package/dist/card/Card.vue.js +1 -0
  17. package/dist/card/CardFooter.vue.d.ts +17 -0
  18. package/dist/card/CardFooter.vue.js +1 -0
  19. package/dist/card/CardHeader.vue.d.ts +17 -0
  20. package/dist/card/CardHeader.vue.js +1 -0
  21. package/dist/card/CoachmarkCard.vue.d.ts +24 -0
  22. package/dist/card/CoachmarkCard.vue.js +55 -0
  23. package/dist/card/card.variants.d.ts +11 -0
  24. package/dist/chart/Chart.vue.d.ts +12 -0
  25. package/dist/chart/Chart.vue.js +177 -0
  26. package/dist/chart/__tests__/chartTestUtils.d.ts +3 -0
  27. package/dist/chart/useChart.d.ts +4 -0
  28. package/dist/checkbox/Checkbox.vue.d.ts +25 -0
  29. package/dist/checkbox/Checkbox.vue.js +47 -0
  30. package/dist/chip/Tag.vue.d.ts +61 -0
  31. package/dist/chip/Tag.vue.js +71 -0
  32. package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
  33. package/dist/chip/TagRemoveButton.vue.js +1 -0
  34. package/dist/color-picker/ColorPicker.vue.d.ts +23 -0
  35. package/dist/color-picker/ColorPicker.vue.js +139 -0
  36. package/dist/color-picker/ColorPickerPanel.vue.d.ts +27 -0
  37. package/dist/color-picker/ColorPickerPanel.vue.js +1 -0
  38. package/dist/color-picker/ColorPickerSaturationValue.vue.d.ts +17 -0
  39. package/dist/color-picker/ColorPickerSaturationValue.vue.js +1 -0
  40. package/dist/color-picker/ColorPickerSlider.vue.d.ts +17 -0
  41. package/dist/color-picker/ColorPickerSlider.vue.js +1 -0
  42. package/dist/color-picker/types.d.ts +22 -0
  43. package/dist/color-picker/types.js +0 -0
  44. package/dist/color-picker/useColorPicker.d.ts +33 -0
  45. package/dist/common/CanvasBanner.vue.d.ts +23 -0
  46. package/dist/common/CanvasBanner.vue.js +21 -0
  47. package/dist/common/ContentDivider.vue.d.ts +7 -0
  48. package/dist/common/ContentDivider.vue.js +20 -0
  49. package/dist/common/CustomFormValue.vue.d.ts +6 -0
  50. package/dist/common/CustomFormValue.vue.js +26 -0
  51. package/dist/common/DotSpinner.vue.d.ts +7 -0
  52. package/dist/common/DotSpinner.vue.js +32 -0
  53. package/dist/common/EditableText.vue.d.ts +16 -0
  54. package/dist/common/EditableText.vue.js +71 -0
  55. package/dist/common/HighlightedText.vue.d.ts +8 -0
  56. package/dist/common/HighlightedText.vue.js +49 -0
  57. package/dist/common/LoadingOverlay.vue.d.ts +18 -0
  58. package/dist/common/LoadingOverlay.vue.js +39 -0
  59. package/dist/common/MarkdownText.vue.d.ts +6 -0
  60. package/dist/common/MarkdownText.vue.js +91 -0
  61. package/dist/common/MarqueeLine.vue.d.ts +13 -0
  62. package/dist/common/MarqueeLine.vue.js +11 -0
  63. package/dist/common/NoResultsPlaceholder.vue.d.ts +28 -0
  64. package/dist/common/NoResultsPlaceholder.vue.js +49 -0
  65. package/dist/common/NotificationPopup.vue.d.ts +28 -0
  66. package/dist/common/NotificationPopup.vue.js +63 -0
  67. package/dist/common/OverlayIcon.vue.d.ts +13 -0
  68. package/dist/common/OverlayIcon.vue.js +1 -0
  69. package/dist/common/SanitizedHtml.vue.d.ts +8 -0
  70. package/dist/common/SanitizedHtml.vue.js +58 -0
  71. package/dist/common/TextDivider.vue.d.ts +8 -0
  72. package/dist/common/TextDivider.vue.js +34 -0
  73. package/dist/common/TextTicker.vue.d.ts +17 -0
  74. package/dist/common/TextTicker.vue.js +51 -0
  75. package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
  76. package/dist/common/TextTickerMultiLine.vue.js +51 -0
  77. package/dist/common/UserAvatar.vue.d.ts +9 -0
  78. package/dist/common/UserAvatar.vue.js +45 -0
  79. package/dist/common/VerticalDivider.vue.d.ts +3 -0
  80. package/dist/common/VerticalDivider.vue.js +14 -0
  81. package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
  82. package/dist/common/VideoCompareSlider.vue.js +139 -0
  83. package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
  84. package/dist/common/ViewportWidgetShell.vue.js +56 -0
  85. package/dist/common/VirtualGrid.vue.d.ts +38 -0
  86. package/dist/common/VirtualGrid.vue.js +105 -0
  87. package/dist/common/highlightQuery.d.ts +6 -0
  88. package/dist/common/textTickerUtils.d.ts +1 -0
  89. package/dist/components.css +44 -0
  90. package/dist/composables/useAttrsClass.d.ts +12 -0
  91. package/dist/composables/useAttrsClass.js +17 -0
  92. package/dist/composables/usePopoverSizing.d.ts +12 -0
  93. package/dist/composables/usePopoverSizing.js +17 -0
  94. package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
  95. package/dist/confirm/ConfirmBody.vue.js +25 -0
  96. package/dist/confirm/ConfirmFooter.vue.d.ts +18 -0
  97. package/dist/confirm/ConfirmFooter.vue.js +53 -0
  98. package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
  99. package/dist/confirm/ConfirmHeader.vue.js +25 -0
  100. package/dist/content-card/CardBottom.vue.d.ts +16 -0
  101. package/dist/content-card/CardBottom.vue.js +17 -0
  102. package/dist/content-card/CardContainer.vue.d.ts +26 -0
  103. package/dist/content-card/CardContainer.vue.js +59 -0
  104. package/dist/content-card/CardTop.vue.d.ts +36 -0
  105. package/dist/content-card/CardTop.vue.js +70 -0
  106. package/dist/dialog/Dialog.vue.d.ts +21 -0
  107. package/dist/dialog/Dialog.vue.js +23 -0
  108. package/dist/dialog/DialogClose.vue.d.ts +13 -0
  109. package/dist/dialog/DialogClose.vue.js +1 -0
  110. package/dist/dialog/DialogContent.vue.d.ts +36 -0
  111. package/dist/dialog/DialogContent.vue.js +1 -0
  112. package/dist/dialog/DialogDescription.vue.d.ts +18 -0
  113. package/dist/dialog/DialogDescription.vue.js +31 -0
  114. package/dist/dialog/DialogFooter.vue.d.ts +17 -0
  115. package/dist/dialog/DialogFooter.vue.js +22 -0
  116. package/dist/dialog/DialogHeader.vue.d.ts +17 -0
  117. package/dist/dialog/DialogHeader.vue.js +22 -0
  118. package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
  119. package/dist/dialog/DialogMaximize.vue.js +25 -0
  120. package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
  121. package/dist/dialog/DialogOverlay.vue.js +1 -0
  122. package/dist/dialog/DialogPanel.vue.d.ts +18 -0
  123. package/dist/dialog/DialogPanel.vue.js +53 -0
  124. package/dist/dialog/DialogPortal.vue.d.ts +14 -0
  125. package/dist/dialog/DialogPortal.vue.js +1 -0
  126. package/dist/dialog/DialogTitle.vue.d.ts +18 -0
  127. package/dist/dialog/DialogTitle.vue.js +1 -0
  128. package/dist/dialog/Dialogue.vue.d.ts +22 -0
  129. package/dist/dialog/Dialogue.vue.js +56 -0
  130. package/dist/dialog/dialog.variants.d.ts +16 -0
  131. package/dist/dialog/dialog.variants.js +38 -0
  132. package/dist/dialog/types.d.ts +6 -0
  133. package/dist/dialog/types.js +0 -0
  134. package/dist/field/Field.vue.d.ts +19 -0
  135. package/dist/field/Field.vue.js +39 -0
  136. package/dist/field/FieldDescription.vue.d.ts +17 -0
  137. package/dist/field/FieldDescription.vue.js +22 -0
  138. package/dist/field/FieldError.vue.d.ts +21 -0
  139. package/dist/field/FieldError.vue.js +37 -0
  140. package/dist/field/FieldGroup.vue.d.ts +17 -0
  141. package/dist/field/FieldGroup.vue.js +22 -0
  142. package/dist/field/FieldLabel.vue.d.ts +17 -0
  143. package/dist/field/FieldLabel.vue.js +26 -0
  144. package/dist/field/FieldSwitch.vue.d.ts +16 -0
  145. package/dist/field/FieldSwitch.vue.js +43 -0
  146. package/dist/field/LayoutField.vue.d.ts +18 -0
  147. package/dist/field/LayoutField.vue.js +1 -0
  148. package/dist/field/ModelInfoField.vue.d.ts +18 -0
  149. package/dist/field/ModelInfoField.vue.js +16 -0
  150. package/dist/field/field.variants.d.ts +11 -0
  151. package/dist/hover-card/HoverCard.vue.d.ts +18 -0
  152. package/dist/hover-card/HoverCard.vue.js +24 -0
  153. package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
  154. package/dist/hover-card/HoverCardContent.vue.js +66 -0
  155. package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
  156. package/dist/hover-card/HoverCardTrigger.vue.js +21 -0
  157. package/dist/icon/ComfyLogo.vue.d.ts +9 -0
  158. package/dist/icon/ComfyLogo.vue.js +31 -0
  159. package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
  160. package/dist/icon/PuzzleIcon.vue.js +38 -0
  161. package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
  162. package/dist/icon/TinyChevronIcon.vue.js +29 -0
  163. package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
  164. package/dist/icon/VerifiedIcon.vue.js +30 -0
  165. package/dist/input/Input.vue.d.ts +21 -0
  166. package/dist/input/Input.vue.js +1 -0
  167. package/dist/input/PasswordInput.vue.d.ts +18 -0
  168. package/dist/input/PasswordInput.vue.js +66 -0
  169. package/dist/input-group/InputGroup.vue.d.ts +17 -0
  170. package/dist/input-group/InputGroup.vue.js +1 -0
  171. package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
  172. package/dist/input-group/InputGroupAddon.vue.js +1 -0
  173. package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
  174. package/dist/input-group/InputGroupButton.vue.js +1 -0
  175. package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
  176. package/dist/input-group/InputGroupInput.vue.js +1 -0
  177. package/dist/input-group/inputGroup.variants.d.ts +21 -0
  178. package/dist/input-group/inputGroup.variants.js +21 -0
  179. package/dist/knob/Knob.vue.d.ts +19 -0
  180. package/dist/knob/Knob.vue.js +122 -0
  181. package/dist/label/Label.vue.d.ts +18 -0
  182. package/dist/label/Label.vue.js +1 -0
  183. package/dist/layout/BaseModalLayout.vue.d.ts +67 -0
  184. package/dist/layout/BaseModalLayout.vue.js +198 -0
  185. package/dist/media/AudioPreview.vue.d.ts +6 -0
  186. package/dist/media/AudioPreview.vue.js +26 -0
  187. package/dist/media/ImageLightbox.vue.d.ts +17 -0
  188. package/dist/media/ImageLightbox.vue.js +76 -0
  189. package/dist/media/MediaTitle.vue.d.ts +6 -0
  190. package/dist/media/MediaTitle.vue.js +17 -0
  191. package/dist/media/Video.vue.d.ts +28 -0
  192. package/dist/media/Video.vue.js +100 -0
  193. package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
  194. package/dist/media/VideoPlayOverlay.vue.js +26 -0
  195. package/dist/media/VideoPreview.vue.d.ts +7 -0
  196. package/dist/media/VideoPreview.vue.js +30 -0
  197. package/dist/media/ZoomPane.vue.d.ts +17 -0
  198. package/dist/media/ZoomPane.vue.js +60 -0
  199. package/dist/menu/ContextMenu.vue.d.ts +31 -0
  200. package/dist/menu/ContextMenu.vue.js +50 -0
  201. package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
  202. package/dist/menu/ContextMenuContent.vue.js +1 -0
  203. package/dist/menu/Menu.vue.d.ts +41 -0
  204. package/dist/menu/Menu.vue.js +77 -0
  205. package/dist/menu/MenuAction.vue.d.ts +26 -0
  206. package/dist/menu/MenuAction.vue.js +1 -0
  207. package/dist/menu/MenuContent.vue.d.ts +35 -0
  208. package/dist/menu/MenuContent.vue.js +1 -0
  209. package/dist/menu/MenuItem.vue.d.ts +22 -0
  210. package/dist/menu/MenuItem.vue.js +33 -0
  211. package/dist/menu/MenuItemContent.vue.d.ts +8 -0
  212. package/dist/menu/MenuItemContent.vue.js +1 -0
  213. package/dist/menu/MenuItems.vue.d.ts +32 -0
  214. package/dist/menu/MenuItems.vue.js +1 -0
  215. package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
  216. package/dist/menu/MenuRadioGroup.vue.js +1 -0
  217. package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
  218. package/dist/menu/MenuRadioItem.vue.js +1 -0
  219. package/dist/menu/MenuSeparator.vue.d.ts +8 -0
  220. package/dist/menu/MenuSeparator.vue.js +1 -0
  221. package/dist/menu/MenuSub.vue.d.ts +20 -0
  222. package/dist/menu/MenuSub.vue.js +1 -0
  223. package/dist/menu/MenuSubContent.vue.d.ts +36 -0
  224. package/dist/menu/MenuSubContent.vue.js +1 -0
  225. package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
  226. package/dist/menu/MenuSubTrigger.vue.js +1 -0
  227. package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
  228. package/dist/menu/MenuSubmenu.vue.js +1 -0
  229. package/dist/menu/menuAnchor.d.ts +4 -0
  230. package/dist/menu/menuAnchor.js +14 -0
  231. package/dist/menu/menuStyles.d.ts +4 -0
  232. package/dist/menu/menuStyles.js +6 -0
  233. package/dist/menu/mouseDownUtil.d.ts +3 -0
  234. package/dist/menu/types.d.ts +69 -0
  235. package/dist/menu/types.js +0 -0
  236. package/dist/menu/usePointMenu.d.ts +19 -0
  237. package/dist/menu/usePointMenu.js +55 -0
  238. package/dist/message/Message.vue.d.ts +50 -0
  239. package/dist/message/Message.vue.js +73 -0
  240. package/dist/message/message.variants.d.ts +11 -0
  241. package/dist/message/message.variants.js +14 -0
  242. package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
  243. package/dist/multi-select/MultiSelect.vue.js +135 -0
  244. package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
  245. package/dist/multi-select/MultiSelectContent.vue.js +1 -0
  246. package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
  247. package/dist/multi-select/MultiSelectTrigger.vue.js +1 -0
  248. package/dist/multi-select/types.d.ts +35 -0
  249. package/dist/multi-select/types.js +0 -0
  250. package/dist/navigation/LeftSidePanel.vue.d.ts +12 -0
  251. package/dist/navigation/LeftSidePanel.vue.js +82 -0
  252. package/dist/navigation/NavIcon.vue.d.ts +7 -0
  253. package/dist/navigation/NavIcon.vue.js +1 -0
  254. package/dist/navigation/NavItem.vue.d.ts +21 -0
  255. package/dist/navigation/NavItem.vue.js +1 -0
  256. package/dist/navigation/NavTitle.vue.d.ts +12 -0
  257. package/dist/navigation/NavTitle.vue.js +1 -0
  258. package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
  259. package/dist/navigation/SidebarTopArea.vue.js +15 -0
  260. package/dist/navigation/types.d.ts +13 -0
  261. package/dist/navigation/types.js +0 -0
  262. package/dist/number-field/NumberField.vue.d.ts +26 -0
  263. package/dist/number-field/NumberField.vue.js +73 -0
  264. package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
  265. package/dist/number-field/NumberFieldDecrement.vue.js +33 -0
  266. package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
  267. package/dist/number-field/NumberFieldIncrement.vue.js +33 -0
  268. package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
  269. package/dist/number-field/NumberFieldInput.vue.js +23 -0
  270. package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
  271. package/dist/number-field/PropertyNumberField.vue.js +54 -0
  272. package/dist/pagination/Pagination.vue.d.ts +22 -0
  273. package/dist/pagination/Pagination.vue.js +138 -0
  274. package/dist/popover/PopoverContent.vue.d.ts +33 -0
  275. package/dist/popover/PopoverContent.vue.js +1 -0
  276. package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
  277. package/dist/popover/usePopoverViewportDismiss.js +12 -0
  278. package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
  279. package/dist/radio-group/RadioGroup.vue.js +43 -0
  280. package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
  281. package/dist/radio-group/RadioGroupItem.vue.js +40 -0
  282. package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
  283. package/dist/search-input/AsyncSearchInput.vue.js +102 -0
  284. package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
  285. package/dist/search-input/SearchAutocomplete.vue.js +232 -0
  286. package/dist/search-input/SearchInput.vue.d.ts +46 -0
  287. package/dist/search-input/SearchInput.vue.js +125 -0
  288. package/dist/search-input/searchInput.variants.d.ts +45 -0
  289. package/dist/select/DropdownControl.vue.d.ts +16 -0
  290. package/dist/select/DropdownControl.vue.js +46 -0
  291. package/dist/select/Select.vue.d.ts +21 -0
  292. package/dist/select/Select.vue.js +1 -0
  293. package/dist/select/SelectContent.vue.d.ts +29 -0
  294. package/dist/select/SelectContent.vue.js +1 -0
  295. package/dist/select/SelectItem.vue.d.ts +22 -0
  296. package/dist/select/SelectItem.vue.js +1 -0
  297. package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
  298. package/dist/select/SelectScrollDownButton.vue.js +1 -0
  299. package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
  300. package/dist/select/SelectScrollUpButton.vue.js +1 -0
  301. package/dist/select/SelectTrigger.vue.d.ts +22 -0
  302. package/dist/select/SelectTrigger.vue.js +1 -0
  303. package/dist/select/SelectValue.vue.d.ts +14 -0
  304. package/dist/select/SelectValue.vue.js +1 -0
  305. package/dist/select/types.d.ts +4 -0
  306. package/dist/select/types.js +0 -0
  307. package/dist/select/useSelectSearch.d.ts +3 -0
  308. package/dist/select/useSelectSearch.js +14 -0
  309. package/dist/shared/Badge-DFHO3AFi.js +90 -0
  310. package/dist/shared/Button-Dj_H5v3V.js +138 -0
  311. package/dist/shared/Card-BrvqUM49.js +32 -0
  312. package/dist/shared/CardFooter-BV_I0pM-.js +19 -0
  313. package/dist/shared/CardHeader-CMutruBx.js +19 -0
  314. package/dist/shared/ColorPickerPanel-DQGHuvxk.js +239 -0
  315. package/dist/shared/ColorPickerSaturationValue-B5VDiMcl.js +64 -0
  316. package/dist/shared/ColorPickerSlider--mnQyzWD.js +305 -0
  317. package/dist/shared/ContextMenuContent-RNyBBJOX.js +62 -0
  318. package/dist/shared/DialogClose-CrtPRSNX.js +22 -0
  319. package/dist/shared/DialogContent-v2s55FXs.js +71 -0
  320. package/dist/shared/DialogOverlay-C9qv0zme.js +33 -0
  321. package/dist/shared/DialogPortal-DtCpLgtO.js +36 -0
  322. package/dist/shared/DialogTitle-Chomvpgq.js +41 -0
  323. package/dist/shared/Input-DOeNoniw.js +36 -0
  324. package/dist/shared/InputGroup-BYt6BWpk.js +23 -0
  325. package/dist/shared/InputGroupAddon-B1cn7czs.js +36 -0
  326. package/dist/shared/InputGroupButton-tw5AYOoR.js +39 -0
  327. package/dist/shared/InputGroupInput-C_kkIxvY.js +30 -0
  328. package/dist/shared/Label-kwhWNR2P.js +34 -0
  329. package/dist/shared/LayoutField-C8KCaVF0.js +34 -0
  330. package/dist/shared/MenuAction-0z8BSoX9.js +121 -0
  331. package/dist/shared/MenuContent--tKCqaIO.js +78 -0
  332. package/dist/shared/MenuItemContent-Be658c7e.js +67 -0
  333. package/dist/shared/MenuItems-BZTlERd6.js +67 -0
  334. package/dist/shared/MenuRadioGroup-B28YS1p1.js +63 -0
  335. package/dist/shared/MenuRadioItem-D8DFu-KU.js +34 -0
  336. package/dist/shared/MenuSeparator-DrAiObmE.js +26 -0
  337. package/dist/shared/MenuSub-DSizq_fV.js +21 -0
  338. package/dist/shared/MenuSubContent-ghzkX4hX.js +67 -0
  339. package/dist/shared/MenuSubTrigger-BGRIm_Bf.js +33 -0
  340. package/dist/shared/MenuSubmenu-CjPf8DXl.js +41 -0
  341. package/dist/shared/MultiSelectContent-9xyBQKz3.js +160 -0
  342. package/dist/shared/MultiSelectTrigger-DNySkpH9.js +50 -0
  343. package/dist/shared/NavIcon-FTJH75HH.js +12 -0
  344. package/dist/shared/NavItem-sQJ-77Zw.js +77 -0
  345. package/dist/shared/NavTitle-BM22yfCR.js +40 -0
  346. package/dist/shared/OverlayIcon-C-din824.js +43 -0
  347. package/dist/shared/PopoverContent-DNqL6t-O.js +89 -0
  348. package/dist/shared/SearchableSingleSelect-DQauLQWW.js +182 -0
  349. package/dist/shared/Select-DtVgv7Po.js +31 -0
  350. package/dist/shared/SelectContent-Ba1mCDWM.js +89 -0
  351. package/dist/shared/SelectItem-DaOr3TFS.js +55 -0
  352. package/dist/shared/SelectScrollDownButton-DYmxtida.js +28 -0
  353. package/dist/shared/SelectScrollUpButton-DiyvSb9O.js +28 -0
  354. package/dist/shared/SelectTrigger-BBicbVsI.js +45 -0
  355. package/dist/shared/SelectValue-BjaQc-WU.js +21 -0
  356. package/dist/shared/Switch-qavkHWMz.js +61 -0
  357. package/dist/shared/TableHead-DpsXVMzk.js +22 -0
  358. package/dist/shared/TagRemoveButton-D919R-To.js +36 -0
  359. package/dist/shared/TextTooltip-BNlZI515.js +27 -0
  360. package/dist/shared/Tooltip-4rCebVao.js +32 -0
  361. package/dist/shared/TooltipContent-0GR7hBNu.js +89 -0
  362. package/dist/shared/TooltipTrigger-64EIE5f2.js +63 -0
  363. package/dist/shared/TransitionCollapse-VfBzyj5a.js +108 -0
  364. package/dist/shared/_plugin-vue_export-helper-DjkACiAr.js +7 -0
  365. package/dist/shared/searchInput.variants-BdYHNjce.js +46 -0
  366. package/dist/shared/select.variants-cRXaATWS.js +39 -0
  367. package/dist/shared/src-DTwuqov4.js +11 -0
  368. package/dist/shared/tabKeys-CP6c3wTY.js +3 -0
  369. package/dist/shared/tabs.variants-Cgk7bRhG.js +22 -0
  370. package/dist/shared/tag.variants-BEXRRbPc.js +33 -0
  371. package/dist/shared/tagsInputContext-C-X1-iNf.js +4 -0
  372. package/dist/shared/toggleGroup.variants-BuwGELw0.js +38 -0
  373. package/dist/shared/tooltipContext-arEyjGQC.js +3 -0
  374. package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
  375. package/dist/single-select/SearchableSingleSelect.vue.js +1 -0
  376. package/dist/single-select/SingleSelect.vue.d.ts +38 -0
  377. package/dist/single-select/SingleSelect.vue.js +185 -0
  378. package/dist/single-select/types.d.ts +25 -0
  379. package/dist/single-select/types.js +0 -0
  380. package/dist/skeleton/Skeleton.vue.d.ts +7 -0
  381. package/dist/skeleton/Skeleton.vue.js +22 -0
  382. package/dist/slider/GradientSlider.vue.d.ts +20 -0
  383. package/dist/slider/GradientSlider.vue.js +100 -0
  384. package/dist/slider/Slider.vue.d.ts +16 -0
  385. package/dist/slider/Slider.vue.js +86 -0
  386. package/dist/slider/gradients.d.ts +6 -0
  387. package/dist/spinner/Spinner.vue.d.ts +7 -0
  388. package/dist/spinner/Spinner.vue.js +39 -0
  389. package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
  390. package/dist/splitter/SplitterGroup.vue.js +38 -0
  391. package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
  392. package/dist/splitter/SplitterPanel.vue.js +43 -0
  393. package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
  394. package/dist/splitter/SplitterResizeHandle.vue.js +35 -0
  395. package/dist/switch/Switch.vue.d.ts +17 -0
  396. package/dist/switch/Switch.vue.js +1 -0
  397. package/dist/tab/Tab.vue.d.ts +24 -0
  398. package/dist/tab/Tab.vue.js +73 -0
  399. package/dist/tab/TabList.vue.d.ts +26 -0
  400. package/dist/tab/TabList.vue.js +29 -0
  401. package/dist/tab/TabPanel.vue.d.ts +23 -0
  402. package/dist/tab/TabPanel.vue.js +26 -0
  403. package/dist/tab/tab.variants.d.ts +9 -0
  404. package/dist/tab/tabKeys.d.ts +7 -0
  405. package/dist/table/Table.vue.d.ts +17 -0
  406. package/dist/table/Table.vue.js +21 -0
  407. package/dist/table/TableBody.vue.d.ts +17 -0
  408. package/dist/table/TableBody.vue.js +19 -0
  409. package/dist/table/TableCell.vue.d.ts +17 -0
  410. package/dist/table/TableCell.vue.js +19 -0
  411. package/dist/table/TableHead.vue.d.ts +17 -0
  412. package/dist/table/TableHead.vue.js +1 -0
  413. package/dist/table/TableHeader.vue.d.ts +17 -0
  414. package/dist/table/TableHeader.vue.js +19 -0
  415. package/dist/table/TableRow.vue.d.ts +17 -0
  416. package/dist/table/TableRow.vue.js +19 -0
  417. package/dist/table/TableSortHead.vue.d.ts +26 -0
  418. package/dist/table/TableSortHead.vue.js +45 -0
  419. package/dist/table/tableUtils.d.ts +3 -0
  420. package/dist/table/tableUtils.js +18 -0
  421. package/dist/tabs/Tabs.vue.d.ts +22 -0
  422. package/dist/tabs/Tabs.vue.js +41 -0
  423. package/dist/tabs/TabsContent.vue.d.ts +18 -0
  424. package/dist/tabs/TabsContent.vue.js +35 -0
  425. package/dist/tabs/TabsList.vue.d.ts +20 -0
  426. package/dist/tabs/TabsList.vue.js +36 -0
  427. package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
  428. package/dist/tabs/TabsTrigger.vue.js +37 -0
  429. package/dist/tabs/tabs.variants.d.ts +21 -0
  430. package/dist/tags-input/TagsInput.vue.d.ts +32 -0
  431. package/dist/tags-input/TagsInput.vue.js +96 -0
  432. package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
  433. package/dist/tags-input/TagsInputInput.vue.js +54 -0
  434. package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
  435. package/dist/tags-input/TagsInputItem.vue.js +32 -0
  436. package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
  437. package/dist/tags-input/TagsInputItemDelete.vue.js +33 -0
  438. package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
  439. package/dist/tags-input/TagsInputItemText.vue.js +26 -0
  440. package/dist/tags-input/tagsInputContext.d.ts +4 -0
  441. package/dist/textarea/Textarea.vue.d.ts +17 -0
  442. package/dist/textarea/Textarea.vue.js +31 -0
  443. package/dist/toast/ToastClose.vue.d.ts +8 -0
  444. package/dist/toast/ToastClose.vue.js +40 -0
  445. package/dist/toast/ToastDescription.vue.d.ts +18 -0
  446. package/dist/toast/ToastDescription.vue.js +29 -0
  447. package/dist/toast/ToastDock.vue.d.ts +13 -0
  448. package/dist/toast/ToastDock.vue.js +27 -0
  449. package/dist/toast/ToastPanel.vue.d.ts +30 -0
  450. package/dist/toast/ToastPanel.vue.js +45 -0
  451. package/dist/toast/ToastRoot.vue.d.ts +100 -0
  452. package/dist/toast/ToastRoot.vue.js +53 -0
  453. package/dist/toast/ToastTitle.vue.d.ts +18 -0
  454. package/dist/toast/ToastTitle.vue.js +29 -0
  455. package/dist/toast/ToastViewport.vue.d.ts +9 -0
  456. package/dist/toast/ToastViewport.vue.js +31 -0
  457. package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
  458. package/dist/toggle-group/ToggleGroup.vue.js +59 -0
  459. package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
  460. package/dist/toggle-group/ToggleGroupItem.vue.js +43 -0
  461. package/dist/toggle-group/toggleGroup.variants.d.ts +24 -0
  462. package/dist/tooltip/TextTooltip.vue.d.ts +20 -0
  463. package/dist/tooltip/TextTooltip.vue.js +1 -0
  464. package/dist/tooltip/Tooltip.vue.d.ts +23 -0
  465. package/dist/tooltip/Tooltip.vue.js +1 -0
  466. package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
  467. package/dist/tooltip/TooltipContent.vue.js +1 -0
  468. package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
  469. package/dist/tooltip/TooltipProvider.vue.js +37 -0
  470. package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
  471. package/dist/tooltip/TooltipTrigger.vue.js +1 -0
  472. package/dist/tooltip/tooltipConfig.d.ts +5 -0
  473. package/dist/tooltip/tooltipConfig.js +7 -0
  474. package/dist/tooltip/tooltipContext.d.ts +2 -0
  475. package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
  476. package/dist/transition/TransitionCollapse.vue.js +1 -0
  477. package/dist/tree/Tree.vue.d.ts +32 -0
  478. package/dist/tree/Tree.vue.js +53 -0
  479. package/dist/tree/TreeItem.vue.d.ts +29 -0
  480. package/dist/tree/TreeItem.vue.js +80 -0
  481. package/dist/tree/treeStyles.d.ts +4 -0
  482. package/dist/tree/treeStyles.js +6 -0
  483. package/dist-types/button.variants.d.ts +16 -0
  484. package/dist-types/select.variants.d.ts +24 -0
  485. package/dist-types/tag.variants.d.ts +21 -0
  486. package/dist-types/workspaceAvatar.d.ts +5 -0
  487. package/package.json +186 -8
  488. package/src/button.variants.ts +84 -0
  489. package/src/css/_deprecated-aliases.css +12 -0
  490. package/src/css/_legacy-palette.css +33 -0
  491. package/src/css/_legacy-ui.css +418 -0
  492. package/src/css/_markdown.css +227 -0
  493. package/src/css/_mask-editor.css +179 -0
  494. package/src/css/_palette.css +40 -4
  495. package/src/css/base.css +0 -6
  496. package/src/css/component-support.css +69 -0
  497. package/src/css/iconSizing.test.ts +80 -0
  498. package/src/css/iconifyDynamicPlugin.ts +15 -6
  499. package/src/css/icons.test.ts +17 -0
  500. package/src/css/lucideStrokePlugin.js +5 -6
  501. package/src/css/published.css +3 -0
  502. package/src/css/style.css +5 -1909
  503. package/src/css/theme.css +243 -0
  504. package/src/css/themes/void.css +102 -0
  505. package/src/icons/README.md +61 -97
  506. package/src/icons/astroid-filled.svg +3 -0
  507. package/src/icons/claude.svg +1 -1
  508. package/src/select.variants.ts +53 -0
  509. package/src/tag.variants.ts +38 -0
@@ -0,0 +1,305 @@
1
+ import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, normalizeStyle, openBlock, useModel } from "vue";
2
+ import { memoize } from "es-toolkit/compat";
3
+ // ../shared-frontend-utils/src/colorUtil.ts
4
+ function rgbToHsl({ r, g, b }) {
5
+ r /= 255;
6
+ g /= 255;
7
+ b /= 255;
8
+ const max = Math.max(r, g, b), min = Math.min(r, g, b);
9
+ let h = 0, s = 0;
10
+ const l = (max + min) / 2;
11
+ if (max !== min) {
12
+ const d = max - min;
13
+ s = l > .5 ? d / (2 - max - min) : d / (max + min);
14
+ switch (max) {
15
+ case r:
16
+ h = (g - b) / d + (g < b ? 6 : 0);
17
+ break;
18
+ case g:
19
+ h = (b - r) / d + 2;
20
+ break;
21
+ case b: h = (r - g) / d + 4;
22
+ }
23
+ h /= 6;
24
+ }
25
+ return {
26
+ h,
27
+ s,
28
+ l
29
+ };
30
+ }
31
+ function hexToRgb(hex) {
32
+ let r = 0, g = 0, b = 0;
33
+ if (hex.length === 4 || hex.length === 5) {
34
+ r = parseInt(hex[1] + hex[1], 16);
35
+ g = parseInt(hex[2] + hex[2], 16);
36
+ b = parseInt(hex[3] + hex[3], 16);
37
+ } else if (hex.length === 7 || hex.length === 9) {
38
+ r = parseInt(hex.slice(1, 3), 16);
39
+ g = parseInt(hex.slice(3, 5), 16);
40
+ b = parseInt(hex.slice(5, 7), 16);
41
+ }
42
+ return {
43
+ r,
44
+ g,
45
+ b
46
+ };
47
+ }
48
+ function rgbToHex({ r, g, b }) {
49
+ const toHex = (n) => Math.max(0, Math.min(255, Math.round(n))).toString(16).padStart(2, "0");
50
+ return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
51
+ }
52
+ function hsbToRgb({ h, s, b }) {
53
+ const hh = (h % 360 + 360) % 360;
54
+ const ss = Math.max(0, Math.min(100, s)) / 100;
55
+ const vv = Math.max(0, Math.min(100, b)) / 100;
56
+ const c = vv * ss;
57
+ const x = c * (1 - Math.abs(hh / 60 % 2 - 1));
58
+ const m = vv - c;
59
+ let rp, gp, bp;
60
+ if (hh < 60) {
61
+ rp = c;
62
+ gp = x;
63
+ bp = 0;
64
+ } else if (hh < 120) {
65
+ rp = x;
66
+ gp = c;
67
+ bp = 0;
68
+ } else if (hh < 180) {
69
+ rp = 0;
70
+ gp = c;
71
+ bp = x;
72
+ } else if (hh < 240) {
73
+ rp = 0;
74
+ gp = x;
75
+ bp = c;
76
+ } else if (hh < 300) {
77
+ rp = x;
78
+ gp = 0;
79
+ bp = c;
80
+ } else {
81
+ rp = c;
82
+ gp = 0;
83
+ bp = x;
84
+ }
85
+ return {
86
+ r: Math.floor((rp + m) * 255),
87
+ g: Math.floor((gp + m) * 255),
88
+ b: Math.floor((bp + m) * 255)
89
+ };
90
+ }
91
+ var identifyColorFormat = (color) => {
92
+ if (!color) return null;
93
+ if (color.startsWith("#") && (color.length === 4 || color.length === 5 || color.length === 7 || color.length === 9)) return "hex";
94
+ if (/rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*/.test(color)) return color.includes("rgba") ? "rgba" : "rgb";
95
+ if (/hsla?\(\s*\d+(\.\d+)?\s*,\s*\d+(\.\d+)?%\s*,\s*\d+(\.\d+)?%/.test(color)) return color.includes("hsla") ? "hsla" : "hsl";
96
+ return null;
97
+ };
98
+ var isHSLA = (color) => {
99
+ if (typeof color !== "object" || color === null) return false;
100
+ return [
101
+ "h",
102
+ "s",
103
+ "l",
104
+ "a"
105
+ ].every((key) => typeof color[key] === "number" && !isNaN(color[key]));
106
+ };
107
+ function parseToHSLA(color, format) {
108
+ let match;
109
+ switch (format) {
110
+ case "hex": {
111
+ let a = 1;
112
+ let hexColor = color;
113
+ if (color.length === 9) {
114
+ a = parseInt(color.slice(7, 9), 16) / 255;
115
+ hexColor = color.slice(0, 7);
116
+ } else if (color.length === 5) {
117
+ const aChar = color[4];
118
+ a = parseInt(aChar + aChar, 16) / 255;
119
+ hexColor = color.slice(0, 4);
120
+ }
121
+ const hsl = rgbToHsl(hexToRgb(hexColor));
122
+ return {
123
+ h: Math.round(hsl.h * 360),
124
+ s: +(hsl.s * 100).toFixed(1),
125
+ l: +(hsl.l * 100).toFixed(1),
126
+ a
127
+ };
128
+ }
129
+ case "rgb":
130
+ case "rgba": {
131
+ match = color.match(/\d+(\.\d+)?/g);
132
+ if (!match || match.length < 3) return null;
133
+ const [r, g, b] = match.map(Number);
134
+ const hsl = rgbToHsl({
135
+ r,
136
+ g,
137
+ b
138
+ });
139
+ const a = format === "rgba" && match[3] ? parseFloat(match[3]) : 1;
140
+ return {
141
+ h: Math.round(hsl.h * 360),
142
+ s: +(hsl.s * 100).toFixed(1),
143
+ l: +(hsl.l * 100).toFixed(1),
144
+ a
145
+ };
146
+ }
147
+ case "hsl":
148
+ case "hsla": {
149
+ match = color.match(/\d+(\.\d+)?/g);
150
+ if (!match || match.length < 3) return null;
151
+ const [h, s, l] = match.map(Number);
152
+ return {
153
+ h,
154
+ s,
155
+ l,
156
+ a: format === "hsla" && match[3] ? parseFloat(match[3]) : 1
157
+ };
158
+ }
159
+ default: return null;
160
+ }
161
+ }
162
+ function rgbToHsv({ r, g, b }) {
163
+ r /= 255;
164
+ g /= 255;
165
+ b /= 255;
166
+ const max = Math.max(r, g, b);
167
+ const d = max - Math.min(r, g, b);
168
+ let h = 0;
169
+ const s = max === 0 ? 0 : d / max * 100;
170
+ const v = max * 100;
171
+ if (d !== 0) switch (max) {
172
+ case r:
173
+ h = ((g - b) / d + (g < b ? 6 : 0)) * 60;
174
+ break;
175
+ case g:
176
+ h = ((b - r) / d + 2) * 60;
177
+ break;
178
+ case b: h = ((r - g) / d + 4) * 60;
179
+ }
180
+ return {
181
+ h,
182
+ s,
183
+ v
184
+ };
185
+ }
186
+ function normalizeHex(value) {
187
+ const digits = value.trim().replace(/^#/, "");
188
+ return /^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(digits) ? `#${digits}` : null;
189
+ }
190
+ function hexToHsva(hex) {
191
+ const normalized = hex.startsWith("#") ? hex : `#${hex}`;
192
+ let a = 100;
193
+ let hexColor = normalized;
194
+ if (normalized.length === 9) {
195
+ a = Math.round(parseInt(normalized.slice(7, 9), 16) / 255 * 100);
196
+ hexColor = normalized.slice(0, 7);
197
+ } else if (normalized.length === 5) {
198
+ const aChar = normalized[4];
199
+ a = Math.round(parseInt(aChar + aChar, 16) / 255 * 100);
200
+ hexColor = normalized.slice(0, 4);
201
+ }
202
+ return {
203
+ ...rgbToHsv(hexToRgb(hexColor)),
204
+ a
205
+ };
206
+ }
207
+ function hsvaToHex(hsva) {
208
+ const hex = rgbToHex(hsbToRgb({
209
+ h: hsva.h,
210
+ s: hsva.s,
211
+ b: hsva.v
212
+ }));
213
+ if (hsva.a >= 100) return hex.toLowerCase();
214
+ return `${hex}${Math.round(hsva.a / 100 * 255).toString(16).padStart(2, "0")}`.toLowerCase();
215
+ }
216
+ var applyColorAdjustments = (color, options) => {
217
+ if (!Object.keys(options).length) return color;
218
+ const format = identifyColorFormat(color);
219
+ if (!format) {
220
+ console.warn(`Unsupported color format in color palette: ${color}`);
221
+ return color;
222
+ }
223
+ const hsla = parseToHSLA(color, format);
224
+ if (!isHSLA(hsla)) {
225
+ console.warn(`Invalid color values in color palette: ${color}`);
226
+ return color;
227
+ }
228
+ if (options.lightness) hsla.l = Math.max(0, Math.min(100, hsla.l + options.lightness * 100));
229
+ if (options.opacity) hsla.a = Math.max(0, Math.min(1, options.opacity));
230
+ return `hsla(${hsla.h}, ${hsla.s}%, ${hsla.l}%, ${hsla.a})`;
231
+ };
232
+ memoize(applyColorAdjustments, (color, options) => `${color}-${JSON.stringify(options)}`);
233
+ // src/components/color-picker/ColorPickerSlider.vue?vue&type=script&setup=true&lang.ts
234
+ var _hoisted_1 = ["aria-valuemax", "aria-valuenow"];
235
+ // src/components/color-picker/ColorPickerSlider.vue
236
+ var ColorPickerSlider_default = /* @__PURE__ */ defineComponent({
237
+ __name: "ColorPickerSlider",
238
+ props: /*@__PURE__*/ mergeModels({
239
+ type: {},
240
+ hue: { default: 0 },
241
+ saturation: { default: 100 },
242
+ brightness: { default: 100 }
243
+ }, {
244
+ "modelValue": { required: true },
245
+ "modelModifiers": {}
246
+ }),
247
+ emits: ["update:modelValue"],
248
+ setup(__props) {
249
+ const modelValue = useModel(__props, "modelValue");
250
+ const max = computed(() => __props.type === "hue" ? 360 : 100);
251
+ const fraction = computed(() => modelValue.value / max.value);
252
+ const trackBackground = computed(() => {
253
+ if (__props.type === "hue") return "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)";
254
+ return `linear-gradient(to right, transparent, ${rgbToHex(hsbToRgb({
255
+ h: __props.hue,
256
+ s: __props.saturation,
257
+ b: __props.brightness
258
+ }))})`;
259
+ });
260
+ const containerStyle = computed(() => {
261
+ if (__props.type === "alpha") return {
262
+ backgroundImage: "repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%)",
263
+ backgroundSize: "8px 8px",
264
+ touchAction: "none"
265
+ };
266
+ return {
267
+ background: trackBackground.value,
268
+ touchAction: "none"
269
+ };
270
+ });
271
+ function updateFromPointer(e) {
272
+ const rect = e.currentTarget.getBoundingClientRect();
273
+ const x = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));
274
+ modelValue.value = Math.round(x * max.value);
275
+ }
276
+ function handlePointerDown(e) {
277
+ e.currentTarget.setPointerCapture(e.pointerId);
278
+ updateFromPointer(e);
279
+ }
280
+ function handlePointerMove(e) {
281
+ if (!e.currentTarget.hasPointerCapture(e.pointerId)) return;
282
+ updateFromPointer(e);
283
+ }
284
+ return (_ctx, _cache) => {
285
+ return openBlock(), createElementBlock("div", {
286
+ role: "slider",
287
+ "aria-valuemin": 0,
288
+ "aria-valuemax": max.value,
289
+ "aria-valuenow": modelValue.value,
290
+ class: "relative flex h-4 cursor-pointer items-center rounded-full p-px",
291
+ style: normalizeStyle(containerStyle.value),
292
+ onPointerdown: handlePointerDown,
293
+ onPointermove: handlePointerMove
294
+ }, [__props.type === "alpha" ? (openBlock(), createElementBlock("div", {
295
+ key: 0,
296
+ class: "absolute inset-0 rounded-full",
297
+ style: normalizeStyle({ background: trackBackground.value })
298
+ }, null, 4)) : createCommentVNode("", true), createElementVNode("div", {
299
+ class: "pointer-events-none absolute aspect-square h-full -translate-x-1/2 rounded-full border-2 border-white shadow-[0_0_2px_rgba(0,0,0,0.6)]",
300
+ style: normalizeStyle({ left: `${fraction.value * 100}%` })
301
+ }, null, 4)], 44, _hoisted_1);
302
+ };
303
+ }
304
+ });
305
+ export { normalizeHex as a, hsvaToHex as i, hexToHsva as n, rgbToHex as o, hsbToRgb as r, rgbToHsv as s, ColorPickerSlider_default as t };
@@ -0,0 +1,62 @@
1
+ import { t as cn } from "./src-DTwuqov4.js";
2
+ import { menuContentClass } from "../menu/menuStyles.js";
3
+ import { createBlock, createPropsRestProxy, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
4
+ import { ContextMenuContent, ContextMenuPortal, injectContextMenuRootContext, useForwardPropsEmits } from "reka-ui";
5
+ // src/components/menu/ContextMenuContent.vue
6
+ var ContextMenuContent_default = /* @__PURE__ */ defineComponent({
7
+ inheritAttrs: false,
8
+ __name: "ContextMenuContent",
9
+ props: {
10
+ forceMount: { type: Boolean },
11
+ loop: { type: Boolean },
12
+ memoDependencies: {},
13
+ sideFlip: { type: Boolean },
14
+ alignOffset: {},
15
+ alignFlip: { type: Boolean },
16
+ avoidCollisions: { type: Boolean },
17
+ collisionBoundary: {},
18
+ collisionPadding: {},
19
+ hideShiftedArrow: { type: Boolean },
20
+ sticky: {},
21
+ hideWhenDetached: { type: Boolean },
22
+ positionStrategy: {},
23
+ disableUpdateOnLayoutShift: { type: Boolean },
24
+ prioritizePosition: { type: Boolean },
25
+ reference: {},
26
+ asChild: { type: Boolean },
27
+ as: {},
28
+ class: { type: [
29
+ Boolean,
30
+ null,
31
+ String,
32
+ Object,
33
+ Array
34
+ ] }
35
+ },
36
+ emits: [
37
+ "escapeKeyDown",
38
+ "pointerDownOutside",
39
+ "focusOutside",
40
+ "interactOutside",
41
+ "openAutoFocus",
42
+ "closeAutoFocus"
43
+ ],
44
+ setup(__props, { emit: __emit }) {
45
+ const restProps = createPropsRestProxy(__props, ["class"]);
46
+ const forwarded = useForwardPropsEmits(restProps, __emit);
47
+ const rootContext = injectContextMenuRootContext();
48
+ return (_ctx, _cache) => {
49
+ return openBlock(), createBlock(unref(ContextMenuPortal), { key: Number(unref(rootContext).open.value) }, {
50
+ default: withCtx(() => [createVNode(unref(ContextMenuContent), mergeProps({
51
+ ...unref(forwarded),
52
+ ..._ctx.$attrs
53
+ }, { class: unref(cn)(unref(menuContentClass), __props.class) }), {
54
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
55
+ _: 3
56
+ }, 16, ["class"])]),
57
+ _: 3
58
+ });
59
+ };
60
+ }
61
+ });
62
+ export { ContextMenuContent_default as t };
@@ -0,0 +1,22 @@
1
+ import { t as Button_default } from "./Button-Dj_H5v3V.js";
2
+ import { createBlock, createElementVNode, createVNode, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { DialogClose } from "reka-ui";
4
+ // src/components/dialog/DialogClose.vue
5
+ var DialogClose_default = /* @__PURE__ */ defineComponent({
6
+ __name: "DialogClose",
7
+ setup(__props) {
8
+ return (_ctx, _cache) => {
9
+ return openBlock(), createBlock(unref(DialogClose), { "as-child": "" }, {
10
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(unref(Button_default), {
11
+ size: "icon",
12
+ variant: "muted-textonly"
13
+ }, {
14
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "icon-[lucide--x]" }, null, -1)])]),
15
+ _: 1
16
+ })])]),
17
+ _: 3
18
+ });
19
+ };
20
+ }
21
+ });
22
+ export { DialogClose_default as t };
@@ -0,0 +1,71 @@
1
+ import { t as cn } from "./src-DTwuqov4.js";
2
+ import { dialogContentVariants } from "../dialog/dialog.variants.js";
3
+ import { createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
4
+ import { DialogContent, useForwardPropsEmits } from "reka-ui";
5
+ // src/components/dialog/DialogContent.vue
6
+ var DialogContent_default = /* @__PURE__ */ defineComponent({
7
+ __name: "DialogContent",
8
+ props: {
9
+ forceMount: { type: Boolean },
10
+ disableOutsidePointerEvents: { type: Boolean },
11
+ asChild: { type: Boolean },
12
+ as: {},
13
+ class: {
14
+ type: [
15
+ Boolean,
16
+ null,
17
+ String,
18
+ Object,
19
+ Array
20
+ ],
21
+ default: ""
22
+ },
23
+ maximized: {
24
+ type: Boolean,
25
+ default: false
26
+ },
27
+ size: {},
28
+ surface: {}
29
+ },
30
+ emits: [
31
+ "escapeKeyDown",
32
+ "pointerDownOutside",
33
+ "focusOutside",
34
+ "interactOutside",
35
+ "openAutoFocus",
36
+ "closeAutoFocus"
37
+ ],
38
+ setup(__props, { emit: __emit }) {
39
+ const restProps = createPropsRestProxy(__props, [
40
+ "class",
41
+ "maximized",
42
+ "size",
43
+ "surface"
44
+ ]);
45
+ const forwarded = useForwardPropsEmits(restProps, __emit);
46
+ function focusAutofocusTarget(event) {
47
+ if (event.defaultPrevented || !(event.target instanceof HTMLElement)) return;
48
+ const target = event.target.querySelector("[autofocus]");
49
+ if (!target) return;
50
+ target.focus();
51
+ if (document.activeElement === target) event.preventDefault();
52
+ }
53
+ return (_ctx, _cache) => {
54
+ return openBlock(), createBlock(unref(DialogContent), mergeProps(unref(forwarded), {
55
+ "data-reka-dialog-content": "",
56
+ "data-maximized": __props.maximized || void 0,
57
+ class: unref(cn)(unref(dialogContentVariants)({
58
+ maximized: __props.maximized,
59
+ size: __props.size,
60
+ surface: __props.surface
61
+ }), __props.class, __props.maximized && "top-2 left-2 size-auto max-h-none max-w-none sm:max-w-none"),
62
+ onOpenAutoFocus: focusAutofocusTarget,
63
+ onFocus: focusAutofocusTarget
64
+ }), {
65
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
66
+ _: 3
67
+ }, 16, ["data-maximized", "class"]);
68
+ };
69
+ }
70
+ });
71
+ export { DialogContent_default as t };
@@ -0,0 +1,33 @@
1
+ import { t as cn } from "./src-DTwuqov4.js";
2
+ import { createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, unref } from "vue";
3
+ import { DialogOverlay } from "reka-ui";
4
+ // src/components/dialog/DialogOverlay.vue
5
+ var DialogOverlay_default = /* @__PURE__ */ defineComponent({
6
+ __name: "DialogOverlay",
7
+ props: {
8
+ forceMount: { type: Boolean },
9
+ asChild: { type: Boolean },
10
+ as: {},
11
+ class: {
12
+ type: [
13
+ Boolean,
14
+ null,
15
+ String,
16
+ Object,
17
+ Array
18
+ ],
19
+ default: ""
20
+ }
21
+ },
22
+ setup(__props) {
23
+ const delegated = createPropsRestProxy(__props, ["class"]);
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createBlock(unref(DialogOverlay), mergeProps(delegated, {
26
+ "data-slot": "dialog-overlay",
27
+ "data-testid": "dialog-overlay",
28
+ class: unref(cn)("fixed inset-0 bg-black/70 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", __props.class)
29
+ }), null, 16, ["class"]);
30
+ };
31
+ }
32
+ });
33
+ export { DialogOverlay_default as t };
@@ -0,0 +1,36 @@
1
+ import { createBlock, createCommentVNode, createElementVNode, defineComponent, mergeProps, openBlock, reactive, ref, renderSlot, unref, useTemplateRef, watch, withCtx } from "vue";
2
+ import { ConfigProvider, DialogPortal, injectConfigProviderContext, injectDialogRootContext } from "reka-ui";
3
+ // src/components/dialog/DialogPortal.vue
4
+ var DialogPortal_default = /* @__PURE__ */ defineComponent({
5
+ __name: "DialogPortal",
6
+ props: {
7
+ to: {},
8
+ disabled: { type: Boolean },
9
+ defer: { type: Boolean },
10
+ forceMount: { type: Boolean }
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const { open } = injectDialogRootContext();
15
+ const config = reactive(injectConfigProviderContext(null) ?? {});
16
+ const portalTarget = useTemplateRef("portalTarget");
17
+ const openCount = ref(0);
18
+ watch(open, (isOpen) => {
19
+ if (isOpen) openCount.value++;
20
+ });
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createBlock(unref(DialogPortal), mergeProps({ key: openCount.value }, props), {
23
+ default: withCtx(() => [createElementVNode("div", {
24
+ ref_key: "portalTarget",
25
+ ref: portalTarget,
26
+ class: "pointer-events-none fixed inset-0 z-overlay *:pointer-events-auto empty:hidden"
27
+ }, [portalTarget.value ? (openBlock(), createBlock(unref(ConfigProvider), mergeProps({ key: 0 }, config, { "teleport-to": portalTarget.value }), {
28
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
29
+ _: 3
30
+ }, 16, ["teleport-to"])) : createCommentVNode("", true)], 512)]),
31
+ _: 3
32
+ }, 16);
33
+ };
34
+ }
35
+ });
36
+ export { DialogPortal_default as t };
@@ -0,0 +1,41 @@
1
+ import { t as cn } from "./src-DTwuqov4.js";
2
+ import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { Primitive, injectDialogRootContext } from "reka-ui";
4
+ // src/components/dialog/DialogTitle.vue
5
+ var DialogTitle_default = /* @__PURE__ */ defineComponent({
6
+ __name: "DialogTitle",
7
+ props: {
8
+ asChild: { type: Boolean },
9
+ as: { default: "h2" },
10
+ class: {
11
+ type: [
12
+ Boolean,
13
+ null,
14
+ String,
15
+ Object,
16
+ Array
17
+ ],
18
+ default: ""
19
+ }
20
+ },
21
+ setup(__props) {
22
+ const dialogRoot = injectDialogRootContext(null);
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createBlock(unref(Primitive), {
25
+ id: unref(dialogRoot)?.titleId,
26
+ as: __props.as,
27
+ "as-child": __props.asChild,
28
+ class: normalizeClass(unref(cn)("min-w-0 text-base font-semibold wrap-break-word text-foreground", __props.class))
29
+ }, {
30
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
31
+ _: 3
32
+ }, 8, [
33
+ "id",
34
+ "as",
35
+ "as-child",
36
+ "class"
37
+ ]);
38
+ };
39
+ }
40
+ });
41
+ export { DialogTitle_default as t };
@@ -0,0 +1,36 @@
1
+ import { t as cn } from "./src-DTwuqov4.js";
2
+ import { createElementBlock, defineComponent, mergeModels, normalizeClass, openBlock, unref, useModel, useTemplateRef, vModelText, withDirectives } from "vue";
3
+ // src/components/input/Input.vue
4
+ var Input_default = /* @__PURE__ */ defineComponent({
5
+ __name: "Input",
6
+ props: /*@__PURE__*/ mergeModels({ class: { type: [
7
+ Boolean,
8
+ null,
9
+ String,
10
+ Object,
11
+ Array
12
+ ] } }, {
13
+ "modelValue": {},
14
+ "modelModifiers": {}
15
+ }),
16
+ emits: ["update:modelValue"],
17
+ setup(__props, { expose: __expose }) {
18
+ const modelValue = useModel(__props, "modelValue");
19
+ const inputRef = useTemplateRef("inputEl");
20
+ __expose({
21
+ focus: () => inputRef.value?.focus(),
22
+ select: () => inputRef.value?.select(),
23
+ blur: () => inputRef.value?.blur(),
24
+ setSelectionRange: (start, end) => inputRef.value?.setSelectionRange(start, end),
25
+ selectAll: () => inputRef.value?.setSelectionRange(0, inputRef.value.value.length)
26
+ });
27
+ return (_ctx, _cache) => {
28
+ return withDirectives((openBlock(), createElementBlock("input", {
29
+ ref: "inputEl",
30
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
31
+ class: normalizeClass(unref(cn)("flex h-10 w-full min-w-0 appearance-none rounded-lg border-none bg-secondary px-4 py-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 aria-invalid:ring-1 aria-invalid:ring-destructive", __props.class))
32
+ }, null, 2)), [[vModelText, modelValue.value]]);
33
+ };
34
+ }
35
+ });
36
+ export { Input_default as t };
@@ -0,0 +1,23 @@
1
+ import { t as cn } from "./src-DTwuqov4.js";
2
+ import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
3
+ // src/components/input-group/InputGroup.vue
4
+ var InputGroup_default = /* @__PURE__ */ defineComponent({
5
+ __name: "InputGroup",
6
+ props: { class: { type: [
7
+ Boolean,
8
+ null,
9
+ String,
10
+ Object,
11
+ Array
12
+ ] } },
13
+ setup(__props) {
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createElementBlock("div", {
16
+ "data-slot": "input-group",
17
+ role: "group",
18
+ class: normalizeClass(unref(cn)("group/input-group relative flex h-10 w-full min-w-0 items-center rounded-lg bg-secondary text-sm text-foreground outline-none", "has-[>[data-align=inline-start]]:*:data-[slot=input-group-control]:pl-2", "has-[>[data-align=inline-end]]:*:data-[slot=input-group-control]:pr-2", "has-[[data-slot=input-group-control]:focus-visible]:ring-1 has-[[data-slot=input-group-control]:focus-visible]:ring-ring", "has-[[data-slot=input-group-control][aria-invalid=true]]:ring-1 has-[[data-slot=input-group-control][aria-invalid=true]]:ring-destructive", __props.class))
19
+ }, [renderSlot(_ctx.$slots, "default")], 2);
20
+ };
21
+ }
22
+ });
23
+ export { InputGroup_default as t };
@@ -0,0 +1,36 @@
1
+ import { t as cn } from "./src-DTwuqov4.js";
2
+ import { inputGroupAddonVariants } from "../input-group/inputGroup.variants.js";
3
+ import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
4
+ // src/components/input-group/InputGroupAddon.vue?vue&type=script&setup=true&lang.ts
5
+ var _hoisted_1 = ["data-align"];
6
+ // src/components/input-group/InputGroupAddon.vue
7
+ var InputGroupAddon_default = /* @__PURE__ */ defineComponent({
8
+ __name: "InputGroupAddon",
9
+ props: {
10
+ align: { default: "inline-start" },
11
+ class: { type: [
12
+ Boolean,
13
+ null,
14
+ String,
15
+ Object,
16
+ Array
17
+ ] }
18
+ },
19
+ setup(__props) {
20
+ function focusControl(event) {
21
+ if (!(event.target instanceof Element) || event.target.closest("button")) return;
22
+ if (!(event.currentTarget instanceof HTMLElement)) return;
23
+ event.currentTarget.parentElement?.querySelector("input")?.focus();
24
+ }
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock("div", {
27
+ role: "group",
28
+ "data-slot": "input-group-addon",
29
+ "data-align": __props.align,
30
+ class: normalizeClass(unref(cn)(unref(inputGroupAddonVariants)({ align: __props.align }), __props.class)),
31
+ onClick: focusControl
32
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
33
+ };
34
+ }
35
+ });
36
+ export { InputGroupAddon_default as t };