@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
@@ -25,8 +25,9 @@ const semanticColors = {
25
25
  "interactive-disabled": "#999999"
26
26
  },
27
27
  bg: {
28
- "default-onDark": "#121212",
29
- "default-onLight": "#ffffff"
28
+ base: "#ffffff",
29
+ "raised-1": "#f6f6f6",
30
+ "raised-2": "#ededed"
30
31
  },
31
32
  surface: {
32
33
  "light-1": "#f6f6f6",
@@ -34,14 +35,16 @@ const semanticColors = {
34
35
  "dark-1": "#333333"
35
36
  },
36
37
  border: {
37
- subtle: "#cccccc",
38
38
  default: "#8d8d8d",
39
+ secondary: "#cccccc",
40
+ tertiary: "#ededed",
39
41
  strong: "#545454",
40
42
  "inverse-strong": "#ffffff",
41
43
  "interactive-emphasised": "#0d4289",
42
44
  "interactive-neutral": "#545454",
43
45
  "interactive-disabled": "#dcdcdc",
44
- "interactive-focused": "#0072a9"
46
+ "interactive-focused": "#0072a9",
47
+ "interactive-selected": "#0072a9"
45
48
  },
46
49
  status: {
47
50
  "status-draft": "#f1c21b",
@@ -52,17 +55,17 @@ const semanticColors = {
52
55
  fill: {
53
56
  "interactive-primary-emphasised": "#0d4289",
54
57
  "interactive-primary-emphasised-hover": "#092f62",
55
- "interactive-primary-emphasised-pressed": "#092f62",
58
+ "interactive-primary-emphasised-pressed": "#061d3c",
56
59
  "interactive-secondary-emphasised-hover": "#e8f0fb",
57
- "interactive-secondary-emphasised-pressed": "#e8f0fb",
60
+ "interactive-secondary-emphasised-pressed": "#c5d9f4",
58
61
  "interactive-primary-neutral": "#545454",
59
62
  "interactive-primary-neutral-hover": "#333333",
60
- "interactive-primary-neutral-pressed": "#333333",
63
+ "interactive-primary-neutral-pressed": "#121212",
61
64
  "interactive-secondary-neutral-hover": "#ededed",
62
- "interactive-secondary-neutral-pressed": "#ededed",
65
+ "interactive-secondary-neutral-pressed": "#dcdcdc",
63
66
  "interactive-disabled": "#dcdcdc",
64
67
  "green-subtle": "#cde4c9",
65
- "blue-subtle": "#bdd4f4",
68
+ "blue-subtle": "#c5d9f4",
66
69
  "red-subtle": "#f5c6c0",
67
70
  "cyan-subtle": "#b8d8e7",
68
71
  "teal-subtle": "#c5dfe1",
@@ -70,7 +73,8 @@ const semanticColors = {
70
73
  "warm-purple-subtle": "#dac3e8",
71
74
  "magenta-subtle": "#edc6d7",
72
75
  "orange-subtle": "#fcddc6",
73
- "yellow-subtle": "#fbeebf"
76
+ "yellow-subtle": "#fbeebf",
77
+ selected: "#005d8b"
74
78
  }
75
79
  };
76
80
 
@@ -23,8 +23,9 @@ const semanticColors = {
23
23
  "interactive-disabled": "#999999"
24
24
  },
25
25
  bg: {
26
- "default-onDark": "#121212",
27
- "default-onLight": "#ffffff"
26
+ base: "#ffffff",
27
+ "raised-1": "#f6f6f6",
28
+ "raised-2": "#ededed"
28
29
  },
29
30
  surface: {
30
31
  "light-1": "#f6f6f6",
@@ -32,14 +33,16 @@ const semanticColors = {
32
33
  "dark-1": "#333333"
33
34
  },
34
35
  border: {
35
- subtle: "#cccccc",
36
36
  default: "#8d8d8d",
37
+ secondary: "#cccccc",
38
+ tertiary: "#ededed",
37
39
  strong: "#545454",
38
40
  "inverse-strong": "#ffffff",
39
41
  "interactive-emphasised": "#0d4289",
40
42
  "interactive-neutral": "#545454",
41
43
  "interactive-disabled": "#dcdcdc",
42
- "interactive-focused": "#0072a9"
44
+ "interactive-focused": "#0072a9",
45
+ "interactive-selected": "#0072a9"
43
46
  },
44
47
  status: {
45
48
  "status-draft": "#f1c21b",
@@ -50,17 +53,17 @@ const semanticColors = {
50
53
  fill: {
51
54
  "interactive-primary-emphasised": "#0d4289",
52
55
  "interactive-primary-emphasised-hover": "#092f62",
53
- "interactive-primary-emphasised-pressed": "#092f62",
56
+ "interactive-primary-emphasised-pressed": "#061d3c",
54
57
  "interactive-secondary-emphasised-hover": "#e8f0fb",
55
- "interactive-secondary-emphasised-pressed": "#e8f0fb",
58
+ "interactive-secondary-emphasised-pressed": "#c5d9f4",
56
59
  "interactive-primary-neutral": "#545454",
57
60
  "interactive-primary-neutral-hover": "#333333",
58
- "interactive-primary-neutral-pressed": "#333333",
61
+ "interactive-primary-neutral-pressed": "#121212",
59
62
  "interactive-secondary-neutral-hover": "#ededed",
60
- "interactive-secondary-neutral-pressed": "#ededed",
63
+ "interactive-secondary-neutral-pressed": "#dcdcdc",
61
64
  "interactive-disabled": "#dcdcdc",
62
65
  "green-subtle": "#cde4c9",
63
- "blue-subtle": "#bdd4f4",
66
+ "blue-subtle": "#c5d9f4",
64
67
  "red-subtle": "#f5c6c0",
65
68
  "cyan-subtle": "#b8d8e7",
66
69
  "teal-subtle": "#c5dfe1",
@@ -68,7 +71,8 @@ const semanticColors = {
68
71
  "warm-purple-subtle": "#dac3e8",
69
72
  "magenta-subtle": "#edc6d7",
70
73
  "orange-subtle": "#fcddc6",
71
- "yellow-subtle": "#fbeebf"
74
+ "yellow-subtle": "#fbeebf",
75
+ selected: "#005d8b"
72
76
  }
73
77
  };
74
78
 
@@ -14,7 +14,8 @@ const semanticSizing = {
14
14
  },
15
15
  border: {
16
16
  default: "0.0625rem",
17
- md: "0.125rem"
17
+ md: "0.125rem",
18
+ "extra-wide": "0.5rem"
18
19
  }
19
20
  };
20
21
 
@@ -12,7 +12,8 @@ const semanticSizing = {
12
12
  },
13
13
  border: {
14
14
  default: "0.0625rem",
15
- md: "0.125rem"
15
+ md: "0.125rem",
16
+ "extra-wide": "0.5rem"
16
17
  }
17
18
  };
18
19
 
@@ -200,6 +200,11 @@ const semanticTypography = {
200
200
  font: "normal 700 0.875rem/1 Open Sans",
201
201
  letterSpacing: "-0.0125rem",
202
202
  fontWidth: 95
203
+ },
204
+ "interactive-md": {
205
+ font: "normal 700 1rem/1 Open Sans",
206
+ letterSpacing: "-0.0125rem",
207
+ fontWidth: 95
203
208
  }
204
209
  };
205
210
 
@@ -198,6 +198,11 @@ const semanticTypography = {
198
198
  font: "normal 700 0.875rem/1 Open Sans",
199
199
  letterSpacing: "-0.0125rem",
200
200
  fontWidth: 95
201
+ },
202
+ "interactive-md": {
203
+ font: "normal 700 1rem/1 Open Sans",
204
+ letterSpacing: "-0.0125rem",
205
+ fontWidth: 95
201
206
  }
202
207
  };
203
208
 
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Avatar component entry point
3
+ *
4
+ * Peer dependencies required to use these components:
5
+ * - `@emotion/react`
6
+ * - `react`
7
+ * - `react-dom`
8
+ * - `typescript`
9
+ *
10
+ * See the `peerDependencies` section of package.json for compatible versions.
11
+ *
12
+ * If you only need the built CSS (./component/avatar.css),
13
+ * you don't need to install these.
14
+ */
15
+ export { Avatar } from './components/avatar/Avatar';
16
+ export type { AvatarProps } from './components/avatar/types';
17
+ export type { AvatarTheme } from './components/avatar/styles';
18
+ export { componentAvatar } from './styleD/build/typescript/component/avatar';
19
+ export type { ComponentAvatar } from './styleD/build/typescript/component/avatar';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Button component entry point
3
+ *
4
+ * Peer dependencies required to use these components:
5
+ * - `@emotion/react`
6
+ * - `react`
7
+ * - `react-dom`
8
+ * - `react-aria-components`
9
+ * - `typescript`
10
+ *
11
+ * See the `peerDependencies` section of package.json for compatible versions.
12
+ *
13
+ * If you only need the built CSS (./component/button.css),
14
+ * you don't need to install these.
15
+ */
16
+ export { Button } from './components/button/Button';
17
+ export type { ButtonProps } from './components/button/types';
18
+ export type { ButtonTheme } from './components/button/styles';
19
+ export { componentButton } from './styleD/build/typescript/component/button';
20
+ export type { ComponentButton } from './styleD/build/typescript/component/button';
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare const TitleText: ({ headingLevel, children, className, }: {
3
+ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
4
+ children: ReactNode;
5
+ className?: string | undefined;
6
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type AvatarProps } from './types';
2
+ export declare function Avatar({ src, initials, alt, size, color, theme, cssOverrides, ...props }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { SerializedStyles } from '@emotion/react';
2
+ import type { ComponentAvatar } from '../../styleD/build/typescript/component/avatar';
3
+ import type { Prettify } from '../../util/types';
4
+ import type { AvatarProps } from './types';
5
+ export type AvatarTheme = Prettify<ComponentAvatar>;
6
+ export declare const defaultAvatarTheme: AvatarTheme;
7
+ export declare const avatarImageStyles: SerializedStyles;
8
+ export declare const avatarStyles: (theme: AvatarTheme, { size, color }: Required<Pick<AvatarProps, 'size' | 'color'>>) => SerializedStyles;
@@ -0,0 +1,45 @@
1
+ import type { ComponentAvatar } from '../../styleD/build/typescript/component/avatar';
2
+ import type { DefaultProps } from '../../util/types';
3
+ import type { AvatarTheme } from './styles';
4
+ export type AvatarColors = keyof ComponentAvatar['shared']['color'];
5
+ export declare const avatarColors: AvatarColors[];
6
+ interface AvatarBaseProps extends DefaultProps<AvatarTheme> {
7
+ /**
8
+ * Size variant of the avatar
9
+ */
10
+ size?: keyof Omit<AvatarTheme, 'shared'>;
11
+ /**
12
+ * Color variant of the avatar
13
+ */
14
+ color?: AvatarColors;
15
+ }
16
+ interface AvatarWithImage extends AvatarBaseProps {
17
+ /**
18
+ * Image URL for the avatar
19
+ */
20
+ src: string;
21
+ /**
22
+ * Alternative text for the image (required when src is provided)
23
+ */
24
+ alt: string;
25
+ /**
26
+ * Initials to display when image fails to load (optional)
27
+ */
28
+ initials?: string;
29
+ }
30
+ interface AvatarWithInitials extends AvatarBaseProps {
31
+ /**
32
+ * Image URL for the avatar (optional)
33
+ */
34
+ src?: never;
35
+ /**
36
+ * Alternative text for the image (optional)
37
+ */
38
+ alt?: string;
39
+ /**
40
+ * Initials to display (required, typically 1-2 characters)
41
+ */
42
+ initials: string;
43
+ }
44
+ export type AvatarProps = AvatarWithImage | AvatarWithInitials;
45
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ButtonProps } from './types';
2
+ export declare function Button({ variant, size, theme, cssOverrides, icon, ...props }: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { SerializedStyles } from '@emotion/react';
2
+ import type { ComponentButton } from '../../styleD/build/typescript/component/button';
3
+ import type { Prettify } from '../../util/types';
4
+ import type { ButtonProps } from './types';
5
+ export type ButtonTheme = Prettify<ComponentButton>;
6
+ export declare const defaultButtonTheme: ButtonTheme;
7
+ export declare const buttonStyles: (theme: ButtonTheme, { size, variant }: Required<Pick<ButtonProps, 'size' | 'variant'>>, hasIcon?: boolean, isIconButton?: boolean) => SerializedStyles;
@@ -0,0 +1,18 @@
1
+ import type { ButtonProps as RACButtonProps } from 'react-aria-components';
2
+ import type { DefaultProps } from '../../util/types';
3
+ import type { IconProps } from '../icon/types';
4
+ import type { ButtonTheme } from './styles';
5
+ export interface ButtonProps extends DefaultProps<ButtonTheme, RACButtonProps['className']>, RACButtonProps {
6
+ /**
7
+ * Size variant of the button
8
+ */
9
+ size?: keyof Omit<ButtonTheme['emphasised-primary'], 'shared'>;
10
+ /**
11
+ * Variant of the button
12
+ */
13
+ variant?: keyof Omit<ButtonTheme, 'shared'>;
14
+ /**
15
+ * Icon to be rendered within the button. Passed to the Icon component, so can be either a string (for material symbols) or an SVG element.
16
+ */
17
+ icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
18
+ }
@@ -1,2 +1,2 @@
1
1
  import { Schema } from 'prosemirror-model';
2
- export declare const bylineEditorSchema: Schema<"doc" | "chip" | "text", any>;
2
+ export declare const bylineEditorSchema: Schema<"text" | "doc" | "chip", any>;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from './types';
2
+ export declare function Icon({ children, size, fill, alt, symbol, theme, cssOverrides, className, }: IconProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { ComponentIcon } from '../../styleD/build/typescript/component/icon';
2
+ import type { Prettify } from '../../util/types';
3
+ import type { IconProps } from './types';
4
+ export type IconTheme = Prettify<ComponentIcon>;
5
+ export declare const defaultIconTheme: IconTheme;
6
+ export declare const iconStyles: (theme: IconTheme, { size, fill, mode, }: Required<Pick<IconProps, "size">> & Pick<IconProps, "fill"> & {
7
+ mode: 'text' | 'svg';
8
+ }) => import("@emotion/react").SerializedStyles;
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import type { MaterialSymbol } from '../../fonts/material-symbols-types';
3
+ import type { DefaultPropsWithChildren } from '../../util/types';
4
+ import type { IconTheme } from './styles';
5
+ export type { MaterialSymbol } from '../../fonts/material-symbols-types';
6
+ export interface IconProps extends DefaultPropsWithChildren<IconTheme, undefined, MaterialSymbol | Exclude<React.ReactNode, string>> {
7
+ /**
8
+ * Size variant of the icon
9
+ */
10
+ size?: keyof Omit<IconTheme, 'shared'>;
11
+ /**
12
+ * Fill/color of the icon. Default is to inherit from text color or icon defaults.
13
+ */
14
+ fill?: string;
15
+ /**
16
+ * Alternative text for the icon, used for accessibility.
17
+ * This must be provided if the icon is not purely decorative, and should describe the meaning or function of the icon.
18
+ */
19
+ alt?: string;
20
+ /**
21
+ * Alternative to using the `children` prop for rendering Material Symbol icons,
22
+ * you can use the `symbol` prop to specify the icon by its symbol name.
23
+ * This is a convenience for font icons, allowing you to simply provide the symbol name in a type-safe way without needing to pass it as a child string.
24
+ * For example, instead of `<Icon>home</Icon>`, you can use `<Icon symbol="home" />`.
25
+ * This prop is mutually exclusive with `children` when rendering font icons, and takes precedence over `children` if both are provided.
26
+ */
27
+ symbol?: MaterialSymbol;
28
+ }
@@ -0,0 +1,2 @@
1
+ import type { IconButtonProps } from './types';
2
+ export declare function IconButton({ variant, size, symbol, ariaLabel, theme, cssOverrides, ...props }: IconButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;