@fast-simon/dashboard-utilities 1.0.7 → 1.0.8

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.
@@ -0,0 +1,10 @@
1
+ .filtersContainer {
2
+ padding: 8px 16px;
3
+ font-size: 12px;
4
+ }
5
+ .clearAll {
6
+ color: var(--windows-blue);
7
+ text-decoration: none;
8
+ cursor: pointer;
9
+ font-size: 1.2rem;
10
+ }
@@ -0,0 +1,143 @@
1
+ .fsCheckbox {
2
+ display: flex;
3
+ position: relative;
4
+ padding: 0 5px 0 0;
5
+ margin-top: 5px;
6
+ margin-bottom: 5px;
7
+ cursor: pointer;
8
+ -webkit-user-select: none;
9
+ -moz-user-select: none;
10
+ -ms-user-select: none;
11
+ user-select: none;
12
+ font-family: Arial, serif;
13
+ animation: growDown 300ms ease forwards;
14
+ align-items: center;
15
+ }
16
+
17
+ .fsCheckbox input {
18
+ position: fixed;
19
+ opacity: 0;
20
+ cursor: pointer;
21
+ height: 0;
22
+ width: 0;
23
+ }
24
+
25
+ .checkmark {
26
+ min-height: 16px;
27
+ min-width: 16px;
28
+ background-color: #eee;
29
+ margin-right: 10px;
30
+ }
31
+
32
+ .fsCheckbox:hover input ~ .checkmark {
33
+ background-color: #d00202cf;
34
+ }
35
+
36
+ .fsCheckbox input:checked ~ .checkmark {
37
+ background-color: white;
38
+ }
39
+
40
+ .fsCheckbox input:checked ~ .checkmark:after {
41
+ display: block;
42
+ }
43
+
44
+ .fsCheckboxx .checkmark:after {
45
+ left: 5px;
46
+ width: 4px;
47
+ height: 9px;
48
+ border: solid white;
49
+ border-width: 0 2px 2px 0;
50
+ -webkit-transform: rotate(45deg);
51
+ -ms-transform: rotate(45deg);
52
+ transform: rotate(45deg);
53
+ }
54
+ .fsSelectedCheckboxTrue{}
55
+ .fsSelectedCheckboxFalse{}
56
+
57
+ @keyframes growDown {
58
+ 0% {
59
+ transform: scaleY(0)
60
+ }
61
+ 80% {
62
+ transform: scaleY(1.1)
63
+ }
64
+ 100% {
65
+ transform: scaleY(1)
66
+ }
67
+ }
68
+
69
+ .checkbox {
70
+ display: flex;
71
+ position: relative;
72
+ padding: 0 5px 0 0;
73
+ margin-top: 5px;
74
+ margin-bottom: 5px;
75
+ cursor: pointer;
76
+ -webkit-user-select: none;
77
+ -moz-user-select: none;
78
+ -ms-user-select: none;
79
+ user-select: none;
80
+ font-family: Arial, serif;
81
+ animation: growDown 300ms ease forwards;
82
+ align-items: center;
83
+ }
84
+
85
+ .checkbox .checkboxLabel {
86
+ align-self: start;
87
+ text-transform: capitalize;
88
+ display: flex;
89
+ line-height: 20px;
90
+ align-items: center;
91
+ margin-top: 2px;
92
+ width: -webkit-fill-available;
93
+ justify-content: space-between;
94
+ text-overflow: ellipsis;
95
+ overflow: hidden;
96
+ }
97
+
98
+ .checkbox input {
99
+ position: fixed;
100
+ opacity: 0;
101
+ cursor: pointer;
102
+ height: 0;
103
+ width: 0;
104
+ }
105
+
106
+ .checkmark {
107
+ min-height: 16px;
108
+ min-width: 16px;
109
+ background-color: #eee;
110
+ margin-right: 10px;
111
+ }
112
+
113
+ .checkbox:hover input ~ .checkmark {
114
+ background-color: #ccc;
115
+ }
116
+
117
+ .checkbox input:checked ~ .checkmark {
118
+ background-color: #000000;
119
+ }
120
+
121
+ .checkmark:after {
122
+ content: "";
123
+ position: absolute;
124
+ display: none;
125
+ }
126
+
127
+ .checkbox input:checked ~ .checkmark:after {
128
+ display: block;
129
+ }
130
+
131
+ .checkbox .checkmark:after {
132
+ left: 5px;
133
+ width: 4px;
134
+ height: 9px;
135
+ border: solid white;
136
+ border-width: 0 2px 2px 0;
137
+ -webkit-transform: rotate(45deg);
138
+ -ms-transform: rotate(45deg);
139
+ transform: rotate(45deg);
140
+ }
141
+ :global(.modal-mobile-filters .fs-serp-filter-count, .modal-mobile-filters .fsSerpCheckmark) {
142
+ display: none;
143
+ }
@@ -0,0 +1,5 @@
1
+ .fs-switch-left-margin{
2
+ margin-left: 10px;
3
+ }
4
+ .fs-serp-filter-text {}
5
+ .filters-option-text {}
@@ -0,0 +1,21 @@
1
+ .over:after {
2
+ background-color: #4c9ffe;
3
+ content: '';
4
+ position: absolute;
5
+ top: 0;
6
+ bottom: 0;
7
+ width: 3px;
8
+ }
9
+
10
+ .after:after {
11
+ right: -12px;
12
+ }
13
+
14
+ .before:after {
15
+ left: -12px;
16
+ }
17
+
18
+ .disabledChildren {
19
+ pointer-events: none;
20
+ opacity: 1;
21
+ }
@@ -0,0 +1,55 @@
1
+ .fsFlexFacetTitle {
2
+ display: flex;
3
+ }
4
+ .fsFlexFacetSpan {
5
+ margin-left: 0.7rem;
6
+ }
7
+ .fsFacetTitle {
8
+ -webkit-font-smoothing: antialiased;
9
+ -moz-osx-font-smoothing: grayscale;
10
+ letter-spacing: .2px;
11
+ background-color: #fff0;
12
+ border: none;
13
+ width: 100%;
14
+ text-align: left;
15
+ padding: 8px 0;
16
+ position: relative;
17
+ border-radius: 8px;
18
+ transition: background-color .2s ease-out;
19
+ cursor: pointer;
20
+ color: #000;
21
+ font-size: 14px;
22
+ font-weight: 600;
23
+ display: flex;
24
+ gap: 10px;
25
+ align-items: center;
26
+ }
27
+
28
+ .fsFacetContainer {
29
+ display: flex;
30
+ flex-direction: column;
31
+ }
32
+ .fsFacetOptions {
33
+ display: flex;
34
+ flex-direction: column;
35
+ padding: 0;
36
+ max-height: 230px;
37
+ overflow: auto;
38
+ }
39
+ .fsFacetOptions::-webkit-scrollbar {
40
+ width: 10px;
41
+ height: 10px;
42
+ }
43
+
44
+ .fsFacetOptions::-webkit-scrollbar-track {
45
+ border-radius: 4px;
46
+ border: 1px solid #cacaca;
47
+ background-color: white;
48
+ }
49
+
50
+ .fsFacetOptions::-webkit-scrollbar-thumb {
51
+ border-radius: 4px;
52
+ background-color: #e1e1e1;
53
+ border: 1px solid #cacaca;
54
+ transition: background-color ease-in-out 100ms;
55
+ }
@@ -0,0 +1,9 @@
1
+ .from {
2
+ float: left;
3
+ width: calc(50% - 20px);
4
+ padding: 0 10px;
5
+ }
6
+
7
+ .from > div > input {
8
+ max-width: 100%;
9
+ }
@@ -0,0 +1,9 @@
1
+ .to {
2
+ float: left;
3
+ width: calc(50% - 20px);
4
+ padding: 0 10px;
5
+ }
6
+
7
+ .to > div > input {
8
+ max-width: 100%;
9
+ }
@@ -0,0 +1,34 @@
1
+ .fsFacetTitle {
2
+ -webkit-font-smoothing: antialiased;
3
+ -moz-osx-font-smoothing: grayscale;
4
+ letter-spacing: .2px;
5
+ background-color: #fff0;
6
+ border: none;
7
+ width: 100%;
8
+ text-align: left;
9
+ padding: 8px 0;
10
+ position: relative;
11
+ border-radius: 8px;
12
+ transition: background-color .2s ease-out;
13
+ cursor: pointer;
14
+ color: #000;
15
+ font-size: 14px;
16
+ font-weight: 600;
17
+ display: flex;
18
+ gap: 10px;
19
+ align-items: center;
20
+ }
21
+
22
+ .fsFacetContainer {
23
+ display: flex;
24
+ flex-direction: column;
25
+ }
26
+ .fsFacetOptions {
27
+ width: 100%;
28
+ margin: 0 -5px;
29
+ }
30
+ .fsFacetOptions:after {
31
+ content: "";
32
+ display: table;
33
+ clear: both;
34
+ }
@@ -0,0 +1,10 @@
1
+ .filtersContainer {
2
+ padding: 8px 16px;
3
+ font-size: 12px;
4
+ }
5
+ .clearAll {
6
+ color: var(--windows-blue);
7
+ text-decoration: none;
8
+ cursor: pointer;
9
+ font-size: 1.2rem;
10
+ }
@@ -0,0 +1,3 @@
1
+ .inputContainer {
2
+
3
+ }
@@ -0,0 +1,41 @@
1
+ .fsOptions {
2
+ padding: 0 0 8px 8px;
3
+ }
4
+ .showMore {
5
+ color: #737373;
6
+ }
7
+
8
+ .showMore:hover {
9
+ cursor: pointer;
10
+ }
11
+
12
+ .arrow {
13
+ border: solid #636363;
14
+ border-width: 0 1.5px 1.5px 0;
15
+ display: inline-block;
16
+ padding: 3px;
17
+ }
18
+
19
+ .down {
20
+ transform: rotate(45deg);
21
+ -webkit-transform: rotate(45deg);
22
+ margin-bottom: 2px;
23
+ }
24
+ .fsFacetContainer {
25
+ display: flex;
26
+ flex-direction: row;
27
+ padding: 0pc 2px;
28
+ width: calc(100% - 4px);
29
+ }
30
+ .fsFacetOptions {
31
+ width: calc(50% - 12px);
32
+ padding: 0px 6px;
33
+ }
34
+ .fsFacetOptions:after {
35
+ content: "";
36
+ display: table;
37
+ clear: both;
38
+ }
39
+ .fsFacetOptions>.react-datepicker-wrapper {
40
+ width: calc(100% - 6px)!important;
41
+ }
@@ -0,0 +1,145 @@
1
+ .fsCheckbox {
2
+ display: flex;
3
+ position: relative;
4
+ padding: 0 5px 0 0;
5
+ margin-top: 5px;
6
+ margin-bottom: 5px;
7
+ cursor: pointer;
8
+ -webkit-user-select: none;
9
+ -moz-user-select: none;
10
+ -ms-user-select: none;
11
+ user-select: none;
12
+ font-family: Arial, serif;
13
+ animation: growDown 300ms ease forwards;
14
+ align-items: center;
15
+ }
16
+
17
+ .fsCheckbox input {
18
+ position: fixed;
19
+ opacity: 0;
20
+ cursor: pointer;
21
+ height: 0;
22
+ width: 0;
23
+ }
24
+
25
+ .checkmark {
26
+ min-height: 16px;
27
+ min-width: 16px;
28
+ background-color: #eee;
29
+ margin-right: 10px;
30
+ }
31
+
32
+ .fsCheckbox:hover input ~ .checkmark {
33
+ background-color: #d00202cf;
34
+ }
35
+
36
+ .fsCheckbox input:checked ~ .checkmark {
37
+ background-color: white;
38
+ }
39
+
40
+ .fsCheckbox input:checked ~ .checkmark:after {
41
+ display: block;
42
+ }
43
+
44
+ .fsCheckboxx .checkmark:after {
45
+ left: 5px;
46
+ width: 4px;
47
+ height: 9px;
48
+ border: solid white;
49
+ border-width: 0 2px 2px 0;
50
+ -webkit-transform: rotate(45deg);
51
+ -ms-transform: rotate(45deg);
52
+ transform: rotate(45deg);
53
+ }
54
+ .fsSelectedCheckboxTrue{}
55
+ .fsSelectedCheckboxFalse{}
56
+
57
+ @keyframes growDown {
58
+ 0% {
59
+ transform: scaleY(0)
60
+ }
61
+ 80% {
62
+ transform: scaleY(1.1)
63
+ }
64
+ 100% {
65
+ transform: scaleY(1)
66
+ }
67
+ }
68
+
69
+ .checkbox {
70
+ display: flex;
71
+ position: relative;
72
+ padding: 0 5px 0 0;
73
+ margin-top: 5px;
74
+ margin-bottom: 5px;
75
+ cursor: pointer;
76
+ -webkit-user-select: none;
77
+ -moz-user-select: none;
78
+ -ms-user-select: none;
79
+ user-select: none;
80
+ font-family: Arial, serif;
81
+ animation: growDown 300ms ease forwards;
82
+ align-items: center;
83
+ }
84
+
85
+ .checkbox .checkboxLabel {
86
+ align-self: start;
87
+ text-transform: capitalize;
88
+ display: flex;
89
+ line-height: 20px;
90
+ align-items: center;
91
+ margin-top: 2px;
92
+ width: -webkit-fill-available;
93
+ justify-content: space-between;
94
+ text-overflow: ellipsis;
95
+ overflow: hidden;
96
+ }
97
+
98
+ .checkbox input {
99
+ position: fixed;
100
+ opacity: 0;
101
+ cursor: pointer;
102
+ height: 0;
103
+ width: 0;
104
+ }
105
+
106
+ .checkmark {
107
+ min-height: 16px;
108
+ min-width: 16px;
109
+ background-color: #eee;
110
+ margin-right: 10px;
111
+ border-radius: 18px;
112
+ }
113
+
114
+ .checkbox:hover input ~ .checkmark {
115
+ background-color: #ccc;
116
+ }
117
+
118
+ .checkbox input:checked ~ .checkmark {
119
+ background-color: #000000;
120
+ }
121
+
122
+ .checkmark:after {
123
+ content: "";
124
+ position: absolute;
125
+ display: none;
126
+ }
127
+
128
+ .checkbox input:checked ~ .checkmark:after {
129
+ display: block;
130
+ }
131
+
132
+ .checkbox .checkmark:after {
133
+ left: 5px;
134
+ width: 3px;
135
+ height: 8px;
136
+ top: 5px;
137
+ border: solid white;
138
+ border-width: 0 2px 2px 0;
139
+ -webkit-transform: rotate(45deg);
140
+ -ms-transform: rotate(45deg);
141
+ transform: rotate(45deg);
142
+ }
143
+ :global(.modal-mobile-filters .fs-serp-filter-count, .modal-mobile-filters .fsSerpCheckmark) {
144
+ display: none;
145
+ }
@@ -0,0 +1,23 @@
1
+ .fsOptions {
2
+ padding: 0 0 8px 8px;
3
+ }
4
+ .showMore {
5
+ color: #737373;
6
+ }
7
+
8
+ .showMore:hover {
9
+ cursor: pointer;
10
+ }
11
+
12
+ .arrow {
13
+ border: solid #636363;
14
+ border-width: 0 1.5px 1.5px 0;
15
+ display: inline-block;
16
+ padding: 3px;
17
+ }
18
+
19
+ .down {
20
+ transform: rotate(45deg);
21
+ -webkit-transform: rotate(45deg);
22
+ margin-bottom: 2px;
23
+ }
@@ -0,0 +1,3 @@
1
+ .fullWidthInput{
2
+ width: 100%;
3
+ }
@@ -0,0 +1,23 @@
1
+ .fsOptions {
2
+ padding: 0 5px 8px 8px;
3
+ }
4
+ .showMore {
5
+ color: #737373;
6
+ }
7
+
8
+ .showMore:hover {
9
+ cursor: pointer;
10
+ }
11
+
12
+ .arrow {
13
+ border: solid #636363;
14
+ border-width: 0 1.5px 1.5px 0;
15
+ display: inline-block;
16
+ padding: 3px;
17
+ }
18
+
19
+ .down {
20
+ transform: rotate(45deg);
21
+ -webkit-transform: rotate(45deg);
22
+ margin-bottom: 2px;
23
+ }
@@ -0,0 +1,16 @@
1
+ .select {
2
+ width: 250px !important;
3
+ font-size: 18px;
4
+ box-sizing: border-box !important;
5
+ }
6
+ .rcSlider{
7
+ width: calc(100% - 10px)!important;
8
+ min-height: 30px!important;
9
+ padding: 5px 4px !important;
10
+ }
11
+ .rcSlider>.rc-slider-track{
12
+ background-color: #282828;
13
+ }
14
+ .rcSlider>.rc-slider-handle{
15
+ border-color: #575757;
16
+ }
@@ -0,0 +1,34 @@
1
+ .miniTooltip {
2
+ opacity: 0;
3
+ transition: opacity ease-in-out 110ms;
4
+ padding: 4px 10px;
5
+ font-size: 12px;
6
+ font-weight: 400;
7
+ z-index: 10;
8
+ position: absolute;
9
+ text-align: center;
10
+ background-color: #545454;
11
+ color: white;
12
+ display: flex;
13
+ align-items: center;
14
+ height: fit-content;
15
+ border-radius: 8px;
16
+ width: max-content;
17
+ justify-content: center;
18
+ max-width: 86px;
19
+ pointer-events: none;
20
+ top: 100%;
21
+ left: 30%;
22
+ }
23
+
24
+ .tooltipIcon:hover ~ .miniTooltip {
25
+ opacity: 1;
26
+ }
27
+
28
+ .tooltipIcon {
29
+ font-size: 16px !important;
30
+ }
31
+
32
+ .tooltipIcon:hover {
33
+ fill: #909090;
34
+ }
@@ -0,0 +1,23 @@
1
+ .grid {
2
+ grid-template-columns: repeat(var(--products-per-row), calc(100%/var(--products-per-row) - 80px));
3
+ display: grid;
4
+ container-type: inline-size;
5
+ grid-column-gap: 20px;
6
+ grid-row-gap: 20px;
7
+ justify-content: center;
8
+ padding: 10px 10px 12px 0;
9
+ grid-auto-rows: auto;
10
+ align-items: stretch;
11
+ overflow-anchor: none;
12
+ overflow: hidden;
13
+ width: 100%;
14
+ position: relative;
15
+ cursor: crosshair;
16
+ margin: auto;
17
+ }
18
+
19
+ @container (max-width: 870px) {
20
+ .grid {
21
+ grid-template-columns: repeat(var(--products-per-row), calc(100%/var(--products-per-row) - 20px));
22
+ }
23
+ }
package/package.json CHANGED
@@ -3,12 +3,13 @@
3
3
  "files": [
4
4
  "lib/**/*"
5
5
  ],
6
- "version": "1.0.7",
6
+ "version": "1.0.8",
7
7
  "scripts": {
8
8
  "dev": "vite",
9
9
  "preview": "vite preview",
10
10
  "build": "tsc -p tsconfig-build.json",
11
11
  "prepublishOnly": "npm version patch && npm run build",
12
+ "postbuild": "copyfiles -u 2 src/components/**/*.css lib/components && copyfiles -u 2 lib/icons/**/*.css lib/icons && copyfiles -u 2 src/assets/**/*.gif lib/assets",
12
13
  "tsc": "tsc"
13
14
  },
14
15
  "main": "lib/main.js",