@0001-labs/design-system-1 0.3.0 → 0.3.2

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 (91) hide show
  1. package/DS1/0-face/constraint-panel.ts +27 -6
  2. package/DS1/0-face/constraint-site.ts +3 -2
  3. package/DS1/0-face/constraints.ts +27 -0
  4. package/DS1/0-face/define.ts +1 -1
  5. package/DS1/0-face/fault-lines.ts +159 -0
  6. package/DS1/0-face/generated/toast-assets.ts +1 -1
  7. package/DS1/1-root/card.css +2 -2
  8. package/DS1/1-root/cjk.css +1 -1
  9. package/DS1/1-root/component-tokens.css +12 -0
  10. package/DS1/1-root/context.css +1 -1
  11. package/DS1/1-root/controls.css +8 -8
  12. package/DS1/1-root/document.css +2 -2
  13. package/DS1/1-root/empty.css +2 -2
  14. package/DS1/1-root/figures.css +2 -2
  15. package/DS1/1-root/fonts/Inter-LICENSE.md +91 -2
  16. package/DS1/1-root/fonts.css +5 -4
  17. package/DS1/1-root/footer.css +2 -2
  18. package/DS1/1-root/header.css +5 -4
  19. package/DS1/1-root/inter-arrows.css +11 -0
  20. package/DS1/1-root/notice.css +2 -2
  21. package/DS1/1-root/one.css +5 -4
  22. package/DS1/1-root/progress.css +3 -3
  23. package/DS1/1-root/prose.css +5 -5
  24. package/DS1/1-root/row.css +1 -1
  25. package/DS1/1-root/table.css +1 -1
  26. package/DS1/1-root/text.css +5 -5
  27. package/DS1/2-core/chart/chart.css +1 -1
  28. package/DS1/2-core/ds-avatar.ts +47 -8
  29. package/DS1/2-core/styles/ds-activity.css +1 -1
  30. package/DS1/2-core/styles/ds-avatar.css +1 -1
  31. package/DS1/2-core/styles/ds-badge.css +1 -1
  32. package/DS1/2-core/styles/ds-button-host.css +3 -2
  33. package/DS1/2-core/styles/ds-button-split.css +1 -1
  34. package/DS1/2-core/styles/ds-button.css +5 -4
  35. package/DS1/2-core/styles/ds-composer.css +1 -1
  36. package/DS1/2-core/styles/ds-image.css +1 -1
  37. package/DS1/2-core/styles/ds-input.css +3 -3
  38. package/DS1/2-core/styles/ds-number.css +1 -1
  39. package/DS1/2-core/styles/ds-radio.css +1 -1
  40. package/DS1/2-core/styles/ds-tag.css +3 -2
  41. package/DS1/2-core/styles/ds-text.css +5 -5
  42. package/DS1/2-core/styles/ds-toast.css +1 -1
  43. package/DS1/2-core/styles/ds-token.css +1 -1
  44. package/DS1/2-core/styles/ds-tooltip.css +1 -1
  45. package/DS1/3-unit/context-trigger.ts +29 -2
  46. package/DS1/3-unit/ds-form.ts +2 -1
  47. package/DS1/3-unit/ds-table.ts +2 -1
  48. package/DS1/3-unit/styles/ds-calendar.css +4 -4
  49. package/DS1/3-unit/styles/ds-list.css +1 -1
  50. package/DS1/3-unit/styles/ds-matrix.css +2 -2
  51. package/DS1/3-unit/styles/ds-menu.css +1 -1
  52. package/DS1/3-unit/styles/ds-select.css +1 -1
  53. package/DS1/3-unit/styles/ds-sidebar.css +1 -1
  54. package/DS1/3-unit/styles/ds-table-of-contents.css +1 -1
  55. package/DS1/3-unit/styles/ds-token-field.css +1 -1
  56. package/DS1/4-page/ds-container.ts +2 -1
  57. package/DS1/4-page/styles/ds-overlay.css +1 -1
  58. package/DS1/4-page/styles/ds-page.css +1 -1
  59. package/DS1/4-page/styles/ds-panel.css +1 -1
  60. package/dist/0-face/constraint-panel.d.ts.map +1 -1
  61. package/dist/0-face/constraint-panel.js +28 -6
  62. package/dist/0-face/constraint-site.d.ts +1 -0
  63. package/dist/0-face/constraint-site.d.ts.map +1 -1
  64. package/dist/0-face/constraint-site.js +3 -2
  65. package/dist/0-face/constraints.d.ts.map +1 -1
  66. package/dist/0-face/constraints.js +27 -0
  67. package/dist/0-face/define.js +1 -1
  68. package/dist/0-face/fault-lines.d.ts +20 -0
  69. package/dist/0-face/fault-lines.d.ts.map +1 -0
  70. package/dist/0-face/fault-lines.js +172 -0
  71. package/dist/0-face/generated/toast-assets.d.ts.map +1 -1
  72. package/dist/0-face/generated/toast-assets.js +1 -1
  73. package/dist/2-core/ds-avatar.d.ts +5 -0
  74. package/dist/2-core/ds-avatar.d.ts.map +1 -1
  75. package/dist/2-core/ds-avatar.js +53 -9
  76. package/dist/3-unit/context-trigger.d.ts.map +1 -1
  77. package/dist/3-unit/context-trigger.js +32 -2
  78. package/dist/3-unit/ds-form.d.ts.map +1 -1
  79. package/dist/3-unit/ds-form.js +2 -1
  80. package/dist/3-unit/ds-table.d.ts.map +1 -1
  81. package/dist/3-unit/ds-table.js +2 -1
  82. package/dist/4-page/ds-container.d.ts.map +1 -1
  83. package/dist/4-page/ds-container.js +2 -1
  84. package/dist/design-system-1.bundle.js +406 -66
  85. package/dist/design-system-1.bundle.js.map +1 -1
  86. package/dist/design-system-1.bundle.min.js +3388 -3136
  87. package/dist/design-system-1.bundle.min.js.map +1 -1
  88. package/dist/design-system-1.css +1 -1
  89. package/dist/feedback.js +1 -1
  90. package/dist/feedback.js.map +1 -1
  91. package/package.json +6 -4
