@apolitical/component-library 0.0.5 → 1.1.0-beta.2

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 (136) hide show
  1. package/accessibility/hidden-from-screen-readers/hidden-from-screen-readers.d.ts +19 -0
  2. package/accessibility/hidden-from-screen-readers/index.d.ts +1 -0
  3. package/accessibility/index.d.ts +2 -0
  4. package/accessibility/visually-hidden/index.d.ts +1 -0
  5. package/accessibility/visually-hidden/visually-hidden.d.ts +21 -0
  6. package/banners/banner-section/banner-section.d.ts +33 -0
  7. package/banners/banner-section/index.d.ts +1 -0
  8. package/banners/index.d.ts +2 -0
  9. package/banners/marketing-block/index.d.ts +1 -0
  10. package/banners/marketing-block/marketing-block.d.ts +17 -0
  11. package/constants/assets.d.ts +1 -0
  12. package/constants/index.d.ts +2 -0
  13. package/constants/number-of-users.d.ts +1 -0
  14. package/context/index.d.ts +1 -0
  15. package/context/user/index.d.ts +3 -0
  16. package/context/user/user.context.d.ts +14 -0
  17. package/context/user/user.provider.d.ts +8 -0
  18. package/form/components/email-helper-text-box/email-helper-text-box.d.ts +14 -0
  19. package/form/components/email-helper-text-box/index.d.ts +1 -0
  20. package/form/components/index.d.ts +3 -0
  21. package/form/components/password-rules/index.d.ts +1 -0
  22. package/form/components/password-rules/password-rules.d.ts +16 -0
  23. package/form/components/rating/index.d.ts +1 -0
  24. package/form/components/rating/rating.d.ts +31 -0
  25. package/form/index.d.ts +2 -0
  26. package/form/types/index.d.ts +1 -0
  27. package/form/types/search-form/index.d.ts +1 -0
  28. package/form/types/search-form/search-form.d.ts +21 -0
  29. package/general/button/button.d.ts +52 -0
  30. package/general/button/index.d.ts +2 -0
  31. package/general/index.d.ts +3 -0
  32. package/general/link/index.d.ts +1 -0
  33. package/general/link/link.d.ts +21 -0
  34. package/general/responsive-image/index.d.ts +2 -0
  35. package/general/responsive-image/responsive-image.helpers.d.ts +68 -0
  36. package/general/responsive-image/responsive-image.mock.d.ts +9 -0
  37. package/helpers/basic-reducer.d.ts +2 -0
  38. package/helpers/breakpoints.d.ts +5 -0
  39. package/helpers/index.d.ts +5 -0
  40. package/helpers/intl-wrapper.d.ts +6 -0
  41. package/helpers/pass-props-to-children.d.ts +3 -0
  42. package/hooks/index.d.ts +3 -0
  43. package/hooks/use-effect-after-mount.d.ts +2 -0
  44. package/hooks/use-screen-width.d.ts +2 -0
  45. package/hooks/use-scroll-listener.d.ts +15 -0
  46. package/index.d.ts +11 -1
  47. package/index.js +160 -1
  48. package/index.mjs +20620 -28
  49. package/layout/download-section/download-section.d.ts +21 -0
  50. package/layout/download-section/index.d.ts +1 -0
  51. package/layout/index.d.ts +3 -1
  52. package/layout/logos/index.d.ts +1 -0
  53. package/layout/logos/logos.d.ts +24 -0
  54. package/layout/logos/logos.mock.d.ts +3 -0
  55. package/layout/page-layout/components/cookie-banner/cookie-banner.d.ts +6 -0
  56. package/layout/page-layout/components/cookie-banner/index.d.ts +1 -0
  57. package/layout/page-layout/components/footer/footer.d.ts +6 -0
  58. package/layout/page-layout/components/footer/footer.data.d.ts +6 -0
  59. package/layout/page-layout/components/footer/index.d.ts +1 -0
  60. package/layout/page-layout/components/header/__mocks__/header.data.d.ts +83 -0
  61. package/layout/page-layout/components/header/components/header-link/header-link.d.ts +13 -0
  62. package/layout/page-layout/components/header/components/header-link/index.d.ts +1 -0
  63. package/layout/page-layout/components/header/components/index.d.ts +1 -0
  64. package/layout/page-layout/components/header/header.d.ts +6 -0
  65. package/layout/page-layout/components/header/header.data.d.ts +112 -0
  66. package/layout/page-layout/components/header/header.helpers.d.ts +39 -0
  67. package/layout/page-layout/components/header/header.mock.d.ts +29 -0
  68. package/layout/page-layout/components/header/index.d.ts +2 -0
  69. package/layout/page-layout/components/index.d.ts +3 -0
  70. package/layout/page-layout/index.d.ts +2 -0
  71. package/layout/page-layout/page-layout.d.ts +16 -0
  72. package/loaders/index.d.ts +4 -0
  73. package/loaders/loading-block/index.d.ts +1 -0
  74. package/loaders/loading-block/loading-block.d.ts +18 -0
  75. package/loaders/loading-placeholder/index.d.ts +1 -0
  76. package/loaders/loading-placeholder/loading-placeholder.d.ts +11 -0
  77. package/loaders/loading-state/index.d.ts +1 -0
  78. package/loaders/loading-state/loading-state.d.ts +5 -0
  79. package/loaders/progress-bar/index.d.ts +1 -0
  80. package/loaders/progress-bar/progress-bar.d.ts +13 -0
  81. package/modals/modal/index.d.ts +1 -0
  82. package/modals/modal/modal.d.ts +9 -0
  83. package/navigation/filters/filters.d.ts +28 -0
  84. package/navigation/filters/index.d.ts +1 -0
  85. package/navigation/index.d.ts +4 -0
  86. package/navigation/load-more/index.d.ts +1 -0
  87. package/navigation/load-more/load-more.d.ts +28 -0
  88. package/navigation/logo/index.d.ts +1 -0
  89. package/navigation/logo/logo.d.ts +12 -0
  90. package/navigation/tags/index.d.ts +1 -0
  91. package/navigation/tags/tags.d.ts +20 -0
  92. package/navigation/tags/tags.helpers.d.ts +34 -0
  93. package/package.json +1 -1
  94. package/style.css +1 -1
  95. package/styles/base/_fonts.scss +1 -1
  96. package/styles/base/_hr.scss +1 -0
  97. package/styles/base/_index.scss +2 -0
  98. package/styles/base/_overlays.scss +26 -0
  99. package/styles/base/_text.scss +5 -1
  100. package/styles/base/_titles.scss +133 -87
  101. package/styles/base/buttons/_buttons.scss +40 -24
  102. package/styles/base/buttons/_sizes.scss +12 -0
  103. package/styles/base/form/_fields.scss +60 -0
  104. package/styles/base/form/_index.scss +2 -0
  105. package/styles/base/form/_search-button.scss +32 -0
  106. package/styles/functions/_size-conversions.scss +3 -1
  107. package/styles/mixins/_backgrounds.scss +1 -5
  108. package/styles/mixins/_breakpoints.scss +4 -1
  109. package/styles/mixins/_browsers.scss +3 -0
  110. package/styles/mixins/_index.scss +3 -0
  111. package/styles/mixins/_selectors.scss +5 -0
  112. package/styles/mixins/_styles.scss +31 -0
  113. package/styles/variables/colors/_colors.scss +5 -0
  114. package/styles/variables/colors/_theme.scss +159 -1
  115. package/styles/variables/sizes/_common.scss +2 -1
  116. package/text/collapsible-section/collapsible-section.d.ts +13 -0
  117. package/text/collapsible-section/index.d.ts +1 -0
  118. package/text/empty-state-box/empty-state-box.d.ts +21 -0
  119. package/text/empty-state-box/index.d.ts +1 -0
  120. package/text/helper-text-box/helper-text-box.d.ts +14 -0
  121. package/text/helper-text-box/index.d.ts +1 -0
  122. package/text/hide-show-text-box/hide-show-text-box.d.ts +16 -0
  123. package/text/hide-show-text-box/hide-show-text-box.mock.d.ts +4 -0
  124. package/text/hide-show-text-box/index.d.ts +1 -0
  125. package/text/highlighted-text-box/highlighted-text-box.d.ts +13 -0
  126. package/text/highlighted-text-box/index.d.ts +1 -0
  127. package/text/index.d.ts +6 -0
  128. package/text/pill/index.d.ts +1 -0
  129. package/text/pill/pill.d.ts +9 -0
  130. package/user/index.d.ts +1 -0
  131. package/user/profile-picture/index.d.ts +1 -0
  132. package/user/profile-picture/profile-picture.d.ts +12 -0
  133. package/user/profile-picture/profile-picture.helpers.d.ts +3 -0
  134. package/demo/demo.d.ts +0 -4
  135. package/demo/index.d.ts +0 -1
  136. package/layout/layout.d.ts +0 -6
