@atlaskit/checkbox 12.3.16 → 12.3.17

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,11 @@
1
1
  # @atlaskit/checkbox
2
2
 
3
+ ## 12.3.17
4
+
5
+ ### Patch Changes
6
+
7
+ - [`90e89e12034`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90e89e12034) - [ux] Updated colors to use appropriate tokens
8
+
3
9
  ## 12.3.16
4
10
 
5
11
  ### Patch Changes
@@ -174,7 +174,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
174
174
  analyticsData: analyticsContext,
175
175
  componentName: 'checkbox',
176
176
  packageName: "@atlaskit/checkbox",
177
- packageVersion: "12.3.16"
177
+ packageVersion: "12.3.17"
178
178
  });
179
179
  var internalRef = (0, _react.useRef)(null);
180
180
  var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]); // Use isChecked from the state if it is controlled
@@ -13,25 +13,25 @@ var theme = {
13
13
  rest: "var(--ds-border, ".concat(_colors.N40, ")"),
14
14
  hovered: "var(--ds-border, ".concat(_colors.N40, ")"),
15
15
  disabled: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
16
- checked: "var(--ds-background-brand-bold, ".concat(_colors.B400, ")"),
16
+ checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
17
17
  active: "var(--ds-border, ".concat(_colors.B50, ")"),
18
18
  invalid: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
19
19
  invalidAndChecked: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
20
20
  focused: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
21
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(_colors.B300, ")")
21
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")")
22
22
  },
23
23
  boxColor: {
24
24
  rest: "var(--ds-background-input, ".concat(_colors.N10, ")"),
25
- hovered: "var(--ds-surface, ".concat(_colors.N30, ")"),
25
+ hovered: "var(--ds-background-input-hovered, ".concat(_colors.N30, ")"),
26
26
  disabled: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
27
27
  active: "var(--ds-background-input-pressed, ".concat(_colors.B50, ")"),
28
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(_colors.B300, ")"),
29
- checked: "var(--ds-background-brand-bold, ".concat(_colors.B400, ")")
28
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")"),
29
+ checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")")
30
30
  },
31
31
  tickColor: {
32
- disabledAndChecked: "var(--ds-text-disabled, ".concat(_colors.N70, ")"),
33
- activeAndChecked: "var(--ds-text-inverse, ".concat(_colors.B400, ")"),
34
- checked: "var(--ds-text-inverse, ".concat(_colors.N10, ")")
32
+ disabledAndChecked: "var(--ds-icon-disabled, ".concat(_colors.N70, ")"),
33
+ activeAndChecked: "var(--ds-icon-inverse, ".concat(_colors.B400, ")"),
34
+ checked: "var(--ds-icon-inverse, ".concat(_colors.N10, ")")
35
35
  }
36
36
  },
37
37
  dark: {
@@ -39,25 +39,25 @@ var theme = {
39
39
  rest: "var(--ds-border, ".concat(_colors.DN80, ")"),
40
40
  hovered: "var(--ds-border, ".concat(_colors.DN200, ")"),
41
41
  disabled: "var(--ds-background-disabled, ".concat(_colors.DN10, ")"),
42
- checked: "var(--ds-background-brand-bold, ".concat(_colors.B400, ")"),
42
+ checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
43
43
  active: "var(--ds-border, ".concat(_colors.B200, ")"),
44
44
  invalid: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
45
45
  invalidAndChecked: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
46
46
  focused: "var(--ds-border-focused, ".concat(_colors.B75, ")"),
47
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(_colors.B75, ")")
47
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B75, ")")
48
48
  },
49
49
  boxColor: {
50
50
  rest: "var(--ds-background-input, ".concat(_colors.DN10, ")"),
51
- hovered: "var(--ds-surface, ".concat(_colors.DN30, ")"),
51
+ hovered: "var(--ds-background-input-hovered, ".concat(_colors.DN30, ")"),
52
52
  disabled: "var(--ds-background-disabled, ".concat(_colors.DN10, ")"),
53
53
  active: "var(--ds-background-input-pressed, ".concat(_colors.B200, ")"),
54
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(_colors.B75, ")"),
55
- checked: "var(--ds-background-brand-bold, ".concat(_colors.B400, ")")
54
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B75, ")"),
55
+ checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")")
56
56
  },
