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
@@ -21,12 +21,6 @@
21
21
  | `pt:counter` | `span.bb-field__counter` | `CommonField` _(internal)_ |
22
22
  | `pt:message` | `div.bb-field__message` | `CommonField` _(internal)_ |
23
23
 
24
- **CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbRating`'s root:
25
-
26
- | Variable | Set through | Declared by | What it is |
27
- | --- | --- | --- | --- |
28
- | `--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. |
29
-
30
24
  ## Usage & Guidelines
31
25
 
32
26
  ### When to use
@@ -492,9 +486,9 @@ renders SSR-safe markup in Nuxt and Inertia apps.
492
486
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
493
487
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
494
488
  | `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
495
- | `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. |
489
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
496
490
  | `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. |
497
- | `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. |
491
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
498
492
  | `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' }`). |
499
493
  | `legend` | `string` | | yes | Text content of the legend. |
500
494
  | `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 rating groups. |
@@ -582,7 +576,7 @@ Set these on the element, or on a class you put on it, to retune this component
582
576
  - Listed nodes are the ones `BbRating`'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/BbRating.tree.json` (a public component in it is a name: its own tree file has the rest).
583
577
 
584
578
  - `BbRating` _(this component)_ — its own template binds: `item` → `label.bb-rating__item`
585
- - `CommonField` _(internal — not importable, reach it through `BbRating`)_ — `BbRating`'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`
579
+ - `CommonField` _(internal — not importable, reach it through `BbRating`)_ — `BbRating`'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`
586
580
  - Also mounts `BbIcon`
587
581
 
588
582
  ## See Also
@@ -44,7 +44,6 @@
44
44
 
45
45
  | Variable | Set through | Declared by | What it is |
46
46
  | --- | --- | --- | --- |
47
- | `--ctrl-line` | `pt:badge`, `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. |
48
47
  | `--bg` | `pt:badge` | `BbBadge` | pill fill |
49
48
  | `--fg` | `pt:badge` | `BbBadge` | label, icons and the clear glyph |
50
49
  | `--bw` | `pt:badge` | `BbBadge` | Pill border. The `border` shorthand is always present, so the width is what turns it on — the filled variants leave it at 0 and the bordered ones (secondary/destructive/outline) step up to `--bb-border-w-sm`. Nothing compensates for it: the stroke sits between the label and the pill edge. |
@@ -2434,15 +2433,15 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
2434
2433
  | `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. |
2435
2434
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
2436
2435
  | `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. |
2437
- | `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. |
2436
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
2438
2437
  | `itemHeight` | `number \| undefined` | `28` | | Height of the options in the listbox (px). Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
