@transferwise/components 0.0.0-experimental-d07c802 → 0.0.0-experimental-efa0479

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.
Files changed (148) hide show
  1. package/build/index.esm.js +1 -1
  2. package/build/index.esm.js.map +1 -1
  3. package/build/index.js +1 -1
  4. package/build/index.js.map +1 -1
  5. package/build/main.css +1 -5510
  6. package/build/styles/accordion/Accordion.css +1 -60
  7. package/build/styles/actionButton/ActionButton.css +1 -53
  8. package/build/styles/avatar/Avatar.css +1 -205
  9. package/build/styles/badge/Badge.css +1 -68
  10. package/build/styles/button/Button.css +1 -20
  11. package/build/styles/card/Card.css +1 -100
  12. package/build/styles/checkboxButton/CheckboxButton.css +1 -24
  13. package/build/styles/chips/Chip.css +1 -190
  14. package/build/styles/circularButton/CircularButton.css +1 -211
  15. package/build/styles/common/Option/Option.css +1 -100
  16. package/build/styles/common/RadioButton/RadioButton.css +1 -4
  17. package/build/styles/common/bottomSheet/BottomSheet.css +1 -53
  18. package/build/styles/common/card/Card.css +1 -53
  19. package/build/styles/common/closeButton/CloseButton.css +1 -79
  20. package/build/styles/common/panel/Panel.css +1 -73
  21. package/build/styles/criticalBanner/CriticalCommsBanner.css +1 -77
  22. package/build/styles/dateInput/DateInput.css +1 -3
  23. package/build/styles/dateLookup/DateLookup.css +1 -98
  24. package/build/styles/dateLookup/dateTrigger/DateTrigger.css +1 -68
  25. package/build/styles/decision/Decision.css +1 -93
  26. package/build/styles/definitionList/DefinitionList.css +1 -53
  27. package/build/styles/dimmer/Dimmer.css +1 -70
  28. package/build/styles/drawer/Drawer.css +1 -100
  29. package/build/styles/dropFade/DropFade.css +1 -19
  30. package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +1 -5
  31. package/build/styles/emphasis/Emphasis.css +1 -31
  32. package/build/styles/flowNavigation/FlowNavigation.css +1 -72
  33. package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -21
  34. package/build/styles/flowNavigation/backButton/BackButton.css +1 -32
  35. package/build/styles/header/Header.css +1 -28
  36. package/build/styles/image/Image.css +1 -13
  37. package/build/styles/info/Info.css +1 -32
  38. package/build/styles/inputs/Input.css +1 -106
  39. package/build/styles/inputs/InputGroup.css +1 -62
  40. package/build/styles/inputs/SelectInput.css +1 -374
  41. package/build/styles/inputs/TextArea.css +1 -110
  42. package/build/styles/instructionsList/InstructionsList.css +1 -22
  43. package/build/styles/link/Link.css +1 -15
  44. package/build/styles/listItem/ListItem.css +1 -6
  45. package/build/styles/loader/Loader.css +1 -313
  46. package/build/styles/logo/Logo.css +1 -26
  47. package/build/styles/main.css +1 -5510
  48. package/build/styles/modal/Modal.css +1 -155
  49. package/build/styles/moneyInput/MoneyInput.css +1 -66
  50. package/build/styles/navigationOption/NavigationOption.css +1 -69
  51. package/build/styles/navigationOptionsList/NavigationOptionsList.css +1 -13
  52. package/build/styles/nudge/Nudge.css +1 -182
  53. package/build/styles/overlayHeader/OverlayHeader.css +1 -15
  54. package/build/styles/phoneNumberInput/PhoneNumberInput.css +1 -23
  55. package/build/styles/popover/Popover.css +1 -43
  56. package/build/styles/progress/Progress.css +1 -43
  57. package/build/styles/progressBar/ProgressBar.css +1 -14
  58. package/build/styles/promoCard/PromoCard.css +1 -186
  59. package/build/styles/section/Section.css +1 -10
  60. package/build/styles/select/Select.css +1 -314
  61. package/build/styles/slidingPanel/SlidingPanel.css +1 -105
  62. package/build/styles/snackbar/Snackbar.css +1 -93
  63. package/build/styles/statusIcon/StatusIcon.css +1 -78
  64. package/build/styles/stepper/Stepper.css +1 -108
  65. package/build/styles/summary/Summary.css +1 -81
  66. package/build/styles/switch/Switch.css +1 -68
  67. package/build/styles/tabs/Tabs.css +1 -121
  68. package/build/styles/tile/Tile.css +1 -55
  69. package/build/styles/tooltip/Tooltip.css +1 -50
  70. package/build/styles/typeahead/Typeahead.css +1 -183
  71. package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -9
  72. package/build/styles/upload/Upload.css +1 -15
  73. package/build/styles/uploadInput/UploadInput.css +1 -71
  74. package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -49
  75. package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -74
  76. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -1
  77. package/package.json +4 -4
  78. package/src/accordion/Accordion.css +1 -60
  79. package/src/actionButton/ActionButton.css +1 -53
  80. package/src/avatar/Avatar.css +1 -205
  81. package/src/badge/Badge.css +1 -68
  82. package/src/button/Button.css +1 -20
  83. package/src/card/Card.css +1 -100
  84. package/src/checkboxButton/CheckboxButton.css +1 -24
  85. package/src/chips/Chip.css +1 -190
  86. package/src/circularButton/CircularButton.css +1 -211
  87. package/src/common/Option/Option.css +1 -100
  88. package/src/common/RadioButton/RadioButton.css +1 -4
  89. package/src/common/bottomSheet/BottomSheet.css +1 -53
  90. package/src/common/card/Card.css +1 -53
  91. package/src/common/closeButton/CloseButton.css +1 -79
  92. package/src/common/panel/Panel.css +1 -73
  93. package/src/criticalBanner/CriticalCommsBanner.css +1 -77
  94. package/src/dateInput/DateInput.css +1 -3
  95. package/src/dateLookup/DateLookup.css +1 -98
  96. package/src/dateLookup/dateTrigger/DateTrigger.css +1 -68
  97. package/src/decision/Decision.css +1 -93
  98. package/src/definitionList/DefinitionList.css +1 -53
  99. package/src/dimmer/Dimmer.css +1 -70
  100. package/src/drawer/Drawer.css +1 -100
  101. package/src/dropFade/DropFade.css +1 -19
  102. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +1 -5
  103. package/src/emphasis/Emphasis.css +1 -31
  104. package/src/flowNavigation/FlowNavigation.css +1 -72
  105. package/src/flowNavigation/animatedLabel/AnimatedLabel.css +1 -21
  106. package/src/flowNavigation/backButton/BackButton.css +1 -32
  107. package/src/header/Header.css +1 -28
  108. package/src/image/Image.css +1 -13
  109. package/src/info/Info.css +1 -32
  110. package/src/inputs/Input.css +1 -106
  111. package/src/inputs/InputGroup.css +1 -62
  112. package/src/inputs/SelectInput.css +1 -374
  113. package/src/inputs/TextArea.css +1 -110
  114. package/src/instructionsList/InstructionsList.css +1 -22
  115. package/src/link/Link.css +1 -15
  116. package/src/listItem/ListItem.css +1 -6
  117. package/src/loader/Loader.css +1 -313
  118. package/src/logo/Logo.css +1 -26
  119. package/src/main.css +1 -5510
  120. package/src/modal/Modal.css +1 -155
  121. package/src/moneyInput/MoneyInput.css +1 -66
  122. package/src/navigationOption/NavigationOption.css +1 -69
  123. package/src/navigationOptionsList/NavigationOptionsList.css +1 -13
  124. package/src/nudge/Nudge.css +1 -182
  125. package/src/overlayHeader/OverlayHeader.css +1 -15
  126. package/src/phoneNumberInput/PhoneNumberInput.css +1 -23
  127. package/src/popover/Popover.css +1 -43
  128. package/src/progress/Progress.css +1 -43
  129. package/src/progressBar/ProgressBar.css +1 -14
  130. package/src/promoCard/PromoCard.css +1 -186
  131. package/src/section/Section.css +1 -10
  132. package/src/select/Select.css +1 -314
  133. package/src/slidingPanel/SlidingPanel.css +1 -105
  134. package/src/snackbar/Snackbar.css +1 -93
  135. package/src/statusIcon/StatusIcon.css +1 -78
  136. package/src/stepper/Stepper.css +1 -108
  137. package/src/summary/Summary.css +1 -81
  138. package/src/switch/Switch.css +1 -68
  139. package/src/tabs/Tabs.css +1 -121
  140. package/src/tile/Tile.css +1 -55
  141. package/src/tooltip/Tooltip.css +1 -50
  142. package/src/typeahead/Typeahead.css +1 -183
  143. package/src/typeahead/typeaheadOption/TypeaheadOption.css +1 -9
  144. package/src/typeahead/typeaheadOption/TypeaheadOption.js +3 -1
  145. package/src/upload/Upload.css +1 -15
  146. package/src/uploadInput/UploadInput.css +1 -71
  147. package/src/uploadInput/uploadButton/UploadButton.css +1 -49
  148. package/src/uploadInput/uploadItem/UploadItem.css +1 -74
