@sc-360-v2/storefront-cms-library 0.4.79 → 0.4.80

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.
@@ -3,7 +3,7 @@
3
3
  width: 100%;
4
4
  }
5
5
  .bulk-order-container {
6
- background: #fff;
6
+ background: var(--_base-white);
7
7
  width: 100%;
8
8
  height: 100%;
9
9
  display: flex;
@@ -11,7 +11,7 @@
11
11
  overflow: auto;
12
12
  .select-product-dropdown {
13
13
  padding: 12px;
14
- border-bottom: 1px solid var(--_gray-200);
14
+ border-bottom: 1px solid var(--_gray-300);
15
15
  }
16
16
 
17
17
  .bulk_order_pad_empty_msg_container {
@@ -315,7 +315,6 @@
315
315
  .product-entity-info,
316
316
  .actions {
317
317
  display: flex;
318
- gap: 12px;
319
318
  align-items: center;
320
319
  flex-wrap: nowrap;
321
320
 
@@ -325,7 +324,6 @@
325
324
 
326
325
  .info {
327
326
  display: flex;
328
- gap: 4px;
329
327
  align-items: center;
330
328
 
331
329
  .info-label {
@@ -347,6 +345,15 @@
347
345
  font-size: 4px;
348
346
  color: var(--_gray-500);
349
347
  }
348
+
349
+ &:not(:last-child)::after {
350
+ content: "";
351
+ width: 6px;
352
+ height: 6px;
353
+ border-radius: 50%;
354
+ background-color: var(--_gray-400);
355
+ margin-inline: 12px;
356
+ }
350
357
  }
351
358
 
352
359
  .discard {
@@ -389,8 +396,8 @@
389
396
  &.disabled {
390
397
  opacity: 0.3;
391
398
  cursor: not-allowed;
392
- background-color: var(--_gray-300);
393
- border: 1px solid var(--_gray-300);
399
+ // background-color: var(--_gray-300);
400
+ // border: 1px solid var(--_gray-300);
394
401
  }
395
402
  }
396
403
  }
@@ -488,6 +495,9 @@
488
495
  margin: 14px 0px;
489
496
  background-color: #f0f0f0;
490
497
  }
498
+ .title {
499
+ white-space: nowrap;
500
+ }
491
501
  }
492
502
  }
493
503
 
@@ -518,6 +528,7 @@
518
528
  }
519
529
  .title {
520
530
  padding-inline: 10px;
531
+ white-space: nowrap;
521
532
  }
522
533
  }
523
534
 
