@telefonica/mistica 10.0.1 → 10.3.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/CHANGELOG.md +43 -0
- package/dist/button-fixed-footer-layout.d.ts +2 -2
- package/dist/button-layout.d.ts +2 -2
- package/dist/button.d.ts +1 -1
- package/dist/callout.d.ts +4 -3
- package/dist/card.d.ts +9 -7
- package/dist/circle.d.ts +1 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/double-field.d.ts +11 -1
- package/dist/double-field.js.flow +20 -20
- package/dist/empty-state-card.d.ts +1 -1
- package/dist/empty-state-card.js.flow +0 -1
- package/dist/empty-state.d.ts +1 -1
- package/dist/empty-state.js.flow +0 -1
- package/dist/feedback-screen.d.ts +4 -3
- package/dist/header.d.ts +7 -5
- package/dist/highlighted-card.d.ts +2 -2
- package/dist/icon-button.js +4 -6
- package/dist/list.js +9 -14
- package/dist/navigation-bar.d.ts +16 -4
- package/dist/navigation-bar.js +123 -88
- package/dist/navigation-bar.js.flow +20 -4
- package/dist/navigation-breadcrumbs.d.ts +1 -1
- package/dist/navigation-breadcrumbs.js.flow +1 -1
- package/dist/password-field.js +16 -8
- package/dist/radio-button.d.ts +1 -1
- package/dist/section-title.d.ts +2 -1
- package/dist/select.js +74 -65
- package/dist/skins/movistar.js +1 -1
- package/dist/skins/o2-classic.js +1 -1
- package/dist/skins/o2.js +1 -1
- package/dist/skins/telefonica.js +1 -1
- package/dist/skins/vivo.js +1 -1
- package/dist/switch-component.d.ts +1 -1
- package/dist/tabs.js +10 -8
- package/dist/tag.d.ts +2 -2
- package/dist/tag.js.flow +2 -2
- package/dist/text-field-base.js +80 -50
- package/dist/text-field-components.d.ts +1 -0
- package/dist/text-field-components.js +18 -9
- package/dist/text-field-components.js.flow +1 -0
- package/dist/text-link.d.ts +2 -2
- package/dist/text-link.js +20 -23
- package/dist/text-link.js.flow +2 -2
- package/dist/theme-context-provider.js +2 -2
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +8 -4
- package/dist/theme.js.flow +2 -0
- package/dist/utils/media-queries.d.ts +1 -0
- package/dist/utils/media-queries.js +6 -1
- package/dist/utils/media-queries.js.flow +1 -0
- package/dist-es/icon-button.js +4 -5
- package/dist-es/list.js +9 -14
- package/dist-es/navigation-bar.js +122 -88
- package/dist-es/password-field.js +16 -8
- package/dist-es/select.js +74 -65
- package/dist-es/skins/movistar.js +1 -1
- package/dist-es/skins/o2-classic.js +1 -1
- package/dist-es/skins/o2.js +1 -1
- package/dist-es/skins/telefonica.js +1 -1
- package/dist-es/skins/vivo.js +1 -1
- package/dist-es/tabs.js +10 -8
- package/dist-es/text-field-base.js +80 -50
- package/dist-es/text-field-components.js +18 -9
- package/dist-es/text-link.js +7 -10
- package/dist-es/theme-context-provider.js +2 -2
- package/dist-es/theme.js +8 -4
- package/dist-es/utils/media-queries.js +6 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
## [10.3.1](https://github.com/Telefonica/mistica-web/compare/v10.3.0...v10.3.1) (2021-09-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **NavigationBar:** remove wrong border transition in desktop ([b58d46c](https://github.com/Telefonica/mistica-web/commit/b58d46ccf14c5cebbfe95b5c62d7644525fddb86))
|
|
7
|
+
|
|
8
|
+
# [10.3.0](https://github.com/Telefonica/mistica-web/compare/v10.2.0...v10.3.0) (2021-09-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **Form fields:** change style of disabled fields ([#340](https://github.com/Telefonica/mistica-web/issues/340)) ([bdced15](https://github.com/Telefonica/mistica-web/commit/bdced15cc48fe3baf417f72fc6d453f91d172a62))
|
|
14
|
+
* **NavigationBar:** make border optional ([#342](https://github.com/Telefonica/mistica-web/issues/342)) ([2b63b96](https://github.com/Telefonica/mistica-web/commit/2b63b962b87600f972485eea268721e074047533))
|
|
15
|
+
|
|
16
|
+
# [10.2.0](https://github.com/Telefonica/mistica-web/compare/v10.1.0...v10.2.0) (2021-09-21)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **form fields:** change disabled color ([#334](https://github.com/Telefonica/mistica-web/issues/334)) ([fdb9f89](https://github.com/Telefonica/mistica-web/commit/fdb9f890677d4fb5e5d6d1a6980efe6287e4d533))
|
|
22
|
+
* **PasswordField:** keep caret position when switching visibility ([#339](https://github.com/Telefonica/mistica-web/issues/339)) ([6d4b67b](https://github.com/Telefonica/mistica-web/commit/6d4b67b3bbfa935936fb456fa97d760af4522b0c))
|
|
23
|
+
* **snippets:** wrong icon prop in Callout ([#337](https://github.com/Telefonica/mistica-web/issues/337)) ([a974a12](https://github.com/Telefonica/mistica-web/commit/a974a128107f7ce46ab9379ebe7155da160f0efc))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **mq.suportsHover:** include mq for devices that support hover ([#341](https://github.com/Telefonica/mistica-web/issues/341)) ([b6b6389](https://github.com/Telefonica/mistica-web/commit/b6b638965b2253bd813ff42af4ef596949c59120))
|
|
29
|
+
|
|
30
|
+
# [10.1.0](https://github.com/Telefonica/mistica-web/compare/v10.0.1...v10.1.0) (2021-09-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **NavigationBarActionGroup:** add missing children prop type ([#333](https://github.com/Telefonica/mistica-web/issues/333)) ([a6d1a79](https://github.com/Telefonica/mistica-web/commit/a6d1a79f7a6e9146aaa9fb83634ae8d69f2b50c4))
|
|
36
|
+
* **Select, TextField:** fix label text overflow ([#335](https://github.com/Telefonica/mistica-web/issues/335)) ([2e647b4](https://github.com/Telefonica/mistica-web/commit/2e647b4301f1ace758656c40f9793150bcf19c2e))
|
|
37
|
+
* **types:** review wrong usages of TS React.ReactElement ([#332](https://github.com/Telefonica/mistica-web/issues/332)) ([9ea483f](https://github.com/Telefonica/mistica-web/commit/9ea483f26b0d070fc5237949dba4f2acd68185ff))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* **NavigationBar:** allow custom paddingX when not fixed ([#336](https://github.com/Telefonica/mistica-web/issues/336)) ([b09c6dc](https://github.com/Telefonica/mistica-web/commit/b09c6dc03a8e71c2eb16684c399cc16b55c61513))
|
|
43
|
+
|
|
1
44
|
## [10.0.1](https://github.com/Telefonica/mistica-web/compare/v10.0.0...v10.0.1) (2021-09-07)
|
|
2
45
|
|
|
3
46
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonLink } from './button';
|
|
3
|
-
import type { ButtonElement } from './button';
|
|
3
|
+
import type { ButtonElement, ButtonLinkProps } from './button';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
isFooterVisible?: boolean;
|
|
6
6
|
button?: ButtonElement;
|
|
7
7
|
desktopButtonAlign?: 'left' | 'center';
|
|
8
8
|
secondaryButton?: ButtonElement;
|
|
9
|
-
link?: React.ReactElement<typeof ButtonLink>;
|
|
9
|
+
link?: React.ReactElement<ButtonLinkProps, typeof ButtonLink>;
|
|
10
10
|
footerBgColor?: string;
|
|
11
11
|
containerBgColor?: string;
|
|
12
12
|
children: React.ReactNode;
|
package/dist/button-layout.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonLink } from './button';
|
|
3
|
-
import type { ButtonElement } from './button';
|
|
3
|
+
import type { ButtonElement, ButtonLinkProps } from './button';
|
|
4
4
|
declare type MaybeButtonElement = ButtonElement | void | false;
|
|
5
5
|
declare type ButtonLayoutProps = {
|
|
6
6
|
children?: MaybeButtonElement | [MaybeButtonElement, MaybeButtonElement];
|
|
7
7
|
align?: 'center' | 'left' | 'right' | 'full-width';
|
|
8
|
-
link?: React.ReactElement<typeof ButtonLink> | null;
|
|
8
|
+
link?: React.ReactElement<ButtonLinkProps, typeof ButtonLink> | null;
|
|
9
9
|
withMargins?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const ButtonLayout: React.FC<ButtonLayoutProps>;
|
package/dist/button.d.ts
CHANGED
|
@@ -84,5 +84,5 @@ export declare const ButtonLink: React.FC<ButtonLinkProps>;
|
|
|
84
84
|
export declare const ButtonPrimary: React.FC<ButtonProps>;
|
|
85
85
|
export declare const ButtonSecondary: React.FC<ButtonProps>;
|
|
86
86
|
export declare const ButtonDanger: React.FC<ButtonProps>;
|
|
87
|
-
export declare type ButtonElement = React.ReactElement<typeof ButtonPrimary> | React.ReactElement<typeof ButtonSecondary> | React.ReactElement<typeof ButtonDanger>;
|
|
87
|
+
export declare type ButtonElement = React.ReactElement<ButtonProps, typeof ButtonPrimary> | React.ReactElement<ButtonProps, typeof ButtonSecondary> | React.ReactElement<ButtonProps, typeof ButtonDanger>;
|
|
88
88
|
export {};
|
package/dist/callout.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonLink, ButtonPrimary, ButtonSecondary } from './button';
|
|
3
|
+
import type { ButtonProps, ButtonLinkProps } from './button';
|
|
3
4
|
declare type Props = {
|
|
4
5
|
title?: string;
|
|
5
6
|
description: string;
|
|
6
7
|
onClose?: () => void;
|
|
7
|
-
icon?: React.ReactElement
|
|
8
|
-
button?: React.ReactElement<typeof ButtonPrimary> | React.ReactElement<typeof ButtonSecondary>;
|
|
9
|
-
buttonLink?: React.ReactElement<typeof ButtonLink>;
|
|
8
|
+
icon?: React.ReactElement;
|
|
9
|
+
button?: React.ReactElement<ButtonProps, typeof ButtonPrimary> | React.ReactElement<ButtonProps, typeof ButtonSecondary>;
|
|
10
|
+
buttonLink?: React.ReactElement<ButtonLinkProps, typeof ButtonLink>;
|
|
10
11
|
children?: void;
|
|
11
12
|
'aria-label'?: string;
|
|
12
13
|
};
|
package/dist/card.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import Tag from './tag';
|
|
3
3
|
import { ButtonLink, ButtonPrimary } from './button';
|
|
4
|
+
import type { ButtonProps, ButtonLinkProps } from './button';
|
|
4
5
|
import type { DataAttributes } from './utils/types';
|
|
6
|
+
import type { TagProps } from './tag';
|
|
5
7
|
declare type CardMedia = {
|
|
6
8
|
src: string;
|
|
7
9
|
aspectRatio: number;
|
|
@@ -17,13 +19,13 @@ declare type CardMedia = {
|
|
|
17
19
|
};
|
|
18
20
|
declare type MediaCardProps = {
|
|
19
21
|
media: CardMedia;
|
|
20
|
-
headline?: string | React.ReactElement<typeof Tag>;
|
|
22
|
+
headline?: string | React.ReactElement<TagProps, typeof Tag>;
|
|
21
23
|
pretitle?: string;
|
|
22
24
|
title?: string;
|
|
23
25
|
description: string;
|
|
24
26
|
extra?: React.ReactNode;
|
|
25
|
-
button?: React.ReactElement<typeof ButtonPrimary>;
|
|
26
|
-
buttonLink?: React.ReactElement<typeof ButtonLink>;
|
|
27
|
+
button?: React.ReactElement<ButtonProps, typeof ButtonPrimary>;
|
|
28
|
+
buttonLink?: React.ReactElement<ButtonProps, typeof ButtonLink>;
|
|
27
29
|
children?: void;
|
|
28
30
|
'aria-label'?: string;
|
|
29
31
|
};
|
|
@@ -32,14 +34,14 @@ interface DataCardProps {
|
|
|
32
34
|
/**
|
|
33
35
|
* Typically a mistica-icons component element
|
|
34
36
|
*/
|
|
35
|
-
icon?: React.ReactElement
|
|
36
|
-
headline?: string | React.ReactElement<typeof Tag>;
|
|
37
|
+
icon?: React.ReactElement;
|
|
38
|
+
headline?: string | React.ReactElement<TagProps, typeof Tag>;
|
|
37
39
|
title: string;
|
|
38
40
|
subtitle?: string;
|
|
39
41
|
description: string;
|
|
40
42
|
extra?: React.ReactNode;
|
|
41
|
-
button?: React.ReactElement<typeof ButtonPrimary>;
|
|
42
|
-
buttonLink?: React.ReactElement<typeof ButtonLink>;
|
|
43
|
+
button?: React.ReactElement<ButtonProps, typeof ButtonPrimary>;
|
|
44
|
+
buttonLink?: React.ReactElement<ButtonLinkProps, typeof ButtonLink>;
|
|
43
45
|
children?: void;
|
|
44
46
|
/** "data-" prefix is automatically added. For example, use "testid" instead of "data-testid" */
|
|
45
47
|
dataAttributes?: DataAttributes;
|
package/dist/circle.d.ts
CHANGED
package/dist/dialog.d.ts
CHANGED
package/dist/double-field.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import CreditCardExpirationField from './credit-card-expiration-field';
|
|
3
|
+
import CvvField from './cvv-field';
|
|
4
|
+
import DateField from './date-field';
|
|
5
|
+
import DecimalField from './decimal-field';
|
|
6
|
+
import EmailField from './email-field';
|
|
7
|
+
import IntegerField from './integer-field';
|
|
8
|
+
import PasswordField from './password-field';
|
|
9
|
+
import PhoneNumberField from './phone-number-field';
|
|
10
|
+
import Select from './select';
|
|
11
|
+
import TextField from './text-field';
|
|
2
12
|
import type { TextFieldProps } from './text-field';
|
|
3
13
|
import type { SelectProps } from './select';
|
|
4
14
|
import type { CvvFieldProps } from './cvv-field';
|
|
@@ -9,7 +19,7 @@ import type { DateFieldProps } from './date-field';
|
|
|
9
19
|
import type { PasswordFieldProps } from './password-field';
|
|
10
20
|
import type { PhoneNumberFieldProps } from './phone-number-field';
|
|
11
21
|
import type { EmailFieldProps } from './email-field';
|
|
12
|
-
declare type Field = React.ReactElement<TextFieldProps> | React.ReactElement<SelectProps> | React.ReactElement<CvvFieldProps> | React.ReactElement<CreditCardExpirationFieldProps> | React.ReactElement<DecimalFieldProps> | React.ReactElement<IntegerFieldProps> | React.ReactElement<DateFieldProps> | React.ReactElement<PhoneNumberFieldProps> | React.ReactElement<PasswordFieldProps> | React.ReactElement<EmailFieldProps>;
|
|
22
|
+
declare type Field = React.ReactElement<TextFieldProps, typeof TextField> | React.ReactElement<SelectProps, typeof Select> | React.ReactElement<CvvFieldProps, typeof CvvField> | React.ReactElement<CreditCardExpirationFieldProps, typeof CreditCardExpirationField> | React.ReactElement<DecimalFieldProps, typeof DecimalField> | React.ReactElement<IntegerFieldProps, typeof IntegerField> | React.ReactElement<DateFieldProps, typeof DateField> | React.ReactElement<PhoneNumberFieldProps, typeof PhoneNumberField> | React.ReactElement<PasswordFieldProps, typeof PasswordField> | React.ReactElement<EmailFieldProps, typeof EmailField>;
|
|
13
23
|
declare type Props = {
|
|
14
24
|
fullWidth?: boolean;
|
|
15
25
|
children: Field | [Field, Field];
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
4
|
+
import CreditCardExpirationField from "./credit-card-expiration-field";
|
|
5
|
+
import CvvField from "./cvv-field";
|
|
6
|
+
import DateField from "./date-field";
|
|
7
|
+
import DecimalField from "./decimal-field";
|
|
8
|
+
import EmailField from "./email-field";
|
|
9
|
+
import IntegerField from "./integer-field";
|
|
10
|
+
import PasswordField from "./password-field";
|
|
11
|
+
import PhoneNumberField from "./phone-number-field";
|
|
12
|
+
import Select from "./select";
|
|
13
|
+
import TextField from "./text-field";
|
|
14
14
|
declare type Field =
|
|
15
|
-
| React.Element<
|
|
16
|
-
| React.Element<
|
|
17
|
-
| React.Element<
|
|
18
|
-
| React.Element<
|
|
19
|
-
| React.Element<
|
|
20
|
-
| React.Element<
|
|
21
|
-
| React.Element<
|
|
22
|
-
| React.Element<
|
|
23
|
-
| React.Element<
|
|
24
|
-
| React.Element<
|
|
15
|
+
| React.Element<typeof TextField>
|
|
16
|
+
| React.Element<typeof Select>
|
|
17
|
+
| React.Element<typeof CvvField>
|
|
18
|
+
| React.Element<typeof CreditCardExpirationField>
|
|
19
|
+
| React.Element<typeof DecimalField>
|
|
20
|
+
| React.Element<typeof IntegerField>
|
|
21
|
+
| React.Element<typeof DateField>
|
|
22
|
+
| React.Element<typeof PhoneNumberField>
|
|
23
|
+
| React.Element<typeof PasswordField>
|
|
24
|
+
| React.Element<typeof EmailField>;
|
|
25
25
|
declare type Props = {
|
|
26
26
|
fullWidth?: boolean,
|
|
27
27
|
children: Field | [Field, Field],
|
package/dist/empty-state.d.ts
CHANGED
package/dist/empty-state.js.flow
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonPrimary, ButtonSecondary, ButtonLink } from './button';
|
|
3
|
+
import type { ButtonProps, ButtonLinkProps } from './button';
|
|
3
4
|
declare type HapticFeedback = 'error' | 'success';
|
|
4
5
|
interface FeedbackProps {
|
|
5
6
|
title: string;
|
|
6
|
-
primaryButton?: React.ReactElement<typeof ButtonPrimary>;
|
|
7
|
-
secondaryButton?: React.ReactElement<typeof ButtonSecondary>;
|
|
8
|
-
link?: React.ReactElement<typeof ButtonLink>;
|
|
7
|
+
primaryButton?: React.ReactElement<ButtonProps, typeof ButtonPrimary>;
|
|
8
|
+
secondaryButton?: React.ReactElement<ButtonProps, typeof ButtonSecondary>;
|
|
9
|
+
link?: React.ReactElement<ButtonLinkProps, typeof ButtonLink>;
|
|
9
10
|
description?: string | Array<string>;
|
|
10
11
|
children?: React.ReactNode;
|
|
11
12
|
unstable_inlineInDesktop?: boolean;
|
package/dist/header.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import NavigationBreadcrumbs from './navigation-breadcrumbs';
|
|
3
3
|
import { ButtonPrimary, ButtonSecondary } from './button';
|
|
4
|
+
import type { ButtonProps } from './button';
|
|
4
5
|
import type { TextPresetProps } from './text';
|
|
6
|
+
import type { NavigationBreadcrumbsProps } from './navigation-breadcrumbs';
|
|
5
7
|
declare type OverridableTextProps = {
|
|
6
8
|
color?: TextPresetProps['color'];
|
|
7
9
|
textDecoration?: TextPresetProps['textDecoration'];
|
|
@@ -15,8 +17,8 @@ declare type HeaderProps = {
|
|
|
15
17
|
title?: string;
|
|
16
18
|
preamount?: RichText;
|
|
17
19
|
amount?: string;
|
|
18
|
-
button?: React.ReactElement<typeof ButtonPrimary>;
|
|
19
|
-
secondaryButton?: React.ReactElement<typeof ButtonSecondary>;
|
|
20
|
+
button?: React.ReactElement<ButtonProps, typeof ButtonPrimary>;
|
|
21
|
+
secondaryButton?: React.ReactElement<ButtonProps, typeof ButtonSecondary>;
|
|
20
22
|
subtitle?: RichText;
|
|
21
23
|
isErrorAmount?: boolean;
|
|
22
24
|
};
|
|
@@ -24,12 +26,12 @@ export declare const Header: React.FC<HeaderProps>;
|
|
|
24
26
|
declare type MainSectionHeaderProps = {
|
|
25
27
|
title: string;
|
|
26
28
|
description?: string;
|
|
27
|
-
button?: React.ReactElement<typeof ButtonPrimary> | React.ReactElement<typeof ButtonSecondary>;
|
|
29
|
+
button?: React.ReactElement<ButtonProps, typeof ButtonPrimary> | React.ReactElement<ButtonProps, typeof ButtonSecondary>;
|
|
28
30
|
};
|
|
29
31
|
export declare const MainSectionHeader: React.FC<MainSectionHeaderProps>;
|
|
30
32
|
declare type HeaderLayoutProps = {
|
|
31
33
|
isInverse?: boolean;
|
|
32
|
-
breadcrumbs?: React.ReactElement<typeof NavigationBreadcrumbs>;
|
|
34
|
+
breadcrumbs?: React.ReactElement<NavigationBreadcrumbsProps, typeof NavigationBreadcrumbs>;
|
|
33
35
|
header: React.ReactNode;
|
|
34
36
|
extra?: React.ReactNode;
|
|
35
37
|
sideBySideExtraOnDesktop?: boolean;
|
|
@@ -38,7 +40,7 @@ declare type HeaderLayoutProps = {
|
|
|
38
40
|
export declare const HeaderLayout: React.FC<HeaderLayoutProps>;
|
|
39
41
|
declare type MainSectionHeaderLayoutProps = {
|
|
40
42
|
isInverse?: boolean;
|
|
41
|
-
children: React.ReactElement<typeof MainSectionHeader>;
|
|
43
|
+
children: React.ReactElement<MainSectionHeaderProps, typeof MainSectionHeader>;
|
|
42
44
|
};
|
|
43
45
|
export declare const MainSectionHeaderLayout: React.FC<MainSectionHeaderLayoutProps>;
|
|
44
46
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonLink } from './button';
|
|
3
3
|
import type { TrackingEvent } from './utils/types';
|
|
4
|
-
import type { ButtonElement } from './button';
|
|
4
|
+
import type { ButtonElement, ButtonLinkProps } from './button';
|
|
5
5
|
interface CommonProps {
|
|
6
6
|
title: string;
|
|
7
7
|
description: string;
|
|
@@ -21,7 +21,7 @@ interface BasicProps extends CommonProps {
|
|
|
21
21
|
href?: undefined;
|
|
22
22
|
}
|
|
23
23
|
interface ButtonProps extends CommonProps {
|
|
24
|
-
button?: ButtonElement | React.ReactElement<typeof ButtonLink> | null;
|
|
24
|
+
button?: ButtonElement | React.ReactElement<ButtonLinkProps, typeof ButtonLink> | null;
|
|
25
25
|
onPress?: undefined;
|
|
26
26
|
to?: undefined;
|
|
27
27
|
href?: undefined;
|
package/dist/icon-button.js
CHANGED
|
@@ -11,8 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _touchable = _interopRequireDefault(require("./touchable"));
|
|
13
13
|
|
|
14
|
-
var _dom = require("./utils/dom");
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -133,14 +131,14 @@ var IconButton = function IconButton(props) {
|
|
|
133
131
|
iconSize = props.iconSize,
|
|
134
132
|
_props$size = props.size,
|
|
135
133
|
size = _props$size === void 0 ? ICON_SIZE_1 : _props$size;
|
|
136
|
-
|
|
137
|
-
var commonProps = _objectSpread({
|
|
134
|
+
var commonProps = {
|
|
138
135
|
className: props.className || '',
|
|
139
136
|
disabled: props.disabled,
|
|
140
137
|
style: _objectSpread(_objectSpread({}, getButtonStyle(icon, size, backgroundColor, iconSize, props.disabled)), props.style),
|
|
141
138
|
trackingEvent: props.trackingEvent,
|
|
142
|
-
'aria-live': props['aria-live']
|
|
143
|
-
|
|
139
|
+
'aria-live': props['aria-live'],
|
|
140
|
+
dataAttributes: props.dataAttributes
|
|
141
|
+
};
|
|
144
142
|
|
|
145
143
|
if (props.href) {
|
|
146
144
|
return /*#__PURE__*/React.createElement(_touchable.default, _extends({}, commonProps, {
|
package/dist/list.js
CHANGED
|
@@ -149,22 +149,17 @@ function _defineProperty(obj, key, value) {
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
var useStyles = (0, _jss.createUseStyles)(function (_ref) {
|
|
152
|
-
var colors = _ref.colors
|
|
152
|
+
var colors = _ref.colors,
|
|
153
|
+
mq = _ref.mq;
|
|
153
154
|
return {
|
|
154
|
-
hover: {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
'@media (pointer: fine), (pointer: none)': {
|
|
160
|
-
'&:hover': {
|
|
161
|
-
background: function background(_ref2) {
|
|
162
|
-
var isInverse = _ref2.isInverse;
|
|
163
|
-
return isInverse ? 'initial' : colors.backgroundAlternative;
|
|
164
|
-
}
|
|
155
|
+
hover: _defineProperty({}, mq.supportsHover, {
|
|
156
|
+
'&:hover': {
|
|
157
|
+
background: function background(_ref2) {
|
|
158
|
+
var isInverse = _ref2.isInverse;
|
|
159
|
+
return isInverse ? 'initial' : colors.backgroundAlternative;
|
|
165
160
|
}
|
|
166
161
|
}
|
|
167
|
-
},
|
|
162
|
+
}),
|
|
168
163
|
rowContent: {
|
|
169
164
|
width: '100%',
|
|
170
165
|
cursor: 'pointer'
|
|
@@ -526,7 +521,7 @@ var RowContent = function RowContent(props) {
|
|
|
526
521
|
|
|
527
522
|
return /*#__PURE__*/React.createElement(_box.default, {
|
|
528
523
|
paddingX: 16,
|
|
529
|
-
className: (0, _classnames.default)(
|
|
524
|
+
className: (0, _classnames.default)(classes.rowContent, classes.hover, classes.hoverDisabled),
|
|
530
525
|
role: role
|
|
531
526
|
}, props.right ? renderContent({
|
|
532
527
|
type: 'custom',
|
package/dist/navigation-bar.d.ts
CHANGED
|
@@ -31,14 +31,23 @@ declare type MainNavigationBarProps = {
|
|
|
31
31
|
topFixed?: boolean;
|
|
32
32
|
};
|
|
33
33
|
export declare const MainNavigationBar: React.FC<MainNavigationBarProps>;
|
|
34
|
-
|
|
34
|
+
interface NavigationBarCommonProps {
|
|
35
35
|
isInverse?: boolean;
|
|
36
36
|
onBack?: () => void;
|
|
37
37
|
title?: string;
|
|
38
38
|
right?: React.ReactElement;
|
|
39
|
-
|
|
39
|
+
withBorder?: boolean;
|
|
40
40
|
children?: undefined;
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
|
+
interface NavigationBarTopFixedProps extends NavigationBarCommonProps {
|
|
43
|
+
topFixed?: true;
|
|
44
|
+
paddingX?: undefined;
|
|
45
|
+
}
|
|
46
|
+
interface NavigationBarNotFixedProps extends NavigationBarCommonProps {
|
|
47
|
+
topFixed: false;
|
|
48
|
+
paddingX?: number;
|
|
49
|
+
}
|
|
50
|
+
declare type NavigationBarProps = NavigationBarTopFixedProps | NavigationBarNotFixedProps;
|
|
42
51
|
export declare const NavigationBar: React.FC<NavigationBarProps>;
|
|
43
52
|
declare type FunnelNavigationBarProps = {
|
|
44
53
|
isInverse?: boolean;
|
|
@@ -48,7 +57,10 @@ declare type FunnelNavigationBarProps = {
|
|
|
48
57
|
children?: undefined;
|
|
49
58
|
};
|
|
50
59
|
export declare const FunnelNavigationBar: React.FC<FunnelNavigationBarProps>;
|
|
51
|
-
|
|
60
|
+
declare type NavigationBarActionGroupProps = {
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
};
|
|
63
|
+
export declare const NavigationBarActionGroup: React.FC<NavigationBarActionGroupProps>;
|
|
52
64
|
declare type NavigationBarActionProps = TouchableProps;
|
|
53
65
|
export declare const NavigationBarAction: React.FC<NavigationBarActionProps>;
|
|
54
66
|
export {};
|