@@ -2,6 +2,95 @@
2
2
 
3
3
  `Inter-Arrows.woff2` is Inter Regular 4.1, cut down to its arrows (U+2190–21FF, U+27F0–27FF, U+2900–297F, U+2B00–2BFF). It is loaded as "Inter Arrows" and leads every typeface token, so an arrow is drawn in Inter whatever the text around it is set in.
4
4
 
5
- Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter).
5
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
6
6
 
7
- This font software is licensed under the SIL Open Font License, Version 1.1, available with a FAQ at https://openfontlicense.org.
7
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
8
+ This license is copied below, and is also available with a FAQ at:
9
+ http://scripts.sil.org/OFL
10
+
11
+ -----------------------------------------------------------
12
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
13
+ -----------------------------------------------------------
14
+
15
+ PREAMBLE
16
+ The goals of the Open Font License (OFL) are to stimulate worldwide
17
+ development of collaborative font projects, to support the font creation
18
+ efforts of academic and linguistic communities, and to provide a free and
19
+ open framework in which fonts may be shared and improved in partnership
20
+ with others.
21
+
22
+ The OFL allows the licensed fonts to be used, studied, modified and
23
+ redistributed freely as long as they are not sold by themselves. The
24
+ fonts, including any derivative works, can be bundled, embedded,
25
+ redistributed and/or sold with any software provided that any reserved
26
+ names are not used by derivative works. The fonts and derivatives,
27
+ however, cannot be released under any other type of license. The
28
+ requirement for fonts to remain under this license does not apply
29
+ to any document created using the fonts or their derivatives.
30
+
31
+ DEFINITIONS
32
+ "Font Software" refers to the set of files released by the Copyright
33
+ Holder(s) under this license and clearly marked as such. This may
34
+ include source files, build scripts and documentation.
35
+
36
+ "Reserved Font Name" refers to any names specified as such after the
37
+ copyright statement(s).
38
+
39
+ "Original Version" refers to the collection of Font Software components as
40
+ distributed by the Copyright Holder(s).
41
+
42
+ "Modified Version" refers to any derivative made by adding to, deleting,
43
+ or substituting -- in part or in whole -- any of the components of the
44
+ Original Version, by changing formats or by porting the Font Software to a
45
+ new environment.
46
+
47
+ "Author" refers to any designer, engineer, programmer, technical
48
+ writer or other person who contributed to the Font Software.
49
+
50
+ PERMISSION AND CONDITIONS
51
+ Permission is hereby granted, free of charge, to any person obtaining
52
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
53
+ redistribute, and sell modified and unmodified copies of the Font
54
+ Software, subject to the following conditions:
55
+
56
+ 1) Neither the Font Software nor any of its individual components,
57
+ in Original or Modified Versions, may be sold by itself.
58
+
59
+ 2) Original or Modified Versions of the Font Software may be bundled,
60
+ redistributed and/or sold with any software, provided that each copy
61
+ contains the above copyright notice and this license. These can be
62
+ included either as stand-alone text files, human-readable headers or
63
+ in the appropriate machine-readable metadata fields within text or
64
+ binary files as long as those fields can be easily viewed by the user.
65
+
66
+ 3) No Modified Version of the Font Software may use the Reserved Font
67
+ Name(s) unless explicit written permission is granted by the corresponding
68
+ Copyright Holder. This restriction only applies to the primary font name as
69
+ presented to the users.
70
+
71
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
72
+ Software shall not be used to promote, endorse or advertise any
73
+ Modified Version, except to acknowledge the contribution(s) of the
74
+ Copyright Holder(s) and the Author(s) or with their explicit written
75
+ permission.
76
+
77
+ 5) The Font Software, modified or unmodified, in part or in whole,
78
+ must be distributed entirely under this license, and must not be
79
+ distributed under any other license. The requirement for fonts to
80
+ remain under this license does not apply to any document created
81
+ using the Font Software.
82
+
83
+ TERMINATION
84
+ This license becomes null and void if any of the above conditions are
85
+ not met.
86
+
87
+ DISCLAIMER
88
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
89
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
90
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
91
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
92
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
93
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
94
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
95
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
96
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,4 +1,4 @@
1
- /* version 0.3.0 */
1
+ /* version 0.3.2 */
2
2
 
