@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.
- package/README.md +1122 -1
- package/dist/avatar.cjs +9 -0
- package/dist/avatar.js +2 -0
- package/dist/button.cjs +9 -0
- package/dist/button.js +2 -0
- package/dist/components/TitleText.cjs +28 -0
- package/dist/components/TitleText.js +22 -0
- package/dist/components/avatar/Avatar.cjs +57 -0
- package/dist/components/avatar/Avatar.js +27 -0
- package/dist/components/avatar/styles.cjs +33 -0
- package/dist/components/avatar/styles.js +29 -0
- package/dist/components/avatar/types.cjs +16 -0
- package/dist/components/avatar/types.js +14 -0
- package/dist/components/button/Button.cjs +38 -0
- package/dist/components/button/Button.js +19 -0
- package/dist/components/button/styles.cjs +68 -0
- package/dist/components/button/styles.js +63 -0
- package/dist/components/icon/Icon.cjs +46 -0
- package/dist/components/icon/Icon.js +19 -0
- package/dist/components/icon/styles.cjs +27 -0
- package/dist/components/icon/styles.js +20 -0
- package/dist/components/icon-button/IconButton.cjs +45 -0
- package/dist/components/icon-button/IconButton.js +26 -0
- package/dist/components/icon-button/styles.cjs +9 -0
- package/dist/components/icon-button/styles.js +6 -0
- package/dist/components/icon-link-button/IconLinkButton.cjs +47 -0
- package/dist/components/icon-link-button/IconLinkButton.js +23 -0
- package/dist/components/icon-link-button/styles.cjs +9 -0
- package/dist/components/icon-link-button/styles.js +6 -0
- package/dist/components/link-button/LinkButton.cjs +35 -0
- package/dist/components/link-button/LinkButton.js +16 -0
- package/dist/components/link-button/styles.cjs +9 -0
- package/dist/components/link-button/styles.js +6 -0
- package/dist/components/typography/Typography.cjs +26 -0
- package/dist/components/typography/Typography.js +13 -0
- package/dist/components/typography/styles.cjs +15 -0
- package/dist/components/typography/styles.js +12 -0
- package/dist/components/user-menu/PreferenceRadioGroup.cjs +53 -0
- package/dist/components/user-menu/PreferenceRadioGroup.js +19 -0
- package/dist/components/user-menu/UserMenu.cjs +67 -0
- package/dist/components/user-menu/UserMenu.js +11 -0
- package/dist/components/user-menu/default-options.cjs +109 -0
- package/dist/components/user-menu/default-options.js +105 -0
- package/dist/components/user-menu/styles.cjs +90 -0
- package/dist/components/user-menu/styles.js +83 -0
- package/dist/fonts/MaterialSymbolsOutlined.css +23 -0
- package/dist/fonts/MaterialSymbolsRound.css +23 -0
- package/dist/fonts/MaterialSymbolsSharp.css +23 -0
- package/dist/fonts/material-symbols-types.ts +3825 -0
- package/dist/icon-button.cjs +7 -0
- package/dist/icon-button.js +1 -0
- package/dist/icon-link-button.cjs +7 -0
- package/dist/icon-link-button.js +1 -0
- package/dist/icon.cjs +9 -0
- package/dist/icon.js +2 -0
- package/dist/index.cjs +16 -4
- package/dist/index.js +6 -0
- package/dist/link-button.cjs +7 -0
- package/dist/link-button.js +1 -0
- package/dist/styleD/build/css/base/colors.css +1 -1
- package/dist/styleD/build/css/base/sizing.css +2 -0
- package/dist/styleD/build/css/component/avatar.css +54 -0
- package/dist/styleD/build/css/component/button.css +282 -0
- package/dist/styleD/build/css/component/byline.css +1 -1
- package/dist/styleD/build/css/component/icon.css +11 -0
- package/dist/styleD/build/css/component/typography.css +7 -0
- package/dist/styleD/build/css/component/userMenu.css +29 -0
- package/dist/styleD/build/css/semantic/colors.css +12 -8
- package/dist/styleD/build/css/semantic/sizing.css +1 -0
- package/dist/styleD/build/css/semantic/typography.css +3 -0
- package/dist/styleD/build/typescript/base/colors.cjs +1 -1
- package/dist/styleD/build/typescript/base/colors.js +1 -1
- package/dist/styleD/build/typescript/base/sizing.cjs +2 -0
- package/dist/styleD/build/typescript/base/sizing.js +2 -0
- package/dist/styleD/build/typescript/component/avatar.cjs +88 -0
- package/dist/styleD/build/typescript/component/avatar.js +86 -0
- package/dist/styleD/build/typescript/component/button.cjs +523 -0
- package/dist/styleD/build/typescript/component/button.js +521 -0
- package/dist/styleD/build/typescript/component/byline.cjs +1 -1
- package/dist/styleD/build/typescript/component/byline.js +1 -1
- package/dist/styleD/build/typescript/component/icon.cjs +19 -0
- package/dist/styleD/build/typescript/component/icon.js +17 -0
- package/dist/styleD/build/typescript/component/typography.cjs +7 -0
- package/dist/styleD/build/typescript/component/typography.js +5 -0
- package/dist/styleD/build/typescript/component/userMenu.cjs +37 -0
- package/dist/styleD/build/typescript/component/userMenu.js +35 -0
- package/dist/styleD/build/typescript/semantic/colors.cjs +14 -10
- package/dist/styleD/build/typescript/semantic/colors.js +14 -10
- package/dist/styleD/build/typescript/semantic/sizing.cjs +2 -1
- package/dist/styleD/build/typescript/semantic/sizing.js +2 -1
- package/dist/styleD/build/typescript/semantic/typography.cjs +5 -0
- package/dist/styleD/build/typescript/semantic/typography.js +5 -0
- package/dist/types/avatar.d.ts +19 -0
- package/dist/types/button.d.ts +20 -0
- package/dist/types/components/TitleText.d.ts +6 -0
- package/dist/types/components/avatar/Avatar.d.ts +2 -0
- package/dist/types/components/avatar/styles.d.ts +8 -0
- package/dist/types/components/avatar/types.d.ts +45 -0
- package/dist/types/components/button/Button.d.ts +2 -0
- package/dist/types/components/button/styles.d.ts +7 -0
- package/dist/types/components/button/types.d.ts +18 -0
- package/dist/types/components/byline/schema.d.ts +1 -1
- package/dist/types/components/icon/Icon.d.ts +2 -0
- package/dist/types/components/icon/styles.d.ts +8 -0
- package/dist/types/components/icon/types.d.ts +28 -0
- package/dist/types/components/icon-button/IconButton.d.ts +2 -0
- package/dist/types/components/icon-button/styles.d.ts +522 -0
- package/dist/types/components/icon-button/types.d.ts +26 -0
- package/dist/types/components/icon-link-button/IconLinkButton.d.ts +2 -0
- package/dist/types/components/icon-link-button/styles.d.ts +522 -0
- package/dist/types/components/icon-link-button/types.d.ts +26 -0
- package/dist/types/components/link-button/LinkButton.d.ts +2 -0
- package/dist/types/components/link-button/styles.d.ts +522 -0
- package/dist/types/components/link-button/types.d.ts +18 -0
- package/dist/types/components/typography/Typography.d.ts +6 -0
- package/dist/types/components/typography/styles.d.ts +7 -0
- package/dist/types/components/typography/types.d.ts +13 -0
- package/dist/types/components/user-menu/PreferenceRadioGroup.d.ts +15 -0
- package/dist/types/components/user-menu/UserMenu.d.ts +17 -0
- package/dist/types/components/user-menu/default-options.d.ts +5 -0
- package/dist/types/components/user-menu/model.d.ts +9 -0
- package/dist/types/components/user-menu/styles.d.ts +9 -0
- package/dist/types/components/user-menu/theme.d.ts +3 -0
- package/dist/types/components/user-menu/types.d.ts +5 -0
- package/dist/types/fonts/material-symbols-types.d.ts +3822 -0
- package/dist/types/icon-button.d.ts +20 -0
- package/dist/types/icon-link-button.d.ts +20 -0
- package/dist/types/icon.d.ts +27 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/link-button.d.ts +20 -0
- package/dist/types/styleD/build/typescript/base/colors.d.ts +1 -1
- package/dist/types/styleD/build/typescript/base/sizing.d.ts +2 -0
- package/dist/types/styleD/build/typescript/component/avatar.d.ts +88 -0
- package/dist/types/styleD/build/typescript/component/button.d.ts +523 -0
- package/dist/types/styleD/build/typescript/component/icon.d.ts +19 -0
- package/dist/types/styleD/build/typescript/component/typography.d.ts +7 -0
- package/dist/types/styleD/build/typescript/component/userMenu.d.ts +37 -0
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +7 -3
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +5 -0
- package/dist/types/typography.d.ts +19 -0
- package/dist/types/user-menu.d.ts +18 -0
- package/dist/types/util/reset.d.ts +1 -0
- package/dist/types/util/storybookStyles.d.ts +1 -0
- package/dist/types/util/types.d.ts +28 -0
- package/dist/types/utils.d.ts +1 -0
- package/dist/typography.cjs +9 -0
- package/dist/typography.js +2 -0
- package/dist/user-menu.cjs +9 -0
- package/dist/user-menu.js +2 -0
- package/dist/util/css/reset.css +124 -0
- package/dist/util/reset.cjs +10 -0
- package/dist/util/reset.css.cjs +5 -0
- package/dist/util/reset.css.js +3 -0
- package/dist/util/reset.js +8 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.js +1 -0
- 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';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -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;
|