@nuskin/foundation-ui-components 2.2.0-redesign-sf.9 → 2.2.0-redesign-sf.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +21 -3
- package/dist/index.d.ts +21 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -715,8 +715,9 @@ interface ProductCardCarousalProps<T = ProductCardEntry> {
|
|
|
715
715
|
renderEntry?: (entry: T, index: number) => ReactNode;
|
|
716
716
|
allEntryLabel?: string;
|
|
717
717
|
allEntryLink?: string;
|
|
718
|
+
categoryName?: string;
|
|
718
719
|
}
|
|
719
|
-
declare function ProductCardCarousal({ entries, renderEntry, settings, showControlButtons, allEntryLabel, allEntryLink, }: ProductCardCarousalProps): ReactElement;
|
|
720
|
+
declare function ProductCardCarousal({ entries, renderEntry, settings, showControlButtons, allEntryLabel, allEntryLink, categoryName, }: ProductCardCarousalProps): ReactElement;
|
|
720
721
|
|
|
721
722
|
declare const NsScrollingCarousal: ({ slides, scrollSeconds, stillSeconds, renderSlide, settings, dotsBottomPixel, additionalProps, }: NsScrollingCarousalProps) => ReactElement;
|
|
722
723
|
|
|
@@ -757,6 +758,21 @@ declare const settings: {
|
|
|
757
758
|
})[];
|
|
758
759
|
};
|
|
759
760
|
|
|
761
|
+
interface Category {
|
|
762
|
+
label: string;
|
|
763
|
+
categoryId: string;
|
|
764
|
+
}
|
|
765
|
+
interface ProductTabCarousalProps {
|
|
766
|
+
allEntryLabel?: string;
|
|
767
|
+
allEntryLink?: string;
|
|
768
|
+
renderEntry?: (entry: ProductCardEntry) => react__default.ReactNode;
|
|
769
|
+
settings?: any;
|
|
770
|
+
showControlButtons?: boolean;
|
|
771
|
+
fetchCategories: () => Promise<Category[]>;
|
|
772
|
+
fetchProducts: (categoryId: string) => Promise<ProductCardEntry[]>;
|
|
773
|
+
}
|
|
774
|
+
declare const ProductTabCarousal: react__default.FC<ProductTabCarousalProps>;
|
|
775
|
+
|
|
760
776
|
type NsCarousalProps<T = any> = {
|
|
761
777
|
entries: T[];
|
|
762
778
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -1288,7 +1304,7 @@ type MySiteShopHeaderProps = {
|
|
|
1288
1304
|
email: string;
|
|
1289
1305
|
className?: string;
|
|
1290
1306
|
socialIcons?: {
|
|
1291
|
-
type: 'facebook' | 'instagram' | 'youtube' | 'vkontakte' | 'x';
|
|
1307
|
+
type: 'facebook' | 'instagram' | 'youtube' | 'vkontakte' | 'x' | 'twitter' | 'pinterest';
|
|
1292
1308
|
url: string;
|
|
1293
1309
|
}[];
|
|
1294
1310
|
};
|
|
@@ -1303,7 +1319,9 @@ interface NsNavTabVerticalProps {
|
|
|
1303
1319
|
contentComponent: string;
|
|
1304
1320
|
fontColor?: 'primary' | 'secondary';
|
|
1305
1321
|
className?: string;
|
|
1322
|
+
value?: number;
|
|
1323
|
+
onChange?: (event: react.SyntheticEvent, newValue: number) => void;
|
|
1306
1324
|
}
|
|
1307
1325
|
declare const NsNavTabVertical: react.FC<NsNavTabVerticalProps>;
|
|
1308
1326
|
|
|
1309
|
-
export { type AccordionContentType, AccordionContentTypeObject, type AccordionItem, AccordionVariant, type AccordionVariantType, type AdditionalProps, type BynderImageDataType, Check, type ComponentBoxProps, type CslpTag, type DarkModeEnabledOption, type DropdownOptionProps, type DropdownProps, GlobalFontInter, type HtmlTagVariant, HtmlTagVariantMapping, IconWrapper, type ItemProps, type LabelValueType, LineLoader, type ListUiProps, MySiteShopHeader, type NavTabs, NsAccordion, NsAccordionHeader, type NsAccordionHeaderProps, NsAccordionItem, type NsAccordionItemProps, type NsAccordionProps, NsAlert, type NsAlertProps, NsAuthDropdown, type NsAuthDropdownProps, NsAutocomplete, type NsAutocompleteProps, NsAwardCard, NsBanner, type NsBannerProps, NsBgCard, NsBrandCard, NsBrandComponent, type NsBrandComponentProps, NsBrandLogo, NsBrandWrapper, NsBreadcrumb, type NsBreadcrumbProps, NsButton, type NsButtonProps, type NsCardButton, NsCarousal, type NsCarousalProps, NsCartIcon, type NsCartIconProps, NsCheckbox, type NsCheckboxProps, NsCheckoutCard, NsCollapse, type NsCollapseProps, NsColumnControl, type NsColumnControlProps, settings as NsDefaultCarousalSettings, NsDropdown, NsDropdownOption, NsEmailSimple, type NsEmailSimpleProps, type NsFfgCardProps, NsFlag, type NsFlagProps, type NsFlagSize, NsFlexColumns, NsGridColumns, NsHeroCardLevel1, NsHeroCardLevel2, NsIcon, type NsIconNameType, type NsIconProps, type NsIconSizeType, NsIconText, IconVariants as NsIconVariants, NsImage, NsInputField, type NsInputFieldProps, NsLabel, type NsLabelProps, NsLargeCard, NsLink, type NsLinkProps, NsMediumCard, NsModal, type NsModalProps, type NsModalVariant, NsNavProductCard, type NsNavProductCardProps, NsNavTabComponent as NsNavTab, type NsNavTabComponentProps, NsNavTabVertical, NsPost, NsProductCard, NsProgress, type NsProgressProps, NsRadioGroup, type NsRadioGroupProps, NsScrollingCarousal, type NsScrollingCarousalProps, NsSelect, NsSelectOption, NsSmallFullCard, NsSpinner, type NsSpinnerProps, NsTable, type NsTableProps, NsTextStrip, type NsTextStripProps, NsToastProvider, NsToggleSection, type NsToggleSectionProps, NsTypography, type NsTypographyProps, NsVideo, type NsVideoProps, NsXLargeCard, type OptionsProps, ProductCardCarousal as ProductCarousal, type RenderSelectOptionArgType, type SelectOptionProps, type SelectProps, Show, type Themed, type ToastOptions, type Variants, getBasicDATWidthHeight, iconSize, useAccordionMap, useToast, useWindowSize };
|
|
1327
|
+
export { type AccordionContentType, AccordionContentTypeObject, type AccordionItem, AccordionVariant, type AccordionVariantType, type AdditionalProps, type BynderImageDataType, Check, type ComponentBoxProps, type CslpTag, type DarkModeEnabledOption, type DropdownOptionProps, type DropdownProps, GlobalFontInter, type HtmlTagVariant, HtmlTagVariantMapping, IconWrapper, type ItemProps, type LabelValueType, LineLoader, type ListUiProps, MySiteShopHeader, type NavTabs, NsAccordion, NsAccordionHeader, type NsAccordionHeaderProps, NsAccordionItem, type NsAccordionItemProps, type NsAccordionProps, NsAlert, type NsAlertProps, NsAuthDropdown, type NsAuthDropdownProps, NsAutocomplete, type NsAutocompleteProps, NsAwardCard, NsBanner, type NsBannerProps, NsBgCard, NsBrandCard, NsBrandComponent, type NsBrandComponentProps, NsBrandLogo, NsBrandWrapper, NsBreadcrumb, type NsBreadcrumbProps, NsButton, type NsButtonProps, type NsCardButton, NsCarousal, type NsCarousalProps, NsCartIcon, type NsCartIconProps, NsCheckbox, type NsCheckboxProps, NsCheckoutCard, NsCollapse, type NsCollapseProps, NsColumnControl, type NsColumnControlProps, settings as NsDefaultCarousalSettings, NsDropdown, NsDropdownOption, NsEmailSimple, type NsEmailSimpleProps, type NsFfgCardProps, NsFlag, type NsFlagProps, type NsFlagSize, NsFlexColumns, NsGridColumns, NsHeroCardLevel1, NsHeroCardLevel2, NsIcon, type NsIconNameType, type NsIconProps, type NsIconSizeType, NsIconText, IconVariants as NsIconVariants, NsImage, NsInputField, type NsInputFieldProps, NsLabel, type NsLabelProps, NsLargeCard, NsLink, type NsLinkProps, NsMediumCard, NsModal, type NsModalProps, type NsModalVariant, NsNavProductCard, type NsNavProductCardProps, NsNavTabComponent as NsNavTab, type NsNavTabComponentProps, NsNavTabVertical, NsPost, NsProductCard, NsProgress, type NsProgressProps, NsRadioGroup, type NsRadioGroupProps, NsScrollingCarousal, type NsScrollingCarousalProps, NsSelect, NsSelectOption, NsSmallFullCard, NsSpinner, type NsSpinnerProps, NsTable, type NsTableProps, NsTextStrip, type NsTextStripProps, NsToastProvider, NsToggleSection, type NsToggleSectionProps, NsTypography, type NsTypographyProps, NsVideo, type NsVideoProps, NsXLargeCard, type OptionsProps, ProductCardCarousal as ProductCarousal, ProductTabCarousal, type RenderSelectOptionArgType, type SelectOptionProps, type SelectProps, Show, type Themed, type ToastOptions, type Variants, getBasicDATWidthHeight, iconSize, useAccordionMap, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -715,8 +715,9 @@ interface ProductCardCarousalProps<T = ProductCardEntry> {
|
|
|
715
715
|
renderEntry?: (entry: T, index: number) => ReactNode;
|
|
716
716
|
allEntryLabel?: string;
|
|
717
717
|
allEntryLink?: string;
|
|
718
|
+
categoryName?: string;
|
|
718
719
|
}
|
|
719
|
-
declare function ProductCardCarousal({ entries, renderEntry, settings, showControlButtons, allEntryLabel, allEntryLink, }: ProductCardCarousalProps): ReactElement;
|
|
720
|
+
declare function ProductCardCarousal({ entries, renderEntry, settings, showControlButtons, allEntryLabel, allEntryLink, categoryName, }: ProductCardCarousalProps): ReactElement;
|
|
720
721
|
|
|
721
722
|
declare const NsScrollingCarousal: ({ slides, scrollSeconds, stillSeconds, renderSlide, settings, dotsBottomPixel, additionalProps, }: NsScrollingCarousalProps) => ReactElement;
|
|
722
723
|
|
|
@@ -757,6 +758,21 @@ declare const settings: {
|
|
|
757
758
|
})[];
|
|
758
759
|
};
|
|
759
760
|
|
|
761
|
+
interface Category {
|
|
762
|
+
label: string;
|
|
763
|
+
categoryId: string;
|
|
764
|
+
}
|
|
765
|
+
interface ProductTabCarousalProps {
|
|
766
|
+
allEntryLabel?: string;
|
|
767
|
+
allEntryLink?: string;
|
|
768
|
+
renderEntry?: (entry: ProductCardEntry) => react__default.ReactNode;
|
|
769
|
+
settings?: any;
|
|
770
|
+
showControlButtons?: boolean;
|
|
771
|
+
fetchCategories: () => Promise<Category[]>;
|
|
772
|
+
fetchProducts: (categoryId: string) => Promise<ProductCardEntry[]>;
|
|
773
|
+
}
|
|
774
|
+
declare const ProductTabCarousal: react__default.FC<ProductTabCarousalProps>;
|
|
775
|
+
|
|
760
776
|
type NsCarousalProps<T = any> = {
|
|
761
777
|
entries: T[];
|
|
762
778
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -1288,7 +1304,7 @@ type MySiteShopHeaderProps = {
|
|
|
1288
1304
|
email: string;
|
|
1289
1305
|
className?: string;
|
|
1290
1306
|
socialIcons?: {
|
|
1291
|
-
type: 'facebook' | 'instagram' | 'youtube' | 'vkontakte' | 'x';
|
|
1307
|
+
type: 'facebook' | 'instagram' | 'youtube' | 'vkontakte' | 'x' | 'twitter' | 'pinterest';
|
|
1292
1308
|
url: string;
|
|
1293
1309
|
}[];
|
|
1294
1310
|
};
|
|
@@ -1303,7 +1319,9 @@ interface NsNavTabVerticalProps {
|
|
|
1303
1319
|
contentComponent: string;
|
|
1304
1320
|
fontColor?: 'primary' | 'secondary';
|
|
1305
1321
|
className?: string;
|
|
1322
|
+
value?: number;
|
|
1323
|
+
onChange?: (event: react.SyntheticEvent, newValue: number) => void;
|
|
1306
1324
|
}
|
|
1307
1325
|
declare const NsNavTabVertical: react.FC<NsNavTabVerticalProps>;
|
|
1308
1326
|
|
|
1309
|
-
export { type AccordionContentType, AccordionContentTypeObject, type AccordionItem, AccordionVariant, type AccordionVariantType, type AdditionalProps, type BynderImageDataType, Check, type ComponentBoxProps, type CslpTag, type DarkModeEnabledOption, type DropdownOptionProps, type DropdownProps, GlobalFontInter, type HtmlTagVariant, HtmlTagVariantMapping, IconWrapper, type ItemProps, type LabelValueType, LineLoader, type ListUiProps, MySiteShopHeader, type NavTabs, NsAccordion, NsAccordionHeader, type NsAccordionHeaderProps, NsAccordionItem, type NsAccordionItemProps, type NsAccordionProps, NsAlert, type NsAlertProps, NsAuthDropdown, type NsAuthDropdownProps, NsAutocomplete, type NsAutocompleteProps, NsAwardCard, NsBanner, type NsBannerProps, NsBgCard, NsBrandCard, NsBrandComponent, type NsBrandComponentProps, NsBrandLogo, NsBrandWrapper, NsBreadcrumb, type NsBreadcrumbProps, NsButton, type NsButtonProps, type NsCardButton, NsCarousal, type NsCarousalProps, NsCartIcon, type NsCartIconProps, NsCheckbox, type NsCheckboxProps, NsCheckoutCard, NsCollapse, type NsCollapseProps, NsColumnControl, type NsColumnControlProps, settings as NsDefaultCarousalSettings, NsDropdown, NsDropdownOption, NsEmailSimple, type NsEmailSimpleProps, type NsFfgCardProps, NsFlag, type NsFlagProps, type NsFlagSize, NsFlexColumns, NsGridColumns, NsHeroCardLevel1, NsHeroCardLevel2, NsIcon, type NsIconNameType, type NsIconProps, type NsIconSizeType, NsIconText, IconVariants as NsIconVariants, NsImage, NsInputField, type NsInputFieldProps, NsLabel, type NsLabelProps, NsLargeCard, NsLink, type NsLinkProps, NsMediumCard, NsModal, type NsModalProps, type NsModalVariant, NsNavProductCard, type NsNavProductCardProps, NsNavTabComponent as NsNavTab, type NsNavTabComponentProps, NsNavTabVertical, NsPost, NsProductCard, NsProgress, type NsProgressProps, NsRadioGroup, type NsRadioGroupProps, NsScrollingCarousal, type NsScrollingCarousalProps, NsSelect, NsSelectOption, NsSmallFullCard, NsSpinner, type NsSpinnerProps, NsTable, type NsTableProps, NsTextStrip, type NsTextStripProps, NsToastProvider, NsToggleSection, type NsToggleSectionProps, NsTypography, type NsTypographyProps, NsVideo, type NsVideoProps, NsXLargeCard, type OptionsProps, ProductCardCarousal as ProductCarousal, type RenderSelectOptionArgType, type SelectOptionProps, type SelectProps, Show, type Themed, type ToastOptions, type Variants, getBasicDATWidthHeight, iconSize, useAccordionMap, useToast, useWindowSize };
|
|
1327
|
+
export { type AccordionContentType, AccordionContentTypeObject, type AccordionItem, AccordionVariant, type AccordionVariantType, type AdditionalProps, type BynderImageDataType, Check, type ComponentBoxProps, type CslpTag, type DarkModeEnabledOption, type DropdownOptionProps, type DropdownProps, GlobalFontInter, type HtmlTagVariant, HtmlTagVariantMapping, IconWrapper, type ItemProps, type LabelValueType, LineLoader, type ListUiProps, MySiteShopHeader, type NavTabs, NsAccordion, NsAccordionHeader, type NsAccordionHeaderProps, NsAccordionItem, type NsAccordionItemProps, type NsAccordionProps, NsAlert, type NsAlertProps, NsAuthDropdown, type NsAuthDropdownProps, NsAutocomplete, type NsAutocompleteProps, NsAwardCard, NsBanner, type NsBannerProps, NsBgCard, NsBrandCard, NsBrandComponent, type NsBrandComponentProps, NsBrandLogo, NsBrandWrapper, NsBreadcrumb, type NsBreadcrumbProps, NsButton, type NsButtonProps, type NsCardButton, NsCarousal, type NsCarousalProps, NsCartIcon, type NsCartIconProps, NsCheckbox, type NsCheckboxProps, NsCheckoutCard, NsCollapse, type NsCollapseProps, NsColumnControl, type NsColumnControlProps, settings as NsDefaultCarousalSettings, NsDropdown, NsDropdownOption, NsEmailSimple, type NsEmailSimpleProps, type NsFfgCardProps, NsFlag, type NsFlagProps, type NsFlagSize, NsFlexColumns, NsGridColumns, NsHeroCardLevel1, NsHeroCardLevel2, NsIcon, type NsIconNameType, type NsIconProps, type NsIconSizeType, NsIconText, IconVariants as NsIconVariants, NsImage, NsInputField, type NsInputFieldProps, NsLabel, type NsLabelProps, NsLargeCard, NsLink, type NsLinkProps, NsMediumCard, NsModal, type NsModalProps, type NsModalVariant, NsNavProductCard, type NsNavProductCardProps, NsNavTabComponent as NsNavTab, type NsNavTabComponentProps, NsNavTabVertical, NsPost, NsProductCard, NsProgress, type NsProgressProps, NsRadioGroup, type NsRadioGroupProps, NsScrollingCarousal, type NsScrollingCarousalProps, NsSelect, NsSelectOption, NsSmallFullCard, NsSpinner, type NsSpinnerProps, NsTable, type NsTableProps, NsTextStrip, type NsTextStripProps, NsToastProvider, NsToggleSection, type NsToggleSectionProps, NsTypography, type NsTypographyProps, NsVideo, type NsVideoProps, NsXLargeCard, type OptionsProps, ProductCardCarousal as ProductCarousal, ProductTabCarousal, type RenderSelectOptionArgType, type SelectOptionProps, type SelectProps, Show, type Themed, type ToastOptions, type Variants, getBasicDATWidthHeight, iconSize, useAccordionMap, useToast, useWindowSize };
|