@ssa-ui-kit/widgets 0.0.5-alpha → 0.0.6-alpha
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.
- package/dist/components/NotificationCard/NotificationCard.d.ts +2 -1
- package/dist/components/NotificationCard/types.d.ts +3 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/PaginationButtons.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/NotificationCard/NotificationCard.spec.tsx +23 -0
- package/src/components/NotificationCard/NotificationCard.tsx +11 -10
- package/src/components/NotificationCard/types.ts +4 -1
- package/src/components/Pagination/Pagination.e2e.ts +45 -32
- package/src/components/Pagination/Pagination.spec.tsx +10 -0
- package/src/components/Pagination/Pagination.stories.tsx +10 -0
- package/src/components/Pagination/Pagination.tsx +13 -2
- package/src/components/Pagination/PaginationButtons.tsx +9 -1
- package/src/components/Pagination/styles.tsx +26 -9
- package/src/components/Pagination/types.ts +3 -0
- package/src/components/SearchBox/SearchBoxInput.tsx +0 -1
- package/tsbuildcache +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { NotificationCardProps } from './types';
|
|
2
3
|
export declare const notificationTypes: Record<string, {
|
|
3
4
|
[key: string]: string;
|
|
4
5
|
}>;
|
|
5
|
-
export declare const NotificationCard: (
|
|
6
|
+
export declare const NotificationCard: import("react").ForwardRefExoticComponent<NotificationCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export type NotificationType = 'Informational' | 'Warning' | 'Error';
|
|
2
3
|
export interface NotificationCardProps {
|
|
3
4
|
title: string;
|
|
4
5
|
text: string;
|
|
5
6
|
isRead: boolean;
|
|
6
|
-
type:
|
|
7
|
+
type: NotificationType;
|
|
7
8
|
time: string | number;
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
onClick?: () => void;
|
|
11
|
+
className?: string;
|
|
10
12
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IPaginationProps } from './types';
|
|
2
|
-
declare const Pagination: ({ pagesCount, className, as, ariaLabel, }: IPaginationProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
2
|
+
declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, }: IPaginationProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default Pagination;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IPaginationButtonsProps } from './types';
|
|
2
|
-
export declare const PaginationButtons: ({ range, selectedPage, onClick, }: IPaginationButtonsProps) => false | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element[];
|
|
2
|
+
export declare const PaginationButtons: ({ range, selectedPage, onClick, isDisabled, }: IPaginationButtonsProps) => false | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element[];
|
|
@@ -3,11 +3,13 @@ import { CommonProps } from '@ssa-ui-kit/core';
|
|
|
3
3
|
export interface IPaginationProps extends CommonProps {
|
|
4
4
|
pagesCount: number;
|
|
5
5
|
ariaLabel?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface IPaginationButtonsProps {
|
|
8
9
|
range: number[];
|
|
9
10
|
selectedPage?: number;
|
|
10
11
|
onClick: (page: number) => void;
|
|
12
|
+
isDisabled?: boolean;
|
|
11
13
|
}
|
|
12
14
|
export interface IArrowButtonProps {
|
|
13
15
|
direction: 'left' | 'right';
|
|
@@ -19,6 +21,7 @@ export interface IPageButtonProps {
|
|
|
19
21
|
onClick: () => void;
|
|
20
22
|
page: number | string;
|
|
21
23
|
isSelected: boolean;
|
|
24
|
+
isDisabled?: boolean;
|
|
22
25
|
}
|
|
23
26
|
export interface IPaginationContext {
|
|
24
27
|
page?: number;
|