@adobe-commerce/elsie 1.0.0-alpha1 → 1.0.0-alpha2
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/.elsie.js +1 -1
- package/bin/builders/generate/component/templates/Component.js +1 -1
- package/bin/builders/generate/component/templates/unit-test.js +1 -1
- package/bin/builders/generate/container/templates/Component.js +1 -1
- package/bin/builders/generate/container/templates/unit-test.js +1 -1
- package/config/eslint.js +8 -8
- package/config/jest.js +3 -3
- package/config/storybook/components/FileTree/index.js +1 -1
- package/config/storybook/components/Flex/index.js +1 -1
- package/config/storybook/components/OptionsTable/index.js +1 -1
- package/config/storybook/components/Panel/index.ts +1 -1
- package/config/storybook/components/Screenshot/index.js +1 -1
- package/config/storybook/components/Steps/index.js +1 -1
- package/config/storybook/components/StoryWrapper/index.js +1 -1
- package/config/storybook/components/Summary/index.js +1 -1
- package/config/storybook/components/Variants/index.js +1 -1
- package/config/vite.mjs +12 -12
- package/dist/recaptcha.js +2 -2
- package/dist/types/elsie/src/components/Icon/Icon.d.ts +1 -1
- package/dist/types/event-bus/src/events-catalog.d.ts +16 -0
- package/dist/types/event-bus/src/index.d.ts +53 -0
- package/dist/types/fetch-graphql/src/index.d.ts +105 -0
- package/dist/types/recaptcha/src/configs/index.d.ts +4 -0
- package/dist/types/recaptcha/src/configs/message.config.d.ts +8 -0
- package/dist/types/recaptcha/src/configs/recaptchaBadgeSelector.config.d.ts +2 -0
- package/dist/types/recaptcha/src/configs/typeForms.config.d.ts +2 -0
- package/dist/types/recaptcha/src/graphql/recaptchaConfig.graphql.d.ts +2 -0
- package/dist/types/recaptcha/src/index.d.ts +42 -0
- package/dist/types/recaptcha/src/lib/_checkRecaptchaBadge.d.ts +2 -0
- package/dist/types/recaptcha/src/lib/_convertKeysToCamelCase.d.ts +6 -0
- package/dist/types/recaptcha/src/lib/_extendConfig.d.ts +4 -0
- package/dist/types/recaptcha/src/lib/_storageConfig.d.ts +6 -0
- package/dist/types/recaptcha/src/lib/index.d.ts +5 -0
- package/dist/types/recaptcha/src/services/recaptcha.service.d.ts +6 -0
- package/package.json +1 -2
- package/src/components/Accordion/Accordion.stories.tsx +3 -3
- package/src/components/Accordion/Accordion.tsx +5 -5
- package/src/components/Accordion/index.ts +2 -2
- package/src/components/ActionButton/ActionButton.stories.tsx +4 -4
- package/src/components/ActionButton/ActionButton.tsx +2 -2
- package/src/components/ActionButton/index.ts +1 -1
- package/src/components/ActionButtonGroup/ActionButtonGroup.stories.tsx +3 -3
- package/src/components/ActionButtonGroup/ActionButtonGroup.tsx +3 -3
- package/src/components/ActionButtonGroup/index.ts +1 -1
- package/src/components/AlertBanner/AlertBanner.stories.tsx +2 -2
- package/src/components/AlertBanner/AlertBanner.tsx +5 -5
- package/src/components/AlertBanner/index.ts +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +5 -5
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/src/components/Breadcrumbs/index.ts +2 -2
- package/src/components/Button/Button.mdx +2 -2
- package/src/components/Button/Button.stories.tsx +4 -4
- package/src/components/Button/Button.tsx +2 -2
- package/src/components/Button/index.ts +2 -2
- package/src/components/Card/Card.stories.tsx +2 -2
- package/src/components/Card/Card.tsx +2 -2
- package/src/components/Card/index.ts +1 -1
- package/src/components/CartItem/CartItem.stories.tsx +2 -2
- package/src/components/CartItem/CartItem.tsx +5 -5
- package/src/components/CartItem/CartItemSkeleton.tsx +1 -1
- package/src/components/CartItem/index.ts +3 -3
- package/src/components/CartList/CartList.stories.tsx +1 -1
- package/src/components/CartList/CartList.tsx +2 -2
- package/src/components/CartList/index.ts +2 -2
- package/src/components/Checkbox/Checkbox.stories.tsx +2 -2
- package/src/components/Checkbox/Checkbox.tsx +4 -4
- package/src/components/Checkbox/index.ts +1 -1
- package/src/components/ColorSwatch/ColorSwatch.stories.tsx +2 -2
- package/src/components/ColorSwatch/ColorSwatch.tsx +3 -3
- package/src/components/ColorSwatch/index.ts +2 -2
- package/src/components/ContentGrid/ContentGrid.stories.tsx +1 -1
- package/src/components/ContentGrid/ContentGrid.tsx +2 -2
- package/src/components/ContentGrid/index.ts +2 -2
- package/src/components/Divider/Divider.stories.tsx +1 -1
- package/src/components/Divider/Divider.tsx +2 -2
- package/src/components/Divider/index.ts +2 -2
- package/src/components/Field/Field.stories.tsx +9 -9
- package/src/components/Field/Field.tsx +2 -2
- package/src/components/Field/index.ts +1 -1
- package/src/components/Header/Header.stories.tsx +2 -2
- package/src/components/Header/Header.tsx +3 -3
- package/src/components/Header/index.ts +2 -2
- package/src/components/Icon/Icon.stories.helpers.jsx +1 -1
- package/src/components/Icon/Icon.stories.tsx +4 -4
- package/src/components/Icon/Icon.tsx +45 -45
- package/src/components/Icon/index.ts +1 -1
- package/src/components/IllustratedMessage/IllustratedMessage.stories.tsx +4 -4
- package/src/components/IllustratedMessage/IllustratedMessage.tsx +3 -3
- package/src/components/IllustratedMessage/index.ts +2 -2
- package/src/components/Image/Image.stories.tsx +2 -2
- package/src/components/Image/Image.tsx +2 -2
- package/src/components/Image/index.ts +1 -1
- package/src/components/ImageSwatch/ImageSwatch.stories.tsx +2 -2
- package/src/components/ImageSwatch/ImageSwatch.tsx +4 -4
- package/src/components/ImageSwatch/index.ts +2 -2
- package/src/components/InLineAlert/InLineAlert.stories.tsx +4 -4
- package/src/components/InLineAlert/InLineAlert.tsx +5 -5
- package/src/components/InLineAlert/index.ts +2 -2
- package/src/components/Incrementer/Incrementer.stories.tsx +1 -1
- package/src/components/Incrementer/Incrementer.tsx +5 -5
- package/src/components/Incrementer/index.ts +1 -1
- package/src/components/Input/Input.stories.tsx +4 -4
- package/src/components/Input/Input.tsx +4 -4
- package/src/components/Input/index.ts +2 -2
- package/src/components/InputDate/InputDate.stories.tsx +1 -1
- package/src/components/InputDate/InputDate.tsx +5 -5
- package/src/components/InputDate/index.ts +2 -2
- package/src/components/InputPassword/InputPassword.stories.tsx +1 -1
- package/src/components/InputPassword/InputPassword.tsx +5 -5
- package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.tsx +4 -4
- package/src/components/InputPassword/PasswordStatusIndicator/index.ts +2 -2
- package/src/components/InputPassword/index.ts +2 -2
- package/src/components/Modal/Modal.tsx +4 -4
- package/src/components/Modal/index.ts +1 -1
- package/src/components/Pagination/Pagination.stories.tsx +2 -2
- package/src/components/Pagination/Pagination.tsx +5 -5
- package/src/components/Pagination/index.ts +2 -2
- package/src/components/Picker/Picker.stories.tsx +2 -2
- package/src/components/Picker/Picker.tsx +4 -4
- package/src/components/Picker/index.ts +1 -1
- package/src/components/Price/Price.stories.tsx +2 -2
- package/src/components/Price/Price.tsx +2 -2
- package/src/components/Price/index.ts +1 -1
- package/src/components/PriceRange/PriceRange.stories.tsx +2 -2
- package/src/components/PriceRange/PriceRange.tsx +4 -4
- package/src/components/PriceRange/index.ts +2 -2
- package/src/components/ProgressSpinner/ProgressSpinner.stories.tsx +3 -3
- package/src/components/ProgressSpinner/ProgressSpinner.tsx +3 -3
- package/src/components/ProgressSpinner/index.ts +2 -2
- package/src/components/RadioButton/RadioButton.stories.tsx +2 -2
- package/src/components/RadioButton/RadioButton.tsx +2 -2
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Skeleton/index.ts +1 -1
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/Tag/Tag.tsx +2 -2
- package/src/components/Tag/index.ts +2 -2
- package/src/components/TextArea/TextArea.stories.tsx +1 -1
- package/src/components/TextArea/TextArea.tsx +2 -2
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextSwatch/TextSwatch.stories.tsx +2 -2
- package/src/components/TextSwatch/TextSwatch.tsx +3 -3
- package/src/components/TextSwatch/index.ts +2 -2
- package/src/components/ToggleButton/ToggleButton.stories.tsx +3 -3
- package/src/components/ToggleButton/ToggleButton.tsx +3 -3
- package/src/components/ToggleButton/index.ts +2 -2
- package/src/components/UIProvider/UIProvider.tsx +4 -4
- package/src/components/UIProvider/index.ts +1 -1
- package/src/components/index.ts +40 -40
- package/src/docs/API/event-bus.mdx +1 -1
- package/src/docs/API/graphql.mdx +3 -3
- package/src/docs/API/initializer.mdx +2 -2
- package/src/docs/API/render.mdx +2 -2
- package/src/docs/Design/colors.mdx +1 -1
- package/src/docs/Design/grid.mdx +2 -2
- package/src/docs/Design/overview.mdx +6 -6
- package/src/docs/Design/shapes.mdx +3 -3
- package/src/docs/Design/spacing.mdx +1 -1
- package/src/docs/Design/typography.mdx +1 -1
- package/src/docs/Utilities/classList.mdx +2 -2
- package/src/docs/Utilities/debounce.mdx +1 -1
- package/src/docs/Utilities/getFormErrors.mdx +1 -1
- package/src/docs/Utilities/getFormValues.mdx +1 -1
- package/src/docs/components/overview.mdx +3 -3
- package/src/docs/quick-start.mdx +3 -3
- package/src/docs/slots.mdx +1 -1
- package/src/docs/welcome.mdx +4 -4
- package/src/i18n/index.ts +2 -2
- package/src/lib/index.ts +15 -15
- package/src/lib/initializer.ts +1 -1
- package/src/lib/render.tsx +2 -2
- package/src/lib/resolve-image.ts +1 -1
- package/src/lib/slot.tsx +2 -2
- package/src/lib/tests.tsx +1 -1
|
@@ -3,10 +3,10 @@ import type { Meta, StoryObj } from '@storybook/preact';
|
|
|
3
3
|
import {
|
|
4
4
|
ActionButton as component,
|
|
5
5
|
ActionButtonProps,
|
|
6
|
-
} from '@adobe/elsie/components/ActionButton';
|
|
7
|
-
import { Add } from '@adobe/elsie/icons';
|
|
8
|
-
import { Icon } from '@adobe/elsie/components/Icon';
|
|
9
|
-
import { IconsList } from '@adobe/elsie/components/Icon/Icon.stories.helpers';
|
|
6
|
+
} from '@adobe-commerce/elsie/components/ActionButton';
|
|
7
|
+
import { Add } from '@adobe-commerce/elsie/icons';
|
|
8
|
+
import { Icon } from '@adobe-commerce/elsie/components/Icon';
|
|
9
|
+
import { IconsList } from '@adobe-commerce/elsie/components/Icon/Icon.stories.helpers';
|
|
10
10
|
import { expect, within } from '@storybook/test';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentChildren, FunctionComponent, VNode } from 'preact';
|
|
2
2
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { VComponent, classes } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/ActionButton/ActionButton.css';
|
|
3
|
+
import { VComponent, classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/ActionButton/ActionButton.css';
|
|
5
5
|
|
|
6
6
|
export interface ActionButtonProps
|
|
7
7
|
extends Omit<HTMLAttributes<HTMLButtonElement>, 'icon'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/ActionButton/ActionButton';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/ActionButton/ActionButton';
|
|
@@ -4,8 +4,8 @@ import { ActionButton } from '..';
|
|
|
4
4
|
import {
|
|
5
5
|
ActionButtonGroup as component,
|
|
6
6
|
ActionButtonGroupProps,
|
|
7
|
-
} from '@adobe/elsie/components/ActionButtonGroup';
|
|
8
|
-
import { Cart, Heart, Star } from '@adobe/elsie/icons';
|
|
7
|
+
} from '@adobe-commerce/elsie/components/ActionButtonGroup';
|
|
8
|
+
import { Cart, Heart, Star } from '@adobe-commerce/elsie/icons';
|
|
9
9
|
import { Icon } from '../Icon';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -47,7 +47,7 @@ type Story = StoryObj<ActionButtonGroupProps>;
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* ```ts
|
|
50
|
-
* import { ActionButtonGroup } from '@adobe/elsie/components/ActionButtonGroup';
|
|
50
|
+
* import { ActionButtonGroup } from '@adobe-commerce/elsie/components/ActionButtonGroup';
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
53
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FunctionComponent, VNode, cloneElement } from 'preact';
|
|
2
2
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { classes } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/ActionButtonGroup/ActionButtonGroup.css';
|
|
3
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/ActionButtonGroup/ActionButtonGroup.css';
|
|
5
5
|
import { useCallback, useState } from 'preact/hooks';
|
|
6
6
|
import { Children } from 'react';
|
|
7
|
-
import { ActionButtonProps } from '@adobe/elsie/components/ActionButton';
|
|
7
|
+
import { ActionButtonProps } from '@adobe-commerce/elsie/components/ActionButton';
|
|
8
8
|
|
|
9
9
|
export interface ActionButtonGroupOption {
|
|
10
10
|
value: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/ActionButtonGroup/ActionButtonGroup';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/ActionButtonGroup/ActionButtonGroup';
|
|
@@ -3,10 +3,10 @@ import type { Meta, StoryObj } from '@storybook/preact';
|
|
|
3
3
|
import {
|
|
4
4
|
AlertBanner as component,
|
|
5
5
|
AlertBannerProps,
|
|
6
|
-
} from '@adobe/elsie/components/AlertBanner';
|
|
6
|
+
} from '@adobe-commerce/elsie/components/AlertBanner';
|
|
7
7
|
import { action } from '@storybook/addon-actions';
|
|
8
8
|
import { expect } from '@storybook/test';
|
|
9
|
-
import { IconsList } from '@adobe/elsie/components/Icon/Icon.stories.helpers';
|
|
9
|
+
import { IconsList } from '@adobe-commerce/elsie/components/Icon/Icon.stories.helpers';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Use AlertBanners to notify and prompt users to take action.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
2
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { classes, VComponent } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/AlertBanner/AlertBanner.css';
|
|
5
|
-
import { Button, Icon } from '@adobe/elsie/components';
|
|
6
|
-
import { Close } from '@adobe/elsie/icons';
|
|
7
|
-
import { useText } from '@adobe/elsie/i18n';
|
|
3
|
+
import { classes, VComponent } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/AlertBanner/AlertBanner.css';
|
|
5
|
+
import { Button, Icon } from '@adobe-commerce/elsie/components';
|
|
6
|
+
import { Close } from '@adobe-commerce/elsie/icons';
|
|
7
|
+
import { useText } from '@adobe-commerce/elsie/i18n';
|
|
8
8
|
|
|
9
9
|
export interface AlertBannerProps
|
|
10
10
|
extends Omit<HTMLAttributes<HTMLDivElement>, 'icon' | 'action'> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/AlertBanner/AlertBanner';
|
|
2
|
-
export { AlertBanner as default } from '@adobe/elsie/components/AlertBanner/AlertBanner';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/AlertBanner/AlertBanner';
|
|
2
|
+
export { AlertBanner as default } from '@adobe-commerce/elsie/components/AlertBanner/AlertBanner';
|
|
@@ -3,10 +3,10 @@ import type { Meta, StoryObj } from '@storybook/preact';
|
|
|
3
3
|
import {
|
|
4
4
|
Breadcrumbs as component,
|
|
5
5
|
BreadcrumbsProps,
|
|
6
|
-
} from '@adobe/elsie/components/Breadcrumbs';
|
|
7
|
-
import { Icon } from '@adobe/elsie/components/Icon';
|
|
8
|
-
import { IconsList } from '@adobe/elsie/components/Icon/Icon.stories.helpers';
|
|
9
|
-
import { ChevronRight, Placeholder } from '@adobe/elsie/icons';
|
|
6
|
+
} from '@adobe-commerce/elsie/components/Breadcrumbs';
|
|
7
|
+
import { Icon } from '@adobe-commerce/elsie/components/Icon';
|
|
8
|
+
import { IconsList } from '@adobe-commerce/elsie/components/Icon/Icon.stories.helpers';
|
|
9
|
+
import { ChevronRight, Placeholder } from '@adobe-commerce/elsie/icons';
|
|
10
10
|
import { expect } from '@storybook/test';
|
|
11
11
|
|
|
12
12
|
const meta: Meta<BreadcrumbsProps> = {
|
|
@@ -38,7 +38,7 @@ type Story = StoryObj<BreadcrumbsProps>;
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* ```ts
|
|
41
|
-
* import { Breadcrumbs } from '@adobe/elsie/components/Breadcrumbs';
|
|
41
|
+
* import { Breadcrumbs } from '@adobe-commerce/elsie/components/Breadcrumbs';
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
44
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'preact/compat';
|
|
2
2
|
import { FunctionComponent, VNode } from 'preact';
|
|
3
|
-
import { VComponent, classes } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/Breadcrumbs/Breadcrumbs.css';
|
|
3
|
+
import { VComponent, classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/Breadcrumbs/Breadcrumbs.css';
|
|
5
5
|
|
|
6
6
|
export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
|
|
7
7
|
categories: VNode[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/Breadcrumbs/Breadcrumbs';
|
|
2
|
-
export { Breadcrumbs as default } from '@adobe/elsie/components/Breadcrumbs/Breadcrumbs';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/Breadcrumbs/Breadcrumbs';
|
|
2
|
+
export { Breadcrumbs as default } from '@adobe-commerce/elsie/components/Breadcrumbs/Breadcrumbs';
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Story,
|
|
7
7
|
Description,
|
|
8
8
|
} from '@storybook/blocks';
|
|
9
|
-
import { StoryWrapper } from '@adobe/elsie/config/storybook/components/StoryWrapper';
|
|
9
|
+
import { StoryWrapper } from '@adobe-commerce/elsie/config/storybook/components/StoryWrapper';
|
|
10
10
|
import * as ButtonStories from './Button.stories';
|
|
11
11
|
import './Button.css';
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ Use Buttons to highlight or guide user actions.
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
22
|
```jsx
|
|
23
|
-
import { Button } from '@adobe/elsie/components';
|
|
23
|
+
import { Button } from '@adobe-commerce/elsie/components';
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
This example uses all the `Button` properties.
|
|
@@ -2,10 +2,10 @@ import type { Meta, StoryObj } from '@storybook/preact';
|
|
|
2
2
|
import {
|
|
3
3
|
Button as component,
|
|
4
4
|
ButtonProps,
|
|
5
|
-
} from '@adobe/elsie/components/Button';
|
|
6
|
-
import { Cart, Check, Search, SearchFilled } from '@adobe/elsie/icons';
|
|
7
|
-
import { Icon } from '@adobe/elsie/components/Icon';
|
|
8
|
-
import { IconsList } from '@adobe/elsie/components/Icon/Icon.stories.helpers';
|
|
5
|
+
} from '@adobe-commerce/elsie/components/Button';
|
|
6
|
+
import { Cart, Check, Search, SearchFilled } from '@adobe-commerce/elsie/icons';
|
|
7
|
+
import { Icon } from '@adobe-commerce/elsie/components/Icon';
|
|
8
|
+
import { IconsList } from '@adobe-commerce/elsie/components/Icon/Icon.stories.helpers';
|
|
9
9
|
import { expect, within } from '@storybook/test';
|
|
10
10
|
import { action } from '@storybook/addon-actions';
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentChildren, FunctionComponent, VNode } from 'preact';
|
|
2
2
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { VComponent, classes } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/Button/Button.css';
|
|
3
|
+
import { VComponent, classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/Button/Button.css';
|
|
5
5
|
|
|
6
6
|
export interface ButtonProps
|
|
7
7
|
extends Omit<
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/Button/Button';
|
|
2
|
-
export { Button as default } from '@adobe/elsie/components/Button/Button';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/Button/Button';
|
|
2
|
+
export { Button as default } from '@adobe-commerce/elsie/components/Button/Button';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
|
-
import { Card, CardProps } from '@adobe/elsie/components/Card';
|
|
3
|
+
import { Card, CardProps } from '@adobe-commerce/elsie/components/Card';
|
|
4
4
|
import { expect, within } from '@storybook/test';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -29,7 +29,7 @@ type Story = StoryObj<CardProps>;
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* ```ts
|
|
32
|
-
* import { Card } from '@adobe/elsie/components/Card';
|
|
32
|
+
* import { Card } from '@adobe-commerce/elsie/components/Card';
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentChildren, FunctionComponent } from 'preact';
|
|
2
2
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { classes } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/Card/Card.css';
|
|
3
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/Card/Card.css';
|
|
5
5
|
|
|
6
6
|
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
7
|
variant?: 'primary' | 'secondary';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/Card/Card';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/Card/Card';
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
CartItemProps,
|
|
10
10
|
CartItemSkeleton,
|
|
11
11
|
Icon,
|
|
12
|
-
} from '@adobe/elsie/components';
|
|
13
|
-
import { WarningWithCircle } from '@adobe/elsie/icons';
|
|
12
|
+
} from '@adobe-commerce/elsie/components';
|
|
13
|
+
import { WarningWithCircle } from '@adobe-commerce/elsie/icons';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Use CartItems to display a product item in Cart.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
2
|
import { HTMLAttributes, useContext } from 'preact/compat';
|
|
3
|
-
import { classes, VComponent } from '@adobe/elsie/lib';
|
|
3
|
+
import { classes, VComponent } from '@adobe-commerce/elsie/lib';
|
|
4
4
|
import {
|
|
5
5
|
Button,
|
|
6
6
|
CartItemSkeleton,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
UIContext,
|
|
10
10
|
ProgressSpinner,
|
|
11
11
|
Picker,
|
|
12
|
-
} from '@adobe/elsie/components';
|
|
13
|
-
import { useText } from '@adobe/elsie/i18n';
|
|
14
|
-
import { Trash } from '@adobe/elsie/icons';
|
|
12
|
+
} from '@adobe-commerce/elsie/components';
|
|
13
|
+
import { useText } from '@adobe-commerce/elsie/i18n';
|
|
14
|
+
import { Trash } from '@adobe-commerce/elsie/icons';
|
|
15
15
|
|
|
16
|
-
import '@adobe/elsie/components/CartItem/CartItem.css';
|
|
16
|
+
import '@adobe-commerce/elsie/components/CartItem/CartItem.css';
|
|
17
17
|
|
|
18
18
|
export interface CartItemProps
|
|
19
19
|
extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'loading'> {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/CartItem/CartItem';
|
|
2
|
-
export * from '@adobe/elsie/components/CartItem/CartItemSkeleton';
|
|
3
|
-
export { CartItem as default } from '@adobe/elsie/components/CartItem/CartItem';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/CartItem/CartItem';
|
|
2
|
+
export * from '@adobe-commerce/elsie/components/CartItem/CartItemSkeleton';
|
|
3
|
+
export { CartItem as default } from '@adobe-commerce/elsie/components/CartItem/CartItem';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent } from 'preact';
|
|
2
2
|
import { HTMLAttributes, Children } from 'preact/compat';
|
|
3
|
-
import { classes } from '@adobe/elsie/lib';
|
|
3
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
4
4
|
|
|
5
|
-
import '@adobe/elsie/components/CartList/CartList.css';
|
|
5
|
+
import '@adobe-commerce/elsie/components/CartList/CartList.css';
|
|
6
6
|
|
|
7
7
|
export interface CartListProps extends HTMLAttributes<HTMLDivElement> {}
|
|
8
8
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/CartList/CartList';
|
|
2
|
-
export { CartList as default } from '@adobe/elsie/components/CartList/CartList';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/CartList/CartList';
|
|
2
|
+
export { CartList as default } from '@adobe-commerce/elsie/components/CartList/CartList';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
|
-
import { Checkbox, CheckboxProps } from '@adobe/elsie/components/Checkbox';
|
|
3
|
+
import { Checkbox, CheckboxProps } from '@adobe-commerce/elsie/components/Checkbox';
|
|
4
4
|
import { expect, within, userEvent } from '@storybook/test';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -75,7 +75,7 @@ type Story = StoryObj<CheckboxProps>;
|
|
|
75
75
|
* Import the Checkbox component
|
|
76
76
|
*
|
|
77
77
|
* ```ts
|
|
78
|
-
* import { Checkbox } from '@adobe/elsie/components/Checkbox';
|
|
78
|
+
* import { Checkbox } from '@adobe-commerce/elsie/components/Checkbox';
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
81
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
2
|
import { ChangeEvent, HTMLAttributes, useRef, useState } from 'preact/compat';
|
|
3
|
-
import { classes } from '@adobe/elsie/lib';
|
|
4
|
-
import { Check } from '@adobe/elsie/icons';
|
|
5
|
-
import { Icon } from '@adobe/elsie/components/Icon';
|
|
6
|
-
import '@adobe/elsie/components/Checkbox/Checkbox.css';
|
|
3
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import { Check } from '@adobe-commerce/elsie/icons';
|
|
5
|
+
import { Icon } from '@adobe-commerce/elsie/components/Icon';
|
|
6
|
+
import '@adobe-commerce/elsie/components/Checkbox/Checkbox.css';
|
|
7
7
|
import { useEffect } from 'preact/hooks';
|
|
8
8
|
|
|
9
9
|
export interface CheckboxProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/Checkbox/Checkbox';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/Checkbox/Checkbox';
|
|
@@ -5,7 +5,7 @@ import { expect, within } from '@storybook/test';
|
|
|
5
5
|
import {
|
|
6
6
|
ColorSwatch,
|
|
7
7
|
ColorSwatchProps,
|
|
8
|
-
} from '@adobe/elsie/components/ColorSwatch';
|
|
8
|
+
} from '@adobe-commerce/elsie/components/ColorSwatch';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Use Color Swatches to display fills — such as colors, gradients, and textures — that can be applied to an object.
|
|
@@ -117,7 +117,7 @@ type Story = StoryObj<ColorSwatchProps>;
|
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* ```ts
|
|
120
|
-
* import { ColorSwatch } from '@adobe/elsie/components/ColorSwatch';
|
|
120
|
+
* import { ColorSwatch } from '@adobe-commerce/elsie/components/ColorSwatch';
|
|
121
121
|
* ```
|
|
122
122
|
*/
|
|
123
123
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent } from 'preact';
|
|
2
2
|
import { HTMLAttributes, useCallback } from 'preact/compat';
|
|
3
|
-
import { classes } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/ColorSwatch/ColorSwatch.css';
|
|
5
|
-
import { useText } from '@adobe/elsie/i18n';
|
|
3
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/ColorSwatch/ColorSwatch.css';
|
|
5
|
+
import { useText } from '@adobe-commerce/elsie/i18n';
|
|
6
6
|
|
|
7
7
|
export interface ColorSwatchProps
|
|
8
8
|
extends Omit<HTMLAttributes<HTMLInputElement>, 'label' | 'size'> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/ColorSwatch/ColorSwatch';
|
|
2
|
-
export { ColorSwatch as default } from '@adobe/elsie/components/ColorSwatch/ColorSwatch';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/ColorSwatch/ColorSwatch';
|
|
2
|
+
export { ColorSwatch as default } from '@adobe-commerce/elsie/components/ColorSwatch/ColorSwatch';
|
|
@@ -20,7 +20,7 @@ import type { Meta, StoryObj } from '@storybook/preact';
|
|
|
20
20
|
import {
|
|
21
21
|
ContentGrid as component,
|
|
22
22
|
ContentGridProps,
|
|
23
|
-
} from '@adobe/elsie/components/ContentGrid/index';
|
|
23
|
+
} from '@adobe-commerce/elsie/components/ContentGrid/index';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Used to display a grid of content, such as products or images, with a maximum number of columns.
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
import { FunctionComponent, VNode } from 'preact';
|
|
19
19
|
import { HTMLAttributes } from 'preact/compat';
|
|
20
|
-
import { classes } from '@adobe/elsie/lib';
|
|
21
|
-
import '@adobe/elsie/components/ContentGrid/ContentGrid.css';
|
|
20
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
21
|
+
import '@adobe-commerce/elsie/components/ContentGrid/ContentGrid.css';
|
|
22
22
|
|
|
23
23
|
export interface ContentGridProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
24
|
emptyGridContent: VNode;
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
* from Adobe.
|
|
16
16
|
*******************************************************************/
|
|
17
17
|
|
|
18
|
-
export * from '@adobe/elsie/components/ContentGrid/ContentGrid';
|
|
19
|
-
export { ContentGrid as default } from '@adobe/elsie/components/ContentGrid/ContentGrid';
|
|
18
|
+
export * from '@adobe-commerce/elsie/components/ContentGrid/ContentGrid';
|
|
19
|
+
export { ContentGrid as default } from '@adobe-commerce/elsie/components/ContentGrid/ContentGrid';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
2
|
-
import { Divider, DividerProps } from '@adobe/elsie/components/Divider';
|
|
2
|
+
import { Divider, DividerProps } from '@adobe-commerce/elsie/components/Divider';
|
|
3
3
|
import { expect, within } from '@storybook/test';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'preact';
|
|
2
2
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { classes } from '@adobe/elsie/lib';
|
|
4
|
-
import '@adobe/elsie/components/Divider/Divider.css';
|
|
3
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import '@adobe-commerce/elsie/components/Divider/Divider.css';
|
|
5
5
|
|
|
6
6
|
export interface DividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
7
7
|
variant?: 'primary' | 'secondary';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/Divider/Divider';
|
|
2
|
-
export { Divider as default } from '@adobe/elsie/components/Divider/Divider';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/Divider/Divider';
|
|
2
|
+
export { Divider as default } from '@adobe-commerce/elsie/components/Divider/Divider';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
Input,
|
|
9
9
|
Incrementer,
|
|
10
10
|
Checkbox,
|
|
11
|
-
} from '@adobe/elsie/components';
|
|
11
|
+
} from '@adobe-commerce/elsie/components';
|
|
12
12
|
import { expect, within, userEvent } from '@storybook/test';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -58,8 +58,8 @@ type Story = StoryObj<FieldProps>;
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* ```ts
|
|
61
|
-
* import { Field } from '@adobe/elsie/components/Field';
|
|
62
|
-
* import { Input } from '@adobe/elsie/components/Input';
|
|
61
|
+
* import { Field } from '@adobe-commerce/elsie/components/Field';
|
|
62
|
+
* import { Input } from '@adobe-commerce/elsie/components/Input';
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
65
|
export const InputField: Story = {
|
|
@@ -87,8 +87,8 @@ export const InputField: Story = {
|
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* ```ts
|
|
90
|
-
* import { Field } from '@adobe/elsie/components/Field';
|
|
91
|
-
* import { Incrementer } from '@adobe/elsie/components/Incrementer';
|
|
90
|
+
* import { Field } from '@adobe-commerce/elsie/components/Field';
|
|
91
|
+
* import { Incrementer } from '@adobe-commerce/elsie/components/Incrementer';
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
94
|
export const IncrementerField: Story = {
|
|
@@ -146,8 +146,8 @@ export const IncrementerField: Story = {
|
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* ```ts
|
|
149
|
-
* import { Field } from '@adobe/elsie/components/Field';
|
|
150
|
-
* import { Picker } from '@adobe/elsie/components/Picker';
|
|
149
|
+
* import { Field } from '@adobe-commerce/elsie/components/Field';
|
|
150
|
+
* import { Picker } from '@adobe-commerce/elsie/components/Picker';
|
|
151
151
|
* ```
|
|
152
152
|
*/
|
|
153
153
|
export const PickerField: Story = {
|
|
@@ -223,7 +223,7 @@ export const CheckboxField: Story = {
|
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* ```ts
|
|
226
|
-
* import { Field } from '@adobe/elsie/components/Field';
|
|
227
|
-
* import { TextSwatch } from '@adobe/elsie/components/TextSwatch';
|
|
226
|
+
* import { Field } from '@adobe-commerce/elsie/components/Field';
|
|
227
|
+
* import { TextSwatch } from '@adobe-commerce/elsie/components/TextSwatch';
|
|
228
228
|
* ```
|
|
229
229
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@adobe/elsie/components/Field/Field.css';
|
|
2
|
-
import { classes } from '@adobe/elsie/lib';
|
|
1
|
+
import '@adobe-commerce/elsie/components/Field/Field.css';
|
|
2
|
+
import { classes } from '@adobe-commerce/elsie/lib';
|
|
3
3
|
import { FunctionComponent, VNode } from 'preact';
|
|
4
4
|
import { HTMLAttributes } from 'preact/compat';
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/Field/Field';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/Field/Field';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
|
-
import { Header, HeaderProps } from '@adobe/elsie/components/Header';
|
|
4
|
-
import { Button } from '@adobe/elsie/components';
|
|
3
|
+
import { Header, HeaderProps } from '@adobe-commerce/elsie/components/Header';
|
|
4
|
+
import { Button } from '@adobe-commerce/elsie/components';
|
|
5
5
|
import { expect, userEvent, within } from '@storybook/test';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
2
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { classes, VComponent } from '@adobe/elsie/lib';
|
|
4
|
-
import { Divider } from '@adobe/elsie/components';
|
|
5
|
-
import '@adobe/elsie/components/Header/Header.css';
|
|
3
|
+
import { classes, VComponent } from '@adobe-commerce/elsie/lib';
|
|
4
|
+
import { Divider } from '@adobe-commerce/elsie/components';
|
|
5
|
+
import '@adobe-commerce/elsie/components/Header/Header.css';
|
|
6
6
|
|
|
7
7
|
export interface HeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
title: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@adobe/elsie/components/Header/Header';
|
|
2
|
-
export { Header as default } from '@adobe/elsie/components/Header/Header';
|
|
1
|
+
export * from '@adobe-commerce/elsie/components/Header/Header';
|
|
2
|
+
export { Header as default } from '@adobe-commerce/elsie/components/Header/Header';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
2
|
-
import { Icon, IconProps } from '@adobe/elsie/components/Icon';
|
|
3
|
-
import { Cart } from '@adobe/elsie/icons/index';
|
|
4
|
-
import * as Icons from '@adobe/elsie/icons';
|
|
2
|
+
import { Icon, IconProps } from '@adobe-commerce/elsie/components/Icon';
|
|
3
|
+
import { Cart } from '@adobe-commerce/elsie/icons/index';
|
|
4
|
+
import * as Icons from '@adobe-commerce/elsie/icons';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use Icons as symbols or metaphors to communicate and enhance the user experience.
|
|
@@ -38,7 +38,7 @@ type Story = StoryObj<IconProps>;
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* ```ts
|
|
41
|
-
* import { Icon } from '@adobe/elsie/components/Icon';
|
|
41
|
+
* import { Icon } from '@adobe-commerce/elsie/components/Icon';
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
44
|
|