@campxdev/shared 1.8.19 → 1.8.20

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.8.19",
3
+ "version": "1.8.20",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -80,6 +80,7 @@ interface MultiSelectProps {
80
80
  error?: boolean
81
81
  helperText?: string
82
82
  multiple?: boolean
83
+ limitTags?: number
83
84
  }
84
85
 
85
86
  export default function MultiSelect({
@@ -93,6 +94,7 @@ export default function MultiSelect({
93
94
  error,
94
95
  helperText,
95
96
  multiple = true,
97
+ limitTags = -1,
96
98
  ...props
97
99
  }: MultiSelectProps) {
98
100
  return (
@@ -107,6 +109,7 @@ export default function MultiSelect({
107
109
  if (!onChange) return
108
110
  onChange(value)
109
111
  }}
112
+ limitTags={limitTags}
110
113
  isOptionEqualToValue={(option: any, value: any) =>
111
114
  option?.value === value?.value
112
115
  }