@guardian/stand 0.0.27 → 0.0.28

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 (73) hide show
  1. package/dist/components/form/Form.cjs +1 -1
  2. package/dist/components/form/Form.js +1 -1
  3. package/dist/components/form/styles.cjs +1 -4
  4. package/dist/components/form/styles.js +1 -2
  5. package/dist/components/select/styles.cjs +0 -2
  6. package/dist/components/select/styles.js +0 -2
  7. package/dist/components/topbar/TopBar.cjs +120 -14
  8. package/dist/components/topbar/TopBar.js +55 -9
  9. package/dist/components/topbar/styles.cjs +49 -5
  10. package/dist/components/topbar/styles.js +43 -4
  11. package/dist/components/topbar/topBarItem/TopBarItem.cjs +5 -1
  12. package/dist/components/topbar/topBarItem/TopBarItem.js +5 -2
  13. package/dist/components/topbar/topBarItem/styles.cjs +10 -3
  14. package/dist/components/topbar/topBarItem/styles.js +10 -3
  15. package/dist/components/topbar/topBarNavigation/TopBarNavigation.cjs +54 -38
  16. package/dist/components/topbar/topBarNavigation/TopBarNavigation.js +6 -4
  17. package/dist/components/topbar/topBarNavigation/styles.cjs +45 -8
  18. package/dist/components/topbar/topBarNavigation/styles.js +45 -8
  19. package/dist/components/topbar/topBarToolName/TopBarToolName.cjs +50 -9
  20. package/dist/components/topbar/topBarToolName/TopBarToolName.js +16 -8
  21. package/dist/components/topbar/topBarToolName/styles.cjs +42 -4
  22. package/dist/components/topbar/topBarToolName/styles.js +37 -5
  23. package/dist/index.cjs +2 -0
  24. package/dist/index.js +1 -0
  25. package/dist/styleD/build/css/component/TopBar.css +19 -1
  26. package/dist/styleD/build/css/component/form.css +0 -2
  27. package/dist/styleD/build/css/component/select.css +0 -1
  28. package/dist/styleD/build/css/semantic/breakpoints.css +18 -0
  29. package/dist/styleD/build/css/semantic/colors.css +4 -0
  30. package/dist/styleD/build/typescript/component/TopBar.cjs +38 -2
  31. package/dist/styleD/build/typescript/component/TopBar.js +38 -2
  32. package/dist/styleD/build/typescript/component/form.cjs +0 -6
  33. package/dist/styleD/build/typescript/component/form.js +0 -6
  34. package/dist/styleD/build/typescript/component/select.cjs +0 -1
  35. package/dist/styleD/build/typescript/component/select.js +0 -1
  36. package/dist/styleD/build/typescript/semantic/breakpoints.cjs +30 -0
  37. package/dist/styleD/build/typescript/semantic/breakpoints.js +28 -0
  38. package/dist/styleD/build/typescript/semantic/colors.cjs +4 -0
  39. package/dist/styleD/build/typescript/semantic/colors.js +4 -0
  40. package/dist/styleD/utils/semantic/mq.cjs +38 -0
  41. package/dist/styleD/utils/semantic/mq.js +26 -0
  42. package/dist/types/components/checkbox/CheckboxGroupSandbox.d.ts +2 -2
  43. package/dist/types/components/form/styles.d.ts +1 -3
  44. package/dist/types/components/text-area/sandbox.d.ts +2 -2
  45. package/dist/types/components/text-input/sandbox.d.ts +2 -2
  46. package/dist/types/components/topbar/TopBar.d.ts +1 -1
  47. package/dist/types/components/topbar/styles.d.ts +8 -2
  48. package/dist/types/components/topbar/topBarItem/TopBarItem.d.ts +1 -1
  49. package/dist/types/components/topbar/topBarItem/styles.d.ts +1 -1
  50. package/dist/types/components/topbar/topBarItem/types.d.ts +6 -1
  51. package/dist/types/components/topbar/topBarNavigation/TopBarNavigation.d.ts +1 -1
  52. package/dist/types/components/topbar/topBarNavigation/styles.d.ts +2 -2
  53. package/dist/types/components/topbar/topBarNavigation/types.d.ts +5 -0
  54. package/dist/types/components/topbar/topBarToolName/TopBarToolName.d.ts +1 -1
  55. package/dist/types/components/topbar/topBarToolName/styles.d.ts +7 -4
  56. package/dist/types/components/topbar/topBarToolName/types.d.ts +12 -0
  57. package/dist/types/components/topbar/types.d.ts +10 -1
  58. package/dist/types/index.d.ts +2 -0
  59. package/dist/types/styleD/build/typescript/component/TopBar.d.ts +36 -0
  60. package/dist/types/styleD/build/typescript/component/form.d.ts +0 -6
  61. package/dist/types/styleD/build/typescript/component/select.d.ts +0 -1
  62. package/dist/types/styleD/build/typescript/semantic/breakpoints.d.ts +30 -0
  63. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +4 -0
  64. package/dist/types/styleD/stories/semantic/Breakpoints.d.ts +15 -0
  65. package/dist/types/styleD/utils/semantic/mq.d.ts +61 -0
  66. package/dist/types/styleD/utils/semantic/mq.test.d.ts +1 -0
  67. package/dist/types/util/useResize.d.ts +1 -0
  68. package/dist/types/utils.d.ts +1 -0
  69. package/dist/util/useResize.cjs +34 -0
  70. package/dist/util/useResize.js +32 -0
  71. package/dist/utils.cjs +4 -0
  72. package/dist/utils.js +1 -0
  73. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { DefaultProps } from '../../../util/types';
