@transferwise/components 46.171.0 → 46.172.0
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/Chips/Chip/Chip.js.map +1 -1
- package/build/Chips/Chip/Chip.mjs.map +1 -1
- package/build/Chips/Chips.js +9 -17
- package/build/Chips/Chips.js.map +1 -1
- package/build/Chips/Chips.mjs +9 -17
- package/build/Chips/Chips.mjs.map +1 -1
- package/build/DateInput/DateInput.js +1 -0
- package/build/DateInput/DateInput.js.map +1 -1
- package/build/DateInput/DateInput.mjs +1 -0
- package/build/DateInput/DateInput.mjs.map +1 -1
- package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.js +1 -0
- package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.js.map +1 -1
- package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.mjs +1 -0
- package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.mjs.map +1 -1
- package/build/Header/index.js +14 -0
- package/build/Header/index.js.map +1 -0
- package/build/Header/index.mjs +9 -0
- package/build/Header/index.mjs.map +1 -0
- package/build/Inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs +2 -2
- package/build/Inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs.map +1 -1
- package/build/Inputs/SelectInput/Options/SelectInputOptions.js +1 -0
- package/build/Inputs/SelectInput/Options/SelectInputOptions.js.map +1 -1
- package/build/Inputs/SelectInput/Options/SelectInputOptions.mjs +1 -0
- package/build/Inputs/SelectInput/Options/SelectInputOptions.mjs.map +1 -1
- package/build/MoneyInput/MoneyInput.js +1 -0
- package/build/MoneyInput/MoneyInput.js.map +1 -1
- package/build/MoneyInput/MoneyInput.mjs +1 -0
- package/build/MoneyInput/MoneyInput.mjs.map +1 -1
- package/build/PhoneNumberInput/PhoneNumberInput.js +1 -0
- package/build/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/PhoneNumberInput/PhoneNumberInput.mjs +1 -0
- package/build/PhoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/Section/Section.js +6 -1
- package/build/Section/Section.js.map +1 -1
- package/build/Section/Section.mjs +6 -1
- package/build/Section/Section.mjs.map +1 -1
- package/build/Typeahead/Typeahead.js +1 -2
- package/build/Typeahead/Typeahead.js.map +1 -1
- package/build/Typeahead/Typeahead.mjs +1 -2
- package/build/Typeahead/Typeahead.mjs.map +1 -1
- package/build/i18n/cs.json +0 -1
- package/build/i18n/cs.json.js +0 -1
- package/build/i18n/cs.json.js.map +1 -1
- package/build/i18n/cs.json.mjs +0 -1
- package/build/i18n/cs.json.mjs.map +1 -1
- package/build/i18n/de.json +0 -1
- package/build/i18n/de.json.js +0 -1
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +0 -1
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/en.json +0 -1
- package/build/i18n/en.json.js +0 -1
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +0 -1
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/i18n/es.json +0 -1
- package/build/i18n/es.json.js +0 -1
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +0 -1
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/hu.json +0 -1
- package/build/i18n/hu.json.js +0 -1
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +0 -1
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +0 -1
- package/build/i18n/id.json.js +0 -1
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +0 -1
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/it.json +0 -1
- package/build/i18n/it.json.js +0 -1
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +0 -1
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/ja.json +0 -1
- package/build/i18n/ja.json.js +0 -1
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +0 -1
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/nl.json +0 -1
- package/build/i18n/nl.json.js +0 -1
- package/build/i18n/nl.json.js.map +1 -1
- package/build/i18n/nl.json.mjs +0 -1
- package/build/i18n/nl.json.mjs.map +1 -1
- package/build/i18n/pl.json +0 -1
- package/build/i18n/pl.json.js +0 -1
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +0 -1
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/pt.json +0 -1
- package/build/i18n/pt.json.js +0 -1
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +0 -1
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ro.json +0 -1
- package/build/i18n/ro.json.js +0 -1
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +0 -1
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/ru.json +0 -1
- package/build/i18n/ru.json.js +0 -1
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +0 -1
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/th.json +0 -1
- package/build/i18n/th.json.js +0 -1
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +0 -1
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/i18n/tr.json +1 -1
- package/build/i18n/tr.json.js +1 -1
- package/build/i18n/tr.json.mjs +1 -1
- package/build/i18n/uk.json +0 -1
- package/build/i18n/uk.json.js +0 -1
- package/build/i18n/uk.json.js.map +1 -1
- package/build/i18n/uk.json.mjs +0 -1
- package/build/i18n/uk.json.mjs.map +1 -1
- package/build/i18n/zh-CN.json +0 -1
- package/build/i18n/zh-CN.json.js +0 -1
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-CN.json.mjs +0 -1
- package/build/i18n/zh-CN.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +0 -1
- package/build/i18n/zh-HK.json.js +0 -1
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +0 -1
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/index.js +4 -4
- package/build/index.mjs +1 -1
- package/build/main.css +12 -2
- package/build/styles/Chips/Chip/Chip.css +8 -2
- package/build/styles/Chips/Chips.css +4 -0
- package/build/styles/main.css +12 -2
- package/build/types/Chips/Chip/Chip.d.ts +2 -1
- package/build/types/Chips/Chip/Chip.d.ts.map +1 -1
- package/build/types/Chips/Chips.d.ts.map +1 -1
- package/build/types/Header/index.d.ts +6 -1
- package/build/types/Header/index.d.ts.map +1 -1
- package/build/types/Section/Section.d.ts +5 -8
- package/build/types/Section/Section.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +0 -2
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Chips/Chip/Chip.css +8 -2
- package/src/Chips/Chip/Chip.less +8 -2
- package/src/Chips/Chip/Chip.tsx +2 -2
- package/src/Chips/Chips.css +4 -0
- package/src/Chips/Chips.less +4 -0
- package/src/Chips/Chips.test.tsx +21 -2
- package/src/Chips/Chips.tsx +8 -17
- package/src/Chips/_stories/Chips.story.tsx +48 -0
- package/src/Chips/_stories/Chips.test.story.tsx +35 -12
- package/src/Header/_stories/Header.story.tsx +2 -1
- package/src/Header/index.ts +8 -1
- package/src/Section/Section.test.tsx +16 -0
- package/src/Section/Section.tsx +7 -2
- package/src/Section/_stories/Section.story.tsx +7 -8
- package/src/Section/_stories/Section.test.story.tsx +2 -3
- package/src/i18n/cs.json +0 -1
- package/src/i18n/de.json +0 -1
- package/src/i18n/en.json +0 -1
- package/src/i18n/es.json +0 -1
- package/src/i18n/hu.json +0 -1
- package/src/i18n/id.json +0 -1
- package/src/i18n/it.json +0 -1
- package/src/i18n/ja.json +0 -1
- package/src/i18n/nl.json +0 -1
- package/src/i18n/pl.json +0 -1
- package/src/i18n/pt.json +0 -1
- package/src/i18n/ro.json +0 -1
- package/src/i18n/ru.json +0 -1
- package/src/i18n/th.json +0 -1
- package/src/i18n/tr.json +1 -1
- package/src/i18n/uk.json +0 -1
- package/src/i18n/zh-CN.json +0 -1
- package/src/i18n/zh-HK.json +0 -1
- package/src/index.ts +1 -1
- package/src/main.css +12 -2
- package/src/main.less +1 -0
- package/build/Chips/Chips.messages.js +0 -14
- package/build/Chips/Chips.messages.js.map +0 -1
- package/build/Chips/Chips.messages.mjs +0 -10
- package/build/Chips/Chips.messages.mjs.map +0 -1
- package/build/types/Chips/Chips.messages.d.ts +0 -9
- package/build/types/Chips/Chips.messages.d.ts.map +0 -1
- package/src/Chips/Chips.messages.ts +0 -9
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
9
9
|
import Accordion from '../../Accordion';
|
|
10
10
|
import Card from '../../_deprecated/Card';
|
|
11
|
-
import Header from '../../Header';
|
|
12
11
|
import ListItem from '../../ListItem';
|
|
13
12
|
import Section from '../Section';
|
|
14
13
|
|
|
@@ -20,11 +19,11 @@ export default {
|
|
|
20
19
|
export const Sandbox = createSandboxStory({
|
|
21
20
|
code: `<>
|
|
22
21
|
<Section>
|
|
23
|
-
<Header title="Section with header" />
|
|
22
|
+
<Section.Header title="Section with header" />
|
|
24
23
|
Section content goes here.
|
|
25
24
|
</Section>
|
|
26
25
|
<Section>
|
|
27
|
-
<Header title="Another section" />
|
|
26
|
+
<Section.Header title="Another section" />
|
|
28
27
|
More content goes here.
|
|
29
28
|
</Section>
|
|
30
29
|
</>`,
|
|
@@ -44,11 +43,11 @@ export const WithHeader = () => {
|
|
|
44
43
|
return (
|
|
45
44
|
<>
|
|
46
45
|
<Section>
|
|
47
|
-
<Header title="Section 1 title" />
|
|
46
|
+
<Section.Header title="Section 1 title" />
|
|
48
47
|
Section 1 content
|
|
49
48
|
</Section>
|
|
50
49
|
<Section>
|
|
51
|
-
<Header title="Section 2 title" />
|
|
50
|
+
<Section.Header title="Section 2 title" />
|
|
52
51
|
Section 2 content
|
|
53
52
|
</Section>
|
|
54
53
|
</>
|
|
@@ -81,7 +80,7 @@ export const withAccordion = () => {
|
|
|
81
80
|
];
|
|
82
81
|
return (
|
|
83
82
|
<Section>
|
|
84
|
-
<Header title="Section with accordion" />
|
|
83
|
+
<Section.Header title="Section with accordion" />
|
|
85
84
|
<Accordion items={items} indexOpen={0} />
|
|
86
85
|
</Section>
|
|
87
86
|
);
|
|
@@ -100,7 +99,7 @@ export const WithCards = () => {
|
|
|
100
99
|
|
|
101
100
|
return (
|
|
102
101
|
<Section>
|
|
103
|
-
<Header title="Section with cards" />
|
|
102
|
+
<Section.Header title="Section with cards" />
|
|
104
103
|
<Card
|
|
105
104
|
title="What's in the box?!"
|
|
106
105
|
details="Click me to reveal."
|
|
@@ -126,7 +125,7 @@ export const WithCards = () => {
|
|
|
126
125
|
export const WithListItems = () => {
|
|
127
126
|
return (
|
|
128
127
|
<Section>
|
|
129
|
-
<Header title="Section with list items" />
|
|
128
|
+
<Section.Header title="Section with list items" />
|
|
130
129
|
<ListItem title="Item 1" control={<ListItem.Navigation onClick={() => action('Item 1')} />} />
|
|
131
130
|
<ListItem title="Item 2" control={<ListItem.Navigation onClick={() => action('Item 2')} />} />
|
|
132
131
|
</Section>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
3
|
import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator';
|
|
4
|
-
import Header from '../../Header';
|
|
5
4
|
import Section from '..';
|
|
6
5
|
|
|
7
6
|
export default {
|
|
@@ -18,11 +17,11 @@ export const RTLDiff: Story = {
|
|
|
18
17
|
return (
|
|
19
18
|
<>
|
|
20
19
|
<Section>
|
|
21
|
-
<Header title={i18n.defaultTitle} />
|
|
20
|
+
<Section.Header title={i18n.defaultTitle} />
|
|
22
21
|
{i18n.defaultContent}
|
|
23
22
|
</Section>
|
|
24
23
|
<Section withHorizontalPadding>
|
|
25
|
-
<Header title={i18n.paddedTitle} />
|
|
24
|
+
<Section.Header title={i18n.paddedTitle} />
|
|
26
25
|
{i18n.paddedContent}
|
|
27
26
|
</Section>
|
|
28
27
|
</>
|
package/src/i18n/cs.json
CHANGED
package/src/i18n/de.json
CHANGED
package/src/i18n/en.json
CHANGED
package/src/i18n/es.json
CHANGED
package/src/i18n/hu.json
CHANGED
package/src/i18n/id.json
CHANGED
package/src/i18n/it.json
CHANGED
package/src/i18n/ja.json
CHANGED
package/src/i18n/nl.json
CHANGED
package/src/i18n/pl.json
CHANGED
package/src/i18n/pt.json
CHANGED
package/src/i18n/ro.json
CHANGED
package/src/i18n/ru.json
CHANGED
package/src/i18n/th.json
CHANGED
package/src/i18n/tr.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"neptune.Button.loadingAriaLabel": "yükleniyor",
|
|
3
|
-
"neptune.Chips.ariaLabel": "{choice} temizle",
|
|
4
3
|
"neptune.ClearButton.ariaLabel": "Sil",
|
|
5
4
|
"neptune.CloseButton.ariaLabel": "Kapat",
|
|
6
5
|
"neptune.DateInput.day.label": "Gün",
|
|
@@ -38,6 +37,7 @@
|
|
|
38
37
|
"neptune.PhoneNumberInput.phoneNumberPrefix": "Ön ek",
|
|
39
38
|
"neptune.Select.searchPlaceholder": "Ara...",
|
|
40
39
|
"neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
|
|
40
|
+
"neptune.Snackbar.escapeDismissHint": "Kapatmak için Escape tuşuna basın.",
|
|
41
41
|
"neptune.StatusIcon.iconLabel.error": "Hata:",
|
|
42
42
|
"neptune.StatusIcon.iconLabel.information": "Bilgi:",
|
|
43
43
|
"neptune.StatusIcon.iconLabel.pending": "Bekliyor:",
|
package/src/i18n/uk.json
CHANGED
package/src/i18n/zh-CN.json
CHANGED
package/src/i18n/zh-HK.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -247,7 +247,7 @@ export { default as DropFade } from './DropFade';
|
|
|
247
247
|
export { default as Emphasis } from './Emphasis';
|
|
248
248
|
export { default as Field } from './Field';
|
|
249
249
|
export { default as FlowNavigation } from './FlowNavigation';
|
|
250
|
-
export {
|
|
250
|
+
export { Header } from './Header';
|
|
251
251
|
export { default as Image } from './Image';
|
|
252
252
|
export { default as Info } from './Info';
|
|
253
253
|
export { default as InlineAlert } from './_deprecated/InlineAlert';
|
package/src/main.css
CHANGED
|
@@ -27739,15 +27739,18 @@ a[data-toggle="tooltip"] {
|
|
|
27739
27739
|
border: 1px solid var(--color-border-neutral);
|
|
27740
27740
|
border-radius: var(--size-16);
|
|
27741
27741
|
color: var(--color-content-secondary);
|
|
27742
|
-
block-size: var(--size-32);
|
|
27742
|
+
min-block-size: var(--size-32);
|
|
27743
27743
|
margin-inline-end: var(--size-8);
|
|
27744
27744
|
padding-block: 0;
|
|
27745
27745
|
padding-inline: var(--size-12);
|
|
27746
27746
|
transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
|
|
27747
|
+
-webkit-user-select: none;
|
|
27748
|
+
-moz-user-select: none;
|
|
27749
|
+
user-select: none;
|
|
27747
27750
|
}
|
|
27748
27751
|
@media (max-width: 320px) {
|
|
27749
27752
|
.np-chip {
|
|
27750
|
-
block-size: var(--size-40);
|
|
27753
|
+
min-block-size: var(--size-40);
|
|
27751
27754
|
}
|
|
27752
27755
|
}
|
|
27753
27756
|
.np-chip:hover {
|
|
@@ -27773,6 +27776,9 @@ a[data-toggle="tooltip"] {
|
|
|
27773
27776
|
border-color: var(--color-interactive-accent);
|
|
27774
27777
|
pointer-events: none;
|
|
27775
27778
|
}
|
|
27779
|
+
.np-chip--selected[role="checkbox"] {
|
|
27780
|
+
pointer-events: auto;
|
|
27781
|
+
}
|
|
27776
27782
|
.np-chip--selected:hover,
|
|
27777
27783
|
.np-chip--selected:active {
|
|
27778
27784
|
color: #fff;
|
|
@@ -27900,6 +27906,10 @@ a[data-toggle="tooltip"] {
|
|
|
27900
27906
|
.np-theme-personal .np-chip--valid .np-close-button:focus-within {
|
|
27901
27907
|
outline: none;
|
|
27902
27908
|
}
|
|
27909
|
+
.np-chips {
|
|
27910
|
+
flex-wrap: wrap;
|
|
27911
|
+
row-gap: var(--size-8);
|
|
27912
|
+
}
|
|
27903
27913
|
.np-circular-btn {
|
|
27904
27914
|
display: inline-flex;
|
|
27905
27915
|
flex-direction: column;
|
package/src/main.less
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
@import "./Carousel/Carousel.less";
|
|
25
25
|
@import "./CheckboxButton/CheckboxButton.less";
|
|
26
26
|
@import "./Chips/Chip/Chip.less";
|
|
27
|
+
@import "./Chips/Chips.less";
|
|
27
28
|
@import "./CircularButton/CircularButton.less";
|
|
28
29
|
@import "./common/Circle/Circle.less";
|
|
29
30
|
@import "./common/BaseCard/BaseCard.less";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var reactIntl = require('react-intl');
|
|
6
|
-
|
|
7
|
-
var messages = reactIntl.defineMessages({
|
|
8
|
-
ariaLabel: {
|
|
9
|
-
id: "neptune.Chips.ariaLabel"
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
exports.default = messages;
|
|
14
|
-
//# sourceMappingURL=Chips.messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chips.messages.js","sources":["../../src/Chips/Chips.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.Chips.ariaLabel',\n defaultMessage: 'Clear {choice}',\n description: 'Clear button for chip',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;;;;;AAEA,eAAeA,wBAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;AACF,CAAA,CAAC;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chips.messages.mjs","sources":["../../src/Chips/Chips.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.Chips.ariaLabel',\n defaultMessage: 'Clear {choice}',\n description: 'Clear button for chip',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;AAEA,eAAeA,cAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;AACF,CAAA,CAAC;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chips.messages.d.ts","sourceRoot":"","sources":["../../../src/Chips/Chips.messages.ts"],"names":[],"mappings":";;;;;;;AAEA,wBAMG"}
|