mario-core 1.0.2 → 1.0.3-es-alpha

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 (114) hide show
  1. package/dist/index.js +33 -2706
  2. package/dist/index.modern.js +25834 -2520
  3. package/dist/mario-core.css +5 -0
  4. package/package.json +66 -67
  5. package/README.md +0 -30
  6. package/dist/assets/Images.d.ts +0 -5
  7. package/dist/commons/action.d.ts +0 -2
  8. package/dist/commons/reducer.d.ts +0 -2
  9. package/dist/components/Alerts/EmptyDataAlert.d.ts +0 -8
  10. package/dist/components/Alerts/ErrorHandler.d.ts +0 -6
  11. package/dist/components/Buttons/AddButton.d.ts +0 -7
  12. package/dist/components/Buttons/AddButtonIcon.d.ts +0 -6
  13. package/dist/components/Buttons/DeleteButtonIcon.d.ts +0 -6
  14. package/dist/components/Buttons/DetailActionButtons.d.ts +0 -8
  15. package/dist/components/Buttons/EditButtonIcon.d.ts +0 -6
  16. package/dist/components/Buttons/LinkEditButton.d.ts +0 -7
  17. package/dist/components/Headers/CommonHeader.d.ts +0 -7
  18. package/dist/components/Inputs/SearchBox.d.ts +0 -10
  19. package/dist/components/Labels/RequiredLabel.d.ts +0 -6
  20. package/dist/components/Loading/Loading.d.ts +0 -3
  21. package/dist/components/Modals/CommonModal.d.ts +0 -3
  22. package/dist/components/Modals/NotificationModal.d.ts +0 -3
  23. package/dist/components/Pagination/CustomPagination.d.ts +0 -3
  24. package/dist/components/Selectors/CreatableSelector.d.ts +0 -3
  25. package/dist/components/Selectors/CustomSelector.d.ts +0 -3
  26. package/dist/components/Selectors/MailCategorySelectors.d.ts +0 -3
  27. package/dist/components/Selectors/QuestionTypeSelector.d.ts +0 -3
  28. package/dist/components/Selectors/StarRatingSelector.d.ts +0 -3
  29. package/dist/configs/editorConfig.d.ts +0 -7
  30. package/dist/containers/Classes/components/ClassDetailModal.d.ts +0 -3
  31. package/dist/containers/Classes/views/ClassList.d.ts +0 -3
  32. package/dist/containers/Commons/NotFound.d.ts +0 -3
  33. package/dist/containers/EmailTemplate/components/MailParam.d.ts +0 -6
  34. package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +0 -11
  35. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +0 -15
  36. package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +0 -10
  37. package/dist/containers/EmailTemplate/views/EmailTemplateDetail.d.ts +0 -3
  38. package/dist/containers/EmailTemplate/views/EmailTemplateList.d.ts +0 -3
  39. package/dist/containers/EmailTemplateDetail.d.ts +0 -3
  40. package/dist/containers/EmailTemplateList.d.ts +0 -3
  41. package/dist/containers/Faq/components/FaqDetailModal.d.ts +0 -3
  42. package/dist/containers/Faq/hooks/useFaqDetail.d.ts +0 -13
  43. package/dist/containers/Faq/hooks/useFaqList.d.ts +0 -9
  44. package/dist/containers/Faq/views/FaqList.d.ts +0 -3
  45. package/dist/containers/Login/hooks/useLogin.d.ts +0 -9
  46. package/dist/containers/Login/views/Login.d.ts +0 -3
  47. package/dist/containers/Login.d.ts +0 -3
  48. package/dist/containers/Skill/components/SkillDetailModal.d.ts +0 -3
  49. package/dist/containers/Skill/hooks/useSkillDetail.d.ts +0 -13
  50. package/dist/containers/Skill/hooks/useSkillList.d.ts +0 -9
  51. package/dist/containers/Skill/views/SkillList.d.ts +0 -3
  52. package/dist/containers/User/hooks/useUserList.d.ts +0 -9
  53. package/dist/containers/User/views/UserList.d.ts +0 -3
  54. package/dist/containers/User.d.ts +0 -3
  55. package/dist/index.css +0 -7
  56. package/dist/index.d.ts +0 -43
  57. package/dist/index.js.map +0 -1
  58. package/dist/index.modern.js.map +0 -1
  59. package/dist/index.test.d.ts +0 -1
  60. package/dist/layouts/TheContent.d.ts +0 -3
  61. package/dist/layouts/TheFooter.d.ts +0 -3
  62. package/dist/layouts/TheHeader.d.ts +0 -3
  63. package/dist/layouts/TheHeaderDropdown.d.ts +0 -3
  64. package/dist/layouts/TheLayout.d.ts +0 -3
  65. package/dist/layouts/TheSidebar.d.ts +0 -3
  66. package/dist/redux/badges/action.d.ts +0 -1
  67. package/dist/redux/badges/reducer.d.ts +0 -2
  68. package/dist/redux/classes/action.d.ts +0 -1
  69. package/dist/redux/classes/reducer.d.ts +0 -2
  70. package/dist/redux/commons/action.d.ts +0 -3
  71. package/dist/redux/commons/reducer.d.ts +0 -2
  72. package/dist/redux/emailTemplates/action.d.ts +0 -1
  73. package/dist/redux/emailTemplates/reducer.d.ts +0 -2
  74. package/dist/redux/faqs/action.d.ts +0 -1
  75. package/dist/redux/faqs/reducer.d.ts +0 -2
  76. package/dist/redux/goalExamples/action.d.ts +0 -1
  77. package/dist/redux/goalExamples/reducer.d.ts +0 -2
  78. package/dist/redux/learningStrategies/action.d.ts +0 -1
  79. package/dist/redux/learningStrategies/reducer.d.ts +0 -2
  80. package/dist/redux/questionBanks/action.d.ts +0 -1
  81. package/dist/redux/questionBanks/reducer.d.ts +0 -2
  82. package/dist/redux/skills/action.d.ts +0 -1
  83. package/dist/redux/skills/reducer.d.ts +0 -2
  84. package/dist/redux/subjects/action.d.ts +0 -1
  85. package/dist/redux/subjects/reducer.d.ts +0 -2
  86. package/dist/redux/suggestionBanks/action.d.ts +0 -1
  87. package/dist/redux/suggestionBanks/reducer.d.ts +0 -2
  88. package/dist/redux/users/action.d.ts +0 -1
  89. package/dist/redux/users/reducer.d.ts +0 -2
  90. package/dist/rootReducer.d.ts +0 -15
  91. package/dist/services/accountService.d.ts +0 -3
  92. package/dist/services/api.d.ts +0 -2
  93. package/dist/services/emailTemplateService.d.ts +0 -6
  94. package/dist/services/faqService.d.ts +0 -6
  95. package/dist/services/skillService.d.ts +0 -6
  96. package/dist/services/userService.d.ts +0 -6
  97. package/dist/store.d.ts +0 -3
  98. package/dist/types/ClassDetail.d.ts +0 -3
  99. package/dist/types/Conversation.d.ts +0 -8
  100. package/dist/types/Filter.d.ts +0 -8
  101. package/dist/utils/canAccessRoute.d.ts +0 -2
  102. package/dist/utils/constants.d.ts +0 -41
  103. package/dist/utils/encodeParams.d.ts +0 -2
  104. package/dist/utils/firstCheckToken.d.ts +0 -2
  105. package/dist/utils/generateRandomString.d.ts +0 -2
  106. package/dist/utils/getAccessToken.d.ts +0 -2
  107. package/dist/utils/index.d.ts +0 -1
  108. package/dist/utils/utcToLocalTime.d.ts +0 -2
  109. package/dist/views/TheContent.d.ts +0 -3
  110. package/dist/views/TheFooter.d.ts +0 -3
  111. package/dist/views/TheHeader.d.ts +0 -3
  112. package/dist/views/TheHeaderDropdown.d.ts +0 -3
  113. package/dist/views/TheLayout.d.ts +0 -3
  114. package/dist/views/TheSidebar.d.ts +0 -3
