@orion-ds/react 1.1.6 → 1.2.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/README.md +3 -3
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.types.d.ts +1 -1
- package/dist/components/Avatar/Avatar.types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +32 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.types.d.ts +190 -0
- package/dist/components/Carousel/Carousel.types.d.ts.map +1 -0
- package/dist/components/Carousel/CarouselCard.d.ts +12 -0
- package/dist/components/Carousel/CarouselCard.d.ts.map +1 -0
- package/dist/components/Carousel/index.d.ts +10 -0
- package/dist/components/Carousel/index.d.ts.map +1 -0
- package/dist/components/IconGallery/IconGallery.d.ts +5 -7
- package/dist/components/IconGallery/IconGallery.d.ts.map +1 -1
- package/dist/components/IconGallery/IconGallery.types.d.ts +5 -25
- package/dist/components/IconGallery/IconGallery.types.d.ts.map +1 -1
- package/dist/components/IconGallery/index.d.ts +1 -1
- package/dist/components/IconGallery/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +17979 -14385
- package/dist/index.mjs.map +1 -1
- package/dist/react.css +1 -1
- package/dist/sections/ActivityFeed/ActivityFeed.d.ts +24 -0
- package/dist/sections/ActivityFeed/ActivityFeed.d.ts.map +1 -0
- package/dist/sections/ActivityFeed/ActivityFeed.types.d.ts +160 -0
- package/dist/sections/ActivityFeed/ActivityFeed.types.d.ts.map +1 -0
- package/dist/sections/ActivityFeed/index.d.ts +3 -0
- package/dist/sections/ActivityFeed/index.d.ts.map +1 -0
- package/dist/sections/Breadcrumbs/Breadcrumbs.d.ts +20 -0
- package/dist/sections/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/sections/Breadcrumbs/Breadcrumbs.types.d.ts +83 -0
- package/dist/sections/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -0
- package/dist/sections/Breadcrumbs/index.d.ts +3 -0
- package/dist/sections/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/sections/CarouselSection/CarouselSection.d.ts +35 -0
- package/dist/sections/CarouselSection/CarouselSection.d.ts.map +1 -0
- package/dist/sections/CarouselSection/CarouselSection.types.d.ts +119 -0
- package/dist/sections/CarouselSection/CarouselSection.types.d.ts.map +1 -0
- package/dist/sections/CarouselSection/index.d.ts +11 -0
- package/dist/sections/CarouselSection/index.d.ts.map +1 -0
- package/dist/sections/CommandBar/CommandBar.d.ts +20 -0
- package/dist/sections/CommandBar/CommandBar.d.ts.map +1 -0
- package/dist/sections/CommandBar/CommandBar.types.d.ts +113 -0
- package/dist/sections/CommandBar/CommandBar.types.d.ts.map +1 -0
- package/dist/sections/CommandBar/index.d.ts +3 -0
- package/dist/sections/CommandBar/index.d.ts.map +1 -0
- package/dist/sections/DataTable/DataTable.d.ts +28 -0
- package/dist/sections/DataTable/DataTable.d.ts.map +1 -0
- package/dist/sections/DataTable/DataTable.types.d.ts +368 -0
- package/dist/sections/DataTable/DataTable.types.d.ts.map +1 -0
- package/dist/sections/DataTable/index.d.ts +3 -0
- package/dist/sections/DataTable/index.d.ts.map +1 -0
- package/dist/sections/DetailPanel/DetailPanel.d.ts +21 -0
- package/dist/sections/DetailPanel/DetailPanel.d.ts.map +1 -0
- package/dist/sections/DetailPanel/DetailPanel.types.d.ts +95 -0
- package/dist/sections/DetailPanel/DetailPanel.types.d.ts.map +1 -0
- package/dist/sections/DetailPanel/index.d.ts +3 -0
- package/dist/sections/DetailPanel/index.d.ts.map +1 -0
- package/dist/sections/EmptyState/EmptyState.d.ts +19 -0
- package/dist/sections/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/sections/EmptyState/EmptyState.types.d.ts +70 -0
- package/dist/sections/EmptyState/EmptyState.types.d.ts.map +1 -0
- package/dist/sections/EmptyState/index.d.ts +3 -0
- package/dist/sections/EmptyState/index.d.ts.map +1 -0
- package/dist/sections/FileUploader/FileUploader.d.ts +19 -0
- package/dist/sections/FileUploader/FileUploader.d.ts.map +1 -0
- package/dist/sections/FileUploader/FileUploader.types.d.ts +129 -0
- package/dist/sections/FileUploader/FileUploader.types.d.ts.map +1 -0
- package/dist/sections/FileUploader/index.d.ts +3 -0
- package/dist/sections/FileUploader/index.d.ts.map +1 -0
- package/dist/sections/FilterBar/FilterBar.d.ts +21 -0
- package/dist/sections/FilterBar/FilterBar.d.ts.map +1 -0
- package/dist/sections/FilterBar/FilterBar.types.d.ts +144 -0
- package/dist/sections/FilterBar/FilterBar.types.d.ts.map +1 -0
- package/dist/sections/FilterBar/index.d.ts +3 -0
- package/dist/sections/FilterBar/index.d.ts.map +1 -0
- package/dist/sections/FormSection/FormSection.d.ts +27 -0
- package/dist/sections/FormSection/FormSection.d.ts.map +1 -0
- package/dist/sections/FormSection/FormSection.types.d.ts +112 -0
- package/dist/sections/FormSection/FormSection.types.d.ts.map +1 -0
- package/dist/sections/FormSection/index.d.ts +3 -0
- package/dist/sections/FormSection/index.d.ts.map +1 -0
- package/dist/sections/Hero/Hero.d.ts +18 -1
- package/dist/sections/Hero/Hero.d.ts.map +1 -1
- package/dist/sections/Hero/Hero.types.d.ts +70 -1
- package/dist/sections/Hero/Hero.types.d.ts.map +1 -1
- package/dist/sections/Hero/HeroHighlight.d.ts +19 -0
- package/dist/sections/Hero/HeroHighlight.d.ts.map +1 -0
- package/dist/sections/Hero/index.d.ts +2 -1
- package/dist/sections/Hero/index.d.ts.map +1 -1
- package/dist/sections/KanbanBoard/KanbanBoard.d.ts +20 -0
- package/dist/sections/KanbanBoard/KanbanBoard.d.ts.map +1 -0
- package/dist/sections/KanbanBoard/KanbanBoard.types.d.ts +190 -0
- package/dist/sections/KanbanBoard/KanbanBoard.types.d.ts.map +1 -0
- package/dist/sections/KanbanBoard/index.d.ts +3 -0
- package/dist/sections/KanbanBoard/index.d.ts.map +1 -0
- package/dist/sections/MetricCards/MetricCards.d.ts +23 -0
- package/dist/sections/MetricCards/MetricCards.d.ts.map +1 -0
- package/dist/sections/MetricCards/MetricCards.types.d.ts +139 -0
- package/dist/sections/MetricCards/MetricCards.types.d.ts.map +1 -0
- package/dist/sections/MetricCards/index.d.ts +3 -0
- package/dist/sections/MetricCards/index.d.ts.map +1 -0
- package/dist/sections/NotificationCenter/NotificationCenter.d.ts +18 -0
- package/dist/sections/NotificationCenter/NotificationCenter.d.ts.map +1 -0
- package/dist/sections/NotificationCenter/NotificationCenter.types.d.ts +126 -0
- package/dist/sections/NotificationCenter/NotificationCenter.types.d.ts.map +1 -0
- package/dist/sections/NotificationCenter/index.d.ts +3 -0
- package/dist/sections/NotificationCenter/index.d.ts.map +1 -0
- package/dist/sections/PageHeader/PageHeader.d.ts +22 -0
- package/dist/sections/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/sections/PageHeader/PageHeader.types.d.ts +135 -0
- package/dist/sections/PageHeader/PageHeader.types.d.ts.map +1 -0
- package/dist/sections/PageHeader/index.d.ts +3 -0
- package/dist/sections/PageHeader/index.d.ts.map +1 -0
- package/dist/sections/QuickActions/QuickActions.d.ts +19 -0
- package/dist/sections/QuickActions/QuickActions.d.ts.map +1 -0
- package/dist/sections/QuickActions/QuickActions.types.d.ts +112 -0
- package/dist/sections/QuickActions/QuickActions.types.d.ts.map +1 -0
- package/dist/sections/QuickActions/index.d.ts +3 -0
- package/dist/sections/QuickActions/index.d.ts.map +1 -0
- package/dist/sections/SettingsLayout/SettingsLayout.d.ts +22 -0
- package/dist/sections/SettingsLayout/SettingsLayout.d.ts.map +1 -0
- package/dist/sections/SettingsLayout/SettingsLayout.types.d.ts +117 -0
- package/dist/sections/SettingsLayout/SettingsLayout.types.d.ts.map +1 -0
- package/dist/sections/SettingsLayout/index.d.ts +3 -0
- package/dist/sections/SettingsLayout/index.d.ts.map +1 -0
- package/dist/sections/Sidebar/Sidebar.d.ts +29 -0
- package/dist/sections/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/sections/Sidebar/Sidebar.types.d.ts +168 -0
- package/dist/sections/Sidebar/Sidebar.types.d.ts.map +1 -0
- package/dist/sections/Sidebar/index.d.ts +3 -0
- package/dist/sections/Sidebar/index.d.ts.map +1 -0
- package/dist/sections/Stats/StatItemCard.d.ts +1 -1
- package/dist/sections/Stats/StatItemCard.d.ts.map +1 -1
- package/dist/sections/Stats/Stats.d.ts.map +1 -1
- package/dist/sections/Stats/Stats.types.d.ts +10 -0
- package/dist/sections/Stats/Stats.types.d.ts.map +1 -1
- package/dist/sections/Stepper/Stepper.d.ts +22 -0
- package/dist/sections/Stepper/Stepper.d.ts.map +1 -0
- package/dist/sections/Stepper/Stepper.types.d.ts +106 -0
- package/dist/sections/Stepper/Stepper.types.d.ts.map +1 -0
- package/dist/sections/Stepper/index.d.ts +3 -0
- package/dist/sections/Stepper/index.d.ts.map +1 -0
- package/dist/sections/Team/Team.types.d.ts +9 -1
- package/dist/sections/Team/Team.types.d.ts.map +1 -1
- package/dist/sections/Team/TeamMemberCard.d.ts.map +1 -1
- package/dist/sections/UserMenu/UserMenu.d.ts +19 -0
- package/dist/sections/UserMenu/UserMenu.d.ts.map +1 -0
- package/dist/sections/UserMenu/UserMenu.types.d.ts +138 -0
- package/dist/sections/UserMenu/UserMenu.types.d.ts.map +1 -0
- package/dist/sections/UserMenu/index.d.ts +3 -0
- package/dist/sections/UserMenu/index.d.ts.map +1 -0
- package/dist/sections/index.d.ts +41 -2
- package/dist/sections/index.d.ts.map +1 -1
- package/dist/templates/app/DashboardTemplate/DashboardTemplate.d.ts +28 -0
- package/dist/templates/app/DashboardTemplate/DashboardTemplate.d.ts.map +1 -0
- package/dist/templates/app/DashboardTemplate/DashboardTemplate.types.d.ts +62 -0
- package/dist/templates/app/DashboardTemplate/DashboardTemplate.types.d.ts.map +1 -0
- package/dist/templates/app/DashboardTemplate/index.d.ts +3 -0
- package/dist/templates/app/DashboardTemplate/index.d.ts.map +1 -0
- package/dist/templates/app/KanbanPageTemplate/KanbanPageTemplate.d.ts +25 -0
- package/dist/templates/app/KanbanPageTemplate/KanbanPageTemplate.d.ts.map +1 -0
- package/dist/templates/app/KanbanPageTemplate/KanbanPageTemplate.types.d.ts +47 -0
- package/dist/templates/app/KanbanPageTemplate/KanbanPageTemplate.types.d.ts.map +1 -0
- package/dist/templates/app/KanbanPageTemplate/index.d.ts +3 -0
- package/dist/templates/app/KanbanPageTemplate/index.d.ts.map +1 -0
- package/dist/templates/app/ProfilePageTemplate/ProfilePageTemplate.d.ts +30 -0
- package/dist/templates/app/ProfilePageTemplate/ProfilePageTemplate.d.ts.map +1 -0
- package/dist/templates/app/ProfilePageTemplate/ProfilePageTemplate.types.d.ts +90 -0
- package/dist/templates/app/ProfilePageTemplate/ProfilePageTemplate.types.d.ts.map +1 -0
- package/dist/templates/app/ProfilePageTemplate/index.d.ts +3 -0
- package/dist/templates/app/ProfilePageTemplate/index.d.ts.map +1 -0
- package/dist/templates/app/SettingsTemplate/SettingsTemplate.d.ts +27 -0
- package/dist/templates/app/SettingsTemplate/SettingsTemplate.d.ts.map +1 -0
- package/dist/templates/app/SettingsTemplate/SettingsTemplate.types.d.ts +71 -0
- package/dist/templates/app/SettingsTemplate/SettingsTemplate.types.d.ts.map +1 -0
- package/dist/templates/app/SettingsTemplate/index.d.ts +3 -0
- package/dist/templates/app/SettingsTemplate/index.d.ts.map +1 -0
- package/dist/templates/app/index.d.ts +14 -0
- package/dist/templates/app/index.d.ts.map +1 -0
- package/dist/templates/index.d.ts +38 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/marketing/AboutPageTemplate/AboutPageTemplate.d.ts +25 -0
- package/dist/templates/marketing/AboutPageTemplate/AboutPageTemplate.d.ts.map +1 -0
- package/dist/templates/marketing/AboutPageTemplate/AboutPageTemplate.types.d.ts +71 -0
- package/dist/templates/marketing/AboutPageTemplate/AboutPageTemplate.types.d.ts.map +1 -0
- package/dist/templates/marketing/AboutPageTemplate/index.d.ts +3 -0
- package/dist/templates/marketing/AboutPageTemplate/index.d.ts.map +1 -0
- package/dist/templates/marketing/ContactPageTemplate/ContactPageTemplate.d.ts +24 -0
- package/dist/templates/marketing/ContactPageTemplate/ContactPageTemplate.d.ts.map +1 -0
- package/dist/templates/marketing/ContactPageTemplate/ContactPageTemplate.types.d.ts +60 -0
- package/dist/templates/marketing/ContactPageTemplate/ContactPageTemplate.types.d.ts.map +1 -0
- package/dist/templates/marketing/ContactPageTemplate/index.d.ts +3 -0
- package/dist/templates/marketing/ContactPageTemplate/index.d.ts.map +1 -0
- package/dist/templates/marketing/LandingPageTemplate/LandingPageTemplate.d.ts +25 -0
- package/dist/templates/marketing/LandingPageTemplate/LandingPageTemplate.d.ts.map +1 -0
- package/dist/templates/marketing/LandingPageTemplate/LandingPageTemplate.types.d.ts +93 -0
- package/dist/templates/marketing/LandingPageTemplate/LandingPageTemplate.types.d.ts.map +1 -0
- package/dist/templates/marketing/LandingPageTemplate/index.d.ts +3 -0
- package/dist/templates/marketing/LandingPageTemplate/index.d.ts.map +1 -0
- package/dist/templates/marketing/PricingPageTemplate/PricingPageTemplate.d.ts +24 -0
- package/dist/templates/marketing/PricingPageTemplate/PricingPageTemplate.d.ts.map +1 -0
- package/dist/templates/marketing/PricingPageTemplate/PricingPageTemplate.types.d.ts +67 -0
- package/dist/templates/marketing/PricingPageTemplate/PricingPageTemplate.types.d.ts.map +1 -0
- package/dist/templates/marketing/PricingPageTemplate/index.d.ts +3 -0
- package/dist/templates/marketing/PricingPageTemplate/index.d.ts.map +1 -0
- package/dist/templates/marketing/index.d.ts +14 -0
- package/dist/templates/marketing/index.d.ts.map +1 -0
- package/dist/utils/fonts.d.ts +2 -2
- package/dist/utils/fonts.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KanbanBoard Component
|
|
3
|
+
*
|
|
4
|
+
* A drag-and-drop board for task management (Trello/Linear style).
|
|
5
|
+
* Optimized for Product Mode with efficient task visualization.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <KanbanBoard
|
|
10
|
+
* columns={[
|
|
11
|
+
* { id: 'todo', title: 'To Do', cards: todoCards },
|
|
12
|
+
* { id: 'done', title: 'Done', cards: doneCards }
|
|
13
|
+
* ]}
|
|
14
|
+
* onCardClick={(card) => openDetail(card)}
|
|
15
|
+
* />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import type { KanbanBoardProps } from './KanbanBoard.types';
|
|
19
|
+
export declare const KanbanBoard: import("react").ForwardRefExoticComponent<KanbanBoardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
//# sourceMappingURL=KanbanBoard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../src/sections/KanbanBoard/KanbanBoard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAA4B,MAAM,qBAAqB,CAAC;AA0MtF,eAAO,MAAM,WAAW,6GAiDvB,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KanbanBoard Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion KanbanBoard section component.
|
|
5
|
+
* A drag-and-drop board for task management (Trello/Linear style).
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Kanban card/item
|
|
10
|
+
*/
|
|
11
|
+
export interface KanbanCard {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Card title
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Card description
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Labels/tags
|
|
26
|
+
*/
|
|
27
|
+
labels?: KanbanLabel[];
|
|
28
|
+
/**
|
|
29
|
+
* Assigned users
|
|
30
|
+
*/
|
|
31
|
+
assignees?: KanbanAssignee[];
|
|
32
|
+
/**
|
|
33
|
+
* Due date
|
|
34
|
+
*/
|
|
35
|
+
dueDate?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Priority level
|
|
38
|
+
*/
|
|
39
|
+
priority?: 'low' | 'medium' | 'high' | 'urgent';
|
|
40
|
+
/**
|
|
41
|
+
* Custom metadata
|
|
42
|
+
*/
|
|
43
|
+
metadata?: Record<string, ReactNode>;
|
|
44
|
+
/**
|
|
45
|
+
* Cover image URL
|
|
46
|
+
*/
|
|
47
|
+
coverImage?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Kanban label
|
|
51
|
+
*/
|
|
52
|
+
export interface KanbanLabel {
|
|
53
|
+
/**
|
|
54
|
+
* Label ID
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Label text
|
|
59
|
+
*/
|
|
60
|
+
text: string;
|
|
61
|
+
/**
|
|
62
|
+
* Label color
|
|
63
|
+
*/
|
|
64
|
+
color: 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'gray';
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Kanban assignee
|
|
68
|
+
*/
|
|
69
|
+
export interface KanbanAssignee {
|
|
70
|
+
/**
|
|
71
|
+
* User ID
|
|
72
|
+
*/
|
|
73
|
+
id: string;
|
|
74
|
+
/**
|
|
75
|
+
* User name
|
|
76
|
+
*/
|
|
77
|
+
name: string;
|
|
78
|
+
/**
|
|
79
|
+
* Avatar URL
|
|
80
|
+
*/
|
|
81
|
+
avatar?: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Kanban column
|
|
85
|
+
*/
|
|
86
|
+
export interface KanbanColumn {
|
|
87
|
+
/**
|
|
88
|
+
* Column ID
|
|
89
|
+
*/
|
|
90
|
+
id: string;
|
|
91
|
+
/**
|
|
92
|
+
* Column title
|
|
93
|
+
*/
|
|
94
|
+
title: string;
|
|
95
|
+
/**
|
|
96
|
+
* Column color/variant
|
|
97
|
+
*/
|
|
98
|
+
color?: 'default' | 'blue' | 'green' | 'yellow' | 'red' | 'purple';
|
|
99
|
+
/**
|
|
100
|
+
* Cards in this column
|
|
101
|
+
*/
|
|
102
|
+
cards: KanbanCard[];
|
|
103
|
+
/**
|
|
104
|
+
* Max cards limit (WIP limit)
|
|
105
|
+
*/
|
|
106
|
+
limit?: number;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Drag result for move operations
|
|
110
|
+
*/
|
|
111
|
+
export interface KanbanDragResult {
|
|
112
|
+
/**
|
|
113
|
+
* Card that was moved
|
|
114
|
+
*/
|
|
115
|
+
cardId: string;
|
|
116
|
+
/**
|
|
117
|
+
* Source column ID
|
|
118
|
+
*/
|
|
119
|
+
sourceColumnId: string;
|
|
120
|
+
/**
|
|
121
|
+
* Source index
|
|
122
|
+
*/
|
|
123
|
+
sourceIndex: number;
|
|
124
|
+
/**
|
|
125
|
+
* Destination column ID
|
|
126
|
+
*/
|
|
127
|
+
destinationColumnId: string;
|
|
128
|
+
/**
|
|
129
|
+
* Destination index
|
|
130
|
+
*/
|
|
131
|
+
destinationIndex: number;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* KanbanBoard section props
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```tsx
|
|
138
|
+
* <KanbanBoard
|
|
139
|
+
* columns={[
|
|
140
|
+
* { id: 'todo', title: 'To Do', cards: [...] },
|
|
141
|
+
* { id: 'in-progress', title: 'In Progress', cards: [...] },
|
|
142
|
+
* { id: 'done', title: 'Done', cards: [...] }
|
|
143
|
+
* ]}
|
|
144
|
+
* onCardMove={handleCardMove}
|
|
145
|
+
* onCardClick={handleCardClick}
|
|
146
|
+
* />
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
export interface KanbanBoardProps extends HTMLAttributes<HTMLDivElement> {
|
|
150
|
+
/**
|
|
151
|
+
* Board columns
|
|
152
|
+
*/
|
|
153
|
+
columns: KanbanColumn[];
|
|
154
|
+
/**
|
|
155
|
+
* Card move handler
|
|
156
|
+
*/
|
|
157
|
+
onCardMove?: (result: KanbanDragResult) => void;
|
|
158
|
+
/**
|
|
159
|
+
* Card click handler
|
|
160
|
+
*/
|
|
161
|
+
onCardClick?: (card: KanbanCard, columnId: string) => void;
|
|
162
|
+
/**
|
|
163
|
+
* Add card handler (shows add button if provided)
|
|
164
|
+
*/
|
|
165
|
+
onAddCard?: (columnId: string) => void;
|
|
166
|
+
/**
|
|
167
|
+
* Add column handler (shows add column button if provided)
|
|
168
|
+
*/
|
|
169
|
+
onAddColumn?: () => void;
|
|
170
|
+
/**
|
|
171
|
+
* Column menu handler
|
|
172
|
+
*/
|
|
173
|
+
onColumnMenu?: (columnId: string) => void;
|
|
174
|
+
/**
|
|
175
|
+
* Compact card display
|
|
176
|
+
* @default false
|
|
177
|
+
*/
|
|
178
|
+
compact?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Show card count in column headers
|
|
181
|
+
* @default true
|
|
182
|
+
*/
|
|
183
|
+
showCardCount?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Enable drag and drop (visual only - actual DnD needs external library)
|
|
186
|
+
* @default true
|
|
187
|
+
*/
|
|
188
|
+
draggable?: boolean;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=KanbanBoard.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kanban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
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/KanbanBoard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,cAAc,EACd,gBAAgB,GACjB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MetricCards Component
|
|
3
|
+
*
|
|
4
|
+
* A row of KPI cards for dashboard overviews.
|
|
5
|
+
* Optimized for Product Mode with minimal visual noise and data density.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <MetricCards
|
|
10
|
+
* metrics={[
|
|
11
|
+
* { label: 'Revenue', value: '$12,345', change: { value: '+12%', positive: true } },
|
|
12
|
+
* { label: 'Users', value: '1,234', change: { value: '+5%', positive: true } },
|
|
13
|
+
* { label: 'Conversion', value: '3.2%', change: { value: '-0.5%', positive: false } }
|
|
14
|
+
* ]}
|
|
15
|
+
* columns={3}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import type { MetricCardsProps, MetricCardProps } from './MetricCards.types';
|
|
20
|
+
declare const MetricCard: import("react").ForwardRefExoticComponent<MetricCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export declare const MetricCards: import("react").ForwardRefExoticComponent<MetricCardsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export { MetricCard };
|
|
23
|
+
//# sourceMappingURL=MetricCards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCards.d.ts","sourceRoot":"","sources":["../../../src/sections/MetricCards/MetricCards.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA8C7E,QAAA,MAAM,UAAU,4GAoGf,CAAC;AAKF,eAAO,MAAM,WAAW,6GAiCvB,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MetricCards Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion MetricCards section component.
|
|
5
|
+
* Designed for Product Mode (SaaS dashboards) KPI displays.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Trend indicator for a metric
|
|
10
|
+
*/
|
|
11
|
+
export interface MetricTrend {
|
|
12
|
+
/**
|
|
13
|
+
* Trend value (e.g., "+12%", "-5%")
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the trend is positive
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
positive?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Comparison period label (e.g., "vs last month")
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Sparkline data point
|
|
28
|
+
*/
|
|
29
|
+
export type SparklineData = number[];
|
|
30
|
+
/**
|
|
31
|
+
* Individual metric item
|
|
32
|
+
*/
|
|
33
|
+
export interface MetricItem {
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier
|
|
36
|
+
*/
|
|
37
|
+
id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Metric label
|
|
40
|
+
*/
|
|
41
|
+
label: string;
|
|
42
|
+
/**
|
|
43
|
+
* Main value (e.g., "$12,345", "89%", "1,234")
|
|
44
|
+
*/
|
|
45
|
+
value: string | number;
|
|
46
|
+
/**
|
|
47
|
+
* Optional change/trend indicator
|
|
48
|
+
*/
|
|
49
|
+
change?: MetricTrend;
|
|
50
|
+
/**
|
|
51
|
+
* Optional icon element
|
|
52
|
+
*/
|
|
53
|
+
icon?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Optional sparkline data
|
|
56
|
+
*/
|
|
57
|
+
sparkline?: SparklineData;
|
|
58
|
+
/**
|
|
59
|
+
* Optional link to detailed view
|
|
60
|
+
*/
|
|
61
|
+
href?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Click handler (alternative to href)
|
|
64
|
+
*/
|
|
65
|
+
onClick?: () => void;
|
|
66
|
+
/**
|
|
67
|
+
* Additional description
|
|
68
|
+
*/
|
|
69
|
+
description?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Loading state for this metric
|
|
72
|
+
*/
|
|
73
|
+
loading?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* MetricCards column count
|
|
77
|
+
*/
|
|
78
|
+
export type MetricCardsColumns = 2 | 3 | 4 | 5;
|
|
79
|
+
/**
|
|
80
|
+
* MetricCards visual variant
|
|
81
|
+
*/
|
|
82
|
+
export type MetricCardsVariant = 'default' | 'compact' | 'detailed';
|
|
83
|
+
/**
|
|
84
|
+
* MetricCards section props
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```tsx
|
|
88
|
+
* <MetricCards
|
|
89
|
+
* metrics={[
|
|
90
|
+
* { label: 'Revenue', value: '$12,345', change: { value: '+12%', positive: true } },
|
|
91
|
+
* { label: 'Users', value: '1,234', change: { value: '+5%', positive: true } },
|
|
92
|
+
* { label: 'Conversion', value: '3.2%', change: { value: '-0.5%', positive: false } }
|
|
93
|
+
* ]}
|
|
94
|
+
* columns={3}
|
|
95
|
+
* />
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export interface MetricCardsProps extends HTMLAttributes<HTMLDivElement> {
|
|
99
|
+
/**
|
|
100
|
+
* Array of metric items
|
|
101
|
+
*/
|
|
102
|
+
metrics: MetricItem[];
|
|
103
|
+
/**
|
|
104
|
+
* Number of grid columns
|
|
105
|
+
* @default 4
|
|
106
|
+
*/
|
|
107
|
+
columns?: MetricCardsColumns;
|
|
108
|
+
/**
|
|
109
|
+
* Visual variant
|
|
110
|
+
* - default: Standard cards with borders
|
|
111
|
+
* - compact: Smaller padding and text
|
|
112
|
+
* - detailed: Includes sparklines and descriptions
|
|
113
|
+
* @default 'default'
|
|
114
|
+
*/
|
|
115
|
+
variant?: MetricCardsVariant;
|
|
116
|
+
/**
|
|
117
|
+
* Loading state for all cards
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
loading?: boolean;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Individual MetricCard props (internal component)
|
|
124
|
+
*/
|
|
125
|
+
export interface MetricCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
126
|
+
/**
|
|
127
|
+
* Metric data
|
|
128
|
+
*/
|
|
129
|
+
metric: MetricItem;
|
|
130
|
+
/**
|
|
131
|
+
* Visual variant
|
|
132
|
+
*/
|
|
133
|
+
variant?: MetricCardsVariant;
|
|
134
|
+
/**
|
|
135
|
+
* Loading state
|
|
136
|
+
*/
|
|
137
|
+
loading?: boolean;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=MetricCards.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCards.types.d.ts","sourceRoot":"","sources":["../../../src/sections/MetricCards/MetricCards.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,EAAE,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,UAAU;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,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/MetricCards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationCenter Component
|
|
3
|
+
*
|
|
4
|
+
* A notification panel/dropdown for SaaS applications.
|
|
5
|
+
* Optimized for Product Mode with efficient notification management.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <NotificationCenter
|
|
10
|
+
* notifications={notifications}
|
|
11
|
+
* onMarkAsRead={handleMarkAsRead}
|
|
12
|
+
* onMarkAllAsRead={handleMarkAllAsRead}
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import type { NotificationCenterProps } from './NotificationCenter.types';
|
|
17
|
+
export declare const NotificationCenter: import("react").ForwardRefExoticComponent<NotificationCenterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
//# sourceMappingURL=NotificationCenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/sections/NotificationCenter/NotificationCenter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,KAAK,EAAE,uBAAuB,EAAoB,MAAM,4BAA4B,CAAC;AAsH5F,eAAO,MAAM,kBAAkB,oHA+H9B,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationCenter Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion NotificationCenter section component.
|
|
5
|
+
* A notification panel/dropdown for SaaS applications.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Notification item
|
|
10
|
+
*/
|
|
11
|
+
export interface NotificationItem {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Notification type
|
|
18
|
+
*/
|
|
19
|
+
type?: 'info' | 'success' | 'warning' | 'error' | 'default';
|
|
20
|
+
/**
|
|
21
|
+
* Notification title
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
* Notification message
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom icon (overrides type-based icon)
|
|
30
|
+
*/
|
|
31
|
+
icon?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Timestamp
|
|
34
|
+
*/
|
|
35
|
+
timestamp: string;
|
|
36
|
+
/**
|
|
37
|
+
* Relative time (e.g., "2 min ago")
|
|
38
|
+
*/
|
|
39
|
+
relativeTime?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Read state
|
|
42
|
+
*/
|
|
43
|
+
read?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Action URL or click handler
|
|
46
|
+
*/
|
|
47
|
+
href?: string;
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Avatar/image for the notification
|
|
51
|
+
*/
|
|
52
|
+
avatar?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Category for grouping
|
|
55
|
+
*/
|
|
56
|
+
category?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* NotificationCenter section props
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* <NotificationCenter
|
|
64
|
+
* notifications={[
|
|
65
|
+
* { id: '1', type: 'info', title: 'New message', message: 'You have a new message', relativeTime: '2 min ago' }
|
|
66
|
+
* ]}
|
|
67
|
+
* onMarkAsRead={(id) => markAsRead(id)}
|
|
68
|
+
* onMarkAllAsRead={() => markAllAsRead()}
|
|
69
|
+
* />
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export interface NotificationCenterProps extends HTMLAttributes<HTMLDivElement> {
|
|
73
|
+
/**
|
|
74
|
+
* Notification items
|
|
75
|
+
*/
|
|
76
|
+
notifications: NotificationItem[];
|
|
77
|
+
/**
|
|
78
|
+
* Mark single notification as read
|
|
79
|
+
*/
|
|
80
|
+
onMarkAsRead?: (id: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Mark all notifications as read
|
|
83
|
+
*/
|
|
84
|
+
onMarkAllAsRead?: () => void;
|
|
85
|
+
/**
|
|
86
|
+
* Delete/dismiss notification
|
|
87
|
+
*/
|
|
88
|
+
onDismiss?: (id: string) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Clear all notifications
|
|
91
|
+
*/
|
|
92
|
+
onClearAll?: () => void;
|
|
93
|
+
/**
|
|
94
|
+
* View all link/action
|
|
95
|
+
*/
|
|
96
|
+
onViewAll?: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Header title
|
|
99
|
+
* @default "Notifications"
|
|
100
|
+
*/
|
|
101
|
+
title?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Empty state message
|
|
104
|
+
* @default "No notifications"
|
|
105
|
+
*/
|
|
106
|
+
emptyMessage?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Loading state
|
|
109
|
+
*/
|
|
110
|
+
loading?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Maximum height before scrolling
|
|
113
|
+
*/
|
|
114
|
+
maxHeight?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Group notifications by category
|
|
117
|
+
* @default false
|
|
118
|
+
*/
|
|
119
|
+
groupByCategory?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Show unread count badge
|
|
122
|
+
* @default true
|
|
123
|
+
*/
|
|
124
|
+
showUnreadCount?: boolean;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=NotificationCenter.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationCenter.types.d.ts","sourceRoot":"","sources":["../../../src/sections/NotificationCenter/NotificationCenter.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAE5D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAElC;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/NotificationCenter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EACV,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageHeader Component
|
|
3
|
+
*
|
|
4
|
+
* A page header for SaaS dashboards with breadcrumbs, title, description, and actions.
|
|
5
|
+
* Optimized for Product Mode with minimal visual noise and clear hierarchy.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <PageHeader
|
|
10
|
+
* breadcrumbs={[
|
|
11
|
+
* { label: 'Dashboard', href: '/' },
|
|
12
|
+
* { label: 'Users' }
|
|
13
|
+
* ]}
|
|
14
|
+
* title="Users"
|
|
15
|
+
* description="Manage user accounts and permissions"
|
|
16
|
+
* actions={<Button>Add User</Button>}
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
import type { PageHeaderProps } from './PageHeader.types';
|
|
21
|
+
export declare const PageHeader: import("react").ForwardRefExoticComponent<PageHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/sections/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,eAAO,MAAM,UAAU,4GAsItB,CAAC"}
|