@faststore/core 2.0.121-alpha.0 → 2.0.122-alpha.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/.next/BUILD_ID +1 -0
- package/.next/build-manifest.json +120 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/cache/config.json +7 -0
- package/.next/cache/eslint/.cache_1gneedd +1 -0
- package/.next/cache/next-server.js.nft.json +1 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +52 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/chunks/104.js +255 -0
- package/.next/server/chunks/120.js +435 -0
- package/.next/server/chunks/123.js +58 -0
- package/.next/server/chunks/143.js +106 -0
- package/.next/server/chunks/154.js +206 -0
- package/.next/server/chunks/183.js +80 -0
- package/.next/server/chunks/247.js +61 -0
- package/.next/server/chunks/254.js +159 -0
- package/.next/server/chunks/256.js +1787 -0
- package/.next/server/chunks/280.js +322 -0
- package/.next/server/chunks/287.js +58 -0
- package/.next/server/chunks/312.js +674 -0
- package/.next/server/chunks/336.js +820 -0
- package/.next/server/chunks/350.js +142 -0
- package/.next/server/chunks/398.js +132 -0
- package/.next/server/chunks/401.js +7241 -0
- package/.next/server/chunks/431.js +7241 -0
- package/.next/server/chunks/502.js +603 -0
- package/.next/server/chunks/554.js +264 -0
- package/.next/server/chunks/557.js +135 -0
- package/.next/server/chunks/576.js +80 -0
- package/.next/server/chunks/597.js +169 -0
- package/.next/server/chunks/608.js +515 -0
- package/.next/server/chunks/664.js +3401 -0
- package/.next/server/chunks/676.js +32 -0
- package/.next/server/chunks/74.js +2606 -0
- package/.next/server/chunks/746.js +249 -0
- package/.next/server/chunks/82.js +371 -0
- package/.next/server/chunks/854.js +72 -0
- package/.next/server/chunks/859.js +959 -0
- package/.next/server/chunks/872.js +358 -0
- package/.next/server/chunks/886.js +120 -0
- package/.next/server/chunks/98.js +124 -0
- package/.next/server/chunks/font-manifest.json +1 -0
- package/.next/server/font-manifest.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/pages/404.js +414 -0
- package/.next/server/pages/404.js.nft.json +1 -0
- package/.next/server/pages/500.js +384 -0
- package/.next/server/pages/500.js.nft.json +1 -0
- package/.next/server/pages/[...slug].js +700 -0
- package/.next/server/pages/[...slug].js.nft.json +1 -0
- package/.next/server/pages/[slug]/p.js +2338 -0
- package/.next/server/pages/[slug]/p.js.nft.json +1 -0
- package/.next/server/pages/_app.js +368 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +304 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +164 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages/account.js +370 -0
- package/.next/server/pages/account.js.nft.json +1 -0
- package/.next/server/pages/api/graphql.js +315 -0
- package/.next/server/pages/api/graphql.js.nft.json +1 -0
- package/.next/server/pages/api/preview.js +118 -0
- package/.next/server/pages/api/preview.js.nft.json +1 -0
- package/.next/server/pages/checkout.js +370 -0
- package/.next/server/pages/checkout.js.nft.json +1 -0
- package/.next/server/pages/en-US/404.html +81 -0
- package/.next/server/pages/en-US/404.json +1 -0
- package/.next/server/pages/en-US/500.html +81 -0
- package/.next/server/pages/en-US/500.json +1 -0
- package/.next/server/pages/en-US/account.html +81 -0
- package/.next/server/pages/en-US/account.json +1 -0
- package/.next/server/pages/en-US/checkout.html +81 -0
- package/.next/server/pages/en-US/checkout.json +1 -0
- package/.next/server/pages/en-US/login.html +81 -0
- package/.next/server/pages/en-US/login.json +1 -0
- package/.next/server/pages/en-US/s.html +81 -0
- package/.next/server/pages/en-US/s.json +1 -0
- package/.next/server/pages/en-US.html +81 -0
- package/.next/server/pages/en-US.json +1 -0
- package/.next/server/pages/index.js +580 -0
- package/.next/server/pages/index.js.nft.json +1 -0
- package/.next/server/pages/login.js +396 -0
- package/.next/server/pages/login.js.nft.json +1 -0
- package/.next/server/pages/s.js +438 -0
- package/.next/server/pages/s.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +16 -0
- package/.next/server/webpack-api-runtime.js +229 -0
- package/.next/server/webpack-runtime.js +229 -0
- package/.next/static/chunks/143.dd8a556e6957baa1.js +1 -0
- package/.next/static/chunks/170.b45293edb4f089c8.js +1 -0
- package/.next/static/chunks/226.b57e10ad9932f88c.js +1 -0
- package/.next/static/chunks/336.84e96cd7aa2412bc.js +1 -0
- package/.next/static/chunks/419-274b5b8beee8c7b2.js +1 -0
- package/.next/static/chunks/495.e6b60941cc3e82e4.js +1 -0
- package/.next/static/chunks/54.1d3e6cb43b5b1626.js +1 -0
- package/.next/static/chunks/597.d0da2018cc312352.js +1 -0
- package/.next/static/chunks/608.59e69b83f35d9c44.js +1 -0
- package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
- package/.next/static/chunks/706-abfba2e18f084aed.js +1 -0
- package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
- package/.next/static/chunks/832-99f4667bdaf092f8.js +1 -0
- package/.next/static/chunks/861-d1a326525092ab9c.js +1 -0
- package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
- package/.next/static/chunks/main-9746772201fe3ac1.js +1 -0
- package/.next/static/chunks/pages/404-ac22e12eb22b9c50.js +1 -0
- package/.next/static/chunks/pages/500-7b708e8b89389d0e.js +1 -0
- package/.next/static/chunks/pages/[...slug]-3aaeeabdb9564d0f.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-b269ba68926617dd.js +1 -0
- package/.next/static/chunks/pages/_app-b601536188b9a919.js +1 -0
- package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
- package/.next/static/chunks/pages/account-04a0a6c07709c50e.js +1 -0
- package/.next/static/chunks/pages/checkout-2ed6b828bb6ed7e6.js +1 -0
- package/.next/static/chunks/pages/index-c2b6dfd205dc6cc2.js +1 -0
- package/.next/static/chunks/pages/login-3bb40d77e6ee120a.js +1 -0
- package/.next/static/chunks/pages/s-8fec20c40a2bd7da.js +1 -0
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
- package/.next/static/chunks/webpack-426a37879992164d.js +1 -0
- package/.next/static/css/025f924b9633ecd3.css +1 -0
- package/.next/static/css/2253644409b99b98.css +1 -0
- package/.next/static/css/364c439adafef5c8.css +1 -0
- package/.next/static/css/4b7b7b64ae6afe67.css +1 -0
- package/.next/static/css/4e0fc649e912b30f.css +1 -0
- package/.next/static/css/501cb58eaa378545.css +1 -0
- package/.next/static/css/587c27bbda64e700.css +1 -0
- package/.next/static/css/5f1b35b69b2ba1f7.css +1 -0
- package/.next/static/css/7a8417de90d11c60.css +1 -0
- package/.next/static/css/7df2581c69fe96b4.css +1 -0
- package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
- package/.next/static/z81uKE37lBbYBn8W-39Mb/_buildManifest.js +1 -0
- package/.next/static/z81uKE37lBbYBn8W-39Mb/_ssgManifest.js +1 -0
- package/.next/trace +65 -0
- package/.turbo/turbo-build.log +15 -16
- package/CHANGELOG.md +6 -0
- package/package.json +4 -4
- package/public/~partytown/debug/partytown-atomics.js +556 -0
- package/public/~partytown/debug/partytown-media.js +374 -0
- package/public/~partytown/debug/partytown-sandbox-sw.js +543 -0
- package/public/~partytown/debug/partytown-sw.js +59 -0
- package/public/~partytown/debug/partytown-ww-atomics.js +1789 -0
- package/public/~partytown/debug/partytown-ww-sw.js +1781 -0
- package/public/~partytown/debug/partytown.js +72 -0
- package/public/~partytown/partytown-atomics.js +2 -0
- package/public/~partytown/partytown-media.js +2 -0
- package/public/~partytown/partytown-sw.js +2 -0
- package/public/~partytown/partytown.js +2 -0
- package/src/components/cart/CartSidebar/CartSidebar.tsx +6 -2
- package/src/components/cart/CartSidebar/section.module.scss +21 -0
- package/src/components/cms/GlobalSections.tsx +6 -6
- package/src/components/common/Alert/Alert.tsx +8 -3
- package/src/components/common/Alert/section.module.scss +9 -0
- package/src/components/common/Footer/Footer.tsx +87 -89
- package/src/components/common/Footer/FooterLinks.tsx +4 -6
- package/src/components/common/Footer/section.module.scss +12 -0
- package/src/components/common/RegionBar/RegionBar.tsx +17 -0
- package/src/components/common/RegionBar/index.ts +1 -0
- package/src/components/common/RegionBar/section.module.scss +8 -0
- package/src/components/navigation/Navbar/Navbar.tsx +62 -61
- package/src/components/navigation/Navbar/section.module.scss +26 -0
- package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +0 -1
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +11 -7
- package/src/components/navigation/NavbarSlider/section.module.scss +26 -0
- package/src/components/product/ProductGrid/ProductGrid.tsx +2 -4
- package/src/components/region/RegionModal/RegionModal.tsx +6 -1
- package/src/components/region/RegionModal/section.module.scss +13 -0
- package/src/components/search/Filter/Filter.tsx +6 -3
- package/src/components/search/Filter/FilterSlider.tsx +5 -0
- package/src/components/search/Filter/section.module.scss +22 -0
- package/src/components/sections/BannerNewsletter/BannerNewsletter.tsx +5 -3
- package/src/components/sections/BannerNewsletter/section.module.scss +8 -0
- package/src/components/sections/BannerText/BannerText.tsx +4 -2
- package/src/components/sections/BannerText/section.module.scss +8 -0
- package/src/components/sections/Breadcrumb/Breadcrumb.tsx +4 -2
- package/src/components/sections/Breadcrumb/section.module.scss +9 -0
- package/src/components/sections/Hero/Hero.tsx +5 -9
- package/src/components/sections/Hero/section.module.scss +9 -0
- package/src/components/sections/{Incentives → IncentivesHeader}/IncentivesHeader.tsx +3 -2
- package/src/components/sections/IncentivesHeader/index.ts +1 -0
- package/src/components/sections/IncentivesHeader/section.module.scss +8 -0
- package/src/components/sections/Newsletter/Newsletter.tsx +68 -69
- package/src/components/sections/Newsletter/section.module.scss +11 -0
- package/src/components/sections/ProducDetailsContent/ProductDetailsContent.tsx +2 -4
- package/src/components/sections/ProductDetails/ProductDetails.tsx +44 -43
- package/src/components/sections/ProductDetails/section.module.scss +27 -0
- package/src/components/sections/ProductGallery/ProductGallery.tsx +121 -119
- package/src/components/sections/ProductGallery/section.module.scss +28 -0
- package/src/components/sections/ProductShelf/ProductShelf.tsx +8 -4
- package/src/components/sections/ProductShelf/section.module.scss +17 -0
- package/src/components/sections/ProductTiles/ProductTiles.tsx +9 -4
- package/src/components/sections/ProductTiles/section.module.scss +17 -0
- package/src/components/sections/ScrollToTopButton/ScrollToTopButton.tsx +3 -3
- package/src/components/sections/ScrollToTopButton/section.module.scss +11 -0
- package/src/components/skeletons/FilterSkeleton/FilterSkeleton.tsx +1 -2
- package/src/components/skeletons/ProductCardSkeleton/ProductCardSkeleton.tsx +0 -3
- package/src/components/skeletons/ProductShelfSkeleton/ProductShelfSkeleton.tsx +2 -2
- package/src/components/skeletons/ProductTilesSkeleton/ProductTileSkeleton/ProductTileSkeleton.tsx +0 -3
- package/src/components/ui/BannerText/BannerText.tsx +0 -3
- package/src/components/ui/Button/ButtonSignIn/ButtonSignIn.tsx +1 -2
- package/src/components/{sections → ui}/Incentives/Incentives.tsx +0 -3
- package/src/components/ui/Incentives/incentivesMock.ts +27 -0
- package/src/components/ui/Logo/Logo.tsx +1 -10
- package/src/components/ui/Tiles/Tiles.tsx +1 -6
- package/src/pages/[slug]/p.tsx +1 -1
- package/src/pages/_app.tsx +2 -2
- package/src/pages/index.tsx +2 -2
- package/src/styles/global/components.scss +8 -0
- package/src/styles/themes/midnight.scss +1 -1
- package/src/components/common/Footer/Footer.stories.mdx +0 -158
- package/src/components/common/Footer/footer.module.scss +0 -220
- package/src/components/sections/BannerNewsletter/banner-newsletter.module.scss +0 -23
- package/src/components/sections/Incentives/Incentives.stories.mdx +0 -159
- package/src/components/sections/Incentives/IncentivesFooter.tsx +0 -8
- package/src/components/sections/Incentives/incentives.module.scss +0 -122
- package/src/components/sections/Incentives/incentivesMock.ts +0 -55
- package/src/components/sections/Newsletter/Newsletter.stories.mdx +0 -139
- package/src/components/sections/Newsletter/newsletter.module.scss +0 -135
- package/src/components/sections/ProductDetails/product-details.module.scss +0 -185
- package/src/components/sections/ProductGallery/product-gallery.module.scss +0 -184
- package/src/components/sections/ScrollToTopButton/scroll-to-top-button.module.scss +0 -12
- package/src/components/skeletons/FilterSkeleton/FilterSkeleton.stories.mdx +0 -97
- package/src/components/skeletons/FilterSkeleton/filter-skeleton.module.scss +0 -51
- package/src/components/skeletons/ProductCardSkeleton/ProductCardSkeleton.stories.mdx +0 -113
- package/src/components/skeletons/ProductCardSkeleton/product-card-skeleton.module.scss +0 -58
- package/src/components/skeletons/ProductTilesSkeleton/ProductTileSkeleton/product-tile-skeleton.module.scss +0 -81
- package/src/components/ui/BannerText/BannerText.stories.mdx +0 -270
- package/src/components/ui/BannerText/banner-text.module.scss +0 -127
- package/src/components/ui/Button/Button.stories.mdx +0 -643
- package/src/components/ui/Button/button.module.scss +0 -11
- package/src/components/ui/Carousel/Carousel.stories.mdx +0 -201
- package/src/components/ui/Carousel/carousel.module.scss +0 -147
- package/src/components/ui/Logo/logo.module.scss +0 -12
- package/src/components/ui/Tiles/Tiles.stories.mdx +0 -151
- package/src/components/ui/Tiles/tiles.module.scss +0 -58
- /package/src/components/{sections → ui}/Incentives/index.ts +0 -0
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
@import "src/styles/scaffold";
|
|
2
|
-
|
|
3
|
-
.fs-footer {
|
|
4
|
-
// --------------------------------------------------------
|
|
5
|
-
// Design Tokens for Footer
|
|
6
|
-
// --------------------------------------------------------
|
|
7
|
-
|
|
8
|
-
// Default properties
|
|
9
|
-
--fs-footer-spacing-vertical-mobile : var(--fs-spacing-4);
|
|
10
|
-
--fs-footer-spacing-vertical-notebook : var(--fs-spacing-5);
|
|
11
|
-
--fs-footer-spacing-horizontal-notebook : var(--fs-grid-gap-3);
|
|
12
|
-
|
|
13
|
-
--fs-footer-bkg-color : var(--fs-color-neutral-bkg);
|
|
14
|
-
|
|
15
|
-
// Divisor
|
|
16
|
-
--fs-footer-divisor-border-width : var(--fs-border-width);
|
|
17
|
-
--fs-footer-divisor-border-color : var(--fs-border-color-light);
|
|
18
|
-
|
|
19
|
-
// Title
|
|
20
|
-
--fs-footer-title-size : var(--fs-text-size-body);
|
|
21
|
-
--fs-footer-title-line-height : 1.25;
|
|
22
|
-
--fs-footer-title-weight : var(--fs-text-weight-bold);
|
|
23
|
-
--fs-footer-title-margin-bottom : var(--fs-spacing-1);
|
|
24
|
-
|
|
25
|
-
// --------------------------------------------------------
|
|
26
|
-
// Structural Styles
|
|
27
|
-
// --------------------------------------------------------
|
|
28
|
-
|
|
29
|
-
&[data-fs-footer] {
|
|
30
|
-
background-color: var(--fs-footer-bkg-color);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@include media("<notebook") {
|
|
34
|
-
padding-top: 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[data-fs-logo] {
|
|
38
|
-
background-position-y: var(--fs-spacing-0);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
[data-fs-footer-title] {
|
|
42
|
-
margin-bottom: var(--fs-footer-title-margin-bottom);
|
|
43
|
-
font-size: var(--fs-footer-title-size);
|
|
44
|
-
font-weight: var(--fs-footer-title-weight);
|
|
45
|
-
line-height: var(--fs-footer-title-line-height);
|
|
46
|
-
|
|
47
|
-
@include media("<notebook") {
|
|
48
|
-
text-align: center;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[data-fs-footer-note],
|
|
53
|
-
[data-fs-footer-nav] {
|
|
54
|
-
position: relative;
|
|
55
|
-
display: flex;
|
|
56
|
-
|
|
57
|
-
@include media("<notebook") {
|
|
58
|
-
flex-direction: column;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@include media(">=notebook") {
|
|
62
|
-
display: grid;
|
|
63
|
-
grid-template-columns: repeat(12, 1fr);
|
|
64
|
-
column-gap: var(--fs-footer-spacing-horizontal-notebook);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:not(:first-of-type)::before {
|
|
68
|
-
width: 100%;
|
|
69
|
-
content: "";
|
|
70
|
-
border-top: var(--fs-footer-divisor-border-width) solid var(--fs-footer-divisor-border-color);
|
|
71
|
-
|
|
72
|
-
@include media(">=notebook") {
|
|
73
|
-
grid-column: span 12;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
[data-fs-footer-nav] {
|
|
79
|
-
@include media(">=notebook") {
|
|
80
|
-
row-gap: var(--fs-footer-spacing-vertical-notebook);
|
|
81
|
-
padding-bottom: var(--fs-footer-spacing-vertical-notebook);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[data-fs-footer-note] {
|
|
86
|
-
position: relative;
|
|
87
|
-
|
|
88
|
-
@include media("<notebook") {
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
justify-content: space-between;
|
|
92
|
-
text-align: center;
|
|
93
|
-
|
|
94
|
-
&::before {
|
|
95
|
-
padding-bottom: var(--fs-footer-spacing-vertical-mobile);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@include media(">=notebook") {
|
|
100
|
-
row-gap: var(--fs-footer-spacing-vertical-notebook);
|
|
101
|
-
padding-top: 0;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
[data-fs-footer-social],
|
|
106
|
-
[data-fs-payment-methods] {
|
|
107
|
-
@include media(">=notebook") {
|
|
108
|
-
grid-column: 11 / span 2;
|
|
109
|
-
margin-left: calc(-1 * var(--fs-spacing-3));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[data-fs-footer-social] {
|
|
114
|
-
display: flex;
|
|
115
|
-
flex-direction: column;
|
|
116
|
-
|
|
117
|
-
@include media("<notebook") {
|
|
118
|
-
padding: var(--fs-footer-spacing-vertical-mobile) 0 var(--fs-spacing-3);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
[data-fs-list] {
|
|
122
|
-
display: flex;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
|
|
125
|
-
@include media(">=notebook") {
|
|
126
|
-
justify-content: space-between;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
[data-fs-link] {
|
|
130
|
-
display: inline-flex;
|
|
131
|
-
align-items: center;
|
|
132
|
-
justify-content: center;
|
|
133
|
-
min-width: var(--fs-control-tap-size);
|
|
134
|
-
min-height: var(--fs-control-tap-size);
|
|
135
|
-
padding: var(--fs-spacing-1);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
[data-fs-payment-methods] {
|
|
141
|
-
@include media("<notebook") {
|
|
142
|
-
margin: var(--fs-footer-spacing-vertical-mobile) auto;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@include media(">=notebook") {
|
|
146
|
-
order: 3;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
[data-fs-icon] {
|
|
151
|
-
@include media(">=notebook") {
|
|
152
|
-
grid-column: span 2;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
[data-fs-footer-copyright] {
|
|
157
|
-
p + p {
|
|
158
|
-
margin: var(--fs-spacing-2) auto;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
address {
|
|
162
|
-
font-style: normal;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@include media(">=notebook") {
|
|
166
|
-
grid-column: span 6;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
[data-fs-footer-links-columns] {
|
|
171
|
-
display: grid;
|
|
172
|
-
grid-template-columns: repeat(auto-fit, minmax(0, auto));
|
|
173
|
-
grid-gap: var(--fs-footer-spacing-horizontal-notebook);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&[data-fs-footer-links] {
|
|
177
|
-
[data-fs-link] {
|
|
178
|
-
display: inline-block;
|
|
179
|
-
padding-left: 0;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@include media(">=notebook") {
|
|
183
|
-
grid-column: span 9;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@include media(">=desktop") {
|
|
187
|
-
grid-column: span 8;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// --------------------------------------------------------
|
|
192
|
-
// Variants Styles
|
|
193
|
-
// --------------------------------------------------------
|
|
194
|
-
|
|
195
|
-
&[data-fs-footer-incentives="true"] {
|
|
196
|
-
@include media(">=notebook") {
|
|
197
|
-
padding-top: 0;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&:not([data-fs-footer-social="true"]) {
|
|
202
|
-
[data-fs-footer-note]::before {
|
|
203
|
-
@include media("<notebook") {
|
|
204
|
-
border-color: transparent;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
[data-fs-footer-links] {
|
|
209
|
-
@include media(">=notebook") {
|
|
210
|
-
grid-column: span 12;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&:not([data-fs-footer-payment-methods="true"]) [data-fs-footer-copyright] {
|
|
216
|
-
@include media(">=notebook") {
|
|
217
|
-
grid-column: span 10;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@import "src/styles/scaffold";
|
|
2
|
-
|
|
3
|
-
.fs-banner-newsletter {
|
|
4
|
-
margin-bottom: var(--fs-grid-padding);
|
|
5
|
-
|
|
6
|
-
[data-fs-banner-text] {
|
|
7
|
-
border-radius: var(--fs-border-radius);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
> section {
|
|
11
|
-
margin-top: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@include media(">=notebook") {
|
|
15
|
-
display: flex;
|
|
16
|
-
column-gap: var(--fs-grid-gap-3);
|
|
17
|
-
|
|
18
|
-
> section {
|
|
19
|
-
padding-top: 0;
|
|
20
|
-
padding-bottom: 0;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
TokenTable,
|
|
5
|
-
TokenRow,
|
|
6
|
-
TokenDivider,
|
|
7
|
-
} from 'src/../.storybook/components'
|
|
8
|
-
|
|
9
|
-
import Incentives from '.'
|
|
10
|
-
import { incentivesMockHeader, incentivesMockFooter } from './incentivesMock'
|
|
11
|
-
|
|
12
|
-
<Meta title="Organisms/Incentives" component={Incentives} />
|
|
13
|
-
|
|
14
|
-
export const Template = (args) => <Incentives {...args} />
|
|
15
|
-
|
|
16
|
-
<header>
|
|
17
|
-
|
|
18
|
-
# Incentives
|
|
19
|
-
|
|
20
|
-
It's a component that displays a list of "incentives".
|
|
21
|
-
|
|
22
|
-
</header>
|
|
23
|
-
|
|
24
|
-
## Usage
|
|
25
|
-
|
|
26
|
-
`import Incentives from '../components/sections/Incentives'`
|
|
27
|
-
|
|
28
|
-
<Canvas>
|
|
29
|
-
<Story
|
|
30
|
-
name="Incentives"
|
|
31
|
-
args={{
|
|
32
|
-
incentives: incentivesMockHeader,
|
|
33
|
-
}}
|
|
34
|
-
>
|
|
35
|
-
{Template.bind({})}
|
|
36
|
-
</Story>
|
|
37
|
-
</Canvas>
|
|
38
|
-
|
|
39
|
-
<ArgsTable story="Incentives" />
|
|
40
|
-
|
|
41
|
-
<TokenTable>
|
|
42
|
-
<TokenRow
|
|
43
|
-
token="--fs-incentives-bkg-color"
|
|
44
|
-
value="var(--fs-color-primary-bkg-light)"
|
|
45
|
-
isColor
|
|
46
|
-
/>
|
|
47
|
-
<TokenDivider />
|
|
48
|
-
<TokenRow token="--fs-incentives-gap" value="var(--fs-spacing-4)" />
|
|
49
|
-
<TokenRow
|
|
50
|
-
token="--fs-incentives-padding-top"
|
|
51
|
-
value="var(--fs-incentives-gap)"
|
|
52
|
-
/>
|
|
53
|
-
<TokenRow
|
|
54
|
-
token="--fs-incentives-padding-bottom"
|
|
55
|
-
value="var(--fs-incentives-gap)"
|
|
56
|
-
/>
|
|
57
|
-
<TokenDivider />
|
|
58
|
-
<TokenRow
|
|
59
|
-
token="--fs-incentives-border-color"
|
|
60
|
-
value="var(--fs-border-color-light)"
|
|
61
|
-
isColor
|
|
62
|
-
/>
|
|
63
|
-
<TokenRow
|
|
64
|
-
token="--fs-incentives-border-width"
|
|
65
|
-
value="var(--fs-border-width)"
|
|
66
|
-
/>
|
|
67
|
-
</TokenTable>
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Nested Elements
|
|
72
|
-
|
|
73
|
-
### Title
|
|
74
|
-
|
|
75
|
-
<TokenTable>
|
|
76
|
-
<TokenRow token="--fs-incentives-title-size" value="var(--fs-text-size-1)" />
|
|
77
|
-
<TokenRow
|
|
78
|
-
token="--fs-incentives-title-weight"
|
|
79
|
-
value="var(--fs-text-weight-bold)"
|
|
80
|
-
/>
|
|
81
|
-
<TokenRow token="--fs-incentives-title-line-height" value="1.42" />
|
|
82
|
-
<TokenRow token="--fs-incentives-title-color" value="var(--fs-color-text)" />
|
|
83
|
-
</TokenTable>
|
|
84
|
-
|
|
85
|
-
### Description
|
|
86
|
-
|
|
87
|
-
<TokenTable>
|
|
88
|
-
<TokenRow
|
|
89
|
-
token="--fs-incentives-description-size"
|
|
90
|
-
value="var(--fs-incentives-title-size)"
|
|
91
|
-
/>
|
|
92
|
-
<TokenRow token="--fs-incentives-description-line-height" value="1.14" />
|
|
93
|
-
<TokenRow
|
|
94
|
-
token="--fs-incentives-description-color"
|
|
95
|
-
value="var(--fs-incentives-title-color)"
|
|
96
|
-
/>
|
|
97
|
-
</TokenTable>
|
|
98
|
-
|
|
99
|
-
### Icon
|
|
100
|
-
|
|
101
|
-
<TokenTable>
|
|
102
|
-
<TokenRow
|
|
103
|
-
token="--fs-incentives-icon-color"
|
|
104
|
-
value="var(--fs-incentives-title-color)"
|
|
105
|
-
/>
|
|
106
|
-
</TokenTable>
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Variants
|
|
111
|
-
|
|
112
|
-
### Colored
|
|
113
|
-
|
|
114
|
-
<Canvas>
|
|
115
|
-
<Story
|
|
116
|
-
name="Colored"
|
|
117
|
-
args={{
|
|
118
|
-
incentives: incentivesMockHeader,
|
|
119
|
-
colored: true,
|
|
120
|
-
}}
|
|
121
|
-
>
|
|
122
|
-
{Template.bind({})}
|
|
123
|
-
</Story>
|
|
124
|
-
</Canvas>
|
|
125
|
-
|
|
126
|
-
<TokenTable>
|
|
127
|
-
<TokenRow
|
|
128
|
-
token="--fs-incentives-bkg-color"
|
|
129
|
-
value="var(--fs-color-primary-bkg-light)"
|
|
130
|
-
isColor
|
|
131
|
-
/>
|
|
132
|
-
</TokenTable>
|
|
133
|
-
|
|
134
|
-
### Description Only
|
|
135
|
-
|
|
136
|
-
<Canvas>
|
|
137
|
-
<Story
|
|
138
|
-
name="Description Only"
|
|
139
|
-
args={{
|
|
140
|
-
incentives: incentivesMockFooter,
|
|
141
|
-
}}
|
|
142
|
-
>
|
|
143
|
-
{Template.bind({})}
|
|
144
|
-
</Story>
|
|
145
|
-
</Canvas>
|
|
146
|
-
|
|
147
|
-
### Vertical
|
|
148
|
-
|
|
149
|
-
<Canvas>
|
|
150
|
-
<Story
|
|
151
|
-
name="Vertical"
|
|
152
|
-
args={{
|
|
153
|
-
incentives: incentivesMockHeader,
|
|
154
|
-
variant: 'vertical',
|
|
155
|
-
}}
|
|
156
|
-
>
|
|
157
|
-
{Template.bind({})}
|
|
158
|
-
</Story>
|
|
159
|
-
</Canvas>
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
@import "src/styles/scaffold";
|
|
2
|
-
|
|
3
|
-
.fs-incentives {
|
|
4
|
-
// --------------------------------------------------------
|
|
5
|
-
// Design Tokens for Incentives
|
|
6
|
-
// --------------------------------------------------------
|
|
7
|
-
|
|
8
|
-
// Default properties
|
|
9
|
-
--fs-incentives-bkg-color : var(--fs-color-primary-bkg-light);
|
|
10
|
-
|
|
11
|
-
--fs-incentives-gap : var(--fs-spacing-4);
|
|
12
|
-
--fs-incentives-padding-top : var(--fs-incentives-gap);
|
|
13
|
-
--fs-incentives-padding-bottom : var(--fs-incentives-gap);
|
|
14
|
-
|
|
15
|
-
--fs-incentives-border-color : var(--fs-border-color-light);
|
|
16
|
-
--fs-incentives-border-width : var(--fs-border-width);
|
|
17
|
-
|
|
18
|
-
// Title
|
|
19
|
-
--fs-incentives-title-size : var(--fs-text-size-1);
|
|
20
|
-
--fs-incentives-title-weight : var(--fs-text-weight-bold);
|
|
21
|
-
--fs-incentives-title-line-height : 1.42;
|
|
22
|
-
--fs-incentives-title-color : var(--fs-color-text);
|
|
23
|
-
|
|
24
|
-
// Description
|
|
25
|
-
--fs-incentives-description-size : var(--fs-incentives-title-size);
|
|
26
|
-
--fs-incentives-description-line-height : 1.14;
|
|
27
|
-
--fs-incentives-description-color : var(--fs-incentives-title-color);
|
|
28
|
-
|
|
29
|
-
// Incentive Icon
|
|
30
|
-
--fs-incentives-icon-color : var(--fs-incentives-title-color);
|
|
31
|
-
|
|
32
|
-
// --------------------------------------------------------
|
|
33
|
-
// Structural Styles
|
|
34
|
-
// --------------------------------------------------------
|
|
35
|
-
|
|
36
|
-
display: flex;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
padding-top: var(--fs-incentives-padding-top);
|
|
39
|
-
padding-bottom: var(--fs-incentives-padding-bottom);
|
|
40
|
-
|
|
41
|
-
[data-fs-list] {
|
|
42
|
-
display: flex;
|
|
43
|
-
width: fit-content;
|
|
44
|
-
overflow-x: auto;
|
|
45
|
-
overflow-y: hidden;
|
|
46
|
-
|
|
47
|
-
@include media(">=notebook") {
|
|
48
|
-
justify-content: center;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[data-fs-incentive] {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
|
|
58
|
-
@include media("<notebook") {
|
|
59
|
-
row-gap: var(--fs-spacing-0);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@include media(">=notebook") {
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
|
|
65
|
-
[data-fs-incentive-content] {
|
|
66
|
-
margin-left: var(--fs-spacing-2);
|
|
67
|
-
text-align: left;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
[data-fs-incentive-title] {
|
|
73
|
-
font-size: var(--fs-incentives-title-size);
|
|
74
|
-
font-weight: var(--fs-incentives-title-weight);
|
|
75
|
-
line-height: var(--fs-incentives-title-line-height);
|
|
76
|
-
color: var(--fs-incentives-title-color);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[data-fs-incentive-description] {
|
|
80
|
-
display: block;
|
|
81
|
-
font-size: var(--fs-incentives-description-size);
|
|
82
|
-
line-height: var(--fs-incentives-description-line-height);
|
|
83
|
-
color: var(--fs-incentives-description-color);
|
|
84
|
-
white-space: nowrap;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
[data-fs-incentive-content] {
|
|
88
|
-
text-align: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
[data-fs-incentive-icon] {
|
|
92
|
-
color: var(--fs-incentives-icon-color);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// --------------------------------------------------------
|
|
96
|
-
// Variants Styles
|
|
97
|
-
// --------------------------------------------------------
|
|
98
|
-
|
|
99
|
-
&[data-fs-incentives-colored="true"] {
|
|
100
|
-
background-color: var(--fs-incentives-bkg-color);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&[data-fs-incentives-variant="vertical"] {
|
|
104
|
-
ul {
|
|
105
|
-
flex-direction: column;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
li:not(:last-child) {
|
|
109
|
-
padding-bottom: var(--fs-incentives-gap);
|
|
110
|
-
margin-bottom: var(--fs-incentives-gap);
|
|
111
|
-
border-bottom: var(--fs-incentives-border-width) solid var(--fs-incentives-border-color);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&[data-fs-incentives-variant="horizontal"] {
|
|
116
|
-
li:not(:last-child) {
|
|
117
|
-
padding-right: var(--fs-incentives-gap);
|
|
118
|
-
margin-right: var(--fs-incentives-gap);
|
|
119
|
-
border-right: var(--fs-incentives-border-width) solid var(--fs-incentives-border-color);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export const incentivesMockHeader = [
|
|
2
|
-
{
|
|
3
|
-
icon: 'Truck',
|
|
4
|
-
title: 'Buy online',
|
|
5
|
-
firstLineText: 'Get Free Shipping',
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
icon: 'Calendar',
|
|
9
|
-
title: 'Free return',
|
|
10
|
-
firstLineText: '30 days to return',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
icon: 'Gift',
|
|
14
|
-
title: 'Gift cards',
|
|
15
|
-
firstLineText: '$20 / $30 / $50',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
icon: 'Storefront',
|
|
19
|
-
title: 'Physical Stores',
|
|
20
|
-
firstLineText: '+40 Stores in Brazil',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
icon: 'ShieldCheck',
|
|
24
|
-
title: 'Buy online',
|
|
25
|
-
firstLineText: 'Get Free Shipping',
|
|
26
|
-
},
|
|
27
|
-
]
|
|
28
|
-
|
|
29
|
-
export const incentivesMockFooter = [
|
|
30
|
-
{
|
|
31
|
-
icon: 'ShieldCheck',
|
|
32
|
-
firstLineText: 'Trusted',
|
|
33
|
-
secondLineText: 'by Safecon',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
icon: 'Medal',
|
|
37
|
-
firstLineText: 'Quality',
|
|
38
|
-
secondLineText: 'Products',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
icon: 'CircleWavyCheck',
|
|
42
|
-
firstLineText: '3-year',
|
|
43
|
-
secondLineText: 'Guarantee',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
icon: 'Storefront',
|
|
47
|
-
firstLineText: 'Pickup',
|
|
48
|
-
secondLineText: 'Options',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
icon: 'Truck',
|
|
52
|
-
firstLineText: 'Free',
|
|
53
|
-
secondLineText: 'Shippping',
|
|
54
|
-
},
|
|
55
|
-
]
|