package/package.json CHANGED
@@ -1,88 +1,87 @@
1
1
  {
2
2
  "name": "mario-core",
3
- "version": "1.0.2",
3
+ "version": "1.0.3-es-alpha",
4
4
  "description": "Contains core components && functions for Mario project",
5
5
  "author": "brss",
6
6
  "license": "MIT",
7
- "repository": "brss/mario-core",
8
- "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
- "source": "src/index.tsx",
7
+ "type": "module",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.modern.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.modern.js",
15
+ "require": "./dist/index.js"
16
+ }
17
+ },
11
18
  "engines": {
12
- "node": ">=10"
19
+ "node": ">=24"
13
20
  },
14
21
  "scripts": {
15
- "build": "microbundle-crl --no-compress --format modern,cjs",
16
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
- "prepare": "run-s build",
18
- "test": "run-s test:unit test:lint test:build",
19
- "test:build": "run-s build",
22
+ "build": "tsc --noEmit && vite build --mode production",
23
+ "start": "tsc --noEmit && vite build --watch --mode development",
24
+ "prepare": "npm run build",
25
+ "test": "npm run test:lint && npm run test:build",
26
+ "test:build": "npm run build",
20
27
  "test:lint": "eslint .",
21
- "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
- "test:watch": "react-scripts test --env=jsdom"
28
+ "dev": "vite",
29
+ "preview": "vite preview",
30
+ "type-check": "tsc --noEmit"
23
31
  },
