@sc-360-v2/storefront-cms-library 0.3.19 → 0.3.21

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.
@@ -1,5 +1,6 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
+ @use "./functions.scss" as *;
3
4
  $activeElementSelector: "[data-has-clicked='true']";
4
5
  [data-div-type="element"] {
5
6
  &[data-element-type="container"] {
@@ -36,6 +37,7 @@ $activeElementSelector: "[data-has-clicked='true']";
36
37
  & > div {
37
38
  &.wrapper {
38
39
  width: 100%;
40
+ min-height: prepareMediaVariable(--_ctm-con-lt-mn-ht);
39
41
  padding: var(--_ctm-mob-con-lt-pg, var(--_ctm-tab-con-lt-pg, var(--_ctm-con-lt-pg)));
40
42
 
41
43
  background-color: var(
@@ -3,7 +3,7 @@
3
3
  width: 100%;
4
4
  }
5
5
 
6
- .dropdown_label {
6
+ .fb_dropdown_label {
7
7
  width: 100%;
8
8
  height: 40px;
9
9
  border: 1px solid var(--_gray-300);
@@ -29,13 +29,18 @@
29
29
  color: var(--_gray-400);
30
30
  }
31
31
 
32
- .dropdown_text {
32
+ .fb_dropdown_text {
33
33
  color: var(--_gray-800);
34
+ white-space: nowrap;
35
+ overflow: hidden;
36
+ text-overflow: ellipsis;
37
+ max-width: 90%;
34
38
  }
35
39
 
36
- .dropdown_icon {
40
+ .fb_dropdown_icon {
37
41
  display: flex;
38
42
  transition: transform 300ms ease;
43
+
39
44
  svg {
40
45
  width: 16px;
41
46
  height: 16px;
@@ -60,7 +65,7 @@
60
65
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
61
66
 
62
67
  &.drop-up {
63
- bottom: 44px; // height of dropdown + margin
68
+ bottom: 44px;
64
69
  top: auto;
65
70
  margin-top: 0;
66
71
  margin-bottom: 4px;
@@ -80,12 +85,20 @@
80
85
  }
81
86
 
82
87
  .dropdown_option {
83
- padding: 10px 12px;
88
+ display: flex;
89
+ align-items: center;
90
+ gap: 8px;
91
+ padding: 8px 12px;
84
92
  font-size: 14px;
85
93
  color: var(--_gray-700);
86
94
  cursor: pointer;
87
95
  transition: background 0.2s;
88
96
 
97
+ input[type="checkbox"] {
98
+ margin: 0;
99
+ pointer-events: none;
100
+ }
101
+
89
102
  &:hover {
90
103
  background-color: var(--_primary-50);
91
104
  color: var(--_primary-500);
@@ -99,3 +112,10 @@
99
112
  }
100
113
  }
101
114
  }
115
+
116
+ .empty-options {
117
+ padding: 10px 12px;
118
+ color: var(--_gray-500);
119
+ font-size: 14px;
120
+ text-align: center;
121
+ }
@@ -1187,6 +1187,9 @@
1187
1187
  // height: 100%;
1188
1188
  position: absolute;
1189
1189
  }
1190
+ a:has(img) {
1191
+ width: 100%;
1192
+ }
1190
1193
 
1191
1194
  &[data-widget-alignment="top"] {
1192
1195
  // align-items: flex-start;
@@ -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 CartAttributesStyleProperties 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: () => CartAttributesStyleProperties;
18
+ export interface CMSAttributesInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: CartAttributesStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ content: string;
27
+ }
@@ -3,7 +3,6 @@ import { CommonStyleProperties } from "../../../global/style-properties";
3
3
  import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
4
4
  import { BuilderAttributes } from "../common";
5
5
  export interface ContainerStyleProperties extends CommonStyleProperties {
6
- minHeight: string;
7
6
  minWidth: string;
8
7
  maxWidth: string;
9
8
  maxHeight: string;
@@ -49,10 +49,13 @@ export declare enum FormElementTypeEnum {
49
49
  export declare enum FormElementIdEnum {
50
50
  FirstName = "FirstName",
51
51
  LastName = "LastName",
52
+ UserName = "UserName",
52
53
  Email = "Email",
53
54
  Password = "Password",
54
55
  Phone = "Phone",
55
56
  DateOfBirth = "DateOfBirth",
57
+ Honorific = "Honorific",
58
+ Gender = "Gender",
56
59
  Address = "Address",
57
60
  InputText = "InputText",
58
61
  ShortAnswer = "ShortAnswer",
@@ -73,8 +76,6 @@ export declare enum FormElementIdEnum {
73
76
  ResetButton = "ResetButton",
74
77
  LoginButton = "LoginButton",
75
78
  SignupButton = "SignupButton",
76
- CustomAttribute1 = "CustomAttribute1",
77
- CustomAttribute2 = "CustomAttribute2",
78
79
  Header = "Header",
79
80
  Text = "Text"
80
81
  }
@@ -107,6 +108,7 @@ export interface FormComponentConfig {
107
108
  options?: string[];
108
109
  src?: string;
109
110
  captionsSrc?: string;
111
+ customAttributeKey?: string;
110
112
  href?: string;
111
113
  html?: string;
112
114
  showElementProperties: ElementSettingEnum[];
@@ -176,3 +178,35 @@ export declare enum FormRequiredFieldPlacement {
176
178
  BeforeField = 1,
177
179
  AfterField = 2
178
180
  }
181
+ export declare enum GENDEREnum {
182
+ MALE = 1,
183
+ FEMALE = 2,
184
+ OTHER = 3
185
+ }
186
+ export declare const genderConstant: {
187
+ label: string;
188
+ value: GENDEREnum;
189
+ }[];
190
+ export declare enum AttributeDataType {
191
+ STRING = 1,
192
+ DATE = 2,
193
+ INTEGER = 3,
194
+ FILE = 4,
195
+ IMAGE = 5,
196
+ COLORPICKER = 6,
197
+ CURRENCY = 7,
198
+ BOOLEAN = 8,
199
+ BIGINTEGER = 9,
200
+ DATEANDTIME = 10,
201
+ DECIMAL = 11,
202
+ MULTISELECT = 12,
203
+ PERCENT = 13,
204
+ SELECT = 14,
205
+ TEXTEDITOR = 15
206
+ }
207
+ export declare function getCompTypeByAttrId(dataTypeId: AttributeDataType): {
208
+ id: FormElementIdEnum;
209
+ type: FormComponentTypeEnum;
210
+ fieldType: FormElementTypeEnum;
211
+ key: string;
212
+ };
@@ -14,7 +14,6 @@ export interface SectionAttributes extends CMSHTMLAttributes {
14
14
  dataMeta?: string;
15
15
  }
16
16
  export interface SectionStyleProperties extends CommonStyleProperties {
17
- minHeight?: string;
18
17
  height?: string;
19
18
  minWidth?: string;
20
19
  maxWidth?: string;
@@ -323,6 +323,7 @@ export declare const CMSElementsListEnum: {
323
323
  FILTER_RESULTS: string;
324
324
  PRODUCT_SIZECHART: string;
325
325
  BADGE: string;
326
+ CART_ATTRIBUTES: string;
326
327
  };
327
328
  export declare enum CMSResponsiveModeEnums {
328
329
  DESKTOP = "desktop",
@@ -81,4 +81,5 @@ import * as userElementsSchema from "./elements/user-elements/index";
81
81
  import * as filterResultsSchema from "./elements/filter-results/index";
82
82
  import * as productSizeChartSchema from "./elements/product-sizechart/index";
83
83
  import * as badgeSchema from "./elements/badge/index";
84
- 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, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, };
84
+ import * as cartAttributesSchema from "./elements/cart-attributes/index";
85
+ 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, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, cartAttributesSchema, };
@@ -0,0 +1,13 @@
1
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
2
+ interface selfLayoutInterface {
3
+ selectorKey: string;
4
+ }
5
+ export interface selfDesignInterface {
6
+ selectorKey: string;
7
+ }
8
+ export declare enum cartSelectorKeysEnum {
9
+ LAYOUT = "layout",
10
+ DESIGN = "design"
11
+ }
12
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
13
+ export {};