@toptal/picasso-number-input 1.0.20 → 1.0.22-alpha-fx-null-fix-tag-7b2900a3d.2

Sign up to get free protection for your applications and to get access to all the features.
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021-2022 Toptal, LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAA6B,MAAM,OAAO,CAAA;AAGjD,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAQ1E,OAAO,KAAK,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAMjF,MAAM,WAAW,KACf,SAAQ,IAAI,CACR,iBAAiB,CAAC,kBA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,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,uCAAuC;IACvC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC/D,SAAS,CAAC,EAAE,UAAU,CAAA;CACvB;AAMD,eAAO,MAAM,WAAW,gFAqFvB,CAAA;AAeD,eAAe,WAAW,CAAA"}
@@ -11,11 +11,9 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import React, { forwardRef, useRef } from 'react';
13
13
  import { makeStyles } from '@material-ui/core/styles';
14
- import cx from 'classnames';
15
14
  import { OutlinedInput } from '@toptal/picasso-outlined-input';
16
15
  import { InputAdornment } from '@toptal/picasso-input-adornment';
17
16
  import { useCombinedRefs, usePropDeprecationWarning, } from '@toptal/picasso-utils';
18
- import { useFieldsLayoutContext } from '@toptal/picasso-form';
19
17
  import styles from './styles';
20
18
  import { NumberInputEndAdornment } from '../NumberInputEndAdornment';
21
19
  const useStyles = makeStyles(styles, {
@@ -32,18 +30,14 @@ export const NumberInput = forwardRef(function NumberInput(props, ref) {
32
30
  componentName: 'NumberInput',
33
31
  description: 'Use the `status` prop instead. `error` is deprecated and will be removed in the next major release.',
34
32
  });
35
- const { layout } = useFieldsLayoutContext();
36
33
  const classes = useStyles(props);
37
34
  const inputRef = useCombinedRefs(ref, useRef(null));
38
35
  const endAdornment = hideControls ? null : (React.createElement(NumberInputEndAdornment, { step: step, min: min, max: max, value: value, disabled: disabled, size: size, inputRef: inputRef }));
39
36
  const startAdornment = icon ? (React.createElement(InputAdornment, { position: 'start', disablePointerEvents: true }, icon)) : null;
40
37
  return (React.createElement(OutlinedInput, { classes: {
41
- root: cx(classes.root, {
42
- [classes.highlightAutofill]: highlight === 'autofill',
43
- [classes.horizontalLayout]: layout === 'horizontal',
44
- }),
38
+ root: classes.root,
45
39
  input: classes.input,
46
- }, inputProps: Object.assign(Object.assign({}, rest), { step,
40
+ }, highlight: highlight, inputProps: Object.assign(Object.assign({}, rest), { step,
47
41
  min,
48
42
  max }), width: width, onResetClick: onResetClick, enableReset: enableReset, status: error ? 'error' : status, inputRef: inputRef, type: 'number', value: value, disabled: disabled, onChange: onChange, endAdornment: endAdornment, startAdornment: startAdornment, size: size, testIds: testIds }));
49
43
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.js","sourceRoot":"","sources":["../../../src/NumberInput/NumberInput.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EACL,eAAe,EACf,yBAAyB,GAC1B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AA2BpE,MAAM,SAAS,GAAG,UAAU,CAAe,MAAM,EAAE;IACjD,IAAI,EAAE,oBAAoB;CAC3B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,SAAS,W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AAQ,GAClB,CACH,CAAA;IAED,MAAM,cAAc,GAAG,IAAI,CAAC,CAAC,CAAC,CAC5B,oBAAC,cAAc,IAAC,QAAQ,EAAC,OAAO,EAAC,oBAAoB,UAClD,IAAI,CACU,CAClB,CAAC,CAAC,CAAC,IAAI,CAAA;IAER,OAAO,CACL,oBAAC,aAAa,IACZ,OAAO,EAAE;YACP,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,EACD,SAAS,EAAE,SAAS,EACpB,UAAU,kCACL,IAAI,KACP,IAAI;YACJ,GAAG;YACH,GAAG,KAEL,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAChC,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,GAChB,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,WAAW,CAAC,YAAY,GAAG;IACzB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;IAClB,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,YAAY,EAAE,KAAK;IACnB,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,SAAS;CAClB,CAAA;AAED,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,eAAe,WAAW,CAAA"}
@@ -1,4 +1,3 @@
1
- import type { Theme } from '@material-ui/core/styles';
2
- declare const _default: (theme: Theme) => import("@material-ui/styles").StyleRules<{}, "root" | "input" | "horizontalLayout" | "highlightAutofill">;
1
+ declare const _default: () => import("@material-ui/styles").StyleRules<{}, "root" | "input">;
3
2
  export default _default;
4
3
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/NumberInput/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;gCAI9B,KAAK;AAA5B,wBAkBI"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/NumberInput/styles.ts"],"names":[],"mappings":";AAEA,wBAcI"}
@@ -1,16 +1,16 @@
1
1
  import { createStyles } from '@material-ui/core/styles';
2
- import { highlightStyles as highlightAutofillStyles } from '@toptal/picasso-input';
3
- export default (theme) => createStyles(Object.assign({ root: {
2
+ export default () => createStyles({
3
+ root: {
4
4
  paddingRight: 0,
5
5
  cursor: 'text',
6
- }, input: {
6
+ },
7
+ input: {
7
8
  '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
8
9
  '-webkit-appearance': 'none',
9
10
  appearance: 'none',
10
11
  margin: 0,
11
12
  },
12
13
  '-moz-appearance': 'textfield',
13
- }, horizontalLayout: {
14
- width: '100%',
15
- } }, highlightAutofillStyles(theme)));
14
+ },
15
+ });
16
16
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/NumberInput/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAElF,eAAe,CAAC,KAAY,EAAE,EAAE,CAC9B,YAAY,iBACV,IAAI,EAAE;QACJ,YAAY,EAAE,CAAC;QACf,MAAM,EAAE,MAAM;KACf,EACD,KAAK,EAAE;QACL,4DAA4D,EAAE;YAC5D,oBAAoB,EAAE,MAAM;YAC5B,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,CAAC;SACV;QACD,iBAAiB,EAAE,WAAW;KAC/B,EACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,MAAM;KACd,IACE,uBAAuB,CAAC,KAAK,CAAC,EACjC,CAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/NumberInput/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvD,eAAe,GAAG,EAAE,CAClB,YAAY,CAAC;IACX,IAAI,EAAE;QACJ,YAAY,EAAE,CAAC;QACf,MAAM,EAAE,MAAM;KACf;IACD,KAAK,EAAE;QACL,4DAA4D,EAAE;YAC5D,oBAAoB,EAAE,MAAM;YAC5B,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,CAAC;SACV;QACD,iBAAiB,EAAE,WAAW;KAC/B;CACF,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-number-input",
3
- "version": "1.0.20",
3
+ "version": "1.0.22-alpha-fx-null-fix-tag-7b2900a3d.2+7b2900a3d",
4
4
  "description": "Toptal UI components library - NumberInput",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,14 +22,13 @@
22
22
  },
23
23
  "homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
24
24
  "dependencies": {
25
- "@toptal/picasso-container": "1.0.3",
26
- "@toptal/picasso-form": "3.0.4",
27
- "@toptal/picasso-icons": "1.2.0",
28
- "@toptal/picasso-input": "2.0.2",
29
- "@toptal/picasso-input-adornment": "1.0.5",
30
- "@toptal/picasso-outlined-input": "1.0.19",
31
- "@toptal/picasso-shared": "15.0.0",
32
- "@toptal/picasso-utils": "1.0.3",
25
+ "@toptal/picasso-container": "1.0.4-alpha-fx-null-fix-tag-7b2900a3d.25+7b2900a3d",
26
+ "@toptal/picasso-form": "3.0.5-alpha-fx-null-fix-tag-7b2900a3d.7+7b2900a3d",
27
+ "@toptal/picasso-icons": "1.2.1-alpha-fx-null-fix-tag-7b2900a3d.11+7b2900a3d",
28
+ "@toptal/picasso-input-adornment": "1.0.6-alpha-fx-null-fix-tag-7b2900a3d.11+7b2900a3d",
29
+ "@toptal/picasso-outlined-input": "1.1.1-alpha-fx-null-fix-tag-7b2900a3d.2+7b2900a3d",
30
+ "@toptal/picasso-shared": "15.0.1-alpha-fx-null-fix-tag-7b2900a3d.25+7b2900a3d",
31
+ "@toptal/picasso-utils": "1.0.4-alpha-fx-null-fix-tag-7b2900a3d.25+7b2900a3d",
33
32
  "classnames": "^2.5.1"
34
33
  },
35
34
  "sideEffects": [
@@ -44,11 +43,12 @@
44
43
  ".": "./dist-package/src/index.js"
45
44
  },
46
45
  "devDependencies": {
47
- "@toptal/picasso-test-utils": "1.1.1"
46
+ "@toptal/picasso-test-utils": "1.1.2-alpha-fx-null-fix-tag-7b2900a3d.25+7b2900a3d"
48
47
  },
49
48
  "files": [
50
49
  "dist-package/**",
51
50
  "!dist-package/tsconfig.tsbuildinfo",
52
51
  "src"
53
- ]
52
+ ],
53
+ "gitHead": "7b2900a3d34f5627022f65bf3cbaa23b53aa48b8"
54
54
  }
@@ -3,7 +3,6 @@ import React, { forwardRef, useRef } from 'react'
3
3
  import type { Theme } from '@material-ui/core/styles'
4
4
  import { makeStyles } from '@material-ui/core/styles'
5
5
  import type { BaseProps, OmitInternalProps } from '@toptal/picasso-shared'
6
- import cx from 'classnames'
7
6
  import { OutlinedInput } from '@toptal/picasso-outlined-input'
8
7
  import { InputAdornment } from '@toptal/picasso-input-adornment'
9
8
  import {
@@ -11,7 +10,6 @@ import {
11
10
  usePropDeprecationWarning,
12
11
  } from '@toptal/picasso-utils'
13
12
  import type { Props as OutlinedInputProps } from '@toptal/picasso-outlined-input'
14
- import { useFieldsLayoutContext } from '@toptal/picasso-form'
15
13
 
16
14
  import styles from './styles'
17
15
  import { NumberInputEndAdornment } from '../NumberInputEndAdornment'
@@ -76,8 +74,6 @@ export const NumberInput = forwardRef<HTMLInputElement, Props>(
76
74
  'Use the `status` prop instead. `error` is deprecated and will be removed in the next major release.',
77
75
  })
78
76
 
79
- const { layout } = useFieldsLayoutContext()
80
-
81
77
  const classes = useStyles(props)
82
78
 
83
79
  const inputRef = useCombinedRefs<HTMLInputElement>(
@@ -106,12 +102,10 @@ export const NumberInput = forwardRef<HTMLInputElement, Props>(
106
102
  return (
107
103
  <OutlinedInput
108
104
  classes={{
109
- root: cx(classes.root, {
110
- [classes.highlightAutofill]: highlight === 'autofill',
111
- [classes.horizontalLayout]: layout === 'horizontal',
112
- }),
105
+ root: classes.root,
113
106
  input: classes.input,
114
107
  }}
108
+ highlight={highlight}
115
109
  inputProps={{
116
110
  ...rest,
117
111
  step,
@@ -1,8 +1,6 @@
1
- import type { Theme } from '@material-ui/core/styles'
2
1
  import { createStyles } from '@material-ui/core/styles'
3
- import { highlightStyles as highlightAutofillStyles } from '@toptal/picasso-input'
4
2
 
5
- export default (theme: Theme) =>
3
+ export default () =>
6
4
  createStyles({
7
5
  root: {
8
6
  paddingRight: 0,
@@ -16,8 +14,4 @@ export default (theme: Theme) =>
16
14
  },
17
15
  '-moz-appearance': 'textfield',
18
16
  },
19
- horizontalLayout: {
20
- width: '100%',
21
- },
22
- ...highlightAutofillStyles(theme),
23
17
  })