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
@@ -4,9 +4,10 @@ import { provideLinkState as n, useLinkState as r } from "../BbBaseButton/useLin
4
4
  import { SlotChain as i } from "../../utilities/functions/slotContent.js";
5
5
  import a from "../../assets/svgs/check_stroke.svg_raw.js";
6
6
  import o from "../../assets/svgs/chevron_right.svg_raw.js";
7
- import { createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, openBlock as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
7
+ import { useInternalIcon as s } from "../../composables/useInternalIcon.js";
8
+ import { createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, openBlock as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
8
9
  // src/components/BbDropdown/DropdownRow.vue?vue&type=script&setup=true&lang.ts
9
- var v = { class: "item__content" }, y = ["id"], b = ["id"], x = /*@__PURE__*/ f({
10
+ var y = { class: "item__content" }, b = ["id"], x = ["id"], S = /*@__PURE__*/ p({
10
11
  __name: "DropdownRow",
11
12
  props: {
12
13
  group: {},
@@ -15,87 +16,87 @@ var v = { class: "item__content" }, y = ["id"], b = ["id"], x = /*@__PURE__*/ f(
15
16
  selected: { type: Boolean },
16
17
  row: {}
17
18
  },
18
- setup(f) {
19
- let x = f, S = r({
19
+ setup(p) {
20
+ let S = p, C = s("next", o), w = s("check", a), T = r({
20
21
  get to() {
21
- return x.item.to;
22
+ return S.item.to;
22
23
  },
23
24
  get href() {
24
- return x.item.href;
25
+ return S.item.href;
25
26
  },
26
27
  get disabled() {
27
- return x.item.disabled;
28
+ return S.item.disabled;
28
29
  },
29
30
  get external() {
30
- return x.item.external;
31
+ return S.item.external;
31
32
  },
32
33
  get target() {
33
- return x.item.target;
34
+ return S.item.target;
34
35
  },
35
36
  get replace() {
36
- return x.item.replace;
37
+ return S.item.replace;
37
38
  }
38
39
  });
39
- return n(S), (n, r) => (m(), s(e, p({
40
- ref: (e) => f.row.setItemEl(f.index, e),
40
+ return n(T), (n, r) => (h(), c(e, m({
41
+ ref: (e) => p.row.setItemEl(p.index, e),
41
42
  class: "bb-dropdown__item"
42
- }, f.row.itemAttrs(f.group, f.item, f.index, f.selected, g(S))), {
43
- default: _(() => [
44
- d(g(i), {
45
- props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
43
+ }, p.row.itemAttrs(p.group, p.item, p.index, p.selected, _(T))), {
44
+ default: v(() => [
45
+ f(_(i), {
46
+ props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
46
47
  slots: [
47
- f.row.itemSlot(f.item, "prepend"),
48
- f.row.groupRowSlot(f.group, "prepend"),
49
- f.row.slots["item:prepend"]
48
+ p.row.itemSlot(p.item, "prepend"),
49
+ p.row.groupRowSlot(p.group, "prepend"),
50
+ p.row.slots["item:prepend"]
50
51
  ]
51
52
  }, {
52
- default: _(() => [f.item["prepend:icon"] ? (m(), s(t, p({
53
+ default: v(() => [p.item["prepend:icon"] ? (h(), c(t, m({
53
54
  key: 0,
54
55
  class: "bb-dropdown__item-icon item__prepend-icon",
55
- icon: f.item["prepend:icon"]
56
- }, f.row.rowPart("itemIcon", f.item, f.selected, g(S))), null, 16, ["icon"])) : c("", !0)]),
56
+ icon: p.item["prepend:icon"]
57
+ }, p.row.rowPart("itemIcon", p.item, p.selected, _(T))), null, 16, ["icon"])) : l("", !0)]),
57
58
  _: 1
58
59
  }, 8, ["props", "slots"]),
59
- d(g(i), {
60
- props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
61
- slots: [f.row.itemSlot(f.item), f.row.groupRowSlot(f.group)]
60
+ f(_(i), {
61
+ props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
62
+ slots: [p.row.itemSlot(p.item), p.row.groupRowSlot(p.group)]
62
63
  }, {
63
- default: _(() => [u("span", v, [u("span", p({
64
- id: f.row.rowTextId(f.index),
64
+ default: v(() => [d("span", y, [d("span", m({
65
+ id: p.row.rowTextId(p.index),
65
66
  class: "bb-dropdown__item-text"
66
- }, f.row.rowPart("itemText", f.item, f.selected, g(S))), h(f.item.label), 17, y), f.item.description ? (m(), l("span", p({
67
+ }, p.row.rowPart("itemText", p.item, p.selected, _(T))), g(p.item.label), 17, b), p.item.description ? (h(), u("span", m({
67
68
  key: 0,
68
- id: f.row.rowDescriptionId(f.index),
69
+ id: p.row.rowDescriptionId(p.index),
69
70
  class: "bb-dropdown__item-description"
70
- }, f.row.rowPart("itemDescription", f.item, f.selected, g(S))), h(f.item.description), 17, b)) : c("", !0)])]),
71
+ }, p.row.rowPart("itemDescription", p.item, p.selected, _(T))), g(p.item.description), 17, x)) : l("", !0)])]),
71
72
  _: 1
72
73
  }, 8, ["props", "slots"]),
73
- f.group.selectable ? (m(), s(t, p({
74
+ p.group.selectable ? (h(), c(t, m({
74
75
  key: 0,
75
76
  "aria-hidden": "true",
76
- class: "item__check",
77
- icon: g(a)
78
- }, f.row.rowPart("check", f.item, f.selected, g(S))), null, 16, ["icon"])) : c("", !0),
79
- f.selected ? c("", !0) : (m(), s(g(i), {
77
+ class: ["item__check", { "item__check--own": _(w) !== _(a) }],
78
+ icon: _(w)
79
+ }, p.row.rowPart("check", p.item, p.selected, _(T))), null, 16, ["class", "icon"])) : l("", !0),
80
+ p.selected ? l("", !0) : (h(), c(_(i), {
80
81
  key: 1,
81
- props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
82
- slots: [f.row.itemSlot(f.item, "append")]
82
+ props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
83
+ slots: [p.row.itemSlot(p.item, "append")]
83
84
  }, {
84
- default: _(() => [f.item.items ? (m(), s(t, {
85
+ default: v(() => [p.item.items ? (h(), c(t, {
85
86
  key: 0,
86
87
  "aria-hidden": "true",
87
88
  class: "item__chevron",
88
- icon: g(o)
89
- }, null, 8, ["icon"])) : (m(), s(g(i), {
89
+ icon: _(C)
90
+ }, null, 8, ["icon"])) : (h(), c(_(i), {
90
91
  key: 1,
91
- props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
92
- slots: [f.row.groupRowSlot(f.group, "append"), f.row.slots["item:append"]]
92
+ props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
93
+ slots: [p.row.groupRowSlot(p.group, "append"), p.row.slots["item:append"]]
93
94
  }, {
94
- default: _(() => [f.item["append:icon"] ? (m(), s(t, p({
95
+ default: v(() => [p.item["append:icon"] ? (h(), c(t, m({
95
96
  key: 0,
96
97
  class: "bb-dropdown__item-icon item__append-icon",
97
- icon: f.item["append:icon"]
98
- }, f.row.rowPart("itemIcon", f.item, f.selected, g(S))), null, 16, ["icon"])) : c("", !0)]),
98
+ icon: p.item["append:icon"]
99
+ }, p.row.rowPart("itemIcon", p.item, p.selected, _(T))), null, 16, ["icon"])) : l("", !0)]),
99
100
  _: 1
100
101
  }, 8, ["props", "slots"]))]),
101
102
  _: 1
@@ -105,4 +106,4 @@ var v = { class: "item__content" }, y = ["id"], b = ["id"], x = /*@__PURE__*/ f(
105
106
  }, 16));
106
107
  }
107
108
  });
108
- export { x as default };
109
+ export { S as default };
@@ -2,11 +2,11 @@ import { PtValue } from '../../types/passthrough.js';
2
2
  /** Every `pt:<part>` / `pt:<part>:<state>` attribute of `BbDropdown`, documented. */
3
3
  export interface BbDropdownPtKeys {
4
4
  /**
5
- * The floating element — an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet: style what you see with `panel`.
5
+ * The floating element, an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet (style `panel` there).
6
6
  */
7
7
  'pt:root'?: PtValue;
8
8
  /**
9
- * The floating element — an invisible positioning wrapper; a `class` on the component lands here. While `open`: the menu is open. See `pt:root`.
9
+ * The floating element, an invisible positioning wrapper; a `class` on the component lands here. While `open`: the menu is open. See `pt:root`.
10
10
  */
11
11
  'pt:root:open'?: PtValue;
12
12
  /**
@@ -18,11 +18,11 @@ export interface BbDropdownPtKeys {
18
18
  */
19
19
  'pt:panel:open'?: PtValue;
20
20
  /**
21
- * The bottom sheet the menu becomes on a phone (the `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
21
+ * The phone's bottom sheet (the `BbOffCanvas` root), never the desktop surface; applied after `panel`, so it wins a conflict.
22
22
  */
23
23
  'pt:sheet'?: PtValue;
24
24
  /**
25
- * The bottom sheet the menu becomes on a phone (the `BbOffCanvas` root) — never the desktop surface. While `open`: the menu is open. See `pt:sheet`.
25
+ * The phone's bottom sheet (the `BbOffCanvas` root), never the desktop surface; applied after `panel`, so it wins a conflict. While `open`: the menu is open.
26
26
  */
27
27
  'pt:sheet:open'?: PtValue;
28
28
  /**
@@ -50,27 +50,43 @@ export interface BbDropdownPtKeys {
50
50
  */
51
51
  'pt:box:open'?: PtValue;
52
52
  /**
53
- * A searchable group's search field — a broadcast: it lands on every searchable group's field, desktop and phone alike. Its magnifier glyph is chrome.
53
+ * Every searchable group's search field, desktop and phone alike. Its magnifier glyph is chrome.
54
54
  */
55
55
  'pt:input'?: PtValue;
56
56
  /**
57
- * A searchable group's search field — a broadcast: it lands on every searchable group's field, desktop and phone alike. While `open`: the menu is open. See `pt:input`.
57
+ * Every searchable group's search field, desktop and phone alike. While `open`: the menu is open. See `pt:input`.
58
58
  */
59
59
  'pt:input:open'?: PtValue;
60
60
  /**
61
- * The top-level items container between the bands — the node that lays the entries out (a flex column with a 1px gap; on a phone, the sheet's items container). A submenu's list is not reached. Groups, headings and dividers are not parts.
61
+ * The top-level entries' container between the bands (a flex column, 1px gap; on a phone, the sheet's). A submenu's list is not reached.
62
62
  */
63
63
  'pt:list'?: PtValue;
64
64
  /**
65
- * The top-level items container between the bands — the node that lays the entries out (a flex column with a 1px gap; on a phone, the sheet's items container). While `open`: the menu is open. See `pt:list`.
65
+ * The top-level entries' container between the bands (a flex column, 1px gap; on a phone, the sheet's). While `open`: the menu is open. See `pt:list`.
66
66
  */
67
67
  'pt:list:open'?: PtValue;
68
+ /**
69
+ * Every group's label row (its `label` and icons; the row an `onClick` group activates). `#<id>:label` replaces its content.
70
+ */
71
+ 'pt:groupLabel'?: PtValue;
72
+ /**
73
+ * Every group's label row (its `label` and icons; the row an `onClick` group activates). While `open`: the menu is open. See `pt:groupLabel`.
74
+ */
75
+ 'pt:groupLabel:open'?: PtValue;
76
+ /**
77
+ * Every `groupBy` heading (sticky). `#group` / `#<id>:group` replace its content.
78
+ */
79
+ 'pt:groupHeader'?: PtValue;
80
+ /**
81
+ * Every `groupBy` heading (sticky). While `open`: the menu is open. See `pt:groupHeader`.
82
+ */
83
+ 'pt:groupHeader:open'?: PtValue;
68
84
  /**
69
85
  * One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry.
70
86
  */
71
87
  'pt:item'?: unknown;
72
88
  /**
73
- * One menu entry, submenus included — a broadcast resolved per entry. While `activeLink`: an entry whose link (`to` / `href`) points at the current page or one of its ancestors — exactly when its `activeClass` is on. The weakest state. See `pt:item`.
89
+ * One menu entry, submenus included — a broadcast resolved per entry. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:item`.
74
90
  */
75
91
  'pt:item:activeLink'?: PtValue;
76
92
  /**
@@ -102,7 +118,7 @@ export interface BbDropdownPtKeys {
102
118
  */
103
119
  'pt:itemText'?: unknown;
104
120
  /**
105
- * An entry's label (its `label`) — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`) points at the current page or one of its ancestors — exactly when its `activeClass` is on. The weakest state. See `pt:itemText`.
121
+ * An entry's label (its `label`) — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:itemText`.
106
122
  */
107
123
  'pt:itemText:activeLink'?: PtValue;
108
124
  /**
@@ -134,7 +150,7 @@ export interface BbDropdownPtKeys {
134
150
  */
135
151
  'pt:itemIcon'?: unknown;
136
152
  /**
137
- * An entry's prepend / append icons — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`) points at the current page or one of its ancestors — exactly when its `activeClass` is on. The weakest state. See `pt:itemIcon`.
153
+ * An entry's prepend / append icons — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:itemIcon`.
138
154
  */
139
155
  'pt:itemIcon:activeLink'?: PtValue;
140
156
  /**
@@ -162,35 +178,35 @@ export interface BbDropdownPtKeys {
162
178
  */
163
179
  'pt:itemIcon:destructive'?: PtValue;
164
180
  /**
165
- * 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.
181
+ * 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.
166
182
  */
167
183
  'pt:itemDescription'?: unknown;
168
184
  /**
169
- * An entry's muted second line (its `description`) — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`) points at the current page or one of its ancestors — exactly when its `activeClass` is on. The weakest state. See `pt:itemDescription`.
185
+ * An entry's muted second line (its `description`), with the entry's states. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:itemDescription`.
170
186
  */
171
187
  'pt:itemDescription:activeLink'?: PtValue;
172
188
  /**
173
- * An entry's muted second line (its `description`) — resolved with that entry's states. While `exactActiveLink`: an entry whose link points at the current page itself — its `exactActiveClass` is on. See `pt:itemDescription`.
189
+ * An entry's muted second line (its `description`), with the entry's states. While `exactActiveLink`: an entry whose link points at the current page itself — its `exactActiveClass` is on. See `pt:itemDescription`.
174
190
  */
175
191
  'pt:itemDescription:exactActiveLink'?: PtValue;
176
192
  /**
177
- * An entry's muted second line (its `description`) — resolved with that entry's states. While `selected`: a selectable group's checked entry. See `pt:itemDescription`.
193
+ * An entry's muted second line (its `description`), with the entry's states. While `selected`: a selectable group's checked entry. See `pt:itemDescription`.
178
194
  */
179
195
  'pt:itemDescription:selected'?: PtValue;
180
196
  /**
181
- * An entry's muted second line (its `description`) — resolved with that entry's states. While `disabled`: an entry that is disabled. See `pt:itemDescription`.
197
+ * An entry's muted second line (its `description`), with the entry's states. While `disabled`: an entry that is disabled. See `pt:itemDescription`.
182
198
  */
183
199
  'pt:itemDescription:disabled'?: PtValue;
184
200
  /**
185
- * An entry's muted second line (its `description`) — resolved with that entry's states. While `open`: the menu is open. See `pt:itemDescription`.
201
+ * An entry's muted second line (its `description`), with the entry's states. While `open`: the menu is open. See `pt:itemDescription`.
186
202
  */
187
203
  'pt:itemDescription:open'?: PtValue;
188
204
  /**
189
- * An entry's muted second line (its `description`) — resolved with that entry's states. While `default`: an entry with `variant: 'default'` or none. Merged after the part's base entry and before its states, so the real states still win. See `pt:itemDescription`.
205
+ * An entry's muted second line (its `description`), with the entry's states. While `default`: an entry with `variant: 'default'` or none. Merged after the part's base entry and before its states, so the real states still win. See `pt:itemDescription`.
190
206
  */
191
207
  'pt:itemDescription:default'?: PtValue;
192
208
  /**
193
- * An entry's muted second line (its `description`) — resolved with that entry's states. While `destructive`: `variant: 'destructive'`. Below the real states, like every variant. See `pt:itemDescription`.
209
+ * An entry's muted second line (its `description`), with the entry's states. While `destructive`: `variant: 'destructive'`. Below the real states, like every variant. See `pt:itemDescription`.
194
210
  */
195
211
  'pt:itemDescription:destructive'?: PtValue;
196
212
  /**
@@ -198,7 +214,7 @@ export interface BbDropdownPtKeys {
198
214
  */
199
215
  'pt:check'?: unknown;
200
216
  /**
201
- * A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. While `activeLink`: an entry whose link (`to` / `href`) points at the current page or one of its ancestors — exactly when its `activeClass` is on. The weakest state. See `pt:check`.
217
+ * A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:check`.
202
218
  */
203
219
  'pt:check:activeLink'?: PtValue;
204
220
  /**
@@ -581,29 +581,31 @@ export type MappedItem = InternalItem & {
581
581
  onKeydown: (event: KeyboardEvent) => void;
582
582
  };
583
583
  /**
584
- * Passthrough parts of `BbDropdown`. Groups,
585
- * headings and dividers are not parts.
584
+ * Passthrough parts of `BbDropdown`. A group's
585
+ * items box and the dividers are not parts.
586
586
  *
587
587
  * Per-item functions: on the instance, an entry part (`item`, `itemText`, `itemIcon`, `itemDescription`, `check`) and `submenu` (called with the entry that opens it) also accept `({ item, selected, … }) => PtValue | false | null | undefined` — `item` is the menu entry (an `Item`: its `label`, `value`, `description`, whatever else you put on it), every state a boolean beside it, on for it (`selected`, `disabled`, …), and the entry's `variant` as a string (`default` when it has none) — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the entry as it was. See the passthrough guide, _Per-item functions_.
588
588
  *
589
- * @part root - The floating element — an invisible positioning wrapper; a
590
- * `class` on the component lands here. No node on the phone sheet: style
591
- * what you see with `panel`.
589
+ * @part root - The floating element, an invisible positioning wrapper; a
590
+ * `class` on the component lands here. No node on the phone sheet (style
591
+ * `panel` there).
592
592
  * @part panel - The menu surface you see — the bordered flyout box on
593
593
  * desktop, the sheet itself on a phone.
594
- * @part sheet - The bottom sheet the menu becomes on a phone (the
595
- * `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
594
+ * @part sheet - The phone's bottom sheet (the `BbOffCanvas` root), never the
595
+ * desktop surface; applied after `panel`, so it wins a conflict.
596
596
  * @part header - The menu's header band.
597
597
  * @part footer - The menu's footer band.
598
598
  * @part box - Every searchable group's search box (field and magnifier),
599
599
  * as `box` on a field; desktop and phone.
600
- * @part input - A searchable group's search field — a broadcast: it lands on
601
- * every searchable group's field, desktop and phone alike. Its magnifier
602
- * glyph is chrome.
603
- * @part list - The top-level items container between the bands — the node
604
- * that lays the entries out (a flex column with a 1px gap; on a phone, the
605
- * sheet's items container). A submenu's list is not reached. Groups,
606
- * headings and dividers are not parts.
600
+ * @part input - Every searchable group's search field, desktop and phone
601
+ * alike. Its magnifier glyph is chrome.
602
+ * @part list - The top-level entries' container between the bands (a flex
603
+ * column, 1px gap; on a phone, the sheet's). A submenu's list is not
604
+ * reached.
605
+ * @part groupLabel - Every group's label row (its `label` and icons; the
606
+ * row an `onClick` group activates). `#<id>:label` replaces its content.
607
+ * @part groupHeader - Every `groupBy` heading (sticky). `#group` /
608
+ * `#<id>:group` replace its content.
607
609
  * @part item - One menu entry, submenus included — a broadcast resolved per
608
610
  * entry. Also takes a per-item function, called with the entry.
609
611
  * @part itemText - An entry's label (its `label`) — resolved with that
@@ -611,17 +613,17 @@ export type MappedItem = InternalItem & {
611
613
  * per-item function.
612
614
  * @part itemIcon - An entry's prepend / append icons — resolved with that
613
615
  * entry's states. Also takes a per-item function.
614
- * @part itemDescription - An entry's muted second line (its `description`) —
615
- * resolved with that entry's states. A per-entry `#<value>` slot replaces it.
616
- * Also takes a per-item function.
616
+ * @part itemDescription - An entry's muted second line (its `description`),
617
+ * with the entry's states. A per-entry `#<value>` slot replaces it. Also
618
+ * takes a per-item function.
617
619
  * @part check - A checked entry's tick, outside the row slots:
618
620
  * `pt:check="hidden"` spares your own glyph. Also takes a per-item function.
619
621
  * @part submenu - Every submenu's flyout box (desktop only). Also takes a
620
622
  * per-item function, called with the entry that opens it.
621
623
  */
622
- export type BbDropdownPtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list' | 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'submenu';
624
+ export type BbDropdownPtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list' | 'groupLabel' | 'groupHeader' | 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'submenu';
623
625
  /** The surface parts — they take a `PtValue` only. Spelled flat (T20). */
624
- export type BbDropdownSurfacePtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list';
626
+ export type BbDropdownSurfacePtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list' | 'groupLabel' | 'groupHeader';
625
627
  /** The entry parts — broadcasts resolved per entry; their base key also takes a per-item function. Spelled flat (T20). */
626
628
  export type BbDropdownItemPtPart = 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check';
627
629
  /**
@@ -634,8 +636,8 @@ export type BbDropdownItemFnPtPart = 'item' | 'itemText' | 'itemIcon' | 'itemDes
634
636
  * (the link states: while the entry's `activeClass` / `exactActiveClass` are).
635
637
  *
636
638
  * @state activeLink - Per node, on the entry parts: an entry whose link
637
- * (`to` / `href`) points at the current page or one of its ancestors —
638
- * exactly when its `activeClass` is on. The weakest state.
639
+ * (`to` / `href`) is the current page or an ancestor (its `activeClass` is
640
+ * on). The weakest state.
639
641
  * @state exactActiveLink - Per node, on the entry parts: an entry whose link
640
642
  * points at the current page itself — its `exactActiveClass` is on.
641
643
  * @state selected - Per node, on the entry parts: a selectable group's
@@ -653,7 +655,7 @@ export type BbDropdownEntryPtState = 'activeLink' | 'exactActiveLink' | 'selecte
653
655
  export type BbDropdownPtKey = BbDropdownPtPart | `${BbDropdownPtPart}:open` | `${BbDropdownItemPtPart}:${BbDropdownEntryPtState}`;
654
656
  /** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
655
657
  export declare const BB_DROPDOWN_PT: {
656
- readonly parts: readonly ["root", "panel", "sheet", "header", "footer", "box", "input", "list", "item", "itemText", "itemIcon", "itemDescription", "check", "submenu"];
658
+ readonly parts: readonly ["root", "panel", "sheet", "header", "footer", "box", "input", "list", "groupLabel", "groupHeader", "item", "itemText", "itemIcon", "itemDescription", "check", "submenu"];
657
659
  readonly states: readonly ["activeLink", "exactActiveLink", "selected", "disabled", "open"];
658
660
  /** On every part: what the resolver's `active` map turns on. */
659
661
  readonly wide: readonly ["open"];
@@ -695,26 +697,24 @@ export type BbDropdownProps = BbDropdownPtProps & {
695
697
  */
696
698
  activator?: ElementOrComponentRef;
697
699
  /**
698
- * On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom
699
- * sheet that drills into submenus one level at a time instead of hover
700
- * flyouts; slots and selection are unchanged. Unset: the global
701
- * `all.adaptive`.
700
+ * On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet
701
+ * drilling into submenus a level at a time, not hover flyouts; slots and
702
+ * selection unchanged. Unset: the global `all.adaptive`.
702
703
  *
703
704
  * @defaultValue `all.adaptive` (`true`)
704
705
  */
705
706
  adaptive?: boolean;
706
707
  /**
707
- * Whether a selection closes the menu. Unset: a change in a single-choice
708
- * group closes it (an untick too, at any depth); a `multiple` group stays
709
- * open. `true`: every selection change closes it. `false`: none does.
708
+ * Whether a selection closes the menu. Unset: a single-choice group's
709
+ * change closes it (an untick too, any depth), a `multiple` group stays
710
+ * open. `true`: every change closes it; `false`: none.
710
711
  *
711
712
  * @defaultValue unset (close after a single-choice change)
712
713
  */
713
714
  closeOnSelect?: boolean;
714
715
  /**
715
- * Compact density, the `BbSelect` ladder: flyout rows 28px → 24px, sheet
716
- * rows 44px → 36px (a sheet row stays a touch target). The label size does
717
- * not change.
716
+ * Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows
717
+ * 44 → 36px (still a touch target). The label size stays.
718
718
  */
719
719
  compact?: boolean;
720
720
  /**
@@ -730,8 +730,8 @@ export type BbDropdownProps = BbDropdownPtProps & {
730
730
  /**
731
731
  * Keeps the panel inside this element beside its trigger (sideways under a
732
732
  * menu); away from it only the viewport flips it. An element, component ref
733
- * or CSS selector (a `useTemplateRef`, not `$refs.x`). Default in a
734
- * `BbTable`: the table's left and right edges.
733
+ * or CSS selector (a `useTemplateRef`, not `$refs.x`). In a `BbTable`: its
734
+ * left and right edges.
735
735
  */
736
736
  boundary?: ElementOrComponentRef | string;
737
737
  /**
@@ -739,9 +739,9 @@ export type BbDropdownProps = BbDropdownPtProps & {
739
739
  */
740
740
  disabled?: boolean;
741
741
  /**
742
- * Renders the menu panel at mount instead of on the first open (the phone
743
- * sheet's too), and keeps its rows after a close. Without it the rows mount
744
- * on each open and go once the menu has closed.
742
+ * Renders the panel (the phone sheet's too) at mount, not on the first
743
+ * open, and keeps its rows after a close; otherwise rows mount on each open
744
+ * and go after the close.
745
745
  */
746
746
  eager?: boolean;
747
747
  /**
@@ -811,18 +811,16 @@ export type BbDropdownProps = BbDropdownPtProps & {
811
811
  */
812
812
  queryDebounceTime?: number;
813
813
  /**
814
- * The open / close transition in milliseconds. Menus take the fast one
815
- * (150), not the popovers' medium 250: a menu is picked from and gone, so
816
- * it answers faster than a panel you read or edit in.
814
+ * The open / close transition (ms). Menus take the fast 150, not the
815
+ * popovers' 250: a menu is picked from and gone, quicker than a panel you
816
+ * read or edit.
817
817
  *
818
818
  * @defaultValue `150`
819
819
  */
820
820
  transitionDuration?: number;
821
821
  /**
822
- * Interaction(s) that open the dropdown.
823
- * Accepts a single trigger or an array to combine them.
824
- * - `'click'` — left-click / tap (default)
825
- * - `'contextMenu'` — right-click on desktop, long-press on mobile
822
+ * What opens the menu, one or an array: `'click'` (left-click / tap) or
823
+ * `'contextMenu'` (right-click; long-press on mobile).
826
824
  *
827
825
  * @defaultValue `'click'`
828
826
  */
@@ -846,9 +844,9 @@ export type BbDropdownEvents = {
846
844
  /** Emitted once the menu has finished closing. */
847
845
  (e: 'hidden'): void;
848
846
  /**
849
- * The user selected a row in a selectable group, at the click — also when a
850
- * controlled companion's app then refuses the value. The payload is the
851
- * row's value (its `item-value` for pipeline groups, else its `value`).
847
+ * The user selected a row in a selectable group, at the click, even when a
848
+ * controlled companion's app then refuses it. Payload: the row's value
849
+ * (`item-value` for pipeline groups, else `value`).
852
850
  */
853
851
  (e: 'item:selected', value: any): void;
854
852
  /**
@@ -1015,9 +1013,9 @@ export type BbDropdownSlots = {
1015
1013
  */
1016
1014
  loading?: (props: BbDropdownPlaceholderSlotProps) => any;
1017
1015
  /**
1018
- * Replaces the default "no data" placeholder row shown in a pipeline group
1019
- * that resolved to no items. Rendered once per empty group. A failed load
1020
- * is not empty: it keeps its own row (the error icon and `failedText`).
1016
+ * Replaces the placeholder row of a pipeline group that resolved to no
1017
+ * items, once per empty group. A failed load is not empty: it keeps its
1018
+ * own row (error icon, `failedText`).
1021
1019
  */
1022
1020
  empty?: (props: BbDropdownPlaceholderSlotProps) => any;
1023
1021
  /**
@@ -1035,9 +1033,9 @@ export type BbDropdownSlots = {
1035
1033
  */
1036
1034
  'item:prepend'?: (props: BbDropdownItemSlotProps) => any;
1037
1035
  /**
1038
- * The trailing region of every row (and group title line), replacing its
1039
- * `append:icon` wherever it renders. A named slot wins; the submenu
1040
- * chevron and the check on a selected row take its place.
1036
+ * The trailing region of every row (and group label), replacing its
1037
+ * `append:icon` wherever it renders. A named slot wins; a submenu chevron
1038
+ * or a selected row's check takes its place.
1041
1039
  */
1042
1040
  'item:append'?: (props: BbDropdownItemSlotProps) => any;
1043
1041
  /**
@@ -10,6 +10,8 @@ var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.mu
10
10
  "box",
11
11
  "input",
12
12
  "list",
13
+ "groupLabel",
14
+ "groupHeader",
13
15
  "item",
14
16
  "itemText",
15
17
  "itemIcon",
@@ -1,8 +1,8 @@
1
1
  import { FallthroughAttrs } from '../../types/fallthrough.js';
2
2
  import { BbDropdownButtonEvents, BbDropdownButtonProps, BbDropdownButtonSlots } from './types.js';
3
- export type { BbDropdownButtonEvents, BbDropdownButtonProps, BbDropdownButtonSlots, };
4
3
  type __VLS_Props = BbDropdownButtonProps & FallthroughAttrs<'span' | 'button' | 'a', BbDropdownButtonProps, BbDropdownButtonEvents>;
5
4
  type __VLS_Slots = BbDropdownButtonSlots;
5
+ export type { BbDropdownButtonEvents, BbDropdownButtonProps, BbDropdownButtonSlots, };
6
6
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
7
  "item:selected": (value: any) => any;
8
8
  hide: () => any;