@guardian/stand 0.0.60 → 0.0.61
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/AlertBanner/AlertBanner.d.cts +1 -12
- package/dist/components/AlertBanner/AlertBanner.d.ts +1 -12
- package/dist/components/AlertBanner/styles.d.cts +1 -1
- package/dist/components/AlertBanner/styles.d.ts +1 -1
- package/dist/components/AlertBanner/types.d.cts +2 -1
- package/dist/components/AlertBanner/types.d.ts +2 -1
- package/dist/components/Avatar/Avatar.d.cts +1 -11
- package/dist/components/Avatar/Avatar.d.ts +1 -11
- package/dist/components/Avatar/styles.d.cts +1 -1
- package/dist/components/Avatar/styles.d.ts +1 -1
- package/dist/components/Avatar/types.d.cts +1 -2
- package/dist/components/Avatar/types.d.ts +1 -2
- package/dist/components/AvatarButton/AvatarButton.d.cts +0 -1
- package/dist/components/AvatarButton/AvatarButton.d.ts +0 -1
- package/dist/components/AvatarButton/styles.d.cts +0 -1
- package/dist/components/AvatarButton/styles.d.ts +0 -1
- package/dist/components/AvatarButton/types.d.cts +0 -1
- package/dist/components/AvatarButton/types.d.ts +0 -1
- package/dist/components/AvatarLink/AvatarLink.d.cts +0 -1
- package/dist/components/AvatarLink/AvatarLink.d.ts +0 -1
- package/dist/components/AvatarLink/styles.d.cts +0 -1
- package/dist/components/AvatarLink/styles.d.ts +0 -1
- package/dist/components/AvatarLink/types.d.cts +0 -1
- package/dist/components/AvatarLink/types.d.ts +0 -1
- package/dist/components/Button/Button.d.cts +1 -9
- package/dist/components/Button/Button.d.ts +1 -9
- package/dist/components/Button/styles.cjs +6 -6
- package/dist/components/Button/styles.d.cts +1 -1
- package/dist/components/Button/styles.d.ts +1 -1
- package/dist/components/Button/styles.js +6 -6
- package/dist/components/Button/types.d.cts +0 -1
- package/dist/components/Button/types.d.ts +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.cjs +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.cts +1 -7
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -7
- package/dist/components/ButtonGroup/styles.d.cts +0 -1
- package/dist/components/ButtonGroup/styles.d.ts +0 -1
- package/dist/components/ButtonGroup/types.d.cts +0 -1
- package/dist/components/ButtonGroup/types.d.ts +0 -1
- package/dist/components/Byline/Byline.d.cts +20 -22
- package/dist/components/Byline/Byline.d.ts +20 -22
- package/dist/components/Byline/lib.cjs +2 -0
- package/dist/components/Byline/lib.d.cts +3 -0
- package/dist/components/Byline/lib.d.ts +2 -0
- package/dist/components/Byline/lib.js +1 -1
- package/dist/components/Byline/theme.d.cts +0 -1
- package/dist/components/Byline/theme.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.cts +1 -9
- package/dist/components/Checkbox/Checkbox.d.ts +1 -9
- package/dist/components/Checkbox/CheckboxGroup.cjs +1 -1
- package/dist/components/Checkbox/CheckboxGroup.d.cts +1 -6
- package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -6
- package/dist/components/Checkbox/styles.cjs +2 -2
- package/dist/components/Checkbox/styles.d.cts +1 -1
- package/dist/components/Checkbox/styles.d.ts +1 -1
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Checkbox/types.d.cts +0 -1
- package/dist/components/Checkbox/types.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.d.cts +1 -8
- package/dist/components/DatePicker/DatePicker.d.ts +1 -8
- package/dist/components/DatePicker/styles.d.cts +0 -1
- package/dist/components/DatePicker/styles.d.ts +0 -1
- package/dist/components/DatePicker/types.d.cts +1 -1
- package/dist/components/DatePicker/types.d.ts +1 -1
- package/dist/components/Favicon/Favicon.d.cts +0 -1
- package/dist/components/Favicon/Favicon.d.ts +0 -1
- package/dist/components/Favicon/styles.d.cts +0 -1
- package/dist/components/Favicon/styles.d.ts +0 -1
- package/dist/components/Favicon/types.d.cts +0 -1
- package/dist/components/Favicon/types.d.ts +0 -1
- package/dist/components/Form/styles.cjs +6 -6
- package/dist/components/Form/styles.d.cts +1 -1
- package/dist/components/Form/styles.d.ts +1 -1
- package/dist/components/Form/styles.js +6 -6
- package/dist/components/Form/types.d.cts +0 -1
- package/dist/components/Form/types.d.ts +0 -1
- package/dist/components/Grid/Grid.d.cts +2 -16
- package/dist/components/Grid/Grid.d.ts +2 -16
- package/dist/components/Grid/styles.d.cts +1 -1
- package/dist/components/Grid/styles.d.ts +1 -1
- package/dist/components/Grid/types.d.cts +1 -2
- package/dist/components/Grid/types.d.ts +1 -2
- package/dist/components/HtmlPreviewLoader/HtmlPreview.d.cts +1 -15
- package/dist/components/HtmlPreviewLoader/HtmlPreview.d.ts +1 -15
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.d.cts +0 -1
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.d.ts +0 -1
- package/dist/components/HtmlPreviewLoader/styles.d.cts +0 -1
- package/dist/components/HtmlPreviewLoader/styles.d.ts +0 -1
- package/dist/components/HtmlPreviewLoader/types.d.cts +0 -1
- package/dist/components/HtmlPreviewLoader/types.d.ts +0 -1
- package/dist/components/Icon/Icon.d.cts +1 -11
- package/dist/components/Icon/Icon.d.ts +1 -11
- package/dist/components/Icon/Styles.d.cts +1 -0
- package/dist/components/Icon/Styles.d.ts +1 -0
- package/dist/components/Icon/types.d.cts +1 -2
- package/dist/components/Icon/types.d.ts +1 -2
- package/dist/components/IconButton/IconButton.d.cts +1 -10
- package/dist/components/IconButton/IconButton.d.ts +1 -10
- package/dist/components/IconButton/styles.d.cts +1 -0
- package/dist/components/IconButton/styles.d.ts +1 -0
- package/dist/components/IconButton/types.d.cts +0 -1
- package/dist/components/IconButton/types.d.ts +0 -1
- package/dist/components/IconLinkButton/IconLinkButton.d.cts +1 -10
- package/dist/components/IconLinkButton/IconLinkButton.d.ts +1 -10
- package/dist/components/IconLinkButton/styles.d.cts +1 -0
- package/dist/components/IconLinkButton/styles.d.ts +1 -0
- package/dist/components/IconLinkButton/types.d.cts +0 -1
- package/dist/components/IconLinkButton/types.d.ts +0 -1
- package/dist/components/InlineMessage/InlineMessage.d.cts +1 -12
- package/dist/components/InlineMessage/InlineMessage.d.ts +1 -12
- package/dist/components/InlineMessage/styles.d.cts +1 -1
- package/dist/components/InlineMessage/styles.d.ts +1 -1
- package/dist/components/InlineMessage/types.d.cts +0 -1
- package/dist/components/InlineMessage/types.d.ts +0 -1
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.cts +1 -9
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +1 -9
- package/dist/components/IntendedAudienceSignifier/styles.d.cts +0 -1
- package/dist/components/IntendedAudienceSignifier/styles.d.ts +0 -1
- package/dist/components/IntendedAudienceSignifier/types.d.cts +0 -1
- package/dist/components/IntendedAudienceSignifier/types.d.ts +0 -1
- package/dist/components/IntendedAudienceSignifier/utils.d.cts +1 -2
- package/dist/components/IntendedAudienceSignifier/utils.d.ts +1 -2
- package/dist/components/Layout/Layout.d.cts +0 -1
- package/dist/components/Layout/Layout.d.ts +0 -1
- package/dist/components/Layout/styles.cjs +24 -24
- package/dist/components/Layout/styles.d.cts +1 -1
- package/dist/components/Layout/styles.d.ts +1 -1
- package/dist/components/Layout/styles.js +24 -24
- package/dist/components/Layout/types.d.cts +0 -1
- package/dist/components/Layout/types.d.ts +0 -1
- package/dist/components/Link/Link.d.cts +1 -9
- package/dist/components/Link/Link.d.ts +1 -9
- package/dist/components/Link/styles.d.cts +0 -1
- package/dist/components/Link/styles.d.ts +0 -1
- package/dist/components/Link/types.d.cts +0 -1
- package/dist/components/Link/types.d.ts +0 -1
- package/dist/components/LinkButton/LinkButton.d.cts +1 -9
- package/dist/components/LinkButton/LinkButton.d.ts +1 -9
- package/dist/components/LinkButton/Styles.d.cts +1 -0
- package/dist/components/LinkButton/Styles.d.ts +1 -0
- package/dist/components/LinkButton/types.d.cts +0 -1
- package/dist/components/LinkButton/types.d.ts +0 -1
- package/dist/components/Menu/Menu.cjs +1 -1
- package/dist/components/Menu/Menu.d.cts +5 -36
- package/dist/components/Menu/Menu.d.ts +5 -36
- package/dist/components/Menu/styles.d.cts +1 -1
- package/dist/components/Menu/styles.d.ts +1 -1
- package/dist/components/Menu/types.d.cts +0 -1
- package/dist/components/Menu/types.d.ts +0 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.d.cts +1 -7
- package/dist/components/Modal/Modal.d.ts +1 -7
- package/dist/components/Modal/styles.d.cts +0 -1
- package/dist/components/Modal/styles.d.ts +0 -1
- package/dist/components/Modal/types.d.cts +0 -1
- package/dist/components/Modal/types.d.ts +0 -1
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.cts +2 -16
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -16
- package/dist/components/RadioGroup/styles.cjs +2 -2
- package/dist/components/RadioGroup/styles.d.cts +1 -1
- package/dist/components/RadioGroup/styles.d.ts +1 -1
- package/dist/components/RadioGroup/styles.js +2 -2
- package/dist/components/RadioGroup/types.d.cts +0 -1
- package/dist/components/RadioGroup/types.d.ts +0 -1
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.d.cts +2 -15
- package/dist/components/Select/Select.d.ts +2 -15
- package/dist/components/Select/styles.d.cts +0 -1
- package/dist/components/Select/styles.d.ts +0 -1
- package/dist/components/Select/types.d.cts +0 -1
- package/dist/components/Select/types.d.ts +0 -1
- package/dist/components/Tabs/Tabs.cjs +1 -1
- package/dist/components/Tabs/Tabs.d.cts +0 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/styles.cjs +34 -34
- package/dist/components/Tabs/styles.d.cts +1 -1
- package/dist/components/Tabs/styles.d.ts +1 -1
- package/dist/components/Tabs/styles.js +34 -34
- package/dist/components/Tabs/types.d.cts +0 -1
- package/dist/components/Tabs/types.d.ts +0 -1
- package/dist/components/TagPicker/Autocomplete.d.cts +3 -19
- package/dist/components/TagPicker/Autocomplete.d.ts +3 -19
- package/dist/components/TagPicker/TagPicker.d.cts +39 -54
- package/dist/components/TagPicker/TagPicker.d.ts +39 -54
- package/dist/components/TagPicker/types.d.cts +1 -1
- package/dist/components/TagPicker/types.d.ts +1 -1
- package/dist/components/TagTable/TagTable.d.cts +2 -23
- package/dist/components/TagTable/TagTable.d.ts +2 -23
- package/dist/components/TextArea/TextArea.d.cts +1 -8
- package/dist/components/TextArea/TextArea.d.ts +1 -8
- package/dist/components/TextArea/styles.cjs +2 -2
- package/dist/components/TextArea/styles.d.cts +1 -1
- package/dist/components/TextArea/styles.d.ts +1 -1
- package/dist/components/TextArea/styles.js +2 -2
- package/dist/components/TextArea/types.d.cts +0 -1
- package/dist/components/TextArea/types.d.ts +0 -1
- package/dist/components/TextInput/TextInput.d.cts +1 -8
- package/dist/components/TextInput/TextInput.d.ts +1 -8
- package/dist/components/TextInput/styles.cjs +2 -2
- package/dist/components/TextInput/styles.d.cts +1 -1
- package/dist/components/TextInput/styles.d.ts +1 -1
- package/dist/components/TextInput/styles.js +2 -2
- package/dist/components/TextInput/types.d.cts +0 -1
- package/dist/components/TextInput/types.d.ts +0 -1
- package/dist/components/TopBar/TopBar.cjs +1 -1
- package/dist/components/TopBar/TopBar.d.cts +3 -17
- package/dist/components/TopBar/TopBar.d.ts +3 -17
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.cts +1 -11
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.ts +1 -11
- package/dist/components/TopBar/TopBarItem/styles.cjs +7 -7
- package/dist/components/TopBar/TopBarItem/styles.d.cts +1 -1
- package/dist/components/TopBar/TopBarItem/styles.d.ts +1 -1
- package/dist/components/TopBar/TopBarItem/styles.js +7 -7
- package/dist/components/TopBar/TopBarItem/types.d.cts +0 -1
- package/dist/components/TopBar/TopBarItem/types.d.ts +0 -1
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.cts +1 -17
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +1 -17
- package/dist/components/TopBar/TopBarNavigation/styles.cjs +30 -30
- package/dist/components/TopBar/TopBarNavigation/styles.d.cts +1 -1
- package/dist/components/TopBar/TopBarNavigation/styles.d.ts +1 -1
- package/dist/components/TopBar/TopBarNavigation/styles.js +30 -30
- package/dist/components/TopBar/TopBarNavigation/types.d.cts +0 -1
- package/dist/components/TopBar/TopBarNavigation/types.d.ts +0 -1
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.cts +1 -6
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.ts +1 -6
- package/dist/components/TopBar/TopBarToolName/styles.d.cts +1 -1
- package/dist/components/TopBar/TopBarToolName/styles.d.ts +1 -1
- package/dist/components/TopBar/TopBarToolName/types.d.cts +0 -1
- package/dist/components/TopBar/TopBarToolName/types.d.ts +0 -1
- package/dist/components/TopBar/styles.cjs +10 -10
- package/dist/components/TopBar/styles.d.cts +0 -1
- package/dist/components/TopBar/styles.d.ts +0 -1
- package/dist/components/TopBar/styles.js +10 -10
- package/dist/components/TopBar/types.d.cts +0 -1
- package/dist/components/TopBar/types.d.ts +0 -1
- package/dist/components/Typography/Typography.d.cts +1 -9
- package/dist/components/Typography/Typography.d.ts +1 -9
- package/dist/components/Typography/styles.d.cts +1 -1
- package/dist/components/Typography/styles.d.ts +1 -1
- package/dist/components/Typography/types.d.cts +0 -1
- package/dist/components/Typography/types.d.ts +0 -1
- package/dist/components/UserMenu/UserMenu.d.cts +2 -12
- package/dist/components/UserMenu/UserMenu.d.ts +2 -12
- package/dist/components/UserMenu/model.d.cts +0 -1
- package/dist/components/UserMenu/model.d.ts +0 -1
- package/dist/styleD/build/css/base/sizing.css +2 -0
- package/dist/styleD/build/css/component/icon.css +1 -0
- package/dist/styleD/build/css/semantic/sizing.css +1 -0
- package/dist/styleD/build/typescript/base/sizing.cjs +2 -0
- package/dist/styleD/build/typescript/base/sizing.d.cts +2 -0
- package/dist/styleD/build/typescript/base/sizing.d.ts +2 -0
- package/dist/styleD/build/typescript/base/sizing.js +2 -0
- package/dist/styleD/build/typescript/component/icon.cjs +1 -0
- package/dist/styleD/build/typescript/component/icon.d.cts +3 -0
- package/dist/styleD/build/typescript/component/icon.d.ts +3 -0
- package/dist/styleD/build/typescript/component/icon.js +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.cjs +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.d.cts +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.d.ts +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.js +1 -0
- package/dist/styleD/utils/semantic/mq.d.cts +0 -1
- package/dist/styleD/utils/semantic/mq.d.ts +0 -1
- package/dist/styleD/utils/semantic/typography.d.cts +0 -1
- package/dist/styleD/utils/semantic/typography.d.ts +0 -1
- package/dist/util/types.d.cts +2 -3
- package/dist/util/types.d.ts +2 -3
- package/package.json +21 -18
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { AlertBannerProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/components/AlertBanner/AlertBanner.d.ts
|
|
4
|
-
declare function AlertBanner({
|
|
5
|
-
level,
|
|
6
|
-
showIcon,
|
|
7
|
-
icon,
|
|
8
|
-
closeButtonProps,
|
|
9
|
-
children,
|
|
10
|
-
theme,
|
|
11
|
-
cssOverrides,
|
|
12
|
-
className,
|
|
13
|
-
...props
|
|
14
|
-
}: AlertBannerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function AlertBanner({ level, showIcon, icon, closeButtonProps, children, theme, cssOverrides, className, ...props }: AlertBannerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
4
|
//#endregion
|
|
16
5
|
export { AlertBanner };
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { AlertBannerProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/AlertBanner/AlertBanner.d.ts
|
|
4
|
-
declare function AlertBanner({
|
|
5
|
-
level,
|
|
6
|
-
showIcon,
|
|
7
|
-
icon,
|
|
8
|
-
closeButtonProps,
|
|
9
|
-
children,
|
|
10
|
-
theme,
|
|
11
|
-
cssOverrides,
|
|
12
|
-
className,
|
|
13
|
-
...props
|
|
14
|
-
}: AlertBannerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function AlertBanner({ level, showIcon, icon, closeButtonProps, children, theme, cssOverrides, className, ...props }: AlertBannerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
4
|
//#endregion
|
|
16
5
|
export { AlertBanner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentAlertBanner } from "../../styleD/build/typescript/component/alertBanner.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/AlertBanner/styles.d.ts
|
|
6
6
|
type AlertBannerTheme = Prettify<ComponentAlertBanner>;
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentAlertBanner } from "../../styleD/build/typescript/component/alertBanner.js";
|
|
3
|
+
import "./types.js";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/AlertBanner/styles.d.ts
|
|
6
6
|
type AlertBannerTheme = Prettify<ComponentAlertBanner>;
|
|
7
7
|
//#endregion
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DefaultPropsWithChildren, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { IconProps } from "../Icon/types.cjs";
|
|
3
|
+
import "../../Icon.cjs";
|
|
3
4
|
import { IconButtonProps } from "../IconButton/types.cjs";
|
|
5
|
+
import "../../IconButton.cjs";
|
|
4
6
|
import { AlertBannerTheme } from "./styles.cjs";
|
|
5
|
-
|
|
6
7
|
//#region src/components/AlertBanner/types.d.ts
|
|
7
8
|
interface AlertBannerProps extends DefaultPropsWithChildren<AlertBannerTheme> {
|
|
8
9
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DefaultPropsWithChildren, Prettify } from "../../util/types.js";
|
|
2
2
|
import { IconProps } from "../Icon/types.js";
|
|
3
|
+
import "../../Icon.js";
|
|
3
4
|
import { IconButtonProps } from "../IconButton/types.js";
|
|
5
|
+
import "../../IconButton.js";
|
|
4
6
|
import { AlertBannerTheme } from "./styles.js";
|
|
5
|
-
|
|
6
7
|
//#region src/components/AlertBanner/types.d.ts
|
|
7
8
|
interface AlertBannerProps extends DefaultPropsWithChildren<AlertBannerTheme> {
|
|
8
9
|
/**
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { AvatarProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Avatar/Avatar.d.ts
|
|
4
|
-
declare function Avatar({
|
|
5
|
-
src,
|
|
6
|
-
initials,
|
|
7
|
-
alt,
|
|
8
|
-
size,
|
|
9
|
-
color,
|
|
10
|
-
theme,
|
|
11
|
-
cssOverrides,
|
|
12
|
-
...props
|
|
13
|
-
}: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Avatar({ src, initials, alt, size, color, theme, cssOverrides, ...props }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
4
|
//#endregion
|
|
15
5
|
export { Avatar };
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { AvatarProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Avatar/Avatar.d.ts
|
|
4
|
-
declare function Avatar({
|
|
5
|
-
src,
|
|
6
|
-
initials,
|
|
7
|
-
alt,
|
|
8
|
-
size,
|
|
9
|
-
color,
|
|
10
|
-
theme,
|
|
11
|
-
cssOverrides,
|
|
12
|
-
...props
|
|
13
|
-
}: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Avatar({ src, initials, alt, size, color, theme, cssOverrides, ...props }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
4
|
//#endregion
|
|
15
5
|
export { Avatar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentAvatar } from "../../styleD/build/typescript/component/avatar.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Avatar/styles.d.ts
|
|
6
6
|
type AvatarTheme = Prettify<ComponentAvatar>;
|
|
7
7
|
type PartialAvatarTheme = Prettify<DeepPartial<AvatarTheme>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentAvatar } from "../../styleD/build/typescript/component/avatar.js";
|
|
3
|
+
import "./types.js";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Avatar/styles.d.ts
|
|
6
6
|
type AvatarTheme = Prettify<ComponentAvatar>;
|
|
7
7
|
type PartialAvatarTheme = Prettify<DeepPartial<AvatarTheme>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DefaultProps } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentAvatar } from "../../styleD/build/typescript/component/avatar.cjs";
|
|
3
3
|
import { AvatarTheme } from "./styles.cjs";
|
|
4
|
-
|
|
5
4
|
//#region src/components/Avatar/types.d.ts
|
|
6
5
|
type AvatarColors = keyof ComponentAvatar['shared']['color'];
|
|
7
6
|
interface AvatarBaseProps extends DefaultProps<AvatarTheme> {
|
|
@@ -44,4 +43,4 @@ interface AvatarWithInitials extends AvatarBaseProps {
|
|
|
44
43
|
}
|
|
45
44
|
type AvatarProps = AvatarWithImage | AvatarWithInitials;
|
|
46
45
|
//#endregion
|
|
47
|
-
export { AvatarProps };
|
|
46
|
+
export { AvatarColors, AvatarProps };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DefaultProps } from "../../util/types.js";
|
|
2
2
|
import { ComponentAvatar } from "../../styleD/build/typescript/component/avatar.js";
|
|
3
3
|
import { AvatarTheme } from "./styles.js";
|
|
4
|
-
|
|
5
4
|
//#region src/components/Avatar/types.d.ts
|
|
6
5
|
type AvatarColors = keyof ComponentAvatar['shared']['color'];
|
|
7
6
|
interface AvatarBaseProps extends DefaultProps<AvatarTheme> {
|
|
@@ -44,4 +43,4 @@ interface AvatarWithInitials extends AvatarBaseProps {
|
|
|
44
43
|
}
|
|
45
44
|
type AvatarProps = AvatarWithImage | AvatarWithInitials;
|
|
46
45
|
//#endregion
|
|
47
|
-
export { AvatarProps };
|
|
46
|
+
export { AvatarColors, AvatarProps };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Button/Button.d.ts
|
|
4
|
-
declare function Button({
|
|
5
|
-
variant,
|
|
6
|
-
size,
|
|
7
|
-
theme,
|
|
8
|
-
cssOverrides,
|
|
9
|
-
icon,
|
|
10
|
-
...props
|
|
11
|
-
}: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Button({ variant, size, theme, cssOverrides, icon, ...props }: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
4
|
//#endregion
|
|
13
5
|
export { Button };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Button/Button.d.ts
|
|
4
|
-
declare function Button({
|
|
5
|
-
variant,
|
|
6
|
-
size,
|
|
7
|
-
theme,
|
|
8
|
-
cssOverrides,
|
|
9
|
-
icon,
|
|
10
|
-
...props
|
|
11
|
-
}: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Button({ variant, size, theme, cssOverrides, icon, ...props }: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
4
|
//#endregion
|
|
13
5
|
export { Button };
|
|
@@ -27,14 +27,14 @@ const buttonStyles = (theme, { size, variant }, hasIcon = false, isIconButton =
|
|
|
27
27
|
border-radius: ${theme[variant].shared.borderRadius};
|
|
28
28
|
|
|
29
29
|
${hasIcon && _emotion_react.css`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
padding-left: ${theme[variant][size].padding.withIcon.iconLeft.left};
|
|
31
|
+
gap: ${theme[variant][size].icon.gap};
|
|
32
|
+
`}
|
|
33
33
|
|
|
34
34
|
${isIconButton && _emotion_react.css`
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
width: ${theme[variant][size].iconButton.width};
|
|
36
|
+
padding: 0;
|
|
37
|
+
`}
|
|
38
38
|
|
|
39
39
|
&[data-hovered], &:hover {
|
|
40
40
|
background: ${theme[variant].shared.hover.backgroundColor};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentButton } from "../../styleD/build/typescript/component/button.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Button/styles.d.ts
|
|
6
6
|
type ButtonTheme = Prettify<ComponentButton>;
|
|
7
7
|
type PartialButtonTheme = Prettify<DeepPartial<ButtonTheme>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentButton } from "../../styleD/build/typescript/component/button.js";
|
|
3
|
+
import "./types.js";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Button/styles.d.ts
|
|
6
6
|
type ButtonTheme = Prettify<ComponentButton>;
|
|
7
7
|
type PartialButtonTheme = Prettify<DeepPartial<ButtonTheme>>;
|
|
@@ -27,14 +27,14 @@ const buttonStyles = (theme, { size, variant }, hasIcon = false, isIconButton =
|
|
|
27
27
|
border-radius: ${theme[variant].shared.borderRadius};
|
|
28
28
|
|
|
29
29
|
${hasIcon && css`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
padding-left: ${theme[variant][size].padding.withIcon.iconLeft.left};
|
|
31
|
+
gap: ${theme[variant][size].icon.gap};
|
|
32
|
+
`}
|
|
33
33
|
|
|
34
34
|
${isIconButton && css`
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
width: ${theme[variant][size].iconButton.width};
|
|
36
|
+
padding: 0;
|
|
37
|
+
`}
|
|
38
38
|
|
|
39
39
|
&[data-hovered], &:hover {
|
|
40
40
|
background: ${theme[variant].shared.hover.backgroundColor};
|
|
@@ -2,7 +2,6 @@ import { DefaultProps } from "../../util/types.cjs";
|
|
|
2
2
|
import { IconProps } from "../Icon/types.cjs";
|
|
3
3
|
import { ButtonTheme } from "./styles.cjs";
|
|
4
4
|
import { ButtonProps } from "react-aria-components";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Button/types.d.ts
|
|
7
6
|
interface ButtonProps$1 extends DefaultProps<ButtonTheme, ButtonProps['className']>, ButtonProps {
|
|
8
7
|
/**
|
|
@@ -2,7 +2,6 @@ import { DefaultProps } from "../../util/types.js";
|
|
|
2
2
|
import { IconProps } from "../Icon/types.js";
|
|
3
3
|
import { ButtonTheme } from "./styles.js";
|
|
4
4
|
import { ButtonProps } from "react-aria-components";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Button/types.d.ts
|
|
7
6
|
interface ButtonProps$1 extends DefaultProps<ButtonTheme, ButtonProps['className']>, ButtonProps {
|
|
8
7
|
/**
|
|
@@ -3,7 +3,7 @@ const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
|
3
3
|
const require_Button = require("../Button/Button.cjs");
|
|
4
4
|
const require_styles = require("./styles.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
|
-
react = require_runtime.__toESM(react);
|
|
6
|
+
react = require_runtime.__toESM(react, 1);
|
|
7
7
|
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
8
8
|
//#region src/components/ButtonGroup/ButtonGroup.tsx
|
|
9
9
|
const ButtonGroup = ({ size = "md", theme = {}, children, cssOverrides }) => {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ButtonGroupProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#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;
|
|
3
|
+
declare const ButtonGroup: ({ size, theme, children, cssOverrides }: ButtonGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
4
|
//#endregion
|
|
11
5
|
export { ButtonGroup };
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ButtonGroupProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#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;
|
|
3
|
+
declare const ButtonGroup: ({ size, theme, children, cssOverrides }: ButtonGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
4
|
//#endregion
|
|
11
5
|
export { ButtonGroup };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentButtonGroup } from "../../styleD/build/typescript/component/buttonGroup.cjs";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/ButtonGroup/styles.d.ts
|
|
6
5
|
type ButtonGroupTheme = Prettify<ComponentButtonGroup>;
|
|
7
6
|
type PartialButtonGroupTheme = Prettify<DeepPartial<ButtonGroupTheme>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentButtonGroup } from "../../styleD/build/typescript/component/buttonGroup.js";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/ButtonGroup/styles.d.ts
|
|
6
5
|
type ButtonGroupTheme = Prettify<ComponentButtonGroup>;
|
|
7
6
|
type PartialButtonGroupTheme = Prettify<DeepPartial<ButtonGroupTheme>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
2
2
|
import { ButtonTheme } from "../Button/styles.cjs";
|
|
3
3
|
import { ButtonGroupTheme } from "./styles.cjs";
|
|
4
|
-
|
|
5
4
|
//#region src/components/ButtonGroup/types.d.ts
|
|
6
5
|
type ButtonGroupProps = DefaultPropsWithChildren<ButtonGroupTheme> & {
|
|
7
6
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DefaultPropsWithChildren } from "../../util/types.js";
|
|
2
2
|
import { ButtonTheme } from "../Button/styles.js";
|
|
3
3
|
import { ButtonGroupTheme } from "./styles.js";
|
|
4
|
-
|
|
5
4
|
//#region src/components/ButtonGroup/types.d.ts
|
|
6
5
|
type ButtonGroupProps = DefaultPropsWithChildren<ButtonGroupTheme> & {
|
|
7
6
|
/**
|
|
@@ -2,18 +2,27 @@ import { DeepPartial } from "../../util/types.cjs";
|
|
|
2
2
|
import { ComponentByline } from "../../styleD/build/typescript/component/byline.cjs";
|
|
3
3
|
import { BylineModel, TaggedContributor } from "./lib.cjs";
|
|
4
4
|
import { FocusEventHandler } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Byline/Byline.d.ts
|
|
7
6
|
type BylineProps = {
|
|
8
|
-
/** `theme` - Used to customise the look and feel of the Byline component */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
/** `theme` - Used to customise the look and feel of the Byline component */
|
|
8
|
+
theme?: DeepPartial<ComponentByline>;
|
|
9
|
+
/** `allowUntaggedContributors` - Whether to allow untagged contributors in the byline */
|
|
10
|
+
allowUntaggedContributors?: boolean;
|
|
11
|
+
/** `contributorLimit` - Maximum number of tagged/untagged contributors allowed in the byline */
|
|
12
|
+
contributorLimit?: number;
|
|
13
|
+
/** `enablePreview` - Whether to show the byline preview below the editor */
|
|
14
|
+
enablePreview?: boolean;
|
|
15
|
+
/** `placeholder` - Placeholder text for the byline editor */
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
/** `initialValue` - Initial value for the byline editor */
|
|
18
|
+
initialValue?: BylineModel;
|
|
19
|
+
/** `readOnly` - Whether the byline editor is in read-only mode */
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
/** `handleSave` - Callback function to handle saving the byline value */
|
|
22
|
+
handleSave: (newValue: BylineModel) => void;
|
|
23
|
+
/** `searchContributors` - Function to search for contributors based on selected text, results will appear on the dropdown */
|
|
24
|
+
searchContributors?: (selectedText: string) => Promise<TaggedContributor[]>;
|
|
25
|
+
/** `onBlur` - Optional blur event handler for the byline editor */
|
|
17
26
|
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
18
27
|
};
|
|
19
28
|
/**
|
|
@@ -71,17 +80,6 @@ type BylineProps = {
|
|
|
71
80
|
* The `ContentByline` component in `flexible-frontend` has a detailed example of how to use the `Byline` component from Stand.
|
|
72
81
|
* See [ContentByline.tsx](https://github.com/guardian/flexible-content/blob/1d537615a18ae24a4a5410a3f945b2b9db1dbb47/flexible-frontend/src/app/components/furniture/content-byline/ContentByline.tsx#L72-L205).
|
|
73
82
|
*/
|
|
74
|
-
declare const Byline: ({
|
|
75
|
-
theme,
|
|
76
|
-
allowUntaggedContributors,
|
|
77
|
-
contributorLimit,
|
|
78
|
-
enablePreview,
|
|
79
|
-
placeholder,
|
|
80
|
-
initialValue,
|
|
81
|
-
readOnly,
|
|
82
|
-
handleSave,
|
|
83
|
-
searchContributors,
|
|
84
|
-
onBlur
|
|
85
|
-
}: BylineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
83
|
+
declare const Byline: ({ theme, allowUntaggedContributors, contributorLimit, enablePreview, placeholder, initialValue, readOnly, handleSave, searchContributors, onBlur }: BylineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
86
84
|
//#endregion
|
|
87
85
|
export { Byline };
|
|
@@ -2,18 +2,27 @@ import { DeepPartial } from "../../util/types.js";
|
|
|
2
2
|
import { ComponentByline } from "../../styleD/build/typescript/component/byline.js";
|
|
3
3
|
import { BylineModel, TaggedContributor } from "./lib.js";
|
|
4
4
|
import { FocusEventHandler } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Byline/Byline.d.ts
|
|
7
6
|
type BylineProps = {
|
|
8
|
-
/** `theme` - Used to customise the look and feel of the Byline component */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
/** `theme` - Used to customise the look and feel of the Byline component */
|
|
8
|
+
theme?: DeepPartial<ComponentByline>;
|
|
9
|
+
/** `allowUntaggedContributors` - Whether to allow untagged contributors in the byline */
|
|
10
|
+
allowUntaggedContributors?: boolean;
|
|
11
|
+
/** `contributorLimit` - Maximum number of tagged/untagged contributors allowed in the byline */
|
|
12
|
+
contributorLimit?: number;
|
|
13
|
+
/** `enablePreview` - Whether to show the byline preview below the editor */
|
|
14
|
+
enablePreview?: boolean;
|
|
15
|
+
/** `placeholder` - Placeholder text for the byline editor */
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
/** `initialValue` - Initial value for the byline editor */
|
|
18
|
+
initialValue?: BylineModel;
|
|
19
|
+
/** `readOnly` - Whether the byline editor is in read-only mode */
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
/** `handleSave` - Callback function to handle saving the byline value */
|
|
22
|
+
handleSave: (newValue: BylineModel) => void;
|
|
23
|
+
/** `searchContributors` - Function to search for contributors based on selected text, results will appear on the dropdown */
|
|
24
|
+
searchContributors?: (selectedText: string) => Promise<TaggedContributor[]>;
|
|
25
|
+
/** `onBlur` - Optional blur event handler for the byline editor */
|
|
17
26
|
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
18
27
|
};
|
|
19
28
|
/**
|
|
@@ -71,17 +80,6 @@ type BylineProps = {
|
|
|
71
80
|
* The `ContentByline` component in `flexible-frontend` has a detailed example of how to use the `Byline` component from Stand.
|
|
72
81
|
* See [ContentByline.tsx](https://github.com/guardian/flexible-content/blob/1d537615a18ae24a4a5410a3f945b2b9db1dbb47/flexible-frontend/src/app/components/furniture/content-byline/ContentByline.tsx#L72-L205).
|
|
73
82
|
*/
|
|
74
|
-
declare const Byline: ({
|
|
75
|
-
theme,
|
|
76
|
-
allowUntaggedContributors,
|
|
77
|
-
contributorLimit,
|
|
78
|
-
enablePreview,
|
|
79
|
-
placeholder,
|
|
80
|
-
initialValue,
|
|
81
|
-
readOnly,
|
|
82
|
-
handleSave,
|
|
83
|
-
searchContributors,
|
|
84
|
-
onBlur
|
|
85
|
-
}: BylineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
83
|
+
declare const Byline: ({ theme, allowUntaggedContributors, contributorLimit, enablePreview, placeholder, initialValue, readOnly, handleSave, searchContributors, onBlur }: BylineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
86
84
|
//#endregion
|
|
87
85
|
export { Byline };
|
|
@@ -172,5 +172,7 @@ exports.addTaggedContributor = addTaggedContributor;
|
|
|
172
172
|
exports.addUntaggedContributor = addUntaggedContributor;
|
|
173
173
|
exports.convertBylineModelToNode = convertBylineModelToNode;
|
|
174
174
|
exports.convertNodeToBylineModel = convertNodeToBylineModel;
|
|
175
|
+
exports.detectNameInText = detectNameInText;
|
|
175
176
|
exports.getCurrentText = getCurrentText;
|
|
176
177
|
exports.hasHitContributorLimit = hasHitContributorLimit;
|
|
178
|
+
exports.insertChip = insertChip;
|
|
@@ -168,4 +168,4 @@ const convertNodeToBylineModel = (doc) => {
|
|
|
168
168
|
return model;
|
|
169
169
|
};
|
|
170
170
|
//#endregion
|
|
171
|
-
export { addTaggedContributor, addUntaggedContributor, convertBylineModelToNode, convertNodeToBylineModel, getCurrentText, hasHitContributorLimit };
|
|
171
|
+
export { addTaggedContributor, addUntaggedContributor, convertBylineModelToNode, convertNodeToBylineModel, detectNameInText, getCurrentText, hasHitContributorLimit, insertChip };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentByline } from "../../styleD/build/typescript/component/byline.cjs";
|
|
3
|
-
|
|
4
3
|
//#region src/components/Byline/theme.d.ts
|
|
5
4
|
type PartialBylineTheme = Prettify<DeepPartial<ComponentByline>>;
|
|
6
5
|
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentByline } from "../../styleD/build/typescript/component/byline.js";
|
|
3
|
-
|
|
4
3
|
//#region src/components/Byline/theme.d.ts
|
|
5
4
|
type PartialBylineTheme = Prettify<DeepPartial<ComponentByline>>;
|
|
6
5
|
//#endregion
|