@atlaskit/button 16.17.11 → 16.18.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 (45) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/new-button/containers/split-button/split-button.js +0 -2
  3. package/dist/cjs/new-button/variants/default/button.js +0 -2
  4. package/dist/cjs/new-button/variants/default/link.js +0 -2
  5. package/dist/cjs/new-button/variants/icon/button.js +0 -2
  6. package/dist/cjs/new-button/variants/icon/link.js +0 -2
  7. package/dist/cjs/new-button/variants/shared/use-button-base.js +1 -1
  8. package/dist/cjs/new.js +41 -0
  9. package/dist/cjs/old-button/shared/button-base.js +1 -1
  10. package/dist/es2019/new-button/containers/split-button/split-button.js +0 -2
  11. package/dist/es2019/new-button/variants/default/button.js +0 -2
  12. package/dist/es2019/new-button/variants/default/link.js +0 -2
  13. package/dist/es2019/new-button/variants/icon/button.js +0 -2
  14. package/dist/es2019/new-button/variants/icon/link.js +0 -2
  15. package/dist/es2019/new-button/variants/shared/use-button-base.js +1 -1
  16. package/dist/es2019/new.js +6 -0
  17. package/dist/es2019/old-button/shared/button-base.js +1 -1
  18. package/dist/esm/new-button/containers/split-button/split-button.js +0 -2
  19. package/dist/esm/new-button/variants/default/button.js +0 -2
  20. package/dist/esm/new-button/variants/default/link.js +0 -2
  21. package/dist/esm/new-button/variants/icon/button.js +0 -2
  22. package/dist/esm/new-button/variants/icon/link.js +0 -2
  23. package/dist/esm/new-button/variants/shared/use-button-base.js +1 -1
  24. package/dist/esm/new.js +6 -0
  25. package/dist/esm/old-button/shared/button-base.js +1 -1
  26. package/dist/types/new-button/containers/split-button/split-button.d.ts +0 -2
  27. package/dist/types/new-button/variants/default/button.d.ts +0 -2
  28. package/dist/types/new-button/variants/default/link.d.ts +0 -2
  29. package/dist/types/new-button/variants/default/types.d.ts +5 -8
  30. package/dist/types/new-button/variants/icon/button.d.ts +0 -2
  31. package/dist/types/new-button/variants/icon/link.d.ts +0 -2
  32. package/dist/types/new-button/variants/icon/types.d.ts +2 -2
  33. package/dist/types/new-button/variants/types.d.ts +1 -0
  34. package/dist/types/new.d.ts +6 -0
  35. package/dist/types-ts4.5/new-button/containers/split-button/split-button.d.ts +0 -2
  36. package/dist/types-ts4.5/new-button/variants/default/button.d.ts +0 -2
  37. package/dist/types-ts4.5/new-button/variants/default/link.d.ts +0 -2
  38. package/dist/types-ts4.5/new-button/variants/default/types.d.ts +5 -8
  39. package/dist/types-ts4.5/new-button/variants/icon/button.d.ts +0 -2
  40. package/dist/types-ts4.5/new-button/variants/icon/link.d.ts +0 -2
  41. package/dist/types-ts4.5/new-button/variants/icon/types.d.ts +2 -2
  42. package/dist/types-ts4.5/new-button/variants/types.d.ts +1 -0
  43. package/dist/types-ts4.5/new.d.ts +6 -0
  44. package/new/package.json +15 -0
  45. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 16.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#59441](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59441) [`23a1d31d3c09`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/23a1d31d3c09) - Add entrypoint for new button work heading to open beta at `@atlaskit/button/new`
8
+
9
+ ## 16.17.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [#59085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59085) [`67c05dbef826`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/67c05dbef826) - Exclude medium from UNSAFE_iconBefore_size and UNSAFE_iconAfter_size types.
14
+
3
15
  ## 16.17.11
4
16
 
5
17
  ### Patch Changes
