enwawa-ui 3.3.4 → 3.4.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.
- package/lib/index.d.ts +47 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +138 -71
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +138 -71
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -2061,6 +2061,14 @@ export interface OrCardWithTitleProps {
|
|
|
2061
2061
|
* bordered title
|
|
2062
2062
|
*/
|
|
2063
2063
|
borderedTitle?: boolean;
|
|
2064
|
+
/**
|
|
2065
|
+
* edit button config
|
|
2066
|
+
*/
|
|
2067
|
+
editButtonConfig?: {
|
|
2068
|
+
showEditButton: boolean;
|
|
2069
|
+
label: string;
|
|
2070
|
+
onClick: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
2071
|
+
};
|
|
2064
2072
|
}
|
|
2065
2073
|
export const OrCardWithTitle: React.FC<OrCardWithTitleProps>;
|
|
2066
2074
|
export interface ChartData {
|
|
@@ -4348,7 +4356,7 @@ interface IDashboardItems {
|
|
|
4348
4356
|
};
|
|
4349
4357
|
children: React.ReactNode;
|
|
4350
4358
|
}
|
|
4351
|
-
export interface TmDashboardProps {
|
|
4359
|
+
export interface TmDashboardProps<FormType = any> {
|
|
4352
4360
|
/**
|
|
4353
4361
|
* Header props
|
|
4354
4362
|
*/
|
|
@@ -4361,8 +4369,45 @@ export interface TmDashboardProps {
|
|
|
4361
4369
|
* items from right for render on the dashboard
|
|
4362
4370
|
*/
|
|
4363
4371
|
itemsRight: IDashboardItems[];
|
|
4372
|
+
/**
|
|
4373
|
+
* drawer config
|
|
4374
|
+
*/
|
|
4375
|
+
drawerConfig?: {
|
|
4376
|
+
/**
|
|
4377
|
+
* current step
|
|
4378
|
+
*/
|
|
4379
|
+
currentFormStep?: number;
|
|
4380
|
+
/**
|
|
4381
|
+
* Disable buttons drawer
|
|
4382
|
+
*/
|
|
4383
|
+
disabledButtons?: boolean;
|
|
4384
|
+
/**
|
|
4385
|
+
* Form Steps info
|
|
4386
|
+
*/
|
|
4387
|
+
formSteps?: IFormStep<FormType>[];
|
|
4388
|
+
/**
|
|
4389
|
+
* On press cancel and close button function
|
|
4390
|
+
*/
|
|
4391
|
+
handleCloseCallback?: () => void;
|
|
4392
|
+
/**
|
|
4393
|
+
* State of the drawer
|
|
4394
|
+
*/
|
|
4395
|
+
open?: boolean;
|
|
4396
|
+
/**
|
|
4397
|
+
* Drawer Title
|
|
4398
|
+
*/
|
|
4399
|
+
drawerTitle?: React.ReactNode;
|
|
4400
|
+
/**
|
|
4401
|
+
* On change form content
|
|
4402
|
+
*/
|
|
4403
|
+
onValuesChange?: OrFormProps['onValuesChange'];
|
|
4404
|
+
/**
|
|
4405
|
+
* Drawer Width
|
|
4406
|
+
*/
|
|
4407
|
+
drawerWidth?: number;
|
|
4408
|
+
};
|
|
4364
4409
|
}
|
|
4365
|
-
export const TmDashboard: ({ headerProps, itemsLeft, itemsRight }: TmDashboardProps) => import("react/jsx-runtime").JSX.Element;
|
|
4410
|
+
export const TmDashboard: ({ headerProps, itemsLeft, itemsRight, drawerConfig, }: TmDashboardProps) => import("react/jsx-runtime").JSX.Element;
|
|
4366
4411
|
export interface TmDescriptionsPageProps {
|
|
4367
4412
|
/**
|
|
4368
4413
|
* The ID for input
|