@atlaskit/primitives 15.0.1 → 16.0.1

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,25 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 16.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e336b1e1861e5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e336b1e1861e5) -
8
+ ts-expect-error was replaced with ts-ignore to fix typecheck issues with help-center local
9
+ consumption
10
+
11
+ ## 16.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [`64bcecfcb59ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64bcecfcb59ac) -
16
+ MetricText no longer accepts emotion-based xcss props only @atlaskit/css compiled-based props as
17
+ per the Compiled variant API.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 15.0.1
4
24
 
5
25
  ### Patch Changes
@@ -333,7 +333,7 @@ var Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
333
333
  xcss = _ref.xcss,
334
334
  htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
335
335
  // This is to remove className from safeHtmlAttributes
336
- // @ts-expect-error -- className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
336
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
337
337
  var _spreadClass = htmlAttributes.className,
338
338
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
339
339
  var node = /*#__PURE__*/React.createElement(Component
@@ -40,7 +40,7 @@ var Focusable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
40
40
  xcss = _ref.xcss,
41
41
  htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
42
42
  // This is to remove className from safeHtmlAttributes
43
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
43
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
44
44
  var _spreadClass = htmlAttributes.className,
45
45
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
46
46
  return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({}, safeHtmlAttributes, {
@@ -71,7 +71,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
71
71
  var _spreadClass = htmlAttributes.className,
72
72
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
73
73
  return /*#__PURE__*/React.createElement(_focusable.default
74
- // @ts-expect-error we don't allow `button` on Focusable for makers as they should use Pressable instead
74
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - we don't allow `button` on Focusable for makers as they should use Pressable instead
75
75
  , (0, _extends2.default)({
76
76
  as: "button"
77
77
  // Safari does not apply focus to buttons on click like other browsers, which means click events will not be fired.
@@ -51,7 +51,7 @@ var Box = exports.Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
51
51
  xcss = _ref.xcss,
52
52
  htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
53
53
  // This is to remove className from safeHtmlAttributes
54
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
54
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
55
55
  var _spreadClass = htmlAttributes.className,
56
56
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
57
57
  var resolvedStyles = (0, _xcss.parseXcss)(xcss);
@@ -5,62 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _react = require("react");
9
- var _react2 = require("@emotion/react");
10
- var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
11
- var _styleMaps = require("../xcss/style-maps.partial");
8
+ var _metricText = _interopRequireDefault(require("../compiled/components/metric-text"));
12
9
  /**
13
- * @jsxRuntime classic
14
- * @jsx jsx
10
+ * IMPORTANT: This is a temporary mapping to avoid breaking changes.
11
+ * We will remove this once we have migrated all the components to @atlaskit/primitives/compiled.
15
12
  */
16
-
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
-
19
- var asAllowlist = ['span', 'div'];
20
- // We're doing this because our CSS reset can add top margins to elements such as `p` which is totally insane.
21
- // Long term we should remove those instances from the reset - it should be a reset to 0.
22
- // For now, at least we know <MetricText> will be unaffected by this.
23
- var resetStyles = (0, _react2.css)({
24
- margin: 0
25
- });
26
- var textAlignMap = {
27
- center: (0, _react2.css)({
28
- textAlign: 'center'
29
- }),
30
- end: (0, _react2.css)({
31
- textAlign: 'end'
32
- }),
33
- start: (0, _react2.css)({
34
- textAlign: 'start'
35
- })
36
- };
37
-
13
+ // TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
14
+ // Remove links that the component does not have (such as usage). If there are no links remove them all.
38
15
  /**
39
- * __MetricText__
16
+ * __Metric text comp__
40
17
  *
41
- * MetricText is a primitive component that has the Atlassian Design System's design guidelines baked in.
42
- * It is designed for use specifically with displaying metrics and is not to be used for headings or general UI text.
43
- * It renders a `span` by default.
18
+ * A metric text comp {description}.
44
19
  *
45
- * @internal
20
+ * - [Examples](https://atlassian.design/components/{packageName}/examples)
21
+ * - [Code](https://atlassian.design/components/{packageName}/code)
22
+ * - [Usage](https://atlassian.design/components/{packageName}/usage)
46
23
  */
47
- var MetricText = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
48
- var _ref$as = _ref.as,
49
- Component = _ref$as === void 0 ? 'span' : _ref$as,
50
- align = _ref.align,
51
- testId = _ref.testId,
52
- id = _ref.id,
53
- size = _ref.size,
54
- children = _ref.children;
55
- (0, _tinyInvariant.default)(asAllowlist.includes(Component), "@atlaskit/primitives: MetricText received an invalid \"as\" value of \"".concat(Component, "\""));
56
- var component = (0, _react2.jsx)(Component, {
57
- ref: ref,
58
- css: [resetStyles,
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
60
- size && _styleMaps.metricTextSizeStylesMap[size], align && textAlignMap[align]],
61
- "data-testid": testId,
62
- id: id
63
- }, children);
64
- return component;
65
- });
66
- var _default = exports.default = MetricText;
24
+ var _default = exports.default = _metricText.default;
@@ -316,7 +316,7 @@ const Box = /*#__PURE__*/forwardRef(({
316
316
  ...htmlAttributes
317
317
  }, ref) => {
318
318
  // This is to remove className from safeHtmlAttributes
319
- // @ts-expect-error -- className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
319
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
320
320
  const {
321
321
  className: _spreadClass,
322
322
  ...safeHtmlAttributes
@@ -28,7 +28,7 @@ const Focusable = /*#__PURE__*/forwardRef(({
28
28
  ...htmlAttributes
29
29
  }, ref) => {
30
30
  // This is to remove className from safeHtmlAttributes
31
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
31
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
32
32
  const {
33
33
  className: _spreadClass,
34
34
  ...safeHtmlAttributes
@@ -60,7 +60,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
60
60
  ...safeHtmlAttributes
61
61
  } = htmlAttributes;
62
62
  return /*#__PURE__*/React.createElement(Focusable
63
- // @ts-expect-error we don't allow `button` on Focusable for makers as they should use Pressable instead
63
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - we don't allow `button` on Focusable for makers as they should use Pressable instead
64
64
  , _extends({
65
65
  as: "button"
66
66
  // Safari does not apply focus to buttons on click like other browsers, which means click events will not be fired.
@@ -43,7 +43,7 @@ export const Box = /*#__PURE__*/forwardRef(({
43
43
  ...htmlAttributes
44
44
  }, ref) => {
45
45
  // This is to remove className from safeHtmlAttributes
46
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
46
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
47
47
  const {
48
48
  className: _spreadClass,
49
49
  ...safeHtmlAttributes
@@ -1,58 +1,18 @@
1
1
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
2
+ * IMPORTANT: This is a temporary mapping to avoid breaking changes.
3
+ * We will remove this once we have migrated all the components to @atlaskit/primitives/compiled.
4
4
  */
5
- import { forwardRef } from 'react';
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
- import invariant from 'tiny-invariant';
10
- import { metricTextSizeStylesMap } from '../xcss/style-maps.partial';
11
- const asAllowlist = ['span', 'div'];
12
- // We're doing this because our CSS reset can add top margins to elements such as `p` which is totally insane.
13
- // Long term we should remove those instances from the reset - it should be a reset to 0.
14
- // For now, at least we know <MetricText> will be unaffected by this.
15
- const resetStyles = css({
16
- margin: 0
17
- });
18
- const textAlignMap = {
19
- center: css({
20
- textAlign: 'center'
21
- }),
22
- end: css({
23
- textAlign: 'end'
24
- }),
25
- start: css({
26
- textAlign: 'start'
27
- })
28
- };
29
5
 
6
+ // TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
7
+ // Remove links that the component does not have (such as usage). If there are no links remove them all.
30
8
  /**
31
- * __MetricText__
9
+ * __Metric text comp__
32
10
  *
33
- * MetricText is a primitive component that has the Atlassian Design System's design guidelines baked in.
34
- * It is designed for use specifically with displaying metrics and is not to be used for headings or general UI text.
35
- * It renders a `span` by default.
11
+ * A metric text comp {description}.
36
12
  *
37
- * @internal
13
+ * - [Examples](https://atlassian.design/components/{packageName}/examples)
14
+ * - [Code](https://atlassian.design/components/{packageName}/code)
15
+ * - [Usage](https://atlassian.design/components/{packageName}/usage)
38
16
  */
39
- const MetricText = /*#__PURE__*/forwardRef(({
40
- as: Component = 'span',
41
- align,
42
- testId,
43
- id,
44
- size,
45
- children
46
- }, ref) => {
47
- invariant(asAllowlist.includes(Component), `@atlaskit/primitives: MetricText received an invalid "as" value of "${Component}"`);
48
- const component = jsx(Component, {
49
- ref: ref,
50
- css: [resetStyles,
51
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
52
- size && metricTextSizeStylesMap[size], align && textAlignMap[align]],
53
- "data-testid": testId,
54
- id: id
55
- }, children);
56
- return component;
57
- });
17
+ import MetricText from '../compiled/components/metric-text';
58
18
  export default MetricText;
@@ -325,7 +325,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
325
325
  xcss = _ref.xcss,
326
326
  htmlAttributes = _objectWithoutProperties(_ref, _excluded);
327
327
  // This is to remove className from safeHtmlAttributes
328
- // @ts-expect-error -- className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
328
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
329
329
  var _spreadClass = htmlAttributes.className,
330
330
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
331
331
  var node = /*#__PURE__*/React.createElement(Component
@@ -31,7 +31,7 @@ var Focusable = /*#__PURE__*/forwardRef(function (_ref, ref) {
31
31
  xcss = _ref.xcss,
32
32
  htmlAttributes = _objectWithoutProperties(_ref, _excluded);
33
33
  // This is to remove className from safeHtmlAttributes
34
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
34
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
35
35
  var _spreadClass = htmlAttributes.className,
36
36
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
37
37
  return /*#__PURE__*/React.createElement(Component, _extends({}, safeHtmlAttributes, {
@@ -62,7 +62,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
62
62
  var _spreadClass = htmlAttributes.className,
63
63
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
64
64
  return /*#__PURE__*/React.createElement(Focusable
65
- // @ts-expect-error we don't allow `button` on Focusable for makers as they should use Pressable instead
65
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - we don't allow `button` on Focusable for makers as they should use Pressable instead
66
66
  , _extends({
67
67
  as: "button"
68
68
  // Safari does not apply focus to buttons on click like other browsers, which means click events will not be fired.
@@ -46,7 +46,7 @@ export var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
46
46
  xcss = _ref.xcss,
47
47
  htmlAttributes = _objectWithoutProperties(_ref, _excluded);
48
48
  // This is to remove className from safeHtmlAttributes
49
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
49
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
50
50
  var _spreadClass = htmlAttributes.className,
51
51
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
52
52
  var resolvedStyles = parseXcss(xcss);
@@ -1,58 +1,18 @@
1
1
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
2
+ * IMPORTANT: This is a temporary mapping to avoid breaking changes.
3
+ * We will remove this once we have migrated all the components to @atlaskit/primitives/compiled.
4
4
  */
5
- import { forwardRef } from 'react';
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
- import invariant from 'tiny-invariant';
10
- import { metricTextSizeStylesMap } from '../xcss/style-maps.partial';
11
- var asAllowlist = ['span', 'div'];
12
- // We're doing this because our CSS reset can add top margins to elements such as `p` which is totally insane.
13
- // Long term we should remove those instances from the reset - it should be a reset to 0.
14
- // For now, at least we know <MetricText> will be unaffected by this.
15
- var resetStyles = css({
16
- margin: 0
17
- });
18
- var textAlignMap = {
19
- center: css({
20
- textAlign: 'center'
21
- }),
22
- end: css({
23
- textAlign: 'end'
24
- }),
25
- start: css({
26
- textAlign: 'start'
27
- })
28
- };
29
5
 
6
+ // TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
7
+ // Remove links that the component does not have (such as usage). If there are no links remove them all.
30
8
  /**
31
- * __MetricText__
9
+ * __Metric text comp__
32
10
  *
33
- * MetricText is a primitive component that has the Atlassian Design System's design guidelines baked in.
34
- * It is designed for use specifically with displaying metrics and is not to be used for headings or general UI text.
35
- * It renders a `span` by default.
11
+ * A metric text comp {description}.
36
12
  *
37
- * @internal
13
+ * - [Examples](https://atlassian.design/components/{packageName}/examples)
14
+ * - [Code](https://atlassian.design/components/{packageName}/code)
15
+ * - [Usage](https://atlassian.design/components/{packageName}/usage)
38
16
  */
39
- var MetricText = /*#__PURE__*/forwardRef(function (_ref, ref) {
40
- var _ref$as = _ref.as,
41
- Component = _ref$as === void 0 ? 'span' : _ref$as,
42
- align = _ref.align,
43
- testId = _ref.testId,
44
- id = _ref.id,
45
- size = _ref.size,
46
- children = _ref.children;
47
- invariant(asAllowlist.includes(Component), "@atlaskit/primitives: MetricText received an invalid \"as\" value of \"".concat(Component, "\""));
48
- var component = jsx(Component, {
49
- ref: ref,
50
- css: [resetStyles,
51
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
52
- size && metricTextSizeStylesMap[size], align && textAlignMap[align]],
53
- "data-testid": testId,
54
- id: id
55
- }, children);
56
- return component;
57
- });
17
+ import MetricText from '../compiled/components/metric-text';
58
18
  export default MetricText;
@@ -1,53 +1,16 @@
1
1
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
2
+ * IMPORTANT: This is a temporary mapping to avoid breaking changes.
3
+ * We will remove this once we have migrated all the components to @atlaskit/primitives/compiled.
4
4
  */
5
- import { type ComponentPropsWithRef, type ElementType, type ReactNode } from 'react';
6
- import { type MetricTextSize } from '../xcss/style-maps.partial';
7
- import type { BasePrimitiveProps } from './types';
8
- declare const asAllowlist: readonly ["span", "div"];
9
- type AsElement = (typeof asAllowlist)[number];
10
- type MetricTextPropsBase<T extends ElementType = 'span'> = {
11
- /**
12
- * HTML tag to be rendered. Defaults to `span`.
13
- */
14
- as?: AsElement;
15
- /**
16
- * Elements rendered within the Text element.
17
- */
18
- children: ReactNode;
19
- /**
20
- * The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
21
- */
22
- id?: string;
23
- /**
24
- * Text alignment.
25
- */
26
- align?: TextAlign;
27
- /**
28
- * Text size.
29
- */
30
- size: MetricTextSize;
31
- /**
32
- * Forwarded ref.
33
- */
34
- ref?: ComponentPropsWithRef<T>['ref'];
35
- };
36
- export type MetricTextProps<T extends ElementType = 'span'> = MetricTextPropsBase<T> & Omit<BasePrimitiveProps, 'xcss'>;
37
- type TextAlign = keyof typeof textAlignMap;
38
- declare const textAlignMap: {
39
- center: import("@emotion/react").SerializedStyles;
40
- end: import("@emotion/react").SerializedStyles;
41
- start: import("@emotion/react").SerializedStyles;
42
- };
43
5
  /**
44
- * __MetricText__
6
+ * __Metric text comp__
45
7
  *
46
- * MetricText is a primitive component that has the Atlassian Design System's design guidelines baked in.
47
- * It is designed for use specifically with displaying metrics and is not to be used for headings or general UI text.
48
- * It renders a `span` by default.
8
+ * A metric text comp {description}.
49
9
  *
50
- * @internal
10
+ * - [Examples](https://atlassian.design/components/{packageName}/examples)
11
+ * - [Code](https://atlassian.design/components/{packageName}/code)
12
+ * - [Usage](https://atlassian.design/components/{packageName}/usage)
51
13
  */
52
- declare const MetricText: React.ForwardRefExoticComponent<React.PropsWithoutRef<MetricTextProps<ElementType>> & React.RefAttributes<any>>;
14
+ import MetricText, { type MetricTextProps } from '../compiled/components/metric-text';
15
+ export type { MetricTextProps };
53
16
  export default MetricText;
@@ -1,56 +1,16 @@
1
1
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
2
+ * IMPORTANT: This is a temporary mapping to avoid breaking changes.
3
+ * We will remove this once we have migrated all the components to @atlaskit/primitives/compiled.
4
4
  */
5
- import { type ComponentPropsWithRef, type ElementType, type ReactNode } from 'react';
6
- import { type MetricTextSize } from '../xcss/style-maps.partial';
7
- import type { BasePrimitiveProps } from './types';
8
- declare const asAllowlist: readonly [
9
- "span",
10
- "div"
11
- ];
12
- type AsElement = (typeof asAllowlist)[number];
13
- type MetricTextPropsBase<T extends ElementType = 'span'> = {
14
- /**
15
- * HTML tag to be rendered. Defaults to `span`.
16
- */
17
- as?: AsElement;
18
- /**
19
- * Elements rendered within the Text element.
20
- */
21
- children: ReactNode;
22
- /**
23
- * The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
24
- */
25
- id?: string;
26
- /**
27
- * Text alignment.
28
- */
29
- align?: TextAlign;
30
- /**
31
- * Text size.
32
- */
33
- size: MetricTextSize;
34
- /**
35
- * Forwarded ref.
36
- */
37
- ref?: ComponentPropsWithRef<T>['ref'];
38
- };
39
- export type MetricTextProps<T extends ElementType = 'span'> = MetricTextPropsBase<T> & Omit<BasePrimitiveProps, 'xcss'>;
40
- type TextAlign = keyof typeof textAlignMap;
41
- declare const textAlignMap: {
42
- center: import("@emotion/react").SerializedStyles;
43
- end: import("@emotion/react").SerializedStyles;
44
- start: import("@emotion/react").SerializedStyles;
45
- };
46
5
  /**
47
- * __MetricText__
6
+ * __Metric text comp__
48
7
  *
49
- * MetricText is a primitive component that has the Atlassian Design System's design guidelines baked in.
50
- * It is designed for use specifically with displaying metrics and is not to be used for headings or general UI text.
51
- * It renders a `span` by default.
8
+ * A metric text comp {description}.
52
9
  *
53
- * @internal
10
+ * - [Examples](https://atlassian.design/components/{packageName}/examples)
11
+ * - [Code](https://atlassian.design/components/{packageName}/code)
12
+ * - [Usage](https://atlassian.design/components/{packageName}/usage)
54
13
  */
55
- declare const MetricText: React.ForwardRefExoticComponent<React.PropsWithoutRef<MetricTextProps<ElementType>> & React.RefAttributes<any>>;
14
+ import MetricText, { type MetricTextProps } from '../compiled/components/metric-text';
15
+ export type { MetricTextProps };
56
16
  export default MetricText;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "15.0.1",
3
+ "version": "16.0.1",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -175,10 +175,10 @@
175
175
  "@atlaskit/section-message": "^8.7.0",
176
176
  "@atlaskit/textfield": "^8.0.0",
177
177
  "@atlaskit/toggle": "^15.1.0",
178
- "@atlaskit/tooltip": "^20.5.0",
178
+ "@atlaskit/tooltip": "^20.6.0",
179
179
  "@atlassian/analytics-bridge": "^0.7.0",
180
180
  "@atlassian/codegen": "^0.1.0",
181
- "@atlassian/feature-flags-test-utils": "^0.3.0",
181
+ "@atlassian/feature-flags-test-utils": "^1.0.0",
182
182
  "@atlassian/ssr-tests": "^0.3.0",
183
183
  "@testing-library/react": "^13.4.0",
184
184
  "@testing-library/react-hooks": "^8.0.1",