@atlaskit/ds-explorations 2.0.9 → 2.0.11

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,17 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 2.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a02eed2974e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a02eed2974e) - Move codegen into @atlassian scope to publish it to private registry
8
+
9
+ ## 2.0.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9fb52345e8d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9fb52345e8d) - Update some examples to use Inline and Stack from `@atlaskit/primitives`.
14
+
3
15
  ## 2.0.9
4
16
 
5
17
  ### Patch Changes
@@ -12,6 +12,15 @@ var _react2 = require("@emotion/react");
12
12
  var _constants = require("../constants");
13
13
  var _surfaceProvider = require("./surface-provider");
14
14
  var _excluded = ["children", "as", "className", "display", "flexDirection", "alignItems", "justifyContent", "backgroundColor", "borderColor", "borderStyle", "borderWidth", "borderRadius", "shadow", "layer", "padding", "paddingBlock", "paddingInline", "position", "height", "overflow", "width", "UNSAFE_style", "testId"];
15
+ /** @jsx jsx */
16
+ /**
17
+ * @private
18
+ * @deprecated DSP-8009: This type is scheduled for deletion.
19
+ * Please use `Box` from `@atlaskit/primitives` instead.
20
+ */
21
+
22
+ // Without this type annotation on Box we don't get autocomplete for props due to forwardRef types
23
+
15
24
  /**
16
25
  * __Box__
17
26
  *
@@ -273,7 +282,6 @@ var heightMap = {
273
282
  /**
274
283
  * @codegenEnd
275
284
  */
276
-
277
285
  /**
278
286
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
279
287
  * @codegen <<SignedSource::0ba10ee53636df14b0db65fa1adbc94c>>
@@ -417,7 +425,6 @@ var paddingInlineMap = {
417
425
  /**
418
426
  * @codegenEnd
419
427
  */
420
-
421
428
  /**
422
429
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
423
430
  * @codegen <<SignedSource::514663609a5a48a284de40c5c4ad200b>>
@@ -567,7 +574,6 @@ var shadowMap = {
567
574
  /**
568
575
  * @codegenEnd
569
576
  */
570
-
571
577
  /**
572
578
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
573
579
  * @codegen <<SignedSource::bacbea271b30ec7d2f61306c9a8a9e63>>
@@ -8,6 +8,12 @@ var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
9
  /** @jsx jsx */
10
10
 
