@adobe-commerce/elsie 1.0.0-alpha5 → 1.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/.elsie.js +9 -0
- package/.eslintrc.js +9 -0
- package/__mocks__/svg.js +9 -0
- package/bin/lib/validate-typeof.js +9 -0
- package/bin/lib/write-file.js +9 -0
- package/bin/lib/write-parent-index.js +9 -0
- package/config/eslint.js +9 -0
- package/config/jest.js +9 -0
- package/config/prettier.js +9 -0
- package/config/setEnvVars.js +9 -0
- package/config/storybook/addon.js +9 -0
- package/config/storybook/components/FileTree/FileTree.jsx +9 -0
- package/config/storybook/components/FileTree/index.js +9 -0
- package/config/storybook/components/Flex/Flex.jsx +9 -0
- package/config/storybook/components/Flex/Flex.module.css +9 -0
- package/config/storybook/components/Flex/index.js +9 -0
- package/config/storybook/components/OptionsTable/OptionsTable.jsx +9 -0
- package/config/storybook/components/OptionsTable/OptionsTable.module.css +9 -0
- package/config/storybook/components/OptionsTable/index.js +9 -0
- package/config/storybook/components/Panel/Panel.module.css +9 -0
- package/config/storybook/components/Panel/Panel.tsx +9 -0
- package/config/storybook/components/Panel/index.ts +9 -0
- package/config/storybook/components/Screenshot/Screenshot.jsx +9 -0
- package/config/storybook/components/Screenshot/Screenshot.module.css +9 -0
- package/config/storybook/components/Screenshot/index.js +9 -0
- package/config/storybook/components/Steps/Steps.jsx +9 -0
- package/config/storybook/components/Steps/Steps.module.css +9 -0
- package/config/storybook/components/Steps/index.js +9 -0
- package/config/storybook/components/StoryWrapper/StoryWrapper.jsx +9 -0
- package/config/storybook/components/StoryWrapper/StoryWrapper.module.css +9 -0
- package/config/storybook/components/StoryWrapper/index.js +9 -0
- package/config/storybook/components/Summary/Summary.jsx +9 -0
- package/config/storybook/components/Summary/Summary.module.css +9 -0
- package/config/storybook/components/Summary/index.js +9 -0
- package/config/storybook/components/Variants/Variants.js +9 -0
- package/config/storybook/components/Variants/docs.css +9 -0
- package/config/storybook/components/Variants/index.js +9 -0
- package/config/storybook/components/video/index.jsx +9 -0
- package/config/storybook/manager.js +9 -0
- package/config/storybook/preview.jsx +9 -0
- package/config/storybook/theming/fonts.css +9 -0
- package/config/storybook/theming/manager.css +9 -0
- package/config/storybook/theming/preview.css +9 -0
- package/config/storybook/theming/theme.js +9 -0
- package/config/vite.mjs +9 -0
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.css +10 -1
- package/src/components/Accordion/Accordion.stories.tsx +9 -0
- package/src/components/Accordion/Accordion.tsx +9 -0
- package/src/components/Accordion/index.ts +9 -0
- package/src/components/ActionButton/ActionButton.css +9 -0
- package/src/components/ActionButton/ActionButton.stories.tsx +9 -0
- package/src/components/ActionButton/ActionButton.tsx +9 -0
- package/src/components/ActionButton/index.ts +9 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.css +9 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.stories.tsx +9 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.tsx +9 -0
- package/src/components/ActionButtonGroup/index.ts +9 -0
- package/src/components/AlertBanner/AlertBanner.css +9 -0
- package/src/components/AlertBanner/AlertBanner.stories.tsx +9 -0
- package/src/components/AlertBanner/AlertBanner.tsx +9 -0
- package/src/components/AlertBanner/index.ts +9 -0
- package/src/components/Breadcrumbs/Breadcrumbs.css +9 -0
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +9 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +9 -0
- package/src/components/Breadcrumbs/index.ts +9 -0
- package/src/components/Button/Button.css +9 -0
- package/src/components/Button/Button.stories.tsx +9 -0
- package/src/components/Button/Button.tsx +9 -0
- package/src/components/Button/index.ts +9 -0
- package/src/components/Card/Card.css +9 -0
- package/src/components/Card/Card.stories.tsx +9 -0
- package/src/components/Card/Card.tsx +9 -0
- package/src/components/Card/index.ts +9 -0
- package/src/components/CartItem/CartItem.css +40 -5
- package/src/components/CartItem/CartItem.stories.tsx +84 -44
- package/src/components/CartItem/CartItem.tsx +343 -320
- package/src/components/CartItem/CartItemSkeleton.tsx +9 -0
- package/src/components/CartItem/index.ts +9 -0
- package/src/components/CartList/CartList.css +9 -0
- package/src/components/CartList/CartList.stories.tsx +9 -0
- package/src/components/CartList/CartList.tsx +9 -0
- package/src/components/CartList/index.ts +9 -0
- package/src/components/Checkbox/Checkbox.css +9 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +9 -0
- package/src/components/Checkbox/Checkbox.tsx +9 -0
- package/src/components/Checkbox/index.ts +9 -0
- package/src/components/ColorSwatch/ColorSwatch.css +9 -0
- package/src/components/ColorSwatch/ColorSwatch.stories.tsx +9 -0
- package/src/components/ColorSwatch/ColorSwatch.tsx +9 -0
- package/src/components/ColorSwatch/index.ts +9 -0
- package/src/components/ContentGrid/ContentGrid.css +3 -11
- package/src/components/ContentGrid/ContentGrid.stories.tsx +3 -11
- package/src/components/ContentGrid/ContentGrid.tsx +3 -11
- package/src/components/ContentGrid/index.ts +3 -11
- package/src/components/Divider/Divider.css +9 -0
- package/src/components/Divider/Divider.stories.tsx +9 -0
- package/src/components/Divider/Divider.tsx +9 -0
- package/src/components/Divider/index.ts +9 -0
- package/src/components/Field/Field.css +9 -0
- package/src/components/Field/Field.stories.tsx +9 -0
- package/src/components/Field/Field.tsx +9 -0
- package/src/components/Field/index.ts +9 -0
- package/src/components/Header/Header.css +9 -0
- package/src/components/Header/Header.stories.tsx +52 -0
- package/src/components/Header/Header.tsx +31 -3
- package/src/components/Header/index.ts +9 -0
- package/src/components/Icon/Icon.css +9 -0
- package/src/components/Icon/Icon.stories.helpers.jsx +9 -0
- package/src/components/Icon/Icon.stories.tsx +9 -0
- package/src/components/Icon/Icon.tsx +9 -0
- package/src/components/Icon/index.ts +9 -0
- package/src/components/IllustratedMessage/IllustratedMessage.css +9 -0
- package/src/components/IllustratedMessage/IllustratedMessage.stories.tsx +9 -0
- package/src/components/IllustratedMessage/IllustratedMessage.tsx +9 -0
- package/src/components/IllustratedMessage/index.ts +9 -0
- package/src/components/Image/Image.css +9 -0
- package/src/components/Image/Image.stories.tsx +9 -0
- package/src/components/Image/Image.tsx +9 -0
- package/src/components/Image/index.ts +9 -0
- package/src/components/ImageSwatch/ImageSwatch.css +9 -0
- package/src/components/ImageSwatch/ImageSwatch.stories.tsx +58 -0
- package/src/components/ImageSwatch/ImageSwatch.tsx +22 -10
- package/src/components/ImageSwatch/index.ts +9 -0
- package/src/components/InLineAlert/InLineAlert.css +9 -0
- package/src/components/InLineAlert/InLineAlert.stories.tsx +9 -0
- package/src/components/InLineAlert/InLineAlert.tsx +9 -0
- package/src/components/InLineAlert/index.ts +9 -0
- package/src/components/Incrementer/Incrementer.css +9 -0
- package/src/components/Incrementer/Incrementer.stories.tsx +9 -0
- package/src/components/Incrementer/Incrementer.tsx +9 -0
- package/src/components/Incrementer/index.ts +9 -0
- package/src/components/Input/Input.css +9 -0
- package/src/components/Input/Input.stories.tsx +9 -0
- package/src/components/Input/Input.tsx +9 -0
- package/src/components/Input/index.ts +9 -0
- package/src/components/InputDate/InputDate.css +9 -0
- package/src/components/InputDate/InputDate.stories.tsx +9 -0
- package/src/components/InputDate/InputDate.tsx +9 -0
- package/src/components/InputDate/index.ts +9 -0
- package/src/components/InputPassword/InputPassword.css +9 -0
- package/src/components/InputPassword/InputPassword.stories.tsx +9 -0
- package/src/components/InputPassword/InputPassword.tsx +9 -0
- package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.css +9 -0
- package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.tsx +9 -0
- package/src/components/InputPassword/PasswordStatusIndicator/index.ts +9 -0
- package/src/components/InputPassword/index.ts +9 -0
- package/src/components/Modal/Modal.css +8 -13
- package/src/components/Modal/Modal.stories.tsx +8 -13
- package/src/components/Modal/Modal.tsx +8 -13
- package/src/components/Modal/index.ts +8 -13
- package/src/components/Pagination/Pagination.css +9 -0
- package/src/components/Pagination/Pagination.stories.tsx +9 -0
- package/src/components/Pagination/Pagination.tsx +9 -0
- package/src/components/Pagination/index.ts +9 -0
- package/src/components/Picker/Picker.css +9 -0
- package/src/components/Picker/Picker.stories.tsx +9 -0
- package/src/components/Picker/Picker.tsx +9 -0
- package/src/components/Picker/index.ts +9 -0
- package/src/components/Price/Price.css +9 -0
- package/src/components/Price/Price.stories.tsx +9 -0
- package/src/components/Price/Price.tsx +9 -0
- package/src/components/Price/index.ts +9 -0
- package/src/components/PriceRange/PriceRange.css +9 -0
- package/src/components/PriceRange/PriceRange.stories.tsx +9 -0
- package/src/components/PriceRange/PriceRange.tsx +9 -0
- package/src/components/PriceRange/index.ts +9 -0
- package/src/components/ProgressSpinner/ProgressSpinner.css +9 -0
- package/src/components/ProgressSpinner/ProgressSpinner.stories.tsx +9 -0
- package/src/components/ProgressSpinner/ProgressSpinner.tsx +9 -0
- package/src/components/ProgressSpinner/index.ts +9 -0
- package/src/components/RadioButton/RadioButton.css +9 -0
- package/src/components/RadioButton/RadioButton.stories.tsx +9 -0
- package/src/components/RadioButton/RadioButton.tsx +9 -0
- package/src/components/RadioButton/index.ts +9 -0
- package/src/components/Skeleton/Skeleton.css +9 -0
- package/src/components/Skeleton/Skeleton.stories.tsx +9 -0
- package/src/components/Skeleton/Skeleton.tsx +9 -0
- package/src/components/Skeleton/index.ts +9 -0
- package/src/components/Tag/Tag.css +9 -0
- package/src/components/Tag/Tag.stories.tsx +9 -0
- package/src/components/Tag/Tag.tsx +9 -0
- package/src/components/Tag/index.ts +9 -0
- package/src/components/TextArea/TextArea.css +9 -0
- package/src/components/TextArea/TextArea.stories.tsx +9 -0
- package/src/components/TextArea/TextArea.tsx +9 -0
- package/src/components/TextArea/index.ts +9 -0
- package/src/components/TextSwatch/TextSwatch.css +9 -0
- package/src/components/TextSwatch/TextSwatch.stories.tsx +9 -0
- package/src/components/TextSwatch/TextSwatch.tsx +9 -0
- package/src/components/TextSwatch/index.ts +9 -0
- package/src/components/ToggleButton/ToggleButton.css +18 -0
- package/src/components/ToggleButton/ToggleButton.stories.tsx +47 -3
- package/src/components/ToggleButton/ToggleButton.tsx +19 -11
- package/src/components/ToggleButton/index.ts +9 -0
- package/src/components/UIProvider/UIProvider.css +9 -0
- package/src/components/UIProvider/UIProvider.tsx +9 -0
- package/src/components/UIProvider/debugger.css +9 -0
- package/src/components/UIProvider/index.ts +9 -0
- package/src/components/UIProvider/normalize.css +9 -0
- package/src/components/index.ts +9 -0
- package/src/i18n/index.ts +9 -0
- package/src/lib/classes.ts +9 -0
- package/src/lib/config.ts +9 -0
- package/src/lib/debounce.ts +9 -0
- package/src/lib/deepmerge.ts +9 -0
- package/src/lib/deviceUtils.ts +9 -0
- package/src/lib/form-values.ts +9 -0
- package/src/lib/i18n.ts +9 -0
- package/src/lib/image-params-keymap.ts +9 -0
- package/src/lib/index.ts +9 -0
- package/src/lib/initializer.ts +9 -0
- package/src/lib/is-number.ts +9 -0
- package/src/lib/render.tsx +9 -0
- package/src/lib/resolve-image.ts +9 -0
- package/src/lib/signals.ts +9 -0
- package/src/lib/slot.tsx +9 -0
- package/src/lib/tests.tsx +9 -0
- package/src/lib/types.ts +9 -0
- package/src/lib/vcomponent.tsx +8 -13
- package/static/assets/images/index.ts +9 -0
- package/storybook-stories.js +9 -0
- package/tests/__mocks__/browserMocks.ts +9 -0
- package/tests/__mocks__/fileMocks.ts +9 -0
- package/types/icons.d.ts +9 -0
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
11
|
import { HTMLAttributes, useState, useEffect } from 'preact/compat';
|
|
3
12
|
import { classes } from '@adobe-commerce/elsie/lib';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
export * from '@adobe-commerce/elsie/components/Accordion/Accordion';
|
|
2
11
|
export { Accordion as default } from '@adobe-commerce/elsie/components/Accordion/Accordion';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
/* https://cssguidelin.es/#bem-like-naming */
|
|
2
11
|
|
|
3
12
|
.dropin-action-button {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
11
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
12
|
import {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import { ComponentChildren, FunctionComponent, VNode } from 'preact';
|
|
2
11
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
12
|
import { VComponent, classes } from '@adobe-commerce/elsie/lib';
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
export * from '@adobe-commerce/elsie/components/ActionButton/ActionButton';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
/* https://cssguidelin.es/#bem-like-naming */
|
|
2
11
|
|
|
3
12
|
.dropin-action-button-group {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
11
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
12
|
import { ActionButton } from '..';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import { FunctionComponent, VNode, cloneElement } from 'preact';
|
|
2
11
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
12
|
import { classes } from '@adobe-commerce/elsie/lib';
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
export * from '@adobe-commerce/elsie/components/ActionButtonGroup/ActionButtonGroup';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
/* https://cssguidelin.es/#bem-like-naming */
|
|
2
11
|
|
|
3
12
|
.dropin-alert-banner {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
11
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
12
|
import {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
11
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
12
|
import { classes, VComponent } from '@adobe-commerce/elsie/lib';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
export * from '@adobe-commerce/elsie/components/AlertBanner/AlertBanner';
|
|
2
11
|
export { AlertBanner as default } from '@adobe-commerce/elsie/components/AlertBanner/AlertBanner';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
/* https://cssguidelin.es/#bem-like-naming */
|
|
2
11
|
|
|
3
12
|
.dropin-breadcrumbs__container {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
11
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
12
|
import {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
2
11
|
import { FunctionComponent, VNode } from 'preact';
|
|
3
12
|
import { VComponent, classes } from '@adobe-commerce/elsie/lib';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
export * from '@adobe-commerce/elsie/components/Breadcrumbs/Breadcrumbs';
|
|
2
11
|
export { Breadcrumbs as default } from '@adobe-commerce/elsie/components/Breadcrumbs/Breadcrumbs';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
/* Common button styles */
|
|
2
11
|
.dropin-button,
|
|
3
12
|
.dropin-iconButton {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
2
11
|
import {
|
|
3
12
|
Button as component,
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import { ComponentChildren, FunctionComponent, VNode } from 'preact';
|
|
2
11
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
12
|
import { VComponent, classes } from '@adobe-commerce/elsie/lib';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
export * from '@adobe-commerce/elsie/components/Button/Button';
|
|
2
11
|
export { Button as default } from '@adobe-commerce/elsie/components/Button/Button';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
/* https://cssguidelin.es/#bem-like-naming */
|
|
2
11
|
|
|
3
12
|
.dropin-card {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
// https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
|
|
2
11
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
3
12
|
import { Card, CardProps } from '@adobe-commerce/elsie/components/Card';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
import { ComponentChildren, FunctionComponent } from 'preact';
|
|
2
11
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
12
|
import { classes } from '@adobe-commerce/elsie/lib';
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
export * from '@adobe-commerce/elsie/components/Card/Card';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2024 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
|
|
1
10
|
/* https://cssguidelin.es/#bem-like-naming */
|
|
2
11
|
|
|
3
12
|
.dropin-cart-item {
|
|
@@ -207,6 +216,20 @@
|
|
|
207
216
|
grid-column: 2 / 5;
|
|
208
217
|
}
|
|
209
218
|
|
|
219
|
+
.dropin-cart-item__actions {
|
|
220
|
+
grid-column: 1 / 5;
|
|
221
|
+
grid-row: 5 / 10;
|
|
222
|
+
text-align: left;
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-direction: column;
|
|
225
|
+
gap: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.dropin-cart-item__actions button:only-child {
|
|
229
|
+
padding-left: 0;
|
|
230
|
+
padding-right: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
210
233
|
.dropin-cart-item__title--edit {
|
|
211
234
|
padding-right: var(--spacing-xbig);
|
|
212
235
|
}
|
|
@@ -278,6 +301,11 @@
|
|
|
278
301
|
grid-column: 2 / 4;
|
|
279
302
|
}
|
|
280
303
|
|
|
304
|
+
.dropin-cart-item__actions {
|
|
305
|
+
grid-column: 1 / 4;
|
|
306
|
+
grid-row: 5 / 10;
|
|
307
|
+
}
|
|
308
|
+
|
|
281
309
|
.dropin-cart-item__title--edit {
|
|
282
310
|
grid-column: 2 / 5;
|
|
283
311
|
}
|
|
@@ -331,7 +359,13 @@
|
|
|
331
359
|
.dropin-cart-item__alert,
|
|
332
360
|
.dropin-cart-item__quantity,
|
|
333
361
|
.dropin-cart-item__footer {
|
|
334
|
-
grid-column: 3 /
|
|
362
|
+
grid-column: 3 / 9;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.dropin-cart-item__actions {
|
|
366
|
+
grid-column: 10 / 13;
|
|
367
|
+
grid-row: 4 / 10;
|
|
368
|
+
text-align: right;
|
|
335
369
|
}
|
|
336
370
|
|
|
337
371
|
.dropin-cart-item__savings__wrapper {
|
|
@@ -396,9 +430,10 @@
|
|
|
396
430
|
padding-right: unset;
|
|
397
431
|
}
|
|
398
432
|
|
|
399
|
-
.dropin-cart-
|
|
400
|
-
grid-column:
|
|
401
|
-
grid-row:
|
|
433
|
+
.dropin-cart-item__actions {
|
|
434
|
+
grid-column: 9 / 13;
|
|
435
|
+
grid-row: 4 / 10;
|
|
436
|
+
text-align: right;
|
|
402
437
|
}
|
|
403
438
|
|
|
404
439
|
.dropin-cart-item__warning,
|
|
@@ -433,7 +468,7 @@
|
|
|
433
468
|
}
|
|
434
469
|
|
|
435
470
|
.dropin-cart-item__total {
|
|
436
|
-
grid-column:
|
|
471
|
+
grid-column: 10 / 13;
|
|
437
472
|
grid-row: 1 / 10;
|
|
438
473
|
justify-self: end;
|
|
439
474
|
text-align: right;
|