@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
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
display: block;
|
|
6
6
|
}
|
|
7
7
|
.typeahead .dropdown-menu {
|
|
8
|
-
max-
|
|
9
|
-
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
width: 100%;
|
|
10
10
|
}
|
|
11
11
|
.np-theme-personal--forest-green .typeahead .dropdown-menu,
|
|
12
12
|
.np-theme-personal--bright-green .typeahead .dropdown-menu,
|
|
13
13
|
.np-theme-personal--dark .typeahead .dropdown-menu {
|
|
14
|
+
background-color: #ffffff;
|
|
14
15
|
background-color: var(--color-background-elevated);
|
|
15
16
|
}
|
|
16
17
|
.typeahead--multiple .np-chip {
|
|
17
|
-
margin-
|
|
18
|
+
margin-bottom: auto;
|
|
18
19
|
animation-name: slide;
|
|
19
20
|
animation-duration: 0.03s;
|
|
20
21
|
animation-timing-function: ease-in-out;
|
|
@@ -28,10 +29,10 @@
|
|
|
28
29
|
animation-timing-function: ease-in-out;
|
|
29
30
|
}
|
|
30
31
|
.typeahead--multiple .form-control {
|
|
31
|
-
|
|
32
|
-
min-
|
|
33
|
-
padding-
|
|
34
|
-
padding-
|
|
32
|
+
height: auto;
|
|
33
|
+
min-height: auto;
|
|
34
|
+
padding-top: 0;
|
|
35
|
+
padding-bottom: 0;
|
|
35
36
|
overflow: auto;
|
|
36
37
|
}
|
|
37
38
|
.typeahead--multiple .typeahead__input {
|
|
@@ -42,9 +43,9 @@
|
|
|
42
43
|
padding: 0;
|
|
43
44
|
}
|
|
44
45
|
.typeahead--multiple .typeahead__input-aligner {
|
|
45
|
-
|
|
46
|
+
height: 40px;
|
|
46
47
|
display: inline-block;
|
|
47
|
-
|
|
48
|
+
width: 0;
|
|
48
49
|
}
|
|
49
50
|
.typeahead--multiple .typeahead__input-container {
|
|
50
51
|
cursor: text;
|
|
@@ -54,73 +55,84 @@
|
|
|
54
55
|
white-space: pre;
|
|
55
56
|
position: absolute;
|
|
56
57
|
visibility: hidden;
|
|
57
|
-
|
|
58
|
+
width: auto;
|
|
58
59
|
}
|
|
59
60
|
.typeahead--multiple.typeahead--has-value .typeahead__input-container {
|
|
60
|
-
padding-
|
|
61
|
+
padding-left: 8px;
|
|
62
|
+
padding-left: var(--size-8);
|
|
61
63
|
}
|
|
62
64
|
[dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input-container {
|
|
63
|
-
padding-
|
|
64
|
-
padding-
|
|
65
|
+
padding-right: 8px;
|
|
66
|
+
padding-right: var(--size-8);
|
|
67
|
+
padding-left: 0;
|
|
68
|
+
padding-left: initial;
|
|
65
69
|
}
|
|
66
70
|
.typeahead--multiple.typeahead--has-value .input-group-addon + .typeahead__input-container {
|
|
67
|
-
padding-
|
|
71
|
+
padding-left: 0;
|
|
68
72
|
}
|
|
69
73
|
.typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
70
|
-
margin-
|
|
71
|
-
margin-
|
|
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);
|
|
72
78
|
}
|
|
73
79
|
[dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
74
|
-
margin-
|
|
75
|
-
margin-
|
|
80
|
+
margin-right: 4px;
|
|
81
|
+
margin-right: var(--size-4);
|
|
82
|
+
margin-left: 0;
|
|
83
|
+
margin-left: initial;
|
|
76
84
|
}
|
|
77
85
|
.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
|
|
78
86
|
content: "";
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
height: calc(8px - 1);
|
|
88
|
+
height: calc(var(--size-8) - 1);
|
|
89
|
+
width: 100%;
|
|
81
90
|
}
|
|
82
91
|
.typeahead__input-wrapper {
|
|
83
|
-
|
|
84
|
-
margin-
|
|
92
|
+
width: 100%;
|
|
93
|
+
margin-top: -1px;
|
|
85
94
|
display: flex;
|
|
86
95
|
flex-wrap: wrap;
|
|
87
96
|
flex: 1;
|
|
88
97
|
align-items: center;
|
|
89
98
|
}
|
|
90
99
|
.np-theme-personal .typeahead__input-wrapper {
|
|
91
|
-
margin-
|
|
100
|
+
margin-top: 0;
|
|
92
101
|
}
|
|
93
102
|
.typeahead--empty.typeahead--multiple .typeahead__input-wrapper {
|
|
94
103
|
padding: 0;
|
|
95
104
|
margin: 0;
|
|
96
105
|
}
|
|
97
106
|
.typeahead--prompt {
|
|
98
|
-
margin-
|
|
107
|
+
margin-top: 4px;
|
|
108
|
+
margin-top: var(--size-4);
|
|
99
109
|
}
|
|
100
110
|
.typeahead-sm.typeahead--multiple .typeahead__input-container {
|
|
101
|
-
min-
|
|
111
|
+
min-height: 32px;
|
|
102
112
|
}
|
|
103
113
|
.typeahead-sm.typeahead--multiple .typeahead__input {
|
|
104
|
-
padding-
|
|
114
|
+
padding-top: 0;
|
|
105
115
|
}
|
|
106
116
|
.typeahead-md.typeahead--multiple .typeahead__input-container {
|
|
107
|
-
min-
|
|
117
|
+
min-height: var(--input-height-base);
|
|
108
118
|
}
|
|
109
119
|
.typeahead-lg.typeahead--multiple .typeahead__input-container {
|
|
110
|
-
min-
|
|
120
|
+
min-height: var(--input-height-large);
|
|
111
121
|
}
|
|
112
122
|
.typeahead-lg.typeahead--multiple .typeahead__input {
|
|
113
|
-
padding-
|
|
123
|
+
padding-top: calc(8px - 1);
|
|
124
|
+
padding-top: calc(var(--size-8) - 1);
|
|
114
125
|
}
|
|
115
126
|
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
|
|
116
|
-
padding-
|
|
127
|
+
padding-bottom: 8px;
|
|
128
|
+
padding-bottom: var(--size-8);
|
|
117
129
|
margin: 0;
|
|
118
130
|
}
|
|
119
131
|
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper::after {
|
|
120
132
|
content: none;
|
|
121
133
|
}
|
|
122
134
|
.typeahead-lg.typeahead--multiple .np-chip {
|
|
123
|
-
margin-
|
|
135
|
+
margin-bottom: 0;
|
|
124
136
|
}
|
|
125
137
|
@keyframes slide {
|
|
126
138
|
from {
|
|
@@ -146,27 +158,30 @@
|
|
|
146
158
|
opacity: 0.6;
|
|
147
159
|
}
|
|
148
160
|
}
|
|
149
|
-
@media (
|
|
161
|
+
@media (max-width: 575px) {
|
|
150
162
|
.typeahead .dropdown.open .dropdown-menu {
|
|
151
163
|
position: absolute;
|
|
152
|
-
|
|
164
|
+
bottom: auto;
|
|
153
165
|
overflow: scroll;
|
|
154
166
|
}
|
|
155
167
|
}
|
|
156
|
-
.np-theme-personal .typeahead .input-group:not(.disabled
|
|
168
|
+
.np-theme-personal .typeahead .input-group:not(.disabled):not(:disabled):not(.input-group--has-error):focus-within .tw-icon-search {
|
|
157
169
|
color: var(--color-interactive-primary);
|
|
158
170
|
}
|
|
159
171
|
.np-theme-personal .typeahead .tw-icon-search {
|
|
172
|
+
color: #c9cbce;
|
|
160
173
|
color: var(--color-interactive-secondary);
|
|
161
174
|
}
|
|
162
175
|
.np-theme-personal .typeahead .np-chip {
|
|
163
|
-
margin-
|
|
176
|
+
margin-top: 9px !important;
|
|
164
177
|
}
|
|
165
178
|
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
166
|
-
padding-
|
|
179
|
+
padding-right: 16px;
|
|
180
|
+
padding-right: var(--size-16);
|
|
167
181
|
}
|
|
168
|
-
@media (
|
|
182
|
+
@media (max-width: 320px) {
|
|
169
183
|
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
170
|
-
padding-
|
|
184
|
+
padding-right: 32px;
|
|
185
|
+
padding-right: var(--size-32);
|
|
171
186
|
}
|
|
172
187
|
}
|
package/src/upload/Upload.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.tw-droppable-lg {
|
|
2
|
-
min-
|
|
2
|
+
min-height: 346px;
|
|
3
3
|
}
|
|
4
4
|
.tw-droppable-lg .thumbnail {
|
|
5
|
-
max-
|
|
5
|
+
max-height: 72px;
|
|
6
6
|
}
|
|
7
7
|
.tw-droppable-md {
|
|
8
|
-
min-
|
|
8
|
+
min-height: 315px;
|
|
9
9
|
}
|
|
10
10
|
.tw-droppable-md .thumbnail {
|
|
11
|
-
max-
|
|
11
|
+
max-height: 72px;
|
|
12
12
|
}
|
|
13
13
|
.tw-droppable-sm {
|
|
14
|
-
min-
|
|
14
|
+
min-height: 245px;
|
|
15
15
|
}
|
|
16
16
|
.tw-droppable-lg .btn:focus-visible,
|
|
17
17
|
.tw-droppable-md .btn:focus-visible,
|
|
@@ -20,12 +20,14 @@
|
|
|
20
20
|
outline-offset: var(--ring-outline-offset);
|
|
21
21
|
}
|
|
22
22
|
.upload-error-message {
|
|
23
|
-
margin-
|
|
24
|
-
|
|
23
|
+
margin-top: 24px;
|
|
24
|
+
margin-top: var(--padding-medium);
|
|
25
|
+
border-top: 1px solid rgba(0,0,0,0.10196);
|
|
26
|
+
border-top: 1px solid var(--color-border-neutral);
|
|
25
27
|
text-align: start;
|
|
26
28
|
}
|
|
27
29
|
.upload-error-message .alert {
|
|
28
|
-
min-
|
|
30
|
+
min-width: 100px;
|
|
29
31
|
}
|
|
30
32
|
.np-theme-personal .droppable-dropping .droppable-complete-card {
|
|
31
33
|
display: none;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
.np-upload-input {
|
|
2
2
|
--outerBorder: 1px solid var(--color-interactive-secondary);
|
|
3
|
+
border-radius: 10px;
|
|
3
4
|
border-radius: var(--radius-small);
|
|
4
5
|
}
|
|
5
6
|
.np-upload-input .np-upload-input__section {
|
|
6
7
|
margin: 0;
|
|
7
8
|
}
|
|
8
9
|
.np-upload-input .np-upload-input__section:only-child .np-upload-input__item {
|
|
10
|
+
border-radius: 10px;
|
|
9
11
|
border-radius: var(--radius-small);
|
|
10
|
-
border-
|
|
12
|
+
border-bottom: var(--outerBorder);
|
|
11
13
|
}
|
|
12
14
|
.np-upload-input .np-upload-input__section:has(.np-upload-input__item:last-child.is-interactive:hover):not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__section--uploader .np-upload-input__upload-button::before {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
left: 0;
|
|
16
|
+
width: 100%;
|
|
17
|
+
top: 0;
|
|
16
18
|
}
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
.np-upload-input__upload-button {
|
|
2
2
|
position: relative;
|
|
3
|
+
padding: 16px;
|
|
3
4
|
padding: var(--size-16);
|
|
4
5
|
display: flex;
|
|
5
6
|
align-items: center;
|
|
6
7
|
margin: 0;
|
|
7
|
-
border-
|
|
8
|
-
border-
|
|
8
|
+
border-bottom-left-radius: 10px;
|
|
9
|
+
border-bottom-left-radius: var(--radius-small);
|
|
10
|
+
border-bottom-right-radius: 10px;
|
|
11
|
+
border-bottom-right-radius: var(--radius-small);
|
|
9
12
|
border: var(--outerBorder);
|
|
10
13
|
cursor: pointer;
|
|
11
14
|
}
|
|
12
15
|
.np-upload-input__upload-button .np-upload-input__title {
|
|
13
16
|
color: var(--color-content-link);
|
|
17
|
+
-webkit-text-decoration: underline;
|
|
14
18
|
text-decoration: underline;
|
|
15
19
|
text-underline-offset: 0.3em;
|
|
16
20
|
}
|
|
17
21
|
.np-upload-input__upload-button .np-upload-input__title + .np-upload-input__text {
|
|
18
|
-
margin-
|
|
22
|
+
margin-top: 4px;
|
|
23
|
+
margin-top: var(--size-4);
|
|
19
24
|
}
|
|
20
25
|
.np-upload-input__upload-button .np-upload-input__icon {
|
|
21
|
-
padding-
|
|
26
|
+
padding-right: 16px;
|
|
27
|
+
padding-right: var(--size-16);
|
|
22
28
|
color: var(--color-interactive-primary);
|
|
23
29
|
}
|
|
24
30
|
.np-upload-input__upload-button.is-dropping .np-upload-input__icon,
|
|
@@ -41,39 +47,43 @@
|
|
|
41
47
|
.np-upload-input__upload-button .np-upload-input__drop-file-overlay {
|
|
42
48
|
display: flex;
|
|
43
49
|
flex: 1;
|
|
44
|
-
padding
|
|
45
|
-
padding-inline: 0;
|
|
50
|
+
padding: 13px 0 !important;
|
|
46
51
|
background-color: transparent;
|
|
47
52
|
transition: transform 0.3s ease;
|
|
48
53
|
position: relative;
|
|
49
54
|
}
|
|
50
55
|
.np-upload-input__upload-button--with-entries {
|
|
51
|
-
border-
|
|
56
|
+
border-top-width: 0;
|
|
52
57
|
}
|
|
53
58
|
.np-upload-input__upload-button--with-entries:before {
|
|
54
59
|
display: block;
|
|
55
60
|
position: absolute;
|
|
56
|
-
|
|
61
|
+
height: 1px;
|
|
62
|
+
background-color: rgba(0,0,0,0.10196);
|
|
57
63
|
background-color: var(--color-border-neutral);
|
|
58
64
|
content: " ";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
left: 16px;
|
|
66
|
+
left: var(--size-16);
|
|
67
|
+
width: calc(100% - 2 * 16px);
|
|
68
|
+
width: calc(100% - 2 * var(--size-16));
|
|
69
|
+
top: 0;
|
|
62
70
|
}
|
|
63
71
|
.np-upload-input__upload-button--without-entries {
|
|
64
|
-
border-
|
|
72
|
+
border-top: var(--outerBorder);
|
|
73
|
+
border-radius: 10px;
|
|
65
74
|
border-radius: var(--radius-small);
|
|
66
75
|
}
|
|
67
76
|
.np-upload-input__upload-button--enabled.is-dropping,
|
|
68
77
|
.np-upload-input__upload-button--enabled:hover,
|
|
69
78
|
.np-upload-input__upload-button--enabled:active {
|
|
79
|
+
background: rgba(134,167,189,0.10196);
|
|
70
80
|
background: var(--color-background-neutral);
|
|
71
81
|
}
|
|
72
82
|
.np-upload-input__upload-button--enabled.is-dropping:before,
|
|
73
83
|
.np-upload-input__upload-button--enabled:hover:before,
|
|
74
84
|
.np-upload-input__upload-button--enabled:active:before {
|
|
75
|
-
|
|
76
|
-
|
|
85
|
+
width: 100%;
|
|
86
|
+
left: 0;
|
|
77
87
|
}
|
|
78
88
|
.np-upload-input__upload-button--disabled {
|
|
79
89
|
cursor: inherit;
|
|
@@ -1,52 +1,64 @@
|
|
|
1
1
|
.np-upload-input__item {
|
|
2
2
|
position: relative;
|
|
3
|
+
padding: 16px;
|
|
3
4
|
padding: var(--size-16);
|
|
4
5
|
display: flex;
|
|
5
6
|
align-items: flex-start;
|
|
6
|
-
border-
|
|
7
|
-
border-
|
|
7
|
+
border-left: var(--outerBorder);
|
|
8
|
+
border-right: var(--outerBorder);
|
|
8
9
|
}
|
|
9
10
|
.np-upload-input__item:first-child {
|
|
10
|
-
border-
|
|
11
|
-
border-
|
|
12
|
-
border-
|
|
11
|
+
border-top: var(--outerBorder);
|
|
12
|
+
border-top-left-radius: 10px;
|
|
13
|
+
border-top-left-radius: var(--radius-small);
|
|
14
|
+
border-top-right-radius: 10px;
|
|
15
|
+
border-top-right-radius: var(--radius-small);
|
|
13
16
|
}
|
|
14
17
|
.np-upload-input__item + .np-upload-input__item:before {
|
|
15
18
|
content: " ";
|
|
16
19
|
display: block;
|
|
17
20
|
position: absolute;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
height: 1px;
|
|
22
|
+
left: 16px;
|
|
23
|
+
left: var(--size-16);
|
|
24
|
+
width: calc(100% - 2 * 16px);
|
|
25
|
+
width: calc(100% - 2 * var(--size-16));
|
|
26
|
+
top: 0;
|
|
27
|
+
background: rgba(0,0,0,0.10196);
|
|
22
28
|
background: var(--color-border-neutral);
|
|
23
29
|
}
|
|
24
30
|
.np-upload-input__item .np-upload-input__item-content {
|
|
25
|
-
padding-
|
|
31
|
+
padding-right: 32px;
|
|
32
|
+
padding-right: var(--size-32);
|
|
26
33
|
flex: 1;
|
|
27
34
|
}
|
|
28
35
|
@media (max-width: 320px) {
|
|
29
36
|
.np-upload-input__item .np-upload-input__item-content {
|
|
30
|
-
padding-
|
|
37
|
+
padding-right: 64px;
|
|
38
|
+
padding-right: var(--size-64);
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
41
|
.np-upload-input__item .np-upload-input__title,
|
|
34
42
|
.np-upload-input__item .np-upload-input__text {
|
|
35
43
|
margin: 0;
|
|
36
|
-
text-align-last: left;
|
|
44
|
+
-moz-text-align-last: left;
|
|
45
|
+
text-align-last: left;
|
|
46
|
+
color: #5d7079;
|
|
37
47
|
color: var(--color-content-secondary);
|
|
38
48
|
}
|
|
39
49
|
.np-upload-input__item .np-upload-input__title + .np-upload-input__text {
|
|
40
|
-
margin-
|
|
50
|
+
margin-top: 4px;
|
|
51
|
+
margin-top: var(--size-4);
|
|
41
52
|
}
|
|
42
53
|
.np-upload-input__item .np-upload-input__icon {
|
|
43
|
-
padding-
|
|
54
|
+
padding-right: 16px;
|
|
55
|
+
padding-right: var(--size-16);
|
|
44
56
|
}
|
|
45
57
|
.np-upload-input__item .np-upload-input__item-link,
|
|
46
58
|
.np-upload-input__item .np-upload-input__item-container {
|
|
47
59
|
align-items: flex-start;
|
|
48
60
|
display: flex;
|
|
49
|
-
|
|
61
|
+
width: 100%;
|
|
50
62
|
}
|
|
51
63
|
.np-upload-input__item .np-upload-input__item-action {
|
|
52
64
|
--iconSize: var(--size-24);
|
|
@@ -54,23 +66,28 @@
|
|
|
54
66
|
--buttonTopRightOffset: var(--size-16);
|
|
55
67
|
--clickAreaTopRightOffset: calc((var(--clickAreaSize) - var(--iconSize)) * -0.5);
|
|
56
68
|
position: absolute;
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
right: 16px;
|
|
70
|
+
right: var(--buttonTopRightOffset);
|
|
71
|
+
top: 16px;
|
|
72
|
+
top: var(--buttonTopRightOffset);
|
|
59
73
|
}
|
|
60
|
-
@media (
|
|
74
|
+
@media (max-width: 320px) {
|
|
61
75
|
.np-upload-input__item .np-upload-input__item-action {
|
|
62
76
|
--iconSize: var(--size-48);
|
|
63
77
|
--clickAreaTopRightOffset: calc(-1 * var(--buttonTopRightOffset));
|
|
64
78
|
}
|
|
65
79
|
}
|
|
66
80
|
.np-upload-input__item .np-upload-input__item-action .np-upload-input__item-button {
|
|
67
|
-
appearance: none;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
81
|
+
-webkit-appearance: none;
|
|
82
|
+
-moz-appearance: none;
|
|
83
|
+
appearance: none;
|
|
84
|
+
height: var(--iconSize);
|
|
85
|
+
width: var(--iconSize);
|
|
86
|
+
padding: 0 4px;
|
|
87
|
+
padding: 0 var(--size-4);
|
|
72
88
|
border-radius: 50%;
|
|
73
89
|
border: 0;
|
|
90
|
+
background-color: rgba(134,167,189,0.10196);
|
|
74
91
|
background-color: var(--color-background-neutral);
|
|
75
92
|
color: var(--color-interactive-primary);
|
|
76
93
|
transition: color, background-color 0.15s ease-in-out;
|
|
@@ -82,12 +99,12 @@
|
|
|
82
99
|
.np-upload-input__item .np-upload-input__item-action .np-upload-input__item-button:before {
|
|
83
100
|
content: '';
|
|
84
101
|
display: block;
|
|
85
|
-
|
|
86
|
-
|
|
102
|
+
width: var(--clickAreaSize);
|
|
103
|
+
height: var(--clickAreaSize);
|
|
87
104
|
border-radius: 50%;
|
|
88
105
|
position: absolute;
|
|
89
|
-
|
|
90
|
-
|
|
106
|
+
top: var(--clickAreaTopRightOffset);
|
|
107
|
+
right: var(--clickAreaTopRightOffset);
|
|
91
108
|
}
|
|
92
109
|
.np-upload-input__item .np-upload-input__item-action .np-upload-input__item-button:hover {
|
|
93
110
|
background-color: var(--color-sentiment-negative);
|
|
@@ -101,14 +118,16 @@
|
|
|
101
118
|
}
|
|
102
119
|
.np-upload-input__item.is-interactive:hover:not(:has(.np-upload-input__item-button:hover)):before,
|
|
103
120
|
.np-upload-input__item.is-interactive:hover:not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__item:before {
|
|
104
|
-
|
|
105
|
-
|
|
121
|
+
width: 100%;
|
|
122
|
+
left: 0;
|
|
106
123
|
}
|
|
107
124
|
.np-upload-input__item.is-interactive .np-upload-input__item-link {
|
|
125
|
+
padding: 16px;
|
|
108
126
|
padding: var(--size-16);
|
|
127
|
+
-webkit-text-decoration: none;
|
|
109
128
|
text-decoration: none;
|
|
110
129
|
border-radius: inherit;
|
|
111
|
-
border-
|
|
130
|
+
border-top: 1px solid transparent;
|
|
112
131
|
background-clip: padding-box;
|
|
113
132
|
}
|
|
114
133
|
.np-upload-input__item.is-interactive .np-upload-input__item-link:focus-visible {
|
|
@@ -117,27 +136,31 @@
|
|
|
117
136
|
}
|
|
118
137
|
.np-upload-input__item.is-interactive .np-upload-input__item-link:hover,
|
|
119
138
|
.np-upload-input__item.is-interactive .np-upload-input__item-link:active {
|
|
139
|
+
background-color: rgba(134,167,189,0.10196);
|
|
120
140
|
background-color: var(--color-background-neutral);
|
|
121
141
|
}
|
|
122
142
|
.np-upload-input__item.is-interactive:first-child .np-upload-input__item-link {
|
|
123
|
-
border-
|
|
143
|
+
border-top-width: 0;
|
|
124
144
|
}
|
|
125
145
|
.np-upload-input__item .np-upload-input-errors {
|
|
126
|
-
padding-
|
|
146
|
+
padding-left: 0;
|
|
127
147
|
list-style-type: "";
|
|
128
148
|
}
|
|
129
149
|
.np-upload-input__item .np-upload-input-errors > li {
|
|
130
150
|
position: relative;
|
|
131
|
-
padding-
|
|
151
|
+
padding-left: 16px;
|
|
152
|
+
padding-left: var(--size-16);
|
|
132
153
|
}
|
|
133
154
|
.np-upload-input__item .np-upload-input-errors > li::before {
|
|
155
|
+
content: '•' ;
|
|
134
156
|
content: '•' / '';
|
|
135
157
|
position: absolute;
|
|
136
158
|
display: block;
|
|
137
|
-
|
|
159
|
+
left: 0;
|
|
138
160
|
}
|
|
139
161
|
@media (max-width: 320px) {
|
|
140
162
|
.np-upload-input__item .np-upload-input-errors > li {
|
|
141
|
-
padding-
|
|
163
|
+
padding-left: 32px;
|
|
164
|
+
padding-left: var(--size-32);
|
|
142
165
|
}
|
|
143
166
|
}
|