@moda/om 17.4.0 → 17.5.0
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.esm.js
CHANGED
|
@@ -5840,7 +5840,7 @@ var Circle12 = function Circle12(_a) {
|
|
|
5840
5840
|
|
|
5841
5841
|
Circle12.displayName = 'Circle12';
|
|
5842
5842
|
|
|
5843
|
-
var _excluded$t = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon"];
|
|
5843
|
+
var _excluded$t = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId"];
|
|
5844
5844
|
var CHECKED_ITEM_PROPS = {
|
|
5845
5845
|
className: 'Checkbox__check-mark',
|
|
5846
5846
|
height: '85%',
|
|
@@ -5858,6 +5858,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
5858
5858
|
disabled = _ref.disabled,
|
|
5859
5859
|
_ref$checkIcon = _ref.checkIcon,
|
|
5860
5860
|
checkIcon = _ref$checkIcon === void 0 ? 'checkmark' : _ref$checkIcon,
|
|
5861
|
+
dataTestId = _ref.dataTestId,
|
|
5861
5862
|
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
5862
5863
|
|
|
5863
5864
|
var _useState = useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
|
|
@@ -5877,7 +5878,8 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
5877
5878
|
tabIndex: 0,
|
|
5878
5879
|
className: classNames('Checkbox', className, {
|
|
5879
5880
|
'Checkbox--disabled': disabled
|
|
5880
|
-
})
|
|
5881
|
+
}),
|
|
5882
|
+
"data-test-id": "".concat(dataTestId, "--label")
|
|
5881
5883
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
5882
5884
|
tabIndex: -1,
|
|
5883
5885
|
className: classNames('Checkbox__indicator', {
|
|
@@ -5890,7 +5892,8 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
5890
5892
|
checked: isChecked,
|
|
5891
5893
|
value: value,
|
|
5892
5894
|
onChange: handleChange,
|
|
5893
|
-
disabled: disabled
|
|
5895
|
+
disabled: disabled,
|
|
5896
|
+
"data-test-id": "".concat(dataTestId, "--input")
|
|
5894
5897
|
}, rest)), children && /*#__PURE__*/React__default.createElement("span", {
|
|
5895
5898
|
className: "Checkbox__label"
|
|
5896
5899
|
}, children));
|