sevago-sso-fe 1.0.56 → 1.0.58

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 (87) hide show
  1. package/dist/common/constant/apps.data.d.ts +20 -1
  2. package/dist/common/constant/hierarchical.constant.d.ts +8 -0
  3. package/dist/common/constant/index.d.ts +2 -0
  4. package/dist/common/constant/tree.constant.d.ts +19 -0
  5. package/dist/common/constant/typography.constant.d.ts +1 -1
  6. package/dist/common/utils/index.d.ts +0 -1
  7. package/dist/common/utils/other/get-limit-line-css.utils.d.ts +0 -1
  8. package/dist/common/utils/other/hierarchical.utils.d.ts +1 -0
  9. package/dist/common/utils/other/index.d.ts +2 -1
  10. package/dist/common/utils/string.utils.d.ts +2 -1
  11. package/dist/components/app-grid/app-grid.component.d.ts +3 -5
  12. package/dist/components/elements/avatar/avatar-online-status.element.d.ts +1 -1
  13. package/dist/components/elements/button/button-upload-file.element.d.ts +1 -1
  14. package/dist/components/elements/divider/dashed-divider.element.d.ts +1 -1
  15. package/dist/components/elements/icon/icon-content-opacity.element.d.ts +1 -1
  16. package/dist/components/elements/icon/icon-content.element.d.ts +1 -1
  17. package/dist/components/elements/icon/icon.element.d.ts +1 -1
  18. package/dist/components/elements/icon/index.d.ts +5 -5
  19. package/dist/components/elements/index.d.ts +7 -0
  20. package/dist/components/elements/pagination/index.d.ts +1 -0
  21. package/dist/components/elements/pagination/pagination.element.d.ts +14 -0
  22. package/dist/components/elements/radio/index.d.ts +1 -0
  23. package/dist/components/elements/radio/radio-group.element.d.ts +16 -0
  24. package/dist/components/elements/switch/index.d.ts +2 -0
  25. package/dist/components/elements/switch/switch-content.element.d.ts +10 -0
  26. package/dist/components/elements/switch/switch.element.d.ts +7 -0
  27. package/dist/components/elements/tabs/tabs-badge-count-subs.component.d.ts +1 -1
  28. package/dist/components/elements/tabs/tabs-badge-count.component.d.ts +2 -2
  29. package/dist/components/elements/tabs/tabs-subs.component.d.ts +1 -1
  30. package/dist/components/elements/tabs/tabs.component.d.ts +3 -3
  31. package/dist/components/elements/tag/index.d.ts +2 -0
  32. package/dist/components/elements/tag/tag-on-click.element.d.ts +8 -0
  33. package/dist/components/elements/tag/tag.element.d.ts +18 -0
  34. package/dist/components/elements/text-field/index.d.ts +9 -0
  35. package/dist/components/elements/text-field/text-field-date.element.d.ts +21 -0
  36. package/dist/components/elements/text-field/text-field-label.element.d.ts +9 -0
  37. package/dist/components/elements/text-field/text-field-month-year.element.d.ts +0 -0
  38. package/dist/components/elements/text-field/text-field-number.element.d.ts +19 -0
  39. package/dist/components/elements/text-field/text-field-search-custom.element.d.ts +9 -0
  40. package/dist/components/elements/text-field/text-field-search.element.d.ts +9 -0
  41. package/dist/components/elements/text-field/text-field-select-search-object.element.d.ts +26 -0
  42. package/dist/components/elements/text-field/text-field-select-search.element.d.ts +21 -0
  43. package/dist/components/elements/text-field/text-field.element.d.ts +13 -0
  44. package/dist/components/elements/text-field/text-highlight.element.d.ts +3 -0
  45. package/dist/components/elements/tooltip/index.d.ts +2 -0
  46. package/dist/components/elements/tooltip/tooltip-on-click.element.d.ts +7 -0
  47. package/dist/components/elements/tooltip/tooltip-on-hover.element.d.ts +9 -0
  48. package/dist/components/elements/typography/index.d.ts +4 -1
  49. package/dist/components/elements/typography/typography-grid-info-row.component.d.ts +14 -0
  50. package/dist/components/elements/typography/typography-info-row.component.d.ts +11 -0
  51. package/dist/components/elements/typography/typography-info-user.component.d.ts +19 -0
  52. package/dist/components/elements/user/index.d.ts +1 -0
  53. package/dist/components/elements/user/user-info.element.d.ts +9 -0
  54. package/dist/components/elements/wrapper/index.d.ts +3 -0
  55. package/dist/components/elements/wrapper/wrapper-chart.element.d.ts +9 -0
  56. package/dist/components/elements/wrapper/wrapper-content.element.d.ts +18 -0
  57. package/dist/components/elements/wrapper/wrapper.element.d.ts +23 -0
  58. package/dist/components/empty/empty.component.d.ts +4 -0
  59. package/dist/components/empty/index.d.ts +1 -0
  60. package/dist/components/index.d.ts +6 -0
  61. package/dist/components/layouts/default.layout.d.ts +5 -0
  62. package/dist/components/layouts/index.d.ts +1 -0
  63. package/dist/components/loading/loading.component.d.ts +1 -1
  64. package/dist/components/logo/index.d.ts +1 -0
  65. package/dist/components/logo/logo.component.d.ts +9 -0
  66. package/dist/components/motion/motion-box.component.d.ts +2 -2
  67. package/dist/components/note/index.d.ts +1 -0
  68. package/dist/components/note/note.component.d.ts +8 -0
  69. package/dist/components/price/index.d.ts +1 -0
  70. package/dist/components/price/price.component.d.ts +14 -0
  71. package/dist/components/review/index.d.ts +1 -0
  72. package/dist/components/review/review.component.d.ts +9 -0
  73. package/dist/components/sidebar/apps-sidebar.component.d.ts +3 -1
  74. package/dist/components/sidebar/system-monitor-sidebar.part.d.ts +3 -2
  75. package/dist/components/styles/image.style.d.ts +3 -0
  76. package/dist/components/styles/index.d.ts +5 -0
  77. package/dist/components/styles/input.style.d.ts +1 -0
  78. package/dist/components/styles/link.style.d.ts +1 -0
  79. package/dist/components/styles/paper.style.d.ts +7 -0
  80. package/dist/components/styles/picker.style.d.ts +47 -0
  81. package/dist/components/system-monitor/system-monitor.screen.d.ts +2 -0
  82. package/dist/index.cjs.js +33855 -1176
  83. package/dist/index.cjs.js.map +1 -1
  84. package/dist/index.esm.js +33949 -1270
  85. package/dist/index.esm.js.map +1 -1
  86. package/package.json +9 -3
  87. package/dist/common/utils/delay.utils.d.ts +0 -1
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const highlightText: (text: string, searchTerm: string) => React.ReactNode;
3
+ export declare const highlightYellow: (text: string | React.ReactNode, highlightQuery: string, showEmptyAsDots: boolean) => string | number | bigint | true | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { TooltipOnClickElement } from './tooltip-on-click.element';
2
+ export { TooltipOnHoverElement } from './tooltip-on-hover.element';
@@ -0,0 +1,7 @@
1
+ import { TooltipProps } from '@mui/material';
2
+ import { default as React, ReactElement } from 'react';
3
+ export interface TooltipOnClickElementProps extends Partial<Omit<TooltipProps, 'content'>> {
4
+ content: ReactElement | string;
5
+ onClickAway: () => void;
6
+ }
7
+ export declare const TooltipOnClickElement: React.FC<TooltipOnClickElementProps>;
@@ -0,0 +1,9 @@
1
+ import { TooltipProps } from '@mui/material';
2
+ import { default as React, ReactElement } from 'react';
3
+ export interface TooltipOnHoverElementProps extends Partial<Omit<TooltipProps, 'content'>> {
4
+ openTest?: boolean;
5
+ content: ReactElement | string;
6
+ showCloseIcon?: boolean;
7
+ onCloseClick?: () => void;
8
+ }
9
+ export declare const TooltipOnHoverElement: React.FC<TooltipOnHoverElementProps>;
@@ -1,2 +1,5 @@
1
- export { TypographyOneLine } from './typography-limit-one-line.component';
2
1
  export { TypographyContentCaption } from './typography-content-caption.component';
