bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76

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 (321) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbAvatar.md +86 -58
  5. package/dist/ai/BbBadge.md +1 -1
  6. package/dist/ai/BbBreadcrumbs.md +3 -3
  7. package/dist/ai/BbButton.md +4 -4
  8. package/dist/ai/BbCalendar.md +5 -2
  9. package/dist/ai/BbCheckboxGroup.md +5 -4
  10. package/dist/ai/BbColorInput.md +13 -1
  11. package/dist/ai/BbColorPalette.md +12 -7
  12. package/dist/ai/BbConfirm.md +1 -1
  13. package/dist/ai/BbDatePicker.md +13 -1
  14. package/dist/ai/BbDatePickerInput.md +18 -2
  15. package/dist/ai/BbDialog.md +6 -3
  16. package/dist/ai/BbDropdown.md +174 -77
  17. package/dist/ai/BbDropdownButton.md +37 -16
  18. package/dist/ai/BbGallery.md +3 -2
  19. package/dist/ai/BbIcon.md +10 -10
  20. package/dist/ai/BbNumberInput.md +3 -1
  21. package/dist/ai/BbOffCanvas.md +3 -2
  22. package/dist/ai/BbPopover.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +227 -105
  25. package/dist/ai/BbSelectPopover.md +139 -14
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +18 -17
  28. package/dist/ai/BbTimePicker.md +13 -1
  29. package/dist/ai/BbTimePickerInput.md +16 -2
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbTree.md +5 -1
  32. package/dist/ai/CommonPopover.md +1 -0
  33. package/dist/ai/FlatListBox.md +1 -0
  34. package/dist/ai/GroupedListBox.md +3 -2
  35. package/dist/ai/ListBox.md +4 -2
  36. package/dist/ai/OptionsContainer.md +4 -4
  37. package/dist/ai/changelog.json +310 -7
  38. package/dist/ai/components.json +33 -35
  39. package/dist/ai/composables/useToast.md +2 -2
  40. package/dist/ai/design-tokens.json +60 -0
  41. package/dist/ai/guides/agent-contract.md +9 -5
  42. package/dist/ai/guides/calendars-and-digits.md +1 -1
  43. package/dist/ai/guides/design-tokens.md +13 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/icons-policy.md +32 -11
  47. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  48. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  49. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  50. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  52. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  53. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  54. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  55. package/dist/ai/guides/migration/v2-to-v3.md +70 -24
  56. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  57. package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
  58. package/dist/ai/guides/passthrough.md +58 -58
  59. package/dist/ai/helpers/inertia/manifest.json +1 -1
  60. package/dist/ai/index.md +1 -1
  61. package/dist/ai/manifest/common.json +1 -0
  62. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  63. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  64. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  65. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  66. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  67. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  68. package/dist/ai/manifest/components/BbColorPalette.json +5 -2
  69. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  70. package/dist/ai/manifest/components/BbDatePicker.json +3 -0
  71. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  72. package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
  73. package/dist/ai/manifest/components/BbDropdown.json +36 -28
  74. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  75. package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
  76. package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
  77. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  78. package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
  79. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  80. package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
  81. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  82. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  83. package/dist/ai/manifest/components/BbSelect.json +47 -40
  84. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  85. package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
  86. package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
  87. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  88. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbTable.json +6 -6
  90. package/dist/ai/manifest/components/BbTable.tree.json +9 -1
  91. package/dist/ai/manifest/components/BbTimePicker.json +5 -2
  92. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  93. package/dist/ai/manifest/components/BbTree.json +1 -1
  94. package/dist/ai/manifest/components/CommonPopover.json +1 -0
  95. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  96. package/dist/ai/manifest/components/GroupedListBox.json +3 -2
  97. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  98. package/dist/ai/manifest/components/ListBox.json +3 -2
  99. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  100. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  101. package/dist/ai/manifest/index.json +2 -2
  102. package/dist/ai/manifest/meta.json +0 -3
  103. package/dist/ai/manifest/types.advanced.json +6 -6
  104. package/dist/ai/manifest/types.api.json +1 -3
  105. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  106. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  107. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  108. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  109. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  110. package/dist/ai/recipes/vue/onboarding.md +2 -2
  111. package/dist/ai/source/BbAccordion.md +4 -5
  112. package/dist/ai/source/BbAvatar.md +128 -11
  113. package/dist/ai/source/BbBadge.md +18 -7
  114. package/dist/ai/source/BbBreadcrumbs.md +57 -56
  115. package/dist/ai/source/BbButton.md +41 -25
  116. package/dist/ai/source/BbCalendar.md +8 -6
  117. package/dist/ai/source/BbCarousel.md +41 -34
  118. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  119. package/dist/ai/source/BbColorInput.md +19 -0
  120. package/dist/ai/source/BbColorPalette.md +23 -2
  121. package/dist/ai/source/BbDatePicker.md +18 -0
  122. package/dist/ai/source/BbDatePickerInput.md +47 -3
  123. package/dist/ai/source/BbDialog.md +14 -1
  124. package/dist/ai/source/BbDropdown.md +296 -99
  125. package/dist/ai/source/BbDropdownButton.md +61 -19
  126. package/dist/ai/source/BbDropdownGroup.md +189 -98
  127. package/dist/ai/source/BbGallery.md +82 -60
  128. package/dist/ai/source/BbHost.md +12 -0
  129. package/dist/ai/source/BbNumberInput.md +17 -10
  130. package/dist/ai/source/BbOffCanvas.md +14 -1
  131. package/dist/ai/source/BbPagination.md +12 -28
  132. package/dist/ai/source/BbRadioGroup.md +12 -5
  133. package/dist/ai/source/BbRating.md +4 -4
  134. package/dist/ai/source/BbSelect.md +151 -112
  135. package/dist/ai/source/BbSelectPopover.md +244 -29
  136. package/dist/ai/source/BbSwitchGroup.md +11 -4
  137. package/dist/ai/source/BbTable.md +114 -35
  138. package/dist/ai/source/BbTimePicker.md +19 -0
  139. package/dist/ai/source/BbTimePickerInput.md +21 -2
  140. package/dist/ai/source/BbToast.md +2 -2
  141. package/dist/ai/source/BbToastPortal.md +2 -2
  142. package/dist/ai/source/BbTree.md +1 -1
  143. package/dist/ai/source/ClearableButton.md +4 -2
  144. package/dist/ai/source/CommonPopover.md +24 -1
  145. package/dist/ai/source/ErrorIcon.md +4 -3
  146. package/dist/ai/source/FlatListBox.md +33 -7
  147. package/dist/ai/source/GroupedListBox.md +85 -14
  148. package/dist/ai/source/ListBox.md +11 -1
  149. package/dist/ai/source/OptionsContainer.md +29 -11
  150. package/dist/ai/source/WarningIcon.md +4 -3
  151. package/dist/assets/svgs/close.svg_raw.js +1 -1
  152. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  153. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  154. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  155. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
  156. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  157. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  158. package/dist/components/BbAvatar/types.d.ts +24 -5
  159. package/dist/components/BbAvatar/types.js +5 -1
  160. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  161. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
  162. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
  163. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  164. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  165. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  166. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  167. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
  168. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  169. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  170. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  171. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  172. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  173. package/dist/components/BbColorInput/types.d.ts +7 -0
  174. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  175. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
  176. package/dist/components/BbColorPalette/types.d.ts +7 -0
  177. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
  178. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
  179. package/dist/components/BbDatePicker/types.d.ts +7 -0
  180. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
  181. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
  182. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  183. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
  184. package/dist/components/BbDialog/leaveGhost.js +22 -17
  185. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
  186. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  187. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
  188. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
  189. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  190. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  191. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
  192. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
  193. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  194. package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
  195. package/dist/components/BbDropdown/types.d.ts +109 -87
  196. package/dist/components/BbDropdown/types.js +3 -0
  197. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
  198. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
  199. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
  200. package/dist/components/BbDropdownButton/types.d.ts +23 -10
  201. package/dist/components/BbDropdownButton/types.js +4 -0
  202. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  203. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
  204. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  205. package/dist/components/BbIcon/iconCache.js +1 -1
  206. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  207. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
  208. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
  209. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  210. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  211. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  212. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  213. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
  214. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  215. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  216. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  217. package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
  218. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
  219. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  220. package/dist/components/BbSelect/types.d.ts +110 -111
  221. package/dist/components/BbSelect/types.js +1 -27
  222. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
  223. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
  224. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  225. package/dist/components/BbSelectPopover/types.d.ts +32 -17
  226. package/dist/components/BbSelectPopover/types.js +3 -1
  227. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  228. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  229. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  230. package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
  231. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
  232. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  233. package/dist/components/BbTable/types.d.ts +11 -10
  234. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  235. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  236. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
  237. package/dist/components/BbTimePicker/types.d.ts +7 -0
  238. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
  239. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
  240. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  241. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
  242. package/dist/components/BbToast/types.d.ts +2 -2
  243. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  244. package/dist/components/BbTree/types.d.ts +1 -1
  245. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  246. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  247. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  248. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
  249. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  250. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
  251. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
  252. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  253. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  254. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  255. package/dist/composables/useInternalIcon.js +25 -0
  256. package/dist/composables/useItemsGetter.js +34 -32
  257. package/dist/composables/useOpenModel.js +20 -0
  258. package/dist/deprecation/ai-deprecations.json.js +1 -1
  259. package/dist/i18n/locales/ar.json +2 -0
  260. package/dist/i18n/locales/cs.json +2 -0
  261. package/dist/i18n/locales/da.json +2 -0
  262. package/dist/i18n/locales/de-CH.json +2 -0
  263. package/dist/i18n/locales/de.json +2 -0
  264. package/dist/i18n/locales/el.json +2 -0
  265. package/dist/i18n/locales/en-GB.json +2 -0
  266. package/dist/i18n/locales/en.json +2 -0
  267. package/dist/i18n/locales/es-MX.json +2 -0
  268. package/dist/i18n/locales/es.json +2 -0
  269. package/dist/i18n/locales/fa.json +2 -0
  270. package/dist/i18n/locales/fi.json +2 -0
  271. package/dist/i18n/locales/fr.json +2 -0
  272. package/dist/i18n/locales/he.json +2 -0
  273. package/dist/i18n/locales/hu.json +2 -0
  274. package/dist/i18n/locales/it.json +2 -0
  275. package/dist/i18n/locales/ja.json +2 -0
  276. package/dist/i18n/locales/ko.json +2 -0
  277. package/dist/i18n/locales/nb.json +2 -0
  278. package/dist/i18n/locales/nl.json +2 -0
  279. package/dist/i18n/locales/pl.json +2 -0
  280. package/dist/i18n/locales/pt-BR.json +2 -0
  281. package/dist/i18n/locales/pt-PT.json +2 -0
  282. package/dist/i18n/locales/ro.json +2 -0
  283. package/dist/i18n/locales/ru.json +2 -0
  284. package/dist/i18n/locales/sv.json +2 -0
  285. package/dist/i18n/locales/tr.json +2 -0
  286. package/dist/i18n/locales/uk.json +2 -0
  287. package/dist/i18n/locales/zh-CN.json +2 -0
  288. package/dist/i18n/locales/zh-HK.json +2 -0
  289. package/dist/i18n/locales/zh-TW.json +2 -0
  290. package/dist/icon-scan.d.ts +1 -1
  291. package/dist/icon-scan.js +68 -61
  292. package/dist/index.d.ts +2 -2
  293. package/dist/llms-full.txt +1038 -451
  294. package/dist/llms-medium.txt +33 -28
  295. package/dist/llms.txt +2 -2
  296. package/dist/locale-blueprint.json +2 -0
  297. package/dist/nuxt.js +1 -1
  298. package/dist/styles.css +2 -2
  299. package/dist/types/ActionButton.d.ts +2 -3
  300. package/dist/types/Config.d.ts +8 -1
  301. package/dist/types/ConfigDefaults.d.ts +10 -2
  302. package/dist/types/Option.d.ts +10 -0
  303. package/dist/types/internalIcons.d.ts +89 -0
  304. package/dist/types/internalIcons.js +158 -0
  305. package/dist/types/ptComponentMap.d.ts +5 -5
  306. package/dist/utilities/functions/slotContent.js +19 -0
  307. package/dist/utils/configDefaults.js +75 -64
  308. package/dist/utils/iconsOption.js +48 -0
  309. package/dist/utils/loadRetry.js +8 -0
  310. package/dist/utils/versionCheck.js +1 -1
  311. package/dist/vite-plugin.d.ts +10 -16
  312. package/dist/vite.js +323 -307
  313. package/llms.txt +2 -2
  314. package/package.json +3 -1
  315. package/scripts/README.md +2 -0
  316. package/scripts/lib/adoption-checklist.json +1 -1
  317. package/scripts/lib/agent-setup.mjs +44 -26
  318. package/scripts/lib/update-install.mjs +48 -0
  319. package/scripts/lib/validate-bb-markup.mjs +93 -12
  320. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
  321. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -1,8 +1,10 @@
