@hlf-fe/pulmo-ui 1.5.2 → 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.
Files changed (75) hide show
  1. package/dist/components/buttons/link-button/link-button.d.ts +25 -0
  2. package/dist/components/buttons/link-button/link-button.js +80 -0
  3. package/dist/components/buttons/link-button/link-button.stories.d.ts +6 -0
  4. package/dist/components/buttons/link-button/link-button.stories.js +17 -0
  5. package/dist/components/data-display/list/text-list/text-list.stories.d.ts +0 -0
  6. package/dist/components/data-display/list/text-list/text-list.stories.js +0 -0
  7. package/dist/components/layout/image-list/image-list.d.ts +6 -0
  8. package/dist/components/layout/image-list/image-list.js +55 -0
  9. package/dist/components/layout/image-list/image-list.stories.d.ts +6 -0
  10. package/dist/components/layout/image-list/image-list.stories.js +19 -0
  11. package/dist/components/modules/logo-list/logo-list.d.ts +5 -0
  12. package/dist/components/modules/logo-list/logo-list.js +34 -0
  13. package/dist/components/modules/logo-list/logo-list.stories.d.ts +6 -0
  14. package/dist/components/modules/logo-list/logo-list.stories.js +18 -0
  15. package/dist/components/modules/navigation/navigation-desktop/nav-cell/nav-cell.d.ts +6 -0
  16. package/dist/components/modules/navigation/navigation-desktop/nav-cell/nav-cell.js +69 -0
  17. package/dist/components/modules/navigation/navigation-desktop/nav-cell.d.ts +6 -0
  18. package/dist/components/modules/navigation/navigation-desktop/nav-cell.js +69 -0
  19. package/dist/components/modules/navigation/navigation-desktop/nav-section/nav-section.d.ts +8 -0
  20. package/dist/components/modules/navigation/navigation-desktop/nav-section/nav-section.js +80 -0
  21. package/dist/components/modules/navigation/navigation-desktop/nav-section.d.ts +8 -0
  22. package/dist/components/modules/navigation/navigation-desktop/nav-section.js +80 -0
  23. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.d.ts +3 -0
  24. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.js +136 -0
  25. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.stories.d.ts +6 -0
  26. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.stories.js +12 -0
  27. package/dist/components/modules/navigation/navigation-mobile/nav-panel.d.ts +11 -0
  28. package/dist/components/modules/navigation/navigation-mobile/nav-panel.js +158 -0
  29. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.d.ts +3 -0
  30. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.js +97 -0
  31. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.stories.d.ts +6 -0
  32. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.stories.js +12 -0
  33. package/dist/components/modules/navigation/shared/nav-item/nav-item.d.ts +18 -0
  34. package/dist/components/modules/navigation/shared/nav-item/nav-item.js +106 -0
  35. package/dist/components/modules/navigation/shared/types/types.d.ts +43 -0
  36. package/dist/components/modules/navigation/shared/types/types.js +1 -0
  37. package/dist/components/modules/navigation/types.d.ts +39 -0
  38. package/dist/components/modules/navigation/types.js +1 -0
  39. package/dist/components/navigation/dropdown-menu/dropdown-menu.d.ts +0 -0
  40. package/dist/components/navigation/dropdown-menu/dropdown-menu.js +0 -0
  41. package/dist/components/navigation/nav-cell/navbar.d.ts +0 -0
  42. package/dist/components/navigation/nav-cell/navbar.js +0 -0
  43. package/dist/components/navigation/nav-section/dropdown-menu.d.ts +0 -0
  44. package/dist/components/navigation/nav-section/dropdown-menu.js +0 -0
  45. package/dist/components/navigation/nav-section/nav-section.d.ts +0 -0
  46. package/dist/components/navigation/nav-section/nav-section.js +0 -0
  47. package/dist/components/navigation/navbar/navbar.d.ts +0 -0
  48. package/dist/components/navigation/navbar/navbar.js +0 -0
  49. package/dist/index.d.ts +5 -5
  50. package/dist/index.js +6 -4
  51. package/dist/mocks/image-mocks.d.ts +7 -0
  52. package/dist/mocks/image-mocks.js +7 -0
  53. package/dist/mocks/navigation-mock.d.ts +5 -0
  54. package/dist/mocks/navigation-mock.js +153 -0
  55. package/dist/models/sanity.types.d.ts +9 -0
  56. package/dist/models/sanity.types.js +1 -0
  57. package/dist/models/web-page.url.d.ts +10 -0
  58. package/dist/models/web-page.url.js +1 -0
  59. package/package.json +1 -1
  60. package/dist/components/typography/heading/heading.d.ts +0 -4
  61. package/dist/components/typography/heading/heading.js +0 -47
  62. package/dist/components/typography/heading/heading.stories.d.ts +0 -7
  63. package/dist/components/typography/heading/heading.stories.js +0 -26
  64. package/dist/components/typography/heading/headings.d.ts +0 -4
  65. package/dist/components/typography/heading/headings.js +0 -47
  66. package/dist/components/typography/heading/headings.stories.d.ts +0 -7
  67. package/dist/components/typography/heading/headings.stories.js +0 -26
  68. package/dist/components/typography/portable-text/portable-text-default.d.ts +0 -39
  69. package/dist/components/typography/portable-text/portable-text-default.js +0 -23
  70. package/dist/styles/mixins/theme-mixins/theme-mixins.d.ts +0 -5
  71. package/dist/styles/mixins/theme-mixins/theme-mixins.js +0 -37
  72. /package/dist/components/{typography/portable-text/portable-text-component.d.ts → data-display/list/text-list/text-list.d.ts} +0 -0
  73. /package/dist/components/{typography/portable-text/portable-text-component.js → data-display/list/text-list/text-list.js} +0 -0
  74. /package/dist/components/layout/image/{image.stories.d.ts → Image.stories.d.ts} +0 -0
  75. /package/dist/components/layout/image/{image.stories.js → Image.stories.js} +0 -0
