@transferwise/components 46.0.8 → 46.1.1
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/README.md +3 -5
- package/build/index.esm.js +8 -9
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8 -9
- package/build/index.js.map +1 -1
- package/build/main.css +5481 -1
- package/build/styles/accordion/Accordion.css +60 -1
- package/build/styles/actionButton/ActionButton.css +53 -1
- package/build/styles/avatar/Avatar.css +205 -1
- package/build/styles/badge/Badge.css +68 -1
- package/build/styles/button/Button.css +20 -1
- package/build/styles/card/Card.css +100 -1
- package/build/styles/checkboxButton/CheckboxButton.css +24 -1
- package/build/styles/chips/Chip.css +190 -1
- package/build/styles/circularButton/CircularButton.css +211 -1
- package/build/styles/common/Option/Option.css +100 -1
- package/build/styles/common/RadioButton/RadioButton.css +4 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +53 -1
- package/build/styles/common/card/Card.css +53 -1
- package/build/styles/common/closeButton/CloseButton.css +79 -1
- package/build/styles/common/panel/Panel.css +73 -1
- package/build/styles/criticalBanner/CriticalCommsBanner.css +77 -1
- package/build/styles/dateInput/DateInput.css +3 -1
- package/build/styles/dateLookup/DateLookup.css +98 -1
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +68 -1
- package/build/styles/decision/Decision.css +93 -1
- package/build/styles/definitionList/DefinitionList.css +53 -1
- package/build/styles/dimmer/Dimmer.css +70 -1
- package/build/styles/drawer/Drawer.css +100 -1
- package/build/styles/dropFade/DropFade.css +19 -1
- package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +5 -1
- package/build/styles/emphasis/Emphasis.css +31 -1
- package/build/styles/flowNavigation/FlowNavigation.css +50 -1
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +21 -1
- package/build/styles/flowNavigation/backButton/BackButton.css +32 -1
- package/build/styles/header/Header.css +28 -1
- package/build/styles/image/Image.css +13 -1
- package/build/styles/info/Info.css +32 -1
- package/build/styles/inputs/Input.css +106 -1
- package/build/styles/inputs/InputGroup.css +62 -1
- package/build/styles/inputs/SelectInput.css +374 -1
- package/build/styles/inputs/TextArea.css +110 -1
- package/build/styles/instructionsList/InstructionsList.css +22 -1
- package/build/styles/link/Link.css +15 -1
- package/build/styles/listItem/ListItem.css +6 -1
- package/build/styles/loader/Loader.css +313 -1
- package/build/styles/logo/Logo.css +26 -1
- package/build/styles/main.css +5481 -1
- package/build/styles/modal/Modal.css +155 -1
- package/build/styles/moneyInput/MoneyInput.css +66 -1
- package/build/styles/navigationOption/NavigationOption.css +69 -1
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +13 -1
- package/build/styles/nudge/Nudge.css +182 -1
- package/build/styles/overlayHeader/OverlayHeader.css +15 -1
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +23 -1
- package/build/styles/popover/Popover.css +43 -1
- package/build/styles/progress/Progress.css +43 -1
- package/build/styles/progressBar/ProgressBar.css +14 -1
- package/build/styles/promoCard/PromoCard.css +186 -1
- package/build/styles/section/Section.css +10 -1
- package/build/styles/select/Select.css +309 -1
- package/build/styles/slidingPanel/SlidingPanel.css +105 -1
- package/build/styles/snackbar/Snackbar.css +93 -1
- package/build/styles/statusIcon/StatusIcon.css +78 -1
- package/build/styles/stepper/Stepper.css +108 -1
- package/build/styles/summary/Summary.css +81 -1
- package/build/styles/switch/Switch.css +68 -1
- package/build/styles/tabs/Tabs.css +121 -1
- package/build/styles/tile/Tile.css +55 -1
- package/build/styles/tooltip/Tooltip.css +50 -1
- package/build/styles/typeahead/Typeahead.css +183 -1
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +9 -1
- package/build/styles/upload/Upload.css +15 -1
- package/build/styles/uploadInput/UploadInput.css +71 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +49 -1
- package/build/styles/uploadInput/uploadItem/UploadItem.css +74 -1
- package/build/types/dateLookup/DateLookup.d.ts +1 -1
- package/build/types/select/option/Option.d.ts.map +1 -1
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -1
- package/build/types/typeahead/util/highlight.d.ts +1 -1
- package/build/types/typeahead/util/highlight.d.ts.map +1 -1
- package/package.json +4 -10
- package/src/accordion/Accordion.css +60 -1
- package/src/actionButton/ActionButton.css +53 -1
- package/src/avatar/Avatar.css +205 -1
- package/src/badge/Badge.css +68 -1
- package/src/button/Button.css +20 -1
- package/src/card/Card.css +100 -1
- package/src/checkboxButton/CheckboxButton.css +24 -1
- package/src/chips/Chip.css +190 -1
- package/src/circularButton/CircularButton.css +211 -1
- package/src/common/Option/Option.css +100 -1
- package/src/common/RadioButton/RadioButton.css +4 -1
- package/src/common/bottomSheet/BottomSheet.css +53 -1
- package/src/common/card/Card.css +53 -1
- package/src/common/closeButton/CloseButton.css +79 -1
- package/src/common/panel/Panel.css +73 -1
- package/src/criticalBanner/CriticalCommsBanner.css +77 -1
- package/src/dateInput/DateInput.css +3 -1
- package/src/dateLookup/DateLookup.css +98 -1
- package/src/dateLookup/DateLookup.js +2 -1
- package/src/dateLookup/DateLookup.proptypes.spec.js +28 -0
- package/src/dateLookup/DateLookup.story.js +12 -8
- package/src/dateLookup/dateTrigger/DateTrigger.css +68 -1
- package/src/decision/Decision.css +93 -1
- package/src/definitionList/DefinitionList.css +53 -1
- package/src/dimmer/Dimmer.css +70 -1
- package/src/drawer/Drawer.css +100 -1
- package/src/dropFade/DropFade.css +19 -1
- package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +5 -1
- package/src/emphasis/Emphasis.css +31 -1
- package/src/flowNavigation/FlowNavigation.css +50 -1
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +21 -1
- package/src/flowNavigation/backButton/BackButton.css +32 -1
- package/src/header/Header.css +28 -1
- package/src/image/Image.css +13 -1
- package/src/info/Info.css +32 -1
- package/src/inputs/Input.css +106 -1
- package/src/inputs/InputGroup.css +62 -1
- package/src/inputs/SelectInput.css +374 -1
- package/src/inputs/TextArea.css +110 -1
- package/src/instructionsList/InstructionsList.css +22 -1
- package/src/link/Link.css +15 -1
- package/src/listItem/ListItem.css +6 -1
- package/src/loader/Loader.css +313 -1
- package/src/logo/Logo.css +26 -1
- package/src/main.css +5481 -1
- package/src/modal/Modal.css +155 -1
- package/src/moneyInput/MoneyInput.css +66 -1
- package/src/navigationOption/NavigationOption.css +69 -1
- package/src/navigationOptionsList/NavigationOptionsList.css +13 -1
- package/src/nudge/Nudge.css +182 -1
- package/src/overlayHeader/OverlayHeader.css +15 -1
- package/src/phoneNumberInput/PhoneNumberInput.css +23 -1
- package/src/popover/Popover.css +43 -1
- package/src/progress/Progress.css +43 -1
- package/src/progressBar/ProgressBar.css +14 -1
- package/src/promoCard/PromoCard.css +186 -1
- package/src/section/Section.css +10 -1
- package/src/select/Select.css +309 -1
- package/src/select/Select.less +1 -8
- package/src/select/option/Option.spec.js +3 -21
- package/src/select/option/Option.tsx +2 -7
- package/src/slidingPanel/SlidingPanel.css +105 -1
- package/src/snackbar/Snackbar.css +93 -1
- package/src/statusIcon/StatusIcon.css +78 -1
- package/src/stepper/Stepper.css +108 -1
- package/src/summary/Summary.css +81 -1
- package/src/switch/Switch.css +68 -1
- package/src/tabs/Tabs.css +121 -1
- package/src/tile/Tile.css +55 -1
- package/src/tooltip/Tooltip.css +50 -1
- package/src/typeahead/Typeahead.css +183 -1
- package/src/typeahead/typeaheadOption/TypeaheadOption.css +9 -1
- package/src/typeahead/typeaheadOption/TypeaheadOption.js +5 -3
- package/src/typeahead/util/highlight.js +1 -1
- package/src/upload/Upload.css +15 -1
- package/src/uploadInput/UploadInput.css +71 -1
- package/src/uploadInput/uploadButton/UploadButton.css +49 -1
- package/src/uploadInput/uploadItem/UploadItem.css +74 -1
|
@@ -1 +1,100 @@
|
|
|
1
|
-
.np-drawer
|
|
1
|
+
.np-drawer {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
width: 100vw;
|
|
6
|
+
max-width: 600px;
|
|
7
|
+
height: 100vh;
|
|
8
|
+
height: 100dvh;
|
|
9
|
+
max-height: 100vh;
|
|
10
|
+
max-height: 100dvh;
|
|
11
|
+
}
|
|
12
|
+
@media (max-width: 770px) {
|
|
13
|
+
.np-drawer {
|
|
14
|
+
max-width: none;
|
|
15
|
+
max-width: initial;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.np-drawer .np-drawer-header {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
flex-wrap: nowrap;
|
|
22
|
+
min-height: 56px;
|
|
23
|
+
min-height: var(--size-56);
|
|
24
|
+
padding: 24px 16px;
|
|
25
|
+
padding: var(--size-24) var(--size-16);
|
|
26
|
+
}
|
|
27
|
+
.np-theme-personal .np-drawer .np-drawer-header {
|
|
28
|
+
padding: 24px;
|
|
29
|
+
padding: var(--size-24);
|
|
30
|
+
}
|
|
31
|
+
@media (max-width: 320px) {
|
|
32
|
+
.np-theme-personal .np-drawer .np-drawer-header {
|
|
33
|
+
padding: 16px;
|
|
34
|
+
padding: var(--size-16);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.np-theme-personal .np-drawer .np-drawer-header .np-close-button {
|
|
38
|
+
margin-top: calc(8px * -1);
|
|
39
|
+
margin-top: calc(var(--size-8) * -1);
|
|
40
|
+
margin-right: calc(8px * -1);
|
|
41
|
+
margin-right: calc(var(--size-8) * -1);
|
|
42
|
+
margin-bottom: calc(8px * -1);
|
|
43
|
+
margin-bottom: calc(var(--size-8) * -1);
|
|
44
|
+
}
|
|
45
|
+
.np-drawer .np-drawer-header.np-drawer-header--withborder {
|
|
46
|
+
box-shadow: inset 0 -1px 0 0 #e2e6e8;
|
|
47
|
+
}
|
|
48
|
+
.np-theme-personal .np-drawer .np-drawer-header.np-drawer-header--withborder {
|
|
49
|
+
box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.10196);
|
|
50
|
+
box-shadow: inset 0 -1px 0 0 var(--color-border-neutral);
|
|
51
|
+
}
|
|
52
|
+
.np-drawer .np-drawer-header .np-text-title-body {
|
|
53
|
+
margin-right: 16px;
|
|
54
|
+
margin-right: var(--size-16);
|
|
55
|
+
font-size: 1.125rem;
|
|
56
|
+
font-size: var(--font-size-18);
|
|
57
|
+
letter-spacing: -0.01em;
|
|
58
|
+
letter-spacing: var(--letter-spacing-negative-xs);
|
|
59
|
+
line-height: 1.5rem;
|
|
60
|
+
line-height: var(--line-height-24);
|
|
61
|
+
}
|
|
62
|
+
.np-drawer .np-drawer-header .np-close-button {
|
|
63
|
+
margin-left: auto;
|
|
64
|
+
}
|
|
65
|
+
.np-drawer .np-drawer-header .tw-icon {
|
|
66
|
+
display: block;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
fill: #00b9ff;
|
|
69
|
+
}
|
|
70
|
+
.np-drawer .np-drawer-content {
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
flex: 1;
|
|
73
|
+
}
|
|
74
|
+
.np-drawer .np-drawer-footer,
|
|
75
|
+
.np-drawer .np-drawer-content {
|
|
76
|
+
padding: 16px;
|
|
77
|
+
padding: var(--size-16);
|
|
78
|
+
}
|
|
79
|
+
.np-drawer .np-drawer-footer {
|
|
80
|
+
box-shadow: inset 0 1px 0 0 #e2e6e8;
|
|
81
|
+
}
|
|
82
|
+
.np-theme-personal .np-drawer .np-drawer-footer {
|
|
83
|
+
box-shadow: inset 0 1px 0 0 rgba(0,0,0,0.10196);
|
|
84
|
+
box-shadow: inset 0 1px 0 0 var(--color-border-neutral);
|
|
85
|
+
}
|
|
86
|
+
@media (min-width: 768px) {
|
|
87
|
+
.np-drawer .np-drawer-header {
|
|
88
|
+
padding: 32px 24px;
|
|
89
|
+
padding: var(--size-32) var(--size-24);
|
|
90
|
+
}
|
|
91
|
+
.np-theme-personal .np-drawer .np-drawer-header {
|
|
92
|
+
padding: 24px;
|
|
93
|
+
padding: var(--size-24);
|
|
94
|
+
}
|
|
95
|
+
.np-drawer .np-drawer-footer,
|
|
96
|
+
.np-drawer .np-drawer-content {
|
|
97
|
+
padding: 24px;
|
|
98
|
+
padding: var(--size-24);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
.np-dropfade
|
|
1
|
+
.np-dropfade,
|
|
2
|
+
.np-dropfade-enter {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
height: 0;
|
|
6
|
+
}
|
|
7
|
+
.np-dropfade-enter-active {
|
|
8
|
+
transition: height 150ms ease-in, opacity 150ms ease-in 150ms;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
.np-dropfade-enter-done,
|
|
12
|
+
.np-dropfade-exit {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
height: auto;
|
|
15
|
+
}
|
|
16
|
+
.np-dropfade-exit-active {
|
|
17
|
+
transition: opacity 150ms ease-in, height 150ms ease-in 150ms;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
.emphasis
|
|
1
|
+
.emphasis {
|
|
2
|
+
font-weight: 600;
|
|
3
|
+
font-weight: var(--font-weight-semi-bold);
|
|
4
|
+
font-style: normal;
|
|
5
|
+
}
|
|
6
|
+
.emphasis--important {
|
|
7
|
+
color: #37517e;
|
|
8
|
+
color: var(--color-content-primary);
|
|
9
|
+
}
|
|
10
|
+
.emphasis--positive {
|
|
11
|
+
color: #008026;
|
|
12
|
+
color: var(--color-content-positive);
|
|
13
|
+
}
|
|
14
|
+
.np-theme-personal .emphasis--positive {
|
|
15
|
+
color: var(--color-sentiment-positive);
|
|
16
|
+
}
|
|
17
|
+
.emphasis--negative {
|
|
18
|
+
color: #cf2929;
|
|
19
|
+
color: var(--color-content-negative);
|
|
20
|
+
}
|
|
21
|
+
.np-theme-personal .emphasis--negative {
|
|
22
|
+
color: var(--color-sentiment-negative);
|
|
23
|
+
}
|
|
24
|
+
.emphasis--warning {
|
|
25
|
+
color: #9a6500;
|
|
26
|
+
color: var(--color-content-warning);
|
|
27
|
+
}
|
|
28
|
+
.np-theme-personal .emphasis--warning {
|
|
29
|
+
color: #5d7079;
|
|
30
|
+
color: var(--color-content-secondary);
|
|
31
|
+
}
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
.np-flow-navigation
|
|
1
|
+
.np-flow-navigation {
|
|
2
|
+
width: 100%;
|
|
3
|
+
min-height: 97px;
|
|
4
|
+
}
|
|
5
|
+
.np-flow-navigation--border-bottom {
|
|
6
|
+
min-height: 96px;
|
|
7
|
+
border-bottom: 1px solid rgba(0,0,0,0.10196);
|
|
8
|
+
border-bottom: 1px solid var(--color-border-neutral);
|
|
9
|
+
}
|
|
10
|
+
.np-flow-navigation__content {
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 320px;
|
|
13
|
+
max-width: 1164px;
|
|
14
|
+
}
|
|
15
|
+
.np-flow-navigation__stepper {
|
|
16
|
+
padding-bottom: 0px !important;
|
|
17
|
+
padding-left: 0px !important;
|
|
18
|
+
padding-right: 0px !important;
|
|
19
|
+
}
|
|
20
|
+
.np-flow-navigation--xs-max .np-flow-navigation__stepper .tw-stepper-steps {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
.np-flow-navigation--xs-max .np-flow-navigation__stepper .progress {
|
|
24
|
+
margin-bottom: 0;
|
|
25
|
+
}
|
|
26
|
+
.np-flow-navigation--xs-max .np-animated-label {
|
|
27
|
+
height: auto;
|
|
28
|
+
}
|
|
29
|
+
.np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
30
|
+
padding-left: 24px !important;
|
|
31
|
+
padding-left: var(--size-24) !important;
|
|
32
|
+
padding-right: 24px !important;
|
|
33
|
+
padding-right: var(--size-24) !important;
|
|
34
|
+
min-height: 56px;
|
|
35
|
+
}
|
|
36
|
+
.np-flow-navigation--lg .np-flow-navigation__stepper {
|
|
37
|
+
max-width: 562px;
|
|
38
|
+
}
|
|
39
|
+
.np-flow-navigation--lg .np-flow-header__left,
|
|
40
|
+
.np-flow-navigation--lg .np-flow-header__right {
|
|
41
|
+
width: 180px;
|
|
42
|
+
}
|
|
43
|
+
.np-flow-navigation--hidden {
|
|
44
|
+
visibility: hidden;
|
|
45
|
+
}
|
|
46
|
+
.np-theme-personal--forest-green .np-flow-navigation .np-flow-header__left path,
|
|
47
|
+
.np-theme-personal--bright-green .np-flow-navigation .np-flow-header__left path,
|
|
48
|
+
.np-theme-personal--dark .np-flow-navigation .np-flow-header__left path {
|
|
49
|
+
fill: var(--color-interactive-primary);
|
|
50
|
+
}
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
.np-animated-label
|
|
1
|
+
.np-animated-label {
|
|
2
|
+
height: 24px;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
position: relative;
|
|
5
|
+
padding-top: 1px;
|
|
6
|
+
}
|
|
7
|
+
.np-animated-label > * {
|
|
8
|
+
height: 0;
|
|
9
|
+
opacity: 0;
|
|
10
|
+
position: absolute;
|
|
11
|
+
transform: translateX(-8px);
|
|
12
|
+
transition: all 0.3s ease-in;
|
|
13
|
+
}
|
|
14
|
+
.np-animated-label--in {
|
|
15
|
+
height: auto;
|
|
16
|
+
opacity: 1;
|
|
17
|
+
position: relative;
|
|
18
|
+
top: auto;
|
|
19
|
+
transform: translateX(0);
|
|
20
|
+
transition: all 0.3s ease-in 0.3s;
|
|
21
|
+
}
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
.np-back-button
|
|
1
|
+
.np-back-button {
|
|
2
|
+
color: #00a2dd;
|
|
3
|
+
color: var(--color-interactive-accent);
|
|
4
|
+
display: flex !important;
|
|
5
|
+
}
|
|
6
|
+
.np-back-button:hover {
|
|
7
|
+
color: #008fc9;
|
|
8
|
+
color: var(--color-interactive-accent-hover);
|
|
9
|
+
}
|
|
10
|
+
.np-back-button:active {
|
|
11
|
+
color: #0081ba;
|
|
12
|
+
color: var(--color-interactive-accent-active);
|
|
13
|
+
}
|
|
14
|
+
.np-theme-personal .np-back-button {
|
|
15
|
+
color: #37517e;
|
|
16
|
+
color: var(--color-content-primary);
|
|
17
|
+
}
|
|
18
|
+
.np-theme-personal .np-back-button:hover {
|
|
19
|
+
color: var(--color-content-primary-hover);
|
|
20
|
+
}
|
|
21
|
+
.np-theme-personal .np-back-button:active {
|
|
22
|
+
color: var(--color-content-primary-active);
|
|
23
|
+
}
|
|
24
|
+
.np-theme-personal .np-back-button .tw-icon {
|
|
25
|
+
color: var(--color-interactive-primary);
|
|
26
|
+
}
|
|
27
|
+
.np-theme-personal .np-back-button .tw-icon:hover {
|
|
28
|
+
color: var(--color-interactive-primary-hover);
|
|
29
|
+
}
|
|
30
|
+
.np-theme-personal .np-back-button .tw-icon:active {
|
|
31
|
+
color: var(--color-interactive-primary-active);
|
|
32
|
+
}
|
|
@@ -1 +1,28 @@
|
|
|
1
|
-
.np-header
|
|
1
|
+
.np-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: flex-end;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
padding: 8px 0;
|
|
7
|
+
padding: var(--size-8) 0;
|
|
8
|
+
border-bottom: 1px solid rgba(0,0,0,0.10196);
|
|
9
|
+
border-bottom: 1px solid var(--color-border-neutral);
|
|
10
|
+
margin-bottom: 8px;
|
|
11
|
+
margin-bottom: var(--size-8);
|
|
12
|
+
}
|
|
13
|
+
.np-header__title {
|
|
14
|
+
color: #5d7079;
|
|
15
|
+
color: var(--color-content-secondary);
|
|
16
|
+
}
|
|
17
|
+
.np-theme-personal .np-header {
|
|
18
|
+
-moz-column-gap: 24px;
|
|
19
|
+
column-gap: 24px;
|
|
20
|
+
-moz-column-gap: var(--size-24);
|
|
21
|
+
column-gap: var(--size-24);
|
|
22
|
+
}
|
|
23
|
+
.np-theme-personal .np-header__button {
|
|
24
|
+
margin-inline: calc(16px * -1);
|
|
25
|
+
margin-inline: calc(var(--size-16) * -1);
|
|
26
|
+
margin-bottom: calc(4px * -1);
|
|
27
|
+
margin-bottom: calc(var(--size-4) * -1);
|
|
28
|
+
}
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
.tw-image{
|
|
1
|
+
.tw-image {
|
|
2
|
+
max-width: none;
|
|
3
|
+
width: auto;
|
|
4
|
+
min-width: -moz-min-content;
|
|
5
|
+
min-width: min-content;
|
|
6
|
+
}
|
|
7
|
+
.tw-image__shrink {
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
min-width: auto;
|
|
10
|
+
}
|
|
11
|
+
.tw-image__stretch {
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
.np-info
|
|
1
|
+
.np-info {
|
|
2
|
+
height: 16px;
|
|
3
|
+
line-height: 1;
|
|
4
|
+
vertical-align: middle;
|
|
5
|
+
color: var(--color-interactive-primary);
|
|
6
|
+
}
|
|
7
|
+
.np-info button,
|
|
8
|
+
.np-info [data-toggle="popover"]:not(.btn) {
|
|
9
|
+
--ring-outline-offset: 0;
|
|
10
|
+
height: 16px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
display: inline-block;
|
|
13
|
+
}
|
|
14
|
+
.np-info__large {
|
|
15
|
+
height: 24px;
|
|
16
|
+
}
|
|
17
|
+
.np-info__large button,
|
|
18
|
+
.np-info__large [data-toggle="popover"]:not(.btn) {
|
|
19
|
+
height: 24px;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
.np-info .tw-icon {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
color: var(--color-interactive-primary);
|
|
25
|
+
display: inline-block;
|
|
26
|
+
}
|
|
27
|
+
.np-info [data-toggle="popover"]:not(.btn) {
|
|
28
|
+
border-bottom: none !important;
|
|
29
|
+
}
|
|
30
|
+
.np-info [data-toggle="popover"]:not(.btn):focus {
|
|
31
|
+
outline: revert;
|
|
32
|
+
}
|
|
@@ -1 +1,106 @@
|
|
|
1
|
-
|
|
1
|
+
@media (min-width: 768px) {
|
|
2
|
+
}@media (min-width: 768px) {
|
|
3
|
+
}.np-form-control {
|
|
4
|
+
--ring-width: 1px;
|
|
5
|
+
--ring-color: var(--color-interactive-secondary);
|
|
6
|
+
border: none;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
min-height: 0;
|
|
9
|
+
/* TODO: Remove this override once `.form-control` isn’t used anymore */
|
|
10
|
+
padding-left: 16px;
|
|
11
|
+
padding-left: var(--size-16);
|
|
12
|
+
padding-right: 16px;
|
|
13
|
+
padding-right: var(--size-16);
|
|
14
|
+
color: #37517e;
|
|
15
|
+
color: var(--color-content-primary);
|
|
16
|
+
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
17
|
+
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
18
|
+
box-shadow: inset 0 0 0 var(--ring-width) var(--ring-color);
|
|
19
|
+
transition-property: color, opacity, box-shadow;
|
|
20
|
+
transition-timing-function: ease-in-out;
|
|
21
|
+
transition-duration: 300ms;
|
|
22
|
+
/* TODO: Remove these overrides once `.form-control` isn’t used anymore */
|
|
23
|
+
}.np-form-control:focus-visible {
|
|
24
|
+
outline: none;
|
|
25
|
+
}.np-form-control[aria-invalid="true"] {
|
|
26
|
+
--ring-width: 2px;
|
|
27
|
+
--ring-color: var(--color-sentiment-negative) !important;
|
|
28
|
+
}.np-form-control:hover:enabled {
|
|
29
|
+
--ring-width: 2px;
|
|
30
|
+
--ring-color: var(--color-interactive-secondary-hover);
|
|
31
|
+
}.np-form-control:focus:enabled {
|
|
32
|
+
--ring-width: 3px;
|
|
33
|
+
--ring-color: var(--color-interactive-primary);
|
|
34
|
+
}.np-form-control--size-auto {
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
font-weight: var(--font-weight-regular);
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
font-size: var(--font-size-16);
|
|
39
|
+
line-height: 150%;
|
|
40
|
+
letter-spacing: -0.011em;
|
|
41
|
+
padding-top: 12px;
|
|
42
|
+
padding-top: var(--size-12);
|
|
43
|
+
padding-bottom: 12px;
|
|
44
|
+
padding-bottom: var(--size-12);
|
|
45
|
+
}.np-form-control--size-sm,
|
|
46
|
+
.np-form-control--size-md,
|
|
47
|
+
.np-form-control--size-lg {
|
|
48
|
+
padding-top: 0 !important;
|
|
49
|
+
padding-bottom: 0 !important;
|
|
50
|
+
}.np-form-control--size-sm {
|
|
51
|
+
line-height: 1.5;
|
|
52
|
+
line-height: var(--line-height-body);
|
|
53
|
+
font-size: 1rem;
|
|
54
|
+
font-size: var(--font-size-16);
|
|
55
|
+
font-size: 0.875rem;
|
|
56
|
+
font-size: var(--font-size-14);
|
|
57
|
+
line-height: 155%;
|
|
58
|
+
letter-spacing: -0.006em;
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
font-weight: var(--font-weight-regular);
|
|
61
|
+
height: 32px !important;
|
|
62
|
+
height: var(--size-32) !important;
|
|
63
|
+
}.np-form-control--size-md {
|
|
64
|
+
font-weight: 400;
|
|
65
|
+
font-weight: var(--font-weight-regular);
|
|
66
|
+
font-size: 1rem;
|
|
67
|
+
font-size: var(--font-size-16);
|
|
68
|
+
line-height: 150%;
|
|
69
|
+
letter-spacing: -0.011em;
|
|
70
|
+
height: 48px !important;
|
|
71
|
+
height: var(--size-48) !important;
|
|
72
|
+
}.np-form-control--size-lg {
|
|
73
|
+
margin: 0;
|
|
74
|
+
color: #37517e;
|
|
75
|
+
color: var(--color-content-primary);
|
|
76
|
+
line-height: 1.2;
|
|
77
|
+
line-height: var(--line-height-title);
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
margin-bottom: 0;
|
|
80
|
+
margin-bottom: initial;
|
|
81
|
+
font-size: 1.375rem;
|
|
82
|
+
font-size: var(--font-size-22);
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
font-weight: var(--font-weight-semi-bold);
|
|
85
|
+
letter-spacing: -0.018em;
|
|
86
|
+
line-height: 125%;
|
|
87
|
+
height: 72px !important;
|
|
88
|
+
height: var(--size-72) !important;
|
|
89
|
+
}.np-form-control--size-lg + p,
|
|
90
|
+
.np-form-control--size-lg + ul:not(.list-unstyled),
|
|
91
|
+
.np-form-control--size-lg + ol:not(.list-unstyled) {
|
|
92
|
+
margin-top: 8px;
|
|
93
|
+
margin-top: var(--size-8);
|
|
94
|
+
}.np-input::-moz-placeholder {
|
|
95
|
+
color: #768e9c;
|
|
96
|
+
color: var(--color-content-tertiary);
|
|
97
|
+
}.np-input::placeholder {
|
|
98
|
+
color: #768e9c;
|
|
99
|
+
color: var(--color-content-tertiary);
|
|
100
|
+
}.np-input--shape-rectangle {
|
|
101
|
+
border-radius: 10px !important;
|
|
102
|
+
border-radius: var(--radius-small) !important;
|
|
103
|
+
}.np-input--shape-pill {
|
|
104
|
+
border-radius: 9999px !important;
|
|
105
|
+
border-radius: var(--radius-full) !important;
|
|
106
|
+
}
|
|
@@ -1 +1,62 @@
|
|
|
1
|
-
.np-input-group
|
|
1
|
+
.np-input-group {
|
|
2
|
+
display: inline-grid;
|
|
3
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
4
|
+
/* Prevent unwanted `group-hover/input` triggers */
|
|
5
|
+
border-radius: 9999px;
|
|
6
|
+
border-radius: var(--radius-full);
|
|
7
|
+
}
|
|
8
|
+
.np-input-group > * {
|
|
9
|
+
grid-column-start: 1;
|
|
10
|
+
grid-row-start: 1;
|
|
11
|
+
}
|
|
12
|
+
.np-input-addon {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
z-index: 10;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
color: #c9cbce;
|
|
18
|
+
color: var(--color-interactive-secondary);
|
|
19
|
+
transition-property: color, opacity;
|
|
20
|
+
transition-timing-function: ease-out;
|
|
21
|
+
transition-duration: 150ms;
|
|
22
|
+
}
|
|
23
|
+
.np-input-group:disabled .np-input-addon:not(.np-input-addon--interactive) {
|
|
24
|
+
opacity: 0.45;
|
|
25
|
+
mix-blend-mode: luminosity;
|
|
26
|
+
}
|
|
27
|
+
.np-input-group:has( > :is(input,button,select):focus-visible) .np-input-addon {
|
|
28
|
+
color: var(--color-interactive-primary);
|
|
29
|
+
}
|
|
30
|
+
.np-input-group:has( > :is(input,button,select):hover) .np-input-addon {
|
|
31
|
+
color: #b5b7ba;
|
|
32
|
+
color: var(--color-interactive-secondary-hover);
|
|
33
|
+
}
|
|
34
|
+
.np-input-addon--placement-start {
|
|
35
|
+
justify-self: start;
|
|
36
|
+
}
|
|
37
|
+
.np-input-addon--placement-end {
|
|
38
|
+
justify-self: end;
|
|
39
|
+
}
|
|
40
|
+
.np-input-addon--interactive > * {
|
|
41
|
+
pointer-events: auto;
|
|
42
|
+
}
|
|
43
|
+
.np-input-addon--padding-sm {
|
|
44
|
+
padding-left: 8px;
|
|
45
|
+
padding-left: var(--size-8);
|
|
46
|
+
padding-right: 8px;
|
|
47
|
+
padding-right: var(--size-8);
|
|
48
|
+
}
|
|
49
|
+
.np-input-addon--padding-md {
|
|
50
|
+
padding-left: 16px;
|
|
51
|
+
padding-left: var(--size-16);
|
|
52
|
+
padding-right: 16px;
|
|
53
|
+
padding-right: var(--size-16);
|
|
54
|
+
}
|
|
55
|
+
.np-input-addon--padding-md.np-input-addon--placement-start {
|
|
56
|
+
padding-inline-end: 8px;
|
|
57
|
+
padding-inline-end: var(--size-8);
|
|
58
|
+
}
|
|
59
|
+
.np-input-addon--padding-md.np-input-addon--placement-end {
|
|
60
|
+
padding-inline-start: 8px;
|
|
61
|
+
padding-inline-start: var(--size-8);
|
|
62
|
+
}
|