forstok-ui-lib 5.2.24 → 5.2.25

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": "forstok-ui-lib",
3
- "version": "5.2.24",
3
+ "version": "5.2.25",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -39,9 +39,10 @@ type TSelect = {
39
39
  removeMessage?: TObject
40
40
  evCreateMessageQuestion?: TMessageQuestionFunction
41
41
  isLoading?: boolean
42
+ height?: string
42
43
  }
43
44
 
44
- const SelectComponent = ({ type, isError=false, mode, customOption, customLabel, MenuList, isCreateable=false, isClearable=false, selectKey, disabled, defaultValue, width, reset, setReset, isForceUpdate, setForceUpdate, isCheckAutoCopy, evChangeCustom, isField, evCreate, evChange, isMinOption, isMulti=false, options, name, placeholder, removeMessage, evCreateMessageQuestion, isLoading, ...props }: TSelect) => {
45
+ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel, MenuList, isCreateable=false, isClearable=false, selectKey, disabled, defaultValue, width, reset, setReset, isForceUpdate, setForceUpdate, isCheckAutoCopy, evChangeCustom, isField, evCreate, evChange, isMinOption, isMulti=false, options, name, placeholder, removeMessage, evCreateMessageQuestion, isLoading, height, ...props }: TSelect) => {
45
46
  const [valueState, setValue] = useState<typeof defaultValue>(defaultValue || null)
46
47
 
47
48
  useEffect(()=> {
@@ -173,7 +174,7 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
173
174
  ...provided,
174
175
  borderRadius: mode === 'filter' ? 'var(--sec-rd)' : 'var(--ter-rd)',
175
176
  minHeight: mode === 'picklist' ? '30px': '1px',
176
- height: mode === 'orders' ? '90px' : '30px',
177
+ height: height || mode === 'orders' ? '90px' :'30px',
177
178
  maxHeight: mode === 'picklist' ? '46px': 'none',
178
179
  cursor: 'pointer',
179
180
  borderWidth: '1px' ,