@sc-360-v2/storefront-cms-library 0.2.59 → 0.2.60

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,189 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="login"] {
6
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
7
+ height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
8
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
9
+ aspect-ratio: 1 / var(--_sf-aspect-ratio);
10
+ position: relative;
11
+
12
+ & > .wrapper {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ width: 100%;
17
+ height: 100%;
18
+ }
19
+
20
+ & form {
21
+ width: 100%;
22
+ height: 100%;
23
+ }
24
+
25
+ &[data-widget-border="true"] {
26
+ .search-wrapper {
27
+ border-color: var(--_ctm-dn-sh-br-br-cr, var(--_tst-dn-sh-br-br-cr));
28
+ border-style: var(--_ctm-dn-sh-br-br-se, var(--_tst-dn-sh-br-br-se));
29
+ border-width: var(--_ctm-dn-sh-br-br-wh, var(--_tst-dn-sh-br-br-wh));
30
+ }
31
+ }
32
+
33
+ &[data-widget-shadow="false"] {
34
+ --_show-shadow: none;
35
+ }
36
+
37
+ &[data-show-shadow="false"] {
38
+ --_show-shadow: none;
39
+ }
40
+
41
+ .contact-us-container {
42
+ display: flex;
43
+ padding: 48px 96px 96px 96px;
44
+ flex-direction: column;
45
+ align-items: flex-start;
46
+ gap: 24px;
47
+ align-self: stretch;
48
+ width: 100%;
49
+ height: 100%;
50
+ .header-section {
51
+ display: flex;
52
+ flex-direction: column;
53
+ align-items: flex-start;
54
+ align-self: stretch;
55
+ .head-title {
56
+ color: #333;
57
+ font-family: "Hanken Grotesk";
58
+ font-size: 24px;
59
+ font-style: normal;
60
+ font-weight: 600;
61
+ line-height: 125%; /* 30px */
62
+ letter-spacing: -0.48px;
63
+ }
64
+ .sub-title {
65
+ color: #626262;
66
+ font-family: "Hanken Grotesk";
67
+ font-size: 14px;
68
+ font-style: normal;
69
+ font-weight: 400;
70
+ line-height: 150%; /* 21px */
71
+ letter-spacing: -0.28px;
72
+ }
73
+ }
74
+ .form-section {
75
+ display: flex;
76
+ flex-direction: column;
77
+ align-items: flex-start;
78
+ align-self: stretch;
79
+ gap: 16px;
80
+ .form-row {
81
+ display: flex;
82
+ align-items: flex-start;
83
+ gap: 24px;
84
+ align-self: stretch;
85
+ }
86
+ .form-group {
87
+ display: flex;
88
+ flex-direction: column;
89
+ align-items: flex-start;
90
+ gap: 6px;
91
+ flex: 1 0 0;
92
+ position: relative;
93
+ .view__icon {
94
+ position: absolute;
95
+ right: 10px;
96
+ top: 40px;
97
+ svg {
98
+ width: 15px;
99
+ height: 15px;
100
+ }
101
+ }
102
+ }
103
+ .form-group-uploadfile {
104
+ display: flex;
105
+ padding: 12px;
106
+ justify-content: center;
107
+ align-items: center;
108
+ gap: 8px;
109
+ flex: 1 0 0;
110
+ align-self: stretch;
111
+ border-radius: 4px;
112
+ border: 1px dashed var(--d-0-d-7-e-2, #d0d7e2);
113
+ background: #fafafa;
114
+ .input-control {
115
+ display: none;
116
+ }
117
+ label {
118
+ color: #4f5970;
119
+ font-family: "Hanken Grotesk";
120
+ font-size: 20px;
121
+ font-style: normal;
122
+ font-weight: 400;
123
+ line-height: 150%; /* 30px */
124
+ letter-spacing: -0.4px;
125
+ }
126
+ }
127
+ label {
128
+ color: var(--4-f-5970, #4f5970);
129
+ text-align: center;
130
+ font-family: Inter;
131
+ font-size: 14px;
132
+ font-style: normal;
133
+ font-weight: 600;
134
+ line-height: normal;
135
+ }
136
+ .input-control {
137
+ width: 100%;
138
+ display: flex;
139
+ height: 48px;
140
+ padding: 12px;
141
+ align-items: center;
142
+ gap: 10px;
143
+ align-self: stretch;
144
+ border-radius: 4px;
145
+ border: 1px solid var(--d-0-d-7-e-2, #d0d7e2);
146
+ background: var(--ffffff, #fff);
147
+ line-height: 18px;
148
+ outline: none;
149
+ transition: border-color 0.2s ease-in-out;
150
+ }
151
+ .form-column {
152
+ display: flex;
153
+ flex-direction: column;
154
+ align-items: flex-start;
155
+ gap: 10px;
156
+ align-self: stretch;
157
+ width: 100%;
158
+ .form-group {
159
+ width: 100%;
160
+ }
161
+ .textarea-control {
162
+ display: flex;
163
+ height: 120px;
164
+ padding: 12px;
165
+ align-items: flex-start;
166
+ gap: 10px;
167
+ align-self: stretch;
168
+ border-radius: 4px;
169
+ border: 1px solid var(--d-0-d-7-e-2, #d0d7e2);
170
+ background: var(--ffffff, #fff);
171
+ width: 100%;
172
+ }
173
+ }
174
+ }
175
+ .submit-btn {
176
+ display: flex;
177
+ padding: 16px 24px;
178
+ justify-content: center;
179
+ align-items: center;
180
+ gap: 12px;
181
+ flex: 1 0 0;
182
+ border-radius: 4px;
183
+ background: #243dc6;
184
+ color: #fff;
185
+ width: 100%;
186
+ }
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,27 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, CommonBuilderAttributes, GlobalImageAttributes } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface LoginStyleProperties 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: () => LoginStyleProperties;
18
+ export interface CMSLoginInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, CommonBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: LoginStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ content?: string;
27
+ }
@@ -253,6 +253,7 @@ export declare const CMSElementsListEnum: {
253
253
  LAYOUTER_ITEM: string;
254
254
  CATEGORY_DETAILS: string;
255
255
  CONTACTUS: string;
256
+ LOGIN: string;
256
257
  BREADCRUMBS: string;
257
258
  ICON_LIBRARY: string;
258
259
  };
@@ -51,5 +51,6 @@ import * as layouterSchema from "./elements/layouter/index";
51
51
  import * as layouterItemSchema from "./elements/layouter-item/index";
52
52
  import commonFunctions from "./utilities/global";
53
53
  import * as contactUsSchema from "./elements/contact-us/index";
54
+ import * as loginSchema from "./elements/login/index";
54
55
  import * as categoryDetailsSchema from "./elements/category-details/index";
55
- 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, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, };
56
+ 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, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, };
@@ -9,7 +9,9 @@ export interface selfDesignInterface {
9
9
  }
10
10
  export declare enum codeSelectorKeysEnum {
11
11
  LAYOUT = "layout",
12
- DESIGN = "design"
12
+ DESIGN = "design",
13
+ DATA_CONNECTOR = "dataConnector",
14
+ CONTENT = "content"
13
15
  }
14
16
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
15
17
  export {};
@@ -7,7 +7,9 @@ export interface selfDesignInterface {
7
7
  }
8
8
  export declare enum embedSelectorKeysEnum {
9
9
  LAYOUT = "layout",
10
- DESIGN = "design"
10
+ DESIGN = "design",
11
+ DATA_CONNECTOR = "dataConnector",
12
+ CONTENT = "content"
11
13
  }
12
14
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
13
15
  export {};
@@ -62,6 +62,7 @@ import * as layouter from "./layouter";
62
62
  import * as layouterItem from "./layouter-item";
63
63
  import * as categoryDetails from "./categoryDetails";
64
64
  import * as contactUs from "./contactUs";
65
+ import * as login from "./login";
65
66
  import * as breadcrumbs from "./breadcrumbs";
66
67
  import * as iconLibrary from "./iconLibrary";
67
- 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, breadcrumbs, iconLibrary, };
68
+ 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, breadcrumbs, iconLibrary, };
@@ -0,0 +1,15 @@
1
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
2
+ export interface LoginEditPopupInterface extends CMSElementEditPopupInterface {
3
+ }
4
+ interface selfLayoutInterface {
5
+ selectorKey: string;
6
+ }
7
+ export interface selfDesignInterface {
8
+ selectorKey: string;
9
+ }
10
+ export declare enum loginSelectorKeysEnum {
11
+ LAYOUT = "layout",
12
+ DESIGN = "design"
13
+ }
14
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
15
+ export {};
@@ -7,6 +7,7 @@ interface selfLayoutInterface {
7
7
  noOfOptionsToShowUpfront: CMSIBCommonInterface;
8
8
  showRemainingOptionsAs: CMSIBCommonInterface;
9
9
  whenClicked: CMSIBCommonInterface;
10
+ displayStyle: CMSIBCommonInterface;
10
11
  buttonText: CMSIBCommonInterface;
11
12
  dividerBetweenOptions: CMSIBCommonInterface;
12
13
  optionTitleValueSpacing: CMSIBCommonInterface;
@@ -47,13 +48,14 @@ export interface selfDesignInterface {
47
48
  iconColor: CMSIBCommonInterface;
48
49
  [key: string]: any;
49
50
  }
50
- export declare enum ButtonSelectorKeysEnum {
51
+ export declare enum SelectorKeysEnum {
51
52
  LAYOUT = "layout",
52
53
  DESIGN = "design",
53
54
  FAQ_WIDGET = "faqWidget",
54
55
  COLLAPSED_ACCRORDION_ITEM = "collapsedAccordionItem",
55
56
  EXPANDED_ACCRORDION_ITEM = "expandedAccordionItem",
56
- DIVIDER = "divider"
57
+ DIVIDER = "divider",
58
+ DATA_CONNECTOR = "dataConnector"
57
59
  }
58
60
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
59
61
  export {};
package/dist/widget.scss CHANGED
@@ -67,5 +67,6 @@
67
67
  @use "./layouter-item.scss";
68
68
  @use "./categoryDetails.scss";
69
69
  @use "./contact-us.scss";
70
+ @use "./login.scss";
70
71
  @use "./breadcrumbs.scss";
71
72
  @use "./icon-library.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.59",
3
+ "version": "0.2.60",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {