bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68

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 (541) hide show
  1. package/README.md +1 -1
  2. package/bin/bitboss-ui-mcp.mjs +87 -19
  3. package/bin/bitboss-ui.mjs +6 -2
  4. package/dist/ai/BbAlert.md +15 -11
  5. package/dist/ai/BbAsterisk.md +1 -1
  6. package/dist/ai/BbAvatar.md +2 -2
  7. package/dist/ai/BbBadge.md +4 -4
  8. package/dist/ai/BbBaseCheckboxIcon.md +4 -0
  9. package/dist/ai/BbBaseRadioIcon.md +7 -3
  10. package/dist/ai/BbBaseSwitchIcon.md +11 -2
  11. package/dist/ai/BbBreadcrumbs.md +2 -2
  12. package/dist/ai/BbButton.md +62 -9
  13. package/dist/ai/BbCalendar.md +1 -1
  14. package/dist/ai/BbCheckbox.md +23 -5
  15. package/dist/ai/BbCheckboxGroup.md +52 -25
  16. package/dist/ai/BbColorInput.md +13 -12
  17. package/dist/ai/BbColorPalette.md +5 -5
  18. package/dist/ai/BbConfigScope.md +218 -0
  19. package/dist/ai/BbConfirm.md +24 -21
  20. package/dist/ai/BbDatePicker.md +4 -4
  21. package/dist/ai/BbDatePickerInput.md +16 -15
  22. package/dist/ai/BbDialog.md +10 -9
  23. package/dist/ai/BbDropdown.md +26 -16
  24. package/dist/ai/BbDropdownButton.md +18 -18
  25. package/dist/ai/BbDropzone.md +1 -1
  26. package/dist/ai/BbForm.md +6 -4
  27. package/dist/ai/BbHost.md +19 -13
  28. package/dist/ai/BbIcon.md +3 -3
  29. package/dist/ai/BbIndicator.md +4 -4
  30. package/dist/ai/BbNumberInput.md +17 -13
  31. package/dist/ai/BbOffCanvas.md +4 -3
  32. package/dist/ai/BbPagination.md +10 -2
  33. package/dist/ai/BbPopover.md +5 -5
  34. package/dist/ai/BbRadio.md +23 -4
  35. package/dist/ai/BbRadioGroup.md +69 -30
  36. package/dist/ai/BbRating.md +5 -5
  37. package/dist/ai/BbSelect.md +74 -39
  38. package/dist/ai/BbSelectPopover.md +28 -26
  39. package/dist/ai/BbSlider.md +258 -61
  40. package/dist/ai/BbSpinner.md +2 -2
  41. package/dist/ai/BbSwitch.md +27 -4
  42. package/dist/ai/BbSwitchGroup.md +22 -13
  43. package/dist/ai/BbTable.md +10 -5
  44. package/dist/ai/BbTabs.md +6 -6
  45. package/dist/ai/BbTabsRoot.md +1 -1
  46. package/dist/ai/BbTag.md +12 -11
  47. package/dist/ai/BbTextInput.md +25 -17
  48. package/dist/ai/BbTextarea.md +15 -14
  49. package/dist/ai/BbTimePicker.md +3 -3
  50. package/dist/ai/BbTimePickerInput.md +12 -11
  51. package/dist/ai/BbToast.md +65 -26
  52. package/dist/ai/BbTooltip.md +2 -2
  53. package/dist/ai/CommonField.md +2 -2
  54. package/dist/ai/CommonFieldInput.md +2 -1
  55. package/dist/ai/FlatListBox.md +4 -3
  56. package/dist/ai/GroupedListBox.md +4 -3
  57. package/dist/ai/ListBox.md +5 -4
  58. package/dist/ai/OptionsContainer.md +17 -1
  59. package/dist/ai/changelog.json +454 -7
  60. package/dist/ai/components.json +77 -69
  61. package/dist/ai/composables/useBbConfig.md +3 -3
  62. package/dist/ai/composables/useBbDialog.md +1 -1
  63. package/dist/ai/composables/useBbFormField.md +1 -1
  64. package/dist/ai/composables/useConfirm.md +1 -1
  65. package/dist/ai/composables/useToast.md +16 -16
  66. package/dist/ai/design-tokens.json +10 -5
  67. package/dist/ai/guides/agent-contract.md +8 -8
  68. package/dist/ai/guides/ai-router.md +1 -1
  69. package/dist/ai/guides/app-layout.md +1 -1
  70. package/dist/ai/guides/design-language.md +17 -13
  71. package/dist/ai/guides/design-tokens.md +81 -42
  72. package/dist/ai/guides/eslint-rules.md +3 -1
  73. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  74. package/dist/ai/guides/icons-policy.md +1 -1
  75. package/dist/ai/guides/inline-edit-playbook.md +1 -1
  76. package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
  77. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  78. package/dist/ai/guides/migration/components/bb-alert.md +2 -2
  79. package/dist/ai/guides/migration/components/bb-badge.md +1 -1
  80. package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
  81. package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
  82. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
  83. package/dist/ai/guides/migration/components/bb-host.md +10 -8
  84. package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
  85. package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
  86. package/dist/ai/guides/migration/components/bb-select.md +3 -3
  87. package/dist/ai/guides/migration/components/bb-slider.md +17 -2
  88. package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
  89. package/dist/ai/guides/migration/components/bb-toast.md +6 -6
  90. package/dist/ai/guides/migration/components/use-confirm.md +1 -1
  91. package/dist/ai/guides/migration/v2-to-v3.md +191 -56
  92. package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
  93. package/dist/ai/guides/passthrough.md +140 -131
  94. package/dist/ai/guides/typescript-generic-components.md +7 -7
  95. package/dist/ai/guides/validated-forms.md +5 -5
  96. package/dist/ai/guides/validation-libraries.md +4 -4
  97. package/dist/ai/helpers/inertia/manifest.json +1 -1
  98. package/dist/ai/index.md +3 -3
  99. package/dist/ai/manifest/common.json +9 -11
  100. package/dist/ai/manifest/components/BbAlert.json +3 -2
  101. package/dist/ai/manifest/components/BbAvatar.json +2 -1
  102. package/dist/ai/manifest/components/BbBadge.json +3 -2
  103. package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
  104. package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
  105. package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
  106. package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
  107. package/dist/ai/manifest/components/BbButton.json +4 -3
  108. package/dist/ai/manifest/components/BbButton.tree.json +3 -1
  109. package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
  110. package/dist/ai/manifest/components/BbCheckbox.json +4 -3
  111. package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
  112. package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
  113. package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
  114. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
  115. package/dist/ai/manifest/components/BbColorInput.json +6 -5
  116. package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
  117. package/dist/ai/manifest/components/BbColorPalette.json +2 -1
  118. package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
  119. package/dist/ai/manifest/components/BbConfigScope.json +23 -0
  120. package/dist/ai/manifest/components/BbConfirm.json +2 -1
  121. package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
  122. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  123. package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
  124. package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
  125. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
  126. package/dist/ai/manifest/components/BbDialog.json +3 -2
  127. package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
  128. package/dist/ai/manifest/components/BbDropdown.json +7 -4
  129. package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
  130. package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
  131. package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
  132. package/dist/ai/manifest/components/BbDropzone.json +1 -0
  133. package/dist/ai/manifest/components/BbForm.json +1 -1
  134. package/dist/ai/manifest/components/BbHost.tree.json +1 -1
  135. package/dist/ai/manifest/components/BbIcon.json +2 -1
  136. package/dist/ai/manifest/components/BbIndicator.json +2 -1
  137. package/dist/ai/manifest/components/BbNumberInput.json +5 -4
  138. package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
  139. package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
  140. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  141. package/dist/ai/manifest/components/BbPagination.json +1 -1
  142. package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
  143. package/dist/ai/manifest/components/BbPopover.json +2 -1
  144. package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
  145. package/dist/ai/manifest/components/BbRadio.json +3 -2
  146. package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
  147. package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
  148. package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
  149. package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
  150. package/dist/ai/manifest/components/BbRating.json +3 -2
  151. package/dist/ai/manifest/components/BbSelect.json +11 -9
  152. package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
  153. package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
  154. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
  155. package/dist/ai/manifest/components/BbSlider.json +20 -18
  156. package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
  157. package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
  158. package/dist/ai/manifest/components/BbSwitch.json +2 -1
  159. package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
  160. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
  161. package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
  162. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
  163. package/dist/ai/manifest/components/BbTable.json +3 -2
  164. package/dist/ai/manifest/components/BbTable.tree.json +4 -3
  165. package/dist/ai/manifest/components/BbTabs.json +3 -2
  166. package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
  167. package/dist/ai/manifest/components/BbTag.json +6 -5
  168. package/dist/ai/manifest/components/BbTag.tree.json +3 -2
  169. package/dist/ai/manifest/components/BbTextInput.json +5 -4
  170. package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
  171. package/dist/ai/manifest/components/BbTextarea.json +6 -5
  172. package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
  173. package/dist/ai/manifest/components/BbTimePicker.json +2 -1
  174. package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
  175. package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
  176. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
  177. package/dist/ai/manifest/components/BbToast.json +2 -1
  178. package/dist/ai/manifest/components/BbToast.tree.json +6 -1
  179. package/dist/ai/manifest/components/BbTooltip.json +1 -0
  180. package/dist/ai/manifest/components/CommonField.json +2 -2
  181. package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
  182. package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
  183. package/dist/ai/manifest/components/FlatListBox.json +1 -1
  184. package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
  185. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  186. package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
  187. package/dist/ai/manifest/components/ListBox.json +1 -1
  188. package/dist/ai/manifest/components/ListBox.tree.json +2 -2
  189. package/dist/ai/manifest/components/OptionsContainer.json +3 -2
  190. package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
  191. package/dist/ai/manifest/index.json +3 -3
  192. package/dist/ai/manifest/meta.json +16 -7
  193. package/dist/ai/manifest/types.advanced.json +5 -6
  194. package/dist/ai/manifest/types.api.json +15 -6
  195. package/dist/ai/manifest/types.wrapper.json +2 -2
  196. package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
  197. package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
  198. package/dist/ai/recipes/inertia/onboarding.md +2 -2
  199. package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
  200. package/dist/ai/recipes/inertia/record-form.md +2 -2
  201. package/dist/ai/recipes/inertia/records-workspace.md +2 -2
  202. package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
  203. package/dist/ai/recipes/inertia/upload-center.md +3 -3
  204. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  205. package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
  206. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
  207. package/dist/ai/recipes/nuxt/onboarding.md +2 -2
  208. package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
  209. package/dist/ai/recipes/nuxt/record-form.md +2 -2
  210. package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
  211. package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
  212. package/dist/ai/recipes/nuxt/upload-center.md +4 -4
  213. package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
  214. package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
  215. package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
  216. package/dist/ai/recipes/vue/onboarding.md +2 -2
  217. package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
  218. package/dist/ai/recipes/vue/record-form.md +2 -2
  219. package/dist/ai/recipes/vue/records-workspace.md +2 -2
  220. package/dist/ai/recipes/vue/settings-workspace.md +5 -4
  221. package/dist/ai/recipes/vue/upload-center.md +4 -4
  222. package/dist/ai/recipes/vue/wizard-form.md +2 -2
  223. package/dist/ai/source/BbAlert.md +10 -4
  224. package/dist/ai/source/BbAvatar.md +5 -4
  225. package/dist/ai/source/BbBadge.md +16 -9
  226. package/dist/ai/source/BbBadgeButton.md +1 -1
  227. package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
  228. package/dist/ai/source/BbBaseRadioIcon.md +17 -11
  229. package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
  230. package/dist/ai/source/BbButton.md +38 -22
  231. package/dist/ai/source/BbCalendar.md +5 -30
  232. package/dist/ai/source/BbCheckbox.md +20 -7
  233. package/dist/ai/source/BbCheckboxGroup.md +66 -27
  234. package/dist/ai/source/BbColorInput.md +29 -22
  235. package/dist/ai/source/BbColorPalette.md +23 -22
  236. package/dist/ai/source/BbConfigScope.md +123 -0
  237. package/dist/ai/source/BbConfirm.md +5 -3
  238. package/dist/ai/source/BbDatePicker.md +18 -8
  239. package/dist/ai/source/BbDatePickerInput.md +44 -27
  240. package/dist/ai/source/BbDialog.md +23 -13
  241. package/dist/ai/source/BbDropdown.md +61 -25
  242. package/dist/ai/source/BbDropdownButton.md +67 -25
  243. package/dist/ai/source/BbDropdownGroup.md +38 -15
  244. package/dist/ai/source/BbForm.md +1 -1
  245. package/dist/ai/source/BbHost.md +4 -4
  246. package/dist/ai/source/BbHoverCard.md +6 -2
  247. package/dist/ai/source/BbIcon.md +5 -4
  248. package/dist/ai/source/BbIndicator.md +1 -1
  249. package/dist/ai/source/BbNumberInput.md +44 -30
  250. package/dist/ai/source/BbOffCanvas.md +17 -10
  251. package/dist/ai/source/BbPagination.md +10 -18
  252. package/dist/ai/source/BbPopover.md +17 -9
  253. package/dist/ai/source/BbPopoverPortal.md +2 -2
  254. package/dist/ai/source/BbRadio.md +18 -7
  255. package/dist/ai/source/BbRadioGroup.md +67 -27
  256. package/dist/ai/source/BbRating.md +21 -11
  257. package/dist/ai/source/BbSelect.md +51 -32
  258. package/dist/ai/source/BbSelectPopover.md +81 -38
  259. package/dist/ai/source/BbSlider.md +929 -565
  260. package/dist/ai/source/BbSwitchGroup.md +28 -9
  261. package/dist/ai/source/BbTable.md +17 -30
  262. package/dist/ai/source/BbTabs.md +5 -2
  263. package/dist/ai/source/BbTabsList.md +1 -1
  264. package/dist/ai/source/BbTabsPanels.md +1 -1
  265. package/dist/ai/source/BbTabsRoot.md +1 -1
  266. package/dist/ai/source/BbTag.md +27 -20
  267. package/dist/ai/source/BbTextInput.md +29 -26
  268. package/dist/ai/source/BbTextarea.md +53 -45
  269. package/dist/ai/source/BbTimePicker.md +19 -7
  270. package/dist/ai/source/BbTimePickerInput.md +34 -21
  271. package/dist/ai/source/BbToast.md +18 -9
  272. package/dist/ai/source/BbToastPortal.md +14 -6
  273. package/dist/ai/source/BbTooltip.md +1 -1
  274. package/dist/ai/source/CommonFieldInput.md +9 -4
  275. package/dist/ai/source/FlatListBox.md +11 -1
  276. package/dist/ai/source/GroupedListBox.md +12 -1
  277. package/dist/ai/source/ListBox.md +1 -1
  278. package/dist/ai/source/OptionsContainer.md +48 -1
  279. package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
  280. package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
  281. package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
  282. package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
  283. package/dist/assets/svgs/close.svg_raw.js +3 -0
  284. package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
  285. package/dist/assets/svgs/move.svg_raw.js +3 -0
  286. package/dist/assets/svgs/x.svg_raw.js +3 -0
  287. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
  288. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
  289. package/dist/components/BbAlert/types.d.ts +1 -1
  290. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  291. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
  292. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
  293. package/dist/components/BbBadge/types.d.ts +1 -1
  294. package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
  295. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
  296. package/dist/components/BbButton/types.d.ts +12 -10
  297. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
  298. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
  299. package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
  300. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
  301. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
  302. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
  303. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
  304. package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
  305. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
  306. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
  307. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
  308. package/dist/components/BbColorInput/types.d.ts +8 -8
  309. package/dist/components/BbColorInput/types.js +1 -1
  310. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
  311. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
  312. package/dist/components/BbColorPalette/types.d.ts +2 -2
  313. package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
  314. package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
  315. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
  316. package/dist/components/BbConfigScope/types.d.ts +20 -0
  317. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
  318. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
  319. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
  320. package/dist/components/BbDatePicker/types.d.ts +2 -2
  321. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
  322. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
  323. package/dist/components/BbDatePickerInput/types.d.ts +8 -8
  324. package/dist/components/BbDatePickerInput/types.js +1 -1
  325. package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
  326. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
  327. package/dist/components/BbDialog/types.d.ts +2 -2
  328. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
  329. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
  330. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
  331. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
  332. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
  333. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
  334. package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
  335. package/dist/components/BbDropdown/pointerTrail.js +26 -0
  336. package/dist/components/BbDropdown/types.d.ts +25 -13
  337. package/dist/components/BbDropdown/types.js +11 -2
  338. package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
  339. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
  340. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
  341. package/dist/components/BbDropdownButton/types.d.ts +30 -13
  342. package/dist/components/BbDropdownButton/types.js +7 -3
  343. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
  344. package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
  345. package/dist/components/BbForm/BbFormCustomField.js +2 -2
  346. package/dist/components/BbForm/bindFormField.js +66 -66
  347. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
  348. package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
  349. package/dist/components/BbHost/types.d.ts +2 -2
  350. package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
  351. package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
  352. package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
  353. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
  354. package/dist/components/BbIndicator/types.d.ts +1 -1
  355. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
  356. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
  357. package/dist/components/BbNumberInput/types.d.ts +12 -11
  358. package/dist/components/BbNumberInput/types.js +1 -1
  359. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
  360. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
  361. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  362. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
  363. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  364. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
  365. package/dist/components/BbPopover/types.d.ts +2 -2
  366. package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
  367. package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
  368. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
  369. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
  370. package/dist/components/BbRadioGroup/types.d.ts +11 -5
  371. package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
  372. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
  373. package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
  374. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
  375. package/dist/components/BbSelect/types.d.ts +23 -19
  376. package/dist/components/BbSelect/types.js +4 -2
  377. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
  378. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
  379. package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
  380. package/dist/components/BbSelectPopover/reclickClears.js +4 -0
  381. package/dist/components/BbSelectPopover/types.d.ts +21 -16
  382. package/dist/components/BbSelectPopover/types.js +3 -1
  383. package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
  384. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
  385. package/dist/components/BbSlider/types.d.ts +136 -47
  386. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
  387. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
  388. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
  389. package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
  390. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
  391. package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
  392. package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
  393. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
  394. package/dist/components/BbTabs/types.d.ts +1 -1
  395. package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
  396. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
  397. package/dist/components/BbTag/types.d.ts +7 -7
  398. package/dist/components/BbTag/types.js +1 -1
  399. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
  400. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
  401. package/dist/components/BbTextInput/types.d.ts +9 -9
  402. package/dist/components/BbTextInput/types.js +1 -1
  403. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
  404. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
  405. package/dist/components/BbTextarea/types.d.ts +8 -8
  406. package/dist/components/BbTextarea/types.js +1 -1
  407. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
  408. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
  409. package/dist/components/BbTimePicker/types.d.ts +2 -2
  410. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
  411. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
  412. package/dist/components/BbTimePickerInput/types.d.ts +8 -8
  413. package/dist/components/BbTimePickerInput/types.js +1 -1
  414. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
  415. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
  416. package/dist/components/BbToast/types.d.ts +2 -2
  417. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
  418. package/dist/components/BbTooltip/types.d.ts +1 -1
  419. package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
  420. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  421. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
  422. package/dist/components/CommonFieldInput/types.d.ts +1 -1
  423. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
  424. package/dist/components/FlatListBox/types.d.ts +1 -1
  425. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
  426. package/dist/components/GroupedListBox/types.d.ts +1 -1
  427. package/dist/components/ListBox/types.d.ts +1 -1
  428. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
  429. package/dist/components/OptionsContainer/types.d.ts +5 -0
  430. package/dist/components/Transitions/Slide.vue.d.ts +1 -1
  431. package/dist/composables/useBbTabs.js +94 -90
  432. package/dist/composables/useConfig.js +2 -9
  433. package/dist/composables/useConfigDefaults.d.ts +54 -0
  434. package/dist/composables/useConfigDefaults.js +56 -0
  435. package/dist/composables/useConfirm.d.ts +7 -7
  436. package/dist/composables/useFormBinding.d.ts +1 -1
  437. package/dist/composables/useFormBinding.js +3 -3
  438. package/dist/composables/usePassthrough.d.ts +7 -5
  439. package/dist/composables/usePassthrough.js +137 -133
  440. package/dist/composables/useToast.d.ts +5 -4
  441. package/dist/composables/useToast.js +47 -37
  442. package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
  443. package/dist/deprecation/ai-deprecations.json.js +1 -1
  444. package/dist/directives/bbDropdown.js +7 -7
  445. package/dist/i18n/locales/cs.json +2 -1
  446. package/dist/i18n/locales/da.json +2 -1
  447. package/dist/i18n/locales/de-CH.json +2 -1
  448. package/dist/i18n/locales/de.json +2 -1
  449. package/dist/i18n/locales/el.json +2 -1
  450. package/dist/i18n/locales/en-GB.json +2 -1
  451. package/dist/i18n/locales/en.json +2 -1
  452. package/dist/i18n/locales/es-MX.json +2 -1
  453. package/dist/i18n/locales/es.json +2 -1
  454. package/dist/i18n/locales/fi.json +2 -1
  455. package/dist/i18n/locales/fr.json +2 -1
  456. package/dist/i18n/locales/hu.json +2 -1
  457. package/dist/i18n/locales/it.json +2 -1
  458. package/dist/i18n/locales/ja.json +2 -1
  459. package/dist/i18n/locales/ko.json +2 -1
  460. package/dist/i18n/locales/nb.json +2 -1
  461. package/dist/i18n/locales/nl.json +2 -1
  462. package/dist/i18n/locales/pl.json +2 -1
  463. package/dist/i18n/locales/pt-BR.json +2 -1
  464. package/dist/i18n/locales/pt-PT.json +2 -1
  465. package/dist/i18n/locales/ro.json +2 -1
  466. package/dist/i18n/locales/ru.json +2 -1
  467. package/dist/i18n/locales/sv.json +2 -1
  468. package/dist/i18n/locales/tr.json +2 -1
  469. package/dist/i18n/locales/uk.json +2 -1
  470. package/dist/i18n/locales/zh-CN.json +2 -1
  471. package/dist/i18n/locales/zh-HK.json +2 -1
  472. package/dist/i18n/locales/zh-TW.json +2 -1
  473. package/dist/index.d.ts +5 -5
  474. package/dist/index.js +2 -2
  475. package/dist/llms-full.txt +2273 -1243
  476. package/dist/llms-medium.txt +362 -184
  477. package/dist/llms.txt +4 -4
  478. package/dist/locale-blueprint.json +2 -1
  479. package/dist/nuxt-auto-imports.js +1 -1
  480. package/dist/nuxt-module.d.ts +1 -1
  481. package/dist/nuxt.js +17 -17
  482. package/dist/project-dts.d.ts +72 -10
  483. package/dist/project-dts.js +69 -21
  484. package/dist/styles.css +2 -2
  485. package/dist/types/AlertVariant.d.ts +1 -1
  486. package/dist/types/BadgeVariant.d.ts +1 -1
  487. package/dist/types/ButtonVariant.d.ts +1 -1
  488. package/dist/types/CheckboxVariant.d.ts +7 -4
  489. package/dist/types/CheckboxVariant.js +5 -1
  490. package/dist/types/Config.d.ts +17 -103
  491. package/dist/types/ConfigDefaults.d.ts +352 -0
  492. package/dist/types/ConfigDefaults.js +115 -0
  493. package/dist/types/ConfirmVariant.d.ts +1 -1
  494. package/dist/types/DropdownItemVariant.d.ts +1 -1
  495. package/dist/types/FieldLayout.d.ts +3 -3
  496. package/dist/types/IndicatorVariant.d.ts +1 -1
  497. package/dist/types/InputVariant.d.ts +57 -24
  498. package/dist/types/RadioVariant.d.ts +7 -4
  499. package/dist/types/RadioVariant.js +5 -1
  500. package/dist/types/SizeScale.d.ts +4 -0
  501. package/dist/types/SizeScale.js +17 -0
  502. package/dist/types/TabsVariant.d.ts +1 -1
  503. package/dist/types/ToastVariant.d.ts +1 -1
  504. package/dist/types/TooltipVariant.d.ts +1 -1
  505. package/dist/types/passthrough.d.ts +6 -6
  506. package/dist/types/ptComponentMap.d.ts +14 -14
  507. package/dist/utilities/functions/searchRank.d.ts +19 -0
  508. package/dist/utilities/functions/searchRank.js +76 -0
  509. package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
  510. package/dist/utils/configDefaults.d.ts +33 -0
  511. package/dist/utils/configDefaults.js +140 -0
  512. package/dist/utils/configScope.d.ts +43 -0
  513. package/dist/utils/configScope.js +13 -0
  514. package/dist/utils/passthrough.d.ts +4 -7
  515. package/dist/utils/passthrough.js +31 -29
  516. package/dist/utils/versionCheck.js +1 -1
  517. package/dist/vite-plugin.d.ts +54 -191
  518. package/dist/vite.js +318 -367
  519. package/llms.txt +4 -4
  520. package/package.json +3 -3
  521. package/scripts/lib/adoption-checklist.json +2 -2
  522. package/scripts/lib/agent-manifest.mjs +2 -0
  523. package/scripts/lib/eslint-disable.mjs +2 -0
  524. package/scripts/lib/eslint-plugin.d.ts +4 -2
  525. package/scripts/lib/eslint-plugin.mjs +67 -0
  526. package/scripts/lib/idiom-scan.mjs +8 -7
  527. package/scripts/lib/project-variant-dts.mjs +105 -36
  528. package/scripts/lib/validate-bb-markup.mjs +73 -13
  529. package/dist/ai/BbPtScope.md +0 -138
  530. package/dist/ai/manifest/components/BbPtScope.json +0 -21
  531. package/dist/ai/source/BbPtScope.md +0 -54
  532. package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
  533. package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
  534. package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
  535. package/dist/components/BbPtScope/types.d.ts +0 -15
  536. package/dist/types/PtScope.d.ts +0 -15
  537. package/dist/utilities/functions/head.js +0 -3
  538. package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
  539. package/dist/utilities/functions/matchAnyKey.js +0 -14
  540. package/dist/utils/ptScope.d.ts +0 -8
  541. package/dist/utils/ptScope.js +0 -3
