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
package/dist/vite.js CHANGED
@@ -1,39 +1,40 @@
1
1
  import { DEFAULT_MAX_FILE_SIZE as e, IconScanner as t, extractIconCandidates as n, globToRegExp as r, hasGlobMagic as i, iconLiteralRegExp as a, iconScanCacheFile as o } from "./icon-scan.js";
2
2
  import { BB_LAYERS as s, TAILWIND_V3_LAYERS as c, TAILWIND_V4_LAYERS as l, validateCssLayers as u } from "./utils/cssLayers.js";
3
- import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, localePartsOf as te, nearestLocaleKey as ne } from "./i18n/regions.js";
4
- import { ERA_NAMES as re } from "./i18n/eraNames.js";
5
- import { CALENDAR_FACTORIES as ie, CALENDAR_IDS as ae } from "./utilities/calendar/types.js";
6
- import { invalidLocaleTag as oe, isDecimalSystem as se, localeExtensionWarnings as ce } from "./locale-tags.js";
7
- import { regionHints as h } from "./i18n/regionHints.js";
8
- import { validatePtGlobalMap as le } from "./utils/passthrough.js";
9
- import { closestName as g, ptOfComponents as ue, validateComponentsMap as de, validateConfigScopes as fe, validateRemovedOptions as pe, validateUnknownOptions as me, withoutPt as he } from "./utils/configDefaults.js";
10
- import { DEFAULT_VARIANT_REGISTRIES as _, VARIANT_COMPONENTS as ge, VARIANT_PT_COMPONENTS as v, VARIANT_REGISTRY_OPTIONS as y, customVariants as _e, emptyStringControls as ve, flattenVariants as ye, isInTypeScriptProgram as be, projectVariantRegistries as xe, resolveProjectDtsPath as Se, variantIconsOf as Ce, variantOptionLabel as b, writeProjectDts as we } from "./project-dts.js";
11
- import { DEFAULTS_ALLOWLIST as x } from "./types/ConfigDefaults.js";
3
+ import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, localePartsOf as te, nearestLocaleKey as h } from "./i18n/regions.js";
4
+ import { ERA_NAMES as g } from "./i18n/eraNames.js";
5
+ import { CALENDAR_FACTORIES as ne, CALENDAR_IDS as re } from "./utilities/calendar/types.js";
6
+ import { invalidLocaleTag as _, isDecimalSystem as ie, localeExtensionWarnings as ae } from "./locale-tags.js";
7
+ import { regionHints as oe } from "./i18n/regionHints.js";
8
+ import { validatePtGlobalMap as se } from "./utils/passthrough.js";
9
+ import { closestName as ce, ptOfComponents as le, validateComponentsMap as ue, validateConfigScopes as de, validateRemovedOptions as fe, validateUnknownOptions as pe, withoutPt as me } from "./utils/configDefaults.js";
10
+ import { iconNamesOf as he, missingLocalIcons as ge, validateIconsOption as _e } from "./utils/iconsOption.js";
11
+ import { DEFAULT_VARIANT_REGISTRIES as v, VARIANT_COMPONENTS as ve, VARIANT_PT_COMPONENTS as y, VARIANT_REGISTRY_OPTIONS as b, customVariants as ye, emptyStringControls as be, flattenVariants as xe, isInTypeScriptProgram as Se, projectVariantRegistries as Ce, resolveProjectDtsPath as we, variantIconsOf as Te, variantOptionLabel as x, writeProjectDts as Ee } from "./project-dts.js";
12
+ import { DEFAULTS_ALLOWLIST as De } from "./types/ConfigDefaults.js";
12
13
  import { existsSync as S, mkdirSync as C, readFileSync as w, readdirSync as T, writeFileSync as E } from "node:fs";
13
- import { basename as Te, dirname as D, isAbsolute as O, join as k, relative as Ee, resolve as A } from "node:path";
14
- import { fileURLToPath as j } from "node:url";
15
- import { createRequire as M } from "node:module";
16
- import { convertParsedSVG as De, getIconData as N, iconToHTML as Oe, iconToSVG as P, parseSVGContent as ke, stringToIcon as Ae } from "@iconify/utils";
14
+ import { basename as Oe, dirname as D, isAbsolute as O, join as k, relative as ke, resolve as A } from "node:path";
15
+ import { fileURLToPath as Ae } from "node:url";
16
+ import { createRequire as j } from "node:module";
17
+ import { convertParsedSVG as M, getIconData as N, iconToHTML as P, iconToSVG as je, parseSVGContent as Me, stringToIcon as Ne } from "@iconify/utils";
17
18
  // src/vite-plugin.ts
