@atlaskit/range 10.1.1 → 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 CHANGED
@@ -1,5 +1,37 @@
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
+
29
+ ## 10.1.2
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 10.1.1
4
36
 
5
37
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/range",
3
- "version": "10.1.1",
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.19.0",
35
- "@atlaskit/ds-lib": "^7.0.0",
36
- "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/theme": "^24.0.0",
38
- "@atlaskit/tokens": "^13.0.0",
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": "^23.11.0",
50
- "@atlaskit/checkbox": "^17.3.0",
51
- "@atlaskit/docs": "^11.8.0",
52
- "@atlaskit/form": "^15.5.0",
53
- "@atlaskit/link": "^3.4.0",
54
- "@atlaskit/primitives": "^19.0.0",
55
- "@atlaskit/section-message": "^8.13.0",
56
- "@atlaskit/tooltip": "^22.2.0",
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"
@@ -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/range.docs.tsx CHANGED
@@ -1,47 +1,49 @@
1
1
  import path from 'path';
2
2
 
3
- import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
3
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
4
4
 
5
- const documentation: ComponentStructuredContentSource[] = [
6
- {
7
- name: 'Range',
8
- description: 'A component for selecting a value from a range of values.',
9
- status: 'general-availability',
10
- import: {
5
+ const documentation: StructuredContentSource = {
6
+ components: [
7
+ {
11
8
  name: 'Range',
12
- package: '@atlaskit/range',
13
- type: 'default',
14
- packagePath: path.resolve(__dirname),
15
- packageJson: require('./package.json'),
16
- },
17
- usageGuidelines: [
18
- 'Use for selecting numeric values within a range',
19
- 'Provide clear min/max boundaries',
20
- 'Use appropriate step increments',
21
- 'Consider showing current value',
22
- ],
23
- contentGuidelines: [
24
- 'Use clear range labels',
25
- 'Provide meaningful min/max labels',
26
- 'Show current value when helpful',
27
- 'Use consistent range terminology',
28
- ],
29
- accessibilityGuidelines: [
30
- 'Provide clear labels for range inputs',
31
- 'Use appropriate ARIA attributes',
32
- 'Ensure keyboard navigation support',
33
- 'Provide value announcements for screen readers',
34
- ],
35
- examples: [
36
- {
9
+ description: 'A component for selecting a value from a range of values.',
10
+ status: 'general-availability',
11
+ import: {
37
12
  name: 'Range',
38
- description: 'Range example',
39
- source: path.resolve(__dirname, './examples/ai/range.tsx'),
13
+ package: '@atlaskit/range',
14
+ type: 'default',
15
+ packagePath: path.resolve(__dirname),
16
+ packageJson: require('./package.json'),
40
17
  },
41
- ],
42
- keywords: ['range', 'slider', 'input', 'form', 'value', 'selection'],
43
- categories: ['form'],
44
- },
45
- ];
18
+ usageGuidelines: [
19
+ 'Use for selecting numeric values within a range',
20
+ 'Provide clear min/max boundaries',
21
+ 'Use appropriate step increments',
22
+ 'Consider showing current value',
23
+ ],
24
+ contentGuidelines: [
25
+ 'Use clear range labels',
26
+ 'Provide meaningful min/max labels',
27
+ 'Show current value when helpful',
28
+ 'Use consistent range terminology',
29
+ ],
30
+ accessibilityGuidelines: [
31
+ 'Provide clear labels for range inputs',
32
+ 'Use appropriate ARIA attributes',
33
+ 'Ensure keyboard navigation support',
34
+ 'Provide value announcements for screen readers',
35
+ ],
36
+ examples: [
37
+ {
38
+ name: 'Range',
39
+ description: 'Range example',
40
+ source: path.resolve(__dirname, './examples/ai/range.tsx'),
41
+ },
42
+ ],
43
+ keywords: ['range', 'slider', 'input', 'form', 'value', 'selection'],
44
+ categories: ['form'],
45
+ },
46
+ ],
47
+ };
46
48
 
47
49
  export default documentation;
@@ -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,2 +0,0 @@
1
- export type { OwnProps, RangeProps } from '../range';
2
- export { default } from '../range';
@@ -1 +0,0 @@
1
- export { Input } from '../styled';
@@ -1,2 +0,0 @@
1
- export { default } from './range';
2
- export type { RangeProps } from './range';
@@ -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, };