bitboss-ui 3.0.0-beta.69 → 3.0.0-beta.70

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 (407) hide show
  1. package/README.md +20 -11
  2. package/bin/bitboss-ui-mcp.mjs +7 -4
  3. package/bin/bitboss-ui.mjs +0 -0
  4. package/bin/cli.mjs +47 -28
  5. package/dist/ai/BbBaseButton.md +4 -4
  6. package/dist/ai/BbCarousel.md +32 -29
  7. package/dist/ai/BbCheckboxGroup.md +15 -12
  8. package/dist/ai/BbColorInput.md +6 -10
  9. package/dist/ai/BbDropzone.md +3 -3
  10. package/dist/ai/BbGallery.md +2034 -0
  11. package/dist/ai/BbPopover.md +12 -6
  12. package/dist/ai/BbRadioGroup.md +18 -15
  13. package/dist/ai/BbRating.md +3 -7
  14. package/dist/ai/BbSwitchGroup.md +3 -3
  15. package/dist/ai/BbTextInput.md +8 -8
  16. package/dist/ai/OptionsContainer.md +10 -7
  17. package/dist/ai/changelog.json +80 -4
  18. package/dist/ai/components.json +19 -14
  19. package/dist/ai/guides/ai-router.md +3 -2
  20. package/dist/ai/guides/component-picker.md +1 -0
  21. package/dist/ai/guides/eslint-rules.md +3 -3
  22. package/dist/ai/guides/installation-and-plugin-setup.md +5 -5
  23. package/dist/ai/guides/migration/v2-to-v3.md +29 -1
  24. package/dist/ai/guides/migration/v3-beta-tooling.md +25 -15
  25. package/dist/ai/guides/passthrough.md +2 -1
  26. package/dist/ai/guides/preset-components.md +19 -10
  27. package/dist/ai/helpers/definePreset.ts +8 -4
  28. package/dist/ai/helpers/inertia/manifest.json +1 -1
  29. package/dist/ai/index.md +2 -1
  30. package/dist/ai/manifest/components/BbCarousel.json +3 -2
  31. package/dist/ai/manifest/components/BbCarousel.tree.json +7 -0
  32. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +13 -11
  33. package/dist/ai/manifest/components/BbConfigScope.json +1 -1
  34. package/dist/ai/manifest/components/BbGallery.json +54 -0
  35. package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
  36. package/dist/ai/manifest/components/BbRadioGroup.tree.json +12 -10
  37. package/dist/ai/manifest/components/BbRating.removed.json +1 -1
  38. package/dist/ai/manifest/components/BbSlider.json +1 -1
  39. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +1 -1
  40. package/dist/ai/manifest/components/BbTabs.removed.json +4 -4
  41. package/dist/ai/manifest/components/BbTabsList.removed.json +4 -4
  42. package/dist/ai/manifest/components/OptionsContainer.tree.json +10 -7
  43. package/dist/ai/manifest/index.json +4 -3
  44. package/dist/ai/manifest/meta.json +5 -1
  45. package/dist/ai/manifest/types.advanced.json +3 -1
  46. package/dist/ai/manifest/types.api.json +1 -1
  47. package/dist/ai/manifest/types.wrapper.json +1 -0
  48. package/dist/ai/recipes/inertia/onboarding.md +5 -8
  49. package/dist/ai/recipes/inertia/record-form.md +33 -12
  50. package/dist/ai/recipes/nuxt/onboarding.md +5 -8
  51. package/dist/ai/recipes/nuxt/record-form.md +27 -11
  52. package/dist/ai/recipes/vue/onboarding.md +5 -8
  53. package/dist/ai/recipes/vue/record-form.md +25 -11
  54. package/dist/ai/source/BbCalendar.md +2 -0
  55. package/dist/ai/source/BbCarousel.md +135 -32
  56. package/dist/ai/source/BbDropdown.md +2 -0
  57. package/dist/ai/source/BbDropdownGroup.md +2 -0
  58. package/dist/ai/source/BbGallery.md +2027 -0
  59. package/dist/ai/source/BbRadioGroup.md +2 -2
  60. package/dist/ai/source/BbSelectPopover.md +1 -0
  61. package/dist/ai/source/BbSwitchGroup.md +1 -0
  62. package/dist/ai/source/BbTable.md +11 -7
  63. package/dist/ai/source/BbTree.md +7 -3
  64. package/dist/ai/source/CommonPopover.md +13 -3
  65. package/dist/ai/source/FlatListBox.md +3 -3
  66. package/dist/ai/source/GroupedListBox.md +3 -3
  67. package/dist/ai/source/ListBox.md +4 -4
  68. package/dist/ai/source/OptionsContainer.md +4 -4
  69. package/dist/components/BbCalendar/useDayjsLocale.js +5 -3
  70. package/dist/components/BbCarousel/BbCarousel.vue.d.ts +1 -1
  71. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +506 -481
  72. package/dist/components/BbCarousel/dragRelease.js +14 -0
  73. package/dist/components/BbCarousel/ptKeys.generated.d.ts +4 -0
  74. package/dist/components/BbCarousel/types.d.ts +11 -6
  75. package/dist/components/BbCarousel/types.js +1 -0
  76. package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
  77. package/dist/components/BbGallery/BbGallery.vue.js +5 -0
  78. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
  79. package/dist/components/BbGallery/findItem.js +41 -0
  80. package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
  81. package/dist/components/BbGallery/types.d.ts +177 -0
  82. package/dist/components/BbGallery/types.js +29 -0
  83. package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -0
  84. package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
  85. package/dist/components/BbRadioGroup/types.d.ts +2 -2
  86. package/dist/components/BbTable/types.d.ts +7 -7
  87. package/dist/components/BbTree/types.d.ts +3 -3
  88. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +28 -26
  89. package/dist/composables/overlayRegistry.d.ts +17 -0
  90. package/dist/composables/overlayRegistry.js +16 -9
  91. package/dist/composables/useChoiceIndicator.js +1 -1
  92. package/dist/deprecation/ai-deprecations.json.js +1 -1
  93. package/dist/directives/bbGallery.d.ts +64 -0
  94. package/dist/directives/bbGallery.js +38 -0
  95. package/dist/i18n/locales/ar.json +3 -1
  96. package/dist/i18n/locales/cs.json +3 -1
  97. package/dist/i18n/locales/da.json +3 -1
  98. package/dist/i18n/locales/de-CH.json +3 -1
  99. package/dist/i18n/locales/de.json +3 -1
  100. package/dist/i18n/locales/el.json +3 -1
  101. package/dist/i18n/locales/en-GB.json +3 -1
  102. package/dist/i18n/locales/en.json +3 -1
  103. package/dist/i18n/locales/es-MX.json +3 -1
  104. package/dist/i18n/locales/es.json +3 -1
  105. package/dist/i18n/locales/fa.json +3 -1
  106. package/dist/i18n/locales/fi.json +3 -1
  107. package/dist/i18n/locales/fr.json +3 -1
  108. package/dist/i18n/locales/he.json +3 -1
  109. package/dist/i18n/locales/hu.json +3 -1
  110. package/dist/i18n/locales/it.json +3 -1
  111. package/dist/i18n/locales/ja.json +3 -1
  112. package/dist/i18n/locales/ko.json +3 -1
  113. package/dist/i18n/locales/nb.json +3 -1
  114. package/dist/i18n/locales/nl.json +3 -1
  115. package/dist/i18n/locales/pl.json +3 -1
  116. package/dist/i18n/locales/pt-BR.json +3 -1
  117. package/dist/i18n/locales/pt-PT.json +3 -1
  118. package/dist/i18n/locales/ro.json +3 -1
  119. package/dist/i18n/locales/ru.json +3 -1
  120. package/dist/i18n/locales/sv.json +3 -1
  121. package/dist/i18n/locales/tr.json +3 -1
  122. package/dist/i18n/locales/uk.json +3 -1
  123. package/dist/i18n/locales/zh-CN.json +3 -1
  124. package/dist/i18n/locales/zh-HK.json +3 -1
  125. package/dist/i18n/locales/zh-TW.json +3 -1
  126. package/dist/index.d.ts +4 -0
  127. package/dist/index.js +38 -36
  128. package/dist/llms-full.txt +2328 -185
  129. package/dist/llms-medium.txt +10 -7
  130. package/dist/llms.txt +1 -1
  131. package/dist/locale-blueprint.json +3 -1
  132. package/dist/nuxt-auto-imports.js +1 -1
  133. package/dist/plugin.js +18 -17
  134. package/dist/project-dts.js +17 -16
  135. package/dist/runtime/nuxt-plugin.js +22 -21
  136. package/dist/scripts/lib/atomic-write.js +42 -0
  137. package/dist/styles.css +2 -2
  138. package/dist/types/passthrough.d.ts +2 -2
  139. package/dist/types/ptComponentMap.d.ts +2 -1
  140. package/dist/utilities/calendar/canonicalParts.js +10 -2
  141. package/dist/utils/versionCheck.js +1 -1
  142. package/dist/vite.js +361 -331
  143. package/llms.txt +2 -2
  144. package/package.json +2 -1
  145. package/scripts/README.md +25 -25
  146. package/scripts/lib/agent-refresh.mjs +15 -9
  147. package/scripts/lib/agent-setup.mjs +46 -15
  148. package/scripts/lib/atomic-write.d.mts +6 -0
  149. package/scripts/lib/atomic-write.mjs +85 -0
  150. package/scripts/lib/define-preset-copy.mjs +23 -3
  151. package/scripts/lib/eslint-plugin.mjs +74 -36
  152. package/scripts/lib/hand-imported-styles.mjs +44 -99
  153. package/scripts/lib/helpers-add.mjs +3 -1
  154. package/scripts/lib/linked-target.mjs +1 -1
  155. package/scripts/lib/locale-check.mjs +41 -25
  156. package/scripts/lib/mcp-config.mjs +250 -133
  157. package/scripts/lib/mcp-sdk.mjs +24 -0
  158. package/scripts/lib/plugin-options-check.mjs +22 -15
  159. package/scripts/lib/pnp.mjs +1 -1
  160. package/scripts/lib/project-variant-dts.mjs +80 -136
  161. package/scripts/lib/release-results.mjs +331 -0
  162. package/scripts/lib/setup.mjs +53 -3
  163. package/scripts/lib/toolchain-check.mjs +10 -8
  164. package/scripts/lib/tooling-options.mjs +357 -38
  165. package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
  166. package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
  167. package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
  168. package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
  169. package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
  170. package/dist/components/BbButton/toggleRoving.d.ts +0 -6
  171. package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
  172. package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
  173. package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
  174. package/dist/components/BbCalendar/calendarMath.d.ts +0 -102
  175. package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -116
  176. package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -411
  177. package/dist/components/BbCalendar/useDayGrid.d.ts +0 -122
  178. package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -93
  179. package/dist/components/BbCalendar/useToday.d.ts +0 -25
  180. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
  181. package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
  182. package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
  183. package/dist/components/BbDatePickerInput/calendarFields.d.ts +0 -91
  184. package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -29
  185. package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
  186. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
  187. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
  188. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
  189. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
  190. package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
  191. package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
  192. package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
  193. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
  194. package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
  195. package/dist/components/BbForm/bindFormField.d.ts +0 -56
  196. package/dist/components/BbForm/formFields.d.ts +0 -77
  197. package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
  198. package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
  199. package/dist/components/BbIcon/iconCache.d.ts +0 -63
  200. package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -255
  201. package/dist/components/BbNumberInput/platform.d.ts +0 -7
  202. package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
  203. package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
  204. package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
  205. package/dist/components/BbPagination/paginationFit.d.ts +0 -38
  206. package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
  207. package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
  208. package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
  209. package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
  210. package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
  211. package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
  212. package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
  213. package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
  214. package/dist/components/BbTable/gridWidgets.d.ts +0 -30
  215. package/dist/components/BbTable/measuredFloors.d.ts +0 -46
  216. package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
  217. package/dist/components/BbTable/textRuler.d.ts +0 -73
  218. package/dist/components/BbTable/useRowReorder.d.ts +0 -60
  219. package/dist/components/BbTable/utils.d.ts +0 -375
  220. package/dist/components/BbTabs/tablistName.d.ts +0 -4
  221. package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
  222. package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
  223. package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -15
  224. package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
  225. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
  226. package/dist/components/BbTree/context.d.ts +0 -25
  227. package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
  228. package/dist/components/ChipsBox/types.d.ts +0 -28
  229. package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
  230. package/dist/components/ClearableButton/types.d.ts +0 -9
  231. package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
  232. package/dist/components/CloseIcon/types.d.ts +0 -2
  233. package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
  234. package/dist/components/CommaBox/types.d.ts +0 -20
  235. package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
  236. package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
  237. package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
  238. package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
  239. package/dist/components/CommonFieldInput/types.d.ts +0 -114
  240. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
  241. package/dist/components/CommonPopover/resolvePlacement.d.ts +0 -9
  242. package/dist/components/CommonPopover/types.d.ts +0 -120
  243. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
  244. package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
  245. package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
  246. package/dist/components/ErrorIcon/types.d.ts +0 -3
  247. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
  248. package/dist/components/FlatListBox/types.d.ts +0 -140
  249. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
  250. package/dist/components/GroupedListBox/types.d.ts +0 -163
  251. package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
  252. package/dist/components/ListBox/types.d.ts +0 -180
  253. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
  254. package/dist/components/OptionsContainer/types.d.ts +0 -168
  255. package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
  256. package/dist/components/Transitions/Slide.vue.d.ts +0 -39
  257. package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
  258. package/dist/components/WarningIcon/types.d.ts +0 -3
  259. package/dist/composables/__testResets.d.ts +0 -1
  260. package/dist/composables/autoHost.d.ts +0 -22
  261. package/dist/composables/formSubmitLock.d.ts +0 -48
  262. package/dist/composables/hostOpenings.d.ts +0 -88
  263. package/dist/composables/hostRegistry.d.ts +0 -47
  264. package/dist/composables/ssrMarker.d.ts +0 -15
  265. package/dist/composables/useActiveInactiveState.d.ts +0 -4
  266. package/dist/composables/useArray.d.ts +0 -7
  267. package/dist/composables/useBaseOptions.d.ts +0 -51
  268. package/dist/composables/useBodyScrollLock.d.ts +0 -4
  269. package/dist/composables/useBreakpoint.d.ts +0 -13
  270. package/dist/composables/useCancelableFunction.d.ts +0 -17
  271. package/dist/composables/useChoiceIndicator.d.ts +0 -58
  272. package/dist/composables/useClosingInert.d.ts +0 -28
  273. package/dist/composables/useCoarsePointer.d.ts +0 -9
  274. package/dist/composables/useCoherence.d.ts +0 -21
  275. package/dist/composables/useConfig.d.ts +0 -59
  276. package/dist/composables/useConfigDefaults.d.ts +0 -54
  277. package/dist/composables/useDirection.d.ts +0 -43
  278. package/dist/composables/useEscapeStackEntry.d.ts +0 -13
  279. package/dist/composables/useFrameworkDetection.d.ts +0 -12
  280. package/dist/composables/useHashedWatcher.d.ts +0 -19
  281. package/dist/composables/useHydrated.d.ts +0 -37
  282. package/dist/composables/useImeDismissBlur.d.ts +0 -103
  283. package/dist/composables/useIndexById.d.ts +0 -11
  284. package/dist/composables/useInertiaPage.d.ts +0 -10
  285. package/dist/composables/useItemText.d.ts +0 -17
  286. package/dist/composables/useItemValue.d.ts +0 -7
  287. package/dist/composables/useItemsGetter.d.ts +0 -83
  288. package/dist/composables/useKeyboardInset.d.ts +0 -28
  289. package/dist/composables/useListboxFocus.d.ts +0 -21
  290. package/dist/composables/useLocale.d.ts +0 -5
  291. package/dist/composables/useLogger.d.ts +0 -5
  292. package/dist/composables/useMinimalQueue.d.ts +0 -9
  293. package/dist/composables/useOnFalsy.d.ts +0 -2
  294. package/dist/composables/useOnTruthy.d.ts +0 -7
  295. package/dist/composables/useOverlayNavigation.d.ts +0 -37
  296. package/dist/composables/useOverlayYield.d.ts +0 -23
  297. package/dist/composables/usePrefill.d.ts +0 -44
  298. package/dist/composables/useQuery.d.ts +0 -39
  299. package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
  300. package/dist/composables/useRoute.d.ts +0 -3
  301. package/dist/composables/useRouter.d.ts +0 -2
  302. package/dist/composables/useSegmentedFields.d.ts +0 -129
  303. package/dist/composables/useServerPrefetch.d.ts +0 -28
  304. package/dist/composables/useSheetSurface.d.ts +0 -39
  305. package/dist/composables/useSsrState.d.ts +0 -28
  306. package/dist/composables/useTableWidthContext.d.ts +0 -73
  307. package/dist/composables/useToggleInput.d.ts +0 -44
  308. package/dist/composables/useTopLayer.d.ts +0 -9
  309. package/dist/composables/useTypeahead.d.ts +0 -112
  310. package/dist/composables/useUntil.d.ts +0 -7
  311. package/dist/composables/useUrlQueryParam.d.ts +0 -21
  312. package/dist/composables/useViewportWidth.d.ts +0 -14
  313. package/dist/deprecation/ai-deprecations.json.d.ts +0 -2984
  314. package/dist/deprecation/removedProps.d.ts +0 -3
  315. package/dist/directives/createPopoverDirective.d.ts +0 -111
  316. package/dist/directives/renderingInstance.d.ts +0 -2
  317. package/dist/i18n/eraNames.d.ts +0 -2
  318. package/dist/i18n/regionHints.d.ts +0 -16
  319. package/dist/icons-whitelist.d.ts +0 -9
  320. package/dist/reset.d.ts +0 -0
  321. package/dist/runtime/nuxt-plugin.d.ts +0 -2
  322. package/dist/styles.d.ts +0 -0
  323. package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
  324. package/dist/types/ExtractGenericFromRef.d.ts +0 -2
  325. package/dist/types/NestedKeyOf.d.ts +0 -3
  326. package/dist/types/PrefixWith.d.ts +0 -1
  327. package/dist/types/ShapeErased.d.ts +0 -15
  328. package/dist/types/Simplify.d.ts +0 -6
  329. package/dist/utilities/calendar/canonicalParts.d.ts +0 -29
  330. package/dist/utilities/calendar/digits.d.ts +0 -18
  331. package/dist/utilities/calendar/gregorian.d.ts +0 -2
  332. package/dist/utilities/calendar/index.d.ts +0 -3
  333. package/dist/utilities/calendar/international.d.ts +0 -19
  334. package/dist/utilities/calendar/resolve.d.ts +0 -32
  335. package/dist/utilities/calendar/runtime.d.ts +0 -49
  336. package/dist/utilities/functions/animationsSettled.d.ts +0 -7
  337. package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
  338. package/dist/utilities/functions/chunk.d.ts +0 -1
  339. package/dist/utilities/functions/clamp.d.ts +0 -9
  340. package/dist/utilities/functions/clampPrecision.d.ts +0 -1
  341. package/dist/utilities/functions/convertDateValue.d.ts +0 -57
  342. package/dist/utilities/functions/curry.d.ts +0 -6
  343. package/dist/utilities/functions/deburr.d.ts +0 -1
  344. package/dist/utilities/functions/elementLabel.d.ts +0 -8
  345. package/dist/utilities/functions/empty.d.ts +0 -1
  346. package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
  347. package/dist/utilities/functions/findInTree.d.ts +0 -4
  348. package/dist/utilities/functions/flattenTree.d.ts +0 -1
  349. package/dist/utilities/functions/get.d.ts +0 -3
  350. package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
  351. package/dist/utilities/functions/hash.d.ts +0 -1
  352. package/dist/utilities/functions/head.d.ts +0 -2
  353. package/dist/utilities/functions/identity.d.ts +0 -1
  354. package/dist/utilities/functions/indexBy.d.ts +0 -11
  355. package/dist/utilities/functions/isDateDisabled.d.ts +0 -25
  356. package/dist/utilities/functions/isEqual.d.ts +0 -1
  357. package/dist/utilities/functions/isHex.d.ts +0 -1
  358. package/dist/utilities/functions/isImeComposing.d.ts +0 -7
  359. package/dist/utilities/functions/isNil.d.ts +0 -6
  360. package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
  361. package/dist/utilities/functions/isNotNil.d.ts +0 -6
  362. package/dist/utilities/functions/isTextEntry.d.ts +0 -5
  363. package/dist/utilities/functions/isoWeek.d.ts +0 -36
  364. package/dist/utilities/functions/itemProps.d.ts +0 -46
  365. package/dist/utilities/functions/last.d.ts +0 -2
  366. package/dist/utilities/functions/negative.d.ts +0 -1
  367. package/dist/utilities/functions/noop.d.ts +0 -1
  368. package/dist/utilities/functions/normalizeDateBound.d.ts +0 -69
  369. package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
  370. package/dist/utilities/functions/parseSize.d.ts +0 -3
  371. package/dist/utilities/functions/parseWidthString.d.ts +0 -6
  372. package/dist/utilities/functions/percentage.d.ts +0 -26
  373. package/dist/utilities/functions/pickBy.d.ts +0 -1
  374. package/dist/utilities/functions/range.d.ts +0 -1
  375. package/dist/utilities/functions/readableValue.d.ts +0 -6
  376. package/dist/utilities/functions/reject.d.ts +0 -25
  377. package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
  378. package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
  379. package/dist/utilities/functions/searchRank.d.ts +0 -19
  380. package/dist/utilities/functions/settlesVisible.d.ts +0 -20
  381. package/dist/utilities/functions/snapToStep.d.ts +0 -1
  382. package/dist/utilities/functions/sort.d.ts +0 -6
  383. package/dist/utilities/functions/throttle.d.ts +0 -1
  384. package/dist/utilities/functions/toggleInput.d.ts +0 -114
  385. package/dist/utilities/functions/transpose.d.ts +0 -1
  386. package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
  387. package/dist/utilities/functions/wait.d.ts +0 -2
  388. package/dist/utilities/functions/waitFor.d.ts +0 -9
  389. package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
  390. package/dist/utilities/functions/when.d.ts +0 -9
  391. package/dist/utilities/misc/autofocus.d.ts +0 -20
  392. package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
  393. package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
  394. package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
  395. package/dist/utilities/misc/pageText.d.ts +0 -16
  396. package/dist/utilities/misc/ssrValue.d.ts +0 -20
  397. package/dist/utilities/misc/transitions.d.ts +0 -5
  398. package/dist/utils/configDefaults.d.ts +0 -43
  399. package/dist/utils/configScope.d.ts +0 -43
  400. package/dist/utils/copyData.d.ts +0 -13
  401. package/dist/utils/focusVisibility.d.ts +0 -15
  402. package/dist/utils/injectLibraryStyles.d.ts +0 -8
  403. package/dist/utils/overlayEscapeStack.d.ts +0 -52
  404. package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
  405. package/dist/utils/passthroughDeduper.d.ts +0 -16
  406. package/dist/utils/releasedActivator.d.ts +0 -20
  407. package/dist/utils/versionCheck.d.ts +0 -19
