@sc-360-v2/storefront-cms-library 0.5.60 → 0.5.62

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.
Files changed (132) hide show
  1. package/dist/add-existing-form.scss +5 -13
  2. package/dist/add-order.scss +236 -126
  3. package/dist/add-products-tab-details.scss +2097 -1048
  4. package/dist/add-products-tab.scss +1204 -666
  5. package/dist/allocation-header-quota-details.scss +407 -189
  6. package/dist/allocationDetails.scss +2155 -1671
  7. package/dist/allocations-quota-details.scss +323 -159
  8. package/dist/allocations.scss +793 -475
  9. package/dist/amount-estimator.scss +743 -405
  10. package/dist/badge.scss +18 -43
  11. package/dist/brand-basic-elements.scss +124 -76
  12. package/dist/brand.scss +55 -28
  13. package/dist/breadcrumbs.scss +718 -356
  14. package/dist/builder.js +1 -1
  15. package/dist/bulk-variant-picker.scss +2027 -1128
  16. package/dist/bundle.scss +1489 -841
  17. package/dist/bundleCategories.scss +301 -0
  18. package/dist/bundleDetails.scss +5072 -3774
  19. package/dist/button.scss +113 -78
  20. package/dist/buy-for-tab-container.scss +106 -77
  21. package/dist/buyForHeaders.scss +2976 -1722
  22. package/dist/cart-details.scss +1025 -485
  23. package/dist/cart-summary.scss +1234 -569
  24. package/dist/cart-wrapper.scss +79 -37
  25. package/dist/cart.scss +225 -117
  26. package/dist/cartAttributes.scss +647 -367
  27. package/dist/cartDropdownOverlay.scss +10 -1
  28. package/dist/category-groups-element.scss +108 -127
  29. package/dist/category-groups-product-grid.scss +147 -120
  30. package/dist/category-groups-product-image.scss +1457 -1162
  31. package/dist/category-groups-product-options.scss +685 -590
  32. package/dist/category-groups-product-price.scss +3244 -1966
  33. package/dist/category-groups-quota-details.scss +464 -210
  34. package/dist/category.scss +50 -26
  35. package/dist/checkout.scss +16 -24
  36. package/dist/confirm-modal.scss +2 -22
  37. package/dist/container.scss +54 -32
  38. package/dist/countdown.scss +443 -256
  39. package/dist/coupon.scss +16 -19
  40. package/dist/default-dropdown.scss +1 -12
  41. package/dist/embroider-template-1-v2.scss +172 -123
  42. package/dist/embroider-template-1.scss +104 -68
  43. package/dist/embroidery.scss +31 -30
  44. package/dist/employee-bulk-order.scss +142 -418
  45. package/dist/faq.scss +408 -228
  46. package/dist/filter-results.scss +265 -125
  47. package/dist/filters.scss +1682 -831
  48. package/dist/gallery-slider-temp.scss +811 -445
  49. package/dist/global-styles.scss +7 -23
  50. package/dist/grid.scss +33 -25
  51. package/dist/hotspot.scss +115 -68
  52. package/dist/image-temp.scss +38 -24
  53. package/dist/item-stock.scss +16 -9
  54. package/dist/kitDetails.scss +4301 -2721
  55. package/dist/kits.scss +19 -24
  56. package/dist/language-selector.scss +361 -211
  57. package/dist/last-x-orders.scss +174 -95
  58. package/dist/layouter-item.scss +106 -76
  59. package/dist/layouter-pro-item.scss +95 -89
  60. package/dist/layouter-pro.scss +92 -87
  61. package/dist/layouter.scss +264 -79
  62. package/dist/light-box-v2.scss +104 -89
  63. package/dist/login.scss +600 -311
  64. package/dist/map.scss +391 -228
  65. package/dist/marchandiserSets.scss +104 -95
  66. package/dist/mega-menu-container.scss +109 -96
  67. package/dist/mega-menu.scss +731 -624
  68. package/dist/menu-item.scss +2 -2
  69. package/dist/menu-v2.scss +619 -507
  70. package/dist/multi-select-dropdown.scss +3 -27
  71. package/dist/my-templates.scss +9 -38
  72. package/dist/option-bar.scss +375 -215
  73. package/dist/order-status.scss +1117 -643
  74. package/dist/overflow-module.scss +7 -6
  75. package/dist/past-orders.scss +149 -118
  76. package/dist/payment-methods.scss +30 -46
  77. package/dist/pickup-locations.scss +1118 -558
  78. package/dist/position-module.scss +17 -20
  79. package/dist/prefix-list.scss +10 -21
  80. package/dist/product-actions.scss +1778 -1228
  81. package/dist/product-basic-elements.scss +169 -108
  82. package/dist/product-highlights.scss +176 -107
  83. package/dist/product-image-bundles.scss +642 -337
  84. package/dist/product-inventory.scss +1357 -673
  85. package/dist/product-labels.scss +105 -84
  86. package/dist/product-options.scss +659 -316
  87. package/dist/product-price.scss +2562 -1284
  88. package/dist/product-promotions.scss +2830 -1388
  89. package/dist/product-sizechart.scss +905 -516
  90. package/dist/product.scss +61 -28
  91. package/dist/productDetails.scss +39 -19
  92. package/dist/profile.scss +451 -207
  93. package/dist/quantity-selector.scss +550 -313
  94. package/dist/quick-inventory-check.scss +174 -95
  95. package/dist/quick-links.scss +137 -56
  96. package/dist/quick-order-pad.scss +271 -218
  97. package/dist/quota-details.scss +282 -152
  98. package/dist/quotes.scss +121 -82
  99. package/dist/repeater-embla-controls.scss +26 -37
  100. package/dist/repeater-grid-toggle.scss +166 -156
  101. package/dist/repeater-item.scss +64 -41
  102. package/dist/repeater.scss +817 -554
  103. package/dist/request-for-quotes.scss +16 -66
  104. package/dist/responsive-behaviour.scss +1 -3
  105. package/dist/rfqs.scss +181 -118
  106. package/dist/scroll.scss +198 -90
  107. package/dist/search.scss +326 -179
  108. package/dist/section.scss +51 -27
  109. package/dist/shipping-payments.scss +58 -198
  110. package/dist/simple-list.scss +198 -61
  111. package/dist/social.scss +145 -80
  112. package/dist/stack.scss +34 -23
  113. package/dist/static-global.scss +26 -44
  114. package/dist/stockStatus.scss +19 -11
  115. package/dist/store-locations.scss +1105 -577
  116. package/dist/tab-container.scss +108 -81
  117. package/dist/table-common.scss +408 -217
  118. package/dist/table.scss +511 -269
  119. package/dist/text-temp.scss +7 -8
  120. package/dist/theme-classes.scss +13 -17
  121. package/dist/types/builder/tools/element-edit/cartSummary.d.ts +1051 -2
  122. package/dist/types/builder/tools/element-edit/layouter.d.ts +33 -1
  123. package/dist/types/builder/tools/element-edit/productOptions.d.ts +3 -1
  124. package/dist/types/builder/tools/element-edit/repeater.d.ts +45 -1
  125. package/dist/types/builder/tools/element-edit/scroll.d.ts +6 -0
  126. package/dist/types/builder/tools/element-edit/userElements.d.ts +38 -37
  127. package/dist/uom-selector.scss +949 -489
  128. package/dist/user-elements.scss +892 -574
  129. package/dist/variant-picker.scss +2555 -1281
  130. package/dist/volume-pricing.scss +1037 -541
  131. package/dist/widget.scss +1 -0
  132. package/package.json +1 -1
