@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
|
@@ -54,6 +54,46 @@ export type SingleSelectProps = {
|
|
|
54
54
|
loading?: boolean;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* SingleSelect component for single-value selection
|
|
59
|
+
*
|
|
60
|
+
* A feature-rich single-select component supporting both local and API-driven options,
|
|
61
|
+
* with search, pagination, filtering, and flexible display modes.
|
|
62
|
+
*
|
|
63
|
+
* @component
|
|
64
|
+
* @param {SingleSelectProps} props - The select properties
|
|
65
|
+
* @param {Array<{label: string, subLabel?: string, value: any, icon?: ReactNode}>} [props.options] - Static options array
|
|
66
|
+
* @param {string} [props.optionsApiEndPoint] - API endpoint for dynamic options loading
|
|
67
|
+
* @param {any} [props.optionsApiEndpointParams] - Additional parameters for API requests
|
|
68
|
+
* @param {AxiosInstance} [props.externalAxios] - Custom axios instance for API calls
|
|
69
|
+
* @param {any} [props.value] - Currently selected value
|
|
70
|
+
* @param {(value: any) => void} [props.onChange] - Callback fired when selection changes
|
|
71
|
+
* @param {(option: any) => any} [props.getValue] - Function to extract value from option object
|
|
72
|
+
* @param {{valueKey: string, isObjectId?: boolean, isInt?: boolean, isFloat?: boolean}} [props.dbValueProps] - Database value mapping properties
|
|
73
|
+
* @param {{labelKey: string, subLabelKey?: string, useLabelStartCase?: boolean, useSubLabelStartCase?: boolean}} [props.dbLabelProps] - Database label mapping properties
|
|
74
|
+
* @param {string} [props.label] - Label for the select
|
|
75
|
+
* @param {string} [props.name] - Name attribute
|
|
76
|
+
* @param {boolean} [props.required] - Whether the field is required
|
|
77
|
+
* @param {boolean} [props.disabled] - Whether the select is disabled
|
|
78
|
+
* @param {boolean} [props.loading] - Whether options are loading
|
|
79
|
+
* @param {boolean} [props.disableClear] - Whether to hide the clear button
|
|
80
|
+
* @param {boolean} [props.fullWidth] - Whether the select takes full width
|
|
81
|
+
* @param {'input' | 'filter'} [props.type='input'] - Display type
|
|
82
|
+
* @param {(event: SyntheticEvent) => void} [props.onOpen] - Callback when menu opens
|
|
83
|
+
* @param {(event: SyntheticEvent, reason: string) => void} [props.onClose] - Callback when menu closes
|
|
84
|
+
* @returns {React.ReactElement} The rendered single-select component
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```tsx
|
|
88
|
+
* <SingleSelect
|
|
89
|
+
* label="Select User"
|
|
90
|
+
* value={selectedUser}
|
|
91
|
+
* onChange={setSelectedUser}
|
|
92
|
+
* options={users}
|
|
93
|
+
* required
|
|
94
|
+
* />
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
57
97
|
export const SingleSelect = ({
|
|
58
98
|
options,
|
|
59
99
|
optionsApiEndPoint,
|
|
@@ -7,6 +7,29 @@ export interface SwitchProps
|
|
|
7
7
|
label?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Switch component for boolean toggle input
|
|
12
|
+
*
|
|
13
|
+
* A toggle switch component with optional label support, built on shadcn's Switch.
|
|
14
|
+
* Renders a label beside the switch if provided.
|
|
15
|
+
*
|
|
16
|
+
* @component
|
|
17
|
+
* @param {SwitchProps} props - The switch properties
|
|
18
|
+
* @param {string} [props.label] - Optional label text to display next to the switch
|
|
19
|
+
* @param {boolean} [props.checked] - Whether the switch is checked
|
|
20
|
+
* @param {(checked: boolean) => void} [props.onCheckedChange] - Callback when switch state changes
|
|
21
|
+
* @param {boolean} [props.disabled] - Whether the switch is disabled
|
|
22
|
+
* @returns {React.ReactElement} The rendered switch component
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Switch
|
|
27
|
+
* label="Enable notifications"
|
|
28
|
+
* checked={enabled}
|
|
29
|
+
* onCheckedChange={setEnabled}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
10
33
|
export const Switch = React.forwardRef<
|
|
11
34
|
React.ElementRef<typeof ShadcnSwitch>,
|
|
12
35
|
SwitchProps
|
|
@@ -9,6 +9,32 @@ export type TagsProps = {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Tags component for displaying and managing tag badges
|
|
14
|
+
*
|
|
15
|
+
* A component that renders a collection of tags/badges with optional delete functionality.
|
|
16
|
+
* Useful for displaying categories, labels, or removable items.
|
|
17
|
+
*
|
|
18
|
+
* @component
|
|
19
|
+
* @param {TagsProps} props - The tags properties
|
|
20
|
+
* @param {Array<{label: string, value: any}>} props.tags - Array of tags to display
|
|
21
|
+
* @param {(deletedChip: any) => void} [props.onDelete] - Callback fired when a tag is deleted
|
|
22
|
+
* @param {'default' | 'secondary' | 'destructive' | 'outline'} [props.variant='secondary'] - Badge variant style
|
|
23
|
+
* @param {string} [props.className] - Additional CSS classes for the container
|
|
24
|
+
* @returns {React.ReactElement} The rendered tags component
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <Tags
|
|
29
|
+
* tags={[
|
|
30
|
+
* { label: 'React', value: 'react' },
|
|
31
|
+
* { label: 'TypeScript', value: 'ts' }
|
|
32
|
+
* ]}
|
|
33
|
+
* onDelete={handleTagDelete}
|
|
34
|
+
* variant="secondary"
|
|
35
|
+
* />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
12
38
|
export const Tags = ({
|
|
13
39
|
tags,
|
|
14
40
|
onDelete,
|
|
@@ -14,6 +14,41 @@ export type TextFieldProps = {
|
|
|
14
14
|
helperText?: React.ReactNode;
|
|
15
15
|
} & React.ComponentProps<typeof Input>;
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* TextField component for text input
|
|
19
|
+
*
|
|
20
|
+
* A general-purpose text input field with label support, validation states,
|
|
21
|
+
* helper/error text, and optional description.
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
* @param {TextFieldProps} props - The text field properties
|
|
25
|
+
* @param {React.ReactNode | string} [props.label] - Label for the field
|
|
26
|
+
* @param {string} [props.name] - Name attribute for the input
|
|
27
|
+
* @param {string} [props.value] - Current input value
|
|
28
|
+
* @param {(e: React.ChangeEvent<HTMLInputElement>) => void} [props.onChange] - Callback when value changes
|
|
29
|
+
* @param {string} [props.placeholder] - Placeholder text
|
|
30
|
+
* @param {boolean} [props.required] - Whether the field is required
|
|
31
|
+
* @param {boolean} [props.disabled] - Whether the field is disabled
|
|
32
|
+
* @param {boolean} [props.error] - Whether there's a validation error
|
|
33
|
+
* @param {React.ReactNode} [props.helperText] - Helper or error text
|
|
34
|
+
* @param {string} [props.description] - Additional description text
|
|
35
|
+
* @param {boolean} [props.fullWidth] - Whether the field takes full width
|
|
36
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
37
|
+
* @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Container attributes
|
|
38
|
+
* @returns {React.ReactElement} The rendered text field component
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <TextField
|
|
43
|
+
* label="Username"
|
|
44
|
+
* name="username"
|
|
45
|
+
* value={username}
|
|
46
|
+
* onChange={(e) => setUsername(e.target.value)}
|
|
47
|
+
* placeholder="Enter your username"
|
|
48
|
+
* required
|
|
49
|
+
* />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
17
52
|
export const TextField = ({
|
|
18
53
|
name,
|
|
19
54
|
label,
|
|
@@ -14,6 +14,42 @@ export type TextareaProps = {
|
|
|
14
14
|
helperText?: React.ReactNode;
|
|
15
15
|
} & React.ComponentProps<typeof ShadcnTextarea>;
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Textarea component for multi-line text input
|
|
19
|
+
*
|
|
20
|
+
* A multi-line text input field with label support, validation states,
|
|
21
|
+
* helper/error text, and optional description.
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
* @param {TextareaProps} props - The textarea properties
|
|
25
|
+
* @param {React.ReactNode | string} [props.label] - Label for the field
|
|
26
|
+
* @param {string} [props.name] - Name attribute for the textarea
|
|
27
|
+
* @param {string} [props.value] - Current input value
|
|
28
|
+
* @param {(e: React.ChangeEvent<HTMLTextAreaElement>) => void} [props.onChange] - Callback when value changes
|
|
29
|
+
* @param {string} [props.placeholder] - Placeholder text
|
|
30
|
+
* @param {number} [props.rows] - Number of visible rows
|
|
31
|
+
* @param {boolean} [props.required] - Whether the field is required
|
|
32
|
+
* @param {boolean} [props.disabled] - Whether the field is disabled
|
|
33
|
+
* @param {boolean} [props.error] - Whether there's a validation error
|
|
34
|
+
* @param {React.ReactNode} [props.helperText] - Helper or error text
|
|
35
|
+
* @param {string} [props.description] - Additional description text
|
|
36
|
+
* @param {boolean} [props.fullWidth] - Whether the field takes full width
|
|
37
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
38
|
+
* @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Container attributes
|
|
39
|
+
* @returns {React.ReactElement} The rendered textarea component
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <Textarea
|
|
44
|
+
* label="Comments"
|
|
45
|
+
* name="comments"
|
|
46
|
+
* value={comments}
|
|
47
|
+
* onChange={(e) => setComments(e.target.value)}
|
|
48
|
+
* placeholder="Enter your comments..."
|
|
49
|
+
* rows={4}
|
|
50
|
+
* />
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
17
53
|
export const Textarea = ({
|
|
18
54
|
name,
|
|
19
55
|
label,
|
|
@@ -1,11 +1,41 @@
|
|
|
1
|
-
import { FileText } from 'lucide-react';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { useMediaQuery } from '../../../hooks/useMediaQuery';
|
|
4
|
-
import { Button } from '../../Input/Button/Button';
|
|
5
3
|
import { Sidebar } from './components/Sidebar/Sidebar';
|
|
6
4
|
import { SidebarProvider, useSidebar } from './context/SidebarContext';
|
|
7
5
|
import { AppLayoutProps } from './types';
|
|
8
6
|
|
|
7
|
+
/**
|
|
8
|
+
* AppLayout Component
|
|
9
|
+
*
|
|
10
|
+
* Main layout component that provides a persistent sidebar navigation structure with responsive behavior.
|
|
11
|
+
* Automatically collapses on small screens and wraps content in a SidebarProvider for state management.
|
|
12
|
+
* Includes a floating help docs button in the bottom-right corner.
|
|
13
|
+
*
|
|
14
|
+
* @param {React.ReactNode} children - Main content to render inside the layout
|
|
15
|
+
* @param {SideMenuItemProps[]} menu - Navigation menu items for the sidebar
|
|
16
|
+
* @param {ReactNode | ((params: { collapsed: boolean }) => ReactNode)} [actions] - Optional action elements or function that receives collapsed state
|
|
17
|
+
* @param {string} [mainContainerClassName=''] - Additional CSS classes for the main content container
|
|
18
|
+
* @param {HelpDocsConfig} [helpDocsConfig] - Configuration for context-based help documentation
|
|
19
|
+
* @param {boolean} [initialCollapsed] - Initial state of sidebar collapse (auto-determined on small screens)
|
|
20
|
+
* @param {UserProfilePopupProps} [userProfileParams] - Configuration for user profile popup/menu
|
|
21
|
+
*
|
|
22
|
+
* @returns {React.ReactElement} The complete app layout with sidebar and main content area
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <AppLayout
|
|
27
|
+
* menu={menuItems}
|
|
28
|
+
* userProfileParams={{
|
|
29
|
+
* userFullName: "John Doe",
|
|
30
|
+
* email: "john@example.com",
|
|
31
|
+
* onLogout: handleLogout
|
|
32
|
+
* }}
|
|
33
|
+
* actions={<ActionButtons />}
|
|
34
|
+
* >
|
|
35
|
+
* <YourContent />
|
|
36
|
+
* </AppLayout>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
9
39
|
export const AppLayout: React.FC<AppLayoutProps> = ({
|
|
10
40
|
children,
|
|
11
41
|
menu,
|
|
@@ -58,22 +88,15 @@ const AppLayoutContent: React.FC<AppLayoutProps> = ({
|
|
|
58
88
|
}
|
|
59
89
|
/>
|
|
60
90
|
|
|
61
|
-
<Button
|
|
62
|
-
className="bg-gradient-to-r from-[#573DAB] to-[#846AD6] rounded-[32px] fixed bottom-4 right-4 z-[999] p-2"
|
|
63
|
-
onClick={() => window.open('https://docs.campx.in/', '_blank')}
|
|
64
|
-
>
|
|
65
|
-
<FileText className="w-8 h-8 text-white" />
|
|
66
|
-
</Button>
|
|
67
|
-
|
|
68
91
|
{/* Main Content */}
|
|
69
92
|
<div
|
|
70
93
|
style={{
|
|
71
94
|
height: '100vh',
|
|
72
|
-
overflow: '
|
|
95
|
+
overflow: 'auto',
|
|
73
96
|
display: 'flex',
|
|
74
97
|
flexDirection: 'column',
|
|
75
98
|
}}
|
|
76
|
-
className={`w-full p-0 ${mainContainerClassName}`}
|
|
99
|
+
className={`w-full p-0 bg-background ${mainContainerClassName}`}
|
|
77
100
|
>
|
|
78
101
|
{children}
|
|
79
102
|
</div>
|
|
@@ -9,6 +9,22 @@ interface MenuToggleButtonProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* MenuToggleButton Component
|
|
14
|
+
*
|
|
15
|
+
* Mobile-only button that toggles the sidebar visibility. This button is hidden on desktop screens
|
|
16
|
+
* (above 768px width) using the Tailwind media query. Useful for including in page headers
|
|
17
|
+
* on mobile devices to control sidebar drawer visibility.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} [className=''] - Additional CSS classes to apply to the button
|
|
20
|
+
*
|
|
21
|
+
* @returns {React.ReactElement} A menu toggle button (empty fragment on desktop)
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <MenuToggleButton className="ml-4" />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
12
28
|
export const MenuToggleButton: React.FC<MenuToggleButtonProps> = ({
|
|
13
29
|
className = '',
|
|
14
30
|
}) => {
|
|
@@ -17,6 +17,32 @@ const containerVariants = {
|
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* MenuBar Component
|
|
22
|
+
*
|
|
23
|
+
* Container component that renders the current menu level with optional back navigation.
|
|
24
|
+
* Displays a header with "Back" button when viewing nested menus and animates menu item
|
|
25
|
+
* appearance using staggered animations. Supports both collapsed and expanded sidebar states.
|
|
26
|
+
*
|
|
27
|
+
* @param {MenuState} currentMenuState - Current menu level state with menu items, title, and path
|
|
28
|
+
* @param {(params: InternalMenuClickHandlerProps) => void} internalMenuClickHandler - Callback to navigate into nested menus
|
|
29
|
+
* @param {() => void} previousMenuClickHandler - Callback to navigate back to previous menu level
|
|
30
|
+
* @param {() => void} [onClose] - Optional callback to close the mobile drawer
|
|
31
|
+
* @param {boolean} [collapsed] - Whether the sidebar is collapsed
|
|
32
|
+
* @param {(collapsed: boolean) => void} [setCollapsed] - Function to update sidebar collapse state
|
|
33
|
+
*
|
|
34
|
+
* @returns {React.ReactElement} Animated menu container with menu items and optional back button
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <MenuBar
|
|
39
|
+
* currentMenuState={menuState}
|
|
40
|
+
* internalMenuClickHandler={handleInternalClick}
|
|
41
|
+
* previousMenuClickHandler={handleBack}
|
|
42
|
+
* collapsed={false}
|
|
43
|
+
* />
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
20
46
|
export const MenuBar: React.FC<MenuBarProps> = ({
|
|
21
47
|
currentMenuState,
|
|
22
48
|
internalMenuClickHandler,
|
|
@@ -17,6 +17,43 @@ import {
|
|
|
17
17
|
SubMenuItemContainer,
|
|
18
18
|
} from './StyledComponents';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* MenuItem Component
|
|
22
|
+
*
|
|
23
|
+
* Renders a single menu item that can be one of three types:
|
|
24
|
+
* 1. **Internal Menu Item** (has nested menu): Shows a back arrow on hover, opens nested menu on click
|
|
25
|
+
* 2. **Sub Menu Item** (has expandable sub-items): Shows chevron icon, expands/collapses sub-items below
|
|
26
|
+
* 3. **Regular Link Item** (direct navigation): Direct link to a route
|
|
27
|
+
*
|
|
28
|
+
* Automatically shows tooltips when collapsed and handles drawer closing logic for mobile.
|
|
29
|
+
* Supports route matching to highlight the active menu item based on current URL.
|
|
30
|
+
*
|
|
31
|
+
* @param {number} index - Unique index of the menu item in the list
|
|
32
|
+
* @param {SideMenuItemProps} menuItem - Menu item configuration with name, path, icon, and optional menu/subMenu
|
|
33
|
+
* @param {string | null} currentMenuPath - Current path prefix for building full paths (for nested menus)
|
|
34
|
+
* @param {(params: InternalMenuClickHandlerProps) => void} internalMenuClickHandler - Callback when opening a nested/internal menu
|
|
35
|
+
* @param {() => void} [onClose] - Optional callback to close the mobile drawer after navigation
|
|
36
|
+
* @param {boolean} [collapsed] - Whether the sidebar is in collapsed state
|
|
37
|
+
* @param {(collapsed: boolean) => void} [setCollapsed] - Function to update sidebar collapse state
|
|
38
|
+
*
|
|
39
|
+
* @returns {React.ReactElement} Animated menu item with appropriate interactive elements
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <MenuItem
|
|
44
|
+
* index={0}
|
|
45
|
+
* menuItem={{
|
|
46
|
+
* name: "Dashboard",
|
|
47
|
+
* path: "/dashboard",
|
|
48
|
+
* icon: <DashboardIcon />,
|
|
49
|
+
* menu: subMenuItems // For nested menus
|
|
50
|
+
* }}
|
|
51
|
+
* currentMenuPath="/admin"
|
|
52
|
+
* internalMenuClickHandler={handleMenuClick}
|
|
53
|
+
* collapsed={false}
|
|
54
|
+
* />
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
20
57
|
export const MenuItem: React.FC<MenuItemProps> = ({
|
|
21
58
|
index,
|
|
22
59
|
menuItem,
|
|
@@ -230,7 +267,20 @@ export const MenuItem: React.FC<MenuItemProps> = ({
|
|
|
230
267
|
);
|
|
231
268
|
};
|
|
232
269
|
|
|
233
|
-
|
|
270
|
+
/**
|
|
271
|
+
* SubMenuItem Component
|
|
272
|
+
*
|
|
273
|
+
* Internal component that renders an individual sub-menu item (child item within an expandable menu).
|
|
274
|
+
* These are leaf nodes that directly navigate to routes. Automatically closes the mobile drawer
|
|
275
|
+
* on navigation since they are terminal menu items.
|
|
276
|
+
*
|
|
277
|
+
* @param {number} index - Unique index of the sub-menu item
|
|
278
|
+
* @param {{ name: string; path: string }} subMenuItem - Sub-menu item data with name and path
|
|
279
|
+
* @param {string} subMenuButtonPath - Parent menu's path prefix for building full navigation path
|
|
280
|
+
* @param {() => void} [onClose] - Optional callback to close the mobile drawer after navigation
|
|
281
|
+
*
|
|
282
|
+
* @returns {React.ReactElement} A navigation link for the sub-menu item
|
|
283
|
+
*/
|
|
234
284
|
const SubMenuItem: React.FC<{
|
|
235
285
|
index: number;
|
|
236
286
|
subMenuItem: { name: string; path: string };
|