@nuskin/foundation-ui-components 3.0.0-fixpackage.2 → 3.0.0
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/README.md +0 -4
- package/dist/index.d.mts +1259 -0
- package/dist/index.d.ts +44 -30
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -15
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ import * as react from 'react';
|
|
|
2
2
|
import react__default, { ReactElement, HTMLProps, PropsWithChildren, ReactNode, SyntheticEvent, HTMLAttributes } from 'react';
|
|
3
3
|
import { FoundationTheme } from '@nuskin/foundation-theme';
|
|
4
4
|
import * as _mui_material from '@mui/material';
|
|
5
|
-
import { SvgIconProps, AutocompleteChangeReason, AutocompleteChangeDetails, ComponentsProps, ButtonProps, TextFieldProps, InputLabelProps, RadioGroupProps } from '@mui/material';
|
|
5
|
+
import { SvgIconProps as SvgIconProps$1, AutocompleteChangeReason, AutocompleteChangeDetails, ComponentsProps, ButtonProps, TextFieldProps, InputLabelProps, RadioGroupProps } from '@mui/material';
|
|
6
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
6
7
|
import * as _emotion_styled from '@emotion/styled';
|
|
7
8
|
import * as _emotion_react from '@emotion/react';
|
|
8
9
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
10
|
+
import * as _mui_material_Card from '@mui/material/Card';
|
|
11
|
+
import * as _mui_material_CardMedia from '@mui/material/CardMedia';
|
|
9
12
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
13
|
import { CheckboxProps } from '@material-ui/core/Checkbox';
|
|
11
14
|
import { React as React$1 } from 'React';
|
|
@@ -147,7 +150,7 @@ declare const IconVariants: {
|
|
|
147
150
|
chevronRight: (props: _mui_material.SvgIconProps) => react.ReactElement;
|
|
148
151
|
};
|
|
149
152
|
|
|
150
|
-
declare const Check: (props: SvgIconProps) => ReactElement;
|
|
153
|
+
declare const Check: (props: SvgIconProps$1) => ReactElement;
|
|
151
154
|
|
|
152
155
|
declare const iconSize: Record<NsIconSizeType, string>;
|
|
153
156
|
type IconWrapperType = {
|
|
@@ -467,6 +470,10 @@ type NsBrandComponentProps = {
|
|
|
467
470
|
variant?: 'stacked' | 'horizontal' | 'poweredBy' | 'logomark' | 'wordmark';
|
|
468
471
|
size?: string;
|
|
469
472
|
color?: FoundationTheme.PaletteColors;
|
|
473
|
+
/** When set (valid non-empty string), renders this SVG URL instead of the variant logo. Variant and color are ignored. */
|
|
474
|
+
logoUrl?: string;
|
|
475
|
+
/** Alt text for the logo image when logoUrl is used. Defaults to "Logo". */
|
|
476
|
+
logoAlt?: string;
|
|
470
477
|
};
|
|
471
478
|
|
|
472
479
|
declare const NsBrandComponent: (props: PropsWithChildren<NsBrandComponentProps>) => ReactElement;
|
|
@@ -522,13 +529,13 @@ declare function NsBrandWrapper({ children }: PropsWithChildren): ReactElement;
|
|
|
522
529
|
type NsBgCardProps = {
|
|
523
530
|
backgroundImageUrl: string;
|
|
524
531
|
};
|
|
525
|
-
declare const NsBgCard: _emotion_styled.StyledComponent<
|
|
532
|
+
declare const NsBgCard: _emotion_styled.StyledComponent<_mui_material_Card.CardOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
526
533
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
527
534
|
}, "variant" | "style" | "children" | "className" | "classes" | "sx" | "elevation" | "square" | "raised"> & {
|
|
528
535
|
theme?: _emotion_react.Theme;
|
|
529
536
|
} & NsBgCardProps, {}, {}>;
|
|
530
537
|
|
|
531
|
-
declare const NsBrandLogo: _emotion_styled.StyledComponent<
|
|
538
|
+
declare const NsBrandLogo: _emotion_styled.StyledComponent<_mui_material_CardMedia.CardMediaOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
532
539
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
533
540
|
}, "style" | "image" | "children" | "className" | "classes" | "sx" | "src"> & {
|
|
534
541
|
theme?: _emotion_react.Theme;
|
|
@@ -674,19 +681,36 @@ type NsAwardCardProps = {
|
|
|
674
681
|
};
|
|
675
682
|
declare function NsAwardCard({ title, awardName, mediaOutlet, backgroundImageDetail, className, fontColor, }: NsAwardCardProps): ReactElement;
|
|
676
683
|
|
|
677
|
-
|
|
684
|
+
type NsCarouselProps<T = any> = {
|
|
678
685
|
entries: T[];
|
|
686
|
+
// eslint-disable-next-line no-unused-vars
|
|
679
687
|
renderEntry(entry: T, index: number): ReactNode;
|
|
680
688
|
allEntryLink?: string;
|
|
681
689
|
allEntryLabel?: string;
|
|
682
690
|
settings: any;
|
|
683
691
|
showControlButtons?: boolean;
|
|
684
|
-
|
|
685
|
-
|
|
692
|
+
ariaLabel?: string;
|
|
693
|
+
ariaLabelledBy?: string;
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
type NsScrollingCarouselProps<T = any> = {
|
|
697
|
+
slides: T;
|
|
698
|
+
// eslint-disable-next-line no-unused-vars
|
|
699
|
+
renderSlide(slide: T, index: number): ReactNode;
|
|
700
|
+
/* time it takes while scrolling */
|
|
701
|
+
scrollSeconds: number;
|
|
702
|
+
/* time for which slide stays still before scrolling */
|
|
703
|
+
stillSeconds: number;
|
|
704
|
+
settings: any;
|
|
705
|
+
/* value in number, specifying how much the dots should be from bottom of slides container */
|
|
706
|
+
dotsBottomPixel?: number;
|
|
707
|
+
} & AdditionalProps;
|
|
686
708
|
|
|
687
|
-
declare
|
|
709
|
+
declare function NsCarousel<T = any>({ entries, renderEntry, allEntryLink, settings, allEntryLabel, showControlButtons, ariaLabel, ariaLabelledBy, }: NsCarouselProps<T>): ReactElement;
|
|
688
710
|
|
|
689
|
-
declare const settings:
|
|
711
|
+
declare const NsScrollingCarousel: ({ slides, scrollSeconds, stillSeconds, renderSlide, settings, dotsBottomPixel, additionalProps, }: NsScrollingCarouselProps) => ReactElement;
|
|
712
|
+
|
|
713
|
+
declare const defaultCarouselSettings: {
|
|
690
714
|
dots: boolean;
|
|
691
715
|
infinite: boolean;
|
|
692
716
|
speed: number;
|
|
@@ -723,26 +747,16 @@ declare const settings: {
|
|
|
723
747
|
})[];
|
|
724
748
|
};
|
|
725
749
|
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
// eslint-disable-next-line no-unused-vars
|
|
737
|
-
renderSlide(slide: T, index: number): ReactNode;
|
|
738
|
-
/* time it takes while scrolling */
|
|
739
|
-
scrollSeconds: number;
|
|
740
|
-
/* time for which slide stays still before scrolling */
|
|
741
|
-
stillSeconds: number;
|
|
742
|
-
settings: any;
|
|
743
|
-
/* value in number, specifying how much the dots should be from bottom of slides container */
|
|
744
|
-
dotsBottomPixel?: number;
|
|
745
|
-
} & AdditionalProps;
|
|
750
|
+
interface CarouselControlProps {
|
|
751
|
+
next(): void;
|
|
752
|
+
prev(): void;
|
|
753
|
+
viewAllLabel: string;
|
|
754
|
+
viewAllUrl: string;
|
|
755
|
+
showNavigationButtons?: boolean;
|
|
756
|
+
prevAriaLabel?: string;
|
|
757
|
+
nextAriaLabel?: string;
|
|
758
|
+
}
|
|
759
|
+
declare const CarouselControl: ({ next, prev, viewAllUrl, viewAllLabel, showNavigationButtons, prevAriaLabel, nextAriaLabel, }: CarouselControlProps) => ReactElement;
|
|
746
760
|
|
|
747
761
|
type NsCartIconProps = {
|
|
748
762
|
itemCount?: number;
|
|
@@ -1242,4 +1256,4 @@ type NsVideoProps = {
|
|
|
1242
1256
|
|
|
1243
1257
|
declare const NsVideo: (props: PropsWithChildren<NsVideoProps>) => ReactElement;
|
|
1244
1258
|
|
|
1245
|
-
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, 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,
|
|
1259
|
+
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, 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, NsCarousel, CarouselControl as NsCarouselControl, type NsCarouselProps, NsCartIcon, type NsCartIconProps, NsCheckbox, type NsCheckboxProps, NsCheckoutCard, NsCollapse, type NsCollapseProps, NsColumnControl, type NsColumnControlProps, defaultCarouselSettings as NsDefaultCarouselSettings, 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, NsPost, NsProgress, type NsProgressProps, NsRadioGroup, type NsRadioGroupProps, NsScrollingCarousel, type NsScrollingCarouselProps, 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, type RenderSelectOptionArgType, type SelectOptionProps, type SelectProps, Show, type Themed, type ToastOptions, type Variants, getBasicDATWidthHeight, iconSize, useAccordionMap, useToast, useWindowSize };
|