3
3
  /* Design system 1's faces and the typeface tokens that name them, on their
4
4
  own: a page that does not load one.css links this sheet (one.css imports
@@ -31,16 +31,17 @@
31
31
  font-display: swap;
32
32
  }
33
33
 
34
- /* Arrows are always Inter: its arrows alone (fonts/Inter-LICENSE.md), first in
35
- every typeface token, so the unicode-range draws only arrows with it. */
34
+ /* inter-arrows:start — generated by scripts/fonts/embed-arrows.mjs */
35
+ /* Inter 4.1, SIL Open Font License 1.1; see fonts/Inter-LICENSE.md. */
36
36
  @font-face {
37
37
  font-family: "Inter Arrows";
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KkfP+unUPnMXF951r1zrvF6+a/+639csFPKgEyW+97vIs5syNdyVLNJZwOHwof5nw+/r5b1cXR8rXWu45MzQ77xUruTGqEZ8+ht9vmPHv31tWVsK+UpNRuXLT3/9nhMP49HA0A9Ir1255/a+z8NrK9P9fb1pbmR42+LXundPRbC9q05Fuqejd2iXNY9LObjn7Q6p3ixcjdrpktDVpd9vigy8uXDlbFNRp+G/Vf3uq2uzN2Y3zG5BXFvZNSgeVCCJRYRSjGcNUjGVqxjEd07MoEAerwYNrFQS49dbqNK7BEP7fcw5GYuImVRAlMOWE1mECGRySTACRPfYnkP3mR0AEMnQTVHQJamBGdxVpHCYq+V9gV0JvFQc3wmPxmjmwgONDCIg3+DuU/lFyVN+/OZoD8JG4rDNNH/m6zruc6J3ci/9EMyhA/L/VUrAB8P/XuxXe31ebMJCMVG/CDf4Ebqh+BCEEjWwtXr+8X+hewyx6kIqd7G4yHCS7JpZ2dSr1kqkWdSNwCjcAJzDMju8o/BvcMN1SLeweSuAa44Rf/As6PCKgzgy8TGrEWzQ9L0kcGonXAFqgmU3wJtZT9LBs2ljebEZ94WyV7u78nVn1A4Mh8hUo4ZPJwyvArLOOOunOzMrLxWyUPAEuPmYT+eTL4pIuwGyQoACvfD5+sHby42keQTlS+XTVXsfUnX14ZHJnO710/kjvJI1LytDF3TmZxTjZ2CfZFu3Ohc7izHq740bwy5Qvj7njlXZmp70r+9uCeQAAAAA=") format("woff2"), url("./fonts/Inter-Arrows.woff2") format("woff2");
39
39
  unicode-range: U+2190-21FF, U+27F0-27FF, U+2900-297F, U+2B00-2BFF;
40
40
  font-weight: 100 900;
41
41
  font-style: normal;
42
42
  font-display: swap;
43
43
  }
44
+ /* inter-arrows:end */
44
45
 
45
46
  /* The code font: Iosevka Extended, subset for code (fonts/Iosevka-LICENSE.md). */
46
47
  @font-face {
@@ -51,7 +51,7 @@
51
51
  padding: calc(2 * var(--ds-unit)) var(--ds-unit) var(--ds-unit);
52
52
  box-shadow: inset 0 1px var(--ds-footer-line, var(--ds-border-color));
53
53
  color: var(--ds-text-color);
54
- font-family: var(--ds-typeface-regular);
54
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
55
55
  font-feature-settings: var(--ds-font-features);
56
56
  font-size: var(--ds-type-size-default);
57
57
  font-weight: var(--ds-type-weight-default);
@@ -81,7 +81,7 @@
81
81
  align-self: flex-start;
82
82
  height: var(--ds-unit);
83
83
  color: inherit;
84
- font-family: var(--ds-typeface-medium);
84
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
85
85
  font-weight: var(--ds-type-weight-bold);
86
86
  text-decoration: none;
87
87
  }
@@ -39,7 +39,7 @@
39
39
  margin: 0;
40
40
  padding: var(--ds-unit);
41
41
  color: var(--ds-text-color);
42
- font-family: var(--ds-typeface-regular);
42
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
43
43
  font-feature-settings: var(--ds-font-features);
44
44
  font-size: var(--ds-type-size-default);
45
45
  font-weight: var(--ds-type-weight-default);
@@ -51,7 +51,8 @@
51
51
  .ds-header--sticky {
52
52
  position: sticky;
53
53
  top: 0;
54
- z-index: 1;
54
+ /* Above a section's own layers (a panel laid over a picture stands at 1), so the header is never covered as the page scrolls. */
55
+ z-index: 2;
55
56
  background: var(--ds-header-paper, var(--background, Canvas));
56
57
  box-shadow: inset 0 -1px var(--ds-header-line, transparent);
57
58
  }
@@ -67,7 +68,7 @@
67
68
  gap: calc(var(--ds-unit) / 2);
68
69
  height: var(--ds-unit);
69
70
  color: inherit;
70
- font-family: var(--ds-typeface-medium);
71
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
71
72
  font-weight: var(--ds-type-weight-bold);
72
73
  text-decoration: none;
73
74
  white-space: nowrap;
@@ -181,6 +182,6 @@
181
182
  }
182
183
  .ds-header--app .ds-header__brand {
183
184
  min-width: 0;
184
- font-family: var(--ds-typeface-regular);
185
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
185
186
  font-weight: var(--ds-type-weight-default);
186
187
  }
