@atlaskit/ds-explorations 3.0.6 → 3.2.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#63526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63526) [`e8835feffae9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e8835feffae9) - Internal change to improve token sorting logic for typography tokens. Typography tokens are now marked as active though they are still in development and not recommend for use without prior approval from ADS.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 3.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#59752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59752) [`df0bbb7c4cc1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/df0bbb7c4cc1) - Removed minor-second typography theme: `typography`. ADG3 and Minor third themes remain as the two typography themes.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 3.0.6
4
24
 
5
25
  ### Patch Changes
@@ -0,0 +1,24 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.confluence.json",
3
+ "compilerOptions": {
4
+ "target": "es5",
5
+ "composite": true,
6
+ "outDir": "../dist",
7
+ "rootDir": "../",
8
+ "baseUrl": "../"
9
+ },
10
+ "include": [
11
+ "../src/**/*.tsx"
12
+ ],
13
+ "exclude": [
14
+ "../src/**/__tests__/*",
15
+ "../src/**/*.test.*",
16
+ "../src/**/test.*",
17
+ "../src/**/examples.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../tokens/afm-cc/tsconfig.json"
22
+ }
23
+ ]
24
+ }
@@ -129,11 +129,11 @@ var Text = function Text(_ref) {
129
129
  var _default = exports.default = Text;
130
130
  /**
131
131
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
132
- * @codegen <<SignedSource::e0cf19767425d8b20b2d3cf5f3adc035>>
132
+ * @codegen <<SignedSource::40722ab03efa1705ecfbcccb090c5b40>>
133
133
  * @codegenId typography
134
134
  * @codegenCommand yarn codegen-styles
135
135
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
136
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::7c95473452cd40813e49496912c844a1>>
136
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3.tsx <<SignedSource::049aa00f1a9c36992ac7a5378bf45032>>
137
137
  */
138
138
  var fontSizeMap = {
139
139
  'size.050': (0, _react2.css)({
@@ -120,11 +120,11 @@ export default Text;
120
120
 
121
121
  /**
122
122
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
123
- * @codegen <<SignedSource::e0cf19767425d8b20b2d3cf5f3adc035>>
123
+ * @codegen <<SignedSource::40722ab03efa1705ecfbcccb090c5b40>>
124
124
  * @codegenId typography
125
125
  * @codegenCommand yarn codegen-styles
126
126
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
127
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::7c95473452cd40813e49496912c844a1>>
127
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3.tsx <<SignedSource::049aa00f1a9c36992ac7a5378bf45032>>
128
128
  */
129
129
  const fontSizeMap = {
130
130
  'size.050': css({
@@ -123,11 +123,11 @@ export default Text;
123
123
 
124
124
  /**
125
125
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
126
- * @codegen <<SignedSource::e0cf19767425d8b20b2d3cf5f3adc035>>
126
+ * @codegen <<SignedSource::40722ab03efa1705ecfbcccb090c5b40>>
127
127
  * @codegenId typography
128
128
  * @codegenCommand yarn codegen-styles
129
129
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
130
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::7c95473452cd40813e49496912c844a1>>
130
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3.tsx <<SignedSource::049aa00f1a9c36992ac7a5378bf45032>>
131
131
  */
132
132
  var fontSizeMap = {
133
133
  'size.050': css({
@@ -81,11 +81,11 @@ declare const Text: FC<TextProps>;
81
81
  export default Text;
82
82
  /**
83
83
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
84
- * @codegen <<SignedSource::e0cf19767425d8b20b2d3cf5f3adc035>>
84
+ * @codegen <<SignedSource::40722ab03efa1705ecfbcccb090c5b40>>
85
85
  * @codegenId typography
86
86
  * @codegenCommand yarn codegen-styles
87
87
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
88
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::7c95473452cd40813e49496912c844a1>>
88
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3.tsx <<SignedSource::049aa00f1a9c36992ac7a5378bf45032>>
89
89
  */
90
90
  declare const fontSizeMap: {
91
91
  'size.050': import("@emotion/react").SerializedStyles;
@@ -86,11 +86,11 @@ declare const Text: FC<TextProps>;
86
86
  export default Text;
87
87
  /**
88
88
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
89
- * @codegen <<SignedSource::e0cf19767425d8b20b2d3cf5f3adc035>>
89
+ * @codegen <<SignedSource::40722ab03efa1705ecfbcccb090c5b40>>
90
90
  * @codegenId typography
91
91
  * @codegenCommand yarn codegen-styles
92
92
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
93
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::7c95473452cd40813e49496912c844a1>>
93
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3.tsx <<SignedSource::049aa00f1a9c36992ac7a5378bf45032>>
94
94
  */
95
95
  declare const fontSizeMap: {
96
96
  'size.050': import("@emotion/react").SerializedStyles;
@@ -14,12 +14,14 @@ const lineHeightContainerStyles = xcss({
14
14
  export default () => {
15
15
  return (
16
16
  <Stack space="space.300">
17
- <Heading level="h400" as="h3">
17
+ <Heading level="h400" as="h2">
18
18
  Text examples
19
19
  </Heading>
20
20
  <Stack space="space.200">
21
21
  <Box>
22
- <Heading level="h300">Font size</Heading>
22
+ <Heading level="h300" as="h3">
23
+ Font size
24
+ </Heading>
23
25
  <Inline space="space.200" testId="font-sizes">
24
26
  {(
25
27
  [
@@ -40,7 +42,7 @@ export default () => {
40
42
  </Inline>
41
43
  </Box>
42
44
  <Box>
43
- <Heading level="h300" as="h4">
45
+ <Heading level="h300" as="h3">
44
46
  Font weight
45
47
  </Heading>
46
48
  <Inline space="space.200" testId="font-weights">
@@ -54,7 +56,7 @@ export default () => {
54
56
  </Inline>
55
57
  </Box>
56
58
  <Box>
57
- <Heading level="h300" as="h4">
59
+ <Heading level="h300" as="h3">
58
60
  Line height
59
61
  </Heading>
60
62
  <Inline space="space.200" testId="line-heights" alignBlock="center">
@@ -79,7 +81,7 @@ export default () => {
79
81
  </Inline>
80
82
  </Box>
81
83
  <Box>
82
- <Heading level="h300" as="h4">
84
+ <Heading level="h300" as="h3">
83
85
  Testing
84
86
  </Heading>
85
87
  <Stack space="space.050" testId="testing">
@@ -17,10 +17,6 @@ import {
17
17
  UNSAFE_Text as Text,
18
18
  } from '../src';
19
19
 
20
- const containerStyles = xcss({
21
- width: 'size.500',
22
- });
23
-
24
20
  const fieldsetStyles = xcss({
25
21
  flex: '1 1 100%',
26
22
  borderStyle: 'solid',
@@ -49,7 +45,7 @@ const focusRingBoxStyles = xcss({
49
45
 
50
46
  export default () => {
51
47
  return (
52
- <Box xcss={containerStyles} padding="space.100" testId="all">
48
+ <Box padding="space.100" testId="all">
53
49
  <Stack space="space.200">
54
50
  <Heading level="h400">Current ADS Buttons</Heading>
55
51
  <Inline space="space.200">
@@ -161,6 +157,7 @@ export default () => {
161
157
  onClick={() => console.log('hello')}
162
158
  xcss={focusRingBoxStyles}
163
159
  padding="space.050"
160
+ aria-label="progress indicator"
164
161
  >
165
162
  <InteractionSurface>
166
163
  <Fragment />
@@ -170,8 +167,10 @@ export default () => {
170
167
  ))}
171
168
  </Inline>
172
169
  <Heading level="h400">Textfield / input spikes</Heading>
173
- <Inline space="space.200">
174
- <Textfield />
170
+ <Stack space="space.200">
171
+ <label htmlFor="textfield">Textfield</label>
172
+ <Textfield id="textfield" />
173
+ <label htmlFor="input">Input</label>
175
174
  <Box
176
175
  as="fieldset"
177
176
  padding="space.100"
@@ -180,7 +179,7 @@ export default () => {
180
179
  xcss={fieldsetStyles}
181
180
  >
182
181
  <input
183
- id="textfield"
182
+ id="input"
184
183
  pattern="\d+"
185
184
  style={{
186
185
  padding: 0,
@@ -192,7 +191,7 @@ export default () => {
192
191
  }}
193
192
  />
194
193
  </Box>
195
- </Inline>
194
+ </Stack>
196
195
  </Stack>
197
196
  </Box>
198
197
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "3.0.6",
3
+ "version": "3.2.0",
4
4
  "description": "An experimental package for exploration and validation of spacing / typography foundations.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,7 +25,7 @@
25
25
  "prepare": "yarn ak-postbuild"
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/tokens": "^1.29.0",
28
+ "@atlaskit/tokens": "^1.33.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "@emotion/react": "^11.7.1",
31
31
  "tiny-invariant": "^1.2.0"
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@atlaskit/ds-lib": "*",
38
- "@atlaskit/primitives": "^1.12.0",
38
+ "@atlaskit/primitives": "^1.16.0",
39
39
  "@atlaskit/visual-regression": "*",
40
40
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
41
41
  "@atlassian/codegen": "^0.1.0",
@@ -19,7 +19,7 @@ const colorTokensDependencyPath = require.resolve(
19
19
  );
20
20
 
21
21
  const typographyTokensDependencyPath = require.resolve(
22
- '../../tokens/src/artifacts/tokens-raw/atlassian-typography',
22
+ '../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3',
23
23
  );
24
24
 
25
25
  writeFile(
@@ -1,7 +1,7 @@
1
1
  import prettier from 'prettier';
2
2
  import parserTypeScript from 'prettier/parser-typescript';
3
3
 
4
- import { typography as tokens } from '@atlaskit/tokens/tokens-raw';
4
+ import { typographyAdg3 as tokens } from '@atlaskit/tokens/tokens-raw';
5
5
 
6
6
  import { capitalize, tokenToStyle } from './utils';
7
7
 
@@ -189,11 +189,11 @@ export default Text;
189
189
 
190
190
  /**
191
191
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
192
- * @codegen <<SignedSource::e0cf19767425d8b20b2d3cf5f3adc035>>
192
+ * @codegen <<SignedSource::40722ab03efa1705ecfbcccb090c5b40>>
193
193
  * @codegenId typography
194
194
  * @codegenCommand yarn codegen-styles
195
195
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
196
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::7c95473452cd40813e49496912c844a1>>
196
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3.tsx <<SignedSource::049aa00f1a9c36992ac7a5378bf45032>>
197
197
  */
198
198
  const fontSizeMap = {
199
199
  'size.050': css({