@guardian/stand 0.0.9 → 0.0.11

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 (158) hide show
  1. package/README.md +1122 -1
  2. package/dist/avatar.cjs +9 -0
  3. package/dist/avatar.js +2 -0
  4. package/dist/button.cjs +9 -0
  5. package/dist/button.js +2 -0
  6. package/dist/components/TitleText.cjs +28 -0
  7. package/dist/components/TitleText.js +22 -0
  8. package/dist/components/avatar/Avatar.cjs +57 -0
  9. package/dist/components/avatar/Avatar.js +27 -0
  10. package/dist/components/avatar/styles.cjs +33 -0
  11. package/dist/components/avatar/styles.js +29 -0
  12. package/dist/components/avatar/types.cjs +16 -0
  13. package/dist/components/avatar/types.js +14 -0
  14. package/dist/components/button/Button.cjs +38 -0
  15. package/dist/components/button/Button.js +19 -0
  16. package/dist/components/button/styles.cjs +68 -0
  17. package/dist/components/button/styles.js +63 -0
  18. package/dist/components/icon/Icon.cjs +46 -0
  19. package/dist/components/icon/Icon.js +19 -0
  20. package/dist/components/icon/styles.cjs +27 -0
  21. package/dist/components/icon/styles.js +20 -0
  22. package/dist/components/icon-button/IconButton.cjs +45 -0
  23. package/dist/components/icon-button/IconButton.js +26 -0
  24. package/dist/components/icon-button/styles.cjs +9 -0
  25. package/dist/components/icon-button/styles.js +6 -0
  26. package/dist/components/icon-link-button/IconLinkButton.cjs +47 -0
  27. package/dist/components/icon-link-button/IconLinkButton.js +23 -0
  28. package/dist/components/icon-link-button/styles.cjs +9 -0
  29. package/dist/components/icon-link-button/styles.js +6 -0
  30. package/dist/components/link-button/LinkButton.cjs +35 -0
  31. package/dist/components/link-button/LinkButton.js +16 -0
  32. package/dist/components/link-button/styles.cjs +9 -0
  33. package/dist/components/link-button/styles.js +6 -0
  34. package/dist/components/typography/Typography.cjs +26 -0
  35. package/dist/components/typography/Typography.js +13 -0
  36. package/dist/components/typography/styles.cjs +15 -0
  37. package/dist/components/typography/styles.js +12 -0
  38. package/dist/components/user-menu/PreferenceRadioGroup.cjs +53 -0
  39. package/dist/components/user-menu/PreferenceRadioGroup.js +19 -0
  40. package/dist/components/user-menu/UserMenu.cjs +67 -0
  41. package/dist/components/user-menu/UserMenu.js +11 -0
  42. package/dist/components/user-menu/default-options.cjs +109 -0
  43. package/dist/components/user-menu/default-options.js +105 -0
  44. package/dist/components/user-menu/styles.cjs +90 -0
  45. package/dist/components/user-menu/styles.js +83 -0
  46. package/dist/fonts/MaterialSymbolsOutlined.css +23 -0
  47. package/dist/fonts/MaterialSymbolsRound.css +23 -0
  48. package/dist/fonts/MaterialSymbolsSharp.css +23 -0
  49. package/dist/fonts/material-symbols-types.ts +3825 -0
  50. package/dist/icon-button.cjs +7 -0
  51. package/dist/icon-button.js +1 -0
  52. package/dist/icon-link-button.cjs +7 -0
  53. package/dist/icon-link-button.js +1 -0
  54. package/dist/icon.cjs +9 -0
  55. package/dist/icon.js +2 -0
  56. package/dist/index.cjs +16 -4
  57. package/dist/index.js +6 -0
  58. package/dist/link-button.cjs +7 -0
  59. package/dist/link-button.js +1 -0
  60. package/dist/styleD/build/css/base/colors.css +1 -1
  61. package/dist/styleD/build/css/base/sizing.css +2 -0
  62. package/dist/styleD/build/css/component/avatar.css +54 -0
  63. package/dist/styleD/build/css/component/button.css +282 -0
  64. package/dist/styleD/build/css/component/byline.css +1 -1
  65. package/dist/styleD/build/css/component/icon.css +11 -0
  66. package/dist/styleD/build/css/component/typography.css +7 -0
  67. package/dist/styleD/build/css/component/userMenu.css +29 -0
  68. package/dist/styleD/build/css/semantic/colors.css +12 -8
  69. package/dist/styleD/build/css/semantic/sizing.css +1 -0
  70. package/dist/styleD/build/css/semantic/typography.css +3 -0
  71. package/dist/styleD/build/typescript/base/colors.cjs +1 -1
  72. package/dist/styleD/build/typescript/base/colors.js +1 -1
  73. package/dist/styleD/build/typescript/base/sizing.cjs +2 -0
  74. package/dist/styleD/build/typescript/base/sizing.js +2 -0
  75. package/dist/styleD/build/typescript/component/avatar.cjs +88 -0
  76. package/dist/styleD/build/typescript/component/avatar.js +86 -0
  77. package/dist/styleD/build/typescript/component/button.cjs +523 -0
  78. package/dist/styleD/build/typescript/component/button.js +521 -0
  79. package/dist/styleD/build/typescript/component/byline.cjs +1 -1
  80. package/dist/styleD/build/typescript/component/byline.js +1 -1
  81. package/dist/styleD/build/typescript/component/icon.cjs +19 -0
  82. package/dist/styleD/build/typescript/component/icon.js +17 -0
  83. package/dist/styleD/build/typescript/component/typography.cjs +7 -0
  84. package/dist/styleD/build/typescript/component/typography.js +5 -0
  85. package/dist/styleD/build/typescript/component/userMenu.cjs +37 -0
  86. package/dist/styleD/build/typescript/component/userMenu.js +35 -0
  87. package/dist/styleD/build/typescript/semantic/colors.cjs +14 -10
  88. package/dist/styleD/build/typescript/semantic/colors.js +14 -10
  89. package/dist/styleD/build/typescript/semantic/sizing.cjs +2 -1
  90. package/dist/styleD/build/typescript/semantic/sizing.js +2 -1
  91. package/dist/styleD/build/typescript/semantic/typography.cjs +5 -0
  92. package/dist/styleD/build/typescript/semantic/typography.js +5 -0
  93. package/dist/types/avatar.d.ts +19 -0
  94. package/dist/types/button.d.ts +20 -0
  95. package/dist/types/components/TitleText.d.ts +6 -0
  96. package/dist/types/components/avatar/Avatar.d.ts +2 -0
  97. package/dist/types/components/avatar/styles.d.ts +8 -0
  98. package/dist/types/components/avatar/types.d.ts +45 -0
  99. package/dist/types/components/button/Button.d.ts +2 -0
  100. package/dist/types/components/button/styles.d.ts +7 -0
  101. package/dist/types/components/button/types.d.ts +18 -0
  102. package/dist/types/components/byline/schema.d.ts +1 -1
  103. package/dist/types/components/icon/Icon.d.ts +2 -0
  104. package/dist/types/components/icon/styles.d.ts +8 -0
  105. package/dist/types/components/icon/types.d.ts +28 -0
  106. package/dist/types/components/icon-button/IconButton.d.ts +2 -0
  107. package/dist/types/components/icon-button/styles.d.ts +522 -0
  108. package/dist/types/components/icon-button/types.d.ts +26 -0
  109. package/dist/types/components/icon-link-button/IconLinkButton.d.ts +2 -0
  110. package/dist/types/components/icon-link-button/styles.d.ts +522 -0
  111. package/dist/types/components/icon-link-button/types.d.ts +26 -0
  112. package/dist/types/components/link-button/LinkButton.d.ts +2 -0
  113. package/dist/types/components/link-button/styles.d.ts +522 -0
  114. package/dist/types/components/link-button/types.d.ts +18 -0
  115. package/dist/types/components/typography/Typography.d.ts +6 -0
  116. package/dist/types/components/typography/styles.d.ts +7 -0
  117. package/dist/types/components/typography/types.d.ts +13 -0
  118. package/dist/types/components/user-menu/PreferenceRadioGroup.d.ts +15 -0
  119. package/dist/types/components/user-menu/UserMenu.d.ts +17 -0
  120. package/dist/types/components/user-menu/default-options.d.ts +5 -0
  121. package/dist/types/components/user-menu/model.d.ts +9 -0
  122. package/dist/types/components/user-menu/styles.d.ts +9 -0
  123. package/dist/types/components/user-menu/theme.d.ts +3 -0
  124. package/dist/types/components/user-menu/types.d.ts +5 -0
  125. package/dist/types/fonts/material-symbols-types.d.ts +3822 -0
  126. package/dist/types/icon-button.d.ts +20 -0
  127. package/dist/types/icon-link-button.d.ts +20 -0
  128. package/dist/types/icon.d.ts +27 -0
  129. package/dist/types/index.d.ts +17 -0
  130. package/dist/types/link-button.d.ts +20 -0
  131. package/dist/types/styleD/build/typescript/base/colors.d.ts +1 -1
  132. package/dist/types/styleD/build/typescript/base/sizing.d.ts +2 -0
  133. package/dist/types/styleD/build/typescript/component/avatar.d.ts +88 -0
  134. package/dist/types/styleD/build/typescript/component/button.d.ts +523 -0
  135. package/dist/types/styleD/build/typescript/component/icon.d.ts +19 -0
  136. package/dist/types/styleD/build/typescript/component/typography.d.ts +7 -0
  137. package/dist/types/styleD/build/typescript/component/userMenu.d.ts +37 -0
  138. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +7 -3
  139. package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
  140. package/dist/types/styleD/build/typescript/semantic/typography.d.ts +5 -0
  141. package/dist/types/typography.d.ts +19 -0
  142. package/dist/types/user-menu.d.ts +18 -0
  143. package/dist/types/util/reset.d.ts +1 -0
  144. package/dist/types/util/storybookStyles.d.ts +1 -0
  145. package/dist/types/util/types.d.ts +28 -0
  146. package/dist/types/utils.d.ts +1 -0
  147. package/dist/typography.cjs +9 -0
  148. package/dist/typography.js +2 -0
  149. package/dist/user-menu.cjs +9 -0
  150. package/dist/user-menu.js +2 -0
  151. package/dist/util/css/reset.css +124 -0
  152. package/dist/util/reset.cjs +10 -0
  153. package/dist/util/reset.css.cjs +5 -0
  154. package/dist/util/reset.css.js +3 -0
  155. package/dist/util/reset.js +8 -0
  156. package/dist/utils.cjs +2 -0
  157. package/dist/utils.js +1 -0
  158. package/package.json +81 -3
