@movable/ui 2.14.4-alpha.1 → 2.15.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.
@@ -0,0 +1,15 @@
1
+ type ChartTypes = 'line' | 'bar' | 'pie';
2
+ import type { ChartOptions, ChartData } from 'chart.js';
3
+ export type ChartProps<T extends ChartTypes> = {
4
+ type: T;
5
+ data?: ChartData<T>;
6
+ chartOptions?: ChartOptions<T>;
7
+ legend?: boolean;
8
+ customColors?: string[];
9
+ height?: number;
10
+ isLoading?: boolean;
11
+ stacked?: boolean;
12
+ title?: string;
13
+ };
14
+ export default function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): import("react/jsx-runtime").JSX.Element | undefined;
15
+ export {};
@@ -0,0 +1 @@
1
+ export { default as InkChart } from './InkChart';
@@ -21,3 +21,4 @@ export * from './InkSwitch';
21
21
  export * from './InkTextField';
22
22
  export * from './InkSelect';
23
23
  export { InternalUseOnlyLabel, InternalUseOnlyAlert, } from './InternalUseOnlyIndicators';
24
+ export { InkChart } from './InkChart';
package/lib/index.d.ts CHANGED
@@ -3,6 +3,8 @@ import { BoxProps } from '@mui/material';
3
3
  import { BoxProps as BoxProps_2 } from '@mui/material/Box';
4
4
  import { ButtonProps } from '@mui/material';
5
5
  import { ButtonProps as ButtonProps_2 } from '@mui/material/Button';
6
+ import type { ChartData } from 'chart.js';
7
+ import type { ChartOptions } from 'chart.js';
6
8
  import { CheckboxProps } from '@mui/material/Checkbox';
7
9
  import { ChipProps } from '@mui/material';
8
10
  import { CustomContentProps } from 'notistack';
@@ -17,6 +19,7 @@ import { FormGroupProps } from '@mui/material/FormGroup';
17
19
  import { FormLabelProps } from '@mui/material/FormLabel';
18
20
  import { ForwardRefExoticComponent } from 'react';
19
21
  import { GridProps } from '@mui/material/Grid';
22
+ import { GridProps as GridProps_2 } from '@mui/material';
20
23
  import { JSX as JSX_2 } from 'react/jsx-runtime';
21
24
  import { LinkProps } from '@mui/material';
22
25
  import { ListItemIconProps } from '@mui/material/ListItemIcon';
@@ -80,6 +83,20 @@ declare type ButtonPropsType = ButtonProps & {
80
83
  label: ReactNode;
81
84
  };
82
85
 
86
+ declare type ChartProps<T extends ChartTypes> = {
87
+ type: T;
88
+ data?: ChartData<T>;
89
+ chartOptions?: ChartOptions<T>;
90
+ legend?: boolean;
91
+ customColors?: string[];
92
+ height?: number;
93
+ isLoading?: boolean;
94
+ stacked?: boolean;
95
+ title?: string;
96
+ };
97
+
98
+ declare type ChartTypes = 'line' | 'bar' | 'pie';
99
+
83
100
  declare type closeButtonType = {
84
101
  onClick: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
85
102
  };
@@ -113,7 +130,7 @@ declare type DemoComponentProps = {
113
130
  stringToDisplay: string;
114
131
  };
115
132
 
116
- export declare function DetailsLayout({ Header, children, sx, ...rest }: LayoutDetailsProps): JSX_2.Element;
133
+ export declare function DetailsLayout({ Header, children, sx, itemProps, ...rest }: LayoutDetailsProps): JSX_2.Element;
117
134
 
118
135
  declare type DrawerType = 'basic' | 'panel' | 'filter';
119
136
 
@@ -124,6 +141,24 @@ declare type DropdownActionType = {
124
141
  internalUseOnlyItems?: ReactNode[];
125
142
  };
126
143
 
144
+ export declare function EightColumnFullContentLayout({ children, itemProps, containerProps, }: EightColumnFullContentLayoutProps): JSX_2.Element;
145
+
146
+ declare type EightColumnFullContentLayoutProps = {
147
+ children: React.ReactNode;
148
+ containerProps?: GridProps_2;
149
+ itemProps?: GridProps_2;
150
+ };
151
+
152
+ export declare function FiveThreeSplitContentLayout({ leftContent, rightContent, containerProps, leftProps, rightProps, }: FiveThreeSplitContentLayoutProps): JSX_2.Element;
153
+
154
+ declare type FiveThreeSplitContentLayoutProps = {
155
+ leftContent: React.ReactNode;
156
+ rightContent: React.ReactNode;
157
+ containerProps?: GridProps_2;
158
+ leftProps?: GridProps_2;
159
+ rightProps?: GridProps_2;
160
+ };
161
+
127
162
  export declare const FormSkeletonGrid: ({ skeletonRows, skeletonColumns, }: SkeletonGridType) => JSX_2.Element;
