@atlassian/aui 9.9.3 → 9.10.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 (63) hide show
  1. package/dist/aui/aui-prototyping-design-tokens-api-full.js +2 -2
  2. package/dist/aui/aui-prototyping-design-tokens-api-full.js.map +1 -1
  3. package/dist/aui/aui-prototyping-design-tokens-api.js +2 -2
  4. package/dist/aui/aui-prototyping-design-tokens-api.js.map +1 -1
  5. package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +2 -2
  6. package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css.map +1 -1
  7. package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +1 -1
  8. package/dist/aui/aui-prototyping-design-tokens-base-themes.js +2 -2
  9. package/dist/aui/aui-prototyping-design-tokens-base-themes.js.map +1 -1
  10. package/dist/aui/aui-prototyping.css +1 -1
  11. package/dist/aui/aui-prototyping.css.map +1 -1
  12. package/dist/aui/aui-prototyping.js +3 -3
  13. package/dist/aui/aui-prototyping.js.map +1 -1
  14. package/dist/aui/aui-prototyping.nodeps.css +1 -1
  15. package/dist/aui/aui-prototyping.nodeps.js +2 -2
  16. package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
  17. package/dist/aui/themes/dark-future.js +2 -0
  18. package/dist/aui/themes/dark-future.js.map +1 -0
  19. package/dist/aui/themes/dark.js +1 -1
  20. package/dist/aui/themes/dark.js.map +1 -1
  21. package/dist/aui/themes/legacy-dark.js +1 -1
  22. package/dist/aui/themes/legacy-dark.js.map +1 -1
  23. package/dist/aui/themes/legacy-light.js +1 -1
  24. package/dist/aui/themes/legacy-light.js.map +1 -1
  25. package/dist/aui/themes/light-future.js +2 -0
  26. package/dist/aui/themes/light-future.js.map +1 -0
  27. package/dist/aui/themes/light.js +1 -1
  28. package/dist/aui/themes/light.js.map +1 -1
  29. package/dist/aui/themes/spacing.js +1 -1
  30. package/dist/aui/themes/spacing.js.map +1 -1
  31. package/dist/aui/themes/typography-adg3.js +1 -1
  32. package/dist/aui/themes/typography-adg3.js.map +1 -1
  33. package/dist/aui/themes/typography-minor3.js +1 -1
  34. package/dist/aui/themes/typography-minor3.js.map +1 -1
  35. package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.css +282 -268
  36. package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-theme-import-map.js +8 -4
  37. package/entry/token-themes-generated/npm/themes/dark-future.js +7 -0
  38. package/entry/token-themes-generated/npm/themes/dark.js +109 -108
  39. package/entry/token-themes-generated/npm/themes/legacy-dark.js +1 -0
  40. package/entry/token-themes-generated/npm/themes/legacy-light.js +1 -0
  41. package/entry/token-themes-generated/npm/themes/light-future.js +7 -0
  42. package/entry/token-themes-generated/npm/themes/light.js +101 -100
  43. package/entry/token-themes-generated/npm/themes/spacing.js +9 -0
  44. package/entry/token-themes-generated/npm/themes/typography-adg3.js +16 -14
  45. package/entry/token-themes-generated/npm/themes/typography-minor3.js +23 -15
  46. package/entry/token-themes-generated/p2/aui-prototyping-design-tokens-theme-import-map.js +8 -4
  47. package/entry/token-themes-generated/p2/aui-prototyping-design-tokens-theme.css +282 -268
  48. package/entry/token-themes-generated/p2/themes/dark-future.js +7 -0
  49. package/entry/token-themes-generated/p2/themes/dark.js +109 -108
  50. package/entry/token-themes-generated/p2/themes/legacy-dark.js +1 -0
  51. package/entry/token-themes-generated/p2/themes/legacy-light.js +1 -0
  52. package/entry/token-themes-generated/p2/themes/light-future.js +7 -0
  53. package/entry/token-themes-generated/p2/themes/light.js +101 -100
  54. package/entry/token-themes-generated/p2/themes/spacing.js +9 -0
  55. package/entry/token-themes-generated/p2/themes/typography-adg3.js +16 -14
  56. package/entry/token-themes-generated/p2/themes/typography-minor3.js +23 -15
  57. package/package.json +3 -3
  58. package/src/js/aui/internal/i18n/aui.js +5 -0
  59. package/src/js/aui/messages.js +102 -49
  60. package/dist/aui/themes/typography.js +0 -2
  61. package/dist/aui/themes/typography.js.map +0 -1
  62. package/entry/token-themes-generated/npm/themes/typography.js +0 -27
  63. package/entry/token-themes-generated/p2/themes/typography.js +0 -27
