@ubnt/store.core 11.8.0-alpha.0 → 11.8.0-alpha.2
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/CHANGELOG.md +9 -1
- package/lib/assets/ai-360.jpg +0 -0
- package/lib/assets/ai-3602.jpg +0 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/bullet2.svg +2 -4
- package/lib/assets/bullet3.svg +4 -2
- package/lib/assets/door-hub.jpg +0 -0
- package/lib/assets/door-hub2.jpg +0 -0
- package/lib/assets/g2-reader.jpg +0 -0
- package/lib/assets/g2-reader2.jpg +0 -0
- package/lib/assets/g3-reader-flex.jpg +0 -0
- package/lib/assets/g3-reader-flex2.jpg +0 -0
- package/lib/assets/g3-reader-pro.jpg +0 -0
- package/lib/assets/g3-reader-pro2.jpg +0 -0
- package/lib/assets/g4-ptz.jpg +0 -0
- package/lib/assets/g4-ptz2.jpg +0 -0
- package/lib/assets/g5-bullet.jpg +0 -0
- package/lib/assets/g5-bullet2.jpg +0 -0
- package/lib/assets/g5-dome.jpg +0 -0
- package/lib/assets/g5-dome2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-turret-ultra.jpg +0 -0
- package/lib/assets/g5-turret-ultra2.jpg +0 -0
- package/lib/assets/intercom.jpg +0 -0
- package/lib/assets/intercom2.jpg +0 -0
- package/lib/assets/interior-design.svg +2 -2
- package/lib/assets/interior-design2.svg +2 -2
- package/lib/assets/ptz2.svg +2 -2
- package/lib/assets/ptz3.svg +2 -2
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udr2.jpg +0 -0
- package/lib/assets/udr3.jpg +0 -0
- package/lib/components/BackInStock/BackInStock.styles.d.ts +2 -2
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.js +7 -3
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +7 -3
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/Button.types.d.ts +2 -2
- package/lib/components/Explore/Explore.styles.d.ts +5 -5
- package/lib/components/Footer/Footer.styles.d.ts +2 -2
- package/lib/components/Header/AccountFrame/AccountFrame.styles.d.ts +2 -2
- package/lib/components/Header/CartModal/CartModal.styles.d.ts +2 -2
- package/lib/components/Header/CartModalV2/CartModal.styles.d.ts +2 -2
- package/lib/components/Header/Header.styles.d.ts +2 -2
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.d.ts +4 -4
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +2 -2
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +2 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.d.ts +2 -2
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.d.ts +2 -2
- package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.styles.d.ts +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.d.ts +6 -6
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.d.ts +4 -4
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.js +1 -0
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.mjs +1 -0
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.mjs.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.d.ts +2 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js +7 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.mjs +7 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.mjs.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/helpers/RenderButton.js +2 -1
- package/lib/components/ModelCompareV4/CompareTable/helpers/RenderButton.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/helpers/RenderButton.mjs +2 -1
- package/lib/components/ModelCompareV4/CompareTable/helpers/RenderButton.mjs.map +1 -1
- package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.js +5 -0
- package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.js.map +1 -1
- package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.mjs +5 -0
- package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.mjs.map +1 -1
- package/lib/components/Search/Modal/Modal.styles.d.ts +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/interior-design.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/ptz.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/ptz.svg.mjs +2 -2
- package/lib/constants/modelCompareData/data/CloudGateways.js +6 -6
- package/lib/constants/modelCompareData/data/CloudGateways.mjs +4 -4
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +9 -9
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +6 -6
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/bullet.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/bullet.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/ptz.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/ai360.js +2 -2
- package/lib/constants/modelCompareData/data/products/ai360.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/doorHub.js +2 -2
- package/lib/constants/modelCompareData/data/products/doorHub.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g2Reader.js +2 -2
- package/lib/constants/modelCompareData/data/products/g2Reader.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g4Ptz.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.js +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/theta.js +2 -2
- package/lib/constants/modelCompareData/data/products/theta.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/ucgUltra.js +1 -1
- package/lib/constants/modelCompareData/data/products/ucgUltra.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/udmProMax.js +1 -1
- package/lib/constants/modelCompareData/data/products/udmProMax.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/udr.js +1 -1
- package/lib/constants/modelCompareData/data/products/udr.mjs +1 -1
- package/lib/constants/modelCompareData/translations/ar.json.js +3 -1
- package/lib/constants/modelCompareData/translations/ar.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/ar.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/ar.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/de.json.js +3 -1
- package/lib/constants/modelCompareData/translations/de.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/de.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/de.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/el.json.js +3 -1
- package/lib/constants/modelCompareData/translations/el.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/el.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/el.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/en.json.js +2 -0
- package/lib/constants/modelCompareData/translations/en.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/en.json.mjs +2 -0
- package/lib/constants/modelCompareData/translations/en.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/es.json.js +3 -1
- package/lib/constants/modelCompareData/translations/es.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/es.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/es.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/fr.json.js +3 -1
- package/lib/constants/modelCompareData/translations/fr.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/fr.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/fr.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/it.json.js +3 -1
- package/lib/constants/modelCompareData/translations/it.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/it.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/it.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/ja.json.js +3 -1
- package/lib/constants/modelCompareData/translations/ja.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/ja.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/ja.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/pt-BR.json.js +3 -1
- package/lib/constants/modelCompareData/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/pt-BR.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/constants/modelCompareData/translations/zh-Hans.json.js +3 -1
- package/lib/constants/modelCompareData/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/zh-Hans.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.js +3 -1
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.mjs +3 -1
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -21,23 +21,23 @@ export declare const FeatureSpan: import("styled-components/dist/types").IStyled
|
|
|
21
21
|
export declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
22
22
|
export declare const ViewTechSpecsButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
23
23
|
children?: import("react").ReactNode;
|
|
24
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
24
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
25
25
|
children?: import("react").ReactNode;
|
|
26
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
26
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
27
27
|
export declare const TooltipWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
28
|
export declare const TooltipContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
29
29
|
export declare const TooltipIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../StyleableSvgImage").StyleableSvgImageProps, never>> & string & Omit<({ src, width, height, renderedHeight, className, $active, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
30
30
|
export declare const BuyButtonWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
31
31
|
export declare const BuyButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
32
32
|
children?: import("react").ReactNode;
|
|
33
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
33
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
34
34
|
children?: import("react").ReactNode;
|
|
35
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
35
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
36
36
|
export declare const ExploreDisclaimer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
37
|
export declare const ComingSoonButtonWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
38
38
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
39
39
|
}, never>> & string;
|
|
40
40
|
export declare const ComingSoonButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
41
41
|
children?: import("react").ReactNode;
|
|
42
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>, never>> & string;
|
|
42
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>, never>> & string;
|
|
43
43
|
export declare const Note: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
@@ -36,9 +36,9 @@ export declare const ContainerWrap: import("styled-components/dist/types").IStyl
|
|
|
36
36
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
37
|
export declare const SubmitButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
38
38
|
children?: import("react").ReactNode;
|
|
39
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
39
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
40
40
|
children?: import("react").ReactNode;
|
|
41
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
41
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
42
42
|
export declare const FormMessage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
43
43
|
$status?: FormStatus;
|
|
44
44
|
}>> & string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const ButtonWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
export declare const CustomLinkBtn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../../Button/Button.types").ButtonProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>, never>> & string;
|
|
4
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>, never>> & string;
|
|
5
5
|
export declare const CustomButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../../Button/Button.types").ButtonProps & {
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>, never>> & string;
|
|
7
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>, never>> & string;
|
|
8
8
|
export declare const Avatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../Avatar").AvatarProps, never>> & string & Omit<({ renderImage, src, alt, size, className, }: import("../../Avatar").AvatarProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
9
9
|
export declare const Name: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
10
10
|
export declare const Email: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
@@ -8,9 +8,9 @@ export declare const PriceWrap: import("styled-components/dist/types").IStyledCo
|
|
|
8
8
|
export declare const ProductsWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
9
|
export declare const ReviewCartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../Button/Button.types").ButtonProps & {
|
|
10
10
|
children?: import("react").ReactNode;
|
|
11
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
11
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
12
12
|
children?: import("react").ReactNode;
|
|
13
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
13
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
14
14
|
export declare const FreeShippingBanner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
15
|
export declare const FreeShippingBannerText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
16
16
|
export declare const CartModalWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -3,11 +3,11 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
|
|
|
3
3
|
export declare const ContainerInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
export declare const SectionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../Button/Button.types").ButtonProps & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
6
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
7
7
|
$wide?: boolean;
|
|
8
8
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
9
9
|
children?: import("react").ReactNode;
|
|
10
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
10
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
11
11
|
export declare const SectionClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
12
|
export declare const SectionCloseInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
13
|
export declare const SectionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -32,11 +32,11 @@ export declare const LogoIconWrap: import("styled-components/dist/types").IStyle
|
|
|
32
32
|
export declare const SiteTitleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
33
33
|
export declare const ContinueShoppingButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Button/Button.types").ButtonProps & {
|
|
34
34
|
children?: import("react").ReactNode;
|
|
35
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
35
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
36
36
|
$motif: Motif;
|
|
37
37
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
38
38
|
children?: import("react").ReactNode;
|
|
39
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
39
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
40
40
|
export declare const BackIconWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
41
41
|
export declare const MenuItemsWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
42
42
|
export declare const LeftWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const ButtonWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
export declare const CustomLinkButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../Button/Button.types").ButtonProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
4
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
5
5
|
$active: boolean;
|
|
6
6
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
7
7
|
children?: import("react").ReactNode;
|
|
8
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
8
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
9
9
|
export declare const LanguageKey: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
10
|
export declare const LanguageValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
11
|
export declare const OptionWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
12
|
export declare const CustomButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../Button/Button.types").ButtonProps & {
|
|
13
13
|
children?: import("react").ReactNode;
|
|
14
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
14
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
15
15
|
$active: boolean;
|
|
16
16
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
17
17
|
children?: import("react").ReactNode;
|
|
18
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
18
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
19
19
|
export declare const Frame: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -16,12 +16,12 @@ export declare const ArrowIconWrap: import("styled-components/dist/types").IStyl
|
|
|
16
16
|
}>> & string;
|
|
17
17
|
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../Button/Button.types").ButtonProps & {
|
|
18
18
|
children?: import("react").ReactNode;
|
|
19
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
19
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
20
20
|
$motif: Motif;
|
|
21
21
|
$minWidth?: number;
|
|
22
22
|
$active?: boolean;
|
|
23
23
|
$showArrow?: boolean;
|
|
24
24
|
} & VisibilityProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
25
25
|
children?: import("react").ReactNode;
|
|
26
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
26
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
27
27
|
export {};
|
|
@@ -18,12 +18,12 @@ export declare const PrimaryList: import("styled-components/dist/types").IStyled
|
|
|
18
18
|
}, never>> & string;
|
|
19
19
|
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../../Button/Button.types").ButtonProps & {
|
|
20
20
|
children?: import("react").ReactNode;
|
|
21
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
21
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
22
22
|
$active?: boolean;
|
|
23
23
|
$motif: Motif;
|
|
24
24
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../../Button/Button.types").ButtonProps & {
|
|
25
25
|
children?: import("react").ReactNode;
|
|
26
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
26
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
27
27
|
export declare const SecondaryWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
28
|
export declare const SecondaryTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
29
29
|
export declare const ListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
@@ -6,11 +6,11 @@ export declare const Wrap: import("styled-components/dist/types").IStyledCompone
|
|
|
6
6
|
export declare const SectionItemIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
7
|
export declare const CustomButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../../Button/Button.types").ButtonProps & {
|
|
8
8
|
children?: import("react").ReactNode;
|
|
9
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
9
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
10
10
|
$active?: boolean;
|
|
11
11
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../../Button/Button.types").ButtonProps & {
|
|
12
12
|
children?: import("react").ReactNode;
|
|
13
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
13
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
14
14
|
export declare const ButtonGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
15
|
export declare const ButtonContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
16
|
export declare const ProSectionItemButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$motif" | "$link" | "$bold"> & {
|
|
@@ -22,7 +22,7 @@ export declare const GridItemDescription: import("styled-components/dist/types")
|
|
|
22
22
|
}>> & string;
|
|
23
23
|
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
24
24
|
children?: import("react").ReactNode;
|
|
25
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
25
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
26
26
|
children?: import("react").ReactNode;
|
|
27
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
27
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
28
28
|
export {};
|
package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ export declare const Subtitle: import("styled-components/dist/types").IStyledCom
|
|
|
5
5
|
export declare const Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
6
6
|
export declare const LearnMoreButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
7
7
|
children?: import("react").ReactNode;
|
|
8
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
8
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
9
9
|
children?: import("react").ReactNode;
|
|
10
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
10
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
11
11
|
export declare const ImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
12
|
$backgroundImage?: string;
|
|
13
13
|
$mobileBackgroundImage?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../Button/Button.types").ButtonProps & {
|
|
2
2
|
children?: import("react").ReactNode;
|
|
3
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
3
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
4
4
|
children?: import("react").ReactNode;
|
|
5
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
5
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
6
6
|
export declare const InnerWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -30,9 +30,9 @@ export declare const ProductMeta: import("styled-components/dist/types").IStyled
|
|
|
30
30
|
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
31
31
|
export declare const ProductTitleLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
32
32
|
children?: import("react").ReactNode;
|
|
33
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
33
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
34
34
|
children?: import("react").ReactNode;
|
|
35
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
35
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
36
36
|
export declare const ProductDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
37
37
|
$maxWidth?: number;
|
|
38
38
|
$direction: LanguageDirectionType;
|
|
@@ -78,14 +78,14 @@ export declare const TooltipIcon: import("styled-components/dist/types").IStyled
|
|
|
78
78
|
export declare const ButtonWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
79
79
|
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
80
80
|
children?: import("react").ReactNode;
|
|
81
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
81
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
82
82
|
children?: import("react").ReactNode;
|
|
83
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
83
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
84
84
|
export declare const ComingSoon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Button/Button.types").ButtonProps & {
|
|
85
85
|
children?: import("react").ReactNode;
|
|
86
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
86
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
87
87
|
children?: import("react").ReactNode;
|
|
88
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
88
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
89
89
|
export declare const NotesWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
90
90
|
export declare const Note: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
91
91
|
export declare const FootnotesWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -114,16 +114,16 @@ export declare const TooltipIcon: import("styled-components/dist/types").IStyled
|
|
|
114
114
|
export declare const ButtonWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
115
115
|
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../Button/Button.types").ButtonProps & {
|
|
116
116
|
children?: import("react").ReactNode;
|
|
117
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, {
|
|
117
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, {
|
|
118
118
|
$removePointerEvents: boolean;
|
|
119
119
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
120
120
|
children?: import("react").ReactNode;
|
|
121
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
121
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
122
122
|
export declare const ComingSoon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../Button/Button.types").ButtonProps & {
|
|
123
123
|
children?: import("react").ReactNode;
|
|
124
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
124
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
125
125
|
children?: import("react").ReactNode;
|
|
126
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
126
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
127
127
|
export declare const NotesWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
128
128
|
export declare const Note: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
129
129
|
export declare const FootnotesWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -246,6 +246,7 @@ const CompareTableMarkup = ({
|
|
|
246
246
|
children: ({
|
|
247
247
|
isAtMaxX
|
|
248
248
|
}) => /* @__PURE__ */jsxRuntime.jsx(CompareTableOverflowScrollButton.ModelCompareOverflowScrollButton, {
|
|
249
|
+
isLeftButton: false,
|
|
249
250
|
isVisible: !isAtMaxX,
|
|
250
251
|
color: "white",
|
|
251
252
|
rotationDegrees: 0,
|
package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompareTableMarkup.js","sources":["../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { Fragment, useCallback, useMemo, useState } from \"react\";\nimport { useWindowSize } from \"react-use\";\n\nimport { CONTAINER_WIDTH } from \"../../../../constants/layout\";\nimport tooltipIcon from \"../../../../constants/modelCompareData/assets/tooltip-info.svg\";\nimport { emptyColumn } from \"../../../../constants/modelCompareData/data/products/emptyColumn\";\nimport { useModelCompareTranslation } from \"../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type { MutatedProduct } from \"../../../../constants/modelCompareData/types\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { LanguageDirectionType } from \"../../../../contexts/MenuContext/utils\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport * as S from \"../CompareTable.styles\";\nimport { TOOLTIP_CLASS_NAME } from \"../CompareTable.styles\";\nimport { getNumberOfColumns } from \"../helpers/getNumberOfColumns\";\nimport { useButtonRenderer } from \"../helpers/RenderButton\";\nimport type { CompareTableMarkupProps } from \"./CompareTableMarkup.types\";\nimport { ModelCompareOverflowScrollButton } from \"./components/CompareTableOverflowScrollButton\";\nimport { EmptyColumnHeader } from \"./components/EmptyColumnHeader/EmptyColumnHeader\";\nimport { FootNotes } from \"./components/FootNotes/FootNotes\";\nimport { HeaderShadow } from \"./components/HeaderShadow\";\nimport { Notes } from \"./components/Notes/Notes\";\nimport { ProductHeader } from \"./components/ProductHeader/ProductHeader\";\nimport { PropertyValueGridItem } from \"./components/PropertyValueGridItem\";\nimport {\n StickyGrid,\n StickyGridBody,\n StickyGridHeader,\n StickyGridOverlay,\n} from \"./components/StickyGrid\";\n\nconst SMOOTH_SIZE_REDUCTION = 4;\n\nexport const CompareTableMarkup = ({\n products,\n properties,\n columnWidth = 338,\n propertyColumnWidth = 230,\n headerStickOffset,\n overlayTopOffset,\n showBuyButton,\n onLinkClick,\n linkToStoreTitleClick,\n showBadges,\n setSelectedProducts,\n hasBeenObserved,\n selectedProductsLimit,\n setExternalState,\n selectedProducts,\n currAvailableProducts,\n isOverviewPage,\n isStaticTable,\n}: CompareTableMarkupProps) => {\n const { storeId } = useMenu();\n const { formatMessage } = useModelCompareTranslation();\n const renderButton = useButtonRenderer();\n const { width: screenWidth } = useWindowSize();\n const isLessThanOrEqualToFiveProducts = currAvailableProducts.length <= 5;\n const [headerItemsAreSticking, setHeaderItemsAreSticking] = useState(false);\n\n // #############################################################################\n // Grid calculations\n // #############################################################################\n const isSmallScreen = useMemo(\n () => screenWidth < S.MOBILE_BREAKPOINT,\n [screenWidth],\n );\n const isGreaterThanDesktopWidth = useMemo(\n () => screenWidth > CONTAINER_WIDTH.DESKTOP,\n [screenWidth],\n );\n\n const leftColumnWidth = useMemo(\n () =>\n isSmallScreen\n ? 0\n : Math.min(screenWidth / SMOOTH_SIZE_REDUCTION, propertyColumnWidth),\n [isSmallScreen, propertyColumnWidth, screenWidth],\n );\n\n const maxImageHeight = useMemo(\n () => Math.max(...products.map(({ image }) => image.height)),\n [products],\n );\n\n const stickOffset = useMemo(\n () => (headerStickOffset ? headerStickOffset({ maxImageHeight }) : 0),\n [headerStickOffset, maxImageHeight],\n );\n\n const numberOfColumns = useMemo(\n () =>\n isStaticTable\n ? products.length\n : getNumberOfColumns({\n selectedProducts,\n selectedProductsLimit,\n products,\n }),\n [selectedProducts, selectedProductsLimit, products, isStaticTable],\n );\n\n const templateColumnWidth = useMemo(() => {\n if (isSmallScreen) return \"100%\";\n if (isGreaterThanDesktopWidth) return \"1fr\";\n return `${columnWidth}px`;\n }, [isSmallScreen, columnWidth, isGreaterThanDesktopWidth]);\n\n // const twoColumns = 2;\n /**\n * 1 sticky left column\n * N non-sticky product columns\n */\n const templateColumns = useMemo(\n () =>\n `${leftColumnWidth}px repeat(${numberOfColumns}, ${templateColumnWidth})`,\n [leftColumnWidth, numberOfColumns, templateColumnWidth],\n );\n\n const hasNotes = useMemo(() => {\n return products.some(({ notes }) => !!notes?.length);\n }, [products]);\n\n const hasFootnotes = useMemo(() => {\n return products.some(({ footnotes }) => footnotes?.length);\n }, [products]);\n\n // #############################################################################\n // Column button\n // #############################################################################\n const getComingSoonButtonText = useCallback(\n (product: MutatedProduct) => {\n const buttonText = product.comingSoonButtonText;\n\n if (typeof buttonText === \"string\") {\n return formatMessage(buttonText);\n }\n\n if (typeof buttonText === \"function\" && !!buttonText(storeId)) {\n const foundKey = buttonText(storeId);\n\n if (foundKey) {\n return formatMessage(foundKey);\n }\n }\n\n return formatMessage(\"Coming Soon\");\n },\n [formatMessage, storeId],\n );\n\n const hasMultipleProductsSelected = useMemo(\n () => products.filter(({ id }) => id !== emptyColumn.id).length > 1,\n [products],\n );\n\n return (\n // APPLY left to right override in all cases rather than redo the model compare for Arabic\n <section dir={LanguageDirectionType.ltr}>\n <StickyGrid templateColumns={templateColumns}>\n <StickyGridHeader\n stickOffset={stickOffset}\n onStickyStateChange={setHeaderItemsAreSticking}\n nonScrollChildren={({ grid: { isAtMinX }, isStuck }) => {\n return (\n <HeaderShadow\n leftColumnWidth={leftColumnWidth}\n shadowLeftColumn={isAtMinX}\n show={isStuck}\n />\n );\n }}\n >\n <S.PlaceholderGridItem stickX />\n {products.map((product, index) =>\n product.propertyValues.length ? (\n <ProductHeader\n key={`${product.id}-${index}`}\n isStaticProduct={\n isStaticTable || (!isOverviewPage && index === 0)\n }\n product={product}\n setSelectedProducts={setSelectedProducts}\n index={index}\n setExternalState={setExternalState}\n selectedProducts={selectedProducts}\n linkToStoreTitleClick={linkToStoreTitleClick}\n hasBeenObserved={hasBeenObserved}\n isLessThanOrEqualToFiveProducts={\n isLessThanOrEqualToFiveProducts\n }\n hasMultipleProductsSelected={hasMultipleProductsSelected}\n isSmallScreen={isSmallScreen}\n onLinkClick={onLinkClick}\n showBadges={showBadges}\n />\n ) : (\n <EmptyColumnHeader\n key={`${product.id}-${index}`}\n product={product}\n index={index}\n hasBeenObserved={hasBeenObserved}\n maxImageHeight={maxImageHeight}\n headerItemsAreSticking={headerItemsAreSticking}\n />\n ),\n )}\n </StickyGridHeader>\n\n <StickyGridBody>\n {properties.map((property) => (\n <Fragment key={property.id}>\n <S.PropertyTitleGridItem stickX>\n {!!leftColumnWidth && (\n <S.PropertyTitleGridItemContent>\n <S.PropertyIcon>\n <StyleableSvgImage\n width={30}\n height={30}\n src={property.icon}\n />\n </S.PropertyIcon>\n <S.PropertyTitle>\n {property.title.split(\"\\n\").map((part, i, arr) => (\n <Fragment key={i}>\n {part}\n {i < arr.length - 1 && <br />}\n </Fragment>\n ))}\n </S.PropertyTitle>\n {property.tooltip && (\n <S.PropertyTooltip>\n <S.TooltipStyles maxWidth={property.tooltipWidth} />\n <Tooltip\n tooltipClassName={TOOLTIP_CLASS_NAME}\n description={\n <S.PropertyTooltipContent\n dangerouslySetInnerHTML={{\n __html: property.tooltip,\n }}\n />\n }\n portal\n motif=\"dark\"\n isInteractive\n position=\"right\"\n width={property.tooltipWidth}\n >\n <S.PropertyTooltipHoverArea />\n <S.TooltipIcon\n width={20}\n height={20}\n src={tooltipIcon}\n />\n </Tooltip>\n </S.PropertyTooltip>\n )}\n </S.PropertyTitleGridItemContent>\n )}\n </S.PropertyTitleGridItem>\n\n {products.map((product, index) => {\n const isLastProduct = index === products.length - 1;\n const productProperty = product.propertyValues?.find(\n (product) => product.propertyId === property.id,\n );\n\n return (\n <PropertyValueGridItem\n isLastProduct={isLastProduct}\n key={`${product.id}-${index}`}\n productProperty={productProperty}\n property={property}\n includeProperty={isSmallScreen}\n index={index}\n />\n );\n })}\n </Fragment>\n ))}\n\n {/**\n * Notes\n */}\n {hasNotes && <Notes products={products} />}\n\n {/**\n * Buy button\n */}\n <S.EmptyPropertyTitleGridItem stickX />\n {products.map((product, index) =>\n renderButton({\n product,\n index,\n getComingSoonButtonText,\n showBuyButton,\n onLinkClick,\n }),\n )}\n\n {/**\n * Footnotes\n */}\n {hasFootnotes && <FootNotes products={products} />}\n </StickyGridBody>\n\n <StickyGridOverlay\n style={{ left: `${leftColumnWidth}px` }}\n topOffset={overlayTopOffset}\n >\n {({ isAtMinX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMinX}\n color={leftColumnWidth > 0 ? \"rgb(23 49 73 / 0.1)\" : \"white\"}\n rotationDegrees={180}\n onClickColumnDiff={-1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n\n <StickyGridOverlay style={{ right: 0 }} topOffset={overlayTopOffset}>\n {({ isAtMaxX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMaxX}\n color=\"white\"\n rotationDegrees={0}\n onClickColumnDiff={1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n </StickyGrid>\n </section>\n );\n};\n"],"names":["SMOOTH_SIZE_REDUCTION","CompareTableMarkup","products","properties","columnWidth","propertyColumnWidth","headerStickOffset","overlayTopOffset","showBuyButton","onLinkClick","linkToStoreTitleClick","showBadges","setSelectedProducts","hasBeenObserved","selectedProductsLimit","setExternalState","selectedProducts","currAvailableProducts","isOverviewPage","isStaticTable","storeId","useMenu","formatMessage","useModelCompareTranslation","renderButton","useButtonRenderer","width","screenWidth","useWindowSize","isLessThanOrEqualToFiveProducts","length","headerItemsAreSticking","setHeaderItemsAreSticking","useState","isSmallScreen","useMemo","S.MOBILE_BREAKPOINT","MOBILE_BREAKPOINT","isGreaterThanDesktopWidth","CONTAINER_WIDTH","DESKTOP","leftColumnWidth","Math","min","maxImageHeight","max","map","image","height","stickOffset","numberOfColumns","getNumberOfColumns","templateColumnWidth","templateColumns","hasNotes","some","notes","hasFootnotes","footnotes","getComingSoonButtonText","useCallback","product","buttonText","comingSoonButtonText","foundKey","hasMultipleProductsSelected","filter","id","emptyColumn","dir","LanguageDirectionType","ltr","children","jsxs","StickyGrid","StickyGridHeader","onStickyStateChange","nonScrollChildren","grid","isAtMinX","isStuck","jsx","HeaderShadow","shadowLeftColumn","show","S.PlaceholderGridItem","PlaceholderGridItem","stickX","index","propertyValues","ProductHeader","isStaticProduct","EmptyColumnHeader","StickyGridBody","property","Fragment","S.PropertyTitleGridItem","PropertyTitleGridItem","S.PropertyTitleGridItemContent","PropertyTitleGridItemContent","S.PropertyIcon","StyleableSvgImage","src","icon","S.PropertyTitle","PropertyTitle","title","split","part","i","arr","tooltip","S.PropertyTooltip","S.TooltipStyles","maxWidth","tooltipWidth","Tooltip","tooltipClassName","TOOLTIP_CLASS_NAME","description","S.PropertyTooltipContent","PropertyTooltipContent","dangerouslySetInnerHTML","__html","portal","motif","isInteractive","position","S.PropertyTooltipHoverArea","S.TooltipIcon","TooltipIcon","tooltipIcon","isLastProduct","productProperty","find","propertyId","PropertyValueGridItem","includeProperty","Notes","S.EmptyPropertyTitleGridItem","EmptyPropertyTitleGridItem","FootNotes","StickyGridOverlay","style","left","topOffset","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","right","isAtMaxX"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMA,qBAAwB,GAAA,CAAA;AAEvB,MAAMC,qBAAqBA,CAAC;EACjCC,QAAA;EACAC,UAAA;EACAC,WAAc,GAAA,GAAA;EACdC,mBAAsB,GAAA,GAAA;EACtBC,iBAAA;EACAC,gBAAA;EACAC,aAAA;EACAC,WAAA;EACAC,qBAAA;EACAC,UAAA;EACAC,mBAAA;EACAC,eAAA;EACAC,qBAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,cAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;EAAQ,CAAA,GAAIC,eAAQ,CAAA,CAAA;EACtB,MAAA;IAAEC;EAAc,CAAA,GAAIC,qDAA2B,CAAA,CAAA;EACrD,MAAMC,eAAeC,YAAAA,CAAAA,iBAAkB,CAAA,CAAA;EACvC,MAAM;IAAEC,KAAA,EAAOC;EAAY,CAAA,GAAIC,sBAAc,CAAA,CAAA;EACvC,MAAAC,+BAAA,GAAkCZ,sBAAsBa,MAAU,IAAA,CAAA;EACxE,MAAM,CAACC,sBAAA,EAAwBC,yBAAyB,CAAA,GAAIC,KAAAA,CAAAA,SAAS,KAAK,CAAA;EAK1E,MAAMC,aAAgB,GAAAC,KAAA,CAAAA,OAAA,CACpB,MAAMR,cAAcS,mBAAE,CAAAC,iBAAA,EACtB,CAACV,WAAW,CACd,CAAA;EACA,MAAMW,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GAAA,CAAA6D,iBAAAA,CAAAA,iBAAA,EAAA;UAAkBC,KAAO,EAAA;YAAEU,KAAO,EAAA;UAAA,CAAK;UAAAR,SAAA,EAAW1I,gBAChD;UAAAiE,QAAA,EAAAA,CAAC;YAAEkF;UACF,CAAA,KAAA,eAAAzE,UAAA,CAAAA,GAAA,CAACiE,gCAAA,CAAAA,gCAAA,EAAA;YACCC,WAAW,CAACO,QAAA;YACZN,KAAM,EAAA,OAAA;YACNC,eAAiB,EAAA,CAAA;YACjBC,iBAAmB,EAAA,CAAA;YACnBC,cAAcrJ,QAAS,CAAA4B,MAAA;YACvB0H,cAAgB,EAAA/G,eAAA;YAChBP;UAAA,CAAA;QAGN,CAAA,CAAA;MAAA,CACF;IACF,CAAA;EAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"CompareTableMarkup.js","sources":["../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { Fragment, useCallback, useMemo, useState } from \"react\";\nimport { useWindowSize } from \"react-use\";\n\nimport { CONTAINER_WIDTH } from \"../../../../constants/layout\";\nimport tooltipIcon from \"../../../../constants/modelCompareData/assets/tooltip-info.svg\";\nimport { emptyColumn } from \"../../../../constants/modelCompareData/data/products/emptyColumn\";\nimport { useModelCompareTranslation } from \"../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type { MutatedProduct } from \"../../../../constants/modelCompareData/types\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { LanguageDirectionType } from \"../../../../contexts/MenuContext/utils\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport * as S from \"../CompareTable.styles\";\nimport { TOOLTIP_CLASS_NAME } from \"../CompareTable.styles\";\nimport { getNumberOfColumns } from \"../helpers/getNumberOfColumns\";\nimport { useButtonRenderer } from \"../helpers/RenderButton\";\nimport type { CompareTableMarkupProps } from \"./CompareTableMarkup.types\";\nimport { ModelCompareOverflowScrollButton } from \"./components/CompareTableOverflowScrollButton\";\nimport { EmptyColumnHeader } from \"./components/EmptyColumnHeader/EmptyColumnHeader\";\nimport { FootNotes } from \"./components/FootNotes/FootNotes\";\nimport { HeaderShadow } from \"./components/HeaderShadow\";\nimport { Notes } from \"./components/Notes/Notes\";\nimport { ProductHeader } from \"./components/ProductHeader/ProductHeader\";\nimport { PropertyValueGridItem } from \"./components/PropertyValueGridItem\";\nimport {\n StickyGrid,\n StickyGridBody,\n StickyGridHeader,\n StickyGridOverlay,\n} from \"./components/StickyGrid\";\n\nconst SMOOTH_SIZE_REDUCTION = 4;\n\nexport const CompareTableMarkup = ({\n products,\n properties,\n columnWidth = 338,\n propertyColumnWidth = 230,\n headerStickOffset,\n overlayTopOffset,\n showBuyButton,\n onLinkClick,\n linkToStoreTitleClick,\n showBadges,\n setSelectedProducts,\n hasBeenObserved,\n selectedProductsLimit,\n setExternalState,\n selectedProducts,\n currAvailableProducts,\n isOverviewPage,\n isStaticTable,\n}: CompareTableMarkupProps) => {\n const { storeId } = useMenu();\n const { formatMessage } = useModelCompareTranslation();\n const renderButton = useButtonRenderer();\n const { width: screenWidth } = useWindowSize();\n const isLessThanOrEqualToFiveProducts = currAvailableProducts.length <= 5;\n const [headerItemsAreSticking, setHeaderItemsAreSticking] = useState(false);\n\n // #############################################################################\n // Grid calculations\n // #############################################################################\n const isSmallScreen = useMemo(\n () => screenWidth < S.MOBILE_BREAKPOINT,\n [screenWidth],\n );\n const isGreaterThanDesktopWidth = useMemo(\n () => screenWidth > CONTAINER_WIDTH.DESKTOP,\n [screenWidth],\n );\n\n const leftColumnWidth = useMemo(\n () =>\n isSmallScreen\n ? 0\n : Math.min(screenWidth / SMOOTH_SIZE_REDUCTION, propertyColumnWidth),\n [isSmallScreen, propertyColumnWidth, screenWidth],\n );\n\n const maxImageHeight = useMemo(\n () => Math.max(...products.map(({ image }) => image.height)),\n [products],\n );\n\n const stickOffset = useMemo(\n () => (headerStickOffset ? headerStickOffset({ maxImageHeight }) : 0),\n [headerStickOffset, maxImageHeight],\n );\n\n const numberOfColumns = useMemo(\n () =>\n isStaticTable\n ? products.length\n : getNumberOfColumns({\n selectedProducts,\n selectedProductsLimit,\n products,\n }),\n [selectedProducts, selectedProductsLimit, products, isStaticTable],\n );\n\n const templateColumnWidth = useMemo(() => {\n if (isSmallScreen) return \"100%\";\n if (isGreaterThanDesktopWidth) return \"1fr\";\n return `${columnWidth}px`;\n }, [isSmallScreen, columnWidth, isGreaterThanDesktopWidth]);\n\n // const twoColumns = 2;\n /**\n * 1 sticky left column\n * N non-sticky product columns\n */\n const templateColumns = useMemo(\n () =>\n `${leftColumnWidth}px repeat(${numberOfColumns}, ${templateColumnWidth})`,\n [leftColumnWidth, numberOfColumns, templateColumnWidth],\n );\n\n const hasNotes = useMemo(() => {\n return products.some(({ notes }) => !!notes?.length);\n }, [products]);\n\n const hasFootnotes = useMemo(() => {\n return products.some(({ footnotes }) => footnotes?.length);\n }, [products]);\n\n // #############################################################################\n // Column button\n // #############################################################################\n const getComingSoonButtonText = useCallback(\n (product: MutatedProduct) => {\n const buttonText = product.comingSoonButtonText;\n\n if (typeof buttonText === \"string\") {\n return formatMessage(buttonText);\n }\n\n if (typeof buttonText === \"function\" && !!buttonText(storeId)) {\n const foundKey = buttonText(storeId);\n\n if (foundKey) {\n return formatMessage(foundKey);\n }\n }\n\n return formatMessage(\"Coming Soon\");\n },\n [formatMessage, storeId],\n );\n\n const hasMultipleProductsSelected = useMemo(\n () => products.filter(({ id }) => id !== emptyColumn.id).length > 1,\n [products],\n );\n\n return (\n // APPLY left to right override in all cases rather than redo the model compare for Arabic\n <section dir={LanguageDirectionType.ltr}>\n <StickyGrid templateColumns={templateColumns}>\n <StickyGridHeader\n stickOffset={stickOffset}\n onStickyStateChange={setHeaderItemsAreSticking}\n nonScrollChildren={({ grid: { isAtMinX }, isStuck }) => {\n return (\n <HeaderShadow\n leftColumnWidth={leftColumnWidth}\n shadowLeftColumn={isAtMinX}\n show={isStuck}\n />\n );\n }}\n >\n <S.PlaceholderGridItem stickX />\n {products.map((product, index) =>\n product.propertyValues.length ? (\n <ProductHeader\n key={`${product.id}-${index}`}\n isStaticProduct={\n isStaticTable || (!isOverviewPage && index === 0)\n }\n product={product}\n setSelectedProducts={setSelectedProducts}\n index={index}\n setExternalState={setExternalState}\n selectedProducts={selectedProducts}\n linkToStoreTitleClick={linkToStoreTitleClick}\n hasBeenObserved={hasBeenObserved}\n isLessThanOrEqualToFiveProducts={\n isLessThanOrEqualToFiveProducts\n }\n hasMultipleProductsSelected={hasMultipleProductsSelected}\n isSmallScreen={isSmallScreen}\n onLinkClick={onLinkClick}\n showBadges={showBadges}\n />\n ) : (\n <EmptyColumnHeader\n key={`${product.id}-${index}`}\n product={product}\n index={index}\n hasBeenObserved={hasBeenObserved}\n maxImageHeight={maxImageHeight}\n headerItemsAreSticking={headerItemsAreSticking}\n />\n ),\n )}\n </StickyGridHeader>\n\n <StickyGridBody>\n {properties.map((property) => (\n <Fragment key={property.id}>\n <S.PropertyTitleGridItem stickX>\n {!!leftColumnWidth && (\n <S.PropertyTitleGridItemContent>\n <S.PropertyIcon>\n <StyleableSvgImage\n width={30}\n height={30}\n src={property.icon}\n />\n </S.PropertyIcon>\n <S.PropertyTitle>\n {property.title.split(\"\\n\").map((part, i, arr) => (\n <Fragment key={i}>\n {part}\n {i < arr.length - 1 && <br />}\n </Fragment>\n ))}\n </S.PropertyTitle>\n {property.tooltip && (\n <S.PropertyTooltip>\n <S.TooltipStyles maxWidth={property.tooltipWidth} />\n <Tooltip\n tooltipClassName={TOOLTIP_CLASS_NAME}\n description={\n <S.PropertyTooltipContent\n dangerouslySetInnerHTML={{\n __html: property.tooltip,\n }}\n />\n }\n portal\n motif=\"dark\"\n isInteractive\n position=\"right\"\n width={property.tooltipWidth}\n >\n <S.PropertyTooltipHoverArea />\n <S.TooltipIcon\n width={20}\n height={20}\n src={tooltipIcon}\n />\n </Tooltip>\n </S.PropertyTooltip>\n )}\n </S.PropertyTitleGridItemContent>\n )}\n </S.PropertyTitleGridItem>\n\n {products.map((product, index) => {\n const isLastProduct = index === products.length - 1;\n const productProperty = product.propertyValues?.find(\n (product) => product.propertyId === property.id,\n );\n\n return (\n <PropertyValueGridItem\n isLastProduct={isLastProduct}\n key={`${product.id}-${index}`}\n productProperty={productProperty}\n property={property}\n includeProperty={isSmallScreen}\n index={index}\n />\n );\n })}\n </Fragment>\n ))}\n\n {/**\n * Notes\n */}\n {hasNotes && <Notes products={products} />}\n\n {/**\n * Buy button\n */}\n <S.EmptyPropertyTitleGridItem stickX />\n {products.map((product, index) =>\n renderButton({\n product,\n index,\n getComingSoonButtonText,\n showBuyButton,\n onLinkClick,\n }),\n )}\n\n {/**\n * Footnotes\n */}\n {hasFootnotes && <FootNotes products={products} />}\n </StickyGridBody>\n\n <StickyGridOverlay\n style={{ left: `${leftColumnWidth}px` }}\n topOffset={overlayTopOffset}\n >\n {({ isAtMinX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMinX}\n color={leftColumnWidth > 0 ? \"rgb(23 49 73 / 0.1)\" : \"white\"}\n rotationDegrees={180}\n onClickColumnDiff={-1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n\n <StickyGridOverlay style={{ right: 0 }} topOffset={overlayTopOffset}>\n {({ isAtMaxX }) => (\n <ModelCompareOverflowScrollButton\n isLeftButton={false}\n isVisible={!isAtMaxX}\n color=\"white\"\n rotationDegrees={0}\n onClickColumnDiff={1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n </StickyGrid>\n </section>\n );\n};\n"],"names":["SMOOTH_SIZE_REDUCTION","CompareTableMarkup","products","properties","columnWidth","propertyColumnWidth","headerStickOffset","overlayTopOffset","showBuyButton","onLinkClick","linkToStoreTitleClick","showBadges","setSelectedProducts","hasBeenObserved","selectedProductsLimit","setExternalState","selectedProducts","currAvailableProducts","isOverviewPage","isStaticTable","storeId","useMenu","formatMessage","useModelCompareTranslation","renderButton","useButtonRenderer","width","screenWidth","useWindowSize","isLessThanOrEqualToFiveProducts","length","headerItemsAreSticking","setHeaderItemsAreSticking","useState","isSmallScreen","useMemo","S.MOBILE_BREAKPOINT","MOBILE_BREAKPOINT","isGreaterThanDesktopWidth","CONTAINER_WIDTH","DESKTOP","leftColumnWidth","Math","min","maxImageHeight","max","map","image","height","stickOffset","numberOfColumns","getNumberOfColumns","templateColumnWidth","templateColumns","hasNotes","some","notes","hasFootnotes","footnotes","getComingSoonButtonText","useCallback","product","buttonText","comingSoonButtonText","foundKey","hasMultipleProductsSelected","filter","id","emptyColumn","dir","LanguageDirectionType","ltr","children","jsxs","StickyGrid","StickyGridHeader","onStickyStateChange","nonScrollChildren","grid","isAtMinX","isStuck","jsx","HeaderShadow","shadowLeftColumn","show","S.PlaceholderGridItem","PlaceholderGridItem","stickX","index","propertyValues","ProductHeader","isStaticProduct","EmptyColumnHeader","StickyGridBody","property","Fragment","S.PropertyTitleGridItem","PropertyTitleGridItem","S.PropertyTitleGridItemContent","PropertyTitleGridItemContent","S.PropertyIcon","StyleableSvgImage","src","icon","S.PropertyTitle","PropertyTitle","title","split","part","i","arr","tooltip","S.PropertyTooltip","S.TooltipStyles","maxWidth","tooltipWidth","Tooltip","tooltipClassName","TOOLTIP_CLASS_NAME","description","S.PropertyTooltipContent","PropertyTooltipContent","dangerouslySetInnerHTML","__html","portal","motif","isInteractive","position","S.PropertyTooltipHoverArea","S.TooltipIcon","TooltipIcon","tooltipIcon","isLastProduct","productProperty","find","propertyId","PropertyValueGridItem","includeProperty","Notes","S.EmptyPropertyTitleGridItem","EmptyPropertyTitleGridItem","FootNotes","StickyGridOverlay","style","left","topOffset","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","right","isAtMaxX","isLeftButton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EAAA,CAAA;YACjBC,iBAAmB,EAAA,CAAA;YACnBC,cAAcrJ,QAAS,CAAA4B,MAAA;YACvB0H,cAAgB,EAAA/G,eAAA;YAChBP;UAAA,CAAA;QAGN,CAAA,CAAA;MAAA,CACF;IACF,CAAA;EAAA;AAEJ,CAAA;"}
|
package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompareTableMarkup.mjs","sources":["../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { Fragment, useCallback, useMemo, useState } from \"react\";\nimport { useWindowSize } from \"react-use\";\n\nimport { CONTAINER_WIDTH } from \"../../../../constants/layout\";\nimport tooltipIcon from \"../../../../constants/modelCompareData/assets/tooltip-info.svg\";\nimport { emptyColumn } from \"../../../../constants/modelCompareData/data/products/emptyColumn\";\nimport { useModelCompareTranslation } from \"../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type { MutatedProduct } from \"../../../../constants/modelCompareData/types\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { LanguageDirectionType } from \"../../../../contexts/MenuContext/utils\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport * as S from \"../CompareTable.styles\";\nimport { TOOLTIP_CLASS_NAME } from \"../CompareTable.styles\";\nimport { getNumberOfColumns } from \"../helpers/getNumberOfColumns\";\nimport { useButtonRenderer } from \"../helpers/RenderButton\";\nimport type { CompareTableMarkupProps } from \"./CompareTableMarkup.types\";\nimport { ModelCompareOverflowScrollButton } from \"./components/CompareTableOverflowScrollButton\";\nimport { EmptyColumnHeader } from \"./components/EmptyColumnHeader/EmptyColumnHeader\";\nimport { FootNotes } from \"./components/FootNotes/FootNotes\";\nimport { HeaderShadow } from \"./components/HeaderShadow\";\nimport { Notes } from \"./components/Notes/Notes\";\nimport { ProductHeader } from \"./components/ProductHeader/ProductHeader\";\nimport { PropertyValueGridItem } from \"./components/PropertyValueGridItem\";\nimport {\n StickyGrid,\n StickyGridBody,\n StickyGridHeader,\n StickyGridOverlay,\n} from \"./components/StickyGrid\";\n\nconst SMOOTH_SIZE_REDUCTION = 4;\n\nexport const CompareTableMarkup = ({\n products,\n properties,\n columnWidth = 338,\n propertyColumnWidth = 230,\n headerStickOffset,\n overlayTopOffset,\n showBuyButton,\n onLinkClick,\n linkToStoreTitleClick,\n showBadges,\n setSelectedProducts,\n hasBeenObserved,\n selectedProductsLimit,\n setExternalState,\n selectedProducts,\n currAvailableProducts,\n isOverviewPage,\n isStaticTable,\n}: CompareTableMarkupProps) => {\n const { storeId } = useMenu();\n const { formatMessage } = useModelCompareTranslation();\n const renderButton = useButtonRenderer();\n const { width: screenWidth } = useWindowSize();\n const isLessThanOrEqualToFiveProducts = currAvailableProducts.length <= 5;\n const [headerItemsAreSticking, setHeaderItemsAreSticking] = useState(false);\n\n // #############################################################################\n // Grid calculations\n // #############################################################################\n const isSmallScreen = useMemo(\n () => screenWidth < S.MOBILE_BREAKPOINT,\n [screenWidth],\n );\n const isGreaterThanDesktopWidth = useMemo(\n () => screenWidth > CONTAINER_WIDTH.DESKTOP,\n [screenWidth],\n );\n\n const leftColumnWidth = useMemo(\n () =>\n isSmallScreen\n ? 0\n : Math.min(screenWidth / SMOOTH_SIZE_REDUCTION, propertyColumnWidth),\n [isSmallScreen, propertyColumnWidth, screenWidth],\n );\n\n const maxImageHeight = useMemo(\n () => Math.max(...products.map(({ image }) => image.height)),\n [products],\n );\n\n const stickOffset = useMemo(\n () => (headerStickOffset ? headerStickOffset({ maxImageHeight }) : 0),\n [headerStickOffset, maxImageHeight],\n );\n\n const numberOfColumns = useMemo(\n () =>\n isStaticTable\n ? products.length\n : getNumberOfColumns({\n selectedProducts,\n selectedProductsLimit,\n products,\n }),\n [selectedProducts, selectedProductsLimit, products, isStaticTable],\n );\n\n const templateColumnWidth = useMemo(() => {\n if (isSmallScreen) return \"100%\";\n if (isGreaterThanDesktopWidth) return \"1fr\";\n return `${columnWidth}px`;\n }, [isSmallScreen, columnWidth, isGreaterThanDesktopWidth]);\n\n // const twoColumns = 2;\n /**\n * 1 sticky left column\n * N non-sticky product columns\n */\n const templateColumns = useMemo(\n () =>\n `${leftColumnWidth}px repeat(${numberOfColumns}, ${templateColumnWidth})`,\n [leftColumnWidth, numberOfColumns, templateColumnWidth],\n );\n\n const hasNotes = useMemo(() => {\n return products.some(({ notes }) => !!notes?.length);\n }, [products]);\n\n const hasFootnotes = useMemo(() => {\n return products.some(({ footnotes }) => footnotes?.length);\n }, [products]);\n\n // #############################################################################\n // Column button\n // #############################################################################\n const getComingSoonButtonText = useCallback(\n (product: MutatedProduct) => {\n const buttonText = product.comingSoonButtonText;\n\n if (typeof buttonText === \"string\") {\n return formatMessage(buttonText);\n }\n\n if (typeof buttonText === \"function\" && !!buttonText(storeId)) {\n const foundKey = buttonText(storeId);\n\n if (foundKey) {\n return formatMessage(foundKey);\n }\n }\n\n return formatMessage(\"Coming Soon\");\n },\n [formatMessage, storeId],\n );\n\n const hasMultipleProductsSelected = useMemo(\n () => products.filter(({ id }) => id !== emptyColumn.id).length > 1,\n [products],\n );\n\n return (\n // APPLY left to right override in all cases rather than redo the model compare for Arabic\n <section dir={LanguageDirectionType.ltr}>\n <StickyGrid templateColumns={templateColumns}>\n <StickyGridHeader\n stickOffset={stickOffset}\n onStickyStateChange={setHeaderItemsAreSticking}\n nonScrollChildren={({ grid: { isAtMinX }, isStuck }) => {\n return (\n <HeaderShadow\n leftColumnWidth={leftColumnWidth}\n shadowLeftColumn={isAtMinX}\n show={isStuck}\n />\n );\n }}\n >\n <S.PlaceholderGridItem stickX />\n {products.map((product, index) =>\n product.propertyValues.length ? (\n <ProductHeader\n key={`${product.id}-${index}`}\n isStaticProduct={\n isStaticTable || (!isOverviewPage && index === 0)\n }\n product={product}\n setSelectedProducts={setSelectedProducts}\n index={index}\n setExternalState={setExternalState}\n selectedProducts={selectedProducts}\n linkToStoreTitleClick={linkToStoreTitleClick}\n hasBeenObserved={hasBeenObserved}\n isLessThanOrEqualToFiveProducts={\n isLessThanOrEqualToFiveProducts\n }\n hasMultipleProductsSelected={hasMultipleProductsSelected}\n isSmallScreen={isSmallScreen}\n onLinkClick={onLinkClick}\n showBadges={showBadges}\n />\n ) : (\n <EmptyColumnHeader\n key={`${product.id}-${index}`}\n product={product}\n index={index}\n hasBeenObserved={hasBeenObserved}\n maxImageHeight={maxImageHeight}\n headerItemsAreSticking={headerItemsAreSticking}\n />\n ),\n )}\n </StickyGridHeader>\n\n <StickyGridBody>\n {properties.map((property) => (\n <Fragment key={property.id}>\n <S.PropertyTitleGridItem stickX>\n {!!leftColumnWidth && (\n <S.PropertyTitleGridItemContent>\n <S.PropertyIcon>\n <StyleableSvgImage\n width={30}\n height={30}\n src={property.icon}\n />\n </S.PropertyIcon>\n <S.PropertyTitle>\n {property.title.split(\"\\n\").map((part, i, arr) => (\n <Fragment key={i}>\n {part}\n {i < arr.length - 1 && <br />}\n </Fragment>\n ))}\n </S.PropertyTitle>\n {property.tooltip && (\n <S.PropertyTooltip>\n <S.TooltipStyles maxWidth={property.tooltipWidth} />\n <Tooltip\n tooltipClassName={TOOLTIP_CLASS_NAME}\n description={\n <S.PropertyTooltipContent\n dangerouslySetInnerHTML={{\n __html: property.tooltip,\n }}\n />\n }\n portal\n motif=\"dark\"\n isInteractive\n position=\"right\"\n width={property.tooltipWidth}\n >\n <S.PropertyTooltipHoverArea />\n <S.TooltipIcon\n width={20}\n height={20}\n src={tooltipIcon}\n />\n </Tooltip>\n </S.PropertyTooltip>\n )}\n </S.PropertyTitleGridItemContent>\n )}\n </S.PropertyTitleGridItem>\n\n {products.map((product, index) => {\n const isLastProduct = index === products.length - 1;\n const productProperty = product.propertyValues?.find(\n (product) => product.propertyId === property.id,\n );\n\n return (\n <PropertyValueGridItem\n isLastProduct={isLastProduct}\n key={`${product.id}-${index}`}\n productProperty={productProperty}\n property={property}\n includeProperty={isSmallScreen}\n index={index}\n />\n );\n })}\n </Fragment>\n ))}\n\n {/**\n * Notes\n */}\n {hasNotes && <Notes products={products} />}\n\n {/**\n * Buy button\n */}\n <S.EmptyPropertyTitleGridItem stickX />\n {products.map((product, index) =>\n renderButton({\n product,\n index,\n getComingSoonButtonText,\n showBuyButton,\n onLinkClick,\n }),\n )}\n\n {/**\n * Footnotes\n */}\n {hasFootnotes && <FootNotes products={products} />}\n </StickyGridBody>\n\n <StickyGridOverlay\n style={{ left: `${leftColumnWidth}px` }}\n topOffset={overlayTopOffset}\n >\n {({ isAtMinX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMinX}\n color={leftColumnWidth > 0 ? \"rgb(23 49 73 / 0.1)\" : \"white\"}\n rotationDegrees={180}\n onClickColumnDiff={-1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n\n <StickyGridOverlay style={{ right: 0 }} topOffset={overlayTopOffset}>\n {({ isAtMaxX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMaxX}\n color=\"white\"\n rotationDegrees={0}\n onClickColumnDiff={1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n </StickyGrid>\n </section>\n );\n};\n"],"names":["SMOOTH_SIZE_REDUCTION","CompareTableMarkup","products","properties","columnWidth","propertyColumnWidth","headerStickOffset","overlayTopOffset","showBuyButton","onLinkClick","linkToStoreTitleClick","showBadges","setSelectedProducts","hasBeenObserved","selectedProductsLimit","setExternalState","selectedProducts","currAvailableProducts","isOverviewPage","isStaticTable","storeId","useMenu","formatMessage","useModelCompareTranslation","renderButton","useButtonRenderer","width","screenWidth","useWindowSize","isLessThanOrEqualToFiveProducts","length","headerItemsAreSticking","setHeaderItemsAreSticking","useState","isSmallScreen","useMemo","S.MOBILE_BREAKPOINT","isGreaterThanDesktopWidth","CONTAINER_WIDTH","DESKTOP","leftColumnWidth","Math","min","maxImageHeight","max","map","image","height","stickOffset","numberOfColumns","getNumberOfColumns","templateColumnWidth","templateColumns","hasNotes","some","notes","hasFootnotes","footnotes","getComingSoonButtonText","useCallback","product","buttonText","comingSoonButtonText","foundKey","hasMultipleProductsSelected","filter","id","emptyColumn","dir","LanguageDirectionType","ltr","children","jsxs","StickyGrid","StickyGridHeader","onStickyStateChange","nonScrollChildren","grid","isAtMinX","isStuck","jsx","HeaderShadow","shadowLeftColumn","show","S.PlaceholderGridItem","stickX","index","propertyValues","ProductHeader","isStaticProduct","EmptyColumnHeader","StickyGridBody","property","Fragment","S.PropertyTitleGridItem","S.PropertyTitleGridItemContent","S.PropertyIcon","StyleableSvgImage","src","icon","S.PropertyTitle","title","split","part","i","arr","tooltip","S.PropertyTooltip","S.TooltipStyles","maxWidth","tooltipWidth","Tooltip","tooltipClassName","TOOLTIP_CLASS_NAME","description","S.PropertyTooltipContent","dangerouslySetInnerHTML","__html","portal","motif","isInteractive","position","S.PropertyTooltipHoverArea","S.TooltipIcon","tooltipIcon","isLastProduct","productProperty","find","propertyId","PropertyValueGridItem","includeProperty","Notes","S.EmptyPropertyTitleGridItem","FootNotes","StickyGridOverlay","style","left","topOffset","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","right","isAtMaxX"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMA,qBAAwB,GAAA,CAAA;AAEvB,MAAMC,qBAAqBA,CAAC;EACjCC,QAAA;EACAC,UAAA;EACAC,WAAc,GAAA,GAAA;EACdC,mBAAsB,GAAA,GAAA;EACtBC,iBAAA;EACAC,gBAAA;EACAC,aAAA;EACAC,WAAA;EACAC,qBAAA;EACAC,UAAA;EACAC,mBAAA;EACAC,eAAA;EACAC,qBAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,c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AAgB,EAAAxG,eAAA;YAChBN;UAAA,CAAA;QAGN,CAAA,CAAA;MAAA,CACF;IACF,CAAA;EAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"CompareTableMarkup.mjs","sources":["../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { Fragment, useCallback, useMemo, useState } from \"react\";\nimport { useWindowSize } from \"react-use\";\n\nimport { CONTAINER_WIDTH } from \"../../../../constants/layout\";\nimport tooltipIcon from \"../../../../constants/modelCompareData/assets/tooltip-info.svg\";\nimport { emptyColumn } from \"../../../../constants/modelCompareData/data/products/emptyColumn\";\nimport { useModelCompareTranslation } from \"../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type { MutatedProduct } from \"../../../../constants/modelCompareData/types\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { LanguageDirectionType } from \"../../../../contexts/MenuContext/utils\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport * as S from \"../CompareTable.styles\";\nimport { TOOLTIP_CLASS_NAME } from \"../CompareTable.styles\";\nimport { getNumberOfColumns } from \"../helpers/getNumberOfColumns\";\nimport { useButtonRenderer } from \"../helpers/RenderButton\";\nimport type { CompareTableMarkupProps } from \"./CompareTableMarkup.types\";\nimport { ModelCompareOverflowScrollButton } from \"./components/CompareTableOverflowScrollButton\";\nimport { EmptyColumnHeader } from \"./components/EmptyColumnHeader/EmptyColumnHeader\";\nimport { FootNotes } from \"./components/FootNotes/FootNotes\";\nimport { HeaderShadow } from \"./components/HeaderShadow\";\nimport { Notes } from \"./components/Notes/Notes\";\nimport { ProductHeader } from \"./components/ProductHeader/ProductHeader\";\nimport { PropertyValueGridItem } from \"./components/PropertyValueGridItem\";\nimport {\n StickyGrid,\n StickyGridBody,\n StickyGridHeader,\n StickyGridOverlay,\n} from \"./components/StickyGrid\";\n\nconst SMOOTH_SIZE_REDUCTION = 4;\n\nexport const CompareTableMarkup = ({\n products,\n properties,\n columnWidth = 338,\n propertyColumnWidth = 230,\n headerStickOffset,\n overlayTopOffset,\n showBuyButton,\n onLinkClick,\n linkToStoreTitleClick,\n showBadges,\n setSelectedProducts,\n hasBeenObserved,\n selectedProductsLimit,\n setExternalState,\n selectedProducts,\n currAvailableProducts,\n isOverviewPage,\n isStaticTable,\n}: CompareTableMarkupProps) => {\n const { storeId } = useMenu();\n const { formatMessage } = useModelCompareTranslation();\n const renderButton = useButtonRenderer();\n const { width: screenWidth } = useWindowSize();\n const isLessThanOrEqualToFiveProducts = currAvailableProducts.length <= 5;\n const [headerItemsAreSticking, setHeaderItemsAreSticking] = useState(false);\n\n // #############################################################################\n // Grid calculations\n // #############################################################################\n const isSmallScreen = useMemo(\n () => screenWidth < S.MOBILE_BREAKPOINT,\n [screenWidth],\n );\n const isGreaterThanDesktopWidth = useMemo(\n () => screenWidth > CONTAINER_WIDTH.DESKTOP,\n [screenWidth],\n );\n\n const leftColumnWidth = useMemo(\n () =>\n isSmallScreen\n ? 0\n : Math.min(screenWidth / SMOOTH_SIZE_REDUCTION, propertyColumnWidth),\n [isSmallScreen, propertyColumnWidth, screenWidth],\n );\n\n const maxImageHeight = useMemo(\n () => Math.max(...products.map(({ image }) => image.height)),\n [products],\n );\n\n const stickOffset = useMemo(\n () => (headerStickOffset ? headerStickOffset({ maxImageHeight }) : 0),\n [headerStickOffset, maxImageHeight],\n );\n\n const numberOfColumns = useMemo(\n () =>\n isStaticTable\n ? products.length\n : getNumberOfColumns({\n selectedProducts,\n selectedProductsLimit,\n products,\n }),\n [selectedProducts, selectedProductsLimit, products, isStaticTable],\n );\n\n const templateColumnWidth = useMemo(() => {\n if (isSmallScreen) return \"100%\";\n if (isGreaterThanDesktopWidth) return \"1fr\";\n return `${columnWidth}px`;\n }, [isSmallScreen, columnWidth, isGreaterThanDesktopWidth]);\n\n // const twoColumns = 2;\n /**\n * 1 sticky left column\n * N non-sticky product columns\n */\n const templateColumns = useMemo(\n () =>\n `${leftColumnWidth}px repeat(${numberOfColumns}, ${templateColumnWidth})`,\n [leftColumnWidth, numberOfColumns, templateColumnWidth],\n );\n\n const hasNotes = useMemo(() => {\n return products.some(({ notes }) => !!notes?.length);\n }, [products]);\n\n const hasFootnotes = useMemo(() => {\n return products.some(({ footnotes }) => footnotes?.length);\n }, [products]);\n\n // #############################################################################\n // Column button\n // #############################################################################\n const getComingSoonButtonText = useCallback(\n (product: MutatedProduct) => {\n const buttonText = product.comingSoonButtonText;\n\n if (typeof buttonText === \"string\") {\n return formatMessage(buttonText);\n }\n\n if (typeof buttonText === \"function\" && !!buttonText(storeId)) {\n const foundKey = buttonText(storeId);\n\n if (foundKey) {\n return formatMessage(foundKey);\n }\n }\n\n return formatMessage(\"Coming Soon\");\n },\n [formatMessage, storeId],\n );\n\n const hasMultipleProductsSelected = useMemo(\n () => products.filter(({ id }) => id !== emptyColumn.id).length > 1,\n [products],\n );\n\n return (\n // APPLY left to right override in all cases rather than redo the model compare for Arabic\n <section dir={LanguageDirectionType.ltr}>\n <StickyGrid templateColumns={templateColumns}>\n <StickyGridHeader\n stickOffset={stickOffset}\n onStickyStateChange={setHeaderItemsAreSticking}\n nonScrollChildren={({ grid: { isAtMinX }, isStuck }) => {\n return (\n <HeaderShadow\n leftColumnWidth={leftColumnWidth}\n shadowLeftColumn={isAtMinX}\n show={isStuck}\n />\n );\n }}\n >\n <S.PlaceholderGridItem stickX />\n {products.map((product, index) =>\n product.propertyValues.length ? (\n <ProductHeader\n key={`${product.id}-${index}`}\n isStaticProduct={\n isStaticTable || (!isOverviewPage && index === 0)\n }\n product={product}\n setSelectedProducts={setSelectedProducts}\n index={index}\n setExternalState={setExternalState}\n selectedProducts={selectedProducts}\n linkToStoreTitleClick={linkToStoreTitleClick}\n hasBeenObserved={hasBeenObserved}\n isLessThanOrEqualToFiveProducts={\n isLessThanOrEqualToFiveProducts\n }\n hasMultipleProductsSelected={hasMultipleProductsSelected}\n isSmallScreen={isSmallScreen}\n onLinkClick={onLinkClick}\n showBadges={showBadges}\n />\n ) : (\n <EmptyColumnHeader\n key={`${product.id}-${index}`}\n product={product}\n index={index}\n hasBeenObserved={hasBeenObserved}\n maxImageHeight={maxImageHeight}\n headerItemsAreSticking={headerItemsAreSticking}\n />\n ),\n )}\n </StickyGridHeader>\n\n <StickyGridBody>\n {properties.map((property) => (\n <Fragment key={property.id}>\n <S.PropertyTitleGridItem stickX>\n {!!leftColumnWidth && (\n <S.PropertyTitleGridItemContent>\n <S.PropertyIcon>\n <StyleableSvgImage\n width={30}\n height={30}\n src={property.icon}\n />\n </S.PropertyIcon>\n <S.PropertyTitle>\n {property.title.split(\"\\n\").map((part, i, arr) => (\n <Fragment key={i}>\n {part}\n {i < arr.length - 1 && <br />}\n </Fragment>\n ))}\n </S.PropertyTitle>\n {property.tooltip && (\n <S.PropertyTooltip>\n <S.TooltipStyles maxWidth={property.tooltipWidth} />\n <Tooltip\n tooltipClassName={TOOLTIP_CLASS_NAME}\n description={\n <S.PropertyTooltipContent\n dangerouslySetInnerHTML={{\n __html: property.tooltip,\n }}\n />\n }\n portal\n motif=\"dark\"\n isInteractive\n position=\"right\"\n width={property.tooltipWidth}\n >\n <S.PropertyTooltipHoverArea />\n <S.TooltipIcon\n width={20}\n height={20}\n src={tooltipIcon}\n />\n </Tooltip>\n </S.PropertyTooltip>\n )}\n </S.PropertyTitleGridItemContent>\n )}\n </S.PropertyTitleGridItem>\n\n {products.map((product, index) => {\n const isLastProduct = index === products.length - 1;\n const productProperty = product.propertyValues?.find(\n (product) => product.propertyId === property.id,\n );\n\n return (\n <PropertyValueGridItem\n isLastProduct={isLastProduct}\n key={`${product.id}-${index}`}\n productProperty={productProperty}\n property={property}\n includeProperty={isSmallScreen}\n index={index}\n />\n );\n })}\n </Fragment>\n ))}\n\n {/**\n * Notes\n */}\n {hasNotes && <Notes products={products} />}\n\n {/**\n * Buy button\n */}\n <S.EmptyPropertyTitleGridItem stickX />\n {products.map((product, index) =>\n renderButton({\n product,\n index,\n getComingSoonButtonText,\n showBuyButton,\n onLinkClick,\n }),\n )}\n\n {/**\n * Footnotes\n */}\n {hasFootnotes && <FootNotes products={products} />}\n </StickyGridBody>\n\n <StickyGridOverlay\n style={{ left: `${leftColumnWidth}px` }}\n topOffset={overlayTopOffset}\n >\n {({ isAtMinX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMinX}\n color={leftColumnWidth > 0 ? \"rgb(23 49 73 / 0.1)\" : \"white\"}\n rotationDegrees={180}\n onClickColumnDiff={-1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n\n <StickyGridOverlay style={{ right: 0 }} topOffset={overlayTopOffset}>\n {({ isAtMaxX }) => (\n <ModelCompareOverflowScrollButton\n isLeftButton={false}\n isVisible={!isAtMaxX}\n color=\"white\"\n rotationDegrees={0}\n onClickColumnDiff={1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen}\n />\n )}\n </StickyGridOverlay>\n </StickyGrid>\n </section>\n );\n};\n"],"names":["SMOOTH_SIZE_REDUCTION","CompareTableMarkup","products","properties","columnWidth","propertyColumnWidth","headerStickOffset","overlayTopOffset","showBuyButton","onLinkClick","linkToStoreTitleClick","showBadges","setSelectedProducts","hasBeenObserved","selectedProductsLimit","setExternalState","selectedProducts","currAvailableProducts","isOverviewPage","isStaticTable","storeId","useMenu","formatMessage","useModelCompareTranslation","renderButton","useButtonRenderer","width","screenWidth","useWindowSize","isLessThanOrEqualToFiveProducts","length","headerItemsAreSticking","setHeaderItemsAreSticking","useState","isSmallScreen","useMemo","S.MOBILE_BREAKPOINT","isGreaterThanDesktopWidth","CONTAINER_WIDTH","DESKTOP","leftColumnWidth","Math","min","maxImageHeight","max","map","image","height","stickOffset","numberOfColumns","getNumberOfColumns","templateColumnWidth","templateColumns","hasNotes","some","notes","hasFootnotes","footnotes","getComingSoonButtonText","useCallback","product","buttonText","comingSoonButtonText","foundKey","hasMultipleProductsSelected","filter","id","emptyColumn","dir","LanguageDirectionType","ltr","children","jsxs","StickyGrid","StickyGridHeader","onStickyStateChange","nonScrollChildren","grid","isAtMinX","isStuck","jsx","HeaderShadow","shadowLeftColumn","show","S.PlaceholderGridItem","stickX","index","propertyValues","ProductHeader","isStaticProduct","EmptyColumnHeader","StickyGridBody","property","Fragment","S.PropertyTitleGridItem","S.PropertyTitleGridItemContent","S.PropertyIcon","StyleableSvgImage","src","icon","S.PropertyTitle","title","split","part","i","arr","tooltip","S.PropertyTooltip","S.TooltipStyles","maxWidth","tooltipWidth","Tooltip","tooltipClassName","TOOLTIP_CLASS_NAME","description","S.PropertyTooltipContent","dangerouslySetInnerHTML","__html","portal","motif","isInteractive","position","S.PropertyTooltipHoverArea","S.TooltipIcon","tooltipIcon","isLastProduct","productProperty","find","propertyId","PropertyValueGridItem","includeProperty","Notes","S.EmptyPropertyTitleGridItem","FootNotes","StickyGridOverlay","style","left","topOffset","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","right","isAtMaxX","isLeftButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMA,qBAAwB,GAAA,CAAA;AAEvB,MAAMC,qBAAqBA,CAAC;EACjCC,QAAA;EACAC,UAAA;EACAC,WAAc,GAAA,GAAA;EACdC,mBAAsB,GAAA,GAAA;EACtBC,iBAAA;EACAC,gBAAA;EACAC,aAAA;EACAC,WAAA;EACAC,qBAAA;EACAC,UAAA;EACAC,mBAAA;EACAC,eAAA;EACAC,qBAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,cAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;EAAQ,CAAA,GAAIC,OAAQ,CAAA,CAAA;EACtB,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;EACrD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
|
|
1
|
-
export declare function ModelCompareOverflowScrollButton({ isVisible, color, rotationDegrees, onClickColumnDiff, totalColumns, totalDeadSpace, isSmallScreen, }: {
|
|
1
|
+
export declare function ModelCompareOverflowScrollButton({ isVisible, color, rotationDegrees, onClickColumnDiff, totalColumns, totalDeadSpace, isSmallScreen, isLeftButton, }: {
|
|
2
2
|
isVisible: boolean;
|
|
3
3
|
color: string;
|
|
4
4
|
rotationDegrees: number;
|
|
@@ -6,4 +6,5 @@ export declare function ModelCompareOverflowScrollButton({ isVisible, color, rot
|
|
|
6
6
|
totalDeadSpace: number;
|
|
7
7
|
totalColumns: number;
|
|
8
8
|
isSmallScreen: boolean;
|
|
9
|
+
isLeftButton?: boolean;
|
|
9
10
|
}): JSX.Element;
|