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
@@ -150,6 +150,9 @@ const members = [
150
150
  </script>
151
151
  ```
152
152
 
153
+ A crumb with `hidden: true` is left out of the trail and the overflow menu,
154
+ the same flag a dropdown row takes.
155
+
153
156
  ### Long trails collapse on their own
154
157
 
155
158
  You do not manage overflow. When the trail is wider than its container the
@@ -36,7 +36,6 @@
36
36
  | `--t` | `pt:icon` | `BbBaseCheckboxIcon` | State-change time: the fill fade and the check / dash drawing in. |
37
37
  | `--bg` | `pt:icon` | `BbBaseCheckboxIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
38
38
  | `--border-color` | `pt:icon` | `BbBaseCheckboxIcon` | Resting border colour of the glyph; re-pointed by error and warning states. |
39
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
40
39
 
41
40
  ## Usage & Guidelines
42
41
 
@@ -526,8 +525,8 @@ const toggleAll = (checked: boolean) => {
526
525
  `right` stay physical.
527
526
  - `input-align` / `label-align` (`'top' | 'center' | 'bottom'`) are the
528
527
  vertical axis of a side-by-side row. Omitted, the box sits on the label's
529
- first line; `input-align="center"` puts it on the middle of a described
530
- label.
528
+ first line (the label column itself sits at the row's top);
529
+ `input-align="center"` puts it on the middle of a described label.
531
530
  - `hide-label` keeps the label for screen readers but hides it visually — only
532
531
  for dense composites where visible text lives elsewhere.
533
532
  - `compact` tightens the field's label spacing (`--bb-label-spacing-y-compact` instead of `--bb-label-spacing-y`), the same as on the groups — for dense forms and settings panels.
@@ -747,10 +746,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
747
746
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
748
747
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
749
748
  | `indeterminate` | `boolean \| undefined` | `false` | | Sets the input in an indeterminate state. |
750
- | `inputAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
749
+ | `inputAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
751
750
  | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
752
751
  | `label` | `string` | | yes | Text content of the label of the element. |
753
- | `labelAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
752
+ | `labelAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
754
753
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
755
754
  | `layout` | `Responsive<FieldLayout> \| undefined` | `'auto'` | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
756
755
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
@@ -820,7 +819,7 @@ States are listed in precedence order: when two are on at once and their entries
820
819
  - Listed nodes are the ones `BbCheckbox`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbCheckbox.tree.json` (a public component in it is a name: its own tree file has the rest).
821
820
 
822
821
  - `BbCheckbox` _(this component)_ — its own template binds: `icon` → `BbBaseCheckboxIcon`
823
- - `CommonField` _(internal — not importable, reach it through `BbCheckbox`)_ — `BbCheckbox`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
822
+ - `CommonField` _(internal — not importable, reach it through `BbCheckbox`)_ — `BbCheckbox`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
824
823
  - Also mounts `BbBaseCheckboxIcon`
825
824
 
826
825
  ## See Also
@@ -40,7 +40,6 @@
40
40
  | `--t` | `pt:icon` | `BbBaseCheckboxIcon` | State-change time: the fill fade and the check / dash drawing in. |
41
41
  | `--bg` | `pt:icon` | `BbBaseCheckboxIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
42
42
  | `--border-color` | `pt:icon` | `BbBaseCheckboxIcon` | Resting border colour of the glyph; re-pointed by error and warning states. |
43
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
44
43
  | `--list-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip behind the triggers |
45
44
  | `--list-border` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border |
46
45
  | `--p` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | strip inner padding — the gutter the indicator sits in, and the scroll inset |
@@ -62,8 +61,6 @@
62
61
  | `--indicator-inset` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge |
63
62
  | `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
64
63
  | `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
65
- | `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Each button's frame |
66
- | `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked button under the pointer |
67
64
 
68
65
  ## Usage & Guidelines
69
66
 
@@ -666,15 +663,17 @@ option shortens it, unticking a middle option splits it (the hole opens in
666
663
  place), a lone pick pops a new pill in, and a pill whose options are all
667
664
  unticked shrinks to its centre and fades. Two pills that come to touch stay
668
665
  two pills, drawn as one shape. `line` draws a bar under each pick across a baseline that spans the field;
669
- adjacent bars join. `outline` sets outline buttons side by side, each pick
670
- in the button's pressed state. The strip
671
- and its triggers measure exactly as BbTabs'.
666
+ adjacent bars join. `outline` is a set of outline BbButtons, each pick in
667
+ the button's pressed state, painted on that button (no indicator): it looks
668
+ and behaves exactly like a row of `BbButton variant="outline"` (`compact`
669
+ takes the button's `sm` size). The `pill` and `line` strips and their
670
+ triggers measure exactly as BbTabs'.
672
671
  It is still a checkbox group (native checkboxes, `max`, forms, validation);
673
672
  the box is hidden (an `icon` slot shows before the label) and the strip
674
673
  never wraps (it scrolls; `outline` buttons wrap onto further lines instead); `list-layout="vertical"` stacks it into a column
675
674
  (runs stack on the Y axis), `block` spans the field (the triggers share its
676
675
  width equally on a row), and the other layouts and `item-layout` do not
677
- apply. `pt:indicator` reaches every pill, bar or filled run, and
676
+ apply. `pt:indicator` reaches every pill or bar (`outline` has none), and
678
677
  `pt:<part>:pill` / `pt:<part>:line` / `pt:<part>:outline` style a part in one
679
678
  look only. The strip's tokens are its own, named and valued as a tab strip's. A
680
679
  strip has no `size`: it is `--bb-control-h` tall like a field (`compact` drops
@@ -700,6 +699,12 @@ is `pt:list="[--list-h:24px] [--fs:12px] [--p:2px]"`. A registered `components:
700
699
  legend="Notify by"
701
700
  variant="line"
702
701
  />
702
+ <BbCheckboxGroup
703
+ v-model="amenities"
704
+ :items="['Wi-Fi', 'Parking', 'Breakfast', 'Pet friendly', 'Pool']"
705
+ legend="Amenities"
706
+ variant="outline"
707
+ />
703
708
  </div>
704
709
  </template>
705
710
 
@@ -709,10 +714,12 @@ import { BbCheckboxGroup } from 'bitboss-ui';
709
714
 
710
715
  // BbTabs' looks on a multi-pick. `pill`: one pill per run of adjacent picks,
711
716
  // so Mon–Wed reads as one block; tick Thu and the pill grows, untick Tue and
712
- // it splits. `line`: a bar under each pick, adjacent bars join.
717
+ // it splits. `line`: a bar under each pick, adjacent bars join. `outline`: a
718
+ // set of outline buttons, each pick in the button's pressed state.
713
719
  const weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
714
720
  const days = ref(['Mon', 'Tue', 'Wed', 'Fri']);
715
721
  const channels = ref(['Email', 'Push']);
722
+ const amenities = ref(['Wi-Fi', 'Breakfast']);
716
723
  </script>
717
724
  ```
718
725
 
@@ -978,7 +985,7 @@ too.
978
985
  legend="Cadence"
979
986
  list-layout="horizontal"
980
987
  name="cadence"
981
- pt:item="flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2"
988
+ pt:item="min-w-fit flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2"
982
989
  pt:item:checked="border-(--bb-primary) bg-(--bb-muted)"
983
990
  />
984
991
  </div>
@@ -1104,7 +1111,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1104
1111
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
1105
1112
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1106
1113
  | `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
1107
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
1114
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1108
1115
  | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
1109
1116
  | `itemInputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line. |
1110
1117
  | `itemLabelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
@@ -1114,7 +1121,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1114
1121
  | `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
1115
1122
  | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
1116
1123
  | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
1117
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
1124
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1118
1125
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
1119
1126
  | `legend` | `string` | | yes | Text content of the legend. |
1120
1127
  | `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for option groups (checkbox, radio or switch) — there is no single field for the legend to float against. |
@@ -1240,22 +1247,14 @@ Set these on the element, or on a class you put on it, to retune this component
1240
1247
  | `--elev` | `.bb-checkbox-group__list--line` | `none` | |
1241
1248
  | `--list-bg` | `.bb-checkbox-group__list--outline` | `transparent` | |
1242
1249
  | `--list-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1243
- | `--list-h` | `.bb-checkbox-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | A button's height: BbButton `md` sits one step under the control height. |
1250
+ | `--list-h` | `.bb-checkbox-group__list--outline` | `auto` | |
1244
1251
  | `--p` | `.bb-checkbox-group__list--outline` | `0px` | |
1245
1252
  | `--trigger-gap` | `.bb-checkbox-group__list--outline` | `8px` | |
1246
- | `--trigger-r` | `.bb-checkbox-group__list--outline` | `var(--bb-radius)` | |
1253
+ | `--trigger-min-h` | `.bb-checkbox-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | BbButton md |
1247
1254
  | `--trigger-px` | `.bb-checkbox-group__list--outline` | `12px` | |
1248
- | `--list-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1249
- | `--hover-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1250
- | `--active-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1251
- | `--active-fw` | `.bb-checkbox-group__list--outline` | `500` | |
1252
- | `--indicator-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-pressed)` | |
1253
- | `--indicator-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1254
- | `--indicator-r` | `.bb-checkbox-group__list--outline` | `var(--trigger-r)` | |
1255
- | `--indicator-shadow` | `.bb-checkbox-group__list--outline` | `none` | |
1256
- | `--elev` | `.bb-checkbox-group__list--outline` | `none` | |
1257
- | `--divider` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-border)` | Each button's frame |
1258
- | `--hover-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-hover)` | An unpicked button under the pointer |
1255
+ | `--fs` | `.bb-checkbox-group__list--outline` | `var(--bb-fs)` | |
1256
+ | `--trigger-r` | `.bb-checkbox-group__list--outline` | `var(--bb-radius)` | |
1257
+ | `--elev` | `.bb-checkbox-group__list--outline` | `var(--bb-elev)` | |
1259
1258
 
1260
1259
  ## Component tree
1261
1260
 
@@ -1267,8 +1266,8 @@ Set these on the element, or on a class you put on it, to retune this component
1267
1266
  - Listed nodes are the ones `BbCheckboxGroup`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbCheckboxGroup.tree.json` (a public component in it is a name: its own tree file has the rest).
1268
1267
 
1269
1268
  - `BbCheckboxGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-checkbox-group__indicator`, `icon` → `BbBaseCheckboxIcon`
1270
- - `CommonField` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
1271
- - `OptionsContainer` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--list-h`, `--divider`, `--hover-bg`
1269
+ - `CommonField` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
1270
+ - `OptionsContainer` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--trigger-min-h`
1272
1271
  - Also mounts `BbBaseCheckboxIcon`
1273
1272
 
1274
1273
  ## See Also
@@ -33,7 +33,6 @@
33
33
 
34
34
  | Variable | Set through | Declared by | What it is |
35
35
  | --- | --- | --- | --- |
36
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
37
36
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
38
37
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
39
38
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -698,9 +697,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
698
697
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
699
698
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
700
699
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
701
- | `inputAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
700
+ | `inputAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
702
701
  | `label` | `string` | | yes | Text content of the label of the element. |
703
- | `labelAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
702
+ | `labelAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
704
703
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode: `outside` places the label above the input, `floating` overlays it on the field and shrinks it when a value is set, `inside` keeps it inside the field. |
705
704
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
706
705
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -812,7 +811,7 @@ Set these on the element, or on a class you put on it, to retune this component
812
811
  - Listed nodes are the ones `BbColorInput`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbColorInput.tree.json` (a public component in it is a name: its own tree file has the rest).
813
812
 
814
813
  - `BbColorInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-color-input__input`, `input` → `input.bb-color-input__input`, `indicator` → `button.bb-color-input__indicator`, `suffix` → `span.bb-field-input__suffix`; hands `BbColorPalette` the pt map `{ panel: 'panel', sheet: 'sheet', swatch: 'swatch' }` (ours → theirs)
815
- - `CommonField` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
814
+ - `CommonField` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
816
815
  - `CommonFieldInput` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
817
816
  - `BbColorPalette` _(public — [contract](./BbColorPalette.md))_ — its own pt parts (`BbColorPalette`): `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs); documented CSS variables: `--edge`; also mounts `BbIcon`, `CommonPopover`
818
817
  - `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
@@ -30,7 +30,6 @@
30
30
 
31
31
  | Variable | Set through | Declared by | What it is |
32
32
  | --- | --- | --- | --- |
33
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
34
33
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
35
34
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
36
35
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -1000,9 +999,9 @@ label>')` matches nothing; query each segment by its own label instead. See
1000
999
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
1001
1000
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1002
1001
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
1003
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
1002
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1004
1003
  | `label` | `string` | | yes | Text content of the label of the element. |
1005
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
1004
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1006
1005
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
1007
1006
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
1008
1007
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -1143,7 +1142,7 @@ Set these on the element, or on a class you put on it, to retune this component
1143
1142
  - `CommonTimeSelector` _(internal — not importable, reach it through `BbCalendar`)_ — its own pt parts (`BbCalendar`): `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`; also mounts `BbBaseButton`
1144
1143
  - `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
1145
1144
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
1146
- - `CommonField` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
1145
+ - `CommonField` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
1147
1146
  - `CommonFieldInput` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
1148
1147
  - Also mounts `BbIcon`
1149
1148
 
@@ -91,6 +91,7 @@ check` flags both (`missing-value`, `duplicate-row-label`) when the items are
91
91
  `components.BbDropdown.variants` plugin option registers more typed names, each
92
92
  rendering a `bb-dropdown__item--variant-<name>` class hook you style yourself.
93
93
  - `disabled` — non-interactive row, skipped by keyboard navigation.
94
+ - `hidden` — leaves the row out entirely (also on a group). See below.
94
95
 
95
96
  Nothing else on an item reaches the row. An attribute for it (a `data-*` test
96
97
  hook, an `aria-*`) goes through `pt:item`, per row with the function form:
@@ -204,6 +205,39 @@ const items: BbDropdownItem[] = [
204
205
  </script>
205
206
  ```
206
207
 
208
+ #### Rows a user may not see: `hidden`
209
+
210
+ Gate rows by permission or record state with one `hidden` expression per row,
211
+ instead of building the list with `push` or conditional spreads. A hidden row
212
+ is not rendered, not reachable by keyboard or search, and takes its submenu
213
+ with it. A group whose rows are all hidden disappears with its label and
214
+ divider, so a destructive last group never leaves a stray line. A value the
215
+ model holds for a hidden row stays in the model. A fetched row takes it
216
+ through `itemProps`.
217
+
218
+ ```ts
219
+ import type { BbDropdownItem } from 'bitboss-ui';
220
+
221
+ declare const can: (privilege: string) => boolean;
222
+ declare const isSigned: boolean;
223
+
224
+ const items: BbDropdownItem[] = [
225
+ { value: 'edit', label: 'Edit', hidden: !can('edit') || isSigned },
226
+ { value: 'share', label: 'Share', hidden: !can('share') },
227
+ {
228
+ group: true,
229
+ items: [
230
+ {
231
+ value: 'delete',
232
+ label: 'Delete',
233
+ variant: 'destructive',
234
+ hidden: !can('delete'),
235
+ },
236
+ ],
237
+ },
238
+ ];
239
+ ```
240
+
207
241
  ### Async actions and the loading flag
208
242
 
209
243
  Clicking a plain action closes the menu immediately and returns focus to the
@@ -2350,7 +2384,7 @@ it, and at the top level closes the sheet.
2350
2384
  | `padding` | `number \| undefined` | `10` | | Minimum empty space to keep from the edge of the page |
2351
2385
  | `placement` | `'start'` \| `'end'` \| `'top'` \| `'bottom'` \| `'left'` \| `'right'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` \| `'start-start'` \| `'start-end'` \| `'end-start'` \| `'end-end'` \| `'cursor'` | `"bottom"` | | Position of the dropdown relative to the activator. Use `'cursor'` to anchor at the mouse/touch coordinates. (No arrow is drawn either way — arrows are tooltip-only in v3.) |
2352
2386
  | `queryDebounceTime` | `number \| undefined` | `300` | | Debounce (ms) applied to the async re-fetch a `searchable` group fires as the user types. Applies to every searchable group in the menu. |
2353
- | `transitionDuration` | `number \| undefined` | `150` | | The open / close transition in milliseconds. Menus take the fast one (150), not the popovers' medium 250: a menu is opened to pick one command and gone again, so it answers faster than a panel you read or edit in. |
2387
+ | `transitionDuration` | `number \| undefined` | `150` | | 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. |
2354
2388
  | `trigger` | `DropdownTrigger \| DropdownTrigger[] \| undefined` | `"click"` | | Interaction(s) that open the dropdown. Accepts a single trigger or an array to combine them. - `'click'` — left-click / tap (default) - `'contextMenu'` — right-click on desktop, long-press on mobile |
2355
2389
  | `width` | `string \| number \| undefined` | `"auto"` | | Width of the dropdown in pixels, percentage, or 'auto' to fit content. |
2356
2390
 
@@ -55,8 +55,9 @@ right: every entry is a row, with `BbDropdown`'s item model, so submenus,
55
55
  links, descriptions and groups all work there.
56
56
 
57
57
  A computed `items` list that comes down to nothing can stay on this
58
- component: with no items and no `#dropdown` slot there is no menu, so the chevron
59
- goes and the control renders exactly like a `BbButton`.
58
+ component: with no items (or only `hidden` ones) and no `#dropdown` slot there
59
+ is no menu, so the chevron goes and the control renders exactly like a
60
+ `BbButton`.
60
61
 
61
62
  **Save / Save as draft**
62
63
 
@@ -697,7 +698,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
697
698
  | `text` | `string \| undefined` | | | Text content of the component. |
698
699
  | `to` | `string \| et \| X \| undefined` | | | Route Location the link should navigate to when clicked on. |
699
700
  | `toggle:icon` | `string \| undefined` | | | Replaces the chevron shown inside the dropdown toggle button. A constrained alternative to a slot: only the toggle's icon changes, so the button keeps its semantics. Named after the part it sits in (the `toggle`), the way `prepend:icon` / `append:icon` name theirs. |
700
- | `transitionDuration` | `number \| undefined` | `150` | | The open / close transition in milliseconds. Menus take the fast one (150), not the popovers' medium 250: a menu is opened to pick one command and gone again, so it answers faster than a panel you read or edit in. |
701
+ | `transitionDuration` | `number \| undefined` | `150` | | 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. |
701
702
  | `type` | `"button" \| "reset" \| "submit" \| undefined` | | | Gets the classification and default behavior of the button. |
702
703
  | `variant` | `'outline'` \| `'primary'` \| `'destructive'` \| `'secondary'` \| `'none'` \| `'ghost'` \| `'link'` | ``components.BbButton.variant`, else `'primary'`` | | Visual variant shared by both buttons of the split control. `'none'` takes no look (you own hover, focus and disabled); register a real one with the plugin's `components.BbButton.variants` and style `.bb-button--<name>`. Unset: `BbButton`'s `components` entry (the app's or a config scope's). |
703
704
  | `viewTransition` | `boolean \| undefined` | `false` | | Inertia: run the page swap inside a View Transition, where the browser supports one. |
@@ -31,7 +31,6 @@
31
31
 
32
32
  | Variable | Set through | Declared by | What it is |
33
33
  | --- | --- | --- | --- |
34
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
35
34
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
36
35
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
37
36
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -882,9 +881,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
882
881
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
883
882
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
884
883
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
885
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
884
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
886
885
  | `label` | `string` | | yes | Text content of the label of the element. |
887
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
886
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
888
887
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
889
888
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
890
889
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -990,7 +989,7 @@ Set these on the element, or on a class you put on it, to retune this component
990
989
  - Listed nodes are the ones `BbNumberInput`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbNumberInput.tree.json` (a public component in it is a name: its own tree file has the rest).
991
990
 
992
991
  - `BbNumberInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-number-input__input`, `input` → `input.bb-number-input__input`, `controlAttrs` → `input`
993
- - `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
992
+ - `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
994
993
  - `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
995
994
 
996
995
  ## See Also
@@ -32,7 +32,6 @@
32
32
  | `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
33
33
  | `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
34
34
  | `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
35
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
36
35
 
37
36
  ## Usage & Guidelines
38
37
 
@@ -318,8 +317,8 @@ ring itself.
318
317
  physical.
319
318
  - `input-align` / `label-align` (`'top' | 'center' | 'bottom'`) are the
320
319
  vertical axis of a side-by-side row. Omitted, the button sits on the
321
- label's first line; `input-align="center"` puts it on the middle of a
322
- described label.
320
+ label's first line (the label column itself sits at the row's top);
321
+ `input-align="center"` puts it on the middle of a described label.
323
322
  - `hide-label` keeps the label for screen readers but hides it visually.
324
323
  - **`reverse`** swaps the label in front of the button. It is an ordinary
325
324
  opt-in boolean: unset and `:reverse="false"` both put the button first,
@@ -538,10 +537,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
538
537
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. |
539
538
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
540
539
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
541
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
540
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
542
541
  | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
543
542
  | `label` | `string` | | yes | Text content of the label of the element. |
544
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
543
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
545
544
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
546
545
  | `layout` | `Responsive<FieldLayout> \| undefined` | `'auto'` | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
547
546
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
@@ -606,7 +605,7 @@ States are listed in precedence order: when two are on at once and their entries
606
605
  - Listed nodes are the ones `BbRadio`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbRadio.tree.json` (a public component in it is a name: its own tree file has the rest).
607
606
 
608
607
  - `BbRadio` _(this component)_ — its own template binds: `icon` → `BbBaseRadioIcon`
609
- - `CommonField` _(internal — not importable, reach it through `BbRadio`)_ — `BbRadio`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
608
+ - `CommonField` _(internal — not importable, reach it through `BbRadio`)_ — `BbRadio`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
610
609
  - Also mounts `BbBaseRadioIcon`
611
610
 
612
611
  ## See Also
@@ -36,7 +36,6 @@
36
36
  | `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
37
37
  | `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
38
38
  | `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
39
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
40
39
  | `--list-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip behind the triggers |
41
40
  | `--list-border` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border |
42
41
  | `--p` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | strip inner padding — the gutter the indicator sits in, and the scroll inset |
@@ -58,8 +57,6 @@
58
57
  | `--indicator-inset` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge |
59
58
  | `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
60
59
  | `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
61
- | `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Each button's frame |
62
- | `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked button under the pointer |
63
60
 
64
61
  ## Usage & Guidelines
65
62
 
@@ -360,16 +357,18 @@ value a form or a filter submits (a status filter, a period) is still a
360
357
  radiogroup (arrow keys, "2 of 4"), so give the group a tab strip's look:
361
358
  `variant="pill"` (a muted strip, a raised pill under the pick),
362
359
  `variant="line"` (a baseline across the field, a bar under the pick) or
363
- `variant="outline"` (outline buttons side by side, the pick in the button's
364
- pressed state). The
365
- strip, its triggers and the indicator measure exactly as BbTabs', and the
366
- indicator slides as a tab strip's does. The dot is hidden (an `icon` slot
360
+ `variant="outline"` (a set of outline BbButtons, the pick in the button's
361
+ pressed state). On `pill` and `line` the strip, its triggers and the
362
+ indicator measure exactly as BbTabs', and the indicator slides as a tab
363
+ strip's does; `outline` has no indicator, each button paints its own pick,
364
+ so it looks and behaves exactly like a row of `BbButton variant="outline"`
365
+ (`compact` takes the button's `sm` size). The dot is hidden (an `icon` slot
367
366
  shows before the label, like a tab's icon) and the strip never wraps (it
368
367
  scrolls; `outline` buttons wrap onto further lines instead); `list-layout="vertical"` stacks it into a column (the indicator
369
368
  slides on the Y axis), `block` spans the field (the triggers share its width
370
369
  equally on a row, by content on `outline`), and the other layouts and `item-layout` do not apply. The legend, errors, `compact` and
371
370
  `hide-legend` work as on any group. `pt:indicator` reaches the pill or the
372
- bar (the pressed fill on `outline`), and `pt:<part>:pill` /
371
+ bar (`outline` has none), and `pt:<part>:pill` /
373
372
  `pt:<part>:line` / `pt:<part>:outline` style a part in one look only.
374
373
 
375
374
  **Pick a value with a strip look**
@@ -408,8 +407,9 @@ import { BbRadioGroup } from 'bitboss-ui';
408
407
 
409
408
  // Three strip looks on a value picker: `pill` (a muted strip, a raised pill
410
409
  // under the pick), `line` (a baseline across the field, a bar under the pick)
411
- // and `outline` (outline buttons, the pick filled; `block` spans the field in
412
- // equal shares). The indicator slides like a tab strip's, and it is still a
410
+ // and `outline` (outline buttons, the pick in the pressed state; `block`
411
+ // spans the field). On pill and line the indicator slides like a tab strip's;
412
+ // outline buttons paint their own pick. It is still a
413
413
  // radiogroup: arrow keys move and pick, a form submits the value.
414
414
  const statuses = ['All', 'Open', 'Closed', 'Archived'];
415
415
  const status = ref('Open');
@@ -838,7 +838,7 @@ layered build, `pt:list="[--gap:8px]"` tightens them anywhere.
838
838
  list-layout="horizontal"
839
839
  name="plan"
840
840
  :pt="{
841
- item: 'flex flex-1 flex-col items-start gap-0.5 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2',
841
+ item: 'min-w-28 flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2',
842
842
  }"
843
843
  :pt:item="
844
844
  ({ item }) => item.tier === 'paid' && 'border-amber-300 bg-amber-50'
@@ -847,8 +847,10 @@ layered build, `pt:list="[--gap:8px]"` tightens them anywhere.
847
847
  pt:list="[--gap:8px]"
848
848
  >
849
849
  <template #label="{ item, text }">
850
- <span class="text-sm font-medium">{{ text }}</span>
851
- <span class="text-xs text-(--bb-text-muted)">{{ item.price }}</span>
850
+ <span class="flex flex-col gap-0.5">
851
+ <span class="text-sm font-medium">{{ text }}</span>
852
+ <span class="text-xs text-(--bb-text-muted)">{{ item.price }}</span>
853
+ </span>
852
854
  </template>
853
855
  </BbRadioGroup>
854
856
  </div>
@@ -1018,7 +1020,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1018
1020
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
1019
1021
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1020
1022
  | `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
1021
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
1023
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1022
1024
  | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
1023
1025
  | `itemInputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line. |
1024
1026
  | `itemLabelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
@@ -1028,7 +1030,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1028
1030
  | `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
1029
1031
  | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
1030
1032
  | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
1031
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
1033
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1032
1034
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
1033
1035
  | `legend` | `string` | | yes | Text content of the legend. |
1034
1036
  | `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for radio groups. |
@@ -1153,22 +1155,14 @@ Set these on the element, or on a class you put on it, to retune this component
1153
1155
  | `--elev` | `.bb-radio-group__list--line` | `none` | |
1154
1156
  | `--list-bg` | `.bb-radio-group__list--outline` | `transparent` | |
1155
1157
  | `--list-border` | `.bb-radio-group__list--outline` | `transparent` | |
1156
- | `--list-h` | `.bb-radio-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | A button's height: BbButton `md` sits one step under the control height. |
1158
+ | `--list-h` | `.bb-radio-group__list--outline` | `auto` | |
1157
1159
  | `--p` | `.bb-radio-group__list--outline` | `0px` | |
1158
1160
  | `--trigger-gap` | `.bb-radio-group__list--outline` | `8px` | |
1159
- | `--trigger-r` | `.bb-radio-group__list--outline` | `var(--bb-radius)` | |
1161
+ | `--trigger-min-h` | `.bb-radio-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | BbButton md |
1160
1162
  | `--trigger-px` | `.bb-radio-group__list--outline` | `12px` | |
1161
- | `--list-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
1162
- | `--hover-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
1163
- | `--active-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
1164
- | `--active-fw` | `.bb-radio-group__list--outline` | `500` | |
1165
- | `--indicator-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-pressed)` | |
1166
- | `--indicator-border` | `.bb-radio-group__list--outline` | `transparent` | |
1167
- | `--indicator-r` | `.bb-radio-group__list--outline` | `var(--trigger-r)` | |
1168
- | `--indicator-shadow` | `.bb-radio-group__list--outline` | `none` | |
1169
- | `--elev` | `.bb-radio-group__list--outline` | `none` | |
1170
- | `--divider` | `.bb-radio-group__list--outline` | `var(--bb-outline-border)` | Each button's frame |
1171
- | `--hover-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-hover)` | An unpicked button under the pointer |
1163
+ | `--fs` | `.bb-radio-group__list--outline` | `var(--bb-fs)` | |
1164
+ | `--trigger-r` | `.bb-radio-group__list--outline` | `var(--bb-radius)` | |
1165
+ | `--elev` | `.bb-radio-group__list--outline` | `var(--bb-elev)` | |
1172
1166
 
1173
1167
  ## Component tree
1174
1168
 
@@ -1180,8 +1174,8 @@ Set these on the element, or on a class you put on it, to retune this component
1180
1174
  - Listed nodes are the ones `BbRadioGroup`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbRadioGroup.tree.json` (a public component in it is a name: its own tree file has the rest).
1181
1175
 
1182
1176
  - `BbRadioGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-radio-group__indicator`, `icon` → `BbBaseRadioIcon`
1183
- - `CommonField` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
1184
- - `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--list-h`, `--divider`, `--hover-bg`
1177
+ - `CommonField` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
1178
+ - `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--trigger-min-h`
1185
1179
  - Also mounts `BbBaseRadioIcon`
1186
1180
 
1187
1181
  ## See Also