@transferwise/components 46.125.0 → 46.127.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/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/common/locale/index.js +13 -0
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs +13 -1
- package/build/common/locale/index.mjs.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +31 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +32 -2
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
- package/build/field/Field.js +1 -0
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs +1 -0
- package/build/field/Field.mjs.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +2 -1
- package/build/index.mjs.map +1 -1
- package/build/inputs/Input.js.map +1 -1
- package/build/inputs/Input.mjs.map +1 -1
- package/build/inputs/SearchInput.js.map +1 -1
- package/build/inputs/SearchInput.mjs.map +1 -1
- package/build/inputs/SelectInput.js.map +1 -1
- package/build/inputs/SelectInput.mjs.map +1 -1
- package/build/inputs/TextArea.js.map +1 -1
- package/build/inputs/TextArea.mjs.map +1 -1
- package/build/listItem/ListItem.js +2 -2
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs +2 -2
- package/build/listItem/ListItem.mjs.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.js +6 -4
- package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.mjs +7 -2
- package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
- package/build/main.css +52 -21
- package/build/moneyInput/MoneyInput.js +6 -1
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs +6 -1
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/prompt/ActionPrompt/ActionPrompt.js +27 -4
- package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
- package/build/prompt/ActionPrompt/ActionPrompt.mjs +27 -4
- package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
- package/build/prompt/InfoPrompt/InfoPrompt.js +113 -0
- package/build/prompt/InfoPrompt/InfoPrompt.js.map +1 -0
- package/build/prompt/InfoPrompt/InfoPrompt.mjs +111 -0
- package/build/prompt/InfoPrompt/InfoPrompt.mjs.map +1 -0
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/radioOption/RadioOption.mjs.map +1 -1
- package/build/slidingPanel/SlidingPanel.js.map +1 -1
- package/build/slidingPanel/SlidingPanel.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.js +2 -0
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.mjs +2 -0
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/styles/main.css +52 -21
- package/build/styles/prompt/InfoPrompt/InfoPrompt.css +31 -0
- package/build/styles/sentimentSurface/SentimentSurface.css +21 -21
- package/build/table/TableCell.js.map +1 -1
- package/build/table/TableCell.mjs.map +1 -1
- package/build/typeahead/Typeahead.js +1 -0
- package/build/typeahead/Typeahead.js.map +1 -1
- package/build/typeahead/Typeahead.mjs +1 -0
- package/build/typeahead/Typeahead.mjs.map +1 -1
- package/build/types/avatarView/AvatarView.d.ts +1 -1
- package/build/types/avatarView/AvatarView.d.ts.map +1 -1
- package/build/types/common/locale/index.d.ts +8 -0
- package/build/types/common/locale/index.d.ts.map +1 -1
- package/build/types/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/inputs/Input.d.ts.map +1 -1
- package/build/types/inputs/SearchInput.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/TextArea.d.ts.map +1 -1
- package/build/types/listItem/ListItem.d.ts +1 -1
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts +2 -3
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveAnchor/PrimitiveAnchor.types.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveButton/PrimitiveButton.types.d.ts.map +1 -1
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +4 -2
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
- package/build/types/prompt/InfoPrompt/InfoPrompt.d.ts +56 -0
- package/build/types/prompt/InfoPrompt/InfoPrompt.d.ts.map +1 -0
- package/build/types/prompt/InfoPrompt/index.d.ts +3 -0
- package/build/types/prompt/InfoPrompt/index.d.ts.map +1 -0
- package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts +5 -5
- package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -1
- package/build/types/prompt/index.d.ts +2 -0
- package/build/types/prompt/index.d.ts.map +1 -1
- package/build/types/radioOption/RadioOption.d.ts.map +1 -1
- package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -1
- package/build/types/statusIcon/StatusIcon.d.ts +2 -1
- package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
- package/build/types/table/TableCell.d.ts.map +1 -1
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/package.json +3 -3
- package/src/accordion/Accordion.test.js +0 -6
- package/src/accordion/AccordionItem/AccordionItem.test.js +0 -10
- package/src/actionButton/ActionButton.test.tsx +0 -4
- package/src/avatarLayout/AvatarLayout.story.tsx +3 -3
- package/src/avatarView/AvatarView.story.tsx +29 -24
- package/src/avatarView/AvatarView.tsx +1 -1
- package/src/avatarWrapper/AvatarWrapper.test.tsx +0 -53
- package/src/checkbox/Checkbox.test.tsx +0 -5
- package/src/chevron/Chevron.test.tsx +0 -7
- package/src/chips/Chips.test.tsx +0 -8
- package/src/common/RadioButton/RadioButton.test.tsx +0 -18
- package/src/common/bottomSheet/BottomSheet.test.story.tsx +98 -0
- package/src/common/bottomSheet/BottomSheet.test.tsx +0 -9
- package/src/common/card/Card.test.tsx +0 -6
- package/src/common/closeButton/CloseButton.test.tsx +0 -4
- package/src/common/locale/index.test.ts +36 -1
- package/src/common/locale/index.ts +13 -0
- package/src/common/panel/Panel.test.tsx +0 -6
- package/src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx +5 -1
- package/src/flowNavigation/FlowNavigation.test.js +0 -10
- package/src/index.ts +3 -1
- package/src/inputs/Input.tsx +8 -9
- package/src/inputs/SearchInput.tsx +8 -9
- package/src/inputs/SelectInput.test.story.tsx +86 -0
- package/src/inputs/SelectInput.tsx +1 -1
- package/src/inputs/TextArea.tsx +6 -7
- package/src/listItem/ListItem.tsx +2 -2
- package/src/listItem/Prompt/ListItemPrompt.story.tsx +71 -9
- package/src/listItem/Prompt/ListItemPrompt.test.tsx +31 -0
- package/src/listItem/Prompt/ListItemPrompt.tsx +8 -2
- package/src/logo/Logo.story.tsx +24 -5
- package/src/main.css +52 -21
- package/src/main.less +2 -1
- package/src/moneyInput/MoneyInput.test.story.tsx +104 -0
- package/src/moneyInput/MoneyInput.tsx +20 -2
- package/src/overlayHeader/OverlayHeader.test.tsx +0 -3
- package/src/popover/Popover.test.tsx +0 -25
- package/src/primitives/PrimitiveAnchor/PrimitiveAnchor.types.ts +1 -3
- package/src/primitives/PrimitiveButton/PrimitiveButton.types.ts +1 -3
- package/src/promoCard/PromoCard.test.tsx +0 -6
- package/src/promoCard/PromoCardGroup.test.tsx +0 -5
- package/src/prompt/ActionPrompt/ActionPrompt.accessibility.docs.mdx +65 -0
- package/src/prompt/ActionPrompt/ActionPrompt.less +1 -1
- package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +4 -1
- package/src/prompt/ActionPrompt/ActionPrompt.test.story.tsx +147 -0
- package/src/prompt/ActionPrompt/ActionPrompt.test.tsx +2 -7
- package/src/prompt/ActionPrompt/ActionPrompt.tsx +48 -7
- package/src/prompt/InfoPrompt/InfoPrompt.css +31 -0
- package/src/prompt/InfoPrompt/InfoPrompt.less +37 -0
- package/src/prompt/InfoPrompt/InfoPrompt.story.tsx +312 -0
- package/src/prompt/InfoPrompt/InfoPrompt.test.story.tsx +246 -0
- package/src/prompt/InfoPrompt/InfoPrompt.test.tsx +224 -0
- package/src/prompt/InfoPrompt/InfoPrompt.tsx +148 -0
- package/src/prompt/InfoPrompt/index.ts +2 -0
- package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +13 -10
- package/src/prompt/InlinePrompt/InlinePrompt.test.tsx +13 -1
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.less +1 -1
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.tsx +5 -5
- package/src/prompt/index.ts +5 -0
- package/src/radioOption/RadioOption.tsx +2 -1
- package/src/sentimentSurface/SentimentSurface.css +21 -21
- package/src/sentimentSurface/SentimentSurface.less +13 -13
- package/src/sentimentSurface/SentimentSurface.story.tsx +1 -1
- package/src/sentimentSurface/SentimentSurface.test.story.tsx +48 -1
- package/src/slidingPanel/SlidingPanel.tsx +4 -2
- package/src/ssr.test.tsx +2 -0
- package/src/statusIcon/StatusIcon.tsx +8 -1
- package/src/table/TableCell.tsx +1 -3
- package/src/tile/Tile.test.tsx +0 -10
- package/src/tooltip/Tooltip.test.tsx +0 -10
- package/src/withDisplayFormat/WithDisplayFormat.tsx +13 -14
- package/src/accordion/AccordionItem/__snapshots__/AccordionItem.test.js.snap +0 -124
- package/src/accordion/__snapshots__/Accordion.test.js.snap +0 -3
- package/src/actionButton/__snapshots__/ActionButton.test.tsx.snap +0 -12
- package/src/avatarWrapper/__snapshots__/AvatarWrapper.test.tsx.snap +0 -156
- package/src/checkbox/__snapshots__/Checkbox.test.tsx.snap +0 -40
- package/src/chevron/__snapshots__/Chevron.test.tsx.snap +0 -24
- package/src/chips/__snapshots__/Chips.test.tsx.snap +0 -153
- package/src/common/RadioButton/__snapshots__/RadioButton.test.tsx.snap +0 -58
- package/src/common/bottomSheet/__snapshots__/BottomSheet.test.tsx.snap +0 -80
- package/src/common/card/__snapshots__/Card.test.tsx.snap +0 -10
- package/src/common/closeButton/__snapshots__/CloseButton.test.tsx.snap +0 -30
- package/src/common/flowHeader/FlowHeader.test.tsx +0 -22
- package/src/common/flowHeader/__snapshots__/FlowHeader.test.tsx.snap +0 -33
- package/src/common/panel/__snapshots__/Panel.test.tsx.snap +0 -3
- package/src/flowNavigation/__snapshots__/FlowNavigation.test.js.snap +0 -262
- package/src/logo/Logo.test.tsx +0 -55
- package/src/logo/__snapshots__/Logo.test.tsx.snap +0 -281
- package/src/overlayHeader/__snapshots__/OverlayHeader.test.tsx.snap +0 -65
- package/src/popover/__snapshots__/Popover.test.tsx.snap +0 -51
- package/src/promoCard/__snapshots__/PromoCard.test.tsx.snap +0 -40
- package/src/promoCard/__snapshots__/PromoCardGroup.test.tsx.snap +0 -80
- package/src/tile/__snapshots__/Tile.test.tsx.snap +0 -55
- package/src/tooltip/__snapshots__/Tooltip.test.tsx.snap +0 -32
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`Chips Choice Chips renders as expected 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<div
|
|
6
|
-
aria-label="Please select a category"
|
|
7
|
-
class="np-chips d-flex"
|
|
8
|
-
role="radiogroup"
|
|
9
|
-
>
|
|
10
|
-
<div
|
|
11
|
-
aria-checked="false"
|
|
12
|
-
class="np-chip d-flex align-items-center justify-content-between text-xs-nowrap"
|
|
13
|
-
role="radio"
|
|
14
|
-
tabindex="0"
|
|
15
|
-
>
|
|
16
|
-
<div
|
|
17
|
-
aria-hidden="false"
|
|
18
|
-
class="np-text-body-default-bold"
|
|
19
|
-
>
|
|
20
|
-
Accounting
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div
|
|
24
|
-
aria-checked="true"
|
|
25
|
-
class="np-chip d-flex align-items-center justify-content-between text-xs-nowrap np-chip--selected"
|
|
26
|
-
role="radio"
|
|
27
|
-
tabindex="0"
|
|
28
|
-
>
|
|
29
|
-
<div
|
|
30
|
-
aria-hidden="false"
|
|
31
|
-
class="np-text-body-default-bold"
|
|
32
|
-
>
|
|
33
|
-
Payroll
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<div
|
|
37
|
-
aria-checked="false"
|
|
38
|
-
class="np-chip d-flex align-items-center justify-content-between text-xs-nowrap"
|
|
39
|
-
role="radio"
|
|
40
|
-
tabindex="0"
|
|
41
|
-
>
|
|
42
|
-
<div
|
|
43
|
-
aria-hidden="false"
|
|
44
|
-
class="np-text-body-default-bold"
|
|
45
|
-
>
|
|
46
|
-
Reporting
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<div
|
|
50
|
-
aria-checked="false"
|
|
51
|
-
class="np-chip d-flex align-items-center justify-content-between text-xs-nowrap"
|
|
52
|
-
role="radio"
|
|
53
|
-
tabindex="0"
|
|
54
|
-
>
|
|
55
|
-
<div
|
|
56
|
-
aria-hidden="false"
|
|
57
|
-
class="np-text-body-default-bold"
|
|
58
|
-
>
|
|
59
|
-
Payments
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
`;
|
|
65
|
-
|
|
66
|
-
exports[`Chips Filter Chips renders as expected 1`] = `
|
|
67
|
-
<div>
|
|
68
|
-
<div
|
|
69
|
-
aria-label="Filter by categories"
|
|
70
|
-
class="np-chips d-flex"
|
|
71
|
-
role="group"
|
|
72
|
-
>
|
|
73
|
-
<div
|
|
74
|
-
aria-checked="false"
|
|
75
|
-
class="np-chip d-flex align-items-center justify-content-between text-xs-nowrap"
|
|
76
|
-
role="checkbox"
|
|
77
|
-
tabindex="0"
|
|
78
|
-
>
|
|
79
|
-
<div
|
|
80
|
-
aria-hidden="false"
|
|
81
|
-
class="np-text-body-default-bold"
|
|
82
|
-
>
|
|
83
|
-
Accounting
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
<div
|
|
87
|
-
aria-checked="false"
|
|
88
|
-
class="np-chip d-flex align-items-center justify-content-between text-xs-nowrap"
|
|
89
|
-
role="checkbox"
|
|
90
|
-
tabindex="0"
|
|
91
|
-
>
|
|
92
|
-
<div
|
|
93
|
-
aria-hidden="false"
|
|
94
|
-
class="np-text-body-default-bold"
|
|
95
|
-
>
|
|
96
|
-
Payroll
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
<div
|
|
100
|
-
aria-checked="false"
|
|
101
|
-
class="np-chip d-flex align-items-center justify-content-between text-xs-nowrap"
|
|
102
|
-
role="checkbox"
|
|
103
|
-
tabindex="0"
|
|
104
|
-
>
|
|
105
|
-
<div
|
|
106
|
-
aria-hidden="false"
|
|
107
|
-
class="np-text-body-default-bold"
|
|
108
|
-
>
|
|
109
|
-
Reporting
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div
|
|
113
|
-
aria-checked="true"
|
|
114
|
-
class="np-chip d-flex align-items-center justify-content-between np-chip--removable text-xs-nowrap np-chip--selected p-r-1"
|
|
115
|
-
role="checkbox"
|
|
116
|
-
tabindex="-1"
|
|
117
|
-
>
|
|
118
|
-
<div
|
|
119
|
-
aria-hidden="true"
|
|
120
|
-
class="np-text-body-default-bold"
|
|
121
|
-
>
|
|
122
|
-
Payments
|
|
123
|
-
</div>
|
|
124
|
-
<button
|
|
125
|
-
aria-label="Clear Payments"
|
|
126
|
-
class="np-close-button close btn-link text-no-decoration btn-unstyled"
|
|
127
|
-
type="button"
|
|
128
|
-
>
|
|
129
|
-
<span
|
|
130
|
-
class="tw-icon tw-icon-cross-circle-fill "
|
|
131
|
-
data-testid="cross-circle-fill-icon"
|
|
132
|
-
>
|
|
133
|
-
<svg
|
|
134
|
-
aria-hidden="true"
|
|
135
|
-
fill="currentColor"
|
|
136
|
-
focusable="false"
|
|
137
|
-
height="16"
|
|
138
|
-
role="none"
|
|
139
|
-
viewBox="0 0 24 24"
|
|
140
|
-
width="16"
|
|
141
|
-
>
|
|
142
|
-
<path
|
|
143
|
-
clip-rule="evenodd"
|
|
144
|
-
d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m-4.707-6.707L10.586 12 7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414L12 13.414l-3.293 3.293z"
|
|
145
|
-
fill-rule="evenodd"
|
|
146
|
-
/>
|
|
147
|
-
</svg>
|
|
148
|
-
</span>
|
|
149
|
-
</button>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
`;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`Radio button renders checked state correctly 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<input
|
|
6
|
-
checked=""
|
|
7
|
-
class="sr-only"
|
|
8
|
-
name="radio-name"
|
|
9
|
-
type="radio"
|
|
10
|
-
value=""
|
|
11
|
-
/>
|
|
12
|
-
<span
|
|
13
|
-
class="tw-radio-button checked"
|
|
14
|
-
>
|
|
15
|
-
<span
|
|
16
|
-
class="tw-radio-check"
|
|
17
|
-
/>
|
|
18
|
-
</span>
|
|
19
|
-
</div>
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
exports[`Radio button renders correctly 1`] = `
|
|
23
|
-
<div>
|
|
24
|
-
<input
|
|
25
|
-
class="sr-only"
|
|
26
|
-
id="an-id"
|
|
27
|
-
name="a-name"
|
|
28
|
-
type="radio"
|
|
29
|
-
value="a-value"
|
|
30
|
-
/>
|
|
31
|
-
<span
|
|
32
|
-
class="tw-radio-button"
|
|
33
|
-
>
|
|
34
|
-
<span
|
|
35
|
-
class="tw-radio-check"
|
|
36
|
-
/>
|
|
37
|
-
</span>
|
|
38
|
-
</div>
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
exports[`Radio button renders disabled state correctly 1`] = `
|
|
42
|
-
<div>
|
|
43
|
-
<input
|
|
44
|
-
class="sr-only"
|
|
45
|
-
disabled=""
|
|
46
|
-
name="radio-name"
|
|
47
|
-
type="radio"
|
|
48
|
-
value=""
|
|
49
|
-
/>
|
|
50
|
-
<span
|
|
51
|
-
class="tw-radio-button disabled"
|
|
52
|
-
>
|
|
53
|
-
<span
|
|
54
|
-
class="tw-radio-check"
|
|
55
|
-
/>
|
|
56
|
-
</span>
|
|
57
|
-
</div>
|
|
58
|
-
`;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`BottomSheet renders content when open 1`] = `
|
|
4
|
-
<body>
|
|
5
|
-
<div />
|
|
6
|
-
<div
|
|
7
|
-
class="np-theme-personal"
|
|
8
|
-
>
|
|
9
|
-
<span
|
|
10
|
-
data-focus-scope-start="true"
|
|
11
|
-
hidden=""
|
|
12
|
-
/>
|
|
13
|
-
<div
|
|
14
|
-
tabindex="-1"
|
|
15
|
-
>
|
|
16
|
-
<div
|
|
17
|
-
class="dimmer"
|
|
18
|
-
role="presentation"
|
|
19
|
-
>
|
|
20
|
-
<div
|
|
21
|
-
class="dimmer-content-positioner"
|
|
22
|
-
>
|
|
23
|
-
<div
|
|
24
|
-
class="sliding-panel sliding-panel--open-bottom np-bottom-sheet sliding-panel-appear sliding-panel-appear-active"
|
|
25
|
-
>
|
|
26
|
-
<div
|
|
27
|
-
aria-modal="true"
|
|
28
|
-
role="dialog"
|
|
29
|
-
>
|
|
30
|
-
<div
|
|
31
|
-
class="np-bottom-sheet--top-bar"
|
|
32
|
-
>
|
|
33
|
-
<div
|
|
34
|
-
class="np-bottom-sheet--handler"
|
|
35
|
-
/>
|
|
36
|
-
<button
|
|
37
|
-
aria-label="Close"
|
|
38
|
-
class="np-close-button close btn-link text-no-decoration sr-only np-bottom-sheet--close-btn"
|
|
39
|
-
type="button"
|
|
40
|
-
>
|
|
41
|
-
<span
|
|
42
|
-
class="tw-icon tw-icon-cross "
|
|
43
|
-
data-testid="cross-icon"
|
|
44
|
-
>
|
|
45
|
-
<svg
|
|
46
|
-
aria-hidden="true"
|
|
47
|
-
fill="currentColor"
|
|
48
|
-
focusable="false"
|
|
49
|
-
height="16"
|
|
50
|
-
role="none"
|
|
51
|
-
viewBox="0 0 24 24"
|
|
52
|
-
width="16"
|
|
53
|
-
>
|
|
54
|
-
<path
|
|
55
|
-
d="m12 13.414-7.293 7.293-1.414-1.414L10.586 12 3.293 4.707l1.414-1.414L12 10.586l7.293-7.293 1.414 1.414L13.414 12l7.293 7.293-1.414 1.414z"
|
|
56
|
-
/>
|
|
57
|
-
</svg>
|
|
58
|
-
</span>
|
|
59
|
-
</button>
|
|
60
|
-
</div>
|
|
61
|
-
<div
|
|
62
|
-
class="np-bottom-sheet--content"
|
|
63
|
-
style="max-height: calc(768px - 64px - 32px);"
|
|
64
|
-
>
|
|
65
|
-
<b>
|
|
66
|
-
Test Content
|
|
67
|
-
</b>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
<span
|
|
75
|
-
data-focus-scope-end="true"
|
|
76
|
-
hidden=""
|
|
77
|
-
/>
|
|
78
|
-
</div>
|
|
79
|
-
</body>
|
|
80
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`CloseButton renders as expected 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<button
|
|
6
|
-
aria-label="Close"
|
|
7
|
-
class="np-close-button close btn-link text-no-decoration np-close-button--large className"
|
|
8
|
-
type="button"
|
|
9
|
-
>
|
|
10
|
-
<span
|
|
11
|
-
class="tw-icon tw-icon-cross "
|
|
12
|
-
data-testid="cross-icon"
|
|
13
|
-
>
|
|
14
|
-
<svg
|
|
15
|
-
aria-hidden="true"
|
|
16
|
-
fill="currentColor"
|
|
17
|
-
focusable="false"
|
|
18
|
-
height="24"
|
|
19
|
-
role="none"
|
|
20
|
-
viewBox="0 0 24 24"
|
|
21
|
-
width="24"
|
|
22
|
-
>
|
|
23
|
-
<path
|
|
24
|
-
d="m12 13.414-7.293 7.293-1.414-1.414L10.586 12 3.293 4.707l1.414-1.414L12 10.586l7.293-7.293 1.414 1.414L13.414 12l7.293 7.293-1.414 1.414z"
|
|
25
|
-
/>
|
|
26
|
-
</svg>
|
|
27
|
-
</span>
|
|
28
|
-
</button>
|
|
29
|
-
</div>
|
|
30
|
-
`;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { render } from '@testing-library/react';
|
|
2
|
-
|
|
3
|
-
import { Layout } from '../propsValues/layouts';
|
|
4
|
-
|
|
5
|
-
import FlowHeader from './FlowHeader';
|
|
6
|
-
import type { FlowHeaderProps } from './FlowHeader';
|
|
7
|
-
|
|
8
|
-
describe('FlowHeader', () => {
|
|
9
|
-
const props = {
|
|
10
|
-
leftContent: 'leftContent',
|
|
11
|
-
rightContent: 'rightContent',
|
|
12
|
-
bottomContent: 'bottomContent',
|
|
13
|
-
className: 'className',
|
|
14
|
-
} satisfies FlowHeaderProps;
|
|
15
|
-
it('renders as expected', () => {
|
|
16
|
-
expect(render(<FlowHeader {...props} />).container).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('renders as expected with vertical layout', () => {
|
|
20
|
-
expect(render(<FlowHeader {...props} layout={Layout.VERTICAL} />).container).toMatchSnapshot();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`FlowHeader renders as expected 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<div
|
|
6
|
-
class="np-flow-header d-flex flex-wrap align-items-center justify-content-between flex__item--12 className"
|
|
7
|
-
>
|
|
8
|
-
leftContent
|
|
9
|
-
rightContent
|
|
10
|
-
<div
|
|
11
|
-
class="align-items-center d-flex justify-content-center order-1 flex-grow-1"
|
|
12
|
-
>
|
|
13
|
-
bottomContent
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
exports[`FlowHeader renders as expected with vertical layout 1`] = `
|
|
20
|
-
<div>
|
|
21
|
-
<div
|
|
22
|
-
class="np-flow-header d-flex flex-wrap align-items-center justify-content-between flex__item--12 className"
|
|
23
|
-
>
|
|
24
|
-
leftContent
|
|
25
|
-
rightContent
|
|
26
|
-
<div
|
|
27
|
-
class="align-items-center d-flex justify-content-center flex__item--12"
|
|
28
|
-
>
|
|
29
|
-
bottomContent
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
`;
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`FlowNavigation on mobile renders as expected 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<div
|
|
6
|
-
class="np-flow-navigation d-flex align-items-center justify-content-center p-y-3 np-flow-navigation--border-bottom"
|
|
7
|
-
>
|
|
8
|
-
<div
|
|
9
|
-
class="np-flow-header d-flex flex-wrap align-items-center justify-content-between flex__item--12 np-flow-navigation__content p-x-3 np-flow-navigation--xs-max"
|
|
10
|
-
>
|
|
11
|
-
<button
|
|
12
|
-
aria-label="back to previous step"
|
|
13
|
-
aria-live="off"
|
|
14
|
-
class="np-circle d-flex align-items-center justify-content-center np-icon-button np-icon-button-tertiary-default"
|
|
15
|
-
style="--circle-size: 40px; --circle-icon-size: 20px; --circle-font-size: 18px;"
|
|
16
|
-
type="button"
|
|
17
|
-
>
|
|
18
|
-
<span
|
|
19
|
-
class="tw-icon tw-icon-arrow-left "
|
|
20
|
-
data-testid="arrow-left-icon"
|
|
21
|
-
>
|
|
22
|
-
<svg
|
|
23
|
-
aria-hidden="true"
|
|
24
|
-
fill="currentColor"
|
|
25
|
-
focusable="false"
|
|
26
|
-
height="16"
|
|
27
|
-
role="none"
|
|
28
|
-
viewBox="0 0 24 24"
|
|
29
|
-
width="16"
|
|
30
|
-
>
|
|
31
|
-
<path
|
|
32
|
-
clip-rule="evenodd"
|
|
33
|
-
d="m5.414 11 6.293-6.293-1.414-1.414L2.3 11.286a1.01 1.01 0 0 0 0 1.428l7.993 7.993 1.414-1.414L5.414 13H22v-2z"
|
|
34
|
-
fill-rule="evenodd"
|
|
35
|
-
/>
|
|
36
|
-
</svg>
|
|
37
|
-
</span>
|
|
38
|
-
</button>
|
|
39
|
-
<div
|
|
40
|
-
class="m-x-1"
|
|
41
|
-
data-testid="activeLabel-1"
|
|
42
|
-
>
|
|
43
|
-
AnimatedLabel
|
|
44
|
-
</div>
|
|
45
|
-
<div
|
|
46
|
-
class="np-flow-header__right d-flex align-items-center justify-content-end order-2--lg"
|
|
47
|
-
>
|
|
48
|
-
<div
|
|
49
|
-
class="np-circle d-flex align-items-center justify-content-center np-avatar-view np-avatar-view-non-interactive"
|
|
50
|
-
style="--circle-size: 48px; --circle-icon-size: 24px; --circle-font-size: 22px;"
|
|
51
|
-
>
|
|
52
|
-
<div
|
|
53
|
-
class="np-circle np-circle-border d-flex align-items-center justify-content-center np-avatar-view-content"
|
|
54
|
-
style="--circle-size: 48px; --circle-icon-size: 24px; --circle-font-size: 22px;"
|
|
55
|
-
>
|
|
56
|
-
TM
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
<span
|
|
60
|
-
class="m-x-1"
|
|
61
|
-
/>
|
|
62
|
-
<button
|
|
63
|
-
aria-label="Close"
|
|
64
|
-
class="np-close-button close btn-link text-no-decoration np-close-button--x-large"
|
|
65
|
-
type="button"
|
|
66
|
-
>
|
|
67
|
-
<span
|
|
68
|
-
class="tw-icon tw-icon-cross "
|
|
69
|
-
data-testid="cross-icon"
|
|
70
|
-
>
|
|
71
|
-
<svg
|
|
72
|
-
aria-hidden="true"
|
|
73
|
-
fill="currentColor"
|
|
74
|
-
focusable="false"
|
|
75
|
-
height="24"
|
|
76
|
-
role="none"
|
|
77
|
-
viewBox="0 0 24 24"
|
|
78
|
-
width="24"
|
|
79
|
-
>
|
|
80
|
-
<path
|
|
81
|
-
d="m12 13.414-7.293 7.293-1.414-1.414L10.586 12 3.293 4.707l1.414-1.414L12 10.586l7.293-7.293 1.414 1.414L13.414 12l7.293 7.293-1.414 1.414z"
|
|
82
|
-
/>
|
|
83
|
-
</svg>
|
|
84
|
-
</span>
|
|
85
|
-
</button>
|
|
86
|
-
</div>
|
|
87
|
-
<div
|
|
88
|
-
class="align-items-center d-flex justify-content-center flex__item--12"
|
|
89
|
-
>
|
|
90
|
-
<div
|
|
91
|
-
class="tw-stepper np-flow-navigation__stepper"
|
|
92
|
-
>
|
|
93
|
-
<div
|
|
94
|
-
class="progress"
|
|
95
|
-
>
|
|
96
|
-
<div
|
|
97
|
-
class="progress-bar"
|
|
98
|
-
data-testid="progress-bar"
|
|
99
|
-
/>
|
|
100
|
-
</div>
|
|
101
|
-
<ol
|
|
102
|
-
class="tw-stepper-steps p-t-1 m-b-0"
|
|
103
|
-
>
|
|
104
|
-
<li
|
|
105
|
-
aria-current="false"
|
|
106
|
-
class="hidden-xs tw-stepper__step np-text-body-default"
|
|
107
|
-
style="left: 0%;"
|
|
108
|
-
>
|
|
109
|
-
<span
|
|
110
|
-
class="tw-stepper__step-label"
|
|
111
|
-
>
|
|
112
|
-
label-0
|
|
113
|
-
</span>
|
|
114
|
-
</li>
|
|
115
|
-
<li
|
|
116
|
-
aria-current="step"
|
|
117
|
-
class="hidden-xs tw-stepper__step np-text-body-default-bold tw-stepper__step--active"
|
|
118
|
-
style="left: 50%;"
|
|
119
|
-
>
|
|
120
|
-
<span
|
|
121
|
-
class="tw-stepper__step-label"
|
|
122
|
-
>
|
|
123
|
-
label-1
|
|
124
|
-
</span>
|
|
125
|
-
</li>
|
|
126
|
-
<li
|
|
127
|
-
aria-current="false"
|
|
128
|
-
class="hidden-xs tw-stepper__step np-text-body-default"
|
|
129
|
-
style="left: 100%;"
|
|
130
|
-
>
|
|
131
|
-
<span
|
|
132
|
-
class="tw-stepper__step-label"
|
|
133
|
-
>
|
|
134
|
-
label-2
|
|
135
|
-
</span>
|
|
136
|
-
</li>
|
|
137
|
-
</ol>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
`;
|
|
144
|
-
|
|
145
|
-
exports[`FlowNavigation renders as expected 1`] = `
|
|
146
|
-
<div>
|
|
147
|
-
<div
|
|
148
|
-
class="np-flow-navigation d-flex align-items-center justify-content-center p-y-3 np-flow-navigation--border-bottom"
|
|
149
|
-
>
|
|
150
|
-
<div
|
|
151
|
-
class="np-flow-header d-flex flex-wrap align-items-center justify-content-between flex__item--12 np-flow-navigation__content p-x-3 np-flow-navigation--sm np-flow-navigation--lg"
|
|
152
|
-
>
|
|
153
|
-
<div
|
|
154
|
-
class="np-flow-header__left"
|
|
155
|
-
>
|
|
156
|
-
<img
|
|
157
|
-
alt="logo"
|
|
158
|
-
height="24"
|
|
159
|
-
src="logo.svg"
|
|
160
|
-
width="138"
|
|
161
|
-
/>
|
|
162
|
-
</div>
|
|
163
|
-
<div
|
|
164
|
-
class="np-flow-header__right d-flex align-items-center justify-content-end order-2--lg"
|
|
165
|
-
>
|
|
166
|
-
<div
|
|
167
|
-
class="np-circle d-flex align-items-center justify-content-center np-avatar-view np-avatar-view-non-interactive"
|
|
168
|
-
style="--circle-size: 48px; --circle-icon-size: 24px; --circle-font-size: 22px;"
|
|
169
|
-
>
|
|
170
|
-
<div
|
|
171
|
-
class="np-circle np-circle-border d-flex align-items-center justify-content-center np-avatar-view-content"
|
|
172
|
-
style="--circle-size: 48px; --circle-icon-size: 24px; --circle-font-size: 22px;"
|
|
173
|
-
>
|
|
174
|
-
TM
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
<span
|
|
178
|
-
class="m-x-1"
|
|
179
|
-
/>
|
|
180
|
-
<button
|
|
181
|
-
aria-label="Close"
|
|
182
|
-
class="np-close-button close btn-link text-no-decoration np-close-button--x-large"
|
|
183
|
-
type="button"
|
|
184
|
-
>
|
|
185
|
-
<span
|
|
186
|
-
class="tw-icon tw-icon-cross "
|
|
187
|
-
data-testid="cross-icon"
|
|
188
|
-
>
|
|
189
|
-
<svg
|
|
190
|
-
aria-hidden="true"
|
|
191
|
-
fill="currentColor"
|
|
192
|
-
focusable="false"
|
|
193
|
-
height="24"
|
|
194
|
-
role="none"
|
|
195
|
-
viewBox="0 0 24 24"
|
|
196
|
-
width="24"
|
|
197
|
-
>
|
|
198
|
-
<path
|
|
199
|
-
d="m12 13.414-7.293 7.293-1.414-1.414L10.586 12 3.293 4.707l1.414-1.414L12 10.586l7.293-7.293 1.414 1.414L13.414 12l7.293 7.293-1.414 1.414z"
|
|
200
|
-
/>
|
|
201
|
-
</svg>
|
|
202
|
-
</span>
|
|
203
|
-
</button>
|
|
204
|
-
</div>
|
|
205
|
-
<div
|
|
206
|
-
class="align-items-center d-flex justify-content-center order-1 flex-grow-1"
|
|
207
|
-
>
|
|
208
|
-
<div
|
|
209
|
-
class="tw-stepper np-flow-navigation__stepper"
|
|
210
|
-
>
|
|
211
|
-
<div
|
|
212
|
-
class="progress"
|
|
213
|
-
>
|
|
214
|
-
<div
|
|
215
|
-
class="progress-bar"
|
|
216
|
-
data-testid="progress-bar"
|
|
217
|
-
style="width: 0%;"
|
|
218
|
-
/>
|
|
219
|
-
</div>
|
|
220
|
-
<ol
|
|
221
|
-
class="tw-stepper-steps p-t-1 m-b-0"
|
|
222
|
-
>
|
|
223
|
-
<li
|
|
224
|
-
aria-current="step"
|
|
225
|
-
class="hidden-xs tw-stepper__step np-text-body-default-bold tw-stepper__step--active"
|
|
226
|
-
style="left: 0%;"
|
|
227
|
-
>
|
|
228
|
-
<span
|
|
229
|
-
class="tw-stepper__step-label"
|
|
230
|
-
>
|
|
231
|
-
label-0
|
|
232
|
-
</span>
|
|
233
|
-
</li>
|
|
234
|
-
<li
|
|
235
|
-
aria-current="false"
|
|
236
|
-
class="hidden-xs tw-stepper__step np-text-body-default"
|
|
237
|
-
style="left: 50%;"
|
|
238
|
-
>
|
|
239
|
-
<span
|
|
240
|
-
class="tw-stepper__step-label"
|
|
241
|
-
>
|
|
242
|
-
label-1
|
|
243
|
-
</span>
|
|
244
|
-
</li>
|
|
245
|
-
<li
|
|
246
|
-
aria-current="false"
|
|
247
|
-
class="hidden-xs tw-stepper__step np-text-body-default"
|
|
248
|
-
style="left: 100%;"
|
|
249
|
-
>
|
|
250
|
-
<span
|
|
251
|
-
class="tw-stepper__step-label"
|
|
252
|
-
>
|
|
253
|
-
label-2
|
|
254
|
-
</span>
|
|
255
|
-
</li>
|
|
256
|
-
</ol>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
</div>
|
|
262
|
-
`;
|