11
+ /**
12
+ * @private
13
+ * @deprecated DSP-8009: This type is scheduled for deletion.
14
+ * Please use `Inline` from `@atlaskit/primitives` instead.
15
+ */
16
+
11
17
  var flexAlignItemsMap = {
12
18
  center: (0, _react2.css)({
13
19
  alignItems: 'center'
@@ -8,6 +8,12 @@ var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
9
  /** @jsx jsx */
10
10
 
11
+ /**
12
+ * @private
13
+ * @deprecated DSP-8009: This type is scheduled for deletion.
14
+ * Please use `Stack` from `@atlaskit/primitives` instead.
15
+ */
16
+
11
17
  var flexAlignItemsMap = {
12
18
  center: (0, _react2.css)({
13
19
  alignItems: 'center'
@@ -12,6 +12,7 @@ var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
12
12
  var _colorMap = _interopRequireDefault(require("../internal/color-map"));
13
13
  var _surfaceProvider = require("./surface-provider");
14
14
  var _excluded = ["children"];
15
+ /** @jsx jsx */
15
16
  var asAllowlist = ['span', 'div', 'p', 'strong'];
16
17
  var textAlignMap = {
17
18
  center: (0, _react2.css)({
@@ -206,7 +207,6 @@ var lineHeightMap = {
206
207
  /**
207
208
  * @codegenEnd
208
209
  */
209
-
210
210
  /**
211
211
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
212
212
  * @codegen <<SignedSource::3780858df77f5fe0c6e0f39a4c989741>>
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "sideEffects": false
5
5
  }
@@ -4,6 +4,15 @@ import { forwardRef } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { LAYERS } from '../constants';
6
6
  import { SurfaceContext } from './surface-provider';
7
+
8
+ /**
9
+ * @private
10
+ * @deprecated DSP-8009: This type is scheduled for deletion.
11
+ * Please use `Box` from `@atlaskit/primitives` instead.
12
+ */
13
+
14
+ // Without this type annotation on Box we don't get autocomplete for props due to forwardRef types
15
+
7
16
  /**
8
17
  * __Box__
9
18
  *
@@ -265,7 +274,6 @@ const heightMap = {
265
274
  /**
266
275
  * @codegenEnd
267
276
  */
268
-
269
277
  /**
270
278
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
271
279
  * @codegen <<SignedSource::0ba10ee53636df14b0db65fa1adbc94c>>
@@ -409,7 +417,6 @@ const paddingInlineMap = {
409
417
  /**
410
418
  * @codegenEnd
411
419
  */
412
-
413
420
  /**
414
421
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
415
422
  * @codegen <<SignedSource::514663609a5a48a284de40c5c4ad200b>>
@@ -559,7 +566,6 @@ const shadowMap = {
559
566
  /**
560
567
  * @codegenEnd
561
568
  */
562
-
563
569
  /**
564
570
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
565
571
  * @codegen <<SignedSource::bacbea271b30ec7d2f61306c9a8a9e63>>
@@ -1,6 +1,13 @@
1
1
  /** @jsx jsx */
2
2
  import { Children, forwardRef, Fragment, memo } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ /**
6
+ * @private
7
+ * @deprecated DSP-8009: This type is scheduled for deletion.
8
+ * Please use `Inline` from `@atlaskit/primitives` instead.
9
+ */
10
+
4
11
  const flexAlignItemsMap = {
5
12
  center: css({
6
13
  alignItems: 'center'
@@ -1,6 +1,13 @@
1
1
  /** @jsx jsx */
2
2
  import { forwardRef, memo } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ /**
6
+ * @private
7
+ * @deprecated DSP-8009: This type is scheduled for deletion.
8
+ * Please use `Stack` from `@atlaskit/primitives` instead.
9
+ */
10
+
4
11
  const flexAlignItemsMap = {
5
12
  center: css({
6
13
  alignItems: 'center'
@@ -197,7 +197,6 @@ const lineHeightMap = {
197
197
  /**
198
198
  * @codegenEnd
199
199
  */
200
-
201
200
  /**
202
201
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
203
202
  * @codegen <<SignedSource::3780858df77f5fe0c6e0f39a4c989741>>
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "sideEffects": false
5
5
  }
@@ -6,6 +6,15 @@ import { forwardRef } from 'react';
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { LAYERS } from '../constants';
8
8
  import { SurfaceContext } from './surface-provider';
9
+
10
+ /**
11
+ * @private
12
+ * @deprecated DSP-8009: This type is scheduled for deletion.
13
+ * Please use `Box` from `@atlaskit/primitives` instead.
14
+ */
15
+
16
+ // Without this type annotation on Box we don't get autocomplete for props due to forwardRef types
17
+
9
18
  /**
10
19
  * __Box__
11
20
  *
@@ -268,7 +277,6 @@ var heightMap = {
268
277
  /**
269
278
  * @codegenEnd
270
279
  */
271
-
272
280
  /**
273
281
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
274
282
  * @codegen <<SignedSource::0ba10ee53636df14b0db65fa1adbc94c>>
@@ -412,7 +420,6 @@ var paddingInlineMap = {
412
420
  /**
413
421
  * @codegenEnd
414
422
  */
415
-
416
423
  /**
417
424
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
418
425
  * @codegen <<SignedSource::514663609a5a48a284de40c5c4ad200b>>
@@ -562,7 +569,6 @@ var shadowMap = {
562
569
  /**
563
570
  * @codegenEnd
564
571
  */
565
-
566
572
  /**
567
573
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
568
574
  * @codegen <<SignedSource::bacbea271b30ec7d2f61306c9a8a9e63>>
@@ -1,6 +1,13 @@
1
1
  /** @jsx jsx */
2
2
  import { Children, forwardRef, Fragment, memo } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ /**
6
+ * @private
7
+ * @deprecated DSP-8009: This type is scheduled for deletion.
8
+ * Please use `Inline` from `@atlaskit/primitives` instead.
9
+ */
10
+
4
11
  var flexAlignItemsMap = {
5
12
  center: css({
6
13
  alignItems: 'center'
@@ -1,6 +1,13 @@
1
1
  /** @jsx jsx */
2
2
  import { forwardRef, memo } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ /**
6
+ * @private
7
+ * @deprecated DSP-8009: This type is scheduled for deletion.
8
+ * Please use `Stack` from `@atlaskit/primitives` instead.
9
+ */
10
+
4
11
  var flexAlignItemsMap = {
5
12
  center: css({
6
13
  alignItems: 'center'
@@ -200,7 +200,6 @@ var lineHeightMap = {
200
200
  /**
201
201
  * @codegenEnd
202
202
  */
203
-
204
203
  /**
205
204
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
206
205
  * @codegen <<SignedSource::3780858df77f5fe0c6e0f39a4c989741>>
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,13 +1,10 @@
1
1
  import React from 'react';
2
2
 
3
3
  import Heading from '@atlaskit/heading';
4
+ import Inline from '@atlaskit/primitives/inline';
5
+ import Stack from '@atlaskit/primitives/stack';
4
6
 
5
- import {
6
- UNSAFE_Box as Box,
7
- UNSAFE_Inline as Inline,
8
- UNSAFE_Stack as Stack,
9
- UNSAFE_Text as Text,
10
- } from '../src';
7
+ import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '../src';
11
8
  import { spacingScale } from '../src/internal/spacing-scale';
12
9
 
13
10
  /**
@@ -15,10 +12,10 @@ import { spacingScale } from '../src/internal/spacing-scale';
15
12
  */
16
13
  export default () => {
17
14
  return (
18
- <Stack gap="space.400" alignItems="flexStart">
19
- <Stack gap="space.200" testId="box-with-background-and-paddingBlock">
15
+ <Stack space="400" alignInline="start">
16
+ <Stack space="200" testId="box-with-background-and-paddingBlock">
20
17
  <Heading level="h600">paddingBlock</Heading>
21
- <Inline gap="space.200" alignItems="center">
18
+ <Inline space="200" alignBlock="center">
22
19
  {spacingScale.map((space) => (
23
20
  <Box
24
21
  key={space}
@@ -33,9 +30,9 @@ export default () => {
33
30
  </Inline>
34
31
  </Stack>
35
32
 
36
- <Stack gap="space.200" testId="box-with-background-and-paddingInline">
33
+ <Stack space="200" testId="box-with-background-and-paddingInline">
37
34
  <Heading level="h600">paddingInline</Heading>
38
- <Stack gap="space.200" alignItems="center">
35
+ <Stack space="200" alignInline="center">
39
36
  {spacingScale.map((space) => (
40
37
  <Box
41
38
  key={space}
@@ -50,9 +47,9 @@ export default () => {
50
47
  </Stack>
51
48
  </Stack>
52
49
 
53
- <Stack gap="space.200" testId="box-with-background-and-padding">
50
+ <Stack space="200" testId="box-with-background-and-padding">
54
51
  <Heading level="h600">padding</Heading>
55
- <Inline gap="space.200" alignItems="center">
52
+ <Inline space="200" alignBlock="center">
56
53
  {spacingScale.map((space) => (
57
54
  <Box key={space} backgroundColor="discovery.bold" padding={space}>
58
55
  <Box backgroundColor="elevation.surface" justifyContent="center">
@@ -63,9 +60,9 @@ export default () => {
63
60
  </Inline>
64
61
  </Stack>
65
62
 
66
- <Stack gap="space.200" testId="box-with-backgroundColor">
63
+ <Stack space="200" testId="box-with-backgroundColor">
67
64
  <Heading level="h600">backgroundColor</Heading>
68
- <Inline gap="space.200" alignItems="center">
65
+ <Inline space="200" alignBlock="center">
69
66
  {(
70
67
  [
71
68
  'discovery.bold',
@@ -85,9 +82,9 @@ export default () => {
85
82
  </Inline>
86
83
  </Stack>
87
84
 
88
- <Stack gap="space.200" testId="box-with-borderColor">
85
+ <Stack space="200" testId="box-with-borderColor">
89
86
  <Heading level="h600">borderColor</Heading>
90
- <Inline gap="space.200" alignItems="center">
87
+ <Inline space="200" alignBlock="center">
91
88
  {(
92
89
  [
93
90
  'discovery',
@@ -114,9 +111,9 @@ export default () => {
114
111
  </Inline>
115
112
  </Stack>
116
113
 
117
- <Stack gap="space.200" testId="box-with-shadow">
114
+ <Stack space="200" testId="box-with-shadow">
118
115
  <Heading level="h600">shadow</Heading>
119
- <Inline gap="space.200" alignItems="center">
116
+ <Inline space="200" alignBlock="center">
120
117
  {(['raised', 'overflow', 'overlay'] as const).map((shadow) => (
121
118
  <Box
122
119
  key={shadow}
@@ -132,7 +129,7 @@ export default () => {
132
129
  </Inline>
133
130
  </Stack>
134
131
 
135
- <Stack gap="space.200" testId="box-with-layer">
132
+ <Stack space="200" testId="box-with-layer">
136
133
  <Heading level="h600">layer</Heading>
137
134
  <Box alignItems="center" UNSAFE_style={{ width: 800, height: 650 }}>
138
135
  {(
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
2
 
3
+ import Inline from '@atlaskit/primitives/inline';
4
+
3
5
  import Box from '../src/components/box.partial';
4
- import Inline from '../src/components/inline.partial';
5
6
  import Text from '../src/components/text.partial';
6
7
 
7
8
  export default () => {
8
9
  return (
9
- <Inline gap="space.100">
10
+ <Inline space="100">
10
11
  <Box
11
12
  paddingBlock="space.400"
12
13
  paddingInline="space.400"
@@ -1,24 +1,21 @@
1
1
  import React from 'react';
2
2
 
3
3
  import Heading from '@atlaskit/heading';
4
+ import Inline from '@atlaskit/primitives/inline';
5
+ import Stack from '@atlaskit/primitives/stack';
4
6
 
5
- import {
6
- UNSAFE_Box as Box,
7
- UNSAFE_Inline as Inline,
8
- UNSAFE_Stack as Stack,
9
- UNSAFE_Text as Text,
10
- } from '../src';
7
+ import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '../src';
11
8
 
12
9
  export default () => {
13
10
  return (
14
- <Stack gap="space.300">
11
+ <Stack space="300">
15
12
  <Heading level="h400" as="h3">
16
13
  Text examples
17
14
  </Heading>
18
- <Stack gap="space.200">
15
+ <Stack space="200">
19
16
  <Box display="block">
20
17
  <Heading level="h300">Font size</Heading>
21
- <Inline gap="space.200" testId="font-sizes">
18
+ <Inline space="200" testId="font-sizes">
22
19
  {(
23
20
  [
24
21
  'size.050',
@@ -41,7 +38,7 @@ export default () => {
41
38
  <Heading level="h300" as="h4">
42
39
  Font weight
43
40
  </Heading>
44
- <Inline gap="space.200" testId="font-weights">
41
+ <Inline space="200" testId="font-weights">
45
42
  {(['regular', 'medium', 'semibold', 'bold'] as const).map(
46
43
  (fontWeight) => (
47
44
  <Text key={fontWeight} fontWeight={fontWeight}>
@@ -55,7 +52,7 @@ export default () => {
55
52
  <Heading level="h300" as="h4">
56
53
  Line height
57
54
  </Heading>
58
- <Inline gap="space.200" testId="line-heights" alignItems="center">
55
+ <Inline space="200" testId="line-heights" alignBlock="center">
59
56
  {(
60
57
  [
61
58
  'lineHeight.100',
@@ -80,7 +77,7 @@ export default () => {
80
77
  <Heading level="h300" as="h4">
81
78
  Testing
82
79
  </Heading>
83
- <Stack gap="space.050" testId="testing">
80
+ <Stack space="050" testId="testing">
84
81
  <Text as="p">Paragraph</Text>
85
82
  <Text as="div">A div</Text>
86
83
  <Text>
@@ -6,30 +6,30 @@ import Button from '@atlaskit/button';
6
6
  import __noop from '@atlaskit/ds-lib/noop';
7
7
  import Heading from '@atlaskit/heading';
8
8
  import InfoIcon from '@atlaskit/icon/glyph/info';
9
+ import Inline from '@atlaskit/primitives/inline';
10
+ import Stack from '@atlaskit/primitives/stack';
9
11
  import SectionMessage, {
10
12
  SectionMessageAction,
11
13
  } from '@atlaskit/section-message';
12
14
  import { token } from '@atlaskit/tokens';
13
15
 
14
16
  import { UNSAFE_Box as Box } from '../src';
15
- import Inline from '../src/components/inline.partial';
16
- import Stack from '../src/components/stack.partial';
17
17
  import Text from '../src/components/text.partial';
18
18
 
19
19
  export default () => {
20
20
  return (
21
- <Stack gap="space.100">
21
+ <Stack space="100">
22
22
  <Box
23
23
  paddingBlock="space.200"
24
24
  paddingInline="space.200"
25
25
  backgroundColor="information"
26
26
  >
27
- <Inline gap="space.200">
27
+ <Inline space="200">
28
28
  <InfoIcon
29
29
  primaryColor={token('color.icon.information')}
30
30
  label="info"
31
31
  />
32
- <Stack gap="space.100">
32
+ <Stack space="100">
33
33
  <Heading as="h1" level="h500">
34
34
  The Modern Prometheus
35
35
  </Heading>
@@ -40,7 +40,7 @@ export default () => {
40
40
  to assure my dear sister of my welfare and increasing confidence
41
41
  in the success of my undertaking.
42
42
  </Text>
43
- <Inline divider="·" gap="space.075">
43
+ <Inline separator="·" space="075">
44
44
  <Button
45
45
  appearance="link"
46
46
  spacing="none"
@@ -2,10 +2,10 @@
2
2
  import { jsx } from '@emotion/react';
3
3
 
4
4
  import Lozenge from '@atlaskit/lozenge';
5
+ import Inline from '@atlaskit/primitives/inline';
6
+ import Stack from '@atlaskit/primitives/stack';
5
7
 
6
8
  import { UNSAFE_Box as Box } from '../src';
7
- import Inline from '../src/components/inline.partial';
8
- import Stack from '../src/components/stack.partial';
9
9
  import Text from '../src/components/text.partial';
10
10
 
11
11
  const Author = ({ children }: any) => {
@@ -27,8 +27,8 @@ const CommentAction = ({ children }: any) => {
27
27
  export default () => {
28
28
  return (
29
29
  <Box>
30
- <Stack gap="space.050">
31
- <Inline gap="space.100" alignItems="center">
30
+ <Stack space="050">
31
+ <Inline space="100" alignBlock="center">
32
32
  <Author>Jane Citizen</Author>
33
33
  <Lozenge>Author</Lozenge>
34
34
  <Date>Jun 15, 2022</Date>
@@ -41,7 +41,7 @@ export default () => {
41
41
  aliquip ex ea commodo consequat.
42
42
  </Text>
43
43
  <Box color="subtle">
44
- <Inline gap="space.100" divider="·">
44
+ <Inline space="100" separator="·">
45
45
  <CommentAction>Reply</CommentAction>
46
46
  <CommentAction>Edit</CommentAction>
47
47
  <CommentAction>Like</CommentAction>
@@ -2,16 +2,13 @@
2
2
  import { jsx } from '@emotion/react';
3
3
 
4
4
  import Lozenge from '@atlaskit/lozenge';
5
+ import Inline from '@atlaskit/primitives/inline';
5
6
 
6
- import {
7
- UNSAFE_Box as Box,
8
- UNSAFE_Inline as Inline,
9
- UNSAFE_Text as Text,
10
- } from '../src';
7
+ import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '../src';
11
8
 
12
9
  export default () => {
13
10
  return (
14
- <Inline gap="space.200">
11
+ <Inline space="200">
15
12
  <Lozenge>Default</Lozenge>
16
13
  <Box
17
14
  backgroundColor="neutral"
@@ -8,14 +8,14 @@ import { Code } from '@atlaskit/code';
8
8
  import FocusRing from '@atlaskit/focus-ring';
9
9
  import Heading from '@atlaskit/heading';
10
10
  import WarningIcon from '@atlaskit/icon/glyph/warning';
11
+ import Inline from '@atlaskit/primitives/inline';
12
+ import Stack from '@atlaskit/primitives/stack';
11
13
  import Textfield from '@atlaskit/textfield';
12
14
  import { token } from '@atlaskit/tokens';
13
15
 
14
16
  import {
15
17
  UNSAFE_Box as Box,
16
- UNSAFE_Inline as Inline,
17
18
  UNSAFE_InteractionSurface as InteractionSurface,
18
- UNSAFE_Stack as Stack,
19
19
  UNSAFE_Text as Text,
20
20
  } from '../src';
21
21
 
@@ -36,9 +36,9 @@ const fieldsetStyles = css({
36
36
  export default () => {
37
37
  return (
38
38
  <Box width="size.500" padding="space.100" testId="all">
39
- <Stack gap="space.200">
39
+ <Stack space="200">
40
40
  <Heading level="h400">Current ADS Buttons</Heading>
41
- <Inline gap="space.200">
41
+ <Inline space="200">
42
42
  <Button appearance="primary">brand.bold</Button>
43
43
  <Button appearance="default">neutral</Button>
44
44
  <Button appearance="warning">warning.bold</Button>
@@ -46,7 +46,7 @@ export default () => {
46
46
  <Heading level="h400">
47
47
  Buttons with <Code>InteractionSurface</Code>
48
48
  </Heading>
49
- <Inline gap="space.200" testId="buttons">
49
+ <Inline space="200" testId="buttons">
50
50
  {(['brand.bold', 'neutral', 'warning.bold'] as const).map((app) => (
51
51
  <FocusRing key={app}>
52
52
  <Box
@@ -74,7 +74,7 @@ export default () => {
74
74
  <Heading level="h400">
75
75
  Icon Buttons with <Code>InteractionSurface</Code>
76
76
  </Heading>
77
- <Inline gap="space.200" testId="icon-buttons">
77
+ <Inline space="200" testId="icon-buttons">
78
78
  <FocusRing>
79
79
  <Box
80
80
  as="button"
@@ -129,7 +129,7 @@ export default () => {
129
129
  <Heading level="h400">
130
130
  Progress Indicator with <Code>InteractionSurface</Code>
131
131
  </Heading>
132
- <Inline gap="space.200" testId="progress-indicators">
132
+ <Inline space="200" testId="progress-indicators">
133
133
  {(['brand.bold', 'neutral', 'warning.bold'] as const).map((app) => (
134
134
  <FocusRing>
135
135
  <Box
@@ -149,7 +149,7 @@ export default () => {
149
149
  ))}
150
150
  </Inline>
151
151
  <Heading level="h400">Textfield / input spikes</Heading>
152
- <Inline gap="space.200">
152
+ <Inline space="200">
153
153
  <Textfield />
154
154
  <Box
155
155
  as="fieldset"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "description": "An experimental package for exploration and validation of spacing / typography foundations.",
5
5
  "license": "Apache-2.0",
6
6
  "atlassian": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
15
15
  "scripts": {
16
- "ak-postbuild": "cd ../../../ && yarn build @af/codegen && yarn build @atlaskit/tokens && cd packages/design-system/ds-explorations && yarn codegen-styles",
16
+ "ak-postbuild": "cd ../../../ && yarn build @atlassian/codegen -d cjs,esm,es2019 && yarn build @atlaskit/tokens && cd packages/design-system/ds-explorations && yarn codegen-styles",
17
17
  "codegen-styles": "ts-node --project ../../../tsconfig.node.json ./scripts/codegen-styles",
18
18
  "prepare": "yarn ak-postbuild"
19
19
  },
@@ -47,7 +47,6 @@
47
47
  "react": "^16.8.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@af/codegen": "*",
51
50
  "@atlaskit/badge": "*",
52
51
  "@atlaskit/button": "*",
53
52
  "@atlaskit/code": "*",
@@ -57,12 +56,14 @@
57
56
  "@atlaskit/heading": "*",
58
57
  "@atlaskit/icon": "*",
59
58
  "@atlaskit/lozenge": "*",
59
+ "@atlaskit/primitives": "^0.7.0",
60
60
  "@atlaskit/section-message": "*",
61
61
  "@atlaskit/ssr": "*",
62
62
  "@atlaskit/textfield": "*",
63
63
  "@atlaskit/visual-regression": "*",
64
64
  "@atlaskit/webdriver-runner": "*",
65
65
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
66
+ "@atlassian/codegen": "^0.0.1",
66
67
  "@testing-library/react": "^12.1.5",
67
68
  "fs-extra": "^4.0.2",
68
69
  "prettier": "^2.7.0",
@@ -2,7 +2,10 @@
2
2
  import { writeFile } from 'fs/promises';
3
3
  import { join } from 'path';
4
4
 
5
- import { createPartialSignedArtifact, createSignedArtifact } from '@af/codegen';
5
+ import {
6
+ createPartialSignedArtifact,
7
+ createSignedArtifact,
8
+ } from '@atlassian/codegen';
6
9
 
7
10
  import { createColorStylesFromTemplate } from './color-codegen-template';
8
11
  import { createColorMapTemplate } from './color-map-template';