@@ -1,35 +1,37 @@
1
- import { asSheetAttrs as e } from "../BbOffCanvas/sheetAttrs.js";
2
- import { useConfig as t } from "../../composables/useConfig.js";
3
- import { extractDomContainer as n } from "../../utilities/functions/extractDomContainer.js";
4
- import { useClosingInert as r } from "../../composables/useClosingInert.js";
5
- import { useId as i } from "../../composables/useId.js";
6
- import { useLocale as a } from "../../composables/useLocale.js";
7
- import { useEscapeStackEntry as o } from "../../composables/useEscapeStackEntry.js";
8
- import { useMobile as s } from "../../composables/useMobile.js";
9
- import ee from "../BbOffCanvas/BbOffCanvas.vue.js";
10
- import { BB_OFF_CANVAS_PT as te } from "../BbOffCanvas/types.js";
11
- import c from "../CommonPopover/CommonPopover.vue.js";
12
- import { removedPropsFor as ne } from "../../deprecation/removedProps.js";
13
- import { warnRemovedAttrs as re } from "../../utilities/functions/warnRemovedAttrs.js";
14
- import { BB_COLOR_PALETTE_PT as ie } from "./types.js";
15
- import { usePassthrough as ae } from "../../composables/usePassthrough.js";
16
- import { withoutPt as oe } from "../../utils/passthrough.js";
1
+ import e from "../BbIcon/BbIcon.vue.js";
2
+ import t from "../../assets/svgs/eyedropper.svg_raw.js";
3
+ import { asSheetAttrs as n } from "../BbOffCanvas/sheetAttrs.js";
4
+ import { useConfigDefaults as r, useConfigSetting as i } from "../../composables/useConfigDefaults.js";
5
+ import { extractDomContainer as a } from "../../utilities/functions/extractDomContainer.js";
6
+ import { useClosingInert as o } from "../../composables/useClosingInert.js";
7
+ import { useId as s } from "../../composables/useId.js";
8
+ import { useLocale as ee } from "../../composables/useLocale.js";
9
+ import { useEscapeStackEntry as te } from "../../composables/useEscapeStackEntry.js";
10
+ import { useMobile as c } from "../../composables/useMobile.js";
11
+ import ne from "../BbOffCanvas/BbOffCanvas.vue.js";
12
+ import { BB_OFF_CANVAS_PT as re } from "../BbOffCanvas/types.js";
13
+ import ie from "../CommonPopover/CommonPopover.vue.js";
14
+ import { removedPropsFor as ae } from "../../deprecation/removedProps.js";
15
+ import { warnRemovedAttrs as oe } from "../../utilities/functions/warnRemovedAttrs.js";
16
+ import { BB_COLOR_PALETTE_PT as se } from "./types.js";
17
+ import { usePassthrough as ce } from "../../composables/usePassthrough.js";
18
+ import { withoutPt as le } from "../../utils/passthrough.js";
17
19
  import { transitions as l } from "../../utilities/misc/transitions.js";
