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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "5.1.2",
3
+ "version": "5.1.4",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -19,5 +19,6 @@ export { default as ErrorComponent } from './error';
19
19
  export * from './dropdown/typed';
20
20
  export * from './message/typed';
21
21
  export * from './popup/typed';
22
+ export * from './select/typed';
22
23
 
23
24
  export * from './form/styles';
@@ -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>