bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.72

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 (359) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +6 -1
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +1 -1
  6. package/dist/ai/BbButton.md +32 -27
  7. package/dist/ai/BbCalendar.md +1 -0
  8. package/dist/ai/BbCarousel.md +6 -4
  9. package/dist/ai/BbCheckboxGroup.md +2 -1
  10. package/dist/ai/BbColorInput.md +1 -1
  11. package/dist/ai/BbConfirm.md +65 -81
  12. package/dist/ai/BbConfirmPortal.md +2 -2
  13. package/dist/ai/BbDatePicker.md +1 -6
  14. package/dist/ai/BbDatePickerInput.md +2 -2
  15. package/dist/ai/BbDialog.md +230 -164
  16. package/dist/ai/BbDropdown.md +52 -16
  17. package/dist/ai/BbDropdownButton.md +11 -12
  18. package/dist/ai/BbDropzone.md +12 -8
  19. package/dist/ai/BbForm.md +93 -7
  20. package/dist/ai/BbHost.md +2 -2
  21. package/dist/ai/BbHoverCardPortal.md +1 -1
  22. package/dist/ai/BbIcon.md +1 -1
  23. package/dist/ai/BbIndicator.md +17 -15
  24. package/dist/ai/BbNumberInput.md +7 -5
  25. package/dist/ai/BbOffCanvas.md +29 -7
  26. package/dist/ai/BbPagination.md +2 -2
  27. package/dist/ai/BbPopover.md +15 -9
  28. package/dist/ai/BbPopoverPortal.md +1 -1
  29. package/dist/ai/BbRadioGroup.md +29 -7
  30. package/dist/ai/BbRating.md +8 -7
  31. package/dist/ai/BbSelect.md +29 -8
  32. package/dist/ai/BbSelectPopover.md +9 -3
  33. package/dist/ai/BbSlider.md +12 -8
  34. package/dist/ai/BbSpinner.md +3 -2
  35. package/dist/ai/BbSwitch.md +3 -3
  36. package/dist/ai/BbSwitchGroup.md +7 -6
  37. package/dist/ai/BbTable.md +205 -82
  38. package/dist/ai/BbTabs.md +29 -4
  39. package/dist/ai/BbTag.md +1 -1
  40. package/dist/ai/BbTextInput.md +7 -5
  41. package/dist/ai/BbTextarea.md +4 -3
  42. package/dist/ai/BbTimePickerInput.md +1 -1
  43. package/dist/ai/BbToast.md +3 -2
  44. package/dist/ai/BbTooltip.md +22 -17
  45. package/dist/ai/BbTree.md +49 -24
  46. package/dist/ai/CommonFieldInput.md +1 -1
  47. package/dist/ai/changelog.json +238 -9
  48. package/dist/ai/components.json +52 -51
  49. package/dist/ai/composables/useBbDialog.md +5 -8
  50. package/dist/ai/composables/useBbForm.md +3 -0
  51. package/dist/ai/composables/useConfirm.md +65 -56
  52. package/dist/ai/composables/useToast.md +2 -1
  53. package/dist/ai/guides/agent-contract.md +3 -3
  54. package/dist/ai/guides/app-layout.md +3 -2
  55. package/dist/ai/guides/eslint-rules.md +3 -1
  56. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  57. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  58. package/dist/ai/guides/icons-policy.md +7 -5
  59. package/dist/ai/guides/inertia-helpers.md +35 -30
  60. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  61. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  62. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  63. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  64. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  65. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  67. package/dist/ai/guides/migration/components/use-confirm.md +69 -26
  68. package/dist/ai/guides/migration/v2-to-v3.md +52 -10
  69. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  70. package/dist/ai/guides/options-items-playbook.md +4 -3
  71. package/dist/ai/guides/passthrough.md +2 -2
  72. package/dist/ai/helpers/inertia/manifest.json +28 -15
  73. package/dist/ai/helpers/inertia/messages.ts +3 -3
  74. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  75. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  76. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  77. package/dist/ai/index.md +3 -3
  78. package/dist/ai/manifest/common.json +3 -3
  79. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  80. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  81. package/dist/ai/manifest/components/BbBadge.json +8 -7
  82. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  83. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  84. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  85. package/dist/ai/manifest/components/BbButton.json +5 -6
  86. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  87. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  88. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  89. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  90. package/dist/ai/manifest/components/BbColorInput.json +1 -1
  91. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  92. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  93. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  94. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  95. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  96. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  97. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  98. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  99. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  100. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  101. package/dist/ai/manifest/components/BbDialog.json +6 -1
  102. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  103. package/dist/ai/manifest/components/BbDropdown.json +9 -8
  104. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  105. package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
  106. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  107. package/dist/ai/manifest/components/BbForm.json +3 -1
  108. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  109. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  110. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  111. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  112. package/dist/ai/manifest/components/BbPagination.json +1 -1
  113. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  114. package/dist/ai/manifest/components/BbRating.json +2 -2
  115. package/dist/ai/manifest/components/BbSelect.json +16 -15
  116. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  117. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  118. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  119. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  120. package/dist/ai/manifest/components/BbTable.json +15 -14
  121. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  122. package/dist/ai/manifest/components/BbTabs.json +3 -3
  123. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  124. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  125. package/dist/ai/manifest/components/BbTag.json +1 -1
  126. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  127. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  128. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  129. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  130. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  131. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  132. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  133. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  135. package/dist/ai/manifest/components/BbTree.json +2 -2
  136. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  137. package/dist/ai/manifest/index.json +4 -4
  138. package/dist/ai/manifest/meta.json +5 -1
  139. package/dist/ai/manifest/types.advanced.json +9 -9
  140. package/dist/ai/manifest/types.api.json +6 -5
  141. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  142. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  143. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  144. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  145. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  146. package/dist/ai/recipes/inertia/record-form.md +12 -8
  147. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  148. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  149. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  150. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  151. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  152. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  153. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  154. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  155. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  156. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  157. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  158. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  159. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  160. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  161. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/vue/onboarding.md +5 -4
  165. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/vue/record-form.md +14 -10
  167. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  168. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  169. package/dist/ai/recipes/vue/upload-center.md +17 -9
  170. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  171. package/dist/ai/source/BbAccordion.md +50 -16
  172. package/dist/ai/source/BbBadge.md +420 -26
  173. package/dist/ai/source/BbBadgeButton.md +378 -12
  174. package/dist/ai/source/BbButton.md +205 -55
  175. package/dist/ai/source/BbCalendar.md +5 -0
  176. package/dist/ai/source/BbCheckboxGroup.md +38 -13
  177. package/dist/ai/source/BbConfigScope.md +19 -2
  178. package/dist/ai/source/BbConfirm.md +74 -80
  179. package/dist/ai/source/BbConfirmPortal.md +6 -6
  180. package/dist/ai/source/BbDatePicker.md +9 -2
  181. package/dist/ai/source/BbDatePickerInput.md +3 -1
  182. package/dist/ai/source/BbDialog.md +53 -2
  183. package/dist/ai/source/BbDropdown.md +350 -98
  184. package/dist/ai/source/BbDropdownButton.md +20 -12
  185. package/dist/ai/source/BbDropdownGroup.md +136 -58
  186. package/dist/ai/source/BbForm.md +144 -10
  187. package/dist/ai/source/BbOffCanvas.md +53 -2
  188. package/dist/ai/source/BbPagination.md +1 -1
  189. package/dist/ai/source/BbRadioGroup.md +72 -10
  190. package/dist/ai/source/BbRating.md +30 -22
  191. package/dist/ai/source/BbSelect.md +11 -1
  192. package/dist/ai/source/BbSelectPopover.md +105 -34
  193. package/dist/ai/source/BbSwitch.md +23 -8
  194. package/dist/ai/source/BbSwitchGroup.md +67 -21
  195. package/dist/ai/source/BbTable.md +359 -48
  196. package/dist/ai/source/BbTabs.md +6 -0
  197. package/dist/ai/source/BbTabsList.md +10 -0
  198. package/dist/ai/source/BbTabsPanels.md +6 -0
  199. package/dist/ai/source/BbTabsRoot.md +6 -0
  200. package/dist/ai/source/BbTree.md +14 -4
  201. package/dist/ai/source/CommonFieldInput.md +2 -1
  202. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  203. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  204. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  205. package/dist/components/BbAccordion/types.d.ts +21 -7
  206. package/dist/components/BbAccordion/types.js +1 -1
  207. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  208. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  209. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  210. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  211. package/dist/components/BbBadge/types.d.ts +15 -12
  212. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  213. package/dist/components/BbButton/types.d.ts +7 -6
  214. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  215. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  216. package/dist/components/BbCalendar/types.d.ts +5 -0
  217. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  218. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  219. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  220. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  221. package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
  222. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  223. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  224. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  225. package/dist/components/BbConfirm/types.d.ts +5 -5
  226. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  227. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  228. package/dist/components/BbDatePicker/types.d.ts +5 -0
  229. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  230. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  231. package/dist/components/BbDatePickerInput/types.d.ts +2 -1
  232. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  233. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  234. package/dist/components/BbDialog/overlayActions.js +94 -0
  235. package/dist/components/BbDialog/types.d.ts +24 -0
  236. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  237. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
  238. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  239. package/dist/components/BbDropdown/normalizeGroups.js +58 -48
  240. package/dist/components/BbDropdown/types.d.ts +107 -48
  241. package/dist/components/BbDropdown/types.js +2 -2
  242. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
  243. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  244. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  245. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
  246. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  247. package/dist/components/BbForm/recognizeValidation.js +55 -0
  248. package/dist/components/BbForm/validationError.d.ts +10 -0
  249. package/dist/components/BbForm/validationError.js +11 -0
  250. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  251. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  252. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  253. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  254. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  255. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  256. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  257. package/dist/components/BbRadioGroup/types.d.ts +9 -3
  258. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
  259. package/dist/components/BbRating/types.d.ts +3 -2
  260. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
  261. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  262. package/dist/components/BbSelect/types.d.ts +8 -0
  263. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  264. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  265. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  266. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  267. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  268. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  269. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  270. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  271. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  272. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  273. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  274. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  275. package/dist/components/BbTable/types.d.ts +32 -17
  276. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  277. package/dist/components/BbTabs/types.d.ts +6 -0
  278. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  279. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  280. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  281. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  282. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  284. package/dist/components/BbTree/types.d.ts +8 -2
  285. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  286. package/dist/composables/formSubmitLock.js +15 -8
  287. package/dist/composables/overlayRegistry.d.ts +5 -0
  288. package/dist/composables/overlayRegistry.js +154 -148
  289. package/dist/composables/useBbDropdown.d.ts +8 -0
  290. package/dist/composables/useBbDropdown.js +3 -1
  291. package/dist/composables/useBbTabs.js +138 -138
  292. package/dist/composables/useConfirm.d.ts +63 -52
  293. package/dist/composables/useConfirm.js +22 -18
  294. package/dist/deprecation/ai-deprecations.json.js +1 -1
  295. package/dist/directives/bbDropdown.d.ts +7 -7
  296. package/dist/directives/bbDropdown.js +21 -14
  297. package/dist/directives/bbTooltip.d.ts +3 -3
  298. package/dist/directives/createPopoverDirective.js +57 -35
  299. package/dist/i18n/locales/ar.json +5 -1
  300. package/dist/i18n/locales/cs.json +5 -1
  301. package/dist/i18n/locales/da.json +5 -1
  302. package/dist/i18n/locales/de-CH.json +5 -1
  303. package/dist/i18n/locales/de.json +5 -1
  304. package/dist/i18n/locales/el.json +5 -1
  305. package/dist/i18n/locales/en-GB.json +5 -1
  306. package/dist/i18n/locales/en.json +5 -1
  307. package/dist/i18n/locales/es-MX.json +5 -1
  308. package/dist/i18n/locales/es.json +5 -1
  309. package/dist/i18n/locales/fa.json +5 -1
  310. package/dist/i18n/locales/fi.json +5 -1
  311. package/dist/i18n/locales/fr.json +5 -1
  312. package/dist/i18n/locales/he.json +5 -1
  313. package/dist/i18n/locales/hu.json +5 -1
  314. package/dist/i18n/locales/it.json +5 -1
  315. package/dist/i18n/locales/ja.json +5 -1
  316. package/dist/i18n/locales/ko.json +5 -1
  317. package/dist/i18n/locales/nb.json +5 -1
  318. package/dist/i18n/locales/nl.json +5 -1
  319. package/dist/i18n/locales/pl.json +5 -1
  320. package/dist/i18n/locales/pt-BR.json +5 -1
  321. package/dist/i18n/locales/pt-PT.json +5 -1
  322. package/dist/i18n/locales/ro.json +5 -1
  323. package/dist/i18n/locales/ru.json +5 -1
  324. package/dist/i18n/locales/sv.json +5 -1
  325. package/dist/i18n/locales/tr.json +5 -1
  326. package/dist/i18n/locales/uk.json +5 -1
  327. package/dist/i18n/locales/zh-CN.json +5 -1
  328. package/dist/i18n/locales/zh-HK.json +5 -1
  329. package/dist/i18n/locales/zh-TW.json +5 -1
  330. package/dist/index.d.ts +2 -0
  331. package/dist/index.js +4 -3
  332. package/dist/llms-full.txt +1984 -1145
  333. package/dist/llms-medium.txt +21 -18
  334. package/dist/llms.txt +2 -2
  335. package/dist/locale-blueprint.json +5 -1
  336. package/dist/plugin.js +17 -40
  337. package/dist/pluginCore.js +30 -0
  338. package/dist/styles.css +2 -2
  339. package/dist/types/ActionButton.d.ts +26 -5
  340. package/dist/types/ActionButton.js +11 -0
  341. package/dist/types/ConfigDefaults.d.ts +34 -3
  342. package/dist/types/ConfigDefaults.js +14 -8
  343. package/dist/types/ItemPath.d.ts +33 -4
  344. package/dist/types/ptComponentMap.d.ts +1 -1
  345. package/dist/utilities/functions/clickCount.js +14 -0
  346. package/dist/utils/versionCheck.js +1 -1
  347. package/llms.txt +2 -2
  348. package/package.json +11 -1
  349. package/scripts/README.md +31 -27
  350. package/scripts/lib/adoption-checklist.json +2 -2
  351. package/scripts/lib/eslint-disable.mjs +5 -3
  352. package/scripts/lib/eslint-plugin.d.ts +2 -0
  353. package/scripts/lib/eslint-plugin.mjs +213 -1
  354. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  355. package/scripts/lib/release-results.mjs +32 -1
  356. package/scripts/lib/renamed-item-field.mjs +4 -1
  357. package/scripts/lib/tab-links.mjs +4 -1
  358. package/scripts/lib/tree-default-expandable.mjs +53 -0
  359. package/scripts/lib/validate-bb-markup.mjs +536 -52
