bitboss-ui 3.0.0-beta.70 → 3.0.0-beta.71

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 (123) hide show
  1. package/dist/ai/BbBreadcrumbs.md +3 -0
  2. package/dist/ai/BbCheckbox.md +5 -6
  3. package/dist/ai/BbCheckboxGroup.md +25 -26
  4. package/dist/ai/BbColorInput.md +3 -4
  5. package/dist/ai/BbDatePickerInput.md +3 -4
  6. package/dist/ai/BbDropdown.md +35 -1
  7. package/dist/ai/BbDropdownButton.md +4 -3
  8. package/dist/ai/BbNumberInput.md +3 -4
  9. package/dist/ai/BbRadio.md +5 -6
  10. package/dist/ai/BbRadioGroup.md +24 -30
  11. package/dist/ai/BbRating.md +3 -9
  12. package/dist/ai/BbSelect.md +10 -11
  13. package/dist/ai/BbSlider.md +3 -9
  14. package/dist/ai/BbSwitch.md +6 -6
  15. package/dist/ai/BbSwitchGroup.md +4 -7
  16. package/dist/ai/BbTag.md +3 -4
  17. package/dist/ai/BbTextInput.md +11 -11
  18. package/dist/ai/BbTextarea.md +8 -8
  19. package/dist/ai/BbTimePickerInput.md +3 -4
  20. package/dist/ai/BbTooltip.md +17 -13
  21. package/dist/ai/CommonField.md +2 -10
  22. package/dist/ai/OptionsContainer.md +5 -13
  23. package/dist/ai/changelog.json +44 -5
  24. package/dist/ai/components.json +26 -26
  25. package/dist/ai/guides/migration/v2-to-v3.md +26 -2
  26. package/dist/ai/guides/preset-components.md +35 -10
  27. package/dist/ai/helpers/definePreset.json +8 -1
  28. package/dist/ai/helpers/definePreset.ts +35 -10
  29. package/dist/ai/helpers/inertia/manifest.json +1 -1
  30. package/dist/ai/manifest/common.json +2 -2
  31. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  32. package/dist/ai/manifest/components/BbCheckbox.json +2 -2
  33. package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
  34. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
  35. package/dist/ai/manifest/components/BbColorInput.json +2 -2
  36. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  37. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  38. package/dist/ai/manifest/components/BbDropdown.json +2 -2
  39. package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
  40. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  41. package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
  42. package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
  43. package/dist/ai/manifest/components/BbRating.tree.json +1 -1
  44. package/dist/ai/manifest/components/BbSelect.json +15 -15
  45. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  46. package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
  47. package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
  48. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
  49. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  50. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  51. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  52. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  53. package/dist/ai/manifest/components/BbTooltip.json +1 -1
  54. package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
  55. package/dist/ai/manifest/components/CommonField.tree.json +5 -10
  56. package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
  57. package/dist/ai/manifest/index.json +2 -2
  58. package/dist/ai/manifest/types.advanced.json +1 -1
  59. package/dist/ai/manifest/types.api.json +2 -2
  60. package/dist/ai/source/BbBreadcrumbs.md +31 -12
  61. package/dist/ai/source/BbCheckbox.md +36 -42
  62. package/dist/ai/source/BbCheckboxGroup.md +2 -4
  63. package/dist/ai/source/BbColorInput.md +2 -4
  64. package/dist/ai/source/BbDatePickerInput.md +2 -4
  65. package/dist/ai/source/BbDropdown.md +11 -2
  66. package/dist/ai/source/BbDropdownButton.md +4 -1
  67. package/dist/ai/source/BbDropdownGroup.md +9 -2
  68. package/dist/ai/source/BbNumberInput.md +2 -4
  69. package/dist/ai/source/BbRadio.md +36 -42
  70. package/dist/ai/source/BbRadioGroup.md +2 -4
  71. package/dist/ai/source/BbRating.md +2 -14
  72. package/dist/ai/source/BbSelect.md +30 -13
  73. package/dist/ai/source/BbSlider.md +2 -4
  74. package/dist/ai/source/BbSwitch.md +34 -38
  75. package/dist/ai/source/BbTable.md +4 -1
  76. package/dist/ai/source/BbTag.md +2 -4
  77. package/dist/ai/source/BbTextInput.md +2 -4
  78. package/dist/ai/source/BbTextarea.md +2 -4
  79. package/dist/ai/source/BbTimePickerInput.md +2 -4
  80. package/dist/ai/source/BbTooltip.md +9 -3
  81. package/dist/ai/source/CommonField.md +17 -106
  82. package/dist/ai/source/GuidesComponent.md +3 -0
  83. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
  84. package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
  85. package/dist/components/BbCheckbox/types.d.ts +2 -4
  86. package/dist/components/BbCheckboxGroup/types.d.ts +2 -4
  87. package/dist/components/BbColorInput/types.d.ts +2 -4
  88. package/dist/components/BbDatePickerInput/types.d.ts +2 -4
  89. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +2 -0
  90. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
  91. package/dist/components/BbDropdown/normalizeGroups.js +37 -33
  92. package/dist/components/BbDropdown/types.d.ts +9 -2
  93. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +95 -94
  94. package/dist/components/BbNumberInput/types.d.ts +2 -4
  95. package/dist/components/BbRadio/types.d.ts +2 -4
  96. package/dist/components/BbRadioGroup/types.d.ts +2 -4
  97. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +116 -118
  98. package/dist/components/BbRating/types.d.ts +2 -4
  99. package/dist/components/BbSelect/BbSelect.vue.d.ts +10 -4
  100. package/dist/components/BbSelect/types.d.ts +4 -6
  101. package/dist/components/BbSlider/types.d.ts +2 -4
  102. package/dist/components/BbTable/types.d.ts +1 -1
  103. package/dist/components/BbTag/types.d.ts +2 -4
  104. package/dist/components/BbTextInput/types.d.ts +2 -4
  105. package/dist/components/BbTextarea/types.d.ts +2 -4
  106. package/dist/components/BbTimePickerInput/types.d.ts +2 -4
  107. package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
  108. package/dist/components/BbTooltip/types.d.ts +3 -1
  109. package/dist/components/CommonField/types.d.ts +2 -4
  110. package/dist/composables/useChoiceIndicator.js +67 -64
  111. package/dist/directives/bbDropdown.js +1 -1
  112. package/dist/llms-full.txt +246 -201
  113. package/dist/styles.css +2 -2
  114. package/dist/types/FieldLayout.d.ts +4 -1
  115. package/dist/types/ItemAccessor.d.ts +3 -1
  116. package/dist/types/ItemPath.d.ts +33 -0
  117. package/dist/utils/versionCheck.js +1 -1
  118. package/package.json +6 -4
  119. package/scripts/README.md +31 -29
  120. package/scripts/lib/define-preset-copy.mjs +1 -1
  121. package/scripts/lib/setup.mjs +8 -0
  122. package/scripts/lib/toolchain-check.mjs +125 -7
  123. package/scripts/lib/validate-bb-markup.mjs +1 -1
