@veracity/vui 2.22.3-beta.0 → 2.22.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/dist/cjs/select/select.d.ts.map +1 -1
- package/dist/cjs/select/select.js +2 -2
- package/dist/cjs/select/select.js.map +1 -1
- package/dist/cjs/select/select.types.d.ts +2 -0
- 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 -2
- package/dist/esm/select/select.js.map +1 -1
- package/dist/esm/select/select.types.d.ts +2 -0
- 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 +2 -1
- 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.22.3
|
|
3
|
+
"version": "2.22.3",
|
|
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
|
@@ -38,6 +38,7 @@ export function Select(props: SelectProps) {
|
|
|
38
38
|
name,
|
|
39
39
|
onChange,
|
|
40
40
|
options,
|
|
41
|
+
matchWidth = true,
|
|
41
42
|
placeholder = 'Please select',
|
|
42
43
|
selectedText,
|
|
43
44
|
readOnly,
|
|
@@ -95,7 +96,7 @@ export function Select(props: SelectProps) {
|
|
|
95
96
|
labelTooltipText={labelTooltipText}
|
|
96
97
|
/>
|
|
97
98
|
)}
|
|
98
|
-
<Popover matchWidth {...rest}>
|
|
99
|
+
<Popover matchWidth={matchWidth} {...rest}>
|
|
99
100
|
<>
|
|
100
101
|
{selectButton ?? <SelectButton {...selectButtonProps} />}
|
|
101
102
|
<SelectContent overflow="hidden">
|
|
@@ -44,6 +44,8 @@ export type SelectProps = ThemingProps<'Select'> &
|
|
|
44
44
|
labelMarkOptional?: boolean
|
|
45
45
|
/** Adds a tooltip with the text inside the label */
|
|
46
46
|
labelTooltipText?: string
|
|
47
|
+
/** Sets the Popover matchWidth prop. @default true */
|
|
48
|
+
matchWidth?: boolean
|
|
47
49
|
/** Data prop to display an array of options in the popover. */
|
|
48
50
|
options?: SelectOptionData[]
|
|
49
51
|
/** Displayed inside the trigger when no value is selected. */
|