@guardian/stand 0.0.15 → 0.0.17

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 (130) hide show
  1. package/README.md +1 -0
  2. package/dist/TopBar.cjs +9 -3
  3. package/dist/TopBar.js +4 -1
  4. package/dist/components/avatar/Avatar.cjs +2 -2
  5. package/dist/components/button/Button.cjs +1 -1
  6. package/dist/components/button/Button.js +1 -1
  7. package/dist/components/button/styles.cjs +7 -4
  8. package/dist/components/button/styles.js +7 -4
  9. package/dist/components/byline/Byline.cjs +15 -15
  10. package/dist/components/favicon/Favicon.cjs +2 -2
  11. package/dist/components/icon-button/IconButton.cjs +4 -4
  12. package/dist/components/icon-button/IconButton.js +1 -1
  13. package/dist/components/icon-link-button/IconLinkButton.cjs +4 -4
  14. package/dist/components/icon-link-button/IconLinkButton.js +1 -1
  15. package/dist/components/link-button/LinkButton.cjs +1 -1
  16. package/dist/components/link-button/LinkButton.js +1 -1
  17. package/dist/components/menu/Menu.cjs +204 -0
  18. package/dist/components/menu/Menu.js +77 -0
  19. package/dist/components/menu/styles.cjs +104 -0
  20. package/dist/components/menu/styles.js +89 -0
  21. package/dist/components/tag-picker/TagTable.cjs +11 -11
  22. package/dist/components/topbar/TopBar.cjs +101 -0
  23. package/dist/components/topbar/TopBar.js +63 -0
  24. package/dist/components/topbar/styles.cjs +30 -0
  25. package/dist/components/topbar/styles.js +25 -0
  26. package/dist/components/topbar/topBarItem/TopBarItem.cjs +28 -0
  27. package/dist/components/topbar/topBarItem/TopBarItem.js +10 -0
  28. package/dist/components/topbar/topBarItem/styles.cjs +20 -0
  29. package/dist/components/topbar/topBarItem/styles.js +17 -0
  30. package/dist/components/topbar/topBarNavigation/TopBarNavigation.cjs +70 -0
  31. package/dist/components/topbar/topBarNavigation/TopBarNavigation.js +23 -0
  32. package/dist/components/topbar/topBarNavigation/styles.cjs +68 -0
  33. package/dist/components/topbar/topBarNavigation/styles.js +61 -0
  34. package/dist/components/topbar/{toolName → topBarToolName}/TopBarToolName.cjs +3 -2
  35. package/dist/components/topbar/topBarToolName/TopBarToolName.js +13 -0
  36. package/dist/index.cjs +4 -0
  37. package/dist/index.js +2 -0
  38. package/dist/menu.cjs +13 -0
  39. package/dist/menu.js +2 -0
  40. package/dist/styleD/build/css/base/typography.css +3 -3
  41. package/dist/styleD/build/css/component/TopBar.css +55 -1
  42. package/dist/styleD/build/css/component/avatar.css +1 -1
  43. package/dist/styleD/build/css/component/button.css +177 -255
  44. package/dist/styleD/build/css/component/favicon.css +1 -1
  45. package/dist/styleD/build/css/component/menu.css +83 -0
  46. package/dist/styleD/build/css/component/tagAutocomplete.css +1 -1
  47. package/dist/styleD/build/css/component/tagTable.css +1 -1
  48. package/dist/styleD/build/css/component/topBarItem.css +7 -0
  49. package/dist/styleD/build/css/component/userMenu.css +6 -6
  50. package/dist/styleD/build/css/semantic/colors.css +45 -46
  51. package/dist/styleD/build/css/semantic/shadow.css +7 -0
  52. package/dist/styleD/build/css/semantic/sizing.css +1 -0
  53. package/dist/styleD/build/css/semantic/typography.css +30 -30
  54. package/dist/styleD/build/typescript/base/typography.cjs +3 -3
  55. package/dist/styleD/build/typescript/base/typography.js +3 -3
  56. package/dist/styleD/build/typescript/component/TopBar.cjs +94 -0
  57. package/dist/styleD/build/typescript/component/TopBar.js +94 -0
  58. package/dist/styleD/build/typescript/component/button.cjs +5 -130
  59. package/dist/styleD/build/typescript/component/button.js +5 -130
  60. package/dist/styleD/build/typescript/component/menu.cjs +141 -0
  61. package/dist/styleD/build/typescript/component/menu.js +139 -0
  62. package/dist/styleD/build/typescript/semantic/colors.cjs +47 -52
  63. package/dist/styleD/build/typescript/semantic/colors.js +47 -52
  64. package/dist/styleD/build/typescript/semantic/shadow.cjs +7 -0
  65. package/dist/styleD/build/typescript/semantic/shadow.js +5 -0
  66. package/dist/styleD/build/typescript/semantic/sizing.cjs +1 -0
  67. package/dist/styleD/build/typescript/semantic/sizing.js +1 -0
  68. package/dist/types/TopBar.d.ts +12 -3
  69. package/dist/types/avatar.d.ts +1 -1
  70. package/dist/types/button.d.ts +1 -1
  71. package/dist/types/byline.d.ts +1 -1
  72. package/dist/types/components/avatar/styles.d.ts +2 -1
  73. package/dist/types/components/button/sandbox.d.ts +4 -4
  74. package/dist/types/components/button/styles.d.ts +2 -1
  75. package/dist/types/components/button/types.d.ts +1 -1
  76. package/dist/types/components/favicon/styles.d.ts +2 -1
  77. package/dist/types/components/icon/styles.d.ts +2 -1
  78. package/dist/types/components/icon-button/sandbox.d.ts +4 -4
  79. package/dist/types/components/icon-button/styles.d.ts +5 -129
  80. package/dist/types/components/icon-button/types.d.ts +1 -1
  81. package/dist/types/components/icon-link-button/sandbox.d.ts +4 -4
  82. package/dist/types/components/icon-link-button/styles.d.ts +5 -129
  83. package/dist/types/components/icon-link-button/types.d.ts +1 -1
  84. package/dist/types/components/link-button/sandbox.d.ts +4 -4
  85. package/dist/types/components/link-button/styles.d.ts +5 -129
  86. package/dist/types/components/link-button/types.d.ts +1 -1
  87. package/dist/types/components/menu/Menu.d.ts +7 -0
  88. package/dist/types/components/menu/sandbox.d.ts +5 -0
  89. package/dist/types/components/menu/styles.d.ts +28 -0
  90. package/dist/types/components/menu/types.d.ts +63 -0
  91. package/dist/types/components/topbar/TopBar.d.ts +8 -0
  92. package/dist/types/components/topbar/sandbox.d.ts +5 -0
  93. package/dist/types/components/topbar/styles.d.ts +9 -0
  94. package/dist/types/components/topbar/topBarItem/TopBarItem.d.ts +2 -0
  95. package/dist/types/components/topbar/topBarItem/sandbox.d.ts +5 -0
  96. package/dist/types/components/topbar/topBarItem/styles.d.ts +8 -0
  97. package/dist/types/components/topbar/topBarItem/types.d.ts +14 -0
  98. package/dist/types/components/topbar/topBarNavigation/TopBarNavigation.d.ts +2 -0
  99. package/dist/types/components/topbar/topBarNavigation/sandbox.d.ts +5 -0
  100. package/dist/types/components/topbar/topBarNavigation/styles.d.ts +12 -0
  101. package/dist/types/components/topbar/topBarNavigation/types.d.ts +44 -0
  102. package/dist/types/components/topbar/{toolName → topBarToolName}/styles.d.ts +2 -1
  103. package/dist/types/components/topbar/types.d.ts +3 -0
  104. package/dist/types/components/typography/styles.d.ts +2 -1
  105. package/dist/types/favicon.d.ts +1 -1
  106. package/dist/types/icon-button.d.ts +1 -1
  107. package/dist/types/icon-link-button.d.ts +1 -1
  108. package/dist/types/icon.d.ts +1 -1
  109. package/dist/types/index.d.ts +4 -0
  110. package/dist/types/link-button.d.ts +1 -1
  111. package/dist/types/menu.d.ts +21 -0
  112. package/dist/types/styleD/build/typescript/base/typography.d.ts +3 -3
  113. package/dist/types/styleD/build/typescript/component/TopBar.d.ts +94 -0
  114. package/dist/types/styleD/build/typescript/component/button.d.ts +3 -128
  115. package/dist/types/styleD/build/typescript/component/menu.d.ts +141 -0
  116. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +44 -49
  117. package/dist/types/styleD/build/typescript/semantic/shadow.d.ts +7 -0
  118. package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
  119. package/dist/types/styleD/stories/semantic/Shadow.d.ts +1 -0
  120. package/dist/types/typography.d.ts +1 -1
  121. package/dist/util/css/reset.css +10 -0
  122. package/dist/util/reset.css.cjs +1 -1
  123. package/dist/util/reset.css.js +1 -1
  124. package/package.json +30 -17
  125. package/dist/components/topbar/toolName/TopBarToolName.js +0 -12
  126. /package/dist/components/topbar/{toolName → topBarToolName}/styles.cjs +0 -0
  127. /package/dist/components/topbar/{toolName → topBarToolName}/styles.js +0 -0
  128. /package/dist/types/components/topbar/{toolName → topBarToolName}/TopBarToolName.d.ts +0 -0
  129. /package/dist/types/components/topbar/{toolName → topBarToolName}/sandbox.d.ts +0 -0
  130. /package/dist/types/components/topbar/{toolName → topBarToolName}/types.d.ts +0 -0
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export declare const semanticColors: {
5
5
  text: {
6
- default: string;
7
- subdued: string;
8
- 'inverse-default': string;
9
- 'inverse-subdued': string;
10
- 'inverse-strong': string;
6
+ strong: string;
7
+ weak: string;
8
+ 'strong-inverse': string;
9
+ 'weak-inverse': string;
10
+ 'stronger-inverse': string;
11
11
  error: string;
12
12
  warning: string;
13
13
  success: string;
@@ -23,59 +23,54 @@ export declare const semanticColors: {
23
23
  magenta: string;
24
24
  orange: string;
25
25
  yellow: string;
26
- 'interactive-disabled': string;
27
26
  };
28
27
  bg: {
29
28
  base: string;
30
- 'raised-1': string;
31
- 'raised-2': string;
32
- };
33
- surface: {
34
- 'light-1': string;
35
- 'light-2': string;
36
- 'dark-1': string;
29
+ 'raised-level-1': string;
30
+ 'raised-level-2': string;
37
31
  };
38
32
  border: {
39
- default: string;
40
- secondary: string;
41
- tertiary: string;
33
+ stronger: string;
42
34
  strong: string;
43
- 'inverse-strong': string;
44
- 'interactive-emphasised': string;
45
- 'interactive-neutral': string;
46
- 'interactive-disabled': string;
47
- 'interactive-focused': string;
48
- 'interactive-selected': string;
49
- };
50
- status: {
51
- 'status-draft': string;
52
- 'status-live': string;
53
- 'status-selected': string;
54
- 'status-focused': string;
35
+ weak: string;
36
+ weaker: string;
37
+ 'strong-inverse': string;
38
+ disabled: string;
39
+ accent: string;
40
+ error: string;
41
+ focused: string;
42
+ selected: string;
43
+ 'selected-inverse': string;
55
44
  };
56
45
  fill: {
57
- 'interactive-primary-emphasised': string;
58
- 'interactive-primary-emphasised-hover': string;
59
- 'interactive-primary-emphasised-pressed': string;
60
- 'interactive-secondary-emphasised-hover': string;
61
- 'interactive-secondary-emphasised-pressed': string;
62
- 'interactive-primary-neutral': string;
63
- 'interactive-primary-neutral-hover': string;
64
- 'interactive-primary-neutral-pressed': string;
65
- 'interactive-secondary-neutral-hover': string;
66
- 'interactive-secondary-neutral-pressed': string;
67
- 'interactive-disabled': string;
68
- 'green-subtle': string;
69
- 'blue-subtle': string;
70
- 'red-subtle': string;
71
- 'cyan-subtle': string;
72
- 'teal-subtle': string;
73
- 'cool-purple-subtle': string;
74
- 'warm-purple-subtle': string;
75
- 'magenta-subtle': string;
76
- 'orange-subtle': string;
77
- 'yellow-subtle': string;
46
+ 'accent-strong': string;
47
+ 'accent-strong-hover': string;
48
+ 'accent-strong-pressed': string;
49
+ strong: string;
50
+ 'strong-hover': string;
51
+ 'strong-pressed': string;
52
+ weak: string;
53
+ 'weak-hover': string;
54
+ 'weak-pressed': string;
55
+ disabled: string;
56
+ 'green-weak': string;
57
+ 'blue-weak': string;
58
+ 'red-weak': string;
59
+ 'cyan-weak': string;
60
+ 'teal-weak': string;
61
+ 'cool-purple-weak': string;
62
+ 'warm-purple-weak': string;
63
+ 'magenta-weak': string;
64
+ 'orange-weak': string;
65
+ 'yellow-weak': string;
78
66
  selected: string;
67
+ 'draft-strong': string;
68
+ 'live-weak': string;
69
+ 'warning-weak': string;
70
+ 'information-weak': string;
71
+ 'error-weak': string;
72
+ 'error-strong': string;
73
+ 'success-weak': string;
79
74
  };
80
75
  };
81
76
  export type SemanticColors = typeof semanticColors;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ export declare const semanticShadow: {
5
+ raised: string;
6
+ };
7
+ export type SemanticShadow = typeof semanticShadow;
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export declare const semanticSizing: {
5
5
  height: {
6
+ xxs: string;
6
7
  xs: string;
7
8
  sm: string;
8
9
  md: string;
@@ -0,0 +1 @@
1
+ export declare const SemanticShadowTokens: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -14,6 +14,6 @@
14
14
  */
15
15
  export { Typography } from './components/typography/Typography';
16
16
  export type { TypographyProps } from './components/typography/types';
17
- export type { TypographyTheme } from './components/typography/styles';
17
+ export type { PartialTypographyTheme as TypographyTheme } from './components/typography/styles';
18
18
  export { componentTypography } from './styleD/build/typescript/component/typography';
19
19
  export type { ComponentTypography } from './styleD/build/typescript/component/typography';
@@ -122,3 +122,13 @@ video {
122
122
  body {
123
123
  min-height: 100svh;
124
124
  }
125
+
126
+ .focus-ring {
127
+ outline: 0.125rem solid blue;
128
+ outline-offset: -1px;
129
+ }
130
+
131
+ .focus-focus {
132
+ outline: 0.125rem solid red;
133
+ outline-offset: -1px;
134
+ }
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
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";
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\n.focus-ring {\n\toutline: 0.125rem solid blue;\n\toutline-offset: -1px;\n}\n\n.focus-focus {\n\toutline: 0.125rem solid red;\n\toutline-offset: -1px;\n}\n";
4
4
 
5
5
  module.exports = reset;
@@ -1,3 +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";
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\n.focus-ring {\n\toutline: 0.125rem solid blue;\n\toutline-offset: -1px;\n}\n\n.focus-focus {\n\toutline: 0.125rem solid red;\n\toutline-offset: -1px;\n}\n";
2
2
 
3
3
  export { reset as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/stand",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
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": {
@@ -49,6 +49,11 @@
49
49
  "import": "./dist/favicon.js",
50
50
  "require": "./dist/favicon.cjs"
51
51
  },
52
+ "./menu": {
53
+ "types": "./dist/types/menu.d.ts",
54
+ "import": "./dist/menu.js",
55
+ "require": "./dist/menu.cjs"
56
+ },
52
57
  "./TopBar": {
53
58
  "types": "./dist/types/TopBar.d.ts",
54
59
  "import": "./dist/TopBar.js",
@@ -87,6 +92,7 @@
87
92
  "./semantic/colors.css": "./dist/styleD/build/css/semantic/colors.css",
88
93
  "./semantic/typography.css": "./dist/styleD/build/css/semantic/typography.css",
89
94
  "./semantic/sizing.css": "./dist/styleD/build/css/semantic/sizing.css",
95
+ "./semantic/shadow.css": "./dist/styleD/build/css/semantic/shadow.css",
90
96
  "./component/byline.css": "./dist/styleD/build/css/component/byline.css",
91
97
  "./component/tagAutocomplete.css": "./dist/styleD/build/css/component/tagAutocomplete.css",
92
98
  "./component/tagTable.css": "./dist/styleD/build/css/component/tagTable.css",
@@ -96,6 +102,7 @@
96
102
  "./component/typography.css": "./dist/styleD/build/css/component/typography.css",
97
103
  "./component/icon.css": "./dist/styleD/build/css/component/icon.css",
98
104
  "./component/favicon.css": "./dist/styleD/build/css/component/favicon.css",
105
+ "./component/menu.css": "./dist/styleD/build/css/component/menu.css",
99
106
  "./component/TopBar.css": "./dist/styleD/build/css/component/TopBar.css"
100
107
  },
101
108
  "//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.",
@@ -139,6 +146,9 @@
139
146
  ],
140
147
  "utils": [
141
148
  "./dist/types/utils.d.ts"
149
+ ],
150
+ "menu": [
151
+ "./dist/types/menu.d.ts"
142
152
  ]
143
153
  }
144
154
  },
@@ -153,23 +163,23 @@
153
163
  "types": "./dist/types/index.d.ts",
154
164
  "sideEffects": false,
155
165
  "devDependencies": {
156
- "@changesets/cli": "^2.29.8",
166
+ "@changesets/cli": "^2.30.0",
157
167
  "@codesandbox/sandpack-react": "^2.20.0",
158
168
  "@emotion/react": "11.11.4",
159
169
  "@figma/rest-api-spec": "^0.36.0",
160
- "@guardian/eslint-config": "14.0.0",
170
+ "@guardian/eslint-config": "14.0.1",
161
171
  "@guardian/prettier": "10.0.0",
162
172
  "@guardian/prosemirror-invisibles": "3.1.1",
163
173
  "@guardian/tsconfig": "1.0.1",
164
174
  "@material-design-icons/svg": "^0.14.15",
165
175
  "@playwright/experimental-ct-react17": "^1.58.2",
166
- "@rollup/plugin-commonjs": "29.0.0",
176
+ "@react-aria/focus": "3.21.5",
177
+ "@rollup/plugin-commonjs": "29.0.2",
167
178
  "@rollup/plugin-node-resolve": "16.0.3",
168
179
  "@rollup/plugin-typescript": "12.3.0",
169
- "@storybook/addon-docs": "^10.2.14",
170
- "@storybook/addon-themes": "^10.2.14",
171
- "@storybook/react-vite": "^10.2.14",
172
- "@terrazzo/cli": "^0.10.5",
180
+ "@storybook/addon-docs": "^10.3.3",
181
+ "@storybook/addon-themes": "^10.3.3",
182
+ "@storybook/react-vite": "^10.3.3",
173
183
  "@testing-library/jest-dom": "^6.9.1",
174
184
  "@types/jest": "30.0.0",
175
185
  "@types/node": "^24.10.1",
@@ -177,10 +187,10 @@
177
187
  "@types/react-dom": "17.0.25",
178
188
  "change-case": "^5.4.4",
179
189
  "eslint": "9.39.3",
180
- "eslint-plugin-storybook": "^10.2.14",
190
+ "eslint-plugin-storybook": "^10.3.3",
181
191
  "husky": "^9.1.7",
182
- "jest": "30.2.0",
183
- "jest-environment-jsdom": "^30.1.2",
192
+ "jest": "30.3.0",
193
+ "jest-environment-jsdom": "^30.3.0",
184
194
  "prettier": "3.8.1",
185
195
  "prosemirror-dropcursor": "1.8.2",
186
196
  "prosemirror-history": "1.4.1",
@@ -193,22 +203,23 @@
193
203
  "react-dom": "17.0.2",
194
204
  "remark-gfm": "^4.0.1",
195
205
  "rimraf": "6.1.3",
196
- "rollup": "4.59.0",
206
+ "rollup": "4.60.0",
197
207
  "rollup-plugin-copy": "^3.5.0",
198
208
  "rollup-plugin-esbuild": "6.2.1",
199
209
  "rollup-plugin-import-css": "^4.2.0",
200
210
  "rollup-plugin-node-externals": "8.1.2",
201
- "storybook": "^10.2.14",
202
- "style-dictionary": "^5.3.2",
211
+ "storybook": "^10.3.3",
212
+ "style-dictionary": "^5.4.0",
203
213
  "ts-jest": "29.4.6",
204
214
  "tslib": "2.8.1",
205
215
  "typescript": "5.1.3",
206
- "vite": "^7.3.1",
216
+ "vite": "^8.0.2",
207
217
  "vite-plugin-svgr": "^4.5.0"
208
218
  },
209
219
  "peerDependencies": {
210
220
  "@emotion/react": ">=11.11.4 <=11.14.0",
211
221
  "@guardian/prosemirror-invisibles": "3.1.1",
222
+ "@react-aria/focus": "^3.21.5",
212
223
  "prosemirror-dropcursor": "1.8.2",
213
224
  "prosemirror-history": "1.4.1",
214
225
  "prosemirror-keymap": "1.2.2",
@@ -216,7 +227,7 @@
216
227
  "prosemirror-state": "1.4.3",
217
228
  "prosemirror-view": "1.37.2",
218
229
  "react": "^17.0.2 || ^18.0.0 || ^19.0.0",
219
- "react-aria-components": ">= 1.13.0 <= 1.15.1",
230
+ "react-aria-components": ">= 1.13.0 <= 1.16.0",
220
231
  "react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0",
221
232
  "typescript": ">=5.0.0 <=5.9.3"
222
233
  },
@@ -227,6 +238,9 @@
227
238
  "@guardian/prosemirror-invisibles": {
228
239
  "optional": true
229
240
  },
241
+ "@react-aria/focus": {
242
+ "optional": true
243
+ },
230
244
  "prosemirror-dropcursor": {
231
245
  "optional": true
232
246
  },
@@ -265,7 +279,6 @@
265
279
  "build-storybook": "storybook build",
266
280
  "lint": "eslint . --ext .ts,.tsx",
267
281
  "lint:fix": "eslint --fix . --ext .ts,.tsx",
268
- "lint:tokens": "tz check",
269
282
  "format:check": "prettier --check .",
270
283
  "format:fix": "prettier --write .",
271
284
  "tsc": "tsc",
@@ -1,12 +0,0 @@
1
- import { jsxs, jsx, Fragment } from '@emotion/react/jsx-runtime';
2
- import { mergeDeep } from '../../../util/mergeDeep.js';
3
- import { Favicon } from '../../favicon/Favicon.js';
4
- import { Icon } from '../../icon/Icon.js';
5
- import { toolNameTypography, dividerStyles, subsectionTypography, subsectionStyles, toolNameStyles, defaultToolNameTheme } from './styles.js';
6
-
7
- const TopBarToolName = ({ name, favicon, subsection, subsectionIcon, theme = {}, cssOverrides }) => {
8
- const mergedTheme = mergeDeep(defaultToolNameTheme, theme);
9
- return jsxs("div", { css: [toolNameStyles(mergedTheme), cssOverrides], children: [jsx(Favicon, { ...favicon }), jsx("div", { css: [toolNameTypography(mergedTheme)], children: name }), subsection && jsxs(Fragment, { children: [jsx("div", { css: dividerStyles(mergedTheme), children: "\xA0" }), jsxs("div", { css: subsectionStyles(mergedTheme), children: [subsectionIcon && jsx(Icon, { size: "sm", children: subsectionIcon }), jsx("div", { css: subsectionTypography(mergedTheme), children: subsection })] })] })] });
10
- };
11
-
12
- export { TopBarToolName };