@atlaskit/range 10.1.2 → 11.0.0
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 +26 -0
- package/package.json +14 -22
- package/range/package.json +1 -8
- package/styled/package.json +1 -8
- package/dist/types-ts4.5/entry-points/range.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/styled.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/range.d.ts +0 -50
- package/dist/types-ts4.5/styled.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/range
|
|
2
2
|
|
|
3
|
+
## 11.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 10.1.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/range",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "A range lets users choose an approximate value on a slider.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/css": "^0.
|
|
35
|
-
"@atlaskit/ds-lib": "^
|
|
36
|
-
"@atlaskit/platform-feature-flags": "^
|
|
37
|
-
"@atlaskit/theme": "^
|
|
38
|
-
"@atlaskit/tokens": "^
|
|
34
|
+
"@atlaskit/css": "^1.0.0",
|
|
35
|
+
"@atlaskit/ds-lib": "^8.0.0",
|
|
36
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
37
|
+
"@atlaskit/theme": "^26.0.0",
|
|
38
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"@compiled/react": "^0.20.0"
|
|
41
41
|
},
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@af/accessibility-testing": "workspace:^",
|
|
47
47
|
"@af/integration-testing": "workspace:^",
|
|
48
48
|
"@af/visual-regression": "workspace:^",
|
|
49
|
-
"@atlaskit/button": "^
|
|
50
|
-
"@atlaskit/checkbox": "^
|
|
51
|
-
"@atlaskit/docs": "^
|
|
52
|
-
"@atlaskit/form": "^
|
|
53
|
-
"@atlaskit/link": "^
|
|
54
|
-
"@atlaskit/primitives": "^
|
|
55
|
-
"@atlaskit/section-message": "^
|
|
56
|
-
"@atlaskit/tooltip": "^
|
|
49
|
+
"@atlaskit/button": "^24.0.0",
|
|
50
|
+
"@atlaskit/checkbox": "^18.0.0",
|
|
51
|
+
"@atlaskit/docs": "^12.0.0",
|
|
52
|
+
"@atlaskit/form": "^16.0.0",
|
|
53
|
+
"@atlaskit/link": "^4.0.0",
|
|
54
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
55
|
+
"@atlaskit/section-message": "^9.0.0",
|
|
56
|
+
"@atlaskit/tooltip": "^23.0.0",
|
|
57
57
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
58
58
|
"@atlassian/ssr-tests": "workspace:^",
|
|
59
59
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
@@ -87,14 +87,6 @@
|
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
"typesVersions": {
|
|
91
|
-
">=4.5 <4.9": {
|
|
92
|
-
"*": [
|
|
93
|
-
"dist/types-ts4.5/*",
|
|
94
|
-
"dist/types-ts4.5/index.d.ts"
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
90
|
"platform-feature-flags": {
|
|
99
91
|
"platform-dst-shape-theme-default": {
|
|
100
92
|
"type": "boolean"
|
package/range/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/range.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/range.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/range.d.ts"
|
|
17
10
|
}
|
package/styled/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/styled.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/styled.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/styled.d.ts"
|
|
17
10
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Input } from '../styled';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type OwnProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Sets the default value if range is not set.
|
|
5
|
-
*/
|
|
6
|
-
defaultValue?: number;
|
|
7
|
-
/**
|
|
8
|
-
* Sets whether the field range is disabled.
|
|
9
|
-
*/
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Sets the maximum value of the range.
|
|
13
|
-
*/
|
|
14
|
-
max?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Sets the minimum value of the range.
|
|
17
|
-
*/
|
|
18
|
-
min?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Hook to be invoked on change of the range.
|
|
21
|
-
*/
|
|
22
|
-
onChange?: (value: number) => void;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the step value for the range.
|
|
25
|
-
*/
|
|
26
|
-
step?: number;
|
|
27
|
-
/**
|
|
28
|
-
* A `testId` prop is provided for specific elements. This is a unique string
|
|
29
|
-
* that appears as a data attribute `data-testid` in the rendered code and
|
|
30
|
-
* serves as a hook for automated tests.
|
|
31
|
-
*/
|
|
32
|
-
testId?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the value of the range.
|
|
35
|
-
*/
|
|
36
|
-
value?: number;
|
|
37
|
-
};
|
|
38
|
-
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
39
|
-
export type RangeProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'required' | 'checked'>, OwnProps>;
|
|
40
|
-
/**
|
|
41
|
-
* __Range__
|
|
42
|
-
*
|
|
43
|
-
* A range lets users choose an approximate value on a slider.
|
|
44
|
-
*
|
|
45
|
-
* - [Examples](https://atlassian.design/components/range/examples)
|
|
46
|
-
* - [Code](https://atlassian.design/components/range/code)
|
|
47
|
-
* - [Usage](https://atlassian.design/components/range/usage)
|
|
48
|
-
*/
|
|
49
|
-
declare const Range: React.ForwardRefExoticComponent<React.PropsWithoutRef<RangeProps> & React.RefAttributes<HTMLInputElement>>;
|
|
50
|
-
export default Range;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
2
|
-
ref: React.Ref<HTMLInputElement>;
|
|
3
|
-
valuePercent: string;
|
|
4
|
-
};
|
|
5
|
-
declare const Input: React.ForwardRefExoticComponent<React.PropsWithoutRef<InputProps> & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export {
|
|
7
|
-
/**
|
|
8
|
-
* __Input__
|
|
9
|
-
* Internal-only styled input component.
|
|
10
|
-
*/
|
|
11
|
-
Input, };
|