@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
|
@@ -3,17 +3,20 @@
|
|
|
3
3
|
}
|
|
4
4
|
.np-btn.np-btn-block > span.btn-loader {
|
|
5
5
|
position: absolute;
|
|
6
|
-
|
|
6
|
+
left: 24px;
|
|
7
|
+
left: var(--size-24);
|
|
7
8
|
}
|
|
8
9
|
[dir="rtl"] .np-btn.np-btn-block > span.btn-loader {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
right: 24px;
|
|
11
|
+
right: var(--size-24);
|
|
12
|
+
left: auto;
|
|
13
|
+
left: initial;
|
|
11
14
|
}
|
|
12
15
|
.np-btn.np-btn-xs > span.btn-loader {
|
|
13
16
|
background-size: 16px 16px;
|
|
14
17
|
}
|
|
15
18
|
.np-btn.np-btn-xs.btn-block > span.btn-loader {
|
|
16
|
-
|
|
19
|
+
top: 0;
|
|
17
20
|
}
|
|
18
21
|
.np-btn.disabled[class] {
|
|
19
22
|
pointer-events: auto;
|
package/src/card/Card.css
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
border: 0;
|
|
9
9
|
}
|
|
10
10
|
.np-card--expanded {
|
|
11
|
+
background-color: #ffffff;
|
|
11
12
|
background-color: var(--color-background-elevated);
|
|
13
|
+
box-shadow: 0 1px 10px rgba(0,0,0,0.10196);
|
|
12
14
|
box-shadow: 0 1px 10px var(--color-border-neutral);
|
|
13
15
|
}
|
|
14
16
|
.np-theme-personal .np-card--expanded {
|
|
@@ -22,25 +24,25 @@
|
|
|
22
24
|
.np-card--inactive .decision {
|
|
23
25
|
cursor: default;
|
|
24
26
|
}
|
|
25
|
-
@media (
|
|
27
|
+
@media (min-width: 480px) {
|
|
26
28
|
.np-card--has-icon .np-card__content {
|
|
27
|
-
padding
|
|
28
|
-
padding
|
|
29
|
+
padding: 24px 72px;
|
|
30
|
+
padding: var(--size-24) var(--size-72);
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
|
-
@media (
|
|
33
|
+
@media (min-width: 480px) {
|
|
32
34
|
.np-card--has-icon .np-card__divider--expanded {
|
|
33
|
-
margin
|
|
34
|
-
margin
|
|
35
|
+
margin: 0 72px;
|
|
36
|
+
margin: 0 var(--size-72);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
.np-card__button {
|
|
38
40
|
background-color: transparent;
|
|
39
|
-
text-align:
|
|
40
|
-
|
|
41
|
+
text-align: left;
|
|
42
|
+
width: 100%;
|
|
41
43
|
}
|
|
42
44
|
[dir="rtl"] .np-card__button {
|
|
43
|
-
text-align:
|
|
45
|
+
text-align: right;
|
|
44
46
|
}
|
|
45
47
|
.np-theme-personal .np-card__button:focus {
|
|
46
48
|
outline: none;
|
|
@@ -50,24 +52,27 @@
|
|
|
50
52
|
outline-offset: var(--ring-outline-offset);
|
|
51
53
|
}
|
|
52
54
|
.np-card__content {
|
|
53
|
-
padding
|
|
54
|
-
padding
|
|
55
|
+
padding: 24px 16px;
|
|
56
|
+
padding: var(--size-24) var(--size-16);
|
|
55
57
|
}
|
|
56
58
|
.np-theme-personal .np-card__content {
|
|
57
|
-
padding
|
|
58
|
-
padding
|
|
59
|
+
padding: 16px 16px 24px;
|
|
60
|
+
padding: var(--size-16) var(--size-16) var(--size-24);
|
|
59
61
|
}
|
|
60
62
|
.np-card__divider {
|
|
61
63
|
transition: margin 0.35s ease;
|
|
62
64
|
}
|
|
63
65
|
.np-card__divider--expanded {
|
|
66
|
+
background-color: rgba(0,0,0,0.10196);
|
|
64
67
|
background-color: var(--color-border-neutral);
|
|
65
|
-
|
|
66
|
-
margin
|
|
67
|
-
margin
|
|
68
|
+
height: 1px;
|
|
69
|
+
margin: 0 16px;
|
|
70
|
+
margin: 0 var(--size-16);
|
|
68
71
|
}
|
|
69
72
|
.np-theme-personal .np-card {
|
|
73
|
+
overflow: visible;
|
|
70
74
|
overflow: initial;
|
|
75
|
+
border-radius: 16px;
|
|
71
76
|
border-radius: var(--radius-medium);
|
|
72
77
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
73
78
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
@@ -77,6 +82,7 @@
|
|
|
77
82
|
margin: 0;
|
|
78
83
|
}
|
|
79
84
|
.np-theme-personal .np-card__button {
|
|
85
|
+
border-radius: 16px;
|
|
80
86
|
border-radius: var(--radius-medium);
|
|
81
87
|
--ring-outline-width: 3px;
|
|
82
88
|
--ring-outline-offset: calc(-1 * var(--ring-outline-width));
|
|
@@ -89,8 +95,6 @@
|
|
|
89
95
|
outline-offset: var(--ring-outline-offset);
|
|
90
96
|
}
|
|
91
97
|
.np-theme-personal .np-card--expanded .np-card__button {
|
|
92
|
-
border-
|
|
93
|
-
border-
|
|
94
|
-
border-end-end-radius: 0;
|
|
95
|
-
border-end-start-radius: 0;
|
|
98
|
+
border-radius: 16px 16px 0 0;
|
|
99
|
+
border-radius: var(--radius-medium) var(--radius-medium) 0 0;
|
|
96
100
|
}
|
package/src/card/Card.story.tsx
CHANGED
|
@@ -8,13 +8,14 @@ import Card from '.';
|
|
|
8
8
|
type Story = StoryObj<typeof Card>;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* ⚠️ This component is **deprecated** and superseded by the [new ListItem component](?path=/docs/content-listitem--docs).
|
|
12
12
|
*
|
|
13
13
|
* @see https://transferwise.atlassian.net/wiki/spaces/DS/pages/2387314550/Instructions+for+killing+expanding+cards+on+web+design+pattern
|
|
14
14
|
*/
|
|
15
15
|
const meta: Meta<typeof Card> = {
|
|
16
16
|
component: Card,
|
|
17
|
-
title: 'Layouts/Card
|
|
17
|
+
title: 'Layouts/Card',
|
|
18
|
+
tags: ['deprecated'],
|
|
18
19
|
args: {
|
|
19
20
|
title: 'A card',
|
|
20
21
|
details: 'Some details about this card',
|
package/src/card/Card.tsx
CHANGED
|
@@ -21,7 +21,7 @@ export interface CardProps {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* @deprecated
|
|
24
|
+
* @deprecated Use [new ListItem component](?path=/docs/content-listitem--docs) instead.
|
|
25
25
|
* @see https://transferwise.atlassian.net/wiki/spaces/DS/pages/2387314550/Instructions+for+killing+expanding+cards+on+web+design+pattern
|
|
26
26
|
*/
|
|
27
27
|
const Card = forwardRef(function Card(
|
|
@@ -8,11 +8,14 @@
|
|
|
8
8
|
overflow-y: hidden;
|
|
9
9
|
scroll-snap-type: x mandatory;
|
|
10
10
|
scroll-behavior: smooth;
|
|
11
|
+
gap: 16px;
|
|
11
12
|
gap: var(--size-16);
|
|
13
|
+
padding: 8px;
|
|
12
14
|
padding: var(--size-8);
|
|
13
15
|
}
|
|
14
|
-
@media (
|
|
16
|
+
@media (max-width: 767px) {
|
|
15
17
|
.carousel {
|
|
18
|
+
gap: 8px;
|
|
16
19
|
gap: var(--size-8);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -20,13 +23,16 @@
|
|
|
20
23
|
display: flex;
|
|
21
24
|
align-items: center;
|
|
22
25
|
overflow: hidden;
|
|
23
|
-
min-
|
|
24
|
-
|
|
26
|
+
min-height: 32px;
|
|
27
|
+
min-height: var(--size-32);
|
|
28
|
+
padding-bottom: 16px;
|
|
29
|
+
padding-bottom: var(--size-16);
|
|
25
30
|
}
|
|
26
31
|
.carousel__card,
|
|
27
32
|
.carousel__card:hover,
|
|
28
33
|
.carousel__card:focus,
|
|
29
34
|
.carousel__card:focus-within {
|
|
35
|
+
-webkit-text-decoration: none;
|
|
30
36
|
text-decoration: none;
|
|
31
37
|
transition: none !important;
|
|
32
38
|
box-shadow: none !important;
|
|
@@ -34,43 +40,45 @@
|
|
|
34
40
|
.carousel__card {
|
|
35
41
|
display: block;
|
|
36
42
|
position: relative;
|
|
37
|
-
text-align:
|
|
43
|
+
text-align: left;
|
|
38
44
|
border: none;
|
|
39
45
|
overflow: hidden;
|
|
46
|
+
background: rgba(134,167,189,0.10196);
|
|
40
47
|
background: var(--color-background-neutral);
|
|
48
|
+
border-radius: 32px;
|
|
41
49
|
border-radius: var(--size-32);
|
|
42
50
|
scroll-snap-align: center;
|
|
43
51
|
-webkit-scroll-snap-align: center;
|
|
44
52
|
transition: all 0.4s !important;
|
|
45
53
|
}
|
|
46
|
-
@media (
|
|
54
|
+
@media (min-width: 1200px) {
|
|
47
55
|
.carousel__card {
|
|
48
|
-
min-
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
min-width: 280px;
|
|
57
|
+
width: 280px;
|
|
58
|
+
height: 280px;
|
|
51
59
|
}
|
|
52
60
|
}
|
|
53
|
-
@media (
|
|
61
|
+
@media (min-width: 768px) {
|
|
54
62
|
.carousel-wrapper {
|
|
55
63
|
overflow: visible;
|
|
56
64
|
}
|
|
57
65
|
.carousel {
|
|
58
|
-
margin
|
|
59
|
-
margin
|
|
66
|
+
margin: 0 calc(-1 * 8px);
|
|
67
|
+
margin: 0 calc(-1 * var(--size-8));
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
|
-
@media (
|
|
70
|
+
@media (max-width: 1199px) {
|
|
63
71
|
.carousel__card {
|
|
64
|
-
min-
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
min-width: 242px;
|
|
73
|
+
width: 242px;
|
|
74
|
+
height: 242px;
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
|
-
@media (
|
|
77
|
+
@media (max-width: 767px) {
|
|
70
78
|
.carousel__card {
|
|
71
|
-
min-
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
min-width: 336px;
|
|
80
|
+
width: 336px;
|
|
81
|
+
height: 336px;
|
|
74
82
|
scroll-snap-stop: always;
|
|
75
83
|
}
|
|
76
84
|
}
|
|
@@ -86,30 +94,41 @@
|
|
|
86
94
|
background-color: var(--color-background-neutral-hover);
|
|
87
95
|
}
|
|
88
96
|
.carousel__card-content {
|
|
89
|
-
|
|
97
|
+
height: 100%;
|
|
90
98
|
font-weight: normal;
|
|
99
|
+
padding: 24px;
|
|
91
100
|
padding: var(--size-24);
|
|
92
101
|
}
|
|
93
102
|
.carousel__indicators {
|
|
94
103
|
display: flex;
|
|
95
104
|
justify-content: center;
|
|
96
|
-
padding-
|
|
105
|
+
padding-top: 8px;
|
|
106
|
+
padding-top: var(--size-8);
|
|
107
|
+
gap: 8px;
|
|
97
108
|
gap: var(--size-8);
|
|
98
109
|
}
|
|
99
110
|
.carousel__indicator {
|
|
100
|
-
|
|
101
|
-
|
|
111
|
+
width: 12px;
|
|
112
|
+
width: var(--size-12);
|
|
113
|
+
height: 12px;
|
|
114
|
+
height: var(--size-12);
|
|
115
|
+
border-radius: 8px;
|
|
102
116
|
border-radius: var(--size-8);
|
|
117
|
+
background: #c9cbce;
|
|
103
118
|
background: var(--color-interactive-secondary);
|
|
104
119
|
border: none;
|
|
105
|
-
appearance: none;
|
|
120
|
+
-webkit-appearance: none;
|
|
121
|
+
-moz-appearance: none;
|
|
122
|
+
appearance: none;
|
|
106
123
|
transition: all 0.1s;
|
|
107
124
|
}
|
|
108
125
|
.carousel__indicator:hover {
|
|
109
|
-
|
|
126
|
+
width: 16px;
|
|
127
|
+
width: var(--size-16);
|
|
110
128
|
}
|
|
111
129
|
.carousel__indicator--selected,
|
|
112
130
|
.carousel__indicator--selected:hover {
|
|
113
131
|
background: var(--color-interactive-primary);
|
|
114
|
-
|
|
132
|
+
width: 24px;
|
|
133
|
+
width: var(--size-24);
|
|
115
134
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
.np-checkbox-button input[type="checkbox"] {
|
|
2
2
|
position: absolute;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
width: 24px;
|
|
4
|
+
width: var(--size-24);
|
|
5
|
+
height: 24px;
|
|
6
|
+
height: var(--size-24);
|
|
5
7
|
opacity: 0;
|
|
6
8
|
}
|
|
7
9
|
.np-checkbox-button input[type="checkbox"]:not(:disabled) {
|
|
@@ -12,13 +14,14 @@
|
|
|
12
14
|
pointer-events: none;
|
|
13
15
|
}
|
|
14
16
|
.checkbox .np-checkbox-button input[type="checkbox"] {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
17
19
|
margin: 0;
|
|
18
20
|
}
|
|
19
21
|
[dir="rtl"] .checkbox .np-checkbox-button input[type="checkbox"] {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
right: 0;
|
|
23
|
+
left: auto;
|
|
24
|
+
left: initial;
|
|
22
25
|
}
|
|
23
26
|
.np-tw-checkbox-indeterminate {
|
|
24
27
|
position: relative;
|
|
@@ -26,13 +29,15 @@
|
|
|
26
29
|
.np-tw-checkbox-indeterminate::after {
|
|
27
30
|
content: "";
|
|
28
31
|
position: absolute;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
width: 12px;
|
|
33
|
+
height: 2px;
|
|
34
|
+
top: 55%;
|
|
35
|
+
left: 50%;
|
|
36
|
+
background: #ffffff;
|
|
33
37
|
background: var(--color-background-screen);
|
|
34
38
|
transform: translate(-50%, -50%);
|
|
35
39
|
}
|
|
36
40
|
.np-tw-checkbox-indeterminate .has-error::after {
|
|
41
|
+
background-color: #e74848;
|
|
37
42
|
background-color: var(--color-interactive-negative);
|
|
38
43
|
}
|
package/src/chips/Chip.css
CHANGED
|
@@ -1,56 +1,70 @@
|
|
|
1
1
|
.np-chip {
|
|
2
2
|
background-color: transparent;
|
|
3
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
3
4
|
border: 1px solid var(--color-border-neutral);
|
|
5
|
+
border-radius: 16px;
|
|
4
6
|
border-radius: var(--size-16);
|
|
7
|
+
color: #5d7079;
|
|
5
8
|
color: var(--color-content-secondary);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
height: 32px;
|
|
10
|
+
height: var(--size-32);
|
|
11
|
+
margin-right: 8px;
|
|
12
|
+
margin-right: var(--size-8);
|
|
13
|
+
padding: 0 12px;
|
|
14
|
+
padding: 0 var(--size-12);
|
|
10
15
|
transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
|
|
11
16
|
}
|
|
12
|
-
@media (
|
|
17
|
+
@media (max-width: 320px) {
|
|
13
18
|
.np-chip {
|
|
14
|
-
|
|
19
|
+
height: 40px;
|
|
20
|
+
height: var(--size-40);
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
.np-chip:hover {
|
|
18
24
|
cursor: pointer;
|
|
19
25
|
}
|
|
20
26
|
.np-chip .np-chip-label {
|
|
21
|
-
padding-
|
|
27
|
+
padding-top: 2px;
|
|
22
28
|
}
|
|
23
29
|
.np-chip .np-close-button {
|
|
24
30
|
pointer-events: auto;
|
|
25
31
|
}
|
|
26
32
|
.np-chip:last-child {
|
|
27
|
-
margin-
|
|
33
|
+
margin-right: 0;
|
|
28
34
|
}
|
|
29
35
|
[dir="rtl"] .np-chip:last-child {
|
|
30
|
-
margin-
|
|
31
|
-
margin-
|
|
36
|
+
margin-left: 0;
|
|
37
|
+
margin-right: 0;
|
|
38
|
+
margin-right: initial;
|
|
32
39
|
}
|
|
33
40
|
.np-chip:active {
|
|
41
|
+
background-color: #0081ba;
|
|
34
42
|
background-color: var(--color-interactive-accent-active);
|
|
43
|
+
border-color: #0081ba;
|
|
35
44
|
border-color: var(--color-interactive-accent-active);
|
|
36
45
|
color: #fff;
|
|
37
46
|
}
|
|
38
47
|
.np-chip--selected {
|
|
39
48
|
color: #fff;
|
|
49
|
+
background-color: #00a2dd;
|
|
40
50
|
background-color: var(--color-interactive-accent);
|
|
51
|
+
border-color: #00a2dd;
|
|
41
52
|
border-color: var(--color-interactive-accent);
|
|
42
53
|
pointer-events: none;
|
|
43
54
|
}
|
|
44
55
|
.np-chip--selected:hover,
|
|
45
56
|
.np-chip--selected:active {
|
|
46
57
|
color: #fff;
|
|
58
|
+
background-color: #008fc9;
|
|
47
59
|
background-color: var(--color-interactive-accent-hover);
|
|
60
|
+
border-color: #008fc9;
|
|
48
61
|
border-color: var(--color-interactive-accent-hover);
|
|
49
62
|
}
|
|
50
63
|
.np-chip--selected .np-close-button {
|
|
51
64
|
color: white;
|
|
52
65
|
}
|
|
53
66
|
.np-chip.has-error {
|
|
67
|
+
background: #e74848;
|
|
54
68
|
background: var(--color-interactive-negative);
|
|
55
69
|
color: #fff;
|
|
56
70
|
}
|
|
@@ -61,79 +75,87 @@
|
|
|
61
75
|
background: var(--color-sentiment-negative);
|
|
62
76
|
}
|
|
63
77
|
.np-theme-personal .np-chip.has-error,
|
|
64
|
-
.np-theme-personal .np-chip.has-error:not(.disabled
|
|
65
|
-
.np-theme-personal .np-chip.has-error:not(.disabled
|
|
78
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):hover,
|
|
79
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):active {
|
|
66
80
|
color: var(--color-contrast);
|
|
67
81
|
}
|
|
68
|
-
.np-theme-personal .np-chip.has-error:not(.disabled
|
|
82
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):hover {
|
|
69
83
|
background: var(--color-sentiment-negative-hover);
|
|
70
84
|
border-color: var(--color-sentiment-negative-hover) !important;
|
|
71
85
|
}
|
|
72
|
-
.np-theme-personal .np-chip.has-error:not(.disabled
|
|
86
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):active {
|
|
73
87
|
background: var(--color-sentiment-negative-active);
|
|
74
88
|
border-color: var(--color-sentiment-negative-active) !important;
|
|
75
89
|
}
|
|
76
90
|
.np-theme-personal .np-chip {
|
|
91
|
+
font-weight: 600;
|
|
77
92
|
font-weight: var(--font-weight-semi-bold);
|
|
78
93
|
color: var(--color-interactive-primary);
|
|
79
|
-
padding
|
|
80
|
-
padding
|
|
94
|
+
padding: 0 16px;
|
|
95
|
+
padding: 0 var(--size-16);
|
|
96
|
+
border-color: #c9cbce;
|
|
81
97
|
border-color: var(--color-interactive-secondary);
|
|
82
98
|
}
|
|
83
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
99
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):hover {
|
|
84
100
|
color: var(--color-interactive-primary-hover);
|
|
85
101
|
background-color: var(--color-background-screen-hover);
|
|
102
|
+
border-color: #b5b7ba;
|
|
86
103
|
border-color: var(--color-interactive-secondary-hover);
|
|
87
104
|
}
|
|
88
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
105
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):active {
|
|
89
106
|
color: var(--color-interactive-primary-active);
|
|
90
107
|
background-color: var(--color-background-screen-active);
|
|
108
|
+
border-color: #a7a9ab;
|
|
91
109
|
border-color: var(--color-interactive-secondary-active);
|
|
92
110
|
}
|
|
93
111
|
.np-theme-personal .np-chip .np-close-button {
|
|
94
|
-
margin-
|
|
112
|
+
margin-right: calc(8px * -1);
|
|
113
|
+
margin-right: calc(var(--size-8) * -1);
|
|
95
114
|
border-radius: inherit;
|
|
96
115
|
}
|
|
97
116
|
.np-theme-personal .np-chip .np-close-button,
|
|
98
117
|
.np-theme-personal .np-chip .np-close-button:hover,
|
|
99
|
-
.np-theme-personal .np-chip .np-close-button:not(.disabled
|
|
100
|
-
.np-theme-personal .np-chip .np-close-button:not(.disabled
|
|
118
|
+
.np-theme-personal .np-chip .np-close-button:not(.disabled):not(:disabled):hover,
|
|
119
|
+
.np-theme-personal .np-chip .np-close-button:not(.disabled):not(:disabled):active {
|
|
101
120
|
color: inherit !important;
|
|
102
121
|
background-color: transparent !important;
|
|
103
122
|
}
|
|
104
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
105
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
123
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible,
|
|
124
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) {
|
|
106
125
|
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
107
126
|
outline-offset: var(--ring-outline-offset);
|
|
108
127
|
}
|
|
109
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
110
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
128
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible .np-close-button,
|
|
129
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) .np-close-button {
|
|
111
130
|
background: transparent;
|
|
112
131
|
outline: none;
|
|
113
132
|
}
|
|
114
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
115
|
-
.np-theme-personal .np-chip:not(.disabled
|
|
133
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible .np-close-button:hover,
|
|
134
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) .np-close-button:hover {
|
|
116
135
|
color: inherit !important;
|
|
117
136
|
}
|
|
118
137
|
.np-theme-personal .np-chip.np-chip--removable {
|
|
119
138
|
position: relative;
|
|
120
139
|
}
|
|
121
140
|
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
|
|
122
|
-
padding-
|
|
141
|
+
padding-right: 24px;
|
|
142
|
+
padding-right: var(--size-24);
|
|
123
143
|
}
|
|
124
|
-
@media (
|
|
144
|
+
@media (max-width: 320px) {
|
|
125
145
|
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
|
|
126
|
-
padding-
|
|
146
|
+
padding-right: 48px;
|
|
147
|
+
padding-right: var(--size-48);
|
|
127
148
|
}
|
|
128
149
|
}
|
|
129
150
|
.np-theme-personal .np-chip.np-chip--removable .np-close-button {
|
|
130
151
|
justify-content: flex-end;
|
|
131
|
-
|
|
132
|
-
|
|
152
|
+
top: 0;
|
|
153
|
+
left: 0;
|
|
133
154
|
position: absolute;
|
|
134
|
-
padding-
|
|
135
|
-
|
|
136
|
-
|
|
155
|
+
padding-right: 8px;
|
|
156
|
+
padding-right: var(--size-8);
|
|
157
|
+
height: 100%;
|
|
158
|
+
width: 100%;
|
|
137
159
|
}
|
|
138
160
|
.np-theme-personal .np-chip:has(.disabled, :disabled):focus-visible {
|
|
139
161
|
outline: none;
|
|
@@ -144,14 +166,14 @@
|
|
|
144
166
|
background-color: var(--color-interactive-primary);
|
|
145
167
|
border-color: var(--color-interactive-primary);
|
|
146
168
|
}
|
|
147
|
-
.np-theme-personal .np-chip--selected:not(.disabled
|
|
148
|
-
.np-theme-personal .np-chip--valid:not(.disabled
|
|
169
|
+
.np-theme-personal .np-chip--selected:not(.disabled):not(:disabled):hover,
|
|
170
|
+
.np-theme-personal .np-chip--valid:not(.disabled):not(:disabled):hover {
|
|
149
171
|
color: var(--color-interactive-contrast-hover);
|
|
150
172
|
background-color: var(--color-interactive-primary-hover);
|
|
151
173
|
border-color: var(--color-interactive-primary-hover);
|
|
152
174
|
}
|
|
153
|
-
.np-theme-personal .np-chip--selected:not(.disabled
|
|
154
|
-
.np-theme-personal .np-chip--valid:not(.disabled
|
|
175
|
+
.np-theme-personal .np-chip--selected:not(.disabled):not(:disabled):active,
|
|
176
|
+
.np-theme-personal .np-chip--valid:not(.disabled):not(:disabled):active {
|
|
155
177
|
color: var(--color-interactive-contrast-active);
|
|
156
178
|
background-color: var(--color-interactive-primary-active);
|
|
157
179
|
border-color: var(--color-interactive-primary-active);
|
|
@@ -9,24 +9,24 @@
|
|
|
9
9
|
text-align: center;
|
|
10
10
|
color: var(--color-interactive-primary);
|
|
11
11
|
}
|
|
12
|
-
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled
|
|
13
|
-
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled
|
|
12
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
13
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
14
14
|
color: var(--color-interactive-primary-hover);
|
|
15
15
|
}
|
|
16
|
-
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled
|
|
17
|
-
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled
|
|
16
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
17
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
18
18
|
color: var(--color-interactive-primary-active);
|
|
19
19
|
}
|
|
20
20
|
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
21
21
|
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
22
22
|
color: var(--color-sentiment-negative-primary);
|
|
23
23
|
}
|
|
24
|
-
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled
|
|
25
|
-
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled
|
|
24
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
25
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
26
26
|
color: var(--color-sentiment-negative-primary-hover);
|
|
27
27
|
}
|
|
28
|
-
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled
|
|
29
|
-
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled
|
|
28
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
29
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
30
30
|
color: var(--color-sentiment-negative-primary-active);
|
|
31
31
|
}
|
|
32
32
|
.np-circular-btn-disabled {
|