@@ -0,0 +1,11 @@
1
+ /* inter-arrows:start — generated by scripts/fonts/embed-arrows.mjs */
2
+ /* Inter 4.1, SIL Open Font License 1.1; see fonts/Inter-LICENSE.md. */
3
+ @font-face {
4
+ font-family: "Inter Arrows";
5
+ src: url("data:font/woff2;base64,d09GMgABAAAAAAhsAAwAAAAAE/AAAAgYAAQAQgAAAAAAAAAAAAAAAAAAAAAAAAAAG4IQHIJABmAAgUoKmFSTFQE2AiQDgVILbAAEIAWCeAcgG/IPUVSSUkP8OKhurjw+YSRJckVy9EdbYdxEQO3323u4VT5ZvOt0cU0kQjRJmiiJbBWaRyJRfXjctPeTEEICNEAnTibtTBw7Ko60PqSWk06snSmdaGbGRKXtlO1EbArF3GAhxrHN0s1NuP8TbN7/Wmpv7gcYXSJcXhwaFWNm9vaQ/wYBXNLWRlUBKQCSlXElVQ3uXIXsq1CtcLUlzYZwUqMSAguR199eAKn6SsI0Dx9rRf3xEl8OYqZ9rmzELKQG8hCDAf4/CMh9OkTzLl8e9NJdG0SOauJFAeJYznANTqhGU6APZfKI0hADSvVFob1rI1SH3UXqYwrQ4US9boJQHTri/F+SiUuS2VxnlF6/DEX114cwnpoTADfNwdVgQbK8b0u9jZfhYyuE0YhliO+4cECDoHrzNKN0CVS1uUD4fjTRsTnB0R3CCNHm4SJNoxKxmNs7sUC00asCgOqO1QYAYDw6Go76OmJMEoc6ukV11F2wj9FAQ400FqOZ5lpowkzSFIUgRBCf0IQsggoSapjbgFM1X/SAedH6Jqo4bA7GO7jYI9vax1lwTlrUhlWfe28Ebk7yy1C6xQ+pHsBBe7cIxIF8NCAjH+MInafNQOxE2ikdkA5LJ6V70gPpkfRS+lr6Vvoh9nUrUxv2wwdi29IOab90SDpxRkakr3z+/lM+50Q+BZ4LIl0i3SJ9IrbIuMigyADgCVUSCDOg3DuoxLcRGKgY6UTT4Am02umoLQpLj8ERAXWAOVAG0ScQ/w9mQLA56VZ6B0pU5WQ3H1gB3gGTprlWLb2+Im6IidGzO+ldTExsrLpkMEz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/J2s280WTLxijAYVlB0+7Og8emdkkbP6aTAZGs0w5M/HMkVlNDjbBgK+T4UPhsGUJ9670zPUs1fKQT3frptZfGdL5b9/060JKkfP+unUPnMXF951r1zrvF6+a/+639csFPKgEyW+97vIs5syNdyVLNJZwOHwof5nw+/r5b1cXR8rXWu45MzQ77xUruTGqEZ8+ht9vmPHv31tWVsK+UpNRuXLT3/9nhMP49HA0A9Ir1255/a+z8NrK9P9fb1pbmR42+LXundPRbC9q05Fuqejd2iXNY9LObjn7Q6p3ixcjdrpktDVpd9vigy8uXDlbFNRp+G/Vf3uq2uzN2Y3zG5BXFvZNSgeVCCJRYRSjGcNUjGVqxjEd07MoEAerwYNrFQS49dbqNK7BEP7fcw5GYuImVRAlMOWE1mECGRySTACRPfYnkP3mR0AEMnQTVHQJamBGdxVpHCYq+V9gV0JvFQc3wmPxmjmwgONDCIg3+DuU/lFyVN+/OZoD8JG4rDNNH/m6zruc6J3ci/9EMyhA/L/VUrAB8P/XuxXe31ebMJCMVG/CDf4Ebqh+BCEEjWwtXr+8X+hewyx6kIqd7G4yHCS7JpZ2dSr1kqkWdSNwCjcAJzDMju8o/BvcMN1SLeweSuAa44Rf/As6PCKgzgy8TGrEWzQ9L0kcGonXAFqgmU3wJtZT9LBs2ljebEZ94WyV7u78nVn1A4Mh8hUo4ZPJwyvArLOOOunOzMrLxWyUPAEuPmYT+eTL4pIuwGyQoACvfD5+sHby42keQTlS+XTVXsfUnX14ZHJnO710/kjvJI1LytDF3TmZxTjZ2CfZFu3Ohc7izHq740bwy5Qvj7njlXZmp70r+9uCeQAAAAA=") format("woff2");
6
+ unicode-range: U+2190-21FF, U+27F0-27FF, U+2900-297F, U+2B00-2BFF;
7
+ font-weight: 100 900;
8
+ font-style: normal;
9
+ font-display: swap;
10
+ }
11
+ /* inter-arrows:end */
@@ -47,7 +47,7 @@
47
47
  align-items: start;
48
48
  margin: 0;
49
49
  color: var(--ds-notice-ink);
50
- font-family: var(--ds-typeface-regular);
50
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
51
51
  font-feature-settings: var(--ds-font-features);
52
52
  font-size: var(--ds-type-size-default);
53
53
  font-weight: var(--ds-type-weight-default);
@@ -108,7 +108,7 @@
108
108
  }
109
109
 
110
110
  .ds-notice__title {
111
- font-family: var(--ds-typeface-medium);
111
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
112
112
  font-weight: var(--ds-type-weight-bold);
113
113
  }
114
114
 
@@ -1,4 +1,4 @@
1
- /* version 0.3.0 */
1
+ /* version 0.3.2 */
2
2
 
3
3
  @import "./grid.css";
4
4
  @import "./component-tokens.css";
