empower-container 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/README.md +378 -378
  2. package/dist/cjs/DatetimeFormatter.d.ts +3 -3
  3. package/dist/cjs/DatetimeFormatter.js +389 -389
  4. package/dist/cjs/Information.d.ts +10 -10
  5. package/dist/cjs/Information.js +63 -63
  6. package/dist/cjs/MenuBar.d.ts +24 -24
  7. package/dist/cjs/MenuBar.js +539 -539
  8. package/dist/cjs/Modal.d.ts +33 -33
  9. package/dist/cjs/Modal.js +44 -44
  10. package/dist/cjs/assets/Asset.d.ts +17 -17
  11. package/dist/cjs/assets/Asset.js +31 -31
  12. package/dist/cjs/constants/Constant.d.ts +15 -15
  13. package/dist/cjs/constants/Constant.js +35 -35
  14. package/dist/cjs/index.d.ts +3 -3
  15. package/dist/cjs/index.js +10 -10
  16. package/dist/cjs/inputs/Input.d.ts +25 -25
  17. package/dist/cjs/inputs/Input.js +106 -106
  18. package/dist/cjs/inputs/InputSelectionHandler.d.ts +3 -3
  19. package/dist/cjs/inputs/InputSelectionHandler.js +36 -36
  20. package/dist/cjs/inputs/Select.d.ts +28 -28
  21. package/dist/cjs/inputs/Select.js +403 -403
  22. package/dist/esm/DatetimeFormatter.d.ts +3 -3
  23. package/dist/esm/DatetimeFormatter.js +385 -385
  24. package/dist/esm/Information.d.ts +10 -10
  25. package/dist/esm/Information.js +38 -38
  26. package/dist/esm/MenuBar.d.ts +24 -24
  27. package/dist/esm/MenuBar.js +534 -534
  28. package/dist/esm/Modal.d.ts +33 -33
  29. package/dist/esm/Modal.js +39 -39
  30. package/dist/esm/assets/Asset.d.ts +17 -17
  31. package/dist/esm/assets/Asset.js +28 -28
  32. package/dist/esm/constants/Constant.d.ts +15 -15
  33. package/dist/esm/constants/Constant.js +32 -32
  34. package/dist/esm/index.d.ts +3 -3
  35. package/dist/esm/index.js +3 -3
  36. package/dist/esm/inputs/Input.d.ts +25 -25
  37. package/dist/esm/inputs/Input.js +104 -104
  38. package/dist/esm/inputs/InputSelectionHandler.d.ts +3 -3
  39. package/dist/esm/inputs/InputSelectionHandler.js +31 -31
  40. package/dist/esm/inputs/Select.d.ts +28 -28
  41. package/dist/esm/inputs/Select.js +399 -399
  42. package/dist/scss/components/_modal.scss +66 -66
  43. package/dist/scss/elements/_button.scss +132 -132
  44. package/dist/scss/elements/_index.scss +1 -1
  45. package/dist/scss/elements/_popover.scss +7 -7
  46. package/dist/scss/foundation/_colors.scss +59 -59
  47. package/dist/scss/foundation/_mixins.scss +40 -40
  48. package/dist/scss/foundation/_normalize.scss +203 -203
  49. package/dist/scss/foundation/_settings.scss +36 -36
  50. package/dist/scss/foundation/_typography.scss +94 -94
  51. package/dist/scss/library/_information.scss +72 -63
  52. package/dist/scss/library/_input.scss +37 -37
  53. package/dist/scss/library/_menubar.scss +241 -240
  54. package/dist/scss/library/_select.scss +258 -258
  55. package/dist/scss/style.scss +38 -38
  56. package/package.json +63 -62
  57. package/tscnofig.old +26 -26
