@atlaskit/range 7.0.4 → 7.1.1
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 +16 -0
- package/dist/cjs/range.js +4 -0
- package/dist/cjs/styled.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/range.js +5 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/range.js +5 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/range.d.ts +3 -3
- package/package.json +21 -12
- package/range/package.json +2 -2
- package/styled/package.json +2 -2
- package/theme/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/range
|
|
2
2
|
|
|
3
|
+
## 7.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 7.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 7.0.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/range.js
CHANGED
|
@@ -18,6 +18,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
20
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
// Combine omits the keys of the second from the first so in case of overlap the props of the second are used.
|
|
22
|
+
|
|
23
|
+
// OwnProps is used for external documentation, but does not list every property supported by Range.
|
|
24
|
+
// So we combine (a reduced list of) HTMLInputElement attributes with OwnProps to get the full type.
|
|
21
25
|
var snapToStep = function snapToStep(value, min, step) {
|
|
22
26
|
// Normalise the value to allow for division properly with different min values
|
|
23
27
|
var adjustedValue = value - min;
|
package/dist/cjs/styled.js
CHANGED
|
@@ -17,7 +17,7 @@ var _hoverNotDisabled, _css;
|
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
|
|
21
21
|
var VAR_THUMB_BORDER_COLOR = '--thumb-border';
|
|
22
22
|
var VAR_THUMB_SHADOW = '--thumb-shadow';
|
|
23
23
|
var VAR_THUMB_BACKGROUND_COLOR = '--thumb-bg';
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/range.js
CHANGED
|
@@ -2,6 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { forwardRef, useCallback, useState } from 'react';
|
|
3
3
|
import __noop from '@atlaskit/ds-lib/noop';
|
|
4
4
|
import { Input } from './styled';
|
|
5
|
+
|
|
6
|
+
// Combine omits the keys of the second from the first so in case of overlap the props of the second are used.
|
|
7
|
+
|
|
8
|
+
// OwnProps is used for external documentation, but does not list every property supported by Range.
|
|
9
|
+
// So we combine (a reduced list of) HTMLInputElement attributes with OwnProps to get the full type.
|
|
5
10
|
const snapToStep = (value, min, step) => {
|
|
6
11
|
// Normalise the value to allow for division properly with different min values
|
|
7
12
|
const adjustedValue = value - min;
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/range.js
CHANGED
|
@@ -8,6 +8,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8
8
|
import React, { forwardRef, useCallback, useState } from 'react';
|
|
9
9
|
import __noop from '@atlaskit/ds-lib/noop';
|
|
10
10
|
import { Input } from './styled';
|
|
11
|
+
|
|
12
|
+
// Combine omits the keys of the second from the first so in case of overlap the props of the second are used.
|
|
13
|
+
|
|
14
|
+
// OwnProps is used for external documentation, but does not list every property supported by Range.
|
|
15
|
+
// So we combine (a reduced list of) HTMLInputElement attributes with OwnProps to get the full type.
|
|
11
16
|
var snapToStep = function snapToStep(value, min, step) {
|
|
12
17
|
// Normalise the value to allow for division properly with different min values
|
|
13
18
|
var adjustedValue = value - min;
|
package/dist/esm/version.json
CHANGED
package/dist/types/range.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type OwnProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Sets the default value if range is not set.
|
|
5
5
|
*/
|
|
@@ -35,7 +35,7 @@ export declare type OwnProps = {
|
|
|
35
35
|
*/
|
|
36
36
|
value?: number;
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
export
|
|
38
|
+
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
39
|
+
export type RangeProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'required' | 'checked'>, OwnProps>;
|
|
40
40
|
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "disabled" | "required">, keyof OwnProps> & OwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
41
41
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/range",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "A range lets users choose an approximate value on a slider.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,11 +12,18 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"homepage": "https://atlassian.design/components/range/",
|
|
18
26
|
"atlassian": {
|
|
19
|
-
"disableProductCI": true,
|
|
20
27
|
"team": "Design System Team",
|
|
21
28
|
"releaseModel": "scheduled",
|
|
22
29
|
"website": {
|
|
@@ -31,9 +38,9 @@
|
|
|
31
38
|
"./theme": "./src/theme.tsx"
|
|
32
39
|
},
|
|
33
40
|
"dependencies": {
|
|
34
|
-
"@atlaskit/ds-lib": "^2.
|
|
35
|
-
"@atlaskit/theme": "^12.
|
|
36
|
-
"@atlaskit/tokens": "^1.
|
|
41
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
42
|
+
"@atlaskit/theme": "^12.5.0",
|
|
43
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
37
44
|
"@babel/runtime": "^7.0.0",
|
|
38
45
|
"@emotion/react": "^11.7.1"
|
|
39
46
|
},
|
|
@@ -41,13 +48,13 @@
|
|
|
41
48
|
"react": "^16.8.0"
|
|
42
49
|
},
|
|
43
50
|
"devDependencies": {
|
|
44
|
-
"@atlaskit/button": "^16.
|
|
45
|
-
"@atlaskit/checkbox": "^12.
|
|
51
|
+
"@atlaskit/button": "^16.7.0",
|
|
52
|
+
"@atlaskit/checkbox": "^12.6.0",
|
|
46
53
|
"@atlaskit/docs": "*",
|
|
47
|
-
"@atlaskit/form": "^8.
|
|
48
|
-
"@atlaskit/section-message": "^6.
|
|
54
|
+
"@atlaskit/form": "^8.11.0",
|
|
55
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
49
56
|
"@atlaskit/ssr": "*",
|
|
50
|
-
"@atlaskit/tooltip": "^17.
|
|
57
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
51
58
|
"@atlaskit/visual-regression": "*",
|
|
52
59
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
53
60
|
"@emotion/styled": "^11.0.0",
|
|
@@ -57,7 +64,7 @@
|
|
|
57
64
|
"lodash": "^4.17.21",
|
|
58
65
|
"react-dom": "^16.8.0",
|
|
59
66
|
"storybook-addon-performance": "^0.16.0",
|
|
60
|
-
"typescript": "4.
|
|
67
|
+
"typescript": "~4.9.5"
|
|
61
68
|
},
|
|
62
69
|
"keywords": [
|
|
63
70
|
"atlaskit",
|
|
@@ -73,7 +80,9 @@
|
|
|
73
80
|
"dom-events": "use-bind-event-listener",
|
|
74
81
|
"ui-components": "lite-mode",
|
|
75
82
|
"analytics": "analytics-next",
|
|
76
|
-
"
|
|
83
|
+
"design-tokens": [
|
|
84
|
+
"color"
|
|
85
|
+
],
|
|
77
86
|
"deprecation": "no-deprecated-imports",
|
|
78
87
|
"styling": [
|
|
79
88
|
"emotion",
|
package/range/package.json
CHANGED
package/styled/package.json
CHANGED