1
1
  import { ALL_PROPS as e, ALL_SETTINGS as t, COMPONENT_SETTINGS as n, DEFAULTS_ALLOWLIST as r, GLOBAL_ONLY_DEFAULTS as i, SIZE_MAP_COMPONENTS as a } from "../types/ConfigDefaults.js";
2
2
  import { validatePtGlobalMap as o } from "./passthrough.js";
3
- import { VARIANT_OPTION_PATHS as s } from "../project-dts.js";
3
+ import { validateComponentIcons as s } from "./iconsOption.js";
4
+ import { BB_COMPONENT_ICON_ROLES as c } from "../types/internalIcons.js";
5
+ import { VARIANT_OPTION_PATHS as l } from "../project-dts.js";
4
6
  // src/utils/configDefaults.ts
5
- var c = (e) => !!e && typeof e == "object" && !Array.isArray(e), l = r, u = n, d = i, f = a, p = [...e, ...t], m = (e, t) => {
7
+ var u = (e) => !!e && typeof e == "object" && !Array.isArray(e), d = r, f = n, p = i, m = a, h = Object.keys(c), g = [...e, ...t], _ = (e, t) => {
6
8
  let n = Array.from({ length: t.length + 1 }, (e, t) => t);
7
9
  for (let r = 1; r <= e.length; r++) {
8
10
  let i = n[0];
@@ -13,106 +15,114 @@ var c = (e) => !!e && typeof e == "object" && !Array.isArray(e), l = r, u = n, d
13
15
  }
14
16
  }
15
17
  return n[t.length];
16
- }, h = (e, t) => {
18
+ }, v = (e, t) => {
17
19
  let n = null, r = Infinity;
18
20
  for (let i of t) {
19
- let t = m(e.toLowerCase(), i.toLowerCase());
21
+ let t = _(e.toLowerCase(), i.toLowerCase());
20
22
  t < r && (r = t, n = i);
21
23
  }
22
24
  return n && r <= Math.max(2, Math.floor(e.length / 3)) ? n : null;
23
- }, g = (e) => e === null || [
25
+ }, y = (e) => e === null || [
24
26
  "string",
25
27
  "number",
26
28
  "boolean"
27
- ].includes(typeof e) ? !0 : Array.isArray(e) ? e.every(g) : c(e) && Object.getPrototypeOf(e) === Object.prototype ? Object.values(e).every(g) : !1, _ = {
29
+ ].includes(typeof e) ? !0 : Array.isArray(e) ? e.every(y) : u(e) && Object.getPrototypeOf(e) === Object.prototype ? Object.values(e).every(y) : !1, b = {
28
30
  sizes: "the size scale is `sizeMap`",
29
31
  defaultSize: "the default size is `size`",
30
32
  toastPosition: "it is `BbToast: { position }`",
31
33
  defaultInputLabelMode: "it is `all: { labelMode }`"
32
- }, v = (e, t) => {
33
- if (!c(e)) return `[bitboss-ui] ${t}.all must be an object, e.g. all: { adaptive: false }.`;
34
+ }, x = (e, t) => {
35
+ if (!u(e)) return `[bitboss-ui] ${t}.all must be an object, e.g. all: { adaptive: false }.`;
34
36
  for (let [n, r] of Object.entries(e)) {
35
- if (!p.includes(n)) {
37
+ if (!g.includes(n)) {
36
38
  if (n === "variants" || n === "sizeMap" || n === "pt") return `[bitboss-ui] ${t}.all.${n}: \`${n}\` belongs to one component, not to \`all\` — e.g. ${t}.BbButton.${n}.`;
37
- let e = Object.keys(l).filter((e) => l[e].includes(n));
39
+ let e = Object.keys(d).filter((e) => d[e].includes(n));
38
40
  if (e.length) return `[bitboss-ui] ${t}.all.${n}: \`${n}\` is not shared through \`all\`; set it per component (${e.map((e) => `${t}.${e}.${n}`).join(", ")}).`;
39
- let r = h(n, p);
40
- return `[bitboss-ui] ${t}.all.${n}: not a key \`all\` takes${r ? ` — did you mean "${r}"?` : "."} It takes: ${p.join(", ")}.`;
41
+ let r = v(n, g);
42
+ return `[bitboss-ui] ${t}.all.${n}: not a key \`all\` takes${r ? ` — did you mean "${r}"?` : "."} It takes: ${g.join(", ")}.`;
41
43
  }
42
- if (r === void 0 || !g(r)) return `[bitboss-ui] ${t}.all.${n} must be a plain value: the map ships as JSON.`;
44
+ if (r === void 0 || !y(r)) return `[bitboss-ui] ${t}.all.${n} must be a plain value: the map ships as JSON.`;
43
45
  if (n === "autoDisableWritingThreshold" && !(Number.isInteger(r) && r >= 0)) return `[bitboss-ui] ${t}.all.autoDisableWritingThreshold must be a non-negative integer (received ${JSON.stringify(r)}); 0 turns the 'auto' rule off. Remove the key for the default, 6.`;
44
46
  if (n === "popoverOffset" && !(typeof r == "number" && Number.isFinite(r))) return `[bitboss-ui] ${t}.all.popoverOffset must be a number of px (received ${JSON.stringify(r)}). Remove the key for the default, 4.`;
45
47
  }
46
48
  return null;
47
- }, y = (e, t = {}) => {
49
+ }, S = (e, t = {}) => {
48
50
  let n = t.where ?? "components", r = t.variantComponents ?? [];
49
51
  if (e === void 0) return null;
50
- if (!c(e)) return `[bitboss-ui] ${n} must be an object keyed by component, e.g. ${n}: { BbButton: { size: 'sm' } }.`;
52
+ if (!u(e)) return `[bitboss-ui] ${n} must be an object keyed by component, e.g. ${n}: { BbButton: { size: 'sm' } }.`;
51
53
  let i = [.../* @__PURE__ */ new Set([
52
- ...Object.keys(l),
53
- ...Object.keys(u),
54
- ...f,
54
+ ...Object.keys(d),
55
+ ...Object.keys(f),
56
+ ...m,
57
+ ...h,
55
58
  ...r
56
59
  ])];
57
- for (let [a, s] of Object.entries(e)) {
60
+ for (let [a, c] of Object.entries(e)) {
58
61
  if (a === "all") {
59
- let e = v(s, n);
62
+ let e = x(c, n);
60
63
  if (e) return e;
61
64
  continue;
62
65
  }
63
- if (!c(s)) return `[bitboss-ui] ${n}.${a} must be an object, e.g. { pt: { root: '…' } }.`;
66
+ if (!u(c)) return `[bitboss-ui] ${n}.${a} must be an object, e.g. { pt: { root: '…' } }.`;
64
67
  let e = t.knownComponents;
65
68
  if (e && !e.includes(a) && !i.includes(a)) {
66
- let t = h(a, [...e, ...i]);
69
+ let t = v(a, [...e, ...i]);
67
70
  return `[bitboss-ui] ${n}.${a}: no component is called "${a}"${t ? ` — did you mean "${t}"?` : ""}.`;
68
71
  }
69
- let m = l[a] ?? [], y = u[a] ?? [], b = [
70
- ...m,
71
- ...y,
72
+ let l = d[a] ?? [], _ = f[a] ?? [], S = [
73
+ ...l,
74
+ ..._,
72
75
  "pt",
73
76
  ...r.includes(a) ? ["variants"] : [],
74
- ...f.includes(a) ? ["sizeMap"] : []
77
+ ...m.includes(a) ? ["sizeMap"] : [],
78
+ ...h.includes(a) ? ["icons"] : []
75
79
  ];
76
- for (let [e, r] of Object.entries(s)) {
77
- if (!b.includes(e)) {
78
- let t = h(e, b), r = _[e];
79
- return `[bitboss-ui] ${n}.${a}.${e}: not a key ${a} takes.${e === "variants" ? ` ${a} registers no variants of its own.` : e === "sizeMap" ? ` Only ${f.join(", ")} take a size scale.` : p.includes(e) && !m.includes(e) ? ` ${a} has no \`${e}\` prop (\`all.${e}\` reaches only the components that do).` : r ? ` ${r}.` : t ? ` Did you mean "${t}"?` : ""} It takes: ${b.join(", ")}.`;
80
+ for (let [e, r] of Object.entries(c)) {
81
+ if (!S.includes(e)) {
82
+ let t = v(e, S), r = b[e];
83
+ return `[bitboss-ui] ${n}.${a}.${e}: not a key ${a} takes.${e === "icons" ? ` ${a} draws none of the library's swappable glyphs.` : e === "variants" ? ` ${a} registers no variants of its own.` : e === "sizeMap" ? ` Only ${m.join(", ")} take a size scale.` : g.includes(e) && !l.includes(e) ? ` ${a} has no \`${e}\` prop (\`all.${e}\` reaches only the components that do).` : r ? ` ${r}.` : t ? ` Did you mean "${t}"?` : ""} It takes: ${S.join(", ")}.`;
80
84
  }
81
85
  if (e !== "pt") {
82
- if (t.scope && (e === "variants" || d[a]?.includes(e))) return e === "variants" ? `[bitboss-ui] ${n}.${a}.variants: app-wide only (one generated bitboss-ui.d.ts types the names). Register it under the plugin's \`components\`; a scope picks a default \`variant\`, never its own set.` : `[bitboss-ui] ${n}.${a}.${e}: app-wide only (the field's model type follows it, and TypeScript cannot know a scope). Set it under the plugin's \`components\`.`;
83
- if (r === void 0 || !g(r)) return `[bitboss-ui] ${n}.${a}.${e} must be a plain value: the map ships as JSON, so a function, undefined or a class instance cannot cross the build.`;
84
- if (e === "sizeMap") {
85
- if (!c(r)) return `[bitboss-ui] ${n}.${a}.sizeMap must be an object of px numbers, e.g. { md: 20 }.`;
86
- for (let [e, t] of Object.entries(r)) {
87
- if (![
88
- "xs",
89
- "sm",
90
- "md",
91
- "lg",
92
- "xl",
93
- "2xl"
94
- ].includes(e)) return `[bitboss-ui] ${n}.${a}.sizeMap.${e}: not a size name. Sizes: xs, sm, md, lg, xl, 2xl.`;
95
- if (typeof t != "number" || !(t > 0)) return `[bitboss-ui] ${n}.${a}.sizeMap.${e} must be a positive number of px (received ${JSON.stringify(t)}).`;
86
+ if (t.scope && e === "icons") return `[bitboss-ui] ${n}.${a}.icons: app-wide only (the glyphs are bundled at build time). Set it under the plugin's \`components\`.`;
87
+ if (e === "icons") {
88
+ let e = s(a, r, n);
89
+ if (e) return e;
90
+ } else {
91
+ if (t.scope && (e === "variants" || p[a]?.includes(e))) return e === "variants" ? `[bitboss-ui] ${n}.${a}.variants: app-wide only (one generated bitboss-ui.d.ts types the names). Register it under the plugin's \`components\`; a scope picks a default \`variant\`, never its own set.` : `[bitboss-ui] ${n}.${a}.${e}: app-wide only (the field's model type follows it, and TypeScript cannot know a scope). Set it under the plugin's \`components\`.`;
92
+ if (r === void 0 || !y(r)) return `[bitboss-ui] ${n}.${a}.${e} must be a plain value: the map ships as JSON, so a function, undefined or a class instance cannot cross the build.`;
93
+ if (e === "sizeMap") {
94
+ if (!u(r)) return `[bitboss-ui] ${n}.${a}.sizeMap must be an object of px numbers, e.g. { md: 20 }.`;
95
+ for (let [e, t] of Object.entries(r)) {
96
+ if (![
97
+ "xs",
98
+ "sm",
99
+ "md",
100
+ "lg",
101
+ "xl",
102
+ "2xl"
103
+ ].includes(e)) return `[bitboss-ui] ${n}.${a}.sizeMap.${e}: not a size name. Sizes: xs, sm, md, lg, xl, 2xl.`;
104
+ if (typeof t != "number" || !(t > 0)) return `[bitboss-ui] ${n}.${a}.sizeMap.${e} must be a positive number of px (received ${JSON.stringify(t)}).`;
105
+ }
96
106
  }
107
+ if (e === "variants" && !(Array.isArray(r) && r.every((e) => typeof e == "string") || u(r) && (a === "BbAlert" || a === "BbToast"))) return `[bitboss-ui] ${n}.${a}.variants must be an array of names${a === "BbAlert" || a === "BbToast" ? ", or an object of name → { icon }" : ""}, e.g. variants: ['brand'].`;
97
108
  }
98
- if (e === "variants" && !(Array.isArray(r) && r.every((e) => typeof e == "string") || c(r) && (a === "BbAlert" || a === "BbToast"))) return `[bitboss-ui] ${n}.${a}.variants must be an array of names${a === "BbAlert" || a === "BbToast" ? ", or an object of name → { icon }" : ""}, e.g. variants: ['brand'].`;
99
109
  }
100
110
  }
101
- let x = o(s.pt === void 0 ? void 0 : { [a]: s.pt }, n, !0);
102
- if (x) return x;
111
+ let C = o(c.pt === void 0 ? void 0 : { [a]: c.pt }, n, !0);
112
+ if (C) return C;
103
113
  }
104
114
  return null;
105
- }, b = (e) => Object.fromEntries(Object.entries(e ?? {}).flatMap(([e, t]) => e !== "all" && c(t) && c(t.pt) ? [[e, t.pt]] : [])), x = (e) => Object.fromEntries(Object.entries(e ?? {}).flatMap(([e, t]) => {
106
- if (!c(t)) return [];
115
+ }, C = (e) => Object.fromEntries(Object.entries(e ?? {}).flatMap(([e, t]) => e !== "all" && u(t) && u(t.pt) ? [[e, t.pt]] : [])), w = (e) => Object.fromEntries(Object.entries(e ?? {}).flatMap(([e, t]) => {
116
+ if (!u(t)) return [];
107
117
  let { pt: n, ...r } = t;
108
118
  return Object.keys(r).length ? [[e, r]] : [];
109
- })), S = (e, t = {}) => {
119
+ })), T = (e, t = {}) => {
110
120
  if (e === void 0) return null;
111
- if (!c(e)) return "[bitboss-ui] configScopes must be an object keyed by scope name, e.g. configScopes: { webapp: { BbButton: { size: 'lg', pt: { root: 'rounded-full' } } } }.";
121
+ if (!u(e)) return "[bitboss-ui] configScopes must be an object keyed by scope name, e.g. configScopes: { webapp: { BbButton: { size: 'lg', pt: { root: 'rounded-full' } } } }.";
112
122
  for (let [n, r] of Object.entries(e)) {
113
123
  if (!n.trim()) return "[bitboss-ui] configScopes has an empty scope name.";
114
- if (c(r) && ("pt" in r || "defaults" in r)) return `[bitboss-ui] configScopes.${n}: a scope is a \`components\`-shaped map — each component's entry holds its props and \`pt\` (configScopes.${n}.BbButton: { size: 'lg', pt: { … } }), not \`pt\` / \`defaults\` halves.`;
115
- let e = y(r, {
124
+ if (u(r) && ("pt" in r || "defaults" in r)) return `[bitboss-ui] configScopes.${n}: a scope is a \`components\`-shaped map — each component's entry holds its props and \`pt\` (configScopes.${n}.BbButton: { size: 'lg', pt: { … } }), not \`pt\` / \`defaults\` halves.`;
125
+ let e = S(r, {
116
126
  ...t,
117
127
  where: `configScopes.${n}`,
118
128
  scope: !0
@@ -120,7 +130,7 @@ var c = (e) => !!e && typeof e == "object" && !Array.isArray(e), l = r, u = n, d
120
130
  if (e) return e;
121
131
  }
122
132
  return null;
123
- }, C = {
133
+ }, E = {
124
134
  pt: "each component's `pt` under `components` (components: { BbButton: { pt: { … } } })",
125
135
  defaults: "the props under `components` (components: { BbButton: { size: 'sm' } })",
126
136
  variants: "each component's `variants` under `components` (components: { BbButton: { variants: ['brand'] } }; `inputs` split per field, `confirm` → BbConfirm)",
@@ -134,8 +144,10 @@ var c = (e) => !!e && typeof e == "object" && !Array.isArray(e), l = r, u = n, d
134
144
  iconDefaultSizes: "`sizeMap` on `components.BbIcon`, `BbAvatar` and `BbRating` (one each)",
135
145
  dialogDefaultSizes: "`components.BbDialog.sizeMap`",
136
146
  offCanvasDefaultSizes: "`components.BbOffCanvas.sizeMap`",
137
- ...Object.fromEntries(Object.entries(s).map(([e, t]) => [e, t.map((e) => `\`components.${e}.variants\``).join(" / ")]))
138
- }, w = Object.keys({
147
+ iconDir: "`icons.dir` (icons: { dir: './assets/icons' })",
148
+ iconWhitelist: "`icons.whitelist` (icons: { whitelist: ['tabler:crown'] })",
149
+ ...Object.fromEntries(Object.entries(l).map(([e, t]) => [e, t.map((e) => `\`components.${e}.variants\``).join(" / ")]))
150
+ }, D = Object.keys({
139
151
  inertiaLinkName: !0,
140
152
  nuxtLinkName: !0,
141
153
  linkActiveClass: !0,
@@ -148,9 +160,8 @@ var c = (e) => !!e && typeof e == "object" && !Array.isArray(e), l = r, u = n, d
148
160
  cssLayers: !0,
149
161
  injectDirectives: !0,
150
162
  enabledLocales: !0,
151
- iconDir: !0,
163
+ icons: !0,
152
164
  iconsScanner: !0,
153
- iconWhitelist: !0,
154
165
  ai: !0,
155
166
  allowComponents: !0,
156
167
  dts: !0,
@@ -158,13 +169,13 @@ var c = (e) => !!e && typeof e == "object" && !Array.isArray(e), l = r, u = n, d
158
169
  components: !0,
159
170
  configScopes: !0,
160
171
  passthroughDeduper: !0
161
- }), T = { autoImport: !0 }, E = [...w, ...Object.keys(T)], D = (e) => {
162
- let t = Object.keys(C).find((t) => t in e);
163
- return t ? `[bitboss-ui] \`${t}\` is no longer a plugin option: it moved to ${C[t]}. See the installation guide, "The components map".` : null;
164
- }, O = (e, t = w, n = "bitbossUi()") => {
172
+ }), O = { autoImport: !0 }, k = [...D, ...Object.keys(O)], A = (e) => {
173
+ let t = Object.keys(E).find((t) => t in e);
174
+ return t ? `[bitboss-ui] \`${t}\` is no longer a plugin option: it moved to ${E[t]}. See the installation guide, "The components map".` : null;
175
+ }, j = (e, t = D, n = "bitbossUi()") => {
165
176
  let r = Object.keys(e).find((e) => !t.includes(e));
166
177
  if (r === void 0) return null;
167
- let i = h(r, t);
178
+ let i = v(r, t);
168
179
  return `[bitboss-ui] \`${r}\` is not an option of ${n}${i ? ` — did you mean "${i}"?` : "."} It takes: ${t.join(", ")}. A key a newer bitboss-ui added lands here too when the running dev server still has the old plugin: restart it after upgrading.`;
169
180
  };
170
- export { E as NUXT_OPTION_KEYS, w as PLUGIN_OPTION_KEYS, C as REMOVED_OPTIONS, h as closestName, b as ptOfComponents, y as validateComponentsMap, S as validateConfigScopes, D as validateRemovedOptions, O as validateUnknownOptions, x as withoutPt };
181
+ export { k as NUXT_OPTION_KEYS, D as PLUGIN_OPTION_KEYS, E as REMOVED_OPTIONS, v as closestName, C as ptOfComponents, S as validateComponentsMap, T as validateConfigScopes, A as validateRemovedOptions, j as validateUnknownOptions, w as withoutPt };
@@ -0,0 +1,48 @@
1
+ import { BB_COMPONENT_ICON_ROLES as e, BB_ICON_ROLES as t } from "../types/internalIcons.js";
2
+ import { closestName as n } from "./configDefaults.js";
3
+ import { existsSync as r, readdirSync as i, statSync as a } from "node:fs";
4
+ import { join as o } from "node:path";
5
+ // src/utils/iconsOption.ts
6
+ var s = (e) => !!e && typeof e == "object" && !Array.isArray(e), c = /^[a-z0-9][a-z0-9-]*:[a-z0-9][a-z0-9_.-]*$/i, l = [
7
+ "dir",
8
+ "whitelist",
9
+ "defaults"
10
+ ], u = t, d = (e, t, r = u) => {
11
+ if (!s(e)) return `[bitboss-ui] ${t} must be an object of role → icon name, e.g. { close: 'ph:x-bold' }.`;
12
+ for (let [i, a] of Object.entries(e)) {
13
+ if (!r.includes(i)) {
14
+ let e = n(i, r);
15
+ return `[bitboss-ui] ${t}.${i}: not a glyph role here.${u.includes(i) ? ` ${t.replace(/\.icons$/, "")} draws no \`${i}\`.` : ""}${e ? ` Did you mean "${e}"?` : ""} It takes: ${r.join(", ")}.`;
16
+ }
17
+ if (typeof a != "string" || !c.test(a)) return `[bitboss-ui] ${t}.${i} must be an icon name, \`prefix:name\` from an installed set ('ph:x-bold') or \`local:name\` (an SVG in icons.dir); received ${JSON.stringify(a)}.`;
18
+ }
19
+ return null;
20
+ }, f = (e) => {
21
+ if (e === void 0) return null;
22
+ if (!s(e)) return "[bitboss-ui] icons must be an object, e.g. icons: { dir: './assets/icons', whitelist: ['tabler:crown'], defaults: { close: 'ph:x-bold' } }.";
23
+ for (let t of Object.keys(e)) if (!l.includes(t)) {
24
+ let e = n(t, l);
25
+ return `[bitboss-ui] icons.${t}: not a key icons takes${e ? ` — did you mean "${e}"?` : "."} It takes: ${l.join(", ")}. A role goes under icons.defaults (icons: { defaults: { ${u.includes(t) ? t : "close"}: '…' } }).`;
26
+ }
27
+ return e.dir !== void 0 && typeof e.dir != "string" ? "[bitboss-ui] icons.dir must be a path string." : e.whitelist !== void 0 && !(Array.isArray(e.whitelist) && e.whitelist.every((e) => typeof e == "string")) ? "[bitboss-ui] icons.whitelist must be an array of icon names or globs." : e.defaults === void 0 ? null : d(e.defaults, "icons.defaults");
28
+ }, p = (t, n, r) => {
29
+ let i = e[t];
30
+ return i ? d(n, `${r}.${t}.icons`, i) : `[bitboss-ui] ${r}.${t}.icons: ${t} draws none of the library's swappable glyphs.`;
31
+ }, m = (e, t) => {
32
+ let n = /* @__PURE__ */ new Set(), r = (e) => {
33
+ if (s(e)) for (let t of Object.values(e)) typeof t == "string" && n.add(t);
34
+ };
35
+ r(e?.defaults);
36
+ for (let e of Object.values(t ?? {})) s(e) && r(e.icons);
37
+ return [...n];
38
+ }, h = (e, t) => {
39
+ if (!e.length) return [];
40
+ let n = /* @__PURE__ */ new Set(), s = (e) => {
41
+ for (let t of i(e)) {
42
+ let r = o(e, t);
43
+ a(r).isDirectory() ? s(r) : /\.svg$/i.test(t) && n.add(`local:${t.replace(/\.svg$/i, "")}`);
44
+ }
45
+ };
46
+ return r(t) && s(t), e.filter((e) => !n.has(e));
47
+ };
48
+ export { m as iconNamesOf, h as missingLocalIcons, p as validateComponentIcons, d as validateGlyphMap, f as validateIconsOption };
@@ -0,0 +1,8 @@
1
+ // src/utils/loadRetry.ts
2
+ var e = (e, t, n) => {
3
+ let r = e.currentTarget, i = r instanceof HTMLElement && r === document.activeElement;
4
+ if (t(), !i) return;
5
+ let a = n();
6
+ a && (a.matches("a[href], button, input, select, textarea, [tabindex]") || a.setAttribute("tabindex", "-1"), a.focus({ preventScroll: !0 }));
7
+ };
8
+ export { e as runRetry };
@@ -9,7 +9,7 @@ function r() {
9
9
  if (process.env.NODE_ENV === "production" || n || typeof window > "u") return;
10
10
  n = !0;
11
11
  let r = () => {
12
- let n = t("3.0.0-beta.74", getComputedStyle(document.documentElement).getPropertyValue(e));
12
+ let n = t("3.0.0-beta.76", getComputedStyle(document.documentElement).getPropertyValue(e));
13
13
  n && console.warn(n);
14
14
  };
15
15
  document.readyState === "complete" ? setTimeout(r, 0) : window.addEventListener("load", r, { once: !0 });
@@ -6,16 +6,18 @@ import { BUILTIN_LOCALE_KEYS, BuiltinLocaleKey } from './i18n/regions.js';
6
6
  import { InternationalCalendarId } from './utilities/calendar/types.js';
7
7
  import { invalidLocaleTag } from './i18n/localeTags.js';
8
8
  import { CssLayersOption } from './utils/cssLayers.js';
9
+ import { BbIconsOption } from './types/internalIcons.js';
9
10
  import { BbComponentsMap, BbInferredComponentsMap, BbUninferredVariants } from './types/ConfigDefaults.js';
10
11
  export { DEFAULT_MAX_FILE_SIZE, IconScanner, extractIconCandidates, iconLiteralRegExp, iconScanCacheFile, } from './icon-scan.js';
11
12
  export type { IconsScannerOptions, ScanStats } from './icon-scan.js';
13
+ export type { BbIconName, BbIconRole, BbIconsOption, } from './types/internalIcons.js';
12
14
  export { BB_LAYERS, TAILWIND_V3_LAYERS, TAILWIND_V4_LAYERS, type CssLayersOption, } from './utils/cssLayers.js';
13
15
  export { invalidLocaleTag };
14
16
  type DiagnoseFn = (key: string, loaded: Set<string>, known: (prefix: string) => string[], all: (prefix: string) => string[] | null, ip: Set<string>) => string | null;
15
17
  /** The diagnosis, as a callable, for the Node side (whitelist validation). */
16
18
  export declare const diagnoseMissingIcon: DiagnoseFn;
17
19
  /**
18
- * Expand `iconWhitelist` into concrete `prefix:name` entries. Exact names must
20
+ * Expand `icons.whitelist` into concrete `prefix:name` entries. Exact names must
19
21
  * resolve; a glob (`tabler:calendar-*`) expands to every matching name of the
20
22
  * set and must match at least one. Anything else is an error carrying the same
21
23
  * message the dev overlay shows for a missing icon — a whitelist entry that
@@ -243,12 +245,13 @@ export interface BitbossUiOptions<V = BbUninferredVariants> extends Partial<Edit
243
245
  */
244
246
  enabledLocales?: ReadonlyArray<import('./i18n/index.js').BuiltinLocaleInput | import('./i18n/index.js').LocaleWithExtension>;
245
247
  /**
246
- * Absolute, or relative to the Vite root (the project root in Vite; `app/` under Nuxt 4), path to the folder containing SVG icon files.
247
- * Sub-folders are scanned recursively; the icon name is the file's basename without extension.
248
- *
249
- * @defaultValue `'./assets/icons'` — same convention as the Nuxt module
248
+ * Icons: `dir` (the folder of `local:` SVGs, default `'./assets/icons'`),
249
+ * `whitelist` (provider icons that always ship, scanned or not) and
250
+ * `defaults` (the library's own glyphs swapped app-wide:
251
+ * `{ close: 'ph:x-bold' }`; a component's `components.<C>.icons` wins).
252
+ * Every name in `defaults` and `components.<C>.icons` is bundled.
250
253
  */
251
- iconDir?: string;
254
+ icons?: BbIconsOption;
252
255
  /**
253
256
  * Tunes the provider-icon source scan. Every file under the Vite root is
254
257
  * read as bytes for `<prefix>:<name>` literals of the installed
@@ -264,15 +267,6 @@ export interface BitbossUiOptions<V = BbUninferredVariants> extends Partial<Edit
264
267
  * Default 256 MiB — a real source file is never skipped for its size.
265
268
  */
266
269
  iconsScanner?: IconsScannerOptions;
267
- /**
268
- * Provider icons that ALWAYS ship, scanned or not: exact names
269
- * (`'tabler:crown'`) and globs (`'tabler:calendar-*'`). This is the home of
270
- * every name the scanner cannot see as a literal — composed at runtime,
271
- * stored in a database, chosen by an admin. An entry that resolves in no
272
- * installed set fails the build with the same message the dev overlay
273
- * shows for a missing icon.
274
- */
275
- iconWhitelist?: string[];
276
270
  /**
277
271
  * Agent setup: the files that tell coding agents this app's UI is built
278
272
  * with bitboss-ui (a marked block in `AGENTS.md`, an `@AGENTS.md` import in
@@ -507,7 +501,7 @@ export declare const defaultVscodeSettings: () => Record<string, unknown>;
507
501
  */
508
502
  export declare function writeLocalIconifyCollection(dir: string, root: string): string | null;
509
503
  /**
510
- * Build-time check for a custom `iconDir` that resolves to nothing. A relative
504
+ * Build-time check for a custom `icons.dir` that resolves to nothing. A relative
511
505
  * path resolves from the Vite root (under Nuxt that is `app/`), so a path
512
506
  * written from the project root can point at a folder that does not exist,
513
507
  * and every `local:` icon then fails only at runtime. The default folder stays