@smart-factor/gem-ui-components 0.0.73 → 0.0.74
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/MuiLikeWrapper/MuiLikeWrapper.d.ts +1 -1
- package/dist/components/PaginatedPopover/PaginatedPopover.d.ts +13 -0
- package/dist/components/PaginatedPopover/PaginatedPopover.stories.d.ts +13 -0
- package/dist/components/PaginatedPopover/PaginatedPopover.styles.d.ts +19 -0
- package/dist/components/PaginatedPopover/PaginatedPopoverContent.d.ts +18 -0
- package/dist/components/PaginatedPopover/PaginatedPopoverHeader.d.ts +7 -0
- package/dist/components/PaginatedPopover/types.d.ts +21 -0
- package/dist/helpers/withAliases.d.ts +1 -0
- package/dist/main.js +6 -3
- package/package.json +1 -1
- package/dist/components/TableComponents/TableWithPagination/TableWithPaginationExport.d.ts +0 -0
- package/dist/services/generated/api-candidate.d.ts +0 -22942
|
@@ -6,4 +6,4 @@ export interface MuiLikeWrapperProps {
|
|
|
6
6
|
required?: boolean;
|
|
7
7
|
errorMessage?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const MuiLikeWrapper: ({ label, children, required, errorMessage }: MuiLikeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const MuiLikeWrapper: ({ label, children, required, errorMessage, }: MuiLikeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PaginatedPopoverProps } from './types';
|
|
3
|
+
|
|
4
|
+
interface NotificationItemProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PaginatedPopover: (<T>({ notifications, loadParams, setLoadParams, isLoading, width, height, title, children, Icon, }: PaginatedPopoverProps<T & {
|
|
9
|
+
id: string | number;
|
|
10
|
+
}>) => import("react/jsx-runtime").JSX.Element) & {
|
|
11
|
+
Item: ({ children, onClick }: NotificationItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PaginatedPopover } from './PaginatedPopover';
|
|
3
|
+
import { PaginatedPopoverProps } from './types';
|
|
4
|
+
|
|
5
|
+
declare const meta: Meta<typeof PaginatedPopover>;
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<PaginatedPopoverProps<{
|
|
8
|
+
id: string | number;
|
|
9
|
+
content: string;
|
|
10
|
+
date: Date;
|
|
11
|
+
}>>;
|
|
12
|
+
export declare const Docs: Story;
|
|
13
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ListViewCellWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
5
|
+
export declare const NotificationItemWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
8
|
+
export declare const StyledPaper: import('@emotion/styled').StyledComponent<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "variant" | "square"> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme> & {
|
|
11
|
+
width: string;
|
|
12
|
+
height: string;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export declare const StyledList: import('@emotion/styled').StyledComponent<import('@mui/material').ListOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLUListElement | null) => void) | import('react').RefObject<HTMLUListElement> | null | undefined;
|
|
16
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "dense" | "disablePadding" | "subheader"> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
17
|
+
export declare const StyledListHeader: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PaginatedPopoverProps } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const NotificationContent: <T extends {
|
|
4
|
+
id: string | number;
|
|
5
|
+
}>({ open, anchorEl, onClose, notifications, loadingMore, isLoading, allItemsLoaded, width, height, title, children, listRef, }: {
|
|
6
|
+
open: boolean;
|
|
7
|
+
anchorEl: HTMLButtonElement | null;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
notifications: PaginatedPopoverProps<T>['notifications'];
|
|
10
|
+
loadingMore: boolean;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
allItemsLoaded: boolean;
|
|
13
|
+
width: string;
|
|
14
|
+
height: string;
|
|
15
|
+
title: React.ReactNode;
|
|
16
|
+
children: PaginatedPopoverProps<T>['children'];
|
|
17
|
+
listRef: React.RefObject<HTMLUListElement>;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GenericPageDataDto } from '../../main';
|
|
3
|
+
|
|
4
|
+
export interface LoadParams {
|
|
5
|
+
page: number;
|
|
6
|
+
size: number;
|
|
7
|
+
}
|
|
8
|
+
export interface PaginatedPopoverProps<T> {
|
|
9
|
+
notifications: GenericPageDataDto<T> | undefined;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
loadParams: LoadParams;
|
|
12
|
+
setLoadParams: (loadParams: LoadParams) => void;
|
|
13
|
+
onDelete: (id: string) => void;
|
|
14
|
+
width?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
children: ((item: T & {
|
|
18
|
+
id: string | number;
|
|
19
|
+
}) => ReactNode) | ReactNode;
|
|
20
|
+
Icon: ReactNode;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withAliases: <A extends object, B>(component: A, properties: B) => A & B;
|
package/dist/main.js
CHANGED
|
@@ -2610,7 +2610,12 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2610
2610
|
__proto__: null,
|
|
2611
2611
|
getGridInitialStateFromStorage: _e,
|
|
2612
2612
|
useGridInitialState: Jn
|
|
2613
|
-
}, Symbol.toStringTag, { value: "Module" })), Is = ({
|
|
2613
|
+
}, Symbol.toStringTag, { value: "Module" })), Is = ({
|
|
2614
|
+
label: e,
|
|
2615
|
+
children: r,
|
|
2616
|
+
required: n,
|
|
2617
|
+
errorMessage: t
|
|
2618
|
+
}) => /* @__PURE__ */ k(Rr, { error: !!t, children: [
|
|
2614
2619
|
/* @__PURE__ */ a(Br, { error: !!t, required: n, children: e }),
|
|
2615
2620
|
r,
|
|
2616
2621
|
t && /* @__PURE__ */ a(Ie, { error: !0, children: t })
|
|
@@ -2887,8 +2892,6 @@ const Ws = (e) => /* @__PURE__ */ k(Ne, { direction: "row", display: "inline-fle
|
|
|
2887
2892
|
paginationMode: "server",
|
|
2888
2893
|
rowCount: S,
|
|
2889
2894
|
paginationModel: T,
|
|
2890
|
-
showFirstButton: !0,
|
|
2891
|
-
showLastButton: !0,
|
|
2892
2895
|
onPaginationModelChange: y,
|
|
2893
2896
|
pageSizeOptions: [10, 20, 30, 40, 50],
|
|
2894
2897
|
filterMode: "server",
|
package/package.json
CHANGED
|
File without changes
|