@transferwise/components 46.1.0 → 46.2.0
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 +44 -23
- package/build/index.esm.js.map +1 -1
- package/build/index.js +44 -23
- package/build/index.js.map +1 -1
- package/build/main.css +5494 -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 +49 -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 +76 -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 +72 -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 +105 -1
- package/build/styles/inputs/InputGroup.css +62 -1
- package/build/styles/inputs/SelectInput.css +374 -1
- package/build/styles/inputs/TextArea.css +109 -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 +5494 -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 +179 -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/accordion/Accordion.d.ts +1 -0
- package/build/types/accordion/Accordion.d.ts.map +1 -1
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts +3 -0
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts +6 -3
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/_BottomSheet.d.ts +2 -1
- package/build/types/inputs/_BottomSheet.d.ts.map +1 -1
- package/build/types/inputs/_Popover.d.ts +2 -1
- package/build/types/inputs/_Popover.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -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 +5 -11
- package/src/accordion/Accordion.css +60 -1
- package/src/accordion/Accordion.story.tsx +8 -0
- package/src/accordion/Accordion.tsx +2 -0
- package/src/accordion/AccordionItem/AccordionItem.tsx +5 -0
- 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 +49 -1
- package/src/common/closeButton/CloseButton.css +79 -1
- package/src/common/panel/Panel.css +73 -1
- package/src/criticalBanner/CriticalCommsBanner.css +76 -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 +72 -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 +105 -1
- package/src/inputs/InputGroup.css +62 -1
- package/src/inputs/SelectInput.css +374 -1
- package/src/inputs/SelectInput.spec.tsx +52 -3
- package/src/inputs/SelectInput.story.tsx +1 -1
- package/src/inputs/SelectInput.tsx +30 -15
- package/src/inputs/TextArea.css +109 -1
- package/src/inputs/_BottomSheet.tsx +3 -0
- package/src/inputs/_Popover.tsx +3 -0
- 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 +5494 -1
- package/src/modal/Modal.css +155 -1
- package/src/moneyInput/MoneyInput.css +66 -1
- package/src/moneyInput/MoneyInput.js +3 -1
- package/src/moneyInput/MoneyInput.spec.js +4 -1
- package/src/navigationOption/NavigationOption.css +69 -1
- package/src/navigationOptionsList/NavigationOptionsList.css +13 -1
- package/src/nudge/Nudge.css +179 -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
package/src/tile/Tile.css
CHANGED
|
@@ -1 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
@media (min-width: 768px) {
|
|
2
|
+
}@media (min-width: 768px) {
|
|
3
|
+
}.np-tile {
|
|
4
|
+
min-width: 120px;
|
|
5
|
+
border-radius: 10px;
|
|
6
|
+
border-radius: var(--radius-small);
|
|
7
|
+
width: 100%;
|
|
8
|
+
}.np-theme-personal .np-tile {
|
|
9
|
+
background-color: rgba(134,167,189,0.10196);
|
|
10
|
+
background-color: var(--color-background-neutral);
|
|
11
|
+
}.np-theme-personal .np-tile .tw-avatar .tw-avatar__content {
|
|
12
|
+
background-color: var(--color-contrast);
|
|
13
|
+
}.np-tile.decision {
|
|
14
|
+
margin-top: 0;
|
|
15
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
16
|
+
border: 1px solid var(--color-border-neutral);
|
|
17
|
+
}.np-theme-personal .np-tile.decision {
|
|
18
|
+
border: none;
|
|
19
|
+
}.np-theme-personal .np-tile.decision:hover {
|
|
20
|
+
background-color: var(--color-background-neutral-hover);
|
|
21
|
+
}.np-theme-personal .np-tile.decision:active {
|
|
22
|
+
background-color: var(--color-background-neutral-active);
|
|
23
|
+
}.np-theme-personal .np-tile.decision .np-text-body-default {
|
|
24
|
+
color: #5d7079;
|
|
25
|
+
color: var(--color-content-secondary);
|
|
26
|
+
}.np-tile.np-decision__tile--fixed-width {
|
|
27
|
+
width: 300px;
|
|
28
|
+
}.np-tile__media {
|
|
29
|
+
width: 100%;
|
|
30
|
+
}.np-tile__description {
|
|
31
|
+
color: #5d7079;
|
|
32
|
+
color: var(--color-content-secondary);
|
|
33
|
+
margin-top: 12px;
|
|
34
|
+
margin-top: var(--size-12);
|
|
35
|
+
display: inline-block;
|
|
36
|
+
}.np-tile--small.np-decision__tile--fixed-width {
|
|
37
|
+
width: 260px;
|
|
38
|
+
}.np-tile--small .np-tile__description {
|
|
39
|
+
margin-top: 4px;
|
|
40
|
+
margin-top: var(--size-4);
|
|
41
|
+
}.np-tile:hover .tw-avatar {
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}.np-tile:hover .tw-avatar .tw-avatar__content {
|
|
44
|
+
background-color: #ffffff;
|
|
45
|
+
background-color: var(--color-background-screen);
|
|
46
|
+
}.np-tile__description {
|
|
47
|
+
color: #5d7079;
|
|
48
|
+
color: var(--color-content-secondary);
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-weight: var(--font-weight-regular);
|
|
51
|
+
line-height: 1.5;
|
|
52
|
+
line-height: var(--line-height-body);
|
|
53
|
+
margin-top: 12px;
|
|
54
|
+
margin-top: var(--size-12);
|
|
55
|
+
}
|
package/src/tooltip/Tooltip.css
CHANGED
|
@@ -1 +1,50 @@
|
|
|
1
|
-
.tw-tooltip-container
|
|
1
|
+
.tw-tooltip-container {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
/*
|
|
4
|
+
What we do is we wait 0.15s so the fade out animation is seen
|
|
5
|
+
and then we run our own animation to hide it with visibility.
|
|
6
|
+
This isn't actually animating, but it just turns visibility to hidden with a delay.
|
|
7
|
+
*/
|
|
8
|
+
}
|
|
9
|
+
.tw-tooltip-container .tooltip {
|
|
10
|
+
visibility: visible;
|
|
11
|
+
-webkit-user-select: none;
|
|
12
|
+
-moz-user-select: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
.tw-tooltip-container .tooltip:not(.in) {
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
animation: tw-tooltip-disappear;
|
|
18
|
+
animation-duration: 0s;
|
|
19
|
+
animation-delay: 0.15s;
|
|
20
|
+
animation-fill-mode: both;
|
|
21
|
+
}
|
|
22
|
+
@keyframes tw-tooltip-disappear {
|
|
23
|
+
from {
|
|
24
|
+
visibility: visible;
|
|
25
|
+
}
|
|
26
|
+
to {
|
|
27
|
+
visibility: hidden;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.np-tooltip {
|
|
31
|
+
z-index: 1070;
|
|
32
|
+
visibility: hidden;
|
|
33
|
+
}
|
|
34
|
+
.np-tooltip .tooltip-inner {
|
|
35
|
+
visibility: hidden;
|
|
36
|
+
}
|
|
37
|
+
.np-tooltip--open {
|
|
38
|
+
visibility: visible;
|
|
39
|
+
visibility: initial;
|
|
40
|
+
}
|
|
41
|
+
.np-tooltip--open .tooltip-inner {
|
|
42
|
+
visibility: visible;
|
|
43
|
+
visibility: initial;
|
|
44
|
+
}
|
|
45
|
+
.np-panel[data-popper-placement^="right"] > .np-panel__content.tooltip-inner .np-panel__arrow {
|
|
46
|
+
left: -7px;
|
|
47
|
+
}
|
|
48
|
+
.np-panel[data-popper-placement^="left"] > .np-panel__content.tooltip-inner .np-panel__arrow {
|
|
49
|
+
right: -7px;
|
|
50
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import highlight from '../util/highlight';
|
|
6
6
|
|
|
7
7
|
const Option = (props) => {
|
|
8
8
|
const { option, selected, onClick, query } = props;
|
|
@@ -17,10 +17,10 @@ const Option = (props) => {
|
|
|
17
17
|
})}
|
|
18
18
|
>
|
|
19
19
|
<a className="dropdown-item" href="#" tabIndex={-1} onClick={onClick}>
|
|
20
|
-
<span>{
|
|
20
|
+
<span>{highlight(label, query)}</span>
|
|
21
21
|
{note && <span className="np-text-body-default m-l-1">{note}</span>}
|
|
22
22
|
{secondary && (
|
|
23
|
-
<span className="np-text-body-default text-ellipsis">{
|
|
23
|
+
<span className="np-text-body-default text-ellipsis">{highlight(secondary, query)}</span>
|
|
24
24
|
)}
|
|
25
25
|
</a>
|
|
26
26
|
</li>
|
package/src/upload/Upload.css
CHANGED
|
@@ -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
|
+
}
|