@ubnt/store.core 9.36.0-alpha.30 → 9.36.0-alpha.4
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 +0 -104
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/gbe-1u-2.5and10.png +0 -0
- package/lib/assets/gbe-1u.png +0 -0
- package/lib/assets/icons/wizard/plus.svg.js +1 -1
- package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus.svg +22 -4
- package/lib/assets/plus2.svg +1 -22
- package/lib/assets/plus3.svg +4 -1
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/Button/Button.js +0 -7
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +1 -8
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +1 -3
- package/lib/components/Button/CartButton.js +4 -9
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +4 -8
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -3
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +2 -6
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -5
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Explore/ExploreData.js +9 -9
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +9 -9
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
- package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +1 -3
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +1 -2
- package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +1 -16
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +1 -16
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +4 -10
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +4 -10
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +1 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +1 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +12 -19
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +12 -19
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +6 -9
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +6 -9
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/products/express.js +2 -2
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +40 -4
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +20 -4
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
- package/lib/components/ProductWizard/ProductWizard.js +1 -1
- package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/icons/generic/index.js +3 -3
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/constants/icons/generic/plus.svg.js +5 -5
- package/lib/constants/icons/generic/plus.svg.mjs +2 -2
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -3
- package/lib/constants/proStoreCategories/mapping/index.js +0 -8
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +0 -8
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +0 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js +0 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -2
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +2 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +19 -21
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +19 -21
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/{hosting.png.js → gbe-1u-2.5and10.png.js} +6 -6
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +1 -0
- package/lib/{assets/icons/cart-secondary.svg.js → contexts/MicrositeMenuContext/assets/gbe-1u.png.js} +6 -6
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +2 -3
- package/lib/contexts/MicrositeMenuContext/assets/index.js +2 -3
- package/lib/contexts/MicrositeMenuContext/assets/index.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs +2 -3
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.d.ts +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.js +21 -34
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +19 -31
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +3 -7
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +3 -7
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +2 -2
- package/lib/contexts/MicrositeMenuContext/types.d.ts +0 -1
- package/lib/contexts/MicrositeMenuContext/types.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/types.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/assets/cart-secondary.svg +0 -5
- package/lib/assets/hosting.png +0 -0
- package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
- package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
- package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
- package/lib/assets/multi-gbe.png +0 -0
- package/lib/assets/single-gbe.png +0 -0
- package/lib/contexts/MicrositeMenuContext/assets/hosting.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/hosting.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/hosting.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/multi-gbe.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/multi-gbe.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/multi-gbe.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/multi-gbe.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/single-gbe.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/single-gbe.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/single-gbe.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/single-gbe.png.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,110 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
-
### 9.36.0-alpha.30
|
|
10
|
-
|
|
11
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Fix cart button loader dots colors for secondary button
|
|
12
|
-
|
|
13
|
-
### 9.36.0-alpha.29
|
|
14
|
-
|
|
15
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Add option to cart button for custom icon dimensions
|
|
16
|
-
|
|
17
|
-
### 9.36.0-alpha.28
|
|
18
|
-
|
|
19
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Add secondary variant styles for cart button
|
|
20
|
-
|
|
21
|
-
### 9.36.0-alpha.27
|
|
22
|
-
|
|
23
|
-
- [Fix] [MIC-417](https://ubiquiti.atlassian.net/browse/MIC-417) Show "Explore" instead of "Compare" for categories with single product
|
|
24
|
-
|
|
25
|
-
### 9.36.0-alpha.26
|
|
26
|
-
|
|
27
|
-
- [Fix] [MIC-417](https://ubiquiti.atlassian.net/browse/MIC-417) Add back mouse leave event listener for Navigation 3.0
|
|
28
|
-
|
|
29
|
-
### 9.36.0-alpha.25
|
|
30
|
-
|
|
31
|
-
- [Feat] [MIC-417](https://ubiquiti.atlassian.net/browse/MIC-417) Add CloudKeys and Gateways under Integrations in Navigation 3.0
|
|
32
|
-
|
|
33
|
-
### 9.36.0-alpha.24
|
|
34
|
-
|
|
35
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Update ScrollWrapper, remove "onItemExitLeft" and add "disableScrollToActive" options
|
|
36
|
-
|
|
37
|
-
### 9.36.0-alpha.23
|
|
38
|
-
|
|
39
|
-
- Revert MIC-472/update-model-compare-design merge commits
|
|
40
|
-
|
|
41
|
-
### 9.36.0-alpha.22
|
|
42
|
-
|
|
43
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Update ScrollWrapper, add "alignActive" and "onItemExitLeft" options
|
|
44
|
-
|
|
45
|
-
### 9.36.0-alpha.21
|
|
46
|
-
|
|
47
|
-
- [Feat] [MIC-417](https://ubiquiti.atlassian.net/browse/MIC-417) Update Navigation 3.0 URLs for Integrations
|
|
48
|
-
|
|
49
|
-
### 9.36.0-alpha.20
|
|
50
|
-
|
|
51
|
-
- [Feat] [MIC-472](https://ubiquiti.atlassian.net/browse/MIC-472) WIP: update model compare table design/functionality
|
|
52
|
-
|
|
53
|
-
### 9.36.0-alpha.19
|
|
54
|
-
|
|
55
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Add "Camera Accessories" category in "Camera Security"
|
|
56
|
-
|
|
57
|
-
### 9.36.0-alpha.18
|
|
58
|
-
|
|
59
|
-
- [Feat] [NEP-3878](https://ubiquiti.atlassian.net/browse/NEP-3878) Add new WiFi subcategory "Enterprise"
|
|
60
|
-
|
|
61
|
-
### 9.36.0-alpha.17
|
|
62
|
-
|
|
63
|
-
- [Feat] [MIC] Add compare all for overview items in 3.0 navigation
|
|
64
|
-
|
|
65
|
-
### 9.36.0-alpha.16
|
|
66
|
-
|
|
67
|
-
- [Feat] [MIC] Update 3.0 navigation hover state
|
|
68
|
-
|
|
69
|
-
### 9.36.0-alpha.15
|
|
70
|
-
|
|
71
|
-
- [Fix] [MIC-472](https://ubiquiti.atlassian.net/browse/MIC-472) Improve table styles.
|
|
72
|
-
|
|
73
|
-
### 9.36.0-alpha.14
|
|
74
|
-
|
|
75
|
-
- [Fix] [MIC-472](https://ubiquiti.atlassian.net/browse/MIC-472) Rename a table, show badges, remove values to match design
|
|
76
|
-
|
|
77
|
-
### 9.36.0-alpha.13
|
|
78
|
-
|
|
79
|
-
- [Fix] [MIC-472](https://ubiquiti.atlassian.net/browse/MIC-472) Update/add Model Compares to align with 3.0 design
|
|
80
|
-
|
|
81
|
-
### 9.36.0-alpha.12
|
|
82
|
-
|
|
83
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) Export Category tab height constants
|
|
84
|
-
|
|
85
|
-
### 9.36.0-alpha.11
|
|
86
|
-
|
|
87
|
-
- [Fix] [MIC] ui.com 3.0 navigation has assets with white background
|
|
88
|
-
|
|
89
|
-
### 9.36.0-alpha.10
|
|
90
|
-
|
|
91
|
-
- [Fix] [MIC] ui.com 3.0 navigation active state not persisted for overview after click
|
|
92
|
-
|
|
93
|
-
### 9.36.0-alpha.9
|
|
94
|
-
|
|
95
|
-
- [Feat] [MIC] ui.com 3.0 navigation active hover update v2
|
|
96
|
-
|
|
97
|
-
### 9.36.0-alpha.8
|
|
98
|
-
|
|
99
|
-
- [Feat] [MIC] ui.com 3.0 navigation active hover update
|
|
100
|
-
|
|
101
|
-
### 9.36.0-alpha.7
|
|
102
|
-
|
|
103
|
-
- [Fix] [MIC] ui.com 3.0 navigation active link not working
|
|
104
|
-
|
|
105
|
-
### 9.36.0-alpha.6
|
|
106
|
-
|
|
107
|
-
- [Fix] [MIC] ui.com 3.0 navigation active link
|
|
108
|
-
|
|
109
|
-
### 9.36.0-alpha.5
|
|
110
|
-
|
|
111
|
-
- [Fix] [MIC-417](https://ubiquiti.atlassian.net/browse/MIC-417) Update microsite menu context
|
|
112
|
-
|
|
113
9
|
### 9.36.0-alpha.4
|
|
114
10
|
|
|
115
11
|
- [Fix] [MIC-417](https://ubiquiti.atlassian.net/browse/MIC-417) Fixes duplicate active items in submenu
|
package/lib/assets/attention.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<circle cx="
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
5
|
-
<circle cx="
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="9" cy="9" r="9" fill="#F7D55E"/>
|
|
3
|
+
<path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
|
|
4
|
+
<path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
|
|
5
|
+
<circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
|
|
6
6
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<circle cx="
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
5
|
-
<circle cx="
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
|
|
3
|
+
<path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
|
|
4
|
+
<path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
|
|
5
|
+
<circle cx="8" cy="9.5" r="0.5" fill="white"/>
|
|
6
6
|
</svg>
|
package/lib/assets/close2.svg
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
3
4
|
</svg>
|
package/lib/assets/close3.svg
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
|
|
4
3
|
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../
|
|
2
|
-
export { default } from "../../
|
|
1
|
+
export * from "../../plus.svg";
|
|
2
|
+
export { default } from "../../plus.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
package/lib/assets/minus4.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15898)">
|
|
4
|
+
<path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_426_15898)">
|
|
8
|
+
<rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_426_15898">
|
|
12
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/minus5.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_406)">
|
|
4
|
+
<path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_658_406)">
|
|
8
|
+
<rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_658_406">
|
|
12
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/pause.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
3
|
+
<rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/pause2.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
3
|
+
<rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/plus.svg
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<svg
|
|
2
|
+
width="10"
|
|
3
|
+
height="10"
|
|
4
|
+
viewBox="0 0 10 10"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<rect
|
|
9
|
+
y="4.5"
|
|
10
|
+
width="10"
|
|
11
|
+
height="1"
|
|
12
|
+
fill="#838691"
|
|
13
|
+
/>
|
|
14
|
+
<rect
|
|
15
|
+
x="4.5"
|
|
16
|
+
y="10"
|
|
17
|
+
width="10"
|
|
18
|
+
height="1"
|
|
19
|
+
transform="rotate(-90 4.5 10)"
|
|
20
|
+
fill="#838691"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
package/lib/assets/plus2.svg
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
width="10"
|
|
3
|
-
height="10"
|
|
4
|
-
viewBox="0 0 10 10"
|
|
5
|
-
fill="none"
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
>
|
|
8
|
-
<rect
|
|
9
|
-
y="4.5"
|
|
10
|
-
width="10"
|
|
11
|
-
height="1"
|
|
12
|
-
fill="#838691"
|
|
13
|
-
/>
|
|
14
|
-
<rect
|
|
15
|
-
x="4.5"
|
|
16
|
-
y="10"
|
|
17
|
-
width="10"
|
|
18
|
-
height="1"
|
|
19
|
-
transform="rotate(-90 4.5 10)"
|
|
20
|
-
fill="#838691"
|
|
21
|
-
/>
|
|
22
|
-
</svg>
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.5 7.49985V13.4998C6.5 13.776 6.72386 13.9998 7 13.9998C7.27614 13.9998 7.5 13.776 7.5 13.4998V7.49985H13.5C13.7761 7.49985 14 7.27599 14 6.99985C14 6.7237 13.7761 6.49985 13.5 6.49985H7.5V0.499847C7.5 0.223705 7.27614 -0.000152588 7 -0.000152588C6.72386 -0.000152588 6.5 0.223705 6.5 0.499847V6.49985H0.5C0.223858 6.49985 0 6.7237 0 6.99985C0 7.27599 0.223857 7.49985 0.5 7.49985H6.5Z" fill="currentColor"/></svg>
|
package/lib/assets/plus3.svg
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg width="14" height="14" viewBox="0 0 14 14" fill="none"
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8 0.453333 7.54667 0 7 0C6.45333 0 6 0.453333 6 1V6H1C0.453333 6 0 6.45333 0 7C0 7.54667 0.453333 8 1 8H6V13C6 13.5467 6.45333 14 7 14C7.54667 14 8 13.5467 8 13V8H13C13.5467 8 14 7.54667 14 7C14 6.45333 13.5467 6 13 6H8V1Z" fill="currentColor"/>
|
|
4
|
+
</svg>
|
package/lib/assets/plus5.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15903)">
|
|
4
|
+
<path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
|
|
5
|
+
<path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_426_15903)">
|
|
9
|
+
<rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_426_15903">
|
|
13
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/plus6.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_411)">
|
|
4
|
+
<path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
|
|
5
|
+
<path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_658_411)">
|
|
9
|
+
<rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_658_411">
|
|
13
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/ucgMax.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgMax2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra2.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmPro.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmPro2.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmProMax.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -36,12 +36,6 @@ const Button = React.forwardRef(function Button2({
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}, [disabled, loading, loadAfterAction, onClick]);
|
|
39
|
-
const loaderDotsColor = React.useMemo(() => {
|
|
40
|
-
if (args.variant === "secondary") {
|
|
41
|
-
return "primaryBlue";
|
|
42
|
-
}
|
|
43
|
-
return "white";
|
|
44
|
-
}, [args.variant]);
|
|
45
39
|
return /* @__PURE__ */jsxRuntime.jsx(Button_styles.StyledButton, {
|
|
46
40
|
...args,
|
|
47
41
|
as: anchor ? "a" : void 0,
|
|
@@ -54,7 +48,6 @@ const Button = React.forwardRef(function Button2({
|
|
|
54
48
|
children: /* @__PURE__ */jsxRuntime.jsxs(Button_styles.InnerWrap, {
|
|
55
49
|
children: [loading && /* @__PURE__ */jsxRuntime.jsx(Button_styles.LoaderDotsWrap, {
|
|
56
50
|
children: /* @__PURE__ */jsxRuntime.jsx(LoaderDots.LoaderDots, {
|
|
57
|
-
color: loaderDotsColor,
|
|
58
51
|
size: size === "large" ? "large" : void 0
|
|
59
52
|
})
|
|
60
53
|
}), children]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect,
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect, useState } from \"react\";\n\nimport { LoaderDots } from \"../LoaderDots\";\nimport * as S from \"./Button.styles\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport const BUTTON_LOADING_DELAY_MS = 2000;\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement | null,\n PropsWithChildren<ButtonProps>\n>(function Button(\n {\n children,\n anchor,\n size = \"medium\",\n loading: loadingInitial,\n loadAfterAction,\n disabled,\n flush,\n onClick,\n ...args\n },\n ref,\n) {\n // #############################################################################\n // Handle loading\n // #############################################################################\n const [loading, setLoading] = useState(!!loadingInitial);\n\n // Handle external loading state change\n useEffect(() => {\n setLoading(!!loadingInitial);\n }, [loadingInitial]);\n\n // #############################################################################\n // Handle action and loading after action\n // #############################################################################\n const onClickCustom = useCallback(\n (e: MouseEvent<HTMLElement>) => {\n // Prevent action if loading or disabled\n if (loading || disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n // Call the action\n if (onClick) {\n onClick(e);\n\n // Add a delay before the next action can be triggered\n if (loadAfterAction) {\n setLoading(true);\n setTimeout(() => setLoading(false), BUTTON_LOADING_DELAY_MS);\n }\n }\n },\n [disabled, loading, loadAfterAction, onClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.StyledButton\n {...args}\n as={anchor ? \"a\" : undefined}\n disabled={disabled || loading}\n size={size}\n $flush={flush}\n $loading={loading}\n onClick={onClickCustom}\n // @ts-expect-error By using as=\"a\" we can't safely determine which to use type-wise here\n ref={ref}\n >\n <S.InnerWrap>\n {loading && (\n <S.LoaderDotsWrap>\n <LoaderDots size={size === \"large\" ? \"large\" : undefined} />\n </S.LoaderDotsWrap>\n )}\n {children}\n </S.InnerWrap>\n </S.StyledButton>\n );\n});\n"],"names":["BUTTON_LOADING_DELAY_MS","Button","forwardRef","Button2","children","anchor","size","loading","loadingInitial","loadAfterAction","disabled","flush","onClick","args","ref","setLoading","useState","useEffect","onClickCustom","useCallback","e","preventDefault","stopPropagation","setTimeout","jsx","S.StyledButton","StyledButton","as","$flush","$loading","jsxs","S.InnerWrap","S.LoaderDotsWrap","LoaderDots"],"mappings":";;;;;;;;AAOO,MAAMA,uBAA0B,GAAA,GAAA;AAE1B,MAAAC,MAAA,GAASC,KAAAA,CAAAA,UAGpB,CAAA,SAASD,OACTE,CAAA;EACEC,QAAA;EACAC,MAAA;EACAC,IAAO,GAAA,QAAA;EACPC,OAAS,EAAAC,cAAA;EACTC,eAAA;EACAC,QAAA;EACAC,KAAA;EACAC,OAAA;EACA,GAAGC;AACL,CAAA,EACAC,GACA,EAAA;EAIA,MAAM,CAACP,OAAS,EAAAQ,UAAU,IAAIC,KAAAA,CAAAA,QAAS,CAAA,CAAC,CAACR,cAAc,CAAA;EAGvDS,KAAAA,CAAAA,SAAA,CAAU,MAAM;IACHF,UAAA,CAAA,CAAC,CAACP,cAAc,CAAA;EAAA,CAC7B,EAAG,CAACA,cAAc,CAAC,CAAA;EAKnB,MAAMU,aAAgB,GAAAC,KAAA,CAAAA,WAAA,CACnBC,CAA+B,IAAA;IAE9B,IAAIb,WAAWG,QAAU,EAAA;MACvBU,CAAA,CAAEC,cAAe,CAAA,CAAA;MACjBD,CAAA,CAAEE,eAAgB,CAAA,CAAA;MAClB;IACF;IAGA,IAAIV,OAAS,EAAA;MACXA,OAAA,CAAQQ,CAAC,CAAA;MAGT,IAAIX,eAAiB,EAAA;QACnBM,UAAA,CAAW,IAAI,CAAA;QACfQ,UAAA,CAAW,MAAMR,UAAA,CAAW,KAAK,CAAA,EAAGf,uBAAuB,CAAA;MAC7D;IACF;EACF,CAAA,EACA,CAACU,QAAA,EAAUH,OAAS,EAAAE,eAAA,EAAiBG,OAAO,CAAA,CAC9C;EAME,sBAAAY,UAAA,CAAAA,GAAA,CAACC,aAAE,CAAAC,YAAA,EAAF;IACE,GAAGb,IAAA;IACJc,EAAA,EAAItB,SAAS,GAAM,GAAA,KAAA,CAAA;IACnBK,UAAUA,QAAY,IAAAH,OAAA;IACtBD,IAAA;IACAsB,MAAQ,EAAAjB,KAAA;IACRkB,QAAU,EAAAtB,OAAA;IACVK,OAAS,EAAAM,aAAA;IAETJ,GAAA;IAEAV,QAAA,iBAAA0B,UAAA,CAAAA,IAAA,CAACC,uBAAE,EAAF;MACE3B,QAAA,EAAA,CACCG,OAAA,IAAAiB,eAAAA,UAAAA,CAAAA,GAAA,CAACQ,aAAAA,CAAAA,cAAE,EAAF;QACC5B,QAAA,EAAA,eAAAoB,UAAA,CAAAA,GAAA,CAACS,UAAW,CAAAA,UAAA,EAAA;UAAA3B,IAAA,EAAMA,IAAS,KAAA,OAAA,GAAU,OAAU,GAAA,KAAA;QAAA,CAAW;MAC5D,CAAA,CAAA,EAEDF,QAAA;KACH;EAAA,CAAA,CACF;AAEJ,CAAC,CAAA;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef, useState, useEffect, useCallback
|
|
2
|
+
import { forwardRef, useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import '../LoaderDots/index.mjs';
|
|
4
4
|
import { StyledButton, InnerWrap, LoaderDotsWrap } from './Button.styles.mjs';
|
|
5
5
|
import { LoaderDots } from '../LoaderDots/LoaderDots.mjs';
|
|
@@ -34,12 +34,6 @@ const Button = forwardRef(function Button2({
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}, [disabled, loading, loadAfterAction, onClick]);
|
|
37
|
-
const loaderDotsColor = useMemo(() => {
|
|
38
|
-
if (args.variant === "secondary") {
|
|
39
|
-
return "primaryBlue";
|
|
40
|
-
}
|
|
41
|
-
return "white";
|
|
42
|
-
}, [args.variant]);
|
|
43
37
|
return /* @__PURE__ */jsx(StyledButton, {
|
|
44
38
|
...args,
|
|
45
39
|
as: anchor ? "a" : void 0,
|
|
@@ -52,7 +46,6 @@ const Button = forwardRef(function Button2({
|
|
|
52
46
|
children: /* @__PURE__ */jsxs(InnerWrap, {
|
|
53
47
|
children: [loading && /* @__PURE__ */jsx(LoaderDotsWrap, {
|
|
54
48
|
children: /* @__PURE__ */jsx(LoaderDots, {
|
|
55
|
-
color: loaderDotsColor,
|
|
56
49
|
size: size === "large" ? "large" : void 0
|
|
57
50
|
})
|
|
58
51
|
}), children]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect,
|
|
1
|
+
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect, useState } from \"react\";\n\nimport { LoaderDots } from \"../LoaderDots\";\nimport * as S from \"./Button.styles\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport const BUTTON_LOADING_DELAY_MS = 2000;\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement | null,\n PropsWithChildren<ButtonProps>\n>(function Button(\n {\n children,\n anchor,\n size = \"medium\",\n loading: loadingInitial,\n loadAfterAction,\n disabled,\n flush,\n onClick,\n ...args\n },\n ref,\n) {\n // #############################################################################\n // Handle loading\n // #############################################################################\n const [loading, setLoading] = useState(!!loadingInitial);\n\n // Handle external loading state change\n useEffect(() => {\n setLoading(!!loadingInitial);\n }, [loadingInitial]);\n\n // #############################################################################\n // Handle action and loading after action\n // #############################################################################\n const onClickCustom = useCallback(\n (e: MouseEvent<HTMLElement>) => {\n // Prevent action if loading or disabled\n if (loading || disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n // Call the action\n if (onClick) {\n onClick(e);\n\n // Add a delay before the next action can be triggered\n if (loadAfterAction) {\n setLoading(true);\n setTimeout(() => setLoading(false), BUTTON_LOADING_DELAY_MS);\n }\n }\n },\n [disabled, loading, loadAfterAction, onClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.StyledButton\n {...args}\n as={anchor ? \"a\" : undefined}\n disabled={disabled || loading}\n size={size}\n $flush={flush}\n $loading={loading}\n onClick={onClickCustom}\n // @ts-expect-error By using as=\"a\" we can't safely determine which to use type-wise here\n ref={ref}\n >\n <S.InnerWrap>\n {loading && (\n <S.LoaderDotsWrap>\n <LoaderDots size={size === \"large\" ? \"large\" : undefined} />\n </S.LoaderDotsWrap>\n )}\n {children}\n </S.InnerWrap>\n </S.StyledButton>\n );\n});\n"],"names":["BUTTON_LOADING_DELAY_MS","Button","forwardRef","Button2","children","anchor","size","loading","loadingInitial","loadAfterAction","disabled","flush","onClick","args","ref","setLoading","useState","useEffect","onClickCustom","useCallback","e","preventDefault","stopPropagation","setTimeout","jsx","S.StyledButton","as","$flush","$loading","jsxs","S.InnerWrap","S.LoaderDotsWrap","LoaderDots"],"mappings":";;;;;;AAOO,MAAMA,uBAA0B,GAAA,GAAA;AAE1B,MAAAC,MAAA,GAASC,UAGpB,CAAA,SAASD,OACTE,CAAA;EACEC,QAAA;EACAC,MAAA;EACAC,IAAO,GAAA,QAAA;EACPC,OAAS,EAAAC,cAAA;EACTC,eAAA;EACAC,QAAA;EACAC,KAAA;EACAC,OAAA;EACA,GAAGC;AACL,CAAA,EACAC,GACA,EAAA;EAIA,MAAM,CAACP,OAAS,EAAAQ,UAAU,IAAIC,QAAS,CAAA,CAAC,CAACR,cAAc,CAAA;EAGvDS,SAAA,CAAU,MAAM;IACHF,UAAA,CAAA,CAAC,CAACP,cAAc,CAAA;EAAA,CAC7B,EAAG,CAACA,cAAc,CAAC,CAAA;EAKnB,MAAMU,aAAgB,GAAAC,WAAA,CACnBC,CAA+B,IAAA;IAE9B,IAAIb,WAAWG,QAAU,EAAA;MACvBU,CAAA,CAAEC,cAAe,CAAA,CAAA;MACjBD,CAAA,CAAEE,eAAgB,CAAA,CAAA;MAClB;IACF;IAGA,IAAIV,OAAS,EAAA;MACXA,OAAA,CAAQQ,CAAC,CAAA;MAGT,IAAIX,eAAiB,EAAA;QACnBM,UAAA,CAAW,IAAI,CAAA;QACfQ,UAAA,CAAW,MAAMR,UAAA,CAAW,KAAK,CAAA,EAAGf,uBAAuB,CAAA;MAC7D;IACF;EACF,CAAA,EACA,CAACU,QAAA,EAAUH,OAAS,EAAAE,eAAA,EAAiBG,OAAO,CAAA,CAC9C;EAME,sBAAAY,GAAA,CAACC,YAAE,EAAF;IACE,GAAGZ,IAAA;IACJa,EAAA,EAAIrB,SAAS,GAAM,GAAA,KAAA,CAAA;IACnBK,UAAUA,QAAY,IAAAH,OAAA;IACtBD,IAAA;IACAqB,MAAQ,EAAAhB,KAAA;IACRiB,QAAU,EAAArB,OAAA;IACVK,OAAS,EAAAM,aAAA;IAETJ,GAAA;IAEAV,QAAA,iBAAAyB,IAAA,CAACC,SAAE,EAAF;MACE1B,QAAA,EAAA,CACCG,OAAA,IAAA,eAAAiB,GAAA,CAACO,cAAE,EAAF;QACC3B,QAAA,EAAA,eAAAoB,GAAA,CAACQ,UAAW,EAAA;UAAA1B,IAAA,EAAMA,IAAS,KAAA,OAAA,GAAU,OAAU,GAAA,KAAA;QAAA,CAAW;MAC5D,CAAA,CAAA,EAEDF,QAAA;KACH;EAAA,CAAA,CACF;AAEJ,CAAC,CAAA;"}
|
|
@@ -13,7 +13,5 @@ export interface CartButtonProps extends ButtonProps {
|
|
|
13
13
|
* (optional) Label to display on the button. If not provided, only the icon will be displayed
|
|
14
14
|
*/
|
|
15
15
|
label?: string;
|
|
16
|
-
iconWidth?: number;
|
|
17
|
-
iconHeight?: number;
|
|
18
16
|
}
|
|
19
|
-
export declare const CartButton: ({ icon, hideIcon, preLabel, label,
|
|
17
|
+
export declare const CartButton: ({ icon, hideIcon, preLabel, label, ...props }: CartButtonProps) => JSX.Element;
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var styled = require('styled-components');
|
|
6
|
-
require('../../assets/icons/cart-secondary.svg.js');
|
|
7
6
|
require('../../assets/icons/cart.svg.js');
|
|
8
7
|
require('../../assets/icons/cartPlus.svg.js');
|
|
9
8
|
require('../StyleableSvgImage/index.js');
|
|
10
9
|
var Button = require('./Button.js');
|
|
11
10
|
var CartPlusIcon = require("../../assets/cartPlus.svg");
|
|
12
|
-
var CartIconSecondary = require("../../assets/cart-secondary.svg");
|
|
13
11
|
var CartIcon = require("../../assets/cart.svg");
|
|
14
12
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
15
13
|
function _interopDefault(e) {
|
|
@@ -19,7 +17,6 @@ function _interopDefault(e) {
|
|
|
19
17
|
}
|
|
20
18
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
21
19
|
var CartPlusIcon__default = /*#__PURE__*/_interopDefault(CartPlusIcon);
|
|
22
|
-
var CartIconSecondary__default = /*#__PURE__*/_interopDefault(CartIconSecondary);
|
|
23
20
|
var CartIcon__default = /*#__PURE__*/_interopDefault(CartIcon);
|
|
24
21
|
"use strict";
|
|
25
22
|
const ButtonStyled = styled__default["default"](Button.Button)`
|
|
@@ -76,18 +73,16 @@ const CartButton = function CartButton2({
|
|
|
76
73
|
hideIcon,
|
|
77
74
|
preLabel,
|
|
78
75
|
label,
|
|
79
|
-
iconHeight = 16,
|
|
80
|
-
iconWidth = 20,
|
|
81
76
|
...props
|
|
82
77
|
}) {
|
|
83
78
|
const Icon = React.useMemo(() => {
|
|
84
79
|
switch (icon) {
|
|
85
80
|
case "cart":
|
|
86
|
-
return
|
|
81
|
+
return CartIcon__default["default"];
|
|
87
82
|
case "plus":
|
|
88
83
|
return CartPlusIcon__default["default"];
|
|
89
84
|
}
|
|
90
|
-
}, [icon
|
|
85
|
+
}, [icon]);
|
|
91
86
|
return /* @__PURE__ */jsxRuntime.jsx(ButtonStyled, {
|
|
92
87
|
...props,
|
|
93
88
|
label,
|
|
@@ -95,8 +90,8 @@ const CartButton = function CartButton2({
|
|
|
95
90
|
children: /* @__PURE__ */jsxRuntime.jsxs(ButtonInnerWrap, {
|
|
96
91
|
children: [!hideIcon && /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
97
92
|
src: Icon,
|
|
98
|
-
width:
|
|
99
|
-
height:
|
|
93
|
+
width: 20,
|
|
94
|
+
height: 16
|
|
100
95
|
}), (!!preLabel || !!label) && /* @__PURE__ */jsxRuntime.jsxs(Labels, {
|
|
101
96
|
children: [!!preLabel && /* @__PURE__ */jsxRuntime.jsx(PreLabel, {
|
|
102
97
|
children: preLabel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport
|
|
1
|
+
{"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\n\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\n\nconst Label = styled.span<{ $forceBold?: boolean }>`\n ${({ $forceBold }) =>\n $forceBold\n ? css`\n font-weight: bold;\n `\n : undefined};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && <StyleableSvgImage src={Icon} width={20} height={16} />}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $forceBold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$forceBold","CartButton","CartButton2","icon","hideIcon","props","Icon","useMemo","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAyBA,MAAMA,YAAA,GAAeC,eAAAA,CAAAA,SAAAA,EAAOC,MAAAA,CAAAA,MAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EACF;EAOA,IAAID,KAAO,EAAA;IACF,OAAAE,UAAA;AAAA;AAAA;AAAA,OAAA;EAIT;EAGO,OAAAA,UAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;AAAA;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMC,kBAAkBL,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAASP,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA,CAAA;AAKtB,MAAME,WAAWR,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,QAAQV,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA,IACjB,CAAC;EAAEE;CAAW,KACdA,UACI,GAAAP,MAAAA,CAAAA,GAAA;AAAA;AAAA,SAAA,GAGA,KAAS,CAAA;AAAA,CAAA;AAGJ,MAAAQ,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAZ,QAAA;EACAD,KAAA;EACA,GAAGc;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,KAAAA,CAAAA,QAAQ,MAAM;IACzB,QAAQJ,IAAM;MACZ,KAAK,MAAA;QACI,OAAAK,4BAAA;MAET,KAAK,MAAA;QACI,OAAAC,gCAAA;IACX;EAAA,CACF,EAAG,CAACN,IAAI,CAAC,CAAA;EAKT,OAAA,8BACGf,YAAc,EAAA;IAAA,GAAGiB;IAAOd,KAAc;IAAAC,QAAA;IACrCkB,yCAAChB,eACE,EAAA;MAAAgB,QAAA,EAAA,CAAC,CAAAN,QAAA,kCAAaO,iBAAkB,CAAAA,iBAAA,EAAA;QAAAC,GAAA,EAAKN;QAAMO,KAAO,EAAA,EAAA;QAAIC,QAAQ;OAAI,CAAA,EAAA,CACjE,CAAC,CAACtB,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,+BACfK,MACE,EAAA;QAAAc,QAAA,EAAA,CAAA,CAAC,CAAClB,QAAA,IAAA,eAAauB,UAAA,CAAAA,GAAA,CAAAlB,QAAA,EAAA;UAAUa,QAAS,EAAAlB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAAwB,UAAA,CAAAA,GAAA,CAAChB,KAAA,EAAA;UAECC,UAAA,EAAY,CAAC,CAACR,QAAA;UAEbkB,QAAA,EAAAnB;QAAA,CACH,CAAA;OAEJ,CAAA;IAEJ,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|