forstok-ui-lib 8.0.4 → 8.0.6

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": "8.0.4",
3
+ "version": "8.0.6",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -175,9 +175,9 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
175
175
  control: (provided: CSSObject, state:ControlProps<TOption, typeof isMulti>) => ({
176
176
  ...provided,
177
177
  borderRadius: '.5rem',
178
- minHeight: height ?? (mode === 'multi' ? '50px' : (mode === 'picklist' ? '30px': '1px')),
179
- height: height ?? (mode === 'multi' ? '50px' : (mode === 'orders' ? '90px' :'30px')),
180
- maxHeight: height ?? (mode === 'multi' ? '50px' : (mode === 'picklist' ? '46px': 'none')),
178
+ minHeight: mode === 'multi' ? '50px' : (mode === 'picklist' ? '30px': '1px'),
179
+ height: mode === 'multi' ? 'auto' : (height ?? (mode === 'orders' ? '90px' :'30px')),
180
+ maxHeight: mode === 'multi' ? '120px' : (mode === 'picklist' ? '46px': 'none'),
181
181
  cursor: 'pointer',
182
182
  borderWidth: isError ? '1px' : '0',
183
183
  boxShadow: (state.isFocused) ? '-.0625rem 0rem .0625rem 0rem rgba(26, 26, 26, .122) inset, .0625rem 0rem .0625rem 0rem rgba(26, 26, 26, .122) inset, 0rem .125rem .0625rem 0rem rgba(26, 26, 26, .2) inset' : '0rem -.0625rem 0rem 0rem #b5b5b5 inset,0rem 0rem 0rem .0625rem rgba(0, 0, 0, .1) inset,0rem .03125rem 0rem .09375rem #FFF inset',
@@ -231,9 +231,9 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
231
231
  } as CSSObjectWithLabel),
232
232
  valueContainer: (provided: CSSObject) => ({
233
233
  ...provided,
234
- height: height ? (parseInt(height) - 6) + 'px' : (mode === 'multi' ? '44px' : '30px'),
235
- maxHeight: height ? (parseInt(height) - 6) + 'px' : (mode === 'multi' ? '44px' : (mode === 'picklist' ? '46px': 'none')),
236
- minHeight: height ? (parseInt(height) - 6) + 'px' : (mode === 'multi' ? '44px' : (mode === 'picklist' ? '30px': '1px')),
234
+ height: mode === 'multi' ? 'auto' : '30px',
235
+ maxHeight: mode === 'multi' ? '114px' : (mode === 'picklist' ? '46px': 'none'),
236
+ minHeight: mode === 'multi' ? '44px' : (mode === 'picklist' ? '30px': '1px'),
237
237
  overflow: (mode === 'multi' || mode === 'picklist') ? 'auto': 'initial',
238
238
  paddingTop: '0',
239
239
  paddingBottom: '0',