@sc-360-v2/storefront-cms-library 0.3.36 → 0.3.37

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.
@@ -64,7 +64,7 @@ $button-padding: 6px 12px;
64
64
  display: flex;
65
65
  align-items: center;
66
66
  justify-content: space-between;
67
- padding: 8px 12px 10px 12px;
67
+ padding: 2px 12px 10px 12px;
68
68
  border-bottom: 1px solid #eee;
69
69
 
70
70
  span {
@@ -2,6 +2,10 @@
2
2
  display: grid;
3
3
  gap: 2px;
4
4
  width: max-content;
5
+ &:focus-within {
6
+ border: 1px solid var(--_primary-300);
7
+ outline: 2px solid var(--_primary-50);
8
+ }
5
9
 
6
10
  .dropdown-disabled {
7
11
  opacity: 0.6;
@@ -19,26 +23,9 @@
19
23
  display: flex;
20
24
  justify-content: space-between;
21
25
  padding: 8px 12px;
22
- // border: 1px solid #ccc;
23
- // border-radius: 4px;
24
- border-style: var(
25
- --_ctm-mob-dn-pt-as-is-br-se,
26
- var(--_ctm-tab-dn-pt-as-is-br-se, var(--_ctm-dn-pt-as-is-br-se))
27
- );
28
- border-width: var(
29
- --_ctm-mob-dn-pt-as-is-br-wh,
30
- var(--_ctm-tab-dn-pt-as-is-br-wh, var(--_ctm-dn-pt-as-is-br-wh))
31
- );
32
- // border: ;
33
- border-radius: var(
34
- --_ctm-mob-dn-pt-as-is-br-rs,
35
- var(--_ctm-tab-dn-pt-as-is-br-rs, var(--_ctm-dn-pt-as-is-br-rs))
36
- );
37
- border-color: var(
38
- --_ctm-mob-dn-pt-as-is-br-cr,
39
- var(--_ctm-tab-dn-pt-as-is-br-cr, var(--_ctm-dn-pt-as-is-br-cr))
40
- );
41
- width: 240px;
26
+ border: 1px solid var(--_gray-300);
27
+ border-radius: 6px;
28
+ width: 100%;
42
29
  align-items: center;
43
30
  .dropdown-chips {
44
31
  display: flex;
@@ -115,11 +102,11 @@
115
102
  z-index: 10;
116
103
  min-width: 240px;
117
104
  max-height: 300px;
105
+ padding: 4px;
118
106
 
119
107
  .dropdown-opt {
120
108
  font-size: 14px;
121
109
  cursor: pointer;
122
- height: 40px;
123
110
 
124
111
  &.no-result {
125
112
  color: #aaa;
@@ -135,6 +122,7 @@
135
122
  gap: 8px;
136
123
  height: auto !important;
137
124
  max-height: 52px;
125
+ border-radius: 4px;
138
126
  &:hover {
139
127
  background-color: #f4f4f4;
140
128
  }
@@ -160,8 +148,9 @@
160
148
  }
161
149
  }
162
150
  .selected {
163
- background-color: #e6f0ff;
151
+ background-color: var(--_primary-25);
164
152
  font-weight: bold;
153
+ color: var(--_primary-500);
165
154
  }
166
155
  }
167
156
  .dropdown-group-li {
@@ -72,9 +72,25 @@
72
72
  font-weight: 600;
73
73
  font-size: 14px;
74
74
  text-align: center;
75
- height: 36px;
76
- display: grid;
77
- align-items: anchor-center;
75
+ height: 40px;
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: right;
79
+ padding: 0 12px;
80
+ .employee_product_actions_sec {
81
+ width: 50%;
82
+ display: flex;
83
+ justify-content: right;
84
+ gap: 12px;
85
+ .employee_product_action {
86
+ padding: 8px;
87
+ color: #667085;
88
+ }
89
+
90
+ .employee_product_action_save {
91
+ color: #243dc6;
92
+ }
93
+ }
78
94
  }
79
95
  .employee-content-section {
80
96
  display: flex;
@@ -246,12 +262,49 @@
246
262
  border-top: 0;
247
263
  .em_product-data {
248
264
  width: 100%;
249
- // height: 177px;
250
265
  border-bottom: 1px solid #d0d5dd;
251
266
  .em_product-info {
252
267
  height: 88px;
253
268
  border-bottom: 1px solid #d0d5dd;
254
269
  }
270
+ .selecte_variants_for_cart {
271
+ height: 68px;
272
+ overflow: auto;
273
+ cursor: pointer;
274
+ .variantOptionValues {
275
+ height: 24px;
276
+ color: #475467;
277
+ font-size: 14px;
278
+ padding: 0 8px;
279
+ margin-bottom: 1px;
280
+ display: flex;
281
+ justify-content: space-between;
282
+ align-items: center;
283
+ &:hover {
284
+ background: #e6f0ff;
285
+ .variantOptionValues_acttions {
286
+ opacity: 1;
287
+ }
288
+ }
289
+ .variantOptionValues_text {
290
+ width: calc(100% - 40px);
291
+ padding-right: 4px;
292
+ }
293
+ .variantOptionValues_acttions {
294
+ display: flex;
295
+ gap: 8px;
296
+ align-items: center;
297
+ width: 40px;
298
+ opacity: 0;
299
+ .svg_icon {
300
+ display: flex;
301
+ }
302
+ }
303
+ }
304
+ .active_vr {
305
+ background: #e6f0ff;
306
+ }
307
+ }
255
308
  .em_product-variant,
256
309
  .em_product-info {
257
310
  // height: 50%;
@@ -285,7 +338,7 @@
285
338
  }
286
339
  }
287
340
  .product-option-details {
288
- height: calc(100% - 204px);
341
+ height: calc(100% - 214px);
289
342
  width: 100%;
290
343
  overflow: auto;
291
344
  .em_p_variant_options {
@@ -309,6 +362,8 @@
309
362
  }
310
363
  .em_opt_val.selected {
311
364
  border: 1px solid #243dc6;
365
+ color: #243dc6;
366
+ font-weight: 600;
312
367
  }
313
368
  .em_opt_val.not-avl {
314
369
  position: relative;
@@ -360,50 +415,62 @@
360
415
  }
361
416
  }
362
417
  .product-qty-section {
363
- height: 46px;
364
- position: relative;
418
+ height: 56.74px;
419
+ display: flex;
420
+ gap: 8px;
421
+ padding: 8px;
422
+ border-top: 1px solid #dde0e6;
365
423
  input {
366
424
  height: 100%;
367
- width: 100%;
425
+ width: 50%;
368
426
  border: 1px solid #d0d5dd;
369
- /* border-radius: 4px; */
370
- border-left: 0;
371
- border-right: 0;
372
- padding: 0 64px;
427
+ border-radius: 4px;
373
428
  text-align: center;
429
+ font-weight: 600;
430
+ font-size: 16px;
431
+ color: #101828;
374
432
  }
375
- .qty-action {
376
- position: absolute;
377
- top: 0;
433
+ .add_to_cart_btn_for_employee_bulk {
378
434
  height: 100%;
379
- width: 64px;
380
- display: grid;
381
- // align-items: anchor-center;
382
- // text-align: center;
383
- background: #e6f0ff;
384
- cursor: pointer;
385
- &:hover {
386
- background: #c3dbff;
387
- }
388
-
389
- .svg_icon {
390
- display: flex;
391
- align-items: center;
392
- justify-self: center;
393
- cursor: pointer;
394
- }
395
- }
396
- .qty-action.decrease {
397
- left: 0;
398
- }
399
- .qty-action.increase {
400
- right: 1px;
401
- }
402
- .qty_action_disabled {
403
- pointer-events: none;
404
- opacity: 0.8;
405
- cursor: default;
435
+ width: 50%;
436
+ background: #243dc6;
437
+ border-radius: 4px;
438
+ color: #fff;
439
+ font-weight: 600;
440
+ font-size: 16px;
406
441
  }
442
+ // .qty-action {
443
+ // position: absolute;
444
+ // top: 0;
445
+ // height: 100%;
446
+ // width: 64px;
447
+ // display: grid;
448
+ // // align-items: anchor-center;
449
+ // // text-align: center;
450
+ // background: #e6f0ff;
451
+ // cursor: pointer;
452
+ // &:hover {
453
+ // background: #c3dbff;
454
+ // }
455
+
456
+ // .svg_icon {
457
+ // display: flex;
458
+ // align-items: center;
459
+ // justify-self: center;
460
+ // cursor: pointer;
461
+ // }
462
+ // }
463
+ // .qty-action.decrease {
464
+ // left: 0;
465
+ // }
466
+ // .qty-action.increase {
467
+ // right: 1px;
468
+ // }
469
+ // .qty_action_disabled {
470
+ // pointer-events: none;
471
+ // opacity: 0.8;
472
+ // cursor: default;
473
+ // }
407
474
  }
408
475
  .invalid_qty {
409
476
  border: #f51605 1px solid !important;
@@ -451,6 +518,15 @@
451
518
  position: absolute;
452
519
  right: -8px;
453
520
  }
521
+
522
+ .single_checkout_sec_opt {
523
+ display: flex;
524
+ gap: 8px;
525
+ }
526
+
527
+ .disabled {
528
+ opacity: 0.4;
529
+ }
454
530
  }
455
531
  .action_item {
456
532
  cursor: pointer;
@@ -1,5 +1,6 @@
1
1
  export interface ThemeSettingsInterface {
2
2
  layout: string | any;
3
+ loaders?: any;
3
4
  colors: string | any;
4
5
  typography: string | any;
5
6
  buttons: string | any;
package/dist/website.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["storefront-cms-library"]=e():t["storefront-cms-library"]=e()}(this,(()=>(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{dataConnectorContants:()=>n,ssrFunctions:()=>r});var r={};t.r(r),t.d(r,{createQueryStringForCollection:()=>u,parseThemeSettings:()=>E});var n={};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){return Object.entries(t).filter((function(t){var e=a(t,2);return null!=(e[0],e[1])})).map((function(t){var e=a(t,2),r=e[0],n=e[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))})).join("&")}t.r(n),t.d(n,{dataConnectorApisData:()=>S});var l,c,f,E=function(t){var e=Object.assign({},t);return["layout","colors","typography","buttons","animations"].forEach((function(t){if("string"==typeof e[t]&&e[t].length>0)try{e[t]=JSON.parse(e[t])}catch(t){}else"object"===o(e[t])&&null!==e[t]&&(e[t]=JSON.stringify(e[t]))})),e};function y(t,e,r){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(l||(l={})),function(t){t.PRODUST="PRODUST",t.CATEGORIES="CATEGORIES",t.BRANDS="BRANDS",t.PRODUCT_BY_ID="PRODUCT_BY_ID",t.CATEGORY_BY_ID="CATegory_BY_ID",t.BRAND_BY_ID="BRAND_BY_ID",t.SUB_CATEGORY="SUB_CATEGORY",t.MARCHANDISER_SETS="MARCHANDISER_SETS",t.BUNDLES="BUNDLES",t.BUNLES_BY_ID="BUNLES_BY_ID",t.BUNDLE_BY_TYPE="BUNDLE_BY_TYPE",t.PRODUCT_BUNDLE_DETAILS="PRODUCT_BUNDLE_DETAILS",t.CATEGORY_BUNDLE_DETAILS="CATEGORY_BUNDLE_DETAILS"}(c||(c={}));var S=(y(y(y(y(y(y(y(y(y(y(f={},c.PRODUST,{url:"/search/product/getall",method:l.POST}),c.PRODUCT_BY_ID,{url:"/api/pd/get",method:l.GET}),c.CATEGORIES,{url:"/search/category/getall",method:l.POST}),c.CATEGORY_BY_ID,{url:"/search/category/getbyid",method:l.GET}),c.BRANDS,{url:"/search/brand/getall",method:l.POST}),c.BRAND_BY_ID,{url:"/search/brand/getbyid",method:l.GET}),c.SUB_CATEGORY,{url:"/search/category/getsubcategories",method:l.GET}),c.MARCHANDISER_SETS,{url:"/ms/get",method:l.GET}),c.BUNDLES,{url:"/api/bnp/get-all",method:l.GET}),c.BUNLES_BY_ID,{url:"/api/bnp/get-product-bundle",method:l.GET}),y(y(y(f,c.BUNDLE_BY_TYPE,{url:"/api/bnp/get-bundles",method:l.POST}),c.PRODUCT_BUNDLE_DETAILS,{url:"/api/bnp/get-product-bundle",method:l.GET}),c.CATEGORY_BUNDLE_DETAILS,{url:"/api/bnp/get-category-bundle",method:l.GET}));return e})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["storefront-cms-library"]=e():t["storefront-cms-library"]=e()}(this,(()=>(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{dataConnectorContants:()=>n,ssrFunctions:()=>r});var r={};t.r(r),t.d(r,{createQueryStringForCollection:()=>u,parseThemeSettings:()=>E});var n={};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){return Object.entries(t).filter((function(t){var e=i(t,2);return null!=(e[0],e[1])})).map((function(t){var e=i(t,2),r=e[0],n=e[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))})).join("&")}t.r(n),t.d(n,{dataConnectorApisData:()=>s});var l,c,f,E=function(t){var e=Object.assign({},t);return["layout","colors","typography","buttons","animations","loaders"].forEach((function(t){if("string"==typeof e[t]&&e[t].length>0)try{e[t]=JSON.parse(e[t])}catch(t){}else"object"===o(e[t])&&null!==e[t]&&(e[t]=JSON.stringify(e[t]))})),e};function y(t,e,r){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(l||(l={})),function(t){t.PRODUST="PRODUST",t.CATEGORIES="CATEGORIES",t.BRANDS="BRANDS",t.PRODUCT_BY_ID="PRODUCT_BY_ID",t.CATEGORY_BY_ID="CATegory_BY_ID",t.BRAND_BY_ID="BRAND_BY_ID",t.SUB_CATEGORY="SUB_CATEGORY",t.MARCHANDISER_SETS="MARCHANDISER_SETS",t.BUNDLES="BUNDLES",t.BUNLES_BY_ID="BUNLES_BY_ID",t.BUNDLE_BY_TYPE="BUNDLE_BY_TYPE",t.PRODUCT_BUNDLE_DETAILS="PRODUCT_BUNDLE_DETAILS",t.CATEGORY_BUNDLE_DETAILS="CATEGORY_BUNDLE_DETAILS"}(c||(c={}));var s=(y(y(y(y(y(y(y(y(y(y(f={},c.PRODUST,{url:"/search/product/getall",method:l.POST}),c.PRODUCT_BY_ID,{url:"/api/pd/get",method:l.GET}),c.CATEGORIES,{url:"/search/category/getall",method:l.POST}),c.CATEGORY_BY_ID,{url:"/search/category/getbyid",method:l.GET}),c.BRANDS,{url:"/search/brand/getall",method:l.POST}),c.BRAND_BY_ID,{url:"/search/brand/getbyid",method:l.GET}),c.SUB_CATEGORY,{url:"/search/category/getsubcategories",method:l.GET}),c.MARCHANDISER_SETS,{url:"/ms/get",method:l.GET}),c.BUNDLES,{url:"/api/bnp/get-all",method:l.GET}),c.BUNLES_BY_ID,{url:"/api/bnp/get-product-bundle",method:l.GET}),y(y(y(f,c.BUNDLE_BY_TYPE,{url:"/api/bnp/get-bundles",method:l.POST}),c.PRODUCT_BUNDLE_DETAILS,{url:"/api/bnp/get-product-bundle",method:l.GET}),c.CATEGORY_BUNDLE_DETAILS,{url:"/api/bnp/get-category-bundle",method:l.GET}));return e})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.3.36",
3
+ "version": "0.3.37",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {