@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veracity/vui",
3
- "version": "2.25.6-beta.0",
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",
@@ -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} // should be select on the button instead?
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. */