@guardian/stand 0.0.54 → 0.0.56

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 (49) hide show
  1. package/dist/ButtonGroup.cjs +5 -0
  2. package/dist/ButtonGroup.d.cts +5 -0
  3. package/dist/ButtonGroup.d.ts +5 -0
  4. package/dist/ButtonGroup.js +3 -0
  5. package/dist/components/ButtonGroup/ButtonGroup.cjs +25 -0
  6. package/dist/components/ButtonGroup/ButtonGroup.d.cts +11 -0
  7. package/dist/components/ButtonGroup/ButtonGroup.d.ts +11 -0
  8. package/dist/components/ButtonGroup/ButtonGroup.js +23 -0
  9. package/dist/components/ButtonGroup/styles.cjs +21 -0
  10. package/dist/components/ButtonGroup/styles.d.cts +9 -0
  11. package/dist/components/ButtonGroup/styles.d.ts +9 -0
  12. package/dist/components/ButtonGroup/styles.js +20 -0
  13. package/dist/components/ButtonGroup/types.d.cts +13 -0
  14. package/dist/components/ButtonGroup/types.d.ts +13 -0
  15. package/dist/index.cjs +2 -0
  16. package/dist/index.d.cts +2 -1
  17. package/dist/index.d.ts +2 -1
  18. package/dist/index.js +2 -1
  19. package/dist/styleD/build/css/base/colors.css +1 -1
  20. package/dist/styleD/build/css/component/avatar.css +1 -1
  21. package/dist/styleD/build/css/component/buttonGroup.css +13 -0
  22. package/dist/styleD/build/css/component/datePicker.css +2 -2
  23. package/dist/styleD/build/css/semantic/colors.css +6 -1
  24. package/dist/styleD/build/css/semantic/sizing.css +1 -0
  25. package/dist/styleD/build/typescript/base/colors.cjs +1 -1
  26. package/dist/styleD/build/typescript/base/colors.d.cts +1 -1
  27. package/dist/styleD/build/typescript/base/colors.d.ts +1 -1
  28. package/dist/styleD/build/typescript/base/colors.js +1 -1
  29. package/dist/styleD/build/typescript/component/avatar.cjs +1 -1
  30. package/dist/styleD/build/typescript/component/avatar.js +1 -1
  31. package/dist/styleD/build/typescript/component/buttonGroup.cjs +15 -0
  32. package/dist/styleD/build/typescript/component/buttonGroup.d.cts +18 -0
  33. package/dist/styleD/build/typescript/component/buttonGroup.d.ts +18 -0
  34. package/dist/styleD/build/typescript/component/buttonGroup.js +15 -0
  35. package/dist/styleD/build/typescript/component/datePicker.cjs +2 -2
  36. package/dist/styleD/build/typescript/component/datePicker.js +2 -2
  37. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.cjs +1 -4
  38. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.cts +0 -1
  39. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +0 -1
  40. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.js +1 -4
  41. package/dist/styleD/build/typescript/semantic/colors.cjs +6 -1
  42. package/dist/styleD/build/typescript/semantic/colors.d.cts +5 -0
  43. package/dist/styleD/build/typescript/semantic/colors.d.ts +5 -0
  44. package/dist/styleD/build/typescript/semantic/colors.js +6 -1
  45. package/dist/styleD/build/typescript/semantic/sizing.cjs +2 -1
  46. package/dist/styleD/build/typescript/semantic/sizing.d.cts +3 -0
  47. package/dist/styleD/build/typescript/semantic/sizing.d.ts +3 -0
  48. package/dist/styleD/build/typescript/semantic/sizing.js +2 -1
  49. package/package.json +15 -1
