@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,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageHeader Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion PageHeader section component.
|
|
5
|
+
* Designed for Product Mode (SaaS dashboards) with breadcrumbs, actions, and tabs.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Breadcrumb item
|
|
10
|
+
*/
|
|
11
|
+
export interface BreadcrumbItem {
|
|
12
|
+
/**
|
|
13
|
+
* Display label
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* Navigation URL (optional for current item)
|
|
18
|
+
*/
|
|
19
|
+
href?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Click handler (alternative to href)
|
|
22
|
+
*/
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Tab item for page header navigation
|
|
27
|
+
*/
|
|
28
|
+
export interface PageHeaderTab {
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Display label
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* Optional badge/count
|
|
39
|
+
*/
|
|
40
|
+
badge?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Tab href for navigation
|
|
43
|
+
*/
|
|
44
|
+
href?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* PageHeader size variant
|
|
48
|
+
*/
|
|
49
|
+
export type PageHeaderSize = 'sm' | 'md' | 'lg';
|
|
50
|
+
/**
|
|
51
|
+
* PageHeader visual variant
|
|
52
|
+
*/
|
|
53
|
+
export type PageHeaderVariant = 'default' | 'compact' | 'with-tabs';
|
|
54
|
+
/**
|
|
55
|
+
* PageHeader section props
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```tsx
|
|
59
|
+
* <PageHeader
|
|
60
|
+
* breadcrumbs={[
|
|
61
|
+
* { label: 'Dashboard', href: '/' },
|
|
62
|
+
* { label: 'Users' }
|
|
63
|
+
* ]}
|
|
64
|
+
* title="Users"
|
|
65
|
+
* description="Manage user accounts and permissions"
|
|
66
|
+
* actions={<Button>Add User</Button>}
|
|
67
|
+
* />
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export interface PageHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
71
|
+
/**
|
|
72
|
+
* Page title
|
|
73
|
+
*/
|
|
74
|
+
title: ReactNode;
|
|
75
|
+
/**
|
|
76
|
+
* Optional description below title
|
|
77
|
+
*/
|
|
78
|
+
description?: ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* Breadcrumb navigation items
|
|
81
|
+
*/
|
|
82
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
83
|
+
/**
|
|
84
|
+
* Action buttons/elements aligned right
|
|
85
|
+
*/
|
|
86
|
+
actions?: ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* Tab navigation items
|
|
89
|
+
*/
|
|
90
|
+
tabs?: PageHeaderTab[];
|
|
91
|
+
/**
|
|
92
|
+
* Currently active tab ID
|
|
93
|
+
*/
|
|
94
|
+
activeTab?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Tab change handler
|
|
97
|
+
*/
|
|
98
|
+
onTabChange?: (tabId: string) => void;
|
|
99
|
+
/**
|
|
100
|
+
* Back link for navigation
|
|
101
|
+
*/
|
|
102
|
+
backLink?: {
|
|
103
|
+
label?: string;
|
|
104
|
+
href?: string;
|
|
105
|
+
onClick?: () => void;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Optional badge next to title
|
|
109
|
+
*/
|
|
110
|
+
badge?: ReactNode;
|
|
111
|
+
/**
|
|
112
|
+
* Visual variant
|
|
113
|
+
* - default: Standard layout with padding
|
|
114
|
+
* - compact: Reduced spacing
|
|
115
|
+
* - with-tabs: Includes tab navigation
|
|
116
|
+
* @default 'default'
|
|
117
|
+
*/
|
|
118
|
+
variant?: PageHeaderVariant;
|
|
119
|
+
/**
|
|
120
|
+
* Size variant
|
|
121
|
+
* @default 'md'
|
|
122
|
+
*/
|
|
123
|
+
size?: PageHeaderSize;
|
|
124
|
+
/**
|
|
125
|
+
* Show border at bottom
|
|
126
|
+
* @default true
|
|
127
|
+
*/
|
|
128
|
+
bordered?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Sticky positioning
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
sticky?: boolean;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=PageHeader.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.types.d.ts","sourceRoot":"","sources":["../../../src/sections/PageHeader/PageHeader.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACpF;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IAEF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/PageHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,aAAa,GACd,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QuickActions Component
|
|
3
|
+
*
|
|
4
|
+
* A FAB or floating action bar for quick access to common actions.
|
|
5
|
+
* Optimized for Product Mode with efficient action access.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <QuickActions
|
|
10
|
+
* variant="fab"
|
|
11
|
+
* actions={[
|
|
12
|
+
* { id: 'new', label: 'New Item', icon: <Plus />, onClick: handleNew }
|
|
13
|
+
* ]}
|
|
14
|
+
* />
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
import type { QuickActionsProps } from './QuickActions.types';
|
|
18
|
+
export declare const QuickActions: import("react").ForwardRefExoticComponent<QuickActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
//# sourceMappingURL=QuickActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuickActions.d.ts","sourceRoot":"","sources":["../../../src/sections/QuickActions/QuickActions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAe,MAAM,sBAAsB,CAAC;AAG3E,eAAO,MAAM,YAAY,8GA0MxB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QuickActions Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion QuickActions section component.
|
|
5
|
+
* A FAB or floating action bar for quick access to common actions.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Quick action item
|
|
10
|
+
*/
|
|
11
|
+
export interface QuickAction {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Action label
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Action icon
|
|
22
|
+
*/
|
|
23
|
+
icon: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Click handler
|
|
26
|
+
*/
|
|
27
|
+
onClick: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Keyboard shortcut display
|
|
30
|
+
*/
|
|
31
|
+
shortcut?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Disabled state
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Variant for styling
|
|
38
|
+
*/
|
|
39
|
+
variant?: 'default' | 'primary' | 'danger';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* QuickActions position
|
|
43
|
+
*/
|
|
44
|
+
export type QuickActionsPosition = 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left';
|
|
45
|
+
/**
|
|
46
|
+
* QuickActions variant
|
|
47
|
+
*/
|
|
48
|
+
export type QuickActionsVariant = 'fab' | 'bar' | 'menu';
|
|
49
|
+
/**
|
|
50
|
+
* QuickActions section props
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* // FAB variant (single expandable button)
|
|
55
|
+
* <QuickActions
|
|
56
|
+
* variant="fab"
|
|
57
|
+
* actions={[
|
|
58
|
+
* { id: 'new', label: 'New Item', icon: <Plus />, onClick: () => {} },
|
|
59
|
+
* { id: 'upload', label: 'Upload', icon: <Upload />, onClick: () => {} }
|
|
60
|
+
* ]}
|
|
61
|
+
* />
|
|
62
|
+
*
|
|
63
|
+
* // Bar variant (horizontal action bar)
|
|
64
|
+
* <QuickActions
|
|
65
|
+
* variant="bar"
|
|
66
|
+
* actions={[...]}
|
|
67
|
+
* />
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export interface QuickActionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
71
|
+
/**
|
|
72
|
+
* Array of quick actions
|
|
73
|
+
*/
|
|
74
|
+
actions: QuickAction[];
|
|
75
|
+
/**
|
|
76
|
+
* Display variant
|
|
77
|
+
* - fab: Floating action button that expands
|
|
78
|
+
* - bar: Horizontal action bar
|
|
79
|
+
* - menu: Vertical menu style
|
|
80
|
+
* @default 'fab'
|
|
81
|
+
*/
|
|
82
|
+
variant?: QuickActionsVariant;
|
|
83
|
+
/**
|
|
84
|
+
* Position on screen
|
|
85
|
+
* @default 'bottom-right'
|
|
86
|
+
*/
|
|
87
|
+
position?: QuickActionsPosition;
|
|
88
|
+
/**
|
|
89
|
+
* Primary action (shown when FAB is collapsed)
|
|
90
|
+
*/
|
|
91
|
+
primaryAction?: QuickAction;
|
|
92
|
+
/**
|
|
93
|
+
* Custom trigger icon for FAB
|
|
94
|
+
*/
|
|
95
|
+
triggerIcon?: ReactNode;
|
|
96
|
+
/**
|
|
97
|
+
* Always show labels (bar variant)
|
|
98
|
+
* @default true for bar, false for fab
|
|
99
|
+
*/
|
|
100
|
+
showLabels?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Fixed position
|
|
103
|
+
* @default true
|
|
104
|
+
*/
|
|
105
|
+
fixed?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Offset from edge in pixels
|
|
108
|
+
* @default 24
|
|
109
|
+
*/
|
|
110
|
+
offset?: number;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=QuickActions.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuickActions.types.d.ts","sourceRoot":"","sources":["../../../src/sections/QuickActions/QuickActions.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,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,cAAc,GACd,aAAa,GACb,eAAe,GACf,WAAW,GACX,UAAU,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE;;OAEG;IACH,OAAO,EAAE,WAAW,EAAE,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,WAAW,CAAC;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/QuickActions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SettingsLayout Component
|
|
3
|
+
*
|
|
4
|
+
* A layout for settings pages with navigation sidebar.
|
|
5
|
+
* Optimized for Product Mode with clear navigation and content separation.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <SettingsLayout
|
|
10
|
+
* navigation={[
|
|
11
|
+
* { items: [{ id: 'profile', label: 'Profile', icon: <User /> }] }
|
|
12
|
+
* ]}
|
|
13
|
+
* activeSection="profile"
|
|
14
|
+
* onNavigate={setActiveSection}
|
|
15
|
+
* >
|
|
16
|
+
* <ProfileSettings />
|
|
17
|
+
* </SettingsLayout>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
import type { SettingsLayoutProps } from './SettingsLayout.types';
|
|
21
|
+
export declare const SettingsLayout: import("react").ForwardRefExoticComponent<SettingsLayoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
//# sourceMappingURL=SettingsLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsLayout.d.ts","sourceRoot":"","sources":["../../../src/sections/SettingsLayout/SettingsLayout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,wBAAwB,CAAC;AAGnF,eAAO,MAAM,cAAc,gHAsH1B,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SettingsLayout Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion SettingsLayout section component.
|
|
5
|
+
* A layout for settings pages with navigation sidebar.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Settings navigation item
|
|
10
|
+
*/
|
|
11
|
+
export interface SettingsNavItem {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Display label
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional icon
|
|
22
|
+
*/
|
|
23
|
+
icon?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Optional description
|
|
26
|
+
*/
|
|
27
|
+
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Disabled state
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Badge content
|
|
34
|
+
*/
|
|
35
|
+
badge?: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Settings navigation group
|
|
39
|
+
*/
|
|
40
|
+
export interface SettingsNavGroup {
|
|
41
|
+
/**
|
|
42
|
+
* Group title
|
|
43
|
+
*/
|
|
44
|
+
title?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Items in this group
|
|
47
|
+
*/
|
|
48
|
+
items: SettingsNavItem[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* SettingsLayout section props
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <SettingsLayout
|
|
56
|
+
* navigation={[
|
|
57
|
+
* {
|
|
58
|
+
* title: 'Account',
|
|
59
|
+
* items: [
|
|
60
|
+
* { id: 'profile', label: 'Profile', icon: <User /> },
|
|
61
|
+
* { id: 'security', label: 'Security', icon: <Lock /> }
|
|
62
|
+
* ]
|
|
63
|
+
* }
|
|
64
|
+
* ]}
|
|
65
|
+
* activeSection="profile"
|
|
66
|
+
* onNavigate={(id) => setActiveSection(id)}
|
|
67
|
+
* >
|
|
68
|
+
* <ProfileSettings />
|
|
69
|
+
* </SettingsLayout>
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export interface SettingsLayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
73
|
+
/**
|
|
74
|
+
* Navigation items/groups
|
|
75
|
+
*/
|
|
76
|
+
navigation: SettingsNavGroup[];
|
|
77
|
+
/**
|
|
78
|
+
* Currently active section ID
|
|
79
|
+
*/
|
|
80
|
+
activeSection: string;
|
|
81
|
+
/**
|
|
82
|
+
* Navigation handler
|
|
83
|
+
*/
|
|
84
|
+
onNavigate: (sectionId: string) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Content for the active section
|
|
87
|
+
*/
|
|
88
|
+
children: ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* Page title
|
|
91
|
+
*/
|
|
92
|
+
title?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Page description
|
|
95
|
+
*/
|
|
96
|
+
description?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Header actions
|
|
99
|
+
*/
|
|
100
|
+
headerActions?: ReactNode;
|
|
101
|
+
/**
|
|
102
|
+
* Navigation width in pixels
|
|
103
|
+
* @default 240
|
|
104
|
+
*/
|
|
105
|
+
navWidth?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Sticky navigation
|
|
108
|
+
* @default true
|
|
109
|
+
*/
|
|
110
|
+
stickyNav?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Show mobile nav toggle
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
mobileNav?: boolean;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=SettingsLayout.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsLayout.types.d.ts","sourceRoot":"","sources":["../../../src/sections/SettingsLayout/SettingsLayout.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACzE;;OAEG;IACH,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/SettingsLayout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar Component
|
|
3
|
+
*
|
|
4
|
+
* A collapsible navigation sidebar for SaaS applications.
|
|
5
|
+
* Optimized for Product Mode with efficient space usage and clear hierarchy.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Sidebar
|
|
10
|
+
* sections={[
|
|
11
|
+
* {
|
|
12
|
+
* items: [
|
|
13
|
+
* { id: 'dashboard', label: 'Dashboard', icon: <Home />, href: '/' },
|
|
14
|
+
* { id: 'projects', label: 'Projects', icon: <Folder />, href: '/projects' }
|
|
15
|
+
* ]
|
|
16
|
+
* }
|
|
17
|
+
* ]}
|
|
18
|
+
* activeItem="dashboard"
|
|
19
|
+
* header={<Logo />}
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
import type { SidebarProps, SidebarItemProps, SidebarSectionProps, SidebarDividerProps } from './Sidebar.types';
|
|
24
|
+
export declare const Sidebar: import("react").ForwardRefExoticComponent<SidebarProps & import("react").RefAttributes<HTMLElement>> & {
|
|
25
|
+
Item: import("react").ForwardRefExoticComponent<SidebarItemProps & import("react").RefAttributes<HTMLElement>>;
|
|
26
|
+
Section: import("react").ForwardRefExoticComponent<SidebarSectionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Divider: import("react").ForwardRefExoticComponent<SidebarDividerProps & import("react").RefAttributes<HTMLHRElement>>;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/sections/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AA0MzB,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Sidebar section component.
|
|
5
|
+
* Designed for Product Mode (SaaS dashboards) navigation.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Sidebar navigation item
|
|
10
|
+
*/
|
|
11
|
+
export interface SidebarItem {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Display label
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Navigation URL
|
|
22
|
+
*/
|
|
23
|
+
href?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Click handler (alternative to href)
|
|
26
|
+
*/
|
|
27
|
+
onClick?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Icon element (Lucide icon recommended)
|
|
30
|
+
*/
|
|
31
|
+
icon?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Badge content (count, status, etc.)
|
|
34
|
+
*/
|
|
35
|
+
badge?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Nested items for sub-navigation
|
|
38
|
+
*/
|
|
39
|
+
children?: SidebarItem[];
|
|
40
|
+
/**
|
|
41
|
+
* Disabled state
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Sidebar section grouping
|
|
47
|
+
*/
|
|
48
|
+
export interface SidebarSection {
|
|
49
|
+
/**
|
|
50
|
+
* Section title (optional)
|
|
51
|
+
*/
|
|
52
|
+
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Items in this section
|
|
55
|
+
*/
|
|
56
|
+
items: SidebarItem[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Sidebar visual variant
|
|
60
|
+
*/
|
|
61
|
+
export type SidebarVariant = 'default' | 'compact' | 'floating';
|
|
62
|
+
/**
|
|
63
|
+
* Sidebar section props
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```tsx
|
|
67
|
+
* <Sidebar
|
|
68
|
+
* sections={[
|
|
69
|
+
* {
|
|
70
|
+
* items: [
|
|
71
|
+
* { id: 'dashboard', label: 'Dashboard', icon: <Home />, href: '/' },
|
|
72
|
+
* { id: 'projects', label: 'Projects', icon: <Folder />, href: '/projects' }
|
|
73
|
+
* ]
|
|
74
|
+
* }
|
|
75
|
+
* ]}
|
|
76
|
+
* activeItem="dashboard"
|
|
77
|
+
* />
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
81
|
+
/**
|
|
82
|
+
* Array of navigation sections
|
|
83
|
+
*/
|
|
84
|
+
sections: SidebarSection[];
|
|
85
|
+
/**
|
|
86
|
+
* Currently active item ID
|
|
87
|
+
*/
|
|
88
|
+
activeItem?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Collapsed state (icon-only)
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
collapsed?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Callback when collapse state changes
|
|
96
|
+
*/
|
|
97
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Header content (logo, app name)
|
|
100
|
+
*/
|
|
101
|
+
header?: ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* Footer content (user menu, settings)
|
|
104
|
+
*/
|
|
105
|
+
footer?: ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Visual variant
|
|
108
|
+
* - default: Standard sidebar
|
|
109
|
+
* - compact: Narrower width
|
|
110
|
+
* - floating: Floating overlay style
|
|
111
|
+
* @default 'default'
|
|
112
|
+
*/
|
|
113
|
+
variant?: SidebarVariant;
|
|
114
|
+
/**
|
|
115
|
+
* Width in pixels (when not collapsed)
|
|
116
|
+
* @default 240
|
|
117
|
+
*/
|
|
118
|
+
width?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Collapsed width in pixels
|
|
121
|
+
* @default 64
|
|
122
|
+
*/
|
|
123
|
+
collapsedWidth?: number;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Sidebar.Item sub-component props
|
|
127
|
+
*/
|
|
128
|
+
export interface SidebarItemProps extends HTMLAttributes<HTMLElement> {
|
|
129
|
+
/**
|
|
130
|
+
* Item data
|
|
131
|
+
*/
|
|
132
|
+
item: SidebarItem;
|
|
133
|
+
/**
|
|
134
|
+
* Whether this item is active
|
|
135
|
+
*/
|
|
136
|
+
active?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Collapsed mode
|
|
139
|
+
*/
|
|
140
|
+
collapsed?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Nesting depth for indentation
|
|
143
|
+
*/
|
|
144
|
+
depth?: number;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Sidebar.Section sub-component props
|
|
148
|
+
*/
|
|
149
|
+
export interface SidebarSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
150
|
+
/**
|
|
151
|
+
* Section data
|
|
152
|
+
*/
|
|
153
|
+
section: SidebarSection;
|
|
154
|
+
/**
|
|
155
|
+
* Currently active item ID
|
|
156
|
+
*/
|
|
157
|
+
activeItem?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Collapsed mode
|
|
160
|
+
*/
|
|
161
|
+
collapsed?: boolean;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Sidebar.Divider sub-component props
|
|
165
|
+
*/
|
|
166
|
+
export interface SidebarDividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=Sidebar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.types.d.ts","sourceRoot":"","sources":["../../../src/sections/Sidebar/Sidebar.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,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAEhE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC/D;;OAEG;IACH,QAAQ,EAAE,cAAc,EAAE,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACzE;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,aAAa,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/Sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACV,YAAY,EACZ,cAAc,EACd,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { StatItemCardProps } from './Stats.types';
|
|
7
7
|
export declare const StatItemCard: {
|
|
8
|
-
({ stat, variant, className, }: StatItemCardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
({ stat, variant, highlightValue, className, }: StatItemCardProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=StatItemCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatItemCard.d.ts","sourceRoot":"","sources":["../../../src/sections/Stats/StatItemCard.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"StatItemCard.d.ts","sourceRoot":"","sources":["../../../src/sections/Stats/StatItemCard.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,YAAY;oDAKtB,iBAAiB;;CAsDnB,CAAC"}
|