@sc-360-v2/storefront-cms-library 0.3.29 → 0.3.31

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 (49) hide show
  1. package/dist/animation-control.scss +23 -0
  2. package/dist/builder.js +1 -1
  3. package/dist/bulk-order-pad.scss +73 -13
  4. package/dist/cart-details.scss +573 -287
  5. package/dist/cart-summary.scss +102 -73
  6. package/dist/cartAttributes.scss +3 -0
  7. package/dist/cartDropdownOverlay.scss +11 -7
  8. package/dist/checkout.scss +1069 -944
  9. package/dist/contact-us.scss +3 -0
  10. package/dist/dropdownTemplate.scss +24 -3
  11. package/dist/employee-bulk-order.scss +36 -5
  12. package/dist/empty-states.scss +52 -0
  13. package/dist/fb-dropdown.scss +6 -2
  14. package/dist/form-preview.scss +24 -1
  15. package/dist/form-zindex-module.scss +25 -0
  16. package/dist/functions.scss +72 -2
  17. package/dist/icons.js +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/light-box-v2.scss +1 -1
  20. package/dist/modal.scss +96 -37
  21. package/dist/position-module.scss +74 -0
  22. package/dist/prefix-list.scss +55 -0
  23. package/dist/quick-order-pad.scss +49 -10
  24. package/dist/responsive-behaviour.scss +21 -0
  25. package/dist/section.scss +13 -9
  26. package/dist/shareCartSideBar.scss +17 -8
  27. package/dist/submit-quote.scss +115 -52
  28. package/dist/types/builder/elements/loader/index.d.ts +27 -0
  29. package/dist/types/builder/enums/index.d.ts +1 -0
  30. package/dist/types/builder/index.d.ts +2 -1
  31. package/dist/types/builder/interfaces/global.d.ts +13 -0
  32. package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +441 -0
  33. package/dist/types/builder/tools/element-edit/buttonInstance.d.ts +364 -0
  34. package/dist/types/builder/tools/element-edit/cartSummary.d.ts +2 -2
  35. package/dist/types/builder/tools/element-edit/checkout.d.ts +8 -0
  36. package/dist/types/builder/tools/element-edit/common.d.ts +1 -0
  37. package/dist/types/builder/tools/element-edit/countdown.d.ts +384 -44
  38. package/dist/types/builder/tools/element-edit/dummy.d.ts +0 -0
  39. package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
  40. package/dist/types/builder/tools/element-edit/loader.d.ts +28 -0
  41. package/dist/types/builder/tools/element-edit/productActions.d.ts +390 -43
  42. package/dist/types/builder/tools/element-edit/quickLinks.d.ts +192 -22
  43. package/dist/types/builder/tools/element-edit/repeater.d.ts +439 -1
  44. package/dist/types/builder/tools/element-edit/table.d.ts +0 -1
  45. package/dist/types/builder/tools/element-edit/typographyInstance.d.ts +981 -0
  46. package/dist/types/builder/tools/element-edit/video.d.ts +192 -22
  47. package/dist/types/global/types.d.ts +2 -0
  48. package/dist/widget.scss +1 -0
  49. package/package.json +1 -1
@@ -2,16 +2,27 @@
2
2
  display: flex;
3
3
  gap: 24px;
4
4
  padding: 32px;
5
+ width: 100%;
6
+ justify-content: space-between;
5
7
 
6
8
  .quote-items {
7
9
  flex: 2;
10
+ min-height: calc(100% - 61px);
11
+ overflow-y: auto;
8
12
  }
9
13
 