3
3
  import type { TopBarItemTheme } from './styles';
4
- export interface TopBarItemProps extends DefaultProps<TopBarItemTheme> {
4
+ export interface TopBarItemProps extends DefaultProps<TopBarItemTheme>, React.HTMLAttributes<HTMLDivElement> {
5
5
  children?: React.ReactNode;
6
6
  /**
7
7
  * Determines the alignment of the item within the top bar
@@ -11,4 +11,9 @@ export interface TopBarItemProps extends DefaultProps<TopBarItemTheme> {
11
11
  * Determines how much width the item takes up in the top bar, defaults to `'md'`
12
12
  */
13
13
  size?: 'sm' | 'md' | 'lg';
14
+ /**
15
+ * This is an internal prop used to determine if the item is within an open menu, which affects the styling of the item.
16
+ * It is not intended to be set by consumers of the component.
17
+ */
18
+ _menuOpen?: boolean;
14
19
  }
@@ -1,2 +1,2 @@
1
1
  import type { TopBarNavigationProps } from './types';
2
- export declare function TopBarNavigation({ text, size, isSelected, icon, menuChildren, href, onPress, isDisabled, alignment, theme, cssOverrides, className, ...props }: TopBarNavigationProps): import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare function TopBarNavigation({ text, size, isSelected, icon, menuChildren, href, onPress, isDisabled, alignment, theme, cssOverrides, className, _menuOpen, ...props }: TopBarNavigationProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -5,8 +5,8 @@ import type { TopBarNavigationProps } from './types';
5
5
  export type TopBarNavigationTheme = Prettify<ComponentTopBar['Navigation']>;
6
6
  export type PartialTopBarNavigationTheme = Prettify<DeepPartial<TopBarNavigationTheme>>;
7
7
  export declare const defaultTopBarNavigationTheme: TopBarNavigationTheme;
8
- export declare const topBarNavigationStyles: (theme: TopBarNavigationTheme, selected: boolean) => SerializedStyles;
9
- export declare const topBarNavigationDividerStyles: (theme: TopBarNavigationTheme, { alignment }: Required<Pick<TopBarNavigationProps, 'alignment'>>) => SerializedStyles;
8
+ export declare const topBarNavigationStyles: (theme: TopBarNavigationTheme, selected: boolean, _menuOpen?: boolean) => SerializedStyles;
9
+ export declare const topBarNavigationDividerStyles: (theme: TopBarNavigationTheme, { alignment }: Required<Pick<TopBarNavigationProps, 'alignment'>>, _menuOpen?: boolean) => SerializedStyles;
10
10
  export declare const topBarNavigationTextStyles: (theme: TopBarNavigationTheme) => SerializedStyles;
11
11
  export declare const topBarNavigationTypographyStyles: (theme: TopBarNavigationTheme, size: 'md' | 'sm') => SerializedStyles;
12
12
  export declare const topBarMenuIndicatorStyles: (theme: TopBarNavigationTheme) => SerializedStyles;
@@ -41,4 +41,9 @@ export interface TopBarNavigationProps extends DefaultProps<TopBarNavigationThem
41
41
  * Determines the alignment of the item within the top bar
42
42
  */
43
43
  alignment?: 'left' | 'right';
44
+ /**
45
+ * This is an internal prop used to determine if the item is within an open menu, which affects the styling of the item.
46
+ * It is not intended to be set by consumers of the component.
47
+ */
48
+ _menuOpen?: boolean;
44
49
  }
@@ -1,2 +1,2 @@
1
1
  import type { TopBarToolNameProps } from './types';
2
- export declare const TopBarToolName: (props: TopBarToolNameProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const TopBarToolName: ({ collapseBelow, theme, ...props }: TopBarToolNameProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,13 +1,16 @@
1
1
  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
+ import type { TopBarToolNameProps } from './types';
4
5
  export type TopBarToolNameTheme = Prettify<ComponentTopBar['ToolName']>;
5
6
  export type PartialTopBarToolNameTheme = Prettify<DeepPartial<TopBarToolNameTheme>>;
6
7
  export declare const defaultToolNameTheme: TopBarToolNameTheme;
7
- export declare const toolNameHoverLinkStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
8
+ export declare const toolNameHoverLinkStyles: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
9
+ export declare const toolNameHoverLinkTextExpandedStyles: ({ collapseBelow, }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
10
+ export declare const toolNameHoverLinkTextCollapsedStyles: ({ collapseBelow, }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
8
11
  export declare const toolNameLinkStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
9
12
  export declare const toolNameStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
10
- export declare const toolNameTypography: (theme: TopBarToolNameTheme) => SerializedStyles;
11
- export declare const dividerStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
12
- export declare const subsectionStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
13
+ export declare const toolNameTypography: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
14
+ export declare const dividerStyles: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
15
+ export declare const subsectionStyles: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
13
16
  export declare const subsectionTypography: (theme: TopBarToolNameTheme) => SerializedStyles;
@@ -1,4 +1,5 @@
1
1
  import type { LinkProps as RACLinkProps } from 'react-aria-components';
2
+ import type { Breakpoint } from '../../../styleD/utils/semantic/mq';
2
3
  import type { DefaultProps } from '../../../util/types';
3
4
  import type { FaviconProps } from '../../favicon/types';
4
5
  import type { IconProps } from '../../icon/types';
@@ -12,6 +13,10 @@ export interface TopBarToolNameProps extends DefaultProps<TopBarToolNameTheme, R
12
13
  * Icon to display
13
14
  */
14
15
  favicon: FaviconProps;
16
+ /**
17
+ * The breakpoint at which the tool name section collapses to only show the favicon. Can be set to any valid breakpoint (e.g. 'sm', 'md', 'lg', etc.).
18
+ */
19
+ collapseBelow?: Breakpoint;
15
20
  /**
16
21
  * The subsection or type of content that is represented on the page (optional)
17
22
  * */
@@ -23,6 +28,13 @@ export interface TopBarToolNameProps extends DefaultProps<TopBarToolNameTheme, R
23
28
  /**
24
29
  * Text to display on hover, labels the link
25
30
  * e.g. 'Back to dashboard'
31
+ * If not provided, `collapsedHoverText` will be used for both expanded and collapsed states
26
32
  */
27
33
  hoverText?: string;
34
+ /**
35
+ * Shorter text to display on hover when collapsed, labels the link
36
+ * e.g. 'Back' or 'Home'
37
+ * If not provided, `hoverText` will be used for both expanded and collapsed states
38
+ */
39
+ collapsedHoverText?: string;
28
40
  }
@@ -1,3 +1,12 @@
1
+ import type { Breakpoint } from '../../styleD/utils/semantic/mq';
1
2
  import type { DefaultPropsWithChildren } from '../../util/types';
2
3
  import type { TopBarTheme } from './styles';
3
- export type TopBarProps = DefaultPropsWithChildren<TopBarTheme>;
4
+ export type TopBarProps = DefaultPropsWithChildren<TopBarTheme> & {
5
+ /**
6
+ * Will collapse the designated section of the top bar below the specified breakpoint. For example, if `toolName` is set to `lg`, the section will collapse at the `md` breakpoint and below (i.e. on smaller screens).
7
+ */
8
+ collapseBelow?: {
9
+ toolName?: Breakpoint;
10
+ containerLeft?: Breakpoint;
11
+ };
12
+ };
@@ -70,3 +70,5 @@ export { semanticSizing } from './styleD/build/typescript/semantic/sizing';
70
70
  export type { SemanticSizing } from './styleD/build/typescript/semantic/sizing';
71
71
  export { semanticShadow } from './styleD/build/typescript/semantic/shadow';
72
72
  export type { SemanticShadow } from './styleD/build/typescript/semantic/shadow';
73
+ export { semanticBreakpoints } from './styleD/build/typescript/semantic/breakpoints';
74
+ export type { SemanticBreakpoints } from './styleD/build/typescript/semantic/breakpoints';
@@ -7,6 +7,30 @@ export declare const componentTopBar: {
7
7
  height: string;
8
8
  'justify-content': string;
9
9
  border: string;
10
+ spacer: {
11
+ 'margin-left': string;
12
+ };
13
+ collapsedNavMenu: {
14
+ button: {
15
+ margin: string;
16
+ padding: string;
17
+ background: string;
18
+ border: string;
19
+ cursor: string;
20
+ hovered: {
21
+ 'background-color': string;
22
+ };
23
+ active: {
24
+ 'background-color': string;
25
+ };
26
+ };
27
+ popover: {
28
+ left: string;
29
+ top: string;
30
+ 'background-color': string;
31
+ border: string;
32
+ };
33
+ };
10
34
  Item: {
11
35
  display: string;
12
36
  'align-items': string;
@@ -61,6 +85,13 @@ export declare const componentTopBar: {
61
85
  };
62
86
  'border-top': string;
63
87
  divider: string;
88
+ _menuOpen: {
89
+ width: string;
90
+ height: string;
91
+ selected: {
92
+ 'background-color': string;
93
+ };
94
+ };
64
95
  };
65
96
  text: {
66
97
  margin: {
@@ -149,6 +180,11 @@ export declare const componentTopBar: {
149
180
  outline: string;
150
181
  'outline-offset': string;
151
182
  };
183
+ collapsed: {
184
+ paddingLeft: string;
185
+ paddingRight: string;
186
+ 'justify-content': string;
187
+ };
152
188
  };
153
189
  };
154
190
  };
@@ -29,9 +29,6 @@ export declare const componentForm: {
29
29
  };
30
30
  };
31
31
  sm: {
32
- container: {
33
- 'max-width': string;
34
- };
35
32
  label: {
36
33
  typography: {
37
34
  font: string;
@@ -41,9 +38,6 @@ export declare const componentForm: {
41
38
  };
42
39
  };
43
40
  md: {
44
- container: {
45
- 'max-width': string;
46
- };
47
41
  label: {
48
42
  typography: {
49
43
  font: string;
@@ -3,7 +3,6 @@
3
3
  */
4
4
  export declare const componentSelect: {
5
5
  shared: {
6
- maxWidth: string;
7
6
  width: string;
8
7
  hover: {
9
8
  backgroundColor: string;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ export declare const semanticBreakpoints: {
5
+ sm: {
6
+ min: string;
7
+ max: string;
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
+ };
29
+ };
30
+ export type SemanticBreakpoints = typeof semanticBreakpoints;
@@ -54,6 +54,10 @@ export declare const semanticColors: {
54
54
  'weak-hover': string;
55
55
  'weak-pressed': string;
56
56
  disabled: string;
57
+ 'disabled-inverse': string;
58
+ link: string;
59
+ 'link-hover': string;
60
+ 'link-pressed': string;
57
61
  'green-weak': string;
58
62
  'blue-weak': string;
59
63
  'red-weak': string;
@@ -0,0 +1,15 @@
1
+ export declare const SemanticBreakpointTokens: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ /**
3
+ * Demonstrates `from` - each card becomes highlighted once the viewport
4
+ * reaches or exceeds that breakpoint's minimum width.
5
+ */
6
+ export declare const FromDemo: () => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ /**
8
+ * Demonstrates `until` - each box is only visible below the named breakpoint.
9
+ */
10
+ export declare const UntilDemo: () => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ /**
12
+ * Demonstrates `between` - each box is highlighted only when the viewport
13
+ * falls within the stated range.
14
+ */
15
+ export declare const BetweenDemo: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,61 @@
1
+ import { semanticBreakpoints } from '../../build/typescript/semantic/breakpoints';
2
+ export type Breakpoint = keyof typeof semanticBreakpoints;
3
+ /**
4
+ * Returns a `min-width` media query string for the given breakpoint.
5
+ * Use to apply styles at that breakpoint and above.
6
+ *
7
+ * @example
8
+ * const styles = css`
9
+ * display: none;
10
+ * ${from.md} {
11
+ * display: block;
12
+ * }
13
+ * `;
14
+ */
15
+ export declare const from: Record<"sm" | "md" | "lg" | "xl" | "max" | "maxplus", string>;
16
+ /**
17
+ * Returns a `max-width` media query string for everything *below* the given
18
+ * breakpoint (exclusive). Use to apply styles only on screens smaller than
19
+ * where that breakpoint starts.
20
+ *
21
+ * @example
22
+ * const styles = css`
23
+ * display: block;
24
+ * ${until.lg} {
25
+ * display: none;
26
+ * }
27
+ * `;
28
+ */
29
+ export declare const until: Record<"sm" | "md" | "lg" | "xl" | "max" | "maxplus", string>;
30
+ /**
31
+ * Returns a combined `min-width` and `max-width` media query string for
32
+ * the range starting at breakpoint A up to (but not including) breakpoint B.
33
+ *
34
+ * @example
35
+ * const styles = css`
36
+ * display: none;
37
+ * ${between.md.and.lg} {
38
+ * display: block;
39
+ * }
40
+ * `;
41
+ */
42
+ export declare const between: {
43
+ sm: {
44
+ and: Record<"md" | "lg" | "xl" | "max" | "maxplus", string>;
45
+ };
46
+ md: {
47
+ and: Record<"sm" | "lg" | "xl" | "max" | "maxplus", string>;
48
+ };
49
+ lg: {
50
+ and: Record<"sm" | "md" | "xl" | "max" | "maxplus", string>;
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>;
60
+ };
61
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useResize: (callback: () => void, debounceMs?: number) => void;
@@ -5,3 +5,4 @@
5
5
  */
6
6
  export { convertTypographyToEmotionObjectStyle, convertTypographyToEmotionStringStyle, } from './styleD/utils/semantic/typography';
7
7
  export { GlobalResetStyles } from './util/reset';
8
+ export { from, until, between } from './styleD/utils/semantic/mq';
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ const useIsomorphicLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
6
+ const useResize = (callback, debounceMs = 100) => {
7
+ const callbackRef = React.useRef(callback);
8
+ useIsomorphicLayoutEffect(() => {
9
+ callbackRef.current = callback;
10
+ });
11
+ React.useEffect(() => {
12
+ if (typeof window === "undefined") {
13
+ return;
14
+ }
15
+ let timeout = null;
16
+ const handleResize = () => {
17
+ if (timeout) {
18
+ clearTimeout(timeout);
19
+ }
20
+ timeout = setTimeout(() => {
21
+ callbackRef.current();
22
+ }, debounceMs);
23
+ };
24
+ window.addEventListener("resize", handleResize);
25
+ return () => {
26
+ if (timeout) {
27
+ clearTimeout(timeout);
28
+ }
29
+ window.removeEventListener("resize", handleResize);
30
+ };
31
+ }, [debounceMs]);
32
+ };
33
+
34
+ exports.useResize = useResize;
@@ -0,0 +1,32 @@
1
+ import { useRef, useEffect, useLayoutEffect } from 'react';
2
+
3
+ const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
4
+ const useResize = (callback, debounceMs = 100) => {
5
+ const callbackRef = useRef(callback);
6
+ useIsomorphicLayoutEffect(() => {
7
+ callbackRef.current = callback;
8
+ });
9
+ useEffect(() => {
10
+ if (typeof window === "undefined") {
11
+ return;
12
+ }
13
+ let timeout = null;
14
+ const handleResize = () => {
15
+ if (timeout) {
16
+ clearTimeout(timeout);
17
+ }
18
+ timeout = setTimeout(() => {
19
+ callbackRef.current();
20
+ }, debounceMs);
21
+ };
22
+ window.addEventListener("resize", handleResize);
23
+ return () => {
24
+ if (timeout) {
25
+ clearTimeout(timeout);
26
+ }
27
+ window.removeEventListener("resize", handleResize);
28
+ };
29
+ }, [debounceMs]);
30
+ };
31
+
32
+ export { useResize };
package/dist/utils.cjs CHANGED
@@ -2,9 +2,13 @@
2
2
 
3
3
  var typography = require('./styleD/utils/semantic/typography.cjs');
4
4
  var reset = require('./util/reset.cjs');
5
+ var mq = require('./styleD/utils/semantic/mq.cjs');
5
6
 
6
7
 
7
8
 
8
9
  exports.convertTypographyToEmotionObjectStyle = typography.convertTypographyToEmotionObjectStyle;
9
10
  exports.convertTypographyToEmotionStringStyle = typography.convertTypographyToEmotionStringStyle;
10
11
  exports.GlobalResetStyles = reset.GlobalResetStyles;
12
+ exports.between = mq.between;
13
+ exports.from = mq.from;
14
+ exports.until = mq.until;
package/dist/utils.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { convertTypographyToEmotionObjectStyle, convertTypographyToEmotionStringStyle } from './styleD/utils/semantic/typography.js';
2
2
  export { GlobalResetStyles } from './util/reset.js';
3
+ export { between, from, until } from './styleD/utils/semantic/mq.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/stand",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
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": {