@sc-360-v2/storefront-cms-library 0.3.85 → 0.3.86

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.
@@ -53,272 +53,247 @@
53
53
  // }
54
54
  }
55
55
 
56
- .template_wrapper {
57
- width: 100%;
58
-
59
- .template_section {
60
- width: 100%;
61
- display: flex;
62
- justify-content: space-between;
63
- align-items: center;
64
- margin-bottom: 24px;
65
-
66
- h2 {
67
- font-size: 24px;
68
- }
69
-
70
- .back_to_cart {
71
- color: var(--_primary-400);
72
-
73
- &:hover {
74
- text-decoration: underline;
75
- }
76
- }
77
- }
78
-
79
- .template_body {
80
- display: flex;
81
- gap: 60px;
82
- justify-content: space-between;
83
-
84
- .template_col_left {
85
- width: 100%;
86
- height: 400px;
87
- background-color: var(--_base-white);
88
-
89
- .wishlist-modal {
90
- display: flex;
91
- flex-direction: column;
92
- width: 100%;
93
-
94
- .wishlist-modal-section {
95
- // padding: 16px 24px 24px 24px;
96
- gap: 16px !important;
97
- overflow-x: hidden;
98
- display: flex;
99
- flex-direction: column;
100
-
101
- .form-group {
102
- display: flex;
103
- flex-direction: column;
104
- gap: 8px;
105
- max-width: 500px;
106
-
107
- label {
108
- display: block;
109
- font-size: 0.875rem;
110
- font-weight: 500;
111
- color: #374151;
112
- }
113
-
114
- .primary_text_label {
115
- font-weight: 700;
116
- }
117
-
118
- input[type="radio"],
119
- textarea {
120
- width: 100%;
121
- padding: 0.5rem 0.75rem;
122
- font-size: 0.875rem;
123
- border: 1px solid #d1d5db;
124
- border-radius: 0.375rem;
125
- outline: none;
126
- box-sizing: border-box;
127
- transition: all 0.2s;
128
-
129
- &:focus {
130
- border-color: #2563eb;
131
- // box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
132
- }
133
-
134
- &[type="radio"] {
135
- width: fit-content;
136
- height: fit-content;
137
- }
138
- }
139
-
140
- .radio-group {
141
- display: flex;
142
- flex-direction: column;
143
- gap: 12px;
144
- font-weight: normal;
145
-
146
- .radio-label {
147
- display: inline-flex;
148
- align-items: center;
149
- gap: 8px;
150
- cursor: pointer;
151
- width: fit-content;
152
-
153
- span {
154
- color: var(--_gray-500);
155
-
156
- span {
157
- color: var(--_gray-900);
158
- font-weight: 500;
159
- }
160
- }
161
- }
162
- }
163
-
164
- textarea {
165
- min-height: 100px;
166
- resize: vertical;
167
- }
168
-
169
- .global-can-edit {
170
- display: flex;
171
- flex-direction: column;
172
- align-items: flex-start;
173
- margin-left: 20px;
174
- margin-top: 6px;
175
- gap: 6px;
176
-
177
- input[type="checkbox"] {
178
- margin: 0;
179
- width: 16px;
180
- height: 16px;
181
- cursor: pointer;
182
- }
183
-
184
- span {
185
- font-size: 0.875rem;
186
- font-weight: 600;
187
- color: var(--_gray-900);
188
- margin-left: -15px;
189
- }
190
- }
191
- }
192
-
193
- input[type="text"] {
194
- height: 40px;
195
- border: 1px solid var(--_gray-300);
196
- border-radius: 6px;
197
- padding-inline: 16px;
198
- }
199
- }
200
- }
201
-
202
- .action-buttons {
203
- display: flex;
204
- gap: 1rem;
205
- align-items: center;
206
- // justify-content: flex-end;
207
- flex: 1 1 auto;
208
- // padding: 16px 24px;
209
- // border-top: 1px solid var(--_gray-200);
210
- gap: 12px;
211
- margin-block: 24px;
212
- padding-bottom: 24px;
213
-
214
- button {
215
- padding: 12px 16px;
216
- border-radius: 6px;
217
- }
218
-
219
- .create-btn {
220
- display: flex;
221
- justify-content: center;
222
- align-items: center;
223
- gap: 8px;
224
- background-color: var(--_primary-400);
225
- color: var(--_base-white);
226
-
227
- &.disabled {
228
- opacity: 0.5;
229
- pointer-events: none;
230
- }
231
-
232
- .loader {
233
- animation: rotate-icon 1s linear infinite;
234
- display: inline-block;
235
- transform-origin: center;
236
-
237
- svg path {
238
- stroke: var(--_primary-200);
239
- }
240
- }
241
-
242
- &:hover {
243
- background-color: var(--_primary-500);
244
- }
245
- }
246
-
247
- .discard-btn {
248
- &:hover {
249
- background-color: var(--_gray-50);
250
- color: var(--_gray-900);
251
- }
252
- }
253
- }
254
- }
255
-
256
- .template_col_right {
257
- width: 400px;
258
- height: fit-content;
259
- background-color: var(--_base-white);
260
-
261
- .template_summary_wrapper {
262
- border: 1px solid var(--_gray-300);
263
- border-radius: 4px;
264
- width: 350px;
265
-
266
- .template_summary_header {
267
- padding: 12px 16px;
268
- border-bottom: 1px solid var(--_gray-300);
269
- font-size: 16px;
270
- font-weight: 600;
271
- background-color: #f5f5f5;
272
- }
273
-
274
- .template_summary_body {
275
- .template_summary_items {
276
- padding: 16px;
277
- display: flex;
278
- flex-direction: column;
279
- gap: 8px;
280
-
281
- .template_summary_item {
282
- display: flex;
283
- justify-content: space-between;
284
- gap: 16px;
285
-
286
- .template_summary_item_details {
287
- display: flex;
288
- gap: 16px;
289
-
290
- .template_summary_item_pro_info {
291
- h5 {
292
- font-size: 16px;
293
- font-weight: 600;
294
- color: var(--_gray-900);
295
- }
296
-
297
- .template_summary_item_pro_qty {
298
- color: var(--_gray-500);
299
- font-size: 12px;
300
-
301
- span {
302
- display: block;
303
- }
304
-
305
- .qty {
306
- color: var(--_gray-900);
307
- }
308
- }
309
- }
310
- }
311
-
312
- .template_summary_item_detail_price {
313
- font-size: 16px;
314
- font-weight: 600;
315
- color: var(--_gray-900);
316
- }
317
- }
318
- }
319
- }
320
- }
321
- }
322
- }
323
- }
56
+ .template_wrapper {
57
+ width: 100%;
58
+ .template_section {
59
+ width: 100%;
60
+ display: flex;
61
+ justify-content: space-between;
62
+ align-items: center;
63
+ margin-bottom: 24px;
64
+ h2 {
65
+ font-size: 24px;
66
+ }
67
+ .back_to_cart {
68
+ color: var(--_primary-400);
69
+ &:hover {
70
+ text-decoration: underline;
71
+ }
72
+ }
73
+ }
74
+ .template_body {
75
+ display: flex;
76
+ gap: 60px;
77
+ justify-content: space-between;
78
+ .template_col_left {
79
+ width: 100%;
80
+ height: 400px;
81
+ background-color: var(--_base-white);
82
+ .wishlist-modal {
83
+ display: flex;
84
+ flex-direction: column;
85
+ width: 100%;
86
+
87
+ .wishlist-modal-section {
88
+ // padding: 16px 24px 24px 24px;
89
+ gap: 16px !important;
90
+ overflow-x: hidden;
91
+ display: flex;
92
+ flex-direction: column;
93
+
94
+ .form-group {
95
+ display: flex;
96
+ flex-direction: column;
97
+ gap: 8px;
98
+ max-width: 500px;
99
+
100
+ label {
101
+ display: block;
102
+ font-size: 0.875rem;
103
+ font-weight: 500;
104
+ color: #374151;
105
+ }
106
+
107
+ .primary_text_label {
108
+ font-weight: 700;
109
+ }
110
+
111
+ input[type="radio"],
112
+ textarea {
113
+ width: 100%;
114
+ padding: 0.5rem 0.75rem;
115
+ font-size: 0.875rem;
116
+ border: 1px solid #d1d5db;
117
+ border-radius: 0.375rem;
118
+ outline: none;
119
+ box-sizing: border-box;
120
+ transition: all 0.2s;
121
+
122
+ &:focus {
123
+ border-color: #2563eb;
124
+ // box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
125
+ }
126
+
127
+ &[type="radio"] {
128
+ width: fit-content;
129
+ height: fit-content;
130
+ }
131
+ }
132
+
133
+ .radio-group {
134
+ display: flex;
135
+ flex-direction: column;
136
+ gap: 12px;
137
+ font-weight: normal;
138
+
139
+ .radio-label {
140
+ display: inline-flex;
141
+ align-items: center;
142
+ gap: 8px;
143
+ cursor: pointer;
144
+ width: fit-content;
145
+
146
+ span {
147
+ color: var(--_gray-500);
148
+
149
+ span {
150
+ color: var(--_gray-900);
151
+ font-weight: 500;
152
+ }
153
+ }
154
+ }
155
+ }
156
+
157
+ textarea {
158
+ min-height: 100px;
159
+ resize: vertical;
160
+ }
161
+
162
+ .global-can-edit {
163
+ display: flex;
164
+ flex-direction: column;
165
+ align-items: flex-start;
166
+ margin-left: 20px;
167
+ margin-top: 6px;
168
+ gap: 6px;
169
+
170
+ input[type="checkbox"] {
171
+ margin: 0;
172
+ width: 16px;
173
+ height: 16px;
174
+ cursor: pointer;
175
+ }
176
+
177
+ span {
178
+ font-size: 0.875rem;
179
+ font-weight: 600;
180
+ color: var(--_gray-900);
181
+ margin-left: -15px;
182
+ }
183
+ }
184
+ }
185
+ input[type="text"] {
186
+ height: 40px;
187
+ border: 1px solid var(--_gray-300);
188
+ border-radius: 6px;
189
+ padding-inline: 16px;
190
+ }
191
+ }
192
+ }
193
+ .action-buttons {
194
+ display: flex;
195
+ gap: 1rem;
196
+ align-items: center;
197
+ // justify-content: flex-end;
198
+ flex: 1 1 auto;
199
+ // padding: 16px 24px;
200
+ // border-top: 1px solid var(--_gray-200);
201
+ gap: 12px;
202
+ margin-block: 24px;
203
+ padding-bottom: 24px;
204
+ button {
205
+ padding: 12px 16px;
206
+ border-radius: 6px;
207
+ }
208
+ .create-btn {
209
+ display: flex;
210
+ justify-content: center;
211
+ align-items: center;
212
+ gap: 8px;
213
+ background-color: var(--_primary-400);
214
+ color: var(--_base-white);
215
+ &.disabled {
216
+ opacity: 0.5;
217
+ pointer-events: none;
218
+ }
219
+ .loader {
220
+ animation: rotate-icon 1s linear infinite;
221
+ display: inline-block;
222
+ transform-origin: center;
223
+
224
+ svg path {
225
+ stroke: var(--_primary-200);
226
+ }
227
+ }
228
+
229
+ &:hover {
230
+ background-color: var(--_primary-500);
231
+ }
232
+ }
233
+ .discard-btn {
234
+ &:hover {
235
+ background-color: var(--_gray-50);
236
+ color: var(--_gray-900);
237
+ }
238
+ }
239
+ }
240
+ }
241
+ .template_col_right {
242
+ width: 400px;
243
+ height: fit-content;
244
+ background-color: var(--_base-white);
245
+ .template_summary_wrapper {
246
+ border: 1px solid var(--_gray-300);
247
+ border-radius: 4px;
248
+ width: 350px;
249
+ .template_summary_header {
250
+ padding: 12px 16px;
251
+ border-bottom: 1px solid var(--_gray-300);
252
+ font-size: 16px;
253
+ font-weight: 600;
254
+ background-color: #f5f5f5;
255
+ }
256
+ .template_summary_body {
257
+ .template_summary_items {
258
+ padding: 16px;
259
+ display: flex;
260
+ flex-direction: column;
261
+ gap: 8px;
262
+ .template_summary_item {
263
+ display: flex;
264
+ justify-content: space-between;
265
+ gap: 16px;
266
+ .template_summary_item_details {
267
+ display: flex;
268
+ gap: 16px;
269
+ .template_summary_item_pro_info {
270
+ h5 {
271
+ font-size: 16px;
272
+ font-weight: 600;
273
+ color: var(--_gray-900);
274
+ }
275
+ .template_summary_item_pro_qty {
276
+ color: var(--_gray-500);
277
+ font-size: 12px;
278
+ span {
279
+ display: block;
280
+ }
281
+ .qty {
282
+ color: var(--_gray-900);
283
+ }
284
+ }
285
+ }
286
+ }
287
+ .template_summary_item_detail_price {
288
+ font-size: 16px;
289
+ font-weight: 600;
290
+ color: var(--_gray-900);
291
+ }
292
+ }
293
+ }
294
+ }
295
+ }
296
+ }
297
+ }
298
+ }
324
299
  }
