@hlf-fe/pulmo-ui 1.5.2 → 1.5.4

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 (42) hide show
  1. package/dist/components/buttons/button/button.js +0 -1
  2. package/dist/components/icons/toggable-chevron/toggable-chevron.d.ts +6 -2
  3. package/dist/components/icons/toggable-chevron/toggable-chevron.js +2 -2
  4. package/dist/components/layout/accordion/accordion.d.ts +2 -1
  5. package/dist/components/layout/accordion/accordion.js +19 -3
  6. package/dist/components/layout/accordion/accordion.stories.d.ts +1 -0
  7. package/dist/components/layout/accordion/accordion.stories.js +3 -0
  8. package/dist/components/layout/image/image.d.ts +1 -1
  9. package/dist/components/layout/image/image.js +3 -3
  10. package/dist/components/layout/image/image.stories.js +1 -1
  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-section/nav-section.d.ts +8 -0
  18. package/dist/components/modules/navigation/navigation-desktop/nav-section/nav-section.js +80 -0
  19. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.d.ts +3 -0
  20. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.js +139 -0
  21. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.stories.d.ts +6 -0
  22. package/dist/components/modules/navigation/navigation-desktop/navigation-desktop.stories.js +12 -0
  23. package/dist/components/modules/navigation/navigation-mobile/nav-panel.d.ts +11 -0
  24. package/dist/components/modules/navigation/navigation-mobile/nav-panel.js +158 -0
  25. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.d.ts +3 -0
  26. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.js +95 -0
  27. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.stories.d.ts +6 -0
  28. package/dist/components/modules/navigation/navigation-mobile/navigation-mobile.stories.js +12 -0
  29. package/dist/components/modules/navigation/shared/nav-item/nav-item.d.ts +18 -0
  30. package/dist/components/modules/navigation/shared/nav-item/nav-item.js +106 -0
  31. package/dist/components/modules/navigation/shared/types/types.d.ts +43 -0
  32. package/dist/components/modules/navigation/shared/types/types.js +1 -0
  33. package/dist/components/typography/headings/headings.js +4 -0
  34. package/dist/components/typography/headings/headings.stories.js +2 -2
  35. package/dist/index.d.ts +5 -5
  36. package/dist/index.js +6 -4
  37. package/dist/mocks/image-mocks.d.ts +7 -0
  38. package/dist/mocks/image-mocks.js +7 -0
  39. package/dist/mocks/navigation-mock.d.ts +5 -0
  40. package/dist/mocks/navigation-mock.js +153 -0
  41. package/dist/models/sanity-types.d.ts +1 -1
  42. package/package.json +1 -1
@@ -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
+ };
@@ -2,7 +2,7 @@ import { IGatsbyImageData } from 'gatsby-plugin-image';
2
2
  export type SanityImage = {
3
3
  asset: {
4
4
  gatsbyImageData: IGatsbyImageData;
5
- description: string;
5
+ altText?: string;
6
6
  url?: string;
7
7
  extension?: string;
8
8
  };
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.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",