@transferwise/components 0.0.0-experimental-9513a35 → 0.0.0-experimental-6a3d904
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/package.json +1 -1
- package/src/Chips/_stories/Chips.test.story.tsx +1 -1
- package/src/DefinitionList/_stories/DefinitionList.test.story.tsx +2 -1
- package/src/Header/_stories/Header.test.story.tsx +3 -2
- package/src/InstructionsList/_stories/InstructionsList.test.story.tsx +2 -2
- package/src/ListItem/_stories/ListItem.rtl.test.story.tsx +10 -1
- package/src/Tabs/_stories/Tabs.test.story.tsx +7 -6
- package/src/Upload/_stories/Upload.rtl.test.story.tsx +9 -3
package/package.json
CHANGED
|
@@ -203,7 +203,7 @@ export const RTLDiff: Story = {
|
|
|
203
203
|
];
|
|
204
204
|
|
|
205
205
|
return (
|
|
206
|
-
<div
|
|
206
|
+
<div>
|
|
207
207
|
{layouts.map((layout) => (
|
|
208
208
|
<section key={layout}>
|
|
209
209
|
<h3 style={{ fontSize: 14, margin: '0 0 var(--size-8)' }}>{layout}</h3>
|
|
@@ -222,6 +222,7 @@ export const RTLDiff: Story = {
|
|
|
222
222
|
);
|
|
223
223
|
},
|
|
224
224
|
...withRTLDiff({
|
|
225
|
+
fixedRows: { heights: [8, 11, 8, 8, 8, 10, 12, 8, 8, 8] },
|
|
225
226
|
i18n: {
|
|
226
227
|
fullName: { en: 'Full name', ar: 'الاسم الكامل' },
|
|
227
228
|
customerName: { en: 'Alice Smith', ar: 'أليس سميث' },
|
|
@@ -134,7 +134,7 @@ export const RTLDiff: Story = {
|
|
|
134
134
|
render: () => {
|
|
135
135
|
const i18n = useRtlDiffI18n();
|
|
136
136
|
return (
|
|
137
|
-
|
|
137
|
+
<div>
|
|
138
138
|
<Header title={i18n.groupWithoutAction} level="group" />
|
|
139
139
|
<Header
|
|
140
140
|
title={i18n.groupWithAction}
|
|
@@ -147,10 +147,11 @@ export const RTLDiff: Story = {
|
|
|
147
147
|
level="section"
|
|
148
148
|
action={{ 'aria-label': i18n.learnMore, text: i18n.learnMore, href: '#' }}
|
|
149
149
|
/>
|
|
150
|
-
|
|
150
|
+
</div>
|
|
151
151
|
);
|
|
152
152
|
},
|
|
153
153
|
...withRTLDiff({
|
|
154
|
+
fixedRows: { heights: [4, 4, 5, 5], hideSeparators: true },
|
|
154
155
|
i18n: {
|
|
155
156
|
groupWithoutAction: { en: 'Group level without action', ar: 'مستوى المجموعة بدون إجراء' },
|
|
156
157
|
groupWithAction: { en: 'Group level with action', ar: 'مستوى المجموعة مع إجراء' },
|
|
@@ -15,7 +15,7 @@ export const RTLDiff: Story = {
|
|
|
15
15
|
render: () => {
|
|
16
16
|
const i18n = useRtlDiffI18n();
|
|
17
17
|
return (
|
|
18
|
-
|
|
18
|
+
<div style={{ display: 'grid', width: '100%', gridTemplateRows: '8lh auto' }}>
|
|
19
19
|
<InstructionsList
|
|
20
20
|
dos={[i18n.initialTransfer, i18n.inviteFriends]}
|
|
21
21
|
donts={[i18n.hiddenFees, i18n.badExchangeRate]}
|
|
@@ -26,7 +26,7 @@ export const RTLDiff: Story = {
|
|
|
26
26
|
donts={[i18n.shareCredentials]}
|
|
27
27
|
sort="dontsFirst"
|
|
28
28
|
/>
|
|
29
|
-
|
|
29
|
+
</div>
|
|
30
30
|
);
|
|
31
31
|
},
|
|
32
32
|
...withRTLDiff({
|
|
@@ -125,7 +125,16 @@ export default {
|
|
|
125
125
|
component: ListItem,
|
|
126
126
|
title: 'Content/ListItem/Tests/RTL Diff',
|
|
127
127
|
tags: ['!autodocs', '!manifest'],
|
|
128
|
-
...withRTLDiff({
|
|
128
|
+
...withRTLDiff({
|
|
129
|
+
width: 'stretch',
|
|
130
|
+
i18n: i18nMap,
|
|
131
|
+
fixedRows: {
|
|
132
|
+
heights: [
|
|
133
|
+
4, 6, 4, 6, 7, 5, 7, 5, 5, 7, 5, 5, 5, 5, 13, 5, 5, 8, 4, 7, 7, 6, 7, 5, 9, 5, 5, 5, 5, 5,
|
|
134
|
+
5, 5, 6, 6, 6, 14, 8, 8, 8, 8, 8, 8,
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
}),
|
|
129
138
|
} satisfies Meta<ListItemProps>;
|
|
130
139
|
|
|
131
140
|
const Default = {
|
|
@@ -39,8 +39,8 @@ export const RTLDiff: Story = {
|
|
|
39
39
|
];
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
|
-
|
|
43
|
-
<div
|
|
42
|
+
<div>
|
|
43
|
+
<div>
|
|
44
44
|
<h4>{i18n.blockFirstSelected}</h4>
|
|
45
45
|
<Tabs
|
|
46
46
|
name="rtl-block-first"
|
|
@@ -50,7 +50,7 @@ export const RTLDiff: Story = {
|
|
|
50
50
|
onTabSelect={() => {}}
|
|
51
51
|
/>
|
|
52
52
|
</div>
|
|
53
|
-
<div
|
|
53
|
+
<div>
|
|
54
54
|
<h4>{i18n.blockSecondSelected}</h4>
|
|
55
55
|
<Tabs
|
|
56
56
|
name="rtl-block-second"
|
|
@@ -60,7 +60,7 @@ export const RTLDiff: Story = {
|
|
|
60
60
|
onTabSelect={() => {}}
|
|
61
61
|
/>
|
|
62
62
|
</div>
|
|
63
|
-
<div
|
|
63
|
+
<div>
|
|
64
64
|
<h4>{i18n.autoFirstSelected}</h4>
|
|
65
65
|
<Tabs
|
|
66
66
|
name="rtl-auto-first"
|
|
@@ -70,7 +70,7 @@ export const RTLDiff: Story = {
|
|
|
70
70
|
onTabSelect={() => {}}
|
|
71
71
|
/>
|
|
72
72
|
</div>
|
|
73
|
-
<div
|
|
73
|
+
<div>
|
|
74
74
|
<h4>{i18n.autoSecondSelected}</h4>
|
|
75
75
|
<Tabs
|
|
76
76
|
name="rtl-auto-second"
|
|
@@ -80,10 +80,11 @@ export const RTLDiff: Story = {
|
|
|
80
80
|
onTabSelect={() => {}}
|
|
81
81
|
/>
|
|
82
82
|
</div>
|
|
83
|
-
|
|
83
|
+
</div>
|
|
84
84
|
);
|
|
85
85
|
},
|
|
86
86
|
...withRTLDiff({
|
|
87
|
+
fixedRows: { heights: [8, 8, 8, 8] },
|
|
87
88
|
i18n: {
|
|
88
89
|
firstTab: { en: 'First tab', ar: 'التبويب الأول' },
|
|
89
90
|
secondTab: { en: 'Second tab', ar: 'التبويب الثاني' },
|
|
@@ -21,9 +21,15 @@ export const Sizes: Story = {
|
|
|
21
21
|
const i18n = useRtlDiffI18n();
|
|
22
22
|
return (
|
|
23
23
|
<>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
<div>
|
|
25
|
+
<Upload usLabel={i18n.smallUpload} size="sm" />
|
|
26
|
+
</div>
|
|
27
|
+
<div>
|
|
28
|
+
<Upload usLabel={i18n.mediumUpload} size="md" />
|
|
29
|
+
</div>
|
|
30
|
+
<div>
|
|
31
|
+
<Upload usLabel={i18n.largeUpload} size="lg" />
|
|
32
|
+
</div>
|
|
27
33
|
</>
|
|
28
34
|
);
|
|
29
35
|
},
|