@guardian/stand 0.0.24 → 0.0.25

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 (30) hide show
  1. package/dist/components/menu/styles.cjs +0 -1
  2. package/dist/components/menu/styles.js +0 -1
  3. package/dist/components/topbar/TopBar.cjs +23 -9
  4. package/dist/components/topbar/TopBar.js +11 -9
  5. package/dist/components/topbar/topBarToolName/styles.cjs +1 -0
  6. package/dist/components/topbar/topBarToolName/styles.js +1 -0
  7. package/dist/styleD/build/css/component/TopBar.css +1 -0
  8. package/dist/styleD/build/css/component/radioGroup.css +1 -1
  9. package/dist/styleD/build/typescript/component/TopBar.cjs +1 -0
  10. package/dist/styleD/build/typescript/component/TopBar.js +1 -0
  11. package/dist/styleD/build/typescript/component/radioGroup.cjs +1 -1
  12. package/dist/styleD/build/typescript/component/radioGroup.js +1 -1
  13. package/dist/types/components/avatar/styles.d.ts +1 -1
  14. package/dist/types/components/button/styles.d.ts +1 -1
  15. package/dist/types/components/byline/theme.d.ts +2 -2
  16. package/dist/types/components/checkbox/styles.d.ts +2 -2
  17. package/dist/types/components/favicon/styles.d.ts +1 -1
  18. package/dist/types/components/icon/styles.d.ts +1 -1
  19. package/dist/types/components/menu/styles.d.ts +5 -5
  20. package/dist/types/components/select/styles.d.ts +1 -1
  21. package/dist/types/components/topbar/TopBar.d.ts +5 -2
  22. package/dist/types/components/topbar/styles.d.ts +1 -1
  23. package/dist/types/components/topbar/topBarItem/styles.d.ts +1 -1
  24. package/dist/types/components/topbar/topBarNavigation/styles.d.ts +1 -1
  25. package/dist/types/components/topbar/topBarToolName/styles.d.ts +1 -1
  26. package/dist/types/components/typography/styles.d.ts +1 -1
  27. package/dist/types/components/user-menu/theme.d.ts +2 -2
  28. package/dist/types/styleD/build/typescript/component/TopBar.d.ts +1 -0
  29. package/dist/types/styleD/build/typescript/component/radioGroup.d.ts +1 -1
  30. package/package.json +1 -1
@@ -74,7 +74,6 @@ const menuItemLabelStyles = (theme) => react.css`
74
74
  grid-area: ${theme.shared.label["grid-area"]};
75
75
  color: ${theme.shared.label.color};
76
76
  ${typography.convertTypographyToEmotionStringStyle(theme.shared.label.typography)}
77
- )}
78
77
  `;
79
78
  const menuItemDescriptionStyles = (theme) => react.css`
80
79
  grid-area: ${theme.shared.description["grid-area"]};
@@ -72,7 +72,6 @@ const menuItemLabelStyles = (theme) => css`
72
72
  grid-area: ${theme.shared.label["grid-area"]};
73
73
  color: ${theme.shared.label.color};
74
74
  ${convertTypographyToEmotionStringStyle(theme.shared.label.typography)}
75
- )}
76
75
  `;
77
76
  const menuItemDescriptionStyles = (theme) => css`
78
77
  grid-area: ${theme.shared.description["grid-area"]};
@@ -11,7 +11,8 @@ var TopBarToolName = require('./topBarToolName/TopBarToolName.cjs');
11
11
 
