bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +1 -1
- package/dist/ai/BbDatePickerInput.md +1 -1
- package/dist/ai/BbDialog.md +3 -2
- package/dist/ai/BbDropdown.md +23 -21
- package/dist/ai/BbDropdownButton.md +13 -11
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbSelect.md +153 -43
- package/dist/ai/BbSelectPopover.md +115 -9
- package/dist/ai/BbTable.md +1 -1
- package/dist/ai/BbTimePicker.md +1 -1
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/GroupedListBox.md +2 -2
- package/dist/ai/ListBox.md +3 -2
- package/dist/ai/changelog.json +153 -7
- package/dist/ai/components.json +12 -12
- package/dist/ai/guides/agent-contract.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/v2-to-v3.md +48 -19
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdown.json +19 -17
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
- package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +44 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
- package/dist/ai/manifest/components/BbTable.tree.json +5 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +9 -2
- package/dist/ai/source/BbBadge.md +6 -2
- package/dist/ai/source/BbBreadcrumbs.md +5 -2
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +10 -6
- package/dist/ai/source/BbColorPalette.md +5 -2
- package/dist/ai/source/BbDatePickerInput.md +7 -2
- package/dist/ai/source/BbDropdown.md +91 -66
- package/dist/ai/source/BbDropdownButton.md +36 -19
- package/dist/ai/source/BbDropdownGroup.md +91 -66
- package/dist/ai/source/BbGallery.md +6 -5
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +130 -106
- package/dist/ai/source/BbSelectPopover.md +128 -21
- package/dist/ai/source/BbTable.md +42 -9
- package/dist/ai/source/BbTimePickerInput.md +6 -2
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +7 -2
- package/dist/ai/source/GroupedListBox.md +22 -3
- package/dist/ai/source/ListBox.md +7 -1
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
- package/dist/components/BbDropdown/types.d.ts +51 -53
- package/dist/components/BbDropdown/types.js +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
- package/dist/components/BbDropdownButton/types.d.ts +12 -10
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +101 -105
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +22 -13
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/llms-full.txt +477 -187
- package/dist/llms-medium.txt +25 -24
- package/dist/llms.txt +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +4 -4
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +319 -306
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +73 -12
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
package/dist/llms-full.txt
CHANGED
|
@@ -827,7 +827,7 @@ styles** — you provide the CSS, setting the same tokens the built-ins use:
|
|
|
827
827
|
```ts
|
|
828
828
|
// vite.config.ts
|
|
829
829
|
bitbossUi({
|
|
830
|
-
|
|
830
|
+
icons: { dir: './src/icons' },
|
|
831
831
|
components: { BbAlert: { variants: ['success'] } },
|
|
832
832
|
});
|
|
833
833
|
```
|
|
@@ -5565,7 +5565,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
5565
5565
|
- `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
5566
5566
|
- `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`, `DropdownFailures`
|
|
5567
5567
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
5568
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
5568
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
5569
5569
|
- `BbButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbBaseButton`, `BbSpinner`, `BbIcon`
|
|
5570
5570
|
- Also mounts `BbIcon`
|
|
5571
5571
|
|
|
@@ -5980,9 +5980,9 @@ SSR-safe): `:icon-only="{ default: true, md: false }"` is the icon below
|
|
|
5980
5980
|
as `size`'s do. Icon names come
|
|
5981
5981
|
from an installed provider set (e.g. `lucide:*`) or from your own SVGs as
|
|
5982
5982
|
`local:<file-name>` (see the icons policy) — a brand mark or a custom glyph is
|
|
5983
|
-
a `local:` file in your `
|
|
5983
|
+
a `local:` file in your `icons.dir`, not a hand-made icon component wrapped in a
|
|
5984
5984
|
`BbBaseButton`. The name below stands for your own file: it resolves only if
|
|
5985
|
-
`brand-mark.svg` sits in your `
|
|
5985
|
+
`brand-mark.svg` sits in your `icons.dir` (BbIcon's guide renders a live
|
|
5986
5986
|
`local:` demo).
|
|
5987
5987
|
|
|
5988
5988
|
```vue
|
|
@@ -12579,7 +12579,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
12579
12579
|
- `CommonFieldInput` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
12580
12580
|
- `BbColorPalette` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorPalette.md))_ — its own pt parts (`BbColorPalette`): `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs); documented CSS variables: `--edge`; also mounts `BbIcon`, `CommonPopover`
|
|
12581
12581
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
12582
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
12582
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
12583
12583
|
|
|
12584
12584
|
## See Also
|
|
12585
12585
|
|
|
@@ -13427,7 +13427,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
13427
13427
|
|
|
13428
13428
|
- `BbColorPalette` _(this component)_ — its own template binds: `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
|
|
13429
13429
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
13430
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
13430
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
13431
13431
|
- Also mounts `BbIcon`, `CommonPopover`
|
|
13432
13432
|
|
|
13433
13433
|
## See Also
|
|
@@ -14460,7 +14460,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
14460
14460
|
|
|
14461
14461
|
- `BbConfirm` _(this component)_ — its own template binds: `action` → `BbDialog`, `text` → `div.bb-confirm__text`; hands `BbDialog` the pt map `passthrough.forward(DIALOG_PARTS, BB_DIALOG_PT.states)` (ours → theirs)
|
|
14462
14462
|
- `BbDialog` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md))_ — its own pt parts (`BbDialog`): `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs); documented CSS variables: `--px`, `--close-size`
|
|
14463
|
-
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
14463
|
+
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
14464
14464
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`; also mounts `CloseButton`
|
|
14465
14465
|
|
|
14466
14466
|
## See Also
|
|
@@ -15114,7 +15114,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
15114
15114
|
- `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
15115
15115
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbCalendar`)_ — its own pt parts (`BbCalendar`): `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`; also mounts `BbBaseButton`
|
|
15116
15116
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
15117
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
15117
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
15118
15118
|
- Also mounts `CommonPopover`
|
|
15119
15119
|
|
|
15120
15120
|
## See Also
|
|
@@ -16288,7 +16288,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
16288
16288
|
- `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
16289
16289
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbCalendar`)_ — its own pt parts (`BbCalendar`): `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`; also mounts `BbBaseButton`
|
|
16290
16290
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
16291
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
16291
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
16292
16292
|
- `CommonField` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
|
|
16293
16293
|
- `CommonFieldInput` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
16294
16294
|
- Also mounts `BbIcon`
|
|
@@ -16336,7 +16336,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
16336
16336
|
| --- | --- | --- | --- |
|
|
16337
16337
|
| `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
|
|
16338
16338
|
| `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
|
|
16339
|
-
| `--icon-size` | `pt:close` | `CloseButton` | Glyph:
|
|
16339
|
+
| `--icon-size` | `pt:close` | `CloseButton` | Glyph: the ✕ is drawn on a 24 grid with a stock icon's proportions (its ink spans 12 of the 24 units, as Lucide's, Tabler's and Phosphor's do), so any set's ✕ can stand in. Its box is what the padding leaves × 22/12: the ink then spans what the old edge-to-edge glyph painted, the same optical size in the same button box (the extra box overflows the padding, unpainted). Never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
|
|
16340
|
+
| `--icon-inset` | `pt:close` | `CloseButton` | Centres that larger box on the padding box (negative: it overflows it evenly). Resolved here for the same `--size` reason. |
|
|
16340
16341
|
|
|
16341
16342
|
## Usage & Guidelines
|
|
16342
16343
|
|
|
@@ -18258,7 +18259,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
18258
18259
|
- Listed nodes are the ones `BbDialog`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbDialog.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
18259
18260
|
|
|
18260
18261
|
- `BbDialog` _(this component)_ — its own template binds: `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs)
|
|
18261
|
-
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
18262
|
+
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
18262
18263
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`; also mounts `CloseButton`
|
|
18263
18264
|
|
|
18264
18265
|
## See Also
|
|
@@ -19527,7 +19528,7 @@ What each knob does:
|
|
|
19527
19528
|
plain menu group (`'interaction'`, the default, fetches when the group is
|
|
19528
19529
|
first reached; `true` fetches on mount).
|
|
19529
19530
|
- **`minQueryLength`** (as on `BbSelect`): below that many characters
|
|
19530
|
-
(
|
|
19531
|
+
(after trimming; an emoji is one) the query counts as empty, so no `'search'` call and no filtering
|
|
19531
19532
|
run, and the field says how many characters to type (on a search-first
|
|
19532
19533
|
group, its hint row too: "Type at least 2 characters"). Slots still get the
|
|
19533
19534
|
typed `query`. No guard in the getter:
|
|
@@ -20322,8 +20323,8 @@ sheet alike; its magnifier is chrome),
|
|
|
20322
20323
|
resolved per entry — and `itemText` / `itemIcon` / `itemDescription`, that
|
|
20323
20324
|
entry's label, its prepend / append icons and its muted second line (the item's
|
|
20324
20325
|
`label` / `prepend:icon` · `append:icon` / `description`), resolved with the entry's
|
|
20325
|
-
states (a per-entry `#<value>` slot replaces the label and description), and `check`, the tick at the end of a selectable group's checked entry (a row slot never replaces it; `pt:check="hidden"` drops it and leaves a mark your slot draws alone), and `submenu`, every submenu's flyout box at any depth (desktop: a phone sheet drills into submenus in place, so style what you see there with `panel`). States: `open`, and `selected` / `disabled` per entry.
|
|
20326
|
-
|
|
20326
|
+
states (a per-entry `#<value>` slot replaces the label and description), `groupLabel` (every group's label row: its `label` and icons, the row an `onClick` group activates; `#<id>:label` replaces its content) and `groupHeader` (every `groupBy` heading, sticky; `#group` / `#<id>:group` replace its content), and `check`, the tick at the end of a selectable group's checked entry (a row slot never replaces it; `pt:check="hidden"` drops it and leaves a mark your slot draws alone), and `submenu`, every submenu's flyout box at any depth (desktop: a phone sheet drills into submenus in place, so style what you see there with `panel`). States: `open`, and `selected` / `disabled` per entry.
|
|
20327
|
+
A group's items box and the dividers are not parts.
|
|
20327
20328
|
|
|
20328
20329
|
The invoice View menu, restyled through those parts: a muted wash on
|
|
20329
20330
|
`pt:header` and on `pt:item:selected` (per entry), muted
|
|
@@ -20776,15 +20777,15 @@ it, and at the top level closes the sheet.
|
|
|
20776
20777
|
|
|
20777
20778
|
| Prop | Type | Default | Required | Description |
|
|
20778
20779
|
| --- | --- | --- | --- | --- |
|
|
20779
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `box`, `check`, `footer`, `header`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `panel`, `root`, `sheet`, `submenu`. States: `open`, `activeLink`, `default`, `destructive`, `disabled`, `exactActiveLink`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
20780
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `box`, `check`, `footer`, `groupHeader`, `groupLabel`, `header`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `panel`, `root`, `sheet`, `submenu`. States: `open`, `activeLink`, `default`, `destructive`, `disabled`, `exactActiveLink`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
20780
20781
|
| `activator` | `ElementOrComponentRef \| undefined` | | | An external activator (element or component ref): the slot isn't rendered; the listeners and ARIA (`aria-haspopup` / `aria-expanded` / `aria-controls`) go on it, so don't add your own. |
|
|
20781
|
-
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`),
|
|
20782
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet drilling into submenus a level at a time, not hover flyouts; slots and selection unchanged. Unset: the global `all.adaptive`. |
|
|
20782
20783
|
| `anchor` | `ElementOrComponentRef \| VirtualAnchor \| undefined` | `the activator element` | | What the panel positions against instead of the activator (e.g. a wrapper around it): an element, a component ref or a virtual box. It also sets a percentage `width`. Ignored with `placement="cursor"`. |
|
|
20783
|
-
| `boundary` | `string \| ElementOrComponentRef \| undefined` | | | Keeps the panel inside this element beside its trigger (sideways under a menu); away from it only the viewport flips it. An element, component ref or CSS selector (a `useTemplateRef`, not `$refs.x`).
|
|
20784
|
-
| `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a
|
|
20785
|
-
| `compact` | `boolean \| undefined` | `undefined` | | Compact density, the `BbSelect` ladder: flyout rows
|
|
20784
|
+
| `boundary` | `string \| ElementOrComponentRef \| undefined` | | | Keeps the panel inside this element beside its trigger (sideways under a menu); away from it only the viewport flips it. An element, component ref or CSS selector (a `useTemplateRef`, not `$refs.x`). In a `BbTable`: its left and right edges. |
|
|
20785
|
+
| `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a single-choice group's change closes it (an untick too, any depth), a `multiple` group stays open. `true`: every change closes it; `false`: none. |
|
|
20786
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows 44 → 36px (still a touch target). The label size stays. |
|
|
20786
20787
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component |
|
|
20787
|
-
| `eager` | `boolean \| undefined` | `false` | | Renders the
|
|
20788
|
+
| `eager` | `boolean \| undefined` | `false` | | Renders the panel (the phone sheet's too) at mount, not on the first open, and keeps its rows after a close; otherwise rows mount on each open and go after the close. |
|
|
20788
20789
|
| `emptyText` | `string \| undefined` | | | A pipeline group's no-items row; its own `emptyText` wins. Default: `common.emptyText`. |
|
|
20789
20790
|
| `enforceCoherence` | `boolean \| undefined` | `false` | | Default for pipeline groups: drop selections that are no longer present in a group's current items (e.g. after a `dependencies` re-fetch) from the selection and `v-model`. A group's own `enforceCoherence` overrides this. |
|
|
20790
20791
|
| `failedText` | `string \| undefined` | | | A pipeline group's failed-load row (its getter threw); its own `failedText` wins. Default: `common.failedText`. |
|
|
@@ -20798,8 +20799,8 @@ it, and at the top level closes the sheet.
|
|
|
20798
20799
|
| `padding` | `number \| undefined` | `10` | | Minimum empty space to keep from the edge of the page |
|
|
20799
20800
|
| `placement` | `'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'` \| `'cursor'` | `"bottom"` | | Position relative to the activator; `'cursor'` anchors at the mouse/touch point. No arrow (tooltips only). |
|
|
20800
20801
|
| `queryDebounceTime` | `number \| undefined` | `300` | | Debounce (ms) applied to the async re-fetch a `searchable` group fires as the user types. Applies to every searchable group in the menu. |
|
|
20801
|
-
| `transitionDuration` | `number \| undefined` | `150` | | The open / close transition
|
|
20802
|
-
| `trigger` | `DropdownTrigger \| DropdownTrigger[] \| undefined` | `"click"` | |
|
|
20802
|
+
| `transitionDuration` | `number \| undefined` | `150` | | The open / close transition (ms). Menus take the fast 150, not the popovers' 250: a menu is picked from and gone, quicker than a panel you read or edit. |
|
|
20803
|
+
| `trigger` | `DropdownTrigger \| DropdownTrigger[] \| undefined` | `"click"` | | What opens the menu, one or an array: `'click'` (left-click / tap) or `'contextMenu'` (right-click; long-press on mobile). |
|
|
20803
20804
|
| `width` | `string \| number \| undefined` | `"auto"` | | Width of the dropdown in pixels, percentage, or 'auto' to fit content. |
|
|
20804
20805
|
|
|
20805
20806
|
## Passthrough parts and states
|
|
@@ -20808,18 +20809,20 @@ it, and at the top level closes the sheet.
|
|
|
20808
20809
|
|
|
20809
20810
|
| Part | What it is |
|
|
20810
20811
|
| --- | --- |
|
|
20811
|
-
| `root` | The floating element
|
|
20812
|
+
| `root` | The floating element, an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet (style `panel` there). |
|
|
20812
20813
|
| `panel` | The menu surface you see — the bordered flyout box on desktop, the sheet itself on a phone. |
|
|
20813
|
-
| `sheet` | The bottom sheet
|
|
20814
|
+
| `sheet` | The phone's bottom sheet (the `BbOffCanvas` root), never the desktop surface; applied after `panel`, so it wins a conflict. |
|
|
20814
20815
|
| `header` | The menu's header band. |
|
|
20815
20816
|
| `footer` | The menu's footer band. |
|
|
20816
20817
|
| `box` | Every searchable group's search box (field and magnifier), as `box` on a field; desktop and phone. |
|
|
20817
|
-
| `input` |
|
|
20818
|
-
| `list` | The top-level
|
|
20818
|
+
| `input` | Every searchable group's search field, desktop and phone alike. Its magnifier glyph is chrome. |
|
|
20819
|
+
| `list` | The top-level entries' container between the bands (a flex column, 1px gap; on a phone, the sheet's). A submenu's list is not reached. |
|
|
20820
|
+
| `groupLabel` | Every group's label row (its `label` and icons; the row an `onClick` group activates). `#<id>:label` replaces its content. |
|
|
20821
|
+
| `groupHeader` | Every `groupBy` heading (sticky). `#group` / `#<id>:group` replace its content. |
|
|
20819
20822
|
| `item` | One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry. |
|
|
20820
20823
|
| `itemText` | An entry's label (its `label`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
20821
20824
|
| `itemIcon` | An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function. |
|
|
20822
|
-
| `itemDescription` | An entry's muted second line (its `description`)
|
|
20825
|
+
| `itemDescription` | An entry's muted second line (its `description`), with the entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
20823
20826
|
| `check` | A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. Also takes a per-item function. |
|
|
20824
20827
|
| `submenu` | Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it. |
|
|
20825
20828
|
|
|
@@ -20827,7 +20830,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
20827
20830
|
|
|
20828
20831
|
| State | When it is on |
|
|
20829
20832
|
| --- | --- |
|
|
20830
|
-
| `activeLink` | Per node, on the entry parts: an entry whose link (`to` / `href`)
|
|
20833
|
+
| `activeLink` | Per node, on the entry parts: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. |
|
|
20831
20834
|
| `exactActiveLink` | Per node, on the entry parts: an entry whose link points at the current page itself — its `exactActiveClass` is on. |
|
|
20832
20835
|
| `selected` | Per node, on the entry parts: a selectable group's checked entry. |
|
|
20833
20836
|
| `disabled` | Per node, on the entry parts: an entry that is disabled. |
|
|
@@ -20839,7 +20842,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
20839
20842
|
|
|
20840
20843
|
- `hidden` — `(): void` — Emitted once the menu has finished closing.
|
|
20841
20844
|
- `hide` — `(): void` — Emitted as soon as the menu starts to close.
|
|
20842
|
-
- `item:selected` — `(value: any): void` — The user selected a row in a selectable group, at the click
|
|
20845
|
+
- `item:selected` — `(value: any): void` — The user selected a row in a selectable group, at the click, even when a controlled companion's app then refuses it. Payload: the row's value (`item-value` for pipeline groups, else `value`).
|
|
20843
20846
|
- `item:unselected` — `(value: any): void` — The user unselected a row (a multiple toggle, a `clearable` re-click, a chip ×, or the old value a single pick replaces). Payload is the item's resolved value, matching `item:selected`.
|
|
20844
20847
|
- `show` — `(): void` — Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open.
|
|
20845
20848
|
- `shown` — `(): void` — Emitted once the menu is open and its open transition has finished.
|
|
@@ -20849,11 +20852,11 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
20849
20852
|
|
|
20850
20853
|
- `activator` — scope: `BbDropdownActivatorSlotProps` `{ disabled?: boolean; empty: boolean; loading: boolean; open: boolean; placement: Placement \| "cursor"; props: BbDropdownActivatorProps }` — The element that triggers the dropdown to open. Spread `props` onto your trigger element.
|
|
20851
20854
|
- `default` — scope: `any` — Hosts `<BbDropdownGroup>` companions. They register their group with the dropdown and render nothing themselves.
|
|
20852
|
-
- `empty` — scope: `BbDropdownPlaceholderSlotProps` `{ groupId?: string; query: string; text: string }` — Replaces the
|
|
20855
|
+
- `empty` — scope: `BbDropdownPlaceholderSlotProps` `{ groupId?: string; query: string; text: string }` — Replaces the placeholder row of a pipeline group that resolved to no items, once per empty group. A failed load is not empty: it keeps its own row (error icon, `failedText`).
|
|
20853
20856
|
- `footer` — scope: `BbDropdownEdgeSlotProps` `{ disabled?: boolean; open: boolean; placement: Placement \| "cursor" }` — Pinned below the rows, outside their scroll, with a divider — for action buttons.
|
|
20854
20857
|
- `group` — scope: `BbDropdownGroupSlotProps` `{ text: string; item: unknown; index: number; length: number; disabled: boolean }` — Every group's `groupBy` headings (`BbSelect`'s `#group` scope); `#<groupId>:group` beats it.
|
|
20855
20858
|
- `header` — scope: `BbDropdownEdgeSlotProps` `{ disabled?: boolean; open: boolean; placement: Placement \| "cursor" }` — Pinned above the rows, outside their scroll, with a divider — for a title or a filter field.
|
|
20856
|
-
- `item:append` — scope: `BbDropdownItemSlotProps` `{ description?: string; disabled?: boolean; group: BbDropdownSlotGroup; groupTitle: boolean; level: number; index: number; item: InternalItem; loading: boolean; open: boolean; placement: Placement \| "cursor"; selected: boolean; label: string; activeLink?: boolean; exactActiveLink?: boolean }` — The trailing region of every row (and group
|
|
20859
|
+
- `item:append` — scope: `BbDropdownItemSlotProps` `{ description?: string; disabled?: boolean; group: BbDropdownSlotGroup; groupTitle: boolean; level: number; index: number; item: InternalItem; loading: boolean; open: boolean; placement: Placement \| "cursor"; selected: boolean; label: string; activeLink?: boolean; exactActiveLink?: boolean }` — The trailing region of every row (and group label), replacing its `append:icon` wherever it renders. A named slot wins; a submenu chevron or a selected row's check takes its place.
|
|
20857
20860
|
- `item:prepend` — scope: `BbDropdownItemSlotProps` `{ description?: string; disabled?: boolean; group: BbDropdownSlotGroup; groupTitle: boolean; level: number; index: number; item: InternalItem; loading: boolean; open: boolean; placement: Placement \| "cursor"; selected: boolean; label: string; activeLink?: boolean; exactActiveLink?: boolean }` — The leading region of every row (and group title line), replacing its `prepend:icon` wherever it renders. A named slot wins.
|
|
20858
20861
|
- `loading` — scope: `BbDropdownPlaceholderSlotProps` `{ groupId?: string; query: string; text: string }` — Replaces the default loading placeholder row shown in a pipeline group while its async items load. Rendered once per loading group.
|
|
20859
20862
|
- `#<value>` (named from data) — scope: `BbDropdownItemSlotProps` — One row's content (label and description), by its value; in a fetched group, by its resolved `itemValue`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `activator`, `default`, `empty`, `footer`, `group`, `header`, `item`, `loading`.
|
|
@@ -20890,7 +20893,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
20890
20893
|
- `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
20891
20894
|
- `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`, `DropdownFailures`
|
|
20892
20895
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
20893
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
20896
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
20894
20897
|
- `BbButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbSpinner`, `BbIcon`
|
|
20895
20898
|
- `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
20896
20899
|
- Also mounts `CommonPopover`, `DropdownFailures`, `DropdownPipelineResolver`
|
|
@@ -21562,23 +21565,23 @@ to `false`).
|
|
|
21562
21565
|
|
|
21563
21566
|
| Prop | Type | Default | Required | Description |
|
|
21564
21567
|
| --- | --- | --- | --- | --- |
|
|
21565
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `box`, `check`, `footer`, `header`, `icon`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `main`, `panel`, `root`, `sheet`, `spinner`, `submenu`, `text`, `toggle`. States: `activeLink`, `disabled`, `exactActiveLink`, `loading`, `open`, `default`, `destructive`, `selected`, `ghost`, `link`, `outline`, `primary`, `secondary`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownButtonProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
21568
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `box`, `check`, `footer`, `groupHeader`, `groupLabel`, `header`, `icon`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `main`, `panel`, `root`, `sheet`, `spinner`, `submenu`, `text`, `toggle`. States: `activeLink`, `disabled`, `exactActiveLink`, `loading`, `open`, `default`, `destructive`, `selected`, `ghost`, `link`, `outline`, `primary`, `secondary`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownButtonProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
21566
21569
|
| `activeClass` | `string \| undefined` | | | Class to apply when the link is active. |
|
|
21567
|
-
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`),
|
|
21570
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet drilling into submenus a level at a time, not hover flyouts; slots and selection unchanged. Unset: the global `all.adaptive`. |
|
|
21568
21571
|
| `append:icon` | `string \| undefined` | | | Icon to be added on the right of the text. |
|
|
21569
21572
|
| `ariaCurrentValue` | `"time" \| "true" \| "false" \| "page" \| "step" \| "location" \| "date" \| undefined` | `'page'` | | Value passed to the attribute `aria-current` when the link is exact active. |
|
|
21570
21573
|
| `async` | `boolean \| undefined` | `false` | | Inertia: runs the visit without blocking — the page stays interactive and several async visits can be in flight at once. |
|
|
21571
21574
|
| `block` | `boolean \| undefined` | `undefined` | | Displays the component as full width. |
|
|
21572
21575
|
| `cacheFor` | `string \| number \| (string \| number)[] \| undefined` | | | Inertia: how long a prefetched response stays fresh before it is re-fetched. A single duration, or `[staleAfter, expiresAfter]`. Typed platform-agnostically (matching BbButton) so the library's types never require `@inertiajs/vue3` to be installed. |
|
|
21573
21576
|
| `cacheTags` | `string \| string[] \| undefined` | | | Inertia: tags to file this visit's prefetch cache under, so a later request can invalidate the whole tagged group. |
|
|
21574
|
-
| `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a
|
|
21575
|
-
| `compact` | `boolean \| undefined` | `false` | | Compact density, the `BbSelect` ladder: flyout rows
|
|
21577
|
+
| `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a single-choice group's change closes it (an untick too, any depth), a `multiple` group stays open. `true`: every change closes it; `false`: none. |
|
|
21578
|
+
| `compact` | `boolean \| undefined` | `false` | | Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows 44 → 36px (still a touch target). The label size stays. |
|
|
21576
21579
|
| `component` | `string \| undefined` | | | Inertia: the page component this visit resolves to. Rarely set by hand — the server normally decides it. |
|
|
21577
21580
|
| `data` | `object \| undefined` | | | Request payload forwarded to Inertia when navigating via `href` in an Inertia-enabled app. Ignored when not using Inertia. |
|
|
21578
21581
|
| `disableAutoLoading` | `boolean \| undefined` | `false` | | Disables the automatic loading state that tracks async actions (enabled by default). Only affects the main action button: the split toggle half still mirrors the dropdown's internal async-action loading state. |
|
|
21579
21582
|
| `disabled` | `boolean \| undefined` | `false` | | Disables both halves: the main button and the menu toggle. |
|
|
21580
21583
|
| `download` | `string \| boolean \| undefined` | | | 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`. |
|
|
21581
|
-
| `eager` | `boolean \| undefined` | `false` | | Renders the
|
|
21584
|
+
| `eager` | `boolean \| undefined` | `false` | | Renders the panel (the phone sheet's too) at mount, not on the first open, and keeps its rows after a close; otherwise rows mount on each open and go after the close. |
|
|
21582
21585
|
| `exactActiveClass` | `string \| undefined` | | | Class to apply when the link is exact active. |
|
|
21583
21586
|
| `except` | `string[] \| undefined` | | | Inertia: the inverse of `only` — properties to EXCLUDE from a partial reload. Pass one or the other, not both. |
|
|
21584
21587
|
| `external` | `boolean \| undefined` | `false` | | 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`. |
|
|
@@ -21622,7 +21625,7 @@ to `false`).
|
|
|
21622
21625
|
| `text` | `string \| undefined` | | | Text content of the component. |
|
|
21623
21626
|
| `to` | `string \| et \| X \| undefined` | | | Route Location the link should navigate to when clicked on. |
|
|
21624
21627
|
| `toggle:icon` | `string \| undefined` | | | Replaces the chevron shown inside the dropdown toggle button. A constrained alternative to a slot: only the toggle's icon changes, so the button keeps its semantics. Named after the part it sits in (the `toggle`), the way `prepend:icon` / `append:icon` name theirs. |
|
|
21625
|
-
| `transitionDuration` | `number \| undefined` | `150` | | The open / close transition
|
|
21628
|
+
| `transitionDuration` | `number \| undefined` | `150` | | The open / close transition (ms). Menus take the fast 150, not the popovers' 250: a menu is picked from and gone, quicker than a panel you read or edit. |
|
|
21626
21629
|
| `type` | `"button" \| "reset" \| "submit" \| undefined` | | | Gets the classification and default behavior of the button. |
|
|
21627
21630
|
| `variant` | `'outline'` \| `'primary'` \| `'destructive'` \| `'secondary'` \| `'none'` \| `'ghost'` \| `'link'` | ``components.BbButton.variant`, else `'primary'`` | | Visual variant shared by both buttons of the split control. `'none'` takes no look (you own hover, focus and disabled); register a real one with the plugin's `components.BbButton.variants` and style `.bb-button--<name>`. Unset: `BbButton`'s `components` entry (the app's or a config scope's). |
|
|
21628
21631
|
| `viewTransition` | `boolean \| undefined` | `false` | | Inertia: run the page swap inside a View Transition, where the browser supports one. |
|
|
@@ -21647,10 +21650,12 @@ to `false`).
|
|
|
21647
21650
|
| `box` | A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`. |
|
|
21648
21651
|
| `input` | A searchable group's search field in the menu — a broadcast, every searchable group's field — handed to the `BbDropdown` as its own `pt:input`. |
|
|
21649
21652
|
| `list` | The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`. |
|
|
21653
|
+
| `groupLabel` | Every menu group's label row (the menu's own). |
|
|
21654
|
+
| `groupHeader` | Every `groupBy` heading in the menu (the menu's own). |
|
|
21650
21655
|
| `item` | One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry. |
|
|
21651
21656
|
| `itemText` | An entry's label (its `label`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
21652
21657
|
| `itemIcon` | An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function. |
|
|
21653
|
-
| `itemDescription` | An entry's muted second line (its `description`)
|
|
21658
|
+
| `itemDescription` | An entry's muted second line (its `description`), with the entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
21654
21659
|
| `check` | A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. Also takes a per-item function. |
|
|
21655
21660
|
| `submenu` | Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it. |
|
|
21656
21661
|
|
|
@@ -21658,10 +21663,10 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
21658
21663
|
|
|
21659
21664
|
| State | When it is on |
|
|
21660
21665
|
| --- | --- |
|
|
21661
|
-
| `activeLink` | Component-wide while the main button
|
|
21662
|
-
| `exactActiveLink` | Component-wide while the main button
|
|
21666
|
+
| `activeLink` | Component-wide while the main button links to the current page or an ancestor (its `activeClass` is on); per node, on the entry parts: an entry whose link does. The weakest state. |
|
|
21667
|
+
| `exactActiveLink` | Component-wide while the main button links to the current page itself (its `exactActiveClass` is on); per node, on the entry parts. |
|
|
21663
21668
|
| `selected` | Per node, on the entry parts only (`item`, `itemText`, `itemIcon`, `itemDescription`, `check`): a selectable group's checked entry. `pt:root:selected` is a type error, not a silent no-op. |
|
|
21664
|
-
| `disabled` | Component-wide while the control is `disabled`;
|
|
21669
|
+
| `disabled` | Component-wide while the control is `disabled`; per node, on the entry parts: a disabled entry. |
|
|
21665
21670
|
| `open` | Component-wide: the menu is open. |
|
|
21666
21671
|
| `loading` | Component-wide: `loading` is on — the main button shows its spinner. |
|
|
21667
21672
|
| `default` | Per entry, on the entry parts: an entry with `variant: 'default'` or none. Merged after the part's base entry and before its states, so the real states still win. |
|
|
@@ -21722,7 +21727,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
21722
21727
|
- `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
21723
21728
|
- `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbButton`, `BbDropdownList`, `DropdownFailures`
|
|
21724
21729
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
21725
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
21730
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
21726
21731
|
|
|
21727
21732
|
## See Also
|
|
21728
21733
|
|
|
@@ -25532,7 +25537,8 @@ marker stays consistent with the rules.
|
|
|
25532
25537
|
| --- | --- | --- | --- |
|
|
25533
25538
|
| `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
|
|
25534
25539
|
| `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
|
|
25535
|
-
| `--icon-size` | `pt:close` | `CloseButton` | Glyph:
|
|
25540
|
+
| `--icon-size` | `pt:close` | `CloseButton` | Glyph: the ✕ is drawn on a 24 grid with a stock icon's proportions (its ink spans 12 of the 24 units, as Lucide's, Tabler's and Phosphor's do), so any set's ✕ can stand in. Its box is what the padding leaves × 22/12: the ink then spans what the old edge-to-edge glyph painted, the same optical size in the same button box (the extra box overflows the padding, unpainted). Never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
|
|
25541
|
+
| `--icon-inset` | `pt:close` | `CloseButton` | Centres that larger box on the padding box (negative: it overflows it evenly). Resolved here for the same `--size` reason. |
|
|
25536
25542
|
|
|
25537
25543
|
## Usage & Guidelines
|
|
25538
25544
|
|
|
@@ -27536,7 +27542,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
27536
27542
|
- Listed nodes are the ones `BbGallery`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbGallery.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
27537
27543
|
|
|
27538
27544
|
- `BbGallery` _(this component)_ — its own template binds: `header` → `div.bb-gallery__header`, `title` → `p.bb-gallery__title`, `close` → `CloseButton`, `slide` → `figure.bb-gallery__slide`, `image` → `img.bb-gallery__image`, `prev` → `button.bb-gallery__nav`, `next` → `button.bb-gallery__nav`, `footer` → `div.bb-gallery__footer`, `caption` → `p.bb-gallery__caption`, `more` → `button.bb-gallery__more`, `counter` → `p.bb-gallery__counter`
|
|
27539
|
-
- `CloseButton` _(internal — not importable, reach it through `BbGallery`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
27545
|
+
- `CloseButton` _(internal — not importable, reach it through `BbGallery`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
27540
27546
|
- Also mounts `BbIcon`
|
|
27541
27547
|
|
|
27542
27548
|
## See Also
|
|
@@ -28407,7 +28413,7 @@ The `icon` prop takes a name in one of three forms:
|
|
|
28407
28413
|
ships no icon package of its own — install the ones you want. Prefer `lucide:`
|
|
28408
28414
|
for UI glyphs when no direction is given, so one visual language stays
|
|
28409
28415
|
consistent.
|
|
28410
|
-
- **`local:name`** — an SVG in the configured `
|
|
28416
|
+
- **`local:name`** — an SVG in the configured `icons.dir` (brand marks, custom
|
|
28411
28417
|
illustrations). Each `.svg` file becomes `local:<basename>`.
|
|
28412
28418
|
- **bare `name`** — an unprefixed name **normalizes to `local:`**; it never
|
|
28413
28419
|
searches provider sets. Prefer writing the prefix anyway: the Iconify editor
|
|
@@ -28417,7 +28423,7 @@ The `icon` prop takes a name in one of three forms:
|
|
|
28417
28423
|
the same shape as `mdi:home` / `lucide:check`, so the source of every icon is
|
|
28418
28424
|
legible without inferring it from a missing prefix.
|
|
28419
28425
|
|
|
28420
|
-
**Split `
|
|
28426
|
+
**Split `icons.dir` by kind.** Keep single-colour UI glyphs, which paint in
|
|
28421
28427
|
`currentColor` and follow the text around them, in `icons/ui/`, and
|
|
28422
28428
|
fixed-colour logos, which carry their own fills, in `icons/brand/`. The folder
|
|
28423
28429
|
is scanned recursively, so both are found, but a name is the file's
|
|
@@ -28458,13 +28464,13 @@ guess a name. See the Icons Policy for the discovery workflow and the heroicons
|
|
|
28458
28464
|
</div>
|
|
28459
28465
|
```
|
|
28460
28466
|
|
|
28461
|
-
`local:*` is for brand art in `
|
|
28467
|
+
`local:*` is for brand art in `icons.dir`. The deploy card below cycles stages
|
|
28462
28468
|
with full `local:` literals from that folder — the canonical brand-mark demo.
|
|
28463
28469
|
|
|
28464
28470
|
**Every `local:` name in this guide is one of _this repository's_ fixture SVGs**
|
|
28465
28471
|
(`clock`, `loader`, `check_circle`, `alert_circle`, …). They are illustrative,
|
|
28466
28472
|
not a shipped set: copy the pattern, not the names. In your project a
|
|
28467
|
-
`local:` name resolves only if `<name>.svg` exists in your own `
|
|
28473
|
+
`local:` name resolves only if `<name>.svg` exists in your own `icons.dir`; a
|
|
28468
28474
|
missing one renders the placeholder and logs which file is absent.
|
|
28469
28475
|
|
|
28470
28476
|
**Brand marks via local: — deploy stages**
|
|
@@ -28500,11 +28506,11 @@ type Stage = {
|
|
|
28500
28506
|
tone: string;
|
|
28501
28507
|
};
|
|
28502
28508
|
|
|
28503
|
-
// Brand marks via `local:*` (files in
|
|
28509
|
+
// Brand marks via `local:*` (files in icons.dir). Each stage owns a full static
|
|
28504
28510
|
// literal so the production scanner bundles it — never `local:${name}`. The
|
|
28505
28511
|
// glyph is decorative beside the stage label, so no `label` prop.
|
|
28506
28512
|
const stages: Stage[] = [
|
|
28507
|
-
// `local:*` names resolve against YOUR `
|
|
28513
|
+
// `local:*` names resolve against YOUR `icons.dir` — these four are this
|
|
28508
28514
|
// repository's fixture SVGs. Copied into another project, each one throws
|
|
28509
28515
|
// at mount until a `<name>.svg` of your own exists there (or swap them for
|
|
28510
28516
|
// `lucide:*` names, which need no files).
|
|
@@ -28543,13 +28549,13 @@ Provider icons ship only when the plugin can see them. It reads the **whole
|
|
|
28543
28549
|
project** as bytes — every file under the Vite root, PHP and JSON and SQL
|
|
28544
28550
|
included, minus gitignored, hidden, binary, `node_modules`/`vendor` and
|
|
28545
28551
|
excluded paths — for `provider:name` literals, and bundles exactly those (plus
|
|
28546
|
-
`
|
|
28552
|
+
`icons.whitelist`). `local:` ships everything. **Dev registers the same set**, so
|
|
28547
28553
|
a name assembled at runtime (`` `lucide:${kind}` ``) renders the placeholder
|
|
28548
28554
|
on first render in dev, not after deploy. Map dynamic state to full literals —
|
|
28549
28555
|
a lookup object of complete names, exactly as the deploy-stages companion does
|
|
28550
28556
|
(`stages[i].icon` holds `'local:clock'`, not a concatenation) — or, when the
|
|
28551
28557
|
name really is composed at runtime or comes from a database, list it in the
|
|
28552
|
-
plugin's `
|
|
28558
|
+
plugin's `icons.whitelist` (`'lucide:circle-check'`, or a glob such as
|
|
28553
28559
|
`'lucide:calendar-*'`). An icon used only in a `.stories.ts` / `.test.ts` file
|
|
28554
28560
|
is scanned like any other file.
|
|
28555
28561
|
|
|
@@ -28562,7 +28568,7 @@ const STATUS_ICON = {
|
|
|
28562
28568
|
failed: 'lucide:circle-x',
|
|
28563
28569
|
} as const;
|
|
28564
28570
|
// Wrong: `lucide:${status}` — never scanned; placeholder in dev AND prod
|
|
28565
|
-
// (unless every value is in the plugin's `
|
|
28571
|
+
// (unless every value is in the plugin's `icons.whitelist`).
|
|
28566
28572
|
defineProps<{ status: 'paid' | 'pending' | 'failed' }>();
|
|
28567
28573
|
</script>
|
|
28568
28574
|
|
|
@@ -28657,7 +28663,7 @@ deploy-stages companions both color the row wrapper; the icon tracks it.
|
|
|
28657
28663
|
(a setup fault — a merely missing NAME never throws, it renders the
|
|
28658
28664
|
placeholder).
|
|
28659
28665
|
Provider sets (`@iconify-json/*`) are auto-discovered from `node_modules`;
|
|
28660
|
-
`local:*` comes from `
|
|
28666
|
+
`local:*` comes from `icons.dir` (default `./assets/icons` on Nuxt).
|
|
28661
28667
|
- **SSR / Nuxt** — icons resolve during `onServerPrefetch`, so server-rendered
|
|
28662
28668
|
markup contains the glyph on first paint (no hydration flash). `BbIcon` carries
|
|
28663
28669
|
no navigation surface — it is a pure visual primitive.
|
|
@@ -30219,7 +30225,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
30219
30225
|
| --- | --- | --- | --- |
|
|
30220
30226
|
| `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
|
|
30221
30227
|
| `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
|
|
30222
|
-
| `--icon-size` | `pt:close` | `CloseButton` | Glyph:
|
|
30228
|
+
| `--icon-size` | `pt:close` | `CloseButton` | Glyph: the ✕ is drawn on a 24 grid with a stock icon's proportions (its ink spans 12 of the 24 units, as Lucide's, Tabler's and Phosphor's do), so any set's ✕ can stand in. Its box is what the padding leaves × 22/12: the ink then spans what the old edge-to-edge glyph painted, the same optical size in the same button box (the extra box overflows the padding, unpainted). Never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
|
|
30229
|
+
| `--icon-inset` | `pt:close` | `CloseButton` | Centres that larger box on the padding box (negative: it overflows it evenly). Resolved here for the same `--size` reason. |
|
|
30223
30230
|
|
|
30224
30231
|
## Usage & Guidelines
|
|
30225
30232
|
|
|
@@ -31744,7 +31751,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
31744
31751
|
- Listed nodes are the ones `BbOffCanvas`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbOffCanvas.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
31745
31752
|
|
|
31746
31753
|
- `BbOffCanvas` _(this component)_ — its own template binds: `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`
|
|
31747
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
31754
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
31748
31755
|
|
|
31749
31756
|
## See Also
|
|
31750
31757
|
|
|
@@ -33432,7 +33439,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
33432
33439
|
|
|
33433
33440
|
- `BbPopover` _(this component)_ — its own template binds: `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-popover__header`, `content` → `div.bb-popover__content`, `footer` → `div.bb-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', content: 'content', footer: 'footer', panel: 'root', sheet: 'root', }` (ours → theirs)
|
|
33434
33441
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
33435
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
33442
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
33436
33443
|
- Also mounts `CommonPopover`
|
|
33437
33444
|
|
|
33438
33445
|
## See Also
|
|
@@ -36518,6 +36525,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
36518
36525
|
| `pt:footer` | `pt:footer` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
|
|
36519
36526
|
| `pt:input` | `pt:input` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
|
|
36520
36527
|
| `pt:list` | `pt:list` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
|
|
36528
|
+
| `pt:groupHeader` | `pt:groupHeader` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
|
|
36521
36529
|
| `pt:option` | `pt:option` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
|
|
36522
36530
|
| `pt:itemText` | `pt:itemText` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
|
|
36523
36531
|
| `pt:itemIcon` | `pt:itemIcon` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
|
|
@@ -37569,7 +37577,7 @@ much to type.
|
|
|
37569
37577
|
/>
|
|
37570
37578
|
```
|
|
37571
37579
|
|
|
37572
|
-
Below the minimum (
|
|
37580
|
+
Below the minimum (characters after trimming; an emoji is one) the query counts as empty: no
|
|
37573
37581
|
`'search'` call, no filtering of array items, the search-first hint says
|
|
37574
37582
|
"Type at least 3 characters", and a prefilled list stays unfiltered. Loads for
|
|
37575
37583
|
other reasons still run, so a seeded model resolves. Enter does not emit
|
|
@@ -38545,6 +38553,63 @@ const open = ref(false);
|
|
|
38545
38553
|
</template>
|
|
38546
38554
|
```
|
|
38547
38555
|
|
|
38556
|
+
### Reading and restoring the search: `v-model:query`
|
|
38557
|
+
|
|
38558
|
+
`v-model:query` is the search field's text. Bound, your ref reads it and sets
|
|
38559
|
+
it:
|
|
38560
|
+
|
|
38561
|
+
- **It mirrors the field, raw.** Every committed keystroke is written back as
|
|
38562
|
+
typed, spaces included (an IME composition once, when it ends), and `''`
|
|
38563
|
+
whenever the component empties the field itself: closing, a pick that
|
|
38564
|
+
closes, `option:add` (Enter or the create row), the ✕.
|
|
38565
|
+
- **A write is a search the user didn't type.** It runs at once, without
|
|
38566
|
+
the debounce, and supersedes a scheduled or in-flight search (its late
|
|
38567
|
+
answer never lands). Written while closed, it is held for the next open:
|
|
38568
|
+
`query = 'Rossi'; open = true` sends one request, for "Rossi". A write
|
|
38569
|
+
never opens the panel or moves focus, and is never echoed back.
|
|
38570
|
+
- **A write that can't land writes `''` back:** no search field
|
|
38571
|
+
(`disable-writing`), `disabled`, `readonly`, a refused open.
|
|
38572
|
+
- Unbound, a static `:query` seeds the next open.
|
|
38573
|
+
|
|
38574
|
+
The case it is for: bring a search back. The create row hands the query to
|
|
38575
|
+
`option:add` and empties the field; if the user cancels the dialog, put the
|
|
38576
|
+
query back and reopen, and "Create «Rossi»" is there again:
|
|
38577
|
+
|
|
38578
|
+
```vue
|
|
38579
|
+
<script setup lang="ts">
|
|
38580
|
+
import { ref } from 'vue';
|
|
38581
|
+
import { BbSelect, useBbDialog } from 'bitboss-ui';
|
|
38582
|
+
import CreatePersonDialog from './CreatePersonDialog.vue';
|
|
38583
|
+
|
|
38584
|
+
const person = ref<number | null>(null);
|
|
38585
|
+
const open = ref(false);
|
|
38586
|
+
const query = ref('');
|
|
38587
|
+
const createPerson = useBbDialog(CreatePersonDialog);
|
|
38588
|
+
|
|
38589
|
+
const onAdd = async (text: string) => {
|
|
38590
|
+
const result = await createPerson.show({ name: text });
|
|
38591
|
+
if (result.completed) return void (person.value = result.value.id);
|
|
38592
|
+
query.value = text;
|
|
38593
|
+
open.value = true;
|
|
38594
|
+
};
|
|
38595
|
+
</script>
|
|
38596
|
+
|
|
38597
|
+
<template>
|
|
38598
|
+
<BbSelect
|
|
38599
|
+
v-model="person"
|
|
38600
|
+
v-model:open="open"
|
|
38601
|
+
v-model:query="query"
|
|
38602
|
+
item-text="name"
|
|
38603
|
+
item-value="id"
|
|
38604
|
+
:items="searchPeople"
|
|
38605
|
+
label="Person"
|
|
38606
|
+
@option:add="onAdd"
|
|
38607
|
+
/>
|
|
38608
|
+
</template>
|
|
38609
|
+
```
|
|
38610
|
+
|
|
38611
|
+
Every state, with its test: the BbSelectPopover guide, § Reading and restoring the search.
|
|
38612
|
+
|
|
38548
38613
|
### Events and v-model
|
|
38549
38614
|
|
|
38550
38615
|
- `update:modelValue` — the resolved value (single) or array (multiple), on
|
|
@@ -38679,7 +38744,7 @@ the `BbTextInput` guide.
|
|
|
38679
38744
|
|
|
38680
38745
|
`pt` reaches a named part of the control with a class list — or, in the
|
|
38681
38746
|
object form, a style and attributes — optionally only while a state is on.
|
|
38682
|
-
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `activator` (the button that opens the options — BbSelect's control; the text controls call theirs `input`), `input` (the search field in the options surface, when it shows one), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the options surface you see — the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet on a phone only), `option` (one listbox option, a broadcast), `itemText` (that option's label), `itemIcon` (its `itemProps` prepend / append icons — never the field's `icon`) and `itemDescription` (its muted second line from `itemProps.description` — never the field's `description`), and `check` (the tick on a chosen option, at the row's end), all with the option's `selected` / `disabled`; a custom `#option` slot replaces the label and description, never the tick. With `multiple`, the selected values are `badge` (each chip's `BbBadge` root, in the field and on the phone sheet — in the field, not rendered when the `#chip` slot replaces it; the sheet's chips are always badges) or `comma` (each entry in `comma` mode) — the same two words as `BbTag`. The chevron and the clear ✕ are chrome.
|
|
38747
|
+
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `activator` (the button that opens the options — BbSelect's control; the text controls call theirs `input`), `input` (the search field in the options surface, when it shows one), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the options surface you see — the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet on a phone only), `option` (one listbox option, a broadcast), `itemText` (that option's label), `itemIcon` (its `itemProps` prepend / append icons — never the field's `icon`) and `itemDescription` (its muted second line from `itemProps.description` — never the field's `description`), and `check` (the tick on a chosen option, at the row's end), all with the option's `selected` / `disabled`; a custom `#option` slot replaces the label and description, never the tick. `groupHeader` is every `group-by` heading's box (sticky; `#group` replaces its content, never the box), `disabled` while every option of its group is. With `multiple`, the selected values are `badge` (each chip's `BbBadge` root, in the field and on the phone sheet — in the field, not rendered when the `#chip` slot replaces it; the sheet's chips are always badges) or `comma` (each entry in `comma` mode) — the same two words as `BbTag`. The chevron and the clear ✕ are chrome.
|
|
38683
38748
|
States: `errors`, `warnings` (never beside errors), `loading`, `disabled`, `readonly`, `hasValue` (written `pt:box:has-value`). Plus `open` (the options surface is showing) and `selected`, resolved per option. A name outside that list is a type error and an
|
|
38684
38749
|
ESLint error.
|
|
38685
38750
|
|
|
@@ -38750,6 +38815,54 @@ const assignee = ref<string | null>('ada');
|
|
|
38750
38815
|
</script>
|
|
38751
38816
|
```
|
|
38752
38817
|
|
|
38818
|
+
**A heading that reads as a row.** `pt:group-header` styles the `group-by`
|
|
38819
|
+
heading's box; its label is the box's child, so `*:` reaches it: a hairline
|
|
38820
|
+
above each region, and the label in an option's colour, weight and size.
|
|
38821
|
+
|
|
38822
|
+
**pt:group-header — region headings that read as rows**
|
|
38823
|
+
|
|
38824
|
+
```vue
|
|
38825
|
+
<template>
|
|
38826
|
+
<div
|
|
38827
|
+
class="grid max-w-sm gap-3 rounded-(--bb-radius) border border-(--bb-border) p-3"
|
|
38828
|
+
>
|
|
38829
|
+
<div>
|
|
38830
|
+
<h3 class="text-sm font-medium">Ship from</h3>
|
|
38831
|
+
<p class="text-xs text-(--bb-text-muted)">
|
|
38832
|
+
Warehouses by region; each region reads as a row.
|
|
38833
|
+
</p>
|
|
38834
|
+
</div>
|
|
38835
|
+
<BbSelect
|
|
38836
|
+
v-model="warehouse"
|
|
38837
|
+
compact
|
|
38838
|
+
group-by="region"
|
|
38839
|
+
:items="warehouses"
|
|
38840
|
+
label="Warehouse"
|
|
38841
|
+
placeholder="Pick a warehouse"
|
|
38842
|
+
pt:group-header="border-t border-(--bb-border) *:font-normal *:text-(--bb-text) *:text-[length:var(--bb-fs)]"
|
|
38843
|
+
/>
|
|
38844
|
+
</div>
|
|
38845
|
+
</template>
|
|
38846
|
+
|
|
38847
|
+
<script setup lang="ts">
|
|
38848
|
+
import { ref } from 'vue';
|
|
38849
|
+
import { BbSelect } from 'bitboss-ui';
|
|
38850
|
+
|
|
38851
|
+
type Warehouse = { label: string; value: string; region: string };
|
|
38852
|
+
|
|
38853
|
+
// `pt:group-header` is the heading's box: a hairline above it, and through
|
|
38854
|
+
// `*:` its label takes an option's colour, weight and size.
|
|
38855
|
+
const warehouses: Warehouse[] = [
|
|
38856
|
+
{ label: 'Milano Linate', value: 'lin', region: 'North' },
|
|
38857
|
+
{ label: 'Torino Corso Francia', value: 'tor', region: 'North' },
|
|
38858
|
+
{ label: 'Roma Tiburtina', value: 'rom', region: 'Centre' },
|
|
38859
|
+
{ label: 'Firenze Osmannoro', value: 'fir', region: 'Centre' },
|
|
38860
|
+
];
|
|
38861
|
+
|
|
38862
|
+
const warehouse = ref<string | null>(null);
|
|
38863
|
+
</script>
|
|
38864
|
+
```
|
|
38865
|
+
|
|
38753
38866
|
**Chips that look like your app's badges.** Each chip is a `BbBadge` (the
|
|
38754
38867
|
`secondary` one), so `pt:badge` takes the same classes your badges use, or a
|
|
38755
38868
|
badge variant's class: `pt:badge="bb-badge--destructive"`. Mind the cascade:
|
|
@@ -38928,44 +39041,45 @@ it: [passthrough guide § Typing `pt` in `<script>`](https://llms-bitboss-ui.bit
|
|
|
38928
39041
|
|
|
38929
39042
|
- `v-model` — type: `any`
|
|
38930
39043
|
- `v-model:open` — type: `boolean \| undefined`
|
|
39044
|
+
- `v-model:query` — type: `string \| undefined`
|
|
38931
39045
|
|
|
38932
39046
|
## Props
|
|
38933
39047
|
|
|
38934
39048
|
| Prop | Type | Default | Required | Description |
|
|
38935
39049
|
| --- | --- | --- | --- | --- |
|
|
38936
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `badge`, `box`, `check`, `clear`, `comma`, `description`, `footer`, `header`, `hint`, `icon`, `input`, `itemDescription`, `itemIcon`, `itemText`, `label`, `list`, `message`, `option`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectProps<Row>['pt']` (`BbSelectProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
38937
|
-
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | |
|
|
39050
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `badge`, `box`, `check`, `clear`, `comma`, `description`, `footer`, `groupHeader`, `header`, `hint`, `icon`, `input`, `itemDescription`, `itemIcon`, `itemText`, `label`, `list`, `message`, `option`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectProps<Row>['pt']` (`BbSelectProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
39051
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | `true`: on mobile viewports the options open in a bottom sheet, not a popover (desktop keeps the popover). Unset: the global `all.adaptive`. |
|
|
38938
39052
|
| `append:icon` | `string \| undefined` | `the chevron-down glyph` | | Name of the icon to be added at the end of the input. |
|
|
38939
39053
|
| `autocomplete` | `string \| undefined` | | | Guides to the browser as to the type of information expected in the field. |
|
|
38940
39054
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
38941
|
-
| `clearable` | `boolean \| undefined` | `false` | |
|
|
38942
|
-
| `comma` | `boolean \| undefined` | `false` | |
|
|
39055
|
+
| `clearable` | `boolean \| undefined` | `false` | | A clear button while the field has a value and is interacted with; a single select also clears when its pick is clicked again. |
|
|
39056
|
+
| `comma` | `boolean \| undefined` | `false` | | Shows the picks as one comma-separated string; no close button to deselect one there. |
|
|
38943
39057
|
| `compact` | `boolean \| undefined` | `undefined` | | 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`). |
|
|
38944
39058
|
| `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
|
|
38945
39059
|
| `depsDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to dependencies. |
|
|
38946
39060
|
| `description` | `string \| undefined` | | | 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`. |
|
|
38947
39061
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
38948
|
-
| `disableWriting` | `boolean \| "auto" \| "mobile" \| "desktop" \| undefined` | `'auto'` | | Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform
|
|
39062
|
+
| `disableWriting` | `boolean \| "auto" \| "mobile" \| "desktop" \| undefined` | `'auto'` | | Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform. `'auto'`, per open: for an array `items` shorter than the plugin's `autoDisableWritingThreshold` (6), never for a provider or with an `option:add` listener. |
|
|
38949
39063
|
| `emptyText` | `string \| undefined` | | | String displayed when there are no items to display. |
|
|
38950
|
-
| `enforceCoherence` | `boolean \| undefined` | `false` | | After each successful non-search load,
|
|
39064
|
+
| `enforceCoherence` | `boolean \| undefined` | `false` | | After each successful non-search load, drops the picks the fetched rows lack (a single model goes `null`). A `stash` does not count; a `known-items` value stays until a parent change; a search or failed load never prunes. |
|
|
38951
39065
|
| `errors` | `string \| string[] \| undefined` | | | 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. |
|
|
38952
|
-
| `failedText` | `string \| undefined` | `the localized `common.failedText` ("Couldn't load items")` | |
|
|
38953
|
-
| `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty =
|
|
39066
|
+
| `failedText` | `string \| undefined` | `the localized `common.failedText` ("Couldn't load items")` | | The empty state's text while the latest load FAILED (the provider threw): `emptyText`'s twin for that case. |
|
|
39067
|
+
| `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = display text and description; item paths = those fields (`['name', 'email']`); `false` = none. Ranked, case- and accent-blind (guide § Search). `false` when the provider matched on the server, or its email matches show "No results". |
|
|
38954
39068
|
| `formless` | `boolean \| undefined` | `false` | | 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). |
|
|
38955
39069
|
| `groupBy` | `string \| ((item: T) => string \| number \| symbol) \| undefined` | | | Path to item property for grouping options. |
|
|
38956
39070
|
| `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
|
|
38957
39071
|
| `hasWarnings` | `boolean \| undefined` | `false` | | Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority. |
|
|
38958
|
-
| `headerHeight` | `number \| undefined` | | |
|
|
39072
|
+
| `headerHeight` | `number \| undefined` | | | Group header height (px), with `groupBy`: 32 (24 compact; 36 / 32 on mobile viewports). An explicit value wins on every viewport. |
|
|
38959
39073
|
| `hideLabel` | `boolean \| undefined` | `false` | | 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. |
|
|
38960
39074
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
38961
39075
|
| `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
|
|
38962
39076
|
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
38963
|
-
| `itemHeight` | `number \| undefined` | `28` | |
|
|
38964
|
-
| `itemProps` | `BbSelectItemProps<T> \| undefined` | | |
|
|
38965
|
-
| `items` | `T[] \| ((context: BbSelectItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`)
|
|
39077
|
+
| `itemHeight` | `number \| undefined` | `28` | | Option height (px): 28 (24 compact; 44 / 36 on mobile viewports). An explicit value wins on every viewport. |
|
|
39078
|
+
| `itemProps` | `BbSelectItemProps<T> \| undefined` | | | EXTRA row fields, never text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. Paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or chips. |
|
|
39079
|
+
| `items` | `T[] \| ((context: BbSelectItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider (sync or async) called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`). Branch on `reason !== 'search'` to resolve the selection by id. It fails by THROWING, never by returning `[]`. |
|
|
38966
39080
|
| `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
|
|
38967
39081
|
| `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
|
|
38968
|
-
| `knownItems` | `([Known] extends [undefined] ? BbSelectKnownItems : Known) \| undefined` | | | `{ 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
|
|
39082
|
+
| `knownItems` | `([Known] extends [undefined] ? BbSelectKnownItems : Known) \| undefined` | | | `{ 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, so no accessor runs on them; slots get the row as `item`, `known: true`, until the list brings its own. |
|
|
38969
39083
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
38970
39084
|
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
38971
39085
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
@@ -38974,30 +39088,31 @@ it: [passthrough guide § Typing `pt` in `<script>`](https://llms-bitboss-ui.bit
|
|
|
38974
39088
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
38975
39089
|
| `loadingText` | `string \| undefined` | | | String displayed while items are being loaded. |
|
|
38976
39090
|
| `max` | `number \| undefined` | | | Maximum number of selectable items when the multiple flag is set. |
|
|
38977
|
-
| `maxSelectedLabels` | `number \| undefined` | `Infinity` | |
|
|
38978
|
-
| `minQueryLength` | `number \| undefined` | `0` | | Characters to type (trimmed) before the query searches. Below it the query counts as empty: no `'search'` call, no filtering
|
|
39091
|
+
| `maxSelectedLabels` | `number \| undefined` | `Infinity` | | Labels shown before collapsing to a count summary. Unset, they collapse only when they overflow the field. |
|
|
39092
|
+
| `minQueryLength` | `number \| undefined` | `0` | | Characters to type (trimmed) before the query searches. Below it the query counts as empty: no `'search'` call, no filtering; the panel says how many to type. Slots still get the typed `query`. |
|
|
38979
39093
|
| `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
|
|
38980
39094
|
| `modelValueDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to modelValue. |
|
|
38981
39095
|
| `multiple` | `boolean \| undefined` | `false` | | Allows the selection of multiple items. |
|
|
38982
39096
|
| `name` | `string \| undefined` | | | Defines the name of the input. |
|
|
38983
|
-
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas`
|
|
39097
|
+
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` `adaptive` renders), over its defaults. A `pt` inside styles only the sheet (passthrough guide § Inside the sheet). |
|
|
38984
39098
|
| `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
|
|
38985
39099
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
38986
39100
|
| `placeholder` | `string \| undefined` | | | Text shown in the field while nothing is picked (an empty list has `emptyText`). |
|
|
38987
|
-
| `prefill` | `boolean \| "interaction" \| undefined` | `'interaction'` | | When the options first load: `'interaction'` on first open, `true` on mount, `false`
|
|
39101
|
+
| `prefill` | `boolean \| "interaction" \| undefined` | `'interaction'` | | When the options first load: `'interaction'` on first open, `true` on mount, `false` once the user types (on open with `disable-writing`). An array `items` or a seeded model loads at once. |
|
|
38988
39102
|
| `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
|
|
39103
|
+
| `query` | `string \| undefined` | | | The search field's text (`v-model:query`): raw per keystroke, `''` when the component empties it; a write searches at once (guide § Reading and restoring the search). |
|
|
38989
39104
|
| `queryDebounceTime` | `number \| undefined` | `500` | | Time to wait when the user stops writing in the input before querying data. |
|
|
38990
39105
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
38991
39106
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
|
|
38992
39107
|
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
38993
39108
|
| `rules` | `RuleExpression<any>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
38994
39109
|
| `selectable` | `boolean \| ((item: T) => boolean) \| undefined` | `true` | | 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. |
|
|
38995
|
-
| `selectedLabelsFn` | `((count: number) => string) \| undefined` | | |
|
|
38996
|
-
| `stash` | `boolean \| undefined` | `false` | | Keeps picks named (
|
|
39110
|
+
| `selectedLabelsFn` | `((count: number) => string) \| undefined` | | | The text shown when the selected labels outnumber `maxSelectedLabels`. |
|
|
39111
|
+
| `stash` | `boolean \| undefined` | `false` | | Keeps picks named (chips keep their text) when a later search or failed load stops returning them. It follows the model; it does not keep a pick valid (`enforce-coherence` still prunes it). |
|
|
38997
39112
|
| `transitionDuration` | `number \| undefined` | `250` | | How long the transition has to last in milliseconds. |
|
|
38998
39113
|
| `validationLabel` | `string \| undefined` | | | 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. |
|
|
38999
39114
|
| `validationMode` | `'aggressive'` \| `'balanced'` \| `'lazy'` \| `'submit-only'` \| `'submit-live'` | | | 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. |
|
|
39000
|
-
| `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look
|
|
39115
|
+
| `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look: `BbButton`'s names and tokens, colours only (a form never reflows). `'ghost'` has no border in any state; `'none'` no look at all (you own hover, focus, states). More via the plugin's `components.BbSelect.variants`. |
|
|
39001
39116
|
| `warnings` | `string \| string[] \| undefined` | | | 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. |
|
|
39002
39117
|
|
|
39003
39118
|
## Passthrough parts and states
|
|
@@ -39006,30 +39121,31 @@ it: [passthrough guide § Typing `pt` in `<script>`](https://llms-bitboss-ui.bit
|
|
|
39006
39121
|
|
|
39007
39122
|
| Part | What it is |
|
|
39008
39123
|
| --- | --- |
|
|
39009
|
-
| `root` | The field's outer container
|
|
39124
|
+
| `root` | The field's outer container (label, box, the lines under it); a `class` on the component lands here. The options surface is `panel`. |
|
|
39010
39125
|
| `label` | The label text above the box (the `label` prop). |
|
|
39011
39126
|
| `description` | The muted line under the label (the `description` prop). |
|
|
39012
39127
|
| `message` | The errors / warnings line under the box. A node of its own: it can show at the same time as `hint`. |
|
|
39013
39128
|
| `hint` | The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`. |
|
|
39014
39129
|
| `box` | The bordered box around the input — border, background and radius; the `variant` paints here. |
|
|
39015
|
-
| `activator` | The button
|
|
39016
|
-
| `input` | The search field
|
|
39130
|
+
| `activator` | The button that opens the options: the field's control, not a text field (`data-test` fits, `autocomplete` does not). The chevron is chrome. `activator`, not the family's `input`: the field is a button, as the date / time inputs' trigger. |
|
|
39131
|
+
| `input` | The options surface's search field, when shown (see `disable-writing`): the `BbSelectPopover`'s `pt:input`. Its ✕ is chrome. |
|
|
39017
39132
|
| `icon` | The content icons, prepend and append — a broadcast. Chrome (the clear ✕, a chevron, the error / warning glyph) is never in it. |
|
|
39018
39133
|
| `spinner` | The spinner inside the box while `loading`. |
|
|
39019
39134
|
| `prefix` | The `#prefix` slot's wrapper, inside the box before the input. |
|
|
39020
39135
|
| `suffix` | The `#suffix` slot's wrapper, inside the box after the input. |
|
|
39021
|
-
| `clear` | The ✕
|
|
39136
|
+
| `clear` | The field's ✕ that empties the selection (`clearable`): one node, never a chip's ✕. |
|
|
39022
39137
|
| `panel` | The options surface — the popover's painted bubble on desktop, the sheet itself on a phone. |
|
|
39023
39138
|
| `sheet` | The bottom sheet the options open in on a phone only. |
|
|
39024
|
-
| `header` | The band around your `#header` slot:
|
|
39025
|
-
| `footer` | The band around your `#footer` slot:
|
|
39026
|
-
| `list` | The `role="listbox"` node
|
|
39139
|
+
| `header` | The band around your `#header` slot: atop the flyout, the sheet's header on a phone. |
|
|
39140
|
+
| `footer` | The band around your `#footer` slot: under the flyout's list, the sheet's footer on a phone. |
|
|
39141
|
+
| `list` | The `role="listbox"` node holding the options. Virtualised: the list writes its height and places its rows, which limits layout utilities there. A group's box and the chips are not parts. |
|
|
39142
|
+
| `groupHeader` | Every `groupBy` heading (sticky). `#group` replaces its content. |
|
|
39027
39143
|
| `option` | One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item. |
|
|
39028
39144
|
| `itemText` | An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
|
|
39029
39145
|
| `itemIcon` | An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function. |
|
|
39030
39146
|
| `itemDescription` | 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. |
|
|
39031
|
-
| `check` | The tick
|
|
39032
|
-
| `badge` | Each selected value's `BbBadge` root with `multiple
|
|
39147
|
+
| `check` | The tick at a chosen option's end (on every option, drawn on the chosen). A custom `#option` slot keeps it; `pt:check="hidden"` removes it, sparing your slot's glyph. Also takes a per-item function. |
|
|
39148
|
+
| `badge` | Each selected value's `BbBadge` root with `multiple`, per value, in the field and on the phone sheet. Its ✕ is chrome, never `clear`. The field has none under `#chip` or `comma`; the sheet's chips are always badges. |
|
|
39033
39149
|
| `comma` | Each selected value with `multiple` and `comma` — a broadcast resolved per value. |
|
|
39034
39150
|
|
|
39035
39151
|
States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
|
|
@@ -39039,7 +39155,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
39039
39155
|
| `hasValue` | Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`). |
|
|
39040
39156
|
| `selected` | Per node, on `option`, its `item-*` parts and `check`: a chosen option. |
|
|
39041
39157
|
| `readonly` | Component-wide: the control is `readonly` — shown, focusable, not editable. |
|
|
39042
|
-
| `disabled` | Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled. |
|
|
39158
|
+
| `disabled` | Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled; on `groupHeader`: all its group's options are. |
|
|
39043
39159
|
| `warnings` | 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. |
|
|
39044
39160
|
| `errors` | Component-wide: the control is in its error state (`errors` / `has-errors`, or its validation) — the message line and the box turn red. |
|
|
39045
39161
|
| `open` | Component-wide: the options surface is showing. |
|
|
@@ -39059,25 +39175,26 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
39059
39175
|
- `hide` — `(): void` — Emitted as soon as the options surface starts to close.
|
|
39060
39176
|
- `inactive` — `(): void` — Emitted when focus moves outside the whole select after it was active.
|
|
39061
39177
|
- `input` — `(event: Event): void` — Emitted on native `input` events from the search field. Forwards the DOM `Event`.
|
|
39062
|
-
- `option:add` — `(text: string): void` —
|
|
39178
|
+
- `option:add` — `(text: string): void` — The typed text, when the user confirms a value not in the list (Enter in the search field). Binding it keeps the field writable: the select is creatable.
|
|
39063
39179
|
- `show` — `(): void` — Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone).
|
|
39064
39180
|
- `shown` — `(): void` — Emitted once the options surface is open and its open transition has finished.
|
|
39065
39181
|
- `update:modelValue` — `(value: any): void` — Emitted with the new value whenever `v-model` changes.
|
|
39066
39182
|
- `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
|
|
39183
|
+
- `update:query` — `(value: string): void` — `v-model:query`: the search field's text.
|
|
39067
39184
|
|
|
39068
39185
|
## Slots
|
|
39069
39186
|
|
|
39070
39187
|
- `append` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content appended inside the input field, after the value area.
|
|
39071
39188
|
- `append:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content appended outside the input field wrapper.
|
|
39072
|
-
- `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Each selection's badge with `multiple` (not in `comma` mode, nor the "+N" summary). With `known-items
|
|
39073
|
-
- `description` — scope: `BbSelectDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text
|
|
39074
|
-
- `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` —
|
|
39075
|
-
- `footer` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` —
|
|
39076
|
-
- `group` — scope: `BbSelectGroupSlotProps<T>` `{ text: string; item: T; index: number; length: number; disabled: boolean }` —
|
|
39077
|
-
- `header` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` —
|
|
39189
|
+
- `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Each selection's badge with `multiple` (not in `comma` mode, nor the "+N" summary). With `known-items`, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
|
|
39190
|
+
- `description` — scope: `BbSelectDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text; alone (no `description` prop) it still renders the region, wired into `aria-describedby`.
|
|
39191
|
+
- `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Shown when no option matches the query or the list is empty; a failed load shows the failure row instead (`failed-text`, "Try again"). `close()` closes the panel, for an action that keeps focus in it.
|
|
39192
|
+
- `footer` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Pinned under the options list, on the popover and the phone sheet alike.
|
|
39193
|
+
- `group` — scope: `BbSelectGroupSlotProps<T>` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Each group heading's content (`pt:group-header` styles its box). Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without one.
|
|
39194
|
+
- `header` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Pinned atop the options panel, above the search field, on the popover and the phone sheet alike.
|
|
39078
39195
|
- `label` — scope: `BbSelectLabelSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default label text rendered above the input.
|
|
39079
39196
|
- `loading` — scope: `{ query: string; }` — Content shown inside the options dropdown while items are loading.
|
|
39080
|
-
- `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Each option row's content. With `known-items
|
|
39197
|
+
- `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Each option row's content. With `known-items`, 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`.
|
|
39081
39198
|
- `prefix` — scope: `object` — Content rendered as an inline prefix inside the input field.
|
|
39082
39199
|
- `prepend` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content prepended inside the input field, before the value area.
|
|
39083
39200
|
- `prepend:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content prepended outside the input field wrapper.
|
|
@@ -39102,16 +39219,16 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
39102
39219
|
- **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbSelect`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
39103
39220
|
- Listed nodes are the ones `BbSelect`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbSelect.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
39104
39221
|
|
|
39105
|
-
- `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs)
|
|
39222
|
+
- `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', groupHeader: 'groupHeader', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs)
|
|
39106
39223
|
- `CommonField` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
|
|
39107
39224
|
- `CommonFieldInput` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
39108
39225
|
- `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
39109
39226
|
- `BbSelectPopover` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md))_ — its own pt parts (`BbSelectPopover`): `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbBadge`, `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
|
|
39110
39227
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
39111
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
39228
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
39112
39229
|
- `ListBox` _(internal — not importable, reach it through `BbSelectPopover`)_
|
|
39113
39230
|
- `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
39114
|
-
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
39231
|
+
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
39115
39232
|
|
|
39116
39233
|
## See Also
|
|
39117
39234
|
|
|
@@ -39153,6 +39270,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
39153
39270
|
| `pt:itemText` | `span.bb-listbox__item-text` | `FlatListBox` _(internal)_ |
|
|
39154
39271
|
| `pt:itemDescription` | `span.bb-listbox__item-description` | `FlatListBox` _(internal)_ |
|
|
39155
39272
|
| `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbIcon.md)) |
|
|
39273
|
+
| `pt:groupHeader` | `span.bb-listbox__group-header` | `GroupedListBox` _(internal)_ |
|
|
39156
39274
|
|
|
39157
39275
|
**CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbSelectPopover`'s root:
|
|
39158
39276
|
|
|
@@ -39706,7 +39824,7 @@ but only on a host that can transfer the result — see
|
|
|
39706
39824
|
Opening the panel is not a search, so it loads nothing; until the first query the
|
|
39707
39825
|
list shows a _"search to begin"_ hint instead of "no data".
|
|
39708
39826
|
|
|
39709
|
-
`:min-query-length="3"` makes a shorter query (
|
|
39827
|
+
`:min-query-length="3"` makes a shorter query (characters after trimming; an emoji is one) count as empty: no
|
|
39710
39828
|
`'search'` call and no filtering, the hint says "Type at least 3 characters",
|
|
39711
39829
|
and Enter emits no `option:add`. Slots still get the typed `query`.
|
|
39712
39830
|
|
|
@@ -40781,6 +40899,104 @@ listener is only the initial state. An open from code is the same open a
|
|
|
40781
40899
|
click makes (focus moves into the panel), and `disabled` / `readonly` refuse it (the ref is set back
|
|
40782
40900
|
to `false`).
|
|
40783
40901
|
|
|
40902
|
+
### Reading and restoring the search: `v-model:query`
|
|
40903
|
+
|
|
40904
|
+
`v-model:query` is the search field's text. Bound, your ref reads it and sets
|
|
40905
|
+
it:
|
|
40906
|
+
|
|
40907
|
+
- **It mirrors the field, raw.** Every committed keystroke is written back as
|
|
40908
|
+
typed, spaces included (an IME composition once, when it ends), and `''`
|
|
40909
|
+
whenever the component empties the field itself: closing, a pick that
|
|
40910
|
+
closes, `option:add` (Enter or the create row), the ✕.
|
|
40911
|
+
- **A write is a search the user didn't type.** It runs at once, without
|
|
40912
|
+
the debounce, and supersedes a scheduled or in-flight search (its late
|
|
40913
|
+
answer never lands). Written while closed, it is held for the next open:
|
|
40914
|
+
`query = 'Rossi'; open = true` sends one request, for "Rossi". A write
|
|
40915
|
+
never opens the panel or moves focus, and is never echoed back.
|
|
40916
|
+
- **A write that can't land writes `''` back:** no search field
|
|
40917
|
+
(`disable-writing`), `disabled`, `readonly`, a refused open.
|
|
40918
|
+
- Unbound, a static `:query` seeds the next open.
|
|
40919
|
+
|
|
40920
|
+
The case it is for: bring a search back. The create row hands the query to
|
|
40921
|
+
`option:add` and empties the field; if the user cancels the dialog, put the
|
|
40922
|
+
query back and reopen, and "Create «Rossi»" is there again:
|
|
40923
|
+
|
|
40924
|
+
```vue
|
|
40925
|
+
<script setup lang="ts">
|
|
40926
|
+
import { ref } from 'vue';
|
|
40927
|
+
import { BbButton, BbSelectPopover, useBbDialog } from 'bitboss-ui';
|
|
40928
|
+
import CreatePersonDialog from './CreatePersonDialog.vue';
|
|
40929
|
+
|
|
40930
|
+
const person = ref<number | null>(null);
|
|
40931
|
+
const open = ref(false);
|
|
40932
|
+
const query = ref('');
|
|
40933
|
+
const createPerson = useBbDialog(CreatePersonDialog);
|
|
40934
|
+
|
|
40935
|
+
const onAdd = async (text: string) => {
|
|
40936
|
+
const result = await createPerson.show({ name: text });
|
|
40937
|
+
if (result.completed) return void (person.value = result.value.id);
|
|
40938
|
+
query.value = text;
|
|
40939
|
+
open.value = true;
|
|
40940
|
+
};
|
|
40941
|
+
</script>
|
|
40942
|
+
|
|
40943
|
+
<template>
|
|
40944
|
+
<BbSelectPopover
|
|
40945
|
+
v-model="person"
|
|
40946
|
+
v-model:open="open"
|
|
40947
|
+
v-model:query="query"
|
|
40948
|
+
item-text="name"
|
|
40949
|
+
item-value="id"
|
|
40950
|
+
:items="searchPeople"
|
|
40951
|
+
@option:add="onAdd"
|
|
40952
|
+
>
|
|
40953
|
+
<template #activator="{ props, text }">
|
|
40954
|
+
<BbButton v-bind="props">{{ text || 'Person' }}</BbButton>
|
|
40955
|
+
</template>
|
|
40956
|
+
</BbSelectPopover>
|
|
40957
|
+
</template>
|
|
40958
|
+
```
|
|
40959
|
+
|
|
40960
|
+
#### The state matrix
|
|
40961
|
+
|
|
40962
|
+
What a write does in each state, what the component emits, and where focus
|
|
40963
|
+
is. Each row is a test in `BbSelectPopover.queryModel.test.ts`.
|
|
40964
|
+
|
|
40965
|
+
| State | An app write | Emits | Focus | Test |
|
|
40966
|
+
| --- | --- | --- | --- | --- |
|
|
40967
|
+
| Closed | held for the next open; nothing fetched | nothing | unmoved | closed: a write is held |
|
|
40968
|
+
| Opening, query first | the open searches it: one request, at once | nothing | the field | query then open in one tick |
|
|
40969
|
+
| Opening, open first | the same single request | nothing | the field | open then query in one tick |
|
|
40970
|
+
| Opened from code with a held query | the field reads it | nothing | the field | an open from code with a held query |
|
|
40971
|
+
| Search-first (`prefill: false`) | the held query is searched at open | nothing | the field | search-first |
|
|
40972
|
+
| Static items | filters at once, create row included | nothing | the field | static items |
|
|
40973
|
+
| Open, idle | searches at once, no debounce | nothing | unmoved | open and idle |
|
|
40974
|
+
| Open, any write | never moves focus | nothing | unmoved | a write never moves focus |
|
|
40975
|
+
| Equal to the query | nothing | nothing | unmoved | a write equal to the query |
|
|
40976
|
+
| Typing | — | each keystroke, raw | the field | typing |
|
|
40977
|
+
| Typing, then a write | replaces the field | nothing (not echoed) | the field | a write while typing |
|
|
40978
|
+
| The app rewrites in its handler | applied once, no loop | the typed text | the field | an app that rewrites the query |
|
|
40979
|
+
| Debounce pending | drops the scheduled search, searches now | nothing | unmoved | a write while … debounced |
|
|
40980
|
+
| Fetch in flight | aborts it; its late answer never lands | nothing | unmoved | a write while a fetch is in flight |
|
|
40981
|
+
| Below `min-query-length` | kept raw; no fetch; the hint shows | nothing | unmoved | below min-query-length |
|
|
40982
|
+
| `''` while searched | the empty-query load | nothing | unmoved | a write of '' while searched |
|
|
40983
|
+
| `#empty` | reads the same raw query | — | — | #empty reads the raw query |
|
|
40984
|
+
| Single pick | — (closes) | `''` | activator | a single pick |
|
|
40985
|
+
| Multiple pick | — (the query stays) | nothing | the field | a multiple pick |
|
|
40986
|
+
| `option:add` (Enter) | — | `''`, after the event | the field | option:add on Enter |
|
|
40987
|
+
| The create row | — | `''` | the field | the create row |
|
|
40988
|
+
| The ✕ | — | `''` | the field | the ✕ |
|
|
40989
|
+
| Flyout close | held for the next open | `''` | activator | a flyout close |
|
|
40990
|
+
| Phone sheet dismiss | survives the slide-out | `''` when the close begins | activator | a sheet dismiss |
|
|
40991
|
+
| Phone sheet open | opens on the held query | nothing | the sheet | the sheet opens on the held query |
|
|
40992
|
+
| No search field, open | refused | `''` back | unmoved | no search field: the write is refused |
|
|
40993
|
+
| No search field, held | dropped at open | `''` back | the panel | no search field: a held query is dropped |
|
|
40994
|
+
| Disabled | refused | `''` back | unmoved | disabled |
|
|
40995
|
+
| Read-only (open refused) | the held query is dropped | `''` back | unmoved | readonly |
|
|
40996
|
+
| Unbound | a static `:query` seeds the next open | — | — | unbound |
|
|
40997
|
+
| IME composing | — | nothing until it ends, then once | the field | nothing is emitted mid-composition |
|
|
40998
|
+
| IME, a write meanwhile | yields to the committed text | the committed text | the field | a write during composition |
|
|
40999
|
+
|
|
40784
41000
|
### Events and v-model
|
|
40785
41001
|
|
|
40786
41002
|
- `update:modelValue` — the resolved value (single) or array (multiple), on pick,
|
|
@@ -40819,8 +41035,11 @@ to `false`).
|
|
|
40819
41035
|
object form, a style and attributes — optionally only while a state is on.
|
|
40820
41036
|
Parts: `root` (the floating element — an invisible positioning wrapper, no node on a phone), `panel` (the options surface you see: the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet the surface becomes on a phone — only that sheet, never the desktop surface; applied after `panel`, so it wins a conflict there), `input` (the search
|
|
40821
41037
|
field), `option` (every listbox option, a broadcast resolved per option), `itemText` (that option's label), `itemIcon` (its `itemProps` icons) `itemDescription` (its muted second line, `itemProps.description`) and `check` (the tick on a chosen option) — all with the option's states; a custom `#option` slot replaces the label and description, never the tick (`pt:check="hidden"` drops it and leaves a mark your slot draws alone),
|
|
40822
|
-
`header`, `footer
|
|
40823
|
-
`
|
|
41038
|
+
`header`, `footer`, and `groupHeader` (every `group-by` heading's box, sticky;
|
|
41039
|
+
`#group` replaces its content, never the box). States: `open`, and `selected`
|
|
41040
|
+
/ `disabled` per option; `groupHeader:disabled` while every option of its
|
|
41041
|
+
group is. `BbSelect` forwards its own `panel` / `sheet` / `option` /
|
|
41042
|
+
`groupHeader` here.
|
|
40824
41043
|
|
|
40825
41044
|
The filter-pill assignee picker above, restyled through those parts: mono on
|
|
40826
41045
|
the search `pt:input`, a muted wash on the chosen option
|
|
@@ -41033,12 +41252,13 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
41033
41252
|
|
|
41034
41253
|
- `v-model` — type: `any`
|
|
41035
41254
|
- `v-model:open` — type: `boolean \| undefined`
|
|
41255
|
+
- `v-model:query` — type: `string \| undefined`
|
|
41036
41256
|
|
|
41037
41257
|
## Props
|
|
41038
41258
|
|
|
41039
41259
|
| Prop | Type | Default | Required | Description |
|
|
41040
41260
|
| --- | --- | --- | --- | --- |
|
|
41041
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `check`, `clear`, `footer`, `header`, `input`, `itemDescription`, `itemIcon`, `itemText`, `list`, `option`, `panel`, `root`, `sheet`. States: `disabled`, `open`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectPopoverProps<Row>['pt']` (`BbSelectPopoverProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
41261
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `check`, `clear`, `footer`, `groupHeader`, `header`, `input`, `itemDescription`, `itemIcon`, `itemText`, `list`, `option`, `panel`, `root`, `sheet`. States: `disabled`, `open`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectPopoverProps<Row>['pt']` (`BbSelectPopoverProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
41042
41262
|
| `activator` | `ElementOrComponentRef \| undefined` | | | External activator element or component ref. When provided, the activator slot is not rendered and event listeners are attached programmatically to the referenced element. |
|
|
41043
41263
|
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | 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. |
|
|
41044
41264
|
| `anchor` | `ElementOrComponentRef \| undefined` | `null` | | 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. |
|
|
@@ -41081,6 +41301,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
41081
41301
|
| `padding` | `number \| undefined` | `10` | | Minimum page padding used by floating shift middleware. |
|
|
41082
41302
|
| `placement` | `'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'` | `"bottom"` | | Floating placement of the popover. |
|
|
41083
41303
|
| `prefill` | `boolean \| "interaction" \| undefined` | `"interaction"` | | 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. |
|
|
41304
|
+
| `query` | `string \| undefined` | | | The search field's text (`v-model:query`): raw per keystroke, `''` when the component empties it; a write searches at once (guide § Reading and restoring the search). |
|
|
41084
41305
|
| `queryDebounceTime` | `number \| undefined` | `500` | | Debounce delay (ms) before triggering search queries after user input stops. |
|
|
41085
41306
|
| `readonly` | `boolean \| undefined` | `false` | | Prevents opening the popover while keeping the activator accessible. |
|
|
41086
41307
|
| `searchInputAriaLabel` | `string \| undefined` | ``t('select.searchLabel')` (`'Search options'`)` | | Accessible label used by the search input rendered inside the popover. Falls back to the localized `select.searchLabel` key when omitted. |
|
|
@@ -41100,12 +41321,13 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
41100
41321
|
| `sheet` | 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. |
|
|
41101
41322
|
| `input` | The search field. |
|
|
41102
41323
|
| `clear` | The ✕ that empties the search field. |
|
|
41103
|
-
| `list` | The `role="listbox"` node
|
|
41324
|
+
| `list` | The `role="listbox"` node holding the options. Virtualised: the list writes its height and places its rows, which limits layout utilities there. A group's box and the chips are not parts. |
|
|
41325
|
+
| `groupHeader` | Every `groupBy` heading (sticky). `#group` replaces its content. |
|
|
41104
41326
|
| `option` | One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item. |
|
|
41105
41327
|
| `itemText` | An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
|
|
41106
41328
|
| `itemIcon` | An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function. |
|
|
41107
41329
|
| `itemDescription` | 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. |
|
|
41108
|
-
| `check` | The tick
|
|
41330
|
+
| `check` | The tick at a chosen option's end (on every option, drawn on the chosen). A custom `#option` slot keeps it; `pt:check="hidden"` removes it, sparing your slot's glyph. Also takes a per-item function. |
|
|
41109
41331
|
| `header` | The flyout's header band. |
|
|
41110
41332
|
| `footer` | The flyout's footer band. |
|
|
41111
41333
|
|
|
@@ -41114,7 +41336,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
41114
41336
|
| State | When it is on |
|
|
41115
41337
|
| --- | --- |
|
|
41116
41338
|
| `selected` | Per node, on `option`, its `item-*` parts and `check`: a chosen option. |
|
|
41117
|
-
| `disabled` | Per node, on `option`, its `item-*` parts and `check`: an option that is disabled. |
|
|
41339
|
+
| `disabled` | Per node, on `option`, its `item-*` parts and `check`: an option that is disabled; on `groupHeader`: every option of its group is. |
|
|
41118
41340
|
| `open` | Component-wide: the options surface is showing. |
|
|
41119
41341
|
|
|
41120
41342
|
## Events
|
|
@@ -41133,6 +41355,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
41133
41355
|
- `shown` — `(): void` — Emitted once the options surface is open and its open transition has finished.
|
|
41134
41356
|
- `update:modelValue` — `(value: any): void` — Emitted with the next selection value whenever selection changes.
|
|
41135
41357
|
- `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
|
|
41358
|
+
- `update:query` — `(value: string): void` — `v-model:query`: the search field's text.
|
|
41136
41359
|
|
|
41137
41360
|
## Slots
|
|
41138
41361
|
|
|
@@ -41167,10 +41390,10 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
41167
41390
|
- `BbSelectPopover` _(this component)_ — its own template binds: `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs)
|
|
41168
41391
|
- `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
41169
41392
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
41170
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
41393
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
41171
41394
|
- `ListBox` _(internal — not importable, reach it through `BbSelectPopover`)_
|
|
41172
41395
|
- `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
41173
|
-
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
41396
|
+
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
41174
41397
|
- Also mounts `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
|
|
41175
41398
|
|
|
41176
41399
|
## See Also
|
|
@@ -45814,7 +46037,7 @@ BbDropdown's `#<value>:prepend/append`). The key always comes first, so a
|
|
|
45814
46037
|
column keyed `prepend` still owns `#prepend:header`, and `#header:prepend`
|
|
45815
46038
|
stays the table-wide slot.
|
|
45816
46039
|
|
|
45817
|
-
Below, the status badges carry brand glyphs shipped in the app's `
|
|
46040
|
+
Below, the status badges carry brand glyphs shipped in the app's `icons.dir`,
|
|
45818
46041
|
referenced as `local:*` names on the badge's `prepend:icon`. Per the icons
|
|
45819
46042
|
policy the dynamic status maps to **full-name literals** (a lookup object) —
|
|
45820
46043
|
never a template-composed `` `local:${status}` ``. Colours use the registered
|
|
@@ -55944,7 +56167,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
55944
56167
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePicker`)_ — `BbTimePicker`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
|
|
55945
56168
|
- `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
55946
56169
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
55947
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
56170
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
55948
56171
|
- Also mounts `CommonPopover`
|
|
55949
56172
|
|
|
55950
56173
|
## See Also
|
|
@@ -56404,7 +56627,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
56404
56627
|
|
|
56405
56628
|
- `BbTimePickerInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-segmented-field__input`, `input` → `input.bb-segmented-field__input`, `activator` → `button.bb-segmented-field__activator`, `suffix` → `span.bb-field-input__suffix`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
|
|
56406
56629
|
- `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
56407
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
56630
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
|
|
56408
56631
|
- `CommonField` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
|
|
56409
56632
|
- `CommonFieldInput` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
56410
56633
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
|
|
@@ -62167,7 +62390,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
62167
62390
|
| `multiple` | `boolean \| undefined` | `false` | | Allows multiple options to be selected simultaneously. |
|
|
62168
62391
|
| `open` | `boolean \| undefined` | `false` | | Whether the listbox is open (visible). |
|
|
62169
62392
|
| `optionHeight` | `number \| undefined` | | | 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. |
|
|
62170
|
-
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | 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. |
|
|
62393
|
+
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "groupHeader" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | 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. |
|
|
62171
62394
|
| `transitionDuration` | `number \| undefined` | `250` | | Duration of open/close transition in milliseconds. |
|
|
62172
62395
|
|
|
62173
62396
|
## Events
|
|
@@ -62195,7 +62418,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
62195
62418
|
- **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `GroupedListBox`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
62196
62419
|
- Listed nodes are the ones `GroupedListBox`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/GroupedListBox.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
62197
62420
|
|
|
62198
|
-
- `GroupedListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`
|
|
62421
|
+
- `GroupedListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`
|
|
62199
62422
|
- Also mounts `BbIcon`, `ErrorIcon`
|
|
62200
62423
|
|
|
62201
62424
|
---
|
|
@@ -62432,7 +62655,7 @@ For components accepting `items`:
|
|
|
62432
62655
|
|
|
62433
62656
|
## Icons Rule
|
|
62434
62657
|
|
|
62435
|
-
External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `
|
|
62658
|
+
External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `icons.dir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `icons.whitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
|
|
62436
62659
|
|
|
62437
62660
|
## Variants Rule
|
|
62438
62661
|
|
|
@@ -63230,7 +63453,7 @@ There is no separate option: write it where you write the locale, in
|
|
|
63230
63453
|
|
|
63231
63454
|
```ts
|
|
63232
63455
|
bitbossUi({
|
|
63233
|
-
|
|
63456
|
+
icons: { dir: './src/assets/icons' },
|
|
63234
63457
|
locale: 'fa',
|
|
63235
63458
|
enabledLocales: [
|
|
63236
63459
|
'fa-u-ca-gregory', // Persian words and digits, Gregorian calendar
|
|
@@ -65938,7 +66161,7 @@ Two rules in `recommended` are `warn` rather than `error`, because each describe
|
|
|
65938
66161
|
- `dts`, `components`, `components.<Component>` and `components.<Component>.variants`: `check` does not write `bitboss-ui.d.ts`, so registered variant names type-check only once Vite starts (the plugin writes the file then). For `BbAlert` and `BbToast` object-form variants only the names must be written out; an `icon` value may be an import.
|
|
65939
66162
|
- `components.BbTextInput.nullValue`, `components.BbTextarea.nullValue`: `check` keeps the empty-string controls the plugin last wrote to `bitboss-ui.d.ts`.
|
|
65940
66163
|
|
|
65941
|
-
Options passed as a variable (`bitbossUi(options)`, `bitboss: options`) are one report at the call: the CLI reads none of them. A spread or computed key hides the keys at its own level the same way — at the top (`...shared`) every key, in `components` or in one component's entry the variant and `nullValue` keys under it, and a spread in a read list (`allowComponents`, `enabledLocales`, a `variants` list) hides that list; each is reported where it is. A spread deeper than that (inside `configScopes`, or in a value no reader parses) hides nothing the CLI reads and is not reported: a literal `locale` or `ai` beside it is still read. Other keys (`cssLayers`, `
|
|
66164
|
+
Options passed as a variable (`bitbossUi(options)`, `bitboss: options`) are one report at the call: the CLI reads none of them. A spread or computed key hides the keys at its own level the same way — at the top (`...shared`) every key, in `components` or in one component's entry the variant and `nullValue` keys under it, and a spread in a read list (`allowComponents`, `enabledLocales`, a `variants` list) hides that list; each is reported where it is. A spread deeper than that (inside `configScopes`, or in a value no reader parses) hides nothing the CLI reads and is not reported: a literal `locale` or `ai` beside it is still read. Other keys (`cssLayers`, `icons`, `configScopes`, a component's own defaults) are not read without running the config and may be computed. `as const`, `satisfies` and `!` are fine. The config builds and runs either way, so it is a warning; silence a deliberate one with `// eslint-disable-next-line bitboss-ui/static-plugin-options`.
|
|
65942
66165
|
|
|
65943
66166
|
It also enables `bitboss-ui/require-partner-prop`: an opt-in prop set without its documented required partner — BbTable `loading-text` without `:loading` bound, `selectable` without `legend`, or `method` on BbButton / BbBadgeButton / BbBaseButton without `href` (only an `href` becomes an Inertia visit; `to` is a RouterLink) — compiles and mounts clean and just does nothing; the rule names the missing partner and quotes why.
|
|
65944
66167
|
|
|
@@ -66323,9 +66546,9 @@ Mandatory for AI-generated code.
|
|
|
66323
66546
|
(`npm install -D @iconify-json/lucide`); the plugin resolves them
|
|
66324
66547
|
automatically — no registration step.
|
|
66325
66548
|
2. **`local:*` is for brand-specific art only** — logos, custom marks, one-off
|
|
66326
|
-
illustrations. They are SVG files in the configured `
|
|
66549
|
+
illustrations. They are SVG files in the configured `icons.dir`.
|
|
66327
66550
|
3. **Never invent icon names.** Use only names that exist in an installed
|
|
66328
|
-
`@iconify-json/*` set or as files in `
|
|
66551
|
+
`@iconify-json/*` set or as files in `icons.dir`. A name that does not
|
|
66329
66552
|
resolve renders the built-in placeholder (a question mark in a circle,
|
|
66330
66553
|
tagged `data-bb-icon-missing="<name>"`) and logs one `console.error` with
|
|
66331
66554
|
the fix — in dev also as a Vite error overlay. It never throws. This guide
|
|
@@ -66335,15 +66558,15 @@ Mandatory for AI-generated code.
|
|
|
66335
66558
|
scans the whole project (PHP included) for `provider:name` literals and
|
|
66336
66559
|
bundles only those; `local:` ships everything. A name the scanner cannot
|
|
66337
66560
|
see as a literal — composed at runtime (`` `lucide:${kind}` ``), stored in a
|
|
66338
|
-
database, chosen in an admin panel — goes in the plugin's `
|
|
66561
|
+
database, chosen in an admin panel — goes in the plugin's `icons.whitelist`.
|
|
66339
66562
|
This holds in dev exactly as in production: dev registers the same set.
|
|
66340
66563
|
5. **Never hand-place `BbIcon` where a component already accepts an icon** via
|
|
66341
66564
|
a prop, item field, or dedicated slot (catalog below).
|
|
66342
66565
|
|
|
66343
66566
|
## How resolution works
|
|
66344
66567
|
|
|
66345
|
-
The `bitbossUi` Vite plugin (`
|
|
66346
|
-
`bitboss`, default `
|
|
66568
|
+
The `bitbossUi` Vite plugin (`icons.dir` option) — or the Nuxt module (config key
|
|
66569
|
+
`bitboss`, default `icons: { dir: './assets/icons' }`) — serves every icon through the
|
|
66347
66570
|
`virtual:bitboss-ui/icons` module that `bitbossUiPlugin` provides to `BbIcon`:
|
|
66348
66571
|
|
|
66349
66572
|
- **Provider sets**: every `@iconify-json/*` package found in `node_modules` is
|
|
@@ -66351,7 +66574,7 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
|
|
|
66351
66574
|
`lucide:<name>` available; removing it makes them all errors. Nothing to
|
|
66352
66575
|
configure.
|
|
66353
66576
|
- **What ships — `local:` everything, providers only what is scanned or
|
|
66354
|
-
whitelisted.** Every SVG in `
|
|
66577
|
+
whitelisted.** Every SVG in `icons.dir` is bundled. For provider sets the
|
|
66355
66578
|
plugin reads the **whole project** as bytes — every file under the Vite
|
|
66356
66579
|
root, PHP, Blade, JSON, SQL seeders and Markdown included — looking for
|
|
66357
66580
|
`<prefix>:<name>` where `<prefix>` is an installed set; what resolves in the
|
|
@@ -66368,7 +66591,7 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
|
|
|
66368
66591
|
neither scanned nor whitelisted therefore shows the placeholder and the
|
|
66369
66592
|
error on first render in dev — not after deploy.
|
|
66370
66593
|
- **Names the scanner cannot see** — composed at runtime, persisted in a
|
|
66371
|
-
database, picked by an admin — go in `
|
|
66594
|
+
database, picked by an admin — go in `icons.whitelist`: exact names
|
|
66372
66595
|
(`'tabler:crown'`) or globs (`'tabler:calendar-*'`). An entry that resolves
|
|
66373
66596
|
in no installed set fails the build with the same message the overlay shows.
|
|
66374
66597
|
- **A missing name is loud, in both environments.** `BbIcon` renders the
|
|
@@ -66377,12 +66600,12 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
|
|
|
66377
66600
|
error overlay. A typo inside an installed set reads "does not exist in the
|
|
66378
66601
|
lucide icon set — did you mean `lucide:…`?"; a real icon nobody wrote as a
|
|
66379
66602
|
literal reads "exists in the lucide icon set but is not bundled … add it to
|
|
66380
|
-
`
|
|
66603
|
+
`icons.whitelist`"; a set that is not installed reads "no installed icon set
|
|
66381
66604
|
has the prefix `mdi` (installed sets: lucide) … run:
|
|
66382
66605
|
`npm install -D @iconify-json/mdi`". Read the message: a typo wants a
|
|
66383
66606
|
different name, an unscanned name wants the whitelist, a missing set wants
|
|
66384
66607
|
an install, never a guess.
|
|
66385
|
-
- **Local icons**: `
|
|
66608
|
+
- **Local icons**: `icons.dir` is scanned recursively; each `.svg` becomes
|
|
66386
66609
|
`local:<basename-without-extension>`. A bare, unprefixed name normalizes to
|
|
66387
66610
|
`local:`. Adding/removing files is picked up live in dev, and the plugin
|
|
66388
66611
|
maintains a collection JSON plus the VS Code `iconify.customCollectionJsonPaths`
|
|
@@ -66402,7 +66625,7 @@ controls size, so they are redundant). Use base names — `heroicons:check`, not
|
|
|
66402
66625
|
`@iconify-json/lucide`).
|
|
66403
66626
|
2. Verify each name exists in that set's `icons.json` (or its `aliases`) before
|
|
66404
66627
|
using it.
|
|
66405
|
-
3. For `local:*`, list the `.svg` files in the configured `
|
|
66628
|
+
3. For `local:*`, list the `.svg` files in the configured `icons.dir`.
|
|
66406
66629
|
|
|
66407
66630
|
## Where the library accepts icons — full catalog
|
|
66408
66631
|
|
|
@@ -66556,6 +66779,27 @@ markup) yourself:
|
|
|
66556
66779
|
`<value>:append` slots, when an entry's leading/trailing region needs more than
|
|
66557
66780
|
a named icon (e.g. an avatar). A slot replaces the icon, never sits beside it.
|
|
66558
66781
|
|
|
66782
|
+
### The library's own glyphs (app-wide)
|
|
66783
|
+
|
|
66784
|
+
The glyphs the library draws itself (✕, chevrons, check, …) swap by role,
|
|
66785
|
+
app-wide or for one component, which wins:
|
|
66786
|
+
|
|
66787
|
+
```ts
|
|
66788
|
+
bitbossUi({
|
|
66789
|
+
icons: { defaults: { close: 'ph:x-bold' } },
|
|
66790
|
+
components: { BbSelect: { icons: { search: 'ph:magnifying-glass-bold' } } },
|
|
66791
|
+
});
|
|
66792
|
+
```
|
|
66793
|
+
|
|
66794
|
+
Roles: `close`, `clear`, `expandChevron`, `prev`, `next`, `separator`,
|
|
66795
|
+
`search`, `check`, `dragHandle`, `move`, `sortAsc`, `sortDesc`, `calendar`,
|
|
66796
|
+
`clock`, `error`, `warning`, `avatar`, `star`, `eyedropper`, `play`, `pause`;
|
|
66797
|
+
a component takes only the roles it draws. Names are bundled at build time
|
|
66798
|
+
(app-wide only); unset roles keep the built-in; sizes stay the library's. With
|
|
66799
|
+
Phosphor, use `-bold` names (and `-fill` for `error`, `warning`, `avatar`,
|
|
66800
|
+
`star`). A custom `check` has no draw-in; a `sortDesc` replaces the rotated
|
|
66801
|
+
`sortAsc`.
|
|
66802
|
+
|
|
66559
66803
|
## Sizing and color
|
|
66560
66804
|
|
|
66561
66805
|
- Icons paint in `currentColor`: they inherit the parent's text color. Color
|
|
@@ -66596,7 +66840,7 @@ markup) yourself:
|
|
|
66596
66840
|
- Inventing or guessing icon names; assuming a set is installed without
|
|
66597
66841
|
checking `package.json`.
|
|
66598
66842
|
- Runtime-composed icon names (template strings / concatenation) without a
|
|
66599
|
-
matching `
|
|
66843
|
+
matching `icons.whitelist` entry — invisible to the scanner, so they render the
|
|
66600
66844
|
placeholder (in dev too). Prefer a lookup of full literals; whitelist what
|
|
66601
66845
|
must stay dynamic.
|
|
66602
66846
|
- Setting `color`/`fill` on the icon element instead of the parent.
|
|
@@ -70981,7 +71225,7 @@ Source of truth for integrating `bitboss-ui`. Two pieces are always required:
|
|
|
70981
71225
|
3. [Register the runtime plugin](#2-vite--vue): `app.use(bitbossUiPlugin)` (automatic in Nuxt; in [Inertia](#4-inertia) it goes in `createInertiaApp`).
|
|
70982
71226
|
4. [Styles](#5-styling): the plugin injects `styles.css` for you, so do not import it by hand. On Tailwind v4 also set `cssLayers`.
|
|
70983
71227
|
5. [Locale](#locale-localekey-default-en): set `locale` (default `'en'`) and list any others in `enabledLocales`.
|
|
70984
|
-
6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `
|
|
71228
|
+
6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `icons.dir` at your own SVG folder if you use `local:` icons.
|
|
70985
71229
|
7. [SSR and Inertia notes](#4-inertia): the build plugin handles `noExternal` and the Inertia `Link`; in Nuxt do not call `app.use`.
|
|
70986
71230
|
8. [App-wide defaults and area looks](#the-components-map): one `components` map (and `configScopes` / `<BbConfigScope>` for an area) instead of repeating props.
|
|
70987
71231
|
9. [Set up coding agents](#8-ai-knowledge-base) so they find the docs and the MCP server: `setup` does it, every install keeps it current.
|
|
@@ -71123,7 +71367,7 @@ export default defineConfig({
|
|
|
71123
71367
|
plugins: [
|
|
71124
71368
|
vue(),
|
|
71125
71369
|
bitbossUi({
|
|
71126
|
-
|
|
71370
|
+
icons: { dir: './src/assets/icons' },
|
|
71127
71371
|
// Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
|
|
71128
71372
|
cssLayers: TAILWIND_V4_LAYERS,
|
|
71129
71373
|
}),
|
|
@@ -71156,7 +71400,7 @@ The plugin registers no components globally: import each one where you use it
|
|
|
71156
71400
|
(`import { BbButton, BbSelect } from 'bitboss-ui'`). Guide examples leave those
|
|
71157
71401
|
imports out. In Nuxt, `autoImport: true` registers them instead (§3).
|
|
71158
71402
|
|
|
71159
|
-
If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `
|
|
71403
|
+
If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `icons.dir`.
|
|
71160
71404
|
|
|
71161
71405
|
## 3) Nuxt
|
|
71162
71406
|
|
|
@@ -71169,7 +71413,7 @@ import { TAILWIND_V4_LAYERS } from 'bitboss-ui/nuxt';
|
|
|
71169
71413
|
export default defineNuxtConfig({
|
|
71170
71414
|
modules: ['bitboss-ui/nuxt'],
|
|
71171
71415
|
bitboss: {
|
|
71172
|
-
|
|
71416
|
+
icons: { dir: './assets/icons' }, // module default = app/assets/icons (relative to the Vite root, app/ under Nuxt 4)
|
|
71173
71417
|
// Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
|
|
71174
71418
|
cssLayers: TAILWIND_V4_LAYERS,
|
|
71175
71419
|
},
|
|
@@ -71200,7 +71444,7 @@ Registers the library's components and composables with Nuxt's auto-import syste
|
|
|
71200
71444
|
export default defineNuxtConfig({
|
|
71201
71445
|
modules: ['bitboss-ui/nuxt'],
|
|
71202
71446
|
bitboss: {
|
|
71203
|
-
|
|
71447
|
+
icons: { dir: './assets/icons' },
|
|
71204
71448
|
autoImport: true,
|
|
71205
71449
|
},
|
|
71206
71450
|
});
|
|
@@ -71334,7 +71578,7 @@ you the order:
|
|
|
71334
71578
|
|
|
71335
71579
|
```ts
|
|
71336
71580
|
// vite.config.ts / the `bitboss` key in nuxt.config.ts
|
|
71337
|
-
bitbossUi({
|
|
71581
|
+
bitbossUi({ icons: { dir: '…' }, injectStyles: false, resetCss: false });
|
|
71338
71582
|
```
|
|
71339
71583
|
|
|
71340
71584
|
```ts
|
|
@@ -71384,7 +71628,7 @@ by its first mention — so the order you configure is the order you get.
|
|
|
71384
71628
|
import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
|
|
71385
71629
|
|
|
71386
71630
|
bitbossUi({
|
|
71387
|
-
|
|
71631
|
+
icons: { dir: './assets/icons' },
|
|
71388
71632
|
cssLayers: TAILWIND_V4_LAYERS,
|
|
71389
71633
|
});
|
|
71390
71634
|
```
|
|
@@ -71486,7 +71730,7 @@ it is the only way to get v4's behaviour on v3. Three edits, made together:
|
|
|
71486
71730
|
import { bitbossUi, TAILWIND_V3_LAYERS } from 'bitboss-ui/vite';
|
|
71487
71731
|
|
|
71488
71732
|
bitbossUi({
|
|
71489
|
-
|
|
71733
|
+
icons: { dir: './assets/icons' },
|
|
71490
71734
|
// ['tailwind-base', 'bitboss-ui-reset', 'bitboss-ui', 'tailwind-utilities']
|
|
71491
71735
|
cssLayers: TAILWIND_V3_LAYERS,
|
|
71492
71736
|
// 3. v3 class names for the pt deduper: a module whose default export is
|
|
@@ -71511,7 +71755,7 @@ fixed by its first mention, so they agree rather than fight.
|
|
|
71511
71755
|
|
|
71512
71756
|
```ts
|
|
71513
71757
|
bitbossUi({
|
|
71514
|
-
|
|
71758
|
+
icons: { dir: './assets/icons' },
|
|
71515
71759
|
cssLayers: ['bitboss-ui'], // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
|
|
71516
71760
|
});
|
|
71517
71761
|
```
|
|
@@ -71593,14 +71837,14 @@ Reach for the documented variable before reaching for a utility.
|
|
|
71593
71837
|
|
|
71594
71838
|
## 6) Icons
|
|
71595
71839
|
|
|
71596
|
-
- `
|
|
71840
|
+
- `icons.dir` (default `'./assets/icons'`) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
|
|
71597
71841
|
- Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. **Providers ship only what is scanned or whitelisted**: the plugin reads the whole project as bytes — every file under the Vite root, PHP and Blade and JSON and SQL included — for `<prefix>:<name>` literals of the installed sets, and emits one lazy chunk per name that resolves. Skipped: gitignored paths (every `.gitignore` level), `node_modules`, `vendor`, `storage`, the build `outDir`, hidden paths, binaries, and `iconsScanner.exclude` globs; `iconsScanner.include` adds locations. The scan is cached by content hash under `node_modules/.cache/bitboss-ui/`, runs on 2–4 worker threads once a project passes ~1500 files (a cold scan is disk-bound, and the threads let a slow disk serve reads in parallel — roughly 0.2 s for 10k files on a laptop), prints one line (file count, elapsed, threads) after a cold scan, and stays silent when warm.
|
|
71598
71842
|
- **This holds in dev exactly as in prod.** Dev registers the same scanned-plus-whitelisted set, re-scans a file on every save, and hot-updates the registry — a new literal renders without a restart, and a name that is neither scanned nor whitelisted fails on first render in dev instead of after deploy.
|
|
71599
|
-
- **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `
|
|
71600
|
-
- **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `
|
|
71843
|
+
- **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `icons.whitelist` (exact names or globs). An entry that resolves in no installed set fails the build with the actionable message.
|
|
71844
|
+
- **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `icons.whitelist`, and an uninstalled prefix gets the list of installed sets plus the `npm install -D @iconify-json/<prefix>` command (the optional `@iconify/collections` peer only sharpens that wording, see [Install](#1-install)). A missing `local:` icon names the `.svg` that is not in `icons.dir`. `BbIcon` never throws for a missing name, so the surrounding tree stays mounted.
|
|
71601
71845
|
- In dev (unless `vscodeSettings: false`) the plugin also writes `.vscode/bitboss-ui.local-icons.json` and wires `.vscode/settings.json` so the Iconify editor extension previews local icons and Tailwind IntelliSense completes inside `pt:*` / `:pt`. The collection lives in the project tree, not under `node_modules`, so a host editor sees what a container (Sail, a named `node_modules` volume) wrote.
|
|
71602
71846
|
|
|
71603
|
-
|
|
71847
|
+
Choosing icons, and swapping the library's own: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
|
|
71604
71848
|
|
|
71605
71849
|
## The components map
|
|
71606
71850
|
|
|
@@ -71880,9 +72124,9 @@ fails the build naming its home:
|
|
|
71880
72124
|
|
|
71881
72125
|
Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
|
|
71882
72126
|
|
|
71883
|
-
### `
|
|
72127
|
+
### `icons.dir?: string` (default: `'./assets/icons'`)
|
|
71884
72128
|
|
|
71885
|
-
Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `
|
|
72129
|
+
Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `icons.dir` that resolves to a missing or SVG-less folder logs a build warning.
|
|
71886
72130
|
|
|
71887
72131
|
### `iconsScanner?: { include?: string[]; exclude?: string[]; maxFileSize?: number }`
|
|
71888
72132
|
|
|
@@ -71894,7 +72138,7 @@ Tunes the provider-icon source scan (see [Icons](#6-icons)). All three are optio
|
|
|
71894
72138
|
|
|
71895
72139
|
```ts
|
|
71896
72140
|
bitbossUi({
|
|
71897
|
-
|
|
72141
|
+
icons: { dir: './resources/icons' },
|
|
71898
72142
|
iconsScanner: {
|
|
71899
72143
|
include: ['vendor/acme/ui-kit/src'],
|
|
71900
72144
|
exclude: ['database/dumps/**'],
|
|
@@ -71902,15 +72146,16 @@ bitbossUi({
|
|
|
71902
72146
|
});
|
|
71903
72147
|
```
|
|
71904
72148
|
|
|
71905
|
-
### `
|
|
72149
|
+
### `icons.whitelist?: string[]`
|
|
71906
72150
|
|
|
71907
|
-
Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set).
|
|
72151
|
+
Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set). An entry that resolves in no installed set — a typo, an uninstalled prefix, a glob matching nothing — **fails the build** with the same actionable message the dev overlay shows for a missing icon. `local:` names never belong here (they all ship already).
|
|
71908
72152
|
|
|
71909
72153
|
```ts
|
|
71910
72154
|
bitbossUi({
|
|
71911
|
-
|
|
71912
|
-
|
|
71913
|
-
|
|
72155
|
+
icons: {
|
|
72156
|
+
dir: './resources/icons',
|
|
72157
|
+
whitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
|
|
72158
|
+
},
|
|
71914
72159
|
});
|
|
71915
72160
|
```
|
|
71916
72161
|
|
|
@@ -72212,7 +72457,7 @@ anything. Apps that switch locales at runtime list what they offer:
|
|
|
72212
72457
|
|
|
72213
72458
|
```ts
|
|
72214
72459
|
bitbossUi({
|
|
72215
|
-
|
|
72460
|
+
icons: { dir: './src/assets/icons' },
|
|
72216
72461
|
locale: 'it',
|
|
72217
72462
|
enabledLocales: ['it', 'en', 'de', 'fr'], // ~4 dictionaries + 4 dayjs packs
|
|
72218
72463
|
});
|
|
@@ -72664,7 +72909,7 @@ leave it alone with no configuration, as long as they can see it is yours:
|
|
|
72664
72909
|
|
|
72665
72910
|
- [ ] package installed (plus `@iconify-json/*` packages for every provider prefix used);
|
|
72666
72911
|
- [ ] build plugin configured: `bitboss-ui/vite` plugin or `bitboss-ui/nuxt` module (`bitboss` config key);
|
|
72667
|
-
- [ ] using `local:` icons? `
|
|
72912
|
+
- [ ] using `local:` icons? `icons.dir` points at an existing SVG folder;
|
|
72668
72913
|
- [ ] runtime plugin installed: `app.use(bitbossUiPlugin)` (automatic in Nuxt);
|
|
72669
72914
|
- [ ] style strategy chosen: auto injection (default) or `injectStyles: false` + `import 'bitboss-ui/styles.css'` — auto injection is always library-first, so a Tailwind **v3** app that needs Preflight to load before the library must take the second option (§5);
|
|
72670
72915
|
- [ ] if a reset is required: `resetCss: true` or `import 'bitboss-ui/reset.css'`;
|
|
@@ -72872,7 +73117,7 @@ Each row: what you will find, how to find it, and what to write instead.
|
|
|
72872
73117
|
21. **`all: { adaptive: false }` (plugin) or `:adaptive="false"` (one component): the temporary crutch from the migration** → Remove it in the adaptive phase (below) `[adaptive-false]`
|
|
72873
73118
|
|
|
72874
73119
|
- Find: `rg -n -g '*.{vue,ts,js,mjs}' 'adaptive:\s*false|:adaptive=.false.'`
|
|
72875
|
-
- Write: `bitbossUi({
|
|
73120
|
+
- Write: `bitbossUi({ icons: { dir: 'resources/icons' } })`
|
|
72876
73121
|
- Keep it only on a surface that must never become a sheet, and say why in a comment.
|
|
72877
73122
|
<!-- /generated:rows -->
|
|
72878
73123
|
|
|
@@ -74551,7 +74796,7 @@ const icons = import.meta.glob('../../assets/icons/*.svg', { as: 'raw' });
|
|
|
74551
74796
|
app.provide('icons', toRegistry(icons));
|
|
74552
74797
|
```
|
|
74553
74798
|
|
|
74554
|
-
v3 does both halves itself. The **build** plugin scans `
|
|
74799
|
+
v3 does both halves itself. The **build** plugin scans `icons.dir` recursively
|
|
74555
74800
|
and turns every `.svg` into `local:<basename>`; the **runtime** plugin provides
|
|
74556
74801
|
that registry to `BbIcon`. If your plugin scanned the same folder and provided
|
|
74557
74802
|
it under `'icons'`, it is now duplicating both.
|
|
@@ -74565,9 +74810,9 @@ map stops rendering and nothing warns.
|
|
|
74565
74810
|
|
|
74566
74811
|
Check before you delete — the plugin is dead only if both hold:
|
|
74567
74812
|
|
|
74568
|
-
1. **Every SVG it registers also lives under `
|
|
74813
|
+
1. **Every SVG it registers also lives under `icons.dir`.** Diff the two folders.
|
|
74569
74814
|
If the plugin globbed a different directory (`resources/js/icons`,
|
|
74570
|
-
a package's `assets/`), move those files into `
|
|
74815
|
+
a package's `assets/`), move those files into `icons.dir` first — otherwise
|
|
74571
74816
|
deletion and non-deletion both leave you with missing icons.
|
|
74572
74817
|
2. **Nothing else injects `'icons'`.** `rg -n "inject\(['\"]icons['\"]\)"` — an
|
|
74573
74818
|
app component reading the map to render `<img>` or to enumerate names is
|
|
@@ -74584,7 +74829,7 @@ build on it.
|
|
|
74584
74829
|
|
|
74585
74830
|
## Prefix your own icons with `local:` while you are in there
|
|
74586
74831
|
|
|
74587
|
-
A v2 `type` naming an icon from your own `
|
|
74832
|
+
A v2 `type` naming an icon from your own `icons.dir` was bare — `type="user-circle"`.
|
|
74588
74833
|
Carry it over **with the prefix**:
|
|
74589
74834
|
|
|
74590
74835
|
```diff
|
|
@@ -78458,7 +78703,7 @@ export default defineConfig({
|
|
|
78458
78703
|
plugins: [
|
|
78459
78704
|
vue(),
|
|
78460
78705
|
bitbossUi({
|
|
78461
|
-
|
|
78706
|
+
icons: { dir: './src/assets/icons' }, // required — create the folder
|
|
78462
78707
|
}),
|
|
78463
78708
|
],
|
|
78464
78709
|
});
|
|
@@ -78479,11 +78724,11 @@ Migration deltas, one by one:
|
|
|
78479
78724
|
| v2 | v3 |
|
|
78480
78725
|
| --- | --- |
|
|
78481
78726
|
| `import 'bitboss-ui/styles.css'` in the entry file | **Delete it.** The runtime plugin auto-injects styles (`injectStyles` defaults `true`). Keep a manual import only if you set `injectStyles: false` — see the Tailwind exception below. |
|
|
78482
|
-
| No build plugin | **Add `bitbossUi({
|
|
78727
|
+
| No build plugin | **Add `bitbossUi({ icons: { dir } })`** to `vite.config.ts` (or the `bitboss-ui/nuxt` module). The app does not build without it — components import the virtual config module. |
|
|
78483
78728
|
| `app.use(BbTooltipDirectivePlugin)` / `app.use(BbDropdownDirectivePlugin)` | **Delete both.** `bitbossUiPlugin` registers `v-bb-tooltip` and `v-bb-dropdown` itself (opt out with `injectDirectives: false` if the names collide). |
|
|
78484
78729
|
| No reset stylesheet | Optional: `resetCss: true` or `import 'bitboss-ui/reset.css'`. Skip in Tailwind apps — Preflight already does this. |
|
|
78485
|
-
| Icons registered by augmenting the `IconRegistry` type | **Gone** (the `IconRegistry` export no longer exists — see section 5). Drop `.svg` files into `
|
|
78486
|
-
| A hand-rolled icon plugin doing `app.provide('icons', { … })` | **Delete it** and move the art into `
|
|
78730
|
+
| Icons registered by augmenting the `IconRegistry` type | **Gone** (the `IconRegistry` export no longer exists — see section 5). Drop `.svg` files into `icons.dir` and reference them as `local:<name>`; provider icons (`lucide:*`, `mdi:*`, …) need the matching `@iconify-json/*` dev dependency. |
|
|
78731
|
+
| A hand-rolled icon plugin doing `app.provide('icons', { … })` | **Delete it** and move the art into `icons.dir`. See the shadowing warning below — this one is silent. |
|
|
78487
78732
|
|
|
78488
78733
|
### ⚠ silent — a hand-rolled `provide('icons', …)` is shadowed, not merged
|
|
78489
78734
|
|
|
@@ -78493,7 +78738,7 @@ icon plugin typically uses. `BbIcon` reads the **Symbol first**
|
|
|
78493
78738
|
(`inject(ICONS_INJECTION_KEY) ?? inject('icons')`), so once the library plugin
|
|
78494
78739
|
is installed your own `provide('icons', …)` map never wins. Any glyph that
|
|
78495
78740
|
existed only in that map stops resolving, and nothing warns. Move those SVGs
|
|
78496
|
-
into `
|
|
78741
|
+
into `icons.dir` and reference them as `local:<name>`.
|
|
78497
78742
|
|
|
78498
78743
|
App code that still calls `inject('icons')` now receives the **library's**
|
|
78499
78744
|
registry object, not yours. The string key is a one-release compatibility shim
|
|
@@ -78514,7 +78759,7 @@ manual import and turn injection off:
|
|
|
78514
78759
|
|
|
78515
78760
|
```ts
|
|
78516
78761
|
// vite.config.ts
|
|
78517
|
-
bitbossUi({
|
|
78762
|
+
bitbossUi({ icons: { dir: './src/assets/icons' }, injectStyles: false });
|
|
78518
78763
|
```
|
|
78519
78764
|
|
|
78520
78765
|
```ts
|
|
@@ -78536,7 +78781,7 @@ v3 ships a module that does both halves — do **not** also call `app.use`:
|
|
|
78536
78781
|
export default defineNuxtConfig({
|
|
78537
78782
|
modules: ['bitboss-ui/nuxt'],
|
|
78538
78783
|
bitboss: {
|
|
78539
|
-
|
|
78784
|
+
icons: { dir: './assets/icons' },
|
|
78540
78785
|
},
|
|
78541
78786
|
});
|
|
78542
78787
|
```
|
|
@@ -78550,8 +78795,8 @@ not rewriting setup.
|
|
|
78550
78795
|
|
|
78551
78796
|
| `@bitboss-dev/bitboss-ui-nuxt` option | v3 `bitboss-ui/nuxt` |
|
|
78552
78797
|
| --- | --- |
|
|
78553
|
-
| `icons.path` | `
|
|
78554
|
-
| `icons.enabled: false` | **Gone** — the icon pipeline is not optional in v3; components import the virtual icon module. Point `
|
|
78798
|
+
| `icons.path` | `icons.dir`. Same job. |
|
|
78799
|
+
| `icons.enabled: false` | **Gone** — the icon pipeline is not optional in v3; components import the virtual icon module. Point `icons.dir` at an empty folder if you ship no local art. |
|
|
78555
78800
|
| `styles.enabled` | `injectStyles` (still defaults `true`). |
|
|
78556
78801
|
| `styles.index` | **Gone**, and nothing replaces it — see the ordering note below. |
|
|
78557
78802
|
| `link.name` | `nuxtLinkName` (still defaults `'NuxtLink'`). |
|
|
@@ -78573,7 +78818,7 @@ or opt back in:
|
|
|
78573
78818
|
export default defineNuxtConfig({
|
|
78574
78819
|
modules: ['bitboss-ui/nuxt'],
|
|
78575
78820
|
bitboss: {
|
|
78576
|
-
|
|
78821
|
+
icons: { dir: './assets/icons' },
|
|
78577
78822
|
autoImport: true, // BbForm and the form controls included
|
|
78578
78823
|
},
|
|
78579
78824
|
});
|
|
@@ -78640,7 +78885,7 @@ the `components` map:
|
|
|
78640
78885
|
```ts
|
|
78641
78886
|
// v3
|
|
78642
78887
|
bitbossUi({
|
|
78643
|
-
|
|
78888
|
+
icons: { dir: './src/assets/icons' },
|
|
78644
78889
|
inertiaLinkName: 'Link',
|
|
78645
78890
|
mobileMaxWidth: 768,
|
|
78646
78891
|
components: { BbDialog: { sizeMap: { md: 700 } } },
|
|
@@ -78684,7 +78929,7 @@ without any error. If your app relied on the v2 widths, pin them explicitly:
|
|
|
78684
78929
|
|
|
78685
78930
|
```ts
|
|
78686
78931
|
bitbossUi({
|
|
78687
|
-
|
|
78932
|
+
icons: { dir: '…' },
|
|
78688
78933
|
components: {
|
|
78689
78934
|
BbDialog: { sizeMap: { md: 652, lg: 896 } },
|
|
78690
78935
|
BbOffCanvas: { sizeMap: { md: 652, lg: 896 } },
|
|
@@ -79111,7 +79356,7 @@ modifier class), register the name and ship its CSS:
|
|
|
79111
79356
|
```ts
|
|
79112
79357
|
// vite.config.ts
|
|
79113
79358
|
bitbossUi({
|
|
79114
|
-
|
|
79359
|
+
icons: { dir: '…' },
|
|
79115
79360
|
components: {
|
|
79116
79361
|
BbButton: { variants: ['brand'] },
|
|
79117
79362
|
BbBadge: { variants: ['soft-blue'] },
|
|
@@ -79162,7 +79407,7 @@ every occurrence; this section explains each pattern once.
|
|
|
79162
79407
|
| `BbRatio` (+ `BbRatioProps`, `.bb-ratio`) | **removed** | No replacement — it was a one-rule wrapper. Use the `aspect-ratio` CSS property, or copy the v2 component. |
|
|
79163
79408
|
| `useQueue`, `useQuery` | **removed** | Both were public v2 exports and neither has a v3 equivalent; the import fails at build. Copy the v2 implementations out of the 2.1.135 tarball (`dist/composables/useQueue.d.ts`, `useQuery.d.ts`) into your app, or replace them with `@vueuse/core` equivalents. |
|
|
79164
79409
|
| `BbToastMessage` type export | **removed** | Use `BbToastOptions` (the `toast()` options shape). |
|
|
79165
|
-
| `IconRegistry` / `IconNameFromRegistry` exports | **removed** | Icon names are plain strings now. Local art goes in `
|
|
79410
|
+
| `IconRegistry` / `IconNameFromRegistry` exports | **removed** | Icon names are plain strings now. Local art goes in `icons.dir` as `local:<name>`; delete your `IconRegistry` augmentation. |
|
|
79166
79411
|
| `BbConfirm` + `BbToast` (the hosts; `BbConfirmProps`, `BbToastProps`) | **removed** — delete the tags: the plugin renders `<BbHost />` | Delete both tags: the plugin renders a `<BbHost />` beside the app (after 3.0.0-beta.65; one placed at the app root since beta.56 keeps working). It renders every `confirm()` and `toast()`, takes no props, and a second one renders nothing. Their settings moved to the plugin config: `<BbConfirm size>` → `confirm: { defaultSize }`, `<BbToast position>` → `toastPosition`, the hosts' `pt` / `pt:*` → the build-time `pt.BbConfirm` / `pt.BbToast` maps. `<BbConfirmPortal>`, `<BbToastPortal>`, `confirm()` and `toast()` are unchanged. With no host, `confirm()` now resolves `false` after one second instead of hanging. |
|
|
79167
79412
|
|
|
79168
79413
|
### 5.2 The polarity wave: booleans now read as opt-in
|
|
@@ -81290,6 +81535,35 @@ nullValue }, BbTextarea: { nullValue } }`, same values (`'null'` /
|
|
|
81290
81535
|
arrow keys + Enter) emits `option:add`, as Enter already did. A
|
|
81291
81536
|
`#empty` that offered a create link or button is redundant: drop it.
|
|
81292
81537
|
|
|
81538
|
+
169. **The icon options move under `icons`** (after 3.0.0-beta.75).
|
|
81539
|
+
`iconDir` is `icons.dir` and `iconWhitelist` is `icons.whitelist`,
|
|
81540
|
+
in `bitbossUi()` and in Nuxt's `bitboss` key; the old keys fail the
|
|
81541
|
+
build naming the new ones. `iconsScanner` stays where it is.
|
|
81542
|
+
|
|
81543
|
+
```ts
|
|
81544
|
+
bitbossUi({
|
|
81545
|
+
icons: { dir: './src/assets/icons', whitelist: ['tabler:crown'] },
|
|
81546
|
+
});
|
|
81547
|
+
```
|
|
81548
|
+
|
|
81549
|
+
170. **BbSelect / BbSelectPopover take `v-model:query`** (after
|
|
81550
|
+
3.0.0-beta.75). The search field's text, bound: written back raw on
|
|
81551
|
+
every committed keystroke and `''` when the component empties the
|
|
81552
|
+
field (close, a pick that closes, `option:add`, the ✕). A write
|
|
81553
|
+
searches at once and is held while closed, so a cancelled create can
|
|
81554
|
+
reopen on its search: `query = text; open = true`. On the phone
|
|
81555
|
+
sheet the query now clears when the close begins, not after the
|
|
81556
|
+
slide-out.
|
|
81557
|
+
|
|
81558
|
+
171. **Dropdown group titles are `group-label`, `groupBy` headings
|
|
81559
|
+
`group-header`** (after 3.0.0-beta.75). `.bb-dropdown__group-title`
|
|
81560
|
+
is `.bb-dropdown__group-label` (its `group-title__*` children follow),
|
|
81561
|
+
and a `groupBy` heading carries only `.bb-dropdown__group-header` (was
|
|
81562
|
+
`__group-title __section-title`; its wrapper `__section` is
|
|
81563
|
+
`__group-section`). Rename them in your CSS, or better, style them
|
|
81564
|
+
through the new parts: `pt:group-label` on BbDropdown and
|
|
81565
|
+
`pt:group-header` on BbDropdown and BbSelect.
|
|
81566
|
+
|
|
81293
81567
|
## 7. Class overrides → variants
|
|
81294
81568
|
|
|
81295
81569
|
### The v2 pattern to hunt down
|
|
@@ -81611,7 +81885,7 @@ Each `pt` part now has a class with the same name, on the same element:
|
|
|
81611
81885
|
|
|
81612
81886
|
<!-- generated:count -->
|
|
81613
81887
|
|
|
81614
|
-
In numbers: **
|
|
81888
|
+
In numbers: **94** classes renamed, **23** added beside an existing class, and **7** new state classes and elements.
|
|
81615
81889
|
|
|
81616
81890
|
<!-- /generated:count -->
|
|
81617
81891
|
|
|
@@ -81651,7 +81925,7 @@ bash and zsh. On Windows, use Git Bash or WSL.
|
|
|
81651
81925
|
|
|
81652
81926
|
```sh
|
|
81653
81927
|
rg -nP --glob '!node_modules' --glob '!dist' --glob '!rename-bb-classes.mjs' \
|
|
81654
|
-
'(?<![\w-])(bb-checkbox-group-item__description|bb-switch-group-item__description|bb-radio-group-item__description|bb-dropdown-button__dropdown-btn|bb-segmented-field__trigger-btn|bb-select-popover__search-input|bb-select-popover__search-clear|bb-listbox__option-description|bb-dropzone__interactive-label|bb-time-picker-input-offcanvas|bb-checkbox-group-item__label|bb-dropdown__items-container|bb-dropdown-button__main-btn|bb-pagination__page-chevron|bb-switch-group-item__label|bb-table-column-ghost__icon|bb-select-popover-offcanvas|bb-radio-group-item__label|bb-color-palette-offcanvas|bb-checkbox-group__no-data|bb-segmented-field__field|bb-time-selector__readout|bb-toast-message__content|bb-toast-message__actions|bb-color-palette__popover|bb-commabox-item--focused|bb-listbox__option-label|bb-calendar__header-cell|bb-calendar__date-button|bb-time-selector__header|bb-date-picker-offcanvas|bb-time-picker-offcanvas|bb-calendar__date-append|bb-switch-group__no-data|bb-indicator__indicator|bb-toast-message__title|bb-toast-message__close|bb-date-picker__popover|bb-time-picker__popover|bb-toast-message__inner|bb-radio-group__no-data|bb-badge__clear-button|bb-checkbox-group-item|bb-toast-message__icon|bb-toast-message__text|bb-table-no-data__cell|bb-table-no-data__text|bb-select__comma-item|bb-calendar__controls|bb-time-selector__btn|bb-tabs-list__tablist|bb-table-no-data__row|bb-offcanvas--stacked|bb-calendar__nav-btn|bb-switch-group-item|bb-popover-offcanvas|bb-field__hint-text|bb-tooltip__content|bb-radio-group-item|bb-table-header-row|bb-table-sort__icon|bb-table-data__cell|bb-listbox--no-data|bb-listbox__no-data|bb-tag__text-input|bb-button__content|bb-table-data__row|bb-offcanvas__body|bb-calendar__month|bb-dialog--stacked|bb-badge__content|bb-calendar__date|item__description|bb-rating__option|bb-badge--focused|bb-button--active|bb-chipsbox-item|bb-commabox-item|bb-table-caption|bb-tabs__trigger|bb-toast-message|bb-select__chip|bb-table-header|bb-dialog__body|bb-tree__node|bb-tabs-panes|bb-tabs__pane|item__text)(?![\w]|-(?!-))'
|
|
81928
|
+
'(?<![\w-])(bb-checkbox-group-item__description|bb-switch-group-item__description|bb-radio-group-item__description|bb-dropdown-button__dropdown-btn|bb-segmented-field__trigger-btn|bb-select-popover__search-input|bb-select-popover__search-clear|bb-listbox__option-description|bb-dropzone__interactive-label|bb-time-picker-input-offcanvas|bb-checkbox-group-item__label|bb-dropdown__items-container|bb-dropdown-button__main-btn|bb-pagination__page-chevron|bb-switch-group-item__label|bb-table-column-ghost__icon|bb-select-popover-offcanvas|bb-radio-group-item__label|bb-color-palette-offcanvas|bb-checkbox-group__no-data|bb-dropdown__section-title|bb-segmented-field__field|bb-time-selector__readout|bb-toast-message__content|bb-toast-message__actions|bb-color-palette__popover|bb-commabox-item--focused|group-title__prepend-icon|bb-listbox__option-label|bb-calendar__header-cell|bb-calendar__date-button|bb-time-selector__header|bb-date-picker-offcanvas|bb-time-picker-offcanvas|bb-calendar__date-append|bb-switch-group__no-data|bb-dropdown__group-title|group-title__append-icon|bb-indicator__indicator|bb-toast-message__title|bb-toast-message__close|bb-date-picker__popover|bb-time-picker__popover|bb-toast-message__inner|bb-radio-group__no-data|bb-badge__clear-button|bb-checkbox-group-item|bb-toast-message__icon|bb-toast-message__text|bb-table-no-data__cell|bb-table-no-data__text|bb-select__comma-item|bb-calendar__controls|bb-time-selector__btn|bb-tabs-list__tablist|bb-table-no-data__row|bb-offcanvas--stacked|bb-calendar__nav-btn|bb-switch-group-item|bb-popover-offcanvas|group-title__content|bb-dropdown__section|bb-field__hint-text|bb-tooltip__content|bb-radio-group-item|bb-table-header-row|bb-table-sort__icon|bb-table-data__cell|bb-listbox--no-data|bb-listbox__no-data|bb-tag__text-input|bb-button__content|bb-table-data__row|bb-offcanvas__body|bb-calendar__month|bb-dialog--stacked|bb-badge__content|bb-calendar__date|item__description|bb-rating__option|bb-badge--focused|bb-button--active|bb-chipsbox-item|bb-commabox-item|bb-table-caption|bb-tabs__trigger|bb-toast-message|bb-select__chip|bb-table-header|bb-dialog__body|bb-tree__node|bb-tabs-panes|bb-tabs__pane|item__text)(?![\w]|-(?!-))'
|
|
81655
81929
|
```
|
|
81656
81930
|
|
|
81657
81931
|
<!-- /generated:find -->
|
|
@@ -81674,7 +81948,7 @@ List the nested selectors that may spell an old name:
|
|
|
81674
81948
|
|
|
81675
81949
|
```sh
|
|
81676
81950
|
rg -nP --glob '*.{css,scss,sass,less,styl,pcss,postcss,vue,svelte,astro}' --glob '!node_modules' --glob '!dist' \
|
|
81677
|
-
'(?:&|#\{&\})(-picker-input-offcanvas|__option-description|__interactive-label|-popover-offcanvas|-palette-offcanvas|__items-container|-picker-offcanvas|-input-offcanvas|__dropdown-btn|__search-input|__search-clear|__page-chevron|-item--focused|__option-label|__clear-button|__description|__trigger-btn|-column-ghost|__header-cell|__date-button|__date-append|-description|__comma-item|__text-input|-group-item|__indicator|__hint-text|-header-row|-offcanvas|-container|__main-btn|__controls|__no-data|__readout|-selector|__content|__actions|__popover|--focused|__tablist|--stacked|__nav-btn|--no-data|__trigger|-popover|-chevron|-message|-palette|-focused|__header|-no-data|-stacked|__option|--active|-caption|-button|__label|__field|-append|__title|__close|-picker|__inner|__month|-active|-header|-field|-input|-clear|-label|__icon|-ghost|-group|__text|__cell|__body|__date|__chip|__node|-panes|__pane|-item|-data|-cell|__btn|-list|__row|-text|-sort|-btn|-row)(?=[\s,{:.>+~\[)]|__|--|$)'
|
|
81951
|
+
'(?:&|#\{&\})(-picker-input-offcanvas|__option-description|__interactive-label|-popover-offcanvas|-palette-offcanvas|__items-container|-picker-offcanvas|-input-offcanvas|__section-title|__dropdown-btn|__search-input|__search-clear|__page-chevron|-item--focused|__option-label|__clear-button|__description|__trigger-btn|-column-ghost|__header-cell|__date-button|__date-append|__group-title|-description|__comma-item|__text-input|-group-item|__indicator|__hint-text|-header-row|-offcanvas|-container|__main-btn|__controls|__no-data|__readout|-selector|__content|__actions|__popover|--focused|__tablist|--stacked|__nav-btn|__section|--no-data|__trigger|-popover|-chevron|-message|-palette|-focused|__header|-no-data|-stacked|__option|--active|-caption|-button|__label|__field|-append|__title|__close|-picker|__inner|__month|-active|-header|-field|-input|-clear|-label|__icon|-ghost|-group|-title|__text|__cell|__body|__date|__chip|__node|-panes|__pane|-item|-data|-cell|__btn|-list|__row|-text|-sort|-btn|-row)(?=[\s,{:.>+~\[)]|__|--|$)'
|
|
81678
81952
|
```
|
|
81679
81953
|
|
|
81680
81954
|
<!-- /generated:nested -->
|
|
@@ -81836,6 +82110,9 @@ const MAP = {
|
|
|
81836
82110
|
'bb-table-no-data__text': 'bb-table-empty__text',
|
|
81837
82111
|
'bb-dialog--stacked': 'bb-dialog--above',
|
|
81838
82112
|
'bb-offcanvas--stacked': 'bb-offcanvas--above',
|
|
82113
|
+
'bb-dropdown__group-title': 'bb-dropdown__group-label',
|
|
82114
|
+
'bb-dropdown__section-title': 'bb-dropdown__group-header',
|
|
82115
|
+
'bb-dropdown__section': 'bb-dropdown__group-section',
|
|
81839
82116
|
};
|
|
81840
82117
|
|
|
81841
82118
|
/**
|
|
@@ -81858,6 +82135,12 @@ const MANUAL = {
|
|
|
81858
82135
|
'bb-dropdown__item-text — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
|
|
81859
82136
|
item__description:
|
|
81860
82137
|
'bb-dropdown__item-description — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
|
|
82138
|
+
'group-title__content':
|
|
82139
|
+
'group-label__content — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
|
|
82140
|
+
'group-title__prepend-icon':
|
|
82141
|
+
'group-label__prepend-icon — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
|
|
82142
|
+
'group-title__append-icon':
|
|
82143
|
+
'group-label__append-icon — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
|
|
81861
82144
|
};
|
|
81862
82145
|
|
|
81863
82146
|
const USAGE =
|
|
@@ -82341,6 +82624,12 @@ consistent.
|
|
|
82341
82624
|
| `.bb-checkbox-group__no-data` | `.bb-checkbox-group__empty` | `empty` | |
|
|
82342
82625
|
| `.bb-radio-group__no-data` | `.bb-radio-group__empty` | `empty` | |
|
|
82343
82626
|
| `.bb-switch-group__no-data` | `.bb-switch-group__empty` | `empty` | |
|
|
82627
|
+
| `.bb-dropdown__group-title` | `.bb-dropdown__group-label` | `groupLabel` | |
|
|
82628
|
+
| `.group-title__content` | `.group-label__content` | _internal_ | |
|
|
82629
|
+
| `.group-title__prepend-icon` | `.group-label__prepend-icon` | _internal_ | |
|
|
82630
|
+
| `.group-title__append-icon` | `.group-label__append-icon` | _internal_ | |
|
|
82631
|
+
| `.bb-dropdown__section-title` | `.bb-dropdown__group-header` | `groupHeader` | A `groupBy` heading. It no longer carries `.bb-dropdown__group-title` (a group's own label row, now `__group-label`): the two share rules, not a class. Its content span is `.group-header__content`. |
|
|
82632
|
+
| `.bb-dropdown__section` | `.bb-dropdown__group-section` | _internal_ | |
|
|
82344
82633
|
|
|
82345
82634
|
<!-- /generated:renames -->
|
|
82346
82635
|
|
|
@@ -84358,8 +84647,8 @@ _Passthrough parts and states_ table in that component's contract
|
|
|
84358
84647
|
| `BbDatePicker` | `root`, `panel`, `sheet`, `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `week`, `weekNumber` _(`type="week"` rows)_, `day`, `dayButton`, `monthItem`, `yearItem`, `item` _(forwarded to the calendar)_ | `outside`, `today`, `inRange`, `selected`, `rangeStart`, `rangeEnd`, `disabled`, `highlighted` _(per cell)_, `active` _(month / year)_, `open` |
|
|
84359
84648
|
| `BbDatePickerInput` | family + `activator`, `panel`, `sheet`, `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `week`, `weekNumber` _(`type="week"` rows)_, `day`, `dayButton`, `monthItem`, `yearItem`, `item` _(forwarded to the calendar)_ | family + `open`, `outside`, `today`, `inRange`, `selected`, `rangeStart`, `rangeEnd`, `disabled`, `highlighted` _(per cell)_, `active` _(month / year)_ |
|
|
84360
84649
|
| `BbDialog` | `root`, `sheet`, `header`, `title`, `description`, `content`, `footer`, `close` | `open`, `fullscreen` |
|
|
84361
|
-
| `BbDropdown` | `root`, `panel`, `sheet`, `header`, `footer`, `box` _(each search box)_, `input` _(every searchable group's field)_, `list`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `submenu` _(each flyout box)_ | `open`, `activeLink`, `exactActiveLink`, `selected`, `disabled` _(per entry)_; _(variants, per entry, on the entry parts: `default`, `destructive`)_ |
|
|
84362
|
-
| `BbDropdownButton` | `root`, `main`, `toggle` _(the two halves)_, `icon`, `spinner`, `text` _(the main button's)_, `panel`, `sheet`, `header`, `footer`, `box`, `input`, `list`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check`, `submenu` _(the menu's)_ | `activeLink`, `exactActiveLink` _(the main button's link; per entry on the entry parts)_, `loading`, `disabled`, `open`; `selected` _(entry parts only)_; _(variants: the button's on the control's parts — root, main, toggle, icon, spinner, text: `primary`, `outline`, `secondary`, `ghost`, `destructive`, `link`; each entry's on the entry parts: `default`, `destructive`)_ |
|
|
84650
|
+
| `BbDropdown` | `root`, `panel`, `sheet`, `header`, `footer`, `box` _(each search box)_, `input` _(every searchable group's field)_, `list`, `groupLabel` _(each group's label)_, `groupHeader` _(each group-by heading)_, `item`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `submenu` _(each flyout box)_ | `open`, `activeLink`, `exactActiveLink`, `selected`, `disabled` _(per entry)_; _(variants, per entry, on the entry parts: `default`, `destructive`)_ |
|
|
84651
|
+
| `BbDropdownButton` | `root`, `main`, `toggle` _(the two halves)_, `icon`, `spinner`, `text` _(the main button's)_, `panel`, `sheet`, `header`, `footer`, `box`, `input`, `list`, `groupLabel`, `groupHeader`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check`, `submenu` _(the menu's)_ | `activeLink`, `exactActiveLink` _(the main button's link; per entry on the entry parts)_, `loading`, `disabled`, `open`; `selected` _(entry parts only)_; _(variants: the button's on the control's parts — root, main, toggle, icon, spinner, text: `primary`, `outline`, `secondary`, `ghost`, `destructive`, `link`; each entry's on the entry parts: `default`, `destructive`)_ |
|
|
84363
84652
|
| `BbDropzone` | `root`, `content`, `message` | `active`, `errors`, `warnings`, `disabled`, `readonly` |
|
|
84364
84653
|
| `BbGallery` | `root`, `header`, `title`, `close`, `slide` _(per photo)_, `image` _(per photo)_, `prev`, `next`, `footer`, `caption`, `more`, `counter` | `disabled` _(per node)_, `active` _(per node)_, `zoomed` |
|
|
84365
84654
|
| `BbHoverCard` | `root`, `panel`, `header`, `content`, `footer` | `open` |
|
|
@@ -84373,8 +84662,8 @@ _Passthrough parts and states_ table in that component's contract
|
|
|
84373
84662
|
| `BbRadio` | `root`, `label`, `description`, `message`, `hint`, `icon` | `errors`, `warnings`, `disabled`, `readonly`, `checked`, `focused`, `focusVisible` |
|
|
84374
84663
|
| `BbRadioGroup` | `root`, `legend`, `description`, `message`, `hint`, `list`, `item`, `icon`, `label`, `itemDescription`, `indicator` | `errors`, `warnings`, `disabled`, `readonly`, `loading`, `hasValue`; `checked`, `focused`, `focusVisible` _(row parts only)_; _(variants, on every part: `pill`, `line`, `outline`)_ |
|
|
84375
84664
|
| `BbRating` | `root`, `legend`, `description`, `message`, `hint`, `item` | `errors`, `warnings`, `disabled`, `readonly`, `hasValue`, `selected` _(per star)_ |
|
|
84376
|
-
| `BbSelect` | `root`, `label`, `description`, `message`, `hint`, `box`, `activator`, `icon`, `spinner`, `prefix`, `suffix`, `clear`, `panel`, `sheet`, `header`, `footer`, `input` _(the search field)_, `list`, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(forwarded to the popover)_, `badge`, `comma` _(each selected value)_ | family + `open`, `selected` _(per option)_ |
|
|
84377
|
-
| `BbSelectPopover` | `root`, `panel`, `sheet`, `input`, `clear`, `list`, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `header`, `footer` | `open`, `selected`, `disabled` _(per option)_ |
|
|
84665
|
+
| `BbSelect` | `root`, `label`, `description`, `message`, `hint`, `box`, `activator`, `icon`, `spinner`, `prefix`, `suffix`, `clear`, `panel`, `sheet`, `header`, `footer`, `input` _(the search field)_, `list`, `groupHeader`, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(forwarded to the popover)_, `badge`, `comma` _(each selected value)_ | family + `open`, `selected` _(per option)_ |
|
|
84666
|
+
| `BbSelectPopover` | `root`, `panel`, `sheet`, `input`, `clear`, `list`, `groupHeader` _(each group-by heading)_, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `header`, `footer` | `open`, `selected`, `disabled` _(per option)_ |
|
|
84378
84667
|
| `BbSlider` | `root`, `label`, `description`, `message`, `hint`, `box`, `track`, `bar`, `ticks`, `tick`, `thumb` | `errors`, `warnings`, `disabled`, `readonly`, `hasValue`, `active`, `inRange` _(per tick)_ |
|
|
84379
84668
|
| `BbSmoothHeight` | `root` | — |
|
|
84380
84669
|
| `BbSpinner` | `root` | — |
|
|
@@ -86732,6 +87021,7 @@ Do not use these components directly in consumer code unless the user explicitly
|
|
|
86732
87021
|
| `pt:itemText` | `span.bb-listbox__item-text` | `FlatListBox` _(internal)_ |
|
|
86733
87022
|
| `pt:itemDescription` | `span.bb-listbox__item-description` | `FlatListBox` _(internal)_ |
|
|
86734
87023
|
| `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbIcon.md)) |
|
|
87024
|
+
| `pt:groupHeader` | `span.bb-listbox__group-header` | `GroupedListBox` _(internal)_ |
|
|
86735
87025
|
|
|
86736
87026
|
**CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `ListBox`'s root:
|
|
86737
87027
|
|
|
@@ -86759,7 +87049,7 @@ Do not use these components directly in consumer code unless the user explicitly
|
|
|
86759
87049
|
| `open` | `boolean \| undefined` | `false` | | Whether the listbox is open (visible). |
|
|
86760
87050
|
| `optionHeight` | `number \| undefined` | | | 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. |
|
|
86761
87051
|
| `options` | `Option<Item>[] \| undefined` | | | Flat option list. Used when `groups` is not provided. |
|
|
86762
|
-
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | 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. |
|
|
87052
|
+
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "groupHeader" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | 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. |
|
|
86763
87053
|
| `transitionDuration` | `number \| undefined` | | | Duration of open/close transition in milliseconds. |
|
|
86764
87054
|
|
|
86765
87055
|
## Events
|
|
@@ -86789,7 +87079,7 @@ Do not use these components directly in consumer code unless the user explicitly
|
|
|
86789
87079
|
|
|
86790
87080
|
- `ListBox` _(this component)_
|
|
86791
87081
|
- `FlatListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
86792
|
-
- `GroupedListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
87082
|
+
- `GroupedListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
86793
87083
|
|
|
86794
87084
|
---
|
|
86795
87085
|
|
|
@@ -88810,7 +89100,7 @@ export default defineConfig({
|
|
|
88810
89100
|
laravel({ input: 'resources/js/app.ts', refresh: true }),
|
|
88811
89101
|
vue(),
|
|
88812
89102
|
bitbossUi({
|
|
88813
|
-
|
|
89103
|
+
icons: { dir: './resources/js/assets/icons' },
|
|
88814
89104
|
components: {
|
|
88815
89105
|
BbBadge: {
|
|
88816
89106
|
variants: [
|
|
@@ -91671,7 +91961,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
91671
91961
|
|
|
91672
91962
|
// Icon names are full static literals: the production icon scanner bundles
|
|
91673
91963
|
// only literals it can see. The logos are fixed-colour brand art, kept apart
|
|
91674
|
-
// from the single-colour UI icons in `<
|
|
91964
|
+
// from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
|
|
91675
91965
|
// is still `local:stripe`: names flatten to the file's basename).
|
|
91676
91966
|
const integrations = reactive<WorkspaceIntegration[]>([
|
|
91677
91967
|
{
|
|
@@ -107091,7 +107381,7 @@ export default defineNuxtConfig({
|
|
|
107091
107381
|
modules: ['bitboss-ui/nuxt'],
|
|
107092
107382
|
css: ['~/assets/css/badge-variants.css'],
|
|
107093
107383
|
bitboss: {
|
|
107094
|
-
|
|
107384
|
+
icons: { dir: './assets/icons' },
|
|
107095
107385
|
components: {
|
|
107096
107386
|
BbBadge: {
|
|
107097
107387
|
variants: [
|
|
@@ -110004,7 +110294,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
110004
110294
|
|
|
110005
110295
|
// Icon names are full static literals: the production icon scanner bundles
|
|
110006
110296
|
// only literals it can see. The logos are fixed-colour brand art, kept apart
|
|
110007
|
-
// from the single-colour UI icons in `<
|
|
110297
|
+
// from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
|
|
110008
110298
|
// is still `local:stripe`: names flatten to the file's basename).
|
|
110009
110299
|
const integrations = reactive<WorkspaceIntegration[]>([
|
|
110010
110300
|
{
|
|
@@ -125479,7 +125769,7 @@ export default defineConfig({
|
|
|
125479
125769
|
plugins: [
|
|
125480
125770
|
vue(),
|
|
125481
125771
|
bitbossUi({
|
|
125482
|
-
|
|
125772
|
+
icons: { dir: './src/assets/icons' },
|
|
125483
125773
|
components: {
|
|
125484
125774
|
BbBadge: {
|
|
125485
125775
|
variants: [
|
|
@@ -127945,7 +128235,7 @@ Sibling recipes: [Nuxt](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/nuxt/
|
|
|
127945
128235
|
those files before anything below, and do not hand-roll replacements —
|
|
127946
128236
|
the peek stack, the close semantics and the sidebar's out-of-flow
|
|
127947
128237
|
behaviour are all load-bearing here.
|
|
127948
|
-
- **Four brand glyphs in the plugin's `
|
|
128238
|
+
- **Four brand glyphs in the plugin's `icons.dir`**: `stripe.svg`, `slack.svg`,
|
|
127949
128239
|
`google-drive.svg` and `quickbooks.svg` (any single-colour SVG; the
|
|
127950
128240
|
integrations list names them `local:stripe` and so on). Without them each
|
|
127951
128241
|
integration row logs a missing-icon error; or swap the names for
|
|
@@ -128225,7 +128515,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
128225
128515
|
|
|
128226
128516
|
// Icon names are full static literals: the production icon scanner bundles
|
|
128227
128517
|
// only literals it can see. The logos are fixed-colour brand art, kept apart
|
|
128228
|
-
// from the single-colour UI icons in `<
|
|
128518
|
+
// from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
|
|
128229
128519
|
// is still `local:stripe`: names flatten to the file's basename).
|
|
128230
128520
|
const integrations = reactive<WorkspaceIntegration[]>([
|
|
128231
128521
|
{
|