@transferwise/components 0.0.0-experimental-b2d320f → 0.0.0-experimental-fe0caa4
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/common/{card/Card.js → baseCard/BaseCard.js} +4 -4
- package/build/common/baseCard/BaseCard.js.map +1 -0
- package/build/common/{card/Card.mjs → baseCard/BaseCard.mjs} +4 -4
- package/build/common/baseCard/BaseCard.mjs.map +1 -0
- package/build/index.js +4 -4
- package/build/index.mjs +1 -1
- package/build/main.css +1387 -1277
- package/build/promoCard/PromoCard.js +2 -2
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +2 -2
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/styles/accordion/Accordion.css +26 -19
- package/build/styles/actionButton/ActionButton.css +8 -6
- package/build/styles/alert/Alert.css +2 -2
- package/build/styles/avatar/Avatar.css +65 -65
- package/build/styles/avatarLayout/AvatarLayout.css +11 -11
- package/build/styles/avatarView/AvatarView.css +3 -3
- package/build/styles/avatarView/Dot.css +3 -3
- package/build/styles/badge/Badge.css +11 -10
- package/build/styles/button/Button.css +6 -6
- package/build/styles/button/LegacyButton.css +7 -7
- package/build/styles/card/Card.css +32 -16
- package/build/styles/carousel/Carousel.css +29 -27
- package/build/styles/checkboxButton/CheckboxButton.css +13 -13
- package/build/styles/chips/Chip.css +31 -27
- package/build/styles/common/Option/Option.css +44 -42
- package/build/styles/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
- package/build/styles/common/bottomSheet/BottomSheet.css +35 -18
- package/build/styles/common/circle/Circle.css +10 -10
- package/build/styles/common/closeButton/CloseButton.css +36 -36
- package/build/styles/common/panel/Panel.css +7 -7
- package/build/styles/criticalBanner/CriticalCommsBanner.css +6 -6
- package/build/styles/dateInput/DateInput.css +4 -4
- package/build/styles/dateLookup/DateLookup.css +11 -9
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +13 -13
- package/build/styles/definitionList/DefinitionList.css +12 -12
- package/build/styles/dimmer/Dimmer.css +15 -15
- package/build/styles/divider/Divider.css +8 -7
- package/build/styles/drawer/Drawer.css +19 -15
- package/build/styles/dropFade/DropFade.css +2 -2
- package/build/styles/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/build/styles/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/build/styles/expressiveMoneyInput/chevron/Chevron.css +5 -5
- package/build/styles/field/Field.css +5 -5
- package/build/styles/flowNavigation/FlowNavigation.css +29 -28
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
- package/build/styles/header/Header.css +12 -9
- package/build/styles/image/Image.css +7 -7
- package/build/styles/info/Info.css +1 -1
- package/build/styles/inputs/Input.css +25 -25
- package/build/styles/inputs/InputGroup.css +9 -9
- package/build/styles/inputs/SelectInput.css +55 -47
- package/build/styles/inputs/TextArea.css +27 -27
- package/build/styles/instructionsList/InstructionsList.css +5 -5
- package/build/styles/legacylistItem/LegacyListItem.css +1 -1
- package/build/styles/link/Link.css +6 -6
- package/build/styles/listItem/ListItem.css +39 -35
- package/build/styles/listItem/ListItem.grid.css +7 -7
- package/build/styles/loader/Loader.css +30 -30
- package/build/styles/main.css +1387 -1277
- package/build/styles/modal/Modal.css +18 -16
- package/build/styles/moneyInput/MoneyInput.css +16 -16
- package/build/styles/navigationOption/NavigationOption.css +9 -9
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +6 -6
- package/build/styles/nudge/Nudge.css +72 -70
- package/build/styles/overlayHeader/OverlayHeader.css +7 -6
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +7 -7
- package/build/styles/popover/Popover.css +14 -10
- package/build/styles/progress/Progress.css +3 -3
- package/build/styles/progressBar/ProgressBar.css +4 -4
- package/build/styles/promoCard/PromoCard.css +36 -35
- package/build/styles/prompt/ActionPrompt/ActionPrompt.css +8 -8
- package/build/styles/prompt/InfoPrompt/InfoPrompt.css +7 -7
- package/build/styles/prompt/InlinePrompt/InlinePrompt.css +6 -6
- package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
- package/build/styles/radioGroup/RadioGroup.css +1 -1
- package/build/styles/section/Section.css +6 -6
- package/build/styles/segmentedControl/SegmentedControl.css +19 -15
- package/build/styles/select/Select.css +80 -76
- package/build/styles/slidingPanel/SlidingPanel.css +21 -21
- package/build/styles/snackbar/Snackbar.css +31 -27
- package/build/styles/stepper/Stepper.css +8 -8
- package/build/styles/summary/Summary.css +26 -26
- package/build/styles/switch/Switch.css +5 -4
- package/build/styles/table/Table.css +60 -57
- package/build/styles/tabs/Tabs.css +20 -14
- package/build/styles/tile/Tile.css +12 -12
- package/build/styles/tooltip/Tooltip.css +2 -2
- package/build/styles/typeahead/Typeahead.css +48 -48
- package/build/styles/upload/Upload.css +11 -10
- package/build/styles/uploadInput/UploadInput.css +4 -4
- package/build/styles/uploadInput/uploadButton/UploadButton.css +20 -19
- package/build/styles/uploadInput/uploadItem/UploadItem.css +46 -44
- package/build/types/common/{card/Card.d.ts → baseCard/BaseCard.d.ts} +8 -8
- package/build/types/common/baseCard/BaseCard.d.ts.map +1 -0
- package/build/types/common/baseCard/index.d.ts +3 -0
- package/build/types/common/baseCard/index.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/promoCard/PromoCard.d.ts +3 -3
- package/build/types/promoCard/PromoCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/accordion/Accordion.css +26 -19
- package/src/actionButton/ActionButton.css +8 -6
- package/src/alert/Alert.css +2 -2
- package/src/avatar/Avatar.css +65 -65
- package/src/avatarLayout/AvatarLayout.css +11 -11
- package/src/avatarView/AvatarView.css +3 -3
- package/src/avatarView/Dot.css +3 -3
- package/src/badge/Badge.css +11 -10
- package/src/button/Button.css +6 -6
- package/src/button/LegacyButton.css +7 -7
- package/src/card/Card.css +32 -16
- package/src/carousel/Carousel.css +29 -27
- package/src/checkboxButton/CheckboxButton.css +13 -13
- package/src/chips/Chip.css +31 -27
- package/src/common/Option/Option.css +44 -42
- package/src/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
- package/src/common/{card/Card.less → baseCard/BaseCard.less} +1 -1
- package/src/common/{card/Card.story.tsx → baseCard/BaseCard.story.tsx} +5 -5
- package/src/common/{card/Card.test.tsx → baseCard/BaseCard.test.tsx} +11 -12
- package/src/common/{card/Card.tsx → baseCard/BaseCard.tsx} +9 -9
- package/src/common/baseCard/index.ts +2 -0
- package/src/common/bottomSheet/BottomSheet.css +35 -18
- package/src/common/circle/Circle.css +10 -10
- package/src/common/closeButton/CloseButton.css +36 -36
- package/src/common/panel/Panel.css +7 -7
- package/src/criticalBanner/CriticalCommsBanner.css +6 -6
- package/src/dateInput/DateInput.css +4 -4
- package/src/dateLookup/DateLookup.css +11 -9
- package/src/dateLookup/dateTrigger/DateTrigger.css +13 -13
- package/src/definitionList/DefinitionList.css +12 -12
- package/src/dimmer/Dimmer.css +15 -15
- package/src/divider/Divider.css +8 -7
- package/src/drawer/Drawer.css +19 -15
- package/src/dropFade/DropFade.css +2 -2
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/src/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/src/expressiveMoneyInput/chevron/Chevron.css +5 -5
- package/src/field/Field.css +5 -5
- package/src/flowNavigation/FlowNavigation.css +29 -28
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
- package/src/header/Header.css +12 -9
- package/src/image/Image.css +7 -7
- package/src/index.ts +1 -1
- package/src/info/Info.css +1 -1
- package/src/inputs/Input.css +25 -25
- package/src/inputs/InputGroup.css +9 -9
- package/src/inputs/SelectInput.css +55 -47
- package/src/inputs/TextArea.css +27 -27
- package/src/instructionsList/InstructionsList.css +5 -5
- package/src/legacylistItem/LegacyListItem.css +1 -1
- package/src/link/Link.css +6 -6
- package/src/listItem/ListItem.css +39 -35
- package/src/listItem/ListItem.grid.css +7 -7
- package/src/loader/Loader.css +30 -30
- package/src/main.css +1387 -1277
- package/src/main.less +2 -2
- package/src/modal/Modal.css +18 -16
- package/src/moneyInput/MoneyInput.css +16 -16
- package/src/navigationOption/NavigationOption.css +9 -9
- package/src/navigationOptionsList/NavigationOptionsList.css +6 -6
- package/src/nudge/Nudge.css +72 -70
- package/src/overlayHeader/OverlayHeader.css +7 -6
- package/src/phoneNumberInput/PhoneNumberInput.css +7 -7
- package/src/popover/Popover.css +14 -10
- package/src/progress/Progress.css +3 -3
- package/src/progressBar/ProgressBar.css +4 -4
- package/src/promoCard/PromoCard.css +36 -35
- package/src/promoCard/PromoCard.tsx +6 -5
- package/src/prompt/ActionPrompt/ActionPrompt.css +8 -8
- package/src/prompt/InfoPrompt/InfoPrompt.css +7 -7
- package/src/prompt/InlinePrompt/InlinePrompt.css +6 -6
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
- package/src/radioGroup/RadioGroup.css +1 -1
- package/src/section/Section.css +6 -6
- package/src/segmentedControl/SegmentedControl.css +19 -15
- package/src/select/Select.css +80 -76
- package/src/slidingPanel/SlidingPanel.css +21 -21
- package/src/snackbar/Snackbar.css +31 -27
- package/src/stepper/Stepper.css +8 -8
- package/src/summary/Summary.css +26 -26
- package/src/switch/Switch.css +5 -4
- package/src/table/Table.css +60 -57
- package/src/tabs/Tabs.css +20 -14
- package/src/tile/Tile.css +12 -12
- package/src/tooltip/Tooltip.css +2 -2
- package/src/typeahead/Typeahead.css +48 -48
- package/src/upload/Upload.css +11 -10
- package/src/uploadInput/UploadInput.css +4 -4
- package/src/uploadInput/uploadButton/UploadButton.css +20 -19
- package/src/uploadInput/uploadItem/UploadItem.css +46 -44
- package/build/common/card/Card.js.map +0 -1
- package/build/common/card/Card.mjs.map +0 -1
- package/build/types/common/card/Card.d.ts.map +0 -1
- package/build/types/common/card/index.d.ts +0 -3
- package/build/types/common/card/index.d.ts.map +0 -1
- package/src/common/card/index.ts +0 -2
|
@@ -17,19 +17,20 @@
|
|
|
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: 0
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
margin-block: 0;
|
|
21
|
+
margin-inline: auto;
|
|
22
|
+
inline-size: 100%;
|
|
23
|
+
block-size: auto;
|
|
24
|
+
inline-size: calc(100% + 48px);
|
|
25
|
+
inline-size: calc(100% + var(--size-48));
|
|
26
|
+
inset-inline-start: calc(24px * -1);
|
|
27
|
+
inset-inline-start: calc(var(--size-24) * -1);
|
|
27
28
|
position: relative;
|
|
28
29
|
}
|
|
29
30
|
[dir="rtl"] .np-Card-image {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
inset-inline-start: auto;
|
|
32
|
+
inset-inline-end: calc(24px * -1);
|
|
33
|
+
inset-inline-end: calc(var(--size-24) * -1);
|
|
33
34
|
}
|
|
34
35
|
.np-Card-description {
|
|
35
36
|
color: #5d7079;
|
|
@@ -37,23 +38,23 @@
|
|
|
37
38
|
}
|
|
38
39
|
.np-Card-indicator {
|
|
39
40
|
position: absolute;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
inset-inline-end: 8px;
|
|
42
|
+
inset-inline-end: var(--size-8);
|
|
43
|
+
inset-block-end: 8px;
|
|
44
|
+
inset-block-end: var(--size-8);
|
|
44
45
|
display: flex;
|
|
45
46
|
gap: 4px;
|
|
46
47
|
gap: var(--size-4);
|
|
47
48
|
}
|
|
48
49
|
[dir="rtl"] .np-Card-indicator {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
inset-inline-end: auto;
|
|
51
|
+
inset-inline-start: 8px;
|
|
52
|
+
inset-inline-start: var(--size-8);
|
|
52
53
|
}
|
|
53
54
|
.np-Card-indicatorText {
|
|
54
55
|
display: inline-block;
|
|
55
56
|
vertical-align: middle;
|
|
56
|
-
text-align:
|
|
57
|
+
text-align: start;
|
|
57
58
|
background: var(--Card-indicator-text-background-color);
|
|
58
59
|
padding: 16px;
|
|
59
60
|
padding: var(--size-16);
|
|
@@ -132,10 +133,10 @@
|
|
|
132
133
|
.np-Card--link .np-Card-titleLink::after {
|
|
133
134
|
content: '';
|
|
134
135
|
display: block;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
inline-size: 100%;
|
|
137
|
+
block-size: 100%;
|
|
138
|
+
inset-inline-start: 0;
|
|
139
|
+
inset-block-start: 0;
|
|
139
140
|
position: absolute;
|
|
140
141
|
z-index: 10;
|
|
141
142
|
}
|
|
@@ -149,22 +150,22 @@
|
|
|
149
150
|
border-radius: 9999px;
|
|
150
151
|
border-radius: var(--radius-full);
|
|
151
152
|
display: flex;
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
block-size: 40px;
|
|
154
|
+
block-size: var(--size-40);
|
|
154
155
|
position: absolute;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
inset-inline-end: 8px;
|
|
157
|
+
inset-inline-end: var(--size-8);
|
|
158
|
+
inset-block-start: 8px;
|
|
159
|
+
inset-block-start: var(--size-8);
|
|
160
|
+
inline-size: 40px;
|
|
161
|
+
inline-size: var(--size-40);
|
|
161
162
|
justify-content: center;
|
|
162
163
|
align-items: center;
|
|
163
164
|
}
|
|
164
165
|
[dir="rtl"] .np-Card--checked.is-checked .np-Card-check {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
inset-inline-end: auto;
|
|
167
|
+
inset-inline-start: 8px;
|
|
168
|
+
inset-inline-start: var(--size-8);
|
|
168
169
|
}
|
|
169
170
|
.np-Card--checked.is-checked:focus-visible:not(.is-disabled):not(:disabled) {
|
|
170
171
|
box-shadow: none;
|
|
@@ -174,7 +175,7 @@
|
|
|
174
175
|
flex-direction: column;
|
|
175
176
|
gap: 24px;
|
|
176
177
|
gap: var(--size-24);
|
|
177
|
-
|
|
178
|
+
inline-size: 100%;
|
|
178
179
|
}
|
|
179
180
|
@media (min-width: 768px) {
|
|
180
181
|
.np-CardGroup {
|
|
@@ -182,5 +183,5 @@
|
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
.np-CardGroup .np-Card.np-Card--promoCard {
|
|
185
|
-
max-
|
|
186
|
+
max-inline-size: 100%;
|
|
186
187
|
}
|
|
@@ -4,7 +4,7 @@ import React, { forwardRef, FunctionComponent, useEffect, useId, useState } from
|
|
|
4
4
|
|
|
5
5
|
import Body from '../body';
|
|
6
6
|
import { Typography } from '../common';
|
|
7
|
-
import
|
|
7
|
+
import BaseCard, { type BaseCardProps } from '../common/baseCard';
|
|
8
8
|
import Display from '../display';
|
|
9
9
|
import Image from '../image/Image';
|
|
10
10
|
import Title from '../title';
|
|
@@ -82,7 +82,7 @@ export interface PromoCardCommonProps {
|
|
|
82
82
|
ref?: ReferenceType;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export interface PromoCardLinkProps extends PromoCardCommonProps, Omit<
|
|
85
|
+
export interface PromoCardLinkProps extends PromoCardCommonProps, Omit<BaseCardProps, 'children'> {
|
|
86
86
|
/**
|
|
87
87
|
* Optional prop to prompts a user to save the linked URL instead of
|
|
88
88
|
* navigating to it
|
|
@@ -121,7 +121,8 @@ export interface PromoCardLinkProps extends PromoCardCommonProps, Omit<CardProps
|
|
|
121
121
|
value?: never;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
export interface PromoCardCheckedProps
|
|
124
|
+
export interface PromoCardCheckedProps
|
|
125
|
+
extends PromoCardCommonProps, Omit<BaseCardProps, 'children'> {
|
|
125
126
|
/** Specify the initial checked attribute of the PromoCard */
|
|
126
127
|
defaultChecked?: boolean;
|
|
127
128
|
|
|
@@ -368,7 +369,7 @@ const PromoCard: FunctionComponent<PromoCardProps> = forwardRef(
|
|
|
368
369
|
}, [defaultChecked, isChecked]);
|
|
369
370
|
|
|
370
371
|
return (
|
|
371
|
-
<
|
|
372
|
+
<BaseCard {...commonProps} {...checkedProps} {...props}>
|
|
372
373
|
{(value === state || checked) && (
|
|
373
374
|
<span className="np-Card-check">
|
|
374
375
|
<Check size={24} aria-hidden="true" />
|
|
@@ -386,7 +387,7 @@ const PromoCard: FunctionComponent<PromoCardProps> = forwardRef(
|
|
|
386
387
|
)}
|
|
387
388
|
|
|
388
389
|
<PromoCardIndicator label={indicatorLabel} icon={getIconType()} isSmall={isSmall} />
|
|
389
|
-
</
|
|
390
|
+
</BaseCard>
|
|
390
391
|
);
|
|
391
392
|
},
|
|
392
393
|
) as PolymorphicPromoCard;
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
--Prompt-border-radius: var(--radius-large);
|
|
6
6
|
}
|
|
7
7
|
.wds-action-prompt--media-image {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
inline-size: 48px;
|
|
9
|
+
inline-size: var(--size-48);
|
|
10
|
+
block-size: 48px;
|
|
11
|
+
block-size: var(--size-48);
|
|
12
12
|
-o-object-fit: contain;
|
|
13
13
|
object-fit: contain;
|
|
14
14
|
}
|
|
15
15
|
@media (max-width: 767px) {
|
|
16
16
|
.wds-action-prompt--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
|
|
17
17
|
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
18
|
-
min-
|
|
19
|
-
min-
|
|
18
|
+
min-inline-size: -moz-fit-content;
|
|
19
|
+
min-inline-size: fit-content;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
.wds-action-prompt__content {
|
|
23
|
-
max-
|
|
24
|
-
max-
|
|
23
|
+
max-inline-size: calc(48px * 10);
|
|
24
|
+
max-inline-size: calc(var(--size-48) * 10);
|
|
25
25
|
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
justify-content: center;
|
|
10
|
-
max-
|
|
11
|
-
max-
|
|
10
|
+
max-inline-size: calc(48px * 10);
|
|
11
|
+
max-inline-size: calc(var(--size-48) * 10);
|
|
12
12
|
}
|
|
13
13
|
.wds-info-prompt__content:has(.wds-info-prompt__title) {
|
|
14
14
|
justify-content: flex-start;
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
}
|
|
21
21
|
.wds-info-prompt__action {
|
|
22
22
|
align-self: flex-start;
|
|
23
|
-
margin-
|
|
23
|
+
margin-block-start: var(--Prompt-gap);
|
|
24
24
|
}
|
|
25
25
|
.wds-info-prompt__media svg {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
inline-size: 24px;
|
|
27
|
+
inline-size: var(--size-24);
|
|
28
|
+
block-size: 24px;
|
|
29
|
+
block-size: var(--size-24);
|
|
30
30
|
}
|
|
31
31
|
.wds-info-prompt .wds-prompt__media-wrapper {
|
|
32
32
|
padding: 0;
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
background-color: var(--color-sentiment-background-surface-active);
|
|
20
20
|
}
|
|
21
21
|
.wds-inline-prompt--auto-width {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
inline-size: auto;
|
|
23
|
+
inline-size: initial;
|
|
24
24
|
}
|
|
25
25
|
.wds-inline-prompt--muted {
|
|
26
26
|
opacity: 0.93;
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
inset: 0;
|
|
48
48
|
}
|
|
49
49
|
.wds-inline-prompt .wds-inline-prompt-process-indicator {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
inline-size: 16px;
|
|
51
|
+
inline-size: var(--size-16);
|
|
52
|
+
block-size: 16px;
|
|
53
|
+
block-size: var(--size-16);
|
|
54
54
|
}
|
|
55
55
|
.wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
|
|
56
56
|
stroke: currentColor;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
word-wrap: break-word;
|
|
8
8
|
padding: 8px;
|
|
9
9
|
padding: var(--Prompt-padding, var(--padding-x-small));
|
|
10
|
-
text-align:
|
|
10
|
+
text-align: start;
|
|
11
11
|
word-break: break-word;
|
|
12
|
-
|
|
12
|
+
inline-size: 100%;
|
|
13
13
|
}
|
|
14
14
|
.wds-prompt__content-wrapper {
|
|
15
15
|
display: grid;
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
gap: 16px;
|
|
19
19
|
gap: var(--Prompt-gap, var(--size-16));
|
|
20
20
|
grid-template-columns: auto 1fr;
|
|
21
|
-
|
|
21
|
+
inline-size: 100%;
|
|
22
22
|
}
|
|
23
23
|
.wds-prompt__content-wrapper--with-dismiss {
|
|
24
24
|
grid-template-columns: auto 1fr auto;
|
|
25
25
|
}
|
|
26
26
|
.wds-prompt__media-wrapper {
|
|
27
27
|
align-self: flex-start;
|
|
28
|
-
padding-
|
|
29
|
-
padding-
|
|
28
|
+
padding-block-start: calc(4px - 1px);
|
|
29
|
+
padding-block-start: calc(var(--size-4) - 1px);
|
|
30
30
|
}
|
|
31
31
|
.wds-prompt__media-wrapper .tw-icon-tags,
|
|
32
32
|
.wds-prompt__media-wrapper .tw-icon-confetti {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
@media (max-width: 767px) {
|
|
44
44
|
.wds-prompt__actions-wrapper {
|
|
45
45
|
grid-column: span 2;
|
|
46
|
-
|
|
46
|
+
inline-size: 100%;
|
|
47
47
|
}
|
|
48
48
|
.wds-prompt__content-wrapper--with-dismiss .wds-prompt__actions-wrapper {
|
|
49
49
|
grid-column: span 3;
|
package/src/section/Section.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.np-section {
|
|
2
|
-
margin-
|
|
3
|
-
margin-
|
|
2
|
+
margin-block-start: 32px;
|
|
3
|
+
margin-block-start: var(--size-32);
|
|
4
4
|
}
|
|
5
5
|
.np-section--with-horizontal-padding {
|
|
6
|
-
padding-
|
|
7
|
-
padding-
|
|
8
|
-
padding-
|
|
9
|
-
padding-
|
|
6
|
+
padding-inline-end: 16px;
|
|
7
|
+
padding-inline-end: var(--space-content-horizontal);
|
|
8
|
+
padding-inline-start: 16px;
|
|
9
|
+
padding-inline-start: var(--space-content-horizontal);
|
|
10
10
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
position: relative;
|
|
9
9
|
padding: 4px;
|
|
10
10
|
padding: var(--size-4);
|
|
11
|
-
|
|
11
|
+
inline-size: 100%;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
align-items: center;
|
|
14
14
|
background: rgba(134,167,189,0.10196);
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
.segmented-control__segments::after {
|
|
25
25
|
content: "";
|
|
26
26
|
position: absolute;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
inline-size: var(--segment-highlight-width);
|
|
28
|
+
inset-block-start: 4px;
|
|
29
|
+
inset-block-start: var(--size-4);
|
|
30
|
+
inset-block-end: 4px;
|
|
31
|
+
inset-block-end: var(--size-4);
|
|
32
|
+
inset-inline-start: var(--segment-highlight-x);
|
|
33
33
|
z-index: 0;
|
|
34
34
|
background: #ffffff;
|
|
35
35
|
background: var(--color-background-screen);
|
|
@@ -44,11 +44,15 @@
|
|
|
44
44
|
position: relative;
|
|
45
45
|
flex: 1 1 100%;
|
|
46
46
|
flex-flow: column;
|
|
47
|
-
padding: 8px
|
|
48
|
-
padding:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
padding-block: 8px;
|
|
48
|
+
padding-inline: 16px;
|
|
49
|
+
padding-block: var(--size-8);
|
|
50
|
+
padding-inline: var(--size-16);
|
|
51
|
+
margin-block: 0 0;
|
|
52
|
+
margin-inline: 0 4px;
|
|
53
|
+
margin-block: 0 0;
|
|
54
|
+
margin-inline: 0 var(--size-4);
|
|
55
|
+
min-inline-size: 0;
|
|
52
56
|
line-height: inherit;
|
|
53
57
|
align-items: center;
|
|
54
58
|
text-align: center;
|
|
@@ -61,7 +65,7 @@
|
|
|
61
65
|
color: var(--color-interactive-primary);
|
|
62
66
|
}
|
|
63
67
|
.segmented-control__segment:first-child {
|
|
64
|
-
margin-
|
|
68
|
+
margin-inline-start: 0;
|
|
65
69
|
}
|
|
66
70
|
.segmented-control__segment:hover {
|
|
67
71
|
background: rgba(0,0,0,0.10196);
|
|
@@ -73,8 +77,8 @@
|
|
|
73
77
|
pointer-events: none;
|
|
74
78
|
}
|
|
75
79
|
.segmented-control__button {
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
inline-size: 100%;
|
|
81
|
+
block-size: 100%;
|
|
78
82
|
background: none;
|
|
79
83
|
-webkit-appearance: none;
|
|
80
84
|
-moz-appearance: none;
|
package/src/select/Select.css
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
font-weight: 400;
|
|
11
11
|
font-weight: var(--font-weight-regular);
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
padding-
|
|
14
|
-
padding-
|
|
15
|
-
text-align:
|
|
13
|
+
padding-inline-start: 16px;
|
|
14
|
+
padding-inline-start: var(--size-16);
|
|
15
|
+
text-align: start;
|
|
16
16
|
text-overflow: ellipsis;
|
|
17
|
-
max-
|
|
17
|
+
max-inline-size: 100%;
|
|
18
18
|
}
|
|
19
19
|
[dir="rtl"] .np-select .np-dropdown-toggle {
|
|
20
|
-
text-align:
|
|
20
|
+
text-align: end;
|
|
21
21
|
}
|
|
22
22
|
.np-select .np-dropdown-toggle:focus-visible {
|
|
23
23
|
outline: none;
|
|
@@ -39,66 +39,66 @@
|
|
|
39
39
|
--color-interactive-secondary-hover: #2e4369;
|
|
40
40
|
}
|
|
41
41
|
.np-select .np-dropdown-toggle.np-btn-sm {
|
|
42
|
-
padding-
|
|
43
|
-
padding-
|
|
42
|
+
padding-inline-end: 32px;
|
|
43
|
+
padding-inline-end: var(--size-32);
|
|
44
44
|
}
|
|
45
45
|
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-sm {
|
|
46
|
-
padding-
|
|
47
|
-
padding-
|
|
48
|
-
padding-
|
|
49
|
-
padding-
|
|
46
|
+
padding-inline-start: 32px;
|
|
47
|
+
padding-inline-start: var(--size-32);
|
|
48
|
+
padding-inline-end: 0;
|
|
49
|
+
padding-inline-end: initial;
|
|
50
50
|
}
|
|
51
51
|
.np-select .np-dropdown-toggle.np-btn-md {
|
|
52
|
-
padding-
|
|
53
|
-
padding-
|
|
52
|
+
padding-inline-end: 40px;
|
|
53
|
+
padding-inline-end: var(--size-40);
|
|
54
54
|
}
|
|
55
55
|
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-md {
|
|
56
|
-
padding-
|
|
57
|
-
padding-
|
|
58
|
-
padding-
|
|
59
|
-
padding-
|
|
56
|
+
padding-inline-start: 40px;
|
|
57
|
+
padding-inline-start: var(--size-40);
|
|
58
|
+
padding-inline-end: 0;
|
|
59
|
+
padding-inline-end: initial;
|
|
60
60
|
}
|
|
61
61
|
.np-select .np-dropdown-toggle.np-btn-lg {
|
|
62
|
-
padding-
|
|
63
|
-
padding-
|
|
62
|
+
padding-inline-end: 48px;
|
|
63
|
+
padding-inline-end: var(--size-48);
|
|
64
64
|
}
|
|
65
65
|
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-lg {
|
|
66
|
-
padding-
|
|
67
|
-
padding-
|
|
68
|
-
padding-
|
|
69
|
-
padding-
|
|
66
|
+
padding-inline-start: 48px;
|
|
67
|
+
padding-inline-start: var(--size-48);
|
|
68
|
+
padding-inline-end: 0;
|
|
69
|
+
padding-inline-end: initial;
|
|
70
70
|
}
|
|
71
71
|
.np-select .np-dropdown-toggle .np-select-chevron {
|
|
72
72
|
margin: 0 ;
|
|
73
73
|
position: absolute;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
inset-inline-end: 16px;
|
|
75
|
+
inset-inline-end: var(--size-16);
|
|
76
|
+
inset-block-start: 16px;
|
|
77
|
+
inset-block-start: var(--size-16);
|
|
78
78
|
}
|
|
79
79
|
[dir="rtl"] .np-select .np-dropdown-toggle .np-select-chevron {
|
|
80
80
|
margin: 0 ;
|
|
81
81
|
}
|
|
82
82
|
[dir="rtl"] .np-select .np-dropdown-toggle .np-select-chevron {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
inset-inline-start: 16px;
|
|
84
|
+
inset-inline-start: var(--size-16);
|
|
85
|
+
inset-inline-end: auto;
|
|
86
|
+
inset-inline-end: initial;
|
|
87
87
|
}
|
|
88
88
|
.np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
inset-inline-end: 8px;
|
|
90
|
+
inset-inline-end: var(--size-8);
|
|
91
|
+
inset-block-start: 8px;
|
|
92
|
+
inset-block-start: var(--size-8);
|
|
93
93
|
}
|
|
94
94
|
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
inset-inline-start: 8px;
|
|
96
|
+
inset-inline-start: var(--size-8);
|
|
97
|
+
inset-inline-end: auto;
|
|
98
|
+
inset-inline-end: initial;
|
|
99
99
|
}
|
|
100
100
|
.np-select .np-dropdown-toggle.np-btn-lg .np-select-chevron {
|
|
101
|
-
|
|
101
|
+
inset-block-start: 27px;
|
|
102
102
|
}
|
|
103
103
|
.np-select .btn:not(.disabled):not(:disabled):not(.btn-loading) {
|
|
104
104
|
color: #37517e;
|
|
@@ -117,20 +117,20 @@
|
|
|
117
117
|
border-color: var(--color-interactive-secondary);
|
|
118
118
|
}
|
|
119
119
|
.np-option-content {
|
|
120
|
-
max-
|
|
120
|
+
max-inline-size: 100%;
|
|
121
121
|
}
|
|
122
122
|
.np-option-content .d-flex:last-child {
|
|
123
|
-
max-
|
|
123
|
+
max-inline-size: calc(100% - 32px);
|
|
124
124
|
}
|
|
125
125
|
.np-dropdown-menu-desktop {
|
|
126
|
-
max-
|
|
127
|
-
max-
|
|
128
|
-
min-
|
|
129
|
-
max-
|
|
126
|
+
max-block-size: 70vh;
|
|
127
|
+
max-block-size: 70svh;
|
|
128
|
+
min-inline-size: 160px;
|
|
129
|
+
max-inline-size: calc(100vw - 32px);
|
|
130
130
|
}
|
|
131
131
|
@media (min-height: 592px) {
|
|
132
132
|
.np-dropdown-menu-desktop {
|
|
133
|
-
max-
|
|
133
|
+
max-block-size: 592px;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
.np-dropdown-menu {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
margin: 0;
|
|
141
141
|
padding: 0 ;
|
|
142
142
|
list-style: none;
|
|
143
|
-
text-align:
|
|
143
|
+
text-align: start;
|
|
144
144
|
background-color: #ffffff;
|
|
145
145
|
background-color: var(--color-background-screen);
|
|
146
146
|
}
|
|
@@ -148,20 +148,20 @@
|
|
|
148
148
|
padding: 0 ;
|
|
149
149
|
}
|
|
150
150
|
[dir="rtl"] .np-dropdown-menu {
|
|
151
|
-
text-align:
|
|
151
|
+
text-align: end;
|
|
152
152
|
}
|
|
153
153
|
.np-theme-personal .np-dropdown-menu {
|
|
154
154
|
border-radius: 10px;
|
|
155
155
|
border-radius: var(--radius-small);
|
|
156
156
|
}
|
|
157
157
|
.np-dropdown-menu-sm {
|
|
158
|
-
|
|
158
|
+
inline-size: 220px;
|
|
159
159
|
}
|
|
160
160
|
.np-dropdown-menu-md {
|
|
161
|
-
|
|
161
|
+
inline-size: 300px;
|
|
162
162
|
}
|
|
163
163
|
.np-dropdown-menu-lg {
|
|
164
|
-
|
|
164
|
+
inline-size: 420px;
|
|
165
165
|
}
|
|
166
166
|
.np-dropdown-menu .np-dropdown-item--focused {
|
|
167
167
|
background-color: rgba(134,167,189,0.10196);
|
|
@@ -178,8 +178,10 @@
|
|
|
178
178
|
text-decoration: none;
|
|
179
179
|
white-space: nowrap;
|
|
180
180
|
display: block;
|
|
181
|
-
padding: 12px
|
|
182
|
-
padding:
|
|
181
|
+
padding-block: 12px;
|
|
182
|
+
padding-inline: 16px;
|
|
183
|
+
padding-block: var(--size-12);
|
|
184
|
+
padding-inline: var(--size-16);
|
|
183
185
|
clear: both;
|
|
184
186
|
border-radius: 10px;
|
|
185
187
|
border-radius: var(--radius-small);
|
|
@@ -197,24 +199,24 @@
|
|
|
197
199
|
border-radius: var(--radius-small);
|
|
198
200
|
}
|
|
199
201
|
.np-dropdown-menu > li:first-child > a {
|
|
200
|
-
border-
|
|
201
|
-
border-
|
|
202
|
+
border-start-end-radius: 3px;
|
|
203
|
+
border-start-start-radius: 3px;
|
|
202
204
|
}
|
|
203
205
|
.np-theme-personal .np-dropdown-menu > li:first-child > a {
|
|
204
|
-
border-
|
|
205
|
-
border-
|
|
206
|
-
border-
|
|
207
|
-
border-
|
|
206
|
+
border-start-end-radius: 10px;
|
|
207
|
+
border-start-end-radius: var(--radius-small);
|
|
208
|
+
border-start-start-radius: 10px;
|
|
209
|
+
border-start-start-radius: var(--radius-small);
|
|
208
210
|
}
|
|
209
211
|
.np-dropdown-menu > li:last-child > a {
|
|
210
|
-
border-
|
|
211
|
-
border-
|
|
212
|
+
border-end-end-radius: 3px;
|
|
213
|
+
border-end-start-radius: 3px;
|
|
212
214
|
}
|
|
213
215
|
.np-theme-personal .np-dropdown-menu > li:last-child > a {
|
|
214
|
-
border-
|
|
215
|
-
border-
|
|
216
|
-
border-
|
|
217
|
-
border-
|
|
216
|
+
border-end-end-radius: 10px;
|
|
217
|
+
border-end-end-radius: var(--radius-small);
|
|
218
|
+
border-end-start-radius: 10px;
|
|
219
|
+
border-end-start-radius: var(--radius-small);
|
|
218
220
|
}
|
|
219
221
|
.np-dropdown-menu > li:not(.active):not(.selected):not(:has(input)) > a:not([disabled]):not(.disabled):hover,
|
|
220
222
|
.np-dropdown-menu > li:not(.active):not(.selected):not(:has(input)) > a:not([disabled]):not(.disabled):focus {
|
|
@@ -249,15 +251,17 @@
|
|
|
249
251
|
border: 0;
|
|
250
252
|
}
|
|
251
253
|
.np-dropdown-menu .np-separator {
|
|
252
|
-
|
|
254
|
+
block-size: 1px;
|
|
253
255
|
margin: 0;
|
|
254
256
|
overflow: hidden;
|
|
255
257
|
background-color: rgba(134,167,189,0.10196);
|
|
256
258
|
background-color: var(--color-background-neutral);
|
|
257
259
|
}
|
|
258
260
|
.np-dropdown-menu .np-dropdown-header {
|
|
259
|
-
padding: 8px
|
|
260
|
-
padding:
|
|
261
|
+
padding-block: 8px;
|
|
262
|
+
padding-inline: 16px;
|
|
263
|
+
padding-block: var(--size-8);
|
|
264
|
+
padding-inline: var(--size-16);
|
|
261
265
|
color: #5d7079;
|
|
262
266
|
color: var(--color-content-secondary);
|
|
263
267
|
display: block;
|
|
@@ -273,8 +277,8 @@
|
|
|
273
277
|
.np-dropdown-menu .tw-icon,
|
|
274
278
|
.np-select img,
|
|
275
279
|
.np-dropdown-menu img {
|
|
276
|
-
margin-
|
|
277
|
-
margin-
|
|
280
|
+
margin-inline-end: 8px;
|
|
281
|
+
margin-inline-end: var(--size-8);
|
|
278
282
|
display: inline-block;
|
|
279
283
|
vertical-align: middle;
|
|
280
284
|
}
|
|
@@ -282,10 +286,10 @@
|
|
|
282
286
|
[dir="rtl"] .np-dropdown-menu .tw-icon,
|
|
283
287
|
[dir="rtl"] .np-select img,
|
|
284
288
|
[dir="rtl"] .np-dropdown-menu img {
|
|
285
|
-
margin-
|
|
286
|
-
margin-
|
|
287
|
-
margin-
|
|
288
|
-
margin-
|
|
289
|
+
margin-inline-start: 8px;
|
|
290
|
+
margin-inline-start: var(--size-8);
|
|
291
|
+
margin-inline-end: 0;
|
|
292
|
+
margin-inline-end: initial;
|
|
289
293
|
}
|
|
290
294
|
.np-select .np-text-body-default,
|
|
291
295
|
.np-dropdown-menu .np-text-body-default {
|
|
@@ -294,7 +298,7 @@
|
|
|
294
298
|
}
|
|
295
299
|
.np-select .tw-icon-search,
|
|
296
300
|
.np-dropdown-menu .tw-icon-search {
|
|
297
|
-
margin-
|
|
301
|
+
margin-inline-end: 0;
|
|
298
302
|
}
|
|
299
303
|
.np-theme-personal {
|
|
300
304
|
/* stylelint-disable-next-line no-duplicate-selectors */
|