@@ -0,0 +1,39 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
3
+ import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface EmbroideryStyleProperties extends CommonStyleProperties {
6
+ minWidth: string;
7
+ maxWidth: string;
8
+ maxHeight: string;
9
+ gridArea: string;
10
+ display: DisplayValue;
11
+ boxSizing: string;
12
+ }
13
+ export declare const getDefaultStyles: () => EmbroideryStyleProperties;
14
+ export interface CommonContainerElementAttributes extends CMSHTMLAttributes {
15
+ role?: string;
16
+ ariaLabel?: string;
17
+ ariaDescribedBy?: string;
18
+ id?: string;
19
+ className?: string;
20
+ lang?: string;
21
+ dataMeta?: string;
22
+ }
23
+ export interface EmbroideryElementInterface {
24
+ id?: string | number;
25
+ uniqueKey?: string | number;
26
+ attributes?: {
27
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
28
+ HTML?: CommonContainerElementAttributes;
29
+ CUSTOM?: any;
30
+ };
31
+ styles?: EmbroideryStyleProperties;
32
+ editedStyles?: CommonStyleProperties;
33
+ responsiveBehaviour: ResponsiveBehaviourTypes;
34
+ children: any;
35
+ childIds: any[];
36
+ previewImage?: string;
37
+ parentKey?: any;
38
+ childIdsV2?: any[];
39
+ }
@@ -257,6 +257,7 @@ export interface FormGridLayoutInterface {
257
257
  maxW?: number;
258
258
  minH?: number;
259
259
  minW?: number;
260
+ resizeHandles?: ("s" | "e" | "w" | "n" | "se" | "sw" | "ne" | "nw")[];
260
261
  }
