@apolitical/component-library 5.2.1-jc.6 → 5.2.1

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 (61) hide show
  1. package/communities/members-list/index.d.ts +2 -0
  2. package/communities/members-list/members-list.constants.d.ts +1 -0
  3. package/communities/members-list/members-list.d.ts +6 -2
  4. package/discussion/components/likes/components/index.d.ts +1 -0
  5. package/discussion/components/likes/components/likes-modal/index.d.ts +1 -0
  6. package/discussion/components/likes/components/likes-modal/likes-modal.d.ts +17 -0
  7. package/discussion/components/likes/index.d.ts +1 -0
  8. package/discussion/components/likes/likes.d.ts +14 -3
  9. package/discussion/components/likes/likes.mock.d.ts +2 -0
  10. package/discussion/components/likes/mocks/index.d.ts +1 -0
  11. package/discussion/components/likes/mocks/likes-response.mock.d.ts +64 -0
  12. package/discussion/components/likes/tooltip.hook.d.ts +5 -0
  13. package/discussion/components/post/post.d.ts +9 -3
  14. package/discussion/components/post/post.mock.d.ts +64 -0
  15. package/discussion/discussion.helpers.d.ts +1 -1
  16. package/discussion/feeds/activities-feed/activities-feed.d.ts +2 -0
  17. package/discussion/feeds/activities-feed/cache/hooks/edit/edit.hook.d.ts +1 -1
  18. package/discussion/feeds/activities-feed/cache/hooks/like/like.hook.d.ts +1 -1
  19. package/discussion/feeds/activities-feed/cache/hooks/list/list.hook.d.ts +1 -1
  20. package/discussion/feeds/activities-feed/cache/hooks/remove/remove.hook.d.ts +1 -1
  21. package/discussion/feeds/activities-feed/cache/hooks/unlike/unlike.hook.d.ts +1 -1
  22. package/discussion/feeds/activities-feed/cache/index.d.ts +0 -1
  23. package/discussion/feeds/activities-feed/mocks/activities-feed.mock.d.ts +75 -1
  24. package/discussion/feeds/index.d.ts +1 -0
  25. package/discussion/feeds/likes-feed/cache/cache.interface.d.ts +11 -0
  26. package/discussion/feeds/likes-feed/cache/hooks/feed/feed.hook.d.ts +20 -0
  27. package/discussion/feeds/likes-feed/cache/hooks/feed/index.d.ts +1 -0
  28. package/discussion/feeds/likes-feed/cache/hooks/index.d.ts +2 -0
  29. package/discussion/feeds/likes-feed/cache/hooks/list/index.d.ts +1 -0
  30. package/discussion/feeds/likes-feed/cache/hooks/list/list.hook.d.ts +16 -0
  31. package/discussion/feeds/likes-feed/cache/index.d.ts +2 -0
  32. package/discussion/feeds/likes-feed/index.d.ts +3 -0
  33. package/discussion/feeds/likes-feed/likes-feed.d.ts +16 -0
  34. package/discussion/feeds/replies-feed/cache/hooks/edit/edit.hook.d.ts +1 -1
  35. package/discussion/feeds/replies-feed/cache/hooks/like/like.hook.d.ts +1 -1
  36. package/discussion/feeds/replies-feed/cache/hooks/list/list.hook.d.ts +1 -1
  37. package/discussion/feeds/replies-feed/cache/hooks/remove/remove.hook.d.ts +1 -1
  38. package/discussion/feeds/replies-feed/cache/hooks/unlike/unlike.hook.d.ts +1 -1
  39. package/discussion/feeds/replies-feed/cache/index.d.ts +0 -1
  40. package/discussion/feeds/replies-feed/nested-replies-feed/nested-replies-feed.d.ts +7 -1
  41. package/discussion/feeds/replies-feed/replies-feed.d.ts +14 -10
  42. package/discussion/sections/activity-section/activity-section.d.ts +2 -0
  43. package/discussion/shared/helpers/cache.helper.d.ts +25 -0
  44. package/discussion/shared/helpers/index.d.ts +1 -0
  45. package/general/link/link.d.ts +2 -2
  46. package/general/responsive-image/responsive-image.helpers.d.ts +10 -1
  47. package/helpers/intl.d.ts +1 -1
  48. package/index.js +61 -61
  49. package/index.mjs +8723 -8597
  50. package/package.json +1 -1
  51. package/sections/full-width-section/full-width-section.d.ts +0 -2
  52. package/style.css +1 -1
  53. package/styles/mixins/_styles.scss +0 -3
  54. package/styles/variables/colors/_colors.scss +0 -2
  55. package/styles/variables/colors/theme/_base.scss +1 -2
  56. package/styles/variables/colors/theme/_general.scss +1 -0
  57. package/styles/variables/colors/theme/_layout.scss +2 -2
  58. package/text/helper-text-box/helper-text-box.d.ts +2 -2
  59. package/text/helper-text-box/index.d.ts +1 -0
  60. package/user/index.d.ts +2 -0
  61. package/user/member/member.helpers.d.ts +1 -1