@@ -1,183 +1 @@
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
+ .typeahead.open .input-group{z-index:1060}.typeahead .dropdown.btn-block{display:block}.typeahead .dropdown-menu{max-width:100%;width:100%}.np-theme-personal--bright-green .typeahead .dropdown-menu,.np-theme-personal--dark .typeahead .dropdown-menu,.np-theme-personal--forest-green .typeahead .dropdown-menu{background-color:#fff;background-color:var(--color-background-elevated)}.typeahead--multiple .np-chip{animation-duration:.03s;animation-name:slide;animation-timing-function:ease-in-out;margin-bottom:auto}.typeahead--multiple .np-chip:first-child{animation-name:slideFirst}.typeahead--multiple .np-chip-remove{animation-duration:.03s;animation-name:fadeIn;animation-timing-function:ease-in-out}.typeahead--multiple .form-control{height:auto;min-height:auto;overflow:auto;padding-bottom:0;padding-top:0}.typeahead--multiple .typeahead__input{align-self:stretch;border:none;float:none;outline:none;padding:0}.typeahead--multiple .typeahead__input-aligner{display:inline-block;height:40px;width:0}.typeahead--multiple .typeahead__input-container{cursor:text;display:flex}.typeahead--multiple .sizer{position:absolute;visibility:hidden;white-space:pre;width:auto}.typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:8px;padding-left:var(--size-8)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:0;padding-right:8px;padding-right:var(--size-8)}.typeahead--multiple.typeahead--has-value .input-group-addon+.typeahead__input-container{padding-left:0}.typeahead--multiple.typeahead--has-value .typeahead__input{margin-bottom:-7px;margin-bottom:calc(var(--size-8)*-1 + 1px);margin-left:4px;margin-left:var(--size-4)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input{margin-left:0;margin-right:4px;margin-right:var(--size-4)}.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper:after{content:"";height:calc(8px - 1);height:calc(var(--size-8) - 1);width:100%}.typeahead__input-wrapper{align-items:center;display:flex;flex:1;flex-wrap:wrap;margin-top:-1px;width:100%}.np-theme-personal .typeahead__input-wrapper{margin-top:0}.typeahead--empty.typeahead--multiple .typeahead__input-wrapper{margin:0;padding:0}.typeahead-sm.typeahead--multiple .typeahead__input-container{min-height:32px}.typeahead-sm.typeahead--multiple .typeahead__input{padding-top:0}.typeahead-md.typeahead--multiple .typeahead__input-container{min-height:var(--input-height-base)}.typeahead-lg.typeahead--multiple .typeahead__input-container{min-height:var(--input-height-large)}.typeahead-lg.typeahead--multiple .typeahead__input{padding-top:calc(8px - 1);padding-top:calc(var(--size-8) - 1)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper{margin:0;padding-bottom:8px;padding-bottom:var(--size-8)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper:after{content:none}.typeahead-lg.typeahead--multiple .np-chip{margin-bottom:0}@keyframes slide{0%{transform:translateX(-12px)}to{transform:none}}@keyframes slideFirst{0%{transform:translateX(-4px)}to{transform:none}}@keyframes fadeIn{0%{opacity:0}to{opacity:.6}}@media (max-width:575px){.typeahead .dropdown.open .dropdown-menu{bottom:auto;overflow:scroll;position:absolute}}.np-theme-personal .typeahead .input-group:not(.disabled,:disabled,.input-group--has-error):focus-within .tw-icon-search{color:var(--color-interactive-primary)}.np-theme-personal .typeahead .tw-icon-search{color:#c9cbce;color:var(--color-interactive-secondary)}.np-theme-personal .typeahead .np-chip{margin-top:9px!important}.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold{padding-right:16px;padding-right:var(--size-16)}@media (max-width:320px){.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold{padding-right:32px;padding-right:var(--size-32)}}
@@ -1,9 +1 @@
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
+ .typeahead__option.tw-dropdown-item .dropdown-item:active strong{color:#fff}.typeahead__option.tw-dropdown-item--focused{border-radius:10px;border-radius:var(--radius-small);box-shadow:inset 0 0 0 1px #c9cbce;box-shadow:inset 0 0 0 1px var(--color-interactive-secondary)}
@@ -19,7 +19,9 @@ const Option = (props) => {
19
19
  <a className="dropdown-item" href="#" tabIndex={-1} onClick={onClick}>
20
20
  <span>{hightlight(label, query)}</span>
21
21
  {note && <span className="np-text-body-default m-l-1">{note}</span>}
22
- {secondary && <span className="np-text-body-default text-ellipsis">{secondary}</span>}
22
+ {secondary && (
23
+ <span className="np-text-body-default text-ellipsis">{hightlight(secondary, query)}</span>
24
+ )}
23
25
  </a>
24
26
  </li>
25
27
  );
@@ -1,15 +1 @@
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
+ .tw-droppable-lg{min-height:346px}.tw-droppable-lg .thumbnail{max-height:72px}.tw-droppable-md{min-height:315px}.tw-droppable-md .thumbnail{max-height:72px}.tw-droppable-sm{min-height:245px}
@@ -1,71 +1 @@
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
+ .np-upload-input{border:1px solid #c9cbce;border:1px solid var(--color-interactive-secondary);border-radius:10px;border-radius:var(--radius-small)}.np-upload-input:has(:focus-visible){outline:var(--ring-outline-color) solid var(--ring-outline-width);outline-offset:var(--ring-outline-offset)}.np-upload-input.form-control{height:auto;padding:initial}.np-theme-personal .np-upload-input{border-radius:10px;border-radius:var(--radius-small)}.np-theme-personal .np-upload-input.disabled .btn{cursor:inherit}.np-theme-personal .np-upload-input .np-upload-button{border-radius:9px;border-radius:calc(var(--radius-small) - 1px);padding:16px;padding:var(--padding-small)}.np-theme-personal .np-upload-input .np-upload-input--square-top{border-top-left-radius:0;border-top-right-radius:0}.np-theme-personal .np-upload-input .np-upload-item__remove-button{border-radius:unset}.np-theme-personal .np-upload-input .np-upload-icon{color:var(--color-interactive-primary)}.np-theme-personal .np-upload-input .media-body{color:var(--color-content-link);white-space:break-spaces}.np-theme-personal .np-upload-input .media-body .np-text-body-large-bold{text-decoration:underline;text-underline-offset:.3em}.np-theme-personal .np-upload-input .media-body .np-text-body-default,.np-theme-personal .np-upload-input .media-body .np-upload-description,.np-theme-personal .np-upload-input .media-body .text-positive{color:#5d7079!important;color:var(--color-content-secondary)!important}.np-theme-personal .np-upload-input .media-body .text-negative{color:var(--color-sentiment-negative)!important}.np-theme-personal .np-upload-input .status-circle{height:24px;height:var(--size-x-small);width:24px;width:var(--size-x-small)}@media (max-width:320px){.np-theme-personal .np-upload-input .status-circle{height:48px;height:var(--size-large);width:48px;width:var(--size-large)}}
@@ -1,49 +1 @@
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
+ .np-upload-button{border:0!important;padding:12px 16px;padding:var(--size-12) var(--size-16);width:100%}.np-upload-button.np-upload-accent{color:#00a2dd;color:var(--color-interactive-accent)}label.np-upload-button:not(.disabled):active,label.np-upload-button:not(.disabled):focus-visible,label.np-upload-button:not(.disabled):hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}.np-theme-personal label.np-upload-button:not(.disabled):active,.np-theme-personal label.np-upload-button:not(.disabled):focus-visible,.np-theme-personal label.np-upload-button:not(.disabled):hover{background-color:var(--color-background-screen-hover)}.np-theme-personal .disabled label.np-upload-button:not(.disabled):active,.np-theme-personal .disabled label.np-upload-button:not(.disabled):focus-visible,.np-theme-personal .disabled label.np-upload-button:not(.disabled):hover{background-color:transparent}.np-upload-button .np-upload-icon{align-items:center;display:flex}.np-upload-button-container.droppable{border:0}.np-upload-button-container .droppable-card-content{display:flex}.np-theme-personal .np-upload-button-container .droppable-card-content{border-radius:9px;border-radius:calc(var(--radius-small) - 1px)}.np-upload-button-container input[type=file]{opacity:0;position:absolute;z-index:-1}.np-upload-button-container input[type=file]:focus-visible+label{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}
@@ -1,74 +1 @@
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
+ .np-upload-item:not(:last-child):after{border-bottom:1px solid #0000001a;border-bottom:1px solid var(--color-border-neutral);content:" ";display:block;margin:0 16px;margin:0 var(--size-16);position:relative}.np-theme-personal .np-upload-item:first-child a:active,.np-theme-personal .np-upload-item:first-child a:focus-visible,.np-theme-personal .np-upload-item:first-child a:hover{border-top-left-radius:9px;border-top-left-radius:calc(var(--radius-small) - 1px)}.np-theme-personal .np-upload-item:first-child a:active~.np-upload-item__remove-button,.np-theme-personal .np-upload-item:first-child a:focus-visible~.np-upload-item__remove-button,.np-theme-personal .np-upload-item:first-child a:hover~.np-upload-item__remove-button{border-top-right-radius:9px;border-top-right-radius:calc(var(--radius-small) - 1px)}.np-upload-item__link a{border-bottom-right-radius:0;border-top-right-radius:0;flex:1;outline:none;text-decoration:none}.np-theme-personal .np-upload-item__link a{border-radius:unset}.np-upload-item__link a.np-upload-item--single-file{border-bottom-left-radius:9px;border-bottom-left-radius:calc(var(--radius-small) - 1px)}.np-upload-item__link a:active,.np-upload-item__link a:focus-visible,.np-upload-item__link a:hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral);text-decoration:none}.np-upload-item__link a:active~.np-upload-item__remove-button,.np-upload-item__link a:focus-visible~.np-upload-item__remove-button,.np-upload-item__link a:hover~.np-upload-item__remove-button{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}.np-upload-item__link .np-upload-item__remove-button.np-upload-item--single-file{border-bottom-right-radius:9px;border-bottom-right-radius:calc(var(--radius-small) - 1px)}.np-upload-item__body{align-items:center;display:flex;justify-content:space-between}.np-upload-item__remove-button{align-self:stretch;background:transparent;color:#c9cbce;color:var(--color-interactive-secondary);flex-shrink:0;padding:12px 16px;padding:var(--size-12) var(--size-16)}.np-upload-item__remove-button:focus,.np-upload-item__remove-button:hover{color:#d03238!important;color:var(--color-interactive-negative-hover)!important}