@atlaskit/range 7.1.0 → 7.1.2
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/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/range.d.ts +3 -3
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/dist/types-ts4.5/range.d.ts +41 -0
- package/dist/types-ts4.5/styled.d.ts +10 -0
- package/dist/types-ts4.5/theme.d.ts +37 -0
- package/package.json +12 -4
- 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,17 @@
|
|
|
1
1
|
# @atlaskit/range
|
|
2
2
|
|
|
3
|
+
## 7.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
8
|
+
|
|
9
|
+
## 7.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
14
|
+
|
|
3
15
|
## 7.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
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;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "disabled" | "required">, keyof OwnProps> & OwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
/**
|
|
4
|
+
* __Input__
|
|
5
|
+
* Internal-only styled input component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Input: import("react").ForwardRefExoticComponent<Pick<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
8
|
+
ref: React.Ref<HTMLInputElement>;
|
|
9
|
+
valuePercent: string;
|
|
10
|
+
}, keyof import("react").InputHTMLAttributes<HTMLInputElement> | "valuePercent"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const transitionDuration = "0.2s";
|
|
2
|
+
export declare const input: {
|
|
3
|
+
height: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const thumb: {
|
|
6
|
+
readonly size: 16;
|
|
7
|
+
readonly borderWidth: 2;
|
|
8
|
+
readonly background: {
|
|
9
|
+
readonly default: "var(--ds-background-neutral-bold)";
|
|
10
|
+
readonly hovered: "var(--ds-background-neutral-bold-hovered)";
|
|
11
|
+
readonly pressed: "var(--ds-background-neutral-bold-pressed)";
|
|
12
|
+
};
|
|
13
|
+
readonly borderColor: {
|
|
14
|
+
readonly default: "transparent";
|
|
15
|
+
readonly focused: "var(--ds-border-focused)";
|
|
16
|
+
};
|
|
17
|
+
readonly boxShadow: {
|
|
18
|
+
readonly default: "var(--ds-UNSAFE-transparent)";
|
|
19
|
+
readonly disabled: "var(--ds-shadow-raised)";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const track: {
|
|
23
|
+
readonly height: 4;
|
|
24
|
+
/**
|
|
25
|
+
* borderRadius >= height / 2 to create a pill shape.
|
|
26
|
+
* Using '50%' creates an ellipse.
|
|
27
|
+
*/
|
|
28
|
+
readonly borderRadius: 2;
|
|
29
|
+
readonly background: {
|
|
30
|
+
readonly default: "var(--ds-background-neutral)";
|
|
31
|
+
readonly hovered: "var(--ds-background-neutral-hovered)";
|
|
32
|
+
};
|
|
33
|
+
readonly foreground: {
|
|
34
|
+
readonly default: "var(--ds-background-neutral-bold)";
|
|
35
|
+
readonly hovered: "var(--ds-background-neutral-bold-hovered)";
|
|
36
|
+
};
|
|
37
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/range",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
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,6 +12,14 @@
|
|
|
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/",
|
|
@@ -32,7 +40,7 @@
|
|
|
32
40
|
"dependencies": {
|
|
33
41
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
34
42
|
"@atlaskit/theme": "^12.5.0",
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
36
44
|
"@babel/runtime": "^7.0.0",
|
|
37
45
|
"@emotion/react": "^11.7.1"
|
|
38
46
|
},
|
|
@@ -41,7 +49,7 @@
|
|
|
41
49
|
},
|
|
42
50
|
"devDependencies": {
|
|
43
51
|
"@atlaskit/button": "^16.7.0",
|
|
44
|
-
"@atlaskit/checkbox": "^12.
|
|
52
|
+
"@atlaskit/checkbox": "^12.6.0",
|
|
45
53
|
"@atlaskit/docs": "*",
|
|
46
54
|
"@atlaskit/form": "^8.11.0",
|
|
47
55
|
"@atlaskit/section-message": "^6.4.0",
|
|
@@ -56,7 +64,7 @@
|
|
|
56
64
|
"lodash": "^4.17.21",
|
|
57
65
|
"react-dom": "^16.8.0",
|
|
58
66
|
"storybook-addon-performance": "^0.16.0",
|
|
59
|
-
"typescript": "4.
|
|
67
|
+
"typescript": "~4.9.5"
|
|
60
68
|
},
|
|
61
69
|
"keywords": [
|
|
62
70
|
"atlaskit",
|
package/range/package.json
CHANGED
package/styled/package.json
CHANGED