@transferwise/components 46.168.1 → 46.169.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/CardWidget/CardWidgetAction.js +7 -4
- package/build/CardWidget/CardWidgetAction.js.map +1 -1
- package/build/CardWidget/CardWidgetAction.mjs +7 -4
- package/build/CardWidget/CardWidgetAction.mjs.map +1 -1
- package/build/ListItem/ListItem.js +32 -2
- package/build/ListItem/ListItem.js.map +1 -1
- package/build/ListItem/ListItem.mjs +33 -3
- package/build/ListItem/ListItem.mjs.map +1 -1
- package/build/Prompt/Snackbar/Snackbar.js +7 -2
- package/build/Prompt/Snackbar/Snackbar.js.map +1 -1
- package/build/Prompt/Snackbar/Snackbar.mjs +3 -1
- package/build/Prompt/Snackbar/Snackbar.mjs.map +1 -1
- package/build/Prompt/Snackbar/SnackbarProvider.js +2 -2
- package/build/Prompt/Snackbar/SnackbarProvider.js.map +1 -1
- package/build/Prompt/Snackbar/SnackbarProvider.mjs +2 -2
- package/build/Prompt/Snackbar/SnackbarProvider.mjs.map +1 -1
- package/build/i18n/de.json +1 -0
- package/build/i18n/de.json.js +1 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +1 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/hu.json +1 -0
- package/build/i18n/hu.json.js +1 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +1 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/it.json +1 -0
- package/build/i18n/it.json.js +1 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +1 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/nl.json +1 -1
- package/build/i18n/nl.json.js +1 -1
- package/build/i18n/nl.json.mjs +1 -1
- package/build/i18n/pl.json +1 -0
- package/build/i18n/pl.json.js +1 -0
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +1 -0
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/th.json +1 -0
- package/build/i18n/th.json.js +1 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +1 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/main.css +39 -16
- package/build/styles/CardContainer/CardContainer.css +23 -0
- package/build/styles/CardWidget/CardWidget.css +5 -0
- package/build/styles/Prompt/ActionPrompt/ActionPrompt.css +10 -2
- package/build/styles/Prompt/CriticalBanner/CriticalBanner.css +1 -5
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +0 -9
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.vars.css +0 -0
- package/build/styles/main.css +39 -16
- package/build/types/CardContainer/CardContainer.types.d.ts +4 -3
- package/build/types/CardContainer/CardContainer.types.d.ts.map +1 -1
- package/build/types/CardWidget/CardWidget.types.d.ts +3 -1
- package/build/types/CardWidget/CardWidget.types.d.ts.map +1 -1
- package/build/types/CardWidget/CardWidgetAction.d.ts +10 -3
- package/build/types/CardWidget/CardWidgetAction.d.ts.map +1 -1
- package/build/types/ListItem/ListItem.d.ts +2 -0
- package/build/types/ListItem/ListItem.d.ts.map +1 -1
- package/build/types/Prompt/Snackbar/Snackbar.d.ts +2 -1
- package/build/types/Prompt/Snackbar/Snackbar.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/CardContainer/CardContainer.css +23 -0
- package/src/CardContainer/CardContainer.less +32 -0
- package/src/CardContainer/CardContainer.types.ts +4 -3
- package/src/CardContainer/_stories/CardContainer.story.tsx +25 -2
- package/src/CardWidget/CardWidget.css +5 -0
- package/src/CardWidget/CardWidget.less +8 -0
- package/src/CardWidget/CardWidget.test.tsx +16 -0
- package/src/CardWidget/CardWidget.types.ts +3 -1
- package/src/CardWidget/CardWidgetAction.tsx +14 -3
- package/src/CardWidget/_stories/CardWidget.story.tsx +57 -2
- package/src/CardWidget/_stories/CardWidget.test.story.tsx +20 -1
- package/src/ListItem/ListItem.ssr.test.tsx +115 -0
- package/src/ListItem/ListItem.test.tsx +42 -0
- package/src/ListItem/ListItem.tsx +23 -2
- package/src/Prompt/ActionPrompt/ActionPrompt.css +10 -2
- package/src/Prompt/ActionPrompt/ActionPrompt.less +17 -2
- package/src/Prompt/ActionPrompt/_stories/ActionPrompt.test.story.tsx +29 -29
- package/src/Prompt/CriticalBanner/CriticalBanner.css +1 -5
- package/src/Prompt/CriticalBanner/CriticalBanner.less +3 -6
- package/src/Prompt/CriticalBanner/CriticalBanner.vars.less +3 -3
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +0 -9
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +0 -9
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.vars.css +0 -0
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.vars.less +2 -0
- package/src/Prompt/Snackbar/Snackbar.tsx +2 -1
- package/src/Prompt/Snackbar/SnackbarProvider.tsx +2 -2
- package/src/i18n/de.json +1 -0
- package/src/i18n/hu.json +1 -0
- package/src/i18n/it.json +1 -0
- package/src/i18n/nl.json +1 -1
- package/src/i18n/pl.json +1 -0
- package/src/i18n/th.json +1 -0
- package/src/main.css +39 -16
- package/build/Prompt/Snackbar/SnackbarPortal.js +0 -12
- package/build/Prompt/Snackbar/SnackbarPortal.js.map +0 -1
- package/build/Prompt/Snackbar/SnackbarPortal.mjs +0 -8
- package/build/Prompt/Snackbar/SnackbarPortal.mjs.map +0 -1
- package/build/types/Prompt/Snackbar/SnackbarPortal.d.ts +0 -4
- package/build/types/Prompt/Snackbar/SnackbarPortal.d.ts.map +0 -1
- package/src/Prompt/Snackbar/SnackbarPortal.tsx +0 -8
package/src/i18n/pl.json
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"neptune.PhoneNumberInput.phoneNumberPrefix": "Prefiks",
|
|
39
39
|
"neptune.Select.searchPlaceholder": "Wyszukaj...",
|
|
40
40
|
"neptune.SelectInput.noResultsFound": "Nie znaleziono wyników",
|
|
41
|
+
"neptune.Snackbar.escapeDismissHint": "Naciśnij klawisz Esc, żeby zamknąć ono.",
|
|
41
42
|
"neptune.StatusIcon.iconLabel.error": "Błąd:",
|
|
42
43
|
"neptune.StatusIcon.iconLabel.information": "Informacje:",
|
|
43
44
|
"neptune.StatusIcon.iconLabel.pending": "W toku:",
|
package/src/i18n/th.json
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"neptune.PhoneNumberInput.phoneNumberPrefix": "รหัสประเทศ",
|
|
39
39
|
"neptune.Select.searchPlaceholder": "ค้นหา...",
|
|
40
40
|
"neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
|
|
41
|
+
"neptune.Snackbar.escapeDismissHint": "กด Escape เพื่อปิด",
|
|
41
42
|
"neptune.StatusIcon.iconLabel.error": "ข้อผิดพลาด:",
|
|
42
43
|
"neptune.StatusIcon.iconLabel.information": "ข้อมูล:",
|
|
43
44
|
"neptune.StatusIcon.iconLabel.pending": "รอดำเนินการ:",
|
package/src/main.css
CHANGED
|
@@ -26243,6 +26243,29 @@ a[data-toggle="tooltip"] {
|
|
|
26243
26243
|
padding-inline: calc(var(--CardContainer-padding-inline) + 1px);
|
|
26244
26244
|
position: relative;
|
|
26245
26245
|
}
|
|
26246
|
+
.wds-card-container--interactive:has( > :is(a[href], button:enabled):first-child):not( :has( > * + :not(.wds-card-container__border))) {
|
|
26247
|
+
position: relative;
|
|
26248
|
+
}
|
|
26249
|
+
.wds-card-container--interactive > a[href]:first-child:not(:has( ~ :not(.wds-card-container__border)))::before {
|
|
26250
|
+
border-radius: var(--CardContainer-border-radius);
|
|
26251
|
+
content: "";
|
|
26252
|
+
inset: 0;
|
|
26253
|
+
position: absolute;
|
|
26254
|
+
}
|
|
26255
|
+
.wds-card-container--interactive > button:enabled:first-child:not(:has( ~ :not(.wds-card-container__border)))::before {
|
|
26256
|
+
border-radius: var(--CardContainer-border-radius);
|
|
26257
|
+
content: "";
|
|
26258
|
+
inset: 0;
|
|
26259
|
+
position: absolute;
|
|
26260
|
+
}
|
|
26261
|
+
.wds-card-container--interactive.wds-card-container--padding-none > a[href]:first-child:not(:has( ~ :not(.wds-card-container__border))) {
|
|
26262
|
+
--ring-outline-offset: calc(-1 * var(--ring-outline-width));
|
|
26263
|
+
border-radius: var(--CardContainer-border-radius);
|
|
26264
|
+
}
|
|
26265
|
+
.wds-card-container--interactive.wds-card-container--padding-none > button:enabled:first-child:not(:has( ~ :not(.wds-card-container__border))) {
|
|
26266
|
+
--ring-outline-offset: calc(-1 * var(--ring-outline-width));
|
|
26267
|
+
border-radius: var(--CardContainer-border-radius);
|
|
26268
|
+
}
|
|
26246
26269
|
.wds-card-container--interactive:has(
|
|
26247
26270
|
> a[href]:hover,
|
|
26248
26271
|
> button:enabled:hover,
|
|
@@ -26326,6 +26349,11 @@ a[data-toggle="tooltip"] {
|
|
|
26326
26349
|
padding-inline-start: var(--CardWidget-inset);
|
|
26327
26350
|
row-gap: var(--size-8);
|
|
26328
26351
|
}
|
|
26352
|
+
.wds-card-widget__content {
|
|
26353
|
+
display: flex;
|
|
26354
|
+
flex: 1 0 auto;
|
|
26355
|
+
flex-direction: column;
|
|
26356
|
+
}
|
|
26329
26357
|
.wds-card-widget__header + .wds-card-widget__content {
|
|
26330
26358
|
margin-block-start: var(--CardWidget-header-spacing);
|
|
26331
26359
|
}
|
|
@@ -31064,15 +31092,6 @@ button.np-link {
|
|
|
31064
31092
|
grid-column-start: 2;
|
|
31065
31093
|
grid-column-end: 3;
|
|
31066
31094
|
}
|
|
31067
|
-
@media (max-width: 599.98px) {
|
|
31068
|
-
.wds-prompt__actions-wrapper {
|
|
31069
|
-
grid-column: span 2;
|
|
31070
|
-
inline-size: 100%;
|
|
31071
|
-
}
|
|
31072
|
-
.wds-prompt__content-wrapper--with-dismiss .wds-prompt__actions-wrapper {
|
|
31073
|
-
grid-column: span 3;
|
|
31074
|
-
}
|
|
31075
|
-
}
|
|
31076
31095
|
.wds-prompt__dismiss {
|
|
31077
31096
|
position: relative;
|
|
31078
31097
|
}
|
|
@@ -31196,6 +31215,7 @@ button.np-link {
|
|
|
31196
31215
|
--Prompt-actions-gap: var(--size-8);
|
|
31197
31216
|
--Prompt-gap: var(--size-10) var(--size-16);
|
|
31198
31217
|
--Prompt-border-radius: var(--radius-large);
|
|
31218
|
+
container: wds-action-prompt / inline-size;
|
|
31199
31219
|
}
|
|
31200
31220
|
.wds-action-prompt--media-image {
|
|
31201
31221
|
inline-size: var(--size-48);
|
|
@@ -31203,12 +31223,19 @@ button.np-link {
|
|
|
31203
31223
|
-o-object-fit: contain;
|
|
31204
31224
|
object-fit: contain;
|
|
31205
31225
|
}
|
|
31206
|
-
@
|
|
31226
|
+
@container wds-action-prompt (width < 600px) {
|
|
31227
|
+
.wds-action-prompt .wds-prompt__actions-wrapper {
|
|
31228
|
+
grid-column: span 2;
|
|
31229
|
+
inline-size: 100%;
|
|
31230
|
+
}
|
|
31231
|
+
.wds-action-prompt .wds-prompt__content-wrapper--with-dismiss .wds-prompt__actions-wrapper {
|
|
31232
|
+
grid-column: span 3;
|
|
31233
|
+
}
|
|
31207
31234
|
.wds-action-prompt .wds-action-prompt__action {
|
|
31208
31235
|
inline-size: 100%;
|
|
31209
31236
|
}
|
|
31210
31237
|
}
|
|
31211
|
-
@
|
|
31238
|
+
@container wds-action-prompt (width < 600px) {
|
|
31212
31239
|
.wds-action-prompt--with-two-actions .wds-action-prompt__action {
|
|
31213
31240
|
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
31214
31241
|
min-inline-size: -moz-fit-content;
|
|
@@ -31231,8 +31258,6 @@ button.np-link {
|
|
|
31231
31258
|
position: relative;
|
|
31232
31259
|
--critical-banner-easing: cubic-bezier(0.9, 0, 0.7, 1);
|
|
31233
31260
|
--critical-banner-duration: 150ms;
|
|
31234
|
-
/* Override PrimitivePrompt's --screen-sm-max actions behaviour:
|
|
31235
|
-
actions only go full-width below mobile-max token (container query) */
|
|
31236
31261
|
}
|
|
31237
31262
|
.wds-critical-banner.wds-prompt--neutral {
|
|
31238
31263
|
--critical-banner-background-base: var(--color-background-elevated);
|
|
@@ -31311,13 +31336,11 @@ button.np-link {
|
|
|
31311
31336
|
}
|
|
31312
31337
|
}
|
|
31313
31338
|
.wds-critical-banner .wds-prompt__actions-wrapper {
|
|
31314
|
-
grid-column-start: 2;
|
|
31315
|
-
grid-column-end: 3;
|
|
31316
31339
|
max-block-size: 200px;
|
|
31317
31340
|
opacity: 1;
|
|
31318
31341
|
overflow: visible;
|
|
31319
31342
|
}
|
|
31320
|
-
@container (
|
|
31343
|
+
@container (width < 600px) {
|
|
31321
31344
|
.wds-critical-banner .wds-prompt__actions-wrapper {
|
|
31322
31345
|
grid-column: span 3;
|
|
31323
31346
|
inline-size: 100%;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var WithNextPortal = require('../../WithNextPortal/WithNextPortal.js');
|
|
6
|
-
var Snackbar = require('./Snackbar.js');
|
|
7
|
-
|
|
8
|
-
/** Renders the Snackbar into `document.body` after mount, so it's safe for SSR. */
|
|
9
|
-
const SnackbarPortal = WithNextPortal.default(Snackbar.Snackbar);
|
|
10
|
-
|
|
11
|
-
exports.default = SnackbarPortal;
|
|
12
|
-
//# sourceMappingURL=SnackbarPortal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarPortal.js","sources":["../../../src/Prompt/Snackbar/SnackbarPortal.tsx"],"sourcesContent":["import withNextPortal from '../../WithNextPortal/WithNextPortal';\n\nimport { Snackbar } from './Snackbar';\n\n/** Renders the Snackbar into `document.body` after mount, so it's safe for SSR. */\nconst SnackbarPortal = withNextPortal(Snackbar);\n\nexport default SnackbarPortal;\n"],"names":["SnackbarPortal","withNextPortal","Snackbar"],"mappings":";;;;;;;AAIA;AACA,MAAMA,cAAc,GAAGC,sBAAc,CAACC,iBAAQ;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import withNextPortalWrapper from '../../WithNextPortal/WithNextPortal.mjs';
|
|
2
|
-
import { Snackbar } from './Snackbar.mjs';
|
|
3
|
-
|
|
4
|
-
/** Renders the Snackbar into `document.body` after mount, so it's safe for SSR. */
|
|
5
|
-
const SnackbarPortal = withNextPortalWrapper(Snackbar);
|
|
6
|
-
|
|
7
|
-
export { SnackbarPortal as default };
|
|
8
|
-
//# sourceMappingURL=SnackbarPortal.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarPortal.mjs","sources":["../../../src/Prompt/Snackbar/SnackbarPortal.tsx"],"sourcesContent":["import withNextPortal from '../../WithNextPortal/WithNextPortal';\n\nimport { Snackbar } from './Snackbar';\n\n/** Renders the Snackbar into `document.body` after mount, so it's safe for SSR. */\nconst SnackbarPortal = withNextPortal(Snackbar);\n\nexport default SnackbarPortal;\n"],"names":["SnackbarPortal","withNextPortal","Snackbar"],"mappings":";;;AAIA;AACA,MAAMA,cAAc,GAAGC,qBAAc,CAACC,QAAQ;;"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Renders the Snackbar into `document.body` after mount, so it's safe for SSR. */
|
|
2
|
-
declare const SnackbarPortal: (props: import("./Snackbar").SnackbarProps) => import("react").ReactPortal | null;
|
|
3
|
-
export default SnackbarPortal;
|
|
4
|
-
//# sourceMappingURL=SnackbarPortal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarPortal.d.ts","sourceRoot":"","sources":["../../../../src/Prompt/Snackbar/SnackbarPortal.tsx"],"names":[],"mappings":"AAIA,mFAAmF;AACnF,QAAA,MAAM,cAAc,mFAA2B,CAAC;AAEhD,eAAe,cAAc,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import withNextPortal from '../../WithNextPortal/WithNextPortal';
|
|
2
|
-
|
|
3
|
-
import { Snackbar } from './Snackbar';
|
|
4
|
-
|
|
5
|
-
/** Renders the Snackbar into `document.body` after mount, so it's safe for SSR. */
|
|
6
|
-
const SnackbarPortal = withNextPortal(Snackbar);
|
|
7
|
-
|
|
8
|
-
export default SnackbarPortal;
|