@@ -0,0 +1,21 @@
1
+ interface ButtonProps {
2
+ /** The text to display on the button */
3
+ text: string;
4
+ /** The link to the download */
5
+ link: string;
6
+ /** The GTM event context */
7
+ eventContext?: string;
8
+ }
9
+ interface Props {
10
+ /** Content to be rendered */
11
+ text: string | {
12
+ element: string;
13
+ text: string;
14
+ };
15
+ /** Props for `Button` component; multiple buttons can be passed in */
16
+ buttons: ButtonProps[];
17
+ /** Additional classes */
18
+ className?: string;
19
+ }
20
+ declare const DownloadSection: ({ text, buttons, className }: Props) => import("react/jsx-runtime").JSX.Element;
21
+ export default DownloadSection;
@@ -0,0 +1 @@
1
+ export { default as DownloadSection } from './download-section';
package/layout/index.d.ts CHANGED
@@ -1 +1,3 @@
1
- export { default as Layout } from './layout';
1
+ export * from './download-section';
2
+ export * from './logos';
3
+ export * from './page-layout';
@@ -0,0 +1 @@
1
+ export { default as Logos } from './logos';
@@ -0,0 +1,24 @@
1
+ export interface LogosType {
2
+ logo: {
3
+ url: string;
4
+ type?: string;
5
+ width?: number;
6
+ height?: number;
7
+ };
8
+ nameOfBusiness: string;
9
+ link?: false | string;
10
+ description?: false | string;
11
+ }
12
+ interface Props {
13
+ /** The title to show above the logos */
14
+ title?: false | string | {
15
+ element: string;
16
+ text: string;
17
+ };
18
+ /** The logos to show */
19
+ logos?: Array<LogosType>;
20
+ /** Additional classes */
21
+ className?: string;
22
+ }
23
+ declare const Logos: ({ title: titleProps, logos, className }: Props) => import("react/jsx-runtime").JSX.Element | null;
24
+ export default Logos;
@@ -0,0 +1,3 @@
1
+ import type { LogosType } from './logos';
2
+ declare const data: Array<LogosType>;
3
+ export default data;
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ /** The language to use */
3
+ locale?: string;
4
+ }
5
+ declare const CookieBannerWrapper: ({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default CookieBannerWrapper;
@@ -0,0 +1 @@
1
+ export { default as CookieBanner } from './cookie-banner';
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ /** The language to use */
3
+ locale?: string;
4
+ }
5
+ declare const FooterWrapper: ({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default FooterWrapper;
@@ -0,0 +1,6 @@
1
+ declare const data: {
2
+ [key: string]: {
3
+ [key: string]: string | string[] | object;
4
+ };
5
+ };
6
+ export default data;
@@ -0,0 +1 @@
1
+ export { default as Footer } from './footer';
@@ -0,0 +1,83 @@
1
+ declare namespace _default {
2
+ export namespace link {
3
+ let href: string;
4
+ }
5
+ export namespace buttons {
6
+ namespace buttonWithProps {
7
+ let href_1: string;
8
+ export { href_1 as href };
9
+ export namespace props {
10
+ let variant: string;
11
+ }
12
+ }
13
+ namespace buttonWithoutProps {
14
+ let href_2: string;
15
+ export { href_2 as href };
16
+ }
17
+ }
18
+ export namespace doTrack {
19
+ let href_3: string;
20
+ export { href_3 as href };
21
+ let doTrack_1: boolean;
22
+ export { doTrack_1 as doTrack };
23
+ }
24
+ export namespace doTrackWithGTMType {
25
+ let href_4: string;
26
+ export { href_4 as href };
27
+ let doTrack_2: boolean;
28
+ export { doTrack_2 as doTrack };
29
+ export let gtmType: string;
30
+ }
31
+ export namespace dontTrack {
32
+ let href_5: string;
33
+ export { href_5 as href };
34
+ let doTrack_3: boolean;
35
+ export { doTrack_3 as doTrack };
36
+ }
37
+ export namespace defaultTrack {
38
+ let href_6: string;
39
+ export { href_6 as href };
40
+ }
41
+ export namespace parent {
42
+ let order: string[];
43
+ namespace child {
44
+ let order_1: string[];
45
+ export { order_1 as order };
46
+ export namespace grandchild {
47
+ let href_7: string;
48
+ export { href_7 as href };
49
+ }
50
+ }
51
+ }
52
+ export namespace badParent {
53
+ let order_2: string[];
54
+ export { order_2 as order };
55
+ }
56
+ export namespace submenu {
57
+ let order_3: string[];
58
+ export { order_3 as order };
59
+ export namespace child_1 {
60
+ let href_8: string;
61
+ export { href_8 as href };
62
+ }
63
+ export { child_1 as child };
64
+ }
65
+ export namespace variant_1 {
66
+ let href_9: string;
67
+ export { href_9 as href };
68
+ export let hasVariantText: boolean;
69
+ }
70
+ export { variant_1 as variant };
71
+ export namespace onlyShowLoggedIn {
72
+ let href_10: string;
73
+ export { href_10 as href };
74
+ export let onlyShow: string;
75
+ }
76
+ export namespace onlyShowLoggedOut {
77
+ let href_11: string;
78
+ export { href_11 as href };
79
+ let onlyShow_1: string;
80
+ export { onlyShow_1 as onlyShow };
81
+ }
82
+ }
83
+ export default _default;
@@ -0,0 +1,13 @@
1
+ interface Props {
2
+ id: string;
3
+ isLoggedIn?: boolean;
4
+ isDesktopVersion?: boolean;
5
+ menus?: {
6
+ navigation?: boolean;
7
+ account?: boolean;
8
+ };
9
+ callback?: (id: string, value: boolean) => void;
10
+ doTrack?: boolean | null;
11
+ }
12
+ declare const HeaderLink: ({ id, isLoggedIn, isDesktopVersion, menus, callback, doTrack: doTrackProp, }: Props) => import("react/jsx-runtime").JSX.Element | null;
13
+ export default HeaderLink;
@@ -0,0 +1 @@
1
+ export { default as HeaderLink } from './header-link';
@@ -0,0 +1 @@
1
+ export * from './header-link';
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ /** The language to use */
3
+ locale?: string;
4
+ }
5
+ declare const HeaderWrapper: ({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default HeaderWrapper;
@@ -0,0 +1,112 @@
1
+ declare namespace _default {
2
+ let order: string[];
3
+ namespace home {
4
+ let href: string;
5
+ let hasVariantText: boolean;
6
+ let gtmType: string;
7
+ }
8
+ namespace topics {
9
+ let order_1: string[];
10
+ export { order_1 as order };
11
+ export let menuId: string;
12
+ export let explore: {
13
+ order: string[];
14
+ events: {
15
+ href: string;
16
+ className: string;
17
+ };
18
+ courses: {
19
+ href: string;
20
+ gtmType: string;
21
+ className: string;
22
+ };
23
+ 'q-and-a': {
24
+ href: string;
25
+ className: string;
26
+ };
27
+ articles: {
28
+ href: string;
29
+ gtmType: string;
30
+ className: string;
31
+ };
32
+ };
33
+ let topics_1: {
34
+ order: string[];
35
+ className: string;
36
+ climate: {
37
+ href: string;
38
+ };
39
+ 'cities-and-local-government': {
40
+ href: string;
41
+ };
42
+ 'digital-and-data': {
43
+ href: string;
44
+ };
45
+ education: {
46
+ href: string;
47
+ };
48
+ 'equity-justice-and-inclusion': {
49
+ href: string;
50
+ };
51
+ 'health-and-social-care': {
52
+ href: string;
53
+ };
54
+ innovation: {
55
+ href: string;
56
+ };
57
+ 'leadership-and-skills': {
58
+ href: string;
59
+ };
60
+ 'life-in-government': {
61
+ href: string;
62
+ };
63
+ policymaking: {
64
+ href: string;
65
+ };
66
+ 'transport-and-infrastructure': {
67
+ href: string;
68
+ };
69
+ 'work-and-the-economy': {
70
+ href: string;
71
+ };
72
+ };
73
+ export { topics_1 as topics };
74
+ }
75
+ namespace partners {
76
+ let href_1: string;
77
+ export { href_1 as href };
78
+ export let onlyShow: string;
79
+ }
80
+ let account: {
81
+ order: string[];
82
+ className: string;
83
+ onlyShow: string;
84
+ doTrack: boolean;
85
+ profile: {
86
+ href: string;
87
+ };
88
+ settings: {
89
+ href: string;
90
+ };
91
+ 'log-out': {
92
+ href: string;
93
+ className: string;
94
+ };
95
+ };
96
+ namespace buttons {
97
+ let order_2: string[];
98
+ export { order_2 as order };
99
+ export namespace login {
100
+ let href_2: string;
101
+ export { href_2 as href };
102
+ }
103
+ export namespace signup {
104
+ let href_3: string;
105
+ export { href_3 as href };
106
+ export namespace props {
107
+ let variant: string;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ export default _default;
@@ -0,0 +1,39 @@
1
+ export default helpers;
2
+ declare namespace helpers {
3
+ let timeouts: {};
4
+ let handlerCalled: {};
5
+ function getIsDesktopVersion(isLoggedIn: any, screenWidth: any): {};
6
+ function shouldChangeHeaderIsVisible(value: any, menus: any, dispatch: any): void;
7
+ function handleMenus({ id, value, menus, dispatch }: {
8
+ id: any;
9
+ value: any;
10
+ menus: any;
11
+ dispatch: any;
12
+ }): void;
13
+ function findFirstChild(ref: any, key: any, value?: boolean): any;
14
+ function autoFocus({ menu, navigationRef, isDesktopVersion, focusElements, dispatch }: {
15
+ menu: any;
16
+ navigationRef: any;
17
+ isDesktopVersion: any;
18
+ focusElements: any;
19
+ dispatch: any;
20
+ }): void;
21
+ namespace events {
22
+ function onClick(e: any, { id, callback, isOpen }: {
23
+ id: any;
24
+ callback: any;
25
+ isOpen: any;
26
+ }): void;
27
+ function onFocus({ id }: {
28
+ id: any;
29
+ }): void;
30
+ function onMouseEnter({ id, callback }: {
31
+ id: any;
32
+ callback: any;
33
+ }): void;
34
+ function onBlur({ id, callback }: {
35
+ id: any;
36
+ callback: any;
37
+ }): void;
38
+ }
39
+ }
@@ -0,0 +1,29 @@
1
+ declare const _default: {
2
+ user: {
3
+ id: string;
4
+ email: string;
5
+ name: string;
6
+ };
7
+ headerLinks: {
8
+ en: {
9
+ header_link: string;
10
+ header_buttons_buttonWithProps: string;
11
+ header_buttons_buttonWithoutProps: string;
12
+ header_doTrack: string;
13
+ header_doTrackWithGTMType: string;
14
+ header_dontTrack: string;
15
+ header_defaultTrack: string;
16
+ header_parent: string;
17
+ header_parent_child: string;
18
+ header_parent_child_grandchild: string;
19
+ header_badParent: string;
20
+ header_submenu: string;
21
+ header_submenu_child: string;
22
+ header_variant_loggedIn: string;
23
+ header_variant_loggedOut: string;
24
+ header_onlyShowLoggedIn: string;
25
+ header_onlyShowLoggedOut: string;
26
+ };
27
+ };
28
+ };
29
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Header } from './header';
2
+ export { default as headerData } from './header.data';
@@ -0,0 +1,3 @@
1
+ export * from './cookie-banner';
2
+ export * from './footer';
3
+ export * from './header';
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export { default as PageLayout } from './page-layout';
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ /** Content to show on the page */
4
+ children: React.ReactNode;
5
+ /** Handle errors */
6
+ reportError: () => void;
7
+ background?: 'default' | 'gradient';
8
+ /** Optionally hide the footer, for pages where we need to focus the user's attention, like onboarding */
9
+ showFooter?: boolean;
10
+ /** Additional classes */
11
+ className?: string;
12
+ /** The language to use */
13
+ locale?: string;
14
+ }
15
+ declare const PageLayout: ({ children, reportError, showFooter, background, className, locale }: Props) => import("react/jsx-runtime").JSX.Element;
16
+ export default PageLayout;
@@ -0,0 +1,4 @@
1
+ export * from './loading-block';
2
+ export * from './loading-placeholder';
3
+ export * from './loading-state';
4
+ export * from './progress-bar';
@@ -0,0 +1 @@
1
+ export { default as LoadingBlock } from './loading-block';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ /** The amount of progress, shown as a percent */
4
+ progress?: number;
5
+ /** The text and icons to show at different progress points */
6
+ steps?: false | {
7
+ [key: string]: {
8
+ text: string;
9
+ icon?: string;
10
+ };
11
+ };
12
+ /** Additional classes */
13
+ className?: string;
14
+ /** The language for the text */
15
+ locale?: string;
16
+ }
17
+ declare const _default: React.MemoExoticComponent<({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
18
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as LoadingPlaceholder } from './loading-placeholder';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ /** The element that will render around the content. */
4
+ element?: 'span' | 'div' | 'p' | 'li';
5
+ /** Additional styling, to add width and height */
6
+ style?: React.CSSProperties;
7
+ /** Additional classes */
8
+ className?: string;
9
+ }
10
+ declare const LoadingPlaceholder: ({ element, className, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export default LoadingPlaceholder;
@@ -0,0 +1 @@
1
+ export { default as LoadingState } from './loading-state';
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ layout?: 'overview-page';
3
+ }
4
+ declare const LoadingState: ({ layout }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export default LoadingState;
@@ -0,0 +1 @@
1
+ export { default as ProgressBar } from './progress-bar';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ /** The amount of progress, shown as a percent */
4
+ progress?: number;
5
+ /** Text to display for screen readers */
6
+ text?: string | boolean;
7
+ /** Additional classes */
8
+ className?: string;
9
+ /** The language for the text */
10
+ locale?: string;
11
+ }
12
+ declare const _default: React.MemoExoticComponent<({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
13
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Modal } from './modal';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ /** The content to display */
4
+ children: React.ReactNode | string;
5
+ /** Additional classes */
6
+ className?: string;
7
+ }
8
+ declare const Modal: ({ children, className }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export default Modal;
@@ -0,0 +1,28 @@
1
+ export interface FilterType {
2
+ id: string;
3
+ text: string;
4
+ disabled?: boolean;
5
+ callback?: () => void;
6
+ }
7
+ interface Props {
8
+ /** The filter details */
9
+ options: FilterType[];
10
+ /** A filter for 'all' */
11
+ allOption?: boolean | {
12
+ text?: string;
13
+ callback?: () => void;
14
+ };
15
+ /** Whether the filter allows multiple selections */
16
+ allowMultiple?: boolean;
17
+ /** The callback function for when the filter changes */
18
+ onChange?: (options: {
19
+ current: string[];
20
+ previous: string[];
21
+ }) => void;
22
+ /** Additional classes */
23
+ className?: string;
24
+ /** The language to use */
25
+ locale?: string;
26
+ }
27
+ declare const FiltersWrapper: ({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
28
+ export default FiltersWrapper;
@@ -0,0 +1 @@
1
+ export { default as Filters } from './filters';
@@ -0,0 +1,4 @@
1
+ export * from './filters';
2
+ export * from './load-more';
3
+ export * from './logo';
4
+ export * from './tags';
@@ -0,0 +1 @@
1
+ export { default as LoadMore } from './load-more';
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { ButtonIconType } from '../../general';
3
+ interface Props {
4
+ /** The current page we're viewing */
5
+ page?: number;
6
+ /** The number of elements we're looking to display */
7
+ length?: number;
8
+ /** The total number of elements that will be displayed on screen */
9
+ limit?: number;
10
+ /** The function that will be invoked when the button is clicked */
11
+ loadNextPage: ((e: React.MouseEvent<HTMLElement>) => void);
12
+ /** An icon for the button - uses `Button`'s icon format */
13
+ icon: ButtonIconType;
14
+ /** Text displayed in the component */
15
+ messages: {
16
+ button: string;
17
+ endOfFeed: string;
18
+ error: string;
19
+ };
20
+ /** Additional classes */
21
+ className?: string;
22
+ /** GTM event context */
23
+ gtmContext?: string;
24
+ /** The language to use */
25
+ locale?: string;
26
+ }
27
+ declare const LoadMoreWrapper: ({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
28
+ export default LoadMoreWrapper;
@@ -0,0 +1 @@
1
+ export { default as Logo } from './logo';
@@ -0,0 +1,12 @@
1
+ interface Props {
2
+ /** Style variant of the logo */
3
+ variant?: 'default' | 'inverted';
4
+ /** Version of the logo, defaulting to showing whatever fits into the screen size best */
5
+ version?: 'default' | 'small' | 'full';
6
+ /** Additional classes */
7
+ className?: string;
8
+ /** The language to use */
9
+ locale?: string;
10
+ }
11
+ declare const LogoWrapper: ({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export default LogoWrapper;
@@ -0,0 +1 @@
1
+ export { default as Tags } from './tags';
@@ -0,0 +1,20 @@
1
+ interface Props {
2
+ /** The tags for the content */
3
+ tags?: string[];
4
+ /** The colour of the tags */
5
+ color?: 'default' | 'light';
6
+ /** Force the tags to be on one line */
7
+ forceOneLine?: boolean;
8
+ /** Whether the tags can have links */
9
+ canHaveLinks?: boolean;
10
+ /** Additional classes */
11
+ className?: string;
12
+ /** The GTM event type */
13
+ gtmType?: string;
14
+ /** The GTM event context */
15
+ gtmContext?: string;
16
+ /** The language to use */
17
+ locale?: string;
18
+ }
19
+ declare const TagsWrapper: ({ locale, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ export default TagsWrapper;
@@ -0,0 +1,34 @@
1
+ export namespace intlPath {
2
+ let _default: string;
3
+ export { _default as default };
4
+ export let headerTopics: string;
5
+ }
6
+ export const tags: {
7
+ topic: {
8
+ Climate: string;
9
+ CitiesAndLocalGovernment: string;
10
+ DigitalAndData: string;
11
+ Education: string;
12
+ EquityJusticeAndInclusion: string;
13
+ HealthAndSocialCare: string;
14
+ Innovation: string;
15
+ LeadershipAndSkills: string;
16
+ LifeInGovernment: string;
17
+ Policymaking: string;
18
+ TransportAndInfrastructure: string;
19
+ WorkAndTheEconomy: string;
20
+ };
21
+ 'from the community': string;
22
+ };
23
+ declare namespace _default {
24
+ function getTagDetails(tag: any): {
25
+ id: any;
26
+ href: any;
27
+ text: string;
28
+ } | {
29
+ id: any;
30
+ text: string;
31
+ href?: undefined;
32
+ } | null;
33
+ }
34
+ export default _default;