@telefonica/mistica 15.19.0 → 15.20.1
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/css/mistica.css +1 -1
- package/dist/accordion.d.ts +2 -2
- package/dist/avatar.d.ts +2 -2
- package/dist/badge.d.ts +1 -1
- package/dist/button-fixed-footer-layout.d.ts +1 -1
- package/dist/button-group.d.ts +2 -2
- package/dist/button-layout.d.ts +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/callout.d.ts +1 -1
- package/dist/card.d.ts +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/chip.d.ts +3 -3
- package/dist/circle.d.ts +1 -1
- package/dist/community/blocks.d.ts +7 -7
- package/dist/counter.d.ts +2 -2
- package/dist/credit-card-expiration-field.d.ts +2 -2
- package/dist/credit-card-fields.d.ts +2 -2
- package/dist/credit-card-number-field.d.ts +2 -2
- package/dist/cvv-field.d.ts +2 -2
- package/dist/date-field.d.ts +2 -2
- package/dist/date-time-field.d.ts +2 -2
- package/dist/date-time-picker.d.ts +2 -2
- package/dist/decimal-field.d.ts +2 -2
- package/dist/dialog.js +72 -70
- package/dist/divider.d.ts +2 -4
- package/dist/double-field.d.ts +2 -2
- package/dist/email-field.d.ts +2 -2
- package/dist/empty-state-card.d.ts +1 -1
- package/dist/empty-state.d.ts +1 -1
- package/dist/fade-in.d.ts +1 -1
- package/dist/feedback.d.ts +6 -6
- package/dist/fixed-to-top.d.ts +1 -1
- package/dist/focus-trap.d.ts +1 -1
- package/dist/form.d.ts +1 -1
- package/dist/grid-layout.d.ts +1 -1
- package/dist/header.d.ts +4 -4
- package/dist/iban-field.d.ts +2 -2
- package/dist/icon-button.d.ts +2 -2
- package/dist/icons/icon-amex.d.ts +2 -2
- package/dist/icons/icon-chevron.d.ts +1 -1
- package/dist/icons/icon-cvv-amex.d.ts +2 -2
- package/dist/icons/icon-cvv-visa-mc.d.ts +2 -2
- package/dist/icons/icon-mastercard.d.ts +2 -2
- package/dist/icons/icon-visa.d.ts +2 -2
- package/dist/inline.d.ts +1 -1
- package/dist/integer-field.d.ts +1 -1
- package/dist/list.d.ts +3 -3
- package/dist/loading-bar.d.ts +2 -2
- package/dist/master-detail-layout.d.ts +1 -1
- package/dist/menu.d.ts +4 -4
- package/dist/month-field.d.ts +2 -2
- package/dist/mosaic.d.ts +3 -3
- package/dist/navigation-bar.d.ts +5 -5
- package/dist/navigation-breadcrumbs.d.ts +3 -2
- package/dist/navigation-breadcrumbs.js +8 -7
- package/dist/negative-box.d.ts +1 -1
- package/dist/nestable-context.d.ts +5 -5
- package/dist/overlay.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/dist/password-field.d.ts +2 -2
- package/dist/phone-number-field.d.ts +2 -2
- package/dist/placeholder.d.ts +2 -2
- package/dist/popover.d.ts +1 -1
- package/dist/portal.d.ts +1 -1
- package/dist/progress-bar.d.ts +2 -2
- package/dist/radio-button.d.ts +2 -2
- package/dist/responsive-layout.d.ts +5 -5
- package/dist/screen-reader-only.d.ts +1 -1
- package/dist/screen-size-context-provider.d.ts +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/snackbar.js +18 -20
- package/dist/spinner.d.ts +1 -1
- package/dist/stack.d.ts +1 -1
- package/dist/stacking-group.d.ts +1 -1
- package/dist/stepper.d.ts +2 -2
- package/dist/switch-component.d.ts +1 -1
- package/dist/tab-focus.d.ts +1 -1
- package/dist/tabs.d.ts +1 -1
- package/dist/tag.d.ts +3 -3
- package/dist/text-field-base.d.ts +4 -4
- package/dist/text-field-components.d.ts +3 -3
- package/dist/text-link.d.ts +1 -1
- package/dist/text.d.ts +11 -11
- package/dist/theme-context-provider.d.ts +1 -1
- package/dist/theme-variant-context.d.ts +1 -1
- package/dist/timer.d.ts +3 -3
- package/dist/tooltip.d.ts +2 -2
- package/dist/utils/aspect-ratio-support.d.ts +1 -1
- package/dist/utils/document-visibility.d.ts +1 -1
- package/dist-es/dialog.js +72 -70
- package/dist-es/navigation-breadcrumbs.js +18 -17
- package/dist-es/package-version.js +1 -1
- package/dist-es/snackbar.js +21 -23
- package/dist-es/style.css +1 -1
- package/package.json +3 -3
package/dist/form.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ type FormProps = {
|
|
|
12
12
|
onValidationErrors?: (errors: FormErrors) => void;
|
|
13
13
|
className?: string;
|
|
14
14
|
};
|
|
15
|
-
declare const Form:
|
|
15
|
+
declare const Form: ({ children, className, onSubmit, initialValues, autoJump, onValidationErrors, id: idProp, }: FormProps) => JSX.Element;
|
|
16
16
|
export default Form;
|
package/dist/grid-layout.d.ts
CHANGED
|
@@ -44,5 +44,5 @@ type PropsTemplate8 = {
|
|
|
44
44
|
children: React.ReactNode;
|
|
45
45
|
};
|
|
46
46
|
type Props = CommonProps & ExclusifyUnion<PropsChildren | PropsTemplate6plus6 | PropsTemplate8plus4 | PropsTemplate4plus6 | PropsTemplate5plus4 | PropsTemplate3plus9 | PropsTemplate10 | PropsTemplate8>;
|
|
47
|
-
declare const GridLayout:
|
|
47
|
+
declare const GridLayout: ({ dataAttributes, template, left, right, verticalSpace, collapseBreakpoint, children, }: Props) => JSX.Element;
|
|
48
48
|
export default GridLayout;
|
package/dist/header.d.ts
CHANGED
|
@@ -45,14 +45,14 @@ type HeaderProps = {
|
|
|
45
45
|
*/
|
|
46
46
|
isErrorAmount?: boolean;
|
|
47
47
|
};
|
|
48
|
-
export declare const Header:
|
|
48
|
+
export declare const Header: ({ headline, pretitle, pretitleAs, title, titleAs, description, dataAttributes, small, preamount, amount, button, subtitle, isErrorAmount, secondaryButton, }: HeaderProps) => JSX.Element;
|
|
49
49
|
type MainSectionHeaderProps = {
|
|
50
50
|
title: string;
|
|
51
51
|
titleAs?: HeadingType;
|
|
52
52
|
description?: string;
|
|
53
53
|
button?: RendersNullableElement<typeof ButtonPrimary> | RendersNullableElement<typeof ButtonSecondary>;
|
|
54
54
|
};
|
|
55
|
-
export declare const MainSectionHeader:
|
|
55
|
+
export declare const MainSectionHeader: ({ title, titleAs, description, button, }: MainSectionHeaderProps) => JSX.Element;
|
|
56
56
|
type HeaderLayoutProps = {
|
|
57
57
|
isInverse?: boolean;
|
|
58
58
|
breadcrumbs?: RendersNullableElement<typeof NavigationBreadcrumbs>;
|
|
@@ -68,11 +68,11 @@ type HeaderLayoutProps = {
|
|
|
68
68
|
bleed?: boolean;
|
|
69
69
|
noPaddingY?: boolean;
|
|
70
70
|
};
|
|
71
|
-
export declare const HeaderLayout:
|
|
71
|
+
export declare const HeaderLayout: ({ isInverse, breadcrumbs, header, extra, sideBySideExtraOnDesktop, dataAttributes, bleed, noPaddingY, }: HeaderLayoutProps) => JSX.Element;
|
|
72
72
|
type MainSectionHeaderLayoutProps = {
|
|
73
73
|
isInverse?: boolean;
|
|
74
74
|
children: RendersElement<typeof MainSectionHeader>;
|
|
75
75
|
dataAttributes?: DataAttributes;
|
|
76
76
|
};
|
|
77
|
-
export declare const MainSectionHeaderLayout:
|
|
77
|
+
export declare const MainSectionHeaderLayout: ({ isInverse, children, dataAttributes, }: MainSectionHeaderLayoutProps) => JSX.Element;
|
|
78
78
|
export {};
|
package/dist/iban-field.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { CommonFormFieldProps } from './text-field-base';
|
|
3
3
|
export interface IbanFieldProps extends CommonFormFieldProps {
|
|
4
4
|
onChangeValue?: (value: string, rawValue: string) => void;
|
|
5
5
|
prefix?: string;
|
|
6
6
|
getSuggestions?: (value: string) => Array<string>;
|
|
7
7
|
}
|
|
8
|
-
declare const IbanField:
|
|
8
|
+
declare const IbanField: ({ disabled, error, helperText, name, optional, validate: customValidate, onChange, onChangeValue, onBlur, value, defaultValue, dataAttributes, ...rest }: IbanFieldProps) => JSX.Element;
|
|
9
9
|
export default IbanField;
|
package/dist/icon-button.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ interface BaseProps {
|
|
|
80
80
|
role?: string;
|
|
81
81
|
}
|
|
82
82
|
interface IconButtonBaseProps {
|
|
83
|
-
Icon:
|
|
83
|
+
Icon: (props: IconProps) => JSX.Element;
|
|
84
84
|
type?: IconButtonType;
|
|
85
85
|
backgroundType?: IconButtonBackgroundType;
|
|
86
86
|
}
|
|
@@ -93,7 +93,7 @@ export declare const RawIconButton: React.ForwardRefExoticComponent<(IconButtonP
|
|
|
93
93
|
export declare const InternalIconButton: React.ForwardRefExoticComponent<ExclusifyUnion<DeprecatedProps | (IconButtonProps & InternalIconButtonBaseProps)> & React.RefAttributes<TouchableElement>>;
|
|
94
94
|
export declare const IconButton: React.ForwardRefExoticComponent<ExclusifyUnion<DeprecatedProps | IconButtonProps> & React.RefAttributes<TouchableElement>>;
|
|
95
95
|
type ToggleStateProps = {
|
|
96
|
-
Icon:
|
|
96
|
+
Icon: (props: IconProps) => JSX.Element;
|
|
97
97
|
type?: IconButtonType;
|
|
98
98
|
backgroundType?: IconButtonBackgroundType;
|
|
99
99
|
} & AriaProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type Props = {
|
|
3
3
|
role?: string;
|
|
4
4
|
size?: number | string;
|
|
5
5
|
};
|
|
6
|
-
declare const IconAmex:
|
|
6
|
+
declare const IconAmex: ({ role, size }: Props) => JSX.Element;
|
|
7
7
|
export default IconAmex;
|
|
@@ -8,5 +8,5 @@ type Props = {
|
|
|
8
8
|
direction?: Direction;
|
|
9
9
|
transitionDuration?: number;
|
|
10
10
|
};
|
|
11
|
-
declare const IconChevron:
|
|
11
|
+
declare const IconChevron: ({ size, color, className, style, transitionDuration, direction, }: Props) => JSX.Element;
|
|
12
12
|
export default IconChevron;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type Props = {
|
|
3
3
|
role?: string;
|
|
4
4
|
size?: number | string;
|
|
5
5
|
color?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const IconCvvAmex:
|
|
7
|
+
declare const IconCvvAmex: ({ role, size, color }: Props) => JSX.Element;
|
|
8
8
|
export default IconCvvAmex;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type Props = {
|
|
3
3
|
role?: string;
|
|
4
4
|
size?: number | string;
|
|
5
5
|
color?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const IconCvvVisaMc:
|
|
7
|
+
declare const IconCvvVisaMc: ({ role, size, color }: Props) => JSX.Element;
|
|
8
8
|
export default IconCvvVisaMc;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type Props = {
|
|
3
3
|
role?: string;
|
|
4
4
|
size?: number | string;
|
|
5
5
|
};
|
|
6
|
-
declare const IconMastercard:
|
|
6
|
+
declare const IconMastercard: ({ role, size }: Props) => JSX.Element;
|
|
7
7
|
export default IconMastercard;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type Props = {
|
|
3
3
|
role?: string;
|
|
4
4
|
size?: number | string;
|
|
5
5
|
};
|
|
6
|
-
declare const IconVisa:
|
|
6
|
+
declare const IconVisa: ({ role, size }: Props) => JSX.Element;
|
|
7
7
|
export default IconVisa;
|
package/dist/inline.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ type Props = {
|
|
|
13
13
|
dataAttributes?: DataAttributes;
|
|
14
14
|
wrap?: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const Inline:
|
|
16
|
+
declare const Inline: ({ space, className, children, role, alignItems, "aria-labelledby": ariaLabelledBy, fullWidth, wrap, dataAttributes, }: Props) => JSX.Element;
|
|
17
17
|
export default Inline;
|
package/dist/integer-field.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export declare const IntegerInput: ({ inputRef, value, defaultValue, type, ...re
|
|
|
8
8
|
export interface IntegerFieldProps extends CommonFormFieldProps {
|
|
9
9
|
onChangeValue?: (value: string, rawValue: string) => void;
|
|
10
10
|
}
|
|
11
|
-
declare const IntegerField:
|
|
11
|
+
declare const IntegerField: ({ disabled, error, helperText, name, optional, validate: validateProp, onChange, onChangeValue, onBlur, value, defaultValue, dataAttributes, ...rest }: IntegerFieldProps) => JSX.Element;
|
|
12
12
|
export default IntegerField;
|
package/dist/list.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ interface ContentProps extends CommonProps {
|
|
|
36
36
|
/** This id is to link the title with the related control */
|
|
37
37
|
labelId?: string;
|
|
38
38
|
}
|
|
39
|
-
export declare const Content:
|
|
39
|
+
export declare const Content: ({ withChevron, headline, headlineRef, extraRef, title, titleAs, titleLinesMax, subtitle, subtitleLinesMax, description, descriptionLinesMax, detail, asset, danger, badge, right, rightRef, extra, labelId, disabled, control, }: ContentProps) => JSX.Element;
|
|
40
40
|
type ControlProps = {
|
|
41
41
|
name?: string;
|
|
42
42
|
value?: boolean;
|
|
@@ -91,7 +91,7 @@ type RowListProps = {
|
|
|
91
91
|
role?: string;
|
|
92
92
|
dataAttributes?: DataAttributes;
|
|
93
93
|
};
|
|
94
|
-
export declare const RowList:
|
|
94
|
+
export declare const RowList: ({ children, ariaLabelledby, role, dataAttributes, }: RowListProps) => JSX.Element;
|
|
95
95
|
type CommonBoxedRowProps = {
|
|
96
96
|
danger: true;
|
|
97
97
|
isInverse?: false;
|
|
@@ -110,5 +110,5 @@ type BoxedRowListProps = {
|
|
|
110
110
|
role?: string;
|
|
111
111
|
dataAttributes?: DataAttributes;
|
|
112
112
|
};
|
|
113
|
-
export declare const BoxedRowList:
|
|
113
|
+
export declare const BoxedRowList: ({ children, ariaLabelledby, role, dataAttributes, }: BoxedRowListProps) => JSX.Element;
|
|
114
114
|
export {};
|
package/dist/loading-bar.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { DataAttributes } from './utils/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
children?: void;
|
|
6
6
|
dataAttributes?: DataAttributes;
|
|
7
7
|
};
|
|
8
|
-
declare const LoadingBar:
|
|
8
|
+
declare const LoadingBar: ({ visible, dataAttributes }: Props) => JSX.Element;
|
|
9
9
|
export default LoadingBar;
|
package/dist/menu.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ExclusifyUnion } from './utils/utility-types';
|
|
|
3
3
|
import type { DataAttributes, IconProps } from './utils/types';
|
|
4
4
|
interface MenuItemBaseProps {
|
|
5
5
|
label: string;
|
|
6
|
-
Icon?:
|
|
6
|
+
Icon?: (props: IconProps) => JSX.Element;
|
|
7
7
|
destructive?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
onPress: (item: number) => void;
|
|
@@ -17,11 +17,11 @@ interface MenuItemWithControlProps extends MenuItemBaseProps {
|
|
|
17
17
|
checked?: boolean;
|
|
18
18
|
}
|
|
19
19
|
type MenuItemProps = ExclusifyUnion<MenuItemWithControlProps | MenuItemWithoutControlProps>;
|
|
20
|
-
export declare const MenuItem:
|
|
20
|
+
export declare const MenuItem: ({ label, Icon, destructive, disabled, onPress, controlType, checked, }: MenuItemProps) => JSX.Element;
|
|
21
21
|
type MenuSectionProps = {
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
};
|
|
24
|
-
export declare const MenuSection:
|
|
24
|
+
export declare const MenuSection: ({ children }: MenuSectionProps) => JSX.Element;
|
|
25
25
|
type MenuRenderProps = {
|
|
26
26
|
ref: (element: HTMLElement | null) => void;
|
|
27
27
|
className: string;
|
|
@@ -40,5 +40,5 @@ export type MenuProps = {
|
|
|
40
40
|
position?: 'left' | 'right';
|
|
41
41
|
dataAttributes?: DataAttributes;
|
|
42
42
|
};
|
|
43
|
-
export declare const Menu:
|
|
43
|
+
export declare const Menu: ({ renderTarget, renderMenu, width, position, dataAttributes, }: MenuProps) => JSX.Element;
|
|
44
44
|
export {};
|
package/dist/month-field.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { CommonFormFieldProps } from './text-field-base';
|
|
3
3
|
export interface DateFieldProps extends CommonFormFieldProps {
|
|
4
4
|
onChangeValue?: (value: string, rawValue: string) => void;
|
|
5
5
|
min?: Date;
|
|
6
6
|
max?: Date;
|
|
7
7
|
}
|
|
8
|
-
declare const DateField:
|
|
8
|
+
declare const DateField: ({ disabled, error, helperText, name, optional, validate: validateProp, onChange, onChangeValue: onChangeValueProp, onBlur, value, defaultValue, min, max, dataAttributes, ...rest }: DateFieldProps) => JSX.Element;
|
|
9
9
|
export default DateField;
|
package/dist/mosaic.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ type HorizontalMosaicProps = {
|
|
|
6
6
|
free?: boolean;
|
|
7
7
|
dataAttributes?: DataAttributes;
|
|
8
8
|
};
|
|
9
|
-
export declare const HorizontalMosaic:
|
|
10
|
-
type
|
|
9
|
+
export declare const HorizontalMosaic: ({ items, withBullets, free, dataAttributes, }: HorizontalMosaicProps) => JSX.Element;
|
|
10
|
+
type VerticalMosaicProps = {
|
|
11
11
|
items: ReadonlyArray<React.ReactElement>;
|
|
12
12
|
dataAttributes?: DataAttributes;
|
|
13
13
|
};
|
|
14
|
-
export declare const VerticalMosaic:
|
|
14
|
+
export declare const VerticalMosaic: ({ items, dataAttributes }: VerticalMosaicProps) => JSX.Element;
|
|
15
15
|
export {};
|
package/dist/navigation-bar.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ type MainNavigationBarPropsBase = {
|
|
|
33
33
|
large?: boolean;
|
|
34
34
|
};
|
|
35
35
|
type MainNavigationBarProps = MainNavigationBarPropsBase;
|
|
36
|
-
export declare const MainNavigationBar:
|
|
36
|
+
export declare const MainNavigationBar: ({ sections, selectedIndex, right, variant, isInverse, topFixed, withBorder, burgerMenuExtra, logo, large, }: MainNavigationBarProps) => JSX.Element;
|
|
37
37
|
interface NavigationBarCommonProps {
|
|
38
38
|
/** @deprecated Use variant instead */
|
|
39
39
|
isInverse?: boolean;
|
|
@@ -54,7 +54,7 @@ interface NavigationBarNotFixedProps extends NavigationBarCommonProps {
|
|
|
54
54
|
paddingX?: number;
|
|
55
55
|
}
|
|
56
56
|
type NavigationBarProps = NavigationBarTopFixedProps | NavigationBarNotFixedProps;
|
|
57
|
-
export declare const NavigationBar:
|
|
57
|
+
export declare const NavigationBar: ({ onBack, title, titleAs, right, variant, isInverse, topFixed, paddingX, withBorder, }: NavigationBarProps) => JSX.Element;
|
|
58
58
|
type FunnelNavigationBarProps = {
|
|
59
59
|
variant?: Variant;
|
|
60
60
|
/** @deprecated Use variant instead */
|
|
@@ -65,11 +65,11 @@ type FunnelNavigationBarProps = {
|
|
|
65
65
|
children?: undefined;
|
|
66
66
|
withBorder?: boolean;
|
|
67
67
|
};
|
|
68
|
-
export declare const FunnelNavigationBar:
|
|
68
|
+
export declare const FunnelNavigationBar: ({ logo, right, variant, isInverse, topFixed, withBorder, }: FunnelNavigationBarProps) => JSX.Element;
|
|
69
69
|
type NavigationBarActionGroupProps = {
|
|
70
70
|
children: React.ReactNode;
|
|
71
71
|
};
|
|
72
|
-
export declare const NavigationBarActionGroup:
|
|
72
|
+
export declare const NavigationBarActionGroup: ({ children }: NavigationBarActionGroupProps) => JSX.Element;
|
|
73
73
|
type NavigationBarActionProps = TouchableProps;
|
|
74
|
-
export declare const NavigationBarAction:
|
|
74
|
+
export declare const NavigationBarAction: ({ children, ...touchableProps }: NavigationBarActionProps) => JSX.Element;
|
|
75
75
|
export {};
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
* Figma: https://www.figma.com/file/BctaFHf0PVPX2uwRSl8taf/Breadcrumbs?node-id=2%3A61
|
|
3
3
|
* Accessibility: https://www.w3.org/WAI/ARIA/apg/example-index/breadcrumb/index.html
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/// <reference types="react" />
|
|
6
6
|
import type { DataAttributes } from './utils/types';
|
|
7
7
|
export type NavigationBreadcrumbsProps = {
|
|
8
8
|
title: string;
|
|
9
9
|
breadcrumbs: ReadonlyArray<{
|
|
10
10
|
readonly title: string;
|
|
11
11
|
readonly url: string;
|
|
12
|
+
onNavigate?: () => void;
|
|
12
13
|
}>;
|
|
13
14
|
children?: void;
|
|
14
15
|
dataAttributes?: DataAttributes;
|
|
15
16
|
'aria-label'?: string;
|
|
16
17
|
};
|
|
17
|
-
declare const NavigationBreadcrumbs:
|
|
18
|
+
declare const NavigationBreadcrumbs: ({ title, breadcrumbs, dataAttributes, "aria-label": ariaLabel, }: NavigationBreadcrumbsProps) => JSX.Element;
|
|
18
19
|
export default NavigationBreadcrumbs;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function() {
|
|
9
|
-
return
|
|
9
|
+
return S;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -73,7 +73,7 @@ function _object_spread_props(target, source) {
|
|
|
73
73
|
}
|
|
74
74
|
return target;
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const b = " / ", B = (param)=>{
|
|
77
77
|
let { title: s, breadcrumbs: n, dataAttributes: c, "aria-label": m = "Breadcrumb" } = param;
|
|
78
78
|
const i = (0, _themevariantcontext.useIsInverseVariant)();
|
|
79
79
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("nav", _object_spread_props(_object_spread({
|
|
@@ -82,8 +82,8 @@ const N = " / ", b = (param)=>{
|
|
|
82
82
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("ol", {
|
|
83
83
|
className: _navigationbreadcrumbscssmistica.list,
|
|
84
84
|
children: [
|
|
85
|
-
n.map((param,
|
|
86
|
-
let { title: a, url: d } = param;
|
|
85
|
+
n.map((param, p)=>{
|
|
86
|
+
let { title: a, url: d, onNavigate: u } = param;
|
|
87
87
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("li", {
|
|
88
88
|
className: _navigationbreadcrumbscssmistica.listItem,
|
|
89
89
|
children: [
|
|
@@ -95,6 +95,7 @@ const N = " / ", b = (param)=>{
|
|
|
95
95
|
color: i ? _skincontractcssmistica.vars.colors.textPrimaryInverse : _skincontractcssmistica.vars.colors.textPrimary
|
|
96
96
|
},
|
|
97
97
|
className: _navigationbreadcrumbscssmistica.link,
|
|
98
|
+
onNavigate: u,
|
|
98
99
|
children: a
|
|
99
100
|
})
|
|
100
101
|
}),
|
|
@@ -102,11 +103,11 @@ const N = " / ", b = (param)=>{
|
|
|
102
103
|
role: "presentation",
|
|
103
104
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text1, {
|
|
104
105
|
regular: !0,
|
|
105
|
-
children:
|
|
106
|
+
children: b
|
|
106
107
|
})
|
|
107
108
|
})
|
|
108
109
|
]
|
|
109
|
-
},
|
|
110
|
+
}, p);
|
|
110
111
|
}),
|
|
111
112
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("li", {
|
|
112
113
|
className: _navigationbreadcrumbscssmistica.listItem,
|
|
@@ -127,4 +128,4 @@ const N = " / ", b = (param)=>{
|
|
|
127
128
|
]
|
|
128
129
|
})
|
|
129
130
|
}));
|
|
130
|
-
},
|
|
131
|
+
}, S = B;
|
package/dist/negative-box.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ type ProviderProps = {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
};
|
|
5
5
|
export type NestableContext<Value> = {
|
|
6
|
-
Getter:
|
|
6
|
+
Getter: (props: {
|
|
7
7
|
children: (value: Value) => React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
Provider:
|
|
10
|
-
Setter:
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
Provider: (props: ProviderProps) => JSX.Element;
|
|
10
|
+
Setter: (props: {
|
|
11
11
|
value: Value;
|
|
12
|
-
}
|
|
12
|
+
}) => null;
|
|
13
13
|
useValue: () => Value;
|
|
14
14
|
useSetValue: (value: Value) => void;
|
|
15
15
|
};
|
package/dist/overlay.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ type Props = {
|
|
|
8
8
|
disableScroll?: boolean;
|
|
9
9
|
dataAttributes?: DataAttributes;
|
|
10
10
|
};
|
|
11
|
-
declare const Overlay:
|
|
11
|
+
declare const Overlay: ({ onPress, children, className, style, disableScroll, dataAttributes, }: Props) => JSX.Element;
|
|
12
12
|
export default Overlay;
|
package/dist/package-version.js
CHANGED
package/dist/password-field.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { CommonFormFieldProps } from './text-field-base';
|
|
3
3
|
export interface PasswordFieldProps extends CommonFormFieldProps {
|
|
4
4
|
onChangeValue?: (value: string, rawValue: string) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const PasswordField:
|
|
6
|
+
declare const PasswordField: ({ disabled, error, helperText, name, optional, validate, onChange, onChangeValue, onBlur, value, autoComplete, defaultValue, dataAttributes, ...rest }: PasswordFieldProps) => JSX.Element;
|
|
7
7
|
export default PasswordField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { CommonFormFieldProps } from './text-field-base';
|
|
3
3
|
export interface PhoneNumberFieldProps extends CommonFormFieldProps {
|
|
4
4
|
onChangeValue?: (value: string, rawValue: string) => void;
|
|
@@ -6,5 +6,5 @@ export interface PhoneNumberFieldProps extends CommonFormFieldProps {
|
|
|
6
6
|
getSuggestions?: (value: string) => Array<string>;
|
|
7
7
|
e164?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const PhoneNumberField:
|
|
9
|
+
declare const PhoneNumberField: ({ disabled, error, helperText, name, optional, validate, onChange, onChangeValue, onBlur, value, defaultValue, e164, dataAttributes, ...rest }: PhoneNumberFieldProps) => JSX.Element;
|
|
10
10
|
export default PhoneNumberField;
|
package/dist/placeholder.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type PlaceholderProps = {
|
|
3
3
|
width?: string | number;
|
|
4
4
|
height?: string | number;
|
|
5
5
|
children?: void;
|
|
6
6
|
};
|
|
7
|
-
export declare const Placeholder:
|
|
7
|
+
export declare const Placeholder: ({ width, height }: PlaceholderProps) => JSX.Element;
|
|
8
8
|
export {};
|
package/dist/popover.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ type Props = {
|
|
|
16
16
|
extra?: React.ReactNode;
|
|
17
17
|
dataAttributes?: DataAttributes;
|
|
18
18
|
};
|
|
19
|
-
declare const Popover:
|
|
19
|
+
declare const Popover: ({ open, extra, children, onClose, closeButtonLabel, dataAttributes, trackingEvent, title, description, asset, ...props }: Props) => JSX.Element;
|
|
20
20
|
export default Popover;
|
package/dist/portal.d.ts
CHANGED
package/dist/progress-bar.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ type ProgressBarProps = {
|
|
|
10
10
|
dataAttributes?: DataAttributes;
|
|
11
11
|
reverse?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export declare const ProgressBar:
|
|
13
|
+
export declare const ProgressBar: ({ progressPercent, color, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-hidden": ariaHidden, dataAttributes, reverse, }: ProgressBarProps) => JSX.Element;
|
|
14
14
|
type ProgressBarSteppedProps = {
|
|
15
15
|
steps: number;
|
|
16
16
|
currentStep?: number;
|
|
@@ -20,5 +20,5 @@ type ProgressBarSteppedProps = {
|
|
|
20
20
|
'aria-labelledby'?: string;
|
|
21
21
|
'aria-hidden'?: React.HTMLAttributes<HTMLDivElement>['aria-hidden'];
|
|
22
22
|
};
|
|
23
|
-
export declare const ProgressBarStepped:
|
|
23
|
+
export declare const ProgressBarStepped: ({ steps, currentStep, color, dataAttributes, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-hidden": ariaHidden, }: ProgressBarSteppedProps) => JSX.Element;
|
|
24
24
|
export {};
|
package/dist/radio-button.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ type PropsChildren = {
|
|
|
32
32
|
'aria-label'?: string;
|
|
33
33
|
'aria-labelledby'?: string;
|
|
34
34
|
};
|
|
35
|
-
declare const RadioButton:
|
|
35
|
+
declare const RadioButton: ({ value, id, dataAttributes, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, ...rest }: PropsRender | PropsChildren) => JSX.Element;
|
|
36
36
|
type RadioGroupProps = {
|
|
37
37
|
name: string;
|
|
38
38
|
disabled?: boolean;
|
|
@@ -43,5 +43,5 @@ type RadioGroupProps = {
|
|
|
43
43
|
onChange?: (value: string) => void;
|
|
44
44
|
dataAttributes?: DataAttributes;
|
|
45
45
|
};
|
|
46
|
-
export declare const RadioGroup:
|
|
46
|
+
export declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
|
|
47
47
|
export default RadioButton;
|
|
@@ -10,14 +10,14 @@ type Props = {
|
|
|
10
10
|
backgroundColor?: string;
|
|
11
11
|
dataAttributes?: DataAttributes;
|
|
12
12
|
};
|
|
13
|
-
export declare const InternalResponsiveLayout:
|
|
13
|
+
export declare const InternalResponsiveLayout: ({ children, isInverse, variant, backgroundColor, className, fullWidth, dataAttributes, shouldExpandWhenNested, innerDivClassName, }: Props & {
|
|
14
14
|
shouldExpandWhenNested?: boolean | 'desktop';
|
|
15
15
|
innerDivClassName?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const ResponsiveLayout:
|
|
18
|
-
export declare const ResetResponsiveLayout:
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
declare const ResponsiveLayout: ({ children, ...props }: Props) => JSX.Element;
|
|
18
|
+
export declare const ResetResponsiveLayout: ({ children, skipMobile, skipDesktop, }: {
|
|
19
19
|
children: React.ReactNode;
|
|
20
20
|
skipMobile?: boolean;
|
|
21
21
|
skipDesktop?: boolean;
|
|
22
|
-
}
|
|
22
|
+
}) => JSX.Element;
|
|
23
23
|
export default ResponsiveLayout;
|
package/dist/select.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export type SelectProps = {
|
|
|
21
21
|
native?: boolean;
|
|
22
22
|
children?: void;
|
|
23
23
|
};
|
|
24
|
-
declare const Select:
|
|
24
|
+
declare const Select: ({ id, label, helperText: helperTextProp, value: valueProp, defaultValue, onChangeValue: onChangeValueProp, name, fullWidth, options, optional, disabled: disabledProp, error: errorProp, onBlur, autoFocus, native, }: SelectProps) => JSX.Element;
|
|
25
25
|
export default Select;
|