@transferwise/components 46.130.1 → 46.130.3
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/alert/Alert.js +4 -1
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +4 -1
- package/build/alert/Alert.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +6 -4
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +6 -4
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
- package/build/dateInput/DateInput.js +12 -5
- package/build/dateInput/DateInput.js.map +1 -1
- package/build/dateInput/DateInput.mjs +11 -4
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +16 -8
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +14 -6
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
- package/build/index.js +12 -7
- package/build/index.js.map +1 -1
- package/build/index.mjs +9 -3
- package/build/index.mjs.map +1 -1
- package/build/inputs/{_BottomSheet.js → SelectInput/BottomSheet/SelectInputBottomSheet.js} +7 -7
- package/build/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -0
- package/build/inputs/{_BottomSheet.mjs → SelectInput/BottomSheet/SelectInputBottomSheet.mjs} +7 -7
- package/build/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -0
- package/build/inputs/{_ButtonInput.js → SelectInput/ButtonInput/SelectInputButtonInput.js} +5 -5
- package/build/inputs/SelectInput/ButtonInput/SelectInputButtonInput.js.map +1 -0
- package/build/inputs/{_ButtonInput.mjs → SelectInput/ButtonInput/SelectInputButtonInput.mjs} +5 -5
- package/build/inputs/SelectInput/ButtonInput/SelectInputButtonInput.mjs.map +1 -0
- package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.js +26 -0
- package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.js.map +1 -0
- package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.mjs +24 -0
- package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.mjs.map +1 -0
- package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.js +59 -0
- package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.js.map +1 -0
- package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.mjs +56 -0
- package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.mjs.map +1 -0
- package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.js +50 -0
- package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.js.map +1 -0
- package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs +48 -0
- package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs.map +1 -0
- package/build/inputs/SelectInput/ItemView/SelectInputItemView.js +47 -0
- package/build/inputs/SelectInput/ItemView/SelectInputItemView.js.map +1 -0
- package/build/inputs/SelectInput/ItemView/SelectInputItemView.mjs +45 -0
- package/build/inputs/SelectInput/ItemView/SelectInputItemView.mjs.map +1 -0
- package/build/inputs/SelectInput/Option/SelectInputOption.js +42 -0
- package/build/inputs/SelectInput/Option/SelectInputOption.js.map +1 -0
- package/build/inputs/SelectInput/Option/SelectInputOption.mjs +40 -0
- package/build/inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -0
- package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.js +40 -0
- package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -0
- package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +38 -0
- package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -0
- package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.js +48 -0
- package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.js.map +1 -0
- package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.mjs +46 -0
- package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.mjs.map +1 -0
- package/build/inputs/SelectInput/Options/SelectInputOptions.js +300 -0
- package/build/inputs/SelectInput/Options/SelectInputOptions.js.map +1 -0
- package/build/inputs/SelectInput/Options/SelectInputOptions.mjs +298 -0
- package/build/inputs/SelectInput/Options/SelectInputOptions.mjs.map +1 -0
- package/build/inputs/{_Popover.js → SelectInput/Popover/SelectInputPopover.js} +7 -7
- package/build/inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -0
- package/build/inputs/{_Popover.mjs → SelectInput/Popover/SelectInputPopover.mjs} +7 -7
- package/build/inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -0
- package/build/inputs/SelectInput/SelectInput.contexts.js +29 -0
- package/build/inputs/SelectInput/SelectInput.contexts.js.map +1 -0
- package/build/inputs/SelectInput/SelectInput.contexts.mjs +24 -0
- package/build/inputs/SelectInput/SelectInput.contexts.mjs.map +1 -0
- package/build/inputs/SelectInput/SelectInput.js +222 -0
- package/build/inputs/SelectInput/SelectInput.js.map +1 -0
- package/build/inputs/SelectInput/SelectInput.messages.js.map +1 -0
- package/build/inputs/SelectInput/SelectInput.messages.mjs.map +1 -0
- package/build/inputs/SelectInput/SelectInput.mjs +216 -0
- package/build/inputs/SelectInput/SelectInput.mjs.map +1 -0
- package/build/inputs/SelectInput/SelectInput.utils.js +164 -0
- package/build/inputs/SelectInput/SelectInput.utils.js.map +1 -0
- package/build/inputs/SelectInput/SelectInput.utils.mjs +154 -0
- package/build/inputs/SelectInput/SelectInput.utils.mjs.map +1 -0
- package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.js +42 -0
- package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.js.map +1 -0
- package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.mjs +36 -0
- package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.mjs.map +1 -0
- package/build/main.css +99 -90
- package/build/moneyInput/MoneyInput.js +9 -2
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs +8 -1
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +10 -3
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +9 -2
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/styles/criticalBanner/CriticalCommsBanner.css +9 -0
- package/build/styles/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +96 -0
- package/build/styles/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +16 -0
- package/build/styles/inputs/SelectInput/ClearButton/SelectInputClearButton.css +46 -0
- package/build/styles/inputs/SelectInput/ItemView/SelectInputItemView.css +16 -0
- package/build/styles/inputs/SelectInput/Option/SelectInputOption.css +33 -0
- package/build/styles/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +37 -0
- package/build/styles/inputs/SelectInput/Options/SelectInputOptions.css +81 -0
- package/build/styles/inputs/SelectInput/Popover/SelectInputPopover.css +46 -0
- package/build/styles/main.css +99 -90
- package/build/types/alert/Alert.d.ts +2 -0
- package/build/types/alert/Alert.d.ts.map +1 -1
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts +1 -0
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/inputs/{_BottomSheet.d.ts → SelectInput/BottomSheet/SelectInputBottomSheet.d.ts} +3 -3
- package/build/types/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/BottomSheet/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/BottomSheet/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ButtonInput/SelectInputButtonInput.d.ts +5 -0
- package/build/types/inputs/SelectInput/ButtonInput/SelectInputButtonInput.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ButtonInput/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/ButtonInput/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ClearButton/SelectInputClearButton.d.ts +7 -0
- package/build/types/inputs/SelectInput/ClearButton/SelectInputClearButton.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ClearButton/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/ClearButton/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.d.ts +16 -0
- package/build/types/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/DefaultRenderTrigger/index.d.ts +2 -0
- package/build/types/inputs/SelectInput/DefaultRenderTrigger/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.d.ts +9 -0
- package/build/types/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ItemView/GroupItemView/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/ItemView/GroupItemView/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ItemView/SelectInputItemView.d.ts +11 -0
- package/build/types/inputs/SelectInput/ItemView/SelectInputItemView.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/ItemView/index.d.ts +4 -0
- package/build/types/inputs/SelectInput/ItemView/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/Option/SelectInputOption.d.ts +11 -0
- package/build/types/inputs/SelectInput/Option/SelectInputOption.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/Option/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/Option/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts +13 -0
- package/build/types/inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/OptionContent/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/OptionContent/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.d.ts +9 -0
- package/build/types/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/Options/OptionsContainer/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/Options/OptionsContainer/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/Options/SelectInputOptions.d.ts +21 -0
- package/build/types/inputs/SelectInput/Options/SelectInputOptions.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/Options/index.d.ts +4 -0
- package/build/types/inputs/SelectInput/Options/index.d.ts.map +1 -0
- package/build/types/inputs/{_Popover.d.ts → SelectInput/Popover/SelectInputPopover.d.ts} +3 -3
- package/build/types/inputs/SelectInput/Popover/SelectInputPopover.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/Popover/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/Popover/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/SelectInput.contexts.d.ts +33 -0
- package/build/types/inputs/SelectInput/SelectInput.contexts.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/SelectInput.d.ts +10 -0
- package/build/types/inputs/SelectInput/SelectInput.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/SelectInput.messages.d.ts.map +1 -0
- package/build/types/inputs/{SelectInput.d.ts → SelectInput/SelectInput.types.d.ts} +12 -38
- package/build/types/inputs/SelectInput/SelectInput.types.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/SelectInput.utils.d.ts +60 -0
- package/build/types/inputs/SelectInput/SelectInput.utils.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.d.ts +12 -0
- package/build/types/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/TriggerButton/index.d.ts +3 -0
- package/build/types/inputs/SelectInput/TriggerButton/index.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/components.d.ts +10 -0
- package/build/types/inputs/SelectInput/components.d.ts.map +1 -0
- package/build/types/inputs/SelectInput/index.d.ts +10 -0
- package/build/types/inputs/SelectInput/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/alert/Alert.tsx +6 -1
- package/src/criticalBanner/CriticalCommsBanner.css +9 -0
- package/src/criticalBanner/CriticalCommsBanner.less +13 -0
- package/src/criticalBanner/CriticalCommsBanner.test.story.tsx +15 -0
- package/src/criticalBanner/CriticalCommsBanner.test.tsx +28 -2
- package/src/criticalBanner/CriticalCommsBanner.tsx +10 -1
- package/src/index.ts +0 -1
- package/src/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +96 -0
- package/src/inputs/{_BottomSheet.tsx → SelectInput/BottomSheet/SelectInputBottomSheet.tsx} +7 -7
- package/src/inputs/SelectInput/BottomSheet/index.ts +2 -0
- package/src/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +16 -0
- package/src/inputs/{_ButtonInput.tsx → SelectInput/ButtonInput/SelectInputButtonInput.tsx} +5 -5
- package/src/inputs/SelectInput/ButtonInput/index.ts +2 -0
- package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.css +46 -0
- package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.less +39 -0
- package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.tsx +27 -0
- package/src/inputs/SelectInput/ClearButton/index.ts +2 -0
- package/src/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.tsx +74 -0
- package/src/inputs/SelectInput/DefaultRenderTrigger/index.ts +5 -0
- package/src/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.tsx +61 -0
- package/src/inputs/SelectInput/ItemView/GroupItemView/index.ts +2 -0
- package/src/inputs/SelectInput/ItemView/SelectInputItemView.css +16 -0
- package/src/inputs/SelectInput/ItemView/SelectInputItemView.less +17 -0
- package/src/inputs/SelectInput/ItemView/SelectInputItemView.tsx +48 -0
- package/src/inputs/SelectInput/ItemView/index.ts +3 -0
- package/src/inputs/SelectInput/Option/SelectInputOption.css +33 -0
- package/src/inputs/SelectInput/Option/SelectInputOption.less +32 -0
- package/src/inputs/SelectInput/Option/SelectInputOption.tsx +57 -0
- package/src/inputs/SelectInput/Option/index.ts +2 -0
- package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +37 -0
- package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.less +38 -0
- package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +72 -0
- package/src/inputs/SelectInput/OptionContent/index.ts +2 -0
- package/src/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.tsx +59 -0
- package/src/inputs/SelectInput/Options/OptionsContainer/index.ts +2 -0
- package/src/inputs/SelectInput/Options/SelectInputOptions.css +81 -0
- package/src/inputs/SelectInput/Options/SelectInputOptions.less +77 -0
- package/src/inputs/SelectInput/Options/SelectInputOptions.tsx +411 -0
- package/src/inputs/SelectInput/Options/index.ts +3 -0
- package/src/inputs/SelectInput/Popover/SelectInputPopover.css +46 -0
- package/src/inputs/{_Popover.tsx → SelectInput/Popover/SelectInputPopover.tsx} +7 -7
- package/src/inputs/SelectInput/Popover/index.ts +2 -0
- package/src/inputs/SelectInput/SelectInput.contexts.tsx +40 -0
- package/src/inputs/SelectInput/SelectInput.less +22 -0
- package/src/inputs/{SelectInput.test.tsx → SelectInput/SelectInput.test.tsx} +9 -11
- package/src/inputs/SelectInput/SelectInput.tsx +257 -0
- package/src/inputs/SelectInput/SelectInput.types.ts +113 -0
- package/src/inputs/SelectInput/SelectInput.utils.ts +205 -0
- package/src/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.tsx +36 -0
- package/src/inputs/SelectInput/TriggerButton/index.ts +5 -0
- package/src/inputs/{SelectInput.docs.mdx → SelectInput/_stories/SelectInput.docs.mdx} +0 -1
- package/src/inputs/{SelectInput.story.tsx → SelectInput/_stories/SelectInput.story.tsx} +11 -8
- package/src/inputs/{SelectInput.test.story.tsx → SelectInput/_stories/SelectInput.test.story.tsx} +6 -10
- package/src/inputs/SelectInput/components.ts +10 -0
- package/src/inputs/SelectInput/index.ts +12 -0
- package/src/main.css +99 -90
- package/src/main.less +1 -1
- package/build/inputs/SelectInput.js +0 -890
- package/build/inputs/SelectInput.js.map +0 -1
- package/build/inputs/SelectInput.messages.js.map +0 -1
- package/build/inputs/SelectInput.messages.mjs.map +0 -1
- package/build/inputs/SelectInput.mjs +0 -881
- package/build/inputs/SelectInput.mjs.map +0 -1
- package/build/inputs/_BottomSheet.js.map +0 -1
- package/build/inputs/_BottomSheet.mjs.map +0 -1
- package/build/inputs/_ButtonInput.js.map +0 -1
- package/build/inputs/_ButtonInput.mjs.map +0 -1
- package/build/inputs/_Popover.js.map +0 -1
- package/build/inputs/_Popover.mjs.map +0 -1
- package/build/types/inputs/SelectInput.d.ts.map +0 -1
- package/build/types/inputs/SelectInput.messages.d.ts.map +0 -1
- package/build/types/inputs/_BottomSheet.d.ts.map +0 -1
- package/build/types/inputs/_ButtonInput.d.ts +0 -5
- package/build/types/inputs/_ButtonInput.d.ts.map +0 -1
- package/build/types/inputs/_Popover.d.ts.map +0 -1
- package/src/inputs/SelectInput.less +0 -219
- package/src/inputs/SelectInput.tsx +0 -1269
- package/build/inputs/{SelectInput.messages.js → SelectInput/SelectInput.messages.js} +0 -0
- package/build/inputs/{SelectInput.messages.mjs → SelectInput/SelectInput.messages.mjs} +0 -0
- package/build/styles/inputs/{SelectInput.css → SelectInput/SelectInput.css} +90 -90
- package/build/types/inputs/{SelectInput.messages.d.ts → SelectInput/SelectInput.messages.d.ts} +0 -0
- package/src/inputs/{_BottomSheet.less → SelectInput/BottomSheet/SelectInputBottomSheet.less} +0 -0
- package/src/inputs/{_ButtonInput.less → SelectInput/ButtonInput/SelectInputButtonInput.less} +0 -0
- package/src/inputs/{_Popover.less → SelectInput/Popover/SelectInputPopover.less} +0 -0
- package/src/inputs/{SelectInput.css → SelectInput/SelectInput.css} +90 -90
- /package/src/inputs/{SelectInput.messages.ts → SelectInput/SelectInput.messages.ts} +0 -0
|
File without changes
|
|
File without changes
|
|
@@ -156,14 +156,91 @@
|
|
|
156
156
|
color: #5d7079;
|
|
157
157
|
color: var(--color-content-secondary);
|
|
158
158
|
}
|
|
159
|
-
.np-select-input-
|
|
159
|
+
.np-select-input-option-container {
|
|
160
|
+
display: flex;
|
|
161
|
+
cursor: default;
|
|
162
|
+
-webkit-user-select: none;
|
|
163
|
+
-moz-user-select: none;
|
|
164
|
+
user-select: none;
|
|
165
|
+
align-items: center;
|
|
166
|
+
-moz-column-gap: 8px;
|
|
167
|
+
column-gap: 8px;
|
|
168
|
+
-moz-column-gap: var(--size-8);
|
|
169
|
+
column-gap: var(--size-8);
|
|
170
|
+
border-radius: 10px;
|
|
171
|
+
border-radius: var(--radius-small);
|
|
172
|
+
padding: 12px 16px;
|
|
173
|
+
padding: var(--size-12) var(--size-16);
|
|
174
|
+
color: var(--color-interactive-primary);
|
|
175
|
+
}
|
|
176
|
+
.np-select-input-option-container:focus {
|
|
177
|
+
outline: none;
|
|
178
|
+
}
|
|
179
|
+
.np-select-input-option-container--active {
|
|
180
|
+
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
181
|
+
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
182
|
+
}
|
|
183
|
+
.np-select-input-option-container--disabled {
|
|
184
|
+
opacity: 0.45;
|
|
185
|
+
}
|
|
186
|
+
.np-select-input-option-check--not-selected {
|
|
187
|
+
visibility: hidden;
|
|
188
|
+
}
|
|
189
|
+
.np-select-input-option {
|
|
190
|
+
flex: 1;
|
|
191
|
+
}
|
|
192
|
+
.np-select-input-option-content-container {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
-moz-column-gap: 8px;
|
|
196
|
+
column-gap: 8px;
|
|
197
|
+
-moz-column-gap: var(--size-8);
|
|
198
|
+
column-gap: var(--size-8);
|
|
199
|
+
color: #37517e;
|
|
200
|
+
color: var(--color-content-primary);
|
|
201
|
+
}
|
|
202
|
+
.np-select-input-option-content-icon {
|
|
203
|
+
display: flex;
|
|
204
|
+
}
|
|
205
|
+
.np-select-input-option-content-icon--not-within-trigger {
|
|
206
|
+
align-self: flex-start;
|
|
207
|
+
}
|
|
208
|
+
.np-select-input-option-content-text {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex: 1;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
}
|
|
214
|
+
.np-select-input-option-content-text-secondary {
|
|
215
|
+
color: #5d7079;
|
|
216
|
+
color: var(--color-content-secondary);
|
|
217
|
+
}
|
|
218
|
+
.np-select-input-option-content-text-within-trigger {
|
|
160
219
|
overflow: hidden;
|
|
161
220
|
text-overflow: ellipsis;
|
|
162
221
|
white-space: nowrap;
|
|
163
222
|
}
|
|
164
|
-
.np-select-input-
|
|
165
|
-
|
|
166
|
-
|
|
223
|
+
.np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
|
|
224
|
+
margin-right: 8px;
|
|
225
|
+
margin-right: var(--size-8);
|
|
226
|
+
margin-left: 8px;
|
|
227
|
+
margin-left: var(--size-8);
|
|
228
|
+
}
|
|
229
|
+
.np-select-input-group-item--without-needle:first-child {
|
|
230
|
+
margin-top: calc(-1 * 8px);
|
|
231
|
+
margin-top: calc(-1 * var(--size-8));
|
|
232
|
+
}
|
|
233
|
+
.np-select-input-group-item-header {
|
|
234
|
+
position: sticky;
|
|
235
|
+
top: 0px;
|
|
236
|
+
z-index: 10;
|
|
237
|
+
background-color: #ffffff;
|
|
238
|
+
background-color: var(--color-background-elevated);
|
|
239
|
+
}
|
|
240
|
+
.np-select-input-separator-item {
|
|
241
|
+
margin: 8px;
|
|
242
|
+
margin: var(--size-8);
|
|
243
|
+
border-top-width: 1px;
|
|
167
244
|
}
|
|
168
245
|
.np-select-input-options-container {
|
|
169
246
|
display: flex;
|
|
@@ -242,92 +319,6 @@
|
|
|
242
319
|
contain: strict;
|
|
243
320
|
height: 100%;
|
|
244
321
|
}
|
|
245
|
-
.np-select-input-separator-item {
|
|
246
|
-
margin: 8px;
|
|
247
|
-
margin: var(--size-8);
|
|
248
|
-
border-top-width: 1px;
|
|
249
|
-
}
|
|
250
|
-
.np-select-input-group-item--without-needle:first-child {
|
|
251
|
-
margin-top: calc(-1 * 8px);
|
|
252
|
-
margin-top: calc(-1 * var(--size-8));
|
|
253
|
-
}
|
|
254
|
-
.np-select-input-group-item-header {
|
|
255
|
-
position: sticky;
|
|
256
|
-
top: 0px;
|
|
257
|
-
z-index: 10;
|
|
258
|
-
background-color: #ffffff;
|
|
259
|
-
background-color: var(--color-background-elevated);
|
|
260
|
-
}
|
|
261
|
-
.np-select-input-option-container {
|
|
262
|
-
display: flex;
|
|
263
|
-
cursor: default;
|
|
264
|
-
-webkit-user-select: none;
|
|
265
|
-
-moz-user-select: none;
|
|
266
|
-
user-select: none;
|
|
267
|
-
align-items: center;
|
|
268
|
-
-moz-column-gap: 8px;
|
|
269
|
-
column-gap: 8px;
|
|
270
|
-
-moz-column-gap: var(--size-8);
|
|
271
|
-
column-gap: var(--size-8);
|
|
272
|
-
border-radius: 10px;
|
|
273
|
-
border-radius: var(--radius-small);
|
|
274
|
-
padding: 12px 16px;
|
|
275
|
-
padding: var(--size-12) var(--size-16);
|
|
276
|
-
color: var(--color-interactive-primary);
|
|
277
|
-
}
|
|
278
|
-
.np-select-input-option-container:focus {
|
|
279
|
-
outline: none;
|
|
280
|
-
}
|
|
281
|
-
.np-select-input-option-container--active {
|
|
282
|
-
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
283
|
-
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
284
|
-
}
|
|
285
|
-
.np-select-input-option-container--disabled {
|
|
286
|
-
opacity: 0.45;
|
|
287
|
-
}
|
|
288
|
-
.np-select-input-option-check--not-selected {
|
|
289
|
-
visibility: hidden;
|
|
290
|
-
}
|
|
291
|
-
.np-select-input-option {
|
|
292
|
-
flex: 1;
|
|
293
|
-
}
|
|
294
|
-
.np-select-input-option-content-container {
|
|
295
|
-
display: flex;
|
|
296
|
-
align-items: center;
|
|
297
|
-
-moz-column-gap: 8px;
|
|
298
|
-
column-gap: 8px;
|
|
299
|
-
-moz-column-gap: var(--size-8);
|
|
300
|
-
column-gap: var(--size-8);
|
|
301
|
-
color: #37517e;
|
|
302
|
-
color: var(--color-content-primary);
|
|
303
|
-
}
|
|
304
|
-
.np-select-input-option-content-icon {
|
|
305
|
-
display: flex;
|
|
306
|
-
}
|
|
307
|
-
.np-select-input-option-content-icon--not-within-trigger {
|
|
308
|
-
align-self: flex-start;
|
|
309
|
-
}
|
|
310
|
-
.np-select-input-option-content-text {
|
|
311
|
-
display: flex;
|
|
312
|
-
flex: 1;
|
|
313
|
-
flex-direction: column;
|
|
314
|
-
overflow: hidden;
|
|
315
|
-
}
|
|
316
|
-
.np-select-input-option-content-text-secondary {
|
|
317
|
-
color: #5d7079;
|
|
318
|
-
color: var(--color-content-secondary);
|
|
319
|
-
}
|
|
320
|
-
.np-select-input-option-content-text-within-trigger {
|
|
321
|
-
overflow: hidden;
|
|
322
|
-
text-overflow: ellipsis;
|
|
323
|
-
white-space: nowrap;
|
|
324
|
-
}
|
|
325
|
-
.np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
|
|
326
|
-
margin-right: 8px;
|
|
327
|
-
margin-right: var(--size-8);
|
|
328
|
-
margin-left: 8px;
|
|
329
|
-
margin-left: var(--size-8);
|
|
330
|
-
}
|
|
331
322
|
.np-select-input-footer {
|
|
332
323
|
padding: 4px 24px 16px;
|
|
333
324
|
padding: var(--size-4) var(--size-24) var(--size-16);
|
|
@@ -378,3 +369,12 @@
|
|
|
378
369
|
border-inline-start: 1px solid rgba(0,0,0,0.10196);
|
|
379
370
|
border-inline-start: 1px solid var(--color-border-neutral);
|
|
380
371
|
}
|
|
372
|
+
.np-select-input-content {
|
|
373
|
+
overflow: hidden;
|
|
374
|
+
text-overflow: ellipsis;
|
|
375
|
+
white-space: nowrap;
|
|
376
|
+
}
|
|
377
|
+
.np-select-input-placeholder {
|
|
378
|
+
color: #768e9c;
|
|
379
|
+
color: var(--color-content-tertiary);
|
|
380
|
+
}
|
package/build/types/inputs/{SelectInput.messages.d.ts → SelectInput/SelectInput.messages.d.ts}
RENAMED
|
File without changes
|
package/src/inputs/{_BottomSheet.less → SelectInput/BottomSheet/SelectInputBottomSheet.less}
RENAMED
|
File without changes
|
package/src/inputs/{_ButtonInput.less → SelectInput/ButtonInput/SelectInputButtonInput.less}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -156,14 +156,91 @@
|
|
|
156
156
|
color: #5d7079;
|
|
157
157
|
color: var(--color-content-secondary);
|
|
158
158
|
}
|
|
159
|
-
.np-select-input-
|
|
159
|
+
.np-select-input-option-container {
|
|
160
|
+
display: flex;
|
|
161
|
+
cursor: default;
|
|
162
|
+
-webkit-user-select: none;
|
|
163
|
+
-moz-user-select: none;
|
|
164
|
+
user-select: none;
|
|
165
|
+
align-items: center;
|
|
166
|
+
-moz-column-gap: 8px;
|
|
167
|
+
column-gap: 8px;
|
|
168
|
+
-moz-column-gap: var(--size-8);
|
|
169
|
+
column-gap: var(--size-8);
|
|
170
|
+
border-radius: 10px;
|
|
171
|
+
border-radius: var(--radius-small);
|
|
172
|
+
padding: 12px 16px;
|
|
173
|
+
padding: var(--size-12) var(--size-16);
|
|
174
|
+
color: var(--color-interactive-primary);
|
|
175
|
+
}
|
|
176
|
+
.np-select-input-option-container:focus {
|
|
177
|
+
outline: none;
|
|
178
|
+
}
|
|
179
|
+
.np-select-input-option-container--active {
|
|
180
|
+
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
181
|
+
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
182
|
+
}
|
|
183
|
+
.np-select-input-option-container--disabled {
|
|
184
|
+
opacity: 0.45;
|
|
185
|
+
}
|
|
186
|
+
.np-select-input-option-check--not-selected {
|
|
187
|
+
visibility: hidden;
|
|
188
|
+
}
|
|
189
|
+
.np-select-input-option {
|
|
190
|
+
flex: 1;
|
|
191
|
+
}
|
|
192
|
+
.np-select-input-option-content-container {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
-moz-column-gap: 8px;
|
|
196
|
+
column-gap: 8px;
|
|
197
|
+
-moz-column-gap: var(--size-8);
|
|
198
|
+
column-gap: var(--size-8);
|
|
199
|
+
color: #37517e;
|
|
200
|
+
color: var(--color-content-primary);
|
|
201
|
+
}
|
|
202
|
+
.np-select-input-option-content-icon {
|
|
203
|
+
display: flex;
|
|
204
|
+
}
|
|
205
|
+
.np-select-input-option-content-icon--not-within-trigger {
|
|
206
|
+
align-self: flex-start;
|
|
207
|
+
}
|
|
208
|
+
.np-select-input-option-content-text {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex: 1;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
}
|
|
214
|
+
.np-select-input-option-content-text-secondary {
|
|
215
|
+
color: #5d7079;
|
|
216
|
+
color: var(--color-content-secondary);
|
|
217
|
+
}
|
|
218
|
+
.np-select-input-option-content-text-within-trigger {
|
|
160
219
|
overflow: hidden;
|
|
161
220
|
text-overflow: ellipsis;
|
|
162
221
|
white-space: nowrap;
|
|
163
222
|
}
|
|
164
|
-
.np-select-input-
|
|
165
|
-
|
|
166
|
-
|
|
223
|
+
.np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
|
|
224
|
+
margin-right: 8px;
|
|
225
|
+
margin-right: var(--size-8);
|
|
226
|
+
margin-left: 8px;
|
|
227
|
+
margin-left: var(--size-8);
|
|
228
|
+
}
|
|
229
|
+
.np-select-input-group-item--without-needle:first-child {
|
|
230
|
+
margin-top: calc(-1 * 8px);
|
|
231
|
+
margin-top: calc(-1 * var(--size-8));
|
|
232
|
+
}
|
|
233
|
+
.np-select-input-group-item-header {
|
|
234
|
+
position: sticky;
|
|
235
|
+
top: 0px;
|
|
236
|
+
z-index: 10;
|
|
237
|
+
background-color: #ffffff;
|
|
238
|
+
background-color: var(--color-background-elevated);
|
|
239
|
+
}
|
|
240
|
+
.np-select-input-separator-item {
|
|
241
|
+
margin: 8px;
|
|
242
|
+
margin: var(--size-8);
|
|
243
|
+
border-top-width: 1px;
|
|
167
244
|
}
|
|
168
245
|
.np-select-input-options-container {
|
|
169
246
|
display: flex;
|
|
@@ -242,92 +319,6 @@
|
|
|
242
319
|
contain: strict;
|
|
243
320
|
height: 100%;
|
|
244
321
|
}
|
|
245
|
-
.np-select-input-separator-item {
|
|
246
|
-
margin: 8px;
|
|
247
|
-
margin: var(--size-8);
|
|
248
|
-
border-top-width: 1px;
|
|
249
|
-
}
|
|
250
|
-
.np-select-input-group-item--without-needle:first-child {
|
|
251
|
-
margin-top: calc(-1 * 8px);
|
|
252
|
-
margin-top: calc(-1 * var(--size-8));
|
|
253
|
-
}
|
|
254
|
-
.np-select-input-group-item-header {
|
|
255
|
-
position: sticky;
|
|
256
|
-
top: 0px;
|
|
257
|
-
z-index: 10;
|
|
258
|
-
background-color: #ffffff;
|
|
259
|
-
background-color: var(--color-background-elevated);
|
|
260
|
-
}
|
|
261
|
-
.np-select-input-option-container {
|
|
262
|
-
display: flex;
|
|
263
|
-
cursor: default;
|
|
264
|
-
-webkit-user-select: none;
|
|
265
|
-
-moz-user-select: none;
|
|
266
|
-
user-select: none;
|
|
267
|
-
align-items: center;
|
|
268
|
-
-moz-column-gap: 8px;
|
|
269
|
-
column-gap: 8px;
|
|
270
|
-
-moz-column-gap: var(--size-8);
|
|
271
|
-
column-gap: var(--size-8);
|
|
272
|
-
border-radius: 10px;
|
|
273
|
-
border-radius: var(--radius-small);
|
|
274
|
-
padding: 12px 16px;
|
|
275
|
-
padding: var(--size-12) var(--size-16);
|
|
276
|
-
color: var(--color-interactive-primary);
|
|
277
|
-
}
|
|
278
|
-
.np-select-input-option-container:focus {
|
|
279
|
-
outline: none;
|
|
280
|
-
}
|
|
281
|
-
.np-select-input-option-container--active {
|
|
282
|
-
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
283
|
-
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
284
|
-
}
|
|
285
|
-
.np-select-input-option-container--disabled {
|
|
286
|
-
opacity: 0.45;
|
|
287
|
-
}
|
|
288
|
-
.np-select-input-option-check--not-selected {
|
|
289
|
-
visibility: hidden;
|
|
290
|
-
}
|
|
291
|
-
.np-select-input-option {
|
|
292
|
-
flex: 1;
|
|
293
|
-
}
|
|
294
|
-
.np-select-input-option-content-container {
|
|
295
|
-
display: flex;
|
|
296
|
-
align-items: center;
|
|
297
|
-
-moz-column-gap: 8px;
|
|
298
|
-
column-gap: 8px;
|
|
299
|
-
-moz-column-gap: var(--size-8);
|
|
300
|
-
column-gap: var(--size-8);
|
|
301
|
-
color: #37517e;
|
|
302
|
-
color: var(--color-content-primary);
|
|
303
|
-
}
|
|
304
|
-
.np-select-input-option-content-icon {
|
|
305
|
-
display: flex;
|
|
306
|
-
}
|
|
307
|
-
.np-select-input-option-content-icon--not-within-trigger {
|
|
308
|
-
align-self: flex-start;
|
|
309
|
-
}
|
|
310
|
-
.np-select-input-option-content-text {
|
|
311
|
-
display: flex;
|
|
312
|
-
flex: 1;
|
|
313
|
-
flex-direction: column;
|
|
314
|
-
overflow: hidden;
|
|
315
|
-
}
|
|
316
|
-
.np-select-input-option-content-text-secondary {
|
|
317
|
-
color: #5d7079;
|
|
318
|
-
color: var(--color-content-secondary);
|
|
319
|
-
}
|
|
320
|
-
.np-select-input-option-content-text-within-trigger {
|
|
321
|
-
overflow: hidden;
|
|
322
|
-
text-overflow: ellipsis;
|
|
323
|
-
white-space: nowrap;
|
|
324
|
-
}
|
|
325
|
-
.np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
|
|
326
|
-
margin-right: 8px;
|
|
327
|
-
margin-right: var(--size-8);
|
|
328
|
-
margin-left: 8px;
|
|
329
|
-
margin-left: var(--size-8);
|
|
330
|
-
}
|
|
331
322
|
.np-select-input-footer {
|
|
332
323
|
padding: 4px 24px 16px;
|
|
333
324
|
padding: var(--size-4) var(--size-24) var(--size-16);
|
|
@@ -378,3 +369,12 @@
|
|
|
378
369
|
border-inline-start: 1px solid rgba(0,0,0,0.10196);
|
|
379
370
|
border-inline-start: 1px solid var(--color-border-neutral);
|
|
380
371
|
}
|
|
372
|
+
.np-select-input-content {
|
|
373
|
+
overflow: hidden;
|
|
374
|
+
text-overflow: ellipsis;
|
|
375
|
+
white-space: nowrap;
|
|
376
|
+
}
|
|
377
|
+
.np-select-input-placeholder {
|
|
378
|
+
color: #768e9c;
|
|
379
|
+
color: var(--color-content-tertiary);
|
|
380
|
+
}
|
|
File without changes
|