@@ -1,3 +1,31 @@
1
+ /// <reference types="react" />
2
+ import type { SerializedStyles } from '@emotion/react';
3
+ export interface DefaultProps<ThemeType, ClassNameType = undefined> {
4
+ /**
5
+ * Custom theme overrides for the component, this is the recommended way to
6
+ * customize the appearance of the component based on the design system tokens
7
+ */
8
+ theme?: DeepPartial<ThemeType>;
9
+ /**
10
+ * Class name to be applied to the component's root element, for scenarios where
11
+ * custom styling is needed outside of the design system theming.
12
+ *
13
+ * Either use type ClassNameType (when extending a component from react-aria-components)
14
+ * or optional string if ClassNameType is undefined/not provided.
15
+ */
16
+ className?: ClassNameType extends undefined ? string | undefined : ClassNameType;
17
+ /**
18
+ * If the theme does not cover all use cases, you can use this prop to
19
+ * override component styles by passing in the result of [emotion's `css` function/prop](https://emotion.sh/docs/introduction).
20
+ */
21
+ cssOverrides?: SerializedStyles | SerializedStyles[];
22
+ }
23
+ export interface DefaultPropsWithChildren<ThemeType, ClassNameType = undefined, ChildrenType = React.ReactNode> extends DefaultProps<ThemeType, ClassNameType> {
24
+ /**
25
+ * The content of the component
26
+ */
27
+ children?: ChildrenType;
28
+ }
1
29
  export type Prettify<T> = {
2
30
  [K in keyof T]: T[K];
3
31
  } & {};