10
14
  .quote-item {
11
15
  padding: 32px 0;
12
16
  display: flex;
13
17
  gap: 24px;
14
- border-bottom: 1px dotted #d0d0d0;
18
+ border-bottom: 1px dashed var(--_gray-400);
19
+ padding-right: 10px;
20
+ &:first-child {
21
+ padding-top: 0;
22
+ }
23
+ &:last-child {
24
+ border-bottom: 0;
25
+ }
15
26
 
16
27
  .quote-item__image {
17
28
  width: 120px;
@@ -28,29 +39,53 @@
28
39
 
29
40
  .quote-item__header {
30
41
  display: flex;
31
- flex-direction: row;
32
- gap: 10px;
33
- margin-bottom: 20px;
34
- padding-bottom: 20px;
35
- border-bottom: 1px dotted #d0d0d0;
42
+ flex-direction: column;
43
+ // gap: 16px;
44
+ margin-bottom: 16px;
45
+ padding-bottom: 16px;
46
+ border-bottom: 1px dashed var(--_gray-400);
47
+ // align-items: center;
36
48
 
37
49
  .quote-item__title {
38
- font-size: 18px;
39
- font-weight: 600;
40
- color: #111;
50
+ font-size: 16px;
51
+ font-weight: 500;
52
+ color: var(--_gray-900);
53
+ // &:after {
54
+ // width: 1px;
55
+ // height: 10px;
56
+ // background: var(--_gray-600);
57
+ // display: inline-block;
58
+ // content: "";
59
+ // margin-left: 16px;
60
+ // }
41
61
  }
42
62
 
43
63
  .quote-item__meta {
44
64
  display: flex;
45
- gap: 10px;
46
- font-size: 18px;
47
- color: #363636;
65
+ gap: 6px;
66
+ font-size: 14px;
67
+ font-weight: 400;
68
+ color: var(--_gray-600);
69
+ span {
70
+ &::after {
71
+ width: 1px;
72
+ height: 10px;
73
+ background: var(--_gray-600);
74
+ content: "";
75
+ display: inline-block;
76
+ margin-left: 6px;
77
+ }
78
+ &:last-child::after {
79
+ width: 0 !important;
80
+ margin: 0 !important;
81
+ }
82
+ }
48
83
  }
49
84
  }
50
85
 
51
86
  .quote-item__row {
52
87
  display: flex;
53
- gap: 60px;
88
+ gap: 48px;
54
89
  align-items: flex-start;
55
90
 
56
91
  .field {
@@ -61,13 +96,14 @@
61
96
  label {
62
97
  margin-bottom: 6px;
63
98
  font-weight: 500;
64
- color: #333;
99
+ color: var(--_gray-700);
65
100
  }
66
101
 
67
102
  .value {
68
- font-weight: 600;
69
- font-size: 16px;
70
- color: #111;
103
+ font-weight: 700;
104
+ font-size: 20px;
105
+ line-height: 38px;
106
+ color: var(--_gray-900);
71
107
  }
72
108
 
73
109
  input {
@@ -75,7 +111,7 @@
75
111
  padding: 8px 12px;
76
112
  font-size: 15px;
77
113
  border: 1px solid #ccc;
78
- border-radius: 6px;
114
+ border-radius: 4px;
79
115
  outline: none;
80
116
  width: 130px;
81
117
 
@@ -84,7 +120,10 @@
84
120
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
85
121
  }
86
122
  }
87
-
123
+ .input-with-prefix:focus-within {
124
+ border-color: #007bff; /* Or any highlight color */
125
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
126
+ }
88
127
  .input-with-prefix {
89
128
  display: flex;
90
129
  align-items: center;
@@ -93,13 +132,13 @@
93
132
  overflow: hidden;
94
133
  width: 130px;
95
134
  height: 40px;
96
-
97
135
  span {
98
- background-color: #f9f9f9;
99
136
  padding: 0 8px;
100
137
  font-size: 15px;
101
- color: #444;
102
- border-right: 1px solid #ccc;
138
+ color: var(--_gray-500);
139
+ svg{
140
+ vertical-align: middle;
141
+ }
103
142
  }
104
143
 
105
144
  input {
@@ -122,6 +161,7 @@
122
161
  .quote-total {
123
162
  display: flex;
124
163
  flex-direction: column;
164
+ gap: 6px;
125
165
 
126
166
  > div {
127
167
  display: flex;
@@ -131,30 +171,34 @@
131
171
 
132
172
  .label {
133
173
  font-size: 14px;
134
- color: #444;
174
+ color: var(--_gray-700);
175
+ line-height: 20px;
176
+ font-weight: 500;
135
177
  }
136
178
 
137
179
  .amount {
138
180
  font-size: 18px;
139
181
  font-weight: 700;
140
- color: #111;
182
+ color: var(--_gray-900);
183
+ line-height: 28px;
184
+ min-width: 80px;
141
185
  }
142
186
  }
143
187
 
144
188
  small {
145
- font-size: 13px;
146
- color: #888;
147
- margin-top: 4px;
189
+ font-size: 14px;
190
+ font-weight: 400;
191
+ line-height: 20px;
192
+ color: var(--_gray-500);
148
193
  }
149
-
150
194
  &.discounted {
151
195
  .label {
152
196
  color: #198754;
153
197
  }
154
198
 
155
- .amount {
156
- color: #198754;
157
- }
199
+ // .amount {
200
+ // color: #198754;
201
+ // }
158
202
  }
159
203
  }
160
204
  }
@@ -163,50 +207,69 @@
163
207
  }
164
208
 
165
209
  .quote-summary {
166
- background: #f8f9fa;
210
+ // background: #f8f9fa;
167
211
  border: 1px solid #e3e3e3;
168
- border-radius: 8px;
169
- padding: 24px;
212
+ border-radius: 4px;
213
+ // padding: 24px;
170
214
  width: 100%;
171
215
  max-width: 400px;
172
216
 
173
217
  h3 {
174
- font-size: 18px;
175
- font-weight: 600;
176
- margin-bottom: 20px;
177
- color: #333;
218
+ font-size: 16px;
219
+ font-weight: 700;
220
+ color: var(--_gray-900);
221
+ background: #f5f5f5;
222
+ line-height: 24px;
223
+ padding: 12px;
224
+ border-radius: 4px 4px 0 0;
225
+ }
226
+ .quote-summary-body {
227
+ padding: 0 16px 16px 16px;
178
228
  }
179
229
 
180
230
  &__row {
181
231
  display: flex;
182
232
  justify-content: space-between;
183
233
  align-items: center;
184
- padding: 12px 0;
185
- border-bottom: 1px dotted #ccc;
186
- margin-bottom: 4px;
187
-
234
+ padding: 16px 0;
235
+ border-bottom: 1px dashed var(--_gray-400);
188
236
  .label {
189
237
  font-size: 14px;
190
- color: #666;
238
+ font-weight: 400;
239
+ line-height: 20px;
240
+ color: var(--_gray-500);
241
+ }
242
+ .label-quote {
243
+ font-size: 16px;
244
+ font-weight: 600;
245
+ line-height: 24px;
246
+ color: #1f1930;
191
247
  }
192
248
 
193
249
  .value {
194
- font-size: 16px;
250
+ font-size: 14px;
195
251
  font-weight: 500;
196
- color: #333;
252
+ color: var(--_gray-900);
253
+ line-height: 20px;
197
254
 
198
255
  &.highlight {
199
- font-size: 24px;
256
+ font-size: 20px;
200
257
  font-weight: 700;
201
- color: #000;
258
+ color: #1f1930;
202
259
  }
203
260
  }
204
261
 
205
262
  &--quoted {
206
- margin-bottom: 20px;
263
+ margin-bottom: 16px;
207
264
  }
208
265
  }
209
-
266
+ .label-notes {
267
+ margin-bottom: 6px;
268
+ font-size: 14px;
269
+ font-weight: 500;
270
+ color: var(--_gray-700);
271
+ display: inline-block;
272
+ }
210
273
  &__notes {
211
274
  width: 100%;
212
275
  height: 100px;
@@ -231,13 +294,13 @@
231
294
 
232
295
  &__button {
233
296
  width: 100%;
234
- padding: 14px;
297
+ padding: 12px;
235
298
  background-color: #1a40f2;
236
299
  color: #fff;
237
300
  font-size: 16px;
238
301
  font-weight: 600;
239
302
  border: none;
240
- border-radius: 6px;
303
+ border-radius: 4px;
241
304
  cursor: pointer;
242
305
  transition: background-color 0.2s ease;
243
306
 
@@ -0,0 +1,27 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
3
+ import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface LoaderStyleProperties extends CommonStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ gridArea?: GridAreaValue;
12
+ boxSizing?: BoxSizingValue;
13
+ padding?: PaddingValue;
14
+ justifySelf?: JustifySelfValue;
15
+ alignSelf?: AlignSelfValue;
16
+ }
17
+ export declare const getDefaultStyles: () => LoaderStyleProperties;
18
+ export interface CMSLoaderInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: LoaderStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ content: string;
27
+ }
@@ -328,6 +328,7 @@ export declare const CMSElementsListEnum: {
328
328
  BADGE: string;
329
329
  CART_ATTRIBUTES: string;
330
330
  LANGUAGE_MENU: string;
331
+ LOADER: string;
331
332
  };
332
333
  export declare enum CMSResponsiveModeEnums {
333
334
  DESKTOP = "desktop",
@@ -83,4 +83,5 @@ import * as filterResultsSchema from "./elements/filter-results/index";
83
83
  import * as productSizeChartSchema from "./elements/product-sizechart/index";
84
84
  import * as badgeSchema from "./elements/badge/index";
85
85
  import * as cartAttributesSchema from "./elements/cart-attributes/index";
86
- 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, };
86
+ import * as loaderSchema from "./elements/loader/index";
87
+ 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, };
@@ -1,3 +1,4 @@
1
+ import { HorizontalOrientation, PositionValue, VerticalOrientation } from "../../global/types";
1
2
  import { LightBoxV2ElementInterface } from "../elements/light-box-v2";
2
3
  import { CMSDeviceVisibilityHiddenTypeEnums, CMSElementEditTypes, CMSCustomEventServiceTypesEnum, CMSComponentImportTypeEnum } from "../enums";
3
4
  import "./cms-tools";
@@ -148,3 +149,15 @@ export interface FlexCustomEventInterface {
148
149
  displayType?: CMSComponentImportTypeEnum;
149
150
  item?: any;
150
151
  }
152
+ export type FlexPositionDataType = {
153
+ type: PositionValue;
154
+ horizontal: {
155
+ orientation: HorizontalOrientation;
156
+ offset: Record<string, CMSIBSizeInterface>;
157
+ };
158
+ vertical: {
159
+ orientation: VerticalOrientation;
160
+ offset: Record<string, CMSIBSizeInterface>;
161
+ };
162
+ zIndex: string;
163
+ };