forstok-ui-lib 5.1.7 → 5.1.10
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 +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/select/index.tsx +7 -7
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ type TSelect = {
|
|
|
19
19
|
isCreateable?: boolean
|
|
20
20
|
isClearable?: boolean
|
|
21
21
|
selectKey?: string
|
|
22
|
-
disabled?: boolean
|
|
22
|
+
disabled ?: boolean
|
|
23
23
|
width?: string | number
|
|
24
24
|
reset?: boolean
|
|
25
25
|
setReset?: TState<boolean>
|
|
@@ -185,7 +185,7 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
|
|
|
185
185
|
'&:hover': {
|
|
186
186
|
borderColor: ((state.isFocused && mode !== 'filter') && !isError) ? 'var(--pri-clr-ln__fc)' : (isError ? 'var(--err-clr-ln)' : (mode ==='filter' ? 'var(--ter-clr-ln)' : ' var(--ck-clr-ln)' )),
|
|
187
187
|
},
|
|
188
|
-
color:
|
|
188
|
+
color: disabled ? '#ADADAD' :'initial',
|
|
189
189
|
opacity: disabled ? '.7' : 1
|
|
190
190
|
} as CSSObjectWithLabel),
|
|
191
191
|
placeholder: (provided: CSSObject) => ({
|
|
@@ -237,17 +237,17 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
|
|
|
237
237
|
...provided,
|
|
238
238
|
minHeight: '1px',
|
|
239
239
|
paddingBottom: '2px',
|
|
240
|
-
color: (disabled? '#ADADAD' : (mode === 'form' ? '#2d3c48' : 'initial')),
|
|
240
|
+
color: (disabled ? '#ADADAD' : (mode === 'form' ? '#2d3c48' : 'initial')),
|
|
241
241
|
opacity: disabled ? '.7' : 1,
|
|
242
242
|
} as CSSObjectWithLabel),
|
|
243
243
|
option: (provided: CSSObject, state: OptionProps<TOption, typeof isMulti>) => ({
|
|
244
244
|
...provided,
|
|
245
|
-
color: state.isSelected ? '#ffffff' : '#000000',
|
|
246
|
-
backgroundColor: state.isSelected || state.isFocused ? '#fc5c64' : 'transparent',
|
|
245
|
+
color: (disabled || state.isSelected) ? '#ADADAD' : (state.isSelected ? '#ffffff' : '#000000'),
|
|
246
|
+
backgroundColor: (disabled || state.isSelected) ? 'transparent' : (state.isSelected || state.isFocused ? '#fc5c64' : 'transparent'),
|
|
247
247
|
cursor: 'pointer',
|
|
248
248
|
'&:hover': {
|
|
249
|
-
backgroundColor: '#ec5b62',
|
|
250
|
-
color: '#ffffff'
|
|
249
|
+
backgroundColor: (disabled || state.isSelected) ? 'transparent' : '#ec5b62',
|
|
250
|
+
color: (disabled || state.isSelected) ? '#ADADAD' : '#ffffff'
|
|
251
251
|
}
|
|
252
252
|
} as CSSObjectWithLabel),
|
|
253
253
|
menu: (provided: CSSObject) => ({
|