18
- function je(e) {
19
- let t = P(e, {
19
+ function Pe(e) {
20
+ let t = je(e, {
20
21
  width: "unset",
21
22
  height: "unset"
22
23
  });
23
- return Oe(t.body, t.attributes);
24
+ return P(t.body, t.attributes);
24
25
  }
25
26
  function F(e, t) {
26
27
  try {
27
- let n = M(k(e, "package.json"));
28
+ let n = j(k(e, "package.json"));
28
29
  return JSON.parse(w(n.resolve(`${t}/icons.json`), "utf-8"));
29
30
  } catch {
30
31
  return null;
31
32
  }
32
33
  }
33
- function Me(e, t) {
34
+ function Fe(e, t) {
34
35
  return e !== "heroicons" || !/-(?:20|16)-/.test(t);
35
36
  }
36
- function Ne(e) {
37
+ function Ie(e) {
37
38
  let t = A(e);
38
39
  for (;;) {
39
40
  let e = k(t, "node_modules", "@iconify-json");
@@ -43,9 +44,9 @@ function Ne(e) {
43
44
  t = n;
44
45
  }
45
46
  }
46
- function Pe(e) {
47
+ function Le(e) {
47
48
  try {
48
- let t = Ne(e);
49
+ let t = Ie(e);
49
50
  if (!t) return [];
50
51
  let n = D(D(t));
51
52
  return T(t, { encoding: "utf-8" }).flatMap((t) => {
@@ -56,59 +57,59 @@ function Pe(e) {
56
57
  return [];
57
58
  }
58
59
  }
59
- function Fe(e) {
60
+ function Re(e) {
60
61
  try {
61
- let t = M(k(e, "package.json")), n = JSON.parse(w(t.resolve("@iconify/collections/collections.json"), "utf-8"));
62
+ let t = j(k(e, "package.json")), n = JSON.parse(w(t.resolve("@iconify/collections/collections.json"), "utf-8"));
62
63
  return new Set(Object.keys(n));
63
64
  } catch {
64
65
  return /* @__PURE__ */ new Set();
65
66
  }
66
67
  }
67
- var Ie = "(key, loaded, known, all, ip) => {\n const c = key.indexOf(':'); const p = key.slice(0, c); const n = key.slice(c + 1);\n if (p === 'local' || !/^[a-z][a-z0-9-]*$/.test(p) || !/^[a-z0-9][a-z0-9-]*$/.test(n)) return null;\n const installed = loaded.size ? `installed sets: ${[...loaded].join(', ')}` : 'no @iconify-json/* set is installed';\n const fix = `If the name is composed at runtime or comes from a database, add it to the plugin's \\`iconWhitelist\\``;\n if (loaded.has(p)) {\n const set = all(p);\n if (set && set.includes(n)) return `[bitboss-ui] icon \"${key}\" exists in the ${p} icon set but is not bundled: no scanned source file contains the literal \"${key}\" and it is not in \\`iconWhitelist\\`. Write it as a literal, or — if the name is composed at runtime or comes from a database — add it to the plugin's \\`iconWhitelist\\`.`;\n const names = set ?? known(p);\n const sq = n.replace(/-/g, '');\n const sug = names.find((x) => x.replace(/-/g, '') === sq) ?? (n.length >= 3 ? names.find((x) => x.includes(n) || (x.length >= 3 && n.includes(x))) : undefined);\n const hint = sug ? ` — did you mean \"${p}:${sug}\"?` : '';\n if (set) return `[bitboss-ui] icon \"${key}\" does not exist in the ${p} icon set${hint}`;\n return `[bitboss-ui] icon \"${key}\" is not bundled: it is not among the ${p} names found as literals in scanned source, nor in \\`iconWhitelist\\`${hint}. ${fix}; if it is a typo, fix the name.`;\n }\n const pkg = `@iconify-json/${p}`; const cmd = `run: npm install -D ${pkg}`;\n if (ip.has(p)) return `[bitboss-ui] \"${key}\" requires \"${pkg}\" — ${cmd} (${installed})`;\n if (ip.size) return `[bitboss-ui] \"${key}\" — \"${p}\" is neither an installed icon set nor a known Iconify prefix (${installed})`;\n return `[bitboss-ui] \"${key}\" — no installed icon set has the prefix \"${p}\" (${installed}). If \"${p}\" is an Iconify set, ${cmd}`;\n}", I = Function(`return ${Ie};`)();
68
- function Le(e, t) {
68
+ var ze = "(key, loaded, known, all, ip) => {\n const c = key.indexOf(':'); const p = key.slice(0, c); const n = key.slice(c + 1);\n if (p === 'local' || !/^[a-z][a-z0-9-]*$/.test(p) || !/^[a-z0-9][a-z0-9-]*$/.test(n)) return null;\n const installed = loaded.size ? `installed sets: ${[...loaded].join(', ')}` : 'no @iconify-json/* set is installed';\n const fix = `If the name is composed at runtime or comes from a database, add it to the plugin's \\`icons.whitelist\\``;\n if (loaded.has(p)) {\n const set = all(p);\n if (set && set.includes(n)) return `[bitboss-ui] icon \"${key}\" exists in the ${p} icon set but is not bundled: no scanned source file contains the literal \"${key}\" and it is not in \\`icons.whitelist\\`. Write it as a literal, or — if the name is composed at runtime or comes from a database — add it to the plugin's \\`icons.whitelist\\`.`;\n const names = set ?? known(p);\n const sq = n.replace(/-/g, '');\n const sug = names.find((x) => x.replace(/-/g, '') === sq) ?? (n.length >= 3 ? names.find((x) => x.includes(n) || (x.length >= 3 && n.includes(x))) : undefined);\n const hint = sug ? ` — did you mean \"${p}:${sug}\"?` : '';\n if (set) return `[bitboss-ui] icon \"${key}\" does not exist in the ${p} icon set${hint}`;\n return `[bitboss-ui] icon \"${key}\" is not bundled: it is not among the ${p} names found as literals in scanned source, nor in \\`icons.whitelist\\`${hint}. ${fix}; if it is a typo, fix the name.`;\n }\n const pkg = `@iconify-json/${p}`; const cmd = `run: npm install -D ${pkg}`;\n if (ip.has(p)) return `[bitboss-ui] \"${key}\" requires \"${pkg}\" — ${cmd} (${installed})`;\n if (ip.size) return `[bitboss-ui] \"${key}\" — \"${p}\" is neither an installed icon set nor a known Iconify prefix (${installed})`;\n return `[bitboss-ui] \"${key}\" — no installed icon set has the prefix \"${p}\" (${installed}). If \"${p}\" is an Iconify set, ${cmd}`;\n}", I = Function(`return ${ze};`)();
69
+ function Be(e, t) {
69
70
  return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) && N(e, n) !== null);
70
71
  }
71
- function Re(e, t, n, a) {
72
+ function Ve(e, t, n, a) {
72
73
  let o = /* @__PURE__ */ new Set(), s = [], c = new Set(t.keys()), l = /* @__PURE__ */ new Map(), u = (e) => {
73
74
  let r = l.get(e);
74
75
  if (!r) {
75
76
  let i = t.get(e);
76
- r = i ? Le(i, n.get(e)) : [], l.set(e, r);
77
+ r = i ? Be(i, n.get(e)) : [], l.set(e, r);
77
78
  }
78
79
  return r;
79
80
  };
80
81
  for (let l of e) {
81
82
  let e = l.trim(), d = e.indexOf(":"), f = d === -1 ? "" : e.slice(0, d), p = e.slice(d + 1);
82
83
  if (d === -1 || !f || !p) {
83
- s.push(`[bitboss-ui] iconWhitelist entry "${l}" is not a \`prefix:name\` icon name`);
84
+ s.push(`[bitboss-ui] icons.whitelist entry "${l}" is not a \`prefix:name\` icon name`);
84
85
  continue;
85
86
  }
86
87
  if (f === "local") {
87
- s.push(`[bitboss-ui] iconWhitelist entry "${l}" — every \`local:\` icon in iconDir is always bundled; the whitelist is for provider icons only`);
88
+ s.push(`[bitboss-ui] icons.whitelist entry "${l}" — every \`local:\` icon in icons.dir is always bundled; the whitelist is for provider icons only`);
88
89
  continue;
89
90
  }
90
91
  if (!c.has(f)) {
91
- s.push(I(e, c, u, (e) => c.has(e) ? u(e) : null, new Set(a)) ?? `[bitboss-ui] iconWhitelist entry "${l}" does not resolve`);
92
+ s.push(I(e, c, u, (e) => c.has(e) ? u(e) : null, new Set(a)) ?? `[bitboss-ui] icons.whitelist entry "${l}" does not resolve`);
92
93
  continue;
93
94
  }
94
95
  if (i(p)) {
95
96
  let t = r(p), n = u(f).filter((e) => t.test(e));
96
97
  if (n.length === 0) {
97
- s.push(`[bitboss-ui] iconWhitelist glob "${e}" matches no icon in the ${f} icon set`);
98
+ s.push(`[bitboss-ui] icons.whitelist glob "${e}" matches no icon in the ${f} icon set`);
98
99
  continue;
99
100
  }
100
101
  for (let e of n) o.add(`${f}:${e}`);
101
102
  continue;
102
103
  }
103
104
  let ee = t.get(f), m = n.get(f);
104
- N(ee, p) && (!m || m(p)) ? o.add(e) : s.push(I(e, c, u, u, new Set(a)) ?? `[bitboss-ui] iconWhitelist entry "${l}" does not resolve`);
105
+ N(ee, p) && (!m || m(p)) ? o.add(e) : s.push(I(e, c, u, u, new Set(a)) ?? `[bitboss-ui] icons.whitelist entry "${l}" does not resolve`);
105
106
  }
106
107
  return {
107
108
  icons: [...o],
108
109
  errors: s
109
110
  };
110
111
  }
111
- function ze(e, t) {
112
+ function He(e, t) {
112
113
  let n = k(e, "node_modules", ".cache", "bitboss-ui", "version"), r = null;
113
114
  try {
114
115
  r = w(n, "utf-8").trim() || null;
@@ -119,22 +120,22 @@ function ze(e, t) {
119
120
  } catch {}
120
121
  return !r || t === "0" ? null : `[bitboss-ui] upgraded ${r} → ${t}. What breaks between them: npx bitboss-ui changelog --since ${r}`;
121
122
  }
122
- function Be(e) {
123
- let t = Ee(process.cwd(), e);
123
+ function Ue(e) {
124
+ let t = ke(process.cwd(), e);
124
125
  return t && !t.startsWith("..") && !O(t) ? t : e;
125
126
  }
126
- var L = /* @__PURE__ */ new Set();
127
- function Ve(e) {
127
+ var We = /* @__PURE__ */ new Set();
128
+ function Ge(e) {
128
129
  try {
129
130
  return JSON.parse(w(k(e, "..", "package.json"), "utf-8")).version ?? "0";
130
131
  } catch {
131
132
  return "0";
132
133
  }
133
134
  }
134
- function He(e) {
135
+ function Ke(e) {
135
136
  let t = [];
136
137
  try {
137
- t.push(M(k(e, "package.json")).resolve("bitboss-ui/package.json"));
138
+ t.push(j(k(e, "package.json")).resolve("bitboss-ui/package.json"));
138
139
  } catch {}
139
140
  t.push(k(e, "node_modules", "bitboss-ui", "package.json"));
140
141
  for (let e of t) try {
@@ -143,44 +144,44 @@ function He(e) {
143
144
  } catch {}
144
145
  return null;
145
146
  }
146
- function Ue(e, t, n) {
147
+ function qe(e, t, n) {
147
148
  if (!n || !t || t === "0") return null;
148
- let r = He(n);
149
+ let r = Ke(n);
149
150
  return !r || r === t ? null : `[bitboss-ui] cannot serve "${e}": this dev server is running the bitboss-ui ${t} build plugin, but bitboss-ui ${r} is installed now — the package changed while the server was running, and the new runtime imports virtual modules the old plugin does not know. Restart the dev server so it loads the ${r} plugin.`;
150
151
  }
151
- var R = D(j(import.meta.url)), We = () => {
152
- for (let e of [k(R, "ai", "components.json"), k(R, "..", "dist", "ai", "components.json")]) if (S(e)) return e;
152
+ var L = D(Ae(import.meta.url)), Je = () => {
153
+ for (let e of [k(L, "ai", "components.json"), k(L, "..", "dist", "ai", "components.json")]) if (S(e)) return e;
153
154
  return null;
154
- }, Ge = (e) => {
155
+ }, Ye = (e) => {
155
156
  try {
156
157
  let { components: t } = JSON.parse(w(e, "utf-8"));
157
158
  return Array.isArray(t) ? new Map(t.map((e) => [e.name, e])) : null;
158
159
  } catch {
159
160
  return null;
160
161
  }
161
- }, Ke = (e) => Object.keys(v).filter((t) => v[t].includes(e));
162
- function qe(e, t = We()) {
163
- let n = t ? Ge(t) : null;
162
+ }, Xe = (e) => Object.keys(y).filter((t) => y[t].includes(e));
163
+ function Ze(e, t = Je()) {
164
+ let n = t ? Ye(t) : null;
164
165
  if (!n) return null;
165
- for (let t of Object.keys(v)) {
166
- let r = y[t], i = _e(_[t], e[r]);
167
- if (i.length) for (let e of v[t]) {
166
+ for (let t of Object.keys(y)) {
167
+ let r = b[t], i = ye(v[t], e[r]);
168
+ if (i.length) for (let e of y[t]) {
168
169
  let t = n.get(e);
169
170
  if (!t) continue;
170
- let a = new Set(Ke(e).flatMap((e) => [..._[e]])), o = new Set(t.props.map((e) => e.name.split(":")).filter((e) => e[0] === "pt" && e[2] && !a.has(e[2])).map((e) => e[2])), s = i.find((e) => o.has(e));
171
- if (s) return `[bitboss-ui] ${b(r)}: "${s}" is a passthrough state of ${e}, so \`pt:<part>:${s}\` could not tell the state from the variant. Give the variant another name.`;
171
+ let a = new Set(Xe(e).flatMap((e) => [...v[e]])), o = new Set(t.props.map((e) => e.name.split(":")).filter((e) => e[0] === "pt" && e[2] && !a.has(e[2])).map((e) => e[2])), s = i.find((e) => o.has(e));
172
+ if (s) return `[bitboss-ui] ${x(r)}: "${s}" is a passthrough state of ${e}, so \`pt:<part>:${s}\` could not tell the state from the variant. Give the variant another name.`;
172
173
  }
173
174
  }
174
175
  return null;
175
176
  }
176
- function Je(e, t = We(), n = "pt", r = {}) {
177
+ function Qe(e, t = Je(), n = "pt", r = {}) {
177
178
  if (!e || !t) return null;
178
- let i = Ge(t);
179
+ let i = Ye(t);
179
180
  if (!i) return null;
180
181
  for (let [t, a] of Object.entries(e)) {
181
182
  let e = i.get(t);
182
183
  if (!e) {
183
- let e = g(t, [...i.keys()]);
184
+ let e = ce(t, [...i.keys()]);
184
185
  return `[bitboss-ui] ${n}.${t}: no component is called "${t}"${e ? ` — did you mean "${e}"?` : ""}. The map is keyed by component name (ai/guides/passthrough.md).`;
185
186
  }
186
187
  let o = e.props.map((e) => e.name).filter((e) => e.startsWith("pt:"));
@@ -198,27 +199,27 @@ function Je(e, t = We(), n = "pt", r = {}) {
198
199
  }).join(" ")}`;
199
200
  }
200
201
  let [a, l] = e.split(":");
201
- if (l && e.split(":").length === 2 && Ke(t).some((e) => _e(_[e], r[y[e]]).includes(l) && _[e].some((e) => o.includes(`pt:${a}:${e}`)))) continue;
202
+ if (l && e.split(":").length === 2 && Xe(t).some((e) => ye(v[e], r[b[e]]).includes(l) && v[e].some((e) => o.includes(`pt:${a}:${e}`)))) continue;
202
203
  let u = l && s.includes(a) ? o.filter((e) => e.endsWith(`:${l}`)).map((e) => e.split(":")[1]) : [];
203
204
  return `[bitboss-ui] ${n}.${t}.pt["${e}"] matches nothing and would be ignored. ${u.length ? `"${l}" never reaches "${a}" on ${t}; it reaches ${u.join(", ")}.` : s.includes(a) ? c.length === 0 ? `${t} has no states — use "${a}" alone.` : `"${l}" is not a state of ${t}. States: ${c.join(", ")}.` : `"${a}" is not a part of ${t}. Parts: ${s.join(", ")}.`}`;
204
205
  }
205
206
  }
206
207
  return null;
207
208
  }
208
- var z = k(R, "i18n", "locales"), Ye = (e) => {
209
- let t = ne(e);
209
+ var $e = k(L, "i18n", "locales"), et = (e) => {
210
+ let t = h(e);
210
211
  return t ? ` — did you mean '${t}'?` : "";
211
212
  };
212
- function Xe(e) {
213
+ function tt(e) {
213
214
  let t = e.customLocaleKeys ?? [], n = m(e.locale) ?? "en", r = [], i = /* @__PURE__ */ new Set([n, "en"]), a = /* @__PURE__ */ new Set();
214
215
  for (let o of [...e.locale && /[-_]u[-_]/i.test(e.locale) ? [e.locale] : [], ...e.enabledLocales ?? []]) {
215
- let s = oe(o, o === e.locale ? n : void 0);
216
+ let s = _(o, o === e.locale ? n : void 0);
216
217
  if (s) {
217
218
  r.push(s);
218
219
  continue;
219
220
  }
220
221
  let c = m(o);
221
- c ? (i.add(c), /[-_]u[-_]/i.test(o) && a.add(o)) : t.includes(o) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${o}' is not a built-in locale${Ye(o)} — ignored.`);
222
+ c ? (i.add(c), /[-_]u[-_]/i.test(o) && a.add(o)) : t.includes(o) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${o}' is not a built-in locale${et(o)} — ignored.`);
222
223
  }
223
224
  return {
224
225
  enabled: [...i].sort(),
@@ -227,14 +228,14 @@ function Xe(e) {
227
228
  warnings: r
228
229
  };
229
230
  }
230
- function Ze(e) {
231
+ function nt(e) {
231
232
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = [], i = /* @__PURE__ */ new Set();
232
233
  for (let a of [e.locale ?? "en", ...e.enabledLocales ?? []]) {
233
234
  let e = m(a);
234
- if (!e || oe(a)) continue;
235
- for (let { id: e, message: t } of ce(a)) i.has(e) || (i.add(e), r.push(t));
235
+ if (!e || _(a)) continue;
236
+ for (let { id: e, message: t } of ae(a)) i.has(e) || (i.add(e), r.push(t));
236
237
  let o = te(a), s = p[e].calendar;
237
- o.ca && ae.includes(o.ca) && (s = o.ca === "gregory" ? void 0 : o.ca), o.nu && se(o.nu) && n.add(o.nu), s && t.add(s);
238
+ o.ca && re.includes(o.ca) && (s = o.ca === "gregory" ? void 0 : o.ca), o.nu && ie(o.nu) && n.add(o.nu), s && t.add(s);
238
239
  }
239
240
  return {
240
241
  calendars: [...t].sort(),
@@ -242,7 +243,7 @@ function Ze(e) {
242
243
  warnings: r
243
244
  };
244
245
  }
245
- function Qe(e, t, n = R) {
246
+ function rt(e, t, n = L) {
246
247
  let r = (e, t) => JSON.stringify(S(k(n, e)) ? k(n, e) : k(n, t)), i = r("calendar-runtime.js", "utilities/calendar/runtime.ts");
247
248
  if (!e.length && !t.extended) {
248
249
  let e = Object.fromEntries([.../* @__PURE__ */ new Set(["en", ...t.enabled])].map((e) => {
@@ -253,29 +254,29 @@ function Qe(e, t, n = R) {
253
254
  }
254
255
  let a = {};
255
256
  for (let n of t.enabled) for (let t of e) {
256
- let e = re[n]?.[t];
257
+ let e = g[n]?.[t];
257
258
  e && ((a[n] ??= {})[t] = e);
258
259
  }
259
- let o = e.map((e) => ie[e]);
260
+ let o = e.map((e) => ne[e]);
260
261
  return (o.length ? `import { ${o.join(", ")} } from ${r("calendars.js", "utilities/calendar/international.ts")};\n` : "") + `import { createLocaleSeams, formatDigits } from ${i};\nexport { formatDigits };\nexport const calendars = {\n${e.map((e, t) => `\t${JSON.stringify(e)}: ${o[t]}(),`).join("\n")}\n};\nexport const { hasCalendar, localeOf, intlLocaleOf, calendarSystemOf, formatCalendarDate } = createLocaleSeams(calendars, ${JSON.stringify(t.enabled)}, ${JSON.stringify([.../* @__PURE__ */ new Set(["latn", ...t.numberingSystems ?? []])])}, ${JSON.stringify(a)});\n`;
261
262
  }
262
- function $e(e) {
263
+ function it(e) {
263
264
  let t = /* @__PURE__ */ new Map();
264
265
  for (let n of e) {
265
266
  let e = p[n].dictionary;
266
- t.has(e) || t.set(e, JSON.parse(w(k(z, `${e}.json`), "utf-8")));
267
+ t.has(e) || t.set(e, JSON.parse(w(k($e, `${e}.json`), "utf-8")));
267
268
  }
268
269
  let n = [...t].map(([e, t]) => `\t${JSON.stringify(e)}: ${JSON.stringify(t)},`), r = [];
269
270
  for (let n of e) {
270
271
  let { tag: e, dictionary: i } = p[n];
271
272
  if (f[i] === e) continue;
272
- let a = h(t.get(i).datePickerInput, e, f[i]);
273
+ let a = oe(t.get(i).datePickerInput, e, f[i]);
273
274
  a && r.push(`\t${JSON.stringify(n)}: ${JSON.stringify({ datePickerInput: a })},`);
274
275
  }
275
276
  return `export const locales = {\n${n.join("\n")}\n};\nexport const regionFormats = {\n${r.join("\n")}\n};\n`;
276
277
  }
277
- function et(e) {
278
- let t = M(import.meta.url), n = [], r = [];
278
+ function at(e) {
279
+ let t = j(import.meta.url), n = [], r = [];
279
280
  for (let i of e) {
280
281
  let e = m(i), a = e ? p[e].dayjs : i;
281
282
  if (a !== null) try {
@@ -292,22 +293,22 @@ function et(e) {
292
293
  missing: r
293
294
  };
294
295
  }
295
- function tt(e) {
296
+ function ot(e) {
296
297
  let t = [...new Set(e.map(({ pack: e }) => e))];
297
298
  return `${t.map((e, t) => `import l${t} from ${JSON.stringify(`dayjs/locale/${e}`)};`).join("\n")}\nexport const dayjsLocales = {\n${e.map(({ key: e, pack: n }) => `\t${JSON.stringify(e)}: l${t.indexOf(n)},`).join("\n")}\n};\n`;
298
299
  }
299
- function nt(e, t, n = R, r) {
300
+ function st(e, t, n = L, r) {
300
301
  if (e === !1) return "export default null;\n";
301
302
  let i;
302
303
  if (e === void 0) {
303
304
  let e = k(n, "passthrough-deduper.js");
304
305
  i = S(e) ? e : k(n, "utils/passthroughDeduper.ts");
305
- let a = r ?? st(t);
306
+ let a = r ?? V(t);
306
307
  if (Object.keys(a).length) return `import { createPassthroughDeduper } from ${JSON.stringify(i)};\nexport default createPassthroughDeduper(${JSON.stringify(a)});\n`;
307
308
  } else i = e.startsWith(".") || O(e) ? A(t, e) : e;
308
309
  return `export { default } from ${JSON.stringify(i)};\n`;
309
310
  }
310
- var B = [
311
+ var ct = [
311
312
  "inset-shadow",
312
313
  "drop-shadow",
313
314
  "text-shadow",
@@ -326,7 +327,7 @@ var B = [
326
327
  "ease",
327
328
  "font",
328
329
  "text"
329
- ], V = /* @__PURE__ */ new Set([
330
+ ], R = /* @__PURE__ */ new Set([
330
331
  "node_modules",
331
332
  "dist",
332
333
  "build",
@@ -339,28 +340,28 @@ var B = [
339
340
  "public",
340
341
  "coverage"
341
342
  ]);
342
- function rt(e) {
343
+ function lt(e) {
343
344
  let t = {};
344
345
  for (let n of e.matchAll(/@theme\b[^{]*\{([^}]*)\}/g)) for (let [, e] of n[1].matchAll(/--([a-z0-9-]+)\s*:/g)) {
345
346
  if (e.includes("--")) continue;
346
- let n = B.find((t) => e.startsWith(`${t}-`));
347
+ let n = ct.find((t) => e.startsWith(`${t}-`));
347
348
  n && (t[n] ??= /* @__PURE__ */ new Set()).add(e.slice(n.length + 1));
348
349
  }
349
350
  return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, [...t]]));
350
351
  }
351
- function H(e) {
352
+ function z(e) {
352
353
  let t = {};
353
354
  for (let n of e) for (let [e, r] of Object.entries(n)) for (let n of r) (t[e] ??= /* @__PURE__ */ new Set()).add(n);
354
355
  return Object.fromEntries(Object.keys(t).sort().map((e) => [e, [...t[e]].sort()]));
355
356
  }
356
- function it(e, t) {
357
+ function ut(e, t) {
357
358
  if (!t.endsWith(".css")) return !1;
358
- let n = Ee(e, t);
359
+ let n = ke(e, t);
359
360
  if (!n || n.startsWith("..") || O(n)) return !1;
360
361
  let r = n.split(/[\\/]/);
361
- return r.length <= 7 && !r.some((e) => V.has(e));
362
+ return r.length <= 7 && !r.some((e) => R.has(e));
362
363
  }
363
- function at(e) {
364
+ function dt(e) {
364
365
  let t = /* @__PURE__ */ new Map(), n = (e, r) => {
365
366
  let i = (() => {
366
367
  try {
@@ -371,35 +372,35 @@ function at(e) {
371
372
  })();
372
373
  for (let a of i) {
373
374
  let i = k(e, a.name);
374
- if (a.isDirectory()) r < 6 && !V.has(a.name) && n(i, r + 1);
375
+ if (a.isDirectory()) r < 6 && !R.has(a.name) && n(i, r + 1);
375
376
  else if (a.name.endsWith(".css")) {
376
- let e = ot(i);
377
+ let e = B(i);
377
378
  Object.keys(e).length && t.set(i, e);
378
379
  }
379
380
  }
380
381
  };
381
382
  return e && n(e, 0), t;
382
383
  }
383
- var ot = (e) => {
384
+ var B = (e) => {
384
385
  try {
385
- return rt(w(e, "utf-8"));
386
+ return lt(w(e, "utf-8"));
386
387
  } catch {
387
388
  return {};
388
389
  }
389
390
  };
390
- function st(e) {
391
- return H(at(e).values());
391
+ function V(e) {
392
+ return z(dt(e).values());
392
393
  }
393
- function ct(e) {
394
+ function ft(e) {
394
395
  return e === void 0 || e === !1 || typeof e == "string" && e.trim() ? null : "[bitboss-ui] passthroughDeduper must be false or a module path whose default export is (className: string) => string, e.g. passthroughDeduper: './src/utils/cn.ts'. Remove the key to use the bundled tailwind-merge.";
395
396
  }
396
- var lt = "@inertiajs/vue3", U = [
397
+ var H = "@inertiajs/vue3", pt = [
397
398
  "dependencies",
398
399
  "devDependencies",
399
400
  "peerDependencies",
400
401
  "optionalDependencies"
401
402
  ];
402
- function W(e) {
403
+ function mt(e) {
403
404
  let t = A(e);
404
405
  for (;;) {
405
406
  let e = k(t, "package.json");
@@ -413,13 +414,13 @@ function W(e) {
413
414
  t = n;
414
415
  }
415
416
  }
416
- function G(e, t) {
417
- return U.some((n) => {
417
+ function U(e, t) {
418
+ return pt.some((n) => {
418
419
  let r = e[n];
419
420
  return typeof r == "object" && !!r && t in r;
420
421
  });
421
422
  }
422
- function ut(e, t) {
423
+ function ht(e, t) {
423
424
  let n = t.split("/"), r = A(e);
424
425
  for (;;) {
425
426
  if (S(k(r, "node_modules", ...n))) return !0;
@@ -428,14 +429,14 @@ function ut(e, t) {
428
429
  r = e;
429
430
  }
430
431
  }
431
- function dt(e) {
432
- let t = W(e);
433
- return !t || !G(t, lt) ? !1 : ut(e, lt);
432
+ function gt(e) {
433
+ let t = mt(e);
434
+ return !t || !U(t, H) ? !1 : ht(e, H);
434
435
  }
435
- function ft(e) {
436
+ function _t(e) {
436
437
  return e ? "export { Link as InertiaLink } from '@inertiajs/vue3';\n" : "export const InertiaLink = null;\n";
437
438
  }
438
- var pt = [
439
+ var vt = [
439
440
  "@floating-ui/vue",
440
441
  "@tanstack/vue-virtual",
441
442
  "@vueuse/core",
@@ -450,34 +451,34 @@ var pt = [
450
451
  "maska/vue",
451
452
  "mime",
452
453
  "tailwind-merge"
453
- ], mt = ["bitboss-ui"], ht = "@internationalized/date", gt = lt, K = "bitboss-ui";
454
- function _t(e) {
455
- return typeof e == "string" ? e === K : (e.lastIndex = 0, e.test(K));
454
+ ], yt = ["bitboss-ui"], bt = "@internationalized/date", xt = H, W = "bitboss-ui";
455
+ function G(e) {
456
+ return typeof e == "string" ? e === W : (e.lastIndex = 0, e.test(W));
456
457
  }
457
- function vt(e) {
458
- return e === !0 ? [] : e == null || e === !1 ? [K] : (Array.isArray(e) ? e : [e]).some(_t) ? [] : [K];
458
+ function St(e) {
459
+ return e === !0 ? [] : e == null || e === !1 ? [W] : (Array.isArray(e) ? e : [e]).some(G) ? [] : [W];
459
460
  }
460
- var yt = "virtual:bitboss-ui/icons", bt = "\0virtual:bitboss-ui/icons", xt = "virtual:bitboss-ui/config", St = "\0virtual:bitboss-ui/config", Ct = "virtual:bitboss-ui/dayjs-locales", wt = "\0virtual:bitboss-ui/dayjs-locales", Tt = "virtual:bitboss-ui/calendars", Et = "\0virtual:bitboss-ui/calendars", Dt = "virtual:bitboss-ui/locales", Ot = "\0virtual:bitboss-ui/locales", kt = "virtual:bitboss-ui/styles", At = "\0virtual:bitboss-ui/styles", jt = "virtual:bitboss-ui/vee-validate-missing", Mt = "\0virtual:bitboss-ui/vee-validate-missing", Nt = "bitboss-ui:vee-validate-missing", Pt = "[bitboss-ui] BbForm needs vee-validate, which is not installed: run `npm i vee-validate` (an optional peer, >=4.10.0 <5). An app without forms needs nothing.", Ft = ["useForm", "useField"];
461
- function It() {
461
+ var Ct = "virtual:bitboss-ui/icons", wt = "\0virtual:bitboss-ui/icons", Tt = "virtual:bitboss-ui/config", Et = "\0virtual:bitboss-ui/config", Dt = "virtual:bitboss-ui/dayjs-locales", Ot = "\0virtual:bitboss-ui/dayjs-locales", kt = "virtual:bitboss-ui/calendars", At = "\0virtual:bitboss-ui/calendars", jt = "virtual:bitboss-ui/locales", Mt = "\0virtual:bitboss-ui/locales", Nt = "virtual:bitboss-ui/styles", Pt = "\0virtual:bitboss-ui/styles", Ft = "virtual:bitboss-ui/vee-validate-missing", It = "\0virtual:bitboss-ui/vee-validate-missing", Lt = "bitboss-ui:vee-validate-missing", K = "[bitboss-ui] BbForm needs vee-validate, which is not installed: run `npm i vee-validate` (an optional peer, >=4.10.0 <5). An app without forms needs nothing.", Rt = ["useForm", "useField"];
462
+ function zt() {
462
463
  return [
463
- `const fail = () => { throw new Error(${JSON.stringify(Pt)} + ' (${Nt})'); };`,
464
- ...Ft.map((e) => `export const ${e} = fail;`),
464
+ `const fail = () => { throw new Error(${JSON.stringify(K)} + ' (${Lt})'); };`,
465
+ ...Rt.map((e) => `export const ${e} = fail;`),
465
466
  ""
466
467
  ].join("\n");
467
468
  }
468
- function Lt(e) {
469
+ function Bt(e) {
469
470
  return /import\s*\{[^}]*\bBbForm\b[^}]*\}\s*from\s*['"]bitboss-ui(?:\/validated)?['"]/.test(e) || /<(?:BbForm|bb-form)[\s>/]/.test(e) || /resolveComponent\(\s*['"](?:BbForm|bb-form)['"]/.test(e);
470
471
  }
471
- var Rt = "virtual:bitboss-ui/link", zt = "\0virtual:bitboss-ui/link", Bt = "virtual:bitboss-ui/passthrough-deduper", Vt = "\0virtual:bitboss-ui/passthrough-deduper";
472
- function Ht() {
473
- let e = k(R, "styles.css");
472
+ var Vt = "virtual:bitboss-ui/link", Ht = "\0virtual:bitboss-ui/link", Ut = "virtual:bitboss-ui/passthrough-deduper", Wt = "\0virtual:bitboss-ui/passthrough-deduper";
473
+ function Gt() {
474
+ let e = k(L, "styles.css");
474
475
  return S(e) ? w(e, "utf-8") : ["main.css", "variables.css"].map((e) => {
475
- let t = k(R, "assets/css", e);
476
+ let t = k(L, "assets/css", e);
476
477
  return S(t) ? w(t, "utf-8") : "";
477
478
  }).join("\n");
478
479
  }
479
- var Ut = "local", Wt = "./assets/icons";
480
- function Gt(e) {
480
+ var Kt = "local", qt = "./assets/icons";
481
+ function Jt(e) {
481
482
  let t = {};
482
483
  try {
483
484
  let n = T(e, {
@@ -485,15 +486,15 @@ function Gt(e) {
485
486
  encoding: "utf-8"
486
487
  }).filter((e) => e.endsWith(".svg"));
487
488
  for (let r of n) {
488
- let n = Te(r, ".svg");
489
+ let n = Oe(r, ".svg");
489
490
  try {
490
- let i = ke(w(k(e, r), "utf-8")), a = i && De(i);
491
+ let i = Me(w(k(e, r), "utf-8")), a = i && M(i);
491
492
  a && (t[n] = a);
492
493
  } catch {}
493
494
  }
494
495
  } catch {}
495
496
  return {
496
- prefix: Ut,
497
+ prefix: Kt,
497
498
  info: {
498
499
  name: "Local",
499
500
  author: { name: "Icons automatically inferred from the icons installed locally" },
@@ -502,12 +503,12 @@ function Gt(e) {
502
503
  icons: t
503
504
  };
504
505
  }
505
- var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJsonPaths", Y = "tailwindCSS.classAttributes", X = "tailwindCSS.experimental.classRegex", Kt = "editor.quickSuggestions", Z = "pt(?::[\\w&-]+)*", qt = [
506
+ var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJsonPaths", Y = "tailwindCSS.classAttributes", X = "tailwindCSS.experimental.classRegex", Yt = "editor.quickSuggestions", Z = "pt(?::[\\w&-]+)*", Xt = [
506
507
  "class",
507
508
  "className",
508
509
  "ngClass",
509
510
  "class:list"
510
- ], Jt = "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w&-]+)*\\s*=\\s*", Yt = [
511
+ ], Zt = "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w&-]+)*\\s*=\\s*", Qt = [
511
512
  "\\?\\s*'([^\\s':][^']*)'",
512
513
  "'([^\\s':][^']*)'(?!\\s*:)",
513
514
  "\\?\\s*\"([^\\s\":][^\"]*)\"",
@@ -515,25 +516,25 @@ var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJs
515
516
  "\\?\\s*`([^\\s`:][^`]*)`",
516
517
  "`([^\\s`:][^`]*)`(?!\\s*:)"
517
518
  ], Q = [
518
- `${Jt}"([\\s\\S]*?)"`,
519
- `${Jt}'([\\s\\S]*?)'`,
519
+ `${Zt}"([\\s\\S]*?)"`,
520
+ `${Zt}'([\\s\\S]*?)'`,
520
521
  "\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}"
521
- ].flatMap((e) => Yt.map((t) => [e, t])), Xt = { strings: "on" }, Zt = () => ({
522
+ ].flatMap((e) => Qt.map((t) => [e, t])), $t = { strings: "on" }, en = () => ({
522
523
  [J]: [q],
523
- [Y]: [...qt, Z],
524
+ [Y]: [...Xt, Z],
524
525
  [X]: Q,
525
- [Kt]: Xt
526
+ [Yt]: $t
526
527
  });
527
- function Qt(e, t) {
528
+ function tn(e, t) {
528
529
  let n = k(t, q);
529
530
  try {
530
- return C(D(n), { recursive: !0 }), E(n, JSON.stringify(Gt(e)), "utf-8"), null;
531
+ return C(D(n), { recursive: !0 }), E(n, JSON.stringify(Jt(e)), "utf-8"), null;
531
532
  } catch (e) {
532
- return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${on}`;
533
+ return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${ln}`;
533
534
  }
534
535
  }
535
- function $t(e, t) {
536
- if (e === Wt) return null;
536
+ function nn(e, t) {
537
+ if (e === qt) return null;
537
538
  let n = 0;
538
539
  try {
539
540
  n = T(t, {
@@ -541,11 +542,11 @@ function $t(e, t) {
541
542
  encoding: "utf-8"
542
543
  }).filter((e) => e.endsWith(".svg")).length;
543
544
  } catch {
544
- return `[bitboss-ui] iconDir "${e}" resolves to ${t}, which does not exist — no \`local:\` icon will render. A relative iconDir resolves from the Vite root (under Nuxt, \`app/\`).`;
545
+ return `[bitboss-ui] icons.dir "${e}" resolves to ${t}, which does not exist — no \`local:\` icon will render. A relative icons.dir resolves from the Vite root (under Nuxt, \`app/\`).`;
545
546
  }
546
- return n > 0 ? null : `[bitboss-ui] iconDir "${e}" resolves to ${t}, which contains no .svg files — no \`local:\` icon will render. A relative iconDir resolves from the Vite root (under Nuxt, \`app/\`).`;
547
+ return n > 0 ? null : `[bitboss-ui] icons.dir "${e}" resolves to ${t}, which contains no .svg files — no \`local:\` icon will render. A relative icons.dir resolves from the Vite root (under Nuxt, \`app/\`).`;
547
548
  }
548
- function en(e) {
549
+ function rn(e) {
549
550
  let t = "", n = !1, r = !1, i = !1;
550
551
  for (let a = 0; a < e.length; a++) {
551
552
  let o = e[a], s = e[a + 1];
@@ -553,8 +554,8 @@ function en(e) {
553
554
  }
554
555
  return t;
555
556
  }
556
- var tn = (e) => e === " " || e === " " || e === "\n" || e === "\r";
557
- function nn(e, t) {
557
+ var an = (e) => e === " " || e === " " || e === "\n" || e === "\r";
558
+ function on(e, t) {
558
559
  let n = !1, r = !1;
559
560
  for (let i = t; i < e.length; i++) {
560
561
  let t = e[i], a = e[i + 1];
@@ -562,11 +563,11 @@ function nn(e, t) {
562
563
  else if (r) t === "*" && a === "/" && (r = !1, i++);
563
564
  else if (t === "/" && a === "/") n = !0, i++;
564
565
  else if (t === "/" && a === "*") r = !0, i++;
565
- else if (!tn(t)) return i;
566
+ else if (!an(t)) return i;
566
567
  }
567
568
  return -1;
568
569
  }
569
- function rn(e, t) {
570
+ function sn(e, t) {
570
571
  let n = !1, r = !1, i = !1, a = -1, o = 0, s = null;
571
572
  for (let c = 0; c < e.length; c++) {
572
573
  let l = e[c], u = e[c + 1];
@@ -581,19 +582,19 @@ function rn(e, t) {
581
582
  } else if (l === "/" && u === "/") n = !0, c++;
582
583
  else if (l === "/" && u === "*") r = !0, c++;
583
584
  else if (l === "\"") i = !0, a = c;
584
- else if (!tn(l)) {
585
+ else if (!an(l)) {
585
586
  if (l === ":" && s !== null) {
586
587
  let n = s === t;
587
588
  if (s = null, !n) continue;
588
- let r = nn(e, c + 1);
589
- return r === -1 || e[r] !== "[" ? null : an(e, r);
589
+ let r = on(e, c + 1);
590
+ return r === -1 || e[r] !== "[" ? null : cn(e, r);
590
591
  }
591
592
  s = null, l === "{" || l === "[" ? o++ : (l === "}" || l === "]") && o--;
592
593
  }
593
594
  }
594
595
  return null;
595
596
  }
596
- function an(e, t) {
597
+ function cn(e, t) {
597
598
  let n = !1, r = !1, i = !1, a = 0, o = -1;
598
599
  for (let s = t; s < e.length; s++) {
599
600
  let c = e[s], l = e[s + 1];
@@ -608,7 +609,7 @@ function an(e, t) {
608
609
  } else if (c === "/" && l === "/") n = !0, s++;
609
610
  else if (c === "/" && l === "*") r = !0, s++;
610
611
  else if (c === "\"") i = !0, o = s + 1;
611
- else if (!tn(c)) {
612
+ else if (!an(c)) {
612
613
  if (c === "[" || c === "{") a++, s > t && (o = s + 1);
613
614
  else if (c === "]" || c === "}") {
614
615
  if (a--, a === 0 && c === "]") return {
@@ -622,10 +623,10 @@ function an(e, t) {
622
623
  }
623
624
  return null;
624
625
  }
625
- var on = "Set `vscodeSettings: false` in the plugin options to disable this write.", $ = `add "${J}": ["${q}"], "${Y}" (include ${JSON.stringify(Z)}), and "${X}" for passthrough IntelliSense`, sn = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" && (e === "pt(?::[\\w&-]+)*" || e === "pt" || e.startsWith("pt:") || e.startsWith("pt("))), cn = (e) => Array.isArray(e) ? Q.filter((t) => !e.some((e) => JSON.stringify(e) === JSON.stringify(t))) : [...Q], ln = (e) => JSON.stringify(e, null, " ").replace(/\n/g, "\n ");
626
- function un(e, t, n) {
626
+ var ln = "Set `vscodeSettings: false` in the plugin options to disable this write.", $ = `add "${J}": ["${q}"], "${Y}" (include ${JSON.stringify(Z)}), and "${X}" for passthrough IntelliSense`, un = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" && (e === "pt(?::[\\w&-]+)*" || e === "pt" || e.startsWith("pt:") || e.startsWith("pt("))), dn = (e) => Array.isArray(e) ? Q.filter((t) => !e.some((e) => JSON.stringify(e) === JSON.stringify(t))) : [...Q], fn = (e) => JSON.stringify(e, null, " ").replace(/\n/g, "\n ");
627
+ function pn(e, t, n) {
627
628
  if (n.length === 0) return e;
628
- let r = rn(e, t);
629
+ let r = sn(e, t);
629
630
  if (!r) return null;
630
631
  if (r.lastSignificantEnd === -1) return e.slice(0, r.close) + n.join(", ") + e.slice(r.close);
631
632
  if (e.slice(r.open + 1, r.close).includes("\n")) {
@@ -634,17 +635,17 @@ function un(e, t, n) {
634
635
  }
635
636
  return e.slice(0, r.lastSignificantEnd) + `, ${n.join(", ")}` + e.slice(r.lastSignificantEnd);
636
637
  }
637
- function dn(e, t, n) {
638
+ function mn(e, t, n) {
638
639
  if (t.length === 0) return e;
639
- let r = nn(e, 0);
640
+ let r = on(e, 0);
640
641
  if (r === -1 || e[r] !== "{") return null;
641
642
  let i = t.map((e, r) => {
642
643
  let i = r === t.length - 1, a = n || !i ? "," : "", o = n || !i ? "" : "\n";
643
- return `\n\t${JSON.stringify(e.key)}: ${ln(e.value)}${a}${o}`;
644
+ return `\n\t${JSON.stringify(e.key)}: ${fn(e.value)}${a}${o}`;
644
645
  }).join("");
645
646
  return e.slice(0, r + 1) + i + e.slice(r + 1);
646
647
  }
647
- function fn(e, t) {
648
+ function hn(e, t) {
648
649
  let n = k(e, ".vscode"), r = k(n, "settings.json"), i = "";
649
650
  try {
650
651
  i = w(r, "utf-8");
@@ -655,34 +656,34 @@ function fn(e, t) {
655
656
  try {
656
657
  return C(n, { recursive: !0 }), E(r, e, "utf-8"), !0;
657
658
  } catch (e) {
658
- return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${on}`), !1;
659
+ return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${ln}`), !1;
659
660
  }
660
661
  };
661
662
  if (!i.trim()) {
662
- if (!s(JSON.stringify(Zt(), null, " ") + "\n")) return;
663
- t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${Kt}". ${on}`);
663
+ if (!s(JSON.stringify(en(), null, " ") + "\n")) return;
664
+ t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${Yt}". ${ln}`);
664
665
  return;
665
666
  }
666
667
  let c;
667
668
  try {
668
- c = JSON.parse(en(i));
669
+ c = JSON.parse(rn(i));
669
670
  } catch {
670
671
  t.warn(`[bitboss-ui] Could not parse .vscode/settings.json — ${$}.`);
671
672
  return;
672
673
  }
673
674
  let l = (e) => {
674
675
  try {
675
- return c = JSON.parse(en(e)), i = e, !0;
676
+ return c = JSON.parse(rn(e)), i = e, !0;
676
677
  } catch {
677
678
  return t.warn(`[bitboss-ui] Could not parse .vscode/settings.json after splice — ${$}.`), !1;
678
679
  }
679
680
  }, u = (e, n, r) => {
680
681
  if (!Array.isArray(c[e])) return t.warn(`[bitboss-ui] .vscode/settings.json has a non-array "${e}" — ${$}.`), !1;
681
- let a = un(i, e, n);
682
+ let a = pn(i, e, n);
682
683
  return a ? l(a) ? (o(r), !0) : !1 : (t.warn(`[bitboss-ui] Could not locate "${e}" in .vscode/settings.json — ${$}.`), !1);
683
684
  };
684
- if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && J in c && u(J, [JSON.stringify(q)], `added "${q}" to "${J}"`), Y in c && !sn(c[Y]) && u(Y, [JSON.stringify(Z)], `added ${JSON.stringify(Z)} to "${Y}"`), X in c) {
685
- let e = cn(c[X]);
685
+ if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && J in c && u(J, [JSON.stringify(q)], `added "${q}" to "${J}"`), Y in c && !un(c[Y]) && u(Y, [JSON.stringify(Z)], `added ${JSON.stringify(Z)} to "${Y}"`), X in c) {
686
+ let e = dn(c[X]);
686
687
  e.length > 0 && u(X, e.map((e) => JSON.stringify(e)), `added ${e.length} "${X}" ${e.length === 1 ? "entry" : "entries"} for passthrough`);
687
688
  }
688
689
  let d = [];
@@ -691,22 +692,22 @@ function fn(e, t) {
691
692
  value: [q]
692
693
  }), Y in c || d.push({
693
694
  key: Y,
694
- value: [...qt, Z]
695
+ value: [...Xt, Z]
695
696
  }), X in c || d.push({
696
697
  key: X,
697
698
  value: Q
698
- }), Kt in c || d.push({
699
- key: Kt,
700
- value: Xt
699
+ }), Yt in c || d.push({
700
+ key: Yt,
701
+ value: $t
701
702
  }), d.length > 0) {
702
- let e = Object.keys(c).length > 0, n = dn(i, d, e);
703
+ let e = Object.keys(c).length > 0, n = mn(i, d, e);
703
704
  if (!n) t.warn(`[bitboss-ui] .vscode/settings.json is not a JSON object — ${$}.`);
704
705
  else if (l(n)) for (let e of d) o(`added "${e.key}"`);
705
706
  }
706
- a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${on}`);
707
+ a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${ln}`);
707
708
  }
708
- var pn = "virtual:bb-icon/", mn = "\0virtual:bb-icon/";
709
- async function hn(e, t, n) {
709
+ var gn = "virtual:bb-icon/", _n = "\0virtual:bb-icon/";
710
+ async function vn(e, t, n) {
710
711
  try {
711
712
  let [{ syncAgentSetup: r }, i] = await Promise.all([import(
712
713
  /* @vite-ignore */
@@ -729,7 +730,10 @@ async function hn(e, t, n) {
729
730
  e && n.warn(e);
730
731
  return;
731
732
  }
732
- let { results: c, notes: l } = r(a, { ai: s }), u = c.filter((e) => ![
733
+ let { results: c, notes: l } = r(a, {
734
+ ai: s,
735
+ cleanup: !1
736
+ }), u = c.filter((e) => ![
733
737
  "unchanged",
734
738
  "skipped",
735
739
  "kept"
@@ -744,107 +748,110 @@ async function hn(e, t, n) {
744
748
  n.warn(`[bitboss-ui] agent setup failed (${t})`);
745
749
  }
746
750
  }
747
- var gn = Symbol.for("bitboss-ui:editorRoot");
748
- function _n(e = {}) {
749
- let n = pe(e);
751
+ var yn = Symbol.for("bitboss-ui:editorRoot");
752
+ function bn(e = {}) {
753
+ let n = fe(e);
750
754
  if (n) throw Error(n);
751
- let r = me(e);
755
+ let r = pe(e);
752
756
  if (r) throw Error(r);
753
- let i = We(), a = i ? [...Ge(i)?.keys() ?? []] : void 0, s = de(e.components, {
754
- variantComponents: ge,
757
+ let i = Je(), a = i ? [...Ye(i)?.keys() ?? []] : void 0, s = ue(e.components, {
758
+ variantComponents: ve,
755
759
  knownComponents: a
756
760
  });
757
761
  if (s) throw Error(s);
758
- let c = fe(e.configScopes, {
759
- variantComponents: ge,
762
+ let c = de(e.configScopes, {
763
+ variantComponents: ve,
760
764
  knownComponents: a
761
765
  });
762
766
  if (c) throw Error(c);
763
- let { components: l } = e, f = {
764
- iconDir: Wt,
767
+ let { components: l } = e, f = _e(e.icons);
768
+ if (f) throw Error(f);
769
+ let te = he(e.icons, e.components), h = {
765
770
  ...e,
766
- ...ye(l),
767
- pt: ue(l)
768
- }, te = e[gn], ne = Ve(R);
769
- if ("cssLayers" in f && f.cssLayers === void 0) throw Error("[bitboss-ui] cssLayers is present but undefined. If you passed an imported constant such as TAILWIND_V4_LAYERS, the installed bitboss-ui does not export it (older dist?) — upgrade, or pass the array literal. Remove the key entirely for an unlayered sheet.");
770
- let re = u(f.cssLayers, { resetCss: f.resetCss ?? !1 });
771
+ iconDir: e.icons?.dir ?? qt,
772
+ iconWhitelist: e.icons?.whitelist ?? [],
773
+ ...xe(l),
774
+ pt: le(l)
775
+ }, g = e[yn], ne = Ge(L);
776
+ if ("cssLayers" in h && h.cssLayers === void 0) throw Error("[bitboss-ui] cssLayers is present but undefined. If you passed an imported constant such as TAILWIND_V4_LAYERS, the installed bitboss-ui does not export it (older dist?) — upgrade, or pass the array literal. Remove the key entirely for an unlayered sheet.");
777
+ let re = u(h.cssLayers, { resetCss: h.resetCss ?? !1 });
771
778
  if (re) throw Error(re);
772
- let ie = le(f.pt);
779
+ let ie = se(h.pt);
773
780
  if (ie) throw Error(ie);
774
- let ae = qe(f);
781
+ let ae = Ze(h);
775
782
  if (ae) throw Error(ae);
776
- let se = Je(f.pt, void 0, "components", f);
777
- if (se) throw Error(se);
778
- for (let [e, t] of Object.entries(f.configScopes ?? {})) {
779
- let n = Je(ue(t), void 0, `configScopes.${e}`, f);
783
+ let oe = Qe(h.pt, void 0, "components", h);
784
+ if (oe) throw Error(oe);
785
+ for (let [e, t] of Object.entries(h.configScopes ?? {})) {
786
+ let n = Qe(le(t), void 0, `configScopes.${e}`, h);
780
787
  if (n) throw Error(n);
781
788
  }
782
- let ce = ct(f.passthroughDeduper);
789
+ let ce = ft(h.passthroughDeduper);
783
790
  if (ce) throw Error(ce);
784
- let h, g, v, b, x = !0, C = [], T = !1, E, D, O = !1, k = (e, t, n) => {
785
- let r = Qt(e, t);
786
- r && !O && (O = !0, n(r));
787
- }, j = {
791
+ let y, x, De, C, T = !0, E = [], D = !1, O, k, Ae = !1, j = (e, t, n) => {
792
+ let r = tn(e, t);
793
+ r && !Ae && (Ae = !0, n(r));
794
+ }, M = {
788
795
  info: (e) => console.warn(e),
789
796
  warn: (e) => console.warn(e)
790
- }, M = [], De = [], Oe = [], { enabled: P, defaultLocale: ke, extended: F, warnings: Ne } = Xe({
791
- locale: f.locale,
792
- enabledLocales: f.enabledLocales,
793
- customLocaleKeys: M
794
- }), { calendars: I, numberingSystems: He, warnings: Ke } = Ze({
795
- locale: f.locale,
796
- enabledLocales: f.enabledLocales
797
- }), z = et([...P, ...M]), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Set(), st = () => {
798
- B.clear(), V.clear(), ot = Fe(h);
799
- for (let e of Pe(h)) B.set(e.prefix, e), V.set(e.prefix, (t) => Me(e.prefix, t));
797
+ }, P = [], je = [], Me = [], { enabled: F, defaultLocale: Ie, extended: I, warnings: Ke } = tt({
798
+ locale: h.locale,
799
+ enabledLocales: h.enabledLocales,
800
+ customLocaleKeys: P
801
+ }), { calendars: Xe, numberingSystems: $e, warnings: ct } = nt({
802
+ locale: h.locale,
803
+ enabledLocales: h.enabledLocales
804
+ }), R = at([...F, ...P]), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Set(), pt = () => {
805
+ B.clear(), V.clear(), H = Re(y);
806
+ for (let e of Le(y)) B.set(e.prefix, e), V.set(e.prefix, (t) => Fe(e.prefix, t));
800
807
  U = null, W = null;
801
- }, lt = (e, t) => {
808
+ }, mt = (e, t) => {
802
809
  let n = B.get(e);
803
810
  if (!n) return !1;
804
811
  let r = V.get(e);
805
812
  return N(n, t) !== null && (!r || r(t));
806
- }, U = null, W = null, G = null, K = () => W || (W = (async () => {
807
- let e = f.iconsScanner ?? {}, n = JSON.stringify({
808
- version: Ve(R),
813
+ }, U = null, W = null, G = null, Rt = () => W || (W = (async () => {
814
+ let e = h.iconsScanner ?? {}, n = JSON.stringify({
815
+ version: Ge(L),
809
816
  sets: Array.from(B.entries()).map(([e, t]) => [e, t.lastModified ?? 0]).sort(([e], [t]) => e < t ? -1 : +(e > t)),
810
817
  include: e.include ?? [],
811
818
  exclude: e.exclude ?? [],
812
819
  maxFileSize: e.maxFileSize ?? null
813
820
  }), r = new t({
814
- root: h,
815
- outDir: E ?? A(h, "dist"),
821
+ root: y,
822
+ outDir: O ?? A(y, "dist"),
816
823
  scanner: e,
817
824
  prefixes: Array.from(B.keys()),
818
- resolves: lt,
819
- cacheFile: o(h),
825
+ resolves: mt,
826
+ cacheFile: o(y),
820
827
  cacheKey: n
821
828
  }), i = await r.scan();
822
- if (i.cold && j.info(`[bitboss-ui] icon scan: ${i.files} files in ${i.elapsed}ms${i.workers ? ` on ${i.workers} threads` : ""} (${r.icons.size} provider icons referenced)`), U = r, G) for (let e of r.includeDirs) G.add(e);
829
+ if (i.cold && M.info(`[bitboss-ui] icon scan: ${i.files} files in ${i.elapsed}ms${i.workers ? ` on ${i.workers} threads` : ""} (${r.icons.size} provider icons referenced)`), U = r, G) for (let e of r.includeDirs) G.add(e);
823
830
  return r;
824
831
  })(), W);
825
832
  return {
826
833
  name: "bitboss-ui:icon-registry",
827
834
  configEnvironment(e, t) {
828
835
  if (e !== "client") return;
829
- let n = t.optimizeDeps?.include ?? [], r = C.filter((e) => !n.includes(e));
836
+ let n = t.optimizeDeps?.include ?? [], r = E.filter((e) => !n.includes(e));
830
837
  if (r.length) return { optimizeDeps: { include: r } };
831
838
  },
832
839
  config(e) {
833
840
  let t = e.optimizeDeps?.include ?? [], n = e.optimizeDeps?.exclude ?? [], r = e.root ?? process.cwd();
834
- x = ut(r, "vee-validate");
835
- let i = dt(r) ? [...pt, gt] : pt, a = z.found.map(({ pack: e }) => `dayjs/locale/${e}`), o = I.length ? [ht] : [];
836
- C = [
841
+ T = ht(r, "vee-validate");
842
+ let i = gt(r) ? [...vt, xt] : vt, a = R.found.map(({ pack: e }) => `dayjs/locale/${e}`), o = Xe.length ? [bt] : [];
843
+ E = [
837
844
  ...i,
838
845
  ...a,
839
846
  ...o
840
847
  ];
841
848
  let s = (e.build?.assetsDir ?? "assets").replace(/\/+$/, ""), c = e.build?.rollupOptions?.output, l = (Array.isArray(c) ? c[0] : c)?.chunkFileNames, u = e.ssr;
842
849
  u && u.noExternal === !1 && delete u.noExternal;
843
- let d = vt(u?.noExternal);
850
+ let d = St(u?.noExternal);
844
851
  return {
845
- ...x ? {} : { resolve: { alias: [{
852
+ ...T ? {} : { resolve: { alias: [{
846
853
  find: /^vee-validate$/,
847
- replacement: jt
854
+ replacement: Ft
848
855
  }] } },
849
856
  optimizeDeps: {
850
857
  include: [
@@ -852,11 +859,11 @@ function _n(e = {}) {
852
859
  ...a,
853
860
  ...o
854
861
  ].filter((e) => !t.includes(e)),
855
- exclude: mt.filter((e) => !n.includes(e))
862
+ exclude: yt.filter((e) => !n.includes(e))
856
863
  },
857
864
  ...d.length ? { ssr: { noExternal: d } } : {},
858
865
  build: { rollupOptions: { output: { chunkFileNames(e) {
859
- if (e.facadeModuleId?.startsWith(mn)) {
866
+ if (e.facadeModuleId?.startsWith(_n)) {
860
867
  let t = e.facadeModuleId.slice(17);
861
868
  return `${s}/icons/${t.replace("/", "_")}-[hash].js`;
862
869
  }
@@ -865,33 +872,33 @@ function _n(e = {}) {
865
872
  };
866
873
  },
867
874
  transform(e, t) {
868
- return x || t.includes("/node_modules/") || t.startsWith("\0") || !/\.(vue|[cm]?[jt]sx?)(\?|$)/.test(t) || Lt(e) && this.error(`${Pt}\n used in ${Ee(h || process.cwd(), t.split("?")[0])}`), null;
875
+ return T || t.includes("/node_modules/") || t.startsWith("\0") || !/\.(vue|[cm]?[jt]sx?)(\?|$)/.test(t) || Bt(e) && this.error(`${K}\n used in ${ke(y || process.cwd(), t.split("?")[0])}`), null;
869
876
  },
870
877
  renderChunk(e) {
871
- return !x && e.includes(Nt) && this.error(Pt), null;
878
+ return !T && e.includes(Lt) && this.error(K), null;
872
879
  },
873
880
  configResolved(e) {
874
- h = e.root, b = te ?? h, T = e.command === "build", E = A(h, e.build?.outDir ?? "dist"), D = e.build?.rollupOptions?.input, e.logger && (j = e.logger);
881
+ y = e.root, C = g ?? y, D = e.command === "build", O = A(y, e.build?.outDir ?? "dist"), k = e.build?.rollupOptions?.input, e.logger && (M = e.logger);
875
882
  },
876
883
  resolveId(e) {
877
- if (e === yt) return bt;
878
- if (e === xt) return St;
879
884
  if (e === Ct) return wt;
880
- if (e === Dt) return Ot;
881
885
  if (e === Tt) return Et;
882
- if (e === kt) return At;
883
- if (e === Rt) return zt;
886
+ if (e === Dt) return Ot;
884
887
  if (e === jt) return Mt;
885
- if (e === Bt) return Vt;
886
- if (e.startsWith(pn)) return "\0" + e;
888
+ if (e === kt) return At;
889
+ if (e === Nt) return Pt;
890
+ if (e === Vt) return Ht;
891
+ if (e === Ft) return It;
892
+ if (e === Ut) return Wt;
893
+ if (e.startsWith(gn)) return "\0" + e;
887
894
  if (e.startsWith("virtual:bitboss-ui/")) {
888
- let t = Ue(e, ne, h);
895
+ let t = qe(e, ne, y);
889
896
  t && this.error(t);
890
897
  }
891
898
  },
892
899
  async load(e) {
893
- if (e === St) {
894
- let { iconDir: e, enabledLocales: t, passthroughDeduper: n, configScopes: r, components: i, pt: a, ...o } = f, s = {
900
+ if (e === Et) {
901
+ let { iconDir: e, iconWhitelist: t, icons: n, enabledLocales: r, passthroughDeduper: i, configScopes: a, components: o, pt: s, ...c } = h, l = {
895
902
  inertiaLinkName: "Link",
896
903
  nuxtLinkName: "NuxtLink",
897
904
  linkActiveClass: "router-link-active",
@@ -903,89 +910,98 @@ function _n(e = {}) {
903
910
  resetCss: !1,
904
911
  cssLayers: void 0,
905
912
  injectDirectives: !0,
906
- ...Object.fromEntries(Object.entries(o).filter(([e]) => !Object.values(y).includes(e))),
907
- pt: f.pt,
908
- components: he(f.components),
913
+ ...Object.fromEntries(Object.entries(c).filter(([e]) => !Object.values(b).includes(e))),
914
+ pt: h.pt,
915
+ components: me(h.components),
916
+ iconDefaults: h.icons?.defaults ?? {},
909
917
  variantIcons: {
910
- toast: Ce(f.toastVariants),
911
- alert: Ce(f.alertVariants)
918
+ toast: Te(h.toastVariants),
919
+ alert: Te(h.alertVariants)
912
920
  },
913
- variantNames: Object.fromEntries(Object.keys(y).map((e) => [y[e], _e(_[e], f[y[e]])])),
914
- defaultLocale: ke,
915
- ...f.locale !== void 0 && oe(f.locale) ? { locale: ke } : {}
921
+ variantNames: Object.fromEntries(Object.keys(b).map((e) => [b[e], ye(v[e], h[b[e]])])),
922
+ defaultLocale: Ie,
923
+ ...h.locale !== void 0 && _(h.locale) ? { locale: Ie } : {}
916
924
  };
917
- return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(s)});\nexport const configScopes = ${JSON.stringify(r ?? {})};\n`;
925
+ return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(l)});\nexport const configScopes = ${JSON.stringify(a ?? {})};\n`;
918
926
  }
919
- if (e === Ot) return $e(P);
920
- if (e === wt) return tt(z.found);
921
- if (e === Et) return Qe(I, {
922
- enabled: P.filter((e) => p[e].dayjs === null || z.found.some((t) => t.key === e)),
923
- extended: F.length > 0,
924
- numberingSystems: He
927
+ if (e === Mt) return it(F);
928
+ if (e === Ot) return ot(R.found);
929
+ if (e === At) return rt(Xe, {
930
+ enabled: F.filter((e) => p[e].dayjs === null || R.found.some((t) => t.key === e)),
931
+ extended: I.length > 0,
932
+ numberingSystems: $e
925
933
  });
926
- if (e === At) return `export default ${JSON.stringify(Ht())};`;
927
- if (e === Mt) return It();
928
- if (e === zt) return ft(dt(h));
929
- if (e === Vt) {
930
- if (f.passthroughDeduper !== void 0) return nt(f.passthroughDeduper, h);
931
- g ??= at(h);
932
- let e = H(g.values());
933
- return v = JSON.stringify(e), nt(void 0, h, void 0, e);
934
+ if (e === Pt) return `export default ${JSON.stringify(Gt())};`;
935
+ if (e === It) return zt();
936
+ if (e === Ht) return _t(gt(y));
937
+ if (e === Wt) {
938
+ if (h.passthroughDeduper !== void 0) return st(h.passthroughDeduper, y);
939
+ x ??= dt(y);
940
+ let e = z(x.values());
941
+ return De = JSON.stringify(e), st(void 0, y, void 0, e);
934
942
  }
935
- if (e.startsWith(mn)) {
943
+ if (e.startsWith(_n)) {
936
944
  let t = e.slice(17), n = t.indexOf("/"), r = t.slice(0, n), i = t.slice(n + 1), a = B.get(r);
937
945
  a || this.error(`[bitboss-ui] cannot load "${r}:${i}" — @iconify-json/${r} is not installed.\n Run: npm install -D @iconify-json/${r}`);
938
946
  let o = N(a, i);
939
- return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(je(o))};`;
947
+ return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(Pe(o))};`;
940
948
  }
941
- if (e !== bt) return;
942
- let t = A(h, f.iconDir), n = "/" + Ee(h, t).replace(/\\/g, "/") + "/**/*.svg", r = await K(), i = Re(f.iconWhitelist ?? [], B, V, ot);
943
- i.errors.length > 0 && this.error(i.errors.length === 1 ? i.errors[0] : `[bitboss-ui] iconWhitelist has ${i.errors.length} entries that do not resolve:\n - ${i.errors.map((e) => e.replace(/^\[bitboss-ui\] /, "")).join("\n - ")}`);
944
- let a = /* @__PURE__ */ new Set([...r.icons, ...i.icons]), o = Array.from(a).sort().flatMap((e) => {
945
- let t = Ae(e);
946
- return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(pn + t.prefix + "/" + t.name)}).then(m => m.default),`] : [];
947
- }).join("\n"), s = T ? null : Object.fromEntries(Array.from(B.entries()).map(([e, t]) => [e, Le(t, V.get(e))]));
948
- return `const _local = import.meta.glob(${JSON.stringify(n)}, { query: '?raw', import: 'default' });\nconst _localIcons = Object.fromEntries(Object.entries(_local).map(([k, l]) => { const f = k.split(/[/\\\\]+/).pop(); return [\`local:\${f.replace(/\\.svg$/i, '')}\`, l]; }));\nconst _icons = {\n` + (o ? o + "\n" : "") + `\t..._localIcons,\n};\nconst _ip = new Set(${JSON.stringify(Array.from(ot))});\nconst _loaded = new Set(${JSON.stringify(Array.from(B.keys()))});\nconst _all = ${s ? JSON.stringify(s) : "null"};\nconst _diag = ${Ie};\nconst _fail = (msg) => () => { const _e = new Error(); import.meta.hot?.send('bitboss-ui:icon-missing', { msg, stack: _e.stack }); return Promise.reject(new Error(msg)); };\nexport const icons = new Proxy(_icons, {\n\tget(t, k) {\n\t\tif (k in t || typeof k !== 'string' || !k.includes(':')) return t[k];\n\t\tconst _msg = _diag(k, _loaded, (p) => Object.keys(t).filter((x) => x.startsWith(p + ':')).map((x) => x.slice(p.length + 1)), (p) => (_all && _all[p]) || null, _ip);\n\t\treturn _msg ? _fail(_msg) : undefined;\n\t},\n});\n`;
949
+ if (e !== wt) return;
950
+ let t = A(y, h.iconDir), n = "/" + ke(y, t).replace(/\\/g, "/") + "/**/*.svg", r = await Rt(), i = Ve(h.iconWhitelist, B, V, H);
951
+ i.errors.length > 0 && this.error(i.errors.length === 1 ? i.errors[0] : `[bitboss-ui] icons.whitelist has ${i.errors.length} entries that do not resolve:\n - ${i.errors.map((e) => e.replace(/^\[bitboss-ui\] /, "")).join("\n - ")}`);
952
+ let a = Ve(te.filter((e) => !e.startsWith("local:")), B, V, H);
953
+ a.errors.length > 0 && this.error(a.errors.map((e) => e.replace("icons.whitelist entry", "icons.defaults / components.<C>.icons name")).join("\n"));
954
+ let o = /* @__PURE__ */ new Set([
955
+ ...r.icons,
956
+ ...i.icons,
957
+ ...a.icons
958
+ ]), s = Array.from(o).sort().flatMap((e) => {
959
+ let t = Ne(e);
960
+ return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(gn + t.prefix + "/" + t.name)}).then(m => m.default),`] : [];
961
+ }).join("\n"), c = D ? null : Object.fromEntries(Array.from(B.entries()).map(([e, t]) => [e, Be(t, V.get(e))]));
962
+ return `const _local = import.meta.glob(${JSON.stringify(n)}, { query: '?raw', import: 'default' });\nconst _localIcons = Object.fromEntries(Object.entries(_local).map(([k, l]) => { const f = k.split(/[/\\\\]+/).pop(); return [\`local:\${f.replace(/\\.svg$/i, '')}\`, l]; }));\nconst _icons = {\n` + (s ? s + "\n" : "") + `\t..._localIcons,\n};\nconst _ip = new Set(${JSON.stringify(Array.from(H))});\nconst _loaded = new Set(${JSON.stringify(Array.from(B.keys()))});\nconst _all = ${c ? JSON.stringify(c) : "null"};\nconst _diag = ${ze};\nconst _fail = (msg) => () => { const _e = new Error(); import.meta.hot?.send('bitboss-ui:icon-missing', { msg, stack: _e.stack }); return Promise.reject(new Error(msg)); };\nexport const icons = new Proxy(_icons, {\n\tget(t, k) {\n\t\tif (k in t || typeof k !== 'string' || !k.includes(':')) return t[k];\n\t\tconst _msg = _diag(k, _loaded, (p) => Object.keys(t).filter((x) => x.startsWith(p + ':')).map((x) => x.slice(p.length + 1)), (p) => (_all && _all[p]) || null, _ip);\n\t\treturn _msg ? _fail(_msg) : undefined;\n\t},\n});\n`;
949
963
  },
950
964
  buildStart() {
951
- st();
952
- let e = A(h, f.iconDir), t = $t(f.iconDir, e);
953
- if (t && this.warn(t), !T) {
954
- let e = ze(b, Ve(R));
965
+ pt();
966
+ let e = A(y, h.iconDir), t = nn(h.iconDir, e);
967
+ t && this.warn(t);
968
+ let n = ge(te.filter((e) => e.startsWith("local:")), e);
969
+ if (n.length && this.error(`[bitboss-ui] icons: ${n.map((e) => `"${e}"`).join(", ")} ${n.length === 1 ? "is" : "are"} not an SVG in icons.dir (${e}). A \`local:\` name is a file's basename.`), !D) {
970
+ let e = He(C, Ge(L));
955
971
  e && this.warn(e);
956
972
  }
957
- !T && f.vscodeSettings !== !1 && (k(e, b, (e) => this.warn(e)), fn(b, {
973
+ !D && h.vscodeSettings !== !1 && (j(e, C, (e) => this.warn(e)), hn(C, {
958
974
  info: (e) => this.info(e),
959
975
  warn: (e) => this.warn(e)
960
976
  }));
961
- for (let e of De) this.warn(e);
962
- for (let e of Ne) this.warn(e);
977
+ for (let e of je) this.warn(e);
963
978
  for (let e of Ke) this.warn(e);
964
- for (let e of Oe) this.warn(e);
965
- for (let e of z.missing) this.warn(`[bitboss-ui] locale '${e}' has no dayjs counterpart (dayjs/locale/${e}) — its calendars fall back to English. Dayjs locale names: https://github.com/iamkun/dayjs/tree/dev/src/locale`);
966
- f.locale && !m(f.locale) && !M.includes(f.locale) && this.warn(`[bitboss-ui] \`locale: '${f.locale}'\` is not a built-in locale${Ye(f.locale)} — the library ships ${d.length} locales. Strings fall back to the default locale.`);
967
- let n = Se({
968
- root: h,
969
- input: D,
970
- dts: f.dts
979
+ for (let e of ct) this.warn(e);
980
+ for (let e of Me) this.warn(e);
981
+ for (let e of R.missing) this.warn(`[bitboss-ui] locale '${e}' has no dayjs counterpart (dayjs/locale/${e}) — its calendars fall back to English. Dayjs locale names: https://github.com/iamkun/dayjs/tree/dev/src/locale`);
982
+ h.locale && !m(h.locale) && !P.includes(h.locale) && this.warn(`[bitboss-ui] \`locale: '${h.locale}'\` is not a built-in locale${et(h.locale)} — the library ships ${d.length} locales. Strings fall back to the default locale.`);
983
+ let r = we({
984
+ root: y,
985
+ input: k,
986
+ dts: h.dts
971
987
  });
972
- if (n) {
973
- let e = xe(f), t = we(n, {
988
+ if (r) {
989
+ let e = Ce(h), t = Ee(r, {
974
990
  ...e,
975
991
  LocaleRegistry: [
976
- ...P.flatMap((e) => [e, ...ee(e)]),
977
- ...F,
978
- ...M
992
+ ...F.flatMap((e) => [e, ...ee(e)]),
993
+ ...I,
994
+ ...P
979
995
  ],
980
- ConfigScopeRegistry: Object.keys(f.configScopes ?? {}),
981
- EmptyStringControlRegistry: ve(f.components)
982
- }), r = Be(n);
983
- t === "changed" ? this.info(`[bitboss-ui] Wrote ${r} — commit this file so CI and teammates get matching types.`) : typeof t == "object" && !L.has("write") && (L.add("write"), this.warn(`[bitboss-ui] could not write ${r} (${t.error}). The committed copy still types the app; regenerate it where the project is writable.`)), !L.has("program") && S(n) && (L.add("program"), be(h, n) === !1 && this.warn(`[bitboss-ui] ${r} is outside your TypeScript project — custom names will look like typos. Set \`dts\` to a path inside your app sources (for example resources/js/).`));
996
+ ConfigScopeRegistry: Object.keys(h.configScopes ?? {}),
997
+ EmptyStringControlRegistry: be(h.components)
998
+ }), n = Ue(r);
999
+ t === "changed" ? this.info(`[bitboss-ui] Wrote ${n} — commit this file so CI and teammates get matching types.`) : typeof t == "object" && !We.has("write") && (We.add("write"), this.warn(`[bitboss-ui] could not write ${n} (${t.error}). The committed copy still types the app; regenerate it where the project is writable.`)), !We.has("program") && S(r) && (We.add("program"), Se(y, r) === !1 && this.warn(`[bitboss-ui] ${n} is outside your TypeScript project — custom names will look like typos. Set \`dts\` to a path inside your app sources (for example resources/js/).`));
984
1000
  }
985
1001
  },
986
1002
  configureServer(e) {
987
- hn(te ?? e.config.root, f.ai !== !1, e.config.logger);
988
- let t = A(e.config.root, f.iconDir), n = (e) => e.startsWith(t) && e.endsWith(".svg");
1003
+ vn(g ?? e.config.root, h.ai !== !1, e.config.logger);
1004
+ let t = A(e.config.root, h.iconDir), n = (e) => e.startsWith(t) && e.endsWith(".svg");
989
1005
  e.ws.on("bitboss-ui:icon-missing", (t) => {
990
1006
  if (process.env.VITEST || e.config.mode === "test") return;
991
1007
  let n = t.stack ? t.stack.replace(/^Error/, `Error: ${t.msg}`) : `Error: ${t.msg}`;
@@ -999,25 +1015,25 @@ function _n(e = {}) {
999
1015
  });
1000
1016
  });
1001
1017
  let r = async (t, n) => {
1002
- if (f.passthroughDeduper !== void 0 || !g || !it(h, t)) return;
1003
- let r = n ? {} : rt((() => {
1018
+ if (h.passthroughDeduper !== void 0 || !x || !ut(y, t)) return;
1019
+ let r = n ? {} : lt((() => {
1004
1020
  try {
1005
1021
  return w(t, "utf-8");
1006
1022
  } catch {
1007
1023
  return "";
1008
1024
  }
1009
1025
  })());
1010
- if (Object.keys(r).length) g.set(t, r);
1011
- else if (!g.delete(t)) return;
1012
- let i = JSON.stringify(H(g.values()));
1013
- if (i === v) return;
1014
- v = i;
1015
- let a = e.moduleGraph.getModuleById(Vt);
1026
+ if (Object.keys(r).length) x.set(t, r);
1027
+ else if (!x.delete(t)) return;
1028
+ let i = JSON.stringify(z(x.values()));
1029
+ if (i === De) return;
1030
+ De = i;
1031
+ let a = e.moduleGraph.getModuleById(Wt);
1016
1032
  a && await e.reloadModule(a);
1017
1033
  };
1018
1034
  e.watcher.on("change", (e) => void r(e, !1)), e.watcher.on("add", (e) => void r(e, !1)), e.watcher.on("unlink", (e) => void r(e, !0));
1019
1035
  let i = async () => {
1020
- let t = e.moduleGraph.getModuleById(bt);
1036
+ let t = e.moduleGraph.getModuleById(wt);
1021
1037
  t && await e.reloadModule(t);
1022
1038
  }, a, o = () => {
1023
1039
  clearTimeout(a), a = setTimeout(() => void U?.persist(), 500);
@@ -1025,7 +1041,7 @@ function _n(e = {}) {
1025
1041
  s = s.then(async () => {
1026
1042
  if (!U) return;
1027
1043
  let n;
1028
- if (Te(t) === ".gitignore") {
1044
+ if (Oe(t) === ".gitignore") {
1029
1045
  let e = U.icons;
1030
1046
  U.resetGitignores(), await U.scan();
1031
1047
  let t = U.icons;
@@ -1033,7 +1049,7 @@ function _n(e = {}) {
1033
1049
  } else n = e === "unlink" ? U.removeFile(t) : await U.updateFile(t);
1034
1050
  o(), n && await i();
1035
1051
  }).catch((e) => {
1036
- j.warn(`[bitboss-ui] icon scan: could not update ${t} (${e instanceof Error ? e.message : String(e)})`);
1052
+ M.warn(`[bitboss-ui] icon scan: could not update ${t} (${e instanceof Error ? e.message : String(e)})`);
1037
1053
  });
1038
1054
  };
1039
1055
  if (G = e.watcher, U) for (let e of U.includeDirs) G.add(e);
@@ -1042,9 +1058,9 @@ function _n(e = {}) {
1042
1058
  "change",
1043
1059
  "unlink"
1044
1060
  ]) e.watcher.on(r, (i) => {
1045
- n(i) ? f.vscodeSettings !== !1 && k(t, te ?? e.config.root, (e) => j.warn(e)) : c(r, i);
1061
+ n(i) ? h.vscodeSettings !== !1 && j(t, g ?? e.config.root, (e) => M.warn(e)) : c(r, i);
1046
1062
  });
1047
1063
  }
1048
1064
  };
1049
1065
  }
1050
- export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS, ht as CALENDAR_ENGINE, x as DEFAULTS_ALLOWLIST, e as DEFAULT_MAX_FILE_SIZE, _ as DEFAULT_VARIANT_REGISTRIES, t as IconScanner, q as LOCAL_ICONS_JSON_PATH, mt as REQUIRED_OPTIMIZE_DEPS_EXCLUDE, pt as REQUIRED_OPTIMIZE_DEPS_INCLUDE, K as SSR_NO_EXTERNAL, qt as TAILWIND_CLASS_ATTRIBUTES_DEFAULTS, Z as TAILWIND_PT_CLASS_ATTRIBUTE, Q as TAILWIND_PT_CLASS_REGEX, c as TAILWIND_V3_LAYERS, l as TAILWIND_V4_LAYERS, Pt as VEE_MISSING_MESSAGE, _n as bitbossUi, st as collectThemeNames, Zt as defaultVscodeSettings, I as diagnoseMissingIcon, Re as expandIconWhitelist, n as extractIconCandidates, Qe as generateCalendarsModule, tt as generateDayjsLocalesModule, ft as generateLinkModule, $e as generateLocalesModule, nt as generatePassthroughDeduperModule, It as generateVeeMissingModule, dt as hasInertia, a as iconLiteralRegExp, o as iconScanCacheFile, oe as invalidLocaleTag, it as isAppThemeCss, $t as localIconDirWarning, H as mergeThemeNames, Ze as resolveCalendars, et as resolveDayjsLocales, Xe as resolveEnabledLocales, vt as resolveSsrNoExternal, at as scanThemeFiles, en as stripJsonComments, rt as themeNamesInCss, fn as updateVscodeSettings, ze as upgradeHint, Lt as usesBbForm, ct as validatePassthroughDeduper, Je as validatePtGlobalMapNames, qe as validateVariantNames, Qt as writeLocalIconifyCollection };
1066
+ export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS, bt as CALENDAR_ENGINE, De as DEFAULTS_ALLOWLIST, e as DEFAULT_MAX_FILE_SIZE, v as DEFAULT_VARIANT_REGISTRIES, t as IconScanner, q as LOCAL_ICONS_JSON_PATH, yt as REQUIRED_OPTIMIZE_DEPS_EXCLUDE, vt as REQUIRED_OPTIMIZE_DEPS_INCLUDE, W as SSR_NO_EXTERNAL, Xt as TAILWIND_CLASS_ATTRIBUTES_DEFAULTS, Z as TAILWIND_PT_CLASS_ATTRIBUTE, Q as TAILWIND_PT_CLASS_REGEX, c as TAILWIND_V3_LAYERS, l as TAILWIND_V4_LAYERS, K as VEE_MISSING_MESSAGE, bn as bitbossUi, V as collectThemeNames, en as defaultVscodeSettings, I as diagnoseMissingIcon, Ve as expandIconWhitelist, n as extractIconCandidates, rt as generateCalendarsModule, ot as generateDayjsLocalesModule, _t as generateLinkModule, it as generateLocalesModule, st as generatePassthroughDeduperModule, zt as generateVeeMissingModule, gt as hasInertia, a as iconLiteralRegExp, o as iconScanCacheFile, _ as invalidLocaleTag, ut as isAppThemeCss, nn as localIconDirWarning, z as mergeThemeNames, nt as resolveCalendars, at as resolveDayjsLocales, tt as resolveEnabledLocales, St as resolveSsrNoExternal, dt as scanThemeFiles, rn as stripJsonComments, lt as themeNamesInCss, hn as updateVscodeSettings, He as upgradeHint, Bt as usesBbForm, ft as validatePassthroughDeduper, Qe as validatePtGlobalMapNames, Ze as validateVariantNames, tn as writeLocalIconifyCollection };