@umituz/web-dashboard 11.12.0 → 11.13.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/package.json +13 -1
- package/src/domains/activity/activity.css +229 -0
- package/src/domains/activity/components/ActivityFeed.test.tsx +61 -0
- package/src/domains/activity/components/ActivityFeed.tsx +132 -0
- package/src/domains/activity/components/ActivityTimeline.tsx +127 -0
- package/src/domains/activity/components/index.ts +2 -0
- package/src/domains/activity/index.ts +3 -0
- package/src/domains/activity/types.ts +59 -0
- package/src/domains/activity/utils.ts +73 -0
- package/src/domains/filters/components/DataToolbar.test.tsx +65 -0
- package/src/domains/filters/components/DataToolbar.tsx +119 -0
- package/src/domains/filters/components/index.ts +1 -0
- package/src/domains/filters/filters.css +128 -0
- package/src/domains/filters/index.ts +2 -0
- package/src/domains/filters/types.ts +48 -0
- package/src/domains/pages/components/DetailPage.test.tsx +96 -0
- package/src/domains/pages/components/DetailPage.tsx +227 -0
- package/src/domains/pages/components/index.ts +1 -0
- package/src/domains/pages/types.ts +60 -0
- package/src/domains/stepper/components/Stepper.test.tsx +71 -0
- package/src/domains/stepper/components/Stepper.tsx +74 -0
- package/src/domains/stepper/components/Wizard.tsx +84 -0
- package/src/domains/stepper/components/index.ts +2 -0
- package/src/domains/stepper/index.ts +2 -0
- package/src/domains/stepper/stepper.css +145 -0
- package/src/domains/stepper/types.ts +38 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface StepItem {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly description?: string;
|
|
7
|
+
readonly icon?: ReactNode;
|
|
8
|
+
readonly optional?: boolean;
|
|
9
|
+
readonly disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface StepperProps {
|
|
13
|
+
readonly steps: readonly StepItem[] | readonly string[];
|
|
14
|
+
readonly currentStep: number;
|
|
15
|
+
readonly failStep?: number;
|
|
16
|
+
readonly orientation?: 'horizontal' | 'vertical';
|
|
17
|
+
readonly clickable?: boolean;
|
|
18
|
+
readonly onStepClick?: (stepIndex: number) => void;
|
|
19
|
+
readonly className?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface WizardProps {
|
|
23
|
+
readonly title?: ReactNode;
|
|
24
|
+
readonly description?: ReactNode;
|
|
25
|
+
readonly steps: readonly StepItem[] | readonly string[];
|
|
26
|
+
readonly currentStep: number;
|
|
27
|
+
readonly onStepChange: (nextStep: number) => void;
|
|
28
|
+
readonly onFinish?: () => void;
|
|
29
|
+
readonly onCancel?: () => void;
|
|
30
|
+
readonly orientation?: 'horizontal' | 'vertical';
|
|
31
|
+
readonly isNextDisabled?: boolean;
|
|
32
|
+
readonly isSubmitting?: boolean;
|
|
33
|
+
readonly nextLabel?: string;
|
|
34
|
+
readonly backLabel?: string;
|
|
35
|
+
readonly finishLabel?: string;
|
|
36
|
+
readonly children: ReactNode;
|
|
37
|
+
readonly className?: string;
|
|
38
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,9 @@ export * from './domains/pages';
|
|
|
3
3
|
export * from './domains/settings';
|
|
4
4
|
export * from './domains/calendar';
|
|
5
5
|
export * from './domains/kanban';
|
|
6
|
+
export * from './domains/activity';
|
|
7
|
+
export * from './domains/filters';
|
|
8
|
+
export * from './domains/stepper';
|
|
6
9
|
export * from './domains/permissions';
|
|
7
10
|
export * from './domains/organization';
|
|
8
11
|
export * from './domains/tour';
|