@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,32 +3,36 @@
|
|
|
3
3
|
}
|
|
4
4
|
.np-icon-button-tertiary-default {
|
|
5
5
|
color: var(--color-interactive-primary);
|
|
6
|
+
background-color: rgba(134,167,189,0.10196);
|
|
6
7
|
background-color: var(--color-background-neutral);
|
|
7
8
|
}
|
|
8
|
-
.np-icon-button-tertiary-default:not(.disabled
|
|
9
|
+
.np-icon-button-tertiary-default:not(.disabled):not(:disabled):hover {
|
|
9
10
|
background-color: var(--color-background-neutral-hover);
|
|
10
11
|
}
|
|
11
|
-
.np-icon-button-tertiary-default:not(.disabled
|
|
12
|
+
.np-icon-button-tertiary-default:not(.disabled):not(:disabled):active {
|
|
12
13
|
background-color: var(--color-background-neutral-active);
|
|
13
14
|
}
|
|
14
15
|
.np-icon-button-primary-default {
|
|
15
16
|
color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
17
|
+
background-color: #00a2dd;
|
|
16
18
|
background-color: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
17
19
|
}
|
|
18
|
-
.np-icon-button-primary-default:not(.disabled
|
|
20
|
+
.np-icon-button-primary-default:not(.disabled):not(:disabled):hover {
|
|
21
|
+
background-color: #008fc9;
|
|
19
22
|
background-color: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
|
|
20
23
|
}
|
|
21
|
-
.np-icon-button-primary-default:not(.disabled
|
|
24
|
+
.np-icon-button-primary-default:not(.disabled):not(:disabled):active {
|
|
25
|
+
background-color: #0081ba;
|
|
22
26
|
background-color: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
|
|
23
27
|
}
|
|
24
28
|
.np-icon-button-primary-negative {
|
|
25
29
|
color: var(--color-contrast-overlay);
|
|
26
30
|
background-color: var(--color-sentiment-negative-primary);
|
|
27
31
|
}
|
|
28
|
-
.np-icon-button-primary-negative:not(.disabled
|
|
32
|
+
.np-icon-button-primary-negative:not(.disabled):not(:disabled):hover {
|
|
29
33
|
background-color: var(--color-sentiment-negative-primary-hover);
|
|
30
34
|
}
|
|
31
|
-
.np-icon-button-primary-negative:not(.disabled
|
|
35
|
+
.np-icon-button-primary-negative:not(.disabled):not(:disabled):active {
|
|
32
36
|
background-color: var(--color-sentiment-negative-primary-active);
|
|
33
37
|
}
|
|
34
38
|
.np-theme-personal--bright-green .np-icon-button-primary-negative {
|
|
@@ -36,23 +40,24 @@
|
|
|
36
40
|
}
|
|
37
41
|
.np-icon-button-minimal-default {
|
|
38
42
|
color: var(--color-interactive-primary);
|
|
43
|
+
background-color: #ffffff;
|
|
39
44
|
background-color: var(--color-background-screen);
|
|
40
45
|
background-color: transparent;
|
|
41
46
|
}
|
|
42
|
-
.np-icon-button-minimal-default:not(.disabled
|
|
47
|
+
.np-icon-button-minimal-default:not(.disabled):not(:disabled):hover {
|
|
43
48
|
background-color: var(--color-background-screen-hover);
|
|
44
49
|
}
|
|
45
|
-
.np-icon-button-minimal-default:not(.disabled
|
|
50
|
+
.np-icon-button-minimal-default:not(.disabled):not(:disabled):active {
|
|
46
51
|
background-color: var(--color-background-screen-active);
|
|
47
52
|
}
|
|
48
53
|
.np-icon-button-secondary-default {
|
|
49
54
|
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
50
55
|
background-color: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
|
|
51
56
|
}
|
|
52
|
-
.np-icon-button-secondary-default:not(.disabled
|
|
57
|
+
.np-icon-button-secondary-default:not(.disabled):not(:disabled):hover {
|
|
53
58
|
background-color: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
|
|
54
59
|
}
|
|
55
|
-
.np-icon-button-secondary-default:not(.disabled
|
|
60
|
+
.np-icon-button-secondary-default:not(.disabled):not(:disabled):active {
|
|
56
61
|
background-color: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
|
|
57
62
|
}
|
|
58
63
|
.np-theme-personal--bright-green .np-icon-button-secondary-default,
|
|
@@ -63,10 +68,10 @@
|
|
|
63
68
|
color: var(--color-sentiment-negative-primary);
|
|
64
69
|
background-color: var(--color-sentiment-negative-secondary);
|
|
65
70
|
}
|
|
66
|
-
.np-icon-button-secondary-negative:not(.disabled
|
|
71
|
+
.np-icon-button-secondary-negative:not(.disabled):not(:disabled):hover {
|
|
67
72
|
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
68
73
|
}
|
|
69
|
-
.np-icon-button-secondary-negative:not(.disabled
|
|
74
|
+
.np-icon-button-secondary-negative:not(.disabled):not(:disabled):active {
|
|
70
75
|
background-color: var(--color-sentiment-negative-secondary-active);
|
|
71
76
|
}
|
|
72
77
|
.np-theme-personal--bright-green .np-icon-button-secondary-negative {
|
package/src/image/Image.css
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
.tw-image {
|
|
2
|
-
max-
|
|
3
|
-
|
|
4
|
-
min-
|
|
2
|
+
max-width: none;
|
|
3
|
+
width: auto;
|
|
4
|
+
min-width: -moz-min-content;
|
|
5
|
+
min-width: min-content;
|
|
5
6
|
}
|
|
6
7
|
.tw-image__shrink {
|
|
7
|
-
max-
|
|
8
|
-
min-
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
min-width: auto;
|
|
9
10
|
}
|
|
10
11
|
.tw-image__stretch {
|
|
11
|
-
|
|
12
|
+
width: 100%;
|
|
12
13
|
}
|
package/src/info/Info.css
CHANGED
package/src/inputs/Input.css
CHANGED
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
--ring-color: var(--color-interactive-secondary);
|
|
4
4
|
border: none;
|
|
5
5
|
background-color: transparent;
|
|
6
|
-
min-
|
|
6
|
+
min-height: 0;
|
|
7
7
|
/* TODO: Remove this override once `.form-control` isn’t used anymore */
|
|
8
|
-
padding-
|
|
9
|
-
padding-
|
|
8
|
+
padding-left: 16px;
|
|
9
|
+
padding-left: var(--size-16);
|
|
10
|
+
padding-right: 16px;
|
|
11
|
+
padding-right: var(--size-16);
|
|
12
|
+
color: #37517e;
|
|
10
13
|
color: var(--color-content-primary);
|
|
14
|
+
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
11
15
|
box-shadow: inset 0 0 0 var(--ring-width) var(--ring-color);
|
|
12
16
|
transition-property: color, opacity, box-shadow;
|
|
13
17
|
transition-timing-function: ease-in-out;
|
|
@@ -16,7 +20,8 @@
|
|
|
16
20
|
}
|
|
17
21
|
.disabled .np-form-control,
|
|
18
22
|
:disabled .np-form-control {
|
|
19
|
-
opacity:
|
|
23
|
+
opacity: 1;
|
|
24
|
+
opacity: initial;
|
|
20
25
|
}
|
|
21
26
|
.np-form-control:focus-visible {
|
|
22
27
|
outline: none;
|
|
@@ -34,66 +39,84 @@
|
|
|
34
39
|
--ring-color: var(--color-interactive-primary);
|
|
35
40
|
}
|
|
36
41
|
.np-form-control--size-auto {
|
|
42
|
+
font-weight: 400;
|
|
37
43
|
font-weight: var(--font-weight-regular);
|
|
44
|
+
font-size: 1rem;
|
|
38
45
|
font-size: var(--font-size-16);
|
|
39
46
|
line-height: 150%;
|
|
40
47
|
letter-spacing: -0.011em;
|
|
41
|
-
padding-
|
|
42
|
-
padding-
|
|
48
|
+
padding-top: 12px;
|
|
49
|
+
padding-top: var(--size-12);
|
|
50
|
+
padding-bottom: 12px;
|
|
51
|
+
padding-bottom: var(--size-12);
|
|
43
52
|
}
|
|
44
53
|
.np-form-control--size-sm,
|
|
45
54
|
.np-form-control--size-md,
|
|
46
55
|
.np-form-control--size-lg {
|
|
47
|
-
padding-
|
|
48
|
-
padding-
|
|
56
|
+
padding-top: 0 !important;
|
|
57
|
+
padding-bottom: 0 !important;
|
|
49
58
|
}
|
|
50
59
|
.np-form-control--size-sm {
|
|
60
|
+
font-size: 0.875rem;
|
|
51
61
|
font-size: var(--font-size-14);
|
|
52
62
|
line-height: 155%;
|
|
53
63
|
letter-spacing: -0.006em;
|
|
64
|
+
font-weight: 400;
|
|
54
65
|
font-weight: var(--font-weight-regular);
|
|
55
|
-
|
|
66
|
+
height: 32px !important;
|
|
67
|
+
height: var(--size-32) !important;
|
|
56
68
|
}
|
|
57
|
-
@media (
|
|
69
|
+
@media (max-width: 320px) {
|
|
58
70
|
.np-form-control--size-sm {
|
|
59
|
-
|
|
71
|
+
height: 64px !important;
|
|
72
|
+
height: var(--size-64) !important;
|
|
60
73
|
}
|
|
61
74
|
}
|
|
62
75
|
.np-form-control--size-md {
|
|
76
|
+
font-weight: 400;
|
|
63
77
|
font-weight: var(--font-weight-regular);
|
|
78
|
+
font-size: 1rem;
|
|
64
79
|
font-size: var(--font-size-16);
|
|
65
80
|
line-height: 150%;
|
|
66
81
|
letter-spacing: -0.011em;
|
|
67
|
-
|
|
82
|
+
height: 48px !important;
|
|
83
|
+
height: var(--size-48) !important;
|
|
68
84
|
}
|
|
69
|
-
@media (
|
|
85
|
+
@media (max-width: 320px) {
|
|
70
86
|
.np-form-control--size-md {
|
|
71
|
-
|
|
87
|
+
height: 72px !important;
|
|
88
|
+
height: var(--size-72) !important;
|
|
72
89
|
}
|
|
73
90
|
}
|
|
74
91
|
.np-form-control--size-lg {
|
|
75
92
|
margin: 0;
|
|
93
|
+
color: #37517e;
|
|
76
94
|
color: var(--color-content-primary);
|
|
95
|
+
line-height: 1.2;
|
|
77
96
|
line-height: var(--line-height-title);
|
|
78
97
|
letter-spacing: 0;
|
|
79
|
-
margin-
|
|
98
|
+
margin-bottom: 0;
|
|
99
|
+
margin-bottom: initial;
|
|
100
|
+
font-size: 1.375rem;
|
|
80
101
|
font-size: var(--font-size-22);
|
|
102
|
+
font-weight: 600;
|
|
81
103
|
font-weight: var(--font-weight-semi-bold);
|
|
82
104
|
letter-spacing: -0.018em;
|
|
83
105
|
line-height: 125%;
|
|
84
|
-
|
|
106
|
+
height: 72px !important;
|
|
107
|
+
height: var(--size-72) !important;
|
|
85
108
|
}
|
|
86
109
|
@supports (hyphenate-limit-chars: 1) {
|
|
87
110
|
.np-form-control--size-lg {
|
|
88
111
|
hyphens: auto;
|
|
89
112
|
hyphenate-limit-chars: 7 3;
|
|
90
113
|
}
|
|
91
|
-
@media (
|
|
114
|
+
@media (min-width: 768px) {
|
|
92
115
|
.np-form-control--size-lg {
|
|
93
116
|
hyphenate-limit-chars: 8 3;
|
|
94
117
|
}
|
|
95
118
|
}
|
|
96
|
-
@media (
|
|
119
|
+
@media (min-width: 992px) {
|
|
97
120
|
.np-form-control--size-lg {
|
|
98
121
|
hyphenate-limit-chars: 10 4 3;
|
|
99
122
|
}
|
|
@@ -105,7 +128,7 @@
|
|
|
105
128
|
-webkit-hyphenate-limit-before: 3;
|
|
106
129
|
-webkit-hyphenate-limit-after: 3;
|
|
107
130
|
}
|
|
108
|
-
@media (
|
|
131
|
+
@media (min-width: 992px) {
|
|
109
132
|
.np-form-control--size-lg {
|
|
110
133
|
-webkit-hyphenate-limit-before: 4;
|
|
111
134
|
}
|
|
@@ -114,14 +137,22 @@
|
|
|
114
137
|
.np-form-control--size-lg + p,
|
|
115
138
|
.np-form-control--size-lg + ul:not(.list-unstyled),
|
|
116
139
|
.np-form-control--size-lg + ol:not(.list-unstyled) {
|
|
117
|
-
margin-
|
|
140
|
+
margin-top: 8px;
|
|
141
|
+
margin-top: var(--size-8);
|
|
142
|
+
}
|
|
143
|
+
.np-input::-moz-placeholder {
|
|
144
|
+
color: #768e9c;
|
|
145
|
+
color: var(--color-content-tertiary);
|
|
118
146
|
}
|
|
119
147
|
.np-input::placeholder {
|
|
148
|
+
color: #768e9c;
|
|
120
149
|
color: var(--color-content-tertiary);
|
|
121
150
|
}
|
|
122
151
|
.np-input--shape-rectangle {
|
|
152
|
+
border-radius: 10px !important;
|
|
123
153
|
border-radius: var(--radius-small) !important;
|
|
124
154
|
}
|
|
125
155
|
.np-input--shape-pill {
|
|
156
|
+
border-radius: 9999px !important;
|
|
126
157
|
border-radius: var(--radius-full) !important;
|
|
127
158
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
.np-input-group {
|
|
2
2
|
display: inline-grid;
|
|
3
|
-
|
|
3
|
+
width: 100%;
|
|
4
4
|
grid-auto-columns: minmax(0, 1fr);
|
|
5
5
|
/* Prevent unwanted `group-hover/input` triggers */
|
|
6
|
+
border-radius: 9999px;
|
|
6
7
|
border-radius: var(--radius-full);
|
|
7
8
|
}
|
|
8
9
|
.np-input-group > * {
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
z-index: 10;
|
|
15
16
|
display: inline-flex;
|
|
16
17
|
align-items: center;
|
|
18
|
+
color: #c9cbce;
|
|
17
19
|
color: var(--color-interactive-secondary);
|
|
18
20
|
transition-property: color, opacity;
|
|
19
21
|
transition-timing-function: ease-out;
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
color: var(--color-interactive-primary);
|
|
28
30
|
}
|
|
29
31
|
.np-input-group:has( > :is(input,button,select):hover) .np-input-addon {
|
|
32
|
+
color: #b5b7ba;
|
|
30
33
|
color: var(--color-interactive-secondary-hover);
|
|
31
34
|
}
|
|
32
35
|
.np-input-addon--placement-start {
|
|
@@ -39,16 +42,22 @@
|
|
|
39
42
|
pointer-events: auto;
|
|
40
43
|
}
|
|
41
44
|
.np-input-addon--padding-sm {
|
|
42
|
-
padding-
|
|
43
|
-
padding-
|
|
45
|
+
padding-left: 8px;
|
|
46
|
+
padding-left: var(--size-8);
|
|
47
|
+
padding-right: 8px;
|
|
48
|
+
padding-right: var(--size-8);
|
|
44
49
|
}
|
|
45
50
|
.np-input-addon--padding-md {
|
|
46
|
-
padding-
|
|
47
|
-
padding-
|
|
51
|
+
padding-left: 16px;
|
|
52
|
+
padding-left: var(--size-16);
|
|
53
|
+
padding-right: 16px;
|
|
54
|
+
padding-right: var(--size-16);
|
|
48
55
|
}
|
|
49
56
|
.np-input-addon--padding-md.np-input-addon--placement-start {
|
|
57
|
+
padding-inline-end: 8px;
|
|
50
58
|
padding-inline-end: var(--size-8);
|
|
51
59
|
}
|
|
52
60
|
.np-input-addon--padding-md.np-input-addon--placement-end {
|
|
61
|
+
padding-inline-start: 8px;
|
|
53
62
|
padding-inline-start: var(--size-8);
|
|
54
63
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
.np-bottom-sheet-v2-backdrop {
|
|
6
6
|
position: fixed;
|
|
7
7
|
inset: 0px;
|
|
8
|
+
background-color: #37517e;
|
|
8
9
|
background-color: var(--color-content-primary);
|
|
9
10
|
opacity: 0.4;
|
|
10
11
|
transition-property: opacity;
|
|
@@ -17,10 +18,13 @@
|
|
|
17
18
|
.np-bottom-sheet-v2 {
|
|
18
19
|
position: fixed;
|
|
19
20
|
inset: 0px;
|
|
20
|
-
|
|
21
|
-
margin-
|
|
22
|
-
margin-
|
|
23
|
-
margin-
|
|
21
|
+
bottom: env(keyboard-inset-height, 0px);
|
|
22
|
+
margin-left: 8px;
|
|
23
|
+
margin-left: var(--size-8);
|
|
24
|
+
margin-right: 8px;
|
|
25
|
+
margin-right: var(--size-8);
|
|
26
|
+
margin-top: 64px;
|
|
27
|
+
margin-top: var(--size-64);
|
|
24
28
|
display: flex;
|
|
25
29
|
flex-direction: column;
|
|
26
30
|
justify-content: flex-end;
|
|
@@ -29,10 +33,11 @@
|
|
|
29
33
|
display: flex;
|
|
30
34
|
flex-direction: column;
|
|
31
35
|
overflow: auto;
|
|
32
|
-
border-
|
|
36
|
+
border-top-left-radius: 32px;
|
|
33
37
|
/* TODO: Tokenize */
|
|
34
|
-
border-
|
|
38
|
+
border-top-right-radius: 32px;
|
|
35
39
|
/* TODO: Tokenize */
|
|
40
|
+
background-color: #ffffff;
|
|
36
41
|
background-color: var(--color-background-elevated);
|
|
37
42
|
box-shadow: 0 0 40px rgba(69, 71, 69, 0.2);
|
|
38
43
|
}
|
|
@@ -61,11 +66,15 @@
|
|
|
61
66
|
}
|
|
62
67
|
.np-bottom-sheet-v2-header {
|
|
63
68
|
align-self: flex-end;
|
|
69
|
+
padding: 16px;
|
|
64
70
|
padding: var(--size-16);
|
|
65
71
|
}
|
|
66
72
|
.np-bottom-sheet-v2-content-inner {
|
|
67
73
|
display: grid;
|
|
68
74
|
grid-template-rows: minmax(0, 1fr);
|
|
75
|
+
grid-row-gap: 8px;
|
|
76
|
+
grid-row-gap: var(--size-8);
|
|
77
|
+
row-gap: 8px;
|
|
69
78
|
row-gap: var(--size-8);
|
|
70
79
|
overflow: auto;
|
|
71
80
|
}
|
|
@@ -73,50 +82,61 @@
|
|
|
73
82
|
grid-template-rows: auto minmax(0, 1fr);
|
|
74
83
|
}
|
|
75
84
|
.np-bottom-sheet-v2-content-inner--padding-md {
|
|
85
|
+
padding: 16px;
|
|
76
86
|
padding: var(--size-16);
|
|
77
|
-
padding-
|
|
87
|
+
padding-top: 0px;
|
|
78
88
|
}
|
|
79
89
|
.np-bottom-sheet-v2-title {
|
|
90
|
+
color: #37517e;
|
|
80
91
|
color: var(--color-content-primary);
|
|
81
92
|
}
|
|
82
93
|
.np-bottom-sheet-v2-body {
|
|
94
|
+
color: #5d7079;
|
|
83
95
|
color: var(--color-content-secondary);
|
|
84
96
|
}
|
|
85
97
|
.np-button-input {
|
|
86
98
|
display: inline-grid;
|
|
87
99
|
grid-auto-columns: minmax(0, 1fr);
|
|
88
100
|
align-content: center;
|
|
101
|
+
border-radius: 10px;
|
|
89
102
|
border-radius: var(--size-10);
|
|
90
103
|
text-align: start;
|
|
91
104
|
}
|
|
92
105
|
.np-button-input:has(.np-select-input-option-description-in-trigger) {
|
|
93
|
-
|
|
106
|
+
height: auto !important;
|
|
94
107
|
align-content: start;
|
|
95
|
-
padding-
|
|
96
|
-
padding-
|
|
108
|
+
padding-top: 12px !important;
|
|
109
|
+
padding-top: var(--size-12) !important;
|
|
110
|
+
padding-bottom: 12px !important;
|
|
111
|
+
padding-bottom: var(--size-12) !important;
|
|
97
112
|
}
|
|
98
113
|
.np-popover-v2-container {
|
|
99
114
|
z-index: 1060;
|
|
100
115
|
display: flex;
|
|
101
|
-
max-
|
|
102
|
-
|
|
116
|
+
max-height: var(--max-height);
|
|
117
|
+
width: var(--width);
|
|
103
118
|
flex-direction: column;
|
|
104
119
|
overflow: hidden;
|
|
120
|
+
border-radius: 10px;
|
|
105
121
|
border-radius: var(--radius-small);
|
|
122
|
+
background-color: #ffffff;
|
|
106
123
|
background-color: var(--color-background-elevated);
|
|
107
124
|
box-shadow: 0 0 40px rgba(69, 71, 69, 0.2);
|
|
108
125
|
}
|
|
109
126
|
.np-popover-v2-container--size-md {
|
|
110
|
-
min-
|
|
127
|
+
min-width: 20rem;
|
|
111
128
|
}
|
|
112
129
|
.np-popover-v2-container--size-lg {
|
|
113
|
-
min-
|
|
130
|
+
min-width: 24rem;
|
|
114
131
|
}
|
|
115
132
|
.np-popover-v2-container:focus {
|
|
116
133
|
outline: none;
|
|
117
134
|
}
|
|
118
135
|
.np-popover-v2 {
|
|
119
136
|
display: grid;
|
|
137
|
+
grid-row-gap: 8px;
|
|
138
|
+
grid-row-gap: var(--size-8);
|
|
139
|
+
row-gap: 8px;
|
|
120
140
|
row-gap: var(--size-8);
|
|
121
141
|
overflow-y: auto;
|
|
122
142
|
grid-template-rows: minmax(0, 1fr);
|
|
@@ -125,12 +145,15 @@
|
|
|
125
145
|
grid-template-rows: auto minmax(0, 1fr);
|
|
126
146
|
}
|
|
127
147
|
.np-popover-v2--padding-md {
|
|
148
|
+
padding: 16px;
|
|
128
149
|
padding: var(--size-16);
|
|
129
150
|
}
|
|
130
151
|
.np-popover-v2-title {
|
|
152
|
+
color: #37517e;
|
|
131
153
|
color: var(--color-content-primary);
|
|
132
154
|
}
|
|
133
155
|
.np-popover-v2-content {
|
|
156
|
+
color: #5d7079;
|
|
134
157
|
color: var(--color-content-secondary);
|
|
135
158
|
}
|
|
136
159
|
.np-select-input-content {
|
|
@@ -139,59 +162,70 @@
|
|
|
139
162
|
white-space: nowrap;
|
|
140
163
|
}
|
|
141
164
|
.np-select-input-placeholder {
|
|
165
|
+
color: #768e9c;
|
|
142
166
|
color: var(--color-content-tertiary);
|
|
143
167
|
}
|
|
144
168
|
.np-select-input-options-container {
|
|
145
169
|
display: flex;
|
|
146
|
-
|
|
170
|
+
height: 100%;
|
|
147
171
|
flex-direction: column;
|
|
148
172
|
}
|
|
149
173
|
.np-select-input-options-container:focus {
|
|
150
174
|
outline: none;
|
|
151
175
|
}
|
|
152
|
-
@media (
|
|
176
|
+
@media (min-width: 576px) {
|
|
153
177
|
.np-select-input-options-container {
|
|
154
|
-
max-
|
|
178
|
+
max-height: 28rem /* 448px */;
|
|
155
179
|
}
|
|
156
180
|
}
|
|
157
181
|
.np-select-input-options-status {
|
|
158
182
|
display: flex;
|
|
159
183
|
align-items: center;
|
|
160
|
-
column-gap:
|
|
161
|
-
|
|
162
|
-
|
|
184
|
+
-moz-column-gap: 8px;
|
|
185
|
+
column-gap: 8px;
|
|
186
|
+
-moz-column-gap: var(--size-8);
|
|
187
|
+
column-gap: var(--size-8);
|
|
188
|
+
padding: 8px 24px 0px;
|
|
189
|
+
padding: var(--size-8) var(--size-24) 0px;
|
|
163
190
|
}
|
|
164
191
|
.np-select-input-options-status-icon {
|
|
165
|
-
padding
|
|
166
|
-
padding
|
|
192
|
+
padding: 0 4px;
|
|
193
|
+
padding: 0 var(--size-4);
|
|
194
|
+
color: #768e9c;
|
|
167
195
|
color: var(--color-content-tertiary);
|
|
168
196
|
}
|
|
169
197
|
.np-select-input-query-container {
|
|
170
198
|
display: flex;
|
|
171
199
|
flex-direction: column;
|
|
200
|
+
padding: 8px;
|
|
172
201
|
padding: var(--size-8);
|
|
173
202
|
}
|
|
174
203
|
.np-select-input-listbox-container {
|
|
175
204
|
position: relative;
|
|
176
|
-
|
|
205
|
+
height: var(--initial-height);
|
|
206
|
+
scroll-padding-top: 8px;
|
|
177
207
|
scroll-padding-top: var(--size-8);
|
|
208
|
+
scroll-padding-bottom: 8px;
|
|
178
209
|
scroll-padding-bottom: var(--size-8);
|
|
179
210
|
overflow-y: auto;
|
|
180
211
|
}
|
|
181
|
-
@media (
|
|
212
|
+
@media (min-width: 576px) {
|
|
182
213
|
.np-select-input-listbox-container {
|
|
183
|
-
|
|
214
|
+
height: auto;
|
|
184
215
|
}
|
|
185
216
|
}
|
|
186
217
|
.np-select-input-listbox-container--virtualized {
|
|
187
218
|
/* The wrapping element shrinks this as needed */
|
|
188
|
-
|
|
219
|
+
height: 100vh;
|
|
189
220
|
}
|
|
190
221
|
.np-select-input-listbox-container--has-group {
|
|
222
|
+
scroll-padding-top: 32px;
|
|
191
223
|
scroll-padding-top: var(--size-32);
|
|
192
224
|
}
|
|
193
225
|
.np-select-input-listbox {
|
|
226
|
+
border-radius: 10px;
|
|
194
227
|
border-radius: var(--radius-small);
|
|
228
|
+
padding: 8px;
|
|
195
229
|
padding: var(--size-8);
|
|
196
230
|
--ring-outline-offset: calc(-1 * var(--ring-outline-width));
|
|
197
231
|
}
|
|
@@ -206,36 +240,46 @@
|
|
|
206
240
|
/* Adopted from `VList` in virtua: https://github.com/inokawa/virtua/blob/7f6ed5b37df6b480d4ff350f3960067c5b3519d2/src/react/VList.tsx#L113-L116 */
|
|
207
241
|
overflow-y: auto;
|
|
208
242
|
contain: strict;
|
|
209
|
-
|
|
243
|
+
height: 100%;
|
|
210
244
|
}
|
|
211
245
|
.np-select-input-separator-item {
|
|
246
|
+
margin: 8px;
|
|
212
247
|
margin: var(--size-8);
|
|
213
|
-
border-
|
|
248
|
+
border-top-width: 1px;
|
|
214
249
|
}
|
|
215
250
|
.np-select-input-group-item--without-needle:first-child {
|
|
216
|
-
margin-
|
|
251
|
+
margin-top: calc(-1 * 8px);
|
|
252
|
+
margin-top: calc(-1 * var(--size-8));
|
|
217
253
|
}
|
|
218
254
|
.np-select-input-group-item-header {
|
|
219
255
|
position: sticky;
|
|
220
|
-
|
|
256
|
+
top: 0px;
|
|
221
257
|
z-index: 10;
|
|
258
|
+
background-color: #ffffff;
|
|
222
259
|
background-color: var(--color-background-elevated);
|
|
223
260
|
}
|
|
224
261
|
.np-select-input-option-container {
|
|
225
262
|
display: flex;
|
|
226
263
|
cursor: default;
|
|
227
|
-
user-select: none;
|
|
264
|
+
-webkit-user-select: none;
|
|
265
|
+
-moz-user-select: none;
|
|
266
|
+
user-select: none;
|
|
228
267
|
align-items: center;
|
|
229
|
-
column-gap:
|
|
268
|
+
-moz-column-gap: 8px;
|
|
269
|
+
column-gap: 8px;
|
|
270
|
+
-moz-column-gap: var(--size-8);
|
|
271
|
+
column-gap: var(--size-8);
|
|
272
|
+
border-radius: 10px;
|
|
230
273
|
border-radius: var(--radius-small);
|
|
231
|
-
padding
|
|
232
|
-
padding
|
|
274
|
+
padding: 12px 16px;
|
|
275
|
+
padding: var(--size-12) var(--size-16);
|
|
233
276
|
color: var(--color-interactive-primary);
|
|
234
277
|
}
|
|
235
278
|
.np-select-input-option-container:focus {
|
|
236
279
|
outline: none;
|
|
237
280
|
}
|
|
238
281
|
.np-select-input-option-container--active {
|
|
282
|
+
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
239
283
|
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
240
284
|
}
|
|
241
285
|
.np-select-input-option-container--disabled {
|
|
@@ -250,7 +294,11 @@
|
|
|
250
294
|
.np-select-input-option-content-container {
|
|
251
295
|
display: flex;
|
|
252
296
|
align-items: center;
|
|
253
|
-
column-gap:
|
|
297
|
+
-moz-column-gap: 8px;
|
|
298
|
+
column-gap: 8px;
|
|
299
|
+
-moz-column-gap: var(--size-8);
|
|
300
|
+
column-gap: var(--size-8);
|
|
301
|
+
color: #37517e;
|
|
254
302
|
color: var(--color-content-primary);
|
|
255
303
|
}
|
|
256
304
|
.np-select-input-option-content-icon {
|
|
@@ -266,6 +314,7 @@
|
|
|
266
314
|
overflow: hidden;
|
|
267
315
|
}
|
|
268
316
|
.np-select-input-option-content-text-secondary {
|
|
317
|
+
color: #5d7079;
|
|
269
318
|
color: var(--color-content-secondary);
|
|
270
319
|
}
|
|
271
320
|
.np-select-input-option-content-text-within-trigger {
|
|
@@ -274,28 +323,34 @@
|
|
|
274
323
|
white-space: nowrap;
|
|
275
324
|
}
|
|
276
325
|
.np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
|
|
277
|
-
margin-
|
|
278
|
-
margin-
|
|
326
|
+
margin-right: 8px;
|
|
327
|
+
margin-right: var(--size-8);
|
|
328
|
+
margin-left: 8px;
|
|
329
|
+
margin-left: var(--size-8);
|
|
279
330
|
}
|
|
280
331
|
.np-select-input-footer {
|
|
281
|
-
padding
|
|
282
|
-
padding
|
|
332
|
+
padding: 4px 24px 16px;
|
|
333
|
+
padding: var(--size-4) var(--size-24) var(--size-16);
|
|
283
334
|
}
|
|
284
335
|
.np-select-input-addon-container {
|
|
285
336
|
pointer-events: none;
|
|
337
|
+
margin-inline-start: 4px;
|
|
286
338
|
margin-inline-start: var(--size-4);
|
|
287
339
|
display: inline-flex;
|
|
288
340
|
align-items: center;
|
|
289
341
|
}
|
|
290
342
|
.np-select-input-addon-container > :not([hidden]) ~ :not([hidden]) {
|
|
343
|
+
margin-inline-start: 4px;
|
|
291
344
|
margin-inline-start: var(--size-4);
|
|
292
345
|
}
|
|
293
346
|
.np-select-input-addon {
|
|
294
347
|
border-width: 0;
|
|
295
348
|
background: none;
|
|
296
349
|
display: inline-flex;
|
|
297
|
-
|
|
298
|
-
|
|
350
|
+
height: 24px;
|
|
351
|
+
height: var(--size-24);
|
|
352
|
+
width: 24px;
|
|
353
|
+
width: var(--size-24);
|
|
299
354
|
align-items: center;
|
|
300
355
|
justify-content: center;
|
|
301
356
|
border-radius: 0.125rem /* 2px */;
|
|
@@ -303,9 +358,11 @@
|
|
|
303
358
|
}
|
|
304
359
|
.np-select-input-addon--interactive {
|
|
305
360
|
pointer-events: auto;
|
|
361
|
+
color: #c9cbce;
|
|
306
362
|
color: var(--color-interactive-secondary);
|
|
307
363
|
}
|
|
308
364
|
.np-select-input-addon--interactive:hover {
|
|
365
|
+
color: #b5b7ba;
|
|
309
366
|
color: var(--color-interactive-secondary-hover);
|
|
310
367
|
}
|
|
311
368
|
.np-select-input-addon--interactive:focus {
|
|
@@ -316,6 +373,8 @@
|
|
|
316
373
|
outline-offset: var(--ring-outline-offset);
|
|
317
374
|
}
|
|
318
375
|
.np-select-input-addon-separator {
|
|
319
|
-
|
|
376
|
+
height: 24px;
|
|
377
|
+
height: var(--size-24);
|
|
378
|
+
border-inline-start: 1px solid rgba(0,0,0,0.10196);
|
|
320
379
|
border-inline-start: 1px solid var(--color-border-neutral);
|
|
321
380
|
}
|