57
57
  tickColor: {
58
- disabledAndChecked: "var(--ds-text-disabled, ".concat(_colors.DN90, ")"),
59
- activeAndChecked: "var(--ds-text-inverse, ".concat(_colors.DN10, ")"),
60
- checked: "var(--ds-text-inverse, ".concat(_colors.DN10, ")")
58
+ disabledAndChecked: "var(--ds-icon-disabled, ".concat(_colors.DN90, ")"),
59
+ activeAndChecked: "var(--ds-icon-inverse, ".concat(_colors.DN10, ")"),
60
+ checked: "var(--ds-icon-inverse, ".concat(_colors.DN10, ")")
61
61
  }
62
62
  }
63
63
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.16",
3
+ "version": "12.3.17",
4
4
  "sideEffects": false
5
5
  }
@@ -148,7 +148,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(pr
148
148
  analyticsData: analyticsContext,
149
149
  componentName: 'checkbox',
150
150
  packageName: "@atlaskit/checkbox",
151
- packageVersion: "12.3.16"
151
+ packageVersion: "12.3.17"
152
152
  });
153
153
  const internalRef = useRef(null);
154
154
  const mergedRefs = mergeRefs([internalRef, ref]); // Use isChecked from the state if it is controlled
@@ -5,25 +5,25 @@ const theme = {
5
5
  rest: `var(--ds-border, ${N40})`,
6
6
  hovered: `var(--ds-border, ${N40})`,
7
7
  disabled: `var(--ds-background-disabled, ${N20})`,
8
- checked: `var(--ds-background-brand-bold, ${B400})`,
8
+ checked: `var(--ds-background-selected-bold, ${B400})`,
9
9
  active: `var(--ds-border, ${B50})`,
10
10
  invalid: `var(--ds-border-danger, ${R300})`,
11
11
  invalidAndChecked: `var(--ds-border-danger, ${R300})`,
12
12
  focused: `var(--ds-border-focused, ${B100})`,
13
- hoveredAndChecked: `var(--ds-background-brand-bold-hovered, ${B300})`
13
+ hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B300})`
14
14
  },
15
15
  boxColor: {
16
16
  rest: `var(--ds-background-input, ${N10})`,
17
- hovered: `var(--ds-surface, ${N30})`,
17
+ hovered: `var(--ds-background-input-hovered, ${N30})`,
18
18
  disabled: `var(--ds-background-disabled, ${N20})`,
19
19
  active: `var(--ds-background-input-pressed, ${B50})`,
20
- hoveredAndChecked: `var(--ds-background-brand-bold-hovered, ${B300})`,
21
- checked: `var(--ds-background-brand-bold, ${B400})`
20
+ hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B300})`,
21
+ checked: `var(--ds-background-selected-bold, ${B400})`
22
22
  },
23
23
  tickColor: {
24
- disabledAndChecked: `var(--ds-text-disabled, ${N70})`,
25
- activeAndChecked: `var(--ds-text-inverse, ${B400})`,
26
- checked: `var(--ds-text-inverse, ${N10})`
24
+ disabledAndChecked: `var(--ds-icon-disabled, ${N70})`,
25
+ activeAndChecked: `var(--ds-icon-inverse, ${B400})`,
26
+ checked: `var(--ds-icon-inverse, ${N10})`
27
27
  }
28
28
  },
29
29
  dark: {
@@ -31,25 +31,25 @@ const theme = {
31
31
  rest: `var(--ds-border, ${DN80})`,
32
32
  hovered: `var(--ds-border, ${DN200})`,
33
33
  disabled: `var(--ds-background-disabled, ${DN10})`,
34
- checked: `var(--ds-background-brand-bold, ${B400})`,
34
+ checked: `var(--ds-background-selected-bold, ${B400})`,
35
35
  active: `var(--ds-border, ${B200})`,
36
36
  invalid: `var(--ds-border-danger, ${R300})`,
37
37
  invalidAndChecked: `var(--ds-border-danger, ${R300})`,
38
38
  focused: `var(--ds-border-focused, ${B75})`,
39
- hoveredAndChecked: `var(--ds-background-brand-bold-hovered, ${B75})`
39
+ hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B75})`
40
40
  },
41
41
  boxColor: {
42
42
  rest: `var(--ds-background-input, ${DN10})`,
43
- hovered: `var(--ds-surface, ${DN30})`,
43
+ hovered: `var(--ds-background-input-hovered, ${DN30})`,
44
44
  disabled: `var(--ds-background-disabled, ${DN10})`,
45
45
  active: `var(--ds-background-input-pressed, ${B200})`,
46
- hoveredAndChecked: `var(--ds-background-brand-bold-hovered, ${B75})`,
47
- checked: `var(--ds-background-brand-bold, ${B400})`
46
+ hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B75})`,
47
+ checked: `var(--ds-background-selected-bold, ${B400})`
48
48
  },
