@sc-360-v2/storefront-cms-library 0.3.95 → 0.3.97

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.
package/dist/tab-v2.scss CHANGED
@@ -1,5 +1,6 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
+ @use "./functions.scss" as *;
3
4
  $activeElementSelector: "[data-has-clicked='true']";
4
5
  $root: "flex__tbs";
5
6
  $sfKey: "--_flex-tbs-";
@@ -141,7 +142,10 @@ $tabBodyWrapper: #{$tabBody}__wrapper;
141
142
  --_ctm-mob-tbs-lt-tb-sg,
142
143
  var(--_ctm-tab-tbs-lt-tb-sg, var(--_ctm-tbs-lt-tb-sg))
143
144
  );
144
- width: 100%;
145
+ // width: 100%;
146
+ width: prepareMediaVariable(--_ctm-tbs-dn-tb-cr-cr-wh, 100%);
147
+ min-height: prepareMediaVariable(--_ctm-tbs-dn-tb-cr-cr-mn-ht, auto);
148
+ padding: prepareMediaVariable(--_ctm-tbs-dn-tb-cr-pg, 0px);
145
149
  display: var(--_d-flex);
146
150
  flex-direction: var(#{$sfKey}fd-header, row);
147
151
  &:is(.vtl *) {
@@ -445,7 +449,8 @@ $tabBodyWrapper: #{$tabBody}__wrapper;
445
449
  }
446
450
  // width: max-content;
447
451
 
448
- font-family: var(
452
+ font-family:
453
+ var(
449
454
  --_sf-tbs-sd-ft-fy,
450
455
  var(
451
456
  --_sf-tbs-hr-ft-fy,
@@ -1,4 +1,4 @@
1
- import { CMSElementEditTypes } from "../../enums";
1
+ import { CMSCSSUnitTypesEnums, CMSElementEditTypes } from "../../enums";
2
2
  import { CMSIBCommonInterface } from "../../interfaces/global";
3
3
  declare enum SelectorKeysEnum {
4
4
  LAYOUT = "layout",
@@ -101,6 +101,19 @@ export declare const getDefaultData: () => {
101
101
  saturation: import("../../interfaces/global").CMSIBSizeInterface;
102
102
  highlights: import("../../interfaces/global").CMSIBSizeInterface;
103
103
  shadows: import("../../interfaces/global").CMSIBSizeInterface;
104
+ containerWidth: {
105
+ value: string;
106
+ property: string;
107
+ unit: CMSCSSUnitTypesEnums;
108
+ propertyType: CMSElementEditTypes;
109
+ };
110
+ containerMinHeight: {
111
+ value: string;
112
+ property: string;
113
+ unit: CMSCSSUnitTypesEnums;
114
+ propertyType: CMSElementEditTypes;
115
+ };
116
+ padding: any;
104
117
  selectorKey: SelectorKeysEnum;
105
118
  };
106
119
  tabs: {
@@ -133,6 +146,19 @@ export declare const getDefaultData: () => {
133
146
  saturation: import("../../interfaces/global").CMSIBSizeInterface;
134
147
  highlights: import("../../interfaces/global").CMSIBSizeInterface;
135
148
  shadows: import("../../interfaces/global").CMSIBSizeInterface;
149
+ containerWidth: {
150
+ value: string;
151
+ property: string;
152
+ unit: CMSCSSUnitTypesEnums;
153
+ propertyType: CMSElementEditTypes;
154
+ };
155
+ containerMinHeight: {
156
+ value: string;
157
+ property: string;
158
+ unit: CMSCSSUnitTypesEnums;
159
+ propertyType: CMSElementEditTypes;
160
+ };
161
+ padding: any;
136
162
  selectorKey: SelectorKeysEnum;
137
163
  };
138
164
  hoverState: {
@@ -163,6 +189,19 @@ export declare const getDefaultData: () => {
163
189
  saturation: import("../../interfaces/global").CMSIBSizeInterface;
164
190
  highlights: import("../../interfaces/global").CMSIBSizeInterface;
165
191
  shadows: import("../../interfaces/global").CMSIBSizeInterface;
192
+ containerWidth: {
193
+ value: string;
194
+ property: string;
195
+ unit: CMSCSSUnitTypesEnums;
196
+ propertyType: CMSElementEditTypes;
197
+ };
198
+ containerMinHeight: {
199
+ value: string;
200
+ property: string;
201
+ unit: CMSCSSUnitTypesEnums;
202
+ propertyType: CMSElementEditTypes;
203
+ };
204
+ padding: any;
166
205
  selectorKey: SelectorKeysEnum;
167
206
  };
168
207
  selectedState: {
@@ -193,6 +232,19 @@ export declare const getDefaultData: () => {
193
232
  saturation: import("../../interfaces/global").CMSIBSizeInterface;
194
233
  highlights: import("../../interfaces/global").CMSIBSizeInterface;
195
234
  shadows: import("../../interfaces/global").CMSIBSizeInterface;
235
+ containerWidth: {
236
+ value: string;
237
+ property: string;
238
+ unit: CMSCSSUnitTypesEnums;
239
+ propertyType: CMSElementEditTypes;
240
+ };
241
+ containerMinHeight: {
242
+ value: string;
243
+ property: string;
244
+ unit: CMSCSSUnitTypesEnums;
245
+ propertyType: CMSElementEditTypes;
246
+ };
247
+ padding: any;
196
248
  selectorKey: SelectorKeysEnum;
197
249
  };
198
250
  };
@@ -1783,22 +1783,31 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1783
1783
  }
1784
1784
 
1785
1785
  .popover-box {
1786
+ // position: absolute;
1787
+ // top: calc(100% + 10px);
1788
+ // right: 0;
1789
+ // background: white;
1790
+ // padding: 12px 16px;
1791
+ // box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
1792
+ // border-radius: 8px;
1793
+ // min-width: 150px;
1794
+ // z-index: 10;
1786
1795
  position: absolute;
1787
- top: calc(100% + 10px);
1788
- right: 0;
1789
- background: white;
1790
- padding: 12px 16px;
1791
- box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
1792
- border-radius: 8px;
1796
+ // border: 1px solid #ccc;
1793
1797
  min-width: 150px;
1794
- z-index: 10;
1798
+ max-width: 200px;
1799
+ z-index: 1000;
1800
+ left: 160%;
1801
+ top: 0;
1802
+ padding: 8px;
1803
+ border-radius: 4px;
1795
1804
  }
1796
1805
 
1797
1806
  .popover-box {
1798
1807
  display: flex;
1799
1808
  flex-direction: column;
1800
1809
 
1801
- width: 100%;
1810
+ // width: 100%;
1802
1811
  gap: prepareMediaVariable(--_ctm-dn-pr-se-im-gp);
1803
1812
  background-color: var(
1804
1813
  --_ctm-mob-dn-pr-se-bd-cr,
@@ -1859,16 +1868,20 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1859
1868
 
1860
1869
  .popover-arrow {
1861
1870
  position: absolute;
1862
- top: -6px;
1863
- right: 10px;
1871
+ top: 8px;
1872
+ left: -5px;
1864
1873
  width: 12px;
1865
1874
  height: 12px;
1866
1875
  background-color: var(
1867
1876
  --_ctm-mob-dn-pr-se-bd-cr,
1868
1877
  var(--_ctm-tab-dn-pr-se-bd-cr, var(--_ctm-dn-pr-se-bd-cr))
1869
1878
  );
1870
- transform: rotate(45deg);
1871
- box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.05);
1879
+ transform: rotate(-45deg);
1880
+ box-shadow: -1px -1px 0px
1881
+ var(
1882
+ --_ctm-mob-dn-pr-se-br-cr,
1883
+ var(--_ctm-tab-dn-pr-se-br-cr, var(--_ctm-dn-pr-se-br-cr))
1884
+ );
1872
1885
  }
1873
1886
 
1874
1887
  .popover_item {
package/dist/widget.scss CHANGED
@@ -138,3 +138,5 @@
138
138
  @use "./coupon.scss";
139
139
  @use "./order-processing.scss";
140
140
  @use "./embroidery.scss";
141
+ @use "./error-templates.scss";
142
+ @use "./wishlist-overlay.scss";
@@ -0,0 +1,48 @@
1
+ .wishlist-container {
2
+ position: relative;
3
+ display: inline-block;
4
+
5
+ .wishlist-btn {
6
+ background: #ff4081;
7
+ color: #fff;
8
+ border: none;
9
+ padding: 8px 14px;
10
+ border-radius: 6px;
11
+ cursor: pointer;
12
+ font-size: 14px;
13
+
14
+ &:hover {
15
+ background: #e73370;
16
+ }
17
+ }
18
+
19
+ .wishlist-overlay {
20
+ position: absolute;
21
+ min-width: 220px;
22
+ background: #fff;
23
+ border: 1px solid #ddd;
24
+ border-radius: 8px;
25
+ padding: 12px;
26
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
27
+ z-index: 1000;
28
+
29
+ h4 {
30
+ margin: 0 0 10px;
31
+ font-size: 16px;
32
+ border-bottom: 1px solid #eee;
33
+ padding-bottom: 5px;
34
+ }
35
+
36
+ ul {
37
+ margin: 0;
38
+ padding: 0;
39
+ list-style: none;
40
+
41
+ li {
42
+ padding: 6px 0;
43
+ font-size: 14px;
44
+ color: #333;
45
+ }
46
+ }
47
+ }
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.3.95",
3
+ "version": "0.3.97",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {