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

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,38 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="cartAttributes"] {
6
+ width: var(
7
+ --_ctm-mob-ele-nw-wh-st-mx,
8
+ var(
9
+ --_ctm-tab-ele-nw-wh-st-mx,
10
+ var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))))
11
+ )
12
+ );
13
+
14
+ margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
15
+
16
+ height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
17
+
18
+ // aspect-ratio: var(
19
+ // --_ctm-mob-aspect-ratio,
20
+ // var(--_ctm-tab-aspect-ratio, var(--_sf-aspect-ratio))
21
+ // );
22
+
23
+ & > .wrapper {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ width: 100%;
28
+ height: 100%;
29
+ }
30
+
31
+ .cart__section {
32
+ display: flex;
33
+ align-items: center;
34
+ cursor: pointer;
35
+ gap: 8px;
36
+ }
37
+ }
38
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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
  }
@@ -176,3 +177,12 @@ export declare enum FormRequiredFieldPlacement {
176
177
  BeforeField = 1,
177
178
  AfterField = 2
178
179
  }
180
+ export declare enum GENDEREnum {
181
+ MALE = 1,
182
+ FEMALE = 2,
183
+ OTHER = 3
184
+ }
185
+ export declare const genderConstant: {
186
+ label: string;
187
+ value: GENDEREnum;
188
+ }[];
@@ -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 {};