forstok-ui-lib 5.1.13 → 5.1.14

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.1.13",
3
+ "version": "5.1.14",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -240,18 +240,18 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
240
240
  color: (disabled ? '#ADADAD' : (mode === 'form' ? '#2d3c48' : 'initial')),
241
241
  opacity: disabled ? '.7' : 1,
242
242
  } as CSSObjectWithLabel),
243
- option: (provided: CSSObject, state: OptionProps<TOption, typeof isMulti>) => {
244
- console.log(state, disabled, "--- pr", provided)
245
- return ({
243
+ option: (provided: CSSObject, state: OptionProps<TOption, typeof isMulti>) => ({
246
244
  ...provided,
247
- // color: (disabled || state.isDisabled) ? '#ADADAD' : (state.isSelected ? '#ffffff' : '#000000'),
248
- // backgroundColor: (disabled || state.isDisabled) ? 'transparent' : (state.isSelected || state.isFocused ? '#fc5c64' : 'transparent'),
249
- // cursor: 'pointer',
250
- // '&:hover': {
251
- // backgroundColor: (disabled || state.isDisabled) ? 'transparent' : '#ec5b62',
252
- // color: (disabled || state.isDisabled) ? '#ADADAD' : '#ffffff'
253
- // }
254
- } as CSSObjectWithLabel)},
245
+ ...(!state.isDisabled && {
246
+ color: state.isSelected ? '#ffffff' : '#000000',
247
+ backgroundColor: state.isSelected || state.isFocused ? '#fc5c64' : 'transparent',
248
+ cursor: 'pointer',
249
+ '&:hover': {
250
+ backgroundColor: '#ec5b62',
251
+ color: '#ffffff'
252
+ }
253
+ })
254
+ } as CSSObjectWithLabel),
255
255
  menu: (provided: CSSObject) => ({
256
256
  ...provided,
257
257
  borderRadius: mode === 'filter' ? 'var(--sec-rd)' : 'var(--ter-rd)',