@lumx/react 3.0.6 → 3.0.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/package.json CHANGED
@@ -7,8 +7,8 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@juggle/resize-observer": "^3.2.0",
10
- "@lumx/core": "^3.0.6",
11
- "@lumx/icons": "^3.0.6",
10
+ "@lumx/core": "^3.0.7",
11
+ "@lumx/icons": "^3.0.7",
12
12
  "@popperjs/core": "^2.5.4",
13
13
  "body-scroll-lock": "^3.1.5",
14
14
  "classnames": "^2.2.6",
@@ -114,6 +114,6 @@
114
114
  "build:storybook": "cd storybook && ./build"
115
115
  },
116
116
  "sideEffects": false,
117
- "version": "3.0.6",
118
- "gitHead": "1fed89f798ebc21e67fff1b6aee01e4aa86431a6"
117
+ "version": "3.0.7",
118
+ "gitHead": "4fec43ef3290a9f250767d3bdecf60cfcf02ee75"
119
119
  }
@@ -39,6 +39,7 @@ describe(`<${Checkbox.displayName}>`, () => {
39
39
  expect(wrapper).toHaveClassName(CLASSNAME);
40
40
  expect(wrapper).not.toHaveClassName('lumx-checkbox--is-disabled');
41
41
  expect(wrapper).toHaveClassName('lumx-checkbox--is-unchecked');
42
+ expect(wrapper.find('input')).toHaveProp('disabled', undefined);
42
43
  });
43
44
  });
44
45
 
@@ -51,6 +52,7 @@ describe(`<${Checkbox.displayName}>`, () => {
51
52
  });
52
53
 
53
54
  expect(wrapper).toHaveClassName(getBasicClass({ prefix: CLASSNAME, type: 'disabled', value: true }));
55
+ expect(wrapper.find('input')).toHaveProp('disabled', true);
54
56
  expect(wrapper).toHaveClassName(getBasicClass({ prefix: CLASSNAME, type: 'checked', value: true }));
55
57
  });
56
58
 
@@ -106,6 +106,7 @@ export const Checkbox: Comp<CheckboxProps, HTMLDivElement> = forwardRef((props,
106
106
  type="checkbox"
107
107
  id={inputId}
108
108
  className={`${CLASSNAME}__input-native`}
109
+ disabled={isDisabled}
109
110
  tabIndex={isDisabled ? -1 : 0}
110
111
  name={name}
111
112
  value={value}