@@ -0,0 +1,5 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_buttonGroup = require("./styleD/build/typescript/component/buttonGroup.cjs");
3
+ const require_ButtonGroup = require("./components/ButtonGroup/ButtonGroup.cjs");
4
+ exports.ButtonGroup = require_ButtonGroup.ButtonGroup;
5
+ exports.componentButtonGroup = require_buttonGroup.componentButtonGroup;
@@ -0,0 +1,5 @@
1
+ import { ComponentButtonGroup, componentButtonGroup } from "./styleD/build/typescript/component/buttonGroup.cjs";
2
+ import { PartialButtonGroupTheme } from "./components/ButtonGroup/styles.cjs";
3
+ import { ButtonGroupProps } from "./components/ButtonGroup/types.cjs";
4
+ import { ButtonGroup } from "./components/ButtonGroup/ButtonGroup.cjs";
5
+ export { ButtonGroup, type ButtonGroupProps, type PartialButtonGroupTheme as ButtonGroupTheme, type ComponentButtonGroup, componentButtonGroup };
@@ -0,0 +1,5 @@
1
+ import { ComponentButtonGroup, componentButtonGroup } from "./styleD/build/typescript/component/buttonGroup.js";
2
+ import { PartialButtonGroupTheme } from "./components/ButtonGroup/styles.js";
3
+ import { ButtonGroupProps } from "./components/ButtonGroup/types.js";
4
+ import { ButtonGroup } from "./components/ButtonGroup/ButtonGroup.js";
5
+ export { ButtonGroup, type ButtonGroupProps, type PartialButtonGroupTheme as ButtonGroupTheme, type ComponentButtonGroup, componentButtonGroup };
@@ -0,0 +1,3 @@
1
+ import { componentButtonGroup } from "./styleD/build/typescript/component/buttonGroup.js";
2
+ import { ButtonGroup } from "./components/ButtonGroup/ButtonGroup.js";
3
+ export { ButtonGroup, componentButtonGroup };
@@ -0,0 +1,25 @@
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_mergeDeep = require("../../util/mergeDeep.cjs");
3
+ const require_Button = require("../Button/Button.cjs");
4
+ const require_styles = require("./styles.cjs");
5
+ let react = require("react");
6
+ react = require_runtime.__toESM(react);
7
+ let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
8
+ //#region src/components/ButtonGroup/ButtonGroup.tsx
9
+ const ButtonGroup = ({ size = "md", theme = {}, children, cssOverrides }) => {
10
+ const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultButtonGroupTheme, theme);
11
+ const buttons = [];
12
+ react.default.Children.forEach(children, (child, index) => {
13
+ if (!react.default.isValidElement(child) || child.type !== require_Button.Button) return;
14
+ buttons.push(react.default.cloneElement(child, {
15
+ key: child.key ?? index,
16
+ size
17
+ }));
18
+ });
19
+ return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", {
20
+ css: [require_styles.buttonGroupStyles(mergedTheme), cssOverrides],
21
+ children: buttons
22
+ });
23
+ };
24
+ //#endregion
25
+ exports.ButtonGroup = ButtonGroup;
@@ -0,0 +1,11 @@
1
+ import { ButtonGroupProps } from "./types.cjs";
2
+
3
+ //#region src/components/ButtonGroup/ButtonGroup.d.ts
4
+ declare const ButtonGroup: ({
5
+ size,
6
+ theme,
7
+ children,
8
+ cssOverrides
9
+ }: ButtonGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ //#endregion
11
+ export { ButtonGroup };
@@ -0,0 +1,11 @@
1
+ import { ButtonGroupProps } from "./types.js";
2
+
3
+ //#region src/components/ButtonGroup/ButtonGroup.d.ts
4
+ declare const ButtonGroup: ({
5
+ size,
6
+ theme,
7
+ children,
8
+ cssOverrides
9
+ }: ButtonGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ //#endregion
11
+ export { ButtonGroup };
@@ -0,0 +1,23 @@
1
+ import { mergeDeep } from "../../util/mergeDeep.js";
2
+ import { Button } from "../Button/Button.js";
3
+ import { buttonGroupStyles, defaultButtonGroupTheme } from "./styles.js";
4
+ import React from "react";
5
+ import { jsx } from "@emotion/react/jsx-runtime";
6
+ //#region src/components/ButtonGroup/ButtonGroup.tsx
7
+ const ButtonGroup = ({ size = "md", theme = {}, children, cssOverrides }) => {
8
+ const mergedTheme = mergeDeep(defaultButtonGroupTheme, theme);
9
+ const buttons = [];
10
+ React.Children.forEach(children, (child, index) => {
11
+ if (!React.isValidElement(child) || child.type !== Button) return;
12
+ buttons.push(React.cloneElement(child, {
13
+ key: child.key ?? index,
14
+ size
15
+ }));
16
+ });
17
+ return /* @__PURE__ */ jsx("div", {
18
+ css: [buttonGroupStyles(mergedTheme), cssOverrides],
19
+ children: buttons
20
+ });
21
+ };
22
+ //#endregion
23
+ export { ButtonGroup };
@@ -0,0 +1,21 @@
1
+ const require_mq = require("../../styleD/utils/semantic/mq.cjs");
2
+ const require_buttonGroup = require("../../styleD/build/typescript/component/buttonGroup.cjs");
3
+ let _emotion_react = require("@emotion/react");
4
+ //#region src/components/ButtonGroup/styles.ts
5
+ const defaultButtonGroupTheme = require_buttonGroup.componentButtonGroup;
6
+ const buttonGroupStyles = (theme) => {
7
+ return _emotion_react.css`
8
+ display: ${theme.display};
9
+ flex-direction: ${theme.flexDirection};
10
+ flex-wrap: ${theme.flexWrap};
11
+ gap: ${theme.gap};
12
+ width: ${theme.width};
13
+ justify-content: ${theme.justifyContent};
14
+ ${require_mq.from.md} {
15
+ flex-direction: ${theme.md.flexDirection};
16
+ }
17
+ `;
18
+ };
19
+ //#endregion
20
+ exports.buttonGroupStyles = buttonGroupStyles;
21
+ exports.defaultButtonGroupTheme = defaultButtonGroupTheme;
@@ -0,0 +1,9 @@
1
+ import { DeepPartial, Prettify } from "../../util/types.cjs";
2
+ import { ComponentButtonGroup } from "../../styleD/build/typescript/component/buttonGroup.cjs";
3
+ import { SerializedStyles } from "@emotion/react";
4
+
5
+ //#region src/components/ButtonGroup/styles.d.ts
6
+ type ButtonGroupTheme = Prettify<ComponentButtonGroup>;
7
+ type PartialButtonGroupTheme = Prettify<DeepPartial<ButtonGroupTheme>>;
8
+ //#endregion
9
+ export { ButtonGroupTheme, PartialButtonGroupTheme };
@@ -0,0 +1,9 @@
1
+ import { DeepPartial, Prettify } from "../../util/types.js";
2
+ import { ComponentButtonGroup } from "../../styleD/build/typescript/component/buttonGroup.js";
3
+ import { SerializedStyles } from "@emotion/react";
4
+
5
+ //#region src/components/ButtonGroup/styles.d.ts
6
+ type ButtonGroupTheme = Prettify<ComponentButtonGroup>;
7
+ type PartialButtonGroupTheme = Prettify<DeepPartial<ButtonGroupTheme>>;
8
+ //#endregion
9
+ export { ButtonGroupTheme, PartialButtonGroupTheme };
@@ -0,0 +1,20 @@
1
+ import { from } from "../../styleD/utils/semantic/mq.js";
2
+ import { componentButtonGroup } from "../../styleD/build/typescript/component/buttonGroup.js";
3
+ import { css } from "@emotion/react";
4
+ //#region src/components/ButtonGroup/styles.ts
5
+ const defaultButtonGroupTheme = componentButtonGroup;
6
+ const buttonGroupStyles = (theme) => {
7
+ return css`
8
+ display: ${theme.display};
9
+ flex-direction: ${theme.flexDirection};
10
+ flex-wrap: ${theme.flexWrap};
11
+ gap: ${theme.gap};
12
+ width: ${theme.width};
13
+ justify-content: ${theme.justifyContent};
14
+ ${from.md} {
15
+ flex-direction: ${theme.md.flexDirection};
16
+ }
17
+ `;
18
+ };
19
+ //#endregion
20
+ export { buttonGroupStyles, defaultButtonGroupTheme };
@@ -0,0 +1,13 @@
1
+ import { DefaultPropsWithChildren } from "../../util/types.cjs";
2
+ import { ButtonTheme } from "../Button/styles.cjs";
3
+ import { ButtonGroupTheme } from "./styles.cjs";
4
+
5
+ //#region src/components/ButtonGroup/types.d.ts
6
+ type ButtonGroupProps = DefaultPropsWithChildren<ButtonGroupTheme> & {
7
+ /**
8
+ * Size of buttons within the group
9
+ */
10
+ size?: keyof Omit<ButtonTheme['primary'], 'shared'>;
11
+ };
12
+ //#endregion
13
+ export { ButtonGroupProps };
@@ -0,0 +1,13 @@
1
+ import { DefaultPropsWithChildren } from "../../util/types.js";
2
+ import { ButtonTheme } from "../Button/styles.js";
3
+ import { ButtonGroupTheme } from "./styles.js";
4
+
5
+ //#region src/components/ButtonGroup/types.d.ts
6
+ type ButtonGroupProps = DefaultPropsWithChildren<ButtonGroupTheme> & {
7
+ /**
8
+ * Size of buttons within the group
9
+ */
10
+ size?: keyof Omit<ButtonTheme['primary'], 'shared'>;
11
+ };
12
+ //#endregion
13
+ export { ButtonGroupProps };
package/dist/index.cjs CHANGED
@@ -4,6 +4,7 @@ const require_button = require("./styleD/build/typescript/component/button.cjs")
4
4
  const require_alertBanner = require("./styleD/build/typescript/component/alertBanner.cjs");
5
5
  const require_breakpoints = require("./styleD/build/typescript/semantic/breakpoints.cjs");
6
6
  const require_avatar = require("./styleD/build/typescript/component/avatar.cjs");
7
+ const require_buttonGroup = require("./styleD/build/typescript/component/buttonGroup.cjs");
7
8
  const require_byline = require("./styleD/build/typescript/component/byline.cjs");
8
9
  const require_checkbox = require("./styleD/build/typescript/component/checkbox.cjs");
9
10
  const require_autocomplete = require("./styleD/build/typescript/component/autocomplete.cjs");
@@ -46,6 +47,7 @@ exports.componentAlertBanner = require_alertBanner.componentAlertBanner;
46
47
  exports.componentAutocomplete = require_autocomplete.componentAutocomplete;
47
48
  exports.componentAvatar = require_avatar.componentAvatar;
48
49
  exports.componentButton = require_button.componentButton;
50
+ exports.componentButtonGroup = require_buttonGroup.componentButtonGroup;
49
51
  exports.componentByline = require_byline.componentByline;
50
52
  exports.componentCheckbox = require_checkbox.componentCheckbox;
51
53
  exports.componentDatePicker = require_datePicker.componentDatePicker;
package/dist/index.d.cts CHANGED
@@ -2,6 +2,7 @@ import { ComponentIcon, componentIcon } from "./styleD/build/typescript/componen
2
2
  import { ComponentButton, componentButton } from "./styleD/build/typescript/component/button.cjs";
3
3
  import { ComponentAlertBanner, componentAlertBanner } from "./styleD/build/typescript/component/alertBanner.cjs";
4
4
  import { ComponentAvatar, componentAvatar } from "./styleD/build/typescript/component/avatar.cjs";
5
+ import { ComponentButtonGroup, componentButtonGroup } from "./styleD/build/typescript/component/buttonGroup.cjs";
5
6
  import { ComponentByline, componentByline } from "./styleD/build/typescript/component/byline.cjs";
6
7
  import { ComponentForm, componentForm } from "./styleD/build/typescript/component/form.cjs";
7
8
  import { ComponentCheckbox, componentCheckbox } from "./styleD/build/typescript/component/checkbox.cjs";
@@ -36,4 +37,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
36
37
  import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
37
38
  import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
38
39
  import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.cjs";
39
- export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
40
+ export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ComponentIcon, componentIcon } from "./styleD/build/typescript/componen
2
2
  import { ComponentButton, componentButton } from "./styleD/build/typescript/component/button.js";
3
3
  import { ComponentAlertBanner, componentAlertBanner } from "./styleD/build/typescript/component/alertBanner.js";
4
4
  import { ComponentAvatar, componentAvatar } from "./styleD/build/typescript/component/avatar.js";
5
+ import { ComponentButtonGroup, componentButtonGroup } from "./styleD/build/typescript/component/buttonGroup.js";
5
6
  import { ComponentByline, componentByline } from "./styleD/build/typescript/component/byline.js";
6
7
  import { ComponentForm, componentForm } from "./styleD/build/typescript/component/form.js";
7
8
  import { ComponentCheckbox, componentCheckbox } from "./styleD/build/typescript/component/checkbox.js";
@@ -36,4 +37,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
36
37
  import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
37
38
  import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
38
39
  import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
39
- export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
40
+ export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import { componentButton } from "./styleD/build/typescript/component/button.js";
3
3
  import { componentAlertBanner } from "./styleD/build/typescript/component/alertBanner.js";
4
4
  import { semanticBreakpoints } from "./styleD/build/typescript/semantic/breakpoints.js";
5
5
  import { componentAvatar } from "./styleD/build/typescript/component/avatar.js";
6
+ import { componentButtonGroup } from "./styleD/build/typescript/component/buttonGroup.js";
6
7
  import { componentByline } from "./styleD/build/typescript/component/byline.js";
7
8
  import { componentCheckbox } from "./styleD/build/typescript/component/checkbox.js";
8
9
  import { componentAutocomplete } from "./styleD/build/typescript/component/autocomplete.js";
@@ -36,4 +37,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
36
37
  import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
37
38
  import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
38
39
  import { semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
39
- export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
40
+ export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
@@ -47,7 +47,7 @@
47
47
  --base-colors-cyan-500: #2e8bb8;
48
48
  --base-colors-cyan-600: #5ca5c8;
49
49
  --base-colors-cyan-700: #8abed7;
50
- --base-colors-cyan-800: #b8d8e7;
50
+ --base-colors-cyan-800: #c5dfec;
51
51
  --base-colors-cyan-900: #e6f1f6;
52
52
  --base-colors-teal-50: #050e0f;
53
53
  --base-colors-teal-100: #0e2729;
@@ -19,7 +19,7 @@
19
19
  --component-avatar-shared-color-red-hover-background: #eea198;
20
20
  --component-avatar-shared-color-red-active-background: #e87c6f;
21
21
  --component-avatar-shared-color-cyan-text: #00344e;
22
- --component-avatar-shared-color-cyan-background: #b8d8e7;
22
+ --component-avatar-shared-color-cyan-background: #c5dfec;
23
23
  --component-avatar-shared-color-cyan-border: unset;
24
24
  --component-avatar-shared-color-cyan-hover-background: #8abed7;
25
25
  --component-avatar-shared-color-cyan-active-background: #5ca5c8;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-button-group-display: flex;
7
+ --component-button-group-flex-direction: column;
8
+ --component-button-group-flex-wrap: wrap;
9
+ --component-button-group-gap: 1rem;
10
+ --component-button-group-width: 100%;
11
+ --component-button-group-justify-content: flex-start;
12
+ --component-button-group-md-flex-direction: row;
13
+ }
@@ -89,7 +89,7 @@
89
89
  --component-date-picker-calendar-header-shared-button-aspect-ratio: 1;
90
90
  --component-date-picker-calendar-header-shared-button-hovered-background-color: #f6f6f6;
91
91
  --component-date-picker-calendar-header-shared-button-pressed-background-color: #ededed;
92
- --component-date-picker-calendar-header-shared-button-selected-background-color: #b8d8e7;
92
+ --component-date-picker-calendar-header-shared-button-selected-background-color: #c5dfec;
93
93
  --component-date-picker-calendar-header-shared-button-focus-visible-outline: 0.125rem
94
94
  solid #0072a9;
95
95
  --component-date-picker-calendar-header-shared-button-disabled-cursor: not-allowed;
@@ -112,7 +112,7 @@
112
112
  --component-date-picker-calendar-cell-shared-outside-month-display: none;
113
113
  --component-date-picker-calendar-cell-shared-hovered-background-color: #f6f6f6;
114
114
  --component-date-picker-calendar-cell-shared-pressed-background-color: #ededed;
115
- --component-date-picker-calendar-cell-shared-selected-background-color: #b8d8e7;
115
+ --component-date-picker-calendar-cell-shared-selected-background-color: #c5dfec;
116
116
  --component-date-picker-calendar-cell-shared-focus-visible-outline: 0.125rem
117
117
  solid #0072a9;
118
118
  --component-date-picker-calendar-cell-shared-disabled-cursor: not-allowed;
@@ -60,7 +60,7 @@
60
60
  --semantic-colors-fill-green-weak: #cde4c9;
61
61
  --semantic-colors-fill-blue-weak: #c5d9f4;
62
62
  --semantic-colors-fill-red-weak: #f5c6c0;
63
- --semantic-colors-fill-cyan-weak: #b8d8e7;
63
+ --semantic-colors-fill-cyan-weak: #c5dfec;
64
64
  --semantic-colors-fill-teal-weak: #c5dfe1;
65
65
  --semantic-colors-fill-cool-purple-weak: #dbdff7;
66
66
  --semantic-colors-fill-warm-purple-weak: #dac3e8;
@@ -68,6 +68,11 @@
68
68
  --semantic-colors-fill-orange-weak: #fcddc6;
69
69
  --semantic-colors-fill-yellow-weak: #fbeebf;
70
70
  --semantic-colors-fill-selected: #005d8b;
71
+ --semantic-colors-fill-selected-weak: #c5dfec;
72
+ --semantic-colors-fill-selected-hover-weak: #c5dfec;
73
+ --semantic-colors-fill-selected-pressed-weak: #8abed7;
74
+ --semantic-colors-fill-selected-hover-strong: #8abed7;
75
+ --semantic-colors-fill-selected-pressed-strong: #5ca5c8;
71
76
  --semantic-colors-fill-draft-strong: #f1c21b;
72
77
  --semantic-colors-fill-live-weak: #aed2a6;
73
78
  --semantic-colors-fill-warning-weak: #fbeebf;
@@ -19,4 +19,5 @@
19
19
  --semantic-sizing-sidebar-lg-px: 280px;
20
20
  --semantic-sizing-layout-max-width-px: 1584px;
21
21
  --semantic-sizing-input-max-width-px: 450px;
22
+ --semantic-sizing-floating-ui-max-width-px: 200px;
22
23
  }
