@transferwise/components 0.0.0-experimental-bd56e63 → 0.0.0-experimental-7d89ae8
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/package.json +1 -1
- package/src/accordion/Accordion.css +0 -74
- package/src/actionButton/ActionButton.css +0 -64
- package/src/actionOption/ActionOption.css +0 -4
- package/src/alert/Alert.css +0 -7
- package/src/avatar/Avatar.css +0 -250
- package/src/avatarLayout/AvatarLayout.css +0 -42
- package/src/avatarView/AvatarView.css +0 -44
- package/src/avatarView/Dot.css +0 -26
- package/src/badge/Badge.css +0 -65
- package/src/body/Body.css +0 -3
- package/src/button/Button.css +0 -246
- package/src/button/Button.vars.css +0 -46
- package/src/button/LegacyButton.css +0 -23
- package/src/card/Card.css +0 -100
- package/src/carousel/Carousel.css +0 -134
- package/src/checkboxButton/CheckboxButton.css +0 -43
- package/src/chips/Chip.css +0 -190
- package/src/circularButton/CircularButton.css +0 -34
- package/src/common/Option/Option.css +0 -120
- package/src/common/RadioButton/RadioButton.css +0 -4
- package/src/common/baseCard/BaseCard.css +0 -49
- package/src/common/bottomSheet/BottomSheet.css +0 -53
- package/src/common/circle/Circle.css +0 -43
- package/src/common/closeButton/CloseButton.css +0 -94
- package/src/common/liveRegion/LiveRegion.css +0 -3
- package/src/common/panel/Panel.css +0 -73
- package/src/container/Container.css +0 -38
- package/src/criticalBanner/CriticalCommsBanner.css +0 -63
- package/src/dateInput/DateInput.css +0 -16
- package/src/dateLookup/DateLookup.css +0 -93
- package/src/dateLookup/dateTrigger/DateTrigger.css +0 -29
- package/src/decision/Decision.css +0 -17
- package/src/definitionList/DefinitionList.css +0 -53
- package/src/dimmer/Dimmer.css +0 -70
- package/src/divider/Divider.css +0 -24
- package/src/drawer/Drawer.css +0 -56
- package/src/dropFade/DropFade.css +0 -19
- package/src/emphasis/Emphasis.css +0 -31
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +0 -60
- package/src/expressiveMoneyInput/amountInput/AmountInput.css +0 -34
- package/src/expressiveMoneyInput/chevron/Chevron.css +0 -12
- package/src/expressiveMoneyInput/currencySelector/CurrencySelector.css +0 -6
- package/src/field/Field.css +0 -29
- package/src/flowNavigation/FlowNavigation.css +0 -76
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +0 -30
- package/src/header/Header.css +0 -33
- package/src/iconButton/IconButton.css +0 -82
- package/src/image/Image.css +0 -13
- package/src/info/Info.css +0 -9
- package/src/inputs/Input.css +0 -158
- package/src/inputs/InputGroup.css +0 -71
- package/src/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +0 -96
- package/src/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +0 -20
- package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.css +0 -46
- package/src/inputs/SelectInput/ItemView/SelectInputItemView.css +0 -16
- package/src/inputs/SelectInput/Option/SelectInputOption.css +0 -33
- package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +0 -37
- package/src/inputs/SelectInput/Options/SelectInputOptions.css +0 -81
- package/src/inputs/SelectInput/Popover/SelectInputPopover.css +0 -46
- package/src/inputs/SelectInput/SelectInput.css +0 -384
- package/src/inputs/TextArea.css +0 -161
- package/src/instructionsList/InstructionsList.css +0 -26
- package/src/legacylistItem/LegacyListItem.css +0 -6
- package/src/link/Link.css +0 -24
- package/src/listItem/ListItem.css +0 -660
- package/src/listItem/ListItem.grid.css +0 -384
- package/src/listItem/ListItem.vars.css +0 -0
- package/src/listItem/Prompt/ListItemPrompt.css +0 -4
- package/src/loader/Loader.css +0 -237
- package/src/logo/Logo.css +0 -6
- package/src/main.css +0 -34572
- package/src/modal/Modal.css +0 -82
- package/src/moneyInput/MoneyInput.css +0 -78
- package/src/navigationOption/NavigationOption.css +0 -69
- package/src/navigationOptionsList/NavigationOptionsList.css +0 -13
- package/src/nudge/Nudge.css +0 -206
- package/src/overlayHeader/OverlayHeader.css +0 -15
- package/src/phoneNumberInput/PhoneNumberInput.css +0 -28
- package/src/popover/Popover.css +0 -76
- package/src/progress/Progress.css +0 -43
- package/src/progressBar/ProgressBar.css +0 -14
- package/src/promoCard/PromoCard.css +0 -186
- package/src/prompt/ActionPrompt/ActionPrompt.css +0 -30
- package/src/prompt/CriticalBanner/CriticalBanner.css +0 -134
- package/src/prompt/CriticalBanner/CriticalBanner.vars.css +0 -0
- package/src/prompt/InfoPrompt/InfoPrompt.css +0 -57
- package/src/prompt/InlinePrompt/InlinePrompt.css +0 -57
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +0 -51
- package/src/prompt/common/Expander/Expander.css +0 -8
- package/src/radioGroup/RadioGroup.css +0 -3
- package/src/section/Section.css +0 -10
- package/src/segmentedControl/SegmentedControl.css +0 -101
- package/src/select/Select.css +0 -369
- package/src/sentimentSurface/SentimentSurface.css +0 -487
- package/src/slidingPanel/SlidingPanel.css +0 -105
- package/src/snackbar/Snackbar.css +0 -93
- package/src/statusIcon/StatusIcon.css +0 -37
- package/src/stepper/Stepper.css +0 -77
- package/src/styles/less/accordion.css +0 -255
- package/src/styles/less/alerts.css +0 -751
- package/src/styles/less/background.css +0 -20
- package/src/styles/less/badge.css +0 -90
- package/src/styles/less/border-radius.css +0 -3
- package/src/styles/less/breadcrumbs.css +0 -20
- package/src/styles/less/button-groups.css +0 -495
- package/src/styles/less/buttons.css +0 -1390
- package/src/styles/less/chevron.css +0 -35
- package/src/styles/less/circles.css +0 -248
- package/src/styles/less/close.css +0 -47
- package/src/styles/less/column-layout.css +0 -164
- package/src/styles/less/core/viewport-themes.css +0 -63
- package/src/styles/less/currency-flags.css +0 -46
- package/src/styles/less/decision.css +0 -136
- package/src/styles/less/dropdowns.css +0 -472
- package/src/styles/less/droppable.css +0 -221
- package/src/styles/less/flex.css +0 -596
- package/src/styles/less/footer.css +0 -129
- package/src/styles/less/forms/bootstrap-forms.css +0 -2277
- package/src/styles/less/forms/checkbox-radio.css +0 -367
- package/src/styles/less/grid.css +0 -2369
- package/src/styles/less/input-groups.css +0 -2740
- package/src/styles/less/link-callout.css +0 -20
- package/src/styles/less/list-group.css +0 -350
- package/src/styles/less/loaders.css +0 -76
- package/src/styles/less/media.css +0 -74
- package/src/styles/less/modals.css +0 -185
- package/src/styles/less/navbar.css +0 -2406
- package/src/styles/less/navs.css +0 -296
- package/src/styles/less/neptune-social-media.css +0 -144
- package/src/styles/less/neptune.css +0 -25468
- package/src/styles/less/panels.css +0 -528
- package/src/styles/less/popovers.css +0 -661
- package/src/styles/less/process.css +0 -483
- package/src/styles/less/progress-bars.css +0 -64
- package/src/styles/less/ring.css +0 -55
- package/src/styles/less/select.css +0 -99
- package/src/styles/less/sequences.css +0 -855
- package/src/styles/less/table.css +0 -446
- package/src/styles/less/tick.css +0 -32
- package/src/styles/less/tooltip.css +0 -160
- package/src/styles/less/utilities.css +0 -133
- package/src/styles/less/wells.css +0 -60
- package/src/styles/variables/legacy-variables.css +0 -0
- package/src/styles/variables/neptune-tokens.css +0 -0
- package/src/styles/variables/zindex.css +0 -0
- package/src/summary/Summary.css +0 -81
- package/src/switch/Switch.css +0 -63
- package/src/switchOption/SwitchOption.css +0 -4
- package/src/table/Table.css +0 -274
- package/src/tabs/Tabs.css +0 -121
- package/src/tile/Tile.css +0 -68
- package/src/tooltip/Tooltip.css +0 -50
- package/src/typeahead/Typeahead.css +0 -187
- package/src/typeahead/typeaheadOption/TypeaheadOption.css +0 -9
- package/src/upload/Upload.css +0 -34
- package/src/uploadInput/UploadInput.css +0 -18
- package/src/uploadInput/uploadButton/UploadButton.css +0 -90
- package/src/uploadInput/uploadItem/UploadItem.css +0 -166
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
.np-Card {
|
|
2
|
-
--Card-image-scale: 1;
|
|
3
|
-
--Card-image-translate: 0;
|
|
4
|
-
--Card-indicator-text-background-color: var(--color-background-neutral);
|
|
5
|
-
--Card-indicator-icon-background-color: var(--color-interactive-accent);
|
|
6
|
-
--Card-indicator-icon-color: var(--color-interactive-control);
|
|
7
|
-
--Card-check-background-color: var(--color-interactive-primary);
|
|
8
|
-
--Card-check-color: var(--color-interactive-control);
|
|
9
|
-
}
|
|
10
|
-
.np-Card--promoCard {
|
|
11
|
-
--Card-max-width: 358px;
|
|
12
|
-
}
|
|
13
|
-
.np-Card--promoCard.is-disabled {
|
|
14
|
-
opacity: 0.45;
|
|
15
|
-
filter: grayscale(1);
|
|
16
|
-
}
|
|
17
|
-
.np-Card-image {
|
|
18
|
-
transform: scale(var(--Card-image-scale)) translateY(var(--Card-image-translate));
|
|
19
|
-
transition: transform 0.5s ease-in-out;
|
|
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);
|
|
27
|
-
position: relative;
|
|
28
|
-
}
|
|
29
|
-
[dir="rtl"] .np-Card-image {
|
|
30
|
-
left: auto;
|
|
31
|
-
right: calc(24px * -1);
|
|
32
|
-
right: calc(var(--size-24) * -1);
|
|
33
|
-
}
|
|
34
|
-
.np-Card-description {
|
|
35
|
-
color: #5d7079;
|
|
36
|
-
color: var(--color-content-secondary);
|
|
37
|
-
}
|
|
38
|
-
.np-Card-indicator {
|
|
39
|
-
position: absolute;
|
|
40
|
-
right: 8px;
|
|
41
|
-
right: var(--size-8);
|
|
42
|
-
bottom: 8px;
|
|
43
|
-
bottom: var(--size-8);
|
|
44
|
-
display: flex;
|
|
45
|
-
gap: 4px;
|
|
46
|
-
gap: var(--size-4);
|
|
47
|
-
}
|
|
48
|
-
[dir="rtl"] .np-Card-indicator {
|
|
49
|
-
right: auto;
|
|
50
|
-
left: 8px;
|
|
51
|
-
left: var(--size-8);
|
|
52
|
-
}
|
|
53
|
-
.np-Card-indicatorText {
|
|
54
|
-
display: inline-block;
|
|
55
|
-
vertical-align: middle;
|
|
56
|
-
text-align: left;
|
|
57
|
-
background: var(--Card-indicator-text-background-color);
|
|
58
|
-
padding: 16px;
|
|
59
|
-
padding: var(--size-16);
|
|
60
|
-
border-radius: 100px;
|
|
61
|
-
}
|
|
62
|
-
.np-Card-indicatorIcon .tw-icon {
|
|
63
|
-
color: var(--Card-indicator-icon-color);
|
|
64
|
-
}
|
|
65
|
-
[dir="rtl"] .np-Card-indicatorIcon .tw-icon {
|
|
66
|
-
transform: scaleX(-1);
|
|
67
|
-
}
|
|
68
|
-
.np-Card--checked,
|
|
69
|
-
.np-Card--link {
|
|
70
|
-
color: currentColor;
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
box-shadow: none;
|
|
73
|
-
transform: scale(1);
|
|
74
|
-
transition: box-shadow 0.2s ease-in-out, transform 0.5s ease-in-out;
|
|
75
|
-
}
|
|
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 {
|
|
78
|
-
--Card-box-shadow: 0px 20px var(--size-40) 0px var(--color-background-neutral);
|
|
79
|
-
--Card-check-color: var(--color-interactive-accent);
|
|
80
|
-
}
|
|
81
|
-
.np-Card--checked.is-disabled,
|
|
82
|
-
.np-Card--link.is-disabled {
|
|
83
|
-
cursor: not-allowed;
|
|
84
|
-
}
|
|
85
|
-
@media (prefers-reduced-motion: reduce) {
|
|
86
|
-
.np-Card--checked,
|
|
87
|
-
.np-Card--link {
|
|
88
|
-
transition: none;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
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) {
|
|
93
|
-
--Card-image-scale: 1.1;
|
|
94
|
-
box-shadow: var(--Card-box-shadow);
|
|
95
|
-
}
|
|
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) {
|
|
98
|
-
--Card-background-color: var(--color-background-neutral-active);
|
|
99
|
-
--Card-image-scale: 1.1;
|
|
100
|
-
--Card-image-translate: var(--size-8);
|
|
101
|
-
transform: scale(98%);
|
|
102
|
-
box-shadow: var(--Card-box-shadow);
|
|
103
|
-
}
|
|
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) {
|
|
106
|
-
--Card-background-color: var(--color-background-neutral);
|
|
107
|
-
}
|
|
108
|
-
.np-Card--checked:has(:focus-visible):not(.np-Card--checked),
|
|
109
|
-
.np-Card--link:has(:focus-visible):not(.np-Card--checked),
|
|
110
|
-
.np-Card--checked:focus-visible:not(.is-disabled):not(:disabled),
|
|
111
|
-
.np-Card--link:focus-visible:not(.is-disabled):not(:disabled) {
|
|
112
|
-
--Card-image-scale: 1.1;
|
|
113
|
-
outline: var(--ring-outline-color) solid 4px;
|
|
114
|
-
outline: var(--ring-outline-color) solid var(--size-4);
|
|
115
|
-
outline-offset: 4px;
|
|
116
|
-
outline-offset: var(--size-4);
|
|
117
|
-
box-shadow: var(--Card-box-shadow);
|
|
118
|
-
}
|
|
119
|
-
.np-Card--checked:has(.np-Card-closeButton:focus-visible),
|
|
120
|
-
.np-Card--link:has(.np-Card-closeButton:focus-visible) {
|
|
121
|
-
outline: none;
|
|
122
|
-
}
|
|
123
|
-
.np-Card--link .np-Card-titleLink {
|
|
124
|
-
color: #37517e;
|
|
125
|
-
color: var(--color-content-primary);
|
|
126
|
-
-webkit-text-decoration: none;
|
|
127
|
-
text-decoration: none;
|
|
128
|
-
}
|
|
129
|
-
.np-Card--link .np-Card-titleLink:focus-visible {
|
|
130
|
-
outline: none;
|
|
131
|
-
}
|
|
132
|
-
.np-Card--link .np-Card-titleLink::after {
|
|
133
|
-
content: '';
|
|
134
|
-
display: block;
|
|
135
|
-
width: 100%;
|
|
136
|
-
height: 100%;
|
|
137
|
-
left: 0;
|
|
138
|
-
top: 0;
|
|
139
|
-
position: absolute;
|
|
140
|
-
z-index: 10;
|
|
141
|
-
}
|
|
142
|
-
.np-Card--checked.is-checked {
|
|
143
|
-
box-shadow: 0 0 0 4px var(--color-interactive-primary);
|
|
144
|
-
box-shadow: 0 0 0 var(--size-4) var(--color-interactive-primary);
|
|
145
|
-
}
|
|
146
|
-
.np-Card--checked.is-checked .np-Card-check {
|
|
147
|
-
color: var(--Card-check-color);
|
|
148
|
-
background: var(--Card-check-background-color);
|
|
149
|
-
border-radius: 9999px;
|
|
150
|
-
border-radius: var(--radius-full);
|
|
151
|
-
display: flex;
|
|
152
|
-
height: 40px;
|
|
153
|
-
height: var(--size-40);
|
|
154
|
-
position: absolute;
|
|
155
|
-
right: 8px;
|
|
156
|
-
right: var(--size-8);
|
|
157
|
-
top: 8px;
|
|
158
|
-
top: var(--size-8);
|
|
159
|
-
width: 40px;
|
|
160
|
-
width: var(--size-40);
|
|
161
|
-
justify-content: center;
|
|
162
|
-
align-items: center;
|
|
163
|
-
}
|
|
164
|
-
[dir="rtl"] .np-Card--checked.is-checked .np-Card-check {
|
|
165
|
-
right: auto;
|
|
166
|
-
left: 8px;
|
|
167
|
-
left: var(--size-8);
|
|
168
|
-
}
|
|
169
|
-
.np-Card--checked.is-checked:focus-visible:not(.is-disabled):not(:disabled) {
|
|
170
|
-
box-shadow: none;
|
|
171
|
-
}
|
|
172
|
-
.np-CardGroup {
|
|
173
|
-
display: flex;
|
|
174
|
-
flex-direction: column;
|
|
175
|
-
gap: 24px;
|
|
176
|
-
gap: var(--size-24);
|
|
177
|
-
width: 100%;
|
|
178
|
-
}
|
|
179
|
-
@media (min-width: 840px) {
|
|
180
|
-
.np-CardGroup {
|
|
181
|
-
flex-direction: row;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
.np-CardGroup .np-Card.np-Card--promoCard {
|
|
185
|
-
max-width: 100%;
|
|
186
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.wds-action-prompt {
|
|
2
|
-
--Prompt-padding: var(--size-16);
|
|
3
|
-
--Prompt-actions-gap: var(--size-8);
|
|
4
|
-
--Prompt-gap: var(--size-10) var(--size-16);
|
|
5
|
-
--Prompt-border-radius: var(--radius-large);
|
|
6
|
-
}
|
|
7
|
-
.wds-action-prompt--media-image {
|
|
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;
|
|
14
|
-
}
|
|
15
|
-
@media (max-width: 599.98px) {
|
|
16
|
-
.wds-action-prompt .wds-action-prompt__action {
|
|
17
|
-
width: 100%;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
@media (max-width: 599.98px) {
|
|
21
|
-
.wds-action-prompt--with-two-actions .wds-action-prompt__action {
|
|
22
|
-
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
23
|
-
min-width: -moz-fit-content;
|
|
24
|
-
min-width: fit-content;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.wds-action-prompt__content {
|
|
28
|
-
max-width: calc(48px * 10);
|
|
29
|
-
max-width: calc(var(--size-48) * 10);
|
|
30
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
.wds-critical-banner {
|
|
2
|
-
--Prompt-padding: var(--size-16);
|
|
3
|
-
--Prompt-actions-gap: var(--size-8);
|
|
4
|
-
--Prompt-gap: var(--size-10) var(--size-16);
|
|
5
|
-
--Prompt-border-radius: 0;
|
|
6
|
-
container-type: inline-size;
|
|
7
|
-
--critical-banner-easing: cubic-bezier(0.9, 0, 0.7, 1);
|
|
8
|
-
--critical-banner-duration: 150ms;
|
|
9
|
-
/* Override PrimitivePrompt's --screen-sm-max actions behaviour:
|
|
10
|
-
actions only go full-width below mobile-max token (container query) */
|
|
11
|
-
}
|
|
12
|
-
.wds-critical-banner--media-image {
|
|
13
|
-
width: 48px;
|
|
14
|
-
width: var(--size-48);
|
|
15
|
-
height: 48px;
|
|
16
|
-
height: var(--size-48);
|
|
17
|
-
-o-object-fit: contain;
|
|
18
|
-
object-fit: contain;
|
|
19
|
-
}
|
|
20
|
-
.wds-critical-banner__title {
|
|
21
|
-
display: -webkit-box;
|
|
22
|
-
-webkit-line-clamp: 8;
|
|
23
|
-
line-clamp: 8;
|
|
24
|
-
-webkit-box-orient: vertical;
|
|
25
|
-
max-height: 192px;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
transition: max-height var(--critical-banner-duration) var(--critical-banner-easing);
|
|
28
|
-
}
|
|
29
|
-
.wds-critical-banner--collapsed .wds-critical-banner__title {
|
|
30
|
-
-webkit-line-clamp: 2;
|
|
31
|
-
line-clamp: 2;
|
|
32
|
-
max-height: 48px;
|
|
33
|
-
}
|
|
34
|
-
.wds-critical-banner__description {
|
|
35
|
-
max-height: 30vh;
|
|
36
|
-
opacity: 1;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
transition: max-height var(--critical-banner-duration) var(--critical-banner-easing), opacity var(--critical-banner-duration) var(--critical-banner-easing);
|
|
39
|
-
}
|
|
40
|
-
.wds-critical-banner--collapsed .wds-critical-banner__description--with-title {
|
|
41
|
-
max-height: 0;
|
|
42
|
-
opacity: 0;
|
|
43
|
-
}
|
|
44
|
-
.wds-critical-banner--collapsed .wds-critical-banner__description:not(.wds-critical-banner__description--with-title) {
|
|
45
|
-
display: -webkit-box;
|
|
46
|
-
-webkit-line-clamp: 2;
|
|
47
|
-
line-clamp: 2;
|
|
48
|
-
-webkit-box-orient: vertical;
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
}
|
|
51
|
-
.wds-critical-banner .wds-prompt__content-wrapper {
|
|
52
|
-
grid-template-columns: auto 1fr auto;
|
|
53
|
-
align-items: flex-start;
|
|
54
|
-
transition: row-gap var(--critical-banner-duration) var(--critical-banner-easing);
|
|
55
|
-
}
|
|
56
|
-
.wds-critical-banner--collapsed .wds-prompt__content-wrapper {
|
|
57
|
-
row-gap: 0;
|
|
58
|
-
}
|
|
59
|
-
.wds-critical-banner__text-wrapper {
|
|
60
|
-
position: relative;
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
align-items: flex-start;
|
|
65
|
-
text-align: start;
|
|
66
|
-
min-width: 0;
|
|
67
|
-
max-width: 480px;
|
|
68
|
-
height: 100%;
|
|
69
|
-
padding-top: 3px;
|
|
70
|
-
}
|
|
71
|
-
@media (max-width: 320px) {
|
|
72
|
-
.wds-critical-banner__text-wrapper {
|
|
73
|
-
padding-top: 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
@container (width < 320px) {
|
|
77
|
-
.wds-critical-banner__text-wrapper {
|
|
78
|
-
padding-top: 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.wds-critical-banner--collapsed .wds-critical-banner__title,
|
|
82
|
-
.wds-critical-banner--collapsed .wds-critical-banner__description {
|
|
83
|
-
transform: translateY(0);
|
|
84
|
-
}
|
|
85
|
-
.wds-critical-banner__toggle {
|
|
86
|
-
flex-shrink: 0;
|
|
87
|
-
transition: transform var(--critical-banner-duration) var(--critical-banner-easing);
|
|
88
|
-
}
|
|
89
|
-
.wds-critical-banner__toggle--collapsed {
|
|
90
|
-
transform: rotate(180deg);
|
|
91
|
-
}
|
|
92
|
-
@container (min-width: 768px) {
|
|
93
|
-
.wds-critical-banner__toggle {
|
|
94
|
-
display: none;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
.wds-critical-banner .wds-prompt__actions-wrapper {
|
|
98
|
-
grid-column-start: 2;
|
|
99
|
-
grid-column-end: 3;
|
|
100
|
-
max-height: 200px;
|
|
101
|
-
opacity: 1;
|
|
102
|
-
overflow: visible;
|
|
103
|
-
}
|
|
104
|
-
@container (max-width: 600px) {
|
|
105
|
-
.wds-critical-banner .wds-prompt__actions-wrapper {
|
|
106
|
-
grid-column: span 3;
|
|
107
|
-
width: 100%;
|
|
108
|
-
}
|
|
109
|
-
.wds-critical-banner .wds-prompt__actions-wrapper .wds-Button {
|
|
110
|
-
flex: 1 1 100%;
|
|
111
|
-
width: 100%;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
.wds-critical-banner--collapsed .wds-prompt__actions-wrapper {
|
|
115
|
-
max-height: 0;
|
|
116
|
-
opacity: 0;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
pointer-events: none;
|
|
119
|
-
}
|
|
120
|
-
@container (max-width: 600px) {
|
|
121
|
-
.wds-critical-banner--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
|
|
122
|
-
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
123
|
-
min-width: -moz-fit-content;
|
|
124
|
-
min-width: fit-content;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
@media (prefers-reduced-motion: reduce) {
|
|
128
|
-
.wds-critical-banner__description,
|
|
129
|
-
.wds-critical-banner__title,
|
|
130
|
-
.wds-critical-banner .wds-prompt__content-wrapper,
|
|
131
|
-
.wds-critical-banner__toggle {
|
|
132
|
-
transition: none !important;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
File without changes
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
.wds-info-prompt {
|
|
2
|
-
--Prompt-border-radius: var(--radius-medium);
|
|
3
|
-
--Prompt-gap: var(--size-8);
|
|
4
|
-
--Prompt-padding: var(--size-12);
|
|
5
|
-
}
|
|
6
|
-
.wds-info-prompt__content {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
max-width: calc(48px * 10);
|
|
11
|
-
max-width: calc(var(--size-48) * 10);
|
|
12
|
-
}
|
|
13
|
-
.wds-info-prompt__content:has(.wds-info-prompt__title) {
|
|
14
|
-
justify-content: flex-start;
|
|
15
|
-
/* Top align when title exists */
|
|
16
|
-
}
|
|
17
|
-
.wds-info-prompt__title,
|
|
18
|
-
.wds-info-prompt__description {
|
|
19
|
-
display: block;
|
|
20
|
-
}
|
|
21
|
-
.wds-info-prompt__action {
|
|
22
|
-
align-self: flex-start;
|
|
23
|
-
margin-top: var(--Prompt-gap);
|
|
24
|
-
}
|
|
25
|
-
.wds-info-prompt__media svg {
|
|
26
|
-
width: 24px;
|
|
27
|
-
width: var(--size-24);
|
|
28
|
-
height: 24px;
|
|
29
|
-
height: var(--size-24);
|
|
30
|
-
}
|
|
31
|
-
.wds-info-prompt .wds-prompt__media-wrapper {
|
|
32
|
-
padding: 0;
|
|
33
|
-
}
|
|
34
|
-
@media (max-width: 320px) {
|
|
35
|
-
.wds-info-prompt .wds-prompt__media-wrapper {
|
|
36
|
-
padding-top: 4px;
|
|
37
|
-
padding-top: var(--size-4);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
@media (max-width: 320px) {
|
|
41
|
-
.wds-info-prompt .wds-prompt__media-wrapper:has(.wds-info-prompt__media > .tw-icon) {
|
|
42
|
-
padding-top: 8px;
|
|
43
|
-
padding-top: var(--size-8);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
@media (max-width: 320px) {
|
|
47
|
-
.wds-info-prompt .wds-prompt__media-wrapper:has(+ .wds-info-prompt__content .wds-info-prompt__title:first-child) {
|
|
48
|
-
padding-top: 8px;
|
|
49
|
-
padding-top: var(--size-8);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
@media (max-width: 320px) {
|
|
53
|
-
.wds-info-prompt .wds-prompt__media-wrapper:has(+ .wds-info-prompt__content .wds-info-prompt__title:first-child):has(.wds-info-prompt__media > .tw-icon) {
|
|
54
|
-
padding-top: 12px;
|
|
55
|
-
padding-top: var(--size-12);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
.wds-inline-prompt {
|
|
2
|
-
--Prompt-gap: calc(var(--size-12) / 2);
|
|
3
|
-
--Prompt-padding: calc(var(--padding-x-small) / 2) var(--padding-x-small);
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
border-radius: 10px;
|
|
6
|
-
border-radius: var(--radius-small);
|
|
7
|
-
}
|
|
8
|
-
.wds-inline-prompt:has(a),
|
|
9
|
-
.wds-inline-prompt:has(button) {
|
|
10
|
-
position: relative;
|
|
11
|
-
z-index: 1;
|
|
12
|
-
}
|
|
13
|
-
.wds-inline-prompt:has(a):hover,
|
|
14
|
-
.wds-inline-prompt:has(button):hover {
|
|
15
|
-
background-color: var(--color-sentiment-background-surface-hover);
|
|
16
|
-
}
|
|
17
|
-
.wds-inline-prompt:has(a):active,
|
|
18
|
-
.wds-inline-prompt:has(button):active {
|
|
19
|
-
background-color: var(--color-sentiment-background-surface-active);
|
|
20
|
-
}
|
|
21
|
-
.wds-inline-prompt--auto-width {
|
|
22
|
-
width: auto;
|
|
23
|
-
width: initial;
|
|
24
|
-
}
|
|
25
|
-
.wds-inline-prompt--muted {
|
|
26
|
-
opacity: 0.93;
|
|
27
|
-
filter: grayscale(1);
|
|
28
|
-
}
|
|
29
|
-
.wds-inline-prompt a,
|
|
30
|
-
.wds-inline-prompt button {
|
|
31
|
-
color: var(--color-sentiment-content-primary);
|
|
32
|
-
text-underline-offset: calc(4px / 2);
|
|
33
|
-
text-underline-offset: calc(var(--size-4) / 2);
|
|
34
|
-
}
|
|
35
|
-
.wds-inline-prompt a:hover,
|
|
36
|
-
.wds-inline-prompt button:hover {
|
|
37
|
-
color: var(--color-sentiment-content-primary-hover);
|
|
38
|
-
}
|
|
39
|
-
.wds-inline-prompt a:active,
|
|
40
|
-
.wds-inline-prompt button:active {
|
|
41
|
-
color: var(--color-sentiment-content-primary-active);
|
|
42
|
-
}
|
|
43
|
-
.wds-inline-prompt a:first-of-type:before,
|
|
44
|
-
.wds-inline-prompt button:first-of-type:before {
|
|
45
|
-
content: "";
|
|
46
|
-
position: absolute;
|
|
47
|
-
inset: 0;
|
|
48
|
-
}
|
|
49
|
-
.wds-inline-prompt .wds-inline-prompt-process-indicator {
|
|
50
|
-
width: 16px;
|
|
51
|
-
width: var(--size-16);
|
|
52
|
-
height: 16px;
|
|
53
|
-
height: var(--size-16);
|
|
54
|
-
}
|
|
55
|
-
.wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
|
|
56
|
-
stroke: currentColor;
|
|
57
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.wds-prompt {
|
|
2
|
-
border-radius: 10px;
|
|
3
|
-
border-radius: var(--Prompt-border-radius, var(--radius-small));
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: 16px;
|
|
6
|
-
gap: var(--Prompt-gap, var(--size-16));
|
|
7
|
-
word-wrap: break-word;
|
|
8
|
-
padding: 8px;
|
|
9
|
-
padding: var(--Prompt-padding, var(--padding-x-small));
|
|
10
|
-
text-align: left;
|
|
11
|
-
word-break: break-word;
|
|
12
|
-
width: 100%;
|
|
13
|
-
}
|
|
14
|
-
.wds-prompt__content-wrapper {
|
|
15
|
-
display: grid;
|
|
16
|
-
grid-gap: 16px;
|
|
17
|
-
grid-gap: var(--Prompt-gap, var(--size-16));
|
|
18
|
-
gap: 16px;
|
|
19
|
-
gap: var(--Prompt-gap, var(--size-16));
|
|
20
|
-
grid-template-columns: auto 1fr;
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
.wds-prompt__content-wrapper--with-dismiss {
|
|
24
|
-
grid-template-columns: auto 1fr auto;
|
|
25
|
-
}
|
|
26
|
-
.wds-prompt__media-wrapper {
|
|
27
|
-
align-self: flex-start;
|
|
28
|
-
padding-top: calc(4px - 1px);
|
|
29
|
-
padding-top: calc(var(--size-4) - 1px);
|
|
30
|
-
}
|
|
31
|
-
.wds-prompt__media-wrapper .tw-icon-tags,
|
|
32
|
-
.wds-prompt__media-wrapper .tw-icon-confetti {
|
|
33
|
-
color: var(--color-sentiment-content-primary);
|
|
34
|
-
}
|
|
35
|
-
.wds-prompt__actions-wrapper {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-wrap: wrap;
|
|
38
|
-
gap: 8px;
|
|
39
|
-
gap: var(--Prompt-actions-gap, var(--size-8));
|
|
40
|
-
grid-column-start: 2;
|
|
41
|
-
grid-column-end: 3;
|
|
42
|
-
}
|
|
43
|
-
@media (max-width: 599.98px) {
|
|
44
|
-
.wds-prompt__actions-wrapper {
|
|
45
|
-
grid-column: span 2;
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
.wds-prompt__content-wrapper--with-dismiss .wds-prompt__actions-wrapper {
|
|
49
|
-
grid-column: span 3;
|
|
50
|
-
}
|
|
51
|
-
}
|
package/src/section/Section.css
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
.segmented-control {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
--segment-highlight-width: 0;
|
|
4
|
-
--segment-highlight-x: var(--size-4);
|
|
5
|
-
}
|
|
6
|
-
.segmented-control__segments {
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
position: relative;
|
|
9
|
-
padding: 4px;
|
|
10
|
-
padding: var(--size-4);
|
|
11
|
-
width: 100%;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
background: rgba(134,167,189,0.10196);
|
|
15
|
-
background: var(--color-background-neutral);
|
|
16
|
-
border-radius: 24px;
|
|
17
|
-
border-radius: var(--size-24);
|
|
18
|
-
transition: outline 300ms;
|
|
19
|
-
outline: 2px solid transparent;
|
|
20
|
-
}
|
|
21
|
-
.segmented-control--input:has(:focus-visible) > .segmented-control__segments::after {
|
|
22
|
-
outline: 2px solid var(--color-interactive-primary);
|
|
23
|
-
}
|
|
24
|
-
.segmented-control__segments::after {
|
|
25
|
-
content: "";
|
|
26
|
-
position: absolute;
|
|
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);
|
|
33
|
-
z-index: 0;
|
|
34
|
-
background: #ffffff;
|
|
35
|
-
background: var(--color-background-screen);
|
|
36
|
-
border-radius: 24px;
|
|
37
|
-
border-radius: var(--size-24);
|
|
38
|
-
transition: left 300ms;
|
|
39
|
-
}
|
|
40
|
-
.segmented-control__segments--no-animate::after {
|
|
41
|
-
transition: none !important;
|
|
42
|
-
}
|
|
43
|
-
.segmented-control__segment {
|
|
44
|
-
position: relative;
|
|
45
|
-
flex: 1 1 100%;
|
|
46
|
-
flex-flow: column;
|
|
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;
|
|
52
|
-
line-height: inherit;
|
|
53
|
-
align-items: center;
|
|
54
|
-
text-align: center;
|
|
55
|
-
vertical-align: middle;
|
|
56
|
-
border-radius: 24px;
|
|
57
|
-
border-radius: var(--size-24);
|
|
58
|
-
z-index: 1;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
transition: background 300ms;
|
|
61
|
-
color: var(--color-interactive-primary);
|
|
62
|
-
}
|
|
63
|
-
.segmented-control__segment:first-child {
|
|
64
|
-
margin-left: 0;
|
|
65
|
-
}
|
|
66
|
-
.segmented-control__segment:hover {
|
|
67
|
-
background: rgba(0,0,0,0.10196);
|
|
68
|
-
background: var(--color-background-overlay);
|
|
69
|
-
}
|
|
70
|
-
.segmented-control__radio-input {
|
|
71
|
-
position: fixed;
|
|
72
|
-
opacity: 0;
|
|
73
|
-
pointer-events: none;
|
|
74
|
-
}
|
|
75
|
-
.segmented-control__button {
|
|
76
|
-
width: 100%;
|
|
77
|
-
height: 100%;
|
|
78
|
-
background: none;
|
|
79
|
-
-webkit-appearance: none;
|
|
80
|
-
-moz-appearance: none;
|
|
81
|
-
appearance: none;
|
|
82
|
-
border: none;
|
|
83
|
-
outline: none;
|
|
84
|
-
font: inherit;
|
|
85
|
-
outline: 2px solid transparent;
|
|
86
|
-
}
|
|
87
|
-
.segmented-control__button:focus {
|
|
88
|
-
outline-offset: 0px;
|
|
89
|
-
}
|
|
90
|
-
.segmented-control__button:focus-visible {
|
|
91
|
-
outline-color: var(--color-interactive-primary);
|
|
92
|
-
}
|
|
93
|
-
.segmented-control__selected-segment:hover {
|
|
94
|
-
background: transparent;
|
|
95
|
-
}
|
|
96
|
-
.segmented-control__text {
|
|
97
|
-
word-wrap: break-word;
|
|
98
|
-
word-break: break-word;
|
|
99
|
-
color: var(--color-interactive-primary);
|
|
100
|
-
transition: font-weight 300ms;
|
|
101
|
-
}
|