@rhc-shared-components/form-select-component 0.2.5 → 0.2.7
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/FormSelectComponent.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.modern.js +4 -3
- package/package.json +2 -3
- package/dist/index.test.d.ts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import './styles.scss';
|
|
3
2
|
export interface ISelectItem {
|
|
4
3
|
value: string;
|
|
5
4
|
key?: string;
|
|
@@ -24,6 +23,7 @@ export interface FormSelectProps {
|
|
|
24
23
|
selectOptionExtraProps?: any;
|
|
25
24
|
isFullWidth?: boolean;
|
|
26
25
|
isFullHeight?: boolean;
|
|
26
|
+
isDisabled?: boolean;
|
|
27
27
|
}
|
|
28
28
|
declare const FormSelect: React.FC<FormSelectProps>;
|
|
29
29
|
export default FormSelect;
|
package/dist/index.js
CHANGED
|
@@ -9595,7 +9595,7 @@ const InfoCircleIconConfig = {
|
|
|
9595
9595
|
|
|
9596
9596
|
const InfoCircleIcon = createIcon(InfoCircleIconConfig);
|
|
9597
9597
|
|
|
9598
|
-
var _excluded = ["label", "isRequired", "children", "selectOptions", "ariaLabel", "placeholder", "helperText", "subLabel", "subInfo", "onChange", "extraProps", "selectOptionExtraProps", "isFullWidth", "isFullHeight"];
|
|
9598
|
+
var _excluded = ["label", "isRequired", "children", "selectOptions", "ariaLabel", "placeholder", "helperText", "subLabel", "subInfo", "onChange", "extraProps", "selectOptionExtraProps", "isFullWidth", "isFullHeight", "isDisabled"];
|
|
9599
9599
|
|
|
9600
9600
|
var FormSelect = function FormSelect(_ref) {
|
|
9601
9601
|
var label = _ref.label,
|
|
@@ -9613,6 +9613,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
9613
9613
|
selectOptionExtraProps = _ref.selectOptionExtraProps,
|
|
9614
9614
|
isFullWidth = _ref.isFullWidth,
|
|
9615
9615
|
isFullHeight = _ref.isFullHeight,
|
|
9616
|
+
isDisabled = _ref.isDisabled,
|
|
9616
9617
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
9617
9618
|
|
|
9618
9619
|
var _useField = formik.useField(rest),
|
|
@@ -9647,7 +9648,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
9647
9648
|
isExpanded: isOpen,
|
|
9648
9649
|
isFullWidth: isFullWidth,
|
|
9649
9650
|
isFullHeight: isFullHeight,
|
|
9650
|
-
isDisabled: isSubmitting
|
|
9651
|
+
isDisabled: isSubmitting || isDisabled
|
|
9651
9652
|
}, value || placeholder);
|
|
9652
9653
|
};
|
|
9653
9654
|
|
package/dist/index.modern.js
CHANGED
|
@@ -9575,7 +9575,7 @@ const InfoCircleIconConfig = {
|
|
|
9575
9575
|
|
|
9576
9576
|
const InfoCircleIcon = createIcon(InfoCircleIconConfig);
|
|
9577
9577
|
|
|
9578
|
-
const _excluded = ["label", "isRequired", "children", "selectOptions", "ariaLabel", "placeholder", "helperText", "subLabel", "subInfo", "onChange", "extraProps", "selectOptionExtraProps", "isFullWidth", "isFullHeight"];
|
|
9578
|
+
const _excluded = ["label", "isRequired", "children", "selectOptions", "ariaLabel", "placeholder", "helperText", "subLabel", "subInfo", "onChange", "extraProps", "selectOptionExtraProps", "isFullWidth", "isFullHeight", "isDisabled"];
|
|
9579
9579
|
|
|
9580
9580
|
const FormSelect = _ref => {
|
|
9581
9581
|
let {
|
|
@@ -9591,7 +9591,8 @@ const FormSelect = _ref => {
|
|
|
9591
9591
|
extraProps,
|
|
9592
9592
|
selectOptionExtraProps,
|
|
9593
9593
|
isFullWidth,
|
|
9594
|
-
isFullHeight
|
|
9594
|
+
isFullHeight,
|
|
9595
|
+
isDisabled
|
|
9595
9596
|
} = _ref,
|
|
9596
9597
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
9597
9598
|
|
|
@@ -9623,7 +9624,7 @@ const FormSelect = _ref => {
|
|
|
9623
9624
|
isExpanded: isOpen,
|
|
9624
9625
|
isFullWidth: isFullWidth,
|
|
9625
9626
|
isFullHeight: isFullHeight,
|
|
9626
|
-
isDisabled: isSubmitting
|
|
9627
|
+
isDisabled: isSubmitting || isDisabled
|
|
9627
9628
|
}, value || placeholder);
|
|
9628
9629
|
|
|
9629
9630
|
return React.createElement(FormGroupContainer, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhc-shared-components/form-select-component",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "project description",
|
|
5
5
|
"author": "redhatofficial",
|
|
6
6
|
"license": "MIT",
|
|
@@ -72,6 +72,5 @@
|
|
|
72
72
|
],
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
|
-
}
|
|
76
|
-
"gitHead": "e3ffbb8f2793c6be4ea9d3d4ec916fc0d9faba5d"
|
|
75
|
+
}
|
|
77
76
|
}
|
package/dist/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|