@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
@@ -0,0 +1,20 @@
1
+ /**
2
+ * IconButton component entry point
3
+ *
4
+ * This component extends the `Button` component styles
5
+ *
6
+ * Peer dependencies required to use these components:
7
+ * - `@emotion/react`
8
+ * - `react`
9
+ * - `react-dom`
10
+ * - `react-aria-components`
11
+ * - `typescript`
12
+ *
13
+ * See the `peerDependencies` section of package.json for compatible versions.
14
+ *
15
+ * If you only need the built CSS, use the `button` css (./component/button.css),
16
+ * you don't need to install these.
17
+ */
18
+ export { IconButton } from './components/icon-button/IconButton';
19
+ export type { IconButtonProps } from './components/icon-button/types';
20
+ export type { IconButtonTheme } from './components/icon-button/styles';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * IconLinkButton component entry point
3
+ *
4
+ * This component extends the `Button` component styles
5
+ *
6
+ * Peer dependencies required to use these components:
7
+ * - `@emotion/react`
8
+ * - `react`
9
+ * - `react-dom`
10
+ * - `react-aria-components`
11
+ * - `typescript`
12
+ *
13
+ * See the `peerDependencies` section of package.json for compatible versions.
14
+ *
15
+ * If you only need the built CSS, use the `button` css (./component/button.css),
16
+ * you don't need to install these.
17
+ */
18
+ export { IconLinkButton } from './components/icon-link-button/IconLinkButton';
19
+ export type { IconLinkButtonProps } from './components/icon-link-button/types';
20
+ export type { IconLinkButtonTheme } from './components/icon-link-button/styles';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Icon 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/icon.css),
13
+ * you don't need to install these.
14
+ *
15
+ * You'll also need to install a set of icons to use the Icon component.
16
+ *
17
+ * The Icon component supports two types of icons:
18
+ * 1. Material Symbols
19
+ * 2. SVG icons (e.g. Material Icons or custom SVG icon components)
20
+ *
21
+ * See the documentation for the Icon component for instructions on how to use it with both types of icons.
22
+ */
23
+ export { Icon } from './components/icon/Icon';
24
+ export type { IconProps } from './components/icon/types';
25
+ export type { IconTheme } from './components/icon/styles';
26
+ export { componentIcon } from './styleD/build/typescript/component/icon';
27
+ export type { ComponentIcon } from './styleD/build/typescript/component/icon';
@@ -11,6 +11,19 @@ export { componentTagAutocomplete } from './styleD/build/typescript/component/ta
11
11
  export type { ComponentTagAutocomplete } from './styleD/build/typescript/component/tagAutocomplete';
12
12
  export { componentTagTable } from './styleD/build/typescript/component/tagTable';
13
13
  export type { ComponentTagTable } from './styleD/build/typescript/component/tagTable';
14
+ export { componentUserMenu } from './styleD/build/typescript/component/userMenu';
15
+ export type { ComponentUserMenu } from './styleD/build/typescript/component/userMenu';
16
+ /**
17
+ * design system components tokens exports
18
+ */
19
+ export { componentAvatar } from './styleD/build/typescript/component/avatar';
20
+ export type { ComponentAvatar } from './styleD/build/typescript/component/avatar';
21
+ export { componentButton } from './styleD/build/typescript/component/button';
22
+ export type { ComponentButton } from './styleD/build/typescript/component/button';
23
+ export { componentTypography } from './styleD/build/typescript/component/typography';
24
+ export type { ComponentTypography } from './styleD/build/typescript/component/typography';
25
+ export { componentIcon } from './styleD/build/typescript/component/icon';
26
+ export type { ComponentIcon } from './styleD/build/typescript/component/icon';
14
27
  /**
15
28
  * style dictionary exports - base
16
29
  */
@@ -33,3 +46,7 @@ export { semanticTypography } from './styleD/build/typescript/semantic/typograph
33
46
  export type { SemanticTypography } from './styleD/build/typescript/semantic/typography';
34
47
  export { semanticSizing } from './styleD/build/typescript/semantic/sizing';
35
48
  export type { SemanticSizing } from './styleD/build/typescript/semantic/sizing';