@@ -1,33 +1,33 @@
1
- import React from "react";
2
- import '../scss/style.scss';
3
- interface IModalProps {
4
- id?: string;
5
- show: boolean;
6
- hideMenuBar?: boolean;
7
- config: {
8
- title: string;
9
- icon: any;
10
- showInfo: boolean;
11
- iconType: Array<string>;
12
- modalSize: string;
13
- };
14
- getActions: any;
15
- children?: any;
16
- button?: {
17
- show: boolean;
18
- actions?: Array<object>;
19
- };
20
- dropdown?: any;
21
- search?: any;
22
- pagination?: any;
23
- pivot?: any;
24
- check?: any;
25
- toggle?: any;
26
- mainButton?: any;
27
- buttonFooter?: any;
28
- undoButton?: any;
29
- info?: any;
30
- customClass?: string;
31
- }
32
- declare const Modal: React.FunctionComponent<IModalProps>;
33
- export default Modal;
1
+ import React from "react";
2
+ import '../scss/style.scss';
3
+ interface IModalProps {
4
+ id?: string;
5
+ show: boolean;
6
+ hideMenuBar?: boolean;
7
+ config: {
8
+ title: string;
9
+ icon: any;
10
+ showInfo: boolean;
11
+ iconType: Array<string>;
12
+ modalSize: string;
13
+ };
14
+ getActions: any;
15
+ children?: any;
16
+ button?: {
17
+ show: boolean;
18
+ actions?: Array<object>;
19
+ };
20
+ dropdown?: any;
21
+ search?: any;
22
+ pagination?: any;
23
+ pivot?: any;
24
+ check?: any;
25
+ toggle?: any;
26
+ mainButton?: any;
27
+ buttonFooter?: any;
28
+ undoButton?: any;
29
+ info?: any;
30
+ customClass?: string;
31
+ }
32
+ declare const Modal: React.FunctionComponent<IModalProps>;
33
+ export default Modal;
package/dist/esm/Modal.js CHANGED
@@ -1,39 +1,39 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import ReactDOM from "react-dom";
14
- import MenuBar from "./MenuBar";
15
- import '../scss/style.scss';
16
- var Modal = function (_a) {
17
- var id = _a.id, show = _a.show, hideMenuBar = _a.hideMenuBar, config = _a.config, getActions = _a.getActions, children = _a.children, button = _a.button, dropdown = _a.dropdown, search = _a.search, pagination = _a.pagination, pivot = _a.pivot, check = _a.check, toggle = _a.toggle, undoButton = _a.undoButton, mainButton = _a.mainButton, buttonFooter = _a.buttonFooter, info = _a.info, customClass = _a.customClass;
18
- var sendActions = function (actions, data) {
19
- returnValues(actions, data);
20
- };
21
- var returnValues = function (action, data, addedParam) {
22
- if (addedParam === void 0) { addedParam = null; }
23
- return getActions ? getActions(action, data, addedParam) : false;
24
- };
25
- var x = document.getElementsByTagName("BODY")[0];
26
- var dvId = '';
27
- if (x.children) {
28
- Array.from(x.children).forEach(function (el) {
29
- if (el.constructor == HTMLDivElement) {
30
- dvId = el.id;
31
- return;
32
- }
33
- });
34
- }
35
- return (show ? ReactDOM.createPortal(_jsx("div", __assign({ className: "em-modal " + customClass }, { children: _jsx("div", __assign({ className: "em-modal-container", "data-testid": id ? id : 'default-modal-test' }, { children: _jsx("div", __assign({ className: "em-card card-modal modal-".concat(config.modalSize ? config.modalSize : 'md') }, { children: !hideMenuBar ? (_jsx(MenuBar, __assign({ config: config, mainButton: mainButton, button: button, pagination: pagination, pivot: pivot, dropdown: dropdown, search: search, toggle: toggle, undoButton: undoButton, buttonFooter: buttonFooter, check: check, info: info, getActions: function (actions, data) { return sendActions(actions, data); } }, { children: _jsx("div", __assign({ className: "em-card-content" }, { children: children })) }))) : _jsx("div", __assign({ className: "em-card-content card-content" }, { children: children })) })) })) })),
36
- // document.getElementById(dvId)!
37
- document.getElementById('root')) : null);
38
- };
39
- export default Modal;
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import ReactDOM from "react-dom";
14
+ import MenuBar from "./MenuBar";
15
+ import '../scss/style.scss';
16
+ var Modal = function (_a) {
17
+ var id = _a.id, show = _a.show, hideMenuBar = _a.hideMenuBar, config = _a.config, getActions = _a.getActions, children = _a.children, button = _a.button, dropdown = _a.dropdown, search = _a.search, pagination = _a.pagination, pivot = _a.pivot, check = _a.check, toggle = _a.toggle, undoButton = _a.undoButton, mainButton = _a.mainButton, buttonFooter = _a.buttonFooter, info = _a.info, customClass = _a.customClass;
18
+ var sendActions = function (actions, data) {
19
+ returnValues(actions, data);
20
+ };
21
+ var returnValues = function (action, data, addedParam) {
22
+ if (addedParam === void 0) { addedParam = null; }
23
+ return getActions ? getActions(action, data, addedParam) : false;
24
+ };
25
+ var x = document.getElementsByTagName("BODY")[0];
26
+ var dvId = '';
27
+ if (x.children) {
28
+ Array.from(x.children).forEach(function (el) {
29
+ if (el.constructor == HTMLDivElement) {
30
+ dvId = el.id;
31
+ return;
32
+ }
33
+ });
34
+ }
35
+ return (show ? ReactDOM.createPortal(_jsx("div", __assign({ className: "em-modal " + customClass }, { children: _jsx("div", __assign({ className: "em-modal-container", "data-testid": id ? id : 'default-modal-test' }, { children: _jsx("div", __assign({ className: "em-card card-modal modal-".concat(config.modalSize ? config.modalSize : 'md') }, { children: !hideMenuBar ? (_jsx(MenuBar, __assign({ config: config, mainButton: mainButton, button: button, pagination: pagination, pivot: pivot, dropdown: dropdown, search: search, toggle: toggle, undoButton: undoButton, buttonFooter: buttonFooter, check: check, info: info, getActions: function (actions, data) { return sendActions(actions, data); } }, { children: _jsx("div", __assign({ className: "em-card-content" }, { children: children })) }))) : _jsx("div", __assign({ className: "em-card-content card-content" }, { children: children })) })) })) })),
36
+ // document.getElementById(dvId)!
37
+ document.getElementById('root')) : null);
38
+ };
39
+ export default Modal;
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- export declare const SVG_BACK: JSX.Element;
3
- export declare const SVG_CHECK: JSX.Element;
4
- export declare const SVG_CHECK_ACTIVE: JSX.Element;
5
- export declare const SVG_CHECK_INACTIVE: JSX.Element;
6
- export declare const SVG_CHECK_NEUTRAL: JSX.Element;
7
- export declare const SVG_CLOSE_GRAY: JSX.Element;
8
- export declare const SVG_SUBMIT: JSX.Element;
9
- export declare const SVG_UNDO: JSX.Element;
10
- export declare const SVG_ARROWRIGHT: JSX.Element;
11
- export declare const SVG_ARROWLEFT: JSX.Element;
12
- export declare const SVG_ARROWDOWN: JSX.Element;
13
- export declare const SVG_ARROW_UP: JSX.Element;
14
- export declare const SVG_REQUEST: JSX.Element;
15
- export declare const SVG_ADD: JSX.Element;
16
- export declare const SVG_INFORMATION: JSX.Element;
17
- export declare const SVG_CLOSE: JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const SVG_BACK: JSX.Element;
3
+ export declare const SVG_CHECK: JSX.Element;
4
+ export declare const SVG_CHECK_ACTIVE: JSX.Element;
5
+ export declare const SVG_CHECK_INACTIVE: JSX.Element;
6
+ export declare const SVG_CHECK_NEUTRAL: JSX.Element;
7
+ export declare const SVG_CLOSE_GRAY: JSX.Element;
8
+ export declare const SVG_SUBMIT: JSX.Element;
9
+ export declare const SVG_UNDO: JSX.Element;
10
+ export declare const SVG_ARROWRIGHT: JSX.Element;
11
+ export declare const SVG_ARROWLEFT: JSX.Element;
12
+ export declare const SVG_ARROWDOWN: JSX.Element;
13
+ export declare const SVG_ARROW_UP: JSX.Element;
14
+ export declare const SVG_REQUEST: JSX.Element;
15
+ export declare const SVG_ADD: JSX.Element;
16
+ export declare const SVG_INFORMATION: JSX.Element;
17
+ export declare const SVG_CLOSE: JSX.Element;
@@ -1,28 +1,28 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- export var SVG_BACK = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.69612 4.29289C8.08664 4.68342 8.08664 5.31658 7.69612 5.70711L3.40323 10L7.69612 14.2929C8.08664 14.6834 8.08664 15.3166 7.69612 15.7071C7.3056 16.0976 6.67243 16.0976 6.28191 15.7071L1.28191 10.7071C0.891382 10.3166 0.891382 9.68342 1.28191 9.29289L6.28191 4.29289C6.67243 3.90237 7.3056 3.90237 7.69612 4.29289Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.989014 10C0.989014 9.44772 1.43673 9 1.98901 9H17.989C18.5413 9 18.989 9.44772 18.989 10C18.989 10.5523 18.5413 11 17.989 11H1.98901C1.43673 11 0.989014 10.5523 0.989014 10Z", fill: "#5C7FF3" })] }));
14
- export var SVG_CHECK = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.6823 4.26895C18.0861 4.64578 18.1079 5.27857 17.7311 5.68232L8.39773 15.6823C8.2086 15.885 7.94385 16 7.66667 16C7.38949 16 7.12474 15.885 6.93562 15.6823L2.26895 10.6823C1.89211 10.2786 1.91393 9.64578 2.31769 9.26895C2.72144 8.89211 3.35423 8.91393 3.73106 9.31769L7.66667 13.5344L16.2689 4.31769C16.6458 3.91393 17.2786 3.89211 17.6823 4.26895Z", fill: "#393F5A" }) }));
15
- export var SVG_CHECK_ACTIVE = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { className: "check-box", width: "20", height: "20", rx: "5", fill: "#5C7FF3" }), _jsx("path", { className: "check", fillRule: "evenodd", clipRule: "evenodd", d: "M16.6631 5.26895C17.0913 5.64578 17.1144 6.27857 16.7148 6.68232L8.79556 14.6823C8.59498 14.885 8.31418 15 8.0202 15C7.72622 15 7.44543 14.885 7.24484 14.6823L3.28525 10.6823C2.88558 10.2786 2.90872 9.64578 3.33694 9.26895C3.76516 8.89211 4.4363 8.91393 4.83597 9.31768L8.0202 12.5344L15.164 5.31769C15.5637 4.91393 16.2348 4.89211 16.6631 5.26895Z", fill: "white" })] }));
16
- export var SVG_CHECK_INACTIVE = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { className: "check-box-inactive", fillRule: "evenodd", clipRule: "evenodd", d: "M15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5C18 3.34315 16.6569 2 15 2ZM5 0C2.23858 0 0 2.23858 0 5V15C0 17.7614 2.23858 20 5 20H15C17.7614 20 20 17.7614 20 15V5C20 2.23858 17.7614 0 15 0H5Z", fill: "#AFC7FD" }) }));
17
- export var SVG_CHECK_NEUTRAL = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { className: "check-box", fillRule: "evenodd", clipRule: "evenodd", d: "M15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5C18 3.34315 16.6569 2 15 2ZM5 0C2.23858 0 0 2.23858 0 5V15C0 17.7614 2.23858 20 5 20H15C17.7614 20 20 17.7614 20 15V5C20 2.23858 17.7614 0 15 0H5Z", fill: "#AFC7FD" }), _jsx("path", { className: "check-box", d: "M4 6C4 4.89543 4.89543 4 6 4H14C15.1046 4 16 4.89543 16 6V14C16 15.1046 15.1046 16 14 16H6C4.89543 16 4 15.1046 4 14V6Z", fill: "#AFC7FD" })] }));
18
- export var SVG_CLOSE_GRAY = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M4.70711 3.29289C4.31658 2.90237 3.68342 2.90237 3.29289 3.29289C2.90237 3.68342 2.90237 4.31658 3.29289 4.70711L4.70711 3.29289ZM15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071C17.0976 16.3166 17.0976 15.6834 16.7071 15.2929L15.2929 16.7071ZM3.29289 4.70711L15.2929 16.7071L16.7071 15.2929L4.70711 3.29289L3.29289 4.70711Z", fill: "#9FA5B7" }), _jsx("path", { d: "M4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L4.70711 16.7071ZM15.2929 3.29289C15.6834 2.90237 16.3166 2.90237 16.7071 3.29289C17.0976 3.68342 17.0976 4.31658 16.7071 4.70711L15.2929 3.29289ZM3.29289 15.2929L15.2929 3.29289L16.7071 4.70711L4.70711 16.7071L3.29289 15.2929Z", fill: "#9FA5B7" })] }));
19
- export var SVG_SUBMIT = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.91396 10L2.88989 16.0933L16.4333 10L2.88989 3.90673L4.91396 10ZM2.61324 10L0.0483426 17.7214C-0.228127 18.5537 0.733799 19.2809 1.59727 18.8925L19.3907 10.8871C20.2031 10.5216 20.2031 9.47843 19.3907 9.11295L1.59726 1.10753C0.733796 0.719051 -0.228127 1.44632 0.048342 2.2786L2.61324 10Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 10C3 9.44772 3.44772 9 4 9L17 9C17.5523 9 18 9.44772 18 10C18 10.5523 17.5523 11 17 11L4 11C3.44772 11 3 10.5523 3 10Z", fill: "#393F5A" })] }));
20
- export var SVG_UNDO = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.69612 1.29289C8.08664 1.68342 8.08664 2.31658 7.69612 2.70711L3.40323 7L7.69612 11.2929C8.08664 11.6834 8.08664 12.3166 7.69612 12.7071C7.3056 13.0976 6.67243 13.0976 6.28191 12.7071L1.28191 7.70711C0.891382 7.31658 0.891382 6.68342 1.28191 6.29289L6.28191 1.29289C6.67243 0.902369 7.3056 0.902369 7.69612 1.29289Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 7C2 6.44772 2.44772 6 3 6H13C16.3137 6 19 8.68629 19 12C19 15.3137 16.3137 18 13 18H2C1.44772 18 1 17.5523 1 17C1 16.4477 1.44772 16 2 16H13C15.2091 16 17 14.2091 17 12C17 9.79086 15.2091 8 13 8H3C2.44772 8 2 7.55228 2 7Z", fill: "#393F5A" })] }));
21
- export var SVG_ARROWRIGHT = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.79289 16.2071C7.40237 15.8166 7.40237 15.1834 7.79289 14.7929L12.0858 10.5L7.79289 6.20711C7.40237 5.81658 7.40237 5.18342 7.79289 4.79289C8.18342 4.40237 8.81658 4.40237 9.20711 4.79289L14.2071 9.79289C14.5976 10.1834 14.5976 10.8166 14.2071 11.2071L9.20711 16.2071C8.81658 16.5976 8.18342 16.5976 7.79289 16.2071Z", fill: "#9FA5B7" }) }));
22
- export var SVG_ARROWLEFT = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2071 4.79289C13.5976 5.18342 13.5976 5.81658 13.2071 6.20711L8.91421 10.5L13.2071 14.7929C13.5976 15.1834 13.5976 15.8166 13.2071 16.2071C12.8166 16.5976 12.1834 16.5976 11.7929 16.2071L6.79289 11.2071C6.40237 10.8166 6.40237 10.1834 6.79289 9.79289L11.7929 4.79289C12.1834 4.40237 12.8166 4.40237 13.2071 4.79289Z", fill: "#9FA5B7" }) }));
23
- export var SVG_ARROWDOWN = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.29289 7.29289C4.68342 6.90237 5.31658 6.90237 5.70711 7.29289L10 11.5858L14.2929 7.29289C14.6834 6.90237 15.3166 6.90237 15.7071 7.29289C16.0976 7.68342 16.0976 8.31658 15.7071 8.70711L10.7071 13.7071C10.3166 14.0976 9.68342 14.0976 9.29289 13.7071L4.29289 8.70711C3.90237 8.31658 3.90237 7.68342 4.29289 7.29289Z", fill: "#9FA5B7" }) }));
24
- export var SVG_ARROW_UP = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.29289 13.7071C4.68342 14.0976 5.31658 14.0976 5.70711 13.7071L10 9.41421L14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071C16.0976 13.3166 16.0976 12.6834 15.7071 12.2929L10.7071 7.29289C10.3166 6.90237 9.68342 6.90237 9.29289 7.29289L4.29289 12.2929C3.90237 12.6834 3.90237 13.3166 4.29289 13.7071Z", fill: "#9FA5B7" }) }));
25
- export var SVG_REQUEST = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 2L6 4L14 4L14 2L6 2ZM4 4C4 5.10457 4.89543 6 6 6L14 6C15.1046 6 16 5.10457 16 4L16 2C16 0.895431 15.1046 -8.55899e-09 14 3.97233e-08L6 3.89414e-07C4.89543 4.37697e-07 4 0.895431 4 2L4 4Z", fill: "#393F5A" }), _jsx("path", { d: "M16 10C16 10.5523 15.5523 11 15 11L5 11C4.44771 11 4 10.5523 4 10C4 9.44772 4.44772 9 5 9L15 9C15.5523 9 16 9.44771 16 10Z", fill: "#393F5A" }), _jsx("path", { d: "M12 14C12 14.5523 11.5523 15 11 15L5 15C4.44772 15 4 14.5523 4 14C4 13.4477 4.44772 13 5 13L11 13C11.5523 13 12 13.4477 12 14Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14 4H18V18H2V4H6L6 2H2C0.895431 2 0 2.89543 0 4V18C0 19.1046 0.895431 20 2 20H18C19.1046 20 20 19.1046 20 18V4C20 2.89543 19.1046 2 18 2H14V4Z", fill: "#393F5A" })] }));
26
- export var SVG_ADD = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C10.5523 2 11 2.44772 11 3V17C11 17.5523 10.5523 18 10 18C9.44772 18 9 17.5523 9 17V3C9 2.44772 9.44772 2 10 2Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 10C2 9.44772 2.44772 9 3 9L17 9C17.5523 9 18 9.44772 18 10C18 10.5523 17.5523 11 17 11L3 11C2.44772 11 2 10.5523 2 10Z", fill: "#393F5A" })] }));
27
- export var SVG_INFORMATION = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { x: "1", y: "1", width: "18", height: "18", rx: "9", stroke: "#9FA5B7", strokeWidth: "2" }), _jsx("path", { d: "M10 9V14", stroke: "#9FA5B7", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: "10", cy: "6", r: "1", fill: "#9FA5B7" })] }));
28
- export var SVG_CLOSE = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.29289 3.29289C3.68342 2.90237 4.31658 2.90237 4.70711 3.29289L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L3.29289 4.70711C2.90237 4.31658 2.90237 3.68342 3.29289 3.29289Z", fill: "#9FA5B7" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.29289 16.7071C3.68342 17.0976 4.31658 17.0976 4.70711 16.7071L16.7071 4.70711C17.0976 4.31658 17.0976 3.68342 16.7071 3.29289C16.3166 2.90237 15.6834 2.90237 15.2929 3.29289L3.29289 15.2929C2.90237 15.6834 2.90237 16.3166 3.29289 16.7071Z", fill: "#9FA5B7" })] }));
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ export var SVG_BACK = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.69612 4.29289C8.08664 4.68342 8.08664 5.31658 7.69612 5.70711L3.40323 10L7.69612 14.2929C8.08664 14.6834 8.08664 15.3166 7.69612 15.7071C7.3056 16.0976 6.67243 16.0976 6.28191 15.7071L1.28191 10.7071C0.891382 10.3166 0.891382 9.68342 1.28191 9.29289L6.28191 4.29289C6.67243 3.90237 7.3056 3.90237 7.69612 4.29289Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.989014 10C0.989014 9.44772 1.43673 9 1.98901 9H17.989C18.5413 9 18.989 9.44772 18.989 10C18.989 10.5523 18.5413 11 17.989 11H1.98901C1.43673 11 0.989014 10.5523 0.989014 10Z", fill: "#5C7FF3" })] }));
14
+ export var SVG_CHECK = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.6823 4.26895C18.0861 4.64578 18.1079 5.27857 17.7311 5.68232L8.39773 15.6823C8.2086 15.885 7.94385 16 7.66667 16C7.38949 16 7.12474 15.885 6.93562 15.6823L2.26895 10.6823C1.89211 10.2786 1.91393 9.64578 2.31769 9.26895C2.72144 8.89211 3.35423 8.91393 3.73106 9.31769L7.66667 13.5344L16.2689 4.31769C16.6458 3.91393 17.2786 3.89211 17.6823 4.26895Z", fill: "#393F5A" }) }));
15
+ export var SVG_CHECK_ACTIVE = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { className: "check-box", width: "20", height: "20", rx: "5", fill: "#5C7FF3" }), _jsx("path", { className: "check", fillRule: "evenodd", clipRule: "evenodd", d: "M16.6631 5.26895C17.0913 5.64578 17.1144 6.27857 16.7148 6.68232L8.79556 14.6823C8.59498 14.885 8.31418 15 8.0202 15C7.72622 15 7.44543 14.885 7.24484 14.6823L3.28525 10.6823C2.88558 10.2786 2.90872 9.64578 3.33694 9.26895C3.76516 8.89211 4.4363 8.91393 4.83597 9.31768L8.0202 12.5344L15.164 5.31769C15.5637 4.91393 16.2348 4.89211 16.6631 5.26895Z", fill: "white" })] }));
16
+ export var SVG_CHECK_INACTIVE = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { className: "check-box-inactive", fillRule: "evenodd", clipRule: "evenodd", d: "M15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5C18 3.34315 16.6569 2 15 2ZM5 0C2.23858 0 0 2.23858 0 5V15C0 17.7614 2.23858 20 5 20H15C17.7614 20 20 17.7614 20 15V5C20 2.23858 17.7614 0 15 0H5Z", fill: "#AFC7FD" }) }));
17
+ export var SVG_CHECK_NEUTRAL = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { className: "check-box", fillRule: "evenodd", clipRule: "evenodd", d: "M15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5C18 3.34315 16.6569 2 15 2ZM5 0C2.23858 0 0 2.23858 0 5V15C0 17.7614 2.23858 20 5 20H15C17.7614 20 20 17.7614 20 15V5C20 2.23858 17.7614 0 15 0H5Z", fill: "#AFC7FD" }), _jsx("path", { className: "check-box", d: "M4 6C4 4.89543 4.89543 4 6 4H14C15.1046 4 16 4.89543 16 6V14C16 15.1046 15.1046 16 14 16H6C4.89543 16 4 15.1046 4 14V6Z", fill: "#AFC7FD" })] }));
18
+ export var SVG_CLOSE_GRAY = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M4.70711 3.29289C4.31658 2.90237 3.68342 2.90237 3.29289 3.29289C2.90237 3.68342 2.90237 4.31658 3.29289 4.70711L4.70711 3.29289ZM15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071C17.0976 16.3166 17.0976 15.6834 16.7071 15.2929L15.2929 16.7071ZM3.29289 4.70711L15.2929 16.7071L16.7071 15.2929L4.70711 3.29289L3.29289 4.70711Z", fill: "#9FA5B7" }), _jsx("path", { d: "M4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L4.70711 16.7071ZM15.2929 3.29289C15.6834 2.90237 16.3166 2.90237 16.7071 3.29289C17.0976 3.68342 17.0976 4.31658 16.7071 4.70711L15.2929 3.29289ZM3.29289 15.2929L15.2929 3.29289L16.7071 4.70711L4.70711 16.7071L3.29289 15.2929Z", fill: "#9FA5B7" })] }));
19
+ export var SVG_SUBMIT = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.91396 10L2.88989 16.0933L16.4333 10L2.88989 3.90673L4.91396 10ZM2.61324 10L0.0483426 17.7214C-0.228127 18.5537 0.733799 19.2809 1.59727 18.8925L19.3907 10.8871C20.2031 10.5216 20.2031 9.47843 19.3907 9.11295L1.59726 1.10753C0.733796 0.719051 -0.228127 1.44632 0.048342 2.2786L2.61324 10Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 10C3 9.44772 3.44772 9 4 9L17 9C17.5523 9 18 9.44772 18 10C18 10.5523 17.5523 11 17 11L4 11C3.44772 11 3 10.5523 3 10Z", fill: "#393F5A" })] }));
20
+ export var SVG_UNDO = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.69612 1.29289C8.08664 1.68342 8.08664 2.31658 7.69612 2.70711L3.40323 7L7.69612 11.2929C8.08664 11.6834 8.08664 12.3166 7.69612 12.7071C7.3056 13.0976 6.67243 13.0976 6.28191 12.7071L1.28191 7.70711C0.891382 7.31658 0.891382 6.68342 1.28191 6.29289L6.28191 1.29289C6.67243 0.902369 7.3056 0.902369 7.69612 1.29289Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 7C2 6.44772 2.44772 6 3 6H13C16.3137 6 19 8.68629 19 12C19 15.3137 16.3137 18 13 18H2C1.44772 18 1 17.5523 1 17C1 16.4477 1.44772 16 2 16H13C15.2091 16 17 14.2091 17 12C17 9.79086 15.2091 8 13 8H3C2.44772 8 2 7.55228 2 7Z", fill: "#393F5A" })] }));
21
+ export var SVG_ARROWRIGHT = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.79289 16.2071C7.40237 15.8166 7.40237 15.1834 7.79289 14.7929L12.0858 10.5L7.79289 6.20711C7.40237 5.81658 7.40237 5.18342 7.79289 4.79289C8.18342 4.40237 8.81658 4.40237 9.20711 4.79289L14.2071 9.79289C14.5976 10.1834 14.5976 10.8166 14.2071 11.2071L9.20711 16.2071C8.81658 16.5976 8.18342 16.5976 7.79289 16.2071Z", fill: "#9FA5B7" }) }));
22
+ export var SVG_ARROWLEFT = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2071 4.79289C13.5976 5.18342 13.5976 5.81658 13.2071 6.20711L8.91421 10.5L13.2071 14.7929C13.5976 15.1834 13.5976 15.8166 13.2071 16.2071C12.8166 16.5976 12.1834 16.5976 11.7929 16.2071L6.79289 11.2071C6.40237 10.8166 6.40237 10.1834 6.79289 9.79289L11.7929 4.79289C12.1834 4.40237 12.8166 4.40237 13.2071 4.79289Z", fill: "#9FA5B7" }) }));
23
+ export var SVG_ARROWDOWN = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.29289 7.29289C4.68342 6.90237 5.31658 6.90237 5.70711 7.29289L10 11.5858L14.2929 7.29289C14.6834 6.90237 15.3166 6.90237 15.7071 7.29289C16.0976 7.68342 16.0976 8.31658 15.7071 8.70711L10.7071 13.7071C10.3166 14.0976 9.68342 14.0976 9.29289 13.7071L4.29289 8.70711C3.90237 8.31658 3.90237 7.68342 4.29289 7.29289Z", fill: "#9FA5B7" }) }));
24
+ export var SVG_ARROW_UP = _jsx("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.29289 13.7071C4.68342 14.0976 5.31658 14.0976 5.70711 13.7071L10 9.41421L14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071C16.0976 13.3166 16.0976 12.6834 15.7071 12.2929L10.7071 7.29289C10.3166 6.90237 9.68342 6.90237 9.29289 7.29289L4.29289 12.2929C3.90237 12.6834 3.90237 13.3166 4.29289 13.7071Z", fill: "#9FA5B7" }) }));
25
+ export var SVG_REQUEST = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 2L6 4L14 4L14 2L6 2ZM4 4C4 5.10457 4.89543 6 6 6L14 6C15.1046 6 16 5.10457 16 4L16 2C16 0.895431 15.1046 -8.55899e-09 14 3.97233e-08L6 3.89414e-07C4.89543 4.37697e-07 4 0.895431 4 2L4 4Z", fill: "#393F5A" }), _jsx("path", { d: "M16 10C16 10.5523 15.5523 11 15 11L5 11C4.44771 11 4 10.5523 4 10C4 9.44772 4.44772 9 5 9L15 9C15.5523 9 16 9.44771 16 10Z", fill: "#393F5A" }), _jsx("path", { d: "M12 14C12 14.5523 11.5523 15 11 15L5 15C4.44772 15 4 14.5523 4 14C4 13.4477 4.44772 13 5 13L11 13C11.5523 13 12 13.4477 12 14Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14 4H18V18H2V4H6L6 2H2C0.895431 2 0 2.89543 0 4V18C0 19.1046 0.895431 20 2 20H18C19.1046 20 20 19.1046 20 18V4C20 2.89543 19.1046 2 18 2H14V4Z", fill: "#393F5A" })] }));
26
+ export var SVG_ADD = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C10.5523 2 11 2.44772 11 3V17C11 17.5523 10.5523 18 10 18C9.44772 18 9 17.5523 9 17V3C9 2.44772 9.44772 2 10 2Z", fill: "#393F5A" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 10C2 9.44772 2.44772 9 3 9L17 9C17.5523 9 18 9.44772 18 10C18 10.5523 17.5523 11 17 11L3 11C2.44772 11 2 10.5523 2 10Z", fill: "#393F5A" })] }));
27
+ export var SVG_INFORMATION = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { x: "1", y: "1", width: "18", height: "18", rx: "9", stroke: "#9FA5B7", strokeWidth: "2" }), _jsx("path", { d: "M10 9V14", stroke: "#9FA5B7", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: "10", cy: "6", r: "1", fill: "#9FA5B7" })] }));
28
+ export var SVG_CLOSE = _jsxs("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.29289 3.29289C3.68342 2.90237 4.31658 2.90237 4.70711 3.29289L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L3.29289 4.70711C2.90237 4.31658 2.90237 3.68342 3.29289 3.29289Z", fill: "#9FA5B7" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.29289 16.7071C3.68342 17.0976 4.31658 17.0976 4.70711 16.7071L16.7071 4.70711C17.0976 4.31658 17.0976 3.68342 16.7071 3.29289C16.3166 2.90237 15.6834 2.90237 15.2929 3.29289L3.29289 15.2929C2.90237 15.6834 2.90237 16.3166 3.29289 16.7071Z", fill: "#9FA5B7" })] }));
@@ -1,15 +1,15 @@
1
- export namespace CHECKBOX {
2
- const ALL: JSX.Element;
3
- const FEW: JSX.Element;
4
- const NONE: JSX.Element;
5
- }
6
- export const MONTH_LIST: {
7
- label: string;
8
- value: string;
9
- }[];
10
- export const PAGE_OPTION: {
11
- value: string;
12
- label: string;
13
- }[];
14
- export const MONTH_NAMES: string[];
15
- export const INFO_LOADER: "<div className=\"l-info-content l-shine-container\"> <div className=\"l-shine\"></div><div className=\"l-stats-text\"><div className=\"l-text\"><span className=\"w-40\"></span><span className=\"w-20\"></span></div><div className=\"l-text-h\"><span className=\"w-30\"></span><span className=\"w-60\"></span><span className=\"w-40\"></span></div></div></div >";
1
+ export namespace CHECKBOX {
2
+ const ALL: JSX.Element;
3
+ const FEW: JSX.Element;
4
+ const NONE: JSX.Element;
5
+ }
6
+ export const MONTH_LIST: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ export const PAGE_OPTION: {
11
+ value: string;
12
+ label: string;
13
+ }[];
14
+ export const MONTH_NAMES: string[];
15
+ export const INFO_LOADER: "<div className=\"l-info-content l-shine-container\"> <div className=\"l-shine\"></div><div className=\"l-stats-text\"><div className=\"l-text\"><span className=\"w-40\"></span><span className=\"w-20\"></span></div><div className=\"l-text-h\"><span className=\"w-30\"></span><span className=\"w-60\"></span><span className=\"w-40\"></span></div></div></div >";
@@ -1,32 +1,32 @@
1
- import { SVG_CHECK_ACTIVE, SVG_CHECK_INACTIVE, SVG_CHECK_NEUTRAL } from '../assets/Asset';
2
- // Constant svg of checkbox
3
- export var CHECKBOX = {
4
- ALL: (SVG_CHECK_ACTIVE),
5
- FEW: (SVG_CHECK_NEUTRAL),
6
- NONE: (SVG_CHECK_INACTIVE)
7
- };
8
- // Constant list of months
9
- export var MONTH_LIST = [
10
- { label: "Jan", value: "January" },
11
- { label: "Feb", value: "February" },
12
- { label: "Mar", value: "March" },
13
- { label: "Apr", value: "April" },
14
- { label: "May", value: "May" },
15
- { label: "Jun", value: "June" },
16
- { label: "Jul", value: "July" },
17
- { label: "Aug", value: "August" },
18
- { label: "Sep", value: "September" },
19
- { label: "Oct", value: "October" },
20
- { label: "Nov", value: "November" },
21
- { label: "Dec", value: "December" },
22
- ];
23
- // Default per-page-options
24
- export var PAGE_OPTION = [
25
- { value: '10', label: '10' },
26
- { value: '20', label: '20' },
27
- { value: '30', label: '30' },
28
- { value: '40', label: '40' },
29
- { value: '50', label: '50' }
30
- ];
31
- export var MONTH_NAMES = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
32
- export var INFO_LOADER = '<div className="l-info-content l-shine-container"> <div className="l-shine"></div><div className="l-stats-text"><div className="l-text"><span className="w-40"></span><span className="w-20"></span></div><div className="l-text-h"><span className="w-30"></span><span className="w-60"></span><span className="w-40"></span></div></div></div >';
1
+ import { SVG_CHECK_ACTIVE, SVG_CHECK_INACTIVE, SVG_CHECK_NEUTRAL } from '../assets/Asset';
2
+ // Constant svg of checkbox
3
+ export var CHECKBOX = {
4
+ ALL: (SVG_CHECK_ACTIVE),
5
+ FEW: (SVG_CHECK_NEUTRAL),
6
+ NONE: (SVG_CHECK_INACTIVE)
7
+ };
8
+ // Constant list of months
9
+ export var MONTH_LIST = [
10
+ { label: "Jan", value: "January" },
11
+ { label: "Feb", value: "February" },
12
+ { label: "Mar", value: "March" },
13
+ { label: "Apr", value: "April" },
14
+ { label: "May", value: "May" },
15
+ { label: "Jun", value: "June" },
16
+ { label: "Jul", value: "July" },
17
+ { label: "Aug", value: "August" },
18
+ { label: "Sep", value: "September" },
19
+ { label: "Oct", value: "October" },
20
+ { label: "Nov", value: "November" },
21
+ { label: "Dec", value: "December" },
22
+ ];
23
+ // Default per-page-options
24
+ export var PAGE_OPTION = [
25
+ { value: '10', label: '10' },
26
+ { value: '20', label: '20' },
27
+ { value: '30', label: '30' },
28
+ { value: '40', label: '40' },
29
+ { value: '50', label: '50' }
30
+ ];
31
+ export var MONTH_NAMES = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
32
+ export var INFO_LOADER = '<div className="l-info-content l-shine-container"> <div className="l-shine"></div><div className="l-stats-text"><div className="l-text"><span className="w-40"></span><span className="w-20"></span></div><div className="l-text-h"><span className="w-30"></span><span className="w-60"></span><span className="w-40"></span></div></div></div >';
@@ -1,3 +1,3 @@
1
- import MenuBar from "./MenuBar";
2
- import Modal from "./Modal";
3
- export { MenuBar, Modal };
1
+ import MenuBar from "./MenuBar";
2
+ import Modal from "./Modal";
3
+ export { MenuBar, Modal };
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import MenuBar from "./MenuBar";
2
- import Modal from "./Modal";
3
- export { MenuBar, Modal };
1
+ import MenuBar from "./MenuBar";
2
+ import Modal from "./Modal";
3
+ export { MenuBar, Modal };
@@ -1,25 +1,25 @@
1
- import React from "react";
2
- import '../../scss/style.scss';
3
- interface IProps {
4
- config: {
5
- id: string | keyof Object;
6
- type: string;
7
- value: string | number;
8
- placeholder?: string;
9
- label?: string;
10
- maxLength?: number;
11
- readOnly?: boolean;
12
- disabled?: boolean;
13
- };
14
- allowedChar?: {
15
- alphabet?: boolean;
16
- numeric?: boolean;
17
- space?: boolean;
18
- allowedSymbols?: Array<string>;
19
- };
20
- customClass?: string;
21
- onChanged?: (event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLDivElement, MouseEvent>, data?: string) => void;
22
- keyPressed?: (event: React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
23
- }
24
- declare const Input: React.FC<IProps>;
25
- export default Input;
1
+ import React from "react";
2
+ import '../../scss/style.scss';
3
+ interface IProps {
4
+ config: {
5
+ id: string | keyof Object;
6
+ type: string;
7
+ value: string | number;
8
+ placeholder?: string;
9
+ label?: string;
10
+ maxLength?: number;
11
+ readOnly?: boolean;
12
+ disabled?: boolean;
13
+ };
14
+ allowedChar?: {
15
+ alphabet?: boolean;
16
+ numeric?: boolean;
17
+ space?: boolean;
18
+ allowedSymbols?: Array<string>;
19
+ };
20
+ customClass?: string;
21
+ onChanged?: (event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLDivElement, MouseEvent>, data?: string) => void;
22
+ keyPressed?: (event: React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
23
+ }
24
+ declare const Input: React.FC<IProps>;
25
+ export default Input;