@sc-360-v2/storefront-cms-library 0.3.68 → 0.3.69

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,82 +3,296 @@
3
3
 
4
4
  [data-div-type="element"] {
5
5
  &[data-element-type="myTemplates"] {
6
- // width: var(--_lt-wh);
7
- // height: var(--_lt-ht);
8
- // margin: var(--_lt-mn);
9
- // padding: var(--_lt-pg);
10
- // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
11
- // width: 50%;
12
- // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
13
- width: var(
14
- --_sf-el-wh-st-mx,
15
- calc(
16
- 1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
17
- )
18
- );
19
- margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
20
-
21
- // height: clamp(var(--_ctm-lt-ht, 50px), 100px, auto) !important;
22
- // height: var(--_ctm-lt-ht);
23
- // height: ;
24
- // height: auto;
25
- // aspect-ratio: 1 / var(--_sf-aspect-ratio);
26
- // --_aspect-ratio: calc(
27
- // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
28
- // );
29
-
30
- // &[data-element-sub-child="true"] {
31
- // // width: max(var(--_sf-nw-wh, var(--_tst-lt-wh)));
32
- // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
33
- // }
6
+ width: 100% !important;
34
7
 
35
8
  & > .wrapper {
36
- // width: 100%;
37
- // height: 100%;
9
+ .template_wrapper {
10
+ width: 100%;
11
+ .template_section {
12
+ width: 100%;
13
+ display: flex;
14
+ justify-content: space-between;
15
+ align-items: center;
16
+ margin-bottom: 24px;
17
+ h2 {
18
+ font-size: 24px;
19
+ }
20
+ .back_to_cart {
21
+ color: var(--_primary-400);
22
+ &:hover {
23
+ text-decoration: underline;
24
+ }
25
+ }
26
+ }
27
+ .template_body {
28
+ display: flex;
29
+ gap: 60px;
30
+ justify-content: space-between;
31
+ .template_col_left {
32
+ width: 100%;
33
+ height: 400px;
34
+ background-color: var(--_base-white);
35
+ .wishlist-modal {
36
+ display: flex;
37
+ flex-direction: column;
38
+ width: 100%;
39
+
40
+ .wishlist-modal-section {
41
+ // padding: 16px 24px 24px 24px;
42
+ gap: 16px !important;
43
+ overflow-x: hidden;
44
+ display: flex;
45
+ flex-direction: column;
46
+
47
+ .form-group {
48
+ display: flex;
49
+ flex-direction: column;
50
+ gap: 8px;
51
+ max-width: 500px;
52
+
53
+ label {
54
+ display: block;
55
+ font-size: 0.875rem;
56
+ font-weight: 500;
57
+ color: #374151;
58
+ }
59
+
60
+ .primary_text_label {
61
+ font-weight: 700;
62
+ }
63
+
64
+ input[type="radio"],
65
+ textarea {
66
+ width: 100%;
67
+ padding: 0.5rem 0.75rem;
68
+ font-size: 0.875rem;
69
+ border: 1px solid #d1d5db;
70
+ border-radius: 0.375rem;
71
+ outline: none;
72
+ box-sizing: border-box;
73
+ transition: all 0.2s;
74
+
75
+ &:focus {
76
+ border-color: #2563eb;
77
+ // box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
78
+ }
79
+
80
+ &[type="radio"] {
81
+ width: fit-content;
82
+ height: fit-content;
83
+ }
84
+ }
85
+
86
+ .radio-group {
87
+ display: flex;
88
+ flex-direction: column;
89
+ gap: 12px;
90
+ font-weight: normal;
91
+
92
+ .radio-label {
93
+ display: inline-flex;
94
+ align-items: center;
95
+ gap: 8px;
96
+ cursor: pointer;
97
+ width: fit-content;
98
+
99
+ span {
100
+ color: var(--_gray-500);
101
+
102
+ span {
103
+ color: var(--_gray-900);
104
+ font-weight: 500;
105
+ }
106
+ }
107
+ }
108
+ }
109
+
110
+ textarea {
111
+ min-height: 100px;
112
+ resize: vertical;
113
+ }
114
+
115
+ .global-can-edit {
116
+ display: flex;
117
+ flex-direction: column;
118
+ align-items: flex-start;
119
+ margin-left: 20px;
120
+ margin-top: 6px;
121
+ gap: 6px;
122
+
123
+ input[type="checkbox"] {
124
+ margin: 0;
125
+ width: 16px;
126
+ height: 16px;
127
+ cursor: pointer;
128
+ }
129
+
130
+ span {
131
+ font-size: 0.875rem;
132
+ font-weight: 600;
133
+ color: var(--_gray-900);
134
+ margin-left: -15px;
135
+ }
136
+ }
137
+ }
138
+ input[type="text"] {
139
+ height: 40px;
140
+ border: 1px solid var(--_gray-300);
141
+ border-radius: 6px;
142
+ padding-inline: 16px;
143
+ }
144
+ }
145
+ }
146
+ .action-buttons {
147
+ display: flex;
148
+ gap: 1rem;
149
+ align-items: center;
150
+ // justify-content: flex-end;
151
+ flex: 1 1 auto;
152
+ // padding: 16px 24px;
153
+ // border-top: 1px solid var(--_gray-200);
154
+ gap: 12px;
155
+ margin-block: 24px;
156
+ padding-bottom: 24px;
157
+ button {
158
+ padding: 12px 16px;
159
+ border-radius: 6px;
160
+ }
161
+ .create-btn {
162
+ display: flex;
163
+ justify-content: center;
164
+ align-items: center;
165
+ gap: 8px;
166
+ background-color: var(--_primary-400);
167
+ color: var(--_base-white);
168
+ &.disabled {
169
+ opacity: 0.5;
170
+ pointer-events: none;
171
+ }
172
+ .loader {
173
+ animation: rotate-icon 1s linear infinite;
174
+ display: inline-block;
175
+ transform-origin: center;
176
+
177
+ svg path {
178
+ stroke: var(--_primary-200);
179
+ }
180
+ }
181
+
182
+ &:hover {
183
+ background-color: var(--_primary-500);
184
+ }
185
+ }
186
+ .discard-btn {
187
+ &:hover {
188
+ background-color: var(--_gray-50);
189
+ color: var(--_gray-900);
190
+ }
191
+ }
192
+ }
193
+ }
194
+ .template_col_right {
195
+ width: 400px;
196
+ height: fit-content;
197
+ background-color: var(--_base-white);
198
+ .template_summary_wrapper {
199
+ border: 1px solid var(--_gray-300);
200
+ border-radius: 4px;
201
+ width: 350px;
202
+ .template_summary_header {
203
+ padding: 12px 16px;
204
+ border-bottom: 1px solid var(--_gray-300);
205
+ font-size: 16px;
206
+ font-weight: 600;
207
+ background-color: #f5f5f5;
208
+ }
209
+ .template_summary_body {
210
+ .template_summary_items {
211
+ padding: 16px;
212
+ display: flex;
213
+ flex-direction: column;
214
+ gap: 8px;
215
+ .template_summary_item {
216
+ display: flex;
217
+ justify-content: space-between;
218
+ gap: 16px;
219
+ .template_summary_item_details {
220
+ display: flex;
221
+ gap: 16px;
222
+ .template_summary_item_pro_info {
223
+ h5 {
224
+ font-size: 16px;
225
+ font-weight: 600;
226
+ color: var(--_gray-900);
227
+ }
228
+ .template_summary_item_pro_qty {
229
+ color: var(--_gray-500);
230
+ font-size: 12px;
231
+ span {
232
+ display: block;
233
+ }
234
+ .qty {
235
+ color: var(--_gray-900);
236
+ }
237
+ }
238
+ }
239
+ }
240
+ .template_summary_item_detail_price {
241
+ font-size: 16px;
242
+ font-weight: 600;
243
+ color: var(--_gray-900);
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
38
252
  }
39
253
  &[data-show-shadow="false"] {
40
254
  --_show-shadow: none;
41
255
  }
42
256
 
43
- .accordion-element {
44
- background-color: var(
45
- --_ctm-mob-dn-fq-wt-bd-cr,
46
- var(--_ctm-tab-dn-fq-wt-bd-cr, var(--_ctm-dn-fq-wt-bd-cr))
47
- );
48
- padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
49
- display: flex;
50
- flex-direction: column;
51
- --_sf-gp: var(
52
- --_ctm-mob-lt-im-sg,
53
- var(--_ctm-tab-lt-im-sg, var(--_ctm-lt-im-sg, var(--_ctm-lt-im-sg), 16px))
54
- );
55
- --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
56
- row-gap: var(--_sf-gp);
57
- width: 100%;
58
- // height: 100%;
59
- border-color: var(
60
- --_ctm-mob-dn-fq-wt-br-cr,
61
- var(--_ctm-tab-dn-fq-wt-br-cr, var(--_ctm-dn-fq-wt-br-cr))
62
- );
63
- border-style: var(
64
- --_ctm-mob-dn-fq-wt-br-se,
65
- var(--_ctm-tab-dn-fq-wt-br-se, var(--_ctm-dn-fq-wt-br-se))
66
- );
67
- border-width: var(
68
- --_ctm-mob-dn-fq-wt-br-wh,
69
- var(--_ctm-tab-dn-fq-wt-br-wh, var(--_ctm-dn-fq-wt-br-wh))
70
- );
71
- border-radius: var(
72
- --_ctm-mob-dn-fq-wt-br-rs,
73
- var(--_ctm-tab-dn-fq-wt-br-rs, var(--_ctm-dn-fq-wt-br-rs))
74
- );
75
- box-shadow: var(
76
- --_show-shadow,
77
- var(--_ctm-mob-dn-fq-wt-sw-ae, var(--_ctm-tab-dn-fq-wt-sw-ae, var(--_ctm-dn-fq-wt-sw-ae)))
78
- var(--_ctm-mob-dn-fq-wt-sw-br, var(--_ctm-tab-dn-fq-wt-sw-br, var(--_ctm-dn-fq-wt-sw-br)))
79
- var(--_ctm-mob-dn-fq-wt-sw-sd, var(--_ctm-tab-dn-fq-wt-sw-sd, var(--_ctm-dn-fq-wt-sw-sd)))
80
- var(--_ctm-mob-dn-fq-wt-sw-cr, var(--_ctm-tab-dn-fq-wt-sw-cr, var(--_ctm-dn-fq-wt-sw-cr)))
81
- );
82
- }
257
+ // .accordion-element {
258
+ // background-color: var(
259
+ // --_ctm-mob-dn-fq-wt-bd-cr,
260
+ // var(--_ctm-tab-dn-fq-wt-bd-cr, var(--_ctm-dn-fq-wt-bd-cr))
261
+ // );
262
+ // padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
263
+ // display: flex;
264
+ // flex-direction: column;
265
+ // --_sf-gp: var(
266
+ // --_ctm-mob-lt-im-sg,
267
+ // var(--_ctm-tab-lt-im-sg, var(--_ctm-lt-im-sg, var(--_ctm-lt-im-sg), 16px))
268
+ // );
269
+ // --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
270
+ // row-gap: var(--_sf-gp);
271
+ // width: 100%;
272
+ // // height: 100%;
273
+ // border-color: var(
274
+ // --_ctm-mob-dn-fq-wt-br-cr,
275
+ // var(--_ctm-tab-dn-fq-wt-br-cr, var(--_ctm-dn-fq-wt-br-cr))
276
+ // );
277
+ // border-style: var(
278
+ // --_ctm-mob-dn-fq-wt-br-se,
279
+ // var(--_ctm-tab-dn-fq-wt-br-se, var(--_ctm-dn-fq-wt-br-se))
280
+ // );
281
+ // border-width: var(
282
+ // --_ctm-mob-dn-fq-wt-br-wh,
283
+ // var(--_ctm-tab-dn-fq-wt-br-wh, var(--_ctm-dn-fq-wt-br-wh))
284
+ // );
285
+ // border-radius: var(
286
+ // --_ctm-mob-dn-fq-wt-br-rs,
287
+ // var(--_ctm-tab-dn-fq-wt-br-rs, var(--_ctm-dn-fq-wt-br-rs))
288
+ // );
289
+ // box-shadow: var(
290
+ // --_show-shadow,
291
+ // var(--_ctm-mob-dn-fq-wt-sw-ae, var(--_ctm-tab-dn-fq-wt-sw-ae, var(--_ctm-dn-fq-wt-sw-ae)))
292
+ // var(--_ctm-mob-dn-fq-wt-sw-br, var(--_ctm-tab-dn-fq-wt-sw-br, var(--_ctm-dn-fq-wt-sw-br)))
293
+ // var(--_ctm-mob-dn-fq-wt-sw-sd, var(--_ctm-tab-dn-fq-wt-sw-sd, var(--_ctm-dn-fq-wt-sw-sd)))
294
+ // var(--_ctm-mob-dn-fq-wt-sw-cr, var(--_ctm-tab-dn-fq-wt-sw-cr, var(--_ctm-dn-fq-wt-sw-cr)))
295
+ // );
296
+ // }
83
297
  }
84
298
  }
@@ -94,6 +94,15 @@ export declare const getDefaultData: () => {
94
94
  property: string;
95
95
  propertyType: CMSElementEditTypes;
96
96
  };
97
+ showCreateTemplate: {
98
+ value: boolean;
99
+ property: string;
100
+ propertyType: CMSElementEditTypes;
101
+ };
102
+ createTemplateLinkTo: {
103
+ value: boolean;
104
+ propertyType: CMSElementEditTypes;
105
+ };
97
106
  showClearCart: {
98
107
  value: boolean;
99
108
  property: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.3.68",
3
+ "version": "0.3.69",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {