@autoguru/overdrive 4.3.2 → 4.3.3

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
@@ -1,5 +1,12 @@
1
1
  # @autoguru/overdrive
2
2
 
3
+ ## 4.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 33c6c71: Inputs: Get theme standard line height
8
+ - 28252fb: NumberInput: Fixes paasive events being prevented
9
+
3
10
  ## 4.3.2
4
11
 
5
12
  ### Patch Changes
@@ -15,9 +15,9 @@ export const NumberInput = withEnhancedInput(({ field: { ref, ...incomingFieldPr
15
15
  let onWheelListener;
16
16
  let wheelListener;
17
17
  if (preventMouseWheel && inputRef?.current) {
18
- mouseWheelListener = inputRef.current.addEventListener('mousewheel', preventWheel, { passive: true });
19
- onWheelListener = inputRef.current.addEventListener('onwheel', preventWheel, { passive: true });
20
- wheelListener = inputRef.current.addEventListener('wheel', preventWheel, { passive: true });
18
+ mouseWheelListener = inputRef.current.addEventListener('mousewheel', preventWheel, { passive: false });
19
+ onWheelListener = inputRef.current.addEventListener('onwheel', preventWheel, { passive: false });
20
+ wheelListener = inputRef.current.addEventListener('wheel', preventWheel, { passive: false });
21
21
  }
22
22
  return () => {
23
23
  if (mouseWheelListener)
@@ -35,11 +35,6 @@ const iconOptions = {
35
35
  CheckIcon
36
36
  };
37
37
  const argTypes = {
38
- value: {
39
- control: {
40
- type: 'number'
41
- }
42
- },
43
38
  prefixIcon: {
44
39
  defaultValue: null,
45
40
  description: 'Input prefix Icon',
@@ -21,13 +21,7 @@ export default {
21
21
  };
22
22
  const defaultValue = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae pulvinar odio. Duis laoreet lacus vel consequat congue. Ut euismod enim non eros lacinia mollis. Vestibulum libero quam, aliquet non justo laoreet, egestas molestie ante. Quisque urna leo, consectetur id dui aliquet, placerat iaculis augue. Pellentesque sed vestibulum augue, quis porta lectus.';
23
23
  const defaultPlaceholder = 'Tell us about your car.';
24
- const argTypes = {
25
- value: {
26
- control: {
27
- type: 'string'
28
- }
29
- }
30
- };
24
+ const argTypes = {};
31
25
 
32
26
  const Template = args => _jsx(TextAreaInput, _objectSpread({}, args));
33
27
 
@@ -33,11 +33,6 @@ const iconOptions = {
33
33
  CheckIcon
34
34
  };
35
35
  const argTypes = {
36
- value: {
37
- control: {
38
- type: 'string'
39
- }
40
- },
41
36
  prefixIcon: {
42
37
  defaultValue: null,
43
38
  description: 'Input prefix Icon',
@@ -18,7 +18,7 @@ export const input = {
18
18
  background: 'transparent',
19
19
  outline: 'none',
20
20
  fontSize: vars.typography.size['4'].fontSize,
21
- lineHeight: 1,
21
+ lineHeight: vars.typography.size['4'].lineHeight,
22
22
  height: vars.space['8'],
23
23
  padding: `calc(((${vars.space['8']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px) calc(${vars.space['4']} - 1px)`,
24
24
  selectors: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/overdrive",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "Overdrive is a product component library, and design system for AutoGuru.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",