@@ -0,0 +1,6 @@
1
+ import { inject as e, provide as t } from "vue";
2
+ // src/components/BbDropdown/dropdownHandle.ts
3
+ var n = Symbol("bb-dropdown-handle"), r = (e) => t(n, e), i = (r) => {
4
+ e(n, null)?.(r), t(n, null);
5
+ };
6
+ export { r as provideDropdownHandle, i as registerDropdownHandle };
@@ -1,10 +1,17 @@
1
1
  import { slotKey as e } from "../../utilities/functions/slotKey.js";
2
2
  import { hash as t } from "../../utilities/functions/hash.js";
3
3
  import { get as n } from "../../utilities/functions/get.js";
4
- import { groupItemsAsArray as r, isGroup as i, isSelectableGroup as a, selectablePredicateOf as o } from "./types.js";
4
+ import { groupItemsAsArray as r, isGroup as i, isPrimitiveRow as a, isSelectableGroup as o, selectablePredicateOf as s } from "./types.js";
5
5
  // src/components/BbDropdown/normalizeGroups.ts
6
- var s = (e) => e.some((e) => !!e.searchable && !!e.id), c = (e) => Array.isArray(e) ? e.some(c) : i(e) ? e.hidden ? !1 : typeof e.items == "function" || r(e.items).some((e) => c(e)) : e.hidden ? !1 : Array.isArray(e.items) && e.items.length ? e.items.some(c) : !0, l = (e = []) => e.some(c), u = (e) => e.filter((e) => c(e)), d = (e = []) => {
7
- let t = [], n = [], s = () => {
6
+ var c = (e) => e.some((e) => !!e.searchable && !!e.id), l = (e) => a(e) ? !0 : Array.isArray(e) ? e.some(l) : i(e) ? e.hidden ? !1 : typeof e.items == "function" || r(e.items).some((e) => l(e)) : e.hidden ? !1 : Array.isArray(e.items) && e.items.length ? e.items.some(l) : !0, u = (e = []) => e.some(l);
7
+ function d(e) {
8
+ return a(e) ? {
9
+ value: e,
10
+ label: String(e)
11
+ } : e;
12
+ }
13
+ var f = (e) => e.map(d).filter((e) => l(e)), p = (e = []) => {
14
+ let t = [], n = [], a = () => {
8
15
  n.length && (t.push({
9
16
  selectable: !1,
10
17
  multiple: !1,
@@ -13,48 +20,51 @@ var s = (e) => e.some((e) => !!e.searchable && !!e.id), c = (e) => Array.isArray
13
20
  divider: !1
14
21
  }), n = []);
15
22
  };
16
- for (let l of e) if (i(l)) {
17
- if (s(), l.hidden) continue;
18
- let e = u(r(l.items).flat());
19
- if (!e.length) continue;
20
- let n = a(l) && l.id != null && l.id !== "", i = o(l), c = i ? e.map((e) => e.fetched || e.placeholder || e.disabled || i(e) ? e : {
21
- ...e,
22
- disabled: !0
23
- }) : e;
24
- t.push({
25
- id: l.id,
26
- label: l.label,
27
- hideLabel: l.hideLabel,
28
- selectable: n,
29
- multiple: l.multiple ?? !1,
30
- clearable: l.clearable,
31
- selected: [],
32
- items: c,
33
- "prepend:icon": l["prepend:icon"],
34
- "append:icon": l["append:icon"],
35
- variant: l.variant,
36
- onClick: l.onClick,
37
- searchable: l.searchable,
38
- searchPlaceholder: l.searchPlaceholder,
39
- groupBy: l.groupBy,
40
- filterBy: l.filterBy,
41
- maxHeight: l.maxHeight,
42
- meta: l.meta,
43
- divider: !1
44
- });
45
- } else if (Array.isArray(l)) {
46
- s();
47
- let e = u(l);
48
- e.length && t.push({
49
- selectable: !1,
50
- multiple: !1,
51
- selected: [],
52
- items: e,
53
- divider: t.length > 0
54
- });
55
- } else c(l) && n.push(l);
56
- return s(), p(t);
57
- }, f = (e) => e.value !== void 0, p = (n) => {
23
+ for (let c of e) {
24
+ let e = d(c);
25
+ if (i(e)) {
26
+ if (a(), e.hidden) continue;
27
+ let n = f(r(e.items).flat());
28
+ if (!n.length) continue;
29
+ let i = o(e) && e.id != null && e.id !== "", c = s(e), l = c ? n.map((e) => e.fetched || e.placeholder || e.disabled || c(e) ? e : {
30
+ ...e,
31
+ disabled: !0
32
+ }) : n;
33
+ t.push({
34
+ id: e.id,
35
+ label: e.label,
36
+ hideLabel: e.hideLabel,
37
+ selectable: i,
38
+ multiple: e.multiple ?? !1,
39
+ clearable: e.clearable,
40
+ selected: [],
41
+ items: l,
42
+ "prepend:icon": e["prepend:icon"],
43
+ "append:icon": e["append:icon"],
44
+ variant: e.variant,
45
+ onClick: e.onClick,
46
+ searchable: e.searchable,
47
+ searchPlaceholder: e.searchPlaceholder,
48
+ groupBy: e.groupBy,
49
+ filterBy: e.filterBy,
50
+ maxHeight: e.maxHeight,
51
+ meta: e.meta,
52
+ divider: !1
53
+ });
54
+ } else if (Array.isArray(e)) {
55
+ a();
56
+ let n = f(e);
57
+ n.length && t.push({
58
+ selectable: !1,
59
+ multiple: !1,
60
+ selected: [],
61
+ items: n,
62
+ divider: t.length > 0
63
+ });
64
+ } else l(e) && n.push(e);
65
+ }
66
+ return a(), h(t);
67
+ }, m = (e) => e.value !== void 0, h = (n) => {
58
68
  let r = /* @__PURE__ */ new Set(), i = (e) => {
59
69
  let t = e || "row";
60
70
  for (let n = 2; r.has(t); n++) t = `${e || "row"}-${n}`;
@@ -67,7 +77,7 @@ var s = (e) => e.some((e) => !!e.searchable && !!e.id), c = (e) => Array.isArray
67
77
  return n.map((n) => ({
68
78
  ...n,
69
79
  items: n.items.map((r) => {
70
- if (r.rowKey != null || f(r)) {
80
+ if (r.rowKey != null || m(r)) {
71
81
  let e = r.rowKey ?? t(r.value);
72
82
  return {
73
83
  ...r,
@@ -85,9 +95,9 @@ var s = (e) => e.some((e) => !!e.searchable && !!e.id), c = (e) => Array.isArray
85
95
  };
86
96
  })
87
97
  }));
88
- }, m = (e, t) => {
98
+ }, g = (e, t) => {
89
99
  if (e == null || t == null) return;
90
100
  let r = typeof e == "function" ? e(t) : n(t, e);
91
101
  return r == null || r === "" ? void 0 : String(r);
92
102
  };
93
- export { f as hasRowValue, l as hasVisibleRow, s as levelHasSearch, d as normalizeGroups, m as sectionTitle };
103
+ export { m as hasRowValue, u as hasVisibleRow, c as levelHasSearch, p as normalizeGroups, g as sectionTitle };
@@ -84,7 +84,7 @@ export type BbDropdownItemProps<T = any> = ItemProps<T, DropdownItemFields>;
84
84
  * discriminates `group`/`selectable`/`multiple` a few lines below.
85
85
  */
86
86
  type SubmenuExclusive = {
87
- items: Item[];
87
+ items: ItemEntry[];
88
88
  /** A submenu row opens its submenu; it cannot also run an action. */
89
89
  onClick?: never;
90
90
  /** A submenu row opens its submenu; it cannot also navigate. */
@@ -95,6 +95,8 @@ type SubmenuExclusive = {
95
95
  items?: undefined;
96
96
  };
97
97
  export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 'text'> & SubmenuExclusive & DropdownEntryBase & {
98
+ /** Rows have no search box (a group has); declared so a group's `searchable` discriminates. */
99
+ searchable?: never;
98
100
  /** The row's text. */
99
101
  label: string;
100
102
  /**
@@ -155,27 +157,32 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
155
157
  * when its latest load FAILED (`'failed'`: the footer under whatever rows a
156
158
  * `stash` keeps listed). Rendered as a non-interactive row that
157
159
  * shows `label` or, when provided, the dropdown's `loading` / `empty` slot.
158
- * Internal — set by `BbDropdownGroup`.
160
+ *
161
+ * @internal Set by `BbDropdownGroup`.
159
162
  */
160
163
  placeholder?: 'loading' | 'empty' | 'failed';
161
164
  /**
162
165
  * On a `'failed'` placeholder: what the group's `items` load rejected
163
- * with. Internal — set by the pipeline resolver, handed to the `empty`
164
- * slot as `error`.
166
+ * with, handed to the `empty` slot as `error`.
167
+ *
168
+ * @internal Set by the pipeline resolver.
165
169
  */
166
170
  error?: unknown;
167
171
  /**
168
172
  * Marks a row built by the pipeline resolver from a fetched item. Its
169
173
  * `selectable` predicate already ran against the RAW item there, so
170
174
  * `normalizeGroups` must not run it again against this row object.
171
- * Internal.
175
+ *
176
+ * @internal
172
177
  */
173
178
  fetched?: true;
174
179
  /**
175
180
  * Optional slot token used to resolve per-item named slots. Primarily set
176
181
  * by the pipeline resolver so slot names can be derived from the resolved
177
182
  * `itemValue` (readable), while `rowKey` remains the hash-based selection
178
- * id. Internal.
183
+ * id.
184
+ *
185
+ * @internal
179
186
  */
180
187
  slotKey?: string;
181
188
  };
@@ -205,12 +212,18 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
205
212
  *
206
213
  * A provider signals a failure by THROWING, never by returning `[]`: the
207
214
  * rows are cleared, nothing is pruned, and the `empty` placeholder shows
208
- * `failedText` with the error. Zero-argument providers keep working. Annotate
209
- * the parameter `BbDropdownGroupItemsContext`.
215
+ * `failedText` with the error. Zero-argument providers keep working. An
216
+ * unannotated getter reads its context typed (`query` a string on a
217
+ * `searchable` group); a provider shared with other components is annotated
218
+ * `BbDropdownGroupItemsContext`.
210
219
  */
211
- export type DropdownGroupItemsGetter = ((context: BbDropdownGroupItemsContext) => any[] | Promise<any[]>) | ((context: BbDropdownGroupItemsContext & {
220
+ export type DropdownGroupItemsGetter = PlainGetter | SearchGetter;
221
+ /** A group without a search box: no `query` arrives. */
222
+ type PlainGetter = (context: BbDropdownGroupItemsContext) => any[] | Promise<any[]>;
223
+ /** A `searchable` group: `query` always arrives, `''` until typed. */
224
+ type SearchGetter = (context: BbDropdownGroupItemsContext & {
212
225
  query: string;
213
- }) => any[] | Promise<any[]>);
226
+ }) => any[] | Promise<any[]>;
214
227
  export type InternalGroup = DropdownEntryBase & {
215
228
  /**
216
229
  * The group's identity: REQUIRED on a `selectable` group (its picks are
@@ -249,19 +262,9 @@ export type InternalGroup = DropdownEntryBase & {
249
262
  */
250
263
  group?: true;
251
264
  /**
252
- * Items of the group. Plain arrays are flattened.
253
- *
254
- * For a **pipeline group**, pass raw objects (`any[]`) or an (async) getter
255
- * `({ reason, modelValue, signal }) => Item[] | Promise<Item[]>` (plus
256
- * `query` when the group is `searchable`; see {@link DropdownGroupItemsGetter})
257
- * and pair it with `itemText`/`itemValue`. A `<BbDropdownGroup :id v-model>`
258
- * companion resolves such a group and surfaces the selected `itemValue`(s)
259
- * through `v-model`.
260
- */
261
- items: Array<InternalItem | InternalItem[]> | any[] | DropdownGroupItemsGetter;
262
- /**
263
- * Pipeline groups only. Path/getter producing each item's display text
264
- * (a primitive item is its own text; a getter still maps it).
265
+ * Pipeline groups only. Path/getter producing each item's display text.
266
+ * A string or number row needs none, fetched or written: it is its own
267
+ * text and value (a getter here still maps a fetched one).
265
268
  *
266
269
  * Unset: own `label`, else `text` (`{ label, value }` needs no accessor).
267
270
  *
@@ -356,17 +359,6 @@ export type InternalGroup = DropdownEntryBase & {
356
359
  * @defaultValue `'interaction'`
357
360
  */
358
361
  prefill?: boolean | 'interaction';
359
- /**
360
- * Renders a search field at the top of THIS group (so, inside its submenu when
361
- * the group is one), scoped to this group alone — the nested "category ›
362
- * searchable options" pattern. Typing narrows this group's rows by
363
- * the ranked search (see `filterBy`) and, for an async group, passes
364
- * the typed text to its getter as the context's `query` (a user search arrives
365
- * with `reason: 'search'`, as on `BbSelect`; see
366
- * `BbDropdownGroupItemsContext`). Each searchable group owns its own query,
367
- * independent of its siblings.
368
- */
369
- searchable?: boolean;
370
362
  /** Placeholder for this group's search field. Defaults to the localized label. */
371
363
  searchPlaceholder?: string;
372
364
  /**
@@ -421,7 +413,55 @@ export type InternalGroup = DropdownEntryBase & {
421
413
  * category, yet still wants a label for chips.
422
414
  */
423
415
  hideLabel?: boolean;
416
+ } & GroupSource;
417
+ type GroupSource = {
418
+ /**
419
+ * Renders a search field at the top of THIS group (so, inside its submenu when
420
+ * the group is one), scoped to this group alone — the nested "category ›
421
+ * searchable options" pattern. Typing narrows this group's rows by
422
+ * the ranked search (see `filterBy`) and, for an async group, passes
423
+ * the typed text to its getter as the context's `query` (a user search arrives
424
+ * with `reason: 'search'`, as on `BbSelect`; see
425
+ * `BbDropdownGroupItemsContext`). Each searchable group owns its own query,
426
+ * independent of its siblings.
427
+ */
428
+ searchable: true;
429
+ /**
430
+ * Items of the group. Plain arrays are flattened.
431
+ *
432
+ * For a **pipeline group**, pass raw objects (`any[]`) or an (async) getter
433
+ * `({ reason, modelValue, signal }) => Item[] | Promise<Item[]>` (plus
434
+ * `query` when the group is `searchable`; see {@link DropdownGroupItemsGetter})
435
+ * and pair it with `itemText`/`itemValue`. A `<BbDropdownGroup :id v-model>`
436
+ * companion resolves such a group and surfaces the selected `itemValue`(s)
437
+ * through `v-model`.
438
+ */
439
+ items: GroupRows | SearchGetter;
440
+ } | {
441
+ /**
442
+ * Renders a search field at the top of THIS group (so, inside its submenu when
443
+ * the group is one), scoped to this group alone — the nested "category ›
444
+ * searchable options" pattern. Typing narrows this group's rows by
445
+ * the ranked search (see `filterBy`) and, for an async group, passes
446
+ * the typed text to its getter as the context's `query` (a user search arrives
447
+ * with `reason: 'search'`, as on `BbSelect`; see
448
+ * `BbDropdownGroupItemsContext`). Each searchable group owns its own query,
449
+ * independent of its siblings.
450
+ */
451
+ searchable?: false;
452
+ /**
453
+ * Items of the group. Plain arrays are flattened.
454
+ *
455
+ * For a **pipeline group**, pass raw objects (`any[]`) or an (async) getter
456
+ * `({ reason, modelValue, signal }) => Item[] | Promise<Item[]>` (plus
457
+ * `query` when the group is `searchable`; see {@link DropdownGroupItemsGetter})
458
+ * and pair it with `itemText`/`itemValue`. A `<BbDropdownGroup :id v-model>`
459
+ * companion resolves such a group and surfaces the selected `itemValue`(s)
460
+ * through `v-model`.
461
+ */
462
+ items: GroupRows | PlainGetter;
424
463
  };
464
+ type GroupRows = Array<InternalItem | InternalItem[]> | any[];
425
465
  /**
426
466
  * A group's items as a raw array, or `[]` when the items are still an
427
467
  * unresolved async getter. Used by the synchronous traversal/normalization,
@@ -429,6 +469,17 @@ export type InternalGroup = DropdownEntryBase & {
429
469
  * the `<BbDropdownGroup>` companion before they reach here).
430
470
  */
431
471
  export declare const groupItemsAsArray: (items: InternalGroup["items"] | undefined) => Array<InternalItem | InternalItem[]>;
472
+ /**
473
+ * A string or number row: its own text and value (`'Google'` reads "Google"
474
+ * and picks `'Google'`), loose, in a section, in a group's `items` or in a
475
+ * submenu's `items`. It declares `searchable` like every entry, so a group
476
+ * literal beside it still picks its plain or searchable getter.
477
+ */
478
+ export type PrimitiveRow = (string | number) & {
479
+ searchable?: never;
480
+ };
481
+ /** One entry of an `items` array: an {@link Item} or a {@link PrimitiveRow}. */
482
+ export type ItemEntry = Item | PrimitiveRow;
432
483
  /**
433
484
  * Items accepted by the dropdown. Entries can be:
434
485
  * - a single {@link InternalItem};
@@ -437,7 +488,9 @@ export declare const groupItemsAsArray: (items: InternalGroup["items"] | undefin
437
488
  *
438
489
  * The shapes can be mixed, e.g. `[item, [item, item], { id, label, items }]`.
439
490
  */
440
- export type Item = InternalItem | InternalGroup | Item[];
491
+ export type Item = InternalItem | InternalGroup | (ItemEntry[] & {
492
+ searchable?: never;
493
+ });
441
494
  /** Unwraps the item type out of the (possibly nested) {@link Items} shape. */
442
495
  export type FlatItem<T> = T extends Array<infer U> ? U : T;
443
496
  /**
@@ -457,7 +510,9 @@ export type FlatItem<T> = T extends Array<infer U> ? U : T;
457
510
  export declare const isSelectableGroup: (entry: Pick<InternalGroup, "selectable" | "multiple">) => boolean;
458
511
  /** The group's per-row `selectable` predicate, when it passed one. */
459
512
  export declare const selectablePredicateOf: (entry: Pick<InternalGroup, "selectable">) => ((item: any) => boolean) | undefined;
460
- export declare const isGroup: (entry: Item) => entry is InternalGroup;
513
+ /** A string or number row: its own text and value (normalizeGroups maps it). */
514
+ export declare const isPrimitiveRow: (entry: ItemEntry | InternalItem | InternalItem[]) => entry is PrimitiveRow;
515
+ export declare const isGroup: (entry: ItemEntry) => entry is InternalGroup;
461
516
  /**
462
517
  * A group after normalization: anonymous arrays and loose items become
463
518
  * non-selectable groups; {@link InternalGroup} objects keep their metadata. Selection
@@ -695,7 +750,13 @@ export type BbDropdownProps = BbDropdownPtProps & {
695
750
  *
696
751
  * @defaultValue `[]`
697
752
  */
698
- items: Item[];
753
+ items: Array<Item | PrimitiveRow>;
754
+ /**
755
+ * Keeps the trigger when no row is visible (by default it is hidden):
756
+ * inert, no popup ARIA, `empty` in the activator slot. A `contextMenu`
757
+ * trigger always stays.
758
+ */
759
+ keepActivator?: boolean;
699
760
  /**
700
761
  * Default placeholder text shown while a pipeline group's async items load.
701
762
  * A group's own `loadingText` overrides this; both fall back to the localized
@@ -734,9 +795,8 @@ export type BbDropdownProps = BbDropdownPtProps & {
734
795
  */
735
796
  padding?: number;
736
797
  /**
737
- * Position of the dropdown relative to the activator.
738
- * Use `'cursor'` to anchor at the mouse/touch coordinates.
739
- * (No arrow is drawn either way — arrows are tooltip-only in v3.)
798
+ * Position relative to the activator; `'cursor'` anchors at the
799
+ * mouse/touch point. No arrow (tooltips only).
740
800
  *
741
801
  * @defaultValue `'bottom'`
742
802
  */
@@ -784,8 +844,7 @@ export type BbDropdownEvents = {
784
844
  /**
785
845
  * The user selected a row in a selectable group, at the click — also when a
786
846
  * controlled companion's app then refuses the value. The payload is the
787
- * row's value (its `item-value` for pipeline groups, else its `value`) —
788
- * symmetric with `BbTable`'s `item:selected`.
847
+ * row's value (its `item-value` for pipeline groups, else its `value`).
789
848
  */
790
849
  (e: 'item:selected', value: any): void;
791
850
  /**
@@ -804,6 +863,8 @@ export type BbDropdownActivatorProps = {
804
863
  export type BbDropdownActivatorSlotProps = {
805
864
  /** Whether the dropdown is globally disabled. */
806
865
  disabled?: boolean;
866
+ /** No row is visible: the trigger is inert. */
867
+ empty: boolean;
807
868
  /**
808
869
  * Whether any item's async `onClick` is currently in flight. Use to reflect a
809
870
  * global busy state on the trigger.
@@ -951,9 +1012,8 @@ export type BbDropdownSlots = {
951
1012
  */
952
1013
  activator?: (props: BbDropdownActivatorSlotProps) => any;
953
1014
  /**
954
- * Content pinned to the top of the dropdown panel, outside the scroll area.
955
- * Stays visible while the items scroll and is separated from them by a
956
- * divider — for a title or a filter field.
1015
+ * Pinned above the rows, outside their scroll, with a divider — for a
1016
+ * title or a filter field.
957
1017
  */
958
1018
  header?: (props: BbDropdownEdgeSlotProps) => any;
959
1019
  /**
@@ -968,9 +1028,8 @@ export type BbDropdownSlots = {
968
1028
  */
969
1029
  'item:append'?: (props: BbDropdownItemSlotProps) => any;
970
1030
  /**
971
- * Content pinned to the bottom of the dropdown panel, outside the scroll
972
- * area. Stays visible while the items scroll and is separated from them by a
973
- * divider — for action buttons.
1031
+ * Pinned below the rows, outside their scroll, with a divider — for
1032
+ * action buttons.
974
1033
  */
975
1034
  footer?: (props: BbDropdownEdgeSlotProps) => any;
976
1035
  } & Record<string, (props: BbDropdownItemSlotProps) => any>;
@@ -1,6 +1,6 @@
1
1
  import { DROPDOWN_ITEM_VARIANTS as e } from "../../types/DropdownItemVariant.js";
2
2
  // src/components/BbDropdown/types.ts
3
- var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.multiple != null : !!e.selectable, r = (e) => typeof e.selectable == "function" ? e.selectable : void 0, i = (e) => !Array.isArray(e) && (e.group === !0 || "selectable" in e || "multiple" in e || typeof e.items == "function"), a = {
3
+ var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.multiple != null : !!e.selectable, r = (e) => typeof e.selectable == "function" ? e.selectable : void 0, i = (e) => typeof e == "string" || typeof e == "number", a = (e) => typeof e == "object" && !!e && !Array.isArray(e) && (e.group === !0 || "selectable" in e || "multiple" in e || typeof e.items == "function"), o = {
4
4
  parts: [
5
5
  "root",
6
6
  "panel",
@@ -68,4 +68,4 @@ var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.mu
68
68
  ]
69
69
  }
70
70
  };
71
- export { a as BB_DROPDOWN_PT, t as groupItemsAsArray, i as isGroup, n as isSelectableGroup, r as selectablePredicateOf };
71
+ export { o as BB_DROPDOWN_PT, t as groupItemsAsArray, a as isGroup, i as isPrimitiveRow, n as isSelectableGroup, r as selectablePredicateOf };