@transferwise/components 0.0.0-experimental-531e89c → 0.0.0-experimental-abdaccb
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/build/es/no-polyfill/actionButton/ActionButton.js +1 -1
- package/build/es/no-polyfill/actionButton/ActionButton.spec.js +1 -1
- package/build/es/no-polyfill/actionButton/ActionButton.story.js +1 -1
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +2 -1
- package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -1
- package/build/es/no-polyfill/emphasis/Emphasis.story.js +1 -0
- package/build/es/no-polyfill/markdown/Markdown.story.js +1 -0
- package/build/es/polyfill/actionButton/ActionButton.js +1 -1
- package/build/es/polyfill/actionButton/ActionButton.spec.js +1 -1
- package/build/es/polyfill/actionButton/ActionButton.story.js +1 -1
- package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +2 -1
- package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -1
- package/build/es/polyfill/emphasis/Emphasis.story.js +1 -0
- package/build/es/polyfill/markdown/Markdown.story.js +1 -0
- package/build/main.css +1 -1
- package/build/styles/actionButton/ActionButton.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/snackbar/Snackbar.css +1 -1
- package/build/types/actionButton/ActionButton.d.ts +0 -3
- package/build/types/actionButton/ActionButton.story.d.ts +1 -1
- package/build/types/button/Button.story.d.ts +24 -24
- package/build/types/checkboxButton/CheckboxButton.story.d.ts +14 -4
- package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +4 -2
- package/build/types/emphasis/Emphasis.story.d.ts +13 -0
- package/build/types/markdown/Markdown.story.d.ts +39 -0
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +1 -1
- package/build/types/test-utils/VariantDecorator.d.ts +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
.snackbar{bottom:0;left:0;position:fixed;right:0;text-align:center;z-index:1060}[dir=rtl] .snackbar{left:auto;left:0;right:0}.snackbar__text{align-items:center;background:#37517e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.25);color:#fff;display:inline-flex;font-size:.875rem;font-size:var(--font-size-14);justify-content:space-between;margin:0 16px;margin:0 var(--size-16);padding:8px 16px;padding:var(--size-8) var(--size-16);text-align:left;transition:.4s cubic-bezier(.215,.61,.355,1);width:calc(100% - 32px);width:calc(100% - var(--size-32))}[dir=rtl] .snackbar__text{text-align:right}.np-theme-personal .snackbar__text{background:var(--color-contrast-theme);border-radius:10px;border-radius:var(--radius-small);box-shadow:0 2px 4px 0 rgba(69,71,69,.35);color:var(--color-contrast-overlay);position:relative}.np-theme-personal .snackbar__text:after{background-color:#86a7bd1a;background-color:var(--color-background-neutral);border-radius:inherit;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.np-theme-personal--dark .snackbar__text,.np-theme-personal--forest-green .snackbar__text{box-shadow:none}@media (min-width:576px){.snackbar__text{max-width:600px;width:auto}}.snackbar__text__action{flex-shrink:0;margin-left:16px;margin-left:var(--size-16)}[dir=rtl] .snackbar__text__action{margin-left:0;margin-right:16px;margin-right:var(--size-16)}.snackbar__text-container-enter,.snackbar__text-container-exit{transform:translateY(calc(100% + 10px))}.snackbar__text-container-enter-active{transform:translateY(-16px);transform:translateY(calc(-16px - env(safe-area-inset-bottom)))}@media (min-width:576px){.snackbar__text-container-enter-active{transform:translateY(-24px)}}
|
|
1
|
+
.snackbar{bottom:0;left:0;position:fixed;right:0;text-align:center;z-index:1060}[dir=rtl] .snackbar{left:auto;left:0;right:0}.snackbar__text{align-items:center;background:#37517e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.25);color:#fff;display:inline-flex;font-size:.875rem;font-size:var(--font-size-14);justify-content:space-between;margin:0 16px;margin:0 var(--size-16);padding:8px 16px;padding:var(--size-8) var(--size-16);text-align:left;transition:.4s cubic-bezier(.215,.61,.355,1);width:calc(100% - 32px);width:calc(100% - var(--size-32))}[dir=rtl] .snackbar__text{text-align:right}.np-theme-personal .snackbar__text{background:var(--color-contrast-theme);border-radius:10px;border-radius:var(--radius-small);box-shadow:0 2px 4px 0 rgba(69,71,69,.35);color:var(--color-contrast-overlay);position:relative}.np-theme-personal .snackbar__text:after{background-color:#86a7bd1a;background-color:var(--color-background-neutral);border-radius:inherit;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.np-theme-personal--dark .snackbar__text,.np-theme-personal--forest-green .snackbar__text{box-shadow:none}@media (min-width:576px){.snackbar__text{max-width:600px;width:auto}}.snackbar__text__action{color:#00b9ff;flex-shrink:0;margin-left:16px;margin-left:var(--size-16)}[dir=rtl] .snackbar__text__action{margin-left:0;margin-right:16px;margin-right:var(--size-16)}.snackbar__text-container-enter,.snackbar__text-container-exit{transform:translateY(calc(100% + 10px))}.snackbar__text-container-enter-active{transform:translateY(-16px);transform:translateY(calc(-16px - env(safe-area-inset-bottom)))}@media (min-width:576px){.snackbar__text-container-enter-active{transform:translateY(-24px)}}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import { PriorityPrimary, PrioritySecondary } from '../common';
|
|
3
2
|
export type ActionButtonProps = {
|
|
4
|
-
priority?: PriorityPrimary | PrioritySecondary;
|
|
5
3
|
/**
|
|
6
4
|
* @deprecated use `children` instead
|
|
7
5
|
*/
|
|
8
6
|
text?: string;
|
|
9
7
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
10
8
|
declare const ActionButton: import("react").ForwardRefExoticComponent<{
|
|
11
|
-
priority?: "primary" | "secondary" | undefined;
|
|
12
9
|
/**
|
|
13
10
|
* @deprecated use `children` instead
|
|
14
11
|
*/
|
|
@@ -3,7 +3,6 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
import ActionButton from './ActionButton';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
-
priority?: "primary" | "secondary" | undefined;
|
|
7
6
|
text?: string | undefined;
|
|
8
7
|
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
8
|
title: string;
|
|
@@ -12,4 +11,5 @@ declare const _default: {
|
|
|
12
11
|
export default _default;
|
|
13
12
|
type Story = StoryObj<typeof ActionButton>;
|
|
14
13
|
export declare const Basic: Story;
|
|
14
|
+
export declare const WithIcon: Story;
|
|
15
15
|
export declare const Disabled: Story;
|
|
@@ -25,7 +25,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
|
|
|
25
25
|
block?: boolean | undefined;
|
|
26
26
|
disabled?: boolean | undefined;
|
|
27
27
|
loading?: boolean | undefined;
|
|
28
|
-
type?: "link" | "primary" | "
|
|
28
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
29
29
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
30
30
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
31
31
|
form?: string | undefined;
|
|
@@ -310,7 +310,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
|
|
|
310
310
|
block?: boolean | undefined;
|
|
311
311
|
disabled?: boolean | undefined;
|
|
312
312
|
loading?: boolean | undefined;
|
|
313
|
-
type?: "link" | "primary" | "
|
|
313
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
314
314
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
315
315
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
316
316
|
download?: any;
|
|
@@ -616,7 +616,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
|
|
|
616
616
|
key?: import("react").Key | null | undefined;
|
|
617
617
|
disabled?: boolean | undefined;
|
|
618
618
|
placeholder?: string | undefined;
|
|
619
|
-
type?: "link" | "primary" | "
|
|
619
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
620
620
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
621
621
|
defaultChecked?: boolean | undefined;
|
|
622
622
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -873,8 +873,8 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
|
|
|
873
873
|
as?: undefined;
|
|
874
874
|
download?: any;
|
|
875
875
|
loading?: boolean | undefined;
|
|
876
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
877
876
|
block?: boolean | undefined;
|
|
877
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
878
878
|
} | {
|
|
879
879
|
href?: string | undefined;
|
|
880
880
|
hrefLang?: string | undefined;
|
|
@@ -901,7 +901,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
|
|
|
901
901
|
key?: import("react").Key | null | undefined;
|
|
902
902
|
disabled?: boolean | undefined;
|
|
903
903
|
placeholder?: string | undefined;
|
|
904
|
-
type?: "link" | "primary" | "
|
|
904
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
905
905
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
906
906
|
defaultChecked?: boolean | undefined;
|
|
907
907
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -1158,15 +1158,15 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
|
|
|
1158
1158
|
as?: undefined;
|
|
1159
1159
|
download?: any;
|
|
1160
1160
|
loading?: boolean | undefined;
|
|
1161
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
1162
1161
|
block?: boolean | undefined;
|
|
1162
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
1163
1163
|
}>;
|
|
1164
1164
|
export declare const Variants: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
1165
1165
|
as?: undefined;
|
|
1166
1166
|
block?: boolean | undefined;
|
|
1167
1167
|
disabled?: boolean | undefined;
|
|
1168
1168
|
loading?: boolean | undefined;
|
|
1169
|
-
type?: "link" | "primary" | "
|
|
1169
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
1170
1170
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
1171
1171
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
1172
1172
|
form?: string | undefined;
|
|
@@ -1451,7 +1451,7 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
|
|
|
1451
1451
|
block?: boolean | undefined;
|
|
1452
1452
|
disabled?: boolean | undefined;
|
|
1453
1453
|
loading?: boolean | undefined;
|
|
1454
|
-
type?: "link" | "primary" | "
|
|
1454
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
1455
1455
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
1456
1456
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
1457
1457
|
download?: any;
|
|
@@ -1757,7 +1757,7 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
|
|
|
1757
1757
|
key?: import("react").Key | null | undefined;
|
|
1758
1758
|
disabled?: boolean | undefined;
|
|
1759
1759
|
placeholder?: string | undefined;
|
|
1760
|
-
type?: "link" | "primary" | "
|
|
1760
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
1761
1761
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
1762
1762
|
defaultChecked?: boolean | undefined;
|
|
1763
1763
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -2014,8 +2014,8 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
|
|
|
2014
2014
|
as?: undefined;
|
|
2015
2015
|
download?: any;
|
|
2016
2016
|
loading?: boolean | undefined;
|
|
2017
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
2018
2017
|
block?: boolean | undefined;
|
|
2018
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
2019
2019
|
} | {
|
|
2020
2020
|
href?: string | undefined;
|
|
2021
2021
|
hrefLang?: string | undefined;
|
|
@@ -2042,7 +2042,7 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
|
|
|
2042
2042
|
key?: import("react").Key | null | undefined;
|
|
2043
2043
|
disabled?: boolean | undefined;
|
|
2044
2044
|
placeholder?: string | undefined;
|
|
2045
|
-
type?: "link" | "primary" | "
|
|
2045
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
2046
2046
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
2047
2047
|
defaultChecked?: boolean | undefined;
|
|
2048
2048
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -2299,15 +2299,15 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
|
|
|
2299
2299
|
as?: undefined;
|
|
2300
2300
|
download?: any;
|
|
2301
2301
|
loading?: boolean | undefined;
|
|
2302
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
2303
2302
|
block?: boolean | undefined;
|
|
2303
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
2304
2304
|
}>;
|
|
2305
2305
|
export declare const SocialMedia: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
2306
2306
|
as?: undefined;
|
|
2307
2307
|
block?: boolean | undefined;
|
|
2308
2308
|
disabled?: boolean | undefined;
|
|
2309
2309
|
loading?: boolean | undefined;
|
|
2310
|
-
type?: "link" | "primary" | "
|
|
2310
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
2311
2311
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
2312
2312
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
2313
2313
|
form?: string | undefined;
|
|
@@ -2592,7 +2592,7 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
|
|
|
2592
2592
|
block?: boolean | undefined;
|
|
2593
2593
|
disabled?: boolean | undefined;
|
|
2594
2594
|
loading?: boolean | undefined;
|
|
2595
|
-
type?: "link" | "primary" | "
|
|
2595
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
2596
2596
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
2597
2597
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
2598
2598
|
download?: any;
|
|
@@ -2898,7 +2898,7 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
|
|
|
2898
2898
|
key?: import("react").Key | null | undefined;
|
|
2899
2899
|
disabled?: boolean | undefined;
|
|
2900
2900
|
placeholder?: string | undefined;
|
|
2901
|
-
type?: "link" | "primary" | "
|
|
2901
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
2902
2902
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
2903
2903
|
defaultChecked?: boolean | undefined;
|
|
2904
2904
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -3155,8 +3155,8 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
|
|
|
3155
3155
|
as?: undefined;
|
|
3156
3156
|
download?: any;
|
|
3157
3157
|
loading?: boolean | undefined;
|
|
3158
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
3159
3158
|
block?: boolean | undefined;
|
|
3159
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
3160
3160
|
} | {
|
|
3161
3161
|
href?: string | undefined;
|
|
3162
3162
|
hrefLang?: string | undefined;
|
|
@@ -3183,7 +3183,7 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
|
|
|
3183
3183
|
key?: import("react").Key | null | undefined;
|
|
3184
3184
|
disabled?: boolean | undefined;
|
|
3185
3185
|
placeholder?: string | undefined;
|
|
3186
|
-
type?: "link" | "primary" | "
|
|
3186
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
3187
3187
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
3188
3188
|
defaultChecked?: boolean | undefined;
|
|
3189
3189
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -3440,15 +3440,15 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
|
|
|
3440
3440
|
as?: undefined;
|
|
3441
3441
|
download?: any;
|
|
3442
3442
|
loading?: boolean | undefined;
|
|
3443
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
3444
3443
|
block?: boolean | undefined;
|
|
3444
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
3445
3445
|
}>;
|
|
3446
3446
|
export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
3447
3447
|
as?: undefined;
|
|
3448
3448
|
block?: boolean | undefined;
|
|
3449
3449
|
disabled?: boolean | undefined;
|
|
3450
3450
|
loading?: boolean | undefined;
|
|
3451
|
-
type?: "link" | "primary" | "
|
|
3451
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
3452
3452
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
3453
3453
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
3454
3454
|
form?: string | undefined;
|
|
@@ -3733,7 +3733,7 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
|
|
|
3733
3733
|
block?: boolean | undefined;
|
|
3734
3734
|
disabled?: boolean | undefined;
|
|
3735
3735
|
loading?: boolean | undefined;
|
|
3736
|
-
type?: "link" | "primary" | "
|
|
3736
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
3737
3737
|
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
3738
3738
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
3739
3739
|
download?: any;
|
|
@@ -4039,7 +4039,7 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
|
|
|
4039
4039
|
key?: import("react").Key | null | undefined;
|
|
4040
4040
|
disabled?: boolean | undefined;
|
|
4041
4041
|
placeholder?: string | undefined;
|
|
4042
|
-
type?: "link" | "primary" | "
|
|
4042
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
4043
4043
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
4044
4044
|
defaultChecked?: boolean | undefined;
|
|
4045
4045
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -4296,8 +4296,8 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
|
|
|
4296
4296
|
as?: undefined;
|
|
4297
4297
|
download?: any;
|
|
4298
4298
|
loading?: boolean | undefined;
|
|
4299
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
4300
4299
|
block?: boolean | undefined;
|
|
4300
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
4301
4301
|
} | {
|
|
4302
4302
|
href?: string | undefined;
|
|
4303
4303
|
hrefLang?: string | undefined;
|
|
@@ -4324,7 +4324,7 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
|
|
|
4324
4324
|
key?: import("react").Key | null | undefined;
|
|
4325
4325
|
disabled?: boolean | undefined;
|
|
4326
4326
|
placeholder?: string | undefined;
|
|
4327
|
-
type?: "link" | "primary" | "
|
|
4327
|
+
type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
|
|
4328
4328
|
onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
|
|
4329
4329
|
defaultChecked?: boolean | undefined;
|
|
4330
4330
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -4581,6 +4581,6 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
|
|
|
4581
4581
|
as?: undefined;
|
|
4582
4582
|
download?: any;
|
|
4583
4583
|
loading?: boolean | undefined;
|
|
4584
|
-
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
4585
4584
|
block?: boolean | undefined;
|
|
4585
|
+
priority?: "primary" | "secondary" | "tertiary" | undefined;
|
|
4586
4586
|
}>;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
3
|
import CheckboxButton from './CheckboxButton';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<import("./CheckboxButton").CheckboxButtonProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
title: string;
|
|
7
|
+
tags: string[];
|
|
8
|
+
args: {
|
|
9
|
+
onBlur: import("@storybook/addon-actions/*").HandlerFunction;
|
|
10
|
+
onClick: import("@storybook/addon-actions/*").HandlerFunction;
|
|
11
|
+
onFocus: import("@storybook/addon-actions/*").HandlerFunction;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type Story = StoryObj<typeof CheckboxButton>;
|
|
16
|
+
export declare const Basic: Story;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
2
|
import CriticalCommsBanner from '.';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
component: typeof CriticalCommsBanner;
|
|
5
5
|
title: string;
|
|
6
|
+
tags: string[];
|
|
6
7
|
};
|
|
7
8
|
export default _default;
|
|
8
|
-
|
|
9
|
+
type Story = StoryObj<typeof CriticalCommsBanner>;
|
|
10
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Emphasis from './Emphasis';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: ({ text }: {
|
|
6
|
+
text?: string | undefined;
|
|
7
|
+
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
type Story = StoryObj<typeof Emphasis>;
|
|
13
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Markdown from './Markdown';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: {
|
|
6
|
+
({ as: Element, children, className, allowList, blockList, config }: {
|
|
7
|
+
as: any;
|
|
8
|
+
children: any;
|
|
9
|
+
className: any;
|
|
10
|
+
allowList: any;
|
|
11
|
+
blockList: any;
|
|
12
|
+
config: any;
|
|
13
|
+
}): JSX.Element | null;
|
|
14
|
+
propTypes: {
|
|
15
|
+
children: any;
|
|
16
|
+
as: any;
|
|
17
|
+
className: any;
|
|
18
|
+
allowList: any;
|
|
19
|
+
blockList: any;
|
|
20
|
+
config: any;
|
|
21
|
+
};
|
|
22
|
+
defaultProps: {
|
|
23
|
+
as: string;
|
|
24
|
+
className: undefined;
|
|
25
|
+
allowList: null;
|
|
26
|
+
blockList: null;
|
|
27
|
+
config: {
|
|
28
|
+
link: {
|
|
29
|
+
target: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
title: string;
|
|
35
|
+
tags: string[];
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
type Story = StoryObj<typeof Markdown>;
|
|
39
|
+
export declare const Basic: Story;
|