12
12
  function TopBarSide({
13
13
  children,
14
- alignment
14
+ alignment,
15
+ theme
15
16
  }) {
16
17
  const items = [];
17
18
  React.Children.forEach(children, (child, i) => {
@@ -22,6 +23,7 @@ function TopBarSide({
22
23
  items.push(
23
24
  React.cloneElement(child, {
24
25
  key: `${child.key}-${i}`,
26
+ theme: theme?.Item,
25
27
  alignment
26
28
  })
27
29
  );
@@ -30,6 +32,7 @@ function TopBarSide({
30
32
  items.push(
31
33
  React.cloneElement(child, {
32
34
  key: `${child.key}-${i}`,
35
+ theme: theme?.Navigation,
33
36
  alignment
34
37
  })
35
38
  );
@@ -38,14 +41,16 @@ function TopBarSide({
38
41
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: items });
39
42
  }
40
43
  function TopBarContainerRight({
41
- children
44
+ children,
45
+ theme
42
46
  }) {
43
- return /* @__PURE__ */ jsxRuntime.jsx(TopBarSide, { alignment: "right", children });
47
+ return /* @__PURE__ */ jsxRuntime.jsx(TopBarSide, { alignment: "right", theme, children });
44
48
  }
45
49
  function TopBarContainerLeft({
46
- children
50
+ children,
51
+ theme
47
52
  }) {
48
- return /* @__PURE__ */ jsxRuntime.jsx(TopBarSide, { alignment: "left", children });
53
+ return /* @__PURE__ */ jsxRuntime.jsx(TopBarSide, { alignment: "left", theme, children });
49
54
  }
50
55
  function TopBar({
51
56
  children,
@@ -64,16 +69,25 @@ function TopBar({
64
69
  return;
65
70
  }
66
71
  if (child.type === TopBarToolName.TopBarToolName) {
67
- toolName ?? (toolName = child);
72
+ toolName ?? (toolName = React.cloneElement(
73
+ child,
74
+ { theme: mergedTheme.ToolName }
75
+ ));
68
76
  }
69
77
  if (child.type === Avatar.Avatar) {
70
- avatar ?? (avatar = /* @__PURE__ */ jsxRuntime.jsx(TopBarItem.TopBarItem, { alignment: "right", children: child }));
78
+ avatar ?? (avatar = /* @__PURE__ */ jsxRuntime.jsx(TopBarItem.TopBarItem, { theme: mergedTheme.Item, alignment: "right", children: child }));
71
79
  }
72
80
  if (child.type === TopBarContainerLeft) {
73
- leftSide ?? (leftSide = child);
81
+ leftSide ?? (leftSide = React.cloneElement(
82
+ child,
83
+ { theme: mergedTheme }
84
+ ));
74
85
  }
75
86
  if (child.type === TopBarContainerRight) {
76
- rightSide ?? (rightSide = child);
87
+ rightSide ?? (rightSide = React.cloneElement(
88
+ child,
89
+ { theme: mergedTheme }
90
+ ));
77
91
  }
78
92
  });
79
93
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -7,7 +7,7 @@ import { TopBarItem } from './topBarItem/TopBarItem.js';
7
7
  import { TopBarNavigation } from './topBarNavigation/TopBarNavigation.js';
8
8
  import { TopBarToolName } from './topBarToolName/TopBarToolName.js';
9
9
 
10
- function TopBarSide({ children, alignment }) {
10
+ function TopBarSide({ children, alignment, theme }) {
11
11
  const items = [];
12
12
  React.Children.forEach(children, (child, i) => {
13
13
  if (!React.isValidElement(child)) {
@@ -16,23 +16,25 @@ function TopBarSide({ children, alignment }) {
16
16
  if (child.type === TopBarItem) {
17
17
  items.push(React.cloneElement(child, {
18
18
  key: `${child.key}-${i}`,
19
+ theme: theme?.Item,
19
20
  alignment
20
21
  }));
21
22
  }
22
23
  if (child.type === TopBarNavigation) {
23
24
  items.push(React.cloneElement(child, {
24
25
  key: `${child.key}-${i}`,
26
+ theme: theme?.Navigation,
25
27
  alignment
26
28
  }));
27
29
  }
28
30
  });
29
31
  return jsx(Fragment, { children: items });
30
32
  }
31
- function TopBarContainerRight({ children }) {
32
- return jsx(TopBarSide, { alignment: "right", children });
33
+ function TopBarContainerRight({ children, theme }) {
34
+ return jsx(TopBarSide, { alignment: "right", theme, children });
33
35
  }
34
- function TopBarContainerLeft({ children }) {
35
- return jsx(TopBarSide, { alignment: "left", children });
36
+ function TopBarContainerLeft({ children, theme }) {
37
+ return jsx(TopBarSide, { alignment: "left", theme, children });
36
38
  }
37
39
  function TopBar({ children, theme = {}, cssOverrides, className, ...props }) {
38
40
  const mergedTheme = mergeDeep(defaultTopBarTheme, theme);
@@ -45,16 +47,16 @@ function TopBar({ children, theme = {}, cssOverrides, className, ...props }) {
45
47
  return;
46
48
  }
47
49
  if (child.type === TopBarToolName) {
48
- toolName ?? (toolName = child);
50
+ toolName ?? (toolName = React.cloneElement(child, { theme: mergedTheme.ToolName }));
49
51
  }
50
52
  if (child.type === Avatar) {
51
- avatar ?? (avatar = jsx(TopBarItem, { alignment: "right", children: child }));
53
+ avatar ?? (avatar = jsx(TopBarItem, { theme: mergedTheme.Item, alignment: "right", children: child }));
52
54
  }
53
55
  if (child.type === TopBarContainerLeft) {
54
- leftSide ?? (leftSide = child);
56
+ leftSide ?? (leftSide = React.cloneElement(child, { theme: mergedTheme }));
55
57
  }
56
58
  if (child.type === TopBarContainerRight) {
57
- rightSide ?? (rightSide = child);
59
+ rightSide ?? (rightSide = React.cloneElement(child, { theme: mergedTheme }));
58
60
  }
59
61
  });
60
62
  return jsxs("div", { css: [topBarStyles(mergedTheme), cssOverrides], className, ...props, children: [jsxs("div", { css: topBarContainerLeftStyles(mergedTheme), children: [toolName, leftSide] }), jsxs("div", { css: topBarContainerRightStyles(mergedTheme), children: [rightSide, avatar] })] });
@@ -47,6 +47,7 @@ const toolNameStyles = (theme) => {
47
47
  display: ${theme.display};
48
48
  align-items: ${theme["align-items"]};
49
49
  gap: ${theme.gap};
50
+ color: ${theme.color};
50
51
  `;
51
52
  };
52
53
  const toolNameTypography = (theme) => {
@@ -45,6 +45,7 @@ const toolNameStyles = (theme) => {
45
45
  display: ${theme.display};
46
46
  align-items: ${theme["align-items"]};
47
47
  gap: ${theme.gap};
48
+ color: ${theme.color};
48
49
  `;
49
50
  };
50
51
  const toolNameTypography = (theme) => {
@@ -58,6 +58,7 @@
58
58
  --component-top-bar-navigation-sm-typography-letter-spacing: -0.0125rem;
59
59
  --component-top-bar-navigation-sm-typography-font-width: 95;
60
60
  --component-top-bar-tool-name-display: flex;
61
+ --component-top-bar-tool-name-color: #000000;
61
62
  --component-top-bar-tool-name-align-items: center;
62
63
  --component-top-bar-tool-name-gap: 8px;
63
64
  --component-top-bar-tool-name-typography-font: normal 700 1.25rem/1.15
@@ -28,7 +28,7 @@
28
28
  --component-radio-group-shared-indicator-disabled-border: 0.0625rem solid
29
29
  #dcdcdc;
30
30
  --component-radio-group-shared-indicator-selected-after-background-color: #005d8b;
31
- --component-radio-group-shared-indicator-selected-after-scale: 0.6rem;
31
+ --component-radio-group-shared-indicator-selected-after-scale: 0.6;
32
32
  --component-radio-group-shared-indicator-selected-border: 0.125rem solid
33
33
  #0072a9;
34
34
  --component-radio-group-shared-indicator-selected-invalid-border: 0.125rem
@@ -97,6 +97,7 @@ const componentTopBar = {
97
97
  },
98
98
  ToolName: {
99
99
  display: "flex",
100
+ color: "#000000",
100
101
  "align-items": "center",
101
102
  gap: "8px",
102
103
  typography: {
@@ -95,6 +95,7 @@ const componentTopBar = {
95
95
  },
96
96
  ToolName: {
97
97
  display: "flex",
98
+ color: "#000000",
98
99
  "align-items": "center",
99
100
  gap: "8px",
100
101
  typography: {
@@ -41,7 +41,7 @@ const componentRadioGroup = {
41
41
  selected: {
42
42
  after: {
43
43
  backgroundColor: "#005d8b",
44
- scale: "0.6"
44
+ scale: 0.6
45
45
  },
46
46
  border: "0.125rem solid #0072a9",
47
47
  invalid: {
@@ -39,7 +39,7 @@ const componentRadioGroup = {
39
39
  selected: {
40
40
  after: {
41
41
  backgroundColor: "#005d8b",
42
- scale: "0.6"
42
+ scale: 0.6
43
43
  },
44
44
  border: "0.125rem solid #0072a9",
45
45
  invalid: {
@@ -3,7 +3,7 @@ import type { ComponentAvatar } from '../../styleD/build/typescript/component/av
3
3
  import type { DeepPartial, Prettify } from '../../util/types';
4
4
  import type { AvatarProps } from './types';
5
5
  export type AvatarTheme = Prettify<ComponentAvatar>;
6
- export type PartialAvatarTheme = DeepPartial<AvatarTheme>;
6
+ export type PartialAvatarTheme = Prettify<DeepPartial<AvatarTheme>>;
7
7
  export declare const defaultAvatarTheme: AvatarTheme;
8
8
  export declare const avatarImageStyles: SerializedStyles;
9
9
  export declare const avatarStyles: (theme: AvatarTheme, { size, color }: Required<Pick<AvatarProps, 'size' | 'color'>>) => SerializedStyles;
@@ -3,6 +3,6 @@ import type { ComponentButton } from '../../styleD/build/typescript/component/bu
3
3
  import type { DeepPartial, Prettify } from '../../util/types';
4
4
  import type { ButtonProps } from './types';
5
5
  export type ButtonTheme = Prettify<ComponentButton>;
6
- export type PartialButtonTheme = DeepPartial<ButtonTheme>;
6
+ export type PartialButtonTheme = Prettify<DeepPartial<ButtonTheme>>;
7
7
  export declare const defaultButtonTheme: ButtonTheme;
8
8
  export declare const buttonStyles: (theme: ButtonTheme, { size, variant }: Required<Pick<ButtonProps, 'size' | 'variant'>>, hasIcon?: boolean, isIconButton?: boolean) => SerializedStyles;
@@ -1,3 +1,3 @@
1
1
  import type { ComponentByline } from '../../styleD/build/typescript/component/byline';
2
- import type { DeepPartial } from '../../util/types';
3
- export type PartialBylineTheme = DeepPartial<ComponentByline>;
2
+ import type { DeepPartial, Prettify } from '../../util/types';
3
+ export type PartialBylineTheme = Prettify<DeepPartial<ComponentByline>>;
@@ -1,9 +1,9 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
2
  import type { ComponentCheckbox } from '../../styleD/build/typescript/component/checkbox';
3
- import type { Prettify } from '../../util/types';
3
+ import type { DeepPartial, Prettify } from '../../util/types';
4
4
  import type { CheckboxGroupProps, CheckboxProps } from './types';
5
5
  export type CheckboxTheme = Prettify<ComponentCheckbox>;
6
- export type PartialCheckboxTheme = Prettify<Partial<CheckboxTheme>>;
6
+ export type PartialCheckboxTheme = Prettify<DeepPartial<CheckboxTheme>>;
7
7
  export declare const defaultCheckboxTheme: CheckboxTheme;
8
8
  export declare const checkboxStyles: (theme: CheckboxTheme, { size, isIndeterminate, }: Required<Pick<CheckboxProps, 'size' | 'isIndeterminate'>>) => SerializedStyles;
9
9
  export declare const checkboxLabelStyles: (theme: CheckboxTheme) => SerializedStyles;
@@ -2,7 +2,7 @@ import type { SerializedStyles } from '@emotion/react';
2
2
  import { type ComponentFavicon } from '../../styleD/build/typescript/component/favicon';
3
3
  import type { DeepPartial, Prettify } from '../../util/types';
4
4
  export type FaviconTheme = Prettify<ComponentFavicon>;
5
- export type PartialFaviconTheme = DeepPartial<FaviconTheme>;
5
+ export type PartialFaviconTheme = Prettify<DeepPartial<FaviconTheme>>;
6
6
  export declare const defaultFaviconTheme: FaviconTheme;
7
7
  export declare const faviconStyles: (theme: FaviconTheme) => SerializedStyles;
8
8
  export declare const faviconTypographyStyles: (theme: FaviconTheme) => SerializedStyles;
@@ -2,7 +2,7 @@ import type { ComponentIcon } from '../../styleD/build/typescript/component/icon
2
2
  import type { DeepPartial, Prettify } from '../../util/types';
3
3
  import type { IconProps } from './types';
4
4
  export type IconTheme = Prettify<ComponentIcon>;
5
- export type PartialIconTheme = DeepPartial<IconTheme>;
5
+ export type PartialIconTheme = Prettify<DeepPartial<IconTheme>>;
6
6
  export declare const defaultIconTheme: IconTheme;
7
7
  export declare const iconStyles: (theme: IconTheme, { size, fill, mode, }: Required<Pick<IconProps, "size">> & Pick<IconProps, "fill"> & {
8
8
  mode: 'text' | 'svg';
@@ -3,15 +3,15 @@ import type { ComponentMenu } from '../../styleD/build/typescript/component/menu
3
3
  import type { DeepPartial, Prettify } from '../../util/types';
4
4
  import type { MenuItemProps, MenuPopoverProps, MenuSectionProps } from './types';
5
5
  export type MenuTheme = Prettify<ComponentMenu['menu']>;
6
- export type PartialMenuTheme = DeepPartial<MenuTheme>;
6
+ export type PartialMenuTheme = Prettify<DeepPartial<MenuTheme>>;
7
7
  export declare const defaultMenuTheme: MenuTheme;
8
8
  export declare const menuStyles: (theme: MenuTheme) => SerializedStyles;
9
9
  export type MenuSectionTheme = Prettify<ComponentMenu['menuSection']>;
10
- export type PartialMenuSectionTheme = DeepPartial<MenuSectionTheme>;
10
+ export type PartialMenuSectionTheme = Prettify<DeepPartial<MenuSectionTheme>>;
11
11
  export declare const defaultMenuSectionTheme: MenuSectionTheme;
12
12
  export declare const menuSectionHeaderStyles: (theme: MenuSectionTheme, { size }: Required<Pick<MenuSectionProps, 'size'>>) => SerializedStyles;
13
13
  export type MenuItemTheme = Prettify<ComponentMenu['menuItem']>;
14
- export type PartialMenuItemTheme = DeepPartial<MenuItemTheme>;
14
+ export type PartialMenuItemTheme = Prettify<DeepPartial<MenuItemTheme>>;
15
15
  export declare const defaultMenuItemTheme: MenuItemTheme;
16
16
  export declare const menuItemStyles: (theme: MenuItemTheme, { description }: Pick<MenuItemProps, 'description'>) => SerializedStyles;
17
17
  export declare const menuItemIconStyles: (theme: MenuItemTheme, { size }: Required<Pick<MenuItemProps, 'size'>>) => SerializedStyles;
@@ -19,10 +19,10 @@ export declare const menuItemLabelStyles: (theme: MenuItemTheme) => SerializedSt
19
19
  export declare const menuItemDescriptionStyles: (theme: MenuItemTheme) => SerializedStyles;
20
20
  export declare const menuItemAsideStyles: (theme: MenuItemTheme) => SerializedStyles;
21
21
  export type MenuSeparatorTheme = Prettify<ComponentMenu['menuSeparator']>;
22
- export type PartialMenuSeparatorTheme = DeepPartial<MenuSeparatorTheme>;
22
+ export type PartialMenuSeparatorTheme = Prettify<DeepPartial<MenuSeparatorTheme>>;
23
23
  export declare const defaultMenuSeparatorTheme: MenuSeparatorTheme;
24
24
  export declare const menuSeparatorStyles: (theme: MenuSeparatorTheme) => SerializedStyles;
25
25
  export type MenuPopoverTheme = Prettify<ComponentMenu['menuPopover']>;
26
- export type PartialMenuPopoverTheme = DeepPartial<MenuPopoverTheme>;
26
+ export type PartialMenuPopoverTheme = Prettify<DeepPartial<MenuPopoverTheme>>;
27
27
  export declare const defaultMenuPopoverTheme: MenuPopoverTheme;
28
28
  export declare const menuPopoverStyles: (theme: MenuPopoverTheme, { size }: Required<Pick<MenuPopoverProps, 'size'>>) => SerializedStyles;
@@ -2,7 +2,7 @@ import type { SerializedStyles } from '@emotion/react';
2
2
  import type { ComponentSelect } from '../../styleD/build/typescript/component/select';
3
3
  import type { DeepPartial, Prettify } from '../../util/types';
4
4
  export type SelectTheme = Prettify<ComponentSelect>;
5
- export type PartialSelectTheme = DeepPartial<SelectTheme>;
5
+ export type PartialSelectTheme = Prettify<DeepPartial<SelectTheme>>;
6
6
  export declare const defaultSelectTheme: SelectTheme;
7
7
  export declare const popoverStyles: (theme: SelectTheme) => SerializedStyles;
8
8
  export declare const listBoxItemStyles: (theme: SelectTheme) => SerializedStyles;
@@ -1,8 +1,11 @@
1
+ import type { TopBarTheme } from './styles';
1
2
  import type { TopBarProps } from './types';
2
- export declare function TopBarContainerRight({ children, }: {
3
+ export declare function TopBarContainerRight({ children, theme, }: {
3
4
  children: TopBarProps['children'];
5
+ theme?: TopBarTheme;
4
6
  }): import("@emotion/react/jsx-runtime").JSX.Element;
5
- export declare function TopBarContainerLeft({ children, }: {
7
+ export declare function TopBarContainerLeft({ children, theme, }: {
6
8
  children: TopBarProps['children'];
9
+ theme?: TopBarTheme;
7
10
  }): import("@emotion/react/jsx-runtime").JSX.Element;
8
11
  export declare function TopBar({ children, theme, cssOverrides, className, ...props }: TopBarProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import type { SerializedStyles } from '@emotion/react';
2
2
  import type { ComponentTopBar } from '../../styleD/build/typescript/component/TopBar';
3
3
  import type { DeepPartial, Prettify } from '../../util/types';
4
4
  export type TopBarTheme = Prettify<ComponentTopBar>;
5
- export type PartialTopBarTheme = DeepPartial<TopBarTheme>;
5
+ export type PartialTopBarTheme = Prettify<DeepPartial<TopBarTheme>>;
6
6
  export declare const defaultTopBarTheme: TopBarTheme;
7
7
  export declare const topBarStyles: (theme: TopBarTheme) => SerializedStyles;
8
8
  export declare const topBarContainerLeftStyles: (theme: TopBarTheme) => SerializedStyles;
@@ -3,6 +3,6 @@ import type { ComponentTopBar } from '../../../styleD/build/typescript/component
3
3
  import type { DeepPartial, Prettify } from '../../../util/types';
4
4
  import type { TopBarItemProps } from './types';
5
5
  export type TopBarItemTheme = Prettify<ComponentTopBar['Item']>;
6
- export type PartialTopBarItemTheme = DeepPartial<TopBarItemTheme>;
6
+ export type PartialTopBarItemTheme = Prettify<DeepPartial<TopBarItemTheme>>;
7
7
  export declare const defaultTopBarItemTheme: TopBarItemTheme;
8
8
  export declare const topBarItemStyles: (theme: TopBarItemTheme, alignment: 'left' | 'right', { size }: Required<Pick<TopBarItemProps, 'size'>>) => SerializedStyles;
@@ -3,7 +3,7 @@ import type { ComponentTopBar } from '../../../styleD/build/typescript/component
3
3
  import type { DeepPartial, Prettify } from '../../../util/types';
4
4
  import type { TopBarNavigationProps } from './types';
5
5
  export type TopBarNavigationTheme = Prettify<ComponentTopBar['Navigation']>;
6
- export type PartialTopBarNavigationTheme = DeepPartial<TopBarNavigationTheme>;
6
+ export type PartialTopBarNavigationTheme = Prettify<DeepPartial<TopBarNavigationTheme>>;
7
7
  export declare const defaultTopBarNavigationTheme: TopBarNavigationTheme;
8
8
  export declare const topBarNavigationStyles: (theme: TopBarNavigationTheme, selected: boolean) => SerializedStyles;
9
9
  export declare const topBarNavigationDividerStyles: (theme: TopBarNavigationTheme, { alignment }: Required<Pick<TopBarNavigationProps, 'alignment'>>) => SerializedStyles;
@@ -2,7 +2,7 @@ import type { SerializedStyles } from '@emotion/react';
2
2
  import { type ComponentTopBar } from '../../..//styleD/build/typescript/component/TopBar';
3
3
  import type { DeepPartial, Prettify } from '../../../util/types';
4
4
  export type TopBarToolNameTheme = Prettify<ComponentTopBar['ToolName']>;
5
- export type PartialTopBarToolNameTheme = DeepPartial<TopBarToolNameTheme>;
5
+ export type PartialTopBarToolNameTheme = Prettify<DeepPartial<TopBarToolNameTheme>>;
6
6
  export declare const defaultToolNameTheme: TopBarToolNameTheme;
7
7
  export declare const toolNameHoverLinkStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
8
8
  export declare const toolNameLinkStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
@@ -3,6 +3,6 @@ import { type ComponentTypography } from '../../styleD/build/typescript/componen
3
3
  import type { DeepPartial, Prettify } from '../../util/types';
4
4
  import type { TypographyProps } from './types';
5
5
  export type TypographyTheme = Prettify<ComponentTypography>;
6
- export type PartialTypographyTheme = DeepPartial<TypographyTheme>;
6
+ export type PartialTypographyTheme = Prettify<DeepPartial<TypographyTheme>>;
7
7
  export declare const defaultTypographyTheme: TypographyTheme;
8
8
  export declare const typographyStyles: (theme: TypographyTheme, { variant }: Required<Pick<TypographyProps, 'variant'>>) => SerializedStyles;
@@ -1,3 +1,3 @@
1
1
  import type { ComponentUserMenu } from '../../styleD/build/typescript/component/userMenu';
2
- import type { DeepPartial } from '../../util/types';
3
- export type PartialUserMenuTheme = DeepPartial<ComponentUserMenu>;
2
+ import type { DeepPartial, Prettify } from '../../util/types';
3
+ export type PartialUserMenuTheme = Prettify<DeepPartial<ComponentUserMenu>>;
@@ -98,6 +98,7 @@ export declare const componentTopBar: {
98
98
  };
99
99
  ToolName: {
100
100
  display: string;
101
+ color: string;
101
102
  'align-items': string;
102
103
  gap: string;
103
104
  typography: {
@@ -42,7 +42,7 @@ export declare const componentRadioGroup: {
42
42
  selected: {
43
43
  after: {
44
44
  backgroundColor: string;
45
- scale: string;
45
+ scale: number;
46
46
  };
47
47
  border: string;
48
48
  invalid: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/stand",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
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": {