@transferwise/components 0.0.0-experimental-536d239 → 0.0.0-experimental-6e04f56
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/Snackbar/Snackbar.js +98 -101
- package/build/Snackbar/Snackbar.js.map +1 -1
- package/build/Snackbar/Snackbar.mjs +99 -102
- package/build/Snackbar/Snackbar.mjs.map +1 -1
- package/build/main.css +1530 -2883
- package/build/styles/Inputs/Input/Input.css +28 -62
- package/build/styles/Inputs/TextArea/TextArea.css +28 -62
- package/build/styles/Popover/Popover.css +9 -3
- package/build/styles/_deprecated/Select/Select.css +7 -27
- package/build/styles/css/accordion.css +52 -23
- package/build/styles/css/button-groups.css +8 -29
- package/build/styles/css/buttons.css +2 -26
- package/build/styles/css/decision.css +52 -23
- package/build/styles/css/dropdowns.css +62 -39
- package/build/styles/css/droppable.css +8 -28
- package/build/styles/css/footer.css +14 -41
- package/build/styles/css/input-groups.css +165 -172
- package/build/styles/css/list-group.css +45 -0
- package/build/styles/css/navbar.css +62 -39
- package/build/styles/css/neptune-addons.css +0 -15
- package/build/styles/css/neptune-core.css +526 -250
- package/build/styles/css/neptune.css +1486 -2823
- package/build/styles/css/popovers.css +60 -35
- package/build/styles/css/sequences.css +1 -6
- package/build/styles/css/tooltip.css +7 -27
- package/build/styles/less/neptune-tokens.less +48 -0
- package/build/styles/main.css +1530 -2883
- package/build/styles/props/neptune-tokens.css +1 -793
- package/build/styles/styles/less/accordion.css +52 -23
- package/build/styles/styles/less/button-groups.css +8 -29
- package/build/styles/styles/less/buttons.css +2 -26
- package/build/styles/styles/less/decision.css +52 -23
- package/build/styles/styles/less/dropdowns.css +62 -39
- package/build/styles/styles/less/droppable.css +8 -28
- package/build/styles/styles/less/footer.css +14 -41
- package/build/styles/styles/less/forms/bootstrap-forms.css +91 -137
- package/build/styles/styles/less/input-groups.css +165 -172
- package/build/styles/styles/less/list-group.css +45 -0
- package/build/styles/styles/less/navbar.css +62 -39
- package/build/styles/styles/less/neptune-addons.css +0 -15
- package/build/styles/styles/less/neptune-core.css +526 -250
- package/build/styles/styles/less/neptune.css +1486 -2823
- package/build/styles/styles/less/popovers.css +60 -35
- package/build/styles/styles/less/sequences.css +1 -6
- package/build/styles/styles/less/tooltip.css +7 -27
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/Snackbar/Snackbar.d.ts +1 -15
- package/build/types/Snackbar/Snackbar.d.ts.map +1 -1
- package/build/types/Title/Title.d.ts +2 -2
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/package.json +1 -1
- package/src/Inputs/Input/Input.css +28 -62
- package/src/Inputs/TextArea/TextArea.css +28 -62
- package/src/Popover/Popover.css +9 -3
- package/src/Snackbar/Snackbar.test.tsx +190 -0
- package/src/Snackbar/Snackbar.tsx +90 -88
- package/src/_deprecated/Select/Select.css +7 -27
- package/src/main.css +1530 -2883
- package/src/styles/less/accordion.css +52 -23
- package/src/styles/less/addons/_background-utilities.less +0 -5
- package/src/styles/less/button-groups.css +8 -29
- package/src/styles/less/button-groups.less +2 -3
- package/src/styles/less/buttons.css +2 -26
- package/src/styles/less/buttons.less +1 -1
- package/src/styles/less/core/_typography.less +221 -67
- package/src/styles/less/decision.css +52 -23
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +62 -39
- package/src/styles/less/dropdowns.less +5 -6
- package/src/styles/less/droppable.css +8 -28
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +14 -41
- package/src/styles/less/footer.less +3 -4
- package/src/styles/less/forms/bootstrap-forms.css +91 -137
- package/src/styles/less/forms/bootstrap-forms.less +57 -70
- package/src/styles/less/input-groups.css +165 -172
- package/src/styles/less/input-groups.less +5 -5
- package/src/styles/less/list-group.css +45 -0
- package/src/styles/less/list-group.less +4 -7
- package/src/styles/less/mixins/_text-emphasis.less +1 -7
- package/src/styles/less/navbar.css +62 -39
- package/src/styles/less/neptune-addons.css +0 -15
- package/src/styles/less/neptune-core.css +526 -250
- package/src/styles/less/neptune.bundle.less +0 -4
- package/src/styles/less/neptune.css +1486 -2823
- package/src/styles/less/popovers.css +60 -35
- package/src/styles/less/popovers.less +3 -3
- package/src/styles/less/sequences.css +1 -6
- package/src/styles/less/sequences.less +2 -7
- package/src/styles/less/tooltip.css +7 -27
- package/src/styles/less/tooltip.less +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
.
|
|
2
|
-
.popover-content {
|
|
3
|
-
word-wrap: break-word;
|
|
4
|
-
}
|
|
5
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
6
|
-
.popover,
|
|
7
|
-
.popover-content {
|
|
8
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
9
|
-
}
|
|
10
|
-
@media (min-width: 840px) {
|
|
11
|
-
.popover,
|
|
12
|
-
.popover-content {
|
|
13
|
-
hyphenate-limit-chars: 8 3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
@media (min-width: 1160px) {
|
|
17
|
-
.popover,
|
|
18
|
-
.popover-content {
|
|
19
|
-
hyphenate-limit-chars: 10 4 3;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
23
|
-
.popover,
|
|
24
|
-
.popover-content {
|
|
25
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
26
|
-
}
|
|
27
|
-
@media (min-width: 1160px) {
|
|
28
|
-
.popover,
|
|
29
|
-
.popover-content {
|
|
30
|
-
-webkit-hyphenate-limit-before: 4;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}.close {
|
|
1
|
+
.close {
|
|
34
2
|
float: inline-end;
|
|
35
3
|
color: #0097c7;
|
|
36
4
|
color: var(--color-content-accent);
|
|
@@ -98,6 +66,12 @@ button.close {
|
|
|
98
66
|
word-break: normal;
|
|
99
67
|
word-spacing: normal;
|
|
100
68
|
word-wrap: normal;
|
|
69
|
+
font-size: 0.875rem;
|
|
70
|
+
font-size: var(--font-size-14);
|
|
71
|
+
line-height: 155%;
|
|
72
|
+
letter-spacing: -0.006em;
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
font-weight: var(--font-weight-regular);
|
|
101
75
|
word-wrap: break-word;
|
|
102
76
|
background-color: #ffffff;
|
|
103
77
|
background-color: var(--color-background-screen);
|
|
@@ -284,8 +258,20 @@ button.close {
|
|
|
284
258
|
margin-inline: 0;
|
|
285
259
|
}
|
|
286
260
|
.popover-title {
|
|
287
|
-
margin: 0;
|
|
288
261
|
padding: 0;
|
|
262
|
+
margin: 0;
|
|
263
|
+
color: #37517e;
|
|
264
|
+
color: var(--color-content-primary);
|
|
265
|
+
line-height: 1.2;
|
|
266
|
+
line-height: var(--line-height-title);
|
|
267
|
+
letter-spacing: 0;
|
|
268
|
+
word-wrap: break-word;
|
|
269
|
+
font-size: 1.125rem;
|
|
270
|
+
font-size: var(--font-size-18);
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
font-weight: var(--font-weight-semi-bold);
|
|
273
|
+
letter-spacing: -0.014em;
|
|
274
|
+
line-height: 135%;
|
|
289
275
|
background-color: #ffffff;
|
|
290
276
|
background-color: var(--color-background-screen);
|
|
291
277
|
border-block-end: 0;
|
|
@@ -293,11 +279,50 @@ button.close {
|
|
|
293
279
|
border-start-end-radius: 2px;
|
|
294
280
|
border-end-end-radius: 0;
|
|
295
281
|
border-end-start-radius: 0;
|
|
296
|
-
color: #37517e !important;
|
|
297
282
|
color: var(--color-content-primary) !important;
|
|
298
283
|
}
|
|
284
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
285
|
+
.popover-title {
|
|
286
|
+
hyphens: auto;
|
|
287
|
+
hyphenate-limit-chars: 7 3;
|
|
288
|
+
}
|
|
289
|
+
@media (min-width: 840px) {
|
|
290
|
+
.popover-title {
|
|
291
|
+
hyphenate-limit-chars: 8 3;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
@media (min-width: 1160px) {
|
|
295
|
+
.popover-title {
|
|
296
|
+
hyphenate-limit-chars: 10 4 3;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
301
|
+
.popover-title {
|
|
302
|
+
hyphens: auto;
|
|
303
|
+
-webkit-hyphenate-limit-before: 3;
|
|
304
|
+
-webkit-hyphenate-limit-after: 3;
|
|
305
|
+
}
|
|
306
|
+
@media (min-width: 1160px) {
|
|
307
|
+
.popover-title {
|
|
308
|
+
-webkit-hyphenate-limit-before: 4;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
.popover-title + p,
|
|
313
|
+
.popover-title + ul:not(.list-unstyled),
|
|
314
|
+
.popover-title + ol:not(.list-unstyled) {
|
|
315
|
+
margin-block-start: 8px;
|
|
316
|
+
margin-block-start: var(--size-8);
|
|
317
|
+
}
|
|
299
318
|
.popover-content {
|
|
300
319
|
padding: 0;
|
|
320
|
+
font-size: 0.875rem;
|
|
321
|
+
font-size: var(--font-size-14);
|
|
322
|
+
line-height: 155%;
|
|
323
|
+
letter-spacing: -0.006em;
|
|
324
|
+
font-weight: 400;
|
|
325
|
+
font-weight: var(--font-weight-regular);
|
|
301
326
|
word-wrap: break-word;
|
|
302
327
|
color: #5d7079;
|
|
303
328
|
color: var(--color-content-secondary);
|
|
@@ -131,10 +131,6 @@
|
|
|
131
131
|
.sequence > li .h2,
|
|
132
132
|
.sequence > li .h3,
|
|
133
133
|
.sequence > li .h4,
|
|
134
|
-
.sequence > li .wds-text-title-screen,
|
|
135
|
-
.sequence > li .wds-text-title-section,
|
|
136
|
-
.sequence > li .wds-text-title-subsection,
|
|
137
|
-
.sequence > li .wds-text-title-body,
|
|
138
134
|
.sequence > li .btn-toolbar {
|
|
139
135
|
margin-block-end: 16px;
|
|
140
136
|
}
|
|
@@ -225,8 +221,7 @@
|
|
|
225
221
|
}
|
|
226
222
|
.sequence-inverse > .active .small,
|
|
227
223
|
.sequence-inverse > .active .body-2,
|
|
228
|
-
.sequence-inverse > .active .np-text-body-default
|
|
229
|
-
.sequence-inverse > .active .wds-text-body-default {
|
|
224
|
+
.sequence-inverse > .active .np-text-body-default {
|
|
230
225
|
color: #5d7079;
|
|
231
226
|
color: var(--color-content-secondary);
|
|
232
227
|
}
|
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
.tooltip
|
|
2
|
-
word-wrap: break-word;
|
|
3
|
-
}
|
|
4
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
5
|
-
.tooltip-inner {
|
|
6
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
7
|
-
}
|
|
8
|
-
@media (min-width: 840px) {
|
|
9
|
-
.tooltip-inner {
|
|
10
|
-
hyphenate-limit-chars: 8 3;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
@media (min-width: 1160px) {
|
|
14
|
-
.tooltip-inner {
|
|
15
|
-
hyphenate-limit-chars: 10 4 3;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
19
|
-
.tooltip-inner {
|
|
20
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
21
|
-
}
|
|
22
|
-
@media (min-width: 1160px) {
|
|
23
|
-
.tooltip-inner {
|
|
24
|
-
-webkit-hyphenate-limit-before: 4;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}.tooltip {
|
|
1
|
+
.tooltip {
|
|
28
2
|
position: absolute;
|
|
29
3
|
z-index: 1070;
|
|
30
4
|
display: block;
|
|
@@ -71,6 +45,12 @@
|
|
|
71
45
|
padding-inline: 5px;
|
|
72
46
|
}
|
|
73
47
|
.tooltip-inner {
|
|
48
|
+
font-size: 0.875rem;
|
|
49
|
+
font-size: var(--font-size-14);
|
|
50
|
+
line-height: 155%;
|
|
51
|
+
letter-spacing: -0.006em;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
font-weight: var(--font-weight-regular);
|
|
74
54
|
word-wrap: break-word;
|
|
75
55
|
max-inline-size: 200px;
|
|
76
56
|
min-inline-size: 120px;
|
|
@@ -11,7 +11,7 @@ export type BodyProps = HTMLAttributes<HTMLSpanElement | HTMLParagraphElement> &
|
|
|
11
11
|
*/
|
|
12
12
|
preserveNewlines?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<
|
|
14
|
+
declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement | HTMLParagraphElement> & {
|
|
15
15
|
/** @default 'body-default' */
|
|
16
16
|
type?: BodyTypes;
|
|
17
17
|
/** @default 'div' */
|
|
@@ -21,6 +21,6 @@ declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTM
|
|
|
21
21
|
* @default false
|
|
22
22
|
*/
|
|
23
23
|
preserveNewlines?: boolean;
|
|
24
|
-
} & import("react").RefAttributes<HTMLDivElement |
|
|
24
|
+
} & import("react").RefAttributes<HTMLDivElement | HTMLSpanElement | HTMLParagraphElement | null>>;
|
|
25
25
|
export default Body;
|
|
26
26
|
//# sourceMappingURL=Body.d.ts.map
|
|
@@ -16,6 +16,6 @@ declare const IconButton: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
/** @default 'default' */
|
|
17
17
|
type?: "default" | "negative";
|
|
18
18
|
'data-testid'?: string;
|
|
19
|
-
} & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "
|
|
19
|
+
} & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "children" | "className" | "id" | "tabIndex" | "role" | "aria-label"> & import("react").RefAttributes<unknown>>;
|
|
20
20
|
export default IconButton;
|
|
21
21
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -55,7 +55,6 @@ declare const _default: import("react").FC<{
|
|
|
55
55
|
selectProps?: Partial<SelectInputProps<CurrencyOptionItem>> | undefined;
|
|
56
56
|
amount: number | null;
|
|
57
57
|
searchPlaceholder?: string | undefined;
|
|
58
|
-
decimals?: number | undefined;
|
|
59
58
|
currencies: readonly CurrencyItem[];
|
|
60
59
|
selectedCurrency: CurrencyOptionItem;
|
|
61
60
|
onCurrencyChange?: ((value: CurrencyOptionItem) => void) | undefined;
|
|
@@ -67,6 +66,7 @@ declare const _default: import("react").FC<{
|
|
|
67
66
|
}) => void) | undefined;
|
|
68
67
|
customActionLabel?: import("react").ReactNode;
|
|
69
68
|
onCustomAction?: (() => void) | undefined;
|
|
69
|
+
decimals?: number | undefined;
|
|
70
70
|
}>;
|
|
71
71
|
export default _default;
|
|
72
72
|
//# sourceMappingURL=MoneyInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/MoneyInput/MoneyInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAGL,SAAS,EACT,UAAU,EACV,SAAS,EAEV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAuB,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEnF,OAAO,EAKL,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAO/B,MAAM,WAAW,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AM;gBARd,SAAS,YAAY,EAAE;sBACjB,kBAAkB;wBACjB,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI;sBAIrC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;;sBAM9B,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,YAAY,EAAE,CAAA;KAAE,KAAK,IAAI;;sBAEzE,MAAM,IAAI;eAQhB,MAAM;;AA0anB,wBAA2F"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
1
|
import type { ThemeDark, ThemeLight } from '../common';
|
|
3
2
|
export interface SnackbarProps {
|
|
4
3
|
action?: {
|
|
@@ -11,20 +10,7 @@ export interface SnackbarProps {
|
|
|
11
10
|
timeout: number;
|
|
12
11
|
timestamp: number;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
visible: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class Snackbar extends Component<SnackbarProps, SnackbarState> {
|
|
18
|
-
bodyRef: import("react").RefObject<HTMLSpanElement>;
|
|
19
|
-
timeout: number;
|
|
20
|
-
transitionTimeout: number;
|
|
21
|
-
constructor(props: SnackbarProps);
|
|
22
|
-
componentWillUnmount(): void;
|
|
23
|
-
shouldComponentUpdate(nextProps: SnackbarProps, nextState: SnackbarState): boolean;
|
|
24
|
-
setLeaveTimeout: () => void;
|
|
25
|
-
componentDidUpdate(previousProps: SnackbarProps): void;
|
|
26
|
-
render(): import("react").JSX.Element;
|
|
27
|
-
}
|
|
13
|
+
export declare const Snackbar: (props: SnackbarProps) => import("react").JSX.Element;
|
|
28
14
|
declare const _default: (props: SnackbarProps) => import("react").ReactPortal | null;
|
|
29
15
|
export default _default;
|
|
30
16
|
//# sourceMappingURL=Snackbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/Snackbar/Snackbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/Snackbar/Snackbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAKvD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,kBAAkB;IAClB,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,gCAmG5C,CAAC;;AAEF,wBAAwC"}
|
|
@@ -10,7 +10,7 @@ export type TitleProps = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElemen
|
|
|
10
10
|
*/
|
|
11
11
|
type?: TitleTypes;
|
|
12
12
|
};
|
|
13
|
-
declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<
|
|
13
|
+
declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLSpanElement | HTMLHeadingElement | HTMLLabelElement> & React.LiHTMLAttributes<HTMLLIElement> & {
|
|
14
14
|
/**
|
|
15
15
|
* Default value will based one `type` prop
|
|
16
16
|
*/
|
|
@@ -19,6 +19,6 @@ declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<H
|
|
|
19
19
|
* Default value: {@link DEFAULT_TYPE}
|
|
20
20
|
*/
|
|
21
21
|
type?: TitleTypes;
|
|
22
|
-
} & React.RefAttributes<HTMLHeadingElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement
|
|
22
|
+
} & React.RefAttributes<HTMLSpanElement | HTMLHeadingElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement>>;
|
|
23
23
|
export default Title;
|
|
24
24
|
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -15,7 +15,7 @@ export default class UploadImageStep extends PureComponent<UploadImageStepProps>
|
|
|
15
15
|
uploadInputRef: import("react").RefObject<HTMLInputElement>;
|
|
16
16
|
onManualUpload: () => void;
|
|
17
17
|
onKeyDown: (event: React.KeyboardEvent<HTMLLabelElement>) => void;
|
|
18
|
-
getImage: () => number | true |
|
|
18
|
+
getImage: () => number | true | import("react").JSX.Element | Iterable<import("react").ReactNode>;
|
|
19
19
|
render(): import("react").JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=UploadImageStep.d.ts.map
|
|
@@ -5,5 +5,5 @@ export declare const UploadItemLink: import("react").ForwardRefExoticComponent<{
|
|
|
5
5
|
singleFileUpload: boolean;
|
|
6
6
|
} & {
|
|
7
7
|
children?: import("react").ReactNode | undefined;
|
|
8
|
-
} & import("react").RefAttributes<
|
|
8
|
+
} & import("react").RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
9
9
|
//# sourceMappingURL=UploadItemLink.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,65 +1,4 @@
|
|
|
1
|
-
.np-form-control
|
|
2
|
-
margin-block-end: initial;
|
|
3
|
-
}
|
|
4
|
-
.np-form-control--size-sm {
|
|
5
|
-
word-wrap: break-word;
|
|
6
|
-
}
|
|
7
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
8
|
-
.np-form-control--size-sm {
|
|
9
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
10
|
-
}
|
|
11
|
-
@media (min-width: 840px) {
|
|
12
|
-
.np-form-control--size-sm {
|
|
13
|
-
hyphenate-limit-chars: 8 3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
@media (min-width: 1160px) {
|
|
17
|
-
.np-form-control--size-sm {
|
|
18
|
-
hyphenate-limit-chars: 10 4 3;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
22
|
-
.np-form-control--size-sm {
|
|
23
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
24
|
-
}
|
|
25
|
-
@media (min-width: 1160px) {
|
|
26
|
-
.np-form-control--size-sm {
|
|
27
|
-
-webkit-hyphenate-limit-before: 4;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}.np-form-control--size-auto,
|
|
31
|
-
.np-form-control--size-md {
|
|
32
|
-
word-wrap: break-word;
|
|
33
|
-
}
|
|
34
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
35
|
-
.np-form-control--size-auto,
|
|
36
|
-
.np-form-control--size-md {
|
|
37
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
38
|
-
}
|
|
39
|
-
@media (min-width: 840px) {
|
|
40
|
-
.np-form-control--size-auto,
|
|
41
|
-
.np-form-control--size-md {
|
|
42
|
-
hyphenate-limit-chars: 8 3;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
@media (min-width: 1160px) {
|
|
46
|
-
.np-form-control--size-auto,
|
|
47
|
-
.np-form-control--size-md {
|
|
48
|
-
hyphenate-limit-chars: 10 4 3;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
52
|
-
.np-form-control--size-auto,
|
|
53
|
-
.np-form-control--size-md {
|
|
54
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
55
|
-
}
|
|
56
|
-
@media (min-width: 1160px) {
|
|
57
|
-
.np-form-control--size-auto,
|
|
58
|
-
.np-form-control--size-md {
|
|
59
|
-
-webkit-hyphenate-limit-before: 4;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}.np-form-control {
|
|
1
|
+
.np-form-control {
|
|
63
2
|
--ring-width: 1px;
|
|
64
3
|
--ring-color: var(--color-interactive-secondary);
|
|
65
4
|
border: none;
|
|
@@ -100,6 +39,12 @@
|
|
|
100
39
|
--ring-color: var(--color-interactive-primary);
|
|
101
40
|
}
|
|
102
41
|
.np-form-control--size-auto {
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
font-weight: var(--font-weight-regular);
|
|
44
|
+
font-size: 1rem;
|
|
45
|
+
font-size: var(--font-size-16);
|
|
46
|
+
line-height: 150%;
|
|
47
|
+
letter-spacing: -0.011em;
|
|
103
48
|
word-wrap: break-word;
|
|
104
49
|
padding-block-start: 12px;
|
|
105
50
|
padding-block-start: var(--size-12);
|
|
@@ -141,6 +86,12 @@
|
|
|
141
86
|
padding-block-end: 0 !important;
|
|
142
87
|
}
|
|
143
88
|
.np-form-control--size-sm {
|
|
89
|
+
font-size: 0.875rem;
|
|
90
|
+
font-size: var(--font-size-14);
|
|
91
|
+
line-height: 155%;
|
|
92
|
+
letter-spacing: -0.006em;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
font-weight: var(--font-weight-regular);
|
|
144
95
|
word-wrap: break-word;
|
|
145
96
|
block-size: 32px !important;
|
|
146
97
|
block-size: var(--size-32) !important;
|
|
@@ -180,6 +131,12 @@
|
|
|
180
131
|
}
|
|
181
132
|
}
|
|
182
133
|
.np-form-control--size-md {
|
|
134
|
+
font-weight: 400;
|
|
135
|
+
font-weight: var(--font-weight-regular);
|
|
136
|
+
font-size: 1rem;
|
|
137
|
+
font-size: var(--font-size-16);
|
|
138
|
+
line-height: 150%;
|
|
139
|
+
letter-spacing: -0.011em;
|
|
183
140
|
word-wrap: break-word;
|
|
184
141
|
block-size: 48px !important;
|
|
185
142
|
block-size: var(--size-48) !important;
|
|
@@ -222,8 +179,17 @@
|
|
|
222
179
|
margin: 0;
|
|
223
180
|
color: #37517e;
|
|
224
181
|
color: var(--color-content-primary);
|
|
182
|
+
line-height: 1.2;
|
|
183
|
+
line-height: var(--line-height-title);
|
|
184
|
+
letter-spacing: 0;
|
|
225
185
|
word-wrap: break-word;
|
|
226
186
|
margin-block-end: initial;
|
|
187
|
+
font-size: 1.375rem;
|
|
188
|
+
font-size: var(--font-size-22);
|
|
189
|
+
font-weight: 600;
|
|
190
|
+
font-weight: var(--font-weight-semi-bold);
|
|
191
|
+
letter-spacing: -0.018em;
|
|
192
|
+
line-height: 125%;
|
|
227
193
|
block-size: 72px !important;
|
|
228
194
|
block-size: var(--size-72) !important;
|
|
229
195
|
}
|
|
@@ -1,65 +1,4 @@
|
|
|
1
|
-
.np-form-control
|
|
2
|
-
margin-block-end: initial;
|
|
3
|
-
}
|
|
4
|
-
.np-form-control--size-sm {
|
|
5
|
-
word-wrap: break-word;
|
|
6
|
-
}
|
|
7
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
8
|
-
.np-form-control--size-sm {
|
|
9
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
10
|
-
}
|
|
11
|
-
@media (min-width: 840px) {
|
|
12
|
-
.np-form-control--size-sm {
|
|
13
|
-
hyphenate-limit-chars: 8 3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
@media (min-width: 1160px) {
|
|
17
|
-
.np-form-control--size-sm {
|
|
18
|
-
hyphenate-limit-chars: 10 4 3;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
22
|
-
.np-form-control--size-sm {
|
|
23
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
24
|
-
}
|
|
25
|
-
@media (min-width: 1160px) {
|
|
26
|
-
.np-form-control--size-sm {
|
|
27
|
-
-webkit-hyphenate-limit-before: 4;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}.np-form-control--size-auto,
|
|
31
|
-
.np-form-control--size-md {
|
|
32
|
-
word-wrap: break-word;
|
|
33
|
-
}
|
|
34
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
35
|
-
.np-form-control--size-auto,
|
|
36
|
-
.np-form-control--size-md {
|
|
37
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
38
|
-
}
|
|
39
|
-
@media (min-width: 840px) {
|
|
40
|
-
.np-form-control--size-auto,
|
|
41
|
-
.np-form-control--size-md {
|
|
42
|
-
hyphenate-limit-chars: 8 3;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
@media (min-width: 1160px) {
|
|
46
|
-
.np-form-control--size-auto,
|
|
47
|
-
.np-form-control--size-md {
|
|
48
|
-
hyphenate-limit-chars: 10 4 3;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
52
|
-
.np-form-control--size-auto,
|
|
53
|
-
.np-form-control--size-md {
|
|
54
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
55
|
-
}
|
|
56
|
-
@media (min-width: 1160px) {
|
|
57
|
-
.np-form-control--size-auto,
|
|
58
|
-
.np-form-control--size-md {
|
|
59
|
-
-webkit-hyphenate-limit-before: 4;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}.np-form-control {
|
|
1
|
+
.np-form-control {
|
|
63
2
|
--ring-width: 1px;
|
|
64
3
|
--ring-color: var(--color-interactive-secondary);
|
|
65
4
|
border: none;
|
|
@@ -100,6 +39,12 @@
|
|
|
100
39
|
--ring-color: var(--color-interactive-primary);
|
|
101
40
|
}
|
|
102
41
|
.np-form-control--size-auto {
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
font-weight: var(--font-weight-regular);
|
|
44
|
+
font-size: 1rem;
|
|
45
|
+
font-size: var(--font-size-16);
|
|
46
|
+
line-height: 150%;
|
|
47
|
+
letter-spacing: -0.011em;
|
|
103
48
|
word-wrap: break-word;
|
|
104
49
|
padding-block-start: 12px;
|
|
105
50
|
padding-block-start: var(--size-12);
|
|
@@ -141,6 +86,12 @@
|
|
|
141
86
|
padding-block-end: 0 !important;
|
|
142
87
|
}
|
|
143
88
|
.np-form-control--size-sm {
|
|
89
|
+
font-size: 0.875rem;
|
|
90
|
+
font-size: var(--font-size-14);
|
|
91
|
+
line-height: 155%;
|
|
92
|
+
letter-spacing: -0.006em;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
font-weight: var(--font-weight-regular);
|
|
144
95
|
word-wrap: break-word;
|
|
145
96
|
block-size: 32px !important;
|
|
146
97
|
block-size: var(--size-32) !important;
|
|
@@ -180,6 +131,12 @@
|
|
|
180
131
|
}
|
|
181
132
|
}
|
|
182
133
|
.np-form-control--size-md {
|
|
134
|
+
font-weight: 400;
|
|
135
|
+
font-weight: var(--font-weight-regular);
|
|
136
|
+
font-size: 1rem;
|
|
137
|
+
font-size: var(--font-size-16);
|
|
138
|
+
line-height: 150%;
|
|
139
|
+
letter-spacing: -0.011em;
|
|
183
140
|
word-wrap: break-word;
|
|
184
141
|
block-size: 48px !important;
|
|
185
142
|
block-size: var(--size-48) !important;
|
|
@@ -222,8 +179,17 @@
|
|
|
222
179
|
margin: 0;
|
|
223
180
|
color: #37517e;
|
|
224
181
|
color: var(--color-content-primary);
|
|
182
|
+
line-height: 1.2;
|
|
183
|
+
line-height: var(--line-height-title);
|
|
184
|
+
letter-spacing: 0;
|
|
225
185
|
word-wrap: break-word;
|
|
226
186
|
margin-block-end: initial;
|
|
187
|
+
font-size: 1.375rem;
|
|
188
|
+
font-size: var(--font-size-22);
|
|
189
|
+
font-weight: 600;
|
|
190
|
+
font-weight: var(--font-weight-semi-bold);
|
|
191
|
+
letter-spacing: -0.018em;
|
|
192
|
+
line-height: 125%;
|
|
227
193
|
block-size: 72px !important;
|
|
228
194
|
block-size: var(--size-72) !important;
|
|
229
195
|
}
|
package/src/Popover/Popover.css
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
2
|
-
margin-block-end: initial;
|
|
3
|
-
}
|
|
4
1
|
.np-theme-personal .np-popover__container {
|
|
5
2
|
border-radius: 16px;
|
|
6
3
|
border-radius: var(--radius-medium);
|
|
@@ -29,8 +26,17 @@
|
|
|
29
26
|
margin: 0;
|
|
30
27
|
color: #37517e;
|
|
31
28
|
color: var(--color-content-primary);
|
|
29
|
+
line-height: 1.2;
|
|
30
|
+
line-height: var(--line-height-title);
|
|
31
|
+
letter-spacing: 0;
|
|
32
32
|
word-wrap: break-word;
|
|
33
33
|
margin-block-end: initial;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
font-weight: var(--font-weight-semi-bold);
|
|
36
|
+
font-size: 1.625rem;
|
|
37
|
+
font-size: var(--font-size-26);
|
|
38
|
+
letter-spacing: -0.02em;
|
|
39
|
+
line-height: 122%;
|
|
34
40
|
}
|
|
35
41
|
@supports (hyphenate-limit-chars: 1) {
|
|
36
42
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|