@guardian/stand 0.0.59 → 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/HtmlPreviewLoader.cjs +7 -0
- package/dist/HtmlPreviewLoader.d.cts +4 -0
- package/dist/HtmlPreviewLoader.d.ts +4 -0
- package/dist/HtmlPreviewLoader.js +4 -0
- 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.cjs +99 -0
- package/dist/components/HtmlPreviewLoader/HtmlPreview.d.cts +5 -0
- package/dist/components/HtmlPreviewLoader/HtmlPreview.d.ts +5 -0
- package/dist/components/HtmlPreviewLoader/HtmlPreview.js +99 -0
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.cjs +27 -0
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.d.cts +5 -0
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.d.ts +5 -0
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.js +27 -0
- package/dist/components/HtmlPreviewLoader/styles.cjs +96 -0
- package/dist/components/HtmlPreviewLoader/styles.d.cts +7 -0
- package/dist/components/HtmlPreviewLoader/styles.d.ts +7 -0
- package/dist/components/HtmlPreviewLoader/styles.js +87 -0
- package/dist/components/HtmlPreviewLoader/types.d.cts +27 -0
- package/dist/components/HtmlPreviewLoader/types.d.ts +27 -0
- 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/htmlPreviewLoader.css +22 -0
- package/dist/styleD/build/css/component/icon.css +1 -0
- package/dist/styleD/build/css/component/previewFrame.css +10 -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/htmlPreviewLoader.cjs +30 -0
- package/dist/styleD/build/typescript/component/htmlPreviewLoader.d.cts +33 -0
- package/dist/styleD/build/typescript/component/htmlPreviewLoader.d.ts +33 -0
- package/dist/styleD/build/typescript/component/htmlPreviewLoader.js +30 -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 +31 -18
|
@@ -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
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { CheckboxProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Checkbox/Checkbox.d.ts
|
|
4
|
-
declare function Checkbox({
|
|
5
|
-
children,
|
|
6
|
-
size,
|
|
7
|
-
isIndeterminate,
|
|
8
|
-
theme,
|
|
9
|
-
cssOverrides,
|
|
10
|
-
...props
|
|
11
|
-
}: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Checkbox({ children, size, isIndeterminate, theme, cssOverrides, ...props }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
4
|
//#endregion
|
|
13
5
|
export { Checkbox };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { CheckboxProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Checkbox/Checkbox.d.ts
|
|
4
|
-
declare function Checkbox({
|
|
5
|
-
children,
|
|
6
|
-
size,
|
|
7
|
-
isIndeterminate,
|
|
8
|
-
theme,
|
|
9
|
-
cssOverrides,
|
|
10
|
-
...props
|
|
11
|
-
}: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Checkbox({ children, size, isIndeterminate, theme, cssOverrides, ...props }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
4
|
//#endregion
|
|
13
5
|
export { Checkbox };
|
|
@@ -4,7 +4,7 @@ const require_styles = require("./styles.cjs");
|
|
|
4
4
|
const require_Checkbox = require("./Checkbox.cjs");
|
|
5
5
|
const require_Form = require("../Form/Form.cjs");
|
|
6
6
|
let react = require("react");
|
|
7
|
-
react = require_runtime.__toESM(react);
|
|
7
|
+
react = require_runtime.__toESM(react, 1);
|
|
8
8
|
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
9
9
|
let react_aria_components = require("react-aria-components");
|
|
10
10
|
//#region src/components/Checkbox/CheckboxGroup.tsx
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Checkbox/CheckboxGroup.d.ts
|
|
4
|
-
declare function CheckboxGroup({
|
|
5
|
-
size,
|
|
6
|
-
theme,
|
|
7
|
-
...props
|
|
8
|
-
}: CheckboxGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CheckboxGroup({ size, theme, ...props }: CheckboxGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
4
|
//#endregion
|
|
10
5
|
export { CheckboxGroup };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Checkbox/CheckboxGroup.d.ts
|
|
4
|
-
declare function CheckboxGroup({
|
|
5
|
-
size,
|
|
6
|
-
theme,
|
|
7
|
-
...props
|
|
8
|
-
}: CheckboxGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CheckboxGroup({ size, theme, ...props }: CheckboxGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
4
|
//#endregion
|
|
10
5
|
export { CheckboxGroup };
|
|
@@ -93,8 +93,8 @@ const checkboxGroupStyles = (theme, { size }, hasError) => {
|
|
|
93
93
|
gap: ${theme.group[size].gap};
|
|
94
94
|
margin-top: ${theme.group[size].marginTop};
|
|
95
95
|
${hasError && _emotion_react.css`
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
margin-bottom: ${theme.group[size].marginBottom};
|
|
97
|
+
`}
|
|
98
98
|
`;
|
|
99
99
|
};
|
|
100
100
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentCheckbox } from "../../styleD/build/typescript/component/checkbox.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Checkbox/styles.d.ts
|
|
6
6
|
type CheckboxTheme = Prettify<ComponentCheckbox>;
|
|
7
7
|
type PartialCheckboxTheme = Prettify<DeepPartial<CheckboxTheme>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentCheckbox } from "../../styleD/build/typescript/component/checkbox.js";
|
|
3
|
+
import "./types.js";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Checkbox/styles.d.ts
|
|
6
6
|
type CheckboxTheme = Prettify<ComponentCheckbox>;
|
|
7
7
|
type PartialCheckboxTheme = Prettify<DeepPartial<CheckboxTheme>>;
|
|
@@ -93,8 +93,8 @@ const checkboxGroupStyles = (theme, { size }, hasError) => {
|
|
|
93
93
|
gap: ${theme.group[size].gap};
|
|
94
94
|
margin-top: ${theme.group[size].marginTop};
|
|
95
95
|
${hasError && css`
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
margin-bottom: ${theme.group[size].marginBottom};
|
|
97
|
+
`}
|
|
98
98
|
`;
|
|
99
99
|
};
|
|
100
100
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
|
2
2
|
import { FormInputContainerDefaultProps } from "../Form/types.cjs";
|
|
3
3
|
import { CheckboxTheme } from "./styles.cjs";
|
|
4
4
|
import { CheckboxGroupProps, CheckboxProps } from "react-aria-components";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Checkbox/types.d.ts
|
|
7
6
|
interface CheckboxProps$1 extends DefaultPropsWithChildren<CheckboxTheme, CheckboxProps['className']>, Omit<CheckboxProps, 'children'> {
|
|
8
7
|
/**
|
|
@@ -2,7 +2,6 @@ import { DefaultPropsWithChildren } from "../../util/types.js";
|
|
|
2
2
|
import { FormInputContainerDefaultProps } from "../Form/types.js";
|
|
3
3
|
import { CheckboxTheme } from "./styles.js";
|
|
4
4
|
import { CheckboxGroupProps, CheckboxProps } from "react-aria-components";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Checkbox/types.d.ts
|
|
7
6
|
interface CheckboxProps$1 extends DefaultPropsWithChildren<CheckboxTheme, CheckboxProps['className']>, Omit<CheckboxProps, 'children'> {
|
|
8
7
|
/**
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { DatePickerProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/components/DatePicker/DatePicker.d.ts
|
|
4
|
-
declare function DatePicker({
|
|
5
|
-
isInvalid,
|
|
6
|
-
locale,
|
|
7
|
-
useMonthTextInput,
|
|
8
|
-
theme,
|
|
9
|
-
...props
|
|
10
|
-
}: DatePickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function DatePicker({ isInvalid, locale, useMonthTextInput, theme, ...props }: DatePickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
4
|
//#endregion
|
|
12
5
|
export { DatePicker };
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { DatePickerProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/DatePicker/DatePicker.d.ts
|
|
4
|
-
declare function DatePicker({
|
|
5
|
-
isInvalid,
|
|
6
|
-
locale,
|
|
7
|
-
useMonthTextInput,
|
|
8
|
-
theme,
|
|
9
|
-
...props
|
|
10
|
-
}: DatePickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function DatePicker({ isInvalid, locale, useMonthTextInput, theme, ...props }: DatePickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
4
|
//#endregion
|
|
12
5
|
export { DatePicker };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentDatePicker } from "../../styleD/build/typescript/component/datePicker.cjs";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/DatePicker/styles.d.ts
|
|
6
5
|
type DatePickerTheme = Prettify<ComponentDatePicker>;
|
|
7
6
|
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentDatePicker } from "../../styleD/build/typescript/component/datePicker.js";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/DatePicker/styles.d.ts
|
|
6
5
|
type DatePickerTheme = Prettify<ComponentDatePicker>;
|
|
7
6
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import "../../util/types.cjs";
|
|
1
2
|
import { FormInputContainerDefaultProps } from "../Form/types.cjs";
|
|
2
3
|
import { DatePickerTheme } from "./styles.cjs";
|
|
3
4
|
import { DatePickerProps, DateValue } from "react-aria-components";
|
|
4
|
-
|
|
5
5
|
//#region src/components/DatePicker/types.d.ts
|
|
6
6
|
interface DatePickerProps$1 extends FormInputContainerDefaultProps<Omit<DatePickerProps<DateValue>, 'granularity' | 'hideTimeZone'>, DatePickerTheme> {
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import "../../util/types.js";
|
|
1
2
|
import { FormInputContainerDefaultProps } from "../Form/types.js";
|
|
2
3
|
import { DatePickerTheme } from "./styles.js";
|
|
3
4
|
import { DatePickerProps, DateValue } from "react-aria-components";
|
|
4
|
-
|
|
5
5
|
//#region src/components/DatePicker/types.d.ts
|
|
6
6
|
interface DatePickerProps$1 extends FormInputContainerDefaultProps<Omit<DatePickerProps<DateValue>, 'granularity' | 'hideTimeZone'>, DatePickerTheme> {
|
|
7
7
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentFavicon } from "../../styleD/build/typescript/component/favicon.cjs";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/Favicon/styles.d.ts
|
|
6
5
|
type FaviconTheme = Prettify<ComponentFavicon>;
|
|
7
6
|
type PartialFaviconTheme = Prettify<DeepPartial<FaviconTheme>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentFavicon } from "../../styleD/build/typescript/component/favicon.js";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/Favicon/styles.d.ts
|
|
6
5
|
type FaviconTheme = Prettify<ComponentFavicon>;
|
|
7
6
|
type PartialFaviconTheme = Prettify<DeepPartial<FaviconTheme>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DefaultProps } from "../../util/types.cjs";
|
|
2
2
|
import { IconProps } from "../Icon/types.cjs";
|
|
3
3
|
import { FaviconTheme } from "./styles.cjs";
|
|
4
|
-
|
|
5
4
|
//#region src/components/Favicon/types.d.ts
|
|
6
5
|
interface FaviconWithLetter extends DefaultProps<FaviconTheme> {
|
|
7
6
|
/**
|
|
@@ -10,8 +10,8 @@ const formInputContainerStyles = (theme, { fluid }) => {
|
|
|
10
10
|
gap: ${theme.shared.container.gap};
|
|
11
11
|
width: ${theme.shared.container.width};
|
|
12
12
|
${!fluid && _emotion_react.css`
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
max-width: ${theme.shared.container.maxWidth};
|
|
14
|
+
`}
|
|
15
15
|
`;
|
|
16
16
|
};
|
|
17
17
|
const formInputLabelStyles = (theme, { isDisabled, size }) => {
|
|
@@ -20,8 +20,8 @@ const formInputLabelStyles = (theme, { isDisabled, size }) => {
|
|
|
20
20
|
${require_typography.convertTypographyToEmotionStringStyle(theme[size].label.typography)}
|
|
21
21
|
|
|
22
22
|
${isDisabled && _emotion_react.css`
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
color: ${theme.shared.label.disabled.color};
|
|
24
|
+
`}
|
|
25
25
|
`;
|
|
26
26
|
};
|
|
27
27
|
const formInputDescriptionStyles = (theme, { isDisabled }) => {
|
|
@@ -29,8 +29,8 @@ const formInputDescriptionStyles = (theme, { isDisabled }) => {
|
|
|
29
29
|
color: ${theme.shared.description.color};
|
|
30
30
|
${require_typography.convertTypographyToEmotionStringStyle(theme.shared.description.typography)}
|
|
31
31
|
${isDisabled && _emotion_react.css`
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
color: ${theme.shared.description.disabled.color};
|
|
33
|
+
`}
|
|
34
34
|
`;
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentForm } from "../../styleD/build/typescript/component/form.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Form/styles.d.ts
|
|
6
6
|
type FormInputContainerTheme = Prettify<ComponentForm['input']>;
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentForm } from "../../styleD/build/typescript/component/form.js";
|
|
3
|
+
import "./types.js";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Form/styles.d.ts
|
|
6
6
|
type FormInputContainerTheme = Prettify<ComponentForm['input']>;
|
|
7
7
|
//#endregion
|
|
@@ -10,8 +10,8 @@ const formInputContainerStyles = (theme, { fluid }) => {
|
|
|
10
10
|
gap: ${theme.shared.container.gap};
|
|
11
11
|
width: ${theme.shared.container.width};
|
|
12
12
|
${!fluid && css`
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
max-width: ${theme.shared.container.maxWidth};
|
|
14
|
+
`}
|
|
15
15
|
`;
|
|
16
16
|
};
|
|
17
17
|
const formInputLabelStyles = (theme, { isDisabled, size }) => {
|
|
@@ -20,8 +20,8 @@ const formInputLabelStyles = (theme, { isDisabled, size }) => {
|
|
|
20
20
|
${convertTypographyToEmotionStringStyle(theme[size].label.typography)}
|
|
21
21
|
|
|
22
22
|
${isDisabled && css`
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
color: ${theme.shared.label.disabled.color};
|
|
24
|
+
`}
|
|
25
25
|
`;
|
|
26
26
|
};
|
|
27
27
|
const formInputDescriptionStyles = (theme, { isDisabled }) => {
|
|
@@ -29,8 +29,8 @@ const formInputDescriptionStyles = (theme, { isDisabled }) => {
|
|
|
29
29
|
color: ${theme.shared.description.color};
|
|
30
30
|
${convertTypographyToEmotionStringStyle(theme.shared.description.typography)}
|
|
31
31
|
${isDisabled && css`
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
color: ${theme.shared.description.disabled.color};
|
|
33
|
+
`}
|
|
34
34
|
`;
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, DefaultProps } from "../../util/types.cjs";
|
|
2
2
|
import { FormInputContainerTheme } from "./styles.cjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/Form/types.d.ts
|
|
6
5
|
type FormInputContainerDefaultProps<ReactAriaInput extends {
|
|
7
6
|
className?: unknown;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, DefaultProps } from "../../util/types.js";
|
|
2
2
|
import { FormInputContainerTheme } from "./styles.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/Form/types.d.ts
|
|
6
5
|
type FormInputContainerDefaultProps<ReactAriaInput extends {
|
|
7
6
|
className?: unknown;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { GridProps, ItemProps } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Grid/Grid.d.ts
|
|
4
|
-
declare function Grid({
|
|
5
|
-
|
|
6
|
-
theme,
|
|
7
|
-
cssOverrides,
|
|
8
|
-
as: Component,
|
|
9
|
-
...props
|
|
10
|
-
}: GridProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function Item({
|
|
12
|
-
children,
|
|
13
|
-
theme,
|
|
14
|
-
cssOverrides,
|
|
15
|
-
size,
|
|
16
|
-
offset,
|
|
17
|
-
...props
|
|
18
|
-
}: ItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Grid({ children, theme, cssOverrides, as: Component, ...props }: GridProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Item({ children, theme, cssOverrides, size, offset, ...props }: ItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
5
|
//#endregion
|
|
20
6
|
export { Grid, Item };
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { GridProps, ItemProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/Grid/Grid.d.ts
|
|
4
|
-
declare function Grid({
|
|
5
|
-
|
|
6
|
-
theme,
|
|
7
|
-
cssOverrides,
|
|
8
|
-
as: Component,
|
|
9
|
-
...props
|
|
10
|
-
}: GridProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function Item({
|
|
12
|
-
children,
|
|
13
|
-
theme,
|
|
14
|
-
cssOverrides,
|
|
15
|
-
size,
|
|
16
|
-
offset,
|
|
17
|
-
...props
|
|
18
|
-
}: ItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Grid({ children, theme, cssOverrides, as: Component, ...props }: GridProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Item({ children, theme, cssOverrides, size, offset, ...props }: ItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
5
|
//#endregion
|
|
20
6
|
export { Grid, Item };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentGrid } from "../../styleD/build/typescript/component/grid.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Grid/styles.d.ts
|
|
6
6
|
type GridTheme = Prettify<ComponentGrid>;
|
|
7
7
|
type PartialGridTheme = Prettify<DeepPartial<GridTheme>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentGrid } from "../../styleD/build/typescript/component/grid.js";
|
|
3
|
+
import "./types.js";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Grid/styles.d.ts
|
|
6
6
|
type GridTheme = Prettify<ComponentGrid>;
|
|
7
7
|
type PartialGridTheme = Prettify<DeepPartial<GridTheme>>;
|
|
@@ -2,7 +2,6 @@ import { DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
|
2
2
|
import { Breakpoint } from "../../styleD/utils/semantic/mq.cjs";
|
|
3
3
|
import { GridTheme } from "./styles.cjs";
|
|
4
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Grid/types.d.ts
|
|
7
6
|
type ResponsiveGridValue<T> = Partial<Record<Breakpoint, T>>;
|
|
8
7
|
type GridSizeValue = number | 'auto' | 'grow';
|
|
@@ -26,4 +25,4 @@ interface ItemProps extends DefaultPropsWithChildren<GridTheme>, Omit<HTMLAttrib
|
|
|
26
25
|
offset?: GridOffsetValue | ResponsiveGridValue<GridOffsetValue>;
|
|
27
26
|
}
|
|
28
27
|
//#endregion
|
|
29
|
-
export { GridProps, ItemProps };
|
|
28
|
+
export { GridOffsetValue, GridProps, GridSizeValue, ItemProps, ResponsiveGridValue };
|
|
@@ -2,7 +2,6 @@ import { DefaultPropsWithChildren } from "../../util/types.js";
|
|
|
2
2
|
import { Breakpoint } from "../../styleD/utils/semantic/mq.js";
|
|
3
3
|
import { GridTheme } from "./styles.js";
|
|
4
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/components/Grid/types.d.ts
|
|
7
6
|
type ResponsiveGridValue<T> = Partial<Record<Breakpoint, T>>;
|
|
8
7
|
type GridSizeValue = number | 'auto' | 'grow';
|
|
@@ -26,4 +25,4 @@ interface ItemProps extends DefaultPropsWithChildren<GridTheme>, Omit<HTMLAttrib
|
|
|
26
25
|
offset?: GridOffsetValue | ResponsiveGridValue<GridOffsetValue>;
|
|
27
26
|
}
|
|
28
27
|
//#endregion
|
|
29
|
-
export { GridProps, ItemProps };
|
|
28
|
+
export { GridOffsetValue, GridProps, GridSizeValue, ItemProps, ResponsiveGridValue };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
2
|
+
const require_Icon = require("../Icon/Icon.cjs");
|
|
3
|
+
const require_AlertBanner = require("../AlertBanner/AlertBanner.cjs");
|
|
4
|
+
const require_Button = require("../Button/Button.cjs");
|
|
5
|
+
const require_Typography = require("../Typography/Typography.cjs");
|
|
6
|
+
const require_RadioGroup = require("../RadioGroup/RadioGroup.cjs");
|
|
7
|
+
const require_styles = require("./styles.cjs");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
let _emotion_react = require("@emotion/react");
|
|
10
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
11
|
+
//#region src/components/HtmlPreviewLoader/HtmlPreview.tsx
|
|
12
|
+
const defaultWidthOptions = [
|
|
13
|
+
320,
|
|
14
|
+
375,
|
|
15
|
+
425,
|
|
16
|
+
650
|
|
17
|
+
];
|
|
18
|
+
const HtmlPreview = ({ html, isLoading = false, errorMessage, attemptLoad, minHeight = 600, title, widthOptions = defaultWidthOptions, defaultWidth = 425, frameBackground = "white", allowReloading = false, cssOverrides, theme }) => {
|
|
19
|
+
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultHtmlPreviewLoaderTheme, theme ?? {});
|
|
20
|
+
const [frameWidth, setFrameWidth] = (0, react.useState)(defaultWidth);
|
|
21
|
+
const showReloadButton = allowReloading && !errorMessage && !isLoading && !!attemptLoad;
|
|
22
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
|
|
23
|
+
css: [require_styles.htmlPreviewLoaderStyles(mergedTheme), cssOverrides],
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("header", {
|
|
26
|
+
css: require_styles.headerStyles(),
|
|
27
|
+
children: [typeof title === "string" ? /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
28
|
+
variant: "titleMd",
|
|
29
|
+
children: title
|
|
30
|
+
}) : title, widthOptions.length > 0 && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_RadioGroup.RadioGroup, {
|
|
31
|
+
size: "sm",
|
|
32
|
+
label: "width",
|
|
33
|
+
orientation: "horizontal",
|
|
34
|
+
formInputContainerTheme: { shared: { container: {
|
|
35
|
+
width: "unset",
|
|
36
|
+
flexDirection: "row"
|
|
37
|
+
} } },
|
|
38
|
+
cssOverrides: (0, _emotion_react.css)({ alignItems: "center" }),
|
|
39
|
+
value: String(frameWidth),
|
|
40
|
+
onChange: (value) => setFrameWidth(Number(value)),
|
|
41
|
+
children: widthOptions.map((width, index) => /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(require_RadioGroup.Radio, {
|
|
42
|
+
value: String(width),
|
|
43
|
+
children: [width, "px"]
|
|
44
|
+
}, index))
|
|
45
|
+
})]
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
|
|
48
|
+
css: [require_styles.previewFrameStyle(mergedTheme), { minHeight }],
|
|
49
|
+
children: [html && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("iframe", {
|
|
50
|
+
sandbox: "",
|
|
51
|
+
style: {
|
|
52
|
+
minWidth: frameWidth,
|
|
53
|
+
maxWidth: frameWidth,
|
|
54
|
+
background: frameBackground
|
|
55
|
+
},
|
|
56
|
+
css: require_styles.iframeStyle(isLoading || !!errorMessage),
|
|
57
|
+
title: "preview",
|
|
58
|
+
srcDoc: html
|
|
59
|
+
}), showReloadButton && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", {
|
|
60
|
+
css: require_styles.reloadButtonStyle(mergedTheme),
|
|
61
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Button.Button, {
|
|
62
|
+
icon: "refresh",
|
|
63
|
+
size: "md",
|
|
64
|
+
variant: "primary",
|
|
65
|
+
onPress: attemptLoad,
|
|
66
|
+
children: "reload"
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
}),
|
|
70
|
+
isLoading && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", {
|
|
71
|
+
css: require_styles.centeredStyle(),
|
|
72
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
73
|
+
css: require_styles.loadingIconStyle(mergedTheme),
|
|
74
|
+
symbol: "progress_activity",
|
|
75
|
+
cssOverrides: require_styles.spinAnimationStyle()
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
errorMessage && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", {
|
|
79
|
+
css: require_styles.centeredStyle(),
|
|
80
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_AlertBanner.AlertBanner, {
|
|
81
|
+
showIcon: true,
|
|
82
|
+
level: "error",
|
|
83
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
|
|
84
|
+
css: require_styles.alertBannerContentsStyle(),
|
|
85
|
+
children: [errorMessage, attemptLoad && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Button.Button, {
|
|
86
|
+
icon: "refresh",
|
|
87
|
+
size: "sm",
|
|
88
|
+
variant: "secondary",
|
|
89
|
+
onPress: attemptLoad,
|
|
90
|
+
children: "retry"
|
|
91
|
+
})]
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
exports.HtmlPreview = HtmlPreview;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HtmlPreviewProps } from "./types.cjs";
|
|
2
|
+
//#region src/components/HtmlPreviewLoader/HtmlPreview.d.ts
|
|
3
|
+
declare const HtmlPreview: ({ html, isLoading, errorMessage, attemptLoad, minHeight, title, widthOptions, defaultWidth, frameBackground, allowReloading, cssOverrides, theme }: HtmlPreviewProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { HtmlPreview };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HtmlPreviewProps } from "./types.js";
|
|
2
|
+
//#region src/components/HtmlPreviewLoader/HtmlPreview.d.ts
|
|
3
|
+
declare const HtmlPreview: ({ html, isLoading, errorMessage, attemptLoad, minHeight, title, widthOptions, defaultWidth, frameBackground, allowReloading, cssOverrides, theme }: HtmlPreviewProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { HtmlPreview };
|