@apolitical/component-library 4.7.15 → 4.7.16-beta.0

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.
@@ -1,2 +1,2 @@
1
1
  @import 'fonts', 'accessibility', 'blockquotes', 'buttons', 'form', 'hr', 'layout',
2
- 'links', 'lists', 'overlays', 'table', 'text', 'titles';
2
+ 'links', 'lists', 'mentions', 'overlays', 'table', 'text', 'titles';
@@ -0,0 +1,21 @@
1
+ @import './../mixins', './../variables';
2
+
3
+ $deleted-user: (
4
+ 'padding-vertical': 4,
5
+ 'padding-horizontal': 8,
6
+ 'border-radius': 3,
7
+ );
8
+
9
+ @layer base {
10
+ .mention {
11
+ &.deleted-user {
12
+ background: get-map($theme, 'mention_deleted-user_bg');
13
+ padding: px-to-rem(get-map($deleted-user, 'padding-vertical'))
14
+ px-to-rem(get-map($deleted-user, 'padding-horizontal'));
15
+ color: get-map($theme, 'mention_deleted-user');
16
+ font-weight: 500;
17
+ font-style: italic;
18
+ border-radius: px-to-rem(get-map($deleted-user, 'border-radius'));
19
+ }
20
+ }
21
+ }
@@ -95,4 +95,6 @@ $base: (
95
95
  overlay: rgb(21 25 33 / 25%),
96
96
  list_checkmarks_bg:
97
97
  linear-gradient(140deg, rgba(107 62 205 / 100%), rgba(0 179 191 / 100%)),
98
+ mention_deleted-user: get-map($c, 'n600'),
99
+ mention_deleted-user_bg: get-map($c, 'n50'),
98
100
  );
@@ -20,8 +20,10 @@ export type MemberDetailsProps = {
20
20
  image?: {
21
21
  thumbnail?: string;
22
22
  };
23
+ /** An error, shown if the user doesn't exist */
24
+ error?: string;
23
25
  };
24
- export type MemberProps = 'apolitical' | 'community' | MemberDetailsProps;
26
+ export type MemberProps = 'apolitical' | 'community' | 'deleted' | MemberDetailsProps;
25
27
  interface Props {
26
28
  /** The element to render around the content */
27
29
  element?: 'li' | 'div';