2439
- | `itemProps` | `BbSelectItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips. |
2438
+ | `itemProps` | `BbSelectItemProps \| undefined` | | | ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips. |
2440
2439
  | `items` | `T[] \| ((context: BbSelectItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`), sync or async. Branch on `reason !== 'search'` to resolve the selection by id. A provider fails by THROWING, never by returning `[]`. |
2441
- | `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). |
2442
- | `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`. |
2440
+ | `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). |
2441
+ | `itemValue` | `ItemAccessor \| 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`. |
2443
2442
  | `knownItems` | `([Known] extends [undefined] ? BbSelectKnownItems : Known) \| undefined` | | | `{ value, label }` rows naming the value the app already holds, whatever the options' shape: no request until the first open (`prefill: true` still loads). Not options; the options' accessors never run on them; slots get the row as `item`, with `known: true`, until the list brings its own. |
2444
2443
  | `label` | `string` | | yes | Text content of the label of the element. |
2445
- | `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. |
2444
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
2446
2445
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
2447
2446
  | `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. |
2448
2447
  | `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' }`). |
@@ -2452,7 +2451,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
2452
2451
  | `maxSelectedLabels` | `number \| undefined` | `Infinity` | | Maximum number of labels shown before collapsing to a count summary. Unset, the labels collapse only when they overflow the field. |
2453
2452
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
2454
2453
  | `modelValueDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to modelValue. |
2455
- | `multiple` | `boolean \| undefined` | `false` | | Allows the selection of multiple items. |
2454
+ | `multiple` | `boolean \| undefined` | | | Allows the selection of multiple items. |
2456
2455
  | `name` | `string \| undefined` | | | Defines the name of the input. |
2457
2456
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). |
2458
2457
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
@@ -2541,15 +2540,15 @@ States are listed in precedence order: when two are on at once and their entries
2541
2540
 
2542
2541
  - `append` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content appended inside the input field, after the value area.
2543
2542
  - `append:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content appended outside the input field wrapper.
2544
- - `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Replaces the default badge rendered for each selection in `multiple` mode. Not called in `comma` mode, nor for the collapsed "+N" summary. With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
2543
+ - `chip` — scope: `BbSelectChipSlotProps` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Replaces the default badge rendered for each selection in `multiple` mode. Not called in `comma` mode, nor for the collapsed "+N" summary. With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
2545
2544
  - `description` — scope: `BbSelectDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
2546
2545
  - `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; error: unknown; }` — Content shown when no options match the query or the list is empty. `error` is what the latest failed load threw, untouched (`null` when none). `close()` closes the panel, for an action that does not move focus out of it.
2547
2546
  - `footer` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the bottom of the options panel, below the options list. Rendered in both the desktop popover and the adaptive sheet.
2548
- - `group` — scope: `BbSelectGroupSlotProps<T>` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
2547
+ - `group` — scope: `BbSelectGroupSlotProps` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
2549
2548
  - `header` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the top of the options panel, above the search field. Rendered in both the desktop popover and the adaptive sheet.
2550
2549
  - `label` — scope: `BbSelectLabelSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default label text rendered above the input.
2551
2550
  - `loading` — scope: `{ query: string; }` — Content shown inside the options dropdown while items are loading.
2552
- - `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Replaces the default rendering of each option row in the dropdown. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row, `known: true`: check `known` before reading an option field off `item`.
2551
+ - `option` — scope: `BbSelectOptionSlotProps` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Replaces the default rendering of each option row in the dropdown. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row, `known: true`: check `known` before reading an option field off `item`.
2553
2552
  - `prefix` — scope: `object` — Content rendered as an inline prefix inside the input field.
2554
2553
  - `prepend` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content prepended inside the input field, before the value area.
2555
2554
  - `prepend:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content prepended outside the input field wrapper.
@@ -2575,7 +2574,7 @@ Set these on the element, or on a class you put on it, to retune this component
2575
2574
  - Listed nodes are the ones `BbSelect`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbSelect.tree.json` (a public component in it is a name: its own tree file has the rest).
2576
2575
 
2577
2576
  - `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs)
2578
- - `CommonField` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
2577
+ - `CommonField` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
2579
2578
  - `CommonFieldInput` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
2580
2579
  - `BbBadge` _(public — [contract](./BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
2581
2580
  - `BbSelectPopover` _(public — [contract](./BbSelectPopover.md))_ — its own pt parts (`BbSelectPopover`): `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbBadge`, `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
@@ -21,12 +21,6 @@
21
21
  | `pt:counter` | `span.bb-field__counter` | `CommonField` _(internal)_ |
22
22
  | `pt:message` | `div.bb-field__message` | `CommonField` _(internal)_ |
23
23
 
24
- **CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbSlider`'s root:
25
-
26
- | Variable | Set through | Declared by | What it is |
27
- | --- | --- | --- | --- |
28
- | `--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. |
29
-
30
24
  ## Usage & Guidelines
31
25
 
32
26
  ### When to use
@@ -827,10 +821,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
827
821
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. |
828
822
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
829
823
  | `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. |
830
- | `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. |
824
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
831
825
  | `items` | `readonly (string \| number \| { readonly value: string \| number; readonly label?: string \| undefined; })[] \| undefined` | | | Named stops instead of a numeric scale, spaced evenly in list order: strings, numbers or `{ value, label }`. `v-model` holds the `value`; `label` is announced and passed to the slots. Replaces `min` / `max` / `step` (setting them too throws). |
832
826
  | `label` | `string` | | yes | Text content of the label of the element. |
833
- | `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. |
827
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
834
828
  | `labelMode` | `"outside" \| "inside" \| undefined` | | | Label rendering mode. Sliders do not support `floating` labels. |
835
829
  | `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. |
836
830
  | `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' }`). |
