@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.
Files changed (55) hide show
  1. package/CHANGELOG.md +371 -143
  2. package/dist/cjs/components/interaction-surface.partial.js +2 -2
  3. package/dist/cjs/index.js +0 -7
  4. package/dist/cjs/internal/color-map.js +2 -2
  5. package/dist/es2019/components/interaction-surface.partial.js +2 -2
  6. package/dist/es2019/index.js +0 -1
  7. package/dist/es2019/internal/color-map.js +2 -2
  8. package/dist/esm/components/interaction-surface.partial.js +2 -2
  9. package/dist/esm/index.js +0 -1
  10. package/dist/esm/internal/color-map.js +2 -2
  11. package/dist/types/components/interaction-surface.partial.d.ts +2 -2
  12. package/dist/types/index.d.ts +0 -2
  13. package/dist/types/internal/color-map.d.ts +2 -2
  14. package/dist/types-ts4.5/components/interaction-surface.partial.d.ts +2 -2
  15. package/dist/types-ts4.5/index.d.ts +0 -2
  16. package/dist/types-ts4.5/internal/color-map.d.ts +2 -2
  17. package/examples/99-interactions.tsx +3 -6
  18. package/package.json +8 -9
  19. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +540 -754
  20. package/scripts/codegen-styles.tsx +3 -65
  21. package/scripts/color-codegen-template.tsx +4 -11
  22. package/scripts/color-map-template.tsx +3 -10
  23. package/scripts/dimension-codegen-template.tsx +3 -9
  24. package/scripts/interaction-codegen.tsx +3 -11
  25. package/scripts/misc-codegen-template.tsx +4 -10
  26. package/src/components/__tests__/unit/interaction-suface.test.tsx +1 -2
  27. package/src/components/interaction-surface.partial.tsx +382 -596
  28. package/src/index.tsx +0 -2
  29. package/src/internal/color-map.tsx +29 -29
  30. package/tsconfig.app.json +3 -0
  31. package/tsconfig.dev.json +1 -10
  32. package/dist/cjs/components/text.partial.js +0 -280
  33. package/dist/cjs/internal/spacing-scale.js +0 -15
  34. package/dist/es2019/components/text.partial.js +0 -271
  35. package/dist/es2019/internal/spacing-scale.js +0 -9
  36. package/dist/esm/components/text.partial.js +0 -274
  37. package/dist/esm/internal/spacing-scale.js +0 -9
  38. package/dist/types/components/text.partial.d.ts +0 -157
  39. package/dist/types/internal/spacing-scale.d.ts +0 -9
  40. package/dist/types-ts4.5/components/text.partial.d.ts +0 -162
  41. package/dist/types-ts4.5/internal/spacing-scale.d.ts +0 -24
  42. package/examples/02-text-advanced.tsx +0 -30
  43. package/examples/02-text.tsx +0 -110
  44. package/examples/06-section-message.tsx +0 -82
  45. package/examples/07-comment.tsx +0 -51
  46. package/examples/08-lozenge.tsx +0 -34
  47. package/scripts/spacing-codegen-template.tsx +0 -74
  48. package/scripts/spacing-scale-template.tsx +0 -31
  49. package/scripts/typography-codegen-template.tsx +0 -80
  50. package/src/components/__tests__/unit/text.test.tsx +0 -64
  51. package/src/components/__tests__/vr-tests/__snapshots__/text-snapshot-test/text--default.png +0 -0
  52. package/src/components/__tests__/vr-tests/text-snapshot-test.vr.tsx +0 -6
  53. package/src/components/text.partial.tsx +0 -375
  54. package/src/internal/spacing-scale.tsx +0 -24
  55. 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::89bd3320fce21de26499baab1e0904c8>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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::6d974d81ce795e3ce5be6c5035a69fb4>>
12
+ * @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
13
13
  * @codegenCommand yarn codegen-styles
14
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
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::89bd3320fce21de26499baab1e0904c8>>
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::eface03157c2df5c1b3b305911d3ed4d>>
55
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
56
56
  */
57
57
  const backgroundActiveColorMap = {
58
58
  'accent.lime.subtlest': css({
@@ -1,2 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
@@ -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::6d974d81ce795e3ce5be6c5035a69fb4>>
6
+ * @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
7
7
  * @codegenCommand yarn codegen-styles
8
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
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::89bd3320fce21de26499baab1e0904c8>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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
@@ -1,2 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
@@ -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::6d974d81ce795e3ce5be6c5035a69fb4>>
6
+ * @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
7
7
  * @codegenCommand yarn codegen-styles
8
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
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;
@@ -1,3 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
3
- export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
@@ -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::6d974d81ce795e3ce5be6c5035a69fb4>>
6
+ * @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
7
7
  * @codegenCommand yarn codegen-styles
8
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
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;
@@ -1,3 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
3
- export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
@@ -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::6d974d81ce795e3ce5be6c5035a69fb4>>
6
+ * @codegen <<SignedSource::4069cec92f6504471d42a7c6cc0f7930>>
7
7
  * @codegenCommand yarn codegen-styles
8
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
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
- textAlign="center"
78
- fontSize="size.100"
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": "3.5.1",
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.44.0",
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": "^5.6.0",
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"