@@ -95,8 +95,6 @@ var SplitButtonContainer = exports.SplitButtonContainer = function SplitButtonCo
95
95
  /**
96
96
  * __Split Button__
97
97
  *
98
- * @private __UNSAFE__ SplitButton is not yet safe for production use.
99
- *
100
98
  * A split button lets people perform an action or choose from a small group of similar actions.
101
99
  *
102
100
  * - [Examples](https://atlassian.design/components/button/split-button/examples)
@@ -14,8 +14,6 @@ var _excluded = ["analyticsContext", "autoFocus", "appearance", "spacing", "isDi
14
14
  /**
15
15
  * __Button__
16
16
  *
17
- * @private __UNSAFE__ Button is not yet safe for production use.
18
- *
19
17
  * A button triggers an event or action.
20
18
  *
21
19
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -104,8 +104,6 @@ var WithRef = /*#__PURE__*/(0, _react.forwardRef)(LinkButtonBase);
104
104
  /**
105
105
  * __Link Button__
106
106
  *
107
- * @private __UNSAFE__ LinkButton is not yet safe for production use.
108
- *
109
107
  * Renders a link in the style of a button.
110
108
  *
111
109
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -14,8 +14,6 @@ var _excluded = ["analyticsContext", "autoFocus", "appearance", "spacing", "isDi
14
14
  /**
15
15
  * __Icon Button__
16
16
  *
17
- * @private __UNSAFE__ IconButton is not yet safe for production use.
18
- *
19
17
  * TODO: Description
20
18
  *
21
19
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -100,8 +100,6 @@ var WithRef = /*#__PURE__*/(0, _react.forwardRef)(LinkIconButtonBase);
100
100
  /**
101
101
  * __Link Icon Button__
102
102
  *
103
- * @private __UNSAFE__ LinkIconButton is not yet safe for production use.
104
- *
105
103
  * Renders a link in the style of an icon button.
106
104
  *
107
105
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -117,7 +117,7 @@ var useButtonBase = function useButtonBase(_ref) {
117
117
  action: 'clicked',
118
118
  componentName: 'button',
119
119
  packageName: "@atlaskit/button",
120
- packageVersion: "16.17.11",
120
+ packageVersion: "16.18.0",
121
121
  analyticsData: analyticsContext,
122
122
  actionSubject: buttonType
123
123
  });
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "IconButton", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _button2.default;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, "LinkButton", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _link.default;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "LinkIconButton", {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _link2.default;
23
+ }
24
+ });
25
+ Object.defineProperty(exports, "SplitButton", {
26
+ enumerable: true,
27
+ get: function get() {
28
+ return _splitButton.SplitButton;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, "default", {
32
+ enumerable: true,
33
+ get: function get() {
34
+ return _button.default;
35
+ }
36
+ });
37
+ var _button = _interopRequireDefault(require("./new-button/variants/default/button"));
38
+ var _link = _interopRequireDefault(require("./new-button/variants/default/link"));
39
+ var _button2 = _interopRequireDefault(require("./new-button/variants/icon/button"));
40
+ var _link2 = _interopRequireDefault(require("./new-button/variants/icon/link"));
41
+ var _splitButton = require("./new-button/containers/split-button");
@@ -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.17.11",
121
+ packageVersion: "16.18.0",
122
122
  analyticsData: analyticsContext
123
123
  });
124
124
 
@@ -90,8 +90,6 @@ export const SplitButtonContainer = ({
90
90
  /**
91
91
  * __Split Button__
92
92
  *
93
- * @private __UNSAFE__ SplitButton is not yet safe for production use.
94
- *
95
93
  * A split button lets people perform an action or choose from a small group of similar actions.
96
94
  *
97
95
  * - [Examples](https://atlassian.design/components/button/split-button/examples)
@@ -5,8 +5,6 @@ import useDefaultButton from './use-default-button';
5
5
  /**
6
6
  * __Button__
7
7
  *
8
- * @private __UNSAFE__ Button is not yet safe for production use.
9
- *
10
8
  * A button triggers an event or action.
11
9
  *
12
10
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -93,8 +93,6 @@ const WithRef = /*#__PURE__*/forwardRef(LinkButtonBase);
93
93
  /**
94
94
  * __Link Button__
95
95
  *
96
- * @private __UNSAFE__ LinkButton is not yet safe for production use.
97
- *
98
96
  * Renders a link in the style of a button.
99
97
  *
100
98
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -5,8 +5,6 @@ import useIconButton from './use-icon-button';
5
5
  /**
6
6
  * __Icon Button__
7
7
  *
8
- * @private __UNSAFE__ IconButton is not yet safe for production use.
9
- *
10
8
  * TODO: Description
11
9
  *
12
10
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -89,8 +89,6 @@ const WithRef = /*#__PURE__*/forwardRef(LinkIconButtonBase);
89
89
  /**
90
90
  * __Link Icon Button__
91
91
  *
92
- * @private __UNSAFE__ LinkIconButton is not yet safe for production use.
93
- *
94
92
  * Renders a link in the style of an icon button.
95
93
  *
96
94
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -98,7 +98,7 @@ const useButtonBase = ({
98
98
  action: 'clicked',
99
99
  componentName: 'button',
100
100
  packageName: "@atlaskit/button",
101
- packageVersion: "16.17.11",
101
+ packageVersion: "16.18.0",
102
102
  analyticsData: analyticsContext,
103
103
  actionSubject: buttonType
104
104
  });
@@ -0,0 +1,6 @@
1
+ // Relative exports so that constellation examples end up at @atlaskit/new
2
+ export { default } from './new-button/variants/default/button';
3
+ export { default as LinkButton } from './new-button/variants/default/link';
4
+ export { default as IconButton } from './new-button/variants/icon/button';
5
+ export { default as LinkIconButton } from './new-button/variants/icon/link';
6
+ export { SplitButton } from './new-button/containers/split-button';
@@ -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.17.11",
106
+ packageVersion: "16.18.0",
107
107
  analyticsData: analyticsContext
108
108
  });
109
109
 
@@ -89,8 +89,6 @@ export var SplitButtonContainer = function SplitButtonContainer(_ref2) {
89
89
  /**
90
90
  * __Split Button__
91
91
  *
92
- * @private __UNSAFE__ SplitButton is not yet safe for production use.
93
- *
94
92
  * A split button lets people perform an action or choose from a small group of similar actions.
95
93
  *
96
94
  * - [Examples](https://atlassian.design/components/button/split-button/examples)
@@ -7,8 +7,6 @@ import useDefaultButton from './use-default-button';
7
7
  /**
8
8
  * __Button__
9
9
  *
10
- * @private __UNSAFE__ Button is not yet safe for production use.
11
- *
12
10
  * A button triggers an event or action.
13
11
  *
14
12
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -94,8 +94,6 @@ var WithRef = /*#__PURE__*/forwardRef(LinkButtonBase);
94
94
  /**
95
95
  * __Link Button__
96
96
  *
97
- * @private __UNSAFE__ LinkButton is not yet safe for production use.
98
- *
99
97
  * Renders a link in the style of a button.
100
98
  *
101
99
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -7,8 +7,6 @@ import useIconButton from './use-icon-button';
7
7
  /**
8
8
  * __Icon Button__
9
9
  *
10
- * @private __UNSAFE__ IconButton is not yet safe for production use.
11
- *
12
10
  * TODO: Description
13
11
  *
14
12
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -90,8 +90,6 @@ var WithRef = /*#__PURE__*/forwardRef(LinkIconButtonBase);
90
90
  /**
91
91
  * __Link Icon Button__
92
92
  *
93
- * @private __UNSAFE__ LinkIconButton is not yet safe for production use.
94
- *
95
93
  * Renders a link in the style of an icon button.
96
94
  *
97
95
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -109,7 +109,7 @@ var useButtonBase = function useButtonBase(_ref) {
109
109
  action: 'clicked',
110
110
  componentName: 'button',
111
111
  packageName: "@atlaskit/button",
112
- packageVersion: "16.17.11",
112
+ packageVersion: "16.18.0",
113
113
  analyticsData: analyticsContext,
114
114
  actionSubject: buttonType
115
115
  });
@@ -0,0 +1,6 @@
1
+ // Relative exports so that constellation examples end up at @atlaskit/new
2
+ export { default } from './new-button/variants/default/button';
3
+ export { default as LinkButton } from './new-button/variants/default/link';
4
+ export { default as IconButton } from './new-button/variants/icon/button';
5
+ export { default as LinkIconButton } from './new-button/variants/icon/link';
6
+ export { SplitButton } from './new-button/containers/split-button';
@@ -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.17.11",
112
+ packageVersion: "16.18.0",
113
113
  analyticsData: analyticsContext
114
114
  });
115
115
 
@@ -20,8 +20,6 @@ export declare const SplitButtonContainer: ({ children }: {
20
20
  /**
21
21
  * __Split Button__
22
22
  *
23
- * @private __UNSAFE__ SplitButton is not yet safe for production use.
24
- *
25
23
  * A split button lets people perform an action or choose from a small group of similar actions.
26
24
  *
27
25
  * - [Examples](https://atlassian.design/components/button/split-button/examples)
@@ -5,8 +5,6 @@ export type ButtonProps = CommonDefaultButtonProps & CommonButtonVariantProps;
5
5
  /**
6
6
  * __Button__
7
7
  *
8
- * @private __UNSAFE__ Button is not yet safe for production use.
9
- *
10
8
  * A button triggers an event or action.
11
9
  *
12
10
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -6,8 +6,6 @@ declare const LinkButtonBase: <RouterLinkConfig extends Record<string, any> = ne
6
6
  /**
7
7
  * __Link Button__
8
8
  *
9
- * @private __UNSAFE__ LinkButton is not yet safe for production use.
10
- *
11
9
  * Renders a link in the style of a button.
12
10
  *
13
11
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -1,26 +1,23 @@
1
- import { type Size } from '@atlaskit/icon/types';
2
- import { type IconProp } from '../types';
1
+ import { type IconProp, type IconSize } from '../types';
3
2
  export type CommonDefaultButtonProps = {
4
3
  /**
5
4
  * Places an icon within the button, after the button's text
6
5
  */
