forstok-ui-lib 5.1.2 → 5.1.4
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.d.ts +4 -2
- 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/index.ts +1 -0
- package/src/components/select/index.tsx +3 -1
- package/src/components/select/typed.ts +5 -1
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -184,7 +184,9 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
|
|
|
184
184
|
padding: mode === 'orders' ? '6px 0' : 'unset',
|
|
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: (disabled? '#ADADAD' :'initial'),
|
|
189
|
+
opacity: disabled ? '.7' : 1
|
|
188
190
|
} as CSSObjectWithLabel),
|
|
189
191
|
placeholder: (provided: CSSObject) => ({
|
|
190
192
|
...provided,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OnChangeValue } from 'react-select';
|
|
1
2
|
import type { TChannel } from '../../typeds/shares.typed';
|
|
2
3
|
|
|
3
4
|
export type TOption = {
|
|
@@ -8,9 +9,12 @@ export type TOption = {
|
|
|
8
9
|
readonly channel?: Omit<TChannel, 'stores'>
|
|
9
10
|
postalCode?: string
|
|
10
11
|
localId?: string
|
|
12
|
+
isDisabled?: boolean
|
|
11
13
|
option?: {
|
|
12
14
|
readonly value: any
|
|
13
15
|
readonly label: string
|
|
14
16
|
localId?: string
|
|
15
17
|
}[]
|
|
16
|
-
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type TOnChangeValue = OnChangeValue<TOption, boolean>
|