@ubnt/store.core 9.31.0-dts-fix.2 → 9.31.0-dts-fix.3
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/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -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/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- 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/Accordion/Accordion.types.d.ts +36 -0
- package/lib/components/AppDownloadBanner/AppDownloadBanner.types.d.ts +30 -0
- package/lib/components/Avatar/Avatar.types.d.ts +10 -0
- package/lib/components/BackInStock/BackInStock.types.d.ts +26 -0
- package/lib/components/Banner/Banner.types.d.ts +22 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
- package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.types.d.ts +10 -0
- package/lib/components/Button/Button.types.d.ts +23 -0
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +33 -0
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +16 -0
- package/lib/components/CardSection/CardSection.types.d.ts +13 -0
- package/lib/components/CarouselGallery/CarouselGallery.types.d.ts +12 -0
- package/lib/components/CartIcon/CartIcon.types.d.ts +8 -0
- package/lib/components/CartSummary/CartSummary.types.d.ts +11 -0
- package/lib/components/CategoryTabs/CategoryTabs.types.d.ts +24 -0
- package/lib/components/Checkbox/Checkbox.types.d.ts +8 -0
- package/lib/components/CloserLookSection/CloserLookSection.types.d.ts +35 -0
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.types.d.ts +10 -0
- package/lib/components/Compare/Compare.types.d.ts +34 -0
- package/lib/components/CompareChart/CompareChart.types.d.ts +17 -0
- package/lib/components/CompareSection/CompareSection.types.d.ts +20 -0
- package/lib/components/Container/Container.types.d.ts +11 -0
- package/lib/components/CustomImage/CustomImage.types.d.ts +88 -0
- package/lib/components/DeploymentGallery/DeploymentGallery.types.d.ts +6 -0
- package/lib/components/Explore/Explore.types.d.ts +11 -0
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.types.d.ts +4 -0
- package/lib/components/FeaturesSection_deprecated/Features/Features.types.d.ts +18 -0
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.types.d.ts +89 -0
- 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/Gallery/GalleryControls/GalleryControls.types.d.ts +16 -0
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.types.d.ts +7 -0
- package/lib/components/GradientButton/GradientButton.types.d.ts +4 -0
- package/lib/components/GridGallery/GridModal/GridModal.types.d.ts +8 -0
- package/lib/components/Header/AccountFrame/AccountFrame.types.d.ts +8 -0
- package/lib/components/Header/AccountMenu/AccountMenu.types.d.ts +9 -0
- package/lib/components/Header/CartModal/CartModal.types.d.ts +9 -0
- package/lib/components/Header/CartModal/Empty/Empty.types.d.ts +6 -0
- package/lib/components/Header/CartModalV2/CartModal.types.d.ts +8 -0
- package/lib/components/Header/CartModalV2/Item/Item.types.d.ts +7 -0
- package/lib/components/Header/LanguageFrame/LanguageFrame.types.d.ts +6 -0
- package/lib/components/Header/LinksModal/LinksModal.types.d.ts +11 -0
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +31 -0
- package/lib/components/Header/Navigation/Carousel/Carousel.types.d.ts +16 -0
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.types.d.ts +35 -0
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.types.d.ts +11 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +40 -0
- package/lib/components/Header/Overlay/Overlay.types.d.ts +6 -0
- package/lib/components/Header/SearchTab/SearchTab.types.d.ts +13 -0
- package/lib/components/HeroFadeGallery/HeroFadeGallery.types.d.ts +20 -0
- package/lib/components/HeroVideo/HeroVideo.types.d.ts +9 -0
- package/lib/components/HowToUseSection/HowToUseSection.types.d.ts +11 -0
- package/lib/components/ImageCarousel/ImageCarousel.types.d.ts +11 -0
- package/lib/components/ImageModal/ImageModal.types.d.ts +10 -0
- package/lib/components/InputSelect/InputSelect.types.d.ts +13 -0
- package/lib/components/LandingPage/Block/Block.types.d.ts +11 -0
- package/lib/components/LandingPage/Cards/Card/Card.types.d.ts +19 -0
- package/lib/components/LandingPage/Cards/Cards.types.d.ts +19 -0
- package/lib/components/LandingPage/LandingPage.types.d.ts +16 -0
- package/lib/components/LandingPagePro/LandingPagePro.types.d.ts +39 -0
- package/lib/components/LandingPageSearch/Modal/Modal.types.d.ts +20 -0
- package/lib/components/LandingPageSidebar/LandingPageSidebar.types.d.ts +92 -0
- package/lib/components/LayoutRendererV1/LayoutRenderer.types.d.ts +91 -0
- package/lib/components/LayoutRendererV2/LayoutRenderer.types.d.ts +93 -0
- package/lib/components/Loader/Loader.types.d.ts +9 -0
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +4 -0
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.types.d.ts +7 -0
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.types.d.ts +46 -0
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types.d.ts +12 -0
- package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.types.d.ts +26 -0
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.types.d.ts +15 -0
- package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.types.d.ts +4 -0
- package/lib/components/MicrositeSection/Features/Features.types.d.ts +18 -0
- package/lib/components/MicrositeSection/MicrositeSection.types.d.ts +103 -0
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.types.d.ts +9 -0
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.types.d.ts +5 -0
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.types.d.ts +42 -0
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/MobileModal/MobileModal.types.d.ts +15 -0
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +592 -0
- 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/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 +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/Pagination/Pagination.types.d.ts +5 -0
- package/lib/components/Popover/Popover.types.d.ts +8 -0
- package/lib/components/ProductCard/ProductCard.types.d.ts +9 -0
- package/lib/components/ProductCardPopup/ProductCardPopup.types.d.ts +36 -0
- package/lib/components/ProductCompare/ProductCompare.types.d.ts +17 -0
- package/lib/components/ProductDetails/ProductDetails.types.d.ts +6 -0
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.types.d.ts +19 -0
- package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.types.d.ts +17 -0
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.types.d.ts +25 -0
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.types.d.ts +21 -0
- package/lib/components/ProductSectionTabs/ProductSectionTabs.types.d.ts +25 -0
- package/lib/components/ProductTechSpecs/ProductTechSpecs.types.d.ts +13 -0
- package/lib/components/ProductUpsell/ProductUpsell.types.d.ts +38 -0
- package/lib/components/ProductWizard/Options/Options.types.d.ts +8 -0
- package/lib/components/ProductWizard/ProductWizard.types.d.ts +99 -0
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.types.d.ts +7 -0
- package/lib/components/ProgressCircle/ProgressCircle.types.d.ts +9 -0
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +11 -0
- package/lib/components/QuantityInput/QuantityInput.types.d.ts +10 -0
- package/lib/components/RelatedProducts/RelatedProducts.types.d.ts +32 -0
- package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.types.d.ts +32 -0
- package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.types.d.ts +30 -0
- package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.types.d.ts +31 -0
- package/lib/components/RelatedProductsVariantSelectorsV1/RelatedProductsVariantSelectors.types.d.ts +19 -0
- package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.types.d.ts +19 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.types.d.ts +36 -0
- 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/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.types.d.ts +7 -0
- 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/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.types.d.ts +9 -0
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.types.d.ts +5 -0
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +54 -0
- package/lib/components/Search/Input/Input.types.d.ts +19 -0
- package/lib/components/StaticModal/StaticModal.types.d.ts +10 -0
- package/lib/components/StorageSliders/Slider/Slider.types.d.ts +5 -0
- package/lib/components/TabinationButtons/TabinationButtons.types.d.ts +22 -0
- package/lib/components/TopologyScheme/TopologyScheme.types.d.ts +35 -0
- package/lib/components/UICare/UICare.types.d.ts +52 -0
- package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.types.d.ts +6 -0
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.types.d.ts +11 -0
- package/lib/components/VariantSelector/Variant/Variant.types.d.ts +18 -0
- package/lib/components/VariantSelector/VariantSelector.types.d.ts +38 -0
- package/lib/components/VariantSelectorItem/VariantSelectorItem.types.d.ts +5 -0
- package/lib/components/VariantSelectorV1/VariantSelector.types.d.ts +66 -0
- package/lib/components/VariantSelectorV2/VariantSelector.types.d.ts +66 -0
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.types.d.ts +14 -0
- 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/components/YouTubePlayer/YouTubePlayer.types.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Money } from "../../utils/money";
|
|
2
|
+
import type { RenderImageFn } from "../CustomImage/CustomImage.types";
|
|
3
|
+
type Footnote = {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface PaymentTypes {
|
|
8
|
+
card: boolean;
|
|
9
|
+
googlePay: boolean;
|
|
10
|
+
applePay: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface OptionValue {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface Option {
|
|
19
|
+
id: string;
|
|
20
|
+
title: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
values: OptionValue[];
|
|
23
|
+
}
|
|
24
|
+
export interface ProductWizardProps {
|
|
25
|
+
quantity: {
|
|
26
|
+
id: string | null;
|
|
27
|
+
value: number;
|
|
28
|
+
};
|
|
29
|
+
showQuantityAdjuster?: boolean;
|
|
30
|
+
disableQtyPicker: boolean;
|
|
31
|
+
addToCartButtonDisabled: boolean;
|
|
32
|
+
showSelectButton?: boolean;
|
|
33
|
+
totalPrice?: Money;
|
|
34
|
+
totalPriceWithVAT?: Money;
|
|
35
|
+
isVariantSelected?: boolean;
|
|
36
|
+
isVariantSoldOut: boolean;
|
|
37
|
+
isVariantComingSoon: boolean;
|
|
38
|
+
maxRelevantLimitAddToCartQuantity?: number;
|
|
39
|
+
relevantLimitQuantity?: number;
|
|
40
|
+
showLimitError: boolean;
|
|
41
|
+
limitsDisabled: boolean;
|
|
42
|
+
requiresLogin?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Option picker
|
|
45
|
+
*/
|
|
46
|
+
selectedOptionIds?: string[];
|
|
47
|
+
options?: Option[];
|
|
48
|
+
onOptionSelect?: (optionId: string, valueId: string) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Fires when clicked on add to cart button
|
|
51
|
+
*/
|
|
52
|
+
onAddToCart: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Fires when "-" clicked
|
|
55
|
+
*/
|
|
56
|
+
decreaseQuantity: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Fires when user types in quantity
|
|
59
|
+
*/
|
|
60
|
+
updateQuantity: React.ChangeEventHandler<HTMLInputElement>;
|
|
61
|
+
/**
|
|
62
|
+
* Fires when "+" clicked
|
|
63
|
+
*/
|
|
64
|
+
increaseQuantity: () => void;
|
|
65
|
+
enableLimitAndBackInStock?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Translations for footnotes, add to cart button, and errors
|
|
68
|
+
*/
|
|
69
|
+
translations: {
|
|
70
|
+
footnotes: {
|
|
71
|
+
limit: Footnote;
|
|
72
|
+
shipping: Footnote;
|
|
73
|
+
warranty?: string;
|
|
74
|
+
};
|
|
75
|
+
addToCartButton: {
|
|
76
|
+
soldOut: string;
|
|
77
|
+
comingSoon: string;
|
|
78
|
+
addToCart: string;
|
|
79
|
+
buyNow: string;
|
|
80
|
+
select: string;
|
|
81
|
+
update: string;
|
|
82
|
+
startTrial: string;
|
|
83
|
+
findAReseller: string;
|
|
84
|
+
};
|
|
85
|
+
errors: {
|
|
86
|
+
/**
|
|
87
|
+
* Translation with login button
|
|
88
|
+
*/
|
|
89
|
+
limitedToBuy: string | React.ReactNode;
|
|
90
|
+
limitReached: string;
|
|
91
|
+
limitErrorPer: string;
|
|
92
|
+
};
|
|
93
|
+
totalPrice: string;
|
|
94
|
+
VATincluded: string;
|
|
95
|
+
};
|
|
96
|
+
availablePaymentMethods?: PaymentTypes;
|
|
97
|
+
renderImage?: RenderImageFn;
|
|
98
|
+
}
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BackInStockProps } from "../BackInStock/BackInStock.types";
|
|
2
|
+
import type { ProductWizardProps } from "../ProductWizard/ProductWizard.types";
|
|
3
|
+
export type ProductWizardFootnotesProps = Pick<ProductWizardProps, "maxRelevantLimitAddToCartQuantity" | "relevantLimitQuantity" | "limitsDisabled" | "requiresLogin" | "showLimitError" | "enableLimitAndBackInStock" | "availablePaymentMethods" | "renderImage"> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
translations: Pick<ProductWizardProps["translations"], "errors" | "footnotes">;
|
|
6
|
+
backInStockProps?: BackInStockProps;
|
|
7
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CartButtonProps } from "../Button";
|
|
2
|
+
export interface QuantityControlsProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
quantity: number;
|
|
6
|
+
onUpdateQuantity: (quantity: number) => void;
|
|
7
|
+
onAddToCart: () => void;
|
|
8
|
+
hideQuantityInput?: boolean;
|
|
9
|
+
cartButton?: Partial<CartButtonProps>;
|
|
10
|
+
allowZero?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface QuantityInputProps {
|
|
2
|
+
onIncreaseQuantity?: React.MouseEventHandler<HTMLButtonElement>;
|
|
3
|
+
onDecreaseQuantity?: React.MouseEventHandler<HTMLButtonElement>;
|
|
4
|
+
onUpdateQuantity?: (value: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
maxQuantity?: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Nullish } from "../../types";
|
|
2
|
+
import type { Money } from "../../utils/money";
|
|
3
|
+
import type { CustomImageAsset, RenderImageFn } from "../CustomImage/CustomImage.types";
|
|
4
|
+
import type { ProductCardPopupProps } from "../ProductCardPopup/ProductCardPopup.types";
|
|
5
|
+
export type RelatedProductsCategory = {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
products: {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
displayPrice: Money;
|
|
12
|
+
image?: CustomImageAsset;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
export interface RelatedProductsProps {
|
|
16
|
+
/**
|
|
17
|
+
* The categories to display.
|
|
18
|
+
* Null - Loading state
|
|
19
|
+
* Undefined - No categories
|
|
20
|
+
*/
|
|
21
|
+
categories?: Nullish<RelatedProductsCategory[]>;
|
|
22
|
+
onAddToCart?: (productId: string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Related products popup
|
|
25
|
+
*/
|
|
26
|
+
activePopupProduct?: Omit<ProductCardPopupProps, "translations" | "renderImage" | "isOpen">;
|
|
27
|
+
renderImage: RenderImageFn;
|
|
28
|
+
translations: {
|
|
29
|
+
title?: string;
|
|
30
|
+
productCardPopup: ProductCardPopupProps["translations"];
|
|
31
|
+
};
|
|
32
|
+
}
|
package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.types.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { RenderImageFn } from "../CustomImage/CustomImage.types";
|
|
2
|
+
import type { Image } from "../Hero/Hero.types";
|
|
3
|
+
import type { OnVariantAddToCartFn } from "../LayoutRenderer/LayoutRenderer.types";
|
|
4
|
+
import type { ProductCardPopupProps } from "../ProductCardPopup/ProductCardPopup.types";
|
|
5
|
+
export type Variant = {
|
|
6
|
+
/** Product ID */
|
|
7
|
+
productId: string;
|
|
8
|
+
/** Variant ID */
|
|
9
|
+
variantId: string;
|
|
10
|
+
sku: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
image?: Image;
|
|
14
|
+
price: string;
|
|
15
|
+
priceWithVAT?: string;
|
|
16
|
+
hasOptions: boolean;
|
|
17
|
+
};
|
|
18
|
+
export interface RelatedProductsVariantSelectorProps {
|
|
19
|
+
variants: Variant[];
|
|
20
|
+
onVariantAddToCart: OnVariantAddToCartFn;
|
|
21
|
+
onOptionSelect: (productId: string, variantId?: string) => void;
|
|
22
|
+
/** Popup */
|
|
23
|
+
activePopupProduct?: Omit<ProductCardPopupProps, "translations" | "renderImage" | "isOpen">;
|
|
24
|
+
lookForOtherAccessoriesHref: string;
|
|
25
|
+
onLookForOtherAccessoriesClick: (e: React.MouseEvent<HTMLElement>, href: string) => void;
|
|
26
|
+
renderImage: RenderImageFn;
|
|
27
|
+
translations: {
|
|
28
|
+
learnMore: string;
|
|
29
|
+
lookForOtherAccessories: string;
|
|
30
|
+
productCardPopup: ProductCardPopupProps["translations"];
|
|
31
|
+
};
|
|
32
|
+
}
|
package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.types.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RenderImageFn } from "../CustomImage/CustomImage.types";
|
|
2
|
+
import type { Image } from "../Hero/Hero.types";
|
|
3
|
+
export type Variant = {
|
|
4
|
+
/** Product ID */
|
|
5
|
+
productId: string;
|
|
6
|
+
/** Variant ID */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Other variant IDs */
|
|
9
|
+
otherIds?: string[];
|
|
10
|
+
title: string;
|
|
11
|
+
image?: Image;
|
|
12
|
+
price: string;
|
|
13
|
+
priceWithVAT?: string;
|
|
14
|
+
hasOptions: boolean;
|
|
15
|
+
};
|
|
16
|
+
export interface RelatedProductsVariantSelectorProps {
|
|
17
|
+
title: string;
|
|
18
|
+
variants: Variant[];
|
|
19
|
+
selectedVariants: {
|
|
20
|
+
productId: string;
|
|
21
|
+
variantId: string;
|
|
22
|
+
quantity: number | null;
|
|
23
|
+
}[];
|
|
24
|
+
onVariantSelect: (productId: string, variantId: string, quantity: number) => void;
|
|
25
|
+
onOptionSelect: (productId: string, variantId?: string) => void;
|
|
26
|
+
renderImage: RenderImageFn;
|
|
27
|
+
translations: {
|
|
28
|
+
selectOptions: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.types.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RenderImageFn } from "../CustomImage/CustomImage.types";
|
|
2
|
+
import type { Image } from "../Hero/Hero.types";
|
|
3
|
+
export type Variant = {
|
|
4
|
+
/** Product ID */
|
|
5
|
+
productId: string;
|
|
6
|
+
/** Variant ID */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Other variant IDs */
|
|
9
|
+
otherIds?: string[];
|
|
10
|
+
title: string;
|
|
11
|
+
image?: Image;
|
|
12
|
+
price: string;
|
|
13
|
+
priceWithVAT?: string;
|
|
14
|
+
hasOptions: boolean;
|
|
15
|
+
};
|
|
16
|
+
export interface RelatedProductsVariantSelectorProps {
|
|
17
|
+
title: string;
|
|
18
|
+
variants: Variant[];
|
|
19
|
+
selectedVariants: {
|
|
20
|
+
productId: string;
|
|
21
|
+
variantId: string;
|
|
22
|
+
quantity: number | null;
|
|
23
|
+
}[];
|
|
24
|
+
onVariantSelect: (productId: string, variantId: string, quantity: number) => void;
|
|
25
|
+
onOptionSelect: (productId: string, variantId?: string) => void;
|
|
26
|
+
renderImage: RenderImageFn;
|
|
27
|
+
translations: {
|
|
28
|
+
selectOptions: string;
|
|
29
|
+
learnMore: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
package/lib/components/RelatedProductsVariantSelectorsV1/RelatedProductsVariantSelectors.types.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RenderImageFn } from "../CustomImage/CustomImage.types";
|
|
2
|
+
import type { ProductCardPopupProps } from "../ProductCardPopup/ProductCardPopup.types";
|
|
3
|
+
import type { RelatedProductsVariantSelectorProps } from "../RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.types";
|
|
4
|
+
type Section = Pick<RelatedProductsVariantSelectorProps, "title" | "variants"> & {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
export interface RelatedProductsVariantSelectorsProps {
|
|
8
|
+
sections: Section[];
|
|
9
|
+
/** Stores selected variants + the quantity */
|
|
10
|
+
selectedVariants: RelatedProductsVariantSelectorProps["selectedVariants"];
|
|
11
|
+
onOptionSelect: (productId: string) => void;
|
|
12
|
+
onVariantSelect: RelatedProductsVariantSelectorProps["onVariantSelect"];
|
|
13
|
+
activePopupProduct?: Omit<ProductCardPopupProps, "translations" | "renderImage" | "isOpen">;
|
|
14
|
+
renderImage: RenderImageFn;
|
|
15
|
+
translations: RelatedProductsVariantSelectorProps["translations"] & {
|
|
16
|
+
productCardPopup: ProductCardPopupProps["translations"];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.types.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RenderImageFn } from "../CustomImage/CustomImage.types";
|
|
2
|
+
import type { ProductCardPopupProps } from "../ProductCardPopup/ProductCardPopup.types";
|
|
3
|
+
import type { RelatedProductsVariantSelectorProps } from "../RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.types";
|
|
4
|
+
type Section = Pick<RelatedProductsVariantSelectorProps, "title" | "variants"> & {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
export interface RelatedProductsVariantSelectorsProps {
|
|
8
|
+
sections: Section[];
|
|
9
|
+
/** Stores selected variants + the quantity */
|
|
10
|
+
selectedVariants: RelatedProductsVariantSelectorProps["selectedVariants"];
|
|
11
|
+
onOptionSelect: (productId: string) => void;
|
|
12
|
+
onVariantSelect: RelatedProductsVariantSelectorProps["onVariantSelect"];
|
|
13
|
+
activePopupProduct?: Omit<ProductCardPopupProps, "translations" | "renderImage" | "isOpen">;
|
|
14
|
+
renderImage: RenderImageFn;
|
|
15
|
+
translations: RelatedProductsVariantSelectorProps["translations"] & {
|
|
16
|
+
productCardPopup: ProductCardPopupProps["translations"];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
2
|
+
import type { CheckboxSectionProps, CounterSectionProps, OptionSelectSectionProps, SliderSectionProps } from "./InputSections";
|
|
3
|
+
export type InputSectionProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
verticalLabel?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
disabledOpacity?: number;
|
|
8
|
+
hide?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type InputSectionWrapProps = {
|
|
11
|
+
marginBottom?: number;
|
|
12
|
+
};
|
|
13
|
+
type CustomInputSection = InputSectionProps & {
|
|
14
|
+
type: "custom";
|
|
15
|
+
element: JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export type InputSection = (Omit<CheckboxSectionProps, "id"> & InputSectionWrapProps) | (Omit<SliderSectionProps, "id"> & InputSectionWrapProps) | (Omit<CounterSectionProps, "id"> & InputSectionWrapProps) | (Omit<OptionSelectSectionProps, "id"> & InputSectionWrapProps) | (Omit<CustomInputSection, "id"> & InputSectionWrapProps);
|
|
18
|
+
export type InputCardProps = {
|
|
19
|
+
id: string;
|
|
20
|
+
header?: {
|
|
21
|
+
icon?: string | StaticImageData;
|
|
22
|
+
title?: string | JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
inputSections: InputSection[];
|
|
25
|
+
footer?: {
|
|
26
|
+
className?: string;
|
|
27
|
+
note?: string;
|
|
28
|
+
content?: JSX.Element;
|
|
29
|
+
};
|
|
30
|
+
notAvailable?: boolean;
|
|
31
|
+
notAvailableNote?: string;
|
|
32
|
+
active: boolean;
|
|
33
|
+
forceActive?: boolean;
|
|
34
|
+
onToggleEnabled?: (active: boolean) => void;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -11,8 +11,8 @@ require('../assets/plus.svg.js');
|
|
|
11
11
|
var Layout_styles = require('./Layout.styles.js');
|
|
12
12
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
13
13
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
14
|
-
var MinusIcon = require("../../../../../../assets/
|
|
15
|
-
var PlusIcon = require("../../../../../../assets/
|
|
14
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
15
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
16
16
|
function _interopDefault(e) {
|
|
17
17
|
return e && e.__esModule ? e : {
|
|
18
18
|
default: e
|
|
@@ -9,8 +9,8 @@ import '../assets/plus.svg.mjs';
|
|
|
9
9
|
import { InputWrapper, Label, InputFlexWrapper } from './Layout.styles.mjs';
|
|
10
10
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
11
11
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
12
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
13
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
12
|
+
import MinusIcon__default from "../../../../../../assets/minus5.svg";
|
|
13
|
+
import PlusIcon__default from "../../../../../../assets/plus6.svg";
|
|
14
14
|
"use strict";
|
|
15
15
|
const CounterSection = ({
|
|
16
16
|
value,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus5.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus6.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus6.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -19,8 +19,8 @@ var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalcul
|
|
|
19
19
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
20
20
|
var SearchIcon = require("../../../../../../assets/search2.svg");
|
|
21
21
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
22
|
-
var MinusIcon = require("../../../../../../assets/
|
|
23
|
-
var PlusIcon = require("../../../../../../assets/
|
|
22
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
23
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
24
24
|
function _interopDefault(e) {
|
|
25
25
|
return e && e.__esModule ? e : {
|
|
26
26
|
default: e
|
|
@@ -17,8 +17,8 @@ import { isMessageFormatted } from '../../../../ComputeResourceCalculator/Comput
|
|
|
17
17
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
18
18
|
import SearchIcon__default from "../../../../../../assets/search2.svg";
|
|
19
19
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
20
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
21
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
20
|
+
import MinusIcon__default from "../../../../../../assets/minus4.svg";
|
|
21
|
+
import PlusIcon__default from "../../../../../../assets/plus5.svg";
|
|
22
22
|
"use strict";
|
|
23
23
|
const NoopPlaceholder = () => /* @__PURE__ */jsx(Fragment, {});
|
|
24
24
|
const PoeConsumerSelectModal = ({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus4.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus4.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus5.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type ScrollWrapperAlign = "left" | "center" | "right";
|
|
4
|
+
export type ScrollWrapperDirection = "horizontal" | "vertical";
|
|
5
|
+
export type ScrollWrapperFillType = "gradient" | "solid";
|
|
6
|
+
export type ScrollChangeFn = ({ scrollX, scrollY, }: {
|
|
7
|
+
scrollWidth: number;
|
|
8
|
+
scrollX: number;
|
|
9
|
+
scrollY: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
interface ScrollWrapperItem {
|
|
12
|
+
id: string;
|
|
13
|
+
render: () => ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface ScrollWrapperProps {
|
|
16
|
+
/** Default alignment that will change based on necessity */
|
|
17
|
+
align: ScrollWrapperAlign;
|
|
18
|
+
/** In what direction the scroll happens */
|
|
19
|
+
direction: ScrollWrapperDirection;
|
|
20
|
+
items: ScrollWrapperItem[];
|
|
21
|
+
fillType?: ScrollWrapperFillType;
|
|
22
|
+
fillColor?: string;
|
|
23
|
+
accentColor?: string;
|
|
24
|
+
arrowColor?: string;
|
|
25
|
+
scrollStepType?: "scrollScreen" | "itemWidth" | "visibleItemsWidth" | "nextItem";
|
|
26
|
+
gap?: number;
|
|
27
|
+
className?: string;
|
|
28
|
+
arrowFadeColor?: string;
|
|
29
|
+
activeIndex?: number;
|
|
30
|
+
circleArrowBackground?: boolean;
|
|
31
|
+
arrowGap?: number;
|
|
32
|
+
gradientSize?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Hide control arrows
|
|
35
|
+
*/
|
|
36
|
+
hideArrows?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Called on scroll container size change
|
|
39
|
+
*/
|
|
40
|
+
onScrollChange?: ScrollChangeFn;
|
|
41
|
+
/**
|
|
42
|
+
* Enable horizontal wheel scroll
|
|
43
|
+
*/
|
|
44
|
+
enableWheelScroll?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Custom arrow icon
|
|
47
|
+
*/
|
|
48
|
+
arrowIcon?: {
|
|
49
|
+
icon: string | StaticImageData;
|
|
50
|
+
height: number;
|
|
51
|
+
width: number;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Motif } from "@ubnt/ui-components/utils";
|
|
2
|
+
import type { ChangeEventHandler, Dispatch, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, SetStateAction } from "react";
|
|
3
|
+
export interface SearchInputProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onValueChange: ChangeEventHandler<HTMLInputElement>;
|
|
6
|
+
onCancelClick?: MouseEventHandler<HTMLDivElement>;
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
showCancel: boolean;
|
|
11
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
12
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
13
|
+
onKeyPress?: KeyboardEventHandler<HTMLInputElement>;
|
|
14
|
+
setInputRef?: Dispatch<SetStateAction<HTMLInputElement | null>>;
|
|
15
|
+
motif?: Motif;
|
|
16
|
+
transparent?: boolean;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface Props {
|
|
3
|
+
show: boolean;
|
|
4
|
+
/** Set specific width, otherwise, applies auto */
|
|
5
|
+
width?: number;
|
|
6
|
+
minHeight?: number;
|
|
7
|
+
/** Remove shadows, backgrounds, etc */
|
|
8
|
+
clean?: boolean;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
2
|
+
export interface TabinationButtonsTab {
|
|
3
|
+
id: string;
|
|
4
|
+
hash?: `#${string}`;
|
|
5
|
+
title: string;
|
|
6
|
+
/**
|
|
7
|
+
* Only for "buttons" variant
|
|
8
|
+
*/
|
|
9
|
+
subTitle?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Only for "pills" variant
|
|
12
|
+
*/
|
|
13
|
+
icon?: string | StaticImageData;
|
|
14
|
+
}
|
|
15
|
+
export type TabinationButtonsVariant = "pills" | "buttons";
|
|
16
|
+
export interface TabinationButtonsProps {
|
|
17
|
+
variant: TabinationButtonsVariant;
|
|
18
|
+
tabs: TabinationButtonsTab[];
|
|
19
|
+
activeTabId?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
onTabClick: (tabId: string) => void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
2
|
+
import type { RenderImageProps } from "../CustomImage/CustomImage.types";
|
|
3
|
+
export declare enum ConnectionType {
|
|
4
|
+
Poe = "poe",
|
|
5
|
+
Wifi = "wifi"
|
|
6
|
+
}
|
|
7
|
+
export declare enum FirstItemType {
|
|
8
|
+
UnifiPortal = "unifi-portal",
|
|
9
|
+
UnifiApp = "unifi-app"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ProductTabHash {
|
|
12
|
+
Compare = "compare",
|
|
13
|
+
TechSpecs = "tech-specs"
|
|
14
|
+
}
|
|
15
|
+
export interface TopologySchemeProps {
|
|
16
|
+
data: {
|
|
17
|
+
title?: string;
|
|
18
|
+
items: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
hash?: ProductTabHash.TechSpecs | ProductTabHash.Compare;
|
|
22
|
+
connectionType?: ConnectionType.Poe | ConnectionType.Wifi;
|
|
23
|
+
url: string;
|
|
24
|
+
image: string | StaticImageData;
|
|
25
|
+
buttonText: string;
|
|
26
|
+
}[];
|
|
27
|
+
firstItemType?: FirstItemType.UnifiApp | FirstItemType.UnifiPortal;
|
|
28
|
+
}[];
|
|
29
|
+
renderImage: (props: RenderImageProps) => React.ReactNode;
|
|
30
|
+
translations?: {
|
|
31
|
+
unifiApp: string;
|
|
32
|
+
unifiPortal: string;
|
|
33
|
+
};
|
|
34
|
+
onCompareClick: (slug: string, hash: string | undefined) => void;
|
|
35
|
+
}
|