2
+ export { TypographyGridInfoRow } from './typography-grid-info-row.component';
3
+ export { TypographyInfoRow } from './typography-info-row.component';
4
+ export { TypographyInfoUser } from './typography-info-user.component';
5
+ export { TypographyOneLine } from './typography-limit-one-line.component';
@@ -0,0 +1,14 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ type TypographyGridInfoRowProps = {
4
+ label: string;
5
+ value: React.ReactNode;
6
+ sx?: SxProps<Theme>;
7
+ lineLimit?: number;
8
+ columns?: string;
9
+ layout?: 'horizontal' | 'vertical';
10
+ sxValue?: SxProps<Theme>;
11
+ sxLabel?: SxProps<Theme>;
12
+ };
13
+ export declare const TypographyGridInfoRow: React.FC<TypographyGridInfoRowProps>;
14
+ export {};
@@ -0,0 +1,11 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ export interface TypographyInfoRowProps {
4
+ label: React.ReactNode;
5
+ value?: React.ReactNode;
6
+ sx?: SxProps<Theme>;
7
+ lineLimit?: number;
8
+ labelSx?: SxProps<Theme>;
9
+ isColumn?: boolean;
10
+ }
11
+ export declare const TypographyInfoRow: React.FC<TypographyInfoRowProps>;
@@ -0,0 +1,19 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ export interface InfoItem {
4
+ label: string;
5
+ value: string | React.ReactNode;
6
+ sxValue?: SxProps<Theme>;
7
+ }
8
+ interface TypographyInfoGridProps {
9
+ items: InfoItem[];
10
+ columns?: number;
11
+ sx?: SxProps<Theme>;
12
+ columnGap?: number;
13
+ showEmptyAsDots?: boolean;
14
+ gridTemplateColumns?: string;
15
+ gap?: number;
16
+ highlightQuery?: string;
17
+ }
18
+ export declare const TypographyInfoUser: React.FC<TypographyInfoGridProps>;
19
+ export {};
@@ -0,0 +1 @@
1
+ export { UserInfo } from './user-info.element';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+ export interface UserInfoProps {
4
+ name: string;
5
+ department?: string;
6
+ icon?: string;
7
+ sx?: SxProps<Theme>;
8
+ }
9
+ export declare const UserInfo: React.FC<UserInfoProps>;
@@ -0,0 +1,3 @@
1
+ export { WrapperChartElement } from './wrapper-chart.element';
2
+ export { WrapperContentElement } from './wrapper-content.element';
3
+ export { WrapperElement } from './wrapper.element';
@@ -0,0 +1,9 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React, ReactNode } from 'react';
3
+ export interface WrapperChartElementProps {
4
+ name: string;
5
+ loading: boolean;
6
+ chart: ReactNode;
7
+ sx?: SxProps<Theme>;
8
+ }
9
+ export declare const WrapperChartElement: React.FC<WrapperChartElementProps>;
@@ -0,0 +1,18 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React, ReactNode } from 'react';
3
+ export interface WrapperContentElementProps {
4
+ iconLabel?: string;
5
+ label?: string;
6
+ nodeLabel?: ReactNode;
7
+ labelSize?: 'large' | 'small' | 'medium';
8
+ flex?: number;
9
+ height?: string | number | 'fit-content';
10
+ width?: string | number | 'fit-content';
11
+ direction?: 'column' | 'row';
12
+ directionNodeLabel?: 'column' | 'row';
13
+ loading?: boolean;
14
+ sx?: SxProps<Theme>;
15
+ children?: ReactNode;
16
+ sxChildren?: SxProps<Theme>;
17
+ }
18
+ export declare const WrapperContentElement: React.FC<WrapperContentElementProps>;
@@ -0,0 +1,23 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React, ReactNode } from 'react';
3
+ export interface WrapperElementProps {
4
+ iconLabel?: string;
5
+ labelId?: string;
6
+ label?: string;
7
+ nodeAction?: ReactNode;
8
+ nodeLabel?: ReactNode;
9
+ labelSize?: 'large' | 'small' | 'medium';
10
+ flex?: number;
11
+ height?: string | number | 'fit-content';
12
+ width?: string | number | 'fit-content';
13
+ direction?: 'column' | 'row';
14
+ directionNodeLabel?: 'column' | 'row';
15
+ loading?: boolean;
16
+ sx?: SxProps<Theme>;
17
+ children?: ReactNode;
18
+ sxChildren?: SxProps<Theme>;
19
+ sxLabel?: SxProps<Theme>;
20
+ divider?: ReactNode;
21
+ isTopLabel?: boolean;
22
+ }
23
+ export declare const WrapperElement: React.FC<WrapperElementProps>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export interface EmptyComponentProps {
3
+ }
4
+ export declare const EmptyComponent: React.FC<EmptyComponentProps>;
@@ -0,0 +1 @@
1
+ export { EmptyComponent } from './empty.component';
@@ -2,8 +2,14 @@ export * from './app-grid';
2
2
  export * from './banner';
