forstok-ui-lib 5.1.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "5.1.3",
3
+ "version": "5.1.4",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -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,
@@ -9,6 +9,7 @@ export type TOption = {
9
9
  readonly channel?: Omit<TChannel, 'stores'>
10
10
  postalCode?: string
11
11
  localId?: string
12
+ isDisabled?: boolean
12
13
  option?: {
13
14
  readonly value: any
14
15
  readonly label: string