@@ -8,7 +8,6 @@ $fullViewOn: '[data-view-state="full"]';
8
8
  $isFlexboxElementChild: ".flx > .wrapper > *";
9
9
 
10
10
  [data-div-type="element"] {
11
-
12
11
  &[data-element-type="image"],
13
12
  &[data-element-type="brandImage"],
14
13
  &[data-element-type="categoryImage"],
@@ -16,7 +15,6 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
16
15
  &:has(a) {
17
16
  cursor: pointer;
18
17
  }
19
-
20
18
  // width: var(--_lt-wh);
21
19
  // height: var(--_lt-ht);
22
20
  // margin: var(--_lt-mn);
@@ -33,37 +31,38 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
33
31
  // overflow: clip;
34
32
  overflow: visible;
35
33
 
36
- &>.wrapper {
34
+ & > .wrapper {
37
35
  visibility: hidden;
38
36
  opacity: 0;
39
37
  }
40
38
  }
41
-
42
39
  // width: prepareMediaVariable(--_ctm-lt-wh);
43
40
  &:not(#{$resizerOn}, #{$dndOn}, #{$fullViewOn}) {
44
41
  height: prepareMediaVariable(--_ctm-lt-ht) !important;
45
42
  }
46
-
47
43
  // &:not([data-element-type="image"]) {
48
44
  // }
49
45
 
50
- --_aspect-ratio: calc(1 * (var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) / var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))));
46
+ --_aspect-ratio: calc(
47
+ 1 *
48
+ (
49
+ var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
50
+ var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
51
+ )
52
+ );
51
53
 