@@ -6,10 +6,11 @@ import escapeHtml from './escape-html';
6
6
  import keyCode from './key-code';
7
7
  import skate from './internal/skate';
8
8
  import {CLOSE_BUTTON, CLOSE_BUTTON_CLASS_SELECTOR} from './close-button';
9
+ import {I18n} from './i18n';
9
10
 
10
- var DEFAULT_FADEOUT_DURATION = 500;
11
- var DEFAULT_FADEOUT_DELAY = 5000;
12
- var FADEOUT_RESTORE_DURATION = 100;
11
+ const DEFAULT_FADEOUT_DURATION = 500;
12
+ const DEFAULT_FADEOUT_DELAY = 5000;
13
+ const FADEOUT_RESTORE_DURATION = 100;
13
14
 
14
15
  function createMessageConstructor(type) {
15
16
  /**
@@ -18,6 +19,7 @@ function createMessageConstructor(type) {
18
19
  * @param {Object} obj - message configuration
19
20
  * @param {String} [obj.id] - ID to add to the message.
20
21
  * @param {String} [obj.title] - Plain-text title of the message. If provided, will appear above the message body.
22
+ * @param {String} [obj.a11yTypeLabel] - Accessibility label that will communicate type of message non-visually
21
23
  * @param {String} obj.body - Content of the message. Can be HTML content.
22
24
  * @param {boolean} [obj.closeable] - If true, the message can be manually closed by the end-user via the UI.
23
25
  * @param {boolean} [obj.removeOnHide] - If true, the message will be removed from the DOM after hide.
@@ -26,7 +28,7 @@ function createMessageConstructor(type) {
26
28
  * @param {boolean} [obj.delay]
27
29
  * @returns {*|HTMLElement}
28
30
  */
29
- messages[type] = function (context, obj) {
31
+ this[type] = function (context, obj) {
30
32
  if (!obj) {
31
33
  obj = context;
32
34
  context = '#aui-message-bar';
@@ -43,6 +45,7 @@ function createMessageConstructor(type) {
43
45
 
44
46
  // Attach the optional extra behaviours
45
47
  if (obj.removeOnHide) {
48
+ console.warn && console.warn('Use of AUI Message `removeOnHide` is deprecated due to accessibility reasons and will be removed in AUI 10.0.0.')
46
49
  makeRemoveOnHide($message, obj.delay, obj.duration);
47
50
  }
48
51
 
@@ -51,6 +54,7 @@ function createMessageConstructor(type) {
51
54
  }
52
55
 
53
56
  if (obj.fadeout) {
57
+ console.warn && console.warn('Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 10.0.0.')
54
58
  makeFadeout($message, obj.delay, obj.duration);
55
59
  }
56
60
 
@@ -60,16 +64,16 @@ function createMessageConstructor(type) {
60
64
 
61
65
  function makeRemoveOnHide(message, delay, duration) {
62
66
  $(message || '.aui-message.aui-remove-on-hide').each(function () {
63
- var $this = $(this);
67
+ const $this = $(this);
64
68
  makeFadeout($this, delay, duration)
65
69
  })
66
70
  }
67
71
 
68
72
  function makeCloseable(message) {
69
73
  $(message || 'div.aui-message.closeable').each(function () {
70
- var $this = $(this);
71
- var $closeIcons = $this.find(CLOSE_BUTTON_CLASS_SELECTOR);
72
- var $icon = $closeIcons.length > 0 ? $closeIcons.first() : $(CLOSE_BUTTON);
74
+ const $this = $(this);
75
+ const $closeIcons = $this.find(CLOSE_BUTTON_CLASS_SELECTOR);
76
+ const $icon = $closeIcons.length > 0 ? $closeIcons.first() : $(CLOSE_BUTTON);
73
77
 
74
78
  $this.addClass('closeable');
75
79
  $this.append($icon);
@@ -83,11 +87,11 @@ function makeFadeout(message, delay, duration) {
83
87
  duration = (typeof duration !== 'undefined') ? duration : DEFAULT_FADEOUT_DURATION;
84
88
 
85
89
  $(message || 'div.aui-message.fadeout').each(function () {
86
- var $this = $(this);
90
+ const $this = $(this);
87
91
 
88
92
  //Store the component state to avoid collisions between animations
89
- var hasFocus = false;
90
- var isHover = false;
93
+ let hasFocus = false;
94
+ let isHover = false;
91
95
 
92
96
  //Small functions to keep the code easier to read and avoid code duplication
93
97
  function fadeOut(){
@@ -144,18 +148,7 @@ function makeFadeout(message, delay, duration) {
144
148
  });
145
149
  }
146
150
 
147
- /**
148
- * Utility methods to display different message types to the user.
149
- * Usage:
150
- * <pre>
151
- * messages.info("#container", {
152
- * title: "Info",
153
- * body: "You can choose to have messages without Close functionality.",
154
- * closeable: false,
155
- * });
156
- * </pre>
157
- */
158
- var messages = {
151
+ const messageFunctions = {
159
152
  setup: function () {
160
153
  makeRemoveOnHide();
161
154
  makeCloseable();
@@ -192,10 +185,51 @@ function insertMessageIntoContext($message, insertWhere, context) {
192
185
  }
193
186
  }
194
187
 
195
- function renderMessageElement ({id, closeable, removeOnHide, fadeout, title, body}, type) {
188
+ function getMessageA11yTypeText(obj, type) {
189
+ const { a11yTypeLabel } = obj;
190
+
191
+ if (a11yTypeLabel === '') {
192
+ return '';
193
+ }
194
+
195
+ const isA11yTypeLabelNotEmpty = a11yTypeLabel != null;
196
+ if (isA11yTypeLabelNotEmpty) {
197
+ return a11yTypeLabel;
198
+ }
199
+
200
+ const isA11yTypeLabelNotPassed = a11yTypeLabel == null;
201
+ if (isA11yTypeLabelNotPassed) {
202
+ switch (type) {
203
+ case 'error':
204
+ return I18n.getText('aui.messagecomponent.error.label');
205
+ case 'warning':
206
+ return I18n.getText('aui.messagecomponent.warning.label');
207
+ case 'info':
208
+ return I18n.getText('aui.messagecomponent.info.label');
209
+ case 'confirmation':
210
+ return I18n.getText('aui.messagecomponent.confirmation.label');
211
+ case 'change':
212
+ return I18n.getText('aui.messagecomponent.change.label');
213
+ case 'generic':
214
+ case 'success':
215
+ case 'hint':
216
+ return '';
217
+ default:
218
+ throw Error(`Provide \`a11yTypeLabel\` for AUI message of custom type ${type}`);
219
+ }
220
+ }
221
+ }
222
+
223
+ function renderMessageElement (obj, type) {
224
+ const { id, closeable, removeOnHide, fadeout, title, body } = obj;
225
+
226
+ const messageTypeText = getMessageA11yTypeText(obj, type);
227
+ const messageTypeLabel = messageTypeText ? `<strong hidden>${messageTypeText}: </strong>` : '';
228
+
196
229
  // Convert the options in to template values
197
- const titleHtml = title ? `<p class="title"><strong>${escapeHtml(title)}</strong></p>` : '';
198
- const html = `<div class="aui-message">${titleHtml}</div>`;
230
+ const titleId = id ? `${id}-title` : '';
231
+ const titleHtml = title ? `<p class="title" ${titleId ? `id="${titleId}" aria-hidden="true"` : ''}>${messageTypeLabel}<strong>${escapeHtml(title)}</strong></p>` : '';
232
+ const html = `<div class="aui-message" role="note" ${titleId ? `aria-labelledby="${titleId}"` : ''}>${titleHtml}</div>`;
199
233
 
200
234
  // Construct the message element
201
235
  const $message = $(html)
@@ -207,7 +241,7 @@ function renderMessageElement ({id, closeable, removeOnHide, fadeout, title, bod
207
241
 
208
242
  // Add ID if supplied
209
243
  if (id) {
210
- if (/[#\'\"\.\s]/g.test(id)) {
244
+ if (/[#'".\s]/g.test(id)) {
211
245
  // reject IDs that don't comply with style guide (ie. they'll break stuff)
212
246
  logger.warn('Messages error: ID rejected, must not include spaces, hashes, dots or quotes.');
213
247
  } else {
@@ -219,7 +253,7 @@ function renderMessageElement ({id, closeable, removeOnHide, fadeout, title, bod
219
253
  }
220
254
 
221
255
  $.fn.closeMessage = function () {
222
- var $message = $(this);
256
+ const $message = $(this);
223
257
  if ($message.hasClass('aui-message') && ($message.hasClass('closeable') || $message.hasClass('aui-remove-on-hide'))) {
224
258
  $message.stop(true); //Stop any running animation
225
259
  $message.trigger('messageClose', [this]); //messageClose event Deprecated as of 5.3
@@ -228,23 +262,37 @@ $.fn.closeMessage = function () {
228
262
  }
229
263
  };
230
264
 
231
- createMessageConstructor('generic'); //Deprecated Oct 2017
232
- createMessageConstructor('error');
233
- createMessageConstructor('warning');
234
- createMessageConstructor('info');
235
- createMessageConstructor('confirmation');
236
- createMessageConstructor('change');
237
- createMessageConstructor('success'); //Deprecated Oct 2017
238
- createMessageConstructor('hint'); //Deprecated Oct 2017
265
+
266
+ /**
267
+ * Utility methods to display different message types to the user.
268
+ * Usage:
269
+ * <pre>
270
+ * messages.info("#container", {
271
+ * title: "Info",
272
+ * body: "You can choose to have messages without Close functionality.",
273
+ * closeable: false,
274
+ * });
275
+ * </pre>
276
+ */
277
+ messageFunctions.createMessage('generic'); //Deprecated Oct 2017
278
+ messageFunctions.createMessage('error');
279
+ messageFunctions.createMessage('warning');
280
+ messageFunctions.createMessage('info');
281
+ messageFunctions.createMessage('confirmation');
282
+ messageFunctions.createMessage('change');
283
+ messageFunctions.createMessage('success'); //Deprecated Oct 2017
284
+ messageFunctions.createMessage('hint'); //Deprecated Oct 2017
239
285
 
240
286
  const MessageEl = skate('aui-message', {
241
287
  created: function (element) {
242
- var body = element.innerHTML;
243
- var type = element.getAttribute('type') || 'info';
288
+ const body = element.innerHTML;
289
+ const type = element.getAttribute('type') || 'info';
244
290
 
245
291
  element.innerHTML = '';
246
- messages[type](element, {
292
+ messageFunctions[type](element, {
247
293
  body: body,
294
+ id: element.getAttribute('id'),
295
+ a11yTypeLabel: element.getAttribute('a11yTypeLabel'),
248
296
  removeOnHide: element.getAttribute('removeOnHide'),
249
297
  closeable: element.getAttribute('closeable'),
250
298
  delay: element.getAttribute('delay'),
@@ -252,41 +300,46 @@ const MessageEl = skate('aui-message', {
252
300
  fadeout: element.getAttribute('fadeout'),
253
301
  title: element.getAttribute('title')
254
302
  });
303
+ element.setAttribute('role', 'none');
255
304
  }
256
305
  });
257
306
 
258
307
  $(function () {
259
- messages.setup();
308
+ messageFunctions.setup();
260
309
  });
261
310
 
262
- deprecate.prop(messages, 'makeCloseable', {
311
+ deprecate.prop(messageFunctions, 'makeCloseable', {
263
312
  extraInfo: 'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'
264
313
  });
265
314
 
266
- deprecate.prop(messages, 'createMessage', {
315
+ deprecate.prop(messageFunctions, 'createMessage', {
267
316
  extraInfo: 'Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html'
268
317
  });
269
318
 
270
- deprecate.prop(messages, 'makeFadeout', {
271
- extraInfo: 'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'
319
+ deprecate.prop(messageFunctions, 'makeRemoveOnHide', {
320
+ extraInfo: 'Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/latest/docs/messages.html'
321
+ });
322
+
323
+ deprecate.prop(messageFunctions, 'makeFadeout', {
324
+ extraInfo: 'Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/latest/docs/messages.html'
272
325
  });
273
326
 
274
- deprecate.prop(messages, 'generic', {
327
+ deprecate.prop(messageFunctions, 'generic', {
275
328
  extraInfo: 'use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'
276
329
  });
277
330
 
278
- deprecate.prop(messages, 'hint', {
331
+ deprecate.prop(messageFunctions, 'hint', {
279
332
  extraInfo: 'use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'
280
333
  });
281
- deprecate.prop(messages, 'success', {
334
+ deprecate.prop(messageFunctions, 'success', {
282
335
  extraInfo: 'use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'
283
336
  });
284
337
 
285
338
  // Exporting
286
339
  // ---------
287
- globalize('messages', messages);
340
+ globalize('messages', messageFunctions);
288
341
 
289
- export default messages;
342
+ export default messageFunctions;
290
343
  export {
291
344
  MessageEl
292
345
  };
@@ -1,2 +0,0 @@
1
- "use strict";(window.webpackChunk_auiPrototyping=window.webpackChunk_auiPrototyping||[]).push([[767],{875:(n,s,a)=>{a.r(s),a.d(s,{default:()=>o});const o='\nhtml[data-theme~="typography:typography"] {\n --ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);\n --ds-font-body-lg: normal 400 1rem/1.5rem var(--ds-font-family-sans);\n --ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);\n --ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);\n --ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);\n --ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);\n --ds-font-heading-sm: normal 700 1rem/1.25rem var(--ds-font-family-sans);\n --ds-font-heading-xl: normal 700 1.75rem/2rem var(--ds-font-family-sans);\n --ds-font-heading-xs: normal 700 0.875rem/1rem var(--ds-font-family-sans);\n --ds-font-heading-xxl: normal 700 2.25rem/2.5rem var(--ds-font-family-sans);\n --ds-font-heading-xxs: normal 700 0.75rem/1rem var(--ds-font-family-sans);\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);\n --ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);\n --ds-font-family-code: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;\n --ds-font-family-product: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;\n --ds-font-family-sans: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;\n --ds-font-family-brand: Charlie Sans;\n}\n'}}]);
2
- //# sourceMappingURL=typography.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"./themes/typography.js","mappings":"kJAAA,QAAgB,wmD","sources":["webpack://__auiPrototyping/./token-themes-generated/npm/themes/typography.js"],"sourcesContent":["export default `\nhtml[data-theme~=\"typography:typography\"] {\n --ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);\n --ds-font-body-lg: normal 400 1rem/1.5rem var(--ds-font-family-sans);\n --ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);\n --ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);\n --ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);\n --ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);\n --ds-font-heading-sm: normal 700 1rem/1.25rem var(--ds-font-family-sans);\n --ds-font-heading-xl: normal 700 1.75rem/2rem var(--ds-font-family-sans);\n --ds-font-heading-xs: normal 700 0.875rem/1rem var(--ds-font-family-sans);\n --ds-font-heading-xxl: normal 700 2.25rem/2.5rem var(--ds-font-family-sans);\n --ds-font-heading-xxs: normal 700 0.75rem/1rem var(--ds-font-family-sans);\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);\n --ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-product: ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-sans: ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand: Charlie Sans;\n}\n`"],"names":[],"sourceRoot":""}
@@ -1,27 +0,0 @@
1
- export default `
2
- html[data-theme~="typography:typography"] {
3
- --ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);
4
- --ds-font-body-lg: normal 400 1rem/1.5rem var(--ds-font-family-sans);
5
- --ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);
6
- --ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);
7
- --ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);
8
- --ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);
9
- --ds-font-heading-sm: normal 700 1rem/1.25rem var(--ds-font-family-sans);
10
- --ds-font-heading-xl: normal 700 1.75rem/2rem var(--ds-font-family-sans);
11
- --ds-font-heading-xs: normal 700 0.875rem/1rem var(--ds-font-family-sans);
12
- --ds-font-heading-xxl: normal 700 2.25rem/2.5rem var(--ds-font-family-sans);
13
- --ds-font-heading-xxs: normal 700 0.75rem/1rem var(--ds-font-family-sans);
14
- --ds-font-letterSpacing-0: 0;
15
- --ds-font-letterSpacing-100: 0;
16
- --ds-font-letterSpacing-200: 0;
17
- --ds-font-letterSpacing-300: 0;
18
- --ds-font-letterSpacing-400: 0;
19
- --ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);
20
- --ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);
21
- --ds-font-family-code: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
22
- --ds-font-family-monospace: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
23
- --ds-font-family-product: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;
24
- --ds-font-family-sans: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;
25
- --ds-font-family-brand: Charlie Sans;
26
- }
27
- `
@@ -1,27 +0,0 @@
1
- export default `
2
- html[data-theme~="typography:typography"] {
3
- --ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);
4
- --ds-font-body-lg: normal 400 1rem/1.5rem var(--ds-font-family-sans);
5
- --ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);
6
- --ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);
7
- --ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);
8
- --ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);
9
- --ds-font-heading-sm: normal 700 1rem/1.25rem var(--ds-font-family-sans);
10
- --ds-font-heading-xl: normal 700 1.75rem/2rem var(--ds-font-family-sans);
11
- --ds-font-heading-xs: normal 700 0.875rem/1rem var(--ds-font-family-sans);
12
- --ds-font-heading-xxl: normal 700 2.25rem/2.5rem var(--ds-font-family-sans);
13
- --ds-font-heading-xxs: normal 700 0.75rem/1rem var(--ds-font-family-sans);
14
- --ds-font-letterSpacing-0: 0;
15
- --ds-font-letterSpacing-100: 0;
16
- --ds-font-letterSpacing-200: 0;
17
- --ds-font-letterSpacing-300: 0;
18
- --ds-font-letterSpacing-400: 0;
19
- --ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);
20
- --ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);
21
- --ds-font-family-code: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
22
- --ds-font-family-monospace: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
23
- --ds-font-family-product: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;
24
- --ds-font-family-sans: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;
25
- --ds-font-family-brand: Charlie Sans;
26
- }
27
- `