@atlaskit/rating 0.2.22 → 0.2.25

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,23 @@
1
1
  # @atlaskit/rating
2
2
 
3
+ ## 0.2.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.2.24
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 0.2.23
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 0.2.22
4
22
 
5
23
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.22",
3
+ "version": "0.2.25",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.22",
3
+ "version": "0.2.25",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.22",
3
+ "version": "0.2.25",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.22",
3
+ "version": "0.2.25",
4
4
  "description": "An accessible rating component that can be heavily customized.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,7 +26,7 @@
26
26
  "@atlaskit/icon": "^21.10.0",
27
27
  "@atlaskit/motion": "^1.1.0",
28
28
  "@atlaskit/theme": "^12.1.0",
29
- "@atlaskit/tokens": "0.10.7",
29
+ "@atlaskit/tokens": "0.10.10",
30
30
  "@atlaskit/tooltip": "^17.5.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/core": "^10.0.9"
package/report.api.md ADDED
@@ -0,0 +1,68 @@
1
+ ## API Report File for "@atlaskit/rating"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+ /// <reference types="react" />
7
+
8
+ import { ForwardRefExoticComponent } from 'react';
9
+ import { default as React_2 } from 'react';
10
+ import { RefAttributes } from 'react';
11
+
12
+ // @public (undocumented)
13
+ export interface InternalRatingProps extends RatingProps {
14
+ render: RatingRender;
15
+ }
16
+
17
+ // @public (undocumented)
18
+ export const Rating: ForwardRefExoticComponent<
19
+ InternalRatingProps & RefAttributes<HTMLLabelElement>
20
+ >;
21
+
22
+ // @public (undocumented)
23
+ export function RatingGroup({
24
+ groupName,
25
+ onChange,
26
+ defaultValue,
27
+ value,
28
+ testId,
29
+ children,
30
+ }: RatingGroupProps): JSX.Element;
31
+
32
+ // @public (undocumented)
33
+ export interface RatingGroupProps {
34
+ children: JSX.Element | JSX.Element[];
35
+ defaultValue?: string;
36
+ groupName?: string;
37
+ onChange?: (value?: string) => void;
38
+ testId?: string;
39
+ value?: string;
40
+ }
41
+
42
+ // @public (undocumented)
43
+ export interface RatingProps {
44
+ id?: string;
45
+ isChecked?: boolean;
46
+ label: string;
47
+ name?: string;
48
+ onChange?: (value?: string) => void;
49
+ testId?: string;
50
+ value: string;
51
+ }
52
+
53
+ // @public (undocumented)
54
+ export type RatingRender = (props: { isChecked: boolean }) => React.ReactNode;
55
+
56
+ // @public (undocumented)
57
+ export const Star: React_2.ForwardRefExoticComponent<
58
+ StarProps & React_2.RefAttributes<HTMLLabelElement>
59
+ >;
60
+
61
+ // @public (undocumented)
62
+ export interface StarProps extends RatingProps {
63
+ color?: string;
64
+ size?: 'small' | 'medium' | 'large' | 'xlarge';
65
+ }
66
+
67
+ // (No @packageDocumentation comment for this package)
68
+ ```