@@ -942,7 +936,7 @@ Set these on the element, or on a class you put on it, to retune this component
942
936
  - Listed nodes are the ones `BbSlider`'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/BbSlider.tree.json` (a public component in it is a name: its own tree file has the rest).
943
937
 
944
938
  - `BbSlider` _(this component)_ — its own template binds: `box` → `span.bb-slider__box`, `ticks` → `span.bb-slider__ticks`, `tick` → `span.bb-slider__tick`, `track` → `span.bb-slider__track`, `bar` → `span`, `thumb` → `span.bb-slider__thumb`
945
- - `CommonField` _(internal — not importable, reach it through `BbSlider`)_ — `BbSlider`'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`
939
+ - `CommonField` _(internal — not importable, reach it through `BbSlider`)_ — `BbSlider`'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`
946
940
 
947
941
  ## See Also
948
942
 
@@ -40,7 +40,6 @@
40
40
  | `--thumb` | `pt:icon` | `BbBaseSwitchIcon` | Capped by the track's inner height, so a thick-hairline theme shrinks the thumb instead of overflowing it. Unclamped, a 6px plate hairline leaves a 12px inner track carrying a 16px thumb; `--inset` then goes negative and the thumb paints over its own border. `16px` at every hairline the library ships, so no shipped pixel moves. Do NOT floor `--inset` at 0 instead: that keeps the oversized thumb and pushes it out of the bottom of the track (measured +1px protrusion at a 6px hairline), and it uncancels `--bw` from `--travel`, which is a constant 14px by construction. |
41
41
  | `--inset` | `pt:icon` | `BbBaseSwitchIcon` | Equal gap around the thumb — centres it vertically by construction, and is reused as the resting left/right inset. |
42
42
  | `--travel` | `pt:icon` | `BbBaseSwitchIcon` | How far the thumb slides between off and on (inset ↔ inset). |
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
 
45
44
  ## Usage & Guidelines
46
45
 
@@ -416,8 +415,9 @@ const usageAnalytics = ref(true);
416
415
  the two parts within their tracks. `start` (the default) and `end` follow
417
416
  the page direction; `left` and `right` stay physical.
418
417
  - `label-align` / `input-align` (`top | center | bottom`) are the vertical
419
- axis: where each column sits in a side-by-side row. Omitted by default, so
420
- the label's first line meets the switch; `input-align="center"` is the
418
+ axis: where each column sits in a side-by-side row. Omitted, the label
419
+ column sits at the top of the row and the switch centres on the label's
420
+ first line; `input-align="center"` is the
421
421
  described settings row, the switch on the middle of the label and its
422
422
  description. `label-position` / `input-position` stay the horizontal axis.
423
423
  - `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.
@@ -765,10 +765,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
765
765
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
766
766
  | `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. |
767
767
  | `indeterminate` | `boolean \| undefined` | `false` | | Sets the input in an indeterminate state. |
768
- | `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. |
768
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
769
769
  | `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. |
770
770
  | `label` | `string` | | yes | Text content of the label of the element. |
771
- | `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. |
771
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
772
772
  | `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. |
773
773
  | `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' }`). |
774
774
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
@@ -838,7 +838,7 @@ States are listed in precedence order: when two are on at once and their entries
838
838
  - Listed nodes are the ones `BbSwitch`'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/BbSwitch.tree.json` (a public component in it is a name: its own tree file has the rest).
839
839
 
840
840
  - `BbSwitch` _(this component)_ — its own template binds: `icon` → `BbBaseSwitchIcon`