7
6
  iconAfter?: IconProp;
8
7
  /**
9
- * Set the size of the icon after.
10
- *
8
+ * Set the size of the icon after. `medium` is default, so it does not need to be specified.
11
9
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
12
10
  */
13
- UNSAFE_iconAfter_size?: Size;
11
+ UNSAFE_iconAfter_size?: IconSize;
14
12
  /**
15
13
  * Places an icon within the button, before the button's text
16
14
  */
17
15
  iconBefore?: IconProp;
18
16
  /**
19
- * Set the size of the icon before.
20
- *
17
+ * Set the size of the icon before. `medium` is default, so it does not need to be specified.
21
18
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
19
  */
23
- UNSAFE_iconBefore_size?: Size;
20
+ UNSAFE_iconBefore_size?: IconSize;
24
21
  /**
25
22
  * Option to fit button width to its parent width
26
23
  */
@@ -5,8 +5,6 @@ export type IconButtonProps = CommonIconButtonProps & Omit<CommonButtonVariantPr
5
5
  /**
6
6
  * __Icon Button__
7
7
  *
8
- * @private __UNSAFE__ IconButton is not yet safe for production use.
9
- *
10
8
  * TODO: Description
11
9
  *
12
10
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -6,8 +6,6 @@ declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any>
6
6
  /**
7
7
  * __Link Icon Button__
8
8
  *
9
- * @private __UNSAFE__ LinkIconButton is not yet safe for production use.
10
- *
11
9
  * Renders a link in the style of an icon button.
12
10
  *
13
11
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -1,4 +1,4 @@
1
- import { type IconButtonAppearance, type IconProp } from '../types';
1
+ import { type IconButtonAppearance, type IconProp, type IconSize } from '../types';
2
2
  export type CommonIconButtonProps = {
3
3
  /**
4
4
  * The button style variation
@@ -20,5 +20,5 @@ export type CommonIconButtonProps = {
20
20
  * Set the size of the icon. `medium` is default, so it does not need to be specified.
21
21
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
22
  */
