@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,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileUploader Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion FileUploader section component.
|
|
5
|
+
* A drag & drop file upload zone for SaaS applications.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Uploaded file item
|
|
10
|
+
*/
|
|
11
|
+
export interface UploadedFile {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* File name
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* File size in bytes
|
|
22
|
+
*/
|
|
23
|
+
size: number;
|
|
24
|
+
/**
|
|
25
|
+
* MIME type
|
|
26
|
+
*/
|
|
27
|
+
type: string;
|
|
28
|
+
/**
|
|
29
|
+
* Upload progress (0-100)
|
|
30
|
+
*/
|
|
31
|
+
progress?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Upload status
|
|
34
|
+
*/
|
|
35
|
+
status: 'pending' | 'uploading' | 'completed' | 'error';
|
|
36
|
+
/**
|
|
37
|
+
* Error message if status is 'error'
|
|
38
|
+
*/
|
|
39
|
+
error?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Preview URL (for images)
|
|
42
|
+
*/
|
|
43
|
+
preview?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Original File object
|
|
46
|
+
*/
|
|
47
|
+
file?: File;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* FileUploader section props
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* <FileUploader
|
|
55
|
+
* accept={['image/*', '.pdf']}
|
|
56
|
+
* maxFiles={5}
|
|
57
|
+
* maxSize={10 * 1024 * 1024}
|
|
58
|
+
* onFilesAdded={(files) => handleUpload(files)}
|
|
59
|
+
* />
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export interface FileUploaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
63
|
+
/**
|
|
64
|
+
* Accepted file types (MIME types or extensions)
|
|
65
|
+
*/
|
|
66
|
+
accept?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Maximum number of files
|
|
69
|
+
*/
|
|
70
|
+
maxFiles?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Maximum file size in bytes
|
|
73
|
+
*/
|
|
74
|
+
maxSize?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Allow multiple files
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
multiple?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Callback when files are added
|
|
82
|
+
*/
|
|
83
|
+
onFilesAdded?: (files: File[]) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Callback when a file is removed
|
|
86
|
+
*/
|
|
87
|
+
onFileRemove?: (fileId: string) => void;
|
|
88
|
+
/**
|
|
89
|
+
* Current uploaded files (controlled)
|
|
90
|
+
*/
|
|
91
|
+
files?: UploadedFile[];
|
|
92
|
+
/**
|
|
93
|
+
* Disabled state
|
|
94
|
+
*/
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Custom dropzone content
|
|
98
|
+
*/
|
|
99
|
+
dropzoneContent?: ReactNode;
|
|
100
|
+
/**
|
|
101
|
+
* Custom placeholder text
|
|
102
|
+
* @default "Drag and drop files here, or click to browse"
|
|
103
|
+
*/
|
|
104
|
+
placeholder?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Show file list below dropzone
|
|
107
|
+
* @default true
|
|
108
|
+
*/
|
|
109
|
+
showFileList?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Compact mode
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
compact?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Variant style
|
|
117
|
+
* @default "default"
|
|
118
|
+
*/
|
|
119
|
+
variant?: 'default' | 'minimal' | 'card';
|
|
120
|
+
/**
|
|
121
|
+
* Error message
|
|
122
|
+
*/
|
|
123
|
+
error?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Helper text
|
|
126
|
+
*/
|
|
127
|
+
helperText?: string;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=FileUploader.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploader.types.d.ts","sourceRoot":"","sources":["../../../src/sections/FileUploader/FileUploader.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;IAExD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACzF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IAEzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/FileUploader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FilterBar Component
|
|
3
|
+
*
|
|
4
|
+
* Horizontal filter controls with chips for SaaS dashboards.
|
|
5
|
+
* Optimized for Product Mode with efficient filtering interactions.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <FilterBar
|
|
10
|
+
* filters={[
|
|
11
|
+
* { key: 'status', label: 'Status', type: 'select', options: statusOptions }
|
|
12
|
+
* ]}
|
|
13
|
+
* activeFilters={activeFilters}
|
|
14
|
+
* onFilterChange={handleFilterChange}
|
|
15
|
+
* onFilterRemove={handleFilterRemove}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import type { FilterBarProps } from './FilterBar.types';
|
|
20
|
+
export declare const FilterBar: import("react").ForwardRefExoticComponent<FilterBarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
//# sourceMappingURL=FilterBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterBar.d.ts","sourceRoot":"","sources":["../../../src/sections/FilterBar/FilterBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAkC,MAAM,mBAAmB,CAAC;AAoExF,eAAO,MAAM,SAAS,2GAiIrB,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FilterBar Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion FilterBar section component.
|
|
5
|
+
* Horizontal filter controls with chips for SaaS dashboards.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Filter option for select/multi-select filters
|
|
10
|
+
*/
|
|
11
|
+
export interface FilterOption {
|
|
12
|
+
/**
|
|
13
|
+
* Option value
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* Display label
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional count
|
|
22
|
+
*/
|
|
23
|
+
count?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Filter definition
|
|
27
|
+
*/
|
|
28
|
+
export interface FilterDefinition {
|
|
29
|
+
/**
|
|
30
|
+
* Unique filter key
|
|
31
|
+
*/
|
|
32
|
+
key: string;
|
|
33
|
+
/**
|
|
34
|
+
* Filter label
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* Filter type
|
|
39
|
+
*/
|
|
40
|
+
type: 'select' | 'multi-select' | 'date' | 'date-range' | 'text';
|
|
41
|
+
/**
|
|
42
|
+
* Options for select types
|
|
43
|
+
*/
|
|
44
|
+
options?: FilterOption[];
|
|
45
|
+
/**
|
|
46
|
+
* Placeholder text
|
|
47
|
+
*/
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Icon for the filter
|
|
51
|
+
*/
|
|
52
|
+
icon?: ReactNode;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Active filter value
|
|
56
|
+
*/
|
|
57
|
+
export interface ActiveFilter {
|
|
58
|
+
/**
|
|
59
|
+
* Filter key
|
|
60
|
+
*/
|
|
61
|
+
key: string;
|
|
62
|
+
/**
|
|
63
|
+
* Filter value (or array for multi-select)
|
|
64
|
+
*/
|
|
65
|
+
value: string | string[] | {
|
|
66
|
+
start: string;
|
|
67
|
+
end: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Display label for the chip
|
|
71
|
+
*/
|
|
72
|
+
label: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* FilterBar section props
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```tsx
|
|
79
|
+
* <FilterBar
|
|
80
|
+
* filters={[
|
|
81
|
+
* { key: 'status', label: 'Status', type: 'select', options: [...] },
|
|
82
|
+
* { key: 'date', label: 'Date', type: 'date-range' }
|
|
83
|
+
* ]}
|
|
84
|
+
* activeFilters={[
|
|
85
|
+
* { key: 'status', value: 'active', label: 'Active' }
|
|
86
|
+
* ]}
|
|
87
|
+
* onFilterChange={(key, value) => updateFilters(key, value)}
|
|
88
|
+
* onFilterRemove={(key) => removeFilter(key)}
|
|
89
|
+
* />
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export interface FilterBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
93
|
+
/**
|
|
94
|
+
* Filter definitions
|
|
95
|
+
*/
|
|
96
|
+
filters: FilterDefinition[];
|
|
97
|
+
/**
|
|
98
|
+
* Currently active filters
|
|
99
|
+
*/
|
|
100
|
+
activeFilters: ActiveFilter[];
|
|
101
|
+
/**
|
|
102
|
+
* Filter change handler
|
|
103
|
+
*/
|
|
104
|
+
onFilterChange: (key: string, value: string | string[] | {
|
|
105
|
+
start: string;
|
|
106
|
+
end: string;
|
|
107
|
+
} | null) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Remove filter handler
|
|
110
|
+
*/
|
|
111
|
+
onFilterRemove: (key: string) => void;
|
|
112
|
+
/**
|
|
113
|
+
* Clear all filters handler
|
|
114
|
+
*/
|
|
115
|
+
onClearAll?: () => void;
|
|
116
|
+
/**
|
|
117
|
+
* Enable search input
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
searchable?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Search value (controlled)
|
|
123
|
+
*/
|
|
124
|
+
searchValue?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Search change handler
|
|
127
|
+
*/
|
|
128
|
+
onSearchChange?: (value: string) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Search placeholder
|
|
131
|
+
*/
|
|
132
|
+
searchPlaceholder?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Show filter count
|
|
135
|
+
* @default true
|
|
136
|
+
*/
|
|
137
|
+
showCount?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Compact mode
|
|
140
|
+
* @default false
|
|
141
|
+
*/
|
|
142
|
+
compact?: boolean;
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=FilterBar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterBar.types.d.ts","sourceRoot":"","sources":["../../../src/sections/FilterBar/FilterBar.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,cAAc,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;IAEjE;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAE1D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,YAAY,EAAE,CAAC;IAE9B;;OAEG;IACH,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IAExG;;OAEG;IACH,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEzC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/FilterBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,YAAY,GACb,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FormSection Component
|
|
3
|
+
*
|
|
4
|
+
* A form section for settings pages and structured form layouts.
|
|
5
|
+
* Optimized for Product Mode with clear hierarchy and efficient space usage.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <FormSection
|
|
10
|
+
* title="Profile Information"
|
|
11
|
+
* description="Update your personal details"
|
|
12
|
+
* actions={<Button>Save</Button>}
|
|
13
|
+
* >
|
|
14
|
+
* <FormSection.Group columns={2}>
|
|
15
|
+
* <Field label="First Name" type="text" />
|
|
16
|
+
* <Field label="Last Name" type="text" />
|
|
17
|
+
* </FormSection.Group>
|
|
18
|
+
* <Field label="Email" type="email" />
|
|
19
|
+
* </FormSection>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
import type { FormSectionProps, FormSectionGroupProps, FormSectionActionsProps } from './FormSection.types';
|
|
23
|
+
export declare const FormSection: import("react").ForwardRefExoticComponent<FormSectionProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
24
|
+
Group: import("react").ForwardRefExoticComponent<FormSectionGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
Actions: import("react").ForwardRefExoticComponent<FormSectionActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=FormSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSection.d.ts","sourceRoot":"","sources":["../../../src/sections/FormSection/FormSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAmI7B,eAAO,MAAM,WAAW;;;CAGtB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FormSection Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion FormSection section component.
|
|
5
|
+
* Designed for Product Mode (SaaS dashboards) settings and form layouts.
|
|
6
|
+
*/
|
|
7
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* FormSection visual variant
|
|
10
|
+
*/
|
|
11
|
+
export type FormSectionVariant = 'default' | 'card' | 'inline';
|
|
12
|
+
/**
|
|
13
|
+
* FormSection section props
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <FormSection
|
|
18
|
+
* title="Profile Information"
|
|
19
|
+
* description="Update your personal details"
|
|
20
|
+
* >
|
|
21
|
+
* <Field label="Name" type="text" />
|
|
22
|
+
* <Field label="Email" type="email" />
|
|
23
|
+
* </FormSection>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export interface FormSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
/**
|
|
28
|
+
* Section title
|
|
29
|
+
*/
|
|
30
|
+
title: string;
|
|
31
|
+
/**
|
|
32
|
+
* Description text below title
|
|
33
|
+
*/
|
|
34
|
+
description?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Form field children
|
|
37
|
+
*/
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Action buttons (save, cancel, etc.)
|
|
41
|
+
*/
|
|
42
|
+
actions?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Make section collapsible
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
collapsible?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Default collapsed state (only when collapsible)
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
defaultCollapsed?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Show divider below section
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
divider?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Visual variant
|
|
60
|
+
* - default: Simple layout with border
|
|
61
|
+
* - card: Wrapped in card container
|
|
62
|
+
* - inline: Side-by-side title/fields layout
|
|
63
|
+
* @default 'default'
|
|
64
|
+
*/
|
|
65
|
+
variant?: FormSectionVariant;
|
|
66
|
+
/**
|
|
67
|
+
* Custom icon for section header
|
|
68
|
+
*/
|
|
69
|
+
icon?: ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* Disable all fields in section
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
disabled?: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* FormSection.Group props for grouping related fields
|
|
78
|
+
*/
|
|
79
|
+
export interface FormSectionGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
80
|
+
/**
|
|
81
|
+
* Group label
|
|
82
|
+
*/
|
|
83
|
+
label?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Help text for the group
|
|
86
|
+
*/
|
|
87
|
+
helpText?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Field children
|
|
90
|
+
*/
|
|
91
|
+
children: ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* Number of columns for field layout
|
|
94
|
+
* @default 1
|
|
95
|
+
*/
|
|
96
|
+
columns?: 1 | 2 | 3;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* FormSection.Actions props for action button group
|
|
100
|
+
*/
|
|
101
|
+
export interface FormSectionActionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
102
|
+
/**
|
|
103
|
+
* Action button children
|
|
104
|
+
*/
|
|
105
|
+
children: ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Alignment of actions
|
|
108
|
+
* @default 'end'
|
|
109
|
+
*/
|
|
110
|
+
align?: 'start' | 'center' | 'end' | 'between';
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=FormSection.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSection.types.d.ts","sourceRoot":"","sources":["../../../src/sections/FormSection/FormSection.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;CAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/FormSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC"}
|
|
@@ -16,7 +16,24 @@
|
|
|
16
16
|
* size="lg"
|
|
17
17
|
* />
|
|
18
18
|
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example Fullscreen with background
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <Hero
|
|
23
|
+
* layout="fullscreen"
|
|
24
|
+
* variant="background"
|
|
25
|
+
* backgroundImage="/hero.jpg"
|
|
26
|
+
* headline={<>Build <Hero.Highlight>faster</Hero.Highlight></>}
|
|
27
|
+
* primaryAction={<Button size="lg">Get Started</Button>}
|
|
28
|
+
* />
|
|
29
|
+
* ```
|
|
19
30
|
*/
|
|
20
31
|
import type { HeroProps } from './Hero.types';
|
|
21
|
-
|
|
32
|
+
import { HeroHighlight } from './HeroHighlight';
|
|
33
|
+
declare const HeroBase: import("react").ForwardRefExoticComponent<HeroProps & import("react").RefAttributes<HTMLElement>>;
|
|
34
|
+
type HeroComponent = typeof HeroBase & {
|
|
35
|
+
Highlight: typeof HeroHighlight;
|
|
36
|
+
};
|
|
37
|
+
export declare const Hero: HeroComponent;
|
|
38
|
+
export {};
|
|
22
39
|
//# sourceMappingURL=Hero.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/sections/Hero/Hero.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/sections/Hero/Hero.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA2BhD,QAAA,MAAM,QAAQ,mGA4Gb,CAAC;AAKF,KAAK,aAAa,GAAG,OAAO,QAAQ,GAAG;IACrC,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAe,aAAa,CAAC"}
|
|
@@ -12,6 +12,28 @@ export type HeroAlign = 'left' | 'center';
|
|
|
12
12
|
* Hero size variants
|
|
13
13
|
*/
|
|
14
14
|
export type HeroSize = 'sm' | 'md' | 'lg';
|
|
15
|
+
/**
|
|
16
|
+
* Hero visual variant
|
|
17
|
+
* - 'default': Standard hero with optional side media
|
|
18
|
+
* - 'background': Full-width background image with content overlay
|
|
19
|
+
*/
|
|
20
|
+
export type HeroVariant = 'default' | 'background';
|
|
21
|
+
/**
|
|
22
|
+
* Hero layout mode
|
|
23
|
+
* - 'contained': Default with container padding
|
|
24
|
+
* - 'fullscreen': 100vh height, vertically centered, edge-to-edge width
|
|
25
|
+
* - 'card': Inset with margins and border radius (floating card style)
|
|
26
|
+
*/
|
|
27
|
+
export type HeroLayout = 'contained' | 'fullscreen' | 'card';
|
|
28
|
+
/**
|
|
29
|
+
* Props for HeroHighlight compound component
|
|
30
|
+
*/
|
|
31
|
+
export interface HeroHighlightProps {
|
|
32
|
+
/**
|
|
33
|
+
* Text content to highlight with brand gradient
|
|
34
|
+
*/
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
}
|
|
15
37
|
/**
|
|
16
38
|
* Hero component props
|
|
17
39
|
*
|
|
@@ -26,6 +48,16 @@ export type HeroSize = 'sm' | 'md' | 'lg';
|
|
|
26
48
|
* align="center"
|
|
27
49
|
* />
|
|
28
50
|
* ```
|
|
51
|
+
*
|
|
52
|
+
* @example Fullscreen with background
|
|
53
|
+
* ```tsx
|
|
54
|
+
* <Hero
|
|
55
|
+
* layout="fullscreen"
|
|
56
|
+
* variant="background"
|
|
57
|
+
* backgroundImage="https://example.com/hero.jpg"
|
|
58
|
+
* headline={<>Build <Hero.Highlight>faster</Hero.Highlight></>}
|
|
59
|
+
* />
|
|
60
|
+
* ```
|
|
29
61
|
*/
|
|
30
62
|
export interface HeroProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
31
63
|
/**
|
|
@@ -33,7 +65,8 @@ export interface HeroProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
|
33
65
|
*/
|
|
34
66
|
badge?: ReactNode;
|
|
35
67
|
/**
|
|
36
|
-
* Main headline text or element
|
|
68
|
+
* Main headline text or element.
|
|
69
|
+
* Can include <Hero.Highlight> for gradient text.
|
|
37
70
|
*/
|
|
38
71
|
headline: ReactNode;
|
|
39
72
|
/**
|
|
@@ -57,6 +90,11 @@ export interface HeroProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
|
57
90
|
* @default 'right'
|
|
58
91
|
*/
|
|
59
92
|
mediaPosition?: 'left' | 'right' | 'bottom';
|
|
93
|
+
/**
|
|
94
|
+
* Show default placeholder image when media is not provided
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
showDefaultMedia?: boolean;
|
|
60
98
|
/**
|
|
61
99
|
* Trust indicators (logos, badges, social proof)
|
|
62
100
|
*/
|
|
@@ -74,8 +112,39 @@ export interface HeroProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
|
74
112
|
* @default 'lg'
|
|
75
113
|
*/
|
|
76
114
|
size?: HeroSize;
|
|
115
|
+
/**
|
|
116
|
+
* Hero layout mode
|
|
117
|
+
* - 'contained': Default with container padding
|
|
118
|
+
* - 'fullscreen': 100vh height, vertically centered, edge-to-edge width
|
|
119
|
+
* - 'card': Inset with margins and border radius
|
|
120
|
+
* @default 'contained'
|
|
121
|
+
*/
|
|
122
|
+
layout?: HeroLayout;
|
|
123
|
+
/**
|
|
124
|
+
* Hero visual variant
|
|
125
|
+
* - 'default': Standard hero with optional side media
|
|
126
|
+
* - 'background': Full-width background image with content overlay
|
|
127
|
+
* @default 'default'
|
|
128
|
+
*/
|
|
129
|
+
variant?: HeroVariant;
|
|
130
|
+
/**
|
|
131
|
+
* Background image URL (only applies when variant='background')
|
|
132
|
+
*/
|
|
133
|
+
backgroundImage?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Background overlay opacity (0-1). Only applies when variant='background'.
|
|
136
|
+
* @default 0.6
|
|
137
|
+
*/
|
|
138
|
+
backgroundOverlay?: number;
|
|
139
|
+
/**
|
|
140
|
+
* Add elevation (shadow) to card layout.
|
|
141
|
+
* Only applies when layout='card'.
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
elevated?: boolean;
|
|
77
145
|
/**
|
|
78
146
|
* Full viewport height
|
|
147
|
+
* @deprecated Use layout="fullscreen" instead
|
|
79
148
|
* @default false
|
|
80
149
|
*/
|
|
81
150
|
fullHeight?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.types.d.ts","sourceRoot":"","sources":["../../../src/sections/Hero/Hero.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C
|
|
1
|
+
{"version":3,"file":"Hero.types.d.ts","sourceRoot":"","sources":["../../../src/sections/Hero/Hero.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,MAAM,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC3E;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAE5C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAE5B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroHighlight Component
|
|
3
|
+
*
|
|
4
|
+
* A compound component for Hero that applies a brand gradient to text.
|
|
5
|
+
* Used to highlight key words in headlines.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Hero
|
|
10
|
+
* headline={<>Build <Hero.Highlight>faster</Hero.Highlight> with Orion</>}
|
|
11
|
+
* />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
import type { HeroHighlightProps } from './Hero.types';
|
|
15
|
+
export declare const HeroHighlight: {
|
|
16
|
+
({ children }: HeroHighlightProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=HeroHighlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeroHighlight.d.ts","sourceRoot":"","sources":["../../../src/sections/Hero/HeroHighlight.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,eAAO,MAAM,aAAa;mBAAkB,kBAAkB;;CAE7D,CAAC"}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
* Hero Component Exports
|
|
3
3
|
*/
|
|
4
4
|
export { Hero } from './Hero';
|
|
5
|
-
export
|
|
5
|
+
export { HeroHighlight } from './HeroHighlight';
|
|
6
|
+
export type { HeroProps, HeroAlign, HeroSize, HeroVariant, HeroLayout, HeroHighlightProps, } from './Hero.types';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/Hero/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sections/Hero/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,MAAM,cAAc,CAAC"}
|