52
54
  &#{$fullViewOn} {
53
55
  &:not(#{$isFlexboxElementChild}) {
54
56
  aspect-ratio: 1/0.01;
55
57
  }
56
-
57
- &>.wrapper {
58
+ & > .wrapper {
58
59
  // The element trades its fixed height for an aspect-ratio here, so the
59
60
  // wrapper cannot keep tracking --_ctm-lt-ht.
60
61
  height: 100%;
61
-
62
- &>div {
62
+ & > div {
63
63
  height: 100%;
64
64
  }
65
65
  }
66
-
67
66
  img {
68
67
  height: 100%;
69
68
  object-fit: cover;
@@ -73,7 +72,6 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
73
72
  &[data-cms-element-resizer="true"] {
74
73
  // height: var(--_ctm-lt-ht);
75
74
  width: auto;
76
-
77
75
  img {
78
76
  // width: 100%;
79
77
  height: 100%;
@@ -81,25 +79,40 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
81
79
  }
82
80
 
83
81
  :is(:not([data-iframe-body="true"] *)) {
84
- &>.wrapper {
82
+ & > .wrapper {
85
83
  overflow: clip;
86
84
  }
87
85
  }
88
86
 
89
- &>.wrapper {
87
+ & > .wrapper {
90
88
  width: 100%;
91
89
  // Padding, border and shadow below are painted on this box, so it has to
92
90
  // match the element instead of sizing to the image. Without a definite
93
91
  // border-box height the border lands outside the element's fixed height
94
92
  // and the top/bottom edges get clipped; without border-box the width grows
95
93
  // past the element and the outline sits wider than the image.
96
- // Tracks the var rather than 100% because the element drops its own height
97
- // while resizing, dragging or in full view.
98
- height: prepareMediaVariable(--_ctm-lt-ht);
94
+ // 100% rather than --_ctm-lt-ht: while resizing, dragging or in full view the
95
+ // element drops its own height, and a wrapper still pinned to the layout
96
+ // height kept a short box around a taller picture, so the image spilled over
97
+ // whatever sat below it on the canvas. Following the element keeps this box
98
+ // definite whenever the element has a height, and lets the two grow together
99
+ // when it does not.
100
+ height: 100%;
99
101
  box-sizing: border-box;
100
102
  // overflow: clip;
101
103
  rotate: calc(var(--_ctm-dn-re) * 1deg);
102
104
 
105
+ // FlexAnchorTag renders an <a> and CategoryImage adds a click <div> between
106
+ // this wrapper and the image, both height:auto by default. That left the
107
+ // image's own `height: 100%` with nothing definite to resolve against, so it
108
+ // fell back to the picture's natural size and escaped the box — 167px of logo
109
+ // in a 30px brand image. `:has` keeps this off the builder resizer, which
110
+ // carries no image.
111
+ :is(a, div):has(.image-element) {
112
+ display: block;
113
+ height: 100%;
114
+ }
115
+
103
116
  &:is(:not(:has([class*="crop__main"]) *)) {
104
117
  padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
105
118
  background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
@@ -107,8 +120,13 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
107
120
  border-style: var(--_ctm-mob-dn-br-se, var(--_ctm-tab-dn-br-se, var(--_ctm-dn-br-se)));
108
121
  border-width: var(--_ctm-mob-dn-br-wh, var(--_ctm-tab-dn-br-wh, var(--_ctm-dn-br-wh)));
109
122
  border-radius: var(--_ctm-mob-dn-br-rs, var(--_ctm-tab-dn-br-rs, var(--_ctm-dn-br-rs)));
110
- box-shadow: var(--_show-shadow,
111
- var(--_ctm-mob-dn-sw-ae, var(--_ctm-tab-dn-sw-ae, var(--_ctm-dn-sw-ae))) var(--_ctm-mob-dn-sw-br, var(--_ctm-tab-dn-sw-br, var(--_ctm-dn-sw-br))) var(--_ctm-mob-dn-sw-sd, var(--_ctm-tab-dn-sw-sd, var(--_ctm-dn-sw-sd))) var(--_ctm-mob-dn-sw-cr, var(--_ctm-tab-dn-sw-cr, var(--_ctm-dn-sw-cr))));
123
+ box-shadow: var(
124
+ --_show-shadow,
125
+ var(--_ctm-mob-dn-sw-ae, var(--_ctm-tab-dn-sw-ae, var(--_ctm-dn-sw-ae)))
126
+ var(--_ctm-mob-dn-sw-br, var(--_ctm-tab-dn-sw-br, var(--_ctm-dn-sw-br)))
127
+ var(--_ctm-mob-dn-sw-sd, var(--_ctm-tab-dn-sw-sd, var(--_ctm-dn-sw-sd)))
128
+ var(--_ctm-mob-dn-sw-cr, var(--_ctm-tab-dn-sw-cr, var(--_ctm-dn-sw-cr)))
129
+ );
112
130
  // &[data-show-shadow] {
113
131
  // }
114
132
 
@@ -118,11 +136,9 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
118
136
  overflow: hidden;
119
137
  }
120
138
  }
121
-
122
139
  &[data-show-shadow="false"] {
123
140
  --_show-shadow: none;
124
141
  }
125
-
126
142
  // .text-element {
127
143
  // // background: #6d96e4;
128
144
  // // padding: 10px;
@@ -171,7 +187,6 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
171
187
  &[data-on-hover="Zoom Out"] {
172
188
  transform: scale(0.9998);
173
189
  }
174
-
175
190
  &[data-on-hover="Zoom In"] {
176
191
  transform: scale(1.08);
177
192
  }
@@ -181,9 +196,8 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
181
196
  .image__fallback__contain {
182
197
  object-fit: contain !important;
183
198
  }
184
-
185
199
  // .image-element:hover {
186
200
  // padding: 30px;
187
201
  // }
188
202
  }
189
- }
203
+ }
@@ -4,15 +4,22 @@
4
4
 
5
5
  [data-div-type="element"] {
6
6
  &[data-element-type="itemStock"] {
7
- width: var(--_sf-el-wh-st-mx,
8
- calc(1% * var(--_ctm-mob-ele-nw-wh-vl,
9
- var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))))));
7
+ width: var(
8
+ --_sf-el-wh-st-mx,
9
+ calc(
10
+ 1% *
11
+ var(
12
+ --_ctm-mob-ele-nw-wh-vl,
13
+ var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh)))
14
+ )
15
+ )
16
+ );
10
17
  height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
