@boostdev/design-system-components 1.1.1 → 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/dist/client.cjs +50 -50
- package/dist/client.css +456 -456
- package/dist/client.js +50 -50
- package/dist/index.cjs +50 -50
- package/dist/index.css +456 -456
- package/dist/index.js +50 -50
- 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 -844
- 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/web-components/index.ts +47 -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-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/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 -304
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-separator>` — framework-agnostic Separator custom element.
|
|
6
|
+
*
|
|
7
|
+
* Attributes:
|
|
8
|
+
* orientation — "horizontal" (default) | "vertical"
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <bds-separator></bds-separator>
|
|
12
|
+
* <bds-separator orientation="vertical"></bds-separator>
|
|
13
|
+
*/
|
|
14
|
+
declare class BdsSeparator extends LitElement {
|
|
15
|
+
static styles: lit.CSSResult;
|
|
16
|
+
static properties: {
|
|
17
|
+
orientation: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
reflect: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
orientation: 'horizontal' | 'vertical';
|
|
23
|
+
constructor();
|
|
24
|
+
render(): lit.TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'bds-separator': BdsSeparator;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { BdsSeparator };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-skeleton>` — framework-agnostic Skeleton loading placeholder custom element.
|
|
6
|
+
*
|
|
7
|
+
* No attributes. The host inherits width/height from its container or inline styles.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <bds-skeleton style="width: 200px; height: 1rem;"></bds-skeleton>
|
|
11
|
+
*/
|
|
12
|
+
declare class BdsSkeleton extends LitElement {
|
|
13
|
+
static styles: lit.CSSResult;
|
|
14
|
+
render(): lit.TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'bds-skeleton': BdsSkeleton;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { BdsSkeleton };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'body' | 'body_s';
|
|
5
|
+
/**
|
|
6
|
+
* `<bds-typography>` — framework-agnostic Typography custom element.
|
|
7
|
+
*
|
|
8
|
+
* Renders slotted content inside the appropriate semantic HTML element.
|
|
9
|
+
*
|
|
10
|
+
* Attributes:
|
|
11
|
+
* variant — "h1" | "h2" | "h3" | "body" (default) | "body_s"
|
|
12
|
+
* component — override the rendered tag name (e.g. "span", "label")
|
|
13
|
+
*
|
|
14
|
+
* Slots:
|
|
15
|
+
* (default) — text content
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <bds-typography variant="h1">Page title</bds-typography>
|
|
19
|
+
* <bds-typography variant="body_s" component="span">Small text</bds-typography>
|
|
20
|
+
*/
|
|
21
|
+
declare class BdsTypography extends LitElement {
|
|
22
|
+
static styles: lit.CSSResult;
|
|
23
|
+
static properties: {
|
|
24
|
+
variant: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
reflect: boolean;
|
|
27
|
+
};
|
|
28
|
+
component: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
variant: TypographyVariant;
|
|
33
|
+
component: string;
|
|
34
|
+
constructor();
|
|
35
|
+
private get _tag();
|
|
36
|
+
render(): lit.TemplateResult;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'bds-typography': BdsTypography;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { BdsTypography, type TypographyVariant };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boostdev/design-system-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "BoostDev React component library: accessible, token-driven components built on @boostdev/design-system-foundation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -37,8 +37,171 @@
|
|
|
37
37
|
"require": "./dist/client.cjs"
|
|
38
38
|
},
|
|
39
39
|
"./web-components": {
|
|
40
|
-
"types": "./dist/web-components.d.ts",
|
|
41
|
-
"import": "./dist/web-components.js"
|
|
40
|
+
"types": "./dist/web-components/index.d.ts",
|
|
41
|
+
"import": "./dist/web-components/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./web-components/globals": {
|
|
44
|
+
"import": "./dist/web-components/globals.js"
|
|
45
|
+
},
|
|
46
|
+
"./web-components/ui/bds-alert": {
|
|
47
|
+
"types": "./dist/web-components/ui/bds-alert.d.ts",
|
|
48
|
+
"import": "./dist/web-components/ui/bds-alert.js"
|
|
49
|
+
},
|
|
50
|
+
"./web-components/ui/bds-avatar": {
|
|
51
|
+
"types": "./dist/web-components/ui/bds-avatar.d.ts",
|
|
52
|
+
"import": "./dist/web-components/ui/bds-avatar.js"
|
|
53
|
+
},
|
|
54
|
+
"./web-components/ui/bds-badge": {
|
|
55
|
+
"types": "./dist/web-components/ui/bds-badge.d.ts",
|
|
56
|
+
"import": "./dist/web-components/ui/bds-badge.js"
|
|
57
|
+
},
|
|
58
|
+
"./web-components/ui/bds-breadcrumb": {
|
|
59
|
+
"types": "./dist/web-components/ui/bds-breadcrumb.d.ts",
|
|
60
|
+
"import": "./dist/web-components/ui/bds-breadcrumb.js"
|
|
61
|
+
},
|
|
62
|
+
"./web-components/ui/bds-card": {
|
|
63
|
+
"types": "./dist/web-components/ui/bds-card.d.ts",
|
|
64
|
+
"import": "./dist/web-components/ui/bds-card.js"
|
|
65
|
+
},
|
|
66
|
+
"./web-components/ui/bds-description-list": {
|
|
67
|
+
"types": "./dist/web-components/ui/bds-description-list.d.ts",
|
|
68
|
+
"import": "./dist/web-components/ui/bds-description-list.js"
|
|
69
|
+
},
|
|
70
|
+
"./web-components/ui/bds-icon-wrapper": {
|
|
71
|
+
"types": "./dist/web-components/ui/bds-icon-wrapper.d.ts",
|
|
72
|
+
"import": "./dist/web-components/ui/bds-icon-wrapper.js"
|
|
73
|
+
},
|
|
74
|
+
"./web-components/ui/bds-link": {
|
|
75
|
+
"types": "./dist/web-components/ui/bds-link.d.ts",
|
|
76
|
+
"import": "./dist/web-components/ui/bds-link.js"
|
|
77
|
+
},
|
|
78
|
+
"./web-components/ui/bds-loading": {
|
|
79
|
+
"types": "./dist/web-components/ui/bds-loading.d.ts",
|
|
80
|
+
"import": "./dist/web-components/ui/bds-loading.js"
|
|
81
|
+
},
|
|
82
|
+
"./web-components/ui/bds-notification-banner": {
|
|
83
|
+
"types": "./dist/web-components/ui/bds-notification-banner.d.ts",
|
|
84
|
+
"import": "./dist/web-components/ui/bds-notification-banner.js"
|
|
85
|
+
},
|
|
86
|
+
"./web-components/ui/bds-progress": {
|
|
87
|
+
"types": "./dist/web-components/ui/bds-progress.d.ts",
|
|
88
|
+
"import": "./dist/web-components/ui/bds-progress.js"
|
|
89
|
+
},
|
|
90
|
+
"./web-components/ui/bds-progress-circle": {
|
|
91
|
+
"types": "./dist/web-components/ui/bds-progress-circle.d.ts",
|
|
92
|
+
"import": "./dist/web-components/ui/bds-progress-circle.js"
|
|
93
|
+
},
|
|
94
|
+
"./web-components/ui/bds-rating": {
|
|
95
|
+
"types": "./dist/web-components/ui/bds-rating.d.ts",
|
|
96
|
+
"import": "./dist/web-components/ui/bds-rating.js"
|
|
97
|
+
},
|
|
98
|
+
"./web-components/ui/bds-section-header": {
|
|
99
|
+
"types": "./dist/web-components/ui/bds-section-header.d.ts",
|
|
100
|
+
"import": "./dist/web-components/ui/bds-section-header.js"
|
|
101
|
+
},
|
|
102
|
+
"./web-components/ui/bds-separator": {
|
|
103
|
+
"types": "./dist/web-components/ui/bds-separator.d.ts",
|
|
104
|
+
"import": "./dist/web-components/ui/bds-separator.js"
|
|
105
|
+
},
|
|
106
|
+
"./web-components/ui/bds-skeleton": {
|
|
107
|
+
"types": "./dist/web-components/ui/bds-skeleton.d.ts",
|
|
108
|
+
"import": "./dist/web-components/ui/bds-skeleton.js"
|
|
109
|
+
},
|
|
110
|
+
"./web-components/ui/bds-typography": {
|
|
111
|
+
"types": "./dist/web-components/ui/bds-typography.d.ts",
|
|
112
|
+
"import": "./dist/web-components/ui/bds-typography.js"
|
|
113
|
+
},
|
|
114
|
+
"./web-components/interaction/bds-accordion": {
|
|
115
|
+
"types": "./dist/web-components/interaction/bds-accordion.d.ts",
|
|
116
|
+
"import": "./dist/web-components/interaction/bds-accordion.js"
|
|
117
|
+
},
|
|
118
|
+
"./web-components/interaction/bds-accordion-item": {
|
|
119
|
+
"types": "./dist/web-components/interaction/bds-accordion-item.d.ts",
|
|
120
|
+
"import": "./dist/web-components/interaction/bds-accordion-item.js"
|
|
121
|
+
},
|
|
122
|
+
"./web-components/interaction/bds-button": {
|
|
123
|
+
"types": "./dist/web-components/interaction/bds-button.d.ts",
|
|
124
|
+
"import": "./dist/web-components/interaction/bds-button.js"
|
|
125
|
+
},
|
|
126
|
+
"./web-components/interaction/bds-collapsible": {
|
|
127
|
+
"types": "./dist/web-components/interaction/bds-collapsible.d.ts",
|
|
128
|
+
"import": "./dist/web-components/interaction/bds-collapsible.js"
|
|
129
|
+
},
|
|
130
|
+
"./web-components/interaction/bds-dialog": {
|
|
131
|
+
"types": "./dist/web-components/interaction/bds-dialog.d.ts",
|
|
132
|
+
"import": "./dist/web-components/interaction/bds-dialog.js"
|
|
133
|
+
},
|
|
134
|
+
"./web-components/interaction/bds-drawer": {
|
|
135
|
+
"types": "./dist/web-components/interaction/bds-drawer.d.ts",
|
|
136
|
+
"import": "./dist/web-components/interaction/bds-drawer.js"
|
|
137
|
+
},
|
|
138
|
+
"./web-components/interaction/bds-popover": {
|
|
139
|
+
"types": "./dist/web-components/interaction/bds-popover.d.ts",
|
|
140
|
+
"import": "./dist/web-components/interaction/bds-popover.js"
|
|
141
|
+
},
|
|
142
|
+
"./web-components/interaction/bds-skip-link": {
|
|
143
|
+
"types": "./dist/web-components/interaction/bds-skip-link.d.ts",
|
|
144
|
+
"import": "./dist/web-components/interaction/bds-skip-link.js"
|
|
145
|
+
},
|
|
146
|
+
"./web-components/interaction/bds-tab": {
|
|
147
|
+
"types": "./dist/web-components/interaction/bds-tab.d.ts",
|
|
148
|
+
"import": "./dist/web-components/interaction/bds-tab.js"
|
|
149
|
+
},
|
|
150
|
+
"./web-components/interaction/bds-tab-panel": {
|
|
151
|
+
"types": "./dist/web-components/interaction/bds-tab-panel.d.ts",
|
|
152
|
+
"import": "./dist/web-components/interaction/bds-tab-panel.js"
|
|
153
|
+
},
|
|
154
|
+
"./web-components/interaction/bds-tabs": {
|
|
155
|
+
"types": "./dist/web-components/interaction/bds-tabs.d.ts",
|
|
156
|
+
"import": "./dist/web-components/interaction/bds-tabs.js"
|
|
157
|
+
},
|
|
158
|
+
"./web-components/interaction/bds-toast-provider": {
|
|
159
|
+
"types": "./dist/web-components/interaction/bds-toast-provider.d.ts",
|
|
160
|
+
"import": "./dist/web-components/interaction/bds-toast-provider.js"
|
|
161
|
+
},
|
|
162
|
+
"./web-components/interaction/bds-tooltip": {
|
|
163
|
+
"types": "./dist/web-components/interaction/bds-tooltip.d.ts",
|
|
164
|
+
"import": "./dist/web-components/interaction/bds-tooltip.js"
|
|
165
|
+
},
|
|
166
|
+
"./web-components/interaction/form/bds-checkbox": {
|
|
167
|
+
"types": "./dist/web-components/interaction/form/bds-checkbox.d.ts",
|
|
168
|
+
"import": "./dist/web-components/interaction/form/bds-checkbox.js"
|
|
169
|
+
},
|
|
170
|
+
"./web-components/interaction/form/bds-combobox": {
|
|
171
|
+
"types": "./dist/web-components/interaction/form/bds-combobox.d.ts",
|
|
172
|
+
"import": "./dist/web-components/interaction/form/bds-combobox.js"
|
|
173
|
+
},
|
|
174
|
+
"./web-components/interaction/form/bds-file-input": {
|
|
175
|
+
"types": "./dist/web-components/interaction/form/bds-file-input.d.ts",
|
|
176
|
+
"import": "./dist/web-components/interaction/form/bds-file-input.js"
|
|
177
|
+
},
|
|
178
|
+
"./web-components/interaction/form/bds-number-input": {
|
|
179
|
+
"types": "./dist/web-components/interaction/form/bds-number-input.d.ts",
|
|
180
|
+
"import": "./dist/web-components/interaction/form/bds-number-input.js"
|
|
181
|
+
},
|
|
182
|
+
"./web-components/interaction/form/bds-radio": {
|
|
183
|
+
"types": "./dist/web-components/interaction/form/bds-radio.d.ts",
|
|
184
|
+
"import": "./dist/web-components/interaction/form/bds-radio.js"
|
|
185
|
+
},
|
|
186
|
+
"./web-components/interaction/form/bds-segmented-control": {
|
|
187
|
+
"types": "./dist/web-components/interaction/form/bds-segmented-control.d.ts",
|
|
188
|
+
"import": "./dist/web-components/interaction/form/bds-segmented-control.js"
|
|
189
|
+
},
|
|
190
|
+
"./web-components/interaction/form/bds-select": {
|
|
191
|
+
"types": "./dist/web-components/interaction/form/bds-select.d.ts",
|
|
192
|
+
"import": "./dist/web-components/interaction/form/bds-select.js"
|
|
193
|
+
},
|
|
194
|
+
"./web-components/interaction/form/bds-slider": {
|
|
195
|
+
"types": "./dist/web-components/interaction/form/bds-slider.d.ts",
|
|
196
|
+
"import": "./dist/web-components/interaction/form/bds-slider.js"
|
|
197
|
+
},
|
|
198
|
+
"./web-components/interaction/form/bds-switch": {
|
|
199
|
+
"types": "./dist/web-components/interaction/form/bds-switch.d.ts",
|
|
200
|
+
"import": "./dist/web-components/interaction/form/bds-switch.js"
|
|
201
|
+
},
|
|
202
|
+
"./web-components/interaction/form/bds-textarea": {
|
|
203
|
+
"types": "./dist/web-components/interaction/form/bds-textarea.d.ts",
|
|
204
|
+
"import": "./dist/web-components/interaction/form/bds-textarea.js"
|
|
42
205
|
},
|
|
43
206
|
"./css": "./dist/index.css",
|
|
44
207
|
"./css/bdc": "./src/css/bdc.css",
|
|
@@ -168,7 +331,9 @@
|
|
|
168
331
|
"registry": "https://registry.npmjs.org/"
|
|
169
332
|
},
|
|
170
333
|
"sideEffects": [
|
|
171
|
-
"src/css/**/*.css"
|
|
334
|
+
"src/css/**/*.css",
|
|
335
|
+
"src/web-components/globals.ts",
|
|
336
|
+
"dist/web-components/**/*.js"
|
|
172
337
|
],
|
|
173
338
|
"dependencies": {
|
|
174
339
|
"@oddbird/css-anchor-positioning": "^0.9.0"
|
|
@@ -10,3 +10,50 @@ export { BdsAlert } from './ui/bds-alert';
|
|
|
10
10
|
// Phase 2 — layout-driven components
|
|
11
11
|
export { BdsPopover } from './interaction/bds-popover';
|
|
12
12
|
export { BdsToastProvider } from './interaction/bds-toast-provider';
|
|
13
|
+
|
|
14
|
+
// Phase 3 — simple UI display
|
|
15
|
+
export { BdsSeparator } from './ui/bds-separator';
|
|
16
|
+
export { BdsSkeleton } from './ui/bds-skeleton';
|
|
17
|
+
export { BdsLoading } from './ui/bds-loading';
|
|
18
|
+
export { BdsAvatar } from './ui/bds-avatar';
|
|
19
|
+
export { BdsTypography } from './ui/bds-typography';
|
|
20
|
+
export { BdsProgress } from './ui/bds-progress';
|
|
21
|
+
export { BdsProgressCircle } from './ui/bds-progress-circle';
|
|
22
|
+
export { BdsRating } from './ui/bds-rating';
|
|
23
|
+
|
|
24
|
+
// Phase 3 — interactive with state
|
|
25
|
+
export { BdsCollapsible } from './interaction/bds-collapsible';
|
|
26
|
+
export { BdsAccordionItem } from './interaction/bds-accordion-item';
|
|
27
|
+
export { BdsAccordion } from './interaction/bds-accordion';
|
|
28
|
+
export { BdsTab } from './interaction/bds-tab';
|
|
29
|
+
export { BdsTabPanel } from './interaction/bds-tab-panel';
|
|
30
|
+
export { BdsTabs } from './interaction/bds-tabs';
|
|
31
|
+
export { BdsTooltip } from './interaction/bds-tooltip';
|
|
32
|
+
export { BdsSkipLink } from './interaction/bds-skip-link';
|
|
33
|
+
|
|
34
|
+
// Phase 4 — modal overlays
|
|
35
|
+
export { BdsDialog } from './interaction/bds-dialog';
|
|
36
|
+
export { BdsDrawer } from './interaction/bds-drawer';
|
|
37
|
+
|
|
38
|
+
// Phase 5 — basic form inputs (ElementInternals)
|
|
39
|
+
export { BdsCheckbox } from './interaction/form/bds-checkbox';
|
|
40
|
+
export { BdsRadio } from './interaction/form/bds-radio';
|
|
41
|
+
export { BdsSwitch } from './interaction/form/bds-switch';
|
|
42
|
+
export { BdsSelect } from './interaction/form/bds-select';
|
|
43
|
+
export { BdsTextarea } from './interaction/form/bds-textarea';
|
|
44
|
+
|
|
45
|
+
// Phase 6 — complex form inputs (ElementInternals)
|
|
46
|
+
export { BdsNumberInput } from './interaction/form/bds-number-input';
|
|
47
|
+
export { BdsSlider } from './interaction/form/bds-slider';
|
|
48
|
+
export { BdsSegmentedControl } from './interaction/form/bds-segmented-control';
|
|
49
|
+
export { BdsFileInput } from './interaction/form/bds-file-input';
|
|
50
|
+
export { BdsCombobox } from './interaction/form/bds-combobox';
|
|
51
|
+
|
|
52
|
+
// Phase 7 — slotted content display
|
|
53
|
+
export { BdsNotificationBanner } from './ui/bds-notification-banner';
|
|
54
|
+
export { BdsCard } from './ui/bds-card';
|
|
55
|
+
export { BdsSectionHeader } from './ui/bds-section-header';
|
|
56
|
+
export { BdsIconWrapper } from './ui/bds-icon-wrapper';
|
|
57
|
+
export { BdsDescriptionList } from './ui/bds-description-list';
|
|
58
|
+
export { BdsBreadcrumb } from './ui/bds-breadcrumb';
|
|
59
|
+
export { BdsLink } from './ui/bds-link';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { fixture, cleanup } from '../test/helpers';
|
|
2
|
+
import { BdsAccordionItem } from './bds-accordion-item';
|
|
3
|
+
|
|
4
|
+
describe('bds-accordion-item', () => {
|
|
5
|
+
it('is registered as a custom element', () => {
|
|
6
|
+
expect(customElements.get('bds-accordion-item')).toBe(BdsAccordionItem);
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
it('is closed by default', async () => {
|
|
10
|
+
const el = await fixture('<bds-accordion-item><span slot="header">Q</span><p>A</p></bds-accordion-item>') as BdsAccordionItem;
|
|
11
|
+
expect(el.open).toBe(false);
|
|
12
|
+
cleanup(el);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('renders a trigger button', async () => {
|
|
16
|
+
const el = await fixture('<bds-accordion-item><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
17
|
+
expect(el.shadowRoot!.querySelector('button.trigger')).not.toBeNull();
|
|
18
|
+
cleanup(el);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('trigger has aria-expanded="false" when closed', async () => {
|
|
22
|
+
const el = await fixture('<bds-accordion-item><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
23
|
+
const btn = el.shadowRoot!.querySelector('button')!;
|
|
24
|
+
expect(btn.getAttribute('aria-expanded')).toBe('false');
|
|
25
|
+
cleanup(el);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('trigger has aria-expanded="true" when open', async () => {
|
|
29
|
+
const el = await fixture('<bds-accordion-item open><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
30
|
+
const btn = el.shadowRoot!.querySelector('button')!;
|
|
31
|
+
expect(btn.getAttribute('aria-expanded')).toBe('true');
|
|
32
|
+
cleanup(el);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('panel is hidden when closed', async () => {
|
|
36
|
+
const el = await fixture('<bds-accordion-item><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
37
|
+
const panel = el.shadowRoot!.querySelector('[role="region"]')!;
|
|
38
|
+
expect(panel.hasAttribute('hidden')).toBe(true);
|
|
39
|
+
cleanup(el);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('panel is visible when open', async () => {
|
|
43
|
+
const el = await fixture('<bds-accordion-item open><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
44
|
+
const panel = el.shadowRoot!.querySelector('[role="region"]')!;
|
|
45
|
+
expect(panel.hasAttribute('hidden')).toBe(false);
|
|
46
|
+
cleanup(el);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it('fires bds-accordion-item-toggle when trigger is clicked', async () => {
|
|
50
|
+
const el = await fixture('<bds-accordion-item><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
51
|
+
const btn = el.shadowRoot!.querySelector('button')!;
|
|
52
|
+
const handler = vi.fn();
|
|
53
|
+
el.addEventListener('bds-accordion-item-toggle', handler);
|
|
54
|
+
btn.dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true }));
|
|
55
|
+
expect(handler).toHaveBeenCalledOnce();
|
|
56
|
+
cleanup(el);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('does not fire toggle event when disabled', async () => {
|
|
60
|
+
const el = await fixture('<bds-accordion-item disabled><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
61
|
+
const btn = el.shadowRoot!.querySelector('button')!;
|
|
62
|
+
const handler = vi.fn();
|
|
63
|
+
el.addEventListener('bds-accordion-item-toggle', handler);
|
|
64
|
+
btn.dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true }));
|
|
65
|
+
expect(handler).not.toHaveBeenCalled();
|
|
66
|
+
cleanup(el);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('button is disabled when disabled attribute is set', async () => {
|
|
70
|
+
const el = await fixture('<bds-accordion-item disabled><span slot="header">Q</span><p>A</p></bds-accordion-item>');
|
|
71
|
+
const btn = el.shadowRoot!.querySelector('button')!;
|
|
72
|
+
expect(btn.hasAttribute('disabled')).toBe(true);
|
|
73
|
+
cleanup(el);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { LitElement, css, html } from 'lit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `<bds-accordion-item>` — child element of `<bds-accordion>`.
|
|
5
|
+
*
|
|
6
|
+
* Manages a single collapsible panel. The `open` and `disabled` state is
|
|
7
|
+
* controlled by the parent `<bds-accordion>` element.
|
|
8
|
+
*
|
|
9
|
+
* Attributes:
|
|
10
|
+
* open — boolean; whether the panel is expanded
|
|
11
|
+
* disabled — boolean; prevents the user from toggling this item
|
|
12
|
+
*
|
|
13
|
+
* Slots:
|
|
14
|
+
* header — the always-visible trigger label
|
|
15
|
+
* (default) — the content revealed when open
|
|
16
|
+
*
|
|
17
|
+
* Events:
|
|
18
|
+
* bds-accordion-item-toggle — fired (bubbles, composed) when the trigger
|
|
19
|
+
* button is clicked; the parent accordion handles
|
|
20
|
+
* the state change.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <bds-accordion-item>
|
|
24
|
+
* <span slot="header">Question</span>
|
|
25
|
+
* <p>Answer content</p>
|
|
26
|
+
* </bds-accordion-item>
|
|
27
|
+
*/
|
|
28
|
+
export class BdsAccordionItem extends LitElement {
|
|
29
|
+
static styles = css`
|
|
30
|
+
:host {
|
|
31
|
+
display: block;
|
|
32
|
+
border-block-end: 1px solid var(--bds-color_bg--subtle);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host(:last-child) {
|
|
36
|
+
border-block-end: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.heading {
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.trigger {
|
|
44
|
+
all: unset;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
inline-size: 100%;
|
|
49
|
+
padding: var(--bds-space_m);
|
|
50
|
+
font-family: var(--bds-font_family--body);
|
|
51
|
+
font-size: var(--bds-font_size--body);
|
|
52
|
+
font-weight: var(--bds-font_weight--semibold);
|
|
53
|
+
color: var(--bds-color_on-bg);
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition: var(--bds-animation_transition);
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.trigger:disabled {
|
|
60
|
+
opacity: 0.4;
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.trigger:focus-visible {
|
|
65
|
+
outline: var(--bds-outline_default);
|
|
66
|
+
outline-offset: calc(var(--bds-outline_offset) * -1);
|
|
67
|
+
border-radius: var(--bds-border_radius--xs);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (hover: hover) and (pointer: fine) {
|
|
71
|
+
.trigger:not(:disabled):hover {
|
|
72
|
+
background-color: var(--bds-color_bg--subtle);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.trigger-label {
|
|
77
|
+
flex: 1;
|
|
78
|
+
text-align: start;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.chevron {
|
|
82
|
+
inline-size: 1.25rem;
|
|
83
|
+
block-size: 1.25rem;
|
|
84
|
+
flex-shrink: 0;
|
|
85
|
+
transition: transform var(--bds-animation_transition-duration) var(--bds-animation_easing);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([open]) .chevron {
|
|
89
|
+
transform: rotate(180deg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.panel {
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.panel-content {
|
|
97
|
+
padding: 0 var(--bds-space_m) var(--bds-space_m);
|
|
98
|
+
color: var(--bds-color_on-bg);
|
|
99
|
+
font-size: var(--bds-font_size--body);
|
|
100
|
+
line-height: var(--bds-font_line-height--body);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (prefers-reduced-motion: reduce) {
|
|
104
|
+
.chevron {
|
|
105
|
+
transition: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
`;
|
|
109
|
+
|
|
110
|
+
static properties = {
|
|
111
|
+
open: { type: Boolean, reflect: true },
|
|
112
|
+
disabled: { type: Boolean, reflect: true },
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
declare open: boolean;
|
|
116
|
+
declare disabled: boolean;
|
|
117
|
+
|
|
118
|
+
// Stable IDs for aria-controls / aria-labelledby
|
|
119
|
+
private readonly _uid = Math.random().toString(36).slice(2, 8);
|
|
120
|
+
|
|
121
|
+
constructor() {
|
|
122
|
+
super();
|
|
123
|
+
this.open = false;
|
|
124
|
+
this.disabled = false;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
private _handleTriggerClick() {
|
|
128
|
+
if (this.disabled) return;
|
|
129
|
+
this.dispatchEvent(
|
|
130
|
+
new CustomEvent('bds-accordion-item-toggle', { bubbles: true, composed: true }),
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
render() {
|
|
135
|
+
const triggerId = `bds-acc-trigger-${this._uid}`;
|
|
136
|
+
const panelId = `bds-acc-panel-${this._uid}`;
|
|
137
|
+
|
|
138
|
+
return html`
|
|
139
|
+
<h3 class="heading">
|
|
140
|
+
<button
|
|
141
|
+
type="button"
|
|
142
|
+
id=${triggerId}
|
|
143
|
+
class="trigger"
|
|
144
|
+
aria-expanded=${this.open}
|
|
145
|
+
aria-controls=${panelId}
|
|
146
|
+
?disabled=${this.disabled}
|
|
147
|
+
@click=${this._handleTriggerClick}
|
|
148
|
+
>
|
|
149
|
+
<span class="trigger-label"><slot name="header"></slot></span>
|
|
150
|
+
<svg
|
|
151
|
+
class="chevron"
|
|
152
|
+
aria-hidden="true"
|
|
153
|
+
viewBox="0 0 24 24"
|
|
154
|
+
fill="none"
|
|
155
|
+
stroke="currentColor"
|
|
156
|
+
stroke-width="2"
|
|
157
|
+
>
|
|
158
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 9l6 6 6-6" />
|
|
159
|
+
</svg>
|
|
160
|
+
</button>
|
|
161
|
+
</h3>
|
|
162
|
+
<div
|
|
163
|
+
id=${panelId}
|
|
164
|
+
class="panel"
|
|
165
|
+
role="region"
|
|
166
|
+
aria-labelledby=${triggerId}
|
|
167
|
+
?hidden=${!this.open}
|
|
168
|
+
>
|
|
169
|
+
<div class="panel-content"><slot></slot></div>
|
|
170
|
+
</div>
|
|
171
|
+
`;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
customElements.define('bds-accordion-item', BdsAccordionItem);
|
|
176
|
+
|
|
177
|
+
declare global {
|
|
178
|
+
interface HTMLElementTagNameMap {
|
|
179
|
+
'bds-accordion-item': BdsAccordionItem;
|
|
180
|
+
}
|
|
181
|
+
}
|