24
32
  "peerDependencies": {
25
- "react": "^16.0.0",
26
- "react-dom": "*",
27
- "react-router-dom": "*",
28
- "react-redux": "*"
33
+ "react": "^18 || ^19",
34
+ "react-dom": "^18 || ^19",
35
+ "react-redux": "*",
36
+ "react-router-dom": "^6.30.2"
29
37
  },
30
38
  "devDependencies": {
31
- "@rollup/plugin-commonjs": "11.0.2",
32
- "@testing-library/jest-dom": "^4.2.4",
33
- "@testing-library/react": "^9.5.0",
34
- "@testing-library/user-event": "^7.2.1",
35
- "@types/date-fns": "^2.6.0",
36
- "@types/jest": "^25.1.4",
37
- "@types/node": "^12.12.38",
38
- "@types/react": "^16.9.27",
39
- "@types/react-datepicker": "^3.1.7",
40
- "@types/react-dom": "^16.9.7",
41
- "@types/react-redux": "^7.1.16",
42
- "@types/react-router-dom": "^5.1.7",
43
- "@types/react-select": "^4.0.13",
44
- "@types/redux-logger": "^3.0.8",
45
- "@types/yup": "^0.29.11",
46
- "@typescript-eslint/eslint-plugin": "^2.26.0",
47
- "@typescript-eslint/parser": "^2.26.0",
48
- "babel-eslint": "^10.0.3",
49
- "cross-env": "^7.0.2",
50
- "eslint": "^6.8.0",
51
- "eslint-config-prettier": "^6.7.0",
52
- "eslint-config-standard": "^14.1.0",
53
- "eslint-config-standard-react": "^9.2.0",
54
- "eslint-plugin-import": "^2.18.2",
55
- "eslint-plugin-node": "^11.0.0",
56
- "eslint-plugin-prettier": "^3.3.1",
57
- "eslint-plugin-promise": "^4.2.1",
58
- "eslint-plugin-react": "^7.17.0",
59
- "eslint-plugin-standard": "^4.0.1",
60
- "gh-pages": "^2.2.0",
61
- "microbundle-crl": "^0.13.10",
62
- "npm-run-all": "^4.1.5",
63
- "prettier": "^2.0.4",
64
- "react-scripts": "^3.4.1",
65
- "redux-logger": "^3.0.6",
66
- "typescript": "^3.7.5"
39
+ "@eslint/js": "^9.39.1",
40
+ "@types/node": "^24.10.1",
41
+ "@types/prop-types": "^15.7.15",
42
+ "@types/react": "^18.3.18",
43
+ "@types/react-datepicker": "^7.0.0",
44
+ "@types/react-dom": "^18.3.5",
45
+ "@vitejs/plugin-react": "^5.1.1",
46
+ "babel-plugin-react-compiler": "^1.0.0",
47
+ "concurrently": "^9.2.1",
48
+ "eslint": "^9.39.1",
49
+ "eslint-plugin-react-hooks": "^7.0.1",
50
+ "eslint-plugin-react-refresh": "^0.4.24",
51
+ "globals": "^16.5.0",
52
+ "prettier": "^3.7.4",
53
+ "sass": "^1.83.4",
54
+ "typescript": "5.9.3",
55
+ "typescript-eslint": "^8.46.4",
56
+ "vite": "^6.0.6"
67
57
  },
