@veracity/vui 2.25.6-beta.0 → 2.25.6-beta.1
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/dist/cjs/select/select.d.ts.map +1 -1
- package/dist/cjs/select/select.js +2 -3
- package/dist/cjs/select/select.js.map +1 -1
- package/dist/cjs/select/select.types.d.ts +2 -1
- package/dist/cjs/select/select.types.d.ts.map +1 -1
- package/dist/esm/select/select.d.ts.map +1 -1
- package/dist/esm/select/select.js +2 -3
- package/dist/esm/select/select.js.map +1 -1
- package/dist/esm/select/select.types.d.ts +2 -1
- package/dist/esm/select/select.types.d.ts.map +1 -1
- package/dist/tsconfig.legacy.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/select/select.tsx +4 -5
- package/src/select/select.types.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "2.25.6-beta.
|
|
3
|
+
"version": "2.25.6-beta.1",
|
|
4
4
|
"description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
package/src/select/select.tsx
CHANGED
|
@@ -53,9 +53,8 @@ export function Select(props: SelectProps) {
|
|
|
53
53
|
|
|
54
54
|
const selectProps = useSelect({ defaultValue, isMultiple, onChange, value, options, selectedText, children })
|
|
55
55
|
|
|
56
|
-
if (__DEV__ && isMultiple && !Array.isArray(selectProps.value))
|
|
56
|
+
if (__DEV__ && isMultiple && !Array.isArray(selectProps.value))
|
|
57
57
|
console.error('<Select /> is used with isMultiple but its value is not an array: ', value)
|
|
58
|
-
}
|
|
59
58
|
|
|
60
59
|
const generatedId = useId()
|
|
61
60
|
const [query, setQuery] = useState<string>('')
|
|
@@ -87,8 +86,8 @@ export function Select(props: SelectProps) {
|
|
|
87
86
|
|
|
88
87
|
return (
|
|
89
88
|
<SelectProvider value={context}>
|
|
90
|
-
<Box className="vui-selectContainer" column {...rest}>
|
|
91
|
-
{label && (
|
|
89
|
+
<Box className="vui-selectContainer" column w="100%" {...rest}>
|
|
90
|
+
{!!label && (
|
|
92
91
|
<SelectLabel
|
|
93
92
|
disabled={disabled}
|
|
94
93
|
id={id}
|
|
@@ -105,7 +104,7 @@ export function Select(props: SelectProps) {
|
|
|
105
104
|
<Box mr={2}>
|
|
106
105
|
<Input
|
|
107
106
|
iconLeft="falSearch"
|
|
108
|
-
id={id}
|
|
107
|
+
id={id}
|
|
109
108
|
m={1}
|
|
110
109
|
mt={0}
|
|
111
110
|
onChange={onQueryChange}
|
|
@@ -3,6 +3,7 @@ import { ReactNode } from 'react'
|
|
|
3
3
|
import { ButtonProps } from '../button'
|
|
4
4
|
import { ListItemProps, ListProps } from '../list'
|
|
5
5
|
import { PopoverContentProps, PopoverProps } from '../popover'
|
|
6
|
+
import { SystemProps } from '../system'
|
|
6
7
|
import { ThemingProps } from '../theme'
|
|
7
8
|
import { UseSelectReturnType } from './useSelect'
|
|
8
9
|
import { UseSelectProps } from './useSelect.types'
|
|
@@ -20,6 +21,7 @@ export type SelectContext = Pick<
|
|
|
20
21
|
export type SelectGroupProps = ListProps
|
|
21
22
|
|
|
22
23
|
export type SelectProps = ThemingProps<'Select'> &
|
|
24
|
+
SystemProps &
|
|
23
25
|
PopoverProps &
|
|
24
26
|
UseSelectProps & {
|
|
25
27
|
/** Select cannot be opened and is styled accordingly. */
|