@@ -4,3 +4,4 @@
4
4
  * Utilities for working with design tokens and styles.
5
5
  */
6
6
  export { convertTypographyToEmotionObjectStyle, convertTypographyToEmotionStringStyle, } from './styleD/utils/semantic/typography';
7
+ export { GlobalResetStyles } from './util/reset';
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var Typography = require('./components/typography/Typography.cjs');
4
+ var typography = require('./styleD/build/typescript/component/typography.cjs');
5
+
6
+
7
+
8
+ exports.Typography = Typography.Typography;
9
+ exports.componentTypography = typography.componentTypography;
@@ -0,0 +1,2 @@
1
+ export { Typography } from './components/typography/Typography.js';
2
+ export { componentTypography } from './styleD/build/typescript/component/typography.js';
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var UserMenu = require('./components/user-menu/UserMenu.cjs');
4
+ var userMenu = require('./styleD/build/typescript/component/userMenu.cjs');
5
+
6
+
7
+
8
+ exports.UserMenu = UserMenu.UserMenu;
9
+ exports.componentUserMenu = userMenu.componentUserMenu;
@@ -0,0 +1,2 @@
1
+ export { UserMenu } from './components/user-menu/UserMenu.js';
2
+ export { componentUserMenu } from './styleD/build/typescript/component/userMenu.js';
@@ -0,0 +1,124 @@
1
+ /*
2
+ Select CSS resets for use with the stand design system.
3
+ Modified from https://github.com/guardian/csnx/blob/0f68024f6f3bee003b5f95e66d29fb74987a8dec/libs/%40guardian/source/src/foundations/utils/resets.ts
4
+ */
5
+ *,
6
+ *::after,
7
+ *::before {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ html {
12
+ text-size-adjust: none;
13
+ -webkit-text-size-adjust: none;
14
+ -webkit-tap-highlight-color: transparent;
15
+ -webkit-font-smoothing: antialiased;
16
+ -moz-osx-font-smoothing: grayscale;
17
+ }
18
+
19
+ html,
20
+ body {
21
+ text-rendering: optimizeLegibility;
22
+ font-feature-settings: 'kern';
23
+ font-kerning: normal; /* Safari 7+, Firefox 24+, Chrome 33(?)+, Opera 21 */
24
+ font-variant-ligatures: common-ligatures;
25
+ }
26
+
27
+ html,
28
+ body,
29
+ div,
30
+ span,
31
+ applet,
32
+ object,
33
+ iframe,
34
+ h1,
35
+ h2,
36
+ h3,
37
+ h4,
38
+ h5,
39
+ h6,
40
+ p,
41
+ blockquote,
42
+ pre,
43
+ a,
44
+ abbr,
45
+ acronym,
46
+ address,
47
+ big,
48
+ cite,
49
+ code,
50
+ del,
51
+ dfn,
52
+ em,
53
+ img,
54
+ ins,
55
+ kbd,
56
+ q,
57
+ s,
58
+ samp,
59
+ small,
60
+ strike,
61
+ strong,
62
+ sub,
63
+ sup,
64
+ tt,
65
+ var,
66
+ b,
67
+ u,
68
+ i,
69
+ center,
70
+ dl,
71
+ dt,
72
+ dd,
73
+ menu,
74
+ ol,
75
+ ul,
76
+ li,
77
+ fieldset,
78
+ form,
79
+ label,
80
+ legend,
81
+ table,
82
+ caption,
83
+ tbody,
84
+ tfoot,
85
+ thead,
86
+ tr,
87
+ th,
88
+ td,
89
+ article,
90
+ aside,
91
+ canvas,
92
+ details,
93
+ embed,
94
+ figure,
95
+ figcaption,
96
+ footer,
97
+ header,
98
+ hgroup,
99
+ main,
100
+ menu,
101
+ nav,
102
+ output,
103
+ ruby,
104
+ section,
105
+ summary,
106
+ time,
107
+ mark,
108
+ audio,
109
+ video {
110
+ margin: 0;
111
+ padding: 0;
112
+ border: 0;
113
+ font-size: 100%;
114
+ font: inherit;
115
+ vertical-align: baseline;
116
+ }
117
+
118
+ *[hidden] {
119
+ display: none;
120
+ }
121
+
122
+ body {
123
+ min-height: 100svh;
124
+ }
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var react = require('@emotion/react');
4
+ var reset = require('./reset.css.cjs');
5
+
6
+ const GlobalResetStyles = react.css`
7
+ ${reset}
8
+ `;
9
+
10
+ exports.GlobalResetStyles = GlobalResetStyles;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ var reset = "/*\nSelect CSS resets for use with the stand design system.\nModified from https://github.com/guardian/csnx/blob/0f68024f6f3bee003b5f95e66d29fb74987a8dec/libs/%40guardian/source/src/foundations/utils/resets.ts\n*/\n*,\n*::after,\n*::before {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\ttext-size-adjust: none;\n\t-webkit-text-size-adjust: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml,\nbody {\n\ttext-rendering: optimizeLegibility;\n\tfont-feature-settings: 'kern';\n\tfont-kerning: normal; /* Safari 7+, Firefox 24+, Chrome 33(?)+, Opera 21 */\n\tfont-variant-ligatures: common-ligatures;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nmenu,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n\n*[hidden] {\n\tdisplay: none;\n}\n\nbody {\n\tmin-height: 100svh;\n}\n";
4
+
5
+ module.exports = reset;
@@ -0,0 +1,3 @@
1
+ var reset = "/*\nSelect CSS resets for use with the stand design system.\nModified from https://github.com/guardian/csnx/blob/0f68024f6f3bee003b5f95e66d29fb74987a8dec/libs/%40guardian/source/src/foundations/utils/resets.ts\n*/\n*,\n*::after,\n*::before {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\ttext-size-adjust: none;\n\t-webkit-text-size-adjust: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml,\nbody {\n\ttext-rendering: optimizeLegibility;\n\tfont-feature-settings: 'kern';\n\tfont-kerning: normal; /* Safari 7+, Firefox 24+, Chrome 33(?)+, Opera 21 */\n\tfont-variant-ligatures: common-ligatures;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nmenu,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n\n*[hidden] {\n\tdisplay: none;\n}\n\nbody {\n\tmin-height: 100svh;\n}\n";
2
+
3
+ export { reset as default };
@@ -0,0 +1,8 @@
1
+ import { css } from '@emotion/react';
2
+ import reset from './reset.css.js';
3
+
4
+ const GlobalResetStyles = css`
5
+ ${reset}
6
+ `;
7
+
8
+ export { GlobalResetStyles };
package/dist/utils.cjs CHANGED
@@ -1,8 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var typography = require('./styleD/utils/semantic/typography.cjs');
4
+ var reset = require('./util/reset.cjs');
4
5
 
5
6
 
6
7
 
7
8
  exports.convertTypographyToEmotionObjectStyle = typography.convertTypographyToEmotionObjectStyle;
8
9
  exports.convertTypographyToEmotionStringStyle = typography.convertTypographyToEmotionStringStyle;
10
+ exports.GlobalResetStyles = reset.GlobalResetStyles;
package/dist/utils.js CHANGED
@@ -1 +1,2 @@
1
1
  export { convertTypographyToEmotionObjectStyle, convertTypographyToEmotionStringStyle } from './styleD/utils/semantic/typography.js';
2
+ export { GlobalResetStyles } from './util/reset.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/stand",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "//exports": "Each component has its own entry point for optimal tree-shaking. Main entry point only includes design tokens and utilities. New components/foundations should follow the same pattern.",
6
6
  "exports": {
@@ -9,6 +9,41 @@
9
9
  "import": "./dist/index.js",
10
10
  "require": "./dist/index.cjs"
11
11
  },
12
+ "./avatar": {
13
+ "types": "./dist/types/avatar.d.ts",
14
+ "import": "./dist/avatar.js",
15
+ "require": "./dist/avatar.cjs"
16
+ },
17
+ "./button": {
18
+ "types": "./dist/types/button.d.ts",
19
+ "import": "./dist/button.js",
20
+ "require": "./dist/button.cjs"
21
+ },
22
+ "./link-button": {
23
+ "types": "./dist/types/link-button.d.ts",
24
+ "import": "./dist/link-button.js",
25
+ "require": "./dist/link-button.cjs"
26
+ },
27
+ "./icon-button": {
28
+ "types": "./dist/types/icon-button.d.ts",
29
+ "import": "./dist/icon-button.js",
30
+ "require": "./dist/icon-button.cjs"
31
+ },
32
+ "./icon-link-button": {
33
+ "types": "./dist/types/icon-link-button.d.ts",
34
+ "import": "./dist/icon-link-button.js",
35
+ "require": "./dist/icon-link-button.cjs"
36
+ },
37
+ "./typography": {
38
+ "types": "./dist/types/typography.d.ts",
39
+ "import": "./dist/typography.js",
40
+ "require": "./dist/typography.cjs"
41
+ },
42
+ "./icon": {
43
+ "types": "./dist/types/icon.d.ts",
44
+ "import": "./dist/icon.js",
45
+ "require": "./dist/icon.cjs"
46
+ },
12
47
  "./byline": {
13
48
  "types": "./dist/types/byline.d.ts",
14
49
  "import": "./dist/byline.js",
@@ -19,12 +54,21 @@
19
54
  "import": "./dist/tag-picker.js",
20
55
  "require": "./dist/tag-picker.cjs"
21
56
  },
57
+ "./user-menu": {
58
+ "types": "./dist/types/user-menu.d.ts",
59
+ "import": "./dist/user-menu.js",
60
+ "require": "./dist/user-menu.cjs"
61
+ },
22
62
  "./utils": {
23
63
  "types": "./dist/types/utils.d.ts",
24
64
  "import": "./dist/utils.js",
25
65
  "require": "./dist/utils.cjs"
26
66
  },
27
67
  "./fonts/OpenSans.css": "./dist/fonts/OpenSans.css",
68
+ "./fonts/MaterialSymbolsOutlined.css": "./dist/fonts/MaterialSymbolsOutlined.css",
69
+ "./fonts/MaterialSymbolsRound.css": "./dist/fonts/MaterialSymbolsRound.css",
70
+ "./fonts/MaterialSymbolsSharp.css": "./dist/fonts/MaterialSymbolsSharp.css",
71
+ "./util/reset.css": "./dist/util/css/reset.css",
28
72
  "./base/colors.css": "./dist/styleD/build/css/base/colors.css",
29
73
  "./base/typography.css": "./dist/styleD/build/css/base/typography.css",
30
74
  "./base/spacing.css": "./dist/styleD/build/css/base/spacing.css",
@@ -35,17 +79,46 @@
35
79
  "./semantic/sizing.css": "./dist/styleD/build/css/semantic/sizing.css",
36
80
  "./component/byline.css": "./dist/styleD/build/css/component/byline.css",
37
81
  "./component/tagAutocomplete.css": "./dist/styleD/build/css/component/tagAutocomplete.css",
38
- "./component/tagTable.css": "./dist/styleD/build/css/component/tagTable.css"
82
+ "./component/tagTable.css": "./dist/styleD/build/css/component/tagTable.css",
83
+ "./component/userMenu.css": "./dist/styleD/build/css/component/userMenu.css",
84
+ "./component/avatar.css": "./dist/styleD/build/css/component/avatar.css",
85
+ "./component/button.css": "./dist/styleD/build/css/component/button.css",
86
+ "./component/typography.css": "./dist/styleD/build/css/component/typography.css",
87
+ "./component/icon.css": "./dist/styleD/build/css/component/icon.css"
39
88
  },
