@boostdev/design-system-components 1.2.7 → 2.0.0
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 +7 -5
- package/README.md +55 -37
- package/dist/client.cjs +54 -51
- package/dist/client.css +525 -524
- package/dist/client.d.cts +39 -3
- package/dist/client.d.ts +39 -3
- package/dist/client.js +53 -51
- package/dist/index.cjs +54 -51
- package/dist/index.css +525 -524
- package/dist/index.d.cts +39 -3
- package/dist/index.d.ts +39 -3
- package/dist/index.js +53 -51
- package/dist/native/index.cjs +3 -1
- package/dist/native/index.d.cts +11 -3
- package/dist/native/index.d.ts +11 -3
- package/dist/native/index.js +3 -1
- package/dist/web-components/{chunk-DZRSJGPB.js → chunk-3S42DZ7W.js} +1 -1
- package/dist/web-components/globals.js +1 -1
- package/dist/web-components/index.js +1 -1
- package/package.json +3 -3
- package/src/components/interaction/Button/Button.mdx +14 -4
- package/src/components/interaction/Button/Button.module.css +1 -1
- package/src/components/interaction/Button/Button.native.mdx +2 -2
- package/src/components/interaction/Button/Button.tsx +28 -0
- package/src/components/interaction/Command/Command.module.css +1 -1
- package/src/components/interaction/Dialog/Dialog.module.css +1 -1
- package/src/components/interaction/Dialog/Dialog.native.mdx +2 -2
- package/src/components/interaction/Drawer/Drawer.module.css +1 -1
- package/src/components/interaction/Drawer/Drawer.native.mdx +2 -2
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +1 -1
- package/src/components/interaction/DropdownMenu/DropdownMenu.native.mdx +2 -2
- package/src/components/interaction/Popover/Popover.module.css +1 -1
- package/src/components/interaction/Popover/Popover.native.mdx +2 -2
- package/src/components/interaction/Rating/Rating.module.css +1 -1
- package/src/components/interaction/Rating/Rating.native.mdx +1 -1
- package/src/components/interaction/Toast/Toast.module.css +1 -1
- package/src/components/interaction/Toast/Toast.native.mdx +3 -3
- package/src/components/interaction/form/Checkbox/Checkbox.module.css +1 -1
- package/src/components/interaction/form/Checkbox/Checkbox.native.mdx +1 -1
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css +1 -1
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.native.mdx +1 -1
- package/src/components/interaction/form/Combobox/Combobox.module.css +1 -1
- package/src/components/interaction/form/Combobox/Combobox.native.mdx +1 -1
- package/src/components/interaction/form/FileInput/FileInput.module.css +1 -1
- package/src/components/interaction/form/FileInput/FileInput.native.mdx +1 -1
- package/src/components/interaction/form/FormInput/FormInput.module.css +1 -1
- package/src/components/interaction/form/FormInput/FormInput.native.mdx +1 -1
- package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -1
- package/src/components/interaction/form/NumberInput/NumberInput.native.mdx +1 -1
- package/src/components/interaction/form/Radio/Radio.module.css +1 -1
- package/src/components/interaction/form/RadioGroup/RadioGroup.module.css +1 -1
- package/src/components/interaction/form/RadioGroup/RadioGroup.native.mdx +1 -1
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +1 -1
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.native.mdx +1 -1
- package/src/components/interaction/form/Select/Select.module.css +1 -1
- package/src/components/interaction/form/Select/Select.native.mdx +1 -1
- package/src/components/interaction/form/Slider/Slider.module.css +1 -1
- package/src/components/interaction/form/Slider/Slider.native.mdx +1 -1
- package/src/components/interaction/form/Switch/Switch.module.css +1 -1
- package/src/components/interaction/form/Textarea/Textarea.module.css +1 -1
- package/src/components/interaction/form/Textarea/Textarea.native.mdx +1 -1
- package/src/components/interaction/form/atoms/InputContainer.module.css +1 -1
- package/src/components/interaction/form/atoms/Label.module.css +1 -1
- package/src/components/interaction/form/atoms/Message.module.css +1 -1
- package/src/components/layout/ButtonGroup/ButtonGroup.mdx +5 -3
- package/src/components/layout/ButtonGroup/ButtonGroup.module.css +2 -1
- package/src/components/layout/ButtonGroup/ButtonGroup.native.tsx +12 -2
- package/src/components/layout/ButtonGroup/ButtonGroup.spec.tsx +14 -5
- package/src/components/layout/ButtonGroup/ButtonGroup.stories.tsx +10 -10
- package/src/components/layout/ButtonGroup/ButtonGroup.tsx +12 -2
- package/src/components/layout/ButtonGroup/index.ts +2 -2
- package/src/components/layout/Card/Card.module.css +1 -1
- package/src/components/layout/IconWrapper/IconWrapper.module.css +1 -1
- package/src/components/layout/SectionHeader/SectionHeader.module.css +1 -1
- package/src/components/ui/Accordion/Accordion.module.css +1 -1
- package/src/components/ui/Accordion/Accordion.native.mdx +1 -1
- package/src/components/ui/Accordion/Accordion.native.stories.tsx +1 -1
- package/src/components/ui/Alert/Alert.module.css +1 -1
- package/src/components/ui/Alert/Alert.native.mdx +1 -1
- package/src/components/ui/Avatar/Avatar.module.css +1 -1
- package/src/components/ui/Avatar/Avatar.native.mdx +1 -1
- package/src/components/ui/Badge/Badge.module.css +1 -1
- package/src/components/ui/Badge/Badge.native.mdx +1 -1
- package/src/components/ui/Breadcrumb/Breadcrumb.module.css +1 -1
- package/src/components/ui/Breadcrumb/Breadcrumb.native.mdx +1 -1
- package/src/components/ui/Calendar/Calendar.module.css +1 -1
- package/src/components/ui/Calendar/Calendar.native.mdx +1 -1
- package/src/components/ui/Carousel/Carousel.module.css +1 -1
- package/src/components/ui/Carousel/Carousel.native.mdx +1 -1
- package/src/components/ui/Collapsible/Collapsible.module.css +1 -1
- package/src/components/ui/Collapsible/Collapsible.native.mdx +1 -1
- package/src/components/ui/DescriptionList/DescriptionList.module.css +1 -1
- package/src/components/ui/DescriptionList/DescriptionList.native.mdx +1 -1
- package/src/components/ui/Link/Link.module.css +1 -1
- package/src/components/ui/Link/Link.native.mdx +1 -1
- package/src/components/ui/Loading/Loading.module.css +1 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +1 -1
- package/src/components/ui/Pagination/Pagination.module.css +1 -1
- package/src/components/ui/Pagination/Pagination.native.mdx +1 -1
- package/src/components/ui/Progress/Progress.module.css +1 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.module.css +1 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.native.mdx +1 -1
- package/src/components/ui/Separator/Separator.module.css +1 -1
- package/src/components/ui/Skeleton/Skeleton.module.css +1 -1
- package/src/components/ui/SkipLink/SkipLink.module.css +1 -1
- package/src/components/ui/Table/Table.module.css +1 -1
- package/src/components/ui/Table/Table.native.mdx +1 -1
- package/src/components/ui/Tabs/Tabs.module.css +1 -1
- package/src/components/ui/Tabs/Tabs.native.mdx +1 -1
- package/src/components/ui/Tooltip/Tooltip.module.css +1 -1
- package/src/components/ui/Tooltip/Tooltip.native.mdx +1 -1
- package/src/components/ui/Typography/Typography.module.css +1 -1
- package/src/components/ui/Typography/Typography.native.mdx +1 -1
- package/src/css/bdc.css +1 -1
- package/src/css/index.css +1 -1
- package/src/index.ts +2 -2
- package/src/native.ts +2 -2
- package/src/stories/DesignSystem/Borders.mdx +3 -3
- package/src/stories/DesignSystem/Colors.mdx +1 -1
- package/src/stories/DesignSystem/DarkMode.mdx +3 -3
- package/src/stories/DesignSystem/Overview.mdx +16 -5
- package/src/stories/DesignSystem/Typography.mdx +1 -1
- package/src/stories/Introduction.mdx +4 -4
- package/src/stories/ReactNative.mdx +6 -6
- package/src/web-components/globals.ts +1 -1
- package/src/web-components/interaction/BdsAccordion.mdx +3 -3
- package/src/web-components/interaction/BdsAccordion.stories.tsx +1 -1
- package/src/web-components/interaction/BdsButton.mdx +2 -2
- package/src/web-components/interaction/BdsCollapsible.mdx +2 -2
- package/src/web-components/interaction/BdsDialog.mdx +2 -2
- package/src/web-components/interaction/BdsDrawer.mdx +2 -2
- package/src/web-components/interaction/BdsDropdownMenu.mdx +2 -2
- package/src/web-components/interaction/BdsPopover.mdx +1 -1
- package/src/web-components/interaction/BdsSkipLink.mdx +2 -2
- package/src/web-components/interaction/BdsTabs.mdx +2 -2
- package/src/web-components/interaction/BdsToastProvider.mdx +3 -3
- package/src/web-components/interaction/BdsTooltip.mdx +2 -2
- package/src/web-components/interaction/form/BdsCheckbox.mdx +1 -1
- package/src/web-components/interaction/form/BdsCheckboxGroup.mdx +1 -1
- package/src/web-components/interaction/form/BdsCombobox.mdx +1 -1
- package/src/web-components/interaction/form/BdsFileInput.mdx +1 -1
- package/src/web-components/interaction/form/BdsFormInput.mdx +1 -1
- package/src/web-components/interaction/form/BdsNumberInput.mdx +1 -1
- package/src/web-components/interaction/form/BdsRadio.mdx +1 -1
- package/src/web-components/interaction/form/BdsRadioGroup.mdx +1 -1
- package/src/web-components/interaction/form/BdsSegmentedControl.mdx +1 -1
- package/src/web-components/interaction/form/BdsSelect.mdx +1 -1
- package/src/web-components/interaction/form/BdsSlider.mdx +1 -1
- package/src/web-components/interaction/form/BdsSwitch.mdx +1 -1
- package/src/web-components/interaction/form/BdsTextarea.mdx +1 -1
- package/src/web-components/ui/BdsAlert.mdx +1 -1
- package/src/web-components/ui/BdsAvatar.mdx +1 -1
- package/src/web-components/ui/BdsBadge.mdx +1 -1
- package/src/web-components/ui/BdsBreadcrumb.mdx +1 -1
- package/src/web-components/ui/BdsButtonGroup.mdx +1 -1
- package/src/web-components/ui/BdsCalendar.mdx +1 -1
- package/src/web-components/ui/BdsCard.mdx +1 -1
- package/src/web-components/ui/BdsCarousel.mdx +1 -1
- package/src/web-components/ui/BdsDescriptionList.mdx +1 -1
- package/src/web-components/ui/BdsIconWrapper.mdx +1 -1
- package/src/web-components/ui/BdsLink.mdx +1 -1
- package/src/web-components/ui/BdsLoading.mdx +1 -1
- package/src/web-components/ui/BdsNotificationBanner.mdx +1 -1
- package/src/web-components/ui/BdsPagination.mdx +1 -1
- package/src/web-components/ui/BdsProgress.mdx +1 -1
- package/src/web-components/ui/BdsProgressCircle.mdx +1 -1
- package/src/web-components/ui/BdsRating.mdx +1 -1
- package/src/web-components/ui/BdsSectionHeader.mdx +1 -1
- package/src/web-components/ui/BdsSeparator.mdx +2 -2
- package/src/web-components/ui/BdsSkeleton.mdx +1 -1
- package/src/web-components/ui/BdsTable.mdx +1 -1
- package/src/web-components/ui/BdsTypography.mdx +1 -1
|
@@ -49,7 +49,7 @@ export const TrackingSample = ({ token, label, value }) => (
|
|
|
49
49
|
Override both tokens to apply a custom typeface globally:
|
|
50
50
|
|
|
51
51
|
```css
|
|
52
|
-
@layer tokens.override {
|
|
52
|
+
@layer boostdev.tokens.override {
|
|
53
53
|
:root {
|
|
54
54
|
--bds-font_family--heading: 'Inter', sans-serif;
|
|
55
55
|
--bds-font_family--body: 'Inter', sans-serif;
|
|
@@ -30,20 +30,20 @@ import logo from '../static/logo.svg';
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
pnpm add @boostdev/components @boostdev/design-system-foundation
|
|
33
|
+
pnpm add @boostdev/design-system-components @boostdev/design-system-foundation
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Import the CSS once at your app root:
|
|
37
37
|
|
|
38
38
|
```ts
|
|
39
39
|
import '@boostdev/design-system-foundation/css';
|
|
40
|
-
import '@boostdev/components/css';
|
|
40
|
+
import '@boostdev/design-system-components/css';
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
For **Next.js / RSC**, use the `/client` subpath:
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
|
-
import {Button, Card} from '@boostdev/components/client';
|
|
46
|
+
import {Button, Card} from '@boostdev/design-system-components/client';
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
---
|
|
@@ -92,7 +92,7 @@ import logo from '../static/logo.svg';
|
|
|
92
92
|
everything at once:
|
|
93
93
|
|
|
94
94
|
```css
|
|
95
|
-
@layer tokens.override {
|
|
95
|
+
@layer boostdev.tokens.override {
|
|
96
96
|
:root {
|
|
97
97
|
--bds-cta: var(--bds-BASE__color--orange);
|
|
98
98
|
--bds-on-cta: var(--bds-BASE__color--white);
|
|
@@ -6,21 +6,21 @@ import { Meta } from '@storybook/blocks';
|
|
|
6
6
|
|
|
7
7
|
> **Status: alpha** — components and APIs may change before stable release.
|
|
8
8
|
|
|
9
|
-
`@boostdev/components` ships native implementations for 47 components — near-complete parity with the React web library. These use React Native primitives (`View`, `Text`, `Pressable`, `StyleSheet`, `Modal`, `Animated`) rather than HTML elements, and consume a dedicated token layer instead of CSS custom properties.
|
|
9
|
+
`@boostdev/design-system-components` ships native implementations for 47 components — near-complete parity with the React web library. These use React Native primitives (`View`, `Text`, `Pressable`, `StyleSheet`, `Modal`, `Animated`) rather than HTML elements, and consume a dedicated token layer instead of CSS custom properties.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install @boostdev/components
|
|
14
|
+
npm install @boostdev/design-system-components
|
|
15
15
|
# or
|
|
16
|
-
pnpm add @boostdev/components
|
|
16
|
+
pnpm add @boostdev/design-system-components
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Metro automatically resolves the native entry point via the `"react-native"` export condition in `package.json` — no extra configuration needed.
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
22
|
// Import is identical to the web version:
|
|
23
|
-
import { Button, Alert, Badge, Avatar, Typography } from '@boostdev/components';
|
|
23
|
+
import { Button, Alert, Badge, Avatar, Typography } from '@boostdev/design-system-components';
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Setup — ThemeProvider
|
|
@@ -28,7 +28,7 @@ import { Button, Alert, Badge, Avatar, Typography } from '@boostdev/components';
|
|
|
28
28
|
Wrap your app (or the relevant subtree) in `ThemeProvider` to give native components access to the design token context:
|
|
29
29
|
|
|
30
30
|
```tsx
|
|
31
|
-
import { ThemeProvider } from '@boostdev/components/native/ThemeContext';
|
|
31
|
+
import { ThemeProvider } from '@boostdev/design-system-components/native/ThemeContext';
|
|
32
32
|
|
|
33
33
|
export default function App() {
|
|
34
34
|
return (
|
|
@@ -57,7 +57,7 @@ Native components consume tokens from `src/native/tokens.ts` — a JS object mir
|
|
|
57
57
|
Tokens are accessed inside components via `useTheme()`:
|
|
58
58
|
|
|
59
59
|
```tsx
|
|
60
|
-
import { useTheme } from '@boostdev/components/native/ThemeContext';
|
|
60
|
+
import { useTheme } from '@boostdev/design-system-components/native/ThemeContext';
|
|
61
61
|
|
|
62
62
|
function MyComponent() {
|
|
63
63
|
const { tokens } = useTheme();
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Accordion custom element. Coordinates open/closed state acros
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -85,7 +85,7 @@ Or in HTML without a bundler:
|
|
|
85
85
|
</bds-accordion-item>
|
|
86
86
|
<bds-accordion-item>
|
|
87
87
|
<span slot="header">How do I install it?</span>
|
|
88
|
-
<p>Run npm install @boostdev/components.</p>
|
|
88
|
+
<p>Run npm install @boostdev/design-system-components.</p>
|
|
89
89
|
</bds-accordion-item>
|
|
90
90
|
</bds-accordion>
|
|
91
91
|
|
|
@@ -49,7 +49,7 @@ function BdsAccordionStory({
|
|
|
49
49
|
{React.createElement('p', { style: { margin: 0 } }, 'A framework-agnostic component library built on web standards.')}
|
|
50
50
|
</BdsAccordionItem>
|
|
51
51
|
<BdsAccordionItem header="How do I install it?">
|
|
52
|
-
{React.createElement('p', { style: { margin: 0 } }, 'Run npm install @boostdev/components and import the web components entry point.')}
|
|
52
|
+
{React.createElement('p', { style: { margin: 0 } }, 'Run npm install @boostdev/design-system-components and import the web components entry point.')}
|
|
53
53
|
</BdsAccordionItem>
|
|
54
54
|
<BdsAccordionItem header="Does it support dark mode?">
|
|
55
55
|
{React.createElement('p', { style: { margin: 0 } }, 'Yes — all design tokens respond to [data-theme="dark"] and prefers-color-scheme: dark.')}
|
|
@@ -13,14 +13,14 @@ Framework-agnostic button custom element. Renders as `<button>` or `<a>` dependi
|
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
15
|
// Register all web components at once
|
|
16
|
-
import '@boostdev/components/web-components';
|
|
16
|
+
import '@boostdev/design-system-components/web-components';
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Or in HTML without a bundler:
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
22
|
<script type="module">
|
|
23
|
-
import '@boostdev/components/web-components';
|
|
23
|
+
import '@boostdev/design-system-components/web-components';
|
|
24
24
|
</script>
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Collapsible custom element. Wraps a native `<details>`/`<summ
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Dialog custom element. Wraps a native `<dialog>` element with
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Drawer (slide-in panel) custom element. Same modal infrastruc
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Dropdown Menu custom element. A trigger-anchored menu panel w
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Skip Navigation Link custom element. Visually hidden until fo
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Tabs custom element. Coordinates `<bds-tab>` and `<bds-tab-pa
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -12,7 +12,7 @@ Framework-agnostic toast notification provider. Wrap your page content in `<bds-
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Examples
|
|
@@ -34,7 +34,7 @@ import '@boostdev/components/web-components';
|
|
|
34
34
|
### 1. Static method (import required)
|
|
35
35
|
|
|
36
36
|
```js
|
|
37
|
-
import { BdsToastProvider } from '@boostdev/components/web-components';
|
|
37
|
+
import { BdsToastProvider } from '@boostdev/design-system-components/web-components';
|
|
38
38
|
|
|
39
39
|
BdsToastProvider.show('File saved', 'success');
|
|
40
40
|
BdsToastProvider.show('Something went wrong', 'error');
|
|
@@ -75,7 +75,7 @@ document.dispatchEvent(new CustomEvent('bds-show-toast', {
|
|
|
75
75
|
</bds-toast-provider>
|
|
76
76
|
|
|
77
77
|
<script type="module">
|
|
78
|
-
import '@boostdev/components/web-components';
|
|
78
|
+
import '@boostdev/design-system-components/web-components';
|
|
79
79
|
// or use the document event API — no import needed
|
|
80
80
|
</script>
|
|
81
81
|
```
|
|
@@ -12,14 +12,14 @@ Framework-agnostic Tooltip custom element. Displays a small informational label
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import '@boostdev/components/web-components';
|
|
15
|
+
import '@boostdev/design-system-components/web-components';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or in HTML without a bundler:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="module">
|
|
22
|
-
import '@boostdev/components/web-components';
|
|
22
|
+
import '@boostdev/design-system-components/web-components';
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|