@moda/om 17.4.0 → 17.6.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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [17.6.0](https://github.com/ModaOperandi/om/compare/v17.5.0...v17.6.0) (2022-10-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * **badge:** adds noise theme ([#2950](https://github.com/ModaOperandi/om/issues/2950)) ([2cd1536](https://github.com/ModaOperandi/om/commit/2cd1536beaa548fec8001056fcb8c6ae4553fc1b))
12
+
13
+ # [17.5.0](https://github.com/ModaOperandi/om/compare/v17.4.0...v17.5.0) (2022-09-30)
14
+
15
+
16
+ ### Features
17
+
18
+ * **checkbox:** adds data-test-id by dataTestId prop ([#2942](https://github.com/ModaOperandi/om/issues/2942)) ([ff1aa3e](https://github.com/ModaOperandi/om/commit/ff1aa3eb5c54c21b2fd45b5ebea07598ce0ab9aa))
19
+
6
20
  # [17.4.0](https://github.com/ModaOperandi/om/compare/v17.3.0...v17.4.0) (2022-09-27)
7
21
 
8
22
 
package/dist/index.cjs.js CHANGED
@@ -5867,7 +5867,7 @@ var Circle12 = function Circle12(_a) {
5867
5867
 
5868
5868
  Circle12.displayName = 'Circle12';
5869
5869
 
5870
- var _excluded$t = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon"];
5870
+ var _excluded$t = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId"];
5871
5871
  var CHECKED_ITEM_PROPS = {
5872
5872
  className: 'Checkbox__check-mark',
5873
5873
  height: '85%',
@@ -5885,6 +5885,7 @@ var Checkbox = function Checkbox(_ref) {
5885
5885
  disabled = _ref.disabled,
5886
5886
  _ref$checkIcon = _ref.checkIcon,
5887
5887
  checkIcon = _ref$checkIcon === void 0 ? 'checkmark' : _ref$checkIcon,
5888
+ dataTestId = _ref.dataTestId,
5888
5889
  rest = _objectWithoutProperties(_ref, _excluded$t);
5889
5890
 
5890
5891
  var _useState = React.useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
@@ -5904,7 +5905,8 @@ var Checkbox = function Checkbox(_ref) {
5904
5905
  tabIndex: 0,
5905
5906
  className: classNames('Checkbox', className, {
5906
5907
  'Checkbox--disabled': disabled
5907
- })
5908
+ }),
5909
+ "data-test-id": "".concat(dataTestId, "--label")
5908
5910
  }, /*#__PURE__*/React__default["default"].createElement("span", {
5909
5911
  tabIndex: -1,
5910
5912
  className: classNames('Checkbox__indicator', {
@@ -5917,7 +5919,8 @@ var Checkbox = function Checkbox(_ref) {
5917
5919
  checked: isChecked,
5918
5920
  value: value,
5919
5921
  onChange: handleChange,
5920
- disabled: disabled
5922
+ disabled: disabled,
5923
+ "data-test-id": "".concat(dataTestId, "--input")
5921
5924
  }, rest)), children && /*#__PURE__*/React__default["default"].createElement("span", {
5922
5925
  className: "Checkbox__label"
5923
5926
  }, children));