File without changes
File without changes
package/dist/index.d.ts CHANGED
@@ -13,14 +13,13 @@ import { type EntryListProps, type EntryListItemProps, type EntryListHeadingProp
13
13
  import { type DropdownProps } from "./components/inputs/dropdown/dropdown";
14
14
  import { type PaginationProps } from "./components/navigation/pagination/pagination";
15
15
  import { type AccordionItemProps } from "./components/layout/accordion/accordion";
16
- import { type NavigationCellProps } from "./components/navigation/nav-cell/nav-cell";
17
- import { type NavigationItemProps } from "./components/navigation/nav-item/nav-item";
18
16
  import { type CardBannerProps } from "./components/surfaces/cards/card-banner/card-banner";
19
17
  import { type PaperProps } from "./components/surfaces/paper/paper";
20
18
  import { type LinkProps } from "./components/typography/link/link";
21
19
  import { PortableTextComponentDefault } from "./components/typography/portable-text/portable-text-component-default";
22
20
  import { type FooterProps } from "./components/modules/footer/footer";
23
- export type { ButtonProps, LoadingButtonProps, TextButtonProps, EmailSignupFormProps, ImageProps, ContainerProps, AlertProps, EntryListHeadingProps, EntryListTextProps, PaginationProps, NavigationCellProps, NavigationItemProps, CardBannerProps, PaperProps, };
21
+ import { type LogoListProps } from "./components/modules/logo-list/logo-list";
22
+ export type { ButtonProps, LoadingButtonProps, TextButtonProps, EmailSignupFormProps, ImageProps, ContainerProps, AlertProps, EntryListHeadingProps, EntryListTextProps, PaginationProps, CardBannerProps, PaperProps, };
24
23
  export { CloseIcon } from "./components/icons/close-icon/close-icon";
25
24
  export { ExclamationMarkIcon } from "./components/icons/exclamation-mark-icon/exclamation-mark-icon";
26
25
  export { WarningIcon } from "./components/icons/warning-icon/warning-icon";
@@ -57,8 +56,6 @@ export declare const Accordion: import("react").FC<import("styled-components/dis
57
56
  disabled?: boolean;
58
57
  }>>;
59
58
  export declare const AccordionItem: import("react").FC<AccordionItemProps>;
60
- export declare const NavigationCell: import("react").FC<NavigationCellProps>;
61
- export declare const NavigationItem: import("react").FC<NavigationItemProps>;
62
59
  export declare const CardBanner: import("react").FC<CardBannerProps>;
63
60
  export declare const Paper: import("react").FC<PaperProps>;
64
61
  export declare const Link: import("react").FC<LinkProps>;
@@ -73,4 +70,7 @@ export declare const ItalicText: import("react").FC<import("styled-components").
73
70
  export declare const OrderedList: import("react").FC<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>>;
74
71
  export declare const UnorderedList: import("react").FC<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>>;
75
72
  export declare const Footer: import("react").FC<FooterProps>;
73
+ export declare const LogoList: import("react").FC<LogoListProps>;
74
+ export declare const NavigationDesktop: import("react").FC<import("./components/modules/navigation/shared/types/types").NavigationModel>;
75
+ export declare const NavigationMobile: import("react").FC<import("./components/modules/navigation/shared/types/types").NavigationModel>;
76
76
  export { PortableTextComponentDefault };
package/dist/index.js CHANGED
@@ -16,8 +16,6 @@ import { EntryList as EntryListComponent, EntryListItem as EntryListItemComponen
16
16
  import { Dropdown as DropdownComponent, } from "./components/inputs/dropdown/dropdown";
17
17
  import { Pagination as PaginationComponent, } from "./components/navigation/pagination/pagination";
18
18
  import { Accordion as AccordionComponent, AccordionItem as AccordionItemComponent, } from "./components/layout/accordion/accordion";
19
- import { NavigationCell as NavigationCellComponent, } from "./components/navigation/nav-cell/nav-cell";
20
- import { NavigationItem as NavigationItemComponent, } from "./components/navigation/nav-item/nav-item";
21
19
  import { CardBanner as CardBannerComponent, } from "./components/surfaces/cards/card-banner/card-banner";
22
20
  import { Paper as PaperComponent, } from "./components/surfaces/paper/paper";
23
21
  import { Link as LinkComponent, } from "./components/typography/link/link";
@@ -26,6 +24,9 @@ import { NormalText as NormalTextComponent, LeadParagraph as LeadParagraphCompon
26
24
  import { OrderedList as OrderedListComponent, UnorderedList as UnorderedListComponent, } from "./components/typography/list/list";
27
25
  import { PortableTextComponentDefault } from "./components/typography/portable-text/portable-text-component-default";
28
26
  import { Footer as FooterComponent, } from "./components/modules/footer/footer";
27
+ import { LogoList as LogoListComponent, } from "./components/modules/logo-list/logo-list";
28
+ import { NavigationDesktop as NavigationDesktopComponent, } from "./components/modules/navigation/navigation-desktop/navigation-desktop";
29
+ import { NavigationMobile as NavigationMobileComponent, } from "./components/modules/navigation/navigation-mobile/navigation-mobile";
29
30
  // Icons
30
31
  export { CloseIcon } from "./components/icons/close-icon/close-icon";
31
32
  export { ExclamationMarkIcon } from "./components/icons/exclamation-mark-icon/exclamation-mark-icon";
@@ -55,8 +56,6 @@ export const Dropdown = withDefaultTheme(DropdownComponent);
55
56
  export const Pagination = withDefaultTheme(PaginationComponent);
56
57
  export const Accordion = withDefaultTheme(AccordionComponent);
57
58
  export const AccordionItem = withDefaultTheme(AccordionItemComponent);
58
- export const NavigationCell = withDefaultTheme(NavigationCellComponent);
59
- export const NavigationItem = withDefaultTheme(NavigationItemComponent);
60
59
  export const CardBanner = withDefaultTheme(CardBannerComponent);
61
60
  export const Paper = withDefaultTheme(PaperComponent);
62
61
  export const Link = withDefaultTheme(LinkComponent);
@@ -71,4 +70,7 @@ export const ItalicText = withDefaultTheme(ItalicTextComponent);
71
70
  export const OrderedList = withDefaultTheme(OrderedListComponent);
72
71
  export const UnorderedList = withDefaultTheme(UnorderedListComponent);
73
72
  export const Footer = withDefaultTheme(FooterComponent);
73
+ export const LogoList = withDefaultTheme(LogoListComponent);
74
+ export const NavigationDesktop = withDefaultTheme(NavigationDesktopComponent);
75
+ export const NavigationMobile = withDefaultTheme(NavigationMobileComponent);
74
76
  export { PortableTextComponentDefault };
@@ -28,3 +28,10 @@ export declare const svgMock: {
28
28
  extension: string;
29
29
  };
30
30
  };
31
+ export declare const logoMock: {
32
+ asset: {
33
+ description: string;
34
+ url: string;
35
+ extension: string;
36
+ };
37
+ };
@@ -30,3 +30,10 @@ export const svgMock = {
30
30
  extension: 'svg'
31
31
  }
32
32
  };
33
+ export const logoMock = {
34
+ asset: {
35
+ description: 'lorem ipsum',
36
+ url: 'https://placehold.co/142x35?text=Logotype',
37
+ extension: 'svg'
38
+ }
39
+ };
@@ -0,0 +1,5 @@
1
+ import { NavigationItemModel, NavigationModel, NavigationSectionModel } from '../components/modules/navigation/shared/types/types';
2
+ export declare const mockNavItemsA: NavigationItemModel[];
3
+ export declare const mockNavItemsB: NavigationItemModel[];
4
+ export declare const mockNavSections: NavigationSectionModel[];
5
+ export declare const mockNavigation: NavigationModel;
@@ -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,9 @@
1
+ import { IGatsbyImageData } from 'gatsby-plugin-image';
2
+ export type SanityImage = {
3
+ asset: {
4
+ gatsbyImageData: IGatsbyImageData;
5
+ description: string;
6
+ url?: string;
7
+ extension?: string;
8
+ };
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export type WebPageUrl = {
2
+ externalUrl?: string;
3
+ openInNewWindow?: boolean;
4
+ internalLink?: {
5
+ slug?: {
6
+ current: string;
7
+ };
8
+ };
9
+ webUrlName?: string;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hlf-fe/pulmo-ui",
3
3
  "private": false,
4
- "version": "1.5.2",
4
+ "version": "1.5.3",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -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
- };