@faststore/ui 2.0.89-alpha.0 → 2.0.90-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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.90-alpha.0",
|
|
4
4
|
"description": "A lightweight, framework agnostic component library for React",
|
|
5
5
|
"author": "emersonlaurentino",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"node": "16.18.0",
|
|
59
59
|
"yarn": "1.19.1"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "8382d02bffb1fcf8c517df11221b228ecb1a38bd"
|
|
62
62
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
[data-fs-filter] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Filter
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Title
|
|
7
|
+
--fs-filter-title-height : var(--fs-spacing-6);
|
|
8
|
+
--fs-filter-title-margin-bottom : var(--fs-spacing-0);
|
|
9
|
+
--fs-filter-title-text-size : var(--fs-text-size-2);
|
|
10
|
+
--fs-filter-title-line-height : 1.25;
|
|
11
|
+
|
|
12
|
+
// Accordion
|
|
13
|
+
--fs-filter-accordion-border-width-notebook : var(--fs-border-width);
|
|
14
|
+
--fs-filter-accordion-border-color-notebook : var(--fs-border-color-light);
|
|
15
|
+
--fs-filter-accordion-border-radius-notebook : var(--fs-border-radius);
|
|
16
|
+
|
|
17
|
+
// Accordion Item Button
|
|
18
|
+
--fs-filter-accordion-button-text-size : var(--fs-text-size-lead);
|
|
19
|
+
--fs-filter-accordion-button-text-weight : var(--fs-text-weight-regular);
|
|
20
|
+
--fs-filter-accordion-button-line-height : 1.5;
|
|
21
|
+
--fs-filter-accordion-button-padding-right-notebook : var(--fs-spacing-4);
|
|
22
|
+
--fs-filter-accordion-button-padding-left-notebook : var(--fs-filter-accordion-button-padding-right-notebook);
|
|
23
|
+
|
|
24
|
+
--fs-filter-accordion-button-text-size-notebook : var(--fs-text-size-2);
|
|
25
|
+
--fs-filter-accordion-button-line-height-notebook : 1.25;
|
|
26
|
+
|
|
27
|
+
// Accordion Item Panel
|
|
28
|
+
--fs-filter-accordion-item-panel-padding-right-notebook : var(--fs-spacing-4);
|
|
29
|
+
--fs-filter-accordion-item-panel-padding-left-notebook : var(--fs-filter-accordion-item-panel-padding-right-notebook);
|
|
30
|
+
|
|
31
|
+
// Accordion Item List
|
|
32
|
+
--fs-filter-list-padding-bottom : var(--fs-spacing-3);
|
|
33
|
+
|
|
34
|
+
// List Item
|
|
35
|
+
--fs-filter-list-item-not-last-margin-bottom : var(--fs-spacing-3);
|
|
36
|
+
|
|
37
|
+
// List Item Checkbox
|
|
38
|
+
--fs-filter-list-item-checkbox-width : 1.25rem;
|
|
39
|
+
--fs-filter-list-item-checkbox-height : var(--fs-filter-list-item-checkbox-width);
|
|
40
|
+
|
|
41
|
+
// List Item Label
|
|
42
|
+
--fs-filter-list-item-label-width : 100%;
|
|
43
|
+
--fs-filter-list-item-label-margin-left : var(--fs-spacing-1);
|
|
44
|
+
--fs-filter-list-item-label-text-size : var(--fs-text-size-2);
|
|
45
|
+
--fs-filter-list-item-label-line-height : 1.25;
|
|
46
|
+
|
|
47
|
+
// List Item Badge
|
|
48
|
+
--fs-filter-list-item-badge-margin-left : var(--fs-spacing-1);
|
|
49
|
+
|
|
50
|
+
[data-fs-filter-title] {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
height: var(--fs-filter-title-height);
|
|
54
|
+
margin-bottom: var(--fs-filter-title-margin-bottom);
|
|
55
|
+
font-size: var(--fs-filter-title-text-size);
|
|
56
|
+
line-height: var(--fs-filter-accordion-button-line-height-notebook);
|
|
57
|
+
|
|
58
|
+
@include media("<notebook") {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-fs-filter-accordion] {
|
|
64
|
+
@include media(">=notebook") {
|
|
65
|
+
border: var(--fs-filter-accordion-border-width-notebook) solid var(--fs-filter-accordion-border-color-notebook);
|
|
66
|
+
border-radius: var(--fs-filter-accordion-border-radius-notebook);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-fs-filter-accordion-item] {
|
|
71
|
+
[data-fs-accordion-button] {
|
|
72
|
+
font-size: var(--fs-filter-accordion-button-text-size);
|
|
73
|
+
font-weight: var(--fs-filter-accordion-button-text-weight);
|
|
74
|
+
line-height: var(--fs-filter-accordion-button-line-height);
|
|
75
|
+
|
|
76
|
+
@include media(">=notebook") {
|
|
77
|
+
padding-right: var(--fs-filter-accordion-button-padding-right-notebook);
|
|
78
|
+
padding-left: var(--fs-filter-accordion-button-padding-left-notebook);
|
|
79
|
+
font-size: var(--fs-filter-accordion-button-text-size-notebook);
|
|
80
|
+
line-height: var(--fs-filter-accordion-button-line-height-notebook);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-fs-accordion-panel] {
|
|
85
|
+
@include media(">=notebook") {
|
|
86
|
+
padding-right: var(--fs-filter-accordion-item-panel-padding-right-notebook);
|
|
87
|
+
padding-left: var(--fs-filter-accordion-item-panel-padding-left-notebook);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-fs-filter-list] {
|
|
93
|
+
padding-bottom: var(--fs-filter-list-padding-bottom);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-fs-filter-list-item] {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
|
|
100
|
+
&:not(:last-child) {
|
|
101
|
+
margin-bottom: var(--fs-filter-list-item-not-last-margin-bottom);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-fs-filter-list-item-checkbox] {
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
width: var(--fs-filter-list-item-checkbox-width);
|
|
108
|
+
height: var(--fs-filter-list-item-checkbox-height);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-fs-filter-list-item-label] {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
width: var(--fs-filter-list-item-label-width);
|
|
115
|
+
margin-left: var(--fs-filter-list-item-label-margin-left);
|
|
116
|
+
font-size: var(--fs-filter-list-item-label-text-size);
|
|
117
|
+
line-height: var(--fs-filter-list-item-label-line-height);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[data-fs-filter-list-item-badge] {
|
|
121
|
+
margin-left: var(--fs-filter-list-item-badge-margin-left);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
[data-fs-filter-slider] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Filter Slider
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Content
|
|
7
|
+
--fs-filter-slider-content-height : calc(100vh - var(--fs-filter-slider-footer-height));
|
|
8
|
+
--fs-filter-slider-content-padding : var(--fs-spacing-3) var(--fs-spacing-3) calc(var(--fs-filter-slider-footer-height) + var(--fs-spacing-3));
|
|
9
|
+
|
|
10
|
+
// Title
|
|
11
|
+
--fs-filter-slider-title-font-size : var(--fs-text-size-4);
|
|
12
|
+
--fs-filter-slider-title-font-weight : var(--fs-text-weight-bold);
|
|
13
|
+
--fs-filter-slider-title-line-height : 1.12;
|
|
14
|
+
|
|
15
|
+
// Footer
|
|
16
|
+
--fs-filter-slider-footer-width : 100%;
|
|
17
|
+
--fs-filter-slider-footer-height : 5rem;
|
|
18
|
+
--fs-filter-slider-footer-padding : var(--fs-spacing-3);
|
|
19
|
+
--fs-filter-slider-footer-bkg-color : var(--fs-color-neutral-0);
|
|
20
|
+
--fs-filter-slider-footer-box-shadow : 0 0 6px rgb(0 0 0 / 20%);
|
|
21
|
+
|
|
22
|
+
// Footer Buttons
|
|
23
|
+
--fs-filter-slider-footer-button-clear-width : 40%;
|
|
24
|
+
--fs-filter-slider-footer-button-clear-margin-right : var(--fs-spacing-3);
|
|
25
|
+
|
|
26
|
+
--fs-filter-slider-footer-button-apply-width : 60%;
|
|
27
|
+
|
|
28
|
+
[data-fs-filter-slider-content] {
|
|
29
|
+
height: var(--fs-filter-slider-content-height);
|
|
30
|
+
padding: var(--fs-filter-slider-content-padding);
|
|
31
|
+
overflow-y: auto;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-fs-filter-slider-title] {
|
|
35
|
+
font-size: var(--fs-filter-slider-title-font-size);
|
|
36
|
+
font-weight: var(--fs-filter-slider-title-font-weight);
|
|
37
|
+
line-height: var(--fs-filter-slider-title-line-height);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-fs-slide-over-header] {
|
|
41
|
+
padding: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-fs-filter-slider-footer] {
|
|
45
|
+
position: sticky;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
display: flex;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
width: var(--fs-filter-slider-footer-width);
|
|
50
|
+
height: var(--fs-filter-slider-footer-height);
|
|
51
|
+
padding: var(--fs-filter-slider-footer-padding);
|
|
52
|
+
background-color: var(--fs-filter-slider-footer-bkg-color);
|
|
53
|
+
box-shadow: var(--fs-filter-slider-footer-box-shadow);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-fs-filter-slider-footer-button-clear] {
|
|
57
|
+
width: var(--fs-filter-slider-footer-button-clear-width);
|
|
58
|
+
margin-right: var(--fs-filter-slider-footer-button-clear-margin-right);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-fs-filter-slider-footer-button-apply] {
|
|
62
|
+
width: var(--fs-filter-slider-footer-button-apply-width);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
@import "../components/molecules/ToggleField/styles";
|
|
49
49
|
|
|
50
50
|
// Organisms
|
|
51
|
+
@import "../components/organisms/Filter/styles";
|
|
52
|
+
@import "../components/organisms/FilterSlider/styles";
|
|
51
53
|
@import "../components/organisms/Hero/styles";
|
|
52
54
|
@import "../components/organisms/OutOfStock/styles";
|
|
53
55
|
@import "../components/organisms/PaymentMethods/styles";
|