@campxdev/react-blueprint 3.0.0-alpha.5 → 3.0.0-alpha.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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/src/components/Assets/ErrorPages/ComingSoon.d.ts +24 -0
- package/dist/cjs/types/src/components/Assets/ErrorPages/InternalServerError.d.ts +20 -0
- package/dist/cjs/types/src/components/Assets/ErrorPages/NoInternetConnection.d.ts +20 -0
- package/dist/cjs/types/src/components/Assets/ErrorPages/NoItemFound.d.ts +28 -0
- package/dist/cjs/types/src/components/Assets/ErrorPages/PageNotFound.d.ts +21 -0
- package/dist/cjs/types/src/components/Assets/ErrorPages/ResourceNotFound.d.ts +21 -0
- package/dist/cjs/types/src/components/Assets/ErrorPages/UnAuthorized.d.ts +31 -0
- package/dist/cjs/types/src/components/Assets/Icons/Icons.d.ts +54 -0
- package/dist/cjs/types/src/components/Charts/BarChart/BarChart.d.ts +38 -0
- package/dist/cjs/types/src/components/Charts/BarChart/HorizontalBarChart.d.ts +93 -0
- package/dist/cjs/types/src/components/Charts/BarChart/VerticalBarChart.d.ts +110 -0
- package/dist/cjs/types/src/components/Charts/LineChart/LineChart.d.ts +89 -0
- package/dist/cjs/types/src/components/Charts/PieChart/PieChart.d.ts +86 -0
- package/dist/cjs/types/src/components/Charts/TreeMap/TreeMap.d.ts +74 -0
- package/dist/cjs/types/src/components/DataDisplay/Accordion/Accordion.d.ts +54 -0
- package/dist/cjs/types/src/components/DataDisplay/ActivityLogView/ActivityLogFilter.d.ts +35 -0
- package/dist/cjs/types/src/components/DataDisplay/ActivityLogView/ActivityLogView.d.ts +78 -0
- package/dist/cjs/types/src/components/DataDisplay/Avatar/Avatar.d.ts +40 -0
- package/dist/cjs/types/src/components/DataDisplay/Chip/Chip.d.ts +28 -0
- package/dist/cjs/types/src/components/DataDisplay/Chips/Chips.d.ts +55 -0
- package/dist/cjs/types/src/components/DataDisplay/DataTable/DataTable.d.ts +96 -1
- package/dist/cjs/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
- package/dist/cjs/types/src/components/DataDisplay/DataTable/components/TablePagination.d.ts +35 -0
- package/dist/cjs/types/src/components/DataDisplay/EmptyIllustration/EmptyIllustration.d.ts +30 -0
- package/dist/cjs/types/src/components/DataDisplay/ReactJoyride/ReactJoyride.d.ts +64 -0
- package/dist/cjs/types/src/components/DataDisplay/Separator/Separator.d.ts +30 -0
- package/dist/cjs/types/src/components/DataDisplay/Skeleton/Skeleton.d.ts +20 -0
- package/dist/cjs/types/src/components/DataDisplay/StatusCard/StatusCard.d.ts +36 -0
- package/dist/cjs/types/src/components/DataDisplay/Timeline/Timeline.d.ts +58 -0
- package/dist/cjs/types/src/components/DataDisplay/Typography/Typography.d.ts +25 -0
- package/dist/cjs/types/src/components/Feedback/Alert/Alert.d.ts +31 -0
- package/dist/cjs/types/src/components/Feedback/Snackbar/Snackbar.d.ts +54 -0
- package/dist/cjs/types/src/components/Feedback/Spinner/Spinner.d.ts +15 -0
- package/dist/cjs/types/src/components/Feedback/Tooltip/Tooltip.d.ts +54 -0
- package/dist/cjs/types/src/components/Input/Button/Button.d.ts +26 -0
- package/dist/cjs/types/src/components/Input/DatePicker/DatePicker.d.ts +41 -0
- package/dist/cjs/types/src/components/Input/DateTimePicker/DateTimePicker.d.ts +42 -0
- package/dist/cjs/types/src/components/Input/FileUpload/FileUpload.d.ts +41 -0
- package/dist/cjs/types/src/components/Input/FormActions/FormActions.d.ts +37 -0
- package/dist/cjs/types/src/components/Input/FormControlWrapper/FormControlWrapper.d.ts +31 -0
- package/dist/cjs/types/src/components/Input/FormWrapper/FormWrapper.d.ts +20 -0
- package/dist/cjs/types/src/components/Input/HelpButton/HelpButton.d.ts +14 -0
- package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/DeleteButton.d.ts +16 -0
- package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/EditButton.d.ts +16 -0
- package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/RedirectButton.d.ts +16 -0
- package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/ViewButton.d.ts +16 -0
- package/dist/cjs/types/src/components/Input/IconButtons/IconButtons.d.ts +18 -0
- package/dist/cjs/types/src/components/Input/LabelWrapper/LabelWrapper.d.ts +26 -0
- package/dist/cjs/types/src/components/Input/MultiCheckBox/MultiCheckBox.d.ts +34 -0
- package/dist/cjs/types/src/components/Input/MultiSelect/MultiSelect.d.ts +40 -0
- package/dist/cjs/types/src/components/Input/OtpInput/OtpInput.d.ts +29 -0
- package/dist/cjs/types/src/components/Input/PasswordField/PasswordField.d.ts +34 -0
- package/dist/cjs/types/src/components/Input/RadioGroup/RadioGroup.d.ts +38 -0
- package/dist/cjs/types/src/components/Input/SearchBar/SearchBar.d.ts +26 -0
- package/dist/cjs/types/src/components/Input/Select/Select.d.ts +32 -0
- package/dist/cjs/types/src/components/Input/SingleCheckBox/SingleCheckBox.d.ts +29 -0
- package/dist/cjs/types/src/components/Input/SingleSelect/SingleSelect.d.ts +40 -0
- package/dist/cjs/types/src/components/Input/Switch/Switch.d.ts +23 -0
- package/dist/cjs/types/src/components/Input/Tags/Tags.d.ts +26 -0
- package/dist/cjs/types/src/components/Input/TextField/TextField.d.ts +35 -0
- package/dist/cjs/types/src/components/Input/Textarea/Textarea.d.ts +36 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/AppLayout.d.ts +32 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/components/MenuToggleButton.d.ts +16 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/MenuBar.d.ts +26 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/MenuItem.d.ts +37 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/Sidebar.d.ts +30 -1
- package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/StyledComponents.d.ts +139 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/components/UserProfilePopup.d.ts +34 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/context/SidebarContext.d.ts +48 -0
- package/dist/cjs/types/src/components/Layout/AppLayout/types.d.ts +1 -1
- package/dist/cjs/types/src/components/Layout/PageContent/PageContent.d.ts +21 -1
- package/dist/cjs/types/src/components/Layout/PageHeader/PageHeader.d.ts +46 -0
- package/dist/cjs/types/src/components/Layout/PageHeader/components/SearchBar.d.ts +22 -0
- package/dist/cjs/types/src/components/Layout/UserBox/UserBox.d.ts +40 -0
- package/dist/cjs/types/src/components/Navigation/Breadcrumbs/Breadcrumbs.d.ts +33 -0
- package/dist/cjs/types/src/components/Navigation/Calendar/Calendar.d.ts +63 -0
- package/dist/cjs/types/src/components/Navigation/ConfirmDialog/ConfirmDialog.d.ts +64 -0
- package/dist/cjs/types/src/components/Navigation/Dialog/Dialog.d.ts +55 -0
- package/dist/cjs/types/src/components/Navigation/DialogButton/DialogButton.d.ts +64 -0
- package/dist/cjs/types/src/components/Navigation/DropDownMenu/DropDownMenu.d.ts +73 -0
- package/dist/cjs/types/src/components/Navigation/PreviewFiles/PreviewFiles.d.ts +54 -0
- package/dist/cjs/types/src/components/Navigation/Stepper/Stepper.d.ts +55 -10
- package/dist/cjs/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +85 -1
- package/dist/cjs/types/src/components/Navigation/UploadDialog/UploadDialog.d.ts +64 -0
- package/dist/cjs/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Assets/ErrorPages/ComingSoon.d.ts +24 -0
- package/dist/esm/types/src/components/Assets/ErrorPages/InternalServerError.d.ts +20 -0
- package/dist/esm/types/src/components/Assets/ErrorPages/NoInternetConnection.d.ts +20 -0
- package/dist/esm/types/src/components/Assets/ErrorPages/NoItemFound.d.ts +28 -0
- package/dist/esm/types/src/components/Assets/ErrorPages/PageNotFound.d.ts +21 -0
- package/dist/esm/types/src/components/Assets/ErrorPages/ResourceNotFound.d.ts +21 -0
- package/dist/esm/types/src/components/Assets/ErrorPages/UnAuthorized.d.ts +31 -0
- package/dist/esm/types/src/components/Assets/Icons/Icons.d.ts +54 -0
- package/dist/esm/types/src/components/Charts/BarChart/BarChart.d.ts +38 -0
- package/dist/esm/types/src/components/Charts/BarChart/HorizontalBarChart.d.ts +93 -0
- package/dist/esm/types/src/components/Charts/BarChart/VerticalBarChart.d.ts +110 -0
- package/dist/esm/types/src/components/Charts/LineChart/LineChart.d.ts +89 -0
- package/dist/esm/types/src/components/Charts/PieChart/PieChart.d.ts +86 -0
- package/dist/esm/types/src/components/Charts/TreeMap/TreeMap.d.ts +74 -0
- package/dist/esm/types/src/components/DataDisplay/Accordion/Accordion.d.ts +54 -0
- package/dist/esm/types/src/components/DataDisplay/ActivityLogView/ActivityLogFilter.d.ts +35 -0
- package/dist/esm/types/src/components/DataDisplay/ActivityLogView/ActivityLogView.d.ts +78 -0
- package/dist/esm/types/src/components/DataDisplay/Avatar/Avatar.d.ts +40 -0
- package/dist/esm/types/src/components/DataDisplay/Chip/Chip.d.ts +28 -0
- package/dist/esm/types/src/components/DataDisplay/Chips/Chips.d.ts +55 -0
- package/dist/esm/types/src/components/DataDisplay/DataTable/DataTable.d.ts +96 -1
- package/dist/esm/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
- package/dist/esm/types/src/components/DataDisplay/DataTable/components/TablePagination.d.ts +35 -0
- package/dist/esm/types/src/components/DataDisplay/EmptyIllustration/EmptyIllustration.d.ts +30 -0
- package/dist/esm/types/src/components/DataDisplay/ReactJoyride/ReactJoyride.d.ts +64 -0
- package/dist/esm/types/src/components/DataDisplay/Separator/Separator.d.ts +30 -0
- package/dist/esm/types/src/components/DataDisplay/Skeleton/Skeleton.d.ts +20 -0
- package/dist/esm/types/src/components/DataDisplay/StatusCard/StatusCard.d.ts +36 -0
- package/dist/esm/types/src/components/DataDisplay/Timeline/Timeline.d.ts +58 -0
- package/dist/esm/types/src/components/DataDisplay/Typography/Typography.d.ts +25 -0
- package/dist/esm/types/src/components/Feedback/Alert/Alert.d.ts +31 -0
- package/dist/esm/types/src/components/Feedback/Snackbar/Snackbar.d.ts +54 -0
- package/dist/esm/types/src/components/Feedback/Spinner/Spinner.d.ts +15 -0
- package/dist/esm/types/src/components/Feedback/Tooltip/Tooltip.d.ts +54 -0
- package/dist/esm/types/src/components/Input/Button/Button.d.ts +26 -0
- package/dist/esm/types/src/components/Input/DatePicker/DatePicker.d.ts +41 -0
- package/dist/esm/types/src/components/Input/DateTimePicker/DateTimePicker.d.ts +42 -0
- package/dist/esm/types/src/components/Input/FileUpload/FileUpload.d.ts +41 -0
- package/dist/esm/types/src/components/Input/FormActions/FormActions.d.ts +37 -0
- package/dist/esm/types/src/components/Input/FormControlWrapper/FormControlWrapper.d.ts +31 -0
- package/dist/esm/types/src/components/Input/FormWrapper/FormWrapper.d.ts +20 -0
- package/dist/esm/types/src/components/Input/HelpButton/HelpButton.d.ts +14 -0
- package/dist/esm/types/src/components/Input/IconButtons/IconButtons/DeleteButton.d.ts +16 -0
- package/dist/esm/types/src/components/Input/IconButtons/IconButtons/EditButton.d.ts +16 -0
- package/dist/esm/types/src/components/Input/IconButtons/IconButtons/RedirectButton.d.ts +16 -0
- package/dist/esm/types/src/components/Input/IconButtons/IconButtons/ViewButton.d.ts +16 -0
- package/dist/esm/types/src/components/Input/IconButtons/IconButtons.d.ts +18 -0
- package/dist/esm/types/src/components/Input/LabelWrapper/LabelWrapper.d.ts +26 -0
- package/dist/esm/types/src/components/Input/MultiCheckBox/MultiCheckBox.d.ts +34 -0
- package/dist/esm/types/src/components/Input/MultiSelect/MultiSelect.d.ts +40 -0
- package/dist/esm/types/src/components/Input/OtpInput/OtpInput.d.ts +29 -0
- package/dist/esm/types/src/components/Input/PasswordField/PasswordField.d.ts +34 -0
- package/dist/esm/types/src/components/Input/RadioGroup/RadioGroup.d.ts +38 -0
- package/dist/esm/types/src/components/Input/SearchBar/SearchBar.d.ts +26 -0
- package/dist/esm/types/src/components/Input/Select/Select.d.ts +32 -0
- package/dist/esm/types/src/components/Input/SingleCheckBox/SingleCheckBox.d.ts +29 -0
- package/dist/esm/types/src/components/Input/SingleSelect/SingleSelect.d.ts +40 -0
- package/dist/esm/types/src/components/Input/Switch/Switch.d.ts +23 -0
- package/dist/esm/types/src/components/Input/Tags/Tags.d.ts +26 -0
- package/dist/esm/types/src/components/Input/TextField/TextField.d.ts +35 -0
- package/dist/esm/types/src/components/Input/Textarea/Textarea.d.ts +36 -0
- package/dist/esm/types/src/components/Layout/AppLayout/AppLayout.d.ts +32 -0
- package/dist/esm/types/src/components/Layout/AppLayout/components/MenuToggleButton.d.ts +16 -0
- package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/MenuBar.d.ts +26 -0
- package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/MenuItem.d.ts +37 -0
- package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/Sidebar.d.ts +30 -1
- package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/StyledComponents.d.ts +139 -0
- package/dist/esm/types/src/components/Layout/AppLayout/components/UserProfilePopup.d.ts +34 -0
- package/dist/esm/types/src/components/Layout/AppLayout/context/SidebarContext.d.ts +48 -0
- package/dist/esm/types/src/components/Layout/AppLayout/types.d.ts +1 -1
- package/dist/esm/types/src/components/Layout/PageContent/PageContent.d.ts +21 -1
- package/dist/esm/types/src/components/Layout/PageHeader/PageHeader.d.ts +46 -0
- package/dist/esm/types/src/components/Layout/PageHeader/components/SearchBar.d.ts +22 -0
- package/dist/esm/types/src/components/Layout/UserBox/UserBox.d.ts +40 -0
- package/dist/esm/types/src/components/Navigation/Breadcrumbs/Breadcrumbs.d.ts +33 -0
- package/dist/esm/types/src/components/Navigation/Calendar/Calendar.d.ts +63 -0
- package/dist/esm/types/src/components/Navigation/ConfirmDialog/ConfirmDialog.d.ts +64 -0
- package/dist/esm/types/src/components/Navigation/Dialog/Dialog.d.ts +55 -0
- package/dist/esm/types/src/components/Navigation/DialogButton/DialogButton.d.ts +64 -0
- package/dist/esm/types/src/components/Navigation/DropDownMenu/DropDownMenu.d.ts +73 -0
- package/dist/esm/types/src/components/Navigation/PreviewFiles/PreviewFiles.d.ts +54 -0
- package/dist/esm/types/src/components/Navigation/Stepper/Stepper.d.ts +55 -10
- package/dist/esm/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +85 -1
- package/dist/esm/types/src/components/Navigation/UploadDialog/UploadDialog.d.ts +64 -0
- package/dist/esm/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
- package/dist/index.d.ts +2961 -16
- package/dist/styles.css +30 -81
- package/package.json +1 -1
- package/src/components/Assets/ErrorPages/ComingSoon.tsx +24 -0
- package/src/components/Assets/ErrorPages/InternalServerError.tsx +20 -0
- package/src/components/Assets/ErrorPages/NoInternetConnection.tsx +20 -0
- package/src/components/Assets/ErrorPages/NoItemFound.tsx +28 -0
- package/src/components/Assets/ErrorPages/PageNotFound.tsx +21 -0
- package/src/components/Assets/ErrorPages/ResourceNotFound.tsx +21 -0
- package/src/components/Assets/ErrorPages/UnAuthorized.tsx +31 -0
- package/src/components/Assets/Icons/Icons.tsx +55 -1
- package/src/components/Charts/BarChart/BarChart.tsx +38 -0
- package/src/components/Charts/BarChart/HorizontalBarChart.tsx +93 -0
- package/src/components/Charts/BarChart/VerticalBarChart.tsx +110 -0
- package/src/components/Charts/LineChart/LineChart.tsx +89 -0
- package/src/components/Charts/PieChart/PieChart.tsx +86 -0
- package/src/components/Charts/TreeMap/TreeMap.tsx +90 -0
- package/src/components/DataDisplay/Accordion/Accordion.tsx +54 -0
- package/src/components/DataDisplay/ActivityLogView/ActivityLogFilter.tsx +35 -0
- package/src/components/DataDisplay/ActivityLogView/ActivityLogView.tsx +84 -0
- package/src/components/DataDisplay/Avatar/Avatar.tsx +40 -0
- package/src/components/DataDisplay/Chip/Chip.tsx +28 -0
- package/src/components/DataDisplay/Chips/Chips.tsx +56 -0
- package/src/components/DataDisplay/DataTable/DataTable.tsx +109 -2
- package/src/components/DataDisplay/DataTable/components/CardsView.tsx +28 -13
- package/src/components/DataDisplay/DataTable/components/ColumnSelector/ColumnSelector.tsx +22 -4
- package/src/components/DataDisplay/DataTable/components/TableHeaders/TableActionHeader.tsx +9 -4
- package/src/components/DataDisplay/DataTable/components/TablePagination.tsx +35 -0
- package/src/components/DataDisplay/DataTable/components/TableView.tsx +5 -1
- package/src/components/DataDisplay/EmptyIllustration/EmptyIllustration.tsx +31 -0
- package/src/components/DataDisplay/ReactJoyride/ReactJoyride.tsx +64 -0
- package/src/components/DataDisplay/Separator/Separator.tsx +32 -0
- package/src/components/DataDisplay/Skeleton/Skeleton.tsx +20 -0
- package/src/components/DataDisplay/StatusCard/StatusCard.tsx +36 -0
- package/src/components/DataDisplay/Timeline/Timeline.tsx +58 -0
- package/src/components/DataDisplay/Typography/Typography.tsx +25 -0
- package/src/components/Feedback/Alert/Alert.tsx +38 -0
- package/src/components/Feedback/Snackbar/Snackbar.tsx +54 -0
- package/src/components/Feedback/Spinner/Spinner.tsx +15 -0
- package/src/components/Feedback/Tooltip/Tooltip.tsx +54 -0
- package/src/components/Input/Button/Button.tsx +26 -0
- package/src/components/Input/DatePicker/DatePicker.tsx +41 -0
- package/src/components/Input/DateTimePicker/DateTimePicker.tsx +42 -0
- package/src/components/Input/FileUpload/FileUpload.tsx +41 -0
- package/src/components/Input/FormActions/FormActions.tsx +37 -0
- package/src/components/Input/FormControlWrapper/FormControlWrapper.tsx +31 -0
- package/src/components/Input/FormWrapper/FormWrapper.tsx +20 -0
- package/src/components/Input/HelpButton/HelpButton.tsx +14 -0
- package/src/components/Input/IconButtons/IconButtons/DeleteButton.tsx +16 -0
- package/src/components/Input/IconButtons/IconButtons/EditButton.tsx +16 -0
- package/src/components/Input/IconButtons/IconButtons/RedirectButton.tsx +16 -0
- package/src/components/Input/IconButtons/IconButtons/ViewButton.tsx +16 -0
- package/src/components/Input/IconButtons/IconButtons.tsx +18 -0
- package/src/components/Input/LabelWrapper/LabelWrapper.tsx +26 -0
- package/src/components/Input/MultiCheckBox/MultiCheckBox.tsx +34 -0
- package/src/components/Input/MultiSelect/MultiSelect.tsx +40 -0
- package/src/components/Input/OtpInput/OtpInput.tsx +29 -0
- package/src/components/Input/PasswordField/PasswordField.tsx +34 -0
- package/src/components/Input/RadioGroup/RadioGroup.tsx +38 -0
- package/src/components/Input/SearchBar/SearchBar.tsx +26 -0
- package/src/components/Input/Select/Select.tsx +41 -0
- package/src/components/Input/SingleCheckBox/SingleCheckBox.tsx +29 -0
- package/src/components/Input/SingleSelect/SingleSelect.tsx +40 -0
- package/src/components/Input/Switch/Switch.tsx +23 -0
- package/src/components/Input/Tags/Tags.tsx +26 -0
- package/src/components/Input/TextField/TextField.tsx +35 -0
- package/src/components/Input/Textarea/Textarea.tsx +36 -0
- package/src/components/Layout/AppLayout/AppLayout.tsx +34 -11
- package/src/components/Layout/AppLayout/components/MenuToggleButton.tsx +16 -0
- package/src/components/Layout/AppLayout/components/Sidebar/MenuBar.tsx +26 -0
- package/src/components/Layout/AppLayout/components/Sidebar/MenuItem.tsx +51 -1
- package/src/components/Layout/AppLayout/components/Sidebar/Sidebar.tsx +173 -104
- package/src/components/Layout/AppLayout/components/Sidebar/StyledComponents.tsx +139 -9
- package/src/components/Layout/AppLayout/components/UserProfilePopup.tsx +35 -1
- package/src/components/Layout/AppLayout/context/SidebarContext.tsx +48 -0
- package/src/components/Layout/AppLayout/types.ts +1 -1
- package/src/components/Layout/PageContent/PageContent.tsx +23 -3
- package/src/components/Layout/PageHeader/PageHeader.tsx +68 -7
- package/src/components/Layout/PageHeader/components/SearchBar.tsx +22 -0
- package/src/components/Layout/UserBox/UserBox.tsx +40 -0
- package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +53 -4
- package/src/components/Navigation/Calendar/Calendar.tsx +63 -0
- package/src/components/Navigation/ConfirmDialog/ConfirmDialog.tsx +64 -0
- package/src/components/Navigation/Dialog/Dialog.tsx +62 -2
- package/src/components/Navigation/DialogButton/DialogButton.tsx +64 -0
- package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +73 -0
- package/src/components/Navigation/PreviewFiles/PreviewFiles.tsx +93 -0
- package/src/components/Navigation/Stepper/Stepper.tsx +56 -10
- package/src/components/Navigation/TabsContainer/TabsContainer.tsx +86 -1
- package/src/components/Navigation/UploadDialog/UploadDialog.tsx +64 -0
- package/src/shadcn-components/Layout/Sheet/Sheet.tsx +2 -2
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import { type ChartConfig } from '@/shadcn-components/Charts/Chart';
|
|
2
2
|
import { LegendProps, MarginProps, SubTitleProps, TitleProps } from '../types/types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the PieChart component
|
|
5
|
+
* @typedef {Object} PieChartProps
|
|
6
|
+
* @property {string} [title='Pie Chart'] - Chart title text
|
|
7
|
+
* @property {boolean} [showSubtitle=false] - Whether to display subtitle
|
|
8
|
+
* @property {string} [subTitle=''] - Chart subtitle text
|
|
9
|
+
* @property {TitleProps} [titleProps={variant: 'large'}] - Title styling props
|
|
10
|
+
* @property {SubTitleProps} [subTitleProps={variant: 'small'}] - Subtitle styling props
|
|
11
|
+
* @property {MarginProps} [margin] - Chart margins
|
|
12
|
+
* @property {number} [width=500] - Chart width in pixels
|
|
13
|
+
* @property {number} [height=500] - Chart height in pixels
|
|
14
|
+
* @property {PieProps} pie1 - Configuration for the primary pie (required)
|
|
15
|
+
* @property {PieProps} [pie2] - Configuration for the secondary pie (optional, for donut charts)
|
|
16
|
+
* @property {string} [className] - CSS class for the container
|
|
17
|
+
* @property {boolean} [showLegend=true] - Whether to display the legend
|
|
18
|
+
* @property {LegendProps} [legendSx] - Legend styling props
|
|
19
|
+
* @property {boolean} [showToolTip=true] - Whether to show tooltip on hover
|
|
20
|
+
* @property {ChartConfig} config - Chart configuration with color mappings
|
|
21
|
+
* @property {boolean} [hideTooltipLabel=false] - Whether to hide the label in tooltip
|
|
22
|
+
*/
|
|
3
23
|
export type PieChartProps = {
|
|
4
24
|
title?: string;
|
|
5
25
|
showSubtitle?: boolean;
|
|
@@ -18,6 +38,22 @@ export type PieChartProps = {
|
|
|
18
38
|
config: ChartConfig;
|
|
19
39
|
hideTooltipLabel?: boolean;
|
|
20
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Configuration for a single pie in the PieChart
|
|
43
|
+
* @typedef {Object} PieProps
|
|
44
|
+
* @property {any[]} data - Array of data objects for the pie slices
|
|
45
|
+
* @property {string} dataKey - The key in data objects to use for slice values
|
|
46
|
+
* @property {string} [nameKey] - The key in data objects to use for slice labels
|
|
47
|
+
* @property {number} [innerRadius] - Inner radius for donut charts (creates hollow center)
|
|
48
|
+
* @property {number} [outerRadius] - Outer radius of the pie
|
|
49
|
+
* @property {string} [fill] - Default fill color for pie slices
|
|
50
|
+
* @property {boolean} [label] - Whether to show labels on pie slices
|
|
51
|
+
* @property {string} [cx='50%'] - X-coordinate of pie center (percentage or pixels)
|
|
52
|
+
* @property {string} [cy='50%'] - Y-coordinate of pie center (percentage or pixels)
|
|
53
|
+
* @property {number} [startAngle] - Starting angle of the pie in degrees
|
|
54
|
+
* @property {number} [endAngle] - Ending angle of the pie in degrees
|
|
55
|
+
* @property {string[]} [colors] - Array of colors for pie slices (cycles if fewer than slices)
|
|
56
|
+
*/
|
|
21
57
|
type PieProps = {
|
|
22
58
|
data: any[];
|
|
23
59
|
dataKey: string;
|
|
@@ -32,5 +68,55 @@ type PieProps = {
|
|
|
32
68
|
endAngle?: number;
|
|
33
69
|
colors?: string[];
|
|
34
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* PieChart Component
|
|
73
|
+
* Displays data as one or two pie/donut charts with customizable colors, labels, and legend.
|
|
74
|
+
* Supports single pie, donut, or dual-pie layouts.
|
|
75
|
+
*
|
|
76
|
+
* @component
|
|
77
|
+
* @param {PieChartProps} props - The component props
|
|
78
|
+
* @param {string} [props.title] - Chart title
|
|
79
|
+
* @param {boolean} [props.showSubtitle] - Show/hide subtitle
|
|
80
|
+
* @param {string} [props.subTitle] - Chart subtitle
|
|
81
|
+
* @param {TitleProps} [props.titleProps] - Title styling
|
|
82
|
+
* @param {SubTitleProps} [props.subTitleProps] - Subtitle styling
|
|
83
|
+
* @param {MarginProps} [props.margin] - Chart margins
|
|
84
|
+
* @param {number} [props.width] - Chart width in pixels
|
|
85
|
+
* @param {number} [props.height] - Chart height in pixels
|
|
86
|
+
* @param {PieProps} props.pie1 - Primary pie configuration
|
|
87
|
+
* @param {PieProps} [props.pie2] - Secondary pie configuration (creates dual-pie)
|
|
88
|
+
* @param {string} [props.className] - Container CSS class
|
|
89
|
+
* @param {boolean} [props.showLegend] - Show/hide legend
|
|
90
|
+
* @param {LegendProps} [props.legendSx] - Legend styling
|
|
91
|
+
* @param {boolean} [props.showToolTip] - Show/hide tooltip
|
|
92
|
+
* @param {ChartConfig} props.config - Chart color configuration
|
|
93
|
+
* @param {boolean} [props.hideTooltipLabel] - Hide tooltip label
|
|
94
|
+
* @returns {React.ReactElement} Rendered pie chart
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* const data = [
|
|
98
|
+
* { name: 'Slice A', value: 400 },
|
|
99
|
+
* { name: 'Slice B', value: 300 },
|
|
100
|
+
* { name: 'Slice C', value: 300 }
|
|
101
|
+
* ];
|
|
102
|
+
* const config = {
|
|
103
|
+
* name: { label: 'Category', color: '#3b82f6' },
|
|
104
|
+
* value: { label: 'Value', color: '#10b981' }
|
|
105
|
+
* };
|
|
106
|
+
*
|
|
107
|
+
* return (
|
|
108
|
+
* <PieChart
|
|
109
|
+
* pie1={{
|
|
110
|
+
* data: data,
|
|
111
|
+
* dataKey: 'value',
|
|
112
|
+
* nameKey: 'name',
|
|
113
|
+
* colors: ['#3b82f6', '#10b981', '#f59e0b']
|
|
114
|
+
* }}
|
|
115
|
+
* config={config}
|
|
116
|
+
* title="Sales Distribution"
|
|
117
|
+
* showLegend={true}
|
|
118
|
+
* />
|
|
119
|
+
* );
|
|
120
|
+
*/
|
|
35
121
|
export declare const PieChart: ({ title, showSubtitle, subTitle, subTitleProps, titleProps, margin, width, height, showToolTip, showLegend, legendSx, pie1, pie2, className, config, hideTooltipLabel, }: PieChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
122
|
export {};
|
|
@@ -2,6 +2,29 @@ import { type ChartConfig } from '@/shadcn-components/Charts/Chart';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AnimationTiming } from 'recharts/types/util/types';
|
|
4
4
|
import { MarginProps, SubTitleProps, TitleProps } from '../types/types';
|
|
5
|
+
/**
|
|
6
|
+
* Props for the TreeMap component
|
|
7
|
+
* @typedef {Object} TreeMapProps
|
|
8
|
+
* @property {any} data - Hierarchical data structure for the treemap (should have children property for nested data)
|
|
9
|
+
* @property {string|number} dataKey - The key to use for treemap cell sizing
|
|
10
|
+
* @property {ChartConfig} config - Chart configuration with color mappings
|
|
11
|
+
* @property {string} [title='Tree Map'] - Chart title text
|
|
12
|
+
* @property {boolean} [showSubtitle=false] - Whether to display subtitle
|
|
13
|
+
* @property {string} [subTitle=''] - Chart subtitle text
|
|
14
|
+
* @property {TitleProps} [titleProps={variant: 'large'}] - Title styling props
|
|
15
|
+
* @property {SubTitleProps} [subTitleProps={variant: 'small'}] - Subtitle styling props
|
|
16
|
+
* @property {number} [width=400] - Chart width in pixels
|
|
17
|
+
* @property {number} [height=200] - Chart height in pixels
|
|
18
|
+
* @property {MarginProps} [margin] - Chart margins
|
|
19
|
+
* @property {number} [aspectRatio] - Aspect ratio of treemap cells
|
|
20
|
+
* @property {string} [fill='#F8C12D'] - Default fill color for cells
|
|
21
|
+
* @property {string} [stroke='#fff'] - Border color for cells
|
|
22
|
+
* @property {string[]} [colors] - Array of colors for cells (overrides fill if provided)
|
|
23
|
+
* @property {string} [className] - CSS class for the container
|
|
24
|
+
* @property {boolean} [showToolTip=true] - Whether to show tooltip on hover
|
|
25
|
+
* @property {boolean} [isAnimationActive=false] - Whether to animate cells
|
|
26
|
+
* @property {AnimationTiming} [animationEasing='linear'] - Animation easing function
|
|
27
|
+
*/
|
|
5
28
|
export interface TreeMapProps {
|
|
6
29
|
data: any;
|
|
7
30
|
dataKey: string | number;
|
|
@@ -23,5 +46,56 @@ export interface TreeMapProps {
|
|
|
23
46
|
isAnimationActive?: boolean;
|
|
24
47
|
animationEasing?: AnimationTiming;
|
|
25
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* TreeMap Component
|
|
51
|
+
* Displays hierarchical data as a treemap visualization where cell sizes represent values.
|
|
52
|
+
* Each cell can be colored based on configured colors or a single fill color.
|
|
53
|
+
*
|
|
54
|
+
* @component
|
|
55
|
+
* @param {TreeMapProps} props - The component props
|
|
56
|
+
* @param {any} props.data - Hierarchical data structure with nested children
|
|
57
|
+
* @param {string|number} props.dataKey - Key for cell sizing calculation
|
|
58
|
+
* @param {ChartConfig} props.config - Chart color configuration
|
|
59
|
+
* @param {string} [props.title] - Chart title
|
|
60
|
+
* @param {boolean} [props.showSubtitle] - Show/hide subtitle
|
|
61
|
+
* @param {string} [props.subTitle] - Chart subtitle
|
|
62
|
+
* @param {TitleProps} [props.titleProps] - Title styling
|
|
63
|
+
* @param {SubTitleProps} [props.subTitleProps] - Subtitle styling
|
|
64
|
+
* @param {number} [props.width] - Chart width in pixels
|
|
65
|
+
* @param {number} [props.height] - Chart height in pixels
|
|
66
|
+
* @param {MarginProps} [props.margin] - Chart margins
|
|
67
|
+
* @param {number} [props.aspectRatio] - Cell aspect ratio
|
|
68
|
+
* @param {string} [props.fill] - Default cell fill color
|
|
69
|
+
* @param {string} [props.stroke] - Cell border color
|
|
70
|
+
* @param {string[]} [props.colors] - Array of colors for cells
|
|
71
|
+
* @param {string} [props.className] - Container CSS class
|
|
72
|
+
* @param {boolean} [props.showToolTip] - Show/hide tooltip
|
|
73
|
+
* @param {boolean} [props.isAnimationActive] - Enable/disable animations
|
|
74
|
+
* @param {AnimationTiming} [props.animationEasing] - Animation easing function
|
|
75
|
+
* @returns {React.ReactElement} Rendered treemap chart
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* const data = {
|
|
79
|
+
* name: 'Root',
|
|
80
|
+
* children: [
|
|
81
|
+
* { name: 'Category A', value: 400 },
|
|
82
|
+
* { name: 'Category B', value: 300 },
|
|
83
|
+
* { name: 'Category C', value: 200 }
|
|
84
|
+
* ]
|
|
85
|
+
* };
|
|
86
|
+
* const config = {
|
|
87
|
+
* value: { label: 'Value', color: '#3b82f6' }
|
|
88
|
+
* };
|
|
89
|
+
*
|
|
90
|
+
* return (
|
|
91
|
+
* <TreeMap
|
|
92
|
+
* data={data}
|
|
93
|
+
* dataKey="value"
|
|
94
|
+
* config={config}
|
|
95
|
+
* title="Market Share"
|
|
96
|
+
* colors={['#3b82f6', '#10b981', '#f59e0b']}
|
|
97
|
+
* />
|
|
98
|
+
* );
|
|
99
|
+
*/
|
|
26
100
|
declare const TreeMap: React.FC<TreeMapProps>;
|
|
27
101
|
export default TreeMap;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for individual accordion items
|
|
4
|
+
* @typedef {Object} AccordionItemProps
|
|
5
|
+
* @property {ReactNode} title - The title/header content of the accordion item
|
|
6
|
+
* @property {ReactNode} content - The main content displayed when item is expanded
|
|
7
|
+
* @property {ReactNode} [actions] - Optional action buttons or elements displayed in the header
|
|
8
|
+
* @property {string[]} [errorKeys] - Array of error field keys associated with this item
|
|
9
|
+
* @property {string} [className] - Optional CSS class for the accordion item container
|
|
10
|
+
* @property {string} [contentClassName] - Optional CSS class for the content section
|
|
11
|
+
*/
|
|
2
12
|
export type AccordionItemProps = {
|
|
3
13
|
title: ReactNode;
|
|
4
14
|
content: ReactNode;
|
|
@@ -7,11 +17,55 @@ export type AccordionItemProps = {
|
|
|
7
17
|
className?: string;
|
|
8
18
|
contentClassName?: string;
|
|
9
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Props for the Accordion component
|
|
22
|
+
* @typedef {Object} AccordionProps
|
|
23
|
+
* @property {AccordionItemProps[]} data - Array of accordion items to display
|
|
24
|
+
* @property {string} [className] - Optional CSS class for the accordion container
|
|
25
|
+
* @property {number} [defaultExpandedIndex] - Index of item to expand by default
|
|
26
|
+
* @property {string} [errorField] - Error field name to auto-expand item containing this error
|
|
27
|
+
*/
|
|
10
28
|
type AccordionProps = {
|
|
11
29
|
data: AccordionItemProps[];
|
|
12
30
|
className?: string;
|
|
13
31
|
defaultExpandedIndex?: number;
|
|
14
32
|
errorField?: string;
|
|
15
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Accordion component for displaying collapsible sections
|
|
36
|
+
* Auto-expands section containing error field, supports custom actions per item
|
|
37
|
+
*
|
|
38
|
+
* @component
|
|
39
|
+
* @param {AccordionProps} props - Accordion configuration
|
|
40
|
+
* @param {AccordionItemProps[]} props.data - Array of accordion items with title, content, and optional actions
|
|
41
|
+
* @param {string} [props.className] - Additional CSS class for the accordion wrapper
|
|
42
|
+
* @param {number} [props.defaultExpandedIndex] - Index of the item to expand on initial render (0-based)
|
|
43
|
+
* @param {string} [props.errorField] - Field name containing error; matching item will auto-expand
|
|
44
|
+
* @returns {JSX.Element} Accordion component with collapsible sections
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Basic accordion
|
|
48
|
+
* <Accordion
|
|
49
|
+
* data={[
|
|
50
|
+
* { title: "Section 1", content: "Content 1" },
|
|
51
|
+
* { title: "Section 2", content: "Content 2" }
|
|
52
|
+
* ]}
|
|
53
|
+
* defaultExpandedIndex={0}
|
|
54
|
+
* />
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* // With actions and error handling
|
|
58
|
+
* <Accordion
|
|
59
|
+
* data={[
|
|
60
|
+
* {
|
|
61
|
+
* title: "Personal Info",
|
|
62
|
+
* content: <PersonForm />,
|
|
63
|
+
* actions: <Button>Edit</Button>,
|
|
64
|
+
* errorKeys: ["firstName", "lastName"]
|
|
65
|
+
* }
|
|
66
|
+
* ]}
|
|
67
|
+
* errorField="firstName"
|
|
68
|
+
* />
|
|
69
|
+
*/
|
|
16
70
|
export declare const Accordion: ({ data, className, defaultExpandedIndex, errorField, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
71
|
export {};
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for ActivityLogFilter component
|
|
3
|
+
* @typedef {Object} ActivityLogFilterProps
|
|
4
|
+
* @property {Date | null} fromDate - Current filter start date
|
|
5
|
+
* @property {Date | null} toDate - Current filter end date
|
|
6
|
+
* @property {(date: Date | null) => void} setFromDate - Update start date
|
|
7
|
+
* @property {(date: Date | null) => void} setToDate - Update end date
|
|
8
|
+
* @property {() => void} fetchNextPage - Callback to apply filters
|
|
9
|
+
* @property {boolean} isLoading - Whether data is loading
|
|
10
|
+
*/
|
|
1
11
|
interface ActivityLogFilterProps {
|
|
2
12
|
fromDate: Date | null;
|
|
3
13
|
toDate: Date | null;
|
|
@@ -6,5 +16,30 @@ interface ActivityLogFilterProps {
|
|
|
6
16
|
fetchNextPage: () => void;
|
|
7
17
|
isLoading: boolean;
|
|
8
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* ActivityLogFilter component for date range filtering
|
|
21
|
+
* Provides popover with date pickers and apply/clear buttons
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
* @param {ActivityLogFilterProps} props - Filter configuration
|
|
25
|
+
* @param {Date | null} props.fromDate - Start date filter
|
|
26
|
+
* @param {Date | null} props.toDate - End date filter
|
|
27
|
+
* @param {(date: Date | null) => void} props.setFromDate - Handler for start date change
|
|
28
|
+
* @param {(date: Date | null) => void} props.setToDate - Handler for end date change
|
|
29
|
+
* @param {() => void} props.fetchNextPage - Handler to apply filters
|
|
30
|
+
* @param {boolean} props.isLoading - Disable controls while loading
|
|
31
|
+
* @returns {JSX.Element} Filter button with date picker popover
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Activity filter with date range
|
|
35
|
+
* <ActivityLogFilter
|
|
36
|
+
* fromDate={startDate}
|
|
37
|
+
* toDate={endDate}
|
|
38
|
+
* setFromDate={setStart}
|
|
39
|
+
* setToDate={setEnd}
|
|
40
|
+
* fetchNextPage={() => applyFilters()}
|
|
41
|
+
* isLoading={false}
|
|
42
|
+
* />
|
|
43
|
+
*/
|
|
9
44
|
export declare const ActivityLogFilter: ({ fromDate, toDate, setFromDate, setToDate, fetchNextPage, isLoading, }: ActivityLogFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
45
|
export {};
|
|
@@ -1,10 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type for activity action
|
|
3
|
+
* @typedef {'create' | 'update' | 'delete'} ActivityAction
|
|
4
|
+
*/
|
|
1
5
|
export type ActivityAction = 'create' | 'update' | 'delete';
|
|
6
|
+
/**
|
|
7
|
+
* Interface for a single activity entry
|
|
8
|
+
* @typedef {Object} Activity
|
|
9
|
+
* @property {string} [userName] - Name of user who performed the action
|
|
10
|
+
* @property {ActivityAction} [action] - Type of action performed
|
|
11
|
+
* @property {string} message - Description or details of the activity
|
|
12
|
+
* @property {string} timestamp - ISO timestamp of when activity occurred
|
|
13
|
+
*/
|
|
2
14
|
export interface Activity {
|
|
3
15
|
userName?: string;
|
|
4
16
|
action?: ActivityAction;
|
|
5
17
|
message: string;
|
|
6
18
|
timestamp: string;
|
|
7
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Props for ActivityLogView component
|
|
22
|
+
* @typedef {Object} ActivityLogProps
|
|
23
|
+
* @property {Activity[]} activitiesData - Array of activities to display
|
|
24
|
+
* @property {boolean} isFetchingNextPage - Whether next page is being fetched
|
|
25
|
+
* @property {() => void} fetchNextPage - Callback to fetch next page
|
|
26
|
+
* @property {boolean | undefined} hasNextPage - Whether more activities exist
|
|
27
|
+
* @property {Date | null} fromDate - Filter start date
|
|
28
|
+
* @property {Date | null} toDate - Filter end date
|
|
29
|
+
* @property {(date: Date | null) => void} setFromDate - Update filter start date
|
|
30
|
+
* @property {(date: Date | null) => void} setToDate - Update filter end date
|
|
31
|
+
* @property {boolean} isLoading - Whether data is loading
|
|
32
|
+
* @property {boolean} [hideLogFilter] - Hide the date filter controls
|
|
33
|
+
* @property {string} [className] - CSS class for container
|
|
34
|
+
* @property {string} [title] - Title to display above activities
|
|
35
|
+
*/
|
|
8
36
|
interface ActivityLogProps {
|
|
9
37
|
activitiesData: Activity[];
|
|
10
38
|
isFetchingNextPage: boolean;
|
|
@@ -19,5 +47,55 @@ interface ActivityLogProps {
|
|
|
19
47
|
className?: string;
|
|
20
48
|
title?: string;
|
|
21
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* ActivityLogView component for displaying chronological activity feed
|
|
52
|
+
* Groups activities by date, supports filtering and infinite scroll
|
|
53
|
+
*
|
|
54
|
+
* @component
|
|
55
|
+
* @param {ActivityLogProps} props - Activity log configuration
|
|
56
|
+
* @param {Activity[]} props.activitiesData - Array of activity entries to display
|
|
57
|
+
* @param {boolean} props.isFetchingNextPage - Whether next page is loading
|
|
58
|
+
* @param {() => void} props.fetchNextPage - Callback to load more activities
|
|
59
|
+
* @param {boolean | undefined} props.hasNextPage - Whether more activities available
|
|
60
|
+
* @param {Date | null} props.fromDate - Filter start date (null = no limit)
|
|
61
|
+
* @param {Date | null} props.toDate - Filter end date (null = no limit)
|
|
62
|
+
* @param {(date: Date | null) => void} props.setFromDate - Update filter start date
|
|
63
|
+
* @param {(date: Date | null) => void} props.setToDate - Update filter end date
|
|
64
|
+
* @param {boolean} props.isLoading - Initial load state
|
|
65
|
+
* @param {boolean} [props.hideLogFilter=false] - Hide filter controls
|
|
66
|
+
* @param {string} [props.className] - CSS class for container
|
|
67
|
+
* @param {string} [props.title] - Title to display above log
|
|
68
|
+
* @returns {JSX.Element} Activity log with timeline, filtering, and infinite scroll
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* // Activity log with filtering
|
|
72
|
+
* <ActivityLogView
|
|
73
|
+
* activitiesData={activities}
|
|
74
|
+
* isFetchingNextPage={loading}
|
|
75
|
+
* fetchNextPage={() => loadMore()}
|
|
76
|
+
* hasNextPage={true}
|
|
77
|
+
* fromDate={startDate}
|
|
78
|
+
* toDate={endDate}
|
|
79
|
+
* setFromDate={setStartDate}
|
|
80
|
+
* setToDate={setEndDate}
|
|
81
|
+
* isLoading={false}
|
|
82
|
+
* title="Activity Feed"
|
|
83
|
+
* />
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* // Activity log without filter
|
|
87
|
+
* <ActivityLogView
|
|
88
|
+
* activitiesData={activities}
|
|
89
|
+
* isFetchingNextPage={loading}
|
|
90
|
+
* fetchNextPage={() => loadMore()}
|
|
91
|
+
* hasNextPage={true}
|
|
92
|
+
* fromDate={null}
|
|
93
|
+
* toDate={null}
|
|
94
|
+
* setFromDate={() => {}}
|
|
95
|
+
* setToDate={() => {}}
|
|
96
|
+
* isLoading={false}
|
|
97
|
+
* hideLogFilter
|
|
98
|
+
* />
|
|
99
|
+
*/
|
|
22
100
|
export declare const ActivityLogView: ({ activitiesData, isFetchingNextPage, fetchNextPage, hasNextPage, fromDate, toDate, setFromDate, setToDate, isLoading, hideLogFilter, className, title, }: ActivityLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
101
|
export {};
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for CircularAvatar component
|
|
3
|
+
* @typedef {Object} CircularAvatarProps
|
|
4
|
+
* @property {string} text - Text to display as fallback initials (e.g., "John Doe" -> "JD")
|
|
5
|
+
* @property {string} [src] - Optional image source URL for the avatar
|
|
6
|
+
* @property {string} [alt] - Optional alt text for the avatar image
|
|
7
|
+
* @property {string} [className] - Optional CSS class for the avatar container
|
|
8
|
+
* @property {string} [fallbackClassName] - Optional CSS class for the fallback text
|
|
9
|
+
* @property {(e: React.MouseEvent<HTMLDivElement>) => void} [onClick] - Optional click handler
|
|
10
|
+
*/
|
|
1
11
|
export type CircularAvatarProps = {
|
|
2
12
|
text: string;
|
|
3
13
|
src?: string;
|
|
@@ -6,4 +16,34 @@ export type CircularAvatarProps = {
|
|
|
6
16
|
fallbackClassName?: string;
|
|
7
17
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
8
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Circular avatar component with image and fallback initials
|
|
21
|
+
* Extracts first letter from each word to create initials fallback
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
* @param {CircularAvatarProps} props - Avatar configuration
|
|
25
|
+
* @param {string} props.text - Text to extract initials from for fallback display
|
|
26
|
+
* @param {string} [props.src] - Image URL to display; falls back to initials if not provided
|
|
27
|
+
* @param {string} [props.alt] - Alternative text for image accessibility
|
|
28
|
+
* @param {string} [props.className] - Additional CSS classes for avatar wrapper
|
|
29
|
+
* @param {string} [props.fallbackClassName] - Additional CSS classes for fallback text display
|
|
30
|
+
* @param {(e: React.MouseEvent<HTMLDivElement>) => void} [props.onClick] - Handler called when avatar is clicked
|
|
31
|
+
* @returns {JSX.Element} Circular avatar with image or initials
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Avatar with image
|
|
35
|
+
* <CircularAvatar
|
|
36
|
+
* text="John Doe"
|
|
37
|
+
* src="/path/to/avatar.jpg"
|
|
38
|
+
* alt="John's avatar"
|
|
39
|
+
* />
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* // Avatar with fallback initials and click handler
|
|
43
|
+
* <CircularAvatar
|
|
44
|
+
* text="Jane Smith"
|
|
45
|
+
* onClick={(e) => openUserMenu(e)}
|
|
46
|
+
* className="border-2 border-blue-500"
|
|
47
|
+
* />
|
|
48
|
+
*/
|
|
9
49
|
export declare const CircularAvatar: ({ text, src, alt, className, fallbackClassName, onClick, }: CircularAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import { Badge } from '@/shadcn-components/DataDisplay/Badge/Badge';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props for Chip component
|
|
5
|
+
* @typedef {Object} ChipProps
|
|
6
|
+
* @property {string} label - The text content displayed in the chip
|
|
7
|
+
* @extends {React.ComponentPropsWithoutRef<typeof Badge>}
|
|
8
|
+
*/
|
|
3
9
|
export interface ChipProps extends React.ComponentPropsWithoutRef<typeof Badge> {
|
|
4
10
|
label: string;
|
|
5
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Chip component for displaying compact, labeled badges
|
|
14
|
+
* Wrapper around shadcn Badge component with simpler API
|
|
15
|
+
*
|
|
16
|
+
* @component
|
|
17
|
+
* @param {ChipProps} props - Chip configuration
|
|
18
|
+
* @param {string} props.label - Text to display in the chip
|
|
19
|
+
* @param {...React.ComponentPropsWithoutRef<typeof Badge>} [props] - Additional Badge props (variant, className, etc.)
|
|
20
|
+
* @returns {JSX.Element} Chip badge element
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Basic chip
|
|
24
|
+
* <Chip label="JavaScript" />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Chip with custom variant
|
|
28
|
+
* <Chip
|
|
29
|
+
* label="Active"
|
|
30
|
+
* variant="default"
|
|
31
|
+
* className="bg-green-500"
|
|
32
|
+
* />
|
|
33
|
+
*/
|
|
6
34
|
export declare const Chip: ({ label, ...rest }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
35
|
export default Chip;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for individual chip item
|
|
4
|
+
* @typedef {Object} ChipItem
|
|
5
|
+
* @property {string | ReactNode} label - Display label for the chip
|
|
6
|
+
* @property {string | number} value - Unique value identifier for the chip
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Props for Chips component (multi/single selection)
|
|
10
|
+
* @typedef {Object} ChipsProps
|
|
11
|
+
* @property {{ label: string | ReactNode; value: string | number }[]} list - Array of chip items
|
|
12
|
+
* @property {string[] | string | number} selected - Currently selected value(s)
|
|
13
|
+
* @property {(selected: string[] | string | number) => void} onSelected - Callback when selection changes
|
|
14
|
+
* @property {'row' | 'column'} [direction='row'] - Layout direction for chips
|
|
15
|
+
* @property {boolean} [singleSelection=true] - Enable single or multiple selection
|
|
16
|
+
* @property {boolean} [toggle=false] - Allow toggling selection off
|
|
17
|
+
*/
|
|
2
18
|
interface ChipsProps {
|
|
3
19
|
list: {
|
|
4
20
|
label: string | ReactNode;
|
|
@@ -10,5 +26,44 @@ interface ChipsProps {
|
|
|
10
26
|
singleSelection?: boolean;
|
|
11
27
|
toggle?: boolean;
|
|
12
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Chips component for single or multi-select chip groups
|
|
31
|
+
* Renders interactive chips with toggle/selection capabilities
|
|
32
|
+
*
|
|
33
|
+
* @component
|
|
34
|
+
* @param {ChipsProps} props - Chips configuration
|
|
35
|
+
* @param {{ label: string | ReactNode; value: string | number }[]} props.list - Array of chip options
|
|
36
|
+
* @param {string[] | string | number} props.selected - Current selected value(s)
|
|
37
|
+
* @param {(selected: string[] | string | number) => void} props.onSelected - Callback fired when selection changes
|
|
38
|
+
* @param {'row' | 'column'} [props.direction='row'] - Flex direction for chip layout
|
|
39
|
+
* @param {boolean} [props.singleSelection=true] - If true, only one chip can be selected at a time
|
|
40
|
+
* @param {boolean} [props.toggle=false] - If true, clicking selected chip deselects it (only in singleSelection mode)
|
|
41
|
+
* @returns {JSX.Element} Interactive chip group
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* // Single selection chips
|
|
45
|
+
* <Chips
|
|
46
|
+
* list={[
|
|
47
|
+
* { label: "Option 1", value: "opt1" },
|
|
48
|
+
* { label: "Option 2", value: "opt2" }
|
|
49
|
+
* ]}
|
|
50
|
+
* selected="opt1"
|
|
51
|
+
* onSelected={(value) => setSelected(value)}
|
|
52
|
+
* />
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* // Multi-selection chips with column layout
|
|
56
|
+
* <Chips
|
|
57
|
+
* list={[
|
|
58
|
+
* { label: "JavaScript", value: "js" },
|
|
59
|
+
* { label: "TypeScript", value: "ts" },
|
|
60
|
+
* { label: "Python", value: "py" }
|
|
61
|
+
* ]}
|
|
62
|
+
* selected={["js", "ts"]}
|
|
63
|
+
* onSelected={(values) => setTags(values)}
|
|
64
|
+
* singleSelection={false}
|
|
65
|
+
* direction="column"
|
|
66
|
+
* />
|
|
67
|
+
*/
|
|
13
68
|
export declare const Chips: ({ list, selected: _selected, onSelected, direction, singleSelection, toggle, }: ChipsProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
69
|
export {};
|
|
@@ -2,6 +2,39 @@ import { ColumnDef, Row, SortingState } from '@tanstack/react-table';
|
|
|
2
2
|
import { Axios } from 'axios';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { TablePagination, type PaginationProps } from './components/TablePagination';
|
|
5
|
+
/**
|
|
6
|
+
* Props for the DataTable component
|
|
7
|
+
* @typedef {Object} DataTableProps
|
|
8
|
+
* @template TData - Type of data in table rows
|
|
9
|
+
*
|
|
10
|
+
* @property {number} [limit] - Number of rows per page for pagination
|
|
11
|
+
* @property {number} [offset] - Current page offset for pagination
|
|
12
|
+
* @property {number} [totalCount] - Total number of records in dataset
|
|
13
|
+
* @property {(page: number) => void} [onPageChange] - Callback when page changes
|
|
14
|
+
* @property {(limit: number) => void} [onLimitChange] - Callback when page limit changes
|
|
15
|
+
* @property {ColumnDef<TData, any>[]} columns - Column definitions for the table
|
|
16
|
+
* @property {TData[]} rows - Array of data rows to display
|
|
17
|
+
* @property {'standard' | 'compact' | 'comfortable'} [density='standard'] - Row height density
|
|
18
|
+
* @property {{ [x: string]: boolean }} [columnVisibilityModel] - Column visibility state
|
|
19
|
+
* @property {boolean} [isLoading=false] - Whether table is loading
|
|
20
|
+
* @property {boolean} [checkboxSelection=false] - Enable row checkboxes
|
|
21
|
+
* @property {Record<string, boolean>} [rowSelectionModel={}] - Selected rows state
|
|
22
|
+
* @property {(newRowSelectionModel: Record<string, boolean>) => void} [onRowSelectionModelChange] - Selection change callback
|
|
23
|
+
* @property {React.ReactNode[]} [selectionActions] - Actions to show when rows selected
|
|
24
|
+
* @property {(params: { row: Row<TData> }) => void} [onRowClick] - Row click handler
|
|
25
|
+
* @property {boolean} [enableSorting=false] - Enable column sorting
|
|
26
|
+
* @property {SortingState} [sortingState] - Current sorting state
|
|
27
|
+
* @property {(newSortingState: SortingState) => void} [onSortingChange] - Sorting change callback
|
|
28
|
+
* @property {boolean} [hideTableActionHeader] - Hide the action header
|
|
29
|
+
* @property {Object} [tableActionProps] - Table action header configuration
|
|
30
|
+
* @property {(row: TData, index: number) => React.ReactNode} [card] - Render function for card layout items
|
|
31
|
+
* @property {string} [className] - CSS class for wrapper
|
|
32
|
+
* @property {string} [tableClassName] - CSS class for table element
|
|
33
|
+
* @property {string} [headerClassName] - CSS class for header row
|
|
34
|
+
* @property {string | ((row: Row<TData>) => string)} [rowClassName] - CSS class for data rows
|
|
35
|
+
* @property {string} [cellClassName] - CSS class for cells
|
|
36
|
+
* @property {string} [cardContainerClassName] - CSS class for card container
|
|
37
|
+
*/
|
|
5
38
|
type DataTableProps<TData = any> = {
|
|
6
39
|
limit?: number;
|
|
7
40
|
offset?: number;
|
|
@@ -33,7 +66,7 @@ type DataTableProps<TData = any> = {
|
|
|
33
66
|
axios: Axios;
|
|
34
67
|
};
|
|
35
68
|
};
|
|
36
|
-
|
|
69
|
+
card?: (row: TData, index: number) => React.ReactNode;
|
|
37
70
|
className?: string;
|
|
38
71
|
tableClassName?: string;
|
|
39
72
|
headerClassName?: string;
|
|
@@ -41,5 +74,67 @@ type DataTableProps<TData = any> = {
|
|
|
41
74
|
cellClassName?: string;
|
|
42
75
|
cardContainerClassName?: string;
|
|
43
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* DataTable component for displaying tabular data with advanced features
|
|
79
|
+
* Supports sorting, filtering, pagination, row selection, and card view layout
|
|
80
|
+
*
|
|
81
|
+
* @component
|
|
82
|
+
* @template TData - Type of data in table rows
|
|
83
|
+
* @param {DataTableProps<TData>} props - DataTable configuration
|
|
84
|
+
* @param {ColumnDef<TData, any>[]} props.columns - TanStack table column definitions
|
|
85
|
+
* @param {TData[]} props.rows - Array of data rows
|
|
86
|
+
* @param {number} [props.limit] - Rows per page (enables pagination)
|
|
87
|
+
* @param {number} [props.offset] - Page offset
|
|
88
|
+
* @param {number} [props.totalCount] - Total row count for pagination
|
|
89
|
+
* @param {(page: number) => void} [props.onPageChange] - Page change handler
|
|
90
|
+
* @param {(limit: number) => void} [props.onLimitChange] - Page limit change handler
|
|
91
|
+
* @param {'standard' | 'compact' | 'comfortable'} [props.density='standard'] - Row height
|
|
92
|
+
* @param {boolean} [props.checkboxSelection] - Show row selection checkboxes
|
|
93
|
+
* @param {Record<string, boolean>} [props.rowSelectionModel] - Selected rows
|
|
94
|
+
* @param {(newRowSelectionModel: Record<string, boolean>) => void} [props.onRowSelectionModelChange] - Selection changed callback
|
|
95
|
+
* @param {React.ReactNode[]} [props.selectionActions] - Actions when rows selected
|
|
96
|
+
* @param {(params: { row: Row<TData> }) => void} [props.onRowClick] - Row clicked callback
|
|
97
|
+
* @param {boolean} [props.enableSorting] - Enable column sorting
|
|
98
|
+
* @param {SortingState} [props.sortingState] - Current sort state
|
|
99
|
+
* @param {(newSortingState: SortingState) => void} [props.onSortingChange] - Sort changed callback
|
|
100
|
+
* @param {boolean} [props.isLoading] - Show loading skeletons
|
|
101
|
+
* @param {boolean} [props.hideTableActionHeader] - Hide action header
|
|
102
|
+
* @param {Object} [props.tableActionProps] - Table action configuration
|
|
103
|
+
* @param {(row: TData, index: number) => React.ReactNode} [props.card] - Card render function
|
|
104
|
+
* @param {string} [props.className] - Wrapper CSS class
|
|
105
|
+
* @param {string} [props.tableClassName] - Table CSS class
|
|
106
|
+
* @param {string} [props.headerClassName] - Header CSS class
|
|
107
|
+
* @param {string | ((row: Row<TData>) => string)} [props.rowClassName] - Row CSS class
|
|
108
|
+
* @param {string} [props.cellClassName] - Cell CSS class
|
|
109
|
+
* @param {string} [props.cardContainerClassName] - Card container CSS class
|
|
110
|
+
* @returns {JSX.Element} Data table with optional pagination, sorting, and selection
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* // Basic table
|
|
114
|
+
* <DataTable
|
|
115
|
+
* columns={columns}
|
|
116
|
+
* rows={data}
|
|
117
|
+
* limit={10}
|
|
118
|
+
* offset={0}
|
|
119
|
+
* totalCount={100}
|
|
120
|
+
* />
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* // Table with selection and sorting
|
|
124
|
+
* <DataTable
|
|
125
|
+
* columns={columns}
|
|
126
|
+
* rows={data}
|
|
127
|
+
* checkboxSelection
|
|
128
|
+
* rowSelectionModel={selected}
|
|
129
|
+
* onRowSelectionModelChange={setSelected}
|
|
130
|
+
* enableSorting
|
|
131
|
+
* sortingState={sorting}
|
|
132
|
+
* onSortingChange={setSorting}
|
|
133
|
+
* limit={20}
|
|
134
|
+
* offset={page * 20}
|
|
135
|
+
* totalCount={total}
|
|
136
|
+
* onPageChange={(offset) => setPage(offset / 20)}
|
|
137
|
+
* />
|
|
138
|
+
*/
|
|
44
139
|
declare const DataTable: <TData extends Record<string, any> = any>(props: DataTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
45
140
|
export { DataTable, TablePagination, type ColumnDef, type DataTableProps, type PaginationProps, };
|