@brandsync/wc 1.11.0 → 1.12.1

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 (44) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/custom-elements.json +9 -13
  3. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  4. package/dist/brandsync-wc/p-22f8201a.entry.js +1 -0
  5. package/dist/brandsync-wc/{p-afb07368.entry.js → p-452f9c1c.entry.js} +1 -1
  6. package/dist/brandsync-wc/{p-5f27f04d.entry.js → p-83c90489.entry.js} +1 -1
  7. package/dist/brandsync-wc/{p-061ddc46.entry.js → p-b8d2ce91.entry.js} +1 -1
  8. package/dist/cjs/brandsync-wc.cjs.js +1 -1
  9. package/dist/cjs/bs-breadcrumb.cjs.entry.js +5 -2
  10. package/dist/cjs/bs-chatbot-header.cjs.entry.js +2 -2
  11. package/dist/cjs/bs-composer.cjs.entry.js +1 -1
  12. package/dist/cjs/bs-input_3.cjs.entry.js +5 -4
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/collection/components/bs-attachment/bs-attachment.stories.js +4 -3
  15. package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +6 -3
  16. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.cmp.test.js +2 -2
  17. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +1 -1
  18. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  19. package/dist/collection/components/bs-composer/bs-composer.css +4 -2
  20. package/dist/collection/components/bs-input/bs-input.cmp.test.js +2 -2
  21. package/dist/collection/components/bs-input/bs-input.css +6 -21
  22. package/dist/collection/components/bs-input/bs-input.js +8 -4
  23. package/dist/collection/components/bs-input/bs-input.stories.js +7 -23
  24. package/dist/components/bs-breadcrumb.js +1 -1
  25. package/dist/components/bs-chatbot-header.js +1 -1
  26. package/dist/components/bs-composer.js +1 -1
  27. package/dist/components/bs-datepicker.js +1 -1
  28. package/dist/components/bs-input.js +1 -1
  29. package/dist/components/bs-session-timeout.js +1 -1
  30. package/dist/components/bs-timepicker.js +1 -1
  31. package/dist/components/p-BGW5q5LZ.js +1 -0
  32. package/dist/esm/brandsync-wc.js +1 -1
  33. package/dist/esm/bs-breadcrumb.entry.js +5 -2
  34. package/dist/esm/bs-chatbot-header.entry.js +2 -2
  35. package/dist/esm/bs-composer.entry.js +1 -1
  36. package/dist/esm/bs-input_3.entry.js +5 -4
  37. package/dist/esm/loader.js +1 -1
  38. package/dist/types/components/bs-attachment/bs-attachment.stories.d.ts +1 -1
  39. package/dist/types/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.d.ts +4 -1
  40. package/dist/types/components/bs-input/bs-input.d.ts +4 -1
  41. package/dist/types/components.d.ts +6 -2
  42. package/package.json +3 -2
  43. package/dist/brandsync-wc/p-c0a92750.entry.js +0 -1
  44. package/dist/components/p-B_I4UEMp.js +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,163 @@
