@atlaskit/button 16.14.0 → 16.16.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.
Files changed (25) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/containers/button-group.js +4 -2
  3. package/dist/cjs/new-button/variants/shared/use-button-base.js +1 -1
  4. package/dist/cjs/old-button/shared/button-base.js +1 -1
  5. package/dist/es2019/containers/button-group.js +4 -2
  6. package/dist/es2019/new-button/variants/shared/use-button-base.js +1 -1
  7. package/dist/es2019/old-button/shared/button-base.js +1 -1
  8. package/dist/esm/containers/button-group.js +4 -2
  9. package/dist/esm/new-button/variants/shared/use-button-base.js +1 -1
  10. package/dist/esm/old-button/shared/button-base.js +1 -1
  11. package/dist/types/containers/button-group.d.ts +9 -2
  12. package/dist/types/new-button/variants/default/link.d.ts +1 -3
  13. package/dist/types/new-button/variants/icon/link.d.ts +1 -3
  14. package/dist/types/new-button/variants/types.d.ts +24 -12
  15. package/dist/types-ts4.5/containers/button-group.d.ts +9 -2
  16. package/dist/types-ts4.5/new-button/variants/default/link.d.ts +1 -3
  17. package/dist/types-ts4.5/new-button/variants/icon/link.d.ts +1 -3
  18. package/dist/types-ts4.5/new-button/variants/types.d.ts +24 -12
  19. package/extract-react-types/legacy-button/custom-theme-button-props.tsx +7 -0
  20. package/extract-react-types/legacy-button/loading-button-props.tsx +5 -0
  21. package/extract-react-types/legacy-button/shared-props.tsx +5 -0
  22. package/extract-react-types/new-button/variants/default/button-props.tsx +5 -0
  23. package/extract-react-types/new-button/variants/default/common-props.tsx +11 -0
  24. package/extract-react-types/new-button/variants/default/link-button-props.tsx +5 -0
  25. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 16.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#42973](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42973) [`0fe0a5121a7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0fe0a5121a7) - Add missing `testId` prop to `<ButtonGroup>` to enable testing
8
+
9
+ ## 16.15.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#42950](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42950) [`9691abc55ce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9691abc55ce) - Restructure new Button (in Alpha) types for documentation purposes
14
+
3
15
  ## 16.14.0
4
16
 
5
17
  ### Minor Changes
@@ -21,9 +21,11 @@ var buttonGroupStyles = (0, _react2.css)({
21
21
  });
