@ikas/bp-storefront 0.36.0 → 0.40.0

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 (82) hide show
  1. package/dist/_virtual/_cloneBuffer.js +1 -0
  2. package/dist/analytics/analytics.js +1 -1
  3. package/dist/analytics/google-tag-manager/productView.js +1 -1
  4. package/dist/analytics/google-tag-manager/viewCategory.js +1 -1
  5. package/dist/analytics/ikas/analytics.js +1 -1
  6. package/dist/analytics/utils.js +1 -1
  7. package/dist/ext/lodash/_arrayEach.js +1 -0
  8. package/dist/ext/lodash/_assignValue.js +1 -0
  9. package/dist/ext/lodash/_baseAssign.js +1 -0
  10. package/dist/ext/lodash/_baseAssignIn.js +1 -0
  11. package/dist/ext/lodash/_baseAssignValue.js +1 -0
  12. package/dist/ext/lodash/_baseClone.js +1 -0
  13. package/dist/ext/lodash/_baseCreate.js +1 -0
  14. package/dist/ext/lodash/_baseIsMap.js +1 -0
  15. package/dist/ext/lodash/_baseIsSet.js +1 -0
  16. package/dist/ext/lodash/_baseKeysIn.js +1 -0
  17. package/dist/ext/lodash/_cloneArrayBuffer.js +1 -0
  18. package/dist/ext/lodash/_cloneBuffer.js +1 -0
  19. package/dist/ext/lodash/_cloneDataView.js +1 -0
  20. package/dist/ext/lodash/_cloneRegExp.js +1 -0
  21. package/dist/ext/lodash/_cloneSymbol.js +1 -0
  22. package/dist/ext/lodash/_cloneTypedArray.js +1 -0
  23. package/dist/ext/lodash/_copyArray.js +1 -0
  24. package/dist/ext/lodash/_copyObject.js +1 -0
  25. package/dist/ext/lodash/_copySymbols.js +1 -0
  26. package/dist/ext/lodash/_copySymbolsIn.js +1 -0
  27. package/dist/ext/lodash/_getAllKeysIn.js +1 -0
  28. package/dist/ext/lodash/_getPrototype.js +1 -0
  29. package/dist/ext/lodash/_getSymbolsIn.js +1 -0
  30. package/dist/ext/lodash/_initCloneArray.js +1 -0
  31. package/dist/ext/lodash/_initCloneByTag.js +1 -0
  32. package/dist/ext/lodash/_initCloneObject.js +1 -0
  33. package/dist/ext/lodash/_nativeKeysIn.js +1 -0
  34. package/dist/ext/lodash/cloneDeep.js +1 -0
  35. package/dist/ext/lodash/isMap.js +1 -0
  36. package/dist/ext/lodash/isSet.js +1 -0
  37. package/dist/ext/lodash/keysIn.js +1 -0
  38. package/dist/functions/api/cart/index.js +1 -1
  39. package/dist/functions/api/loyalty/index.d.ts +1 -3
  40. package/dist/functions/api/product/index.d.ts +1 -2
  41. package/dist/functions/models/product-list/index.d.ts +19 -0
  42. package/dist/functions/models/product-list/index.js +1 -1
  43. package/dist/functions/models/validator/address/index.js +1 -1
  44. package/dist/functions/models/validator/coupon-code-form/index.js +1 -1
  45. package/dist/functions/models/validator/customer-review/index.js +1 -1
  46. package/dist/functions/models/validator/register/index.js +1 -1
  47. package/dist/functions/stores/base/index.d.ts +14 -1
  48. package/dist/functions/stores/base/index.js +1 -1
  49. package/dist/functions/stores/customer/index.d.ts +10 -1
  50. package/dist/functions/stores/customer/index.js +1 -1
  51. package/dist/index.js +1 -1
  52. package/dist/storefront-api/src/__api/queries/listLoyaltyProgramPointHistory.d.ts +2 -1
  53. package/dist/storefront-api/src/__api/types/index.d.ts +5 -0
  54. package/dist/storefront-api/src/index.d.ts +3 -0
  55. package/dist/storefront-models/src/index.d.ts +18 -0
  56. package/dist/storefront-models/src/models/_theme/styles/border-radius.d.ts +33 -0
  57. package/dist/storefront-models/src/models/_theme/styles/border-width.d.ts +6 -0
  58. package/dist/storefront-models/src/models/_theme/styles/bottom.d.ts +6 -0
  59. package/dist/storefront-models/src/models/_theme/styles/font-size.d.ts +6 -0
  60. package/dist/storefront-models/src/models/_theme/styles/gap.d.ts +6 -0
  61. package/dist/storefront-models/src/models/_theme/styles/height.d.ts +6 -0
  62. package/dist/storefront-models/src/models/_theme/styles/left.d.ts +6 -0
  63. package/dist/storefront-models/src/models/_theme/styles/letter-spacing.d.ts +6 -0
  64. package/dist/storefront-models/src/models/_theme/styles/line-height.d.ts +6 -0
  65. package/dist/storefront-models/src/models/_theme/styles/margin.d.ts +33 -0
  66. package/dist/storefront-models/src/models/_theme/styles/max-height.d.ts +6 -0
  67. package/dist/storefront-models/src/models/_theme/styles/max-width.d.ts +6 -0
  68. package/dist/storefront-models/src/models/_theme/styles/min-height.d.ts +6 -0
  69. package/dist/storefront-models/src/models/_theme/styles/min-width.d.ts +6 -0
  70. package/dist/storefront-models/src/models/_theme/styles/padding.d.ts +33 -0
  71. package/dist/storefront-models/src/models/_theme/styles/right.d.ts +6 -0
  72. package/dist/storefront-models/src/models/_theme/styles/top.d.ts +6 -0
  73. package/dist/storefront-models/src/models/_theme/styles/width.d.ts +6 -0
  74. package/dist/storefront-models/src/models/_theme/styles.d.ts +1 -5
  75. package/dist/storefront-models/src/models/blueprint/prop-value/product-list.d.ts +1 -0
  76. package/dist/storefront-models/src/models/loyalty-program/customer-info/index.d.ts +1 -0
  77. package/dist/storefront-models/src/models/product/campaign-offer/index.d.ts +4 -0
  78. package/dist/storefront-models/src/models/product/filter/index.d.ts +1 -0
  79. package/dist/storefront-models/src/models/product-list/index.d.ts +10 -1
  80. package/dist/theme/styles/index.d.ts +33 -2
  81. package/dist/theme/styles/index.js +1 -1
  82. package/package.json +1 -1