11
18
  margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
12
19
  // aspect-ratio: 1 / var(--_sf-aspect-ratio);
13
20
  position: relative;
14
21
 
15
- &>.wrapper {
22
+ & > .wrapper {
16
23
  display: flex;
17
24
  align-items: center;
18
25
  justify-content: center;
@@ -25,10 +32,8 @@
25
32
  align-items: center;
26
33
  cursor: pointer;
27
34
  gap: 8px;
28
-
29
35
  .item__stock__heading {
30
36
  position: relative;
31
-
32
37
  .item__stock__text {
33
38
  font-family: prepareMediaVariable(--_ctm-dn-im-sk-tt-ft-fy);
34
39
  text-transform: prepareMediaVariable(--_ctm-dn-im-sk-tt-tt-tm);
@@ -43,7 +48,6 @@
43
48
  letter-spacing: prepareMediaVariable(--_ctm-dn-im-sk-tt-lr-sg);
44
49
  line-height: prepareMediaVariable(--_ctm-dn-im-sk-tt-le-ht);
45
50
  }
46
-
47
51
  .stock_message_conatainer {
48
52
  display: flex;
49
53
  padding: 2px 8px 2px 6px;
@@ -55,7 +59,10 @@
55
59
  border-color: prepareMediaVariable(--_ctm-dn-im-sk-tt-br-cr);
56
60
  border-style: prepareMediaVariable(--_ctm-dn-im-sk-tt-br-se);
57
61
  border-radius: prepareMediaVariable(--_ctm-dn-im-sk-tt-br-rs);
58
- box-shadow: prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-ae) prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-br) prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-sd) prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-cr);
62
+ box-shadow: prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-ae)
63
+ prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-br)
64
+ prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-sd)
65
+ prepareMediaVariable(--_ctm-dn-im-sk-tt-sw-cr);
59
66
 
60
67
  .stock_messages {
61
68
  font-family: prepareMediaVariable(--_ctm-dn-im-sk-tt-ft-fy);
@@ -83,4 +90,4 @@
83
90
  --_show-shadow: none;
84
91
  }
85
92
  }
86
- }
93
+ }