@atlaskit/primitives 18.0.0 → 18.0.2

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 (107) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/codemods/hypermod.config.tsx +5 -1
  3. package/constellation/anchor/code.mdx +2 -2
  4. package/constellation/anchor/usage.mdx +40 -38
  5. package/constellation/bleed/code.mdx +2 -2
  6. package/constellation/box/code.mdx +2 -2
  7. package/constellation/flex/code.mdx +2 -2
  8. package/constellation/grid/code.mdx +2 -2
  9. package/constellation/inline/code.mdx +2 -2
  10. package/constellation/metric-text/code.mdx +2 -2
  11. package/constellation/pressable/code.mdx +2 -2
  12. package/constellation/pressable/usage.mdx +23 -22
  13. package/constellation/stack/code.mdx +2 -2
  14. package/constellation/text/code.mdx +2 -2
  15. package/dist/cjs/compiled/components/anchor.js +3 -5
  16. package/dist/cjs/compiled/components/bleed.js +1 -1
  17. package/dist/cjs/compiled/components/box.js +2 -4
  18. package/dist/cjs/compiled/components/flex.js +1 -1
  19. package/dist/cjs/compiled/components/focusable.js +2 -4
  20. package/dist/cjs/compiled/components/grid.js +1 -1
  21. package/dist/cjs/compiled/components/inline.js +1 -1
  22. package/dist/cjs/compiled/components/metric-text.js +1 -1
  23. package/dist/cjs/compiled/components/pressable.js +3 -5
  24. package/dist/cjs/compiled/components/stack.js +1 -1
  25. package/dist/cjs/compiled/components/text.js +1 -1
  26. package/dist/cjs/compiled/responsive/hide.js +1 -1
  27. package/dist/cjs/compiled/responsive/show.js +1 -1
  28. package/dist/cjs/components/anchor.js +3 -5
  29. package/dist/cjs/components/bleed.js +1 -1
  30. package/dist/cjs/components/box.js +1 -3
  31. package/dist/cjs/components/pressable.js +1 -2
  32. package/dist/cjs/responsive/hide.js +1 -1
  33. package/dist/es2019/compiled/components/anchor.js +3 -5
  34. package/dist/es2019/compiled/components/bleed.js +1 -1
  35. package/dist/es2019/compiled/components/box.js +2 -4
  36. package/dist/es2019/compiled/components/flex.js +1 -1
  37. package/dist/es2019/compiled/components/focusable.js +2 -4
  38. package/dist/es2019/compiled/components/grid.js +1 -1
  39. package/dist/es2019/compiled/components/inline.js +1 -1
  40. package/dist/es2019/compiled/components/metric-text.js +1 -1
  41. package/dist/es2019/compiled/components/pressable.js +3 -5
  42. package/dist/es2019/compiled/components/stack.js +1 -1
  43. package/dist/es2019/compiled/components/text.js +1 -1
  44. package/dist/es2019/compiled/responsive/hide.js +1 -1
  45. package/dist/es2019/compiled/responsive/show.js +1 -1
  46. package/dist/es2019/components/anchor.js +3 -5
  47. package/dist/es2019/components/bleed.js +1 -1
  48. package/dist/es2019/components/box.js +1 -3
  49. package/dist/es2019/components/pressable.js +1 -2
  50. package/dist/es2019/responsive/hide.js +1 -1
  51. package/dist/esm/compiled/components/anchor.js +3 -5
  52. package/dist/esm/compiled/components/bleed.js +1 -1
  53. package/dist/esm/compiled/components/box.js +2 -4
  54. package/dist/esm/compiled/components/flex.js +1 -1
  55. package/dist/esm/compiled/components/focusable.js +2 -4
  56. package/dist/esm/compiled/components/grid.js +1 -1
  57. package/dist/esm/compiled/components/inline.js +1 -1
  58. package/dist/esm/compiled/components/metric-text.js +1 -1
  59. package/dist/esm/compiled/components/pressable.js +3 -5
  60. package/dist/esm/compiled/components/stack.js +1 -1
  61. package/dist/esm/compiled/components/text.js +1 -1
  62. package/dist/esm/compiled/responsive/hide.js +1 -1
  63. package/dist/esm/compiled/responsive/show.js +1 -1
  64. package/dist/esm/components/anchor.js +3 -5
  65. package/dist/esm/components/bleed.js +1 -1
  66. package/dist/esm/components/box.js +1 -3
  67. package/dist/esm/components/pressable.js +1 -2
  68. package/dist/esm/responsive/hide.js +1 -1
  69. package/dist/types/compiled/components/flex.d.ts +2 -2
  70. package/dist/types/compiled/components/grid.d.ts +2 -2
  71. package/dist/types/compiled/components/inline.d.ts +2 -2
  72. package/dist/types/compiled/components/stack.d.ts +2 -2
  73. package/dist/types/compiled/index.d.ts +1 -1
  74. package/dist/types/components/flex.d.ts +19 -18
  75. package/dist/types/components/grid.d.ts +30 -29
  76. package/dist/types/components/inline.d.ts +1 -1
  77. package/dist/types/components/stack.d.ts +2 -2
  78. package/dist/types/components/text.d.ts +4 -3
  79. package/dist/types/responsive/build-media-query-css.d.ts +3 -3
  80. package/dist/types/responsive/media-helper.d.ts +17 -17
  81. package/dist/types/utils/has-text-ancestor-context.d.ts +2 -1
  82. package/dist/types/utils/surface-provider.d.ts +2 -1
  83. package/dist/types-ts4.5/compiled/components/flex.d.ts +2 -2
  84. package/dist/types-ts4.5/compiled/components/grid.d.ts +2 -2
  85. package/dist/types-ts4.5/compiled/components/inline.d.ts +2 -2
  86. package/dist/types-ts4.5/compiled/components/stack.d.ts +2 -2
  87. package/dist/types-ts4.5/compiled/index.d.ts +1 -1
  88. package/dist/types-ts4.5/components/flex.d.ts +19 -18
  89. package/dist/types-ts4.5/components/grid.d.ts +30 -29
  90. package/dist/types-ts4.5/components/inline.d.ts +1 -1
  91. package/dist/types-ts4.5/components/stack.d.ts +2 -2
  92. package/dist/types-ts4.5/components/text.d.ts +4 -3
  93. package/dist/types-ts4.5/responsive/build-media-query-css.d.ts +3 -3
  94. package/dist/types-ts4.5/responsive/media-helper.d.ts +17 -17
  95. package/dist/types-ts4.5/utils/has-text-ancestor-context.d.ts +2 -1
  96. package/dist/types-ts4.5/utils/surface-provider.d.ts +2 -1
  97. package/package.json +14 -14
  98. package/scripts/codegen-styles.tsx +6 -9
  99. package/scripts/color-codegen-template.tsx +3 -1
  100. package/scripts/elevation-codegen-template.tsx +3 -1
  101. package/scripts/inverse-color-map-template.tsx +1 -1
  102. package/scripts/misc-codegen-template.tsx +3 -1
  103. package/scripts/shape-codegen-template.tsx +3 -1
  104. package/scripts/spacing-codegen-template.tsx +1 -1
  105. package/scripts/text-codegen-template.tsx +1 -1
  106. package/scripts/typography-codegen-template.tsx +1 -1
  107. package/scripts/utils.tsx +17 -10
@@ -1,4 +1,4 @@
1
- /* focusable.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* focusable.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./focusable.compiled.css";
4
4
  import * as React from 'react';
@@ -30,9 +30,7 @@ const Focusable = /*#__PURE__*/forwardRef(({
30
30
  return /*#__PURE__*/React.createElement(Component, _extends({}, safeHtmlAttributes, {
31
31
  // @ts-ignore Expression produces a union type that is too complex to represent. We may be able to narrow the type here but unsure.
32
32
  ref: ref,
33
- className: ax(["_ymio1r31 _ypr0glyw _zcxs1o36 _mizu194a _1ah3dkaa _ra3xnqa1 _128mdkaa _1cvmnqa1 _4davt94y", isInset && "_1ah31gjf _2mwq1gjf", xcss])
34
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
35
- ,
33
+ className: ax(["_ymio1r31 _ypr0glyw _zcxs1o36 _mizu194a _1ah3dkaa _ra3xnqa1 _128mdkaa _1cvmnqa1 _4davt94y", isInset && "_1ah31gjf _2mwq1gjf", xcss]),
36
34
  style: style,
37
35
  "data-testid": testId
38
36
  }), children);
@@ -1,4 +1,4 @@
1
- /* grid.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* grid.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./grid.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* inline.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* inline.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./inline.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* metric-text.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* metric-text.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./metric-text.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* pressable.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* pressable.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./pressable.compiled.css";
4
4
  import * as React from 'react';
@@ -48,7 +48,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
48
48
  action: 'clicked',
49
49
  componentName: componentName || 'Pressable',
50
50
  packageName: "@atlaskit/primitives",
51
- packageVersion: "17.1.1",
51
+ packageVersion: "0.0.0-development",
52
52
  analyticsData: analyticsContext,
53
53
  actionSubject: 'button'
54
54
  });
@@ -67,9 +67,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
67
67
  // Adding a tabIndex of 0 to the button will allow it to be focused on click.
68
68
  // This is a known issue in Safari that is meant to be "intended", see https://bugs.webkit.org/show_bug.cgi?id=22261
69
69
  ,
70
- tabIndex: tabIndex !== null && tabIndex !== void 0 ? tabIndex : isSafari() && !isDisabled ? 0 : undefined
71
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- TODO: Properly type this and allow pass-through if we can determine the type
72
- ,
70
+ tabIndex: tabIndex !== null && tabIndex !== void 0 ? tabIndex : isSafari() && !isDisabled ? 0 : undefined,
73
71
  style: style
74
72
  }, safeHtmlAttributes, {
75
73
  type: type,
@@ -1,4 +1,4 @@
1
- /* stack.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* stack.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./stack.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* text.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* text.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./text.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* hide.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* hide.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./hide.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* show.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* show.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./show.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
5
5
  */
6
6
  import { forwardRef, useCallback, useContext } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import invariant from 'tiny-invariant';
11
11
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
@@ -94,7 +94,7 @@ const AnchorNoRef = ({
94
94
  action: 'clicked',
95
95
  componentName: componentName || 'Anchor',
96
96
  packageName: "@atlaskit/primitives",
97
- packageVersion: "17.1.1",
97
+ packageVersion: "0.0.0-development",
98
98
  analyticsData: analyticsContext,
99
99
  actionSubject: 'link'
100
100
  });
@@ -121,9 +121,7 @@ const AnchorNoRef = ({
121
121
  const hrefObjectUsedWithoutRouterLink = RouterLink === undefined && typeof href === 'object';
122
122
  invariant(!hrefObjectUsedWithoutRouterLink, `@atlaskit/primitives: Anchor primitive cannot pass an object to 'href' unless a router link is configured in the AppProvider`);
123
123
  const Component = isRouterLink ? RouterLink : 'a';
124
- return jsx(Component
125
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
126
- , _extends({
124
+ return jsx(Component, _extends({
127
125
  style: style,
128
126
  ref: ref
129
127
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { parseXcss } from '../xcss/xcss';
10
10
  const baseStyles = css({
@@ -51,9 +51,7 @@ export const Box = /*#__PURE__*/forwardRef(({
51
51
  const resolvedStyles = parseXcss(xcss);
52
52
  const node =
53
53
  // @ts-expect-error Expression produces a union type that is too complex to represent. I think this is unavoidable
54
- jsx(Component
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
56
- , _extends({
54
+ jsx(Component, _extends({
57
55
  style: style
58
56
  // @ts-ignore Expression produces a union type that is too complex to represent. We may be able to narrow the type here but unsure.
59
57
  ,
@@ -86,7 +86,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
86
86
  action: 'clicked',
87
87
  componentName: componentName || 'Pressable',
88
88
  packageName: "@atlaskit/primitives",
89
- packageVersion: "17.1.1",
89
+ packageVersion: "0.0.0-development",
90
90
  analyticsData: analyticsContext,
91
91
  actionSubject: 'button'
92
92
  });
@@ -99,7 +99,6 @@ const Pressable = /*#__PURE__*/forwardRef(({
99
99
  } = htmlAttributes;
100
100
  const resolvedStyles = parseXcss(xcss);
101
101
  return jsx("button", _extends({
102
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
103
102
  style: style,
104
103
  ref: ref
105
104
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
7
7
  import { jsx } from '@emotion/react';
8
8
  import { parseXcss } from '../xcss/xcss';
9
9
  import { UNSAFE_buildAboveMediaQueryCSS, UNSAFE_buildBelowMediaQueryCSS } from './build-media-query-css';
@@ -1,4 +1,4 @@
1
- /* anchor.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* anchor.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _typeof from "@babel/runtime/helpers/typeof";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
@@ -61,7 +61,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
61
61
  action: 'clicked',
62
62
  componentName: componentName || 'Anchor',
63
63
  packageName: "@atlaskit/primitives",
64
- packageVersion: "17.1.1",
64
+ packageVersion: "0.0.0-development",
65
65
  analyticsData: analyticsContext,
66
66
  actionSubject: 'link'
67
67
  });
@@ -89,9 +89,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
89
89
  // @ts-expect-error we don't allow `a` on Focusable for makers as they should use Anchor instead
90
90
  , _extends({
91
91
  as: Component,
92
- className: xcss
93
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- TODO: Properly type this and allow pass-through if we can determine the type
94
- ,
92
+ className: xcss,
95
93
  style: style,
96
94
  ref: ref
97
95
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -1,4 +1,4 @@
1
- /* bleed.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* bleed.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./bleed.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* box.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* box.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["as", "children", "backgroundColor", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "style", "testId", "xcss"],
@@ -328,9 +328,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
328
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
- var node = /*#__PURE__*/React.createElement(Component
332
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
333
- , _extends({
331
+ var node = /*#__PURE__*/React.createElement(Component, _extends({
334
332
  style: style
335
333
  // @ts-ignore -- Expression produces a union type that is too complex to represent. We may be able to narrow the type here but unsure.
336
334
  ,
@@ -1,4 +1,4 @@
1
- /* flex.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* flex.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["as", "role", "alignItems", "justifyContent", "gap", "columnGap", "rowGap", "children", "testId", "direction", "wrap", "xcss"];
@@ -1,4 +1,4 @@
1
- /* focusable.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* focusable.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["as", "children", "isInset", "testId", "style", "xcss"],
@@ -31,9 +31,7 @@ var Focusable = /*#__PURE__*/forwardRef(function (_ref, ref) {
31
31
  return /*#__PURE__*/React.createElement(Component, _extends({}, safeHtmlAttributes, {
32
32
  // @ts-ignore Expression produces a union type that is too complex to represent. We may be able to narrow the type here but unsure.
33
33
  ref: ref,
34
- className: ax(["_ymio1r31 _ypr0glyw _zcxs1o36 _mizu194a _1ah3dkaa _ra3xnqa1 _128mdkaa _1cvmnqa1 _4davt94y", isInset && "_1ah31gjf _2mwq1gjf", xcss])
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
36
- ,
34
+ className: ax(["_ymio1r31 _ypr0glyw _zcxs1o36 _mizu194a _1ah3dkaa _ra3xnqa1 _128mdkaa _1cvmnqa1 _4davt94y", isInset && "_1ah31gjf _2mwq1gjf", xcss]),
37
35
  style: style,
38
36
  "data-testid": testId
39
37
  }), children);
@@ -1,4 +1,4 @@
1
- /* grid.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* grid.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./grid.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* inline.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* inline.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["as", "alignInline", "alignBlock", "shouldWrap", "spread", "grow", "space", "rowSpace", "separator", "xcss", "testId", "role", "children"];
@@ -1,4 +1,4 @@
1
- /* metric-text.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* metric-text.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./metric-text.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* pressable.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* pressable.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["children", "isDisabled", "type", "onClick", "interactionName", "componentName", "analyticsContext", "style", "testId", "xcss", "tabIndex"],
@@ -52,7 +52,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
52
52
  action: 'clicked',
53
53
  componentName: componentName || 'Pressable',
54
54
  packageName: "@atlaskit/primitives",
55
- packageVersion: "17.1.1",
55
+ packageVersion: "0.0.0-development",
56
56
  analyticsData: analyticsContext,
57
57
  actionSubject: 'button'
58
58
  });
@@ -69,9 +69,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
69
69
  // Adding a tabIndex of 0 to the button will allow it to be focused on click.
70
70
  // This is a known issue in Safari that is meant to be "intended", see https://bugs.webkit.org/show_bug.cgi?id=22261
71
71
  ,
72
- tabIndex: tabIndex !== null && tabIndex !== void 0 ? tabIndex : isSafari() && !isDisabled ? 0 : undefined
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- TODO: Properly type this and allow pass-through if we can determine the type
74
- ,
72
+ tabIndex: tabIndex !== null && tabIndex !== void 0 ? tabIndex : isSafari() && !isDisabled ? 0 : undefined,
75
73
  style: style
76
74
  }, safeHtmlAttributes, {
77
75
  type: type,
@@ -1,4 +1,4 @@
1
- /* stack.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* stack.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["as", "alignInline", "alignBlock", "spread", "grow", "space", "children", "testId", "xcss", "role"];
@@ -1,4 +1,4 @@
1
- /* text.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* text.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./text.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* hide.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* hide.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./hide.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* show.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* show.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./show.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -10,7 +10,7 @@ var _excluded = ["href", "children", "backgroundColor", "newWindowLabel", "paddi
10
10
  */
11
11
  import { forwardRef, useCallback, useContext } from 'react';
12
12
 
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
14
14
  import { css, jsx } from '@emotion/react';
15
15
  import invariant from 'tiny-invariant';
16
16
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
@@ -99,7 +99,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
99
99
  action: 'clicked',
100
100
  componentName: componentName || 'Anchor',
101
101
  packageName: "@atlaskit/primitives",
102
- packageVersion: "17.1.1",
102
+ packageVersion: "0.0.0-development",
103
103
  analyticsData: analyticsContext,
104
104
  actionSubject: 'link'
105
105
  });
@@ -124,9 +124,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
124
124
  var hrefObjectUsedWithoutRouterLink = RouterLink === undefined && _typeof(href) === 'object';
125
125
  invariant(!hrefObjectUsedWithoutRouterLink, "@atlaskit/primitives: Anchor primitive cannot pass an object to 'href' unless a router link is configured in the AppProvider");
126
126
  var Component = isRouterLink ? RouterLink : 'a';
127
- return jsx(Component
128
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
129
- , _extends({
127
+ return jsx(Component, _extends({
130
128
  style: style,
131
129
  ref: ref
132
130
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -5,7 +5,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
5
5
  */
6
6
  import React from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { parseXcss } from '../xcss/xcss';
11
11
  var baseStyles = css({
@@ -52,9 +52,7 @@ export var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
52
52
  var resolvedStyles = parseXcss(xcss);
53
53
  var node =
54
54
  // @ts-expect-error Expression produces a union type that is too complex to represent. I think this is unavoidable
55
- jsx(Component
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
57
- , _extends({
55
+ jsx(Component, _extends({
58
56
  style: style
59
57
  // @ts-ignore Expression produces a union type that is too complex to represent. We may be able to narrow the type here but unsure.
60
58
  ,
@@ -91,7 +91,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
91
91
  action: 'clicked',
92
92
  componentName: componentName || 'Pressable',
93
93
  packageName: "@atlaskit/primitives",
94
- packageVersion: "17.1.1",
94
+ packageVersion: "0.0.0-development",
95
95
  analyticsData: analyticsContext,
96
96
  actionSubject: 'button'
97
97
  });
@@ -102,7 +102,6 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
102
102
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
103
103
  var resolvedStyles = parseXcss(xcss);
104
104
  return jsx("button", _extends({
105
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
106
105
  style: style,
107
106
  ref: ref
108
107
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -4,7 +4,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
4
  * @jsx jsx
5
5
  */
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { jsx } from '@emotion/react';
9
9
  import { parseXcss } from '../xcss/xcss';
10
10
  import { UNSAFE_buildAboveMediaQueryCSS, UNSAFE_buildBelowMediaQueryCSS } from './build-media-query-css';
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
5
+ import { type AriaAttributes, type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
6
6
  import type { AlignItems, BasePrimitiveProps, Direction, GapToken, JustifyContent, Wrap } from './types';
7
7
  export type FlexProps<T extends ElementType = 'div'> = {
8
8
  /**
@@ -67,5 +67,5 @@ export type FlexProps<T extends ElementType = 'div'> = {
67
67
  * )
68
68
  * ```
69
69
  */
70
- declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
70
+ declare const Flex: MemoExoticComponent<ForwardRefExoticComponent<Omit<FlexProps<ElementType>, 'ref'> & RefAttributes<any>>>;
71
71
  export default Flex;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type ElementType, type ReactNode } from 'react';
5
+ import { type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
6
6
  import type { AlignContent, AlignItems, AutoFlow, BasePrimitiveProps, GapToken, JustifyContent, JustifyItems } from './types';
7
7
  export type GridProps<T extends ElementType = 'div'> = {
8
8
  /**
@@ -76,5 +76,5 @@ export type GridProps<T extends ElementType = 'div'> = {
76
76
  * )
77
77
  * ```
78
78
  */
79
- declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<GridProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
79
+ declare const Grid: MemoExoticComponent<ForwardRefExoticComponent<Omit<GridProps<ElementType>, 'ref'> & RefAttributes<any>>>;
80
80
  export default Grid;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
5
+ import { type AriaAttributes, type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
6
6
  import { type FlexProps } from './flex';
7
7
  import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
8
8
  export type InlineProps<T extends ElementType = 'div'> = {
@@ -66,5 +66,5 @@ export type InlineProps<T extends ElementType = 'div'> = {
66
66
  * ```
67
67
  *
68
68
  */
69
- declare const Inline: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<InlineProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
69
+ declare const Inline: MemoExoticComponent<ForwardRefExoticComponent<Omit<InlineProps<ElementType>, 'ref'> & RefAttributes<any>>>;
70
70
  export default Inline;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
5
+ import { type AriaAttributes, type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
6
6
  import { type FlexProps } from './flex';
7
7
  import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
8
8
  export type StackProps<T extends ElementType = 'div'> = {
@@ -53,5 +53,5 @@ export type StackProps<T extends ElementType = 'div'> = {
53
53
  * ```
54
54
  *
55
55
  */
56
- declare const Stack: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<StackProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
56
+ declare const Stack: MemoExoticComponent<ForwardRefExoticComponent<Omit<StackProps<ElementType>, 'ref'> & RefAttributes<any>>>;
57
57
  export default Stack;
@@ -11,6 +11,6 @@ export { default as Anchor, type AnchorProps } from './components/anchor';
11
11
  export { media, type Breakpoint, type MediaQuery, UNSAFE_useMediaQuery, Show, Hide, } from './responsive';
12
12
  export { default as Focusable } from './components/focusable';
13
13
  export type { FocusableProps } from './components/focusable';
14
- export { useSurface as UNSAFE_useSurface, SurfaceContext as UNSAFE_SurfaceContext } from '../utils/surface-provider';
14
+ export { useSurface as UNSAFE_useSurface, SurfaceContext as UNSAFE_SurfaceContext, } from '../utils/surface-provider';
15
15
  export type { BackgroundColorToken as BackgroundColor } from '../utils/types';
16
16
  export type { PositiveSpaceToken as Space, TextColor } from './components/types';
@@ -2,7 +2,8 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type ElementType, type ReactNode } from 'react';
5
+ import { type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
6
+ import { type SerializedStyles } from '@emotion/react';
6
7
  import { type Space } from '../xcss/style-maps.partial';
7
8
  import type { BasePrimitiveProps } from './types';
8
9
  export type FlexProps<T extends ElementType = 'div'> = {
@@ -56,28 +57,28 @@ type JustifyContent = keyof typeof justifyContentMap;
56
57
  type Direction = keyof typeof flexDirectionMap;
57
58
  type Wrap = keyof typeof flexWrapMap;
58
59
  declare const justifyContentMap: {
59
- readonly start: import("@emotion/react").SerializedStyles;
60
- readonly center: import("@emotion/react").SerializedStyles;
61
- readonly end: import("@emotion/react").SerializedStyles;
62
- readonly 'space-between': import("@emotion/react").SerializedStyles;
63
- readonly 'space-around': import("@emotion/react").SerializedStyles;
64
- readonly 'space-evenly': import("@emotion/react").SerializedStyles;
65
- readonly stretch: import("@emotion/react").SerializedStyles;
60
+ readonly start: SerializedStyles;
61
+ readonly center: SerializedStyles;
62
+ readonly end: SerializedStyles;
63
+ readonly 'space-between': SerializedStyles;
64
+ readonly 'space-around': SerializedStyles;
65
+ readonly 'space-evenly': SerializedStyles;
66
+ readonly stretch: SerializedStyles;
66
67
  };
67
68
  declare const flexDirectionMap: {
68
- readonly column: import("@emotion/react").SerializedStyles;
69
- readonly row: import("@emotion/react").SerializedStyles;
69
+ readonly column: SerializedStyles;
70
+ readonly row: SerializedStyles;
70
71
  };
71
72
  declare const flexWrapMap: {
72
- readonly wrap: import("@emotion/react").SerializedStyles;
73
- readonly nowrap: import("@emotion/react").SerializedStyles;
73
+ readonly wrap: SerializedStyles;
74
+ readonly nowrap: SerializedStyles;
74
75
  };
75
76
  declare const alignItemsMap: {
76
- readonly start: import("@emotion/react").SerializedStyles;
77
- readonly center: import("@emotion/react").SerializedStyles;
78
- readonly baseline: import("@emotion/react").SerializedStyles;
79
- readonly end: import("@emotion/react").SerializedStyles;
80
- readonly stretch: import("@emotion/react").SerializedStyles;
77
+ readonly start: SerializedStyles;
78
+ readonly center: SerializedStyles;
79
+ readonly baseline: SerializedStyles;
80
+ readonly end: SerializedStyles;
81
+ readonly stretch: SerializedStyles;
81
82
  };
82
83
  /**
83
84
  * __Flex__
@@ -100,5 +101,5 @@ declare const alignItemsMap: {
100
101
  * )
101
102
  * ```
102
103
  */
103
- declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
104
+ declare const Flex: MemoExoticComponent<ForwardRefExoticComponent<Omit<FlexProps<ElementType>, 'ref'> & RefAttributes<any>>>;
104
105
  export default Flex;