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.
Files changed (169) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbBreadcrumbs.md +1 -1
  5. package/dist/ai/BbButton.md +2 -2
  6. package/dist/ai/BbColorInput.md +1 -1
  7. package/dist/ai/BbColorPalette.md +1 -1
  8. package/dist/ai/BbConfirm.md +1 -1
  9. package/dist/ai/BbDatePicker.md +1 -1
  10. package/dist/ai/BbDatePickerInput.md +1 -1
  11. package/dist/ai/BbDialog.md +3 -2
  12. package/dist/ai/BbDropdown.md +23 -21
  13. package/dist/ai/BbDropdownButton.md +13 -11
  14. package/dist/ai/BbGallery.md +3 -2
  15. package/dist/ai/BbIcon.md +10 -10
  16. package/dist/ai/BbOffCanvas.md +3 -2
  17. package/dist/ai/BbPopover.md +1 -1
  18. package/dist/ai/BbSelect.md +153 -43
  19. package/dist/ai/BbSelectPopover.md +115 -9
  20. package/dist/ai/BbTable.md +1 -1
  21. package/dist/ai/BbTimePicker.md +1 -1
  22. package/dist/ai/BbTimePickerInput.md +1 -1
  23. package/dist/ai/GroupedListBox.md +2 -2
  24. package/dist/ai/ListBox.md +3 -2
  25. package/dist/ai/changelog.json +153 -7
  26. package/dist/ai/components.json +12 -12
  27. package/dist/ai/guides/agent-contract.md +1 -1
  28. package/dist/ai/guides/calendars-and-digits.md +1 -1
  29. package/dist/ai/guides/eslint-rules.md +1 -1
  30. package/dist/ai/guides/icons-policy.md +32 -11
  31. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  32. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  33. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  34. package/dist/ai/guides/migration/v2-to-v3.md +48 -19
  35. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  36. package/dist/ai/guides/passthrough.md +58 -58
  37. package/dist/ai/helpers/inertia/manifest.json +1 -1
  38. package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
  39. package/dist/ai/manifest/components/BbDropdown.json +19 -17
  40. package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
  41. package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
  42. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  43. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  44. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  45. package/dist/ai/manifest/components/BbSelect.json +44 -40
  46. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  47. package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
  48. package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
  49. package/dist/ai/manifest/components/BbTable.tree.json +5 -1
  50. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  51. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  52. package/dist/ai/manifest/components/ListBox.json +1 -1
  53. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  54. package/dist/ai/manifest/index.json +2 -2
  55. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  56. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  57. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  58. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  59. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  60. package/dist/ai/recipes/vue/onboarding.md +2 -2
  61. package/dist/ai/source/BbAccordion.md +4 -5
  62. package/dist/ai/source/BbAvatar.md +9 -2
  63. package/dist/ai/source/BbBadge.md +6 -2
  64. package/dist/ai/source/BbBreadcrumbs.md +5 -2
  65. package/dist/ai/source/BbCalendar.md +8 -6
  66. package/dist/ai/source/BbCarousel.md +10 -6
  67. package/dist/ai/source/BbColorPalette.md +5 -2
  68. package/dist/ai/source/BbDatePickerInput.md +7 -2
  69. package/dist/ai/source/BbDropdown.md +91 -66
  70. package/dist/ai/source/BbDropdownButton.md +36 -19
  71. package/dist/ai/source/BbDropdownGroup.md +91 -66
  72. package/dist/ai/source/BbGallery.md +6 -5
  73. package/dist/ai/source/BbPagination.md +12 -28
  74. package/dist/ai/source/BbRating.md +4 -4
  75. package/dist/ai/source/BbSelect.md +130 -106
  76. package/dist/ai/source/BbSelectPopover.md +128 -21
  77. package/dist/ai/source/BbTable.md +42 -9
  78. package/dist/ai/source/BbTimePickerInput.md +6 -2
  79. package/dist/ai/source/ClearableButton.md +4 -2
  80. package/dist/ai/source/ErrorIcon.md +4 -3
  81. package/dist/ai/source/FlatListBox.md +7 -2
  82. package/dist/ai/source/GroupedListBox.md +22 -3
  83. package/dist/ai/source/ListBox.md +7 -1
  84. package/dist/ai/source/WarningIcon.md +4 -3
  85. package/dist/assets/svgs/close.svg_raw.js +1 -1
  86. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  87. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  88. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
  89. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
  90. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
  91. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  92. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  93. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
  94. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  95. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
  96. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  97. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
  98. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
  99. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
  100. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
  101. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
  102. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
  103. package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
  104. package/dist/components/BbDropdown/types.d.ts +51 -53
  105. package/dist/components/BbDropdown/types.js +2 -0
  106. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
  107. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
  108. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
  109. package/dist/components/BbDropdownButton/types.d.ts +12 -10
  110. package/dist/components/BbDropdownButton/types.js +2 -0
  111. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  112. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
  113. package/dist/components/BbIcon/iconCache.js +1 -1
  114. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  115. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  116. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  117. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  118. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  119. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  120. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  121. package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
  122. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
  123. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  124. package/dist/components/BbSelect/types.d.ts +101 -105
  125. package/dist/components/BbSelect/types.js +1 -27
  126. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
  127. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
  128. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  129. package/dist/components/BbSelectPopover/types.d.ts +22 -13
  130. package/dist/components/BbSelectPopover/types.js +3 -1
  131. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  132. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  133. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
  134. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  135. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  136. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
  137. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
  138. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
  139. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
  140. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  141. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  142. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  143. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  144. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
  145. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
  146. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  147. package/dist/composables/useInternalIcon.js +25 -0
  148. package/dist/icon-scan.d.ts +1 -1
  149. package/dist/llms-full.txt +477 -187
  150. package/dist/llms-medium.txt +25 -24
  151. package/dist/llms.txt +1 -1
  152. package/dist/nuxt.js +1 -1
  153. package/dist/styles.css +2 -2
  154. package/dist/types/Config.d.ts +8 -1
  155. package/dist/types/ConfigDefaults.d.ts +10 -2
  156. package/dist/types/internalIcons.d.ts +89 -0
  157. package/dist/types/internalIcons.js +158 -0
  158. package/dist/types/ptComponentMap.d.ts +4 -4
  159. package/dist/utils/configDefaults.js +75 -64
  160. package/dist/utils/iconsOption.js +48 -0
  161. package/dist/utils/versionCheck.js +1 -1
  162. package/dist/vite-plugin.d.ts +10 -16
  163. package/dist/vite.js +319 -306
  164. package/llms.txt +1 -1
  165. package/package.json +1 -1
  166. package/scripts/lib/adoption-checklist.json +1 -1
  167. package/scripts/lib/update-install.mjs +48 -0
  168. package/scripts/lib/validate-bb-markup.mjs +73 -12
  169. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -8,21 +8,21 @@
8
8
  "source": "ai/source/BbDropdownButton.md",
