@sc-360-v2/storefront-cms-library 0.3.58 → 0.3.59

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.
@@ -52,6 +52,7 @@
52
52
  text-align: center;
53
53
  border-block: 1px solid var(--_error-200);
54
54
  color: var(--_error-700);
55
+ margin-top: -1px;
55
56
  }
56
57
 
57
58
  .bulkOrderPad-grid {
@@ -764,8 +764,7 @@
764
764
  var(--_ctm-buy-dn-ee-ds-wr-my-ct-ct-is-ct-cr)
765
765
  )
766
766
  );
767
- font-family:
768
- var(
767
+ font-family: var(
769
768
  --_ctm-mob-buy-dn-ee-ds-wr-my-ct-ct-is-ct-ft-fy,
770
769
  var(
771
770
  --_ctm-tab-buy-dn-ee-ds-wr-my-ct-ct-is-ct-ft-fy,
@@ -913,8 +912,7 @@
913
912
  var(--_ctm-buy-dn-ee-ds-wr-my-ct-mi-ct-tt-cr)
914
913
  )
915
914
  );
916
- font-family:
917
- var(
915
+ font-family: var(
918
916
  --_ctm-mob-buy-dn-ee-ds-wr-my-ct-mi-ct-tt-ft-fy,
919
917
  var(
920
918
  --_ctm-tab-buy-dn-ee-ds-wr-my-ct-mi-ct-tt-ft-fy,
@@ -980,8 +978,7 @@
980
978
  var(--_ctm-buy-dn-ee-ds-wr-my-ct-mi-ct-tt-cr-dc)
981
979
  )
982
980
  );
983
- font-family:
984
- var(
981
+ font-family: var(
985
982
  --_ctm-mob-buy-dn-ee-ds-wr-my-ct-mi-ct-tt-ft-fy-dc,
986
983
  var(
987
984
  --_ctm-tab-buy-dn-ee-ds-wr-my-ct-mi-ct-tt-ft-fy-dc,
@@ -250,7 +250,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
250
250
  align-items: flex-start;
251
251
 
252
252
  .cart_summary_product_img {
253
- width: 69px;
253
+ width: 80px;
254
254
  height: 80px;
255
255
  background-color: var(
256
256
  --_ctm-mob-dn-pt-wt-pt-ie-bd-cr,
@@ -1268,6 +1268,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1268
1268
  }
1269
1269
 
1270
1270
  .btn__with__text[data-btn-name="checkoutButton"] {
1271
+ width: 100%;
1271
1272
  &[data-show-shadow="false"] {
1272
1273
  --_show-shadow: none;
1273
1274
  }
@@ -1341,6 +1342,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1341
1342
  var(--_sf-hr-sw-cr, prepareMediaVariable(--_ctm-dn-ct-as-ct-dt-se-sw-cr));
1342
1343
 
1343
1344
  &[data-show-border="true"] {
1345
+ width: 100%;
1344
1346
  border-color: var(--_sf-hr-br-cr, prepareMediaVariable(--_ctm-dn-ct-as-ct-dt-se-br-cr));
1345
1347
 
1346
1348
  border-style: var(--_sf-hr-br-se, prepareMediaVariable(--_ctm-dn-ct-as-ct-dt-se-br-se));
@@ -1391,6 +1393,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1391
1393
  }
1392
1394
  }
1393
1395
  .btn__with__text[data-btn-name="placeOrder"] {
1396
+ width: 100%;
1394
1397
  &[data-show-shadow="false"] {
1395
1398
  --_show-shadow: none;
1396
1399
  }
@@ -1470,6 +1473,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1470
1473
  var(--_sf-hr-sw-cr, prepareMediaVariable(--_ctm-dn-ct-as-pe-or-dt-se-sw-cr));
1471
1474
 
1472
1475
  &[data-show-border="true"] {
1476
+ width: 100%;
1473
1477
  border-color: var(
1474
1478
  --_sf-hr-br-cr,
1475
1479
  prepareMediaVariable(--_ctm-dn-ct-as-pe-or-dt-se-br-cr)
@@ -1532,6 +1536,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1532
1536
  }
1533
1537
  }
1534
1538
  .btn__with__text[data-btn-name="requestQuote"] {
1539
+ width: 100%;
1535
1540
  &[data-show-shadow="false"] {
1536
1541
  --_show-shadow: none;
1537
1542
  }
@@ -1673,6 +1678,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1673
1678
  }
1674
1679
  }
1675
1680
  .btn__with__text[data-btn-name="reviewOrder"] {
1681
+ width: 100%;
1676
1682
  &[data-show-shadow="false"] {
1677
1683
  --_show-shadow: none;
1678
1684
  }
@@ -1814,6 +1820,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1814
1820
  }
1815
1821
  }
1816
1822
  .btn__with__text[data-btn-name="createSubOrders"] {
1823
+ width: 100%;
1817
1824
  &[data-show-shadow="false"] {
1818
1825
  --_show-shadow: none;
1819
1826
  }
@@ -1974,6 +1981,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1974
1981
  }
1975
1982
  }
1976
1983
  .btn__with__text[data-btn-name="submitQuote"] {
1984
+ width: 100%;
1977
1985
  &[data-show-shadow="false"] {
1978
1986
  --_show-shadow: none;
1979
1987
  }
@@ -2053,6 +2061,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
2053
2061
  var(--_sf-hr-sw-cr, prepareMediaVariable(--_ctm-dn-ct-as-st-qe-dt-se-sw-cr));
2054
2062
 
2055
2063
  &[data-show-border="true"] {
2064
+ width: 100%;
2056
2065
  border-color: var(
2057
2066
  --_sf-hr-br-cr,
2058
2067
  prepareMediaVariable(--_ctm-dn-ct-as-st-qe-dt-se-br-cr)
@@ -2,6 +2,13 @@
2
2
  display: grid;
3
3
  gap: 2px;
4
4
  width: 100%;
5
+ border: 1px solid var(--_gray-300);
6
+ background-color: var(--_base-white);
7
+ border-radius: 6px;
8
+ &:focus-within {
9
+ border: 1px solid var(--_primary-300);
10
+ outline: 2px solid var(--_primary-100);
11
+ }
5
12
 
6
13
  .dropdown-disabled {
7
14
  opacity: 0.6;
@@ -19,16 +26,22 @@
19
26
  display: flex;
20
27
  justify-content: space-between;
21
28
  padding: 0px 12px;
22
- border: 1px solid var(--_gray-300);
23
- background-color: var(--_base-white);
24
- border-radius: 6px;
29
+
25
30
  width: 100%;
26
31
  align-items: center;
27
32
  height: 40px;
28
- &:focus-within {
29
- border: 1px solid var(--_primary-300);
30
- outline: 2px solid var(--_primary-50);
31
- }
33
+
34
+ // .dropdown-disabled {
35
+ // opacity: 0.6;
36
+ // pointer-events: none;
37
+ // user-select: none;
38
+
39
+ // input {
40
+ // background-color: #f5f5f5;
41
+ // cursor: not-allowed;
42
+ // }
43
+ // }
44
+
32
45
  .dropdown-chips {
33
46
  display: flex;
34
47
  // flex-wrap: wrap;
@@ -76,6 +89,17 @@
76
89
  .dropdown__icon {
77
90
  .icon {
78
91
  display: flex;
92
+ svg {
93
+ width: 16px;
94
+ height: 16px;
95
+ }
96
+ &.up,
97
+ &.down {
98
+ svg {
99
+ width: 18px !important;
100
+ height: 18px !important;
101
+ }
102
+ }
79
103
  }
80
104
  cursor: pointer;
81
105
  .icon svg {
@@ -88,15 +112,29 @@
88
112
  .dropdown__clear__icon {
89
113
  position: absolute;
90
114
  right: 32px;
115
+ .icon {
116
+ display: flex;
117
+ svg {
118
+ width: 16px;
119
+ height: 16px;
120
+ }
121
+ &.up,
122
+ &.down {
123
+ svg {
124
+ width: 18px !important;
125
+ height: 18px !important;
126
+ }
127
+ }
128
+ }
91
129
  }
92
130
  .dropdown-menu {
93
131
  position: absolute;
94
132
  width: 100%;
95
- top: 40px;
133
+ top: 38px;
96
134
  left: 0px;
97
135
  right: 24px;
98
136
  background: white;
99
- border: 1px solid #ddd;
137
+ border: 1px solid var(--_gray-100);
100
138
  border-radius: 6px;
101
139
  max-height: 200px;
102
140
  // overflow-y: auto;
@@ -107,6 +145,11 @@
107
145
  display: flex;
108
146
  flex-direction: column;
109
147
  // padding: 4px;
148
+ // &.uom_dropdown {
149
+ // margin-left: -10px;
150
+ // width: 303px !important;
151
+ // max-height: 260px !important;
152
+ // }
110
153
 
111
154
  .dropdown_menu_ul {
112
155
  height: 200px;
@@ -176,13 +219,29 @@
176
219
  }
177
220
 
178
221
  .dropdown-item-details {
179
- max-width: 80%;
222
+ max-width: 100%;
223
+ // width: 100%;
224
+ .item-name {
225
+ color: var(--_gray-900);
226
+ }
227
+ .item-code {
228
+ color: var(--_gray-600);
229
+ }
180
230
  }
181
231
  }
182
232
  .selected {
183
233
  background-color: var(--_primary-25);
184
234
  font-weight: normal;
185
- color: var(--_primary-500);
235
+ color: var(--_primary-400);
236
+ .dropdown-item-details {
237
+ width: 70% !important;
238
+ }
239
+ .check_mark {
240
+ margin-left: auto;
241
+ svg path {
242
+ stroke: var(--_primary-400);
243
+ }
244
+ }
186
245
  }
187
246
  }
188
247
  .dropdown-group-li {
@@ -261,6 +320,14 @@
261
320
  align-items: center;
262
321
  justify-content: center;
263
322
  cursor: pointer;
323
+ .add_selected_options {
324
+ &:hover {
325
+ background-color: var(--_primary-25);
326
+ svg path {
327
+ stroke: var(--_primary-400);
328
+ }
329
+ }
330
+ }
264
331
  &:not(:last-child) {
265
332
  border-right: 1px solid var(--_gray-200);
266
333
  }
@@ -287,18 +354,22 @@
287
354
  .dropdown_template_panel_search {
288
355
  background: none;
289
356
  padding: 8px;
290
- border-bottom: 1px solid #dddddd;
357
+ border-bottom: 1px solid var(--_gray-100);
291
358
  height: max-content !important;
292
359
  position: relative;
293
360
  &:hover {
294
361
  background: none !important;
295
362
  }
363
+
296
364
  input {
297
365
  width: 100%;
298
366
  padding-inline: 10px;
299
367
  border-radius: 4px;
300
368
  border: 1px solid var(--_gray-200);
301
369
  height: 40px;
370
+ &:focus {
371
+ border: 1px solid var(--_gray-300);
372
+ }
302
373
  }
303
374
  .close_btn {
304
375
  position: absolute;
@@ -307,12 +378,12 @@
307
378
  z-index: 10;
308
379
  }
309
380
  }
310
- }
311
- .dropdown-with-icon {
312
- width: 100%;
313
- // pointer-events: none;
314
- border: none;
315
- padding: 0;
381
+ .dropdown-with-icon {
382
+ width: 100%;
383
+ // pointer-events: none;
384
+ border: none;
385
+ padding: 0;
386
+ }
316
387
  }
317
388
  }
318
389
  // .dropdown-with-input-section.full-width {
@@ -124,14 +124,30 @@
124
124
  .em_add-product {
125
125
  position: absolute;
126
126
  right: 0;
127
+ .dropdown-with-input-section {
128
+ border: 0;
129
+ background-color: transparent;
130
+ &:focus-within {
131
+ border: 0;
132
+ outline: 0;
133
+ }
134
+ }
127
135
  .svg_icon {
128
136
  right: -10px;
129
- top: 0px;
137
+ top: -10px;
130
138
  }
131
139
  }
132
140
  .em_add-employee {
133
141
  position: absolute;
134
142
  bottom: 0;
143
+ .dropdown-with-input-section {
144
+ border: 0;
145
+ background-color: transparent;
146
+ &:focus-within {
147
+ border: 0;
148
+ outline: 0;
149
+ }
150
+ }
135
151
  .dropdown-menu {
136
152
  top: 38px;
137
153
  }
@@ -221,6 +237,7 @@
221
237
  }
222
238
  .em_profile_text {
223
239
  width: 100%;
240
+ text-align: center;
224
241
  }
225
242
  }
226
243
  .em_entity-status {
@@ -299,6 +316,11 @@
299
316
  gap: 8px;
300
317
  grid-template-columns: 40px auto;
301
318
  .image-section {
319
+ border-radius: 50%;
320
+ width: 32px;
321
+ height: 32px;
322
+ overflow: hidden;
323
+ background: var(--_gray-100);
302
324
  img {
303
325
  width: 100%;
304
326
  border-radius: 2px;
@@ -359,12 +381,20 @@
359
381
  overflow: auto;
360
382
  padding: 8px;
361
383
  color: var(--_gray-600);
362
- .no_variants {
384
+ .variant_info {
363
385
  display: flex;
364
386
  justify-content: center;
365
387
  align-items: center;
366
388
  height: 100%;
367
- color: var(--_gray-400);
389
+ border-radius: 4px;
390
+ &:has(.error) {
391
+ color: var(--_gray-400);
392
+ background-color: var(--_base-white);
393
+ }
394
+ &.error {
395
+ color: var(--_error-700);
396
+ background-color: var(--_error-50);
397
+ }
368
398
  }
369
399
  .variantOptionValues {
370
400
  height: 24px;
@@ -427,6 +457,14 @@
427
457
  }
428
458
  }
429
459
  }
460
+ .validation-info {
461
+ background-color: var(--_error-50);
462
+ color: var(--_error-700);
463
+ font-size: 14px;
464
+ text-align: center;
465
+ padding-block: 4px 6px;
466
+ margin-top: -1px;
467
+ }
430
468
  .em_pr_actions {
431
469
  display: flex;
432
470
  justify-content: end;
@@ -482,6 +520,7 @@
482
520
  gap: 8px;
483
521
  align-items: center;
484
522
  // padding: 8px 0;
523
+
485
524
  .em_opt_val {
486
525
  cursor: pointer;
487
526
  &:hover {
@@ -573,6 +612,10 @@
573
612
  font-weight: 600;
574
613
  font-size: 16px;
575
614
  color: #101828;
615
+ &:focus {
616
+ border: 1px solid var(--_primary-300);
617
+ outline: 2px solid var(--_primary-100);
618
+ }
576
619
  }
577
620
  .add_to_cart_btn_for_employee_bulk {
578
621
  height: 100%;
@@ -5,6 +5,7 @@
5
5
  align-items: center;
6
6
  height: 100%;
7
7
  width: 100%;
8
+ text-align: center;
8
9
 
9
10
  h3 {
10
11
  font-size: 16px;
@@ -82,3 +83,55 @@
82
83
  }
83
84
  }
84
85
  }
86
+
87
+ // loading styles
88
+ .loader_empty_template {
89
+ width: 82px;
90
+ height: 18px;
91
+ position: relative;
92
+ margin-bottom: 12px;
93
+ }
94
+ .loader_empty_template::before,
95
+ .loader_empty_template::after {
96
+ content: "";
97
+ position: absolute;
98
+ left: 50%;
99
+ transform: translate(-50%, 10%);
100
+ top: 0;
101
+ background: var(--_gray-500);
102
+ width: 10px;
103
+ height: 10px;
104
+ border-radius: 50%;
105
+ animation: jump_loader 0.5s ease-in infinite alternate;
106
+ }
107
+
108
+ .loader_empty_template::after {
109
+ background: #0000;
110
+ color: var(--_gray-400);
111
+ top: 100%;
112
+ box-shadow:
113
+ 32px -20px,
114
+ -32px -20px;
115
+ animation: split_loader 0.5s ease-out infinite alternate;
116
+ }
117
+
118
+ @keyframes split_loader {
119
+ 0% {
120
+ box-shadow:
121
+ 8px -20px,
122
+ -8px -20px;
123
+ }
124
+ 100% {
125
+ box-shadow:
126
+ 32px -20px,
127
+ -32px -20px;
128
+ }
129
+ }
130
+ @keyframes jump_loader {
131
+ 0% {
132
+ transform: translate(-50%, -100%);
133
+ }
134
+ 100% {
135
+ transform: translate(-50%, 10%);
136
+ }
137
+ }
@@ -5,6 +5,7 @@
5
5
  [data-div-type="element"] {
6
6
  &[data-element-type="languageMenu"],
7
7
  &[data-element-type="currencySelector"],
8
+ &[data-element-type="userGroupsSelector"],
8
9
  &[data-element-type="warehouseSelector"] {
9
10
  margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
10
11
 
package/dist/modal.scss CHANGED
@@ -338,8 +338,8 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
338
338
  flex-direction: column;
339
339
  // max-height: 100vh;
340
340
  // max-width: 1200px;
341
- max-height: calc(100vw - 24px);
342
- max-width: calc(100vw - 24px);
341
+ max-height: calc(100vw - 12px);
342
+ max-width: calc(100vw - 12px);
343
343
 
344
344
  .product-list {
345
345
  flex: 1;
@@ -475,6 +475,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
475
475
 
476
476
  .emp_info {
477
477
  display: flex;
478
+ padding-right: 16px;
478
479
  .emp_info_item {
479
480
  color: var(--_gray-600);
480
481
  font-size: 14px;
@@ -203,6 +203,10 @@ export interface FormComponentConfig {
203
203
  src?: string;
204
204
  type: FormComponentTypeEnum;
205
205
  w: number;
206
+ allowUpperCase?: boolean;
207
+ allowLowerCase?: boolean;
208
+ allowSpecialCharacters?: boolean;
209
+ allowNumbers?: boolean;
206
210
  }
207
211
  export declare enum ElementSettingEnum {
208
212
  LABEL = 1,
@@ -335,6 +335,7 @@ export declare const CMSElementsListEnum: {
335
335
  QUOTA_DETAILS: string;
336
336
  CURRENCY_SELECTOR: string;
337
337
  WAREHOUSE_SELECTOR: string;
338
+ USER_GROUP_SELECTOR: string;
338
339
  SHIPPING_PAYMENT: string;
339
340
  };
340
341
  export declare enum CMSResponsiveModeEnums {
@@ -123,7 +123,6 @@ export declare const getDefaultData: () => {
123
123
  showRequestQuoteButton: {
124
124
  value: boolean;
125
125
  propertyType: CMSElementEditTypes;
126
- property: string;
127
126
  };
128
127
  requestQuoteButtonLinkTo: {
129
128
  value: null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.3.58",
3
+ "version": "0.3.59",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {