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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/select/index.tsx +6 -6
package/package.json
CHANGED
|
@@ -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:
|
|
179
|
-
height:
|
|
180
|
-
maxHeight:
|
|
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:
|
|
235
|
-
maxHeight:
|
|
236
|
-
minHeight:
|
|
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',
|