@guardian/stand 0.0.34 → 0.0.36
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/dist/components/grid/Grid.cjs +37 -0
- package/dist/components/grid/Grid.js +14 -0
- package/dist/components/grid/styles.cjs +106 -0
- package/dist/components/grid/styles.js +98 -0
- package/dist/components/layout/Layout.cjs +114 -0
- package/dist/components/layout/Layout.js +83 -0
- package/dist/components/layout/styles.cjs +92 -0
- package/dist/components/layout/styles.js +83 -0
- package/dist/grid.cjs +10 -0
- package/dist/grid.js +2 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +2 -0
- package/dist/layout.cjs +10 -0
- package/dist/layout.js +2 -0
- package/dist/styleD/build/css/base/typography.css +2 -2
- package/dist/styleD/build/css/component/TopBar.css +2 -2
- package/dist/styleD/build/css/component/alertBanner.css +1 -1
- package/dist/styleD/build/css/component/autocomplete.css +1 -1
- package/dist/styleD/build/css/component/avatar.css +1 -1
- package/dist/styleD/build/css/component/button.css +3 -3
- package/dist/styleD/build/css/component/checkbox.css +2 -2
- package/dist/styleD/build/css/component/favicon.css +1 -1
- package/dist/styleD/build/css/component/form.css +1 -1
- package/dist/styleD/build/css/component/grid.css +14 -0
- package/dist/styleD/build/css/component/inlineMessage.css +1 -1
- package/dist/styleD/build/css/component/layout.css +30 -0
- package/dist/styleD/build/css/component/link.css +1 -1
- package/dist/styleD/build/css/component/menu.css +3 -3
- package/dist/styleD/build/css/component/radioGroup.css +3 -3
- package/dist/styleD/build/css/component/select.css +2 -2
- package/dist/styleD/build/css/component/tagTable.css +1 -1
- package/dist/styleD/build/css/component/textArea.css +2 -2
- package/dist/styleD/build/css/component/textInput.css +2 -2
- package/dist/styleD/build/css/component/userMenu.css +6 -6
- package/dist/styleD/build/css/semantic/breakpoints.css +3 -12
- package/dist/styleD/build/css/semantic/typography.css +61 -61
- package/dist/styleD/build/typescript/component/grid.cjs +16 -0
- package/dist/styleD/build/typescript/component/grid.js +14 -0
- package/dist/styleD/build/typescript/component/layout.cjs +48 -0
- package/dist/styleD/build/typescript/component/layout.js +46 -0
- package/dist/styleD/build/typescript/component/link.cjs +1 -1
- package/dist/styleD/build/typescript/component/link.js +1 -1
- package/dist/styleD/build/typescript/semantic/breakpoints.cjs +3 -24
- package/dist/styleD/build/typescript/semantic/breakpoints.js +3 -24
- package/dist/styleD/utils/semantic/mq.cjs +4 -4
- package/dist/styleD/utils/semantic/mq.js +4 -4
- package/dist/types/components/grid/Grid.d.ts +3 -0
- package/dist/types/components/grid/sandbox.d.ts +5 -0
- package/dist/types/components/grid/styles.d.ts +11 -0
- package/dist/types/components/grid/styles.test.d.ts +1 -0
- package/dist/types/components/grid/types.d.ts +25 -0
- package/dist/types/components/layout/Layout.d.ts +19 -0
- package/dist/types/components/layout/sandbox.d.ts +5 -0
- package/dist/types/components/layout/styles.d.ts +16 -0
- package/dist/types/components/layout/types.d.ts +20 -0
- package/dist/types/components/topbar/styles.d.ts +2 -2
- package/dist/types/grid.d.ts +20 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/layout.d.ts +20 -0
- package/dist/types/styleD/build/typescript/component/grid.d.ts +16 -0
- package/dist/types/styleD/build/typescript/component/layout.d.ts +48 -0
- package/dist/types/styleD/build/typescript/semantic/breakpoints.d.ts +3 -24
- package/dist/types/styleD/utils/semantic/mq.d.ts +5 -14
- package/package.json +21 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const componentName = "Layout";
|
|
2
|
+
export declare const componentTsx = "import { Grid, Item } from '@guardian/stand/grid';\nimport { Layout, Sidebar } from '@guardian/stand/layout';\nimport { TopBar, TopBarToolName } from '@guardian/stand/TopBar';\n\nexport const Component = () => (\n\t<Layout>\n\t\t<TopBar>\n\t\t\t<TopBarToolName name=\"Layout Demo\" favicon={{ letter: 'L' }} />\n\t\t</TopBar>\n\t\t<Sidebar layoutSmBreakpoint=\"above-grid\">\n\t\t\t<div style={{ padding: '8px' }}>Sidebar content</div>\n\t\t</Sidebar>\n\t\t<Grid>\n\t\t\t<Item size={{ sm: 12, md: 8 }}>Main content</Item>\n\t\t\t<Item size={{ sm: 12, md: 4 }}>Secondary content</Item>\n\t\t</Grid>\n\t</Layout>\n);\n";
|
|
3
|
+
export declare const componentCss = "\n/* import the layout styles */\n@import '@guardian/stand/component/layout.css';\n@import '@guardian/stand/semantic/breakpoints.css';\n\n/*\n * Use the TopBar and Grid/Item custom CSS examples from their respective\n * component docs to style the content placed inside these layout regions.\n */\n\n.stand-layout {\n\tdisplay: var(--component-layout-layout-shared-display);\n\tmin-height: var(--component-layout-layout-shared-min-height);\n\twidth: var(--component-layout-layout-shared-width);\n\tgrid-template-areas: var(--component-layout-layout-sm-grid-template-areas);\n\tgrid-template-columns: var(--component-layout-layout-sm-grid-template-columns);\n\tgrid-template-rows: var(--component-layout-layout-sm-grid-template-rows);\n}\n\n.stand-layout-alert-banner {\n\tgrid-area: alertbanner;\n}\n\n.stand-layout-top-bar {\n\tgrid-area: topbar;\n}\n\n.stand-layout-sidebar {\n\tgrid-area: sidebar;\n\tbackground: #f2f2f2;\n\tpadding: 8px;\n}\n\n.stand-layout-main {\n\tgrid-area: main;\n\tpadding: 8px;\n}\n\n@media (min-width: var(--semantic-breakpoints-md)) {\n\t.stand-layout {\n\t\tgrid-template-areas: var(--component-layout-layout-md-grid-template-areas);\n\t\tgrid-template-columns: var(--component-layout-layout-md-grid-template-columns);\n\t\tgrid-template-rows: var(--component-layout-layout-md-grid-template-rows);\n\t}\n\n\t.stand-layout-sidebar {\n\t\tdisplay: var(--component-layout-sidebar-md-display);\n\t\twidth: var(--component-layout-sidebar-md-width);\n\t}\n}\n";
|
|
4
|
+
export declare const componentHtml = "<div class=\"container\">\n\t<div class=\"stand-layout\">\n\t\t<div class=\"stand-layout-alert-banner\">Alert banner area</div>\n\t\t<div class=\"stand-layout-top-bar\">Top bar area</div>\n\t\t<div class=\"stand-layout-sidebar\">Sidebar area</div>\n\t\t<div class=\"stand-layout-main\">Main content area</div>\n\t</div>\n</div>\n";
|
|
5
|
+
export declare const componentJs = "\nimport { componentLayout, semanticBreakpoints } from \"@guardian/stand\";\n\n// Use the TopBar and Grid/Item custom JS examples from their respective\n// component docs to style the content placed inside these layout regions.\n\n\tconst sheet = new CSSStyleSheet();\n\n\tsheet.replaceSync(`\n\t .js-stand-layout {\n\t display: ${componentLayout.layout.shared.display};\n\t min-height: ${componentLayout.layout.shared.minHeight};\n\t width: ${componentLayout.layout.shared.width};\n\t grid-template-areas: ${componentLayout.layout.sm.gridTemplateAreas};\n\t grid-template-columns: ${componentLayout.layout.sm.gridTemplateColumns};\n\t grid-template-rows: ${componentLayout.layout.sm.gridTemplateRows};\n\t }\n\t .js-stand-layout-alert-banner {\n\t grid-area: alertbanner;\n\t }\n\t .js-stand-layout-top-bar {\n\t grid-area: topbar;\n\t }\n\t .js-stand-layout-sidebar {\n\t grid-area: sidebar;\n\t display: ${componentLayout.sidebar.sm.aboveGrid.display};\n\t background: #f2f2f2;\n\t padding: 8px;\n\t }\n\t .js-stand-layout-main {\n\t grid-area: main;\n\t padding: 8px;\n\t }\n\t @media (min-width: ${semanticBreakpoints.md}) {\n\t .js-stand-layout {\n\t grid-template-areas: ${componentLayout.layout.md.gridTemplateAreas};\n\t grid-template-columns: ${componentLayout.layout.md.gridTemplateColumns};\n\t grid-template-rows: ${componentLayout.layout.md.gridTemplateRows};\n\t }\n\t .js-stand-layout-sidebar {\n\t display: ${componentLayout.sidebar.md.display};\n\t width: ${componentLayout.sidebar.md.width};\n\t }\n\t }\n\t`);\n\n\tdocument.adoptedStyleSheets.push(sheet);\n\n\tdocument.getElementById(\"app\").innerHTML = `\n\t <div class=\"js-stand-layout\">\n\t <div class=\"js-stand-layout-alert-banner\">Alert banner area</div>\n\t <div class=\"js-stand-layout-top-bar\">Top bar area</div>\n\t <div class=\"js-stand-layout-sidebar\">Sidebar area</div>\n\t <div class=\"js-stand-layout-main\">Main content area</div>\n\t </div>\n\t`;\n";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import type { ComponentLayout } from '../../styleD/build/typescript/component/layout';
|
|
3
|
+
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
+
import type { LayoutProps, SidebarProps } from './types';
|
|
5
|
+
export type LayoutTheme = Prettify<ComponentLayout['layout']>;
|
|
6
|
+
export type PartialLayoutTheme = Prettify<DeepPartial<LayoutTheme>>;
|
|
7
|
+
export declare const defaultLayoutTheme: LayoutTheme;
|
|
8
|
+
export type SidebarTheme = Prettify<ComponentLayout['sidebar']>;
|
|
9
|
+
export type PartialSidebarTheme = Prettify<DeepPartial<SidebarTheme>>;
|
|
10
|
+
export declare const defaultSidebarTheme: SidebarTheme;
|
|
11
|
+
export declare const alertBannerLayoutStyles: () => SerializedStyles;
|
|
12
|
+
export declare const topBarLayoutStyles: () => SerializedStyles;
|
|
13
|
+
export declare const sidebarLayoutStyles: () => SerializedStyles;
|
|
14
|
+
export declare const mainLayoutStyles: (theme: LayoutTheme, { fluid }: Required<Pick<LayoutProps, 'fluid'>>) => SerializedStyles;
|
|
15
|
+
export declare const layoutStyles: (theme: LayoutTheme) => SerializedStyles;
|
|
16
|
+
export declare const sidebarStyles: (theme: SidebarTheme, { layoutSmBreakpoint }: Required<Pick<SidebarProps, 'layoutSmBreakpoint'>>) => SerializedStyles;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
2
|
+
import type { LayoutTheme, SidebarTheme } from './styles';
|
|
3
|
+
export interface LayoutProps extends DefaultPropsWithChildren<LayoutTheme> {
|
|
4
|
+
/**
|
|
5
|
+
* When `true`, the layout will take up the full width of its container, enabled by default.
|
|
6
|
+
* When `false`, the layout will have a max-width of 1584px and be centered within its container.
|
|
7
|
+
* This can be used to prevent the layout from becoming too stretched on very wide screens.
|
|
8
|
+
*/
|
|
9
|
+
fluid?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SidebarProps extends DefaultPropsWithChildren<SidebarTheme> {
|
|
12
|
+
/**
|
|
13
|
+
* Defines the layout behavior of the sidebar at the sm breakpoint.
|
|
14
|
+
*
|
|
15
|
+
* - 'above-grid' will place the sidebar above the grid content, effectively making it a horizontal bar at the top of the page, consumers may want to adjust the sidebar content styling for this breakpoint to make it look good in a horizontal layout.
|
|
16
|
+
* - 'hidden' will hide the sidebar entirely at the sm breakpoint, the consumer can choose how to make the sidebar content accessible through other means (e.g. a collapsible menu in the TopBar).
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
layoutSmBreakpoint?: 'above-grid' | 'hidden';
|
|
20
|
+
}
|
|
@@ -7,8 +7,8 @@ export type PartialTopBarTheme = Prettify<DeepPartial<TopBarTheme>>;
|
|
|
7
7
|
export declare const defaultTopBarTheme: TopBarTheme;
|
|
8
8
|
export declare const topBarStyles: (theme: TopBarTheme) => SerializedStyles;
|
|
9
9
|
export declare const topBarContainerStyles: (theme: TopBarTheme, { collapseBelow, showUntil, }?: {
|
|
10
|
-
collapseBelow?: "sm" | "md" | "lg" |
|
|
11
|
-
showUntil?: "sm" | "md" | "lg" |
|
|
10
|
+
collapseBelow?: "sm" | "md" | "lg" | undefined;
|
|
11
|
+
showUntil?: "sm" | "md" | "lg" | undefined;
|
|
12
12
|
}) => SerializedStyles;
|
|
13
13
|
export declare const topBarSpacerStyles: (theme: TopBarTheme) => SerializedStyles;
|
|
14
14
|
export declare const topBarCollapsedNavMenuButtonStyles: (theme: TopBarTheme, menuOpen?: boolean) => SerializedStyles;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid 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/grid.css),
|
|
13
|
+
* you don't need to install these.
|
|
14
|
+
*/
|
|
15
|
+
export { Grid } from './components/grid/Grid';
|
|
16
|
+
export { Item } from './components/grid/Grid';
|
|
17
|
+
export type { GridProps, ItemProps } from './components/grid/types';
|
|
18
|
+
export type { PartialGridTheme as GridTheme } from './components/grid/styles';
|
|
19
|
+
export { componentGrid } from './styleD/build/typescript/component/grid';
|
|
20
|
+
export type { ComponentGrid } from './styleD/build/typescript/component/grid';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export { componentFavicon } from './styleD/build/typescript/component/favicon';
|
|
|
28
28
|
export type { ComponentFavicon } from './styleD/build/typescript/component/favicon';
|
|
29
29
|
export { componentDatePicker } from './styleD/build/typescript/component/datePicker';
|
|
30
30
|
export type { ComponentDatePicker } from './styleD/build/typescript/component/datePicker';
|
|
31
|
+
export { componentGrid } from './styleD/build/typescript/component/grid';
|
|
32
|
+
export type { ComponentGrid } from './styleD/build/typescript/component/grid';
|
|
31
33
|
export { componentForm } from './styleD/build/typescript/component/form';
|
|
32
34
|
export type { ComponentForm } from './styleD/build/typescript/component/form';
|
|
33
35
|
export { componentIcon } from './styleD/build/typescript/component/icon';
|
|
@@ -36,6 +38,8 @@ export { componentInlineMessage } from './styleD/build/typescript/component/inli
|
|
|
36
38
|
export type { ComponentInlineMessage } from './styleD/build/typescript/component/inlineMessage';
|
|
37
39
|
export { componentMenu } from './styleD/build/typescript/component/menu';
|
|
38
40
|
export type { ComponentMenu } from './styleD/build/typescript/component/menu';
|
|
41
|
+
export { componentLayout } from './styleD/build/typescript/component/layout';
|
|
42
|
+
export type { ComponentLayout } from './styleD/build/typescript/component/layout';
|
|
39
43
|
export { componentLink } from './styleD/build/typescript/component/link';
|
|
40
44
|
export type { ComponentLink } from './styleD/build/typescript/component/link';
|
|
41
45
|
export { componentAlertBanner } from './styleD/build/typescript/component/alertBanner';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout component entry point
|
|
3
|
+
*
|
|
4
|
+
* Peer dependencies required to use these components:
|
|
5
|
+
* - `@emotion/react`
|
|
6
|
+
* - `react`
|
|
7
|
+
* - `react-dom`
|
|
8
|
+
* - `typescript`
|
|
9
|
+
* - `react-aria-components` (for the `TopBar` components used in the example)
|
|
10
|
+
*
|
|
11
|
+
* See the `peerDependencies` section of package.json for compatible versions.
|
|
12
|
+
*
|
|
13
|
+
* If you only need the built CSS (./component/layout.css),
|
|
14
|
+
* you don't need to install these.
|
|
15
|
+
*/
|
|
16
|
+
export { Layout, Sidebar } from './components/layout/Layout';
|
|
17
|
+
export type { LayoutProps, SidebarProps } from './components/layout/types';
|
|
18
|
+
export type { PartialLayoutTheme as LayoutTheme, PartialSidebarTheme as SidebarTheme, } from './components/layout/styles';
|
|
19
|
+
export { componentLayout } from './styleD/build/typescript/component/layout';
|
|
20
|
+
export type { ComponentLayout } from './styleD/build/typescript/component/layout';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const componentGrid: {
|
|
5
|
+
shared: {
|
|
6
|
+
display: string;
|
|
7
|
+
width: string;
|
|
8
|
+
columns: number;
|
|
9
|
+
gap: string;
|
|
10
|
+
direction: string;
|
|
11
|
+
wrap: string;
|
|
12
|
+
justifyContent: string;
|
|
13
|
+
alignItems: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type ComponentGrid = typeof componentGrid;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const componentLayout: {
|
|
5
|
+
layout: {
|
|
6
|
+
shared: {
|
|
7
|
+
display: string;
|
|
8
|
+
minHeight: string;
|
|
9
|
+
width: string;
|
|
10
|
+
'max-width': string;
|
|
11
|
+
'margin-left': string;
|
|
12
|
+
'margin-right': string;
|
|
13
|
+
};
|
|
14
|
+
sm: {
|
|
15
|
+
gridTemplateAreas: string;
|
|
16
|
+
gridTemplateColumns: string;
|
|
17
|
+
gridTemplateRows: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
gridTemplateAreas: string;
|
|
21
|
+
gridTemplateColumns: string;
|
|
22
|
+
gridTemplateRows: string;
|
|
23
|
+
};
|
|
24
|
+
lg: {
|
|
25
|
+
gridTemplateAreas: string;
|
|
26
|
+
gridTemplateColumns: string;
|
|
27
|
+
gridTemplateRows: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
sidebar: {
|
|
31
|
+
sm: {
|
|
32
|
+
hidden: {
|
|
33
|
+
display: string;
|
|
34
|
+
};
|
|
35
|
+
aboveGrid: {
|
|
36
|
+
display: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
md: {
|
|
40
|
+
display: string;
|
|
41
|
+
width: string;
|
|
42
|
+
};
|
|
43
|
+
lg: {
|
|
44
|
+
width: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type ComponentLayout = typeof componentLayout;
|
|
@@ -2,29 +2,8 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
export declare const semanticBreakpoints: {
|
|
5
|
-
sm:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
md: {
|
|
10
|
-
min: string;
|
|
11
|
-
max: string;
|
|
12
|
-
};
|
|
13
|
-
lg: {
|
|
14
|
-
min: string;
|
|
15
|
-
max: string;
|
|
16
|
-
};
|
|
17
|
-
xl: {
|
|
18
|
-
min: string;
|
|
19
|
-
max: string;
|
|
20
|
-
};
|
|
21
|
-
max: {
|
|
22
|
-
min: string;
|
|
23
|
-
max: string;
|
|
24
|
-
};
|
|
25
|
-
maxplus: {
|
|
26
|
-
min: string;
|
|
27
|
-
max: string;
|
|
28
|
-
};
|
|
5
|
+
sm: string;
|
|
6
|
+
md: string;
|
|
7
|
+
lg: string;
|
|
29
8
|
};
|
|
30
9
|
export type SemanticBreakpoints = typeof semanticBreakpoints;
|
|
@@ -12,7 +12,7 @@ export type Breakpoint = keyof typeof semanticBreakpoints;
|
|
|
12
12
|
* }
|
|
13
13
|
* `;
|
|
14
14
|
*/
|
|
15
|
-
export declare const from: Record<"sm" | "md" | "lg"
|
|
15
|
+
export declare const from: Record<"sm" | "md" | "lg", string>;
|
|
16
16
|
/**
|
|
17
17
|
* Returns a `max-width` media query string for everything *below* the given
|
|
18
18
|
* breakpoint (exclusive). Use to apply styles only on screens smaller than
|
|
@@ -26,7 +26,7 @@ export declare const from: Record<"sm" | "md" | "lg" | "xl" | "max" | "maxplus",
|
|
|
26
26
|
* }
|
|
27
27
|
* `;
|
|
28
28
|
*/
|
|
29
|
-
export declare const until: Record<"sm" | "md" | "lg"
|
|
29
|
+
export declare const until: Record<"sm" | "md" | "lg", string>;
|
|
30
30
|
/**
|
|
31
31
|
* Returns a combined `min-width` and `max-width` media query string for
|
|
32
32
|
* the range starting at breakpoint A up to (but not including) breakpoint B.
|
|
@@ -41,21 +41,12 @@ export declare const until: Record<"sm" | "md" | "lg" | "xl" | "max" | "maxplus"
|
|
|
41
41
|
*/
|
|
42
42
|
export declare const between: {
|
|
43
43
|
sm: {
|
|
44
|
-
and: Record<"md" | "lg"
|
|
44
|
+
and: Record<"md" | "lg", string>;
|
|
45
45
|
};
|
|
46
46
|
md: {
|
|
47
|
-
and: Record<"sm" | "lg"
|
|
47
|
+
and: Record<"sm" | "lg", string>;
|
|
48
48
|
};
|
|
49
49
|
lg: {
|
|
50
|
-
and: Record<"sm" | "md"
|
|
51
|
-
};
|
|
52
|
-
xl: {
|
|
53
|
-
and: Record<"sm" | "md" | "lg" | "max" | "maxplus", string>;
|
|
54
|
-
};
|
|
55
|
-
max: {
|
|
56
|
-
and: Record<"sm" | "md" | "lg" | "xl" | "maxplus", string>;
|
|
57
|
-
};
|
|
58
|
-
maxplus: {
|
|
59
|
-
and: Record<"sm" | "md" | "lg" | "xl" | "max", string>;
|
|
50
|
+
and: Record<"sm" | "md", string>;
|
|
60
51
|
};
|
|
61
52
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -117,6 +117,11 @@
|
|
|
117
117
|
"import": "./dist/date-picker.js",
|
|
118
118
|
"require": "./dist/date-picker.cjs"
|
|
119
119
|
},
|
|
120
|
+
"./grid": {
|
|
121
|
+
"types": "./dist/types/grid.d.ts",
|
|
122
|
+
"import": "./dist/grid.js",
|
|
123
|
+
"require": "./dist/grid.cjs"
|
|
124
|
+
},
|
|
120
125
|
"./byline": {
|
|
121
126
|
"types": "./dist/types/byline.d.ts",
|
|
122
127
|
"import": "./dist/byline.js",
|
|
@@ -147,6 +152,11 @@
|
|
|
147
152
|
"import": "./dist/link.js",
|
|
148
153
|
"require": "./dist/link.cjs"
|
|
149
154
|
},
|
|
155
|
+
"./layout": {
|
|
156
|
+
"types": "./dist/types/layout.d.ts",
|
|
157
|
+
"import": "./dist/layout.js",
|
|
158
|
+
"require": "./dist/layout.cjs"
|
|
159
|
+
},
|
|
150
160
|
"./fonts/OpenSans.css": "./dist/fonts/OpenSans.css",
|
|
151
161
|
"./fonts/MaterialSymbolsOutlined.css": "./dist/fonts/MaterialSymbolsOutlined.css",
|
|
152
162
|
"./fonts/MaterialSymbolsRound.css": "./dist/fonts/MaterialSymbolsRound.css",
|
|
@@ -157,6 +167,7 @@
|
|
|
157
167
|
"./base/spacing.css": "./dist/styleD/build/css/base/spacing.css",
|
|
158
168
|
"./base/sizing.css": "./dist/styleD/build/css/base/sizing.css",
|
|
159
169
|
"./base/radius.css": "./dist/styleD/build/css/base/radius.css",
|
|
170
|
+
"./semantic/breakpoints.css": "./dist/styleD/build/css/semantic/breakpoints.css",
|
|
160
171
|
"./semantic/colors.css": "./dist/styleD/build/css/semantic/colors.css",
|
|
161
172
|
"./semantic/typography.css": "./dist/styleD/build/css/semantic/typography.css",
|
|
162
173
|
"./semantic/sizing.css": "./dist/styleD/build/css/semantic/sizing.css",
|
|
@@ -182,7 +193,9 @@
|
|
|
182
193
|
"./component/alertBanner.css": "./dist/styleD/build/css/component/alertBanner.css",
|
|
183
194
|
"./component/datePicker.css": "./dist/styleD/build/css/component/datePicker.css",
|
|
184
195
|
"./component/intendedAudienceSignifier.css": "./dist/styleD/build/css/component/intendedAudienceSignifier.css",
|
|
185
|
-
"./component/link.css": "./dist/styleD/build/css/component/link.css"
|
|
196
|
+
"./component/link.css": "./dist/styleD/build/css/component/link.css",
|
|
197
|
+
"./component/grid.css": "./dist/styleD/build/css/component/grid.css",
|
|
198
|
+
"./component/layout.css": "./dist/styleD/build/css/component/layout.css"
|
|
186
199
|
},
|
|
187
200
|
"main": "./dist/index.cjs",
|
|
188
201
|
"module": "./dist/index.js",
|
|
@@ -269,6 +282,12 @@
|
|
|
269
282
|
],
|
|
270
283
|
"link": [
|
|
271
284
|
"./dist/types/link.d.ts"
|
|
285
|
+
],
|
|
286
|
+
"grid": [
|
|
287
|
+
"./dist/types/grid.d.ts"
|
|
288
|
+
],
|
|
289
|
+
"layout": [
|
|
290
|
+
"./dist/types/layout.d.ts"
|
|
272
291
|
]
|
|
273
292
|
}
|
|
274
293
|
},
|