@redocly/theme 0.1.16 → 0.1.21
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/Button/Button.d.ts +4 -3
- package/Button/Button.js +28 -1
- package/Footer/CustomFooter.d.ts +7 -0
- package/Footer/CustomFooter.js +31 -0
- package/Footer/CustomFooterNavItem.d.ts +7 -0
- package/Footer/CustomFooterNavItem.js +25 -0
- package/Footer/Footer.d.ts +6 -2
- package/Footer/Footer.js +1 -1
- package/Footer/FooterColumn.d.ts +2 -2
- package/Footer/FooterColumn.js +3 -2
- package/Footer/FooterColumns.d.ts +6 -4
- package/Footer/FooterColumns.js +3 -3
- package/Footer/FooterCopyright.d.ts +6 -4
- package/JsonViewer/JsonViewer.js +1 -2
- package/JsonViewer/index.d.ts +0 -1
- package/JsonViewer/index.js +0 -1
- package/Markdown/Admonition.js +1 -1
- package/Markdown/CodeSample/CodeSample.js +15 -5
- package/Markdown/CodeSample/index.d.ts +0 -1
- package/Markdown/CodeSample/index.js +0 -1
- package/Navbar/Navbar.d.ts +2 -1
- package/Navbar/Navbar.js +9 -2
- package/Navbar/NavbarDropdown.d.ts +8 -0
- package/Navbar/NavbarDropdown.js +21 -0
- package/Navbar/NavbarItem.d.ts +3 -36
- package/Navbar/NavbarItem.js +22 -13
- package/Navbar/NavbarMenu.d.ts +2 -1
- package/Navbar/NavbarMenu.js +1 -1
- package/PageNavigation/NextPageLink.js +8 -5
- package/PageNavigation/PreviousPageLink.js +8 -5
- package/Search/SidebarSearch.d.ts +2 -0
- package/Search/SidebarSearch.js +15 -0
- package/Sidebar/MenuGroup.js +2 -2
- package/Sidebar/SidebarLayout.js +5 -0
- package/TableOfContent/TableOfContent.js +8 -1
- package/Typography/CompactTypography.d.ts +11 -0
- package/Typography/CompactTypography.js +18 -0
- package/Typography/Emphasis.d.ts +3 -0
- package/Typography/Emphasis.js +15 -0
- package/Typography/H1.d.ts +3 -0
- package/Typography/H1.js +16 -0
- package/Typography/H2.d.ts +3 -0
- package/Typography/H2.js +16 -0
- package/Typography/H3.d.ts +3 -0
- package/Typography/H3.js +16 -0
- package/Typography/SectionHeader.d.ts +1 -0
- package/Typography/SectionHeader.js +13 -0
- package/Typography/Typography.d.ts +8 -0
- package/Typography/Typography.js +22 -0
- package/Typography/index.d.ts +7 -0
- package/{Headings → Typography}/index.js +7 -1
- package/globalStyle.js +1 -1
- package/{ui → icons/AlertIcon}/AlertIcon.d.ts +2 -2
- package/{ui → icons/AlertIcon}/AlertIcon.js +1 -1
- package/icons/AlertIcon/index.d.ts +2 -0
- package/icons/AlertIcon/index.js +5 -0
- package/icons/ArrowIcon/ArrowIcon.d.ts +7 -0
- package/{ui/Arrow.js → icons/ArrowIcon/ArrowIcon.js} +3 -3
- package/icons/ArrowIcon/index.d.ts +2 -0
- package/icons/ArrowIcon/index.js +5 -0
- package/icons/index.d.ts +2 -0
- package/icons/index.js +2 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/mocks/constants/index.d.ts +2 -0
- package/mocks/constants/index.js +5 -0
- package/mocks/hooks/index.d.ts +6 -0
- package/mocks/hooks/index.js +16 -0
- package/package.json +1 -1
- package/settings.yaml +9 -0
- package/src/Button/Button.tsx +19 -1
- package/src/Footer/CustomFooter.tsx +45 -0
- package/src/Footer/CustomFooterNavItem.tsx +40 -0
- package/src/Footer/Footer.tsx +6 -2
- package/src/Footer/FooterColumn.tsx +4 -4
- package/src/Footer/FooterColumns.tsx +9 -9
- package/src/Footer/FooterCopyright.tsx +6 -6
- package/src/JsonViewer/JsonViewer.tsx +106 -2
- package/src/JsonViewer/index.ts +0 -1
- package/src/Markdown/Admonition.tsx +1 -1
- package/src/Markdown/CodeSample/CodeSample.tsx +160 -6
- package/src/Markdown/CodeSample/index.ts +0 -1
- package/src/Navbar/Navbar.tsx +13 -3
- package/src/Navbar/NavbarDropdown.tsx +44 -0
- package/src/Navbar/NavbarItem.tsx +44 -51
- package/src/Navbar/NavbarMenu.tsx +6 -3
- package/src/PageNavigation/NextPageLink.tsx +9 -3
- package/src/PageNavigation/PreviousPageLink.tsx +9 -3
- package/src/Search/SidebarSearch.tsx +13 -0
- package/src/Sidebar/MenuGroup.tsx +2 -2
- package/src/Sidebar/SidebarLayout.tsx +5 -0
- package/src/TableOfContent/TableOfContent.tsx +7 -1
- package/src/Typography/CompactTypography.ts +9 -0
- package/src/Typography/Emphasis.ts +7 -0
- package/src/Typography/H1.ts +12 -0
- package/src/Typography/H2.ts +12 -0
- package/src/Typography/H3.ts +11 -0
- package/src/Typography/SectionHeader.ts +11 -0
- package/src/Typography/Typography.ts +21 -0
- package/src/Typography/index.ts +7 -0
- package/src/globalStyle.ts +1 -0
- package/src/{ui → icons/AlertIcon}/AlertIcon.tsx +3 -3
- package/src/icons/AlertIcon/index.ts +2 -0
- package/src/{ui/Arrow.tsx → icons/ArrowIcon/ArrowIcon.tsx} +5 -5
- package/src/icons/ArrowIcon/index.ts +2 -0
- package/src/icons/index.ts +2 -0
- package/src/index.ts +1 -1
- package/src/mocks/constants/index.ts +2 -0
- package/src/mocks/hooks/index.ts +17 -0
- package/src/types/portal/index.d.ts +0 -1
- package/src/types/portal/src/client/app/Sidebar/types.d.ts +1 -1
- package/src/types/portal/src/server/{utils → content}/content-provider.d.ts +9 -9
- package/src/types/portal/src/server/{version-store.d.ts → content/versions-config.d.ts} +7 -7
- package/src/types/portal/src/server/plugins/markdown/types.d.ts +14 -11
- package/src/types/portal/src/server/plugins/portal-config/types.d.ts +16 -19
- package/src/types/portal/src/server/plugins/types.d.ts +23 -15
- package/src/types/portal/src/server/store.d.ts +32 -33
- package/src/types/portal/src/server/utils/fs.d.ts +2 -1
- package/src/types/portal/src/server/utils/index.d.ts +0 -1
- package/src/types/portal/src/server/utils/paths.d.ts +3 -3
- package/src/types/portal/src/server/utils/reporter/formatter.d.ts +2 -1
- package/src/types/portal/src/server/utils/reporter/reporter.d.ts +2 -1
- package/src/types/portal/src/shared/constants.d.ts +2 -0
- package/src/types/portal/src/shared/models/active-item.d.ts +3 -0
- package/src/types/portal/src/shared/models/config.d.ts +28 -0
- package/src/types/portal/src/shared/models/index.d.ts +6 -0
- package/src/types/portal/src/shared/models/json-index.d.ts +5 -0
- package/src/types/portal/src/shared/models/operation-parameter.d.ts +6 -0
- package/src/types/portal/src/shared/models/search-data.d.ts +5 -0
- package/src/types/portal/src/shared/models/search-document.d.ts +11 -0
- package/src/types/portal/src/shared/types.d.ts +8 -2
- package/src/types/portal/src/shared/urls.d.ts +2 -0
- package/src/types/portal/src/shared/utils.d.ts +8 -2
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/index.tsx +0 -4
- package/src/utils/ClipboardService.ts +19 -0
- package/ui/Jumbotron.js +1 -1
- package/ui/index.d.ts +0 -4
- package/ui/index.js +0 -4
- package/utils/ClipboardService.d.ts +1 -0
- package/utils/ClipboardService.js +19 -0
- package/Headings/Headings.d.ts +0 -3
- package/Headings/Headings.js +0 -16
- package/Headings/index.d.ts +0 -1
- package/JsonViewer/styled.d.ts +0 -1
- package/JsonViewer/styled.js +0 -10
- package/Markdown/CodeSample/styled.d.ts +0 -4
- package/Markdown/CodeSample/styled.js +0 -85
- package/src/Headings/Headings.ts +0 -23
- package/src/Headings/index.ts +0 -1
- package/src/JsonViewer/styled.ts +0 -103
- package/src/Markdown/CodeSample/styled.ts +0 -209
- package/src/types/portal/src/client/app/media-css.d.ts +0 -7
- package/src/types/portal/src/client/styling/default.d.ts +0 -601
- package/src/types/portal/src/client/styling/index.d.ts +0 -10
- package/src/types/portal/src/client/styling/resolve.d.ts +0 -1
- package/src/ui/Button.tsx +0 -19
- package/src/ui/Typography.tsx +0 -90
- package/ui/Arrow.d.ts +0 -7
- package/ui/Button.d.ts +0 -7
- package/ui/Button.js +0 -30
- package/ui/Typography.d.ts +0 -41
- package/ui/Typography.js +0 -59
package/src/ui/Typography.tsx
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { color, typography as typographySystem, ColorProps, TypographyProps } from 'styled-system';
|
|
3
|
-
|
|
4
|
-
import { typography } from '@theme/utils';
|
|
5
|
-
|
|
6
|
-
type HeadingProps = TypographyProps &
|
|
7
|
-
ColorProps & {
|
|
8
|
-
mt?: string;
|
|
9
|
-
mb?: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const Emphasis = styled.strong.attrs(() => ({
|
|
13
|
-
'data-component-name': 'ui/Typography/Emphasis',
|
|
14
|
-
}))`
|
|
15
|
-
font-weight: var(--font-weight-bold);
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const H1 = styled.h1.attrs(() => ({
|
|
19
|
-
'data-component-name': 'ui/Typography/H1',
|
|
20
|
-
}))<HeadingProps>`
|
|
21
|
-
${typography('h1', 'h')};
|
|
22
|
-
margin: 1.35em 0 0.9em;
|
|
23
|
-
&& {
|
|
24
|
-
${({ mt }) => mt && `margin-top: ${mt};`}
|
|
25
|
-
${({ mb }) => mb && `margin-bottom: ${mb};`}
|
|
26
|
-
${color}
|
|
27
|
-
${typographySystem}
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
export const H2 = styled.h2.attrs(() => ({
|
|
32
|
-
'data-component-name': 'ui/Typography/H2',
|
|
33
|
-
}))<HeadingProps>`
|
|
34
|
-
${typography('h2', 'h')};
|
|
35
|
-
margin: 1.25em 0 0.8em;
|
|
36
|
-
&& {
|
|
37
|
-
${({ mt }) => mt && `margin-top: ${mt};`}
|
|
38
|
-
${({ mb }) => mb && `margin-bottom: ${mb};`}
|
|
39
|
-
${color}
|
|
40
|
-
${typographySystem}
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
|
|
44
|
-
export const H3 = styled.h3.attrs(() => ({
|
|
45
|
-
'data-component-name': 'ui/Typography/H3',
|
|
46
|
-
}))<HeadingProps>`
|
|
47
|
-
${typography('h3', 'h')};
|
|
48
|
-
margin: 1.25em 0 0.8em;
|
|
49
|
-
&& {
|
|
50
|
-
${({ mt }) => mt && `margin-top: ${mt};`}
|
|
51
|
-
${({ mb }) => mb && `margin-bottom: ${mb};`}
|
|
52
|
-
${color}
|
|
53
|
-
${typographySystem}
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
56
|
-
|
|
57
|
-
export const SectionHeader = styled.h2`
|
|
58
|
-
color: var(--h-color);
|
|
59
|
-
font-size: 1.75em;
|
|
60
|
-
font-weight: var(--font-weight-regular);
|
|
61
|
-
text-align: center;
|
|
62
|
-
margin: 2.65em 0;
|
|
63
|
-
padding: 0 20px;
|
|
64
|
-
font-family: var(--h-font-family);
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
export const Typography = styled.p.attrs(() => ({
|
|
68
|
-
'data-component-name': 'ui/Typography/Typography',
|
|
69
|
-
}))<
|
|
70
|
-
TypographyProps & {
|
|
71
|
-
color?: string;
|
|
72
|
-
mt?: string;
|
|
73
|
-
mb?: string;
|
|
74
|
-
}
|
|
75
|
-
>`
|
|
76
|
-
font-size: var(--font-size-base);
|
|
77
|
-
font-family: var(--font-family-base);
|
|
78
|
-
line-height: var(--line-height-base);
|
|
79
|
-
color: var(--color-content);
|
|
80
|
-
${color};
|
|
81
|
-
margin-top: ${({ mt }) => mt || '1em'};
|
|
82
|
-
margin-bottom: ${({ mb }) => mb || '1em'};
|
|
83
|
-
${typographySystem}
|
|
84
|
-
`;
|
|
85
|
-
|
|
86
|
-
export const CompactTypography = styled(Typography).attrs(() => ({
|
|
87
|
-
mt: '0em',
|
|
88
|
-
mb: '0em',
|
|
89
|
-
'data-component-name': 'ui/Typography/CompactTypography',
|
|
90
|
-
}))``;
|
package/ui/Arrow.d.ts
DELETED
package/ui/Button.d.ts
DELETED
package/ui/Button.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Button = void 0;
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var Button_1 = require("../Button");
|
|
20
|
-
var Link_1 = require("../mocks/Link");
|
|
21
|
-
var StyledButtonAsLink = Button_1.Button.withComponent(Link_1.Link);
|
|
22
|
-
function Button(props) {
|
|
23
|
-
if (props.to) {
|
|
24
|
-
return react_1.default.createElement(StyledButtonAsLink, __assign({}, props, { role: "button", "data-component-name": "ui/Button" }));
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return (react_1.default.createElement(Button_1.Button, __assign({}, props, { role: "button", "data-component-name": "ui/Button" })));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.Button = Button;
|
package/ui/Typography.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ColorProps, TypographyProps } from 'styled-system';
|
|
2
|
-
export declare const Emphasis: import("styled-components").StyledComponent<"strong", any, {
|
|
3
|
-
'data-component-name': string;
|
|
4
|
-
}, "data-component-name">;
|
|
5
|
-
export declare const H1: import("styled-components").StyledComponent<"h1", any, {
|
|
6
|
-
'data-component-name': string;
|
|
7
|
-
} & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
8
|
-
mt?: string | undefined;
|
|
9
|
-
mb?: string | undefined;
|
|
10
|
-
}, "data-component-name">;
|
|
11
|
-
export declare const H2: import("styled-components").StyledComponent<"h2", any, {
|
|
12
|
-
'data-component-name': string;
|
|
13
|
-
} & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
14
|
-
mt?: string | undefined;
|
|
15
|
-
mb?: string | undefined;
|
|
16
|
-
}, "data-component-name">;
|
|
17
|
-
export declare const H3: import("styled-components").StyledComponent<"h3", any, {
|
|
18
|
-
'data-component-name': string;
|
|
19
|
-
} & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
20
|
-
mt?: string | undefined;
|
|
21
|
-
mb?: string | undefined;
|
|
22
|
-
}, "data-component-name">;
|
|
23
|
-
export declare const SectionHeader: import("styled-components").StyledComponent<"h2", any, {}, never>;
|
|
24
|
-
export declare const Typography: import("styled-components").StyledComponent<"p", any, {
|
|
25
|
-
'data-component-name': string;
|
|
26
|
-
} & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
27
|
-
color?: string | undefined;
|
|
28
|
-
mt?: string | undefined;
|
|
29
|
-
mb?: string | undefined;
|
|
30
|
-
}, "data-component-name">;
|
|
31
|
-
export declare const CompactTypography: import("styled-components").StyledComponent<"p", any, {
|
|
32
|
-
'data-component-name': string;
|
|
33
|
-
} & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
34
|
-
color?: string | undefined;
|
|
35
|
-
mt?: string | undefined;
|
|
36
|
-
mb?: string | undefined;
|
|
37
|
-
} & {
|
|
38
|
-
mt: string;
|
|
39
|
-
mb: string;
|
|
40
|
-
'data-component-name': string;
|
|
41
|
-
}, "data-component-name" | "mt" | "mb">;
|
package/ui/Typography.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.CompactTypography = exports.Typography = exports.SectionHeader = exports.H3 = exports.H2 = exports.H1 = exports.Emphasis = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
var styled_system_1 = require("styled-system");
|
|
13
|
-
var utils_1 = require("../utils");
|
|
14
|
-
exports.Emphasis = styled_components_1.default.strong.attrs(function () { return ({
|
|
15
|
-
'data-component-name': 'ui/Typography/Emphasis',
|
|
16
|
-
}); })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-weight: var(--font-weight-bold);\n"], ["\n font-weight: var(--font-weight-bold);\n"])));
|
|
17
|
-
exports.H1 = styled_components_1.default.h1.attrs(function () { return ({
|
|
18
|
-
'data-component-name': 'ui/Typography/H1',
|
|
19
|
-
}); })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n margin: 1.35em 0 0.9em;\n && {\n ", "\n ", "\n ", "\n ", "\n }\n"], ["\n ", ";\n margin: 1.35em 0 0.9em;\n && {\n ", "\n ", "\n ", "\n ", "\n }\n"])), (0, utils_1.typography)('h1', 'h'), function (_a) {
|
|
20
|
-
var mt = _a.mt;
|
|
21
|
-
return mt && "margin-top: ".concat(mt, ";");
|
|
22
|
-
}, function (_a) {
|
|
23
|
-
var mb = _a.mb;
|
|
24
|
-
return mb && "margin-bottom: ".concat(mb, ";");
|
|
25
|
-
}, styled_system_1.color, styled_system_1.typography);
|
|
26
|
-
exports.H2 = styled_components_1.default.h2.attrs(function () { return ({
|
|
27
|
-
'data-component-name': 'ui/Typography/H2',
|
|
28
|
-
}); })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n margin: 1.25em 0 0.8em;\n && {\n ", "\n ", "\n ", "\n ", "\n }\n"], ["\n ", ";\n margin: 1.25em 0 0.8em;\n && {\n ", "\n ", "\n ", "\n ", "\n }\n"])), (0, utils_1.typography)('h2', 'h'), function (_a) {
|
|
29
|
-
var mt = _a.mt;
|
|
30
|
-
return mt && "margin-top: ".concat(mt, ";");
|
|
31
|
-
}, function (_a) {
|
|
32
|
-
var mb = _a.mb;
|
|
33
|
-
return mb && "margin-bottom: ".concat(mb, ";");
|
|
34
|
-
}, styled_system_1.color, styled_system_1.typography);
|
|
35
|
-
exports.H3 = styled_components_1.default.h3.attrs(function () { return ({
|
|
36
|
-
'data-component-name': 'ui/Typography/H3',
|
|
37
|
-
}); })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n margin: 1.25em 0 0.8em;\n && {\n ", "\n ", "\n ", "\n ", "\n }\n"], ["\n ", ";\n margin: 1.25em 0 0.8em;\n && {\n ", "\n ", "\n ", "\n ", "\n }\n"])), (0, utils_1.typography)('h3', 'h'), function (_a) {
|
|
38
|
-
var mt = _a.mt;
|
|
39
|
-
return mt && "margin-top: ".concat(mt, ";");
|
|
40
|
-
}, function (_a) {
|
|
41
|
-
var mb = _a.mb;
|
|
42
|
-
return mb && "margin-bottom: ".concat(mb, ";");
|
|
43
|
-
}, styled_system_1.color, styled_system_1.typography);
|
|
44
|
-
exports.SectionHeader = styled_components_1.default.h2(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: var(--h-color);\n font-size: 1.75em;\n font-weight: var(--font-weight-regular);\n text-align: center;\n margin: 2.65em 0;\n padding: 0 20px;\n font-family: var(--h-font-family);\n"], ["\n color: var(--h-color);\n font-size: 1.75em;\n font-weight: var(--font-weight-regular);\n text-align: center;\n margin: 2.65em 0;\n padding: 0 20px;\n font-family: var(--h-font-family);\n"])));
|
|
45
|
-
exports.Typography = styled_components_1.default.p.attrs(function () { return ({
|
|
46
|
-
'data-component-name': 'ui/Typography/Typography',
|
|
47
|
-
}); })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-size: var(--font-size-base);\n font-family: var(--font-family-base);\n line-height: var(--line-height-base);\n color: var(--color-content);\n ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n ", "\n"], ["\n font-size: var(--font-size-base);\n font-family: var(--font-family-base);\n line-height: var(--line-height-base);\n color: var(--color-content);\n ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n ", "\n"])), styled_system_1.color, function (_a) {
|
|
48
|
-
var mt = _a.mt;
|
|
49
|
-
return mt || '1em';
|
|
50
|
-
}, function (_a) {
|
|
51
|
-
var mb = _a.mb;
|
|
52
|
-
return mb || '1em';
|
|
53
|
-
}, styled_system_1.typography);
|
|
54
|
-
exports.CompactTypography = (0, styled_components_1.default)(exports.Typography).attrs(function () { return ({
|
|
55
|
-
mt: '0em',
|
|
56
|
-
mb: '0em',
|
|
57
|
-
'data-component-name': 'ui/Typography/CompactTypography',
|
|
58
|
-
}); })(templateObject_7 || (templateObject_7 = __makeTemplateObject([""], [""])));
|
|
59
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|