@@ -3,5 +3,8 @@ export declare function setAPIClientConfig(): void;
3
3
  export * from "./__api/types";
4
4
  export { APIErrorCode, APIResponse } from "../../storefront-api-client/src";
5
5
  export { Config as IkasAPIClientConfig };
6
+ export type { UseLoyaltyPointsQueryParams } from "./__api/mutations/useLoyaltyPoints";
6
7
  export type { ListCategoryQueryParams } from "./__api/queries/listCategory";
8
+ export type { ListLoyaltyProgramPointHistoryQueryParams } from "./__api/queries/listLoyaltyProgramPointHistory";
7
9
  export type { ListProductBrandQueryParams } from "./__api/queries/listProductBrand";
10
+ export type { SearchProductsQueryParams } from "./__api/queries/searchProducts";
@@ -1,4 +1,22 @@
1
1
  export * from "./models/_theme/styles";
2
+ export * from "./models/_theme/styles/border-radius";
3
+ export * from "./models/_theme/styles/border-width";
4
+ export * from "./models/_theme/styles/bottom";
5
+ export * from "./models/_theme/styles/font-size";
6
+ export * from "./models/_theme/styles/gap";
7
+ export * from "./models/_theme/styles/height";
8
+ export * from "./models/_theme/styles/left";
9
+ export * from "./models/_theme/styles/letter-spacing";
10
+ export * from "./models/_theme/styles/line-height";
11
+ export * from "./models/_theme/styles/margin";
12
+ export * from "./models/_theme/styles/max-height";
13
+ export * from "./models/_theme/styles/max-width";
14
+ export * from "./models/_theme/styles/min-height";
15
+ export * from "./models/_theme/styles/min-width";
16
+ export * from "./models/_theme/styles/padding";
17
+ export * from "./models/_theme/styles/right";
18
+ export * from "./models/_theme/styles/top";
19
+ export * from "./models/_theme/styles/width";
2
20
  export * from "./models/attribute-detail";
