@transferwise/components 46.167.0 → 46.168.1
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/README.md +1 -1
- package/build/Link/Link.js.map +1 -1
- package/build/Link/Link.mjs.map +1 -1
- package/build/Loader/Loader.js.map +1 -1
- package/build/Loader/Loader.mjs.map +1 -1
- package/build/Prompt/PrimitivePrompt/PrimitivePrompt.js +2 -1
- package/build/Prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
- package/build/Prompt/PrimitivePrompt/PrimitivePrompt.mjs +2 -1
- package/build/Prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
- package/build/Prompt/Snackbar/Snackbar.js +202 -0
- package/build/Prompt/Snackbar/Snackbar.js.map +1 -0
- package/build/Prompt/Snackbar/Snackbar.messages.js +14 -0
- package/build/Prompt/Snackbar/Snackbar.messages.js.map +1 -0
- package/build/Prompt/Snackbar/Snackbar.messages.mjs +10 -0
- package/build/Prompt/Snackbar/Snackbar.messages.mjs.map +1 -0
- package/build/Prompt/Snackbar/Snackbar.mjs +200 -0
- package/build/Prompt/Snackbar/Snackbar.mjs.map +1 -0
- package/build/Prompt/Snackbar/SnackbarContext.js.map +1 -0
- package/build/Prompt/Snackbar/SnackbarContext.mjs.map +1 -0
- package/build/Prompt/Snackbar/SnackbarPortal.js +12 -0
- package/build/Prompt/Snackbar/SnackbarPortal.js.map +1 -0
- package/build/Prompt/Snackbar/SnackbarPortal.mjs +8 -0
- package/build/Prompt/Snackbar/SnackbarPortal.mjs.map +1 -0
- package/build/Prompt/Snackbar/SnackbarProvider.js +42 -0
- package/build/Prompt/Snackbar/SnackbarProvider.js.map +1 -0
- package/build/Prompt/Snackbar/SnackbarProvider.mjs +38 -0
- package/build/Prompt/Snackbar/SnackbarProvider.mjs.map +1 -0
- package/build/Prompt/Snackbar/constants.js +17 -0
- package/build/Prompt/Snackbar/constants.js.map +1 -0
- package/build/Prompt/Snackbar/constants.mjs +11 -0
- package/build/Prompt/Snackbar/constants.mjs.map +1 -0
- package/build/Prompt/Snackbar/useSnackbar.js.map +1 -0
- package/build/Prompt/Snackbar/useSnackbar.mjs.map +1 -0
- package/build/Prompt/Snackbar/useSnackbarAutoDismiss.js +66 -0
- package/build/Prompt/Snackbar/useSnackbarAutoDismiss.js.map +1 -0
- package/build/Prompt/Snackbar/useSnackbarAutoDismiss.mjs +62 -0
- package/build/Prompt/Snackbar/useSnackbarAutoDismiss.mjs.map +1 -0
- package/build/Prompt/Snackbar/useSnackbarManager.js +153 -0
- package/build/Prompt/Snackbar/useSnackbarManager.js.map +1 -0
- package/build/Prompt/Snackbar/useSnackbarManager.mjs +149 -0
- package/build/Prompt/Snackbar/useSnackbarManager.mjs.map +1 -0
- package/build/Prompt/Snackbar/useSnackbarSwipeDismiss.js +122 -0
- package/build/Prompt/Snackbar/useSnackbarSwipeDismiss.js.map +1 -0
- package/build/Prompt/Snackbar/useSnackbarSwipeDismiss.mjs +118 -0
- package/build/Prompt/Snackbar/useSnackbarSwipeDismiss.mjs.map +1 -0
- package/build/Provider/Provider.js +1 -24
- package/build/Provider/Provider.js.map +1 -1
- package/build/Provider/Provider.mjs +1 -24
- package/build/Provider/Provider.mjs.map +1 -1
- package/build/Section/Section.js.map +1 -1
- package/build/Section/Section.mjs.map +1 -1
- package/build/WithDisplayFormat/WithDisplayFormat.js +20 -8
- package/build/WithDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/WithDisplayFormat/WithDisplayFormat.mjs +20 -8
- package/build/WithDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/build/_deprecated/Select/Select.js +1 -1
- package/build/_deprecated/Select/Select.js.map +1 -1
- package/build/_deprecated/Select/Select.mjs +1 -1
- package/build/_deprecated/Select/Select.mjs.map +1 -1
- package/build/common/BottomSheet/BottomSheet.js +1 -3
- package/build/common/BottomSheet/BottomSheet.js.map +1 -1
- package/build/common/BottomSheet/BottomSheet.mjs +1 -3
- package/build/common/BottomSheet/BottomSheet.mjs.map +1 -1
- package/build/i18n/cs.json +1 -0
- package/build/i18n/cs.json.js +1 -0
- package/build/i18n/cs.json.js.map +1 -1
- package/build/i18n/cs.json.mjs +1 -0
- package/build/i18n/cs.json.mjs.map +1 -1
- package/build/i18n/en.json +1 -0
- package/build/i18n/en.json.js +1 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +1 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/i18n/es.json +1 -0
- package/build/i18n/es.json.js +1 -0
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +1 -0
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/id.json +1 -0
- package/build/i18n/id.json.js +1 -0
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +1 -0
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/ja.json +1 -0
- package/build/i18n/ja.json.js +1 -0
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +1 -0
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/nl.json +1 -0
- package/build/i18n/nl.json.js +1 -0
- package/build/i18n/nl.json.js.map +1 -1
- package/build/i18n/nl.json.mjs +1 -0
- package/build/i18n/nl.json.mjs.map +1 -1
- package/build/i18n/pt.json +1 -0
- package/build/i18n/pt.json.js +1 -0
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +1 -0
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ro.json +1 -0
- package/build/i18n/ro.json.js +1 -0
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +1 -0
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/ru.json +1 -0
- package/build/i18n/ru.json.js +1 -0
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +1 -0
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/uk.json +1 -0
- package/build/i18n/uk.json.js +1 -0
- package/build/i18n/uk.json.js.map +1 -1
- package/build/i18n/uk.json.mjs +1 -0
- package/build/i18n/uk.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +1 -0
- package/build/i18n/zh-HK.json.js +1 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +1 -0
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/index.js +3 -3
- package/build/index.mjs +3 -3
- package/build/main.css +138 -75
- package/build/styles/IconButton/IconButton.css +3 -4
- package/build/styles/Inputs/InputGroup/InputGroup.css +1 -0
- package/build/styles/Prompt/Snackbar/Snackbar.css +134 -0
- package/build/styles/main.css +138 -75
- package/build/test-utils/assets/apple-pay-logo.svg +0 -0
- package/build/types/Link/Link.d.ts +1 -1
- package/build/types/Loader/Loader.d.ts +1 -1
- package/build/types/Prompt/PrimitivePrompt/PrimitivePrompt.d.ts +11 -0
- package/build/types/Prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -1
- package/build/types/Prompt/Snackbar/Snackbar.d.ts +62 -0
- package/build/types/Prompt/Snackbar/Snackbar.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/Snackbar.messages.d.ts +9 -0
- package/build/types/Prompt/Snackbar/Snackbar.messages.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/Snackbar.types.d.ts +12 -0
- package/build/types/Prompt/Snackbar/Snackbar.types.d.ts.map +1 -0
- package/build/types/{Snackbar → Prompt/Snackbar}/SnackbarContext.d.ts +2 -2
- package/build/types/Prompt/Snackbar/SnackbarContext.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/SnackbarPortal.d.ts +4 -0
- package/build/types/Prompt/Snackbar/SnackbarPortal.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/SnackbarProvider.d.ts +13 -0
- package/build/types/Prompt/Snackbar/SnackbarProvider.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/constants.d.ts +9 -0
- package/build/types/Prompt/Snackbar/constants.d.ts.map +1 -0
- package/build/types/{Snackbar → Prompt/Snackbar}/index.d.ts +1 -1
- package/build/types/Prompt/Snackbar/index.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/useSnackbar.d.ts +3 -0
- package/build/types/Prompt/Snackbar/useSnackbar.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/useSnackbarAutoDismiss.d.ts +13 -0
- package/build/types/Prompt/Snackbar/useSnackbarAutoDismiss.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/useSnackbarManager.d.ts +20 -0
- package/build/types/Prompt/Snackbar/useSnackbarManager.d.ts.map +1 -0
- package/build/types/Prompt/Snackbar/useSnackbarSwipeDismiss.d.ts +20 -0
- package/build/types/Prompt/Snackbar/useSnackbarSwipeDismiss.d.ts.map +1 -0
- package/build/types/Section/Section.d.ts +1 -1
- package/build/types/WithDisplayFormat/WithDisplayFormat.d.ts +6 -4
- package/build/types/WithDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
- package/build/types/_deprecated/Select/Select.d.ts +1 -1
- package/build/types/common/BottomSheet/BottomSheet.d.ts +1 -3
- package/build/types/common/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/build/types/index.d.ts +5 -5
- package/build/types/index.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +2 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/IconButton/IconButton.css +3 -4
- package/src/IconButton/IconButton.less +14 -1
- package/src/InputWithDisplayFormat/_stories/InputWithDisplayFormat.story.tsx +39 -0
- package/src/Inputs/InputGroup/InputGroup.css +1 -0
- package/src/Inputs/InputGroup/InputGroup.less +1 -0
- package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +16 -0
- package/src/Inputs/SearchInput/_stories/SearchInput.test.story.tsx +9 -0
- package/src/Inputs/SelectInput/_stories/SelectInput.test.story.tsx +12 -0
- package/src/Link/Link.tsx +1 -1
- package/src/ListItem/AdditionalInfo/_stories/ListItemAdditionalInfo.story.tsx +1 -1
- package/src/ListItem/AvatarView/_stories/ListItemAvatarView.story.tsx +3 -3
- package/src/ListItem/_stories/ListItem.disabled.story.tsx +1 -1
- package/src/ListItem/_stories/ListItem.scenarios.story.tsx +2 -2
- package/src/Loader/Loader.tsx +1 -1
- package/src/MoneyInput/_stories/MoneyInput.test.story.tsx +11 -0
- package/src/PhoneNumberInput/_stories/PhoneNumberInput.test.story.tsx +30 -0
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.test.tsx +24 -1
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.tsx +8 -2
- package/src/Prompt/Snackbar/Snackbar.css +134 -0
- package/src/Prompt/Snackbar/Snackbar.less +159 -0
- package/src/Prompt/Snackbar/Snackbar.messages.ts +9 -0
- package/src/Prompt/Snackbar/Snackbar.test.tsx +1011 -0
- package/src/Prompt/Snackbar/Snackbar.tsx +243 -0
- package/src/Prompt/Snackbar/Snackbar.types.ts +17 -0
- package/src/{Snackbar → Prompt/Snackbar}/SnackbarContext.ts +2 -2
- package/src/Prompt/Snackbar/SnackbarPortal.tsx +8 -0
- package/src/Prompt/Snackbar/SnackbarProvider.test.tsx +783 -0
- package/src/Prompt/Snackbar/SnackbarProvider.tsx +41 -0
- package/src/Prompt/Snackbar/_stories/Snackbar.accessibility.docs.mdx +58 -0
- package/src/{Snackbar → Prompt/Snackbar}/_stories/Snackbar.rtl.test.story.tsx +17 -9
- package/src/Prompt/Snackbar/_stories/Snackbar.story.tsx +416 -0
- package/src/Prompt/Snackbar/_stories/Snackbar.test.story.tsx +263 -0
- package/src/Prompt/Snackbar/constants.ts +10 -0
- package/src/{Snackbar → Prompt/Snackbar}/index.ts +1 -1
- package/src/Prompt/Snackbar/useSnackbarAutoDismiss.ts +74 -0
- package/src/Prompt/Snackbar/useSnackbarManager.ts +169 -0
- package/src/Prompt/Snackbar/useSnackbarSwipeDismiss.ts +154 -0
- package/src/Provider/Provider.tsx +1 -1
- package/src/Section/Section.tsx +1 -1
- package/src/WithDisplayFormat/WithDisplayFormat.test.js +90 -7
- package/src/WithDisplayFormat/WithDisplayFormat.tsx +30 -9
- package/src/_deprecated/Select/Select.tsx +1 -1
- package/src/_deprecated/Select/_stories/Select.story.tsx +1 -1
- package/src/common/BottomSheet/BottomSheet.tsx +1 -3
- package/src/i18n/cs.json +1 -0
- package/src/i18n/en.json +1 -0
- package/src/i18n/es.json +1 -0
- package/src/i18n/id.json +1 -0
- package/src/i18n/ja.json +1 -0
- package/src/i18n/nl.json +1 -0
- package/src/i18n/pt.json +1 -0
- package/src/i18n/ro.json +1 -0
- package/src/i18n/ru.json +1 -0
- package/src/i18n/uk.json +1 -0
- package/src/i18n/zh-HK.json +1 -0
- package/src/index.ts +5 -5
- package/src/main.css +138 -75
- package/src/main.less +1 -1
- package/src/test-utils/assets/apple-pay-logo.svg +0 -0
- package/build/Snackbar/Snackbar.js +0 -128
- package/build/Snackbar/Snackbar.js.map +0 -1
- package/build/Snackbar/Snackbar.mjs +0 -123
- package/build/Snackbar/Snackbar.mjs.map +0 -1
- package/build/Snackbar/SnackbarContext.js.map +0 -1
- package/build/Snackbar/SnackbarContext.mjs.map +0 -1
- package/build/Snackbar/SnackbarProvider.js +0 -46
- package/build/Snackbar/SnackbarProvider.js.map +0 -1
- package/build/Snackbar/SnackbarProvider.mjs +0 -42
- package/build/Snackbar/SnackbarProvider.mjs.map +0 -1
- package/build/Snackbar/useSnackbar.js.map +0 -1
- package/build/Snackbar/useSnackbar.mjs.map +0 -1
- package/build/styles/Snackbar/Snackbar.css +0 -71
- package/build/types/Snackbar/Snackbar.d.ts +0 -16
- package/build/types/Snackbar/Snackbar.d.ts.map +0 -1
- package/build/types/Snackbar/SnackbarContext.d.ts.map +0 -1
- package/build/types/Snackbar/SnackbarProvider.d.ts +0 -6
- package/build/types/Snackbar/SnackbarProvider.d.ts.map +0 -1
- package/build/types/Snackbar/index.d.ts.map +0 -1
- package/build/types/Snackbar/useSnackbar.d.ts +0 -3
- package/build/types/Snackbar/useSnackbar.d.ts.map +0 -1
- package/src/Snackbar/Snackbar.css +0 -71
- package/src/Snackbar/Snackbar.less +0 -80
- package/src/Snackbar/Snackbar.test.tsx +0 -206
- package/src/Snackbar/Snackbar.tsx +0 -129
- package/src/Snackbar/SnackbarProvider.tsx +0 -33
- package/src/Snackbar/_stories/Snackbar.story.tsx +0 -89
- package/src/Snackbar/_stories/Snackbar.test.story.tsx +0 -139
- /package/build/{Snackbar → Prompt/Snackbar}/SnackbarContext.js +0 -0
- /package/build/{Snackbar → Prompt/Snackbar}/SnackbarContext.mjs +0 -0
- /package/build/{Snackbar → Prompt/Snackbar}/useSnackbar.js +0 -0
- /package/build/{Snackbar → Prompt/Snackbar}/useSnackbar.mjs +0 -0
- /package/src/{Snackbar → Prompt/Snackbar}/useSnackbar.ts +0 -0
package/build/main.css
CHANGED
|
@@ -26948,15 +26948,14 @@ a[data-toggle="tooltip"] {
|
|
|
26948
26948
|
color: var(--color-white);
|
|
26949
26949
|
}
|
|
26950
26950
|
.np-icon-button-minimal-default {
|
|
26951
|
-
color: var(--color-interactive-primary);
|
|
26952
|
-
background-color: var(--color-background-screen);
|
|
26951
|
+
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
26953
26952
|
background-color: transparent;
|
|
26954
26953
|
}
|
|
26955
26954
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):hover {
|
|
26956
|
-
background-color: var(--color-background-screen-hover);
|
|
26955
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-screen-hover));
|
|
26957
26956
|
}
|
|
26958
26957
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):active {
|
|
26959
|
-
background-color: var(--color-background-screen-active);
|
|
26958
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-background-screen-active));
|
|
26960
26959
|
}
|
|
26961
26960
|
.np-icon-button-secondary-default {
|
|
26962
26961
|
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
@@ -29650,6 +29649,7 @@ button.np-option {
|
|
|
29650
29649
|
display: inline-grid;
|
|
29651
29650
|
inline-size: 100%;
|
|
29652
29651
|
grid-auto-columns: minmax(0, 1fr);
|
|
29652
|
+
isolation: isolate;
|
|
29653
29653
|
/* Prevent unwanted `group-hover/input` triggers */
|
|
29654
29654
|
border-radius: var(--radius-full);
|
|
29655
29655
|
}
|
|
@@ -31414,6 +31414,140 @@ button.np-link {
|
|
|
31414
31414
|
overflow: visible;
|
|
31415
31415
|
}
|
|
31416
31416
|
}
|
|
31417
|
+
.wds-Snackbar {
|
|
31418
|
+
display: flex;
|
|
31419
|
+
justify-content: center;
|
|
31420
|
+
box-sizing: border-box;
|
|
31421
|
+
padding-inline: var(--size-16);
|
|
31422
|
+
padding-block-end: calc(var(--size-16) + env(safe-area-inset-bottom));
|
|
31423
|
+
position: fixed;
|
|
31424
|
+
inset-block-end: 0;
|
|
31425
|
+
inset-inline: 0;
|
|
31426
|
+
z-index: 1060;
|
|
31427
|
+
}
|
|
31428
|
+
@media (min-width: 600px) {
|
|
31429
|
+
.wds-Snackbar {
|
|
31430
|
+
padding-block-end: var(--size-24);
|
|
31431
|
+
}
|
|
31432
|
+
}
|
|
31433
|
+
.wds-Snackbar--swipe-dismiss {
|
|
31434
|
+
transition: transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
31435
|
+
}
|
|
31436
|
+
.wds-Snackbar--swipe-settle {
|
|
31437
|
+
transition: transform var(--Snackbar-exit-duration) cubic-bezier(0, 0, 0, 1);
|
|
31438
|
+
}
|
|
31439
|
+
.wds-Snackbar-container {
|
|
31440
|
+
--Prompt-border-radius: var(--radius-medium);
|
|
31441
|
+
--Prompt-gap: var(--size-8);
|
|
31442
|
+
--Prompt-padding-x: var(--size-12);
|
|
31443
|
+
--Prompt-padding-y: var(--size-12);
|
|
31444
|
+
box-sizing: border-box;
|
|
31445
|
+
max-inline-size: 480px;
|
|
31446
|
+
text-align: start;
|
|
31447
|
+
cursor: grab;
|
|
31448
|
+
touch-action: pan-x pinch-zoom;
|
|
31449
|
+
}
|
|
31450
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
31451
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
31452
|
+
}
|
|
31453
|
+
@media (min-width: 600px) {
|
|
31454
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
31455
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
31456
|
+
}
|
|
31457
|
+
}
|
|
31458
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper {
|
|
31459
|
+
display: flex;
|
|
31460
|
+
align-items: center;
|
|
31461
|
+
min-block-size: max(var(--size-32), 1lh);
|
|
31462
|
+
padding-block-start: 0;
|
|
31463
|
+
color: var(--color-sentiment-content-primary);
|
|
31464
|
+
}
|
|
31465
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper:has(+ .wds-Snackbar__content .wds-Snackbar__action) {
|
|
31466
|
+
min-block-size: max(var(--size-32), calc(1lh + var(--size-5) * 2));
|
|
31467
|
+
}
|
|
31468
|
+
.wds-Snackbar__media-asset {
|
|
31469
|
+
display: flex;
|
|
31470
|
+
}
|
|
31471
|
+
.wds-Snackbar__media-asset svg {
|
|
31472
|
+
inline-size: var(--size-24);
|
|
31473
|
+
block-size: var(--size-24);
|
|
31474
|
+
}
|
|
31475
|
+
.wds-Snackbar__process-indicator .process-circle {
|
|
31476
|
+
stroke: currentColor;
|
|
31477
|
+
}
|
|
31478
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
31479
|
+
display: none;
|
|
31480
|
+
align-self: flex-start;
|
|
31481
|
+
margin-block-start: calc(var(--size-4) - 1px);
|
|
31482
|
+
}
|
|
31483
|
+
@media (min-width: 600px) {
|
|
31484
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
31485
|
+
display: flex;
|
|
31486
|
+
}
|
|
31487
|
+
}
|
|
31488
|
+
.wds-Snackbar__action {
|
|
31489
|
+
flex-shrink: 0;
|
|
31490
|
+
}
|
|
31491
|
+
.wds-Snackbar__content {
|
|
31492
|
+
display: flex;
|
|
31493
|
+
align-items: flex-start;
|
|
31494
|
+
gap: var(--size-8);
|
|
31495
|
+
flex: 1 0 0;
|
|
31496
|
+
min-block-size: var(--size-32);
|
|
31497
|
+
min-inline-size: 0;
|
|
31498
|
+
}
|
|
31499
|
+
.wds-Snackbar__message {
|
|
31500
|
+
display: flex;
|
|
31501
|
+
flex-direction: column;
|
|
31502
|
+
justify-content: center;
|
|
31503
|
+
inline-size: auto;
|
|
31504
|
+
flex: 1 0 0;
|
|
31505
|
+
min-inline-size: 0;
|
|
31506
|
+
align-self: stretch;
|
|
31507
|
+
}
|
|
31508
|
+
.wds-Snackbar__body {
|
|
31509
|
+
display: block;
|
|
31510
|
+
}
|
|
31511
|
+
.wds-Snackbar-container-appear,
|
|
31512
|
+
.wds-Snackbar-container-enter {
|
|
31513
|
+
opacity: 0;
|
|
31514
|
+
transform: translateY(80px) scale(0.5);
|
|
31515
|
+
}
|
|
31516
|
+
.wds-Snackbar-container-appear-active,
|
|
31517
|
+
.wds-Snackbar-container-enter-active {
|
|
31518
|
+
opacity: 1;
|
|
31519
|
+
transform: translateY(0) scale(1);
|
|
31520
|
+
transition: opacity 150ms linear, transform var(--Snackbar-enter-duration) cubic-bezier(0, 0, 0, 1);
|
|
31521
|
+
}
|
|
31522
|
+
.wds-Snackbar-container-exit {
|
|
31523
|
+
opacity: 1;
|
|
31524
|
+
transform: translateY(0) scale(1);
|
|
31525
|
+
}
|
|
31526
|
+
.wds-Snackbar-container-exit-active {
|
|
31527
|
+
opacity: 0;
|
|
31528
|
+
transform: translateY(80px) scale(0.5);
|
|
31529
|
+
transition: opacity 50ms linear 50ms, transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
31530
|
+
}
|
|
31531
|
+
@media (prefers-reduced-motion: reduce) {
|
|
31532
|
+
.wds-Snackbar--swipe-dismiss,
|
|
31533
|
+
.wds-Snackbar--swipe-settle {
|
|
31534
|
+
transition: none;
|
|
31535
|
+
}
|
|
31536
|
+
.wds-Snackbar-container-appear,
|
|
31537
|
+
.wds-Snackbar-container-appear-active,
|
|
31538
|
+
.wds-Snackbar-container-enter,
|
|
31539
|
+
.wds-Snackbar-container-enter-active,
|
|
31540
|
+
.wds-Snackbar-container-exit {
|
|
31541
|
+
opacity: 1;
|
|
31542
|
+
transform: none;
|
|
31543
|
+
transition: none;
|
|
31544
|
+
}
|
|
31545
|
+
.wds-Snackbar-container-exit-active {
|
|
31546
|
+
opacity: 0;
|
|
31547
|
+
transform: none;
|
|
31548
|
+
transition: none;
|
|
31549
|
+
}
|
|
31550
|
+
}
|
|
31417
31551
|
.wds-expander-toggle {
|
|
31418
31552
|
align-self: flex-start;
|
|
31419
31553
|
flex-shrink: 0;
|
|
@@ -31516,77 +31650,6 @@ button.np-link {
|
|
|
31516
31650
|
[dir="rtl"] .np-theme-personal .sliding-panel.sliding-panel--border-left {
|
|
31517
31651
|
box-shadow: inset 1px 0 0 0 var(--color-border-neutral);
|
|
31518
31652
|
}
|
|
31519
|
-
.snackbar {
|
|
31520
|
-
text-align: center;
|
|
31521
|
-
position: fixed;
|
|
31522
|
-
inset-block-end: 0;
|
|
31523
|
-
inset-inline-start: 0;
|
|
31524
|
-
inset-inline-end: 0;
|
|
31525
|
-
z-index: 1060;
|
|
31526
|
-
}
|
|
31527
|
-
.snackbar__text {
|
|
31528
|
-
background: #37517e;
|
|
31529
|
-
color: #ffffff;
|
|
31530
|
-
display: inline-flex;
|
|
31531
|
-
border-radius: 2px;
|
|
31532
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
31533
|
-
align-items: center;
|
|
31534
|
-
justify-content: space-between;
|
|
31535
|
-
text-align: start;
|
|
31536
|
-
font-size: var(--wds-font-size-body);
|
|
31537
|
-
margin-block: 0;
|
|
31538
|
-
margin-inline: var(--size-16);
|
|
31539
|
-
padding-block: var(--size-8);
|
|
31540
|
-
padding-inline: var(--size-16);
|
|
31541
|
-
inline-size: calc(100% - var(--size-32));
|
|
31542
|
-
transition: 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
31543
|
-
}
|
|
31544
|
-
.np-theme-personal .snackbar__text {
|
|
31545
|
-
box-shadow: 0 2px 4px 0 rgba(69, 71, 69, 0.35);
|
|
31546
|
-
position: relative;
|
|
31547
|
-
background: var(--color-contrast-theme);
|
|
31548
|
-
border-radius: var(--radius-small);
|
|
31549
|
-
color: var(--color-contrast-overlay);
|
|
31550
|
-
}
|
|
31551
|
-
.np-theme-personal .snackbar__text::after {
|
|
31552
|
-
display: block;
|
|
31553
|
-
border-radius: inherit;
|
|
31554
|
-
block-size: 100%;
|
|
31555
|
-
inline-size: 100%;
|
|
31556
|
-
content: "";
|
|
31557
|
-
position: absolute;
|
|
31558
|
-
inset-inline-start: 0;
|
|
31559
|
-
inset-block-start: 0;
|
|
31560
|
-
z-index: -1;
|
|
31561
|
-
background-color: var(--color-background-neutral);
|
|
31562
|
-
}
|
|
31563
|
-
.np-theme-personal--dark .snackbar__text,
|
|
31564
|
-
.np-theme-personal--forest-green .snackbar__text {
|
|
31565
|
-
box-shadow: none;
|
|
31566
|
-
}
|
|
31567
|
-
@media (min-width: 600px) {
|
|
31568
|
-
.snackbar__text {
|
|
31569
|
-
inline-size: auto;
|
|
31570
|
-
max-inline-size: 600px;
|
|
31571
|
-
}
|
|
31572
|
-
}
|
|
31573
|
-
.snackbar__text__action {
|
|
31574
|
-
flex-shrink: 0;
|
|
31575
|
-
margin-inline-start: var(--size-16);
|
|
31576
|
-
}
|
|
31577
|
-
.snackbar__text-container-enter,
|
|
31578
|
-
.snackbar__text-container-exit {
|
|
31579
|
-
transform: translateY(calc(100% + 10px));
|
|
31580
|
-
}
|
|
31581
|
-
.snackbar__text-container-enter-active {
|
|
31582
|
-
transform: translateY(-16px);
|
|
31583
|
-
transform: translateY(calc(-16px - env(safe-area-inset-bottom)));
|
|
31584
|
-
}
|
|
31585
|
-
@media (min-width: 600px) {
|
|
31586
|
-
.snackbar__text-container-enter-active {
|
|
31587
|
-
transform: translateY(-24px);
|
|
31588
|
-
}
|
|
31589
|
-
}
|
|
31590
31653
|
.status-circle.negative,
|
|
31591
31654
|
.status-circle.error {
|
|
31592
31655
|
background-color: var(--color-sentiment-interactive-primary, var(--color-sentiment-negative));
|
|
@@ -35,15 +35,14 @@
|
|
|
35
35
|
color: var(--color-white);
|
|
36
36
|
}
|
|
37
37
|
.np-icon-button-minimal-default {
|
|
38
|
-
color: var(--color-interactive-primary);
|
|
39
|
-
background-color: var(--color-background-screen);
|
|
38
|
+
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
40
39
|
background-color: transparent;
|
|
41
40
|
}
|
|
42
41
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):hover {
|
|
43
|
-
background-color: var(--color-background-screen-hover);
|
|
42
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-screen-hover));
|
|
44
43
|
}
|
|
45
44
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):active {
|
|
46
|
-
background-color: var(--color-background-screen-active);
|
|
45
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-background-screen-active));
|
|
47
46
|
}
|
|
48
47
|
.np-icon-button-secondary-default {
|
|
49
48
|
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
@@ -0,0 +1,134 @@
|
|
|
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));
|
|
7
|
+
position: fixed;
|
|
8
|
+
inset-block-end: 0;
|
|
9
|
+
inset-inline: 0;
|
|
10
|
+
z-index: 1060;
|
|
11
|
+
}
|
|
12
|
+
@media (min-width: 600px) {
|
|
13
|
+
.wds-Snackbar {
|
|
14
|
+
padding-block-end: var(--size-24);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.wds-Snackbar--swipe-dismiss {
|
|
18
|
+
transition: transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
19
|
+
}
|
|
20
|
+
.wds-Snackbar--swipe-settle {
|
|
21
|
+
transition: transform var(--Snackbar-exit-duration) cubic-bezier(0, 0, 0, 1);
|
|
22
|
+
}
|
|
23
|
+
.wds-Snackbar-container {
|
|
24
|
+
--Prompt-border-radius: var(--radius-medium);
|
|
25
|
+
--Prompt-gap: var(--size-8);
|
|
26
|
+
--Prompt-padding-x: var(--size-12);
|
|
27
|
+
--Prompt-padding-y: var(--size-12);
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
max-inline-size: 480px;
|
|
30
|
+
text-align: start;
|
|
31
|
+
cursor: grab;
|
|
32
|
+
touch-action: pan-x pinch-zoom;
|
|
33
|
+
}
|
|
34
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
35
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
36
|
+
}
|
|
37
|
+
@media (min-width: 600px) {
|
|
38
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
39
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
min-block-size: max(var(--size-32), 1lh);
|
|
46
|
+
padding-block-start: 0;
|
|
47
|
+
color: var(--color-sentiment-content-primary);
|
|
48
|
+
}
|
|
49
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper:has(+ .wds-Snackbar__content .wds-Snackbar__action) {
|
|
50
|
+
min-block-size: max(var(--size-32), calc(1lh + var(--size-5) * 2));
|
|
51
|
+
}
|
|
52
|
+
.wds-Snackbar__media-asset {
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
.wds-Snackbar__media-asset svg {
|
|
56
|
+
inline-size: var(--size-24);
|
|
57
|
+
block-size: var(--size-24);
|
|
58
|
+
}
|
|
59
|
+
.wds-Snackbar__process-indicator .process-circle {
|
|
60
|
+
stroke: currentColor;
|
|
61
|
+
}
|
|
62
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
63
|
+
display: none;
|
|
64
|
+
align-self: flex-start;
|
|
65
|
+
margin-block-start: calc(var(--size-4) - 1px);
|
|
66
|
+
}
|
|
67
|
+
@media (min-width: 600px) {
|
|
68
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
69
|
+
display: flex;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.wds-Snackbar__action {
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
}
|
|
75
|
+
.wds-Snackbar__content {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: flex-start;
|
|
78
|
+
gap: var(--size-8);
|
|
79
|
+
flex: 1 0 0;
|
|
80
|
+
min-block-size: var(--size-32);
|
|
81
|
+
min-inline-size: 0;
|
|
82
|
+
}
|
|
83
|
+
.wds-Snackbar__message {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
inline-size: auto;
|
|
88
|
+
flex: 1 0 0;
|
|
89
|
+
min-inline-size: 0;
|
|
90
|
+
align-self: stretch;
|
|
91
|
+
}
|
|
92
|
+
.wds-Snackbar__body {
|
|
93
|
+
display: block;
|
|
94
|
+
}
|
|
95
|
+
.wds-Snackbar-container-appear,
|
|
96
|
+
.wds-Snackbar-container-enter {
|
|
97
|
+
opacity: 0;
|
|
98
|
+
transform: translateY(80px) scale(0.5);
|
|
99
|
+
}
|
|
100
|
+
.wds-Snackbar-container-appear-active,
|
|
101
|
+
.wds-Snackbar-container-enter-active {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
transform: translateY(0) scale(1);
|
|
104
|
+
transition: opacity 150ms linear, transform var(--Snackbar-enter-duration) cubic-bezier(0, 0, 0, 1);
|
|
105
|
+
}
|
|
106
|
+
.wds-Snackbar-container-exit {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
transform: translateY(0) scale(1);
|
|
109
|
+
}
|
|
110
|
+
.wds-Snackbar-container-exit-active {
|
|
111
|
+
opacity: 0;
|
|
112
|
+
transform: translateY(80px) scale(0.5);
|
|
113
|
+
transition: opacity 50ms linear 50ms, transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
114
|
+
}
|
|
115
|
+
@media (prefers-reduced-motion: reduce) {
|
|
116
|
+
.wds-Snackbar--swipe-dismiss,
|
|
117
|
+
.wds-Snackbar--swipe-settle {
|
|
118
|
+
transition: none;
|
|
119
|
+
}
|
|
120
|
+
.wds-Snackbar-container-appear,
|
|
121
|
+
.wds-Snackbar-container-appear-active,
|
|
122
|
+
.wds-Snackbar-container-enter,
|
|
123
|
+
.wds-Snackbar-container-enter-active,
|
|
124
|
+
.wds-Snackbar-container-exit {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
transform: none;
|
|
127
|
+
transition: none;
|
|
128
|
+
}
|
|
129
|
+
.wds-Snackbar-container-exit-active {
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transform: none;
|
|
132
|
+
transition: none;
|
|
133
|
+
}
|
|
134
|
+
}
|
package/build/styles/main.css
CHANGED
|
@@ -26948,15 +26948,14 @@ a[data-toggle="tooltip"] {
|
|
|
26948
26948
|
color: var(--color-white);
|
|
26949
26949
|
}
|
|
26950
26950
|
.np-icon-button-minimal-default {
|
|
26951
|
-
color: var(--color-interactive-primary);
|
|
26952
|
-
background-color: var(--color-background-screen);
|
|
26951
|
+
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
26953
26952
|
background-color: transparent;
|
|
26954
26953
|
}
|
|
26955
26954
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):hover {
|
|
26956
|
-
background-color: var(--color-background-screen-hover);
|
|
26955
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-screen-hover));
|
|
26957
26956
|
}
|
|
26958
26957
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):active {
|
|
26959
|
-
background-color: var(--color-background-screen-active);
|
|
26958
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-background-screen-active));
|
|
26960
26959
|
}
|
|
26961
26960
|
.np-icon-button-secondary-default {
|
|
26962
26961
|
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
@@ -29650,6 +29649,7 @@ button.np-option {
|
|
|
29650
29649
|
display: inline-grid;
|
|
29651
29650
|
inline-size: 100%;
|
|
29652
29651
|
grid-auto-columns: minmax(0, 1fr);
|
|
29652
|
+
isolation: isolate;
|
|
29653
29653
|
/* Prevent unwanted `group-hover/input` triggers */
|
|
29654
29654
|
border-radius: var(--radius-full);
|
|
29655
29655
|
}
|
|
@@ -31414,6 +31414,140 @@ button.np-link {
|
|
|
31414
31414
|
overflow: visible;
|
|
31415
31415
|
}
|
|
31416
31416
|
}
|
|
31417
|
+
.wds-Snackbar {
|
|
31418
|
+
display: flex;
|
|
31419
|
+
justify-content: center;
|
|
31420
|
+
box-sizing: border-box;
|
|
31421
|
+
padding-inline: var(--size-16);
|
|
31422
|
+
padding-block-end: calc(var(--size-16) + env(safe-area-inset-bottom));
|
|
31423
|
+
position: fixed;
|
|
31424
|
+
inset-block-end: 0;
|
|
31425
|
+
inset-inline: 0;
|
|
31426
|
+
z-index: 1060;
|
|
31427
|
+
}
|
|
31428
|
+
@media (min-width: 600px) {
|
|
31429
|
+
.wds-Snackbar {
|
|
31430
|
+
padding-block-end: var(--size-24);
|
|
31431
|
+
}
|
|
31432
|
+
}
|
|
31433
|
+
.wds-Snackbar--swipe-dismiss {
|
|
31434
|
+
transition: transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
31435
|
+
}
|
|
31436
|
+
.wds-Snackbar--swipe-settle {
|
|
31437
|
+
transition: transform var(--Snackbar-exit-duration) cubic-bezier(0, 0, 0, 1);
|
|
31438
|
+
}
|
|
31439
|
+
.wds-Snackbar-container {
|
|
31440
|
+
--Prompt-border-radius: var(--radius-medium);
|
|
31441
|
+
--Prompt-gap: var(--size-8);
|
|
31442
|
+
--Prompt-padding-x: var(--size-12);
|
|
31443
|
+
--Prompt-padding-y: var(--size-12);
|
|
31444
|
+
box-sizing: border-box;
|
|
31445
|
+
max-inline-size: 480px;
|
|
31446
|
+
text-align: start;
|
|
31447
|
+
cursor: grab;
|
|
31448
|
+
touch-action: pan-x pinch-zoom;
|
|
31449
|
+
}
|
|
31450
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
31451
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
31452
|
+
}
|
|
31453
|
+
@media (min-width: 600px) {
|
|
31454
|
+
.wds-Snackbar-container .wds-prompt__content-wrapper--with-dismiss {
|
|
31455
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
31456
|
+
}
|
|
31457
|
+
}
|
|
31458
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper {
|
|
31459
|
+
display: flex;
|
|
31460
|
+
align-items: center;
|
|
31461
|
+
min-block-size: max(var(--size-32), 1lh);
|
|
31462
|
+
padding-block-start: 0;
|
|
31463
|
+
color: var(--color-sentiment-content-primary);
|
|
31464
|
+
}
|
|
31465
|
+
.wds-Snackbar-container .wds-prompt__media-wrapper:has(+ .wds-Snackbar__content .wds-Snackbar__action) {
|
|
31466
|
+
min-block-size: max(var(--size-32), calc(1lh + var(--size-5) * 2));
|
|
31467
|
+
}
|
|
31468
|
+
.wds-Snackbar__media-asset {
|
|
31469
|
+
display: flex;
|
|
31470
|
+
}
|
|
31471
|
+
.wds-Snackbar__media-asset svg {
|
|
31472
|
+
inline-size: var(--size-24);
|
|
31473
|
+
block-size: var(--size-24);
|
|
31474
|
+
}
|
|
31475
|
+
.wds-Snackbar__process-indicator .process-circle {
|
|
31476
|
+
stroke: currentColor;
|
|
31477
|
+
}
|
|
31478
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
31479
|
+
display: none;
|
|
31480
|
+
align-self: flex-start;
|
|
31481
|
+
margin-block-start: calc(var(--size-4) - 1px);
|
|
31482
|
+
}
|
|
31483
|
+
@media (min-width: 600px) {
|
|
31484
|
+
.wds-Snackbar-container .wds-prompt__dismiss {
|
|
31485
|
+
display: flex;
|
|
31486
|
+
}
|
|
31487
|
+
}
|
|
31488
|
+
.wds-Snackbar__action {
|
|
31489
|
+
flex-shrink: 0;
|
|
31490
|
+
}
|
|
31491
|
+
.wds-Snackbar__content {
|
|
31492
|
+
display: flex;
|
|
31493
|
+
align-items: flex-start;
|
|
31494
|
+
gap: var(--size-8);
|
|
31495
|
+
flex: 1 0 0;
|
|
31496
|
+
min-block-size: var(--size-32);
|
|
31497
|
+
min-inline-size: 0;
|
|
31498
|
+
}
|
|
31499
|
+
.wds-Snackbar__message {
|
|
31500
|
+
display: flex;
|
|
31501
|
+
flex-direction: column;
|
|
31502
|
+
justify-content: center;
|
|
31503
|
+
inline-size: auto;
|
|
31504
|
+
flex: 1 0 0;
|
|
31505
|
+
min-inline-size: 0;
|
|
31506
|
+
align-self: stretch;
|
|
31507
|
+
}
|
|
31508
|
+
.wds-Snackbar__body {
|
|
31509
|
+
display: block;
|
|
31510
|
+
}
|
|
31511
|
+
.wds-Snackbar-container-appear,
|
|
31512
|
+
.wds-Snackbar-container-enter {
|
|
31513
|
+
opacity: 0;
|
|
31514
|
+
transform: translateY(80px) scale(0.5);
|
|
31515
|
+
}
|
|
31516
|
+
.wds-Snackbar-container-appear-active,
|
|
31517
|
+
.wds-Snackbar-container-enter-active {
|
|
31518
|
+
opacity: 1;
|
|
31519
|
+
transform: translateY(0) scale(1);
|
|
31520
|
+
transition: opacity 150ms linear, transform var(--Snackbar-enter-duration) cubic-bezier(0, 0, 0, 1);
|
|
31521
|
+
}
|
|
31522
|
+
.wds-Snackbar-container-exit {
|
|
31523
|
+
opacity: 1;
|
|
31524
|
+
transform: translateY(0) scale(1);
|
|
31525
|
+
}
|
|
31526
|
+
.wds-Snackbar-container-exit-active {
|
|
31527
|
+
opacity: 0;
|
|
31528
|
+
transform: translateY(80px) scale(0.5);
|
|
31529
|
+
transition: opacity 50ms linear 50ms, transform var(--Snackbar-exit-duration) cubic-bezier(1, 0, 1, 1);
|
|
31530
|
+
}
|
|
31531
|
+
@media (prefers-reduced-motion: reduce) {
|
|
31532
|
+
.wds-Snackbar--swipe-dismiss,
|
|
31533
|
+
.wds-Snackbar--swipe-settle {
|
|
31534
|
+
transition: none;
|
|
31535
|
+
}
|
|
31536
|
+
.wds-Snackbar-container-appear,
|
|
31537
|
+
.wds-Snackbar-container-appear-active,
|
|
31538
|
+
.wds-Snackbar-container-enter,
|
|
31539
|
+
.wds-Snackbar-container-enter-active,
|
|
31540
|
+
.wds-Snackbar-container-exit {
|
|
31541
|
+
opacity: 1;
|
|
31542
|
+
transform: none;
|
|
31543
|
+
transition: none;
|
|
31544
|
+
}
|
|
31545
|
+
.wds-Snackbar-container-exit-active {
|
|
31546
|
+
opacity: 0;
|
|
31547
|
+
transform: none;
|
|
31548
|
+
transition: none;
|
|
31549
|
+
}
|
|
31550
|
+
}
|
|
31417
31551
|
.wds-expander-toggle {
|
|
31418
31552
|
align-self: flex-start;
|
|
31419
31553
|
flex-shrink: 0;
|
|
@@ -31516,77 +31650,6 @@ button.np-link {
|
|
|
31516
31650
|
[dir="rtl"] .np-theme-personal .sliding-panel.sliding-panel--border-left {
|
|
31517
31651
|
box-shadow: inset 1px 0 0 0 var(--color-border-neutral);
|
|
31518
31652
|
}
|
|
31519
|
-
.snackbar {
|
|
31520
|
-
text-align: center;
|
|
31521
|
-
position: fixed;
|
|
31522
|
-
inset-block-end: 0;
|
|
31523
|
-
inset-inline-start: 0;
|
|
31524
|
-
inset-inline-end: 0;
|
|
31525
|
-
z-index: 1060;
|
|
31526
|
-
}
|
|
31527
|
-
.snackbar__text {
|
|
31528
|
-
background: #37517e;
|
|
31529
|
-
color: #ffffff;
|
|
31530
|
-
display: inline-flex;
|
|
31531
|
-
border-radius: 2px;
|
|
31532
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
31533
|
-
align-items: center;
|
|
31534
|
-
justify-content: space-between;
|
|
31535
|
-
text-align: start;
|
|
31536
|
-
font-size: var(--wds-font-size-body);
|
|
31537
|
-
margin-block: 0;
|
|
31538
|
-
margin-inline: var(--size-16);
|
|
31539
|
-
padding-block: var(--size-8);
|
|
31540
|
-
padding-inline: var(--size-16);
|
|
31541
|
-
inline-size: calc(100% - var(--size-32));
|
|
31542
|
-
transition: 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
31543
|
-
}
|
|
31544
|
-
.np-theme-personal .snackbar__text {
|
|
31545
|
-
box-shadow: 0 2px 4px 0 rgba(69, 71, 69, 0.35);
|
|
31546
|
-
position: relative;
|
|
31547
|
-
background: var(--color-contrast-theme);
|
|
31548
|
-
border-radius: var(--radius-small);
|
|
31549
|
-
color: var(--color-contrast-overlay);
|
|
31550
|
-
}
|
|
31551
|
-
.np-theme-personal .snackbar__text::after {
|
|
31552
|
-
display: block;
|
|
31553
|
-
border-radius: inherit;
|
|
31554
|
-
block-size: 100%;
|
|
31555
|
-
inline-size: 100%;
|
|
31556
|
-
content: "";
|
|
31557
|
-
position: absolute;
|
|
31558
|
-
inset-inline-start: 0;
|
|
31559
|
-
inset-block-start: 0;
|
|
31560
|
-
z-index: -1;
|
|
31561
|
-
background-color: var(--color-background-neutral);
|
|
31562
|
-
}
|
|
31563
|
-
.np-theme-personal--dark .snackbar__text,
|
|
31564
|
-
.np-theme-personal--forest-green .snackbar__text {
|
|
31565
|
-
box-shadow: none;
|
|
31566
|
-
}
|
|
31567
|
-
@media (min-width: 600px) {
|
|
31568
|
-
.snackbar__text {
|
|
31569
|
-
inline-size: auto;
|
|
31570
|
-
max-inline-size: 600px;
|
|
31571
|
-
}
|
|
31572
|
-
}
|
|
31573
|
-
.snackbar__text__action {
|
|
31574
|
-
flex-shrink: 0;
|
|
31575
|
-
margin-inline-start: var(--size-16);
|
|
31576
|
-
}
|
|
31577
|
-
.snackbar__text-container-enter,
|
|
31578
|
-
.snackbar__text-container-exit {
|
|
31579
|
-
transform: translateY(calc(100% + 10px));
|
|
31580
|
-
}
|
|
31581
|
-
.snackbar__text-container-enter-active {
|
|
31582
|
-
transform: translateY(-16px);
|
|
31583
|
-
transform: translateY(calc(-16px - env(safe-area-inset-bottom)));
|
|
31584
|
-
}
|
|
31585
|
-
@media (min-width: 600px) {
|
|
31586
|
-
.snackbar__text-container-enter-active {
|
|
31587
|
-
transform: translateY(-24px);
|
|
31588
|
-
}
|
|
31589
|
-
}
|
|
31590
31653
|
.status-circle.negative,
|
|
31591
31654
|
.status-circle.error {
|
|
31592
31655
|
background-color: var(--color-sentiment-interactive-primary, var(--color-sentiment-negative));
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ export type LinkProps = PrimitiveAnchorProps & Pick<PrimitiveButtonProps, 'onCli
|
|
|
6
6
|
/**
|
|
7
7
|
* Standard Link component with navigate away icon
|
|
8
8
|
*
|
|
9
|
-
* Documentation: https://
|
|
9
|
+
* Documentation: https://storybook.wise.design/?path=/docs/typography-link--docs
|
|
10
10
|
*/
|
|
11
11
|
declare const Link: ({ className, children, href, target, type, "aria-label": ariaLabel, onClick, disabled, ...props }: LinkProps) => import("react").JSX.Element;
|
|
12
12
|
export default Link;
|
|
@@ -21,7 +21,7 @@ export type LoaderProps = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Loader component
|
|
23
23
|
*
|
|
24
|
-
* Docs link: https://
|
|
24
|
+
* Docs link: https://storybook.wise.design/?path=/docs/loading-loader--docs
|
|
25
25
|
*
|
|
26
26
|
* @param root0
|
|
27
27
|
* @param root0.small
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Emphasis, Sentiment } from '../../SentimentSurface';
|
|
2
|
+
import { type IconButtonProps } from '../../IconButton';
|
|
2
3
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
4
|
export type PrimitivePromptProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
5
|
/**
|
|
@@ -23,6 +24,11 @@ export type PrimitivePromptProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
23
24
|
* Handler called when the close button is clicked. If not provided, then the close button is hidden.
|
|
24
25
|
*/
|
|
25
26
|
onDismiss?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* The priority of the dismiss IconButton.
|
|
29
|
+
* @default 'secondary'
|
|
30
|
+
*/
|
|
31
|
+
dismissButtonPriority?: IconButtonProps['priority'];
|
|
26
32
|
/**
|
|
27
33
|
* Test ID for testing tools
|
|
28
34
|
*/
|
|
@@ -54,6 +60,11 @@ export declare const PrimitivePrompt: import("react").ForwardRefExoticComponent<
|
|
|
54
60
|
* Handler called when the close button is clicked. If not provided, then the close button is hidden.
|
|
55
61
|
*/
|
|
56
62
|
onDismiss?: () => void;
|
|
63
|
+
/**
|
|
64
|
+
* The priority of the dismiss IconButton.
|
|
65
|
+
* @default 'secondary'
|
|
66
|
+
*/
|
|
67
|
+
dismissButtonPriority?: IconButtonProps["priority"];
|
|
57
68
|
/**
|
|
58
69
|
* Test ID for testing tools
|
|
59
70
|
*/
|