siam-ui-utils 1.0.0 → 1.0.2
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/dist_browser/CustomBootstrap.jsx +12 -0
- package/dist_browser/CustomSelectInput.jsx +23 -0
- package/dist_browser/index.jsx +18 -0
- package/dist_node/CustomBootstrap.jsx +12 -0
- package/dist_node/CustomSelectInput.jsx +23 -0
- package/dist_node/index.jsx +18 -0
- package/package.json +3 -3
- package/src/CustomSelectInput.tsx +3 -2
- package/tsconfig.json +1 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Separator = exports.Colxx = void 0;
|
|
4
|
+
var React = require("react");
|
|
5
|
+
var reactstrap_1 = require("reactstrap");
|
|
6
|
+
var Colxx = function (props) { return (<reactstrap_1.Col {...props} widths={['xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl']}/>); };
|
|
7
|
+
exports.Colxx = Colxx;
|
|
8
|
+
var Separator = function (_a) {
|
|
9
|
+
var className = _a.className;
|
|
10
|
+
return (<div className={"separator ".concat(className)}/>);
|
|
11
|
+
};
|
|
12
|
+
exports.Separator = Separator;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.CustomSelectInput = void 0;
|
|
15
|
+
var React = require("react");
|
|
16
|
+
var react_select_1 = require("react-select");
|
|
17
|
+
var CustomSelectInput = function (props) {
|
|
18
|
+
var customProps = __assign({}, props);
|
|
19
|
+
delete customProps.autoCorrect;
|
|
20
|
+
delete customProps.autoCapitalize;
|
|
21
|
+
return <react_select_1.components.Input {...customProps}/>;
|
|
22
|
+
};
|
|
23
|
+
exports.CustomSelectInput = CustomSelectInput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CustomBootstrap"), exports);
|
|
18
|
+
__exportStar(require("./CustomSelectInput"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Separator = exports.Colxx = void 0;
|
|
4
|
+
var React = require("react");
|
|
5
|
+
var reactstrap_1 = require("reactstrap");
|
|
6
|
+
var Colxx = function (props) { return (<reactstrap_1.Col {...props} widths={['xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl']}/>); };
|
|
7
|
+
exports.Colxx = Colxx;
|
|
8
|
+
var Separator = function (_a) {
|
|
9
|
+
var className = _a.className;
|
|
10
|
+
return (<div className={"separator ".concat(className)}/>);
|
|
11
|
+
};
|
|
12
|
+
exports.Separator = Separator;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.CustomSelectInput = void 0;
|
|
15
|
+
var React = require("react");
|
|
16
|
+
var react_select_1 = require("react-select");
|
|
17
|
+
var CustomSelectInput = function (props) {
|
|
18
|
+
var customProps = __assign({}, props);
|
|
19
|
+
delete customProps.autoCorrect;
|
|
20
|
+
delete customProps.autoCapitalize;
|
|
21
|
+
return <react_select_1.components.Input {...customProps}/>;
|
|
22
|
+
};
|
|
23
|
+
exports.CustomSelectInput = CustomSelectInput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CustomBootstrap"), exports);
|
|
18
|
+
__exportStar(require("./CustomSelectInput"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siam-ui-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ampf-react",
|
|
6
6
|
"ampf-utils",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"moduleResolution": "nodenext",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build-node": "npx tsc src/index.ts --outDir dist_node",
|
|
23
|
-
"build-browser": "npx tsc src/index.ts --outDir dist_browser",
|
|
22
|
+
"build-node": "npx tsc src/index.ts --jsx perserve --outDir dist_node",
|
|
23
|
+
"build-browser": "npx tsc src/index.ts --jsx perserve --outDir dist_browser",
|
|
24
24
|
"build": "npm run build-node & npm run build-browser",
|
|
25
25
|
"test": "vitest --clearScreen",
|
|
26
26
|
"test-without-stopping": "vitest --clearScreen --run",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React = require('react');
|
|
2
2
|
import { components } from 'react-select';
|
|
3
3
|
|
|
4
|
+
|
|
4
5
|
const CustomSelectInput = (props: any) => {
|
|
5
6
|
const customProps = { ...props };
|
|
6
7
|
delete customProps.autoCorrect;
|
|
@@ -8,4 +9,4 @@ const CustomSelectInput = (props: any) => {
|
|
|
8
9
|
return <components.Input {...customProps} />;
|
|
9
10
|
};
|
|
10
11
|
|
|
11
|
-
export
|
|
12
|
+
export { CustomSelectInput };
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "es6",
|
|
4
4
|
"lib": [
|
|
5
5
|
"dom",
|
|
6
6
|
"dom.iterable",
|
|
7
7
|
"esnext"
|
|
8
8
|
],
|
|
9
9
|
"allowJs": false,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
10
|
"skipLibCheck": true,
|
|
12
11
|
"strict": true,
|
|
13
12
|
"forceConsistentCasingInFileNames": true,
|