3
21
  export * from "./models/attribute-list";
4
22
  export * from "./models/base";
@@ -0,0 +1,33 @@
1
+ export type BorderRadiusStyleTypeConfig = {
2
+ top?: boolean | null;
3
+ right?: boolean | null;
4
+ bottom?: boolean | null;
5
+ left?: boolean | null;
6
+ };
7
+ export type BorderRadiusStyleType = {
8
+ css?: string;
9
+ value?: number;
10
+ unit?: BorderRadiusStyleUnitType;
11
+ excludedFields?: string[];
12
+ };
13
+ export type BorderRadiusTopLeftStyleType = {
14
+ css?: string;
15
+ value?: number;
16
+ unit?: BorderRadiusStyleUnitType;
17
+ };
18
+ export type BorderRadiusTopRightStyleType = {
19
+ css?: string;
20
+ value?: number;
21
+ unit?: BorderRadiusStyleUnitType;
22
+ };
23
+ export type BorderRadiusBottomRightStyleType = {
24
+ css?: string;
25
+ value?: number;
26
+ unit?: BorderRadiusStyleUnitType;
27
+ };
28
+ export type BorderRadiusBottomLeftStyleType = {
29
+ css?: string;
30
+ value?: number;
31
+ unit?: BorderRadiusStyleUnitType;
32
+ };
33
+ export type BorderRadiusStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type BorderWidthStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: BorderWidthStyleUnitType;
5
+ };
6
+ export type BorderWidthStyleUnitType = "px" | "em" | "rem" | "%" | "vh" | "vw" | "vmin" | "vmax";
@@ -0,0 +1,6 @@
1
+ export type BottomStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: BottomStyleUnitType;
5
+ };
6
+ export type BottomStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type FontSizeStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: FontSizeStyleUnitType;
5
+ };
6
+ export type FontSizeStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type GapStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: GapStyleUnitType;
5
+ };
6
+ export type GapStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type HeightStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: HeightStyleUnitType;
5
+ };
6
+ export type HeightStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type LeftStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: LeftStyleUnitType;
5
+ };
6
+ export type LeftStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type LetterSpacingStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: LetterSpacingStyleUnitType;
5
+ };
6
+ export type LetterSpacingStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type LineHeightStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: LineHeightStyleUnitType;
5
+ };
6
+ export type LineHeightStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,33 @@
1
+ export type MarginStyleTypeConfig = {
2
+ top?: boolean | null;
3
+ right?: boolean | null;
4
+ bottom?: boolean | null;
5
+ left?: boolean | null;
6
+ };
7
+ export type MarginStyleType = {
8
+ css?: string;
9
+ value?: number;
10
+ unit?: MarginStyleUnitType;
11
+ excludedFields?: string[];
12
+ };
13
+ export type MarginTopStyleType = {
14
+ css?: string;
15
+ value?: number;
16
+ unit?: MarginStyleUnitType;
17
+ };
18
+ export type MarginRightStyleType = {
19
+ css?: string;
20
+ value?: number;
21
+ unit?: MarginStyleUnitType;
22
+ };
23
+ export type MarginBottomStyleType = {
24
+ css?: string;
25
+ value?: number;
26
+ unit?: MarginStyleUnitType;
27
+ };
28
+ export type MarginLeftStyleType = {
29
+ css?: string;
30
+ value?: number;
31
+ unit?: MarginStyleUnitType;
32
+ };
33
+ export type MarginStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type MaxHeightStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: MaxHeightStyleUnitType;
5
+ };
6
+ export type MaxHeightStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type MaxWidthStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: MaxWidthStyleUnitType;
5
+ };
6
+ export type MaxWidthStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type MinHeightStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: MinHeightStyleUnitType;
5
+ };
6
+ export type MinHeightStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type MinWidthStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: MinWidthStyleUnitType;
5
+ };
6
+ export type MinWidthStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,33 @@
1
+ export type PaddingStyleTypeConfig = {
2
+ top?: boolean | null;
3
+ right?: boolean | null;
4
+ bottom?: boolean | null;
5
+ left?: boolean | null;
6
+ };
7
+ export type PaddingStyleType = {
8
+ css?: string;
9
+ value?: number;
10
+ unit?: PaddingStyleUnitType;
11
+ excludedFields?: string[];
12
+ };
13
+ export type PaddingTopStyleType = {
14
+ css?: string;
15
+ value?: number;
16
+ unit?: PaddingStyleUnitType;
17
+ };
18
+ export type PaddingRightStyleType = {
19
+ css?: string;
20
+ value?: number;
21
+ unit?: PaddingStyleUnitType;
22
+ };
23
+ export type PaddingBottomStyleType = {
24
+ css?: string;
25
+ value?: number;
26
+ unit?: PaddingStyleUnitType;
27
+ };
28
+ export type PaddingLeftStyleType = {
29
+ css?: string;
30
+ value?: number;
31
+ unit?: PaddingStyleUnitType;
32
+ };
33
+ export type PaddingStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type RightStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: RightStyleUnitType;
5
+ };
6
+ export type RightStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type TopStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: TopStyleUnitType;
5
+ };
6
+ export type TopStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -0,0 +1,6 @@
1
+ export type WidthStyleType = {
2
+ css?: string;
3
+ value?: number;
4
+ unit?: WidthStyleUnitType;
5
+ };
6
+ export type WidthStyleUnitType = "px" | "rem" | "%" | "vh" | "vw";
@@ -1,3 +1,4 @@
1
+ import { BorderWidthStyleType } from "./styles/border-width";
1
2
  export type BorderStyleType = {
2
3
  width: BorderWidthStyleType;
3
4
  style: BorderStyleStyleType;
@@ -11,12 +12,7 @@ export type BoxShadowStyleType = {
11
12
  spread: number;
12
13
  color: string;
13
14
  };
14
- export type BorderWidthStyleType = {
15
- value: number;
16
- unit: BorderWidthUnitStyleType;
17
- };
18
15
  export type BorderStyleStyleType = "solid" | "dashed" | "dotted" | "double" | "groove";
19
- export type BorderWidthUnitStyleType = "px" | "em" | "rem" | "%" | "vh" | "vw" | "vmin" | "vmax";
20
16
  export type SizeStyleType = {
21
17
  css?: string;
22
18
  value?: number;
@@ -8,6 +8,7 @@ export interface IBlueprintProductListPropValue {
8
8
  productIds?: IkasProductVariantIdPair[] | null;
9
9
  usePageFilter?: boolean | null;
10
10
  category?: string | null;
11
+ brand?: string | null;
11
12
  relatedProductsType?: IkasRelatedProductsType | null;
12
13
  }
13
14
  export type IkasProductVariantIdPair = {
@@ -4,6 +4,7 @@ export type IkasCartLoyaltyLine = {
4
4
  campaignType: CampaignTypeEnum | null;
5
5
  discountAmount: number;
6
6
  discountAmountType: OrderAmountTypeEnum;
7
+ discountPercentage: number | null;
7
8
  loyaltySpendingMethodId: string;
8
9
  pointUsed: number;
9
10
  };
@@ -1,3 +1,4 @@
1
+ import { OrderAmountTypeEnum } from "../../../../../storefront-api/src";
1
2
  import { IkasProduct } from "..";
2
3
  export type IkasProductCampaignOffer = {
3
4
  id: string;
@@ -8,4 +9,7 @@ export type IkasProductOffer = {
8
9
  product: IkasProduct;
9
10
  isSelected?: boolean;
10
11
  quantity?: number;
12
+ title?: string;
13
+ description?: string;
14
+ discountType?: OrderAmountTypeEnum;
11
15
  };
@@ -13,6 +13,7 @@ export type IkasProductFilter = {
13
13
  numberRange?: IkasFilterRangeValue | null;
14
14
  numberRangeLimit?: IkasFilterRangeValue | null;
15
15
  numberRangeListOptions?: IkasProductFilterNumberRangeListOption[] | null;
16
+ isCollapsed?: boolean | null;
16
17
  };
17
18
  export type IkasApplicableProductFilterValue = {
18
19
  id: string;
@@ -20,8 +20,10 @@ export type IkasProductList = {
20
20
  isInitialized: boolean;
21
21
  filterBrandId?: string | null;
22
22
  filterCategoryId?: string | null;
23
+ recommendedProductData?: IkasRecommendedProductProps | null;
23
24
  relatedProductData?: IkasRelatedProductProps | null;
24
25
  viewedTogetherProductData?: IkasViewedTogetherProductProps | null;
26
+ purchasedTogetherProductData?: IkasPurchasedTogetherProductProps | null;
25
27
  pageType: IkasThemePageType;
26
28
  recommendFor?: string | null;
27
29
  fetchRequestTime?: number;
@@ -31,7 +33,7 @@ export type IkasProductList = {
31
33
  suggestionCategoryId?: string | null;
32
34
  _enableSuggestions?: boolean | null;
33
35
  };
34
- export type IkasProductListType = "ALL" | "STATIC" | "DISCOUNTED" | "RECOMMENDED" | "CATEGORY" | "SEARCH" | "LAST_VIEWED" | "RELATED_PRODUCTS" | "VIEWED_TOGETHER";
36
+ export type IkasProductListType = "ALL" | "STATIC" | "DISCOUNTED" | "RECOMMENDED" | "CATEGORY" | "SEARCH" | "LAST_VIEWED" | "RELATED_PRODUCTS" | "VIEWED_TOGETHER" | "PURCHASED_TOGETHER";
35
37
  export type IkasProductListSortType = "INCREASING_PRICE" | "DECREASING_PRICE" | "LAST_ADDED" | "FIRST_ADDED" | "INCREASING_DISCOUNT" | "DECRASING_DISCOUNT" | "FEATURED" | "DEFAULT" | "AVERAGE_RATING" | "REVIEW_COUNT" | "SALE_COUNT" | "A_Z" | "Z_A";
36
38
  export type IkasProductListSortByTypeEnum = "AVERAGE_RATING" | "CREATED_AT" | "DISCOUNT_RATIO" | "MANUAL_SORT" | "NAME" | "PRICE" | "REVIEW_COUNT" | "SALE_COUNT";
37
39
  export type IkasRelatedProductsType = "CATEGORY" | "BRAND";
@@ -43,6 +45,10 @@ export type IkasProductListFacetValue = {
43
45
  id: string;
44
46
  count: number;
45
47
  };
48
+ export type IkasRecommendedProductProps = {
49
+ brandIds: string[] | null;
50
+ categoryIds: string[] | null;
51
+ };
46
52
  export type IkasRelatedProductProps = {
47
53
  brandIds: string[] | null;
48
54
  categoryIds: string[] | null;
@@ -51,3 +57,6 @@ export type IkasRelatedProductProps = {
51
57
  export type IkasViewedTogetherProductProps = {
52
58
  productIds: string[];
53
59
  };
60
+ export type IkasPurchasedTogetherProductProps = {
61
+ productIds: string[];
62
+ };
@@ -1,7 +1,38 @@
1
- import { BorderStyleType, BoxShadowStyleType, GridTemplateColumnsStyleType, SizeStyleType } from "../../storefront-models/src";
2
- export declare const getFormattedStyleVariable: (property: "border" | "shadow" | "justify-content" | "align-items" | "flex-direction" | "grid-template-columns" | "object-fit" | (typeof SIZE_PROPERTIES)[number], value: any) => any;
1
+ import { BorderRadiusBottomLeftStyleType, BorderRadiusBottomRightStyleType, BorderRadiusStyleType, BorderRadiusTopLeftStyleType, BorderRadiusTopRightStyleType, BorderStyleType, BorderWidthStyleType, BottomStyleType, BoxShadowStyleType, FontSizeStyleType, GapStyleType, GridTemplateColumnsStyleType, HeightStyleType, LeftStyleType, LetterSpacingStyleType, LineHeightStyleType, MarginBottomStyleType, MarginLeftStyleType, MarginRightStyleType, MarginStyleType, MarginTopStyleType, MaxHeightStyleType, MaxWidthStyleType, MinHeightStyleType, MinWidthStyleType, PaddingBottomStyleType, PaddingLeftStyleType, PaddingRightStyleType, PaddingStyleType, PaddingTopStyleType, RightStyleType, SizeStyleType, TopStyleType, WidthStyleType } from "../../storefront-models/src";
2
+ export declare const getFormattedStyleVariable: (property: (typeof DYNAMIC_STYLE_PROPERTIES)[number], value: any) => any;
3
3
  export declare const getFormattedShadow: (shadow: BoxShadowStyleType) => string;
4
4
  export declare const getFormattedGridTemplateColumns: (gridTemplateColumns?: GridTemplateColumnsStyleType) => string | undefined;
5
+ export declare const getFormattedPaddingSize: (padding?: PaddingStyleType) => string;
6
+ export declare const getFormattedPaddingMarginSize: (padding?: MarginStyleType) => string;
7
+ export declare const getFormattedBorderRadiusSize: (borderRadius?: BorderRadiusStyleType) => string;
5
8
  export declare const getFormattedSize: (size?: SizeStyleType) => string;
9
+ export declare const getFormattedPaddingTopSize: (paddingTop?: PaddingTopStyleType) => string;
10
+ export declare const getFormattedPaddingRightSize: (paddingRight?: PaddingRightStyleType) => string;
11
+ export declare const getFormattedPaddingBottomSize: (paddingBottom?: PaddingBottomStyleType) => string;
12
+ export declare const getFormattedPaddingLeftSize: (paddingLeft?: PaddingLeftStyleType) => string;
13
+ export declare const getFormattedMarginTopSize: (marginTop?: MarginTopStyleType) => string;
14
+ export declare const getFormattedMarginRightSize: (marginRight?: MarginRightStyleType) => string;
15
+ export declare const getFormattedMarginBottomSize: (marginBottom?: MarginBottomStyleType) => string;
16
+ export declare const getFormattedMarginLeftSize: (marginLeft?: MarginLeftStyleType) => string;
17
+ export declare const getFormattedBorderRadiusTopLeftSize: (borderRadiusTopLeft?: BorderRadiusTopLeftStyleType) => string;
18
+ export declare const getFormattedBorderRadiusTopRightSize: (borderRadiusTopRight?: BorderRadiusTopRightStyleType) => string;
19
+ export declare const getFormattedBorderRadiusBottomLeftSize: (borderRadiusBottomLeft?: BorderRadiusBottomLeftStyleType) => string;
20
+ export declare const getFormattedBorderRadiusBottomRightSize: (borderRadiusBottomRight?: BorderRadiusBottomRightStyleType) => string;
21
+ export declare const getFormattedFontSize: (fontSize?: FontSizeStyleType) => string;
22
+ export declare const getFormattedLineHeightSize: (lineHeight?: LineHeightStyleType) => string;
23
+ export declare const getFormattedLetterSpacingSize: (letterSpacing?: LetterSpacingStyleType) => string;
24
+ export declare const getFormattedHeightSize: (height?: HeightStyleType) => string;
25
+ export declare const getFormattedMinHeightSize: (minHeight?: MinHeightStyleType) => string;
26
+ export declare const getFormattedMaxHeightSize: (maxHeight?: MaxHeightStyleType) => string;
27
+ export declare const getFormattedWidthSize: (width?: WidthStyleType) => string;
28
+ export declare const getFormattedMinWidthSize: (minWidth?: MinWidthStyleType) => string;
29
+ export declare const getFormattedMaxWidthSize: (maxWidth?: MaxWidthStyleType) => string;
30
+ export declare const getFormattedGapSize: (gap?: GapStyleType) => string;
31
+ export declare const getFormattedBorderWidthSizeSize: (borderWidth?: BorderWidthStyleType) => string;
32
+ export declare const getFormattedTopSize: (top?: TopStyleType) => string;
33
+ export declare const getFormattedRightSize: (right?: RightStyleType) => string;
34
+ export declare const getFormattedBottomSize: (bottom?: BottomStyleType) => string;
35
+ export declare const getFormattedLeftSize: (left?: LeftStyleType) => string;
6
36
  export declare const getFormattedBorder: (border?: BorderStyleType) => string;
7
37
  export declare const SIZE_PROPERTIES: string[];
38
+ export declare const DYNAMIC_STYLE_PROPERTIES: string[];
@@ -1 +1 @@
1
- var t=function(t,a){return"border"===t?c(a):d.includes(t)?o(a):"shadow"===t?n(a):"grid-template-columns"===t?i(a):a},n=function(t){var n="inside"===(null==t?void 0:t.position)?"inset ":"";return"".concat(n).concat(null==t?void 0:t.x,"px ").concat(null==t?void 0:t.y,"px ").concat(null==t?void 0:t.blur,"px ").concat(null==t?void 0:t.spread,"px ").concat(null==t?void 0:t.color)},i=function(t){return t?t.css:""},o=function(t){return t?t.css?t.css:"".concat(t.value).concat(t.unit):""},c=function(t){var n,i;return t&&(null===(n=t.width)||void 0===n?void 0:n.value)&&(null===(i=t.width)||void 0===i?void 0:i.unit)&&t.color?"".concat(t.width.value).concat(t.width.unit," ").concat(t.style||"solid"," ").concat(t.color):""},d=["font-size","line-height","letter-spacing","height","width","max-height","max-width","min-width","min-height","margin-top","margin-right","margin-bottom","margin-left","padding-top","padding-right","padding-bottom","padding-left","gap","padding","margin","border-radius","border-width","top","right","bottom","left"];export{d as SIZE_PROPERTIES,c as getFormattedBorder,i as getFormattedGridTemplateColumns,n as getFormattedShadow,o as getFormattedSize,t as getFormattedStyleVariable};
1
+ var n=function(n,e){var d,l,a;return"border"===n?I(e):"shadow"===n?t(e):"grid-template-columns"===n?r(e):"padding"===n&&((null===(d=null==e?void 0:e.excludedFields)||void 0===d?void 0:d.length)||0)>0?o(e):"margin"===n&&((null===(l=null==e?void 0:e.excludedFields)||void 0===l?void 0:l.length)||0)>0?i(e):"border-radius"===n&&((null===(a=null==e?void 0:e.excludedFields)||void 0===a?void 0:a.length)||0)>0?u(e):J.includes(n)?c(e):e},t=function(n){var t="inside"===(null==n?void 0:n.position)?"inset ":"";return"".concat(t).concat(null==n?void 0:n.x,"px ").concat(null==n?void 0:n.y,"px ").concat(null==n?void 0:n.blur,"px ").concat(null==n?void 0:n.spread,"px ").concat(null==n?void 0:n.color)},r=function(n){return n?n.css:""},o=function(n){if(!n)return"";if(n.css)return n.css;var t=n.excludedFields||[],r=n.value?"".concat(n.value).concat(n.unit||"px"):"0",o=t.includes("top")?"0":r,i=t.includes("right")?"0":r,u=t.includes("bottom")?"0":r,c=t.includes("left")?"0":r;return"".concat(o," ").concat(i," ").concat(u," ").concat(c)},i=function(n){if(!n)return"";if(n.css)return n.css;var t=n.excludedFields||[],r=n.value?"".concat(n.value).concat(n.unit||"px"):"0",o=t.includes("top")?"0":r,i=t.includes("right")?"0":r,u=t.includes("bottom")?"0":r,c=t.includes("left")?"0":r;return"".concat(o," ").concat(i," ").concat(u," ").concat(c)},u=function(n){if(!n)return"";if(n.css)return n.css;var t=n.excludedFields||[],r=n.value?"".concat(n.value).concat(n.unit||"px"):"0",o=t.includes("border-top-left-radius")?"0":r,i=t.includes("border-top-right-radius")?"0":r,u=t.includes("border-bottom-right-radius")?"0":r,c=t.includes("border-bottom-left-radius")?"0":r;return"".concat(o," ").concat(i," ").concat(u," ").concat(c)},c=function(n){return n?n.css?n.css:"".concat(n.value).concat(n.unit):""},e=function(n){return c(n)},d=function(n){return c(n)},l=function(n){return c(n)},a=function(n){return c(n)},s=function(n){return c(n)},f=function(n){return c(n)},g=function(n){return c(n)},v=function(n){return c(n)},h=function(n){return c(n)},p=function(n){return c(n)},b=function(n){return c(n)},m=function(n){return c(n)},x=function(n){return c(n)},w=function(n){return c(n)},F=function(n){return c(n)},y=function(n){return c(n)},j=function(n){return c(n)},k=function(n){return c(n)},z=function(n){return c(n)},q=function(n){return c(n)},A=function(n){return c(n)},B=function(n){return c(n)},C=function(n){return c(n)},D=function(n){return c(n)},E=function(n){return c(n)},G=function(n){return c(n)},H=function(n){return c(n)},I=function(n){var t,r;return n&&(null===(t=n.width)||void 0===t?void 0:t.value)&&(null===(r=n.width)||void 0===r?void 0:r.unit)&&n.color?"".concat(n.width.value).concat(n.width.unit," ").concat(n.style||"solid"," ").concat(n.color):""},J=["margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","font-size","line-height","letter-spacing","height","min-height","max-height","width","min-width","max-width","gap","border-width","top","right","bottom","left"],K=J.concat(["border","border-color","shadow","justify-content","align-items","flex-direction","grid-template-columns","object-fit","color","background-color","background"]);export{K as DYNAMIC_STYLE_PROPERTIES,J as SIZE_PROPERTIES,I as getFormattedBorder,b as getFormattedBorderRadiusBottomLeftSize,m as getFormattedBorderRadiusBottomRightSize,u as getFormattedBorderRadiusSize,h as getFormattedBorderRadiusTopLeftSize,p as getFormattedBorderRadiusTopRightSize,C as getFormattedBorderWidthSizeSize,G as getFormattedBottomSize,x as getFormattedFontSize,B as getFormattedGapSize,r as getFormattedGridTemplateColumns,y as getFormattedHeightSize,H as getFormattedLeftSize,F as getFormattedLetterSpacingSize,w as getFormattedLineHeightSize,g as getFormattedMarginBottomSize,v as getFormattedMarginLeftSize,f as getFormattedMarginRightSize,s as getFormattedMarginTopSize,k as getFormattedMaxHeightSize,A as getFormattedMaxWidthSize,j as getFormattedMinHeightSize,q as getFormattedMinWidthSize,l as getFormattedPaddingBottomSize,a as getFormattedPaddingLeftSize,i as getFormattedPaddingMarginSize,d as getFormattedPaddingRightSize,o as getFormattedPaddingSize,e as getFormattedPaddingTopSize,E as getFormattedRightSize,t as getFormattedShadow,c as getFormattedSize,n as getFormattedStyleVariable,D as getFormattedTopSize,z as getFormattedWidthSize};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/bp-storefront",
3
- "version": "0.36.0",
3
+ "version": "0.40.0",
4
4
  "description": "A framework for the ikas blueprint storefronts.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",