68
58
  "files": [
69
59
  "dist"
70
60
  ],
71
61
  "dependencies": {
72
- "@coreui/icons": "2.0.0-rc.0",
73
- "@coreui/icons-react": "1.0.2",
74
- "@coreui/react": "3.4.0",
75
- "@reduxjs/toolkit": "^1.5.0",
76
- "@tinymce/tinymce-react": "^3.10.2",
77
- "axios": "^0.21.1",
78
- "bootstrap": "^4.6.0",
79
- "date-fns": "^2.19.0",
80
- "formik": "^2.2.6",
81
- "react-datepicker": "^3.6.0",
62
+ "@azure/msal-browser": "^4.27.0",
63
+ "@azure/msal-react": "^3.0.23",
64
+ "@coreui/react": "^5.0.0",
65
+ "@react-oauth/google": "^0.12.2",
66
+ "@reduxjs/toolkit": "^2.11.2",
67
+ "@tinymce/tinymce-react": "^6.3.0",
68
+ "@types/amplitude-js": "^8.16.2",
69
+ "amplitude-js": "^8.18.5",
70
+ "axios": "^1.13.2",
71
+ "bootstrap": "^5.3.8",
72
+ "date-fns": "^4.1.0",
73
+ "date-fns-tz": "^3.2.0",
74
+ "formik": "^2.4.6",
75
+ "i18next": "^25.7.3",
76
+ "pusher-js": "^8.4.0",
77
+ "react-datepicker": "^7.5.0",
78
+ "react-google-recaptcha-v3": "^1.10.1",
79
+ "react-i18next": "^15.2.0",
82
80
  "react-icons": "^4.2.0",
83
- "react-select": "^4.1.0",
84
- "reactstrap": "^8.9.0",
85
- "redux-thunk": "^2.3.0",
86
- "yup": "^0.32.9"
81
+ "react-select": "^5.10.2",
82
+ "reactstrap": "^9.1.9",
83
+ "redux-thunk": "^3.1.0",
84
+ "tinymce": "^8.3.1",
85
+ "yup": "^1.7.1"
87
86
  }
88
87
  }
