@scottish-government/designsystem-react 1.0.0 → 1.1.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.
Files changed (109) hide show
  1. package/.storybook/sgdsArgTypes.ts +19 -3
  2. package/CHANGELOG.md +19 -0
  3. package/README.md +1 -5
  4. package/dist/common/AbstractNotificationMessage/AbstractNotificationMessage.d.ts +6 -0
  5. package/dist/common/AbstractNotificationMessage/AbstractNotificationMessage.jsx +34 -0
  6. package/dist/common/AbstractNotificationMessage/index.d.ts +1 -0
  7. package/dist/common/AbstractNotificationMessage/index.js +8 -0
  8. package/dist/common/AbstractNotificationMessage/types.d.ts +9 -0
  9. package/dist/common/AbstractNotificationMessage/types.js +2 -0
  10. package/dist/common/WrapperTag/WrapperTag.d.ts +11 -11
  11. package/dist/components/ConfirmationMessage/ConfirmationMessage.d.ts +18 -2
  12. package/dist/components/ConfirmationMessage/ConfirmationMessage.jsx +21 -17
  13. package/dist/components/ConfirmationNotification/ConfirmationNotification.d.ts +6 -0
  14. package/dist/components/ConfirmationNotification/ConfirmationNotification.jsx +26 -0
  15. package/dist/components/ConfirmationNotification/index.d.ts +1 -0
  16. package/dist/components/ConfirmationNotification/index.js +8 -0
  17. package/dist/components/CookieBanner/CookieBanner.jsx +2 -2
  18. package/dist/components/ErrorNotification/ErrorNotification.d.ts +6 -0
  19. package/dist/components/ErrorNotification/ErrorNotification.jsx +26 -0
  20. package/dist/components/ErrorNotification/index.d.ts +1 -0
  21. package/dist/components/ErrorNotification/index.js +8 -0
  22. package/dist/components/FileUpload/FileUpload.d.ts +6 -0
  23. package/dist/components/FileUpload/FileUpload.jsx +55 -0
  24. package/dist/components/FileUpload/index.d.ts +1 -0
  25. package/dist/components/FileUpload/index.js +8 -0
  26. package/dist/components/FileUpload/types.d.ts +24 -0
  27. package/dist/components/FileUpload/types.js +2 -0
  28. package/dist/components/InfoNotification/InfoNotification.d.ts +6 -0
  29. package/dist/components/InfoNotification/InfoNotification.jsx +26 -0
  30. package/dist/components/InfoNotification/index.d.ts +1 -0
  31. package/dist/components/InfoNotification/index.js +8 -0
  32. package/dist/components/NotificationBanner/NotificationBanner.jsx +1 -1
  33. package/dist/components/SummaryList/SummaryList.d.ts +1 -1
  34. package/dist/components/WarningNotification/WarningNotification.d.ts +6 -0
  35. package/dist/components/WarningNotification/WarningNotification.jsx +26 -0
  36. package/dist/components/WarningNotification/index.d.ts +1 -0
  37. package/dist/components/WarningNotification/index.js +8 -0
  38. package/dist/components/WarningText/WarningText.jsx +4 -1
  39. package/dist/images/icons/index.d.ts +2 -0
  40. package/dist/images/icons/index.js +5 -1
  41. package/dist/images/icons/info.d.ts +4 -0
  42. package/dist/images/icons/info.jsx +40 -0
  43. package/dist/images/icons/warning.d.ts +4 -0
  44. package/dist/images/icons/warning.jsx +40 -0
  45. package/dist/index.d.ts +4 -0
  46. package/dist/index.js +40 -0
  47. package/dist/shared-types.d.ts +35 -0
  48. package/dist/shared-types.js +2 -0
  49. package/dist/tsconfig.tsbuildinfo +1 -0
  50. package/package.json +22 -16
  51. package/src/common/AbstractNotificationMessage/AbstractNotificationMessage.test.tsx +101 -0
  52. package/src/common/AbstractNotificationMessage/AbstractNotificationMessage.tsx +56 -0
  53. package/src/common/AbstractNotificationMessage/index.ts +1 -0
  54. package/src/common/AbstractNotificationMessage/types.ts +10 -0
  55. package/src/components/Button/Button.stories.tsx +1 -1
  56. package/src/components/Card/Card.tsx +2 -2
  57. package/src/components/ConfirmationMessage/ConfirmationMessage.stories.tsx +11 -3
  58. package/src/components/ConfirmationMessage/ConfirmationMessage.test.tsx +58 -23
  59. package/src/components/ConfirmationMessage/ConfirmationMessage.tsx +32 -25
  60. package/src/components/ConfirmationMessage/confirmationmessage.mdx +17 -0
  61. package/src/components/ConfirmationNotification/ConfirmationNotification.stories.tsx +47 -0
  62. package/src/components/ConfirmationNotification/ConfirmationNotification.test.tsx +101 -0
  63. package/src/components/ConfirmationNotification/ConfirmationNotification.tsx +46 -0
  64. package/src/components/ConfirmationNotification/index.ts +1 -0
  65. package/src/components/CookieBanner/CookieBanner.tsx +1 -1
  66. package/src/components/ErrorNotification/ErrorNotification.stories.tsx +47 -0
  67. package/src/components/ErrorNotification/ErrorNotification.test.tsx +101 -0
  68. package/src/components/ErrorNotification/ErrorNotification.tsx +46 -0
  69. package/src/components/ErrorNotification/index.ts +1 -0
  70. package/src/components/FileDownload/FileDownload.test.tsx +1 -1
  71. package/src/components/FileUpload/FileUpload.stories.tsx +77 -0
  72. package/src/components/FileUpload/FileUpload.test.tsx +185 -0
  73. package/src/components/FileUpload/FileUpload.tsx +87 -0
  74. package/src/components/FileUpload/index.ts +1 -0
  75. package/src/components/FileUpload/types.ts +25 -0
  76. package/src/components/InfoNotification/InfoNotification.stories.tsx +47 -0
  77. package/src/components/InfoNotification/InfoNotification.test.tsx +101 -0
  78. package/src/components/InfoNotification/InfoNotification.tsx +46 -0
  79. package/src/components/InfoNotification/index.ts +1 -0
  80. package/src/components/NotificationBanner/NotificationBanner.tsx +1 -1
  81. package/src/components/SummaryList/SummaryList.tsx +1 -1
  82. package/src/components/TextInput/TextInput.stories.tsx +1 -1
  83. package/src/components/WarningNotification/WarningNotification.stories.tsx +47 -0
  84. package/src/components/WarningNotification/WarningNotification.test.tsx +101 -0
  85. package/src/components/WarningNotification/WarningNotification.tsx +46 -0
  86. package/src/components/WarningNotification/index.ts +1 -0
  87. package/src/components/WarningText/WarningText.tsx +4 -1
  88. package/src/images/icons/arrow_upward.tsx +10 -10
  89. package/src/images/icons/calendar_today.tsx +10 -10
  90. package/src/images/icons/cancel.tsx +8 -8
  91. package/src/images/icons/check_circle.tsx +10 -10
  92. package/src/images/icons/chevron_left.tsx +10 -10
  93. package/src/images/icons/chevron_right.tsx +10 -10
  94. package/src/images/icons/close.tsx +10 -10
  95. package/src/images/icons/description.tsx +10 -10
  96. package/src/images/icons/double_chevron_left.tsx +8 -8
  97. package/src/images/icons/double_chevron_right.tsx +8 -8
  98. package/src/images/icons/error.tsx +10 -10
  99. package/src/images/icons/expand_less.tsx +10 -10
  100. package/src/images/icons/expand_more.tsx +10 -10
  101. package/src/images/icons/index.ts +2 -0
  102. package/src/images/icons/info.tsx +14 -0
  103. package/src/images/icons/list.tsx +13 -13
  104. package/src/images/icons/menu.tsx +10 -10
  105. package/src/images/icons/priority_high.tsx +11 -11
  106. package/src/images/icons/search.tsx +10 -10
  107. package/src/images/icons/warning.tsx +14 -0
  108. package/src/shared-types.ts +1 -1
  109. package/src/components/ConfirmationMessage/types.ts +0 -7