3
3
  export * from './bread-cumbs';
4
4
  export * from './elements';
5
+ export * from './empty';
6
+ export * from './layouts';
5
7
  export * from './loading';
8
+ export * from './logo';
6
9
  export * from './motion';
10
+ export * from './note';
11
+ export * from './price';
12
+ export * from './review';
7
13
  export * from './sidebar';
8
14
  export * from './styles';
9
15
  export * from './system-monitor';
@@ -0,0 +1,5 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ export interface DefaultLayoutProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const DefaultLayout: React.FC<DefaultLayoutProps>;
@@ -0,0 +1 @@
1
+ export { DefaultLayout } from './default.layout';
@@ -1,7 +1,7 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
2
  export interface LoadingComponentProps {
3
3
  color?: string;
4
- size?: "large" | "small" | "medium";
4
+ size?: 'large' | 'small' | 'medium';
5
5
  sx?: SxProps<Theme>;
6
6
  }
7
7
  export declare const LoadingComponent: React.FC<LoadingComponentProps>;
@@ -0,0 +1 @@
1
+ export { LogoComponent } from './logo.component';
@@ -0,0 +1,9 @@
1
+ import { Theme } from '@emotion/react';
2
+ import { SxProps } from '@mui/system';
3
+ import { default as React } from 'react';
4
+ export interface LogoComponentProps {
5
+ url: string;
6
+ height?: number;
7
+ sx?: SxProps<Theme>;
8
+ }
9
+ export declare const LogoComponent: React.FC<LogoComponentProps>;
@@ -1,7 +1,7 @@
1
1
  import { MotionProps } from 'framer-motion';
