@campxdev/react-blueprint 2.2.7-alpha.1 → 2.2.7

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.
@@ -1,6 +1,8 @@
1
1
  export * from '../Layout/PageHeader/components/TableColumnsSelector/TableColumnsSelector';
2
2
  export * from './Breadcrumbs/Breadcrumbs';
3
3
  export * from './Calendar/Calendar';
4
+ export * from './Calendar/types';
5
+ export * from './Calendar/utils';
4
6
  export * from './ConfirmDialog/ConfirmDialog';
5
7
  export * from './Dialog/Dialog';
6
8
  export * from './DialogButton/DialogButton';
package/dist/index.d.ts CHANGED
@@ -1295,6 +1295,61 @@ interface CalendarProps {
1295
1295
 
1296
1296
  declare const Calendar: react__default.FC<CalendarProps>;
1297
1297
 
1298
+ /**
1299
+ * Generate recurring events based on a pattern
1300
+ */
1301
+ interface RecurringEventConfig {
1302
+ title: string;
1303
+ startTime: string;
1304
+ endTime: string;
1305
+ startDate: Date;
1306
+ endDate?: Date;
1307
+ daysOfWeek?: number[];
1308
+ interval?: number;
1309
+ backgroundColor?: string;
1310
+ extendedProps?: {
1311
+ [key: string]: any;
1312
+ };
1313
+ }
1314
+ declare const generateRecurringEvents: (config: RecurringEventConfig, maxEvents?: number) => CalendarEvent[];
1315
+ /**
1316
+ * Generate sample business events for demonstration
1317
+ */
1318
+ declare const generateBusinessEvents: (startDate?: Date) => CalendarEvent[];
1319
+ /**
1320
+ * Filter events by date range
1321
+ */
1322
+ declare const filterEventsByDateRange: (events: CalendarEvent[], startDate: Date, endDate: Date) => CalendarEvent[];
1323
+ /**
1324
+ * Group events by date
1325
+ */
1326
+ declare const groupEventsByDate: (events: CalendarEvent[]) => {
1327
+ [date: string]: CalendarEvent[];
1328
+ };
1329
+ /**
1330
+ * Calculate event statistics
1331
+ */
1332
+ interface EventStats {
1333
+ totalEvents: number;
1334
+ eventsThisWeek: number;
1335
+ eventsThisMonth: number;
1336
+ averageEventsPerDay: number;
1337
+ mostBusyDay: string;
1338
+ leastBusyDay: string;
1339
+ }
1340
+ declare const calculateEventStats: (events: CalendarEvent[]) => EventStats;
1341
+ /**
1342
+ * Convert events to different formats
1343
+ */
1344
+ declare const exportEventsToCSV: (events: CalendarEvent[]) => string;
1345
+ /**
1346
+ * Validate event data
1347
+ */
1348
+ declare const validateEvent: (event: Partial<CalendarEvent>) => {
1349
+ isValid: boolean;
1350
+ errors: string[];
1351
+ };
1352
+
1298
1353
  type ConfirmDialogType = 'confirm' | 'delete';
1299
1354
  type ConfirmDialogProps = {
1300
1355
  isOpen: boolean;
@@ -1474,5 +1529,5 @@ declare const splitBreadcrumbIdSlug: (param: string) => {
1474
1529
  declare const isLocal: boolean;
1475
1530
  declare const isDevelopment: boolean;
1476
1531
 
1477
- export { Accordion, AccordionGroup, ActivityLogView, Alert, AnimatedGIFs, AppHeader, AppHeaderV2, AppLayout, BarChart, Breadcrumbs, Button, Calendar, Card, CellContainer, CenterBox, Chips, CircularAvatar, ComingSoon, ConfirmDialog, DataTable, DatePicker, DateTimePicker, DensitySelector, Dialog, DialogButton, DropDownButton, DropDownIcon, DropdownMenu, DropdownMenuItem, EditableDataTable, EditableTableCore, EmptyIllustration, FileUpload, FloatingContent, FloatingHelpDocs, FooterContainerContainer, FormActions, FormControlWrapper, FormWrapper, HelpPopup, IconButtons, Icons, InternalServerError, LabelWrapper, LineChart, MuiThemeProvider, MultiCheckBox, NoInterneConnection, NoItemFound, OtpInput, PageContent, PageHeader, PageNotFound, PasswordField, PieChart, PreviewFiles, ProgressCard, RadioGroup, ResourceNotFound, SearchBar, Select, SidePanel, SidePanelVariables, Sidebar, SingleCheckBox, SingleSelect, Snackbar, Spinner, SquareAvatar, StatusCard, Stepper, StyledContainer, Svgs, Switch, SwitchInstitutionPopup, TableColumnsSelector, TableColumnsSelectorMenuFooter, TabsContainer, TabsLayout, TextField, TimePicker, Timeline, ToolTipContent, Tooltip, Tutorial, Typography, UnAuthorized, UploadDialog, UserProfilePopup, createBreadcrumbIdSlug, darkTheme, getBreadcrumbsCharacter, isDevelopment, isLocal, lightTheme, reactBlueprintReducers, splitBreadcrumbIdSlug, usePageHeader, useParams, useUrlParams };
1478
- export type { AccordionProps, Activity, ActivityAction, AlertProps, AppHeaderProps, AppHeaderV2Props, AppLayoutProps, BarChartProps, BreadcrumbsProps, ButtonConfig, ButtonProps, CardProps, CheckboxProps, CircularAvatarProps, ConfirmDialogProps, ConfirmDialogType, DataTableProps, DensitySelectorProps, DialogButtonProps, DialogProps, DropdownMenuItemProps, DropdownMenuProps, EditableDataTableProps, FileUploadProps, FloatingContainerProps, FormActionsProps, HelpDocsAction, HelpDocsConfig, IconComponent, IconProps, IconsType, LineChartProps, MultiCheckboxProps, OtpInputProps, PageContentProps, PasswordFieldProps, PieChartProps, PreviewFilesProps, ProgressCardProps, RadioGroupProps, SearchBarProps, SelectProps, Severity, SideMenuItemProps, SidePanelProps, SingleSelectProps, SnackbarProps, SquareAvatarProps, StatusCardProps, SubMenuItemProps, SwitchProps, TableColumnsSelectorProps, TabsContainerProps, TextFieldProps, TimelineItems, TimelineProps, TooltipContentProps, TooltipProps, TypographyProps, UploadDialogProps };
1532
+ export { Accordion, AccordionGroup, ActivityLogView, Alert, AnimatedGIFs, AppHeader, AppHeaderV2, AppLayout, BarChart, Breadcrumbs, Button, Calendar, Card, CellContainer, CenterBox, Chips, CircularAvatar, ComingSoon, ConfirmDialog, DataTable, DatePicker, DateTimePicker, DensitySelector, Dialog, DialogButton, DropDownButton, DropDownIcon, DropdownMenu, DropdownMenuItem, EditableDataTable, EditableTableCore, EmptyIllustration, FileUpload, FloatingContent, FloatingHelpDocs, FooterContainerContainer, FormActions, FormControlWrapper, FormWrapper, HelpPopup, IconButtons, Icons, InternalServerError, LabelWrapper, LineChart, MuiThemeProvider, MultiCheckBox, NoInterneConnection, NoItemFound, OtpInput, PageContent, PageHeader, PageNotFound, PasswordField, PieChart, PreviewFiles, ProgressCard, RadioGroup, ResourceNotFound, SearchBar, Select, SidePanel, SidePanelVariables, Sidebar, SingleCheckBox, SingleSelect, Snackbar, Spinner, SquareAvatar, StatusCard, Stepper, StyledContainer, Svgs, Switch, SwitchInstitutionPopup, TableColumnsSelector, TableColumnsSelectorMenuFooter, TabsContainer, TabsLayout, TextField, TimePicker, Timeline, ToolTipContent, Tooltip, Tutorial, Typography, UnAuthorized, UploadDialog, UserProfilePopup, calculateEventStats, createBreadcrumbIdSlug, darkTheme, exportEventsToCSV, filterEventsByDateRange, generateBusinessEvents, generateRecurringEvents, getBreadcrumbsCharacter, groupEventsByDate, isDevelopment, isLocal, lightTheme, reactBlueprintReducers, splitBreadcrumbIdSlug, usePageHeader, useParams, useUrlParams, validateEvent };
1533
+ export type { AccordionProps, Activity, ActivityAction, AlertProps, AppHeaderProps, AppHeaderV2Props, AppLayoutProps, BarChartProps, BreadcrumbsProps, ButtonConfig, ButtonProps, CalendarDateClickInfo, CalendarDateSelectInfo, CalendarEvent, CalendarEventClickInfo, CalendarEventDropInfo, CalendarEventResizeInfo, CalendarHeaderToolbar, CalendarProps, CalendarView, CardProps, CheckboxProps, CircularAvatarProps, ConfirmDialogProps, ConfirmDialogType, DataTableProps, DensitySelectorProps, DialogButtonProps, DialogProps, DropdownMenuItemProps, DropdownMenuProps, EditableDataTableProps, EventStats, FileUploadProps, FloatingContainerProps, FormActionsProps, HelpDocsAction, HelpDocsConfig, IconComponent, IconProps, IconsType, LineChartProps, MultiCheckboxProps, OtpInputProps, PageContentProps, PasswordFieldProps, PieChartProps, PreviewFilesProps, ProgressCardProps, RadioGroupProps, RecurringEventConfig, SearchBarProps, SelectProps, Severity, SideMenuItemProps, SidePanelProps, SingleSelectProps, SnackbarProps, SquareAvatarProps, StatusCardProps, SubMenuItemProps, SwitchProps, TableColumnsSelectorProps, TabsContainerProps, TextFieldProps, TimelineItems, TimelineProps, TooltipContentProps, TooltipProps, TypographyProps, UploadDialogProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "2.2.7-alpha.1",
3
+ "version": "2.2.7",
4
4
  "description": "React UI component library for CampX applications",
5
5
  "author": "CampX",
6
6
  "license": "MIT",
@@ -1,6 +1,8 @@
1
1
  export * from '../Layout/PageHeader/components/TableColumnsSelector/TableColumnsSelector';
2
2
  export * from './Breadcrumbs/Breadcrumbs';
3
3
  export * from './Calendar/Calendar';
4
+ export * from './Calendar/types';
5
+ export * from './Calendar/utils';
4
6
  export * from './ConfirmDialog/ConfirmDialog';
5
7
  export * from './Dialog/Dialog';
6
8
  export * from './DialogButton/DialogButton';