841
- - `CommonField` _(internal — not importable, reach it through `BbSwitch`)_ — `BbSwitch`'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`
841
+ - `CommonField` _(internal — not importable, reach it through `BbSwitch`)_ — `BbSwitch`'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`
842
842
  - Also mounts `BbBaseSwitchIcon`
843
843
 
844
844
  ## See Also
@@ -44,7 +44,6 @@
44
44
  | `--thumb` | `pt:icon` | `BbBaseSwitchIcon` | Capped by the track's inner height, so a thick-hairline theme shrinks the thumb instead of overflowing it. Unclamped, a 6px plate hairline leaves a 12px inner track carrying a 16px thumb; `--inset` then goes negative and the thumb paints over its own border. `16px` at every hairline the library ships, so no shipped pixel moves. Do NOT floor `--inset` at 0 instead: that keeps the oversized thumb and pushes it out of the bottom of the track (measured +1px protrusion at a 6px hairline), and it uncancels `--bw` from `--travel`, which is a constant 14px by construction. |
45
45
  | `--inset` | `pt:icon` | `BbBaseSwitchIcon` | Equal gap around the thumb — centres it vertically by construction, and is reused as the resting left/right inset. |
46
46
  | `--travel` | `pt:icon` | `BbBaseSwitchIcon` | How far the thumb slides between off and on (inset ↔ inset). |
47
- | `--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. |
48
47
  | `--list-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip behind the triggers |
49
48
  | `--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 |
50
49
  | `--p` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | strip inner padding — the gutter the indicator sits in, and the scroll inset |
@@ -66,8 +65,6 @@
66
65
  | `--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 |
67
66
  | `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
68
67
  | `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
69
- | `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Each button's frame |
70
- | `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked button under the pointer |
71
68
 
72
69
  ## Usage & Guidelines
73
70
 
@@ -793,7 +790,7 @@ for a preset that fits any row type (never `<any>`), not an imported
793
790
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
794
791
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
795
792
  | `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
796
- | `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. |
793
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
797
794
  | `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. |
798
795
  | `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. |
799
796
  | `itemLabelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
@@ -803,7 +800,7 @@ for a preset that fits any row type (never `<any>`), not an imported
803
800
  | `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`. |
804
801
  | `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). |
805
802
  | `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`. |
806
- | `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. |
803
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
807
804
  | `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' }`). |
808
805
  | `legend` | `string` | | yes | Text content of the legend. |
809
806
  | `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. |
@@ -900,8 +897,8 @@ Set these on the element, or on a class you put on it, to retune this component
900
897
  - Listed nodes are the ones `BbSwitchGroup`'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/BbSwitchGroup.tree.json` (a public component in it is a name: its own tree file has the rest).
901
898
 
902
899
  - `BbSwitchGroup` _(this component)_ — its own template binds: `icon` → `BbBaseSwitchIcon`
903
- - `CommonField` _(internal — not importable, reach it through `BbSwitchGroup`)_ — `BbSwitchGroup`'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`
904
- - `OptionsContainer` _(internal — not importable, reach it through `BbSwitchGroup`)_ — `BbSwitchGroup`'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`
900
+ - `CommonField` _(internal — not importable, reach it through `BbSwitchGroup`)_ — `BbSwitchGroup`'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`
901
+ - `OptionsContainer` _(internal — not importable, reach it through `BbSwitchGroup`)_ — `BbSwitchGroup`'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`
905
902
  - Also mounts `BbBaseSwitchIcon`
906
903
 
907
904
  ## See Also
package/dist/ai/BbTag.md CHANGED
@@ -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 |
@@ -511,9 +510,9 @@ only sets the label's text alignment.
511
510
  | `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. |
512
511
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
513
512
  | `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. |
514
- | `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. |
513
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
515
514
  | `label` | `string` | | yes | Text content of the label of the element. |
516
- | `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. |
515
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
517
516
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Where the label sits relative to the field: `outside` above it, `inside` within the control, or `floating` (starts inside, lifts on focus/value). Defaults to `all.labelMode`, like the other inputs. |
518
517
  | `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. |
519
518
  | `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' }`). |