128
163
 
129
164
  declare type HeaderLink = {
@@ -188,6 +223,8 @@ declare type InkAttributeProps = ListItemTextProps & {
188
223
  };
189
224
  };
190
225
 
226
+ export declare function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): JSX_2.Element | undefined;
227
+
191
228
  export declare const InkCheckboxGroup: ForwardRefExoticComponent<InkCheckboxGroupProps & RefAttributes<HTMLDivElement>>;
192
229
 
193
230
  export declare class inkCheckboxGroup {
@@ -641,6 +678,7 @@ declare type IPageWrapperProps = {
641
678
  declare type LayoutDetailsProps = GridProps & {
642
679
  Header: JSX.Element;
643
680
  children: React.ReactNode;
681
+ itemProps?: GridProps;
644
682
  };
645
683
 
646
684
  export declare function LinkBreadcrumbs({ breadcrumbs }: BreadcrumbProps): JSX_2.Element;
@@ -707,11 +745,32 @@ declare interface PanelDrawerProps extends CommonDrawerProps {
707
745
  drawerType: 'panel';
708
746
  }
709
747
 
748
+ export declare function PanelWithPaperContentLayout({ children, panelContent, wrapperProps, panelProps, containerProps, itemProps, }: PanelWithPaperContentLayoutProps): JSX_2.Element;
749
+
750
+ declare type PanelWithPaperContentLayoutProps = React.PropsWithChildren<{
751
+ panelContent: React.ReactNode;
752
+ children: React.ReactNode;
753
+ wrapperProps?: BoxProps;
754
+ panelProps?: BoxProps;
755
+ containerProps?: GridProps_2;
756
+ itemProps?: GridProps_2;
757
+ }>;
758
+
710
759
  declare type PrimaryButtonType = ButtonProps & {
711
760
  label: string;
712
761
  loading?: boolean;
713
762
  };
714
763
 
764
+ export declare function SevenThreeSplitContentLayout({ leftContent, rightContent, containerProps, leftProps, rightProps, }: SevenThreeSplitContentLayoutProps): JSX_2.Element;
765
+
766
+ declare type SevenThreeSplitContentLayoutProps = {
767
+ leftContent: React.ReactNode;
768
+ rightContent: React.ReactNode;
769
+ containerProps?: GridProps_2;
770
+ leftProps?: GridProps_2;
771
+ rightProps?: GridProps_2;
772
+ };
773
+
715
774
  declare type SkeletonGridType = {
716
775
  skeletonRows: number;
717
776
  skeletonColumns: number;
@@ -719,15 +778,24 @@ declare type SkeletonGridType = {
719
778
 
720
779
  export declare function SnackbarActionButton({ closeSnackbar, label, ...buttonProps }: InkSnackbarActionButtonProps): JSX_2.Element;
721
780
 
781
+ export declare function TenColumnFullContentLayout({ children, itemProps, containerProps, }: TenColumnFullContentLayoutProps): JSX_2.Element;
782
+
783
+ declare type TenColumnFullContentLayoutProps = {
784
+ children: React.ReactNode;
785
+ containerProps?: GridProps_2;
786
+ itemProps?: GridProps_2;
787
+ };
788
+
722
789
  export declare function useCopyToClipboard(): [CopiedValue, CopyFn];
723
790
 
724
791
  declare type VariantType = 'page' | 'paper' | 'search' | 'data';
725
792
 
726
- export declare function WorkflowLayout({ Header, children, sx, ...rest }: WorkflowLayoutProps): JSX_2.Element;
793
+ export declare function WorkflowLayout({ Header, children, sx, itemProps, ...rest }: WorkflowLayoutProps): JSX_2.Element;
727
794
 
728
795
  declare type WorkflowLayoutProps = GridProps & {
729
796
  Header: JSX.Element;
730
797
  children: React.ReactNode;
798
+ itemProps?: GridProps;
731
799
  };
732
800
 
733
801
  export { }