18
- import { Fragment as u, computed as d, createBlock as se, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as ce, guardReactiveProps as le, mergeProps as g, nextTick as ue, normalizeClass as de, normalizeProps as fe, normalizeStyle as _, onBeforeUnmount as pe, onDeactivated as me, openBlock as v, ref as y, renderList as he, renderSlot as ge, toDisplayString as _e, unref as b, useAttrs as ve, watch as x, withCtx as ye } from "vue";
19
- import { createReusableTemplate as be } from "@vueuse/core";
20
+ import { Fragment as u, computed as d, createBlock as ue, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as de, guardReactiveProps as fe, mergeProps as g, nextTick as pe, normalizeClass as me, normalizeProps as he, normalizeStyle as _, onBeforeUnmount as ge, onDeactivated as _e, openBlock as v, ref as y, renderList as ve, renderSlot as ye, toDisplayString as be, unref as b, useAttrs as xe, watch as x, withCtx as Se } from "vue";
21
+ import { createReusableTemplate as Ce } from "@vueuse/core";
20
22
  // src/components/BbColorPalette/BbColorPalette.vue?vue&type=script&setup=true&lang.ts
21
- var xe = ["aria-label"], Se = {
23
+ var we = ["aria-label"], Te = {
22
24
  "aria-live": "polite",
23
25
  class: "bb-color-palette__canvas-announcer",
24
26
  role: "status"
25
- }, Ce = { class: "bb-color-palette__controls" }, we = { class: "bb-color-palette__preview-wrap" }, Te = { class: "bb-color-palette__sliders" }, Ee = ["aria-label", "aria-valuenow"], De = ["aria-label", "aria-valuenow"], Oe = ["aria-label", "disabled"], ke = {
27
+ }, Ee = { class: "bb-color-palette__controls" }, De = { class: "bb-color-palette__preview-wrap" }, Oe = { class: "bb-color-palette__sliders" }, ke = ["aria-label", "aria-valuenow"], Ae = ["aria-label", "aria-valuenow"], je = ["aria-label", "disabled"], Me = {
26
28
  key: 0,
27
29
  class: "bb-color-palette__swatches"
28
- }, Ae = [
30
+ }, Ne = [
29
31
  "aria-label",
30
32
  "aria-pressed",
31
33
  "onClick"
32
- ], S = /*@__PURE__*/ ce({
34
+ ], S = /*@__PURE__*/ de({
33
35
  inheritAttrs: !1,
34
36
  __name: "BbColorPalette",
35
37
  props: {
@@ -64,7 +66,7 @@ var xe = ["aria-label"], Se = {
64
66
  },
65
67
  label: {},
66
68
  modelValue: {},
67
- offset: { default: 4 },
69
+ offset: { default: void 0 },
68
70
  padding: { default: 6 },
69
71
  placement: {},
70
72
  readonly: { type: Boolean },
@@ -78,75 +80,75 @@ var xe = ["aria-label"], Se = {
78
80
  "hidden",
79
81
  "update:modelValue"
80
82
  ],
81
- setup(l, { emit: ce }) {
82
- let S = l, C = ce, w = ae({
83
+ setup(l, { emit: de }) {
84
+ let S = l, C = de, Pe = i(null, "popoverOffset"), w = ce({
83
85
  component: "BbColorPalette",
84
86
  props: S,
85
- parts: ie.parts,
86
- states: ie.states,
87
+ parts: se.parts,
88
+ states: se.states,
87
89
  active: { open: () => O.value },
88
- attrs: ve()
89
- }), je = t();
90
- process.env.NODE_ENV !== "production" && re("BbColorPalette", ne("BbColorPalette"));
91
- let { t: T } = a(), { isMobile: Me } = s(), E = i().id.value, Ne = `${E}_panel`, [Pe, Fe] = be(), D = y(), Ie = y(), Le = d(() => S.activator != null), Re = (e) => {
92
- D.value = n(e) ?? void 0;
93
- }, ze = (e) => {
94
- Ie.value = n(e) ?? void 0;
90
+ attrs: xe()
91
+ });
92
+ process.env.NODE_ENV !== "production" && oe("BbColorPalette", ae("BbColorPalette"));
93
+ let { t: T } = ee(), { isMobile: Fe } = c(), E = s().id.value, Ie = `${E}_panel`, [Le, Re] = Ce(), D = y(), ze = y(), Be = d(() => S.activator != null), Ve = (e) => {
94
+ D.value = a(e) ?? void 0;
95
+ }, He = (e) => {
96
+ ze.value = a(e) ?? void 0;
95
97
  };
96
98
  x(() => S.activator, (e) => {
97
- D.value = n(e) ?? void 0;
99
+ D.value = a(e) ?? void 0;
98
100
  }, { immediate: !0 }), x(() => S.anchor, (e) => {
99
- Ie.value = e == null ? void 0 : n(e) ?? void 0;
101
+ ze.value = e == null ? void 0 : a(e) ?? void 0;
100
102
  }, { immediate: !0 });
101
- let Be = d(() => Ie.value ?? D.value), O = y(!1), Ve = r(O, () => S.transitionDuration), He = null, Ue = (e) => {
103
+ let Ue = d(() => ze.value ?? D.value), O = y(!1), We = o(O, () => S.transitionDuration), Ge = null, Ke = (e) => {
102
104
  S.disabled || S.readonly || (e.stopPropagation(), O.value = !O.value);
103
- }, We = (e) => {
105
+ }, qe = (e) => {
104
106
  e.target instanceof HTMLDialogElement && (O.value = !1);
105
107
  };
106
108
  x(O, async (e) => {
107
- e ? (Ke.value = Ge(), He = document.activeElement instanceof HTMLElement ? document.activeElement : null, k.value || document.addEventListener("click", We, { passive: !0 }), await ue(), U.value?.focus()) : (document.removeEventListener("click", We), He?.focus(), He = null);
109
+ e ? (Xe.value = Ye(), Ge = document.activeElement instanceof HTMLElement ? document.activeElement : null, k.value || document.addEventListener("click", qe, { passive: !0 }), await pe(), U.value?.focus()) : (document.removeEventListener("click", qe), Ge?.focus(), Ge = null);
108
110
  });
109
- let Ge = () => (S.adaptive ?? je.adaptive) && Me.value ? "canvas" : "popover", Ke = y(Ge()), k = d(() => Ke.value === "canvas");
111
+ let Je = r("BbColorPalette", S, { adaptive: !0 }), Ye = () => Je.adaptive && Fe.value ? "canvas" : "popover", Xe = y(Ye()), k = d(() => Xe.value === "canvas");
110
112
  x([
111
- () => S.adaptive,
112
- Me,
113
+ () => Je.adaptive,
114
+ Fe,
113
115
  O
114
116
  ], () => {
115
- O.value || (Ke.value = Ge());
116
- }), o(() => O.value && !k.value, () => O.value = !1);
117
- let qe = d(() => ({
117
+ O.value || (Xe.value = Ye());
118
+ }), te(() => O.value && !k.value, () => O.value = !1);
119
+ let Ze = d(() => ({
118
120
  side: "bottom",
119
121
  size: "auto",
120
122
  draggable: !0,
121
123
  hideClose: !0,
122
124
  eager: S.eager,
123
125
  transitionDuration: S.transitionDuration,
124
- ...S.offCanvasProps?.title ? {} : { "aria-labelledby": Xe.value },
125
- ...oe(S.offCanvasProps)
126
- })), Je = () => {
126
+ ...S.offCanvasProps?.title ? {} : { "aria-labelledby": et.value },
127
+ ...le(S.offCanvasProps)
128
+ })), Qe = () => {
127
129
  D.value?.focus(), C("hidden");
128
130
  }, A = null, j = y();
129
131
  x(D, (e) => {
130
132
  if (A?.(), A = null, !e) return;
131
133
  let t = !e.id;
132
- t && (e.id = `${E}_activator`), j.value = e.id, e.addEventListener("click", Ue), A = () => {
133
- e.removeEventListener("click", Ue), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), N.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), N.delete(e)), t && e.removeAttribute("id"), j.value = void 0;
134
+ t && (e.id = `${E}_activator`), j.value = e.id, e.addEventListener("click", Ke), A = () => {
135
+ e.removeEventListener("click", Ke), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), N.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), N.delete(e)), t && e.removeAttribute("id"), j.value = void 0;
134
136
  };
135
137
  }, { immediate: !0 });
136
- let Ye = d(() => S.label ?? T("colorInput.openPicker").value), M = `${E}_label`, Xe = d(() => j.value ? `${M} ${j.value}` : M), N = /* @__PURE__ */ new WeakSet(), Ze = d(() => S.disabled ? {
137
- ref: Re,
138
+ let $e = d(() => S.label ?? T("colorInput.openPicker").value), M = `${E}_label`, et = d(() => j.value ? `${M} ${j.value}` : M), N = /* @__PURE__ */ new WeakSet(), tt = d(() => S.disabled ? {
139
+ ref: Ve,
138
140
  disabled: !0,
139
141
  "aria-disabled": "true"
140
- } : { ref: Re });
142
+ } : { ref: Ve });
141
143
  x([
142
144
  D,
143
145
  O,
144
146
  () => S.disabled,
145
147
  () => S.readonly
146
148
  ], ([e, t, n, r]) => {
147
- e && (e.setAttribute("aria-labelledby", `${M} ${e.id}`), n ? (e.setAttribute("disabled", ""), e.setAttribute("aria-disabled", "true"), N.add(e)) : N.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), N.delete(e)), n || r ? (e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls")) : (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), t ? e.setAttribute("aria-controls", Ne) : e.removeAttribute("aria-controls")));
148
- }, { immediate: !0 }), pe(() => {
149
- A?.(), document.removeEventListener("click", We);
149
+ e && (e.setAttribute("aria-labelledby", `${M} ${e.id}`), n ? (e.setAttribute("disabled", ""), e.setAttribute("aria-disabled", "true"), N.add(e)) : N.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), N.delete(e)), n || r ? (e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls")) : (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), t ? e.setAttribute("aria-controls", Ie) : e.removeAttribute("aria-controls")));
150
+ }, { immediate: !0 }), ge(() => {
151
+ A?.(), document.removeEventListener("click", qe);
150
152
  });
151
153
  function P(e, t, n) {
152
154
  let r = (r) => {
@@ -159,7 +161,7 @@ var xe = ["aria-label"], Se = {
159
161
  Math.round(r(1) * 255)
160
162
  ];
161
163
  }
162
- function Qe(e, t, n) {
164
+ function nt(e, t, n) {
163
165
  let r = e / 255, i = t / 255, a = n / 255, o = Math.max(r, i, a), s = o - Math.min(r, i, a), ee = o === 0 ? 0 : s / o, te = o, c = 0;
164
166
  return s !== 0 && (c = o === r ? ((i - a) / s + (i < a ? 6 : 0)) / 6 : o === i ? ((a - r) / s + 2) / 6 : ((r - i) / s + 4) / 6), [
165
167
  c * 360,
@@ -167,7 +169,7 @@ var xe = ["aria-label"], Se = {
167
169
  te
168
170
  ];
169
171
  }
170
- function $e(e) {
172
+ function rt(e) {
171
173
  let t = e.replace(/^#/, "");
172
174
  return t.length === 3 ? [
173
175
  parseInt(t[0] + t[0], 16),
@@ -194,11 +196,11 @@ var xe = ["aria-label"], Se = {
194
196
  function F(e) {
195
197
  return Math.round(Math.max(0, Math.min(255, e))).toString(16).padStart(2, "0");
196
198
  }
197
- function et(e, t, n, r, i) {
199
+ function it(e, t, n, r, i) {
198
200
  let a = `#${F(e)}${F(t)}${F(n)}`;
199
201
  return i ? a + F(r * 255) : a;
200
202
  }
201
- let tt = [
203
+ let at = [
202
204
  [
203
205
  "#FFCDD2",
204
206
  "#EF9A9A",
@@ -243,11 +245,11 @@ var xe = ["aria-label"], Se = {
243
245
  ]
244
246
  ], I = y(0), L = y(1), R = y(1), z = y(1), B = d(() => {
245
247
  let [e, t, n] = P(I.value, L.value, R.value);
246
- return et(e, t, n, z.value, S.alpha);
247
- }), nt = d(() => {
248
+ return it(e, t, n, z.value, S.alpha);
249
+ }), ot = d(() => {
248
250
  let [e, t, n] = P(I.value, L.value, R.value);
249
251
  return S.alpha ? `rgba(${e},${t},${n},${z.value})` : `rgb(${e},${t},${n})`;
250
- }), rt = d(() => !!S.swatches), it = d(() => Array.isArray(S.swatches) ? S.swatches : tt), V = y(null), at = y(null), H = y(null), U = y(null), W = y(null), G = y(null), K = () => {
252
+ }), st = d(() => !!S.swatches), ct = d(() => Array.isArray(S.swatches) ? S.swatches : at), V = y(null), lt = y(null), H = y(null), U = y(null), W = y(null), G = y(null), K = () => {
251
253
  let e = V.value;
252
254
  if (!e || e.width === 0 || e.height === 0) return;
253
255
  let t = e.getContext("2d");
@@ -256,8 +258,8 @@ var xe = ["aria-label"], Se = {
256
258
  a.addColorStop(0, "#ffffff"), a.addColorStop(1, `rgb(${n},${r},${i})`), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height);
257
259
  let o = t.createLinearGradient(0, 0, 0, e.height);
258
260
  o.addColorStop(0, "rgba(0,0,0,0)"), o.addColorStop(1, "rgba(0,0,0,1)"), t.fillStyle = o, t.fillRect(0, 0, e.width, e.height);
259
- }, ot = () => {
260
- let e = at.value;
261
+ }, ut = () => {
262
+ let e = lt.value;
261
263
  if (!e || e.width === 0 || e.height === 0) return;
262
264
  let t = e.getContext("2d");
263
265
  if (!t) return;
@@ -272,33 +274,33 @@ var xe = ["aria-label"], Se = {
272
274
  t.clearRect(0, 0, e.width, e.height);
273
275
  let [n, r, i] = P(I.value, L.value, R.value), a = t.createLinearGradient(0, 0, e.width, 0);
274
276
  a.addColorStop(0, `rgba(${n},${r},${i},0)`), a.addColorStop(1, `rgba(${n},${r},${i},1)`), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height);
275
- }, st = () => {
276
- K(), ot(), S.alpha && q();
277
- }, J = null, ct = (e) => {
277
+ }, dt = () => {
278
+ K(), ut(), S.alpha && q();
279
+ }, J = null, ft = (e) => {
278
280
  e.width = e.offsetWidth, e.height = e.offsetHeight;
279
- }, lt = () => {
280
- let e = V.value, t = at.value;
281
- e && t && e.offsetWidth !== 0 && (ct(e), ct(t), S.alpha && H.value && ct(H.value), st());
282
- }, ut = !1, dt = () => {
283
- I.value = 0, L.value = 1, R.value = 1, z.value = 1, yt.value = "", X.value = !1, Z.value = !1, Q.value = !1, $.value = !1, Nt = void 0;
284
- }, ft = () => {
285
- ut = !0, J = new ResizeObserver(lt), V.value && J.observe(V.value), ht(S.modelValue), lt();
286
281
  }, pt = () => {
287
- ut = !1, J?.disconnect(), J = null, dt();
288
- }, mt = d(() => g({
289
- id: Ne,
282
+ let e = V.value, t = lt.value;
283
+ e && t && e.offsetWidth !== 0 && (ft(e), ft(t), S.alpha && H.value && ft(H.value), dt());
284
+ }, mt = !1, ht = () => {
285
+ I.value = 0, L.value = 1, R.value = 1, z.value = 1, Ct.value = "", X.value = !1, Z.value = !1, Q.value = !1, $.value = !1, Lt = void 0;
286
+ }, gt = () => {
287
+ mt = !0, J = new ResizeObserver(pt), V.value && J.observe(V.value), yt(S.modelValue), pt();
288
+ }, _t = () => {
289
+ mt = !1, J?.disconnect(), J = null, ht();
290
+ }, vt = d(() => g({
291
+ id: Ie,
290
292
  class: "bb-color-palette__panel",
291
- inert: Ve.value
292
- }, k.value ? {} : w.panel ?? {})), ht = (e) => {
293
+ inert: We.value
294
+ }, k.value ? {} : w.panel ?? {})), yt = (e) => {
293
295
  if (e) try {
294
- let [t, n, r, i] = $e(e), [a, o, s] = Qe(t, n, r);
296
+ let [t, n, r, i] = rt(e), [a, o, s] = nt(t, n, r);
295
297
  o > .01 && (I.value = a), L.value = o, R.value = s, z.value = i;
296
298
  } catch {}
297
299
  };
298
300
  x(() => S.modelValue, (e) => {
299
- ut && (e && e === B.value || (e ? ht(e) : (I.value = 0, L.value = 1, R.value = 1, z.value = 1), K(), S.alpha && q()));
301
+ mt && (e && e === B.value || (e ? yt(e) : (I.value = 0, L.value = 1, R.value = 1, z.value = 1), K(), S.alpha && q()));
300
302
  });
301
- let Y = () => C("update:modelValue", B.value), X = y(!1), gt = (e) => {
303
+ let Y = () => C("update:modelValue", B.value), X = y(!1), bt = (e) => {
302
304
  let t = U.value;
303
305
  if (!t) return {
304
306
  s: L.value,
@@ -309,19 +311,19 @@ var xe = ["aria-label"], Se = {
309
311
  s: Math.max(0, Math.min(1, (e.clientX - n.left) / n.width)),
310
312
  v: Math.max(0, Math.min(1, 1 - (e.clientY - n.top) / n.height))
311
313
  };
312
- }, _t = (e) => {
314
+ }, xt = (e) => {
313
315
  U.value?.setPointerCapture(e.pointerId), X.value = !0;
314
- let { s: t, v: n } = gt(e);
316
+ let { s: t, v: n } = bt(e);
315
317
  L.value = t, R.value = n, S.alpha && q(), Y();
316
- }, vt = (e) => {
318
+ }, St = (e) => {
317
319
  if (!X.value) return;
318
- let { s: t, v: n } = gt(e);
320
+ let { s: t, v: n } = bt(e);
319
321
  L.value = t, R.value = n, S.alpha && q(), Y();
320
- }, yt = y(""), bt = () => {
321
- yt.value = T("colorInput.mainCanvasSelectedColor", B.value).value;
322
- }, xt = (e) => {
323
- U.value?.releasePointerCapture(e.pointerId), X.value && bt(), X.value = !1;
324
- }, St = (e) => {
322
+ }, Ct = y(""), wt = () => {
323
+ Ct.value = T("colorInput.mainCanvasSelectedColor", B.value).value;
324
+ }, Tt = (e) => {
325
+ U.value?.releasePointerCapture(e.pointerId), X.value && wt(), X.value = !1;
326
+ }, Et = (e) => {
325
327
  let t = e.shiftKey ? .05 : .01;
326
328
  switch (e.key) {
327
329
  case "ArrowLeft":
@@ -338,19 +340,19 @@ var xe = ["aria-label"], Se = {
338
340
  break;
339
341
  default: return;
340
342
  }
341
- S.alpha && q(), Y(), bt(), e.preventDefault();
342
- }, Z = y(!1), Ct = (e) => {
343
+ S.alpha && q(), Y(), wt(), e.preventDefault();
344
+ }, Z = y(!1), Dt = (e) => {
343
345
  let t = W.value;
344
346
  if (!t) return I.value;
345
347
  let n = t.getBoundingClientRect();
346
348
  return Math.max(0, Math.min(360, (e.clientX - n.left) / n.width * 360));
347
- }, wt = (e) => {
348
- W.value?.setPointerCapture(e.pointerId), Z.value = !0, I.value = Ct(e), K(), S.alpha && q(), Y();
349
- }, Tt = (e) => {
350
- Z.value && (I.value = Ct(e), K(), S.alpha && q(), Y());
351
- }, Et = (e) => {
349
+ }, Ot = (e) => {
350
+ W.value?.setPointerCapture(e.pointerId), Z.value = !0, I.value = Dt(e), K(), S.alpha && q(), Y();
351
+ }, kt = (e) => {
352
+ Z.value && (I.value = Dt(e), K(), S.alpha && q(), Y());
353
+ }, At = (e) => {
352
354
  W.value?.releasePointerCapture(e.pointerId), Z.value = !1;
353
- }, Dt = (e) => {
355
+ }, jt = (e) => {
354
356
  let t = e.shiftKey ? 10 : 1;
355
357
  switch (e.key) {
356
358
  case "ArrowLeft":
@@ -362,18 +364,18 @@ var xe = ["aria-label"], Se = {
362
364
  default: return;
363
365
  }
364
366
  K(), S.alpha && q(), Y(), e.preventDefault();
365
- }, Q = y(!1), Ot = (e) => {
367
+ }, Q = y(!1), Mt = (e) => {
366
368
  let t = G.value;
367
369
  if (!t) return z.value;
368
370
  let n = t.getBoundingClientRect();
369
371
  return Math.max(0, Math.min(1, (e.clientX - n.left) / n.width));
370
- }, kt = (e) => {
371
- G.value?.setPointerCapture(e.pointerId), Q.value = !0, z.value = Ot(e), Y();
372
- }, At = (e) => {
373
- Q.value && (z.value = Ot(e), Y());
374
- }, jt = (e) => {
372
+ }, Nt = (e) => {
373
+ G.value?.setPointerCapture(e.pointerId), Q.value = !0, z.value = Mt(e), Y();
374
+ }, Pt = (e) => {
375
+ Q.value && (z.value = Mt(e), Y());
376
+ }, Ft = (e) => {
375
377
  G.value?.releasePointerCapture(e.pointerId), Q.value = !1;
376
- }, Mt = (e) => {
378
+ }, It = (e) => {
377
379
  let t = e.shiftKey ? .05 : .01;
378
380
  switch (e.key) {
379
381
  case "ArrowLeft":
@@ -385,24 +387,24 @@ var xe = ["aria-label"], Se = {
385
387
  default: return;
386
388
  }
387
389
  Y(), e.preventDefault();
388
- }, Nt, Pt = () => Nt ??= typeof window < "u" && "EyeDropper" in window, $ = y(!1), Ft = async () => {
389
- if (Pt()) try {
390
+ }, Lt, Rt = () => Lt ??= typeof window < "u" && "EyeDropper" in window, $ = y(!1), zt = async () => {
391
+ if (Rt()) try {
390
392
  $.value = !0;
391
393
  let e = await new window.EyeDropper().open();
392
- Lt(e.sRGBHex);
394
+ Vt(e.sRGBHex);
393
395
  } catch {} finally {
394
396
  $.value = !1;
395
397
  }
396
- }, It = (e) => B.value.slice(0, 7).toLowerCase() === e.slice(0, 7).toLowerCase(), Lt = (e) => {
397
- let [t, n, r, i] = $e(e), [a, o, s] = Qe(t, n, r);
398
+ }, Bt = (e) => B.value.slice(0, 7).toLowerCase() === e.slice(0, 7).toLowerCase(), Vt = (e) => {
399
+ let [t, n, r, i] = rt(e), [a, o, s] = nt(t, n, r);
398
400
  o > .01 && (I.value = a), L.value = o, R.value = s, z.value = i, K(), S.alpha && q(), Y();
399
401
  };
400
- return me(() => {
402
+ return _e(() => {
401
403
  O.value = !1;
402
- }), (t, n) => (v(), p(u, null, [
403
- Le.value ? f("", !0) : ge(t.$slots, "activator", fe(le({
404
- props: Ze.value,
405
- anchorProps: { ref: ze },
404
+ }), (r, i) => (v(), p(u, null, [
405
+ Be.value ? f("", !0) : ye(r.$slots, "activator", he(fe({
406
+ props: tt.value,
407
+ anchorProps: { ref: He },
406
408
  open: O.value,
407
409
  value: l.modelValue,
408
410
  disabled: l.disabled
@@ -410,9 +412,9 @@ var xe = ["aria-label"], Se = {
410
412
  m("span", {
411
413
  id: M,
412
414
  hidden: ""
413
- }, _e(Ye.value), 1),
414
- h(b(Pe), null, {
415
- default: ye(() => [
415
+ }, be($e.value), 1),
416
+ h(b(Le), null, {
417
+ default: Se(() => [
416
418
  m("div", {
417
419
  ref_key: "canvasWrapRef",
418
420
  ref: U,
@@ -421,13 +423,13 @@ var xe = ["aria-label"], Se = {
421
423
  "data-bb-no-drag": "",
422
424
  role: "application",
423
425
  tabindex: "0",
424
- onKeydown: St,
425
- onPointercancel: xt,
426
- onPointerdown: _t,
427
- onPointermove: vt,
428
- onPointerup: xt,
429
- onVnodeBeforeUnmount: pt,
430
- onVnodeMounted: ft
426
+ onKeydown: Et,
427
+ onPointercancel: Tt,
428
+ onPointerdown: xt,
429
+ onPointermove: St,
430
+ onPointerup: Tt,
431
+ onVnodeBeforeUnmount: _t,
432
+ onVnodeMounted: gt
431
433
  }, [m("canvas", {
432
434
  ref_key: "mainCanvasRef",
433
435
  ref: V,
@@ -440,14 +442,14 @@ var xe = ["aria-label"], Se = {
440
442
  left: `${L.value * 100}%`,
441
443
  top: `${(1 - R.value) * 100}%`
442
444
  })
443
- }, null, 4)], 40, xe),
444
- m("div", Se, _e(yt.value), 1),
445
- m("div", Ce, [
446
- m("div", we, [m("div", {
447
- class: de(["bb-color-palette__preview", { "bb-color-palette__preview--alpha": l.alpha }]),
448
- style: _({ "--picker-preview-color": nt.value })
445
+ }, null, 4)], 40, we),
446
+ m("div", Te, be(Ct.value), 1),
447
+ m("div", Ee, [
448
+ m("div", De, [m("div", {
449
+ class: me(["bb-color-palette__preview", { "bb-color-palette__preview--alpha": l.alpha }]),
450
+ style: _({ "--picker-preview-color": ot.value })
449
451
  }, null, 6)]),
450
- m("div", Te, [m("div", {
452
+ m("div", Oe, [m("div", {
451
453
  ref_key: "hueWrapRef",
452
454
  ref: W,
453
455
  "aria-label": b(T)("colorInput.hueCanvasDesc").value,
@@ -458,21 +460,21 @@ var xe = ["aria-label"], Se = {
458
460
  "data-bb-no-drag": "",
459
461
  role: "slider",
460
462
  tabindex: "0",
461
- onKeydown: Dt,
462
- onPointercancel: Et,
463
- onPointerdown: wt,
464
- onPointermove: Tt,
465
- onPointerup: Et
463
+ onKeydown: jt,
464
+ onPointercancel: At,
465
+ onPointerdown: Ot,
466
+ onPointermove: kt,
467
+ onPointerup: At
466
468
  }, [m("canvas", {
467
469
  ref_key: "hueCanvasRef",
468
- ref: at,
470
+ ref: lt,
469
471
  "aria-hidden": "true",
470
472
  class: "bb-color-palette__slider-track"
471
473
  }, null, 512), m("div", {
472
474
  "aria-hidden": "true",
473
475
  class: "bb-color-palette__slider-thumb",
474
476
  style: _({ left: `${I.value / 360 * 100}%` })
475
- }, null, 4)], 40, Ee), l.alpha ? (v(), p("div", {
477
+ }, null, 4)], 40, ke), l.alpha ? (v(), p("div", {
476
478
  key: 0,
477
479
  ref_key: "alphaWrapRef",
478
480
  ref: G,
@@ -484,11 +486,11 @@ var xe = ["aria-label"], Se = {
484
486
  "data-bb-no-drag": "",
485
487
  role: "slider",
486
488
  tabindex: "0",
487
- onKeydown: Mt,
488
- onPointercancel: jt,
489
- onPointerdown: kt,
490
- onPointermove: At,
491
- onPointerup: jt
489
+ onKeydown: It,
490
+ onPointercancel: Ft,
491
+ onPointerdown: Nt,
492
+ onPointermove: Pt,
493
+ onPointerup: Ft
492
494
  }, [m("canvas", {
493
495
  ref_key: "alphaCanvasRef",
494
496
  ref: H,
@@ -498,78 +500,74 @@ var xe = ["aria-label"], Se = {
498
500
  "aria-hidden": "true",
499
501
  class: "bb-color-palette__slider-thumb",
500
502
  style: _({ left: `${z.value * 100}%` })
501
- }, null, 4)], 40, De)) : f("", !0)]),
502
- Pt() && l.eyeDropper ? (v(), p("button", {
503
+ }, null, 4)], 40, Ae)) : f("", !0)]),
504
+ Rt() && l.eyeDropper ? (v(), p("button", {
503
505
  key: 0,
504
506
  "aria-label": b(T)("colorInput.eyeDropper").value,
505
507
  class: "bb-color-palette__eyedropper",
506
508
  disabled: $.value || void 0,
507
509
  type: "button",
508
- onClick: Ft
509
- }, [...n[9] ||= [m("svg", {
510
- "aria-hidden": "true",
511
- fill: "currentColor",
512
- height: "16",
513
- viewBox: "0 0 24 24",
514
- width: "16",
515
- xmlns: "http://www.w3.org/2000/svg"
516
- }, [m("path", { d: "M20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L13.71,3.71L12.29,5.12L13.41,6.24L3,16.59V21H7.41L17.76,10.59L18.88,11.71L20.29,10.29L18.88,8.88L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63M6.58,19H5V17.42L13.29,9.12L14.88,10.71L6.58,19Z" })], -1)]], 8, Oe)) : f("", !0)
510
+ onClick: zt
511
+ }, [h(e, {
512
+ icon: b(t),
513
+ size: "16"
514
+ }, null, 8, ["icon"])], 8, je)) : f("", !0)
517
515
  ]),
518
- rt.value ? (v(), p("div", ke, [(v(!0), p(u, null, he(it.value, (e, t) => (v(), p("div", {
516
+ st.value ? (v(), p("div", Me, [(v(!0), p(u, null, ve(ct.value, (e, t) => (v(), p("div", {
519
517
  key: t,
520
518
  class: "bb-color-palette__swatch-group"
521
- }, [(v(!0), p(u, null, he(e, (e) => (v(), p("button", g({
519
+ }, [(v(!0), p(u, null, ve(e, (e) => (v(), p("button", g({
522
520
  key: e,
523
521
  "aria-label": e,
524
- "aria-pressed": It(e),
525
- class: ["bb-color-palette__swatch", { "bb-color-palette__swatch--active": It(e) }],
522
+ "aria-pressed": Bt(e),
523
+ class: ["bb-color-palette__swatch", { "bb-color-palette__swatch--active": Bt(e) }],
526
524
  style: { background: e },
527
525
  type: "button",
528
- onClick: (t) => Lt(e)
529
- }, { ref_for: !0 }, b(w).part?.("swatch", { selected: It(e) })), null, 16, Ae))), 128))]))), 128))])) : f("", !0)
526
+ onClick: (t) => Vt(e)
527
+ }, { ref_for: !0 }, b(w).part?.("swatch", { selected: Bt(e) })), null, 16, Ne))), 128))]))), 128))])) : f("", !0)
530
528
  ]),
531
529
  _: 1
532
530
  }),
533
- k.value ? (v(), se(ee, g({
531
+ k.value ? (v(), ue(ne, g({
534
532
  key: 1,
535
533
  modelValue: O.value,
536
- "onUpdate:modelValue": n[0] ||= (e) => O.value = e,
534
+ "onUpdate:modelValue": i[0] ||= (e) => O.value = e,
537
535
  class: "bb-color-palette__sheet",
538
536
  pt: b(w).forward({
539
537
  panel: "root",
540
538
  sheet: "root"
541
- }, b(te).states, () => l.offCanvasProps?.pt)
542
- }, g(qe.value, b(e)(b(w).forwardAttrs)), {
543
- onHidden: Je,
544
- onHide: n[1] ||= (e) => C("hide"),
545
- onShow: n[2] ||= (e) => C("show"),
546
- onShown: n[3] ||= (e) => C("shown")
539
+ }, b(re).states, () => l.offCanvasProps?.pt)
540
+ }, g(Ze.value, b(n)(b(w).forwardAttrs)), {
541
+ onHidden: Qe,
542
+ onHide: i[1] ||= (e) => C("hide"),
543
+ onShow: i[2] ||= (e) => C("show"),
544
+ onShown: i[3] ||= (e) => C("shown")
547
545
  }), {
548
- default: ye(() => [m("div", fe(le(mt.value)), [h(b(Fe))], 16)]),
546
+ default: Se(() => [m("div", he(fe(vt.value)), [h(b(Re))], 16)]),
549
547
  _: 1
550
- }, 16, ["modelValue", "pt"])) : (v(), se(c, g({
548
+ }, 16, ["modelValue", "pt"])) : (v(), ue(ie, g({
551
549
  key: 2,
552
550
  modelValue: O.value,
553
- "onUpdate:modelValue": n[4] ||= (e) => O.value = e,
554
- anchor: Be.value,
551
+ "onUpdate:modelValue": i[4] ||= (e) => O.value = e,
552
+ anchor: Ue.value,
555
553
  "aria-label": b(T)("colorInput.dialogLabel").value,
556
554
  boundary: l.boundary,
557
- "bubble-attrs": mt.value,
555
+ "bubble-attrs": vt.value,
558
556
  class: "bb-color-palette",
559
557
  dialog: "",
560
558
  "disable-flip": l.disableFlip,
561
559
  eager: l.eager,
562
560
  "hide-arrow": "",
563
- offset: l.offset,
561
+ offset: l.offset ?? b(Pe)() ?? 4,
564
562
  padding: l.padding,
565
563
  placement: l.placement,
566
564
  "transition-duration": l.transitionDuration,
567
- onHidden: n[5] ||= (e) => C("hidden"),
568
- onHide: n[6] ||= (e) => C("hide"),
569
- onShow: n[7] ||= (e) => C("show"),
570
- onShown: n[8] ||= (e) => C("shown")
565
+ onHidden: i[5] ||= (e) => C("hidden"),
566
+ onHide: i[6] ||= (e) => C("hide"),
567
+ onShow: i[7] ||= (e) => C("show"),
568
+ onShown: i[8] ||= (e) => C("shown")
571
569
  }, b(w).rootAttrs), {
572
- default: ye(() => [h(b(Fe))]),
570
+ default: Se(() => [h(b(Re))]),
573
571
  _: 1
574
572
  }, 16, [
575
573
  "modelValue",
@@ -60,8 +60,8 @@ export type BbColorPaletteProps = {
60
60
  * viewports instead of a floating popover; on desktop it stays a popover.
61
61
  * Mirrors the adaptive behaviour of `BbPopover`/`BbDropdown`/`BbDatePicker`.
62
62
  *
63
- * When unset, falls back to the global `config.adaptive`.
64
- * @defaultValue `config.adaptive` (`true`)
63
+ * When unset, falls back to the global `all.adaptive`.
64
+ * @defaultValue `all.adaptive` (`true`)
65
65
  */
66
66
  adaptive?: boolean;
67
67
  /**
@@ -0,0 +1,12 @@
1
+ import { BbConfigScopeProps, BbConfigScopeSlots } from './types';
2
+ export type { BbConfigScopeProps, BbConfigScopeSlots };
3
+ type __VLS_Slots = BbConfigScopeSlots;
4
+ declare const __VLS_base: import('vue').DefineComponent<BbConfigScopeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbConfigScopeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
8
+ type __VLS_WithSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };