@boostdev/design-system-components 1.1.0 → 1.1.2
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.
- package/AGENTS.md +46 -5
- package/dist/client.cjs +206 -113
- package/dist/client.css +664 -624
- package/dist/client.d.cts +9 -3
- package/dist/client.d.ts +9 -3
- package/dist/client.js +241 -149
- package/dist/index.cjs +206 -113
- package/dist/index.css +664 -624
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +241 -149
- package/dist/web-components/chunk-2QA62WCQ.js +48 -0
- package/dist/web-components/chunk-4BX6AWXX.js +146 -0
- package/dist/web-components/chunk-57TRNCWQ.js +93 -0
- package/dist/web-components/chunk-5IPHEONG.js +139 -0
- package/dist/web-components/chunk-5R6IFELV.js +63 -0
- package/dist/web-components/chunk-5TFWOPLH.js +49 -0
- package/dist/web-components/chunk-6I3CFC26.js +89 -0
- package/dist/web-components/chunk-6T3RKUKG.js +65 -0
- package/dist/web-components/chunk-7FMR53BW.js +127 -0
- package/dist/web-components/chunk-A67LCT7C.js +134 -0
- package/dist/web-components/chunk-AGKJTMJI.js +56 -0
- package/dist/web-components/chunk-BQLZ7I4G.js +56 -0
- package/dist/web-components/chunk-CAPI25CU.js +53 -0
- package/dist/web-components/chunk-CJ5ZOO42.js +229 -0
- package/dist/web-components/chunk-CR5PGUHV.js +109 -0
- package/dist/web-components/chunk-ECW3HHWA.js +185 -0
- package/dist/web-components/chunk-HGBNDR22.js +98 -0
- package/dist/web-components/chunk-IK3PTFZ4.js +133 -0
- package/dist/web-components/chunk-IQGLIQSO.js +188 -0
- package/dist/web-components/chunk-ITHLKR7Q.js +105 -0
- package/dist/web-components/chunk-K5CE6HSB.js +169 -0
- package/dist/web-components/chunk-L3XHOMN6.js +111 -0
- package/dist/{web-components.js → web-components/chunk-LGEZYFUU.js} +62 -834
- package/dist/web-components/chunk-LSC4N56Q.js +168 -0
- package/dist/web-components/chunk-LY62SAVN.js +64 -0
- package/dist/web-components/chunk-O4UFI2RX.js +244 -0
- package/dist/web-components/chunk-O7I63SQX.js +124 -0
- package/dist/web-components/chunk-OHUTLSIQ.js +69 -0
- package/dist/web-components/chunk-OQTRTMAB.js +27 -0
- package/dist/web-components/chunk-OTX4COSV.js +187 -0
- package/dist/web-components/chunk-PY62FTRW.js +179 -0
- package/dist/web-components/chunk-Q4T5BJT6.js +94 -0
- package/dist/web-components/chunk-QDRH46TF.js +281 -0
- package/dist/web-components/chunk-QDST57JC.js +119 -0
- package/dist/web-components/chunk-QPOKHLMQ.js +45 -0
- package/dist/web-components/chunk-SOQQ7RVJ.js +88 -0
- package/dist/web-components/chunk-UFFCKVZE.js +149 -0
- package/dist/web-components/chunk-VM3YHGQ2.js +152 -0
- package/dist/web-components/chunk-VMMVWLXL.js +53 -0
- package/dist/web-components/chunk-VSS5ITNE.js +109 -0
- package/dist/web-components/chunk-XIENXR7H.js +118 -0
- package/dist/web-components/chunk-Y4MAXTMA.js +80 -0
- package/dist/web-components/chunk-YLVTEY23.js +165 -0
- package/dist/web-components/globals.d.ts +2 -0
- package/dist/web-components/globals.js +1 -0
- package/dist/web-components/index.d.ts +41 -0
- package/dist/web-components/index.js +165 -0
- package/dist/web-components/interaction/bds-accordion-item.d.ts +54 -0
- package/dist/web-components/interaction/bds-accordion-item.js +7 -0
- package/dist/web-components/interaction/bds-accordion.d.ts +50 -0
- package/dist/web-components/interaction/bds-accordion.js +7 -0
- package/dist/web-components/interaction/bds-button.d.ts +100 -0
- package/dist/web-components/interaction/bds-button.js +7 -0
- package/dist/web-components/interaction/bds-collapsible.d.ts +52 -0
- package/dist/web-components/interaction/bds-collapsible.js +7 -0
- package/dist/web-components/interaction/bds-dialog.d.ts +56 -0
- package/dist/web-components/interaction/bds-dialog.js +7 -0
- package/dist/web-components/interaction/bds-drawer.d.ts +64 -0
- package/dist/web-components/interaction/bds-drawer.js +7 -0
- package/dist/web-components/interaction/bds-popover.d.ts +62 -0
- package/dist/web-components/interaction/bds-popover.js +7 -0
- package/dist/web-components/interaction/bds-skip-link.d.ts +36 -0
- package/dist/web-components/interaction/bds-skip-link.js +7 -0
- package/dist/web-components/interaction/bds-tab-panel.d.ts +26 -0
- package/dist/web-components/interaction/bds-tab-panel.js +7 -0
- package/dist/web-components/interaction/bds-tab.d.ts +45 -0
- package/dist/web-components/interaction/bds-tab.js +7 -0
- package/dist/web-components/interaction/bds-tabs.d.ts +46 -0
- package/dist/web-components/interaction/bds-tabs.js +7 -0
- package/dist/web-components/interaction/bds-toast-provider.d.ts +57 -0
- package/dist/web-components/interaction/bds-toast-provider.js +7 -0
- package/dist/web-components/interaction/bds-tooltip.d.ts +50 -0
- package/dist/web-components/interaction/bds-tooltip.js +7 -0
- package/dist/web-components/interaction/form/bds-checkbox.d.ts +70 -0
- package/dist/web-components/interaction/form/bds-checkbox.js +7 -0
- package/dist/web-components/interaction/form/bds-combobox.d.ts +84 -0
- package/dist/web-components/interaction/form/bds-combobox.js +7 -0
- package/dist/web-components/interaction/form/bds-file-input.d.ts +62 -0
- package/dist/web-components/interaction/form/bds-file-input.js +7 -0
- package/dist/web-components/interaction/form/bds-number-input.d.ts +68 -0
- package/dist/web-components/interaction/form/bds-number-input.js +7 -0
- package/dist/web-components/interaction/form/bds-radio.d.ts +68 -0
- package/dist/web-components/interaction/form/bds-radio.js +7 -0
- package/dist/web-components/interaction/form/bds-segmented-control.d.ts +71 -0
- package/dist/web-components/interaction/form/bds-segmented-control.js +7 -0
- package/dist/web-components/interaction/form/bds-select.d.ts +79 -0
- package/dist/web-components/interaction/form/bds-select.js +7 -0
- package/dist/web-components/interaction/form/bds-slider.d.ts +70 -0
- package/dist/web-components/interaction/form/bds-slider.js +7 -0
- package/dist/web-components/interaction/form/bds-switch.d.ts +67 -0
- package/dist/web-components/interaction/form/bds-switch.js +7 -0
- package/dist/web-components/interaction/form/bds-textarea.d.ts +70 -0
- package/dist/web-components/interaction/form/bds-textarea.js +7 -0
- package/dist/web-components/ui/bds-alert.d.ts +66 -0
- package/dist/web-components/ui/bds-alert.js +7 -0
- package/dist/web-components/ui/bds-avatar.d.ts +50 -0
- package/dist/web-components/ui/bds-avatar.js +7 -0
- package/dist/web-components/ui/bds-badge.d.ts +35 -0
- package/dist/web-components/ui/bds-badge.js +7 -0
- package/dist/web-components/ui/bds-breadcrumb.d.ts +35 -0
- package/dist/web-components/ui/bds-breadcrumb.js +7 -0
- package/dist/web-components/ui/bds-card.d.ts +72 -0
- package/dist/web-components/ui/bds-card.js +7 -0
- package/dist/web-components/ui/bds-description-list.d.ts +42 -0
- package/dist/web-components/ui/bds-description-list.js +7 -0
- package/dist/web-components/ui/bds-icon-wrapper.d.ts +39 -0
- package/dist/web-components/ui/bds-icon-wrapper.js +7 -0
- package/dist/web-components/ui/bds-link.d.ts +59 -0
- package/dist/web-components/ui/bds-link.js +7 -0
- package/dist/web-components/ui/bds-loading.d.ts +32 -0
- package/dist/web-components/ui/bds-loading.js +7 -0
- package/dist/web-components/ui/bds-notification-banner.d.ts +61 -0
- package/dist/web-components/ui/bds-notification-banner.js +7 -0
- package/dist/web-components/ui/bds-progress-circle.d.ts +53 -0
- package/dist/web-components/ui/bds-progress-circle.js +7 -0
- package/dist/web-components/ui/bds-progress.d.ts +54 -0
- package/dist/web-components/ui/bds-progress.js +7 -0
- package/dist/web-components/ui/bds-rating.d.ts +36 -0
- package/dist/web-components/ui/bds-rating.js +7 -0
- package/dist/web-components/ui/bds-section-header.d.ts +53 -0
- package/dist/web-components/ui/bds-section-header.js +8 -0
- package/dist/web-components/ui/bds-separator.d.ts +32 -0
- package/dist/web-components/ui/bds-separator.js +7 -0
- package/dist/web-components/ui/bds-skeleton.d.ts +22 -0
- package/dist/web-components/ui/bds-skeleton.js +7 -0
- package/dist/web-components/ui/bds-typography.d.ts +44 -0
- package/dist/web-components/ui/bds-typography.js +8 -0
- package/package.json +169 -4
- package/src/components/interaction/Button/Button.module.css +1 -1
- package/src/components/interaction/Button/Button.native.mdx +72 -0
- package/src/components/interaction/Command/Command.module.css +7 -7
- package/src/components/interaction/Command/Command.spec.tsx +37 -0
- package/src/components/interaction/Command/Command.tsx +37 -2
- package/src/components/interaction/Dialog/Dialog.module.css +10 -13
- package/src/components/interaction/Dialog/Dialog.spec.tsx +53 -1
- package/src/components/interaction/Dialog/Dialog.stories.tsx +17 -0
- package/src/components/interaction/Dialog/Dialog.tsx +50 -16
- package/src/components/interaction/Drawer/Drawer.module.css +11 -11
- package/src/components/interaction/Drawer/Drawer.spec.tsx +48 -1
- package/src/components/interaction/Drawer/Drawer.tsx +38 -4
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +6 -6
- package/src/components/interaction/Popover/Popover.module.css +74 -15
- package/src/components/interaction/Popover/Popover.spec.tsx +94 -59
- package/src/components/interaction/Popover/Popover.tsx +44 -60
- package/src/components/interaction/Toast/Toast.module.css +7 -7
- package/src/components/interaction/form/Checkbox/Checkbox.module.css +6 -6
- package/src/components/interaction/form/Checkbox/Checkbox.native.mdx +74 -0
- package/src/components/interaction/form/Combobox/Combobox.module.css +7 -8
- package/src/components/interaction/form/FileInput/FileInput.module.css +4 -4
- package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -1
- package/src/components/interaction/form/Radio/Radio.module.css +6 -6
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +5 -6
- package/src/components/interaction/form/Select/Select.module.css +3 -3
- package/src/components/interaction/form/Slider/Slider.module.css +6 -6
- package/src/components/interaction/form/Switch/Switch.module.css +8 -8
- package/src/components/interaction/form/Textarea/Textarea.module.css +1 -1
- package/src/components/layout/IconWrapper/IconWrapper.module.css +2 -2
- package/src/components/ui/Accordion/Accordion.module.css +5 -5
- package/src/components/ui/Alert/Alert.native.mdx +62 -0
- package/src/components/ui/Avatar/Avatar.native.mdx +50 -0
- package/src/components/ui/Badge/Badge.native.mdx +54 -0
- package/src/components/ui/Calendar/Calendar.module.css +7 -7
- package/src/components/ui/Carousel/Carousel.module.css +5 -5
- package/src/components/ui/Collapsible/Collapsible.module.css +4 -4
- package/src/components/ui/Link/Link.module.css +2 -2
- package/src/components/ui/Loading/Loading.module.css +7 -7
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +3 -3
- package/src/components/ui/Pagination/Pagination.module.css +6 -6
- package/src/components/ui/Progress/Progress.module.css +5 -5
- package/src/components/ui/Separator/Separator.module.css +3 -3
- package/src/components/ui/Skeleton/Skeleton.module.css +1 -1
- package/src/components/ui/Table/Table.module.css +9 -9
- package/src/components/ui/Tabs/Tabs.module.css +3 -3
- package/src/components/ui/Tooltip/Tooltip.module.css +8 -8
- package/src/components/ui/Typography/Typography.native.mdx +56 -0
- package/src/polyfill-invoker-commands.ts +68 -0
- package/src/react-augment.d.ts +19 -0
- package/src/stories/ReactNative.mdx +121 -0
- package/src/web-components/index.ts +47 -0
- package/src/web-components/interaction/BdsButton.mdx +106 -0
- package/src/web-components/interaction/BdsPopover.mdx +120 -0
- package/src/web-components/interaction/BdsToastProvider.mdx +94 -0
- package/src/web-components/interaction/bds-accordion-item.spec.ts +75 -0
- package/src/web-components/interaction/bds-accordion-item.ts +181 -0
- package/src/web-components/interaction/bds-accordion.spec.ts +73 -0
- package/src/web-components/interaction/bds-accordion.ts +99 -0
- package/src/web-components/interaction/bds-collapsible.spec.ts +56 -0
- package/src/web-components/interaction/bds-collapsible.ts +170 -0
- package/src/web-components/interaction/bds-dialog.spec.ts +119 -0
- package/src/web-components/interaction/bds-dialog.ts +224 -0
- package/src/web-components/interaction/bds-drawer.spec.ts +113 -0
- package/src/web-components/interaction/bds-drawer.ts +266 -0
- package/src/web-components/interaction/bds-popover.spec.ts +49 -1
- package/src/web-components/interaction/bds-popover.ts +12 -0
- package/src/web-components/interaction/bds-skip-link.spec.ts +42 -0
- package/src/web-components/interaction/bds-skip-link.ts +74 -0
- package/src/web-components/interaction/bds-tab-panel.spec.ts +32 -0
- package/src/web-components/interaction/bds-tab-panel.ts +38 -0
- package/src/web-components/interaction/bds-tab.spec.ts +71 -0
- package/src/web-components/interaction/bds-tab.ts +110 -0
- package/src/web-components/interaction/bds-tabs.spec.ts +120 -0
- package/src/web-components/interaction/bds-tabs.ts +152 -0
- package/src/web-components/interaction/bds-tooltip.spec.ts +49 -0
- package/src/web-components/interaction/bds-tooltip.ts +127 -0
- package/src/web-components/interaction/form/bds-checkbox.spec.ts +63 -0
- package/src/web-components/interaction/form/bds-checkbox.ts +168 -0
- package/src/web-components/interaction/form/bds-combobox.spec.ts +117 -0
- package/src/web-components/interaction/form/bds-combobox.ts +336 -0
- package/src/web-components/interaction/form/bds-file-input.spec.ts +58 -0
- package/src/web-components/interaction/form/bds-file-input.ts +209 -0
- package/src/web-components/interaction/form/bds-number-input.spec.ts +87 -0
- package/src/web-components/interaction/form/bds-number-input.ts +221 -0
- package/src/web-components/interaction/form/bds-radio.spec.ts +70 -0
- package/src/web-components/interaction/form/bds-radio.ts +157 -0
- package/src/web-components/interaction/form/bds-segmented-control.spec.ts +74 -0
- package/src/web-components/interaction/form/bds-segmented-control.ts +211 -0
- package/src/web-components/interaction/form/bds-select.spec.ts +74 -0
- package/src/web-components/interaction/form/bds-select.ts +190 -0
- package/src/web-components/interaction/form/bds-slider.spec.ts +41 -0
- package/src/web-components/interaction/form/bds-slider.ts +162 -0
- package/src/web-components/interaction/form/bds-switch.spec.ts +62 -0
- package/src/web-components/interaction/form/bds-switch.ts +166 -0
- package/src/web-components/interaction/form/bds-textarea.spec.ts +55 -0
- package/src/web-components/interaction/form/bds-textarea.ts +143 -0
- package/src/web-components/test/helpers.ts +8 -0
- package/src/web-components/ui/BdsAlert.mdx +90 -0
- package/src/web-components/ui/BdsBadge.mdx +74 -0
- package/src/web-components/ui/bds-avatar.spec.ts +75 -0
- package/src/web-components/ui/bds-avatar.ts +122 -0
- package/src/web-components/ui/bds-breadcrumb.spec.ts +55 -0
- package/src/web-components/ui/bds-breadcrumb.ts +114 -0
- package/src/web-components/ui/bds-card.spec.ts +70 -0
- package/src/web-components/ui/bds-card.ts +156 -0
- package/src/web-components/ui/bds-description-list.spec.ts +36 -0
- package/src/web-components/ui/bds-description-list.ts +79 -0
- package/src/web-components/ui/bds-icon-wrapper.spec.ts +21 -0
- package/src/web-components/ui/bds-icon-wrapper.ts +68 -0
- package/src/web-components/ui/bds-link.spec.ts +72 -0
- package/src/web-components/ui/bds-link.ts +138 -0
- package/src/web-components/ui/bds-loading.spec.ts +38 -0
- package/src/web-components/ui/bds-loading.ts +76 -0
- package/src/web-components/ui/bds-notification-banner.spec.ts +82 -0
- package/src/web-components/ui/bds-notification-banner.ts +185 -0
- package/src/web-components/ui/bds-progress-circle.spec.ts +58 -0
- package/src/web-components/ui/bds-progress-circle.ts +142 -0
- package/src/web-components/ui/bds-progress.spec.ts +66 -0
- package/src/web-components/ui/bds-progress.ts +127 -0
- package/src/web-components/ui/bds-rating.spec.ts +70 -0
- package/src/web-components/ui/bds-rating.ts +80 -0
- package/src/web-components/ui/bds-section-header.spec.ts +57 -0
- package/src/web-components/ui/bds-section-header.ts +96 -0
- package/src/web-components/ui/bds-separator.spec.ts +50 -0
- package/src/web-components/ui/bds-separator.ts +66 -0
- package/src/web-components/ui/bds-skeleton.spec.ts +22 -0
- package/src/web-components/ui/bds-skeleton.ts +55 -0
- package/src/web-components/ui/bds-typography.spec.ts +76 -0
- package/src/web-components/ui/bds-typography.ts +112 -0
- package/dist/web-components.d.ts +0 -303
package/dist/web-components.d.ts
DELETED
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
import * as lit from 'lit';
|
|
2
|
-
import { LitElement } from 'lit';
|
|
3
|
-
|
|
4
|
-
type BadgeVariant = 'primary' | 'secondary' | 'success' | 'error' | 'warning';
|
|
5
|
-
/**
|
|
6
|
-
* `<bds-badge>` — framework-agnostic Badge custom element.
|
|
7
|
-
*
|
|
8
|
-
* Attributes:
|
|
9
|
-
* variant — "primary" (default) | "secondary" | "success" | "error" | "warning"
|
|
10
|
-
*
|
|
11
|
-
* Slots:
|
|
12
|
-
* (default) — badge label text / content
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* <bds-badge variant="success">New</bds-badge>
|
|
16
|
-
*/
|
|
17
|
-
declare class BdsBadge extends LitElement {
|
|
18
|
-
static styles: lit.CSSResult;
|
|
19
|
-
static properties: {
|
|
20
|
-
variant: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
reflect: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
variant: BadgeVariant;
|
|
26
|
-
constructor();
|
|
27
|
-
render(): lit.TemplateResult<1>;
|
|
28
|
-
}
|
|
29
|
-
declare global {
|
|
30
|
-
interface HTMLElementTagNameMap {
|
|
31
|
-
'bds-badge': BdsBadge;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
type ButtonVariant = 'default' | 'ghost';
|
|
36
|
-
type ButtonSize = 'small' | 'medium' | 'large';
|
|
37
|
-
/**
|
|
38
|
-
* `<bds-button>` — framework-agnostic Button custom element.
|
|
39
|
-
*
|
|
40
|
-
* Attributes:
|
|
41
|
-
* variant — "default" (filled, default) | "ghost" (transparent + outlined)
|
|
42
|
-
* size — "small" | "medium" (default) | "large"
|
|
43
|
-
* disabled — boolean
|
|
44
|
-
* href — renders an <a> tag instead of <button>
|
|
45
|
-
* target — forwarded to <a> when href is set
|
|
46
|
-
* rel — forwarded to <a> when href is set
|
|
47
|
-
* has-pulse — boolean, enables the pulse ring animation
|
|
48
|
-
* type — "button" (default) | "submit" | "reset"
|
|
49
|
-
*
|
|
50
|
-
* Slots:
|
|
51
|
-
* (default) — button label
|
|
52
|
-
* icon-start — icon placed before the label
|
|
53
|
-
* icon-end — icon placed after the label
|
|
54
|
-
*
|
|
55
|
-
* Events:
|
|
56
|
-
* click — standard DOM click (disabled buttons suppress it and set aria-disabled)
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* <bds-button variant="ghost" size="small">
|
|
60
|
-
* <svg slot="icon-start">…</svg>
|
|
61
|
-
* Save
|
|
62
|
-
* </bds-button>
|
|
63
|
-
*/
|
|
64
|
-
declare class BdsButton extends LitElement {
|
|
65
|
-
static styles: lit.CSSResult;
|
|
66
|
-
static properties: {
|
|
67
|
-
variant: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
reflect: boolean;
|
|
70
|
-
};
|
|
71
|
-
size: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
reflect: boolean;
|
|
74
|
-
};
|
|
75
|
-
disabled: {
|
|
76
|
-
type: BooleanConstructor;
|
|
77
|
-
reflect: boolean;
|
|
78
|
-
};
|
|
79
|
-
href: {
|
|
80
|
-
type: StringConstructor;
|
|
81
|
-
};
|
|
82
|
-
target: {
|
|
83
|
-
type: StringConstructor;
|
|
84
|
-
};
|
|
85
|
-
rel: {
|
|
86
|
-
type: StringConstructor;
|
|
87
|
-
};
|
|
88
|
-
hasPulse: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
attribute: string;
|
|
91
|
-
reflect: boolean;
|
|
92
|
-
};
|
|
93
|
-
type: {
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
};
|
|
96
|
-
ariaLabel: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
attribute: string;
|
|
99
|
-
};
|
|
100
|
-
_iconStartFilled: {
|
|
101
|
-
state: boolean;
|
|
102
|
-
};
|
|
103
|
-
_iconEndFilled: {
|
|
104
|
-
state: boolean;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
variant: ButtonVariant;
|
|
108
|
-
size: ButtonSize;
|
|
109
|
-
disabled: boolean;
|
|
110
|
-
href: string | undefined;
|
|
111
|
-
target: string | undefined;
|
|
112
|
-
rel: string | undefined;
|
|
113
|
-
hasPulse: boolean;
|
|
114
|
-
type: 'button' | 'submit' | 'reset';
|
|
115
|
-
ariaLabel: string | null;
|
|
116
|
-
private _iconStartFilled;
|
|
117
|
-
private _iconEndFilled;
|
|
118
|
-
constructor();
|
|
119
|
-
private _onIconSlotChange;
|
|
120
|
-
private get _classes();
|
|
121
|
-
private _handleAnchorClick;
|
|
122
|
-
private _iconSlot;
|
|
123
|
-
render(): lit.TemplateResult<1>;
|
|
124
|
-
}
|
|
125
|
-
declare global {
|
|
126
|
-
interface HTMLElementTagNameMap {
|
|
127
|
-
'bds-button': BdsButton;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
132
|
-
/**
|
|
133
|
-
* `<bds-alert>` — framework-agnostic Alert custom element.
|
|
134
|
-
*
|
|
135
|
-
* Attributes:
|
|
136
|
-
* variant — "info" (default) | "success" | "warning" | "error"
|
|
137
|
-
* title — optional heading above the body text
|
|
138
|
-
* dismissible — boolean; shows a dismiss button when present
|
|
139
|
-
*
|
|
140
|
-
* Slots:
|
|
141
|
-
* (default) — alert body content
|
|
142
|
-
* icon — optional icon displayed to the left of the content
|
|
143
|
-
*
|
|
144
|
-
* Events:
|
|
145
|
-
* bds-dismiss — fired (bubbles, composed) when the dismiss button is clicked
|
|
146
|
-
*
|
|
147
|
-
* Accessibility:
|
|
148
|
-
* role="alert" + aria-live="assertive" for error/warning variants,
|
|
149
|
-
* role="status" + aria-live="polite" for info/success variants.
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
* <bds-alert variant="success" title="Saved!">Your changes have been saved.</bds-alert>
|
|
153
|
-
*
|
|
154
|
-
* <bds-alert variant="error" dismissible>
|
|
155
|
-
* <svg slot="icon">…</svg>
|
|
156
|
-
* Something went wrong.
|
|
157
|
-
* </bds-alert>
|
|
158
|
-
*/
|
|
159
|
-
declare class BdsAlert extends LitElement {
|
|
160
|
-
static styles: lit.CSSResult;
|
|
161
|
-
static properties: {
|
|
162
|
-
variant: {
|
|
163
|
-
type: StringConstructor;
|
|
164
|
-
reflect: boolean;
|
|
165
|
-
};
|
|
166
|
-
title: {
|
|
167
|
-
type: StringConstructor;
|
|
168
|
-
};
|
|
169
|
-
dismissible: {
|
|
170
|
-
type: BooleanConstructor;
|
|
171
|
-
reflect: boolean;
|
|
172
|
-
};
|
|
173
|
-
_iconFilled: {
|
|
174
|
-
state: boolean;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
variant: AlertVariant;
|
|
178
|
-
title: string;
|
|
179
|
-
dismissible: boolean;
|
|
180
|
-
private _iconFilled;
|
|
181
|
-
constructor();
|
|
182
|
-
private _onIconSlotChange;
|
|
183
|
-
private get _isUrgent();
|
|
184
|
-
private _handleDismiss;
|
|
185
|
-
render(): lit.TemplateResult<1>;
|
|
186
|
-
}
|
|
187
|
-
declare global {
|
|
188
|
-
interface HTMLElementTagNameMap {
|
|
189
|
-
'bds-alert': BdsAlert;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
type PopoverPlacement = 'bottom' | 'top' | 'left' | 'right';
|
|
194
|
-
/**
|
|
195
|
-
* `<bds-popover>` — framework-agnostic Popover custom element.
|
|
196
|
-
*
|
|
197
|
-
* Uses CSS Anchor Positioning within the shadow DOM so the panel stays
|
|
198
|
-
* anchored to the trigger and automatically repositions when it would
|
|
199
|
-
* overflow the viewport (`@position-try` fallbacks).
|
|
200
|
-
*
|
|
201
|
-
* Attributes:
|
|
202
|
-
* placement — "bottom" (default) | "top" | "left" | "right"
|
|
203
|
-
* open — boolean; reflects whether the panel is visible
|
|
204
|
-
*
|
|
205
|
-
* Slots:
|
|
206
|
-
* trigger — the element that opens/closes the panel on click
|
|
207
|
-
* (default) — panel content
|
|
208
|
-
*
|
|
209
|
-
* Events:
|
|
210
|
-
* bds-open — fired (bubbles, composed) when the panel opens
|
|
211
|
-
* bds-close — fired (bubbles, composed) when the panel closes
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
* <bds-popover placement="bottom">
|
|
215
|
-
* <button slot="trigger">Open</button>
|
|
216
|
-
* <p>Panel content here</p>
|
|
217
|
-
* </bds-popover>
|
|
218
|
-
*/
|
|
219
|
-
declare class BdsPopover extends LitElement {
|
|
220
|
-
static styles: lit.CSSResult;
|
|
221
|
-
static properties: {
|
|
222
|
-
placement: {
|
|
223
|
-
type: StringConstructor;
|
|
224
|
-
reflect: boolean;
|
|
225
|
-
};
|
|
226
|
-
open: {
|
|
227
|
-
type: BooleanConstructor;
|
|
228
|
-
reflect: boolean;
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
placement: PopoverPlacement;
|
|
232
|
-
open: boolean;
|
|
233
|
-
private _anchorName;
|
|
234
|
-
constructor();
|
|
235
|
-
connectedCallback(): void;
|
|
236
|
-
disconnectedCallback(): void;
|
|
237
|
-
private _onKeydown;
|
|
238
|
-
private _onOutsideClick;
|
|
239
|
-
private _toggle;
|
|
240
|
-
private _open;
|
|
241
|
-
private _close;
|
|
242
|
-
render(): lit.TemplateResult<1>;
|
|
243
|
-
}
|
|
244
|
-
declare global {
|
|
245
|
-
interface HTMLElementTagNameMap {
|
|
246
|
-
'bds-popover': BdsPopover;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
type ToastVariant = 'success' | 'error' | 'info' | 'warning';
|
|
251
|
-
/**
|
|
252
|
-
* `<bds-toast-provider>` — framework-agnostic Toast provider custom element.
|
|
253
|
-
*
|
|
254
|
-
* Wraps page content and manages a `popover="manual"` toast container that
|
|
255
|
-
* renders in the browser top layer — above all fixed/sticky elements without
|
|
256
|
-
* needing a z-index.
|
|
257
|
-
*
|
|
258
|
-
* Usage:
|
|
259
|
-
* // Instance method (direct reference)
|
|
260
|
-
* provider.showToast('Saved!', 'success');
|
|
261
|
-
*
|
|
262
|
-
* // Static convenience (finds the first provider in the DOM)
|
|
263
|
-
* BdsToastProvider.show('Something went wrong', 'error');
|
|
264
|
-
*
|
|
265
|
-
* // Event-driven (no import required)
|
|
266
|
-
* document.dispatchEvent(new CustomEvent('bds-show-toast', {
|
|
267
|
-
* detail: { message: 'Hello', variant: 'info' }
|
|
268
|
-
* }));
|
|
269
|
-
*
|
|
270
|
-
* Slots:
|
|
271
|
-
* (default) — page content; the host uses display:contents so layout
|
|
272
|
-
* is unaffected
|
|
273
|
-
*
|
|
274
|
-
* @example
|
|
275
|
-
* <bds-toast-provider>
|
|
276
|
-
* <main>…</main>
|
|
277
|
-
* </bds-toast-provider>
|
|
278
|
-
*/
|
|
279
|
-
declare class BdsToastProvider extends LitElement {
|
|
280
|
-
static styles: lit.CSSResult;
|
|
281
|
-
static properties: {
|
|
282
|
-
_toasts: {
|
|
283
|
-
state: boolean;
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
private _toasts;
|
|
287
|
-
constructor();
|
|
288
|
-
connectedCallback(): void;
|
|
289
|
-
disconnectedCallback(): void;
|
|
290
|
-
updated(): void;
|
|
291
|
-
showToast(message: string, variant?: ToastVariant): void;
|
|
292
|
-
private _removeToast;
|
|
293
|
-
private _onShowToastEvent;
|
|
294
|
-
static show(message: string, variant?: ToastVariant): void;
|
|
295
|
-
render(): lit.TemplateResult<1>;
|
|
296
|
-
}
|
|
297
|
-
declare global {
|
|
298
|
-
interface HTMLElementTagNameMap {
|
|
299
|
-
'bds-toast-provider': BdsToastProvider;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export { BdsAlert, BdsBadge, BdsButton, BdsPopover, BdsToastProvider };
|