@atlaskit/ds-explorations 2.2.13 → 2.2.15

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,19 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 2.2.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6b3e7af515d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6b3e7af515d) - Updates based on new codgen for tokens (no API change).
8
+ - Updated dependencies
9
+
10
+ ## 2.2.14
11
+
12
+ ### Patch Changes
13
+
14
+ - [`813edf2fe03`](https://bitbucket.org/atlassian/atlassian-frontend/commits/813edf2fe03) - Minor internal changes. There is no expected behaviour change.
15
+ - Updated dependencies
16
+
3
17
  ## 2.2.13
4
18
 
5
19
  ### Patch Changes
@@ -284,11 +284,11 @@ var heightMap = {
284
284
  */
285
285
  /**
286
286
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
287
- * @codegen <<SignedSource::26bdf3368d6e881f82176d797d99e03f>>
287
+ * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
288
288
  * @codegenId spacing
289
289
  * @codegenCommand yarn codegen-styles
290
290
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
291
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
291
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
292
292
  */
293
293
  var paddingMap = {
294
294
  'space.0': (0, _react2.css)({
@@ -68,7 +68,7 @@ var baseStyles = (0, _react2.css)({
68
68
  flexDirection: 'row'
69
69
  });
70
70
  var dividerStyles = (0, _react2.css)({
71
- margin: '0 -2px',
71
+ margin: "0 ".concat("var(--ds-space-negative-025, -2px)"),
72
72
  color: "var(--ds-text-subtle, #42526E)",
73
73
  pointerEvents: 'none',
74
74
  userSelect: 'none'
@@ -126,11 +126,11 @@ Inline.displayName = 'Inline';
126
126
  var _default = Inline;
127
127
  /**
128
128
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
129
- * @codegen <<SignedSource::253507949de085f00146762f8cd80723>>
129
+ * @codegen <<SignedSource::63747c8b92ba373ad2259fa1fff3f434>>
130
130
  * @codegenId spacing
131
131
  * @codegenCommand yarn codegen-styles
132
132
  * @codegenParams ["columnGap"]
133
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
133
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
134
134
  */
135
135
  exports.default = _default;
136
136
  var columnGapMap = {
@@ -92,11 +92,11 @@ Stack.displayName = 'Stack';
92
92
  var _default = Stack;
93
93
  /**
94
94
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
95
- * @codegen <<SignedSource::0e45f4f2d2cca413fcf2aadc0cc08de0>>
95
+ * @codegen <<SignedSource::02ffa7c4ee52871441d288f44a054685>>
96
96
  * @codegenId spacing
97
97
  * @codegenCommand yarn codegen-styles
98
98
  * @codegenParams ["rowGap"]
99
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
99
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
100
100
  */
101
101
  exports.default = _default;
102
102
  var rowGapMap = {
@@ -135,11 +135,11 @@ var Text = function Text(_ref) {
135
135
  var _default = Text;
136
136
  /**
137
137
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
138
- * @codegen <<SignedSource::d3b73d63fef16f1f12ad8ec39520497e>>
138
+ * @codegen <<SignedSource::de3943f17f27e9d5895c249c30c12802>>
139
139
  * @codegenId typography
140
140
  * @codegenCommand yarn codegen-styles
141
141
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
142
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::0e11bb3b13c1850386ae45bae589a46a>>
142
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::85d34d11efbf90832fccaf960c2ea033>>
143
143
  */
144
144
  exports.default = _default;
145
145
  var fontSizeMap = {
@@ -183,18 +183,21 @@ var fontWeightMap = {
183
183
  })
184
184
  };
185
185
  var fontFamilyMap = {
186
+ body: (0, _react2.css)({
187
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
188
+ }),
186
189
  brand: (0, _react2.css)({
187
190
  fontFamily: "var(--ds-font-family-brand, Charlie Sans)"
188
191
  }),
189
192
  code: (0, _react2.css)({
190
193
  fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
191
194
  }),
195
+ heading: (0, _react2.css)({
196
+ fontFamily: "var(--ds-font-family-heading, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
197
+ }),
192
198
  monospace: (0, _react2.css)({
193
199
  fontFamily: "var(--ds-font-family-monospace, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
194
200
  }),
195
- product: (0, _react2.css)({
196
- fontFamily: "var(--ds-font-family-product, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
197
- }),
198
201
  sans: (0, _react2.css)({
199
202
  fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
200
203
  })
@@ -276,11 +276,11 @@ const heightMap = {
276
276
  */
277
277
  /**
278
278
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
279
- * @codegen <<SignedSource::26bdf3368d6e881f82176d797d99e03f>>
279
+ * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
280
280
  * @codegenId spacing
281
281
  * @codegenCommand yarn codegen-styles
282
282
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
283
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
283
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
284
284
  */
285
285
  const paddingMap = {
286
286
  'space.0': css({
@@ -62,7 +62,7 @@ const baseStyles = css({
62
62
  flexDirection: 'row'
63
63
  });
64
64
  const dividerStyles = css({
65
- margin: '0 -2px',
65
+ margin: `0 ${"var(--ds-space-negative-025, -2px)"}`,
66
66
  color: "var(--ds-text-subtle, #42526E)",
67
67
  pointerEvents: 'none',
68
68
  userSelect: 'none'
@@ -121,11 +121,11 @@ export default Inline;
121
121
 
122
122
  /**
123
123
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
124
- * @codegen <<SignedSource::253507949de085f00146762f8cd80723>>
124
+ * @codegen <<SignedSource::63747c8b92ba373ad2259fa1fff3f434>>
125
125
  * @codegenId spacing
126
126
  * @codegenCommand yarn codegen-styles
127
127
  * @codegenParams ["columnGap"]
128
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
128
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
129
129
  */
130
130
  const columnGapMap = {
131
131
  'space.0': css({
@@ -88,11 +88,11 @@ export default Stack;
88
88
 
89
89
  /**
90
90
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
91
- * @codegen <<SignedSource::0e45f4f2d2cca413fcf2aadc0cc08de0>>
91
+ * @codegen <<SignedSource::02ffa7c4ee52871441d288f44a054685>>
92
92
  * @codegenId spacing
93
93
  * @codegenCommand yarn codegen-styles
94
94
  * @codegenParams ["rowGap"]
95
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
95
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
96
96
  */
97
97
  const rowGapMap = {
98
98
  'space.0': css({
@@ -126,11 +126,11 @@ export default Text;
126
126
 
127
127
  /**
128
128
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
129
- * @codegen <<SignedSource::d3b73d63fef16f1f12ad8ec39520497e>>
129
+ * @codegen <<SignedSource::de3943f17f27e9d5895c249c30c12802>>
130
130
  * @codegenId typography
131
131
  * @codegenCommand yarn codegen-styles
132
132
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
133
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::0e11bb3b13c1850386ae45bae589a46a>>
133
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::85d34d11efbf90832fccaf960c2ea033>>
134
134
  */
135
135
  const fontSizeMap = {
136
136
  'size.050': css({
@@ -173,18 +173,21 @@ const fontWeightMap = {
173
173
  })
174
174
  };
175
175
  const fontFamilyMap = {
176
+ body: css({
177
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
178
+ }),
176
179
  brand: css({
177
180
  fontFamily: "var(--ds-font-family-brand, Charlie Sans)"
178
181
  }),
179
182
  code: css({
180
183
  fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
181
184
  }),
185
+ heading: css({
186
+ fontFamily: "var(--ds-font-family-heading, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
187
+ }),
182
188
  monospace: css({
183
189
  fontFamily: "var(--ds-font-family-monospace, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
184
190
  }),
185
- product: css({
186
- fontFamily: "var(--ds-font-family-product, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
187
- }),
188
191
  sans: css({
189
192
  fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
190
193
  })
@@ -279,11 +279,11 @@ var heightMap = {
279
279
  */
280
280
  /**
281
281
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
282
- * @codegen <<SignedSource::26bdf3368d6e881f82176d797d99e03f>>
282
+ * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
283
283
  * @codegenId spacing
284
284
  * @codegenCommand yarn codegen-styles
285
285
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
286
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
286
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
287
287
  */
288
288
  var paddingMap = {
289
289
  'space.0': css({
@@ -62,7 +62,7 @@ var baseStyles = css({
62
62
  flexDirection: 'row'
63
63
  });
64
64
  var dividerStyles = css({
65
- margin: '0 -2px',
65
+ margin: "0 ".concat("var(--ds-space-negative-025, -2px)"),
66
66
  color: "var(--ds-text-subtle, #42526E)",
67
67
  pointerEvents: 'none',
68
68
  userSelect: 'none'
@@ -121,11 +121,11 @@ export default Inline;
121
121
 
122
122
  /**
123
123
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
124
- * @codegen <<SignedSource::253507949de085f00146762f8cd80723>>
124
+ * @codegen <<SignedSource::63747c8b92ba373ad2259fa1fff3f434>>
125
125
  * @codegenId spacing
126
126
  * @codegenCommand yarn codegen-styles
127
127
  * @codegenParams ["columnGap"]
128
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
128
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
129
129
  */
130
130
  var columnGapMap = {
131
131
  'space.0': css({
@@ -87,11 +87,11 @@ export default Stack;
87
87
 
88
88
  /**
89
89
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
90
- * @codegen <<SignedSource::0e45f4f2d2cca413fcf2aadc0cc08de0>>
90
+ * @codegen <<SignedSource::02ffa7c4ee52871441d288f44a054685>>
91
91
  * @codegenId spacing
92
92
  * @codegenCommand yarn codegen-styles
93
93
  * @codegenParams ["rowGap"]
94
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
94
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
95
95
  */
96
96
  var rowGapMap = {
97
97
  'space.0': css({
@@ -129,11 +129,11 @@ export default Text;
129
129
 
130
130
  /**
131
131
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
132
- * @codegen <<SignedSource::d3b73d63fef16f1f12ad8ec39520497e>>
132
+ * @codegen <<SignedSource::de3943f17f27e9d5895c249c30c12802>>
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::0e11bb3b13c1850386ae45bae589a46a>>
136
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::85d34d11efbf90832fccaf960c2ea033>>
137
137
  */
138
138
  var fontSizeMap = {
139
139
  'size.050': css({
@@ -176,18 +176,21 @@ var fontWeightMap = {
176
176
  })
177
177
  };
178
178
  var fontFamilyMap = {
179
+ body: css({
180
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
181
+ }),
179
182
  brand: css({
180
183
  fontFamily: "var(--ds-font-family-brand, Charlie Sans)"
181
184
  }),
182
185
  code: css({
183
186
  fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
184
187
  }),
188
+ heading: css({
189
+ fontFamily: "var(--ds-font-family-heading, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
190
+ }),
185
191
  monospace: css({
186
192
  fontFamily: "var(--ds-font-family-monospace, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
187
193
  }),
188
- product: css({
189
- fontFamily: "var(--ds-font-family-product, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
190
- }),
191
194
  sans: css({
192
195
  fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
193
196
  })
@@ -229,11 +229,11 @@ export type Height = keyof typeof heightMap;
229
229
  */
230
230
  /**
231
231
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
232
- * @codegen <<SignedSource::26bdf3368d6e881f82176d797d99e03f>>
232
+ * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
233
233
  * @codegenId spacing
234
234
  * @codegenCommand yarn codegen-styles
235
235
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
236
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
236
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
237
237
  */
238
238
  declare const paddingMap: {
239
239
  'space.0': import("@emotion/react").SerializedStyles;
@@ -80,11 +80,11 @@ declare const Inline: import("react").MemoExoticComponent<import("react").Forwar
80
80
  export default Inline;
81
81
  /**
82
82
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
83
- * @codegen <<SignedSource::253507949de085f00146762f8cd80723>>
83
+ * @codegen <<SignedSource::63747c8b92ba373ad2259fa1fff3f434>>
84
84
  * @codegenId spacing
85
85
  * @codegenCommand yarn codegen-styles
86
86
  * @codegenParams ["columnGap"]
87
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
87
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
88
88
  */
89
89
  declare const columnGapMap: {
90
90
  'space.0': import("@emotion/react").SerializedStyles;
@@ -64,11 +64,11 @@ declare const Stack: import("react").MemoExoticComponent<import("react").Forward
64
64
  export default Stack;
65
65
  /**
66
66
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
67
- * @codegen <<SignedSource::0e45f4f2d2cca413fcf2aadc0cc08de0>>
67
+ * @codegen <<SignedSource::02ffa7c4ee52871441d288f44a054685>>
68
68
  * @codegenId spacing
69
69
  * @codegenCommand yarn codegen-styles
70
70
  * @codegenParams ["rowGap"]
71
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
71
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
72
72
  */
73
73
  declare const rowGapMap: {
74
74
  'space.0': import("@emotion/react").SerializedStyles;
@@ -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::d3b73d63fef16f1f12ad8ec39520497e>>
84
+ * @codegen <<SignedSource::de3943f17f27e9d5895c249c30c12802>>
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::0e11bb3b13c1850386ae45bae589a46a>>
88
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::85d34d11efbf90832fccaf960c2ea033>>
89
89
  */
90
90
  declare const fontSizeMap: {
91
91
  'size.050': import("@emotion/react").SerializedStyles;
@@ -106,10 +106,11 @@ declare const fontWeightMap: {
106
106
  };
107
107
  export type FontWeight = keyof typeof fontWeightMap;
108
108
  declare const fontFamilyMap: {
109
+ body: import("@emotion/react").SerializedStyles;
109
110
  brand: import("@emotion/react").SerializedStyles;
110
111
  code: import("@emotion/react").SerializedStyles;
112
+ heading: import("@emotion/react").SerializedStyles;
111
113
  monospace: import("@emotion/react").SerializedStyles;
112
- product: import("@emotion/react").SerializedStyles;
113
114
  sans: import("@emotion/react").SerializedStyles;
114
115
  };
115
116
  export type FontFamily = keyof typeof fontFamilyMap;
@@ -229,11 +229,11 @@ export type Height = keyof typeof heightMap;
229
229
  */
230
230
  /**
231
231
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
232
- * @codegen <<SignedSource::26bdf3368d6e881f82176d797d99e03f>>
232
+ * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
233
233
  * @codegenId spacing
234
234
  * @codegenCommand yarn codegen-styles
235
235
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
236
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
236
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
237
237
  */
238
238
  declare const paddingMap: {
239
239
  'space.0': import("@emotion/react").SerializedStyles;
@@ -80,11 +80,11 @@ declare const Inline: import("react").MemoExoticComponent<import("react").Forwar
80
80
  export default Inline;
81
81
  /**
82
82
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
83
- * @codegen <<SignedSource::253507949de085f00146762f8cd80723>>
83
+ * @codegen <<SignedSource::63747c8b92ba373ad2259fa1fff3f434>>
84
84
  * @codegenId spacing
85
85
  * @codegenCommand yarn codegen-styles
86
86
  * @codegenParams ["columnGap"]
87
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
87
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
88
88
  */
89
89
  declare const columnGapMap: {
90
90
  'space.0': import("@emotion/react").SerializedStyles;
@@ -64,11 +64,11 @@ declare const Stack: import("react").MemoExoticComponent<import("react").Forward
64
64
  export default Stack;
65
65
  /**
66
66
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
67
- * @codegen <<SignedSource::0e45f4f2d2cca413fcf2aadc0cc08de0>>
67
+ * @codegen <<SignedSource::02ffa7c4ee52871441d288f44a054685>>
68
68
  * @codegenId spacing
69
69
  * @codegenCommand yarn codegen-styles
70
70
  * @codegenParams ["rowGap"]
71
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
71
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
72
72
  */
73
73
  declare const rowGapMap: {
74
74
  'space.0': 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::d3b73d63fef16f1f12ad8ec39520497e>>
89
+ * @codegen <<SignedSource::de3943f17f27e9d5895c249c30c12802>>
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::0e11bb3b13c1850386ae45bae589a46a>>
93
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::85d34d11efbf90832fccaf960c2ea033>>
94
94
  */
95
95
  declare const fontSizeMap: {
96
96
  'size.050': import("@emotion/react").SerializedStyles;
@@ -111,10 +111,11 @@ declare const fontWeightMap: {
111
111
  };
112
112
  export type FontWeight = keyof typeof fontWeightMap;
113
113
  declare const fontFamilyMap: {
114
+ body: import("@emotion/react").SerializedStyles;
114
115
  brand: import("@emotion/react").SerializedStyles;
115
116
  code: import("@emotion/react").SerializedStyles;
117
+ heading: import("@emotion/react").SerializedStyles;
116
118
  monospace: import("@emotion/react").SerializedStyles;
117
- product: import("@emotion/react").SerializedStyles;
118
119
  sans: import("@emotion/react").SerializedStyles;
119
120
  };
120
121
  export type FontFamily = keyof typeof fontFamilyMap;
package/docs/01-basic.tsx CHANGED
@@ -5,14 +5,15 @@ import {
5
5
  DevPreviewWarning,
6
6
  md,
7
7
  } from '@atlaskit/docs';
8
+ import { token } from '@atlaskit/tokens';
8
9
 
9
10
  export default md`
10
11
  ${(
11
12
  <>
12
- <div style={{ marginBottom: 8 }}>
13
+ <div style={{ marginBottom: token('space.100', '8px') }}>
13
14
  <AtlassianInternalWarning />
14
15
  </div>
15
- <div style={{ marginTop: 8 }}>
16
+ <div style={{ marginTop: token('space.100', '8px') }}>
16
17
  <DevPreviewWarning />
17
18
  </div>
18
19
  </>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.2.13",
3
+ "version": "2.2.15",
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.19.0",
28
+ "@atlaskit/tokens": "^1.22.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "@emotion/react": "^11.7.1",
31
31
  "tiny-invariant": "^1.2.0"
@@ -26,12 +26,12 @@ const spacingProperties = {
26
26
  },
27
27
  } as const;
28
28
 
29
- const onlySpaceTokens = tokens.filter((token) =>
30
- token.name.startsWith('space.'),
31
- );
29
+ const onlySpaceTokens = tokens
30
+ .filter((token) => token.name.startsWith('space.'))
31
+ .filter((token) => !token.name.includes('.negative'));
32
32
 
33
33
  const activeTokens = onlySpaceTokens.map((t) => ({
34
- name: t.name,
34
+ name: t.cleanName,
35
35
  fallback: t.value,
36
36
  }));
37
37
 
@@ -3,11 +3,11 @@ import parserTypeScript from 'prettier/parser-typescript';
3
3
 
4
4
  import { spacing as tokens } from '@atlaskit/tokens/tokens-raw';
5
5
 
6
- const onlySpaceTokens = tokens.filter((token) =>
7
- token.name.startsWith('space.'),
8
- );
6
+ const onlySpaceTokens = tokens
7
+ .filter((token) => token.name.startsWith('space.'))
8
+ .filter((token) => !token.name.includes('.negative'));
9
9
 
10
- const activeTokens = onlySpaceTokens.map((t) => `'${t.name}'`);
10
+ const activeTokens = onlySpaceTokens.map((t) => `'${t.cleanName}'`);
11
11
 
12
12
  export const createSpacingScaleTemplate = () => {
13
13
  return prettier.format(
@@ -357,11 +357,11 @@ export type Height = keyof typeof heightMap;
357
357
 
358
358
  /**
359
359
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
360
- * @codegen <<SignedSource::26bdf3368d6e881f82176d797d99e03f>>
360
+ * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
361
361
  * @codegenId spacing
362
362
  * @codegenCommand yarn codegen-styles
363
363
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
364
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
364
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
365
365
  */
366
366
  const paddingMap = {
367
367
  'space.0': css({
@@ -73,7 +73,7 @@ const baseStyles = css({
73
73
  });
74
74
 
75
75
  const dividerStyles = css({
76
- margin: '0 -2px',
76
+ margin: `0 ${token('space.negative.025', '-2px')}`,
77
77
  color: token('color.text.subtle', '#42526E'),
78
78
  pointerEvents: 'none',
79
79
  userSelect: 'none',
@@ -160,11 +160,11 @@ export default Inline;
160
160
 
161
161
  /**
162
162
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
163
- * @codegen <<SignedSource::253507949de085f00146762f8cd80723>>
163
+ * @codegen <<SignedSource::63747c8b92ba373ad2259fa1fff3f434>>
164
164
  * @codegenId spacing
165
165
  * @codegenCommand yarn codegen-styles
166
166
  * @codegenParams ["columnGap"]
167
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
167
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
168
168
  */
169
169
  const columnGapMap = {
170
170
  'space.0': css({
@@ -116,11 +116,11 @@ export default Stack;
116
116
 
117
117
  /**
118
118
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
119
- * @codegen <<SignedSource::0e45f4f2d2cca413fcf2aadc0cc08de0>>
119
+ * @codegen <<SignedSource::02ffa7c4ee52871441d288f44a054685>>
120
120
  * @codegenId spacing
121
121
  * @codegenCommand yarn codegen-styles
122
122
  * @codegenParams ["rowGap"]
123
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
123
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
124
124
  */
125
125
  const rowGapMap = {
126
126
  'space.0': css({
@@ -195,11 +195,11 @@ export default Text;
195
195
 
196
196
  /**
197
197
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
198
- * @codegen <<SignedSource::d3b73d63fef16f1f12ad8ec39520497e>>
198
+ * @codegen <<SignedSource::de3943f17f27e9d5895c249c30c12802>>
199
199
  * @codegenId typography
200
200
  * @codegenCommand yarn codegen-styles
201
201
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
202
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::0e11bb3b13c1850386ae45bae589a46a>>
202
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::85d34d11efbf90832fccaf960c2ea033>>
203
203
  */
204
204
  const fontSizeMap = {
205
205
  'size.050': css({
@@ -248,6 +248,12 @@ const fontWeightMap = {
248
248
  export type FontWeight = keyof typeof fontWeightMap;
249
249
 
250
250
  const fontFamilyMap = {
251
+ body: css({
252
+ fontFamily: token(
253
+ 'font.family.body',
254
+ 'ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
255
+ ),
256
+ }),
251
257
  brand: css({
252
258
  fontFamily: token('font.family.brand', 'Charlie Sans'),
253
259
  }),
@@ -257,16 +263,16 @@ const fontFamilyMap = {
257
263
  'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
258
264
  ),
259
265
  }),
260
- monospace: css({
266
+ heading: css({
261
267
  fontFamily: token(
262
- 'font.family.monospace',
263
- 'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
268
+ 'font.family.heading',
269
+ 'ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
264
270
  ),
265
271
  }),
266
- product: css({
272
+ monospace: css({
267
273
  fontFamily: token(
268
- 'font.family.product',
269
- 'ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
274
+ 'font.family.monospace',
275
+ 'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
270
276
  ),
271
277
  }),
272
278
  sans: css({