23
- UNSAFE_size?: 'small' | 'large' | 'xlarge';
23
+ UNSAFE_size?: IconSize;
24
24
  };
@@ -7,6 +7,7 @@ export type IconButtonAppearance = 'default' | 'primary' | 'subtle';
7
7
  export type Appearance = ButtonAppearance | LinkButtonAppearance | IconButtonAppearance;
8
8
  export type Spacing = 'compact' | 'default' | 'none';
9
9
  export type IconProp = React.ComponentType<IconProps>;
10
+ export type IconSize = 'small' | 'large' | 'xlarge';
10
11
  type Combine<First, Second> = Omit<First, keyof Second> & Second;
11
12
  export type CommonButtonProps<TagName extends HTMLElement> = {
12
13
  /**
@@ -0,0 +1,6 @@
1
+ export { default, type ButtonProps, } from './new-button/variants/default/button';
2
+ export { default as LinkButton, type LinkButtonProps, } from './new-button/variants/default/link';
3
+ export { default as IconButton, type IconButtonProps, } from './new-button/variants/icon/button';
4
+ export { default as LinkIconButton, type LinkIconButtonProps, } from './new-button/variants/icon/link';
5
+ export { SplitButton } from './new-button/containers/split-button';
6
+ export type { Appearance, Spacing } from './new-button/variants/types';
@@ -20,8 +20,6 @@ export declare const SplitButtonContainer: ({ children }: {
20
20
  /**
21
21
  * __Split Button__
22
22
  *
23
- * @private __UNSAFE__ SplitButton is not yet safe for production use.
24
- *
25
23
  * A split button lets people perform an action or choose from a small group of similar actions.
26
24
  *
27
25
  * - [Examples](https://atlassian.design/components/button/split-button/examples)
@@ -5,8 +5,6 @@ export type ButtonProps = CommonDefaultButtonProps & CommonButtonVariantProps;
5
5
  /**
6
6
  * __Button__
7
7
  *
8
- * @private __UNSAFE__ Button is not yet safe for production use.
9
- *
10
8
  * A button triggers an event or action.
11
9
  *
12
10
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -6,8 +6,6 @@ declare const LinkButtonBase: <RouterLinkConfig extends Record<string, any> = ne
6
6
  /**
7
7
  * __Link Button__
8
8
  *
9
- * @private __UNSAFE__ LinkButton is not yet safe for production use.
10
- *
11
9
  * Renders a link in the style of a button.
12
10
  *
13
11
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -1,26 +1,23 @@
1
- import { type Size } from '@atlaskit/icon/types';
2
- import { type IconProp } from '../types';
1
+ import { type IconProp, type IconSize } from '../types';
3
2
  export type CommonDefaultButtonProps = {
4
3
  /**
5
4
  * Places an icon within the button, after the button's text
6
5
  */
7
6
  iconAfter?: IconProp;
8
7
  /**
9
- * Set the size of the icon after.
10
- *
8
+ * Set the size of the icon after. `medium` is default, so it does not need to be specified.
11
9
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
12
10
  */
13
- UNSAFE_iconAfter_size?: Size;
11
+ UNSAFE_iconAfter_size?: IconSize;
14
12
  /**
15
13
  * Places an icon within the button, before the button's text
16
14
  */
17
15
  iconBefore?: IconProp;
18
16
  /**
19
- * Set the size of the icon before.
20
- *
17
+ * Set the size of the icon before. `medium` is default, so it does not need to be specified.
21
18
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
19
  */
23
- UNSAFE_iconBefore_size?: Size;
20
+ UNSAFE_iconBefore_size?: IconSize;
24
21
  /**
25
22
  * Option to fit button width to its parent width
26
23
  */
@@ -5,8 +5,6 @@ export type IconButtonProps = CommonIconButtonProps & Omit<CommonButtonVariantPr
5
5
  /**
6
6
  * __Icon Button__
7
7
  *
8
- * @private __UNSAFE__ IconButton is not yet safe for production use.
9
- *
10
8
  * TODO: Description
11
9
  *
12
10
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -6,8 +6,6 @@ declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any>
6
6
  /**
7
7
  * __Link Icon Button__
8
8
  *
9
- * @private __UNSAFE__ LinkIconButton is not yet safe for production use.
10
- *
11
9
  * Renders a link in the style of an icon button.
12
10
  *
13
11
  * - [Examples](https://atlassian.design/components/button/examples)
@@ -1,4 +1,4 @@
1
- import { type IconButtonAppearance, type IconProp } from '../types';
1
+ import { type IconButtonAppearance, type IconProp, type IconSize } from '../types';
2
2
  export type CommonIconButtonProps = {
3
3
  /**
4
4
  * The button style variation
@@ -20,5 +20,5 @@ export type CommonIconButtonProps = {
20
20
  * Set the size of the icon. `medium` is default, so it does not need to be specified.
21
21
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
22
  */
23
- UNSAFE_size?: 'small' | 'large' | 'xlarge';
23
+ UNSAFE_size?: IconSize;
24
24
  };