22
22
  function ButtonGroup(_ref) {
23
23
  var appearance = _ref.appearance,
24
- children = _ref.children;
24
+ children = _ref.children,
25
+ testId = _ref.testId;
25
26
  return (0, _react2.jsx)("div", {
26
- css: buttonGroupStyles
27
+ css: buttonGroupStyles,
28
+ "data-testid": testId
27
29
  }, _react.default.Children.map(_react.default.Children.toArray(children), function (child, idx) {
28
30
  if (!child) {
29
31
  return null;
@@ -115,7 +115,7 @@ var useButtonBase = function useButtonBase(_ref) {
115
115
  action: 'clicked',
116
116
  componentName: 'button',
117
117
  packageName: "@atlaskit/button",
118
- packageVersion: "16.14.0",
118
+ packageVersion: "16.16.0",
119
119
  analyticsData: analyticsContext,
120
120
  actionSubject: buttonType
121
121
  });
@@ -118,7 +118,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
118
118
  action: 'clicked',
119
119
  componentName: 'button',
120
120
  packageName: "@atlaskit/button",
121
- packageVersion: "16.14.0",
121
+ packageVersion: "16.16.0",
122
122
  analyticsData: analyticsContext
123
123
  });
124
124
 
@@ -11,10 +11,12 @@ const buttonGroupStyles = css({
11
11
  });
12
12
  export default function ButtonGroup({
13
13
  appearance,
14
- children
14
+ children,
15
+ testId
15
16
  }) {
16
17
  return jsx("div", {
17
- css: buttonGroupStyles
18
+ css: buttonGroupStyles,
19
+ "data-testid": testId
18
20
  }, React.Children.map(React.Children.toArray(children), (child, idx) => {
19
21
  if (!child) {
20
22
  return null;
@@ -97,7 +97,7 @@ const useButtonBase = ({
97
97
  action: 'clicked',
98
98
  componentName: 'button',
99
99
  packageName: "@atlaskit/button",
100
- packageVersion: "16.14.0",
100
+ packageVersion: "16.16.0",
101
101
  analyticsData: analyticsContext,
102
102
  actionSubject: buttonType
103
103
  });
@@ -103,7 +103,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
103
103
  action: 'clicked',
104
104
  componentName: 'button',
105
105
  packageName: "@atlaskit/button",
106
- packageVersion: "16.14.0",
106
+ packageVersion: "16.16.0",
107
107
  analyticsData: analyticsContext
108
108
  });
109
109
 
@@ -11,9 +11,11 @@ var buttonGroupStyles = css({
11
11
  });
12
12
  export default function ButtonGroup(_ref) {
13
13
  var appearance = _ref.appearance,
14
- children = _ref.children;
14
+ children = _ref.children,
15
+ testId = _ref.testId;
15
16
  return jsx("div", {
16
- css: buttonGroupStyles
17
+ css: buttonGroupStyles,
18
+ "data-testid": testId
17
19
  }, React.Children.map(React.Children.toArray(children), function (child, idx) {
18
20
  if (!child) {
19
21
  return null;
@@ -107,7 +107,7 @@ var useButtonBase = function useButtonBase(_ref) {
107
107
  action: 'clicked',
108
108
  componentName: 'button',
109
109
  packageName: "@atlaskit/button",
110
- packageVersion: "16.14.0",
110
+ packageVersion: "16.16.0",
111
111
  analyticsData: analyticsContext,
112
112
  actionSubject: buttonType
113
113
  });
@@ -109,7 +109,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
109
109
  action: 'clicked',
110
110
  componentName: 'button',
111
111
  packageName: "@atlaskit/button",
112
- packageVersion: "16.14.0",
112
+ packageVersion: "16.16.0",
113
113
  analyticsData: analyticsContext
114
114
  });
115
115
 
@@ -4,9 +4,16 @@ import { jsx } from '@emotion/react';
4
4
  import { Appearance } from '../old-button/types';
5
5
  export type ButtonGroupProps = {
6
6
  /**
7
- * The appearance to apply to all buttons.
7
+ * The appearance to apply to all buttons
8
8
  */
9
9
  appearance?: Appearance;
10
+ /**
11
+ * The buttons to render inside the Button Group
12
+ */
10
13
  children?: React.ReactNode;
14
+ /**
15
+ * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
16
+ */
17
+ testId?: string;
11
18
  };
12
- export default function ButtonGroup({ appearance, children, }: ButtonGroupProps): jsx.JSX.Element;
19
+ export default function ButtonGroup({ appearance, children, testId, }: ButtonGroupProps): jsx.JSX.Element;
@@ -14,9 +14,7 @@ declare const LinkButtonBase: <RouterLinkConfig extends Record<string, any> = ne
14
14
  * - [Code](https://atlassian.design/components/button/code)
15
15
  * - [Usage](https://atlassian.design/components/button/usage)
16
16
  */
17
- declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonDefaultButtonProps & {
18
- href: string | RouterLinkConfig;
19
- } & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
17
+ declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonDefaultButtonProps & import("../types").AdditionalLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
20
18
  ref?: React.Ref<HTMLAnchorElement> | undefined;
21
19
  }) => ReturnType<typeof LinkButtonBase>;
22
20
  export default LinkButton;
@@ -14,9 +14,7 @@ declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any>
14
14
  * - [Code](https://atlassian.design/components/button/code)
15
15
  * - [Usage](https://atlassian.design/components/button/usage)
16
16
  */
17
- declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonIconButtonProps & {
18
- href: string | RouterLinkConfig;
19
- } & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
17
+ declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonIconButtonProps & import("../types").AdditionalLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
20
18
  ref?: React.Ref<HTMLAnchorElement> | undefined;
21
19
  }) => ReturnType<typeof LinkIconButtonBase>;
22
20
  export default LinkIconButton;
@@ -5,7 +5,7 @@ export type Spacing = 'compact' | 'default' | 'none';
5
5
  type Combine<First, Second> = Omit<First, keyof Second> & Second;
6
6
  export type CommonButtonProps<TagName extends HTMLElement> = {
7
7
  /**
8
- * The base styling to apply to the button
8
+ * The button style variation
9
9
  */
10
10
  appearance?: Appearance;
11
11
  /**
@@ -17,11 +17,11 @@ export type CommonButtonProps<TagName extends HTMLElement> = {
17
17
  */
18
18
  overlay?: React.ReactNode;
19
19
  /**
20
- * Set if the button is disabled
20
+ * Disable the button to prevent user interaction
21
21
  */
22
22
  isDisabled?: boolean;
23
23
  /**
24
- * Change the style to indicate the button is selected
24
+ * Indicates that the button is selected
25
25
  */
26
26
  isSelected?: boolean;
27
27
  /**
@@ -37,20 +37,20 @@ export type CommonButtonProps<TagName extends HTMLElement> = {
37
37
  */
38
38
  onFocus?: React.FocusEventHandler<TagName>;
39
39
  /**
40
- * Set the amount of padding in the button
40
+ * Controls the amount of padding in the button
41
41
  */
42
42
  spacing?: Spacing;
43
43
  /**
44
- * Text content to be rendered in the button
44
+ * Text content to be rendered in the button. Required so that screen readers always have an accessible label provided for the button.
45
45
  */
46
46
  children: React.ReactNode;
47
47
  /**
48
- * 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
48
+ * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
49
49
  */
50
50
  testId?: string;
51
51
  /**
52
- * An optional name used to identify this component to press listeners. E.g. interaction tracing
53
- * @see https://hello.atlassian.net/wiki/spaces/UFO/pages/2010358949/UFO+Integration+into+Design+System+components
52
+ * An optional name used to identify this component to press listeners. For example, interaction tracing. For more information,
53
+ * see [UFO integration into Design System components](https://go.atlassian.com/react-ufo-dst-integration)
54
54
  */
55
55
  interactionName?: string;
56
56
  /**
@@ -58,10 +58,15 @@ export type CommonButtonProps<TagName extends HTMLElement> = {
58
58
  */
59
59
  analyticsContext?: Record<string, any>;
60
60
  };
61
+ export type SupportedElements = HTMLButtonElement | HTMLAnchorElement;
61
62
  type SupportedElementAttributes = React.ButtonHTMLAttributes<HTMLButtonElement> | React.AnchorHTMLAttributes<HTMLAnchorElement>;
62
63
  export type AdditionalHTMLElementPropsExtender<Props extends SupportedElementAttributes> = Combine<Omit<Props, 'className' | 'style' | 'role' | 'disabled'>, {
63
64
  'data-testid'?: never;
64
65
  }>;
66
+ /**
67
+ * Common additional props for button `<button>` variants
68
+ */
69
+ export type AdditionalButtonVariantProps = {};
65
70
  /**
66
71
  * Combines common button props with additional HTML attributes.
67
72
  */
@@ -69,11 +74,18 @@ export type CombinedButtonProps<TagName extends HTMLElement, HTMLAttributes exte
69
74
  /**
70
75
  * Common props for Button `<button>` variants
71
76
  */
72
- export type CommonButtonVariantProps = CombinedButtonProps<HTMLButtonElement, AdditionalHTMLElementPropsExtender<React.ButtonHTMLAttributes<HTMLButtonElement>>>;
77
+ export type CommonButtonVariantProps = AdditionalButtonVariantProps & CombinedButtonProps<HTMLButtonElement, AdditionalHTMLElementPropsExtender<React.ButtonHTMLAttributes<HTMLButtonElement>>>;
73
78
  /**
74
- * Common props for Link `<a>` Button variants
79
+ * Common additional props for Link `<a>` Button variants
75
80
  */
76
- export type CommonLinkVariantProps<RouterLinkConfig extends Record<string, any> = never> = {
81
+ export type AdditionalLinkVariantProps<RouterLinkConfig extends Record<string, any> = never> = {
82
+ /**
83
+ * Provides a URL for link buttons. When using an AppProvider with a configured router link component, a `RouterLinkConfig` object type can be provided for advanced usage. See the [Link Button routing example](https://atlassian.design/components/button/button-new/examples#routing) for more details.
84
+ */
77
85
  href: string | RouterLinkConfig;
78
- } & CombinedButtonProps<HTMLAnchorElement, AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>>;
86
+ };
87
+ /**
88
+ * Common props for Link `<a>` Button variants
89
+ */
90
+ export type CommonLinkVariantProps<RouterLinkConfig extends Record<string, any> = never> = AdditionalLinkVariantProps<RouterLinkConfig> & CombinedButtonProps<HTMLAnchorElement, AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>>;
79
91
  export {};
@@ -4,9 +4,16 @@ import { jsx } from '@emotion/react';
4
4
  import { Appearance } from '../old-button/types';
5
5
  export type ButtonGroupProps = {
6
6
  /**
7
- * The appearance to apply to all buttons.
7
+ * The appearance to apply to all buttons
8
8
  */
9
9
  appearance?: Appearance;
10
+ /**
11
+ * The buttons to render inside the Button Group
12
+ */
10
13
  children?: React.ReactNode;
14
+ /**
15
+ * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
16
+ */
17
+ testId?: string;
11
18
  };
12
- export default function ButtonGroup({ appearance, children, }: ButtonGroupProps): jsx.JSX.Element;
19
+ export default function ButtonGroup({ appearance, children, testId, }: ButtonGroupProps): jsx.JSX.Element;
@@ -14,9 +14,7 @@ declare const LinkButtonBase: <RouterLinkConfig extends Record<string, any> = ne
14
14
  * - [Code](https://atlassian.design/components/button/code)
15
15
  * - [Usage](https://atlassian.design/components/button/usage)
16
16
  */
17
- declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonDefaultButtonProps & {
18
- href: string | RouterLinkConfig;
19
- } & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
17
+ declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonDefaultButtonProps & import("../types").AdditionalLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
20
18
  ref?: React.Ref<HTMLAnchorElement> | undefined;
21
19
  }) => ReturnType<typeof LinkButtonBase>;
22
20
  export default LinkButton;
@@ -14,9 +14,7 @@ declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any>
14
14
  * - [Code](https://atlassian.design/components/button/code)
15
15
  * - [Usage](https://atlassian.design/components/button/usage)
16
16
  */
17
- declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonIconButtonProps & {
18
- href: string | RouterLinkConfig;
19
- } & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
17
+ declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonIconButtonProps & import("../types").AdditionalLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
20
18
  ref?: React.Ref<HTMLAnchorElement> | undefined;
21
19
  }) => ReturnType<typeof LinkIconButtonBase>;
22
20
  export default LinkIconButton;
@@ -5,7 +5,7 @@ export type Spacing = 'compact' | 'default' | 'none';
5
5
  type Combine<First, Second> = Omit<First, keyof Second> & Second;
6
6
  export type CommonButtonProps<TagName extends HTMLElement> = {
7
7
  /**
8
- * The base styling to apply to the button
8
+ * The button style variation
9
9
  */
10
10
  appearance?: Appearance;
11
11
  /**
@@ -17,11 +17,11 @@ export type CommonButtonProps<TagName extends HTMLElement> = {
17
17
  */
18
18
  overlay?: React.ReactNode;
19
19
  /**
20
- * Set if the button is disabled
20
+ * Disable the button to prevent user interaction
21
21
  */
22
22
  isDisabled?: boolean;
23
23
  /**
24
- * Change the style to indicate the button is selected
24
+ * Indicates that the button is selected
25
25
  */
26
26
  isSelected?: boolean;
27
27
  /**
@@ -37,20 +37,20 @@ export type CommonButtonProps<TagName extends HTMLElement> = {
37
37
  */
38
38
  onFocus?: React.FocusEventHandler<TagName>;
39
39
  /**
40
- * Set the amount of padding in the button
40
+ * Controls the amount of padding in the button
41
41
  */
42
42
  spacing?: Spacing;
43
43
  /**
44
- * Text content to be rendered in the button
44
+ * Text content to be rendered in the button. Required so that screen readers always have an accessible label provided for the button.
45
45
  */
46
46
  children: React.ReactNode;
47
47
  /**
48
- * 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
48
+ * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
49
49
  */
50
50
  testId?: string;
51
51
  /**
52
- * An optional name used to identify this component to press listeners. E.g. interaction tracing
53
- * @see https://hello.atlassian.net/wiki/spaces/UFO/pages/2010358949/UFO+Integration+into+Design+System+components
52
+ * An optional name used to identify this component to press listeners. For example, interaction tracing. For more information,
53
+ * see [UFO integration into Design System components](https://go.atlassian.com/react-ufo-dst-integration)
54
54
  */
55
55
  interactionName?: string;
56
56
  /**
@@ -58,10 +58,15 @@ export type CommonButtonProps<TagName extends HTMLElement> = {
58
58
  */
59
59
  analyticsContext?: Record<string, any>;
60
60
  };
61
+ export type SupportedElements = HTMLButtonElement | HTMLAnchorElement;
61
62
  type SupportedElementAttributes = React.ButtonHTMLAttributes<HTMLButtonElement> | React.AnchorHTMLAttributes<HTMLAnchorElement>;
62
63
  export type AdditionalHTMLElementPropsExtender<Props extends SupportedElementAttributes> = Combine<Omit<Props, 'className' | 'style' | 'role' | 'disabled'>, {
63
64
  'data-testid'?: never;
64
65
  }>;
66
+ /**
67
+ * Common additional props for button `<button>` variants
68
+ */
69
+ export type AdditionalButtonVariantProps = {};
65
70
  /**
66
71
  * Combines common button props with additional HTML attributes.
67
72
  */
@@ -69,11 +74,18 @@ export type CombinedButtonProps<TagName extends HTMLElement, HTMLAttributes exte
69
74
  /**
70
75
  * Common props for Button `<button>` variants
71
76
  */
72
- export type CommonButtonVariantProps = CombinedButtonProps<HTMLButtonElement, AdditionalHTMLElementPropsExtender<React.ButtonHTMLAttributes<HTMLButtonElement>>>;
77
+ export type CommonButtonVariantProps = AdditionalButtonVariantProps & CombinedButtonProps<HTMLButtonElement, AdditionalHTMLElementPropsExtender<React.ButtonHTMLAttributes<HTMLButtonElement>>>;
73
78
  /**
74
- * Common props for Link `<a>` Button variants
79
+ * Common additional props for Link `<a>` Button variants
75
80
  */
76
- export type CommonLinkVariantProps<RouterLinkConfig extends Record<string, any> = never> = {
81
+ export type AdditionalLinkVariantProps<RouterLinkConfig extends Record<string, any> = never> = {
82
+ /**
83
+ * Provides a URL for link buttons. When using an AppProvider with a configured router link component, a `RouterLinkConfig` object type can be provided for advanced usage. See the [Link Button routing example](https://atlassian.design/components/button/button-new/examples#routing) for more details.
84
+ */
77
85
  href: string | RouterLinkConfig;
78
- } & CombinedButtonProps<HTMLAnchorElement, AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>>;
86
+ };
87
+ /**
88
+ * Common props for Link `<a>` Button variants
89
+ */
90
+ export type CommonLinkVariantProps<RouterLinkConfig extends Record<string, any> = never> = AdditionalLinkVariantProps<RouterLinkConfig> & CombinedButtonProps<HTMLAnchorElement, AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>>;
79
91
  export {};
@@ -0,0 +1,7 @@
1
+ import { CustomThemeButtonOwnProps } from '../../src/old-button/custom-theme-button/custom-theme-button-types';
2
+
3
+ export default function CustomThemeButtonProps(
4
+ props: CustomThemeButtonOwnProps,
5
+ ) {
6
+ return null;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { LoadingButtonOwnProps } from '../../src/old-button/loading-button';
2
+
3
+ export default function LoadingButtonProps(props: LoadingButtonOwnProps) {
4
+ return null;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { BaseOwnProps } from '../../src/old-button/types';
2
+
3
+ export default function SharedProps(props: BaseOwnProps) {
4
+ return null;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { AdditionalButtonVariantProps } from '../../../../src/new-button/variants/types';
2
+
3
+ export default function ButtonProps(props: AdditionalButtonVariantProps) {
4
+ return null;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { type CommonDefaultButtonProps } from '../../../../src/new-button/variants/default/types';
2
+ import {
3
+ type CommonButtonProps,
4
+ type SupportedElements,
5
+ } from '../../../../src/new-button/variants/types';
6
+
7
+ export default function CommonProps(
8
+ props: CommonButtonProps<SupportedElements> & CommonDefaultButtonProps,
9
+ ) {
10
+ return null;
11
+ }
@@ -0,0 +1,5 @@
1
+ import { AdditionalLinkVariantProps } from '../../../../src/new-button/variants/types';
2
+
3
+ export default function LinkButtonProps(props: AdditionalLinkVariantProps) {
4
+ return null;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.14.0",
3
+ "version": "16.16.0",
4
4
  "description": "A button triggers an event or action. They let users know what will happen next.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,7 +33,7 @@
33
33
  "title": "Button (new)",
34
34
  "id": "button-new",
35
35
  "status": {
36
- "type": "draft"
36
+ "type": "alpha"
37
37
  },
38
38
  "sortKey": 1
39
39
  },