@campxdev/shared 1.0.0 → 1.0.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": "@campxdev/shared",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -10,7 +10,7 @@ import {
10
10
  import { ReactNode } from 'react'
11
11
  import { Controller } from 'react-hook-form'
12
12
  import FormLabel from './FormLabel'
13
- interface Props extends SelectProps {
13
+ type Props = {
14
14
  name?: string
15
15
  control?: any
16
16
  options: Array<{ label: ReactNode; value: any }>
@@ -19,7 +19,7 @@ interface Props extends SelectProps {
19
19
  onChange?: (value: any) => void
20
20
  required?: boolean
21
21
  firstItemEmpty?: boolean
22
- }
22
+ } & SelectProps
23
23
 
24
24
  const StyledFormControl = styled(FormControl)(({ theme }) => ({}))
25
25
 
@@ -50,6 +50,7 @@ export default function FormSingleSelect(props: Props) {
50
50
  <FormLabel required={required} label={label} />
51
51
  </InputLabel>
52
52
  <Select
53
+ multiple={false}
53
54
  size={size}
54
55
  error={Boolean(error)}
55
56
  variant="outlined"
@@ -9,7 +9,7 @@ import {
9
9
  import { ReactNode } from 'react'
10
10
  import { Controller } from 'react-hook-form'
11
11
  import FormLabel from './FormLabel'
12
- interface Props extends SelectProps {
12
+ type Props = {
13
13
  name?: string
14
14
  control?: any
15
15
  options: Array<{ label: ReactNode; value: any }>
@@ -19,7 +19,7 @@ interface Props extends SelectProps {
19
19
  required?: boolean
20
20
  hookForm?: boolean
21
21
  firstItemEmpty?: boolean
22
- }
22
+ } & SelectProps
23
23
 
24
24
  export default function SingleSelect(props: Props) {
25
25
  const {
@@ -46,6 +46,7 @@ export default function SingleSelect(props: Props) {
46
46
  <FormLabel required={required} label={label} />
47
47
  </InputLabel>
48
48
  <Select
49
+ multiple={false}
49
50
  variant="outlined"
50
51
  id={name}
51
52
  value={props.value}
@@ -81,6 +82,7 @@ export default function SingleSelect(props: Props) {
81
82
  <FormLabel required={required} label={label} />
82
83
  </InputLabel>
83
84
  <Select
85
+ multiple={false}
84
86
  error={Boolean(error)}
85
87
  variant="outlined"
86
88
  sx={{ color: textColor }}