@@ -620,7 +619,7 @@ Set these on the element, or on a class you put on it, to retune this component
620
619
  - Listed nodes are the ones `BbTag`'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/BbTag.tree.json` (a public component in it is a name: its own tree file has the rest).
621
620
 
622
621
  - `BbTag` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-tag__input`, `input` → `input.bb-tag__input`
623
- - `CommonField` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
622
+ - `CommonField` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
624
623
  - `CommonFieldInput` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
625
624
  - `ChipsBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `badge` → `BbBadge`
626
625
  - `BbBadge` _(public — [contract](./BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
@@ -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 |
@@ -674,13 +673,14 @@ and three digits), and the chrome plus two characters for `BbSelect`
674
673
  70px postal code is 70px). Size the field for the layout you want; set
675
674
  `--min-w` on it to change the floor (`--min-w: 0px` removes it).
676
675
 
677
- Side by side, the label's **first line** sits on the field's text line, and
678
- the field stays at the top of the row: a description under the label, or a
679
- label that wraps, never pulls the field down to the middle of the label
680
- column. Every form control follows the same rule (a toggle lines up with its
681
- glyph, a group with its first option, a textarea with its first row), so a
682
- column of mixed fields reads as one line per field. No `pt:label` padding is
683
- needed for it.
676
+ Side by side, the label aligns to the **top**: its top meets the field's top,
677
+ and the field stays at the top of the row — a description under the label, or
678
+ a label that wraps, never pulls the field down to the middle of the label
679
+ column. Every form control follows the same column rule, so a column of
680
+ mixed fields lines up; inside its own column, a toggle's glyph (and a group
681
+ row's) still centres on its label's first line. `label-align="center"`
682
+ centres the label on a taller field instead. No `pt:label` padding is
683
+ needed for any of it.
684
684
 
685
685
  **Horizontal row via layout (outside label)**
686
686
 
@@ -1307,10 +1307,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1307
1307
  | `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. |
1308
1308
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1309
1309
  | `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. |
1310
- | `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. |
1310
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1311
1311
  | `inputMode` | `"text" \| "search" \| "none" \| "tel" \| "url" \| "email" \| "numeric" \| "decimal" \| undefined` | | | The inputmode of the input. |
1312
1312
  | `label` | `string` | | yes | Text content of the label of the element. |
1313
- | `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. |
1313
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1314
1314
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
1315
1315
  | `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. |
1316
1316
  | `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' }`). |
@@ -1414,7 +1414,7 @@ Set these on the element, or on a class you put on it, to retune this component
1414
1414
  - Listed nodes are the ones `BbTextInput`'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/BbTextInput.tree.json` (a public component in it is a name: its own tree file has the rest).
1415
1415
 
1416
1416
  - `BbTextInput` _(this component)_ — its own template binds: `input` → `input.bb-text-input__input`, `controlAttrs` → `input.bb-text-input__input`
1417
- - `CommonField` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
1417
+ - `CommonField` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
1418
1418
  - `CommonFieldInput` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
1419
1419
 
1420
1420
  ## See Also
