@gem-sdk/components 2.0.0-staging.954 → 2.0.0-staging.956
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.
- package/dist/cjs/button/common/helpers.js +1 -1
- package/dist/cjs/button/common/styles.js +17 -17
- package/dist/cjs/cart/components/Cart.js +1 -1
- package/dist/cjs/header/components/kind/basic/DesktopMenu.js +1 -1
- package/dist/cjs/header/components/kind/basic/DesktopMenuItem.js +1 -1
- package/dist/cjs/header/components/kind/basic/MenuMobileItem.js +1 -1
- package/dist/cjs/header/components/kind/basic/MobileMenu.js +1 -1
- package/dist/cjs/header/components/kind/basic/index.js +1 -1
- package/dist/cjs/header/components/kind/modern/index.js +1 -1
- package/dist/cjs/header/settings/configs/settings.js +1 -1
- package/dist/cjs/header/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/icon-list-v2/common/styles.js +1 -1
- package/dist/cjs/icon-list-v2/settings/configs/settings.js +1 -1
- package/dist/cjs/icon-list-v2/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/useSlideCarousel.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-image/configs/settings-v2.js +1 -1
- package/dist/cjs/product/components/product-bundle/common/styles.js +1 -1
- package/dist/cjs/product/components/product-bundle/setting/ProductBundleDiscount.js +2 -2
- package/dist/cjs/product/components/product-bundle/setting/configs/settings.js +1 -0
- package/dist/cjs/product/components/product-bundle/setting/configs/ui-v2.js +1 -1
- package/dist/cjs/tab/common/styles.js +1 -1
- package/dist/cjs/text/common/styles.js +1 -1
- package/dist/esm/button/common/helpers.js +1 -1
- package/dist/esm/button/common/styles.js +16 -16
- package/dist/esm/cart/components/Cart.js +1 -1
- package/dist/esm/header/components/kind/basic/DesktopMenu.js +1 -1
- package/dist/esm/header/components/kind/basic/DesktopMenuItem.js +1 -1
- package/dist/esm/header/components/kind/basic/MenuMobileItem.js +1 -1
- package/dist/esm/header/components/kind/basic/MobileMenu.js +1 -1
- package/dist/esm/header/components/kind/basic/index.js +1 -1
- package/dist/esm/header/components/kind/modern/index.js +1 -1
- package/dist/esm/header/settings/configs/settings.js +1 -1
- package/dist/esm/header/settings/configs/ui-v2.js +1 -1
- package/dist/esm/icon-list-v2/common/styles.js +1 -1
- package/dist/esm/icon-list-v2/settings/configs/settings.js +1 -1
- package/dist/esm/icon-list-v2/settings/configs/ui-v2.js +1 -1
- package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +1 -1
- package/dist/esm/post-purchase/product/hooks/useSlideCarousel.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-image/configs/settings-v2.js +1 -1
- package/dist/esm/product/components/product-bundle/common/styles.js +1 -1
- package/dist/esm/product/components/product-bundle/setting/ProductBundleDiscount.js +2 -2
- package/dist/esm/product/components/product-bundle/setting/configs/settings.js +1 -0
- package/dist/esm/product/components/product-bundle/setting/configs/ui-v2.js +1 -1
- package/dist/esm/tab/common/styles.js +1 -1
- package/dist/esm/text/common/styles.js +1 -1
- package/dist/types/index.d.ts +22 -17
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -931,12 +931,13 @@ type CartSettingProps = {
|
|
|
931
931
|
svgIcon?: string;
|
|
932
932
|
iconOnly?: boolean;
|
|
933
933
|
label?: string;
|
|
934
|
+
enableHoverEffect?: boolean;
|
|
934
935
|
};
|
|
935
936
|
type CartStyleProps = {
|
|
936
937
|
iconColor?: StateProp<ColorValueType>;
|
|
937
938
|
};
|
|
938
939
|
type CartSidebarSettingProps = {
|
|
939
|
-
setting: Pick<CartSettingProps, 'svgIcon' | 'iconOnly' | 'label'>;
|
|
940
|
+
setting: Pick<CartSettingProps, 'svgIcon' | 'iconOnly' | 'label' | 'enableHoverEffect'>;
|
|
940
941
|
styles: Pick<CartStyleProps, 'iconColor'>;
|
|
941
942
|
};
|
|
942
943
|
type CartProps = BasePropsWrap<CartSettingProps, CartStyleProps> & {
|
|
@@ -1692,6 +1693,7 @@ type MenuItemProps = {
|
|
|
1692
1693
|
closeMenu?: () => void;
|
|
1693
1694
|
menuBg?: ObjectDevices<ColorValueType>;
|
|
1694
1695
|
headerBg?: ObjectDevices<ColorValueType>;
|
|
1696
|
+
enableHoverEffect?: boolean;
|
|
1695
1697
|
};
|
|
1696
1698
|
type HeaderOriginalSettingProps = {
|
|
1697
1699
|
logo?: NonNullable<ImageProps['setting']>['srcSet'];
|
|
@@ -1703,6 +1705,8 @@ type HeaderOriginalSettingProps = {
|
|
|
1703
1705
|
cartIcon?: string;
|
|
1704
1706
|
openMode?: 'popup' | 'page';
|
|
1705
1707
|
buyNow?: boolean;
|
|
1708
|
+
cardEnableHoverEffect?: boolean;
|
|
1709
|
+
itemEnableHoverEffect?: boolean;
|
|
1706
1710
|
};
|
|
1707
1711
|
type HeaderSettingProps = HeaderOriginalSettingProps & Pick<MenuItemProps, 'arrow' | 'menu'>;
|
|
1708
1712
|
type HeaderStyleProps = {
|
|
@@ -1731,15 +1735,15 @@ declare const BasicHeader: ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btn
|
|
|
1731
1735
|
|
|
1732
1736
|
declare const ModernHeader: (props: HeaderCommonProps) => React.JSX.Element;
|
|
1733
1737
|
|
|
1734
|
-
type Props$1 = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typo' | 'typography' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor'> & {
|
|
1738
|
+
type Props$1 = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typo' | 'typography' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor' | 'itemEnableHoverEffect'> & {
|
|
1735
1739
|
className?: string;
|
|
1736
1740
|
};
|
|
1737
|
-
declare const MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, }: Props$1) => React.JSX.Element;
|
|
1741
|
+
declare const MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, itemEnableHoverEffect, }: Props$1) => React.JSX.Element;
|
|
1738
1742
|
|
|
1739
|
-
type Props = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typography' | 'typo' | 'headerBg' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor'> & {
|
|
1743
|
+
type Props = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typography' | 'typo' | 'headerBg' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor' | 'itemEnableHoverEffect'> & {
|
|
1740
1744
|
className?: string;
|
|
1741
1745
|
};
|
|
1742
|
-
declare const DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, }: Props) => React.JSX.Element;
|
|
1746
|
+
declare const DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, itemEnableHoverEffect, }: Props) => React.JSX.Element;
|
|
1743
1747
|
|
|
1744
1748
|
declare const headerSetting: {
|
|
1745
1749
|
Header: _gem_sdk_core.ComponentSetting<HeaderProps>;
|
|
@@ -1907,6 +1911,9 @@ type IconListStyleProps = {
|
|
|
1907
1911
|
panelAlign?: ObjectDevices<AlignProp>;
|
|
1908
1912
|
contentBoxWidth?: ObjectDevices<string | number>;
|
|
1909
1913
|
contentBoxPadding?: ObjectDevices<PaddingType$1>;
|
|
1914
|
+
contentBoxBorder?: ObjectDevices<Border>;
|
|
1915
|
+
contentBoxRounded?: ObjectDevices<CornerRadius>;
|
|
1916
|
+
contentBoxShadow?: ObjectDevices<ShadowProps>;
|
|
1910
1917
|
};
|
|
1911
1918
|
type IconListProps = BasePropsWrap<IconListSettingProps, IconListStyleProps> & {
|
|
1912
1919
|
pageContext?: PageContext;
|
|
@@ -2690,7 +2697,7 @@ type OriginalFeatureImageSetting = {
|
|
|
2690
2697
|
ftDotSize?: ObjectDevices<number>;
|
|
2691
2698
|
ftDotGapToCarousel?: ObjectDevices<number>;
|
|
2692
2699
|
};
|
|
2693
|
-
type FeatureImageSetting$
|
|
2700
|
+
type FeatureImageSetting$1 = OriginalFeatureImageSetting & GalleryStyles$1;
|
|
2694
2701
|
type SelectDisplaySetting = {
|
|
2695
2702
|
typeDisplay?: 'all-images' | 'select-manual';
|
|
2696
2703
|
preDisplay?: '1st-available-variant' | '1st-images' | '1st-video' | '1st-3d-mode';
|
|
@@ -2739,7 +2746,7 @@ type ProductImageOriginalSettingProps = {
|
|
|
2739
2746
|
displayByVariant?: boolean;
|
|
2740
2747
|
variantSelect?: string;
|
|
2741
2748
|
};
|
|
2742
|
-
type ProductImagesSetting$1 = ProductImageOriginalSettingProps & GallerySetting$1 & FeatureImageSetting$
|
|
2749
|
+
type ProductImagesSetting$1 = ProductImageOriginalSettingProps & GallerySetting$1 & FeatureImageSetting$1 & SelectDisplaySetting;
|
|
2743
2750
|
type ProductImagesStyles$1 = GalleryStyles$1 & FeatureImageStyles$1 & {
|
|
2744
2751
|
spacing?: ObjectDevices<string | number>;
|
|
2745
2752
|
position?: ObjectDevices<ProductImagesLayout$1>;
|
|
@@ -2760,14 +2767,9 @@ type FeatureImagStyle = {
|
|
|
2760
2767
|
ftAspectRatio?: string;
|
|
2761
2768
|
ftWidth?: ObjectDevices<string>;
|
|
2762
2769
|
ftObjectFit?: ObjectFit;
|
|
2763
|
-
ftBorder: 'none' | 'display';
|
|
2764
2770
|
ftNavigation: 'none' | 'display';
|
|
2765
2771
|
ftSpacing: Spacing;
|
|
2766
2772
|
};
|
|
2767
|
-
type FeatureImageSetting$1 = {
|
|
2768
|
-
ftDisplayType: 'slider' | 'grid';
|
|
2769
|
-
ftItemPerSlide: number;
|
|
2770
|
-
};
|
|
2771
2773
|
type ImageListSetting = {
|
|
2772
2774
|
displayType: 'slider' | 'grid';
|
|
2773
2775
|
};
|
|
@@ -2790,7 +2792,7 @@ type ProductImageLayoutSettings = {
|
|
|
2790
2792
|
ilEnabled?: boolean;
|
|
2791
2793
|
};
|
|
2792
2794
|
type ProductImagesLayout = 'bottom-center' | 'left' | 'right' | 'only-feature' | 'one-col' | 'two-col';
|
|
2793
|
-
type ProductImagesSettingProps = ImageListSetting & ProductImageLayoutSettings
|
|
2795
|
+
type ProductImagesSettingProps = ImageListSetting & ProductImageLayoutSettings;
|
|
2794
2796
|
type AlignSetting = {
|
|
2795
2797
|
align?: 'left' | 'right' | 'center';
|
|
2796
2798
|
};
|
|
@@ -3774,8 +3776,8 @@ type ProductBadgeStyleProps = {
|
|
|
3774
3776
|
imageBadgeBorder?: ObjectDevices<Border>;
|
|
3775
3777
|
textBadgeCorner?: ObjectDevices<CornerRadius>;
|
|
3776
3778
|
imageBadgeCorner?: ObjectDevices<CornerRadius>;
|
|
3777
|
-
textBadgeShadow
|
|
3778
|
-
imageBadgeShadow
|
|
3779
|
+
textBadgeShadow?: ObjectDevices<ShadowProps>;
|
|
3780
|
+
imageBadgeShadow?: ObjectDevices<ShadowProps>;
|
|
3779
3781
|
};
|
|
3780
3782
|
type ProductBadgeProps = BasePropsWrap<ProductBadgeSettingProps, ProductBadgeStyleProps> & {
|
|
3781
3783
|
isInsideProductImage?: boolean;
|
|
@@ -3925,6 +3927,7 @@ type ProductBundleDiscountSettingProps = {
|
|
|
3925
3927
|
bundleItems?: bundleItem[];
|
|
3926
3928
|
useProductCompareAtPrice?: boolean;
|
|
3927
3929
|
iconItemColor?: ColorValueType;
|
|
3930
|
+
enableHoverEffect?: boolean;
|
|
3928
3931
|
};
|
|
3929
3932
|
type ProductBundleDiscountStyleProps = {
|
|
3930
3933
|
size?: ObjectDevices<SizeSettingGlobal>;
|
|
@@ -3935,6 +3938,8 @@ type ProductBundleDiscountStyleProps = {
|
|
|
3935
3938
|
borderBundle?: StateProp<Border>;
|
|
3936
3939
|
roundedBundle?: StateProp<CornerRadius>;
|
|
3937
3940
|
align?: string;
|
|
3941
|
+
enableHoverEffect?: boolean;
|
|
3942
|
+
enableActiveEffect?: boolean;
|
|
3938
3943
|
};
|
|
3939
3944
|
type ProductBundleDiscountProps = BasePropsWrap<ProductBundleDiscountSettingProps, ProductBundleDiscountStyleProps> & {
|
|
3940
3945
|
children: React.ReactNode[];
|
|
@@ -6831,10 +6836,10 @@ declare const _default$2: {
|
|
|
6831
6836
|
Header: ({ builderAttrs, builderProps, style, setting, styles, children }: HeaderProps) => React.JSX.Element | null;
|
|
6832
6837
|
BasicHeader: ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextColor, btnTypography, btnType, btnWidth, openMode, buyNow, breakpoint, ...props }: HeaderCommonProps) => React.JSX.Element;
|
|
6833
6838
|
ModernHeader: (props: HeaderCommonProps) => React.JSX.Element;
|
|
6834
|
-
MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg"> & {
|
|
6839
|
+
MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, itemEnableHoverEffect, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg" | "itemEnableHoverEffect"> & {
|
|
6835
6840
|
className?: string | undefined;
|
|
6836
6841
|
}) => React.JSX.Element;
|
|
6837
|
-
DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg" | "headerBg"> & {
|
|
6842
|
+
DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, itemEnableHoverEffect, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg" | "headerBg" | "itemEnableHoverEffect"> & {
|
|
6838
6843
|
className?: string | undefined;
|
|
6839
6844
|
}) => React.JSX.Element;
|
|
6840
6845
|
Heading: React.FC<HeadingProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-staging.
|
|
3
|
+
"version": "2.0.0-staging.956",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-staging.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-staging.955",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-staging.886",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-staging.711",
|
|
31
31
|
"tsup": "^8.5.0",
|