1
+ # @brandsync/wc
2
+
3
+ ## 1.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4976988: `bs-input` `type="chip"`: the chip remove button is now `size="xs"` (20px, 12px icon). It was `md` (44px), so its hover/pressed area stuck out below the chip.
8
+
9
+ Also, for the record (shipped in 1.12.0 without a note): `bs-chatbot-header` side padding is now 16px, and its expand button's tooltip and accessible name read "Fullscreen" (was "Expand"; the expanded state reads "Exit fullscreen", was "Collapse"). `bs-composer` buttons are 44px with an 8px gap, and the human variant has a stronger border (`--bs-composer-border-human`).
10
+
11
+ ## 1.12.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 12d4250: `bs-input type="chip"` now renders its chips with `bs-chip-informative` with a `bs-icon-button` remove control instead of hand-built markup, so they get the shared components' states and theming. The `--bs-input-chip-bg` and `--bs-input-chip-text` custom properties are removed; theme the pills through `--bs-chip-informative-*`. The `chips` prop and `bsChipAdd`/`bsChipRemove` events are unchanged.
16
+ - 8c5e3ee: `bs-input` field height is now 44px (`--bs-input-height` aliases `--bs-spacing-550`) to match the Figma spec, down from 48px. Override `--bs-input-height` to keep the old height.
17
+
18
+ ## 1.11.0
19
+
20
+ ### Minor Changes
21
+
22
+ - e9a8d83: `bs-button`: new custom properties `--bs-button-width` (default `auto`; `100%` makes a full-width button) and `--bs-button-subtle-color` (the `subtle` variant's text colour; default unchanged), so other components can compose it without overriding its internals.
23
+
24
+ Also adds `--bs-button-padding-x-sm` (side padding of a label-only `size="sm"` button; default unchanged at 24px).
25
+
26
+ - e9a8d83: `bs-card`: new custom properties `--bs-card-bg`, `--bs-card-radius`, `--bs-card-padding`, `--bs-card-border-width`, `--bs-card-border-color`, `--bs-card-shadow` and `--bs-card-overflow`, so other components can compose it and restyle it (defaults are unchanged, so existing cards look the same). `surface` is now reflected to an attribute.
27
+
28
+ Also: the card's surface now fills a height set on the `bs-card` host (`height: 100%`); with the default `auto` height nothing changes.
29
+
30
+ - e9a8d83: New `bs-cookie-consent`, matching the Figma "Cookie consent": `type` banner (stacks on narrow containers), card, preferences (switch per category, expandable cookie lists, `categories` JS property) and saved (a `bs-snackbar` confirmation). `bsAccept`/`bsReject`/`bsSave` carry `{ choices }`; also `bsCustomise`, `bsChoice`, `bsClose`, `bsManage`. It only collects the choice -- it doesn't set cookies or decide when to show itself. Built from `bs-card`, `bs-icon-tile`, `bs-button`, `bs-switch`, `bs-chip-informative`, `bs-icon-button` and `bs-snackbar`.
31
+ - e9a8d83: New `bs-error-page`, matching the Figma "Error page": `type` not-found (404), server-error (500), no-access (403), maintenance or offline, each with its own icon, tint, code label, heading, paragraph and buttons (all overridable), an optional `reference` line, an `icon` slot, and `bsPrimary`/`bsSecondary` events. Built from `bs-card`, `bs-icon-tile` and `bs-button`.
32
+ - e9a8d83: New `bs-icon-tile`: a small rounded square holding an icon, matching the Figma "Icon tile" (`size` sm/md/lg, `intent` default/success/warning/error/brand/information). Each intent has a default glyph; slot your own icon to replace it. Decorative unless `label` is set.
33
+
34
+ Also adds a `text` slot: text shown beside the square (e.g. "Payment received"), coloured with `--bs-icon-tile-text-color`; the tile is exactly its square when nothing is slotted.
35
+
36
+ - e9a8d83: `bs-input`: new custom properties `--bs-input-label-font-size`, `--bs-input-label-font-weight` and `--bs-input-label-line-height` (defaults unchanged: 14px, medium), so a composing component can match designs whose field labels are 16px semibold.
37
+ - e9a8d83: New `bs-onboarding-checklist`, matching the Figma "Onboarding checklist": `type` panel, dashboard (stacks on narrow containers), launcher (`launcherLayout` icon/ring/inline) and completion, driven by a `steps` JS property (the first step not `done` is current). Events `bsStepAction`/`bsStepSkip` (with the step id), `bsOpen`, `bsClose`, `bsDone`, `bsHide`. Built from `bs-card`, `bs-icon-tile`, `bs-button`, `bs-icon-button`, `bs-progress-linear` and `bs-progress`.
38
+ - e9a8d83: New `bs-product-tour`: one step of a product tour, matching the Figma "Product Tour" and "Pointer" -- `type` welcome/success (centred card with an art tile) or pointer (compact step with progress label, close button and an arrow on any of 12 `direction`s). `bsPrimary`/`bsSecondary`/`bsClose` events and an `icon` slot. It is the step card only: no overlay, sequencing or positioning against a target.
39
+ - e9a8d83: New `bs-qr-code`: a share/payment block that draws a QR code you provide (`matrix` or the `code` slot -- it does not encode one), with heading, URL or amount, expiry chip and Download/Copy link actions, matching the Figma "QR code". `type` default/payment, `size` sm/md/lg, `state` default/loading/error/expired/scanned, a `logo` slot, and `bsDownload`/`bsCopy`/`bsRetry`/`bsRefresh`/`bsClose` events.
40
+ - e9a8d83: New `bs-session-timeout`, matching the Figma "Session timeout": `type` warning (live countdown with a draining bar, optional `countdown` that ticks and fires `bsExpire`), signed-out (the account that was signed in, with Sign in again / Use a different account) and confirm-identity (password, passkey/BankID alternatives, Cancel; `bsPrimary` carries `{ password }`). Built from `bs-card`, `bs-icon-tile`, `bs-button`, `bs-progress-linear`, `bs-avatar` and `bs-input`.
41
+ - e9a8d83: `bs-snackbar`: new `hideClose` prop, for a confirmation that has only an action (default unchanged: the close button is shown).
42
+
43
+ Also adds `actionVariant` (the action button's variant; defaults to the one matching `variant`, so unchanged), for a plain text action such as the white "Change" in the cookie confirmation.
44
+
45
+ Adds `--bs-snackbar-icon-size` (default 24px, unchanged) for a larger leading icon.
46
+
47
+ - e9a8d83: New `bs-whats-new` and `bs-whats-new-entry`, matching the Figma "What's new". `bs-whats-new-entry` is one update (tag, date, unread dot, optional image, title, description, action link). `bs-whats-new` has `type` feed (docked panel with Mark all as read, filter tabs driven by a `filters` property, the `entries` list, release notes link), announcement (hero, tag, heading, points, step count, Remind me later / Next) and teaser (small card pointing at the feed). Events `bsMarkAllRead`, `bsEntryAction`, `bsFilterChange`, `bsClose`, `bsPrimary`, `bsSecondary`, `bsOpen`. Built from `bs-card`, `bs-tabs`, `bs-chip-informative`, `bs-button` and `bs-icon-button`.
48
+
49
+ ## 1.10.0
50
+
51
+ ### Minor Changes
52
+
53
+ - 5de9071: New `bs-datepicker`: an inline calendar for a single date or a start/end range (`range`), matching the Figma "Date picker". `YYYY-MM-DD` string values, `min`/`max`, `locale`, `firstDayOfWeek`, a `bsChange` event, keyboard navigation and form association.
54
+ - 5de9071: New `bs-timepicker`: an inline time picker with hour/minute spinners, an AM/PM dropdown, a 24h switch and Cancel/Confirm, matching the Figma "Time picker". `value` is 24-hour `HH:mm`; `format` (`12h`/`24h`), `minuteStep`, a `bsChange` event on Confirm, a `bsCancel` event, keyboard support and form association.
55
+
56
+ ## 1.9.0
57
+
58
+ ### Minor Changes
59
+
60
+ - dc64446: `bs-breadcrumb` and `bs-breadcrumb-overflow`: new cancelable `bsNavigate` event (detail `{ href }`) fired when a link is clicked, before the browser navigates, so single-page-app routers can `preventDefault()` and route it themselves. Modified clicks (ctrl/cmd/shift/alt) and middle-clicks do not emit it, so "open in a new tab" keeps working. Without a listener behavior is unchanged. The event bubbles, so one listener on `<bs-breadcrumbs>` covers every crumb.
61
+ - 5ad1084: `bs-navigation-drawer`: at 768px and below the drawer is now an off-canvas **overlay** instead of a forced 96px icon rail. New `open` prop (mutable, reflected) and `bsClose` event: the drawer is hidden until `open` is set, then slides in over the page with a backdrop, fully expanded (labels visible, nested items reachable). Escape or a backdrop click closes it (`open` returns to `false`, `bsClose` fires); focus moves in on open and returns to the opener on close, and page scroll is locked while open. The collapse toggle and compact search trigger are not shown in the overlay. New `backdrop` part and `--bs-navigation-drawer-backdrop`, `-overlay-shadow`, `-overlay-z-index`, `-overlay-duration` custom properties. Wider screens are unchanged.
62
+
63
+ **Behavior change:** below 768px the drawer previously rendered as a 96px rail whose labels were clipped; it now renders as the overlay and is hidden until `open` is set, so apps need a menu button that sets it.
64
+
65
+ - fb9aa11: `bs-tabs`: new `value` prop (the selected tab's `value`, reflected; setting it selects the matching tab) and a `bsChange` event (`{ value }`) that fires when the user selects a different tab, including via the arrow keys. `bs-tab` and `bs-inline-tab` gain an optional `value`; a tab without one is identified by its zero-based index as a string. `bsSelect` is unchanged. Also corrects the docs, which still described arrow-key navigation as a known gap.
66
+
67
+ ### Patch Changes
68
+
69
+ - 9fae54b: `bs-icon-button`: a slotted icon-font glyph (for example `<i class="ph-bold ph-bell">`) now scales with the `size` prop. The icon wrapper sets `font-size` from `--bs-icon-button-icon-size-*`, so no manual `font-size` is needed.
70
+ - 29234e7: `bs-menu`: documents how to build a dropdown from existing pieces (a button, `bs-menu`, and a small amount of wiring for open/close, Escape, outside click, focus return and selection), with an interactive story, and its limits (no viewport flipping). Also corrects the docs, which still said arrow-key navigation between items was not implemented.
71
+ - c7159ed: `bs-navigation-header`: the bar now spans its container on wide screens -- `--bs-navigation-header-max-width` defaults to `none` instead of `1920px` (set a length to cap it). At 768px and below, the `left` slot now yields space so a wide left slot (such as a search field) no longer pushes the `right` slot onto its own row; the right slot only wraps below when the logo and right slot genuinely can't share a row. Documents the intentional 16px/8px vertical padding and how to center content exactly.
72
+
73
+ ## 1.8.0
74
+
75
+ ### Minor Changes
76
+
77
+ - af4aa24: Forms, keyboard accessibility and RTL.
78
+
79
+ - `bs-input`, `bs-checkbox`, `bs-switch`, `bs-radio` and `bs-slider` are now form-associated: they submit via `<form>`/`FormData`, support `name`, reset with the form, and (`bs-input`, `bs-checkbox`) participate in native `required` validation. `bs-checkbox`/`bs-switch` gain `value`; `bs-input` gains `name` and now updates its own `value` as the user types.
80
+ - Angular: `ControlValueAccessor` directives (`TextValueAccessor`, `BooleanValueAccessor`, `NumericValueAccessor`) so `ngModel`/`formControlName` work on `bs-input`, `bs-checkbox`, `bs-switch`, `bs-slider`; `@angular/forms` is now a peer dependency of `@brandsync/angular`. Vue: `v-model` on the same controls.
81
+ - `bs-button`/`bs-icon-button`: `type="submit"` and `type="reset"` now actually submit/reset the surrounding `<form>` (previously a no-op, because the native button sat inside the shadow root).
82
+ - `bs-radio`: radios sharing a `name` now behave as a group (mutual exclusion, arrow-key navigation, roving tabindex). **Behavior change:** previously consumers had to un-check siblings themselves.
83
+ - `bs-tabs` (and `bs-tab`/`bs-inline-tab`): roving tabindex, arrow/Home/End navigation. New `tabbable` prop set by `bs-tabs`.
84
+ - `bs-menu`: Up/Down/Home/End navigation between items.
85
+ - `bs-stepper` now has `role="list"` (its steps are `listitem`s); `bs-progress`/`bs-progress-linear` gain `ariaLabel` so the progressbar can be named.
86
+ - CSS: physical left/right properties replaced with logical ones (RTL support); `forced-colors` (Windows High Contrast) rules for button, checkbox, switch, radio, input, menu, card, dialog.
87
+ - Form controls reflect `disabled` as a host attribute, so a disabled control is excluded from `FormData` and validation (like a native input).
88
+
89
+ ## 1.7.0
90
+
91
+ ### Minor Changes
92
+
93
+ - 06f42e9: New components: `bs-carousel`, `bs-file-upload` and `bs-file-upload-item`.
94
+
95
+ - `bs-carousel`: a paged carousel with a dot or numbered tracker (`tracker`), `slidesPerView`, previous/next, and opt-in `autoplay` with a Pause/Play button. Composes `bs-pagination`, `bs-icon-button` and `bs-button`.
96
+ - `bs-file-upload`: a file dropzone (horizontal/vertical, drag-over state, `accept`/`multiple`, `bsFilesSelect`/`bsFilesReject`). Presentational -- the app owns the upload; not form-associated.
97
+ - `bs-file-upload-item`: an upload list item with loading, in-progress, error and success states and cancel/remove actions.
98
+ - `bs-progress-linear` gains an `ariaLabel` prop so the progress bar can be given an accessible name.
99
+
100
+ ## 1.6.0
101
+
102
+ ### Minor Changes
103
+
104
+ - 5b1a7c3: Add @brandsync/vue wrapper package, generated via @stencil/vue-output-target, mirroring the existing React/Angular wrapper packages.
105
+
106
+ ## 1.5.4
107
+
108
+ ### Patch Changes
109
+
110
+ - c842222: No user-facing change -- re-triggering a clean release cycle to verify the direct `claude` CLI invocation (replacing `claude-code-action`, which doesn't support push-triggered events).
111
+
112
+ ## 1.5.3
113
+
114
+ ### Patch Changes
115
+
116
+ - 1db8ce3: No user-facing change -- re-triggering a clean release cycle to verify the `claude-code-action` fix (`mode: automation`, needed for its push-triggered CI invocation).
117
+
118
+ ## 1.5.2
119
+
120
+ ### Patch Changes
121
+
122
+ - 5a321e2: No user-facing change -- this changeset exists solely to trigger a clean release cycle verifying the CI pipeline fixes (publish.sh's git-tag creation and 409-tolerance) and the new AI story-authoring step for `bs-accordion`.
123
+
124
+ ## 1.5.1
125
+
126
+ ### Patch Changes
127
+
128
+ - 0726bd9: Fix `bs-accordion` visual issues found after the initial release: hover/pressed/focus-visible background now spans the whole item (header + content together), the trailing caret now sits in a 64px box matching the leading icon's spacing instead of crowding the edge, and a corner-radius seam between the header and content (visible when both are tinted together) is fixed.
129
+
130
+ ## 1.5.0
131
+
132
+ ### Minor Changes
133
+
134
+ - 7c6b1cf: Add `bs-accordion` component: a collapsible section with an optional leading icon, label, and trailing caret, a controlled `expanded` prop (`bsToggle` event, consumer echoes the change back), `medium`/`large` sizes, and a single-line CSS preview of the body content while collapsed.
135
+
136
+ ## 1.4.0
137
+
138
+ ### Minor Changes
139
+
140
+ - e1a540d: Fix several reported bugs:
141
+
142
+ - `bs-composer`: `value` prop now reliably syncs with the input (previously stayed stale while typing and could cause typed text to reappear after being cleared); added Enter-to-send (Shift+Enter still inserts a newline); `state` prop now reflects to the host attribute.
143
+ - `bs-data-table`: added a select-all checkbox to the header (checked/indeterminate/unchecked based on row selection); added a `clearSelection()` method to reset selection from outside without remounting the table; cell padding is now exposed via `--bs-data-table-cell-padding-x`/`-y` custom properties instead of only being overridable via `::part()`.
144
+ - `bs-chip-filter`: `selected` is now a properly controlled prop — clicking emits a change request instead of mutating its own state, so a parent that doesn't accept the change no longer gets out of sync with the chip's display.
145
+ - `bs-navigation-drawer` / `bs-navigation-header`: added responsive behavior at narrow viewports (≤768px) — the drawer collapses to its existing icon-only rail treatment, and the header wraps its actions below the logo instead of overlapping.
146
+
147
+ ## 1.3.0
148
+
149
+ ### Minor Changes
150
+
151
+ - ffc919b: Add `bs-progress` (circular progress indicator) and `bs-progress-linear` (linear progress bar) components, each with `determinate`/`indeterminate` states, size variants, and reduced-motion-aware animations.
152
+
153
+ ## 1.2.0
154
+
155
+ ### Minor Changes
156
+
157
+ - a09e85a: Add `bs-toast` component: a transient status message with `info`/`success`/`warning`/`error` states, each with its own icon, a message slot, and a dismiss button.
158
+
159
+ ## 1.1.0
160
+
161
+ ### Minor Changes
162
+
163
+ - ec84fd5: Add the bs-chip component family: bs-chip-filter (selectable toggle chip, optional dropdown caret), bs-chip-input (removable tag/entry chip with a separate remove button, optional avatar/icon), and bs-chip-informative (static, non-interactive status/category chip with color and icon options).
@@ -1086,7 +1086,7 @@
1086
1086
  },
1087
1087
  {
1088
1088
  "name": "href",
1089
- "description": "Destination for a non-current crumb. Ignored when `current` is true -- the current page is\nnever a link, even if `href` is set (see the class JSDoc).",
1089
+ "description": "Destination for a non-current crumb. Ignored when `current` is true -- the current page is\nnever a link, even if `href` is set (see the class JSDoc). A non-current crumb **without** `href`\nrenders as plain text that looks identical to a link crumb at rest (only link crumbs get the\nhover/focus styles), so give every non-current crumb an `href` unless it is deliberately not\nnavigable.",
1090
1090
  "type": {
1091
1091
  "text": "string"
1092
1092
  },
@@ -1122,7 +1122,7 @@
1122
1122
  {
1123
1123
  "kind": "field",
1124
1124
  "name": "href",
1125
- "description": "Destination for a non-current crumb. Ignored when `current` is true -- the current page is\nnever a link, even if `href` is set (see the class JSDoc).",
1125
+ "description": "Destination for a non-current crumb. Ignored when `current` is true -- the current page is\nnever a link, even if `href` is set (see the class JSDoc). A non-current crumb **without** `href`\nrenders as plain text that looks identical to a link crumb at rest (only link crumbs get the\nhover/focus styles), so give every non-current crumb an `href` unless it is deliberately not\nnavigable.",
1126
1126
  "type": {
1127
1127
  "text": "string"
1128
1128
  },
@@ -7481,7 +7481,7 @@
7481
7481
  "customElement": true,
7482
7482
  "tagName": "bs-input",
7483
7483
  "name": "BsInput",
7484
- "description": "A single-line text field with an optional label, description, and error state. Also covers a\nrange of related \"field\" shapes (number stepper, password reveal, date, dropdown trigger,\nselect, textarea, chip input, initials, country, and pin) via the `type` prop, since they all\nshare the same label/description/error/icon-slot chrome.\n\n## When to use\n- Collecting a single line of free-text, email, password, or numeric input.\n- Any of the other supported `type`s (search, date, dropdown, select, textarea, chip, initials,\n country, pin) that share this component's label/description/error chrome.\n- Pair with `error` for inline validation feedback tied to that specific field.\n\n## When not to use\n- A fixed set of choices best served by a dedicated radio/checkbox group rather than a single\n field. `type=\"select\"` (native `<select>`) and `type=\"dropdown\"` (a `bs-menu` of\n `bs-menu-item`s from the `options` prop) cover the field-shaped cases; `type=\"chip\"` has no\n options list at all (freeform chip entry).",
7484
+ "description": "A single-line text field with an optional label, description, and error state. Also covers a\nrange of related \"field\" shapes (number stepper, password reveal, date, dropdown trigger,\nselect, textarea, chip input, initials, country, and pin) via the `type` prop, since they all\nshare the same label/description/error/icon-slot chrome.\n\nBuilt from: `bs-menu`/`bs-menu-item` (`type=\"dropdown\"`) and `bs-chip-informative` + `bs-icon-button` (`type=\"chip\"`).\n\n## When to use\n- Collecting a single line of free-text, email, password, or numeric input.\n- Any of the other supported `type`s (search, date, dropdown, select, textarea, chip, initials,\n country, pin) that share this component's label/description/error chrome.\n- Pair with `error` for inline validation feedback tied to that specific field.\n\n## When not to use\n- A fixed set of choices best served by a dedicated radio/checkbox group rather than a single\n field. `type=\"select\"` (native `<select>`) and `type=\"dropdown\"` (a `bs-menu` of\n `bs-menu-item`s from the `options` prop) cover the field-shaped cases; `type=\"chip\"` has no\n options list at all (freeform chip entry).",
7485
7485
  "attributes": [
7486
7486
  {
7487
7487
  "name": "country",
@@ -7884,7 +7884,11 @@
7884
7884
  "cssParts": [
7885
7885
  {
7886
7886
  "name": "chip",
7887
- "description": "A single chip pill, when `type=\"chip\"`."
7887
+ "description": "A single chip pill (a `bs-chip-informative`), when `type=\"chip\"`."
7888
+ },
7889
+ {
7890
+ "name": "chip-remove",
7891
+ "description": "A chip's remove button (a `bs-icon-button`), when `type=\"chip\"`."
7888
7892
  },
7889
7893
  {
7890
7894
  "name": "control",
@@ -7928,14 +7932,6 @@
7928
7932
  }
7929
7933
  ],
7930
7934
  "cssProperties": [
7931
- {
7932
- "name": "--bs-input-chip-bg",
7933
- "description": "Chip pill background for type=\"chip\". Aliased to --bs-input-bg-disabled."
7934
- },
7935
- {
7936
- "name": "--bs-input-chip-text",
7937
- "description": "Chip pill text color for type=\"chip\". Aliased to --bs-input-text."
7938
- },
7939
7935
  {
7940
7936
  "name": "--bs-input-description-color",
7941
7937
  "description": "Description text color. Aliased to --bs-input-description."
@@ -7986,7 +7982,7 @@
7986
7982
  },
7987
7983
  {
7988
7984
  "name": "--bs-input-height",
7989
- "description": "Height of the field. Aliased to --bs-spacing-600."
7985
+ "description": "Height of the field. Aliased to --bs-spacing-550 (44px, per Figma)."
7990
7986
  },
7991
7987
  {
7992
7988
  "name": "--bs-input-icon-color",
@@ -1 +1 @@
1
- import{p as e,g as a,b as l}from"./p-DqQRXQMx.js";export{s as setNonce}from"./p-DqQRXQMx.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await a(),l(JSON.parse('[["p-52cb2358",[[769,"bs-session-timeout",{"type":[513],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"hideIcon":[4,"hide-icon"],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"secondsLeft":[1026,"seconds-left"],"totalSeconds":[2,"total-seconds"],"countdown":[4],"timeLeftLabel":[1,"time-left-label"],"secondsLeftLabel":[1,"seconds-left-label"],"savedMessage":[1,"saved-message"],"accountName":[1,"account-name"],"accountEmail":[1,"account-email"],"accountInitials":[1,"account-initials"],"passwordLabel":[1,"password-label"],"passwordError":[1,"password-error"],"dividerLabel":[1,"divider-label"],"alternatives":[16],"cancelLabel":[1,"cancel-label"],"password":[32],"announcement":[32],"initialTotal":[32]},null,{"countdown":[{"onTimerInputsChange":0}],"type":[{"onTimerInputsChange":0}]}]]],["p-e2556b4e",[[769,"bs-cookie-consent",{"type":[513],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"policyUrl":[1,"policy-url"],"policyLabel":[1,"policy-label"],"customiseLabel":[1,"customise-label"],"rejectLabel":[1,"reject-label"],"acceptLabel":[1,"accept-label"],"saveLabel":[1,"save-label"],"changeLabel":[1,"change-label"],"alwaysOnLabel":[1,"always-on-label"],"seeCookiesLabel":[1,"see-cookies-label"],"closeLabel":[1,"close-label"],"categories":[16],"choices":[32],"open":[32]},null,{"categories":[{"onCategoriesChange":0}]}]]],["p-78a69a59",[[769,"bs-whats-new",{"type":[513],"heading":[1],"headingLevel":[2,"heading-level"],"closable":[4],"closeLabel":[1,"close-label"],"entries":[16],"filters":[16],"filter":[1537],"markAllReadLabel":[1,"mark-all-read-label"],"releaseNotesLabel":[1,"release-notes-label"],"releaseNotesUrl":[1,"release-notes-url"],"emptyLabel":[1,"empty-label"],"tag":[1],"tagColor":[1,"tag-color"],"image":[1],"points":[16],"step":[2],"total":[2],"stepLabel":[1,"step-label"],"secondaryLabel":[1,"secondary-label"],"primaryLabel":[1,"primary-label"],"date":[1],"description":[1],"actionLabel":[1,"action-label"],"hasHeroSlot":[32]}]]],["p-7f954939",[[769,"bs-onboarding-checklist",{"type":[513],"launcherLayout":[513,"launcher-layout"],"steps":[16],"heading":[1],"description":[1],"headingLevel":[2,"heading-level"],"progressText":[1,"progress-text"],"closable":[4],"progressLabel":[1,"progress-label"],"skipLabel":[1,"skip-label"],"startLabel":[1,"start-label"],"seeAllLabel":[1,"see-all-label"],"afterLabel":[1,"after-label"],"doneLabel":[1,"done-label"],"hideLabel":[1,"hide-label"],"closeLabel":[1,"close-label"],"statusDoneLabel":[1,"status-done-label"],"statusTodoLabel":[1,"status-todo-label"]}]]],["p-b9a4042e",[[577,"bs-timepicker",{"name":[513],"value":[1537],"format":[1537],"minuteStep":[2,"minute-step"],"heading":[1],"formatLabel":[1,"format-label"],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"hourLabel":[1,"hour-label"],"minuteLabel":[1,"minute-label"],"periodLabel":[1,"period-label"],"hour":[32],"minute":[32]},null,{"value":[{"onValueChange":0}],"name":[{"onNameChange":0}]}]]],["p-2177042f",[[769,"bs-qr-code",{"type":[513],"size":[513],"state":[513],"heading":[1],"description":[1],"url":[1],"amount":[1],"amountLabel":[1,"amount-label"],"expiry":[1],"matrix":[16],"codeLabel":[1,"code-label"],"closable":[4],"hideActions":[4,"hide-actions"],"hideDownload":[4,"hide-download"],"hideCopy":[4,"hide-copy"],"downloadLabel":[1,"download-label"],"copyLabel":[1,"copy-label"],"retryLabel":[1,"retry-label"],"refreshLabel":[1,"refresh-label"],"loadingLabel":[1,"loading-label"],"errorLabel":[1,"error-label"],"expiredLabel":[1,"expired-label"],"scannedLabel":[1,"scanned-label"],"closeLabel":[1,"close-label"],"hasLogo":[32]}]]],["p-5ba90a13",[[577,"bs-datepicker",{"name":[513],"range":[516],"value":[1537],"start":[1537],"end":[1537],"min":[1],"max":[1],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"startLabel":[1,"start-label"],"endLabel":[1,"end-label"],"monthLabel":[1,"month-label"],"yearLabel":[1,"year-label"],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"],"viewDate":[32],"focusedIso":[32],"hoverIso":[32],"draft":[32],"openMenu":[32]},null,{"value":[{"onSelectionChange":0},{"onSelectionJump":0}],"start":[{"onSelectionChange":0},{"onSelectionJump":0}],"end":[{"onSelectionChange":0}],"range":[{"onSelectionChange":0}],"name":[{"onSelectionChange":0}]}]]],["p-fcee0dc4",[[769,"bs-product-tour",{"type":[513],"direction":[513],"heading":[1],"description":[1],"step":[2],"total":[2],"progressLabel":[1,"progress-label"],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"closable":[4],"closeLabel":[1,"close-label"]}]]],["p-09435f41",[[769,"bs-carousel",{"tracker":[1],"slidesPerView":[2,"slides-per-view"],"currentPage":[1538,"current-page"],"autoplay":[4],"interval":[2],"paused":[1540],"label":[1],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"],"pauseLabel":[1,"pause-label"],"playLabel":[1,"play-label"],"slideCount":[32],"interacting":[32]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{"currentPage":[{"onCurrentPageChange":0}],"autoplay":[{"updateTimer":0}],"paused":[{"updateTimer":0}],"interval":[{"updateTimer":0}],"interacting":[{"updateTimer":0}],"slideCount":[{"updateTimer":0}],"slidesPerView":[{"updateTimer":0}]}]]],["p-68fcd4a4",[[769,"bs-error-page",{"type":[513],"code":[1],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"reference":[1]}]]],["p-fc069773",[[769,"bs-file-upload-item",{"state":[513],"fileName":[1,"file-name"],"fileSize":[1,"file-size"],"progress":[2],"message":[1],"thumbnailSrc":[1,"thumbnail-src"],"thumbnailAlt":[1,"thumbnail-alt"],"cancelLabel":[1,"cancel-label"],"removeLabel":[1,"remove-label"]}]]],["p-1261f0b0",[[513,"bs-attachment",{"type":[1],"fileName":[1,"file-name"],"imageSrc":[1,"image-src"],"imageAlt":[1,"image-alt"],"loading":[4],"removable":[4]}]]],["p-3f09296a",[[513,"bs-breadcrumb-overflow",{"items":[16],"overflowLabel":[1,"overflow-label"],"size":[513],"open":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["p-afb07368",[[769,"bs-chatbot-header",{"heading":[1],"expanded":[1540]}]]],["p-09cbf05b",[[769,"bs-dialog",{"open":[1540],"heading":[1],"size":[1],"centered":[516],"hasFooter":[32],"hasImage":[32],"hasIcon":[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]]]]],["p-2368a92e",[[769,"bs-file-upload",{"direction":[513],"heading":[1],"description":[1],"buttonLabel":[1,"button-label"],"accept":[1],"multiple":[4],"disabled":[516],"dragging":[1540]}]]],["p-20030f4d",[[769,"bs-navigation-drawer",{"heading":[1],"collapsible":[4],"collapsed":[1540],"logoBackground":[1,"logo-background"],"showLogo":[4,"show-logo"],"open":[1540],"mobile":[32]},[[4,"keydown","onDocumentKeydown"],[4,"focusin","onDocumentFocusIn"]],{"collapsed":[{"onCollapsedChange":0}],"mobile":[{"onMobileChange":0}],"open":[{"onOpenChange":0}]}]]],["p-2f4e08e1",[[769,"bs-navigation-header",{"alignment":[1],"ariaLabel":[1,"aria-label"],"skipToContentHref":[1,"skip-to-content-href"],"skipToContentLabel":[1,"skip-to-content-label"],"logoBackground":[1,"logo-background"]}]]],["p-7796b93f",[[769,"bs-accordion",{"expanded":[516],"size":[1],"disabled":[4],"showIcon":[4,"show-icon"],"showPreview":[4,"show-preview"]}]]],["p-617bd13a",[[257,"bs-ai-disclaimer"]]],["p-39a26c64",[[513,"bs-ai-greeting",{"assistantName":[1,"assistant-name"],"productName":[1,"product-name"]}]]],["p-69c0a85d",[[513,"bs-ai-thinking",{"label":[1]}]]],["p-f15d9524",[[769,"bs-attachment-list",{"ariaLabel":[1,"aria-label"],"canScrollRight":[32]}]]],["p-491b51e6",[[769,"bs-badge",{"variant":[1]}]]],["p-5f27f04d",[[769,"bs-breadcrumb",{"href":[1],"current":[516],"size":[513]}]]],["p-2497d128",[[769,"bs-breadcrumbs",{"label":[1],"size":[1]},null,{"size":[{"onSizeChange":0}]}]]],["p-6e735e37",[[513,"bs-button-skeleton",{"size":[1]}]]],["p-823ab3b2",[[513,"bs-chatbot-feedback",{"rating":[1538],"submitted":[1540],"comment":[1025],"heading":[1],"subtitle":[1]}]]],["p-d8b29a53",[[769,"bs-chatbot-response-action",{"sourcesCount":[2,"sources-count"],"menuOpen":[1540,"menu-open"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]]],["p-d754ee13",[[769,"bs-chatbot-sources-drawer",{"heading":[1],"count":[2],"slottedCount":[32]}]]],["p-6c6cdf77",[[769,"bs-chatbot-suggestion-button",{"disabled":[4]}]]],["p-81605b82",[[849,"bs-checkbox",{"name":[513],"value":[1],"required":[4],"size":[1],"checked":[1540],"indeterminate":[1540],"disabled":[516],"error":[4],"ariaLabel":[1,"aria-label"]},null,{"checked":[{"syncFormValue":0}],"value":[{"syncFormValue":0}],"required":[{"syncFormValue":0}],"indeterminate":[{"onIndeterminateChange":0}]}]]],["p-6a696161",[[513,"bs-checkbox-skeleton",{"size":[1]}]]],["p-00a0d489",[[785,"bs-chip-filter",{"size":[1],"selected":[516],"dropdown":[4],"disabled":[4],"ariaLabel":[1,"aria-label"],"hasIcon":[32]}]]],["p-d75f3f87",[[785,"bs-chip-input",{"size":[1],"selected":[1540],"disabled":[516],"hasIcon":[32],"labelText":[32]}]]],["p-061ddc46",[[785,"bs-composer",{"variant":[1],"placeholder":[1],"value":[1025],"state":[513],"ariaLabel":[1,"aria-label"],"hasAttachments":[32]}]]],["p-73f214ed",[[769,"bs-composer-status-banner",{"type":[1],"message":[1],"showIcon":[4,"show-icon"],"showButton":[4,"show-button"],"actionLabel":[1,"action-label"],"allowClose":[4,"allow-close"]}]]],["p-34e5feaf",[[513,"bs-data-table",{"columns":[16],"rows":[16],"sortColumn":[1,"sort-column"],"sortDirection":[1,"sort-direction"],"selectable":[4],"cellRenderer":[16],"selectedIds":[32],"clearSelection":[64]}]]],["p-282ddbee",[[769,"bs-inline-tab",{"selected":[516],"disabled":[4],"ariaLabel":[1,"aria-label"],"value":[513],"tabbable":[4],"hasIcon":[32],"hasLabel":[32]}]]],["p-09bc1923",[[769,"bs-navigation-drawer-item",{"selected":[516],"expandable":[4],"expanded":[1540],"nested":[4],"ariaLabel":[1,"aria-label"],"collapsed":[516],"hasIcon":[32]}]]],["p-3a1af63a",[[849,"bs-radio",{"name":[513],"value":[1],"checked":[1540],"disabled":[516],"groupHasChecked":[32]},[[4,"bsChange","onAnyRadioChange"]],{"checked":[{"onCheckedChange":0}],"value":[{"onCheckedChange":0}]}]]],["p-0f8cd2e8",[[593,"bs-slider",{"type":[1],"name":[513],"showLabel":[4,"show-label"],"label":[1],"min":[2],"max":[2],"step":[2],"value":[1026],"valueStart":[1026,"value-start"],"valueEnd":[1026,"value-end"],"segments":[2],"disabled":[516],"ariaLabel":[1,"aria-label"]},null,{"value":[{"syncFormValue":0}],"valueStart":[{"syncFormValue":0}],"valueEnd":[{"syncFormValue":0}],"type":[{"syncFormValue":0}]}]]],["p-0b2d3b7e",[[769,"bs-source-link",{"fileName":[1,"file-name"],"sourceName":[1,"source-name"],"version":[1],"href":[1],"target":[1]}]]],["p-56c37e0a",[[769,"bs-stepper",{"currentStep":[2,"current-step"],"direction":[513],"showDescription":[4,"show-description"]},null,{"currentStep":[{"onPropChange":0}],"direction":[{"onPropChange":0}],"showDescription":[{"onPropChange":0}]}]]],["p-a9169157",[[513,"bs-stepper-step",{"name":[1],"description":[1],"error":[4],"disabled":[4],"computedState":[1,"computed-state"],"direction":[1],"showDescription":[4,"show-description"]}]]],["p-b84366a7",[[769,"bs-toast",{"state":[1]}]]],["p-416322bd",[[769,"bs-snackbar",{"variant":[1],"loading":[4],"actionLabel":[1,"action-label"],"actionVariant":[1,"action-variant"],"hideClose":[4,"hide-close"]}]]],["p-89fabf27",[[513,"bs-avatar",{"type":[1],"size":[1],"initials":[1],"src":[1],"alt":[1],"ariaLabel":[1,"aria-label"],"disabled":[516]}]]],["p-f7d15fbe",[[513,"bs-pagination",{"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"siblingCount":[2,"sibling-count"],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"]}]]],["p-1978e63c",[[769,"bs-tooltip",{"placement":[1]}]]],["p-b9ccd9d1",[[513,"bs-logo",{"variant":[1],"background":[1],"src":[1],"alt":[1]}]]],["p-e5daa6ca",[[513,"bs-progress",{"type":[1],"size":[1],"strokeWidth":[2,"stroke-width"],"value":[2],"showLabel":[4,"show-label"],"ariaLabel":[1,"aria-label"]}]]],["p-247e36ad",[[849,"bs-switch",{"name":[513],"value":[1],"size":[1],"checked":[1540],"disabled":[516],"ariaLabel":[1,"aria-label"]},null,{"checked":[{"syncFormValue":0}],"value":[{"syncFormValue":0}]}]]],["p-0b7c77c1",[[769,"bs-progress-linear",{"type":[1],"size":[1],"value":[2],"showLabel":[4,"show-label"],"ariaLabel":[1,"aria-label"],"hasLabelContent":[32]}]]],["p-be3dd446",[[769,"bs-chip-informative",{"color":[1],"size":[1],"disabled":[516],"hasIcon":[32]}]]],["p-0ee4126c",[[769,"bs-icon-tile",{"size":[513],"intent":[513],"label":[1],"hasCustomIcon":[32],"hasText":[32]}]]],["p-de110ad0",[[769,"bs-card",{"surface":[513],"hasImage":[32]}]]],["p-78f4fcf0",[[849,"bs-icon-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["p-1aab6d07",[[849,"bs-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasEndIcon":[32],"hasLabel":[32]}]]],["p-f5180578",[[769,"bs-whats-new-entry",{"tag":[1],"tagColor":[1,"tag-color"],"date":[1],"unread":[516],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"actionLabel":[1,"action-label"],"divider":[4],"unreadLabel":[1,"unread-label"],"hasImage":[32]}],[769,"bs-tab",{"selected":[516],"disabled":[4],"iconPosition":[1,"icon-position"],"ariaLabel":[1,"aria-label"],"value":[513],"tabbable":[4],"hasIcon":[32],"hasLabel":[32],"hasBadge":[32]}],[769,"bs-tabs",{"type":[1],"orientation":[1],"value":[1537]},[[0,"bsSelect","onTabSelect"],[0,"keydown","onKeyDown"]],{"value":[{"onValueChange":0}],"orientation":[{"syncRovingTabindex":0}]}]]],["p-c0a92750",[[849,"bs-input",{"name":[513],"value":[1025],"type":[1],"label":[1],"placeholder":[1],"description":[1],"error":[1],"disabled":[516],"required":[4],"step":[2],"min":[2],"max":[2],"options":[16],"rows":[2],"chips":[16],"titleOptions":[16],"initialsTitle":[1,"initials-title"],"countryOptions":[16],"country":[1],"length":[2],"open":[1540],"hasIcon":[32],"hasEndIcon":[32],"passwordVisible":[32],"chipDraft":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]],{"value":[{"onFormStateChange":0}],"type":[{"onFormStateChange":0}],"chips":[{"onFormStateChange":0}],"required":[{"onFormStateChange":0}]}],[769,"bs-menu-item",{"disabled":[4],"hasIcon":[32]}],[257,"bs-menu",null,[[0,"keydown","onKeyDown"]]]]]]'),e))));
1
+ import{p as e,g as a,b as l}from"./p-DqQRXQMx.js";export{s as setNonce}from"./p-DqQRXQMx.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await a(),l(JSON.parse('[["p-52cb2358",[[769,"bs-session-timeout",{"type":[513],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"hideIcon":[4,"hide-icon"],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"secondsLeft":[1026,"seconds-left"],"totalSeconds":[2,"total-seconds"],"countdown":[4],"timeLeftLabel":[1,"time-left-label"],"secondsLeftLabel":[1,"seconds-left-label"],"savedMessage":[1,"saved-message"],"accountName":[1,"account-name"],"accountEmail":[1,"account-email"],"accountInitials":[1,"account-initials"],"passwordLabel":[1,"password-label"],"passwordError":[1,"password-error"],"dividerLabel":[1,"divider-label"],"alternatives":[16],"cancelLabel":[1,"cancel-label"],"password":[32],"announcement":[32],"initialTotal":[32]},null,{"countdown":[{"onTimerInputsChange":0}],"type":[{"onTimerInputsChange":0}]}]]],["p-b9a4042e",[[577,"bs-timepicker",{"name":[513],"value":[1537],"format":[1537],"minuteStep":[2,"minute-step"],"heading":[1],"formatLabel":[1,"format-label"],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"hourLabel":[1,"hour-label"],"minuteLabel":[1,"minute-label"],"periodLabel":[1,"period-label"],"hour":[32],"minute":[32]},null,{"value":[{"onValueChange":0}],"name":[{"onNameChange":0}]}]]],["p-e2556b4e",[[769,"bs-cookie-consent",{"type":[513],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"policyUrl":[1,"policy-url"],"policyLabel":[1,"policy-label"],"customiseLabel":[1,"customise-label"],"rejectLabel":[1,"reject-label"],"acceptLabel":[1,"accept-label"],"saveLabel":[1,"save-label"],"changeLabel":[1,"change-label"],"alwaysOnLabel":[1,"always-on-label"],"seeCookiesLabel":[1,"see-cookies-label"],"closeLabel":[1,"close-label"],"categories":[16],"choices":[32],"open":[32]},null,{"categories":[{"onCategoriesChange":0}]}]]],["p-78a69a59",[[769,"bs-whats-new",{"type":[513],"heading":[1],"headingLevel":[2,"heading-level"],"closable":[4],"closeLabel":[1,"close-label"],"entries":[16],"filters":[16],"filter":[1537],"markAllReadLabel":[1,"mark-all-read-label"],"releaseNotesLabel":[1,"release-notes-label"],"releaseNotesUrl":[1,"release-notes-url"],"emptyLabel":[1,"empty-label"],"tag":[1],"tagColor":[1,"tag-color"],"image":[1],"points":[16],"step":[2],"total":[2],"stepLabel":[1,"step-label"],"secondaryLabel":[1,"secondary-label"],"primaryLabel":[1,"primary-label"],"date":[1],"description":[1],"actionLabel":[1,"action-label"],"hasHeroSlot":[32]}]]],["p-5ba90a13",[[577,"bs-datepicker",{"name":[513],"range":[516],"value":[1537],"start":[1537],"end":[1537],"min":[1],"max":[1],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"startLabel":[1,"start-label"],"endLabel":[1,"end-label"],"monthLabel":[1,"month-label"],"yearLabel":[1,"year-label"],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"],"viewDate":[32],"focusedIso":[32],"hoverIso":[32],"draft":[32],"openMenu":[32]},null,{"value":[{"onSelectionChange":0},{"onSelectionJump":0}],"start":[{"onSelectionChange":0},{"onSelectionJump":0}],"end":[{"onSelectionChange":0}],"range":[{"onSelectionChange":0}],"name":[{"onSelectionChange":0}]}]]],["p-7f954939",[[769,"bs-onboarding-checklist",{"type":[513],"launcherLayout":[513,"launcher-layout"],"steps":[16],"heading":[1],"description":[1],"headingLevel":[2,"heading-level"],"progressText":[1,"progress-text"],"closable":[4],"progressLabel":[1,"progress-label"],"skipLabel":[1,"skip-label"],"startLabel":[1,"start-label"],"seeAllLabel":[1,"see-all-label"],"afterLabel":[1,"after-label"],"doneLabel":[1,"done-label"],"hideLabel":[1,"hide-label"],"closeLabel":[1,"close-label"],"statusDoneLabel":[1,"status-done-label"],"statusTodoLabel":[1,"status-todo-label"]}]]],["p-2177042f",[[769,"bs-qr-code",{"type":[513],"size":[513],"state":[513],"heading":[1],"description":[1],"url":[1],"amount":[1],"amountLabel":[1,"amount-label"],"expiry":[1],"matrix":[16],"codeLabel":[1,"code-label"],"closable":[4],"hideActions":[4,"hide-actions"],"hideDownload":[4,"hide-download"],"hideCopy":[4,"hide-copy"],"downloadLabel":[1,"download-label"],"copyLabel":[1,"copy-label"],"retryLabel":[1,"retry-label"],"refreshLabel":[1,"refresh-label"],"loadingLabel":[1,"loading-label"],"errorLabel":[1,"error-label"],"expiredLabel":[1,"expired-label"],"scannedLabel":[1,"scanned-label"],"closeLabel":[1,"close-label"],"hasLogo":[32]}]]],["p-fcee0dc4",[[769,"bs-product-tour",{"type":[513],"direction":[513],"heading":[1],"description":[1],"step":[2],"total":[2],"progressLabel":[1,"progress-label"],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"closable":[4],"closeLabel":[1,"close-label"]}]]],["p-09435f41",[[769,"bs-carousel",{"tracker":[1],"slidesPerView":[2,"slides-per-view"],"currentPage":[1538,"current-page"],"autoplay":[4],"interval":[2],"paused":[1540],"label":[1],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"],"pauseLabel":[1,"pause-label"],"playLabel":[1,"play-label"],"slideCount":[32],"interacting":[32]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{"currentPage":[{"onCurrentPageChange":0}],"autoplay":[{"updateTimer":0}],"paused":[{"updateTimer":0}],"interval":[{"updateTimer":0}],"interacting":[{"updateTimer":0}],"slideCount":[{"updateTimer":0}],"slidesPerView":[{"updateTimer":0}]}]]],["p-68fcd4a4",[[769,"bs-error-page",{"type":[513],"code":[1],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"reference":[1]}]]],["p-fc069773",[[769,"bs-file-upload-item",{"state":[513],"fileName":[1,"file-name"],"fileSize":[1,"file-size"],"progress":[2],"message":[1],"thumbnailSrc":[1,"thumbnail-src"],"thumbnailAlt":[1,"thumbnail-alt"],"cancelLabel":[1,"cancel-label"],"removeLabel":[1,"remove-label"]}]]],["p-1261f0b0",[[513,"bs-attachment",{"type":[1],"fileName":[1,"file-name"],"imageSrc":[1,"image-src"],"imageAlt":[1,"image-alt"],"loading":[4],"removable":[4]}]]],["p-3f09296a",[[513,"bs-breadcrumb-overflow",{"items":[16],"overflowLabel":[1,"overflow-label"],"size":[513],"open":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["p-452f9c1c",[[769,"bs-chatbot-header",{"heading":[1],"expanded":[1540]}]]],["p-09cbf05b",[[769,"bs-dialog",{"open":[1540],"heading":[1],"size":[1],"centered":[516],"hasFooter":[32],"hasImage":[32],"hasIcon":[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]]]]],["p-2368a92e",[[769,"bs-file-upload",{"direction":[513],"heading":[1],"description":[1],"buttonLabel":[1,"button-label"],"accept":[1],"multiple":[4],"disabled":[516],"dragging":[1540]}]]],["p-20030f4d",[[769,"bs-navigation-drawer",{"heading":[1],"collapsible":[4],"collapsed":[1540],"logoBackground":[1,"logo-background"],"showLogo":[4,"show-logo"],"open":[1540],"mobile":[32]},[[4,"keydown","onDocumentKeydown"],[4,"focusin","onDocumentFocusIn"]],{"collapsed":[{"onCollapsedChange":0}],"mobile":[{"onMobileChange":0}],"open":[{"onOpenChange":0}]}]]],["p-2f4e08e1",[[769,"bs-navigation-header",{"alignment":[1],"ariaLabel":[1,"aria-label"],"skipToContentHref":[1,"skip-to-content-href"],"skipToContentLabel":[1,"skip-to-content-label"],"logoBackground":[1,"logo-background"]}]]],["p-7796b93f",[[769,"bs-accordion",{"expanded":[516],"size":[1],"disabled":[4],"showIcon":[4,"show-icon"],"showPreview":[4,"show-preview"]}]]],["p-617bd13a",[[257,"bs-ai-disclaimer"]]],["p-39a26c64",[[513,"bs-ai-greeting",{"assistantName":[1,"assistant-name"],"productName":[1,"product-name"]}]]],["p-69c0a85d",[[513,"bs-ai-thinking",{"label":[1]}]]],["p-f15d9524",[[769,"bs-attachment-list",{"ariaLabel":[1,"aria-label"],"canScrollRight":[32]}]]],["p-491b51e6",[[769,"bs-badge",{"variant":[1]}]]],["p-83c90489",[[769,"bs-breadcrumb",{"href":[1],"current":[516],"size":[513]}]]],["p-2497d128",[[769,"bs-breadcrumbs",{"label":[1],"size":[1]},null,{"size":[{"onSizeChange":0}]}]]],["p-6e735e37",[[513,"bs-button-skeleton",{"size":[1]}]]],["p-823ab3b2",[[513,"bs-chatbot-feedback",{"rating":[1538],"submitted":[1540],"comment":[1025],"heading":[1],"subtitle":[1]}]]],["p-d8b29a53",[[769,"bs-chatbot-response-action",{"sourcesCount":[2,"sources-count"],"menuOpen":[1540,"menu-open"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]]],["p-d754ee13",[[769,"bs-chatbot-sources-drawer",{"heading":[1],"count":[2],"slottedCount":[32]}]]],["p-6c6cdf77",[[769,"bs-chatbot-suggestion-button",{"disabled":[4]}]]],["p-81605b82",[[849,"bs-checkbox",{"name":[513],"value":[1],"required":[4],"size":[1],"checked":[1540],"indeterminate":[1540],"disabled":[516],"error":[4],"ariaLabel":[1,"aria-label"]},null,{"checked":[{"syncFormValue":0}],"value":[{"syncFormValue":0}],"required":[{"syncFormValue":0}],"indeterminate":[{"onIndeterminateChange":0}]}]]],["p-6a696161",[[513,"bs-checkbox-skeleton",{"size":[1]}]]],["p-00a0d489",[[785,"bs-chip-filter",{"size":[1],"selected":[516],"dropdown":[4],"disabled":[4],"ariaLabel":[1,"aria-label"],"hasIcon":[32]}]]],["p-d75f3f87",[[785,"bs-chip-input",{"size":[1],"selected":[1540],"disabled":[516],"hasIcon":[32],"labelText":[32]}]]],["p-b8d2ce91",[[785,"bs-composer",{"variant":[1],"placeholder":[1],"value":[1025],"state":[513],"ariaLabel":[1,"aria-label"],"hasAttachments":[32]}]]],["p-73f214ed",[[769,"bs-composer-status-banner",{"type":[1],"message":[1],"showIcon":[4,"show-icon"],"showButton":[4,"show-button"],"actionLabel":[1,"action-label"],"allowClose":[4,"allow-close"]}]]],["p-34e5feaf",[[513,"bs-data-table",{"columns":[16],"rows":[16],"sortColumn":[1,"sort-column"],"sortDirection":[1,"sort-direction"],"selectable":[4],"cellRenderer":[16],"selectedIds":[32],"clearSelection":[64]}]]],["p-282ddbee",[[769,"bs-inline-tab",{"selected":[516],"disabled":[4],"ariaLabel":[1,"aria-label"],"value":[513],"tabbable":[4],"hasIcon":[32],"hasLabel":[32]}]]],["p-09bc1923",[[769,"bs-navigation-drawer-item",{"selected":[516],"expandable":[4],"expanded":[1540],"nested":[4],"ariaLabel":[1,"aria-label"],"collapsed":[516],"hasIcon":[32]}]]],["p-3a1af63a",[[849,"bs-radio",{"name":[513],"value":[1],"checked":[1540],"disabled":[516],"groupHasChecked":[32]},[[4,"bsChange","onAnyRadioChange"]],{"checked":[{"onCheckedChange":0}],"value":[{"onCheckedChange":0}]}]]],["p-0f8cd2e8",[[593,"bs-slider",{"type":[1],"name":[513],"showLabel":[4,"show-label"],"label":[1],"min":[2],"max":[2],"step":[2],"value":[1026],"valueStart":[1026,"value-start"],"valueEnd":[1026,"value-end"],"segments":[2],"disabled":[516],"ariaLabel":[1,"aria-label"]},null,{"value":[{"syncFormValue":0}],"valueStart":[{"syncFormValue":0}],"valueEnd":[{"syncFormValue":0}],"type":[{"syncFormValue":0}]}]]],["p-0b2d3b7e",[[769,"bs-source-link",{"fileName":[1,"file-name"],"sourceName":[1,"source-name"],"version":[1],"href":[1],"target":[1]}]]],["p-56c37e0a",[[769,"bs-stepper",{"currentStep":[2,"current-step"],"direction":[513],"showDescription":[4,"show-description"]},null,{"currentStep":[{"onPropChange":0}],"direction":[{"onPropChange":0}],"showDescription":[{"onPropChange":0}]}]]],["p-a9169157",[[513,"bs-stepper-step",{"name":[1],"description":[1],"error":[4],"disabled":[4],"computedState":[1,"computed-state"],"direction":[1],"showDescription":[4,"show-description"]}]]],["p-b84366a7",[[769,"bs-toast",{"state":[1]}]]],["p-416322bd",[[769,"bs-snackbar",{"variant":[1],"loading":[4],"actionLabel":[1,"action-label"],"actionVariant":[1,"action-variant"],"hideClose":[4,"hide-close"]}]]],["p-89fabf27",[[513,"bs-avatar",{"type":[1],"size":[1],"initials":[1],"src":[1],"alt":[1],"ariaLabel":[1,"aria-label"],"disabled":[516]}]]],["p-f7d15fbe",[[513,"bs-pagination",{"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"siblingCount":[2,"sibling-count"],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"]}]]],["p-1978e63c",[[769,"bs-tooltip",{"placement":[1]}]]],["p-b9ccd9d1",[[513,"bs-logo",{"variant":[1],"background":[1],"src":[1],"alt":[1]}]]],["p-e5daa6ca",[[513,"bs-progress",{"type":[1],"size":[1],"strokeWidth":[2,"stroke-width"],"value":[2],"showLabel":[4,"show-label"],"ariaLabel":[1,"aria-label"]}]]],["p-247e36ad",[[849,"bs-switch",{"name":[513],"value":[1],"size":[1],"checked":[1540],"disabled":[516],"ariaLabel":[1,"aria-label"]},null,{"checked":[{"syncFormValue":0}],"value":[{"syncFormValue":0}]}]]],["p-0b7c77c1",[[769,"bs-progress-linear",{"type":[1],"size":[1],"value":[2],"showLabel":[4,"show-label"],"ariaLabel":[1,"aria-label"],"hasLabelContent":[32]}]]],["p-0ee4126c",[[769,"bs-icon-tile",{"size":[513],"intent":[513],"label":[1],"hasCustomIcon":[32],"hasText":[32]}]]],["p-be3dd446",[[769,"bs-chip-informative",{"color":[1],"size":[1],"disabled":[516],"hasIcon":[32]}]]],["p-de110ad0",[[769,"bs-card",{"surface":[513],"hasImage":[32]}]]],["p-1aab6d07",[[849,"bs-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasEndIcon":[32],"hasLabel":[32]}]]],["p-f5180578",[[769,"bs-whats-new-entry",{"tag":[1],"tagColor":[1,"tag-color"],"date":[1],"unread":[516],"heading":[1],"headingLevel":[2,"heading-level"],"description":[1],"actionLabel":[1,"action-label"],"divider":[4],"unreadLabel":[1,"unread-label"],"hasImage":[32]}],[769,"bs-tab",{"selected":[516],"disabled":[4],"iconPosition":[1,"icon-position"],"ariaLabel":[1,"aria-label"],"value":[513],"tabbable":[4],"hasIcon":[32],"hasLabel":[32],"hasBadge":[32]}],[769,"bs-tabs",{"type":[1],"orientation":[1],"value":[1537]},[[0,"bsSelect","onTabSelect"],[0,"keydown","onKeyDown"]],{"value":[{"onValueChange":0}],"orientation":[{"syncRovingTabindex":0}]}]]],["p-78f4fcf0",[[849,"bs-icon-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["p-22f8201a",[[849,"bs-input",{"name":[513],"value":[1025],"type":[1],"label":[1],"placeholder":[1],"description":[1],"error":[1],"disabled":[516],"required":[4],"step":[2],"min":[2],"max":[2],"options":[16],"rows":[2],"chips":[16],"titleOptions":[16],"initialsTitle":[1,"initials-title"],"countryOptions":[16],"country":[1],"length":[2],"open":[1540],"hasIcon":[32],"hasEndIcon":[32],"passwordVisible":[32],"chipDraft":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]],{"value":[{"onFormStateChange":0}],"type":[{"onFormStateChange":0}],"chips":[{"onFormStateChange":0}],"required":[{"onFormStateChange":0}]}],[769,"bs-menu-item",{"disabled":[4],"hasIcon":[32]}],[257,"bs-menu",null,[[0,"keydown","onKeyDown"]]]]]]'),e))));
@@ -0,0 +1 @@
1
+ import{r as i,c as t,a as e,h as s}from"./p-DqQRXQMx.js";const n=class{constructor(e){i(this,e),this.bsInput=t(this,"bsInput"),this.bsChange=t(this,"bsChange"),this.bsOpen=t(this,"bsOpen"),this.bsChipAdd=t(this,"bsChipAdd"),this.bsChipRemove=t(this,"bsChipRemove"),this.bsTitleChange=t(this,"bsTitleChange"),this.bsCountryChange=t(this,"bsCountryChange"),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals)}get el(){return e(this)}internals;initialValue="";name;value="";type="text";label;placeholder;description;error;disabled=!1;required=!1;step=1;min;max;options=[];rows=3;chips=[];titleOptions=[];initialsTitle="";countryOptions=[];country="";length=4;open=!1;bsInput;bsChange;bsOpen;bsChipAdd;bsChipRemove;bsTitleChange;bsCountryChange;hasIcon=!1;hasEndIcon=!1;passwordVisible=!1;chipDraft="";pinInputs=[];componentWillLoad(){this.initialValue=this.value,this.syncFormValue(),this.hasIcon=this.hasSlottedContent("icon"),this.hasEndIcon=this.hasSlottedContent("end-icon")}onFormStateChange(){this.syncFormValue()}syncFormValue(){if(this.internals?.setFormValue){if("chip"===this.type&&this.name){const i=new FormData;this.chips.forEach((t=>i.append(this.name,t))),this.internals.setFormValue(i)}else this.internals.setFormValue(this.value??"");this.required&&("chip"===this.type?0===this.chips.length:!this.value)?this.internals.setValidity({valueMissing:!0},"Please fill out this field."):this.internals.setValidity({})}}formResetCallback(){this.value=this.initialValue}formStateRestoreCallback(i){"string"==typeof i&&(this.value=i)}hasSlottedContent(i){return Array.from(this.el.childNodes).some((t=>t.nodeType===Node.ELEMENT_NODE&&t.getAttribute("slot")===i))}onIconSlotchange=i=>{this.hasIcon=i.target.assignedNodes().length>0};onEndIconSlotchange=i=>{this.hasEndIcon=i.target.assignedNodes().length>0};onInput=i=>{const t=i.target.value;this.value=t,this.bsInput.emit(t)};onChange=i=>{const t=i.target.value;this.value=t,this.bsChange.emit(t)};clampNumber(i){return void 0!==this.min&&i<this.min&&(i=this.min),void 0!==this.max&&i>this.max&&(i=this.max),i}onStepperIncrement=()=>{if(this.disabled)return;const i=this.clampNumber((parseFloat(this.value)||0)+this.step);this.value=String(i),this.bsChange.emit(this.value)};onStepperDecrement=()=>{if(this.disabled)return;const i=this.clampNumber((parseFloat(this.value)||0)-this.step);this.value=String(i),this.bsChange.emit(this.value)};onTogglePasswordVisibility=()=>{this.passwordVisible=!this.passwordVisible};onDropdownToggle=()=>{this.disabled||(this.open=!this.open,this.bsOpen.emit(this.open))};onDropdownKeydown=i=>{"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),this.onDropdownToggle())};onDropdownOptionSelect=i=>()=>{this.value=i.label,this.open=!1,this.bsChange.emit(this.value)};onHostKeydown(i){"dropdown"===this.type&&this.open&&"Escape"===i.key&&(this.open=!1)}onHostFocusOut(i){if("dropdown"!==this.type||!this.open)return;const t=i.relatedTarget;t&&this.el.contains(t)||(this.open=!1)}onChipDraftInput=i=>{this.chipDraft=i.target.value};onChipDraftKeydown=i=>{if("Enter"===i.key){i.preventDefault();const t=this.chipDraft.trim();t&&(this.bsChipAdd.emit(t),this.chipDraft="")}};onChipRemove=i=>()=>{this.bsChipRemove.emit(i)};onTitleChange=i=>{this.bsTitleChange.emit(i.target.value)};onCountryChange=i=>{this.bsCountryChange.emit(i.target.value)};onPinInput=i=>t=>{const e=t.target;let s=e.value;s.length>1&&(s=s.slice(-1),e.value=s),s&&i<this.length-1&&this.pinInputs[i+1]?.focus(),this.value=this.pinInputs.map((i=>i?.value??"")).join(""),this.bsChange.emit(this.value)};onPinKeydown=i=>t=>{"Backspace"===t.key&&!t.target.value&&i>0&&this.pinInputs[i-1]?.focus()};get showsEndIconArea(){return"number"===this.type||"password"===this.type||"dropdown"===this.type||"date"===this.type||this.hasEndIcon}get showsIconArea(){return"search"===this.type&&!this.hasIcon||this.hasIcon}renderIconContent(){return"search"!==this.type||this.hasIcon?s("slot",{name:"icon",onSlotchange:this.onIconSlotchange}):s("svg",{class:"bs-input__search-icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},s("circle",{cx:"7",cy:"7",r:"5",stroke:"currentColor","stroke-width":"1.3"}),s("path",{d:"M11 11L14.5 14.5",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round"}))}renderEndIconContent(){return"number"===this.type?s("span",{class:"bs-input__stepper"},s("button",{type:"button",part:"control",class:"bs-input__stepper-btn","aria-label":"Increment",tabIndex:-1,disabled:this.disabled,onClick:this.onStepperIncrement},s("svg",{viewBox:"0 0 10 6",width:"10",height:"6","aria-hidden":"true"},s("path",{d:"M1 5L5 1L9 5",stroke:"currentColor","stroke-width":"1.3",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}))),s("button",{type:"button",part:"control",class:"bs-input__stepper-btn","aria-label":"Decrement",tabIndex:-1,disabled:this.disabled,onClick:this.onStepperDecrement},s("svg",{viewBox:"0 0 10 6",width:"10",height:"6","aria-hidden":"true"},s("path",{d:"M1 1L5 5L9 1",stroke:"currentColor","stroke-width":"1.3",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"})))):"password"===this.type?s("button",{type:"button",part:"control",class:"bs-input__password-toggle","aria-label":this.passwordVisible?"Hide password":"Show password",disabled:this.disabled,onClick:this.onTogglePasswordVisibility},this.passwordVisible?s("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},s("path",{d:"M1 8C2.2 5.5 4.9 3 8 3C11.1 3 13.8 5.5 15 8C13.8 10.5 11.1 13 8 13C4.9 13 2.2 10.5 1 8Z",stroke:"currentColor","stroke-width":"1.2","stroke-linejoin":"round"}),s("circle",{cx:"8",cy:"8",r:"2",stroke:"currentColor","stroke-width":"1.2"}),s("path",{d:"M2 2L14 14",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"})):s("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},s("path",{d:"M1 8C2.2 5.5 4.9 3 8 3C11.1 3 13.8 5.5 15 8C13.8 10.5 11.1 13 8 13C4.9 13 2.2 10.5 1 8Z",stroke:"currentColor","stroke-width":"1.2","stroke-linejoin":"round"}),s("circle",{cx:"8",cy:"8",r:"2",stroke:"currentColor","stroke-width":"1.2"}))):"dropdown"===this.type?s("svg",{class:"bs-input__chevron",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},s("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})):"date"!==this.type||this.hasEndIcon?s("slot",{name:"end-icon",onSlotchange:this.onEndIconSlotchange}):s("svg",{class:"bs-input__calendar",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},s("rect",{x:"2",y:"3",width:"12",height:"11",rx:"1",stroke:"currentColor","stroke-width":"1.2"}),s("path",{d:"M2 6.5H14",stroke:"currentColor","stroke-width":"1.2"}),s("path",{d:"M5 1.5V4M11 1.5V4",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"}))}renderStandardControl(){return s("input",{id:"control",part:"control",class:"bs-input__control",type:"password"===this.type?this.passwordVisible?"text":"password":"dropdown"===this.type?"text":this.type,value:this.value,placeholder:this.placeholder,disabled:this.disabled,readOnly:"dropdown"===this.type,role:"dropdown"===this.type?"combobox":void 0,"aria-haspopup":"dropdown"===this.type?"listbox":void 0,"aria-expanded":"dropdown"===this.type?String(this.open):void 0,min:"number"===this.type?this.min:void 0,max:"number"===this.type?this.max:void 0,step:"number"===this.type?this.step:void 0,"aria-describedby":this.error||this.description?"description-or-error":void 0,"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0,onInput:this.onInput,onChange:this.onChange})}renderSelectControl(){return s("select",{id:"control",part:"control",class:"bs-input__control",disabled:this.disabled,"aria-describedby":this.error||this.description?"description-or-error":void 0,"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0,onInput:this.onInput,onChange:this.onChange},this.options.map((i=>s("option",{value:i.value,selected:i.value===this.value},i.label))))}renderTextareaControl(){return s("textarea",{id:"control",part:"control",class:"bs-input__control bs-input__control--textarea",rows:this.rows,value:this.value,placeholder:this.placeholder,disabled:this.disabled,"aria-describedby":this.error||this.description?"description-or-error":void 0,"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0,onInput:this.onInput,onChange:this.onChange})}renderChipControl(){return s("div",{class:"bs-input__chips"},this.chips.map((i=>s("bs-chip-informative",{part:"chip",class:"bs-input__chip",size:"sm",disabled:this.disabled},i,s("bs-icon-button",{part:"chip-remove",class:"bs-input__chip-remove",variant:"subtle",size:"xs",ariaLabel:`Remove ${i}`,disabled:this.disabled,onClick:this.onChipRemove(i)},s(r,null))))),s("input",{id:"control",part:"control",class:"bs-input__control bs-input__chip-input",type:"text",value:this.chipDraft,placeholder:this.placeholder,disabled:this.disabled,"aria-required":this.required?"true":void 0,onInput:this.onChipDraftInput,onKeyDown:this.onChipDraftKeydown}))}renderInitialsField(){const i=this.disabled?"bs-input__field--disabled":"";return s("div",{class:"bs-input__initials-row"},s("div",{part:"field",class:`bs-input__field bs-input__field--initials-title ${this.error?"bs-input__field--error":""} ${i}`},s("select",{part:"control",class:"bs-input__control bs-input__title-select",disabled:this.disabled,onChange:this.onTitleChange},this.titleOptions.map((i=>s("option",{value:i,selected:i===this.initialsTitle},i)))),this.renderSelectChevron()),s("div",{part:"field",class:`bs-input__field bs-input__field--initials-value ${this.error?"bs-input__field--error":""} ${i}`},s("input",{id:"control",part:"control",class:"bs-input__control",type:"text",value:this.value,placeholder:this.placeholder,disabled:this.disabled,"aria-required":this.required?"true":void 0,onInput:this.onInput,onChange:this.onChange})))}renderSelectChevron(){return s("svg",{class:"bs-input__select-chevron",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},s("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"}))}renderCountryControl(){return[s("select",{part:"control",class:"bs-input__control bs-input__country-select",disabled:this.disabled,onChange:this.onCountryChange},this.countryOptions.map((i=>s("option",{value:i.code,selected:i.code===this.country},i.flagIcon?`${i.flagIcon} `:"",i.code," ",i.label)))),this.renderSelectChevron(),s("input",{id:"control",part:"control",class:"bs-input__control",type:"text",value:this.value,placeholder:this.placeholder,disabled:this.disabled,"aria-required":this.required?"true":void 0,onInput:this.onInput,onChange:this.onChange})]}renderControl(){switch(this.type){case"select":return this.renderSelectControl();case"textarea":return this.renderTextareaControl();case"chip":return this.renderChipControl();case"country":return this.renderCountryControl();default:return this.renderStandardControl()}}renderField(){const i=["bs-input__field",this.error?"bs-input__field--error":"",this.disabled?"bs-input__field--disabled":"","textarea"===this.type?"bs-input__field--textarea":"","chip"===this.type?"bs-input__field--chip":""].filter(Boolean).join(" "),t="dropdown"===this.type;return s("div",{class:"bs-input__field-wrapper"},s("div",{part:"field",class:i,onClick:t?this.onDropdownToggle:void 0,onKeyDown:t?this.onDropdownKeydown:void 0},s("span",{part:"icon",class:"bs-input__icon "+(this.showsIconArea?"bs-input__icon--visible":"")},this.renderIconContent()),this.renderControl(),s("span",{part:"end-icon",class:"bs-input__end-icon "+(this.showsEndIconArea?"bs-input__end-icon--visible":"")},this.renderEndIconContent())),t&&this.open&&this.options.length>0&&s("bs-menu",{part:"menu",class:"bs-input__dropdown-menu",role:"listbox"},this.options.map((i=>s("bs-menu-item",{key:i.value,onBsSelect:this.onDropdownOptionSelect(i)},i.label)))))}renderPinField(){return this.pinInputs=[],s("div",{part:"field",class:`bs-input__field bs-input__field--pin ${this.error?"bs-input__field--error":""} ${this.disabled?"bs-input__field--disabled":""}`},Array.from({length:this.length}).map(((i,t)=>s("input",{id:0===t?"control":void 0,ref:i=>this.pinInputs[t]=i,part:"control",class:"bs-input__pin-cell",type:"text",inputMode:"numeric",maxLength:1,value:this.value[t]??"",disabled:this.disabled,"aria-required":this.required?"true":void 0,onInput:this.onPinInput(t),onKeyDown:this.onPinKeydown(t)}))))}render(){return s("div",{key:"6921873fb72be6f26a2389697f6b2f816d8011a9",class:"bs-input "+(this.error?"bs-input--error":"")},this.label&&s("label",{key:"64ec1ba4a6c8c87db6b45dfd38731adbdfd5d6a8",part:"label",class:"bs-input__label",htmlFor:"control"},this.label,this.required&&s("span",{key:"5176edfc672132f1c6aaec978002851ff27179a0",part:"required",class:"bs-input__required","aria-hidden":"true"},"*")),"pin"===this.type?this.renderPinField():"initials"===this.type?this.renderInitialsField():this.renderField(),this.error?s("span",{id:"description-or-error",part:"error",class:"bs-input__error"},s("svg",{part:"error-icon",class:"bs-input__error-icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},s("circle",{cx:"8",cy:"8",r:"6.5",stroke:"currentColor","stroke-width":"1.2"}),s("path",{d:"M8 5V8.5",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"}),s("circle",{cx:"8",cy:"11",r:"0.75",fill:"currentColor"})),this.error):this.description?s("span",{id:"description-or-error",part:"description",class:"bs-input__description"},this.description):null)}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{value:[{onFormStateChange:0}],type:[{onFormStateChange:0}],chips:[{onFormStateChange:0}],required:[{onFormStateChange:0}]}}},r=()=>s("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},s("path",{d:"M18.75 5.25L5.25 18.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M18.75 18.75L5.25 5.25",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}));n.style=":host{display:block;--bs-input-radius:var(--bs-border-radius-100);--bs-input-height:var(--bs-spacing-550);--bs-input-padding-x:var(--bs-spacing-150);--bs-input-padding-y:var(--bs-spacing-100);--bs-input-gap:var(--bs-spacing-200);--bs-input-icon-size:var(--bs-spacing-300);--bs-input-stack-gap:var(--bs-spacing-50);--bs-input-error-icon-size:var(--bs-spacing-250);--bs-input-field-bg:var(--bs-input-bg-default);--bs-input-field-bg-disabled:var(--bs-input-bg-disabled);--bs-input-field-border:var(--bs-input-border-default);--bs-input-field-border-hover:var(--bs-input-border-hover);--bs-input-field-border-focus:var(--bs-input-border-focus);--bs-input-field-border-error:var(--bs-input-border-error);--bs-input-field-text:var(--bs-input-text);--bs-input-field-placeholder:var(--bs-input-placeholder);--bs-input-label-color:var(--bs-input-label);--bs-input-label-font-size:var(--bs-font-size-sm);--bs-input-label-font-weight:var(--bs-font-weight-medium);--bs-input-label-line-height:normal;--bs-input-description-color:var(--bs-input-description);--bs-input-error-color:var(--bs-input-error);--bs-input-icon-color:var(--bs-icon-muted);--bs-input-icon-color-error:var(--bs-input-icon-error);--bs-input-icon-color-disabled:var(--bs-input-icon-disabled);--bs-input-initials-title-width:80px;--bs-input-initials-gap:var(--bs-spacing-50)}.bs-input{display:flex;flex-direction:column;gap:var(--bs-input-stack-gap);font-family:inherit}.bs-input__label{font-size:var(--bs-input-label-font-size);font-weight:var(--bs-input-label-font-weight);line-height:var(--bs-input-label-line-height);color:var(--bs-input-label-color)}.bs-input__required{color:var(--bs-input-error-color);margin-inline-start:2px}.bs-input__field{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-input-gap);height:var(--bs-input-height);padding:var(--bs-input-padding-y) var(--bs-input-padding-x);border:1px solid var(--bs-input-field-border);border-radius:var(--bs-input-radius);background:var(--bs-input-field-bg)}.bs-input__field:hover:not(.bs-input__field--disabled){border-color:var(--bs-input-field-border-hover)}.bs-input__field:focus-within{border-color:var(--bs-input-field-border-focus)}.bs-input__field--error{border-color:var(--bs-input-field-border-error)}.bs-input__field--disabled{background:var(--bs-input-field-bg-disabled);cursor:not-allowed}.bs-input__control{flex:1;min-width:0;border:none;outline:none;padding:0;background:transparent;color:var(--bs-input-field-text);font-size:var(--bs-font-size-md);font-family:inherit}.bs-input__control::placeholder{color:var(--bs-input-field-placeholder)}.bs-input__control:disabled{color:var(--bs-input-text-disabled);cursor:not-allowed}.bs-input__control::-webkit-strong-password-auto-fill-button,.bs-input__control::-webkit-credentials-auto-fill-button{display:none !important;visibility:hidden;pointer-events:none;position:absolute;inset-inline-end:0}.bs-input__control::-webkit-textfield-decoration-container{visibility:hidden}.bs-input__control::-ms-reveal,.bs-input__control::-ms-clear{display:none}.bs-input--error .bs-input__label{color:var(--bs-input-label-color)}.bs-input__icon,.bs-input__end-icon{display:none;align-items:center;flex-shrink:0;color:var(--bs-input-icon-color)}.bs-input__icon--visible,.bs-input__end-icon--visible{display:flex}.bs-input__icon ::slotted(*),.bs-input__end-icon ::slotted(*){display:block;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__field--error .bs-input__icon,.bs-input__field--error .bs-input__end-icon{color:var(--bs-input-icon-color-error)}.bs-input__field--disabled .bs-input__icon,.bs-input__field--disabled .bs-input__end-icon{color:var(--bs-input-icon-color-disabled)}.bs-input__description{font-size:var(--bs-font-size-xs);color:var(--bs-input-description-color)}.bs-input__error{display:flex;align-items:center;gap:var(--bs-input-stack-gap);font-size:var(--bs-font-size-xs);color:var(--bs-input-error-color)}.bs-input__error-icon{flex-shrink:0;width:var(--bs-input-error-icon-size);height:var(--bs-input-error-icon-size)}.bs-input__field--textarea{height:auto;align-items:flex-start}.bs-input__control--textarea{resize:vertical}.bs-input__stepper{display:flex;flex-direction:column}.bs-input__stepper-btn{display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:inherit;padding:0;cursor:pointer}.bs-input__stepper-btn:disabled{cursor:not-allowed}.bs-input__password-toggle{display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:inherit;padding:0;cursor:pointer;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__password-toggle:disabled{cursor:not-allowed}.bs-input__password-toggle svg{width:100%;height:100%}.bs-input__chevron{width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__field-wrapper{position:relative;width:100%}.bs-input__dropdown-menu{position:absolute;top:calc(100% + var(--bs-input-stack-gap));inset-inline-start:0;inset-inline-end:0;z-index:1}.bs-input__calendar{width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__search-icon{width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__field--chip{flex-wrap:wrap;height:auto;min-height:var(--bs-input-height)}.bs-input__chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--bs-spacing-100);flex:1;min-width:0}.bs-input__chip{--bs-chip-informative-padding-x-plain-side:var(--bs-spacing-150)}.bs-input__chip-remove{--bs-icon-button-size-xs:20px;--bs-icon-button-icon-size-xs:12px;margin-inline-end:calc(var(--bs-spacing-50) * -1)}.bs-input__chip-input{flex:1;min-width:60px}.bs-input__country-select{flex-shrink:0;width:auto;border:none;outline:none;background:transparent;color:var(--bs-input-field-text);font-size:var(--bs-font-size-md);font-family:inherit}.bs-input__title-select,.bs-input__country-select{appearance:none;-webkit-appearance:none;-moz-appearance:none}.bs-input__title-select::-ms-expand,.bs-input__country-select::-ms-expand{display:none}.bs-input__select-chevron{flex-shrink:0;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size);color:var(--bs-input-icon-color);pointer-events:none}.bs-input__field--disabled .bs-input__select-chevron{color:var(--bs-input-icon-color-disabled)}.bs-input__initials-row{display:flex;gap:var(--bs-input-initials-gap);width:100%}.bs-input__field--initials-title{flex:0 0 auto;width:var(--bs-input-initials-title-width);gap:var(--bs-spacing-50)}.bs-input__field--initials-title .bs-input__select-chevron{width:10px;height:10px}.bs-input__field--initials-value{flex:1;min-width:0}.bs-input__country-select{width:auto}.bs-input__field--pin{border:none;padding:0;background:transparent;gap:var(--bs-input-gap)}.bs-input__pin-cell{box-sizing:border-box;width:var(--bs-input-height);height:var(--bs-input-height);text-align:center;border:1px solid var(--bs-input-field-border);border-radius:var(--bs-input-radius);background:var(--bs-input-field-bg);color:var(--bs-input-field-text);font-size:var(--bs-font-size-md);font-family:inherit;outline:none}.bs-input__pin-cell:focus{border-color:var(--bs-input-field-border-focus)}.bs-input__field--pin.bs-input__field--disabled .bs-input__pin-cell{background:var(--bs-input-field-bg-disabled);cursor:not-allowed}.bs-input__field--pin.bs-input__field--error .bs-input__pin-cell{border-color:var(--bs-input-field-border-error)}@media (forced-colors: active){.bs-input__control{border:1px solid FieldText}.bs-input__control:focus-visible{outline:2px solid Highlight;outline-offset:2px}}";const o=class{constructor(t){i(this,t)}get el(){return e(this)}onKeyDown(i){if(!["ArrowDown","ArrowUp","Home","End"].includes(i.key))return;const t=Array.from(this.el.querySelectorAll("bs-menu-item")).filter((i=>!i.disabled));if(0===t.length)return;const e=t.findIndex((t=>t===i.target||t.contains(i.target)));let s;i.preventDefault(),s="Home"===i.key?0:"End"===i.key?t.length-1:"ArrowDown"===i.key?-1===e?0:(e+1)%t.length:-1===e?t.length-1:(e-1+t.length)%t.length,t[s].shadowRoot?.querySelector("button")?.focus()}render(){return s("div",{key:"ba99d3c35c0c7ab4427155ac13e89c434068ef49",part:"list",class:"bs-menu",role:"menu"},s("slot",{key:"817f29507503adcaad013a8035d35bc1f35ffdef"}))}};o.style=":host{display:block;--bs-menu-bg:var(--bs-surface-raised);--bs-menu-radius:var(--bs-border-radius-100);--bs-menu-padding-y:var(--bs-spacing-50);--bs-menu-gap:var(--bs-spacing-50);--bs-menu-shadow:var(--bs-shadow-sm)}.bs-menu{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-menu-gap);background:var(--bs-menu-bg);border-radius:var(--bs-menu-radius);padding:var(--bs-menu-padding-y) 0;box-shadow:var(--bs-menu-shadow);font-family:inherit}@media (forced-colors: active){.bs-menu{border:1px solid CanvasText}}";const a=class{constructor(e){i(this,e),this.bsSelect=t(this,"bsSelect")}disabled=!1;hasIcon=!1;bsSelect;onIconSlotchange=i=>{this.hasIcon=i.target.assignedNodes().length>0};onClick=()=>{this.disabled||this.bsSelect.emit()};render(){return s("button",{key:"419a5d4d35f47ea9cf72b02407a45a7d5645fc4b",type:"button",part:"item",role:"menuitem",class:"bs-menu-item "+(this.disabled?"bs-menu-item--disabled":""),disabled:this.disabled,"aria-disabled":this.disabled?"true":void 0,onClick:this.onClick},s("span",{key:"733f8e5f702496bbb2788cc4db84a9c7c128f1be",part:"icon",class:"bs-menu-item__icon "+(this.hasIcon?"bs-menu-item__icon--has-content":"")},s("slot",{key:"566ca7b7f011090efa131c6bf0fb74515db11fee",name:"icon",onSlotchange:this.onIconSlotchange})),s("span",{key:"c717ab8efef92c338581953c60f617057f9eaadc",part:"label",class:"bs-menu-item__label"},s("slot",{key:"c0006ae3c36798eabfb2e001faade51ec4cc10c9"})))}};a.style=":host{display:block;--bs-menu-item-radius:var(--bs-border-radius-100);--bs-menu-item-padding-y:var(--bs-spacing-100);--bs-menu-item-padding-x:var(--bs-spacing-150);--bs-menu-item-gap:var(--bs-spacing-100);--bs-menu-item-hover:var(--bs-color-neutral-container-hover);--bs-menu-item-pressed:var(--bs-color-neutral-container-pressed);--bs-menu-item-disabled-bg:var(--bs-surface-action-disabled);--bs-menu-item-icon-color:var(--bs-icon-default);--bs-menu-item-icon-color-disabled:var(--bs-icon-disabled);--bs-menu-item-color:var(--bs-text-muted);--bs-menu-item-color-disabled:var(--bs-text-on-disabled);--bs-menu-item-font-size:var(--bs-font-size-md);--bs-menu-item-line-height:var(--bs-line-height-body-md)}.bs-menu-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:48px;border:none;cursor:pointer;background:transparent;color:var(--bs-menu-item-color);font-family:inherit;border-radius:var(--bs-menu-item-radius);padding:var(--bs-menu-item-padding-y) var(--bs-menu-item-padding-x);gap:var(--bs-menu-item-gap);transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-menu-item:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-menu-item:hover{background:var(--bs-menu-item-hover)}.bs-menu-item:active{background:var(--bs-menu-item-pressed)}.bs-menu-item--disabled{background:var(--bs-menu-item-disabled-bg);color:var(--bs-menu-item-color-disabled);cursor:not-allowed}.bs-menu-item--disabled:hover,.bs-menu-item--disabled:active{background:var(--bs-menu-item-disabled-bg)}.bs-menu-item--disabled .bs-menu-item__icon{color:var(--bs-menu-item-icon-color-disabled)}.bs-menu-item__icon{display:none;width:24px;height:24px;flex-shrink:0;color:var(--bs-menu-item-icon-color)}.bs-menu-item__icon--has-content{display:inline-flex;align-items:center;justify-content:center}.bs-menu-item__icon ::slotted(svg){width:24px;height:24px}.bs-menu-item__label{font-size:var(--bs-menu-item-font-size);line-height:calc(var(--bs-menu-item-line-height) * 1px);white-space:nowrap}";export{n as bs_input,o as bs_menu,a as bs_menu_item}