@pautena/react-design-system 0.12.2 → 0.12.3
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/cjs/index.js +1 -23
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/containers/center-container/center-container.d.ts +2 -2
- package/dist/cjs/types/components/containers/content/content.d.ts +2 -1
- package/dist/cjs/types/components/containers/list-panel/list-panel-panel.d.ts +2 -1
- package/dist/cjs/types/components/containers/list-panel/list-panel.d.ts +2 -2
- package/dist/cjs/types/components/containers/list-panel/list-panel.mocks.d.ts +2 -1
- package/dist/cjs/types/components/data-display/board/board.d.ts +2 -2
- package/dist/cjs/types/components/data-display/bullet/bullet.d.ts +2 -1
- package/dist/cjs/types/components/data-display/header/header-title.d.ts +3 -2
- package/dist/cjs/types/components/data-display/label/label.d.ts +2 -1
- package/dist/cjs/types/components/data-display/link-card/link-card.d.ts +2 -1
- package/dist/cjs/types/components/data-display/markdown/markdown.d.ts +2 -1
- package/dist/cjs/types/components/dialogs/bootstrap-dialog/bootstrap-dialog.d.ts +2 -1
- package/dist/cjs/types/components/dialogs/confirm-dialog/confirm-dialog.d.ts +2 -1
- package/dist/cjs/types/components/dialogs/form-dialog/form-dialog.d.ts +2 -1
- package/dist/cjs/types/components/drawers/drawer-app-bar/drawer-app-bar.d.ts +2 -1
- package/dist/cjs/types/components/drawers/drawer-item/drawer-item-link.d.ts +2 -2
- package/dist/cjs/types/components/drawers/drawer-item/drawer-item.d.ts +2 -1
- package/dist/cjs/types/components/drawers/drawer-item/drawer-menu-item.d.ts +2 -2
- package/dist/cjs/types/components/drawers/drawer-main/drawer-main.d.ts +2 -1
- package/dist/cjs/types/components/drawers/drawer-provider/drawer.provider.d.ts +2 -2
- package/dist/cjs/types/components/drawers/drawer-section/drawer-section.d.ts +2 -1
- package/dist/cjs/types/components/feedback/loading-area/loading-area.d.ts +2 -1
- package/dist/cjs/types/components/feedback/query-container/query-container.d.ts +2 -1
- package/dist/cjs/types/components/inputs/action/action-header.d.ts +2 -1
- package/dist/cjs/types/components/inputs/action/action.d.ts +2 -2
- package/dist/cjs/types/components/inputs/autocomplete/autocomplete.d.ts +1 -1
- package/dist/cjs/types/components/inputs/date-range-calendar/date-range-calendar.d.ts +2 -1
- package/dist/cjs/types/components/inputs/date-range-picker/date-range-picker.d.ts +2 -1
- package/dist/cjs/types/components/inputs/search-input/search-input.d.ts +2 -1
- package/dist/cjs/types/components/inputs/select/select.d.ts +2 -2
- package/dist/cjs/types/components/inputs/sign-in/sign-in.d.ts +2 -1
- package/dist/cjs/types/components/inputs/text-field/text-field.d.ts +2 -1
- package/dist/cjs/types/components/navigation/tab-card/tab-card-panel.d.ts +2 -1
- package/dist/cjs/types/components/navigation/tab-card/tab-card.d.ts +2 -2
- package/dist/cjs/types/components/navigation/tab-card/tab-card.dummy.d.ts +3 -2
- package/dist/cjs/types/components/navigation/tab-panel/tab-panel.d.ts +1 -1
- package/dist/cjs/types/components/placeholders/content-placeholder/content-placeholder.d.ts +2 -2
- package/dist/cjs/types/components/placeholders/lorem-ipsum-placeholder/lorem-ipsum-placeholder.d.ts +2 -1
- package/dist/cjs/types/components/placeholders/placeholder/placeholder.d.ts +2 -2
- package/dist/cjs/types/components/placeholders/skeleton-card/skeleton-card.d.ts +2 -1
- package/dist/cjs/types/components/placeholders/skeleton-grid/skeleton-grid.d.ts +2 -1
- package/dist/cjs/types/components/tables/enhanced-remote-table/enhanced-remote-table.d.ts +2 -1
- package/dist/cjs/types/components/tables/enhanced-remote-table/enhanced-remote-table.mock.d.ts +2 -1
- package/dist/cjs/types/components/tables/enhanced-table/enhanced-table-head.d.ts +2 -1
- package/dist/cjs/types/components/tables/enhanced-table/enhanced-table.d.ts +2 -1
- package/dist/cjs/types/components/tables/enhanced-table/enhanced-table.mock.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/group-value-card/group-value-card.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/group-value-card/group-value-card.mock.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/value-base/value-edit.d.ts +2 -2
- package/dist/cjs/types/components/value-displays/value-boolean/value-boolean.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/value-card/value-card.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/value-content/value-content.d.ts +1 -1
- package/dist/cjs/types/components/value-displays/value-datetime/value-datetime.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/value-image/value-image.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/value-label/value-label.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/value-rating/value-rating.d.ts +2 -1
- package/dist/cjs/types/components/value-displays/value-text/value-text.d.ts +2 -1
- package/dist/cjs/types/generators/model-form/model-form-field.d.ts +2 -1
- package/dist/cjs/types/generators/model-form/model-form.d.ts +2 -1
- package/dist/cjs/types/generators/model-router/model-router.d.ts +2 -1
- package/dist/cjs/types/generators/model-router/screens/add-screen.d.ts +2 -1
- package/dist/cjs/types/generators/model-router/screens/details-screen.d.ts +2 -1
- package/dist/cjs/types/generators/model-router/screens/list-screen.d.ts +2 -1
- package/dist/cjs/types/generators/model-router/screens/update-screen.d.ts +2 -1
- package/dist/cjs/types/generators/object-details/object-details.d.ts +2 -1
- package/dist/cjs/types/generators/table-list/table-list.d.ts +2 -1
- package/dist/cjs/types/layouts/drawer-layout/drawer-layout.d.ts +2 -2
- package/dist/cjs/types/layouts/header-layout/header-layout.d.ts +2 -1
- package/dist/cjs/types/providers/notification-center/notification-center.provider.d.ts +2 -2
- package/dist/cjs/types/providers/tab-provider/tab-provider.provider.d.ts +2 -1
- package/dist/esm/index.js +1 -23
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/containers/center-container/center-container.d.ts +2 -2
- package/dist/esm/types/components/containers/content/content.d.ts +2 -1
- package/dist/esm/types/components/containers/list-panel/list-panel-panel.d.ts +2 -1
- package/dist/esm/types/components/containers/list-panel/list-panel.d.ts +2 -2
- package/dist/esm/types/components/containers/list-panel/list-panel.mocks.d.ts +2 -1
- package/dist/esm/types/components/data-display/board/board.d.ts +2 -2
- package/dist/esm/types/components/data-display/bullet/bullet.d.ts +2 -1
- package/dist/esm/types/components/data-display/header/header-title.d.ts +3 -2
- package/dist/esm/types/components/data-display/label/label.d.ts +2 -1
- package/dist/esm/types/components/data-display/link-card/link-card.d.ts +2 -1
- package/dist/esm/types/components/data-display/markdown/markdown.d.ts +2 -1
- package/dist/esm/types/components/dialogs/bootstrap-dialog/bootstrap-dialog.d.ts +2 -1
- package/dist/esm/types/components/dialogs/confirm-dialog/confirm-dialog.d.ts +2 -1
- package/dist/esm/types/components/dialogs/form-dialog/form-dialog.d.ts +2 -1
- package/dist/esm/types/components/drawers/drawer-app-bar/drawer-app-bar.d.ts +2 -1
- package/dist/esm/types/components/drawers/drawer-item/drawer-item-link.d.ts +2 -2
- package/dist/esm/types/components/drawers/drawer-item/drawer-item.d.ts +2 -1
- package/dist/esm/types/components/drawers/drawer-item/drawer-menu-item.d.ts +2 -2
- package/dist/esm/types/components/drawers/drawer-main/drawer-main.d.ts +2 -1
- package/dist/esm/types/components/drawers/drawer-provider/drawer.provider.d.ts +2 -2
- package/dist/esm/types/components/drawers/drawer-section/drawer-section.d.ts +2 -1
- package/dist/esm/types/components/feedback/loading-area/loading-area.d.ts +2 -1
- package/dist/esm/types/components/feedback/query-container/query-container.d.ts +2 -1
- package/dist/esm/types/components/inputs/action/action-header.d.ts +2 -1
- package/dist/esm/types/components/inputs/action/action.d.ts +2 -2
- package/dist/esm/types/components/inputs/autocomplete/autocomplete.d.ts +1 -1
- package/dist/esm/types/components/inputs/date-range-calendar/date-range-calendar.d.ts +2 -1
- package/dist/esm/types/components/inputs/date-range-picker/date-range-picker.d.ts +2 -1
- package/dist/esm/types/components/inputs/search-input/search-input.d.ts +2 -1
- package/dist/esm/types/components/inputs/select/select.d.ts +2 -2
- package/dist/esm/types/components/inputs/sign-in/sign-in.d.ts +2 -1
- package/dist/esm/types/components/inputs/text-field/text-field.d.ts +2 -1
- package/dist/esm/types/components/navigation/tab-card/tab-card-panel.d.ts +2 -1
- package/dist/esm/types/components/navigation/tab-card/tab-card.d.ts +2 -2
- package/dist/esm/types/components/navigation/tab-card/tab-card.dummy.d.ts +3 -2
- package/dist/esm/types/components/navigation/tab-panel/tab-panel.d.ts +1 -1
- package/dist/esm/types/components/placeholders/content-placeholder/content-placeholder.d.ts +2 -2
- package/dist/esm/types/components/placeholders/lorem-ipsum-placeholder/lorem-ipsum-placeholder.d.ts +2 -1
- package/dist/esm/types/components/placeholders/placeholder/placeholder.d.ts +2 -2
- package/dist/esm/types/components/placeholders/skeleton-card/skeleton-card.d.ts +2 -1
- package/dist/esm/types/components/placeholders/skeleton-grid/skeleton-grid.d.ts +2 -1
- package/dist/esm/types/components/tables/enhanced-remote-table/enhanced-remote-table.d.ts +2 -1
- package/dist/esm/types/components/tables/enhanced-remote-table/enhanced-remote-table.mock.d.ts +2 -1
- package/dist/esm/types/components/tables/enhanced-table/enhanced-table-head.d.ts +2 -1
- package/dist/esm/types/components/tables/enhanced-table/enhanced-table.d.ts +2 -1
- package/dist/esm/types/components/tables/enhanced-table/enhanced-table.mock.d.ts +2 -1
- package/dist/esm/types/components/value-displays/group-value-card/group-value-card.d.ts +2 -1
- package/dist/esm/types/components/value-displays/group-value-card/group-value-card.mock.d.ts +2 -1
- package/dist/esm/types/components/value-displays/value-base/value-edit.d.ts +2 -2
- package/dist/esm/types/components/value-displays/value-boolean/value-boolean.d.ts +2 -1
- package/dist/esm/types/components/value-displays/value-card/value-card.d.ts +2 -1
- package/dist/esm/types/components/value-displays/value-content/value-content.d.ts +1 -1
- package/dist/esm/types/components/value-displays/value-datetime/value-datetime.d.ts +2 -1
- package/dist/esm/types/components/value-displays/value-image/value-image.d.ts +2 -1
- package/dist/esm/types/components/value-displays/value-label/value-label.d.ts +2 -1
- package/dist/esm/types/components/value-displays/value-rating/value-rating.d.ts +2 -1
- package/dist/esm/types/components/value-displays/value-text/value-text.d.ts +2 -1
- package/dist/esm/types/generators/model-form/model-form-field.d.ts +2 -1
- package/dist/esm/types/generators/model-form/model-form.d.ts +2 -1
- package/dist/esm/types/generators/model-router/model-router.d.ts +2 -1
- package/dist/esm/types/generators/model-router/screens/add-screen.d.ts +2 -1
- package/dist/esm/types/generators/model-router/screens/details-screen.d.ts +2 -1
- package/dist/esm/types/generators/model-router/screens/list-screen.d.ts +2 -1
- package/dist/esm/types/generators/model-router/screens/update-screen.d.ts +2 -1
- package/dist/esm/types/generators/object-details/object-details.d.ts +2 -1
- package/dist/esm/types/generators/table-list/table-list.d.ts +2 -1
- package/dist/esm/types/layouts/drawer-layout/drawer-layout.d.ts +2 -2
- package/dist/esm/types/layouts/header-layout/header-layout.d.ts +2 -1
- package/dist/esm/types/providers/notification-center/notification-center.provider.d.ts +2 -2
- package/dist/esm/types/providers/tab-provider/tab-provider.provider.d.ts +2 -1
- package/dist/index.d.ts +54 -54
- package/package.json +53 -53
- package/.eslintrc.cjs +0 -40
- package/.prettierrc.cjs +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import { SxProps, Theme } from "@mui/material";
|
|
3
3
|
export interface CenterContainerProps {
|
|
4
4
|
children: ReactNode | undefined;
|
|
@@ -6,4 +6,4 @@ export interface CenterContainerProps {
|
|
|
6
6
|
centerHorizontal?: boolean;
|
|
7
7
|
sx?: SxProps<Theme>;
|
|
8
8
|
}
|
|
9
|
-
export declare function CenterContainer({ children, centerVertical, centerHorizontal, sx, }: CenterContainerProps): JSX.Element;
|
|
9
|
+
export declare function CenterContainer({ children, centerVertical, centerHorizontal, sx, }: CenterContainerProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
export type ListPanelPanelProps = PropsWithChildren<{
|
|
3
4
|
ids: string[];
|
|
4
5
|
}>;
|
|
5
|
-
export declare const ListPanelPanel: ({ ids, children }: ListPanelPanelProps) => JSX.Element | null;
|
|
6
|
+
export declare const ListPanelPanel: ({ ids, children }: ListPanelPanelProps) => React.JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
export interface ListPanelItem {
|
|
3
3
|
id: string;
|
|
4
4
|
text: string;
|
|
@@ -10,4 +10,4 @@ export type ListPanelProps = PropsWithChildren<{
|
|
|
10
10
|
colBreakpoint?: number;
|
|
11
11
|
onSelectedItemChange?: (id: string) => void;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const ListPanel: ({ items, defaultSelectedItem, colBreakpoint, children, onSelectedItemChange, }: ListPanelProps) => JSX.Element;
|
|
13
|
+
export declare const ListPanel: ({ items, defaultSelectedItem, colBreakpoint, children, onSelectedItemChange, }: ListPanelProps) => React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ListPanelItem } from "./list-panel";
|
|
2
|
-
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const ListPanelDemoContent: () => React.JSX.Element;
|
|
3
4
|
export declare const mockItemsShort: ListPanelItem[];
|
|
4
5
|
export declare const mockItemsLong: ListPanelItem[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material";
|
|
2
|
-
import { PropsWithChildren } from "react";
|
|
2
|
+
import React, { PropsWithChildren } from "react";
|
|
3
3
|
export type BoardProps = PropsWithChildren<{
|
|
4
4
|
markdown?: string;
|
|
5
5
|
content?: string | string[];
|
|
6
6
|
spacing?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
7
7
|
sx?: SxProps<Theme>;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const Board: ({ markdown: markdownProps, content: contentProp, spacing, children, sx, }: BoardProps) => JSX.Element;
|
|
9
|
+
export declare const Board: ({ markdown: markdownProps, content: contentProp, spacing, children, sx, }: BoardProps) => React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
2
3
|
export type BulletVariant = "primary" | "secondary" | "default" | "info" | "warning" | "error";
|
|
3
4
|
export declare const bulletClasses: {
|
|
4
5
|
root: string;
|
|
@@ -16,4 +17,4 @@ export interface BulletProps {
|
|
|
16
17
|
/**
|
|
17
18
|
* Dot to attract the user attention
|
|
18
19
|
*/
|
|
19
|
-
export declare const Bullet: ({ variant, sx }: BulletProps) => JSX.Element;
|
|
20
|
+
export declare const Bullet: ({ variant, sx }: BulletProps) => React.JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { PropsWithChildren } from "react";
|
|
2
3
|
export type HeaderTitleProps = PropsWithChildren<{
|
|
3
4
|
loading?: boolean;
|
|
4
5
|
}>;
|
|
5
|
-
export declare const HeaderTitle: ({ loading, children }: HeaderTitleProps) => JSX.Element;
|
|
6
|
+
export declare const HeaderTitle: ({ loading, children }: HeaderTitleProps) => React.JSX.Element;
|
|
6
7
|
export type HeaderSubtitleProps = PropsWithChildren<{
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
}>;
|
|
9
|
-
export declare const HeaderSubtitle: ({ loading, children }: HeaderSubtitleProps) => JSX.Element;
|
|
10
|
+
export declare const HeaderSubtitle: ({ loading, children }: HeaderSubtitleProps) => React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
2
3
|
export type LabelVariant = "primary" | "secondary" | "default" | "info" | "warning" | "error" | "success";
|
|
3
4
|
export declare const labelClasses: {
|
|
4
5
|
root: string;
|
|
@@ -24,4 +25,4 @@ export interface LabelProps {
|
|
|
24
25
|
/**
|
|
25
26
|
* Compact element to represent a text
|
|
26
27
|
*/
|
|
27
|
-
export declare const Label: ({ text, variant, textTransform, sx, }: LabelProps) => JSX.Element;
|
|
28
|
+
export declare const Label: ({ text, variant, textTransform, sx, }: LabelProps) => React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
2
3
|
export type LinkCardVariant = "primary" | "secondary" | "info" | "warning" | "error";
|
|
3
4
|
export interface LinkCardProps {
|
|
4
5
|
variant?: LinkCardVariant;
|
|
@@ -8,4 +9,4 @@ export interface LinkCardProps {
|
|
|
8
9
|
linkText?: string;
|
|
9
10
|
sx?: SxProps<Theme>;
|
|
10
11
|
}
|
|
11
|
-
export declare const LinkCard: ({ variant, title, message, href, linkText, sx, }: LinkCardProps) => JSX.Element;
|
|
12
|
+
export declare const LinkCard: ({ variant, title, message, href, linkText, sx, }: LinkCardProps) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { MarkdownToJSX } from "markdown-to-jsx";
|
|
2
3
|
export interface MarkdownProps {
|
|
3
4
|
content: string;
|
|
4
5
|
options?: MarkdownToJSX.Options;
|
|
5
6
|
}
|
|
6
7
|
export declare const markdownDefaultOptions: MarkdownToJSX.Options;
|
|
7
|
-
export declare const Markdown: ({ content, options }: MarkdownProps) => JSX.Element;
|
|
8
|
+
export declare const Markdown: ({ content, options }: MarkdownProps) => React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BootstrapDialogDialogProps } from "../dialog.types";
|
|
2
|
-
export declare const BootstrapDialog: ({ open, title, component, componentProps, disabled, disableAccept, disableCancel, actions, children, loading, cancelable, callCloseWhenCancel, acceptable, acceptText, cancelText, onAccept, onCancel, onClose, acceptType, }: BootstrapDialogDialogProps) => JSX.Element;
|
|
3
|
+
export declare const BootstrapDialog: ({ open, title, component, componentProps, disabled, disableAccept, disableCancel, actions, children, loading, cancelable, callCloseWhenCancel, acceptable, acceptText, cancelText, onAccept, onCancel, onClose, acceptType, }: BootstrapDialogDialogProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BootstrapDialogDialogProps } from "../dialog.types";
|
|
2
3
|
type OmitBaseDialogProps = "cancelable" | "acceptable" | "onAccept" | "onCancel" | "onClose" | "actions" | "callCloseWhenCancel" | "component" | "acceptType";
|
|
3
4
|
export interface ConfirmDialogProps extends Omit<BootstrapDialogDialogProps, OmitBaseDialogProps> {
|
|
@@ -7,5 +8,5 @@ export interface ConfirmDialogProps extends Omit<BootstrapDialogDialogProps, Omi
|
|
|
7
8
|
onCancel: () => void;
|
|
8
9
|
onConfirm: () => void;
|
|
9
10
|
}
|
|
10
|
-
export declare const ConfirmDialog: ({ open, title, loading, disabled, confirmText, cancelText, passphrase, children, onConfirm, onCancel, }: ConfirmDialogProps) => JSX.Element;
|
|
11
|
+
export declare const ConfirmDialog: ({ open, title, loading, disabled, confirmText, cancelText, passphrase, children, onConfirm, onCancel, }: ConfirmDialogProps) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BootstrapDialogDialogProps } from "../dialog.types";
|
|
2
3
|
type OmitBaseDialogProps = "cancelable" | "acceptable" | "onAccept" | "onCancel" | "onClose" | "actions" | "callCloseWhenCancel" | "component" | "acceptType";
|
|
3
4
|
export interface FormDialogProps<T> extends Omit<BootstrapDialogDialogProps, OmitBaseDialogProps> {
|
|
@@ -6,5 +7,5 @@ export interface FormDialogProps<T> extends Omit<BootstrapDialogDialogProps, Omi
|
|
|
6
7
|
onCancel: () => void;
|
|
7
8
|
onSubmit: (data: T) => void;
|
|
8
9
|
}
|
|
9
|
-
export declare const FormDialog: <T>({ open, title, loading, disabled, submitText, cancelText, children, onSubmit, onCancel, }: FormDialogProps<T>) => JSX.Element;
|
|
10
|
+
export declare const FormDialog: <T>({ open, title, loading, disabled, submitText, cancelText, children, onSubmit, onCancel, }: FormDialogProps<T>) => React.JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { AppBarProps as MuiAppBarProps } from "@mui/material";
|
|
2
3
|
export interface DrawerAppBarProps extends MuiAppBarProps {
|
|
3
4
|
title?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const DrawerAppBar: ({ title, sx, children, ...rest }: DrawerAppBarProps) => JSX.Element;
|
|
6
|
+
export declare const DrawerAppBar: ({ title, sx, children, ...rest }: DrawerAppBarProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
import { SxProps, Theme } from "@mui/material";
|
|
3
3
|
import { DrawerItemAvatar, DrawerItemBullet, DrawerItemLabel, DrawerSize } from "../drawer.types";
|
|
4
4
|
export interface DrawerItemLinkProps {
|
|
@@ -47,4 +47,4 @@ export interface DrawerItemLinkProps {
|
|
|
47
47
|
/**
|
|
48
48
|
* Clicable item inside a drawer
|
|
49
49
|
*/
|
|
50
|
-
export declare const DrawerItemLink: ({ text, icon, avatar, label, bullet, href, selected, size, level, sx, }: DrawerItemLinkProps) => JSX.Element;
|
|
50
|
+
export declare const DrawerItemLink: ({ text, icon, avatar, label, bullet, href, selected, size, level, sx, }: DrawerItemLinkProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DrawerNavigationItem, DrawerSize } from "../drawer.types";
|
|
2
3
|
export interface DrawerItemProps {
|
|
3
4
|
/**
|
|
@@ -13,4 +14,4 @@ export interface DrawerItemProps {
|
|
|
13
14
|
*/
|
|
14
15
|
level?: number;
|
|
15
16
|
}
|
|
16
|
-
export declare const DrawerItem: ({ item, size, level }: DrawerItemProps) => JSX.Element;
|
|
17
|
+
export declare const DrawerItem: ({ item, size, level }: DrawerItemProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material";
|
|
2
|
-
import { ReactElement } from "react";
|
|
2
|
+
import React, { ReactElement } from "react";
|
|
3
3
|
import { DrawerNavigationItem, DrawerSize } from "../drawer.types";
|
|
4
4
|
export interface DrawerMenuItemProps {
|
|
5
5
|
/**
|
|
@@ -32,4 +32,4 @@ export interface DrawerMenuItemProps {
|
|
|
32
32
|
*/
|
|
33
33
|
sx?: SxProps<Theme>;
|
|
34
34
|
}
|
|
35
|
-
export declare const DrawerMenuItem: ({ text, icon, selected, items, size, level, sx, }: DrawerMenuItemProps) => JSX.Element;
|
|
35
|
+
export declare const DrawerMenuItem: ({ text, icon, selected, items, size, level, sx, }: DrawerMenuItemProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { PropsWithChildren } from "react";
|
|
2
3
|
export type DrawerMainProps = PropsWithChildren;
|
|
3
|
-
export declare const DrawerMain: ({ children }: DrawerMainProps) => JSX.Element;
|
|
4
|
+
export declare const DrawerMain: ({ children }: DrawerMainProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { DrawerState, DrawerVariant } from "../drawer.types";
|
|
3
3
|
export type DrawerProviderProps = PropsWithChildren<{
|
|
4
4
|
initialState?: DrawerState;
|
|
@@ -8,4 +8,4 @@ export type DrawerProviderProps = PropsWithChildren<{
|
|
|
8
8
|
selectedItemId?: string;
|
|
9
9
|
onStateChange?: (newState: DrawerState) => void;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const DrawerProvider: ({ children, initialState: initialStateProp, variant, drawerWidth: drawerWidthProp, underAppBar, selectedItemId, onStateChange, }: DrawerProviderProps) => JSX.Element;
|
|
11
|
+
export declare const DrawerProvider: ({ children, initialState: initialStateProp, variant, drawerWidth: drawerWidthProp, underAppBar, selectedItemId, onStateChange, }: DrawerProviderProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DrawerNavigationItem, DrawerSize } from "../drawer.types";
|
|
2
3
|
export interface DrawerSectionProps {
|
|
3
4
|
/**
|
|
@@ -17,4 +18,4 @@ export interface DrawerSectionProps {
|
|
|
17
18
|
* Render a group of items inside the drawer
|
|
18
19
|
* with an optional title
|
|
19
20
|
*/
|
|
20
|
-
export declare const DrawerSection: ({ title, items, size }: DrawerSectionProps) => JSX.Element;
|
|
21
|
+
export declare const DrawerSection: ({ title, items, size }: DrawerSectionProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { PropsWithChildren } from "react";
|
|
2
3
|
export interface QueryContainerError {
|
|
3
4
|
/**
|
|
@@ -40,4 +41,4 @@ export type QueryContainerProps = PropsWithChildren<{
|
|
|
40
41
|
/**
|
|
41
42
|
* Component to show different indicators based on the usual api query statuses
|
|
42
43
|
*/
|
|
43
|
-
export declare function QueryContainer({ fetching: fetchingProp, loading: loadingProp, error, success, children, }: QueryContainerProps): JSX.Element;
|
|
44
|
+
export declare function QueryContainer({ fetching: fetchingProp, loading: loadingProp, error, success, children, }: QueryContainerProps): React.JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Variant } from "@mui/material/styles/createTypography";
|
|
2
|
+
import React from "react";
|
|
2
3
|
type ActionVariant = "primary" | "error" | "warning" | "success";
|
|
3
4
|
export interface ActionHeaderProps {
|
|
4
5
|
variant?: ActionVariant;
|
|
5
6
|
title: string;
|
|
6
7
|
titleVariant?: Extract<Variant, "h4" | "h5" | "h6">;
|
|
7
8
|
}
|
|
8
|
-
export declare const ActionHeader: ({ title, titleVariant, variant, }: ActionHeaderProps) => JSX.Element;
|
|
9
|
+
export declare const ActionHeader: ({ title, titleVariant, variant, }: ActionHeaderProps) => React.JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variant } from "@mui/material/styles/createTypography";
|
|
2
|
-
import { ReactElement } from "react";
|
|
2
|
+
import React, { ReactElement } from "react";
|
|
3
3
|
export type ActionVariant = "primary" | "error" | "warning" | "success";
|
|
4
4
|
export interface ActionProps {
|
|
5
5
|
variant: ActionVariant;
|
|
@@ -16,4 +16,4 @@ export interface ActionProps {
|
|
|
16
16
|
passphrase?: string;
|
|
17
17
|
onAction: () => void;
|
|
18
18
|
}
|
|
19
|
-
export declare const Action: ({ variant, title, titleVariant, description, descriptionVariant, buttonText, helperText, helperTextVariant, confirmable, passphrase, confirmTitle, confirmDescription, onAction, }: ActionProps) => JSX.Element;
|
|
19
|
+
export declare const Action: ({ variant, title, titleVariant, description, descriptionVariant, buttonText, helperText, helperTextVariant, confirmable, passphrase, confirmTitle, confirmDescription, onAction, }: ActionProps) => React.JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface AutocompleteProps<T, Multiple extends boolean | undefined, Disa
|
|
|
7
7
|
fetching?: boolean;
|
|
8
8
|
onChangeValue?: (value: T) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType<any> = "div">(props: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>) => JSX.Element;
|
|
10
|
+
export declare const Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType<any> = "div">(props: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
type DateRange = [Date, Date | undefined];
|
|
2
3
|
export interface DateRangeCalendarProps {
|
|
3
4
|
defaultValue: DateRange;
|
|
4
5
|
onValueChange: (value: DateRange, updatedIndex: number) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare const DateRangeCalendar: ({ defaultValue, onValueChange }: DateRangeCalendarProps) => JSX.Element;
|
|
7
|
+
export declare const DateRangeCalendar: ({ defaultValue, onValueChange }: DateRangeCalendarProps) => React.JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
type DateRange = [Date, Date | undefined];
|
|
2
3
|
export interface DateRangePickerProps {
|
|
3
4
|
label: string;
|
|
@@ -7,5 +8,5 @@ export interface DateRangePickerProps {
|
|
|
7
8
|
size?: "small" | "medium";
|
|
8
9
|
onValueChange: (value: DateRange, index: number) => void;
|
|
9
10
|
}
|
|
10
|
-
export declare const DateRangePicker: ({ defaultValue, format: fmt, label, fullWidth, onValueChange, size, }: DateRangePickerProps) => JSX.Element;
|
|
11
|
+
export declare const DateRangePicker: ({ defaultValue, format: fmt, label, fullWidth, onValueChange, size, }: DateRangePickerProps) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
2
3
|
export type SearchInputSize = "small" | "medium";
|
|
3
4
|
export interface SearchFilter {
|
|
4
5
|
id: string;
|
|
@@ -16,4 +17,4 @@ export interface SearchInputProps<T> {
|
|
|
16
17
|
dateFormat?: string;
|
|
17
18
|
onSearch: (data: T) => void;
|
|
18
19
|
}
|
|
19
|
-
export declare const SearchInput: <T>({ label, placeholder, helperText, size, fullWidth, dateFormat, filters, onSearch, sx, }: SearchInputProps<T>) => JSX.Element;
|
|
20
|
+
export declare const SearchInput: <T>({ label, placeholder, helperText, size, fullWidth, dateFormat, filters, onSearch, sx, }: SearchInputProps<T>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import { SelectInputProps } from "@mui/material/Select/SelectInput";
|
|
3
3
|
export type SelectSize = "small" | "medium";
|
|
4
4
|
export interface SelectProps<T> {
|
|
@@ -12,4 +12,4 @@ export interface SelectProps<T> {
|
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
onChange?: SelectInputProps<T>["onChange"];
|
|
14
14
|
}
|
|
15
|
-
export declare const Select: <T extends any>({ label, value, loading, fetching, size, fullWidth, color, children, onChange, }: SelectProps<T>) => JSX.Element;
|
|
15
|
+
export declare const Select: <T extends any>({ label, value, loading, fetching, size, fullWidth, color, children, onChange, }: SelectProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export interface SignInProps {
|
|
2
3
|
title: string;
|
|
3
4
|
subtitle: string;
|
|
@@ -5,4 +6,4 @@ export interface SignInProps {
|
|
|
5
6
|
loading?: boolean;
|
|
6
7
|
onSubmitSignIn: (email: string, password: string) => void;
|
|
7
8
|
}
|
|
8
|
-
export declare const SignIn: ({ title, subtitle, loading, error, onSubmitSignIn }: SignInProps) => JSX.Element;
|
|
9
|
+
export declare const SignIn: ({ title, subtitle, loading, error, onSubmitSignIn }: SignInProps) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TextFieldProps as MuiTextFieldProps } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
2
3
|
export type TextFieldProps = MuiTextFieldProps & {
|
|
3
4
|
fetching?: boolean;
|
|
4
5
|
loading?: boolean;
|
|
5
6
|
hexColor?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const TextField: ({ id: overrideId, label, InputLabelProps, InputProps, fetching, loading, helperText, hexColor, size, fullWidth, sx, ...rest }: TextFieldProps) => JSX.Element;
|
|
8
|
+
export declare const TextField: ({ id: overrideId, label, InputLabelProps, InputProps, fetching, loading, helperText, hexColor, size, fullWidth, sx, ...rest }: TextFieldProps) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { SxProps, Theme } from "@mui/material";
|
|
3
4
|
export type TabCardPanelProps = PropsWithChildren<{
|
|
4
5
|
index: number | number[];
|
|
5
6
|
sx?: SxProps<Theme>;
|
|
6
7
|
}>;
|
|
7
|
-
export declare const TabCardPanel: ({ index, children, sx }: TabCardPanelProps) => JSX.Element | null;
|
|
8
|
+
export declare const TabCardPanel: ({ index, children, sx }: TabCardPanelProps) => React.JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from "react";
|
|
1
|
+
import React, { PropsWithChildren, ReactElement } from "react";
|
|
2
2
|
export interface TabData {
|
|
3
3
|
text: string;
|
|
4
4
|
icon?: ReactElement;
|
|
@@ -8,4 +8,4 @@ export type TabCardProps = PropsWithChildren<{
|
|
|
8
8
|
initialTab?: number;
|
|
9
9
|
onChangeTab?: (tab: TabData, index: number) => void;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const TabCard: ({ children, tabs, initialTab, onChangeTab, }: TabCardProps) => JSX.Element;
|
|
11
|
+
export declare const TabCard: ({ children, tabs, initialTab, onChangeTab, }: TabCardProps) => React.JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { TabData } from "./tab-card";
|
|
2
3
|
export declare const DummyTabs: ({
|
|
3
4
|
text: string;
|
|
4
5
|
icon?: undefined;
|
|
5
6
|
} | {
|
|
6
7
|
text: string;
|
|
7
|
-
icon: JSX.Element;
|
|
8
|
+
icon: React.JSX.Element;
|
|
8
9
|
})[];
|
|
9
10
|
export interface TabCardDummyProps {
|
|
10
11
|
tabs: TabData[];
|
|
11
12
|
initialTab: number;
|
|
12
13
|
onChangeTab: (tab: TabData, index: number) => void;
|
|
13
14
|
}
|
|
14
|
-
export declare function TabCardDummy({ tabs, initialTab, onChangeTab }: TabCardDummyProps): JSX.Element;
|
|
15
|
+
export declare function TabCardDummy({ tabs, initialTab, onChangeTab }: TabCardDummyProps): React.JSX.Element;
|
|
@@ -3,5 +3,5 @@ interface TabPanelProps {
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
index: number | number[];
|
|
5
5
|
}
|
|
6
|
-
export declare function TabPanel({ children, index }: TabPanelProps): JSX.Element;
|
|
6
|
+
export declare function TabPanel({ children, index }: TabPanelProps): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
export type ContentPlaceholderProps = PropsWithChildren<{
|
|
3
3
|
size?: number;
|
|
4
4
|
p?: number;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const ContentPlaceholder: ({ size, children, p }: ContentPlaceholderProps) => JSX.Element;
|
|
6
|
+
export declare const ContentPlaceholder: ({ size, children, p }: ContentPlaceholderProps) => React.JSX.Element;
|
package/dist/esm/types/components/placeholders/lorem-ipsum-placeholder/lorem-ipsum-placeholder.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Variant } from "@mui/material/styles/createTypography";
|
|
2
2
|
import { LoremUnit } from "lorem-ipsum/types/src/constants/units";
|
|
3
|
+
import React from "react";
|
|
3
4
|
export interface LoremIpsumPlaceholderProps {
|
|
4
5
|
count?: number;
|
|
5
6
|
units?: LoremUnit;
|
|
6
7
|
variant?: Variant;
|
|
7
8
|
}
|
|
8
|
-
export declare const LoremIpsumPlaceholder: ({ count, units, variant, }: LoremIpsumPlaceholderProps) => JSX.Element;
|
|
9
|
+
export declare const LoremIpsumPlaceholder: ({ count, units, variant, }: LoremIpsumPlaceholderProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
type IconColor = "inherit" | "action" | "disabled" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
3
3
|
export interface PlaceholderAction {
|
|
4
4
|
id: string;
|
|
@@ -18,5 +18,5 @@ export interface PlaceholderProps {
|
|
|
18
18
|
icon?: PlaceholderIcon;
|
|
19
19
|
actions?: PlaceholderAction[];
|
|
20
20
|
}
|
|
21
|
-
export declare const Placeholder: ({ title, subtitle, icon, iconSize, actions, }: PlaceholderProps) => JSX.Element;
|
|
21
|
+
export declare const Placeholder: ({ title, subtitle, icon, iconSize, actions, }: PlaceholderProps) => React.JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export interface SkeletonCardProps {
|
|
2
3
|
width?: number | string;
|
|
3
4
|
animation?: "pulse" | "wave" | false;
|
|
4
5
|
}
|
|
5
|
-
export declare const SkeletonCard: ({ width, animation }: SkeletonCardProps) => JSX.Element;
|
|
6
|
+
export declare const SkeletonCard: ({ width, animation }: SkeletonCardProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ReactNode } from "react";
|
|
2
3
|
import { HeadCell, Order } from "../enhanced-table";
|
|
3
4
|
export interface EnhancedRemoteTableProps<T> {
|
|
@@ -9,4 +10,4 @@ export interface EnhancedRemoteTableProps<T> {
|
|
|
9
10
|
children: (data: T, index: number) => ReactNode;
|
|
10
11
|
onRequestSort: (col: keyof T, orderBy: "asc" | "desc") => void;
|
|
11
12
|
}
|
|
12
|
-
export declare const EnhancedRemoteTable: <T>({ children, data, loading, columns, defaultSort, defaultOrder, onRequestSort, }: EnhancedRemoteTableProps<T>) => JSX.Element;
|
|
13
|
+
export declare const EnhancedRemoteTable: <T>({ children, data, loading, columns, defaultSort, defaultOrder, onRequestSort, }: EnhancedRemoteTableProps<T>) => React.JSX.Element;
|
package/dist/esm/types/components/tables/enhanced-remote-table/enhanced-remote-table.mock.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { HeadCell, Order } from "../enhanced-table/enhanced-table-head";
|
|
2
3
|
import { Data } from "../enhanced-table/enhanced-table.mock";
|
|
3
4
|
export interface EnhancedRemoteDummyTableProps {
|
|
@@ -8,4 +9,4 @@ export interface EnhancedRemoteDummyTableProps {
|
|
|
8
9
|
columns: HeadCell<Data>[];
|
|
9
10
|
onRequestSort: (col: string, orderBy: Order) => void;
|
|
10
11
|
}
|
|
11
|
-
export declare function EnhancedRemoteDummyTable(props: EnhancedRemoteDummyTableProps): JSX.Element;
|
|
12
|
+
export declare function EnhancedRemoteDummyTable(props: EnhancedRemoteDummyTableProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export type Order = "asc" | "desc";
|
|
2
3
|
export interface HeadCell<T> {
|
|
3
4
|
disablePadding: boolean;
|
|
@@ -12,5 +13,5 @@ interface EnhancedTableHeadProps<T> {
|
|
|
12
13
|
orderBy: keyof T;
|
|
13
14
|
headCells: HeadCell<T>[];
|
|
14
15
|
}
|
|
15
|
-
export declare const EnhancedTableHead: <T>({ order, orderBy, headCells, onRequestSort, }: EnhancedTableHeadProps<T>) => JSX.Element;
|
|
16
|
+
export declare const EnhancedTableHead: <T>({ order, orderBy, headCells, onRequestSort, }: EnhancedTableHeadProps<T>) => React.JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ReactNode } from "react";
|
|
2
3
|
import { HeadCell, Order } from "./enhanced-table-head";
|
|
3
4
|
interface Props<T> {
|
|
@@ -10,7 +11,7 @@ interface Props<T> {
|
|
|
10
11
|
children: (data: T[]) => ReactNode;
|
|
11
12
|
}
|
|
12
13
|
export declare const EnhancedTable: {
|
|
13
|
-
<T>({ children, data, search, columns, defaultSort, defaultOrder, loading, }: Props<T>): JSX.Element;
|
|
14
|
+
<T>({ children, data, search, columns, defaultSort, defaultOrder, loading, }: Props<T>): React.JSX.Element;
|
|
14
15
|
defaultProps: {
|
|
15
16
|
defaultOrder: string;
|
|
16
17
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { HeadCell, Order } from "./enhanced-table-head";
|
|
2
3
|
export declare const columns: HeadCell<Data>[];
|
|
3
4
|
export interface Data {
|
|
@@ -13,4 +14,4 @@ export interface TestTableProps {
|
|
|
13
14
|
defaultOrder: Order;
|
|
14
15
|
loading: boolean;
|
|
15
16
|
}
|
|
16
|
-
export declare const TestTable: ({ data, columns, defaultOrder, defaultSort, loading, }: TestTableProps) => JSX.Element;
|
|
17
|
+
export declare const TestTable: ({ data, columns, defaultOrder, defaultSort, loading, }: TestTableProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ValueItemElement } from "../value-item/value-item";
|
|
2
3
|
export interface GroupValueCardProps {
|
|
3
4
|
title: string;
|
|
@@ -6,4 +7,4 @@ export interface GroupValueCardProps {
|
|
|
6
7
|
children: ValueItemElement | ValueItemElement[];
|
|
7
8
|
dense?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare const GroupValueCard: ({ title, subtitle, centered, children, dense, }: GroupValueCardProps) => JSX.Element;
|
|
10
|
+
export declare const GroupValueCard: ({ title, subtitle, centered, children, dense, }: GroupValueCardProps) => React.JSX.Element;
|
|
@@ -5,7 +5,7 @@ export interface ValueEditButtonsProps {
|
|
|
5
5
|
onClickSubmit: () => void;
|
|
6
6
|
sx?: SxProps<Theme>;
|
|
7
7
|
}
|
|
8
|
-
export declare const ValueEditButtons: ({ onClickCancel, onClickSubmit, sx }: ValueEditButtonsProps) => JSX.Element;
|
|
8
|
+
export declare const ValueEditButtons: ({ onClickCancel, onClickSubmit, sx }: ValueEditButtonsProps) => React.JSX.Element;
|
|
9
9
|
/**
|
|
10
10
|
* Hook to manage the editing behaviour
|
|
11
11
|
*/
|
|
@@ -21,4 +21,4 @@ export interface ValueEditButtonProps {
|
|
|
21
21
|
dense?: boolean;
|
|
22
22
|
onClick: () => void;
|
|
23
23
|
}
|
|
24
|
-
export declare const ValueEditButton: ({ dense, onClick }: ValueEditButtonProps) => JSX.Element;
|
|
24
|
+
export declare const ValueEditButton: ({ dense, onClick }: ValueEditButtonProps) => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BaseValueProps, EditableValueProps } from "../value-base";
|
|
2
3
|
export type ValueBooleanProps = BaseValueProps<boolean> & EditableValueProps<boolean>;
|
|
3
4
|
/**
|
|
4
5
|
* Displays a boolean value with a label
|
|
5
6
|
*/
|
|
6
|
-
export declare const ValueBoolean: ({ label, value, placeholder, editable, dense, onEdit, }: ValueBooleanProps) => JSX.Element;
|
|
7
|
+
export declare const ValueBoolean: ({ label, value, placeholder, editable, dense, onEdit, }: ValueBooleanProps) => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { PropsWithChildren } from "react";
|
|
2
3
|
export type ValueCardProps = PropsWithChildren;
|
|
3
4
|
/**
|
|
4
5
|
* Container to show a labeled value
|
|
5
6
|
*/
|
|
6
|
-
export declare const ValueCard: ({ children }: ValueCardProps) => JSX.Element;
|
|
7
|
+
export declare const ValueCard: ({ children }: ValueCardProps) => React.JSX.Element;
|
|
@@ -35,4 +35,4 @@ export interface ValueContentProps {
|
|
|
35
35
|
/**
|
|
36
36
|
* Displays a string value with a label
|
|
37
37
|
*/
|
|
38
|
-
export declare const ValueContent: ({ label, hideLabel, tooltip, tooltipEnterDelay, children, dense, sx, }: ValueContentProps) => JSX.Element;
|
|
38
|
+
export declare const ValueContent: ({ label, hideLabel, tooltip, tooltipEnterDelay, children, dense, sx, }: ValueContentProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BaseValueProps, EditableValueProps } from "../value-base/value-displays.types";
|
|
2
3
|
export type EditInputType = "datetime" | "date" | "time";
|
|
3
4
|
export interface ValueDatetimeProps extends BaseValueProps<Date>, EditableValueProps<Date> {
|
|
@@ -13,4 +14,4 @@ export interface ValueDatetimeProps extends BaseValueProps<Date>, EditableValueP
|
|
|
13
14
|
/**
|
|
14
15
|
* Displays a formated datetime with a label
|
|
15
16
|
*/
|
|
16
|
-
export declare const ValueDatetime: ({ label, value: valueProp, format: fmt, placeholder, editable, editInputType, dense, onEdit, }: ValueDatetimeProps) => JSX.Element;
|
|
17
|
+
export declare const ValueDatetime: ({ label, value: valueProp, format: fmt, placeholder, editable, editInputType, dense, onEdit, }: ValueDatetimeProps) => React.JSX.Element;
|