@transferwise/components 45.20.0 → 45.21.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/i18n/cs.json +11 -3
- package/build/i18n/de.json +11 -3
- package/build/i18n/en.json +1 -0
- package/build/i18n/es.json +11 -3
- package/build/i18n/fr.json +11 -3
- package/build/i18n/hu.json +11 -3
- package/build/i18n/id.json +11 -3
- package/build/i18n/it.json +11 -3
- package/build/i18n/ja.json +11 -3
- package/build/i18n/pl.json +11 -3
- package/build/i18n/pt.json +11 -3
- package/build/i18n/ro.json +11 -3
- package/build/i18n/ru.json +11 -3
- package/build/i18n/th.json +11 -3
- package/build/i18n/tr.json +11 -3
- package/build/i18n/uk.json +11 -3
- package/build/i18n/zh-CN.json +11 -3
- package/build/i18n/{zh.json → zh-HK.json} +11 -3
- package/build/index.esm.js +535 -236
- package/build/index.esm.js.map +1 -1
- package/build/index.js +535 -236
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/actionButton/ActionButton.css +1 -1
- package/build/styles/chips/Chip.css +1 -1
- package/build/styles/circularButton/CircularButton.css +1 -1
- package/build/styles/common/Option/Option.css +1 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
- package/build/styles/common/closeButton/CloseButton.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +1 -1
- package/build/styles/drawer/Drawer.css +1 -1
- package/build/styles/flowNavigation/FlowNavigation.css +1 -1
- package/build/styles/inputs/SelectInput.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/overlayHeader/OverlayHeader.css +1 -1
- package/build/styles/statusIcon/StatusIcon.css +1 -1
- package/build/styles/summary/Summary.css +1 -1
- package/build/styles/typeahead/Typeahead.css +1 -1
- package/build/styles/uploadInput/UploadInput.css +1 -1
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
- package/build/types/common/locale/index.d.ts +10 -1
- package/build/types/common/locale/index.d.ts.map +1 -1
- package/build/types/common/propsValues/breakpoint.d.ts +1 -0
- package/build/types/common/propsValues/breakpoint.d.ts.map +1 -1
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
- package/build/types/i18n/index.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.messages.d.ts +9 -0
- package/build/types/inputs/SelectInput.messages.d.ts.map +1 -0
- package/build/types/test-utils/story-config.d.ts +11 -1
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/build/types/test-utils/window-mock.d.ts +2 -0
- package/build/types/test-utils/window-mock.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/actionButton/ActionButton.css +1 -1
- package/src/actionButton/ActionButton.less +5 -1
- package/src/chips/Chip.css +1 -1
- package/src/chips/Chip.less +8 -0
- package/src/circularButton/CircularButton.css +1 -1
- package/src/circularButton/CircularButton.less +9 -3
- package/src/common/Option/Option.css +1 -1
- package/src/common/Option/Option.less +6 -0
- package/src/common/bottomSheet/BottomSheet.css +1 -1
- package/src/common/bottomSheet/BottomSheet.less +1 -1
- package/src/common/bottomSheet/BottomSheet.spec.tsx +4 -1
- package/src/common/bottomSheet/BottomSheet.story.tsx +4 -0
- package/src/common/bottomSheet/BottomSheet.tsx +10 -1
- package/src/common/closeButton/CloseButton.css +1 -1
- package/src/common/closeButton/CloseButton.less +12 -0
- package/src/common/hooks/useMedia.spec.ts +3 -17
- package/src/common/locale/index.js +10 -1
- package/src/common/locale/index.spec.js +1 -34
- package/src/common/propsValues/breakpoint.ts +1 -0
- package/src/dateLookup/DateLookup.css +1 -1
- package/src/dateLookup/DateLookup.js +7 -3
- package/src/dateLookup/DateLookup.keyboardEvents.spec.js +3 -0
- package/src/dateLookup/DateLookup.less +6 -0
- package/src/dateLookup/DateLookup.story.js +6 -1
- package/src/dateLookup/DateLookup.testingLibrary.spec.js +3 -1
- package/src/dateLookup/DateLookup.view.spec.js +4 -0
- package/src/dateLookup/dateHeader/DateHeader.js +4 -2
- package/src/drawer/Drawer.css +1 -1
- package/src/drawer/Drawer.less +6 -8
- package/src/drawer/Drawer.story.js +42 -2
- package/src/flowNavigation/FlowNavigation.css +1 -1
- package/src/i18n/cs.json +11 -3
- package/src/i18n/de.json +11 -3
- package/src/i18n/en.json +1 -0
- package/src/i18n/es.json +11 -3
- package/src/i18n/fr.json +11 -3
- package/src/i18n/hu.json +11 -3
- package/src/i18n/id.json +11 -3
- package/src/i18n/index.ts +6 -2
- package/src/i18n/it.json +11 -3
- package/src/i18n/ja.json +11 -3
- package/src/i18n/pl.json +11 -3
- package/src/i18n/pt.json +11 -3
- package/src/i18n/ro.json +11 -3
- package/src/i18n/ru.json +11 -3
- package/src/i18n/th.json +11 -3
- package/src/i18n/tr.json +11 -3
- package/src/i18n/uk.json +11 -3
- package/src/i18n/zh-CN.json +11 -3
- package/src/i18n/{zh.json → zh-HK.json} +11 -3
- package/src/inputs/SelectInput.css +1 -1
- package/src/inputs/SelectInput.less +13 -1
- package/src/inputs/SelectInput.messages.ts +9 -0
- package/src/inputs/SelectInput.story.tsx +8 -5
- package/src/inputs/SelectInput.tsx +55 -22
- package/src/inputs/_BottomSheet.tsx +19 -19
- package/src/main.css +1 -1
- package/src/modal/Modal.tsx +2 -2
- package/src/overlayHeader/OverlayHeader.css +1 -1
- package/src/popover/Popover.spec.js +3 -1
- package/src/radioGroup/RadioGroup.js +1 -1
- package/src/radioGroup/RadioGroup.spec.js +18 -0
- package/src/select/Select.spec.js +6 -9
- package/src/statusIcon/StatusIcon.css +1 -1
- package/src/statusIcon/StatusIcon.less +10 -0
- package/src/summary/Summary.css +1 -1
- package/src/summary/Summary.less +1 -1
- package/src/test-utils/index.js +1 -0
- package/src/test-utils/story-config.ts +21 -7
- package/src/test-utils/window-mock.ts +19 -0
- package/src/typeahead/Typeahead.css +1 -1
- package/src/typeahead/Typeahead.less +5 -6
- package/src/uploadInput/UploadInput.css +1 -1
- package/src/uploadInput/UploadInput.less +5 -1
- package/build/i18n/zh_CN.json +0 -44
- package/src/i18n/zh_CN.json +0 -44
|
@@ -1 +1 @@
|
|
|
1
|
-
.tw-date-lookup-menu{width:400px}.tw-date-lookup-calendar{min-width:300px;table-layout:fixed;text-align:center}.tw-date-lookup-calendar>tbody>tr>td{padding:4px;padding:var(--size-4)}.tw-date-lookup-calendar>tbody>tr>td button{background-color:transparent;border:transparent;border-radius:10px;border-radius:var(--radius-small);color:#0097c7;color:var(--color-content-accent);font-weight:600;font-weight:var(--font-weight-semi-bold);padding:4px 0;padding:var(--size-4) 0;width:100%}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active{background-color:#0081ba;background-color:var(--color-interactive-accent-active);color:#fff}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{background-color:#008fc9;background-color:var(--color-interactive-accent-hover);color:#fff}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{color:var(--color-interactive-control)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+6) button,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+7) button,.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+6),.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+7){color:#5d7079;color:var(--color-content-secondary);font-weight:400;font-weight:var(--font-weight-regular)}.tw-date-lookup-calendar abbr{text-decoration:none}.np-theme-personal .tw-date-lookup-calendar{background-color:inherit}.np-theme-personal .tw-date-lookup-menu .table-bordered,.np-theme-personal.tw-date-lookup-menu .table-bordered{border:none}.np-theme-personal .tw-date-lookup-menu thead,.np-theme-personal.tw-date-lookup-menu thead{background-color:unset}.np-theme-personal .tw-date-lookup-menu td,.np-theme-personal.tw-date-lookup-menu td{border:none}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-header-current-container,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-header-current-container{display:inline-block}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-header-current-container .tw-date-lookup-header-current,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-header-current-container .tw-date-lookup-header-current{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option{align-items:center;color:#37517e;color:var(--color-content-primary);display:inline-flex;height:32px;height:var(--size-32);justify-content:center;line-height:32px;line-height:var(--size-32)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option.active,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option.active{background-color:#00a2dd;background-color:var(--color-interactive-accent);color:var(--color-interactive-primary)}
|
|
1
|
+
.tw-date-lookup-menu{width:400px}.tw-date-lookup-calendar{min-width:300px;table-layout:fixed;text-align:center}.tw-date-lookup-calendar>tbody>tr>td{padding:4px;padding:var(--size-4)}@media (max-width:320px){.tw-date-lookup-calendar>tbody>tr>td{padding:0}}.tw-date-lookup-calendar>tbody>tr>td button{background-color:transparent;border:transparent;border-radius:10px;border-radius:var(--radius-small);color:#0097c7;color:var(--color-content-accent);font-weight:600;font-weight:var(--font-weight-semi-bold);padding:4px 0;padding:var(--size-4) 0;width:100%}@media (max-width:320px){.tw-date-lookup-calendar>tbody>tr>td button{padding:0}}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active{background-color:#0081ba;background-color:var(--color-interactive-accent-active);color:#fff}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{background-color:#008fc9;background-color:var(--color-interactive-accent-hover);color:#fff}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{color:var(--color-interactive-control)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+6) button,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+7) button,.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+6),.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+7){color:#5d7079;color:var(--color-content-secondary);font-weight:400;font-weight:var(--font-weight-regular)}.tw-date-lookup-calendar abbr{text-decoration:none}.np-theme-personal .tw-date-lookup-calendar{background-color:inherit}.np-theme-personal .tw-date-lookup-menu .table-bordered,.np-theme-personal.tw-date-lookup-menu .table-bordered{border:none}.np-theme-personal .tw-date-lookup-menu thead,.np-theme-personal.tw-date-lookup-menu thead{background-color:unset}.np-theme-personal .tw-date-lookup-menu td,.np-theme-personal.tw-date-lookup-menu td{border:none}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-header-current-container,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-header-current-container{display:inline-block}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-header-current-container .tw-date-lookup-header-current,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-header-current-container .tw-date-lookup-header-current{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option{align-items:center;color:#37517e;color:var(--color-content-primary);display:inline-flex;height:32px;height:var(--size-32);justify-content:center;line-height:32px;line-height:var(--size-32)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option.active,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option.active{background-color:#00a2dd;background-color:var(--color-interactive-accent);color:var(--color-interactive-primary)}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import classNames from 'classnames';
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { createRef, PureComponent } from 'react';
|
|
3
4
|
|
|
4
|
-
import { Size, MonthFormat, Position } from '../common';
|
|
5
|
+
import { Size, MonthFormat, Position, Breakpoint } from '../common';
|
|
5
6
|
import { isWithinRange, moveToWithinRange } from '../common/dateUtils';
|
|
6
7
|
import KeyCodes from '../common/keyCodes';
|
|
7
8
|
import ResponsivePanel from '../common/responsivePanel';
|
|
@@ -33,6 +34,7 @@ class DateLookup extends PureComponent {
|
|
|
33
34
|
viewYear: (props.value || new Date()).getFullYear(),
|
|
34
35
|
open: false,
|
|
35
36
|
mode: MODE.DAY,
|
|
37
|
+
isMobile: false,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -63,6 +65,8 @@ class DateLookup extends PureComponent {
|
|
|
63
65
|
if (+this.props.value !== +previousProps.value && this.state.open) {
|
|
64
66
|
this.focusOn('.active');
|
|
65
67
|
}
|
|
68
|
+
this.mediaQuery = window.matchMedia(`(max-width: ${Breakpoint.SMALL}px)`);
|
|
69
|
+
this.setState({ isMobile: this.mediaQuery.matches });
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
componentWillUnmount() {
|
|
@@ -183,10 +187,10 @@ class DateLookup extends PureComponent {
|
|
|
183
187
|
};
|
|
184
188
|
|
|
185
189
|
getCalendar = () => {
|
|
186
|
-
const { selectedDate, min, max, viewMonth, viewYear, mode } = this.state;
|
|
190
|
+
const { selectedDate, min, max, viewMonth, viewYear, mode, isMobile } = this.state;
|
|
187
191
|
const { placeholder, monthFormat } = this.props;
|
|
188
192
|
return (
|
|
189
|
-
<div className=
|
|
193
|
+
<div className={classNames({ 'p-a-1': !isMobile })}>
|
|
190
194
|
{mode === MODE.DAY && (
|
|
191
195
|
<DayCalendar
|
|
192
196
|
{...{ selectedDate, min, max, viewMonth, viewYear, monthFormat }}
|
|
@@ -3,9 +3,12 @@ import { mount } from 'enzyme';
|
|
|
3
3
|
|
|
4
4
|
import { fakeKeyDownEventForKey } from '../common/fakeEvents';
|
|
5
5
|
import KEY_CODES from '../common/keyCodes';
|
|
6
|
+
import { mockMatchMedia } from '../test-utils';
|
|
6
7
|
|
|
7
8
|
import DateLookup from '.';
|
|
8
9
|
|
|
10
|
+
mockMatchMedia();
|
|
11
|
+
|
|
9
12
|
const defaultLocale = 'en-GB';
|
|
10
13
|
const formatMessage = (id) => `${id}`;
|
|
11
14
|
jest.mock('react-intl', () => ({
|
|
@@ -11,10 +11,16 @@
|
|
|
11
11
|
|
|
12
12
|
> tbody > tr > td {
|
|
13
13
|
padding: var(--size-4);
|
|
14
|
+
@media (--screen-400-zoom) {
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
14
17
|
|
|
15
18
|
button {
|
|
16
19
|
width: 100%;
|
|
17
20
|
padding: var(--size-4) 0;
|
|
21
|
+
@media (--screen-400-zoom) {
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
18
24
|
color: var(--color-content-accent);
|
|
19
25
|
border: transparent;
|
|
20
26
|
border-radius: var(--radius-small);
|
|
@@ -2,7 +2,7 @@ import { boolean, select, date, text } from '@storybook/addon-knobs';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
|
|
4
4
|
import { Size } from '../common';
|
|
5
|
-
import { within, userEvent } from '../test-utils';
|
|
5
|
+
import { within, userEvent, storyConfig } from '../test-utils';
|
|
6
6
|
|
|
7
7
|
import DateLookup from './DateLookup';
|
|
8
8
|
|
|
@@ -47,6 +47,11 @@ Basic.play = ({ canvasElement }) => {
|
|
|
47
47
|
userEvent.click(canvas.getByRole('button'));
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
+
export const Basic400Zoom = storyConfig(
|
|
51
|
+
{ render: Basic, play: Basic.play, parameters: { chromatic: { delay: 2000 } } },
|
|
52
|
+
{ variants: ['400%'] },
|
|
53
|
+
);
|
|
54
|
+
|
|
50
55
|
export const RightAligned = () => {
|
|
51
56
|
const [value, setValue] = useState(null);
|
|
52
57
|
const disabled = boolean('disabled', false);
|
|
@@ -2,10 +2,12 @@ import '@testing-library/jest-dom';
|
|
|
2
2
|
import user from '@testing-library/user-event';
|
|
3
3
|
|
|
4
4
|
import { Breakpoint } from '../common';
|
|
5
|
-
import { render, screen, fireEvent } from '../test-utils';
|
|
5
|
+
import { render, screen, fireEvent, mockMatchMedia } from '../test-utils';
|
|
6
6
|
|
|
7
7
|
import DateLookup from '.';
|
|
8
8
|
|
|
9
|
+
mockMatchMedia();
|
|
10
|
+
|
|
9
11
|
jest.mock(
|
|
10
12
|
'../dimmer',
|
|
11
13
|
() =>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { shallow } from 'enzyme';
|
|
2
2
|
|
|
3
|
+
import { mockMatchMedia } from '../test-utils';
|
|
4
|
+
|
|
3
5
|
import DateTrigger from './dateTrigger';
|
|
4
6
|
import DayCalendar from './dayCalendar';
|
|
5
7
|
import MonthCalendar from './monthCalendar';
|
|
@@ -7,6 +9,8 @@ import YearCalendar from './yearCalendar';
|
|
|
7
9
|
|
|
8
10
|
import DateLookup from '.';
|
|
9
11
|
|
|
12
|
+
mockMatchMedia();
|
|
13
|
+
|
|
10
14
|
const defaultLocale = 'en-GB';
|
|
11
15
|
jest.mock('react-intl', () => ({
|
|
12
16
|
injectIntl: (Component) =>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import classNames from 'classnames';
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { useIntl } from 'react-intl';
|
|
3
4
|
|
|
4
5
|
import Chevron from '../../chevron';
|
|
5
6
|
import { Position, Size, Typography } from '../../common';
|
|
7
|
+
import { useLayout } from '../../common/hooks';
|
|
6
8
|
import Title from '../../title';
|
|
7
9
|
import messages from '../DateLookup.messages';
|
|
8
10
|
|
|
@@ -10,9 +12,9 @@ const buttonClasses = 'btn-link p-a-0 text-no-decoration np-text-body-large-bold
|
|
|
10
12
|
|
|
11
13
|
const DateHeader = ({ label, onLabelClick, onPreviousClick, onNextClick, dateMode }) => {
|
|
12
14
|
const intl = useIntl();
|
|
13
|
-
|
|
15
|
+
const { isMobile } = useLayout();
|
|
14
16
|
return (
|
|
15
|
-
<div className=
|
|
17
|
+
<div className={classNames('text-xs-center', !isMobile && ['clearfix', 'p-y-1'])}>
|
|
16
18
|
<div className="pull-left-single-direction">
|
|
17
19
|
<button
|
|
18
20
|
type="button"
|
package/src/drawer/Drawer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-drawer{display:flex;flex-direction:column;height:100vh;height:100dvh;justify-content:space-between;max-height:100vh;max-height:100dvh;max-width:600px;width:100vw}.np-drawer .np-drawer-header{display:flex;flex-wrap:nowrap;min-height:56px;min-height:var(--size-56);padding:24px 16px;padding:var(--size-24) var(--size-16)}.np-theme-personal .np-drawer .np-drawer-header{padding:24px;padding:var(--size-24)}.np-theme-personal .np-drawer .np-drawer-header
|
|
1
|
+
.np-drawer{display:flex;flex-direction:column;height:100vh;height:100dvh;justify-content:space-between;max-height:100vh;max-height:100dvh;max-width:600px;width:100vw}@media (max-width:770px){.np-drawer{max-width:unset}}.np-drawer .np-drawer-header{align-items:center;display:flex;flex-wrap:nowrap;min-height:56px;min-height:var(--size-56);padding:24px 16px;padding:var(--size-24) var(--size-16)}.np-theme-personal .np-drawer .np-drawer-header{padding:24px;padding:var(--size-24)}@media (max-width:320px){.np-theme-personal .np-drawer .np-drawer-header{padding:16px;padding:var(--size-16)}}.np-theme-personal .np-drawer .np-drawer-header .np-close-button{margin-bottom:-8px;margin-bottom:calc(var(--size-8)*-1);margin-right:-8px;margin-right:calc(var(--size-8)*-1);margin-top:-8px;margin-top:calc(var(--size-8)*-1)}.np-drawer .np-drawer-header.np-drawer-header--withborder{box-shadow:inset 0 -1px 0 0 #e2e6e8}.np-theme-personal .np-drawer .np-drawer-header.np-drawer-header--withborder{box-shadow:inset 0 -1px 0 0 #0000001a;box-shadow:inset 0 -1px 0 0 var(--color-border-neutral)}.np-drawer .np-drawer-header .np-text-title-body{font-size:1.125rem;font-size:var(--font-size-18);letter-spacing:-.01em;letter-spacing:var(--letter-spacing-negative-xs);line-height:1.5rem;line-height:var(--line-height-24);margin-right:16px;margin-right:var(--size-16)}.np-drawer .np-drawer-header .np-close-button{margin-left:auto}.np-drawer .np-drawer-header .tw-icon{fill:#00b9ff;cursor:pointer;display:block}.np-drawer .np-drawer-content{flex:1;overflow-y:auto}.np-drawer .np-drawer-content,.np-drawer .np-drawer-footer{padding:16px;padding:var(--size-16)}.np-drawer .np-drawer-footer{box-shadow:inset 0 1px 0 0 #e2e6e8}.np-theme-personal .np-drawer .np-drawer-footer{box-shadow:inset 0 1px 0 0 #0000001a;box-shadow:inset 0 1px 0 0 var(--color-border-neutral)}@media (min-width:768px){.np-drawer .np-drawer-header{padding:32px 24px;padding:var(--size-32) var(--size-24)}.np-drawer .np-drawer-content,.np-drawer .np-drawer-footer,.np-theme-personal .np-drawer .np-drawer-header{padding:24px;padding:var(--size-24)}}
|
package/src/drawer/Drawer.less
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
width: 100vw;
|
|
9
9
|
max-width: 600px;
|
|
10
|
+
@media (max-width: 770px) {
|
|
11
|
+
max-width: unset;
|
|
12
|
+
}
|
|
10
13
|
height: 100vh;
|
|
11
14
|
height: 100dvh;
|
|
12
15
|
max-height: 100vh;
|
|
@@ -14,16 +17,15 @@
|
|
|
14
17
|
|
|
15
18
|
.np-drawer-header {
|
|
16
19
|
display: flex;
|
|
20
|
+
align-items: center;
|
|
17
21
|
flex-wrap: nowrap;
|
|
18
22
|
min-height: var(--size-56);
|
|
19
23
|
padding: var(--size-24) var(--size-16);
|
|
20
24
|
|
|
21
25
|
.np-theme-personal & {
|
|
22
26
|
padding: var(--size-24);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
padding-top: 0;
|
|
26
|
-
margin-bottom: 0;
|
|
27
|
+
@media (--screen-400-zoom) {
|
|
28
|
+
padding: var(--size-16);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.np-close-button {
|
|
@@ -44,14 +46,10 @@
|
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.np-text-title-body {
|
|
47
|
-
@vertical-alignment-shift: 2px;
|
|
48
|
-
|
|
49
49
|
margin-right: var(--size-16);
|
|
50
50
|
font-size: var(--font-size-18);
|
|
51
51
|
letter-spacing: var(--letter-spacing-negative-xs);
|
|
52
52
|
line-height: var(--line-height-24);
|
|
53
|
-
padding-top: @vertical-alignment-shift;
|
|
54
|
-
margin-bottom: -@vertical-alignment-shift;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
.np-close-button {
|
|
@@ -2,7 +2,8 @@ import { select } from '@storybook/addon-knobs';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
|
|
4
4
|
import { Section, Button, Input, Modal } from '..';
|
|
5
|
-
import { Position } from '../common';
|
|
5
|
+
import { Position, Priority } from '../common';
|
|
6
|
+
import { storyConfig } from '../test-utils';
|
|
6
7
|
|
|
7
8
|
import Drawer from './Drawer';
|
|
8
9
|
|
|
@@ -40,7 +41,10 @@ export const Basic = () => {
|
|
|
40
41
|
footerContent={
|
|
41
42
|
<>
|
|
42
43
|
<Button block onClick={() => {}}>
|
|
43
|
-
Action
|
|
44
|
+
Action 1
|
|
45
|
+
</Button>
|
|
46
|
+
<Button block priority={Priority.SECONDARY} onClick={() => {}}>
|
|
47
|
+
Action 2
|
|
44
48
|
</Button>
|
|
45
49
|
</>
|
|
46
50
|
}
|
|
@@ -77,6 +81,42 @@ export const Basic = () => {
|
|
|
77
81
|
onClose={handleModalClose}
|
|
78
82
|
/>
|
|
79
83
|
</Section>
|
|
84
|
+
<p>
|
|
85
|
+
I am baby actually poke kickstarter, street art jean shorts bespoke chambray activated
|
|
86
|
+
charcoal ramps marfa shoreditch tumeric tumblr. Mixtape cred palo santo, cliche lyft marfa
|
|
87
|
+
ethical waistcoat poke jean shorts. Scenester readymade selvage disrupt pok pok. La croix
|
|
88
|
+
stumptown try-hard chartreuse.
|
|
89
|
+
</p>
|
|
90
|
+
<p>
|
|
91
|
+
I am baby actually poke kickstarter, street art jean shorts bespoke chambray activated
|
|
92
|
+
charcoal ramps marfa shoreditch tumeric tumblr. Mixtape cred palo santo, cliche lyft marfa
|
|
93
|
+
ethical waistcoat poke jean shorts. Scenester readymade selvage disrupt pok pok. La croix
|
|
94
|
+
stumptown try-hard chartreuse.
|
|
95
|
+
</p>
|
|
96
|
+
<p>
|
|
97
|
+
I am baby actually poke kickstarter, street art jean shorts bespoke chambray activated
|
|
98
|
+
charcoal ramps marfa shoreditch tumeric tumblr. Mixtape cred palo santo, cliche lyft marfa
|
|
99
|
+
ethical waistcoat poke jean shorts. Scenester readymade selvage disrupt pok pok. La croix
|
|
100
|
+
stumptown try-hard chartreuse.
|
|
101
|
+
</p>
|
|
102
|
+
<p>
|
|
103
|
+
I am baby actually poke kickstarter, street art jean shorts bespoke chambray activated
|
|
104
|
+
charcoal ramps marfa shoreditch tumeric tumblr. Mixtape cred palo santo, cliche lyft marfa
|
|
105
|
+
ethical waistcoat poke jean shorts. Scenester readymade selvage disrupt pok pok. La croix
|
|
106
|
+
stumptown try-hard chartreuse.
|
|
107
|
+
</p>
|
|
108
|
+
<p>
|
|
109
|
+
I am baby actually poke kickstarter, street art jean shorts bespoke chambray activated
|
|
110
|
+
charcoal ramps marfa shoreditch tumeric tumblr. Mixtape cred palo santo, cliche lyft marfa
|
|
111
|
+
ethical waistcoat poke jean shorts. Scenester readymade selvage disrupt pok pok. La croix
|
|
112
|
+
stumptown try-hard chartreuse.
|
|
113
|
+
</p>
|
|
114
|
+
<p>
|
|
115
|
+
I am baby actually poke kickstarter, street art jean shorts bespoke chambray activated
|
|
116
|
+
charcoal ramps marfa shoreditch tumeric tumblr. Mixtape cred palo santo, cliche lyft marfa
|
|
117
|
+
ethical waistcoat poke jean shorts. Scenester readymade selvage disrupt pok pok. La croix
|
|
118
|
+
stumptown try-hard chartreuse.
|
|
119
|
+
</p>
|
|
80
120
|
</Drawer>
|
|
81
121
|
</>
|
|
82
122
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-flow-navigation{min-height:97px;width:100%}.np-flow-navigation--border-bottom{border-bottom:1px solid #0000001a;border-bottom:1px solid var(--color-border-neutral);min-height:96px}.np-flow-navigation__content{max-width:1164px;min-width:320px;width:100%}.np-flow-navigation__stepper{padding-bottom:0!important}[dir=rtl] .np-flow-navigation__stepper{padding-right:0!important}[dir=rtl] .np-flow-navigation__stepper,html:not([dir=rtl]) .np-flow-navigation__stepper{padding-left:0!important}html:not([dir=rtl]) .np-flow-navigation__stepper{padding-right:0!important}.np-flow-navigation--xs-max .np-flow-navigation__stepper .tw-stepper-steps{display:none}.np-flow-navigation--xs-max .np-flow-navigation__stepper .progress{margin-bottom:0}.np-flow-navigation--xs-max .np-animated-label{height:auto}.np-flow-navigation--sm .np-flow-navigation__stepper{min-height:56px}[dir=rtl] .np-flow-navigation--sm .np-flow-navigation__stepper{padding-right:24px!important}[dir=rtl] .np-flow-navigation--sm .np-flow-navigation__stepper,html:not([dir=rtl]) .np-flow-navigation--sm .np-flow-navigation__stepper{padding-left:24px!important}html:not([dir=rtl]) .np-flow-navigation--sm .np-flow-navigation__stepper{padding-right:24px!important}.np-flow-navigation--lg .np-flow-navigation__stepper{max-width:562px}.np-flow-navigation--lg .np-flow-header__left,.np-flow-navigation--lg .np-flow-header__right{width:180px}.np-flow-navigation .separator{background-color:#0000001a;background-color:var(--color-border-neutral);height:32px;height:var(--size-32);min-width:1px;width:1px}[dir=rtl] .np-flow-navigation .separator{margin-right:16px!important}[dir=rtl] .np-flow-navigation .separator,html:not([dir=rtl]) .np-flow-navigation .separator{margin-left:16px!important}html:not([dir=rtl]) .np-flow-navigation .separator{margin-right:16px!important}.np-flow-navigation--hidden{visibility:hidden}.np-theme-personal--bright-green .np-flow-navigation .np-flow-header__left path,.np-theme-personal--dark .np-flow-navigation .np-flow-header__left path,.np-theme-personal--forest-green .np-flow-navigation .np-flow-header__left path{fill:var(--color-interactive-primary)}
|
|
1
|
+
.np-flow-navigation{min-height:97px;width:100%}.np-flow-navigation--border-bottom{border-bottom:1px solid #0000001a;border-bottom:1px solid var(--color-border-neutral);min-height:96px}.np-flow-navigation__content{max-width:1164px;min-width:320px;width:100%}.np-flow-navigation__stepper{padding-bottom:0!important}[dir=rtl] .np-flow-navigation__stepper{padding-right:0!important}[dir=rtl] .np-flow-navigation__stepper,html:not([dir=rtl]) .np-flow-navigation__stepper{padding-left:0!important}html:not([dir=rtl]) .np-flow-navigation__stepper{padding-right:0!important}.np-flow-navigation--xs-max .np-flow-navigation__stepper .tw-stepper-steps{display:none}.np-flow-navigation--xs-max .np-flow-navigation__stepper .progress{margin-bottom:0}.np-flow-navigation--xs-max .np-animated-label{height:auto}.np-flow-navigation--sm .np-flow-navigation__stepper{min-height:56px}[dir=rtl] .np-flow-navigation--sm .np-flow-navigation__stepper{padding-right:24px!important;padding-right:var(--size-24)!important}[dir=rtl] .np-flow-navigation--sm .np-flow-navigation__stepper,html:not([dir=rtl]) .np-flow-navigation--sm .np-flow-navigation__stepper{padding-left:24px!important;padding-left:var(--size-24)!important}html:not([dir=rtl]) .np-flow-navigation--sm .np-flow-navigation__stepper{padding-right:24px!important;padding-right:var(--size-24)!important}.np-flow-navigation--lg .np-flow-navigation__stepper{max-width:562px}.np-flow-navigation--lg .np-flow-header__left,.np-flow-navigation--lg .np-flow-header__right{width:180px}.np-flow-navigation .separator{background-color:#0000001a;background-color:var(--color-border-neutral);height:32px;height:var(--size-32);min-width:1px;width:1px}[dir=rtl] .np-flow-navigation .separator{margin-right:16px!important;margin-right:var(--size-16)!important}[dir=rtl] .np-flow-navigation .separator,html:not([dir=rtl]) .np-flow-navigation .separator{margin-left:16px!important;margin-left:var(--size-16)!important}html:not([dir=rtl]) .np-flow-navigation .separator{margin-right:16px!important;margin-right:var(--size-16)!important}.np-flow-navigation--hidden{visibility:hidden}.np-theme-personal--bright-green .np-flow-navigation .np-flow-header__left path,.np-theme-personal--dark .np-flow-navigation .np-flow-header__left path,.np-theme-personal--forest-green .np-flow-navigation .np-flow-header__left path{fill:var(--color-interactive-primary)}
|
package/src/i18n/cs.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "načítání",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Vyčistit {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Vyčistit",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Zavřít",
|
|
5
6
|
"neptune.DateInput.day.label": "Den",
|
|
6
7
|
"neptune.DateInput.month.label": "Měsíc",
|
|
7
8
|
"neptune.DateInput.year.label": "Rok",
|
|
9
|
+
"neptune.DateLookup.day": "den",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Go to 20 year view",
|
|
11
|
+
"neptune.DateLookup.month": "měsíc",
|
|
12
|
+
"neptune.DateLookup.next": "další",
|
|
13
|
+
"neptune.DateLookup.previous": "předchozí",
|
|
14
|
+
"neptune.DateLookup.selected": "vybráno",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 let",
|
|
16
|
+
"neptune.DateLookup.year": "rok",
|
|
17
|
+
"neptune.FlowNavigation.back": "back to previous step",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(opens in new tab)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Vybrat možnost...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Navigace v Pagination",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Přejít na stránku {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Současná stránka, stránka {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Hledat...",
|
|
13
21
|
"neptune.Summary.statusDone": "Položka dokončena",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Položka k dokončení",
|
package/src/i18n/de.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "wird geladen",
|
|
2
3
|
"neptune.Chips.ariaLabel": "{choice} zurücksetzen",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Zurücksetzen",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Schließen",
|
|
5
6
|
"neptune.DateInput.day.label": "Tag",
|
|
6
7
|
"neptune.DateInput.month.label": "Monat",
|
|
7
8
|
"neptune.DateInput.year.label": "Jahr",
|
|
9
|
+
"neptune.DateLookup.day": "Tag",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Zur 20-Jahres-Ansicht",
|
|
11
|
+
"neptune.DateLookup.month": "Monat",
|
|
12
|
+
"neptune.DateLookup.next": "weiter",
|
|
13
|
+
"neptune.DateLookup.previous": "zurück",
|
|
14
|
+
"neptune.DateLookup.selected": "ausgewählt",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 Jahre",
|
|
16
|
+
"neptune.DateLookup.year": "Jahr",
|
|
17
|
+
"neptune.FlowNavigation.back": "zurück zum vorherigen Schritt",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(wird in einem neuen Tab geöffnet)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Wähle eine der Möglichkeiten aus...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Seitennummer-Navigation",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Weiter zur Seite {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Aktuelle Seite – Seite {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Wird gesucht...",
|
|
13
21
|
"neptune.Summary.statusDone": "Schritt erledigt",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Schritt noch zu erledigen",
|
package/src/i18n/en.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.Link.opensInNewTab": "(opens in new tab)",
|
|
19
19
|
"neptune.MoneyInput.Select.placeholder": "Select an option...",
|
|
20
20
|
"neptune.Select.searchPlaceholder": "Search...",
|
|
21
|
+
"neptune.SelectInput.noResultsFound": "No results found",
|
|
21
22
|
"neptune.Summary.statusDone": "Item done",
|
|
22
23
|
"neptune.Summary.statusNotDone": "Item to do",
|
|
23
24
|
"neptune.Summary.statusPending": "Item pending",
|
package/src/i18n/es.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "cargando",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Descartar {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Borrar",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Cerrar",
|
|
5
6
|
"neptune.DateInput.day.label": "Día",
|
|
6
7
|
"neptune.DateInput.month.label": "Mes",
|
|
7
8
|
"neptune.DateInput.year.label": "Año",
|
|
9
|
+
"neptune.DateLookup.day": "día",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Ir a vista de 20 años",
|
|
11
|
+
"neptune.DateLookup.month": "mes",
|
|
12
|
+
"neptune.DateLookup.next": "siguiente",
|
|
13
|
+
"neptune.DateLookup.previous": "anterior",
|
|
14
|
+
"neptune.DateLookup.selected": "seleccionado",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 años",
|
|
16
|
+
"neptune.DateLookup.year": "año",
|
|
17
|
+
"neptune.FlowNavigation.back": "volver al paso anterior",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(se abre en una pestaña nueva)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Selecciona una opción...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Navegación por las páginas",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Ve a la página {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Página actual, página {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Buscar...",
|
|
13
21
|
"neptune.Summary.statusDone": "Apartado listo",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Apartado a completar",
|
package/src/i18n/fr.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "chargement",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Effacer {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Effacer",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Fermer",
|
|
5
6
|
"neptune.DateInput.day.label": "Jour",
|
|
6
7
|
"neptune.DateInput.month.label": "Mois",
|
|
7
8
|
"neptune.DateInput.year.label": "Année",
|
|
9
|
+
"neptune.DateLookup.day": "jour",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Accéder à la vue sur 20 ans",
|
|
11
|
+
"neptune.DateLookup.month": "mois",
|
|
12
|
+
"neptune.DateLookup.next": "suivant",
|
|
13
|
+
"neptune.DateLookup.previous": "précédent",
|
|
14
|
+
"neptune.DateLookup.selected": "sélectionnée",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 ans",
|
|
16
|
+
"neptune.DateLookup.year": "année",
|
|
17
|
+
"neptune.FlowNavigation.back": "revenir à l'étape précédente",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Navigation par pagination",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Aller à la page {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Page actuelle, page {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Recherche...",
|
|
13
21
|
"neptune.Summary.statusDone": "Validé",
|
|
14
22
|
"neptune.Summary.statusNotDone": "À compléter",
|
package/src/i18n/hu.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "betöltés",
|
|
2
3
|
"neptune.Chips.ariaLabel": "{choice} törlése",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Törlés",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Bezárás",
|
|
5
6
|
"neptune.DateInput.day.label": "Nap",
|
|
6
7
|
"neptune.DateInput.month.label": "Hónap",
|
|
7
8
|
"neptune.DateInput.year.label": "Év",
|
|
9
|
+
"neptune.DateLookup.day": "nap",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Ugrás a 20 éves nézetre",
|
|
11
|
+
"neptune.DateLookup.month": "hónap",
|
|
12
|
+
"neptune.DateLookup.next": "következő",
|
|
13
|
+
"neptune.DateLookup.previous": "előző",
|
|
14
|
+
"neptune.DateLookup.selected": "kiválasztva",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 év",
|
|
16
|
+
"neptune.DateLookup.year": "év",
|
|
17
|
+
"neptune.FlowNavigation.back": "vissza az előző lépéshez",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(új lapon nyílik meg)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Válassz ki egy lehetőséget...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Lapszámos navigáció",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Ugrás a(z) {pageNumber}. oldalra",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Jelenlegi oldal, {pageNumber}. oldal",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Keresés...",
|
|
13
21
|
"neptune.Summary.statusDone": "Kész",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Hátravan",
|
package/src/i18n/id.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "memuat",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Hapus {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Hapus",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Tutup",
|
|
5
6
|
"neptune.DateInput.day.label": "Hari",
|
|
6
7
|
"neptune.DateInput.month.label": "Bulan",
|
|
7
8
|
"neptune.DateInput.year.label": "Tahun",
|
|
9
|
+
"neptune.DateLookup.day": "hari",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Lihat tampilan 20 tahun",
|
|
11
|
+
"neptune.DateLookup.month": "bulan",
|
|
12
|
+
"neptune.DateLookup.next": "berikutnya",
|
|
13
|
+
"neptune.DateLookup.previous": "sebelumnya",
|
|
14
|
+
"neptune.DateLookup.selected": "terpilih",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 tahun",
|
|
16
|
+
"neptune.DateLookup.year": "tahun",
|
|
17
|
+
"neptune.FlowNavigation.back": "kembali ke langkah sebelumnya",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(terbuka di tab baru)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Pilih opsi...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Halaman navigasi",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Lanjut ke halaman {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Halaman saat ini, halaman {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Cari...",
|
|
13
21
|
"neptune.Summary.statusDone": "Item selesai",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Item yang harus dilakukan",
|
package/src/i18n/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import cs from './cs.json';
|
|
1
2
|
import de from './de.json';
|
|
2
3
|
import en from './en.json';
|
|
3
4
|
import es from './es.json';
|
|
@@ -13,9 +14,11 @@ import ru from './ru.json';
|
|
|
13
14
|
import th from './th.json';
|
|
14
15
|
import tr from './tr.json';
|
|
15
16
|
import uk from './uk.json';
|
|
16
|
-
import
|
|
17
|
+
import zhCN from './zh-CN.json';
|
|
18
|
+
import zhHK from './zh-HK.json';
|
|
17
19
|
|
|
18
20
|
const translations: Record<string, Record<string, string>> = {
|
|
21
|
+
cs,
|
|
19
22
|
de,
|
|
20
23
|
en,
|
|
21
24
|
es,
|
|
@@ -31,7 +34,8 @@ const translations: Record<string, Record<string, string>> = {
|
|
|
31
34
|
th,
|
|
32
35
|
tr,
|
|
33
36
|
uk,
|
|
34
|
-
zh,
|
|
37
|
+
'zh-CN': zhCN,
|
|
38
|
+
'zh-HK': zhHK,
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
export default translations;
|
package/src/i18n/it.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "caricamento",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Rimuovi {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Elimina",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Chiudi",
|
|
5
6
|
"neptune.DateInput.day.label": "Giorno",
|
|
6
7
|
"neptune.DateInput.month.label": "Mese",
|
|
7
8
|
"neptune.DateInput.year.label": "Anno",
|
|
9
|
+
"neptune.DateLookup.day": "giorno",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Vai alla vista su 20 anni",
|
|
11
|
+
"neptune.DateLookup.month": "mese",
|
|
12
|
+
"neptune.DateLookup.next": "continua",
|
|
13
|
+
"neptune.DateLookup.previous": "indietro",
|
|
14
|
+
"neptune.DateLookup.selected": "selezionata",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 anni",
|
|
16
|
+
"neptune.DateLookup.year": "anno",
|
|
17
|
+
"neptune.FlowNavigation.back": "torna al passaggio precedente",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(si apre in una nuova scheda)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Seleziona un'opzione...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Navigazione",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Via a pagina {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Pagina corrente, pagina {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Cerca...",
|
|
13
21
|
"neptune.Summary.statusDone": "Completato",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Da completare",
|
package/src/i18n/ja.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "読み込み中…",
|
|
2
3
|
"neptune.Chips.ariaLabel": "{choice} をクリア",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "消去",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "閉じる",
|
|
5
6
|
"neptune.DateInput.day.label": "日",
|
|
6
7
|
"neptune.DateInput.month.label": "月",
|
|
7
8
|
"neptune.DateInput.year.label": "年",
|
|
9
|
+
"neptune.DateLookup.day": "日",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "20年表示に移動する",
|
|
11
|
+
"neptune.DateLookup.month": "月",
|
|
12
|
+
"neptune.DateLookup.next": "次",
|
|
13
|
+
"neptune.DateLookup.previous": "前",
|
|
14
|
+
"neptune.DateLookup.selected": "選択済み",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20年",
|
|
16
|
+
"neptune.DateLookup.year": "年",
|
|
17
|
+
"neptune.FlowNavigation.back": "前のステップに戻る",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(新しいタブで開きます)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "選択してください...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "ページネーションナビゲーション",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "{pageNumber}のページへ移動します",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "現在のページ、{pageNumber}ページ",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "検索... ",
|
|
13
21
|
"neptune.Summary.statusDone": "完了",
|
|
14
22
|
"neptune.Summary.statusNotDone": "未対応",
|
package/src/i18n/pl.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "ładowanie",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Wyczyść {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Wyczyść",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Zamknij",
|
|
5
6
|
"neptune.DateInput.day.label": "Dzień",
|
|
6
7
|
"neptune.DateInput.month.label": "Miesiąc",
|
|
7
8
|
"neptune.DateInput.year.label": "Rok",
|
|
9
|
+
"neptune.DateLookup.day": "dzień",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Przejdź do widoku 20-letniego",
|
|
11
|
+
"neptune.DateLookup.month": "miesiąc",
|
|
12
|
+
"neptune.DateLookup.next": "następny",
|
|
13
|
+
"neptune.DateLookup.previous": "poprzedni",
|
|
14
|
+
"neptune.DateLookup.selected": "wybrano",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 lat",
|
|
16
|
+
"neptune.DateLookup.year": "rok",
|
|
17
|
+
"neptune.FlowNavigation.back": "wróć do poprzedniego kroku",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(otworzy się w nowej zakładce)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Wybierz opcję...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Nawigacja w paginacji",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Przejdź do strony {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Obecna strona, strona {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Wyszukaj...",
|
|
13
21
|
"neptune.Summary.statusDone": "Czynność wykonana",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Czynność do wykonania",
|
package/src/i18n/pt.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "carregando",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Remover {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Remover",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Fechar",
|
|
5
6
|
"neptune.DateInput.day.label": "Dia",
|
|
6
7
|
"neptune.DateInput.month.label": "Mês",
|
|
7
8
|
"neptune.DateInput.year.label": "Ano",
|
|
9
|
+
"neptune.DateLookup.day": "dia",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Go to 20 year view",
|
|
11
|
+
"neptune.DateLookup.month": "mês",
|
|
12
|
+
"neptune.DateLookup.next": "próximo",
|
|
13
|
+
"neptune.DateLookup.previous": "anterior",
|
|
14
|
+
"neptune.DateLookup.selected": "selecionada",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 anos",
|
|
16
|
+
"neptune.DateLookup.year": "ano",
|
|
17
|
+
"neptune.FlowNavigation.back": "back to previous step",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(abrir a página em uma nova aba)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Navegação pelas páginas",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Ir para a página {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Página atual, página {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Buscar...",
|
|
13
21
|
"neptune.Summary.statusDone": "Pronto",
|
|
14
22
|
"neptune.Summary.statusNotDone": "Não iniciado",
|
package/src/i18n/ro.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "se încarcă",
|
|
2
3
|
"neptune.Chips.ariaLabel": "Șterge {choice}",
|
|
3
4
|
"neptune.ClearButton.ariaLabel": "Elimină",
|
|
4
5
|
"neptune.CloseButton.ariaLabel": "Închide",
|
|
5
6
|
"neptune.DateInput.day.label": "Zi",
|
|
6
7
|
"neptune.DateInput.month.label": "Lună",
|
|
7
8
|
"neptune.DateInput.year.label": "An",
|
|
9
|
+
"neptune.DateLookup.day": "zi",
|
|
10
|
+
"neptune.DateLookup.goTo20YearView": "Accesează vizualizarea pe 20 de ani",
|
|
11
|
+
"neptune.DateLookup.month": "luna",
|
|
12
|
+
"neptune.DateLookup.next": "înainte",
|
|
13
|
+
"neptune.DateLookup.previous": "precedenta",
|
|
14
|
+
"neptune.DateLookup.selected": "selectată",
|
|
15
|
+
"neptune.DateLookup.twentyYears": "20 de ani",
|
|
16
|
+
"neptune.DateLookup.year": "anul",
|
|
17
|
+
"neptune.FlowNavigation.back": "înapoi la pasul anterior",
|
|
18
|
+
"neptune.Link.opensInNewTab": "(se deschide într-o filă nouă)",
|
|
8
19
|
"neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
|
|
9
|
-
"neptune.Pagination.ariaLabel": "Navigare prin pagină",
|
|
10
|
-
"neptune.PaginationLink.ariaLabel.active": "Du-te la pagina {pageNumber}",
|
|
11
|
-
"neptune.PaginationLink.ariaLabel.inactive": "Pagina curentă, pagina {pageNumber}",
|
|
12
20
|
"neptune.Select.searchPlaceholder": "Caută...",
|
|
13
21
|
"neptune.Summary.statusDone": "Finalizat",
|
|
14
22
|
"neptune.Summary.statusNotDone": "De făcut",
|