49
+ /**
50
+ * utils exports
51
+ */
52
+ export { default as GlobalResetStyles } from './util/reset.css?inline';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * LinkButton component entry point
3
+ *
4
+ * This component extends the `Button` component styles
5
+ *
6
+ * Peer dependencies required to use these components:
7
+ * - `@emotion/react`
8
+ * - `react`
9
+ * - `react-dom`
10
+ * - `react-aria-components`
11
+ * - `typescript`
12
+ *
13
+ * See the `peerDependencies` section of package.json for compatible versions.
14
+ *
15
+ * If you only need the built CSS, use the `button` css (./component/button.css),
16
+ * you don't need to install these.
17
+ */
18
+ export { LinkButton } from './components/link-button/LinkButton';
19
+ export type { LinkButtonProps } from './components/link-button/types';
20
+ export type { LinkButtonTheme } from './components/link-button/styles';
@@ -41,7 +41,7 @@ export declare const baseColors: {
41
41
  readonly '500': "#3e82dd";
42
42
  readonly '600': "#699ee5";
43
43
  readonly '700': "#93b9ec";
44
- readonly '800': "#bdd4f4";
44
+ readonly '800': "#c5d9f4";
45
45
  readonly '900': "#e8f0fb";
46
46
  };
47
47
  readonly cyan: {
@@ -4,6 +4,7 @@
4
4
  export declare const baseSizing: {
5
5
  readonly 'size-1-px': "1px";
6
6
  readonly 'size-2-px': "2px";
7
+ readonly 'size-8-px': "8px";
7
8
  readonly 'size-16-px': "16px";
8
9
  readonly 'size-18-px': "18px";
9
10
  readonly 'size-20-px': "20px";
@@ -13,6 +14,7 @@ export declare const baseSizing: {
13
14
  readonly 'size-48-px': "48px";
14
15
  readonly 'size-1-rem': "0.0625rem";
15
16
  readonly 'size-2-rem': "0.125rem";
17
+ readonly 'size-8-rem': "0.5rem";
16
18
  readonly 'size-16-rem': "1rem";
17
19
  readonly 'size-18-rem': "1.125rem";
18
20
  readonly 'size-20-rem': "1.25rem";
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ export declare const componentAvatar: {
5
+ shared: {
6
+ color: {
7
+ green: {
8
+ text: string;
9
+ background: string;
10
+ border: string;
11
+ };
12
+ blue: {
13
+ text: string;
14
+ background: string;
15
+ border: string;
16
+ };
17
+ red: {
18
+ text: string;
19
+ background: string;
20
+ border: string;
21
+ };
22
+ cyan: {
23
+ text: string;
24
+ background: string;
25
+ border: string;
26
+ };
27
+ teal: {
28
+ text: string;
29
+ background: string;
30
+ border: string;
31
+ };
32
+ 'cool-purple': {
33
+ text: string;
34
+ background: string;
35
+ border: string;
36
+ };
37
+ 'warm-purple': {
38
+ text: string;
39
+ background: string;
40
+ border: string;
41
+ };
42
+ magenta: {
43
+ text: string;
44
+ background: string;
45
+ border: string;
46
+ };
47
+ orange: {
48
+ text: string;
49
+ background: string;
50
+ border: string;
51
+ };
52
+ yellow: {
53
+ text: string;
54
+ background: string;
55
+ border: string;
56
+ };
57
+ outlined: {
58
+ text: string;
59
+ background: string;
60
+ border: string;
61
+ };
62
+ };
63
+ display: string;
64
+ 'align-items': string;
65
+ 'justify-content': string;
66
+ overflow: string;
67
+ 'flex-shrink': string;
68
+ 'border-radius': string;
69
+ 'user-select': string;
70
+ };
71
+ sm: {
72
+ size: string;
73
+ typography: {
74
+ font: string;
75
+ letterSpacing: string;
76
+ fontWidth: number;
77
+ };
78
+ };
79
+ md: {
80
+ size: string;
81
+ typography: {
82
+ font: string;
83
+ letterSpacing: string;
84
+ fontWidth: number;
85
+ };
86
+ };
87
+ };
88
+ export type ComponentAvatar = typeof componentAvatar;