@@ -54,7 +54,7 @@ const baseColors = {
54
54
  "500": "#2e8bb8",
55
55
  "600": "#5ca5c8",
56
56
  "700": "#8abed7",
57
- "800": "#b8d8e7",
57
+ "800": "#c5dfec",
58
58
  "900": "#e6f1f6"
59
59
  },
60
60
  teal: {
@@ -54,7 +54,7 @@ declare const baseColors: {
54
54
  readonly '500': "#2e8bb8";
55
55
  readonly '600': "#5ca5c8";
56
56
  readonly '700': "#8abed7";
57
- readonly '800': "#b8d8e7";
57
+ readonly '800': "#c5dfec";
58
58
  readonly '900': "#e6f1f6";
59
59
  };
60
60
  readonly teal: {
@@ -54,7 +54,7 @@ declare const baseColors: {
54
54
  readonly '500': "#2e8bb8";
55
55
  readonly '600': "#5ca5c8";
56
56
  readonly '700': "#8abed7";
57
- readonly '800': "#b8d8e7";
57
+ readonly '800': "#c5dfec";
58
58
  readonly '900': "#e6f1f6";
59
59
  };
60
60
  readonly teal: {
@@ -54,7 +54,7 @@ const baseColors = {
54
54
  "500": "#2e8bb8",
55
55
  "600": "#5ca5c8",
56
56
  "700": "#8abed7",
57
- "800": "#b8d8e7",
57
+ "800": "#c5dfec",
58
58
  "900": "#e6f1f6"
59
59
  },
60
60
  teal: {
@@ -28,7 +28,7 @@ const componentAvatar = {
28
28
  },
29
29
  cyan: {
30
30
  text: "#00344e",
31
- background: "#b8d8e7",
31
+ background: "#c5dfec",
32
32
  border: "unset",
33
33
  hover: { background: "#8abed7" },
34
34
  active: { background: "#5ca5c8" }
@@ -28,7 +28,7 @@ const componentAvatar = {
28
28
  },
29
29
  cyan: {
30
30
  text: "#00344e",
31
- background: "#b8d8e7",
31
+ background: "#c5dfec",
32
32
  border: "unset",
33
33
  hover: { background: "#8abed7" },
34
34
  active: { background: "#5ca5c8" }
@@ -0,0 +1,15 @@
1
+ //#region src/styleD/build/typescript/component/buttonGroup.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ const componentButtonGroup = {
6
+ display: "flex",
7
+ flexDirection: "column",
8
+ flexWrap: "wrap",
9
+ gap: "1rem",
10
+ width: "100%",
11
+ justifyContent: "flex-start",
12
+ md: { flexDirection: "row" }
13
+ };
14
+ //#endregion
15
+ exports.componentButtonGroup = componentButtonGroup;
@@ -0,0 +1,18 @@
1
+ //#region src/styleD/build/typescript/component/buttonGroup.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentButtonGroup: {
6
+ display: string;
7
+ flexDirection: string;
8
+ flexWrap: string;
9
+ gap: string;
10
+ width: string;
11
+ justifyContent: string;
12
+ md: {
13
+ flexDirection: string;
14
+ };
15
+ };
16
+ type ComponentButtonGroup = typeof componentButtonGroup;
17
+ //#endregion
18
+ export { ComponentButtonGroup, componentButtonGroup };
@@ -0,0 +1,18 @@
1
+ //#region src/styleD/build/typescript/component/buttonGroup.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentButtonGroup: {
6
+ display: string;
7
+ flexDirection: string;
8
+ flexWrap: string;
9
+ gap: string;
10
+ width: string;
11
+ justifyContent: string;
12
+ md: {
13
+ flexDirection: string;
14
+ };
15
+ };
16
+ type ComponentButtonGroup = typeof componentButtonGroup;
17
+ //#endregion
18
+ export { ComponentButtonGroup, componentButtonGroup };
@@ -0,0 +1,15 @@
1
+ //#region src/styleD/build/typescript/component/buttonGroup.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ const componentButtonGroup = {
6
+ display: "flex",
7
+ flexDirection: "column",
8
+ flexWrap: "wrap",
9
+ gap: "1rem",
10
+ width: "100%",
11
+ justifyContent: "flex-start",
12
+ md: { flexDirection: "row" }
13
+ };
14
+ //#endregion
15
+ export { componentButtonGroup };
@@ -104,7 +104,7 @@ const componentDatePicker = {
104
104
  aspectRatio: "1",
105
105
  hovered: { backgroundColor: "#f6f6f6" },
106
106
  pressed: { backgroundColor: "#ededed" },
107
- selected: { backgroundColor: "#b8d8e7" },
107
+ selected: { backgroundColor: "#c5dfec" },
108
108
  focusVisible: { outline: "0.125rem solid #0072a9" },
109
109
  disabled: {
110
110
  cursor: "not-allowed",
@@ -136,7 +136,7 @@ const componentDatePicker = {
136
136
  outsideMonth: { display: "none" },
137
137
  hovered: { backgroundColor: "#f6f6f6" },
138
138
  pressed: { backgroundColor: "#ededed" },
139
- selected: { backgroundColor: "#b8d8e7" },
139
+ selected: { backgroundColor: "#c5dfec" },
140
140
  focusVisible: { outline: "0.125rem solid #0072a9" },
141
141
  disabled: {
142
142
  cursor: "not-allowed",
@@ -104,7 +104,7 @@ const componentDatePicker = {
104
104
  aspectRatio: "1",
105
105
  hovered: { backgroundColor: "#f6f6f6" },
106
106
  pressed: { backgroundColor: "#ededed" },
107
- selected: { backgroundColor: "#b8d8e7" },
107
+ selected: { backgroundColor: "#c5dfec" },
108
108
  focusVisible: { outline: "0.125rem solid #0072a9" },
109
109
  disabled: {
110
110
  cursor: "not-allowed",
@@ -136,7 +136,7 @@ const componentDatePicker = {
136
136
  outsideMonth: { display: "none" },
137
137
  hovered: { backgroundColor: "#f6f6f6" },
138
138
  pressed: { backgroundColor: "#ededed" },
139
- selected: { backgroundColor: "#b8d8e7" },
139
+ selected: { backgroundColor: "#c5dfec" },
140
140
  focusVisible: { outline: "0.125rem solid #0072a9" },
141
141
  disabled: {
142
142
  cursor: "not-allowed",
@@ -25,10 +25,7 @@ const componentIntendedAudienceSignifier = {
25
25
  size: "10px"
26
26
  },
27
27
  color: "#545454",
28
- typography: {
29
- font: "normal 460 0.75rem/1.3 Open Sans",
30
- lineHeight: "1"
31
- }
28
+ typography: { lineHeight: "1" }
32
29
  };
33
30
  //#endregion
34
31
  exports.componentIntendedAudienceSignifier = componentIntendedAudienceSignifier;
@@ -26,7 +26,6 @@ declare const componentIntendedAudienceSignifier: {
26
26
  };
27
27
  color: string;
28
28
  typography: {
29
- font: string;
30
29
  lineHeight: string;
31
30
  };
32
31
  };
@@ -26,7 +26,6 @@ declare const componentIntendedAudienceSignifier: {
26
26
  };
27
27
  color: string;
28
28
  typography: {
29
- font: string;
30
29
  lineHeight: string;
31
30
  };
32
31
  };
@@ -25,10 +25,7 @@ const componentIntendedAudienceSignifier = {
25
25
  size: "10px"
26
26
  },
27
27
  color: "#545454",
28
- typography: {
29
- font: "normal 460 0.75rem/1.3 Open Sans",
30
- lineHeight: "1"
31
- }
28
+ typography: { lineHeight: "1" }
32
29
  };
33
30
  //#endregion
34
31
  export { componentIntendedAudienceSignifier };
@@ -67,7 +67,7 @@ const semanticColors = {
67
67
  greenWeak: "#cde4c9",
68
68
  blueWeak: "#c5d9f4",
69
69
  redWeak: "#f5c6c0",
70
- cyanWeak: "#b8d8e7",
70
+ cyanWeak: "#c5dfec",
71
71
  tealWeak: "#c5dfe1",
72
72
  coolPurpleWeak: "#dbdff7",
73
73
  warmPurpleWeak: "#dac3e8",
@@ -75,6 +75,11 @@ const semanticColors = {
75
75
  orangeWeak: "#fcddc6",
76
76
  yellowWeak: "#fbeebf",
77
77
  selected: "#005d8b",
78
+ selectedWeak: "#c5dfec",
79
+ selectedHoverWeak: "#c5dfec",
80
+ selectedPressedWeak: "#8abed7",
81
+ selectedHoverStrong: "#8abed7",
82
+ selectedPressedStrong: "#5ca5c8",
78
83
  draftStrong: "#f1c21b",
79
84
  liveWeak: "#aed2a6",
80
85
  warningWeak: "#fbeebf",
@@ -75,6 +75,11 @@ declare const semanticColors: {
75
75
  orangeWeak: string;
76
76
  yellowWeak: string;
77
77
  selected: string;
78
+ selectedWeak: string;
79
+ selectedHoverWeak: string;
80
+ selectedPressedWeak: string;
81
+ selectedHoverStrong: string;
82
+ selectedPressedStrong: string;
78
83
  draftStrong: string;
79
84
  liveWeak: string;
80
85
  warningWeak: string;
@@ -75,6 +75,11 @@ declare const semanticColors: {
75
75
  orangeWeak: string;
76
76
  yellowWeak: string;
77
77
  selected: string;
78
+ selectedWeak: string;
79
+ selectedHoverWeak: string;
80
+ selectedPressedWeak: string;
81
+ selectedHoverStrong: string;
82
+ selectedPressedStrong: string;
78
83
  draftStrong: string;
79
84
  liveWeak: string;
80
85
  warningWeak: string;
@@ -67,7 +67,7 @@ const semanticColors = {
67
67
  greenWeak: "#cde4c9",
68
68
  blueWeak: "#c5d9f4",
69
69
  redWeak: "#f5c6c0",
70
- cyanWeak: "#b8d8e7",
70
+ cyanWeak: "#c5dfec",
71
71
  tealWeak: "#c5dfe1",
72
72
  coolPurpleWeak: "#dbdff7",
73
73
  warmPurpleWeak: "#dac3e8",
@@ -75,6 +75,11 @@ const semanticColors = {
75
75
  orangeWeak: "#fcddc6",
76
76
  yellowWeak: "#fbeebf",
77
77
  selected: "#005d8b",
78
+ selectedWeak: "#c5dfec",
79
+ selectedHoverWeak: "#c5dfec",
80
+ selectedPressedWeak: "#8abed7",
81
+ selectedHoverStrong: "#8abed7",
82
+ selectedPressedStrong: "#5ca5c8",
78
83
  draftStrong: "#f1c21b",
79
84
  liveWeak: "#aed2a6",
80
85
  warningWeak: "#fbeebf",
@@ -26,7 +26,8 @@ const semanticSizing = {
26
26
  lgPx: "280px"
27
27
  },
28
28
  layout: { maxWidthPx: "1584px" },
29
- input: { maxWidthPx: "450px" }
29
+ input: { maxWidthPx: "450px" },
30
+ floatingUi: { maxWidthPx: "200px" }
30
31
  };
31
32
  //#endregion
32
33
  exports.semanticSizing = semanticSizing;
@@ -31,6 +31,9 @@ declare const semanticSizing: {
31
31
  input: {
32
32
  maxWidthPx: string;
33
33
  };
34
+ floatingUi: {
35
+ maxWidthPx: string;
36
+ };
34
37
  };
35
38
  type SemanticSizing = typeof semanticSizing;
36
39
  //#endregion
@@ -31,6 +31,9 @@ declare const semanticSizing: {
31
31
  input: {
32
32
  maxWidthPx: string;
33
33
  };
34
+ floatingUi: {
35
+ maxWidthPx: string;
36
+ };
34
37
  };
35
38
  type SemanticSizing = typeof semanticSizing;
36
39
  //#endregion
@@ -26,7 +26,8 @@ const semanticSizing = {
26
26
  lgPx: "280px"
27
27
  },
28
28
  layout: { maxWidthPx: "1584px" },
29
- input: { maxWidthPx: "450px" }
29
+ input: { maxWidthPx: "450px" },
30
+ floatingUi: { maxWidthPx: "200px" }
30
31
  };
31
32
  //#endregion
32
33
  export { semanticSizing };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/stand",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "repository": {
5
5
  "url": "https://github.com/guardian/stand"
6
6
  },
@@ -57,6 +57,16 @@
57
57
  "default": "./dist/Button.cjs"
58
58
  }
59
59
  },
60
+ "./ButtonGroup": {
61
+ "import": {
62
+ "types": "./dist/ButtonGroup.d.ts",
63
+ "default": "./dist/ButtonGroup.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/ButtonGroup.d.cts",
67
+ "default": "./dist/ButtonGroup.cjs"
68
+ }
69
+ },
60
70
  "./LinkButton": {
61
71
  "import": {
62
72
  "types": "./dist/LinkButton.d.ts",
@@ -341,6 +351,7 @@
341
351
  "./component/userMenu.css": "./dist/styleD/build/css/component/userMenu.css",
342
352
  "./component/avatar.css": "./dist/styleD/build/css/component/avatar.css",
343
353
  "./component/button.css": "./dist/styleD/build/css/component/button.css",
354
+ "./component/buttonGroup.css": "./dist/styleD/build/css/component/buttonGroup.css",
344
355
  "./component/typography.css": "./dist/styleD/build/css/component/typography.css",
345
356
  "./component/icon.css": "./dist/styleD/build/css/component/icon.css",
346
357
  "./component/favicon.css": "./dist/styleD/build/css/component/favicon.css",
@@ -378,6 +389,9 @@
378
389
  "Button": [
379
390
  "./dist/Button.d.ts"
380
391
  ],
392
+ "ButtonGroup": [
393
+ "./dist/ButtonGroup.d.ts"
394
+ ],
381
395
  "LinkButton": [
382
396
  "./dist/LinkButton.d.ts"
383
397
  ],