@sc-360-v2/storefront-cms-library 0.2.65 → 0.2.66

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.
@@ -0,0 +1,142 @@
1
+ // Variables
2
+ $modal_background_color: white;
3
+ $backdrop_color: rgba(0, 0, 0, 0.2);
4
+ $box_shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
5
+ $modal_width: 618px;
6
+ $modal_padding: 20px 0;
7
+ $border_radius: 10px;
8
+ $header_font_size: 18px;
9
+ $header_font_weight: 600;
10
+ $close_btn_font_size: 24px;
11
+ $close_btn_size: 35px;
12
+ $footer_btn_background_color: #ffffff;
13
+ $footer_btn_padding: 10px 15px;
14
+ $footer_btn_font_size: 14px;
15
+ $primary_100: var(--Primary-100, #ced4f6);
16
+ $primary_500: var(--Primary-500, #162578);
17
+ $gray_900: var(--Gray-900, #101828);
18
+ $gap_between_elements: 10px;
19
+ $padding_horizontal: 24px;
20
+ $box_shadow_active: 0px 1px 2px rgba(16, 24, 40, 0.05);
21
+ $divider_color: #eaecf0;
22
+ $border_color: #d0d5dd;
23
+ $modal_padding_body: 10px $padding_horizontal;
24
+ $btn_margin: 0 5px;
25
+ $divider_height: 1px;
26
+ $inactive_btn_text_color: #fff;
27
+ $active_btn_text_color: #fff;
28
+
29
+ @mixin flexbox($justify: flex-start, $align: center, $gap: 12px) {
30
+ display: flex;
31
+ justify-content: $justify;
32
+ align-items: $align;
33
+ gap: $gap;
34
+ }
35
+
36
+ .modal-main-element {
37
+ .modal-backdrop {
38
+ position: fixed;
39
+ top: 0;
40
+ left: 0;
41
+ width: 100%;
42
+ height: 100%;
43
+ background-color: $backdrop_color;
44
+ z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 9);
45
+ animation: fadeIn 0.4s forwards;
46
+ cursor: auto;
47
+ }
48
+
49
+ .modal-container {
50
+ position: fixed;
51
+ top: 50%;
52
+ left: 50%;
53
+ transform: translate(-50%, -50%);
54
+ background-color: $modal_background_color;
55
+ width: var(--_sf-ml-wh, 850px);
56
+ max-width: min(75%, 850px);
57
+ padding: $modal_padding;
58
+ box-shadow: $box_shadow;
59
+ border-radius: $border_radius;
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: $gap_between_elements;
63
+ z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
64
+ max-height: calc(100vh - 40px);
65
+ overflow-y: auto;
66
+ cursor: auto;
67
+
68
+ &.media__modal {
69
+ width: 60%;
70
+
71
+ .modal-body {
72
+ padding: 0 16px;
73
+ overflow: hidden;
74
+ }
75
+
76
+ .modal-footer {
77
+ justify-content: flex-end;
78
+ gap: 12px;
79
+ }
80
+ }
81
+ }
82
+
83
+ .modal-header {
84
+ padding: 0 $padding_horizontal;
85
+ position: relative;
86
+
87
+ h2 {
88
+ font-size: $header_font_size;
89
+ font-weight: $header_font_weight;
90
+ margin: 0;
91
+ color: $gray_900;
92
+ }
93
+
94
+ p {
95
+ font-size: 14px;
96
+ color: #475467;
97
+ margin-top: 4px;
98
+ }
99
+
100
+ .modal-close-btn {
101
+ position: absolute;
102
+ right: $padding_horizontal;
103
+ top: 10px;
104
+ width: $close_btn_size;
105
+ height: $close_btn_size;
106
+ font-size: $close_btn_font_size;
107
+ background: none;
108
+ border: none;
109
+ cursor: pointer;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+
114
+ svg {
115
+ width: 20px;
116
+ height: 20px;
117
+ }
118
+ }
119
+ }
120
+
121
+ .modal-body {
122
+ padding: $modal_padding_body;
123
+ font-size: 14px;
124
+ color: $gray_900;
125
+ }
126
+
127
+ .modal-footer {
128
+ @include flexbox(flex-end, center, 10px);
129
+ padding: 10px $padding_horizontal;
130
+ border-top: 1px solid $divider_color;
131
+ flex-wrap: wrap;
132
+ }
133
+
134
+ @keyframes fadeIn {
135
+ from {
136
+ opacity: 0;
137
+ }
138
+ to {
139
+ opacity: 1;
140
+ }
141
+ }
142
+ }
@@ -42,7 +42,6 @@ export interface SectionVariationInterface {
42
42
  CUSTOM?: any;
43
43
  };
44
44
  styles?: SectionStyleProperties;
45
- editedStyles?: CommonStyleProperties;
46
45
  sectionStyles?: CommonStyleProperties;
47
46
  grids?: CMSGridsContainer;
48
47
  responsiveBehaviour: ResponsiveBehaviourTypes;
@@ -50,11 +49,12 @@ export interface SectionVariationInterface {
50
49
  gtc?: CMSGridsContainer;
51
50
  gtr?: CMSGridsContainer;
52
51
  childIds: any[];
53
- varaitionId?: string | any;
54
52
  default?: boolean;
55
53
  uniqueKey?: any;
56
54
  selfKey?: any;
57
55
  childIdsV2?: any[];
56
+ editedStyles?: Record<string, any>;
57
+ controls?: Record<string, any>;
58
58
  }
59
59
  export interface CMSSectionInterface {
60
60
  id?: string | number;
@@ -70,4 +70,6 @@ export interface CMSSectionInterface {
70
70
  pageId?: string;
71
71
  deviceVisibility?: CMSDeviceVisibilityOptionInterface;
72
72
  dynamicRulesId?: any;
73
+ editedStyles?: Record<string, any>;
74
+ controls?: Record<string, any>;
73
75
  }
@@ -277,6 +277,8 @@ export declare const CMSElementsListEnum: {
277
277
  SEARCH_RESULTS_HEADING: string;
278
278
  ITEM_STOCK: string;
279
279
  CART_DETAILS: string;
280
+ CART_SUMMARY: string;
281
+ ALLOCATION_DETAILS: string;
280
282
  };
281
283
  export declare enum CMSResponsiveModeEnums {
282
284
  DESKTOP = "desktop",
@@ -0,0 +1,16 @@
1
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
2
+ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
3
+ }
4
+ interface selfLayoutInterface {
5
+ selectorKey: string;
6
+ }
7
+ interface selfDesignInterface {
8
+ selectorKey: string;
9
+ }
10
+ export declare enum SelectorKeysEnum {
11
+ LAYOUT = "layout",
12
+ CONTENT = "content",
13
+ DESIGN = "design"
14
+ }
15
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
16
+ export {};
@@ -5,6 +5,7 @@ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface
5
5
  interface selfLayoutInterface {
6
6
  selectorKey: string;
7
7
  displayStyle: CMSIBCommonInterface;
8
+ displayType: CMSIBCommonInterface;
8
9
  rowsToDisplay: CMSIBCommonInterface;
9
10
  spacingBetweenItems: CMSIBCommonInterface;
10
11
  overflowControl: CMSIBCommonInterface;
@@ -0,0 +1,21 @@
1
+ import { CMSIBCommonInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
4
+ }
5
+ interface selfLayoutInterface {
6
+ selectorKey: string;
7
+ showTitle: CMSIBCommonInterface;
8
+ showNumberOfItems: CMSIBCommonInterface;
9
+ showEnterCouponCode: CMSIBCommonInterface;
10
+ showSubTotal: CMSIBCommonInterface;
11
+ }
12
+ interface selfDesignInterface {
13
+ selectorKey: string;
14
+ }
15
+ export declare enum SelectorKeysEnum {
16
+ LAYOUT = "layout",
17
+ CONTENT = "content",
18
+ DESIGN = "design"
19
+ }
20
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
21
+ export {};
@@ -69,4 +69,6 @@ import * as iconLibrary from "./iconLibrary";
69
69
  import * as searchResultsHeading from "./searchResultsHeading";
70
70
  import * as itemStock from "./itemStock";
71
71
  import * as cartDetails from "./cartDetails";
72
- export { amountEstimator, bulkVariantPicker, button, code, staticText, common, container, countdown, embed, faq, gallerySlider, grid, image, imageHotspot, map, paymentMethods, pickupLocations, price, productActions, productHighlights, productImage, productInventory, productPromotions, quantitySelector, scroll, section, shippingEstimator, slideShowLayouter, social, stack, storeLocations, table, tabs, text, uomSelector, variantPicker, video, volumePricing, lightbox, cart, profile, repeater, repeaterItem, product, menu, productOptions, productDetails, category, subCategory, brand, bundle, brandImage, filters, sort, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, };
72
+ import * as cartSummary from "./cartSummary";
73
+ import * as allocationDetails from "./allocationDetails";
74
+ export { amountEstimator, bulkVariantPicker, button, code, staticText, common, container, countdown, embed, faq, gallerySlider, grid, image, imageHotspot, map, paymentMethods, pickupLocations, price, productActions, productHighlights, productImage, productInventory, productPromotions, quantitySelector, scroll, section, shippingEstimator, slideShowLayouter, social, stack, storeLocations, table, tabs, text, uomSelector, variantPicker, video, volumePricing, lightbox, cart, profile, repeater, repeaterItem, product, menu, productOptions, productDetails, category, subCategory, brand, bundle, brandImage, filters, sort, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, cartSummary, allocationDetails, };
package/dist/widget.scss CHANGED
@@ -71,3 +71,5 @@
71
71
  @use "./breadcrumbs.scss";
72
72
  @use "./icon-library.scss";
73
73
  @use "./form-preview.scss";
74
+ @use "./customization-tree.scss";
75
+ @use "./modal.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.65",
3
+ "version": "0.2.66",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {