@conduction/components 2.0.10 → 2.0.11

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/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  - **Version 2**
6
6
 
7
+ - 2.0.11:
8
+ - Added disabled state to SelectSingle component;
7
9
  - 2.0.10:
8
10
  - Added InputFloat (.00 decimals) component;
9
11
  - 2.0.9:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -76,6 +76,7 @@ export const SelectSingle: React.FC<ISelectProps & IReactHookFormProps> = ({
76
76
  validation,
77
77
  isClearable,
78
78
  defaultValue,
79
+ disabled,
79
80
  }) => {
80
81
  return (
81
82
  <Controller
@@ -83,7 +84,11 @@ export const SelectSingle: React.FC<ISelectProps & IReactHookFormProps> = ({
83
84
  rules={validation}
84
85
  render={({ field: { onChange, value } }) => {
85
86
  return (
86
- <ReactSelect className={styles.select} {...{ options, onChange, value, errors, isClearable, defaultValue }} />
87
+ <ReactSelect
88
+ className={styles.select}
89
+ isDisabled={disabled}
90
+ {...{ options, onChange, value, errors, isClearable, defaultValue }}
91
+ />
87
92
  );
88
93
  }}
89
94
  />