package/dist/vite.js CHANGED
@@ -1,72 +1,72 @@
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 h, nearestLocaleKey as te } from "./i18n/regions.js";
4
- import { ERA_NAMES as ne } from "./i18n/eraNames.js";
5
- import { CALENDAR_FACTORIES as re, CALENDAR_IDS as ie } from "./utilities/calendar/types.js";
6
- import { invalidLocaleTag as g, isDecimalSystem as ae, localeExtensionWarnings as _ } from "./locale-tags.js";
7
- import { regionHints as v } from "./i18n/regionHints.js";
8
- import { validatePtGlobalMap as oe } from "./utils/passthrough.js";
9
- import { closestName as y, ptOfComponents as se, validateComponentsMap as ce, validateConfigScopes as le, validateRemovedOptions as ue, validateUnknownOptions as de, withoutPt as fe } from "./utils/configDefaults.js";
10
- import { DEFAULT_VARIANT_REGISTRIES as b, VARIANT_COMPONENTS as pe, VARIANT_PT_COMPONENTS as x, VARIANT_REGISTRY_OPTIONS as S, customVariants as me, emptyStringControls as he, flattenVariants as ge, isInTypeScriptProgram as _e, projectVariantRegistries as ve, resolveProjectDtsPath as ye, variantIconsOf as be, variantOptionLabel as C, writeProjectDts as xe } from "./project-dts.js";
11
- import { DEFAULTS_ALLOWLIST as Se } from "./types/ConfigDefaults.js";
12
- import { existsSync as w, mkdirSync as T, readFileSync as E, readdirSync as D, writeFileSync as O } from "node:fs";
13
- import { basename as Ce, dirname as k, isAbsolute as A, join as j, relative as we, resolve as M } from "node:path";
14
- import { fileURLToPath as N } from "node:url";
15
- import { createRequire as P } from "node:module";
16
- import { convertParsedSVG as Te, getIconData as F, iconToHTML as I, iconToSVG as Ee, parseSVGContent as De, stringToIcon as Oe } from "@iconify/utils";
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";
12
+ 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";
17
17
  // src/vite-plugin.ts
