@transferwise/components 0.0.0-experimental-8032b6c → 0.0.0-experimental-31e4d9a
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/card/Card.js.map +1 -1
- package/build/card/Card.mjs.map +1 -1
- package/build/main.css +1918 -1179
- package/build/styles/accordion/Accordion.css +27 -17
- package/build/styles/actionButton/ActionButton.css +16 -5
- package/build/styles/actionOption/ActionOption.css +2 -1
- package/build/styles/alert/Alert.css +2 -1
- package/build/styles/avatar/Avatar.css +84 -69
- package/build/styles/avatarLayout/AvatarLayout.css +22 -16
- package/build/styles/avatarView/AvatarView.css +11 -4
- package/build/styles/avatarView/Dot.css +9 -4
- package/build/styles/badge/Badge.css +19 -14
- package/build/styles/button/Button.css +20 -19
- package/build/styles/button/LegacyButton.css +7 -4
- package/build/styles/card/Card.css +24 -20
- package/build/styles/carousel/Carousel.css +45 -26
- package/build/styles/checkboxButton/CheckboxButton.css +15 -10
- package/build/styles/chips/Chip.css +61 -39
- package/build/styles/circularButton/CircularButton.css +8 -8
- package/build/styles/common/Option/Option.css +57 -30
- package/build/styles/common/RadioButton/RadioButton.css +1 -0
- package/build/styles/common/bottomSheet/BottomSheet.css +20 -21
- package/build/styles/common/card/Card.css +10 -6
- package/build/styles/common/circle/Circle.css +16 -11
- package/build/styles/common/closeButton/CloseButton.css +45 -24
- package/build/styles/common/panel/Panel.css +13 -7
- package/build/styles/criticalBanner/CriticalCommsBanner.css +8 -5
- package/build/styles/dateInput/DateInput.css +5 -5
- package/build/styles/dateLookup/DateLookup.css +26 -13
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +13 -8
- package/build/styles/decision/Decision.css +4 -0
- package/build/styles/definitionList/DefinitionList.css +13 -8
- package/build/styles/dimmer/Dimmer.css +15 -13
- package/build/styles/divider/Divider.css +7 -5
- package/build/styles/drawer/Drawer.css +21 -15
- package/build/styles/dropFade/DropFade.css +2 -2
- package/build/styles/emphasis/Emphasis.css +6 -0
- package/build/styles/expressiveMoneyInput/ExpressiveMoneyInput.css +12 -8
- package/build/styles/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/build/styles/expressiveMoneyInput/chevron/Chevron.css +5 -3
- package/build/styles/expressiveMoneyInput/currencySelector/CurrencySelector.css +1 -0
- package/build/styles/field/Field.css +5 -3
- package/build/styles/flowNavigation/FlowNavigation.css +28 -22
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +6 -5
- package/build/styles/header/Header.css +16 -8
- package/build/styles/iconButton/IconButton.css +17 -12
- package/build/styles/image/Image.css +7 -6
- package/build/styles/info/Info.css +1 -1
- package/build/styles/inputs/Input.css +51 -20
- package/build/styles/inputs/InputGroup.css +14 -5
- package/build/styles/inputs/SelectInput.css +101 -42
- package/build/styles/inputs/TextArea.css +54 -21
- package/build/styles/instructionsList/InstructionsList.css +5 -3
- package/build/styles/legacylistItem/LegacyListItem.css +1 -1
- package/build/styles/link/Link.css +6 -3
- package/build/styles/listItem/ListItem.css +88 -44
- package/build/styles/listItem/ListItem.grid.css +15 -7
- package/build/styles/loader/Loader.css +36 -21
- package/build/styles/logo/Logo.css +2 -2
- package/build/styles/main.css +1918 -1179
- package/build/styles/modal/Modal.css +27 -19
- package/build/styles/moneyInput/MoneyInput.css +26 -16
- package/build/styles/navigationOption/NavigationOption.css +21 -13
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +6 -5
- package/build/styles/nudge/Nudge.css +77 -71
- package/build/styles/overlayHeader/OverlayHeader.css +6 -5
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +7 -4
- package/build/styles/popover/Popover.css +21 -11
- package/build/styles/progress/Progress.css +12 -2
- package/build/styles/progressBar/ProgressBar.css +7 -2
- package/build/styles/promoCard/PromoCard.css +57 -37
- package/build/styles/prompt/ActionPrompt/ActionPrompt.css +11 -6
- package/build/styles/prompt/InfoPrompt/InfoPrompt.css +7 -4
- package/build/styles/prompt/InlinePrompt/InlinePrompt.css +8 -3
- package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +15 -7
- package/build/styles/radioGroup/RadioGroup.css +1 -1
- package/build/styles/section/Section.css +6 -3
- package/build/styles/segmentedControl/SegmentedControl.css +25 -14
- package/build/styles/select/Select.css +129 -71
- package/build/styles/slidingPanel/SlidingPanel.css +26 -17
- package/build/styles/snackbar/Snackbar.css +32 -25
- package/build/styles/stepper/Stepper.css +14 -10
- package/build/styles/summary/Summary.css +30 -17
- package/build/styles/switch/Switch.css +10 -6
- package/build/styles/table/Table.css +71 -47
- package/build/styles/tabs/Tabs.css +34 -19
- package/build/styles/tile/Tile.css +21 -9
- package/build/styles/tooltip/Tooltip.css +7 -3
- package/build/styles/typeahead/Typeahead.css +53 -38
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +2 -0
- package/build/styles/upload/Upload.css +10 -8
- package/build/styles/uploadInput/UploadInput.css +6 -4
- package/build/styles/uploadInput/uploadButton/UploadButton.css +24 -14
- package/build/styles/uploadInput/uploadItem/UploadItem.css +58 -35
- package/build/types/card/Card.d.ts +1 -1
- package/package.json +2 -2
- package/src/accordion/Accordion.css +27 -17
- package/src/actionButton/ActionButton.css +16 -5
- package/src/actionOption/ActionOption.css +2 -1
- package/src/alert/Alert.css +2 -1
- package/src/avatar/Avatar.css +84 -69
- package/src/avatarLayout/AvatarLayout.css +22 -16
- package/src/avatarView/AvatarView.css +11 -4
- package/src/avatarView/Dot.css +9 -4
- package/src/badge/Badge.css +19 -14
- package/src/button/Button.css +20 -19
- package/src/button/LegacyButton.css +7 -4
- package/src/card/Card.css +24 -20
- package/src/card/Card.story.tsx +3 -2
- package/src/card/Card.tsx +1 -1
- package/src/carousel/Carousel.css +45 -26
- package/src/checkboxButton/CheckboxButton.css +15 -10
- package/src/chips/Chip.css +61 -39
- package/src/circularButton/CircularButton.css +8 -8
- package/src/common/Option/Option.css +57 -30
- package/src/common/RadioButton/RadioButton.css +1 -0
- package/src/common/bottomSheet/BottomSheet.css +20 -21
- package/src/common/card/Card.css +10 -6
- package/src/common/circle/Circle.css +16 -11
- package/src/common/closeButton/CloseButton.css +45 -24
- package/src/common/panel/Panel.css +13 -7
- package/src/criticalBanner/CriticalCommsBanner.css +8 -5
- package/src/dateInput/DateInput.css +5 -5
- package/src/dateLookup/DateLookup.css +26 -13
- package/src/dateLookup/dateTrigger/DateTrigger.css +13 -8
- package/src/decision/Decision.css +4 -0
- package/src/definitionList/DefinitionList.css +13 -8
- package/src/dimmer/Dimmer.css +15 -13
- package/src/divider/Divider.css +7 -5
- package/src/drawer/Drawer.css +21 -15
- package/src/dropFade/DropFade.css +2 -2
- package/src/emphasis/Emphasis.css +6 -0
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +12 -8
- package/src/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/src/expressiveMoneyInput/chevron/Chevron.css +5 -3
- package/src/expressiveMoneyInput/currencySelector/CurrencySelector.css +1 -0
- package/src/field/Field.css +5 -3
- package/src/flowNavigation/FlowNavigation.css +28 -22
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +6 -5
- package/src/header/Header.css +16 -8
- package/src/iconButton/IconButton.css +17 -12
- package/src/image/Image.css +7 -6
- package/src/info/Info.css +1 -1
- package/src/inputs/Input.css +51 -20
- package/src/inputs/InputGroup.css +14 -5
- package/src/inputs/SelectInput.css +101 -42
- package/src/inputs/TextArea.css +54 -21
- package/src/instructionsList/InstructionsList.css +5 -3
- package/src/legacylistItem/LegacyListItem.css +1 -1
- package/src/link/Link.css +6 -3
- package/src/listItem/ListItem.css +88 -44
- package/src/listItem/ListItem.grid.css +15 -7
- package/src/loader/Loader.css +36 -21
- package/src/logo/Logo.css +2 -2
- package/src/main.css +1918 -1179
- package/src/modal/Modal.css +27 -19
- package/src/moneyInput/MoneyInput.css +26 -16
- package/src/navigationOption/NavigationOption.css +21 -13
- package/src/navigationOptionsList/NavigationOptionsList.css +6 -5
- package/src/nudge/Nudge.css +77 -71
- package/src/overlayHeader/OverlayHeader.css +6 -5
- package/src/phoneNumberInput/PhoneNumberInput.css +7 -4
- package/src/popover/Popover.css +21 -11
- package/src/progress/Progress.css +12 -2
- package/src/progressBar/ProgressBar.css +7 -2
- package/src/promoCard/PromoCard.css +57 -37
- package/src/prompt/ActionPrompt/ActionPrompt.css +11 -6
- package/src/prompt/InfoPrompt/InfoPrompt.css +7 -4
- package/src/prompt/InlinePrompt/InlinePrompt.css +8 -3
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +15 -7
- package/src/radioGroup/RadioGroup.css +1 -1
- package/src/section/Section.css +6 -3
- package/src/segmentedControl/SegmentedControl.css +25 -14
- package/src/select/Select.css +129 -71
- package/src/slidingPanel/SlidingPanel.css +26 -17
- package/src/snackbar/Snackbar.css +32 -25
- package/src/stepper/Stepper.css +14 -10
- package/src/summary/Summary.css +30 -17
- package/src/switch/Switch.css +10 -6
- package/src/table/Table.css +71 -47
- package/src/tabs/Tabs.css +34 -19
- package/src/tile/Tile.css +21 -9
- package/src/tooltip/Tooltip.css +7 -3
- package/src/typeahead/Typeahead.css +53 -38
- package/src/typeahead/typeaheadOption/TypeaheadOption.css +2 -0
- package/src/upload/Upload.css +10 -8
- package/src/uploadInput/UploadInput.css +6 -4
- package/src/uploadInput/uploadButton/UploadButton.css +24 -14
- package/src/uploadInput/uploadItem/UploadItem.css +58 -35
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
.np-progress {
|
|
2
|
+
border-radius: 10px;
|
|
2
3
|
border-radius: var(--radius-small);
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 8px;
|
|
6
|
+
height: var(--size-8);
|
|
5
7
|
}
|
|
6
8
|
.np-progress::-webkit-progress-bar {
|
|
9
|
+
background-color: rgba(134,167,189,0.10196);
|
|
7
10
|
background-color: var(--color-background-neutral);
|
|
11
|
+
border-radius: 10px;
|
|
8
12
|
border-radius: var(--radius-small);
|
|
9
13
|
}
|
|
10
14
|
.np-progress::-webkit-progress-value {
|
|
15
|
+
background-color: #0097c7;
|
|
11
16
|
background-color: var(--color-content-accent);
|
|
17
|
+
border-radius: 10px;
|
|
12
18
|
border-radius: var(--radius-small);
|
|
13
19
|
}
|
|
14
20
|
.np-theme-personal .np-progress::-webkit-progress-value {
|
|
15
21
|
background-color: var(--color-interactive-primary);
|
|
16
22
|
}
|
|
17
23
|
.np-progress::-moz-progress-bar {
|
|
24
|
+
background-color: #0097c7;
|
|
18
25
|
background-color: var(--color-content-accent);
|
|
26
|
+
border-radius: 10px;
|
|
19
27
|
border-radius: var(--radius-small);
|
|
20
28
|
}
|
|
21
29
|
.np-theme-personal .np-progress::-moz-progress-bar {
|
|
@@ -23,10 +31,12 @@
|
|
|
23
31
|
}
|
|
24
32
|
@media (prefers-reduced-motion: no-preference) {
|
|
25
33
|
.np-progress::-webkit-progress-value {
|
|
34
|
+
-webkit-transition: width 0.5s ease;
|
|
26
35
|
transition: width 0.5s ease;
|
|
27
36
|
transition-delay: 0.2s;
|
|
28
37
|
}
|
|
29
38
|
.np-progress::-moz-progress-bar {
|
|
39
|
+
-moz-transition: width 0.5s ease;
|
|
30
40
|
transition: width 0.5s ease;
|
|
31
41
|
transition-delay: 0.2s;
|
|
32
42
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
.np-progress-bar__title .h4 {
|
|
2
|
+
color: #37517e;
|
|
2
3
|
color: var(--color-content-primary);
|
|
3
|
-
margin-
|
|
4
|
+
margin-bottom: 4px;
|
|
5
|
+
margin-bottom: var(--size-4);
|
|
4
6
|
}
|
|
5
7
|
.np-progress-bar p {
|
|
8
|
+
color: #37517e;
|
|
6
9
|
color: var(--color-content-primary);
|
|
7
|
-
margin-
|
|
10
|
+
margin-top: 4px;
|
|
11
|
+
margin-top: var(--size-4);
|
|
12
|
+
font-weight: 600;
|
|
8
13
|
font-weight: var(--font-weight-semi-bold);
|
|
9
14
|
}
|
|
@@ -17,37 +17,45 @@
|
|
|
17
17
|
.np-Card-image {
|
|
18
18
|
transform: scale(var(--Card-image-scale)) translateY(var(--Card-image-translate));
|
|
19
19
|
transition: transform 0.5s ease-in-out;
|
|
20
|
-
margin
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: auto;
|
|
23
|
+
width: calc(100% + 48px);
|
|
24
|
+
width: calc(100% + var(--size-48));
|
|
25
|
+
left: calc(24px * -1);
|
|
26
|
+
left: calc(var(--size-24) * -1);
|
|
26
27
|
position: relative;
|
|
27
28
|
}
|
|
28
29
|
[dir="rtl"] .np-Card-image {
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
left: auto;
|
|
31
|
+
right: calc(24px * -1);
|
|
32
|
+
right: calc(var(--size-24) * -1);
|
|
31
33
|
}
|
|
32
34
|
.np-Card-description {
|
|
35
|
+
color: #5d7079;
|
|
33
36
|
color: var(--color-content-secondary);
|
|
34
37
|
}
|
|
35
38
|
.np-Card-indicator {
|
|
36
39
|
position: absolute;
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
right: 8px;
|
|
41
|
+
right: var(--size-8);
|
|
42
|
+
bottom: 8px;
|
|
43
|
+
bottom: var(--size-8);
|
|
39
44
|
display: flex;
|
|
45
|
+
gap: 4px;
|
|
40
46
|
gap: var(--size-4);
|
|
41
47
|
}
|
|
42
48
|
[dir="rtl"] .np-Card-indicator {
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
right: auto;
|
|
50
|
+
left: 8px;
|
|
51
|
+
left: var(--size-8);
|
|
45
52
|
}
|
|
46
53
|
.np-Card-indicatorText {
|
|
47
54
|
display: inline-block;
|
|
48
55
|
vertical-align: middle;
|
|
49
|
-
text-align:
|
|
56
|
+
text-align: left;
|
|
50
57
|
background: var(--Card-indicator-text-background-color);
|
|
58
|
+
padding: 16px;
|
|
51
59
|
padding: var(--size-16);
|
|
52
60
|
border-radius: 100px;
|
|
53
61
|
}
|
|
@@ -65,8 +73,8 @@
|
|
|
65
73
|
transform: scale(1);
|
|
66
74
|
transition: box-shadow 0.2s ease-in-out, transform 0.5s ease-in-out;
|
|
67
75
|
}
|
|
68
|
-
.np-theme-personal:not(.np-theme-personal--dark
|
|
69
|
-
.np-theme-personal:not(.np-theme-personal--dark
|
|
76
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--bright-green):not(.np-theme-personal--forest-green) .np-Card--checked,
|
|
77
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--bright-green):not(.np-theme-personal--forest-green) .np-Card--link {
|
|
70
78
|
--Card-box-shadow: 0px 20px var(--size-40) 0px var(--color-background-neutral);
|
|
71
79
|
--Card-check-color: var(--color-interactive-accent);
|
|
72
80
|
}
|
|
@@ -80,29 +88,31 @@
|
|
|
80
88
|
transition: none;
|
|
81
89
|
}
|
|
82
90
|
}
|
|
83
|
-
.np-Card--checked:hover:not(.is-disabled
|
|
84
|
-
.np-Card--link:hover:not(.is-disabled
|
|
91
|
+
.np-Card--checked:hover:not(.is-disabled):not(:disabled):not(.is-checked):not(:focus-within),
|
|
92
|
+
.np-Card--link:hover:not(.is-disabled):not(:disabled):not(.is-checked):not(:focus-within) {
|
|
85
93
|
--Card-image-scale: 1.1;
|
|
86
94
|
box-shadow: var(--Card-box-shadow);
|
|
87
95
|
}
|
|
88
|
-
.np-Card--checked:active:not(.is-disabled
|
|
89
|
-
.np-Card--link:active:not(.is-disabled
|
|
96
|
+
.np-Card--checked:active:not(.is-disabled):not(:disabled):not(.is-checked),
|
|
97
|
+
.np-Card--link:active:not(.is-disabled):not(:disabled):not(.is-checked) {
|
|
90
98
|
--Card-background-color: var(--color-background-neutral-active);
|
|
91
99
|
--Card-image-scale: 1.1;
|
|
92
100
|
--Card-image-translate: var(--size-8);
|
|
93
101
|
transform: scale(98%);
|
|
94
102
|
box-shadow: var(--Card-box-shadow);
|
|
95
103
|
}
|
|
96
|
-
.np-theme-personal--bright-green .np-Card--checked:active:not(.is-disabled
|
|
97
|
-
.np-theme-personal--bright-green .np-Card--link:active:not(.is-disabled
|
|
104
|
+
.np-theme-personal--bright-green .np-Card--checked:active:not(.is-disabled):not(:disabled):not(.is-checked),
|
|
105
|
+
.np-theme-personal--bright-green .np-Card--link:active:not(.is-disabled):not(:disabled):not(.is-checked) {
|
|
98
106
|
--Card-background-color: var(--color-background-neutral);
|
|
99
107
|
}
|
|
100
108
|
.np-Card--checked:has(:focus-visible):not(.np-Card--checked),
|
|
101
109
|
.np-Card--link:has(:focus-visible):not(.np-Card--checked),
|
|
102
|
-
.np-Card--checked:focus-visible:not(.is-disabled
|
|
103
|
-
.np-Card--link:focus-visible:not(.is-disabled
|
|
110
|
+
.np-Card--checked:focus-visible:not(.is-disabled):not(:disabled),
|
|
111
|
+
.np-Card--link:focus-visible:not(.is-disabled):not(:disabled) {
|
|
104
112
|
--Card-image-scale: 1.1;
|
|
113
|
+
outline: var(--ring-outline-color) solid 4px;
|
|
105
114
|
outline: var(--ring-outline-color) solid var(--size-4);
|
|
115
|
+
outline-offset: 4px;
|
|
106
116
|
outline-offset: var(--size-4);
|
|
107
117
|
box-shadow: var(--Card-box-shadow);
|
|
108
118
|
}
|
|
@@ -111,7 +121,9 @@
|
|
|
111
121
|
outline: none;
|
|
112
122
|
}
|
|
113
123
|
.np-Card--link .np-Card-titleLink {
|
|
124
|
+
color: #37517e;
|
|
114
125
|
color: var(--color-content-primary);
|
|
126
|
+
-webkit-text-decoration: none;
|
|
115
127
|
text-decoration: none;
|
|
116
128
|
}
|
|
117
129
|
.np-Card--link .np-Card-titleLink:focus-visible {
|
|
@@ -120,47 +132,55 @@
|
|
|
120
132
|
.np-Card--link .np-Card-titleLink::after {
|
|
121
133
|
content: '';
|
|
122
134
|
display: block;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
135
|
+
width: 100%;
|
|
136
|
+
height: 100%;
|
|
137
|
+
left: 0;
|
|
138
|
+
top: 0;
|
|
127
139
|
position: absolute;
|
|
128
140
|
z-index: 10;
|
|
129
141
|
}
|
|
130
142
|
.np-Card--checked.is-checked {
|
|
143
|
+
box-shadow: 0 0 0 4px var(--color-interactive-primary);
|
|
131
144
|
box-shadow: 0 0 0 var(--size-4) var(--color-interactive-primary);
|
|
132
145
|
}
|
|
133
146
|
.np-Card--checked.is-checked .np-Card-check {
|
|
134
147
|
color: var(--Card-check-color);
|
|
135
148
|
background: var(--Card-check-background-color);
|
|
149
|
+
border-radius: 9999px;
|
|
136
150
|
border-radius: var(--radius-full);
|
|
137
151
|
display: flex;
|
|
138
|
-
|
|
152
|
+
height: 40px;
|
|
153
|
+
height: var(--size-40);
|
|
139
154
|
position: absolute;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
155
|
+
right: 8px;
|
|
156
|
+
right: var(--size-8);
|
|
157
|
+
top: 8px;
|
|
158
|
+
top: var(--size-8);
|
|
159
|
+
width: 40px;
|
|
160
|
+
width: var(--size-40);
|
|
143
161
|
justify-content: center;
|
|
144
162
|
align-items: center;
|
|
145
163
|
}
|
|
146
164
|
[dir="rtl"] .np-Card--checked.is-checked .np-Card-check {
|
|
147
|
-
|
|
148
|
-
|
|
165
|
+
right: auto;
|
|
166
|
+
left: 8px;
|
|
167
|
+
left: var(--size-8);
|
|
149
168
|
}
|
|
150
|
-
.np-Card--checked.is-checked:focus-visible:not(.is-disabled
|
|
169
|
+
.np-Card--checked.is-checked:focus-visible:not(.is-disabled):not(:disabled) {
|
|
151
170
|
box-shadow: none;
|
|
152
171
|
}
|
|
153
172
|
.np-CardGroup {
|
|
154
173
|
display: flex;
|
|
155
174
|
flex-direction: column;
|
|
175
|
+
gap: 24px;
|
|
156
176
|
gap: var(--size-24);
|
|
157
|
-
|
|
177
|
+
width: 100%;
|
|
158
178
|
}
|
|
159
|
-
@media (
|
|
179
|
+
@media (min-width: 768px) {
|
|
160
180
|
.np-CardGroup {
|
|
161
181
|
flex-direction: row;
|
|
162
182
|
}
|
|
163
183
|
}
|
|
164
184
|
.np-CardGroup .np-Card.np-Card--promoCard {
|
|
165
|
-
max-
|
|
185
|
+
max-width: 100%;
|
|
166
186
|
}
|
|
@@ -5,16 +5,21 @@
|
|
|
5
5
|
--Prompt-border-radius: var(--radius-large);
|
|
6
6
|
}
|
|
7
7
|
.wds-action-prompt--media-image {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
width: 48px;
|
|
9
|
+
width: var(--size-48);
|
|
10
|
+
height: 48px;
|
|
11
|
+
height: var(--size-48);
|
|
12
|
+
-o-object-fit: contain;
|
|
13
|
+
object-fit: contain;
|
|
11
14
|
}
|
|
12
|
-
@media (
|
|
15
|
+
@media (max-width: 767px) {
|
|
13
16
|
.wds-action-prompt--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
|
|
14
17
|
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
15
|
-
min-
|
|
18
|
+
min-width: -moz-fit-content;
|
|
19
|
+
min-width: fit-content;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
.wds-action-prompt__content {
|
|
19
|
-
max-
|
|
23
|
+
max-width: calc(48px * 10);
|
|
24
|
+
max-width: calc(var(--size-48) * 10);
|
|
20
25
|
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
justify-content: center;
|
|
10
|
-
max-
|
|
10
|
+
max-width: calc(48px * 10);
|
|
11
|
+
max-width: calc(var(--size-48) * 10);
|
|
11
12
|
}
|
|
12
13
|
.wds-info-prompt__content:has(.wds-info-prompt__title) {
|
|
13
14
|
justify-content: flex-start;
|
|
@@ -19,11 +20,13 @@
|
|
|
19
20
|
}
|
|
20
21
|
.wds-info-prompt__action {
|
|
21
22
|
align-self: flex-start;
|
|
22
|
-
margin-
|
|
23
|
+
margin-top: var(--Prompt-gap);
|
|
23
24
|
}
|
|
24
25
|
.wds-info-prompt__media svg {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
width: 24px;
|
|
27
|
+
width: var(--size-24);
|
|
28
|
+
height: 24px;
|
|
29
|
+
height: var(--size-24);
|
|
27
30
|
}
|
|
28
31
|
.wds-info-prompt .wds-prompt__media-wrapper {
|
|
29
32
|
padding: 0;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
--Prompt-gap: calc(var(--size-12) / 2);
|
|
3
3
|
--Prompt-padding: calc(var(--padding-x-small) / 2) var(--padding-x-small);
|
|
4
4
|
display: inline-flex;
|
|
5
|
+
border-radius: 10px;
|
|
5
6
|
border-radius: var(--radius-small);
|
|
6
7
|
}
|
|
7
8
|
.wds-inline-prompt:has(a),
|
|
@@ -18,7 +19,8 @@
|
|
|
18
19
|
background-color: var(--color-sentiment-background-surface-active);
|
|
19
20
|
}
|
|
20
21
|
.wds-inline-prompt--auto-width {
|
|
21
|
-
|
|
22
|
+
width: auto;
|
|
23
|
+
width: initial;
|
|
22
24
|
}
|
|
23
25
|
.wds-inline-prompt--muted {
|
|
24
26
|
opacity: 0.93;
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
.wds-inline-prompt a,
|
|
28
30
|
.wds-inline-prompt button {
|
|
29
31
|
color: var(--color-sentiment-content-primary);
|
|
32
|
+
text-underline-offset: calc(4px / 2);
|
|
30
33
|
text-underline-offset: calc(var(--size-4) / 2);
|
|
31
34
|
}
|
|
32
35
|
.wds-inline-prompt a:hover,
|
|
@@ -44,8 +47,10 @@
|
|
|
44
47
|
inset: 0;
|
|
45
48
|
}
|
|
46
49
|
.wds-inline-prompt .wds-inline-prompt-process-indicator {
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
width: 16px;
|
|
51
|
+
width: var(--size-16);
|
|
52
|
+
height: 16px;
|
|
53
|
+
height: var(--size-16);
|
|
49
54
|
}
|
|
50
55
|
.wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
|
|
51
56
|
stroke: currentColor;
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
.wds-prompt {
|
|
2
|
+
border-radius: 10px;
|
|
2
3
|
border-radius: var(--Prompt-border-radius, var(--radius-small));
|
|
3
4
|
display: flex;
|
|
5
|
+
gap: 16px;
|
|
4
6
|
gap: var(--Prompt-gap, var(--size-16));
|
|
5
|
-
|
|
7
|
+
word-wrap: break-word;
|
|
8
|
+
padding: 8px;
|
|
6
9
|
padding: var(--Prompt-padding, var(--padding-x-small));
|
|
7
|
-
text-align:
|
|
10
|
+
text-align: left;
|
|
8
11
|
word-break: break-word;
|
|
9
|
-
|
|
12
|
+
width: 100%;
|
|
10
13
|
}
|
|
11
14
|
.wds-prompt__content-wrapper {
|
|
12
15
|
display: grid;
|
|
16
|
+
grid-gap: 16px;
|
|
17
|
+
grid-gap: var(--Prompt-gap, var(--size-16));
|
|
18
|
+
gap: 16px;
|
|
13
19
|
gap: var(--Prompt-gap, var(--size-16));
|
|
14
20
|
grid-template-columns: auto 1fr;
|
|
15
|
-
|
|
21
|
+
width: 100%;
|
|
16
22
|
}
|
|
17
23
|
.wds-prompt__content-wrapper--with-dismiss {
|
|
18
24
|
grid-template-columns: auto 1fr auto;
|
|
19
25
|
}
|
|
20
26
|
.wds-prompt__media-wrapper {
|
|
21
27
|
align-self: flex-start;
|
|
22
|
-
padding-
|
|
28
|
+
padding-top: calc(4px - 1px);
|
|
29
|
+
padding-top: calc(var(--size-4) - 1px);
|
|
23
30
|
}
|
|
24
31
|
.wds-prompt__media-wrapper .tw-icon-tags,
|
|
25
32
|
.wds-prompt__media-wrapper .tw-icon-confetti {
|
|
@@ -28,14 +35,15 @@
|
|
|
28
35
|
.wds-prompt__actions-wrapper {
|
|
29
36
|
display: flex;
|
|
30
37
|
flex-wrap: wrap;
|
|
38
|
+
gap: 8px;
|
|
31
39
|
gap: var(--Prompt-actions-gap, var(--size-8));
|
|
32
40
|
grid-column-start: 2;
|
|
33
41
|
grid-column-end: 3;
|
|
34
42
|
}
|
|
35
|
-
@media (
|
|
43
|
+
@media (max-width: 767px) {
|
|
36
44
|
.wds-prompt__actions-wrapper {
|
|
37
45
|
grid-column: span 2;
|
|
38
|
-
|
|
46
|
+
width: 100%;
|
|
39
47
|
}
|
|
40
48
|
.wds-prompt__content-wrapper--with-dismiss .wds-prompt__actions-wrapper {
|
|
41
49
|
grid-column: span 3;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
.np-section {
|
|
2
|
-
margin-
|
|
2
|
+
margin-top: 32px;
|
|
3
|
+
margin-top: var(--size-32);
|
|
3
4
|
}
|
|
4
5
|
.np-section--with-horizontal-padding {
|
|
5
|
-
padding-
|
|
6
|
-
padding-
|
|
6
|
+
padding-right: 16px;
|
|
7
|
+
padding-right: var(--space-content-horizontal);
|
|
8
|
+
padding-left: 16px;
|
|
9
|
+
padding-left: var(--space-content-horizontal);
|
|
7
10
|
}
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
.segmented-control__segments {
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
position: relative;
|
|
9
|
+
padding: 4px;
|
|
9
10
|
padding: var(--size-4);
|
|
10
|
-
|
|
11
|
+
width: 100%;
|
|
11
12
|
justify-content: center;
|
|
12
13
|
align-items: center;
|
|
14
|
+
background: rgba(134,167,189,0.10196);
|
|
13
15
|
background: var(--color-background-neutral);
|
|
16
|
+
border-radius: 24px;
|
|
14
17
|
border-radius: var(--size-24);
|
|
15
18
|
transition: outline 300ms;
|
|
16
19
|
outline: 2px solid transparent;
|
|
@@ -21,12 +24,16 @@
|
|
|
21
24
|
.segmented-control__segments::after {
|
|
22
25
|
content: "";
|
|
23
26
|
position: absolute;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
width: var(--segment-highlight-width);
|
|
28
|
+
top: 4px;
|
|
29
|
+
top: var(--size-4);
|
|
30
|
+
bottom: 4px;
|
|
31
|
+
bottom: var(--size-4);
|
|
32
|
+
left: var(--segment-highlight-x);
|
|
28
33
|
z-index: 0;
|
|
34
|
+
background: #ffffff;
|
|
29
35
|
background: var(--color-background-screen);
|
|
36
|
+
border-radius: 24px;
|
|
30
37
|
border-radius: var(--size-24);
|
|
31
38
|
transition: left 300ms;
|
|
32
39
|
}
|
|
@@ -37,15 +44,16 @@
|
|
|
37
44
|
position: relative;
|
|
38
45
|
flex: 1 1 100%;
|
|
39
46
|
flex-flow: column;
|
|
40
|
-
padding
|
|
41
|
-
padding
|
|
42
|
-
margin
|
|
43
|
-
margin
|
|
44
|
-
min-
|
|
47
|
+
padding: 8px 16px;
|
|
48
|
+
padding: var(--size-8) var(--size-16);
|
|
49
|
+
margin: 0 0 0 4px;
|
|
50
|
+
margin: 0 0 0 var(--size-4);
|
|
51
|
+
min-width: 0;
|
|
45
52
|
line-height: inherit;
|
|
46
53
|
align-items: center;
|
|
47
54
|
text-align: center;
|
|
48
55
|
vertical-align: middle;
|
|
56
|
+
border-radius: 24px;
|
|
49
57
|
border-radius: var(--size-24);
|
|
50
58
|
z-index: 1;
|
|
51
59
|
cursor: pointer;
|
|
@@ -53,9 +61,10 @@
|
|
|
53
61
|
color: var(--color-interactive-primary);
|
|
54
62
|
}
|
|
55
63
|
.segmented-control__segment:first-child {
|
|
56
|
-
margin-
|
|
64
|
+
margin-left: 0;
|
|
57
65
|
}
|
|
58
66
|
.segmented-control__segment:hover {
|
|
67
|
+
background: rgba(0,0,0,0.10196);
|
|
59
68
|
background: var(--color-background-overlay);
|
|
60
69
|
}
|
|
61
70
|
.segmented-control__radio-input {
|
|
@@ -64,10 +73,12 @@
|
|
|
64
73
|
pointer-events: none;
|
|
65
74
|
}
|
|
66
75
|
.segmented-control__button {
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
69
78
|
background: none;
|
|
70
|
-
appearance: none;
|
|
79
|
+
-webkit-appearance: none;
|
|
80
|
+
-moz-appearance: none;
|
|
81
|
+
appearance: none;
|
|
71
82
|
border: none;
|
|
72
83
|
outline: none;
|
|
73
84
|
font: inherit;
|