@campxdev/react-blueprint 2.3.3 → 2.3.6

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.
Files changed (30) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/src/assets/images/svg/Empty.d.ts +4 -1
  3. package/dist/cjs/types/src/assets/images/svg/index.d.ts +4 -1
  4. package/dist/cjs/types/src/components/Assets/ErrorPages/NoItemFound.d.ts +3 -1
  5. package/dist/cjs/types/src/components/Assets/Icons/Icons.d.ts +3 -2
  6. package/dist/cjs/types/src/components/DataDisplay/ActivityLogView/styles.d.ts +1 -1
  7. package/dist/cjs/types/src/components/DataDisplay/Card/styles.d.ts +1 -1
  8. package/dist/cjs/types/src/components/DataDisplay/ReactJoyride/ReactJoyride.d.ts +20 -0
  9. package/dist/cjs/types/src/components/DataDisplay/SidePanel/styles.d.ts +1 -1
  10. package/dist/cjs/types/src/components/DataDisplay/export.d.ts +1 -0
  11. package/dist/esm/index.js +2 -2
  12. package/dist/esm/types/src/assets/images/svg/Empty.d.ts +4 -1
  13. package/dist/esm/types/src/assets/images/svg/index.d.ts +4 -1
  14. package/dist/esm/types/src/components/Assets/ErrorPages/NoItemFound.d.ts +3 -1
  15. package/dist/esm/types/src/components/Assets/Icons/Icons.d.ts +3 -2
  16. package/dist/esm/types/src/components/DataDisplay/ActivityLogView/styles.d.ts +1 -1
  17. package/dist/esm/types/src/components/DataDisplay/Card/styles.d.ts +1 -1
  18. package/dist/esm/types/src/components/DataDisplay/ReactJoyride/ReactJoyride.d.ts +20 -0
  19. package/dist/esm/types/src/components/DataDisplay/SidePanel/styles.d.ts +1 -1
  20. package/dist/esm/types/src/components/DataDisplay/export.d.ts +1 -0
  21. package/dist/index.d.ts +29 -5
  22. package/package.json +1 -1
  23. package/src/assets/images/svg/Empty.tsx +9 -3
  24. package/src/components/Assets/ErrorPages/NoItemFound.tsx +5 -1
  25. package/src/components/Assets/Icons/Icons.tsx +4 -3
  26. package/src/components/DataDisplay/ReactJoyride/CustomJoyRideStyles.css +84 -0
  27. package/src/components/DataDisplay/ReactJoyride/ReactJoyride.tsx +264 -0
  28. package/src/components/DataDisplay/export.ts +1 -0
  29. package/src/components/Layout/AppLayout/AppLayout.tsx +3 -0
  30. package/src/components/Layout/AppLayout/components/AppBar.tsx +6 -3
