@faststore/core 0.3.16 → 0.3.17
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/CHANGELOG.md +22 -0
- package/cypress/integration/analytics.test.js +3 -3
- package/cypress/integration/plp.test.js +1 -1
- package/package.json +4 -4
- package/src/Layout.tsx +6 -1
- package/src/components/cart/CartItem/CartItem.tsx +2 -2
- package/src/components/cart/CartSidebar/CartSidebar.tsx +5 -6
- package/src/components/cart/CartSidebar/cart-sidebar.module.scss +2 -0
- package/src/components/common/Alert/Alert.tsx +6 -22
- package/src/components/common/Footer/Footer.stories.mdx +1 -1
- package/src/components/common/Footer/FooterLinks.tsx +16 -12
- package/src/components/search/Filter/Facets.stories.mdx +9 -9
- package/src/components/search/Filter/Facets.tsx +69 -61
- package/src/components/search/Filter/facets.module.scss +16 -16
- package/src/components/search/Search.stories.mdx +28 -24
- package/src/components/search/SearchDropdown/SearchDropdown.stories.mdx +0 -1
- package/src/components/search/SearchInput/SearchInput.stories.mdx +0 -1
- package/src/components/search/SearchTop/SearchTop.stories.mdx +0 -1
- package/src/components/sections/ProducDetailsContent/ProductDetailsContent.tsx +146 -146
- package/src/components/sections/ProductDetails/ProductDetails.tsx +2 -2
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +17 -16
- package/src/components/ui/Gift/Gift.tsx +7 -13
- package/src/components/ui/SkuSelector/sku-selector.module.scss +1 -1
- package/tsconfig.json +1 -1
- package/src/components/ui/Accordion/Accordion.stories.mdx +0 -222
- package/src/components/ui/Accordion/Accordion.tsx +0 -39
- package/src/components/ui/Accordion/AccordionItem.stories.mdx +0 -116
- package/src/components/ui/Accordion/AccordionItem.tsx +0 -82
- package/src/components/ui/Accordion/accordion.module.scss +0 -65
- package/src/components/ui/Accordion/index.ts +0 -2
- package/src/components/ui/Alert/Alert.stories.mdx +0 -164
- package/src/components/ui/Alert/Alert.tsx +0 -81
- package/src/components/ui/Alert/alert.module.scss +0 -93
- package/src/components/ui/Alert/index.ts +0 -1
- package/src/components/ui/Dropdown/Dropdown.stories.mdx +0 -232
- package/src/components/ui/Dropdown/Dropdown.tsx +0 -12
- package/src/components/ui/Dropdown/DropdownButton.tsx +0 -20
- package/src/components/ui/Dropdown/DropdownItem.stories.mdx +0 -139
- package/src/components/ui/Dropdown/DropdownItem.tsx +0 -26
- package/src/components/ui/Dropdown/DropdownMenu.stories.mdx +0 -115
- package/src/components/ui/Dropdown/DropdownMenu.tsx +0 -34
- package/src/components/ui/Dropdown/dropdown.module.scss +0 -101
- package/src/components/ui/Dropdown/index.ts +0 -4
- package/src/components/ui/Gift/Gift.stories.mdx +0 -99
- package/src/components/ui/Gift/gift.module.scss +0 -94
- package/src/components/ui/PriceRange/PriceRange.stories.mdx +0 -192
- package/src/components/ui/PriceRange/PriceRange.tsx +0 -140
- package/src/components/ui/PriceRange/index.ts +0 -1
- package/src/components/ui/PriceRange/price-range.module.scss +0 -176
- package/src/components/ui/QuantitySelector/QuantitySelector.stories.mdx +0 -246
- package/src/components/ui/QuantitySelector/QuantitySelector.tsx +0 -103
- package/src/components/ui/QuantitySelector/index.ts +0 -1
- package/src/components/ui/QuantitySelector/quantity-selector.module.scss +0 -155
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
@import "src/styles/scaffold";
|
|
2
|
-
|
|
3
|
-
.fs-quantity-selector {
|
|
4
|
-
// --------------------------------------------------------
|
|
5
|
-
// Design Tokens for Quantity Selector
|
|
6
|
-
// --------------------------------------------------------
|
|
7
|
-
|
|
8
|
-
// Default properties
|
|
9
|
-
--fs-qty-selector-width : calc(var(--fs-control-tap-size) * 2.7);
|
|
10
|
-
--fs-qty-selector-height : calc(var(--fs-control-tap-size) + (var(--fs-qty-selector-border-width) * 2));
|
|
11
|
-
|
|
12
|
-
--fs-qty-selector-shadow : none;
|
|
13
|
-
--fs-qty-selector-shadow-hover : 0 0 0 var(--fs-border-width) var(--fs-border-color-active);
|
|
14
|
-
|
|
15
|
-
--fs-qty-selector-bkg-color : var(--fs-color-body-bkg);
|
|
16
|
-
--fs-qty-selector-bkg-color-hover : var(--fs-qty-selector-bkg-color);
|
|
17
|
-
|
|
18
|
-
--fs-qty-selector-text-size : var(--fs-text-size-base);
|
|
19
|
-
--fs-qty-selector-text-color : var(--fs-color-text);
|
|
20
|
-
--fs-qty-selector-text-color-hover : var(--fs-qty-selector-text-color);
|
|
21
|
-
|
|
22
|
-
--fs-qty-selector-icon-color : var(--fs-color-link);
|
|
23
|
-
--fs-qty-selector-icon-color-hover : var(--fs-border-color-active);
|
|
24
|
-
|
|
25
|
-
--fs-qty-selector-border-radius : var(--fs-border-radius);
|
|
26
|
-
--fs-qty-selector-border-width : var(--fs-border-width);
|
|
27
|
-
--fs-qty-selector-border-width-hover : var(--fs-border-width);
|
|
28
|
-
--fs-qty-selector-border-color : var(--fs-border-color);
|
|
29
|
-
--fs-qty-selector-border-color-hover : var(--fs-border-color-active);
|
|
30
|
-
|
|
31
|
-
--fs-qty-selector-button-shadow : none;
|
|
32
|
-
--fs-qty-selector-button-shadow-hover : none;
|
|
33
|
-
--fs-qty-selector-button-bkg-color : transparent;
|
|
34
|
-
--fs-qty-selector-button-bkg-color-hover : var(--fs-color-primary-bkg-light);
|
|
35
|
-
--fs-qty-selector-button-bkg-color-focus : var(--fs-qty-selector-button-bkg-color-hover);
|
|
36
|
-
--fs-qty-selector-button-border-radius : var(--fs-qty-selector-border-radius);
|
|
37
|
-
|
|
38
|
-
// Disabled properties
|
|
39
|
-
--fs-qty-selector-disabled-bkg-color : var(--fs-color-disabled-bkg);
|
|
40
|
-
--fs-qty-selector-disabled-text-color : var(--fs-color-disabled-text);
|
|
41
|
-
--fs-qty-selector-disabled-icon-color : var(--fs-border-color-light-disabled);
|
|
42
|
-
--fs-qty-selector-disabled-border-color : var(--fs-qty-selector-disabled-bkg-color);
|
|
43
|
-
--fs-qty-selector-disabled-button-bkg-color : var(--fs-qty-selector-button-bkg-color-hover);
|
|
44
|
-
|
|
45
|
-
// --------------------------------------------------------
|
|
46
|
-
// Structural Styles
|
|
47
|
-
// --------------------------------------------------------
|
|
48
|
-
|
|
49
|
-
position: relative;
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: row;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
width: var(--fs-qty-selector-width);
|
|
55
|
-
height: var(--fs-qty-selector-height);
|
|
56
|
-
border-radius: var(--fs-qty-selector-border-radius);
|
|
57
|
-
box-shadow: var(--fs-qty-selector-shadow);
|
|
58
|
-
|
|
59
|
-
[data-fs-icon] {
|
|
60
|
-
margin: 0;
|
|
61
|
-
line-height: 0;
|
|
62
|
-
color: var(--fs-qty-selector-icon-color);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
[data-quantity-selector-input] {
|
|
66
|
-
width: 100%;
|
|
67
|
-
height: 100%;
|
|
68
|
-
padding: 0;
|
|
69
|
-
font-size: var(--fs-qty-selector-text-size);
|
|
70
|
-
color: var(--fs-qty-selector-text-color);
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[data-quantity-selector-button] {
|
|
75
|
-
position: absolute;
|
|
76
|
-
background-color: var(--fs-qty-selector-button-bkg-color);
|
|
77
|
-
|
|
78
|
-
[data-fs-icon] {
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
border-radius: var(--fs-qty-selector-button-border-radius);
|
|
82
|
-
box-shadow: var(--fs-qty-selector-button-shadow);
|
|
83
|
-
transition:
|
|
84
|
-
var(--fs-qty-selector-transition-property)
|
|
85
|
-
var(--fs-qty-selector-transition-timing)
|
|
86
|
-
var(--fs-qty-selector-transition-function);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&[data-fs-icon-button] {
|
|
90
|
-
padding: var(--fs-spacing-1);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:first-of-type { left: 0; }
|
|
94
|
-
|
|
95
|
-
&:last-of-type { right: 0; }
|
|
96
|
-
|
|
97
|
-
&:hover:not(:disabled) [data-fs-icon] {
|
|
98
|
-
background-color: var(--fs-qty-selector-button-bkg-color-hover);
|
|
99
|
-
box-shadow: var(--fs-qty-selector-button-shadow-hover);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&:disabled {
|
|
103
|
-
cursor: not-allowed;
|
|
104
|
-
background-color: var(--fs-qty-selector-button-bkg-color);
|
|
105
|
-
|
|
106
|
-
&:hover, &:focus-visible {
|
|
107
|
-
background-color: var(--fs-qty-selector-button-bkg-color);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
[data-fs-icon] {
|
|
111
|
-
color: var(--fs-qty-selector-disabled-icon-color);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&:hover:not(:disabled) {
|
|
116
|
-
background-color: transparent;
|
|
117
|
-
box-shadow: none;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&:focus:not(:disabled) {
|
|
121
|
-
background-color: transparent;
|
|
122
|
-
box-shadow: none;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&:focus-visible {
|
|
126
|
-
background-color: var(--fs-qty-selector-button-bkg-color);
|
|
127
|
-
outline: none;
|
|
128
|
-
box-shadow: none;
|
|
129
|
-
|
|
130
|
-
[data-fs-icon] {
|
|
131
|
-
@include focus-ring;
|
|
132
|
-
|
|
133
|
-
background-color: var(--fs-qty-selector-button-bkg-color-focus);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&:hover {
|
|
139
|
-
[data-quantity-selector-input]:not(:disabled):not(:focus) {
|
|
140
|
-
color: var(--fs-qty-selector-text-color-hover);
|
|
141
|
-
background-color: var(--fs-qty-selector-bkg-color-hover);
|
|
142
|
-
border-color: var(--fs-qty-selector-border-color-hover);
|
|
143
|
-
border-width: var(--fs-qty-selector-border-width-hover);
|
|
144
|
-
box-shadow: var(--fs-qty-selector-shadow-hover);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// --------------------------------------------------------
|
|
149
|
-
// Variants Styles
|
|
150
|
-
// --------------------------------------------------------
|
|
151
|
-
|
|
152
|
-
&[data-fs-quantity-selector="disabled"] {
|
|
153
|
-
[data-quantity-selector-button]:hover [data-fs-icon] { background-color: transparent; }
|
|
154
|
-
}
|
|
155
|
-
}
|