2
2
  import { default as React } from 'react';
3
- type AnimationPreset = "fadeInUp" | "fadeInDown" | "fadeInLeft" | "fadeInRight" | "scaleIn" | "slideInUp" | "staggerItem" | "tabContent" | "tabUnderline";
4
- interface MotionBoxProps extends Omit<MotionProps, "initial" | "animate" | "transition"> {
3
+ type AnimationPreset = 'fadeInUp' | 'fadeInDown' | 'fadeInLeft' | 'fadeInRight' | 'scaleIn' | 'slideInUp' | 'staggerItem' | 'tabContent' | 'tabUnderline';
4
+ interface MotionBoxProps extends Omit<MotionProps, 'initial' | 'animate' | 'transition'> {
5
5
  children: React.ReactNode;
6
6
  sx?: React.CSSProperties;
7
7
  onClick?: () => void;
@@ -0,0 +1 @@
1
+ export { NoteComponent } from './note.component';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface NoteComponentProps {
3
+ content: string;
4
+ contentHref?: string;
5
+ href?: string;
6
+ type?: 'info' | 'recommend' | 'warning' | 'error';
7
+ }
8
+ export declare const NoteComponent: React.FC<NoteComponentProps>;
@@ -0,0 +1 @@
1
+ export { PriceComponent } from './price.component';
@@ -0,0 +1,14 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ export interface PriceComponentProps {
4
+ isLineHeight1?: boolean;
5
+ price: number;
6
+ originalPrice?: number;
7
+ discountPercent?: number;
8
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
9
+ size?: 'small' | 'medium' | 'large';
10
+ sameSize?: boolean;
11
+ color?: string;
12
+ sx?: SxProps<Theme>;
13
+ }
14
+ export declare const PriceComponent: React.FC<PriceComponentProps>;
@@ -0,0 +1 @@
1
+ export { ReviewComponent } from './review.component';
@@ -0,0 +1,9 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ export interface ReviewComponentProps {
4
+ averageRating: number;
5
+ reviewCount: number;
6
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
7
+ sx?: SxProps<Theme>;
8
+ }
9
+ export declare const ReviewComponent: React.FC<ReviewComponentProps>;
@@ -1,11 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
  import { Environment } from '../../common';
3
+ import { AppInfo } from '../../common/constant/apps.data';
3
4
  interface AppsSidebarProps {
4
5
  isOpen: boolean;
5
6
  onClose: () => void;
6
- position?: "left" | "right";
7
+ position?: 'left' | 'right';
7
8
  blacklist?: string[];
8
9
  env: Environment;
10
+ onClickApp: (appInfo: AppInfo) => void;
9
11
  }
10
12
  export declare const AppsSidebar: React.FC<AppsSidebarProps>;
11
13
  export {};
@@ -1,7 +1,8 @@
1
- import { Environment } from '../../common/utils/other/app.utils';
1
+ import { AppInfo, Environment } from '../../common';
2
2
  export interface SystemMonitorSidebarPartProps {
3
- position?: "left" | "right";
3
+ position?: 'left' | 'right';
4
4
  blacklist?: string[];
5
5
  env: Environment;
6
+ onClickApp: (appInfo: AppInfo) => void;
6
7
  }
7
8
  export declare const SystemMonitorSidebarPart: React.FC<SystemMonitorSidebarPartProps>;
@@ -0,0 +1,3 @@
1
+ export declare const ImageBrand: import('@emotion/styled').StyledComponent<import('../elements/image/image.element').ImageElementProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
2
+ export declare const ImageBorderDashboard: import('@emotion/styled').StyledComponent<import('../elements/image/image.element').ImageElementProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
3
+ export declare const ImageEmpty: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,2 +1,7 @@
1
+ export * from './image.style';
2
+ export * from './input.style';
3
+ export * from './link.style';
4
+ export * from './paper.style';
5
+ export * from './picker.style';
1
6
  export * from './stack.style';
2
7
  export * from './typography.style';
@@ -0,0 +1 @@
1
+ export declare const InputLabelCustom: import('@emotion/styled').StyledComponent<import('@mui/material').InputLabelOwnProps & Pick<import('@mui/material').FormLabelOwnProps, "color" | "filled"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "error" | "disabled" | "color" | "margin" | "filled" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "size" | "focused" | "required" | "disableAnimation" | "shrink"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1 @@
1
+ export declare const LinkWrapProductRow: import('@emotion/styled').StyledComponent<import('../elements/link/link.element').LinkElementProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1,7 @@
1
+ interface PaperSelectProps {
2
+ disableSelectedStyle?: boolean;
3
+ autoWidth?: boolean;
4
+ isTreeSelect?: boolean;
5
+ }
6
+ export declare const PaperSelect: import('@emotion/styled').StyledComponent<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "elevation" | "square" | "sx" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & PaperSelectProps, {}, {}>;
7
+ export {};
@@ -0,0 +1,47 @@
1
+ import { Palette, SxProps, Theme } from '@mui/material';
2
+ export declare const getPickerSx: (palette: Palette, sx: SxProps<Theme>) => {
3
+ '& fieldset legend': {
4
+ maxWidth: string;
5
+ };
6
+ '& .MuiPickersInputBase-root': {
7
+ borderColor: string;
8
+ borderRadius: string;
9
+ height: string;
10
+ };
11
+ '&.MuiPickersTextField-root': any;
12
+ };
13
+ export declare const getPopperProps: () => {
14
+ sx: {
15
+ boxShadow: number;
16
+ overflow: string;
17
+ };
18
+ modifiers: {
19
+ name: string;
20
+ enabled: boolean;
21
+ phase: string;
22
+ fn: ({ state }: any) => void;
23
+ }[];
24
+ };
25
+ export declare const getActionBarSx: (palette: Palette) => {
26
+ '& button': {
27
+ textTransform: string;
28
+ width: number;
29
+ };
30
+ '& button:nth-of-type(1)': {
31
+ border: string;
32
+ color: string;
33
+ background: string;
34
+ borderRadius: string;
35
+ '&:hover': {
36
+ backgroundColor: string;
37
+ };
38
+ };
39
+ '& button:nth-of-type(2)': {
40
+ background: string;
41
+ color: string;
42
+ borderRadius: string;
43
+ '&:hover': {
44
+ backgroundColor: string;
45
+ };
46
+ };
47
+ };
@@ -1,7 +1,9 @@
1
1
  import { default as React } from 'react';
2
+ import { AppInfo } from '../../common/constant/apps.data';
2
3
  import { Environment } from '../../common/utils/other/app.utils';
3
4
  export interface SystemMonitorScreenProps {
4
5
  blacklist?: string[];
5
6
  env: Environment;
7
+ onClickApp: (appInfo: AppInfo) => void;
6
8
  }
7
9
  export declare const SystemMonitorScreen: React.FC<SystemMonitorScreenProps>;