18
- function ke(e) {
19
- let t = Ee(e, {
18
+ function je(e) {
19
+ let t = P(e, {
20
20
  width: "unset",
21
21
  height: "unset"
22
22
  });
23
- return I(t.body, t.attributes);
23
+ return Oe(t.body, t.attributes);
24
24
  }
25
- function Ae(e, t) {
25
+ function F(e, t) {
26
26
  try {
27
- let n = P(j(e, "package.json"));
28
- return JSON.parse(E(n.resolve(`${t}/icons.json`), "utf-8"));
27
+ let n = M(k(e, "package.json"));
28
+ return JSON.parse(w(n.resolve(`${t}/icons.json`), "utf-8"));
29
29
  } catch {
30
30
  return null;
31
31
  }
32
32
  }
33
- function je(e, t) {
33
+ function Me(e, t) {
34
34
  return e !== "heroicons" || !/-(?:20|16)-/.test(t);
35
35
  }
36
- function Me(e) {
37
- let t = M(e);
36
+ function Ne(e) {
37
+ let t = A(e);
38
38
  for (;;) {
39
- let e = j(t, "node_modules", "@iconify-json");
40
- if (w(e)) return e;
41
- let n = k(t);
39
+ let e = k(t, "node_modules", "@iconify-json");
40
+ if (S(e)) return e;
41
+ let n = D(t);
42
42
  if (n === t) return null;
43
43
  t = n;
44
44
  }
45
45
  }
46
- function Ne(e) {
46
+ function Pe(e) {
47
47
  try {
48
- let t = Me(e);
48
+ let t = Ne(e);
49
49
  if (!t) return [];
50
- let n = k(k(t));
51
- return D(t, { encoding: "utf-8" }).flatMap((t) => {
52
- let r = Ae(n, `@iconify-json/${t}`) ?? Ae(e, `@iconify-json/${t}`);
50
+ let n = D(D(t));
51
+ return T(t, { encoding: "utf-8" }).flatMap((t) => {
52
+ let r = F(n, `@iconify-json/${t}`) ?? F(e, `@iconify-json/${t}`);
53
53
  return r ? [r] : [];
54
54
  });
55
55
  } catch {
56
56
  return [];
57
57
  }
58
58
  }
59
- function Pe(e) {
59
+ function Fe(e) {
60
60
  try {
61
- let t = P(j(e, "package.json")), n = JSON.parse(E(t.resolve("@iconify/collections/collections.json"), "utf-8"));
61
+ let t = M(k(e, "package.json")), n = JSON.parse(w(t.resolve("@iconify/collections/collections.json"), "utf-8"));
62
62
  return new Set(Object.keys(n));
63
63
  } catch {
64
64
  return /* @__PURE__ */ new Set();
65
65
  }
66
66
  }
67
- var Fe = "(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}", Ie = Function(`return ${Fe};`)();
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
68
  function Le(e, t) {
69
- return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) && F(e, n) !== null);
69
+ return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) && N(e, n) !== null);
70
70
  }
71
71
  function Re(e, t, n, a) {
72
72
  let o = /* @__PURE__ */ new Set(), s = [], c = new Set(t.keys()), l = /* @__PURE__ */ new Map(), u = (e) => {
@@ -88,7 +88,7 @@ function Re(e, t, n, a) {
88
88
  continue;
89
89
  }
90
90
  if (!c.has(f)) {
91
- s.push(Ie(e, c, u, (e) => c.has(e) ? u(e) : null, new Set(a)) ?? `[bitboss-ui] iconWhitelist entry "${l}" does not resolve`);
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
92
  continue;
93
93
  }
94
94
  if (i(p)) {
@@ -101,7 +101,7 @@ function Re(e, t, n, a) {
101
101
  continue;
102
102
  }
103
103
  let ee = t.get(f), m = n.get(f);
104
- F(ee, p) && (!m || m(p)) ? o.add(e) : s.push(Ie(e, c, u, u, new Set(a)) ?? `[bitboss-ui] iconWhitelist entry "${l}" does not resolve`);
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
105
  }
106
106
  return {
107
107
  icons: [...o],
@@ -109,61 +109,78 @@ function Re(e, t, n, a) {
109
109
  };
110
110
  }
111
111
  function ze(e, t) {
112
- let n = j(e, "node_modules", ".cache", "bitboss-ui", "version"), r = null;
112
+ let n = k(e, "node_modules", ".cache", "bitboss-ui", "version"), r = null;
113
113
  try {
114
- r = E(n, "utf-8").trim() || null;
114
+ r = w(n, "utf-8").trim() || null;
115
115
  } catch {}
116
116
  if (r === t) return null;
117
117
  try {
118
- T(k(n), { recursive: !0 }), O(n, t + "\n", "utf-8");
118
+ C(D(n), { recursive: !0 }), E(n, t + "\n", "utf-8");
119
119
  } catch {}
120
120
  return !r || t === "0" ? null : `[bitboss-ui] upgraded ${r} → ${t}. What breaks between them: npx bitboss-ui changelog --since ${r}`;
121
121
  }
122
122
  function Be(e) {
123
- let t = we(process.cwd(), e);
124
- return t && !t.startsWith("..") && !A(t) ? t : e;
123
+ let t = Ee(process.cwd(), e);
124
+ return t && !t.startsWith("..") && !O(t) ? t : e;
125
125
  }
126
126
  var L = /* @__PURE__ */ new Set();
127
127
  function Ve(e) {
128
128
  try {
129
- return JSON.parse(E(j(e, "..", "package.json"), "utf-8")).version ?? "0";
129
+ return JSON.parse(w(k(e, "..", "package.json"), "utf-8")).version ?? "0";
130
130
  } catch {
131
131
  return "0";
132
132
  }
133
133
  }
134
- var R = k(N(import.meta.url)), He = () => {
135
- for (let e of [j(R, "ai", "components.json"), j(R, "..", "dist", "ai", "components.json")]) if (w(e)) return e;
134
+ function He(e) {
135
+ let t = [];
136
+ try {
137
+ t.push(M(k(e, "package.json")).resolve("bitboss-ui/package.json"));
138
+ } catch {}
139
+ t.push(k(e, "node_modules", "bitboss-ui", "package.json"));
140
+ for (let e of t) try {
141
+ let t = JSON.parse(w(e, "utf-8")).version;
142
+ if (t) return t;
143
+ } catch {}
136
144
  return null;
137
- }, Ue = (e) => {
145
+ }
146
+ function Ue(e, t, n) {
147
+ if (!n || !t || t === "0") return null;
148
+ let r = He(n);
149
+ 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
+ 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;
153
+ return null;
154
+ }, Ge = (e) => {
138
155
  try {
139
- let { components: t } = JSON.parse(E(e, "utf-8"));
156
+ let { components: t } = JSON.parse(w(e, "utf-8"));
140
157
  return Array.isArray(t) ? new Map(t.map((e) => [e.name, e])) : null;
141
158
  } catch {
142
159
  return null;
143
160
  }
144
- }, We = (e) => Object.keys(x).filter((t) => x[t].includes(e));
145
- function Ge(e, t = He()) {
146
- let n = t ? Ue(t) : null;
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;
147
164
  if (!n) return null;
148
- for (let t of Object.keys(x)) {
149
- let r = S[t], i = me(b[t], e[r]);
150
- if (i.length) for (let e of x[t]) {
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]) {
151
168
  let t = n.get(e);
152
169
  if (!t) continue;
153
- let a = new Set(We(e).flatMap((e) => [...b[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));
154
- if (s) return `[bitboss-ui] ${C(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.`;
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.`;
155
172
  }
156
173
  }
157
174
  return null;
158
175
  }
159
- function Ke(e, t = He(), n = "pt", r = {}) {
176
+ function Je(e, t = We(), n = "pt", r = {}) {
160
177
  if (!e || !t) return null;
161
- let i = Ue(t);
178
+ let i = Ge(t);
162
179
  if (!i) return null;
163
180
  for (let [t, a] of Object.entries(e)) {
164
181
  let e = i.get(t);
165
182
  if (!e) {
166
- let e = y(t, [...i.keys()]);
183
+ let e = g(t, [...i.keys()]);
167
184
  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).`;
168
185
  }
169
186
  let o = e.props.map((e) => e.name).filter((e) => e.startsWith("pt:"));
@@ -181,27 +198,27 @@ function Ke(e, t = He(), n = "pt", r = {}) {
181
198
  }).join(" ")}`;
182
199
  }
183
200
  let [a, l] = e.split(":");
184
- if (l && e.split(":").length === 2 && We(t).some((e) => me(b[e], r[S[e]]).includes(l) && b[e].some((e) => o.includes(`pt:${a}:${e}`)))) continue;
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;
185
202
  let u = l && s.includes(a) ? o.filter((e) => e.endsWith(`:${l}`)).map((e) => e.split(":")[1]) : [];
186
203
  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(", ")}.`}`;
187
204
  }
188
205
  }
189
206
  return null;
190
207
  }
191
- var z = j(R, "i18n", "locales"), qe = (e) => {
192
- let t = te(e);
208
+ var z = k(R, "i18n", "locales"), Ye = (e) => {
209
+ let t = ne(e);
193
210
  return t ? ` — did you mean '${t}'?` : "";
194
211
  };
195
- function Je(e) {
212
+ function Xe(e) {
196
213
  let t = e.customLocaleKeys ?? [], n = m(e.locale) ?? "en", r = [], i = /* @__PURE__ */ new Set([n, "en"]), a = /* @__PURE__ */ new Set();
197
214
  for (let o of [...e.locale && /[-_]u[-_]/i.test(e.locale) ? [e.locale] : [], ...e.enabledLocales ?? []]) {
198
- let s = g(o, o === e.locale ? n : void 0);
215
+ let s = oe(o, o === e.locale ? n : void 0);
199
216
  if (s) {
200
217
  r.push(s);
201
218
  continue;
202
219
  }
203
220
  let c = m(o);
204
- 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${qe(o)} — ignored.`);
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.`);
205
222
  }
206
223
  return {
207
224
  enabled: [...i].sort(),
@@ -210,14 +227,14 @@ function Je(e) {
210
227
  warnings: r
211
228
  };
212
229
  }
213
- function Ye(e) {
230
+ function Ze(e) {
214
231
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = [], i = /* @__PURE__ */ new Set();
215
232
  for (let a of [e.locale ?? "en", ...e.enabledLocales ?? []]) {
216
233
  let e = m(a);
217
- if (!e || g(a)) continue;
218
- for (let { id: e, message: t } of _(a)) i.has(e) || (i.add(e), r.push(t));
219
- let o = h(a), s = p[e].calendar;
220
- o.ca && ie.includes(o.ca) && (s = o.ca === "gregory" ? void 0 : o.ca), o.nu && ae(o.nu) && n.add(o.nu), s && t.add(s);
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));
236
+ 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);
221
238
  }
222
239
  return {
223
240
  calendars: [...t].sort(),
@@ -225,8 +242,8 @@ function Ye(e) {
225
242
  warnings: r
226
243
  };
227
244
  }
228
- function Xe(e, t, n = R) {
229
- let r = (e, t) => JSON.stringify(w(j(n, e)) ? j(n, e) : j(n, t)), i = r("calendar-runtime.js", "utilities/calendar/runtime.ts");
245
+ function Qe(e, t, n = R) {
246
+ 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");
230
247
  if (!e.length && !t.extended) {
231
248
  let e = Object.fromEntries([.../* @__PURE__ */ new Set(["en", ...t.enabled])].map((e) => {
232
249
  let t = p[e];
@@ -236,29 +253,29 @@ function Xe(e, t, n = R) {
236
253
  }
237
254
  let a = {};
238
255
  for (let n of t.enabled) for (let t of e) {
239
- let e = ne[n]?.[t];
256
+ let e = re[n]?.[t];
240
257
  e && ((a[n] ??= {})[t] = e);
241
258
  }
242
- let o = e.map((e) => re[e]);
259
+ let o = e.map((e) => ie[e]);
243
260
  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`;
244
261
  }
245
- function Ze(e) {
262
+ function $e(e) {
246
263
  let t = /* @__PURE__ */ new Map();
247
264
  for (let n of e) {
248
265
  let e = p[n].dictionary;
249
- t.has(e) || t.set(e, JSON.parse(E(j(z, `${e}.json`), "utf-8")));
266
+ t.has(e) || t.set(e, JSON.parse(w(k(z, `${e}.json`), "utf-8")));
250
267
  }
251
268
  let n = [...t].map(([e, t]) => `\t${JSON.stringify(e)}: ${JSON.stringify(t)},`), r = [];
252
269
  for (let n of e) {
253
270
  let { tag: e, dictionary: i } = p[n];
254
271
  if (f[i] === e) continue;
255
- let a = v(t.get(i).datePickerInput, e);
272
+ let a = h(t.get(i).datePickerInput, e);
256
273
  a && r.push(`\t${JSON.stringify(n)}: ${JSON.stringify({ datePickerInput: a })},`);
257
274
  }
258
275
  return `export const locales = {\n${n.join("\n")}\n};\nexport const regionFormats = {\n${r.join("\n")}\n};\n`;
259
276
  }
260
- function Qe(e) {
261
- let t = P(import.meta.url), n = [], r = [];
277
+ function et(e) {
278
+ let t = M(import.meta.url), n = [], r = [];
262
279
  for (let i of e) {
263
280
  let e = m(i), a = e ? p[e].dayjs : i;
264
281
  if (a !== null) try {
@@ -275,19 +292,19 @@ function Qe(e) {
275
292
  missing: r
276
293
  };
277
294
  }
278
- function $e(e) {
295
+ function tt(e) {
279
296
  let t = [...new Set(e.map(({ pack: e }) => e))];
280
297
  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`;
281
298
  }
282
- function et(e, t, n = R, r) {
299
+ function nt(e, t, n = R, r) {
283
300
  if (e === !1) return "export default null;\n";
284
301
  let i;
285
302
  if (e === void 0) {
286
- let e = j(n, "passthrough-deduper.js");
287
- i = w(e) ? e : j(n, "utils/passthroughDeduper.ts");
288
- let a = r ?? ot(t);
303
+ let e = k(n, "passthrough-deduper.js");
304
+ i = S(e) ? e : k(n, "utils/passthroughDeduper.ts");
305
+ let a = r ?? st(t);
289
306
  if (Object.keys(a).length) return `import { createPassthroughDeduper } from ${JSON.stringify(i)};\nexport default createPassthroughDeduper(${JSON.stringify(a)});\n`;
290
- } else i = e.startsWith(".") || A(e) ? M(t, e) : e;
307
+ } else i = e.startsWith(".") || O(e) ? A(t, e) : e;
291
308
  return `export { default } from ${JSON.stringify(i)};\n`;
292
309
  }
293
310
  var B = [
@@ -322,7 +339,7 @@ var B = [
322
339
  "public",
323
340
  "coverage"
324
341
  ]);
325
- function tt(e) {
342
+ function rt(e) {
326
343
  let t = {};
327
344
  for (let n of e.matchAll(/@theme\b[^{]*\{([^}]*)\}/g)) for (let [, e] of n[1].matchAll(/--([a-z0-9-]+)\s*:/g)) {
328
345
  if (e.includes("--")) continue;
@@ -331,94 +348,94 @@ function tt(e) {
331
348
  }
332
349
  return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, [...t]]));
333
350
  }
334
- function nt(e) {
351
+ function H(e) {
335
352
  let t = {};
336
353
  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);
337
354
  return Object.fromEntries(Object.keys(t).sort().map((e) => [e, [...t[e]].sort()]));
338
355
  }
339
- function rt(e, t) {
356
+ function it(e, t) {
340
357
  if (!t.endsWith(".css")) return !1;
341
- let n = we(e, t);
342
- if (!n || n.startsWith("..") || A(n)) return !1;
358
+ let n = Ee(e, t);
359
+ if (!n || n.startsWith("..") || O(n)) return !1;
343
360
  let r = n.split(/[\\/]/);
344
361
  return r.length <= 7 && !r.some((e) => V.has(e));
345
362
  }
346
- function it(e) {
363
+ function at(e) {
347
364
  let t = /* @__PURE__ */ new Map(), n = (e, r) => {
348
365
  let i = (() => {
349
366
  try {
350
- return D(e, { withFileTypes: !0 });
367
+ return T(e, { withFileTypes: !0 });
351
368
  } catch {
352
369
  return [];
353
370
  }
354
371
  })();
355
372
  for (let a of i) {
356
- let i = j(e, a.name);
373
+ let i = k(e, a.name);
357
374
  if (a.isDirectory()) r < 6 && !V.has(a.name) && n(i, r + 1);
358
375
  else if (a.name.endsWith(".css")) {
359
- let e = at(i);
376
+ let e = ot(i);
360
377
  Object.keys(e).length && t.set(i, e);
361
378
  }
362
379
  }
363
380
  };
364
381
  return e && n(e, 0), t;
365
382
  }
366
- var at = (e) => {
383
+ var ot = (e) => {
367
384
  try {
368
- return tt(E(e, "utf-8"));
385
+ return rt(w(e, "utf-8"));
369
386
  } catch {
370
387
  return {};
371
388
  }
372
389
  };
373
- function ot(e) {
374
- return nt(it(e).values());
375
- }
376
390
  function st(e) {
391
+ return H(at(e).values());
392
+ }
393
+ function ct(e) {
377
394
  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.";
378
395
  }
379
- var ct = "@inertiajs/vue3", H = [
396
+ var lt = "@inertiajs/vue3", U = [
380
397
  "dependencies",
381
398
  "devDependencies",
382
399
  "peerDependencies",
383
400
  "optionalDependencies"
384
401
  ];
385
- function U(e) {
386
- let t = M(e);
402
+ function W(e) {
403
+ let t = A(e);
387
404
  for (;;) {
388
- let e = j(t, "package.json");
389
- if (w(e)) try {
390
- return JSON.parse(E(e, "utf-8"));
405
+ let e = k(t, "package.json");
406
+ if (S(e)) try {
407
+ return JSON.parse(w(e, "utf-8"));
391
408
  } catch {
392
409
  return null;
393
410
  }
394
- let n = k(t);
411
+ let n = D(t);
395
412
  if (n === t) return null;
396
413
  t = n;
397
414
  }
398
415
  }
399
- function W(e, t) {
400
- return H.some((n) => {
416
+ function G(e, t) {
417
+ return U.some((n) => {
401
418
  let r = e[n];
402
419
  return typeof r == "object" && !!r && t in r;
403
420
  });
404
421
  }
405
- function lt(e, t) {
406
- let n = t.split("/"), r = M(e);
422
+ function ut(e, t) {
423
+ let n = t.split("/"), r = A(e);
407
424
  for (;;) {
408
- if (w(j(r, "node_modules", ...n))) return !0;
409
- let e = k(r);
425
+ if (S(k(r, "node_modules", ...n))) return !0;
426
+ let e = D(r);
410
427
  if (e === r) return !1;
411
428
  r = e;
412
429
  }
413
430
  }
414
- function ut(e) {
415
- let t = U(e);
416
- return !t || !W(t, ct) ? !1 : lt(e, ct);
417
- }
418
431
  function dt(e) {
432
+ let t = W(e);
433
+ return !t || !G(t, lt) ? !1 : ut(e, lt);
434
+ }
435
+ function ft(e) {
419
436
  return e ? "export { Link as InertiaLink } from '@inertiajs/vue3';\n" : "export const InertiaLink = null;\n";
420
437
  }
421
- var ft = [
438
+ var pt = [
422
439
  "@floating-ui/vue",
423
440
  "@tanstack/vue-virtual",
424
441
  "@vueuse/core",
@@ -434,50 +451,50 @@ var ft = [
434
451
  "mime",
435
452
  "object-code",
436
453
  "tailwind-merge"
437
- ], pt = ["bitboss-ui"], mt = "@internationalized/date", ht = ct, G = "bitboss-ui";
438
- function gt(e) {
439
- return typeof e == "string" ? e === G : (e.lastIndex = 0, e.test(G));
440
- }
454
+ ], mt = ["bitboss-ui"], ht = "@internationalized/date", gt = lt, K = "bitboss-ui";
441
455
  function _t(e) {
442
- return e === !0 ? [] : e == null || e === !1 ? [G] : (Array.isArray(e) ? e : [e]).some(gt) ? [] : [G];
456
+ return typeof e == "string" ? e === K : (e.lastIndex = 0, e.test(K));
457
+ }
458
+ function vt(e) {
459
+ return e === !0 ? [] : e == null || e === !1 ? [K] : (Array.isArray(e) ? e : [e]).some(_t) ? [] : [K];
443
460
  }
444
- var vt = "virtual:bitboss-ui/icons", yt = "\0virtual:bitboss-ui/icons", bt = "virtual:bitboss-ui/config", xt = "\0virtual:bitboss-ui/config", St = "virtual:bitboss-ui/dayjs-locales", Ct = "\0virtual:bitboss-ui/dayjs-locales", wt = "virtual:bitboss-ui/calendars", Tt = "\0virtual:bitboss-ui/calendars", Et = "virtual:bitboss-ui/locales", Dt = "\0virtual:bitboss-ui/locales", Ot = "virtual:bitboss-ui/styles", kt = "\0virtual:bitboss-ui/styles", At = "virtual:bitboss-ui/vee-validate-missing", jt = "\0virtual:bitboss-ui/vee-validate-missing", Mt = "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.", Nt = ["useForm", "useField"];
445
- function Pt() {
461
+ 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"];
462
+ function It() {
446
463
  return [
447
- `const fail = () => { throw new Error(${JSON.stringify(K)} + ' (${Mt})'); };`,
448
- ...Nt.map((e) => `export const ${e} = fail;`),
464
+ `const fail = () => { throw new Error(${JSON.stringify(Pt)} + ' (${Nt})'); };`,
465
+ ...Ft.map((e) => `export const ${e} = fail;`),
449
466
  ""
450
467
  ].join("\n");
451
468
  }
452
- function Ft(e) {
469
+ function Lt(e) {
453
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);
454
471
  }
455
- var It = "virtual:bitboss-ui/link", Lt = "\0virtual:bitboss-ui/link", Rt = "virtual:bitboss-ui/passthrough-deduper", zt = "\0virtual:bitboss-ui/passthrough-deduper";
456
- function Bt() {
457
- let e = j(R, "styles.css");
458
- return w(e) ? E(e, "utf-8") : ["main.css", "variables.css"].map((e) => {
459
- let t = j(R, "assets/css", e);
460
- return w(t) ? E(t, "utf-8") : "";
472
+ var Rt = "virtual:bitboss-ui/link", zt = "\0virtual:bitboss-ui/link", Bt = "virtual:bitboss-ui/passthrough-deduper", Vt = "\0virtual:bitboss-ui/passthrough-deduper";
473
+ function Ht() {
474
+ let e = k(R, "styles.css");
475
+ return S(e) ? w(e, "utf-8") : ["main.css", "variables.css"].map((e) => {
476
+ let t = k(R, "assets/css", e);
477
+ return S(t) ? w(t, "utf-8") : "";
461
478
  }).join("\n");
462
479
  }
463
- var Vt = "local", Ht = "./assets/icons";
464
- function Ut(e) {
480
+ var Ut = "local", Wt = "./assets/icons";
481
+ function Gt(e) {
465
482
  let t = {};
466
483
  try {
467
- let n = D(e, {
484
+ let n = T(e, {
468
485
  recursive: !0,
469
486
  encoding: "utf-8"
470
487
  }).filter((e) => e.endsWith(".svg"));
471
488
  for (let r of n) {
472
- let n = Ce(r, ".svg");
489
+ let n = Te(r, ".svg");
473
490
  try {
474
- let i = De(E(j(e, r), "utf-8")), a = i && Te(i);
491
+ let i = ke(w(k(e, r), "utf-8")), a = i && De(i);
475
492
  a && (t[n] = a);
476
493
  } catch {}
477
494
  }
478
495
  } catch {}
479
496
  return {
480
- prefix: Vt,
497
+ prefix: Ut,
481
498
  info: {
482
499
  name: "Local",
483
500
  author: { name: "Icons automatically inferred from the icons installed locally" },
@@ -486,12 +503,12 @@ function Ut(e) {
486
503
  icons: t
487
504
  };
488
505
  }
489
- var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJsonPaths", Y = "tailwindCSS.classAttributes", X = "tailwindCSS.experimental.classRegex", Wt = "editor.quickSuggestions", Z = "pt(?::[\\w&-]+)*", Gt = [
506
+ 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 = [
490
507
  "class",
491
508
  "className",
492
509
  "ngClass",
493
510
  "class:list"
494
- ], Kt = "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w&-]+)*\\s*=\\s*", qt = [
511
+ ], Jt = "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w&-]+)*\\s*=\\s*", Yt = [
495
512
  "\\?\\s*'([^\\s':][^']*)'",
496
513
  "'([^\\s':][^']*)'(?!\\s*:)",
497
514
  "\\?\\s*\"([^\\s\":][^\"]*)\"",
@@ -499,28 +516,28 @@ var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJs
499
516
  "\\?\\s*`([^\\s`:][^`]*)`",
500
517
  "`([^\\s`:][^`]*)`(?!\\s*:)"
501
518
  ], Q = [
502
- `${Kt}"([\\s\\S]*?)"`,
503
- `${Kt}'([\\s\\S]*?)'`,
519
+ `${Jt}"([\\s\\S]*?)"`,
520
+ `${Jt}'([\\s\\S]*?)'`,
504
521
  "\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}"
505
- ].flatMap((e) => qt.map((t) => [e, t])), Jt = { strings: "on" }, Yt = () => ({
522
+ ].flatMap((e) => Yt.map((t) => [e, t])), Xt = { strings: "on" }, Zt = () => ({
506
523
  [J]: [q],
507
- [Y]: [...Gt, Z],
524
+ [Y]: [...qt, Z],
508
525
  [X]: Q,
509
- [Wt]: Jt
526
+ [Kt]: Xt
510
527
  });
511
- function Xt(e, t) {
512
- let n = j(t, q);
528
+ function Qt(e, t) {
529
+ let n = k(t, q);
513
530
  try {
514
- return T(k(n), { recursive: !0 }), O(n, JSON.stringify(Ut(e)), "utf-8"), null;
531
+ return C(D(n), { recursive: !0 }), E(n, JSON.stringify(Gt(e)), "utf-8"), null;
515
532
  } catch (e) {
516
- return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${rn}`;
533
+ return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${on}`;
517
534
  }
518
535
  }
519
- function Zt(e, t) {
520
- if (e === Ht) return null;
536
+ function $t(e, t) {
537
+ if (e === Wt) return null;
521
538
  let n = 0;
522
539
  try {
523
- n = D(t, {
540
+ n = T(t, {
524
541
  recursive: !0,
525
542
  encoding: "utf-8"
526
543
  }).filter((e) => e.endsWith(".svg")).length;
@@ -529,7 +546,7 @@ function Zt(e, t) {
529
546
  }
530
547
  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/\`).`;
531
548
  }
532
- function Qt(e) {
549
+ function en(e) {
533
550
  let t = "", n = !1, r = !1, i = !1;
534
551
  for (let a = 0; a < e.length; a++) {
535
552
  let o = e[a], s = e[a + 1];
@@ -537,8 +554,8 @@ function Qt(e) {
537
554
  }
538
555
  return t;
539
556
  }
540
- var $t = (e) => e === " " || e === " " || e === "\n" || e === "\r";
541
- function en(e, t) {
557
+ var tn = (e) => e === " " || e === " " || e === "\n" || e === "\r";
558
+ function nn(e, t) {
542
559
  let n = !1, r = !1;
543
560
  for (let i = t; i < e.length; i++) {
544
561
  let t = e[i], a = e[i + 1];
@@ -546,11 +563,11 @@ function en(e, t) {
546
563
  else if (r) t === "*" && a === "/" && (r = !1, i++);
547
564
  else if (t === "/" && a === "/") n = !0, i++;
548
565
  else if (t === "/" && a === "*") r = !0, i++;
549
- else if (!$t(t)) return i;
566
+ else if (!tn(t)) return i;
550
567
  }
551
568
  return -1;
552
569
  }
553
- function tn(e, t) {
570
+ function rn(e, t) {
554
571
  let n = !1, r = !1, i = !1, a = -1, o = 0, s = null;
555
572
  for (let c = 0; c < e.length; c++) {
556
573
  let l = e[c], u = e[c + 1];
@@ -565,19 +582,19 @@ function tn(e, t) {
565
582
  } else if (l === "/" && u === "/") n = !0, c++;
566
583
  else if (l === "/" && u === "*") r = !0, c++;
567
584
  else if (l === "\"") i = !0, a = c;
568
- else if (!$t(l)) {
585
+ else if (!tn(l)) {
569
586
  if (l === ":" && s !== null) {
570
587
  let n = s === t;
571
588
  if (s = null, !n) continue;
572
- let r = en(e, c + 1);
573
- return r === -1 || e[r] !== "[" ? null : nn(e, r);
589
+ let r = nn(e, c + 1);
590
+ return r === -1 || e[r] !== "[" ? null : an(e, r);
574
591
  }
575
592
  s = null, l === "{" || l === "[" ? o++ : (l === "}" || l === "]") && o--;
576
593
  }
577
594
  }
578
595
  return null;
579
596
  }
580
- function nn(e, t) {
597
+ function an(e, t) {
581
598
  let n = !1, r = !1, i = !1, a = 0, o = -1;
582
599
  for (let s = t; s < e.length; s++) {
583
600
  let c = e[s], l = e[s + 1];
@@ -592,7 +609,7 @@ function nn(e, t) {
592
609
  } else if (c === "/" && l === "/") n = !0, s++;
593
610
  else if (c === "/" && l === "*") r = !0, s++;
594
611
  else if (c === "\"") i = !0, o = s + 1;
595
- else if (!$t(c)) {
612
+ else if (!tn(c)) {
596
613
  if (c === "[" || c === "{") a++, s > t && (o = s + 1);
597
614
  else if (c === "]" || c === "}") {
598
615
  if (a--, a === 0 && c === "]") return {
@@ -606,10 +623,10 @@ function nn(e, t) {
606
623
  }
607
624
  return null;
608
625
  }
609
- var rn = "Set `vscodeSettings: false` in the plugin options to disable this write.", $ = `add "${J}": ["${q}"], "${Y}" (include ${JSON.stringify(Z)}), and "${X}" for passthrough IntelliSense`, an = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" && (e === "pt(?::[\\w&-]+)*" || e === "pt" || e.startsWith("pt:") || e.startsWith("pt("))), on = (e) => Array.isArray(e) ? Q.filter((t) => !e.some((e) => JSON.stringify(e) === JSON.stringify(t))) : [...Q], sn = (e) => JSON.stringify(e, null, " ").replace(/\n/g, "\n ");
610
- function cn(e, t, n) {
626
+ 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 ");
627
+ function un(e, t, n) {
611
628
  if (n.length === 0) return e;
612
- let r = tn(e, t);
629
+ let r = rn(e, t);
613
630
  if (!r) return null;
614
631
  if (r.lastSignificantEnd === -1) return e.slice(0, r.close) + n.join(", ") + e.slice(r.close);
615
632
  if (e.slice(r.open + 1, r.close).includes("\n")) {
@@ -618,55 +635,55 @@ function cn(e, t, n) {
618
635
  }
619
636
  return e.slice(0, r.lastSignificantEnd) + `, ${n.join(", ")}` + e.slice(r.lastSignificantEnd);
620
637
  }
621
- function ln(e, t, n) {
638
+ function dn(e, t, n) {
622
639
  if (t.length === 0) return e;
623
- let r = en(e, 0);
640
+ let r = nn(e, 0);
624
641
  if (r === -1 || e[r] !== "{") return null;
625
642
  let i = t.map((e, r) => {
626
643
  let i = r === t.length - 1, a = n || !i ? "," : "", o = n || !i ? "" : "\n";
627
- return `\n\t${JSON.stringify(e.key)}: ${sn(e.value)}${a}${o}`;
644
+ return `\n\t${JSON.stringify(e.key)}: ${ln(e.value)}${a}${o}`;
628
645
  }).join("");
629
646
  return e.slice(0, r + 1) + i + e.slice(r + 1);
630
647
  }
631
- function un(e, t) {
632
- let n = j(e, ".vscode"), r = j(n, "settings.json"), i = "";
648
+ function fn(e, t) {
649
+ let n = k(e, ".vscode"), r = k(n, "settings.json"), i = "";
633
650
  try {
634
- i = E(r, "utf-8");
651
+ i = w(r, "utf-8");
635
652
  } catch {}
636
653
  let a = [], o = (e) => {
637
654
  a.push(e);
638
655
  }, s = (e) => {
639
656
  try {
640
- return T(n, { recursive: !0 }), O(r, e, "utf-8"), !0;
657
+ return C(n, { recursive: !0 }), E(r, e, "utf-8"), !0;
641
658
  } catch (e) {
642
- return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${rn}`), !1;
659
+ return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${on}`), !1;
643
660
  }
644
661
  };
645
662
  if (!i.trim()) {
646
- if (!s(JSON.stringify(Yt(), null, " ") + "\n")) return;
647
- t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${Wt}". ${rn}`);
663
+ if (!s(JSON.stringify(Zt(), null, " ") + "\n")) return;
664
+ t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${Kt}". ${on}`);
648
665
  return;
649
666
  }
650
667
  let c;
651
668
  try {
652
- c = JSON.parse(Qt(i));
669
+ c = JSON.parse(en(i));
653
670
  } catch {
654
671
  t.warn(`[bitboss-ui] Could not parse .vscode/settings.json — ${$}.`);
655
672
  return;
656
673
  }
657
674
  let l = (e) => {
658
675
  try {
659
- return c = JSON.parse(Qt(e)), i = e, !0;
676
+ return c = JSON.parse(en(e)), i = e, !0;
660
677
  } catch {
661
678
  return t.warn(`[bitboss-ui] Could not parse .vscode/settings.json after splice — ${$}.`), !1;
662
679
  }
663
680
  }, u = (e, n, r) => {
664
681
  if (!Array.isArray(c[e])) return t.warn(`[bitboss-ui] .vscode/settings.json has a non-array "${e}" — ${$}.`), !1;
665
- let a = cn(i, e, n);
682
+ let a = un(i, e, n);
666
683
  return a ? l(a) ? (o(r), !0) : !1 : (t.warn(`[bitboss-ui] Could not locate "${e}" in .vscode/settings.json — ${$}.`), !1);
667
684
  };
668
- if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && J in c && u(J, [JSON.stringify(q)], `added "${q}" to "${J}"`), Y in c && !an(c[Y]) && u(Y, [JSON.stringify(Z)], `added ${JSON.stringify(Z)} to "${Y}"`), X in c) {
669
- let e = on(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 && !sn(c[Y]) && u(Y, [JSON.stringify(Z)], `added ${JSON.stringify(Z)} to "${Y}"`), X in c) {
686
+ let e = cn(c[X]);
670
687
  e.length > 0 && u(X, e.map((e) => JSON.stringify(e)), `added ${e.length} "${X}" ${e.length === 1 ? "entry" : "entries"} for passthrough`);
671
688
  }
672
689
  let d = [];
@@ -675,106 +692,115 @@ function un(e, t) {
675
692
  value: [q]
676
693
  }), Y in c || d.push({
677
694
  key: Y,
678
- value: [...Gt, Z]
695
+ value: [...qt, Z]
679
696
  }), X in c || d.push({
680
697
  key: X,
681
698
  value: Q
682
- }), Wt in c || d.push({
683
- key: Wt,
684
- value: Jt
699
+ }), Kt in c || d.push({
700
+ key: Kt,
701
+ value: Xt
685
702
  }), d.length > 0) {
686
- let e = Object.keys(c).length > 0, n = ln(i, d, e);
703
+ let e = Object.keys(c).length > 0, n = dn(i, d, e);
687
704
  if (!n) t.warn(`[bitboss-ui] .vscode/settings.json is not a JSON object — ${$}.`);
688
705
  else if (l(n)) for (let e of d) o(`added "${e.key}"`);
689
706
  }
690
- a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${rn}`);
707
+ a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${on}`);
691
708
  }
692
- var dn = "virtual:bb-icon/", fn = "\0virtual:bb-icon/";
693
- async function pn(e, t, n) {
709
+ var pn = "virtual:bb-icon/", mn = "\0virtual:bb-icon/";
710
+ async function hn(e, t, n) {
694
711
  try {
695
- let { syncAgentSetup: r } = await import(
712
+ let [{ syncAgentSetup: r }, i] = await Promise.all([import(
696
713
  /* @vite-ignore */
697
714
  new URL("../scripts/lib/agent-setup.mjs", import.meta.url).href
698
- ), i = e;
699
- for (; !w(j(i, "package.json"));) {
700
- let t = k(i);
701
- if (t === i) {
702
- i = e;
715
+ ), import(
716
+ /* @vite-ignore */
717
+ new URL("../scripts/lib/tooling-options.mjs", import.meta.url).href
718
+ )]), a = e;
719
+ for (; !S(k(a, "package.json"));) {
720
+ let t = D(a);
721
+ if (t === a) {
722
+ a = e;
703
723
  break;
704
724
  }
705
- i = t;
725
+ a = t;
726
+ }
727
+ let o = i.readToolingOptions(a), s = i.agentFilesAi(o, t);
728
+ if (s === void 0) {
729
+ let e = i.toolingNotice(o);
730
+ e && n.warn(e);
731
+ return;
706
732
  }
707
- let { results: a, notes: o } = r(i, { ai: t }), s = a.filter((e) => e.action !== "unchanged" && e.action !== "skipped");
708
- if (s.length > 0) {
709
- n.info(`[bitboss-ui] agent setup: ${s.map((e) => `${e.action} ${e.path}`).join(", ")}. Commit these; restart your agent to pick them up.`);
710
- for (let e of o) n.info(`[bitboss-ui] ${e}`);
733
+ let { results: c, notes: l } = r(a, { ai: s }), u = c.filter((e) => e.action !== "unchanged" && e.action !== "skipped");
734
+ if (u.length > 0) {
735
+ n.info(`[bitboss-ui] agent setup: ${u.map((e) => `${e.action} ${e.path}`).join(", ")}. Commit these; restart your agent to pick them up.`);
736
+ for (let e of l) n.info(`[bitboss-ui] ${e}`);
711
737
  }
712
- for (let e of a.filter((e) => e.action === "skipped")) n.warn(`[bitboss-ui] agent setup: skipped ${e.path}${e.reason ? ` (${e.reason})` : ""}`);
738
+ for (let e of c.filter((e) => e.action === "skipped")) n.warn(`[bitboss-ui] agent setup: skipped ${e.path}${e.reason ? ` (${e.reason})` : ""}`);
713
739
  } catch (e) {
714
740
  let t = e instanceof Error ? e.message : String(e);
715
741
  n.warn(`[bitboss-ui] agent setup failed (${t})`);
716
742
  }
717
743
  }
718
- var mn = Symbol.for("bitboss-ui:editorRoot");
719
- function hn(e = {}) {
720
- let n = ue(e);
744
+ var gn = Symbol.for("bitboss-ui:editorRoot");
745
+ function _n(e = {}) {
746
+ let n = pe(e);
721
747
  if (n) throw Error(n);
722
- let r = de(e);
748
+ let r = me(e);
723
749
  if (r) throw Error(r);
724
- let i = He(), a = i ? [...Ue(i)?.keys() ?? []] : void 0, s = ce(e.components, {
725
- variantComponents: pe,
750
+ let i = We(), a = i ? [...Ge(i)?.keys() ?? []] : void 0, s = de(e.components, {
751
+ variantComponents: ge,
726
752
  knownComponents: a
727
753
  });
728
754
  if (s) throw Error(s);
729
- let c = le(e.configScopes, {
730
- variantComponents: pe,
755
+ let c = fe(e.configScopes, {
756
+ variantComponents: ge,
731
757
  knownComponents: a
732
758
  });
733
759
  if (c) throw Error(c);
734
760
  let { components: l } = e, f = {
735
- iconDir: Ht,
761
+ iconDir: Wt,
736
762
  ...e,
737
- ...ge(l),
738
- pt: se(l)
739
- }, h = e[mn];
763
+ ...ye(l),
764
+ pt: ue(l)
765
+ }, te = e[gn], ne = Ve(R);
740
766
  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.");
741
- let te = u(f.cssLayers, { resetCss: f.resetCss ?? !1 });
742
- if (te) throw Error(te);
743
- let ne = oe(f.pt);
744
- if (ne) throw Error(ne);
745
- let re = Ge(f);
767
+ let re = u(f.cssLayers, { resetCss: f.resetCss ?? !1 });
746
768
  if (re) throw Error(re);
747
- let ie = Ke(f.pt, void 0, "components", f);
769
+ let ie = le(f.pt);
748
770
  if (ie) throw Error(ie);
771
+ let ae = qe(f);
772
+ if (ae) throw Error(ae);
773
+ let se = Je(f.pt, void 0, "components", f);
774
+ if (se) throw Error(se);
749
775
  for (let [e, t] of Object.entries(f.configScopes ?? {})) {
750
- let n = Ke(se(t), void 0, `configScopes.${e}`, f);
776
+ let n = Je(ue(t), void 0, `configScopes.${e}`, f);
751
777
  if (n) throw Error(n);
752
778
  }
753
- let ae = st(f.passthroughDeduper);
754
- if (ae) throw Error(ae);
755
- let _, v, y, x, C = !0, Se = [], T = !1, D, O, k = !1, A = (e, t, n) => {
756
- let r = Xt(e, t);
757
- r && !k && (k = !0, n(r));
779
+ let ce = ct(f.passthroughDeduper);
780
+ if (ce) throw Error(ce);
781
+ let h, g, v, b, x = !0, C = [], T = !1, E, D, O = !1, k = (e, t, n) => {
782
+ let r = Qt(e, t);
783
+ r && !O && (O = !0, n(r));
758
784
  }, j = {
759
785
  info: (e) => console.warn(e),
760
786
  warn: (e) => console.warn(e)
761
- }, N = [], P = [], Te = [], { enabled: I, defaultLocale: Ee, extended: De, warnings: Ae } = Je({
787
+ }, M = [], De = [], Oe = [], { enabled: P, defaultLocale: ke, extended: F, warnings: Ne } = Xe({
762
788
  locale: f.locale,
763
789
  enabledLocales: f.enabledLocales,
764
- customLocaleKeys: N
765
- }), { calendars: Me, numberingSystems: Ie, warnings: We } = Ye({
790
+ customLocaleKeys: M
791
+ }), { calendars: I, numberingSystems: He, warnings: Ke } = Ze({
766
792
  locale: f.locale,
767
793
  enabledLocales: f.enabledLocales
768
- }), z = Qe([...I, ...N]), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Set(), ot = () => {
769
- B.clear(), V.clear(), at = Pe(_);
770
- for (let e of Ne(_)) B.set(e.prefix, e), V.set(e.prefix, (t) => je(e.prefix, t));
771
- H = null, U = null;
772
- }, ct = (e, t) => {
794
+ }), z = et([...P, ...M]), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Set(), st = () => {
795
+ B.clear(), V.clear(), ot = Fe(h);
796
+ for (let e of Pe(h)) B.set(e.prefix, e), V.set(e.prefix, (t) => Me(e.prefix, t));
797
+ U = null, W = null;
798
+ }, lt = (e, t) => {
773
799
  let n = B.get(e);
774
800
  if (!n) return !1;
775
801
  let r = V.get(e);
776
- return F(n, t) !== null && (!r || r(t));
777
- }, H = null, U = null, W = null, G = () => U || (U = (async () => {
802
+ return N(n, t) !== null && (!r || r(t));
803
+ }, U = null, W = null, G = null, K = () => W || (W = (async () => {
778
804
  let e = f.iconsScanner ?? {}, n = JSON.stringify({
779
805
  version: Ve(R),
780
806
  sets: Array.from(B.entries()).map(([e, t]) => [e, t.lastModified ?? 0]).sort(([e], [t]) => e < t ? -1 : +(e > t)),
@@ -782,40 +808,40 @@ function hn(e = {}) {
782
808
  exclude: e.exclude ?? [],
783
809
  maxFileSize: e.maxFileSize ?? null
784
810
  }), r = new t({
785
- root: _,
786
- outDir: D ?? M(_, "dist"),
811
+ root: h,
812
+ outDir: E ?? A(h, "dist"),
787
813
  scanner: e,
788
814
  prefixes: Array.from(B.keys()),
789
- resolves: ct,
790
- cacheFile: o(_),
815
+ resolves: lt,
816
+ cacheFile: o(h),
791
817
  cacheKey: n
792
818
  }), i = await r.scan();
793
- 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)`), H = r, W) for (let e of r.includeDirs) W.add(e);
819
+ 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);
794
820
  return r;
795
- })(), U);
821
+ })(), W);
796
822
  return {
797
823
  name: "bitboss-ui:icon-registry",
798
824
  configEnvironment(e, t) {
799
825
  if (e !== "client") return;
800
- let n = t.optimizeDeps?.include ?? [], r = Se.filter((e) => !n.includes(e));
826
+ let n = t.optimizeDeps?.include ?? [], r = C.filter((e) => !n.includes(e));
801
827
  if (r.length) return { optimizeDeps: { include: r } };
802
828
  },
803
829
  config(e) {
804
830
  let t = e.optimizeDeps?.include ?? [], n = e.optimizeDeps?.exclude ?? [], r = e.root ?? process.cwd();
805
- C = lt(r, "vee-validate");
806
- let i = ut(r) ? [...ft, ht] : ft, a = z.found.map(({ pack: e }) => `dayjs/locale/${e}`), o = Me.length ? [mt] : [];
807
- Se = [
831
+ x = ut(r, "vee-validate");
832
+ let i = dt(r) ? [...pt, gt] : pt, a = z.found.map(({ pack: e }) => `dayjs/locale/${e}`), o = I.length ? [ht] : [];
833
+ C = [
808
834
  ...i,
809
835
  ...a,
810
836
  ...o
811
837
  ];
812
838
  let s = (e.build?.assetsDir ?? "assets").replace(/\/+$/, ""), c = e.build?.rollupOptions?.output, l = (Array.isArray(c) ? c[0] : c)?.chunkFileNames, u = e.ssr;
813
839
  u && u.noExternal === !1 && delete u.noExternal;
814
- let d = _t(u?.noExternal);
840
+ let d = vt(u?.noExternal);
815
841
  return {
816
- ...C ? {} : { resolve: { alias: [{
842
+ ...x ? {} : { resolve: { alias: [{
817
843
  find: /^vee-validate$/,
818
- replacement: At
844
+ replacement: jt
819
845
  }] } },
820
846
  optimizeDeps: {
821
847
  include: [
@@ -823,11 +849,11 @@ function hn(e = {}) {
823
849
  ...a,
824
850
  ...o
825
851
  ].filter((e) => !t.includes(e)),
826
- exclude: pt.filter((e) => !n.includes(e))
852
+ exclude: mt.filter((e) => !n.includes(e))
827
853
  },
828
854
  ...d.length ? { ssr: { noExternal: d } } : {},
829
855
  build: { rollupOptions: { output: { chunkFileNames(e) {
830
- if (e.facadeModuleId?.startsWith(fn)) {
856
+ if (e.facadeModuleId?.startsWith(mn)) {
831
857
  let t = e.facadeModuleId.slice(17);
832
858
  return `${s}/icons/${t.replace("/", "_")}-[hash].js`;
833
859
  }
@@ -836,28 +862,32 @@ function hn(e = {}) {
836
862
  };
837
863
  },
838
864
  transform(e, t) {
839
- return C || t.includes("/node_modules/") || t.startsWith("\0") || !/\.(vue|[cm]?[jt]sx?)(\?|$)/.test(t) || Ft(e) && this.error(`${K}\n used in ${we(_ || process.cwd(), t.split("?")[0])}`), null;
865
+ 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;
840
866
  },
841
867
  renderChunk(e) {
842
- return !C && e.includes(Mt) && this.error(K), null;
868
+ return !x && e.includes(Nt) && this.error(Pt), null;
843
869
  },
844
870
  configResolved(e) {
845
- _ = e.root, x = h ?? _, T = e.command === "build", D = M(_, e.build?.outDir ?? "dist"), O = e.build?.rollupOptions?.input, e.logger && (j = e.logger);
871
+ 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);
846
872
  },
847
873
  resolveId(e) {
848
- if (e === vt) return yt;
849
- if (e === bt) return xt;
850
- if (e === St) return Ct;
851
- if (e === Et) return Dt;
852
- if (e === wt) return Tt;
853
- if (e === Ot) return kt;
854
- if (e === It) return Lt;
855
- if (e === At) return jt;
874
+ if (e === yt) return bt;
875
+ if (e === xt) return St;
876
+ if (e === Ct) return wt;
877
+ if (e === Dt) return Ot;
878
+ if (e === Tt) return Et;
879
+ if (e === kt) return At;
856
880
  if (e === Rt) return zt;
857
- if (e.startsWith(dn)) return "\0" + e;
881
+ if (e === jt) return Mt;
882
+ if (e === Bt) return Vt;
883
+ if (e.startsWith(pn)) return "\0" + e;
884
+ if (e.startsWith("virtual:bitboss-ui/")) {
885
+ let t = Ue(e, ne, h);
886
+ t && this.error(t);
887
+ }
858
888
  },
859
889
  async load(e) {
860
- if (e === xt) {
890
+ if (e === St) {
861
891
  let { iconDir: e, enabledLocales: t, passthroughDeduper: n, configScopes: r, components: i, pt: a, ...o } = f, s = {
862
892
  inertiaLinkName: "Link",
863
893
  nuxtLinkName: "NuxtLink",
@@ -870,89 +900,89 @@ function hn(e = {}) {
870
900
  resetCss: !1,
871
901
  cssLayers: void 0,
872
902
  injectDirectives: !0,
873
- ...Object.fromEntries(Object.entries(o).filter(([e]) => !Object.values(S).includes(e))),
903
+ ...Object.fromEntries(Object.entries(o).filter(([e]) => !Object.values(y).includes(e))),
874
904
  pt: f.pt,
875
- components: fe(f.components),
905
+ components: he(f.components),
876
906
  variantIcons: {
877
- toast: be(f.toastVariants),
878
- alert: be(f.alertVariants)
907
+ toast: Ce(f.toastVariants),
908
+ alert: Ce(f.alertVariants)
879
909
  },
880
- variantNames: Object.fromEntries(Object.keys(S).map((e) => [S[e], me(b[e], f[S[e]])])),
881
- defaultLocale: Ee,
882
- ...f.locale !== void 0 && g(f.locale) ? { locale: Ee } : {}
910
+ variantNames: Object.fromEntries(Object.keys(y).map((e) => [y[e], _e(_[e], f[y[e]])])),
911
+ defaultLocale: ke,
912
+ ...f.locale !== void 0 && oe(f.locale) ? { locale: ke } : {}
883
913
  };
884
914
  return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(s)});\nexport const configScopes = ${JSON.stringify(r ?? {})};\n`;
885
915
  }
886
- if (e === Dt) return Ze(I);
887
- if (e === Ct) return $e(z.found);
888
- if (e === Tt) return Xe(Me, {
889
- enabled: I.filter((e) => p[e].dayjs === null || z.found.some((t) => t.key === e)),
890
- extended: De.length > 0,
891
- numberingSystems: Ie
916
+ if (e === Ot) return $e(P);
917
+ if (e === wt) return tt(z.found);
918
+ if (e === Et) return Qe(I, {
919
+ enabled: P.filter((e) => p[e].dayjs === null || z.found.some((t) => t.key === e)),
920
+ extended: F.length > 0,
921
+ numberingSystems: He
892
922
  });
893
- if (e === kt) return `export default ${JSON.stringify(Bt())};`;
894
- if (e === jt) return Pt();
895
- if (e === Lt) return dt(ut(_));
896
- if (e === zt) {
897
- if (f.passthroughDeduper !== void 0) return et(f.passthroughDeduper, _);
898
- v ??= it(_);
899
- let e = nt(v.values());
900
- return y = JSON.stringify(e), et(void 0, _, void 0, e);
923
+ if (e === At) return `export default ${JSON.stringify(Ht())};`;
924
+ if (e === Mt) return It();
925
+ if (e === zt) return ft(dt(h));
926
+ if (e === Vt) {
927
+ if (f.passthroughDeduper !== void 0) return nt(f.passthroughDeduper, h);
928
+ g ??= at(h);
929
+ let e = H(g.values());
930
+ return v = JSON.stringify(e), nt(void 0, h, void 0, e);
901
931
  }
902
- if (e.startsWith(fn)) {
932
+ if (e.startsWith(mn)) {
903
933
  let t = e.slice(17), n = t.indexOf("/"), r = t.slice(0, n), i = t.slice(n + 1), a = B.get(r);
904
934
  a || this.error(`[bitboss-ui] cannot load "${r}:${i}" — @iconify-json/${r} is not installed.\n Run: npm install -D @iconify-json/${r}`);
905
- let o = F(a, i);
906
- return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(ke(o))};`;
935
+ let o = N(a, i);
936
+ return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(je(o))};`;
907
937
  }
908
- if (e !== yt) return;
909
- let t = M(_, f.iconDir), n = "/" + we(_, t).replace(/\\/g, "/") + "/**/*.svg", r = await G(), i = Re(f.iconWhitelist ?? [], B, V, at);
938
+ if (e !== bt) return;
939
+ let t = A(h, f.iconDir), n = "/" + Ee(h, t).replace(/\\/g, "/") + "/**/*.svg", r = await K(), i = Re(f.iconWhitelist ?? [], B, V, ot);
910
940
  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 - ")}`);
911
941
  let a = /* @__PURE__ */ new Set([...r.icons, ...i.icons]), o = Array.from(a).sort().flatMap((e) => {
912
- let t = Oe(e);
913
- return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(dn + t.prefix + "/" + t.name)}).then(m => m.default),`] : [];
942
+ let t = Ae(e);
943
+ return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(pn + t.prefix + "/" + t.name)}).then(m => m.default),`] : [];
914
944
  }).join("\n"), s = T ? null : Object.fromEntries(Array.from(B.entries()).map(([e, t]) => [e, Le(t, V.get(e))]));
915
- 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(at))});\nconst _loaded = new Set(${JSON.stringify(Array.from(B.keys()))});\nconst _all = ${s ? JSON.stringify(s) : "null"};\nconst _diag = ${Fe};\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`;
945
+ 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`;
916
946
  },
917
947
  buildStart() {
918
- ot();
919
- let e = M(_, f.iconDir), t = Zt(f.iconDir, e);
948
+ st();
949
+ let e = A(h, f.iconDir), t = $t(f.iconDir, e);
920
950
  if (t && this.warn(t), !T) {
921
- let e = ze(x, Ve(R));
951
+ let e = ze(b, Ve(R));
922
952
  e && this.warn(e);
923
953
  }
924
- !T && f.vscodeSettings !== !1 && (A(e, x, (e) => this.warn(e)), un(x, {
954
+ !T && f.vscodeSettings !== !1 && (k(e, b, (e) => this.warn(e)), fn(b, {
925
955
  info: (e) => this.info(e),
926
956
  warn: (e) => this.warn(e)
927
957
  }));
928
- for (let e of P) this.warn(e);
929
- for (let e of Ae) this.warn(e);
930
- for (let e of We) this.warn(e);
931
- for (let e of Te) this.warn(e);
958
+ for (let e of De) this.warn(e);
959
+ for (let e of Ne) this.warn(e);
960
+ for (let e of Ke) this.warn(e);
961
+ for (let e of Oe) this.warn(e);
932
962
  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`);
933
- f.locale && !m(f.locale) && !N.includes(f.locale) && this.warn(`[bitboss-ui] \`locale: '${f.locale}'\` is not a built-in locale${qe(f.locale)} — the library ships ${d.length} locales. Strings fall back to the default locale.`);
934
- let n = ye({
935
- root: _,
936
- input: O,
963
+ 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.`);
964
+ let n = Se({
965
+ root: h,
966
+ input: D,
937
967
  dts: f.dts
938
968
  });
939
969
  if (n) {
940
- let e = ve(f), t = xe(n, {
970
+ let e = xe(f), t = we(n, {
941
971
  ...e,
942
972
  LocaleRegistry: [
943
- ...I.flatMap((e) => [e, ...ee(e)]),
944
- ...De,
945
- ...N
973
+ ...P.flatMap((e) => [e, ...ee(e)]),
974
+ ...F,
975
+ ...M
946
976
  ],
947
977
  ConfigScopeRegistry: Object.keys(f.configScopes ?? {}),
948
- EmptyStringControlRegistry: he(f.components)
978
+ EmptyStringControlRegistry: ve(f.components)
949
979
  }), r = Be(n);
950
- 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") && w(n) && (L.add("program"), _e(_, 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/).`));
980
+ 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/).`));
951
981
  }
952
982
  },
953
983
  configureServer(e) {
954
- pn(h ?? e.config.root, f.ai !== !1, e.config.logger);
955
- let t = M(e.config.root, f.iconDir), n = (e) => e.startsWith(t) && e.endsWith(".svg");
984
+ hn(te ?? e.config.root, f.ai !== !1, e.config.logger);
985
+ let t = A(e.config.root, f.iconDir), n = (e) => e.startsWith(t) && e.endsWith(".svg");
956
986
  e.ws.on("bitboss-ui:icon-missing", (t) => {
957
987
  if (process.env.VITEST || e.config.mode === "test") return;
958
988
  let n = t.stack ? t.stack.replace(/^Error/, `Error: ${t.msg}`) : `Error: ${t.msg}`;
@@ -966,52 +996,52 @@ function hn(e = {}) {
966
996
  });
967
997
  });
968
998
  let r = async (t, n) => {
969
- if (f.passthroughDeduper !== void 0 || !v || !rt(_, t)) return;
970
- let r = n ? {} : tt((() => {
999
+ if (f.passthroughDeduper !== void 0 || !g || !it(h, t)) return;
1000
+ let r = n ? {} : rt((() => {
971
1001
  try {
972
- return E(t, "utf-8");
1002
+ return w(t, "utf-8");
973
1003
  } catch {
974
1004
  return "";
975
1005
  }
976
1006
  })());
977
- if (Object.keys(r).length) v.set(t, r);
978
- else if (!v.delete(t)) return;
979
- let i = JSON.stringify(nt(v.values()));
980
- if (i === y) return;
981
- y = i;
982
- let a = e.moduleGraph.getModuleById(zt);
1007
+ if (Object.keys(r).length) g.set(t, r);
1008
+ else if (!g.delete(t)) return;
1009
+ let i = JSON.stringify(H(g.values()));
1010
+ if (i === v) return;
1011
+ v = i;
1012
+ let a = e.moduleGraph.getModuleById(Vt);
983
1013
  a && await e.reloadModule(a);
984
1014
  };
985
1015
  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));
986
1016
  let i = async () => {
987
- let t = e.moduleGraph.getModuleById(yt);
1017
+ let t = e.moduleGraph.getModuleById(bt);
988
1018
  t && await e.reloadModule(t);
989
1019
  }, a, o = () => {
990
- clearTimeout(a), a = setTimeout(() => void H?.persist(), 500);
1020
+ clearTimeout(a), a = setTimeout(() => void U?.persist(), 500);
991
1021
  }, s = Promise.resolve(), c = (e, t) => {
992
1022
  s = s.then(async () => {
993
- if (!H) return;
1023
+ if (!U) return;
994
1024
  let n;
995
- if (Ce(t) === ".gitignore") {
996
- let e = H.icons;
997
- H.resetGitignores(), await H.scan();
998
- let t = H.icons;
1025
+ if (Te(t) === ".gitignore") {
1026
+ let e = U.icons;
1027
+ U.resetGitignores(), await U.scan();
1028
+ let t = U.icons;
999
1029
  n = e.size !== t.size || [...e].some((e) => !t.has(e));
1000
- } else n = e === "unlink" ? H.removeFile(t) : await H.updateFile(t);
1030
+ } else n = e === "unlink" ? U.removeFile(t) : await U.updateFile(t);
1001
1031
  o(), n && await i();
1002
1032
  }).catch((e) => {
1003
1033
  j.warn(`[bitboss-ui] icon scan: could not update ${t} (${e instanceof Error ? e.message : String(e)})`);
1004
1034
  });
1005
1035
  };
1006
- if (W = e.watcher, H) for (let e of H.includeDirs) W.add(e);
1036
+ if (G = e.watcher, U) for (let e of U.includeDirs) G.add(e);
1007
1037
  for (let r of [
1008
1038
  "add",
1009
1039
  "change",
1010
1040
  "unlink"
1011
1041
  ]) e.watcher.on(r, (i) => {
1012
- n(i) ? f.vscodeSettings !== !1 && A(t, h ?? e.config.root, (e) => j.warn(e)) : c(r, i);
1042
+ n(i) ? f.vscodeSettings !== !1 && k(t, te ?? e.config.root, (e) => j.warn(e)) : c(r, i);
1013
1043
  });
1014
1044
  }
1015
1045
  };
1016
1046
  }
1017
- export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS, mt as CALENDAR_ENGINE, Se as DEFAULTS_ALLOWLIST, e as DEFAULT_MAX_FILE_SIZE, b as DEFAULT_VARIANT_REGISTRIES, t as IconScanner, q as LOCAL_ICONS_JSON_PATH, pt as REQUIRED_OPTIMIZE_DEPS_EXCLUDE, ft as REQUIRED_OPTIMIZE_DEPS_INCLUDE, G as SSR_NO_EXTERNAL, Gt 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, hn as bitbossUi, ot as collectThemeNames, Yt as defaultVscodeSettings, Ie as diagnoseMissingIcon, Re as expandIconWhitelist, n as extractIconCandidates, Xe as generateCalendarsModule, $e as generateDayjsLocalesModule, dt as generateLinkModule, Ze as generateLocalesModule, et as generatePassthroughDeduperModule, Pt as generateVeeMissingModule, ut as hasInertia, a as iconLiteralRegExp, o as iconScanCacheFile, g as invalidLocaleTag, rt as isAppThemeCss, Zt as localIconDirWarning, nt as mergeThemeNames, Ye as resolveCalendars, Qe as resolveDayjsLocales, Je as resolveEnabledLocales, _t as resolveSsrNoExternal, it as scanThemeFiles, Qt as stripJsonComments, tt as themeNamesInCss, un as updateVscodeSettings, ze as upgradeHint, Ft as usesBbForm, st as validatePassthroughDeduper, Ke as validatePtGlobalMapNames, Ge as validateVariantNames, Xt as writeLocalIconifyCollection };
1047
+ 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 };