@transferwise/components 46.1.0 → 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 +6 -8
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -8
- 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/select/option/Option.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.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 +3 -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,183 @@
|
|
|
1
|
-
.typeahead.open .input-group
|
|
1
|
+
.typeahead.open .input-group {
|
|
2
|
+
z-index: 1060;
|
|
3
|
+
}
|
|
4
|
+
.typeahead .dropdown.btn-block {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
.typeahead .dropdown-menu {
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
.np-theme-personal--forest-green .typeahead .dropdown-menu,
|
|
12
|
+
.np-theme-personal--bright-green .typeahead .dropdown-menu,
|
|
13
|
+
.np-theme-personal--dark .typeahead .dropdown-menu {
|
|
14
|
+
background-color: #ffffff;
|
|
15
|
+
background-color: var(--color-background-elevated);
|
|
16
|
+
}
|
|
17
|
+
.typeahead--multiple .np-chip {
|
|
18
|
+
margin-bottom: auto;
|
|
19
|
+
animation-name: slide;
|
|
20
|
+
animation-duration: 0.03s;
|
|
21
|
+
animation-timing-function: ease-in-out;
|
|
22
|
+
}
|
|
23
|
+
.typeahead--multiple .np-chip:first-child {
|
|
24
|
+
animation-name: slideFirst;
|
|
25
|
+
}
|
|
26
|
+
.typeahead--multiple .np-chip-remove {
|
|
27
|
+
animation-name: fadeIn;
|
|
28
|
+
animation-duration: 0.03s;
|
|
29
|
+
animation-timing-function: ease-in-out;
|
|
30
|
+
}
|
|
31
|
+
.typeahead--multiple .form-control {
|
|
32
|
+
height: auto;
|
|
33
|
+
min-height: auto;
|
|
34
|
+
padding-top: 0;
|
|
35
|
+
padding-bottom: 0;
|
|
36
|
+
overflow: auto;
|
|
37
|
+
}
|
|
38
|
+
.typeahead--multiple .typeahead__input {
|
|
39
|
+
border: none;
|
|
40
|
+
outline: none;
|
|
41
|
+
float: none;
|
|
42
|
+
align-self: stretch;
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
.typeahead--multiple .typeahead__input-aligner {
|
|
46
|
+
height: 40px;
|
|
47
|
+
display: inline-block;
|
|
48
|
+
width: 0;
|
|
49
|
+
}
|
|
50
|
+
.typeahead--multiple .typeahead__input-container {
|
|
51
|
+
cursor: text;
|
|
52
|
+
display: flex;
|
|
53
|
+
}
|
|
54
|
+
.typeahead--multiple .sizer {
|
|
55
|
+
white-space: pre;
|
|
56
|
+
position: absolute;
|
|
57
|
+
visibility: hidden;
|
|
58
|
+
width: auto;
|
|
59
|
+
}
|
|
60
|
+
.typeahead--multiple.typeahead--has-value .typeahead__input-container {
|
|
61
|
+
padding-left: 8px;
|
|
62
|
+
padding-left: var(--size-8);
|
|
63
|
+
}
|
|
64
|
+
[dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input-container {
|
|
65
|
+
padding-right: 8px;
|
|
66
|
+
padding-right: var(--size-8);
|
|
67
|
+
padding-left: 0;
|
|
68
|
+
padding-left: initial;
|
|
69
|
+
}
|
|
70
|
+
.typeahead--multiple.typeahead--has-value .input-group-addon + .typeahead__input-container {
|
|
71
|
+
padding-left: 0;
|
|
72
|
+
}
|
|
73
|
+
.typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
74
|
+
margin-bottom: calc(-1 * 8px + 1px);
|
|
75
|
+
margin-bottom: calc(-1 * var(--size-8) + 1px);
|
|
76
|
+
margin-left: 4px;
|
|
77
|
+
margin-left: var(--size-4);
|
|
78
|
+
}
|
|
79
|
+
[dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
80
|
+
margin-right: 4px;
|
|
81
|
+
margin-right: var(--size-4);
|
|
82
|
+
margin-left: 0;
|
|
83
|
+
margin-left: initial;
|
|
84
|
+
}
|
|
85
|
+
.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
|
|
86
|
+
content: "";
|
|
87
|
+
height: calc(8px - 1);
|
|
88
|
+
height: calc(var(--size-8) - 1);
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
.typeahead__input-wrapper {
|
|
92
|
+
width: 100%;
|
|
93
|
+
margin-top: -1px;
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
flex: 1;
|
|
97
|
+
align-items: center;
|
|
98
|
+
}
|
|
99
|
+
.np-theme-personal .typeahead__input-wrapper {
|
|
100
|
+
margin-top: 0;
|
|
101
|
+
}
|
|
102
|
+
.typeahead--empty.typeahead--multiple .typeahead__input-wrapper {
|
|
103
|
+
padding: 0;
|
|
104
|
+
margin: 0;
|
|
105
|
+
}
|
|
106
|
+
.typeahead-sm.typeahead--multiple .typeahead__input-container {
|
|
107
|
+
min-height: 32px;
|
|
108
|
+
}
|
|
109
|
+
.typeahead-sm.typeahead--multiple .typeahead__input {
|
|
110
|
+
padding-top: 0;
|
|
111
|
+
}
|
|
112
|
+
.typeahead-md.typeahead--multiple .typeahead__input-container {
|
|
113
|
+
min-height: var(--input-height-base);
|
|
114
|
+
}
|
|
115
|
+
.typeahead-lg.typeahead--multiple .typeahead__input-container {
|
|
116
|
+
min-height: var(--input-height-large);
|
|
117
|
+
}
|
|
118
|
+
.typeahead-lg.typeahead--multiple .typeahead__input {
|
|
119
|
+
padding-top: calc(8px - 1);
|
|
120
|
+
padding-top: calc(var(--size-8) - 1);
|
|
121
|
+
}
|
|
122
|
+
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
|
|
123
|
+
padding-bottom: 8px;
|
|
124
|
+
padding-bottom: var(--size-8);
|
|
125
|
+
margin: 0;
|
|
126
|
+
}
|
|
127
|
+
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper::after {
|
|
128
|
+
content: none;
|
|
129
|
+
}
|
|
130
|
+
.typeahead-lg.typeahead--multiple .np-chip {
|
|
131
|
+
margin-bottom: 0;
|
|
132
|
+
}
|
|
133
|
+
@keyframes slide {
|
|
134
|
+
from {
|
|
135
|
+
transform: translateX(-12px);
|
|
136
|
+
}
|
|
137
|
+
to {
|
|
138
|
+
transform: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
@keyframes slideFirst {
|
|
142
|
+
from {
|
|
143
|
+
transform: translateX(-4px);
|
|
144
|
+
}
|
|
145
|
+
to {
|
|
146
|
+
transform: none;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
@keyframes fadeIn {
|
|
150
|
+
from {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
}
|
|
153
|
+
to {
|
|
154
|
+
opacity: 0.6;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
@media (max-width: 575px) {
|
|
158
|
+
.typeahead .dropdown.open .dropdown-menu {
|
|
159
|
+
position: absolute;
|
|
160
|
+
bottom: auto;
|
|
161
|
+
overflow: scroll;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.np-theme-personal .typeahead .input-group:not(.disabled):not(:disabled):not(.input-group--has-error):focus-within .tw-icon-search {
|
|
165
|
+
color: var(--color-interactive-primary);
|
|
166
|
+
}
|
|
167
|
+
.np-theme-personal .typeahead .tw-icon-search {
|
|
168
|
+
color: #c9cbce;
|
|
169
|
+
color: var(--color-interactive-secondary);
|
|
170
|
+
}
|
|
171
|
+
.np-theme-personal .typeahead .np-chip {
|
|
172
|
+
margin-top: 9px !important;
|
|
173
|
+
}
|
|
174
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
175
|
+
padding-right: 16px;
|
|
176
|
+
padding-right: var(--size-16);
|
|
177
|
+
}
|
|
178
|
+
@media (max-width: 320px) {
|
|
179
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
180
|
+
padding-right: 32px;
|
|
181
|
+
padding-right: var(--size-32);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
.typeahead__option.tw-dropdown-item .dropdown-item:active strong{
|
|
1
|
+
.typeahead__option.tw-dropdown-item .dropdown-item:active strong {
|
|
2
|
+
color: #ffffff;
|
|
3
|
+
}
|
|
4
|
+
.typeahead__option.tw-dropdown-item--focused {
|
|
5
|
+
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
6
|
+
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
7
|
+
border-radius: 10px;
|
|
8
|
+
border-radius: var(--radius-small);
|
|
9
|
+
}
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
.tw-droppable-lg
|
|
1
|
+
.tw-droppable-lg {
|
|
2
|
+
min-height: 346px;
|
|
3
|
+
}
|
|
4
|
+
.tw-droppable-lg .thumbnail {
|
|
5
|
+
max-height: 72px;
|
|
6
|
+
}
|
|
7
|
+
.tw-droppable-md {
|
|
8
|
+
min-height: 315px;
|
|
9
|
+
}
|
|
10
|
+
.tw-droppable-md .thumbnail {
|
|
11
|
+
max-height: 72px;
|
|
12
|
+
}
|
|
13
|
+
.tw-droppable-sm {
|
|
14
|
+
min-height: 245px;
|
|
15
|
+
}
|
|
@@ -1 +1,71 @@
|
|
|
1
|
-
.np-upload-input
|
|
1
|
+
.np-upload-input {
|
|
2
|
+
border: 1px solid #c9cbce;
|
|
3
|
+
border: 1px solid var(--color-interactive-secondary);
|
|
4
|
+
border-radius: 10px;
|
|
5
|
+
border-radius: var(--radius-small);
|
|
6
|
+
}
|
|
7
|
+
.np-upload-input:has(:focus-visible) {
|
|
8
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
9
|
+
outline-offset: var(--ring-outline-offset);
|
|
10
|
+
}
|
|
11
|
+
.np-upload-input.form-control {
|
|
12
|
+
height: auto;
|
|
13
|
+
padding: 0;
|
|
14
|
+
padding: initial;
|
|
15
|
+
}
|
|
16
|
+
.np-theme-personal .np-upload-input {
|
|
17
|
+
border-radius: 10px;
|
|
18
|
+
border-radius: var(--radius-small);
|
|
19
|
+
}
|
|
20
|
+
.np-theme-personal .np-upload-input.disabled .btn {
|
|
21
|
+
cursor: inherit;
|
|
22
|
+
}
|
|
23
|
+
.np-theme-personal .np-upload-input .np-upload-button {
|
|
24
|
+
border-radius: calc(10px - 1px);
|
|
25
|
+
border-radius: calc(var(--radius-small) - 1px);
|
|
26
|
+
padding: 16px;
|
|
27
|
+
padding: var(--padding-small);
|
|
28
|
+
}
|
|
29
|
+
.np-theme-personal .np-upload-input .np-upload-input--square-top {
|
|
30
|
+
border-top-right-radius: 0px;
|
|
31
|
+
border-top-left-radius: 0px;
|
|
32
|
+
}
|
|
33
|
+
.np-theme-personal .np-upload-input .np-upload-item__remove-button {
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
border-radius: initial;
|
|
36
|
+
}
|
|
37
|
+
.np-theme-personal .np-upload-input .np-upload-icon {
|
|
38
|
+
color: var(--color-interactive-primary);
|
|
39
|
+
}
|
|
40
|
+
.np-theme-personal .np-upload-input .media-body {
|
|
41
|
+
color: var(--color-content-link);
|
|
42
|
+
white-space: break-spaces;
|
|
43
|
+
}
|
|
44
|
+
.np-theme-personal .np-upload-input .media-body .np-text-body-large-bold {
|
|
45
|
+
-webkit-text-decoration: underline;
|
|
46
|
+
text-decoration: underline;
|
|
47
|
+
text-underline-offset: 0.3em;
|
|
48
|
+
}
|
|
49
|
+
.np-theme-personal .np-upload-input .media-body .np-text-body-default,
|
|
50
|
+
.np-theme-personal .np-upload-input .media-body .np-upload-description,
|
|
51
|
+
.np-theme-personal .np-upload-input .media-body .text-positive {
|
|
52
|
+
color: #5d7079 !important;
|
|
53
|
+
color: var(--color-content-secondary) !important;
|
|
54
|
+
}
|
|
55
|
+
.np-theme-personal .np-upload-input .media-body .text-negative {
|
|
56
|
+
color: var(--color-sentiment-negative) !important;
|
|
57
|
+
}
|
|
58
|
+
.np-theme-personal .np-upload-input .status-circle {
|
|
59
|
+
width: 24px;
|
|
60
|
+
width: var(--size-x-small);
|
|
61
|
+
height: 24px;
|
|
62
|
+
height: var(--size-x-small);
|
|
63
|
+
}
|
|
64
|
+
@media (max-width: 320px) {
|
|
65
|
+
.np-theme-personal .np-upload-input .status-circle {
|
|
66
|
+
width: 48px;
|
|
67
|
+
width: var(--size-large);
|
|
68
|
+
height: 48px;
|
|
69
|
+
height: var(--size-large);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1 +1,49 @@
|
|
|
1
|
-
.np-upload-button
|
|
1
|
+
.np-upload-button {
|
|
2
|
+
width: 100%;
|
|
3
|
+
border: 0 !important;
|
|
4
|
+
padding: 12px 16px;
|
|
5
|
+
padding: var(--size-12) var(--size-16);
|
|
6
|
+
}
|
|
7
|
+
.np-upload-button.np-upload-accent {
|
|
8
|
+
color: #00a2dd;
|
|
9
|
+
color: var(--color-interactive-accent);
|
|
10
|
+
}
|
|
11
|
+
label.np-upload-button:not(.disabled):hover,
|
|
12
|
+
label.np-upload-button:not(.disabled):focus-visible,
|
|
13
|
+
label.np-upload-button:not(.disabled):active {
|
|
14
|
+
background-color: rgba(134,167,189,0.10196);
|
|
15
|
+
background-color: var(--color-background-neutral);
|
|
16
|
+
}
|
|
17
|
+
.np-theme-personal label.np-upload-button:not(.disabled):hover,
|
|
18
|
+
.np-theme-personal label.np-upload-button:not(.disabled):focus-visible,
|
|
19
|
+
.np-theme-personal label.np-upload-button:not(.disabled):active {
|
|
20
|
+
background-color: var(--color-background-screen-hover);
|
|
21
|
+
}
|
|
22
|
+
.np-theme-personal .disabled label.np-upload-button:not(.disabled):hover,
|
|
23
|
+
.np-theme-personal .disabled label.np-upload-button:not(.disabled):focus-visible,
|
|
24
|
+
.np-theme-personal .disabled label.np-upload-button:not(.disabled):active {
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
.np-upload-button .np-upload-icon {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
.np-upload-button-container.droppable {
|
|
32
|
+
border: 0;
|
|
33
|
+
}
|
|
34
|
+
.np-upload-button-container .droppable-card-content {
|
|
35
|
+
display: flex;
|
|
36
|
+
}
|
|
37
|
+
.np-theme-personal .np-upload-button-container .droppable-card-content {
|
|
38
|
+
border-radius: calc(10px - 1px);
|
|
39
|
+
border-radius: calc(var(--radius-small) - 1px);
|
|
40
|
+
}
|
|
41
|
+
.np-upload-button-container input[type="file"] {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
z-index: -1;
|
|
44
|
+
position: absolute;
|
|
45
|
+
}
|
|
46
|
+
.np-upload-button-container input[type="file"]:focus-visible + label {
|
|
47
|
+
background-color: rgba(134,167,189,0.10196);
|
|
48
|
+
background-color: var(--color-background-neutral);
|
|
49
|
+
}
|
|
@@ -1 +1,74 @@
|
|
|
1
|
-
.np-upload-item:not(:last-child)
|
|
1
|
+
.np-upload-item:not(:last-child)::after {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
border-bottom: 1px solid rgba(0,0,0,0.10196);
|
|
5
|
+
border-bottom: 1px solid var(--color-border-neutral);
|
|
6
|
+
content: " ";
|
|
7
|
+
margin: 0 16px;
|
|
8
|
+
margin: 0 var(--size-16);
|
|
9
|
+
}
|
|
10
|
+
.np-theme-personal .np-upload-item:first-child a:hover,
|
|
11
|
+
.np-theme-personal .np-upload-item:first-child a:focus-visible,
|
|
12
|
+
.np-theme-personal .np-upload-item:first-child a:active {
|
|
13
|
+
border-top-left-radius: calc(10px - 1px);
|
|
14
|
+
border-top-left-radius: calc(var(--radius-small) - 1px);
|
|
15
|
+
}
|
|
16
|
+
.np-theme-personal .np-upload-item:first-child a:hover ~ .np-upload-item__remove-button,
|
|
17
|
+
.np-theme-personal .np-upload-item:first-child a:focus-visible ~ .np-upload-item__remove-button,
|
|
18
|
+
.np-theme-personal .np-upload-item:first-child a:active ~ .np-upload-item__remove-button {
|
|
19
|
+
border-top-right-radius: calc(10px - 1px);
|
|
20
|
+
border-top-right-radius: calc(var(--radius-small) - 1px);
|
|
21
|
+
}
|
|
22
|
+
.np-upload-item__link a {
|
|
23
|
+
flex: 1;
|
|
24
|
+
-webkit-text-decoration: none;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
outline: none;
|
|
27
|
+
border-top-right-radius: 0;
|
|
28
|
+
border-bottom-right-radius: 0;
|
|
29
|
+
}
|
|
30
|
+
.np-theme-personal .np-upload-item__link a {
|
|
31
|
+
border-radius: 0;
|
|
32
|
+
border-radius: initial;
|
|
33
|
+
}
|
|
34
|
+
.np-upload-item__link a.np-upload-item--single-file {
|
|
35
|
+
border-bottom-left-radius: calc(10px - 1px);
|
|
36
|
+
border-bottom-left-radius: calc(var(--radius-small) - 1px);
|
|
37
|
+
}
|
|
38
|
+
.np-upload-item__link a:hover,
|
|
39
|
+
.np-upload-item__link a:focus-visible,
|
|
40
|
+
.np-upload-item__link a:active {
|
|
41
|
+
-webkit-text-decoration: none;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
background-color: rgba(134,167,189,0.10196);
|
|
44
|
+
background-color: var(--color-background-neutral);
|
|
45
|
+
}
|
|
46
|
+
.np-upload-item__link a:hover ~ .np-upload-item__remove-button,
|
|
47
|
+
.np-upload-item__link a:focus-visible ~ .np-upload-item__remove-button,
|
|
48
|
+
.np-upload-item__link a:active ~ .np-upload-item__remove-button {
|
|
49
|
+
background-color: rgba(134,167,189,0.10196);
|
|
50
|
+
background-color: var(--color-background-neutral);
|
|
51
|
+
}
|
|
52
|
+
.np-upload-item__link .np-upload-item__remove-button.np-upload-item--single-file {
|
|
53
|
+
border-bottom-right-radius: calc(10px - 1px);
|
|
54
|
+
border-bottom-right-radius: calc(var(--radius-small) - 1px);
|
|
55
|
+
}
|
|
56
|
+
.np-upload-item__body {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
}
|
|
61
|
+
.np-upload-item__remove-button {
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
align-self: stretch;
|
|
64
|
+
padding: 12px 16px;
|
|
65
|
+
padding: var(--size-12) var(--size-16);
|
|
66
|
+
color: #c9cbce;
|
|
67
|
+
color: var(--color-interactive-secondary);
|
|
68
|
+
background: transparent;
|
|
69
|
+
}
|
|
70
|
+
.np-upload-item__remove-button:hover,
|
|
71
|
+
.np-upload-item__remove-button:focus {
|
|
72
|
+
color: #d03238 !important;
|
|
73
|
+
color: var(--color-interactive-negative-hover) !important;
|
|
74
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/select/option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA8B,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9D,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,iBAAS,MAAM,CAAC,CAAC,EAAE,EACjB,KAAK,EACL,QAAa,EACb,IAAS,EACT,SAAc,EACd,IAAI,EACJ,UAAe,EACf,QAAgB,GACjB,EAAE,KAAK,CAAC,CAAC,CAAC,+
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/select/option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA8B,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9D,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,iBAAS,MAAM,CAAC,CAAC,EAAE,EACjB,KAAK,EACL,QAAa,EACb,IAAS,EACT,SAAc,EACd,IAAI,EACJ,UAAe,EACf,QAAgB,GACjB,EAAE,KAAK,CAAC,CAAC,CAAC,+BAqDV;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function
|
|
1
|
+
export default function highlight(value: any, query: any): any;
|
|
2
2
|
//# sourceMappingURL=highlight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/typeahead/util/highlight.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/typeahead/util/highlight.js"],"names":[],"mappings":"AAAA,+DAeC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.1.
|
|
3
|
+
"version": "46.1.1",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -77,25 +77,19 @@
|
|
|
77
77
|
"react-intl": "^5.10.0",
|
|
78
78
|
"rollup": "^3.28.1",
|
|
79
79
|
"storybook": "^7.4.5",
|
|
80
|
-
"@transferwise/less-config": "3.0
|
|
81
|
-
"@transferwise/neptune-css": "14.
|
|
80
|
+
"@transferwise/less-config": "3.1.0",
|
|
81
|
+
"@transferwise/neptune-css": "14.9.1",
|
|
82
82
|
"@wise/components-theming": "0.8.4"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"@transferwise/icons": "^3.7.0",
|
|
86
|
-
"@transferwise/neptune-css": "^14.8.
|
|
86
|
+
"@transferwise/neptune-css": "^14.8.2",
|
|
87
87
|
"@wise/art": "^2.7.0",
|
|
88
88
|
"@wise/components-theming": "^0.8.4",
|
|
89
|
-
"currency-flags": "^4.0.2",
|
|
90
89
|
"react": ">=16.14",
|
|
91
90
|
"react-dom": ">=16.14",
|
|
92
91
|
"react-intl": "^5.10.0 || ^6"
|
|
93
92
|
},
|
|
94
|
-
"peerDependenciesMeta": {
|
|
95
|
-
"currency-flags": {
|
|
96
|
-
"optional": true
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
93
|
"dependencies": {
|
|
100
94
|
"@babel/runtime": "^7.22.15",
|
|
101
95
|
"@floating-ui/react": "^0.25.4",
|
|
@@ -1 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
@media (min-width: 768px) {
|
|
2
|
+
}@media (min-width: 768px) {
|
|
3
|
+
}.np-accordion-item {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}.np-accordion-item--open .media {
|
|
7
|
+
border: 0 !important;
|
|
8
|
+
}.np-accordion-item .decision:not(.disabled):not(:disabled):hover {
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
}.np-accordion-item.np-accordion-item--dark .media-body,
|
|
11
|
+
.np-accordion-item.np-accordion-item--dark .np-text-title-body {
|
|
12
|
+
color: #ffffff;
|
|
13
|
+
}.np-accordion-item__content {
|
|
14
|
+
padding: 0 12px 24px 12px;
|
|
15
|
+
padding: 0 var(--size-12) var(--size-24) var(--size-12);
|
|
16
|
+
border-bottom: 1px solid rgba(0,0,0,0.10196);
|
|
17
|
+
border-bottom: 1px solid var(--color-border-neutral);
|
|
18
|
+
}@media (min-width: 480px) {
|
|
19
|
+
.np-accordion-item__content.has-icon {
|
|
20
|
+
padding-left: 68px;
|
|
21
|
+
}
|
|
22
|
+
[dir="rtl"] .np-accordion-item__content.has-icon {
|
|
23
|
+
padding-right: 68px;
|
|
24
|
+
padding-left: 0;
|
|
25
|
+
padding-left: initial;
|
|
26
|
+
}
|
|
27
|
+
}.np-accordion-item .np-option .np-option__title {
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
font-weight: var(--font-weight-semi-bold);
|
|
30
|
+
}.np-theme-personal .np-accordion-item--with-icon .np-accordion-item__content {
|
|
31
|
+
padding: 0 56px 16px;
|
|
32
|
+
padding: 0 var(--size-56) var(--size-16);
|
|
33
|
+
}.np-theme-personal .np-accordion-item .media {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
}.np-theme-personal .np-accordion-item .decision__title {
|
|
37
|
+
font-size: 1.125rem;
|
|
38
|
+
font-size: var(--font-size-18);
|
|
39
|
+
}.np-theme-personal .np-accordion-item .np-option .np-option__title {
|
|
40
|
+
margin-bottom: 0;
|
|
41
|
+
font-size: 1.125rem;
|
|
42
|
+
font-size: var(--font-size-18);
|
|
43
|
+
letter-spacing: -0.01em;
|
|
44
|
+
letter-spacing: var(--letter-spacing-negative-xs);
|
|
45
|
+
line-height: 1.5rem;
|
|
46
|
+
line-height: var(--line-height-24);
|
|
47
|
+
}.np-theme-personal .np-accordion-item .np-option .circle-sm {
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
width: 24px;
|
|
50
|
+
width: var(--size-24);
|
|
51
|
+
height: 24px;
|
|
52
|
+
height: var(--size-24);
|
|
53
|
+
border-radius: 0;
|
|
54
|
+
}.np-theme-personal .np-accordion-item__content {
|
|
55
|
+
padding: 0 56px 16px 16px;
|
|
56
|
+
padding: 0 var(--size-56) var(--size-16) var(--size-16);
|
|
57
|
+
border-bottom: none;
|
|
58
|
+
color: #5d7079;
|
|
59
|
+
color: var(--color-content-secondary);
|
|
60
|
+
}
|
|
@@ -1 +1,53 @@
|
|
|
1
|
-
.np-action-btn
|
|
1
|
+
.np-action-btn {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
height: 32px;
|
|
4
|
+
height: var(--size-32);
|
|
5
|
+
padding: 8px 12px;
|
|
6
|
+
padding: var(--size-8) var(--size-12);
|
|
7
|
+
transition: color, background-color 0.15s ease-in-out;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
font-weight: var(--font-weight-semi-bold);
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
font-size: var(--font-size-14);
|
|
12
|
+
line-height: 1.2;
|
|
13
|
+
line-height: var(--line-height-control);
|
|
14
|
+
border-radius: 10px;
|
|
15
|
+
border-radius: var(--radius-small);
|
|
16
|
+
align-items: center;
|
|
17
|
+
color: var(--color-interactive-control);
|
|
18
|
+
background-color: #00a2dd;
|
|
19
|
+
background-color: var(--color-interactive-accent);
|
|
20
|
+
border-radius: 24px;
|
|
21
|
+
border-radius: var(--radius-large);
|
|
22
|
+
border: none;
|
|
23
|
+
}
|
|
24
|
+
@media (max-width: 320px) {
|
|
25
|
+
.np-action-btn {
|
|
26
|
+
height: 40px;
|
|
27
|
+
height: var(--size-40);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.np-action-btn.btn-priority-2 {
|
|
31
|
+
background-color: rgba(134,167,189,0.10196);
|
|
32
|
+
background-color: var(--color-background-neutral);
|
|
33
|
+
color: var(--color-interactive-primary);
|
|
34
|
+
}
|
|
35
|
+
.np-action-btn:not(:disabled):hover {
|
|
36
|
+
background-color: #008fc9;
|
|
37
|
+
background-color: var(--color-interactive-accent-hover);
|
|
38
|
+
}
|
|
39
|
+
.np-action-btn:not(:disabled):hover.btn-priority-2 {
|
|
40
|
+
background-color: var(--color-background-neutral-hover);
|
|
41
|
+
}
|
|
42
|
+
.np-action-btn:not(:disabled):active {
|
|
43
|
+
box-shadow: none;
|
|
44
|
+
border-color: transparent;
|
|
45
|
+
background-color: #0081ba;
|
|
46
|
+
background-color: var(--color-interactive-accent-active);
|
|
47
|
+
}
|
|
48
|
+
.np-action-btn:not(:disabled):active.btn-priority-2 {
|
|
49
|
+
background-color: var(--color-background-neutral-active);
|
|
50
|
+
}
|
|
51
|
+
.np-action-btn:not(:disabled):focus {
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
}
|