@adobe-commerce/elsie 1.0.0-alpha04071347
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 +21 -0
- package/.eslintrc.js +18 -0
- package/README.md +52 -0
- package/__mocks__/svg.js +11 -0
- package/bin/builders/build/index.js +20 -0
- package/bin/builders/generate/api/index.js +65 -0
- package/bin/builders/generate/api/templates/function.js +9 -0
- package/bin/builders/generate/api/templates/index.js +7 -0
- package/bin/builders/generate/api/templates/story.js +23 -0
- package/bin/builders/generate/api/templates/unit-test.js +15 -0
- package/bin/builders/generate/component/index.js +87 -0
- package/bin/builders/generate/component/templates/Component.js +43 -0
- package/bin/builders/generate/component/templates/css.js +24 -0
- package/bin/builders/generate/component/templates/index.js +8 -0
- package/bin/builders/generate/component/templates/stories.js +46 -0
- package/bin/builders/generate/component/templates/unit-test.js +19 -0
- package/bin/builders/generate/config/index.js +54 -0
- package/bin/builders/generate/config/templates/elsie.js +29 -0
- package/bin/builders/generate/container/index.js +65 -0
- package/bin/builders/generate/container/templates/Component.js +18 -0
- package/bin/builders/generate/container/templates/index.js +8 -0
- package/bin/builders/generate/container/templates/stories.js +34 -0
- package/bin/builders/generate/container/templates/unit-test.js +19 -0
- package/bin/builders/generate/index.js +283 -0
- package/bin/builders/gql/createOrClearDirectory.js +33 -0
- package/bin/builders/gql/getSchemaRef.js +25 -0
- package/bin/builders/gql/index.js +71 -0
- package/bin/builders/lint/index.js +5 -0
- package/bin/builders/serve/index.js +44 -0
- package/bin/builders/storybook/index.js +5 -0
- package/bin/builders/test/index.js +5 -0
- package/bin/index.js +26 -0
- package/bin/lib/cli.js +8 -0
- package/bin/lib/config.js +12 -0
- package/bin/lib/log-message.js +11 -0
- package/bin/lib/string.js +26 -0
- package/bin/lib/validate-typeof.js +28 -0
- package/bin/lib/write-file.js +30 -0
- package/bin/lib/write-parent-index.js +45 -0
- package/config/eslint.js +113 -0
- package/config/jest.js +90 -0
- package/config/prettier.js +16 -0
- package/config/setEnvVars.js +14 -0
- package/config/storybook/addon.js +130 -0
- package/config/storybook/components/FileTree/FileTree.jsx +192 -0
- package/config/storybook/components/FileTree/index.js +10 -0
- package/config/storybook/components/Flex/Flex.jsx +21 -0
- package/config/storybook/components/Flex/Flex.module.css +29 -0
- package/config/storybook/components/Flex/index.js +10 -0
- package/config/storybook/components/OptionsTable/OptionsTable.jsx +88 -0
- package/config/storybook/components/OptionsTable/OptionsTable.module.css +104 -0
- package/config/storybook/components/OptionsTable/index.js +10 -0
- package/config/storybook/components/Panel/Panel.module.css +56 -0
- package/config/storybook/components/Panel/Panel.tsx +46 -0
- package/config/storybook/components/Panel/index.ts +10 -0
- package/config/storybook/components/Screenshot/Screenshot.jsx +23 -0
- package/config/storybook/components/Screenshot/Screenshot.module.css +28 -0
- package/config/storybook/components/Screenshot/index.js +10 -0
- package/config/storybook/components/Steps/Steps.jsx +21 -0
- package/config/storybook/components/Steps/Steps.module.css +43 -0
- package/config/storybook/components/Steps/index.js +10 -0
- package/config/storybook/components/StoryWrapper/StoryWrapper.jsx +18 -0
- package/config/storybook/components/StoryWrapper/StoryWrapper.module.css +22 -0
- package/config/storybook/components/StoryWrapper/index.js +10 -0
- package/config/storybook/components/Summary/Summary.jsx +19 -0
- package/config/storybook/components/Summary/Summary.module.css +20 -0
- package/config/storybook/components/Summary/index.js +10 -0
- package/config/storybook/components/Variants/Variants.js +57 -0
- package/config/storybook/components/Variants/docs.css +48 -0
- package/config/storybook/components/Variants/index.js +10 -0
- package/config/storybook/components/video/index.jsx +28 -0
- package/config/storybook/manager.js +23 -0
- package/config/storybook/preview.jsx +88 -0
- package/config/storybook/theming/fonts.css +68 -0
- package/config/storybook/theming/logo.svg +19 -0
- package/config/storybook/theming/manager.css +63 -0
- package/config/storybook/theming/preview.css +93 -0
- package/config/storybook/theming/theme.js +61 -0
- package/config/tsconfig-base.json +16 -0
- package/config/tsconfig-preact.json +15 -0
- package/config/vite.mjs +306 -0
- package/package.json +113 -0
- package/post-release.sh +5 -0
- package/src/components/Accordion/Accordion.css +88 -0
- package/src/components/Accordion/Accordion.stories.tsx +582 -0
- package/src/components/Accordion/Accordion.tsx +177 -0
- package/src/components/Accordion/index.ts +11 -0
- package/src/components/ActionButton/ActionButton.css +100 -0
- package/src/components/ActionButton/ActionButton.stories.tsx +169 -0
- package/src/components/ActionButton/ActionButton.tsx +53 -0
- package/src/components/ActionButton/index.ts +10 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.css +77 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.stories.tsx +97 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.tsx +91 -0
- package/src/components/ActionButtonGroup/index.ts +10 -0
- package/src/components/AlertBanner/AlertBanner.css +144 -0
- package/src/components/AlertBanner/AlertBanner.stories.tsx +165 -0
- package/src/components/AlertBanner/AlertBanner.tsx +90 -0
- package/src/components/AlertBanner/index.ts +11 -0
- package/src/components/Breadcrumbs/Breadcrumbs.css +60 -0
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +195 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +71 -0
- package/src/components/Breadcrumbs/index.ts +11 -0
- package/src/components/Button/Button.css +213 -0
- package/src/components/Button/Button.mdx +133 -0
- package/src/components/Button/Button.stories.tsx +398 -0
- package/src/components/Button/Button.tsx +121 -0
- package/src/components/Button/index.ts +11 -0
- package/src/components/Card/Card.css +34 -0
- package/src/components/Card/Card.stories.tsx +76 -0
- package/src/components/Card/Card.tsx +34 -0
- package/src/components/Card/index.ts +10 -0
- package/src/components/CartItem/CartItem.css +509 -0
- package/src/components/CartItem/CartItem.stories.tsx +628 -0
- package/src/components/CartItem/CartItem.tsx +467 -0
- package/src/components/CartItem/CartItemSkeleton.tsx +38 -0
- package/src/components/CartItem/index.ts +12 -0
- package/src/components/CartList/CartList.css +35 -0
- package/src/components/CartList/CartList.stories.tsx +111 -0
- package/src/components/CartList/CartList.tsx +40 -0
- package/src/components/CartList/index.ts +11 -0
- package/src/components/Checkbox/Checkbox.css +255 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +290 -0
- package/src/components/Checkbox/Checkbox.tsx +138 -0
- package/src/components/Checkbox/index.ts +10 -0
- package/src/components/ColorSwatch/ColorSwatch.css +132 -0
- package/src/components/ColorSwatch/ColorSwatch.stories.tsx +274 -0
- package/src/components/ColorSwatch/ColorSwatch.tsx +127 -0
- package/src/components/ColorSwatch/index.ts +11 -0
- package/src/components/ContentGrid/ContentGrid.css +54 -0
- package/src/components/ContentGrid/ContentGrid.stories.tsx +137 -0
- package/src/components/ContentGrid/ContentGrid.tsx +57 -0
- package/src/components/ContentGrid/index.ts +11 -0
- package/src/components/Divider/Divider.css +22 -0
- package/src/components/Divider/Divider.stories.tsx +62 -0
- package/src/components/Divider/Divider.tsx +33 -0
- package/src/components/Divider/index.ts +11 -0
- package/src/components/Field/Field.css +83 -0
- package/src/components/Field/Field.stories.tsx +238 -0
- package/src/components/Field/Field.tsx +84 -0
- package/src/components/Field/index.ts +10 -0
- package/src/components/Header/Header.css +56 -0
- package/src/components/Header/Header.stories.tsx +180 -0
- package/src/components/Header/Header.tsx +81 -0
- package/src/components/Header/index.ts +11 -0
- package/src/components/Icon/Icon.css +26 -0
- package/src/components/Icon/Icon.stories.helpers.jsx +21 -0
- package/src/components/Icon/Icon.stories.tsx +98 -0
- package/src/components/Icon/Icon.tsx +112 -0
- package/src/components/Icon/index.ts +10 -0
- package/src/components/IllustratedMessage/IllustratedMessage.css +61 -0
- package/src/components/IllustratedMessage/IllustratedMessage.stories.tsx +126 -0
- package/src/components/IllustratedMessage/IllustratedMessage.tsx +78 -0
- package/src/components/IllustratedMessage/index.ts +11 -0
- package/src/components/Image/Image.css +52 -0
- package/src/components/Image/Image.stories.tsx +89 -0
- package/src/components/Image/Image.tsx +66 -0
- package/src/components/Image/index.ts +10 -0
- package/src/components/ImageSwatch/ImageSwatch.css +154 -0
- package/src/components/ImageSwatch/ImageSwatch.stories.tsx +310 -0
- package/src/components/ImageSwatch/ImageSwatch.tsx +123 -0
- package/src/components/ImageSwatch/index.ts +11 -0
- package/src/components/InLineAlert/InLineAlert.css +116 -0
- package/src/components/InLineAlert/InLineAlert.stories.tsx +326 -0
- package/src/components/InLineAlert/InLineAlert.tsx +128 -0
- package/src/components/InLineAlert/index.ts +11 -0
- package/src/components/Incrementer/Incrementer.css +165 -0
- package/src/components/Incrementer/Incrementer.stories.tsx +172 -0
- package/src/components/Incrementer/Incrementer.tsx +192 -0
- package/src/components/Incrementer/index.ts +10 -0
- package/src/components/Input/Input.css +304 -0
- package/src/components/Input/Input.stories.tsx +155 -0
- package/src/components/Input/Input.tsx +166 -0
- package/src/components/Input/index.ts +11 -0
- package/src/components/InputDate/InputDate.css +56 -0
- package/src/components/InputDate/InputDate.stories.tsx +117 -0
- package/src/components/InputDate/InputDate.tsx +120 -0
- package/src/components/InputDate/index.ts +11 -0
- package/src/components/InputPassword/InputPassword.css +31 -0
- package/src/components/InputPassword/InputPassword.stories.tsx +148 -0
- package/src/components/InputPassword/InputPassword.tsx +135 -0
- package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.css +31 -0
- package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.tsx +96 -0
- package/src/components/InputPassword/PasswordStatusIndicator/index.ts +11 -0
- package/src/components/InputPassword/index.ts +11 -0
- package/src/components/Modal/Modal.css +125 -0
- package/src/components/Modal/Modal.stories.tsx +250 -0
- package/src/components/Modal/Modal.tsx +157 -0
- package/src/components/Modal/index.ts +10 -0
- package/src/components/Pagination/Pagination.css +95 -0
- package/src/components/Pagination/Pagination.stories.tsx +117 -0
- package/src/components/Pagination/Pagination.tsx +149 -0
- package/src/components/Pagination/index.ts +11 -0
- package/src/components/Picker/Picker.css +220 -0
- package/src/components/Picker/Picker.stories.tsx +318 -0
- package/src/components/Picker/Picker.tsx +203 -0
- package/src/components/Picker/index.ts +10 -0
- package/src/components/Price/Price.css +57 -0
- package/src/components/Price/Price.stories.tsx +110 -0
- package/src/components/Price/Price.tsx +75 -0
- package/src/components/Price/index.ts +10 -0
- package/src/components/PriceRange/PriceRange.css +66 -0
- package/src/components/PriceRange/PriceRange.stories.tsx +240 -0
- package/src/components/PriceRange/PriceRange.tsx +248 -0
- package/src/components/PriceRange/index.ts +11 -0
- package/src/components/ProgressSpinner/ProgressSpinner.css +91 -0
- package/src/components/ProgressSpinner/ProgressSpinner.stories.tsx +300 -0
- package/src/components/ProgressSpinner/ProgressSpinner.tsx +86 -0
- package/src/components/ProgressSpinner/index.ts +11 -0
- package/src/components/RadioButton/RadioButton.css +134 -0
- package/src/components/RadioButton/RadioButton.stories.tsx +126 -0
- package/src/components/RadioButton/RadioButton.tsx +86 -0
- package/src/components/RadioButton/index.ts +11 -0
- package/src/components/Skeleton/Skeleton.css +145 -0
- package/src/components/Skeleton/Skeleton.stories.tsx +265 -0
- package/src/components/Skeleton/Skeleton.tsx +133 -0
- package/src/components/Skeleton/index.ts +10 -0
- package/src/components/Tag/Tag.css +26 -0
- package/src/components/Tag/Tag.stories.tsx +103 -0
- package/src/components/Tag/Tag.tsx +38 -0
- package/src/components/Tag/index.ts +11 -0
- package/src/components/TextArea/TextArea.css +140 -0
- package/src/components/TextArea/TextArea.stories.tsx +130 -0
- package/src/components/TextArea/TextArea.tsx +89 -0
- package/src/components/TextArea/index.ts +11 -0
- package/src/components/TextSwatch/TextSwatch.css +152 -0
- package/src/components/TextSwatch/TextSwatch.stories.tsx +277 -0
- package/src/components/TextSwatch/TextSwatch.tsx +131 -0
- package/src/components/TextSwatch/index.ts +11 -0
- package/src/components/ToggleButton/ToggleButton.css +95 -0
- package/src/components/ToggleButton/ToggleButton.stories.tsx +190 -0
- package/src/components/ToggleButton/ToggleButton.tsx +75 -0
- package/src/components/ToggleButton/index.ts +11 -0
- package/src/components/UIProvider/UIProvider.css +140 -0
- package/src/components/UIProvider/UIProvider.tsx +61 -0
- package/src/components/UIProvider/debugger.css +47 -0
- package/src/components/UIProvider/index.ts +10 -0
- package/src/components/UIProvider/normalize.css +26 -0
- package/src/components/index.ts +49 -0
- package/src/docs/API/event-bus.mdx +52 -0
- package/src/docs/API/graphql.mdx +214 -0
- package/src/docs/API/initializer.mdx +119 -0
- package/src/docs/API/render.mdx +125 -0
- package/src/docs/Design/colors.mdx +202 -0
- package/src/docs/Design/designBlocks.jsx +87 -0
- package/src/docs/Design/getTokenData.ts +28 -0
- package/src/docs/Design/grid.mdx +365 -0
- package/src/docs/Design/overview.mdx +69 -0
- package/src/docs/Design/shapes.mdx +100 -0
- package/src/docs/Design/spacing.mdx +22 -0
- package/src/docs/Design/typography.mdx +126 -0
- package/src/docs/Utilities/classList.mdx +52 -0
- package/src/docs/Utilities/debounce.mdx +49 -0
- package/src/docs/Utilities/deepmerge.mdx +12 -0
- package/src/docs/Utilities/getFormErrors.mdx +41 -0
- package/src/docs/Utilities/getFormValues.mdx +38 -0
- package/src/docs/assets/Banner.png +0 -0
- package/src/docs/assets/Colors.png +0 -0
- package/src/docs/assets/DropinBanner.png +0 -0
- package/src/docs/assets/ShapeStyles.png +0 -0
- package/src/docs/assets/Spacing.png +0 -0
- package/src/docs/assets/Typography.png +0 -0
- package/src/docs/cli-usage.mdx +181 -0
- package/src/docs/components/overview.mdx +124 -0
- package/src/docs/quick-start.mdx +245 -0
- package/src/docs/slots.mdx +211 -0
- package/src/docs/welcome.mdx +52 -0
- package/src/i18n/en_US.json +146 -0
- package/src/i18n/index.ts +26 -0
- package/src/icons/Add.svg +9 -0
- package/src/icons/AddressBook.svg +3 -0
- package/src/icons/Bulk.svg +24 -0
- package/src/icons/Burger.svg +5 -0
- package/src/icons/Card.svg +7 -0
- package/src/icons/Cart.svg +11 -0
- package/src/icons/Check.svg +8 -0
- package/src/icons/CheckWithCircle.svg +4 -0
- package/src/icons/ChevronDown.svg +3 -0
- package/src/icons/ChevronRight.svg +8 -0
- package/src/icons/ChevronUp.svg +3 -0
- package/src/icons/Close.svg +4 -0
- package/src/icons/Coupon.svg +3 -0
- package/src/icons/Date.svg +4 -0
- package/src/icons/Delivery.svg +11 -0
- package/src/icons/EmptyBox.svg +3 -0
- package/src/icons/Eye.svg +3 -0
- package/src/icons/EyeClose.svg +3 -0
- package/src/icons/Gift.svg +3 -0
- package/src/icons/GiftCard.svg +3 -0
- package/src/icons/Heart.svg +3 -0
- package/src/icons/HeartFilled.svg +3 -0
- package/src/icons/InfoFilled.svg +3 -0
- package/src/icons/Locker.svg +11 -0
- package/src/icons/Minus.svg +3 -0
- package/src/icons/Order.svg +6 -0
- package/src/icons/OrderError.svg +15 -0
- package/src/icons/OrderSuccess.svg +15 -0
- package/src/icons/PaymentError.svg +16 -0
- package/src/icons/Placeholder.svg +3 -0
- package/src/icons/PlaceholderFilled.svg +4 -0
- package/src/icons/Search.svg +9 -0
- package/src/icons/SearchFilled.svg +10 -0
- package/src/icons/Sort.svg +12 -0
- package/src/icons/Star.svg +8 -0
- package/src/icons/Trash.svg +7 -0
- package/src/icons/User.svg +5 -0
- package/src/icons/View.svg +14 -0
- package/src/icons/Wallet.svg +6 -0
- package/src/icons/Warning.svg +12 -0
- package/src/icons/WarningFilled.svg +3 -0
- package/src/icons/WarningWithCircle.svg +4 -0
- package/src/icons/index.ts +42 -0
- package/src/lib/classes.ts +34 -0
- package/src/lib/config.ts +24 -0
- package/src/lib/debounce.ts +16 -0
- package/src/lib/deepmerge.ts +45 -0
- package/src/lib/deviceUtils.ts +16 -0
- package/src/lib/form-values.ts +31 -0
- package/src/lib/i18n.ts +18 -0
- package/src/lib/image-params-keymap.ts +36 -0
- package/src/lib/index.ts +24 -0
- package/src/lib/initializer.ts +134 -0
- package/src/lib/is-number.ts +12 -0
- package/src/lib/render.tsx +138 -0
- package/src/lib/resolve-image.ts +101 -0
- package/src/lib/signals.ts +11 -0
- package/src/lib/slot.tsx +434 -0
- package/src/lib/tests.tsx +47 -0
- package/src/lib/types.ts +16 -0
- package/src/lib/vcomponent.tsx +42 -0
- package/static/assets/images/Card.png +0 -0
- package/static/assets/images/example.jpg +0 -0
- package/static/assets/images/index.ts +11 -0
- package/static/dropin.png +0 -0
- package/static/favicon.svg +14 -0
- package/storybook-stories.js +21 -0
- package/tests/__mocks__/browserMocks.ts +28 -0
- package/tests/__mocks__/fileMocks.ts +12 -0
- package/tests/__mocks__/styleMock.ts +0 -0
- package/types/icons.d.ts +18 -0
|
@@ -0,0 +1,509 @@
|
|
|
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
|
+
|
|
10
|
+
/* https://cssguidelin.es/#bem-like-naming */
|
|
11
|
+
|
|
12
|
+
.dropin-cart-item {
|
|
13
|
+
--item-group-spacing: 0;
|
|
14
|
+
--group-spacing: var(--spacing-xsmall);
|
|
15
|
+
font: var(--type-body-2-default-font);
|
|
16
|
+
letter-spacing: var(--type-body-2-default-letter-spacing);
|
|
17
|
+
color: var(--color-neutral-700);
|
|
18
|
+
container-type: inline-size;
|
|
19
|
+
container-name: cart-item;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Skeleton */
|
|
24
|
+
.dropin-cart-item__skeleton {
|
|
25
|
+
gap: var(--spacing-xsmall);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dropin-cart-item__skeleton__item {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dropin-cart-item__skeleton__item::after {
|
|
34
|
+
content: '';
|
|
35
|
+
display: inline-block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dropin-cart-item__image .dropin-cart-item__skeleton__item {
|
|
39
|
+
padding-bottom: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dropin-cart-item__image:is(img),
|
|
43
|
+
.dropin-cart-item__image img {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.dropin-cart-item__title {
|
|
49
|
+
font: var(--type-body-1-default-font);
|
|
50
|
+
letter-spacing: var(--type-body-1-default-letter-spacing);
|
|
51
|
+
color: var(--color-neutral-800);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dropin-cart-item__sku {
|
|
55
|
+
font: var(--type-details-caption-2-font);
|
|
56
|
+
letter-spacing: var(--type-details-caption-2-letter-spacing);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dropin-cart-item__configurations {
|
|
60
|
+
list-style-type: none;
|
|
61
|
+
margin: var(--group-spacing) 0 0 0;
|
|
62
|
+
padding: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.dropin-cart-item__configurations__item__value {
|
|
66
|
+
font-weight: inherit;
|
|
67
|
+
color: var(--color-neutral-800);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dropin-cart-item__configurations__item:not(:last-child) {
|
|
71
|
+
margin-right: var(--spacing-xxsmall);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dropin-cart-item__quantity__value {
|
|
75
|
+
font: var(--type-details-caption-2-font);
|
|
76
|
+
letter-spacing: var(--type-details-caption-2-letter-spacing);
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dropin-cart-item__quantity__number {
|
|
81
|
+
font-weight: inherit;
|
|
82
|
+
color: var(--color-neutral-800);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dropin-cart-item__quantity__incrementer,
|
|
86
|
+
.dropin-cart-item__quantity__picker {
|
|
87
|
+
max-width: 160px;
|
|
88
|
+
margin-top: calc(var(--group-spacing) / 2);
|
|
89
|
+
margin-bottom: var(--group-spacing);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dropin-cart-item__remove {
|
|
93
|
+
position: absolute;
|
|
94
|
+
right: 0;
|
|
95
|
+
top: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.dropin-cart-item__warning,
|
|
99
|
+
.dropin-cart-item__alert {
|
|
100
|
+
font: var(--type-details-caption-2-font);
|
|
101
|
+
letter-spacing: var(--type-details-caption-2-letter-spacing);
|
|
102
|
+
margin-bottom: var(--group-spacing);
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.dropin-cart-item__discount,
|
|
108
|
+
.dropin-cart-item__savings {
|
|
109
|
+
font: var(--type-body-2-default-font);
|
|
110
|
+
letter-spacing: var(--type-body-2-default-letter-spacing);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.dropin-cart-item__warning svg,
|
|
114
|
+
.dropin-cart-item__alert svg {
|
|
115
|
+
margin-right: var(--spacing-xxsmall);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.dropin-cart-item__savings__large-screen,
|
|
119
|
+
.dropin-cart-item__discount__large-screen,
|
|
120
|
+
.dropin-cart-item__savings__wrapper {
|
|
121
|
+
display: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.dropin-cart-item__warning,
|
|
125
|
+
.dropin-cart-item__discount,
|
|
126
|
+
.dropin-cart-item__savings {
|
|
127
|
+
color: var(--color-warning-800);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.dropin-cart-item__warning svg {
|
|
131
|
+
fill: var(--color-warning-800);
|
|
132
|
+
color: var(--color-neutral-50);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.dropin-cart-item__alert {
|
|
136
|
+
color: var(--color-alert-800);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.dropin-cart-item__alert svg {
|
|
140
|
+
fill: var(--color-alert-800);
|
|
141
|
+
color: var(--color-neutral-50);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dropin-cart-item__total {
|
|
145
|
+
display: flex;
|
|
146
|
+
gap: var(--spacing-xxsmall);
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.dropin-cart-item__row-total {
|
|
151
|
+
display: flex;
|
|
152
|
+
gap: var(--spacing-xxsmall);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dropin-cart-item__row-total__wrapper {
|
|
156
|
+
display: flex;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.dropin-cart-item__total-tax-excluded {
|
|
160
|
+
font: var(--type-details-caption-2-font);
|
|
161
|
+
letter-spacing: var(--type-details-caption-2-letter-spacing);
|
|
162
|
+
color: var(--color-neutral-800);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.dropin-cart-item--updating {
|
|
166
|
+
opacity: 0.4;
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
position: relative;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.dropin-cart-item__spinner {
|
|
172
|
+
margin: 0 auto;
|
|
173
|
+
position: absolute;
|
|
174
|
+
z-index: 999;
|
|
175
|
+
left: 0;
|
|
176
|
+
right: 0;
|
|
177
|
+
top: calc(50% - (var(--size) / 2));
|
|
178
|
+
bottom: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.dropin-cart-item__sr-only {
|
|
182
|
+
border: 0;
|
|
183
|
+
clip: rect(0 0 0 0);
|
|
184
|
+
clip-path: inset(50%);
|
|
185
|
+
height: 1;
|
|
186
|
+
margin: 0 -1px -1px 0;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
padding: 0;
|
|
189
|
+
position: absolute;
|
|
190
|
+
width: 1;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Grid */
|
|
194
|
+
.dropin-cart-item__wrapper {
|
|
195
|
+
display: grid;
|
|
196
|
+
grid-template-columns: repeat(4, 1fr);
|
|
197
|
+
grid-auto-rows: min-content;
|
|
198
|
+
grid-column-gap: var(--spacing-small);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.dropin-cart-item__image {
|
|
202
|
+
grid-column: 1 / 2;
|
|
203
|
+
grid-row: 1 / 10;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.dropin-cart-item__title,
|
|
207
|
+
.dropin-cart-item__sku,
|
|
208
|
+
.dropin-cart-item__attributes,
|
|
209
|
+
.dropin-cart-item__configurations,
|
|
210
|
+
.dropin-cart-item__price,
|
|
211
|
+
.dropin-cart-item__total,
|
|
212
|
+
.dropin-cart-item__warning,
|
|
213
|
+
.dropin-cart-item__alert,
|
|
214
|
+
.dropin-cart-item__quantity,
|
|
215
|
+
.dropin-cart-item__footer {
|
|
216
|
+
grid-column: 2 / 5;
|
|
217
|
+
}
|
|
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
|
+
|
|
233
|
+
.dropin-cart-item__title--edit {
|
|
234
|
+
padding-right: var(--spacing-xbig);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* Spacings */
|
|
238
|
+
.dropin-cart-item__description,
|
|
239
|
+
.dropin-cart-item__sku {
|
|
240
|
+
margin-top: var(--item-group-spacing);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.dropin-cart-item__price,
|
|
244
|
+
.dropin-cart-item__footer div,
|
|
245
|
+
.dropin-cart-item__attributes div {
|
|
246
|
+
margin-top: var(--group-spacing);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.dropin-cart-item__footer p {
|
|
250
|
+
margin-top: 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.dropin-cart-item__quantity:not(.dropin-cart-item__quantity--edit) {
|
|
254
|
+
display: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.dropin-cart-item__warning--quantity,
|
|
258
|
+
.dropin-cart-item__alert--quantity {
|
|
259
|
+
display: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.dropin-cart-item__description {
|
|
263
|
+
display: none;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.dropin-cart-item__price-tax-message,
|
|
267
|
+
.dropin-cart-item__price-tax-excluded-message,
|
|
268
|
+
.dropin-cart-item__total-tax-message {
|
|
269
|
+
font: var(--type-details-caption-2-font);
|
|
270
|
+
letter-spacing: var(--type-details-caption-2-letter-spacing);
|
|
271
|
+
color: var(--color-neutral-800);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.dropin-cart-item__total-tax-message {
|
|
275
|
+
margin-left: var(--spacing-xxsmall);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.dropin-cart-item__footer {
|
|
279
|
+
font: var(--type-body-2-emphasized-font);
|
|
280
|
+
letter-spacing: var(--type-body-2-emphasized-letter-spacing);
|
|
281
|
+
color: var(--color-neutral-800);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.dropin-cart-item__attributes {
|
|
285
|
+
font: var(--type-body-2-strong-font);
|
|
286
|
+
letter-spacing: var(--type-body-2-strong-letter-spacing);
|
|
287
|
+
color: var(--color-neutral-800);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Smallish / Medium */
|
|
291
|
+
@container cart-item (width >= 400px) and (width < 737px) {
|
|
292
|
+
.dropin-cart-item__title,
|
|
293
|
+
.dropin-cart-item__sku,
|
|
294
|
+
.dropin-cart-item__attributes,
|
|
295
|
+
.dropin-cart-item__configurations,
|
|
296
|
+
.dropin-cart-item__price,
|
|
297
|
+
.dropin-cart-item__warning,
|
|
298
|
+
.dropin-cart-item__alert,
|
|
299
|
+
.dropin-cart-item__quantity,
|
|
300
|
+
.dropin-cart-item__footer {
|
|
301
|
+
grid-column: 2 / 4;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.dropin-cart-item__actions {
|
|
305
|
+
grid-column: 1 / 4;
|
|
306
|
+
grid-row: 5 / 10;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.dropin-cart-item__title--edit {
|
|
310
|
+
grid-column: 2 / 5;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.dropin-cart-item__total:not(.dropin-cart-item__total--edit) {
|
|
314
|
+
grid-auto-rows: min-content;
|
|
315
|
+
grid-column: 4 / 5;
|
|
316
|
+
grid-row: 1 / 10;
|
|
317
|
+
display: grid;
|
|
318
|
+
justify-self: end;
|
|
319
|
+
text-align: right;
|
|
320
|
+
gap: unset;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* Large */
|
|
325
|
+
@container cart-item (width >= 737px) and (width < 1192px) {
|
|
326
|
+
/* Grid */
|
|
327
|
+
.dropin-cart-item__wrapper {
|
|
328
|
+
grid-template-columns: repeat(12, 1fr);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.dropin-cart-item__image {
|
|
332
|
+
grid-column: 1 / 3;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.dropin-cart-item__savings,
|
|
336
|
+
.dropin-cart-item__discount {
|
|
337
|
+
display: none;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.dropin-cart-item__savings__large-screen,
|
|
341
|
+
.dropin-cart-item__discount__large-screen,
|
|
342
|
+
.dropin-cart-item__savings__wrapper {
|
|
343
|
+
display: block;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.dropin-cart-item__savings__wrapper:empty {
|
|
347
|
+
display: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.dropin-cart-item__title,
|
|
351
|
+
.dropin-cart-item__sku,
|
|
352
|
+
.dropin-cart-item__savings__large-screen,
|
|
353
|
+
.dropin-cart-item__discount__large-screen,
|
|
354
|
+
.dropin-cart-item__attributes,
|
|
355
|
+
.dropin-cart-item__configurations,
|
|
356
|
+
.dropin-cart-item__savings__wrapper,
|
|
357
|
+
.dropin-cart-item__price,
|
|
358
|
+
.dropin-cart-item__warning,
|
|
359
|
+
.dropin-cart-item__alert,
|
|
360
|
+
.dropin-cart-item__quantity,
|
|
361
|
+
.dropin-cart-item__footer {
|
|
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;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.dropin-cart-item__savings__wrapper {
|
|
372
|
+
margin-top: var(--spacing-xsmall);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.dropin-cart-item__title--edit {
|
|
376
|
+
padding-right: unset;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.dropin-cart-item__total {
|
|
380
|
+
grid-column: 10 / 13;
|
|
381
|
+
grid-row: 1 / 10;
|
|
382
|
+
text-align: right;
|
|
383
|
+
display: flex;
|
|
384
|
+
flex-direction: column;
|
|
385
|
+
gap: 0;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.dropin-cart-item__row-total {
|
|
389
|
+
display: contents;
|
|
390
|
+
gap: var(--spacing-xxsmall);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.dropin-cart-item__total--edit {
|
|
394
|
+
padding-right: calc(var(--spacing-xbig) + var(--spacing-xsmall));
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.dropin-cart-item__row-total__wrapper {
|
|
398
|
+
display: contents;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Extra Large */
|
|
403
|
+
@container cart-item (width >= 1192px) {
|
|
404
|
+
.dropin-cart-item {
|
|
405
|
+
--item-group-spacing: var(--spacing-xxsmall);
|
|
406
|
+
--group-spacing: var(--spacing-small);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* Grid */
|
|
410
|
+
.dropin-cart-item__wrapper {
|
|
411
|
+
grid-template-columns: repeat(8, 1fr);
|
|
412
|
+
grid-column-gap: var(--spacing-medium);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.dropin-cart-item__image {
|
|
416
|
+
grid-column: 1 / 2;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.dropin-cart-item__title,
|
|
420
|
+
.dropin-cart-item__description,
|
|
421
|
+
.dropin-cart-item__sku,
|
|
422
|
+
.dropin-cart-item__price,
|
|
423
|
+
.dropin-cart-item__attributes,
|
|
424
|
+
.dropin-cart-item__configurations,
|
|
425
|
+
.dropin-cart-item__footer {
|
|
426
|
+
grid-column: 2 / 6;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.dropin-cart-item__title {
|
|
430
|
+
padding-right: unset;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.dropin-cart-item__actions {
|
|
434
|
+
grid-column: 9 / 13;
|
|
435
|
+
grid-row: 4 / 10;
|
|
436
|
+
text-align: right;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.dropin-cart-item__warning,
|
|
440
|
+
.dropin-cart-item__alert {
|
|
441
|
+
grid-column: 6 / 7;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.dropin-cart-item__warning--quantity,
|
|
445
|
+
.dropin-cart-item__alert--quantity {
|
|
446
|
+
display: flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.dropin-cart-item__warning--quantity svg,
|
|
451
|
+
.dropin-cart-item__alert--quantity svg {
|
|
452
|
+
margin-right: var(--spacing-xxsmall);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.dropin-cart-item__warning--quantity svg {
|
|
456
|
+
fill: var(--color-warning-800);
|
|
457
|
+
color: var(--color-neutral-50);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.dropin-cart-item__alert--quantity svg {
|
|
461
|
+
fill: var(--color-alert-800);
|
|
462
|
+
color: var(--color-neutral-50);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.dropin-cart-item__warning:not(.dropin-cart-item__warning--quantity),
|
|
466
|
+
.dropin-cart-item__alert:not(.dropin-cart-item__alert--quantity) {
|
|
467
|
+
display: none;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.dropin-cart-item__total {
|
|
471
|
+
grid-column: 10 / 13;
|
|
472
|
+
grid-row: 1 / 10;
|
|
473
|
+
justify-self: end;
|
|
474
|
+
text-align: right;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.dropin-cart-item__total:has(.dropin-cart-item__total-tax-excluded) {
|
|
478
|
+
flex-direction: column;
|
|
479
|
+
gap: 0;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.dropin-cart-item__row-total {
|
|
483
|
+
display: flex;
|
|
484
|
+
gap: var(--spacing-xxsmall);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.dropin-cart-item__total--edit {
|
|
488
|
+
padding-right: calc(var(--spacing-xbig) + var(--spacing-xsmall));
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.dropin-cart-item__quantity__incrementer,
|
|
492
|
+
.dropin-cart-item__quantity__picker {
|
|
493
|
+
margin-top: 0;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.dropin-cart-item__quantity:not(.dropin-cart-item__quantity--edit),
|
|
497
|
+
.dropin-cart-item__quantity__value {
|
|
498
|
+
display: unset;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.dropin-cart-item__price__quantity {
|
|
502
|
+
display: none;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.dropin-cart-item__title {
|
|
506
|
+
font: var(--type-headline-2-default-font);
|
|
507
|
+
letter-spacing: var(--type-headline-2-default-letter-spacing);
|
|
508
|
+
}
|
|
509
|
+
}
|