@@ -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 |
@@ -777,9 +776,10 @@ const changelog = ref<string | null>(
777
776
  ```
778
777
 
779
778
  - `label-align` / `input-align` (`top | center | bottom`) set where each
780
- column sits vertically in a side-by-side row. Omitted, the label's first
781
- line meets the textarea's first row. With a fixed `rows` the textarea is
782
- the tall column, so `label-align="center"` puts the label, description
779
+ column sits vertically in a side-by-side row. Omitted, both sit at the
780
+ top: the label's top meets the textarea's top. With a fixed `rows` the
781
+ textarea is the tall column, so `label-align="center"` puts the label,
782
+ description
783
783
  included, on its middle; `input-align` would not move it. Not
784
784
  `label-position`, which aligns the label text horizontally.
785
785
 
@@ -790,7 +790,7 @@ const changelog = ref<string | null>(
790
790
  <div class="grid max-w-md gap-3 rounded-(--bb-radius) border p-4">
791
791
  <!-- A fixed `rows` makes the textarea the tall column: `label-align`
792
792
  moves the short one, so the label (and its description) sits on the
793
- textarea's middle instead of its first line. -->
793
+ textarea's middle instead of its top. -->
794
794
  <BbTextarea
795
795
  v-model="notes"
796
796
  description="Visible to your team only."
@@ -1044,9 +1044,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1044
1044
  | `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. |
1045
1045
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1046
1046
  | `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. |
1047
- | `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. |
1047
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1048
1048
  | `label` | `string` | | yes | Text content of the label of the element. |
1049
- | `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. |
1049
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1050
1050
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. `'outside'` (default) sits the label above/beside the field; `'floating'`/`'inside'` overlay it, like the other text inputs. |
1051
1051
  | `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. |
1052
1052
  | `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' }`). |
@@ -1152,7 +1152,7 @@ Set these on the element, or on a class you put on it, to retune this component
1152
1152
  - Listed nodes are the ones `BbTextarea`'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/BbTextarea.tree.json` (a public component in it is a name: its own tree file has the rest).
1153
1153
 
1154
1154
  - `BbTextarea` _(this component)_ — its own template binds: `controlAttrs` → `textarea.bb-textarea__input`, `input` → `textarea.bb-textarea__input`
1155
- - `CommonField` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
1155
+ - `CommonField` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
1156
1156
  - `CommonFieldInput` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
1157
1157
  - Also mounts `BbSmoothHeight`
1158
1158
 
@@ -36,7 +36,6 @@
36
36
 
37
37
  | Variable | Set through | Declared by | What it is |
38
38
  | --- | --- | --- | --- |
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
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
41
40
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
42
41
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -319,9 +318,9 @@ Messages _also_ render in an `aria-live="polite"` region.
319
318
  | `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. |
320
319
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
321
320
  | `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. |
322
- | `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. |
321
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
323
322
  | `label` | `string` | | yes | Text content of the label of the element. |
324
- | `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. |
323
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
325
324
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
326
325
  | `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. |
327
326
  | `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' }`). |
@@ -432,7 +431,7 @@ Set these on the element, or on a class you put on it, to retune this component
432
431
  - `BbTimePickerInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-segmented-field__input`, `input` → `input.bb-segmented-field__input`, `activator` → `button.bb-segmented-field__activator`, `suffix` → `span.bb-field-input__suffix`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
433
432
  - `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`
434
433
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
435
- - `CommonField` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
434
+ - `CommonField` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
436
435
  - `CommonFieldInput` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
437
436
  - `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
438
437
  - `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
