acsi-core 0.1.18 → 0.1.20
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/CoreInputCompact/index.d.ts +2 -0
- package/dist/components/CoreTitleInput/index.d.ts +1 -0
- package/dist/index.js +22 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +22 -14
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/icons.d.ts +3 -0
- package/package.json +88 -88
- package/dist/redux/sidebars/action.d.ts +0 -1
- package/dist/redux/sidebars/reducer.d.ts +0 -4
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/).
|
|
@@ -9,6 +9,8 @@ interface IProps {
|
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
error?: boolean;
|
|
11
11
|
tooltip?: string;
|
|
12
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
13
|
+
[key: string]: any;
|
|
12
14
|
}
|
|
13
15
|
declare const CoreInputCompact: (props: IProps) => React.JSX.Element;
|
|
14
16
|
export default CoreInputCompact;
|
package/dist/index.js
CHANGED
|
@@ -1779,6 +1779,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
|
|
|
1779
1779
|
|
|
1780
1780
|
var styles$b = {"core-input-compact":"_1qmXW","label":"_1argp","icon":"_3DPRG"};
|
|
1781
1781
|
|
|
1782
|
+
var _excluded = ["name", "value", "onChange", "disabled", "label", "width", "placeholder", "error", "tooltip", "onKeyDown"];
|
|
1782
1783
|
var CoreInputCompact = function CoreInputCompact(props) {
|
|
1783
1784
|
var _props$name = props.name,
|
|
1784
1785
|
name = _props$name === void 0 ? "" : _props$name,
|
|
@@ -1791,7 +1792,9 @@ var CoreInputCompact = function CoreInputCompact(props) {
|
|
|
1791
1792
|
_props$placeholder = props.placeholder,
|
|
1792
1793
|
placeholder = _props$placeholder === void 0 ? "Type here" : _props$placeholder,
|
|
1793
1794
|
error = props.error,
|
|
1794
|
-
tooltip = props.tooltip
|
|
1795
|
+
tooltip = props.tooltip,
|
|
1796
|
+
_onKeyDown = props.onKeyDown,
|
|
1797
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
1795
1798
|
var _useState = React.useState(false),
|
|
1796
1799
|
isOpenTooltip = _useState[0],
|
|
1797
1800
|
setIsOpenTooltip = _useState[1];
|
|
@@ -1808,7 +1811,7 @@ var CoreInputCompact = function CoreInputCompact(props) {
|
|
|
1808
1811
|
}, React__default.createElement("label", null, label), tooltip ? React__default.createElement("div", {
|
|
1809
1812
|
id: name,
|
|
1810
1813
|
className: styles$b["icon"]
|
|
1811
|
-
}, React__default.createElement(Info, null)) : null), React__default.createElement("input", {
|
|
1814
|
+
}, React__default.createElement(Info, null)) : null), React__default.createElement("input", Object.assign({
|
|
1812
1815
|
style: {
|
|
1813
1816
|
backgroundColor: error ? COLORS.lightYellow : "transparent"
|
|
1814
1817
|
},
|
|
@@ -1818,8 +1821,11 @@ var CoreInputCompact = function CoreInputCompact(props) {
|
|
|
1818
1821
|
return _onChange(name, e.target.value);
|
|
1819
1822
|
},
|
|
1820
1823
|
disabled: disabled,
|
|
1821
|
-
placeholder: placeholder
|
|
1822
|
-
|
|
1824
|
+
placeholder: placeholder,
|
|
1825
|
+
onKeyDown: function onKeyDown(e) {
|
|
1826
|
+
_onKeyDown && _onKeyDown(e);
|
|
1827
|
+
}
|
|
1828
|
+
}, rest)), tooltip && React__default.createElement(reactstrap.Tooltip, {
|
|
1823
1829
|
target: name,
|
|
1824
1830
|
isOpen: isOpenTooltip,
|
|
1825
1831
|
toggle: toggleTooltip
|
|
@@ -1840,7 +1846,8 @@ var CoreTitleInput = function CoreTitleInput(props) {
|
|
|
1840
1846
|
placeholder = _props$placeholder === void 0 ? "Type here" : _props$placeholder,
|
|
1841
1847
|
error = props.error,
|
|
1842
1848
|
_props$size = props.size,
|
|
1843
|
-
size = _props$size === void 0 ? "h1" : _props$size
|
|
1849
|
+
size = _props$size === void 0 ? "h1" : _props$size,
|
|
1850
|
+
maxLength = props.maxLength;
|
|
1844
1851
|
return React__default.createElement("div", {
|
|
1845
1852
|
className: "" + styles$c["core-label-input"],
|
|
1846
1853
|
style: {
|
|
@@ -1857,7 +1864,8 @@ var CoreTitleInput = function CoreTitleInput(props) {
|
|
|
1857
1864
|
return _onChange(name, e.target.value);
|
|
1858
1865
|
},
|
|
1859
1866
|
disabled: disabled,
|
|
1860
|
-
placeholder: placeholder
|
|
1867
|
+
placeholder: placeholder,
|
|
1868
|
+
maxLength: maxLength
|
|
1861
1869
|
}));
|
|
1862
1870
|
};
|
|
1863
1871
|
|
|
@@ -1926,7 +1934,7 @@ var CustomOption = function CustomOption(props) {
|
|
|
1926
1934
|
}, props.data.label));
|
|
1927
1935
|
};
|
|
1928
1936
|
|
|
1929
|
-
var _excluded = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
1937
|
+
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
1930
1938
|
var CustomSelect = function CustomSelect(_ref) {
|
|
1931
1939
|
var isDefault = _ref.isDefault,
|
|
1932
1940
|
options = _ref.options,
|
|
@@ -1934,7 +1942,7 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
|
1934
1942
|
scrollBottom = _ref.scrollBottom,
|
|
1935
1943
|
value = _ref.value,
|
|
1936
1944
|
isMulti = _ref.isMulti,
|
|
1937
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
1945
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
1938
1946
|
var initialValues = Array.isArray(value) ? options.filter(function (i) {
|
|
1939
1947
|
return value.includes(i.value);
|
|
1940
1948
|
}) : isMulti ? options === null || options === void 0 ? void 0 : options.filter(function (i) {
|
|
@@ -1961,7 +1969,7 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
|
1961
1969
|
}, rest));
|
|
1962
1970
|
};
|
|
1963
1971
|
|
|
1964
|
-
var _excluded$
|
|
1972
|
+
var _excluded$2 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
1965
1973
|
var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
1966
1974
|
var isDefault = _ref.isDefault,
|
|
1967
1975
|
options = _ref.options,
|
|
@@ -1969,7 +1977,7 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
|
1969
1977
|
scrollBottom = _ref.scrollBottom,
|
|
1970
1978
|
value = _ref.value,
|
|
1971
1979
|
isMulti = _ref.isMulti,
|
|
1972
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1980
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
1973
1981
|
var initialValues = Array.isArray(value) ? options.filter(function (i) {
|
|
1974
1982
|
return value.includes(i.value);
|
|
1975
1983
|
}) : isMulti ? options.filter(function (i) {
|
|
@@ -1996,14 +2004,14 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
|
1996
2004
|
}, rest));
|
|
1997
2005
|
};
|
|
1998
2006
|
|
|
1999
|
-
var _excluded$
|
|
2007
|
+
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
2000
2008
|
var CustomCreatable = function CustomCreatable(_ref) {
|
|
2001
2009
|
var options = _ref.options,
|
|
2002
2010
|
isDisabled = _ref.isDisabled,
|
|
2003
2011
|
scrollBottom = _ref.scrollBottom,
|
|
2004
2012
|
value = _ref.value,
|
|
2005
2013
|
isMulti = _ref.isMulti,
|
|
2006
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2014
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
2007
2015
|
var initialValues = Array.isArray(value) ? options.filter(function (i) {
|
|
2008
2016
|
return value.includes(i.value);
|
|
2009
2017
|
}) : isMulti ? options.filter(function (i) {
|
|
@@ -2030,7 +2038,7 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
|
2030
2038
|
}, rest));
|
|
2031
2039
|
};
|
|
2032
2040
|
|
|
2033
|
-
var _excluded$
|
|
2041
|
+
var _excluded$4 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
2034
2042
|
var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
2035
2043
|
var defaultValue = _ref.defaultValue,
|
|
2036
2044
|
options = _ref.options,
|
|
@@ -2038,7 +2046,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
|
2038
2046
|
scrollBottom = _ref.scrollBottom,
|
|
2039
2047
|
value = _ref.value,
|
|
2040
2048
|
isMulti = _ref.isMulti,
|
|
2041
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2049
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
2042
2050
|
var initialValues = defaultValue !== null && typeof defaultValue !== "undefined" ? options.find(function (option) {
|
|
2043
2051
|
return option.value === defaultValue;
|
|
2044
2052
|
}) || null : null;
|