49
49
  tickColor: {
50
- disabledAndChecked: `var(--ds-text-disabled, ${DN90})`,
51
- activeAndChecked: `var(--ds-text-inverse, ${DN10})`,
52
- checked: `var(--ds-text-inverse, ${DN10})`
50
+ disabledAndChecked: `var(--ds-icon-disabled, ${DN90})`,
51
+ activeAndChecked: `var(--ds-icon-inverse, ${DN10})`,
52
+ checked: `var(--ds-icon-inverse, ${DN10})`
53
53
  }
54
54
  }
55
55
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.16",
3
+ "version": "12.3.17",
4
4
  "sideEffects": false
5
5
  }
@@ -159,7 +159,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(prop
159
159
  analyticsData: analyticsContext,
160
160
  componentName: 'checkbox',
161
161
  packageName: "@atlaskit/checkbox",
162
- packageVersion: "12.3.16"
162
+ packageVersion: "12.3.17"
163
163
  });
164
164
  var internalRef = useRef(null);
165
165
  var mergedRefs = mergeRefs([internalRef, ref]); // Use isChecked from the state if it is controlled
@@ -5,25 +5,25 @@ var theme = {
5
5
  rest: "var(--ds-border, ".concat(N40, ")"),
6
6
  hovered: "var(--ds-border, ".concat(N40, ")"),
7
7
  disabled: "var(--ds-background-disabled, ".concat(N20, ")"),
8
- checked: "var(--ds-background-brand-bold, ".concat(B400, ")"),
8
+ checked: "var(--ds-background-selected-bold, ".concat(B400, ")"),
9
9
  active: "var(--ds-border, ".concat(B50, ")"),
10
10
  invalid: "var(--ds-border-danger, ".concat(R300, ")"),
11
11
  invalidAndChecked: "var(--ds-border-danger, ".concat(R300, ")"),
12
12
  focused: "var(--ds-border-focused, ".concat(B100, ")"),
13
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(B300, ")")
13
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B300, ")")
14
14
  },
15
15
  boxColor: {
16
16
  rest: "var(--ds-background-input, ".concat(N10, ")"),
17
- hovered: "var(--ds-surface, ".concat(N30, ")"),
17
+ hovered: "var(--ds-background-input-hovered, ".concat(N30, ")"),
18
18
  disabled: "var(--ds-background-disabled, ".concat(N20, ")"),
19
19
  active: "var(--ds-background-input-pressed, ".concat(B50, ")"),
20
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(B300, ")"),
21
- checked: "var(--ds-background-brand-bold, ".concat(B400, ")")
20
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B300, ")"),
21
+ checked: "var(--ds-background-selected-bold, ".concat(B400, ")")
22
22
  },
23
23
  tickColor: {
24
- disabledAndChecked: "var(--ds-text-disabled, ".concat(N70, ")"),
25
- activeAndChecked: "var(--ds-text-inverse, ".concat(B400, ")"),
26
- checked: "var(--ds-text-inverse, ".concat(N10, ")")
24
+ disabledAndChecked: "var(--ds-icon-disabled, ".concat(N70, ")"),
25
+ activeAndChecked: "var(--ds-icon-inverse, ".concat(B400, ")"),
26
+ checked: "var(--ds-icon-inverse, ".concat(N10, ")")
27
27
  }
28
28
  },
29
29
  dark: {
@@ -31,25 +31,25 @@ var theme = {
31
31
  rest: "var(--ds-border, ".concat(DN80, ")"),
32
32
  hovered: "var(--ds-border, ".concat(DN200, ")"),
33
33
  disabled: "var(--ds-background-disabled, ".concat(DN10, ")"),
34
- checked: "var(--ds-background-brand-bold, ".concat(B400, ")"),
34
+ checked: "var(--ds-background-selected-bold, ".concat(B400, ")"),
35
35
  active: "var(--ds-border, ".concat(B200, ")"),
36
36
  invalid: "var(--ds-border-danger, ".concat(R300, ")"),
37
37
  invalidAndChecked: "var(--ds-border-danger, ".concat(R300, ")"),
38
38
  focused: "var(--ds-border-focused, ".concat(B75, ")"),
39
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(B75, ")")
39
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B75, ")")
40
40
  },
