@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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
.select {
|
|
14
14
|
appearance: none;
|
|
15
|
-
|
|
15
|
+
inline-size: 100%;
|
|
16
16
|
font-family: var(--bds-font_family--body);
|
|
17
17
|
font-size: var(--bds-font_size--body);
|
|
18
18
|
padding: var(--bds-space_s);
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.chevron svg {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
inline-size: 1rem;
|
|
64
|
+
block-size: 1rem;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
|
|
25
25
|
color: var(--slider_color, var(--bds-color_on-bg));
|
|
26
26
|
appearance: none;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
inline-size: 100%;
|
|
28
|
+
block-size: var(--slider_track-height);
|
|
29
29
|
border-radius: 999px;
|
|
30
30
|
background: linear-gradient(
|
|
31
31
|
to right,
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
/* Thumb — Webkit */
|
|
53
53
|
.slider::-webkit-slider-thumb {
|
|
54
54
|
appearance: none;
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
inline-size: var(--slider_thumb-size);
|
|
56
|
+
block-size: var(--slider_thumb-size);
|
|
57
57
|
border-radius: 50%;
|
|
58
58
|
background-color: var(--slider_color-active, var(--bdc-color_active));
|
|
59
59
|
box-shadow: var(--bds-shadow_s);
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
|
|
64
64
|
/* Thumb — Firefox */
|
|
65
65
|
.slider::-moz-range-thumb {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
inline-size: var(--slider_thumb-size);
|
|
67
|
+
block-size: var(--slider_thumb-size);
|
|
68
68
|
border: none;
|
|
69
69
|
border-radius: 50%;
|
|
70
70
|
background-color: var(--slider_color-active, var(--bdc-color_active));
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
display: inline-flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
flex-shrink: 0;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
inline-size: var(--switch_track-width);
|
|
29
|
+
block-size: var(--switch_track-height);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/* Real input — invisible overlay to capture pointer/keyboard events */
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
inset: 0;
|
|
36
36
|
appearance: none;
|
|
37
37
|
opacity: 0;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
inline-size: 100%;
|
|
39
|
+
block-size: 100%;
|
|
40
40
|
margin: 0;
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
z-index: 1;
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
.track {
|
|
51
51
|
display: inline-flex;
|
|
52
52
|
align-items: center;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
inline-size: var(--switch_track-width);
|
|
54
|
+
block-size: var(--switch_track-height);
|
|
55
55
|
border-radius: 999px;
|
|
56
56
|
background-color: var(--switch_track-bg, var(--bds-color_grey--subtle));
|
|
57
57
|
padding-inline: var(--switch_track-pad);
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
/* Thumb */
|
|
70
70
|
.thumb {
|
|
71
71
|
display: block;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
inline-size: var(--switch_thumb-size);
|
|
73
|
+
block-size: var(--switch_thumb-size);
|
|
74
74
|
border-radius: 50%;
|
|
75
75
|
background-color: var(--switch_thumb-bg, var(--bds-color_grey));
|
|
76
76
|
box-shadow: var(--bds-shadow_s);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
background-color: var(--textarea_color_bg, var(--bds-color_bg));
|
|
21
21
|
color: var(--textarea_color, var(--bds-color_on-bg));
|
|
22
22
|
resize: vertical;
|
|
23
|
-
min-
|
|
23
|
+
min-block-size: calc(var(--bds-space_m) * 5);
|
|
24
24
|
transition: --bdc_color var(--bds-animation_transition-duration) var(--bds-animation_easing),
|
|
25
25
|
background-color var(--bds-animation_transition-duration) var(--bds-animation_easing);
|
|
26
26
|
}
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.item {
|
|
16
|
-
border-
|
|
16
|
+
border-block-end: 1px solid var(--bds-color_bg--subtle);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.item:last-child {
|
|
20
|
-
border-
|
|
20
|
+
border-block-end: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.heading {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: center;
|
|
31
31
|
justify-content: space-between;
|
|
32
|
-
|
|
32
|
+
inline-size: 100%;
|
|
33
33
|
padding: var(--bds-space_m);
|
|
34
34
|
font-family: var(--bds-font_family--body);
|
|
35
35
|
font-size: var(--bds-font_size--body);
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.chevron {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
inline-size: 1.25rem;
|
|
67
|
+
block-size: 1.25rem;
|
|
68
68
|
flex-shrink: 0;
|
|
69
69
|
transition: transform var(--bds-animation_transition-duration) var(--bds-animation_easing);
|
|
70
70
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Meta, Canvas, ArgTypes } from '@storybook/blocks';
|
|
2
|
+
import * as Stories from './Alert.native.stories';
|
|
3
|
+
|
|
4
|
+
<Meta of={Stories} />
|
|
5
|
+
|
|
6
|
+
# Alert (React Native)
|
|
7
|
+
|
|
8
|
+
React Native alert component for inline status messages. Supports four semantic variants, an optional title, and a dismissible mode — matching the web `Alert` API.
|
|
9
|
+
|
|
10
|
+
> **Status: alpha** — API may change before stable release.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { Alert } from '@boostdev/components';
|
|
16
|
+
|
|
17
|
+
<Alert variant="success" title="Saved">
|
|
18
|
+
Your changes have been saved successfully.
|
|
19
|
+
</Alert>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
### All variants
|
|
25
|
+
<Canvas of={Stories.AllVariants} />
|
|
26
|
+
|
|
27
|
+
### Info
|
|
28
|
+
<Canvas of={Stories.Info} />
|
|
29
|
+
|
|
30
|
+
### Success
|
|
31
|
+
<Canvas of={Stories.Success} />
|
|
32
|
+
|
|
33
|
+
### Warning
|
|
34
|
+
<Canvas of={Stories.Warning} />
|
|
35
|
+
|
|
36
|
+
### Error
|
|
37
|
+
<Canvas of={Stories.Error} />
|
|
38
|
+
|
|
39
|
+
### With title
|
|
40
|
+
<Canvas of={Stories.WithTitle} />
|
|
41
|
+
|
|
42
|
+
### Dismissible
|
|
43
|
+
<Canvas of={Stories.Dismissible} />
|
|
44
|
+
|
|
45
|
+
## Props
|
|
46
|
+
|
|
47
|
+
<ArgTypes of={Stories} />
|
|
48
|
+
|
|
49
|
+
## Props reference
|
|
50
|
+
|
|
51
|
+
| Prop | Type | Default | Description |
|
|
52
|
+
|------|------|---------|-------------|
|
|
53
|
+
| `variant` | `"info" \| "success" \| "warning" \| "error"` | `"info"` | Semantic colour and icon |
|
|
54
|
+
| `title` | string | — | Optional heading above body content |
|
|
55
|
+
| `onDismiss` | `() => void` | — | When set, a dismiss button is shown; called on press |
|
|
56
|
+
| `children` | `ReactNode` | — | Alert body content |
|
|
57
|
+
|
|
58
|
+
## Accessibility
|
|
59
|
+
|
|
60
|
+
- `error` and `warning` variants announce content as `assertive`
|
|
61
|
+
- `info` and `success` variants announce content as `polite`
|
|
62
|
+
- The dismiss button has a descriptive accessibility label
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Meta, Canvas, ArgTypes } from '@storybook/blocks';
|
|
2
|
+
import * as Stories from './Avatar.native.stories';
|
|
3
|
+
|
|
4
|
+
<Meta of={Stories} />
|
|
5
|
+
|
|
6
|
+
# Avatar (React Native)
|
|
7
|
+
|
|
8
|
+
React Native avatar component displaying user initials on a coloured background. Derives initials from the `name` prop (first letter of each word, max 2).
|
|
9
|
+
|
|
10
|
+
> **Status: alpha** — API may change before stable release.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { Avatar } from '@boostdev/components';
|
|
16
|
+
|
|
17
|
+
<Avatar name="John Doe" size="medium" />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
### All sizes
|
|
23
|
+
<Canvas of={Stories.AllSizes} />
|
|
24
|
+
|
|
25
|
+
### With initials
|
|
26
|
+
<Canvas of={Stories.WithInitials} />
|
|
27
|
+
|
|
28
|
+
### Small
|
|
29
|
+
<Canvas of={Stories.Small} />
|
|
30
|
+
|
|
31
|
+
### Large
|
|
32
|
+
<Canvas of={Stories.Large} />
|
|
33
|
+
|
|
34
|
+
### Single name
|
|
35
|
+
<Canvas of={Stories.SingleName} />
|
|
36
|
+
|
|
37
|
+
## Props
|
|
38
|
+
|
|
39
|
+
<ArgTypes of={Stories} />
|
|
40
|
+
|
|
41
|
+
## Props reference
|
|
42
|
+
|
|
43
|
+
| Prop | Type | Default | Description |
|
|
44
|
+
|------|------|---------|-------------|
|
|
45
|
+
| `name` | string | — | Full name — initials are derived from this |
|
|
46
|
+
| `size` | `"small" \| "medium" \| "large"` | `"medium"` | Circle diameter |
|
|
47
|
+
|
|
48
|
+
## Accessibility
|
|
49
|
+
|
|
50
|
+
- `accessibilityLabel` defaults to the `name` prop so screen readers announce the user's name
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Meta, Canvas, ArgTypes } from '@storybook/blocks';
|
|
2
|
+
import * as Stories from './Badge.native.stories';
|
|
3
|
+
|
|
4
|
+
<Meta of={Stories} />
|
|
5
|
+
|
|
6
|
+
# Badge (React Native)
|
|
7
|
+
|
|
8
|
+
React Native badge component for short status labels and counts. Five semantic variants matching the web `Badge` API.
|
|
9
|
+
|
|
10
|
+
> **Status: alpha** — API may change before stable release.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { Badge } from '@boostdev/components';
|
|
16
|
+
|
|
17
|
+
<Badge variant="success">Active</Badge>
|
|
18
|
+
<Badge variant="error">3</Badge>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
### All variants
|
|
24
|
+
<Canvas of={Stories.AllVariants} />
|
|
25
|
+
|
|
26
|
+
### Primary
|
|
27
|
+
<Canvas of={Stories.Primary} />
|
|
28
|
+
|
|
29
|
+
### Secondary
|
|
30
|
+
<Canvas of={Stories.Secondary} />
|
|
31
|
+
|
|
32
|
+
### Success
|
|
33
|
+
<Canvas of={Stories.Success} />
|
|
34
|
+
|
|
35
|
+
### Error
|
|
36
|
+
<Canvas of={Stories.Error} />
|
|
37
|
+
|
|
38
|
+
### Warning
|
|
39
|
+
<Canvas of={Stories.Warning} />
|
|
40
|
+
|
|
41
|
+
## Props
|
|
42
|
+
|
|
43
|
+
<ArgTypes of={Stories} />
|
|
44
|
+
|
|
45
|
+
## Props reference
|
|
46
|
+
|
|
47
|
+
| Prop | Type | Default | Description |
|
|
48
|
+
|------|------|---------|-------------|
|
|
49
|
+
| `variant` | `"primary" \| "secondary" \| "success" \| "error" \| "warning"` | `"primary"` | Semantic colour |
|
|
50
|
+
| `children` | `ReactNode` | — | Badge label |
|
|
51
|
+
|
|
52
|
+
## Accessibility
|
|
53
|
+
|
|
54
|
+
- Badge is decorative — wrap in a component with `accessibilityLabel` when colour alone conveys status (e.g. `accessibilityLabel="3 notifications"`)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
border-radius: var(--calendar_radius, var(--bdc-outline_radius));
|
|
14
14
|
padding: var(--bds-space_m);
|
|
15
15
|
box-shadow: var(--calendar_shadow, var(--bds-shadow_s));
|
|
16
|
-
|
|
16
|
+
inline-size: 20rem;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.header {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
35
|
justify-content: center;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
inline-size: 2rem;
|
|
37
|
+
block-size: 2rem;
|
|
38
38
|
border-radius: 50%;
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
color: var(--bds-color_on-bg);
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.navBtn svg {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
inline-size: 1rem;
|
|
46
|
+
block-size: 1rem;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.navBtn:focus-visible {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
.grid {
|
|
61
61
|
border-collapse: collapse;
|
|
62
|
-
|
|
62
|
+
inline-size: 100%;
|
|
63
63
|
table-layout: fixed;
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
82
82
|
justify-content: center;
|
|
83
|
-
|
|
83
|
+
inline-size: 100%;
|
|
84
84
|
aspect-ratio: 1;
|
|
85
85
|
border-radius: 50%;
|
|
86
86
|
font-size: var(--bds-font_size--body--s);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.track {
|
|
10
10
|
display: flex;
|
|
11
11
|
gap: var(--bds-space_m);
|
|
12
|
-
overflow-
|
|
12
|
+
overflow-inline: auto;
|
|
13
13
|
scroll-snap-type: x mandatory;
|
|
14
14
|
scrollbar-width: none;
|
|
15
15
|
flex: 1;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
inline-size: 2.5rem;
|
|
34
|
+
block-size: 2.5rem;
|
|
35
35
|
border-radius: 50%;
|
|
36
36
|
background-color: var(--bds-color_bg);
|
|
37
37
|
color: var(--bds-color_on-bg);
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.navBtn svg {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
inline-size: 1.25rem;
|
|
52
|
+
block-size: 1.25rem;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.navBtn:focus-visible {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
|
|
49
49
|
/* Chevron drawn with CSS borders */
|
|
50
50
|
.icon {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
border-
|
|
54
|
-
border-
|
|
51
|
+
inline-size: 0.5rem;
|
|
52
|
+
block-size: 0.5rem;
|
|
53
|
+
border-inline-end: 2px solid currentcolor;
|
|
54
|
+
border-block-end: 2px solid currentcolor;
|
|
55
55
|
transform: rotate(45deg);
|
|
56
56
|
flex-shrink: 0;
|
|
57
57
|
transition: transform var(--bds-animation_transition-duration) var(--bds-animation_easing);
|
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.spinner {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
inline-size: 2.5em;
|
|
10
|
+
block-size: 2.5em;
|
|
11
11
|
border: 4px solid var(--bds-color_bg);
|
|
12
|
-
border-
|
|
12
|
+
border-block-start: 4px solid var(--bds-color_interactive);
|
|
13
13
|
border-radius: 50%;
|
|
14
14
|
animation: spin 1s linear infinite;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.--size_small .spinner {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
inline-size: 1.5em;
|
|
19
|
+
block-size: 1.5em;
|
|
20
20
|
border-width: 2px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.--size_large .spinner {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
inline-size: 4em;
|
|
25
|
+
block-size: 4em;
|
|
26
26
|
border-width: 6px;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
border-block-end: 3px solid var(--banner_border, var(--bds-color_blue));
|
|
10
10
|
font-size: var(--bds-font_size--body);
|
|
11
11
|
line-height: var(--bds-font_line-height--body);
|
|
12
|
-
|
|
12
|
+
inline-size: 100%;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.--variant_info {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.dismiss svg {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
inline-size: 1rem;
|
|
66
|
+
block-size: 1rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.dismiss:focus-visible {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: center;
|
|
21
|
-
min-
|
|
22
|
-
|
|
21
|
+
min-inline-size: 2.25rem;
|
|
22
|
+
block-size: 2.25rem;
|
|
23
23
|
padding-inline: var(--bds-space_xs);
|
|
24
24
|
border-radius: var(--bds-border_radius--xs);
|
|
25
25
|
background-color: var(--btn_bg, transparent);
|
|
@@ -62,16 +62,16 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.button.--nav svg {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
inline-size: 1rem;
|
|
66
|
+
block-size: 1rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.ellipsis {
|
|
70
70
|
display: inline-flex;
|
|
71
71
|
align-items: center;
|
|
72
72
|
justify-content: center;
|
|
73
|
-
min-
|
|
74
|
-
|
|
73
|
+
min-inline-size: 2.25rem;
|
|
74
|
+
block-size: 2.25rem;
|
|
75
75
|
color: var(--bds-color_on-bg--subtle);
|
|
76
76
|
font-size: var(--bds-font_size--body);
|
|
77
77
|
user-select: none;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
gap: var(--bds-space_xxs);
|
|
6
|
-
|
|
6
|
+
inline-size: 100%;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.labelRow {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.track {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
inline-size: 100%;
|
|
23
|
+
block-size: var(--progress_height, var(--bds-space_xs));
|
|
24
24
|
background-color: var(--bds-color_bg--subtle);
|
|
25
25
|
border-radius: 999px;
|
|
26
26
|
overflow: hidden;
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
.track.--size_large { --progress_height: var(--bds-space_s); }
|
|
32
32
|
|
|
33
33
|
.fill {
|
|
34
|
-
|
|
34
|
+
block-size: 100%;
|
|
35
35
|
background-color: var(--progress_color-active, var(--bdc-color_active));
|
|
36
36
|
border-radius: 999px;
|
|
37
|
-
transition:
|
|
37
|
+
transition: inline-size var(--bds-animation_transition-duration) var(--bds-animation_easing);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
.separator.--horizontal {
|
|
8
8
|
display: block;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
inline-size: 100%;
|
|
10
|
+
block-size: var(--separator_thickness, 1px);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.separator.--vertical {
|
|
14
14
|
display: inline-block;
|
|
15
|
-
|
|
15
|
+
inline-size: var(--separator_thickness, 1px);
|
|
16
16
|
align-self: stretch;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer component {
|
|
2
2
|
.wrapper {
|
|
3
|
-
|
|
4
|
-
overflow-
|
|
3
|
+
inline-size: 100%;
|
|
4
|
+
overflow-inline: auto;
|
|
5
5
|
border: var(--table_border, none);
|
|
6
6
|
--bdc_color: var(--bds-color_bg--subtle);
|
|
7
7
|
--bdc-outline_radius: var(--bds-border_radius--s);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.table {
|
|
15
|
-
|
|
15
|
+
inline-size: 100%;
|
|
16
16
|
border-collapse: collapse;
|
|
17
17
|
font-size: var(--bds-font_size--body);
|
|
18
18
|
font-family: var(--bds-font_family--body);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
font-size: var(--bds-font_size--body--s);
|
|
38
38
|
color: var(--bds-color_on-bg--subtle);
|
|
39
39
|
white-space: nowrap;
|
|
40
|
-
border-
|
|
40
|
+
border-block-end: 1px solid var(--bds-color_bg--subtle);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.th.--sortable {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
align-items: center;
|
|
51
51
|
gap: var(--bds-space_xxs);
|
|
52
52
|
padding: var(--bds-space_s) var(--bds-space_m);
|
|
53
|
-
|
|
53
|
+
inline-size: 100%;
|
|
54
54
|
cursor: pointer;
|
|
55
55
|
color: var(--bds-color_on-bg--subtle);
|
|
56
56
|
font-weight: var(--bds-font_weight--semibold);
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.sortIcon {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
inline-size: 1rem;
|
|
75
|
+
block-size: 1rem;
|
|
76
76
|
opacity: 0.4;
|
|
77
77
|
transition: transform var(--bds-animation_transition-duration) var(--bds-animation_easing),
|
|
78
78
|
opacity var(--bds-animation_transition-duration) var(--bds-animation_easing);
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.tbody .tr {
|
|
91
|
-
border-
|
|
91
|
+
border-block-end: 1px solid var(--bds-color_bg--subtle);
|
|
92
92
|
transition: var(--bds-animation_transition);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.tbody .tr:last-child {
|
|
96
|
-
border-
|
|
96
|
+
border-block-end: none;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
@media (hover: hover) and (pointer: fine) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.tabList {
|
|
8
8
|
display: flex;
|
|
9
|
-
border-
|
|
9
|
+
border-block-end: 1px solid var(--bds-color_bg--subtle);
|
|
10
10
|
gap: var(--bds-space_xxs);
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
font-size: var(--bds-font_size--body);
|
|
20
20
|
font-weight: var(--bds-font_weight--semibold);
|
|
21
21
|
color: var(--tab_color, var(--bds-color_on-bg));
|
|
22
|
-
border-
|
|
23
|
-
margin-
|
|
22
|
+
border-block-end: 2px solid var(--tab_border-color, transparent);
|
|
23
|
+
margin-block-end: -1px;
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
transition: var(--bds-animation_transition);
|
|
26
26
|
}
|