@soybeanjs/ui 0.16.0 → 0.18.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 (412) hide show
  1. package/README.md +27 -5
  2. package/README.zh-CN.md +27 -5
  3. package/dist/_virtual/_rolldown/runtime.js +1 -0
  4. package/dist/components/accordion/accordion.js +1 -1
  5. package/dist/components/accordion/accordion.vue.d.ts +1 -1
  6. package/dist/components/accordion/index.d.ts +1 -2
  7. package/dist/components/accordion/types.d.ts +17 -1
  8. package/dist/components/affix/affix.js +1 -1
  9. package/dist/components/affix/index.d.ts +2 -1
  10. package/dist/components/affix/types.d.ts +10 -1
  11. package/dist/components/alert/alert.js +1 -1
  12. package/dist/components/alert/index.d.ts +1 -2
  13. package/dist/components/alert/types.d.ts +25 -1
  14. package/dist/components/anchor/anchor.js +1 -1
  15. package/dist/components/anchor/anchor.vue.d.ts +1 -1
  16. package/dist/components/anchor/index.d.ts +2 -3
  17. package/dist/components/anchor/types.d.ts +30 -3
  18. package/dist/components/autocomplete/autocomplete.js +1 -1
  19. package/dist/components/autocomplete/autocomplete.vue.d.ts +2 -1
  20. package/dist/components/autocomplete/index.d.ts +2 -3
  21. package/dist/components/autocomplete/types.d.ts +18 -4
  22. package/dist/components/avatar/avatar.js +1 -1
  23. package/dist/components/avatar/avatar.vue.d.ts +2 -8
  24. package/dist/components/avatar/index.d.ts +1 -2
  25. package/dist/components/avatar/types.d.ts +14 -12
  26. package/dist/components/backtop/backtop.js +1 -1
  27. package/dist/components/backtop/backtop.vue.d.ts +3 -3
  28. package/dist/components/backtop/index.d.ts +2 -2
  29. package/dist/components/backtop/types.d.ts +28 -1
  30. package/dist/components/backtop/variants.js +1 -1
  31. package/dist/components/badge/badge.js +1 -1
  32. package/dist/components/badge/badge.vue.d.ts +2 -6
  33. package/dist/components/badge/index.d.ts +1 -2
  34. package/dist/components/badge/types.d.ts +21 -4
  35. package/dist/components/badge/variants.js +1 -1
  36. package/dist/components/bottom-sheet/bottom-sheet.js +1 -1
  37. package/dist/components/bottom-sheet/index.d.ts +2 -1
  38. package/dist/components/bottom-sheet/types.d.ts +17 -1
  39. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  40. package/dist/components/breadcrumb/index.d.ts +3 -2
  41. package/dist/components/breadcrumb/types.d.ts +16 -1
  42. package/dist/components/button/button-group.js +1 -1
  43. package/dist/components/button/button-icon.js +1 -1
  44. package/dist/components/button/button-icon.vue.d.ts +1 -1
  45. package/dist/components/button/button-link.js +1 -1
  46. package/dist/components/button/button-loading.js +1 -1
  47. package/dist/components/button/button-loading.vue.d.ts +1 -1
  48. package/dist/components/button/button.js +1 -1
  49. package/dist/components/button/button.vue.d.ts +2 -2
  50. package/dist/components/button/types.d.ts +40 -3
  51. package/dist/components/calendar/calendar.js +1 -1
  52. package/dist/components/calendar/index.d.ts +1 -2
  53. package/dist/components/calendar/types.d.ts +20 -1
  54. package/dist/components/card/card-collapsible-trigger.js +1 -1
  55. package/dist/components/card/card-collapsible-trigger.vue.d.ts +1 -1
  56. package/dist/components/card/card.js +1 -1
  57. package/dist/components/card/index.d.ts +1 -2
  58. package/dist/components/card/types.d.ts +11 -1
  59. package/dist/components/carousel/carousel.js +1 -1
  60. package/dist/components/carousel/carousel.vue.d.ts +16 -19
  61. package/dist/components/carousel/index.d.ts +2 -7
  62. package/dist/components/carousel/index.js +1 -1
  63. package/dist/components/carousel/types.d.ts +32 -4
  64. package/dist/components/carousel/variants.js +1 -1
  65. package/dist/components/checkbox/checkbox-card-group.js +1 -1
  66. package/dist/components/checkbox/checkbox-card.js +1 -1
  67. package/dist/components/checkbox/checkbox-group.js +1 -1
  68. package/dist/components/checkbox/checkbox.js +1 -1
  69. package/dist/components/checkbox/index.d.ts +2 -1
  70. package/dist/components/checkbox/types.d.ts +80 -1
  71. package/dist/components/clipboard/clipboard.js +1 -1
  72. package/dist/components/clipboard/clipboard.vue.d.ts +2 -2
  73. package/dist/components/clipboard/index.d.ts +2 -1
  74. package/dist/components/clipboard/types.d.ts +22 -1
  75. package/dist/components/collapsible/collapsible.js +1 -1
  76. package/dist/components/collapsible/index.d.ts +3 -2
  77. package/dist/components/collapsible/types.d.ts +13 -1
  78. package/dist/components/color-area/color-area.js +1 -1
  79. package/dist/components/color-area/color-area.vue.d.ts +2 -2
  80. package/dist/components/color-area/index.d.ts +1 -2
  81. package/dist/components/color-area/types.d.ts +23 -1
  82. package/dist/components/color-field/color-field.js +1 -1
  83. package/dist/components/color-field/index.d.ts +1 -2
  84. package/dist/components/color-field/types.d.ts +20 -1
  85. package/dist/components/color-picker/color-picker.js +1 -1
  86. package/dist/components/color-picker/color-picker.vue.d.ts +8 -8
  87. package/dist/components/color-picker/index.d.ts +2 -1
  88. package/dist/components/color-picker/types.d.ts +96 -3
  89. package/dist/components/color-slider/color-slider.js +1 -1
  90. package/dist/components/color-slider/color-slider.vue.d.ts +3 -3
  91. package/dist/components/color-slider/index.d.ts +1 -2
  92. package/dist/components/color-slider/types.d.ts +25 -1
  93. package/dist/components/color-swatch/color-swatch.js +1 -1
  94. package/dist/components/color-swatch/index.d.ts +2 -4
  95. package/dist/components/color-swatch/types.d.ts +22 -1
  96. package/dist/components/color-swatch-picker/color-swatch-picker.js +1 -1
  97. package/dist/components/color-swatch-picker/color-swatch-picker.vue.d.ts +2 -2
  98. package/dist/components/color-swatch-picker/index.d.ts +1 -2
  99. package/dist/components/color-swatch-picker/types.d.ts +38 -1
  100. package/dist/components/combobox/combobox.js +1 -1
  101. package/dist/components/combobox/index.d.ts +1 -2
  102. package/dist/components/combobox/types.d.ts +19 -1
  103. package/dist/components/command/command.js +1 -1
  104. package/dist/components/command/command.vue.d.ts +4 -3
  105. package/dist/components/command/index.d.ts +2 -3
  106. package/dist/components/command/types.d.ts +18 -4
  107. package/dist/components/config-provider/config-provider.js +1 -1
  108. package/dist/components/config-provider/config-provider.vue.d.ts +6 -9
  109. package/dist/components/config-provider/index.d.ts +2 -1
  110. package/dist/components/config-provider/types.d.ts +22 -17
  111. package/dist/components/context-menu/context-menu-checkbox.js +1 -1
  112. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +1 -1
  113. package/dist/components/context-menu/context-menu-radio.js +1 -1
  114. package/dist/components/context-menu/context-menu-radio.vue.d.ts +1 -1
  115. package/dist/components/context-menu/context-menu-wrapper.js +1 -1
  116. package/dist/components/context-menu/context-menu.js +1 -1
  117. package/dist/components/context-menu/context-menu.vue.d.ts +1 -1
  118. package/dist/components/context-menu/index.d.ts +5 -4
  119. package/dist/components/context-menu/index.js +1 -1
  120. package/dist/components/context-menu/types.d.ts +35 -1
  121. package/dist/components/date-field/date-field.js +1 -1
  122. package/dist/components/date-field/index.d.ts +1 -2
  123. package/dist/components/date-field/types.d.ts +16 -1
  124. package/dist/components/date-picker/date-picker.js +1 -1
  125. package/dist/components/date-picker/date-picker.vue.d.ts +3 -1
  126. package/dist/components/date-picker/index.d.ts +1 -2
  127. package/dist/components/date-picker/types.d.ts +23 -15
  128. package/dist/components/date-picker/variants.js +1 -1
  129. package/dist/components/date-range-field/date-range-field.js +1 -1
  130. package/dist/components/date-range-field/index.d.ts +1 -2
  131. package/dist/components/date-range-field/types.d.ts +47 -2
  132. package/dist/components/date-range-picker/date-range-picker.js +1 -1
  133. package/dist/components/date-range-picker/index.d.ts +1 -2
  134. package/dist/components/date-range-picker/types.d.ts +36 -2
  135. package/dist/components/dialog/dialog-provider.js +1 -1
  136. package/dist/components/dialog/dialog.js +1 -1
  137. package/dist/components/dialog/dialog.vue.d.ts +4 -4
  138. package/dist/components/dialog/index.d.ts +2 -1
  139. package/dist/components/dialog/index.js +1 -1
  140. package/dist/components/dialog/types.d.ts +17 -1
  141. package/dist/components/drawer/drawer.js +1 -1
  142. package/dist/components/drawer/drawer.vue.d.ts +4 -4
  143. package/dist/components/drawer/types.d.ts +13 -1
  144. package/dist/components/dropdown-menu/dropdown-menu-checkbox.js +1 -1
  145. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +1 -1
  146. package/dist/components/dropdown-menu/dropdown-menu-radio.js +1 -1
  147. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +1 -1
  148. package/dist/components/dropdown-menu/dropdown-menu-wrapper.js +1 -1
  149. package/dist/components/dropdown-menu/dropdown-menu.js +1 -1
  150. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +1 -1
  151. package/dist/components/dropdown-menu/index.d.ts +2 -1
  152. package/dist/components/dropdown-menu/types.d.ts +35 -1
  153. package/dist/components/editable/editable.js +1 -1
  154. package/dist/components/editable/index.d.ts +2 -3
  155. package/dist/components/editable/types.d.ts +42 -2
  156. package/dist/components/empty/empty.js +1 -1
  157. package/dist/components/empty/empty.vue.d.ts +2 -8
  158. package/dist/components/empty/index.d.ts +2 -4
  159. package/dist/components/empty/types.d.ts +22 -14
  160. package/dist/components/empty/variants.js +1 -1
  161. package/dist/components/form/form-field-array.js +1 -0
  162. package/dist/components/form/form-field-base.js +1 -1
  163. package/dist/components/form/form-field-base.vue.d.ts +3 -16
  164. package/dist/components/form/form-field.js +1 -0
  165. package/dist/components/form/form.js +1 -1
  166. package/dist/components/form/form.vue.d.ts +2 -2
  167. package/dist/components/form/index.d.ts +2 -3
  168. package/dist/components/form/types.d.ts +36 -45
  169. package/dist/components/form/use-form.d.ts +3 -40
  170. package/dist/components/form/use-form.js +1 -1
  171. package/dist/components/form/variants.js +1 -1
  172. package/dist/components/hover-card/hover-card.js +1 -1
  173. package/dist/components/hover-card/index.d.ts +1 -2
  174. package/dist/components/hover-card/types.d.ts +35 -1
  175. package/dist/components/icon/types.d.ts +7 -1
  176. package/dist/components/input/index.d.ts +4 -3
  177. package/dist/components/input/index.js +1 -1
  178. package/dist/components/input/input.js +1 -1
  179. package/dist/components/input/input.vue.d.ts +2 -7
  180. package/dist/components/input/types.d.ts +18 -15
  181. package/dist/components/input/variants.js +1 -1
  182. package/dist/components/input-number/index.d.ts +2 -1
  183. package/dist/components/input-number/input-number.js +1 -1
  184. package/dist/components/input-number/types.d.ts +26 -1
  185. package/dist/components/input-otp/index.d.ts +1 -2
  186. package/dist/components/input-otp/index.js +1 -1
  187. package/dist/components/input-otp/input-otp.js +1 -1
  188. package/dist/components/input-otp/input-otp.vue.d.ts +2 -2
  189. package/dist/components/input-otp/types.d.ts +19 -1
  190. package/dist/components/kbd/index.d.ts +4 -2
  191. package/dist/components/kbd/kbd.js +1 -1
  192. package/dist/components/kbd/types.d.ts +18 -2
  193. package/dist/components/label/label.js +1 -1
  194. package/dist/components/label/types.d.ts +11 -1
  195. package/dist/components/layout/index.d.ts +2 -1
  196. package/dist/components/layout/index.js +1 -1
  197. package/dist/components/layout/layout-classic.js +1 -1
  198. package/dist/components/layout/layout.js +1 -1
  199. package/dist/components/layout/types.d.ts +38 -1
  200. package/dist/components/link/index.d.ts +4 -2
  201. package/dist/components/link/link.js +1 -1
  202. package/dist/components/link/types.d.ts +8 -1
  203. package/dist/components/list/index.d.ts +3 -3
  204. package/dist/components/list/list-item.js +1 -1
  205. package/dist/components/list/list.js +1 -1
  206. package/dist/components/list/types.d.ts +32 -1
  207. package/dist/components/menu/context.js +1 -1
  208. package/dist/components/menu/index.d.ts +10 -2
  209. package/dist/components/menu/index.js +1 -1
  210. package/dist/components/menu/types.d.ts +14 -1
  211. package/dist/components/menubar/index.d.ts +2 -1
  212. package/dist/components/menubar/menubar.js +1 -1
  213. package/dist/components/menubar/menubar.vue.d.ts +1 -1
  214. package/dist/components/menubar/types.d.ts +20 -1
  215. package/dist/components/month-picker/index.d.ts +1 -2
  216. package/dist/components/month-picker/month-picker.js +1 -1
  217. package/dist/components/month-picker/types.d.ts +44 -2
  218. package/dist/components/month-range-picker/index.d.ts +1 -2
  219. package/dist/components/month-range-picker/month-range-picker.js +1 -1
  220. package/dist/components/month-range-picker/types.d.ts +44 -2
  221. package/dist/components/navigation-menu/index.d.ts +1 -2
  222. package/dist/components/navigation-menu/navigation-menu-option.js +1 -1
  223. package/dist/components/navigation-menu/navigation-menu-sub-option.js +1 -1
  224. package/dist/components/navigation-menu/navigation-menu.js +1 -1
  225. package/dist/components/navigation-menu/types.d.ts +85 -2
  226. package/dist/components/page-tabs/index.d.ts +2 -1
  227. package/dist/components/page-tabs/page-tabs.js +1 -1
  228. package/dist/components/page-tabs/page-tabs.vue.d.ts +1 -1
  229. package/dist/components/page-tabs/types.d.ts +79 -3
  230. package/dist/components/pagination/index.d.ts +1 -2
  231. package/dist/components/pagination/pagination.js +1 -1
  232. package/dist/components/pagination/types.d.ts +18 -8
  233. package/dist/components/password/password.js +1 -1
  234. package/dist/components/password/types.d.ts +20 -1
  235. package/dist/components/popconfirm/popconfirm-cancel.js +1 -1
  236. package/dist/components/popconfirm/popconfirm-confirm.js +1 -1
  237. package/dist/components/popconfirm/popconfirm.js +1 -1
  238. package/dist/components/popconfirm/types.d.ts +143 -4
  239. package/dist/components/popover/index.d.ts +1 -2
  240. package/dist/components/popover/popover.js +1 -1
  241. package/dist/components/popover/types.d.ts +39 -2
  242. package/dist/components/progress/index.d.ts +6 -6
  243. package/dist/components/progress/progress-circle.js +1 -1
  244. package/dist/components/progress/progress-provider.js +1 -1
  245. package/dist/components/progress/progress.js +1 -1
  246. package/dist/components/progress/types.d.ts +43 -1
  247. package/dist/components/radio-group/index.d.ts +2 -3
  248. package/dist/components/radio-group/radio-card-group.js +1 -1
  249. package/dist/components/radio-group/radio-card-group.vue.d.ts +1 -1
  250. package/dist/components/radio-group/radio-card.js +1 -1
  251. package/dist/components/radio-group/radio-group.js +1 -1
  252. package/dist/components/radio-group/radio-group.vue.d.ts +1 -1
  253. package/dist/components/radio-group/radio.js +1 -1
  254. package/dist/components/radio-group/types.d.ts +76 -1
  255. package/dist/components/range-calendar/index.d.ts +1 -2
  256. package/dist/components/range-calendar/range-calendar.js +1 -1
  257. package/dist/components/range-calendar/types.d.ts +127 -1
  258. package/dist/components/scroll-area/index.d.ts +1 -2
  259. package/dist/components/scroll-area/scroll-area.js +1 -1
  260. package/dist/components/scroll-area/types.d.ts +29 -1
  261. package/dist/components/segment/index.d.ts +2 -1
  262. package/dist/components/segment/segment.js +1 -1
  263. package/dist/components/segment/types.d.ts +26 -1
  264. package/dist/components/select/index.d.ts +2 -3
  265. package/dist/components/select/select.js +1 -1
  266. package/dist/components/select/select.vue.d.ts +1 -1
  267. package/dist/components/select/types.d.ts +18 -3
  268. package/dist/components/separator/index.d.ts +1 -2
  269. package/dist/components/separator/separator.js +1 -1
  270. package/dist/components/separator/types.d.ts +26 -1
  271. package/dist/components/skeleton/skeleton.js +1 -1
  272. package/dist/components/skeleton/types.d.ts +14 -1
  273. package/dist/components/slider/index.d.ts +1 -2
  274. package/dist/components/slider/slider.js +1 -1
  275. package/dist/components/slider/types.d.ts +29 -1
  276. package/dist/components/spinner/spinner.js +1 -1
  277. package/dist/components/spinner/types.d.ts +16 -1
  278. package/dist/components/splitter/index.d.ts +2 -3
  279. package/dist/components/splitter/splitter-group.js +1 -1
  280. package/dist/components/splitter/splitter-panel.js +1 -1
  281. package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
  282. package/dist/components/splitter/splitter-resize-handle.js +1 -1
  283. package/dist/components/splitter/splitter-resize-handle.vue.d.ts +2 -2
  284. package/dist/components/splitter/types.d.ts +43 -2
  285. package/dist/components/stepper/index.d.ts +1 -2
  286. package/dist/components/stepper/stepper.js +1 -1
  287. package/dist/components/stepper/types.d.ts +56 -1
  288. package/dist/components/switch/index.d.ts +1 -2
  289. package/dist/components/switch/switch.js +1 -1
  290. package/dist/components/switch/switch.vue.d.ts +4 -4
  291. package/dist/components/switch/types.d.ts +29 -1
  292. package/dist/components/table/hooks.js +1 -1
  293. package/dist/components/table/index.d.ts +2 -1
  294. package/dist/components/table/index.js +1 -1
  295. package/dist/components/table/table.js +1 -1
  296. package/dist/components/table/types.d.ts +76 -1
  297. package/dist/components/tabs/index.d.ts +2 -3
  298. package/dist/components/tabs/tabs.js +1 -1
  299. package/dist/components/tabs/types.d.ts +19 -1
  300. package/dist/components/tag/tag.js +1 -1
  301. package/dist/components/tag/types.d.ts +26 -1
  302. package/dist/components/tags-input/index.d.ts +3 -2
  303. package/dist/components/tags-input/tags-input-item-delete.js +1 -1
  304. package/dist/components/tags-input/tags-input.js +1 -1
  305. package/dist/components/tags-input/tags-input.vue.d.ts +1 -1
  306. package/dist/components/tags-input/types.d.ts +17 -1
  307. package/dist/components/textarea/index.d.ts +1 -2
  308. package/dist/components/textarea/textarea.js +1 -1
  309. package/dist/components/textarea/types.d.ts +23 -1
  310. package/dist/components/time-field/index.d.ts +1 -2
  311. package/dist/components/time-field/time-field.js +1 -1
  312. package/dist/components/time-field/types.d.ts +38 -2
  313. package/dist/components/time-picker/index.d.ts +1 -2
  314. package/dist/components/time-picker/time-picker.js +1 -1
  315. package/dist/components/time-picker/types.d.ts +35 -2
  316. package/dist/components/time-range-field/index.d.ts +1 -2
  317. package/dist/components/time-range-field/time-range-field.js +1 -1
  318. package/dist/components/time-range-field/types.d.ts +47 -2
  319. package/dist/components/time-range-picker/index.d.ts +1 -2
  320. package/dist/components/time-range-picker/time-range-picker.js +1 -1
  321. package/dist/components/time-range-picker/types.d.ts +35 -2
  322. package/dist/components/toast/index.d.ts +3 -3
  323. package/dist/components/toast/toast-provider.js +1 -1
  324. package/dist/components/toast/types.d.ts +11 -2
  325. package/dist/components/toggle/toggle.js +1 -1
  326. package/dist/components/toggle/toggle.vue.d.ts +3 -3
  327. package/dist/components/toggle/types.d.ts +20 -1
  328. package/dist/components/toggle-group/index.d.ts +1 -2
  329. package/dist/components/toggle-group/toggle-group-item.js +1 -1
  330. package/dist/components/toggle-group/toggle-group-item.vue.d.ts +1 -1
  331. package/dist/components/toggle-group/toggle-group.js +1 -1
  332. package/dist/components/toggle-group/toggle-group.vue.d.ts +1 -1
  333. package/dist/components/toggle-group/types.d.ts +23 -1
  334. package/dist/components/toolbar/index.d.ts +3 -2
  335. package/dist/components/toolbar/toolbar.js +1 -1
  336. package/dist/components/toolbar/types.d.ts +11 -1
  337. package/dist/components/tooltip/index.d.ts +1 -2
  338. package/dist/components/tooltip/tooltip.js +1 -1
  339. package/dist/components/tooltip/types.d.ts +38 -1
  340. package/dist/components/tree/index.d.ts +3 -2
  341. package/dist/components/tree/tree-virtualizer.js +1 -1
  342. package/dist/components/tree/tree-virtualizer.vue.d.ts +2 -1
  343. package/dist/components/tree/tree.js +1 -1
  344. package/dist/components/tree/tree.vue.d.ts +2 -1
  345. package/dist/components/tree/types.d.ts +15 -1
  346. package/dist/components/tree-menu/index.d.ts +2 -1
  347. package/dist/components/tree-menu/tree-menu-option-slot.js +1 -1
  348. package/dist/components/tree-menu/tree-menu-option.js +1 -1
  349. package/dist/components/tree-menu/tree-menu-options.js +1 -1
  350. package/dist/components/tree-menu/tree-menu-styled-item.js +1 -1
  351. package/dist/components/tree-menu/tree-menu.js +1 -1
  352. package/dist/components/tree-menu/types.d.ts +111 -6
  353. package/dist/components/virtualizer/index.d.ts +3 -2
  354. package/dist/components/virtualizer/types.d.ts +10 -1
  355. package/dist/components/virtualizer/virtualizer.js +1 -1
  356. package/dist/components/year-picker/index.d.ts +1 -2
  357. package/dist/components/year-picker/types.d.ts +44 -2
  358. package/dist/components/year-picker/year-picker.js +1 -1
  359. package/dist/components/year-range-picker/index.d.ts +1 -2
  360. package/dist/components/year-range-picker/types.d.ts +44 -2
  361. package/dist/components/year-range-picker/year-range-picker.js +1 -1
  362. package/dist/constants/components.d.ts +18 -18
  363. package/dist/constants/components.js +1 -1
  364. package/dist/index.d.ts +206 -180
  365. package/dist/index.js +1 -1
  366. package/dist/styles.css +77 -52
  367. package/dist/theme/merge.d.ts +1 -1
  368. package/dist/theme/shared.d.ts +1 -1
  369. package/package.json +14 -8
  370. package/dist/components/carousel/carousel-content.js +0 -1
  371. package/dist/components/carousel/carousel-content.vue.d.ts +0 -18
  372. package/dist/components/carousel/carousel-item.js +0 -1
  373. package/dist/components/carousel/carousel-item.vue.d.ts +0 -18
  374. package/dist/components/carousel/carousel-next.js +0 -1
  375. package/dist/components/carousel/carousel-next.vue.d.ts +0 -22
  376. package/dist/components/carousel/carousel-previous.js +0 -1
  377. package/dist/components/carousel/carousel-previous.vue.d.ts +0 -22
  378. package/dist/components/empty/variants.d.ts +0 -57
  379. package/dist/components/form/context.js +0 -1
  380. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +0 -4
  381. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +0 -11
  382. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +0 -16
  383. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +0 -9
  384. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +0 -13
  385. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +0 -4
  386. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +0 -31
  387. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +0 -67
  388. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +0 -29
  389. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +0 -10
  390. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +0 -13
  391. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +0 -11
  392. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +0 -43
  393. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +0 -11
  394. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +0 -6
  395. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +0 -20
  396. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +0 -11
  397. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +0 -14
  398. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +0 -8
  399. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +0 -4
  400. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +0 -6
  401. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +0 -6
  402. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +0 -12
  403. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +0 -7
  404. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +0 -10
  405. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +0 -19
  406. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +0 -6
  407. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +0 -11
  408. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +0 -9
  409. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +0 -7
  410. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +0 -8
  411. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +0 -9
  412. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +0 -4
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{checkboxCardVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";import{useOmitProps as u}from"@soybeanjs/headless/composables";import{CheckboxCardCompact as d,provideCheckboxCardUi as f}from"@soybeanjs/headless";const p=i({name:`SCheckboxCard`,__name:`checkbox-card`,props:{class:{},ui:{},color:{},size:{},shape:{},icon:{},description:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(i,{emit:p}){let m=i,h=p,g=u(m,[`class`,`ui`,`color`,`size`,`shape`]);return f(n(()=>e(t({color:m.color,size:m.size,shape:m.shape}),m.ui,{root:m.class}))),(e,t)=>(o(),r(c(d),a(c(g),{"onUpdate:modelValue":t[0]||=e=>h(`update:modelValue`,e)}),{description:l(()=>[s(e.$slots,`description`)]),default:l(()=>[s(e.$slots,`default`)]),_:3},16))}});export{p as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{checkboxCardVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";import{useOmitProps as u}from"@soybeanjs/headless/composables";import{CheckboxCardCompact as d,provideCheckboxCardUi as f}from"@soybeanjs/headless/checkbox";const p=i({name:`SCheckboxCard`,__name:`checkbox-card`,props:{class:{type:[Boolean,null,String,Object,Array]},ui:{},color:{},size:{},shape:{},icon:{},description:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(i,{emit:p}){let m=i,h=p,g=u(m,[`class`,`ui`,`color`,`size`,`shape`]);return f(n(()=>e(t({color:m.color,size:m.size,shape:m.shape}),m.ui,{root:m.class}))),(e,t)=>(o(),r(c(d),a(c(g),{"onUpdate:modelValue":t[0]||=e=>h(`update:modelValue`,e)}),{description:l(()=>[s(e.$slots,`description`)]),default:l(()=>[s(e.$slots,`default`)]),_:3},16))}});export{p as default};
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{checkboxVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,unref as s}from"vue";import{useOmitProps as c}from"@soybeanjs/headless/composables";import{CheckboxGroupCompact as l,provideCheckboxUi as u}from"@soybeanjs/headless";const d=i({name:`SCheckboxGroup`,__name:`checkbox-group`,props:{class:{},ui:{},color:{},size:{},shape:{},items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(i,{emit:d}){let f=i,p=d,m=c(f,[`class`,`ui`,`color`,`size`,`shape`]);return u(n(()=>e(t({color:f.color,size:f.size,shape:f.shape,orientation:f.orientation}),f.ui,{groupRoot:f.class}))),(e,t)=>(o(),r(s(l),a(s(m),{"onUpdate:modelValue":t[0]||=e=>p(`update:modelValue`,e)}),null,16))}});export{d as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{checkboxVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,unref as s}from"vue";import{useOmitProps as c}from"@soybeanjs/headless/composables";import{CheckboxGroupCompact as l,provideCheckboxUi as u}from"@soybeanjs/headless/checkbox";const d=i({name:`SCheckboxGroup`,__name:`checkbox-group`,props:{class:{type:[Boolean,null,String,Object,Array]},ui:{},color:{},size:{},shape:{},items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(i,{emit:d}){let f=i,p=d,m=c(f,[`class`,`ui`,`color`,`size`,`shape`]);return u(n(()=>e(t({color:f.color,size:f.size,shape:f.shape,orientation:f.orientation}),f.ui,{groupRoot:f.class}))),(e,t)=>(o(),r(s(l),a(s(m),{"onUpdate:modelValue":t[0]||=e=>p(`update:modelValue`,e)}),null,16))}});export{d as default};
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{checkboxVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";import{useOmitProps as u}from"@soybeanjs/headless/composables";import{CheckboxCompact as d,provideCheckboxUi as f}from"@soybeanjs/headless";const p=i({name:`SCheckbox`,__name:`checkbox`,props:{class:{},ui:{},color:{},size:{},shape:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(i,{emit:p}){let m=i,h=p,g=u(m,[`class`,`ui`,`color`,`size`,`shape`]);return f(n(()=>e(t({color:m.color,size:m.size,shape:m.shape}),m.ui,{root:m.class}))),(e,t)=>(o(),r(c(d),a(c(g),{"onUpdate:modelValue":t[0]||=e=>h(`update:modelValue`,e)}),{default:l(()=>[s(e.$slots,`default`)]),_:3},16))}});export{p as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{checkboxVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";import{useOmitProps as u}from"@soybeanjs/headless/composables";import{CheckboxCompact as d,provideCheckboxUi as f}from"@soybeanjs/headless/checkbox";const p=i({name:`SCheckbox`,__name:`checkbox`,props:{class:{type:[Boolean,null,String,Object,Array]},ui:{},color:{},size:{},shape:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(i,{emit:p}){let m=i,h=p,g=u(m,[`class`,`ui`,`color`,`size`,`shape`]);return f(n(()=>e(t({color:m.color,size:m.size,shape:m.shape}),m.ui,{root:m.class}))),(e,t)=>(o(),r(c(d),a(c(g),{"onUpdate:modelValue":t[0]||=e=>h(`update:modelValue`,e)}),{default:l(()=>[s(e.$slots,`default`)]),_:3},16))}});export{p as default};
@@ -2,4 +2,5 @@ import { CheckboxCardEmits, CheckboxCardGroupEmits, CheckboxCardGroupOptionData,
2
2
  import { _default } from "./checkbox-group.vue.js";
3
3
  import { _default as _default$1 } from "./checkbox.vue.js";
4
4
  import { _default as _default$2 } from "./checkbox-card-group.vue.js";
5
- import { _default as _default$3 } from "./checkbox-card.vue.js";
5
+ import { _default as _default$3 } from "./checkbox-card.vue.js";
6
+ export * from "@soybeanjs/headless/checkbox";
@@ -1,53 +1,132 @@
1
1
  import { ThemeColor, ThemeSize } from "../../theme/types.js";
2
2
  import { CheckboxShape } from "./variants.js";
3
- import { CheckboxCardCompactEmits, CheckboxCardCompactProps, CheckboxCardGroupCompactEmits, CheckboxCardGroupCompactProps, CheckboxCardGroupOptionData, CheckboxCardUi, CheckboxCompactEmits, CheckboxCompactProps, CheckboxGroupCompactEmits, CheckboxGroupCompactProps, CheckboxGroupOptionData, CheckboxUi, ClassValue, DefinedValue } from "@soybeanjs/headless";
3
+ import { CheckboxCardCompactEmits, CheckboxCardCompactProps, CheckboxCardGroupCompactEmits, CheckboxCardGroupCompactProps, CheckboxCardGroupOptionData, CheckboxCardUi, CheckboxCompactEmits, CheckboxCompactProps, CheckboxGroupCompactEmits, CheckboxGroupCompactProps, CheckboxGroupOptionData, CheckboxUi } from "@soybeanjs/headless/checkbox";
4
+ import { ClassValue, DefinedValue } from "@soybeanjs/headless/types";
4
5
 
5
6
  //#region src/components/checkbox/types.d.ts
7
+ /**
8
+ * Properties for the Checkbox component.
9
+ */
6
10
  interface CheckboxProps extends CheckboxCompactProps {
7
11
  /**
8
12
  * the class of root element
9
13
  */
10
14
  class?: ClassValue;
15
+ /**
16
+ * Per-slot class overrides for the component.
17
+ */
11
18
  ui?: Partial<CheckboxUi>;
19
+ /**
20
+ * Theme color of the component.
21
+ */
12
22
  color?: ThemeColor;
23
+ /**
24
+ * Visual size of the component.
25
+ */
13
26
  size?: ThemeSize;
27
+ /**
28
+ * Shape of the component.
29
+ */
14
30
  shape?: CheckboxShape;
15
31
  }
32
+ /**
33
+ * Events for the Checkbox component.
34
+ */
16
35
  type CheckboxEmits = CheckboxCompactEmits;
36
+ /**
37
+ * Properties for the CheckboxCard component.
38
+ */
17
39
  interface CheckboxCardProps extends CheckboxCardCompactProps {
18
40
  /**
19
41
  * the class of root element
20
42
  */
21
43
  class?: ClassValue;
44
+ /**
45
+ * Per-slot class overrides for the component.
46
+ */
22
47
  ui?: Partial<CheckboxCardUi>;
48
+ /**
49
+ * Theme color of the component.
50
+ */
23
51
  color?: ThemeColor;
52
+ /**
53
+ * Visual size of the component.
54
+ */
24
55
  size?: ThemeSize;
56
+ /**
57
+ * Shape of the component.
58
+ */
25
59
  shape?: CheckboxShape;
60
+ /**
61
+ * Icon rendered by the component.
62
+ */
26
63
  icon?: string;
64
+ /**
65
+ * Description text rendered by the component.
66
+ */
27
67
  description?: string;
28
68
  }
69
+ /**
70
+ * Events for the CheckboxCard component.
71
+ */
29
72
  type CheckboxCardEmits = CheckboxCardCompactEmits;
73
+ /**
74
+ * Properties for the CheckboxGroup component.
75
+ */
30
76
  interface CheckboxGroupProps<T extends CheckboxGroupOptionData = CheckboxGroupOptionData> extends CheckboxGroupCompactProps<T> {
31
77
  /**
32
78
  * the class of group root element
33
79
  */
34
80
  class?: ClassValue;
81
+ /**
82
+ * Per-slot class overrides for the component.
83
+ */
35
84
  ui?: Partial<CheckboxUi>;
85
+ /**
86
+ * Theme color of the component.
87
+ */
36
88
  color?: ThemeColor;
89
+ /**
90
+ * Visual size of the component.
91
+ */
37
92
  size?: ThemeSize;
93
+ /**
94
+ * Shape of the component.
95
+ */
38
96
  shape?: CheckboxShape;
39
97
  }
98
+ /**
99
+ * Events for the CheckboxGroup component.
100
+ */
40
101
  type CheckboxGroupEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupCompactEmits<T>;
102
+ /**
103
+ * Properties for the CheckboxCardGroup component.
104
+ */
41
105
  interface CheckboxCardGroupProps<T extends CheckboxCardGroupOptionData = CheckboxCardGroupOptionData> extends CheckboxCardGroupCompactProps<T> {
42
106
  /**
43
107
  * the class of group root element
44
108
  */
45
109
  class?: ClassValue;
110
+ /**
111
+ * Per-slot class overrides for the component.
112
+ */
46
113
  ui?: Partial<CheckboxCardUi>;
114
+ /**
115
+ * Theme color of the component.
116
+ */
47
117
  color?: ThemeColor;
118
+ /**
119
+ * Visual size of the component.
120
+ */
48
121
  size?: ThemeSize;
122
+ /**
123
+ * Shape of the component.
124
+ */
49
125
  shape?: CheckboxShape;
50
126
  }
127
+ /**
128
+ * Events for the CheckboxCardGroup component.
129
+ */
51
130
  type CheckboxCardGroupEmits<T extends DefinedValue = DefinedValue> = CheckboxCardGroupCompactEmits<T>;
52
131
  //#endregion
53
132
  export { CheckboxCardEmits, CheckboxCardGroupEmits, type CheckboxCardGroupOptionData, CheckboxCardGroupProps, CheckboxCardProps, CheckboxEmits, CheckboxGroupEmits, type CheckboxGroupOptionData, CheckboxGroupProps, CheckboxProps };
@@ -1 +1 @@
1
- import{cn as e}from"../../theme/merge.js";import"../../theme/index.js";import{buttonVariants as t}from"../button/variants.js";import{computed as n,createBlock as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderSlot as l,toHandlers as u,unref as d,withCtx as f}from"vue";import{useForwardListeners as p,useOmitProps as m}from"@soybeanjs/headless/composables";import{Clipboard as h}from"@soybeanjs/headless";const g=i({name:`SClipboard`,__name:`clipboard`,props:{class:{},color:{},size:{},variant:{},shape:{},fitContent:{type:Boolean},value:{},copiedDuration:{},legacy:{type:Boolean},copyIcon:{},copiedIcon:{},copyText:{},copiedText:{},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`,`copied`,`copyError`],setup(i,{emit:g}){let _=i,v=p(g),y=m(_,[`class`,`color`,`size`,`variant`,`shape`,`fitContent`]),b=n(()=>e(t({color:_.color,size:_.size,variant:_.variant,shape:_.shape,fitContent:_.fitContent}),_.class));return(e,t)=>(c(),r(d(h),o(d(y),{class:b.value},u(d(v))),{leading:f(t=>[l(e.$slots,`leading`,s(a(t)))]),default:f(t=>[l(e.$slots,`default`,s(a(t)))]),trailing:f(t=>[l(e.$slots,`trailing`,s(a(t)))]),_:3},16,[`class`]))}});export{g as default};
1
+ import{cn as e}from"../../theme/merge.js";import"../../theme/index.js";import{buttonVariants as t}from"../button/variants.js";import{computed as n,createBlock as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderSlot as l,toHandlers as u,unref as d,withCtx as f}from"vue";import{useForwardListeners as p,useOmitProps as m}from"@soybeanjs/headless/composables";import{Clipboard as h}from"@soybeanjs/headless/clipboard";const g=i({name:`SClipboard`,__name:`clipboard`,props:{class:{type:[Boolean,null,String,Object,Array]},color:{},size:{},variant:{},shape:{},fitContent:{type:Boolean},value:{},copiedDuration:{},legacy:{type:Boolean},copyIcon:{},copiedIcon:{},copyText:{},copiedText:{},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`,`copied`,`copyError`],setup(i,{emit:g}){let _=i,v=p(g),y=m(_,[`class`,`color`,`size`,`variant`,`shape`,`fitContent`]),b=n(()=>e(t({color:_.color,size:_.size,variant:_.variant,shape:_.shape,fitContent:_.fitContent}),_.class));return(e,t)=>(c(),r(d(h),o(d(y),{class:b.value},u(d(v))),{leading:f(t=>[l(e.$slots,`leading`,s(a(t)))]),default:f(t=>[l(e.$slots,`default`,s(a(t)))]),trailing:f(t=>[l(e.$slots,`trailing`,s(a(t)))]),_:3},16,[`class`]))}});export{g as default};
@@ -36,11 +36,11 @@ type __VLS_Slots = {} & {
36
36
  trailing?: (props: typeof __VLS_15) => any;
37
37
  };
38
38
  declare const __VLS_base: _$vue.DefineComponent<ClipboardProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
39
- click: (event: MouseEvent) => any;
39
+ click: (event: PointerEvent) => any;
40
40
  copied: (value: string) => any;
41
41
  copyError: (error: unknown) => any;
42
42
  }, string, _$vue.PublicProps, Readonly<ClipboardProps> & Readonly<{
43
- onClick?: ((event: MouseEvent) => any) | undefined;
43
+ onClick?: ((event: PointerEvent) => any) | undefined;
44
44
  onCopied?: ((value: string) => any) | undefined;
45
45
  onCopyError?: ((error: unknown) => any) | undefined;
46
46
  }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -1,3 +1,4 @@
1
1
  import { ButtonShape, ButtonVariant } from "../button/variants.js";
2
2
  import { ClipboardEmits, ClipboardProps, ClipboardSlotProps } from "./types.js";
3
- import { _default } from "./clipboard.vue.js";
3
+ import { _default } from "./clipboard.vue.js";
4
+ export * from "@soybeanjs/headless/clipboard";
@@ -1,15 +1,36 @@
1
1
  import { ThemeColor, ThemeSize } from "../../theme/types.js";
2
2
  import { ButtonShape, ButtonVariant } from "../button/variants.js";
3
- import { ClassValue } from "@soybeanjs/headless";
4
3
  import { ClipboardEmits, ClipboardProps, ClipboardSlotProps } from "@soybeanjs/headless/clipboard";
4
+ import { ClassValue } from "@soybeanjs/headless/types";
5
5
 
6
6
  //#region src/components/clipboard/types.d.ts
7
+ /**
8
+ * Properties for the Clipboard component.
9
+ */
7
10
  interface ClipboardProps$1 extends ClipboardProps {
11
+ /**
12
+ * Additional class names applied to the root element.
13
+ */
8
14
  class?: ClassValue;
15
+ /**
16
+ * Theme color of the component.
17
+ */
9
18
  color?: ThemeColor;
19
+ /**
20
+ * Visual size of the component.
21
+ */
10
22
  size?: ThemeSize;
23
+ /**
24
+ * Visual variant of the component.
25
+ */
11
26
  variant?: ButtonVariant;
27
+ /**
28
+ * Shape of the component.
29
+ */
12
30
  shape?: ButtonShape;
31
+ /**
32
+ * Whether the component should fit its content width.
33
+ */
13
34
  fitContent?: boolean;
14
35
  }
15
36
  //#endregion
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{collapsibleVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";import{useOmitProps as f}from"@soybeanjs/headless/composables";import{CollapsibleRoot as p,provideCollapsibleUi as m}from"@soybeanjs/headless";const h=i({name:`SCollapsible`,__name:`collapsible`,props:{size:{},ui:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(i,{emit:h}){let g=i,_=h,v=f(g,[`class`,`size`,`ui`]);return m(n(()=>e(t({size:g.size}),g.ui))),(e,t)=>(c(),r(u(p),o(u(v),{"onUpdate:open":t[0]||=e=>_(`update:open`,e)}),{default:d(t=>[l(e.$slots,`default`,s(a(t)))]),_:3},16))}});export{h as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{collapsibleVariants as t}from"./variants.js";import{computed as n,createBlock as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";import{useOmitProps as f}from"@soybeanjs/headless/composables";import{CollapsibleRoot as p,provideCollapsibleUi as m}from"@soybeanjs/headless/collapsible";const h=i({name:`SCollapsible`,__name:`collapsible`,props:{size:{},ui:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(i,{emit:h}){let g=i,_=h,v=f(g,[`class`,`size`,`ui`]);return m(n(()=>e(t({size:g.size}),g.ui))),(e,t)=>(c(),r(u(p),o(u(v),{"onUpdate:open":t[0]||=e=>_(`update:open`,e)}),{default:d(t=>[l(e.$slots,`default`,s(a(t)))]),_:3},16))}});export{h as default};
@@ -1,4 +1,5 @@
1
1
  import { CollapsibleEmits, CollapsibleProps } from "./types.js";
2
2
  import { _default } from "./collapsible.vue.js";
3
- import { CollapsibleContent as SCollapsibleContent, CollapsibleContentProps, CollapsibleRootEmits, CollapsibleRootProps, CollapsibleTrigger as SCollapsibleTrigger, CollapsibleTriggerProps } from "@soybeanjs/headless/collapsible";
4
- export { type CollapsibleContentProps, type CollapsibleRootEmits, type CollapsibleRootProps, type CollapsibleTriggerProps, SCollapsibleContent, SCollapsibleTrigger };
3
+ import { CollapsibleContent as SCollapsibleContent, CollapsibleTrigger as SCollapsibleTrigger } from "@soybeanjs/headless/collapsible";
4
+ export * from "@soybeanjs/headless/collapsible";
5
+ export { SCollapsibleContent, SCollapsibleTrigger };
@@ -1,11 +1,23 @@
1
1
  import { ThemeSize } from "../../theme/types.js";
2
- import { CollapsibleRootEmits, CollapsibleRootProps, CollapsibleUi } from "@soybeanjs/headless";
2
+ import { CollapsibleRootEmits, CollapsibleRootProps, CollapsibleUi } from "@soybeanjs/headless/collapsible";
3
3
 
4
4
  //#region src/components/collapsible/types.d.ts
5
+ /**
6
+ * Properties for the Collapsible component.
7
+ */
5
8
  interface CollapsibleProps extends CollapsibleRootProps {
9
+ /**
10
+ * Visual size of the component.
11
+ */
6
12
  size?: ThemeSize;
13
+ /**
14
+ * Per-slot class overrides for the component.
15
+ */
7
16
  ui?: Partial<CollapsibleUi>;
8
17
  }
18
+ /**
19
+ * Events for the Collapsible component.
20
+ */
9
21
  type CollapsibleEmits = CollapsibleRootEmits;
10
22
  //#endregion
11
23
  export { CollapsibleEmits, CollapsibleProps };
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{colorAreaVariants as t}from"./variants.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,toHandlers as u,unref as d,withCtx as f}from"vue";import{useForwardListeners as p,useOmitProps as m}from"@soybeanjs/headless/composables";import{ColorAreaArea as h,ColorAreaRoot as g,ColorAreaThumb as _,provideColorAreaUi as v}from"@soybeanjs/headless/color-area";const y=a({name:`SColorArea`,__name:`color-area`,props:{class:{},size:{},ui:{},areaProps:{},thumbProps:{},modelValue:{},defaultValue:{},colorSpace:{},format:{},xChannel:{},yChannel:{},disabled:{type:Boolean},xName:{},yName:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`change`,`changeEnd`],setup(a,{emit:y}){let b=a,x=p(y),S=m(b,[`class`,`size`,`ui`,`areaProps`,`thumbProps`,`onChange`]);return v(n(()=>e(t({size:b.size}),b.ui,{root:b.class}))),(e,t)=>(l(),r(d(g),s(d(S),u(d(x))),{default:f(()=>[i(d(h),c(o(a.areaProps)),{default:f(()=>[i(d(_),c(o(a.thumbProps)),null,16)]),_:1},16)]),_:1},16))}});export{y as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{colorAreaVariants as t}from"./variants.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,toHandlers as u,unref as d,withCtx as f}from"vue";import{useForwardListeners as p,useOmitProps as m}from"@soybeanjs/headless/composables";import{ColorAreaArea as h,ColorAreaRoot as g,ColorAreaThumb as _,provideColorAreaUi as v}from"@soybeanjs/headless/color-area";const y=a({name:`SColorArea`,__name:`color-area`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},areaProps:{},thumbProps:{},modelValue:{},defaultValue:{},colorSpace:{},format:{},xChannel:{},yChannel:{},disabled:{type:Boolean},xName:{},yName:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`change`,`changeEnd`],setup(a,{emit:y}){let b=a,x=p(y),S=m(b,[`class`,`size`,`ui`,`areaProps`,`thumbProps`,`onChange`]);return v(n(()=>e(t({size:b.size}),b.ui,{root:b.class}))),(e,t)=>(l(),r(d(g),s(d(S),u(d(x))),{default:f(()=>[i(d(h),c(o(a.areaProps)),{default:f(()=>[i(d(_),c(o(a.thumbProps)),null,16)]),_:1},16)]),_:1},16))}});export{y as default};
@@ -4,13 +4,13 @@ import * as _$_soybeanjs_headless_shared0 from "@soybeanjs/headless/shared";
4
4
 
5
5
  //#region src/components/color-area/color-area.vue.d.ts
6
6
  declare const __VLS_export: _$vue.DefineComponent<ColorAreaProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
7
- change: (value: string) => any;
8
7
  "update:modelValue": (value: string) => any;
8
+ change: (value: string) => any;
9
9
  "update:color": (value: _$_soybeanjs_headless_shared0.NormalizedColor) => any;
10
10
  changeEnd: (value: string) => any;
11
11
  }, string, _$vue.PublicProps, Readonly<ColorAreaProps> & Readonly<{
12
- onChange?: ((value: string) => any) | undefined;
13
12
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
+ onChange?: ((value: string) => any) | undefined;
14
14
  "onUpdate:color"?: ((value: _$_soybeanjs_headless_shared0.NormalizedColor) => any) | undefined;
15
15
  onChangeEnd?: ((value: string) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,3 @@
1
1
  import { ColorAreaEmits, ColorAreaProps } from "./types.js";
2
2
  import { _default } from "./color-area.vue.js";
3
- import { ColorAreaAreaProps, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi, ColorAreaUiSlot } from "@soybeanjs/headless/color-area";
4
- export { type ColorAreaAreaProps, type ColorAreaRootEmits, type ColorAreaRootProps, type ColorAreaThumbProps, type ColorAreaUi, type ColorAreaUiSlot };
3
+ export * from "@soybeanjs/headless/color-area";
@@ -1,14 +1,36 @@
1
1
  import { ThemeSize } from "../../theme/types.js";
2
- import { ClassValue, ColorAreaAreaProps, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi } from "@soybeanjs/headless";
2
+ import { ColorAreaAreaProps, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi } from "@soybeanjs/headless/color-area";
3
+ import { ClassValue } from "@soybeanjs/headless/types";
3
4
 
4
5
  //#region src/components/color-area/types.d.ts
6
+ /**
7
+ * Properties for the ColorArea component.
8
+ */
5
9
  interface ColorAreaProps extends ColorAreaRootProps {
10
+ /**
11
+ * Additional class names applied to the root element.
12
+ */
6
13
  class?: ClassValue;
14
+ /**
15
+ * Visual size of the component.
16
+ */
7
17
  size?: ThemeSize;
18
+ /**
19
+ * Per-slot class overrides for the component.
20
+ */
8
21
  ui?: Partial<ColorAreaUi>;
22
+ /**
23
+ * Properties forwarded to the area element.
24
+ */
9
25
  areaProps?: ColorAreaAreaProps;
26
+ /**
27
+ * Properties forwarded to the thumb element.
28
+ */
10
29
  thumbProps?: ColorAreaThumbProps;
11
30
  }
31
+ /**
32
+ * Events for the ColorArea component.
33
+ */
12
34
  type ColorAreaEmits = ColorAreaRootEmits;
13
35
  //#endregion
14
36
  export { ColorAreaEmits, ColorAreaProps };
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{colorFieldVariants as t}from"./variants.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,toHandlers as u,unref as d,useAttrs as f,withCtx as p}from"vue";import{useForwardListeners as m,useOmitProps as h}from"@soybeanjs/headless/composables";import{ColorFieldInput as g,ColorFieldRoot as _,provideColorFieldUi as v}from"@soybeanjs/headless";const y=a({name:`SColorField`,inheritAttrs:!1,__name:`color-field`,props:{class:{},size:{},ui:{},inputProps:{},modelValue:{},defaultValue:{},colorSpace:{},channel:{},format:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},disableWheelChange:{type:Boolean},step:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`],setup(a,{emit:y}){let b=a,x=y,S=f(),C=m(x),w=h(b,[`class`,`size`,`ui`,`inputProps`]);return v(n(()=>e(t({size:b.size}),b.ui,{root:b.class}))),(e,t)=>(l(),r(d(_),s(d(w),u(d(C))),{default:p(()=>[i(d(g),c(o({...a.inputProps,...d(S)})),null,16)]),_:1},16))}});export{y as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{colorFieldVariants as t}from"./variants.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,toHandlers as u,unref as d,useAttrs as f,withCtx as p}from"vue";import{useForwardListeners as m,useOmitProps as h}from"@soybeanjs/headless/composables";import{ColorFieldInput as g,ColorFieldRoot as _,provideColorFieldUi as v}from"@soybeanjs/headless/color-field";const y=a({name:`SColorField`,inheritAttrs:!1,__name:`color-field`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},inputProps:{},modelValue:{},defaultValue:{},colorSpace:{},channel:{},format:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},disableWheelChange:{type:Boolean},step:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`],setup(a,{emit:y}){let b=a,x=y,S=f(),C=m(x),w=h(b,[`class`,`size`,`ui`,`inputProps`]);return v(n(()=>e(t({size:b.size}),b.ui,{root:b.class}))),(e,t)=>(l(),r(d(_),s(d(w),u(d(C))),{default:p(()=>[i(d(g),c(o({...a.inputProps,...d(S)})),null,16)]),_:1},16))}});export{y as default};
@@ -1,4 +1,3 @@
1
1
  import { ColorFieldEmits, ColorFieldProps } from "./types.js";
2
2
  import { _default } from "./color-field.vue.js";
3
- import { ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi, ColorFieldUiSlot } from "@soybeanjs/headless/color-field";
4
- export { type ColorFieldInputProps, type ColorFieldRootEmits, type ColorFieldRootProps, type ColorFieldUi, type ColorFieldUiSlot };
3
+ export * from "@soybeanjs/headless/color-field";
@@ -1,13 +1,32 @@
1
1
  import { ThemeSize } from "../../theme/types.js";
2
- import { ClassValue, ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi } from "@soybeanjs/headless";
2
+ import { ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi } from "@soybeanjs/headless/color-field";
3
+ import { ClassValue } from "@soybeanjs/headless/types";
3
4
 
4
5
  //#region src/components/color-field/types.d.ts
6
+ /**
7
+ * Properties for the ColorField component.
8
+ */
5
9
  interface ColorFieldProps extends ColorFieldRootProps {
10
+ /**
11
+ * Additional class names applied to the root element.
12
+ */
6
13
  class?: ClassValue;
14
+ /**
15
+ * Visual size of the component.
16
+ */
7
17
  size?: ThemeSize;
18
+ /**
19
+ * Per-slot class overrides for the component.
20
+ */
8
21
  ui?: Partial<ColorFieldUi>;
22
+ /**
23
+ * Properties forwarded to the input element.
24
+ */
9
25
  inputProps?: ColorFieldInputProps;
10
26
  }
27
+ /**
28
+ * Events for the ColorField component.
29
+ */
11
30
  type ColorFieldEmits = ColorFieldRootEmits;
12
31
  //#endregion
13
32
  export { ColorFieldEmits, ColorFieldProps };
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import{miniSizeMap as t}from"../../theme/config.js";import"../../theme/index.js";import n from"../button/button.js";import r from"../color-area/color-area.js";import i from"../color-field/color-field.js";import a from"../color-slider/color-slider.js";import o from"../color-swatch-picker/color-swatch-picker.js";import s from"../color-swatch/color-swatch.js";import c from"../popover/popover.js";import l from"../segment/segment.js";import{COLOR_PICKER_FORMATS as u,DEFAULT_COLOR_PICKER_SWATCHES as d,resolveColorPickerFormat as f}from"./shared.js";import{colorPickerVariants as p}from"./variants.js";import{computed as m,createBlock as h,createCommentVNode as g,createElementBlock as _,createElementVNode as v,createVNode as y,defineComponent as b,mergeProps as x,normalizeClass as S,openBlock as C,renderSlot as w,shallowRef as T,toDisplayString as E,unref as D,watch as O,withCtx as k}from"vue";import{useControllableState as A,usePickProps as j}from"@soybeanjs/headless/composables";import{areColorsEqual as M,formatColor as N,toColorObject as P}from"@soybeanjs/headless/shared";const F=b({name:`SColorPicker`,__name:`color-picker`,props:{class:{},size:{},ui:{},modelValue:{default:void 0},defaultValue:{default:`#7f007f`},format:{default:void 0},defaultFormat:{default:void 0},disabled:{type:Boolean,default:!1},colorSpace:{default:`hsl`},showAlpha:{type:Boolean,default:!0},showFields:{type:Boolean,default:!0},showSwatches:{type:Boolean,default:!0},swatches:{default:()=>d},triggerButtonProps:{},areaProps:{},hueSliderProps:{},alphaSliderProps:{},alphaFieldProps:{},hexFieldProps:{},fieldProps:{},swatchPickerProps:{},swatchProps:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},placement:{default:`bottom`},showArrow:{type:Boolean,default:!0},positionerProps:{},popupProps:{},triggerProps:{},closeProps:{},portalProps:{},arrowProps:{}},emits:[`update:modelValue`,`update:color`,`update:format`,`update:open`,`change`],setup(d,{emit:b}){let F=d,I=b,L=A(()=>F.format,e=>{I(`update:format`,e)},f(F.defaultFormat,F.modelValue??F.defaultValue)),R=T(F.modelValue??F.defaultValue),z=T(),B=m(()=>e(p({size:F.size}),F.ui,{popup:F.class})),V=m(()=>t[F.size??`md`]),H=m(()=>N(R.value,`hex`)),U=m(()=>f(L.value,R.value)),W=m(()=>N(R.value,U.value)),G=m(()=>U.value.toUpperCase()),K=m(()=>U.value===`hex`?F.hexFieldProps:F.fieldProps),q=m(()=>F.alphaFieldProps??F.fieldProps),J=m(()=>u.map(e=>({value:e,label:e.toUpperCase()}))),Y=m(()=>F.colorSpace===`oklch`?`chroma`:`saturation`),X=m(()=>F.colorSpace===`hsv`?`brightness`:`lightness`),Z=j(F,[`open`,`defaultOpen`,`modal`,`placement`,`showArrow`,`positionerProps`,`popupProps`,`triggerProps`,`closeProps`,`portalProps`,`arrowProps`]);O(()=>F.modelValue,e=>{e!=null&&(typeof e==`string`&&e===z.value||M(e,R.value)||(R.value=e))},{immediate:!0});function Q(e){let t=F.colorSpace;return P(e,t)}function $(e){let t=N(e,U.value);R.value=e,z.value=t,I(`update:modelValue`,t),I(`update:color`,Q(e)),I(`change`,t)}function ee(e){U.value!==e&&(L.value=e)}function te(e){$(e)}function ne(e){typeof e==`string`&&$(e)}return(e,t)=>(C(),h(c,x(D(Z),{class:B.value.popup,size:d.size,"onUpdate:open":t[0]||=e=>I(`update:open`,e)}),{trigger:k(()=>[w(e.$slots,`trigger`,{color:R.value,hex:H.value,value:W.value,format:U.value},()=>[y(n,x(d.triggerButtonProps,{size:d.size,disabled:d.disabled,color:`accent`,variant:`pure`}),{default:k(()=>[y(s,x(d.swatchProps,{class:B.value.triggerSwatch,color:H.value,size:V.value,shape:`circle`}),null,16,[`class`,`color`,`size`]),v(`span`,{class:S(B.value.triggerValue)},E(W.value),3)]),_:1},16,[`size`,`disabled`])])]),default:k(()=>[v(`div`,{class:S(B.value.content)},[y(l,{class:S(B.value.segment),"model-value":U.value,items:J.value,size:d.size,fill:`full`,disabled:d.disabled,"onUpdate:modelValue":ee},null,8,[`class`,`model-value`,`items`,`size`,`disabled`]),y(r,x(d.areaProps,{class:B.value.area,"model-value":R.value,"color-space":d.colorSpace,"x-channel":Y.value,"y-channel":X.value,disabled:d.disabled,"onUpdate:color":$}),null,16,[`class`,`model-value`,`color-space`,`x-channel`,`y-channel`,`disabled`]),v(`div`,{class:S(B.value.sliderSwatch)},[v(`div`,{class:S(B.value.sliderRoot)},[y(a,x(d.hueSliderProps,{size:d.size,"model-value":R.value,channel:`hue`,"color-space":d.colorSpace,disabled:d.disabled,"onUpdate:color":$}),null,16,[`size`,`model-value`,`color-space`,`disabled`]),d.showAlpha?(C(),h(a,x({key:0},d.alphaSliderProps,{size:d.size,"model-value":R.value,channel:`alpha`,"color-space":d.colorSpace,disabled:d.disabled,"onUpdate:color":$}),null,16,[`size`,`model-value`,`color-space`,`disabled`])):g(`v-if`,!0)],2),y(s,x(d.swatchProps,{size:d.size,color:H.value,class:B.value.swatch}),null,16,[`size`,`color`,`class`])],2),d.showFields?(C(),_(`div`,{key:0,class:S(B.value.fields)},[y(i,x(K.value,{size:d.size,class:B.value.field,"model-value":H.value,format:U.value,placeholder:G.value,disabled:d.disabled,"onUpdate:modelValue":te}),null,16,[`size`,`class`,`model-value`,`format`,`placeholder`,`disabled`]),d.showAlpha?(C(),h(i,x({key:0},q.value,{size:d.size,class:B.value.alphaField,"model-value":R.value,channel:`alpha`,"color-space":d.colorSpace,disabled:d.disabled,"onUpdate:color":$}),null,16,[`size`,`class`,`model-value`,`color-space`,`disabled`])):g(`v-if`,!0)],2)):g(`v-if`,!0),d.showSwatches&&d.swatches.length?(C(),h(o,x({key:1},d.swatchPickerProps,{size:d.size,class:B.value.swatches,colors:d.swatches,"model-value":H.value,disabled:d.disabled,"onUpdate:modelValue":ne}),null,16,[`size`,`class`,`colors`,`model-value`,`disabled`])):g(`v-if`,!0)],2)]),_:3},16,[`class`,`size`]))}});export{F as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import{miniSizeMap as t}from"../../theme/config.js";import"../../theme/index.js";import n from"../button/button.js";import r from"../color-area/color-area.js";import i from"../color-field/color-field.js";import a from"../color-slider/color-slider.js";import o from"../color-swatch-picker/color-swatch-picker.js";import s from"../color-swatch/color-swatch.js";import c from"../popover/popover.js";import l from"../segment/segment.js";import{COLOR_PICKER_FORMATS as u,DEFAULT_COLOR_PICKER_SWATCHES as d,resolveColorPickerFormat as f}from"./shared.js";import{colorPickerVariants as p}from"./variants.js";import{computed as m,createBlock as h,createCommentVNode as g,createElementBlock as _,createElementVNode as v,createVNode as y,defineComponent as b,mergeProps as x,normalizeClass as S,openBlock as C,renderSlot as w,shallowRef as T,toDisplayString as E,unref as D,watch as O,withCtx as k}from"vue";import{useControllableState as A,usePickProps as j}from"@soybeanjs/headless/composables";import{areColorsEqual as M,formatColor as N,toColorObject as P}from"@soybeanjs/headless/shared";const F=b({name:`SColorPicker`,__name:`color-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},modelValue:{default:void 0},defaultValue:{default:`#7f007f`},format:{default:void 0},defaultFormat:{default:void 0},disabled:{type:Boolean,default:!1},colorSpace:{default:`hsl`},showAlpha:{type:Boolean,default:!0},showFields:{type:Boolean,default:!0},showSwatches:{type:Boolean,default:!0},swatches:{default:()=>d},triggerButtonProps:{},areaProps:{},hueSliderProps:{},alphaSliderProps:{},alphaFieldProps:{},hexFieldProps:{},fieldProps:{},swatchPickerProps:{},swatchProps:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},placement:{default:`bottom`},showArrow:{type:Boolean,default:!0},positionerProps:{},popupProps:{},triggerProps:{},closeProps:{},portalProps:{},arrowProps:{}},emits:[`update:modelValue`,`update:color`,`update:format`,`update:open`,`change`],setup(d,{emit:b}){let F=d,I=b,L=A(()=>F.format,e=>{I(`update:format`,e)},f(F.defaultFormat,F.modelValue??F.defaultValue)),R=T(F.modelValue??F.defaultValue),z=T(),B=m(()=>e(p({size:F.size}),F.ui,{popup:F.class})),V=m(()=>t[F.size??`md`]),H=m(()=>N(R.value,`hex`)),U=m(()=>f(L.value,R.value)),W=m(()=>N(R.value,U.value)),G=m(()=>U.value.toUpperCase()),K=m(()=>U.value===`hex`?F.hexFieldProps:F.fieldProps),q=m(()=>F.alphaFieldProps??F.fieldProps),J=m(()=>u.map(e=>({value:e,label:e.toUpperCase()}))),Y=m(()=>F.colorSpace===`oklch`?`chroma`:`saturation`),X=m(()=>F.colorSpace===`hsv`?`brightness`:`lightness`),Z=j(F,[`open`,`defaultOpen`,`modal`,`placement`,`showArrow`,`positionerProps`,`popupProps`,`triggerProps`,`closeProps`,`portalProps`,`arrowProps`]);O(()=>F.modelValue,e=>{e!=null&&(typeof e==`string`&&e===z.value||M(e,R.value)||(R.value=e))},{immediate:!0});function Q(e){let t=F.colorSpace;return P(e,t)}function $(e){let t=N(e,U.value);R.value=e,z.value=t,I(`update:modelValue`,t),I(`update:color`,Q(e)),I(`change`,t)}function ee(e){U.value!==e&&(L.value=e)}function te(e){$(e)}function ne(e){typeof e==`string`&&$(e)}return(e,t)=>(C(),h(c,x(D(Z),{class:B.value.popup,size:d.size,"onUpdate:open":t[0]||=e=>I(`update:open`,e)}),{trigger:k(()=>[w(e.$slots,`trigger`,{color:R.value,hex:H.value,value:W.value,format:U.value},()=>[y(n,x(d.triggerButtonProps,{size:d.size,disabled:d.disabled,color:`accent`,variant:`pure`}),{default:k(()=>[y(s,x(d.swatchProps,{class:B.value.triggerSwatch,color:H.value,size:V.value,shape:`circle`}),null,16,[`class`,`color`,`size`]),v(`span`,{class:S(B.value.triggerValue)},E(W.value),3)]),_:1},16,[`size`,`disabled`])])]),default:k(()=>[v(`div`,{class:S(B.value.content)},[y(l,{class:S(B.value.segment),"model-value":U.value,items:J.value,size:d.size,fill:`full`,disabled:d.disabled,"onUpdate:modelValue":ee},null,8,[`class`,`model-value`,`items`,`size`,`disabled`]),y(r,x(d.areaProps,{class:B.value.area,"model-value":R.value,"color-space":d.colorSpace,"x-channel":Y.value,"y-channel":X.value,disabled:d.disabled,"onUpdate:color":$}),null,16,[`class`,`model-value`,`color-space`,`x-channel`,`y-channel`,`disabled`]),v(`div`,{class:S(B.value.sliderSwatch)},[v(`div`,{class:S(B.value.sliderRoot)},[y(a,x(d.hueSliderProps,{size:d.size,"model-value":R.value,channel:`hue`,"color-space":d.colorSpace,disabled:d.disabled,"onUpdate:color":$}),null,16,[`size`,`model-value`,`color-space`,`disabled`]),d.showAlpha?(C(),h(a,x({key:0},d.alphaSliderProps,{size:d.size,"model-value":R.value,channel:`alpha`,"color-space":d.colorSpace,disabled:d.disabled,"onUpdate:color":$}),null,16,[`size`,`model-value`,`color-space`,`disabled`])):g(`v-if`,!0)],2),y(s,x(d.swatchProps,{size:d.size,color:H.value,class:B.value.swatch}),null,16,[`size`,`color`,`class`])],2),d.showFields?(C(),_(`div`,{key:0,class:S(B.value.fields)},[y(i,x(K.value,{size:d.size,class:B.value.field,"model-value":H.value,format:U.value,placeholder:G.value,disabled:d.disabled,"onUpdate:modelValue":te}),null,16,[`size`,`class`,`model-value`,`format`,`placeholder`,`disabled`]),d.showAlpha?(C(),h(i,x({key:0},q.value,{size:d.size,class:B.value.alphaField,"model-value":R.value,channel:`alpha`,"color-space":d.colorSpace,disabled:d.disabled,"onUpdate:color":$}),null,16,[`size`,`class`,`model-value`,`color-space`,`disabled`])):g(`v-if`,!0)],2)):g(`v-if`,!0),d.showSwatches&&d.swatches.length?(C(),h(o,x({key:1},d.swatchPickerProps,{size:d.size,class:B.value.swatches,colors:d.swatches,"model-value":H.value,disabled:d.disabled,"onUpdate:modelValue":ne}),null,16,[`size`,`class`,`colors`,`model-value`,`disabled`])):g(`v-if`,!0)],2)]),_:3},16,[`class`,`size`]))}});export{F as default};
@@ -1,8 +1,8 @@
1
1
  import { ColorPickerProps } from "./types.js";
2
2
  import * as _$vue from "vue";
3
- import * as _$_soybeanjs_headless0 from "@soybeanjs/headless";
4
3
  import * as _$_soybeanjs_headless_shared0 from "@soybeanjs/headless/shared";
5
4
  import { ColorFormat, ColorSpace, ColorValue } from "@soybeanjs/headless/shared";
5
+ import * as _$_soybeanjs_headless0 from "@soybeanjs/headless";
6
6
  import * as _$_soybeanjs_colord0 from "@soybeanjs/colord";
7
7
 
8
8
  //#region src/components/color-picker/color-picker.vue.d.ts
@@ -16,29 +16,29 @@ type __VLS_Slots = {} & {
16
16
  trigger?: (props: typeof __VLS_11) => any;
17
17
  };
18
18
  declare const __VLS_base: _$vue.DefineComponent<ColorPickerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
19
- change: (value: string) => any;
20
19
  "update:open": (value: boolean) => any;
21
20
  "update:modelValue": (value: string) => any;
21
+ change: (value: string) => any;
22
22
  "update:color": (value: _$_soybeanjs_headless_shared0.NormalizedColor) => any;
23
23
  "update:format": (value: ColorFormat) => any;
24
24
  }, string, _$vue.PublicProps, Readonly<ColorPickerProps> & Readonly<{
25
- onChange?: ((value: string) => any) | undefined;
26
25
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
27
26
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
27
+ onChange?: ((value: string) => any) | undefined;
28
28
  "onUpdate:color"?: ((value: _$_soybeanjs_headless_shared0.NormalizedColor) => any) | undefined;
29
29
  "onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
30
30
  }>, {
31
+ disabled: boolean;
31
32
  open: boolean;
32
33
  defaultOpen: boolean;
33
34
  modal: boolean;
34
- disabled: boolean;
35
- placement: _$_soybeanjs_headless0.Placement;
36
- showArrow: boolean;
37
- modelValue: string | ColorValue;
38
35
  defaultValue: string | ColorValue;
36
+ modelValue: string | ColorValue;
37
+ colorSpace: ColorSpace;
39
38
  format: ColorFormat;
39
+ placement: _$_soybeanjs_headless0.Placement;
40
+ showArrow: boolean;
40
41
  defaultFormat: ColorFormat;
41
- colorSpace: ColorSpace;
42
42
  showAlpha: boolean;
43
43
  showFields: boolean;
44
44
  showSwatches: boolean;
@@ -1,2 +1,3 @@
1
1
  import { ColorPickerEmits, ColorPickerProps, ColorPickerUi, ColorPickerUiSlot } from "./types.js";
2
- import { _default } from "./color-picker.vue.js";
2
+ import { _default } from "./color-picker.vue.js";
3
+ export * from "@soybeanjs/headless/color-picker";
@@ -1,46 +1,139 @@
1
1
  import { ThemeSize } from "../../theme/types.js";
2
- import { ButtonProps as ButtonProps$1 } from "../button/types.js";
2
+ import { ButtonProps } from "../button/types.js";
3
3
  import { ColorAreaProps } from "../color-area/types.js";
4
4
  import { ColorFieldProps } from "../color-field/types.js";
5
5
  import { ColorSliderProps } from "../color-slider/types.js";
6
6
  import { ColorSwatchProps } from "../color-swatch/types.js";
7
7
  import { ColorSwatchPickerProps } from "../color-swatch-picker/types.js";
8
8
  import { PopoverProps } from "../popover/types.js";
9
- import { ClassValue, UiClass } from "@soybeanjs/headless";
10
9
  import { ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "@soybeanjs/headless/shared";
10
+ import { ClassValue, UiClass } from "@soybeanjs/headless/types";
11
11
 
12
12
  //#region src/components/color-picker/types.d.ts
13
+ /**
14
+ * Available UI slots for the ColorPicker component.
15
+ */
13
16
  type ColorPickerUiSlot = 'popup' | 'content' | 'trigger' | 'triggerSwatch' | 'triggerValue' | 'formatSelect' | 'area' | 'slider' | 'alphaRow' | 'alphaSwatch' | 'fields' | 'hexField' | 'field' | 'alphaField' | 'swatches';
17
+ /**
18
+ * UI class overrides for the ColorPicker component.
19
+ */
14
20
  type ColorPickerUi = UiClass<ColorPickerUiSlot>;
21
+ /**
22
+ * Properties for the ColorPicker component.
23
+ */
15
24
  interface ColorPickerProps extends Pick<PopoverProps, 'open' | 'defaultOpen' | 'modal' | 'placement' | 'showArrow' | 'positionerProps' | 'popupProps' | 'triggerProps' | 'closeProps' | 'portalProps' | 'arrowProps'> {
25
+ /**
26
+ * Additional class names applied to the root element.
27
+ */
16
28
  class?: ClassValue;
29
+ /**
30
+ * Visual size of the component.
31
+ */
17
32
  size?: ThemeSize;
33
+ /**
34
+ * Per-slot class overrides for the component.
35
+ */
18
36
  ui?: Partial<ColorPickerUi>;
37
+ /**
38
+ * Current model value.
39
+ */
19
40
  modelValue?: string | ColorValue;
41
+ /**
42
+ * Default value.
43
+ */
20
44
  defaultValue?: string | ColorValue;
45
+ /**
46
+ * Format.
47
+ */
21
48
  format?: ColorFormat;
49
+ /**
50
+ * Default format.
51
+ */
22
52
  defaultFormat?: ColorFormat;
53
+ /**
54
+ * Whether the component is disabled.
55
+ */
23
56
  disabled?: boolean;
57
+ /**
58
+ * Color space.
59
+ */
24
60
  colorSpace?: ColorSpace;
61
+ /**
62
+ * Whether to show an alpha.
63
+ */
25
64
  showAlpha?: boolean;
65
+ /**
66
+ * Whether to show a fields.
67
+ */
26
68
  showFields?: boolean;
69
+ /**
70
+ * Whether to show a swatches.
71
+ */
27
72
  showSwatches?: boolean;
73
+ /**
74
+ * Swatches.
75
+ */
28
76
  swatches?: string[];
29
- triggerButtonProps?: ButtonProps$1;
77
+ /**
78
+ * Properties forwarded to the trigger button element.
79
+ */
80
+ triggerButtonProps?: ButtonProps;
81
+ /**
82
+ * Properties forwarded to the area element.
83
+ */
30
84
  areaProps?: Omit<ColorAreaProps, 'modelValue' | 'defaultValue' | 'disabled' | 'colorSpace' | 'format' | 'xChannel' | 'yChannel' | 'onChange' | 'onChangeEnd'>;
85
+ /**
86
+ * Properties forwarded to the hue slider element.
87
+ */
31
88
  hueSliderProps?: Omit<ColorSliderProps, 'modelValue' | 'defaultValue' | 'channel' | 'colorSpace' | 'disabled' | 'format' | 'onChange' | 'onChangeEnd'>;
89
+ /**
90
+ * Properties forwarded to the alpha slider element.
91
+ */
32
92
  alphaSliderProps?: Omit<ColorSliderProps, 'modelValue' | 'defaultValue' | 'channel' | 'colorSpace' | 'disabled' | 'format' | 'onChange' | 'onChangeEnd'>;
93
+ /**
94
+ * Properties forwarded to the alpha field element.
95
+ */
33
96
  alphaFieldProps?: Omit<ColorFieldProps, 'modelValue' | 'defaultValue' | 'disabled' | 'channel' | 'colorSpace' | 'format'>;
97
+ /**
98
+ * Properties forwarded to the hex field element.
99
+ */
34
100
  hexFieldProps?: Omit<ColorFieldProps, 'modelValue' | 'defaultValue' | 'disabled' | 'channel' | 'colorSpace' | 'format'>;
101
+ /**
102
+ * Properties forwarded to the field element.
103
+ */
35
104
  fieldProps?: Omit<ColorFieldProps, 'modelValue' | 'defaultValue' | 'disabled' | 'channel' | 'colorSpace' | 'format'>;
105
+ /**
106
+ * Properties forwarded to the swatch picker element.
107
+ */
36
108
  swatchPickerProps?: Omit<ColorSwatchPickerProps, 'modelValue' | 'defaultValue' | 'colors' | 'disabled'>;
109
+ /**
110
+ * Properties forwarded to the swatch element.
111
+ */
37
112
  swatchProps?: Omit<ColorSwatchProps, 'class' | 'color' | 'size'>;
38
113
  }
114
+ /**
115
+ * Events for the ColorPicker component.
116
+ */
39
117
  type ColorPickerEmits = {
118
+ /**
119
+ * Emitted when the model value changes.
120
+ */
40
121
  'update:modelValue': [value: string];
122
+ /**
123
+ * Emitted when the color value changes.
124
+ */
41
125
  'update:color': [value: NormalizedColor];
126
+ /**
127
+ * Emitted when the format value changes.
128
+ */
42
129
  'update:format': [value: ColorFormat];
130
+ /**
131
+ * Emitted when the open state changes.
132
+ */
43
133
  'update:open': [value: boolean];
134
+ /**
135
+ * Emitted when change occurs.
136
+ */
44
137
  change: [value: string];
45
138
  };
46
139
  //#endregion
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{sliderVariants as t}from"../slider/variants.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,toHandlers as u,unref as d,withCtx as f}from"vue";import{useForwardListeners as p,useOmitProps as m}from"@soybeanjs/headless/composables";import{ColorSliderRoot as h,ColorSliderThumb as g,ColorSliderTrack as _,provideColorSliderUi as v}from"@soybeanjs/headless/color-slider";const y=a({name:`SColorSlider`,__name:`color-slider`,props:{class:{},color:{default:`accent`},size:{default:`md`},ui:{},trackProps:{},thumbProps:{},modelValue:{},defaultValue:{},colorSpace:{},channel:{},format:{},orientation:{},dir:{},inverted:{type:Boolean},disabled:{type:Boolean},step:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`change`,`changeEnd`],setup(a,{emit:y}){let b=a,x=p(y),S=m(b,[`class`,`size`,`ui`,`trackProps`,`thumbProps`,`onChange`]);return v(n(()=>e(t({color:b.color,size:b.size}),b.ui,{root:b.class}))),(e,t)=>(l(),r(d(h),s(d(S),u(d(x))),{default:f(()=>[i(d(_),c(o(a.trackProps)),null,16),i(d(g),c(o(a.thumbProps)),null,16)]),_:1},16))}});export{y as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{sliderVariants as t}from"../slider/variants.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,toHandlers as u,unref as d,withCtx as f}from"vue";import{useForwardListeners as p,useOmitProps as m}from"@soybeanjs/headless/composables";import{ColorSliderRoot as h,ColorSliderThumb as g,ColorSliderTrack as _,provideColorSliderUi as v}from"@soybeanjs/headless/color-slider";const y=a({name:`SColorSlider`,__name:`color-slider`,props:{class:{type:[Boolean,null,String,Object,Array]},color:{default:`accent`},size:{default:`md`},ui:{},trackProps:{},thumbProps:{},modelValue:{},defaultValue:{},colorSpace:{},channel:{},format:{},orientation:{},dir:{},inverted:{type:Boolean},disabled:{type:Boolean},step:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`change`,`changeEnd`],setup(a,{emit:y}){let b=a,x=p(y),S=m(b,[`class`,`size`,`ui`,`trackProps`,`thumbProps`,`onChange`]);return v(n(()=>e(t({color:b.color,size:b.size}),b.ui,{root:b.class}))),(e,t)=>(l(),r(d(h),s(d(S),u(d(x))),{default:f(()=>[i(d(_),c(o(a.trackProps)),null,16),i(d(g),c(o(a.thumbProps)),null,16)]),_:1},16))}});export{y as default};