bitboss-ui 3.0.0-beta.69 → 3.0.0-beta.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -11
- package/bin/bitboss-ui-mcp.mjs +7 -4
- package/bin/bitboss-ui.mjs +0 -0
- package/bin/cli.mjs +47 -28
- package/dist/ai/BbBaseButton.md +4 -4
- package/dist/ai/BbCarousel.md +32 -29
- package/dist/ai/BbCheckboxGroup.md +15 -12
- package/dist/ai/BbColorInput.md +6 -10
- package/dist/ai/BbDropzone.md +3 -3
- package/dist/ai/BbGallery.md +2034 -0
- package/dist/ai/BbPopover.md +12 -6
- package/dist/ai/BbRadioGroup.md +18 -15
- package/dist/ai/BbRating.md +3 -7
- package/dist/ai/BbSwitchGroup.md +3 -3
- package/dist/ai/BbTextInput.md +8 -8
- package/dist/ai/OptionsContainer.md +10 -7
- package/dist/ai/changelog.json +80 -4
- package/dist/ai/components.json +19 -14
- package/dist/ai/guides/ai-router.md +3 -2
- package/dist/ai/guides/component-picker.md +1 -0
- package/dist/ai/guides/eslint-rules.md +3 -3
- package/dist/ai/guides/installation-and-plugin-setup.md +5 -5
- package/dist/ai/guides/migration/v2-to-v3.md +29 -1
- package/dist/ai/guides/migration/v3-beta-tooling.md +25 -15
- package/dist/ai/guides/passthrough.md +2 -1
- package/dist/ai/guides/preset-components.md +19 -10
- package/dist/ai/helpers/definePreset.ts +8 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/components/BbCarousel.json +3 -2
- package/dist/ai/manifest/components/BbCarousel.tree.json +7 -0
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +13 -11
- package/dist/ai/manifest/components/BbConfigScope.json +1 -1
- package/dist/ai/manifest/components/BbGallery.json +54 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +12 -10
- package/dist/ai/manifest/components/BbRating.removed.json +1 -1
- package/dist/ai/manifest/components/BbSlider.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +1 -1
- package/dist/ai/manifest/components/BbTabs.removed.json +4 -4
- package/dist/ai/manifest/components/BbTabsList.removed.json +4 -4
- package/dist/ai/manifest/components/OptionsContainer.tree.json +10 -7
- package/dist/ai/manifest/index.json +4 -3
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +3 -1
- package/dist/ai/manifest/types.api.json +1 -1
- package/dist/ai/manifest/types.wrapper.json +1 -0
- package/dist/ai/recipes/inertia/onboarding.md +5 -8
- package/dist/ai/recipes/inertia/record-form.md +33 -12
- package/dist/ai/recipes/nuxt/onboarding.md +5 -8
- package/dist/ai/recipes/nuxt/record-form.md +27 -11
- package/dist/ai/recipes/vue/onboarding.md +5 -8
- package/dist/ai/recipes/vue/record-form.md +25 -11
- package/dist/ai/source/BbCalendar.md +2 -0
- package/dist/ai/source/BbCarousel.md +135 -32
- package/dist/ai/source/BbDropdown.md +2 -0
- package/dist/ai/source/BbDropdownGroup.md +2 -0
- package/dist/ai/source/BbGallery.md +2027 -0
- package/dist/ai/source/BbRadioGroup.md +2 -2
- package/dist/ai/source/BbSelectPopover.md +1 -0
- package/dist/ai/source/BbSwitchGroup.md +1 -0
- package/dist/ai/source/BbTable.md +11 -7
- package/dist/ai/source/BbTree.md +7 -3
- package/dist/ai/source/CommonPopover.md +13 -3
- package/dist/ai/source/FlatListBox.md +3 -3
- package/dist/ai/source/GroupedListBox.md +3 -3
- package/dist/ai/source/ListBox.md +4 -4
- package/dist/ai/source/OptionsContainer.md +4 -4
- package/dist/components/BbCalendar/useDayjsLocale.js +5 -3
- package/dist/components/BbCarousel/BbCarousel.vue.d.ts +1 -1
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +506 -481
- package/dist/components/BbCarousel/dragRelease.js +14 -0
- package/dist/components/BbCarousel/ptKeys.generated.d.ts +4 -0
- package/dist/components/BbCarousel/types.d.ts +11 -6
- package/dist/components/BbCarousel/types.js +1 -0
- package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
- package/dist/components/BbGallery/BbGallery.vue.js +5 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
- package/dist/components/BbGallery/findItem.js +41 -0
- package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
- package/dist/components/BbGallery/types.d.ts +177 -0
- package/dist/components/BbGallery/types.js +29 -0
- package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -0
- package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
- package/dist/components/BbRadioGroup/types.d.ts +2 -2
- package/dist/components/BbTable/types.d.ts +7 -7
- package/dist/components/BbTree/types.d.ts +3 -3
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +28 -26
- package/dist/composables/overlayRegistry.d.ts +17 -0
- package/dist/composables/overlayRegistry.js +16 -9
- package/dist/composables/useChoiceIndicator.js +1 -1
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbGallery.d.ts +64 -0
- package/dist/directives/bbGallery.js +38 -0
- package/dist/i18n/locales/ar.json +3 -1
- package/dist/i18n/locales/cs.json +3 -1
- package/dist/i18n/locales/da.json +3 -1
- package/dist/i18n/locales/de-CH.json +3 -1
- package/dist/i18n/locales/de.json +3 -1
- package/dist/i18n/locales/el.json +3 -1
- package/dist/i18n/locales/en-GB.json +3 -1
- package/dist/i18n/locales/en.json +3 -1
- package/dist/i18n/locales/es-MX.json +3 -1
- package/dist/i18n/locales/es.json +3 -1
- package/dist/i18n/locales/fa.json +3 -1
- package/dist/i18n/locales/fi.json +3 -1
- package/dist/i18n/locales/fr.json +3 -1
- package/dist/i18n/locales/he.json +3 -1
- package/dist/i18n/locales/hu.json +3 -1
- package/dist/i18n/locales/it.json +3 -1
- package/dist/i18n/locales/ja.json +3 -1
- package/dist/i18n/locales/ko.json +3 -1
- package/dist/i18n/locales/nb.json +3 -1
- package/dist/i18n/locales/nl.json +3 -1
- package/dist/i18n/locales/pl.json +3 -1
- package/dist/i18n/locales/pt-BR.json +3 -1
- package/dist/i18n/locales/pt-PT.json +3 -1
- package/dist/i18n/locales/ro.json +3 -1
- package/dist/i18n/locales/ru.json +3 -1
- package/dist/i18n/locales/sv.json +3 -1
- package/dist/i18n/locales/tr.json +3 -1
- package/dist/i18n/locales/uk.json +3 -1
- package/dist/i18n/locales/zh-CN.json +3 -1
- package/dist/i18n/locales/zh-HK.json +3 -1
- package/dist/i18n/locales/zh-TW.json +3 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +38 -36
- package/dist/llms-full.txt +2328 -185
- package/dist/llms-medium.txt +10 -7
- package/dist/llms.txt +1 -1
- package/dist/locale-blueprint.json +3 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/plugin.js +18 -17
- package/dist/project-dts.js +17 -16
- package/dist/runtime/nuxt-plugin.js +22 -21
- package/dist/scripts/lib/atomic-write.js +42 -0
- package/dist/styles.css +2 -2
- package/dist/types/passthrough.d.ts +2 -2
- package/dist/types/ptComponentMap.d.ts +2 -1
- package/dist/utilities/calendar/canonicalParts.js +10 -2
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +361 -331
- package/llms.txt +2 -2
- package/package.json +2 -1
- package/scripts/README.md +25 -25
- package/scripts/lib/agent-refresh.mjs +15 -9
- package/scripts/lib/agent-setup.mjs +46 -15
- package/scripts/lib/atomic-write.d.mts +6 -0
- package/scripts/lib/atomic-write.mjs +85 -0
- package/scripts/lib/define-preset-copy.mjs +23 -3
- package/scripts/lib/eslint-plugin.mjs +74 -36
- package/scripts/lib/hand-imported-styles.mjs +44 -99
- package/scripts/lib/helpers-add.mjs +3 -1
- package/scripts/lib/linked-target.mjs +1 -1
- package/scripts/lib/locale-check.mjs +41 -25
- package/scripts/lib/mcp-config.mjs +250 -133
- package/scripts/lib/mcp-sdk.mjs +24 -0
- package/scripts/lib/plugin-options-check.mjs +22 -15
- package/scripts/lib/pnp.mjs +1 -1
- package/scripts/lib/project-variant-dts.mjs +80 -136
- package/scripts/lib/release-results.mjs +331 -0
- package/scripts/lib/setup.mjs +53 -3
- package/scripts/lib/toolchain-check.mjs +10 -8
- package/scripts/lib/tooling-options.mjs +357 -38
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
- package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
- package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
- package/dist/components/BbButton/toggleRoving.d.ts +0 -6
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
- package/dist/components/BbCalendar/calendarMath.d.ts +0 -102
- package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -116
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -411
- package/dist/components/BbCalendar/useDayGrid.d.ts +0 -122
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -93
- package/dist/components/BbCalendar/useToday.d.ts +0 -25
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
- package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
- package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
- package/dist/components/BbDatePickerInput/calendarFields.d.ts +0 -91
- package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -29
- package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
- package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
- package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
- package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
- package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
- package/dist/components/BbForm/bindFormField.d.ts +0 -56
- package/dist/components/BbForm/formFields.d.ts +0 -77
- package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
- package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
- package/dist/components/BbIcon/iconCache.d.ts +0 -63
- package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -255
- package/dist/components/BbNumberInput/platform.d.ts +0 -7
- package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
- package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
- package/dist/components/BbPagination/paginationFit.d.ts +0 -38
- package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
- package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
- package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
- package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
- package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
- package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
- package/dist/components/BbTable/gridWidgets.d.ts +0 -30
- package/dist/components/BbTable/measuredFloors.d.ts +0 -46
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
- package/dist/components/BbTable/textRuler.d.ts +0 -73
- package/dist/components/BbTable/useRowReorder.d.ts +0 -60
- package/dist/components/BbTable/utils.d.ts +0 -375
- package/dist/components/BbTabs/tablistName.d.ts +0 -4
- package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -15
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
- package/dist/components/BbTree/context.d.ts +0 -25
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
- package/dist/components/ChipsBox/types.d.ts +0 -28
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
- package/dist/components/ClearableButton/types.d.ts +0 -9
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
- package/dist/components/CloseIcon/types.d.ts +0 -2
- package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
- package/dist/components/CommaBox/types.d.ts +0 -20
- package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
- package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
- package/dist/components/CommonFieldInput/types.d.ts +0 -114
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
- package/dist/components/CommonPopover/resolvePlacement.d.ts +0 -9
- package/dist/components/CommonPopover/types.d.ts +0 -120
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
- package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
- package/dist/components/ErrorIcon/types.d.ts +0 -3
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
- package/dist/components/FlatListBox/types.d.ts +0 -140
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
- package/dist/components/GroupedListBox/types.d.ts +0 -163
- package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
- package/dist/components/ListBox/types.d.ts +0 -180
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
- package/dist/components/OptionsContainer/types.d.ts +0 -168
- package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
- package/dist/components/Transitions/Slide.vue.d.ts +0 -39
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
- package/dist/components/WarningIcon/types.d.ts +0 -3
- package/dist/composables/__testResets.d.ts +0 -1
- package/dist/composables/autoHost.d.ts +0 -22
- package/dist/composables/formSubmitLock.d.ts +0 -48
- package/dist/composables/hostOpenings.d.ts +0 -88
- package/dist/composables/hostRegistry.d.ts +0 -47
- package/dist/composables/ssrMarker.d.ts +0 -15
- package/dist/composables/useActiveInactiveState.d.ts +0 -4
- package/dist/composables/useArray.d.ts +0 -7
- package/dist/composables/useBaseOptions.d.ts +0 -51
- package/dist/composables/useBodyScrollLock.d.ts +0 -4
- package/dist/composables/useBreakpoint.d.ts +0 -13
- package/dist/composables/useCancelableFunction.d.ts +0 -17
- package/dist/composables/useChoiceIndicator.d.ts +0 -58
- package/dist/composables/useClosingInert.d.ts +0 -28
- package/dist/composables/useCoarsePointer.d.ts +0 -9
- package/dist/composables/useCoherence.d.ts +0 -21
- package/dist/composables/useConfig.d.ts +0 -59
- package/dist/composables/useConfigDefaults.d.ts +0 -54
- package/dist/composables/useDirection.d.ts +0 -43
- package/dist/composables/useEscapeStackEntry.d.ts +0 -13
- package/dist/composables/useFrameworkDetection.d.ts +0 -12
- package/dist/composables/useHashedWatcher.d.ts +0 -19
- package/dist/composables/useHydrated.d.ts +0 -37
- package/dist/composables/useImeDismissBlur.d.ts +0 -103
- package/dist/composables/useIndexById.d.ts +0 -11
- package/dist/composables/useInertiaPage.d.ts +0 -10
- package/dist/composables/useItemText.d.ts +0 -17
- package/dist/composables/useItemValue.d.ts +0 -7
- package/dist/composables/useItemsGetter.d.ts +0 -83
- package/dist/composables/useKeyboardInset.d.ts +0 -28
- package/dist/composables/useListboxFocus.d.ts +0 -21
- package/dist/composables/useLocale.d.ts +0 -5
- package/dist/composables/useLogger.d.ts +0 -5
- package/dist/composables/useMinimalQueue.d.ts +0 -9
- package/dist/composables/useOnFalsy.d.ts +0 -2
- package/dist/composables/useOnTruthy.d.ts +0 -7
- package/dist/composables/useOverlayNavigation.d.ts +0 -37
- package/dist/composables/useOverlayYield.d.ts +0 -23
- package/dist/composables/usePrefill.d.ts +0 -44
- package/dist/composables/useQuery.d.ts +0 -39
- package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
- package/dist/composables/useRoute.d.ts +0 -3
- package/dist/composables/useRouter.d.ts +0 -2
- package/dist/composables/useSegmentedFields.d.ts +0 -129
- package/dist/composables/useServerPrefetch.d.ts +0 -28
- package/dist/composables/useSheetSurface.d.ts +0 -39
- package/dist/composables/useSsrState.d.ts +0 -28
- package/dist/composables/useTableWidthContext.d.ts +0 -73
- package/dist/composables/useToggleInput.d.ts +0 -44
- package/dist/composables/useTopLayer.d.ts +0 -9
- package/dist/composables/useTypeahead.d.ts +0 -112
- package/dist/composables/useUntil.d.ts +0 -7
- package/dist/composables/useUrlQueryParam.d.ts +0 -21
- package/dist/composables/useViewportWidth.d.ts +0 -14
- package/dist/deprecation/ai-deprecations.json.d.ts +0 -2984
- package/dist/deprecation/removedProps.d.ts +0 -3
- package/dist/directives/createPopoverDirective.d.ts +0 -111
- package/dist/directives/renderingInstance.d.ts +0 -2
- package/dist/i18n/eraNames.d.ts +0 -2
- package/dist/i18n/regionHints.d.ts +0 -16
- package/dist/icons-whitelist.d.ts +0 -9
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +0 -2
- package/dist/styles.d.ts +0 -0
- package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
- package/dist/types/ExtractGenericFromRef.d.ts +0 -2
- package/dist/types/NestedKeyOf.d.ts +0 -3
- package/dist/types/PrefixWith.d.ts +0 -1
- package/dist/types/ShapeErased.d.ts +0 -15
- package/dist/types/Simplify.d.ts +0 -6
- package/dist/utilities/calendar/canonicalParts.d.ts +0 -29
- package/dist/utilities/calendar/digits.d.ts +0 -18
- package/dist/utilities/calendar/gregorian.d.ts +0 -2
- package/dist/utilities/calendar/index.d.ts +0 -3
- package/dist/utilities/calendar/international.d.ts +0 -19
- package/dist/utilities/calendar/resolve.d.ts +0 -32
- package/dist/utilities/calendar/runtime.d.ts +0 -49
- package/dist/utilities/functions/animationsSettled.d.ts +0 -7
- package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
- package/dist/utilities/functions/chunk.d.ts +0 -1
- package/dist/utilities/functions/clamp.d.ts +0 -9
- package/dist/utilities/functions/clampPrecision.d.ts +0 -1
- package/dist/utilities/functions/convertDateValue.d.ts +0 -57
- package/dist/utilities/functions/curry.d.ts +0 -6
- package/dist/utilities/functions/deburr.d.ts +0 -1
- package/dist/utilities/functions/elementLabel.d.ts +0 -8
- package/dist/utilities/functions/empty.d.ts +0 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
- package/dist/utilities/functions/findInTree.d.ts +0 -4
- package/dist/utilities/functions/flattenTree.d.ts +0 -1
- package/dist/utilities/functions/get.d.ts +0 -3
- package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
- package/dist/utilities/functions/hash.d.ts +0 -1
- package/dist/utilities/functions/head.d.ts +0 -2
- package/dist/utilities/functions/identity.d.ts +0 -1
- package/dist/utilities/functions/indexBy.d.ts +0 -11
- package/dist/utilities/functions/isDateDisabled.d.ts +0 -25
- package/dist/utilities/functions/isEqual.d.ts +0 -1
- package/dist/utilities/functions/isHex.d.ts +0 -1
- package/dist/utilities/functions/isImeComposing.d.ts +0 -7
- package/dist/utilities/functions/isNil.d.ts +0 -6
- package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
- package/dist/utilities/functions/isNotNil.d.ts +0 -6
- package/dist/utilities/functions/isTextEntry.d.ts +0 -5
- package/dist/utilities/functions/isoWeek.d.ts +0 -36
- package/dist/utilities/functions/itemProps.d.ts +0 -46
- package/dist/utilities/functions/last.d.ts +0 -2
- package/dist/utilities/functions/negative.d.ts +0 -1
- package/dist/utilities/functions/noop.d.ts +0 -1
- package/dist/utilities/functions/normalizeDateBound.d.ts +0 -69
- package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
- package/dist/utilities/functions/parseSize.d.ts +0 -3
- package/dist/utilities/functions/parseWidthString.d.ts +0 -6
- package/dist/utilities/functions/percentage.d.ts +0 -26
- package/dist/utilities/functions/pickBy.d.ts +0 -1
- package/dist/utilities/functions/range.d.ts +0 -1
- package/dist/utilities/functions/readableValue.d.ts +0 -6
- package/dist/utilities/functions/reject.d.ts +0 -25
- package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
- package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
- package/dist/utilities/functions/searchRank.d.ts +0 -19
- package/dist/utilities/functions/settlesVisible.d.ts +0 -20
- package/dist/utilities/functions/snapToStep.d.ts +0 -1
- package/dist/utilities/functions/sort.d.ts +0 -6
- package/dist/utilities/functions/throttle.d.ts +0 -1
- package/dist/utilities/functions/toggleInput.d.ts +0 -114
- package/dist/utilities/functions/transpose.d.ts +0 -1
- package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
- package/dist/utilities/functions/wait.d.ts +0 -2
- package/dist/utilities/functions/waitFor.d.ts +0 -9
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
- package/dist/utilities/functions/when.d.ts +0 -9
- package/dist/utilities/misc/autofocus.d.ts +0 -20
- package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
- package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
- package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
- package/dist/utilities/misc/pageText.d.ts +0 -16
- package/dist/utilities/misc/ssrValue.d.ts +0 -20
- package/dist/utilities/misc/transitions.d.ts +0 -5
- package/dist/utils/configDefaults.d.ts +0 -43
- package/dist/utils/configScope.d.ts +0 -43
- package/dist/utils/copyData.d.ts +0 -13
- package/dist/utils/focusVisibility.d.ts +0 -15
- package/dist/utils/injectLibraryStyles.d.ts +0 -8
- package/dist/utils/overlayEscapeStack.d.ts +0 -52
- package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
- package/dist/utils/passthroughDeduper.d.ts +0 -16
- package/dist/utils/releasedActivator.d.ts +0 -20
- package/dist/utils/versionCheck.d.ts +0 -19
package/dist/ai/components.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"library": "bitboss-ui",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
5
|
-
"generatedAt": "2026-11-
|
|
4
|
+
"version": "3.0.0-beta.70",
|
|
5
|
+
"generatedAt": "2026-11-09T18:44:25.000Z",
|
|
6
6
|
"legend": {
|
|
7
7
|
"referenceOnly": "true = internal building block, documented so trees and sources can be read. Never write it in a template; most are not exported.",
|
|
8
8
|
"types[].usage": "api = the type of a prop, event or slot value you pass; wrapper = a component Props/Events/Slots type (its component entry lists every field); advanced = everything else. An api type named <component>Props (BbOffCanvasProps) is that component's props: read its component entry.",
|
|
9
9
|
"types[].values": "every accepted value when the type is a finite list. With extensibleVia, the list is the built-ins: an app adds names by augmenting that registry interface.",
|
|
10
10
|
"types[].fields": "resolved fields, present only when the declaration leans on a type that is not exported; then `definition` is left out unless it is generic, has an index signature or is a union.",
|
|
11
11
|
"types[].members": "for a union of types that are not exported (BbDropdownItem = InternalItem | InternalGroup): each member by name, with its resolved fields. A member that is itself a union lists every field any variant takes.",
|
|
12
|
-
"paths": "every contract / source / doc / migration path is relative to the package dist/ (
|
|
12
|
+
"paths": "every contract / source / doc / migration path is relative to the package dist/ (the installed package's dist/ folder, or https://llms-bitboss-ui.bitboss.it/dist/), not to this file.",
|
|
13
13
|
"attrTargets": "the native elements a plain HTML attribute (class, id, aria-*, data-*) lands on. Absent = not provable statically (unknown), not \"the root\".",
|
|
14
14
|
"tree": "the components this one mounts, with the props, pt parts and CSS variables that reach each. A public component in it is its name only: its own entry (and its own tree) has the rest. An internal node met again is { name, kind, repeated: true }.",
|
|
15
15
|
"css.classes": "css.locals: the unprefixed CSS locals (`--fg`, `--px`) this component's own sheets and markup read. Add the css.locals of every component in its `tree`, and of every component in the trees of the public ones it names, for what a local set on its blocks can reach; a local in none of them does nothing there. css.classes: the .bb-* classes the library renders or styles, by BEM block: each block maps to its suffixes (\"\" = the block itself, \"__item\", \"--selected\"; a trailing * = any tail, a class built from data such as a variant name). Each block is listed once, on the component that owns it; the top-level css.classes holds the library-wide ones. `bitboss-ui check` flags a selector on a .bb-* class in none of them.",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
{"name":"v-bb-dialog","import":"import { vBbDialog, BbDialogDirectivePlugin } from 'bitboss-ui';","value":"BbDialogDirectiveValue","mirrors":"BbDialog","doc":"ai/BbDialog.md"},
|
|
31
31
|
{"name":"v-bb-hover-card","import":"import { vBbHoverCard, BbHoverCardDirectivePlugin } from 'bitboss-ui';","value":"BbHoverCardDirectiveValue","mirrors":"BbHoverCard","doc":"ai/BbHoverCard.md"},
|
|
32
32
|
{"name":"v-bb-off-canvas","import":"import { vBbOffCanvas, BbOffCanvasDirectivePlugin } from 'bitboss-ui';","value":"BbOffCanvasDirectiveValue","mirrors":"BbOffCanvas","doc":"ai/BbOffCanvas.md"},
|
|
33
|
+
{"name":"v-bb-gallery","import":"import { vBbGallery, BbGalleryDirectivePlugin } from 'bitboss-ui';","value":"BbGalleryDirectiveValue","mirrors":"BbGallery","doc":"ai/BbGallery.md"},
|
|
33
34
|
{"name":"v-bb-popover","import":"import { vBbPopover, BbPopoverDirectivePlugin } from 'bitboss-ui';","value":"BbPopoverDirectiveValue","mirrors":"BbPopover","doc":"ai/BbPopover.md"},
|
|
34
35
|
{"name":"v-bb-tooltip","import":"import { vBbTooltip, BbTooltipDirectivePlugin } from 'bitboss-ui';","value":"BbTooltipDirectiveValue","mirrors":"BbTooltip","doc":"ai/BbTooltip.md"},
|
|
35
36
|
{"name":"v-bb-dropdown","import":"import { vBbDropdown, BbDropdownDirectivePlugin } from 'bitboss-ui';","value":"BbDropdownDirectiveValue","mirrors":"BbDropdown","doc":"ai/BbDropdown.md"}
|
|
@@ -148,7 +149,7 @@
|
|
|
148
149
|
{"name":"BbColorPaletteEvents","usage":"wrapper","component":null,"usedBy":[]},
|
|
149
150
|
{"name":"BbColorPaletteProps","usage":"wrapper","component":null,"usedBy":[]},
|
|
150
151
|
{"name":"BbColorPaletteSlots","usage":"wrapper","component":null,"usedBy":[]},
|
|
151
|
-
{"name":"BbComponentsMap","usage":"api","component":"BbConfigScope","usedBy":[{"component":"BbConfigScope","surface":"prop","name":"config"}],"definition":"type BbComponentsMap<Mode extends 'global' | 'scope' = 'global', V = BbUninferredVariants> = { all?: BbAllConfig; } & { [C in AnyComponent]?: Mode extends 'scope' ? ScopeEntry<C, V> : BbComponentConfig<C, V>; };","fields":["all?: BbAllConfig","BbAccordion?: unknown","BbAlert?: unknown","BbAsterisk?: unknown","BbAvatar?: unknown","BbBadge?: unknown","BbBaseButton?: unknown","BbBaseCheckboxIcon?: unknown","BbBaseRadioIcon?: unknown","BbBaseSwitchIcon?: unknown","BbBreadcrumbs?: unknown","BbButton?: unknown","BbCalendar?: unknown","BbCarousel?: unknown","BbCheckbox?: unknown","BbCheckboxGroup?: unknown","BbCollapsible?: unknown","BbColorInput?: unknown","BbColorPalette?: unknown","BbConfirm?: unknown","BbDatePicker?: unknown","BbDatePickerInput?: unknown","BbDialog?: unknown","BbDropdown?: unknown","BbDropdownButton?: unknown","BbDropzone?: unknown","BbHoverCard?: unknown","BbIcon?: unknown","BbIndicator?: unknown","BbNumberInput?: unknown","BbOffCanvas?: unknown","BbPagination?: unknown","BbPopover?: unknown","BbProgress?: unknown","BbRadio?: unknown","BbRadioGroup?: unknown","BbRating?: unknown","BbSelect?: unknown","BbSelectPopover?: unknown","BbSlider?: unknown","BbSmoothHeight?: unknown","BbSpinner?: unknown","BbSwitch?: unknown","BbSwitchGroup?: unknown","BbTable?: unknown","BbTabs?: unknown","BbTabsList?: unknown","BbTabsPanels?: unknown","BbTag?: unknown","BbTextInput?: unknown","BbTextarea?: unknown","BbTimePicker?: unknown","BbTimePickerInput?: unknown","BbToast?: unknown","BbTooltip?: unknown","BbTree?: unknown"]},
|
|
152
|
+
{"name":"BbComponentsMap","usage":"api","component":"BbConfigScope","usedBy":[{"component":"BbConfigScope","surface":"prop","name":"config"}],"definition":"type BbComponentsMap<Mode extends 'global' | 'scope' = 'global', V = BbUninferredVariants> = { all?: BbAllConfig; } & { [C in AnyComponent]?: Mode extends 'scope' ? ScopeEntry<C, V> : BbComponentConfig<C, V>; };","fields":["all?: BbAllConfig","BbAccordion?: unknown","BbAlert?: unknown","BbAsterisk?: unknown","BbAvatar?: unknown","BbBadge?: unknown","BbBaseButton?: unknown","BbBaseCheckboxIcon?: unknown","BbBaseRadioIcon?: unknown","BbBaseSwitchIcon?: unknown","BbBreadcrumbs?: unknown","BbButton?: unknown","BbCalendar?: unknown","BbCarousel?: unknown","BbCheckbox?: unknown","BbCheckboxGroup?: unknown","BbCollapsible?: unknown","BbColorInput?: unknown","BbColorPalette?: unknown","BbConfirm?: unknown","BbDatePicker?: unknown","BbDatePickerInput?: unknown","BbDialog?: unknown","BbDropdown?: unknown","BbDropdownButton?: unknown","BbDropzone?: unknown","BbGallery?: unknown","BbHoverCard?: unknown","BbIcon?: unknown","BbIndicator?: unknown","BbNumberInput?: unknown","BbOffCanvas?: unknown","BbPagination?: unknown","BbPopover?: unknown","BbProgress?: unknown","BbRadio?: unknown","BbRadioGroup?: unknown","BbRating?: unknown","BbSelect?: unknown","BbSelectPopover?: unknown","BbSlider?: unknown","BbSmoothHeight?: unknown","BbSpinner?: unknown","BbSwitch?: unknown","BbSwitchGroup?: unknown","BbTable?: unknown","BbTabs?: unknown","BbTabsList?: unknown","BbTabsPanels?: unknown","BbTag?: unknown","BbTextInput?: unknown","BbTextarea?: unknown","BbTimePicker?: unknown","BbTimePickerInput?: unknown","BbToast?: unknown","BbTooltip?: unknown","BbTree?: unknown"]},
|
|
152
153
|
{"name":"BbConfigScopeName","usage":"api","component":"BbConfigScope","usedBy":[{"component":"BbConfigScope","surface":"prop","name":"name"}],"definition":"type BbConfigScopeName = RegistryKey<ConfigScopeRegistry, 'bitboss-ui: no configScopes configured — add configScopes to bitbossUi() and commit bitboss-ui.d.ts'>;","extensibleVia":"ConfigScopeRegistry"},
|
|
153
154
|
{"name":"BbConfigScopeProps","usage":"wrapper","component":"BbConfigScope","usedBy":[]},
|
|
154
155
|
{"name":"BbConfigScopeSlots","usage":"wrapper","component":"BbConfigScope","usedBy":[]},
|
|
@@ -198,6 +199,9 @@
|
|
|
198
199
|
{"name":"BbFormSetErrorsOptions","usage":"api","component":null,"usedBy":[{"component":"BbForm","surface":"slot","name":"default"}],"definition":"type BbFormSetErrorsOptions = { focus?: boolean; };"},
|
|
199
200
|
{"name":"BbFormState","usage":"advanced","component":null,"usedBy":[],"definition":"type BbFormState = { valid: boolean; dirty: boolean; touched: boolean; pending: boolean; submitting: boolean; submitCount: number; values: Record<string, unknown>; errors: Record<string, string[]>; fields: Record<string, BbFormFieldEntry>; unmatchedErrors: Record<string, string[]>; };"},
|
|
200
201
|
{"name":"BbFormSubmitMeta","usage":"api","component":null,"usedBy":[{"component":"BbForm","surface":"event","name":"submit"}],"definition":"type BbFormSubmitMeta = { submitter: HTMLElement | null; };"},
|
|
202
|
+
{"name":"BbGalleryDirectiveValue","usage":"advanced","component":null,"usedBy":[],"definition":"type BbGalleryDirectiveValue = string | { id: string; item?: number | string; };"},
|
|
203
|
+
{"name":"BbGalleryItem","usage":"advanced","component":"BbGallery","usedBy":[],"definition":"type BbGalleryItem = { src?: string; alt?: string; srcset?: string; sizes?: string; caption?: string; width?: number; height?: number; } & ({ src: string; } | { srcset: string; });"},
|
|
204
|
+
{"name":"BbGalleryProps","usage":"wrapper","component":"BbGallery","usedBy":[]},
|
|
201
205
|
{"name":"BbHostProps","usage":"wrapper","component":"BbHost","usedBy":[]},
|
|
202
206
|
{"name":"BbHoverCardDirectiveValue","usage":"advanced","component":null,"usedBy":[],"definition":"type BbHoverCardDirectiveValue = string | DirectivePortalComponent | (Partial<Omit<BbHoverCardProps, 'activator'>> & DirectivePortalOptions);"},
|
|
203
207
|
{"name":"BbHoverCardEvents","usage":"wrapper","component":"BbHoverCard","usedBy":[]},
|
|
@@ -339,7 +343,7 @@
|
|
|
339
343
|
{"name":"IndicatorVariantType","usage":"advanced","component":null,"usedBy":[],"definition":"type IndicatorVariantType = IndicatorVariantFromRegistry;","values":["default","success","info","warning","destructive"],"extensibleVia":"IndicatorVariantRegistry"},
|
|
340
344
|
{"name":"InputVariantType","usage":"api","component":null,"usedBy":[{"component":"CommonFieldInput","surface":"prop","name":"variant"}],"definition":"type InputVariantType = keyof TextInputVariantRegistry | keyof TextareaVariantRegistry | keyof NumberInputVariantRegistry | keyof SelectVariantRegistry | keyof TagVariantRegistry | keyof ColorInputVariantRegistry | keyof DatePickerInputVariantRegistry | keyof TimePickerInputVariantRegistry | 'none';","values":["outline","secondary","ghost","none"],"extensibleVia":"TextInputVariantRegistry"},
|
|
341
345
|
{"name":"ListLayout","usage":"api","component":null,"usedBy":[{"component":"BbCheckboxGroup","surface":"prop","name":"listLayout"},{"component":"BbRadioGroup","surface":"prop","name":"listLayout"},{"component":"BbSwitchGroup","surface":"prop","name":"listLayout"},{"component":"OptionsContainer","surface":"prop","name":"listLayout"}],"definition":"type ListLayout = 'horizontal' | 'vertical' | 'tiles';","values":["horizontal","vertical","tiles"]},
|
|
342
|
-
{"name":"Locale","usage":"advanced","component":null,"usedBy":[],"fields":["common: { closeLabel: string; loadingText: string; emptyText: string; failedText: string; clearLabel: string; fieldLabel: string; }","colorInput: { dialogLabel: string; openPicker: string; openPickerSelected: string; mainCanvasDesc: string; mainCanvasSelectedColor: string; hueCanvasDesc: string; alphaSliderDesc: string; eyeDropper: string; }","datePicker: { monthLabel: string; yearLabel: string; previousMonthLabel: string; nextMonthLabel: string; previousYearLabel: string; nextYearLabel: string; calendarLabel: string; monthSelectorLabel: string; yearSelectorLabel: string; selectingMonth: string; selectingYear: string; selectedLabel: string; hoursLabel: string; minutesLabel: string; secondsLabel: string; selectEndDate: string; openPicker: string; weekColumnLabel: string; weekNumber: string; weekValue: string; weekSpan: string; }","datePickerInput: { dateFormat: string; dateFormatSingle: string; dateFormatRange: string; monthFormatSingle: string; monthFormatRange: string; yearFormatSingle: string; yearFormatRange: string; weekFormatSingle: string; weekFormatRange: string; emptyRange: string; changeSelectionRange: string; changeSelection: string; emptySelection: string; dayField: string; monthField: string; yearField: string; eraField: string; weekField: string; hourField: string; minuteField: string; secondField: string; startFieldLabel: string; endFieldLabel: string; timeFormat: string; timeFormatSeconds: string; meridiemField: string; meridiemAm: string; meridiemPm: string; }","dialog: { closeLabel: string; closeRefused: string; }","dropdown: { back: string; }","dropdownButton: { open: string; }","dropzone: { selectFiles: string; serverFiles: string; }","rating: { singleStar: string; multipleStars: string; clearHint: string; }","select: { multipleMaxReached: string; searchLabel: string; searchToStart: string; triggerLabel: string; }","slider: { minimumThumb: string; maximumThumb: string; thumbPosition: string; }","badge: { clearLabel: string; }","breadcrumbs: { label: string; openHiddenLabelCount: string; }","pagination: { label: string; previous: string; next: string; }","confirm: { ok: string; cancel: string; }","offCanvas: { closeLabel: string; snapLabel: string; snapValue: string; snapFull: string; }","table: { actionsText: string; selectAllLabel: string; selectText: string; select: string; selectableLegend: string; reorderInstructions: string; columnMoved: string; resizeInstructions: string; sortInstructions: string; rowReorderHeader: string; moveRow: string; rowReorderInstructions: string; rowLifted: string; rowPosition: string; rowDropped: string; rowMoveCancelled: string; }","timePickerInput: { emptySelection: string; emptyRange: string; changeSelection: string; changeSelectionRange: string; openPicker: string; start: string; end: string; }","counter: { count: string; countOfMax: string; remaining: string; limitReached: string; }","carousel: { label: string; slides: string; slideOf: string; previous: string; next: string; goTo: string; pause: string; play: string; role: string; slideRole: string; }","gallery: { label: string; previous: string; next: string; position: string; }"]},
|
|
346
|
+
{"name":"Locale","usage":"advanced","component":null,"usedBy":[],"fields":["common: { closeLabel: string; loadingText: string; emptyText: string; failedText: string; clearLabel: string; fieldLabel: string; }","colorInput: { dialogLabel: string; openPicker: string; openPickerSelected: string; mainCanvasDesc: string; mainCanvasSelectedColor: string; hueCanvasDesc: string; alphaSliderDesc: string; eyeDropper: string; }","datePicker: { monthLabel: string; yearLabel: string; previousMonthLabel: string; nextMonthLabel: string; previousYearLabel: string; nextYearLabel: string; calendarLabel: string; monthSelectorLabel: string; yearSelectorLabel: string; selectingMonth: string; selectingYear: string; selectedLabel: string; hoursLabel: string; minutesLabel: string; secondsLabel: string; selectEndDate: string; openPicker: string; weekColumnLabel: string; weekNumber: string; weekValue: string; weekSpan: string; }","datePickerInput: { dateFormat: string; dateFormatSingle: string; dateFormatRange: string; monthFormatSingle: string; monthFormatRange: string; yearFormatSingle: string; yearFormatRange: string; weekFormatSingle: string; weekFormatRange: string; emptyRange: string; changeSelectionRange: string; changeSelection: string; emptySelection: string; dayField: string; monthField: string; yearField: string; eraField: string; weekField: string; hourField: string; minuteField: string; secondField: string; startFieldLabel: string; endFieldLabel: string; timeFormat: string; timeFormatSeconds: string; meridiemField: string; meridiemAm: string; meridiemPm: string; }","dialog: { closeLabel: string; closeRefused: string; }","dropdown: { back: string; }","dropdownButton: { open: string; }","dropzone: { selectFiles: string; serverFiles: string; }","rating: { singleStar: string; multipleStars: string; clearHint: string; }","select: { multipleMaxReached: string; searchLabel: string; searchToStart: string; triggerLabel: string; }","slider: { minimumThumb: string; maximumThumb: string; thumbPosition: string; }","badge: { clearLabel: string; }","breadcrumbs: { label: string; openHiddenLabelCount: string; }","pagination: { label: string; previous: string; next: string; }","confirm: { ok: string; cancel: string; }","offCanvas: { closeLabel: string; snapLabel: string; snapValue: string; snapFull: string; }","table: { actionsText: string; selectAllLabel: string; selectText: string; select: string; selectableLegend: string; reorderInstructions: string; columnMoved: string; resizeInstructions: string; sortInstructions: string; rowReorderHeader: string; moveRow: string; rowReorderInstructions: string; rowLifted: string; rowPosition: string; rowDropped: string; rowMoveCancelled: string; }","timePickerInput: { emptySelection: string; emptyRange: string; changeSelection: string; changeSelectionRange: string; openPicker: string; start: string; end: string; }","counter: { count: string; countOfMax: string; remaining: string; limitReached: string; }","carousel: { label: string; slides: string; slideOf: string; previous: string; next: string; goTo: string; pause: string; play: string; role: string; slideRole: string; }","gallery: { label: string; previous: string; next: string; position: string; more: string; less: string; }"]},
|
|
343
347
|
{"name":"LocaleKey","usage":"advanced","component":null,"usedBy":[],"definition":"type LocaleKey = RegistryKey<LocaleRegistry, BuiltinLocaleInput | LocaleWithExtension>;","extensibleVia":"LocaleRegistry"},
|
|
344
348
|
{"name":"LocaleRegistry","usage":"advanced","component":null,"usedBy":[],"definition":"interface LocaleRegistry { }","extensibleVia":"LocaleRegistry"},
|
|
345
349
|
{"name":"LocaleWithExtension","usage":"advanced","component":null,"usedBy":[],"definition":"type LocaleWithExtension = `${BuiltinLocaleInput}-u-${string}`;"},
|
|
@@ -380,9 +384,9 @@
|
|
|
380
384
|
{"name":"BbBreadcrumbs","group":"Navigation","description":"Renders hierarchical navigation paths.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbBreadcrumbs.md","source":"ai/source/BbBreadcrumbs.md","props":[{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component"},{"name":"dividerWidth","type":"number | undefined","required":false,"default":"16","description":"Width of the divider in pixels."},{"name":"ellipsisWidth","type":"number | undefined","required":false,"description":"Explicit width used by the estimator for the ellipsis activator."},{"name":"estimationBias","type":"number | undefined","required":false,"default":"1.12","description":"Multiplier applied to each estimated item width. A higher value will result in more over-estimation."},{"name":"gapWidth","type":"number | undefined","required":false,"default":"4","description":"Horizontal gap between breadcrumb elements in pixels."},{"name":"items","type":"BbBreadcrumbsItem[]","required":true,"description":"Array of items that describe how the breadcrumbs should behave. Compatible with navigating through `a` or `router-link`."},{"name":"offsetWidth","type":"number | undefined","required":false,"default":"0","description":"Extra one-off width in pixels added to the total estimate (e.g. prepend/append/item slot content)."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"item\", \"icon\", \"text\"]; readonly states: readonly [\"disabled\", \"active\"]; readonly wide: readonly [\"disabled\"]; readonly node: { readonly item: readonly [\"active\"]; readonly icon: readonly [\"active\"]; readonly text: readonly [\"active\"]; }; }> & { text?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; item?: PtValue | undefined; \"text:disabled\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"text:active\"?: PtValue | undefined; \"icon:active\"?: PtValue | undefined; \"item:active\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:active","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | undefined","required":false},{"name":"pt:item:active","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:text","type":"PtValue | undefined","required":false},{"name":"pt:text:active","type":"PtValue | undefined","required":false},{"name":"pt:text:disabled","type":"PtValue | undefined","required":false}],"events":[],"slots":[{"name":"append","type":"BbBreadcrumbsEdgeSlotProps","fields":["disabled?: boolean"],"description":"Content rendered after the breadcrumb list, in a dedicated append region."},{"name":"divider","type":"Record<string, never>","description":"Replaces the default separator rendered between breadcrumb items."},{"name":"ellipsis","type":"BbBreadcrumbsEllipsisSlotProps","fields":["props: { ref: (reference: unknown) => void; }","disabled?: boolean","overflowCount: number","ellipsisWidth: number"],"description":"Replaces the default `…` overflow button shown when items overflow."},{"name":"item:append","type":"BbBreadcrumbsItemSlotProps","fields":["disabled: boolean","index: number","item: Item","label?: string"],"description":"Content rendered after **every** breadcrumb item's link/button. Generic fallback below a per-item `<value>:append` slot and above the item's `append:icon`."},{"name":"item:prepend","type":"BbBreadcrumbsItemSlotProps","fields":["disabled: boolean","index: number","item: Item","label?: string"],"description":"Content rendered before **every** breadcrumb item's link/button, in the leading edge region. Generic fallback: a per-item `<value>:prepend` slot takes precedence, and the item's `prepend:icon` is used when neither slot is present."},{"name":"prepend","type":"BbBreadcrumbsEdgeSlotProps","fields":["disabled?: boolean"],"description":"Content rendered before the breadcrumb list, in a dedicated prepend region."},{"name":"<value>","type":"BbBreadcrumbsItemSlotProps","description":"One crumb's label, by its `value` through `slotKey`; falls back to `item.label`. A crumb folded into the overflow menu follows BbDropdown's slot rules instead (the same `#<value>` names).","dynamic":true},{"name":"<value>:prepend","type":"BbBreadcrumbsItemSlotProps","description":"The glyph before one crumb's label; beats `item:prepend`, which beats its `prepend:icon`.","dynamic":true},{"name":"<value>:append","type":"BbBreadcrumbsItemSlotProps","description":"The glyph after one crumb's label; beats `item:append`, which beats its `append:icon`.","dynamic":true}],"exposed":[],"models":[],"cssProps":[{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-breadcrumbs__ellipsis"}],"pt":{"parts":[{"name":"root","description":"The `<nav>`."},{"name":"item","description":"One crumb — a broadcast resolved per crumb; the overflow ellipsis crumb counts. The dividers are chrome, not a part."},{"name":"icon","description":"A crumb's `prepend:icon` / `append:icon` glyphs — a broadcast."},{"name":"text","description":"A crumb's label inside its link, without the glyphs beside it — a broadcast resolved per crumb, like `item`."}],"states":[{"name":"disabled","description":"Per node: a crumb that is disabled on its own; component-wide while the whole component is `disabled`."},{"name":"active","description":"Per node, on each crumb's `item` / `text` / `icon`: the current page — the last crumb, when it has no target (`href` / `to` / `onClick`)."}]},"tree":{"bindings":[{"part":"item","target":"li.bb-breadcrumbs__item"},{"part":"icon","target":"BbIcon"},{"part":"text","target":"span.bb-breadcrumbs__text"}],"nodes":[{"name":"BbBaseButton","kind":"public"},{"name":"BbDropdown","kind":"public"},{"name":"BbIcon","kind":"public"}]},"css":{"classes":{"bb-breadcrumbs":["","__breadcrumb","__container","__divider","__edge","__edge--append","__edge--prepend","__ellipsis","__item","__item--active","__item--compressed","__item-icon","__item-icon--append","__item-icon--prepend","__list","__text"]},"locals":["--bleed","--color-gray-200","--flex-basis","--flex-grow","--gap","--hit","--ring-t"],"surface":{"stable":[{"class":"bb-breadcrumbs","tag":"nav","part":"root","reads":["--flex-basis","--flex-grow"]},{"class":"bb-breadcrumbs__item","tag":"li","part":"item","reads":["--gap"]},{"class":"bb-breadcrumbs__text","tag":"span","part":"text","reads":["--gap"]},{"class":"bb-breadcrumbs__item--active","tag":"li","state":"active"}],"internal":[{"class":"bb-breadcrumbs__breadcrumb","tag":"BbBaseButton","reads":["--gap","--hit"]},{"class":"bb-breadcrumbs__container","tag":"div","reads":["--gap"]},{"class":"bb-breadcrumbs__divider","tag":"span"},{"class":"bb-breadcrumbs__edge","tag":"div"},{"class":"bb-breadcrumbs__edge--append","tag":"div"},{"class":"bb-breadcrumbs__edge--prepend","tag":"div"},{"class":"bb-breadcrumbs__ellipsis","tag":"button","reads":["--gap","--hit","--ring-t"]},{"class":"bb-breadcrumbs__item--compressed","tag":"li"},{"class":"bb-breadcrumbs__item-icon","tag":"BbIcon"},{"class":"bb-breadcrumbs__item-icon--append","tag":"BbIcon"},{"class":"bb-breadcrumbs__item-icon--prepend","tag":"BbIcon"},{"class":"bb-breadcrumbs__list","tag":"ol","reads":["--bleed","--gap","--hit"]}],"via":[{"part":"icon","component":"BbIcon"}],"unaligned":{"states":["disabled"]}}},"attrTargets":["nav"],"removed":[{"name":"items[].key","new":"items[].value","surface":"item","hint":"a crumb's identity, naming its `#<value>` slots; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-breadcrumbs.md","silent":true,"fix":{"kind":"rename"}},{"name":"items[].text","new":"items[].label","surface":"item","hint":"a crumb's text; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-breadcrumbs.md","silent":true,"fix":{"kind":"rename"}}]},
|
|
381
385
|
{"name":"BbButton","group":"Inputs","description":"Button with loading state, tooltip, and icon support.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbButton.md","source":"ai/source/BbButton.md","props":[{"name":"activeClass","type":"string | undefined","required":false,"description":"Class to apply when the link is active."},{"name":"append:icon","type":"string | undefined","required":false,"description":"Icon to be added on the right of the text."},{"name":"ariaCurrentValue","type":"\"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\" | undefined","required":false,"default":"'page'","description":"Value passed to the attribute `aria-current` when the link is exact active."},{"name":"async","type":"boolean | undefined","required":false,"default":"false","description":"Inertia: runs the visit without blocking — the page stays interactive and several async visits can be in flight at once."},{"name":"block","type":"boolean | undefined","required":false,"default":"undefined","description":"Displays the component as full width."},{"name":"cacheFor","type":"string | number | (string | number)[] | undefined","required":false,"description":"Inertia: how long a prefetched response stays fresh before it is re-fetched. A single duration, or `[staleAfter, expiresAfter]`.\n\nTyped platform-agnostically (matching BbButton) so the library's types never require `@inertiajs/vue3` to be installed."},{"name":"cacheTags","type":"string | string[] | undefined","required":false,"description":"Inertia: tags to file this visit's prefetch cache under, so a later request can invalidate the whole tagged group."},{"name":"component","type":"string | undefined","required":false,"description":"Inertia: the page component this visit resolves to. Rarely set by hand — the server normally decides it."},{"name":"data","type":"object | undefined","required":false,"description":"Request payload forwarded to Inertia when navigating via `href` in an Inertia-enabled app. Ignored when not using Inertia."},{"name":"disableAutoLoading","type":"boolean | undefined","required":false,"default":"`components.BbButton.disableAutoLoading`, else `false`","description":"Disables the spinners the button starts on its own (an async click handler's, a submit button's while its `BbForm` saves); only `loading` shows one then. Unset: the `components` map (a scope's, then the app's); `false` turns them back on here."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component: native `disabled` (or `aria-disabled` on a link), muted paint. Beside `loading`, loading wins the look (spinner and variant colours) and this only adds the native blocking — redundant but harmless."},{"name":"download","type":"string | boolean | undefined","required":false,"description":"Marks an `href` link as a download: renders a plain `<a download>` doing a native navigation (never an Inertia/router visit), so file downloads work. Pass a string for the suggested filename. A native-anchor signal alongside `target` and `external`."},{"name":"exactActiveClass","type":"string | undefined","required":false,"description":"Class to apply when the link is exact active."},{"name":"except","type":"string[] | undefined","required":false,"description":"Inertia: the inverse of `only` — properties to EXCLUDE from a partial reload. Pass one or the other, not both."},{"name":"external","type":"boolean | undefined","required":false,"default":"false","description":"Forces an `href` link to render as a plain `<a>` (native navigation), bypassing Inertia/router interception — same intent as Nuxt's `external`. A native-anchor signal alongside `target` and `download`."},{"name":"falseValue","type":"any","required":false,"default":"false","description":"Value emitted when the toggle is deactivated."},{"name":"group","type":"boolean | undefined","required":false,"default":"false","description":"Identifies the button as part of a button group: adjacent `group` buttons fuse into one segment (shared borders and radius). Adjacent `group` toggles (each with a `v-model`) are also one Tab stop, with ArrowLeft / ArrowRight / Home / End moving between them."},{"name":"headers","type":"object | undefined","required":false,"description":"Additional HTTP headers forwarded to Inertia when navigating via `href` in an Inertia-enabled app."},{"name":"href","type":"string | { url: string; method: \"get\" | \"post\" | \"put\" | \"patch\" | \"delete\"; } | undefined","required":false,"description":"The link target: renders an anchor (an Inertia `<Link>` under Inertia). Also takes Inertia's `{ url, method }`, a Wayfinder route: Inertia visits with its method; elsewhere the link is its `url`."},{"name":"icon","type":"string | undefined","required":false,"description":"Used when only an icon with no text should be displayed."},{"name":"instant","type":"boolean | undefined","required":false,"default":"false","description":"Inertia: navigate optimistically on click and reconcile when the response lands, instead of waiting for the round trip."},{"name":"interactiveWhileLoading","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the button clickable while it is loading. Buttons are disabled while loading by default; this escape hatch exists for toggles that must stay interactive (e.g. the dropdown-button caret)."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Triggers a loading indicator. A loading button is soft-disabled on its own (`aria-disabled`, out of the tab order, clicks and navigation blocked) and keeps its variant colours; with `disabled` set too, loading still wins the look."},{"name":"method","type":"\"get\" | \"post\" | \"put\" | \"patch\" | \"delete\" | undefined","required":false,"description":"HTTP method used for Inertia navigation when `href` is provided in an Inertia-enabled app. Ignored otherwise."},{"name":"modelValue","type":"any","required":false,"description":"Makes the button a toggle: clicking flips the model between `trueValue` and `falseValue`, and the button reports `aria-pressed`. Leave it unbound for a plain button."},{"name":"onBefore","type":"(() => void) | undefined","required":false,"description":"Lifecycle hook invoked by Inertia right before the request is sent."},{"name":"onCancel","type":"(() => void) | undefined","required":false,"description":"Lifecycle hook invoked by Inertia when a request is cancelled."},{"name":"onCancelToken","type":"((cancelToken: unknown) => void) | undefined","required":false,"description":"Receives the Inertia cancel token source when a request is initiated. Can be used to cancel the request.\n\nTyped platform-agnostically (matching BbButton) so the library's types never require `@inertiajs/vue3` to be installed."},{"name":"onError","type":"((errors: Record<string, string>) => void) | undefined","required":false,"description":"Inertia's hook for a VALIDATION error answer (the 422 path): the only failure callback `Link` accepts. `onHttpException` (5xx) and `onNetworkError` are `router.visit()` / `useForm()` options, never Link props."},{"name":"onFinish","type":"(() => void) | undefined","required":false,"description":"Lifecycle hook invoked by Inertia after the request has finished (regardless of success or error)."},{"name":"only","type":"string[] | undefined","required":false,"description":"Limits the properties that are preserved in Inertia partial reloads."},{"name":"onPrefetched","type":"(() => void) | undefined","required":false,"description":"Lifecycle hook invoked by Inertia when a prefetch for this link has completed and is cached."},{"name":"onPrefetching","type":"(() => void) | undefined","required":false,"description":"Lifecycle hook invoked by Inertia when a prefetch for this link starts."},{"name":"onProgress","type":"((progress: { percentage: number | undefined; }) => void) | undefined","required":false,"description":"Progress callback invoked by Inertia with the upload/download percentage when available."},{"name":"onStart","type":"(() => void) | undefined","required":false,"description":"Lifecycle hook invoked by Inertia when a request starts."},{"name":"onSuccess","type":"(() => void) | undefined","required":false,"description":"Lifecycle hook invoked by Inertia when a request succeeds."},{"name":"pageProps","type":"Record<string, unknown> | ((currentProps: Record<string, unknown>, sharedProps: Record<string, unknown>) => Record<string, unknown>) | null | undefined","required":false,"description":"Inertia: props to merge into the next page optimistically, before the server responds. Either an object or a function of the current props.\n\nTyped platform-agnostically (matching BbButton) so the library's types never require `@inertiajs/vue3` to be installed."},{"name":"prefetch","type":"string | boolean | string[] | undefined","required":false,"description":"Inertia: fetch and cache this link's page ahead of the click. `true` uses the default trigger; a string or list of strings picks them (`'mount'`, `'hover'`, `'click'`)."},{"name":"prepend:icon","type":"string | undefined","required":false,"description":"Icon to be added on the left of the text."},{"name":"preserveScroll","type":"boolean | ((props: Record<string, unknown>) => boolean) | undefined","required":false,"default":"false","description":"Controls whether Inertia should preserve the current scroll position after navigation. Can be a boolean or a predicate receiving the visit props."},{"name":"preserveState","type":"boolean | ((props: Record<string, unknown>) => boolean) | null | undefined","required":false,"default":"false","description":"Controls whether Inertia should preserve the current state after navigation. Can be a boolean or a predicate receiving the visit props."},{"name":"preserveUrl","type":"boolean | undefined","required":false,"default":"false","description":"Inertia: keep the current URL in the address bar even though the page content changes."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"icon\", \"spinner\", \"text\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"pressed\", \"disabled\", \"loading\"]; readonly wide: readonly [\"activeLink\", \"exactActiveLink\", \"pressed\", \"disabled\", \"loading\"]; readonly variant: { readonly names: readonly [\"primary\", \"outline\", \"secondary\", \"ghost\", \"destructive\", \"link\"]; readonly option: \"buttonVariants\"; }; }> & PtMap<BbButtonPtPart, \"link\" | \"outline\" | \"primary\" | \"destructive\" | \"activeLink\" | \"exactActiveLink\" | \"loading\" | \"secondary\" | \"disabled\" | \"pressed\" | \"ghost\">) | undefined","required":false,"description":"Passthrough, object form: `{ icon: '…', 'icon:loading': '…' }` — the same keys as the `pt:*` attributes without the prefix. Parts: `root`, `icon`, `spinner`, `text`. States: `loading`, `disabled`, `pressed`, and the registered variants (an app's own included)."},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:activeLink","type":"PtValue | undefined","required":false},{"name":"pt:icon:destructive","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:exactActiveLink","type":"PtValue | undefined","required":false},{"name":"pt:icon:ghost","type":"PtValue | undefined","required":false},{"name":"pt:icon:link","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:pressed","type":"PtValue | undefined","required":false},{"name":"pt:icon:primary","type":"PtValue | undefined","required":false},{"name":"pt:icon:secondary","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:activeLink","type":"PtValue | undefined","required":false},{"name":"pt:root:destructive","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:exactActiveLink","type":"PtValue | undefined","required":false},{"name":"pt:root:ghost","type":"PtValue | undefined","required":false},{"name":"pt:root:link","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:pressed","type":"PtValue | undefined","required":false},{"name":"pt:root:primary","type":"PtValue | undefined","required":false},{"name":"pt:root:secondary","type":"PtValue | undefined","required":false},{"name":"pt:spinner","type":"PtValue | undefined","required":false},{"name":"pt:spinner:activeLink","type":"PtValue | undefined","required":false},{"name":"pt:spinner:destructive","type":"PtValue | undefined","required":false},{"name":"pt:spinner:disabled","type":"PtValue | undefined","required":false},{"name":"pt:spinner:exactActiveLink","type":"PtValue | undefined","required":false},{"name":"pt:spinner:ghost","type":"PtValue | undefined","required":false},{"name":"pt:spinner:link","type":"PtValue | undefined","required":false},{"name":"pt:spinner:loading","type":"PtValue | undefined","required":false},{"name":"pt:spinner:outline","type":"PtValue | undefined","required":false},{"name":"pt:spinner:pressed","type":"PtValue | undefined","required":false},{"name":"pt:spinner:primary","type":"PtValue | undefined","required":false},{"name":"pt:spinner:secondary","type":"PtValue | undefined","required":false},{"name":"pt:text","type":"PtValue | undefined","required":false},{"name":"pt:text:activeLink","type":"PtValue | undefined","required":false},{"name":"pt:text:destructive","type":"PtValue | undefined","required":false},{"name":"pt:text:disabled","type":"PtValue | undefined","required":false},{"name":"pt:text:exactActiveLink","type":"PtValue | undefined","required":false},{"name":"pt:text:ghost","type":"PtValue | undefined","required":false},{"name":"pt:text:link","type":"PtValue | undefined","required":false},{"name":"pt:text:loading","type":"PtValue | undefined","required":false},{"name":"pt:text:outline","type":"PtValue | undefined","required":false},{"name":"pt:text:pressed","type":"PtValue | undefined","required":false},{"name":"pt:text:primary","type":"PtValue | undefined","required":false},{"name":"pt:text:secondary","type":"PtValue | undefined","required":false},{"name":"queryStringArrayFormat","type":"\"brackets\" | \"indices\" | undefined","required":false,"default":"'brackets'","description":"Format to use when serializing array values into the query string for Inertia requests."},{"name":"replace","type":"boolean | undefined","required":false,"default":"false","description":"Calls `router.replace` instead of `router.push`."},{"name":"size","type":"Responsive<Sizes> | undefined","required":false,"default":"`components.BbButton.size`, else `'md'`","description":"Sets the size of the button. A single value applies at every breakpoint; a per-breakpoint map (e.g. `{ default: 'sm', lg: 'md' }`) switches responsively. Purely CSS-driven — no runtime breakpoint watching. Unset: the `components` map (the nearest config scope's, then the app's)."},{"name":"tag","type":"ButtonTag | undefined","required":false,"default":"'button'","values":["button","div","span","label"],"description":"Element to render for the plain (non-link, non-router) button: `'button'` (default), `'div'`/`'span'` when nesting inside another button or link, or `'label'` for a file-upload trigger. Ignored when `href`/`to` make the button render as a link."},{"name":"target","type":"string | undefined","required":false,"description":"Sets or retrieves the window or frame at which to target content."},{"name":"text","type":"string | undefined","required":false,"description":"Text content of the component."},{"name":"to","type":"string | et | X | undefined","required":false,"description":"Route Location the link should navigate to when clicked on."},{"name":"trueValue","type":"any","required":false,"default":"true","description":"Value emitted when the toggle is activated."},{"name":"type","type":"\"button\" | \"reset\" | \"submit\" | undefined","required":false,"description":"Gets the classification and default behavior of the button."},{"name":"variant","type":"ButtonVariantType | undefined","required":false,"default":"`components.BbButton.variant`, else `'primary'`","values":["outline","primary","destructive","secondary","none","ghost","link"],"description":"Visual variant: colours and surface only, never spacing or size. `'none'` takes no look (you own hover, focus and disabled); register a real one with `components.BbButton.variants` and style `.bb-button--<name>`. Unset: the the `components` map (a scope's, then the app's)."},{"name":"viewTransition","type":"boolean | undefined","required":false,"default":"false","description":"Inertia: run the page swap inside a View Transition, where the browser supports one."}],"events":[{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the new value whenever `v-model` changes."}],"slots":[{"name":"append:icon","type":"BbButtonIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","pressed: boolean","loading: boolean","disabled: boolean"],"description":"The trailing icon, replacing `append:icon`; inside the `icon` part."},{"name":"default","type":"BbLinkSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean"],"description":"Primary content rendered inside the button. Falls back to the `text` prop when empty. A link's slot gets `{ activeLink, exactActiveLink }`: whether it points at the current page (both `false` on a button)."},{"name":"icon","type":"BbButtonIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","pressed: boolean","loading: boolean","disabled: boolean"],"description":"The icon of an icon-only button, replacing the `icon` prop. Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply."},{"name":"prepend:icon","type":"BbButtonIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","pressed: boolean","loading: boolean","disabled: boolean"],"description":"The leading icon, replacing `prepend:icon`; inside the `icon` part."}],"exposed":[{"name":"$el","type":"HTMLElement | undefined","description":"The rendered element."}],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--h-xs","value":"calc(var(--bb-control-h) - 12px)","selector":".bb-button","description":"── Scale tokens (height / icon / px / font-size) ─────── Heights and font sizes derive from the global scale knobs so retuning `--bb-control-h` / `--bb-fs` resizes the whole button scale coherently (md sits one step under the input height, lg matches it). The ladder is one block per size, six locals each, always the same six: `--h-*` min-height, `--icon-size-*` the icon/spinner box, `--px-*` the left and right padding, `--fs-*` font-size (which is also the line-height), `--r-*` border-radius, `--gap-*` the space between icon and label. Nothing paints from a `-<size>` local: the `.bb-button--<size>` class copies its block into the active `--h / --icon-size / --px / --fs / --r / --gap` below, and those are what the rules read. So retune a whole size here, or one button through the active six. Three places the ladder does not simply step: - radius is flat from md up (`--bb-radius`); only xs (`--bb-radius-sm`) and sm (0.8×) come off that value; - lg repeats md's icon size, font size, radius and gap — between those two sizes only height and padding grow; - 2xl repeats xl's gap. `--bw` and `--elev-tier` are size-dependent too but have no `-<size>` entries; the size classes assign them directly (xs and sm take the small border and shadow tiers, md and up the full ones)."},{"name":"--icon-size-xs","value":"12px","selector":".bb-button"},{"name":"--px-xs","value":"8px","selector":".bb-button"},{"name":"--fs-xs","value":"calc(var(--bb-fs) - 4px)","selector":".bb-button"},{"name":"--r-xs","value":"var(--bb-radius-sm)","selector":".bb-button"},{"name":"--gap-xs","value":"3px","selector":".bb-button"},{"name":"--h-sm","value":"calc(var(--bb-control-h) - 8px)","selector":".bb-button"},{"name":"--icon-size-sm","value":"14px","selector":".bb-button"},{"name":"--px-sm","value":"10px","selector":".bb-button"},{"name":"--fs-sm","value":"calc(var(--bb-fs) - 2px)","selector":".bb-button"},{"name":"--r-sm","value":"calc(var(--bb-radius) * 0.8)","selector":".bb-button"},{"name":"--gap-sm","value":"4px","selector":".bb-button"},{"name":"--h-md","value":"calc(var(--bb-control-h) - 4px)","selector":".bb-button"},{"name":"--icon-size-md","value":"16px","selector":".bb-button"},{"name":"--px-md","value":"12px","selector":".bb-button"},{"name":"--fs-md","value":"var(--bb-fs)","selector":".bb-button"},{"name":"--r-md","value":"var(--bb-radius)","selector":".bb-button"},{"name":"--gap-md","value":"5px","selector":".bb-button"},{"name":"--h-lg","value":"var(--bb-control-h)","selector":".bb-button"},{"name":"--icon-size-lg","value":"16px","selector":".bb-button"},{"name":"--px-lg","value":"14px","selector":".bb-button"},{"name":"--fs-lg","value":"var(--bb-fs)","selector":".bb-button"},{"name":"--r-lg","value":"var(--bb-radius)","selector":".bb-button"},{"name":"--gap-lg","value":"5px","selector":".bb-button"},{"name":"--h-xl","value":"calc(var(--bb-control-h) + 4px)","selector":".bb-button"},{"name":"--icon-size-xl","value":"20px","selector":".bb-button"},{"name":"--px-xl","value":"16px","selector":".bb-button"},{"name":"--fs-xl","value":"calc(var(--bb-fs) + 1px)","selector":".bb-button"},{"name":"--r-xl","value":"var(--bb-radius)","selector":".bb-button"},{"name":"--gap-xl","value":"6px","selector":".bb-button"},{"name":"--h-2xl","value":"calc(var(--bb-control-h) + 8px)","selector":".bb-button"},{"name":"--icon-size-2xl","value":"22px","selector":".bb-button"},{"name":"--px-2xl","value":"18px","selector":".bb-button"},{"name":"--fs-2xl","value":"calc(var(--bb-fs) + 2px)","selector":".bb-button"},{"name":"--r-2xl","value":"var(--bb-radius)","selector":".bb-button"},{"name":"--gap-2xl","value":"6px","selector":".bb-button"},{"name":"--h","value":"var(--h-md)","selector":".bb-button","description":"min-height, and the min-width of an icon-only button"},{"name":"--icon-size","value":"var(--icon-size-md)","selector":".bb-button","description":"every icon, and the spinner over it"},{"name":"--px","value":"var(--px-md)","selector":".bb-button","description":"left/right padding"},{"name":"--ipx","value":"calc(var(--px) * 0.65)","selector":".bb-button","description":"The padding on a side that carries an icon: a length of its own, 65% of --px by default (it follows a --px change)."},{"name":"--fs","value":"var(--fs-md)","selector":".bb-button","description":"font-size, and line-height"},{"name":"--r","value":"var(--r-md)","selector":".bb-button","description":"border-radius"},{"name":"--gap","value":"var(--gap-md)","selector":".bb-button","description":"between icon and label"},{"name":"--bg","value":"transparent","selector":".bb-button","description":"the plate"},{"name":"--bg-hover","value":"var(--bg)","selector":".bb-button","description":"also the focus-visible fill; no change by default"},{"name":"--bg-pressed","value":"var(--bg)","selector":".bb-button","description":"fill while pressed, or open (aria-expanded)"},{"name":"--fg","value":"initial","selector":".bb-button","description":"label and icons (icons paint currentColor)"},{"name":"--border-color","value":"transparent","selector":".bb-button","description":"the frame; its width is --bw"},{"name":"--ring-color","value":"transparent","selector":".bb-button","description":"focus ring colour, per variant"},{"name":"--ring-size","value":"var(--bb-ring-size)","selector":".bb-button","description":"focus ring width, outside the border"},{"name":"--bw","value":"var(--bb-border-w)","selector":".bb-button","description":"border width"},{"name":"--fg-hover","value":"var(--fg)","selector":".bb-button","description":"label and icons on hover (and focus-visible)"},{"name":"--border-hover","value":"var(--border-color)","selector":".bb-button","description":"the frame on hover (and focus-visible)"},{"name":"--fg-pressed","value":"var(--fg)","selector":".bb-button","description":"label and icons while pressed or open"},{"name":"--border-pressed","value":"var(--border-color)","selector":".bb-button","description":"the frame while pressed or open"},{"name":"--bg-disabled","value":"var(--bb-muted)","selector":".bb-button","description":"the plate while disabled (not loading)"},{"name":"--fg-disabled","value":"color-mix(in oklab, var(--bb-text) 45%, var(--bb-panel))","selector":".bb-button","description":"label and icons while disabled"},{"name":"--border-disabled","value":"var(--bb-muted)","selector":".bb-button","description":"the frame while disabled"},{"name":"--opacity-disabled","value":"1","selector":".bb-button","description":"whole-button opacity while disabled — `.5` with the three above set to the resting tokens gives \"fade instead of grey\""},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-button"},{"name":"--elev-tier","value":"var(--bb-elev)","selector":".bb-button","description":"the shadow a plate variant may take"},{"name":"--elev","value":"0 0 0 0 transparent","selector":".bb-button","description":"the shadow painted; flat variants keep this"}],"pt":{"parts":[{"name":"root","description":"The button element. The glyph size lives here: `--icon-size` on `pt:root` resizes the icon, the spinner and the gap between them together."},{"name":"icon","description":"Every content icon the button renders (`icon`, `prepend:icon`, `append:icon`) — a broadcast; at most two render together. For colour, opacity and attributes — size it through `--icon-size` on `root`, never a size utility here (it breaks the icon / spinner pair)."},{"name":"spinner","description":"The loading spinner, parked exactly over the icon. Like `icon`: colour and opacity here, size through `--icon-size` on `root`."},{"name":"text","description":"The label span. Typography inherits from `root`, so reach for `text` only when a class must apply to the label alone — `truncate` on a long label that must not clip the icons. It carries the margin the label slides by while the spinner is in, so a margin of your own fights the slide."}],"states":[{"name":"activeLink","description":"Component-wide: a link to the current page or one of its ancestors (`/users` on `/users/5`) — exactly when `activeClass` is on. The weakest state: `pressed`, `disabled` and `loading` win a conflict."},{"name":"exactActiveLink","description":"Component-wide: a link to the current page itself — exactly when `exactActiveClass` is on (`activeLink` is on too, so its entries apply first and these win)."},{"name":"pressed","description":"Component-wide: a toggle button (`v-model`) is on — `aria-pressed=\"true\"`, `--pressed` on the root."},{"name":"disabled","description":"Component-wide: the button is `disabled`."},{"name":"loading","description":"Component-wide: `loading` is on — the spinner shows and the button ignores the pointer."},{"name":"destructive","description":"Component-wide: `variant=\"destructive\"`. Keeps the red under a base `pt`: `pt:root:destructive`."},{"name":"ghost","description":"Component-wide: `variant=\"ghost\"`. Below the real states, like every variant."},{"name":"link","description":"Component-wide: `variant=\"link\"`. Below the real states, like every variant."},{"name":"outline","description":"Component-wide: `variant=\"outline\"`. Below the real states, like every variant."},{"name":"primary","description":"Component-wide: `variant=\"primary\"`. Merged after the part's base entry and before its states, so `disabled` / `loading` still win."},{"name":"secondary","description":"Component-wide: `variant=\"secondary\"`. Below the real states, like every variant."}]},"tree":{"bindings":[{"part":"root","target":"BbBaseButton"},{"part":"spinner","target":"BbSpinner"},{"part":"icon","target":"span.bb-button__icon"},{"part":"icon","target":"BbIcon"},{"part":"icon","target":"span.bb-button__prepend-icon"},{"part":"text","target":"span.bb-button__text"},{"part":"icon","target":"span.bb-button__append-icon"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"BbBaseButton","kind":"public"},{"name":"BbSpinner","kind":"public"}]},"css":{"classes":{"bb-button":["","--*","--2xl","--2xl-2xl","--2xl-lg","--2xl-md","--2xl-sm","--2xl-xl","--2xl-xs","--group","--icon","--lg","--lg-2xl","--lg-lg","--lg-md","--lg-sm","--lg-xl","--lg-xs","--link","--loading","--md","--md-2xl","--md-lg","--md-md","--md-sm","--md-xl","--md-xs","--pressed","--sm","--sm-2xl","--sm-lg","--sm-md","--sm-sm","--sm-xl","--sm-xs","--soft-disabled","--xl","--xl-2xl","--xl-lg","--xl-md","--xl-sm","--xl-xl","--xl-xs","--xs","__append-icon","__icon","__icon-slot","__loading-label","__prepend-icon","__spinner","__text"],"bb-button-spinner":[""],"bb-button-spinner-enter-from":[""],"bb-button-spinner-leave-to":[""]},"locals":["--bg","--bg-disabled","--bg-hover","--bg-pressed","--border-color","--border-disabled","--border-hover","--border-pressed","--bw","--color-gray-200","--elev","--elev-tier","--fg","--fg-disabled","--fg-hover","--fg-pressed","--fs","--fs-2xl","--fs-lg","--fs-md","--fs-sm","--fs-xl","--fs-xs","--gap","--gap-2xl","--gap-lg","--gap-md","--gap-sm","--gap-xl","--gap-xs","--h","--h-2xl","--h-lg","--h-md","--h-sm","--h-xl","--h-xs","--icon-size","--icon-size-2xl","--icon-size-lg","--icon-size-md","--icon-size-sm","--icon-size-xl","--icon-size-xs","--ipx","--opacity-disabled","--px","--px-2xl","--px-lg","--px-md","--px-sm","--px-xl","--px-xs","--py","--r","--r-2xl","--r-lg","--r-md","--r-sm","--r-xl","--r-xs","--ring-color","--ring-size","--ring-t","--tap-b","--tap-e","--tap-s","--underline"],"surface":{"stable":[{"class":"bb-button","part":"root","reads":["--bg","--bg-disabled","--bg-hover","--bg-pressed","--border-color","--border-disabled","--border-hover","--border-pressed","--bw","--elev","--fg","--fg-disabled","--fg-hover","--fg-pressed","--fs","--fs-2xl","--fs-lg","--fs-md","--fs-sm","--fs-xl","--fs-xs","--gap","--gap-2xl","--gap-lg","--gap-md","--gap-sm","--gap-xl","--gap-xs","--h","--h-2xl","--h-lg","--h-md","--h-sm","--h-xl","--h-xs","--icon-size-2xl","--icon-size-lg","--icon-size-md","--icon-size-sm","--icon-size-xl","--icon-size-xs","--ipx","--opacity-disabled","--px","--px-2xl","--px-lg","--px-md","--px-sm","--px-xl","--px-xs","--py","--r","--r-2xl","--r-lg","--r-md","--r-sm","--r-xl","--r-xs","--ring-color","--ring-size","--ring-t","--tap-b","--tap-e","--tap-s"]},{"class":"bb-button__icon","tag":"BbIcon|span","part":"icon","reads":["--icon-size"]},{"class":"bb-button__spinner","tag":"BbSpinner","part":"spinner"},{"class":"bb-button__text","tag":"span","part":"text","reads":["--gap","--icon-size"]},{"class":"bb-button--pressed","state":"pressed"},{"class":"bb-button--loading","state":"loading","reads":["--bg-disabled","--border-disabled","--fg-disabled","--opacity-disabled"]},{"class":"bb-button--destructive","state":"destructive","pattern":true},{"class":"bb-button--ghost","state":"ghost","pattern":true},{"class":"bb-button--link","state":"link","reads":["--underline"]},{"class":"bb-button--outline","state":"outline","pattern":true},{"class":"bb-button--primary","state":"primary","pattern":true},{"class":"bb-button--secondary","state":"secondary","pattern":true}],"internal":[{"class":"bb-button--2xl","reads":["--fs-2xl","--gap-2xl","--h-2xl","--icon-size-2xl","--px-2xl","--r-2xl"]},{"class":"bb-button--2xl-2xl","reads":["--fs-2xl","--gap-2xl","--h-2xl"]},{"class":"bb-button--2xl-lg","reads":["--fs-lg","--gap-lg","--h-lg"]},{"class":"bb-button--2xl-md","reads":["--fs-md","--gap-md","--h-md"]},{"class":"bb-button--2xl-sm","reads":["--fs-sm","--gap-sm","--h-sm"]},{"class":"bb-button--2xl-xl","reads":["--fs-xl","--gap-xl","--h-xl"]},{"class":"bb-button--2xl-xs","reads":["--fs-xs","--gap-xs","--h-xs"]},{"class":"bb-button--group","reads":["--bw"]},{"class":"bb-button--icon","reads":["--h"]},{"class":"bb-button--lg","reads":["--fs-lg","--gap-lg","--h-lg","--icon-size-lg","--px-lg","--r-lg"]},{"class":"bb-button--lg-2xl","reads":["--fs-2xl","--gap-2xl","--h-2xl"]},{"class":"bb-button--lg-lg","reads":["--fs-lg","--gap-lg","--h-lg"]},{"class":"bb-button--lg-md","reads":["--fs-md","--gap-md","--h-md"]},{"class":"bb-button--lg-sm","reads":["--fs-sm","--gap-sm","--h-sm"]},{"class":"bb-button--lg-xl","reads":["--fs-xl","--gap-xl","--h-xl"]},{"class":"bb-button--lg-xs","reads":["--fs-xs","--gap-xs","--h-xs"]},{"class":"bb-button--md","reads":["--fs-md","--gap-md","--h-md","--icon-size-md","--px-md","--r-md"]},{"class":"bb-button--md-2xl","reads":["--fs-2xl","--gap-2xl","--h-2xl"]},{"class":"bb-button--md-lg","reads":["--fs-lg","--gap-lg","--h-lg"]},{"class":"bb-button--md-md","reads":["--fs-md","--gap-md","--h-md"]},{"class":"bb-button--md-sm","reads":["--fs-sm","--gap-sm","--h-sm"]},{"class":"bb-button--md-xl","reads":["--fs-xl","--gap-xl","--h-xl"]},{"class":"bb-button--md-xs","reads":["--fs-xs","--gap-xs","--h-xs"]},{"class":"bb-button--sm","reads":["--fs-sm","--gap-sm","--h-sm","--icon-size-sm","--px-sm","--r-sm"]},{"class":"bb-button--sm-2xl","reads":["--fs-2xl","--gap-2xl","--h-2xl"]},{"class":"bb-button--sm-lg","reads":["--fs-lg","--gap-lg","--h-lg"]},{"class":"bb-button--sm-md","reads":["--fs-md","--gap-md","--h-md"]},{"class":"bb-button--sm-sm","reads":["--fs-sm","--gap-sm","--h-sm"]},{"class":"bb-button--sm-xl","reads":["--fs-xl","--gap-xl","--h-xl"]},{"class":"bb-button--sm-xs","reads":["--fs-xs","--gap-xs","--h-xs"]},{"class":"bb-button--soft-disabled"},{"class":"bb-button--xl","reads":["--fs-xl","--gap-xl","--h-xl","--icon-size-xl","--px-xl","--r-xl"]},{"class":"bb-button--xl-2xl","reads":["--fs-2xl","--gap-2xl","--h-2xl"]},{"class":"bb-button--xl-lg","reads":["--fs-lg","--gap-lg","--h-lg"]},{"class":"bb-button--xl-md","reads":["--fs-md","--gap-md","--h-md"]},{"class":"bb-button--xl-sm","reads":["--fs-sm","--gap-sm","--h-sm"]},{"class":"bb-button--xl-xl","reads":["--fs-xl","--gap-xl","--h-xl"]},{"class":"bb-button--xl-xs","reads":["--fs-xs","--gap-xs","--h-xs"]},{"class":"bb-button--xs","reads":["--fs-xs","--gap-xs","--h-xs","--icon-size-xs","--px-xs","--r-xs"]},{"class":"bb-button-spinner"},{"class":"bb-button-spinner-enter-from"},{"class":"bb-button-spinner-leave-to"},{"class":"bb-button__append-icon","tag":"BbIcon|span","reads":["--icon-size","--ipx"]},{"class":"bb-button__icon-slot","tag":"span"},{"class":"bb-button__loading-label","tag":"span"},{"class":"bb-button__prepend-icon","tag":"BbIcon|span","reads":["--icon-size","--ipx"]}],"unaligned":{"states":["activeLink","exactActiveLink","disabled"]}}},"attrTargets":["button","a","label"],"config":"variant, size, disableAutoLoading, block*, variants","removed":[{"name":"enabledWhileLoading","new":"interactiveWhileLoading","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-button.md","silent":true,"fix":{"kind":"rename"}},{"name":"theme","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-button.md","silent":true,"fix":{"kind":"manual"}},{"name":"tooltip","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-button.md","silent":true,"fix":{"kind":"manual"}},{"name":"tooltipPlacement","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-button.md","silent":true,"fix":{"kind":"manual"}},{"name":"tooltipTimeout","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-button.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"enabledWhileLoading","to":"interactiveWhileLoading","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-button.md","fix":{"kind":"rename"}}]},
|
|
382
386
|
{"name":"BbCalendar","group":"Inputs","description":"A calendar in place — the month grid (or month / year grid, or day grid plus time rail) with no popover and no field chrome; v-model of a day, range, set, month, year or datetime.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbCalendar.md","source":"ai/source/BbCalendar.md","props":[{"name":"activeSegment","type":"BbCalendarSegment | undefined","required":false,"values":["start","end"],"description":"Which end the time rail edits in range + `type=\"datetime\"` (`v-model:active-segment`). Standalone use manages this internally; an embedding host (the date input) drives it from its focused field. Ignored outside range + datetime."},{"name":"ampm","type":"boolean | undefined","required":false,"default":"false","description":"12-hour display with an AM/PM column (requires `type=\"datetime\"`); emits stay 24h."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables every cell, the navigation and the time rail."},{"name":"firstDayOfWeek","type":"0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined","required":false,"default":"the locale's week start","description":"First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for `it`, `de`, `fr`, `en-gb`…, Sunday for bare `en` (US) and `pt` (Brazil). Ignored under `type=\"week\"`: ISO weeks run Monday to Sunday, so a week grid always starts on Monday."},{"name":"floating","type":"boolean | undefined","required":false,"default":"false","description":"Emit plain calendar strings instead of zoned ISO instants. Implied (and forced) by `type=\"week\"`, `type=\"month\"` and `type=\"year\"`."},{"name":"max","type":"string | undefined","required":false,"description":"Maximum selectable value, in this `type`'s shape (as `min`). A finer bound is ceiled to the unit, with a warning. With `datetime`, on its own day the time rail disables the times after it."},{"name":"min","type":"string | undefined","required":false,"description":"Minimum selectable value in this `type`'s shape (`YYYY-MM-DD`, `…THH:mm` with `datetime`, `YYYY-MM` / `YYYY` with `month` / `year`; a week or a date with `week`, whole weeks only). A finer bound is floored to the unit, with a warning. With `datetime` the rail disables the earlier times on its day."},{"name":"modelValue","type":"string | string[] | null","required":true,"description":"v-model: `null` when empty, a string, a `[start, end]` pair with `range`, or a sorted array with `multiple`. The string is `YYYY-MM-DD` when `floating` (`YYYY-Www` / `YYYY-MM` / `YYYY` for `week` / `month` / `year`), otherwise a zoned ISO instant (carrying the time under `datetime`)."},{"name":"multiple","type":"boolean","required":false,"description":"Multi-selection: each pick toggles a value in a sorted array (days, weeks, months or years). Needs an array `modelValue` (`[]` when empty, never `null`). Throws with `range` or `type=\"datetime\"`.","default":"false"},{"name":"numberOfMonths","type":"number | undefined","required":false,"default":"1","description":"How many months show side by side (day grids only). The keyboard crosses from one month into the next, and the arrows page all of them at once. Too narrow for them all, the months wrap onto the next row."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"header\", \"arrow\", \"month\", \"year\", \"cellColumnHeader\", \"week\", \"weekNumber\", \"day\", \"dayButton\", \"monthItem\", \"yearItem\", \"item\"]; readonly states: readonly [\"outside\", \"today\", \"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"disabled\", \"active\", \"highlighted\"]; readonly wide: readonly [\"disabled\"]; readonly node: { readonly week: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\"]; readonly weekNumber: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\"]; readonly day: readonly [\"outside\", \"today\", \"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly dayButton: readonly [\"outside\", \"today\", \"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly monthItem: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly yearItem: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly month: readonly [\"active\"]; readonly year: readonly [\"active\"]; readonly item: readonly [\"selected\"]; }; }> & { header?: PtValue | undefined; root?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; item?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; arrow?: PtValue | undefined; month?: PtValue | undefined; year?: PtValue | undefined; cellColumnHeader?: PtValue | undefined; week?: PtValue | undefined; weekNumber?: PtValue | undefined; day?: PtValue | undefined; dayButton?: PtValue | undefined; monthItem?: PtValue | undefined; yearItem?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"arrow:disabled\"?: PtValue | undefined; \"month:disabled\"?: PtValue | undefined; \"year:disabled\"?: PtValue | undefined; \"cellColumnHeader:disabled\"?: PtValue | undefined; \"week:disabled\"?: PtValue | undefined; \"weekNumber:disabled\"?: PtValue | undefined; \"day:disabled\"?: PtValue | undefined; \"dayButton:disabled\"?: PtValue | undefined; \"monthItem:disabled\"?: PtValue | undefined; \"yearItem:disabled\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"month:active\"?: PtValue | undefined; \"year:active\"?: PtValue | undefined; \"week:inRange\"?: PtValue | undefined; \"week:selected\"?: PtValue | undefined; \"week:rangeStart\"?: PtValue | undefined; \"week:rangeEnd\"?: PtValue | undefined; \"weekNumber:inRange\"?: PtValue | undefined; \"weekNumber:selected\"?: PtValue | undefined; \"weekNumber:rangeStart\"?: PtValue | undefined; \"weekNumber:rangeEnd\"?: PtValue | undefined; \"day:outside\"?: PtValue | undefined; \"day:today\"?: PtValue | undefined; \"day:inRange\"?: PtValue | undefined; \"day:selected\"?: PtValue | undefined; \"day:rangeStart\"?: PtValue | undefined; \"day:rangeEnd\"?: PtValue | undefined; \"day:highlighted\"?: PtValue | undefined; \"dayButton:outside\"?: PtValue | undefined; \"dayButton:today\"?: PtValue | undefined; \"dayButton:inRange\"?: PtValue | undefined; \"dayButton:selected\"?: PtValue | undefined; \"dayButton:rangeStart\"?: PtValue | undefined; \"dayButton:rangeEnd\"?: PtValue | undefined; \"dayButton:highlighted\"?: PtValue | undefined; \"monthItem:inRange\"?: PtValue | undefined; \"monthItem:selected\"?: PtValue | undefined; \"monthItem:rangeStart\"?: PtValue | undefined; \"monthItem:rangeEnd\"?: PtValue | undefined; \"monthItem:highlighted\"?: PtValue | undefined; \"yearItem:inRange\"?: PtValue | undefined; \"yearItem:selected\"?: PtValue | undefined; \"yearItem:rangeStart\"?: PtValue | undefined; \"yearItem:rangeEnd\"?: PtValue | undefined; \"yearItem:highlighted\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:arrow","type":"PtValue | undefined","required":false},{"name":"pt:arrow:disabled","type":"PtValue | undefined","required":false},{"name":"pt:cellColumnHeader","type":"PtValue | undefined","required":false},{"name":"pt:cellColumnHeader:disabled","type":"PtValue | undefined","required":false},{"name":"pt:day","type":"PtValue | undefined","required":false},{"name":"pt:day:disabled","type":"PtValue | undefined","required":false},{"name":"pt:day:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:day:inRange","type":"PtValue | undefined","required":false},{"name":"pt:day:outside","type":"PtValue | undefined","required":false},{"name":"pt:day:rangeEnd","type":"PtValue | undefined","required":false},{"name":"pt:day:rangeStart","type":"PtValue | undefined","required":false},{"name":"pt:day:selected","type":"PtValue | undefined","required":false},{"name":"pt:day:today","type":"PtValue | undefined","required":false},{"name":"pt:dayButton","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:disabled","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:inRange","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:outside","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:rangeEnd","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:rangeStart","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:selected","type":"PtValue | undefined","required":false},{"name":"pt:dayButton:today","type":"PtValue | undefined","required":false},{"name":"pt:header","type":"PtValue | undefined","required":false},{"name":"pt:header:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:selected","type":"PtValue | undefined","required":false},{"name":"pt:month","type":"PtValue | undefined","required":false},{"name":"pt:month:active","type":"PtValue | undefined","required":false},{"name":"pt:month:disabled","type":"PtValue | undefined","required":false},{"name":"pt:monthItem","type":"PtValue | undefined","required":false},{"name":"pt:monthItem:disabled","type":"PtValue | undefined","required":false},{"name":"pt:monthItem:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:monthItem:inRange","type":"PtValue | undefined","required":false},{"name":"pt:monthItem:rangeEnd","type":"PtValue | undefined","required":false},{"name":"pt:monthItem:rangeStart","type":"PtValue | undefined","required":false},{"name":"pt:monthItem:selected","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:week","type":"PtValue | undefined","required":false},{"name":"pt:week:disabled","type":"PtValue | undefined","required":false},{"name":"pt:week:inRange","type":"PtValue | undefined","required":false},{"name":"pt:week:rangeEnd","type":"PtValue | undefined","required":false},{"name":"pt:week:rangeStart","type":"PtValue | undefined","required":false},{"name":"pt:week:selected","type":"PtValue | undefined","required":false},{"name":"pt:weekNumber","type":"PtValue | undefined","required":false},{"name":"pt:weekNumber:disabled","type":"PtValue | undefined","required":false},{"name":"pt:weekNumber:inRange","type":"PtValue | undefined","required":false},{"name":"pt:weekNumber:rangeEnd","type":"PtValue | undefined","required":false},{"name":"pt:weekNumber:rangeStart","type":"PtValue | undefined","required":false},{"name":"pt:weekNumber:selected","type":"PtValue | undefined","required":false},{"name":"pt:year","type":"PtValue | undefined","required":false},{"name":"pt:year:active","type":"PtValue | undefined","required":false},{"name":"pt:year:disabled","type":"PtValue | undefined","required":false},{"name":"pt:yearItem","type":"PtValue | undefined","required":false},{"name":"pt:yearItem:disabled","type":"PtValue | undefined","required":false},{"name":"pt:yearItem:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:yearItem:inRange","type":"PtValue | undefined","required":false},{"name":"pt:yearItem:rangeEnd","type":"PtValue | undefined","required":false},{"name":"pt:yearItem:rangeStart","type":"PtValue | undefined","required":false},{"name":"pt:yearItem:selected","type":"PtValue | undefined","required":false},{"name":"range","type":"boolean","required":false,"description":"Enables range selection (`[start, end]`).","default":"false"},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Shows the calendar and lets the user page through it, but no pick changes the value."},{"name":"seconds","type":"boolean | undefined","required":false,"default":"false","description":"Adds the seconds column (requires `type=\"datetime\"`)."},{"name":"selectable","type":"((date: string) => boolean) | undefined","required":false,"description":"Predicate invoked per candidate; return `false` to disable it. Receives the value in this `type`'s shape — `YYYY-Www` under `week` (so a week is enabled or disabled whole), `YYYY-MM` under `month`, `YYYY` under `year`."},{"name":"step","type":"number | undefined","required":false,"default":"1","description":"Minute-column granularity and arrow stepping (requires `type=\"datetime\"`)."},{"name":"time","type":"string | string[] | null | undefined","required":false,"description":"Companion time model (`v-model:time`), 24-hour `HH:mm` / `HH:mm:ss`. With `floating` it is the only carrier of the time; otherwise it mirrors the time inside `modelValue`. Requires `type=\"datetime\"`."},{"name":"type","type":"DatePickerType | undefined","required":false,"default":"\"date\"","values":["date","month","year","week","datetime"],"description":"What the calendar selects and emits: `date` (a day), `datetime` (a day plus a time rail), `week` (an ISO week, `YYYY-Www`: any day picks its row), `month` (`YYYY-MM`) or `year` (`YYYY`). `week` / `month` / `year` force `floating`, ignore `utc`, and leave the time props inert."},{"name":"utc","type":"boolean | undefined","required":false,"default":"false","description":"Emit UTC (`...Z`) instead of the local offset. Ignored with `floating`, and therefore with `type=\"week\"`/`type=\"month\"`/`type=\"year\"`."}],"events":[{"name":"grid-pick","signature":"(value: string | string[] | null): void","description":"Relay of the raw grid pick, before this component combines it with the time. An embedding host binds this to run its own value engine (the date picker closes on it once the selection is complete); clean consumers ignore it and use `update:modelValue`."},{"name":"time-pick","signature":"(payload: { unit: TimeUnit; value: string; }): void","description":"Relay of the raw time-rail pick. An embedding host binds this to run its own value engine; clean consumers ignore it and use `update:time`."},{"name":"update:activeSegment","signature":"(value: BbCalendarSegment): void","description":"The active range end changed (range + `type=\"datetime\"` only)."},{"name":"update:modelValue","signature":"(value: string | string[] | null): void","description":"Emitted when the selected value changes: a string (single), `[start, end]` (range), a sorted array (multiple). Empty is `null` for a single value and `[]` for a range or multiple, never `null`."},{"name":"update:time","signature":"(value: string | string[] | null): void","description":"Companion time model, alongside every change while `type=\"datetime\"`."}],"slots":[{"name":"day","type":"BbCalendarDaySlotProps","fields":["first: boolean","item: string","label: string","last: boolean","middle: boolean","outside: boolean","selected: boolean"],"description":"Replaces the day button label inside each calendar day."},{"name":"day:append","type":"BbCalendarDaySlotProps","fields":["first: boolean","item: string","label: string","last: boolean","middle: boolean","outside: boolean","selected: boolean"],"description":"Appends content below each calendar day."},{"name":"<YYYY-MM-DD>","type":"BbCalendarDaySlotProps","description":"One date's button label (e.g. `#2024-03-15`: the local `YYYY-MM-DD`, which `slotKey` leaves as it is); beats `day`. Day grid only.","dynamic":true},{"name":"<YYYY-MM-DD>:append","type":"BbCalendarDaySlotProps","description":"Content under one date's cell; beats `day:append`.","dynamic":true}],"exposed":[],"models":[{"name":"activeSegment","type":"BbCalendarSegment | undefined"},{"name":"modelValue","type":"string | string[] | null"},{"name":"time","type":"string | string[] | null | undefined"}],"cssProps":[{"name":"--bg","value":"var(--bb-panel)","selector":".bb-calendar__button-menu"},{"name":"--cell","value":"28px","selector":".bb-calendar","description":"Cell size drives all grid math: 224px ÷ 7 = 32px exactly"},{"name":"--px","value":"6px","selector":".bb-calendar"},{"name":"--py","value":"8px","selector":".bb-calendar"},{"name":"--nav-button-h","value":"24px","selector":".bb-calendar"},{"name":"--unit-row","value":"calc(var(--cell) * 1.25)","selector":".bb-calendar","description":"Row pitch for the coarse grids (month/year), where a \"row\" is one of four month rows rather than a week. Roomier than --cell because twelve months in a 4×3 grid have space the 6×7 day grid does not."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-calendar__arrow"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-calendar__heading-btn"},{"name":"--wk","value":"calc(var(--cell) * 0.6)","selector":".bb-calendar--week","description":"Two tabular digits at 11px, with air: the column holds numbers only."}],"pt":{"parts":[{"name":"root","description":"The calendar's box: the grid and, with `type=\"datetime\"`, the time rail beside it. A consumer `class` lands here. It carries the sizing tokens — `pt:root=\"[--cell:36px]\"` widens the whole calendar, `pt:root=\"[--px:2px]\"` tightens its padding — and the grid's width follows."},{"name":"header","description":"The navigation bar: the previous / next arrows and the month / year headings. With `number-of-months`, every month's header row (the later ones caption their month)."},{"name":"arrow","description":"The previous / next buttons — a broadcast."},{"name":"month","description":"The month heading button; it opens the month panel."},{"name":"year","description":"The year heading button; it opens the year panel."},{"name":"cellColumnHeader","description":"Each weekday letter above the grid — a broadcast."},{"name":"week","description":"One row of seven days with `type=\"week\"` — the band a picked week paints and the hover outline. A broadcast resolved per row."},{"name":"weekNumber","description":"The ISO week number heading each row with `type=\"week\"` — a broadcast resolved per row."},{"name":"day","description":"One whole day cell — a broadcast resolved per day. A background here paints the full cell square; restyle the round mark on `dayButton`."},{"name":"dayButton","description":"The button inside a day cell — the mark that shows selection. A broadcast resolved per day."},{"name":"monthItem","description":"One month button of the month panel (the home grid of `type=\"month\"`) — a broadcast resolved per month."},{"name":"yearItem","description":"One year button of the year list — a broadcast resolved per year."},{"name":"item","description":"One entry of the time rail's columns (hour, minute, second, AM / PM) with `type=\"datetime\"` — a broadcast resolved per entry, as on `BbTimePicker`. With the rail, `header` also lands on its readout and `cellColumnHeader` on its column letters (`HH`, `MM`)."}],"states":[{"name":"outside","description":"Per node, on `day` / `dayButton`: a day of the previous or next month, shown to fill the grid."},{"name":"today","description":"Per node, on `day` / `dayButton`: today."},{"name":"inRange","description":"Per node, on the cells (`day`, `dayButton`, `monthItem`, `yearItem`) and the week rows (`week`, `weekNumber`): inside a committed range, between its ends."},{"name":"selected","description":"Per node, on the cells: a chosen day, month or year; on `week` / `weekNumber`, a chosen week (a range's ends too, as on its days); on `item`, the picked time's entry in each column."},{"name":"rangeStart","description":"Per node, on the cells and the week rows: a committed range's first day, week, month or year."},{"name":"rangeEnd","description":"Per node, on the cells and the week rows: a committed range's last day, week, month or year."},{"name":"disabled","description":"Component-wide while the calendar is `disabled`. Also per node: on the cells, one outside `min` / `max` or refused by `selectable`; on `arrow`, at a bound or while the month / year panel is open; on `year`, while the year panel cannot open; on `item`, a time entry outside the bound's time on the day `min` / `max` falls on."},{"name":"active","description":"Per node, on `month` / `year`: its panel is open."},{"name":"highlighted","description":"Per node, on the cells: the keyboard cursor."}]},"tree":{"bindings":[{"part":"header","target":"div.bb-calendar__header"},{"part":"arrow","target":"BbBaseButton"},{"part":"month","target":"BbBaseButton"},{"part":"year","target":"BbBaseButton"},{"part":"week","target":"div.bb-calendar__week"},{"part":"weekNumber","target":"div.bb-calendar__week-number"},{"part":"day","target":"div.bb-calendar__day"},{"part":"dayButton","target":"button.bb-calendar__day-button"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"BbBaseButton","kind":"public"},{"name":"CommonTimeSelector","kind":"internal","vocabulary":"BbCalendar","bindings":[{"part":"header","target":"div.bb-time-selector__header"},{"part":"cellColumnHeader","target":"div.bb-time-selector__cell-column-header"},{"part":"item","target":"BbBaseButton"}],"cssProps":[{"name":"--time-row-h","documented":false,"readBy":["bb-time-selector__item","bb-time-selector__scroll"]},{"name":"--time-col-w","documented":false,"readBy":["bb-time-selector__column"]},{"name":"--time-mark","documented":true,"readBy":["bb-time-selector__item"]}],"children":[{"name":"BbBaseButton","kind":"public"}]},{"name":"ScaleFade","kind":"internal"},{"name":"Slide","kind":"internal"},{"name":"CalendarMonthPanel","kind":"internal","children":[{"name":"BbBaseButton","kind":"public"}]},{"name":"CalendarYearPanel","kind":"internal","children":[{"name":"BbBaseButton","kind":"public"}]}]},"css":{"classes":{"bb-calendar":["","--ampm","--datetime","--disabled","--months","--seconds","--week","__arrow","__arrow-spacer","__body","__button-menu","__button-menu--terminal","__caption","__cell-column-header","__content","__day","__day--disabled","__day--first","__day--highlighted","__day--last","__day--middle","__day--outside","__day--preview","__day--preview-end","__day--preview-start","__day--selected","__day--today","__day-append","__day-button","__days-selector","__days-selector--hidden","__grid","__grid--unit-*","__header","__header-container","__heading-btn","__heading-btn--active","__menu-btn","__menu-btn--first","__menu-btn--highlighted","__menu-btn--last","__menu-btn--middle","__menu-btn--preview","__menu-btn--selected","__menu-grid","__menu-row","__month","__month-grid","__month-item","__month-selector","__nav-center","__pane","__pane--idle","__panes","__week","__week--disabled","__week--in-range","__week--preview","__week--preview-end","__week--range-end","__week--range-start","__week--selected","__week-number","__week-number-header","__year","__year-item","__year-selector"]},"locals":["--bg","--cell","--color-gray-200","--hit","--natural-w","--nav-button-h","--px","--py","--rail-w","--ring-t","--time-row-h","--unit-row","--wk"],"surface":{"stable":[{"class":"bb-calendar","tag":"div","part":"root","reads":["--cell"]},{"class":"bb-calendar__header","tag":"div","part":"header"},{"class":"bb-calendar__arrow","tag":"BbBaseButton","part":"arrow","reads":["--hit","--nav-button-h","--ring-t"]},{"class":"bb-calendar__month","tag":"BbBaseButton","part":"month"},{"class":"bb-calendar__year","tag":"BbBaseButton","part":"year"},{"class":"bb-calendar__cell-column-header","tag":"div","part":"cellColumnHeader"},{"class":"bb-calendar__week","tag":"div","part":"week","reads":["--cell","--wk"]},{"class":"bb-calendar__week-number","tag":"div","part":"weekNumber","reads":["--cell","--wk"]},{"class":"bb-calendar__day","tag":"div","part":"day","reads":["--cell"]},{"class":"bb-calendar__day-button","tag":"button","part":"dayButton","reads":["--cell","--ring-t"]},{"class":"bb-calendar__month-item","tag":"BbBaseButton","part":"monthItem"},{"class":"bb-calendar__year-item","tag":"BbBaseButton","part":"yearItem"},{"class":"bb-calendar__day--outside","tag":"div","state":"outside"},{"class":"bb-calendar__day--today","tag":"div","state":"today"},{"class":"bb-calendar__week--in-range","state":"inRange"},{"class":"bb-calendar__day--selected","tag":"div","state":"selected"},{"class":"bb-calendar__menu-btn--selected","tag":"BbBaseButton","state":"selected"},{"class":"bb-calendar__week--selected","state":"selected"},{"class":"bb-calendar__week--range-start","state":"rangeStart"},{"class":"bb-calendar__week--range-end","state":"rangeEnd"},{"class":"bb-calendar--disabled","tag":"div","state":"disabled"},{"class":"bb-calendar__day--disabled","tag":"div","state":"disabled"},{"class":"bb-calendar__week--disabled","state":"disabled"},{"class":"bb-calendar__heading-btn--active","tag":"BbBaseButton","state":"active"},{"class":"bb-calendar__day--highlighted","tag":"div","state":"highlighted"},{"class":"bb-calendar__menu-btn--highlighted","tag":"BbBaseButton","state":"highlighted"}],"internal":[{"class":"bb-calendar--ampm","tag":"div"},{"class":"bb-calendar--datetime","tag":"div","reads":["--rail-w"]},{"class":"bb-calendar--months","tag":"div","reads":["--cell","--natural-w","--px","--rail-w"]},{"class":"bb-calendar--seconds","tag":"div"},{"class":"bb-calendar--week","tag":"div","reads":["--cell"]},{"class":"bb-calendar__arrow-spacer","tag":"span","reads":["--nav-button-h"]},{"class":"bb-calendar__body","tag":"div","reads":["--px","--py"]},{"class":"bb-calendar__button-menu","tag":"div","reads":["--bg"]},{"class":"bb-calendar__button-menu--terminal","tag":"div"},{"class":"bb-calendar__caption","tag":"span"},{"class":"bb-calendar__content","tag":"div","reads":["--unit-row"]},{"class":"bb-calendar__day--first","tag":"div"},{"class":"bb-calendar__day--last","tag":"div"},{"class":"bb-calendar__day--middle","tag":"div"},{"class":"bb-calendar__day--preview","tag":"div"},{"class":"bb-calendar__day--preview-end","tag":"div"},{"class":"bb-calendar__day--preview-start","tag":"div"},{"class":"bb-calendar__day-append","tag":"div"},{"class":"bb-calendar__days-selector","tag":"div"},{"class":"bb-calendar__days-selector--hidden","tag":"div"},{"class":"bb-calendar__grid","tag":"div","reads":["--cell","--px","--wk"]},{"class":"bb-calendar__header-container","tag":"div"},{"class":"bb-calendar__heading-btn","tag":"BbBaseButton","reads":["--hit","--ring-t"]},{"class":"bb-calendar__menu-btn","tag":"BbBaseButton","reads":["--cell","--ring-t","--unit-row"]},{"class":"bb-calendar__menu-btn--first","tag":"BbBaseButton"},{"class":"bb-calendar__menu-btn--last","tag":"BbBaseButton"},{"class":"bb-calendar__menu-btn--middle","tag":"BbBaseButton"},{"class":"bb-calendar__menu-btn--preview","tag":"BbBaseButton"},{"class":"bb-calendar__menu-grid","tag":"div","reads":["--unit-row"]},{"class":"bb-calendar__menu-row","tag":"div"},{"class":"bb-calendar__month-grid","tag":"div"},{"class":"bb-calendar__month-selector","tag":"div"},{"class":"bb-calendar__nav-center","tag":"div"},{"class":"bb-calendar__pane","tag":"div","reads":["--cell","--wk"]},{"class":"bb-calendar__pane--idle","tag":"div"},{"class":"bb-calendar__panes","tag":"div","reads":["--px","--py"]},{"class":"bb-calendar__week--preview","reads":["--cell"]},{"class":"bb-calendar__week--preview-end"},{"class":"bb-calendar__week-number-header","tag":"div","reads":["--wk"]},{"class":"bb-calendar__year-selector","tag":"div"}],"via":[{"part":"item","component":"BbBaseButton"}]}},"attrTargets":["div"],"removed":[{"name":"pt:columnHeader","new":"pt:cellColumnHeader","surface":"pt","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"append:day","new":"day:append","surface":"slot","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"append:<x>","new":"<x>:append","surface":"slot","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"pt:columnHeader","to":"pt:cellColumnHeader","surface":"pt","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"append:day","to":"day:append","surface":"slot","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"append:<x>","to":"<x>:append","surface":"slot","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}}]},
|
|
383
|
-
{"name":"BbCarousel","group":"Data Display","description":"Slides moved by swipe, arrows and dots.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbCarousel.md","source":"ai/source/BbCarousel.md","props":[{"name":"align","type":"\"start\" | \"center\" | undefined","required":false,"default":"`undefined` (the local's own default: `start`)","description":"Where the current slide sits: `start` (the column's start edge) or `center` (the middle, neighbours peeking on both sides). Sets the `--align` local; leave it out to set the local yourself, never both (`bitboss-ui/carousel-prop-or-local`)."},{"name":"autoplay","type":"number | boolean | undefined","required":false,"default":"false","description":"Advance on a timer, in ms (`true` = 5000). Pauses while hovered, while focus is inside and with the pause button; never runs under `prefers-reduced-motion`."},{"name":"bleed","type":"boolean | undefined","required":false,"default":"`undefined` (no bleed)","description":"Lets the slides run past the carousel to the page edge, while they still snap to and size from the carousel (`--bleed: auto`). Leave it out to set the `--bleed` locals yourself (a length, one side, per breakpoint); never both (`bitboss-ui/carousel-prop-or-local`)."},{"name":"items","type":"number | readonly T[] | undefined","required":false,"default":"undefined","description":"The slides as data, rendered through the `slide` slot (`item` is the entry; with a number, that many slides and `item` is the index). Without the slot, an image URL or a `{ src, alt }` entry renders as a cover image. Without `items`, each default-slot child is a slide."},{"name":"label","type":"string | undefined","required":false,"default":"undefined","description":"The carousel's accessible name. Default: the locale's \"Carousel\"."},{"name":"loop","type":"boolean | undefined","required":false,"default":"false","description":"An endless run: buttons, keys, autoplay, a swipe and a mouse drag all carry on past the last slide into the first (and back), with no rewind."},{"name":"modelValue","type":"number | undefined","required":false,"default":"0","description":"The current slide, 0-based, never clamped to a scroll position: the view shows the page that holds it. Out of range, it is brought back and written back. The current slide: any slide, 0 to the last. The view shows the page that holds it; a value out of range is brought back in and written back."},{"name":"perView","type":"number | undefined","required":false,"default":"`undefined` (the local's own default: 1)","description":"Slides in view; a fraction shows a peek of the next (`1.2`). Sets the `--per-view` local. Leave it out to set the local yourself, for instance per breakpoint (`class=\"[--per-view:1.2] md:[--per-view:3]\"`); never both (`bitboss-ui/carousel-prop-or-local`)."},{"name":"picker","type":"boolean | undefined","required":false,"default":"false","description":"A strip that picks the current slide, typically thumbnails under a big photo on the same `v-model` (also dates, colour swatches): it steps one slide at a time (arrows, keys), follows the current one, keeping it in the middle slot with the ends clamped, and a swipe only browses."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"slide\", \"image\", \"overlay\", \"prev\", \"next\", \"dots\", \"dot\", \"pause\"]; readonly states: readonly [\"current\", \"disabled\", \"active\"]; readonly wide: readonly []; readonly node: { readonly slide: readonly [\"active\", \"current\"]; readonly dot: readonly [\"active\"]; readonly prev: readonly [\"disabled\"]; readonly next: readonly [\"disabled\"]; }; }> & { image?: PtValue | undefined; pause?: PtValue | undefined; next?: PtValue | undefined; root?: PtValue | undefined; slide?: PtValue | undefined; overlay?: PtValue | undefined; prev?: PtValue | undefined; dots?: PtValue | undefined; dot?: PtValue | undefined; \"slide:active\"?: PtValue | undefined; \"dot:active\"?: PtValue | undefined; \"slide:current\"?: PtValue | undefined; \"next:disabled\"?: PtValue | undefined; \"prev:disabled\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix."},{"name":"pt:dot","type":"PtValue | undefined","required":false},{"name":"pt:dot:active","type":"PtValue | undefined","required":false},{"name":"pt:dots","type":"PtValue | undefined","required":false},{"name":"pt:image","type":"PtValue | undefined","required":false},{"name":"pt:next","type":"PtValue | undefined","required":false},{"name":"pt:next:disabled","type":"PtValue | undefined","required":false},{"name":"pt:overlay","type":"PtValue | undefined","required":false},{"name":"pt:pause","type":"PtValue | undefined","required":false},{"name":"pt:prev","type":"PtValue | undefined","required":false},{"name":"pt:prev:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:slide","type":"PtValue | undefined","required":false},{"name":"pt:slide:active","type":"PtValue | undefined","required":false},{"name":"pt:slide:current","type":"PtValue | undefined","required":false}],"events":[{"name":"update:modelValue","signature":"(value: number): void","description":"Emitted with the new value whenever `v-model` changes."}],"slots":[{"name":"default","type":"any","description":"The slides: one per child."},{"name":"overlay","type":"BbCarouselSlotProps<T | undefined>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"A layer on top of each slide (any kind), moving with it: captions, badges, glyphs, buttons."},{"name":"slide","type":"BbCarouselSlotProps<T>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"One slide's content, from `items` (replaces the built-in image)."},{"name":"slide:footer","type":"BbCarouselSlotProps<T | undefined>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"Below each slide's content, inside the slide (any kind of slide): a caption, a price, a link."},{"name":"slide:header","type":"BbCarouselSlotProps<T | undefined>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"Above each slide's content, inside the slide (any kind of slide; the built-in image keeps its lazy loading, sizes and crop): a kicker, a title."}],"exposed":[],"models":[{"name":"modelValue","type":"number | undefined"}],"cssProps":[{"name":"--per-view","value":"1","selector":".bb-carousel"},{"name":"--gap","value":"16px","selector":".bb-carousel"},{"name":"--r","value":"var(--bb-radius)","selector":".bb-carousel"},{"name":"--ratio","value":"16 / 9","selector":".bb-carousel"},{"name":"--dot","value":"rgb(255 255 255 / 0.8)","selector":".bb-carousel"},{"name":"--dot-active","value":"rgb(255 255 255)","selector":".bb-carousel"},{"name":"--speed","value":"300ms","selector":".bb-carousel"},{"name":"--align","value":"start","selector":".bb-carousel"},{"name":"--py","value":"0px","selector":".bb-carousel","description":"Room above and below the slides inside the track (see the track)."},{"name":"--bleed","value":"0px","selector":".bb-carousel"},{"name":"--bleed-start","value":"var(--bleed)","selector":".bb-carousel"},{"name":"--bleed-end","value":"var(--bleed)","selector":".bb-carousel"},{"name":"--_bs","value":"var(--_bleed-start, var(--bleed-start))","selector":".bb-carousel","description":"The resolved bleed per side (the measured `auto`, or the length): read by the track and, when bled, by the arrows."},{"name":"--_be","value":"var(--_bleed-end, var(--bleed-end))","selector":".bb-carousel"},{"name":"--arrow","value":"clamp( 28px, (100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view) * 0.09, 44px )","selector":".bb-carousel","description":"The controls scale with ONE SLIDE: a wide hero gets big arrows, a row of narrow cards small ones, at the same carousel width. A percentage, not `cqi`: they are absolutely positioned, so `100%` is the root's width. A size container (`container-type: inline-size`) would collapse a carousel that takes its width from its content (a centred flex column, Storybook's own canvas) to 0. Read where it is used, so only in a `width` (never a `height`: there `%` is the root's height)."},{"name":"--inset","value":"12px","selector":".bb-carousel"},{"name":"--_tr","value":"var(--r)","selector":".bb-carousel__track","description":"Rounded too: a slide half out of view is cut by the track's edge, and a square edge there would square its corners mid-swipe."},{"name":"--_dots-band","value":"24px","selector":".bb-carousel--dots-below"},{"name":"--dot","value":"var(--bb-text-muted)","selector":".bb-carousel--dots-below"},{"name":"--dot-active","value":"var(--bb-text)","selector":".bb-carousel--dots-below"}],"pt":{"parts":[{"name":"root","description":"The carousel region (`aria-roledescription=\"carousel\"`). Its locals size the slides: `--per-view` (slides in view, default `1`) and `--gap` (between slides, default `16px`). Set them per breakpoint with utilities (`class=\"md:[--per-view:2]\"`). `--bleed` (`auto` or a length; per side `--bleed-start` / `--bleed-end`) lets the slides run past the root to the page edge while they still snap to the root's edge. `--speed` (default `300ms`) is how long a move takes. The root also carries what looks like the strip's own styling: a background behind the slides, a border or a shadow around them, the corners (`--r`)."},{"name":"slide","description":"One slide (`aria-roledescription=\"slide\"`, \"3 of 8\")."},{"name":"image","description":"The image an image-URL entry of `items`, or an entry with a `src` or a `srcset`, renders without a `slide` slot. Its crop is the root's `--ratio` local (default `16 / 9`), or the root's height when it has one. The track (the scroller between the root and the slides) is deliberately NOT a part: its gap, overflow, snapping and padding are the carousel's geometry (the slide widths, the snap points and the bleed are computed from the same values), so a class there breaks the carousel, and the root already covers every look a consumer needs. Weigh any change that would expose it, or add to what it does, against that."},{"name":"overlay","description":"The layer the `overlay` slot renders on top of each slide: the slide's size, empty by default, letting taps through where it has no content."},{"name":"prev","description":"The previous-slide button."},{"name":"next","description":"The next-slide button."},{"name":"dots","description":"The row of dot buttons."},{"name":"dot","description":"One dot (one per page)."},{"name":"pause","description":"The autoplay pause / play button (only with `autoplay`), first in the dots' row."}],"states":[{"name":"current","description":"Per node, on `slide`: the current slide (the `v-model`)."},{"name":"disabled","description":"Per node, on `prev` / `next`: the button at an end without `loop`."},{"name":"active","description":"Per node, on `slide` / `dot`: a slide in view (a fractional peek and, with `--bleed`, the slides outside the root are not), live while a swipe runs; the current page's dot."}]},"tree":{"bindings":[{"part":"dots","target":"div.bb-carousel__dots"},{"part":"pause","target":"button.bb-carousel__pause"},{"part":"dot","target":"button.bb-carousel__dot"},{"part":"prev","target":"button.bb-carousel__arrow"},{"part":"next","target":"button.bb-carousel__arrow"},{"part":"slide","target":"div.bb-carousel__slide"},{"part":"image","target":"img.bb-carousel__image"},{"part":"overlay","target":"div.bb-carousel__overlay"}],"nodes":[{"name":"BbIcon","kind":"public"}]},"css":{"classes":{"bb-carousel":["","--autoplay","--bleed","--centred","--dots-below","--draggable","--dragging","--framed","--loop","--py","__arrow","__dot","__dot--active","__dot--far","__dot--near","__dot-list","__dots","__dots--window","__image","__next","__overlay","__pause","__prev","__slide","__slide--active","__slide--clone","__slide--current","__slide--page","__track"]},"locals":["--arrow","--bleed","--bleed-end","--bleed-start","--c","--color-gray-200","--d","--dot","--dot-active","--gap","--hit","--inset","--m","--per-view","--py","--r","--ratio","--start"],"surface":{"stable":[{"class":"bb-carousel","tag":"section","part":"root","reads":["--_bleed-end","--_bleed-start","--bleed","--bleed-end","--bleed-start","--gap","--per-view"]},{"class":"bb-carousel__slide","tag":"div","part":"slide","reads":["--gap","--per-view"]},{"class":"bb-carousel__image","tag":"img","part":"image","reads":["--r","--ratio"]},{"class":"bb-carousel__overlay","tag":"div","part":"overlay","reads":["--r"]},{"class":"bb-carousel__prev","tag":"button","part":"prev","reads":["--_bs","--inset"]},{"class":"bb-carousel__next","tag":"button","part":"next","reads":["--_be","--inset"]},{"class":"bb-carousel__dots","tag":"div","part":"dots","reads":["--inset"]},{"class":"bb-carousel__dot","tag":"button","part":"dot","reads":["--dot","--dot-active","--hit","--start"]},{"class":"bb-carousel__pause","tag":"button","part":"pause","reads":["--dot-active","--hit"]},{"class":"bb-carousel__slide--current","tag":"div","state":"current"},{"class":"bb-carousel__dot--active","tag":"button","state":"active","reads":["--dot-active"]},{"class":"bb-carousel__slide--active","tag":"div","state":"active"}],"internal":[{"class":"bb-carousel--autoplay","tag":"section"},{"class":"bb-carousel--bleed","tag":"section"},{"class":"bb-carousel--centred","tag":"section"},{"class":"bb-carousel--dots-below","tag":"section","reads":["--_dots-band"]},{"class":"bb-carousel--draggable","tag":"section"},{"class":"bb-carousel--dragging"},{"class":"bb-carousel--framed","tag":"section"},{"class":"bb-carousel--loop","tag":"section"},{"class":"bb-carousel--py","tag":"section"},{"class":"bb-carousel__arrow","tag":"button","reads":["--_dots-band","--arrow","--hit"]},{"class":"bb-carousel__dot--far"},{"class":"bb-carousel__dot--near"},{"class":"bb-carousel__dot-list","tag":"div"},{"class":"bb-carousel__dots--window","tag":"div"},{"class":"bb-carousel__slide--clone","tag":"div"},{"class":"bb-carousel__slide--page","tag":"div"},{"class":"bb-carousel__track","tag":"div","reads":["--_be","--_bs","--_cp","--_tr","--c","--d","--gap","--m","--py","--r"]}],"unaligned":{"states":["disabled"]}}},"attrTargets":["section"]},
|
|
387
|
+
{"name":"BbCarousel","group":"Data Display","description":"Slides moved by swipe, arrows and dots.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbCarousel.md","source":"ai/source/BbCarousel.md","props":[{"name":"align","type":"\"start\" | \"center\" | undefined","required":false,"default":"`undefined` (the local's own default: `start`)","description":"Where the current slide sits: `start` (the column's start edge) or `center` (the middle, neighbours peeking on both sides). Sets the `--align` local; leave it out to set the local yourself, never both (`bitboss-ui/carousel-prop-or-local`)."},{"name":"autoplay","type":"number | boolean | undefined","required":false,"default":"false","description":"Advance on a timer, in ms (`true` = 5000). Pauses while hovered, while focus is inside and with the pause button; never runs under `prefers-reduced-motion`."},{"name":"bleed","type":"boolean | undefined","required":false,"default":"`undefined` (no bleed)","description":"Lets the slides run past the carousel to the page edge, while they still snap to and size from the carousel (`--bleed: auto`). Leave it out to set the `--bleed` locals yourself (a length, one side, per breakpoint); never both (`bitboss-ui/carousel-prop-or-local`)."},{"name":"items","type":"number | readonly T[] | undefined","required":false,"default":"undefined","description":"The slides as data, rendered through the `slide` slot (`item` is the entry; with a number, that many slides and `item` is the index). Without the slot, an image URL or a `{ src, alt }` entry renders as a cover image. Without `items`, each default-slot child is a slide."},{"name":"label","type":"string | undefined","required":false,"default":"undefined","description":"The carousel's accessible name. Default: the locale's \"Carousel\"."},{"name":"loop","type":"boolean | undefined","required":false,"default":"false","description":"An endless run: buttons, keys, autoplay, a swipe and a mouse drag all carry on past the last slide into the first (and back), with no rewind."},{"name":"modelValue","type":"number | undefined","required":false,"default":"0","description":"The current slide, 0-based, never clamped to a scroll position: the view shows the page that holds it. Out of range, it is brought back and written back. The current slide: any slide, 0 to the last. The view shows the page that holds it; a value out of range is brought back in and written back."},{"name":"perView","type":"number | undefined","required":false,"default":"`undefined` (the local's own default: 1)","description":"Slides in view; a fraction shows a peek of the next (`1.2`). Sets the `--per-view` local. Leave it out to set the local yourself, for instance per breakpoint (`class=\"[--per-view:1.2] md:[--per-view:3]\"`); never both (`bitboss-ui/carousel-prop-or-local`)."},{"name":"picker","type":"boolean | undefined","required":false,"default":"false","description":"A strip that picks the current slide (thumbnails under a big photo on the same `v-model`): steps one at a time, keeps the current one in the middle slot, a swipe only browses. Its arrows and dots stay hidden (`pt` brings them back); without a `slide` slot each built-in image is a button."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"slide\", \"image\", \"thumb\", \"overlay\", \"prev\", \"next\", \"dots\", \"dot\", \"pause\"]; readonly states: readonly [\"current\", \"disabled\", \"active\"]; readonly wide: readonly []; readonly node: { readonly slide: readonly [\"active\", \"current\"]; readonly dot: readonly [\"active\"]; readonly prev: readonly [\"disabled\"]; readonly next: readonly [\"disabled\"]; }; }> & { image?: PtValue | undefined; pause?: PtValue | undefined; next?: PtValue | undefined; root?: PtValue | undefined; slide?: PtValue | undefined; thumb?: PtValue | undefined; overlay?: PtValue | undefined; prev?: PtValue | undefined; dots?: PtValue | undefined; dot?: PtValue | undefined; \"slide:active\"?: PtValue | undefined; \"dot:active\"?: PtValue | undefined; \"slide:current\"?: PtValue | undefined; \"next:disabled\"?: PtValue | undefined; \"prev:disabled\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix."},{"name":"pt:dot","type":"PtValue | undefined","required":false},{"name":"pt:dot:active","type":"PtValue | undefined","required":false},{"name":"pt:dots","type":"PtValue | undefined","required":false},{"name":"pt:image","type":"PtValue | undefined","required":false},{"name":"pt:next","type":"PtValue | undefined","required":false},{"name":"pt:next:disabled","type":"PtValue | undefined","required":false},{"name":"pt:overlay","type":"PtValue | undefined","required":false},{"name":"pt:pause","type":"PtValue | undefined","required":false},{"name":"pt:prev","type":"PtValue | undefined","required":false},{"name":"pt:prev:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:slide","type":"PtValue | undefined","required":false},{"name":"pt:slide:active","type":"PtValue | undefined","required":false},{"name":"pt:slide:current","type":"PtValue | undefined","required":false},{"name":"pt:thumb","type":"PtValue | undefined","required":false}],"events":[{"name":"update:modelValue","signature":"(value: number): void","description":"Emitted with the new value whenever `v-model` changes."}],"slots":[{"name":"default","type":"any","description":"The slides: one per child."},{"name":"overlay","type":"BbCarouselSlotProps<T | undefined>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"A layer on top of each slide (any kind), moving with it: captions, badges, glyphs, buttons."},{"name":"slide","type":"BbCarouselSlotProps<T>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"One slide's content, from `items` (replaces the built-in image)."},{"name":"slide:footer","type":"BbCarouselSlotProps<T | undefined>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"Below each slide's content, inside the slide (any kind of slide): a caption, a price, a link."},{"name":"slide:header","type":"BbCarouselSlotProps<T | undefined>","fields":["item: T","index: number","active: boolean","current: boolean"],"description":"Above each slide's content, inside the slide (any kind of slide; the built-in image keeps its lazy loading, sizes and crop): a kicker, a title."}],"exposed":[],"models":[{"name":"modelValue","type":"number | undefined"}],"cssProps":[{"name":"--per-view","value":"1","selector":".bb-carousel"},{"name":"--gap","value":"16px","selector":".bb-carousel"},{"name":"--r","value":"var(--bb-radius)","selector":".bb-carousel"},{"name":"--ratio","value":"16 / 9","selector":".bb-carousel"},{"name":"--dot","value":"rgb(255 255 255 / 0.8)","selector":".bb-carousel"},{"name":"--dot-active","value":"rgb(255 255 255)","selector":".bb-carousel"},{"name":"--speed","value":"300ms","selector":".bb-carousel"},{"name":"--align","value":"start","selector":".bb-carousel"},{"name":"--py","value":"0px","selector":".bb-carousel","description":"Room above and below the slides inside the track (see the track)."},{"name":"--bleed","value":"0px","selector":".bb-carousel"},{"name":"--bleed-start","value":"var(--bleed)","selector":".bb-carousel"},{"name":"--bleed-end","value":"var(--bleed)","selector":".bb-carousel"},{"name":"--_bs","value":"var(--_bleed-start, var(--bleed-start))","selector":".bb-carousel","description":"The resolved bleed per side (the measured `auto`, or the length): read by the track and, when bled, by the arrows."},{"name":"--_be","value":"var(--_bleed-end, var(--bleed-end))","selector":".bb-carousel"},{"name":"--arrow","value":"clamp( 28px, (100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view) * 0.09, 44px )","selector":".bb-carousel","description":"The controls scale with ONE SLIDE: a wide hero gets big arrows, a row of narrow cards small ones, at the same carousel width. A percentage, not `cqi`: they are absolutely positioned, so `100%` is the root's width. A size container (`container-type: inline-size`) would collapse a carousel that takes its width from its content (a centred flex column, Storybook's own canvas) to 0. Read where it is used, so only in a `width` (never a `height`: there `%` is the root's height)."},{"name":"--inset","value":"12px","selector":".bb-carousel"},{"name":"--_tr","value":"var(--r)","selector":".bb-carousel__track","description":"Rounded too: a slide half out of view is cut by the track's edge, and a square edge there would square its corners mid-swipe."},{"name":"--_dots-band","value":"24px","selector":".bb-carousel--dots-below"},{"name":"--dot","value":"var(--bb-text-muted)","selector":".bb-carousel--dots-below"},{"name":"--dot-active","value":"var(--bb-text)","selector":".bb-carousel--dots-below"}],"pt":{"parts":[{"name":"root","description":"The carousel region (`aria-roledescription=\"carousel\"`). Its locals size the slides: `--per-view` (slides in view, default `1`) and `--gap` (between slides, default `16px`). Set them per breakpoint with utilities (`class=\"md:[--per-view:2]\"`). `--bleed` (`auto` or a length; per side `--bleed-start` / `--bleed-end`) lets the slides run past the root to the page edge while they still snap to the root's edge. `--speed` (default `300ms`) is how long a move takes. The root also carries what looks like the strip's own styling: a background behind the slides, a border or a shadow around them, the corners (`--r`)."},{"name":"slide","description":"One slide (`aria-roledescription=\"slide\"`, \"3 of 8\")."},{"name":"image","description":"The image an image-URL entry of `items`, or an entry with a `src` or a `srcset`, renders without a `slide` slot. Its crop is the root's `--ratio` local (default `16 / 9`), or the root's height when it has one. The track (the scroller between the root and the slides) is deliberately NOT a part: its gap, overflow, snapping and padding are the carousel's geometry (the slide widths, the snap points and the bleed are computed from the same values), so a class there breaks the carousel, and the root already covers every look a consumer needs. Weigh any change that would expose it, or add to what it does, against that."},{"name":"thumb","description":"The button a `picker` wraps each built-in image in (never around `slide` slot content): named by the image's `alt`, else the go-to-slide text, with the current slide's carrying `aria-current`. Only with `picker`."},{"name":"overlay","description":"The layer the `overlay` slot renders on top of each slide: the slide's size, empty by default, letting taps through where it has no content."},{"name":"prev","description":"The previous-slide button."},{"name":"next","description":"The next-slide button."},{"name":"dots","description":"The row of dot buttons."},{"name":"dot","description":"One dot (one per page)."},{"name":"pause","description":"The autoplay pause / play button (only with `autoplay`), first in the dots' row."}],"states":[{"name":"current","description":"Per node, on `slide`: the current slide (the `v-model`)."},{"name":"disabled","description":"Per node, on `prev` / `next`: the button at an end without `loop`."},{"name":"active","description":"Per node, on `slide` / `dot`: a slide in view (a fractional peek and, with `--bleed`, the slides outside the root are not), live while a swipe runs; the current page's dot."}]},"tree":{"bindings":[{"part":"dots","target":"div.bb-carousel__dots"},{"part":"pause","target":"button.bb-carousel__pause"},{"part":"dot","target":"button.bb-carousel__dot"},{"part":"prev","target":"button.bb-carousel__arrow"},{"part":"next","target":"button.bb-carousel__arrow"},{"part":"slide","target":"div.bb-carousel__slide"},{"part":"thumb","target":"button.bb-carousel__thumb"},{"part":"image","target":"img.bb-carousel__image"},{"part":"overlay","target":"div.bb-carousel__overlay"}],"nodes":[{"name":"BbIcon","kind":"public"}]},"css":{"classes":{"bb-carousel":["","--autoplay","--bleed","--centred","--dots-below","--draggable","--dragging","--framed","--loop","--picker","--py","__arrow","__dot","__dot--active","__dot--far","__dot--near","__dot-list","__dots","__dots--window","__image","__next","__overlay","__pause","__prev","__slide","__slide--active","__slide--clone","__slide--current","__slide--page","__thumb","__track"]},"locals":["--arrow","--bleed","--bleed-end","--bleed-start","--c","--color-gray-200","--d","--dot","--dot-active","--gap","--hit","--inset","--m","--mark","--mark-bg","--per-view","--py","--r","--ratio","--start"],"surface":{"stable":[{"class":"bb-carousel","tag":"section","part":"root","reads":["--_bleed-end","--_bleed-start","--bleed","--bleed-end","--bleed-start","--gap","--per-view"]},{"class":"bb-carousel__slide","tag":"div","part":"slide","reads":["--gap","--per-view"]},{"class":"bb-carousel__image","tag":"img","part":"image","reads":["--r","--ratio"]},{"class":"bb-carousel__thumb","tag":"button","part":"thumb","reads":["--mark","--mark-bg","--r"]},{"class":"bb-carousel__overlay","tag":"div","part":"overlay","reads":["--r"]},{"class":"bb-carousel__prev","tag":"button","part":"prev","reads":["--_bs","--inset"]},{"class":"bb-carousel__next","tag":"button","part":"next","reads":["--_be","--inset"]},{"class":"bb-carousel__dots","tag":"div","part":"dots","reads":["--inset"]},{"class":"bb-carousel__dot","tag":"button","part":"dot","reads":["--dot","--dot-active","--hit","--start"]},{"class":"bb-carousel__pause","tag":"button","part":"pause","reads":["--dot-active","--hit"]},{"class":"bb-carousel__slide--current","tag":"div","state":"current"},{"class":"bb-carousel__dot--active","tag":"button","state":"active","reads":["--dot-active"]},{"class":"bb-carousel__slide--active","tag":"div","state":"active"}],"internal":[{"class":"bb-carousel--autoplay","tag":"section"},{"class":"bb-carousel--bleed","tag":"section"},{"class":"bb-carousel--centred","tag":"section"},{"class":"bb-carousel--dots-below","tag":"section","reads":["--_dots-band"]},{"class":"bb-carousel--draggable","tag":"section"},{"class":"bb-carousel--dragging"},{"class":"bb-carousel--framed","tag":"section"},{"class":"bb-carousel--loop","tag":"section"},{"class":"bb-carousel--picker","tag":"section"},{"class":"bb-carousel--py","tag":"section"},{"class":"bb-carousel__arrow","tag":"button","reads":["--_dots-band","--arrow","--hit"]},{"class":"bb-carousel__dot--far"},{"class":"bb-carousel__dot--near"},{"class":"bb-carousel__dot-list","tag":"div"},{"class":"bb-carousel__dots--window","tag":"div"},{"class":"bb-carousel__slide--clone","tag":"div"},{"class":"bb-carousel__slide--page","tag":"div"},{"class":"bb-carousel__track","tag":"div","reads":["--_be","--_bs","--_cp","--_tr","--c","--d","--gap","--m","--py","--r"]}],"unaligned":{"states":["disabled"]}}},"attrTargets":["section"]},
|
|
384
388
|
{"name":"BbCheckbox","group":"Selection","description":"Toggles a single boolean option.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbCheckbox.md","source":"ai/source/BbCheckbox.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"checked","type":"boolean | undefined","required":false,"default":"undefined","description":"Defines the input as checked."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact field's label gap with the `-compact` token, not the base one. The same meaning as on the checkbox, radio and switch groups."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"falseValue","type":"any","required":false,"description":"Value of the input when unchecked. It handles any kind of serializable object."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"indeterminate","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in an indeterminate state."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"default":"'auto'","description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be any serializable type."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"icon\"]; readonly states: readonly [\"checked\", \"indeterminate\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\"]; readonly wide: readonly [\"checked\", \"indeterminate\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\"]; }> & PtMap<TogglePtPart, CheckablePtState>) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:checked","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:focused","type":"PtValue | undefined","required":false},{"name":"pt:description:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:description:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:checked","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:focused","type":"PtValue | undefined","required":false},{"name":"pt:hint:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:hint:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:checked","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:focused","type":"PtValue | undefined","required":false},{"name":"pt:message:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:message:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:checked","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:focused","type":"PtValue | undefined","required":false},{"name":"pt:root:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:root:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"false","description":"Reverses the layout: in every direction the order of the label and the input is swapped from the standard arrangement."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"submitWhenFalse","type":"boolean | undefined","required":false,"default":"false","description":"Will submit \"falseValue\" if the input is not checked. Otherwise \"trueValue\" will be submitted."},{"name":"trueValue","type":"any","required":false,"description":"Value of the input when checked. It handles any kind of serializable object."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the native input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the checkbox checked state changes. Forwards the original DOM `Event` from the input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when the input receives a click interaction. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the native input gains focus. Forwards the original DOM `FocusEvent`."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from the checkbox input. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on the input. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over the input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over the input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted on checked-state changes with the effective model value:\n- `trueValue` when checked\n- `falseValue` when unchecked"}],"slots":[{"name":"description","type":"BbCheckboxDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"icon","type":"BbCheckboxIconSlotProps","fields":["checked: boolean","disabled: boolean","indeterminate?: boolean","falseValue: any","focused: boolean","focusVisible: boolean","hasErrors: boolean","hasWarnings: boolean","id: string","name: string","parsedValue: string","readonly: boolean","trueValue: any","value: any","text: string"],"description":"Replaces the default checkmark SVG inside the checkbox box. Receives the checkbox state plus the label text."},{"name":"label","type":"BbCheckboxLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered next to the checkbox."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"pt":{"parts":[{"name":"root","description":"The toggle's container: the glyph, the label and the lines under them."},{"name":"label","description":"The label text beside the glyph (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"icon","description":"The drawn glyph — the box, the dot or the switch track. The default one: a consumer `icon` slot replaces it. The hidden native input is not a part."}],"states":[{"name":"checked","description":"Component-wide: the toggle is on."},{"name":"indeterminate","description":"Component-wide: the mixed state (the `indeterminate` prop) — neither on nor off."},{"name":"readonly","description":"Component-wide: the toggle is `readonly` — focusable, cannot change."},{"name":"disabled","description":"Component-wide: the toggle is `disabled`."},{"name":"warnings","description":"Component-wide: the toggle shows warnings and no errors."},{"name":"errors","description":"Component-wide: the toggle shows errors — the glyph and the message line turn red."},{"name":"focused","description":"Component-wide: the native input has focus — any focus, mouse included, like the `focused` slot prop."},{"name":"focusVisible","description":"Component-wide: that focus is keyboard-visible — where a focus ring belongs."}]},"tree":{"bindings":[{"part":"icon","target":"BbBaseCheckboxIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbCheckbox","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"BbBaseCheckboxIcon","kind":"public"}]},"css":{"classes":{"bb-checkbox":[""]},"locals":["--color-gray-200","--ly-x","--py","--tap-b","--tap-i"],"surface":{"stable":[{"class":"bb-checkbox","tag":"CommonField","part":"root","reads":["--py"]}],"internal":[],"via":[{"part":"icon","component":"BbBaseCheckboxIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["label"],"states":["checked","indeterminate","readonly","disabled","warnings","errors","focused","focusVisible"]}}},"attrTargets":["div"],"config":"validationMode*, compact*, layout*, reverse*, inputPosition*","removed":[{"name":"color","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox.md","silent":true,"fix":{"kind":"manual"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
385
|
-
{"name":"BbCheckboxGroup","group":"Selection","description":"Manages multiple checkbox options as a group.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbCheckboxGroup.md","source":"ai/source/BbCheckboxGroup.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"block","type":"boolean | undefined","required":false,"default":"undefined","description":"The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to dependencies."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every applied, successful load (an empty one included), drops the model values the options no longer contain (a single value resets to `null`). A failed load never prunes."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the `items` provider threw): the twin of `emptyText` for that case."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides each option's label text (the text rendered next to every input) while keeping it accessible to screen readers. Does not affect the fieldset legend — use `hideLegend` for that."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`."},{"name":"itemProps","type":"BbOptionGroupItemProps<T> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead."},{"name":"items","type":"T[] | ((context: BbCheckboxGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`."},{"name":"itemText","type":"ItemAccessor<T, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<T> | undefined","required":false,"default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for option groups (checkbox, radio or switch) — there is no single field for the legend to float against."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"max","type":"number | undefined","required":false,"description":"Maximum number of selected items."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be an array of any serializable type."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to modelValue."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"true","description":"Enables multi-selection behavior. When true, `modelValue` must be an array. When false, `modelValue` should be a single value."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"list\", \"item\", \"icon\", \"label\", \"itemDescription\", \"indicator\"]; readonly states: readonly [\"hasValue\", \"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"loading\"]; readonly node: { readonly item: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly icon: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly label: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly itemDescription: readonly [\"checked\", \"focused\", \"focusVisible\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"outline\"]; readonly option: \"checkboxVariants\"; }; }> & { legend?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"label:checked\"?: PtValue | undefined; \"label:focused\"?: PtValue | undefined; \"label:focusVisible\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"icon:checked\"?: PtValue | undefined; \"icon:focused\"?: PtValue | undefined; \"icon:focusVisible\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; indicator?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"legend:loading\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; \"indicator:loading\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"indicator:errors\"?: PtValue | undefined; \"indicator:warnings\"?: PtValue | undefined; \"indicator:readonly\"?: PtValue | undefined; \"indicator:hasValue\"?: PtValue | undefined; \"item:checked\"?: PtValue | undefined; \"item:focused\"?: PtValue | undefined; \"item:focusVisible\"?: PtValue | undefined; \"itemDescription:checked\"?: PtValue | undefined; \"itemDescription:focused\"?: PtValue | undefined; \"itemDescription:focusVisible\"?: PtValue | undefined; } & { label?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; icon?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; item?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; itemDescription?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"label:line\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"label:pill\"?: PtValue | undefined; \"legend:line\"?: PtValue | undefined; \"legend:outline\"?: PtValue | undefined; \"legend:pill\"?: PtValue | undefined; \"list:line\"?: PtValue | undefined; \"list:outline\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"root:line\"?: PtValue | undefined; \"root:pill\"?: PtValue | undefined; \"icon:line\"?: PtValue | undefined; \"icon:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:outline\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"description:line\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"description:pill\"?: PtValue | undefined; \"message:line\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"message:pill\"?: PtValue | undefined; \"hint:line\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"hint:pill\"?: PtValue | undefined; \"itemDescription:line\"?: PtValue | undefined; \"itemDescription:outline\"?: PtValue | undefined; \"itemDescription:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:outline\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:line","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:outline","type":"PtValue | undefined","required":false},{"name":"pt:description:pill","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:line","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:outline","type":"PtValue | undefined","required":false},{"name":"pt:hint:pill","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:line","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:pill","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:errors","type":"PtValue | undefined","required":false},{"name":"pt:indicator:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:loading","type":"PtValue | undefined","required":false},{"name":"pt:indicator:outline","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:indicator:readonly","type":"PtValue | undefined","required":false},{"name":"pt:indicator:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:item:checked","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:focused","type":"PtValue | undefined","required":false},{"name":"pt:item:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:loading","type":"PtValue | undefined","required":false},{"name":"pt:item:outline","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:checked","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focused","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:line","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:outline","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:pill","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:line","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:outline","type":"PtValue | undefined","required":false},{"name":"pt:label:pill","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:line","type":"PtValue | undefined","required":false},{"name":"pt:legend:loading","type":"PtValue | undefined","required":false},{"name":"pt:legend:outline","type":"PtValue | undefined","required":false},{"name":"pt:legend:pill","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:errors","type":"PtValue | undefined","required":false},{"name":"pt:list:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:loading","type":"PtValue | undefined","required":false},{"name":"pt:list:outline","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:list:readonly","type":"PtValue | undefined","required":false},{"name":"pt:list:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:line","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:outline","type":"PtValue | undefined","required":false},{"name":"pt:message:pill","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:line","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:pill","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"selectable","type":"boolean | ((item: T) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"variant","type":"keyof CheckboxVariantRegistry | undefined","required":false,"values":["outline","pill","line"],"description":"A tab-strip look: `'pill'` (a pill per run of adjacent picks) or `'line'` (a bar under each pick). `list-layout=\"vertical\"` stacks it. Register more with `components.BbCheckboxGroup.variants`. Unset: the group's own rows."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the group becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated checkbox inputs loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when an option is toggled. Forwards the original DOM `Event` from the checkbox input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when one of the generated checkbox inputs is clicked. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated checkbox inputs receives focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the group after it was active. Useful for validation-on-blur flows at group level."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from generated checkbox inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on generated checkbox inputs. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a checkbox input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a checkbox input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the coherent next selection array whenever selection changes."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"description","type":"BbCheckboxGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows."},{"name":"icon","type":"BbCheckboxGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","indeterminate?: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","falseValue: any","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","trueValue: any","value: any","item: T","text: string"],"description":"Replaces the default checkmark icon for each checkbox option."},{"name":"label","type":"BbCheckboxGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},{"name":"legend","type":"BbCheckboxGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--gap","value":"24px","selector":".bb-checkbox-group__list","description":"Space between rows on one line."},{"name":"--row-gap","value":"10px","selector":".bb-checkbox-group__list","description":"Space between wrapped lines."},{"name":"--tile-min-width","value":"96px","selector":".bb-checkbox-group__list","description":"How narrow a tile may get before the tiles wrap (`tiles` only)."},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-checkbox-group__list--strip","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-checkbox-group__list--strip","description":"The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-checkbox-group__list--strip","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-checkbox-group__list--strip","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-checkbox-group__list--strip","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-checkbox-group__list--strip","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-checkbox-group__list--strip","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-checkbox-group__list--strip","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-checkbox-group__list--strip","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-checkbox-group__list--strip","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-checkbox-group__list--strip","description":"unchecked trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-checkbox-group__list--strip","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-checkbox-group__list--strip","description":"checked trigger label"},{"name":"--active-fw","value":"500","selector":".bb-checkbox-group__list--strip","description":"checked trigger label weight (unchecked labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-checkbox-group__list--strip","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-checkbox-group__list--strip","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-checkbox-group__list--strip","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-checkbox-group__list--strip","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (inline-end edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-checkbox-group__list--strip","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-checkbox-group__list--strip","description":"The theme's resting lift, composed UNDER the indicator's own shadow"},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-checkbox-group__list--strip","description":"Indicator lift, painted on top of --elev"},{"name":"--list-bg","value":"transparent","selector":".bb-checkbox-group__list--line"},{"name":"--list-border","value":"var(--bb-border)","selector":".bb-checkbox-group__list--line"},{"name":"--p","value":"0px","selector":".bb-checkbox-group__list--line"},{"name":"--list-r","value":"0px","selector":".bb-checkbox-group__list--line"},{"name":"--trigger-r","value":"var(--bb-radius-sm)","selector":".bb-checkbox-group__list--line"},{"name":"--active-fw","value":"600","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-border","value":"transparent","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-r","value":"0","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-h","value":"2px","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-shadow","value":"none","selector":".bb-checkbox-group__list--line"},{"name":"--elev","value":"none","selector":".bb-checkbox-group__list--line"},{"name":"--list-bg","value":"var(--bb-outline)","selector":".bb-checkbox-group__list--outline"},{"name":"--list-border","value":"transparent","selector":".bb-checkbox-group__list--outline"},{"name":"--p","value":"0px","selector":".bb-checkbox-group__list--outline"},{"name":"--trigger-r","value":"0px","selector":".bb-checkbox-group__list--outline"},{"name":"--trigger-px","value":"12px","selector":".bb-checkbox-group__list--outline"},{"name":"--list-fg","value":"var(--bb-outline-fg)","selector":".bb-checkbox-group__list--outline"},{"name":"--hover-fg","value":"var(--bb-outline-fg)","selector":".bb-checkbox-group__list--outline"},{"name":"--active-fg","value":"var(--bb-primary-fg)","selector":".bb-checkbox-group__list--outline"},{"name":"--active-fw","value":"500","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-border","value":"transparent","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-r","value":"0px","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-shadow","value":"none","selector":".bb-checkbox-group__list--outline"},{"name":"--divider","value":"var(--bb-outline-border)","selector":".bb-checkbox-group__list--outline","description":"The frame and the lines between the segments"},{"name":"--hover-bg","value":"var(--bb-outline-hover)","selector":".bb-checkbox-group__list--outline","description":"An unpicked segment under the pointer"}],"pt":{"parts":[{"name":"root","description":"The group's container (the fieldset)."},{"name":"legend","description":"The group's heading — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"list","description":"The node that lays the rows out (flex + wrap, gaps on `--gap` / `--row-gap`): `pt:list=\"grid grid-cols-3\"` re-lays them, `pt:list=\"[--gap:8px]\"` tightens them. With a `variant`, the tab strip. Takes the group-wide states only."},{"name":"indicator","description":"With a `variant`: the shape under the checked option, BbTabs' indicator — the sliding pill or bar of a radio group, a checkbox group's pill per run of adjacent picks (or bar per pick). Takes the group-wide states only."},{"name":"item","description":"One option row — a broadcast, resolved per option with its own `checked` / `disabled` / focus. Takes a per-item function."},{"name":"icon","description":"One row's drawn glyph — the default one: a consumer `icon` slot replaces it. Takes a per-item function."},{"name":"label","description":"One option's label text (the `label` slot's default). Takes a per-item function."},{"name":"itemDescription","description":"One option's muted second line, its description. Takes a per-item function."}],"states":[{"name":"hasValue","description":"Component-wide: at least one option is chosen."},{"name":"checked","description":"Per row, on `item`, `icon`, `label` and `itemDescription`: that option is chosen. Never on a field part."},{"name":"readonly","description":"Component-wide: the group is `readonly`."},{"name":"disabled","description":"Component-wide while the group is `disabled`; also per row, on the row parts of an option that is disabled on its own."},{"name":"warnings","description":"Component-wide: the group shows warnings and no errors."},{"name":"errors","description":"Component-wide: the group shows errors."},{"name":"focused","description":"Per row, on the row parts: that option's input has focus — any focus, mouse included."},{"name":"focusVisible","description":"Per row, on the row parts: that option's focus is keyboard-visible — where a focus ring belongs."},{"name":"loading","description":"Component-wide: the items are being fetched."},{"name":"line","description":"On every part: `variant: 'line'`. Below the real states, like every variant."},{"name":"outline","description":"On every part: `variant: 'outline'`. Below the real states, like every variant."},{"name":"pill","description":"On every part: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"bindings":[{"part":"indicator","target":"span.bb-checkbox-group__indicator"},{"part":"icon","target":"BbBaseCheckboxIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbCheckboxGroup","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"OptionsContainer","kind":"internal","vocabulary":"BbCheckboxGroup","bindings":[{"part":"list","target":"span"},{"part":"item","target":"label"},{"part":"label","target":"span"},{"part":"itemDescription","target":"span"}],"cssProps":[{"name":"--list-bg","documented":true},{"name":"--list-border","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--fs","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":true},{"name":"--trigger-px","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-min-h","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":true},{"name":"--active-fg","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-inset","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--elev","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-px","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":false},{"name":"--active-fg","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--divider","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--hover-bg","documented":true}]},{"name":"BbBaseCheckboxIcon","kind":"public"}]},"css":{"classes":{"bb-checkbox-group":["","__empty","__indicator","__item","__item--*","__item--aligned","__item--description","__item--disabled","__item--focus-visible","__item--focused","__item--input-align-*","__item--input-align-bottom","__item--input-align-center","__item--input-align-top","__item--label-align-*","__item--label-align-bottom","__item--label-align-center","__item--label-align-top","__item--reverse","__item--selected","__item--vertical","__item-description","__label","__list","__list--*","__list--block","__list--errors","__list--horizontal","__list--line","__list--no-transition","__list--outline","__list--strip","__list--tiles","__list--vertical","__list--warnings","__loading"],"bb-toggle-input":[""]},"locals":["--active-fg","--active-fw","--color-gray-200","--divider","--elev","--fs","--gap","--height","--hit","--hover-bg","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--ly-lj","--ly-ls","--ly-x","--p","--ring-t","--row-be","--row-bs","--row-gap","--row-h","--row-ie","--row-is","--seam","--size","--tap-row-gap","--tile-min-width","--top","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-checkbox-group","tag":"CommonField","part":"root"},{"class":"bb-checkbox-group__list","part":"list","reads":["--gap","--hit","--ly-lj","--ly-ls","--row-gap","--row-h","--tap-row-gap"]},{"class":"bb-checkbox-group__indicator","tag":"span","part":"indicator","reads":["--_h","--_w","--height","--indicator-inset","--left","--top","--width"]},{"class":"bb-checkbox-group__item","part":"item","reads":["--gap","--hit","--p","--row-be","--row-bs","--row-ie","--row-is","--tap-row-gap"]},{"class":"bb-checkbox-group__label","part":"label"},{"class":"bb-checkbox-group__item-description","part":"itemDescription"},{"class":"bb-checkbox-group__item--disabled","state":"disabled"},{"class":"bb-checkbox-group__list--warnings","state":"warnings"},{"class":"bb-checkbox-group__list--errors","state":"errors"},{"class":"bb-checkbox-group__item--focused","state":"focused"},{"class":"bb-checkbox-group__item--focus-visible","state":"focusVisible"},{"class":"bb-checkbox-group__list--line","state":"line"},{"class":"bb-checkbox-group__list--outline","state":"outline"}],"internal":[{"class":"bb-checkbox-group__empty"},{"class":"bb-checkbox-group__item--aligned"},{"class":"bb-checkbox-group__item--description","reads":["--hit","--row-gap","--row-h"]},{"class":"bb-checkbox-group__item--input-align-bottom"},{"class":"bb-checkbox-group__item--input-align-center"},{"class":"bb-checkbox-group__item--input-align-top"},{"class":"bb-checkbox-group__item--label-align-bottom"},{"class":"bb-checkbox-group__item--label-align-center"},{"class":"bb-checkbox-group__item--label-align-top"},{"class":"bb-checkbox-group__item--reverse"},{"class":"bb-checkbox-group__item--selected"},{"class":"bb-checkbox-group__item--vertical"},{"class":"bb-checkbox-group__list--block"},{"class":"bb-checkbox-group__list--horizontal"},{"class":"bb-checkbox-group__list--no-transition"},{"class":"bb-checkbox-group__list--strip","reads":["--list-h","--list-r","--p","--trigger-r"]},{"class":"bb-checkbox-group__list--tiles","reads":["--row-gap","--tile-min-width"]},{"class":"bb-checkbox-group__list--vertical"},{"class":"bb-checkbox-group__loading"},{"class":"bb-toggle-input"}],"via":[{"part":"icon","component":"BbBaseCheckboxIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["hasValue","checked","readonly","loading","pill"]}}},"attrTargets":["div"],"config":"validationMode*, compact*, layout*, listLayout*, itemLayout*, itemReverse*, reverse*, inputPosition*, block*, variants","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"manual"}},{"name":"labelPosition","new":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"inputDirection","new":"listLayout","hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"labelPosition","to":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"inputDirection","to":"listLayout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"},"hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)"},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
389
|
+
{"name":"BbCheckboxGroup","group":"Selection","description":"Manages multiple checkbox options as a group.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbCheckboxGroup.md","source":"ai/source/BbCheckboxGroup.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"block","type":"boolean | undefined","required":false,"default":"undefined","description":"The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to dependencies."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every applied, successful load (an empty one included), drops the model values the options no longer contain (a single value resets to `null`). A failed load never prunes."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the `items` provider threw): the twin of `emptyText` for that case."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides each option's label text (the text rendered next to every input) while keeping it accessible to screen readers. Does not affect the fieldset legend — use `hideLegend` for that."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`."},{"name":"itemProps","type":"BbOptionGroupItemProps<T> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead."},{"name":"items","type":"T[] | ((context: BbCheckboxGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`."},{"name":"itemText","type":"ItemAccessor<T, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<T> | undefined","required":false,"default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for option groups (checkbox, radio or switch) — there is no single field for the legend to float against."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"max","type":"number | undefined","required":false,"description":"Maximum number of selected items."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be an array of any serializable type."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to modelValue."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"true","description":"Enables multi-selection behavior. When true, `modelValue` must be an array. When false, `modelValue` should be a single value."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"list\", \"item\", \"icon\", \"label\", \"itemDescription\", \"indicator\"]; readonly states: readonly [\"hasValue\", \"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"loading\"]; readonly node: { readonly item: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly icon: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly label: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly itemDescription: readonly [\"checked\", \"focused\", \"focusVisible\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"outline\"]; readonly option: \"checkboxVariants\"; }; }> & { legend?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"label:checked\"?: PtValue | undefined; \"label:focused\"?: PtValue | undefined; \"label:focusVisible\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"icon:checked\"?: PtValue | undefined; \"icon:focused\"?: PtValue | undefined; \"icon:focusVisible\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; indicator?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"legend:loading\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; \"indicator:loading\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"indicator:errors\"?: PtValue | undefined; \"indicator:warnings\"?: PtValue | undefined; \"indicator:readonly\"?: PtValue | undefined; \"indicator:hasValue\"?: PtValue | undefined; \"item:checked\"?: PtValue | undefined; \"item:focused\"?: PtValue | undefined; \"item:focusVisible\"?: PtValue | undefined; \"itemDescription:checked\"?: PtValue | undefined; \"itemDescription:focused\"?: PtValue | undefined; \"itemDescription:focusVisible\"?: PtValue | undefined; } & { label?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; icon?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; item?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; itemDescription?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"label:line\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"label:pill\"?: PtValue | undefined; \"legend:line\"?: PtValue | undefined; \"legend:outline\"?: PtValue | undefined; \"legend:pill\"?: PtValue | undefined; \"list:line\"?: PtValue | undefined; \"list:outline\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"root:line\"?: PtValue | undefined; \"root:pill\"?: PtValue | undefined; \"icon:line\"?: PtValue | undefined; \"icon:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:outline\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"description:line\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"description:pill\"?: PtValue | undefined; \"message:line\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"message:pill\"?: PtValue | undefined; \"hint:line\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"hint:pill\"?: PtValue | undefined; \"itemDescription:line\"?: PtValue | undefined; \"itemDescription:outline\"?: PtValue | undefined; \"itemDescription:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:outline\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:line","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:outline","type":"PtValue | undefined","required":false},{"name":"pt:description:pill","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:line","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:outline","type":"PtValue | undefined","required":false},{"name":"pt:hint:pill","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:line","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:pill","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:errors","type":"PtValue | undefined","required":false},{"name":"pt:indicator:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:loading","type":"PtValue | undefined","required":false},{"name":"pt:indicator:outline","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:indicator:readonly","type":"PtValue | undefined","required":false},{"name":"pt:indicator:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:item:checked","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:focused","type":"PtValue | undefined","required":false},{"name":"pt:item:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:loading","type":"PtValue | undefined","required":false},{"name":"pt:item:outline","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:checked","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focused","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:line","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:outline","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:pill","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:line","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:outline","type":"PtValue | undefined","required":false},{"name":"pt:label:pill","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:line","type":"PtValue | undefined","required":false},{"name":"pt:legend:loading","type":"PtValue | undefined","required":false},{"name":"pt:legend:outline","type":"PtValue | undefined","required":false},{"name":"pt:legend:pill","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:errors","type":"PtValue | undefined","required":false},{"name":"pt:list:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:loading","type":"PtValue | undefined","required":false},{"name":"pt:list:outline","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:list:readonly","type":"PtValue | undefined","required":false},{"name":"pt:list:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:line","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:outline","type":"PtValue | undefined","required":false},{"name":"pt:message:pill","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:line","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:pill","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"selectable","type":"boolean | ((item: T) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"variant","type":"keyof CheckboxVariantRegistry | undefined","required":false,"values":["outline","pill","line"],"description":"A tab-strip look: `'pill'` (a pill per run of adjacent picks) or `'line'` (a bar under each pick). `list-layout=\"vertical\"` stacks it. Register more with `components.BbCheckboxGroup.variants`. Unset: the group's own rows."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the group becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated checkbox inputs loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when an option is toggled. Forwards the original DOM `Event` from the checkbox input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when one of the generated checkbox inputs is clicked. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated checkbox inputs receives focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the group after it was active. Useful for validation-on-blur flows at group level."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from generated checkbox inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on generated checkbox inputs. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a checkbox input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a checkbox input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the coherent next selection array whenever selection changes."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"description","type":"BbCheckboxGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows."},{"name":"icon","type":"BbCheckboxGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","indeterminate?: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","falseValue: any","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","trueValue: any","value: any","item: T","text: string"],"description":"Replaces the default checkmark icon for each checkbox option."},{"name":"label","type":"BbCheckboxGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},{"name":"legend","type":"BbCheckboxGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--gap","value":"24px","selector":".bb-checkbox-group__list","description":"Space between rows on one line."},{"name":"--row-gap","value":"10px","selector":".bb-checkbox-group__list","description":"Space between wrapped lines."},{"name":"--tile-min-width","value":"96px","selector":".bb-checkbox-group__list","description":"How narrow a tile may get before the tiles wrap (`tiles` only)."},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-checkbox-group__list--strip","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-checkbox-group__list--strip","description":"The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-checkbox-group__list--strip","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-checkbox-group__list--strip","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-checkbox-group__list--strip","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-checkbox-group__list--strip","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-checkbox-group__list--strip","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-checkbox-group__list--strip","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-checkbox-group__list--strip","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-checkbox-group__list--strip","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-checkbox-group__list--strip","description":"unchecked trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-checkbox-group__list--strip","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-checkbox-group__list--strip","description":"checked trigger label"},{"name":"--active-fw","value":"500","selector":".bb-checkbox-group__list--strip","description":"checked trigger label weight (unchecked labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-checkbox-group__list--strip","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-checkbox-group__list--strip","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-checkbox-group__list--strip","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-checkbox-group__list--strip","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (inline-end edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-checkbox-group__list--strip","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-checkbox-group__list--strip","description":"The theme's resting lift, composed UNDER the indicator's own shadow"},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-checkbox-group__list--strip","description":"Indicator lift, painted on top of --elev"},{"name":"--list-bg","value":"transparent","selector":".bb-checkbox-group__list--line"},{"name":"--list-border","value":"var(--bb-border)","selector":".bb-checkbox-group__list--line"},{"name":"--p","value":"0px","selector":".bb-checkbox-group__list--line"},{"name":"--list-r","value":"0px","selector":".bb-checkbox-group__list--line"},{"name":"--trigger-r","value":"var(--bb-radius-sm)","selector":".bb-checkbox-group__list--line"},{"name":"--active-fw","value":"600","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-border","value":"transparent","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-r","value":"0","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-h","value":"2px","selector":".bb-checkbox-group__list--line"},{"name":"--indicator-shadow","value":"none","selector":".bb-checkbox-group__list--line"},{"name":"--elev","value":"none","selector":".bb-checkbox-group__list--line"},{"name":"--list-bg","value":"transparent","selector":".bb-checkbox-group__list--outline"},{"name":"--list-border","value":"transparent","selector":".bb-checkbox-group__list--outline"},{"name":"--list-h","value":"calc(var(--bb-control-h) - 4px)","selector":".bb-checkbox-group__list--outline","description":"A button's height: BbButton `md` sits one step under the control height."},{"name":"--p","value":"0px","selector":".bb-checkbox-group__list--outline"},{"name":"--trigger-gap","value":"8px","selector":".bb-checkbox-group__list--outline"},{"name":"--trigger-r","value":"var(--bb-radius)","selector":".bb-checkbox-group__list--outline"},{"name":"--trigger-px","value":"12px","selector":".bb-checkbox-group__list--outline"},{"name":"--list-fg","value":"var(--bb-outline-fg)","selector":".bb-checkbox-group__list--outline"},{"name":"--hover-fg","value":"var(--bb-outline-fg)","selector":".bb-checkbox-group__list--outline"},{"name":"--active-fg","value":"var(--bb-outline-fg)","selector":".bb-checkbox-group__list--outline"},{"name":"--active-fw","value":"500","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-bg","value":"var(--bb-outline-pressed)","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-border","value":"transparent","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-checkbox-group__list--outline"},{"name":"--indicator-shadow","value":"none","selector":".bb-checkbox-group__list--outline"},{"name":"--elev","value":"none","selector":".bb-checkbox-group__list--outline"},{"name":"--divider","value":"var(--bb-outline-border)","selector":".bb-checkbox-group__list--outline","description":"Each button's frame"},{"name":"--hover-bg","value":"var(--bb-outline-hover)","selector":".bb-checkbox-group__list--outline","description":"An unpicked button under the pointer"}],"pt":{"parts":[{"name":"root","description":"The group's container (the fieldset)."},{"name":"legend","description":"The group's heading — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"list","description":"The node that lays the rows out (flex + wrap, gaps on `--gap` / `--row-gap`): `pt:list=\"grid grid-cols-3\"` re-lays them, `pt:list=\"[--gap:8px]\"` tightens them. With a `variant`, the tab strip. Takes the group-wide states only."},{"name":"indicator","description":"With a `variant`: the shape under the checked option, BbTabs' indicator — the sliding pill or bar of a radio group, a checkbox group's pill per run of adjacent picks (or bar per pick). Takes the group-wide states only."},{"name":"item","description":"One option row — a broadcast, resolved per option with its own `checked` / `disabled` / focus. Takes a per-item function."},{"name":"icon","description":"One row's drawn glyph — the default one: a consumer `icon` slot replaces it. Takes a per-item function."},{"name":"label","description":"One option's label text (the `label` slot's default). Takes a per-item function."},{"name":"itemDescription","description":"One option's muted second line, its description. Takes a per-item function."}],"states":[{"name":"hasValue","description":"Component-wide: at least one option is chosen."},{"name":"checked","description":"Per row, on `item`, `icon`, `label` and `itemDescription`: that option is chosen. Never on a field part."},{"name":"readonly","description":"Component-wide: the group is `readonly`."},{"name":"disabled","description":"Component-wide while the group is `disabled`; also per row, on the row parts of an option that is disabled on its own."},{"name":"warnings","description":"Component-wide: the group shows warnings and no errors."},{"name":"errors","description":"Component-wide: the group shows errors."},{"name":"focused","description":"Per row, on the row parts: that option's input has focus — any focus, mouse included."},{"name":"focusVisible","description":"Per row, on the row parts: that option's focus is keyboard-visible — where a focus ring belongs."},{"name":"loading","description":"Component-wide: the items are being fetched."},{"name":"line","description":"On every part: `variant: 'line'`. Below the real states, like every variant."},{"name":"outline","description":"On every part: `variant: 'outline'`. Below the real states, like every variant."},{"name":"pill","description":"On every part: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"bindings":[{"part":"indicator","target":"span.bb-checkbox-group__indicator"},{"part":"icon","target":"BbBaseCheckboxIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbCheckboxGroup","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"OptionsContainer","kind":"internal","vocabulary":"BbCheckboxGroup","bindings":[{"part":"list","target":"span"},{"part":"item","target":"label"},{"part":"label","target":"span"},{"part":"itemDescription","target":"span"}],"cssProps":[{"name":"--list-bg","documented":true},{"name":"--list-border","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--fs","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":true},{"name":"--trigger-px","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--trigger-min-h","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":true},{"name":"--active-fg","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-inset","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--elev","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":false},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--trigger-px","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":false},{"name":"--active-fg","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--divider","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-bg","documented":true}]},{"name":"BbBaseCheckboxIcon","kind":"public"}]},"css":{"classes":{"bb-checkbox-group":["","__empty","__indicator","__item","__item--*","__item--aligned","__item--description","__item--disabled","__item--focus-visible","__item--focused","__item--input-align-*","__item--input-align-bottom","__item--input-align-center","__item--input-align-top","__item--label-align-*","__item--label-align-bottom","__item--label-align-center","__item--label-align-top","__item--reverse","__item--selected","__item--vertical","__item-description","__label","__list","__list--*","__list--block","__list--errors","__list--horizontal","__list--line","__list--no-transition","__list--outline","__list--strip","__list--tiles","__list--vertical","__list--warnings","__loading"],"bb-toggle-input":[""]},"locals":["--active-fg","--active-fw","--color-gray-200","--divider","--elev","--fs","--gap","--height","--hit","--hover-bg","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--ly-lj","--ly-ls","--ly-x","--p","--ring-t","--row-be","--row-bs","--row-gap","--row-h","--row-ie","--row-is","--size","--tap-row-gap","--tile-min-width","--top","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-checkbox-group","tag":"CommonField","part":"root"},{"class":"bb-checkbox-group__list","part":"list","reads":["--gap","--hit","--ly-lj","--ly-ls","--row-gap","--row-h","--tap-row-gap"]},{"class":"bb-checkbox-group__indicator","tag":"span","part":"indicator","reads":["--_h","--_w","--height","--indicator-inset","--left","--top","--width"]},{"class":"bb-checkbox-group__item","part":"item","reads":["--gap","--hit","--p","--row-be","--row-bs","--row-ie","--row-is","--tap-row-gap"]},{"class":"bb-checkbox-group__label","part":"label"},{"class":"bb-checkbox-group__item-description","part":"itemDescription"},{"class":"bb-checkbox-group__item--disabled","state":"disabled"},{"class":"bb-checkbox-group__list--warnings","state":"warnings"},{"class":"bb-checkbox-group__list--errors","state":"errors"},{"class":"bb-checkbox-group__item--focused","state":"focused"},{"class":"bb-checkbox-group__item--focus-visible","state":"focusVisible"},{"class":"bb-checkbox-group__list--line","state":"line"},{"class":"bb-checkbox-group__list--outline","state":"outline","reads":["--trigger-r"]}],"internal":[{"class":"bb-checkbox-group__empty"},{"class":"bb-checkbox-group__item--aligned"},{"class":"bb-checkbox-group__item--description","reads":["--hit","--row-gap","--row-h"]},{"class":"bb-checkbox-group__item--input-align-bottom"},{"class":"bb-checkbox-group__item--input-align-center"},{"class":"bb-checkbox-group__item--input-align-top"},{"class":"bb-checkbox-group__item--label-align-bottom"},{"class":"bb-checkbox-group__item--label-align-center"},{"class":"bb-checkbox-group__item--label-align-top"},{"class":"bb-checkbox-group__item--reverse"},{"class":"bb-checkbox-group__item--selected","reads":["--indicator-bg"]},{"class":"bb-checkbox-group__item--vertical"},{"class":"bb-checkbox-group__list--block"},{"class":"bb-checkbox-group__list--horizontal"},{"class":"bb-checkbox-group__list--no-transition"},{"class":"bb-checkbox-group__list--strip","reads":["--list-h","--list-r","--p","--trigger-r"]},{"class":"bb-checkbox-group__list--tiles","reads":["--row-gap","--tile-min-width"]},{"class":"bb-checkbox-group__list--vertical"},{"class":"bb-checkbox-group__loading"},{"class":"bb-toggle-input"}],"via":[{"part":"icon","component":"BbBaseCheckboxIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["hasValue","checked","readonly","loading","pill"]}}},"attrTargets":["div"],"config":"validationMode*, compact*, layout*, listLayout*, itemLayout*, itemReverse*, reverse*, inputPosition*, block*, variants","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"manual"}},{"name":"labelPosition","new":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"inputDirection","new":"listLayout","hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"labelPosition","to":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"inputDirection","to":"listLayout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"},"hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)"},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
386
390
|
{"name":"BbCollapsible","group":"Navigation","description":"Toggles visibility of collapsible content blocks.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbCollapsible.md","source":"ai/source/BbCollapsible.md","props":[{"name":"eager","type":"boolean | undefined","required":false,"default":"false","description":"Renders the content at mount, while closed, instead of on the first open. Closed content is `inert` and `aria-hidden` either way."},{"name":"modelValue","type":"boolean | undefined","required":false,"default":"false","description":"Used by v-model to open or close the collapsible. Optional: omitted, it renders closed."},{"name":"pt","type":"PtMap<BbCollapsiblePtPart, \"open\"> | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:content","type":"PtValue | undefined","required":false},{"name":"pt:content:open","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:open","type":"PtValue | undefined","required":false},{"name":"tag","type":"LayoutTag | undefined","required":false,"default":"\"div\"","values":["div","span"],"description":"Element rendered as the root, and mirrored by the inner animating element — so the pair is div-in-div or span-in-span, both valid. The default `'div'` holds block content (paragraphs, lists, forms); use `'span'` inside phrasing content (a `<p>`), with inline content only."},{"name":"transitionDuration","type":"number | undefined","required":false,"default":"250","description":"How long the transition has to last in milliseconds"}],"events":[],"slots":[{"name":"default","type":"any","description":"The collapsible body content that is shown or hidden based on `modelValue`. When `eager` is false, the content is not rendered until the first open."}],"exposed":[],"models":[],"pt":{"parts":[{"name":"root","description":"The outer element."},{"name":"content","description":"The region that animates open and closed — `inert` while closed."}],"states":[{"name":"open","description":"Component-wide: the content is open (follows `v-model`)."}]},"css":{"classes":{"bb-collapsible":["","--closed","--open","__content"]},"locals":["--color-gray-200","--transition-duration"],"surface":{"stable":[{"class":"bb-collapsible","tag":"component","part":"root","reads":["--transition-duration"]},{"class":"bb-collapsible__content","tag":"component","part":"content","reads":["--transition-duration"]},{"class":"bb-collapsible--open","tag":"component","state":"open"}],"internal":[{"class":"bb-collapsible--closed","tag":"component"}]}},"attrTargets":["div"]},
|
|
387
391
|
{"name":"BbColorInput","group":"Inputs","description":"Captures color values through input controls.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbColorInput.md","source":"ai/source/BbColorInput.md","props":[{"name":"adaptive","type":"boolean | undefined","required":false,"default":"`all.adaptive` (`true`)","description":"When `true`, the color palette opens as a bottom off-canvas sheet on mobile viewports instead of a floating popover; on desktop it stays a popover. Mirrors the adaptive behaviour of `BbSelect`/`BbDatePickerInput`.\n\nWhen unset, falls back to the global `all.adaptive`."},{"name":"alpha","type":"boolean | undefined","required":false,"default":"false","description":"Enable the alpha channel. Shows an opacity slider and uses `#RRGGBBAA` hex8 format."},{"name":"append:icon","type":"string | undefined","required":false,"description":"Name of the icon to be added at the end of the input."},{"name":"autocomplete","type":"string | undefined","required":false,"default":"'off'","description":"Guides the browser as to the type of information expected in the field."},{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"clearable","type":"boolean | undefined","required":false,"default":"false","description":"Displays a clear button when the input has a value and is being interacted with."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`)."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"eyeDropper","type":"boolean | undefined","required":false,"default":"false","description":"Show an eyedropper button to sample any color on screen. Uses the native EyeDropper API — hidden automatically on unsupported browsers."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelMode","type":"\"outside\" | \"floating\" | \"inside\" | undefined","required":false,"description":"Label rendering mode: `outside` places the label above the input, `floating` overlays it on the field and shrinks it when a value is set, `inside` keeps it inside the field."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Sets the component in a loading state, usually triggering some visual styles."},{"name":"modelValue","type":"string | null | undefined","required":false,"default":"null","description":"Used by v-model."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"offCanvasProps","type":"Partial<BbOffCanvasProps> | undefined","required":false,"description":"Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"placeholder","type":"string | undefined","required":false,"description":"Text shown while the field is empty."},{"name":"prepend:icon","type":"string | undefined","required":false,"description":"Name of the icon to be added at the start of the input."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"input\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\", \"indicator\", \"panel\", \"sheet\", \"swatch\"]; readonly states: readonly [\"hasValue\", \"selected\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly node: { readonly swatch: readonly [\"selected\"]; }; readonly except: { readonly clear: readonly [\"disabled\", \"readonly\"]; }; readonly variant: { readonly names: readonly [\"outline\", \"secondary\", \"ghost\"]; readonly option: \"colorInputVariants\"; readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"input\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\"]; }; }> & { input?: PtValue | undefined; label?: PtValue | undefined; prefix?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; spinner?: PtValue | undefined; clear?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"clear:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; indicator?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"indicator:loading\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"indicator:errors\"?: PtValue | undefined; \"indicator:warnings\"?: PtValue | undefined; \"indicator:readonly\"?: PtValue | undefined; \"indicator:hasValue\"?: PtValue | undefined; box?: PtValue | undefined; suffix?: PtValue | undefined; sheet?: PtValue | undefined; swatch?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:errors\"?: PtValue | undefined; \"input:warnings\"?: PtValue | undefined; \"input:readonly\"?: PtValue | undefined; \"input:hasValue\"?: PtValue | undefined; \"label:open\"?: PtValue | undefined; \"prefix:open\"?: PtValue | undefined; \"prefix:loading\"?: PtValue | undefined; \"prefix:disabled\"?: PtValue | undefined; \"prefix:errors\"?: PtValue | undefined; \"prefix:warnings\"?: PtValue | undefined; \"prefix:readonly\"?: PtValue | undefined; \"prefix:hasValue\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:errors\"?: PtValue | undefined; \"panel:warnings\"?: PtValue | undefined; \"panel:readonly\"?: PtValue | undefined; \"panel:hasValue\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"spinner:errors\"?: PtValue | undefined; \"spinner:warnings\"?: PtValue | undefined; \"spinner:readonly\"?: PtValue | undefined; \"spinner:hasValue\"?: PtValue | undefined; \"clear:open\"?: PtValue | undefined; \"clear:errors\"?: PtValue | undefined; \"clear:warnings\"?: PtValue | undefined; \"clear:hasValue\"?: PtValue | undefined; \"description:open\"?: PtValue | undefined; \"message:open\"?: PtValue | undefined; \"hint:open\"?: PtValue | undefined; \"indicator:open\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:errors\"?: PtValue | undefined; \"box:warnings\"?: PtValue | undefined; \"box:readonly\"?: PtValue | undefined; \"box:hasValue\"?: PtValue | undefined; \"suffix:open\"?: PtValue | undefined; \"suffix:loading\"?: PtValue | undefined; \"suffix:disabled\"?: PtValue | undefined; \"suffix:errors\"?: PtValue | undefined; \"suffix:warnings\"?: PtValue | undefined; \"suffix:readonly\"?: PtValue | undefined; \"suffix:hasValue\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:errors\"?: PtValue | undefined; \"sheet:warnings\"?: PtValue | undefined; \"sheet:readonly\"?: PtValue | undefined; \"sheet:hasValue\"?: PtValue | undefined; \"swatch:open\"?: PtValue | undefined; \"swatch:loading\"?: PtValue | undefined; \"swatch:disabled\"?: PtValue | undefined; \"swatch:errors\"?: PtValue | undefined; \"swatch:warnings\"?: PtValue | undefined; \"swatch:readonly\"?: PtValue | undefined; \"swatch:hasValue\"?: PtValue | undefined; \"swatch:selected\"?: PtValue | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"clear:outline\"?: PtValue | undefined; \"clear:secondary\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"input:outline\"?: PtValue | undefined; \"input:secondary\"?: PtValue | undefined; \"input:ghost\"?: PtValue | undefined; \"label:secondary\"?: PtValue | undefined; \"label:ghost\"?: PtValue | undefined; \"prefix:outline\"?: PtValue | undefined; \"prefix:secondary\"?: PtValue | undefined; \"prefix:ghost\"?: PtValue | undefined; \"clear:ghost\"?: PtValue | undefined; \"description:secondary\"?: PtValue | undefined; \"description:ghost\"?: PtValue | undefined; \"message:secondary\"?: PtValue | undefined; \"message:ghost\"?: PtValue | undefined; \"hint:secondary\"?: PtValue | undefined; \"hint:ghost\"?: PtValue | undefined; \"box:outline\"?: PtValue | undefined; \"box:secondary\"?: PtValue | undefined; \"box:ghost\"?: PtValue | undefined; \"suffix:outline\"?: PtValue | undefined; \"suffix:secondary\"?: PtValue | undefined; \"suffix:ghost\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: `{ box: '…', 'box:errors': '…' }` — the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:box","type":"PtValue | undefined","required":false},{"name":"pt:box:disabled","type":"PtValue | undefined","required":false},{"name":"pt:box:errors","type":"PtValue | undefined","required":false},{"name":"pt:box:ghost","type":"PtValue | undefined","required":false},{"name":"pt:box:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:box:loading","type":"PtValue | undefined","required":false},{"name":"pt:box:open","type":"PtValue | undefined","required":false},{"name":"pt:box:outline","type":"PtValue | undefined","required":false},{"name":"pt:box:readonly","type":"PtValue | undefined","required":false},{"name":"pt:box:secondary","type":"PtValue | undefined","required":false},{"name":"pt:box:warnings","type":"PtValue | undefined","required":false},{"name":"pt:clear","type":"PtValue | undefined","required":false},{"name":"pt:clear:errors","type":"PtValue | undefined","required":false},{"name":"pt:clear:ghost","type":"PtValue | undefined","required":false},{"name":"pt:clear:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:clear:loading","type":"PtValue | undefined","required":false},{"name":"pt:clear:open","type":"PtValue | undefined","required":false},{"name":"pt:clear:outline","type":"PtValue | undefined","required":false},{"name":"pt:clear:secondary","type":"PtValue | undefined","required":false},{"name":"pt:clear:warnings","type":"PtValue | undefined","required":false},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:ghost","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:open","type":"PtValue | undefined","required":false},{"name":"pt:description:outline","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:secondary","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:ghost","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:open","type":"PtValue | undefined","required":false},{"name":"pt:hint:outline","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:secondary","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:ghost","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:open","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:secondary","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:errors","type":"PtValue | undefined","required":false},{"name":"pt:indicator:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:indicator:loading","type":"PtValue | undefined","required":false},{"name":"pt:indicator:open","type":"PtValue | undefined","required":false},{"name":"pt:indicator:readonly","type":"PtValue | undefined","required":false},{"name":"pt:indicator:warnings","type":"PtValue | undefined","required":false},{"name":"pt:input","type":"PtValue | undefined","required":false},{"name":"pt:input:disabled","type":"PtValue | undefined","required":false},{"name":"pt:input:errors","type":"PtValue | undefined","required":false},{"name":"pt:input:ghost","type":"PtValue | undefined","required":false},{"name":"pt:input:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:input:loading","type":"PtValue | undefined","required":false},{"name":"pt:input:open","type":"PtValue | undefined","required":false},{"name":"pt:input:outline","type":"PtValue | undefined","required":false},{"name":"pt:input:readonly","type":"PtValue | undefined","required":false},{"name":"pt:input:secondary","type":"PtValue | undefined","required":false},{"name":"pt:input:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:ghost","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:open","type":"PtValue | undefined","required":false},{"name":"pt:label:outline","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:secondary","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:ghost","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:open","type":"PtValue | undefined","required":false},{"name":"pt:message:outline","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:secondary","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:disabled","type":"PtValue | undefined","required":false},{"name":"pt:panel:errors","type":"PtValue | undefined","required":false},{"name":"pt:panel:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:panel:loading","type":"PtValue | undefined","required":false},{"name":"pt:panel:open","type":"PtValue | undefined","required":false},{"name":"pt:panel:readonly","type":"PtValue | undefined","required":false},{"name":"pt:panel:warnings","type":"PtValue | undefined","required":false},{"name":"pt:prefix","type":"PtValue | undefined","required":false},{"name":"pt:prefix:disabled","type":"PtValue | undefined","required":false},{"name":"pt:prefix:errors","type":"PtValue | undefined","required":false},{"name":"pt:prefix:ghost","type":"PtValue | undefined","required":false},{"name":"pt:prefix:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:prefix:loading","type":"PtValue | undefined","required":false},{"name":"pt:prefix:open","type":"PtValue | undefined","required":false},{"name":"pt:prefix:outline","type":"PtValue | undefined","required":false},{"name":"pt:prefix:readonly","type":"PtValue | undefined","required":false},{"name":"pt:prefix:secondary","type":"PtValue | undefined","required":false},{"name":"pt:prefix:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:ghost","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:open","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:secondary","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"pt:sheet","type":"PtValue | undefined","required":false},{"name":"pt:sheet:disabled","type":"PtValue | undefined","required":false},{"name":"pt:sheet:errors","type":"PtValue | undefined","required":false},{"name":"pt:sheet:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:sheet:loading","type":"PtValue | undefined","required":false},{"name":"pt:sheet:open","type":"PtValue | undefined","required":false},{"name":"pt:sheet:readonly","type":"PtValue | undefined","required":false},{"name":"pt:sheet:warnings","type":"PtValue | undefined","required":false},{"name":"pt:spinner","type":"PtValue | undefined","required":false},{"name":"pt:spinner:disabled","type":"PtValue | undefined","required":false},{"name":"pt:spinner:errors","type":"PtValue | undefined","required":false},{"name":"pt:spinner:ghost","type":"PtValue | undefined","required":false},{"name":"pt:spinner:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:spinner:loading","type":"PtValue | undefined","required":false},{"name":"pt:spinner:open","type":"PtValue | undefined","required":false},{"name":"pt:spinner:outline","type":"PtValue | undefined","required":false},{"name":"pt:spinner:readonly","type":"PtValue | undefined","required":false},{"name":"pt:spinner:secondary","type":"PtValue | undefined","required":false},{"name":"pt:spinner:warnings","type":"PtValue | undefined","required":false},{"name":"pt:suffix","type":"PtValue | undefined","required":false},{"name":"pt:suffix:disabled","type":"PtValue | undefined","required":false},{"name":"pt:suffix:errors","type":"PtValue | undefined","required":false},{"name":"pt:suffix:ghost","type":"PtValue | undefined","required":false},{"name":"pt:suffix:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:suffix:loading","type":"PtValue | undefined","required":false},{"name":"pt:suffix:open","type":"PtValue | undefined","required":false},{"name":"pt:suffix:outline","type":"PtValue | undefined","required":false},{"name":"pt:suffix:readonly","type":"PtValue | undefined","required":false},{"name":"pt:suffix:secondary","type":"PtValue | undefined","required":false},{"name":"pt:suffix:warnings","type":"PtValue | undefined","required":false},{"name":"pt:swatch","type":"PtValue | undefined","required":false},{"name":"pt:swatch:disabled","type":"PtValue | undefined","required":false},{"name":"pt:swatch:errors","type":"PtValue | undefined","required":false},{"name":"pt:swatch:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:swatch:loading","type":"PtValue | undefined","required":false},{"name":"pt:swatch:open","type":"PtValue | undefined","required":false},{"name":"pt:swatch:readonly","type":"PtValue | undefined","required":false},{"name":"pt:swatch:selected","type":"PtValue | undefined","required":false},{"name":"pt:swatch:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<string | null>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"swatches","type":"boolean | string[][] | undefined","required":false,"description":"Controls swatches display in the picker:\n- `true` — show the built-in Material-palette swatches\n- `string[][]` — show custom swatches (each inner array = a column of shades)\n- `false` / omitted — no swatches section"},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"variant","type":"InputVariantOf<ColorInputVariantRegistry> | undefined","required":false,"default":"'outline'","description":"The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `components.BbColorInput.variants`."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the native text input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the native text input fires a change event. Forwards the original DOM `Event`."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when the input area receives a click. Forwards the original DOM `MouseEvent`."},{"name":"compositionend","signature":"(event: CompositionEvent): void","description":"An IME composition ended. Forwards the original DOM `CompositionEvent`."},{"name":"compositionstart","signature":"(event: CompositionEvent): void","description":"An IME composition started. Forwards the original DOM `CompositionEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the native text input gains focus. Forwards the original DOM `FocusEvent`."},{"name":"hidden","signature":"(): void","description":"Emitted once the palette has finished closing."},{"name":"hide","signature":"(): void","description":"Emitted as soon as the palette starts to close."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from the text field. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on the input. Forwards the original DOM `KeyboardEvent`."},{"name":"keyup","signature":"(event: KeyboardEvent): void","description":"Emitted when a key is released on the input. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over the input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over the input. Forwards the original DOM `MouseEvent`."},{"name":"paste","signature":"(event: ClipboardEvent): void","description":"Native clipboard paste. Forwards the original DOM `ClipboardEvent`."},{"name":"show","signature":"(): void","description":"Emitted as soon as the palette (the popover, or the sheet on a phone) starts to open."},{"name":"shown","signature":"(): void","description":"Emitted once the palette is open and its open transition has finished."},{"name":"update:modelValue","signature":"(value: string | null): void","description":"Emitted when the value becomes a valid hex color via typing/masking, when the field is cleared, or when the palette selects a color. Emits:\n- `#RRGGBB` (or `#RRGGBBAA` when `alpha` is enabled) for valid values\n- `null` when cleared"}],"slots":[{"name":"append","type":"Record<string, never>","description":"Content after the colour indicator button, at the end of the inner container. It replaces the `suffix` wrapper, so with `append` any `suffix` content is dropped. No scoped props."},{"name":"append:outer","type":"Record<string, never>","description":"Content rendered after the entire input control, outside the input chrome. This slot receives no scoped props."},{"name":"description","type":"BbColorInputDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"label","type":"BbColorInputLabelSlotProps","fields":["showAsterisk?: boolean","hasErrors: boolean","hasWarnings: boolean","text: string"],"description":"Replaces the default label text rendered above the color input."},{"name":"prefix","type":"Record<string, never>","description":"Inline content rendered at the start of the input field area, before the typed text. This slot receives no scoped props."},{"name":"prepend","type":"Record<string, never>","description":"Content rendered before the text input, at the start of the inner container. This slot receives no scoped props."},{"name":"prepend:outer","type":"Record<string, never>","description":"Content rendered before the entire input control, outside the input chrome. This slot receives no scoped props."},{"name":"suffix","type":"Record<string, never>","description":"Inline content at the end of the field, after the typed text, inside the default `append` area: an `append` slot replaces it. No scoped props."}],"exposed":[],"models":[{"name":"modelValue","type":"string | null | undefined"}],"cssProps":[{"name":"--elev","value":"var(--bb-elev-sm)","selector":".bb-color-input__indicator","description":"Small-chrome resting lift, DECLARED here so it is sealed: an ancestor that sets `--elev` for its own plate must not reach in and lift this. Same tier and same name as the checkbox and radio glyphs."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-color-input__indicator"},{"name":"--border-color","value":"per variant","selector":"pt:box","description":"The resting border, at the fixed --bb-border-w. Errors and warnings paint their frame over it, so `pt:box=\"[--border-color:…]\"` recolours the rest without hiding the state; a plain `border-*` utility on the base pt:box would hide it (ESLint `no-box-border-color`)."},{"name":"--ph","value":"var(--bb-text-muted)","selector":"pt:box","description":"Placeholder colour, one local for every field: the native `::placeholder`, BbSelect's activator text and the picker inputs' empty segments. Set it through `pt:box=\"[--ph:…]\"`; app-wide, the same entry in the global pt map."}],"pt":{"parts":[{"name":"root","description":"The field's outer container: the label, the box and the lines under it."},{"name":"label","description":"The label text above the box (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line under the box. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"box","description":"The bordered box around the input — border, background and radius; the `variant` paints here."},{"name":"input","description":"The native input element inside the box."},{"name":"icon","description":"The content icons, prepend and append — a broadcast. Chrome (the clear ✕, a chevron, the error / warning glyph) is never in it."},{"name":"spinner","description":"The spinner inside the box while `loading`."},{"name":"prefix","description":"The `#prefix` slot's wrapper, inside the box before the input."},{"name":"suffix","description":"The `#suffix` slot's wrapper, inside the box after the input."},{"name":"clear","description":"The ✕ that empties this control (`clearable`) — one node, never a chip's own ✕."},{"name":"indicator","description":"The colour dot in the box that opens the palette."},{"name":"panel","description":"The palette surface — the popover's painted bubble on desktop, the sheet itself on a phone."},{"name":"sheet","description":"The bottom sheet the palette opens in on a phone — no node on desktop."},{"name":"swatch","description":"One palette swatch (after the `swatches` prop) — a broadcast resolved per swatch."}],"states":[{"name":"hasValue","description":"Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`)."},{"name":"selected","description":"Per node, on `swatch` only: the swatch that matches the value."},{"name":"readonly","description":"Component-wide: the control is `readonly` — shown, focusable, not editable."},{"name":"disabled","description":"Component-wide: the control is `disabled`."},{"name":"warnings","description":"Component-wide: the control is in its warning state (`warnings` / `has-warnings`) and not in an error state — errors win, so the two are never on together."},{"name":"errors","description":"Component-wide: the control is in its error state (`errors` / `has-errors`, or its validation) — the message line and the box turn red."},{"name":"open","description":"Component-wide: the palette is showing — `pt:indicator:open` styles the swatch button while it is."},{"name":"loading","description":"Component-wide: `loading` is on; the box shows its `spinner`."},{"name":"ghost","description":"On the field's parts: `variant: 'ghost'`. Below the real states, like every variant."},{"name":"outline","description":"On the field's parts: `variant: 'outline'`. Merged after the part's base entry and before its states, so the real states still win."},{"name":"secondary","description":"On the field's parts: `variant: 'secondary'`. Below the real states, like every variant."}]},"tree":{"bindings":[{"part":"controlAttrs","target":"input.bb-color-input__input"},{"part":"input","target":"input.bb-color-input__input"},{"part":"indicator","target":"button.bb-color-input__indicator"},{"part":"suffix","target":"span.bb-field-input__suffix"}],"forwards":[{"to":"BbColorPalette","mapping":"{ panel: 'panel', sheet: 'sheet', swatch: 'swatch' }"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbColorInput","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"CommonFieldInput","kind":"internal","vocabulary":"BbColorInput","bindings":[{"part":"box","target":"span.bb-field-input__box"},{"part":"prefix","target":"span.bb-field-input__prefix"},{"part":"icon","target":"BbIcon"},{"part":"clear","target":"ClearableButton"},{"part":"spinner","target":"BbSpinner"},{"part":"suffix","target":"span.bb-field-input__suffix"}],"cssProps":[{"name":"--bg","documented":true,"readBy":["bb-field-input","bb-field-input__box"]},{"name":"--bg-hover","documented":true,"readBy":["bb-field-input__box"]},{"name":"--bg-focus","documented":true,"readBy":["bb-field-input__box"]},{"name":"--bg-disabled","documented":true,"readBy":["bb-field-input__box"]},{"name":"--fg-disabled","documented":true,"readBy":["bb-field-input__box","bb-field-input__prefix","bb-field-input__suffix","bb-field-input__prepend-icon","bb-field-input__append-icon"]},{"name":"--border-color","documented":true,"readBy":["bb-field-input","bb-field-input__box"]},{"name":"--border-focus","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ring-size","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ring-color","documented":true,"readBy":["bb-field-input__box"]},{"name":"--elev","documented":true,"readBy":["bb-field-input__box"]},{"name":"--frost","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ph","documented":true},{"name":"--inside-label-clearance","documented":true,"readBy":["bb-field-input__box","bb-field-input__prefix","bb-field-input__suffix"]},{"name":"--ring-t","documented":false,"readBy":["bb-field-input__box"]}],"children":[{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"WarningIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-warning-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"ClearableButton","kind":"internal","children":[{"name":"BbIcon","kind":"public"}]},{"name":"BbIcon","kind":"public"},{"name":"BbSpinner","kind":"public"}]},{"name":"BbColorPalette","kind":"public"}]},"css":{"classes":{"bb-color-input":["","__field","__indicator","__input"]},"locals":["--color-gray-200","--elev","--ring-t"],"surface":{"stable":[{"class":"bb-color-input","tag":"CommonField","part":"root"},{"class":"bb-color-input__input","tag":"input","part":"input"},{"class":"bb-color-input__indicator","tag":"button","part":"indicator","reads":["--elev","--ring-t"]}],"internal":[{"class":"bb-color-input__field","tag":"CommonFieldInput"}],"via":[{"part":"icon","component":"BbIcon"},{"part":"spinner","component":"BbSpinner"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"},{"part":"box","target":"span.bb-field-input__box"},{"part":"prefix","target":"span.bb-field-input__prefix"},{"part":"suffix","target":"span.bb-field-input__suffix"},{"part":"clear","target":"ClearableButton"}],"unaligned":{"parts":["label","panel","sheet","swatch"],"states":["hasValue","selected","readonly","disabled","warnings","errors","open","loading","ghost","outline","secondary"]}}},"attrTargets":["div","input"],"config":"labelMode*, validationMode*, autocomplete*, compact*, layout*, reverse*, adaptive*, variants","removed":[{"name":"picker","new":"eyeDropper","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-input.md","silent":true,"fix":{"kind":"rename"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-color-input.md","silent":true,"fix":{"kind":"rename"}},{"name":"prepend-outer","new":"prepend:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"append-outer","new":"append:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"picker","to":"eyeDropper","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-input.md","fix":{"kind":"rename"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-color-input.md","fix":{"kind":"rename"}},{"from":"prepend-outer","to":"prepend:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"append-outer","to":"append:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
388
392
|
{"name":"BbColorPalette","group":"Overlay","description":"Opens an anchored popover color palette for color picking interactions.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbColorPalette.md","source":"ai/source/BbColorPalette.md","props":[{"name":"activator","type":"ElementOrComponentRef | undefined","required":false,"description":"External activator element or component ref. When provided, the `activator` slot is not rendered and click listeners are attached programmatically to the referenced element — mirroring the BbDropdown activator API."},{"name":"adaptive","type":"boolean | undefined","required":false,"default":"`all.adaptive` (`true`)","description":"When `true`, the palette opens as a bottom off-canvas sheet on mobile viewports instead of a floating popover; on desktop it stays a popover. Mirrors the adaptive behaviour of `BbPopover`/`BbDropdown`/`BbDatePicker`.\n\nWhen unset, falls back to the global `all.adaptive`."},{"name":"alpha","type":"boolean | undefined","required":false,"default":"false","description":"Enable the alpha channel. The picker shows an opacity slider and emits `#RRGGBBAA` hex8 values."},{"name":"anchor","type":"ElementOrComponentRef | undefined","required":false,"description":"Element or component ref the popover positions itself relative to. Defaults to the activator element when omitted, allowing the popover to be anchored to a larger container (e.g. the full input row) while a smaller element (e.g. a color dot) remains the click target."},{"name":"boundary","type":"ElementOrComponentRefOrSelector | undefined","required":false,"description":"Constrains the popover within a bounding element: it stays inside it alongside its trigger (sideways for a popover above or below); away from the trigger it may pass the edge, and it flips at the viewport only. Accepts an HTMLElement, a Vue component ref, or a CSS selector string."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disable all interaction (activator and palette)."},{"name":"disableFlip","type":"boolean | undefined","required":false,"default":"false","description":"Disables the automatic flip to the opposite side when the popover would overflow (flipping is on by default)."},{"name":"eager","type":"boolean | undefined","required":false,"default":"false","description":"Renders the palette panel at mount instead of on the first open (the phone sheet's too)."},{"name":"eyeDropper","type":"boolean | undefined","required":false,"default":"false","description":"Show an eyedropper button inside the palette to sample any color on screen. Uses the native EyeDropper API — hidden automatically on unsupported browsers."},{"name":"label","type":"string | undefined","required":false,"description":"Accessible label. The activator is named by it followed by the activator's own text, through `aria-labelledby`. Defaults to the locale string for \"Open color picker\" when omitted."},{"name":"modelValue","type":"string | null","required":true,"description":"v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when `alpha` is enabled), or `null` when empty."},{"name":"offCanvasProps","type":"Partial<BbOffCanvasProps> | undefined","required":false,"description":"Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back."},{"name":"offset","type":"number | undefined","required":false,"default":"4","description":"Space the floating container will maintain from the activator."},{"name":"padding","type":"number | undefined","required":false,"default":"6","description":"Minimum empty space to keep from the edge of the page"},{"name":"placement","type":"Placement | undefined","required":false,"description":"Position of the overlay in respect to the related activator."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"swatch\"]; readonly states: readonly [\"selected\", \"open\"]; readonly wide: readonly [\"open\"]; readonly node: { readonly swatch: readonly [\"selected\"]; }; }> & { root?: PtValue | undefined; panel?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; sheet?: PtValue | undefined; swatch?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"swatch:open\"?: PtValue | undefined; \"swatch:selected\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:open","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:open","type":"PtValue | undefined","required":false},{"name":"pt:sheet","type":"PtValue | undefined","required":false},{"name":"pt:sheet:open","type":"PtValue | undefined","required":false},{"name":"pt:swatch","type":"PtValue | undefined","required":false},{"name":"pt:swatch:open","type":"PtValue | undefined","required":false},{"name":"pt:swatch:selected","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Prevent opening the palette while keeping the activator visible."},{"name":"swatches","type":"boolean | string[][] | undefined","required":false,"description":"Controls swatches display in the picker:\n- `true` — show the built-in Material-palette swatches\n- `string[][]` — show custom swatches (each inner array = a column of shades)\n- `false` / omitted — no swatches section"},{"name":"transitionDuration","type":"number | undefined","required":false,"default":"250","description":"How long the transition has to last in milliseconds"}],"events":[{"name":"hidden","signature":"(): void","description":"Emitted once the palette has finished closing."},{"name":"hide","signature":"(): void","description":"Emitted as soon as the palette starts to close."},{"name":"show","signature":"(): void","description":"Emitted as soon as the palette (the popover, or the sheet on a phone) starts to open."},{"name":"shown","signature":"(): void","description":"Emitted once the palette is open and its open transition has finished."},{"name":"update:modelValue","signature":"(value: string): void","description":"Emitted when a color is picked. Payload is a concrete `#RRGGBB` (or `#RRGGBBAA` when alpha is enabled) — the palette always emits a color, never `null`."}],"slots":[{"name":"activator","type":"BbColorPaletteActivatorSlotProps","fields":["anchorProps: BbColorPaletteAnchorProps","disabled: boolean","open: boolean","props: BbColorPaletteActivatorProps","value: string | null"],"description":"Custom activator element. Apply `v-bind=\"props\"` to the element you want to use as the trigger — this wires up the ref callback that lets BbColorPalette track the element."}],"exposed":[],"models":[{"name":"modelValue","type":"string | null"}],"cssProps":[{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-color-palette__canvas-wrap"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-color-palette__eyedropper"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-color-palette__slider-wrap"},{"name":"--edge","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-color-palette__swatch","description":"The swatch's own edge: a text-tone hairline, so a pale swatch reads on a light panel AND a deep one (green-900, indigo-900) on a dark panel — a fixed black 8% vanished there."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-color-palette__swatch"}],"pt":{"parts":[{"name":"root","description":"The floating element — an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet: style what you see with `panel`."},{"name":"panel","description":"The picker surface you see — the popover's painted bubble on desktop, the sheet itself on a phone — holding the canvas, the sliders and the swatches. The canvas and the sliders are not parts."},{"name":"sheet","description":"The bottom sheet on a phone only (the `BbOffCanvas` root). Applied after `panel`, so it wins a conflict there."},{"name":"swatch","description":"One swatch (after the `swatches` prop) — a broadcast resolved per swatch."}],"states":[{"name":"selected","description":"Per node, on `swatch`: the swatch that matches the value."},{"name":"open","description":"Component-wide: the palette is showing."}]},"tree":{"bindings":[{"part":"swatch","target":"button.bb-color-palette__swatch"},{"part":"panel","target":"div"},{"part":"panel","target":"CommonPopover"}],"forwards":[{"to":"BbOffCanvas","mapping":"{ panel: 'root', sheet: 'root' }"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"BbOffCanvas","kind":"public"},{"name":"CommonPopover","kind":"internal"}]},"css":{"classes":{"bb-color-palette":["","__canvas","__canvas-announcer","__canvas-thumb","__canvas-wrap","__controls","__eyedropper","__panel","__preview","__preview--alpha","__preview-wrap","__sheet","__slider-thumb","__slider-track","__slider-wrap","__slider-wrap--alpha","__sliders","__swatch","__swatch--active","__swatch-group","__swatches"]},"locals":["--bubble-border-w","--color-gray-200","--edge","--hit","--picker-preview-color","--ring-t","--swatch-gap"],"surface":{"stable":[{"class":"bb-color-palette","tag":"CommonPopover","part":"root"},{"class":"bb-color-palette__panel","part":"panel","reads":["--bubble-border-w"]},{"class":"bb-color-palette__sheet","tag":"BbOffCanvas","part":"sheet"},{"class":"bb-color-palette__swatch","tag":"button","part":"swatch","reads":["--edge","--hit","--ring-t","--swatch-gap"]}],"internal":[{"class":"bb-color-palette__canvas","tag":"canvas"},{"class":"bb-color-palette__canvas-announcer","tag":"div"},{"class":"bb-color-palette__canvas-thumb","tag":"div"},{"class":"bb-color-palette__canvas-wrap","tag":"div","reads":["--ring-t"]},{"class":"bb-color-palette__controls","tag":"div"},{"class":"bb-color-palette__eyedropper","tag":"button","reads":["--hit","--ring-t"]},{"class":"bb-color-palette__preview","tag":"div","reads":["--picker-preview-color"]},{"class":"bb-color-palette__preview--alpha","tag":"div","reads":["--picker-preview-color"]},{"class":"bb-color-palette__preview-wrap","tag":"div"},{"class":"bb-color-palette__slider-thumb","tag":"div"},{"class":"bb-color-palette__slider-track","tag":"canvas"},{"class":"bb-color-palette__slider-wrap","tag":"div","reads":["--hit","--ring-t"]},{"class":"bb-color-palette__slider-wrap--alpha","tag":"div"},{"class":"bb-color-palette__sliders","tag":"div","reads":["--hit"]},{"class":"bb-color-palette__swatch--active","tag":"button","reads":["--edge"]},{"class":"bb-color-palette__swatch-group","tag":"div","reads":["--swatch-gap"]},{"class":"bb-color-palette__swatches","tag":"div","reads":["--swatch-gap"]}],"unaligned":{"states":["selected","open"]}}},"attrTargets":["dialog"],"config":"adaptive*","removed":[{"name":"arrowPadding","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},{"name":"flip","new":"disableFlip","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"invert"}},{"name":"picker","new":"eyeDropper","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"rename"}},{"name":"showArrow","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},{"name":"pt:root:selected","new":null,"surface":"pt","hint":"it never applied anything: `selected` is a state of `swatch` only (`pt:swatch:selected`)","since":"3.0.0-beta.31","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},{"name":"pt:panel:selected","new":null,"surface":"pt","hint":"it never applied anything: `selected` is a state of `swatch` only (`pt:swatch:selected`)","since":"3.0.0-beta.31","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},{"name":"pt:sheet:selected","new":null,"surface":"pt","hint":"it never applied anything: `selected` is a state of `swatch` only (`pt:swatch:selected`)","since":"3.0.0-beta.31","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},{"name":"update:open","new":null,"surface":"event","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"flip","to":"disableFlip","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","fix":{"kind":"invert"}},{"from":"picker","to":"eyeDropper","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","fix":{"kind":"rename"}}]},
|
|
@@ -397,6 +401,7 @@
|
|
|
397
401
|
{"name":"BbDropdownGroup","group":"Overlay","description":"Renderless v-model companion for a group declared in BbDropdown.items, bound by id.","referenceOnly":false,"hasGuide":false,"contract":"ai/BbDropdownGroup.md","source":"ai/source/BbDropdownGroup.md","props":[{"name":"id","type":"string","required":true,"description":"Identifier of the group to bind to — must match the `id` of a group declared in the host `BbDropdown`'s `items`."},{"name":"modelValue","type":"any","required":false,"description":"The group's selection: one value for a single group, an array for a `multiple` one. Read by the owning BbDropdown through the group's `id`."}],"events":[{"name":"item:selected","signature":"(value: any): void","description":"The user picked a row, at the click, a pick you then refuse included — with the row's value (its `item-value` for pipeline groups, else its `value`), symmetric with `BbTable`. Your own `v-model` changes fire none."},{"name":"item:unselected","signature":"(value: any): void","description":"The user unpicked a row (or a single pick replaced it), with its resolved value."},{"name":"update:modelValue","signature":"(value: any): void","description":"The value a user change asks for (a pick, a chip ×, a coherence prune). With a listener the group is controlled: the rows tick when you write the value, and ignoring it leaves them as they are."}],"slots":[{"name":"default","type":"{}"}],"exposed":[],"models":[{"name":"modelValue","type":"any"}]},
|
|
398
402
|
{"name":"BbDropzone","group":"Inputs","description":"Supports drag-and-drop file input flows.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbDropzone.md","source":"ai/source/BbDropzone.md","props":[{"name":"accept","type":"string[] | undefined","required":false,"description":"File filter: MIME types (`'image/png'`), wildcards (`'image/*'`), extensions (`'.png'`) or bare tokens (`'png'`, upgraded to the extension and its MIME type from the lazily imported `mime` database; files that arrive earlier wait for it)."},{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component"},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"maxFiles","type":"number | undefined","required":false,"description":"Maximum number of acceptable files."},{"name":"maxSize","type":"number | undefined","required":false,"description":"Max size of the files in bytes."},{"name":"modelValue","type":"File | File[] | null | undefined","required":false,"description":"Used by v-model."},{"name":"multiple","type":"boolean","required":false,"description":"Allows the selection of multiple items.","default":"false"},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"content\", \"message\"]; readonly states: readonly [\"readonly\", \"disabled\", \"warnings\", \"errors\", \"active\"]; readonly wide: readonly [\"readonly\", \"disabled\", \"warnings\", \"errors\", \"active\"]; }> & PtMap<BbDropzonePtPart, BbDropzonePtState>) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:content","type":"PtValue | undefined","required":false},{"name":"pt:content:active","type":"PtValue | undefined","required":false},{"name":"pt:content:disabled","type":"PtValue | undefined","required":false},{"name":"pt:content:errors","type":"PtValue | undefined","required":false},{"name":"pt:content:readonly","type":"PtValue | undefined","required":false},{"name":"pt:content:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:active","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:active","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Shows the files; the user cannot change them: drop, the file picker and the `open()` slot prop do nothing, yet the input stays focusable and a `name`d zone still submits its files (unlike `disabled`). Your slot renders the list: hide your remove buttons with the slot's `readonly`."},{"name":"rules","type":"RuleExpression<File | File[] | null>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"tag","type":"LayoutTag | undefined","required":false,"default":"\"div\"","values":["div","span"],"description":"Element rendered as the component's wrapper."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the dropzone, a string or string array: amber, in their own `aria-live` region, and in the control's `aria-describedby` after the errors. A non-empty list implies the warning state; errors win when both are set."}],"events":[{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the file input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"error","signature":"(errors: DropZoneError[]): void","description":"Emitted once per drop or pick that rejected any file, AFTER that gesture's `update:modelValue` (if any): all its rejections (size, type, uniqueness, max count), in file order. A clean drop emits none: clear your messages on `update:modelValue`, set them here."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the file input receives focus. Forwards the original DOM `FocusEvent`."},{"name":"update:modelValue","signature":"(value: File | File[] | null): void","description":"Emitted when the selected files change. Payload is the new file or file array."}],"slots":[{"name":"default","type":"BbDropzoneDefaultSlotProps","fields":["dragging: boolean","focused: boolean","id: string","labelId: string","open: () => void","readonly: boolean"],"description":"The drop zone area content. Renders inside the `<label>` that captures drag and file input events. It is a region, not a label: its text does not name the input unless you mark one node with the `labelId` slot prop."}],"exposed":[],"models":[{"name":"modelValue","type":"File | File[] | null | undefined"}],"pt":{"parts":[{"name":"root","description":"The zone."},{"name":"content","description":"The drop region: the label that wraps the file input and your slot."},{"name":"message","description":"The errors / warnings region that holds a message — one part, on whichever is showing (errors win); an empty region never gets it."}],"states":[{"name":"readonly","description":"Component-wide: the zone is `readonly` — the files stay shown and submitted, the input stays focusable, nothing can be added."},{"name":"disabled","description":"Component-wide: the zone is `disabled`."},{"name":"warnings","description":"Component-wide: the zone shows warnings and no errors."},{"name":"errors","description":"Component-wide: the zone shows errors."},{"name":"active","description":"Component-wide: a drag is over the zone."}]},"tree":{"bindings":[{"part":"content","target":"label.bb-dropzone__content"},{"part":"message","target":"span.bb-dropzone__message"}],"nodes":[{"name":"BbSmoothHeight","kind":"public"}]},"css":{"classes":{"bb-dropzone":["","--disabled","--dragging","--errors","--focused","--readonly","--warnings","__content","__error","__errors","__message","__submittable-input","__submittable-label","__warning","__warnings"]},"locals":["--color-gray-200"],"surface":{"stable":[{"class":"bb-dropzone","part":"root"},{"class":"bb-dropzone__content","tag":"label","part":"content"},{"class":"bb-dropzone__message","tag":"span","part":"message"},{"class":"bb-dropzone--readonly","state":"readonly"},{"class":"bb-dropzone--disabled","state":"disabled"},{"class":"bb-dropzone--warnings","state":"warnings"},{"class":"bb-dropzone--errors","state":"errors"}],"internal":[{"class":"bb-dropzone--dragging"},{"class":"bb-dropzone--focused"},{"class":"bb-dropzone__error","tag":"span"},{"class":"bb-dropzone__errors","tag":"span"},{"class":"bb-dropzone__submittable-input","tag":"input"},{"class":"bb-dropzone__submittable-label","tag":"label"},{"class":"bb-dropzone__warning","tag":"span"},{"class":"bb-dropzone__warnings","tag":"span"}],"unaligned":{"states":["active"]}}},"attrTargets":["div"],"config":"validationMode*","removed":[{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
399
403
|
{"name":"BbForm","group":"Inputs","description":"Form host for the form controls inside it: owns the vee-validate form (useForm), validates every field on submit, and emits `submit` with the collected values only when the form is valid. `schema` takes any Standard Schema (Zod, Valibot, ArkType, Yup) as it is; a failed submit focuses the first invalid field on screen and emits `invalid`. Server errors (a 422): `setErrors(errors)` from the slot or `useBbForm(id)` puts each on its field.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbForm.md","source":"ai/source/BbForm.md","props":[{"name":"disableSubmitLock","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the fields editable while a `@submit` promise is pending (by default every joined field is read-only until it settles; a `@submit` that returns nothing never locks). Submit buttons spin either way."},{"name":"fieldErrors","type":"Record<string, unknown> | null | undefined","required":false,"description":"Server validation errors by field path (Inertia's `form.errors`, a Laravel 422 body), shown on their fields while they are in the object. They never block a submit; a key no field has is in `unmatchedErrors`. A one-off message: `setErrors`."},{"name":"id","type":"string | undefined","required":false,"description":"Lets anything outside the form read and drive it through `useBbForm(id)` (a dialog footer, a toolbar, a leave guard). It is also the `<form>`'s id, so `<button form=\"id\" type=\"submit\">` outside it submits it."},{"name":"keepValuesOnUnmount","type":"boolean | Ref<boolean, boolean> | undefined","required":false,"description":"Keep a field's value (and its place in `@submit`) when it unmounts — the `v-if` wizard step you left, a collapsed section. Off, an unmounted field drops out of the values."},{"name":"model","type":"Record<string, any> | undefined","required":false,"description":"The object the fields edit in place (`reactive()`, a `ref`, Pinia state, Inertia `useForm()`): bind it one way, `:model`, never `v-model`. A field without its own `v-model` reads and writes the value at its `name` path. Nothing is written on mount."},{"name":"schema","type":"MaybeRef<S | undefined>","required":false,"description":"One Standard Schema for the form (Zod, Valibot, ArkType, Yup, Joi, Effect), passed as is. An issue lands on the field whose `name` is its path; `@submit` gets the typed output. Set it at mount (a `computed` may change it); per-field `rules` are then ignored."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"description":"When the fields inside validate as the user works: `aggressive`, `balanced`, `lazy`, `submit-only` or `submit-live` (see `ValidationMode`). A field's own `validation-mode` wins. Unset: the app's `all.validationMode` (default `'balanced'`)."}],"events":[{"name":"invalid","signature":"(payload: BbFormInvalidPayload): void","description":"Fired when a submit fails validation (`source: 'submit'`) or server errors land (`'server'`: `setErrors()`, a new `field-errors` message), before the form's own focus; a handler that moves focus keeps it. `unmatched`: the paths no field claims."},{"name":"submit","signature":"(values: BbFormSubmitValues<S>, meta: BbFormSubmitMeta): void","description":"Fired only when every field passes. Carries the values — with a schema, its parsed OUTPUT (transforms and coercions applied), typed from it."}],"slots":[{"name":"default","type":"{ touched: boolean; dirty: boolean; valid: boolean; pending: boolean; initialValues?: Partial<GenericObject> | undefined; errors: Record<string, string[]>; fields: Record<string, BbFormFieldEntry>; isSubmitting: boolean; removeField: (path: string) => void; resetForm: (state?: Partial<FormState<GenericObject>> | undefined, opts?: Partial<ResetFormOpts> | undefined) => void; setErrors: (serverErrors: BbFormServerErrors, options?: BbFormSetErrorsOptions) => void; snapshot: (next?: Record<string, unknown> | undefined) => void; submitCount: number; unmatchedErrors: Record<string, string[]>; validate: (opts?: Partial<ValidationOptions> | undefined) => Promise<FormValidationResult<GenericObject, GenericObject>>; values: GenericObject; }"}],"exposed":[{"name":"$el","type":"HTMLFormElement | null","description":"The rendered element."}],"models":[],"attrTargets":["form"],"removed":[{"name":"modelValue","new":"model","since":"3.0.0-beta.42","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"modelValue","to":"model","since":"3.0.0-beta.42","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}}]},
|
|
404
|
+
{"name":"BbGallery","group":"Data Display","description":"A full-screen photo viewer (lightbox): swipe, arrows, keys, zoom; also the v-bb-gallery directive.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbGallery.md","source":"ai/source/BbGallery.md","props":[{"name":"closeOnBackdropClick","type":"boolean | undefined","required":false,"default":"false","description":"A click (or a tap) on the dark area around the photo closes the viewer. Off, it does nothing there (a tap still hides the bars); Escape, the close button and a swipe down always close."},{"name":"id","type":"string | undefined","required":false,"default":"undefined","description":"The name `v-bb-gallery` opens it by, nearest to the trigger first. Also the viewer's DOM id."},{"name":"items","type":"readonly (string | T)[]","required":true,"description":"The photos, in order: `{ src, alt, caption, … }` entries or image URLs."},{"name":"loop","type":"boolean | undefined","required":false,"default":"false","description":"Previous on the first photo goes to the last, next on the last to the first (buttons, keys and a swipe)."},{"name":"modelValue","type":"number | null | undefined","required":false,"default":"null","description":"The photo in the viewer, `null` while it is closed. Bind it to open the viewer yourself; `v-bb-gallery` opens it without one."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"header\", \"title\", \"close\", \"slide\", \"image\", \"caption\", \"prev\", \"next\", \"footer\", \"counter\", \"more\"]; readonly states: readonly [\"disabled\", \"active\", \"zoomed\"]; readonly wide: readonly [\"zoomed\"]; readonly node: { readonly slide: readonly [\"active\"]; readonly prev: readonly [\"disabled\"]; readonly next: readonly [\"disabled\"]; }; }> & { caption?: PtValue | undefined; footer?: PtValue | undefined; header?: PtValue | undefined; title?: PtValue | undefined; image?: PtValue | undefined; next?: PtValue | undefined; root?: PtValue | undefined; close?: PtValue | undefined; slide?: PtValue | undefined; prev?: PtValue | undefined; \"slide:active\"?: PtValue | undefined; \"next:disabled\"?: PtValue | undefined; \"prev:disabled\"?: PtValue | undefined; counter?: PtValue | undefined; more?: PtValue | undefined; \"caption:zoomed\"?: PtValue | undefined; \"footer:zoomed\"?: PtValue | undefined; \"header:zoomed\"?: PtValue | undefined; \"title:zoomed\"?: PtValue | undefined; \"image:zoomed\"?: PtValue | undefined; \"next:zoomed\"?: PtValue | undefined; \"root:zoomed\"?: PtValue | undefined; \"close:zoomed\"?: PtValue | undefined; \"slide:zoomed\"?: PtValue | undefined; \"prev:zoomed\"?: PtValue | undefined; \"counter:zoomed\"?: PtValue | undefined; \"more:zoomed\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix."},{"name":"pt:caption","type":"PtValue | undefined","required":false},{"name":"pt:caption:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:close","type":"PtValue | undefined","required":false},{"name":"pt:close:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:counter","type":"PtValue | undefined","required":false},{"name":"pt:counter:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:footer","type":"PtValue | undefined","required":false},{"name":"pt:footer:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:header","type":"PtValue | undefined","required":false},{"name":"pt:header:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:image","type":"PtValue | undefined","required":false},{"name":"pt:image:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:more","type":"PtValue | undefined","required":false},{"name":"pt:more:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:next","type":"PtValue | undefined","required":false},{"name":"pt:next:disabled","type":"PtValue | undefined","required":false},{"name":"pt:next:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:prev","type":"PtValue | undefined","required":false},{"name":"pt:prev:disabled","type":"PtValue | undefined","required":false},{"name":"pt:prev:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:slide","type":"PtValue | undefined","required":false},{"name":"pt:slide:active","type":"PtValue | undefined","required":false},{"name":"pt:slide:zoomed","type":"PtValue | undefined","required":false},{"name":"pt:title","type":"PtValue | undefined","required":false},{"name":"pt:title:zoomed","type":"PtValue | undefined","required":false},{"name":"title","type":"string | undefined","required":false,"default":"undefined","description":"A title in the top bar, also the viewer's accessible name. Unset, the bar shows only the close button and the name is the locale's \"Gallery\"."}],"events":[{"name":"update:modelValue","signature":"(value: number | null): void","description":"Emitted with the new value whenever `v-model` changes."}],"slots":[{"name":"footer","type":"BbGallerySlotProps<T>","fields":["index: number","count: number","item: T","go: (index: number) => void","close: () => void"],"description":"Replaces the counter with a row of your own across the bottom bar: your own counter, actions, or a filmstrip that calls `go`. The caption keeps its own one-line row directly above yours (there whenever any photo has one), so the photo never jumps."},{"name":"header","type":"BbGalleryHeaderSlotProps<T>","fields":["index: number","count: number","item: T","go: (index: number) => void","close: () => void","titleId: string","title: string"],"description":"Replaces the whole top bar (title and close button), so it owns closing: wire your control to `close`, and `titleId` onto your title."},{"name":"title","type":"BbGalleryTitleSlotProps<T>","fields":["index: number","count: number","item: T","go: (index: number) => void","close: () => void","text: string"],"description":"Replaces the title text in the top bar; it still names the viewer."}],"exposed":[],"models":[{"name":"modelValue","type":"number | null | undefined"}],"cssProps":[{"name":"--viewer-bg","value":"rgb(12 12 12)","selector":".bb-gallery","description":"The viewer's own: its plate and text, the bars' padding, the buttons. Every colour follows `--viewer-bg` / `--viewer-fg` (the muted text the ink, the arrows' plate the plate colour), so a light viewer is those two plus `color-scheme: light`; a derived local set directly wins."},{"name":"--viewer-fg","value":"rgb(244 244 242)","selector":".bb-gallery"},{"name":"--viewer-muted","value":"color-mix(in oklab, var(--viewer-fg) 75%, transparent)","selector":".bb-gallery"},{"name":"--mark","value":"var(--viewer-fg)","selector":".bb-gallery","description":"A picker strip inside takes its current and focus marks from here."},{"name":"--mark-bg","value":"var(--viewer-bg)","selector":".bb-gallery"},{"name":"--bar-px","value":"max(16px, env(safe-area-inset-left), env(safe-area-inset-right))","selector":".bb-gallery"},{"name":"--nav-size","value":"44px","selector":".bb-gallery"},{"name":"--plate","value":"color-mix(in oklab, var(--viewer-bg) 60%, transparent)","selector":".bb-gallery"},{"name":"--dismiss","value":"0","selector":".bb-gallery"},{"name":"--dismiss-y","value":"0px","selector":".bb-gallery"},{"name":"--d","value":"var(--bb-transition-medium)","selector":".bb-gallery"}],"pt":{"parts":[{"name":"root","description":"The full-screen viewer (a native modal `dialog`)."},{"name":"header","description":"The top bar."},{"name":"title","description":"The title line in the bar. Not rendered when a `#header` slot replaces the bar."},{"name":"close","description":"The close button. Not rendered when a `#header` slot replaces the bar."},{"name":"slide","description":"Each slide (`figure`), per item (`active` on the one shown)."},{"name":"image","description":"Each photo."},{"name":"caption","description":"The caption in the bottom bar: one line, or the full text running upward from it when opened."},{"name":"prev","description":"The previous button (`disabled` on the first photo, never with `loop`)."},{"name":"next","description":"The next button (`disabled` on the last photo, never with `loop`)."},{"name":"footer","description":"The bottom bar."},{"name":"counter","description":"The \"3 / 12\" in the bottom bar. Not rendered when a `#footer` slot replaces it."},{"name":"more","description":"The button that reads a caption too long for its line in full (\"More\", and \"Less\" while it is open). Only there while the photo shown has such a caption."}],"states":[{"name":"disabled","description":"Per node: `prev` on the first photo, `next` on the last."},{"name":"active","description":"Per node: the slide shown."},{"name":"zoomed","description":"Component-wide: the photo shown is zoomed in."}]},"tree":{"bindings":[{"part":"header","target":"div.bb-gallery__header"},{"part":"title","target":"p.bb-gallery__title"},{"part":"close","target":"CloseButton"},{"part":"slide","target":"figure.bb-gallery__slide"},{"part":"image","target":"img.bb-gallery__image"},{"part":"prev","target":"button.bb-gallery__nav"},{"part":"next","target":"button.bb-gallery__nav"},{"part":"footer","target":"div.bb-gallery__footer"},{"part":"caption","target":"p.bb-gallery__caption"},{"part":"more","target":"button.bb-gallery__more"},{"part":"counter","target":"p.bb-gallery__counter"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"CloseButton","kind":"internal","cssProps":[{"name":"--size","documented":true,"readBy":["bb-close-button"]},{"name":"--p","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-size","documented":true},{"name":"--ring-t","documented":false,"readBy":["bb-close-button"]}],"children":[{"name":"BbIcon","kind":"public"}]}]},"css":{"classes":{"bb-gallery":["","--dismissing","--gesture","--open","--quiet","--visible","--zoomed","__bar","__caption","__caption--open","__caption-text","__close","__counter","__footer","__frame","__header","__image","__image--sized","__missing","__missing--blank","__more","__nav","__nav--next","__nav--prev","__slide","__slide--active","__stage","__title","__track"],"bb-gallery-caption-":["*"],"bb-gallery-title-":["*"]},"locals":["--arh","--arw","--bar-px","--color-gray-200","--d","--dismiss","--dismiss-y","--nav-size","--page-ff","--page-fs","--page-lh","--plate","--scrollbar-width","--viewer-bg","--viewer-fg","--viewer-muted","--w"],"surface":{"stable":[{"class":"bb-gallery","tag":"dialog","part":"root","reads":["--d","--dismiss","--viewer-bg","--viewer-fg"]},{"class":"bb-gallery__header","tag":"div","part":"header","reads":["--bar-px","--dismiss","--nav-size","--viewer-bg"]},{"class":"bb-gallery__title","tag":"p","part":"title","reads":["--viewer-fg"]},{"class":"bb-gallery__close","tag":"CloseButton","part":"close","reads":["--nav-size","--viewer-fg"]},{"class":"bb-gallery__slide","tag":"figure","part":"slide","reads":["--bar-px","--nav-size"]},{"class":"bb-gallery__image","tag":"img","part":"image","reads":["--dismiss","--dismiss-y","--viewer-fg"]},{"class":"bb-gallery__caption","tag":"p","part":"caption","reads":["--viewer-fg","--viewer-muted"]},{"class":"bb-gallery__footer","tag":"div","part":"footer","reads":["--bar-px","--dismiss","--nav-size","--viewer-bg"]},{"class":"bb-gallery__counter","tag":"p","part":"counter","reads":["--viewer-muted"]},{"class":"bb-gallery__more","tag":"button","part":"more","reads":["--viewer-fg"]},{"class":"bb-gallery__slide--active","tag":"figure","state":"active"},{"class":"bb-gallery--zoomed","tag":"dialog","state":"zoomed"}],"internal":[{"class":"bb-gallery--dismissing","tag":"dialog"},{"class":"bb-gallery--gesture","tag":"dialog"},{"class":"bb-gallery--open","tag":"dialog"},{"class":"bb-gallery--quiet","tag":"dialog"},{"class":"bb-gallery--visible","tag":"dialog","reads":["--scrollbar-width"]},{"class":"bb-gallery__bar","tag":"div"},{"class":"bb-gallery__caption--open","tag":"p","reads":["--bar-px","--viewer-bg","--viewer-fg"]},{"class":"bb-gallery__caption-text","tag":"span"},{"class":"bb-gallery__frame","tag":"div"},{"class":"bb-gallery__image--sized","tag":"img","reads":["--arh","--arw","--w"]},{"class":"bb-gallery__missing","tag":"p","reads":["--viewer-muted"]},{"class":"bb-gallery__missing--blank","tag":"p","reads":["--viewer-fg"]},{"class":"bb-gallery__nav","tag":"button","reads":["--nav-size","--plate","--viewer-bg","--viewer-fg"]},{"class":"bb-gallery__nav--next","tag":"button","reads":["--bar-px"]},{"class":"bb-gallery__nav--prev","tag":"button","reads":["--bar-px"]},{"class":"bb-gallery__stage","tag":"div"},{"class":"bb-gallery__track","tag":"div"}],"lands":[{"part":"prev","target":"button.bb-gallery__nav"},{"part":"next","target":"button.bb-gallery__nav"}],"unaligned":{"states":["disabled"]}}},"attrTargets":["dialog"]},
|
|
400
405
|
{"name":"BbHost","group":"Overlay","description":"Renders confirm() and toast(); the plugin renders one, place one per scoped area.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbHost.md","source":"ai/source/BbHost.md","props":[],"events":[],"slots":[],"exposed":[],"models":[],"tree":{"nodes":[{"name":"BbToast","kind":"internal","cssProps":[{"name":"--gap","documented":true,"readBy":["bb-toast","bb-toast__inner"]},{"name":"--pile-gap","documented":true,"readBy":["bb-toast__panel"]},{"name":"--offset","documented":true,"readBy":["bb-toast--top-left","bb-toast--top-center","bb-toast--top-right","bb-toast--bottom-left","bb-toast--bottom-center","bb-toast--bottom-right","bb-toast"]},{"name":"--width","documented":true,"readBy":["bb-toast"]},{"name":"--lift","documented":true,"readBy":["bb-toast__panel","bb-toast__panel--mounted","bb-toast__panel--removed"]},{"name":"--stack-y","documented":true,"readBy":["bb-toast__panel"]},{"name":"--stack-scale","documented":true,"readBy":["bb-toast__panel"]},{"name":"--enter-y","documented":true,"readBy":["bb-toast__panel"]},{"name":"--swipe-amount","documented":true,"readBy":["bb-toast__panel"]},{"name":"--z","documented":true,"readBy":["bb-toast__panel"]},{"name":"--r","documented":true,"readBy":["bb-toast__panel"]},{"name":"--ring-size","documented":true,"readBy":["bb-toast__close"]},{"name":"--bg","documented":true,"readBy":["bb-toast__panel","bb-toast__close"]},{"name":"--border-color","documented":true,"readBy":["bb-toast__panel"]},{"name":"--bw","documented":true,"readBy":["bb-toast__panel","bb-toast__inner","bb-toast__close"]},{"name":"--fg","documented":true,"readBy":["bb-toast__panel","bb-toast__title","bb-toast__text","bb-toast__close"]},{"name":"--icon-color","documented":true,"readBy":["bb-toast__icon"]},{"name":"--gap","documented":true,"readBy":["bb-toast","bb-toast__inner"]},{"name":"--align","documented":false,"readBy":["bb-toast__inner"]},{"name":"--ring-t","documented":false,"readBy":["bb-toast__close"]},{"name":"--icon-color","documented":false,"readBy":["bb-toast__icon"]},{"name":"--icon-color","documented":false,"readBy":["bb-toast__icon"]},{"name":"--icon-color","documented":false,"readBy":["bb-toast__icon"]},{"name":"--icon-color","documented":false,"readBy":["bb-toast__icon"]},{"name":"--icon-color","documented":false,"readBy":["bb-toast__icon"]}],"children":[{"name":"BbToastRegion","kind":"internal","vocabulary":"BbToast","bindings":[{"part":"root","target":"ol.bb-toast"}],"children":[{"name":"BbToastMessage","kind":"internal","children":[{"name":"BbIcon","kind":"public"},{"name":"BbSpinner","kind":"public"},{"name":"BbButton","kind":"public"}]}]}]}]}},
|
|
401
406
|
{"name":"BbHoverCard","group":"Overlay","description":"A rich preview card that opens on hover or keyboard focus (a person, an event, a link) — BbPopover's panel without the click; may hold commands that also exist elsewhere; also the v-bb-hover-card directive.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbHoverCard.md","source":"ai/source/BbHoverCard.md","props":[{"name":"activator","type":"ElementOrComponentRef | undefined","required":false,"description":"External activator element or component ref. When provided, the activator slot is not rendered and the hover / focus listeners are attached programmatically to the referenced element."},{"name":"boundary","type":"ElementOrComponentRefOrSelector | undefined","required":false,"description":"Constrains the card within a bounding element: it stays inside it alongside its trigger (sideways for a card above or below); away from the trigger it may pass the edge, and it flips at the viewport only. Accepts an HTMLElement, a Vue component ref, or a CSS selector string."},{"name":"delay","type":"number | undefined","required":false,"default":"350","description":"Milliseconds the pointer (or keyboard focus) rests on the activator before the card shows; longer than BbTooltip's, so passing over does not open it. Closing has a fixed grace (guide § Timing and the safe zone)."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component. Disabling an open card closes it."},{"name":"eager","type":"boolean | undefined","required":false,"default":"false","description":"Renders the card's content at mount instead of on the first open."},{"name":"id","type":"string | undefined","required":false,"description":"The activator's id (the card is `bbhc_<id>`, and is labelled by it once it holds a control). Generated when omitted."},{"name":"modelValue","type":"boolean | undefined","required":false,"default":"false","description":"Used by v-model to open / close the card. A card with no `v-model` starts closed and is driven by hover and keyboard focus."},{"name":"offset","type":"number | undefined","required":false,"default":"4","description":"Space the floating container will maintain from the activator."},{"name":"padding","type":"number | undefined","required":false,"default":"10","description":"Minimum empty space to keep from the edge of the page."},{"name":"placement","type":"Placement | undefined","required":false,"default":"\"bottom\"","values":["start","end","top","bottom","left","right","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end","start-start","start-end","end-start","end-end"],"description":"Position of the card relative to the activator."},{"name":"pt","type":"PtMap<BbHoverCardPtPart, \"open\"> | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:content","type":"PtValue | undefined","required":false},{"name":"pt:content:open","type":"PtValue | undefined","required":false},{"name":"pt:footer","type":"PtValue | undefined","required":false},{"name":"pt:footer:open","type":"PtValue | undefined","required":false},{"name":"pt:header","type":"PtValue | undefined","required":false},{"name":"pt:header:open","type":"PtValue | undefined","required":false},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:open","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:open","type":"PtValue | undefined","required":false},{"name":"scrollable","type":"boolean | undefined","required":false,"default":"false","description":"Caps the card height to the available viewport space and enables internal scrolling."},{"name":"transitionDuration","type":"number | undefined","required":false,"default":"250","description":"How long the transition has to last in milliseconds."},{"name":"width","type":"string | number | undefined","required":false,"description":"Width of the card. Accepts pixels or percentage (relative to activator width)."}],"events":[{"name":"hidden","signature":"(): void","description":"Emitted after the card is fully closed."},{"name":"hide","signature":"(): void","description":"Emitted as soon as the card starts to close (model becomes false)."},{"name":"show","signature":"(): void","description":"Emitted as soon as the card starts to open (model becomes true)."},{"name":"shown","signature":"(): void","description":"Emitted after the card is fully opened. Focus never moves on open."},{"name":"update:modelValue","signature":"(value: boolean): void","description":"Emitted with the new value whenever `v-model` changes."}],"slots":[{"name":"activator","type":"BbHoverCardActivatorSlotProps","fields":["disabled: boolean","open: boolean","placement: Placement","props: { 'aria-expanded'?: boolean | undefined; 'aria-controls'?: string | undefined; id: string; ref: (reference: unknown) => void; onPointerenter: (event: PointerEvent) => void; onPointerleave: (event: PointerEvent) => void; onFocusin: (event: FocusEvent) => void; onFocusout: (event: FocusEvent) => void; onKeydown: (event: KeyboardEvent) => void; onPointerdown: (event: PointerEvent) => void; onContextmenu: (event: MouseEvent) => void; }"],"description":"The element the card describes. Spread `props` onto it; it must be focusable (a link or a button) so a keyboard user can open the card too."},{"name":"default","type":"BbHoverCardDefaultSlotProps","fields":["close: () => void","disabled: boolean","open: boolean","placement: Placement"],"description":"The card body."},{"name":"footer","type":"BbHoverCardDefaultSlotProps","fields":["close: () => void","disabled: boolean","open: boolean","placement: Placement"],"description":"Content pinned to the bottom of the card, outside the scroll region."},{"name":"header","type":"BbHoverCardDefaultSlotProps","fields":["close: () => void","disabled: boolean","open: boolean","placement: Placement"],"description":"Content pinned to the top of the card, outside the scroll region."}],"exposed":[],"models":[{"name":"modelValue","type":"boolean | undefined"}],"pt":{"parts":[{"name":"root","description":"The floating element — an invisible positioning wrapper; a `class` on the component lands here, and so does `role=\"group\"` once the card holds a control."},{"name":"panel","description":"The surface you see — the bordered box that paints the card and lays out its bands."},{"name":"header","description":"The header band."},{"name":"content","description":"The body band."},{"name":"footer","description":"The footer band."}],"states":[{"name":"open","description":"Component-wide: the card is open."}]},"tree":{"bindings":[{"part":"panel","target":"CommonPopover"},{"part":"root","target":"CommonPopover"},{"part":"header","target":"span.bb-hover-card__header"},{"part":"content","target":"span.bb-hover-card__content"},{"part":"footer","target":"span.bb-hover-card__footer"}],"nodes":[{"name":"CommonPopover","kind":"internal"}]},"css":{"classes":{"bb-hover-card":["","__content","__footer","__header","__panel","__panel--scrollable"]},"locals":["--color-gray-200","--max-h"],"surface":{"stable":[{"class":"bb-hover-card","tag":"CommonPopover","part":"root"},{"class":"bb-hover-card__panel","part":"panel","reads":["--max-h"]},{"class":"bb-hover-card__header","tag":"span","part":"header"},{"class":"bb-hover-card__content","tag":"span","part":"content"},{"class":"bb-hover-card__footer","tag":"span","part":"footer"}],"internal":[{"class":"bb-hover-card__panel--scrollable","reads":["--max-h"]}],"unaligned":{"states":["open"]}}},"attrTargets":["span"]},
|
|
402
407
|
{"name":"BbHoverCardPortal","group":"Overlay","description":"Registers named slot content that `v-bb-hover-card=\"'name'\"` (or `{ portal: 'name' }`) renders in the card; slot `{ data, close }`.","referenceOnly":false,"hasGuide":false,"contract":"ai/BbHoverCardPortal.md","source":"ai/source/BbHoverCardPortal.md","props":[{"name":"name","type":"string","required":true,"description":"The name a `v-bb-hover-card` passes as its value (`\"'name'\"`) or as `portal: 'name'`."}],"events":[],"slots":[{"name":"default","type":"BbHoverCardPortalSlotProps","fields":["data: P","close: () => void"],"description":"The card's body. `data` is the directive's `data`; `close` closes the card."}],"exposed":[],"models":[]},
|
|
@@ -409,18 +414,18 @@
|
|
|
409
414
|
{"name":"BbPopoverPortal","group":"Overlay","description":"Registers named slot content that `v-bb-popover=\"'name'\"` (or `{ portal: 'name' }`) renders in the popover; slot `{ data, close }`.","referenceOnly":false,"hasGuide":false,"contract":"ai/BbPopoverPortal.md","source":"ai/source/BbPopoverPortal.md","props":[{"name":"name","type":"string","required":true,"description":"The name a `v-bb-popover` passes as its value (`\"'name'\"`) or as `portal: 'name'`."}],"events":[],"slots":[{"name":"default","type":"BbPopoverPortalSlotProps","fields":["data: P","close: () => void"],"description":"The popover body. `data` is the directive's `data`; `close` closes the popover."}],"exposed":[],"models":[]},
|
|
410
415
|
{"name":"BbProgress","group":"Feedback","description":"Visualizes task or operation progress state.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbProgress.md","source":"ai/source/BbProgress.md","props":[{"name":"indeterminate","type":"boolean | undefined","required":false,"default":"false","description":"A wait you cannot measure yet: the bar slides back and forth (a calm pulse under reduced motion) and reports no `aria-valuenow`. `modelValue` is kept for when it turns off; a `null` `modelValue` alone is an empty bar."},{"name":"label","type":"string | undefined","required":false,"default":"undefined","description":"Accessible name for the progress bar, forwarded to `aria-label`. A `progressbar` with no name is announced only as a bare percentage, so give it one whenever the surrounding text doesn't already name it (e.g. `\"Upload\"`). Matches the `label` naming prop on BbSpinner / BbIcon."},{"name":"max","type":"number | undefined","required":false,"default":"100","description":"Maximum value. Upper cap."},{"name":"min","type":"number | undefined","required":false,"default":"0","description":"Minimum value. Lower cap."},{"name":"modelValue","type":"number | null | undefined","required":false,"default":"0","description":"The current progress value — a number between `min` and `max`. This is a one-way input prop (BbProgress is a display component and never emits `update:modelValue`); `null` means no value and renders an empty bar."},{"name":"pt","type":"PtMap<BbProgressPtPart, \"indeterminate\"> | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. Parts: `root`, `bar`; state: `indeterminate`."},{"name":"pt:bar","type":"PtValue | undefined","required":false},{"name":"pt:bar:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:indeterminate","type":"PtValue | undefined","required":false}],"events":[],"slots":[],"exposed":[],"models":[],"cssProps":[{"name":"--track","value":"4px","selector":".bb-progress"},{"name":"--track-color","value":"var(--bb-track)","selector":".bb-progress","description":"The recessed rail surface, not `--bb-secondary`: that is the secondary BUTTON fill, so tuning the track moved buttons and tuning buttons moved the track. `--bb-track` is the token for a rail, and it is a step stronger, so the unfilled remainder actually reads."},{"name":"--accent","value":"var(--bb-primary)","selector":".bb-progress"},{"name":"--r","value":"var(--bb-radius)","selector":".bb-progress"}],"pt":{"parts":[{"name":"root","description":"The track (the `progressbar` element); the bar follows it through its locals (`--track`, `--track-color`, `--accent`, `--r`, the same words as BbSlider's rail and bar)."},{"name":"bar","description":"The fill itself. Its inline `transform` IS the value (it slides from -100% to 0), so style its look here — colour, gradient, radius — never its position."}],"states":[{"name":"indeterminate","description":"Component-wide: `indeterminate` is on; the bar slides (pulses under reduced motion) instead of showing a value."}]},"css":{"classes":{"bb-progress":["","--indeterminate","__bar"]},"locals":["--accent","--color-gray-200","--r","--track","--track-color","--transition-duration"],"surface":{"stable":[{"class":"bb-progress","tag":"div","part":"root","reads":["--r","--track","--track-color"]},{"class":"bb-progress__bar","tag":"div","part":"bar","reads":["--accent","--r","--transition-duration"]},{"class":"bb-progress--indeterminate","tag":"div","state":"indeterminate"}],"internal":[]}},"attrTargets":["div"]},
|
|
411
416
|
{"name":"BbRadio","group":"Selection","description":"Represents a single choice in exclusive options.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbRadio.md","source":"ai/source/BbRadio.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"checked","type":"boolean | undefined","required":false,"default":"undefined","description":"Defines the input as checked."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact field's label gap with the `-compact` token, not the base one. The same meaning as on the checkbox, radio and switch groups."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"default":"'auto'","description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be any serializable type."},{"name":"name","type":"string | undefined","required":false,"description":"Name of the input. Optional: a generated one is unique to this radio, so radios that form ONE exclusive group must share an explicit `name`. Pass one too for a native (non-JS) form post under a known key."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"icon\"]; readonly states: readonly [\"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\"]; readonly wide: readonly [\"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\"]; }> & PtMap<TogglePtPart, TogglePtState>) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:checked","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:focused","type":"PtValue | undefined","required":false},{"name":"pt:description:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:checked","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:focused","type":"PtValue | undefined","required":false},{"name":"pt:hint:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:checked","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:focused","type":"PtValue | undefined","required":false},{"name":"pt:message:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:checked","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:focused","type":"PtValue | undefined","required":false},{"name":"pt:root:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"false","description":"Reverses the layout: in every direction the order of the label and the input is swapped from the standard arrangement."},{"name":"value","type":"any","required":true,"description":"Defines the value of the radio input. It can be any serializable value."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the native input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the radio selection changes. Forwards the original DOM `Event`."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when the input receives a click interaction. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the native input gains focus. Forwards the original DOM `FocusEvent`."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from the radio input. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on the input. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over the input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over the input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted when the radio becomes selected, carrying the radio's `value` prop."}],"slots":[{"name":"description","type":"BbRadioDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"icon","type":"BbRadioIconSlotProps","fields":["checked: boolean","disabled: boolean","focused: boolean","focusVisible: boolean","hasErrors: boolean","hasWarnings: boolean","id: string","name: string","parsedValue: string","readonly: boolean","value: any","text: string"],"description":"Replaces the default radio dot visual inside the radio container. Receives the radio state plus the label text."},{"name":"label","type":"BbRadioLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered next to the radio button."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"pt":{"parts":[{"name":"root","description":"The toggle's container: the glyph, the label and the lines under them."},{"name":"label","description":"The label text beside the glyph (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"icon","description":"The drawn glyph — the box, the dot or the switch track. The default one: a consumer `icon` slot replaces it. The hidden native input is not a part."}],"states":[{"name":"checked","description":"Component-wide: the toggle is on."},{"name":"readonly","description":"Component-wide: the toggle is `readonly` — focusable, cannot change."},{"name":"disabled","description":"Component-wide: the toggle is `disabled`."},{"name":"warnings","description":"Component-wide: the toggle shows warnings and no errors."},{"name":"errors","description":"Component-wide: the toggle shows errors — the glyph and the message line turn red."},{"name":"focused","description":"Component-wide: the native input has focus — any focus, mouse included, like the `focused` slot prop."},{"name":"focusVisible","description":"Component-wide: that focus is keyboard-visible — where a focus ring belongs."}]},"tree":{"bindings":[{"part":"icon","target":"BbBaseRadioIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbRadio","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"BbBaseRadioIcon","kind":"public"}]},"css":{"classes":{"bb-radio":[""]},"locals":["--color-gray-200","--ly-x","--py","--tap-b","--tap-i"],"surface":{"stable":[{"class":"bb-radio","tag":"CommonField","part":"root","reads":["--py"]}],"internal":[],"via":[{"part":"icon","component":"BbBaseRadioIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["label"],"states":["checked","readonly","disabled","warnings","errors","focused","focusVisible"]}}},"attrTargets":["div"],"config":"compact*, layout*, reverse*, inputPosition*","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox.md","silent":true,"fix":{"kind":"manual"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}}]},
|
|
412
|
-
{"name":"BbRadioGroup","group":"Selection","description":"Coordinates exclusive selection among radio options.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbRadioGroup.md","source":"ai/source/BbRadioGroup.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"block","type":"boolean | undefined","required":false,"default":"undefined","description":"The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to dependencies."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every applied, successful load (an empty one included), drops the model values the options no longer contain (a single value resets to `null`). A failed load never prunes."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the `items` provider threw): the twin of `emptyText` for that case."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides each option's label text (the text rendered next to every input) while keeping it accessible to screen readers. Does not affect the fieldset legend — use `hideLegend` for that."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`."},{"name":"itemProps","type":"BbOptionGroupItemProps<T> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead."},{"name":"items","type":"T[] | ((context: BbRadioGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`."},{"name":"itemText","type":"ItemAccessor<T, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<T> | undefined","required":false,"default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for radio groups."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width. Layout only: the cards are `pt` (guide § Radio cards)."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be any serializable type."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to modelValue."},{"name":"name","type":"string | undefined","required":false,"description":"Name of the option inputs. Optional: a generated one, unique per group and stable, groups them. Pass one only when a native (non-JS) form post must submit the value under a known key."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"list\", \"item\", \"icon\", \"label\", \"itemDescription\", \"indicator\"]; readonly states: readonly [\"hasValue\", \"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"loading\"]; readonly node: { readonly item: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly icon: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly label: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly itemDescription: readonly [\"checked\", \"focused\", \"focusVisible\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"outline\"]; readonly option: \"radioVariants\"; }; }> & { legend?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"label:checked\"?: PtValue | undefined; \"label:focused\"?: PtValue | undefined; \"label:focusVisible\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"icon:checked\"?: PtValue | undefined; \"icon:focused\"?: PtValue | undefined; \"icon:focusVisible\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; indicator?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"legend:loading\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; \"indicator:loading\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"indicator:errors\"?: PtValue | undefined; \"indicator:warnings\"?: PtValue | undefined; \"indicator:readonly\"?: PtValue | undefined; \"indicator:hasValue\"?: PtValue | undefined; \"item:checked\"?: PtValue | undefined; \"item:focused\"?: PtValue | undefined; \"item:focusVisible\"?: PtValue | undefined; \"itemDescription:checked\"?: PtValue | undefined; \"itemDescription:focused\"?: PtValue | undefined; \"itemDescription:focusVisible\"?: PtValue | undefined; } & { label?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; icon?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; item?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; itemDescription?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"label:line\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"label:pill\"?: PtValue | undefined; \"legend:line\"?: PtValue | undefined; \"legend:outline\"?: PtValue | undefined; \"legend:pill\"?: PtValue | undefined; \"list:line\"?: PtValue | undefined; \"list:outline\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"root:line\"?: PtValue | undefined; \"root:pill\"?: PtValue | undefined; \"icon:line\"?: PtValue | undefined; \"icon:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:outline\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"description:line\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"description:pill\"?: PtValue | undefined; \"message:line\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"message:pill\"?: PtValue | undefined; \"hint:line\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"hint:pill\"?: PtValue | undefined; \"itemDescription:line\"?: PtValue | undefined; \"itemDescription:outline\"?: PtValue | undefined; \"itemDescription:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:outline\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:line","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:outline","type":"PtValue | undefined","required":false},{"name":"pt:description:pill","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:line","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:outline","type":"PtValue | undefined","required":false},{"name":"pt:hint:pill","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:line","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:pill","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:errors","type":"PtValue | undefined","required":false},{"name":"pt:indicator:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:loading","type":"PtValue | undefined","required":false},{"name":"pt:indicator:outline","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:indicator:readonly","type":"PtValue | undefined","required":false},{"name":"pt:indicator:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:item:checked","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:focused","type":"PtValue | undefined","required":false},{"name":"pt:item:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:loading","type":"PtValue | undefined","required":false},{"name":"pt:item:outline","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:checked","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focused","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:line","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:outline","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:pill","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:line","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:outline","type":"PtValue | undefined","required":false},{"name":"pt:label:pill","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:line","type":"PtValue | undefined","required":false},{"name":"pt:legend:loading","type":"PtValue | undefined","required":false},{"name":"pt:legend:outline","type":"PtValue | undefined","required":false},{"name":"pt:legend:pill","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:errors","type":"PtValue | undefined","required":false},{"name":"pt:list:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:loading","type":"PtValue | undefined","required":false},{"name":"pt:list:outline","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:list:readonly","type":"PtValue | undefined","required":false},{"name":"pt:list:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:line","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:outline","type":"PtValue | undefined","required":false},{"name":"pt:message:pill","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:line","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:pill","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"selectable","type":"boolean | ((item: T) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"variant","type":"keyof RadioVariantRegistry | undefined","required":false,"values":["outline","pill","line"],"description":"A tab-strip look: `'pill'` (a raised pill under the pick) or `'line'` (a bar on a baseline); the indicator slides like a tab strip's. `list-layout=\"vertical\"` stacks it. Register more with `components.BbRadioGroup.variants`. Unset: the group's own rows."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the group becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated radio inputs loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when a radio option is selected. Forwards the original DOM `Event` from the radio input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when one of the generated radio inputs is clicked. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated radio inputs receives focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the group after it was active. Useful for validation-on-blur flows at group level."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from generated radio inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on generated radio inputs. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a radio input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a radio input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the newly selected value when the selection changes."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"description","type":"BbRadioGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows."},{"name":"icon","type":"BbRadioGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","value: any","item: T","text: string"],"description":"Replaces the default radio dot icon for each option. Receives the radio state plus the source item and its display text."},{"name":"label","type":"BbRadioGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},{"name":"legend","type":"BbRadioGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--gap","value":"24px","selector":".bb-radio-group__list","description":"Space between rows on one line."},{"name":"--row-gap","value":"10px","selector":".bb-radio-group__list","description":"Space between wrapped lines."},{"name":"--tile-min-width","value":"96px","selector":".bb-radio-group__list","description":"How narrow a tile may get before the tiles wrap (`tiles` only)."},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--strip","description":"The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-radio-group__list--strip","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-radio-group__list--strip","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-radio-group__list--strip","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-radio-group__list--strip","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-radio-group__list--strip","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-radio-group__list--strip","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-radio-group__list--strip","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-radio-group__list--strip","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-radio-group__list--strip","description":"unchecked trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"checked trigger label"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--strip","description":"checked trigger label weight (unchecked labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-radio-group__list--strip","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-radio-group__list--strip","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-radio-group__list--strip","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (inline-end edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-radio-group__list--strip","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-radio-group__list--strip","description":"The theme's resting lift, composed UNDER the indicator's own shadow"},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-radio-group__list--strip","description":"Indicator lift, painted on top of --elev"},{"name":"--list-bg","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--list-border","value":"var(--bb-border)","selector":".bb-radio-group__list--line"},{"name":"--p","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--list-r","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--trigger-r","value":"var(--bb-radius-sm)","selector":".bb-radio-group__list--line"},{"name":"--active-fw","value":"600","selector":".bb-radio-group__list--line"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-radio-group__list--line"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--indicator-r","value":"0","selector":".bb-radio-group__list--line"},{"name":"--indicator-h","value":"2px","selector":".bb-radio-group__list--line"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--line"},{"name":"--elev","value":"none","selector":".bb-radio-group__list--line"},{"name":"--list-bg","value":"var(--bb-outline)","selector":".bb-radio-group__list--outline"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--p","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-r","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-px","value":"12px","selector":".bb-radio-group__list--outline"},{"name":"--list-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--hover-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fg","value":"var(--bb-primary-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--outline"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-radio-group__list--outline"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--indicator-r","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--outline"},{"name":"--divider","value":"var(--bb-outline-border)","selector":".bb-radio-group__list--outline","description":"The frame and the lines between the segments"},{"name":"--hover-bg","value":"var(--bb-outline-hover)","selector":".bb-radio-group__list--outline","description":"An unpicked segment under the pointer"}],"pt":{"parts":[{"name":"root","description":"The group's container (the fieldset)."},{"name":"legend","description":"The group's heading — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"list","description":"The node that lays the rows out (flex + wrap, gaps on `--gap` / `--row-gap`): `pt:list=\"grid grid-cols-3\"` re-lays them, `pt:list=\"[--gap:8px]\"` tightens them. With a `variant`, the tab strip. Takes the group-wide states only."},{"name":"indicator","description":"With a `variant`: the shape under the checked option, BbTabs' indicator — the sliding pill or bar of a radio group, a checkbox group's pill per run of adjacent picks (or bar per pick). Takes the group-wide states only."},{"name":"item","description":"One option row — a broadcast, resolved per option with its own `checked` / `disabled` / focus. Takes a per-item function."},{"name":"icon","description":"One row's drawn glyph — the default one: a consumer `icon` slot replaces it. Takes a per-item function."},{"name":"label","description":"One option's label text (the `label` slot's default). Takes a per-item function."},{"name":"itemDescription","description":"One option's muted second line, its description. Takes a per-item function."}],"states":[{"name":"hasValue","description":"Component-wide: at least one option is chosen."},{"name":"checked","description":"Per row, on `item`, `icon`, `label` and `itemDescription`: that option is chosen. Never on a field part."},{"name":"readonly","description":"Component-wide: the group is `readonly`."},{"name":"disabled","description":"Component-wide while the group is `disabled`; also per row, on the row parts of an option that is disabled on its own."},{"name":"warnings","description":"Component-wide: the group shows warnings and no errors."},{"name":"errors","description":"Component-wide: the group shows errors."},{"name":"focused","description":"Per row, on the row parts: that option's input has focus — any focus, mouse included."},{"name":"focusVisible","description":"Per row, on the row parts: that option's focus is keyboard-visible — where a focus ring belongs."},{"name":"loading","description":"Component-wide: the items are being fetched."},{"name":"line","description":"On every part: `variant: 'line'`. Below the real states, like every variant."},{"name":"outline","description":"On every part: `variant: 'outline'`. Below the real states, like every variant."},{"name":"pill","description":"On every part: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"bindings":[{"part":"indicator","target":"span.bb-radio-group__indicator"},{"part":"icon","target":"BbBaseRadioIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbRadioGroup","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"OptionsContainer","kind":"internal","vocabulary":"BbRadioGroup","bindings":[{"part":"list","target":"span"},{"part":"item","target":"label"},{"part":"label","target":"span"},{"part":"itemDescription","target":"span"}],"cssProps":[{"name":"--list-bg","documented":true},{"name":"--list-border","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--fs","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":true},{"name":"--trigger-px","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-min-h","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":true},{"name":"--active-fg","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-inset","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--elev","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-px","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":false},{"name":"--active-fg","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--divider","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--hover-bg","documented":true}]},{"name":"BbBaseRadioIcon","kind":"public"}]},"css":{"classes":{"bb-radio-group":["","__empty","__indicator","__item","__item--*","__item--aligned","__item--description","__item--disabled","__item--focus-visible","__item--focused","__item--input-align-*","__item--input-align-bottom","__item--input-align-center","__item--input-align-top","__item--label-align-*","__item--label-align-bottom","__item--label-align-center","__item--label-align-top","__item--reverse","__item--selected","__item--vertical","__item-description","__label","__list","__list--*","__list--block","__list--errors","__list--horizontal","__list--line","__list--no-transition","__list--outline","__list--strip","__list--tiles","__list--vertical","__list--warnings","__loading"]},"locals":["--active-fg","--active-fw","--color-gray-200","--divider","--elev","--fs","--gap","--height","--hit","--hover-bg","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--ly-lj","--ly-ls","--ly-x","--p","--ring-t","--row-be","--row-bs","--row-gap","--row-h","--row-ie","--row-is","--seam","--size","--tap-row-gap","--tile-min-width","--top","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-radio-group","tag":"CommonField","part":"root"},{"class":"bb-radio-group__list","part":"list","reads":["--gap","--hit","--ly-lj","--ly-ls","--row-gap","--row-h","--tap-row-gap"]},{"class":"bb-radio-group__indicator","tag":"span","part":"indicator"},{"class":"bb-radio-group__item","part":"item","reads":["--gap","--hit","--row-be","--row-bs","--row-ie","--row-is","--tap-row-gap"]},{"class":"bb-radio-group__label","part":"label"},{"class":"bb-radio-group__item-description","part":"itemDescription"},{"class":"bb-radio-group__item--disabled","state":"disabled"},{"class":"bb-radio-group__list--warnings","state":"warnings"},{"class":"bb-radio-group__list--errors","state":"errors"},{"class":"bb-radio-group__item--focused","state":"focused"},{"class":"bb-radio-group__item--focus-visible","state":"focusVisible"},{"class":"bb-radio-group__list--line","state":"line"},{"class":"bb-radio-group__list--outline","state":"outline"}],"internal":[{"class":"bb-radio-group__empty"},{"class":"bb-radio-group__item--aligned"},{"class":"bb-radio-group__item--description","reads":["--hit","--row-gap","--row-h"]},{"class":"bb-radio-group__item--input-align-bottom"},{"class":"bb-radio-group__item--input-align-center"},{"class":"bb-radio-group__item--input-align-top"},{"class":"bb-radio-group__item--label-align-bottom"},{"class":"bb-radio-group__item--label-align-center"},{"class":"bb-radio-group__item--label-align-top"},{"class":"bb-radio-group__item--reverse"},{"class":"bb-radio-group__item--selected"},{"class":"bb-radio-group__item--vertical"},{"class":"bb-radio-group__list--block"},{"class":"bb-radio-group__list--horizontal"},{"class":"bb-radio-group__list--no-transition"},{"class":"bb-radio-group__list--strip","reads":["--list-h","--list-r","--p","--trigger-r"]},{"class":"bb-radio-group__list--tiles","reads":["--row-gap","--tile-min-width"]},{"class":"bb-radio-group__list--vertical"},{"class":"bb-radio-group__loading"}],"via":[{"part":"icon","component":"BbBaseRadioIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["hasValue","checked","readonly","loading","pill"]}}},"attrTargets":["div"],"config":"validationMode*, compact*, layout*, listLayout*, itemLayout*, itemReverse*, reverse*, inputPosition*, block*, variants","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"manual"}},{"name":"labelPosition","new":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"inputDirection","new":"listLayout","hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"labelPosition","to":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"inputDirection","to":"listLayout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"},"hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)"},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
413
|
-
{"name":"BbRating","group":"Selection","description":"Collects scalar ratings through interactive icons.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbRating.md","source":"ai/source/BbRating.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"clearable","type":"boolean | undefined","required":false,"default":"false","description":"Allows clearing the selected rating by clicking the current value."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for rating groups."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the legend. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"modelValue","type":"number | null | undefined","required":false,"description":"Used by v-model."},{"name":"name","type":"string | undefined","required":false,"description":"Name of the star radio inputs. Optional: the stars live in one component instance, so an omitted name falls back to a generated one that groups them correctly. Pass one only when a native (non-JS) form post must submit the value under a known key."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"item\"]; readonly states: readonly [\"hasValue\", \"selected\", \"readonly\", \"disabled\", \"warnings\", \"errors\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\"]; readonly node: { readonly item: readonly [\"selected\"]; }; }> & { legend?: PtValue | undefined; root?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; item?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:selected","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<number | null>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"size","type":"number | CssSize | keyof Sizes | undefined","required":false,"default":"'md'","description":"Defines the component size.\n\nAccepted values:\n- A key from the provided size map (`keyof T`), e.g. `'sm' | 'md' | 'lg'`\n- A custom CSS size string (e.g. `'20px'`, `'1.5rem'`, `'2em'`)\n- A number, typically interpreted as pixels by size parsers"},{"name":"stars","type":"number | undefined","required":false,"default":"5","description":"Maximum number of stars to render and maximum value of the component."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the rating becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when a star input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the selected rating changes. Forwards the original DOM `Event`."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when a star input receives a click. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when a star input gains focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the rating after it was active."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from the star inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on a star input. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a star input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a star input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: number | null): void","description":"Emitted with the selected rating (1 to `stars`) when clicked. Emits `null` only when `clearable` is enabled and the already-selected star is clicked."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the row of rating stars."},{"name":"description","type":"BbRatingDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"icon","type":"BbRatingIconSlotProps","fields":["checked: boolean","disabled: boolean","id?: string","size: CssSize","value: number"],"description":"Replaces the default star SVG for each rating option."},{"name":"legend","type":"BbRatingLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text rendered above the rating stars."},{"name":"prepend","type":"object","description":"Content rendered before the row of rating stars."}],"exposed":[],"models":[{"name":"modelValue","type":"number | null | undefined"}],"cssProps":[{"name":"--accent","value":"var(--bb-primary)","selector":".bb-rating","description":"a filled star, and the hover preview"},{"name":"--empty","value":"var(--bb-panel)","selector":".bb-rating","description":"an unfilled star"},{"name":"--border-color","value":"var(--bb-text-faint)","selector":".bb-rating","description":"Every star's outline. `--bb-text-faint`, not `--bb-border`: an empty star is `--empty` (the panel) inside it, so the outline alone draws the star, and a hairline read ~1.5:1 — under 3:1 in both schemes."},{"name":"--space","value":"0px","selector":".bb-rating","description":"Gap between stars. On the root so `pt:root` reaches it; the star row inherits it. Named `--space`, not `--spacing`: Tailwind v4 builds its whole spacing scale on a variable of that name, and a local of the same name zeroed every spacing utility used inside the slots."},{"name":"--ring-color","value":"var(--bb-ring)","selector":".bb-rating__stars","description":"focus ring around the focused star"},{"name":"--size","value":"24px","selector":".bb-rating__stars","description":"one star's box; overridden inline from the `size` prop"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-rating__item"}],"pt":{"parts":[{"name":"root","description":"The rating's container: the legend, the stars and the lines under them."},{"name":"legend","description":"The rating's name — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop)."},{"name":"item","description":"One star, the choice you click: the hidden radio, its screen-reader text and the glyph — a broadcast resolved per star. The hook for the hit area, the focus ring, spacing and the disabled cursor. NOT for colour: a `text-*` class here freezes the hover preview and the error tint; set `--accent` / `--empty` / `--border-color` on `root`. The glyph has no part of its own: its size is the `size` prop, its colour the variables."}],"states":[{"name":"hasValue","description":"Component-wide: a rating is set."},{"name":"selected","description":"Per node, on `item`: a filled star."},{"name":"readonly","description":"Component-wide: the rating is `readonly`."},{"name":"disabled","description":"Component-wide while the rating is `disabled`; also per node, on `item`: a star that cannot be picked."},{"name":"warnings","description":"Component-wide: the rating shows warnings and no errors."},{"name":"errors","description":"Component-wide: the rating shows errors."}]},"tree":{"bindings":[{"part":"item","target":"label.bb-rating__item"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"CommonField","kind":"internal","vocabulary":"BbRating","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]}]},"css":{"classes":{"bb-rating":["","__icon","__item","__item--disabled","__item--empty","__item--filled","__item--readonly","__label-text","__options","__stars","__stars--disabled","__stars--errors","__stars--forced-clear","__stars--has-value","__stars--readonly","__stars--warnings"]},"locals":["--accent","--bg","--border-color","--color-gray-200","--empty","--hit","--ly-lj","--ly-x","--ring-color","--ring-t","--size","--space","--star-size","--tap-gap"],"surface":{"stable":[{"class":"bb-rating","tag":"CommonField","part":"root"},{"class":"bb-rating__item","tag":"label","part":"item","reads":["--accent","--empty","--hit","--ring-color","--ring-t"]},{"class":"bb-rating__stars--has-value","tag":"span","state":"hasValue"},{"class":"bb-rating__item--readonly","tag":"label","state":"readonly"},{"class":"bb-rating__stars--readonly","tag":"span","state":"readonly"},{"class":"bb-rating__item--disabled","tag":"label","state":"disabled"},{"class":"bb-rating__stars--disabled","tag":"span","state":"disabled"},{"class":"bb-rating__stars--warnings","tag":"span","state":"warnings"},{"class":"bb-rating__stars--errors","tag":"span","state":"errors"}],"internal":[{"class":"bb-rating__icon","tag":"BbIcon"},{"class":"bb-rating__item--empty","tag":"label"},{"class":"bb-rating__item--filled","tag":"label","reads":["--accent"]},{"class":"bb-rating__label-text","tag":"span"},{"class":"bb-rating__options","tag":"span","reads":["--hit","--ly-lj","--size","--space","--star-size","--tap-gap"]},{"class":"bb-rating__stars","tag":"span"},{"class":"bb-rating__stars--forced-clear","tag":"span"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["selected"]}}},"attrTargets":["div"],"config":"validationMode*, compact*, layout*, reverse*, inputPosition*, sizeMap","removed":[{"name":"color","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-rating.md","silent":true,"fix":{"kind":"manual"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-rating.md","silent":true,"fix":{"kind":"rename"}},{"name":"pt:label","new":"pt:legend","surface":"pt","since":"3.0.0-unreleased","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-rating.md","fix":{"kind":"rename"}},{"from":"pt:label","to":"pt:legend","surface":"pt","since":"3.0.0-unreleased","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
417
|
+
{"name":"BbRadioGroup","group":"Selection","description":"Coordinates exclusive selection among radio options.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbRadioGroup.md","source":"ai/source/BbRadioGroup.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"block","type":"boolean | undefined","required":false,"default":"undefined","description":"The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to dependencies."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every applied, successful load (an empty one included), drops the model values the options no longer contain (a single value resets to `null`). A failed load never prunes."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the `items` provider threw): the twin of `emptyText` for that case."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides each option's label text (the text rendered next to every input) while keeping it accessible to screen readers. Does not affect the fieldset legend — use `hideLegend` for that."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`."},{"name":"itemProps","type":"BbOptionGroupItemProps<T> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead."},{"name":"items","type":"T[] | ((context: BbRadioGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`."},{"name":"itemText","type":"ItemAccessor<T, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<T> | undefined","required":false,"default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for radio groups."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width. Layout only: the cards are `pt` (guide § Radio cards)."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be any serializable type."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to modelValue."},{"name":"name","type":"string | undefined","required":false,"description":"Name of the option inputs. Optional: a generated one, unique per group and stable, groups them. Pass one only when a native (non-JS) form post must submit the value under a known key."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"list\", \"item\", \"icon\", \"label\", \"itemDescription\", \"indicator\"]; readonly states: readonly [\"hasValue\", \"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"loading\"]; readonly node: { readonly item: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly icon: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly label: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly itemDescription: readonly [\"checked\", \"focused\", \"focusVisible\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"outline\"]; readonly option: \"radioVariants\"; }; }> & { legend?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"label:checked\"?: PtValue | undefined; \"label:focused\"?: PtValue | undefined; \"label:focusVisible\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"icon:checked\"?: PtValue | undefined; \"icon:focused\"?: PtValue | undefined; \"icon:focusVisible\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; indicator?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"legend:loading\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; \"indicator:loading\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"indicator:errors\"?: PtValue | undefined; \"indicator:warnings\"?: PtValue | undefined; \"indicator:readonly\"?: PtValue | undefined; \"indicator:hasValue\"?: PtValue | undefined; \"item:checked\"?: PtValue | undefined; \"item:focused\"?: PtValue | undefined; \"item:focusVisible\"?: PtValue | undefined; \"itemDescription:checked\"?: PtValue | undefined; \"itemDescription:focused\"?: PtValue | undefined; \"itemDescription:focusVisible\"?: PtValue | undefined; } & { label?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; icon?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; item?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; itemDescription?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"label:line\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"label:pill\"?: PtValue | undefined; \"legend:line\"?: PtValue | undefined; \"legend:outline\"?: PtValue | undefined; \"legend:pill\"?: PtValue | undefined; \"list:line\"?: PtValue | undefined; \"list:outline\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"root:line\"?: PtValue | undefined; \"root:pill\"?: PtValue | undefined; \"icon:line\"?: PtValue | undefined; \"icon:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:outline\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"description:line\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"description:pill\"?: PtValue | undefined; \"message:line\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"message:pill\"?: PtValue | undefined; \"hint:line\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"hint:pill\"?: PtValue | undefined; \"itemDescription:line\"?: PtValue | undefined; \"itemDescription:outline\"?: PtValue | undefined; \"itemDescription:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:outline\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:line","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:outline","type":"PtValue | undefined","required":false},{"name":"pt:description:pill","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:line","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:outline","type":"PtValue | undefined","required":false},{"name":"pt:hint:pill","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:line","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:pill","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:errors","type":"PtValue | undefined","required":false},{"name":"pt:indicator:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:loading","type":"PtValue | undefined","required":false},{"name":"pt:indicator:outline","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:indicator:readonly","type":"PtValue | undefined","required":false},{"name":"pt:indicator:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:item:checked","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:focused","type":"PtValue | undefined","required":false},{"name":"pt:item:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:loading","type":"PtValue | undefined","required":false},{"name":"pt:item:outline","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:checked","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focused","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:line","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:outline","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:pill","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState, \"line\" | \"outline\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:line","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:outline","type":"PtValue | undefined","required":false},{"name":"pt:label:pill","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:line","type":"PtValue | undefined","required":false},{"name":"pt:legend:loading","type":"PtValue | undefined","required":false},{"name":"pt:legend:outline","type":"PtValue | undefined","required":false},{"name":"pt:legend:pill","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:errors","type":"PtValue | undefined","required":false},{"name":"pt:list:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:loading","type":"PtValue | undefined","required":false},{"name":"pt:list:outline","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:list:readonly","type":"PtValue | undefined","required":false},{"name":"pt:list:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:line","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:outline","type":"PtValue | undefined","required":false},{"name":"pt:message:pill","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:line","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:pill","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"selectable","type":"boolean | ((item: T) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"variant","type":"keyof RadioVariantRegistry | undefined","required":false,"values":["outline","pill","line"],"description":"A tab-strip look: `'pill'` (a raised pill under the pick) or `'line'` (a bar on a baseline); the indicator slides like a tab strip's. `list-layout=\"vertical\"` stacks it. Register more with `components.BbRadioGroup.variants`. Unset: the group's own rows."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the group becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated radio inputs loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when a radio option is selected. Forwards the original DOM `Event` from the radio input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when one of the generated radio inputs is clicked. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated radio inputs receives focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the group after it was active. Useful for validation-on-blur flows at group level."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from generated radio inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on generated radio inputs. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a radio input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a radio input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the newly selected value when the selection changes."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"description","type":"BbRadioGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows."},{"name":"icon","type":"BbRadioGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","value: any","item: T","text: string"],"description":"Replaces the default radio dot icon for each option. Receives the radio state plus the source item and its display text."},{"name":"label","type":"BbRadioGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},{"name":"legend","type":"BbRadioGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--gap","value":"24px","selector":".bb-radio-group__list","description":"Space between rows on one line."},{"name":"--row-gap","value":"10px","selector":".bb-radio-group__list","description":"Space between wrapped lines."},{"name":"--tile-min-width","value":"96px","selector":".bb-radio-group__list","description":"How narrow a tile may get before the tiles wrap (`tiles` only)."},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--strip","description":"The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-radio-group__list--strip","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-radio-group__list--strip","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-radio-group__list--strip","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-radio-group__list--strip","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-radio-group__list--strip","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-radio-group__list--strip","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-radio-group__list--strip","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-radio-group__list--strip","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-radio-group__list--strip","description":"unchecked trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"checked trigger label"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--strip","description":"checked trigger label weight (unchecked labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-radio-group__list--strip","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-radio-group__list--strip","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-radio-group__list--strip","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (inline-end edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-radio-group__list--strip","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-radio-group__list--strip","description":"The theme's resting lift, composed UNDER the indicator's own shadow"},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-radio-group__list--strip","description":"Indicator lift, painted on top of --elev"},{"name":"--list-bg","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--list-border","value":"var(--bb-border)","selector":".bb-radio-group__list--line"},{"name":"--p","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--list-r","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--trigger-r","value":"var(--bb-radius-sm)","selector":".bb-radio-group__list--line"},{"name":"--active-fw","value":"600","selector":".bb-radio-group__list--line"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-radio-group__list--line"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--indicator-r","value":"0","selector":".bb-radio-group__list--line"},{"name":"--indicator-h","value":"2px","selector":".bb-radio-group__list--line"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--line"},{"name":"--elev","value":"none","selector":".bb-radio-group__list--line"},{"name":"--list-bg","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--list-h","value":"calc(var(--bb-control-h) - 4px)","selector":".bb-radio-group__list--outline","description":"A button's height: BbButton `md` sits one step under the control height."},{"name":"--p","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-gap","value":"8px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-r","value":"var(--bb-radius)","selector":".bb-radio-group__list--outline"},{"name":"--trigger-px","value":"12px","selector":".bb-radio-group__list--outline"},{"name":"--list-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--hover-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--outline"},{"name":"--indicator-bg","value":"var(--bb-outline-pressed)","selector":".bb-radio-group__list--outline"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-radio-group__list--outline"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--outline"},{"name":"--elev","value":"none","selector":".bb-radio-group__list--outline"},{"name":"--divider","value":"var(--bb-outline-border)","selector":".bb-radio-group__list--outline","description":"Each button's frame"},{"name":"--hover-bg","value":"var(--bb-outline-hover)","selector":".bb-radio-group__list--outline","description":"An unpicked button under the pointer"}],"pt":{"parts":[{"name":"root","description":"The group's container (the fieldset)."},{"name":"legend","description":"The group's heading — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"list","description":"The node that lays the rows out (flex + wrap, gaps on `--gap` / `--row-gap`): `pt:list=\"grid grid-cols-3\"` re-lays them, `pt:list=\"[--gap:8px]\"` tightens them. With a `variant`, the tab strip. Takes the group-wide states only."},{"name":"indicator","description":"With a `variant`: the shape under the checked option, BbTabs' indicator — the sliding pill or bar of a radio group, a checkbox group's pill per run of adjacent picks (or bar per pick). Takes the group-wide states only."},{"name":"item","description":"One option row — a broadcast, resolved per option with its own `checked` / `disabled` / focus. Takes a per-item function."},{"name":"icon","description":"One row's drawn glyph — the default one: a consumer `icon` slot replaces it. Takes a per-item function."},{"name":"label","description":"One option's label text (the `label` slot's default). Takes a per-item function."},{"name":"itemDescription","description":"One option's muted second line, its description. Takes a per-item function."}],"states":[{"name":"hasValue","description":"Component-wide: at least one option is chosen."},{"name":"checked","description":"Per row, on `item`, `icon`, `label` and `itemDescription`: that option is chosen. Never on a field part."},{"name":"readonly","description":"Component-wide: the group is `readonly`."},{"name":"disabled","description":"Component-wide while the group is `disabled`; also per row, on the row parts of an option that is disabled on its own."},{"name":"warnings","description":"Component-wide: the group shows warnings and no errors."},{"name":"errors","description":"Component-wide: the group shows errors."},{"name":"focused","description":"Per row, on the row parts: that option's input has focus — any focus, mouse included."},{"name":"focusVisible","description":"Per row, on the row parts: that option's focus is keyboard-visible — where a focus ring belongs."},{"name":"loading","description":"Component-wide: the items are being fetched."},{"name":"line","description":"On every part: `variant: 'line'`. Below the real states, like every variant."},{"name":"outline","description":"On every part: `variant: 'outline'`. Below the real states, like every variant."},{"name":"pill","description":"On every part: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"bindings":[{"part":"indicator","target":"span.bb-radio-group__indicator"},{"part":"icon","target":"BbBaseRadioIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbRadioGroup","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"OptionsContainer","kind":"internal","vocabulary":"BbRadioGroup","bindings":[{"part":"list","target":"span"},{"part":"item","target":"label"},{"part":"label","target":"span"},{"part":"itemDescription","target":"span"}],"cssProps":[{"name":"--list-bg","documented":true},{"name":"--list-border","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--fs","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":true},{"name":"--trigger-px","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--trigger-min-h","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":true},{"name":"--active-fg","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-inset","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--elev","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":false},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--trigger-px","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":false},{"name":"--active-fg","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--divider","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-bg","documented":true}]},{"name":"BbBaseRadioIcon","kind":"public"}]},"css":{"classes":{"bb-radio-group":["","__empty","__indicator","__item","__item--*","__item--aligned","__item--description","__item--disabled","__item--focus-visible","__item--focused","__item--input-align-*","__item--input-align-bottom","__item--input-align-center","__item--input-align-top","__item--label-align-*","__item--label-align-bottom","__item--label-align-center","__item--label-align-top","__item--reverse","__item--selected","__item--vertical","__item-description","__label","__list","__list--*","__list--block","__list--errors","__list--horizontal","__list--line","__list--no-transition","__list--outline","__list--strip","__list--tiles","__list--vertical","__list--warnings","__loading"]},"locals":["--active-fg","--active-fw","--color-gray-200","--divider","--elev","--fs","--gap","--height","--hit","--hover-bg","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--ly-lj","--ly-ls","--ly-x","--p","--ring-t","--row-be","--row-bs","--row-gap","--row-h","--row-ie","--row-is","--size","--tap-row-gap","--tile-min-width","--top","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-radio-group","tag":"CommonField","part":"root"},{"class":"bb-radio-group__list","part":"list","reads":["--gap","--hit","--ly-lj","--ly-ls","--row-gap","--row-h","--tap-row-gap"]},{"class":"bb-radio-group__indicator","tag":"span","part":"indicator"},{"class":"bb-radio-group__item","part":"item","reads":["--gap","--hit","--row-be","--row-bs","--row-ie","--row-is","--tap-row-gap"]},{"class":"bb-radio-group__label","part":"label"},{"class":"bb-radio-group__item-description","part":"itemDescription"},{"class":"bb-radio-group__item--disabled","state":"disabled"},{"class":"bb-radio-group__list--warnings","state":"warnings"},{"class":"bb-radio-group__list--errors","state":"errors"},{"class":"bb-radio-group__item--focused","state":"focused"},{"class":"bb-radio-group__item--focus-visible","state":"focusVisible"},{"class":"bb-radio-group__list--line","state":"line"},{"class":"bb-radio-group__list--outline","state":"outline","reads":["--trigger-r"]}],"internal":[{"class":"bb-radio-group__empty"},{"class":"bb-radio-group__item--aligned"},{"class":"bb-radio-group__item--description","reads":["--hit","--row-gap","--row-h"]},{"class":"bb-radio-group__item--input-align-bottom"},{"class":"bb-radio-group__item--input-align-center"},{"class":"bb-radio-group__item--input-align-top"},{"class":"bb-radio-group__item--label-align-bottom"},{"class":"bb-radio-group__item--label-align-center"},{"class":"bb-radio-group__item--label-align-top"},{"class":"bb-radio-group__item--reverse"},{"class":"bb-radio-group__item--selected"},{"class":"bb-radio-group__item--vertical"},{"class":"bb-radio-group__list--block"},{"class":"bb-radio-group__list--horizontal"},{"class":"bb-radio-group__list--no-transition"},{"class":"bb-radio-group__list--strip","reads":["--list-h","--list-r","--p","--trigger-r"]},{"class":"bb-radio-group__list--tiles","reads":["--row-gap","--tile-min-width"]},{"class":"bb-radio-group__list--vertical"},{"class":"bb-radio-group__loading"}],"via":[{"part":"icon","component":"BbBaseRadioIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["hasValue","checked","readonly","loading","pill"]}}},"attrTargets":["div"],"config":"validationMode*, compact*, layout*, listLayout*, itemLayout*, itemReverse*, reverse*, inputPosition*, block*, variants","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"manual"}},{"name":"labelPosition","new":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"inputDirection","new":"listLayout","hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"labelPosition","to":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"inputDirection","to":"listLayout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"},"hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)"},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
418
|
+
{"name":"BbRating","group":"Selection","description":"Collects scalar ratings through interactive icons.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbRating.md","source":"ai/source/BbRating.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"clearable","type":"boolean | undefined","required":false,"default":"false","description":"Allows clearing the selected rating by clicking the current value."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for rating groups."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the legend. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"modelValue","type":"number | null | undefined","required":false,"description":"Used by v-model."},{"name":"name","type":"string | undefined","required":false,"description":"Name of the star radio inputs. Optional: the stars live in one component instance, so an omitted name falls back to a generated one that groups them correctly. Pass one only when a native (non-JS) form post must submit the value under a known key."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"item\"]; readonly states: readonly [\"hasValue\", \"selected\", \"readonly\", \"disabled\", \"warnings\", \"errors\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\"]; readonly node: { readonly item: readonly [\"selected\"]; }; }> & { legend?: PtValue | undefined; root?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; item?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:selected","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<number | null>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"size","type":"number | CssSize | keyof Sizes | undefined","required":false,"default":"'md'","description":"Defines the component size.\n\nAccepted values:\n- A key from the provided size map (`keyof T`), e.g. `'sm' | 'md' | 'lg'`\n- A custom CSS size string (e.g. `'20px'`, `'1.5rem'`, `'2em'`)\n- A number, typically interpreted as pixels by size parsers"},{"name":"stars","type":"number | undefined","required":false,"default":"5","description":"Maximum number of stars to render and maximum value of the component."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the rating becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when a star input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the selected rating changes. Forwards the original DOM `Event`."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when a star input receives a click. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when a star input gains focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the rating after it was active."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from the star inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on a star input. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a star input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a star input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: number | null): void","description":"Emitted with the selected rating (1 to `stars`) when clicked. Emits `null` only when `clearable` is enabled and the already-selected star is clicked."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the row of rating stars."},{"name":"description","type":"BbRatingDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"icon","type":"BbRatingIconSlotProps","fields":["checked: boolean","disabled: boolean","id?: string","size: CssSize","value: number"],"description":"Replaces the default star SVG for each rating option."},{"name":"legend","type":"BbRatingLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text rendered above the rating stars."},{"name":"prepend","type":"object","description":"Content rendered before the row of rating stars."}],"exposed":[],"models":[{"name":"modelValue","type":"number | null | undefined"}],"cssProps":[{"name":"--accent","value":"var(--bb-primary)","selector":".bb-rating","description":"a filled star, and the hover preview"},{"name":"--empty","value":"var(--bb-panel)","selector":".bb-rating","description":"an unfilled star"},{"name":"--border-color","value":"var(--bb-text-faint)","selector":".bb-rating","description":"Every star's outline. `--bb-text-faint`, not `--bb-border`: an empty star is `--empty` (the panel) inside it, so the outline alone draws the star, and a hairline read ~1.5:1 — under 3:1 in both schemes."},{"name":"--space","value":"0px","selector":".bb-rating","description":"Gap between stars. On the root so `pt:root` reaches it; the star row inherits it. Named `--space`, not `--spacing`: Tailwind v4 builds its whole spacing scale on a variable of that name, and a local of the same name zeroed every spacing utility used inside the slots."},{"name":"--ring-color","value":"var(--bb-ring)","selector":".bb-rating__stars","description":"focus ring around the focused star"},{"name":"--size","value":"24px","selector":".bb-rating__stars","description":"one star's box; overridden inline from the `size` prop"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-rating__item"}],"pt":{"parts":[{"name":"root","description":"The rating's container: the legend, the stars and the lines under them."},{"name":"legend","description":"The rating's name — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop)."},{"name":"item","description":"One star, the choice you click: the hidden radio, its screen-reader text and the glyph — a broadcast resolved per star. The hook for the hit area, the focus ring, spacing and the disabled cursor. NOT for colour: a `text-*` class here freezes the hover preview and the error tint; set `--accent` / `--empty` / `--border-color` on `root`. The glyph has no part of its own: its size is the `size` prop, its colour the variables."}],"states":[{"name":"hasValue","description":"Component-wide: a rating is set."},{"name":"selected","description":"Per node, on `item`: a filled star."},{"name":"readonly","description":"Component-wide: the rating is `readonly`."},{"name":"disabled","description":"Component-wide while the rating is `disabled`; also per node, on `item`: a star that cannot be picked."},{"name":"warnings","description":"Component-wide: the rating shows warnings and no errors."},{"name":"errors","description":"Component-wide: the rating shows errors."}]},"tree":{"bindings":[{"part":"item","target":"label.bb-rating__item"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"CommonField","kind":"internal","vocabulary":"BbRating","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]}]},"css":{"classes":{"bb-rating":["","__icon","__item","__item--disabled","__item--empty","__item--filled","__item--readonly","__label-text","__options","__stars","__stars--disabled","__stars--errors","__stars--forced-clear","__stars--has-value","__stars--readonly","__stars--warnings"]},"locals":["--accent","--bg","--border-color","--color-gray-200","--empty","--hit","--ly-lj","--ly-x","--ring-color","--ring-t","--size","--space","--star-size","--tap-gap"],"surface":{"stable":[{"class":"bb-rating","tag":"CommonField","part":"root"},{"class":"bb-rating__item","tag":"label","part":"item","reads":["--accent","--empty","--hit","--ring-color","--ring-t"]},{"class":"bb-rating__stars--has-value","tag":"span","state":"hasValue"},{"class":"bb-rating__item--readonly","tag":"label","state":"readonly"},{"class":"bb-rating__stars--readonly","tag":"span","state":"readonly"},{"class":"bb-rating__item--disabled","tag":"label","state":"disabled"},{"class":"bb-rating__stars--disabled","tag":"span","state":"disabled"},{"class":"bb-rating__stars--warnings","tag":"span","state":"warnings"},{"class":"bb-rating__stars--errors","tag":"span","state":"errors"}],"internal":[{"class":"bb-rating__icon","tag":"BbIcon"},{"class":"bb-rating__item--empty","tag":"label"},{"class":"bb-rating__item--filled","tag":"label","reads":["--accent"]},{"class":"bb-rating__label-text","tag":"span"},{"class":"bb-rating__options","tag":"span","reads":["--hit","--ly-lj","--size","--space","--star-size","--tap-gap"]},{"class":"bb-rating__stars","tag":"span"},{"class":"bb-rating__stars--forced-clear","tag":"span"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["selected"]}}},"attrTargets":["div"],"config":"validationMode*, compact*, layout*, reverse*, inputPosition*, sizeMap","removed":[{"name":"color","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-rating.md","silent":true,"fix":{"kind":"manual"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-rating.md","silent":true,"fix":{"kind":"rename"}},{"name":"pt:label","new":"pt:legend","surface":"pt","since":"3.0.0-beta.69","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-rating.md","fix":{"kind":"rename"}},{"from":"pt:label","to":"pt:legend","surface":"pt","since":"3.0.0-beta.69","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
414
419
|
{"name":"BbSelect","group":"Selection","description":"Selects one or many options from structured data.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSelect.md","source":"ai/source/BbSelect.md","props":[{"name":"adaptive","type":"boolean | undefined","required":false,"default":"`all.adaptive` (`true`)","description":"When `true`, the options panel opens as a bottom off-canvas sheet on mobile viewports instead of a floating popover; on desktop it stays a popover.\n\nWhen unset, falls back to the global `all.adaptive`."},{"name":"append:icon","type":"string | undefined","required":false,"default":"the chevron-down glyph","description":"Name of the icon to be added at the end of the input."},{"name":"autocomplete","type":"string | undefined","required":false,"description":"Guides to the browser as to the type of information expected in the field."},{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"clearable","type":"boolean | undefined","required":false,"default":"false","description":"Displays a clear button when the input has a value and is being interacted with. A single select also clears when the picked option is clicked again."},{"name":"comma","type":"boolean | undefined","required":false,"default":"false","description":"Sets the display model for selected values to a list of comma separated string. In this mode the user cannot deselect an option by pressing the close button."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`)."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"default":"0","description":"Timeout used to debounce response to changes to dependencies."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"disableWriting","type":"boolean | \"auto\" | \"mobile\" | \"desktop\" | undefined","required":false,"default":"'auto'","description":"Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform only. `'auto'` hides it, per open, for an array `items` shorter than the plugin's `autoDisableWritingThreshold` (6); never for a provider or with an `option:add` listener."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every successful load that is not a search, removes the picks the fetched rows do not contain (a single model resets to `null`). A `stash` does not count, a value a `known-items` row names is kept until a parent change; a search or a failed load never prunes."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the provider threw): the twin of `emptyText` for that case."},{"name":"filterBy","type":"false | string[] | undefined","required":false,"default":"[]","description":"What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Ranked, case and accents ignored (guide § Search). Use `false` when the provider matched the query on the server, or its email matches show as \"No results\"."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"groupBy","type":"string | ((item: T) => string | number | symbol) | undefined","required":false,"description":"Path to item property for grouping options."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"headerHeight","type":"number | undefined","required":false,"description":"Height of group headers in the listbox (px). Defaults to 32px (24px compact; 36px / 32px on mobile viewports). Only applies when `groupBy` is set. An explicit value wins on every viewport."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"itemHeight","type":"number | undefined","required":false,"default":"28","description":"Height of the options in the listbox (px). Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport."},{"name":"itemProps","type":"BbSelectItemProps<T> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips."},{"name":"items","type":"T[] | ((context: BbSelectItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`), sync or async. Branch on `reason !== 'search'` to resolve the selection by id. A provider fails by THROWING, never by returning `[]`."},{"name":"itemText","type":"ItemAccessor<T, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<T> | undefined","required":false,"default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},{"name":"knownItems","type":"([Known] extends [undefined] ? BbSelectKnownItems : Known) | undefined","required":false,"description":"`{ value, label }` rows naming the value the app already holds, whatever the options' shape: no request until the first open (`prefill: true` still loads). Not options; the options' accessors never run on them; slots get the row as `item`, with `known: true`, until the list brings its own."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelMode","type":"\"outside\" | \"floating\" | \"inside\" | undefined","required":false,"description":"Label rendering mode."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Sets the component in a loading state, usually triggering some visual styles."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"max","type":"number | undefined","required":false,"description":"Maximum number of selectable items when the multiple flag is set."},{"name":"maxSelectedLabels","type":"number | undefined","required":false,"default":"Infinity","description":"Maximum number of labels shown before collapsing to a count summary. Unset, the labels collapse only when they overflow the field."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be any serializable type."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"default":"0","description":"Timeout used to debounce response to changes to modelValue."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"false","description":"Allows the selection of multiple items."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"offCanvasProps","type":"Partial<BbOffCanvasProps> | undefined","required":false,"description":"Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet)."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"placeholder","type":"string | undefined","required":false,"description":"Text shown in the field while nothing is picked (an empty list has `emptyText`)."},{"name":"prefill","type":"boolean | \"interaction\" | undefined","required":false,"default":"'interaction'","description":"When the options first load: `'interaction'` on first open, `true` on mount, `false` only once the user types (on open with `disable-writing`). An array `items` or a seeded model always loads at once."},{"name":"prepend:icon","type":"string | undefined","required":false,"description":"Name of the icon to be added at the start of the input."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"activator\", \"input\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\", \"panel\", \"sheet\", \"header\", \"footer\", \"list\", \"option\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"badge\", \"comma\"]; readonly states: readonly [\"hasValue\", \"selected\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly node: { readonly option: readonly [\"selected\"]; readonly itemText: readonly [\"selected\"]; readonly itemIcon: readonly [\"selected\"]; readonly itemDescription: readonly [\"selected\"]; readonly check: readonly [\"selected\"]; }; readonly except: { readonly clear: readonly [\"disabled\", \"readonly\"]; }; readonly variant: { readonly names: readonly [\"outline\", \"secondary\", \"ghost\"]; readonly option: \"selectVariants\"; readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"activator\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; label?: PtValue | undefined; prefix?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; spinner?: PtValue | undefined; clear?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"clear:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; box?: PtValue | undefined; suffix?: PtValue | undefined; sheet?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:errors\"?: PtValue | undefined; \"input:warnings\"?: PtValue | undefined; \"input:readonly\"?: PtValue | undefined; \"input:hasValue\"?: PtValue | undefined; \"label:open\"?: PtValue | undefined; \"prefix:open\"?: PtValue | undefined; \"prefix:loading\"?: PtValue | undefined; \"prefix:disabled\"?: PtValue | undefined; \"prefix:errors\"?: PtValue | undefined; \"prefix:warnings\"?: PtValue | undefined; \"prefix:readonly\"?: PtValue | undefined; \"prefix:hasValue\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:errors\"?: PtValue | undefined; \"panel:warnings\"?: PtValue | undefined; \"panel:readonly\"?: PtValue | undefined; \"panel:hasValue\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"spinner:errors\"?: PtValue | undefined; \"spinner:warnings\"?: PtValue | undefined; \"spinner:readonly\"?: PtValue | undefined; \"spinner:hasValue\"?: PtValue | undefined; \"clear:open\"?: PtValue | undefined; \"clear:errors\"?: PtValue | undefined; \"clear:warnings\"?: PtValue | undefined; \"clear:hasValue\"?: PtValue | undefined; \"description:open\"?: PtValue | undefined; \"message:open\"?: PtValue | undefined; \"hint:open\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:errors\"?: PtValue | undefined; \"box:warnings\"?: PtValue | undefined; \"box:readonly\"?: PtValue | undefined; \"box:hasValue\"?: PtValue | undefined; \"suffix:open\"?: PtValue | undefined; \"suffix:loading\"?: PtValue | undefined; \"suffix:disabled\"?: PtValue | undefined; \"suffix:errors\"?: PtValue | undefined; \"suffix:warnings\"?: PtValue | undefined; \"suffix:readonly\"?: PtValue | undefined; \"suffix:hasValue\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:errors\"?: PtValue | undefined; \"sheet:warnings\"?: PtValue | undefined; \"sheet:readonly\"?: PtValue | undefined; \"sheet:hasValue\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; activator?: PtValue | undefined; \"header:loading\"?: PtValue | undefined; \"header:errors\"?: PtValue | undefined; \"header:warnings\"?: PtValue | undefined; \"header:readonly\"?: PtValue | undefined; \"header:hasValue\"?: PtValue | undefined; \"activator:open\"?: PtValue | undefined; \"activator:loading\"?: PtValue | undefined; \"activator:disabled\"?: PtValue | undefined; \"activator:errors\"?: PtValue | undefined; \"activator:warnings\"?: PtValue | undefined; \"activator:readonly\"?: PtValue | undefined; \"activator:hasValue\"?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"footer:loading\"?: PtValue | undefined; \"footer:disabled\"?: PtValue | undefined; \"itemText:loading\"?: PtValue | undefined; \"itemIcon:loading\"?: PtValue | undefined; \"check:loading\"?: PtValue | undefined; \"footer:errors\"?: PtValue | undefined; \"footer:warnings\"?: PtValue | undefined; \"footer:readonly\"?: PtValue | undefined; \"footer:hasValue\"?: PtValue | undefined; \"option:open\"?: PtValue | undefined; \"option:loading\"?: PtValue | undefined; \"option:disabled\"?: PtValue | undefined; \"option:errors\"?: PtValue | undefined; \"option:warnings\"?: PtValue | undefined; \"option:readonly\"?: PtValue | undefined; \"option:hasValue\"?: PtValue | undefined; \"itemText:errors\"?: PtValue | undefined; \"itemText:warnings\"?: PtValue | undefined; \"itemText:readonly\"?: PtValue | undefined; \"itemText:hasValue\"?: PtValue | undefined; \"itemIcon:errors\"?: PtValue | undefined; \"itemIcon:warnings\"?: PtValue | undefined; \"itemIcon:readonly\"?: PtValue | undefined; \"itemIcon:hasValue\"?: PtValue | undefined; \"check:errors\"?: PtValue | undefined; \"check:warnings\"?: PtValue | undefined; \"check:readonly\"?: PtValue | undefined; \"check:hasValue\"?: PtValue | undefined; \"badge:open\"?: PtValue | undefined; \"badge:loading\"?: PtValue | undefined; \"badge:disabled\"?: PtValue | undefined; \"badge:errors\"?: PtValue | undefined; \"badge:warnings\"?: PtValue | undefined; \"badge:readonly\"?: PtValue | undefined; \"badge:hasValue\"?: PtValue | undefined; \"comma:open\"?: PtValue | undefined; \"comma:loading\"?: PtValue | undefined; \"comma:disabled\"?: PtValue | undefined; \"comma:errors\"?: PtValue | undefined; \"comma:warnings\"?: PtValue | undefined; \"comma:readonly\"?: PtValue | undefined; \"comma:hasValue\"?: PtValue | undefined; \"option:selected\"?: PtValue | undefined; } & { option?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemDescription?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemText?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemIcon?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; check?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; badge?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; comma?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"clear:outline\"?: PtValue | undefined; \"clear:secondary\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"label:secondary\"?: PtValue | undefined; \"label:ghost\"?: PtValue | undefined; \"prefix:outline\"?: PtValue | undefined; \"prefix:secondary\"?: PtValue | undefined; \"prefix:ghost\"?: PtValue | undefined; \"clear:ghost\"?: PtValue | undefined; \"description:secondary\"?: PtValue | undefined; \"description:ghost\"?: PtValue | undefined; \"message:secondary\"?: PtValue | undefined; \"message:ghost\"?: PtValue | undefined; \"hint:secondary\"?: PtValue | undefined; \"hint:ghost\"?: PtValue | undefined; \"box:outline\"?: PtValue | undefined; \"box:secondary\"?: PtValue | undefined; \"box:ghost\"?: PtValue | undefined; \"suffix:outline\"?: PtValue | undefined; \"suffix:secondary\"?: PtValue | undefined; \"suffix:ghost\"?: PtValue | undefined; \"activator:outline\"?: PtValue | undefined; \"activator:secondary\"?: PtValue | undefined; \"activator:ghost\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:activator","type":"PtValue | undefined","required":false},{"name":"pt:activator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:activator:errors","type":"PtValue | undefined","required":false},{"name":"pt:activator:ghost","type":"PtValue | undefined","required":false},{"name":"pt:activator:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:activator:loading","type":"PtValue | undefined","required":false},{"name":"pt:activator:open","type":"PtValue | undefined","required":false},{"name":"pt:activator:outline","type":"PtValue | undefined","required":false},{"name":"pt:activator:readonly","type":"PtValue | undefined","required":false},{"name":"pt:activator:secondary","type":"PtValue | undefined","required":false},{"name":"pt:activator:warnings","type":"PtValue | undefined","required":false},{"name":"pt:badge","type":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:badge:disabled","type":"PtValue | undefined","required":false},{"name":"pt:badge:errors","type":"PtValue | undefined","required":false},{"name":"pt:badge:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:badge:loading","type":"PtValue | undefined","required":false},{"name":"pt:badge:open","type":"PtValue | undefined","required":false},{"name":"pt:badge:readonly","type":"PtValue | undefined","required":false},{"name":"pt:badge:warnings","type":"PtValue | undefined","required":false},{"name":"pt:box","type":"PtValue | undefined","required":false},{"name":"pt:box:disabled","type":"PtValue | undefined","required":false},{"name":"pt:box:errors","type":"PtValue | undefined","required":false},{"name":"pt:box:ghost","type":"PtValue | undefined","required":false},{"name":"pt:box:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:box:loading","type":"PtValue | undefined","required":false},{"name":"pt:box:open","type":"PtValue | undefined","required":false},{"name":"pt:box:outline","type":"PtValue | undefined","required":false},{"name":"pt:box:readonly","type":"PtValue | undefined","required":false},{"name":"pt:box:secondary","type":"PtValue | undefined","required":false},{"name":"pt:box:warnings","type":"PtValue | undefined","required":false},{"name":"pt:check","type":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:check:disabled","type":"PtValue | undefined","required":false},{"name":"pt:check:errors","type":"PtValue | undefined","required":false},{"name":"pt:check:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:check:loading","type":"PtValue | undefined","required":false},{"name":"pt:check:open","type":"PtValue | undefined","required":false},{"name":"pt:check:readonly","type":"PtValue | undefined","required":false},{"name":"pt:check:selected","type":"PtValue | undefined","required":false},{"name":"pt:check:warnings","type":"PtValue | undefined","required":false},{"name":"pt:clear","type":"PtValue | undefined","required":false},{"name":"pt:clear:errors","type":"PtValue | undefined","required":false},{"name":"pt:clear:ghost","type":"PtValue | undefined","required":false},{"name":"pt:clear:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:clear:loading","type":"PtValue | undefined","required":false},{"name":"pt:clear:open","type":"PtValue | undefined","required":false},{"name":"pt:clear:outline","type":"PtValue | undefined","required":false},{"name":"pt:clear:secondary","type":"PtValue | undefined","required":false},{"name":"pt:clear:warnings","type":"PtValue | undefined","required":false},{"name":"pt:comma","type":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:comma:disabled","type":"PtValue | undefined","required":false},{"name":"pt:comma:errors","type":"PtValue | undefined","required":false},{"name":"pt:comma:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:comma:loading","type":"PtValue | undefined","required":false},{"name":"pt:comma:open","type":"PtValue | undefined","required":false},{"name":"pt:comma:readonly","type":"PtValue | undefined","required":false},{"name":"pt:comma:warnings","type":"PtValue | undefined","required":false},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:ghost","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:open","type":"PtValue | undefined","required":false},{"name":"pt:description:outline","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:secondary","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:footer","type":"PtValue | undefined","required":false},{"name":"pt:footer:disabled","type":"PtValue | undefined","required":false},{"name":"pt:footer:errors","type":"PtValue | undefined","required":false},{"name":"pt:footer:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:footer:loading","type":"PtValue | undefined","required":false},{"name":"pt:footer:open","type":"PtValue | undefined","required":false},{"name":"pt:footer:readonly","type":"PtValue | undefined","required":false},{"name":"pt:footer:warnings","type":"PtValue | undefined","required":false},{"name":"pt:header","type":"PtValue | undefined","required":false},{"name":"pt:header:disabled","type":"PtValue | undefined","required":false},{"name":"pt:header:errors","type":"PtValue | undefined","required":false},{"name":"pt:header:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:header:loading","type":"PtValue | undefined","required":false},{"name":"pt:header:open","type":"PtValue | undefined","required":false},{"name":"pt:header:readonly","type":"PtValue | undefined","required":false},{"name":"pt:header:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:ghost","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:open","type":"PtValue | undefined","required":false},{"name":"pt:hint:outline","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:secondary","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:ghost","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:open","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:secondary","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:input","type":"PtValue | undefined","required":false},{"name":"pt:input:disabled","type":"PtValue | undefined","required":false},{"name":"pt:input:errors","type":"PtValue | undefined","required":false},{"name":"pt:input:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:input:loading","type":"PtValue | undefined","required":false},{"name":"pt:input:open","type":"PtValue | undefined","required":false},{"name":"pt:input:readonly","type":"PtValue | undefined","required":false},{"name":"pt:input:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:open","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:selected","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon","type":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:itemIcon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:open","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:selected","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemText","type":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:itemText:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemText:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemText:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemText:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemText:open","type":"PtValue | undefined","required":false},{"name":"pt:itemText:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemText:selected","type":"PtValue | undefined","required":false},{"name":"pt:itemText:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:ghost","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:open","type":"PtValue | undefined","required":false},{"name":"pt:label:outline","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:secondary","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:errors","type":"PtValue | undefined","required":false},{"name":"pt:list:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:list:loading","type":"PtValue | undefined","required":false},{"name":"pt:list:open","type":"PtValue | undefined","required":false},{"name":"pt:list:readonly","type":"PtValue | undefined","required":false},{"name":"pt:list:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:ghost","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:open","type":"PtValue | undefined","required":false},{"name":"pt:message:outline","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:secondary","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:option","type":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:option:disabled","type":"PtValue | undefined","required":false},{"name":"pt:option:errors","type":"PtValue | undefined","required":false},{"name":"pt:option:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:option:loading","type":"PtValue | undefined","required":false},{"name":"pt:option:open","type":"PtValue | undefined","required":false},{"name":"pt:option:readonly","type":"PtValue | undefined","required":false},{"name":"pt:option:selected","type":"PtValue | undefined","required":false},{"name":"pt:option:warnings","type":"PtValue | undefined","required":false},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:disabled","type":"PtValue | undefined","required":false},{"name":"pt:panel:errors","type":"PtValue | undefined","required":false},{"name":"pt:panel:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:panel:loading","type":"PtValue | undefined","required":false},{"name":"pt:panel:open","type":"PtValue | undefined","required":false},{"name":"pt:panel:readonly","type":"PtValue | undefined","required":false},{"name":"pt:panel:warnings","type":"PtValue | undefined","required":false},{"name":"pt:prefix","type":"PtValue | undefined","required":false},{"name":"pt:prefix:disabled","type":"PtValue | undefined","required":false},{"name":"pt:prefix:errors","type":"PtValue | undefined","required":false},{"name":"pt:prefix:ghost","type":"PtValue | undefined","required":false},{"name":"pt:prefix:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:prefix:loading","type":"PtValue | undefined","required":false},{"name":"pt:prefix:open","type":"PtValue | undefined","required":false},{"name":"pt:prefix:outline","type":"PtValue | undefined","required":false},{"name":"pt:prefix:readonly","type":"PtValue | undefined","required":false},{"name":"pt:prefix:secondary","type":"PtValue | undefined","required":false},{"name":"pt:prefix:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:ghost","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:open","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:secondary","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"pt:sheet","type":"PtValue | undefined","required":false},{"name":"pt:sheet:disabled","type":"PtValue | undefined","required":false},{"name":"pt:sheet:errors","type":"PtValue | undefined","required":false},{"name":"pt:sheet:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:sheet:loading","type":"PtValue | undefined","required":false},{"name":"pt:sheet:open","type":"PtValue | undefined","required":false},{"name":"pt:sheet:readonly","type":"PtValue | undefined","required":false},{"name":"pt:sheet:warnings","type":"PtValue | undefined","required":false},{"name":"pt:spinner","type":"PtValue | undefined","required":false},{"name":"pt:spinner:disabled","type":"PtValue | undefined","required":false},{"name":"pt:spinner:errors","type":"PtValue | undefined","required":false},{"name":"pt:spinner:ghost","type":"PtValue | undefined","required":false},{"name":"pt:spinner:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:spinner:loading","type":"PtValue | undefined","required":false},{"name":"pt:spinner:open","type":"PtValue | undefined","required":false},{"name":"pt:spinner:outline","type":"PtValue | undefined","required":false},{"name":"pt:spinner:readonly","type":"PtValue | undefined","required":false},{"name":"pt:spinner:secondary","type":"PtValue | undefined","required":false},{"name":"pt:spinner:warnings","type":"PtValue | undefined","required":false},{"name":"pt:suffix","type":"PtValue | undefined","required":false},{"name":"pt:suffix:disabled","type":"PtValue | undefined","required":false},{"name":"pt:suffix:errors","type":"PtValue | undefined","required":false},{"name":"pt:suffix:ghost","type":"PtValue | undefined","required":false},{"name":"pt:suffix:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:suffix:loading","type":"PtValue | undefined","required":false},{"name":"pt:suffix:open","type":"PtValue | undefined","required":false},{"name":"pt:suffix:outline","type":"PtValue | undefined","required":false},{"name":"pt:suffix:readonly","type":"PtValue | undefined","required":false},{"name":"pt:suffix:secondary","type":"PtValue | undefined","required":false},{"name":"pt:suffix:warnings","type":"PtValue | undefined","required":false},{"name":"queryDebounceTime","type":"number | undefined","required":false,"default":"500","description":"Time to wait when the user stops writing in the input before querying data."},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"selectable","type":"boolean | ((item: T) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"selectedLabelsFn","type":"((count: number) => string) | undefined","required":false,"description":"Function that returns a string to be displayed when the number of selected labels is greater than `maxSelectedLabels`."},{"name":"stash","type":"boolean | undefined","required":false,"default":"false","description":"Keeps picked options named across searches: a pick stays resolvable (its chip keeps its text) when a later search or a failed load no longer returns it. It follows the model, and does not keep a pick valid: `enforce-coherence` still prunes it."},{"name":"transitionDuration","type":"number | undefined","required":false,"default":"250","description":"How long the transition has to last in milliseconds."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"variant","type":"InputVariantOf<SelectVariantRegistry> | undefined","required":false,"default":"'outline'","values":["outline","secondary","none","ghost"],"description":"The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `components.BbSelect.variants`."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the select becomes active (focus enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the activator loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted on the native `change` event. Forwards the original DOM `Event`."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when the activator is clicked. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the activator receives focus. Forwards the original DOM `FocusEvent`."},{"name":"hidden","signature":"(): void","description":"Emitted once the options surface has finished closing."},{"name":"hide","signature":"(): void","description":"Emitted as soon as the options surface starts to close."},{"name":"inactive","signature":"(): void","description":"Emitted when focus moves outside the whole select after it was active."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native `input` events from the search field. Forwards the DOM `Event`."},{"name":"option:add","signature":"(text: string): void","description":"Emitted with the typed text when the user confirms a value that is not in the list (Enter in the search field). Binding it keeps the search field writable, which makes the select creatable."},{"name":"show","signature":"(): void","description":"Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone)."},{"name":"shown","signature":"(): void","description":"Emitted once the options surface is open and its open transition has finished."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the new value whenever `v-model` changes."}],"slots":[{"name":"append","type":"{ query: string; focus: () => void; close: () => Promise<void>; }","description":"Content appended inside the input field, after the value area."},{"name":"append:outer","type":"{ query: string; close: () => Promise<void>; }","description":"Content appended outside the input field wrapper."},{"name":"chip","type":"BbSelectChipSlotProps<T, Known>","fields":["known: boolean","item: BbSelectKnownItem | T","text: string","value: any","disabled: boolean","deselect: () => void"],"description":"Replaces the default badge rendered for each selection in `multiple` mode. Not called in `comma` mode, nor for the collapsed \"+N\" summary. With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one."},{"name":"description","type":"BbSelectDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"empty","type":"{ query: string; focus: () => void; close: () => Promise<void>; error: unknown; }","description":"Content shown when no options match the query or the list is empty. `error` is what the latest failed load threw, untouched (`null` when none). `close()` closes the panel, for an action that does not move focus out of it."},{"name":"footer","type":"BbSelectPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption[]"],"description":"Content pinned to the bottom of the options panel, below the options list. Rendered in both the desktop popover and the adaptive sheet."},{"name":"group","type":"BbSelectGroupSlotProps<T>","fields":["text: string","item: T","index: number","length: number","disabled: boolean"],"description":"Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header."},{"name":"header","type":"BbSelectPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption[]"],"description":"Content pinned to the top of the options panel, above the search field. Rendered in both the desktop popover and the adaptive sheet."},{"name":"label","type":"BbSelectLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered above the input."},{"name":"loading","type":"{ query: string; }","description":"Content shown inside the options dropdown while items are loading."},{"name":"option","type":"BbSelectOptionSlotProps<T, Known>","fields":["known: boolean","item: BbSelectKnownItem | T","disabled: boolean","focused: boolean","index: number","hasErrors?: boolean","loading: boolean","selected: boolean","text: string","value: any","description: string"],"description":"Replaces the default rendering of each option row in the dropdown. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row, `known: true`: check `known` before reading an option field off `item`."},{"name":"prefix","type":"object","description":"Content rendered as an inline prefix inside the input field."},{"name":"prepend","type":"{ query: string; focus: () => void; close: () => Promise<void>; }","description":"Content prepended inside the input field, before the value area."},{"name":"prepend:outer","type":"{ query: string; close: () => Promise<void>; }","description":"Content prepended outside the input field wrapper."},{"name":"suffix","type":"object","description":"Content rendered as an inline suffix inside the input field."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--compensation-multiplier","value":"0.3","selector":".bb-select__field","description":"Fraction of the shell's inner padding the chips row is pulled back by when no prepend icon precedes it (see the negative margin below)."},{"name":"--border-color","value":"per variant","selector":"pt:box","description":"The resting border, at the fixed --bb-border-w. Errors and warnings paint their frame over it, so `pt:box=\"[--border-color:…]\"` recolours the rest without hiding the state; a plain `border-*` utility on the base pt:box would hide it (ESLint `no-box-border-color`)."},{"name":"--ph","value":"var(--bb-text-muted)","selector":"pt:box","description":"Placeholder colour, one local for every field: the native `::placeholder`, BbSelect's activator text and the picker inputs' empty segments. Set it through `pt:box=\"[--ph:…]\"`; app-wide, the same entry in the global pt map."}],"pt":{"parts":[{"name":"root","description":"The field's outer container: the label, the box and the lines under it; a `class` on the component lands here. (The options surface is `panel`.)"},{"name":"label","description":"The label text above the box (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line under the box. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"box","description":"The bordered box around the input — border, background and radius; the `variant` paints here."},{"name":"activator","description":"The button you act on to open the options — the field's control (not a text field: `data-test` fits here, `autocomplete` does not). The chevron is chrome. It is `activator`, not the family's `input`: the field itself is a button (the date / time inputs' trigger is the same word)."},{"name":"input","description":"The search field inside the options surface, when it shows one (see `disable-writing`) — handed to the `BbSelectPopover` as its own `pt:input`. Its ✕ is chrome."},{"name":"icon","description":"The content icons, prepend and append — a broadcast. Chrome (the clear ✕, a chevron, the error / warning glyph) is never in it."},{"name":"spinner","description":"The spinner inside the box while `loading`."},{"name":"prefix","description":"The `#prefix` slot's wrapper, inside the box before the input."},{"name":"suffix","description":"The `#suffix` slot's wrapper, inside the box after the input."},{"name":"clear","description":"The ✕ in the field that empties the selection (`clearable`) — one node, never a chip's own ✕."},{"name":"panel","description":"The options surface — the popover's painted bubble on desktop, the sheet itself on a phone."},{"name":"sheet","description":"The bottom sheet the options open in on a phone only."},{"name":"header","description":"The band around your `#header` slot: at the top of the flyout on desktop, the sheet's header on a phone."},{"name":"footer","description":"The band around your `#footer` slot: at the bottom of the flyout on desktop, the sheet's footer on a phone."},{"name":"list","description":"The `role=\"listbox\"` node that holds the options. Virtualised: its height is written inline and its rows are positioned by the list, which limits what a layout utility can do there. The listbox's groups and the chips are not parts."},{"name":"option","description":"One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item."},{"name":"itemText","description":"An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function."},{"name":"itemIcon","description":"An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function."},{"name":"itemDescription","description":"An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function."},{"name":"check","description":"The tick on the chosen option, at the row's end — mounted on every option and drawn on the chosen ones; a custom `#option` slot keeps it. `pt:check=\"hidden\"` removes it and leaves a glyph your slot draws alone. Also takes a per-item function."},{"name":"badge","description":"Each selected value's `BbBadge` root with `multiple` — a broadcast resolved per value, on the field's chips and on the phone sheet's. The badge's own ✕ is chrome, never `clear`. In the field, not rendered when the `#chip` slot replaces it, nor in `comma` mode; the sheet's chips are always badges."},{"name":"comma","description":"Each selected value with `multiple` and `comma` — a broadcast resolved per value."}],"states":[{"name":"hasValue","description":"Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`)."},{"name":"selected","description":"Per node, on `option`, its `item-*` parts and `check`: a chosen option."},{"name":"readonly","description":"Component-wide: the control is `readonly` — shown, focusable, not editable."},{"name":"disabled","description":"Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled."},{"name":"warnings","description":"Component-wide: the control is in its warning state (`warnings` / `has-warnings`) and not in an error state — errors win, so the two are never on together."},{"name":"errors","description":"Component-wide: the control is in its error state (`errors` / `has-errors`, or its validation) — the message line and the box turn red."},{"name":"open","description":"Component-wide: the options surface is showing."},{"name":"loading","description":"Component-wide: `loading` is on; the box shows its `spinner`."},{"name":"ghost","description":"On the field's parts: `variant: 'ghost'`. Below the real states, like every variant."},{"name":"outline","description":"On the field's parts: `variant: 'outline'`. Merged after the part's base entry and before its states, so the real states still win."},{"name":"secondary","description":"On the field's parts: `variant: 'secondary'`. Below the real states, like every variant."}]},"tree":{"bindings":[{"part":"badge","target":"CommonField"},{"part":"activator","target":"input.bb-select__activator"},{"part":"badge","target":"input.bb-select__activator"},{"part":"comma","target":"span.bb-select__comma"},{"part":"badge","target":"span.bb-select__comma"},{"part":"badge","target":"BbBadge"},{"part":"controlAttrs","target":"input"},{"part":"badge","target":"input"}],"forwards":[{"to":"BbSelectPopover","mapping":"{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbSelect","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"CommonFieldInput","kind":"internal","vocabulary":"BbSelect","bindings":[{"part":"box","target":"span.bb-field-input__box"},{"part":"prefix","target":"span.bb-field-input__prefix"},{"part":"icon","target":"BbIcon"},{"part":"clear","target":"ClearableButton"},{"part":"spinner","target":"BbSpinner"},{"part":"suffix","target":"span.bb-field-input__suffix"}],"cssProps":[{"name":"--bg","documented":true,"readBy":["bb-field-input","bb-field-input__box"]},{"name":"--bg-hover","documented":true,"readBy":["bb-field-input__box"]},{"name":"--bg-focus","documented":true,"readBy":["bb-field-input__box"]},{"name":"--bg-disabled","documented":true,"readBy":["bb-field-input__box"]},{"name":"--fg-disabled","documented":true,"readBy":["bb-field-input__box","bb-field-input__prefix","bb-field-input__suffix","bb-field-input__prepend-icon","bb-field-input__append-icon"]},{"name":"--border-color","documented":true,"readBy":["bb-field-input","bb-field-input__box"]},{"name":"--border-focus","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ring-size","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ring-color","documented":true,"readBy":["bb-field-input__box"]},{"name":"--elev","documented":true,"readBy":["bb-field-input__box"]},{"name":"--frost","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ph","documented":true},{"name":"--inside-label-clearance","documented":true,"readBy":["bb-field-input__box","bb-field-input__prefix","bb-field-input__suffix"]},{"name":"--ring-t","documented":false,"readBy":["bb-field-input__box"]}],"children":[{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"WarningIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-warning-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"ClearableButton","kind":"internal","children":[{"name":"BbIcon","kind":"public"}]},{"name":"BbIcon","kind":"public"},{"name":"BbSpinner","kind":"public"}]},{"name":"BbBadge","kind":"public"},{"name":"BbSelectPopover","kind":"public"}]},"css":{"classes":{"bb-select":["","__activator","__badge","__chips-row","__chips-row--chips","__chips-row--hidden","__comma","__display-value","__field","__field--disabled","__field--readonly","__field--shown","__max-reached","__placeholder","__value"]},"locals":["--color-gray-200","--compensation-multiplier","--ph"],"surface":{"stable":[{"class":"bb-select","tag":"CommonField","part":"root"},{"class":"bb-select__activator","tag":"input","part":"activator"},{"class":"bb-select__badge","tag":"BbBadge","part":"badge"},{"class":"bb-select__comma","tag":"span","part":"comma"},{"class":"bb-select__field--readonly","tag":"CommonFieldInput","state":"readonly"},{"class":"bb-select__field--disabled","tag":"CommonFieldInput","state":"disabled"}],"internal":[{"class":"bb-select__chips-row","tag":"span"},{"class":"bb-select__chips-row--chips","tag":"span","reads":["--compensation-multiplier"]},{"class":"bb-select__chips-row--hidden","tag":"span"},{"class":"bb-select__display-value","tag":"span"},{"class":"bb-select__field","tag":"CommonFieldInput"},{"class":"bb-select__field--shown","tag":"CommonFieldInput"},{"class":"bb-select__max-reached","tag":"span"},{"class":"bb-select__placeholder","tag":"span","reads":["--ph"]},{"class":"bb-select__value","tag":"span"}],"via":[{"part":"icon","component":"BbIcon"},{"part":"spinner","component":"BbSpinner"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"},{"part":"box","target":"span.bb-field-input__box"},{"part":"prefix","target":"span.bb-field-input__prefix"},{"part":"suffix","target":"span.bb-field-input__suffix"},{"part":"clear","target":"ClearableButton"}],"unaligned":{"parts":["label","input","panel","sheet","header","footer","list","option","itemText","itemIcon","itemDescription","check"],"states":["hasValue","selected","warnings","errors","open","loading","ghost","outline","secondary"]}}},"attrTargets":["div","input"],"config":"labelMode*, validationMode*, autocomplete*, compact*, layout*, reverse*, adaptive*, variants","removed":[{"name":"allowWriting","new":"disableWriting","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select.md","silent":true,"fix":{"kind":"invert","valueMap":{"not-mobile":"mobile"}}},{"name":"showChevron","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select.md","silent":true,"fix":{"kind":"remove"}},{"name":"updateOnAnimationFrame","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select.md","silent":true,"fix":{"kind":"remove"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-select.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"prepend-outer","new":"prepend:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"append-outer","new":"append:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"allowWriting","to":"disableWriting","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select.md","fix":{"kind":"invert","valueMap":{"not-mobile":"mobile"}}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-select.md","fix":{"kind":"rename"}},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"prepend-outer","to":"prepend:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"append-outer","to":"append:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
415
420
|
{"name":"BbSelectPopover","group":"Selection","description":"Provides popover-driven option selection and search.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSelectPopover.md","source":"ai/source/BbSelectPopover.md","props":[{"name":"activator","type":"ElementOrComponentRef | undefined","required":false,"description":"External activator element or component ref. When provided, the activator slot is not rendered and event listeners are attached programmatically to the referenced element."},{"name":"adaptive","type":"boolean | undefined","required":false,"default":"`all.adaptive` (`true`)","description":"On mobile, the panel opens as a bottom sheet instead of a floating popover, with the same search and list. Unset, the global `all.adaptive` applies."},{"name":"anchor","type":"ElementOrComponentRef | undefined","required":false,"default":"null","description":"Override the element used for popover positioning and width measurement. Useful when the focusable activator is narrower than its visual container (e.g. a button inside a wrapper). Falls back to `activatorEl` when omitted."},{"name":"ariaDescribedby","type":"string | string[] | undefined","required":false,"description":"Space-separated IDREF(s) that describe this field for assistive technologies. Accepts either a string or array of ids."},{"name":"ariaInvalid","type":"boolean | undefined","required":false,"default":"undefined","description":"Explicit invalid state for accessibility semantics. Falls back to `hasErrors` when not provided."},{"name":"autocomplete","type":"string | undefined","required":false,"default":"\"off\"","description":"Browser autocomplete hint for the popover search input."},{"name":"boundary","type":"ElementOrComponentRefOrSelector | undefined","required":false,"description":"An element the popover stays inside alongside its trigger (sideways for one above or below). Away from the trigger it may pass the edge, and it flips at the viewport only."},{"name":"clearable","type":"boolean | undefined","required":false,"default":"false","description":"Shows a clear button in the search field, in the lens' place while there is a query or a selection; it resets both. None without a search field. Leave it off when the activator already clears (as BbSelect's does)."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Apply the compact density variant."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"default":"[]","description":"Additional dependencies that trigger item reloading when changed."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"default":"0","description":"Debounce delay (ms) for dependency-triggered reloads."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"disableFlip","type":"boolean | undefined","required":false,"default":"false","description":"Disables the automatic flip to the opposite side when the popover would overflow (flipping is on by default)."},{"name":"disableWriting","type":"boolean | \"auto\" | \"mobile\" | \"desktop\" | undefined","required":false,"default":"'auto'","description":"Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform only. `'auto'` hides it, per open, for an array `items` shorter than the plugin's `autoDisableWritingThreshold` (6); never for a provider or with an `option:add` listener."},{"name":"emptyText","type":"string | undefined","required":false,"description":"Message displayed when no items are available."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"Drops the picks the items no longer contain (single: `null`). Checked after every applied, successful load whose `reason` is not `'search'` (an empty one included), against the FETCHED rows only (a `stash` does not count); a search or failed load never prunes."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"Message displayed in the empty state while the latest load FAILED (the provider threw): the twin of `emptyText` for that case."},{"name":"filterBy","type":"false | string[] | undefined","required":false,"default":"[]","description":"What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Use `false` when the provider matched the query on the server, or its email matches show as \"No results\"."},{"name":"groupBy","type":"string | ((item: Item) => string | number | symbol) | undefined","required":false,"description":"Path to item property for grouping options."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Marks the component as being in error state."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Marks the component as being in a warning state. Visually mirrors `hasErrors` but uses `--bb-warn` chrome; errors take priority when both are set."},{"name":"headerHeight","type":"number | undefined","required":false,"description":"Height of group headers in the listbox (px). Defaults to 32px (24px compact; 36px / 32px on mobile viewports). Only applies when `groupBy` is set. An explicit value wins on every viewport."},{"name":"id","type":"string | undefined","required":false,"description":"Seeds the ids the popover sets: its listbox is `<id>_listbox` (the activator's `aria-controls`) and each option's id derives from it. Generated when omitted."},{"name":"itemHeight","type":"number | undefined","required":false,"default":"28","description":"Height of the options in the listbox (px). Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport."},{"name":"itemProps","type":"BbSelectItemProps<Item> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips."},{"name":"items","type":"Item[] | ((context: BbSelectPopoverItemsContext) => Item[] | Promise<Item[]>)","required":true,"default":"[]","description":"The options: an array, or a sync or async provider given a `BbSelectPopoverItemsContext` (`query`, `reason`, `modelValue`, `signal`). Branch on `reason !== 'search'` to resolve the selection by id. A provider fails by THROWING, never by returning `[]`."},{"name":"itemText","type":"ItemAccessor<Item, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Path to item property for display text or function to extract it.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<Item> | undefined","required":false,"default":"own `value`, else the whole item","description":"Path to item property for value or function to extract it.\n\nUnset: own `value`, even `null`."},{"name":"knownItems","type":"([Known] extends [undefined] ? BbSelectKnownItems : Known) | undefined","required":false,"description":"`{ value, label }` rows naming the value the app already holds, whatever the options' shape: the activator's `text` with no request until the first open (`prefill: true` still loads). Not options: accessors never run on them; slots get one as `item`, `known: true`, until the list brings its own."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Display the loading state styles."},{"name":"loadingText","type":"string | undefined","required":false,"description":"Message shown while items are being loaded."},{"name":"max","type":"number | undefined","required":false,"default":"Infinity","description":"Maximum number of selectable items (limits selection when `multiple` is true)."},{"name":"modelValue","type":"any","required":true,"description":"v-model value. Single value for single select, array for multiple select."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"default":"0","description":"Debounce delay (ms) for modelValue change handling."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"false","description":"Enable multiple item selection. When true, modelValue must be an array."},{"name":"offCanvasProps","type":"Partial<BbOffCanvasProps> | undefined","required":false,"description":"Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet)."},{"name":"offset","type":"number | undefined","required":false,"default":"4","description":"Distance (px) between the activator and the popover."},{"name":"padding","type":"number | undefined","required":false,"default":"10","description":"Minimum page padding used by floating shift middleware."},{"name":"placement","type":"Placement | undefined","required":false,"default":"\"bottom\"","values":["start","end","top","bottom","left","right","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end","start-start","start-end","end-start","end-end"],"description":"Floating placement of the popover."},{"name":"prefill","type":"boolean | \"interaction\" | undefined","required":false,"default":"\"interaction\"","description":"When the options first load: `'interaction'` on first open, `true` on mount (and in SSR), `false` once the user types (on open with `disable-writing` or a non-empty model). An array `items` always resolves on mount; else a seeded model's text waits for the first open."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"input\", \"clear\", \"list\", \"option\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"header\", \"footer\"]; readonly states: readonly [\"selected\", \"disabled\", \"open\"]; readonly wide: readonly [\"open\"]; readonly node: { readonly option: readonly [\"selected\", \"disabled\"]; readonly itemText: readonly [\"selected\", \"disabled\"]; readonly itemIcon: readonly [\"selected\", \"disabled\"]; readonly itemDescription: readonly [\"selected\", \"disabled\"]; readonly check: readonly [\"selected\", \"disabled\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; clear?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; sheet?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"clear:open\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"option:open\"?: PtValue | undefined; \"option:disabled\"?: PtValue | undefined; \"option:selected\"?: PtValue | undefined; } & { option?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemDescription?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemText?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemIcon?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; check?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:check","type":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:check:disabled","type":"PtValue | undefined","required":false},{"name":"pt:check:open","type":"PtValue | undefined","required":false},{"name":"pt:check:selected","type":"PtValue | undefined","required":false},{"name":"pt:clear","type":"PtValue | undefined","required":false},{"name":"pt:clear:open","type":"PtValue | undefined","required":false},{"name":"pt:footer","type":"PtValue | undefined","required":false},{"name":"pt:footer:open","type":"PtValue | undefined","required":false},{"name":"pt:header","type":"PtValue | undefined","required":false},{"name":"pt:header:open","type":"PtValue | undefined","required":false},{"name":"pt:input","type":"PtValue | undefined","required":false},{"name":"pt:input:open","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:open","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:selected","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon","type":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:itemIcon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:open","type":"PtValue | undefined","required":false},{"name":"pt:itemIcon:selected","type":"PtValue | undefined","required":false},{"name":"pt:itemText","type":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:itemText:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemText:open","type":"PtValue | undefined","required":false},{"name":"pt:itemText:selected","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:open","type":"PtValue | undefined","required":false},{"name":"pt:option","type":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined","required":false},{"name":"pt:option:disabled","type":"PtValue | undefined","required":false},{"name":"pt:option:open","type":"PtValue | undefined","required":false},{"name":"pt:option:selected","type":"PtValue | undefined","required":false},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:open","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:open","type":"PtValue | undefined","required":false},{"name":"pt:sheet","type":"PtValue | undefined","required":false},{"name":"pt:sheet:open","type":"PtValue | undefined","required":false},{"name":"queryDebounceTime","type":"number | undefined","required":false,"default":"500","description":"Debounce delay (ms) before triggering search queries after user input stops."},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Prevents opening the popover while keeping the activator accessible."},{"name":"searchInputAriaLabel","type":"string | undefined","required":false,"default":"`t('select.searchLabel')` (`'Search options'`)","description":"Accessible label used by the search input rendered inside the popover. Falls back to the localized `select.searchLabel` key when omitted."},{"name":"selectable","type":"boolean | ((item: Item) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"stash","type":"boolean | undefined","required":false,"default":"false","description":"Keeps picked options named across searches: a pick stays resolvable when a later search or a failed load no longer returns it. It follows the model, and does not keep a pick valid: `enforce-coherence` still prunes it."},{"name":"transitionDuration","type":"number | undefined","required":false,"default":"250","description":"Transition duration (ms) for popover show/hide animations."},{"name":"width","type":"string | number | undefined","required":false,"default":"\"200\"","description":"Width of the popover: a bare number or `'200'` is pixels, else a CSS width, a percentage or `'auto'`. The default is the string `'200'`."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the component becomes active (focus enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the activator loses focus."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the value changes via native change event."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when the activator is clicked."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the activator receives focus."},{"name":"hidden","signature":"(): void","description":"Emitted once the options surface has finished closing."},{"name":"hide","signature":"(): void","description":"Emitted as soon as the options surface starts to close."},{"name":"inactive","signature":"(): void","description":"Emitted when focus moves outside the entire component after it was active."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from the search input."},{"name":"option:add","signature":"(text: string): void","description":"Emitted when the user types a new value and confirms it (Enter key) while writing is enabled (i.e. `disableWriting` does not suppress the search input for the current surface)."},{"name":"show","signature":"(): void","description":"Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone)."},{"name":"shown","signature":"(): void","description":"Emitted once the options surface is open and its open transition has finished."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the next selection value whenever selection changes."}],"slots":[{"name":"activator","type":"BbSelectPopoverActivatorSlotProps","fields":["clear: () => void","close: () => Promise<void>","focus: () => void","disabled: boolean","loading: boolean","open: () => Promise<void>","props: { ref: (reference: unknown) => void; }","query: string","readonly: boolean","selectedOptions: BbSelectResolvedOption<any>[]","shown: boolean","text: string","toggle: () => Promise<void>"],"description":"Replaces the default trigger element that opens the select popover."},{"name":"empty","type":"{ query: string; focus: () => void; close: () => Promise<void>; error: unknown; }","description":"Content shown when no options match the query or the list is empty. `error` is what the latest failed load threw, untouched (`null` when none). `close()` closes the panel, for an action that does not move focus out of it."},{"name":"footer","type":"BbSelectPopoverPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption<any>[]","titleId: string"],"description":"Content pinned to the bottom of the panel, below the options list. Rendered in both the desktop popover and the adaptive sheet."},{"name":"group","type":"BbSelectPopoverGroupSlotProps<Item>","fields":["disabled: boolean","index: number","item: Item","length: number","text: string"],"description":"Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header."},{"name":"header","type":"BbSelectPopoverPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption<any>[]","titleId: string"],"description":"Content pinned to the top of the panel, above the search field. Rendered in both the desktop popover and the adaptive sheet."},{"name":"loading","type":"{ query: string; }","description":"Content shown inside the options dropdown while items are loading."},{"name":"option","type":"BbSelectPopoverOptionSlotProps<Item, Known>","fields":["known: boolean","item: BbSelectKnownItem | Item","disabled: boolean","focused: boolean","index: number","loading: boolean","selected: boolean","text: string","value: any","description: string"],"description":"Replaces the default rendering of each option row in the dropdown. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row, `known: true`: check `known` before reading an option field off `item`."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--bg","value":"var(--bb-panel)","selector":".bb-listbox__outer-container"},{"name":"--min-size","value":"2.125rem","selector":".bb-select-popover__sheet-chip"},{"name":"--px","value":"0.75rem","selector":".bb-select-popover__sheet-chip"},{"name":"--clear-size","value":"1.25rem","selector":".bb-select-popover__sheet-chip"}],"pt":{"parts":[{"name":"root","description":"The floating element — an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet: style what you see with `panel`."},{"name":"panel","description":"The options surface you see — the popover's painted bubble on desktop, the sheet itself on a phone."},{"name":"sheet","description":"The bottom sheet the surface becomes on a phone (the `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there."},{"name":"input","description":"The search field."},{"name":"clear","description":"The ✕ that empties the search field."},{"name":"list","description":"The `role=\"listbox\"` node that holds the options. Virtualised: its height is written inline and its rows are positioned by the list, which limits what a layout utility can do there. The listbox's groups and the chips are not parts."},{"name":"option","description":"One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item."},{"name":"itemText","description":"An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function."},{"name":"itemIcon","description":"An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function."},{"name":"itemDescription","description":"An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function."},{"name":"check","description":"The tick on the chosen option, at the row's end — mounted on every option and drawn on the chosen ones; a custom `#option` slot keeps it. `pt:check=\"hidden\"` removes it and leaves a glyph your slot draws alone. Also takes a per-item function."},{"name":"header","description":"The flyout's header band."},{"name":"footer","description":"The flyout's footer band."}],"states":[{"name":"selected","description":"Per node, on `option`, its `item-*` parts and `check`: a chosen option."},{"name":"disabled","description":"Per node, on `option`, its `item-*` parts and `check`: an option that is disabled."},{"name":"open","description":"Component-wide: the options surface is showing."}]},"tree":{"bindings":[{"part":"input","target":"input.bb-select-popover__input"},{"part":"clear","target":"ClearableButton"},{"part":"panel","target":"CommonPopover"},{"part":"root","target":"CommonPopover"},{"part":"header","target":"div.bb-select-popover__header"},{"part":"footer","target":"div.bb-select-popover__footer"}],"forwards":[{"to":"BbOffCanvas","mapping":"{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }"}],"nodes":[{"name":"BbBadge","kind":"public"},{"name":"BbIcon","kind":"public"},{"name":"BbOffCanvas","kind":"public"},{"name":"ClearableButton","kind":"internal","children":[{"name":"BbIcon","kind":"public"}]},{"name":"CommonPopover","kind":"internal"},{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"WarningIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-warning-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"ListBox","kind":"internal","children":[{"name":"FlatListBox","kind":"internal","vocabulary":"BbSelectPopover","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]},{"name":"GroupedListBox","kind":"internal","vocabulary":"BbSelectPopover","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]}]},{"name":"BbSmoothHeight","kind":"public"}]},"css":{"classes":{"bb-listbox":["","--compact","--described","--empty","--grouped","--loading","--multiple","--open","__empty","__failed","__failed--divided","__failed-icon","__failed-text","__group","__group-header","__group-header-label","__inner-container","__item-description","__item-icon","__item-text","__list","__loading","__loading--below","__option","__option--disabled","__option--focused","__option--selected","__option-append-icon","__option-check","__option-content","__option-prepend-icon","__outer-container","__status"],"bb-select-known-items":[""],"bb-select-popover":["","--clearable-active","--compact","--errors","--loading","--reloading","--sheet","--warnings","__clear","__focus-proxy","__footer","__header","__input","__panel","__search-container","__search-error-icon","__search-icon","__search-strip","__search-warning-icon","__sheet","__sheet-chip","__sheet-chips","__sheet-selection"],"bb-select-popover-escape":[""],"bb-select-reclick-clears":[""],"bb-select-sheet-chip-attrs":[""]},"locals":["--bg","--close-size","--color-gray-200","--group-header-height","--option-font-size","--option-h","--option-height","--py","--transition-duration","--w"],"surface":{"stable":[{"class":"bb-select-popover","tag":"CommonPopover","part":"root","reads":["--w"]},{"class":"bb-select-popover__panel","part":"panel"},{"class":"bb-select-popover__sheet","tag":"BbOffCanvas","part":"sheet"},{"class":"bb-select-popover__input","tag":"input","part":"input"},{"class":"bb-select-popover__clear","tag":"ClearableButton","part":"clear"},{"class":"bb-select-popover__header","tag":"div","part":"header"},{"class":"bb-select-popover__footer","tag":"div","part":"footer"}],"internal":[{"class":"bb-listbox","reads":["--option-height"]},{"class":"bb-listbox--compact"},{"class":"bb-listbox--described"},{"class":"bb-listbox--empty"},{"class":"bb-listbox--grouped"},{"class":"bb-listbox--loading"},{"class":"bb-listbox--multiple"},{"class":"bb-listbox--open"},{"class":"bb-listbox__empty"},{"class":"bb-listbox__failed","reads":["--option-h","--transition-duration"]},{"class":"bb-listbox__failed--divided"},{"class":"bb-listbox__failed-icon"},{"class":"bb-listbox__failed-text"},{"class":"bb-listbox__group"},{"class":"bb-listbox__group-header","reads":["--group-header-height"]},{"class":"bb-listbox__group-header-label","reads":["--option-font-size"]},{"class":"bb-listbox__inner-container","reads":["--option-h"]},{"class":"bb-listbox__item-description","reads":["--option-font-size"]},{"class":"bb-listbox__item-icon"},{"class":"bb-listbox__item-text","reads":["--option-font-size"]},{"class":"bb-listbox__list"},{"class":"bb-listbox__loading"},{"class":"bb-listbox__loading--below"},{"class":"bb-listbox__option","reads":["--option-h"]},{"class":"bb-listbox__option--disabled"},{"class":"bb-listbox__option--focused"},{"class":"bb-listbox__option--selected","reads":["--option-font-size"]},{"class":"bb-listbox__option-append-icon","reads":["--option-font-size"]},{"class":"bb-listbox__option-check","reads":["--option-font-size"]},{"class":"bb-listbox__option-content"},{"class":"bb-listbox__option-prepend-icon","reads":["--option-font-size"]},{"class":"bb-listbox__outer-container","reads":["--bg","--transition-duration"]},{"class":"bb-listbox__status"},{"class":"bb-select-known-items"},{"class":"bb-select-popover--clearable-active","tag":"CommonPopover"},{"class":"bb-select-popover--compact","tag":"CommonPopover"},{"class":"bb-select-popover--errors","tag":"CommonPopover"},{"class":"bb-select-popover--loading","tag":"CommonPopover"},{"class":"bb-select-popover--reloading","tag":"CommonPopover"},{"class":"bb-select-popover--sheet"},{"class":"bb-select-popover--warnings","tag":"CommonPopover"},{"class":"bb-select-popover-escape"},{"class":"bb-select-popover__focus-proxy","tag":"button"},{"class":"bb-select-popover__search-container","tag":"div"},{"class":"bb-select-popover__search-error-icon","tag":"ErrorIcon"},{"class":"bb-select-popover__search-icon","tag":"BbIcon"},{"class":"bb-select-popover__search-strip","tag":"div"},{"class":"bb-select-popover__search-warning-icon","tag":"WarningIcon"},{"class":"bb-select-popover__sheet-chip","tag":"BbBadge"},{"class":"bb-select-popover__sheet-chips","tag":"div"},{"class":"bb-select-popover__sheet-selection","tag":"div"},{"class":"bb-select-reclick-clears"},{"class":"bb-select-sheet-chip-attrs"}],"via":[{"part":"itemIcon","component":"BbIcon"},{"part":"check","component":"BbIcon"}],"lands":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"}],"unaligned":{"states":["selected","disabled","open"]}}},"attrTargets":["span","dialog"],"config":"adaptive*, compact*","removed":[{"name":"allowWriting","new":"disableWriting","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select-popover.md","silent":true,"fix":{"kind":"invert","valueMap":{"not-mobile":"mobile"}}},{"name":"arrowPadding","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select-popover.md","silent":true,"fix":{"kind":"remove"}},{"name":"flip","new":"disableFlip","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select-popover.md","silent":true,"fix":{"kind":"invert"}},{"name":"hideArrow","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select-popover.md","silent":true,"fix":{"kind":"remove"}},{"name":"showArrow","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select-popover.md","silent":true,"fix":{"kind":"remove"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"allowWriting","to":"disableWriting","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select-popover.md","fix":{"kind":"invert","valueMap":{"not-mobile":"mobile"}}},{"from":"flip","to":"disableFlip","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-select-popover.md","fix":{"kind":"invert"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}}]},
|
|
416
|
-
{"name":"BbSlider","group":"Selection","description":"Selects numeric values across a bounded range.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSlider.md","source":"ai/source/BbSlider.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. The track's height follows `--bb-input-h-compact` and the label gap `--bb-label-spacing-y-compact`, so a `--bb-input-h` or `--bb-label-spacing-y` you set on the component is ignored while `compact` is on: set the `-compact` tokens instead."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"disableThumbTranslate","type":"boolean | undefined","required":false,"default":"false","description":"Disables the proportional thumb translation that keeps the thumb on track (enabled by default). Set it when displaying ticks so they align with less effort."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"fill","type":"\"normal\" | \"inverted\" | \"segments\" | undefined","required":false,"default":"\"normal\"","description":"Which rail segments are painted: `'normal'` start → thumb (lowest → highest with `multiple`), `'inverted'` the rest, `'segments'` every segment as its own `bar` (colour each with a `pt:bar` function on `item.index`)."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"items","type":"readonly (string | number | { readonly value: string | number; readonly label?: string | undefined; })[] | undefined","required":false,"description":"Named stops instead of a numeric scale, spaced evenly in list order: strings, numbers or `{ value, label }`. `v-model` holds the `value`; `label` is announced and passed to the slots. Replaces `min` / `max` / `step` (setting them too throws)."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Label rendering mode. Sliders do not support `floating` labels."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"max","type":"number | undefined","required":false,"default":"100","description":"Maximum value cap."},{"name":"maxPrecision","type":"number | undefined","required":false,"default":"2","description":"Maximum decimal places to retain in emitted values."},{"name":"min","type":"number | undefined","required":false,"default":"0","description":"Minimum value cap."},{"name":"modelValue","type":"string | number | (string | number)[] | null | undefined","required":false,"default":"0","description":"Used by v-model."},{"name":"multiple","type":"boolean | number","required":false,"description":"Several thumbs: `multiple` is two (a min–max interval), `:multiple=\"3\"` three (at least 2). `modelValue` holds one value per thumb, always sorted, or is empty (`[]` / `null`) to start unset; another length throws. Thumbs may cross.","default":"false"},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"track\", \"bar\", \"ticks\", \"tick\", \"thumb\"]; readonly states: readonly [\"hasValue\", \"inRange\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"active\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"active\"]; readonly node: { readonly tick: readonly [\"inRange\"]; }; }> & { label?: PtValue | undefined; track?: PtValue | undefined; root?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; box?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:errors\"?: PtValue | undefined; \"box:warnings\"?: PtValue | undefined; \"box:readonly\"?: PtValue | undefined; \"box:hasValue\"?: PtValue | undefined; \"root:active\"?: PtValue | undefined; \"message:active\"?: PtValue | undefined; ticks?: PtValue | undefined; thumb?: PtValue | undefined; \"label:active\"?: PtValue | undefined; \"track:disabled\"?: PtValue | undefined; \"track:errors\"?: PtValue | undefined; \"track:warnings\"?: PtValue | undefined; \"track:readonly\"?: PtValue | undefined; \"track:active\"?: PtValue | undefined; \"track:hasValue\"?: PtValue | undefined; \"description:active\"?: PtValue | undefined; \"hint:active\"?: PtValue | undefined; \"box:active\"?: PtValue | undefined; \"bar:disabled\"?: PtValue | undefined; \"bar:errors\"?: PtValue | undefined; \"bar:warnings\"?: PtValue | undefined; \"bar:readonly\"?: PtValue | undefined; \"bar:active\"?: PtValue | undefined; \"bar:hasValue\"?: PtValue | undefined; \"ticks:disabled\"?: PtValue | undefined; \"ticks:errors\"?: PtValue | undefined; \"ticks:warnings\"?: PtValue | undefined; \"ticks:readonly\"?: PtValue | undefined; \"ticks:active\"?: PtValue | undefined; \"ticks:hasValue\"?: PtValue | undefined; \"tick:disabled\"?: PtValue | undefined; \"tick:errors\"?: PtValue | undefined; \"tick:warnings\"?: PtValue | undefined; \"tick:readonly\"?: PtValue | undefined; \"tick:active\"?: PtValue | undefined; \"tick:hasValue\"?: PtValue | undefined; \"thumb:disabled\"?: PtValue | undefined; \"thumb:errors\"?: PtValue | undefined; \"thumb:warnings\"?: PtValue | undefined; \"thumb:readonly\"?: PtValue | undefined; \"thumb:active\"?: PtValue | undefined; \"thumb:hasValue\"?: PtValue | undefined; \"tick:inRange\"?: PtValue | undefined; } & { bar?: PtValue | PtItemFn<BbSliderSegment, BbSliderPtState, never, { readonly item: BbSliderSegment; }> | undefined; tick?: PtValue | PtItemFn<BbSliderSegment, BbSliderPtState, never, { readonly item: BbSliderSegment; }> | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:bar","type":"PtValue | ((ctx: PtItemCtx<BbSliderSegment, BbSliderPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:bar:active","type":"PtValue | undefined","required":false},{"name":"pt:bar:disabled","type":"PtValue | undefined","required":false},{"name":"pt:bar:errors","type":"PtValue | undefined","required":false},{"name":"pt:bar:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:bar:readonly","type":"PtValue | undefined","required":false},{"name":"pt:bar:warnings","type":"PtValue | undefined","required":false},{"name":"pt:box","type":"PtValue | undefined","required":false},{"name":"pt:box:active","type":"PtValue | undefined","required":false},{"name":"pt:box:disabled","type":"PtValue | undefined","required":false},{"name":"pt:box:errors","type":"PtValue | undefined","required":false},{"name":"pt:box:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:box:readonly","type":"PtValue | undefined","required":false},{"name":"pt:box:warnings","type":"PtValue | undefined","required":false},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:active","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:active","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:active","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:active","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:active","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"pt:thumb","type":"PtValue | undefined","required":false},{"name":"pt:thumb:active","type":"PtValue | undefined","required":false},{"name":"pt:thumb:disabled","type":"PtValue | undefined","required":false},{"name":"pt:thumb:errors","type":"PtValue | undefined","required":false},{"name":"pt:thumb:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:thumb:readonly","type":"PtValue | undefined","required":false},{"name":"pt:thumb:warnings","type":"PtValue | undefined","required":false},{"name":"pt:tick","type":"PtValue | ((ctx: PtItemCtx<BbSliderSegment, BbSliderPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:tick:active","type":"PtValue | undefined","required":false},{"name":"pt:tick:disabled","type":"PtValue | undefined","required":false},{"name":"pt:tick:errors","type":"PtValue | undefined","required":false},{"name":"pt:tick:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:tick:inRange","type":"PtValue | undefined","required":false},{"name":"pt:tick:readonly","type":"PtValue | undefined","required":false},{"name":"pt:tick:warnings","type":"PtValue | undefined","required":false},{"name":"pt:ticks","type":"PtValue | undefined","required":false},{"name":"pt:ticks:active","type":"PtValue | undefined","required":false},{"name":"pt:ticks:disabled","type":"PtValue | undefined","required":false},{"name":"pt:ticks:errors","type":"PtValue | undefined","required":false},{"name":"pt:ticks:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:ticks:readonly","type":"PtValue | undefined","required":false},{"name":"pt:ticks:warnings","type":"PtValue | undefined","required":false},{"name":"pt:track","type":"PtValue | undefined","required":false},{"name":"pt:track:active","type":"PtValue | undefined","required":false},{"name":"pt:track:disabled","type":"PtValue | undefined","required":false},{"name":"pt:track:errors","type":"PtValue | undefined","required":false},{"name":"pt:track:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:track:readonly","type":"PtValue | undefined","required":false},{"name":"pt:track:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<string | number | (string | number)[] | null>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"step","type":"number | undefined","required":false,"default":"1","description":"The step attribute specifies the granularity that the value must adhere to."},{"name":"ticks","type":"boolean | undefined","required":false,"default":"false","description":"Displays ticks on step."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the slider gains focus and becomes interactive."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when a thumb gains focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the slider after it was active."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on a thumb. Forwards the original DOM `KeyboardEvent`."},{"name":"pointerdown","signature":"(event: PointerEvent): void","description":"Emitted when a pointer device is pressed on a thumb or on the track. Forwards the original DOM `PointerEvent`."},{"name":"pointermove","signature":"(event: PointerEvent): void","description":"Emitted as a pointer device moves while dragging a thumb. Forwards the original DOM `PointerEvent`."},{"name":"pointerup","signature":"(event: PointerEvent): void","description":"Emitted when a pointer device is released after dragging. Forwards the original DOM `PointerEvent`."},{"name":"update:modelValue","signature":"(value: string | number | (string | number)[] | null): void","description":"Emitted with new value(s) whenever the slider position changes. A number for a single slider (an `items` value with `items`), one per thumb (sorted) with `multiple`."}],"slots":[{"name":"append","type":"BbSliderStepSlotProps","fields":["increase: () => void","decrease: () => void","disabled: boolean","increaseDisabled: boolean","decreaseDisabled: boolean"],"description":"Content rendered after the slider track, typically used to add a max-value label or button."},{"name":"description","type":"BbSliderDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"label","type":"BbSliderLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered above the slider."},{"name":"prepend","type":"BbSliderStepSlotProps","fields":["increase: () => void","decrease: () => void","disabled: boolean","increaseDisabled: boolean","decreaseDisabled: boolean"],"description":"Content rendered before the slider track, typically used to add a min-value label or button."},{"name":"thumb","type":"BbSliderThumbSlotProps","fields":["index: number","value: V","label: string","percent: number","focused: boolean"],"description":"Replaces every thumb's content; with `multiple`, tell them apart by `index`."},{"name":"tick","type":"BbSliderTickSlotProps","fields":["value: V","label: string","percent: number","active: boolean","segment: number"],"description":"Replaces the default tick mark rendered at each step when ticks are enabled."}],"exposed":[],"models":[{"name":"modelValue","type":"string | number | (string | number)[] | null | undefined"}],"cssProps":[{"name":"--thumb","value":"12px","selector":".bb-slider__body","description":"thumb diameter (square, then `border-radius: 50%`)"},{"name":"--track","value":"4px","selector":".bb-slider__body","description":"rail thickness"},{"name":"--track-color","value":"var(--bb-track)","selector":".bb-slider__body","description":"The recessed rail surface — the same token the switch track reads, which is what design-tokens.md has always documented it as (\"switch/slider rails\"). It was `--bb-muted` (6% of text), a chrome wash so faint the unfilled rail barely read, and a theme that set `--bb-track` moved the switch and nothing else."},{"name":"--py","value":"calc((var(--thumb) - var(--track)) / 2)","selector":".bb-slider__body","description":"Room above and below the rail for the thumb's overhang."},{"name":"--control-h","value":"var(--bb-input-h)","selector":".bb-slider__body","description":"Row height; --compact swaps in the compact input height."},{"name":"--px","value":"0px","selector":".bb-slider__body","description":"inner left/right padding of the box"},{"name":"--track-inset","value":"0px","selector":".bb-slider__body","description":"How far the rail and the tick row are held off both ends."},{"name":"--inside-label-clearance","value":"0px","selector":".bb-slider__body","description":"height added for the label line"},{"name":"--inside-label-track-offset","value":"0px","selector":".bb-slider__body","description":"How far rail and thumbs drop from centre to clear that line."},{"name":"--bg","value":"transparent","selector":".bb-slider__body","description":"the box's fill"},{"name":"--bg-disabled","value":"transparent","selector":".bb-slider__body","description":"fill while disabled"},{"name":"--bw","value":"0px","selector":".bb-slider__body","description":"border width"},{"name":"--border-color","value":"var(--bb-field-border)","selector":".bb-slider__body","description":"resting border"},{"name":"--border-focus","value":"var(--bb-border)","selector":".bb-slider__body","description":"Border while a thumb is focused or held; the errors and warnings blocks below paint the resting border with it too."},{"name":"--elev","value":"0px 0px 0px 0px transparent","selector":".bb-slider__body","description":"resting lift of the box"},{"name":"--ring-size","value":"0px","selector":".bb-slider__body","description":"Width of the box's focus ring; its colour is --ring-color below. The thumb's halo keeps --bb-ring-size, so a bare slider still has one."},{"name":"--accent","value":"var(--bb-primary)","selector":".bb-slider__body","description":"The bar (`__bar`, the selected span, sized from JS), and the base of --ring-color below."},{"name":"--ring-color","value":"color-mix( in oklab, var(--accent) var(--bb-ring-opacity), transparent )","selector":".bb-slider__body","description":"Halo around the thumb on hover and focus; errors and warnings re-point it."},{"name":"--r","value":"var(--bb-radius)","selector":".bb-slider__body","description":"Rail rounding: all four corners of the rail, the leading pair on the selected span."},{"name":"--centre","value":"calc( (var(--control-h) + var(--inside-label-clearance)) / 2 - var(--bw) + var(--inside-label-track-offset) )","selector":".bb-slider__box","description":"The rail's centre line, from the top of the box's padding box: the middle of the control row. A fixed offset, not 50%, so the rail and the thumbs stay put when the tick row below grows the box. Declared here, on the box, so a --bw or --control-h set through pt:box is the one it reads."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-slider__box"},{"name":"--bg","value":"var(--bb-panel)","selector":".bb-slider__thumb"},{"name":"--sx","value":"-1","selector":".bb-slider__thumb","description":"Which physical way the thumb's own-width pull points (BbSlider.vue `thumbStyle`): toward the inline start, the left left to right."},{"name":"--elev","value":"var(--bb-elev-sm)","selector":".bb-slider__thumb","description":"Small-chrome resting lift, DECLARED here so it is sealed: an ancestor that sets `--elev` for its own plate must not reach in and lift this. Same tier and same name as the checkbox and radio glyphs."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-slider__thumb"}],"pt":{"parts":[{"name":"root","description":"The slider's container: the label, the track and the lines under them."},{"name":"label","description":"The label text (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop)."},{"name":"box","description":"The box around the rail, ticks and thumbs: bare by default, the bordered field look in inside-label mode. The slider's look locals (`--accent`, `--track-color`, `--thumb`, `--track`, `--bg`, `--bw`, …) set here reach everything inside."},{"name":"track","description":"The rail the thumbs slide on: its full length, painted with `--track-color`."},{"name":"bar","description":"A coloured piece on the rail: from the start to the value, or from the lowest to the highest thumb with `multiple`; `fill` picks other pieces. Painted with `--accent`; its size and position are set from the value (the same word as BbProgress's fill). A broadcast."},{"name":"ticks","description":"The row that holds the tick marks (`ticks` prop)."},{"name":"tick","description":"Every tick mark; a broadcast, resolved per tick with its own `inRange`. Its content is the `tick` slot."},{"name":"thumb","description":"Every handle — one, or one per value with `multiple`; a broadcast. Per-item functions: on the instance, `bar` and `tick` also accept `({ item, inRange, … }) => PtValue | false | null | undefined` — `item` is the rail segment (`{ index, from, to }`; the thumbs cut the rail into segments `0…N`) the bar paints or the tick sits on, and every state a boolean beside it — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the node as it was. See the passthrough guide, _Per-item functions_."}],"states":[{"name":"hasValue","description":"Component-wide: a value is set — the model is not `null`; with `multiple`, it holds at least one value (`[]` is unset). On every part."},{"name":"inRange","description":"Per node, on `tick`: the tick sits inside the selected span (under the `bar`)."},{"name":"readonly","description":"Component-wide: the slider is `readonly`."},{"name":"disabled","description":"Component-wide: the slider is `disabled`."},{"name":"warnings","description":"Component-wide: the slider shows warnings and no errors."},{"name":"errors","description":"Component-wide: the slider shows errors."},{"name":"active","description":"Component-wide: the slider is engaged — a thumb focused or dragged, until focus and pointer leave it."}]},"tree":{"bindings":[{"part":"box","target":"span.bb-slider__box"},{"part":"ticks","target":"span.bb-slider__ticks"},{"part":"tick","target":"span.bb-slider__tick"},{"part":"track","target":"span.bb-slider__track"},{"part":"bar","target":"span"},{"part":"thumb","target":"span.bb-slider__thumb"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbSlider","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]}]},"css":{"classes":{"bb-slider":["","__bar","__bar--end","__bar--start","__body","__body--compact","__body--disabled","__body--errors","__body--readonly","__body--warnings","__box","__thumb","__thumb--focused","__thumb--higher","__thumb--lower","__thumb--multiple","__thumb-container","__tick","__tick--in-range","__ticks","__track"]},"locals":["--accent","--bg","--bg-disabled","--border-color","--border-focus","--bw","--centre","--color-gray-200","--control-h","--elev","--hit","--inside-label-clearance","--inside-label-track-offset","--px","--py","--r","--ring-color","--ring-size","--ring-t","--sx","--thumb","--track","--track-color","--track-inset"],"surface":{"stable":[{"class":"bb-slider","tag":"CommonField","part":"root"},{"class":"bb-slider__box","tag":"span","part":"box","reads":["--bg","--bg-disabled","--border-color","--border-focus","--bw","--control-h","--elev","--inside-label-clearance","--inside-label-track-offset","--px","--py","--r","--ring-color","--ring-size","--ring-t"]},{"class":"bb-slider__track","tag":"span","part":"track","reads":["--centre","--r","--track","--track-color","--track-inset"]},{"class":"bb-slider__bar","part":"bar","reads":["--accent"]},{"class":"bb-slider__ticks","tag":"span","part":"ticks","reads":["--bw","--control-h","--inside-label-clearance","--px","--track-inset"]},{"class":"bb-slider__tick","tag":"span","part":"tick"},{"class":"bb-slider__thumb","tag":"span","part":"thumb","reads":["--bg","--elev","--hit","--ring-color","--ring-t","--thumb"]},{"class":"bb-slider__tick--in-range","tag":"span","state":"inRange"},{"class":"bb-slider__body--readonly","tag":"span","state":"readonly"},{"class":"bb-slider__body--disabled","tag":"span","state":"disabled"},{"class":"bb-slider__body--warnings","tag":"span","state":"warnings"},{"class":"bb-slider__body--errors","tag":"span","state":"errors"}],"internal":[{"class":"bb-slider__bar--end","reads":["--r"]},{"class":"bb-slider__bar--start","reads":["--r"]},{"class":"bb-slider__body","tag":"span","reads":["--accent","--control-h","--px","--thumb","--track"]},{"class":"bb-slider__body--compact","tag":"span"},{"class":"bb-slider__thumb--focused","tag":"span"},{"class":"bb-slider__thumb--higher"},{"class":"bb-slider__thumb--lower"},{"class":"bb-slider__thumb--multiple"},{"class":"bb-slider__thumb-container","tag":"span","reads":["--centre"]}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["label"],"states":["hasValue","active"]}}},"attrTargets":["div","span"],"config":"labelMode*, validationMode*, compact*, layout*, reverse*","removed":[{"name":"color","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}},{"name":"thumbTranslate","new":"disableThumbTranslate","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"invert"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"rename"}},{"name":"range","new":"multiple","hint":"a bare `multiple` is the two-thumb interval `range` was; `:multiple=\"3\"` gives three thumbs. The model may now start empty (`[]`)","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"rename"}},{"name":"thumb:lower","new":"thumb","surface":"slot","hint":"one `#thumb` slot renders every thumb; branch on its `index` (`0` is the lower end)","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}},{"name":"thumb:higher","new":"thumb","surface":"slot","hint":"one `#thumb` slot renders every thumb; branch on its `index` (`1` is the higher end of two)","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}},{"name":"required","new":null,"hint":"a slider's role cannot carry `required`, so it carries none (like BbCheckboxGroup / BbSwitchGroup). Delete the prop; inside a BbForm a `required` rule or the schema still validates it and shows the asterisk","since":"3.0.0-beta.42","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"thumbTranslate","to":"disableThumbTranslate","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"invert"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"rename"}},{"from":"range","to":"multiple","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"rename"},"hint":"a bare `multiple` is the two-thumb interval `range` was; `:multiple=\"3\"` gives three thumbs. The model may now start empty (`[]`)"},{"from":"thumb:lower","to":"thumb","surface":"slot","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"manual"},"hint":"one `#thumb` slot renders every thumb; branch on its `index` (`0` is the lower end)"},{"from":"thumb:higher","to":"thumb","surface":"slot","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"manual"},"hint":"one `#thumb` slot renders every thumb; branch on its `index` (`1` is the higher end of two)"},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
421
|
+
{"name":"BbSlider","group":"Selection","description":"Selects numeric values across a bounded range.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSlider.md","source":"ai/source/BbSlider.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density. The track's height follows `--bb-input-h-compact` and the label gap `--bb-label-spacing-y-compact`, so a `--bb-input-h` or `--bb-label-spacing-y` you set on the component is ignored while `compact` is on: set the `-compact` tokens instead."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"disableThumbTranslate","type":"boolean | undefined","required":false,"default":"false","description":"Disables the proportional thumb translation that keeps the thumb on track (enabled by default). Set it when displaying ticks so they align with less effort."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"fill","type":"\"normal\" | \"inverted\" | \"segments\" | undefined","required":false,"default":"\"normal\"","description":"Which rail segments are painted: `'normal'` start → thumb (lowest → highest with `multiple`), `'inverted'` the rest, `'segments'` every segment as its own `bar` (colour each with a `pt:bar` function on `item.index`)."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"items","type":"readonly (string | number | { readonly value: string | number; readonly label?: string | undefined; })[] | undefined","required":false,"description":"Named stops instead of a numeric scale, spaced evenly in list order: strings, numbers or `{ value, label }`. `v-model` holds the `value`; `label` is announced and passed to the slots. Replaces `min` / `max` / `step` (setting them too throws)."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Label rendering mode. Sliders do not support `floating` labels."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"max","type":"number | undefined","required":false,"default":"100","description":"Maximum value cap."},{"name":"maxPrecision","type":"number | undefined","required":false,"default":"2","description":"Maximum decimal places to retain in emitted values."},{"name":"min","type":"number | undefined","required":false,"default":"0","description":"Minimum value cap."},{"name":"modelValue","type":"string | number | (string | number)[] | null | undefined","required":false,"default":"0","description":"Used by v-model."},{"name":"multiple","type":"boolean | number","required":false,"description":"Several thumbs: `multiple` is two (a min–max interval), `:multiple=\"3\"` three (at least 2). `modelValue` holds one value per thumb, always sorted, or is empty (`[]` / `null`) to start unset; another length throws. Thumbs may cross.","default":"false"},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"track\", \"bar\", \"ticks\", \"tick\", \"thumb\"]; readonly states: readonly [\"hasValue\", \"inRange\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"active\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"active\"]; readonly node: { readonly tick: readonly [\"inRange\"]; }; }> & { label?: PtValue | undefined; track?: PtValue | undefined; root?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; description?: PtValue | undefined; thumb?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; box?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:errors\"?: PtValue | undefined; \"box:warnings\"?: PtValue | undefined; \"box:readonly\"?: PtValue | undefined; \"box:hasValue\"?: PtValue | undefined; \"root:active\"?: PtValue | undefined; \"message:active\"?: PtValue | undefined; ticks?: PtValue | undefined; \"label:active\"?: PtValue | undefined; \"track:disabled\"?: PtValue | undefined; \"track:errors\"?: PtValue | undefined; \"track:warnings\"?: PtValue | undefined; \"track:readonly\"?: PtValue | undefined; \"track:active\"?: PtValue | undefined; \"track:hasValue\"?: PtValue | undefined; \"description:active\"?: PtValue | undefined; \"thumb:disabled\"?: PtValue | undefined; \"thumb:errors\"?: PtValue | undefined; \"thumb:warnings\"?: PtValue | undefined; \"thumb:readonly\"?: PtValue | undefined; \"thumb:active\"?: PtValue | undefined; \"thumb:hasValue\"?: PtValue | undefined; \"hint:active\"?: PtValue | undefined; \"box:active\"?: PtValue | undefined; \"bar:disabled\"?: PtValue | undefined; \"bar:errors\"?: PtValue | undefined; \"bar:warnings\"?: PtValue | undefined; \"bar:readonly\"?: PtValue | undefined; \"bar:active\"?: PtValue | undefined; \"bar:hasValue\"?: PtValue | undefined; \"ticks:disabled\"?: PtValue | undefined; \"ticks:errors\"?: PtValue | undefined; \"ticks:warnings\"?: PtValue | undefined; \"ticks:readonly\"?: PtValue | undefined; \"ticks:active\"?: PtValue | undefined; \"ticks:hasValue\"?: PtValue | undefined; \"tick:disabled\"?: PtValue | undefined; \"tick:errors\"?: PtValue | undefined; \"tick:warnings\"?: PtValue | undefined; \"tick:readonly\"?: PtValue | undefined; \"tick:active\"?: PtValue | undefined; \"tick:hasValue\"?: PtValue | undefined; \"tick:inRange\"?: PtValue | undefined; } & { bar?: PtValue | PtItemFn<BbSliderSegment, BbSliderPtState, never, { readonly item: BbSliderSegment; }> | undefined; tick?: PtValue | PtItemFn<BbSliderSegment, BbSliderPtState, never, { readonly item: BbSliderSegment; }> | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:bar","type":"PtValue | ((ctx: PtItemCtx<BbSliderSegment, BbSliderPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:bar:active","type":"PtValue | undefined","required":false},{"name":"pt:bar:disabled","type":"PtValue | undefined","required":false},{"name":"pt:bar:errors","type":"PtValue | undefined","required":false},{"name":"pt:bar:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:bar:readonly","type":"PtValue | undefined","required":false},{"name":"pt:bar:warnings","type":"PtValue | undefined","required":false},{"name":"pt:box","type":"PtValue | undefined","required":false},{"name":"pt:box:active","type":"PtValue | undefined","required":false},{"name":"pt:box:disabled","type":"PtValue | undefined","required":false},{"name":"pt:box:errors","type":"PtValue | undefined","required":false},{"name":"pt:box:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:box:readonly","type":"PtValue | undefined","required":false},{"name":"pt:box:warnings","type":"PtValue | undefined","required":false},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:active","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:active","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:active","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:active","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:active","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"pt:thumb","type":"PtValue | undefined","required":false},{"name":"pt:thumb:active","type":"PtValue | undefined","required":false},{"name":"pt:thumb:disabled","type":"PtValue | undefined","required":false},{"name":"pt:thumb:errors","type":"PtValue | undefined","required":false},{"name":"pt:thumb:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:thumb:readonly","type":"PtValue | undefined","required":false},{"name":"pt:thumb:warnings","type":"PtValue | undefined","required":false},{"name":"pt:tick","type":"PtValue | ((ctx: PtItemCtx<BbSliderSegment, BbSliderPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:tick:active","type":"PtValue | undefined","required":false},{"name":"pt:tick:disabled","type":"PtValue | undefined","required":false},{"name":"pt:tick:errors","type":"PtValue | undefined","required":false},{"name":"pt:tick:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:tick:inRange","type":"PtValue | undefined","required":false},{"name":"pt:tick:readonly","type":"PtValue | undefined","required":false},{"name":"pt:tick:warnings","type":"PtValue | undefined","required":false},{"name":"pt:ticks","type":"PtValue | undefined","required":false},{"name":"pt:ticks:active","type":"PtValue | undefined","required":false},{"name":"pt:ticks:disabled","type":"PtValue | undefined","required":false},{"name":"pt:ticks:errors","type":"PtValue | undefined","required":false},{"name":"pt:ticks:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:ticks:readonly","type":"PtValue | undefined","required":false},{"name":"pt:ticks:warnings","type":"PtValue | undefined","required":false},{"name":"pt:track","type":"PtValue | undefined","required":false},{"name":"pt:track:active","type":"PtValue | undefined","required":false},{"name":"pt:track:disabled","type":"PtValue | undefined","required":false},{"name":"pt:track:errors","type":"PtValue | undefined","required":false},{"name":"pt:track:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:track:readonly","type":"PtValue | undefined","required":false},{"name":"pt:track:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<string | number | (string | number)[] | null>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"step","type":"number | undefined","required":false,"default":"1","description":"The step attribute specifies the granularity that the value must adhere to."},{"name":"ticks","type":"boolean | undefined","required":false,"default":"false","description":"Displays ticks on step."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the slider gains focus and becomes interactive."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when a thumb gains focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the slider after it was active."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on a thumb. Forwards the original DOM `KeyboardEvent`."},{"name":"pointerdown","signature":"(event: PointerEvent): void","description":"Emitted when a pointer device is pressed on a thumb or on the track. Forwards the original DOM `PointerEvent`."},{"name":"pointermove","signature":"(event: PointerEvent): void","description":"Emitted as a pointer device moves while dragging a thumb. Forwards the original DOM `PointerEvent`."},{"name":"pointerup","signature":"(event: PointerEvent): void","description":"Emitted when a pointer device is released after dragging. Forwards the original DOM `PointerEvent`."},{"name":"update:modelValue","signature":"(value: string | number | (string | number)[] | null): void","description":"Emitted with new value(s) whenever the slider position changes. A number for a single slider (an `items` value with `items`), one per thumb (sorted) with `multiple`."}],"slots":[{"name":"append","type":"BbSliderStepSlotProps","fields":["increase: () => void","decrease: () => void","disabled: boolean","increaseDisabled: boolean","decreaseDisabled: boolean"],"description":"Content rendered after the slider track, typically used to add a max-value label or button."},{"name":"description","type":"BbSliderDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"label","type":"BbSliderLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered above the slider."},{"name":"prepend","type":"BbSliderStepSlotProps","fields":["increase: () => void","decrease: () => void","disabled: boolean","increaseDisabled: boolean","decreaseDisabled: boolean"],"description":"Content rendered before the slider track, typically used to add a min-value label or button."},{"name":"thumb","type":"BbSliderThumbSlotProps","fields":["index: number","value: V","label: string","percent: number","focused: boolean"],"description":"Replaces every thumb's content; with `multiple`, tell them apart by `index`."},{"name":"tick","type":"BbSliderTickSlotProps","fields":["value: V","label: string","percent: number","active: boolean","segment: number"],"description":"Replaces the default tick mark rendered at each step when ticks are enabled."}],"exposed":[],"models":[{"name":"modelValue","type":"string | number | (string | number)[] | null | undefined"}],"cssProps":[{"name":"--thumb","value":"12px","selector":".bb-slider__body","description":"thumb diameter (square, then `border-radius: 50%`)"},{"name":"--track","value":"4px","selector":".bb-slider__body","description":"rail thickness"},{"name":"--track-color","value":"var(--bb-track)","selector":".bb-slider__body","description":"The recessed rail surface — the same token the switch track reads, which is what design-tokens.md has always documented it as (\"switch/slider rails\"). It was `--bb-muted` (6% of text), a chrome wash so faint the unfilled rail barely read, and a theme that set `--bb-track` moved the switch and nothing else."},{"name":"--py","value":"calc((var(--thumb) - var(--track)) / 2)","selector":".bb-slider__body","description":"Room above and below the rail for the thumb's overhang."},{"name":"--control-h","value":"var(--bb-input-h)","selector":".bb-slider__body","description":"Row height; --compact swaps in the compact input height."},{"name":"--px","value":"0px","selector":".bb-slider__body","description":"inner left/right padding of the box"},{"name":"--track-inset","value":"0px","selector":".bb-slider__body","description":"How far the rail and the tick row are held off both ends."},{"name":"--inside-label-clearance","value":"0px","selector":".bb-slider__body","description":"height added for the label line"},{"name":"--inside-label-track-offset","value":"0px","selector":".bb-slider__body","description":"How far rail and thumbs drop from centre to clear that line."},{"name":"--bg","value":"transparent","selector":".bb-slider__body","description":"the box's fill"},{"name":"--bg-disabled","value":"transparent","selector":".bb-slider__body","description":"fill while disabled"},{"name":"--bw","value":"0px","selector":".bb-slider__body","description":"border width"},{"name":"--border-color","value":"var(--bb-field-border)","selector":".bb-slider__body","description":"resting border"},{"name":"--border-focus","value":"var(--bb-border)","selector":".bb-slider__body","description":"Border while a thumb is focused or held; the errors and warnings blocks below paint the resting border with it too."},{"name":"--elev","value":"0px 0px 0px 0px transparent","selector":".bb-slider__body","description":"resting lift of the box"},{"name":"--ring-size","value":"0px","selector":".bb-slider__body","description":"Width of the box's focus ring; its colour is --ring-color below. The thumb's halo keeps --bb-ring-size, so a bare slider still has one."},{"name":"--accent","value":"var(--bb-primary)","selector":".bb-slider__body","description":"The bar (`__bar`, the selected span, sized from JS), and the base of --ring-color below."},{"name":"--ring-color","value":"color-mix( in oklab, var(--accent) var(--bb-ring-opacity), transparent )","selector":".bb-slider__body","description":"Halo around the thumb on hover and focus; errors and warnings re-point it."},{"name":"--r","value":"var(--bb-radius)","selector":".bb-slider__body","description":"Rail rounding: all four corners of the rail, the leading pair on the selected span."},{"name":"--centre","value":"calc( (var(--control-h) + var(--inside-label-clearance)) / 2 - var(--bw) + var(--inside-label-track-offset) )","selector":".bb-slider__box","description":"The rail's centre line, from the top of the box's padding box: the middle of the control row. A fixed offset, not 50%, so the rail and the thumbs stay put when the tick row below grows the box. Declared here, on the box, so a --bw or --control-h set through pt:box is the one it reads."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-slider__box"},{"name":"--bg","value":"var(--bb-panel)","selector":".bb-slider__thumb"},{"name":"--sx","value":"-1","selector":".bb-slider__thumb","description":"Which physical way the thumb's own-width pull points (BbSlider.vue `thumbStyle`): toward the inline start, the left left to right."},{"name":"--elev","value":"var(--bb-elev-sm)","selector":".bb-slider__thumb","description":"Small-chrome resting lift, DECLARED here so it is sealed: an ancestor that sets `--elev` for its own plate must not reach in and lift this. Same tier and same name as the checkbox and radio glyphs."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-slider__thumb"}],"pt":{"parts":[{"name":"root","description":"The slider's container: the label, the track and the lines under them."},{"name":"label","description":"The label text (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop)."},{"name":"box","description":"The box around the rail, ticks and thumbs: bare by default, the bordered field look in inside-label mode. The slider's look locals (`--accent`, `--track-color`, `--thumb`, `--track`, `--bg`, `--bw`, …) set here reach everything inside."},{"name":"track","description":"The rail the thumbs slide on: its full length, painted with `--track-color`."},{"name":"bar","description":"A coloured piece on the rail: from the start to the value, or from the lowest to the highest thumb with `multiple`; `fill` picks other pieces. Painted with `--accent`; its size and position are set from the value (the same word as BbProgress's fill). A broadcast."},{"name":"ticks","description":"The row that holds the tick marks (`ticks` prop)."},{"name":"tick","description":"Every tick mark; a broadcast, resolved per tick with its own `inRange`. Its content is the `tick` slot."},{"name":"thumb","description":"Every handle — one, or one per value with `multiple`; a broadcast. Per-item functions: on the instance, `bar` and `tick` also accept `({ item, inRange, … }) => PtValue | false | null | undefined` — `item` is the rail segment (`{ index, from, to }`; the thumbs cut the rail into segments `0…N`) the bar paints or the tick sits on, and every state a boolean beside it — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the node as it was. See the passthrough guide, _Per-item functions_."}],"states":[{"name":"hasValue","description":"Component-wide: a value is set — the model is not `null`; with `multiple`, it holds at least one value (`[]` is unset). On every part."},{"name":"inRange","description":"Per node, on `tick`: the tick sits inside the selected span (under the `bar`)."},{"name":"readonly","description":"Component-wide: the slider is `readonly`."},{"name":"disabled","description":"Component-wide: the slider is `disabled`."},{"name":"warnings","description":"Component-wide: the slider shows warnings and no errors."},{"name":"errors","description":"Component-wide: the slider shows errors."},{"name":"active","description":"Component-wide: the slider is engaged — a thumb focused or dragged, until focus and pointer leave it."}]},"tree":{"bindings":[{"part":"box","target":"span.bb-slider__box"},{"part":"ticks","target":"span.bb-slider__ticks"},{"part":"tick","target":"span.bb-slider__tick"},{"part":"track","target":"span.bb-slider__track"},{"part":"bar","target":"span"},{"part":"thumb","target":"span.bb-slider__thumb"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbSlider","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]}]},"css":{"classes":{"bb-slider":["","__bar","__bar--end","__bar--start","__body","__body--compact","__body--disabled","__body--errors","__body--readonly","__body--warnings","__box","__thumb","__thumb--focused","__thumb--higher","__thumb--lower","__thumb--multiple","__thumb-container","__tick","__tick--in-range","__ticks","__track"]},"locals":["--accent","--bg","--bg-disabled","--border-color","--border-focus","--bw","--centre","--color-gray-200","--control-h","--elev","--hit","--inside-label-clearance","--inside-label-track-offset","--px","--py","--r","--ring-color","--ring-size","--ring-t","--sx","--thumb","--track","--track-color","--track-inset"],"surface":{"stable":[{"class":"bb-slider","tag":"CommonField","part":"root"},{"class":"bb-slider__box","tag":"span","part":"box","reads":["--bg","--bg-disabled","--border-color","--border-focus","--bw","--control-h","--elev","--inside-label-clearance","--inside-label-track-offset","--px","--py","--r","--ring-color","--ring-size","--ring-t"]},{"class":"bb-slider__track","tag":"span","part":"track","reads":["--centre","--r","--track","--track-color","--track-inset"]},{"class":"bb-slider__bar","part":"bar","reads":["--accent"]},{"class":"bb-slider__ticks","tag":"span","part":"ticks","reads":["--bw","--control-h","--inside-label-clearance","--px","--track-inset"]},{"class":"bb-slider__tick","tag":"span","part":"tick"},{"class":"bb-slider__thumb","tag":"span","part":"thumb","reads":["--bg","--elev","--hit","--ring-color","--ring-t","--thumb"]},{"class":"bb-slider__tick--in-range","tag":"span","state":"inRange"},{"class":"bb-slider__body--readonly","tag":"span","state":"readonly"},{"class":"bb-slider__body--disabled","tag":"span","state":"disabled"},{"class":"bb-slider__body--warnings","tag":"span","state":"warnings"},{"class":"bb-slider__body--errors","tag":"span","state":"errors"}],"internal":[{"class":"bb-slider__bar--end","reads":["--r"]},{"class":"bb-slider__bar--start","reads":["--r"]},{"class":"bb-slider__body","tag":"span","reads":["--accent","--control-h","--px","--thumb","--track"]},{"class":"bb-slider__body--compact","tag":"span"},{"class":"bb-slider__thumb--focused","tag":"span"},{"class":"bb-slider__thumb--higher"},{"class":"bb-slider__thumb--lower"},{"class":"bb-slider__thumb--multiple"},{"class":"bb-slider__thumb-container","tag":"span","reads":["--centre"]}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["label"],"states":["hasValue","active"]}}},"attrTargets":["div","span"],"config":"labelMode*, validationMode*, compact*, layout*, reverse*","removed":[{"name":"color","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}},{"name":"thumbTranslate","new":"disableThumbTranslate","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"invert"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"rename"}},{"name":"range","new":"multiple","hint":"a bare `multiple` is the two-thumb interval `range` was; `:multiple=\"3\"` gives three thumbs. The model may now start empty (`[]`)","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"rename"}},{"name":"thumb:lower","new":"thumb","surface":"slot","hint":"one `#thumb` slot renders every thumb; branch on its `index` (`0` is the lower end)","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}},{"name":"thumb:higher","new":"thumb","surface":"slot","hint":"one `#thumb` slot renders every thumb; branch on its `index` (`1` is the higher end of two)","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}},{"name":"required","new":null,"hint":"a slider's role cannot carry `required`, so it carries none (like BbCheckboxGroup / BbSwitchGroup). Delete the prop; inside a BbForm a `required` rule or the schema still validates it and shows the asterisk","since":"3.0.0-beta.42","migration":"ai/guides/migration/components/bb-slider.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"thumbTranslate","to":"disableThumbTranslate","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"invert"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"rename"}},{"from":"range","to":"multiple","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"rename"},"hint":"a bare `multiple` is the two-thumb interval `range` was; `:multiple=\"3\"` gives three thumbs. The model may now start empty (`[]`)"},{"from":"thumb:lower","to":"thumb","surface":"slot","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"manual"},"hint":"one `#thumb` slot renders every thumb; branch on its `index` (`0` is the lower end)"},{"from":"thumb:higher","to":"thumb","surface":"slot","since":"3.0.0-beta.68","migration":"ai/guides/migration/components/bb-slider.md","fix":{"kind":"manual"},"hint":"one `#thumb` slot renders every thumb; branch on its `index` (`1` is the higher end of two)"},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
417
422
|
{"name":"BbSmoothHeight","group":"Layout & Utility","description":"Animates height transitions for dynamic content.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSmoothHeight.md","source":"ai/source/BbSmoothHeight.md","props":[{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disable smooth-height behavior and allow natural content height."},{"name":"mutationOptions","type":"MutationObserverInit | undefined","required":false,"default":"{ childList: true }","description":"Options to pass to the MutationObserver."},{"name":"pt","type":"PtMap<\"root\", never> | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"resizeOptions","type":"ResizeObserverOptions | undefined","required":false,"description":"Options to pass to the ResizeObserver."},{"name":"strategy","type":"\"resize\" | \"mutation\" | undefined","required":false,"default":"\"resize\"","description":"Define which strategy to use. By default `'resize'` is used, which means the component will update on resizing. You can also define `'mutation'` to use a MutationObserver."},{"name":"tag","type":"LayoutTag | undefined","required":false,"default":"\"div\"","values":["div","span"],"description":"Element rendered as the component's wrapper."},{"name":"transitionDuration","type":"number | undefined","required":false,"default":"250","description":"How long the transition has to last in milliseconds"}],"events":[],"slots":[{"name":"default","type":"object","description":"Content whose height changes are animated with a smooth transition."}],"exposed":[],"models":[],"pt":{"parts":[{"name":"root","description":"The box whose height animates."}],"states":[]},"css":{"classes":{"bb-smooth-height":["","--disabled","__content"]},"locals":["--color-gray-200","--transition-duration"],"surface":{"stable":[{"class":"bb-smooth-height","tag":"component","part":"root","reads":["--transition-duration"]}],"internal":[{"class":"bb-smooth-height--disabled","tag":"component"},{"class":"bb-smooth-height__content","tag":"component"}]}},"attrTargets":["div"]},
|
|
418
423
|
{"name":"BbSpinner","group":"Feedback","description":"Indicates ongoing loading or pending operations.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSpinner.md","source":"ai/source/BbSpinner.md","props":[{"name":"label","type":"string | undefined","required":false,"description":"Accessible loading announcement. When set, the spinner is wrapped in a `role=\"status\"` element containing this text rendered `bb-sr-only`, so screen readers announce the loading state. When omitted the markup is unchanged and the spinner is purely decorative."},{"name":"pt","type":"PtMap<\"root\", never> | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"size","type":"number | CssSize | keyof Sizes | undefined","required":false,"default":"\"md\"","description":"Defines the component size.\n\nAccepted values:\n- A key from the provided size map (`keyof T`), e.g. `'sm' | 'md' | 'lg'`\n- A custom CSS size string (e.g. `'20px'`, `'1.5rem'`, `'2em'`)\n- A number, typically interpreted as pixels by size parsers"}],"events":[],"slots":[],"exposed":[],"models":[],"pt":{"parts":[{"name":"root","description":"The spinning glyph. With a `label`, the status wrapper around it is not a part."}],"states":[]},"tree":{"nodes":[{"name":"BbIcon","kind":"public"}]},"css":{"classes":{"bb-spinner":["","__circle","__circle--1","__circle--10","__circle--11","__circle--2","__circle--3","__circle--4","__circle--5","__circle--6","__circle--7","__circle--8","__circle--9"]},"locals":["--color-gray-200","--size"],"surface":{"stable":[{"class":"bb-spinner","tag":"BbIcon","part":"root","reads":["--size"]}],"internal":[{"class":"bb-spinner__circle"},{"class":"bb-spinner__circle--1"},{"class":"bb-spinner__circle--10"},{"class":"bb-spinner__circle--11"},{"class":"bb-spinner__circle--2"},{"class":"bb-spinner__circle--3"},{"class":"bb-spinner__circle--4"},{"class":"bb-spinner__circle--5"},{"class":"bb-spinner__circle--6"},{"class":"bb-spinner__circle--7"},{"class":"bb-spinner__circle--8"},{"class":"bb-spinner__circle--9"}]}},"attrTargets":["svg"],"removed":[{"name":"color","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-spinner.md","silent":true,"fix":{"kind":"manual"}}]},
|
|
419
424
|
{"name":"BbSwitch","group":"Selection","description":"Toggles two-state values with switch semantics.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSwitch.md","source":"ai/source/BbSwitch.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"checked","type":"boolean | undefined","required":false,"default":"undefined","description":"Defines the input as checked."},{"name":"compact","type":"boolean | undefined","required":false,"default":"false","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact field's label gap with the `-compact` token, not the base one. The same meaning as on the checkbox, radio and switch groups."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"falseValue","type":"any","required":false,"description":"Value of the input when unchecked. It handles any kind of serializable object."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"indeterminate","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in an indeterminate state."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"\"start\"","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"default":"\"auto\"","description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be any serializable type."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"icon\"]; readonly states: readonly [\"checked\", \"indeterminate\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\"]; readonly wide: readonly [\"checked\", \"indeterminate\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\"]; }> & PtMap<TogglePtPart, CheckablePtState>) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:checked","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:focused","type":"PtValue | undefined","required":false},{"name":"pt:description:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:description:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:checked","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:focused","type":"PtValue | undefined","required":false},{"name":"pt:hint:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:hint:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:checked","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:focused","type":"PtValue | undefined","required":false},{"name":"pt:message:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:message:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:checked","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:focused","type":"PtValue | undefined","required":false},{"name":"pt:root:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:root:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"false","description":"Reverses the layout: in every direction the order of the label and the input is swapped from the standard arrangement."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"submitWhenFalse","type":"boolean | undefined","required":false,"default":"false","description":"Will submit \"falseValue\" if the input is not checked. Otherwise \"trueValue\" will be submitted."},{"name":"trueValue","type":"any","required":false,"description":"Value of the input when checked. It handles any kind of serializable object."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the native input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the switch checked state changes. Forwards the original DOM `Event` from the input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when the input receives a click interaction. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the native input gains focus. Forwards the original DOM `FocusEvent`."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from the switch input. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on the input. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over the input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over the input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted on checked-state changes with the effective model value:\n- `trueValue` when checked\n- `falseValue` when unchecked"}],"slots":[{"name":"description","type":"BbSwitchDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"icon","type":"BbCheckboxIconSlotProps","fields":["checked: boolean","disabled: boolean","indeterminate?: boolean","falseValue: any","focused: boolean","focusVisible: boolean","hasErrors: boolean","hasWarnings: boolean","id: string","name: string","parsedValue: string","readonly: boolean","trueValue: any","value: any","text: string"],"description":"Replaces the default toggle track visual inside the switch. Receives the switch state plus the label text."},{"name":"label","type":"BbSwitchLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered next to the switch."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"pt":{"parts":[{"name":"root","description":"The toggle's container: the glyph, the label and the lines under them."},{"name":"label","description":"The label text beside the glyph (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"icon","description":"The drawn glyph — the box, the dot or the switch track. The default one: a consumer `icon` slot replaces it. The hidden native input is not a part."}],"states":[{"name":"checked","description":"Component-wide: the toggle is on."},{"name":"indeterminate","description":"Component-wide: the mixed state (the `indeterminate` prop) — neither on nor off."},{"name":"readonly","description":"Component-wide: the toggle is `readonly` — focusable, cannot change."},{"name":"disabled","description":"Component-wide: the toggle is `disabled`."},{"name":"warnings","description":"Component-wide: the toggle shows warnings and no errors."},{"name":"errors","description":"Component-wide: the toggle shows errors — the glyph and the message line turn red."},{"name":"focused","description":"Component-wide: the native input has focus — any focus, mouse included, like the `focused` slot prop."},{"name":"focusVisible","description":"Component-wide: that focus is keyboard-visible — where a focus ring belongs."}]},"tree":{"bindings":[{"part":"icon","target":"BbBaseSwitchIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbSwitch","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"BbBaseSwitchIcon","kind":"public"}]},"css":{"classes":{"bb-switch":[""]},"locals":["--color-gray-200","--ly-x","--py","--tap-b","--tap-i"],"surface":{"stable":[{"class":"bb-switch","tag":"CommonField","part":"root","reads":["--py"]}],"internal":[],"via":[{"part":"icon","component":"BbBaseSwitchIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["label"],"states":["checked","indeterminate","readonly","disabled","warnings","errors","focused","focusVisible"]}}},"attrTargets":["div"],"config":"validationMode*","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox.md","silent":true,"fix":{"kind":"manual"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
420
|
-
{"name":"BbSwitchGroup","group":"Selection","description":"Manages grouped switch options with shared behavior.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSwitchGroup.md","source":"ai/source/BbSwitchGroup.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"block","type":"boolean | undefined","required":false,"default":"false","description":"The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`."},{"name":"compact","type":"boolean | undefined","required":false,"default":"false","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to dependencies."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every applied, successful load (an empty one included), drops the model values the options no longer contain (a single value resets to `null`). A failed load never prunes."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the `items` provider threw): the twin of `emptyText` for that case."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides each option's label text (the text rendered next to every input) while keeping it accessible to screen readers. Does not affect the fieldset legend — use `hideLegend` for that."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"\"start\"","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`."},{"name":"itemProps","type":"BbOptionGroupItemProps<T> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"false","description":"Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead."},{"name":"items","type":"T[] | ((context: BbCheckboxGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`."},{"name":"itemText","type":"ItemAccessor<T, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<T> | undefined","required":false,"default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for option groups (checkbox, radio or switch) — there is no single field for the legend to float against."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"max","type":"number | undefined","required":false,"description":"Maximum number of selected items."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be an array of any serializable type."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to modelValue."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"true","description":"Enables multi-selection behavior. When true, `modelValue` must be an array. When false, `modelValue` should be a single value."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"list\", \"item\", \"icon\", \"label\", \"itemDescription\"]; readonly states: readonly [\"hasValue\", \"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"loading\"]; readonly node: { readonly item: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly icon: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly label: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly itemDescription: readonly [\"checked\", \"focused\", \"focusVisible\"]; }; }> & { legend?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"label:checked\"?: PtValue | undefined; \"label:focused\"?: PtValue | undefined; \"label:focusVisible\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"icon:checked\"?: PtValue | undefined; \"icon:focused\"?: PtValue | undefined; \"icon:focusVisible\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"legend:loading\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; \"item:checked\"?: PtValue | undefined; \"item:focused\"?: PtValue | undefined; \"item:focusVisible\"?: PtValue | undefined; \"itemDescription:checked\"?: PtValue | undefined; \"itemDescription:focused\"?: PtValue | undefined; \"itemDescription:focusVisible\"?: PtValue | undefined; } & { label?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; icon?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; item?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; itemDescription?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:item:checked","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:focused","type":"PtValue | undefined","required":false},{"name":"pt:item:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:loading","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:checked","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focused","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:loading","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:errors","type":"PtValue | undefined","required":false},{"name":"pt:list:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:list:loading","type":"PtValue | undefined","required":false},{"name":"pt:list:readonly","type":"PtValue | undefined","required":false},{"name":"pt:list:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"false","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"selectable","type":"boolean | ((item: T) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the group becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated switch inputs loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when an option is toggled. Forwards the original DOM `Event` from the switch input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when one of the generated switch inputs is clicked. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated switch inputs receives focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the group after it was active. Useful for validation-on-blur flows at group level."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from generated switch inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on generated switch inputs. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a switch input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a switch input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the coherent next selection array whenever selection changes."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"description","type":"BbSwitchGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows."},{"name":"icon","type":"BbSwitchGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","indeterminate?: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","falseValue: any","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","trueValue: any","value: any","item: T","text: string"],"description":"Replaces the default switch track visual for each option. Receives the switch state plus the source item and its display text."},{"name":"label","type":"BbSwitchGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},{"name":"legend","type":"BbSwitchGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--gap","value":"24px","selector":".bb-switch-group__list","description":"Space between rows on one line."},{"name":"--row-gap","value":"10px","selector":".bb-switch-group__list","description":"Space between wrapped lines."},{"name":"--tile-min-width","value":"96px","selector":".bb-switch-group__list","description":"How narrow a tile may get before the tiles wrap (`tiles` only)."}],"pt":{"parts":[{"name":"root","description":"The group's container (the fieldset)."},{"name":"legend","description":"The group's heading — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"list","description":"The node that lays the rows out (flex + wrap, gaps on `--gap` / `--row-gap`): `pt:list=\"grid grid-cols-3\"` re-lays them, `pt:list=\"[--gap:8px]\"` tightens them. Takes the group-wide states only."},{"name":"item","description":"One option row — a broadcast, resolved per option with its own `checked` / `disabled` / focus. Takes a per-item function."},{"name":"icon","description":"One row's drawn glyph — the default one: a consumer `icon` slot replaces it. Takes a per-item function."},{"name":"label","description":"One option's label text (the `label` slot's default). Takes a per-item function."},{"name":"itemDescription","description":"One option's muted second line, its description. Takes a per-item function."}],"states":[{"name":"hasValue","description":"Component-wide: at least one option is chosen."},{"name":"checked","description":"Per row, on `item`, `icon`, `label` and `itemDescription`: that option is chosen. Never on a field part."},{"name":"readonly","description":"Component-wide: the group is `readonly`."},{"name":"disabled","description":"Component-wide while the group is `disabled`; also per row, on the row parts of an option that is disabled on its own."},{"name":"warnings","description":"Component-wide: the group shows warnings and no errors."},{"name":"errors","description":"Component-wide: the group shows errors."},{"name":"focused","description":"Per row, on the row parts: that option's input has focus — any focus, mouse included."},{"name":"focusVisible","description":"Per row, on the row parts: that option's focus is keyboard-visible — where a focus ring belongs."},{"name":"loading","description":"Component-wide: the items are being fetched."}]},"tree":{"bindings":[{"part":"icon","target":"BbBaseSwitchIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbSwitchGroup","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"OptionsContainer","kind":"internal","vocabulary":"BbSwitchGroup","bindings":[{"part":"list","target":"span"},{"part":"item","target":"label"},{"part":"label","target":"span"},{"part":"itemDescription","target":"span"}],"cssProps":[{"name":"--list-bg","documented":true},{"name":"--list-border","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--fs","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":true},{"name":"--trigger-px","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-min-h","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":true},{"name":"--active-fg","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-inset","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--elev","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-px","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":false},{"name":"--active-fg","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--divider","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--hover-bg","documented":true}]},{"name":"BbBaseSwitchIcon","kind":"public"}]},"css":{"classes":{"bb-switch-group":["","__empty","__item","__item--*","__item--aligned","__item--description","__item--disabled","__item--focus-visible","__item--focused","__item--input-align-*","__item--input-align-bottom","__item--input-align-center","__item--input-align-top","__item--label-align-*","__item--label-align-bottom","__item--label-align-center","__item--label-align-top","__item--reverse","__item--selected","__item--vertical","__item-description","__label","__list","__list--*","__list--block","__list--errors","__list--horizontal","__list--no-transition","__list--strip","__list--tiles","__list--vertical","__list--warnings","__loading"]},"locals":["--color-gray-200","--gap","--h","--hit","--ly-lj","--ly-ls","--ly-x","--row-be","--row-bs","--row-gap","--row-h","--row-ie","--row-is","--tap-row-gap","--tile-min-width"],"surface":{"stable":[{"class":"bb-switch-group","tag":"CommonField","part":"root"},{"class":"bb-switch-group__list","part":"list","reads":["--gap","--hit","--ly-lj","--ly-ls","--row-gap","--row-h","--tap-row-gap"]},{"class":"bb-switch-group__item","part":"item","reads":["--gap","--hit","--row-be","--row-bs","--row-ie","--row-is","--tap-row-gap"]},{"class":"bb-switch-group__label","part":"label"},{"class":"bb-switch-group__item-description","part":"itemDescription"},{"class":"bb-switch-group__item--disabled","state":"disabled"},{"class":"bb-switch-group__list--warnings","state":"warnings"},{"class":"bb-switch-group__list--errors","state":"errors"},{"class":"bb-switch-group__item--focused","state":"focused"},{"class":"bb-switch-group__item--focus-visible","state":"focusVisible"}],"internal":[{"class":"bb-switch-group__empty"},{"class":"bb-switch-group__item--aligned"},{"class":"bb-switch-group__item--description","reads":["--hit","--row-gap","--row-h"]},{"class":"bb-switch-group__item--input-align-bottom"},{"class":"bb-switch-group__item--input-align-center"},{"class":"bb-switch-group__item--input-align-top"},{"class":"bb-switch-group__item--label-align-bottom"},{"class":"bb-switch-group__item--label-align-center"},{"class":"bb-switch-group__item--label-align-top"},{"class":"bb-switch-group__item--reverse"},{"class":"bb-switch-group__item--selected"},{"class":"bb-switch-group__item--vertical"},{"class":"bb-switch-group__list--block"},{"class":"bb-switch-group__list--horizontal"},{"class":"bb-switch-group__list--no-transition"},{"class":"bb-switch-group__list--strip"},{"class":"bb-switch-group__list--tiles","reads":["--row-gap","--tile-min-width"]},{"class":"bb-switch-group__list--vertical"},{"class":"bb-switch-group__loading"}],"via":[{"part":"icon","component":"BbBaseSwitchIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["hasValue","checked","readonly","loading"]}}},"attrTargets":["div"],"config":"validationMode*","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"manual"}},{"name":"labelPosition","new":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"inputDirection","new":"listLayout","hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"labelPosition","to":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"inputDirection","to":"listLayout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"},"hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)"},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
425
|
+
{"name":"BbSwitchGroup","group":"Selection","description":"Manages grouped switch options with shared behavior.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbSwitchGroup.md","source":"ai/source/BbSwitchGroup.md","props":[{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"block","type":"boolean | undefined","required":false,"default":"false","description":"The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`."},{"name":"compact","type":"boolean | undefined","required":false,"default":"false","description":"Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to dependencies."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every applied, successful load (an empty one included), drops the model values the options no longer contain (a single value resets to `null`). A failed load never prunes."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the `items` provider threw): the twin of `emptyText` for that case."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides each option's label text (the text rendered next to every input) while keeping it accessible to screen readers. Does not affect the fieldset legend — use `hideLegend` for that."},{"name":"hideLegend","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the legend of the fieldset while maintaining accessibility."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"Prefix for the ids of each option's input and of the label, description and message. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"\"start\"","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`."},{"name":"itemProps","type":"BbOptionGroupItemProps<T> | undefined","required":false,"description":"ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"false","description":"Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead."},{"name":"items","type":"T[] | ((context: BbCheckboxGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`."},{"name":"itemText","type":"ItemAccessor<T, string> | undefined","required":false,"default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},{"name":"itemValue","type":"ItemAccessor<T> | undefined","required":false,"default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"legend","type":"string","required":true,"description":"Text content of the legend."},{"name":"legendMode","type":"\"outside\" | \"inside\" | undefined","required":false,"description":"Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for option groups (checkbox, radio or switch) — there is no single field for the legend to float against."},{"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"max","type":"number | undefined","required":false,"description":"Maximum number of selected items."},{"name":"modelValue","type":"any","required":false,"description":"Used by v-model. Can be an array of any serializable type."},{"name":"modelValueDebounceTime","type":"number | undefined","required":false,"description":"Timeout used to debounce response to changes to modelValue."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"true","description":"Enables multi-selection behavior. When true, `modelValue` must be an array. When false, `modelValue` should be a single value."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"legend\", \"description\", \"message\", \"hint\", \"list\", \"item\", \"icon\", \"label\", \"itemDescription\"]; readonly states: readonly [\"hasValue\", \"checked\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"focused\", \"focusVisible\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"loading\"]; readonly node: { readonly item: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly icon: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly label: readonly [\"checked\", \"focused\", \"focusVisible\"]; readonly itemDescription: readonly [\"checked\", \"focused\", \"focusVisible\"]; }; }> & { legend?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"label:checked\"?: PtValue | undefined; \"label:focused\"?: PtValue | undefined; \"label:focusVisible\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"icon:checked\"?: PtValue | undefined; \"icon:focused\"?: PtValue | undefined; \"icon:focusVisible\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"legend:loading\"?: PtValue | undefined; \"legend:disabled\"?: PtValue | undefined; \"legend:errors\"?: PtValue | undefined; \"legend:warnings\"?: PtValue | undefined; \"legend:readonly\"?: PtValue | undefined; \"legend:hasValue\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"item:errors\"?: PtValue | undefined; \"item:warnings\"?: PtValue | undefined; \"item:readonly\"?: PtValue | undefined; \"item:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; \"item:checked\"?: PtValue | undefined; \"item:focused\"?: PtValue | undefined; \"item:focusVisible\"?: PtValue | undefined; \"itemDescription:checked\"?: PtValue | undefined; \"itemDescription:focused\"?: PtValue | undefined; \"itemDescription:focusVisible\"?: PtValue | undefined; } & { label?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; icon?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; item?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; itemDescription?: PtValue | PtItemFn<T, GroupPtState, never, { readonly item: T; }> | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:icon:checked","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:focused","type":"PtValue | undefined","required":false},{"name":"pt:icon:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:item:checked","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:errors","type":"PtValue | undefined","required":false},{"name":"pt:item:focused","type":"PtValue | undefined","required":false},{"name":"pt:item:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:item:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:item:loading","type":"PtValue | undefined","required":false},{"name":"pt:item:readonly","type":"PtValue | undefined","required":false},{"name":"pt:item:warnings","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:itemDescription:checked","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:disabled","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:errors","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focused","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:loading","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:readonly","type":"PtValue | undefined","required":false},{"name":"pt:itemDescription:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | ((ctx: PtItemCtx<T, GroupPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:label:checked","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:focused","type":"PtValue | undefined","required":false},{"name":"pt:label:focusVisible","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:legend","type":"PtValue | undefined","required":false},{"name":"pt:legend:disabled","type":"PtValue | undefined","required":false},{"name":"pt:legend:errors","type":"PtValue | undefined","required":false},{"name":"pt:legend:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:legend:loading","type":"PtValue | undefined","required":false},{"name":"pt:legend:readonly","type":"PtValue | undefined","required":false},{"name":"pt:legend:warnings","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:errors","type":"PtValue | undefined","required":false},{"name":"pt:list:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:list:loading","type":"PtValue | undefined","required":false},{"name":"pt:list:readonly","type":"PtValue | undefined","required":false},{"name":"pt:list:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"false","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<any>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"selectable","type":"boolean | ((item: T) => boolean) | undefined","required":false,"default":"true","description":"Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the group becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated switch inputs loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when an option is toggled. Forwards the original DOM `Event` from the switch input."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when one of the generated switch inputs is clicked. Forwards the original DOM `MouseEvent`."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when one of the generated switch inputs receives focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the group after it was active. Useful for validation-on-blur flows at group level."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events from generated switch inputs. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction on generated switch inputs. Forwards the original DOM `KeyboardEvent`."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is pressed over a switch input. Forwards the original DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"Emitted when a pointing device button is released over a switch input. Forwards the original DOM `MouseEvent`."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the coherent next selection array whenever selection changes."}],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"description","type":"BbSwitchGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows."},{"name":"icon","type":"BbSwitchGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","indeterminate?: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","falseValue: any","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","trueValue: any","value: any","item: T","text: string"],"description":"Replaces the default switch track visual for each option. Receives the switch state plus the source item and its display text."},{"name":"label","type":"BbSwitchGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},{"name":"legend","type":"BbSwitchGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[{"name":"modelValue","type":"any"}],"cssProps":[{"name":"--gap","value":"24px","selector":".bb-switch-group__list","description":"Space between rows on one line."},{"name":"--row-gap","value":"10px","selector":".bb-switch-group__list","description":"Space between wrapped lines."},{"name":"--tile-min-width","value":"96px","selector":".bb-switch-group__list","description":"How narrow a tile may get before the tiles wrap (`tiles` only)."}],"pt":{"parts":[{"name":"root","description":"The group's container (the fieldset)."},{"name":"legend","description":"The group's heading — the fieldset `<legend>` (the `legend` prop)."},{"name":"description","description":"The muted line under the legend (the `description` prop)."},{"name":"message","description":"The errors / warnings line. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"list","description":"The node that lays the rows out (flex + wrap, gaps on `--gap` / `--row-gap`): `pt:list=\"grid grid-cols-3\"` re-lays them, `pt:list=\"[--gap:8px]\"` tightens them. Takes the group-wide states only."},{"name":"item","description":"One option row — a broadcast, resolved per option with its own `checked` / `disabled` / focus. Takes a per-item function."},{"name":"icon","description":"One row's drawn glyph — the default one: a consumer `icon` slot replaces it. Takes a per-item function."},{"name":"label","description":"One option's label text (the `label` slot's default). Takes a per-item function."},{"name":"itemDescription","description":"One option's muted second line, its description. Takes a per-item function."}],"states":[{"name":"hasValue","description":"Component-wide: at least one option is chosen."},{"name":"checked","description":"Per row, on `item`, `icon`, `label` and `itemDescription`: that option is chosen. Never on a field part."},{"name":"readonly","description":"Component-wide: the group is `readonly`."},{"name":"disabled","description":"Component-wide while the group is `disabled`; also per row, on the row parts of an option that is disabled on its own."},{"name":"warnings","description":"Component-wide: the group shows warnings and no errors."},{"name":"errors","description":"Component-wide: the group shows errors."},{"name":"focused","description":"Per row, on the row parts: that option's input has focus — any focus, mouse included."},{"name":"focusVisible","description":"Per row, on the row parts: that option's focus is keyboard-visible — where a focus ring belongs."},{"name":"loading","description":"Component-wide: the items are being fetched."}]},"tree":{"bindings":[{"part":"icon","target":"BbBaseSwitchIcon"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbSwitchGroup","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"OptionsContainer","kind":"internal","vocabulary":"BbSwitchGroup","bindings":[{"part":"list","target":"span"},{"part":"item","target":"label"},{"part":"label","target":"span"},{"part":"itemDescription","target":"span"}],"cssProps":[{"name":"--list-bg","documented":true},{"name":"--list-border","documented":true,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--fs","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":true},{"name":"--trigger-px","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--trigger-r","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--trigger-min-h","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":true},{"name":"--active-fg","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":true,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-inset","documented":true,"readBy":["bb-checkbox-group__indicator"]},{"name":"--elev","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":true,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--list-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-h","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--list-bg","documented":false},{"name":"--list-border","documented":false,"readBy":["bb-checkbox-group__list--vertical"]},{"name":"--list-h","documented":true,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip"]},{"name":"--p","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-checkbox-group__item"]},{"name":"--trigger-gap","documented":false},{"name":"--trigger-r","documented":false,"readBy":["bb-radio-group__list--strip","bb-checkbox-group__list--strip","bb-radio-group__list--outline","bb-checkbox-group__list--outline","bb-checkbox-group__item"]},{"name":"--trigger-px","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--list-fg","documented":false,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-fg","documented":false},{"name":"--active-fg","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--active-fw","documented":false,"readBy":["bb-checkbox-group__item--selected"]},{"name":"--indicator-bg","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--indicator-border","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-r","documented":false,"readBy":["bb-checkbox-group__indicator"]},{"name":"--indicator-shadow","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--elev","documented":false,"readBy":["bb-checkbox-group__indicator","bb-checkbox-group__item--selected"]},{"name":"--divider","documented":true,"readBy":["bb-checkbox-group__item"]},{"name":"--hover-bg","documented":true}]},{"name":"BbBaseSwitchIcon","kind":"public"}]},"css":{"classes":{"bb-switch-group":["","__empty","__item","__item--*","__item--aligned","__item--description","__item--disabled","__item--focus-visible","__item--focused","__item--input-align-*","__item--input-align-bottom","__item--input-align-center","__item--input-align-top","__item--label-align-*","__item--label-align-bottom","__item--label-align-center","__item--label-align-top","__item--reverse","__item--selected","__item--vertical","__item-description","__label","__list","__list--*","__list--block","__list--errors","__list--horizontal","__list--no-transition","__list--strip","__list--tiles","__list--vertical","__list--warnings","__loading"]},"locals":["--color-gray-200","--gap","--h","--hit","--ly-lj","--ly-ls","--ly-x","--row-be","--row-bs","--row-gap","--row-h","--row-ie","--row-is","--tap-row-gap","--tile-min-width"],"surface":{"stable":[{"class":"bb-switch-group","tag":"CommonField","part":"root"},{"class":"bb-switch-group__list","part":"list","reads":["--gap","--hit","--ly-lj","--ly-ls","--row-gap","--row-h","--tap-row-gap"]},{"class":"bb-switch-group__item","part":"item","reads":["--gap","--hit","--row-be","--row-bs","--row-ie","--row-is","--tap-row-gap"]},{"class":"bb-switch-group__label","part":"label"},{"class":"bb-switch-group__item-description","part":"itemDescription"},{"class":"bb-switch-group__item--disabled","state":"disabled"},{"class":"bb-switch-group__list--warnings","state":"warnings"},{"class":"bb-switch-group__list--errors","state":"errors"},{"class":"bb-switch-group__item--focused","state":"focused"},{"class":"bb-switch-group__item--focus-visible","state":"focusVisible"}],"internal":[{"class":"bb-switch-group__empty"},{"class":"bb-switch-group__item--aligned"},{"class":"bb-switch-group__item--description","reads":["--hit","--row-gap","--row-h"]},{"class":"bb-switch-group__item--input-align-bottom"},{"class":"bb-switch-group__item--input-align-center"},{"class":"bb-switch-group__item--input-align-top"},{"class":"bb-switch-group__item--label-align-bottom"},{"class":"bb-switch-group__item--label-align-center"},{"class":"bb-switch-group__item--label-align-top"},{"class":"bb-switch-group__item--reverse"},{"class":"bb-switch-group__item--selected"},{"class":"bb-switch-group__item--vertical"},{"class":"bb-switch-group__list--block"},{"class":"bb-switch-group__list--horizontal"},{"class":"bb-switch-group__list--no-transition"},{"class":"bb-switch-group__list--strip"},{"class":"bb-switch-group__list--tiles","reads":["--row-gap","--tile-min-width"]},{"class":"bb-switch-group__list--vertical"},{"class":"bb-switch-group__loading"}],"via":[{"part":"icon","component":"BbBaseSwitchIcon"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"}],"unaligned":{"parts":["legend"],"states":["hasValue","checked","readonly","loading"]}}},"attrTargets":["div"],"config":"validationMode*","removed":[{"name":"color","new":null,"since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"manual"}},{"name":"labelPosition","new":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","silent":true,"fix":{"kind":"rename"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"inputDirection","new":"listLayout","hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"labelPosition","to":"legendPosition","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-checkbox-group.md","fix":{"kind":"rename"}},{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"inputDirection","to":"listLayout","since":"3.0.0-beta.33","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"},"hint":"same values, but v2 `vertical` rows spanned the list: write `list-layout=\"vertical\" block` for that look (`vertical` alone keeps each row's own width)"},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
421
426
|
{"name":"BbTable","group":"Data Display","description":"Displays tabular data, configurable columns and data mapper.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbTable.md","source":"ai/source/BbTable.md","props":[{"name":"accessibleLabel","type":"((columns: MappedCell[], item: Item) => string) | undefined","required":false,"description":"The label of each row's selection checkbox, from `(columns, item)`. Unset: the row's name in the locale's select template (its `rowHeader` cells, else its first column: \"Select INV-1041\"). The cells arrive in render order: look one up by `key`, never by position."},{"name":"actionsText","type":"string | undefined","required":false,"description":"Label used in the header of the actions column."},{"name":"align","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"\"start\"","description":"Text alignment of the columns. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"caption","type":"string | undefined","required":false,"description":"Caption describing the table's content, for accessibility."},{"name":"columns","type":"BbTableColumn<T>[] | undefined","required":false,"default":"[]","description":"Array of definitions of how the columns should be rendered."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Adds a CSS class that applies a compact style to the component."},{"name":"dependencies","type":"unknown[] | undefined","required":false,"default":"[]","description":"Defines an array of dependencies that will trigger actions in the component upon change."},{"name":"depsDebounceTime","type":"number | undefined","required":false,"default":"0","description":"Timeout used to debounce response to changes to dependencies."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component"},{"name":"disableSelectAll","type":"boolean | undefined","required":false,"default":"false","description":"Hides the \"Select all\" checkbox that selectable multi-row tables display by default."},{"name":"displayCaption","type":"boolean | undefined","required":false,"default":"false","description":"Shows the caption as a visible title. Off by default: the caption is hidden, and screen readers still hear it as the table's name."},{"name":"emptyText","type":"string | undefined","required":false,"default":"the localized `common.emptyText` (\"No data to display\")","description":"Text shown when there are no items."},{"name":"enforceCoherence","type":"boolean | undefined","required":false,"default":"false","description":"After every load, prunes `modelValue`, `unselected-items`, `highlighted` and `expanded-items` of values whose row is gone (a single value resets to `null`). Never on a provider-paginated table: a page change would prune the other pages' selection; reconcile in the provider instead."},{"name":"expandedItems","type":"any[] | undefined","required":false,"default":"[]","description":"Used by `v-model:expandedItems`: the expanded items, toggled by the row expand control and by external writes, like the `highlighted` / `sort` v-models. Drives the `#expand` rows and their `aria-expanded` / `aria-controls` wiring."},{"name":"failedText","type":"string | undefined","required":false,"default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the `items` provider threw): the twin of `emptyText` for that case."},{"name":"fixed","type":"boolean | undefined","required":false,"default":"false","description":"Gives the columns that declare no `width` an equal share of the width (a `minmax(0, 1fr)` track each)."},{"name":"fixedActions","type":"boolean | undefined","required":false,"default":"false","description":"Pins the actions column (the one the `#actions` slot creates) to the right edge, `position: sticky`, in place. It has no column definition, so this is its `column.fixed`. No effect without an `#actions` slot."},{"name":"fixedFirst","type":"boolean | undefined","required":false,"default":"false","description":"Sticks the `#<key>:first` row to the top of the scrollport (under a stuck header)."},{"name":"fixedHeaders","type":"boolean | undefined","required":false,"default":"false","description":"Sticks the headers to the top of the table."},{"name":"fixedLast","type":"boolean | undefined","required":false,"default":"false","description":"Sticks the `#<key>:last` row (a totals row) to the bottom of the scrollport."},{"name":"fixedSelect","type":"boolean | undefined","required":false,"default":"false","description":"Pins the selection column to the left edge, `position: sticky`, in place. It has no column definition, so this is its `column.fixed`. No effect unless the table is `selectable`."},{"name":"headerRowClass","type":"Classes | undefined","required":false,"description":"Classes for the header row."},{"name":"highlightable","type":"boolean | ((item: Item) => boolean) | undefined","required":false,"default":"undefined","description":"Which rows a click, Enter or `toggleHighlighted` may highlight: `false` for none, or a function of the row's item. Unset: every row, when `highlighted` is bound. A value the app sets still shows on a refused row."},{"name":"highlighted","type":"any","required":false,"default":"undefined","description":"Used by `v-model:highlighted`: the one row the UI is about (say, whose details are open), a single item value or `null`. Opt-in: bound, a row click highlights; unbound, it only emits `click:row`. The row gets `aria-current=\"true\"` and a shipped tint."},{"name":"id","type":"string | undefined","required":false,"description":"Stable id for this table's width context. When omitted a unique id is generated. Nested tables use the nearest ancestor id to inherit widths."},{"name":"inheritColumnWidths","type":"string | boolean | undefined","required":false,"description":"Snaps a nested table's columns to an ancestor table's tracks: `true` = the nearest one, a table `id` = that one (when a table in between has a different column count). Off by default: a nested table sizes itself."},{"name":"interactiveWhileLoading","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the header and rows interactive while loading (by default they are `inert`: a refetch is about to replace them). For background refreshes that must not interrupt an open editor."},{"name":"items","type":"Item[] | ((context: BbTableItemsContext) => Item[] | Promise<Item[]>)","required":true,"default":"[]","description":"Rows to render: an array, or a provider called with a `BbTableItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. Return the page as it is."},{"name":"itemValue","type":"ItemAccessor<Item> | undefined","required":false,"description":"The row's value, as a property path or a function returning any value; the selection, `expandedItems` and row keys compare by it."},{"name":"keyboardNavigation","type":"boolean | undefined","required":false,"default":"false","description":"Opt-in keyboard navigation: the table becomes an ARIA `grid` (`treegrid` with an `#expand` slot) with ONE tab stop and roving focus over its cells. Controls in cells leave the tab order (Enter/F2 go in). Ignored with a `#tbody` slot."},{"name":"legend","type":"string | undefined","required":false,"description":"The `<legend>` of a `selectable` table (it renders as a `<fieldset>`): the selection's accessible name. Falls back to `caption`, then to a localized default."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Loading state: skeletons with no rows yet, else the rows stay on screen, dimmed, under an indeterminate bar. A refetch never blanks a table the user is reading."},{"name":"loadingText","type":"string | undefined","required":false,"default":"the localized `common.loadingText` (\"Loading...\")","description":"Screen-reader announcement for the loading row's `aria-live` status. Visually hidden — the skeleton (or the `#loading` slot) is the visible signal."},{"name":"max","type":"number | undefined","required":false,"default":"Infinity","description":"Maximum number of items that can be selected."},{"name":"modelValue","type":"any","required":false,"default":"[]","description":"Used by v-model. Can be any serializable type."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"true","description":"Allows the selection of multiple items."},{"name":"multiSort","type":"boolean | undefined","required":false,"default":"false","description":"A plain click on a sortable header adds the column to the sort, as Shift+click always does. Off, a plain click makes the sort that column alone."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"order","type":"string[] | undefined","required":false,"default":"[]","description":"Used by `v-model:order`: the column keys in render order. Columns it omits follow in declaration order; unknown keys stay put. A `reorderable` move writes it back complete. Works unbound, like `sort`; never holds `select` / `actions`."},{"name":"page","type":"string | number | undefined","required":false,"description":"Current page (from 1), for the rows' `aria-rowindex` and a `BbPagination` paired through `id`. Doesn't slice `items`: pass the current page's rows. Numeric strings are coerced."},{"name":"perPage","type":"string | number | undefined","required":false,"description":"Rows per page, for `aria-rowindex` and a paired `BbPagination`. Doesn't slice `items`. Unset, an array `items` infers it from its length. Numeric strings are coerced."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"caption\", \"table\", \"head\", \"headerRow\", \"cellColumnHeader\", \"sortIcon\", \"body\", \"row\", \"cell\", \"expand\", \"firstRow\", \"lastRow\", \"selectIcon\", \"dragIcon\", \"dragHandle\", \"foot\"]; readonly states: readonly [\"value\", \"placeholder\", \"empty\", \"sorted\", \"sortedDesc\", \"selected\", \"indeterminate\", \"disabled\", \"expanded\", \"highlighted\", \"loading\"]; readonly wide: readonly [\"empty\", \"loading\"]; readonly node: { readonly cellColumnHeader: readonly [\"sorted\", \"sortedDesc\"]; readonly sortIcon: readonly [\"sorted\", \"sortedDesc\"]; readonly row: readonly [\"selected\", \"disabled\", \"expanded\", \"highlighted\"]; readonly cell: readonly [\"value\", \"placeholder\", \"selected\", \"disabled\", \"expanded\", \"highlighted\"]; readonly dragHandle: readonly [\"selected\", \"disabled\", \"expanded\", \"highlighted\"]; readonly expand: readonly [\"selected\", \"expanded\", \"highlighted\"]; readonly selectIcon: readonly [\"selected\", \"indeterminate\", \"disabled\"]; }; readonly except: { readonly row: readonly [\"empty\"]; readonly cell: readonly [\"empty\"]; readonly expand: readonly [\"empty\"]; readonly firstRow: readonly [\"empty\"]; readonly lastRow: readonly [\"empty\"]; readonly dragHandle: readonly [\"empty\"]; }; }> & { body?: PtValue | undefined; caption?: PtValue | undefined; head?: PtValue | undefined; table?: PtValue | undefined; root?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; cellColumnHeader?: PtValue | undefined; \"cellColumnHeader:loading\"?: PtValue | undefined; foot?: PtValue | undefined; headerRow?: PtValue | undefined; sortIcon?: PtValue | undefined; cell?: PtValue | undefined; firstRow?: PtValue | undefined; lastRow?: PtValue | undefined; selectIcon?: PtValue | undefined; dragIcon?: PtValue | undefined; dragHandle?: PtValue | undefined; \"body:loading\"?: PtValue | undefined; \"body:empty\"?: PtValue | undefined; \"caption:loading\"?: PtValue | undefined; \"caption:empty\"?: PtValue | undefined; \"head:loading\"?: PtValue | undefined; \"head:empty\"?: PtValue | undefined; \"table:loading\"?: PtValue | undefined; \"table:empty\"?: PtValue | undefined; \"root:empty\"?: PtValue | undefined; \"cellColumnHeader:empty\"?: PtValue | undefined; \"foot:loading\"?: PtValue | undefined; \"foot:empty\"?: PtValue | undefined; \"headerRow:loading\"?: PtValue | undefined; \"headerRow:empty\"?: PtValue | undefined; \"sortIcon:loading\"?: PtValue | undefined; \"sortIcon:empty\"?: PtValue | undefined; \"row:loading\"?: PtValue | undefined; \"cell:loading\"?: PtValue | undefined; \"expand:loading\"?: PtValue | undefined; \"firstRow:loading\"?: PtValue | undefined; \"lastRow:loading\"?: PtValue | undefined; \"selectIcon:loading\"?: PtValue | undefined; \"selectIcon:empty\"?: PtValue | undefined; \"dragIcon:loading\"?: PtValue | undefined; \"dragIcon:empty\"?: PtValue | undefined; \"dragHandle:loading\"?: PtValue | undefined; \"cellColumnHeader:sorted\"?: PtValue | undefined; \"cellColumnHeader:sortedDesc\"?: PtValue | undefined; \"sortIcon:sorted\"?: PtValue | undefined; \"sortIcon:sortedDesc\"?: PtValue | undefined; \"row:disabled\"?: PtValue | undefined; \"row:selected\"?: PtValue | undefined; \"row:highlighted\"?: PtValue | undefined; \"row:expanded\"?: PtValue | undefined; \"cell:placeholder\"?: PtValue | undefined; \"cell:disabled\"?: PtValue | undefined; \"cell:value\"?: PtValue | undefined; \"cell:selected\"?: PtValue | undefined; \"cell:highlighted\"?: PtValue | undefined; \"cell:expanded\"?: PtValue | undefined; \"expand:selected\"?: PtValue | undefined; \"expand:highlighted\"?: PtValue | undefined; \"expand:expanded\"?: PtValue | undefined; \"selectIcon:disabled\"?: PtValue | undefined; \"selectIcon:indeterminate\"?: PtValue | undefined; \"selectIcon:selected\"?: PtValue | undefined; \"dragHandle:disabled\"?: PtValue | undefined; \"dragHandle:selected\"?: PtValue | undefined; \"dragHandle:highlighted\"?: PtValue | undefined; \"dragHandle:expanded\"?: PtValue | undefined; } & { row?: PtValue | PtItemFn<Item, BbTablePtState, never, { readonly item: Item; }> | undefined; expand?: PtValue | PtItemFn<Item, BbTablePtState, never, { readonly item: Item; }> | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:body","type":"PtValue | undefined","required":false},{"name":"pt:body:empty","type":"PtValue | undefined","required":false},{"name":"pt:body:loading","type":"PtValue | undefined","required":false},{"name":"pt:caption","type":"PtValue | undefined","required":false},{"name":"pt:caption:empty","type":"PtValue | undefined","required":false},{"name":"pt:caption:loading","type":"PtValue | undefined","required":false},{"name":"pt:cell","type":"PtValue | undefined","required":false},{"name":"pt:cell:disabled","type":"PtValue | undefined","required":false},{"name":"pt:cell:expanded","type":"PtValue | undefined","required":false},{"name":"pt:cell:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:cell:loading","type":"PtValue | undefined","required":false},{"name":"pt:cell:placeholder","type":"PtValue | undefined","required":false},{"name":"pt:cell:selected","type":"PtValue | undefined","required":false},{"name":"pt:cell:value","type":"PtValue | undefined","required":false},{"name":"pt:cellColumnHeader","type":"PtValue | undefined","required":false},{"name":"pt:cellColumnHeader:empty","type":"PtValue | undefined","required":false},{"name":"pt:cellColumnHeader:loading","type":"PtValue | undefined","required":false},{"name":"pt:cellColumnHeader:sorted","type":"PtValue | undefined","required":false},{"name":"pt:cellColumnHeader:sortedDesc","type":"PtValue | undefined","required":false},{"name":"pt:dragHandle","type":"PtValue | undefined","required":false},{"name":"pt:dragHandle:disabled","type":"PtValue | undefined","required":false},{"name":"pt:dragHandle:expanded","type":"PtValue | undefined","required":false},{"name":"pt:dragHandle:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:dragHandle:loading","type":"PtValue | undefined","required":false},{"name":"pt:dragHandle:selected","type":"PtValue | undefined","required":false},{"name":"pt:dragIcon","type":"PtValue | undefined","required":false},{"name":"pt:dragIcon:empty","type":"PtValue | undefined","required":false},{"name":"pt:dragIcon:loading","type":"PtValue | undefined","required":false},{"name":"pt:expand","type":"PtValue | ((ctx: PtItemCtx<Item, BbTablePtState>) => PtItemResult) | undefined","required":false},{"name":"pt:expand:expanded","type":"PtValue | undefined","required":false},{"name":"pt:expand:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:expand:loading","type":"PtValue | undefined","required":false},{"name":"pt:expand:selected","type":"PtValue | undefined","required":false},{"name":"pt:firstRow","type":"PtValue | undefined","required":false},{"name":"pt:firstRow:loading","type":"PtValue | undefined","required":false},{"name":"pt:foot","type":"PtValue | undefined","required":false},{"name":"pt:foot:empty","type":"PtValue | undefined","required":false},{"name":"pt:foot:loading","type":"PtValue | undefined","required":false},{"name":"pt:head","type":"PtValue | undefined","required":false},{"name":"pt:head:empty","type":"PtValue | undefined","required":false},{"name":"pt:head:loading","type":"PtValue | undefined","required":false},{"name":"pt:headerRow","type":"PtValue | undefined","required":false},{"name":"pt:headerRow:empty","type":"PtValue | undefined","required":false},{"name":"pt:headerRow:loading","type":"PtValue | undefined","required":false},{"name":"pt:lastRow","type":"PtValue | undefined","required":false},{"name":"pt:lastRow:loading","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:empty","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:row","type":"PtValue | ((ctx: PtItemCtx<Item, BbTablePtState>) => PtItemResult) | undefined","required":false},{"name":"pt:row:disabled","type":"PtValue | undefined","required":false},{"name":"pt:row:expanded","type":"PtValue | undefined","required":false},{"name":"pt:row:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:row:loading","type":"PtValue | undefined","required":false},{"name":"pt:row:selected","type":"PtValue | undefined","required":false},{"name":"pt:selectIcon","type":"PtValue | undefined","required":false},{"name":"pt:selectIcon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:selectIcon:empty","type":"PtValue | undefined","required":false},{"name":"pt:selectIcon:indeterminate","type":"PtValue | undefined","required":false},{"name":"pt:selectIcon:loading","type":"PtValue | undefined","required":false},{"name":"pt:selectIcon:selected","type":"PtValue | undefined","required":false},{"name":"pt:sortIcon","type":"PtValue | undefined","required":false},{"name":"pt:sortIcon:empty","type":"PtValue | undefined","required":false},{"name":"pt:sortIcon:loading","type":"PtValue | undefined","required":false},{"name":"pt:sortIcon:sorted","type":"PtValue | undefined","required":false},{"name":"pt:sortIcon:sortedDesc","type":"PtValue | undefined","required":false},{"name":"pt:table","type":"PtValue | undefined","required":false},{"name":"pt:table:empty","type":"PtValue | undefined","required":false},{"name":"pt:table:loading","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"reorderable","type":"boolean | undefined","required":false,"default":"false","description":"Lets the user reorder the data columns: drag a header, or Shift+←/→ on a focused header. Every move writes `v-model:order`; a column panel that only writes `order` does not need it. `select` / `actions` and a custom `#thead` never move."},{"name":"reorderableRows","type":"boolean | undefined","required":false,"default":"false","description":"Adds a drag handle at the start of each row: the user drags a row, or lifts it with Space / Enter and the arrow keys, and `reorder:rows` reports `{ item, from, to }`. The table never reorders `items`: splice it in the handler."},{"name":"resizable","type":"boolean | undefined","required":false,"default":"false","description":"Lets the user resize the data columns (drag a header's trailing edge, or Alt+←/→; double-click resets). Each commit fires `resize:column(key, width)` once: write the width back into the column definition to keep it. Ignored when inheriting widths."},{"name":"rowClass","type":"BbTableRowClasses<Item> | undefined","required":false,"description":"Classes for each data row, or a function of the row's item."},{"name":"selectable","type":"boolean | ((item: Item) => boolean) | undefined","required":false,"description":"Makes rows selectable: a boolean for every row, or a function of the row's item deciding for that row."},{"name":"selectAll","type":"boolean | undefined","required":false,"default":"false","description":"Whether the \"Select all\" checkbox is checked."},{"name":"selectAllLabel","type":"string | undefined","required":false,"description":"Label of the \"Select all\" checkbox."},{"name":"selectText","type":"string | undefined","required":false,"description":"Header text of the radio column when the table is not `multiple`."},{"name":"sort","type":"BbTableSortEntry[] | undefined","required":false,"default":"[]","description":"Used by `v-model:sort`: `[columnKey, direction]` entries in priority order, written by the `sortable` headers and shown by them. Doesn't sort `items`: apply it to your data or your server query."},{"name":"tdClass","type":"ColumnClasses<Item> | undefined","required":false,"description":"Classes for every data cell, or a function of `(content, key, item)`."},{"name":"thClass","type":"Classes | undefined","required":false,"description":"Classes for every header cell."},{"name":"totalItems","type":"string | number | undefined","required":false,"description":"Total row count, for `aria-rowcount` and a paired `BbPagination`'s page count. Unset, an array `items` infers it from its length. Numeric strings are coerced."},{"name":"totalPages","type":"string | number | undefined","required":false,"description":"Seeds a paired `BbPagination`'s page count when the server reports pages, not rows; the table renders nothing from it. A known total (`totalItems`) always wins. Numeric strings are coerced."},{"name":"unselectedItems","type":"any[] | undefined","required":false,"default":"[]","description":"Items that are not selected."},{"name":"virtual","type":"boolean | undefined","required":false,"default":"false","description":"Windows the body: only the rows near the scrollport are mounted. Bound the table's height to make it the scroller; column widths are measured once, from the first rows. Ignored when inheriting widths and under a `#tbody` slot."}],"events":[{"name":"click:row","signature":"(event: MouseEvent, item: Item): void","description":"A body row was clicked, or activated with Enter/Space under `keyboardNavigation`. Carries the DOM `MouseEvent` and the raw record."},{"name":"contextmenu:row","signature":"(event: MouseEvent, item: Item): void","description":"A body row was right-clicked. Carries the DOM `MouseEvent` and the raw record."},{"name":"dblclick:row","signature":"(event: MouseEvent, item: Item): void","description":"A body row was double-clicked. Carries the DOM `MouseEvent` and the raw record."},{"name":"hide:column","signature":"(key: string): void","description":"A column was hidden through a header slot's `hideColumn()`. Fired once; write `hidden: true` into the column definition to persist it."},{"name":"item:selected","signature":"(value: any): void","description":"The user selected one row. Carries the row's value (read through `itemValue`, the same value the selection v-model holds)."},{"name":"item:unselected","signature":"(value: any): void","description":"The user unselected one row. Carries the row's value, like `item:selected`."},{"name":"reorder:rows","signature":"(payload: { item: Item; from: number; to: number; }): void","description":"A row was moved (`reorderable-rows`): `item` is your object, `from` / `to` index the `items` the table holds. Splice `items` in the handler; a drop in place emits nothing."},{"name":"resize:column","signature":"(key: string, width: number | null): void","description":"The user resized a column (`resizable`): the new width in px, or `null` after a double-click on the handle reset it to its declared width."},{"name":"update:expandedItems","signature":"(value: any[]): void","description":"Emitted with the new value whenever `v-model:expandedItems` changes."},{"name":"update:highlighted","signature":"(value: any): void","description":"Emitted with the new value whenever `v-model:highlighted` changes."},{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the new value whenever `v-model` changes."},{"name":"update:order","signature":"(value: string[]): void","description":"Emitted with the new value whenever `v-model:order` changes."},{"name":"update:selectAll","signature":"(value: boolean): void","description":"Emitted with the new value whenever `v-model:selectAll` changes."},{"name":"update:sort","signature":"(value: BbTableSortEntry[]): void","description":"Emitted with the new value whenever `v-model:sort` changes."},{"name":"update:unselectedItems","signature":"(value: any[]): void","description":"Emitted with the new value whenever `v-model:unselectedItems` changes."}],"slots":[{"name":"actions","type":"{ expanded?: boolean | undefined; expandProps?: ExpandControllerProps | undefined; toggleExpanded?: (() => void) | undefined; highlighted?: boolean | undefined; toggleHighlighted?: (() => void) | undefined; selected?: boolean | undefined; toggleSelected?: (() => void) | undefined; item: Item; value: any; }","description":"Content of each row's actions cell; this slot CREATES the actions column (there is no prop). The header cell (labelled by `actions-text`, replaceable through `#actions:header`) and one cell per row come and go with it. Pin it with `fixed-actions`."},{"name":"actions:header","type":"{ text: string; }","description":"Replaces the default actions header cell content."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when there are no rows and nothing is loading, inside the table's own full-width cell: pass content, never a row. `error` is what the latest failed load threw (`null` when none)."},{"name":"expand","type":"{ expanded: boolean; expandProps?: ExpandControllerProps | undefined; toggleExpanded: () => void; highlighted?: boolean | undefined; toggleHighlighted?: (() => void) | undefined; selected?: boolean | undefined; toggleSelected?: (() => void) | undefined; item: Item; value: any; }","description":"Full-width expandable content row rendered below each main row when expanded."},{"name":"header:append","type":"BbTableHeaderAffixSlotProps<Item>","fields":["classes?: Classes","columnKey: string","items?: Item[]","label?: string","sortable?: boolean","sortOrder?: \"asc\" | \"desc\" | null","toggleSort?: ((event?: MouseEvent | KeyboardEvent | undefined) => void)","hideColumn?: (() => void)"],"description":"Content after every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:append` wins over this for that column; they never stack. Branch on `columnKey` for per-column output."},{"name":"header:prepend","type":"BbTableHeaderAffixSlotProps<Item>","fields":["classes?: Classes","columnKey: string","items?: Item[]","label?: string","sortable?: boolean","sortOrder?: \"asc\" | \"desc\" | null","toggleSort?: ((event?: MouseEvent | KeyboardEvent | undefined) => void)","hideColumn?: (() => void)"],"description":"Content before every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:prepend` wins over this for that column; they never stack. Branch on `columnKey` for per-column output."},{"name":"loading","type":"{ items: Item[]; }","description":"Content shown while table rows are loading (replaces the skeleton rows)."},{"name":"select","type":"{ item: Item; value: any; checked: boolean; disabled: boolean; inputName: string; readonly: boolean; toggleSelected?: (() => void) | undefined; }","description":"Replaces the default checkbox/radio in the selection cell for each row."},{"name":"select:header","type":"{ multiple: boolean; selectAll: boolean; text: string; }","description":"Replaces the default selection header cell content (checkbox or radio label)."},{"name":"tbody","type":"object","description":"Replaces the content of the body row group (`.bb-table__body`), for full control of the body markup. Provide role-complete rows (`<div role=\"row\">` with one `<div role=\"cell\">` per column), never `<tr>`/`<td>`. A full-width cell spans with `grid-column: 1 / -1`."},{"name":"tfoot","type":"{ columnCount: number; empty: boolean; }","description":"Fills the footer row group (`.bb-table__foot`) for footers that are not column-shaped (a note, pagination). Column-aligned totals go in `#<key>:last` (`#<key>:first` for a row before the data). Role-complete rows (`<div role=\"row\">` of `<div role=\"cell\">`), never `<tr>`/`<td>`."},{"name":"thead","type":"{ empty: boolean; }","description":"Replaces the header row group's content (`.bb-table__head`). The table is a CSS grid: provide `<div role=\"row\">` rows of `<div role=\"columnheader\">` cells, never `<tr>` / `<th>`."},{"name":"<key>","type":"object","description":"One column's body cell in every row, by the column `key` through `slotKey`. Scope: `{ item, value, content, selected, expanded, highlighted, classes, sortOrder, toggleSelected, toggleExpanded, toggleHighlighted, expandProps }`.","dynamic":true},{"name":"<key>:header","type":"object","description":"One column's header content, replacing its label and the built-in sort button. Scope: `{ label, items, sortable, sortOrder, toggleSort, hideColumn, classes }`.","dynamic":true},{"name":"<key>:header:prepend","type":"BbTableHeaderAffixSlotProps<Item>","description":"Content before one column's header, keeping the sort button; beats `header:prepend` (they never stack).","dynamic":true},{"name":"<key>:header:append","type":"BbTableHeaderAffixSlotProps<Item>","description":"Content after one column's header, keeping the sort button; beats `header:append` (they never stack).","dynamic":true},{"name":"<key>:first","type":"BbTableEdgeCellSlotProps<Item>","description":"One column's cell in a row before the data rows; any such slot creates the row, aligned with the columns. Only over rows.","dynamic":true},{"name":"<key>:last","type":"BbTableEdgeCellSlotProps<Item>","description":"One column's cell in a row after the data rows (a totals row); any such slot creates that row, aligned like `<key>:first`.","dynamic":true}],"exposed":[],"models":[{"name":"expandedItems","type":"any[] | undefined"},{"name":"highlighted","type":"any"},{"name":"modelValue","type":"any"},{"name":"order","type":"string[] | undefined"},{"name":"selectAll","type":"boolean | undefined"},{"name":"sort","type":"BbTableSortEntry[] | undefined"},{"name":"unselectedItems","type":"any[] | undefined"}],"cssProps":[{"name":"--min-w","value":"0px","selector":".bb-table"},{"name":"--bg","value":"var(--bb-panel)","selector":".bb-table","description":"The table's surface colour. Cells are transparent at rest so the row can tint them, but anything that sticks over scrolled content — the stuck head band and pinned (`column.fixed`) cells — must be opaque, and paints this. Set it on the table (`.my-table { --bg: … }`) when the table sits on a surface that is not `--bb-panel`; a nested table re-declares its own."},{"name":"--row-hover","value":"var(--bb-surface-hover)","selector":".bb-table","description":"The row hover's fill: the faint wash by default. Retint it or switch it off here (`transparent`), never with a `hover:bg-*` on the row: a pinned cell can only inherit the row's colour, and a transparent one would let the scrolled cells show through it. This one knob reaches the row and its pinned cells alike."},{"name":"--px","value":"12px","selector":".bb-table"},{"name":"--cell-h","value":"36px","selector":".bb-table"},{"name":"--py","value":"6px","selector":".bb-table"},{"name":"--actions-spacing","value":"8px","selector":".bb-table"},{"name":"--offset-start","value":"0px","selector":".bb-table","description":"Raw structural edge offset measured by the component (the parent's select/actions track width). Default 0 keeps every calc at its base."},{"name":"--offset-end","value":"0px","selector":".bb-table"},{"name":"--ig","value":"0px","selector":".bb-table","description":"Nested indent locals (see `indentAnchor` in BbTable.vue): the step lands on ONE cell's leading padding. Reset on every table so a parent's step never inherits into a child's cells; the modifier picks the anchor."},{"name":"--is","value":"0px","selector":".bb-table"},{"name":"--ic","value":"0px","selector":".bb-table"},{"name":"--depth","value":"0","selector":".bb-table","description":"Nesting depth (0 at the root) and the parent-region floors of the own structural tracks, both set inline by the component on nested tables; declared here so a parent's values never inherit into a child."},{"name":"--min-g","value":"0px","selector":".bb-table"},{"name":"--min-s","value":"0px","selector":".bb-table"},{"name":"--min-a","value":"0px","selector":".bb-table"},{"name":"--offset-internal-start","value":"var(--offset-start)","selector":".bb-table","description":"Routing of that offset. By default it is \"internal\": added to the first/last cell padding and folded into the first/last column width. Swap internal↔external (set internal to 0 and external to the raw offset) to pad the whole table instead of the edge cells."},{"name":"--offset-internal-end","value":"var(--offset-end)","selector":".bb-table"},{"name":"--offset-external-start","value":"0px","selector":".bb-table"},{"name":"--offset-external-end","value":"0px","selector":".bb-table"},{"name":"--pin-l","value":"0px","selector":".bb-table","description":"Re-declared on every table: a nested table must not inherit its parent's fade or pinned edge."},{"name":"--pin-r","value":"0px","selector":".bb-table"},{"name":"--fade-l","value":"0px","selector":".bb-table"},{"name":"--fade-r","value":"0px","selector":".bb-table"},{"name":"--fade-a-l","value":"1","selector":".bb-table"},{"name":"--fade-a-r","value":"1","selector":".bb-table"},{"name":"--cue-l","value":"0px","selector":".bb-table"},{"name":"--cue-r","value":"0px","selector":".bb-table"},{"name":"--cue-w","value":"8px","selector":".bb-table"},{"name":"--cue","value":"rgb(0 0 0 / 0.1)","selector":".bb-table"},{"name":"--row-bg","value":"var(--bb-panel)","selector":".bb-table__row--lifted"}],"pt":{"parts":[{"name":"root","description":"The table's container."},{"name":"caption","description":"The visible caption (`caption` with `displayCaption`)."},{"name":"table","description":"The grid root: `role=\"table\"`, or `role=\"grid\"` with `keyboardNavigation` (`role=\"treegrid\"` with an `#expand` slot too)."},{"name":"head","description":"The header row group."},{"name":"headerRow","description":"The header row."},{"name":"cellColumnHeader","description":"Every column header cell (`role=\"columnheader\"`), the select and actions headers included — a broadcast resolved per header. Not a `<th>`: the grid is `div`s with ARIA roles."},{"name":"sortIcon","description":"A sortable column's sort arrow, resolved per header."},{"name":"body","description":"The body row group."},{"name":"row","description":"Every DATA row — a broadcast resolved per row. The skeleton is not a part, and an expand row is styled through `expand`. Also takes a per-item function, called with the row's raw item, once per rendered row: keep it cheap."},{"name":"cell","description":"Every data cell, the select and actions cells included — a broadcast resolved with its row's states (`role=\"cell\"`, `gridcell` under `keyboardNavigation`) — and the cells of the `firstRow` / `lastRow`, with no row state. Takes no function: use `tdClass` for a per-cell hook."},{"name":"expand","description":"The cell under an open row that holds the `#expand` slot and spans every column — resolved with its data row's `selected`, `highlighted` and `expanded` (always on: the cell exists only while its row is open). Not a `cell`, so `pt:cell` never reaches it: a rule taken off the cells (`pt:cell=\"border-b-0\"`) needs `pt:expand=\"border-b-0\"` too. Also takes a per-item function, called with the open row's raw item."},{"name":"firstRow","description":"The row of `#<key>:first` cells, before the data rows."},{"name":"lastRow","description":"The row of `#<key>:last` cells, after the data rows (a totals row: `pt:lastRow=\"font-semibold\"`)."},{"name":"selectIcon","description":"The selection glyph: each row's checkbox (radio with single selection) and the select-all checkbox — resolved per node. Not rendered when the `select` / `select:header` slots replace them."},{"name":"dragIcon","description":"The move glyph on the chip that follows a column drag (`reorderable`)."},{"name":"dragHandle","description":"Each row's drag handle button (`reorderable-rows`), resolved with its row's states. A class list or an object; no per-row function."},{"name":"foot","description":"The footer row group (the `tfoot` slot's container)."}],"states":[{"name":"value","description":"Per node, on a DATA `cell`: the formatter / placeholder pipeline produced a value (not `null` / `undefined`), slot cells included (`bb-table__cell--value`). Not on the select, drag or actions cells."},{"name":"placeholder","description":"Per node, on a DATA `cell`: the value was empty and the column's `placeholder` shows instead, whatever its text (`bb-table__cell--placeholder`). A cell with an empty value and no `placeholder` has neither state."},{"name":"empty","description":"Component-wide: there are no rows (`bb-table--empty`)."},{"name":"sorted","description":"Per node, on `cellColumnHeader` and `sortIcon`: the column is sorted, either direction (`bb-table__cell-column-header--sorted`)."},{"name":"sortedDesc","description":"Per node, on `cellColumnHeader` and `sortIcon`: sorted descending (`bb-table__cell-column-header--sorted-desc`). Ascending is `sorted` alone."},{"name":"selected","description":"Per node, on `row`, its cells, its `dragHandle`, its `expand` and its `selectIcon`: a checked row; on the select-all glyph, every row is selected."},{"name":"indeterminate","description":"Per node, on the select-all `selectIcon`: some rows are selected, not all."},{"name":"disabled","description":"Per node, on `row`, its cells, its `dragHandle` and its `selectIcon`: the row cannot be SELECTED — `selectable` rejects it, or the table is `disabled` (`bb-table__row--disabled`). It still clicks, highlights and expands. Never on a table without selection. The select-all glyph takes it from the table's `disabled`."},{"name":"expanded","description":"Per node, on `row`, its cells, its `dragHandle` and its `expand`: the row's expand row is open (`bb-table__row--expanded`)."},{"name":"highlighted","description":"Per node, on `row`, its cells, its `dragHandle` and its `expand`: the highlighted row."},{"name":"loading","description":"Component-wide: the table is `loading`."}]},"tree":{"bindings":[{"part":"caption","target":"div.bb-table__caption"},{"part":"dragIcon","target":"BbIcon"},{"part":"table","target":"div"},{"part":"head","target":"div.bb-table__head"},{"part":"headerRow","target":"div.bb-table__header-row"},{"part":"cellColumnHeader","target":"div.bb-table__cell-column-header"},{"part":"selectIcon","target":"BbBaseCheckboxIcon"},{"part":"sortIcon","target":"BbIcon"},{"part":"body","target":"div.bb-table__body"},{"part":"foot","target":"div.bb-table__foot"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"BbBaseCheckboxIcon","kind":"public"},{"name":"BbBaseButton","kind":"public"}]},"css":{"classes":{"bb-ruler-line":[""],"bb-sr-only":[""],"bb-table":["","--align-*","--compact","--empty","--fixed","--fixed-header","--indent-*","--inherit-widths","--loading","--overflow-left","--overflow-right","--pinned-left","--pinned-right","--reorderable","--resizable","--row-dragging","--row-grabbing","--rows-reorderable","--selectable","--virtual","--virtual-flat","__body","__caption","__cell","__cell--*","__cell--actions","__cell--clip","__cell--edge-end","__cell--edge-start","__cell--fluid","__cell--line","__cell--nowrap","__cell--outlier","__cell--placeholder","__cell--resized","__cell--row-drag","__cell--select","__cell--token","__cell--value","__cell--word","__cell-column-header","__cell-column-header--*","__cell-column-header--actions","__cell-column-header--clip","__cell-column-header--dragging","__cell-column-header--edge-end","__cell-column-header--edge-start","__cell-column-header--floored","__cell-column-header--locked","__cell-column-header--resizing","__cell-column-header--row-drag","__cell-column-header--select","__cell-column-header--sortable","__cell-column-header--sorted","__cell-column-header--sorted-desc","__cell-column-header--wrap","__drag-icon","__edge-row","__edge-row--*","__edge-row--first","__edge-row--fixed","__edge-row--last","__foot","__head","__head--dragging","__head--resizing","__header-row","__reorder-status","__row","__row--disabled","__row--drag-source","__row--expanded","__row--highlightable","__row--highlighted","__row--lifted","__row-handle","__row-handle-icon","__row-reorder-status","__select-icon","__sort-icon","__table","__table--hold-*"],"bb-table-check":["","__label","__label--disabled","__label-text"],"bb-table-column-drag":[""],"bb-table-column-ghost":[""],"bb-table-empty":["__cell","__content","__row","__text"],"bb-table-expand":["__cell","__row","__row--highlighted"],"bb-table-header":["__content","__resizer"],"bb-table-loading":["__text"],"bb-table-placeholder":["__row","__row--pending"],"bb-table-radio":["","__label","__label--disabled","__label-text"],"bb-table-resizing":[""],"bb-table-row-drag":[""],"bb-table-row-ghost":[""],"bb-table-ruler":[""],"bb-table-skeleton":["__avatar","__avatar-text","__badge","__cell","__cell--*","__cell--actions","__cell--row-drag","__cell--select","__cell-content","__image","__line","__placeholder","__row"],"bb-table-sort":["","--asc","--desc"],"bb-table-spacer":["__row"]},"locals":["--actions-spacing","--arrow-preview","--bg","--cell-h","--color-gray-200","--cue","--cue-l","--cue-r","--cue-w","--depth","--drop","--fade-a-l","--fade-a-r","--fade-l","--fade-r","--floor","--ic","--ig","--indent","--is","--line","--min-a","--min-g","--min-s","--min-w","--offset-end","--offset-external-end","--offset-external-start","--offset-internal-end","--offset-internal-start","--offset-start","--pin-l","--pin-r","--placeholder-bars","--px","--py","--ring-t","--row-bg","--row-h","--row-hover","--stuck-head-h","--stuck-outer","--stuck-top","--ts","--virtual-row-tracks","--vw"],"surface":{"stable":[{"class":"bb-table","part":"root","reads":["--offset-end","--offset-external-end","--offset-external-start","--offset-start"]},{"class":"bb-table__caption","tag":"div","part":"caption"},{"class":"bb-table__table","part":"table","reads":["--min-w"]},{"class":"bb-table__head","tag":"div","part":"head","reads":["--bg","--stuck-top"]},{"class":"bb-table__header-row","tag":"div","part":"headerRow"},{"class":"bb-table__cell-column-header","tag":"div","part":"cellColumnHeader","reads":["--px","--py"]},{"class":"bb-table__sort-icon","tag":"BbIcon","part":"sortIcon","reads":["--arrow-preview"]},{"class":"bb-table__body","tag":"div","part":"body","reads":["--stuck-head-h","--stuck-outer"]},{"class":"bb-table__row","part":"row","reads":["--row-bg","--row-hover"]},{"class":"bb-table__cell","part":"cell"},{"class":"bb-table__select-icon","tag":"BbBaseCheckboxIcon","part":"selectIcon"},{"class":"bb-table__drag-icon","tag":"BbIcon","part":"dragIcon"},{"class":"bb-table__foot","tag":"div","part":"foot"},{"class":"bb-table__cell--value","state":"value"},{"class":"bb-table__cell--placeholder","state":"placeholder"},{"class":"bb-table--empty","state":"empty"},{"class":"bb-table__cell-column-header--sorted","tag":"div","state":"sorted"},{"class":"bb-table__cell-column-header--sorted-desc","tag":"div","state":"sortedDesc"},{"class":"bb-table__row--disabled","state":"disabled"},{"class":"bb-table__row--expanded","state":"expanded"},{"class":"bb-table__row--highlighted","state":"highlighted","reads":["--row-bg"]},{"class":"bb-table--loading","state":"loading"}],"internal":[{"class":"bb-ruler-line"},{"class":"bb-sr-only","tag":"legend|span"},{"class":"bb-table--compact"},{"class":"bb-table--fixed"},{"class":"bb-table--fixed-header","reads":["--stuck-top"]},{"class":"bb-table--inherit-widths"},{"class":"bb-table--overflow-left","reads":["--cue-w","--fade-a-l","--fade-a-r","--fade-l","--fade-r","--pin-l","--pin-r"]},{"class":"bb-table--overflow-right","reads":["--cue-w","--fade-a-l","--fade-a-r","--fade-l","--fade-r","--pin-l","--pin-r"]},{"class":"bb-table--pinned-left","reads":["--cue-w","--fade-a-l","--fade-a-r","--fade-l","--fade-r","--pin-l","--pin-r"]},{"class":"bb-table--pinned-right","reads":["--cue-w","--fade-a-l","--fade-a-r","--fade-l","--fade-r","--pin-l","--pin-r"]},{"class":"bb-table--reorderable"},{"class":"bb-table--resizable"},{"class":"bb-table--row-dragging"},{"class":"bb-table--row-grabbing"},{"class":"bb-table--rows-reorderable"},{"class":"bb-table--selectable"},{"class":"bb-table--virtual"},{"class":"bb-table--virtual-flat"},{"class":"bb-table-check","tag":"span"},{"class":"bb-table-check__label","tag":"label","reads":["--cell-h","--drop","--line","--px"]},{"class":"bb-table-check__label--disabled","tag":"label"},{"class":"bb-table-check__label-text","tag":"span"},{"class":"bb-table-column-drag"},{"class":"bb-table-column-ghost","tag":"div"},{"class":"bb-table-empty__cell","tag":"div","reads":["--px","--py"]},{"class":"bb-table-empty__content","tag":"div","reads":["--px","--vw"]},{"class":"bb-table-empty__row","tag":"div"},{"class":"bb-table-empty__text","tag":"span"},{"class":"bb-table-expand__cell"},{"class":"bb-table-expand__row"},{"class":"bb-table-expand__row--highlighted"},{"class":"bb-table-header__content","tag":"span"},{"class":"bb-table-header__resizer","tag":"div"},{"class":"bb-table-loading__text","tag":"span"},{"class":"bb-table-placeholder__row","tag":"div","reads":["--bg","--placeholder-bars","--row-h"]},{"class":"bb-table-placeholder__row--pending","tag":"div","reads":["--bg","--placeholder-bars","--row-h"]},{"class":"bb-table-radio"},{"class":"bb-table-radio__label","reads":["--cell-h","--drop","--line","--px"]},{"class":"bb-table-radio__label--disabled"},{"class":"bb-table-radio__label-text","tag":"span"},{"class":"bb-table-resizing"},{"class":"bb-table-row-drag"},{"class":"bb-table-row-ghost"},{"class":"bb-table-ruler"},{"class":"bb-table-skeleton__avatar","tag":"div","reads":["--cell-h","--py"]},{"class":"bb-table-skeleton__avatar-text","tag":"div","reads":["--cell-h","--py"]},{"class":"bb-table-skeleton__badge","tag":"div"},{"class":"bb-table-skeleton__cell","tag":"div","reads":["--cell-h","--px","--py"]},{"class":"bb-table-skeleton__cell--actions","tag":"div"},{"class":"bb-table-skeleton__cell--row-drag","tag":"div","reads":["--px"]},{"class":"bb-table-skeleton__cell--select","tag":"div"},{"class":"bb-table-skeleton__cell-content","tag":"div","reads":["--cell-h","--py"]},{"class":"bb-table-skeleton__image","tag":"div","reads":["--cell-h","--py"]},{"class":"bb-table-skeleton__line","tag":"div"},{"class":"bb-table-skeleton__placeholder","tag":"div"},{"class":"bb-table-skeleton__row","tag":"div"},{"class":"bb-table-sort","tag":"BbBaseButton","reads":["--ring-t"]},{"class":"bb-table-sort--asc","tag":"BbBaseButton"},{"class":"bb-table-sort--desc","tag":"BbBaseButton"},{"class":"bb-table-spacer__row","tag":"div","reads":["--bg","--placeholder-bars","--row-h"]},{"class":"bb-table__cell--actions"},{"class":"bb-table__cell--clip"},{"class":"bb-table__cell--edge-end","reads":["--offset-internal-end","--px"]},{"class":"bb-table__cell--edge-start","reads":["--ic","--offset-internal-start","--px","--ts"]},{"class":"bb-table__cell--fluid"},{"class":"bb-table__cell--line"},{"class":"bb-table__cell--nowrap"},{"class":"bb-table__cell--outlier"},{"class":"bb-table__cell--resized"},{"class":"bb-table__cell--row-drag","reads":["--ig","--px"]},{"class":"bb-table__cell--select","reads":["--is","--px"]},{"class":"bb-table__cell--token"},{"class":"bb-table__cell--word"},{"class":"bb-table__cell-column-header--actions","tag":"div","reads":["--min-a"]},{"class":"bb-table__cell-column-header--clip","tag":"div"},{"class":"bb-table__cell-column-header--dragging","tag":"div"},{"class":"bb-table__cell-column-header--edge-end","tag":"div","reads":["--offset-internal-end","--px"]},{"class":"bb-table__cell-column-header--edge-start","tag":"div","reads":["--ic","--offset-internal-start","--px","--ts"]},{"class":"bb-table__cell-column-header--floored","tag":"div","reads":["--floor"]},{"class":"bb-table__cell-column-header--locked","tag":"div"},{"class":"bb-table__cell-column-header--resizing","tag":"div"},{"class":"bb-table__cell-column-header--row-drag","tag":"div","reads":["--ig","--min-g","--px"]},{"class":"bb-table__cell-column-header--select","tag":"div","reads":["--is","--min-s","--px"]},{"class":"bb-table__cell-column-header--sortable","tag":"div"},{"class":"bb-table__cell-column-header--wrap","tag":"div"},{"class":"bb-table__edge-row"},{"class":"bb-table__edge-row--first","reads":["--stuck-top"]},{"class":"bb-table__edge-row--fixed","reads":["--bg","--stuck-top"]},{"class":"bb-table__edge-row--last"},{"class":"bb-table__head--dragging","tag":"div"},{"class":"bb-table__head--resizing","tag":"div"},{"class":"bb-table__reorder-status","tag":"span"},{"class":"bb-table__row--drag-source"},{"class":"bb-table__row--highlightable"},{"class":"bb-table__row--lifted","reads":["--row-bg"]},{"class":"bb-table__row-handle"},{"class":"bb-table__row-handle-icon"},{"class":"bb-table__row-reorder-status","tag":"span"}],"unaligned":{"parts":["expand","firstRow","lastRow","dragHandle"],"states":["selected","indeterminate"]}}},"attrTargets":["div","fieldset"],"config":"compact*","removed":[{"name":"allowSelectAll","new":"disableSelectAll","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"invert"}},{"name":"enabledWhileLoading","new":"interactiveWhileLoading","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"rename"}},{"name":"actions","new":null,"since":"3.0.0-beta.21","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"remove"}},{"name":"fixedColumns","new":null,"since":"3.0.0-beta.21","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"manual"}},{"name":"noDataText","new":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"no-data","new":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:select","new":"select:header","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:actions","new":"actions:header","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:<x>:prepend","new":"<x>:header:prepend","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:<x>:append","new":"<x>:header:append","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:<x>","new":"<x>:header","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"allowSelectAll","to":"disableSelectAll","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-table.md","fix":{"kind":"invert"}},{"from":"enabledWhileLoading","to":"interactiveWhileLoading","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-table.md","fix":{"kind":"rename"}},{"from":"noDataText","to":"emptyText","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"no-data","to":"empty","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"header:select","to":"select:header","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","fix":{"kind":"rename"}},{"from":"header:actions","to":"actions:header","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","fix":{"kind":"rename"}},{"from":"header:<x>:prepend","to":"<x>:header:prepend","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","fix":{"kind":"rename"}},{"from":"header:<x>:append","to":"<x>:header:append","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","fix":{"kind":"rename"}},{"from":"header:<x>","to":"<x>:header","surface":"slot","migration":"ai/guides/migration/components/bb-table.md","fix":{"kind":"rename"}}]},
|
|
422
|
-
{"name":"BbTabs","group":"Navigation","description":"Switches between views of one page from a row of tabs. For the tabs and their panels in different places of the layout, use BbTabsRoot with BbTabsList and BbTabsPanels.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbTabs.md","source":"ai/source/BbTabs.md","props":[{"name":"block","type":"boolean | undefined","required":false,"default":"undefined","description":"Displays the component as full width."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Adds a CSS class that applies a compact style to the component."},{"name":"direction","type":"\"horizontal\" | \"vertical\" | undefined","required":false,"default":"\"horizontal\"","description":"Direction of the tabs component."},{"name":"disableAnimateX","type":"boolean | undefined","required":false,"default":"false","description":"Disables the horizontal slide transition between tab panels (enabled by default)."},{"name":"disableAnimateY","type":"boolean | undefined","required":false,"default":"false","description":"Disables the smooth height animation when switching between tab panels (enabled by default)."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component"},{"name":"eager","type":"boolean | undefined","required":false,"default":"false","description":"Renders every tab's panel at mount and keeps it mounted, hidden while inactive, instead of only the active one. One tab alone: its item's `eager`."},{"name":"headers","type":"Record<string, string> | undefined","required":false,"description":"Additional HTTP headers forwarded to Inertia when navigation is triggered. Only meaningful in an Inertia context."},{"name":"id","type":"string | undefined","required":false,"description":"The root's `id`, and the key `useBbTabs(id)` pairs by. Generated when omitted."},{"name":"items","type":"BbTabsItem<K>[]","required":true,"description":"Array of items that define the tabs in the component."},{"name":"manualActivation","type":"boolean | undefined","required":false,"default":"`undefined` (on when `server` is set on the strip or an item)","description":"Arrow keys (and Home / End) only move focus; Enter or Space opens the tab (APG manual activation, Radix `activationMode=\"manual\"`). Unset: on when the strip or an item has `server` (else every arrow press is a visit), off elsewhere. Links (link mode) have no activation."},{"name":"modelValue","type":"K | null | undefined","required":false,"description":"The active tab's `value`. Used by v-model. In link mode (items with `href` / `to`) the page's current one, painted with `aria-current=\"page\"` and never emitted back."},{"name":"navigation","type":"boolean | undefined","required":false,"default":"false","description":"Synchronizes the current tab with the URL query parameter. Ignored in link mode (items with `href` / `to`): a link goes to its own page.\n\nPair it with `replace` unless a tab is genuinely a separate destination — see the `replace` prop."},{"name":"onBefore","type":"(() => boolean | void) | undefined","required":false,"description":"Inertia lifecycle hook — fired just before the request is sent. Return `false` to cancel the visit."},{"name":"onCancel","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the request is cancelled."},{"name":"onError","type":"((errors: Record<string, string>) => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the server returns validation errors."},{"name":"onFinish","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired after the visit finishes (success or error)."},{"name":"only","type":"string[] | undefined","required":false,"description":"Limits which server-side props are refreshed during a partial Inertia reload. Only meaningful in an Inertia context."},{"name":"onProgress","type":"((progress: { percentage: number | undefined; }) => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when upload/download progress is available."},{"name":"onStart","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the request starts."},{"name":"onSuccess","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the visit completes successfully."},{"name":"preserveScroll","type":"boolean | ((props: Record<string, unknown>) => boolean) | undefined","required":false,"description":"Controls whether Inertia preserves the scroll position after navigation. Only meaningful in an Inertia context."},{"name":"preserveState","type":"boolean | ((props: Record<string, unknown>) => boolean) | null | undefined","required":false,"description":"Controls whether Inertia preserves the current component state after navigation. Only meaningful in an Inertia context."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"wrapper\", \"list\", \"item\", \"indicator\", \"panels\", \"panel\"]; readonly states: readonly [\"disabled\", \"active\"]; readonly wide: readonly [\"disabled\"]; readonly node: { readonly item: readonly [\"active\"]; readonly panel: readonly [\"active\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"none\"]; readonly option: \"tabsVariants\"; readonly parts: readonly [\"wrapper\", \"list\", \"item\", \"indicator\"]; }; }> & { list?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:active\"?: PtValue | undefined; indicator?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; wrapper?: PtValue | undefined; panels?: PtValue | undefined; \"wrapper:disabled\"?: PtValue | undefined; \"panels:disabled\"?: PtValue | undefined; \"panel:active\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<BbTabsItem<K>, BbTabsPtState, \"line\" | \"none\" | \"pill\", { readonly item: BbTabsItem<K>; }> | undefined; } & { \"list:line\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; \"list:none\"?: PtValue | undefined; \"indicator:none\"?: PtValue | undefined; \"wrapper:line\"?: PtValue | undefined; \"wrapper:none\"?: PtValue | undefined; \"wrapper:pill\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:none","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<BbTabsItem<K>, BbTabsPtState, \"line\" | \"none\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:item:active","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:none","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:none","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:active","type":"PtValue | undefined","required":false},{"name":"pt:panel:disabled","type":"PtValue | undefined","required":false},{"name":"pt:panels","type":"PtValue | undefined","required":false},{"name":"pt:panels:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:wrapper","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:disabled","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:line","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:none","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:pill","type":"PtValue | undefined","required":false},{"name":"queryKey","type":"string | undefined","required":false,"default":"\"tab\"","description":"Defines the query key used for URL-based navigation."},{"name":"replace","type":"boolean | undefined","required":false,"default":"false","description":"Replaces the history entry instead of pushing one when the tab changes. Recommended with `navigation`: the query keeps the tab while Back leaves the page. Leave it off when a tab is a destination of its own (a `server` visit)."},{"name":"server","type":"boolean | undefined","required":false,"default":"false","description":"When true and in an Inertia context, triggers a real server-side Inertia visit instead of a client-only `history.pushState`."},{"name":"variant","type":"keyof TabsVariantRegistry | undefined","required":false,"default":"\"pill\"","values":["none","pill","line"],"description":"Look of the tab strip: `pill` (segmented, a sliding raised pill), `line` (a baseline with a sliding underline) or `none` (no chrome). Each is a preset of the strip's tokens; register more with the vite plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`."}],"events":[{"name":"update:modelValue","signature":"(value: K): void","description":"Emitted when the selected tab changes. Used by `v-model`."}],"slots":[{"name":"label","type":"BbTabsSlotProps<K>","fields":["current: K | null","currentIndex: number","disabled: boolean","isFirst: boolean","isLast: boolean","selected: boolean","label: string","value: K","goTo: (target: \"next\" | \"first\" | \"last\" | \"previous\") => void"],"description":"Fallback slot used for all tab labels when no per-tab `<value>:label` slot is provided."},{"name":"wrapper:append","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered after the scrollable tab label list, at its end (e.g. a scroll-to-end arrow)."},{"name":"wrapper:prepend","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered before the scrollable tab label list, at its start (e.g. a scroll-to-start arrow)."},{"name":"<value>","type":"BbTabsSlotProps<K>","description":"One tab's content panel, by the tab's `value` through `slotKey`; no fallback (an empty panel). With no panel slot at all, no panel renders and no tab has `aria-controls`.","dynamic":true},{"name":"<value>:label","type":"BbTabsSlotProps<K>","description":"One tab trigger's label, by the tab's `value` through `slotKey`; beats `label`, which beats the item's `label` text.","dynamic":true}],"exposed":[],"models":[{"name":"modelValue","type":"K | null | undefined"}],"cssProps":[{"name":"--gap","value":"8px","selector":".bb-tabs"},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-tabs-list","description":"The strip's edge line: a baseline under the triggers (beside them when vertical), --bb-border-w thick, painted inside the strip. `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-tabs-list","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-tabs-list","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-tabs-list","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-tabs-list","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-tabs-list","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-tabs-list","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-tabs-list","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-tabs-list","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-tabs-list","description":"inactive trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"active trigger label"},{"name":"--active-fw","value":"500","selector":".bb-tabs-list","description":"active trigger label weight (inactive labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-tabs-list","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-tabs-list","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-tabs-list","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (side edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-tabs-list","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-tabs-list","description":"The theme's resting lift, composed UNDER the indicator's own shadow. Two names because they are two decisions: `--elev` is what the language lifts every plate by, `--indicator-shadow` is this component's own."},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-tabs-list","description":"Indicator lift, painted on top of --elev — the theme's selected-segment lift, so it holds in dark (a literal black 6% vanished there)."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs-list__item"},{"name":"--transition-duration","value":"var(--bb-transition-slow)","selector":".bb-tabs-panels"},{"name":"--gap","value":"30px","selector":".bb-tabs-panels"},{"name":"--max-w","value":"initial","selector":".bb-tabs-panels","description":"The strip-width knob must not percolate into panel content: nested tabs rendered inside a panel start with a clean slate"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs__panel"}],"pt":{"parts":[{"name":"root","description":"The tabs' outer element, around the strip and the panels."},{"name":"wrapper","description":"The strip's outer element: the `wrapper:prepend` slot, the triggers, the `wrapper:append` slot. `BbTabsList`'s root in a split layout."},{"name":"list","description":"The `role=\"tablist\"` row the triggers sit in (a plain list of links in link mode) — it scrolls when they overflow, and the indicator slides inside it."},{"name":"item","description":"One tab trigger (a link in link mode) — a broadcast resolved per tab with its own `active` / `disabled`. Also takes a per-item function, called with the tab's descriptor."},{"name":"indicator","description":"The marker sliding under the active trigger: the pill, or the bar of the `line` variant. Its position and size are measured."},{"name":"panels","description":"The element around the panels. `BbTabsPanels`'s root in a split layout."},{"name":"panel","description":"One tab panel — a broadcast; `panel:active` is the panel on show. Takes no function."}],"states":[{"name":"disabled","description":"On every part while the whole tabs is `disabled`; per node on `item`: a tab that is disabled."},{"name":"active","description":"Per node, on `item` and `panel`: the selected tab's trigger and its shown panel."},{"name":"line","description":"On the strip's parts: `variant: 'line'`. Below the real states, like every variant."},{"name":"none","description":"On the strip's parts: `variant: 'none'`. Below the real states, like every variant."},{"name":"pill","description":"On the strip's parts: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"forwards":[{"to":"BbTabsList","mapping":"passthrough.forwardInstance(LIST_PARTS, LIST_STATES)"},{"to":"BbTabsPanels","mapping":"passthrough.forwardInstance(PANELS_PARTS)"}],"nodes":[{"name":"BbTabsList","kind":"public"},{"name":"BbTabsPanels","kind":"public"}]},"css":{"classes":{"bb-tabs":["","--*","--block","--compact","--disabled","--no-panels","--vertical","__panel","__panel--shown","__trigger-content","__trigger-label"]},"locals":["--active-fg","--active-fw","--color-gray-200","--elev","--eq","--fs","--gap","--height","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--max-w","--p","--ring-t","--top","--transition-duration","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-tabs","tag":"div","part":"root","reads":["--gap"]},{"class":"bb-tabs__panel","tag":"section","part":"panel","reads":["--ring-t"]},{"class":"bb-tabs--disabled","tag":"div","state":"disabled"},{"class":"bb-tabs--line","state":"line","pattern":true},{"class":"bb-tabs--none","state":"none","pattern":true},{"class":"bb-tabs--pill","state":"pill","pattern":true}],"internal":[{"class":"bb-tabs--block","tag":"div"},{"class":"bb-tabs--compact","tag":"div"},{"class":"bb-tabs--no-panels","tag":"div"},{"class":"bb-tabs--vertical","reads":["--gap"]},{"class":"bb-tabs__panel--shown","tag":"section"},{"class":"bb-tabs__trigger-content","tag":"span"},{"class":"bb-tabs__trigger-label","tag":"span"}],"unaligned":{"parts":["wrapper","list","item","indicator","panels"],"states":["active"]}}},"config":"compact*, block*, variants","removed":[{"name":"animateX","new":"disableAnimateX","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"invert"}},{"name":"animateY","new":"disableAnimateY","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"invert"}},{"name":"querykey","new":"queryKey","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:prepend","new":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:append","new":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"label:<x>","new":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"items[].key","new":"items[].value","surface":"item","hint":"a tab's identity: what `v-model` holds and its `#<value>` / `#<value>:label` slots; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollLeft","new":"wrapper:*.canScrollStart","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollRight","new":"wrapper:*.canScrollEnd","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('left')","new":"wrapper:*.scroll('start')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('right')","new":"wrapper:*.scroll('end')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"animateX","to":"disableAnimateX","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"invert"}},{"from":"animateY","to":"disableAnimateY","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"invert"}},{"from":"querykey","to":"queryKey","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"rename"}},{"from":"header:prepend","to":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"header:append","to":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"label:<x>","to":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"rename"}}]},
|
|
423
|
-
{"name":"BbTabsList","group":"Navigation","description":"The trigger strip of a split BbTabsRoot layout (renders the tab buttons only).","referenceOnly":false,"hasGuide":false,"contract":"ai/BbTabsList.md","source":"ai/source/BbTabsList.md","props":[{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"list\", \"item\", \"indicator\"]; readonly states: readonly [\"disabled\", \"active\"]; readonly wide: readonly [\"disabled\"]; readonly node: { readonly item: readonly [\"active\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"none\"]; readonly option: \"tabsVariants\"; }; }> & { list?: PtValue | undefined; root?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:active\"?: PtValue | undefined; indicator?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<BbTabsItem<string>, BbTabsPtState, \"line\" | \"none\" | \"pill\", { readonly item: BbTabsItem<string>; }> | undefined; } & { \"list:line\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"root:line\"?: PtValue | undefined; \"root:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; \"list:none\"?: PtValue | undefined; \"indicator:none\"?: PtValue | undefined; \"root:none\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:none","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<BbTabsItem<string>, BbTabsPtState, \"line\" | \"none\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:item:active","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:none","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:none","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:line","type":"PtValue | undefined","required":false},{"name":"pt:root:none","type":"PtValue | undefined","required":false},{"name":"pt:root:pill","type":"PtValue | undefined","required":false},{"name":"variant","type":"keyof TabsVariantRegistry | undefined","required":false,"values":["none","pill","line"],"description":"Look of this strip — the `variant` of the owning `BbTabs` / `BbTabsRoot` unless set here. See `BbTabsProps.variant` for the values."}],"events":[],"slots":[{"name":"label","type":"BbTabsSlotProps<string>","fields":["current: K | null","currentIndex: number","disabled: boolean","isFirst: boolean","isLast: boolean","selected: boolean","label: string","value: K","goTo: (target: \"next\" | \"first\" | \"last\" | \"previous\") => void"],"description":"Fallback slot used for all tab labels when no per-tab `<value>:label` slot is provided."},{"name":"wrapper:append","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered after the scrollable tab label list, at its end (e.g. a scroll-to-end arrow)."},{"name":"wrapper:prepend","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered before the scrollable tab label list, at its start (e.g. a scroll-to-start arrow)."},{"name":"<value>:label","type":"BbTabsSlotProps<K>","description":"One tab trigger's label, by the tab's `value` through `slotKey`; beats `label`, which beats the item's `label` text.","dynamic":true}],"exposed":[],"models":[],"cssProps":[{"name":"--gap","value":"8px","selector":".bb-tabs"},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-tabs-list","description":"The strip's edge line: a baseline under the triggers (beside them when vertical), --bb-border-w thick, painted inside the strip. `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-tabs-list","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-tabs-list","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-tabs-list","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-tabs-list","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-tabs-list","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-tabs-list","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-tabs-list","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-tabs-list","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-tabs-list","description":"inactive trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"active trigger label"},{"name":"--active-fw","value":"500","selector":".bb-tabs-list","description":"active trigger label weight (inactive labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-tabs-list","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-tabs-list","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-tabs-list","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (side edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-tabs-list","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-tabs-list","description":"The theme's resting lift, composed UNDER the indicator's own shadow. Two names because they are two decisions: `--elev` is what the language lifts every plate by, `--indicator-shadow` is this component's own."},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-tabs-list","description":"Indicator lift, painted on top of --elev — the theme's selected-segment lift, so it holds in dark (a literal black 6% vanished there)."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs-list__item"},{"name":"--transition-duration","value":"var(--bb-transition-slow)","selector":".bb-tabs-panels"},{"name":"--gap","value":"30px","selector":".bb-tabs-panels"},{"name":"--max-w","value":"initial","selector":".bb-tabs-panels","description":"The strip-width knob must not percolate into panel content: nested tabs rendered inside a panel start with a clean slate"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs__panel"}],"pt":{"parts":[{"name":"root","description":"The strip's outer element: the `wrapper:prepend` slot, the triggers, the `wrapper:append` slot (`BbTabs`'s `wrapper`)."},{"name":"list","description":"The `role=\"tablist\"` row the triggers sit in (a plain list of links in link mode)."},{"name":"item","description":"One tab trigger (a link in link mode), per tab with its own `active` / `disabled`. Also takes a per-item function, called with the tab's descriptor."},{"name":"indicator","description":"The marker sliding under the active trigger."}],"states":[{"name":"disabled","description":"On every part while the whole tabs is `disabled`; per node on `item`: a tab that is disabled."},{"name":"active","description":"Per node, on `item` and `panel`: the selected tab's trigger and its shown panel."},{"name":"line","description":"On the strip's parts: `variant: 'line'`. Below the real states, like every variant."},{"name":"none","description":"On the strip's parts: `variant: 'none'`. Below the real states, like every variant."},{"name":"pill","description":"On the strip's parts: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"bindings":[{"part":"list","target":"ul.bb-tabs-list__list"},{"part":"indicator","target":"li.bb-tabs-list__indicator"},{"part":"item","target":"BbBaseButton"}],"nodes":[{"name":"BbBaseButton","kind":"public"}]},"css":{"classes":{"bb-tabs-list":["","--*","--block","--compact","--disabled","--line","--none","--vertical","__append","__indicator","__item","__item--active","__list","__list--measuring","__list--no-transition","__prepend"]},"locals":["--active-fg","--active-fw","--color-gray-200","--elev","--eq","--fs","--gap","--height","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--max-w","--p","--ring-t","--top","--transition-duration","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-tabs-list","part":"root"},{"class":"bb-tabs-list__list","part":"list"},{"class":"bb-tabs-list__item","part":"item"},{"class":"bb-tabs-list__indicator","part":"indicator"},{"class":"bb-tabs-list--disabled","state":"disabled"},{"class":"bb-tabs-list__item--active","state":"active"},{"class":"bb-tabs-list--line","state":"line"},{"class":"bb-tabs-list--none","state":"none"},{"class":"bb-tabs-list--pill","state":"pill","pattern":true}],"internal":[{"class":"bb-tabs-list--block"},{"class":"bb-tabs-list--compact"},{"class":"bb-tabs-list--vertical"},{"class":"bb-tabs-list__append"},{"class":"bb-tabs-list__list--measuring"},{"class":"bb-tabs-list__list--no-transition"},{"class":"bb-tabs-list__prepend"}]}},"removed":[{"name":"header:prepend","new":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:append","new":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"label:<x>","new":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollLeft","new":"wrapper:*.canScrollStart","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollRight","new":"wrapper:*.canScrollEnd","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('left')","new":"wrapper:*.scroll('start')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('right')","new":"wrapper:*.scroll('end')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-unreleased","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"header:prepend","to":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"header:append","to":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"label:<x>","to":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"rename"}}]},
|
|
427
|
+
{"name":"BbTabs","group":"Navigation","description":"Switches between views of one page from a row of tabs. For the tabs and their panels in different places of the layout, use BbTabsRoot with BbTabsList and BbTabsPanels.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbTabs.md","source":"ai/source/BbTabs.md","props":[{"name":"block","type":"boolean | undefined","required":false,"default":"undefined","description":"Displays the component as full width."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Adds a CSS class that applies a compact style to the component."},{"name":"direction","type":"\"horizontal\" | \"vertical\" | undefined","required":false,"default":"\"horizontal\"","description":"Direction of the tabs component."},{"name":"disableAnimateX","type":"boolean | undefined","required":false,"default":"false","description":"Disables the horizontal slide transition between tab panels (enabled by default)."},{"name":"disableAnimateY","type":"boolean | undefined","required":false,"default":"false","description":"Disables the smooth height animation when switching between tab panels (enabled by default)."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component"},{"name":"eager","type":"boolean | undefined","required":false,"default":"false","description":"Renders every tab's panel at mount and keeps it mounted, hidden while inactive, instead of only the active one. One tab alone: its item's `eager`."},{"name":"headers","type":"Record<string, string> | undefined","required":false,"description":"Additional HTTP headers forwarded to Inertia when navigation is triggered. Only meaningful in an Inertia context."},{"name":"id","type":"string | undefined","required":false,"description":"The root's `id`, and the key `useBbTabs(id)` pairs by. Generated when omitted."},{"name":"items","type":"BbTabsItem<K>[]","required":true,"description":"Array of items that define the tabs in the component."},{"name":"manualActivation","type":"boolean | undefined","required":false,"default":"`undefined` (on when `server` is set on the strip or an item)","description":"Arrow keys (and Home / End) only move focus; Enter or Space opens the tab (APG manual activation, Radix `activationMode=\"manual\"`). Unset: on when the strip or an item has `server` (else every arrow press is a visit), off elsewhere. Links (link mode) have no activation."},{"name":"modelValue","type":"K | null | undefined","required":false,"description":"The active tab's `value`. Used by v-model. In link mode (items with `href` / `to`) the page's current one, painted with `aria-current=\"page\"` and never emitted back."},{"name":"navigation","type":"boolean | undefined","required":false,"default":"false","description":"Synchronizes the current tab with the URL query parameter. Ignored in link mode (items with `href` / `to`): a link goes to its own page.\n\nPair it with `replace` unless a tab is genuinely a separate destination — see the `replace` prop."},{"name":"onBefore","type":"(() => boolean | void) | undefined","required":false,"description":"Inertia lifecycle hook — fired just before the request is sent. Return `false` to cancel the visit."},{"name":"onCancel","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the request is cancelled."},{"name":"onError","type":"((errors: Record<string, string>) => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the server returns validation errors."},{"name":"onFinish","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired after the visit finishes (success or error)."},{"name":"only","type":"string[] | undefined","required":false,"description":"Limits which server-side props are refreshed during a partial Inertia reload. Only meaningful in an Inertia context."},{"name":"onProgress","type":"((progress: { percentage: number | undefined; }) => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when upload/download progress is available."},{"name":"onStart","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the request starts."},{"name":"onSuccess","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the visit completes successfully."},{"name":"preserveScroll","type":"boolean | ((props: Record<string, unknown>) => boolean) | undefined","required":false,"description":"Controls whether Inertia preserves the scroll position after navigation. Only meaningful in an Inertia context."},{"name":"preserveState","type":"boolean | ((props: Record<string, unknown>) => boolean) | null | undefined","required":false,"description":"Controls whether Inertia preserves the current component state after navigation. Only meaningful in an Inertia context."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"wrapper\", \"list\", \"item\", \"indicator\", \"panels\", \"panel\"]; readonly states: readonly [\"disabled\", \"active\"]; readonly wide: readonly [\"disabled\"]; readonly node: { readonly item: readonly [\"active\"]; readonly panel: readonly [\"active\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"none\"]; readonly option: \"tabsVariants\"; readonly parts: readonly [\"wrapper\", \"list\", \"item\", \"indicator\"]; }; }> & { list?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:active\"?: PtValue | undefined; indicator?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; wrapper?: PtValue | undefined; panels?: PtValue | undefined; \"wrapper:disabled\"?: PtValue | undefined; \"panels:disabled\"?: PtValue | undefined; \"panel:active\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<BbTabsItem<K>, BbTabsPtState, \"line\" | \"none\" | \"pill\", { readonly item: BbTabsItem<K>; }> | undefined; } & { \"list:line\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; \"list:none\"?: PtValue | undefined; \"indicator:none\"?: PtValue | undefined; \"wrapper:line\"?: PtValue | undefined; \"wrapper:none\"?: PtValue | undefined; \"wrapper:pill\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:none","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<BbTabsItem<K>, BbTabsPtState, \"line\" | \"none\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:item:active","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:none","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:none","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:active","type":"PtValue | undefined","required":false},{"name":"pt:panel:disabled","type":"PtValue | undefined","required":false},{"name":"pt:panels","type":"PtValue | undefined","required":false},{"name":"pt:panels:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:wrapper","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:disabled","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:line","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:none","type":"PtValue | undefined","required":false},{"name":"pt:wrapper:pill","type":"PtValue | undefined","required":false},{"name":"queryKey","type":"string | undefined","required":false,"default":"\"tab\"","description":"Defines the query key used for URL-based navigation."},{"name":"replace","type":"boolean | undefined","required":false,"default":"false","description":"Replaces the history entry instead of pushing one when the tab changes. Recommended with `navigation`: the query keeps the tab while Back leaves the page. Leave it off when a tab is a destination of its own (a `server` visit)."},{"name":"server","type":"boolean | undefined","required":false,"default":"false","description":"When true and in an Inertia context, triggers a real server-side Inertia visit instead of a client-only `history.pushState`."},{"name":"variant","type":"keyof TabsVariantRegistry | undefined","required":false,"default":"\"pill\"","values":["none","pill","line"],"description":"Look of the tab strip: `pill` (segmented, a sliding raised pill), `line` (a baseline with a sliding underline) or `none` (no chrome). Each is a preset of the strip's tokens; register more with the vite plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`."}],"events":[{"name":"update:modelValue","signature":"(value: K): void","description":"Emitted when the selected tab changes. Used by `v-model`."}],"slots":[{"name":"label","type":"BbTabsSlotProps<K>","fields":["current: K | null","currentIndex: number","disabled: boolean","isFirst: boolean","isLast: boolean","selected: boolean","label: string","value: K","goTo: (target: \"next\" | \"first\" | \"last\" | \"previous\") => void"],"description":"Fallback slot used for all tab labels when no per-tab `<value>:label` slot is provided."},{"name":"wrapper:append","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered after the scrollable tab label list, at its end (e.g. a scroll-to-end arrow)."},{"name":"wrapper:prepend","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered before the scrollable tab label list, at its start (e.g. a scroll-to-start arrow)."},{"name":"<value>","type":"BbTabsSlotProps<K>","description":"One tab's content panel, by the tab's `value` through `slotKey`; no fallback (an empty panel). With no panel slot at all, no panel renders and no tab has `aria-controls`.","dynamic":true},{"name":"<value>:label","type":"BbTabsSlotProps<K>","description":"One tab trigger's label, by the tab's `value` through `slotKey`; beats `label`, which beats the item's `label` text.","dynamic":true}],"exposed":[],"models":[{"name":"modelValue","type":"K | null | undefined"}],"cssProps":[{"name":"--gap","value":"8px","selector":".bb-tabs"},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-tabs-list","description":"The strip's edge line: a baseline under the triggers (beside them when vertical), --bb-border-w thick, painted inside the strip. `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-tabs-list","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-tabs-list","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-tabs-list","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-tabs-list","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-tabs-list","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-tabs-list","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-tabs-list","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-tabs-list","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-tabs-list","description":"inactive trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"active trigger label"},{"name":"--active-fw","value":"500","selector":".bb-tabs-list","description":"active trigger label weight (inactive labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-tabs-list","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-tabs-list","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-tabs-list","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (side edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-tabs-list","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-tabs-list","description":"The theme's resting lift, composed UNDER the indicator's own shadow. Two names because they are two decisions: `--elev` is what the language lifts every plate by, `--indicator-shadow` is this component's own."},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-tabs-list","description":"Indicator lift, painted on top of --elev — the theme's selected-segment lift, so it holds in dark (a literal black 6% vanished there)."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs-list__item"},{"name":"--transition-duration","value":"var(--bb-transition-slow)","selector":".bb-tabs-panels"},{"name":"--gap","value":"30px","selector":".bb-tabs-panels"},{"name":"--max-w","value":"initial","selector":".bb-tabs-panels","description":"The strip-width knob must not percolate into panel content: nested tabs rendered inside a panel start with a clean slate"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs__panel"}],"pt":{"parts":[{"name":"root","description":"The tabs' outer element, around the strip and the panels."},{"name":"wrapper","description":"The strip's outer element: the `wrapper:prepend` slot, the triggers, the `wrapper:append` slot. `BbTabsList`'s root in a split layout."},{"name":"list","description":"The `role=\"tablist\"` row the triggers sit in (a plain list of links in link mode) — it scrolls when they overflow, and the indicator slides inside it."},{"name":"item","description":"One tab trigger (a link in link mode) — a broadcast resolved per tab with its own `active` / `disabled`. Also takes a per-item function, called with the tab's descriptor."},{"name":"indicator","description":"The marker sliding under the active trigger: the pill, or the bar of the `line` variant. Its position and size are measured."},{"name":"panels","description":"The element around the panels. `BbTabsPanels`'s root in a split layout."},{"name":"panel","description":"One tab panel — a broadcast; `panel:active` is the panel on show. Takes no function."}],"states":[{"name":"disabled","description":"On every part while the whole tabs is `disabled`; per node on `item`: a tab that is disabled."},{"name":"active","description":"Per node, on `item` and `panel`: the selected tab's trigger and its shown panel."},{"name":"line","description":"On the strip's parts: `variant: 'line'`. Below the real states, like every variant."},{"name":"none","description":"On the strip's parts: `variant: 'none'`. Below the real states, like every variant."},{"name":"pill","description":"On the strip's parts: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"forwards":[{"to":"BbTabsList","mapping":"passthrough.forwardInstance(LIST_PARTS, LIST_STATES)"},{"to":"BbTabsPanels","mapping":"passthrough.forwardInstance(PANELS_PARTS)"}],"nodes":[{"name":"BbTabsList","kind":"public"},{"name":"BbTabsPanels","kind":"public"}]},"css":{"classes":{"bb-tabs":["","--*","--block","--compact","--disabled","--no-panels","--vertical","__panel","__panel--shown","__trigger-content","__trigger-label"]},"locals":["--active-fg","--active-fw","--color-gray-200","--elev","--eq","--fs","--gap","--height","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--max-w","--p","--ring-t","--top","--transition-duration","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-tabs","tag":"div","part":"root","reads":["--gap"]},{"class":"bb-tabs__panel","tag":"section","part":"panel","reads":["--ring-t"]},{"class":"bb-tabs--disabled","tag":"div","state":"disabled"},{"class":"bb-tabs--line","state":"line","pattern":true},{"class":"bb-tabs--none","state":"none","pattern":true},{"class":"bb-tabs--pill","state":"pill","pattern":true}],"internal":[{"class":"bb-tabs--block","tag":"div"},{"class":"bb-tabs--compact","tag":"div"},{"class":"bb-tabs--no-panels","tag":"div"},{"class":"bb-tabs--vertical","reads":["--gap"]},{"class":"bb-tabs__panel--shown","tag":"section"},{"class":"bb-tabs__trigger-content","tag":"span"},{"class":"bb-tabs__trigger-label","tag":"span"}],"unaligned":{"parts":["wrapper","list","item","indicator","panels"],"states":["active"]}}},"config":"compact*, block*, variants","removed":[{"name":"animateX","new":"disableAnimateX","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"invert"}},{"name":"animateY","new":"disableAnimateY","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"invert"}},{"name":"querykey","new":"queryKey","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:prepend","new":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:append","new":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"label:<x>","new":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"items[].key","new":"items[].value","surface":"item","hint":"a tab's identity: what `v-model` holds and its `#<value>` / `#<value>:label` slots; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollLeft","new":"wrapper:*.canScrollStart","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollRight","new":"wrapper:*.canScrollEnd","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('left')","new":"wrapper:*.scroll('start')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('right')","new":"wrapper:*.scroll('end')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"animateX","to":"disableAnimateX","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"invert"}},{"from":"animateY","to":"disableAnimateY","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"invert"}},{"from":"querykey","to":"queryKey","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"rename"}},{"from":"header:prepend","to":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"header:append","to":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"label:<x>","to":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"rename"}}]},
|
|
428
|
+
{"name":"BbTabsList","group":"Navigation","description":"The trigger strip of a split BbTabsRoot layout (renders the tab buttons only).","referenceOnly":false,"hasGuide":false,"contract":"ai/BbTabsList.md","source":"ai/source/BbTabsList.md","props":[{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"list\", \"item\", \"indicator\"]; readonly states: readonly [\"disabled\", \"active\"]; readonly wide: readonly [\"disabled\"]; readonly node: { readonly item: readonly [\"active\"]; }; readonly variant: { readonly names: readonly [\"pill\", \"line\", \"none\"]; readonly option: \"tabsVariants\"; }; }> & { list?: PtValue | undefined; root?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:active\"?: PtValue | undefined; indicator?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"indicator:disabled\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<BbTabsItem<string>, BbTabsPtState, \"line\" | \"none\" | \"pill\", { readonly item: BbTabsItem<string>; }> | undefined; } & { \"list:line\"?: PtValue | undefined; \"list:pill\"?: PtValue | undefined; \"root:line\"?: PtValue | undefined; \"root:pill\"?: PtValue | undefined; \"item:line\"?: PtValue | undefined; \"item:pill\"?: PtValue | undefined; \"indicator:line\"?: PtValue | undefined; \"indicator:pill\"?: PtValue | undefined; \"item:none\"?: PtValue | undefined; \"list:none\"?: PtValue | undefined; \"indicator:none\"?: PtValue | undefined; \"root:none\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:indicator","type":"PtValue | undefined","required":false},{"name":"pt:indicator:disabled","type":"PtValue | undefined","required":false},{"name":"pt:indicator:line","type":"PtValue | undefined","required":false},{"name":"pt:indicator:none","type":"PtValue | undefined","required":false},{"name":"pt:indicator:pill","type":"PtValue | undefined","required":false},{"name":"pt:item","type":"PtValue | ((ctx: PtItemCtx<BbTabsItem<string>, BbTabsPtState, \"line\" | \"none\" | \"pill\">) => PtItemResult) | undefined","required":false},{"name":"pt:item:active","type":"PtValue | undefined","required":false},{"name":"pt:item:disabled","type":"PtValue | undefined","required":false},{"name":"pt:item:line","type":"PtValue | undefined","required":false},{"name":"pt:item:none","type":"PtValue | undefined","required":false},{"name":"pt:item:pill","type":"PtValue | undefined","required":false},{"name":"pt:list","type":"PtValue | undefined","required":false},{"name":"pt:list:disabled","type":"PtValue | undefined","required":false},{"name":"pt:list:line","type":"PtValue | undefined","required":false},{"name":"pt:list:none","type":"PtValue | undefined","required":false},{"name":"pt:list:pill","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:line","type":"PtValue | undefined","required":false},{"name":"pt:root:none","type":"PtValue | undefined","required":false},{"name":"pt:root:pill","type":"PtValue | undefined","required":false},{"name":"variant","type":"keyof TabsVariantRegistry | undefined","required":false,"values":["none","pill","line"],"description":"Look of this strip — the `variant` of the owning `BbTabs` / `BbTabsRoot` unless set here. See `BbTabsProps.variant` for the values."}],"events":[],"slots":[{"name":"label","type":"BbTabsSlotProps<string>","fields":["current: K | null","currentIndex: number","disabled: boolean","isFirst: boolean","isLast: boolean","selected: boolean","label: string","value: K","goTo: (target: \"next\" | \"first\" | \"last\" | \"previous\") => void"],"description":"Fallback slot used for all tab labels when no per-tab `<value>:label` slot is provided."},{"name":"wrapper:append","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered after the scrollable tab label list, at its end (e.g. a scroll-to-end arrow)."},{"name":"wrapper:prepend","type":"BbTabsScrollSlotProps","fields":["isScrolling: boolean","canScrollStart: boolean","canScrollEnd: boolean","scroll: (direction: \"start\" | \"end\") => void"],"description":"Content rendered before the scrollable tab label list, at its start (e.g. a scroll-to-start arrow)."},{"name":"<value>:label","type":"BbTabsSlotProps<K>","description":"One tab trigger's label, by the tab's `value` through `slotKey`; beats `label`, which beats the item's `label` text.","dynamic":true}],"exposed":[],"models":[],"cssProps":[{"name":"--gap","value":"8px","selector":".bb-tabs"},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-tabs-list","description":"The strip's edge line: a baseline under the triggers (beside them when vertical), --bb-border-w thick, painted inside the strip. `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-tabs-list","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-tabs-list","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-tabs-list","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-tabs-list","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-tabs-list","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-tabs-list","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-tabs-list","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-tabs-list","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-tabs-list","description":"inactive trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"active trigger label"},{"name":"--active-fw","value":"500","selector":".bb-tabs-list","description":"active trigger label weight (inactive labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-tabs-list","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-tabs-list","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-tabs-list","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (side edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-tabs-list","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-tabs-list","description":"The theme's resting lift, composed UNDER the indicator's own shadow. Two names because they are two decisions: `--elev` is what the language lifts every plate by, `--indicator-shadow` is this component's own."},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-tabs-list","description":"Indicator lift, painted on top of --elev — the theme's selected-segment lift, so it holds in dark (a literal black 6% vanished there)."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs-list__item"},{"name":"--transition-duration","value":"var(--bb-transition-slow)","selector":".bb-tabs-panels"},{"name":"--gap","value":"30px","selector":".bb-tabs-panels"},{"name":"--max-w","value":"initial","selector":".bb-tabs-panels","description":"The strip-width knob must not percolate into panel content: nested tabs rendered inside a panel start with a clean slate"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs__panel"}],"pt":{"parts":[{"name":"root","description":"The strip's outer element: the `wrapper:prepend` slot, the triggers, the `wrapper:append` slot (`BbTabs`'s `wrapper`)."},{"name":"list","description":"The `role=\"tablist\"` row the triggers sit in (a plain list of links in link mode)."},{"name":"item","description":"One tab trigger (a link in link mode), per tab with its own `active` / `disabled`. Also takes a per-item function, called with the tab's descriptor."},{"name":"indicator","description":"The marker sliding under the active trigger."}],"states":[{"name":"disabled","description":"On every part while the whole tabs is `disabled`; per node on `item`: a tab that is disabled."},{"name":"active","description":"Per node, on `item` and `panel`: the selected tab's trigger and its shown panel."},{"name":"line","description":"On the strip's parts: `variant: 'line'`. Below the real states, like every variant."},{"name":"none","description":"On the strip's parts: `variant: 'none'`. Below the real states, like every variant."},{"name":"pill","description":"On the strip's parts: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win."}]},"tree":{"bindings":[{"part":"list","target":"ul.bb-tabs-list__list"},{"part":"indicator","target":"li.bb-tabs-list__indicator"},{"part":"item","target":"BbBaseButton"}],"nodes":[{"name":"BbBaseButton","kind":"public"}]},"css":{"classes":{"bb-tabs-list":["","--*","--block","--compact","--disabled","--line","--none","--vertical","__append","__indicator","__item","__item--active","__list","__list--measuring","__list--no-transition","__prepend"]},"locals":["--active-fg","--active-fw","--color-gray-200","--elev","--eq","--fs","--gap","--height","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--max-w","--p","--ring-t","--top","--transition-duration","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-tabs-list","part":"root"},{"class":"bb-tabs-list__list","part":"list"},{"class":"bb-tabs-list__item","part":"item"},{"class":"bb-tabs-list__indicator","part":"indicator"},{"class":"bb-tabs-list--disabled","state":"disabled"},{"class":"bb-tabs-list__item--active","state":"active"},{"class":"bb-tabs-list--line","state":"line"},{"class":"bb-tabs-list--none","state":"none"},{"class":"bb-tabs-list--pill","state":"pill","pattern":true}],"internal":[{"class":"bb-tabs-list--block"},{"class":"bb-tabs-list--compact"},{"class":"bb-tabs-list--vertical"},{"class":"bb-tabs-list__append"},{"class":"bb-tabs-list__list--measuring"},{"class":"bb-tabs-list__list--no-transition"},{"class":"bb-tabs-list__prepend"}]}},"removed":[{"name":"header:prepend","new":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"header:append","new":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"rename"}},{"name":"label:<x>","new":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollLeft","new":"wrapper:*.canScrollStart","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.canScrollRight","new":"wrapper:*.canScrollEnd","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('left')","new":"wrapper:*.scroll('start')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"wrapper:*.scroll('right')","new":"wrapper:*.scroll('end')","surface":"slotProp","hint":"`#wrapper:prepend` / `#wrapper:append` scope: start and end follow the page's `dir` (left to right, start is the left); `check --fix` renames it","since":"3.0.0-beta.69","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"header:prepend","to":"wrapper:prepend","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"header:append","to":"wrapper:append","surface":"slot","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","fix":{"kind":"rename"}},{"from":"label:<x>","to":"<x>:label","surface":"slot","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"rename"}}]},
|
|
424
429
|
{"name":"BbTabsPanels","group":"Navigation","description":"The panel host of a split BbTabsRoot layout (renders the tab content only).","referenceOnly":false,"hasGuide":false,"contract":"ai/BbTabsPanels.md","source":"ai/source/BbTabsPanels.md","props":[{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\"]; readonly states: readonly [\"disabled\", \"active\"]; readonly wide: readonly [\"disabled\"]; readonly node: { readonly panel: readonly [\"active\"]; }; }> & { root?: PtValue | undefined; panel?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:active\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:panel","type":"PtValue | undefined","required":false},{"name":"pt:panel:active","type":"PtValue | undefined","required":false},{"name":"pt:panel:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false}],"events":[],"slots":[{"name":"<value>","type":"BbTabsSlotProps<K>","description":"One tab's content panel, by the tab's `value` through `slotKey`; no fallback (an empty panel). With no panel slot at all, no panel renders and no tab has `aria-controls`.","dynamic":true}],"exposed":[],"models":[],"cssProps":[{"name":"--gap","value":"8px","selector":".bb-tabs"},{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-tabs-list","description":"The strip's edge line: a baseline under the triggers (beside them when vertical), --bb-border-w thick, painted inside the strip. `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-tabs-list","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-tabs-list","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-tabs-list","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-tabs-list","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-tabs-list","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-tabs-list","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-tabs-list","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-tabs-list","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-tabs-list","description":"inactive trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-tabs-list","description":"active trigger label"},{"name":"--active-fw","value":"500","selector":".bb-tabs-list","description":"active trigger label weight (inactive labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-tabs-list","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-tabs-list","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-tabs-list","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-tabs-list","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (side edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-tabs-list","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-tabs-list","description":"The theme's resting lift, composed UNDER the indicator's own shadow. Two names because they are two decisions: `--elev` is what the language lifts every plate by, `--indicator-shadow` is this component's own."},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-tabs-list","description":"Indicator lift, painted on top of --elev — the theme's selected-segment lift, so it holds in dark (a literal black 6% vanished there)."},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs-list__item"},{"name":"--transition-duration","value":"var(--bb-transition-slow)","selector":".bb-tabs-panels"},{"name":"--gap","value":"30px","selector":".bb-tabs-panels"},{"name":"--max-w","value":"initial","selector":".bb-tabs-panels","description":"The strip-width knob must not percolate into panel content: nested tabs rendered inside a panel start with a clean slate"},{"name":"--ring-t","value":"var(--bb-transition-medium)","selector":".bb-tabs__panel"}],"pt":{"parts":[{"name":"root","description":"The element around the panels (`BbTabs`'s `panels`)."},{"name":"panel","description":"One tab panel — a broadcast; `panel:active` is the panel on show. Takes no function."}],"states":[{"name":"disabled","description":"On every part while the whole tabs is `disabled`; per node on `item`: a tab that is disabled."},{"name":"active","description":"Per node, on `item` and `panel`: the selected tab's trigger and its shown panel."}]},"css":{"classes":{"bb-tabs-panels":[""]},"locals":["--active-fg","--active-fw","--color-gray-200","--elev","--eq","--fs","--gap","--height","--hover-fg","--indicator-bg","--indicator-border","--indicator-h","--indicator-inset","--indicator-r","--indicator-shadow","--left","--list-bg","--list-border","--list-fg","--list-h","--list-r","--max-w","--p","--ring-t","--top","--transition-duration","--trigger-gap","--trigger-min-h","--trigger-px","--trigger-r","--width"],"surface":{"stable":[{"class":"bb-tabs-panels","part":"root"}],"internal":[],"lands":[{"part":"panel","target":"section.bb-tabs__panel"}],"unaligned":{"states":["disabled","active"]}}},"attrTargets":["div"]},
|
|
425
430
|
{"name":"BbTabsRoot","group":"Navigation","description":"Provide/inject root that lets BbTabsList and BbTabsPanels live in separate layout slots.","referenceOnly":false,"hasGuide":false,"contract":"ai/BbTabsRoot.md","source":"ai/source/BbTabsRoot.md","props":[{"name":"block","type":"boolean | undefined","required":false,"default":"false","description":"Displays the component as full width."},{"name":"compact","type":"boolean | undefined","required":false,"default":"false","description":"Adds a CSS class that applies a compact style to the component."},{"name":"direction","type":"\"horizontal\" | \"vertical\" | undefined","required":false,"default":"\"horizontal\"","description":"Direction of the tabs component."},{"name":"disableAnimateX","type":"boolean | undefined","required":false,"default":"false","description":"Disables the horizontal slide transition between tab panels (enabled by default)."},{"name":"disableAnimateY","type":"boolean | undefined","required":false,"default":"false","description":"Disables the smooth height animation when switching between tab panels (enabled by default)."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component"},{"name":"eager","type":"boolean | undefined","required":false,"default":"false","description":"Renders every tab's panel at mount and keeps it mounted, hidden while inactive, instead of only the active one. One tab alone: its item's `eager`."},{"name":"headers","type":"Record<string, string> | undefined","required":false,"description":"Additional HTTP headers forwarded to Inertia when navigation is triggered. Only meaningful in an Inertia context."},{"name":"id","type":"string | undefined","required":false,"description":"The root's `id`, and the key `useBbTabs(id)` pairs by. Generated when omitted."},{"name":"items","type":"BbTabsItem<K>[]","required":true,"description":"Array of items that define the tabs in the component."},{"name":"manualActivation","type":"boolean | undefined","required":false,"default":"`undefined` (on when `server` is set on the strip or an item)","description":"Arrow keys (and Home / End) only move focus; Enter or Space opens the tab (APG manual activation, Radix `activationMode=\"manual\"`). Unset: on when the strip or an item has `server` (else every arrow press is a visit), off elsewhere. Links (link mode) have no activation."},{"name":"modelValue","type":"K | null | undefined","required":false,"description":"The active tab's `value`. Used by v-model. In link mode (items with `href` / `to`) the page's current one, painted with `aria-current=\"page\"` and never emitted back."},{"name":"navigation","type":"boolean | undefined","required":false,"default":"false","description":"Synchronizes the current tab with the URL query parameter. Ignored in link mode (items with `href` / `to`): a link goes to its own page.\n\nPair it with `replace` unless a tab is genuinely a separate destination — see the `replace` prop."},{"name":"onBefore","type":"(() => boolean | void) | undefined","required":false,"description":"Inertia lifecycle hook — fired just before the request is sent. Return `false` to cancel the visit."},{"name":"onCancel","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the request is cancelled."},{"name":"onError","type":"((errors: Record<string, string>) => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the server returns validation errors."},{"name":"onFinish","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired after the visit finishes (success or error)."},{"name":"only","type":"string[] | undefined","required":false,"description":"Limits which server-side props are refreshed during a partial Inertia reload. Only meaningful in an Inertia context."},{"name":"onProgress","type":"((progress: { percentage: number | undefined; }) => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when upload/download progress is available."},{"name":"onStart","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the request starts."},{"name":"onSuccess","type":"(() => void) | undefined","required":false,"description":"Inertia lifecycle hook — fired when the visit completes successfully."},{"name":"preserveScroll","type":"boolean | ((props: Record<string, unknown>) => boolean) | undefined","required":false,"description":"Controls whether Inertia preserves the scroll position after navigation. Only meaningful in an Inertia context."},{"name":"preserveState","type":"boolean | ((props: Record<string, unknown>) => boolean) | null | undefined","required":false,"description":"Controls whether Inertia preserves the current component state after navigation. Only meaningful in an Inertia context."},{"name":"queryKey","type":"string | undefined","required":false,"default":"\"tab\"","description":"Defines the query key used for URL-based navigation."},{"name":"replace","type":"boolean | undefined","required":false,"default":"false","description":"Replaces the history entry instead of pushing one when the tab changes. Recommended with `navigation`: the query keeps the tab while Back leaves the page. Leave it off when a tab is a destination of its own (a `server` visit)."},{"name":"server","type":"boolean | undefined","required":false,"default":"false","description":"When true and in an Inertia context, triggers a real server-side Inertia visit instead of a client-only `history.pushState`."},{"name":"variant","type":"keyof TabsVariantRegistry | undefined","required":false,"default":"\"pill\"","values":["none","pill","line"],"description":"Look of the tab strip: `pill` (segmented, a sliding raised pill), `line` (a baseline with a sliding underline) or `none` (no chrome). Each is a preset of the strip's tokens; register more with the vite plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`."}],"events":[{"name":"update:modelValue","signature":"(value: K): void","description":"Emitted when the selected tab changes. Used by `v-model`."}],"slots":[{"name":"default","type":"BbTabsRootSlotProps<K>","fields":["current: K | null","currentIndex: number","isFirst: boolean","isLast: boolean","goTo: (target: \"next\" | \"first\" | \"last\" | \"previous\") => void","select: (value: K) => void"],"description":"Arbitrary layout hosting `BbTabsList` / `BbTabsPanels` anywhere in its subtree."}],"exposed":[],"models":[{"name":"modelValue","type":"K | null | undefined"}],"removed":[{"name":"animateX","new":"disableAnimateX","since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"invert"}},{"name":"animateY","new":"disableAnimateY","since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"invert"}},{"name":"querykey","new":"queryKey","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}},{"name":"pt","new":null,"hint":"BbTabsRoot renders no element and takes no `pt`: put `item` on `<BbTabsList>` and `panel` on `<BbTabsPanels>`","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"manual"}},{"name":"pt:item","new":null,"surface":"pt","hint":"move it to `<BbTabsList pt:item>`","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"manual"}},{"name":"pt:panel","new":null,"surface":"pt","hint":"move it to `<BbTabsPanels pt:panel>`","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"manual"}},{"name":"pt:root","new":null,"surface":"pt","hint":"BbTabsRoot renders no element; style `<BbTabsList>` or `<BbTabsPanels>` instead","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"manual"}},{"name":"items[].key","new":"items[].value","surface":"item","hint":"a tab's identity: what `v-model` holds and its `#<value>` / `#<value>:label` slots; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-tabs.md","silent":true,"fix":{"kind":"rename"}}],"renamed":[{"from":"animateX","to":"disableAnimateX","since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"invert"}},{"from":"animateY","to":"disableAnimateY","since":"3.0.0-beta.15","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"invert"}},{"from":"querykey","to":"queryKey","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tabs.md","fix":{"kind":"rename"}}]},
|
|
426
431
|
{"name":"BbTag","group":"Inputs","description":"Captures and displays tag-like token values.","referenceOnly":false,"hasGuide":true,"contract":"ai/BbTag.md","source":"ai/source/BbTag.md","props":[{"name":"append:icon","type":"string | undefined","required":false,"description":"Name of the icon to be added at the end of the input."},{"name":"autocomplete","type":"string | undefined","required":false,"default":"'off'","description":"Guides to the browser as to the type of information expected in the field."},{"name":"autofocus","type":"Booleanish | undefined","required":false,"description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},{"name":"caseSensitive","type":"boolean | undefined","required":false,"default":"false","description":"Compares tags case-sensitively when rejecting duplicates (`Vue` and `vue` both allowed); by default case folds. A tag keeps the casing typed either way, and entries are trimmed first."},{"name":"clearable","type":"boolean | undefined","required":false,"default":"false","description":"Displays a clear button when the input has a value and is being interacted with."},{"name":"comma","type":"boolean | undefined","required":false,"default":"false","description":"Sets the display model for selected values to a list of comma separated string. In this mode the user cannot deselect an option by pressing the close button."},{"name":"compact","type":"boolean | undefined","required":false,"default":"undefined","description":"Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`)."},{"name":"description","type":"string | undefined","required":false,"description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},{"name":"disabled","type":"boolean | undefined","required":false,"default":"false","description":"Disables the component."},{"name":"divider","type":"string | string[] | undefined","required":false,"default":"\"Enter\"","description":"The divider key used to separate values from one another. By default it is \"Enter\". Accepts a single key or an array of keys (e.g. `['Enter', ',']`) — any of them commits the current text, split on every single-character divider in the set into one tag per trimmed, non-empty piece."},{"name":"errors","type":"string | string[] | undefined","required":false,"description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},{"name":"formless","type":"boolean | undefined","required":false,"default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for."},{"name":"hint","type":"string | undefined","required":false,"description":"Text box to be displayed near the input, usually to indicate instructions."},{"name":"id","type":"string | undefined","required":false,"description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},{"name":"inputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's."},{"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},{"name":"labelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's."},{"name":"labelMode","type":"\"outside\" | \"floating\" | \"inside\" | undefined","required":false,"description":"Where the label sits relative to the field: `outside` above it, `inside` within the control, or `floating` (starts inside, lifts on focus/value). Defaults to `all.labelMode`, like the other inputs."},{"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\" | undefined","required":false,"default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},{"name":"layout","type":"Responsive<FieldLayout> | undefined","required":false,"description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Sets the component in a loading state, usually triggering some visual styles."},{"name":"max","type":"number | undefined","required":false,"description":"Maximum number of selected items."},{"name":"modelValue","type":"string[] | undefined","required":false,"description":"Used by v-model. Contains all selected tags."},{"name":"name","type":"string | undefined","required":false,"description":"Defines the name of the input."},{"name":"persistentHint","type":"boolean | undefined","required":false,"default":"false","description":"Keeps the hint displayed."},{"name":"placeholder","type":"string | undefined","required":false,"description":"Text shown while the field is empty."},{"name":"prepend:icon","type":"string | undefined","required":false,"description":"Name of the icon to be added at the start of the input."},{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"input\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\", \"badge\", \"comma\"]; readonly states: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"highlighted\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"loading\"]; readonly node: { readonly badge: readonly [\"highlighted\"]; readonly comma: readonly [\"highlighted\"]; }; readonly except: { readonly clear: readonly [\"disabled\", \"readonly\"]; }; readonly variant: { readonly names: readonly [\"outline\", \"secondary\", \"ghost\"]; readonly option: \"tagVariants\"; readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"input\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\"]; }; }> & { input?: PtValue | undefined; label?: PtValue | undefined; prefix?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; spinner?: PtValue | undefined; clear?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"clear:loading\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; box?: PtValue | undefined; suffix?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:errors\"?: PtValue | undefined; \"input:warnings\"?: PtValue | undefined; \"input:readonly\"?: PtValue | undefined; \"input:hasValue\"?: PtValue | undefined; \"prefix:loading\"?: PtValue | undefined; \"prefix:disabled\"?: PtValue | undefined; \"prefix:errors\"?: PtValue | undefined; \"prefix:warnings\"?: PtValue | undefined; \"prefix:readonly\"?: PtValue | undefined; \"prefix:hasValue\"?: PtValue | undefined; \"spinner:errors\"?: PtValue | undefined; \"spinner:warnings\"?: PtValue | undefined; \"spinner:readonly\"?: PtValue | undefined; \"spinner:hasValue\"?: PtValue | undefined; \"clear:errors\"?: PtValue | undefined; \"clear:warnings\"?: PtValue | undefined; \"clear:hasValue\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:errors\"?: PtValue | undefined; \"box:warnings\"?: PtValue | undefined; \"box:readonly\"?: PtValue | undefined; \"box:hasValue\"?: PtValue | undefined; \"suffix:loading\"?: PtValue | undefined; \"suffix:disabled\"?: PtValue | undefined; \"suffix:errors\"?: PtValue | undefined; \"suffix:warnings\"?: PtValue | undefined; \"suffix:readonly\"?: PtValue | undefined; \"suffix:hasValue\"?: PtValue | undefined; \"badge:loading\"?: PtValue | undefined; \"badge:disabled\"?: PtValue | undefined; \"badge:errors\"?: PtValue | undefined; \"badge:warnings\"?: PtValue | undefined; \"badge:readonly\"?: PtValue | undefined; \"badge:hasValue\"?: PtValue | undefined; \"comma:loading\"?: PtValue | undefined; \"comma:disabled\"?: PtValue | undefined; \"comma:errors\"?: PtValue | undefined; \"comma:warnings\"?: PtValue | undefined; \"comma:readonly\"?: PtValue | undefined; \"comma:hasValue\"?: PtValue | undefined; \"badge:highlighted\"?: PtValue | undefined; \"comma:highlighted\"?: PtValue | undefined; } & { badge?: PtValue | PtItemFn<string, BbTagPtState, never, { readonly item: string; }> | undefined; comma?: PtValue | PtItemFn<string, BbTagPtState, never, { readonly item: string; }> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"clear:outline\"?: PtValue | undefined; \"clear:secondary\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"input:outline\"?: PtValue | undefined; \"input:secondary\"?: PtValue | undefined; \"input:ghost\"?: PtValue | undefined; \"label:secondary\"?: PtValue | undefined; \"label:ghost\"?: PtValue | undefined; \"prefix:outline\"?: PtValue | undefined; \"prefix:secondary\"?: PtValue | undefined; \"prefix:ghost\"?: PtValue | undefined; \"clear:ghost\"?: PtValue | undefined; \"description:secondary\"?: PtValue | undefined; \"description:ghost\"?: PtValue | undefined; \"message:secondary\"?: PtValue | undefined; \"message:ghost\"?: PtValue | undefined; \"hint:secondary\"?: PtValue | undefined; \"hint:ghost\"?: PtValue | undefined; \"box:outline\"?: PtValue | undefined; \"box:secondary\"?: PtValue | undefined; \"box:ghost\"?: PtValue | undefined; \"suffix:outline\"?: PtValue | undefined; \"suffix:secondary\"?: PtValue | undefined; \"suffix:ghost\"?: PtValue | undefined; }) | undefined","required":false,"description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},{"name":"pt:badge","type":"PtValue | ((ctx: PtItemCtx<string, BbTagPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:badge:disabled","type":"PtValue | undefined","required":false},{"name":"pt:badge:errors","type":"PtValue | undefined","required":false},{"name":"pt:badge:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:badge:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:badge:loading","type":"PtValue | undefined","required":false},{"name":"pt:badge:readonly","type":"PtValue | undefined","required":false},{"name":"pt:badge:warnings","type":"PtValue | undefined","required":false},{"name":"pt:box","type":"PtValue | undefined","required":false},{"name":"pt:box:disabled","type":"PtValue | undefined","required":false},{"name":"pt:box:errors","type":"PtValue | undefined","required":false},{"name":"pt:box:ghost","type":"PtValue | undefined","required":false},{"name":"pt:box:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:box:loading","type":"PtValue | undefined","required":false},{"name":"pt:box:outline","type":"PtValue | undefined","required":false},{"name":"pt:box:readonly","type":"PtValue | undefined","required":false},{"name":"pt:box:secondary","type":"PtValue | undefined","required":false},{"name":"pt:box:warnings","type":"PtValue | undefined","required":false},{"name":"pt:clear","type":"PtValue | undefined","required":false},{"name":"pt:clear:errors","type":"PtValue | undefined","required":false},{"name":"pt:clear:ghost","type":"PtValue | undefined","required":false},{"name":"pt:clear:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:clear:loading","type":"PtValue | undefined","required":false},{"name":"pt:clear:outline","type":"PtValue | undefined","required":false},{"name":"pt:clear:secondary","type":"PtValue | undefined","required":false},{"name":"pt:clear:warnings","type":"PtValue | undefined","required":false},{"name":"pt:comma","type":"PtValue | ((ctx: PtItemCtx<string, BbTagPtState>) => PtItemResult) | undefined","required":false},{"name":"pt:comma:disabled","type":"PtValue | undefined","required":false},{"name":"pt:comma:errors","type":"PtValue | undefined","required":false},{"name":"pt:comma:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:comma:highlighted","type":"PtValue | undefined","required":false},{"name":"pt:comma:loading","type":"PtValue | undefined","required":false},{"name":"pt:comma:readonly","type":"PtValue | undefined","required":false},{"name":"pt:comma:warnings","type":"PtValue | undefined","required":false},{"name":"pt:description","type":"PtValue | undefined","required":false},{"name":"pt:description:disabled","type":"PtValue | undefined","required":false},{"name":"pt:description:errors","type":"PtValue | undefined","required":false},{"name":"pt:description:ghost","type":"PtValue | undefined","required":false},{"name":"pt:description:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:description:loading","type":"PtValue | undefined","required":false},{"name":"pt:description:outline","type":"PtValue | undefined","required":false},{"name":"pt:description:readonly","type":"PtValue | undefined","required":false},{"name":"pt:description:secondary","type":"PtValue | undefined","required":false},{"name":"pt:description:warnings","type":"PtValue | undefined","required":false},{"name":"pt:hint","type":"PtValue | undefined","required":false},{"name":"pt:hint:disabled","type":"PtValue | undefined","required":false},{"name":"pt:hint:errors","type":"PtValue | undefined","required":false},{"name":"pt:hint:ghost","type":"PtValue | undefined","required":false},{"name":"pt:hint:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:hint:loading","type":"PtValue | undefined","required":false},{"name":"pt:hint:outline","type":"PtValue | undefined","required":false},{"name":"pt:hint:readonly","type":"PtValue | undefined","required":false},{"name":"pt:hint:secondary","type":"PtValue | undefined","required":false},{"name":"pt:hint:warnings","type":"PtValue | undefined","required":false},{"name":"pt:icon","type":"PtValue | undefined","required":false},{"name":"pt:icon:disabled","type":"PtValue | undefined","required":false},{"name":"pt:icon:errors","type":"PtValue | undefined","required":false},{"name":"pt:icon:ghost","type":"PtValue | undefined","required":false},{"name":"pt:icon:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:icon:loading","type":"PtValue | undefined","required":false},{"name":"pt:icon:outline","type":"PtValue | undefined","required":false},{"name":"pt:icon:readonly","type":"PtValue | undefined","required":false},{"name":"pt:icon:secondary","type":"PtValue | undefined","required":false},{"name":"pt:icon:warnings","type":"PtValue | undefined","required":false},{"name":"pt:input","type":"PtValue | undefined","required":false},{"name":"pt:input:disabled","type":"PtValue | undefined","required":false},{"name":"pt:input:errors","type":"PtValue | undefined","required":false},{"name":"pt:input:ghost","type":"PtValue | undefined","required":false},{"name":"pt:input:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:input:loading","type":"PtValue | undefined","required":false},{"name":"pt:input:outline","type":"PtValue | undefined","required":false},{"name":"pt:input:readonly","type":"PtValue | undefined","required":false},{"name":"pt:input:secondary","type":"PtValue | undefined","required":false},{"name":"pt:input:warnings","type":"PtValue | undefined","required":false},{"name":"pt:label","type":"PtValue | undefined","required":false},{"name":"pt:label:disabled","type":"PtValue | undefined","required":false},{"name":"pt:label:errors","type":"PtValue | undefined","required":false},{"name":"pt:label:ghost","type":"PtValue | undefined","required":false},{"name":"pt:label:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:label:loading","type":"PtValue | undefined","required":false},{"name":"pt:label:outline","type":"PtValue | undefined","required":false},{"name":"pt:label:readonly","type":"PtValue | undefined","required":false},{"name":"pt:label:secondary","type":"PtValue | undefined","required":false},{"name":"pt:label:warnings","type":"PtValue | undefined","required":false},{"name":"pt:message","type":"PtValue | undefined","required":false},{"name":"pt:message:disabled","type":"PtValue | undefined","required":false},{"name":"pt:message:errors","type":"PtValue | undefined","required":false},{"name":"pt:message:ghost","type":"PtValue | undefined","required":false},{"name":"pt:message:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:message:loading","type":"PtValue | undefined","required":false},{"name":"pt:message:outline","type":"PtValue | undefined","required":false},{"name":"pt:message:readonly","type":"PtValue | undefined","required":false},{"name":"pt:message:secondary","type":"PtValue | undefined","required":false},{"name":"pt:message:warnings","type":"PtValue | undefined","required":false},{"name":"pt:prefix","type":"PtValue | undefined","required":false},{"name":"pt:prefix:disabled","type":"PtValue | undefined","required":false},{"name":"pt:prefix:errors","type":"PtValue | undefined","required":false},{"name":"pt:prefix:ghost","type":"PtValue | undefined","required":false},{"name":"pt:prefix:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:prefix:loading","type":"PtValue | undefined","required":false},{"name":"pt:prefix:outline","type":"PtValue | undefined","required":false},{"name":"pt:prefix:readonly","type":"PtValue | undefined","required":false},{"name":"pt:prefix:secondary","type":"PtValue | undefined","required":false},{"name":"pt:prefix:warnings","type":"PtValue | undefined","required":false},{"name":"pt:root","type":"PtValue | undefined","required":false},{"name":"pt:root:disabled","type":"PtValue | undefined","required":false},{"name":"pt:root:errors","type":"PtValue | undefined","required":false},{"name":"pt:root:ghost","type":"PtValue | undefined","required":false},{"name":"pt:root:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:root:loading","type":"PtValue | undefined","required":false},{"name":"pt:root:outline","type":"PtValue | undefined","required":false},{"name":"pt:root:readonly","type":"PtValue | undefined","required":false},{"name":"pt:root:secondary","type":"PtValue | undefined","required":false},{"name":"pt:root:warnings","type":"PtValue | undefined","required":false},{"name":"pt:spinner","type":"PtValue | undefined","required":false},{"name":"pt:spinner:disabled","type":"PtValue | undefined","required":false},{"name":"pt:spinner:errors","type":"PtValue | undefined","required":false},{"name":"pt:spinner:ghost","type":"PtValue | undefined","required":false},{"name":"pt:spinner:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:spinner:loading","type":"PtValue | undefined","required":false},{"name":"pt:spinner:outline","type":"PtValue | undefined","required":false},{"name":"pt:spinner:readonly","type":"PtValue | undefined","required":false},{"name":"pt:spinner:secondary","type":"PtValue | undefined","required":false},{"name":"pt:spinner:warnings","type":"PtValue | undefined","required":false},{"name":"pt:suffix","type":"PtValue | undefined","required":false},{"name":"pt:suffix:disabled","type":"PtValue | undefined","required":false},{"name":"pt:suffix:errors","type":"PtValue | undefined","required":false},{"name":"pt:suffix:ghost","type":"PtValue | undefined","required":false},{"name":"pt:suffix:hasValue","type":"PtValue | undefined","required":false},{"name":"pt:suffix:loading","type":"PtValue | undefined","required":false},{"name":"pt:suffix:outline","type":"PtValue | undefined","required":false},{"name":"pt:suffix:readonly","type":"PtValue | undefined","required":false},{"name":"pt:suffix:secondary","type":"PtValue | undefined","required":false},{"name":"pt:suffix:warnings","type":"PtValue | undefined","required":false},{"name":"readonly","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input in a readonly state."},{"name":"required","type":"boolean | undefined","required":false,"default":"false","description":"Sets the input as required."},{"name":"reverse","type":"boolean | undefined","required":false,"default":"undefined","description":"Reverses the layout. Applicable in every direction the order of the label and the input is swapped."},{"name":"rules","type":"RuleExpression<string[]>","required":false,"description":"vee-validate rules for this field. Only inside a `BbForm`."},{"name":"validationLabel","type":"string | undefined","required":false,"description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},{"name":"validationMode","type":"ValidationMode | undefined","required":false,"values":["aggressive","balanced","lazy","submit-only","submit-live"],"description":"When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only."},{"name":"variant","type":"InputVariantOf<TagVariantRegistry> | undefined","required":false,"default":"'outline'","values":["outline","secondary","none","ghost"],"description":"The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `components.BbTag.variants`."},{"name":"warnings","type":"string | string[] | undefined","required":false,"description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."}],"events":[{"name":"active","signature":"(): void","description":"Emitted when the tag input becomes active (focus/click enters it)."},{"name":"blur","signature":"(event: FocusEvent): void","description":"Emitted when the native input loses focus. Forwards the original DOM `FocusEvent`."},{"name":"change","signature":"(event: Event): void","description":"Emitted when the native input fires a change event. Forwards the original DOM `Event`."},{"name":"click","signature":"(event: MouseEvent): void","description":"Emitted when the input receives a click interaction. Forwards the original DOM `MouseEvent`."},{"name":"compositionend","signature":"(event: CompositionEvent): void","description":"An IME composition ended. Forwards the DOM `CompositionEvent`."},{"name":"compositionstart","signature":"(event: CompositionEvent): void","description":"An IME composition started. Forwards the DOM `CompositionEvent`."},{"name":"duplicate","signature":"(string: string): void","description":"Emitted when an attempt is made to add a tag that already exists."},{"name":"focus","signature":"(event: FocusEvent): void","description":"Emitted when the native input gains focus. Forwards the original DOM `FocusEvent`."},{"name":"inactive","signature":"(): void","description":"Emitted when focus/click moves outside the tag input after it was active."},{"name":"input","signature":"(event: Event): void","description":"Emitted on native input events. Forwards the original DOM `Event`."},{"name":"keydown","signature":"(event: KeyboardEvent): void","description":"Emitted for keyboard interaction. Forwards the original DOM `KeyboardEvent`."},{"name":"keyup","signature":"(event: KeyboardEvent): void","description":"Emitted when a key is released. Forwards the original DOM `KeyboardEvent`."},{"name":"max","signature":"(string: string): void","description":"Emitted when an attempt is made to add a tag while the `max` limit is already reached."},{"name":"mousedown","signature":"(event: MouseEvent): void","description":"A pointer button was pressed on the text field. Forwards the DOM `MouseEvent`."},{"name":"mouseup","signature":"(event: MouseEvent): void","description":"A pointer button was released on the text field. Forwards the DOM `MouseEvent`."},{"name":"paste","signature":"(event: ClipboardEvent): void","description":"Native clipboard paste. Forwards the DOM `ClipboardEvent`."},{"name":"update:modelValue","signature":"(value: string[]): void","description":"Emitted when the tag array changes."}],"slots":[{"name":"append","type":"Record<string, never>","description":"Content appended inside the input field wrapper, after the tag chips."},{"name":"append:outer","type":"Record<string, never>","description":"Content appended outside the input field wrapper."},{"name":"description","type":"BbTagDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},{"name":"label","type":"BbTagLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered above the input."},{"name":"prefix","type":"Record<string, never>","description":"Content rendered as an inline prefix inside the input field."},{"name":"prepend","type":"Record<string, never>","description":"Content prepended inside the input field wrapper, before the tag chips."},{"name":"prepend:outer","type":"Record<string, never>","description":"Content prepended outside the input field wrapper."},{"name":"suffix","type":"Record<string, never>","description":"Content rendered as an inline suffix inside the input field."}],"exposed":[],"models":[{"name":"modelValue","type":"string[] | undefined"}],"cssProps":[{"name":"--compensation-multiplier","value":"0.3","selector":".bb-tag__field","description":"Fraction of the shell's inner padding the chip row is pulled back by when no prepend icon precedes it (see the negative margin below)."},{"name":"--border-color","value":"per variant","selector":"pt:box","description":"The resting border, at the fixed --bb-border-w. Errors and warnings paint their frame over it, so `pt:box=\"[--border-color:…]\"` recolours the rest without hiding the state; a plain `border-*` utility on the base pt:box would hide it (ESLint `no-box-border-color`)."},{"name":"--ph","value":"var(--bb-text-muted)","selector":"pt:box","description":"Placeholder colour, one local for every field: the native `::placeholder`, BbSelect's activator text and the picker inputs' empty segments. Set it through `pt:box=\"[--ph:…]\"`; app-wide, the same entry in the global pt map."}],"pt":{"parts":[{"name":"root","description":"The field's outer container: the label, the box and the lines under it."},{"name":"label","description":"The label text above the box (the `label` prop)."},{"name":"description","description":"The muted line under the label (the `description` prop)."},{"name":"message","description":"The errors / warnings line under the box. A node of its own: it can show at the same time as `hint`."},{"name":"hint","description":"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`."},{"name":"box","description":"The bordered box around the input — border, background and radius; the `variant` paints here."},{"name":"input","description":"The native input a new tag is typed into."},{"name":"icon","description":"The content icons, prepend and append — a broadcast. Chrome (the clear ✕, a chevron, the error / warning glyph) is never in it."},{"name":"spinner","description":"The spinner inside the box while `loading`."},{"name":"prefix","description":"The `#prefix` slot's wrapper, inside the box before the input."},{"name":"suffix","description":"The `#suffix` slot's wrapper, inside the box after the input."},{"name":"clear","description":"The ✕ that empties this control (`clearable`) — one node, never a chip's own ✕."},{"name":"badge","description":"Each tag's `BbBadge` root — a broadcast resolved per tag. The badge's own ✕ is chrome, never `clear`. Not rendered in `comma` mode."},{"name":"comma","description":"Each tag in `comma` mode — a broadcast resolved per tag. Not rendered in chips mode."}],"states":[{"name":"hasValue","description":"Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`)."},{"name":"readonly","description":"Component-wide: the control is `readonly` — shown, focusable, not editable."},{"name":"disabled","description":"Component-wide: the control is `disabled`."},{"name":"warnings","description":"Component-wide: the control is in its warning state (`warnings` / `has-warnings`) and not in an error state — errors win, so the two are never on together."},{"name":"errors","description":"Component-wide: the control is in its error state (`errors` / `has-errors`, or its validation) — the message line and the box turn red."},{"name":"highlighted","description":"Per node, on `badge` / `comma`: the tag the arrow keys are on (`bb-badge--highlighted` / `bb-tag__comma--highlighted`). A cursor, not focus: focus stays in the text input."},{"name":"loading","description":"Component-wide: `loading` is on; the box shows its `spinner`."},{"name":"ghost","description":"On the field's parts: `variant: 'ghost'`. Below the real states, like every variant."},{"name":"outline","description":"On the field's parts: `variant: 'outline'`. Merged after the part's base entry and before its states, so the real states still win."},{"name":"secondary","description":"On the field's parts: `variant: 'secondary'`. Below the real states, like every variant."}]},"tree":{"bindings":[{"part":"controlAttrs","target":"input.bb-tag__input"},{"part":"input","target":"input.bb-tag__input"}],"nodes":[{"name":"CommonField","kind":"internal","vocabulary":"BbTag","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"cssProps":[{"name":"--ctrl-line","documented":true,"readBy":["bb-field__label","bb-field__input-wrapper"]}],"children":[{"name":"BbAsterisk","kind":"public"}]},{"name":"CommonFieldInput","kind":"internal","vocabulary":"BbTag","bindings":[{"part":"box","target":"span.bb-field-input__box"},{"part":"prefix","target":"span.bb-field-input__prefix"},{"part":"icon","target":"BbIcon"},{"part":"clear","target":"ClearableButton"},{"part":"spinner","target":"BbSpinner"},{"part":"suffix","target":"span.bb-field-input__suffix"}],"cssProps":[{"name":"--bg","documented":true,"readBy":["bb-field-input","bb-field-input__box"]},{"name":"--bg-hover","documented":true,"readBy":["bb-field-input__box"]},{"name":"--bg-focus","documented":true,"readBy":["bb-field-input__box"]},{"name":"--bg-disabled","documented":true,"readBy":["bb-field-input__box"]},{"name":"--fg-disabled","documented":true,"readBy":["bb-field-input__box","bb-field-input__prefix","bb-field-input__suffix","bb-field-input__prepend-icon","bb-field-input__append-icon"]},{"name":"--border-color","documented":true,"readBy":["bb-field-input","bb-field-input__box"]},{"name":"--border-focus","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ring-size","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ring-color","documented":true,"readBy":["bb-field-input__box"]},{"name":"--elev","documented":true,"readBy":["bb-field-input__box"]},{"name":"--frost","documented":true,"readBy":["bb-field-input__box"]},{"name":"--ph","documented":true},{"name":"--inside-label-clearance","documented":true,"readBy":["bb-field-input__box","bb-field-input__prefix","bb-field-input__suffix"]},{"name":"--ring-t","documented":false,"readBy":["bb-field-input__box"]}],"children":[{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"WarningIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-warning-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"ClearableButton","kind":"internal","children":[{"name":"BbIcon","kind":"public"}]},{"name":"BbIcon","kind":"public"},{"name":"BbSpinner","kind":"public"}]},{"name":"BbSmoothHeight","kind":"public"},{"name":"ChipsBox","kind":"internal","vocabulary":"BbTag","bindings":[{"part":"badge","target":"BbBadge"}],"children":[{"name":"BbBadge","kind":"public"}]},{"name":"CommaBox","kind":"internal","vocabulary":"BbTag","bindings":[{"part":"comma","target":"span.bb-tag__comma"}]}]},"css":{"classes":{"bb-tag":["","__badge","__comma","__comma--highlighted","__field","__field--active","__field--compact","__input","__input-container"]},"locals":["--characters","--color-gray-200","--compensation-multiplier"],"surface":{"stable":[{"class":"bb-tag","tag":"CommonField","part":"root"},{"class":"bb-tag__input","tag":"input","part":"input","reads":["--characters"]},{"class":"bb-tag__badge","part":"badge","reads":["--compensation-multiplier"]},{"class":"bb-tag__comma","part":"comma"},{"class":"bb-tag__comma--highlighted","state":"highlighted"}],"internal":[{"class":"bb-tag__field","tag":"CommonFieldInput"},{"class":"bb-tag__field--active","tag":"CommonFieldInput"},{"class":"bb-tag__field--compact","tag":"CommonFieldInput"},{"class":"bb-tag__input-container","tag":"span"}],"via":[{"part":"icon","component":"BbIcon"},{"part":"spinner","component":"BbSpinner"}],"lands":[{"part":"description","target":"span.bb-field__description"},{"part":"message","target":"div.bb-field__message"},{"part":"hint","target":"span.bb-field__hint"},{"part":"box","target":"span.bb-field-input__box"},{"part":"prefix","target":"span.bb-field-input__prefix"},{"part":"suffix","target":"span.bb-field-input__suffix"},{"part":"clear","target":"ClearableButton"}],"unaligned":{"parts":["label"],"states":["hasValue","readonly","disabled","warnings","errors","loading","ghost","outline","secondary"]}}},"attrTargets":["div","input"],"config":"labelMode*, validationMode*, autocomplete*, compact*, layout*, reverse*, variants","removed":[{"name":"multiple","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-tag.md","silent":true,"fix":{"kind":"remove"}},{"name":"hasWarning","new":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"direction","new":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-tag.md","silent":true,"fix":{"kind":"rename"}},{"name":"pt:item","new":null,"surface":"pt","hint":"each chip is `pt:badge`; in `comma` mode each entry is `pt:comma` (same states)","since":"3.0.0-beta.36","migration":"ai/guides/migration/v3-beta-css-classes.md","silent":true,"fix":{"kind":"manual"}},{"name":"prepend-outer","new":"prepend:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"append-outer","new":"append:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"rename"}},{"name":"vid","new":null,"hint":"a display name (v2: `vid=\"Email address\"`) is now `validation-label`; a field path (3.0 betas: `vid=\"address.city\"`) is now `name` (brackets for a native post: `address[city]`). `check --fix` picks by the value","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"byValue","display":"validationLabel","key":"name"}},{"name":"validateOn","new":"validationMode","hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","silent":true,"fix":{"kind":"manual"}}],"renamed":[{"from":"hasWarning","to":"hasWarnings","since":"3.0.0-beta.26","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"direction","to":"layout","since":"3.0.0-beta.33","migration":"ai/guides/migration/components/bb-tag.md","fix":{"kind":"rename"}},{"from":"prepend-outer","to":"prepend:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"append-outer","to":"append:outer","surface":"slot","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"rename"}},{"from":"validateOn","to":"validationMode","since":"3.0.0-beta.41","migration":"ai/guides/migration/v2-to-v3.md","fix":{"kind":"manual"},"hint":"an array of events became one mode (`aggressive` | `balanced` | `lazy` | `submit-only` | `submit-live`). The old defaults (`['blur']`, `['inactive']`, a toggle's `['update:modelValue', 'change', 'blur']`) are `balanced`, the new default: delete the prop. A text field on `['update:modelValue']` is `validation-mode=\"aggressive\"`. Set it once on `<BbForm validation-mode>` instead of per field"}]},
|
|
@@ -444,7 +449,7 @@
|
|
|
444
449
|
{"name":"GroupedListBox","group":"Selection","description":"Grouped listbox renderer for categorized options.","referenceOnly":true,"hasGuide":false,"contract":"ai/GroupedListBox.md","source":"ai/source/GroupedListBox.md","props":[{"name":"compact","type":"boolean | undefined","required":false,"default":"false","description":"Sets the listbox in a compact state."},{"name":"described","type":"boolean | undefined","required":false,"default":"false","description":"Every row carries a one-line description under its label (the owner's `itemProps` declares a `description`). Rows get a fixed two-line height and the description ellipsizes; an explicit `optionHeight` still wins."},{"name":"emptyText","type":"string | undefined","required":false,"description":"Text shown when no options are available."},{"name":"failedText","type":"string | undefined","required":false,"description":"Set while the latest items load FAILED: rendered above the listed options (a `stash` may keep rows on screen) so the failure is never silent. Internal."},{"name":"groups","type":"GroupedOptions[]","required":true,"description":"List of option groups to display."},{"name":"headerHeight","type":"number | undefined","required":false,"description":"Height of group headers (px). Defaults to 32px (24px compact; 36px / 32px on mobile viewports). An explicit value wins on every viewport."},{"name":"id","type":"string | undefined","required":false,"description":"Id applied to the `role=\"listbox\"` element itself (not the wrapper), so a combobox's `aria-controls` reference resolves to the listbox role."},{"name":"listLabel","type":"string | undefined","required":false,"description":"Plain accessible name (`aria-label`) of the `role=\"listbox\"` element, used when `listLabelledby` is not set. Internal."},{"name":"listLabelledby","type":"string | undefined","required":false,"description":"Accessible name of the `role=\"listbox\"` element: the ids that name the combobox it pops up from (`listLabelledby`), else a plain label (`listLabel`). Internal."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Shows the listbox in a loading state."},{"name":"loadingBelow","type":"boolean | undefined","required":false,"default":"false","description":"Shows the loading row BELOW the options while `loading`, instead of only when there are none: rows already known stay listed and the page fills in beneath them (BbSelect `known-items`)."},{"name":"loadingText","type":"string | undefined","required":false,"description":"Text shown while options are loading."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"false","description":"Allows multiple options to be selected simultaneously."},{"name":"open","type":"boolean | undefined","required":false,"default":"false","description":"Whether the listbox is open (visible)."},{"name":"optionHeight","type":"number | undefined","required":false,"description":"Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport."},{"name":"passthrough","type":"PtBindings<\"option\" | \"list\" | \"itemDescription\" | \"itemText\" | \"itemIcon\" | \"check\", \"disabled\" | \"selected\"> | undefined","required":false,"description":"Passthrough resolver handed down by the select popover: `list` is the `role=\"listbox\"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal."},{"name":"transitionDuration","type":"number | undefined","required":false,"default":"250","description":"Duration of open/close transition in milliseconds."}],"events":[{"name":"focused:change","signature":"(id: string | undefined): void","description":"Emitted when the keyboard-focused option changes."},{"name":"option:selected","signature":"(option: Option): void","description":"Emitted when an option is selected by the user."},{"name":"option:unselected","signature":"(option: Option): void","description":"Emitted when a previously selected option is deselected."}],"slots":[{"name":"empty","type":"object","description":"Content shown when no options are available (replaces the default \"no data\" text)."},{"name":"group","type":"GroupedListBoxGroupSlotProps<Item>","fields":["text: string","item: Item","index: number","length: number","disabled: boolean"],"description":"Replaces the default group header rendered above each group of options. A group whose `data` is `null`/`undefined` has no header, so no call."},{"name":"loading","type":"object","description":"Content shown while items are loading (replaces the default loading text)."},{"name":"option","type":"GroupedListBoxOptionSlotProps<Item>","fields":["disabled: boolean","focused: boolean","index: number","item: Item","selected: boolean","text: string","value: any","description: string"],"description":"Replaces the default rendering of each option row within a group."},{"name":"options:append","type":"object","description":"Content appended inside the options list, after the last group."},{"name":"options:prepend","type":"object","description":"Content prepended inside the options list, before the first group."}],"exposed":[],"models":[],"tree":{"bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"nodes":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]}]},"attrTargets":["span"]},
|
|
445
450
|
{"name":"GuidesComponent","group":"Layout & Utility","description":"Dev-only showcase that auto-collects examples/*.vue files with live preview and extractable source. Not part of the consumer API.","referenceOnly":true,"hasGuide":false,"contract":"ai/GuidesComponent.md","source":"ai/source/GuidesComponent.md","props":[],"events":[],"slots":[],"exposed":[],"models":[],"attrTargets":["section"]},
|
|
446
451
|
{"name":"ListBox","group":"Selection","description":"Accessible listbox interaction primitive.","referenceOnly":true,"hasGuide":false,"contract":"ai/ListBox.md","source":"ai/source/ListBox.md","props":[{"name":"compact","type":"boolean | undefined","required":false,"default":"false","description":"Sets the listbox in a compact state."},{"name":"described","type":"boolean | undefined","required":false,"default":"false","description":"Every row carries a one-line description under its label (the owner's `itemProps` declares a `description`). Rows get a fixed two-line height and the description ellipsizes; an explicit `optionHeight` still wins."},{"name":"emptyText","type":"string | undefined","required":false,"description":"Text shown when no options are available."},{"name":"failedText","type":"string | undefined","required":false,"description":"Set while the latest items load FAILED: rendered above the listed options (a `stash` may keep rows on screen) so the failure is never silent. Internal."},{"name":"groups","type":"GroupedOptions[] | undefined","required":false,"description":"Grouped option list. When provided, the grouped listbox is rendered."},{"name":"headerHeight","type":"number | undefined","required":false,"description":"Height of group headers in the listbox (px)."},{"name":"id","type":"string | undefined","required":false,"description":"Id applied to the `role=\"listbox\"` element itself (not the wrapper), so a combobox's `aria-controls` reference resolves to the listbox role."},{"name":"listLabel","type":"string | undefined","required":false,"description":"Plain accessible name (`aria-label`) of the `role=\"listbox\"` element, used when `listLabelledby` is not set. Internal."},{"name":"listLabelledby","type":"string | undefined","required":false,"description":"Accessible name of the `role=\"listbox\"` element: the ids that name the combobox it pops up from (`listLabelledby`), else a plain label (`listLabel`). Internal."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Shows the listbox in a loading state."},{"name":"loadingBelow","type":"boolean | undefined","required":false,"default":"false","description":"Shows the loading row BELOW the options while `loading`, instead of only when there are none: rows already known stay listed and the page fills in beneath them (BbSelect `known-items`)."},{"name":"loadingText","type":"string | undefined","required":false,"description":"Text shown while options are loading."},{"name":"multiple","type":"boolean | undefined","required":false,"default":"false","description":"Allows multiple options to be selected simultaneously."},{"name":"open","type":"boolean | undefined","required":false,"default":"false","description":"Whether the listbox is open (visible)."},{"name":"optionHeight","type":"number | undefined","required":false,"description":"Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport."},{"name":"options","type":"Option<Item>[] | undefined","required":false,"description":"Flat option list. Used when `groups` is not provided."},{"name":"passthrough","type":"PtBindings<\"option\" | \"list\" | \"itemDescription\" | \"itemText\" | \"itemIcon\" | \"check\", \"disabled\" | \"selected\"> | undefined","required":false,"description":"Passthrough resolver handed down by the select popover: `list` is the `role=\"listbox\"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal."},{"name":"transitionDuration","type":"number | undefined","required":false,"description":"Duration of open/close transition in milliseconds."}],"events":[{"name":"focused:change","signature":"(id: string | undefined): void","description":"Emitted when the keyboard-focused option changes."},{"name":"option:selected","signature":"(option: Option): void","description":"Emitted when an option is selected by the user."},{"name":"option:unselected","signature":"(option: Option): void","description":"Emitted when a previously selected option is deselected."}],"slots":[{"name":"empty","type":"object","description":"Content shown when no options are available (replaces the default \"no data\" text)."},{"name":"group","type":"ListBoxGroupSlotProps<Item>","fields":["text: string","item: Item","index: number","length: number","disabled: boolean"],"description":"Replaces the default group header (only used when `groups` is provided)."},{"name":"loading","type":"object","description":"Content shown while items are loading (replaces the default loading text)."},{"name":"option","type":"ListBoxOptionSlotProps<Item>","fields":["disabled: boolean","focused: boolean","index: number","item: Item","selected: boolean","text: string","value: any","description: string"],"description":"Replaces the default rendering of each option row."},{"name":"options:append","type":"object","description":"Content appended inside the options list, after the last option or group."},{"name":"options:prepend","type":"object","description":"Content prepended inside the options list, before the first option or group."}],"exposed":[],"models":[],"tree":{"nodes":[{"name":"FlatListBox","kind":"internal","vocabulary":"ListBox","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]}]},{"name":"GroupedListBox","kind":"internal","vocabulary":"ListBox","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]}]}},
|
|
447
|
-
{"name":"OptionsContainer","group":"Layout & Utility","description":"Container utility for option list composition.","referenceOnly":true,"hasGuide":false,"contract":"ai/OptionsContainer.md","source":"ai/source/OptionsContainer.md","props":[{"name":"block","type":"string","required":true,"description":"The owning group's public BEM block (`bb-checkbox-group`): the nodes are its elements (`__list`, `__loading`, `__item`, `__label`, …), named after the `pt` parts."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"error","type":"unknown","required":false,"description":"What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the empty state shows `failedText` and hands the value to the `empty` slot. Internal."},{"name":"failedText","type":"string | undefined","required":false,"description":"String displayed in the empty state while `error` is set."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Attaches a `--warnings` CSS class; suppressed when `hasErrors` is true."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility."},{"name":"indicatorReady","type":"boolean | undefined","required":false,"default":"false","description":"With a `variant`: the indicators have been measured and painted, so they may transition. Until then the list is `--no-transition`."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How one row's input and label sit together: the keywords of a field's `layout`. Placed by the `-item--<keyword>` modifier."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"false","description":"Swaps each row's input and label from their natural order."},{"name":"listBlock","type":"boolean | undefined","required":false,"default":"false","description":"The group's `block`: the rows take the list's full width (`--block`), shared equally on a line, each full width when stacked."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit inside the list."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Shows the container in a loading state."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"options","type":"Option<T>[]","required":true,"description":"List of options to render."},{"name":"passthrough","type":"PtBindings<\"label\" | \"list\" | \"icon\" | \"item\" | \"itemDescription\", RowPtState> | undefined","required":false,"description":"Passthrough resolver from the public owner: `list` (bound whole, group-wide states), `item` and `label` (per row, with its own on-state and `disabled`). The on-state goes under both `selected` and `checked`; a resolver ignores a state its component lacks. Internal."},{"name":"variant","type":"string | undefined","required":false,"description":"A tab-strip look on the list: `--strip` plus the variant's class hook (`--pill`, `--line`, a registered name), the strip and its triggers (choice-strip.css). The owning group renders the indicators."}],"events":[],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is the owning group's latest load failure, `null` when none."},{"name":"input","type":"OptionsContainerInputSlotProps<T>","fields":["index: number","option: Option<T>","labelId: string","descriptionId: string","rowStates: Partial<Record<RowPtState, boolean>>"],"description":"The actual input element for each option (e.g. radio or checkbox)."},{"name":"label","type":"OptionsContainerLabelSlotProps<T>","fields":["checked: boolean","item: T","text: string","description: string"],"description":"Replaces the default label text for each option."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[],"cssProps":[{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--strip","description":"The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-radio-group__list--strip","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-radio-group__list--strip","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-radio-group__list--strip","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-radio-group__list--strip","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-radio-group__list--strip","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-radio-group__list--strip","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-radio-group__list--strip","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-radio-group__list--strip","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-radio-group__list--strip","description":"unchecked trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"checked trigger label"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--strip","description":"checked trigger label weight (unchecked labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-radio-group__list--strip","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-radio-group__list--strip","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-radio-group__list--strip","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (inline-end edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-radio-group__list--strip","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-radio-group__list--strip","description":"The theme's resting lift, composed UNDER the indicator's own shadow"},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-radio-group__list--strip","description":"Indicator lift, painted on top of --elev"},{"name":"--list-bg","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--list-border","value":"var(--bb-border)","selector":".bb-radio-group__list--line"},{"name":"--p","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--list-r","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--trigger-r","value":"var(--bb-radius-sm)","selector":".bb-radio-group__list--line"},{"name":"--active-fw","value":"600","selector":".bb-radio-group__list--line"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-radio-group__list--line"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--indicator-r","value":"0","selector":".bb-radio-group__list--line"},{"name":"--indicator-h","value":"2px","selector":".bb-radio-group__list--line"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--line"},{"name":"--elev","value":"none","selector":".bb-radio-group__list--line"},{"name":"--list-bg","value":"var(--bb-outline)","selector":".bb-radio-group__list--outline"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--p","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-r","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-px","value":"12px","selector":".bb-radio-group__list--outline"},{"name":"--list-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--hover-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fg","value":"var(--bb-primary-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--outline"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-radio-group__list--outline"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--indicator-r","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--outline"},{"name":"--divider","value":"var(--bb-outline-border)","selector":".bb-radio-group__list--outline","description":"The frame and the lines between the segments"},{"name":"--hover-bg","value":"var(--bb-outline-hover)","selector":".bb-radio-group__list--outline","description":"An unpicked segment under the pointer"}],"attrTargets":["span"]},
|
|
452
|
+
{"name":"OptionsContainer","group":"Layout & Utility","description":"Container utility for option list composition.","referenceOnly":true,"hasGuide":false,"contract":"ai/OptionsContainer.md","source":"ai/source/OptionsContainer.md","props":[{"name":"block","type":"string","required":true,"description":"The owning group's public BEM block (`bb-checkbox-group`): the nodes are its elements (`__list`, `__loading`, `__item`, `__label`, …), named after the `pt` parts."},{"name":"emptyText","type":"string | undefined","required":false,"description":"String displayed when there are no items to display."},{"name":"error","type":"unknown","required":false,"description":"What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the empty state shows `failedText` and hands the value to the `empty` slot. Internal."},{"name":"failedText","type":"string | undefined","required":false,"description":"String displayed in the empty state while `error` is set."},{"name":"hasErrors","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},{"name":"hasWarnings","type":"boolean | undefined","required":false,"default":"false","description":"Define if the component should be in a warning state. Attaches a `--warnings` CSS class; suppressed when `hasErrors` is true."},{"name":"hideLabel","type":"boolean | undefined","required":false,"default":"false","description":"Visually hides the label of the input while maintaining accessibility."},{"name":"indicatorReady","type":"boolean | undefined","required":false,"default":"false","description":"With a `variant`: the indicators have been measured and painted, so they may transition. Until then the list is `--no-transition`."},{"name":"itemInputAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line."},{"name":"itemLabelAlign","type":"FieldCrossAlign | undefined","required":false,"values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},{"name":"itemLayout","type":"FieldLayout | undefined","required":false,"default":"'auto'","description":"How one row's input and label sit together: the keywords of a field's `layout`. Placed by the `-item--<keyword>` modifier."},{"name":"itemReverse","type":"boolean | undefined","required":false,"default":"false","description":"Swaps each row's input and label from their natural order."},{"name":"listBlock","type":"boolean | undefined","required":false,"default":"false","description":"The group's `block`: the rows take the list's full width (`--block`), shared equally on a line, each full width when stacked."},{"name":"listLayout","type":"ListLayout | undefined","required":false,"default":"'horizontal'","values":["horizontal","vertical","tiles"],"description":"How the rows sit inside the list."},{"name":"loading","type":"boolean | undefined","required":false,"default":"false","description":"Shows the container in a loading state."},{"name":"loadingText","type":"string | undefined","required":false,"description":"String displayed while items are being loaded."},{"name":"options","type":"Option<T>[]","required":true,"description":"List of options to render."},{"name":"passthrough","type":"PtBindings<\"label\" | \"list\" | \"icon\" | \"item\" | \"itemDescription\", RowPtState> | undefined","required":false,"description":"Passthrough resolver from the public owner: `list` (bound whole, group-wide states), `item` and `label` (per row, with its own on-state and `disabled`). The on-state goes under both `selected` and `checked`; a resolver ignores a state its component lacks. Internal."},{"name":"variant","type":"string | undefined","required":false,"description":"A tab-strip look on the list: `--strip` plus the variant's class hook (`--pill`, `--line`, a registered name), the strip and its triggers (choice-strip.css). The owning group renders the indicators."}],"events":[],"slots":[{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},{"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is the owning group's latest load failure, `null` when none."},{"name":"input","type":"OptionsContainerInputSlotProps<T>","fields":["index: number","option: Option<T>","labelId: string","descriptionId: string","rowStates: Partial<Record<RowPtState, boolean>>"],"description":"The actual input element for each option (e.g. radio or checkbox)."},{"name":"label","type":"OptionsContainerLabelSlotProps<T>","fields":["checked: boolean","item: T","text: string","description: string"],"description":"Replaces the default label text for each option."},{"name":"loading","type":"object","description":"Content shown while options are loading (replaces the default loading text)."},{"name":"prepend","type":"object","description":"Content rendered before the first option, inside the options container."}],"exposed":[],"models":[],"cssProps":[{"name":"--list-bg","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The strip behind the triggers"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--strip","description":"The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border"},{"name":"--p","value":"3px","selector":".bb-radio-group__list--strip","description":"strip inner padding — the gutter the indicator sits in, and the scroll inset"},{"name":"--list-r","value":"var(--bb-radius)","selector":".bb-radio-group__list--strip","description":"strip corners"},{"name":"--list-h","value":"var(--bb-control-h)","selector":".bb-radio-group__list--strip","description":"strip min height"},{"name":"--fs","value":"var(--bb-fs)","selector":".bb-radio-group__list--strip","description":"trigger label size"},{"name":"--trigger-gap","value":"0px","selector":".bb-radio-group__list--strip","description":"space between triggers"},{"name":"--trigger-px","value":"10px","selector":".bb-radio-group__list--strip","description":"trigger side padding"},{"name":"--trigger-r","value":"calc(var(--list-r) - var(--p))","selector":".bb-radio-group__list--strip","description":"Trigger corners, concentric inside --list-r"},{"name":"--trigger-min-h","value":"calc(var(--list-h) - var(--p) * 2)","selector":".bb-radio-group__list--strip","description":"Trigger height inside the padded strip"},{"name":"--list-fg","value":"var(--bb-text-muted)","selector":".bb-radio-group__list--strip","description":"unchecked trigger label"},{"name":"--hover-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"hovered trigger label"},{"name":"--active-fg","value":"var(--bb-text)","selector":".bb-radio-group__list--strip","description":"checked trigger label"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--strip","description":"checked trigger label weight (unchecked labels are 500)"},{"name":"--indicator-bg","value":"var(--bb-panel)","selector":".bb-radio-group__list--strip","description":"the indicator's fill"},{"name":"--indicator-border","value":"color-mix(in oklab, var(--bb-text) 8%, transparent)","selector":".bb-radio-group__list--strip","description":"The indicator's edge"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-radio-group__list--strip","description":"The indicator's corners — the pill's, concentric inside --list-r"},{"name":"--indicator-h","value":"initial","selector":".bb-radio-group__list--strip","description":"The indicator's thickness: its height, its width on a vertical strip. `initial` fills the whole trigger box — the pill; a bar is `2px`, on the trigger's bottom edge (inline-end edge when vertical)"},{"name":"--indicator-inset","value":"0px","selector":".bb-radio-group__list--strip","description":"Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge"},{"name":"--elev","value":"var(--bb-elev)","selector":".bb-radio-group__list--strip","description":"The theme's resting lift, composed UNDER the indicator's own shadow"},{"name":"--indicator-shadow","value":"var(--bb-shadow-sm)","selector":".bb-radio-group__list--strip","description":"Indicator lift, painted on top of --elev"},{"name":"--list-bg","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--list-border","value":"var(--bb-border)","selector":".bb-radio-group__list--line"},{"name":"--p","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--list-r","value":"0px","selector":".bb-radio-group__list--line"},{"name":"--trigger-r","value":"var(--bb-radius-sm)","selector":".bb-radio-group__list--line"},{"name":"--active-fw","value":"600","selector":".bb-radio-group__list--line"},{"name":"--indicator-bg","value":"var(--bb-primary)","selector":".bb-radio-group__list--line"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--line"},{"name":"--indicator-r","value":"0","selector":".bb-radio-group__list--line"},{"name":"--indicator-h","value":"2px","selector":".bb-radio-group__list--line"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--line"},{"name":"--elev","value":"none","selector":".bb-radio-group__list--line"},{"name":"--list-bg","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--list-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--list-h","value":"calc(var(--bb-control-h) - 4px)","selector":".bb-radio-group__list--outline","description":"A button's height: BbButton `md` sits one step under the control height."},{"name":"--p","value":"0px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-gap","value":"8px","selector":".bb-radio-group__list--outline"},{"name":"--trigger-r","value":"var(--bb-radius)","selector":".bb-radio-group__list--outline"},{"name":"--trigger-px","value":"12px","selector":".bb-radio-group__list--outline"},{"name":"--list-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--hover-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fg","value":"var(--bb-outline-fg)","selector":".bb-radio-group__list--outline"},{"name":"--active-fw","value":"500","selector":".bb-radio-group__list--outline"},{"name":"--indicator-bg","value":"var(--bb-outline-pressed)","selector":".bb-radio-group__list--outline"},{"name":"--indicator-border","value":"transparent","selector":".bb-radio-group__list--outline"},{"name":"--indicator-r","value":"var(--trigger-r)","selector":".bb-radio-group__list--outline"},{"name":"--indicator-shadow","value":"none","selector":".bb-radio-group__list--outline"},{"name":"--elev","value":"none","selector":".bb-radio-group__list--outline"},{"name":"--divider","value":"var(--bb-outline-border)","selector":".bb-radio-group__list--outline","description":"Each button's frame"},{"name":"--hover-bg","value":"var(--bb-outline-hover)","selector":".bb-radio-group__list--outline","description":"An unpicked button under the pointer"}],"attrTargets":["span"]},
|
|
448
453
|
{"name":"WarningIcon","group":"Feedback","description":"Renders the reusable warning-state icon glyph used in validation UIs.","referenceOnly":true,"hasGuide":false,"contract":"ai/WarningIcon.md","source":"ai/source/WarningIcon.md","props":[],"events":[],"slots":[],"exposed":[],"models":[],"cssProps":[{"name":"--accent","value":"var(--bb-warn)","selector":".bb-warning-icon"}],"tree":{"nodes":[{"name":"BbIcon","kind":"public"}]},"css":{"classes":{"bb-warning-icon":[""]},"locals":["--accent","--color-gray-200"],"surface":{"stable":[],"internal":[{"class":"bb-warning-icon","tag":"BbIcon","reads":["--accent"]}]}},"attrTargets":["svg"]}
|
|
449
454
|
]
|
|
450
455
|
}
|