@@ -7,27 +7,27 @@ import a from "../BbBaseButton/BbBaseButton.vue.js";
7
7
  import o from "../BbDropdown/BbDropdown.vue.js";
8
8
  import { estimateBreadcrumbItemWidth as s, estimateEllipsisWidth as c } from "./estimateBreadcrumbItemWidth.js";
9
9
  import l from "../../assets/svgs/chevron_right.svg_raw.js";
10
- import { BB_BREADCRUMBS_PT as u } from "./types.js";
11
- import { usePassthrough as ee } from "../../composables/usePassthrough.js";
12
- import d from "../BbIcon/BbIcon.vue.js";
13
- import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as te, createTextVNode as ne, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeProps as x, normalizeProps as re, onBeforeUnmount as ie, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as ae, unref as E, useAttrs as oe, useSlots as se, watch as ce, withCtx as D } from "vue";
14
- import { useResizeObserver as le } from "@vueuse/core";
10
+ import { BB_BREADCRUMBS_PT as ee } from "./types.js";
11
+ import { usePassthrough as te } from "../../composables/usePassthrough.js";
12
+ import u from "../BbIcon/BbIcon.vue.js";
13
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ne, createTextVNode as re, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, normalizeProps as x, onBeforeUnmount as ie, openBlock as S, ref as C, renderList as ae, renderSlot as w, toDisplayString as oe, unref as T, useAttrs as se, useSlots as ce, watch as le, withCtx as E } from "vue";
14
+ import { useResizeObserver as ue } from "@vueuse/core";
15
15
  // src/components/BbBreadcrumbs/BbBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
