@kvell-group/ui 1.18.9 → 1.18.10
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/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Select as MantineSelect } from '@mantine/core'
|
|
2
|
+
import { RiArrowDownSLine as ArrowDownSVG } from '@remixicon/react'
|
|
3
|
+
import clsx from 'clsx'
|
|
4
|
+
import inputClassNames from '../Input/Input.module.css'
|
|
5
|
+
import selectClassNames from './Select.module.css'
|
|
6
|
+
|
|
7
|
+
// ----------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
const classNames = {
|
|
10
|
+
...inputClassNames,
|
|
11
|
+
root: clsx(selectClassNames.root, inputClassNames.root),
|
|
12
|
+
section: clsx(selectClassNames.section, inputClassNames.section),
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// ----------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
export const Select = MantineSelect.withProps({
|
|
18
|
+
classNames,
|
|
19
|
+
inputWrapperOrder: ['label', 'input', 'error', 'description'],
|
|
20
|
+
rightSection: <ArrowDownSVG size={16} />,
|
|
21
|
+
})
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Select as MantineSelect } from '@mantine/core'
|
|
2
|
-
import classNames from '../Input/Input.module.css'
|
|
3
|
-
|
|
4
|
-
// ----------------------------------------------------------------------
|
|
5
|
-
|
|
6
|
-
export const Select = MantineSelect.withProps({
|
|
7
|
-
classNames,
|
|
8
|
-
inputWrapperOrder: ['label', 'input', 'error', 'description'],
|
|
9
|
-
})
|