9
9
  "props": [
10
10
  {"name":"activeClass","type":"string","description":"Class to apply when the link is active."},
11
- {"name":"adaptive","type":"boolean","default":"`all.adaptive` (`true`)","description":"On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom sheet that drills into submenus one level at a time instead of hover flyouts; slots and selection are unchanged. Unset: the global `all.adaptive`."},
11
+ {"name":"adaptive","type":"boolean","default":"`all.adaptive` (`true`)","description":"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`."},
12
12
  {"name":"append:icon","type":"string","description":"Icon to be added on the right of the text."},
13
13
  {"name":"ariaCurrentValue","type":"\"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"","default":"'page'","description":"Value passed to the attribute `aria-current` when the link is exact active."},
14
14
  {"name":"async","common":true},
15
15
  {"name":"block","type":"boolean","default":"undefined","description":"Displays the component as full width."},
16
16
  {"name":"cacheFor","common":true},
17
17
  {"name":"cacheTags","common":true},
18
- {"name":"closeOnSelect","type":"boolean","default":"unset (close after a single-choice change)","description":"Whether a selection closes the menu. Unset: a change in a single-choice group closes it (an untick too, at any depth); a `multiple` group stays open. `true`: every selection change closes it. `false`: none does."},
19
- {"name":"compact","type":"boolean","default":"false","description":"Compact density, the `BbSelect` ladder: flyout rows 28px → 24px, sheet rows 44px → 36px (a sheet row stays a touch target). The label size does not change."},
18
+ {"name":"closeOnSelect","type":"boolean","default":"unset (close after a single-choice change)","description":"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."},
19
+ {"name":"compact","type":"boolean","default":"false","description":"Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows 44 → 36px (still a touch target). The label size stays."},
20
20
  {"name":"component","common":true},
21
21
  {"name":"data","common":true},
22
22
  {"name":"disableAutoLoading","type":"boolean","default":"false","description":"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."},
23
23
  {"name":"disabled","type":"boolean","default":"false","description":"Disables both halves: the main button and the menu toggle."},
24
24
  {"name":"download","type":"string | boolean","description":"Marks an `href` link as a download: renders a plain `<a download>` doing a native navigation (never an Inertia/router visit), so file downloads work. Pass a string for the suggested filename. A native-anchor signal alongside `target` and `external`."},
25
- {"name":"eager","type":"boolean","default":"false","description":"Renders the menu panel at mount instead of on the first open (the phone sheet's too), and keeps its rows after a close. Without it the rows mount on each open and go once the menu has closed."},
25
+ {"name":"eager","type":"boolean","default":"false","description":"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."},
26
26
  {"name":"exactActiveClass","type":"string","description":"Class to apply when the link is exact active."},
27
27
  {"name":"except","common":true},
28
28
  {"name":"external","type":"boolean","default":"false","description":"Forces an `href` link to render as a plain `<a>` (native navigation), bypassing Inertia/router interception — same intent as Nuxt's `external`. A native-anchor signal alongside `target` and `download`."},
@@ -58,7 +58,7 @@
58
58
  {"name":"preserveScroll","common":true},
59
59
  {"name":"preserveState","common":true},
60
60
  {"name":"preserveUrl","common":true},
61
- {"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\", \"panel\", \"sheet\", \"header\", \"footer\", \"box\", \"input\", \"list\", \"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"submenu\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\", \"open\", \"loading\"]; readonly wide: readonly [\"activeLink\", \"exactActiveLink\", \"disabled\", \"open\", \"loading\"]; readonly node: { readonly item: readonly [\"selected\"]; readonly itemText: readonly [\"selected\"]; readonly itemIcon: readonly [\"selected\"]; readonly itemDescription: readonly [\"selected\"]; readonly check: readonly [\"selected\"]; }; readonly variant: readonly [{ readonly names: readonly [\"primary\", \"outline\", \"secondary\", \"ghost\", \"destructive\", \"link\"]; readonly option: \"buttonVariants\"; readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\"]; }, { readonly names: readonly [\"default\", \"destructive\"]; readonly option: \"dropdownItemVariants\"; readonly parts: readonly [\"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\"]; }]; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; main?: PtValue | undefined; text?: PtValue | undefined; toggle?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; \"text:outline\"?: PtValue | undefined; \"text:primary\"?: PtValue | undefined; \"text:destructive\"?: PtValue | undefined; \"root:outline\"?: PtValue | undefined; \"root:primary\"?: PtValue | undefined; \"root:destructive\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"icon:primary\"?: PtValue | undefined; \"icon:destructive\"?: PtValue | undefined; spinner?: PtValue | undefined; \"text:activeLink\"?: PtValue | undefined; \"text:exactActiveLink\"?: PtValue | undefined; \"text:loading\"?: PtValue | undefined; \"root:activeLink\"?: PtValue | undefined; \"root:exactActiveLink\"?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:activeLink\"?: PtValue | undefined; \"icon:exactActiveLink\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:activeLink\"?: PtValue | undefined; \"spinner:exactActiveLink\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"text:secondary\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:primary\"?: PtValue | undefined; \"spinner:destructive\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"text:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; \"text:link\"?: PtValue | undefined; \"text:ghost\"?: PtValue | undefined; \"root:link\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:link\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:link\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; box?: PtValue | undefined; sheet?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"text:open\"?: PtValue | undefined; \"item:open\"?: PtValue | undefined; \"header:loading\"?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"submenu:open\"?: PtValue | undefined; \"item:activeLink\"?: PtValue | undefined; \"item:exactActiveLink\"?: PtValue | undefined; \"itemDescription:activeLink\"?: PtValue | undefined; \"itemDescription:exactActiveLink\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:activeLink\"?: PtValue | undefined; \"itemText:exactActiveLink\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:activeLink\"?: PtValue | undefined; \"itemIcon:exactActiveLink\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:activeLink\"?: PtValue | undefined; \"check:exactActiveLink\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"item:default\"?: PtValue | undefined; \"item:destructive\"?: PtValue | undefined; \"itemDescription:default\"?: PtValue | undefined; \"itemDescription:destructive\"?: PtValue | undefined; \"itemText:default\"?: PtValue | undefined; \"itemText:destructive\"?: PtValue | undefined; \"itemIcon:default\"?: PtValue | undefined; \"itemIcon:destructive\"?: PtValue | undefined; \"check:default\"?: PtValue | undefined; \"check:destructive\"?: PtValue | undefined; \"footer:disabled\"?: PtValue | undefined; \"footer:activeLink\"?: PtValue | undefined; \"footer:exactActiveLink\"?: PtValue | undefined; \"footer:loading\"?: PtValue | undefined; \"header:activeLink\"?: PtValue | undefined; \"header:exactActiveLink\"?: PtValue | undefined; \"input:activeLink\"?: PtValue | undefined; \"input:exactActiveLink\"?: PtValue | undefined; \"main:disabled\"?: PtValue | undefined; \"main:open\"?: PtValue | undefined; \"main:activeLink\"?: PtValue | undefined; \"main:exactActiveLink\"?: PtValue | undefined; \"main:loading\"?: PtValue | undefined; \"toggle:disabled\"?: PtValue | undefined; \"toggle:open\"?: PtValue | undefined; \"toggle:activeLink\"?: PtValue | undefined; \"toggle:exactActiveLink\"?: PtValue | undefined; \"toggle:loading\"?: PtValue | undefined; \"list:activeLink\"?: PtValue | undefined; \"list:exactActiveLink\"?: PtValue | undefined; \"panel:activeLink\"?: PtValue | undefined; \"panel:exactActiveLink\"?: PtValue | undefined; \"itemText:loading\"?: PtValue | undefined; \"box:activeLink\"?: PtValue | undefined; \"box:exactActiveLink\"?: PtValue | undefined; \"sheet:activeLink\"?: PtValue | undefined; \"sheet:exactActiveLink\"?: PtValue | undefined; \"itemIcon:loading\"?: PtValue | undefined; \"check:loading\"?: PtValue | undefined; \"submenu:disabled\"?: PtValue | undefined; \"submenu:activeLink\"?: PtValue | undefined; \"submenu:exactActiveLink\"?: PtValue | undefined; \"submenu:loading\"?: PtValue | undefined; \"main:link\"?: PtValue | undefined; \"main:outline\"?: PtValue | undefined; \"main:primary\"?: PtValue | undefined; \"main:destructive\"?: PtValue | undefined; \"main:secondary\"?: PtValue | undefined; \"main:ghost\"?: PtValue | undefined; \"toggle:link\"?: PtValue | undefined; \"toggle:outline\"?: PtValue | undefined; \"toggle:primary\"?: PtValue | undefined; \"toggle:destructive\"?: PtValue | undefined; \"toggle:secondary\"?: PtValue | undefined; \"toggle:ghost\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemDescription?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemText?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemIcon?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; check?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; submenu?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
61
+ {"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\", \"panel\", \"sheet\", \"header\", \"footer\", \"box\", \"input\", \"list\", \"groupLabel\", \"groupHeader\", \"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"submenu\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\", \"open\", \"loading\"]; readonly wide: readonly [\"activeLink\", \"exactActiveLink\", \"disabled\", \"open\", \"loading\"]; readonly node: { readonly item: readonly [\"selected\"]; readonly itemText: readonly [\"selected\"]; readonly itemIcon: readonly [\"selected\"]; readonly itemDescription: readonly [\"selected\"]; readonly check: readonly [\"selected\"]; }; readonly variant: readonly [{ readonly names: readonly [\"primary\", \"outline\", \"secondary\", \"ghost\", \"destructive\", \"link\"]; readonly option: \"buttonVariants\"; readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\"]; }, { readonly names: readonly [\"default\", \"destructive\"]; readonly option: \"dropdownItemVariants\"; readonly parts: readonly [\"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\"]; }]; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; main?: PtValue | undefined; text?: PtValue | undefined; toggle?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; \"text:outline\"?: PtValue | undefined; \"text:primary\"?: PtValue | undefined; \"text:destructive\"?: PtValue | undefined; \"root:outline\"?: PtValue | undefined; \"root:primary\"?: PtValue | undefined; \"root:destructive\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"icon:primary\"?: PtValue | undefined; \"icon:destructive\"?: PtValue | undefined; spinner?: PtValue | undefined; \"text:activeLink\"?: PtValue | undefined; \"text:exactActiveLink\"?: PtValue | undefined; \"text:loading\"?: PtValue | undefined; \"root:activeLink\"?: PtValue | undefined; \"root:exactActiveLink\"?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:activeLink\"?: PtValue | undefined; \"icon:exactActiveLink\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:activeLink\"?: PtValue | undefined; \"spinner:exactActiveLink\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"text:secondary\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:primary\"?: PtValue | undefined; \"spinner:destructive\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"text:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; \"text:link\"?: PtValue | undefined; \"text:ghost\"?: PtValue | undefined; \"root:link\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:link\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:link\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; box?: PtValue | undefined; sheet?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"text:open\"?: PtValue | undefined; \"item:open\"?: PtValue | undefined; \"header:loading\"?: PtValue | undefined; groupLabel?: PtValue | undefined; groupHeader?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"groupLabel:open\"?: PtValue | undefined; \"groupHeader:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"submenu:open\"?: PtValue | undefined; \"item:activeLink\"?: PtValue | undefined; \"item:exactActiveLink\"?: PtValue | undefined; \"itemDescription:activeLink\"?: PtValue | undefined; \"itemDescription:exactActiveLink\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:activeLink\"?: PtValue | undefined; \"itemText:exactActiveLink\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:activeLink\"?: PtValue | undefined; \"itemIcon:exactActiveLink\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:activeLink\"?: PtValue | undefined; \"check:exactActiveLink\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"item:default\"?: PtValue | undefined; \"item:destructive\"?: PtValue | undefined; \"itemDescription:default\"?: PtValue | undefined; \"itemDescription:destructive\"?: PtValue | undefined; \"itemText:default\"?: PtValue | undefined; \"itemText:destructive\"?: PtValue | undefined; \"itemIcon:default\"?: PtValue | undefined; \"itemIcon:destructive\"?: PtValue | undefined; \"check:default\"?: PtValue | undefined; \"check:destructive\"?: PtValue | undefined; \"footer:disabled\"?: PtValue | undefined; \"footer:activeLink\"?: PtValue | undefined; \"footer:exactActiveLink\"?: PtValue | undefined; \"footer:loading\"?: PtValue | undefined; \"header:activeLink\"?: PtValue | undefined; \"header:exactActiveLink\"?: PtValue | undefined; \"input:activeLink\"?: PtValue | undefined; \"input:exactActiveLink\"?: PtValue | undefined; \"main:disabled\"?: PtValue | undefined; \"main:open\"?: PtValue | undefined; \"main:activeLink\"?: PtValue | undefined; \"main:exactActiveLink\"?: PtValue | undefined; \"main:loading\"?: PtValue | undefined; \"toggle:disabled\"?: PtValue | undefined; \"toggle:open\"?: PtValue | undefined; \"toggle:activeLink\"?: PtValue | undefined; \"toggle:exactActiveLink\"?: PtValue | undefined; \"toggle:loading\"?: PtValue | undefined; \"list:activeLink\"?: PtValue | undefined; \"list:exactActiveLink\"?: PtValue | undefined; \"panel:activeLink\"?: PtValue | undefined; \"panel:exactActiveLink\"?: PtValue | undefined; \"itemText:loading\"?: PtValue | undefined; \"box:activeLink\"?: PtValue | undefined; \"box:exactActiveLink\"?: PtValue | undefined; \"sheet:activeLink\"?: PtValue | undefined; \"sheet:exactActiveLink\"?: PtValue | undefined; \"groupLabel:disabled\"?: PtValue | undefined; \"groupLabel:activeLink\"?: PtValue | undefined; \"groupLabel:exactActiveLink\"?: PtValue | undefined; \"groupLabel:loading\"?: PtValue | undefined; \"groupHeader:disabled\"?: PtValue | undefined; \"groupHeader:activeLink\"?: PtValue | undefined; \"groupHeader:exactActiveLink\"?: PtValue | undefined; \"groupHeader:loading\"?: PtValue | undefined; \"itemIcon:loading\"?: PtValue | undefined; \"check:loading\"?: PtValue | undefined; \"submenu:disabled\"?: PtValue | undefined; \"submenu:activeLink\"?: PtValue | undefined; \"submenu:exactActiveLink\"?: PtValue | undefined; \"submenu:loading\"?: PtValue | undefined; \"main:link\"?: PtValue | undefined; \"main:outline\"?: PtValue | undefined; \"main:primary\"?: PtValue | undefined; \"main:destructive\"?: PtValue | undefined; \"main:secondary\"?: PtValue | undefined; \"main:ghost\"?: PtValue | undefined; \"toggle:link\"?: PtValue | undefined; \"toggle:outline\"?: PtValue | undefined; \"toggle:primary\"?: PtValue | undefined; \"toggle:destructive\"?: PtValue | undefined; \"toggle:secondary\"?: PtValue | undefined; \"toggle:ghost\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemDescription?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemText?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemIcon?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; check?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; submenu?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
62
62
  {"name":"queryStringArrayFormat","common":true},
63
63
  {"name":"replace","type":"boolean","default":"false","description":"Calls `router.replace` instead of `router.push`."},
64
64
  {"name":"size","type":"Responsive<Sizes>","default":"`components.BbButton.size`, else `'md'`","description":"Sets the size of the button. When the value is a string, it will be applied to all screen sizes. Otherwise, it will be applied to the screen size specified by the object. Unset: `BbButton`'s `components` entry (the app's or a config scope's)."},
@@ -67,7 +67,7 @@
67
67
  {"name":"text","common":true},
68
68
  {"name":"to","type":"string | et | X","description":"Route Location the link should navigate to when clicked on."},
69
69
  {"name":"toggle:icon","type":"string","description":"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."},
70
- {"name":"transitionDuration","type":"number","default":"150","description":"The open / close transition in milliseconds. Menus take the fast one (150), not the popovers' medium 250: a menu is picked from and gone, so it answers faster than a panel you read or edit in."},
70
+ {"name":"transitionDuration","type":"number","default":"150","description":"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."},
71
71
  {"name":"type","type":"\"button\" | \"reset\" | \"submit\"","description":"Gets the classification and default behavior of the button."},
72
72
  {"name":"variant","type":"ButtonVariantType","default":"`components.BbButton.variant`, else `'primary'`","values":["outline","primary","destructive","secondary","none","ghost","link"],"description":"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)."},
73
73
  {"name":"viewTransition","common":true},
@@ -123,18 +123,20 @@
123
123
  {"name":"box","description":"A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
124
124
  {"name":"input","description":"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`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
125
125
  {"name":"list","description":"The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
126
+ {"name":"groupLabel","description":"Every menu group's label row (the menu's own).","states":["activeLink","disabled","exactActiveLink","loading","open"]},
127
+ {"name":"groupHeader","description":"Every `groupBy` heading in the menu (the menu's own).","states":["activeLink","disabled","exactActiveLink","loading","open"]},
126
128
  {"name":"item","description":"One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
127
129
  {"name":"itemText","description":"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.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
128
130
  {"name":"itemIcon","description":"An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
129
- {"name":"itemDescription","description":"An entry's muted second line (its `description`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
131
+ {"name":"itemDescription","description":"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.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
130
132
  {"name":"check","description":"A checked entry's tick, outside the row slots: `pt:check=\"hidden\"` spares your own glyph. Also takes a per-item function.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
131
133
  {"name":"submenu","description":"Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it.","states":["activeLink","disabled","exactActiveLink","loading","open"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"}
132
134
  ],
133
135
  "states": [
134
- {"name":"activeLink","description":"Component-wide while the main button is a link to the current page or one of its ancestors (its `activeClass` is on); also per node, on the entry parts: a menu entry whose link is. The weakest state."},
135
- {"name":"exactActiveLink","description":"Component-wide while the main button is a link to the current page itself (its `exactActiveClass` is on); also per node, on the entry parts."},
136
+ {"name":"activeLink","description":"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."},
137
+ {"name":"exactActiveLink","description":"Component-wide while the main button links to the current page itself (its `exactActiveClass` is on); per node, on the entry parts."},
136
138
  {"name":"selected","description":"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."},
137
- {"name":"disabled","description":"Component-wide while the control is `disabled`; also per node, on the entry parts: a menu entry that is disabled."},
139
+ {"name":"disabled","description":"Component-wide while the control is `disabled`; per node, on the entry parts: a disabled entry."},
138
140
  {"name":"open","description":"Component-wide: the menu is open."},
139
141
  {"name":"loading","description":"Component-wide: `loading` is on — the main button shows its spinner."},
140
142
  {"name":"default","description":"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."},
@@ -44,6 +44,8 @@
44
44
  "box",
45
45
  "input",
46
46
  "list",
47
+ "groupLabel",
48
+ "groupHeader",
47
49
  "item",
48
50
  "itemText",
49
51
  "itemIcon",
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "nodes": [
18
18
  {"name":"BbIcon","kind":"public"},
19
- {"name":"CloseButton","kind":"internal","cssProps":[{"name":"--size","documented":true,"readBy":["bb-close-button"]},{"name":"--p","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-size","documented":true},{"name":"--ring-t","documented":false,"readBy":["bb-close-button"]}],"children":[{"name":"BbIcon","kind":"public"}]}
19
+ {"name":"CloseButton","kind":"internal","cssProps":[{"name":"--size","documented":true,"readBy":["bb-close-button"]},{"name":"--p","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-size","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-inset","documented":true},{"name":"--ring-t","documented":false,"readBy":["bb-close-button"]}],"children":[{"name":"BbIcon","kind":"public"}]}
20
20
  ]
21
21
  },
22
22
  "css": {
@@ -10,7 +10,7 @@
10
10
  {"part":"footer","target":"div.bb-offcanvas__footer"}
11
11
  ],
12
12
  "nodes": [
13
- {"name":"CloseButton","kind":"internal","cssProps":[{"name":"--size","documented":true,"readBy":["bb-close-button"]},{"name":"--p","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-size","documented":true},{"name":"--ring-t","documented":false,"readBy":["bb-close-button"]}],"children":[{"name":"BbIcon","kind":"public"}]}
13
+ {"name":"CloseButton","kind":"internal","cssProps":[{"name":"--size","documented":true,"readBy":["bb-close-button"]},{"name":"--p","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-size","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-inset","documented":true},{"name":"--ring-t","documented":false,"readBy":["bb-close-button"]}],"children":[{"name":"BbIcon","kind":"public"}]}
14
14
  ]
15
15
  },
16
16
  "css": {
@@ -7,38 +7,38 @@
7
7
  "contract": "ai/BbSelect.md",
8
8
  "source": "ai/source/BbSelect.md",
9
9
  "props": [
10
- {"name":"adaptive","type":"boolean","default":"`all.adaptive` (`true`)","description":"When `true`, the options panel opens as a bottom off-canvas sheet on mobile viewports instead of a floating popover; on desktop it stays a popover.\n\nWhen unset, falls back to the global `all.adaptive`."},
10
+ {"name":"adaptive","type":"boolean","default":"`all.adaptive` (`true`)","description":"`true`: on mobile viewports the options open in a bottom sheet, not a popover (desktop keeps the popover). Unset: the global `all.adaptive`."},
11
11
  {"name":"append:icon","type":"string","default":"the chevron-down glyph","description":"Name of the icon to be added at the end of the input."},
12
12
  {"name":"autocomplete","type":"string","description":"Guides to the browser as to the type of information expected in the field."},
13
13
  {"name":"autofocus","common":true},
14
- {"name":"clearable","type":"boolean","default":"false","description":"Displays a clear button when the input has a value and is being interacted with. A single select also clears when the picked option is clicked again."},
15
- {"name":"comma","type":"boolean","default":"false","description":"Sets the display model for selected values to a list of comma separated string. In this mode the user cannot deselect an option by pressing the close button."},
14
+ {"name":"clearable","type":"boolean","default":"false","description":"A clear button while the field has a value and is interacted with; a single select also clears when its pick is clicked again."},
15
+ {"name":"comma","type":"boolean","default":"false","description":"Shows the picks as one comma-separated string; no close button to deselect one there."},
16
16
  {"name":"compact","common":true},
17
17
  {"name":"dependencies","common":true},
18
18
  {"name":"depsDebounceTime","type":"number","default":"0","description":"Timeout used to debounce response to changes to dependencies."},
19
19
  {"name":"description","common":true},
20
20
  {"name":"disabled","common":true},
21
- {"name":"disableWriting","type":"boolean | \"auto\" | \"mobile\" | \"desktop\"","default":"'auto'","description":"Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform only. `'auto'` hides it, per open, for an array `items` shorter than the plugin's `autoDisableWritingThreshold` (6); never for a provider or with an `option:add` listener."},
21
+ {"name":"disableWriting","type":"boolean | \"auto\" | \"mobile\" | \"desktop\"","default":"'auto'","description":"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."},
22
22
  {"name":"emptyText","common":true},
23
- {"name":"enforceCoherence","type":"boolean","default":"false","description":"After each successful non-search load, removes the picks the fetched rows lack (a single model resets to `null`). A `stash` does not count; a `known-items` value stays until a parent change; a search or a failed load never prunes."},
23
+ {"name":"enforceCoherence","type":"boolean","default":"false","description":"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."},
24
24
  {"name":"errors","common":true},
25
- {"name":"failedText","type":"string","default":"the localized `common.failedText` (\"Couldn't load items\")","description":"String displayed in the empty state while the latest load FAILED (the provider threw): the twin of `emptyText` for that case."},
26
- {"name":"filterBy","type":"false | string[]","default":"[]","description":"What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Ranked, case and accents ignored (guide § Search). Use `false` when the provider matched the query on the server, or its email matches show as \"No results\"."},
25
+ {"name":"failedText","type":"string","default":"the localized `common.failedText` (\"Couldn't load items\")","description":"The empty state's text while the latest load FAILED (the provider threw): `emptyText`'s twin for that case."},
26
+ {"name":"filterBy","type":"false | string[]","default":"[]","description":"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\"."},
27
27
  {"name":"formless","common":true},
28
28
  {"name":"groupBy","type":"string | ((item: T) => string | number | symbol)","description":"Path to item property for grouping options."},
29
29
  {"name":"hasErrors","common":true},
30
30
  {"name":"hasWarnings","common":true},
31
- {"name":"headerHeight","type":"number","description":"Height of group headers in the listbox (px). Defaults to 32px (24px compact; 36px / 32px on mobile viewports). Only applies when `groupBy` is set. An explicit value wins on every viewport."},
31
+ {"name":"headerHeight","type":"number","description":"Group header height (px), with `groupBy`: 32 (24 compact; 36 / 32 on mobile viewports). An explicit value wins on every viewport."},
32
32
  {"name":"hideLabel","common":true},
33
33
  {"name":"hint","common":true},
34
34
  {"name":"id","common":true},
35
35
  {"name":"inputAlign","common":true},
36
- {"name":"itemHeight","type":"number","default":"28","description":"Height of the options in the listbox (px). Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport."},
37
- {"name":"itemProps","type":"BbSelectItemProps<T>","description":"ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips."},
38
- {"name":"items","type":"T[] | ((context: BbSelectItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`), sync or async. Branch on `reason !== 'search'` to resolve the selection by id. A provider fails by THROWING, never by returning `[]`."},
36
+ {"name":"itemHeight","type":"number","default":"28","description":"Option height (px): 28 (24 compact; 44 / 36 on mobile viewports). An explicit value wins on every viewport."},
37
+ {"name":"itemProps","type":"BbSelectItemProps<T>","description":"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."},
38
+ {"name":"items","type":"T[] | ((context: BbSelectItemsContext) => T[] | Promise<T[]>)","required":true,"description":"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 `[]`."},
39
39
  {"name":"itemText","common":true},
40
40
  {"name":"itemValue","common":true},
41
- {"name":"knownItems","type":"([Known] extends [undefined] ? BbSelectKnownItems : Known)","description":"`{ value, label }` rows naming the value the app already holds, whatever the options' shape: no request until the first open (`prefill: true` still loads). Not options; the options' accessors never run on them; slots get the row as `item`, with `known: true`, until the list brings its own."},
41
+ {"name":"knownItems","type":"([Known] extends [undefined] ? BbSelectKnownItems : Known)","description":"`{ value, label }` rows naming the value the app already holds, whatever the options' shape: no request until the first open (`prefill: true` still loads). Not options, so no accessor runs on them; slots get the row as `item`, `known: true`, until the list brings its own."},
42
42
  {"name":"label","type":"string","required":true,"description":"Text content of the label of the element."},
43
43
  {"name":"labelAlign","common":true},
44
44
  {"name":"labelMode","common":true},
@@ -47,31 +47,32 @@
47
47
  {"name":"loading","common":true},
48
48
  {"name":"loadingText","common":true},
49
49
  {"name":"max","type":"number","description":"Maximum number of selectable items when the multiple flag is set."},
50
- {"name":"maxSelectedLabels","type":"number","default":"Infinity","description":"Maximum number of labels shown before collapsing to a count summary. Unset, the labels collapse only when they overflow the field."},
51
- {"name":"minQueryLength","type":"number","default":"0","description":"Characters to type (trimmed) before the query searches. Below it the query counts as empty: no `'search'` call, no filtering, and the panel says how many characters to type. Slots still get the typed `query`."},
50
+ {"name":"maxSelectedLabels","type":"number","default":"Infinity","description":"Labels shown before collapsing to a count summary. Unset, they collapse only when they overflow the field."},
51
+ {"name":"minQueryLength","type":"number","default":"0","description":"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`."},
52
52
  {"name":"modelValue","common":true},
53
53
  {"name":"modelValueDebounceTime","type":"number","default":"0","description":"Timeout used to debounce response to changes to modelValue."},
54
54
  {"name":"multiple","type":"boolean","default":"false","description":"Allows the selection of multiple items."},
55
55
  {"name":"name","common":true},
56
- {"name":"offCanvasProps","type":"Partial<BbOffCanvasProps>","description":"Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet)."},
56
+ {"name":"offCanvasProps","type":"Partial<BbOffCanvasProps>","description":"Props for the phone sheet (the `BbOffCanvas` `adaptive` renders), over its defaults. A `pt` inside styles only the sheet (passthrough guide § Inside the sheet)."},
57
57
  {"name":"open","common":true},
58
58
  {"name":"persistentHint","common":true},
59
59
  {"name":"placeholder","type":"string","description":"Text shown in the field while nothing is picked (an empty list has `emptyText`)."},
60
- {"name":"prefill","type":"boolean | \"interaction\"","default":"'interaction'","description":"When the options first load: `'interaction'` on first open, `true` on mount, `false` only once the user types (on open with `disable-writing`). An array `items` or a seeded model always loads at once."},
60
+ {"name":"prefill","type":"boolean | \"interaction\"","default":"'interaction'","description":"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."},
61
61
  {"name":"prepend:icon","common":true},
62
- {"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"activator\", \"input\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\", \"panel\", \"sheet\", \"header\", \"footer\", \"list\", \"option\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"badge\", \"comma\"]; readonly states: readonly [\"hasValue\", \"selected\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly node: { readonly option: readonly [\"selected\"]; readonly itemText: readonly [\"selected\"]; readonly itemIcon: readonly [\"selected\"]; readonly itemDescription: readonly [\"selected\"]; readonly check: readonly [\"selected\"]; }; readonly except: { readonly clear: readonly [\"disabled\", \"readonly\"]; }; readonly variant: { readonly names: readonly [\"outline\", \"secondary\", \"ghost\"]; readonly option: \"selectVariants\"; readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"activator\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; label?: PtValue | undefined; prefix?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; spinner?: PtValue | undefined; clear?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"clear:loading\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; box?: PtValue | undefined; suffix?: PtValue | undefined; sheet?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"input:errors\"?: PtValue | undefined; \"input:warnings\"?: PtValue | undefined; \"input:readonly\"?: PtValue | undefined; \"input:hasValue\"?: PtValue | undefined; \"label:open\"?: PtValue | undefined; \"prefix:disabled\"?: PtValue | undefined; \"prefix:open\"?: PtValue | undefined; \"prefix:loading\"?: PtValue | undefined; \"prefix:errors\"?: PtValue | undefined; \"prefix:warnings\"?: PtValue | undefined; \"prefix:readonly\"?: PtValue | undefined; \"prefix:hasValue\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"panel:errors\"?: PtValue | undefined; \"panel:warnings\"?: PtValue | undefined; \"panel:readonly\"?: PtValue | undefined; \"panel:hasValue\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"spinner:errors\"?: PtValue | undefined; \"spinner:warnings\"?: PtValue | undefined; \"spinner:readonly\"?: PtValue | undefined; \"spinner:hasValue\"?: PtValue | undefined; \"clear:open\"?: PtValue | undefined; \"clear:errors\"?: PtValue | undefined; \"clear:warnings\"?: PtValue | undefined; \"clear:hasValue\"?: PtValue | undefined; \"description:open\"?: PtValue | undefined; \"message:open\"?: PtValue | undefined; \"hint:open\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"box:errors\"?: PtValue | undefined; \"box:warnings\"?: PtValue | undefined; \"box:readonly\"?: PtValue | undefined; \"box:hasValue\"?: PtValue | undefined; \"suffix:disabled\"?: PtValue | undefined; \"suffix:open\"?: PtValue | undefined; \"suffix:loading\"?: PtValue | undefined; \"suffix:errors\"?: PtValue | undefined; \"suffix:warnings\"?: PtValue | undefined; \"suffix:readonly\"?: PtValue | undefined; \"suffix:hasValue\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"sheet:errors\"?: PtValue | undefined; \"sheet:warnings\"?: PtValue | undefined; \"sheet:readonly\"?: PtValue | undefined; \"sheet:hasValue\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; activator?: PtValue | undefined; \"header:loading\"?: PtValue | undefined; \"header:errors\"?: PtValue | undefined; \"header:warnings\"?: PtValue | undefined; \"header:readonly\"?: PtValue | undefined; \"header:hasValue\"?: PtValue | undefined; \"activator:disabled\"?: PtValue | undefined; \"activator:open\"?: PtValue | undefined; \"activator:loading\"?: PtValue | undefined; \"activator:errors\"?: PtValue | undefined; \"activator:warnings\"?: PtValue | undefined; \"activator:readonly\"?: PtValue | undefined; \"activator:hasValue\"?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"footer:disabled\"?: PtValue | undefined; \"footer:loading\"?: PtValue | undefined; \"itemText:loading\"?: PtValue | undefined; \"itemIcon:loading\"?: PtValue | undefined; \"check:loading\"?: PtValue | undefined; \"footer:errors\"?: PtValue | undefined; \"footer:warnings\"?: PtValue | undefined; \"footer:readonly\"?: PtValue | undefined; \"footer:hasValue\"?: PtValue | undefined; \"option:open\"?: PtValue | undefined; \"option:disabled\"?: PtValue | undefined; \"option:loading\"?: PtValue | undefined; \"option:errors\"?: PtValue | undefined; \"option:warnings\"?: PtValue | undefined; \"option:readonly\"?: PtValue | undefined; \"option:hasValue\"?: PtValue | undefined; \"itemText:errors\"?: PtValue | undefined; \"itemText:warnings\"?: PtValue | undefined; \"itemText:readonly\"?: PtValue | undefined; \"itemText:hasValue\"?: PtValue | undefined; \"itemIcon:errors\"?: PtValue | undefined; \"itemIcon:warnings\"?: PtValue | undefined; \"itemIcon:readonly\"?: PtValue | undefined; \"itemIcon:hasValue\"?: PtValue | undefined; \"check:errors\"?: PtValue | undefined; \"check:warnings\"?: PtValue | undefined; \"check:readonly\"?: PtValue | undefined; \"check:hasValue\"?: PtValue | undefined; \"badge:open\"?: PtValue | undefined; \"badge:disabled\"?: PtValue | undefined; \"badge:loading\"?: PtValue | undefined; \"badge:errors\"?: PtValue | undefined; \"badge:warnings\"?: PtValue | undefined; \"badge:readonly\"?: PtValue | undefined; \"badge:hasValue\"?: PtValue | undefined; \"comma:open\"?: PtValue | undefined; \"comma:disabled\"?: PtValue | undefined; \"comma:loading\"?: PtValue | undefined; \"comma:errors\"?: PtValue | undefined; \"comma:warnings\"?: PtValue | undefined; \"comma:readonly\"?: PtValue | undefined; \"comma:hasValue\"?: PtValue | undefined; \"option:selected\"?: PtValue | undefined; } & { option?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemDescription?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemText?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemIcon?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; check?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; badge?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; comma?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"clear:outline\"?: PtValue | undefined; \"clear:secondary\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"label:secondary\"?: PtValue | undefined; \"label:ghost\"?: PtValue | undefined; \"prefix:outline\"?: PtValue | undefined; \"prefix:secondary\"?: PtValue | undefined; \"prefix:ghost\"?: PtValue | undefined; \"clear:ghost\"?: PtValue | undefined; \"description:secondary\"?: PtValue | undefined; \"description:ghost\"?: PtValue | undefined; \"message:secondary\"?: PtValue | undefined; \"message:ghost\"?: PtValue | undefined; \"hint:secondary\"?: PtValue | undefined; \"hint:ghost\"?: PtValue | undefined; \"box:outline\"?: PtValue | undefined; \"box:secondary\"?: PtValue | undefined; \"box:ghost\"?: PtValue | undefined; \"suffix:outline\"?: PtValue | undefined; \"suffix:secondary\"?: PtValue | undefined; \"suffix:ghost\"?: PtValue | undefined; \"activator:outline\"?: PtValue | undefined; \"activator:secondary\"?: PtValue | undefined; \"activator:ghost\"?: PtValue | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
62
+ {"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"activator\", \"input\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\", \"panel\", \"sheet\", \"header\", \"footer\", \"list\", \"groupHeader\", \"option\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"badge\", \"comma\"]; readonly states: readonly [\"hasValue\", \"selected\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly wide: readonly [\"hasValue\", \"readonly\", \"disabled\", \"warnings\", \"errors\", \"open\", \"loading\"]; readonly node: { readonly option: readonly [\"selected\"]; readonly itemText: readonly [\"selected\"]; readonly itemIcon: readonly [\"selected\"]; readonly itemDescription: readonly [\"selected\"]; readonly check: readonly [\"selected\"]; }; readonly except: { readonly clear: readonly [\"disabled\", \"readonly\"]; }; readonly variant: { readonly names: readonly [\"outline\", \"secondary\", \"ghost\"]; readonly option: \"selectVariants\"; readonly parts: readonly [\"root\", \"label\", \"description\", \"message\", \"hint\", \"box\", \"activator\", \"icon\", \"spinner\", \"prefix\", \"suffix\", \"clear\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; label?: PtValue | undefined; prefix?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; spinner?: PtValue | undefined; clear?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"clear:loading\"?: PtValue | undefined; \"root:errors\"?: PtValue | undefined; \"root:warnings\"?: PtValue | undefined; \"root:readonly\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; description?: PtValue | undefined; message?: PtValue | undefined; hint?: PtValue | undefined; \"label:disabled\"?: PtValue | undefined; \"label:errors\"?: PtValue | undefined; \"label:warnings\"?: PtValue | undefined; \"label:readonly\"?: PtValue | undefined; \"icon:errors\"?: PtValue | undefined; \"icon:warnings\"?: PtValue | undefined; \"icon:readonly\"?: PtValue | undefined; \"description:disabled\"?: PtValue | undefined; \"description:errors\"?: PtValue | undefined; \"description:warnings\"?: PtValue | undefined; \"description:readonly\"?: PtValue | undefined; \"message:disabled\"?: PtValue | undefined; \"message:errors\"?: PtValue | undefined; \"message:warnings\"?: PtValue | undefined; \"message:readonly\"?: PtValue | undefined; \"hint:disabled\"?: PtValue | undefined; \"hint:errors\"?: PtValue | undefined; \"hint:warnings\"?: PtValue | undefined; \"hint:readonly\"?: PtValue | undefined; \"label:loading\"?: PtValue | undefined; \"label:hasValue\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"list:errors\"?: PtValue | undefined; \"list:warnings\"?: PtValue | undefined; \"list:readonly\"?: PtValue | undefined; \"list:hasValue\"?: PtValue | undefined; \"root:hasValue\"?: PtValue | undefined; \"icon:hasValue\"?: PtValue | undefined; \"description:loading\"?: PtValue | undefined; \"description:hasValue\"?: PtValue | undefined; \"message:loading\"?: PtValue | undefined; \"message:hasValue\"?: PtValue | undefined; \"hint:loading\"?: PtValue | undefined; \"hint:hasValue\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; \"itemDescription:errors\"?: PtValue | undefined; \"itemDescription:warnings\"?: PtValue | undefined; \"itemDescription:readonly\"?: PtValue | undefined; \"itemDescription:hasValue\"?: PtValue | undefined; box?: PtValue | undefined; suffix?: PtValue | undefined; sheet?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"input:errors\"?: PtValue | undefined; \"input:warnings\"?: PtValue | undefined; \"input:readonly\"?: PtValue | undefined; \"input:hasValue\"?: PtValue | undefined; \"label:open\"?: PtValue | undefined; \"prefix:disabled\"?: PtValue | undefined; \"prefix:open\"?: PtValue | undefined; \"prefix:loading\"?: PtValue | undefined; \"prefix:errors\"?: PtValue | undefined; \"prefix:warnings\"?: PtValue | undefined; \"prefix:readonly\"?: PtValue | undefined; \"prefix:hasValue\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"panel:errors\"?: PtValue | undefined; \"panel:warnings\"?: PtValue | undefined; \"panel:readonly\"?: PtValue | undefined; \"panel:hasValue\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"spinner:errors\"?: PtValue | undefined; \"spinner:warnings\"?: PtValue | undefined; \"spinner:readonly\"?: PtValue | undefined; \"spinner:hasValue\"?: PtValue | undefined; \"clear:open\"?: PtValue | undefined; \"clear:errors\"?: PtValue | undefined; \"clear:warnings\"?: PtValue | undefined; \"clear:hasValue\"?: PtValue | undefined; \"description:open\"?: PtValue | undefined; \"message:open\"?: PtValue | undefined; \"hint:open\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"box:errors\"?: PtValue | undefined; \"box:warnings\"?: PtValue | undefined; \"box:readonly\"?: PtValue | undefined; \"box:hasValue\"?: PtValue | undefined; \"suffix:disabled\"?: PtValue | undefined; \"suffix:open\"?: PtValue | undefined; \"suffix:loading\"?: PtValue | undefined; \"suffix:errors\"?: PtValue | undefined; \"suffix:warnings\"?: PtValue | undefined; \"suffix:readonly\"?: PtValue | undefined; \"suffix:hasValue\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"sheet:errors\"?: PtValue | undefined; \"sheet:warnings\"?: PtValue | undefined; \"sheet:readonly\"?: PtValue | undefined; \"sheet:hasValue\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; activator?: PtValue | undefined; \"header:loading\"?: PtValue | undefined; \"header:errors\"?: PtValue | undefined; \"header:warnings\"?: PtValue | undefined; \"header:readonly\"?: PtValue | undefined; \"header:hasValue\"?: PtValue | undefined; \"activator:disabled\"?: PtValue | undefined; \"activator:open\"?: PtValue | undefined; \"activator:loading\"?: PtValue | undefined; \"activator:errors\"?: PtValue | undefined; \"activator:warnings\"?: PtValue | undefined; \"activator:readonly\"?: PtValue | undefined; \"activator:hasValue\"?: PtValue | undefined; groupHeader?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"groupHeader:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"footer:disabled\"?: PtValue | undefined; \"footer:loading\"?: PtValue | undefined; \"itemText:loading\"?: PtValue | undefined; \"groupHeader:disabled\"?: PtValue | undefined; \"groupHeader:loading\"?: PtValue | undefined; \"itemIcon:loading\"?: PtValue | undefined; \"check:loading\"?: PtValue | undefined; \"footer:errors\"?: PtValue | undefined; \"footer:warnings\"?: PtValue | undefined; \"footer:readonly\"?: PtValue | undefined; \"footer:hasValue\"?: PtValue | undefined; \"option:open\"?: PtValue | undefined; \"option:disabled\"?: PtValue | undefined; \"option:loading\"?: PtValue | undefined; \"option:errors\"?: PtValue | undefined; \"option:warnings\"?: PtValue | undefined; \"option:readonly\"?: PtValue | undefined; \"option:hasValue\"?: PtValue | undefined; \"itemText:errors\"?: PtValue | undefined; \"itemText:warnings\"?: PtValue | undefined; \"itemText:readonly\"?: PtValue | undefined; \"itemText:hasValue\"?: PtValue | undefined; \"groupHeader:errors\"?: PtValue | undefined; \"groupHeader:warnings\"?: PtValue | undefined; \"groupHeader:readonly\"?: PtValue | undefined; \"groupHeader:hasValue\"?: PtValue | undefined; \"itemIcon:errors\"?: PtValue | undefined; \"itemIcon:warnings\"?: PtValue | undefined; \"itemIcon:readonly\"?: PtValue | undefined; \"itemIcon:hasValue\"?: PtValue | undefined; \"check:errors\"?: PtValue | undefined; \"check:warnings\"?: PtValue | undefined; \"check:readonly\"?: PtValue | undefined; \"check:hasValue\"?: PtValue | undefined; \"badge:open\"?: PtValue | undefined; \"badge:disabled\"?: PtValue | undefined; \"badge:loading\"?: PtValue | undefined; \"badge:errors\"?: PtValue | undefined; \"badge:warnings\"?: PtValue | undefined; \"badge:readonly\"?: PtValue | undefined; \"badge:hasValue\"?: PtValue | undefined; \"comma:open\"?: PtValue | undefined; \"comma:disabled\"?: PtValue | undefined; \"comma:loading\"?: PtValue | undefined; \"comma:errors\"?: PtValue | undefined; \"comma:warnings\"?: PtValue | undefined; \"comma:readonly\"?: PtValue | undefined; \"comma:hasValue\"?: PtValue | undefined; \"option:selected\"?: PtValue | undefined; } & { option?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemDescription?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemText?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; itemIcon?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; check?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; badge?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; comma?: PtValue | PtItemFn<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>> | undefined; } & { \"root:outline\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"clear:outline\"?: PtValue | undefined; \"clear:secondary\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"label:outline\"?: PtValue | undefined; \"description:outline\"?: PtValue | undefined; \"message:outline\"?: PtValue | undefined; \"hint:outline\"?: PtValue | undefined; \"label:secondary\"?: PtValue | undefined; \"label:ghost\"?: PtValue | undefined; \"prefix:outline\"?: PtValue | undefined; \"prefix:secondary\"?: PtValue | undefined; \"prefix:ghost\"?: PtValue | undefined; \"clear:ghost\"?: PtValue | undefined; \"description:secondary\"?: PtValue | undefined; \"description:ghost\"?: PtValue | undefined; \"message:secondary\"?: PtValue | undefined; \"message:ghost\"?: PtValue | undefined; \"hint:secondary\"?: PtValue | undefined; \"hint:ghost\"?: PtValue | undefined; \"box:outline\"?: PtValue | undefined; \"box:secondary\"?: PtValue | undefined; \"box:ghost\"?: PtValue | undefined; \"suffix:outline\"?: PtValue | undefined; \"suffix:secondary\"?: PtValue | undefined; \"suffix:ghost\"?: PtValue | undefined; \"activator:outline\"?: PtValue | undefined; \"activator:secondary\"?: PtValue | undefined; \"activator:ghost\"?: PtValue | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
63
+ {"name":"query","type":"string","description":"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)."},
63
64
  {"name":"queryDebounceTime","type":"number","default":"500","description":"Time to wait when the user stops writing in the input before querying data."},
64
65
  {"name":"readonly","common":true},
65
66
  {"name":"required","common":true},
66
67
  {"name":"reverse","common":true},
67
68
  {"name":"rules","common":true},
68
69
  {"name":"selectable","common":true},
69
- {"name":"selectedLabelsFn","type":"((count: number) => string)","description":"Function that returns a string to be displayed when the number of selected labels is greater than `maxSelectedLabels`."},
70
- {"name":"stash","type":"boolean","default":"false","description":"Keeps picks named (their chips keep their text) when a later search or a failed load no longer returns them. It follows the model; it does not keep a pick valid (`enforce-coherence` still prunes it)."},
70
+ {"name":"selectedLabelsFn","type":"((count: number) => string)","description":"The text shown when the selected labels outnumber `maxSelectedLabels`."},
71
+ {"name":"stash","type":"boolean","default":"false","description":"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)."},
71
72
  {"name":"transitionDuration","type":"number","default":"250","description":"How long the transition has to last in milliseconds."},
72
73
  {"name":"validationLabel","common":true},
73
74
  {"name":"validationMode","common":true},
74
- {"name":"variant","type":"InputVariantOf<SelectVariantRegistry>","default":"'outline'","values":["outline","secondary","none","ghost"],"description":"The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `components.BbSelect.variants`."},
75
+ {"name":"variant","type":"InputVariantOf<SelectVariantRegistry>","default":"'outline'","values":["outline","secondary","none","ghost"],"description":"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`."},
75
76
  {"name":"warnings","common":true}
76
77
  ],
77
78
  "events": [
@@ -84,24 +85,25 @@
84
85
  {"name":"hide","signature":"(): void","description":"Emitted as soon as the options surface starts to close."},
85
86
  {"name":"inactive","signature":"(): void","description":"Emitted when focus moves outside the whole select after it was active."},
86
87
  {"name":"input","signature":"(event: Event): void","description":"Emitted on native `input` events from the search field. Forwards the DOM `Event`."},
87
- {"name":"option:add","signature":"(text: string): void","description":"Emitted with the typed text when the user confirms a value that is not in the list (Enter in the search field). Binding it keeps the search field writable, which makes the select creatable."},
88
+ {"name":"option:add","signature":"(text: string): void","description":"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."},
88
89
  {"name":"show","signature":"(): void","description":"Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone)."},
89
90
  {"name":"shown","signature":"(): void","description":"Emitted once the options surface is open and its open transition has finished."},
90
91
  {"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the new value whenever `v-model` changes."},
91
- {"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."}
92
+ {"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."},
93
+ {"name":"update:query","signature":"(value: string): void","description":"`v-model:query`: the search field's text."}
92
94
  ],
93
95
  "slots": [
94
96
  {"name":"append","type":"{ query: string; focus: () => void; close: () => Promise<void>; }","description":"Content appended inside the input field, after the value area."},
95
97
  {"name":"append:outer","type":"{ query: string; close: () => Promise<void>; }","description":"Content appended outside the input field wrapper."},
96
- {"name":"chip","type":"BbSelectChipSlotProps<T, Known>","fields":["known: boolean","item: BbSelectKnownItem | T","text: string","value: any","disabled: boolean","deselect: () => void"],"description":"Each selection's badge with `multiple` (not in `comma` mode, nor the \"+N\" summary). With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one."},
97
- {"name":"description","type":"BbSelectDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},
98
- {"name":"empty","type":"{ query: string; focus: () => void; close: () => Promise<void>; }","description":"Content shown when no options match the query or the list is empty. Empty only: a failed load shows the failure row (`failed-text`, then \"Try again\"). `close()` closes the panel, for an action that does not move focus out of it."},
99
- {"name":"footer","type":"BbSelectPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption[]"],"description":"Content pinned to the bottom of the options panel, below the options list. Rendered in both the desktop popover and the adaptive sheet."},
100
- {"name":"group","type":"BbSelectGroupSlotProps<T>","fields":["text: string","item: T","index: number","length: number","disabled: boolean"],"description":"Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header."},
101
- {"name":"header","type":"BbSelectPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption[]"],"description":"Content pinned to the top of the options panel, above the search field. Rendered in both the desktop popover and the adaptive sheet."},
98
+ {"name":"chip","type":"BbSelectChipSlotProps<T, Known>","fields":["known: boolean","item: BbSelectKnownItem | T","text: string","value: any","disabled: boolean","deselect: () => void"],"description":"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."},
99
+ {"name":"description","type":"BbSelectDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text; alone (no `description` prop) it still renders the region, wired into `aria-describedby`."},
100
+ {"name":"empty","type":"{ query: string; focus: () => void; close: () => Promise<void>; }","description":"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."},
101
+ {"name":"footer","type":"BbSelectPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption[]"],"description":"Pinned under the options list, on the popover and the phone sheet alike."},
102
+ {"name":"group","type":"BbSelectGroupSlotProps<T>","fields":["text: string","item: T","index: number","length: number","disabled: boolean"],"description":"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."},
103
+ {"name":"header","type":"BbSelectPanelSlotProps","fields":["close: () => Promise<void>","clear: () => void","empty: boolean","focus: () => void","query: string","selectedOptions: BbSelectResolvedOption[]"],"description":"Pinned atop the options panel, above the search field, on the popover and the phone sheet alike."},
102
104
  {"name":"label","type":"BbSelectLabelSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default label text rendered above the input."},
103
105
  {"name":"loading","type":"{ query: string; }","description":"Content shown inside the options dropdown while items are loading."},
104
- {"name":"option","type":"BbSelectOptionSlotProps<T, Known>","fields":["known: boolean","item: BbSelectKnownItem | T","disabled: boolean","focused: boolean","index: number","hasErrors?: boolean","loading: boolean","selected: boolean","text: string","value: any","description: string"],"description":"Each option row's content. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row (`known: true`): check `known` before reading an option field off `item`."},
106
+ {"name":"option","type":"BbSelectOptionSlotProps<T, Known>","fields":["known: boolean","item: BbSelectKnownItem | T","disabled: boolean","focused: boolean","index: number","hasErrors?: boolean","loading: boolean","selected: boolean","text: string","value: any","description: string"],"description":"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`."},
105
107
  {"name":"prefix","type":"object","description":"Content rendered as an inline prefix inside the input field."},
106
108
  {"name":"prepend","type":"{ query: string; focus: () => void; close: () => Promise<void>; }","description":"Content prepended inside the input field, before the value area."},
107
109
  {"name":"prepend:outer","type":"{ query: string; close: () => Promise<void>; }","description":"Content prepended outside the input field wrapper."},
@@ -110,41 +112,43 @@
110
112
  "exposed": [],
111
113
  "models": [
112
114
  {"name":"modelValue","type":"any"},
113
- {"name":"open","type":"boolean | undefined"}
115
+ {"name":"open","type":"boolean | undefined"},
116
+ {"name":"query","type":"string | undefined"}
114
117
  ],
115
118
  "pt": {
116
119
  "parts": [
117
- {"name":"root","description":"The field's outer container: the label, the box and the lines under it; a `class` on the component lands here. (The options surface is `panel`.)","states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
120
+ {"name":"root","description":"The field's outer container (label, box, the lines under it); a `class` on the component lands here. The options surface is `panel`.","states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
118
121
  {"name":"label","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
119
122
  {"name":"description","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
120
123
  {"name":"message","description":"The errors / warnings line under the box. A node of its own: it can show at the same time as `hint`.","states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
121
124
  {"name":"hint","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
122
125
  {"name":"box","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
123
- {"name":"activator","description":"The button you act on to open the options — the field's control (not a text field: `data-test` fits here, `autocomplete` does not). The chevron is chrome. It is `activator`, not the family's `input`: the field itself is a button (the date / time inputs' trigger is the same word).","states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
124
- {"name":"input","description":"The search field inside the options surface, when it shows one (see `disable-writing`) — handed to the `BbSelectPopover` as its own `pt:input`. Its ✕ is chrome.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
126
+ {"name":"activator","description":"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.","states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
127
+ {"name":"input","description":"The options surface's search field, when shown (see `disable-writing`): the `BbSelectPopover`'s `pt:input`. Its ✕ is chrome.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
125
128
  {"name":"icon","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
126
129
  {"name":"spinner","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
127
130
  {"name":"prefix","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
128
131
  {"name":"suffix","common":true,"states":["disabled","errors","ghost","hasValue","loading","open","outline","readonly","secondary","warnings"]},
129
- {"name":"clear","description":"The ✕ in the field that empties the selection (`clearable`) — one node, never a chip's own ✕.","states":["errors","ghost","hasValue","loading","open","outline","secondary","warnings"]},
132
+ {"name":"clear","description":"The field's ✕ that empties the selection (`clearable`): one node, never a chip's ✕.","states":["errors","ghost","hasValue","loading","open","outline","secondary","warnings"]},
130
133
  {"name":"panel","description":"The options surface — the popover's painted bubble on desktop, the sheet itself on a phone.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
131
134
  {"name":"sheet","description":"The bottom sheet the options open in on a phone only.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
132
- {"name":"header","description":"The band around your `#header` slot: at the top of the flyout on desktop, the sheet's header on a phone.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
133
- {"name":"footer","description":"The band around your `#footer` slot: at the bottom of the flyout on desktop, the sheet's footer on a phone.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
134
- {"name":"list","description":"The `role=\"listbox\"` node that holds the options. Virtualised: its height is written inline and its rows are positioned by the list, which limits what a layout utility can do there. The listbox's groups and the chips are not parts.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
135
+ {"name":"header","description":"The band around your `#header` slot: atop the flyout, the sheet's header on a phone.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
136
+ {"name":"footer","description":"The band around your `#footer` slot: under the flyout's list, the sheet's footer on a phone.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
137
+ {"name":"list","description":"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.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
138
+ {"name":"groupHeader","description":"Every `groupBy` heading (sticky). `#group` replaces its content.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"]},
135
139
  {"name":"option","description":"One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item.","states":["disabled","errors","hasValue","loading","open","readonly","selected","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
136
140
  {"name":"itemText","description":"An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function.","states":["disabled","errors","hasValue","loading","open","readonly","selected","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
137
141
  {"name":"itemIcon","description":"An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function.","states":["disabled","errors","hasValue","loading","open","readonly","selected","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
138
142
  {"name":"itemDescription","description":"An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function.","states":["disabled","errors","hasValue","loading","open","readonly","selected","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
139
- {"name":"check","description":"The tick on the chosen option, at the row's end — mounted on every option and drawn on the chosen ones; a custom `#option` slot keeps it. `pt:check=\"hidden\"` removes it and leaves a glyph your slot draws alone. Also takes a per-item function.","states":["disabled","errors","hasValue","loading","open","readonly","selected","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
140
- {"name":"badge","description":"Each selected value's `BbBadge` root with `multiple` — a broadcast resolved per value, on the field's chips and on the phone sheet's. The badge's own ✕ is chrome, never `clear`. In the field, not rendered when the `#chip` slot replaces it, nor in `comma` mode; the sheet's chips are always badges.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
143
+ {"name":"check","description":"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.","states":["disabled","errors","hasValue","loading","open","readonly","selected","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
144
+ {"name":"badge","description":"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.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"},
141
145
  {"name":"comma","description":"Each selected value with `multiple` and `comma` — a broadcast resolved per value.","states":["disabled","errors","hasValue","loading","open","readonly","warnings"],"rowType":"PtValue | ((ctx: PtItemCtx<T, BbSelectPtState, never, BbSelectSlotRow<T, Known>>) => PtItemResult) | undefined"}
142
146
  ],
143
147
  "states": [
144
148
  {"name":"hasValue","description":"Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`)."},
145
149
  {"name":"selected","description":"Per node, on `option`, its `item-*` parts and `check`: a chosen option."},
146
150
  {"name":"readonly","description":"Component-wide: the control is `readonly` — shown, focusable, not editable."},
147
- {"name":"disabled","description":"Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled."},
151
+ {"name":"disabled","description":"Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled; on `groupHeader`: all its group's options are."},
148
152
  {"name":"warnings","description":"Component-wide: the control is in its warning state (`warnings` / `has-warnings`) and not in an error state — errors win, so the two are never on together."},
149
153
  {"name":"errors","description":"Component-wide: the control is in its error state (`errors` / `has-errors`, or its validation) — the message line and the box turn red."},
150
154
  {"name":"open","description":"Component-wide: the options surface is showing."},
@@ -12,7 +12,7 @@
12
12
  {"part":"badge","target":"input"}
13
13
  ],
14
14
  "forwards": [
15
- {"to":"BbSelectPopover","mapping":"{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }"}
15
+ {"to":"BbSelectPopover","mapping":"{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', groupHeader: 'groupHeader', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }"}
16
16
  ],
17
17
  "nodes": [
18
18
  {"name":"CommonField","kind":"internal","vocabulary":"BbSelect","bindings":[{"part":"root","target":"div.bb-field"},{"part":"label","target":"component"},{"part":"description","target":"span.bb-field__description"},{"part":"hint","target":"span.bb-field__hint"},{"part":"counter","target":"span.bb-field__counter"},{"part":"message","target":"div.bb-field__message"}],"children":[{"name":"BbAsterisk","kind":"public"}]},
@@ -88,6 +88,7 @@
88
88
  "header",
89
89
  "footer",
90
90
  "list",
91
+ "groupHeader",
91
92
  "option",
92
93
  "itemText",
93
94
  "itemIcon",