@transferwise/components 0.0.0-experimental-e9426b6 → 0.0.0-experimental-0397551
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/dateInput/DateInput.js +3 -6
- package/build/dateInput/DateInput.js.map +1 -1
- package/build/dateInput/DateInput.mjs +2 -5
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +3 -5
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +1 -3
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
- package/build/index.js +3 -5
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -3
- package/build/index.mjs.map +1 -1
- package/build/inputs/SelectInput.js +821 -0
- package/build/inputs/SelectInput.js.map +1 -0
- package/build/inputs/SelectInput.messages.js.map +1 -0
- package/build/inputs/SelectInput.messages.mjs.map +1 -0
- package/build/inputs/SelectInput.mjs +813 -0
- package/build/inputs/SelectInput.mjs.map +1 -0
- package/build/main.css +47 -47
- package/build/moneyInput/MoneyInput.js +2 -5
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs +1 -4
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +2 -5
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +1 -4
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/styles/main.css +47 -47
- package/build/types/inputs/{SelectInput/SelectInput.types.d.ts → SelectInput.d.ts} +7 -4
- package/build/types/inputs/SelectInput.d.ts.map +1 -0
- package/build/types/inputs/SelectInput.messages.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/actionButton/ActionButton.story.tsx +3 -0
- package/src/checkbox/Checkbox.story.tsx +3 -0
- package/src/circularButton/CircularButton.story.tsx +3 -0
- package/src/common/bottomSheet/BottomSheet.story.tsx +12 -0
- package/src/common/circle/Circle.story.tsx +3 -0
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +3 -0
- package/src/dateInput/DateInput.test.story.tsx +6 -0
- package/src/dateLookup/DateLookup.story.tsx +3 -0
- package/src/info/Info.story.tsx +6 -0
- package/src/inputs/{SelectInput/SelectInput.docs.mdx → SelectInput.docs.mdx} +1 -0
- package/src/inputs/SelectInput.less +219 -0
- package/src/inputs/{SelectInput/SelectInput.story.tsx → SelectInput.story.tsx} +7 -7
- package/src/inputs/SelectInput.tsx +1190 -0
- package/src/main.css +47 -47
- package/src/main.less +1 -1
- package/src/modal/Modal.story.tsx +15 -0
- package/src/snackbar/Snackbar.test.story.tsx +9 -0
- package/build/inputs/SelectInput/SelectInput.helpers.js +0 -115
- package/build/inputs/SelectInput/SelectInput.helpers.js.map +0 -1
- package/build/inputs/SelectInput/SelectInput.helpers.mjs +0 -109
- package/build/inputs/SelectInput/SelectInput.helpers.mjs.map +0 -1
- package/build/inputs/SelectInput/SelectInput.js +0 -216
- package/build/inputs/SelectInput/SelectInput.js.map +0 -1
- package/build/inputs/SelectInput/SelectInput.messages.js.map +0 -1
- package/build/inputs/SelectInput/SelectInput.messages.mjs.map +0 -1
- package/build/inputs/SelectInput/SelectInput.mjs +0 -210
- package/build/inputs/SelectInput/SelectInput.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.js +0 -26
- package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.mjs +0 -24
- package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.js +0 -54
- package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.mjs +0 -52
- package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.js +0 -50
- package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.mjs +0 -48
- package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.js +0 -47
- package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.mjs +0 -45
- package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.js +0 -45
- package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.mjs +0 -41
- package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.js +0 -41
- package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.mjs +0 -38
- package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.js +0 -270
- package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.mjs +0 -268
- package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.js +0 -48
- package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.mjs +0 -46
- package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.mjs.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.js +0 -41
- package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.js.map +0 -1
- package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.mjs +0 -34
- package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.mjs.map +0 -1
- package/build/styles/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.css +0 -17
- package/build/styles/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.css +0 -16
- package/build/styles/inputs/SelectInput/components/SelectInputOption/SelectInputOption.css +0 -33
- package/build/styles/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.css +0 -37
- package/build/types/inputs/SelectInput/SelectInput.d.ts +0 -3
- package/build/types/inputs/SelectInput/SelectInput.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/SelectInput.helpers.d.ts +0 -28
- package/build/types/inputs/SelectInput/SelectInput.helpers.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/SelectInput.messages.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/SelectInput.types.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.d.ts +0 -5
- package/build/types/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputClearButton/index.d.ts +0 -2
- package/build/types/inputs/SelectInput/components/SelectInputClearButton/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.d.ts +0 -9
- package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/index.d.ts +0 -2
- package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.d.ts +0 -9
- package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/index.d.ts +0 -2
- package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.d.ts +0 -8
- package/build/types/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputItemView/index.d.ts +0 -2
- package/build/types/inputs/SelectInput/components/SelectInputItemView/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOption/SelectInputOption.d.ts +0 -10
- package/build/types/inputs/SelectInput/components/SelectInputOption/SelectInputOption.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOption/index.d.ts +0 -2
- package/build/types/inputs/SelectInput/components/SelectInputOption/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.d.ts +0 -9
- package/build/types/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOptionContent/index.d.ts +0 -3
- package/build/types/inputs/SelectInput/components/SelectInputOptionContent/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.d.ts +0 -15
- package/build/types/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOptions/index.d.ts +0 -2
- package/build/types/inputs/SelectInput/components/SelectInputOptions/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.d.ts +0 -6
- package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/index.d.ts +0 -2
- package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.d.ts +0 -15
- package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/index.d.ts +0 -3
- package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/index.d.ts.map +0 -1
- package/build/types/inputs/SelectInput/index.d.ts +0 -5
- package/build/types/inputs/SelectInput/index.d.ts.map +0 -1
- package/src/inputs/SelectInput/SelectInput.helpers.ts +0 -152
- package/src/inputs/SelectInput/SelectInput.less +0 -42
- package/src/inputs/SelectInput/SelectInput.test.tsx +0 -606
- package/src/inputs/SelectInput/SelectInput.tsx +0 -247
- package/src/inputs/SelectInput/SelectInput.types.ts +0 -114
- package/src/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.tsx +0 -25
- package/src/inputs/SelectInput/components/SelectInputClearButton/index.ts +0 -1
- package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.css +0 -17
- package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.less +0 -15
- package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.tsx +0 -56
- package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/index.ts +0 -1
- package/src/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.tsx +0 -64
- package/src/inputs/SelectInput/components/SelectInputGroupItemView/index.ts +0 -1
- package/src/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.css +0 -16
- package/src/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.less +0 -17
- package/src/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.tsx +0 -55
- package/src/inputs/SelectInput/components/SelectInputItemView/index.ts +0 -1
- package/src/inputs/SelectInput/components/SelectInputOption/SelectInputOption.css +0 -33
- package/src/inputs/SelectInput/components/SelectInputOption/SelectInputOption.less +0 -32
- package/src/inputs/SelectInput/components/SelectInputOption/SelectInputOption.tsx +0 -51
- package/src/inputs/SelectInput/components/SelectInputOption/index.ts +0 -5
- package/src/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.css +0 -37
- package/src/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.less +0 -38
- package/src/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.tsx +0 -67
- package/src/inputs/SelectInput/components/SelectInputOptionContent/index.ts +0 -5
- package/src/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.less +0 -75
- package/src/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.tsx +0 -369
- package/src/inputs/SelectInput/components/SelectInputOptions/index.ts +0 -1
- package/src/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.tsx +0 -56
- package/src/inputs/SelectInput/components/SelectInputOptionsContainer/index.ts +0 -1
- package/src/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.tsx +0 -39
- package/src/inputs/SelectInput/components/SelectInputTriggerButton/index.ts +0 -5
- package/src/inputs/SelectInput/index.ts +0 -13
- package/build/inputs/{SelectInput/SelectInput.messages.js → SelectInput.messages.js} +0 -0
- package/build/inputs/{SelectInput/SelectInput.messages.mjs → SelectInput.messages.mjs} +0 -0
- package/{src/inputs/SelectInput → build/styles/inputs}/SelectInput.css +47 -47
- package/build/types/inputs/{SelectInput/SelectInput.messages.d.ts → SelectInput.messages.d.ts} +0 -0
- package/{build/styles/inputs/SelectInput → src/inputs}/SelectInput.css +47 -47
- /package/src/inputs/{SelectInput/SelectInput.messages.ts → SelectInput.messages.ts} +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { forwardRef, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
import { useEffectEvent } from '../../../../common/hooks/useEffectEvent';
|
|
4
|
-
|
|
5
|
-
interface SelectInputOptionsContainerProps extends React.ComponentPropsWithRef<'div'> {
|
|
6
|
-
onAriaActiveDescendantChange: (value: React.AriaAttributes['aria-activedescendant']) => void;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const SelectInputOptionsContainer = forwardRef(function SelectInputOptionsContainer(
|
|
10
|
-
{
|
|
11
|
-
'aria-orientation': ariaOrientation,
|
|
12
|
-
'aria-activedescendant': ariaActiveDescendant,
|
|
13
|
-
role,
|
|
14
|
-
tabIndex,
|
|
15
|
-
onAriaActiveDescendantChange,
|
|
16
|
-
onKeyDown,
|
|
17
|
-
...restProps
|
|
18
|
-
}: SelectInputOptionsContainerProps,
|
|
19
|
-
ref: React.ForwardedRef<HTMLDivElement | null>,
|
|
20
|
-
) {
|
|
21
|
-
const handleAriaActiveDescendantChange = useEffectEvent(onAriaActiveDescendantChange);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
handleAriaActiveDescendantChange(ariaActiveDescendant);
|
|
24
|
-
}, [ariaActiveDescendant, handleAriaActiveDescendantChange]);
|
|
25
|
-
|
|
26
|
-
return (
|
|
27
|
-
<div
|
|
28
|
-
ref={ref}
|
|
29
|
-
role="none"
|
|
30
|
-
onKeyDown={(event) => {
|
|
31
|
-
// Prevent confirmation close without an active item
|
|
32
|
-
if (event.key === 'Enter' && ariaActiveDescendant == null) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Required to make ListBox focusable
|
|
37
|
-
if (event.key === 'Tab') {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Prevent absorbing Escape early
|
|
42
|
-
if (event.key === 'Escape') {
|
|
43
|
-
onKeyDown?.({
|
|
44
|
-
...event,
|
|
45
|
-
preventDefault: () => {},
|
|
46
|
-
stopPropagation: () => {},
|
|
47
|
-
});
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
onKeyDown?.(event);
|
|
52
|
-
}}
|
|
53
|
-
{...restProps}
|
|
54
|
-
/>
|
|
55
|
-
);
|
|
56
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SelectInputOptionsContainer } from './SelectInputOptionsContainer';
|
package/src/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.tsx
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ListboxButton } from '@headlessui/react';
|
|
2
|
-
import mergeProps from 'merge-props';
|
|
3
|
-
import { useContext, createContext } from 'react';
|
|
4
|
-
|
|
5
|
-
import { PolymorphicWithOverrides } from '../../../../common/polymorphicWithOverrides/PolymorphicWithOverrides';
|
|
6
|
-
import { Merge } from '../../../../utils';
|
|
7
|
-
|
|
8
|
-
export const SelectInputTriggerButtonPropsContext = createContext<{
|
|
9
|
-
ref?: React.ForwardedRef<HTMLButtonElement | null>;
|
|
10
|
-
id?: string;
|
|
11
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
12
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
}>({});
|
|
15
|
-
|
|
16
|
-
type SelectInputTriggerButtonElementType = 'button' | React.ComponentType;
|
|
17
|
-
|
|
18
|
-
export type SelectInputTriggerButtonProps<
|
|
19
|
-
T extends SelectInputTriggerButtonElementType = 'button',
|
|
20
|
-
> = Merge<React.ComponentPropsWithoutRef<T>, { as?: T }>;
|
|
21
|
-
|
|
22
|
-
export function SelectInputTriggerButton<T extends SelectInputTriggerButtonElementType = 'button'>({
|
|
23
|
-
as = 'button' as T,
|
|
24
|
-
...restProps
|
|
25
|
-
}: SelectInputTriggerButtonProps<T>) {
|
|
26
|
-
const { ref, onClick, onKeyDown, ...interactionProps } = useContext(
|
|
27
|
-
SelectInputTriggerButtonPropsContext,
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<ListboxButton
|
|
32
|
-
ref={ref}
|
|
33
|
-
as={PolymorphicWithOverrides}
|
|
34
|
-
role="combobox"
|
|
35
|
-
__overrides={{ as, ...interactionProps }}
|
|
36
|
-
{...mergeProps({ onClick, onKeyDown }, restProps)}
|
|
37
|
-
/>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { SelectInput } from './SelectInput';
|
|
2
|
-
export { SelectInputOptionContent } from './components/SelectInputOptionContent';
|
|
3
|
-
export { SelectInputTriggerButton } from './components/SelectInputTriggerButton';
|
|
4
|
-
|
|
5
|
-
export type {
|
|
6
|
-
SelectInputGroupItem,
|
|
7
|
-
SelectInputItem,
|
|
8
|
-
SelectInputOptionContentProps,
|
|
9
|
-
SelectInputOptionItem,
|
|
10
|
-
SelectInputProps,
|
|
11
|
-
SelectInputSeparatorItem,
|
|
12
|
-
SelectInputTriggerButtonProps,
|
|
13
|
-
} from './SelectInput.types';
|
|
File without changes
|
|
File without changes
|
|
@@ -148,6 +148,28 @@
|
|
|
148
148
|
color: #5d7079;
|
|
149
149
|
color: var(--color-content-secondary);
|
|
150
150
|
}
|
|
151
|
+
.np-select-input-content {
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
}
|
|
156
|
+
.np-select-input-placeholder {
|
|
157
|
+
color: #768e9c;
|
|
158
|
+
color: var(--color-content-tertiary);
|
|
159
|
+
}
|
|
160
|
+
.np-select-input-options-container {
|
|
161
|
+
display: flex;
|
|
162
|
+
height: 100%;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
}
|
|
165
|
+
.np-select-input-options-container:focus {
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
@media (min-width: 576px) {
|
|
169
|
+
.np-select-input-options-container {
|
|
170
|
+
max-height: 28rem /* 448px */;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
151
173
|
.np-select-input-options-status {
|
|
152
174
|
display: flex;
|
|
153
175
|
align-items: center;
|
|
@@ -212,22 +234,21 @@
|
|
|
212
234
|
contain: strict;
|
|
213
235
|
height: 100%;
|
|
214
236
|
}
|
|
215
|
-
.np-select-input-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
.np-select-input-options-container:focus {
|
|
221
|
-
outline: none;
|
|
237
|
+
.np-select-input-separator-item {
|
|
238
|
+
margin: 8px;
|
|
239
|
+
margin: var(--size-8);
|
|
240
|
+
border-top-width: 1px;
|
|
222
241
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
242
|
+
.np-select-input-group-item--without-needle:first-child {
|
|
243
|
+
margin-top: calc(-1 * 8px);
|
|
244
|
+
margin-top: calc(-1 * var(--size-8));
|
|
227
245
|
}
|
|
228
|
-
.np-select-input-
|
|
229
|
-
|
|
230
|
-
|
|
246
|
+
.np-select-input-group-item-header {
|
|
247
|
+
position: sticky;
|
|
248
|
+
top: 0px;
|
|
249
|
+
z-index: 10;
|
|
250
|
+
background-color: #ffffff;
|
|
251
|
+
background-color: var(--color-background-elevated);
|
|
231
252
|
}
|
|
232
253
|
.np-select-input-option-container {
|
|
233
254
|
display: flex;
|
|
@@ -256,27 +277,11 @@
|
|
|
256
277
|
.np-select-input-option-container--disabled {
|
|
257
278
|
opacity: 0.45;
|
|
258
279
|
}
|
|
259
|
-
.np-select-input-option {
|
|
260
|
-
flex: 1;
|
|
261
|
-
}
|
|
262
280
|
.np-select-input-option-check--not-selected {
|
|
263
281
|
visibility: hidden;
|
|
264
282
|
}
|
|
265
|
-
.np-select-input-
|
|
266
|
-
|
|
267
|
-
margin: var(--size-8);
|
|
268
|
-
border-top-width: 1px;
|
|
269
|
-
}
|
|
270
|
-
.np-select-input-group-item--without-needle:first-child {
|
|
271
|
-
margin-top: calc(-1 * 8px);
|
|
272
|
-
margin-top: calc(-1 * var(--size-8));
|
|
273
|
-
}
|
|
274
|
-
.np-select-input-group-item-header {
|
|
275
|
-
position: sticky;
|
|
276
|
-
top: 0px;
|
|
277
|
-
z-index: 10;
|
|
278
|
-
background-color: #ffffff;
|
|
279
|
-
background-color: var(--color-background-elevated);
|
|
283
|
+
.np-select-input-option {
|
|
284
|
+
flex: 1;
|
|
280
285
|
}
|
|
281
286
|
.np-select-input-option-content-container {
|
|
282
287
|
display: flex;
|
|
@@ -315,6 +320,10 @@
|
|
|
315
320
|
margin-left: 8px;
|
|
316
321
|
margin-left: var(--size-8);
|
|
317
322
|
}
|
|
323
|
+
.np-select-input-footer {
|
|
324
|
+
padding: 4px 24px 16px;
|
|
325
|
+
padding: var(--size-4) var(--size-24) var(--size-16);
|
|
326
|
+
}
|
|
318
327
|
.np-select-input-addon-container {
|
|
319
328
|
pointer-events: none;
|
|
320
329
|
margin-inline-start: 4px;
|
|
@@ -326,21 +335,6 @@
|
|
|
326
335
|
margin-inline-start: 4px;
|
|
327
336
|
margin-inline-start: var(--size-4);
|
|
328
337
|
}
|
|
329
|
-
.np-select-input-addon-separator {
|
|
330
|
-
height: 24px;
|
|
331
|
-
height: var(--size-24);
|
|
332
|
-
border-inline-start: 1px solid rgba(0,0,0,0.10196);
|
|
333
|
-
border-inline-start: 1px solid var(--color-border-neutral);
|
|
334
|
-
}
|
|
335
|
-
.np-select-input-content {
|
|
336
|
-
overflow: hidden;
|
|
337
|
-
text-overflow: ellipsis;
|
|
338
|
-
white-space: nowrap;
|
|
339
|
-
}
|
|
340
|
-
.np-select-input-placeholder {
|
|
341
|
-
color: #768e9c;
|
|
342
|
-
color: var(--color-content-tertiary);
|
|
343
|
-
}
|
|
344
338
|
.np-select-input-addon {
|
|
345
339
|
border-width: 0;
|
|
346
340
|
background: none;
|
|
@@ -370,3 +364,9 @@
|
|
|
370
364
|
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
371
365
|
outline-offset: var(--ring-outline-offset);
|
|
372
366
|
}
|
|
367
|
+
.np-select-input-addon-separator {
|
|
368
|
+
height: 24px;
|
|
369
|
+
height: var(--size-24);
|
|
370
|
+
border-inline-start: 1px solid rgba(0,0,0,0.10196);
|
|
371
|
+
border-inline-start: 1px solid var(--color-border-neutral);
|
|
372
|
+
}
|
package/build/types/inputs/{SelectInput/SelectInput.messages.d.ts → SelectInput.messages.d.ts}
RENAMED
|
File without changes
|
|
@@ -148,6 +148,28 @@
|
|
|
148
148
|
color: #5d7079;
|
|
149
149
|
color: var(--color-content-secondary);
|
|
150
150
|
}
|
|
151
|
+
.np-select-input-content {
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
}
|
|
156
|
+
.np-select-input-placeholder {
|
|
157
|
+
color: #768e9c;
|
|
158
|
+
color: var(--color-content-tertiary);
|
|
159
|
+
}
|
|
160
|
+
.np-select-input-options-container {
|
|
161
|
+
display: flex;
|
|
162
|
+
height: 100%;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
}
|
|
165
|
+
.np-select-input-options-container:focus {
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
@media (min-width: 576px) {
|
|
169
|
+
.np-select-input-options-container {
|
|
170
|
+
max-height: 28rem /* 448px */;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
151
173
|
.np-select-input-options-status {
|
|
152
174
|
display: flex;
|
|
153
175
|
align-items: center;
|
|
@@ -212,22 +234,21 @@
|
|
|
212
234
|
contain: strict;
|
|
213
235
|
height: 100%;
|
|
214
236
|
}
|
|
215
|
-
.np-select-input-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
.np-select-input-options-container:focus {
|
|
221
|
-
outline: none;
|
|
237
|
+
.np-select-input-separator-item {
|
|
238
|
+
margin: 8px;
|
|
239
|
+
margin: var(--size-8);
|
|
240
|
+
border-top-width: 1px;
|
|
222
241
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
242
|
+
.np-select-input-group-item--without-needle:first-child {
|
|
243
|
+
margin-top: calc(-1 * 8px);
|
|
244
|
+
margin-top: calc(-1 * var(--size-8));
|
|
227
245
|
}
|
|
228
|
-
.np-select-input-
|
|
229
|
-
|
|
230
|
-
|
|
246
|
+
.np-select-input-group-item-header {
|
|
247
|
+
position: sticky;
|
|
248
|
+
top: 0px;
|
|
249
|
+
z-index: 10;
|
|
250
|
+
background-color: #ffffff;
|
|
251
|
+
background-color: var(--color-background-elevated);
|
|
231
252
|
}
|
|
232
253
|
.np-select-input-option-container {
|
|
233
254
|
display: flex;
|
|
@@ -256,27 +277,11 @@
|
|
|
256
277
|
.np-select-input-option-container--disabled {
|
|
257
278
|
opacity: 0.45;
|
|
258
279
|
}
|
|
259
|
-
.np-select-input-option {
|
|
260
|
-
flex: 1;
|
|
261
|
-
}
|
|
262
280
|
.np-select-input-option-check--not-selected {
|
|
263
281
|
visibility: hidden;
|
|
264
282
|
}
|
|
265
|
-
.np-select-input-
|
|
266
|
-
|
|
267
|
-
margin: var(--size-8);
|
|
268
|
-
border-top-width: 1px;
|
|
269
|
-
}
|
|
270
|
-
.np-select-input-group-item--without-needle:first-child {
|
|
271
|
-
margin-top: calc(-1 * 8px);
|
|
272
|
-
margin-top: calc(-1 * var(--size-8));
|
|
273
|
-
}
|
|
274
|
-
.np-select-input-group-item-header {
|
|
275
|
-
position: sticky;
|
|
276
|
-
top: 0px;
|
|
277
|
-
z-index: 10;
|
|
278
|
-
background-color: #ffffff;
|
|
279
|
-
background-color: var(--color-background-elevated);
|
|
283
|
+
.np-select-input-option {
|
|
284
|
+
flex: 1;
|
|
280
285
|
}
|
|
281
286
|
.np-select-input-option-content-container {
|
|
282
287
|
display: flex;
|
|
@@ -315,6 +320,10 @@
|
|
|
315
320
|
margin-left: 8px;
|
|
316
321
|
margin-left: var(--size-8);
|
|
317
322
|
}
|
|
323
|
+
.np-select-input-footer {
|
|
324
|
+
padding: 4px 24px 16px;
|
|
325
|
+
padding: var(--size-4) var(--size-24) var(--size-16);
|
|
326
|
+
}
|
|
318
327
|
.np-select-input-addon-container {
|
|
319
328
|
pointer-events: none;
|
|
320
329
|
margin-inline-start: 4px;
|
|
@@ -326,21 +335,6 @@
|
|
|
326
335
|
margin-inline-start: 4px;
|
|
327
336
|
margin-inline-start: var(--size-4);
|
|
328
337
|
}
|
|
329
|
-
.np-select-input-addon-separator {
|
|
330
|
-
height: 24px;
|
|
331
|
-
height: var(--size-24);
|
|
332
|
-
border-inline-start: 1px solid rgba(0,0,0,0.10196);
|
|
333
|
-
border-inline-start: 1px solid var(--color-border-neutral);
|
|
334
|
-
}
|
|
335
|
-
.np-select-input-content {
|
|
336
|
-
overflow: hidden;
|
|
337
|
-
text-overflow: ellipsis;
|
|
338
|
-
white-space: nowrap;
|
|
339
|
-
}
|
|
340
|
-
.np-select-input-placeholder {
|
|
341
|
-
color: #768e9c;
|
|
342
|
-
color: var(--color-content-tertiary);
|
|
343
|
-
}
|
|
344
338
|
.np-select-input-addon {
|
|
345
339
|
border-width: 0;
|
|
346
340
|
background: none;
|
|
@@ -370,3 +364,9 @@
|
|
|
370
364
|
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
371
365
|
outline-offset: var(--ring-outline-offset);
|
|
372
366
|
}
|
|
367
|
+
.np-select-input-addon-separator {
|
|
368
|
+
height: 24px;
|
|
369
|
+
height: var(--size-24);
|
|
370
|
+
border-inline-start: 1px solid rgba(0,0,0,0.10196);
|
|
371
|
+
border-inline-start: 1px solid var(--color-border-neutral);
|
|
372
|
+
}
|
|
File without changes
|