41
41
  boxColor: {
42
42
  rest: "var(--ds-background-input, ".concat(DN10, ")"),
43
- hovered: "var(--ds-surface, ".concat(DN30, ")"),
43
+ hovered: "var(--ds-background-input-hovered, ".concat(DN30, ")"),
44
44
  disabled: "var(--ds-background-disabled, ".concat(DN10, ")"),
45
45
  active: "var(--ds-background-input-pressed, ".concat(B200, ")"),
46
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered, ".concat(B75, ")"),
47
- checked: "var(--ds-background-brand-bold, ".concat(B400, ")")
46
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B75, ")"),
47
+ checked: "var(--ds-background-selected-bold, ".concat(B400, ")")
48
48
  },
49
49
  tickColor: {
50
- disabledAndChecked: "var(--ds-text-disabled, ".concat(DN90, ")"),
51
- activeAndChecked: "var(--ds-text-inverse, ".concat(DN10, ")"),
52
- checked: "var(--ds-text-inverse, ".concat(DN10, ")")
50
+ disabledAndChecked: "var(--ds-icon-disabled, ".concat(DN90, ")"),
51
+ activeAndChecked: "var(--ds-icon-inverse, ".concat(DN10, ")"),
52
+ checked: "var(--ds-icon-inverse, ".concat(DN10, ")")
53
53
  }
54
54
  }
55
55
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.16",
3
+ "version": "12.3.17",
4
4
  "sideEffects": false
5
5
  }
@@ -4,25 +4,25 @@ declare const theme: {
4
4
  rest: "var(--ds-border)";
5
5
  hovered: "var(--ds-border)";
6
6
  disabled: "var(--ds-background-disabled)";
7
- checked: "var(--ds-background-brand-bold)";
7
+ checked: "var(--ds-background-selected-bold)";
8
8
  active: "var(--ds-border)";
9
9
  invalid: "var(--ds-border-danger)";
10
10
  invalidAndChecked: "var(--ds-border-danger)";
11
11
  focused: "var(--ds-border-focused)";
12
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered)";
12
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
13
13
  };
14
14
  boxColor: {
15
15
  rest: "var(--ds-background-input)";
16
- hovered: "var(--ds-surface)";
16
+ hovered: "var(--ds-background-input-hovered)";
17
17
  disabled: "var(--ds-background-disabled)";
18
18
  active: "var(--ds-background-input-pressed)";
19
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered)";
20
- checked: "var(--ds-background-brand-bold)";
19
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
20
+ checked: "var(--ds-background-selected-bold)";
21
21
  };
22
22
  tickColor: {
23
- disabledAndChecked: "var(--ds-text-disabled)";
24
- activeAndChecked: "var(--ds-text-inverse)";
25
- checked: "var(--ds-text-inverse)";
23
+ disabledAndChecked: "var(--ds-icon-disabled)";
24
+ activeAndChecked: "var(--ds-icon-inverse)";
25
+ checked: "var(--ds-icon-inverse)";
26
26
  };
27
27
  };
28
28
  dark: {
@@ -30,25 +30,25 @@ declare const theme: {
30
30
  rest: "var(--ds-border)";
31
31
  hovered: "var(--ds-border)";
32
32
  disabled: "var(--ds-background-disabled)";
33
- checked: "var(--ds-background-brand-bold)";
33
+ checked: "var(--ds-background-selected-bold)";
34
34
  active: "var(--ds-border)";
35
35
  invalid: "var(--ds-border-danger)";
36
36
  invalidAndChecked: "var(--ds-border-danger)";
37
37
  focused: "var(--ds-border-focused)";
38
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered)";
38
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
39
39
  };
40
40
  boxColor: {
41
41
  rest: "var(--ds-background-input)";
42
- hovered: "var(--ds-surface)";
42
+ hovered: "var(--ds-background-input-hovered)";
43
43
  disabled: "var(--ds-background-disabled)";
44
44
  active: "var(--ds-background-input-pressed)";
45
- hoveredAndChecked: "var(--ds-background-brand-bold-hovered)";
46
- checked: "var(--ds-background-brand-bold)";
45
+ hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
46
+ checked: "var(--ds-background-selected-bold)";
47
47
  };
48
48
  tickColor: {
49
- disabledAndChecked: "var(--ds-text-disabled)";
50
- activeAndChecked: "var(--ds-text-inverse)";
51
- checked: "var(--ds-text-inverse)";
49
+ disabledAndChecked: "var(--ds-icon-disabled)";
50
+ activeAndChecked: "var(--ds-icon-inverse)";
51
+ checked: "var(--ds-icon-inverse)";
52
52
  };