@@ -7,6 +7,7 @@ export type IconButtonAppearance = 'default' | 'primary' | 'subtle';
7
7
  export type Appearance = ButtonAppearance | LinkButtonAppearance | IconButtonAppearance;
8
8
  export type Spacing = 'compact' | 'default' | 'none';
9
9
  export type IconProp = React.ComponentType<IconProps>;
10
+ export type IconSize = 'small' | 'large' | 'xlarge';
10
11
  type Combine<First, Second> = Omit<First, keyof Second> & Second;
11
12
  export type CommonButtonProps<TagName extends HTMLElement> = {
12
13
  /**
@@ -0,0 +1,6 @@
1
+ export { default, type ButtonProps, } from './new-button/variants/default/button';
2
+ export { default as LinkButton, type LinkButtonProps, } from './new-button/variants/default/link';
3
+ export { default as IconButton, type IconButtonProps, } from './new-button/variants/icon/button';
4
+ export { default as LinkIconButton, type LinkIconButtonProps, } from './new-button/variants/icon/link';
5
+ export { SplitButton } from './new-button/containers/split-button';
6
+ export type { Appearance, Spacing } from './new-button/variants/types';
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/button/new",
3
+ "main": "../dist/cjs/entry-points/new.js",
4
+ "module": "../dist/esm/entry-points/new.js",
5
+ "module:es2019": "../dist/es2019/entry-points/new.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/entry-points/new.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <4.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/entry-points/new.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.17.11",
3
+ "version": "16.18.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/"
@@ -70,6 +70,7 @@
70
70
  "./loading-button": "./src/entry-points/loading-button.tsx",
71
71
  "./standard-button": "./src/entry-points/standard-button.tsx",
72
72
  "./unsafe": "./src/entry-points/unsafe.tsx",
73
+ "./new": "./src/entry-points/new.tsx",
73
74
  "./types": "./src/entry-points/types.tsx",
74
75
  ".": "./src/index.tsx"
75
76
  },