@atlaskit/ds-explorations 3.5.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +371 -143
- package/dist/cjs/components/interaction-surface.partial.js +2 -2
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/internal/color-map.js +2 -2
- package/dist/es2019/components/interaction-surface.partial.js +2 -2
- package/dist/es2019/index.js +0 -1
- package/dist/es2019/internal/color-map.js +2 -2
- package/dist/esm/components/interaction-surface.partial.js +2 -2
- package/dist/esm/index.js +0 -1
- package/dist/esm/internal/color-map.js +2 -2
- package/dist/types/components/interaction-surface.partial.d.ts +2 -2
- package/dist/types/index.d.ts +0 -2
- package/dist/types/internal/color-map.d.ts +2 -2
- package/dist/types-ts4.5/components/interaction-surface.partial.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/internal/color-map.d.ts +2 -2
- package/examples/99-interactions.tsx +3 -6
- package/package.json +8 -9
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +540 -754
- package/scripts/codegen-styles.tsx +3 -65
- package/scripts/color-codegen-template.tsx +4 -11
- package/scripts/color-map-template.tsx +3 -10
- package/scripts/dimension-codegen-template.tsx +3 -9
- package/scripts/interaction-codegen.tsx +3 -11
- package/scripts/misc-codegen-template.tsx +4 -10
- package/src/components/__tests__/unit/interaction-suface.test.tsx +1 -2
- package/src/components/interaction-surface.partial.tsx +382 -596
- package/src/index.tsx +0 -2
- package/src/internal/color-map.tsx +29 -29
- package/tsconfig.app.json +3 -0
- package/tsconfig.dev.json +1 -10
- package/dist/cjs/components/text.partial.js +0 -280
- package/dist/cjs/internal/spacing-scale.js +0 -15
- package/dist/es2019/components/text.partial.js +0 -271
- package/dist/es2019/internal/spacing-scale.js +0 -9
- package/dist/esm/components/text.partial.js +0 -274
- package/dist/esm/internal/spacing-scale.js +0 -9
- package/dist/types/components/text.partial.d.ts +0 -157
- package/dist/types/internal/spacing-scale.d.ts +0 -9
- package/dist/types-ts4.5/components/text.partial.d.ts +0 -162
- package/dist/types-ts4.5/internal/spacing-scale.d.ts +0 -24
- package/examples/02-text-advanced.tsx +0 -30
- package/examples/02-text.tsx +0 -110
- package/examples/06-section-message.tsx +0 -82
- package/examples/07-comment.tsx +0 -51
- package/examples/08-lozenge.tsx +0 -34
- package/scripts/spacing-codegen-template.tsx +0 -74
- package/scripts/spacing-scale-template.tsx +0 -31
- package/scripts/typography-codegen-template.tsx +0 -80
- package/src/components/__tests__/unit/text.test.tsx +0 -64
- package/src/components/__tests__/vr-tests/__snapshots__/text-snapshot-test/text--default.png +0 -0
- package/src/components/__tests__/vr-tests/text-snapshot-test.vr.tsx +0 -6
- package/src/components/text.partial.tsx +0 -375
- package/src/internal/spacing-scale.tsx +0 -24
- package/text/package.json +0 -15
|
@@ -53,11 +53,11 @@ var InteractionSurface = function InteractionSurface(_ref) {
|
|
|
53
53
|
var _default = exports.default = InteractionSurface;
|
|
54
54
|
/**
|
|
55
55
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
56
|
-
* @codegen <<SignedSource::
|
|
56
|
+
* @codegen <<SignedSource::700f09143685cc887dba88cc11533b9c>>
|
|
57
57
|
* @codegenId interactions
|
|
58
58
|
* @codegenCommand yarn codegen-styles
|
|
59
59
|
* @codegenParams ["background"]
|
|
60
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
60
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
61
61
|
*/
|
|
62
62
|
var backgroundActiveColorMap = {
|
|
63
63
|
'accent.lime.subtlest': (0, _react2.css)({
|
package/dist/cjs/index.js
CHANGED
|
@@ -10,11 +10,4 @@ Object.defineProperty(exports, "UNSAFE_InteractionSurface", {
|
|
|
10
10
|
return _interactionSurface.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
Object.defineProperty(exports, "UNSAFE_Text", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _text.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _text = _interopRequireDefault(require("./components/text.partial"));
|
|
20
13
|
var _interactionSurface = _interopRequireDefault(require("./components/interaction-surface.partial"));
|
|
@@ -9,9 +9,9 @@ exports.default = void 0;
|
|
|
9
9
|
*
|
|
10
10
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
11
11
|
*
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
|
|
13
13
|
* @codegenCommand yarn codegen-styles
|
|
14
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
14
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
15
15
|
*/
|
|
16
16
|
var _default = exports.default = {
|
|
17
17
|
'neutral.bold': 'inverse',
|
|
@@ -48,11 +48,11 @@ export default InteractionSurface;
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
51
|
-
* @codegen <<SignedSource::
|
|
51
|
+
* @codegen <<SignedSource::700f09143685cc887dba88cc11533b9c>>
|
|
52
52
|
* @codegenId interactions
|
|
53
53
|
* @codegenCommand yarn codegen-styles
|
|
54
54
|
* @codegenParams ["background"]
|
|
55
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
55
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
56
56
|
*/
|
|
57
57
|
const backgroundActiveColorMap = {
|
|
58
58
|
'accent.lime.subtlest': css({
|
package/dist/es2019/index.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|
|
@@ -47,11 +47,11 @@ export default InteractionSurface;
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
50
|
-
* @codegen <<SignedSource::
|
|
50
|
+
* @codegen <<SignedSource::700f09143685cc887dba88cc11533b9c>>
|
|
51
51
|
* @codegenId interactions
|
|
52
52
|
* @codegenCommand yarn codegen-styles
|
|
53
53
|
* @codegenParams ["background"]
|
|
54
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
54
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
55
55
|
*/
|
|
56
56
|
var backgroundActiveColorMap = {
|
|
57
57
|
'accent.lime.subtlest': css({
|
package/dist/esm/index.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { BasePrimitiveProps } from './types';
|
|
4
|
+
import { type BasePrimitiveProps } from './types';
|
|
5
5
|
interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
appearance?: InteractionBackgroundColor;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: {
|
|
11
11
|
readonly 'neutral.bold': "inverse";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { BasePrimitiveProps } from './types';
|
|
4
|
+
import { type BasePrimitiveProps } from './types';
|
|
5
5
|
interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
appearance?: InteractionBackgroundColor;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: {
|
|
11
11
|
readonly 'neutral.bold': "inverse";
|
|
@@ -8,13 +8,12 @@ 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 { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
|
|
11
|
+
import { Box, Inline, Stack, Text, xcss } from '@atlaskit/primitives';
|
|
12
12
|
import Textfield from '@atlaskit/textfield';
|
|
13
13
|
import { token } from '@atlaskit/tokens';
|
|
14
14
|
|
|
15
15
|
import {
|
|
16
16
|
UNSAFE_InteractionSurface as InteractionSurface,
|
|
17
|
-
UNSAFE_Text as Text,
|
|
18
17
|
} from '../src';
|
|
19
18
|
|
|
20
19
|
const fieldsetStyles = xcss({
|
|
@@ -74,10 +73,8 @@ export default () => {
|
|
|
74
73
|
>
|
|
75
74
|
<InteractionSurface>
|
|
76
75
|
<Text
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
lineHeight="lineHeight.500"
|
|
80
|
-
fontWeight="medium"
|
|
76
|
+
align="center"
|
|
77
|
+
weight="medium"
|
|
81
78
|
>
|
|
82
79
|
{app}
|
|
83
80
|
</Text>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ds-explorations",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "An experimental package for exploration and validation of spacing / typography foundations.",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "DEPRECATED. Use @atlaskit/primitives. An experimental package for exploration and validation of spacing / typography foundations.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
"prepare": "yarn ak-postbuild"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/tokens": "^1.
|
|
29
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
|
-
"@emotion/react": "^11.7.1"
|
|
32
|
-
"tiny-invariant": "^1.2.0"
|
|
31
|
+
"@emotion/react": "^11.7.1"
|
|
33
32
|
},
|
|
34
33
|
"peerDependencies": {
|
|
35
34
|
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
37
|
+
"@af/formatting": "*",
|
|
38
38
|
"@atlaskit/ds-lib": "*",
|
|
39
|
-
"@atlaskit/primitives": "^
|
|
39
|
+
"@atlaskit/primitives": "^6.3.0",
|
|
40
|
+
"@atlaskit/textfield": "^6.3.0",
|
|
40
41
|
"@atlaskit/visual-regression": "*",
|
|
41
42
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
42
43
|
"@atlassian/codegen": "^0.1.0",
|
|
43
44
|
"@testing-library/react": "^12.1.5",
|
|
44
45
|
"fs-extra": "^4.0.2",
|
|
45
|
-
"prettier": "^2.8.0",
|
|
46
46
|
"react-dom": "^16.8.0",
|
|
47
47
|
"ts-node": "^10.9.1",
|
|
48
48
|
"typescript": "~5.4.2",
|
|
@@ -74,8 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"af:exports": {
|
|
77
|
-
".": "./src/index.tsx"
|
|
78
|
-
"./text": "./src/components/text.partial.tsx"
|
|
77
|
+
".": "./src/index.tsx"
|
|
79
78
|
},
|
|
80
79
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
81
80
|
"homepage": "https://atlaskit.atlassian.com"
|