@@ -0,0 +1,46 @@
1
+ import { useEffect, useRef } from 'react';
2
+ import AbstractNotificationMessage from '../../common/AbstractNotificationMessage';
3
+ import DSNotificationMessage from '@scottish-government/design-system/src/components/notification-message/notification-message';
4
+ import { AbstractNotificationMessageProps } from '../../common/AbstractNotificationMessage/types';
5
+ import clsx from 'clsx';
6
+
7
+ const InfoNotification = ({
8
+ ariaLive,
9
+ children,
10
+ className,
11
+ headingLevel = 'h3',
12
+ isDismissable,
13
+ title,
14
+ ...props
15
+ }: AbstractNotificationMessageProps) => {
16
+ const ref = useRef(null);
17
+
18
+ useEffect(() => {
19
+ /* istanbul ignore else */
20
+ if (ref.current) {
21
+ new DSNotificationMessage(ref.current).init();
22
+ }
23
+ }, [ref]);
24
+
25
+ return (
26
+ <AbstractNotificationMessage
27
+ ariaLive={ariaLive}
28
+ className={clsx([
29
+ 'ds_notification-message--info',
30
+ className
31
+ ])}
32
+ headingLevel={headingLevel}
33
+ icon="Info"
34
+ isDismissable={isDismissable}
35
+ ref={ref}
36
+ title={title}
37
+ {...props}
38
+ >
39
+ {children}
40
+ </AbstractNotificationMessage>
41
+ );
42
+ };
43
+
44
+ InfoNotification.displayName = 'InfoNotification';
45
+
46
+ export default InfoNotification;
@@ -0,0 +1 @@
1
+ export { default } from './InfoNotification';
@@ -30,7 +30,7 @@ const NotificationBanner = ({
30
30
  className
31
31
  ])}