@@ -496,15 +496,17 @@ const files: SharedFile[] = [
496
496
 
497
497
  `pt` reaches a named part of the tooltip with a class list — or, in the
498
498
  object form, a style and attributes — optionally only while a state is on.
499
- Parts: `root` (the floating element, arrow included) and `panel` (the
500
- bubble). State: `open`. A `class`, `style` or attribute on `<BbTooltip>`
501
- itself lands on `root` too.
499
+ Parts: `root` (the floating element, arrow included) and `panel` (the text
500
+ box inside the bubble, for spacing and type). State: `open`. A `class`,
501
+ `style` or attribute on `<BbTooltip>` itself lands on `root` too.
502
502
 
503
- The document-toolbar hints, restyled through those parts: a muted wash on
504
- `pt:panel` (the bubble — default is the inverted primary), a drop shadow
505
- while `pt:root:open`. Hover a glyph; delay 400 matches dense toolbars.
503
+ The document-toolbar hints, restyled through those parts: `pt:root` sets the
504
+ paint tokens (`--bg`, `--border-color`, `--fg`), so the bubble and its arrow
505
+ turn muted with a border together, plus a drop shadow while `pt:root:open`. A
506
+ background on `pt:panel` would paint only the text box, inside the primary
507
+ bubble. Hover a glyph; delay 400 matches dense toolbars.
506
508
 
507
- **pt:panel — toolbar hints, a muted bubble**
509
+ **pt:root — toolbar hints, a muted bubble**
508
510
 
509
511
  ```vue
510
512
  <template>
@@ -534,7 +536,7 @@ while `pt:root:open`. Hover a glyph; delay 400 matches dense toolbars.
534
536
  ></span>
535
537
  <BbTooltip
536
538
  :delay="400"
537
- pt:panel="bg-(--bb-muted) text-(--bb-text)"
539
+ pt:root="[--bg:var(--bb-muted)] [--border-color:var(--bb-border)] [--fg:var(--bb-text)]"
538
540
  pt:root:open="drop-shadow-md"
539
541
  :text="action.label"
540
542
  >
@@ -563,8 +565,10 @@ type ToolbarAction = {
563
565
  };
564
566
 
565
567
  // Same document-toolbar hints as `IconButtonTooltips.vue`, restyled through
566
- // passthrough: a muted wash on `pt:panel` (the bubble — default is the
567
- // inverted primary), `pt:root:open` adds a drop shadow while showing. Hover
568
+ // passthrough: `pt:root` sets the paint tokens (`--bg`, `--border-color`,
569
+ // `--fg`), so the bubble AND its arrow turn muted with a border together (a
570
+ // background on `pt:panel` would paint only the text box inside the primary
571
+ // bubble); `pt:root:open` adds a drop shadow while showing. Hover
568
572
  // a glyph to see the pt; `delay` 400 (the default is 100) holds the first hint
569
573
  // back in a dense toolbar, and the next glyph's hint opens at once (skip delay).
570
574
  const actions: ToolbarAction[] = [
@@ -680,7 +684,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
680
684
  | Part | What it is |
681
685
  | --- | --- |
682
686
  | `root` | The floating element, arrow included; a `class` on the component lands here. |
683
- | `panel` | The bubble that holds the text. |
687
+ | `panel` | The text box inside the bubble: spacing and type. The bubble's and arrow's paint come from `--bg` / `--border-color` / `--fg` on root. |
684
688
 
685
689
  States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
686
690
 
@@ -710,8 +714,8 @@ Set these on the element, or on a class you put on it, to retune this component
710
714
  | `--border-color` | `var(--bb-primary)` | |
711
715
  | `--fs` | `calc(var(--bb-fs) - 2px)` | |
712
716
  | `--max-w` | `40ch` | Default measure. CommonPopover caps the bubble at the viewport minus its `padding`, which on a wide screen is a single line running the width of the page — unreadable, and the reason a hint needs a cap of its own. `ch` (not px) so the column tracks the font: the same 40ch measure the dropdown item description uses. The `width` prop overrides it by writing `--max-w` inline on the content; a consumer can override it in CSS on this root. |
713
- | `--px` | `12px` | |
714
- | `--py` | `6px` | |
717
+ | `--px` | `8px` | |
718
+ | `--py` | `2px` | |
715
719
 
716
720
  ## Component tree
717
721
 
@@ -24,10 +24,10 @@
24
24
  | `hideLabel` | `boolean \| undefined` | `false` | | Hide the visual label while keeping it available to assistive technology. |
25
25
  | `hint` | `string \| undefined` | | | Hint text rendered below the input. While shown, its id is exposed to the input slot via `ariaDescribedby` — last in the list, after any error/warning ids and the description id. |
26
26
  | `id` | `string \| undefined` | | | Explicit id for the container and associated input. Falls back to an auto-generated id when omitted. |
27
- | `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. |
27
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
28
28
  | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Horizontal alignment of the input column in a side-by-side layout. `'start'` / `'end'` follow the page direction; `'left'` / `'right'` stay physical. Unset: `'end'` in a horizontal / ratio split, else `'start'`. |
29
29
  | `label` | `string` | | yes | Visible label text for the field. Also used to derive a fallback name. |
30
- | `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. |
30
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
31
31
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
32
32
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `"start"` | | Horizontal alignment for the label 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. |
33
33
  | `labelTag` | `'span'` \| `'label'` \| `'legend'` | `"label"` | | Element used for the label: `label` (default), `legend` inside a `fieldset` container, or `span` when the text must not steal the click because the control already carries its own label. |
@@ -54,14 +54,6 @@
54
54
  - `input` — scope: `CommonFieldInputSlotProps` `{ id: string; name: string; hasErrors: boolean; hasWarnings: boolean; ariaDescribedby: string; ariaLabelledby: string }` — The form control to render, positioned in the input column. Receives pre-computed wiring attributes so the inner input can be correctly associated with the label and hint.
55
55
  - `label` — scope: `CommonFieldLabelSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default label text. The outer label element and its `for` association are always rendered.
56
56
 
57
- ## CSS custom properties
58
-
59
- Set these on the element, or on a class you put on it, to retune this component alone — the sanctioned alternative to reaching past the API with `:deep()`. They are this component's own locals — a **Set on** of `pt:<part>` means the local lives on that part's element, so set it through that entry (`pt:box="[--border-color:var(--color-green-500)]"`); the global `--bb-*` theme tokens are a separate tier (see the [design-tokens guide](./guides/design-tokens.md), or the MCP `list_tokens` tool).
60
-
61
- | Property | Default | What it is |
62
- | --- | --- | --- |
63
- | `--ctrl-line` | `calc(var(--bb-input-h) / 2)` | 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. |
64
-
65
57
  ## Component tree
66
58
 
67
59
  `CommonField` is not one component: rendering it mounts every component below, and each one is live inside it. **Read this before styling, theming or debugging `CommonField`, and before concluding a part, a token or a behaviour does not exist** — it may live on a component further down. How to read it:
@@ -86,19 +86,11 @@ Set these on the element, or on a class you put on it, to retune this component
86
86
  | `--elev` | `.bb-radio-group__list--line` | `none` | |
87
87
  | `--list-bg` | `.bb-radio-group__list--outline` | `transparent` | |
88
88
  | `--list-border` | `.bb-radio-group__list--outline` | `transparent` | |
89
- | `--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. |
89
+ | `--list-h` | `.bb-radio-group__list--outline` | `auto` | |
90
90
  | `--p` | `.bb-radio-group__list--outline` | `0px` | |
91
91
  | `--trigger-gap` | `.bb-radio-group__list--outline` | `8px` | |
92
- | `--trigger-r` | `.bb-radio-group__list--outline` | `var(--bb-radius)` | |
92
+ | `--trigger-min-h` | `.bb-radio-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | BbButton md |
93
93
  | `--trigger-px` | `.bb-radio-group__list--outline` | `12px` | |
94
- | `--list-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
95
- | `--hover-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
96
- | `--active-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
97
- | `--active-fw` | `.bb-radio-group__list--outline` | `500` | |
98
- | `--indicator-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-pressed)` | |
99
- | `--indicator-border` | `.bb-radio-group__list--outline` | `transparent` | |
100
- | `--indicator-r` | `.bb-radio-group__list--outline` | `var(--trigger-r)` | |
101
- | `--indicator-shadow` | `.bb-radio-group__list--outline` | `none` | |
102
- | `--elev` | `.bb-radio-group__list--outline` | `none` | |
103
- | `--divider` | `.bb-radio-group__list--outline` | `var(--bb-outline-border)` | Each button's frame |
104
- | `--hover-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-hover)` | An unpicked button under the pointer |
94
+ | `--fs` | `.bb-radio-group__list--outline` | `var(--bb-fs)` | |
95
+ | `--trigger-r` | `.bb-radio-group__list--outline` | `var(--bb-radius)` | |
96
+ | `--elev` | `.bb-radio-group__list--outline` | `var(--bb-elev)` | |