@transferwise/components 0.0.0-experimental-49c6983 → 0.0.0-experimental-7636184
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/Provider/Provider.js +4 -1
- package/build/Provider/Provider.js.map +1 -1
- package/build/Provider/Provider.mjs +4 -1
- package/build/Provider/Provider.mjs.map +1 -1
- package/build/Snackbar/Snackbar.js +136 -105
- package/build/Snackbar/Snackbar.js.map +1 -1
- package/build/Snackbar/Snackbar.mjs +137 -103
- package/build/Snackbar/Snackbar.mjs.map +1 -1
- package/build/Snackbar/SnackbarContext.js.map +1 -1
- package/build/Snackbar/SnackbarContext.mjs.map +1 -1
- package/build/Snackbar/SnackbarPortal.js +12 -0
- package/build/Snackbar/SnackbarPortal.js.map +1 -0
- package/build/Snackbar/SnackbarPortal.mjs +8 -0
- package/build/Snackbar/SnackbarPortal.mjs.map +1 -0
- package/build/Snackbar/SnackbarProvider.js +24 -28
- package/build/Snackbar/SnackbarProvider.js.map +1 -1
- package/build/Snackbar/SnackbarProvider.mjs +25 -29
- package/build/Snackbar/SnackbarProvider.mjs.map +1 -1
- package/build/Snackbar/constants.js +14 -0
- package/build/Snackbar/constants.js.map +1 -0
- package/build/Snackbar/constants.mjs +9 -0
- package/build/Snackbar/constants.mjs.map +1 -0
- package/build/Snackbar/useSnackbarAutoDismiss.js +64 -0
- package/build/Snackbar/useSnackbarAutoDismiss.js.map +1 -0
- package/build/Snackbar/useSnackbarAutoDismiss.mjs +60 -0
- package/build/Snackbar/useSnackbarAutoDismiss.mjs.map +1 -0
- package/build/Snackbar/useSnackbarManager.js +144 -0
- package/build/Snackbar/useSnackbarManager.js.map +1 -0
- package/build/Snackbar/useSnackbarManager.mjs +140 -0
- package/build/Snackbar/useSnackbarManager.mjs.map +1 -0
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js +5 -5
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs +5 -5
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs.map +1 -1
- package/build/main.css +131 -61
- package/build/styles/Snackbar/Snackbar.css +105 -54
- package/build/styles/Typeahead/Typeahead.css +27 -8
- package/build/styles/main.css +131 -61
- package/build/types/Provider/Provider.d.ts.map +1 -1
- package/build/types/Snackbar/Snackbar.d.ts +48 -9
- package/build/types/Snackbar/Snackbar.d.ts.map +1 -1
- package/build/types/Snackbar/Snackbar.types.d.ts +12 -0
- package/build/types/Snackbar/Snackbar.types.d.ts.map +1 -0
- package/build/types/Snackbar/SnackbarContext.d.ts +2 -2
- package/build/types/Snackbar/SnackbarContext.d.ts.map +1 -1
- package/build/types/Snackbar/SnackbarPortal.d.ts +4 -0
- package/build/types/Snackbar/SnackbarPortal.d.ts.map +1 -0
- package/build/types/Snackbar/SnackbarProvider.d.ts +10 -0
- package/build/types/Snackbar/SnackbarProvider.d.ts.map +1 -1
- package/build/types/Snackbar/constants.d.ts +7 -0
- package/build/types/Snackbar/constants.d.ts.map +1 -0
- package/build/types/Snackbar/index.d.ts +1 -1
- package/build/types/Snackbar/index.d.ts.map +1 -1
- package/build/types/Snackbar/useSnackbar.d.ts +1 -1
- package/build/types/Snackbar/useSnackbar.d.ts.map +1 -1
- package/build/types/Snackbar/useSnackbarAutoDismiss.d.ts +12 -0
- package/build/types/Snackbar/useSnackbarAutoDismiss.d.ts.map +1 -0
- package/build/types/Snackbar/useSnackbarManager.d.ts +20 -0
- package/build/types/Snackbar/useSnackbarManager.d.ts.map +1 -0
- package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ListItem/_stories/ListItem.scenarios.story.tsx +13 -16
- package/src/Provider/Provider.tsx +2 -1
- package/src/Snackbar/Snackbar.css +105 -54
- package/src/Snackbar/Snackbar.less +124 -60
- package/src/Snackbar/Snackbar.test.tsx +540 -120
- package/src/Snackbar/Snackbar.tsx +159 -99
- package/src/Snackbar/Snackbar.types.ts +17 -0
- package/src/Snackbar/SnackbarContext.ts +2 -2
- package/src/Snackbar/SnackbarPortal.tsx +8 -0
- package/src/Snackbar/SnackbarProvider.test.tsx +577 -0
- package/src/Snackbar/SnackbarProvider.tsx +32 -19
- package/src/Snackbar/_stories/Snackbar.rtl.test.story.tsx +13 -10
- package/src/Snackbar/_stories/Snackbar.story.tsx +132 -39
- package/src/Snackbar/_stories/Snackbar.test.story.tsx +101 -35
- package/src/Snackbar/constants.ts +7 -0
- package/src/Snackbar/index.ts +1 -1
- package/src/Snackbar/useSnackbarAutoDismiss.ts +72 -0
- package/src/Snackbar/useSnackbarManager.ts +159 -0
- package/src/Typeahead/Typeahead.css +27 -8
- package/src/Typeahead/Typeahead.less +32 -9
- package/src/Typeahead/TypeaheadInput/TypeaheadInput.tsx +5 -5
- package/src/Typeahead/_stories/Typeahead.test.story.tsx +0 -65
- package/src/index.ts +1 -1
- package/src/main.css +131 -61
package/build/main.css
CHANGED
|
@@ -24198,75 +24198,126 @@ button.np-link {
|
|
|
24198
24198
|
[dir="rtl"] .np-theme-personal .sliding-panel.sliding-panel--border-left {
|
|
24199
24199
|
box-shadow: inset 1px 0 0 0 var(--color-border-neutral);
|
|
24200
24200
|
}
|
|
24201
|
-
.
|
|
24202
|
-
|
|
24201
|
+
.wds-Snackbar {
|
|
24202
|
+
display: flex;
|
|
24203
|
+
justify-content: center;
|
|
24204
|
+
box-sizing: border-box;
|
|
24205
|
+
padding-inline: var(--size-16);
|
|
24206
|
+
padding-block-end: calc(var(--size-16) + env(safe-area-inset-bottom));
|
|
24203
24207
|
position: fixed;
|
|
24204
24208
|
inset-block-end: 0;
|
|
24205
|
-
inset-inline
|
|
24206
|
-
inset-inline-end: 0;
|
|
24209
|
+
inset-inline: 0;
|
|
24207
24210
|
z-index: 1060;
|
|
24208
24211
|
}
|
|
24209
|
-
|
|
24210
|
-
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24212
|
+
@media (min-width: 600px) {
|
|
24213
|
+
.wds-Snackbar {
|
|
24214
|
+
padding-block-end: var(--size-24);
|
|
24215
|
+
}
|
|
24216
|
+
}
|
|
24217
|
+
.wds-Snackbar-container {
|
|
24218
|
+
--Prompt-border-radius: var(--radius-medium);
|
|
24219
|
+
--Prompt-gap: var(--size-8);
|
|
24220
|
+
--Prompt-padding-x: var(--size-12);
|
|
24221
|
+
--Prompt-padding-y: var(--size-12);
|
|
24222
|
+
box-sizing: border-box;
|
|
24223
|
+
max-inline-size: 480px;
|
|
24217
24224
|
text-align: start;
|
|
24218
|
-
font-size: var(--font-size-14);
|
|
24219
|
-
margin-block: 0;
|
|
24220
|
-
margin-inline: var(--size-16);
|
|
24221
|
-
padding-block: var(--size-8);
|
|
24222
|
-
padding-inline: var(--size-16);
|
|
24223
|
-
inline-size: calc(100% - var(--size-32));
|
|
24224
|
-
transition: 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
24225
24225
|
}
|
|
24226
|
-
.
|
|
24227
|
-
|
|
24228
|
-
position: relative;
|
|
24229
|
-
background: var(--color-contrast-theme);
|
|
24230
|
-
border-radius: var(--radius-small);
|
|
24231
|
-
color: var(--color-contrast-overlay);
|
|
24226
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
24227
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
24232
24228
|
}
|
|
24233
|
-
|
|
24234
|
-
|
|
24235
|
-
|
|
24236
|
-
|
|
24237
|
-
inline-size: 100%;
|
|
24238
|
-
content: "";
|
|
24239
|
-
position: absolute;
|
|
24240
|
-
inset-inline-start: 0;
|
|
24241
|
-
inset-block-start: 0;
|
|
24242
|
-
z-index: -1;
|
|
24243
|
-
background-color: var(--color-background-neutral);
|
|
24229
|
+
@media (min-width: 600px) {
|
|
24230
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
24231
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
24232
|
+
}
|
|
24244
24233
|
}
|
|
24245
|
-
.
|
|
24246
|
-
|
|
24247
|
-
|
|
24234
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper {
|
|
24235
|
+
display: flex;
|
|
24236
|
+
align-items: center;
|
|
24237
|
+
min-block-size: max(var(--size-32), 1lh);
|
|
24238
|
+
padding-block-start: 0;
|
|
24239
|
+
color: var(--color-sentiment-content-primary);
|
|
24240
|
+
}
|
|
24241
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper:has(+ .wds-Snackbar__content .wds-Snackbar__action) {
|
|
24242
|
+
min-block-size: max(var(--size-32), calc(1lh + var(--size-5) * 2));
|
|
24243
|
+
}
|
|
24244
|
+
.wds-Snackbar__media-asset {
|
|
24245
|
+
display: flex;
|
|
24246
|
+
}
|
|
24247
|
+
.wds-Snackbar__media-asset svg {
|
|
24248
|
+
inline-size: var(--size-24);
|
|
24249
|
+
block-size: var(--size-24);
|
|
24250
|
+
}
|
|
24251
|
+
.wds-Snackbar__process-indicator .process-circle {
|
|
24252
|
+
stroke: currentColor;
|
|
24253
|
+
}
|
|
24254
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
24255
|
+
display: none;
|
|
24256
|
+
align-self: flex-start;
|
|
24257
|
+
margin-block-start: calc(var(--size-4) - 1px);
|
|
24248
24258
|
}
|
|
24249
24259
|
@media (min-width: 600px) {
|
|
24250
|
-
.
|
|
24251
|
-
|
|
24252
|
-
max-inline-size: 600px;
|
|
24260
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
24261
|
+
display: flex;
|
|
24253
24262
|
}
|
|
24254
24263
|
}
|
|
24255
|
-
.
|
|
24264
|
+
.wds-Snackbar__action {
|
|
24256
24265
|
flex-shrink: 0;
|
|
24257
|
-
margin-inline-start: var(--size-16);
|
|
24258
24266
|
}
|
|
24259
|
-
.
|
|
24260
|
-
|
|
24261
|
-
|
|
24267
|
+
.wds-Snackbar__content {
|
|
24268
|
+
display: flex;
|
|
24269
|
+
align-items: flex-start;
|
|
24270
|
+
gap: var(--size-8);
|
|
24271
|
+
flex: 1 0 0;
|
|
24272
|
+
min-block-size: var(--size-32);
|
|
24273
|
+
min-inline-size: 0;
|
|
24274
|
+
}
|
|
24275
|
+
.wds-Snackbar__message {
|
|
24276
|
+
display: flex;
|
|
24277
|
+
flex-direction: column;
|
|
24278
|
+
justify-content: center;
|
|
24279
|
+
inline-size: auto;
|
|
24280
|
+
flex: 1 0 0;
|
|
24281
|
+
min-inline-size: 0;
|
|
24282
|
+
align-self: stretch;
|
|
24283
|
+
}
|
|
24284
|
+
.wds-Snackbar__body {
|
|
24285
|
+
display: block;
|
|
24262
24286
|
}
|
|
24263
|
-
.
|
|
24264
|
-
|
|
24265
|
-
|
|
24287
|
+
.wds-Snackbar-container-appear,
|
|
24288
|
+
.wds-Snackbar-container-enter {
|
|
24289
|
+
opacity: 0;
|
|
24290
|
+
transform: translateY(80px) scale(0.5);
|
|
24266
24291
|
}
|
|
24267
|
-
|
|
24268
|
-
|
|
24269
|
-
|
|
24292
|
+
.wds-Snackbar-container-appear-active,
|
|
24293
|
+
.wds-Snackbar-container-enter-active {
|
|
24294
|
+
opacity: 1;
|
|
24295
|
+
transform: translateY(0) scale(1);
|
|
24296
|
+
transition: opacity 150ms linear, transform var(--Snackbar-enter-duration) cubic-bezier(0, 0, 0, 1);
|
|
24297
|
+
}
|
|
24298
|
+
.wds-Snackbar-container-exit {
|
|
24299
|
+
opacity: 1;
|
|
24300
|
+
transform: translateY(0) scale(1);
|
|
24301
|
+
}
|
|
24302
|
+
.wds-Snackbar-container-exit-active {
|
|
24303
|
+
opacity: 0;
|
|
24304
|
+
transform: translateY(80px) scale(0.5);
|
|
24305
|
+
transition: opacity 50ms linear 50ms, transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
24306
|
+
}
|
|
24307
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24308
|
+
.wds-Snackbar-container-appear,
|
|
24309
|
+
.wds-Snackbar-container-appear-active,
|
|
24310
|
+
.wds-Snackbar-container-enter,
|
|
24311
|
+
.wds-Snackbar-container-enter-active,
|
|
24312
|
+
.wds-Snackbar-container-exit {
|
|
24313
|
+
opacity: 1;
|
|
24314
|
+
transform: none;
|
|
24315
|
+
transition: none;
|
|
24316
|
+
}
|
|
24317
|
+
.wds-Snackbar-container-exit-active {
|
|
24318
|
+
opacity: 0;
|
|
24319
|
+
transform: none;
|
|
24320
|
+
transition: none;
|
|
24270
24321
|
}
|
|
24271
24322
|
}
|
|
24272
24323
|
.status-circle.negative,
|
|
@@ -25409,6 +25460,12 @@ button.np-link {
|
|
|
25409
25460
|
}
|
|
25410
25461
|
.typeahead--multiple .np-chip {
|
|
25411
25462
|
margin-block-end: auto;
|
|
25463
|
+
animation-name: slide;
|
|
25464
|
+
animation-duration: 0.03s;
|
|
25465
|
+
animation-timing-function: ease-in-out;
|
|
25466
|
+
}
|
|
25467
|
+
.typeahead--multiple .np-chip:first-child {
|
|
25468
|
+
animation-name: slideFirst;
|
|
25412
25469
|
}
|
|
25413
25470
|
.typeahead--multiple .np-chip-remove {
|
|
25414
25471
|
animation-name: fadeIn;
|
|
@@ -25420,10 +25477,7 @@ button.np-link {
|
|
|
25420
25477
|
min-block-size: auto;
|
|
25421
25478
|
padding-block-start: 0;
|
|
25422
25479
|
padding-block-end: 0;
|
|
25423
|
-
overflow:
|
|
25424
|
-
}
|
|
25425
|
-
.typeahead--multiple .typeahead__input-container--scrollable {
|
|
25426
|
-
overflow-y: auto;
|
|
25480
|
+
overflow: auto;
|
|
25427
25481
|
}
|
|
25428
25482
|
.typeahead--multiple .typeahead__input {
|
|
25429
25483
|
border: none;
|
|
@@ -25457,12 +25511,12 @@ button.np-link {
|
|
|
25457
25511
|
padding-inline-start: 0;
|
|
25458
25512
|
}
|
|
25459
25513
|
.typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
25460
|
-
margin-block-end: calc(-1 * var(--size-8));
|
|
25514
|
+
margin-block-end: calc(-1 * var(--size-8) + 1px);
|
|
25461
25515
|
margin-inline-start: var(--size-4);
|
|
25462
25516
|
}
|
|
25463
25517
|
.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
|
|
25464
25518
|
content: "";
|
|
25465
|
-
block-size: var(--size-8);
|
|
25519
|
+
block-size: calc(var(--size-8) - 1);
|
|
25466
25520
|
inline-size: 100%;
|
|
25467
25521
|
}
|
|
25468
25522
|
.typeahead__input-wrapper {
|
|
@@ -25496,7 +25550,7 @@ button.np-link {
|
|
|
25496
25550
|
min-block-size: var(--input-height-large);
|
|
25497
25551
|
}
|
|
25498
25552
|
.typeahead-lg.typeahead--multiple .typeahead__input {
|
|
25499
|
-
padding-block-start: var(--size-8);
|
|
25553
|
+
padding-block-start: calc(var(--size-8) - 1);
|
|
25500
25554
|
}
|
|
25501
25555
|
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
|
|
25502
25556
|
padding-block-end: var(--size-8);
|
|
@@ -25508,6 +25562,22 @@ button.np-link {
|
|
|
25508
25562
|
.typeahead-lg.typeahead--multiple .np-chip {
|
|
25509
25563
|
margin-block-end: 0;
|
|
25510
25564
|
}
|
|
25565
|
+
@keyframes slide {
|
|
25566
|
+
from {
|
|
25567
|
+
transform: translateX(-12px);
|
|
25568
|
+
}
|
|
25569
|
+
to {
|
|
25570
|
+
transform: none;
|
|
25571
|
+
}
|
|
25572
|
+
}
|
|
25573
|
+
@keyframes slideFirst {
|
|
25574
|
+
from {
|
|
25575
|
+
transform: translateX(-4px);
|
|
25576
|
+
}
|
|
25577
|
+
to {
|
|
25578
|
+
transform: none;
|
|
25579
|
+
}
|
|
25580
|
+
}
|
|
25511
25581
|
@keyframes fadeIn {
|
|
25512
25582
|
from {
|
|
25513
25583
|
opacity: 0;
|
|
@@ -25530,7 +25600,7 @@ button.np-link {
|
|
|
25530
25600
|
color: var(--color-interactive-secondary);
|
|
25531
25601
|
}
|
|
25532
25602
|
.np-theme-personal .typeahead .np-chip {
|
|
25533
|
-
margin-block-start:
|
|
25603
|
+
margin-block-start: 9px !important;
|
|
25534
25604
|
}
|
|
25535
25605
|
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
25536
25606
|
padding-inline-end: var(--size-16);
|
|
@@ -1,71 +1,122 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
.wds-Snackbar {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding-inline: var(--size-16);
|
|
6
|
+
padding-block-end: calc(var(--size-16) + env(safe-area-inset-bottom));
|
|
3
7
|
position: fixed;
|
|
4
8
|
inset-block-end: 0;
|
|
5
|
-
inset-inline
|
|
6
|
-
inset-inline-end: 0;
|
|
9
|
+
inset-inline: 0;
|
|
7
10
|
z-index: 1060;
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
@media (min-width: 600px) {
|
|
13
|
+
.wds-Snackbar {
|
|
14
|
+
padding-block-end: var(--size-24);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.wds-Snackbar-container {
|
|
18
|
+
--Prompt-border-radius: var(--radius-medium);
|
|
19
|
+
--Prompt-gap: var(--size-8);
|
|
20
|
+
--Prompt-padding-x: var(--size-12);
|
|
21
|
+
--Prompt-padding-y: var(--size-12);
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
max-inline-size: 480px;
|
|
17
24
|
text-align: start;
|
|
18
|
-
font-size: var(--font-size-14);
|
|
19
|
-
margin-block: 0;
|
|
20
|
-
margin-inline: var(--size-16);
|
|
21
|
-
padding-block: var(--size-8);
|
|
22
|
-
padding-inline: var(--size-16);
|
|
23
|
-
inline-size: calc(100% - var(--size-32));
|
|
24
|
-
transition: 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
position: relative;
|
|
29
|
-
background: var(--color-contrast-theme);
|
|
30
|
-
border-radius: var(--radius-small);
|
|
31
|
-
color: var(--color-contrast-overlay);
|
|
26
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
27
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
32
28
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
.
|
|
46
|
-
|
|
47
|
-
|
|
29
|
+
@media (min-width: 600px) {
|
|
30
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
31
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
min-block-size: max(var(--size-32), 1lh);
|
|
38
|
+
padding-block-start: 0;
|
|
39
|
+
color: var(--color-sentiment-content-primary);
|
|
40
|
+
}
|
|
41
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper:has(+ .wds-Snackbar__content .wds-Snackbar__action) {
|
|
42
|
+
min-block-size: max(var(--size-32), calc(1lh + var(--size-5) * 2));
|
|
43
|
+
}
|
|
44
|
+
.wds-Snackbar__media-asset {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
.wds-Snackbar__media-asset svg {
|
|
48
|
+
inline-size: var(--size-24);
|
|
49
|
+
block-size: var(--size-24);
|
|
50
|
+
}
|
|
51
|
+
.wds-Snackbar__process-indicator .process-circle {
|
|
52
|
+
stroke: currentColor;
|
|
53
|
+
}
|
|
54
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
55
|
+
display: none;
|
|
56
|
+
align-self: flex-start;
|
|
57
|
+
margin-block-start: calc(var(--size-4) - 1px);
|
|
48
58
|
}
|
|
49
59
|
@media (min-width: 600px) {
|
|
50
|
-
.
|
|
51
|
-
|
|
52
|
-
max-inline-size: 600px;
|
|
60
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
61
|
+
display: flex;
|
|
53
62
|
}
|
|
54
63
|
}
|
|
55
|
-
.
|
|
64
|
+
.wds-Snackbar__action {
|
|
56
65
|
flex-shrink: 0;
|
|
57
|
-
margin-inline-start: var(--size-16);
|
|
58
66
|
}
|
|
59
|
-
.
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
.wds-Snackbar__content {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: flex-start;
|
|
70
|
+
gap: var(--size-8);
|
|
71
|
+
flex: 1 0 0;
|
|
72
|
+
min-block-size: var(--size-32);
|
|
73
|
+
min-inline-size: 0;
|
|
62
74
|
}
|
|
63
|
-
.
|
|
64
|
-
|
|
65
|
-
|
|
75
|
+
.wds-Snackbar__message {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
inline-size: auto;
|
|
80
|
+
flex: 1 0 0;
|
|
81
|
+
min-inline-size: 0;
|
|
82
|
+
align-self: stretch;
|
|
66
83
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
.wds-Snackbar__body {
|
|
85
|
+
display: block;
|
|
86
|
+
}
|
|
87
|
+
.wds-Snackbar-container-appear,
|
|
88
|
+
.wds-Snackbar-container-enter {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transform: translateY(80px) scale(0.5);
|
|
91
|
+
}
|
|
92
|
+
.wds-Snackbar-container-appear-active,
|
|
93
|
+
.wds-Snackbar-container-enter-active {
|
|
94
|
+
opacity: 1;
|
|
95
|
+
transform: translateY(0) scale(1);
|
|
96
|
+
transition: opacity 150ms linear, transform var(--Snackbar-enter-duration) cubic-bezier(0, 0, 0, 1);
|
|
97
|
+
}
|
|
98
|
+
.wds-Snackbar-container-exit {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
transform: translateY(0) scale(1);
|
|
101
|
+
}
|
|
102
|
+
.wds-Snackbar-container-exit-active {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
transform: translateY(80px) scale(0.5);
|
|
105
|
+
transition: opacity 50ms linear 50ms, transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
106
|
+
}
|
|
107
|
+
@media (prefers-reduced-motion: reduce) {
|
|
108
|
+
.wds-Snackbar-container-appear,
|
|
109
|
+
.wds-Snackbar-container-appear-active,
|
|
110
|
+
.wds-Snackbar-container-enter,
|
|
111
|
+
.wds-Snackbar-container-enter-active,
|
|
112
|
+
.wds-Snackbar-container-exit {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
transform: none;
|
|
115
|
+
transition: none;
|
|
116
|
+
}
|
|
117
|
+
.wds-Snackbar-container-exit-active {
|
|
118
|
+
opacity: 0;
|
|
119
|
+
transform: none;
|
|
120
|
+
transition: none;
|
|
70
121
|
}
|
|
71
122
|
}
|
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
.typeahead--multiple .np-chip {
|
|
28
28
|
margin-block-end: auto;
|
|
29
|
+
animation-name: slide;
|
|
30
|
+
animation-duration: 0.03s;
|
|
31
|
+
animation-timing-function: ease-in-out;
|
|
32
|
+
}
|
|
33
|
+
.typeahead--multiple .np-chip:first-child {
|
|
34
|
+
animation-name: slideFirst;
|
|
29
35
|
}
|
|
30
36
|
.typeahead--multiple .np-chip-remove {
|
|
31
37
|
animation-name: fadeIn;
|
|
@@ -37,10 +43,7 @@
|
|
|
37
43
|
min-block-size: auto;
|
|
38
44
|
padding-block-start: 0;
|
|
39
45
|
padding-block-end: 0;
|
|
40
|
-
overflow:
|
|
41
|
-
}
|
|
42
|
-
.typeahead--multiple .typeahead__input-container--scrollable {
|
|
43
|
-
overflow-y: auto;
|
|
46
|
+
overflow: auto;
|
|
44
47
|
}
|
|
45
48
|
.typeahead--multiple .typeahead__input {
|
|
46
49
|
border: none;
|
|
@@ -74,12 +77,12 @@
|
|
|
74
77
|
padding-inline-start: 0;
|
|
75
78
|
}
|
|
76
79
|
.typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
77
|
-
margin-block-end: calc(-1 * var(--size-8));
|
|
80
|
+
margin-block-end: calc(-1 * var(--size-8) + 1px);
|
|
78
81
|
margin-inline-start: var(--size-4);
|
|
79
82
|
}
|
|
80
83
|
.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
|
|
81
84
|
content: "";
|
|
82
|
-
block-size: var(--size-8);
|
|
85
|
+
block-size: calc(var(--size-8) - 1);
|
|
83
86
|
inline-size: 100%;
|
|
84
87
|
}
|
|
85
88
|
.typeahead__input-wrapper {
|
|
@@ -113,7 +116,7 @@
|
|
|
113
116
|
min-block-size: var(--input-height-large);
|
|
114
117
|
}
|
|
115
118
|
.typeahead-lg.typeahead--multiple .typeahead__input {
|
|
116
|
-
padding-block-start: var(--size-8);
|
|
119
|
+
padding-block-start: calc(var(--size-8) - 1);
|
|
117
120
|
}
|
|
118
121
|
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
|
|
119
122
|
padding-block-end: var(--size-8);
|
|
@@ -125,6 +128,22 @@
|
|
|
125
128
|
.typeahead-lg.typeahead--multiple .np-chip {
|
|
126
129
|
margin-block-end: 0;
|
|
127
130
|
}
|
|
131
|
+
@keyframes slide {
|
|
132
|
+
from {
|
|
133
|
+
transform: translateX(-12px);
|
|
134
|
+
}
|
|
135
|
+
to {
|
|
136
|
+
transform: none;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
@keyframes slideFirst {
|
|
140
|
+
from {
|
|
141
|
+
transform: translateX(-4px);
|
|
142
|
+
}
|
|
143
|
+
to {
|
|
144
|
+
transform: none;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
128
147
|
@keyframes fadeIn {
|
|
129
148
|
from {
|
|
130
149
|
opacity: 0;
|
|
@@ -147,7 +166,7 @@
|
|
|
147
166
|
color: var(--color-interactive-secondary);
|
|
148
167
|
}
|
|
149
168
|
.np-theme-personal .typeahead .np-chip {
|
|
150
|
-
margin-block-start:
|
|
169
|
+
margin-block-start: 9px !important;
|
|
151
170
|
}
|
|
152
171
|
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
153
172
|
padding-inline-end: var(--size-16);
|