@@ -191,7 +191,7 @@ body {
191
191
  background: transparent;
192
192
  color: var(--button-text-color);
193
193
  cursor: pointer;
194
- font-family: var(--typeface-regular);
194
+ font-family: "Inter Arrows", var(--typeface-regular);
195
195
  font-size: var(--type-size-default);
196
196
  line-height: var(--type-lineheight-default);
197
197
  letter-spacing: var(--type-letterspacing-default);
@@ -239,14 +239,15 @@ body {
239
239
  padding: 0 calc(2px * var(--sf));
240
240
  background: var(--button-background-color-secondary);
241
241
  color: var(--button-text-color-secondary);
242
- font-family: var(--typeface-regular);
242
+ font-family: "Inter Arrows", var(--typeface-regular);
243
243
  font-size: var(--type-size-default);
244
244
  line-height: var(--type-lineheight-default);
245
245
  letter-spacing: var(--type-letterspacing-default);
246
246
  }
247
247
 
248
248
  .ds-input::placeholder {
249
- color: var(--ds-input-placeholder-color, var(--ds-text-color-muted));
249
+ /* one.css is copied on its own, without component-tokens.css: the fallback is that file's muted ink. */
250
+ color: var(--ds-input-placeholder-color, var(--ds-text-color-muted, light-dark(#5f5f5f, #cacaca)));
250
251
  }
251
252
 
252
253
  .ds-card {
@@ -133,7 +133,7 @@
133
133
  padding: 0;
134
134
  list-style: none;
135
135
  color: var(--ds-text-color);
136
- font-family: var(--ds-typeface-regular);
136
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
137
137
  font-feature-settings: var(--ds-font-features);
138
138
  font-size: var(--ds-type-size-default);
139
139
  font-weight: var(--ds-type-weight-default);
@@ -225,7 +225,7 @@
225
225
  box-shadow: inset 0 0 0 1px var(--ds-progress-mark-line);
226
226
  color: var(--ds-progress-mark-ink);
227
227
  --ds-icon-color: var(--ds-progress-mark-ink);
228
- font-family: var(--ds-typeface-medium);
228
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
229
229
  font-size: var(--ds-type-size-small);
230
230
  font-weight: var(--ds-type-weight-bold);
231
231
  font-variant-numeric: tabular-nums;
@@ -250,7 +250,7 @@
250
250
  }
251
251
 
252
252
  .ds-progress__step--current .ds-progress__label {
253
- font-family: var(--ds-typeface-medium);
253
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
254
254
  font-weight: var(--ds-type-weight-bold);
255
255
  }
256
256
 
@@ -27,7 +27,7 @@
27
27
 
28
28
  [data-ds-prose] {
29
29
  color: var(--ds-text-color);
30
- font-family: var(--ds-typeface-regular);
30
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
31
31
  font-feature-settings: var(--ds-font-features);
32
32
  font-size: var(--ds-type-size-default);
33
33
  font-weight: var(--ds-type-weight-default);
@@ -59,7 +59,7 @@
59
59
 
60
60
  [data-ds-prose] :where(h1, h2, h3, h4, h5, h6):not(:where([data-ds-not-prose] *)) {
61
61
  color: var(--ds-text-color);
62
- font-family: var(--ds-typeface-medium);
62
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
63
63
  font-size: var(--ds-type-size-default);
64
64
  font-weight: var(--ds-type-weight-bold);
65
65
  line-height: var(--ds-unit);
@@ -92,7 +92,7 @@
92
92
  }
93
93
 
94
94
  [data-ds-prose] :where(dt):not(:where([data-ds-not-prose] *)) {
95
- font-family: var(--ds-typeface-medium);
95
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
96
96
  font-weight: var(--ds-type-weight-bold);
97
97
  }
98
98
 
@@ -115,7 +115,7 @@
115
115
  }
116
116
 
117
117
  [data-ds-prose] :where(strong, b, th):not(:where([data-ds-not-prose] *)) {
118
- font-family: var(--ds-typeface-medium);
118
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
119
119
  font-weight: var(--ds-type-weight-bold);
120
120
  }
121
121
 
@@ -133,7 +133,7 @@
133
133
  /* Code: thirteen on the same one-square lines, in the code face. */
134
134
 
135
135
  [data-ds-prose] :where(code, kbd, samp, pre):not(:where([data-ds-not-prose] *)) {
136
- font-family: var(--ds-typeface-mono);
136
+ font-family: "Inter Arrows", var(--ds-typeface-mono);
137
137
  font-size: calc(var(--ds-code-text-size, 13px) * var(--ds-sf, 1));
138
138
  line-height: var(--ds-unit);
139
139
  letter-spacing: 0;
@@ -283,7 +283,7 @@ button.ds-row[aria-disabled="true"]:hover::after {
283
283
  padding: 0;
284
284
  list-style: none;
285
285
  color: var(--ds-text-color);
286
- font-family: var(--ds-typeface-regular);
286
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
287
287
  font-feature-settings: var(--ds-font-features);
288
288
  font-size: var(--ds-type-size-default);
289
289
  font-weight: var(--ds-type-weight-default);
@@ -60,7 +60,7 @@
60
60
  border-collapse: collapse;
61
61
  border-spacing: 0;
62
62
  color: var(--ds-text-color, inherit);
63
- font-family: var(--ds-typeface-regular, inherit);
63
+ font-family: "Inter Arrows", var(--ds-typeface-regular, inherit);
64
64
  font-feature-settings: var(--ds-font-features, normal);
65
65
  font-size: var(--ds-type-size-default, 14px);
66
66
  letter-spacing: var(--ds-type-letterspacing-default, normal);
@@ -30,7 +30,7 @@
30
30
 
31
31
  body {
32
32
  color: var(--ds-text-color);
33
- font-family: var(--ds-typeface-regular);
33
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
34
34
  font-size: var(--ds-type-size-default);
35
35
  line-height: var(--ds-unit);
36
36
  -webkit-font-smoothing: antialiased;
@@ -41,7 +41,7 @@ body {
41
41
  .ds-text {
42
42
  margin: 0;
43
43
  color: var(--ds-text-color);
44
- font-family: var(--ds-typeface-regular);
44
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
45
45
  font-feature-settings: var(--ds-font-features);
46
46
  font-size: var(--ds-type-size-default);
47
47
  font-weight: var(--ds-type-weight-default);
@@ -61,13 +61,13 @@ body {
61
61
  }
62
62
 
63
63
  .ds-text--heading {
64
- font-family: var(--ds-typeface-medium);
64
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
65
65
  font-size: var(--ds-type-size-heading);
66
66
  font-weight: var(--ds-type-weight-bold);
67
67
  }
68
68
 
69
69
  .ds-text--display {
70
- font-family: var(--ds-typeface-medium);
70
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
71
71
  font-size: var(--ds-type-size-display);
72
72
  font-weight: var(--ds-type-weight-bold);
73
73
  line-height: calc(2 * var(--ds-unit));
@@ -75,7 +75,7 @@ body {
75
75
  }
76
76
 
77
77
  .ds-text--strong {
78
- font-family: var(--ds-typeface-medium);
78
+ font-family: "Inter Arrows", var(--ds-typeface-medium);
79
79
  font-weight: var(--ds-type-weight-bold);
80
80
  }
81
81
 
@@ -1,4 +1,4 @@
1
- :host { --ds-chart-ink: var(--text-color, #1e1e1e); --ds-chart-muted: var(--ds-title-color, #6e6e6e); --ds-chart-faint: var(--slate-light, #e6e6e6); --ds-chart-up: var(--apple-green, #99ff73); --ds-chart-down: var(--tuned-red, #ff5f5f); --ds-chart-live: var(--ds-chart-up); --ds-chart-line: var(--ds-chart-faint); --ds-chart-fill: var(--ds-chart-faint); --ds-chart-small: calc(var(--ds-chart-unit, 20px) / 2); font-family: var(--ds-chart-font, var(--typeface-regular, sans-serif)); }
1
+ :host { --ds-chart-ink: var(--text-color, #1e1e1e); --ds-chart-muted: var(--ds-title-color, #6e6e6e); --ds-chart-faint: var(--slate-light, #e6e6e6); --ds-chart-up: var(--apple-green, #99ff73); --ds-chart-down: var(--tuned-red, #ff5f5f); --ds-chart-live: var(--ds-chart-up); --ds-chart-line: var(--ds-chart-faint); --ds-chart-fill: var(--ds-chart-faint); --ds-chart-small: calc(var(--ds-chart-unit, 20px) / 2); font-family: "Inter Arrows", var(--ds-chart-font, var(--typeface-regular, sans-serif)); }
2
2
  :host([hidden]) { display: none !important; }
3
3
  * { box-sizing: border-box; }
4
4
  :host([data-chart-kind="line"]) {
@@ -1,6 +1,7 @@
1
1
  import { LitElement, html, nothing, unsafeCSS, type PropertyValues } from "lit";
2
2
  import { styleMap } from "lit/directives/style-map.js";
3
3
  import { keyed } from "lit/directives/keyed.js";
4
+ import { contrastRatio, colorReader, composite, type RGBA } from "../0-face/text-contrast";
4
5
  import { define } from "../0-face/define";
5
6
  import { provideIcons } from "./ds-icon";
6
7
  import { avatarIcon } from "./generated/icon-avatar";
@@ -12,9 +13,11 @@ provideIcons({ avatar: avatarIcon });
12
13
 
13
14
  /** The ink that reads on a fill: black on a light one, white on a dark one. */
14
15
  const inkOn = (rgb: number[]) => {
15
- const linear = rgb.map((n) => (n <= 0.04045 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4));
16
- const luminance = linear[0] * 0.2126 + linear[1] * 0.7152 + linear[2] * 0.0722;
17
- return luminance > 0.22 ? "var(--ds-black)" : "var(--ds-white)";
16
+ const fill = [...rgb, 1] as RGBA;
17
+ const white: RGBA = [1, 1, 1, 1], black: RGBA = [42 / 255, 42 / 255, 42 / 255, 1];
18
+ if (contrastRatio(black, fill) >= 4.5) return "var(--ds-black)";
19
+ if (contrastRatio(white, fill) >= 4.5) return "var(--ds-white)";
20
+ return "black";
18
21
  };
19
22
 
20
23
  /** Saved identity colours are hex; their ink must stay legible in either theme. */
@@ -93,6 +96,28 @@ export class Avatar extends LitElement {
93
96
  this.fit = "cover";
94
97
  this.logo = this.mask = this.outlined = this.pending = this.plain = this.loaded = this.failed = false;
95
98
  }
99
+ private inkObserver?: MutationObserver;
100
+ private inkFrame = 0;
101
+ private readonly queueInk = () => {
102
+ const view = this.ownerDocument.defaultView!;
103
+ if (!this.inkFrame) this.inkFrame = view.requestAnimationFrame(() => { this.inkFrame = 0; this.resolveInk(); });
104
+ };
105
+ connectedCallback() {
106
+ super.connectedCallback();
107
+ const view = this.ownerDocument.defaultView!;
108
+ this.inkObserver = new view.MutationObserver(this.queueInk);
109
+ // Observe only the painted ancestors, never our own shadow's ink writes.
110
+ for (let parent: Element | null = this; parent; parent = parent.parentElement ?? (parent.getRootNode() as ShadowRoot).host ?? null) {
111
+ this.inkObserver.observe(parent, { attributes: true, attributeFilter: ['class', 'style', 'data-theme'] });
112
+ }
113
+ view.addEventListener('load', this.queueInk, true);
114
+ }
115
+ disconnectedCallback() {
116
+ super.disconnectedCallback(); this.inkObserver?.disconnect();
117
+ const view = this.ownerDocument.defaultView!;
118
+ view.cancelAnimationFrame(this.inkFrame); this.inkFrame = 0;
119
+ view.removeEventListener('load', this.queueInk, true);
120
+ }
96
121
  protected willUpdate(changed: PropertyValues<this>) {
97
122
  if (changed.has("src")) {
98
123
  this.loaded = false;
@@ -102,7 +127,7 @@ export class Avatar extends LitElement {
102
127
  }
103
128
  /** A fill named by a variable (`var(--brand-highlight)`) gets its ink once the browser has resolved it. */
104
129
  protected updated() {
105
- if (this.ink || this.pending || this.plain || !this.color || avatarInk(this.color)) return;
130
+ if (this.ink || this.pending || this.plain) return;
106
131
  this.resolveInk();
107
132
  }
108
133
  /** Reads the fill as drawn; while the variable is still undefined (its stylesheet on its way), looks again next
@@ -110,9 +135,23 @@ export class Avatar extends LitElement {
110
135
  private resolveInk(tries = 0) {
111
136
  const frame = this.renderRoot.querySelector<HTMLElement>(".frame");
112
137
  if (!frame || !this.isConnected) return;
113
- const ink = inkOnResolved(getComputedStyle(frame).backgroundColor);
114
- if (ink) { frame.style.color = ink; return; }
115
- if (tries < 60) requestAnimationFrame(() => this.resolveInk(tries + 1));
138
+ if (this.ink || this.pending || this.plain) return;
139
+ const view = this.ownerDocument.defaultView!;
140
+ const read = colorReader(this.ownerDocument);
141
+ let fill = read(view.getComputedStyle(frame).backgroundColor);
142
+ if (fill && fill[3] > 0) {
143
+ for (let parent: Element | null = this; parent && fill[3] < 1; parent = parent.parentElement ?? (parent.getRootNode() as ShadowRoot).host ?? null) {
144
+ const background = read(view.getComputedStyle(parent).backgroundColor);
145
+ if (background) fill = composite(fill, background);
146
+ }
147
+ if (fill[3] < 1) return;
148
+ const tokens = view.getComputedStyle(this);
149
+ const black = read(tokens.getPropertyValue('--ds-black').trim()), white = read(tokens.getPropertyValue('--ds-white').trim());
150
+ const ink = black && contrastRatio(black, fill) >= 4.5 ? 'var(--ds-black)' : white && contrastRatio(white, fill) >= 4.5 ? 'var(--ds-white)' : contrastRatio([0,0,0,1], fill) >= 4.5 ? 'black' : 'white';
151
+ if (frame.style.color !== ink) frame.style.color = ink;
152
+ return;
153
+ }
154
+ if (tries < 60) this.ownerDocument.defaultView!.requestAnimationFrame(() => this.resolveInk(tries + 1));
116
155
  if (tries === 0 && this.ownerDocument.readyState !== "complete") {
117
156
  this.ownerDocument.defaultView?.addEventListener("load", () => this.resolveInk(60), { once: true });
118
157
  }
@@ -129,7 +168,7 @@ export class Avatar extends LitElement {
129
168
  >`;
130
169
  return html`<span
131
170
  class="frame"
132
- style=${styleMap({ backgroundColor: !this.pending && !this.plain ? this.color || undefined : undefined, color: !this.pending ? this.ink || avatarInk(this.color) : undefined })}
171
+ style=${styleMap({ backgroundColor: !this.pending && !this.plain ? this.color || undefined : undefined, color: !this.pending ? this.ink || (!this.plain ? avatarInk(this.color) : undefined) : undefined })}
133
172
  role=${this.label ? "img" : nothing}
134
173
  aria-label=${this.label || nothing}
135
174
  aria-hidden=${this.label ? nothing : "true"}
@@ -6,7 +6,7 @@
6
6
  .frame:first-child { opacity: 1; }
7
7
  i { display: block; }
8
8
  i.ink { background: currentColor; }
9
- .words { font-family: var(--ds-typeface-regular); font-size: var(--ds-type-size-default); line-height: var(--ds-type-lineheight-default); color: var(--ds-text-color); }
9
+ .words { font-family: "Inter Arrows", var(--ds-typeface-regular); font-size: var(--ds-type-size-default); line-height: var(--ds-type-lineheight-default); color: var(--ds-text-color); }
10
10
  /* Eight held poses, 200ms each. No spinner, percentage or synthetic progress. */
11
11
  :host([active]) .frame { animation: ds-activity-pose 1600ms linear infinite; }
12
12
  @keyframes ds-activity-pose { 0%, 12.49% { opacity: 1; } 12.5%, 100% { opacity: 0; } }
@@ -36,7 +36,7 @@
36
36
  corner-shape: round;
37
37
  background: var(--ds-avatar-background, var(--ds-fill));
38
38
  color: var(--ds-avatar-color, var(--ds-text-color));
39
- font: var(--ds-type-weight-default) var(--ds-type-size-default)/1 var(--ds-typeface-regular);
39
+ font: var(--ds-type-weight-default) var(--ds-type-size-default)/1 "Inter Arrows", var(--ds-typeface-regular);
40
40
  letter-spacing: normal;
41
41
  user-select: none;
42
42
  -webkit-user-select: none;
@@ -13,7 +13,7 @@
13
13
  padding-inline: calc(4px * var(--ds-sf));
14
14
  background: var(--ds-badge-background, var(--ds-fill));
15
15
  color: var(--ds-badge-color, var(--ds-text-color));
16
- font-family: var(--ds-typeface-regular);
16
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
17
17
  font-feature-settings: var(--ds-font-features);
18
18
  font-size: var(--ds-type-size-default);
19
19
  line-height: var(--ds-type-lineheight-default);
@@ -19,7 +19,7 @@
19
19
  corner-shape: var(--ds-corner-shape, round) !important;
20
20
  background: var(--ds-button-background, transparent) !important;
21
21
  color: var(--ds-button-color, var(--ds-button-text-color)) !important;
22
- font-family: var(--ds-typeface-regular) !important;
22
+ font-family: "Inter Arrows", var(--ds-typeface-regular) !important;
23
23
  font-feature-settings: var(--ds-font-features) !important;
24
24
  font-size: var(--_button-font-size, var(--ds-type-size-default)) !important;
25
25
  font-weight: var(--ds-type-weight-default) !important;
@@ -39,7 +39,8 @@
39
39
  }
40
40
 
41
41
  :host([fit][control="slotted"]) ::slotted(:is(button, a)) {
42
- width: max-content !important;
42
+ /* The host hugs on the grid; its visible face must occupy that same box. */
43
+ width: 100% !important;
43
44
  min-width: var(--ds-button-min-width, 0px) !important;
44
45
  justify-content: var(--ds-button-align, flex-start) !important;
45
46
  }
@@ -29,7 +29,7 @@
29
29
  corner-shape: var(--ds-corner-shape, round);
30
30
  background: var(--ds-button-background-color-secondary);
31
31
  color: var(--ds-text-color-muted);
32
- font-family: var(--ds-typeface-regular);
32
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
33
33
  font-feature-settings: var(--ds-font-features);
34
34
  font-size: var(--ds-type-size-default);
35
35
  font-weight: var(--ds-type-weight-default);
@@ -46,7 +46,8 @@
46
46
  }
47
47
  :host([fit]) :is(button, a) {
48
48
  flex: 0 0 auto;
49
- width: max-content;
49
+ /* Hug sizing belongs to the host, including its grid rounding. */
50
+ width: 100%;
50
51
  min-width: var(--ds-button-min-width, 0px);
51
52
  justify-content: var(--ds-button-align, flex-start);
52
53
  }
@@ -73,7 +74,7 @@
73
74
  cursor: pointer;
74
75
  padding: 0;
75
76
  color: var(--button-color, var(--button-text-color));
76
- font-family: var(--ds-typeface-regular);
77
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
77
78
  font-size: var(--_button-font-size, var(--ds-type-size-default));
78
79
  line-height: var(--ds-type-lineheight-default);
79
80
  letter-spacing: var(--ds-type-letterspacing-default);
@@ -109,7 +110,7 @@
109
110
  background-color: var(--ds-button-primary-fill, var(--accent-color));
110
111
  color: var(--ds-button-primary-text, var(--button-text-color-on-light, var(--black)));
111
112
  text-decoration-line: none;
112
- font-family: var(--ds-typeface-regular);
113
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
113
114
  padding: 0 var(--_button-padding, calc(var(--ds-button-inset, 4px) * var(--ds-sf)));
114
115
  }
115
116
 
@@ -118,7 +119,7 @@
118
119
  :is(button, a)[secondary] {
119
120
  background-color: var(--ds-button-secondary-fill, var(--button-background-color-secondary));
120
121
  color: var(--ds-button-color, var(--ds-button-text-color));
121
- font-family: var(--ds-typeface-regular);
122
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
122
123
  padding: 0 var(--_button-padding, calc(var(--ds-button-inset, 4px) * var(--ds-sf)));
123
124
  }
124
125
 
@@ -9,7 +9,7 @@
9
9
  padding: calc(4px * var(--ds-sf)) !important;
10
10
  border: 1px solid var(--ds-border-color) !important;
11
11
  border-radius: calc(4px * var(--ds-sf)) !important;
12
- font-family: var(--ds-typeface-regular) !important;
12
+ font-family: "Inter Arrows", var(--ds-typeface-regular) !important;
13
13
  font-size: var(--ds-type-size-default) !important;
14
14
  font-weight: var(--ds-type-weight-default) !important;
15
15
  line-height: var(--ds-type-lineheight-default) !important;
@@ -8,7 +8,7 @@ img { display: block; width: 100%; max-width: 100%; }
8
8
  figcaption {
9
9
  margin-top: calc(var(--ds-unit) / 2);
10
10
  color: var(--ds-text-color-muted);
11
- font-family: var(--ds-typeface-regular);
11
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
12
12
  font-feature-settings: var(--ds-font-features);
13
13
  font-size: var(--ds-type-size-default);
14
14
  line-height: var(--ds-row-height);
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  label {
32
- font-family: var(--ds-typeface-regular);
32
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
33
33
  font-size: var(--ds-type-size-default);
34
34
  line-height: var(--ds-row-height);
35
35
  color: var(--ds-text-color);
@@ -47,7 +47,7 @@ label {
47
47
  border: none;
48
48
  padding: 0 calc(2px * var(--ds-sf, 1));
49
49
  font-size: var(--ds-type-size-default);
50
- font-family: var(--ds-typeface-regular);
50
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
51
51
  /* The field's ink, whole, before focus too: a dimmed grey at half opacity read at 2:1 (color.text-contrast). */
52
52
  color: var(--ds-input-color, #2a2a2a);
53
53
  line-height: calc(16px * var(--ds-sf, 1));
@@ -122,7 +122,7 @@ input {
122
122
  margin: 0;
123
123
  min-width: 0;
124
124
  color: var(--ds-danger-color);
125
- font-family: var(--ds-typeface-regular);
125
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
126
126
  font-feature-settings: var(--ds-font-features);
127
127
  font-size: var(--ds-type-size-default);
128
128
  font-weight: var(--ds-type-weight-default);
@@ -28,7 +28,7 @@
28
28
  corner-shape: var(--ds-corner-shape, round);
29
29
  background: var(--ds-number-background, var(--ds-input-background));
30
30
  color: var(--ds-number-color, var(--ds-input-color));
31
- font-family: var(--ds-typeface-regular);
31
+ font-family: "Inter Arrows", var(--ds-typeface-regular);
32
32
  font-feature-settings: var(--ds-font-features);
33
33
  font-size: var(--ds-type-size-default);
34
34
  font-weight: var(--ds-type-weight-default);