@@ -540,7 +551,9 @@
540
551
  &:last-of-type {
541
552
  td {
542
553
  border-bottom: 1px solid var(--_gray-200);
543
- border-right: 1px solid var(--_gray-200);
554
+ &:last-child {
555
+ border-left: 1px solid var(--_gray-200);
556
+ }
544
557
  }
545
558
 
546
559
  .option-cell {
@@ -71,8 +71,17 @@
71
71
  .est__dropdown__main {
72
72
  padding-inline: 16px;
73
73
  .est__dropdown {
74
+ border: 1px solid var(--_gray-300) !important;
75
+ height: 44px;
76
+ &:focus-within {
77
+ box-shadow: 0px 0px 0px 3px var(--_gray-100);
78
+ border-radius: inherit;
79
+ border-radius: 6px;
80
+ }
74
81
  .list .list__option {
75
82
  font-size: 14px;
83
+ margin: 4px;
84
+ border-radius: 4px;
76
85
  }
77
86
  .est__dropdown__button {
78
87
  display: flex;
@@ -207,11 +216,13 @@
207
216
  font-size: 14px;
208
217
  // width: 300px !important;
209
218
  height: 40px !important;
210
- border: 1px solid var(--_gray-200) !important;
219
+ border: 1px solid var(--_gray-300) !important;
211
220
 
212
221
  &:focus {
213
- border: 1px solid var(--_primary-200) !important;
214
- outline: 2px solid var(--_primary-50);
222
+ // border: 1px solid var(--_primary-200) !important;
223
+ // outline: 2px solid var(--_primary-50);
224
+ box-shadow: 0px 0px 0px 3px var(--_gray-100);
225
+ border-radius: 6px;
215
226
  }
216
227
  }
217
228
 
@@ -303,6 +303,13 @@ $dark-color: #343a40;
303
303
  }
304
304
  }
305
305
 
306
+ .sc-phone-container .sc-phone-input-wrapper {
307
+ border-color: var(--_gray-300);
308
+ }
309
+ .sc-phone-container .sc-phone-country-btn {
310
+ border-right-color: var(--_gray-300);
311
+ }
312
+
306
313
  .error-msg {
307
314
  color: #ff0000;
308
315
  font-size: 12px;
@@ -1,240 +1,259 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
- @use "./functions.scss" as *;
4
-
5
- .default__dropdown {
6
- position: relative;
7
- width: 100%;
8
-
9
- .bo-dropdown__container {
10
- padding: 8px 12px;
11
- display: flex;
12
- align-items: center;
13
- align-self: stretch;
14
- justify-content: space-between;
15
- border: 1px solid var(--_gray-300);
16
- border-radius: 4px;
17
- background-color: var(--_base-white);
18
- min-height: 40px;
19
- cursor: pointer;
20
- transition: 0.2s ease;
21
- padding-inline: 12px !important;
22
- // .bod-trigger-left {
23
- // padding-left: 12px;
24
- // }
25
- .bo-dropdown__actions {
26
- // padding-right: 12px;
27
- .bo-dropdown__clear-btn {
28
- span {
29
- display: flex;
30
- }
31
- }
32
- }
33
- .bod-trigger-left {
34
- width: -webkit-fill-available;
35
- }
36
- }
37
-
38
- .bo-dropdown__container--search {
39
- padding: 0;
40
- cursor: text;
41
- }
42
-
43
- .bo-dropdown__container--disabled {
44
- cursor: not-allowed;
45
- opacity: 0.6;
46
- }
47
-
48
- .bo-dropdown__value-wrapper {
49
- flex: 1;
50
- min-width: 0;
51
- }
52
-
53
- .bo-dropdown__placeholder {
54
- color: #9ca3af;
55
- font-size: 14px;
56
- white-space: nowrap;
57
- overflow: hidden;
58
- text-overflow: ellipsis;
59
- }
60
-
61
- .bo-dropdown__selected {
62
- display: flex;
63
- align-items: center;
64
- gap: 8px;
65
- }
66
-
67
- .bo-dropdown__selected-info {
68
- display: flex;
69
- flex-direction: column;
70
- min-width: 0;
71
- }
72
-
73
- .bo-dropdown__selected-name {
74
- font-weight: normal;
75
- color: #111827;
76
- white-space: nowrap;
77
- overflow: hidden;
78
- text-overflow: ellipsis;
79
- }
80
-
81
- .bo-dropdown__selected-code {
82
- font-size: 12px;
83
- color: #6b7280;
84
- white-space: nowrap;
85
- overflow: hidden;
86
- text-overflow: ellipsis;
87
- }
88
-
89
- .bo-dropdown__actions {
90
- display: flex;
91
- align-items: center;
92
- gap: 4px;
93
- flex-shrink: 0;
94
- }
95
-
96
- .bo-dropdown__clear-btn,
97
- .bo-dropdown__toggle-btn {
98
- display: flex;
99
- align-items: center;
100
- justify-content: center;
101
- width: 20px;
102
- height: 20px;
103
- border: none;
104
- background: none;
105
- cursor: pointer;
106
- border-radius: 4px;
107
- }
108
-
109
- .bo-dropdown__chevron {
110
- transition: transform 0.2s ease;
111
- }
112
-
113
- .bo-dropdown__chevron--open {
114
- transform: rotate(180deg);
115
- }
116
-
117
- .bo-dropdown__panel {
118
- position: absolute;
119
- top: 100%;
120
- left: 0;
121
- right: 0;
122
- z-index: 1000;
123
- margin-top: 4px;
124
- background-color: #ffffff;
125
- border: 1px solid #d1d5db;
126
- border-radius: 8px;
127
- box-shadow:
128
- 0 10px 15px -3px rgba(0, 0, 0, 0.1),
129
- 0 4px 6px -2px rgba(0, 0, 0, 0.05);
130
- max-height: 320px;
131
- overflow: hidden;
132
- }
133
-
134
- .bo-dropdown__list {
135
- max-height: 240px;
136
- overflow-y: auto;
137
- margin: 0;
138
- padding: 0;
139
- list-style: none;
140
- padding: 4px;
141
- display: flex;
142
- flex-direction: column;
143
- gap: 2px;
144
- }
145
-
146
- .bo-dropdown__option {
147
- display: flex;
148
- align-items: center;
149
- gap: 8px;
150
- padding: 8px 12px;
151
- cursor: pointer;
152
- .variant__img {
153
- border: 1px solid var(--_gray-200);
154
- border-radius: 4px;
155
- overflow: hidden;
156
- display: flex;
157
- justify-content: center;
158
- align-items: center;
159
- img {
160
- max-height: 100%;
161
- max-width: 100%;
162
- }
163
- }
164
- }
165
-
166
- .bo-dropdown__option:last-child {
167
- border-bottom: none;
168
- }
169
-
170
- .bo-dropdown__option--highlighted {
171
- @include BgColorLighter(var(--_thm-cs-at-py), 10%);
172
- color: var(--_thm-cs-at-py);
173
- border-radius: 4px;
174
- }
175
-
176
- .bo-dropdown__option--selected {
177
- // background-color: var(--_base-white);
178
- border-radius: 4px;
179
- @include BgColorLighter(var(--_thm-cs-at-py), 10%);
180
- }
181
-
182
- .bo-dropdown__check {
183
- svg path {
184
- stroke: var(--_thm-cs-at-py);
185
- }
186
- }
187
-
188
- .bo-dropdown__option-text {
189
- flex: 1;
190
- min-width: 0;
191
- }
192
-
193
- .bo-dropdown__option-name {
194
- font-weight: 500;
195
- color: #111827;
196
- font-size: 13px;
197
- line-height: 1.2;
198
- margin-bottom: 1px;
199
- white-space: nowrap;
200
- overflow: hidden;
201
- text-overflow: ellipsis;
202
- }
203
-
204
- .bo-dropdown__option-code {
205
- font-size: 11px;
206
- color: #6b7280;
207
- line-height: 1.2;
208
- white-space: nowrap;
209
- overflow: hidden;
210
- text-overflow: ellipsis;
211
- }
212
-
213
- .bo-dropdown__empty,
214
- .bo-dropdown__loading {
215
- padding: 24px 12px;
216
- text-align: center;
217
- color: #6b7280;
218
- }
219
-
220
- .bo-dropdown__empty-title {
221
- display: block;
222
- font-weight: 500;
223
- margin-bottom: 4px;
224
- }
225
-
226
- .bo-dropdown__empty-sub {
227
- font-size: 12px;
228
- color: #9ca3af;
229
- }
230
-
231
- @keyframes pulse {
232
- 0%,
233
- 100% {
234
- opacity: 0.4;
235
- }
236
- 50% {
237
- opacity: 1;
238
- }
239
- }
240
- }
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./functions.scss" as *;
4
+
5
+ .default__dropdown {
6
+ position: relative;
7
+ width: 100%;
8
+ &:focus-within {
9
+ box-shadow: 0px 0px 0px 2px var(--_gray-100);
10
+ border-radius: 4px;
11
+ }
12
+
13
+ .bo-dropdown__container {
14
+ padding: 8px 12px;
15
+ display: flex;
16
+ align-items: center;
17
+ align-self: stretch;
18
+ justify-content: space-between;
19
+ border: 1px solid var(--_gray-300);
20
+ border-radius: 4px;
21
+ background-color: var(--_base-white);
22
+ min-height: 40px;
23
+ cursor: pointer;
24
+ transition: 0.2s ease;
25
+ padding-inline: 12px !important;
26
+ // .bod-trigger-left {
27
+ // padding-left: 12px;
28
+ // }
29
+ .bo-dropdown__actions {
30
+ // padding-right: 12px;
31
+ .bo-dropdown__clear-btn {
32
+ span {
33
+ display: flex;
34
+ }
35
+ }
36
+ }
37
+ .bod-trigger-left {
38
+ width: -webkit-fill-available;
39
+ }
40
+ }
41
+
42
+ .bo-dropdown__container--search {
43
+ padding: 0;
44
+ cursor: text;
45
+ line-height: 125%;
46
+ }
47
+
48
+ .bo-dropdown__container--disabled {
49
+ cursor: not-allowed;
50
+ opacity: 0.6;
51
+ }
52
+
53
+ .bo-dropdown__value-wrapper {
54
+ flex: 1;
55
+ min-width: 0;
56
+ }
57
+
58
+ .bo-dropdown__placeholder {
59
+ color: #9ca3af;
60
+ font-size: 14px;
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ }
65
+
66
+ .bo-dropdown__selected {
67
+ display: flex;
68
+ align-items: center;
69
+ gap: 8px;
70
+ }
71
+
72
+ .bo-dropdown__selected-info {
73
+ display: flex;
74
+ flex-direction: column;
75
+ min-width: 0;
76
+ }
77
+
78
+ .bo-dropdown__selected-name {
79
+ font-weight: normal;
80
+ color: #111827;
81
+ white-space: nowrap;
82
+ overflow: hidden;
83
+ text-overflow: ellipsis;
84
+ }
85
+
86
+ .bo-dropdown__selected-code {
87
+ font-size: 12px;
88
+ color: #6b7280;
89
+ white-space: nowrap;
90
+ overflow: hidden;
91
+ text-overflow: ellipsis;
92
+ }
93
+
94
+ .bo-dropdown__actions {
95
+ display: flex;
96
+ align-items: center;
97
+ gap: 4px;
98
+ flex-shrink: 0;
99
+ }
100
+
101
+ .bo-dropdown__clear-btn,
102
+ .bo-dropdown__toggle-btn {
103
+ display: flex;
104
+ align-items: center;
105
+ justify-content: center;
106
+ width: 20px;
107
+ height: 20px;
108
+ border: none;
109
+ background: none;
110
+ cursor: pointer;
111
+ border-radius: 4px;
112
+ }
113
+
114
+ .bo-dropdown__chevron {
115
+ transition: transform 0.2s ease;
116
+ }
117
+
118
+ .bo-dropdown__chevron--open {
119
+ transform: rotate(180deg);
120
+ }
121
+
122
+ .bo-dropdown__panel {
123
+ position: absolute;
124
+ top: 100%;
125
+ left: 0;
126
+ right: 0;
127
+ z-index: 1000;
128
+ margin-top: 4px;
129
+ background-color: #ffffff;
130
+ border: 1px solid #d1d5db;
131
+ border-radius: 8px;
132
+ box-shadow:
133
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1),
134
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
135
+ max-height: 320px;
136
+ overflow: hidden;
137
+ }
138
+
139
+ .bo-dropdown__list {
140
+ max-height: 240px;
141
+ overflow-y: auto;
142
+ margin: 0;
143
+ padding: 0;
144
+ list-style: none;
145
+ padding: 4px;
146
+ display: flex;
147
+ flex-direction: column;
148
+ gap: 2px;
149
+ }
150
+
151
+ .bo-dropdown__option {
152
+ display: flex;
153
+ align-items: center;
154
+ gap: 8px;
155
+ padding: 8px 12px;
156
+ cursor: pointer;
157
+ .variant__img {
158
+ border: 1px solid var(--_gray-200);
159
+ border-radius: 4px;
160
+ overflow: hidden;
161
+ display: flex;
162
+ justify-content: center;
163
+ align-items: center;
164
+ img {
165
+ max-height: 100%;
166
+ max-width: 100%;
167
+ object-fit: contain;
168
+ }
169
+ }
170
+ }
171
+
172
+ .bo-dropdown__option:last-child {
173
+ border-bottom: none;
174
+ }
175
+
176
+ .bo-dropdown__option--highlighted {
177
+ // @include BgColorLighter(var(--_thm-cs-at-py), 10%);
178
+ background-color: var(--_gray-50);
179
+ color: var(--_thm-cs-at-py);
180
+ border-radius: 4px;
181
+ }
182
+
183
+ .bo-dropdown__option--selected {
184
+ // background-color: var(--_base-white);
185
+ border-radius: 4px;
186
+ // @include BgColorLighter(var(--_thm-cs-at-py), 10%);
187
+ background-color: var(--_gray-100);
188
+ .bo-dropdown__option-name {
189
+ color: var(--_gray-900);
190
+ }
191
+ .bo-dropdown__option-code {
192
+ color: var(--_gray-700);
193
+ }
194
+ }
195
+
196
+ .bo-dropdown__check {
197
+ svg path {
198
+ stroke: var(--_gray-900);
199
+ }
200
+ }
201
+
202
+ .bo-dropdown__option-text {
203
+ flex: 1;
204
+ min-width: 0;
205
+ }
206
+
207
+ .bo-dropdown__option-name {
208
+ font-weight: 500;
209
+ color: var(--_gray-700);
210
+ font-size: 13px;
211
+ line-height: 1.2;
212
+ margin-bottom: 1px;
213
+ white-space: nowrap;
214
+ overflow: hidden;
215
+ text-overflow: ellipsis;
216
+ }
217
+
218
+ .bo-dropdown__option-code {
219
+ font-size: 11px;
220
+ color: var(--_gray-500);
221
+ line-height: 1.2;
222
+ white-space: nowrap;
223
+ overflow: hidden;
224
+ text-overflow: ellipsis;
225
+ .code__icon {
226
+ display: flex;
227
+ gap: 4px;
228
+ margin-top: 4px;
229
+ }
230
+ }
231
+
232
+ .bo-dropdown__empty,
233
+ .bo-dropdown__loading {
234
+ padding: 24px 12px;
235
+ text-align: center;
236
+ color: #6b7280;
237
+ }
238
+
239
+ .bo-dropdown__empty-title {
240
+ display: block;
241
+ font-weight: 500;
242
+ margin-bottom: 4px;
243
+ }
244
+
245
+ .bo-dropdown__empty-sub {
246
+ font-size: 12px;
247
+ color: #9ca3af;
248
+ }
249
+
250
+ @keyframes pulse {
251
+ 0%,
252
+ 100% {
253
+ opacity: 0.4;
254
+ }
255
+ 50% {
256
+ opacity: 1;
257
+ }
258
+ }
259
+ }