40
89
  "//typesVersions": "Provides backward compatibility for TypeScript moduleResolution: node - maps subpath imports to correct type definition files. When adding new components with their own entry points, ensure to add them here.",
41
90
  "typesVersions": {
42
91
  "*": {
92
+ "avatar": [
93
+ "./dist/types/avatar.d.ts"
94
+ ],
95
+ "button": [
96
+ "./dist/types/button.d.ts"
97
+ ],
98
+ "link-button": [
99
+ "./dist/types/link-button.d.ts"
100
+ ],
101
+ "icon-button": [
102
+ "./dist/types/icon-button.d.ts"
103
+ ],
104
+ "icon-link-button": [
105
+ "./dist/types/icon-link-button.d.ts"
106
+ ],
107
+ "typography": [
108
+ "./dist/types/typography.d.ts"
109
+ ],
110
+ "icon": [
111
+ "./dist/types/icon.d.ts"
112
+ ],
43
113
  "byline": [
44
114
  "./dist/types/byline.d.ts"
45
115
  ],
46
116
  "tag-picker": [
47
117
  "./dist/types/tag-picker.d.ts"
48
118
  ],
119
+ "user-menu": [
120
+ "./dist/types/user-menu.d.ts"
121
+ ],
49
122
  "utils": [
50
123
  "./dist/types/utils.d.ts"
51
124
  ]
@@ -70,6 +143,7 @@
70
143
  "@guardian/prettier": "10.0.0",
71
144
  "@guardian/prosemirror-invisibles": "3.1.1",
72
145
  "@guardian/tsconfig": "1.0.1",
146
+ "@material-design-icons/svg": "^0.14.15",
73
147
  "@playwright/experimental-ct-react17": "^1.57.0",
74
148
  "@rollup/plugin-commonjs": "29.0.0",
75
149
  "@rollup/plugin-node-resolve": "16.0.3",
@@ -98,16 +172,20 @@
98
172
  "react": "17.0.2",
99
173
  "react-aria-components": "1.13.0",
100
174
  "react-dom": "17.0.2",
175
+ "remark-gfm": "^4.0.1",
101
176
  "rimraf": "6.1.2",
102
177
  "rollup": "4.55.3",
103
178
  "rollup-plugin-copy": "^3.5.0",
104
179
  "rollup-plugin-esbuild": "6.2.1",
180
+ "rollup-plugin-import-css": "^4.2.0",
105
181
  "rollup-plugin-node-externals": "8.1.2",
106
182
  "storybook": "^10.1.11",
107
183
  "style-dictionary": "^5.1.4",
108
184
  "ts-jest": "29.4.6",
109
185
  "tslib": "2.8.1",
110
- "typescript": "5.1.3"
186
+ "typescript": "5.1.3",
187
+ "vite": "^7.3.1",
188
+ "vite-plugin-svgr": "^4.5.0"
111
189
  },
112
190
  "peerDependencies": {
113
191
  "@emotion/react": ">=11.11.4 <=11.14.0",