acsi-core 0.1.20 → 0.1.21
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/README.md +46 -46
- package/dist/components/CoreButton/index.d.ts +1 -3
- package/dist/components/CoreInput/index.d.ts +2 -0
- package/dist/components/CoreSelectModal/index.d.ts +18 -0
- package/dist/index.css +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/sidebars/action.d.ts +1 -0
- package/dist/redux/sidebars/reducer.d.ts +4 -0
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +88 -88
- package/dist/utils/icons.d.ts +0 -3
package/README.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# Getting Started with Create React App
|
|
2
|
-
|
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `npm start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
-
|
|
14
|
-
The page will reload if you make edits.\
|
|
15
|
-
You will also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `npm test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `npm run build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `npm run eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
-
|
|
36
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
-
|
|
40
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
1
|
+
# Getting Started with Create React App
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
### `npm start`
|
|
10
|
+
|
|
11
|
+
Runs the app in the development mode.\
|
|
12
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
+
|
|
14
|
+
The page will reload if you make edits.\
|
|
15
|
+
You will also see any lint errors in the console.
|
|
16
|
+
|
|
17
|
+
### `npm test`
|
|
18
|
+
|
|
19
|
+
Launches the test runner in the interactive watch mode.\
|
|
20
|
+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
+
|
|
22
|
+
### `npm run build`
|
|
23
|
+
|
|
24
|
+
Builds the app for production to the `build` folder.\
|
|
25
|
+
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
+
|
|
27
|
+
The build is minified and the filenames include the hashes.\
|
|
28
|
+
Your app is ready to be deployed!
|
|
29
|
+
|
|
30
|
+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
+
|
|
32
|
+
### `npm run eject`
|
|
33
|
+
|
|
34
|
+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
+
|
|
36
|
+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
+
|
|
38
|
+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
+
|
|
40
|
+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
+
|
|
42
|
+
## Learn More
|
|
43
|
+
|
|
44
|
+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
+
|
|
46
|
+
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface IProps {
|
|
3
|
-
type?: "primary" | "secondary" | "text" | "danger";
|
|
3
|
+
type?: "primary" | "secondary" | "text" | "danger" | "light";
|
|
4
4
|
children: string | JSX.Element;
|
|
5
5
|
onClick?: any;
|
|
6
6
|
icon?: JSX.Element | string;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
-
background?: string;
|
|
9
|
-
color?: string;
|
|
10
8
|
htmlType?: "button" | "submit";
|
|
11
9
|
}
|
|
12
10
|
declare const CoreButton: (props: IProps) => React.JSX.Element;
|
|
@@ -13,8 +13,10 @@ interface IProps {
|
|
|
13
13
|
fontSize?: string;
|
|
14
14
|
fontWeight?: string;
|
|
15
15
|
onKeyDown?: (e: any) => void;
|
|
16
|
+
onKeyFocus?: (name: string, value: string) => void;
|
|
16
17
|
ref?: any;
|
|
17
18
|
maxLength?: number;
|
|
19
|
+
className?: string;
|
|
18
20
|
}
|
|
19
21
|
declare const CoreInput: (props: IProps) => React.JSX.Element;
|
|
20
22
|
export default CoreInput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string | null | string[];
|
|
5
|
+
onChange: any;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
type?: "outline" | "no-outline";
|
|
13
|
+
isMulti?: boolean;
|
|
14
|
+
closeMenuOnSelect?: boolean;
|
|
15
|
+
hideSelectedOptions?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const CoreSelectModal: (props: IProps) => React.JSX.Element;
|
|
18
|
+
export default CoreSelectModal;
|
package/dist/index.css
CHANGED
|
@@ -161,6 +161,12 @@
|
|
|
161
161
|
._2uYm1 svg, ._2uYm1 i, ._2uYm1 path {
|
|
162
162
|
fill: #fff; }
|
|
163
163
|
|
|
164
|
+
._wxH5S {
|
|
165
|
+
background-color: #F5F9FA;
|
|
166
|
+
color: #03191F; }
|
|
167
|
+
._wxH5S svg, ._wxH5S i, ._wxH5S path {
|
|
168
|
+
fill: #03191F; }
|
|
169
|
+
|
|
164
170
|
._1WdX2 {
|
|
165
171
|
display: flex;
|
|
166
172
|
flex-direction: column; }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const historyCore: import("history").History<unknown>;
|
|
2
2
|
import { setLoading, setAlert, setUser, setMenuCollapse, setIsRefetchSidebar } from "./redux/commons/action";
|
|
3
|
-
import { BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE } from "./utils/constants";
|
|
3
|
+
import { BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, OPENSALT_BASE_URL } from "./utils/constants";
|
|
4
4
|
import Login from "./containers/Login/views/Login";
|
|
5
5
|
import store from "./store";
|
|
6
6
|
import NotFound from "./components/Commons/NotFound";
|
|
@@ -19,4 +19,4 @@ import CustomSelect from "./components/Selects/CustomSelect";
|
|
|
19
19
|
import CustomAsyncSelect from "./components/Selects/CustomAsyncSelect";
|
|
20
20
|
import CustomCreatable from "./components/Selects/CustomCreatable";
|
|
21
21
|
import CustomSelectOption from "./components/Selects/CustomSelectOption";
|
|
22
|
-
export { setLoading, BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, Login, store, historyCore, setAlert, setUser, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption };
|
|
22
|
+
export { setLoading, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, Login, store, historyCore, setAlert, setUser, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption };
|
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ var PUSHER_CONFIG = {
|
|
|
37
37
|
cluster: process.env.REACT_APP_PUSHER_CONFIG_CLUSTER || "",
|
|
38
38
|
key: process.env.REACT_APP_PUSHER_CONFIG_KEY || ""
|
|
39
39
|
};
|
|
40
|
+
var OPENSALT_BASE_URL = process.env.REACT_APP_OPENSALT || "";
|
|
40
41
|
var ACCESS_TOKEN = "ACCESS_TOKEN";
|
|
41
42
|
var ACADEMY_DOMAIN = "ACADEMY_DOMAIN";
|
|
42
43
|
var DATE_TIME_MIN_VALUE = "0001-01-01T00:00:00";
|
|
@@ -978,7 +979,7 @@ var CustomPagination = function CustomPagination(_ref) {
|
|
|
978
979
|
})));
|
|
979
980
|
};
|
|
980
981
|
|
|
981
|
-
var styles = {"core-button":"_xvNBN","primary":"_U9Qyp","secondary":"_1VzMy","text":"_pZNuj","danger":"_2uYm1"};
|
|
982
|
+
var styles = {"core-button":"_xvNBN","primary":"_U9Qyp","secondary":"_1VzMy","text":"_pZNuj","danger":"_2uYm1","light":"_wxH5S"};
|
|
982
983
|
|
|
983
984
|
var CoreButton = function CoreButton(props) {
|
|
984
985
|
var _props$type = props.type,
|
|
@@ -1028,7 +1029,9 @@ var CoreInput = function CoreInput(props) {
|
|
|
1028
1029
|
fontWeight = props.fontWeight,
|
|
1029
1030
|
_onKeyDown = props.onKeyDown,
|
|
1030
1031
|
ref = props.ref,
|
|
1031
|
-
maxLength = props.maxLength
|
|
1032
|
+
maxLength = props.maxLength,
|
|
1033
|
+
className = props.className,
|
|
1034
|
+
onKeyFocus = props.onKeyFocus;
|
|
1032
1035
|
return React__default.createElement("div", {
|
|
1033
1036
|
className: styles$1["core-input"] + " " + styles$1[type] + " " + (error ? styles$1["error"] : ""),
|
|
1034
1037
|
style: {
|
|
@@ -1048,9 +1051,13 @@ var CoreInput = function CoreInput(props) {
|
|
|
1048
1051
|
placeholder: placeholder,
|
|
1049
1052
|
onKeyDown: function onKeyDown(e) {
|
|
1050
1053
|
return _onKeyDown === null || _onKeyDown === void 0 ? void 0 : _onKeyDown(e);
|
|
1054
|
+
},
|
|
1055
|
+
onFocus: function onFocus(e) {
|
|
1056
|
+
return onKeyFocus === null || onKeyFocus === void 0 ? void 0 : onKeyFocus(name, e.target.value);
|
|
1051
1057
|
}
|
|
1052
1058
|
}, ref, {
|
|
1053
|
-
maxLength: maxLength
|
|
1059
|
+
maxLength: maxLength,
|
|
1060
|
+
className: className
|
|
1054
1061
|
})), error && React__default.createElement(CoreError, {
|
|
1055
1062
|
message: errorMessage
|
|
1056
1063
|
}));
|
|
@@ -1349,10 +1356,11 @@ var CoreModal = function CoreModal(props) {
|
|
|
1349
1356
|
return React__default.createElement(reactstrap.Modal, {
|
|
1350
1357
|
isOpen: open,
|
|
1351
1358
|
toggle: onClose,
|
|
1352
|
-
centered: true
|
|
1359
|
+
centered: true,
|
|
1360
|
+
modalClassName: className
|
|
1353
1361
|
}, React__default.createElement("form", {
|
|
1354
1362
|
onSubmit: onSubmit ? handleSubmit(onSubmit) : undefined,
|
|
1355
|
-
className: styles$6["core-modal-container"]
|
|
1363
|
+
className: "" + styles$6["core-modal-container"]
|
|
1356
1364
|
}, React__default.createElement(reactstrap.ModalHeader, {
|
|
1357
1365
|
toggle: onClose,
|
|
1358
1366
|
className: styles$6["core-modal-header"]
|
|
@@ -2110,6 +2118,7 @@ exports.LayoutContext = LayoutContext;
|
|
|
2110
2118
|
exports.Loading = Loading;
|
|
2111
2119
|
exports.Login = Login;
|
|
2112
2120
|
exports.NotFound = NotFound;
|
|
2121
|
+
exports.OPENSALT_BASE_URL = OPENSALT_BASE_URL;
|
|
2113
2122
|
exports.api = api$1;
|
|
2114
2123
|
exports.apiUpload = apiUpload$1;
|
|
2115
2124
|
exports.getErrorMessage = getErrorMessage;
|