package/README.md DELETED
@@ -1,30 +0,0 @@
1
- # mario-core
2
-
3
- > Contains core components && functions for BRSS Mario project
4
-
5
- [![NPM](https://img.shields.io/npm/v/mario-core.svg)](https://www.npmjs.com/package/@mario/core) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install --save mario-core
11
- ```
12
-
13
- ## Usage
14
-
15
- ```tsx
16
- import React, { Component } from 'react'
17
-
18
- import MyComponent from 'mario-core'
19
- import 'mario-core/dist/index.css'
20
-
21
- class Example extends Component {
22
- render() {
23
- return <MyComponent />
24
- }
25
- }
26
- ```
27
-
28
- ## License
29
-
30
- MIT © [brss](https://github.com/brss)
@@ -1,5 +0,0 @@
1
- declare const Images: {
2
- USER_CONVERSATION_AVATAR: string;
3
- GROUP_CONVERSATION_AVATAR: string;
4
- };
5
- export default Images;
@@ -1,2 +0,0 @@
1
- export declare const setLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
2
- export declare const setModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1,8 +0,0 @@
1
- import { CSSProperties, FC } from "react";
2
- interface Props {
3
- label: string;
4
- className?: string;
5
- style?: CSSProperties;
6
- }
7
- declare const EmptyDataAlert: FC<Props>;
8
- export default EmptyDataAlert;
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- text: string;
4
- }
5
- declare const ErrorHandler: FC<Props>;
6
- export default ErrorHandler;
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- interface Props {
3
- text?: string;
4
- onClick?(): void;
5
- }
6
- declare const AddButton: FC<Props>;
7
- export default AddButton;
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- onClick: () => any;
4
- }
5
- declare const AddButtonIcon: FC<Props>;
6
- export default AddButtonIcon;
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- onClick: () => any;
4
- }
5
- declare const DeleteButtonIcon: FC<Props>;
6
- export default DeleteButtonIcon;
@@ -1,8 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- confirmText: string;
4
- onConfirm: () => any;
5
- onCancel: () => any;
6
- }
7
- declare const DetailActionButtons: FC<Props>;
8
- export default DetailActionButtons;
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- onClick: () => any;
4
- }
5
- declare const EditButtonIcon: FC<Props>;
6
- export default EditButtonIcon;
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- label: string;
4
- onClick: () => any;
5
- }
6
- declare const LinkEditButton: FC<Props>;
7
- export default LinkEditButton;
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- header: string;
4
- rootHeader?: string;
5
- }
6
- declare const CommonHeader: FC<Props>;
7
- export default CommonHeader;
@@ -1,10 +0,0 @@
1
- import React, { CSSProperties } from "react";
2
- interface Props {
3
- initValue: string;
4
- onSearch: (searchString?: string) => any;
5
- placeholder?: string;
6
- className?: string;
7
- style?: CSSProperties;
8
- }
9
- declare const _default: React.NamedExoticComponent<Props>;
10
- export default _default;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- text: string;
4
- }
5
- declare const _default: React.NamedExoticComponent<Props>;
6
- export default _default;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const Loading: FC;
3
- export default Loading;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const NotificationModal: () => JSX.Element;
3
- export default NotificationModal;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const CustomPagination: (props: any) => JSX.Element;
3
- export default CustomPagination;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const CreatableSelector: (props: any) => JSX.Element;
3
- export default CreatableSelector;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const CustomSelector: (props: any) => JSX.Element;
3
- export default CustomSelector;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const MailCategorySelector: (props: any) => JSX.Element;
3
- export default MailCategorySelector;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const QuestionTypeSelector: (props: any) => JSX.Element;
3
- export default QuestionTypeSelector;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const StarRatingSelector: (props: any) => JSX.Element;
3
- export default StarRatingSelector;
@@ -1,7 +0,0 @@
1
- declare const _default: {
2
- height: number;
3
- menubar: boolean;
4
- plugins: string[];
5
- toolbar: string;
6
- };
7
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const ClassList: FC;
3
- export default ClassList;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const NotFound: FC;
3
- export default NotFound;
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- onClick: any;
4
- }
5
- declare const MailSubject: FC<Props>;
6
- export default MailSubject;
@@ -1,11 +0,0 @@
1
- import * as yup from "yup";
2
- declare const schema: import("yup/lib/object").OptionalObjectSchema<{
3
- subject: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
- comment: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
5
- body: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
6
- }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
7
- subject: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
8
- comment: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
9
- body: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
10
- }>>;
11
- export default schema;
@@ -1,15 +0,0 @@
1
- declare type EmailTemplateDetail = {
2
- id?: number;
3
- subject: string;
4
- categoryId: number;
5
- comment: string;
6
- body: string;
7
- };
8
- declare const useEmailTemplateDetail: (id?: number | undefined) => {
9
- emailTemplateDetail: EmailTemplateDetail;
10
- setEditorRef: (node: any) => any;
11
- addParams: (currentBody: string, params: any) => void;
12
- backToList: () => void;
13
- confirmData: (data: any) => Promise<void>;
14
- };
15
- export default useEmailTemplateDetail;
@@ -1,10 +0,0 @@
1
- import { Filter } from "../../../types/Filter";
2
- declare const useEmailTemplateList: () => {
3
- emailTemplateList: any;
4
- filters: Filter;
5
- changeFilters: (updatedFilters: any) => void;
6
- getData: () => Promise<void>;
7
- removeData: (id: number) => void;
8
- goToDetail: (id?: number | undefined) => void;
9
- };
10
- export default useEmailTemplateList;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const EmailTemplateDetail: FC;
3
- export default EmailTemplateDetail;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const EmailTemplateList: FC;
3
- export default EmailTemplateList;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const EmailTemplateDetail: FC;
3
- export default EmailTemplateDetail;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const EmailTemplateList: FC;
3
- export default EmailTemplateList;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
- export default _default;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- declare type FaqDetail = {
3
- question: string;
4
- answer: string;
5
- };
6
- declare const useFaqDetail: () => {
7
- id: number;
8
- setId: import("react").Dispatch<import("react").SetStateAction<number>>;
9
- faqDetail: FaqDetail;
10
- confirmData: (values: any, cb: any) => Promise<void>;
11
- initValue: FaqDetail;
12
- };
13
- export default useFaqDetail;
@@ -1,9 +0,0 @@
1
- import { Filter } from "../../../types/Filter";
2
- declare const useFaqList: () => {
3
- faqList: any;
4
- filters: Filter;
5
- changeFilters: (updatedFilters: any) => void;
6
- getData: () => Promise<void>;
7
- removeData: (id: number) => void;
8
- };
9
- export default useFaqList;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const FaqList: FC;
3
- export default FaqList;
@@ -1,9 +0,0 @@
1
- declare type LoginInfo = {
2
- email: string;
3
- password: string;
4
- };
5
- declare const useLogin: () => {
6
- defaultInfo: LoginInfo;
7
- userLogin: (data: any) => Promise<void>;
8
- };
9
- export default useLogin;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Login: () => JSX.Element;
3
- export default Login;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Login: () => JSX.Element;
3
- export default Login;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
- export default _default;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- declare type SkillDetail = {
3
- name: string;
4
- comment: string;
5
- };
6
- declare const useSkillDetail: () => {
7
- id: number;
8
- setId: import("react").Dispatch<import("react").SetStateAction<number>>;
9
- skillDetail: SkillDetail;
10
- confirmData: (values: any, cb: any) => Promise<void>;
11
- initValue: SkillDetail;
12
- };
13
- export default useSkillDetail;
@@ -1,9 +0,0 @@
1
- import { Filter } from "../../../types/Filter";
2
- declare const useSkillList: () => {
3
- skillList: any;
4
- filters: Filter;
5
- changeFilters: (updatedFilters: any) => void;
6
- getData: () => Promise<void>;
7
- removeData: (id: number) => void;
8
- };
9
- export default useSkillList;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const SkillList: FC;
3
- export default SkillList;
@@ -1,9 +0,0 @@
1
- import { Filter } from "../../../types/Filter";
2
- declare const useUserList: () => {
3
- userList: any;
4
- filters: Filter;
5
- getData: () => Promise<void>;
6
- removeData: (id: string) => void;
7
- changeFilters: (updatedFilters: any) => void;
8
- };
9
- export default useUserList;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const UserList: () => JSX.Element;
3
- export default UserList;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- declare const User: FC;
3
- export default User;
package/dist/index.css DELETED
@@ -1,7 +0,0 @@
1
- * {
2
- font-size: 0.85rem
3
- }
4
-
5
- ._styles-module__cursor-pointer__1A6MI {
6
- cursor: pointer
7
- }
package/dist/index.d.ts DELETED
@@ -1,43 +0,0 @@
1
- import "bootstrap/dist/css/bootstrap.min.css";
2
- import Login from "./containers/Login/views/Login";
3
- import TheLayout from "./layouts/TheLayout";
4
- import EmailTemplateList from "./containers/EmailTemplate/views/EmailTemplateList";
5
- import EmailTemplateDetail from "./containers/EmailTemplate/views/EmailTemplateDetail";
6
- import FaqList from "./containers/Faq/views/FaqList";
7
- import SkillList from "./containers/Skill/views/SkillList";
8
- import UserList from "./containers/User/views/UserList";
9
- import Loading from "./components/Loading/Loading";
10
- import NotificationModal from "./components/Modals/NotificationModal";
11
- import CommonHeader from "./components/Headers/CommonHeader";
12
- import CommonModal from "./components/Modals/CommonModal";
13
- import AddButton from "./components/Buttons/AddButton";
14
- import DeleteButtonIcon from "./components/Buttons/DeleteButtonIcon";
15
- import EditButtonIcon from "./components/Buttons/EditButtonIcon";
16
- import CustomPagination from "./components/Pagination/CustomPagination";
17
- import LinkEditButton from "./components/Buttons/LinkEditButton";
18
- import EmptyDataAlert from "./components/Alerts/EmptyDataAlert";
19
- import CreatableSelector from "./components/Selectors/CreatableSelector";
20
- import SearchBox from "./components/Inputs/SearchBox";
21
- import QuestionTypeSelector from "./components/Selectors/QuestionTypeSelector";
22
- import ErrorHandler from "./components/Alerts/ErrorHandler";
23
- import DetailActionButtons from "./components/Buttons/DetailActionButtons";
24
- import RequiredLabel from "./components/Labels/RequiredLabel";
25
- import StarRatingSelector from "./components/Selectors/StarRatingSelector";
26
- import store from "./store";
27
- import { api, apiUpload } from "./services/api";
28
- import editorConfig from "./configs/editorConfig";
29
- import { BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, ANSWER_EDITOR_HEIGHT } from "./utils/constants";
30
- import { setLoading, setModal } from "./redux/commons/action";
31
- import { setClassList } from "./redux/classes/action";
32
- import { setSuggestionList } from "./redux/suggestionBanks/action";
33
- import { setStrategyList } from "./redux/learningStrategies/action";
34
- import { setSubjectList } from "./redux/subjects/action";
35
- import { setQuestionList } from "./redux/questionBanks/action";
36
- import { setBadgeList } from "./redux/badges/action";
37
- import { setGoalExampleList } from "./redux/goalExamples/action";
38
- import { setUserList } from "./redux/users/action";
39
- import { Filter } from "./types/Filter";
40
- import { Conversation } from "./types/Conversation";
41
- import generateRandomString from "./utils/generateRandomString";
42
- import Images from "./assets/Images";
43
- export { Login, TheLayout, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, QuestionTypeSelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, store, setLoading, setModal, setClassList, setSuggestionList, setStrategyList, setSubjectList, setQuestionList, setUserList, setBadgeList, setGoalExampleList, api, apiUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, ANSWER_EDITOR_HEIGHT, Filter, Conversation, editorConfig, generateRandomString, Images };