dibk-design 1.0.12 → 1.0.15
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.
|
@@ -70,6 +70,7 @@ var CheckBoxInput = /*#__PURE__*/function (_React$Component) {
|
|
|
70
70
|
checked: this.props.checked,
|
|
71
71
|
disabled: this.props.disabled,
|
|
72
72
|
onChange: this.props.onChange,
|
|
73
|
+
tabIndex: this.props.tabIndex || null,
|
|
73
74
|
"aria-controls": this.props["aria-controls"]
|
|
74
75
|
};
|
|
75
76
|
return /*#__PURE__*/_react.default.createElement("label", labelProps, !this.props.contentOnly ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CheckBoxIcon.default, iconProps), /*#__PURE__*/_react.default.createElement("input", inputProps)) : /*#__PURE__*/_react.default.createElement(_CheckBoxIcon.default, iconProps), /*#__PURE__*/_react.default.createElement("span", null, this.props.children));
|
|
@@ -105,6 +105,7 @@ var InputField = /*#__PURE__*/function (_React$Component) {
|
|
|
105
105
|
readOnly: this.props.readOnly,
|
|
106
106
|
disabled: this.props.disabled,
|
|
107
107
|
type: this.props.type,
|
|
108
|
+
role: this.props.role,
|
|
108
109
|
id: this.props.id,
|
|
109
110
|
key: defaultKey || "".concat(this.props.id, "-").concat((0, _generators.generateRandomString)(6)),
|
|
110
111
|
min: this.props.min || null,
|
|
@@ -7,11 +7,19 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
13
|
|
|
12
14
|
var ListItem = function ListItem(props) {
|
|
13
|
-
|
|
15
|
+
var elementProps = {
|
|
16
|
+
key: props.elementKey || null
|
|
17
|
+
};
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement("li", elementProps, props.children, props.elementKey);
|
|
14
19
|
};
|
|
15
20
|
|
|
21
|
+
ListItem.propTypes = {
|
|
22
|
+
elementKey: _propTypes.default.string
|
|
23
|
+
};
|
|
16
24
|
var _default = ListItem;
|
|
17
25
|
exports.default = _default;
|
|
@@ -69,6 +69,7 @@ var RadioButtonInput = /*#__PURE__*/function (_React$Component) {
|
|
|
69
69
|
checked: this.props.checked,
|
|
70
70
|
disabled: this.props.disabled,
|
|
71
71
|
onChange: this.props.onChange,
|
|
72
|
+
tabIndex: this.props.tabIndex || null,
|
|
72
73
|
"aria-controls": this.props["aria-controls"]
|
|
73
74
|
};
|
|
74
75
|
return /*#__PURE__*/_react.default.createElement("label", labelProps, !this.props.contentOnly ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_RadioButtonIcon.default, iconProps), /*#__PURE__*/_react.default.createElement("input", inputProps)) : null, /*#__PURE__*/_react.default.createElement("span", null, this.props.children));
|
|
@@ -148,7 +148,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
148
148
|
var props = (_props = {
|
|
149
149
|
name: this.props.name,
|
|
150
150
|
multiple: this.props.multiple
|
|
151
|
-
}, _defineProperty(_props, defaultValue ? 'defaultValue' : 'value', defaultValue || this.props.value), _defineProperty(_props, "onChange", this.props.onChange), _defineProperty(_props, "id", this.props.id), _defineProperty(_props, "key", "".concat(this.props.id, "-").concat((0, _generators.generateRandomString)(6))), _defineProperty(_props, "className", this.props.hasErrors ? _SelectModule.default.hasErrors : ''), _defineProperty(_props, "style", styleRules), _props);
|
|
151
|
+
}, _defineProperty(_props, defaultValue ? 'defaultValue' : 'value', defaultValue || this.props.value), _defineProperty(_props, "onChange", this.props.onChange), _defineProperty(_props, "id", this.props.id), _defineProperty(_props, "role", this.props.role), _defineProperty(_props, "key", "".concat(this.props.id, "-").concat((0, _generators.generateRandomString)(6))), _defineProperty(_props, "className", this.props.hasErrors ? _SelectModule.default.hasErrors : ''), _defineProperty(_props, "style", styleRules), _props);
|
|
152
152
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
153
153
|
className: _SelectModule.default.select
|
|
154
154
|
}, /*#__PURE__*/_react.default.createElement(_Label.default, {
|