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
|
@@ -156,8 +156,8 @@ buttons: `text`, `variant` — default `'primary'` —, `size` — default `'sm'
|
|
|
156
156
|
`prepend:icon`/`append:icon`, `iconOnly` (the icon alone, `text` its
|
|
157
157
|
accessible name), `block`, `onClick`; confirm buttons
|
|
158
158
|
default to `'outline'` / `'md'` instead). While a button's
|
|
159
|
-
`onClick` runs it shows a spinner, siblings
|
|
160
|
-
countdown is held; the toast dismisses itself (reason `'action'`) when the
|
|
159
|
+
`onClick` runs it shows a spinner, siblings ignore clicks (keeping their look),
|
|
160
|
+
and the auto-dismiss countdown is held; the toast dismisses itself (reason `'action'`) when the
|
|
161
161
|
callback resolves. A rejected callback keeps the toast open and the countdown
|
|
162
162
|
resumes.
|
|
163
163
|
|
|
@@ -41,6 +41,66 @@
|
|
|
41
41
|
"css": "--bb-arrow",
|
|
42
42
|
"light": "1"
|
|
43
43
|
},
|
|
44
|
+
"--bb-avatar-bg-c": {
|
|
45
|
+
"css": "--bb-avatar-bg-c",
|
|
46
|
+
"light": "0.065",
|
|
47
|
+
"dark": "0.095"
|
|
48
|
+
},
|
|
49
|
+
"--bb-avatar-bg-l": {
|
|
50
|
+
"css": "--bb-avatar-bg-l",
|
|
51
|
+
"light": "0.93",
|
|
52
|
+
"dark": "0.4"
|
|
53
|
+
},
|
|
54
|
+
"--bb-avatar-hue-blue": {
|
|
55
|
+
"css": "--bb-avatar-hue-blue",
|
|
56
|
+
"light": "260"
|
|
57
|
+
},
|
|
58
|
+
"--bb-avatar-hue-coral": {
|
|
59
|
+
"css": "--bb-avatar-hue-coral",
|
|
60
|
+
"light": "25"
|
|
61
|
+
},
|
|
62
|
+
"--bb-avatar-hue-mint": {
|
|
63
|
+
"css": "--bb-avatar-hue-mint",
|
|
64
|
+
"light": "165"
|
|
65
|
+
},
|
|
66
|
+
"--bb-avatar-hue-orchid": {
|
|
67
|
+
"css": "--bb-avatar-hue-orchid",
|
|
68
|
+
"light": "325"
|
|
69
|
+
},
|
|
70
|
+
"--bb-avatar-hue-rose": {
|
|
71
|
+
"css": "--bb-avatar-hue-rose",
|
|
72
|
+
"light": "355"
|
|
73
|
+
},
|
|
74
|
+
"--bb-avatar-hue-sky": {
|
|
75
|
+
"css": "--bb-avatar-hue-sky",
|
|
76
|
+
"light": "230"
|
|
77
|
+
},
|
|
78
|
+
"--bb-avatar-hue-sunflower": {
|
|
79
|
+
"css": "--bb-avatar-hue-sunflower",
|
|
80
|
+
"light": "85"
|
|
81
|
+
},
|
|
82
|
+
"--bb-avatar-hue-tangerine": {
|
|
83
|
+
"css": "--bb-avatar-hue-tangerine",
|
|
84
|
+
"light": "55"
|
|
85
|
+
},
|
|
86
|
+
"--bb-avatar-hue-teal": {
|
|
87
|
+
"css": "--bb-avatar-hue-teal",
|
|
88
|
+
"light": "195"
|
|
89
|
+
},
|
|
90
|
+
"--bb-avatar-hue-violet": {
|
|
91
|
+
"css": "--bb-avatar-hue-violet",
|
|
92
|
+
"light": "295"
|
|
93
|
+
},
|
|
94
|
+
"--bb-avatar-ink-c": {
|
|
95
|
+
"css": "--bb-avatar-ink-c",
|
|
96
|
+
"light": "0.13",
|
|
97
|
+
"dark": "0.06"
|
|
98
|
+
},
|
|
99
|
+
"--bb-avatar-ink-l": {
|
|
100
|
+
"css": "--bb-avatar-ink-l",
|
|
101
|
+
"light": "0.42",
|
|
102
|
+
"dark": "0.93"
|
|
103
|
+
},
|
|
44
104
|
"--bb-border": {
|
|
45
105
|
"css": "--bb-border",
|
|
46
106
|
"light": "rgb(212 212 216)",
|
|
@@ -232,7 +232,7 @@ For components accepting `items`:
|
|
|
232
232
|
|
|
233
233
|
## Icons Rule
|
|
234
234
|
|
|
235
|
-
External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `
|
|
235
|
+
External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `icons.dir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `icons.whitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](./icons-policy.md).
|
|
236
236
|
|
|
237
237
|
## Variants Rule
|
|
238
238
|
|
|
@@ -264,7 +264,7 @@ Where the option goes: [Installation and Plugin Setup](./installation-and-plugin
|
|
|
264
264
|
|
|
265
265
|
## Overlay Open-State Rule
|
|
266
266
|
|
|
267
|
-
Open a dialog or sheet **without** owning its state: give `BbDialog` / `BbOffCanvas` an `id` and put `v-bb-dialog="'edit'"` / `v-bb-off-canvas="'filters'"` on the button (`useBbDialog('edit')` in code); a dialog in its own file, or one per row's data, opens on demand with `useBbDialog(Component).show(data)`; a yes/no is `useConfirm`. Which one: [BbDialog](../BbDialog.md) § Which one?. A boolean `v-model` is the fallback for state your page already holds — never a separate `v-model:open`. `BbPopover` and `
|
|
267
|
+
Open a dialog or sheet **without** owning its state: give `BbDialog` / `BbOffCanvas` an `id` and put `v-bb-dialog="'edit'"` / `v-bb-off-canvas="'filters'"` on the button (`useBbDialog('edit')` in code); a dialog in its own file, or one per row's data, opens on demand with `useBbDialog(Component).show(data)`; a yes/no is `useConfirm`. Which one: [BbDialog](../BbDialog.md) § Which one?. A boolean `v-model` is the fallback for state your page already holds — never a separate `v-model:open`. `BbPopover`, `BbTooltip` and `BbDropdown` also take a boolean `v-model`. A component whose `v-model` is its value (`BbSelect`, `BbSelectPopover`, `BbDropdownButton`, the date / time / colour pickers and inputs) takes `v-model:open` for its panel; a value-less overlay never does.
|
|
268
268
|
|
|
269
269
|
These overlays also return focus to their trigger element on close, by documented default — a consumer `@focus`-reopen handler on that trigger will fight the restore and can loop.
|
|
270
270
|
|
|
@@ -330,13 +330,17 @@ the field keeps it a string (`''`).
|
|
|
330
330
|
Boolean props default to `false` so the bare `<Comp foo>` shorthand turns the feature **on**. A few props deliberately default to `true` for cross-library keyword clarity — pass `:prop="false"` to opt out:
|
|
331
331
|
|
|
332
332
|
- `multiple` on `BbTable`, `BbCheckboxGroup`, `BbSwitchGroup` — multi-select is the expected default; `:multiple="false"` forces single-select.
|
|
333
|
-
- `selectable` on the option components (`BbSelect`, `BbSelectPopover`, `BbCheckboxGroup`, `BbRadioGroup`, `BbSwitchGroup`) — options are selectable by default; pass a predicate or `false` to restrict. **Not `BbTable`**: there `selectable` is unset by default and
|
|
334
|
-
- `modelValue` on `BbAlert` — an uncontrolled alert
|
|
333
|
+
- `selectable` on the option components (`BbSelect`, `BbSelectPopover`, `BbCheckboxGroup`, `BbRadioGroup`, `BbSwitchGroup`) — options are selectable by default; pass a predicate or `false` to restrict. **Not `BbTable`**: there `selectable` is unset by default and renders the selection column, so off means no checkboxes.
|
|
334
|
+
- `modelValue` on `BbAlert` — an uncontrolled alert shows on mount; its `v-model` exists to dismiss it.
|
|
335
335
|
- `trueValue` on `BbButton` — the value a `v-model` toggle commits when on (`true` is the natural on-value), not a feature flag.
|
|
336
336
|
|
|
337
337
|
These are the only intentional default-`true` booleans — exactly the exemptions `check-api` whitelists; anywhere else, `true` default is a bug (`check-api` flags it).
|
|
338
338
|
|
|
339
|
-
**Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette
|
|
339
|
+
**Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette` and `BbDropdown` (leftovers land in `$attrs`). `BbTooltip` keeps `hideArrow` (default `false`) and `arrowPadding` (default `10`). See [bb-popover.md](./migration/components/bb-popover.md).
|
|
340
|
+
|
|
341
|
+
## Empty Slot Rule
|
|
342
|
+
|
|
343
|
+
A slot that renders nothing (a `v-if` false there) counts as absent: the next more general slot draws, then the default (`prepend:icon`, label, children). Exception: a `BbTable` `#<key>` cell slot owns its cell.
|
|
340
344
|
|
|
341
345
|
## Testing Against bitboss-ui
|
|
342
346
|
|
|
@@ -27,7 +27,7 @@ There is no separate option: write it where you write the locale, in
|
|
|
27
27
|
|
|
28
28
|
```ts
|
|
29
29
|
bitbossUi({
|
|
30
|
-
|
|
30
|
+
icons: { dir: './src/assets/icons' },
|
|
31
31
|
locale: 'fa',
|
|
32
32
|
enabledLocales: [
|
|
33
33
|
'fa-u-ca-gregory', // Persian words and digits, Gregorian calendar
|
|
@@ -515,6 +515,19 @@ zero specificity, so a class you put on the panel (`pt:panel`, `pt:root`,
|
|
|
515
515
|
`class` on a dialog) or on its content wins. To style a surface like its
|
|
516
516
|
activator again, set the styles on that part.
|
|
517
517
|
|
|
518
|
+
### Avatar palette
|
|
519
|
+
|
|
520
|
+
`BbAvatar`'s `color` paints the fallback from a palette: ten hues, one picked
|
|
521
|
+
per person from a stable hash of the `name`, and one fill / ink pair per
|
|
522
|
+
scheme built as `oklch(L C <hue>)`. Every pair measures over 6:1. A theme
|
|
523
|
+
moves a hue or the pair; keep the 4.5:1 budget.
|
|
524
|
+
|
|
525
|
+
| Token | Default (light) | Dark | Meaning |
|
|
526
|
+
| ------------------------------------------------ | ---------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
527
|
+
| `--bb-avatar-hue-coral` … `--bb-avatar-hue-rose` | 25 … 355 | same | The ten hues in degrees: coral 25, tangerine 55, sunflower 85, mint 165, teal 195, sky 230, blue 260, violet 295, orchid 325, rose 355 |
|
|
528
|
+
| `--bb-avatar-bg-l` / `--bb-avatar-bg-c` | `0.93` / `0.065` | `0.4` / `0.095` | The fill's OKLCH lightness and chroma |
|
|
529
|
+
| `--bb-avatar-ink-l` / `--bb-avatar-ink-c` | `0.42` / `0.13` | `0.93` / `0.06` | The initials' and icon's OKLCH lightness and chroma |
|
|
530
|
+
|
|
518
531
|
### Input family
|
|
519
532
|
|
|
520
533
|
Form controls are ~half the library and must agree with each other, so their
|
|
@@ -70,7 +70,7 @@ Two rules in `recommended` are `warn` rather than `error`, because each describe
|
|
|
70
70
|
- `dts`, `components`, `components.<Component>` and `components.<Component>.variants`: `check` does not write `bitboss-ui.d.ts`, so registered variant names type-check only once Vite starts (the plugin writes the file then). For `BbAlert` and `BbToast` object-form variants only the names must be written out; an `icon` value may be an import.
|
|
71
71
|
- `components.BbTextInput.nullValue`, `components.BbTextarea.nullValue`: `check` keeps the empty-string controls the plugin last wrote to `bitboss-ui.d.ts`.
|
|
72
72
|
|
|
73
|
-
Options passed as a variable (`bitbossUi(options)`, `bitboss: options`) are one report at the call: the CLI reads none of them. A spread or computed key hides the keys at its own level the same way — at the top (`...shared`) every key, in `components` or in one component's entry the variant and `nullValue` keys under it, and a spread in a read list (`allowComponents`, `enabledLocales`, a `variants` list) hides that list; each is reported where it is. A spread deeper than that (inside `configScopes`, or in a value no reader parses) hides nothing the CLI reads and is not reported: a literal `locale` or `ai` beside it is still read. Other keys (`cssLayers`, `
|
|
73
|
+
Options passed as a variable (`bitbossUi(options)`, `bitboss: options`) are one report at the call: the CLI reads none of them. A spread or computed key hides the keys at its own level the same way — at the top (`...shared`) every key, in `components` or in one component's entry the variant and `nullValue` keys under it, and a spread in a read list (`allowComponents`, `enabledLocales`, a `variants` list) hides that list; each is reported where it is. A spread deeper than that (inside `configScopes`, or in a value no reader parses) hides nothing the CLI reads and is not reported: a literal `locale` or `ai` beside it is still read. Other keys (`cssLayers`, `icons`, `configScopes`, a component's own defaults) are not read without running the config and may be computed. `as const`, `satisfies` and `!` are fine. The config builds and runs either way, so it is a warning; silence a deliberate one with `// eslint-disable-next-line bitboss-ui/static-plugin-options`.
|
|
74
74
|
|
|
75
75
|
It also enables `bitboss-ui/require-partner-prop`: an opt-in prop set without its documented required partner — BbTable `loading-text` without `:loading` bound, `selectable` without `legend`, or `method` on BbButton / BbBadgeButton / BbBaseButton without `href` (only an `href` becomes an Inertia visit; `to` is a RouterLink) — compiles and mounts clean and just does nothing; the rule names the missing partner and quotes why.
|
|
76
76
|
|
|
@@ -88,7 +88,7 @@ Four cases ignore `prefill` and load anyway, because deferring would buy nothing
|
|
|
88
88
|
|
|
89
89
|
- **Race protection**: a newer call aborts the one in flight (`signal`), and a superseded answer — resolution or rejection — is dropped. Nothing runs after a superseded call: no prune, no stash.
|
|
90
90
|
- **Loading**: the component tracks in-flight requests itself, and the loading state ends the moment a call is aborted; don't add your own `loading` ref for option fetching.
|
|
91
|
-
- **Failure is never "empty"**: a provider **throws** to fail — it never returns `[]` for one, because an empty array is a real, applied result. On a failed (not aborted) call the component clears the rows (stale rows never sit under a new filter), prunes nothing, publishes nothing to the SSR payload (the client loads again), logs the error, and shows `failed-text` (locale default "Couldn't load items")
|
|
91
|
+
- **Failure is never "empty"**: a provider **throws** to fail — it never returns `[]` for one, because an empty array is a real, applied result. On a failed (not aborted) call the component clears the rows (stale rows never sit under a new filter), prunes nothing, publishes nothing to the SSR payload (the client loads again), logs the error, and shows its own failure row: `failed-text` (locale default "Couldn't load items"), announced, then a "Try again" button that runs the failed call again with the same query (on click only, never on its own). `#empty` means empty: it never renders for a failure and its scope has no `error`.
|
|
92
92
|
- **Coherence** (`enforce-coherence`): prunes only after an applied, successful load whose reason is not `'search'` — an empty one included — against the fetched rows alone, except values a `known-items` row names (a select's `stash` does not count). Failures never prune. Details in the [Coherence playbook](./coherence-playbook.md).
|
|
93
93
|
- **Dependency comparison is value-based** (hashed), not reference-based — `:dependencies="[filters]"` re-fetches only when the content actually changes, no matter how often the array identity does.
|
|
94
94
|
|
|
@@ -126,19 +126,15 @@ Pass it to every request; combine it with a timeout (`AbortSignal.any([signal, A
|
|
|
126
126
|
|
|
127
127
|
### Failure and retry
|
|
128
128
|
|
|
129
|
+
The failure row is the library's: set its message with `failed-text`, and keep `#empty` for the empty result. "Try again" is built in.
|
|
130
|
+
|
|
129
131
|
```vue
|
|
130
132
|
<BbTable
|
|
131
133
|
:items="fetchInvoices"
|
|
132
|
-
:dependencies="[status
|
|
133
|
-
failed-text="The invoices could not be loaded"
|
|
134
|
+
:dependencies="[status]"
|
|
135
|
+
failed-text="The invoices could not be loaded."
|
|
134
136
|
>
|
|
135
|
-
<template #empty
|
|
136
|
-
<template v-if="error">
|
|
137
|
-
Couldn't load the invoices.
|
|
138
|
-
<BbButton size="sm" variant="ghost" @click="retry++">Try again</BbButton>
|
|
139
|
-
</template>
|
|
140
|
-
<template v-else>No invoices match these filters.</template>
|
|
141
|
-
</template>
|
|
137
|
+
<template #empty>No invoices match these filters.</template>
|
|
142
138
|
</BbTable>
|
|
143
139
|
```
|
|
144
140
|
|
|
@@ -210,6 +206,6 @@ The same object, with `query` only on a `searchable` group. A getter for a searc
|
|
|
210
206
|
- [ ] The provider takes ONE object typed with its component's context type, and `signal` reaches every request.
|
|
211
207
|
- [ ] Selects: the current picks are named on every `reason !== 'search'` call (required with `enforce-coherence`), `stash` is on, the ids request fails soft.
|
|
212
208
|
- [ ] A provider that matches `query` on the server has `:filter-by="false"` (dropdown group: `filterBy: false`).
|
|
213
|
-
- [ ] Failures are thrown, not returned; `failed-text`
|
|
209
|
+
- [ ] Failures are thrown, not returned; `failed-text` words the failure row (it has "Try again" built in), and `#empty` holds empty copy only.
|
|
214
210
|
- [ ] All branches return the same item shape.
|
|
215
211
|
- [ ] Field-tied fetching uses `dependencies` (+ `deps-debounce-time`), no manual watchers; dependent selects filter both requests by the parent.
|
|
@@ -14,9 +14,9 @@ Mandatory for AI-generated code.
|
|
|
14
14
|
(`npm install -D @iconify-json/lucide`); the plugin resolves them
|
|
15
15
|
automatically — no registration step.
|
|
16
16
|
2. **`local:*` is for brand-specific art only** — logos, custom marks, one-off
|
|
17
|
-
illustrations. They are SVG files in the configured `
|
|
17
|
+
illustrations. They are SVG files in the configured `icons.dir`.
|
|
18
18
|
3. **Never invent icon names.** Use only names that exist in an installed
|
|
19
|
-
`@iconify-json/*` set or as files in `
|
|
19
|
+
`@iconify-json/*` set or as files in `icons.dir`. A name that does not
|
|
20
20
|
resolve renders the built-in placeholder (a question mark in a circle,
|
|
21
21
|
tagged `data-bb-icon-missing="<name>"`) and logs one `console.error` with
|
|
22
22
|
the fix — in dev also as a Vite error overlay. It never throws. This guide
|
|
@@ -26,15 +26,15 @@ Mandatory for AI-generated code.
|
|
|
26
26
|
scans the whole project (PHP included) for `provider:name` literals and
|
|
27
27
|
bundles only those; `local:` ships everything. A name the scanner cannot
|
|
28
28
|
see as a literal — composed at runtime (`` `lucide:${kind}` ``), stored in a
|
|
29
|
-
database, chosen in an admin panel — goes in the plugin's `
|
|
29
|
+
database, chosen in an admin panel — goes in the plugin's `icons.whitelist`.
|
|
30
30
|
This holds in dev exactly as in production: dev registers the same set.
|
|
31
31
|
5. **Never hand-place `BbIcon` where a component already accepts an icon** via
|
|
32
32
|
a prop, item field, or dedicated slot (catalog below).
|
|
33
33
|
|
|
34
34
|
## How resolution works
|
|
35
35
|
|
|
36
|
-
The `bitbossUi` Vite plugin (`
|
|
37
|
-
`bitboss`, default `
|
|
36
|
+
The `bitbossUi` Vite plugin (`icons.dir` option) — or the Nuxt module (config key
|
|
37
|
+
`bitboss`, default `icons: { dir: './assets/icons' }`) — serves every icon through the
|
|
38
38
|
`virtual:bitboss-ui/icons` module that `bitbossUiPlugin` provides to `BbIcon`:
|
|
39
39
|
|
|
40
40
|
- **Provider sets**: every `@iconify-json/*` package found in `node_modules` is
|
|
@@ -42,7 +42,7 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
|
|
|
42
42
|
`lucide:<name>` available; removing it makes them all errors. Nothing to
|
|
43
43
|
configure.
|
|
44
44
|
- **What ships — `local:` everything, providers only what is scanned or
|
|
45
|
-
whitelisted.** Every SVG in `
|
|
45
|
+
whitelisted.** Every SVG in `icons.dir` is bundled. For provider sets the
|
|
46
46
|
plugin reads the **whole project** as bytes — every file under the Vite
|
|
47
47
|
root, PHP, Blade, JSON, SQL seeders and Markdown included — looking for
|
|
48
48
|
`<prefix>:<name>` where `<prefix>` is an installed set; what resolves in the
|
|
@@ -59,7 +59,7 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
|
|
|
59
59
|
neither scanned nor whitelisted therefore shows the placeholder and the
|
|
60
60
|
error on first render in dev — not after deploy.
|
|
61
61
|
- **Names the scanner cannot see** — composed at runtime, persisted in a
|
|
62
|
-
database, picked by an admin — go in `
|
|
62
|
+
database, picked by an admin — go in `icons.whitelist`: exact names
|
|
63
63
|
(`'tabler:crown'`) or globs (`'tabler:calendar-*'`). An entry that resolves
|
|
64
64
|
in no installed set fails the build with the same message the overlay shows.
|
|
65
65
|
- **A missing name is loud, in both environments.** `BbIcon` renders the
|
|
@@ -68,12 +68,12 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
|
|
|
68
68
|
error overlay. A typo inside an installed set reads "does not exist in the
|
|
69
69
|
lucide icon set — did you mean `lucide:…`?"; a real icon nobody wrote as a
|
|
70
70
|
literal reads "exists in the lucide icon set but is not bundled … add it to
|
|
71
|
-
`
|
|
71
|
+
`icons.whitelist`"; a set that is not installed reads "no installed icon set
|
|
72
72
|
has the prefix `mdi` (installed sets: lucide) … run:
|
|
73
73
|
`npm install -D @iconify-json/mdi`". Read the message: a typo wants a
|
|
74
74
|
different name, an unscanned name wants the whitelist, a missing set wants
|
|
75
75
|
an install, never a guess.
|
|
76
|
-
- **Local icons**: `
|
|
76
|
+
- **Local icons**: `icons.dir` is scanned recursively; each `.svg` becomes
|
|
77
77
|
`local:<basename-without-extension>`. A bare, unprefixed name normalizes to
|
|
78
78
|
`local:`. Adding/removing files is picked up live in dev, and the plugin
|
|
79
79
|
maintains a collection JSON plus the VS Code `iconify.customCollectionJsonPaths`
|
|
@@ -93,7 +93,7 @@ controls size, so they are redundant). Use base names — `heroicons:check`, not
|
|
|
93
93
|
`@iconify-json/lucide`).
|
|
94
94
|
2. Verify each name exists in that set's `icons.json` (or its `aliases`) before
|
|
95
95
|
using it.
|
|
96
|
-
3. For `local:*`, list the `.svg` files in the configured `
|
|
96
|
+
3. For `local:*`, list the `.svg` files in the configured `icons.dir`.
|
|
97
97
|
|
|
98
98
|
## Where the library accepts icons — full catalog
|
|
99
99
|
|
|
@@ -247,6 +247,27 @@ markup) yourself:
|
|
|
247
247
|
`<value>:append` slots, when an entry's leading/trailing region needs more than
|
|
248
248
|
a named icon (e.g. an avatar). A slot replaces the icon, never sits beside it.
|
|
249
249
|
|
|
250
|
+
### The library's own glyphs (app-wide)
|
|
251
|
+
|
|
252
|
+
The glyphs the library draws itself (✕, chevrons, check, …) swap by role,
|
|
253
|
+
app-wide or for one component, which wins:
|
|
254
|
+
|
|
255
|
+
```ts
|
|
256
|
+
bitbossUi({
|
|
257
|
+
icons: { defaults: { close: 'ph:x-bold' } },
|
|
258
|
+
components: { BbSelect: { icons: { search: 'ph:magnifying-glass-bold' } } },
|
|
259
|
+
});
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
Roles: `close`, `clear`, `expandChevron`, `prev`, `next`, `separator`,
|
|
263
|
+
`search`, `check`, `dragHandle`, `move`, `sortAsc`, `sortDesc`, `calendar`,
|
|
264
|
+
`clock`, `error`, `warning`, `avatar`, `star`, `eyedropper`, `play`, `pause`;
|
|
265
|
+
a component takes only the roles it draws. Names are bundled at build time
|
|
266
|
+
(app-wide only); unset roles keep the built-in; sizes stay the library's. With
|
|
267
|
+
Phosphor, use `-bold` names (and `-fill` for `error`, `warning`, `avatar`,
|
|
268
|
+
`star`). A custom `check` has no draw-in; a `sortDesc` replaces the rotated
|
|
269
|
+
`sortAsc`.
|
|
270
|
+
|
|
250
271
|
## Sizing and color
|
|
251
272
|
|
|
252
273
|
- Icons paint in `currentColor`: they inherit the parent's text color. Color
|
|
@@ -287,7 +308,7 @@ markup) yourself:
|
|
|
287
308
|
- Inventing or guessing icon names; assuming a set is installed without
|
|
288
309
|
checking `package.json`.
|
|
289
310
|
- Runtime-composed icon names (template strings / concatenation) without a
|
|
290
|
-
matching `
|
|
311
|
+
matching `icons.whitelist` entry — invisible to the scanner, so they render the
|
|
291
312
|
placeholder (in dev too). Prefer a lookup of full literals; whitelist what
|
|
292
313
|
must stay dynamic.
|
|
293
314
|
- Setting `color`/`fill` on the icon element instead of the parent.
|
|
@@ -19,7 +19,7 @@ Source of truth for integrating `bitboss-ui`. Two pieces are always required:
|
|
|
19
19
|
3. [Register the runtime plugin](#2-vite--vue): `app.use(bitbossUiPlugin)` (automatic in Nuxt; in [Inertia](#4-inertia) it goes in `createInertiaApp`).
|
|
20
20
|
4. [Styles](#5-styling): the plugin injects `styles.css` for you, so do not import it by hand. On Tailwind v4 also set `cssLayers`.
|
|
21
21
|
5. [Locale](#locale-localekey-default-en): set `locale` (default `'en'`) and list any others in `enabledLocales`.
|
|
22
|
-
6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `
|
|
22
|
+
6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `icons.dir` at your own SVG folder if you use `local:` icons.
|
|
23
23
|
7. [SSR and Inertia notes](#4-inertia): the build plugin handles `noExternal` and the Inertia `Link`; in Nuxt do not call `app.use`.
|
|
24
24
|
8. [App-wide defaults and area looks](#the-components-map): one `components` map (and `configScopes` / `<BbConfigScope>` for an area) instead of repeating props.
|
|
25
25
|
9. [Set up coding agents](#8-ai-knowledge-base) so they find the docs and the MCP server: `setup` does it, every install keeps it current.
|
|
@@ -161,7 +161,7 @@ export default defineConfig({
|
|
|
161
161
|
plugins: [
|
|
162
162
|
vue(),
|
|
163
163
|
bitbossUi({
|
|
164
|
-
|
|
164
|
+
icons: { dir: './src/assets/icons' },
|
|
165
165
|
// Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
|
|
166
166
|
cssLayers: TAILWIND_V4_LAYERS,
|
|
167
167
|
}),
|
|
@@ -194,7 +194,7 @@ The plugin registers no components globally: import each one where you use it
|
|
|
194
194
|
(`import { BbButton, BbSelect } from 'bitboss-ui'`). Guide examples leave those
|
|
195
195
|
imports out. In Nuxt, `autoImport: true` registers them instead (§3).
|
|
196
196
|
|
|
197
|
-
If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `
|
|
197
|
+
If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `icons.dir`.
|
|
198
198
|
|
|
199
199
|
## 3) Nuxt
|
|
200
200
|
|
|
@@ -207,7 +207,7 @@ import { TAILWIND_V4_LAYERS } from 'bitboss-ui/nuxt';
|
|
|
207
207
|
export default defineNuxtConfig({
|
|
208
208
|
modules: ['bitboss-ui/nuxt'],
|
|
209
209
|
bitboss: {
|
|
210
|
-
|
|
210
|
+
icons: { dir: './assets/icons' }, // module default = app/assets/icons (relative to the Vite root, app/ under Nuxt 4)
|
|
211
211
|
// Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
|
|
212
212
|
cssLayers: TAILWIND_V4_LAYERS,
|
|
213
213
|
},
|
|
@@ -238,7 +238,7 @@ Registers the library's components and composables with Nuxt's auto-import syste
|
|
|
238
238
|
export default defineNuxtConfig({
|
|
239
239
|
modules: ['bitboss-ui/nuxt'],
|
|
240
240
|
bitboss: {
|
|
241
|
-
|
|
241
|
+
icons: { dir: './assets/icons' },
|
|
242
242
|
autoImport: true,
|
|
243
243
|
},
|
|
244
244
|
});
|
|
@@ -372,7 +372,7 @@ you the order:
|
|
|
372
372
|
|
|
373
373
|
```ts
|
|
374
374
|
// vite.config.ts / the `bitboss` key in nuxt.config.ts
|
|
375
|
-
bitbossUi({
|
|
375
|
+
bitbossUi({ icons: { dir: '…' }, injectStyles: false, resetCss: false });
|
|
376
376
|
```
|
|
377
377
|
|
|
378
378
|
```ts
|
|
@@ -422,7 +422,7 @@ by its first mention — so the order you configure is the order you get.
|
|
|
422
422
|
import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
|
|
423
423
|
|
|
424
424
|
bitbossUi({
|
|
425
|
-
|
|
425
|
+
icons: { dir: './assets/icons' },
|
|
426
426
|
cssLayers: TAILWIND_V4_LAYERS,
|
|
427
427
|
});
|
|
428
428
|
```
|
|
@@ -524,7 +524,7 @@ it is the only way to get v4's behaviour on v3. Three edits, made together:
|
|
|
524
524
|
import { bitbossUi, TAILWIND_V3_LAYERS } from 'bitboss-ui/vite';
|
|
525
525
|
|
|
526
526
|
bitbossUi({
|
|
527
|
-
|
|
527
|
+
icons: { dir: './assets/icons' },
|
|
528
528
|
// ['tailwind-base', 'bitboss-ui-reset', 'bitboss-ui', 'tailwind-utilities']
|
|
529
529
|
cssLayers: TAILWIND_V3_LAYERS,
|
|
530
530
|
// 3. v3 class names for the pt deduper: a module whose default export is
|
|
@@ -549,7 +549,7 @@ fixed by its first mention, so they agree rather than fight.
|
|
|
549
549
|
|
|
550
550
|
```ts
|
|
551
551
|
bitbossUi({
|
|
552
|
-
|
|
552
|
+
icons: { dir: './assets/icons' },
|
|
553
553
|
cssLayers: ['bitboss-ui'], // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
|
|
554
554
|
});
|
|
555
555
|
```
|
|
@@ -631,14 +631,14 @@ Reach for the documented variable before reaching for a utility.
|
|
|
631
631
|
|
|
632
632
|
## 6) Icons
|
|
633
633
|
|
|
634
|
-
- `
|
|
634
|
+
- `icons.dir` (default `'./assets/icons'`) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
|
|
635
635
|
- Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. **Providers ship only what is scanned or whitelisted**: the plugin reads the whole project as bytes — every file under the Vite root, PHP and Blade and JSON and SQL included — for `<prefix>:<name>` literals of the installed sets, and emits one lazy chunk per name that resolves. Skipped: gitignored paths (every `.gitignore` level), `node_modules`, `vendor`, `storage`, the build `outDir`, hidden paths, binaries, and `iconsScanner.exclude` globs; `iconsScanner.include` adds locations. The scan is cached by content hash under `node_modules/.cache/bitboss-ui/`, runs on 2–4 worker threads once a project passes ~1500 files (a cold scan is disk-bound, and the threads let a slow disk serve reads in parallel — roughly 0.2 s for 10k files on a laptop), prints one line (file count, elapsed, threads) after a cold scan, and stays silent when warm.
|
|
636
636
|
- **This holds in dev exactly as in prod.** Dev registers the same scanned-plus-whitelisted set, re-scans a file on every save, and hot-updates the registry — a new literal renders without a restart, and a name that is neither scanned nor whitelisted fails on first render in dev instead of after deploy.
|
|
637
|
-
- **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `
|
|
638
|
-
- **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `
|
|
637
|
+
- **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `icons.whitelist` (exact names or globs). An entry that resolves in no installed set fails the build with the actionable message.
|
|
638
|
+
- **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `icons.whitelist`, and an uninstalled prefix gets the list of installed sets plus the `npm install -D @iconify-json/<prefix>` command (the optional `@iconify/collections` peer only sharpens that wording, see [Install](#1-install)). A missing `local:` icon names the `.svg` that is not in `icons.dir`. `BbIcon` never throws for a missing name, so the surrounding tree stays mounted.
|
|
639
639
|
- In dev (unless `vscodeSettings: false`) the plugin also writes `.vscode/bitboss-ui.local-icons.json` and wires `.vscode/settings.json` so the Iconify editor extension previews local icons and Tailwind IntelliSense completes inside `pt:*` / `:pt`. The collection lives in the project tree, not under `node_modules`, so a host editor sees what a container (Sail, a named `node_modules` volume) wrote.
|
|
640
640
|
|
|
641
|
-
|
|
641
|
+
Choosing icons, and swapping the library's own: [Icons Policy](./icons-policy.md).
|
|
642
642
|
|
|
643
643
|
## The components map
|
|
644
644
|
|
|
@@ -918,9 +918,9 @@ fails the build naming its home:
|
|
|
918
918
|
|
|
919
919
|
Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
|
|
920
920
|
|
|
921
|
-
### `
|
|
921
|
+
### `icons.dir?: string` (default: `'./assets/icons'`)
|
|
922
922
|
|
|
923
|
-
Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `
|
|
923
|
+
Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `icons.dir` that resolves to a missing or SVG-less folder logs a build warning.
|
|
924
924
|
|
|
925
925
|
### `iconsScanner?: { include?: string[]; exclude?: string[]; maxFileSize?: number }`
|
|
926
926
|
|
|
@@ -932,7 +932,7 @@ Tunes the provider-icon source scan (see [Icons](#6-icons)). All three are optio
|
|
|
932
932
|
|
|
933
933
|
```ts
|
|
934
934
|
bitbossUi({
|
|
935
|
-
|
|
935
|
+
icons: { dir: './resources/icons' },
|
|
936
936
|
iconsScanner: {
|
|
937
937
|
include: ['vendor/acme/ui-kit/src'],
|
|
938
938
|
exclude: ['database/dumps/**'],
|
|
@@ -940,15 +940,16 @@ bitbossUi({
|
|
|
940
940
|
});
|
|
941
941
|
```
|
|
942
942
|
|
|
943
|
-
### `
|
|
943
|
+
### `icons.whitelist?: string[]`
|
|
944
944
|
|
|
945
|
-
Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set).
|
|
945
|
+
Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set). An entry that resolves in no installed set — a typo, an uninstalled prefix, a glob matching nothing — **fails the build** with the same actionable message the dev overlay shows for a missing icon. `local:` names never belong here (they all ship already).
|
|
946
946
|
|
|
947
947
|
```ts
|
|
948
948
|
bitbossUi({
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
949
|
+
icons: {
|
|
950
|
+
dir: './resources/icons',
|
|
951
|
+
whitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
|
|
952
|
+
},
|
|
952
953
|
});
|
|
953
954
|
```
|
|
954
955
|
|
|
@@ -1250,7 +1251,7 @@ anything. Apps that switch locales at runtime list what they offer:
|
|
|
1250
1251
|
|
|
1251
1252
|
```ts
|
|
1252
1253
|
bitbossUi({
|
|
1253
|
-
|
|
1254
|
+
icons: { dir: './src/assets/icons' },
|
|
1254
1255
|
locale: 'it',
|
|
1255
1256
|
enabledLocales: ['it', 'en', 'de', 'fr'], // ~4 dictionaries + 4 dayjs packs
|
|
1256
1257
|
});
|
|
@@ -1702,7 +1703,7 @@ leave it alone with no configuration, as long as they can see it is yours:
|
|
|
1702
1703
|
|
|
1703
1704
|
- [ ] package installed (plus `@iconify-json/*` packages for every provider prefix used);
|
|
1704
1705
|
- [ ] build plugin configured: `bitboss-ui/vite` plugin or `bitboss-ui/nuxt` module (`bitboss` config key);
|
|
1705
|
-
- [ ] using `local:` icons? `
|
|
1706
|
+
- [ ] using `local:` icons? `icons.dir` points at an existing SVG folder;
|
|
1706
1707
|
- [ ] runtime plugin installed: `app.use(bitbossUiPlugin)` (automatic in Nuxt);
|
|
1707
1708
|
- [ ] style strategy chosen: auto injection (default) or `injectStyles: false` + `import 'bitboss-ui/styles.css'` — auto injection is always library-first, so a Tailwind **v3** app that needs Preflight to load before the library must take the second option (§5);
|
|
1708
1709
|
- [ ] if a reset is required: `resetCss: true` or `import 'bitboss-ui/reset.css'`;
|
|
@@ -192,7 +192,7 @@ Each row: what you will find, how to find it, and what to write instead.
|
|
|
192
192
|
21. **`all: { adaptive: false }` (plugin) or `:adaptive="false"` (one component): the temporary crutch from the migration** → Remove it in the adaptive phase (below) `[adaptive-false]`
|
|
193
193
|
|
|
194
194
|
- Find: `rg -n -g '*.{vue,ts,js,mjs}' 'adaptive:\s*false|:adaptive=.false.'`
|
|
195
|
-
- Write: `bitbossUi({
|
|
195
|
+
- Write: `bitbossUi({ icons: { dir: 'resources/icons' } })`
|
|
196
196
|
- Keep it only on a surface that must never become a sheet, and say why in a comment.
|
|
197
197
|
<!-- /generated:rows -->
|
|
198
198
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: 'Migration v2→v3: BbColorPalette'
|
|
3
|
-
summary: flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open
|
|
3
|
+
summary: flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open is v-model:open, model updates never emit null.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# BbColorPalette — v2 → v3
|
|
7
7
|
|
|
8
8
|
## Changes
|
|
9
9
|
|
|
10
|
-
| v2 | v3 | Kind
|
|
11
|
-
| -------------------------------------------- | ------------------------------------------------------------------ |
|
|
12
|
-
| `flip?: boolean` (default `true`) | `disableFlip?: boolean` (default `false`) | rename, polarity inverted
|
|
13
|
-
| `showArrow?: boolean` (default `false`) | removed | arrows are tooltip-only in v3; **⚠ silent** — a leftover `show-arrow` lands in `$attrs`
|
|
14
|
-
| `arrowPadding` | removed | dead with the arrow
|
|
15
|
-
| `picker?: boolean` | `eyeDropper?: boolean` | rename (same eyedropper feature)
|
|
16
|
-
| `update:open` event |
|
|
17
|
-
| `update:modelValue` payload `string \| null` | `string` — the palette always emits a concrete color, never `null` | **behavior** — clearing is the consumer's job now; handlers narrowing on `null` have dead branches
|
|
18
|
-
| activator slot prop `color` | `value` | rename
|
|
10
|
+
| v2 | v3 | Kind |
|
|
11
|
+
| -------------------------------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
|
|
12
|
+
| `flip?: boolean` (default `true`) | `disableFlip?: boolean` (default `false`) | rename, polarity inverted |
|
|
13
|
+
| `showArrow?: boolean` (default `false`) | removed | arrows are tooltip-only in v3; **⚠ silent** — a leftover `show-arrow` lands in `$attrs` |
|
|
14
|
+
| `arrowPadding` | removed | dead with the arrow |
|
|
15
|
+
| `picker?: boolean` | `eyeDropper?: boolean` | rename (same eyedropper feature) |
|
|
16
|
+
| `update:open` event | `v-model:open` (since 3.0.0-beta.75) | the same event, now with an `open` prop: bind `v-model:open` to open the palette from code; `show` / `hide` still fire |
|
|
17
|
+
| `update:modelValue` payload `string \| null` | `string` — the palette always emits a concrete color, never `null` | **behavior** — clearing is the consumer's job now; handlers narrowing on `null` have dead branches |
|
|
18
|
+
| activator slot prop `color` | `value` | rename |
|
|
19
19
|
|
|
20
20
|
## Edits
|
|
21
21
|
|
|
22
22
|
```diff
|
|
23
|
-
- <BbColorPalette v-model="color" :flip="false" show-arrow picker
|
|
23
|
+
- <BbColorPalette v-model="color" :flip="false" show-arrow picker>
|
|
24
24
|
- <template #activator="{ props, color }">
|
|
25
25
|
- <button v-bind="props" :style="{ background: color }" />
|
|
26
26
|
+ <BbColorPalette v-model="color" disable-flip eye-dropper>
|
|
@@ -17,6 +17,7 @@ summary: The component is the main button (label in the default slot, @click, hr
|
|
|
17
17
|
| items `{ key, text }` (v2, and v3 up to beta.48) | items `{ value, label }` — the same rows as `BbDropdown` | hard rename — `npx bitboss-ui check --fix` rewrites literal items; see [bb-dropdown.md](./bb-dropdown.md) |
|
|
18
18
|
| `items[0]` was the main button (v2, and v3 up to beta.57) | the component is the main button: label in the default slot, `@click` / `href` / `to` / `type` / `form` on it; every item is a menu row | **break** — move the first item onto the component (below); `bitboss-ui check` flags a split button with no label |
|
|
19
19
|
| default slot: `<BbDropdownGroup>` companions (v3 up to beta.57) | `#dropdown` slot; the default slot is the main button's label | **break** — wrap the companion in `<template #dropdown>` |
|
|
20
|
+
| `#<groupId>` (a group's title; up to beta.74) | `#<groupId>:label`; `#group` / `#<groupId>:group` draw `groupBy` headings | `check --fix` renames it for the group ids it sees |
|
|
20
21
|
|
|
21
22
|
## Edits
|
|
22
23
|
|
|
@@ -23,6 +23,7 @@ summary: Rows are { label, value } (v2 and v3 up to beta.48 { key, text }), grou
|
|
|
23
23
|
| _(v3 prereleases up to beta.63; v2 had no submenus)_ `Escape` anywhere closed the whole menu; only `ArrowRight` drilled into a submenu with focus | `Escape` in a submenu closes that level and refocuses its row; `Enter`, `Space` and click open a submenu with focus inside (search box first); focus returns to the row when a submenu closes under it; `dir="rtl"` swaps the inline arrows | **⚠ silent**: drop hand-rolled per-level `Escape` handlers and `focus()` calls into submenus, which now fight the menu (`v2-to-v3.md` § 6 item 101) |
|
|
24
24
|
| _(v3 prereleases up to beta.63)_ on the mobile sheet `Escape` closed the whole sheet from any level; going back focused the parent level's first row | `Escape` on a drilled-in level (row or search box) goes back one level, like the back control; going back focuses the row that opened the level; at the top level `Escape` closes the sheet | **⚠ silent**: update tests that expect `Escape` on a sheet level to close the menu (`v2-to-v3.md` § 6 item 107) |
|
|
25
25
|
| _(v3 prereleases up to beta.63)_ an item's `data-*` / `aria-*` keys were copied onto its row | items take only the fields the menu reads; row attributes go through `pt:item` (function form per row) | **⚠ silent**: move them to `:pt:item="({ item }) => ({ attrs: { … } })"` (`v2-to-v3.md` § 6 item 108) |
|
|
26
|
+
| _(v3 prereleases up to beta.74)_ `#<groupId>`: a group's title content | `#<groupId>:label`; `#group` / `#<groupId>:group` draw the `groupBy` headings | rename the slot; `npx bitboss-ui check --fix` does it for the group ids it can see |
|
|
26
27
|
|
|
27
28
|
## Edits
|
|
28
29
|
|
|
@@ -37,7 +37,7 @@ const icons = import.meta.glob('../../assets/icons/*.svg', { as: 'raw' });
|
|
|
37
37
|
app.provide('icons', toRegistry(icons));
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
v3 does both halves itself. The **build** plugin scans `
|
|
40
|
+
v3 does both halves itself. The **build** plugin scans `icons.dir` recursively
|
|
41
41
|
and turns every `.svg` into `local:<basename>`; the **runtime** plugin provides
|
|
42
42
|
that registry to `BbIcon`. If your plugin scanned the same folder and provided
|
|
43
43
|
it under `'icons'`, it is now duplicating both.
|
|
@@ -51,9 +51,9 @@ map stops rendering and nothing warns.
|
|
|
51
51
|
|
|
52
52
|
Check before you delete — the plugin is dead only if both hold:
|
|
53
53
|
|
|
54
|
-
1. **Every SVG it registers also lives under `
|
|
54
|
+
1. **Every SVG it registers also lives under `icons.dir`.** Diff the two folders.
|
|
55
55
|
If the plugin globbed a different directory (`resources/js/icons`,
|
|
56
|
-
a package's `assets/`), move those files into `
|
|
56
|
+
a package's `assets/`), move those files into `icons.dir` first — otherwise
|
|
57
57
|
deletion and non-deletion both leave you with missing icons.
|
|
58
58
|
2. **Nothing else injects `'icons'`.** `rg -n "inject\(['\"]icons['\"]\)"` — an
|
|
59
59
|
app component reading the map to render `<img>` or to enumerate names is
|
|
@@ -70,7 +70,7 @@ build on it.
|
|
|
70
70
|
|
|
71
71
|
## Prefix your own icons with `local:` while you are in there
|
|
72
72
|
|
|
73
|
-
A v2 `type` naming an icon from your own `
|
|
73
|
+
A v2 `type` naming an icon from your own `icons.dir` was bare — `type="user-circle"`.
|
|
74
74
|
Carry it over **with the prefix**:
|
|
75
75
|
|
|
76
76
|
```diff
|
|
@@ -378,7 +378,8 @@ from a cell slot on an unbound table does nothing and warns once.
|
|
|
378
378
|
table has no search field). `reason` replaces the `prefill` flag: `'initial'`,
|
|
379
379
|
`'dependencies'`, or `'pagination'` for a page or page-size move.
|
|
380
380
|
Pass `signal` to the request; throw on a failure (never `return []`), and the
|
|
381
|
-
|
|
381
|
+
table shows its failure row: `failed-text` with a built-in "Try again"
|
|
382
|
+
(`#empty` is for empty results only). **⚠ silent**
|
|
382
383
|
for untyped code: a `prefill ? a : b` always takes `a`. Details and the
|
|
383
384
|
before/after in [§6 item 37](../v2-to-v3.md).
|
|
384
385
|
|