261
262
  export declare enum FormConfirmationOption {
262
263
  ShowMessage = 1,
@@ -351,6 +351,7 @@ export declare const CMSElementsListEnum: {
351
351
  MY_TEMPLATES: string;
352
352
  MY_WISHLIST: string;
353
353
  REQUEST_FOR_QUOTE: string;
354
+ EMBROIDERY: string;
354
355
  };
355
356
  export declare enum CMSResponsiveModeEnums {
356
357
  DESKTOP = "desktop",
@@ -415,7 +416,8 @@ export declare enum CMSCustomEventsListEnums {
415
416
  FORM_BUILDER_STATE = "formBuilderState",
416
417
  EMBROIDERY_PLAYGROUND_STATE = "embroideryPlaygroundState",
417
418
  FLEX_BUILDER_ANIMATION_TEMP_STATE = "flexBuilderAnimationTempState",
418
- FLEX_EDITOR_SCROLL_TRIGGER = "flexEditorScrollTrigger"
419
+ FLEX_EDITOR_SCROLL_TRIGGER = "flexEditorScrollTrigger",
420
+ FLEX_EMBROIDERY_SESSION_DATA_V2 = "flexEmbroiderySessionDataV2"
419
421
  }
420
422
  export declare enum FlexAppVersionEnums {
421
423
  NESTEDJSON = 1,
@@ -91,4 +91,5 @@ import * as megaMenuSchema from "./elements/mega-menu";
91
91
  import * as megaMenuContainerSchema from "./elements/mega-menu-container";
92
92
  import * as simpleListSchema from "./elements/simple-list";
93
93
  import * as cartWrapperSchema from "./elements/cart-wrapper";
94
- export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, bundleDetailsSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, cartSummarySchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, cartAttributesSchema, loaderSchema, addProductsTabSchema, shippingPaymentsSchema, couponSchema, megaMenuSchema, megaMenuContainerSchema, simpleListSchema, cartWrapperSchema, };
94
+ import * as embroiderySchema from "./elements/embroidery";
95
+ export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, bundleDetailsSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, cartSummarySchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, cartAttributesSchema, loaderSchema, addProductsTabSchema, shippingPaymentsSchema, couponSchema, megaMenuSchema, megaMenuContainerSchema, simpleListSchema, cartWrapperSchema, embroiderySchema, };