53
53
  };
54
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.16",
3
+ "version": "12.3.17",
4
4
  "description": "A checkbox is an input control that allows a user to select one or more options from a number of choices.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/report.api.md CHANGED
@@ -12,8 +12,16 @@ import { default as React_2 } from 'react';
12
12
  import { RefAttributes } from 'react';
13
13
  import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
14
14
 
15
- // @public
16
- const Checkbox: MemoExoticComponent<ForwardRefExoticComponent<
15
+ /**
16
+ * __Checkbox__
17
+ *
18
+ * A checkbox an input control that allows a user to select one or more options from a number of choices.
19
+ *
20
+ * - [Examples](https://atlassian.design/components/checkbox/examples)
21
+ * - [Code](https://atlassian.design/components/checkbox/code)
22
+ * - [Usage](https://atlassian.design/components/checkbox/usage)
23
+ */
24
+ declare const Checkbox: MemoExoticComponent<ForwardRefExoticComponent<
17
25
  Omit<
18
26
  Omit<
19
27
  InputHTMLAttributes<HTMLInputElement>,
@@ -27,8 +35,7 @@ const Checkbox: MemoExoticComponent<ForwardRefExoticComponent<
27
35
  export { Checkbox };
28
36
  export default Checkbox;
29
37
 
30
- // @public (undocumented)
31
- export type CheckboxProps = Combine<
38
+ export declare type CheckboxProps = Combine<
32
39
  Omit<
33
40
  React_2.InputHTMLAttributes<HTMLInputElement>,
34
41
  /**
@@ -47,5 +54,83 @@ export type CheckboxProps = Combine<
47
54
  OwnProps
48
55
  >;
49
56
 
50
- // (No @packageDocumentation comment for this package)
57
+ declare type Combine<First, Second> = Omit<First, keyof Second> & Second;
58
+
59
+ /**
60
+ *
61
+ *
62
+ * CHECKBOX PROPTYPES
63
+ *
64
+ *
65
+ */
66
+ declare type OwnProps = {
67
+ /**
68
+ * Sets whether the checkbox begins checked.
69
+ */
70
+ defaultChecked?: boolean;
71
+ /**
72
+ * id assigned to input
73
+ */
74
+ id?: string;
75
+ /**
76
+ * Sets whether the checkbox is checked or unchecked.
77
+ */
78
+ isChecked?: boolean;
79
+ /**
80
+ * Sets whether the checkbox is disabled.
81
+ */
82
+ isDisabled?: boolean;
83
+ /**
84
+ * Sets whether the checkbox is indeterminate. This only affects the
85
+ * style and does not modify the isChecked property.
86
+ */
87
+ isIndeterminate?: boolean;
88
+ /**
89
+ * Marks the field as invalid. Changes style of unchecked component.
90
+ */
91
+ isInvalid?: boolean;
92
+ /**
93
+ * Marks the field as required & changes the label style.
94
+ */
95
+ isRequired?: boolean;
96
+ /**
97
+ * The label to be displayed to the right of the checkbox. The label is part
98
+ * of the clickable element to select the checkbox.
99
+ */
100
+ label?: React_2.ReactChild;
101
+ /**
102
+ * The name of the submitted field in a checkbox.
103
+ */
104
+ name?: string;
105
+ /**
106
+ * Function that is called whenever the state of the checkbox changes. It will
107
+ * be called with an object containing the react synthetic event. Use currentTarget to get value, name and checked
108
+ */
109
+ onChange?: (
110
+ e: React_2.ChangeEvent<HTMLInputElement>,
111
+ analyticsEvent: UIAnalyticsEvent,
112
+ ) => void;
113
+ /**
114
+ * The value to be used in the checkbox input. This is the value that will be returned on form submission.
115
+ */
116
+ value?: number | string;
117
+ /**
118
+ * The size of the Checkbox
119
+ */
120
+ size?: Size;
121
+ /**
122
+ * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
123
+ * we have generated testid based on the one you pass to the Checkbox component:
124
+ * - `{testId}--hidden-checkbox` to check if it got changed to checked/unchecked.
125
+ */
126
+ testId?: string;
127
+ /**
128
+ * Additional information to be included in the `context` of analytics events that come from radio
129
+ */
130
+ analyticsContext?: Record<string, any>;
131
+ };
132
+
133
+ declare type Size = 'small' | 'medium' | 'large' | 'xlarge';
134
+
135
+ export {};
51
136
  ```