@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
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
export { type BadgeVariant, BdsBadge };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
interface BreadcrumbItem {
|
|
5
|
+
label: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* `<bds-breadcrumb>` — framework-agnostic Breadcrumb custom element.
|
|
10
|
+
*
|
|
11
|
+
* Attributes:
|
|
12
|
+
* items — JSON string array of `{ label: string, href?: string }` objects.
|
|
13
|
+
* The last item is treated as the current page (no link).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <bds-breadcrumb items='[{"label":"Home","href":"/"},{"label":"Products","href":"/products"},{"label":"Item"}]'></bds-breadcrumb>
|
|
17
|
+
*/
|
|
18
|
+
declare class BdsBreadcrumb extends LitElement {
|
|
19
|
+
static styles: lit.CSSResult;
|
|
20
|
+
static properties: {
|
|
21
|
+
items: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
items: BreadcrumbItem[];
|
|
26
|
+
constructor();
|
|
27
|
+
render(): lit.TemplateResult<1>;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'bds-breadcrumb': BdsBreadcrumb;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { BdsBreadcrumb, type BreadcrumbItem };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
type CardVariant = 'default' | 'elevated' | 'outlined';
|
|
5
|
+
type CardPadding = 'none' | 'small' | 'medium' | 'large';
|
|
6
|
+
type CardTextAlign = 'start' | 'center' | 'end';
|
|
7
|
+
/**
|
|
8
|
+
* `<bds-card>` — framework-agnostic Card layout custom element.
|
|
9
|
+
*
|
|
10
|
+
* Attributes:
|
|
11
|
+
* variant — "default" (default) | "elevated" | "outlined"
|
|
12
|
+
* padding — "none" | "small" | "medium" (default) | "large"
|
|
13
|
+
* text-align — "start" (default) | "center" | "end"
|
|
14
|
+
* clickable — boolean; renders as a <button> with hover/active effects
|
|
15
|
+
* aria-label — accessible label (useful when clickable)
|
|
16
|
+
*
|
|
17
|
+
* Slots:
|
|
18
|
+
* (default) — card content
|
|
19
|
+
*
|
|
20
|
+
* Events:
|
|
21
|
+
* bds-click — fired (bubbles, composed) when the card button is clicked
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <bds-card variant="elevated" padding="large">
|
|
25
|
+
* <p>Card content</p>
|
|
26
|
+
* </bds-card>
|
|
27
|
+
*
|
|
28
|
+
* <bds-card clickable aria-label="Open details">
|
|
29
|
+
* <p>Clickable card</p>
|
|
30
|
+
* </bds-card>
|
|
31
|
+
*/
|
|
32
|
+
declare class BdsCard extends LitElement {
|
|
33
|
+
static styles: lit.CSSResult;
|
|
34
|
+
static properties: {
|
|
35
|
+
variant: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
};
|
|
39
|
+
padding: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
};
|
|
43
|
+
textAlign: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
attribute: string;
|
|
46
|
+
reflect: boolean;
|
|
47
|
+
};
|
|
48
|
+
clickable: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
reflect: boolean;
|
|
51
|
+
};
|
|
52
|
+
ariaLabel: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
attribute: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
variant: CardVariant;
|
|
58
|
+
padding: CardPadding;
|
|
59
|
+
textAlign: CardTextAlign;
|
|
60
|
+
clickable: boolean;
|
|
61
|
+
ariaLabel: string;
|
|
62
|
+
constructor();
|
|
63
|
+
private _handleClick;
|
|
64
|
+
render(): lit.TemplateResult<1>;
|
|
65
|
+
}
|
|
66
|
+
declare global {
|
|
67
|
+
interface HTMLElementTagNameMap {
|
|
68
|
+
'bds-card': BdsCard;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { BdsCard, type CardPadding, type CardTextAlign, type CardVariant };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-description-list>` — framework-agnostic Description List custom element.
|
|
6
|
+
*
|
|
7
|
+
* Renders a `<dl>` styled list. Consumers provide `<dt>` and `<dd>` elements
|
|
8
|
+
* as slotted children; this component handles layout and styling.
|
|
9
|
+
*
|
|
10
|
+
* Attributes:
|
|
11
|
+
* layout — "stacked" (default) | "inline"
|
|
12
|
+
*
|
|
13
|
+
* Slots:
|
|
14
|
+
* (default) — `<dt>` and `<dd>` pairs
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <bds-description-list layout="inline">
|
|
18
|
+
* <dt>Name</dt>
|
|
19
|
+
* <dd>Jane Doe</dd>
|
|
20
|
+
* <dt>Email</dt>
|
|
21
|
+
* <dd>jane@example.com</dd>
|
|
22
|
+
* </bds-description-list>
|
|
23
|
+
*/
|
|
24
|
+
declare class BdsDescriptionList extends LitElement {
|
|
25
|
+
static styles: lit.CSSResult;
|
|
26
|
+
static properties: {
|
|
27
|
+
layout: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
layout: 'stacked' | 'inline';
|
|
33
|
+
constructor();
|
|
34
|
+
render(): lit.TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
declare global {
|
|
37
|
+
interface HTMLElementTagNameMap {
|
|
38
|
+
'bds-description-list': BdsDescriptionList;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { BdsDescriptionList };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-icon-wrapper>` — framework-agnostic Icon Wrapper custom element.
|
|
6
|
+
*
|
|
7
|
+
* Displays an icon inside a circular container with background and foreground theming.
|
|
8
|
+
*
|
|
9
|
+
* Attributes:
|
|
10
|
+
* aria-hidden — boolean attribute; set to "true" for decorative icons
|
|
11
|
+
*
|
|
12
|
+
* Slots:
|
|
13
|
+
* (default) — icon content (SVG or img)
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <bds-icon-wrapper aria-hidden="true">
|
|
17
|
+
* <svg>…</svg>
|
|
18
|
+
* </bds-icon-wrapper>
|
|
19
|
+
*/
|
|
20
|
+
declare class BdsIconWrapper extends LitElement {
|
|
21
|
+
static styles: lit.CSSResult;
|
|
22
|
+
static properties: {
|
|
23
|
+
ariaHidden: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
attribute: string;
|
|
26
|
+
reflect: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
ariaHidden: string;
|
|
30
|
+
constructor();
|
|
31
|
+
render(): lit.TemplateResult<1>;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'bds-icon-wrapper': BdsIconWrapper;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { BdsIconWrapper };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
type LinkVariant = 'default' | 'subtle' | 'standalone';
|
|
5
|
+
/**
|
|
6
|
+
* `<bds-link>` — framework-agnostic Link custom element.
|
|
7
|
+
*
|
|
8
|
+
* Attributes:
|
|
9
|
+
* href — URL for the anchor
|
|
10
|
+
* target — link target (e.g. "_blank")
|
|
11
|
+
* variant — "default" (default) | "subtle" | "standalone"
|
|
12
|
+
* external — boolean; when set, adds rel="noreferrer noopener" and a
|
|
13
|
+
* visually-hidden label for screen readers
|
|
14
|
+
* external-label — the screen reader text appended for external links
|
|
15
|
+
* (default: "(opens in new tab)")
|
|
16
|
+
*
|
|
17
|
+
* Slots:
|
|
18
|
+
* (default) — link text / content
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <bds-link href="https://example.com" external>Visit site</bds-link>
|
|
22
|
+
*/
|
|
23
|
+
declare class BdsLink extends LitElement {
|
|
24
|
+
static styles: lit.CSSResult;
|
|
25
|
+
static properties: {
|
|
26
|
+
href: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
target: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
variant: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
reflect: boolean;
|
|
35
|
+
};
|
|
36
|
+
external: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
reflect: boolean;
|
|
39
|
+
};
|
|
40
|
+
externalLabel: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
attribute: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
href: string;
|
|
46
|
+
target: string;
|
|
47
|
+
variant: LinkVariant;
|
|
48
|
+
external: boolean;
|
|
49
|
+
externalLabel: string;
|
|
50
|
+
constructor();
|
|
51
|
+
render(): lit.TemplateResult<1>;
|
|
52
|
+
}
|
|
53
|
+
declare global {
|
|
54
|
+
interface HTMLElementTagNameMap {
|
|
55
|
+
'bds-link': BdsLink;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { BdsLink, type LinkVariant };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-loading>` — framework-agnostic Loading spinner custom element.
|
|
6
|
+
*
|
|
7
|
+
* Attributes:
|
|
8
|
+
* size — "small" | "medium" (default) | "large"
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <bds-loading></bds-loading>
|
|
12
|
+
* <bds-loading size="large"></bds-loading>
|
|
13
|
+
*/
|
|
14
|
+
declare class BdsLoading extends LitElement {
|
|
15
|
+
static styles: lit.CSSResult;
|
|
16
|
+
static properties: {
|
|
17
|
+
size: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
reflect: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
size: 'small' | 'medium' | 'large';
|
|
23
|
+
constructor();
|
|
24
|
+
render(): lit.TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'bds-loading': BdsLoading;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { BdsLoading };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
type NotificationBannerVariant = 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
/**
|
|
6
|
+
* `<bds-notification-banner>` — framework-agnostic Notification Banner custom element.
|
|
7
|
+
*
|
|
8
|
+
* Attributes:
|
|
9
|
+
* variant — "info" (default) | "success" | "warning" | "error"
|
|
10
|
+
* dismissible — boolean; shows a dismiss button when present
|
|
11
|
+
* dismiss-label — aria-label for the dismiss button (default: "Dismiss notification")
|
|
12
|
+
*
|
|
13
|
+
* Slots:
|
|
14
|
+
* (default) — banner body content
|
|
15
|
+
* action — optional action area (e.g. a button)
|
|
16
|
+
*
|
|
17
|
+
* Events:
|
|
18
|
+
* bds-dismiss — fired (bubbles, composed) when the dismiss button is clicked
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <bds-notification-banner variant="success">
|
|
22
|
+
* Your changes have been saved.
|
|
23
|
+
* <button slot="action" type="button">Undo</button>
|
|
24
|
+
* </bds-notification-banner>
|
|
25
|
+
*/
|
|
26
|
+
declare class BdsNotificationBanner extends LitElement {
|
|
27
|
+
static styles: lit.CSSResult;
|
|
28
|
+
static properties: {
|
|
29
|
+
variant: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
reflect: boolean;
|
|
32
|
+
};
|
|
33
|
+
dismissible: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
reflect: boolean;
|
|
36
|
+
};
|
|
37
|
+
dismissLabel: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
attribute: string;
|
|
40
|
+
};
|
|
41
|
+
_actionFilled: {
|
|
42
|
+
state: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
variant: NotificationBannerVariant;
|
|
46
|
+
dismissible: boolean;
|
|
47
|
+
dismissLabel: string;
|
|
48
|
+
private _actionFilled;
|
|
49
|
+
constructor();
|
|
50
|
+
private _onActionSlotChange;
|
|
51
|
+
private get _isUrgent();
|
|
52
|
+
private _handleDismiss;
|
|
53
|
+
render(): lit.TemplateResult<1>;
|
|
54
|
+
}
|
|
55
|
+
declare global {
|
|
56
|
+
interface HTMLElementTagNameMap {
|
|
57
|
+
'bds-notification-banner': BdsNotificationBanner;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { BdsNotificationBanner, type NotificationBannerVariant };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-progress-circle>` — framework-agnostic circular Progress custom element.
|
|
6
|
+
*
|
|
7
|
+
* Attributes:
|
|
8
|
+
* value — current progress value (required)
|
|
9
|
+
* max — maximum value (default: 100)
|
|
10
|
+
* label — accessible label for the progress bar
|
|
11
|
+
* show-value — boolean; when set, displays the percentage in the centre
|
|
12
|
+
* size — "small" | "medium" (default) | "large"
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <bds-progress-circle value="75" label="Loading" show-value></bds-progress-circle>
|
|
16
|
+
*/
|
|
17
|
+
declare class BdsProgressCircle extends LitElement {
|
|
18
|
+
static styles: lit.CSSResult;
|
|
19
|
+
static properties: {
|
|
20
|
+
value: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
};
|
|
23
|
+
max: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
};
|
|
26
|
+
label: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
showValue: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
attribute: string;
|
|
32
|
+
reflect: boolean;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
value: number;
|
|
40
|
+
max: number;
|
|
41
|
+
label: string;
|
|
42
|
+
showValue: boolean;
|
|
43
|
+
size: 'small' | 'medium' | 'large';
|
|
44
|
+
constructor();
|
|
45
|
+
render(): lit.TemplateResult<1>;
|
|
46
|
+
}
|
|
47
|
+
declare global {
|
|
48
|
+
interface HTMLElementTagNameMap {
|
|
49
|
+
'bds-progress-circle': BdsProgressCircle;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { BdsProgressCircle };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-progress>` — framework-agnostic Progress bar custom element.
|
|
6
|
+
*
|
|
7
|
+
* Attributes:
|
|
8
|
+
* value — current progress value (required)
|
|
9
|
+
* max — maximum value (default: 100)
|
|
10
|
+
* label — accessible label for the progress bar
|
|
11
|
+
* show-label — boolean; when set, displays the label and percentage above the bar
|
|
12
|
+
* size — "small" | "medium" (default) | "large"
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <bds-progress value="60" label="Upload progress" show-label></bds-progress>
|
|
16
|
+
*/
|
|
17
|
+
declare class BdsProgress extends LitElement {
|
|
18
|
+
static styles: lit.CSSResult;
|
|
19
|
+
static properties: {
|
|
20
|
+
value: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
};
|
|
23
|
+
max: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
};
|
|
26
|
+
label: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
showLabel: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
attribute: string;
|
|
32
|
+
reflect: boolean;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
value: number;
|
|
40
|
+
max: number;
|
|
41
|
+
label: string;
|
|
42
|
+
showLabel: boolean;
|
|
43
|
+
size: 'small' | 'medium' | 'large';
|
|
44
|
+
constructor();
|
|
45
|
+
private get _percentage();
|
|
46
|
+
render(): lit.TemplateResult<1>;
|
|
47
|
+
}
|
|
48
|
+
declare global {
|
|
49
|
+
interface HTMLElementTagNameMap {
|
|
50
|
+
'bds-progress': BdsProgress;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { BdsProgress };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-rating>` — framework-agnostic read-only star Rating custom element.
|
|
6
|
+
*
|
|
7
|
+
* Attributes:
|
|
8
|
+
* value — number of filled stars
|
|
9
|
+
* max — total number of stars (default: 5)
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <bds-rating value="3"></bds-rating>
|
|
13
|
+
* <bds-rating value="4" max="10"></bds-rating>
|
|
14
|
+
*/
|
|
15
|
+
declare class BdsRating extends LitElement {
|
|
16
|
+
static styles: lit.CSSResult;
|
|
17
|
+
static properties: {
|
|
18
|
+
value: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
};
|
|
21
|
+
max: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
value: number;
|
|
26
|
+
max: number;
|
|
27
|
+
constructor();
|
|
28
|
+
render(): lit.TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'bds-rating': BdsRating;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { BdsRating };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-section-header>` — framework-agnostic Section Header custom element.
|
|
6
|
+
*
|
|
7
|
+
* Attributes:
|
|
8
|
+
* title — heading text (required)
|
|
9
|
+
* subtitle — optional subheading text
|
|
10
|
+
* alignment — "start" (default) | "center" | "end"
|
|
11
|
+
* size — "small" | "medium" (default) | "large"
|
|
12
|
+
* title-as — tag name for the title element (default: "h2")
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <bds-section-header title="Our Products" subtitle="Browse the full range" size="large"></bds-section-header>
|
|
16
|
+
*/
|
|
17
|
+
declare class BdsSectionHeader extends LitElement {
|
|
18
|
+
static styles: lit.CSSResult;
|
|
19
|
+
static properties: {
|
|
20
|
+
title: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
};
|
|
23
|
+
subtitle: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
alignment: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
reflect: boolean;
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
reflect: boolean;
|
|
33
|
+
};
|
|
34
|
+
titleAs: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
attribute: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
title: string;
|
|
40
|
+
subtitle: string;
|
|
41
|
+
alignment: 'start' | 'center' | 'end';
|
|
42
|
+
size: 'small' | 'medium' | 'large';
|
|
43
|
+
titleAs: string;
|
|
44
|
+
constructor();
|
|
45
|
+
render(): lit.TemplateResult<1>;
|
|
46
|
+
}
|
|
47
|
+
declare global {
|
|
48
|
+
interface HTMLElementTagNameMap {
|
|
49
|
+
'bds-section-header': BdsSectionHeader;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { BdsSectionHeader };
|