bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75
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 +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +31 -5
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +9 -5
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +19 -15
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +16 -3
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +16 -4
- package/dist/ai/BbDropdown.md +175 -67
- package/dist/ai/BbDropdownButton.md +27 -8
- package/dist/ai/BbForm.md +4 -1
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +8 -4
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +59 -34
- package/dist/ai/BbTimePicker.md +16 -3
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbToastPortal.md +1 -1
- 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 +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +215 -6
- package/dist/ai/components.json +77 -43
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +33 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- 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-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +46 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCalendar.json +2 -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 +7 -4
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +6 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
- package/dist/ai/manifest/components/BbDropdown.json +23 -17
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
- package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -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 +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- 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 +16 -6
- package/dist/ai/manifest/components/BbTimePicker.json +7 -4
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +2 -1
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +36 -3
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +64 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +121 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +56 -55
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +59 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +71 -22
- package/dist/ai/source/BbDatePickerInput.md +72 -9
- package/dist/ai/source/BbDialog.md +45 -2
- package/dist/ai/source/BbDropdown.md +263 -63
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +121 -59
- package/dist/ai/source/BbForm.md +73 -6
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +22 -16
- package/dist/ai/source/BbOffCanvas.md +48 -2
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +19 -10
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +126 -32
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +69 -15
- package/dist/ai/source/BbTimePickerInput.md +45 -7
- package/dist/ai/source/BbToast.md +16 -2
- package/dist/ai/source/BbToastPortal.md +18 -6
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +28 -2
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -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 +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- 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 +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- 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 +239 -223
- package/dist/components/BbColorPalette/types.d.ts +8 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
- package/dist/components/BbDatePicker/types.d.ts +9 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
- package/dist/components/BbDialog/leaveGhost.js +38 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
- 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 +133 -119
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +73 -58
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- 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 +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
- package/dist/components/BbTimePicker/types.d.ts +9 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +7 -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/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- 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/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- 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/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +35 -31
- package/dist/llms-full.txt +1428 -400
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +4 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/hash.js +97 -64
- package/dist/utilities/functions/isEqual.js +33 -25
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +11 -4
- package/llms.txt +4 -2
- package/package.json +3 -2
- package/scripts/README.md +3 -1
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +90 -24
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +5 -2
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +37 -2
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
|
@@ -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)",
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -640,6 +653,26 @@ export const components = {
|
|
|
640
653
|
} satisfies BbComponentsMap;
|
|
641
654
|
```
|
|
642
655
|
|
|
656
|
+
The same local hides the placeholder where it would only mislead: a
|
|
657
|
+
read-only or disabled field shows its value, or nothing, never a "Type
|
|
658
|
+
here" no one can type into. Key it on the box's states, once, app-wide;
|
|
659
|
+
no `placeholder()` helper per page:
|
|
660
|
+
|
|
661
|
+
```ts
|
|
662
|
+
// bitboss-ui.components.ts
|
|
663
|
+
import type { BbComponentsMap } from 'bitboss-ui/vite';
|
|
664
|
+
|
|
665
|
+
const quiet = {
|
|
666
|
+
'box:readonly': '[--ph:transparent]',
|
|
667
|
+
'box:disabled': '[--ph:transparent]',
|
|
668
|
+
};
|
|
669
|
+
export const components = {
|
|
670
|
+
BbTextInput: { pt: quiet },
|
|
671
|
+
BbSelect: { pt: quiet },
|
|
672
|
+
BbDatePickerInput: { pt: quiet },
|
|
673
|
+
} satisfies BbComponentsMap;
|
|
674
|
+
```
|
|
675
|
+
|
|
643
676
|
## Tier 2 — component tokens (`--*`)
|
|
644
677
|
|
|
645
678
|
Defined on the component's **root class** in the component's own CSS file.
|
|
@@ -39,7 +39,7 @@ Two rules in `recommended` are `warn` rather than `error`, because each describe
|
|
|
39
39
|
|
|
40
40
|
`recommended` also enables **`bitboss-ui/carousel-items-without-slide`** (error): a `BbCarousel` with no `#slide` template whose `items` hold objects with neither `src` nor `srcset`. Without `#slide`, an entry renders as an image only when it is a string or has a `src` / `srcset`; any other object renders an empty slide, silently. Add `src` (or `srcset`) to the entries, or render them with `<template #slide="{ item }">`. Only entries in sight are judged: an inline array, or a `const` array in the same file's `<script setup>`; imported or fetched items, refs, spreads and a number of slides are not reported. `bitboss-ui check` reports the same.
|
|
41
41
|
|
|
42
|
-
`recommended` also enables **`bitboss-ui/hidden-label-placeholder`** (warning): a `BbTextInput` / `BbTextarea` / `BbNumberInput` / `BbSelect` / `BbTag` / `BbColorInput` / `BbDatePickerInput` / `BbTimePickerInput` with a static `hide-label` and no `placeholder`. A screen reader still hears the label, but a sighted user sees an empty box with nothing saying what it is for: add a `placeholder` (the label's words will do). Not reported: an `aria-labelledby`, a `#prefix` slot, an object `v-bind`, a field inside a `BbTable` / `BbTree` slot (its column header labels it), a field at the root of an SFC's template (a cell editor or wrapper: the parent lays out its label), a `variant="ghost"` field (the inline-edit cell: its column header labels it, and a narrow cell cuts a placeholder anyway) and a single `BbSelect` that is neither `clearable` nor `multiple` (it always shows its pick, so a placeholder would never show). `bitboss-ui check` reports the same finding as `hidden-label-placeholder`, a warning that never fails the run.
|
|
42
|
+
`recommended` also enables **`bitboss-ui/hidden-label-placeholder`** (warning): a `BbTextInput` / `BbTextarea` / `BbNumberInput` / `BbSelect` / `BbTag` / `BbColorInput` / `BbDatePickerInput` / `BbTimePickerInput` with a static `hide-label` and no `placeholder`. A screen reader still hears the label, but a sighted user sees an empty box with nothing saying what it is for: add a `placeholder` (the label's words will do). A `BbNumberInput` `unit` or `currency` is no caption: it shows only once there is a number, so an empty field still needs a `placeholder` or a visible label (the message says so). Not reported: an `aria-labelledby`, a `#prefix` or `#suffix` slot (text in the box, like "days after"), an object `v-bind`, a field inside a `BbTable` / `BbTree` slot (its column header labels it), a field at the root of an SFC's template (a cell editor or wrapper: the parent lays out its label), a `variant="ghost"` field (the inline-edit cell: its column header labels it, and a narrow cell cuts a placeholder anyway) and a single `BbSelect` that is neither `clearable` nor `multiple` (it always shows its pick, so a placeholder would never show). `bitboss-ui check` reports the same finding as `hidden-label-placeholder`, a warning that never fails the run.
|
|
43
43
|
|
|
44
44
|
`recommended` also enables **`bitboss-ui/no-unregistered-rule`** (error): a rule name in a library control's `rules` (`rules="required|email"`, a bound string, `:rules="{ required: cond }"`) that no `defineRule` in the project registers; vee-validate throws "No such validator" when the field validates. It reads literal `defineRule('email', …)` calls, loops over `@vee-validate/rules` itself (from the installed package) and loops over an object literal in the same file. **It fails closed**: a registration it cannot read (a computed name, an object imported from elsewhere, a shared package) reports the rule as unconfirmed and names the call; write the name literally or list it under `registeredRules` in `bitboss-ui.check.json` (or `package.json` → `"bitboss-ui"`). Function rules and rules beside a form `schema` are not reported. `bitboss-ui check` reports the same finding as `unregistered-rule`; in a `.md` page it also counts the `defineRule` calls the page's own fences show.
|
|
45
45
|
|
|
@@ -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.
|