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