@@ -26,9 +26,6 @@
26
26
  margin-left: -(px-to-rem(math.div($width, 2)));
27
27
  border-radius: px-to-rem($border-radius);
28
28
 
29
- @if $color == 'medium' {
30
- background: get-map($theme, 'text_line_medium');
31
- }
32
29
  @if $color == 'dark' {
33
30
  background: get-map($theme, 'text_line_dark');
34
31
  }
@@ -38,10 +38,8 @@ $default-colors: (
38
38
  'p50': rgb(255 242 255 / 100%),
39
39
  'p75': rgb(250 225 245 / 100%),
40
40
  'p100': rgb(238 200 237 / 100%),
41
- 'p150': rgb(206 197 250 / 100%),
42
41
  'p300': rgb(203 130 197 / 100%),
43
42
  'p500': rgb(166 55 152 / 100%),
44
- 'p550': rgb(119 107 224 / 100%),
45
43
  'p600': rgb(136 90 189 / 100%),
46
44
  'p900': rgb(66 1 55 / 100%),
47
45
  'y50': rgb(255 248 232 / 100%),
@@ -6,7 +6,7 @@ $base: (
6
6
  default_focus: get-map($c, 'b500'),
7
7
  focus_light: get-map($c, 'b300'),
8
8
  background: get-map($c, 'white'),
9
- highlight_bg: get-map($c, 'b700'),
9
+ highlight_bg: get-map($c, 'g300'),
10
10
  title: get-map($c, 'n900'),
11
11
  title_secondary: get-map($c, 'p500'),
12
12
  subtitle: get-map($c, 'n800'),
@@ -14,7 +14,6 @@ $base: (
14
14
  text: get-map($c, 'n900'),
15
15
  text_error: get-map($c, 'error600'),
16
16
  text_line: get-map($c, 'g50'),
17
- text_line_medium: get-map($c, 'b300'),
18
17
  text_line_dark: get-map($c, 'b700'),
19
18
  link: get-map($c, 'b700'),
20
19
  link_hover: get-map($c, 'b800'),
@@ -16,6 +16,7 @@ $general: (
16
16
  time-to-complete: get-map($c, 'p500'),
17
17
  tooltip: get-map($c, 'white'),
18
18
  tooltip_bg: color.adjust(get-map($c, 'n900'), $alpha: -0.1),
19
+ tooltip_button: get-map($c, 'white'),
19
20
  progress_tracker_line_bg: get-map($c, 'n100'),
20
21
  progress_tracker_line_bg_active: get-map($c, 'b700'),
21
22
  progress_tracker_dot_bg: get-map($c, 'n100'),
@@ -6,13 +6,13 @@ $layout: (
6
6
  cookie-banner_bg: get-map($c, 'n50'),
7
7
  cookie-banner_shadow: rgb(107 91 82 / 40%),
8
8
  cookie-banner_title_border: get-map($c, 'n100'),
9
- contact-footer_bg: get-map($c, 'white'),
9
+ contact-footer_bg: get-map($c, 'b50'),
10
10
  contact-footer_header_underline: get-map($c, 'g300'),
11
11
  contact-footer_link_icon: get-map($c, 'n700'),
12
12
  contact-footer_link_hover: get-map($c, 'b500'),
13
13
  contact-footer_form_bg: get-map($c, 'white'),
14
14
  contact-footer_form_shadow: rgb(42 49 65 / 10%),
15
- download-section_bg: get-map($c, 'black'),
15
+ download-section_bg: get-map($c, 'g300'),
16
16
  footer: get-map($c, 'g300'),
17
17
  footer_bg: get-map($c, 'b800'),
18
18
  footer_before_bg:
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type IAriaLive } from '../../types';
3
3
  export type HelperTextBoxTypes = 'default' | 'warning' | 'error' | 'success';
4
- interface Props {
4
+ export interface IHelperTextBoxProps {
5
5
  /** The ID of the helper textbox */
6
6
  id?: string;
7
7
  /** The style of box being rendered */
@@ -17,5 +17,5 @@ interface Props {
17
17
  /** Optional aria live, for screen readers */
18
18
  'aria-live'?: IAriaLive;
19
19
  }
20
- declare const HelperTextBox: ({ type, className, heading, children, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ declare const HelperTextBox: ({ type, className, heading, children, ...props }: IHelperTextBoxProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export default HelperTextBox;
@@ -1 +1,2 @@
1
+ export type { IHelperTextBoxProps } from './helper-text-box';
1
2
  export { default as HelperTextBox } from './helper-text-box';
package/user/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './badge';
2
+ export * from './badges';
1
3
  export * from './contributors';
2
4
  export * from './directory';
3
5
  export * from './member';
@@ -14,7 +14,7 @@ export declare const getMember: (member: MemberProps) => {
14
14
  country: string;
15
15
  url: string;
16
16
  image: string | undefined;
17
- badges: import("../badge").IBadgesObject | undefined;
17
+ badges: import("..").IBadgesObject | undefined;
18
18
  };
19
19
  export declare const getUserDetails: ({ role, organisation, country, maximumCharacters, }: {
20
20
  role?: string | undefined;