@atlaskit/range 6.0.9 → 6.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 +12 -0
- package/dist/cjs/styled.js +6 -6
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/styled.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/styled.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +9 -7
- package/report.api.md +30 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/range
|
|
2
2
|
|
|
3
|
+
## 6.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
|
|
8
|
+
|
|
9
|
+
## 6.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`1966ffa850d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1966ffa850d) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
14
|
+
|
|
3
15
|
## 6.0.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/styled.js
CHANGED
|
@@ -17,7 +17,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
|
|
18
18
|
var _react = require("react");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
22
|
var theme = _interopRequireWildcard(require("./theme"));
|
|
23
23
|
|
|
@@ -62,7 +62,7 @@ var sliderTrackStyles = {
|
|
|
62
62
|
// with CSS selectors they don't recognise, e.g. &::-ms-thumb
|
|
63
63
|
|
|
64
64
|
var browserStyles = {
|
|
65
|
-
webkit: (0,
|
|
65
|
+
webkit: (0, _react2.css)({
|
|
66
66
|
WebkitAppearance: 'none',
|
|
67
67
|
// Hides the slider so that custom slider can be made
|
|
68
68
|
'::-webkit-slider-thumb': _objectSpread(_objectSpread({}, sliderThumbStyles), {}, {
|
|
@@ -93,7 +93,7 @@ var browserStyles = {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
}),
|
|
96
|
-
firefox: (0,
|
|
96
|
+
firefox: (0, _react2.css)({
|
|
97
97
|
'::-moz-range-thumb': sliderThumbStyles,
|
|
98
98
|
'::-moz-focus-outer': {
|
|
99
99
|
border: 0
|
|
@@ -111,7 +111,7 @@ var browserStyles = {
|
|
|
111
111
|
}
|
|
112
112
|
})
|
|
113
113
|
};
|
|
114
|
-
var baseStyles = (0,
|
|
114
|
+
var baseStyles = (0, _react2.css)({
|
|
115
115
|
width: '100%',
|
|
116
116
|
// Has a fixed width by default
|
|
117
117
|
height: theme.input.height,
|
|
@@ -125,7 +125,7 @@ var baseStyles = (0, _core.css)({
|
|
|
125
125
|
cursor: 'not-allowed'
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
-
var themeStyles = (0,
|
|
128
|
+
var themeStyles = (0, _react2.css)((_css = {}, (0, _defineProperty2.default)(_css, VAR_THUMB_BORDER_COLOR, theme.thumb.borderColor.default), (0, _defineProperty2.default)(_css, VAR_THUMB_SHADOW, theme.thumb.boxShadow.default), (0, _defineProperty2.default)(_css, VAR_TRACK_BACKGROUND_COLOR, theme.track.background.default), (0, _defineProperty2.default)(_css, VAR_TRACK_FOREGROUND_COLOR, theme.track.foreground.default), (0, _defineProperty2.default)(_css, ':active, :hover', (_activeHover = {}, (0, _defineProperty2.default)(_activeHover, VAR_TRACK_BACKGROUND_COLOR, theme.track.background.hovered), (0, _defineProperty2.default)(_activeHover, VAR_TRACK_FOREGROUND_COLOR, theme.track.foreground.hovered), _activeHover)), (0, _defineProperty2.default)(_css, ':focus', (0, _defineProperty2.default)({}, VAR_THUMB_BORDER_COLOR, theme.thumb.borderColor.focused)), (0, _defineProperty2.default)(_css, ':disabled', (_disabled = {}, (0, _defineProperty2.default)(_disabled, VAR_THUMB_SHADOW, theme.thumb.boxShadow.disabled), (0, _defineProperty2.default)(_disabled, VAR_TRACK_BACKGROUND_COLOR, theme.track.background.disabled), (0, _defineProperty2.default)(_disabled, VAR_TRACK_FOREGROUND_COLOR, theme.track.foreground.disabled), _disabled)), _css));
|
|
129
129
|
/**
|
|
130
130
|
* __Input__
|
|
131
131
|
* Internal-only styled input component.
|
|
@@ -135,7 +135,7 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
135
135
|
var valuePercent = props.valuePercent,
|
|
136
136
|
style = props.style,
|
|
137
137
|
strippedProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
138
|
-
return (0,
|
|
138
|
+
return (0, _react2.jsx)("input", (0, _extends2.default)({}, strippedProps, {
|
|
139
139
|
style: (0, _defineProperty2.default)({}, VAR_TRACK_FOREGROUND_WIDTH, "".concat(valuePercent, "%")),
|
|
140
140
|
ref: ref,
|
|
141
141
|
css: [baseStyles, browserStyles.webkit, browserStyles.firefox, themeStyles]
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/styled.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import * as theme from './theme';
|
|
7
7
|
const VAR_THUMB_BORDER_COLOR = '--thumb-border';
|
|
8
8
|
const VAR_THUMB_SHADOW = '--thumb-shadow';
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/styled.js
CHANGED
|
@@ -11,7 +11,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
11
11
|
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
import { forwardRef } from 'react';
|
|
14
|
-
import { css, jsx } from '@emotion/
|
|
14
|
+
import { css, jsx } from '@emotion/react';
|
|
15
15
|
import * as theme from './theme';
|
|
16
16
|
var VAR_THUMB_BORDER_COLOR = '--thumb-border';
|
|
17
17
|
var VAR_THUMB_SHADOW = '--thumb-shadow';
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/range",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.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/"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"atlaskit:src": "src/index.tsx",
|
|
24
25
|
"homepage": "https://atlassian.design/components/range/",
|
|
25
26
|
"atlassian": {
|
|
27
|
+
"disableProductCI": true,
|
|
26
28
|
"team": "Design System Team",
|
|
27
29
|
"releaseModel": "scheduled",
|
|
28
30
|
"website": {
|
|
@@ -41,19 +43,19 @@
|
|
|
41
43
|
"@atlaskit/theme": "^12.2.0",
|
|
42
44
|
"@atlaskit/tokens": "^0.10.0",
|
|
43
45
|
"@babel/runtime": "^7.0.0",
|
|
44
|
-
"@emotion/
|
|
46
|
+
"@emotion/react": "^11.7.1"
|
|
45
47
|
},
|
|
46
48
|
"peerDependencies": {
|
|
47
49
|
"react": "^16.8.0"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
52
|
"@atlaskit/button": "^16.3.0",
|
|
51
|
-
"@atlaskit/checkbox": "^12.
|
|
53
|
+
"@atlaskit/checkbox": "^12.4.0",
|
|
52
54
|
"@atlaskit/docs": "*",
|
|
53
|
-
"@atlaskit/form": "^8.
|
|
54
|
-
"@atlaskit/section-message": "^6.
|
|
55
|
+
"@atlaskit/form": "^8.6.0",
|
|
56
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
55
57
|
"@atlaskit/ssr": "*",
|
|
56
|
-
"@atlaskit/tooltip": "^17.
|
|
58
|
+
"@atlaskit/tooltip": "^17.6.0",
|
|
57
59
|
"@atlaskit/visual-regression": "*",
|
|
58
60
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
59
61
|
"@emotion/styled": "^11.0.0",
|
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/range"
|
|
1
|
+
## API Report File for "@atlaskit/range".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
import { default as React_2 } from 'react';
|
|
@@ -21,21 +23,39 @@ declare const _default: React_2.ForwardRefExoticComponent<
|
|
|
21
23
|
export default _default;
|
|
22
24
|
|
|
23
25
|
declare type OwnProps = {
|
|
24
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Sets the default value if range is not set.
|
|
28
|
+
*/
|
|
25
29
|
defaultValue?: number;
|
|
26
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Sets whether the field range is disabled.
|
|
32
|
+
*/
|
|
27
33
|
isDisabled?: boolean;
|
|
28
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Sets the maximum value of the range.
|
|
36
|
+
*/
|
|
29
37
|
max?: number;
|
|
30
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Sets the minimum value of the range.
|
|
40
|
+
*/
|
|
31
41
|
min?: number;
|
|
32
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Hook to be invoked on change of the range.
|
|
44
|
+
*/
|
|
33
45
|
onChange?: (value: number) => void;
|
|
34
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Sets the step value for the range.
|
|
48
|
+
*/
|
|
35
49
|
step?: number;
|
|
36
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* A `testId` prop is provided for specific elements. This is a unique string
|
|
52
|
+
* that appears as a data attribute `data-testid` in the rendered code and
|
|
53
|
+
* serves as a hook for automated tests.
|
|
54
|
+
*/
|
|
37
55
|
testId?: string;
|
|
38
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Sets the value of the range.
|
|
58
|
+
*/
|
|
39
59
|
value?: number;
|
|
40
60
|
};
|
|
41
61
|
|