32
32
  isDismissable={isDismissable}
33
- icon={hasIcon ? "PriorityHigh" : undefined}
33
+ icon={hasIcon ? "Warning" : undefined}
34
34
  hasColourIcon={hasColourIcon}
35
35
  hasInverseIcon={hasInverseIcon}
36
36
  ref={ref}
@@ -2,7 +2,7 @@ import React, { Children, useId } from 'react';
2
2
  import ActionLink from '../../common/ActionLink';
3
3
  import ConditionalWrapper from '../../common/ConditionalWrapper';
4
4
  import { SummaryListItemProps, SummaryListProps } from './types';
5
- import { ActionLinkProps } from '@/src/common/ActionLink/types';
5
+ import { ActionLinkProps } from '../../common/ActionLink/types';
6
6
  import clsx from 'clsx';
7
7
 
8
8
  const Item = ({
@@ -10,7 +10,7 @@ const meta = {
10
10
  buttonIcon: {
11
11
  control: { type: 'select' },
12
12
  description: 'Name of the icon to use',
13
- options: ['ArrowUpward', 'CalendarToday', 'Cancel', 'CheckCircle', 'ChevronLeft', 'ChevronRight', 'Close', 'Description', 'DoubleChevronLeft', 'DoubleChevronRight', 'Error', 'ExpandLess', 'ExpandMore', 'List', 'Menu', 'PriorityHigh', 'Search'],
13
+ options: ['ArrowUpward', 'CalendarToday', 'Cancel', 'CheckCircle', 'ChevronLeft', 'ChevronRight', 'Close', 'Description', 'DoubleChevronLeft', 'DoubleChevronRight', 'Error', 'ExpandLess', 'ExpandMore', 'Info', 'List', 'Menu', 'PriorityHigh', 'Search', 'Warning'],
14
14
  type: 'string'
15
15
  },
16
16
  buttonText: {
@@ -0,0 +1,47 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import argTypes from '../../../.storybook/sgdsArgTypes';
3
+
4
+ import WarningNotification from './WarningNotification';
5
+
6
+ const meta = {
7
+ title: 'Components/NotificationMessage/WarningNotification',
8
+ component: WarningNotification,
9
+ argTypes: {
10
+ ariaLive: argTypes.ariaLive(),
11
+ children: argTypes.children(),
12
+ headingLevel: argTypes.headingLevel(),
13
+ icon: { table: { disable: true } },
14
+ isDismissable: argTypes.boolean()
15
+ },
16
+ args: {
17
+ ariaLive: 'polite',
18
+ children: (<p>You have added the landlord <strong>John Smith</strong> to the application.</p>),
19
+ headingLevel: 'h3',
20
+ isDismissable: false,
21
+ title: 'Landlord added successfully',
22
+ }
23
+ } satisfies Meta<typeof WarningNotification>;
24
+
25
+ export default meta;
26
+ type Story = StoryObj<typeof meta>;
27
+
28
+ export const Default: Story = {
29
+ };
30
+
31
+ export const NoChildren: Story = {
32
+ args: {
33
+ children: undefined
34
+ }
35
+ };
36
+
37
+ export const DifferentHeadingLevel: Story = {
38
+ args: {
39
+ headingLevel: 'h2'
40
+ }
41
+ };
42
+
43
+ export const Dismissable: Story = {
44
+ args: {
45
+ isDismissable: true
46
+ }
47
+ };
@@ -0,0 +1,101 @@
1
+ import { test, expect } from 'vitest';
2
+ import { render, screen, within } from '@testing-library/react';
3
+ import WarningNotification from './WarningNotification';
4
+
5
+ const NOTIFICATION_TEXT = 'Further details of the notification message';
6
+ const TITLE_TEXT = 'Important information';
7
+
8
+ test('warning notification message renders correctly', () => {
9
+ render(
10
+ <WarningNotification title={TITLE_TEXT}>
11
+ {NOTIFICATION_TEXT}
12
+ </WarningNotification>
13
+ );
14
+
15
+ const container = document.querySelector('.ds_notification-message');
16
+ const heading = screen.getByRole('heading');
17
+ const content = heading.nextElementSibling;
18
+
19
+ expect(container?.ariaLive).toEqual('polite');
20
+
21
+ expect(heading.tagName).toEqual('H3');
22
+ expect(heading.textContent).toEqual(TITLE_TEXT)
23
+ expect(content?.textContent).toEqual(NOTIFICATION_TEXT)
24
+ });
25
+
26
+ test('warning notification message with close button', () => {
27
+ render(
28
+ <WarningNotification isDismissable>
29
+ {NOTIFICATION_TEXT}
30
+ </WarningNotification>
31
+ );
32
+
33
+ const closeButton = screen.getByRole('button');
34
+ const closeButtonLabel = within(closeButton).getByText('Close this notification');
35
+ const closeButtonIcon = within(closeButton).getByRole('img', { hidden: true });
36
+
37
+ expect(closeButton).toHaveClass('ds_notification-message__close', 'js-close-notification-message');
38
+ expect(closeButton).toHaveAttribute('type', 'button');
39
+
40
+ expect(closeButtonLabel).toBeInTheDocument();
41
+ expect(closeButtonLabel).toHaveClass('visually-hidden');
42
+
43
+ expect(closeButtonIcon).toHaveClass('ds_icon', 'ds_icon--fill');
44
+ });
45
+
46
+ test('warning notification message with icon', () => {
47
+ render(
48
+ <WarningNotification icon="Search">
49
+ {NOTIFICATION_TEXT}
50
+ </WarningNotification>
51
+ );
52
+
53
+
54
+ const notificationIcon = screen.getByRole('img', { hidden: true });
55
+
56
+ expect(notificationIcon).toHaveClass('ds_icon', 'ds_notification-message__icon', 'ds_icon--24');
57
+ expect(notificationIcon).toHaveAttribute('aria-hidden');
58
+ });
59
+
60
+ test("does not render body when no children specified", () => {
61
+ const { container } = render(<WarningNotification title={TITLE_TEXT} />);
62
+
63
+ expect(
64
+ container.querySelector(".ds_notification-message__body"),
65
+ ).not.toBeInTheDocument();
66
+ });
67
+
68
+ test('warning notification message with custom aria live and custom header level', () => {
69
+ render(
70
+ <WarningNotification headingLevel="h2" ariaLive="assertive" title={TITLE_TEXT}/>
71
+ );
72
+
73
+ const container = document.querySelector('.ds_notification-message');
74
+ const heading = screen.getByRole('heading');
75
+
76
+ expect(container?.ariaLive).toEqual('assertive');
77
+
78
+ expect(heading.tagName).toEqual('H2');
79
+ });
80
+
81
+ test('passing additional props', () => {
82
+ render(
83
+ <WarningNotification data-test="foo">
84
+ {NOTIFICATION_TEXT}
85
+ </WarningNotification>
86
+ )
87
+
88
+ const container = document.querySelector('.ds_notification-message') as HTMLElement;
89
+ expect(container?.dataset.test).toEqual('foo');
90
+ });
91
+
92
+ test('passing additional CSS classes', () => {
93
+ render(
94
+ <WarningNotification className="foo">
95
+ {NOTIFICATION_TEXT}
96
+ </WarningNotification>
97
+ )
98
+
99
+ const container = document.querySelector('.ds_notification-message') as HTMLElement;
100
+ expect(container).toHaveClass('foo', 'ds_notification-message');
101
+ });
@@ -0,0 +1,46 @@
1
+ import { useEffect, useRef } from 'react';
2
+ import AbstractNotificationMessage from '../../common/AbstractNotificationMessage';
3
+ import DSNotificationMessage from '@scottish-government/design-system/src/components/notification-message/notification-message';
4
+ import { AbstractNotificationMessageProps } from '../../common/AbstractNotificationMessage/types';
5
+ import clsx from 'clsx';
6
+
7
+ const WarningNotification = ({
8
+ ariaLive,
9
+ children,
10
+ className,
11
+ headingLevel = 'h3',
12
+ isDismissable,
13
+ title,
14
+ ...props
15
+ }: AbstractNotificationMessageProps) => {
16
+ const ref = useRef(null);
17
+
18
+ useEffect(() => {
19
+ /* istanbul ignore else */
20
+ if (ref.current) {
21
+ new DSNotificationMessage(ref.current).init();
22
+ }
23
+ }, [ref]);
24
+
25
+ return (
26
+ <AbstractNotificationMessage
27
+ ariaLive={ariaLive}
28
+ className={clsx([
29
+ 'ds_notification-message--warning',
30
+ className
31
+ ])}
32
+ headingLevel={headingLevel}
33
+ icon="Warning"
34
+ isDismissable={isDismissable}
35
+ ref={ref}
36
+ title={title}
37
+ {...props}
38
+ >
39
+ {children}
40
+ </AbstractNotificationMessage>
41
+ );
42
+ };
43
+
44
+ WarningNotification.displayName = 'WarningNotification';
45
+
46
+ export default WarningNotification;
@@ -0,0 +1 @@
1
+ export { default } from './WarningNotification';
@@ -1,4 +1,5 @@
1
1
  import clsx from 'clsx';
2
+ import { Icon } from '../../common';
2
3
 
3
4
  const WarningText = ({
4
5
  children,
@@ -13,7 +14,9 @@ const WarningText = ({
13
14
  ])}
14
15
  {...props}
15
16
  >
16
- <strong className="ds_warning-text__icon" aria-hidden="true"></strong>
17
+ <strong className="ds_warning-text__icon" aria-hidden="true">
18
+ <Icon isFilled icon='Warning' />
19
+ </strong>
17
20
  <strong className="visually-hidden">Warning</strong>
18
21
  <div className="ds_warning-text__text">
19
22
  {children}
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgArrowUpward = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0V0z" fill="none" />
12
- <path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0V0z" fill="none" />
12
+ <path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgArrowUpward;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgCalendarToday = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgCalendarToday;
@@ -1,13 +1,13 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgCancel = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- role="img"
8
- {...props}
9
- >
10
- <path d="m8.4 17 3.6-3.6 3.6 3.6 1.4-1.4-3.6-3.6L17 8.4 15.6 7 12 10.6 8.4 7 7 8.4l3.6 3.6L7 15.6 8.4 17Zm3.6 5c-1.4 0-2.7-.3-3.9-.8S5.8 20 4.9 19.1s-1.6-2-2.1-3.2S2 13.4 2 12s.3-2.7.8-3.9S4 5.8 4.9 4.9s2-1.6 3.2-2.1S10.6 2 12 2s2.7.3 3.9.8 2.3 1.2 3.2 2.1 1.6 2 2.1 3.2.8 2.5.8 3.9-.3 2.7-.8 3.9-1.2 2.3-2.1 3.2-2 1.6-3.2 2.1-2.5.8-3.9.8Z" />
11
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ role="img"
8
+ {...props}
9
+ >
10
+ <path d="m8.4 17 3.6-3.6 3.6 3.6 1.4-1.4-3.6-3.6L17 8.4 15.6 7 12 10.6 8.4 7 7 8.4l3.6 3.6L7 15.6 8.4 17Zm3.6 5c-1.4 0-2.7-.3-3.9-.8S5.8 20 4.9 19.1s-1.6-2-2.1-3.2S2 13.4 2 12s.3-2.7.8-3.9S4 5.8 4.9 4.9s2-1.6 3.2-2.1S10.6 2 12 2s2.7.3 3.9.8 2.3 1.2 3.2 2.1 1.6 2 2.1 3.2.8 2.5.8 3.9-.3 2.7-.8 3.9-1.2 2.3-2.1 3.2-2 1.6-3.2 2.1-2.5.8-3.9.8Z" />
11
+ </svg>
12
12
  );
13
13
  export default SvgCancel;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgCheckCircle = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgCheckCircle;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgChevronLeft = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgChevronLeft;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgChevronRight = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgChevronRight;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgClose = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgClose;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgDescription = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgDescription;
@@ -1,13 +1,13 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgDoubleChevronLeft = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- role="img"
8
- {...props}
9
- >
10
- <path d="M19 16.6 17.6 18l-6-6 6-6L19 7.4 14.4 12l4.6 4.6Zm-6.6 0L11 18l-6-6 6-6 1.4 1.4L7.8 12l4.6 4.6Z" />
11
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ role="img"
8
+ {...props}
9
+ >
10
+ <path d="M19 16.6 17.6 18l-6-6 6-6L19 7.4 14.4 12l4.6 4.6Zm-6.6 0L11 18l-6-6 6-6 1.4 1.4L7.8 12l4.6 4.6Z" />
11
+ </svg>
12
12
  );
13
13
  export default SvgDoubleChevronLeft;
@@ -1,13 +1,13 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgDoubleChevronRight = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- role="img"
8
- {...props}
9
- >
10
- <path d="M9.6 12 5 7.4 6.4 6l6 6-6 6L5 16.6 9.6 12Zm6.6 0-4.6-4.6L13 6l6 6-6 6-1.4-1.4 4.6-4.6Z" />
11
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ role="img"
8
+ {...props}
9
+ >
10
+ <path d="M9.6 12 5 7.4 6.4 6l6 6-6 6L5 16.6 9.6 12Zm6.6 0-4.6-4.6L13 6l6 6-6 6-1.4-1.4 4.6-4.6Z" />
11
+ </svg>
12
12
  );
13
13
  export default SvgDoubleChevronRight;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgError = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgError;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgExpandLess = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgExpandLess;
@@ -1,15 +1,15 @@
1
1
  import * as React from "react";
2
2
  import type { SVGProps } from "react";
3
3
  const SvgExpandMore = (props: SVGProps<SVGSVGElement>) => (
4
- <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- fill="#000000"
8
- role="img"
9
- {...props}
10
- >
11
- <path d="M0 0h24v24H0z" fill="none" />
12
- <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" />
13
- </svg>
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ fill="#000000"
8
+ role="img"
9
+ {...props}
10
+ >
11
+ <path d="M0 0h24v24H0z" fill="none" />
12
+ <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" />
13
+ </svg>
14
14
  );
15
15
  export default SvgExpandMore;
@@ -11,7 +11,9 @@ export { default as DoubleChevronRight } from "./double_chevron_right";
11
11
  export { default as Error } from "./error";
12
12
  export { default as ExpandLess } from "./expand_less";
13
13
  export { default as ExpandMore } from "./expand_more";
14
+ export { default as Info } from "./info";
14
15
  export { default as List } from "./list";
15
16
  export { default as Menu } from "./menu";
16
17
  export { default as PriorityHigh } from "./priority_high";
17
18
  export { default as Search } from "./search";
19
+ export { default as Warning } from "./warning";