@devtron-labs/devtron-fe-common-lib 0.0.7-beta-33 → 0.0.7-beta-34
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/index.js +1 -1
- package/package.json +1 -1
- package/src/Common/Checkbox.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -16415,7 +16415,7 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
16415
16415
|
Checkbox.prototype.render = function () {
|
|
16416
16416
|
var _a;
|
|
16417
16417
|
var rootClassName = "".concat(this.props.rootClassName ? this.props.rootClassName : '');
|
|
16418
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("label", __assign({ className: "dc__position-rel flex left cursor ".concat(rootClassName), onClick: (_a = this.props) === null || _a === void 0 ? void 0 : _a.onClick }, { children: [jsxRuntime.jsx("input", { type: "checkbox", className: 'form__checkbox', disabled: this.props.disabled, value: this.props.value, onChange: this.props.onChange, tabIndex: this.props.tabIndex, checked: this.props.isChecked, id: this.props.id, "data-testid": this.props.dataTestId }), jsxRuntime.jsx("span", { className: "form__checkbox-container" }), jsxRuntime.jsx("span", __assign({ className: "form__checkbox-label" }, { children: this.props.children }))] })) }));
|
|
16418
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("label", __assign({ className: "dc__position-rel flex left cursor ".concat(rootClassName), onClick: (_a = this.props) === null || _a === void 0 ? void 0 : _a.onClick }, { children: [jsxRuntime.jsx("input", { type: "checkbox", className: 'form__checkbox', disabled: this.props.disabled, value: this.props.value, onChange: this.props.onChange, tabIndex: this.props.tabIndex, checked: this.props.isChecked, id: this.props.id, "data-testid": this.props.dataTestId }), jsxRuntime.jsx("span", { className: "form__checkbox-container", "data-testid": "".concat(this.props.dataTestId, "-chk-span") }), jsxRuntime.jsx("span", __assign({ className: "form__checkbox-label" }, { children: this.props.children }))] })) }));
|
|
16419
16419
|
};
|
|
16420
16420
|
return Checkbox;
|
|
16421
16421
|
}(React.Component));
|
package/package.json
CHANGED
package/src/Common/Checkbox.tsx
CHANGED
|
@@ -27,7 +27,7 @@ export class Checkbox extends Component<CheckboxProps> {
|
|
|
27
27
|
id={this.props.id}
|
|
28
28
|
data-testid={this.props.dataTestId}
|
|
29
29
|
/>
|
|
30
|
-
<span className="form__checkbox-container"></span>
|
|
30
|
+
<span className="form__checkbox-container" data-testid={`${this.props.dataTestId}-chk-span`}></span>
|
|
31
31
|
<span className={`form__checkbox-label`}>{this.props.children}</span>
|
|
32
32
|
</label>
|
|
33
33
|
</>
|