@hlf-fe/pulmo-ui 1.5.1 → 1.5.3
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/buttons/button/button.d.ts +4 -4
- package/dist/components/buttons/button/button.js +11 -20
- package/dist/components/buttons/link-button/link-button.d.ts +25 -0
- package/dist/components/buttons/link-button/link-button.js +80 -0
- package/dist/components/buttons/link-button/link-button.stories.d.ts +6 -0
- package/dist/components/buttons/link-button/link-button.stories.js +17 -0
- package/dist/components/data-display/list/text-list/text-list.stories.d.ts +0 -0
- package/dist/components/data-display/list/text-list/text-list.stories.js +0 -0
- package/dist/components/icons/external-icon/external-icon.js +1 -1
- package/dist/components/icons/toggable-chevron/toggable-chevron.js +5 -5
- package/dist/components/icons/toggable-plus-minus-icon/toggable-plus-minus-icon.js +2 -2
- package/dist/components/inputs/dropdown/dropdown.js +5 -5
- package/dist/components/inputs/text-field/text-field.d.ts +1 -1
- package/dist/components/inputs/text-field/text-field.js +2 -2
- package/dist/components/layout/accordion/accordion.js +3 -3
- package/dist/components/layout/container/container.js +2 -2
- package/dist/components/layout/image-list/image-list.d.ts +6 -0
- package/dist/components/layout/image-list/image-list.js +55 -0
- package/dist/components/layout/image-list/image-list.stories.d.ts +6 -0
- package/dist/components/layout/image-list/image-list.stories.js +19 -0
- package/dist/components/modules/entry-list/entry-list.js +6 -6
- package/dist/components/modules/footer/footer.d.ts +1 -0
- package/dist/components/modules/footer/footer.js +4 -4
- package/dist/components/modules/logo-list/logo-list.d.ts +5 -0
- package/dist/components/modules/logo-list/logo-list.js +34 -0
- package/dist/components/modules/logo-list/logo-list.stories.d.ts +6 -0
- package/dist/components/modules/logo-list/logo-list.stories.js +18 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-cell/nav-cell.d.ts +6 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-cell/nav-cell.js +69 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-cell.d.ts +6 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-cell.js +69 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-section/nav-section.d.ts +8 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-section/nav-section.js +80 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-section.d.ts +8 -0
- package/dist/components/modules/navigation/navigation-desktop/nav-section.js +80 -0
- package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.d.ts +3 -0
- package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.js +136 -0
- package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.stories.d.ts +6 -0
- package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.stories.js +12 -0
- package/dist/components/modules/navigation/navigation-mobile/nav-panel.d.ts +11 -0
- package/dist/components/modules/navigation/navigation-mobile/nav-panel.js +158 -0
- package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.d.ts +3 -0
- package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.js +97 -0
- package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.stories.d.ts +6 -0
- package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.stories.js +12 -0
- package/dist/components/modules/navigation/shared/nav-item/nav-item.d.ts +18 -0
- package/dist/components/modules/navigation/shared/nav-item/nav-item.js +106 -0
- package/dist/components/modules/navigation/shared/types/types.d.ts +43 -0
- package/dist/components/modules/navigation/shared/types/types.js +1 -0
- package/dist/components/modules/navigation/types.d.ts +39 -0
- package/dist/components/modules/navigation/types.js +1 -0
- package/dist/components/navigation/dropdown-menu/dropdown-menu.d.ts +0 -0
- package/dist/components/navigation/dropdown-menu/dropdown-menu.js +0 -0
- package/dist/components/navigation/nav-cell/nav-cell.d.ts +1 -1
- package/dist/components/navigation/nav-cell/nav-cell.js +12 -10
- package/dist/components/navigation/nav-cell/navbar.d.ts +0 -0
- package/dist/components/navigation/nav-cell/navbar.js +0 -0
- package/dist/components/navigation/nav-section/dropdown-menu.d.ts +0 -0
- package/dist/components/navigation/nav-section/dropdown-menu.js +0 -0
- package/dist/components/navigation/nav-section/nav-section.d.ts +0 -0
- package/dist/components/navigation/nav-section/nav-section.js +0 -0
- package/dist/components/navigation/navbar/navbar.d.ts +0 -0
- package/dist/components/navigation/navbar/navbar.js +0 -0
- package/dist/components/navigation/pagination/pagination.js +3 -3
- package/dist/components/surfaces/paper/paper.js +4 -4
- package/dist/hoc/withDefaultTheme.d.ts +3 -1
- package/dist/hoc/withDefaultTheme.js +16 -6
- package/dist/index.d.ts +13 -6
- package/dist/index.js +8 -6
- package/dist/mocks/image-mocks.d.ts +7 -0
- package/dist/mocks/image-mocks.js +7 -0
- package/dist/mocks/navigation-mock.d.ts +5 -0
- package/dist/mocks/navigation-mock.js +153 -0
- package/dist/models/sanity.types.d.ts +9 -0
- package/dist/models/sanity.types.js +1 -0
- package/dist/models/web-page.url.d.ts +10 -0
- package/dist/models/web-page.url.js +1 -0
- package/package.json +1 -1
- package/dist/components/typography/heading/heading.d.ts +0 -4
- package/dist/components/typography/heading/heading.js +0 -47
- package/dist/components/typography/heading/heading.stories.d.ts +0 -7
- package/dist/components/typography/heading/heading.stories.js +0 -26
- package/dist/components/typography/heading/headings.d.ts +0 -4
- package/dist/components/typography/heading/headings.js +0 -47
- package/dist/components/typography/heading/headings.stories.d.ts +0 -7
- package/dist/components/typography/heading/headings.stories.js +0 -26
- package/dist/components/typography/portable-text/portable-text-default.d.ts +0 -39
- package/dist/components/typography/portable-text/portable-text-default.js +0 -23
- package/dist/styles/mixins/theme-mixins/theme-mixins.d.ts +0 -5
- package/dist/styles/mixins/theme-mixins/theme-mixins.js +0 -37
- /package/dist/components/{typography/portable-text/portable-text-component.d.ts → data-display/list/text-list/text-list.d.ts} +0 -0
- /package/dist/components/{typography/portable-text/portable-text-component.js → data-display/list/text-list/text-list.js} +0 -0
- /package/dist/components/layout/image/{image.stories.d.ts → Image.stories.d.ts} +0 -0
- /package/dist/components/layout/image/{image.stories.js → Image.stories.js} +0 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { mockImage_128_128, logoMock } from '../mocks/image-mocks';
|
|
2
|
+
const mockWebUrlItems = [
|
|
3
|
+
{
|
|
4
|
+
webUrlName: 'Sub Item #1',
|
|
5
|
+
internalLink: {
|
|
6
|
+
slug: {
|
|
7
|
+
current: '/sub-item-1/',
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
webUrlName: 'Sub Item #2',
|
|
13
|
+
internalLink: {
|
|
14
|
+
slug: {
|
|
15
|
+
current: '/sub-item-1/',
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
const mockCardBanner = {
|
|
21
|
+
title: 'Lorem Ipsum',
|
|
22
|
+
text: 'Lorem Ipsum Dorem',
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
image: mockImage_128_128,
|
|
25
|
+
};
|
|
26
|
+
export const mockNavItemsA = [
|
|
27
|
+
{
|
|
28
|
+
key: 'A0',
|
|
29
|
+
title: 'Nav Item #1',
|
|
30
|
+
slug: {
|
|
31
|
+
current: '/nav-item-1/',
|
|
32
|
+
},
|
|
33
|
+
items: null,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'A1',
|
|
37
|
+
title: 'Nav Item #2',
|
|
38
|
+
highlight: false,
|
|
39
|
+
slug: {
|
|
40
|
+
current: '/nav-item-2/',
|
|
41
|
+
},
|
|
42
|
+
items: [],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: 'A2',
|
|
46
|
+
title: 'Nav Item #3 (Expandable)',
|
|
47
|
+
highlight: false,
|
|
48
|
+
items: [...mockWebUrlItems],
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
export const mockNavItemsB = [
|
|
52
|
+
{
|
|
53
|
+
key: 'B0',
|
|
54
|
+
title: 'Nav Item #1',
|
|
55
|
+
highlight: false,
|
|
56
|
+
slug: {
|
|
57
|
+
current: '/nav-item-3/',
|
|
58
|
+
},
|
|
59
|
+
items: [],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
key: 'B1',
|
|
63
|
+
title: 'Nav Item #2',
|
|
64
|
+
highlight: false,
|
|
65
|
+
slug: {
|
|
66
|
+
current: '/nav-item-2/',
|
|
67
|
+
},
|
|
68
|
+
items: [],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: 'B2',
|
|
72
|
+
title: 'Nav Item #3 (Expandable)',
|
|
73
|
+
highlight: false,
|
|
74
|
+
items: [...mockWebUrlItems],
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
export const mockNavSections = [
|
|
78
|
+
{
|
|
79
|
+
key: '0',
|
|
80
|
+
title: '2 Columns',
|
|
81
|
+
backgroundColor: {
|
|
82
|
+
hex: '#D6EBE3',
|
|
83
|
+
},
|
|
84
|
+
column1Title: 'Column #1',
|
|
85
|
+
column1Items: [...mockNavItemsA],
|
|
86
|
+
column2Title: 'Column #2',
|
|
87
|
+
column2Items: [...mockNavItemsB],
|
|
88
|
+
linkBanners: [mockCardBanner, { ...mockCardBanner, title: 'Lorem Ipsum 2' }],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: '1',
|
|
92
|
+
title: '1 Column - Left',
|
|
93
|
+
backgroundColor: {
|
|
94
|
+
hex: '#D6EBE3',
|
|
95
|
+
},
|
|
96
|
+
column1Title: 'Column #1',
|
|
97
|
+
column1Items: [...mockNavItemsA],
|
|
98
|
+
linkBanners: [mockCardBanner, { ...mockCardBanner, title: 'Lorem Ipsum 2' }],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key: '2',
|
|
102
|
+
title: '1 Column - Right',
|
|
103
|
+
backgroundColor: {
|
|
104
|
+
hex: '#D6EBE3',
|
|
105
|
+
},
|
|
106
|
+
column2Title: 'Column #2',
|
|
107
|
+
column2Items: [...mockNavItemsB],
|
|
108
|
+
linkBanners: [mockCardBanner, { ...mockCardBanner, title: 'Lorem Ipsum 2' }],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: '3',
|
|
112
|
+
title: '1 Column - Right',
|
|
113
|
+
column2Title: 'Column #3',
|
|
114
|
+
column2Items: [...mockNavItemsB],
|
|
115
|
+
linkBanners: [mockCardBanner],
|
|
116
|
+
},
|
|
117
|
+
];
|
|
118
|
+
export const mockNavigation = {
|
|
119
|
+
topMenuItems: [
|
|
120
|
+
{
|
|
121
|
+
webUrlName: 'Top Menu #1',
|
|
122
|
+
internalLink: {
|
|
123
|
+
slug: {
|
|
124
|
+
current: '/sub-item-1/',
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
webUrlName: 'Top Menu #2',
|
|
130
|
+
internalLink: {
|
|
131
|
+
slug: {
|
|
132
|
+
current: '/sub-item-1/',
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
mainMenuItems: [...mockNavSections],
|
|
138
|
+
ctaButton: {
|
|
139
|
+
webUrlName: 'CTA Button',
|
|
140
|
+
internalLink: {
|
|
141
|
+
slug: {
|
|
142
|
+
current: '/sub-item-1/',
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
// @ts-ignore
|
|
147
|
+
logotype: logoMock,
|
|
148
|
+
localeText: {
|
|
149
|
+
ariaLabelHome: 'Lorem ipsum',
|
|
150
|
+
goBack: 'Go back'
|
|
151
|
+
},
|
|
152
|
+
isMenuVisible: true
|
|
153
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const H1: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
2
|
-
export declare const H2: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
3
|
-
export declare const H3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
4
|
-
export declare const H4: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { media } from "../../../styles/mixins";
|
|
3
|
-
import { rem } from "../../../styles/units";
|
|
4
|
-
export const H1 = styled.h1 `
|
|
5
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
6
|
-
color: ${({ theme }) => theme.blackLight};
|
|
7
|
-
font-size: ${rem(40)};
|
|
8
|
-
line-height: 1.15;
|
|
9
|
-
|
|
10
|
-
${media.L `
|
|
11
|
-
font-size: ${rem(64)};
|
|
12
|
-
line-height: 1.09;
|
|
13
|
-
`}
|
|
14
|
-
`;
|
|
15
|
-
export const H2 = styled.h2 `
|
|
16
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
17
|
-
color: ${({ theme }) => theme.blackLight};
|
|
18
|
-
font-size: ${rem(28)};
|
|
19
|
-
line-height: 1.14;
|
|
20
|
-
|
|
21
|
-
${media.L `
|
|
22
|
-
font-size: ${rem(32)};
|
|
23
|
-
line-height: 1.5;
|
|
24
|
-
`}
|
|
25
|
-
`;
|
|
26
|
-
export const H3 = styled.h3 `
|
|
27
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
28
|
-
color: ${({ theme }) => theme.blackLight};
|
|
29
|
-
font-size: ${rem(22)};
|
|
30
|
-
line-height: 1.45;
|
|
31
|
-
|
|
32
|
-
${media.L `
|
|
33
|
-
font-size: ${rem(28)};
|
|
34
|
-
line-height: 1.43;
|
|
35
|
-
`}
|
|
36
|
-
`;
|
|
37
|
-
export const H4 = styled.h4 `
|
|
38
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
39
|
-
color: ${({ theme }) => theme.blackLight};
|
|
40
|
-
font-size: ${rem(22)};
|
|
41
|
-
line-height: 1.45;
|
|
42
|
-
|
|
43
|
-
${media.L `
|
|
44
|
-
font-size: ${rem(28)};
|
|
45
|
-
line-height: 1.43;
|
|
46
|
-
`}
|
|
47
|
-
`;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
export declare const Heading1: StoryObj;
|
|
5
|
-
export declare const Heading2: StoryObj;
|
|
6
|
-
export declare const Heading3: StoryObj;
|
|
7
|
-
export declare const Heading4: StoryObj;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { H1, H2, H3, H4 } from "./heading";
|
|
3
|
-
import { Decorator } from "../../../components/decorator/decorator";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Typography/Headings",
|
|
6
|
-
decorators: [
|
|
7
|
-
(Story) => (_jsx(Decorator, { children: _jsx(Story, {}) })),
|
|
8
|
-
],
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
export const Heading1 = {
|
|
12
|
-
name: "H1",
|
|
13
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H1, { children: "This is an H1" }) })),
|
|
14
|
-
};
|
|
15
|
-
export const Heading2 = {
|
|
16
|
-
name: "H2",
|
|
17
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H2, { children: "This is an H2" }) })),
|
|
18
|
-
};
|
|
19
|
-
export const Heading3 = {
|
|
20
|
-
name: "H3",
|
|
21
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H3, { children: "This is an H2" }) })),
|
|
22
|
-
};
|
|
23
|
-
export const Heading4 = {
|
|
24
|
-
name: "H4",
|
|
25
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H4, { children: "This is an H2" }) })),
|
|
26
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const H1: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
2
|
-
export declare const H2: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
3
|
-
export declare const H3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
4
|
-
export declare const H4: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { media } from "../../../styles/mixins";
|
|
3
|
-
import { rem } from "../../../styles/units";
|
|
4
|
-
export const H1 = styled.h1 `
|
|
5
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
6
|
-
color: ${({ theme }) => theme.blackLight};
|
|
7
|
-
font-size: ${rem(40)};
|
|
8
|
-
line-height: 1.15;
|
|
9
|
-
|
|
10
|
-
${media.L `
|
|
11
|
-
font-size: ${rem(64)};
|
|
12
|
-
line-height: 1.09;
|
|
13
|
-
`}
|
|
14
|
-
`;
|
|
15
|
-
export const H2 = styled.h2 `
|
|
16
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
17
|
-
color: ${({ theme }) => theme.blackLight};
|
|
18
|
-
font-size: ${rem(28)};
|
|
19
|
-
line-height: 1.14;
|
|
20
|
-
|
|
21
|
-
${media.L `
|
|
22
|
-
font-size: ${rem(32)};
|
|
23
|
-
line-height: 1.5;
|
|
24
|
-
`}
|
|
25
|
-
`;
|
|
26
|
-
export const H3 = styled.h3 `
|
|
27
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
28
|
-
color: ${({ theme }) => theme.blackLight};
|
|
29
|
-
font-size: ${rem(22)};
|
|
30
|
-
line-height: 1.45;
|
|
31
|
-
|
|
32
|
-
${media.L `
|
|
33
|
-
font-size: ${rem(28)};
|
|
34
|
-
line-height: 1.43;
|
|
35
|
-
`}
|
|
36
|
-
`;
|
|
37
|
-
export const H4 = styled.h4 `
|
|
38
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
39
|
-
color: ${({ theme }) => theme.blackLight};
|
|
40
|
-
font-size: ${rem(22)};
|
|
41
|
-
line-height: 1.45;
|
|
42
|
-
|
|
43
|
-
${media.L `
|
|
44
|
-
font-size: ${rem(28)};
|
|
45
|
-
line-height: 1.43;
|
|
46
|
-
`}
|
|
47
|
-
`;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
export declare const Heading1: StoryObj;
|
|
5
|
-
export declare const Heading2: StoryObj;
|
|
6
|
-
export declare const Heading3: StoryObj;
|
|
7
|
-
export declare const Heading4: StoryObj;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { H1, H2, H3, H4 } from "./headings";
|
|
3
|
-
import { Decorator } from "../../../components/decorator/decorator";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Typography/Headings",
|
|
6
|
-
decorators: [
|
|
7
|
-
(Story) => (_jsx(Decorator, { children: _jsx(Story, {}) })),
|
|
8
|
-
],
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
export const Heading1 = {
|
|
12
|
-
name: "H1",
|
|
13
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H1, { children: "This is an H1" }) })),
|
|
14
|
-
};
|
|
15
|
-
export const Heading2 = {
|
|
16
|
-
name: "H2",
|
|
17
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H2, { children: "This is an H2" }) })),
|
|
18
|
-
};
|
|
19
|
-
export const Heading3 = {
|
|
20
|
-
name: "H3",
|
|
21
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H3, { children: "This is an H2" }) })),
|
|
22
|
-
};
|
|
23
|
-
export const Heading4 = {
|
|
24
|
-
name: "H4",
|
|
25
|
-
render: () => (_jsx(_Fragment, { children: _jsx(H4, { children: "This is an H2" }) })),
|
|
26
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const PortableTextDefault: {
|
|
2
|
-
marks: {
|
|
3
|
-
link: any;
|
|
4
|
-
strong: ({ children }: {
|
|
5
|
-
children: any;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
italic: ({ children }: {
|
|
8
|
-
children: any;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
};
|
|
11
|
-
list: {
|
|
12
|
-
bullet: ({ children }: {
|
|
13
|
-
children: any;
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
number: ({ children }: {
|
|
16
|
-
children: any;
|
|
17
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
};
|
|
19
|
-
block: {
|
|
20
|
-
h1: ({ children }: {
|
|
21
|
-
children: any;
|
|
22
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
h2: ({ children }: {
|
|
24
|
-
children: any;
|
|
25
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
h3: ({ children }: {
|
|
27
|
-
children: any;
|
|
28
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
h4: ({ children }: {
|
|
30
|
-
children: any;
|
|
31
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
normal: ({ children }: {
|
|
33
|
-
children: any;
|
|
34
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
leadParagraph: ({ children }: {
|
|
36
|
-
children: any;
|
|
37
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { BoldText, ItalicText, NormalText, LeadParagraph, } from "../../../components/typography/text/text";
|
|
3
|
-
import { UnorderedList, OrderedList } from "../../../components/typography/list/list";
|
|
4
|
-
import { H1, H2, H3, H4 } from "../../../components/typography/heading/headings";
|
|
5
|
-
export const PortableTextDefault = {
|
|
6
|
-
marks: {
|
|
7
|
-
link: LinkElement,
|
|
8
|
-
strong: ({ children }) => _jsx(BoldText, { children: children }),
|
|
9
|
-
italic: ({ children }) => _jsx(ItalicText, { children: children }),
|
|
10
|
-
},
|
|
11
|
-
list: {
|
|
12
|
-
bullet: ({ children }) => _jsx(UnorderedList, { children: children }),
|
|
13
|
-
number: ({ children }) => _jsx(OrderedList, { children: children }),
|
|
14
|
-
},
|
|
15
|
-
block: {
|
|
16
|
-
h1: ({ children }) => _jsx(H1, { children: children }),
|
|
17
|
-
h2: ({ children }) => _jsx(H2, { children: children }),
|
|
18
|
-
h3: ({ children }) => _jsx(H3, { children: children }),
|
|
19
|
-
h4: ({ children }) => _jsx(H4, { children: children }),
|
|
20
|
-
normal: ({ children }) => _jsx(NormalText, { children: children }),
|
|
21
|
-
leadParagraph: ({ children }) => _jsx(LeadParagraph, { children: children }),
|
|
22
|
-
},
|
|
23
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { THEME_COLORS_BY_HEX, THEME_COLORS_BY_NAME, SIZES } from "../../../models/theme";
|
|
2
|
-
export declare const themeColors: (color: THEME_COLORS_BY_HEX | THEME_COLORS_BY_NAME) => string;
|
|
3
|
-
export declare const themeSpacing: (size: SIZES) => string;
|
|
4
|
-
export declare const themeBorderRadius: (size: "sm" | "md" | "lg") => string;
|
|
5
|
-
export declare const themeElevation: (elevation: 0 | 1) => string;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { COLORS, THEME_SPACING } from "../../../styles/theme";
|
|
2
|
-
import { rem } from "../../../styles/units";
|
|
3
|
-
export const themeColors = (color) => {
|
|
4
|
-
const THEME_COLORS = {
|
|
5
|
-
green: COLORS.mint,
|
|
6
|
-
blue: COLORS.skyBlue,
|
|
7
|
-
purple: COLORS.lavender,
|
|
8
|
-
pink: COLORS.pink,
|
|
9
|
-
white: COLORS.white,
|
|
10
|
-
};
|
|
11
|
-
return THEME_COLORS[color] || color;
|
|
12
|
-
};
|
|
13
|
-
export const themeSpacing = (size) => {
|
|
14
|
-
const THEME_SPACING_SIZES = {
|
|
15
|
-
sm: THEME_SPACING.sm,
|
|
16
|
-
md: THEME_SPACING.md,
|
|
17
|
-
lg: THEME_SPACING.lg,
|
|
18
|
-
xl: THEME_SPACING.xl,
|
|
19
|
-
none: "0",
|
|
20
|
-
};
|
|
21
|
-
return THEME_SPACING_SIZES[size] || THEME_SPACING.md;
|
|
22
|
-
};
|
|
23
|
-
export const themeBorderRadius = (size) => {
|
|
24
|
-
const BORDER_RADIUS = {
|
|
25
|
-
sm: rem(6),
|
|
26
|
-
md: rem(8),
|
|
27
|
-
lg: rem(12),
|
|
28
|
-
};
|
|
29
|
-
return BORDER_RADIUS[size] || BORDER_RADIUS.sm;
|
|
30
|
-
};
|
|
31
|
-
export const themeElevation = (elevation) => {
|
|
32
|
-
const ELEVETION = {
|
|
33
|
-
0: "none",
|
|
34
|
-
1: `0 ${rem(4)} ${rem(16)} 0 rgba(0, 0, 0, 0.08)`,
|
|
35
|
-
};
|
|
36
|
-
return ELEVETION[elevation] || ELEVETION[0];
|
|
37
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|