@atlaskit/ds-explorations 2.0.10 → 2.0.12
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 +12 -0
- package/dist/cjs/components/box.partial.js +9 -3
- package/dist/cjs/components/inline.partial.js +6 -0
- package/dist/cjs/components/stack.partial.js +6 -0
- package/dist/cjs/components/text.partial.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +9 -3
- package/dist/es2019/components/inline.partial.js +7 -0
- package/dist/es2019/components/stack.partial.js +7 -0
- package/dist/es2019/components/text.partial.js +0 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +9 -3
- package/dist/esm/components/inline.partial.js +7 -0
- package/dist/esm/components/stack.partial.js +7 -0
- package/dist/esm/components/text.partial.js +0 -1
- package/dist/esm/version.json +1 -1
- package/examples/01-box.tsx +14 -14
- package/examples/02-text-advanced.tsx +1 -1
- package/examples/02-text.tsx +6 -6
- package/examples/06-section-message.tsx +4 -4
- package/examples/07-comment.tsx +3 -3
- package/examples/08-lozenge.tsx +1 -1
- package/examples/99-interactions.tsx +6 -6
- package/package.json +4 -4
- package/scripts/codegen-styles.tsx +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/ds-explorations
|
|
2
2
|
|
|
3
|
+
## 2.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
8
|
+
|
|
9
|
+
## 2.0.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a02eed2974e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a02eed2974e) - Move codegen into @atlassian scope to publish it to private registry
|
|
14
|
+
|
|
3
15
|
## 2.0.10
|
|
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>>
|
package/dist/cjs/version.json
CHANGED
|
@@ -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'
|
package/dist/es2019/version.json
CHANGED
|
@@ -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'
|
package/dist/esm/version.json
CHANGED
package/examples/01-box.tsx
CHANGED
|
@@ -12,10 +12,10 @@ import { spacingScale } from '../src/internal/spacing-scale';
|
|
|
12
12
|
*/
|
|
13
13
|
export default () => {
|
|
14
14
|
return (
|
|
15
|
-
<Stack space="400" alignInline="start">
|
|
16
|
-
<Stack space="200" testId="box-with-background-and-paddingBlock">
|
|
15
|
+
<Stack space="space.400" alignInline="start">
|
|
16
|
+
<Stack space="space.200" testId="box-with-background-and-paddingBlock">
|
|
17
17
|
<Heading level="h600">paddingBlock</Heading>
|
|
18
|
-
<Inline space="200" alignBlock="center">
|
|
18
|
+
<Inline space="space.200" alignBlock="center">
|
|
19
19
|
{spacingScale.map((space) => (
|
|
20
20
|
<Box
|
|
21
21
|
key={space}
|
|
@@ -30,9 +30,9 @@ export default () => {
|
|
|
30
30
|
</Inline>
|
|
31
31
|
</Stack>
|
|
32
32
|
|
|
33
|
-
<Stack space="200" testId="box-with-background-and-paddingInline">
|
|
33
|
+
<Stack space="space.200" testId="box-with-background-and-paddingInline">
|
|
34
34
|
<Heading level="h600">paddingInline</Heading>
|
|
35
|
-
<Stack space="200" alignInline="center">
|
|
35
|
+
<Stack space="space.200" alignInline="center">
|
|
36
36
|
{spacingScale.map((space) => (
|
|
37
37
|
<Box
|
|
38
38
|
key={space}
|
|
@@ -47,9 +47,9 @@ export default () => {
|
|
|
47
47
|
</Stack>
|
|
48
48
|
</Stack>
|
|
49
49
|
|
|
50
|
-
<Stack space="200" testId="box-with-background-and-padding">
|
|
50
|
+
<Stack space="space.200" testId="box-with-background-and-padding">
|
|
51
51
|
<Heading level="h600">padding</Heading>
|
|
52
|
-
<Inline space="200" alignBlock="center">
|
|
52
|
+
<Inline space="space.200" alignBlock="center">
|
|
53
53
|
{spacingScale.map((space) => (
|
|
54
54
|
<Box key={space} backgroundColor="discovery.bold" padding={space}>
|
|
55
55
|
<Box backgroundColor="elevation.surface" justifyContent="center">
|
|
@@ -60,9 +60,9 @@ export default () => {
|
|
|
60
60
|
</Inline>
|
|
61
61
|
</Stack>
|
|
62
62
|
|
|
63
|
-
<Stack space="200" testId="box-with-backgroundColor">
|
|
63
|
+
<Stack space="space.200" testId="box-with-backgroundColor">
|
|
64
64
|
<Heading level="h600">backgroundColor</Heading>
|
|
65
|
-
<Inline space="200" alignBlock="center">
|
|
65
|
+
<Inline space="space.200" alignBlock="center">
|
|
66
66
|
{(
|
|
67
67
|
[
|
|
68
68
|
'discovery.bold',
|
|
@@ -82,9 +82,9 @@ export default () => {
|
|
|
82
82
|
</Inline>
|
|
83
83
|
</Stack>
|
|
84
84
|
|
|
85
|
-
<Stack space="200" testId="box-with-borderColor">
|
|
85
|
+
<Stack space="space.200" testId="box-with-borderColor">
|
|
86
86
|
<Heading level="h600">borderColor</Heading>
|
|
87
|
-
<Inline space="200" alignBlock="center">
|
|
87
|
+
<Inline space="space.200" alignBlock="center">
|
|
88
88
|
{(
|
|
89
89
|
[
|
|
90
90
|
'discovery',
|
|
@@ -111,9 +111,9 @@ export default () => {
|
|
|
111
111
|
</Inline>
|
|
112
112
|
</Stack>
|
|
113
113
|
|
|
114
|
-
<Stack space="200" testId="box-with-shadow">
|
|
114
|
+
<Stack space="space.200" testId="box-with-shadow">
|
|
115
115
|
<Heading level="h600">shadow</Heading>
|
|
116
|
-
<Inline space="200" alignBlock="center">
|
|
116
|
+
<Inline space="space.200" alignBlock="center">
|
|
117
117
|
{(['raised', 'overflow', 'overlay'] as const).map((shadow) => (
|
|
118
118
|
<Box
|
|
119
119
|
key={shadow}
|
|
@@ -129,7 +129,7 @@ export default () => {
|
|
|
129
129
|
</Inline>
|
|
130
130
|
</Stack>
|
|
131
131
|
|
|
132
|
-
<Stack space="200" testId="box-with-layer">
|
|
132
|
+
<Stack space="space.200" testId="box-with-layer">
|
|
133
133
|
<Heading level="h600">layer</Heading>
|
|
134
134
|
<Box alignItems="center" UNSAFE_style={{ width: 800, height: 650 }}>
|
|
135
135
|
{(
|
package/examples/02-text.tsx
CHANGED
|
@@ -8,14 +8,14 @@ import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '../src';
|
|
|
8
8
|
|
|
9
9
|
export default () => {
|
|
10
10
|
return (
|
|
11
|
-
<Stack space="300">
|
|
11
|
+
<Stack space="space.300">
|
|
12
12
|
<Heading level="h400" as="h3">
|
|
13
13
|
Text examples
|
|
14
14
|
</Heading>
|
|
15
|
-
<Stack space="200">
|
|
15
|
+
<Stack space="space.200">
|
|
16
16
|
<Box display="block">
|
|
17
17
|
<Heading level="h300">Font size</Heading>
|
|
18
|
-
<Inline space="200" testId="font-sizes">
|
|
18
|
+
<Inline space="space.200" testId="font-sizes">
|
|
19
19
|
{(
|
|
20
20
|
[
|
|
21
21
|
'size.050',
|
|
@@ -38,7 +38,7 @@ export default () => {
|
|
|
38
38
|
<Heading level="h300" as="h4">
|
|
39
39
|
Font weight
|
|
40
40
|
</Heading>
|
|
41
|
-
<Inline space="200" testId="font-weights">
|
|
41
|
+
<Inline space="space.200" testId="font-weights">
|
|
42
42
|
{(['regular', 'medium', 'semibold', 'bold'] as const).map(
|
|
43
43
|
(fontWeight) => (
|
|
44
44
|
<Text key={fontWeight} fontWeight={fontWeight}>
|
|
@@ -52,7 +52,7 @@ export default () => {
|
|
|
52
52
|
<Heading level="h300" as="h4">
|
|
53
53
|
Line height
|
|
54
54
|
</Heading>
|
|
55
|
-
<Inline space="200" testId="line-heights" alignBlock="center">
|
|
55
|
+
<Inline space="space.200" testId="line-heights" alignBlock="center">
|
|
56
56
|
{(
|
|
57
57
|
[
|
|
58
58
|
'lineHeight.100',
|
|
@@ -77,7 +77,7 @@ export default () => {
|
|
|
77
77
|
<Heading level="h300" as="h4">
|
|
78
78
|
Testing
|
|
79
79
|
</Heading>
|
|
80
|
-
<Stack space="050" testId="testing">
|
|
80
|
+
<Stack space="space.050" testId="testing">
|
|
81
81
|
<Text as="p">Paragraph</Text>
|
|
82
82
|
<Text as="div">A div</Text>
|
|
83
83
|
<Text>
|
|
@@ -18,18 +18,18 @@ import Text from '../src/components/text.partial';
|
|
|
18
18
|
|
|
19
19
|
export default () => {
|
|
20
20
|
return (
|
|
21
|
-
<Stack space="100">
|
|
21
|
+
<Stack space="space.100">
|
|
22
22
|
<Box
|
|
23
23
|
paddingBlock="space.200"
|
|
24
24
|
paddingInline="space.200"
|
|
25
25
|
backgroundColor="information"
|
|
26
26
|
>
|
|
27
|
-
<Inline space="200">
|
|
27
|
+
<Inline space="space.200">
|
|
28
28
|
<InfoIcon
|
|
29
29
|
primaryColor={token('color.icon.information')}
|
|
30
30
|
label="info"
|
|
31
31
|
/>
|
|
32
|
-
<Stack space="100">
|
|
32
|
+
<Stack space="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 separator="·" space="075">
|
|
43
|
+
<Inline separator="·" space="space.075">
|
|
44
44
|
<Button
|
|
45
45
|
appearance="link"
|
|
46
46
|
spacing="none"
|
package/examples/07-comment.tsx
CHANGED
|
@@ -27,8 +27,8 @@ const CommentAction = ({ children }: any) => {
|
|
|
27
27
|
export default () => {
|
|
28
28
|
return (
|
|
29
29
|
<Box>
|
|
30
|
-
<Stack space="050">
|
|
31
|
-
<Inline space="100" alignBlock="center">
|
|
30
|
+
<Stack space="space.050">
|
|
31
|
+
<Inline space="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 space="100" separator="·">
|
|
44
|
+
<Inline space="space.100" separator="·">
|
|
45
45
|
<CommentAction>Reply</CommentAction>
|
|
46
46
|
<CommentAction>Edit</CommentAction>
|
|
47
47
|
<CommentAction>Like</CommentAction>
|
package/examples/08-lozenge.tsx
CHANGED
|
@@ -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 space="200">
|
|
39
|
+
<Stack space="space.200">
|
|
40
40
|
<Heading level="h400">Current ADS Buttons</Heading>
|
|
41
|
-
<Inline space="200">
|
|
41
|
+
<Inline space="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 space="200" testId="buttons">
|
|
49
|
+
<Inline space="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 space="200" testId="icon-buttons">
|
|
77
|
+
<Inline space="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 space="200" testId="progress-indicators">
|
|
132
|
+
<Inline space="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 space="200">
|
|
152
|
+
<Inline space="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.
|
|
3
|
+
"version": "2.0.12",
|
|
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 @
|
|
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,13 +56,14 @@
|
|
|
57
56
|
"@atlaskit/heading": "*",
|
|
58
57
|
"@atlaskit/icon": "*",
|
|
59
58
|
"@atlaskit/lozenge": "*",
|
|
60
|
-
"@atlaskit/primitives": "^0.
|
|
59
|
+
"@atlaskit/primitives": "^0.8.0",
|
|
61
60
|
"@atlaskit/section-message": "*",
|
|
62
61
|
"@atlaskit/ssr": "*",
|
|
63
62
|
"@atlaskit/textfield": "*",
|
|
64
63
|
"@atlaskit/visual-regression": "*",
|
|
65
64
|
"@atlaskit/webdriver-runner": "*",
|
|
66
65
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
66
|
+
"@atlassian/codegen": "^0.0.1",
|
|
67
67
|
"@testing-library/react": "^12.1.5",
|
|
68
68
|
"fs-extra": "^4.0.2",
|
|
69
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 {
|
|
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';
|