16
- var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
16
+ var de = ["aria-label"], fe = { class: "bb-breadcrumbs__container" }, pe = {
17
17
  key: 0,
18
18
  class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--prepend"
19
- }, pe = { class: "bb-breadcrumbs__list" }, me = ["aria-label", "disabled"], he = {
19
+ }, me = { class: "bb-breadcrumbs__list" }, he = ["aria-label", "disabled"], ge = {
20
20
  key: 0,
21
21
  "aria-hidden": "true",
22
22
  class: "bb-breadcrumbs__divider"
23
- }, ge = ["title"], _e = {
23
+ }, _e = ["title"], ve = {
24
24
  key: 0,
25
25
  "aria-hidden": "true",
26
26
  class: "bb-breadcrumbs__divider"
27
- }, ve = {
27
+ }, ye = {
28
28
  key: 1,
29
29
  class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--append"
30
- }, O = 20, ye = 1, k = 8.5, be = .5, xe = 8, Se = 200, A = /*@__PURE__*/ y({
30
+ }, D = 20, be = 1, O = 8.5, xe = .5, Se = 8, Ce = 200, k = /*@__PURE__*/ v({
31
31
  inheritAttrs: !1,
32
32
  __name: "BbBreadcrumbs",
33
33
  props: {
@@ -51,30 +51,30 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
51
51
  estimationBias: { default: 1.12 },
52
52
  ellipsisWidth: {}
53
53
  },
54
- setup(y) {
55
- let A = y;
56
- process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", r("BbBreadcrumbs"), { slotKeys: () => A.items.map((e) => e.value) });
57
- let j = ee({
54
+ setup(v) {
55
+ let k = v, A = f(() => k.items.filter((e) => !e.hidden));
56
+ process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", r("BbBreadcrumbs"), { slotKeys: () => k.items.map((e) => e.value) });
57
+ let j = te({
58
58
  component: "BbBreadcrumbs",
59
- attrs: oe(),
60
- props: A,
61
- parts: u.parts,
62
- states: u.states,
63
- active: { disabled: () => !!A.disabled }
59
+ attrs: se(),
60
+ props: k,
61
+ parts: ee.parts,
62
+ states: ee.states,
63
+ active: { disabled: () => !!k.disabled }
64
64
  }), { t: M } = e();
65
65
  t();
66
- let N = se(), Ce = /* @__PURE__ */ new Set([
66
+ let N = ce(), we = /* @__PURE__ */ new Set([
67
67
  "prepend",
68
68
  "append",
69
69
  "ellipsis",
70
70
  "divider",
71
71
  "activator"
72
- ]), P = (e) => e.value == null || e.value === "" ? ":keyless" : n(String(e.value)), F = (e, t) => t === A.items.length - 1 && !e.href && !e.to && !e.onClick, we = (e, t) => {
73
- let { "prepend:icon": n, "append:icon": r, value: i, label: a, ...o } = e;
72
+ ]), P = (e) => e.value == null || e.value === "" ? ":keyless" : n(String(e.value)), F = (e, t) => t === A.value.length - 1 && !e.href && !e.to && !e.onClick, Te = (e, t) => {
73
+ let { "prepend:icon": n, "append:icon": r, value: i, label: a, hidden: o, ...s } = e;
74
74
  return F(e, t) ? {
75
- ...o,
75
+ ...s,
76
76
  "aria-current": "page"
77
- } : o;
77
+ } : s;
78
78
  }, I = (e, t) => {
79
79
  let n = `${P(e)}:${t}`;
80
80
  return N[n] ? {
@@ -87,35 +87,35 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
87
87
  name: n,
88
88
  exists: !1
89
89
  };
90
- }, Te = p(() => Object.keys(N).filter((e) => !Ce.has(e))), L = C(null), R = C(0), z = p(() => A.gapWidth), B = p(() => Math.max(0, A.offsetWidth)), Ee = p(() => A.estimationBias), V = p(() => A.ellipsisWidth ?? c(k)), De = p(() => M("breadcrumbs.label").value), Oe = p(() => M("breadcrumbs.openHiddenLabelCount", R.value).value), H = (e) => {
90
+ }, Ee = f(() => Object.keys(N).filter((e) => !we.has(e))), L = C(null), R = C(0), z = f(() => k.gapWidth), B = f(() => Math.max(0, k.offsetWidth)), De = f(() => k.estimationBias), V = f(() => k.ellipsisWidth ?? c(O)), Oe = f(() => M("breadcrumbs.label").value), ke = f(() => M("breadcrumbs.openHiddenLabelCount", R.value).value), H = (e) => {
91
91
  let t = e.label ?? "";
92
92
  return s(t, {
93
- estimationBias: Ee.value,
94
- fontWidth: k
93
+ estimationBias: De.value,
94
+ fontWidth: O
95
95
  });
96
- }, ke = p(() => {
97
- let e = A.items.length;
96
+ }, Ae = f(() => {
97
+ let e = A.value.length;
98
98
  if (e === 0) return 0;
99
- let t = A.dividerWidth, n = z.value;
100
- return A.items.map(H).reduce((e, t) => e + t, 0) + (e > 1 ? (e - 1) * (t + 2 * n) : 0) + B.value + O + 12;
101
- }), U = C(!1), W = () => {
99
+ let t = k.dividerWidth, n = z.value;
100
+ return A.value.map(H).reduce((e, t) => e + t, 0) + (e > 1 ? (e - 1) * (t + 2 * n) : 0) + B.value + D + 12;
101
+ }), U = C(!1), je = () => {
102
102
  let e = L.value?.parentElement;
103
103
  if (!e) return;
104
104
  let t = getComputedStyle(e);
105
105
  U.value = t.display.includes("flex") && t.flexDirection.startsWith("column");
106
- }, Ae = p(() => ({
107
- "--flex-basis": U.value ? "auto" : `${Math.ceil(ke.value)}px`,
106
+ }, Me = f(() => ({
107
+ "--flex-basis": U.value ? "auto" : `${Math.ceil(Ae.value)}px`,
108
108
  "--flex-grow": R.value > 0 ? "1" : "0",
109
109
  "--gap": `${z.value}px`
110
- })), je = (e) => {
111
- let t = A.items.length;
110
+ })), Ne = (e) => {
111
+ let t = A.value.length;
112
112
  if (t === 0) {
113
113
  R.value = 0;
114
114
  return;
115
115
  }
116
- let n = Math.max(0, e - ye - B.value - O), r = A.dividerWidth, i = V.value, a = z.value, o = A.items.map(H), s = Array.from({ length: t + 1 }, () => 0);
116
+ let n = Math.max(0, e - be - B.value - D), r = k.dividerWidth, i = V.value, a = z.value, o = A.value.map(H), s = Array.from({ length: t + 1 }, () => 0);
117
117
  for (let e = t - 1; e >= 0; e--) s[e] = s[e + 1] + o[e];
118
- let c = (e) => n - e <= O / 2, l = s[0] + (t > 1 ? (t - 1) * (r + 2 * a) : 0);
118
+ let c = (e) => n - e <= D / 2, l = s[0] + (t > 1 ? (t - 1) * (r + 2 * a) : 0);
119
119
  if (l <= n) {
120
120
  if (t > 1 && c(l)) {
121
121
  R.value = 1;
@@ -136,135 +136,135 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
136
136
  }
137
137
  R.value = t - 1;
138
138
  }
139
- }, Me = p(() => L.value), Ne = p(() => A.items.map((e) => `${String(e.value)}::${e.label ?? ""}`).join("|")), G = null, K = null, q = null, J = null, Y = 0, X = null, Z = (e, t) => Math.abs(e - t) <= be, Q = () => {
139
+ }, W = f(() => L.value), Pe = f(() => A.value.map((e) => `${String(e.value)}::${e.label ?? ""}`).join("|")), G = null, K = null, q = null, J = null, Y = 0, X = null, Z = (e, t) => Math.abs(e - t) <= xe, Q = () => {
140
140
  X != null && clearTimeout(X), X = setTimeout(() => {
141
141
  X = null, Y = 0;
142
- }, Se);
143
- }, Pe = () => {
142
+ }, Ce);
143
+ }, Fe = () => {
144
144
  if (K = null, G == null) return;
145
145
  let e = G;
146
- G = null, q != null && Z(e, q) ? Q() : (Y = J != null && q != null && Z(e, J) && !Z(e, q) ? Y + 1 : 0, Y >= xe ? (J = q, q = e, Q()) : (J = q, q = e, je(e), Q()));
146
+ G = null, q != null && Z(e, q) ? Q() : (Y = J != null && q != null && Z(e, J) && !Z(e, q) ? Y + 1 : 0, Y >= Se ? (J = q, q = e, Q()) : (J = q, q = e, Ne(e), Q()));
147
147
  }, $ = (e) => {
148
- G = e, K ??= requestAnimationFrame(Pe);
148
+ G = e, K ??= requestAnimationFrame(Fe);
149
149
  };
150
- le(Me, ([e]) => {
151
- W(), $(e.contentRect.width);
152
- }), ce([
153
- Me,
154
- Ne,
155
- () => A.dividerWidth,
156
- () => A.gapWidth,
157
- () => A.offsetWidth,
158
- () => A.estimationBias,
159
- () => A.ellipsisWidth
150
+ ue(W, ([e]) => {
151
+ je(), $(e.contentRect.width);
152
+ }), le([
153
+ W,
154
+ Pe,
155
+ () => k.dividerWidth,
156
+ () => k.gapWidth,
157
+ () => k.offsetWidth,
158
+ () => k.estimationBias,
159
+ () => k.ellipsisWidth
160
160
  ], ([e]) => {
161
- e && (W(), $(e.clientWidth));
161
+ e && (je(), $(e.clientWidth));
162
162
  }, { immediate: !0 }), ie(() => {
163
163
  K != null && cancelAnimationFrame(K), X != null && clearTimeout(X);
164
164
  });
165
- let Fe = p(() => A.items.slice(0, R.value).map((e) => ({
165
+ let Ie = f(() => A.value.slice(0, R.value).map((e) => ({
166
166
  ...e,
167
167
  label: e.label ?? ""
168
168
  })));
169
- return (e, t) => (S(), g("nav", x({
169
+ return (e, t) => (S(), h("nav", b({
170
170
  ref_key: "navRef",
171
171
  ref: L,
172
- "aria-label": De.value,
172
+ "aria-label": Oe.value,
173
173
  class: "bb-breadcrumbs",
174
- style: Ae.value
175
- }, E(j).rootAttrs), [_("div", de, [
176
- e.$slots.prepend ? (S(), g("div", fe, [T(e.$slots, "prepend", { disabled: y.disabled })])) : h("", !0),
177
- _("ol", pe, [R.value > 0 ? (S(), g("li", x({
174
+ style: Me.value
175
+ }, T(j).rootAttrs), [g("div", fe, [
176
+ e.$slots.prepend ? (S(), h("div", pe, [w(e.$slots, "prepend", { disabled: v.disabled })])) : m("", !0),
177
+ g("ol", me, [R.value > 0 ? (S(), h("li", b({
178
178
  key: 0,
179
179
  class: "bb-breadcrumbs__item"
180
- }, E(j).part("item", { disabled: y.disabled || void 0 })), [v(o, {
181
- items: Fe.value,
180
+ }, T(j).part("item", { disabled: v.disabled || void 0 })), [_(o, {
181
+ items: Ie.value,
182
182
  padding: 0,
183
183
  placement: "bottom-start"
184
- }, te({
185
- activator: D(({ props: n }) => [_("button", x(n, {
186
- "aria-label": Oe.value,
184
+ }, ne({
185
+ activator: E(({ props: n }) => [g("button", b(n, {
186
+ "aria-label": ke.value,
187
187
  class: "bb-breadcrumbs__ellipsis",
188
- disabled: y.disabled,
188
+ disabled: v.disabled,
189
189
  type: "button"
190
- }), [T(e.$slots, "ellipsis", re(b({
190
+ }), [w(e.$slots, "ellipsis", x(y({
191
191
  props: n,
192
- disabled: y.disabled,
192
+ disabled: v.disabled,
193
193
  overflowCount: R.value,
194
194
  ellipsisWidth: V.value
195
- })), () => [t[0] ||= ne(" … ", -1)])], 16, me)]),
195
+ })), () => [t[0] ||= re(" … ", -1)])], 16, he)]),
196
196
  _: 2
197
- }, [w(Te.value, (t) => ({
197
+ }, [ae(Ee.value, (t) => ({
198
198
  name: t,
199
- fn: D((n) => [T(e.$slots, t, re(b(n)))])
200
- }))]), 1032, ["items"]), R.value < y.items.length ? (S(), g("span", he, [T(e.$slots, "divider", {}, () => [v(d, {
201
- icon: E(l),
199
+ fn: E((n) => [w(e.$slots, t, x(y(n)))])
200
+ }))]), 1032, ["items"]), R.value < A.value.length ? (S(), h("span", ge, [w(e.$slots, "divider", {}, () => [_(u, {
201
+ icon: T(l),
202
202
  size: "14"
203
- }, null, 8, ["icon"])])])) : h("", !0)], 16)) : h("", !0), (S(!0), g(f, null, w(y.items, (t, n) => (S(), g(f, { key: t.value ?? `:keyless-${n}` }, [n >= R.value ? (S(), g("li", x({
203
+ }, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0), (S(!0), h(d, null, ae(A.value, (t, n) => (S(), h(d, { key: t.value ?? `:keyless-${n}` }, [n >= R.value ? (S(), h("li", b({
204
204
  key: 0,
205
205
  class: ["bb-breadcrumbs__item", {
206
206
  "bb-breadcrumbs__item--active": F(t, n),
207
- "bb-breadcrumbs__item--compressed": y.items.length > 1 && R.value === y.items.length - 1
207
+ "bb-breadcrumbs__item--compressed": A.value.length > 1 && R.value === A.value.length - 1
208
208
  }]
209
- }, { ref_for: !0 }, E(j).part("item", {
209
+ }, { ref_for: !0 }, T(j).part("item", {
210
210
  active: F(t, n),
211
- disabled: t.disabled || y.disabled || void 0
212
- })), [v(a, x({ ref_for: !0 }, we(t, n), {
211
+ disabled: t.disabled || v.disabled || void 0
212
+ })), [_(a, b({ ref_for: !0 }, Te(t, n), {
213
213
  class: "bb-breadcrumbs__breadcrumb",
214
- disabled: t.disabled || y.disabled,
214
+ disabled: t.disabled || v.disabled,
215
215
  tag: F(t, n) ? "span" : void 0
216
216
  }), {
217
- default: D(() => [
218
- T(e.$slots, I(t, "prepend").name, {
219
- disabled: !!(t.disabled || y.disabled),
217
+ default: E(() => [
218
+ w(e.$slots, I(t, "prepend").name, {
219
+ disabled: !!(t.disabled || v.disabled),
220
220
  index: n,
221
221
  item: t,
222
222
  label: t.label
223
223
  }),
224
- !I(t, "prepend").exists && t["prepend:icon"] ? (S(), m(d, x({
224
+ !I(t, "prepend").exists && t["prepend:icon"] ? (S(), p(u, b({
225
225
  key: 0,
226
226
  class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--prepend",
227
227
  icon: t["prepend:icon"],
228
228
  size: "14"
229
- }, { ref_for: !0 }, E(j).part("icon", {
229
+ }, { ref_for: !0 }, T(j).part("icon", {
230
230
  active: F(t, n),
231
- disabled: t.disabled || y.disabled || void 0
232
- })), null, 16, ["icon"])) : h("", !0),
233
- _("span", x({
231
+ disabled: t.disabled || v.disabled || void 0
232
+ })), null, 16, ["icon"])) : m("", !0),
233
+ g("span", b({
234
234
  class: "bb-breadcrumbs__text",
235
- title: y.items.length > 1 && R.value === y.items.length - 1 ? t.label : void 0
236
- }, { ref_for: !0 }, E(j).part("text", {
235
+ title: A.value.length > 1 && R.value === A.value.length - 1 ? t.label : void 0
236
+ }, { ref_for: !0 }, T(j).part("text", {
237
237
  active: F(t, n),
238
- disabled: t.disabled || y.disabled || void 0
239
- })), [T(e.$slots, P(t), {
240
- disabled: !!(t.disabled || y.disabled),
238
+ disabled: t.disabled || v.disabled || void 0
239
+ })), [w(e.$slots, P(t), {
240
+ disabled: !!(t.disabled || v.disabled),
241
241
  index: n,
242
242
  item: t,
243
243
  label: t.label
244
- }, () => [ne(ae(t.label), 1)])], 16, ge),
245
- T(e.$slots, I(t, "append").name, {
246
- disabled: !!(t.disabled || y.disabled),
244
+ }, () => [re(oe(t.label), 1)])], 16, _e),
245
+ w(e.$slots, I(t, "append").name, {
246
+ disabled: !!(t.disabled || v.disabled),
247
247
  index: n,
248
248
  item: t,
249
249
  label: t.label
250
250
  }),
251
- !I(t, "append").exists && t["append:icon"] ? (S(), m(d, x({
251
+ !I(t, "append").exists && t["append:icon"] ? (S(), p(u, b({
252
252
  key: 1,
253
253
  class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--append",
254
254
  icon: t["append:icon"],
255
255
  size: "14"
256
- }, { ref_for: !0 }, E(j).part("icon", {
256
+ }, { ref_for: !0 }, T(j).part("icon", {
257
257
  active: F(t, n),
258
- disabled: t.disabled || y.disabled || void 0
259
- })), null, 16, ["icon"])) : h("", !0)
258
+ disabled: t.disabled || v.disabled || void 0
259
+ })), null, 16, ["icon"])) : m("", !0)
260
260
  ]),
261
261
  _: 2
262
- }, 1040, ["disabled", "tag"]), n < y.items.length - 1 ? (S(), g("span", _e, [T(e.$slots, "divider", {}, () => [v(d, {
263
- icon: E(l),
262
+ }, 1040, ["disabled", "tag"]), n < A.value.length - 1 ? (S(), h("span", ve, [w(e.$slots, "divider", {}, () => [_(u, {
263
+ icon: T(l),
264
264
  size: "14"
265
- }, null, 8, ["icon"])])])) : h("", !0)], 16)) : h("", !0)], 64))), 128))]),
266
- e.$slots.append ? (S(), g("div", ve, [T(e.$slots, "append", { disabled: y.disabled })])) : h("", !0)
267
- ])], 16, ue));
265
+ }, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0)], 64))), 128))]),
266
+ e.$slots.append ? (S(), h("div", ye, [w(e.$slots, "append", { disabled: v.disabled })])) : m("", !0)
267
+ ])], 16, de));
268
268
  }
269
269
  });
270
- export { A as default };
270
+ export { k as default };
@@ -18,6 +18,12 @@ export type Item = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 'text'> &
18
18
  * the same `label` and `value`.
19
19
  */
20
20
  value?: string;
21
+ /**
22
+ * Leaves the crumb out entirely: not in the trail, not in the overflow
23
+ * menu, and never the current page — the same `hidden` a dropdown row
24
+ * takes (an overflowed crumb is one).
25
+ */
26
+ hidden?: boolean;
21
27
  /** Crumbs have no `key` (that is `value`). Guards against the old shape. */
22
28
  key?: never;
23
29
  /** Crumbs have no `text` (that is `label`). Guards against the old shape. */
@@ -67,14 +67,12 @@ export type BbCheckboxFieldProps = {
67
67
  layout?: Responsive<FieldLayout>;
68
68
  /**
69
69
  * Vertical position of the label block in a side-by-side row; not
70
- * `labelPosition`, the horizontal one. Omitted, the label's first line
71
- * meets the control's.
70
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
72
71
  */
73
72
  labelAlign?: FieldCrossAlign;
74
73
  /**
75
74
  * Vertical position of the control in a side-by-side row; not
76
- * `inputPosition`, the horizontal one. Omitted, the control's first line
77
- * meets the label's.
75
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
78
76
  */
79
77
  inputAlign?: FieldCrossAlign;
80
78
  /**
@@ -77,14 +77,12 @@ export type BbCheckboxGroupBaseProps<T> = {
77
77
  layout?: Responsive<FieldLayout>;
78
78
  /**
79
79
  * Vertical position of the label block in a side-by-side row; not
80
- * `labelPosition`, the horizontal one. Omitted, the label's first line
81
- * meets the control's.
80
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
82
81
  */
83
82
  labelAlign?: FieldCrossAlign;
84
83
  /**
85
84
  * Vertical position of the control in a side-by-side row; not
86
- * `inputPosition`, the horizontal one. Omitted, the control's first line
87
- * meets the label's.
85
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
88
86
  */
89
87
  inputAlign?: FieldCrossAlign;
90
88
  /**
@@ -145,14 +145,12 @@ export type BbColorInputProps = BbColorInputPtProps & {
145
145
  layout?: Responsive<FieldLayout>;
146
146
  /**
147
147
  * Vertical position of the label block in a side-by-side row; not
148
- * `labelPosition`, the horizontal one. Omitted, the label's first line
149
- * meets the control's.
148
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
150
149
  */
151
150
  labelAlign?: FieldCrossAlign;
152
151
  /**
153
152
  * Vertical position of the control in a side-by-side row; not
154
- * `inputPosition`, the horizontal one. Omitted, the control's first line
155
- * meets the label's.
153
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
156
154
  */
157
155
  inputAlign?: FieldCrossAlign;
158
156
  /**
@@ -180,14 +180,12 @@ export type BbDatePickerInputBaseProps = BbDatePickerInputPtProps & {
180
180
  layout?: Responsive<FieldLayout>;
181
181
  /**
182
182
  * Vertical position of the label block in a side-by-side row; not
183
- * `labelPosition`, the horizontal one. Omitted, the label's first line
184
- * meets the control's.
183
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
185
184
  */
186
185
  labelAlign?: FieldCrossAlign;
187
186
  /**
188
187
  * Vertical position of the control in a side-by-side row; not
189
- * `inputPosition`, the horizontal one. Omitted, the control's first line
190
- * meets the label's.
188
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
191
189
  */
192
190
  inputAlign?: FieldCrossAlign;
193
191
  /**
@@ -276,6 +276,7 @@ var He = [
276
276
  multiple: t.multiple ?? e.multiple,
277
277
  label: t.label ?? e.label,
278
278
  hideLabel: t.hideLabel ?? e.hideLabel,
279
+ hidden: t.hidden ?? e.hidden,
279
280
  items: t.items ?? e.items,
280
281
  "prepend:icon": t["prepend:icon"] ?? e["prepend:icon"],
281
282
  "append:icon": t["append:icon"] ?? e["append:icon"],
@@ -286,6 +287,7 @@ var He = [
286
287
  id: e.key,
287
288
  label: e.label ?? t?.label,
288
289
  hideLabel: e.hideLabel ?? t?.hideLabel,
290
+ hidden: e.hidden ?? t?.hidden,
289
291
  items: e.items ?? t?.items ?? [],
290
292
  selectable: e.selectable ?? t?.selectable,
291
293
  multiple: e.multiple ?? t?.multiple,