@@ -1 +1,4 @@
1
- export declare const Empty: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const Empty: ({ height, width, }: {
2
+ height?: string | number;
3
+ width?: string | number;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -5,6 +5,9 @@ export declare const Svgs: {
5
5
  ServerError: () => import("react/jsx-runtime").JSX.Element;
6
6
  Unauthorized: () => import("react/jsx-runtime").JSX.Element;
7
7
  ComingSoon: () => import("react/jsx-runtime").JSX.Element;
8
- Empty: () => import("react/jsx-runtime").JSX.Element;
8
+ Empty: ({ height, width, }: {
9
+ height?: string | number;
10
+ width?: string | number;
11
+ }) => import("react/jsx-runtime").JSX.Element;
9
12
  ResourceNotFound: () => import("react/jsx-runtime").JSX.Element;
10
13
  };
@@ -2,6 +2,8 @@ import { ReactNode } from 'react';
2
2
  interface NoItemFoundProps {
3
3
  title?: string;
4
4
  description: ReactNode;
5
+ height?: string | number;
6
+ width?: string | number;
5
7
  }
6
- export declare const NoItemFound: ({ title, description, }: NoItemFoundProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const NoItemFound: ({ title, description, height, width, }: NoItemFoundProps) => import("react/jsx-runtime").JSX.Element;
7
9
  export {};
@@ -1,9 +1,10 @@
1
1
  import { FC, MouseEvent } from 'react';
2
2
  export interface IconProps {
3
- color?: string;
4
3
  size?: number;
5
- hoverColor?: string;
4
+ color?: string;
6
5
  disabled?: boolean;
6
+ hoverColor?: string;
7
+ backgroundColor?: string;
7
8
  onClick?: (event: MouseEvent<Element>) => void;
8
9
  }
9
10
  export type IconComponent = FC<IconProps>;
@@ -3,7 +3,7 @@ export declare const StyledSpinnerBox: import("@mui/styled-engine").StyledCompon
3
3
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
4
  export declare const StyledSectionTitle: import("@mui/styled-engine").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@types/react").DetailedHTMLProps<import("@types/react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
5
  ref?: import("@types/react").Ref<HTMLSpanElement>;
6
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
+ }, "height" | "width" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
7
  export declare const StyledTimeline: import("@mui/styled-engine").StyledComponent<import("@mui/lab").TimelineProps & import("@types/react").RefAttributes<HTMLUListElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const StyledTimelineDot: import("@mui/styled-engine").StyledComponent<import("@mui/lab").TimelineDotProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
9
  export declare const StyledTimelineConnector: import("@mui/styled-engine").StyledComponent<import("@mui/lab").TimelineConnectorProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -11,7 +11,7 @@ export declare const StyledStack: import("@mui/styled-engine").StyledComponent<i
11
11
  }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
12
  export declare const StyledStatusText: import("@mui/styled-engine").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@types/react").DetailedHTMLProps<import("@types/react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
13
13
  ref?: import("@types/react").Ref<HTMLSpanElement>;
14
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
+ }, "height" | "width" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
15
15
  export declare const StyledIcon: import("@mui/styled-engine").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@types/react").DetailedHTMLProps<import("@types/react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
16
16
  ref?: import("@types/react").Ref<HTMLButtonElement>;
17
17
  }, "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "disabled" | "action" | "loading" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import './CustomJoyRideStyles.css';
3
+ interface JoyrideStep {
4
+ target: string;
5
+ content: string | ReactNode;
6
+ title?: string;
7
+ placement?: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'auto';
8
+ disableBeacon?: boolean;
9
+ hideCloseButton?: boolean;
10
+ showProgress?: boolean;
11
+ showSkipButton?: boolean;
12
+ spotlightClicks?: boolean;
13
+ styles?: Record<string, any>;
14
+ }
15
+ export declare const ReactJoyRide: ({ steps, children, tourName, }: {
16
+ steps: JoyrideStep[];
17
+ children?: ReactNode;
18
+ tourName: string;
19
+ }) => import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -9,4 +9,4 @@ export declare const StyledTextContainer: import("@mui/styled-engine").StyledCom
9
9
  }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
10
  export declare const StyledTypography: import("@mui/styled-engine").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@types/react").DetailedHTMLProps<import("@types/react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
11
11
  ref?: import("@types/react").Ref<HTMLSpanElement>;
12
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
+ }, "height" | "width" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -7,6 +7,7 @@ export * from './Chips/Chips';
7
7
  export * from './DataTable/DataTable';
8
8
  export * from './EditableDataTable/EditableDataTable';
9
9
  export * from './EmptyIllustration/EmptyIllustration';
10
+ export * from './ReactJoyride/ReactJoyride';
10
11
  export * from './SidePanel/SidePanel';
11
12
  export * from './StatusCard/StatusCard';
12
13
  export * from './Timeline/Timeline';
package/dist/index.d.ts CHANGED
@@ -38,7 +38,10 @@ declare const Svgs: {
38
38
  ServerError: () => react_jsx_runtime.JSX.Element;
39
39
  Unauthorized: () => react_jsx_runtime.JSX.Element;
40
40
  ComingSoon: () => react_jsx_runtime.JSX.Element;
41
- Empty: () => react_jsx_runtime.JSX.Element;
41
+ Empty: ({ height, width, }: {
42
+ height?: string | number;
43
+ width?: string | number;
44
+ }) => react_jsx_runtime.JSX.Element;
42
45
  ResourceNotFound: () => react_jsx_runtime.JSX.Element;
43
46
  };
44
47
 
@@ -55,8 +58,10 @@ declare const NoInterneConnection: ({ resetBoundary }: any) => react_jsx_runtime
55
58
  interface NoItemFoundProps {
56
59
  title?: string;
57
60
  description: ReactNode;
61
+ height?: string | number;
62
+ width?: string | number;
58
63
  }
59
- declare const NoItemFound: ({ title, description, }: NoItemFoundProps) => react_jsx_runtime.JSX.Element;
64
+ declare const NoItemFound: ({ title, description, height, width, }: NoItemFoundProps) => react_jsx_runtime.JSX.Element;
60
65
 
61
66
  declare const PageNotFound: () => react_jsx_runtime.JSX.Element;
62
67
 
@@ -67,10 +72,11 @@ declare const UnAuthorized: ({ component }: {
67
72
  }) => react_jsx_runtime.JSX.Element;
68
73
 
69
74
  interface IconProps {
70
- color?: string;
71
75
  size?: number;
72
- hoverColor?: string;
76
+ color?: string;
73
77
  disabled?: boolean;
78
+ hoverColor?: string;
79
+ backgroundColor?: string;
74
80
  onClick?: (event: MouseEvent$1<Element>) => void;
75
81
  }
76
82
  type IconComponent = FC<IconProps>;
@@ -593,6 +599,24 @@ declare const EmptyIllustration: ({ message, imageSize, messageProps, containerP
593
599
  containerProps?: SxProps;
594
600
  }) => react_jsx_runtime.JSX.Element;
595
601
 
602
+ interface JoyrideStep {
603
+ target: string;
604
+ content: string | ReactNode;
605
+ title?: string;
606
+ placement?: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'auto';
607
+ disableBeacon?: boolean;
608
+ hideCloseButton?: boolean;
609
+ showProgress?: boolean;
610
+ showSkipButton?: boolean;
611
+ spotlightClicks?: boolean;
612
+ styles?: Record<string, any>;
613
+ }
614
+ declare const ReactJoyRide: ({ steps, children, tourName, }: {
615
+ steps: JoyrideStep[];
616
+ children?: ReactNode;
617
+ tourName: string;
618
+ }) => react_jsx_runtime.JSX.Element;
619
+
596
620
  interface SidePanelProps {
597
621
  variables?: {
598
622
  label: string;
@@ -1570,5 +1594,5 @@ declare const splitBreadcrumbIdSlug: (param: string) => {
1570
1594
  declare const isLocal: boolean;
1571
1595
  declare const isDevelopment: boolean;
1572
1596
 
1573
- export { Accordion, AccordionGroup, ActivityLogView, Alert, AnimatedGIFs, AppHeader, AppHeaderV2, AppLayout, BarChart, Breadcrumbs, Button, Calendar, Card, CellContainer, CenterBox, Chips, CircularAvatar, ComingSoon, ConfirmDialog, DataTable, DatePicker, DateTimePicker, DensitySelector, Dialog, DialogButton, DropDownButton, DropDownIcon, DropdownMenu, DropdownMenuItem, EditableDataTable, EditableTableCore, EmptyIllustration, FileUpload, FloatingContent, FloatingHelpDocs, FooterContainerContainer, FormActions, FormControlWrapper, FormWrapper, HelpPopup, IconButtons, Icons, InternalServerError, LabelWrapper, LineChart, MuiThemeProvider, MultiCheckBox, NoInterneConnection, NoItemFound, OtpInput, PageContent, PageHeader, PageNotFound, PasswordField, PieChart, PreviewFiles, ProgressCard, RadioGroup, ResourceNotFound, SearchBar, Select, SidePanel, SidePanelVariables, Sidebar, SingleCheckBox, SingleSelect, Snackbar, Spinner, SquareAvatar, StatusCard, Stepper, StyledContainer, Svgs, Switch, SwitchInstitutionPopup, TableColumnsSelector, TableColumnsSelectorMenuFooter, TabsContainer, TabsLayout, TextField, TimePicker, Timeline, ToolTipContent, Tooltip, Tutorial, Typography, UnAuthorized, UploadDialog, UserProfilePopup, calculateEventStats, createBreadcrumbIdSlug, darkTheme, exportEventsToCSV, filterEventsByDateRange, generateBusinessEvents, generateRecurringEvents, getBreadcrumbsCharacter, groupEventsByDate, isDevelopment, isLocal, lightTheme, reactBlueprintReducers, splitBreadcrumbIdSlug, usePageHeader, useParams, useUrlParams, validateEvent };
1597
+ export { Accordion, AccordionGroup, ActivityLogView, Alert, AnimatedGIFs, AppHeader, AppHeaderV2, AppLayout, BarChart, Breadcrumbs, Button, Calendar, Card, CellContainer, CenterBox, Chips, CircularAvatar, ComingSoon, ConfirmDialog, DataTable, DatePicker, DateTimePicker, DensitySelector, Dialog, DialogButton, DropDownButton, DropDownIcon, DropdownMenu, DropdownMenuItem, EditableDataTable, EditableTableCore, EmptyIllustration, FileUpload, FloatingContent, FloatingHelpDocs, FooterContainerContainer, FormActions, FormControlWrapper, FormWrapper, HelpPopup, IconButtons, Icons, InternalServerError, LabelWrapper, LineChart, MuiThemeProvider, MultiCheckBox, NoInterneConnection, NoItemFound, OtpInput, PageContent, PageHeader, PageNotFound, PasswordField, PieChart, PreviewFiles, ProgressCard, RadioGroup, ReactJoyRide, ResourceNotFound, SearchBar, Select, SidePanel, SidePanelVariables, Sidebar, SingleCheckBox, SingleSelect, Snackbar, Spinner, SquareAvatar, StatusCard, Stepper, StyledContainer, Svgs, Switch, SwitchInstitutionPopup, TableColumnsSelector, TableColumnsSelectorMenuFooter, TabsContainer, TabsLayout, TextField, TimePicker, Timeline, ToolTipContent, Tooltip, Tutorial, Typography, UnAuthorized, UploadDialog, UserProfilePopup, calculateEventStats, createBreadcrumbIdSlug, darkTheme, exportEventsToCSV, filterEventsByDateRange, generateBusinessEvents, generateRecurringEvents, getBreadcrumbsCharacter, groupEventsByDate, isDevelopment, isLocal, lightTheme, reactBlueprintReducers, splitBreadcrumbIdSlug, usePageHeader, useParams, useUrlParams, validateEvent };
1574
1598
  export type { AccordionProps, Activity, ActivityAction, AlertProps, AppHeaderProps, AppHeaderV2Props, AppLayoutProps, BarChartProps, BreadcrumbsProps, ButtonConfig, ButtonProps, CalendarDateClickInfo, CalendarDateSelectInfo, CalendarEvent, CalendarEventClickInfo, CalendarEventDropInfo, CalendarEventResizeInfo, CalendarHeaderToolbar, CalendarProps, CalendarView, CardProps, CheckboxProps, CircularAvatarProps, ConfirmDialogProps, ConfirmDialogType, DataTableProps, DensitySelectorProps, DialogButtonProps, DialogProps, DropdownMenuItemProps, DropdownMenuProps, EditableDataTableProps, EventStats, FileUploadProps, FloatingContainerProps, FormActionsProps, HelpDocsAction, HelpDocsConfig, IconComponent, IconProps, IconsType, LineChartProps, MultiCheckboxProps, OtpInputProps, PageContentProps, PasswordFieldProps, PieChartProps, PreviewFilesProps, ProgressCardProps, RadioGroupProps, RecurringEventConfig, SearchBarProps, SelectProps, Severity, SideMenuItemProps, SidePanelProps, SingleSelectProps, SnackbarProps, SquareAvatarProps, StatusCardProps, SubMenuItemProps, SwitchProps, TableColumnsSelectorProps, TabsContainerProps, TextFieldProps, TimelineItems, TimelineProps, TooltipContentProps, TooltipProps, TypographyProps, UploadDialogProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "2.3.3",
3
+ "version": "2.3.6",
4
4
  "description": "React UI component library for CampX applications",
5
5
  "author": "CampX",
6
6
  "license": "MIT",
@@ -1,8 +1,14 @@
1
- export const Empty = () => {
1
+ export const Empty = ({
2
+ height,
3
+ width,
4
+ }: {
5
+ height?: string | number;
6
+ width?: string | number;
7
+ }) => {
2
8
  return (
3
9
  <svg
4
- width="350"
5
- height="243"
10
+ width={width || '350'}
11
+ height={height || '243'}
6
12
  viewBox="0 0 350 243"
7
13
  fill="none"
8
14
  xmlns="http://www.w3.org/2000/svg"
@@ -7,15 +7,19 @@ import { CenterBox } from './styles';
7
7
  interface NoItemFoundProps {
8
8
  title?: string;
9
9
  description: ReactNode;
10
+ height?: string | number;
11
+ width?: string | number;
10
12
  }
11
13
 
12
14
  export const NoItemFound = ({
13
15
  title = 'No Items Found',
14
16
  description,
17
+ height,
18
+ width,
15
19
  }: NoItemFoundProps) => {
16
20
  return (
17
21
  <CenterBox>
18
- <Svgs.Empty />
22
+ <Svgs.Empty height={height} width={width} />
19
23
  <Typography variant="subtitle1">{title}</Typography>
20
24
  <Typography variant="body2">{description}</Typography>
21
25
  </CenterBox>
@@ -1,8 +1,8 @@
1
1
  import { AcademicFeesIcon } from './IconComponents/AcademicFeesIcon';
2
2
  import { AcademicsIcon } from './IconComponents/AcademicIcon';
3
- import { ActivitiesIcon } from './IconComponents/ActivitiesIcon';
4
3
  import { AccordionArrow } from './IconComponents/AccordionArrow';
5
4
  import { ActiveDevicesIcon } from './IconComponents/ActiveDevicesIcon';
5
+ import { ActivitiesIcon } from './IconComponents/ActivitiesIcon';
6
6
  import { ActivitylogsIcon } from './IconComponents/ActivityLogsIcon';
7
7
  import { AddSquare } from './IconComponents/AddSquare';
8
8
  import { AdminIcon } from './IconComponents/AdminIcon';
@@ -176,10 +176,11 @@ import { FC, MouseEvent } from 'react';
176
176
  import { ChallansIcon } from './IconComponents/ChallansIcon';
177
177
 
178
178
  export interface IconProps {
179
- color?: string;
180
179
  size?: number;
181
- hoverColor?: string;
180
+ color?: string;
182
181
  disabled?: boolean;
182
+ hoverColor?: string;
183
+ backgroundColor?: string;
183
184
  onClick?: (event: MouseEvent<Element>) => void;
184
185
  }
185
186
 
@@ -0,0 +1,84 @@
1
+ /* Modern ReactJoyride Styles */
2
+ .react-joyride__tooltip {
3
+ background-color: #ffffff !important;
4
+ border-radius: 12px !important;
5
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
6
+ border: 1px solid #f3f4f6 !important;
7
+ font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
8
+ padding-top: 16px !important;
9
+ }
10
+
11
+ .react-joyride__tooltip div {
12
+ text-align: left !important;
13
+ }
14
+
15
+
16
+ .react-joyride__tooltip > div:nth-child(1) div:nth-child(2) {
17
+ padding: 0 !important;
18
+ font-size: 14px !important;
19
+ line-height: 1.5 !important;
20
+ color: #4b5563 !important;
21
+ }
22
+
23
+ /* Adjust skip button positioning */
24
+ .react-joyride__tooltip button[data-action="skip"] {
25
+ top: 16px !important;
26
+ right: 16px !important;
27
+ }
28
+
29
+ /* Beacon styling */
30
+ .react-joyride__beacon {
31
+ background-color: #3b82f6 !important;
32
+ border: 3px solid #3b82f6 !important;
33
+ border-radius: 50% !important;
34
+ box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2) !important;
35
+ }
36
+
37
+ .react-joyride__beacon::before {
38
+ background-color: #3b82f6 !important;
39
+ animation: joyride-beacon-pulse 1.5s ease-in-out infinite !important;
40
+ }
41
+
42
+ /* Button hover effects */
43
+ .react-joyride__tooltip button[data-action="next"]:hover {
44
+ background-color: #000000 !important;
45
+ transform: translateY(-1px) !important;
46
+ }
47
+
48
+ .react-joyride__tooltip button[data-action="back"]:hover {
49
+ background-color: #f9fafb !important;
50
+ border-color: #d1d5db !important;
51
+ }
52
+
53
+ .react-joyride__tooltip button[data-action="skip"]:hover {
54
+ background-color: #f3f4f6 !important;
55
+ color: #374151 !important;
56
+ }
57
+
58
+ /* Progress indicator */
59
+ .react-joyride__tooltip .react-joyride__tooltip-footer {
60
+ margin-top: 16px !important;
61
+ padding-top: 16px !important;
62
+ border-top: 1px solid #f3f4f6 !important;
63
+ }
64
+
65
+ /* Arrow styling */
66
+ .react-joyride__tooltip-arrow {
67
+ filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)) !important;
68
+ }
69
+
70
+ /* Custom keyframe for beacon pulse */
71
+ @keyframes joyride-beacon-pulse {
72
+ 0% {
73
+ transform: scale(1);
74
+ opacity: 1;
75
+ }
76
+ 50% {
77
+ transform: scale(1.2);
78
+ opacity: 0.7;
79
+ }
80
+ 100% {
81
+ transform: scale(1);
82
+ opacity: 1;
83
+ }
84
+ }
@@ -0,0 +1,264 @@
1
+ import { Box, Button, Typography } from '@mui/material';
2
+ import { ReactNode, useState } from 'react';
3
+ import Joyride, { CallBackProps } from 'react-joyride';
4
+ import './CustomJoyRideStyles.css';
5
+
6
+ interface JoyrideStep {
7
+ target: string;
8
+ content: string | ReactNode;
9
+ title?: string;
10
+ placement?: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'auto';
11
+ disableBeacon?: boolean;
12
+ hideCloseButton?: boolean;
13
+ showProgress?: boolean;
14
+ showSkipButton?: boolean;
15
+ spotlightClicks?: boolean;
16
+ styles?: Record<string, any>;
17
+ }
18
+
19
+ export const ReactJoyRide = ({
20
+ steps,
21
+ children,
22
+ tourName,
23
+ }: {
24
+ steps: JoyrideStep[];
25
+ children?: ReactNode;
26
+ tourName: string;
27
+ }) => {
28
+ const [run, setRun] = useState(false);
29
+ const [stepIndex, setStepIndex] = useState(0);
30
+
31
+ const handleJoyRideCallback = (data: CallBackProps) => {
32
+ const { action, status, index } = data;
33
+
34
+ if (action === 'next' || action === 'prev') {
35
+ setStepIndex(index + (action === 'next' ? 1 : 0));
36
+ }
37
+
38
+ if (action === 'reset') {
39
+ setRun(false);
40
+ setStepIndex(0);
41
+ }
42
+ };
43
+
44
+ const customSteps = steps.map((step, index) => {
45
+ const customStep = {
46
+ ...step,
47
+ title: '', // Remove the automatic title
48
+ content: (
49
+ <Box
50
+ sx={{
51
+ fontFamily: 'Roboto, sans-serif',
52
+ display: 'flex',
53
+ flexDirection: 'column',
54
+ }}
55
+ >
56
+ <Typography
57
+ variant="caption"
58
+ sx={{
59
+ color: '#6b7280',
60
+ fontWeight: 500,
61
+ textTransform: 'uppercase',
62
+ letterSpacing: '0.5px',
63
+ fontSize: '11px',
64
+ }}
65
+ >
66
+ Step {index + 1}
67
+ </Typography>
68
+ <Box sx={{ padding: '4px 0' }}>
69
+ <Typography
70
+ sx={{
71
+ lineHeight: 1.5,
72
+ color: '#4b5563',
73
+ fontFamily: 'Poppins, sans-serif',
74
+ fontSize: '16px',
75
+ fontWeight: '600',
76
+ marginTop: '12px',
77
+ }}
78
+ >
79
+ {step.title}
80
+ </Typography>
81
+ </Box>
82
+ <Box sx={{ padding: '4px 0' }}>
83
+ <Typography
84
+ sx={{
85
+ fontSize: '14px',
86
+ lineHeight: 1.5,
87
+ color: '#4b5563',
88
+ fontFamily: 'Heebo, sans-serif',
89
+ fontWeight: '500',
90
+ }}
91
+ >
92
+ {step.content}
93
+ </Typography>
94
+ </Box>
95
+ </Box>
96
+ ),
97
+ };
98
+ return customStep;
99
+ });
100
+
101
+ return (
102
+ <>
103
+ <Box>
104
+ {/* @ts-ignore */}
105
+ <Joyride
106
+ callback={handleJoyRideCallback}
107
+ run={run}
108
+ steps={customSteps as any[]}
109
+ styles={
110
+ {
111
+ options: {
112
+ primaryColor: '#121212',
113
+ textColor: '#1f2937',
114
+ backgroundColor: '#ffffff',
115
+ overlayColor: 'rgba(0, 0, 0, 0.4)',
116
+ arrowColor: '#ffffff',
117
+ zIndex: 1000,
118
+ },
119
+ tooltip: {
120
+ borderRadius: '12px',
121
+ boxShadow:
122
+ '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
123
+ fontSize: '14px',
124
+ padding: '20px',
125
+ minWidth: '320px',
126
+ maxWidth: '400px',
127
+ },
128
+ tooltipContainer: {
129
+ textAlign: 'left' as const,
130
+ },
131
+ tooltipTitle: {
132
+ fontSize: '16px',
133
+ fontWeight: '600',
134
+ color: '#1f2937',
135
+ fontFamily: 'Poppins, sans-serif',
136
+ },
137
+ tooltipContent: {
138
+ fontSize: '14px',
139
+ lineHeight: '1.5',
140
+ color: '#4b5563',
141
+ padding: '0',
142
+ fontFamily: 'Heebo, sans-serif !important',
143
+ fontWeight: '400',
144
+ },
145
+ buttonNext: {
146
+ backgroundColor: '#121212',
147
+ color: 'white',
148
+ borderRadius: '8px',
149
+ fontSize: '14px',
150
+ fontWeight: '500',
151
+ height: '40px',
152
+ minWidth: '80px',
153
+ padding: '0 16px',
154
+ border: 'none',
155
+ cursor: 'pointer' as const,
156
+ transition: 'all 0.2s ease',
157
+ fontFamily: 'Roboto, sans-serif',
158
+ },
159
+ buttonBack: {
160
+ backgroundColor: 'transparent',
161
+ color: '#121212',
162
+ borderRadius: '8px',
163
+ fontSize: '14px',
164
+ fontWeight: '500',
165
+ height: '40px',
166
+ minWidth: '80px',
167
+ padding: '0 16px',
168
+ border: '1.5px solid #e5e7eb',
169
+ cursor: 'pointer' as const,
170
+ transition: 'all 0.2s ease',
171
+ marginRight: '8px',
172
+ fontFamily: 'Roboto, sans-serif',
173
+ },
174
+ buttonSkip: {
175
+ backgroundColor: 'transparent',
176
+ color: '#6b7280',
177
+ fontSize: '13px',
178
+ fontWeight: '500',
179
+ border: 'none',
180
+ cursor: 'pointer' as const,
181
+ position: 'absolute' as const,
182
+ top: '16px',
183
+ right: '16px',
184
+ padding: '4px 8px',
185
+ borderRadius: '6px',
186
+ transition: 'all 0.2s ease',
187
+ fontFamily: 'Roboto, sans-serif',
188
+ },
189
+ buttonClose: {
190
+ display: 'none' as const,
191
+ },
192
+ beacon: {
193
+ backgroundColor: '#3b82f6',
194
+ borderRadius: '50%',
195
+ border: '3px solid #3b82f6',
196
+ boxShadow: '0 0 0 6px rgba(59, 130, 246, 0.2)',
197
+ },
198
+ beaconInner: {
199
+ backgroundColor: '#3b82f6',
200
+ borderRadius: '50%',
201
+ },
202
+ } as any
203
+ }
204
+ continuous
205
+ showSkipButton
206
+ showProgress
207
+ scrollToFirstStep
208
+ disableOverlay={false}
209
+ disableOverlayClose
210
+ disableScrolling={false}
211
+ hideCloseButton
212
+ locale={{
213
+ last: 'Finish',
214
+ next: 'Next',
215
+ skip: 'Skip',
216
+ back: 'Previous',
217
+ }}
218
+ />
219
+
220
+ {children}
221
+
222
+ <Button
223
+ onClick={() => setRun(true)}
224
+ variant="contained"
225
+ sx={{
226
+ position: 'fixed',
227
+ top: '50%',
228
+ right: '0px',
229
+ transform: 'translateY(-50%)',
230
+ zIndex: 1000,
231
+ borderRadius: '8px 0 0 8px',
232
+ backgroundColor: '#E0E0E7',
233
+ color: '#4b5261ff',
234
+ fontSize: '14px',
235
+ fontWeight: 500,
236
+ padding: '60px 4px',
237
+ minWidth: 'auto',
238
+ textTransform: 'none',
239
+ border: '1px solid #D0D0E3',
240
+ borderRight: 'none',
241
+ fontFamily: 'Roboto, sans-serif',
242
+ letterSpacing: '0.025em',
243
+ writingMode: 'vertical-rl',
244
+ textOrientation: 'mixed',
245
+ whiteSpace: 'nowrap',
246
+ transition: 'all 0.3s cubic-bezier(0.4, 0, 0.2, 2)',
247
+ '&:hover': {
248
+ backgroundColor: '#1E027F',
249
+ color: 'white',
250
+ boxShadow:
251
+ '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
252
+ transform: 'translateY(-50%) translateX(-4px)',
253
+ },
254
+ '&:active': {
255
+ transform: 'translateY(-50%) translateX(0px)',
256
+ },
257
+ }}
258
+ >
259
+ Take a Tour
260
+ </Button>
261
+ </Box>
262
+ </>
263
+ );
264
+ };
@@ -7,6 +7,7 @@ export * from './Chips/Chips';
7
7
  export * from './DataTable/DataTable';
8
8
  export * from './EditableDataTable/EditableDataTable';
9
9
  export * from './EmptyIllustration/EmptyIllustration';
10
+ export * from './ReactJoyride/ReactJoyride';
10
11
  export * from './SidePanel/SidePanel';
11
12
  export * from './StatusCard/StatusCard';
12
13
  export * from './Timeline/Timeline';
@@ -76,4 +76,7 @@ const MainContent = styled(Box)(({ theme }: { theme?: any }) => ({
76
76
  '&::-webkit-scrollbar': {
77
77
  display: 'none', // Safari and Chrome
78
78
  },
79
+ [theme.breakpoints.down('md')]: {
80
+ padding: '0 8px',
81
+ },
79
82
  }));