react-asc 25.14.1 → 25.15.1
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/index.d.ts +37 -35
- package/index.es.js +87 -94
- package/index.js +86 -93
- package/lib/components/Alert/Alert.d.ts +3 -3
- package/lib/components/AppBar/AppBar.d.ts +3 -3
- package/lib/components/Badge/Badge.d.ts +2 -2
- package/lib/components/Button/Button.d.ts +2 -2
- package/lib/components/Button/ButtonContext.d.ts +2 -2
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/lib/components/Chip/Chip.d.ts +2 -2
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/components/Grid/Column/Column.d.ts +2 -5
- package/lib/components/Grid/Column/column.types.d.ts +1 -0
- package/lib/components/Grid/Column/index.d.ts +1 -0
- package/lib/components/Icon/Icon.d.ts +2 -2
- package/lib/components/IconButton/IconButton.d.ts +2 -2
- package/lib/components/List/ListItem.d.ts +2 -2
- package/lib/components/Modal/GlobalModal.d.ts +2 -2
- package/lib/components/Modal/Modal.d.ts +1 -1
- package/lib/components/Modal/modal.interfaces.d.ts +2 -2
- package/lib/components/Modal/modal.service.d.ts +2 -2
- package/lib/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/lib/components/Snackbar/Snackbar.d.ts +2 -2
- package/lib/components/Snackbar/snackbar.service.d.ts +2 -2
- package/lib/components/SpeedDial/SpeedDialAction.d.ts +2 -2
- package/lib/components/Stepper/Dot/Dot.d.ts +2 -2
- package/lib/components/Tabs/TabIndicator.d.ts +2 -2
- package/lib/components/Tabs/Tabs.d.ts +3 -3
- package/lib/components/index.d.ts +1 -2
- package/lib/enums/color.enum.d.ts +9 -0
- package/lib/enums/index.d.ts +5 -0
- package/lib/enums/position.enum.d.ts +4 -0
- package/lib/enums/size.enum.d.ts +5 -0
- package/lib/enums/status.enum.d.ts +4 -0
- package/lib/enums/variant.enum.d.ts +5 -0
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
- package/react-asc.scss +6 -5
- package/lib/components/component.enums.d.ts +0 -27
package/index.js
CHANGED
|
@@ -7,39 +7,43 @@ var core = require('@popperjs/core');
|
|
|
7
7
|
var saveAs = require('file-saver');
|
|
8
8
|
var papaparse = require('papaparse');
|
|
9
9
|
|
|
10
|
-
exports.
|
|
11
|
-
(function (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})(exports.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(exports.
|
|
10
|
+
exports.Color = void 0;
|
|
11
|
+
(function (Color) {
|
|
12
|
+
Color["primary"] = "primary";
|
|
13
|
+
Color["accent"] = "accent";
|
|
14
|
+
Color["secondary"] = "secondary";
|
|
15
|
+
Color["success"] = "success";
|
|
16
|
+
Color["error"] = "error";
|
|
17
|
+
Color["light"] = "light";
|
|
18
|
+
Color["dark"] = "dark";
|
|
19
|
+
})(exports.Color || (exports.Color = {}));
|
|
20
|
+
|
|
21
|
+
exports.POSITION = void 0;
|
|
22
|
+
(function (POSITION) {
|
|
23
|
+
POSITION["right"] = "right";
|
|
24
|
+
POSITION["left"] = "left";
|
|
25
|
+
})(exports.POSITION || (exports.POSITION = {}));
|
|
26
|
+
|
|
26
27
|
exports.SIZE = void 0;
|
|
27
28
|
(function (SIZE) {
|
|
28
29
|
SIZE["sm"] = "sm";
|
|
29
30
|
SIZE["md"] = "md";
|
|
30
31
|
SIZE["lg"] = "lg";
|
|
31
32
|
})(exports.SIZE || (exports.SIZE = {}));
|
|
32
|
-
|
|
33
|
-
(function (POSITION) {
|
|
34
|
-
POSITION["right"] = "right";
|
|
35
|
-
POSITION["left"] = "left";
|
|
36
|
-
})(exports.POSITION || (exports.POSITION = {}));
|
|
33
|
+
|
|
37
34
|
exports.STATUS = void 0;
|
|
38
35
|
(function (STATUS) {
|
|
39
36
|
STATUS["HOVERED"] = "hovered";
|
|
40
37
|
STATUS["NORMAL"] = "normal";
|
|
41
38
|
})(exports.STATUS || (exports.STATUS = {}));
|
|
42
39
|
|
|
40
|
+
exports.VARIANT = void 0;
|
|
41
|
+
(function (VARIANT) {
|
|
42
|
+
VARIANT["contained"] = "contained";
|
|
43
|
+
VARIANT["outline"] = "outline";
|
|
44
|
+
VARIANT["text"] = "text";
|
|
45
|
+
})(exports.VARIANT || (exports.VARIANT = {}));
|
|
46
|
+
|
|
43
47
|
function styleInject(css, ref) {
|
|
44
48
|
if ( ref === void 0 ) ref = {};
|
|
45
49
|
var insertAt = ref.insertAt;
|
|
@@ -72,7 +76,7 @@ var styles$16 = {"alert":"Alert-module_alert__b4tbk","shadow":"Alert-module_shad
|
|
|
72
76
|
styleInject(css_248z$16);
|
|
73
77
|
|
|
74
78
|
const Alert = (props) => {
|
|
75
|
-
const { children, className, color = exports.
|
|
79
|
+
const { children, className, color = exports.Color.secondary, variant = exports.VARIANT.contained, shadow = true, ...rest } = props;
|
|
76
80
|
const getCssClasses = () => {
|
|
77
81
|
const cssClasses = [];
|
|
78
82
|
cssClasses.push(styles$16.alert);
|
|
@@ -96,7 +100,7 @@ var styles$15 = {"appbar":"AppBar-module_appbar__Neyh3","primary":"AppBar-module
|
|
|
96
100
|
styleInject(css_248z$15);
|
|
97
101
|
|
|
98
102
|
const AppBar = (props) => {
|
|
99
|
-
const { children, className, color = exports.
|
|
103
|
+
const { children, className, color = exports.Color.primary, shadow = true, ...rest } = props;
|
|
100
104
|
const getCssClasses = () => {
|
|
101
105
|
const cssClasses = [];
|
|
102
106
|
cssClasses.push(styles$15[color]);
|
|
@@ -376,7 +380,7 @@ var styles$10 = {"iconButton":"IconButton-module_iconButton__rpCPQ","shadow":"Ic
|
|
|
376
380
|
styleInject(css_248z$10);
|
|
377
381
|
|
|
378
382
|
const IconButton = (props) => {
|
|
379
|
-
const { children, icon, variant = exports.VARIANT.text, color = exports.
|
|
383
|
+
const { children, icon, variant = exports.VARIANT.text, color = exports.Color.dark, size = exports.SIZE.md, isActive, disabled, loading, className, shadow, ...rest } = props;
|
|
380
384
|
const [isDisabled, setIsDisabled] = React.useState(false);
|
|
381
385
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
382
386
|
React.useEffect(() => {
|
|
@@ -591,7 +595,7 @@ var styles$U = {"badgeContainer":"Badge-module_badgeContainer__3nZBs","badge":"B
|
|
|
591
595
|
styleInject(css_248z$U);
|
|
592
596
|
|
|
593
597
|
const Badge = (props) => {
|
|
594
|
-
const { children, content, className, color = exports.
|
|
598
|
+
const { children, content, className, color = exports.Color.secondary, ...rest } = props;
|
|
595
599
|
const [cssClassName] = useCssClasses([styles$U.badge, styles$U[color], className]);
|
|
596
600
|
return (jsxRuntime.jsxs(BadgeContainer, { children: [children, jsxRuntime.jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
597
601
|
};
|
|
@@ -642,12 +646,12 @@ var styles$R = {"button":"Button-module_button__qeIer","shadow":"Button-module_s
|
|
|
642
646
|
styleInject(css_248z$R);
|
|
643
647
|
|
|
644
648
|
const ButtonContext = React.createContext({
|
|
645
|
-
color: null
|
|
649
|
+
color: null,
|
|
646
650
|
});
|
|
647
651
|
const useButtonContext = () => React.useContext(ButtonContext);
|
|
648
652
|
|
|
649
653
|
const Button = props => {
|
|
650
|
-
const { children, variant = exports.VARIANT.contained, color = exports.
|
|
654
|
+
const { children, variant = exports.VARIANT.contained, color = exports.Color.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true, block, loading, disabled, ...rest } = props;
|
|
651
655
|
const [isDisabled, setIsDisabled] = React.useState(false);
|
|
652
656
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
653
657
|
React.useEffect(() => {
|
|
@@ -695,7 +699,7 @@ const Button = props => {
|
|
|
695
699
|
className && cssClasses.push(className);
|
|
696
700
|
return cssClasses.filter(css => css).join(' ');
|
|
697
701
|
};
|
|
698
|
-
return (jsxRuntime.jsx("button", { type: "button", className: getCssClasses(), disabled: isDisabled, ...rest, children: jsxRuntime.jsxs("span", { className: "d-flex justify-content-center", children: [isLoading && (jsxRuntime.jsx("div", { className: "mr-1", children: jsxRuntime.jsx(LoadingIndicatorContainer, { children: jsxRuntime.jsx(LoadingIndicator, {}) }) })), startIcon && jsxRuntime.jsx(Icon, { className: styles$R.startIcon, children: startIcon }), children, endIcon && jsxRuntime.jsx(Icon, { className: styles$R.endIcon, children: endIcon })] }) }));
|
|
702
|
+
return (jsxRuntime.jsx("button", { type: "button", className: getCssClasses(), disabled: isDisabled, ...rest, children: jsxRuntime.jsxs("span", { className: "d-flex justify-content-center align-items-center", children: [isLoading && (jsxRuntime.jsx("div", { className: "mr-1", children: jsxRuntime.jsx(LoadingIndicatorContainer, { children: jsxRuntime.jsx(LoadingIndicator, {}) }) })), startIcon && jsxRuntime.jsx(Icon, { className: styles$R.startIcon, children: startIcon }), children, endIcon && jsxRuntime.jsx(Icon, { className: styles$R.endIcon, children: endIcon })] }) }));
|
|
699
703
|
};
|
|
700
704
|
|
|
701
705
|
var css_248z$Q = ".ButtonGroup-module_buttonGroup__w6iB- {\n display: inline-flex;\n border-radius: 4px;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-of-type) {\n border-right: 1px solid #bdbdbd;\n}";
|
|
@@ -710,7 +714,7 @@ const ButtonGroup = (props) => {
|
|
|
710
714
|
className && cssClasses.push(className);
|
|
711
715
|
return cssClasses.filter(css => css).join(' ');
|
|
712
716
|
};
|
|
713
|
-
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.
|
|
717
|
+
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.Color.primary }, children: jsxRuntime.jsx("div", { className: getCssClasses(), role: "group", ...rest, children: children }) }));
|
|
714
718
|
};
|
|
715
719
|
|
|
716
720
|
var css_248z$P = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
|
|
@@ -5257,7 +5261,7 @@ const Select = (props) => {
|
|
|
5257
5261
|
const renderMultipleViewModel = () => {
|
|
5258
5262
|
let result = null;
|
|
5259
5263
|
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
5260
|
-
result = selectedOptions.map(option => (jsxRuntime.jsx(Chip, { color: exports.
|
|
5264
|
+
result = selectedOptions.map(option => (jsxRuntime.jsx(Chip, { color: exports.Color.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option), children: option.label }, option.value)));
|
|
5261
5265
|
}
|
|
5262
5266
|
else {
|
|
5263
5267
|
result = jsxRuntime.jsxs("span", { children: [selectedOptions.length, " Items selected"] });
|
|
@@ -5593,22 +5597,23 @@ class FormControl {
|
|
|
5593
5597
|
}
|
|
5594
5598
|
}
|
|
5595
5599
|
|
|
5596
|
-
var css_248z$z = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n
|
|
5597
|
-
var styles$z = {"column":"Column-module_column__fcTgl"};
|
|
5600
|
+
var css_248z$z = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n.Column-module_column-10__4935j {\n flex: 0 0 10%;\n}\n\n.Column-module_column-20__cRb6d {\n flex: 0 0 20%;\n}\n\n.Column-module_column-30__LqTq8 {\n flex: 0 0 30%;\n}\n\n.Column-module_column-40__l9TqX {\n flex: 0 0 40%;\n}\n\n.Column-module_column-50__d4Dxd {\n flex: 0 0 50%;\n}\n\n.Column-module_column-60__dUUhT {\n flex: 0 0 60%;\n}\n\n.Column-module_column-70__7xevU {\n flex: 0 0 70%;\n}\n\n.Column-module_column-80__3mfFZ {\n flex: 0 0 80%;\n}\n\n.Column-module_column-90__wntvM {\n flex: 0 0 90%;\n}\n\n.Column-module_column-100__rh1-C {\n flex: 0 0 100%;\n}";
|
|
5601
|
+
var styles$z = {"column":"Column-module_column__fcTgl","column-10":"Column-module_column-10__4935j","column-20":"Column-module_column-20__cRb6d","column-30":"Column-module_column-30__LqTq8","column-40":"Column-module_column-40__l9TqX","column-50":"Column-module_column-50__d4Dxd","column-60":"Column-module_column-60__dUUhT","column-70":"Column-module_column-70__7xevU","column-80":"Column-module_column-80__3mfFZ","column-90":"Column-module_column-90__wntvM","column-100":"Column-module_column-100__rh1-C"};
|
|
5598
5602
|
styleInject(css_248z$z);
|
|
5599
5603
|
|
|
5600
5604
|
const Column = (props) => {
|
|
5601
|
-
const { children, className, ...rest } = props;
|
|
5605
|
+
const { children, className, size, ...rest } = props;
|
|
5602
5606
|
const getCssClasses = () => {
|
|
5603
5607
|
const cssClasses = [];
|
|
5604
5608
|
cssClasses.push(styles$z.column);
|
|
5609
|
+
size && cssClasses.push(styles$z[`column-${size}`]);
|
|
5605
5610
|
className && cssClasses.push(className);
|
|
5606
5611
|
return cssClasses.filter(css => css).join(' ');
|
|
5607
5612
|
};
|
|
5608
5613
|
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5609
5614
|
};
|
|
5610
5615
|
|
|
5611
|
-
var css_248z$y = ".Row-module_row__bTIWp {\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n}\n.Row-module_row__bTIWp > * {\n flex-shrink: 0;\n
|
|
5616
|
+
var css_248z$y = ".Row-module_row__bTIWp {\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n}\n.Row-module_row__bTIWp > * {\n flex-shrink: 0;\n min-width: 0;\n max-width: 100%;\n}";
|
|
5612
5617
|
var styles$y = {"row":"Row-module_row__bTIWp"};
|
|
5613
5618
|
styleInject(css_248z$y);
|
|
5614
5619
|
|
|
@@ -5809,7 +5814,7 @@ var styles$t = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"Floating
|
|
|
5809
5814
|
styleInject(css_248z$t);
|
|
5810
5815
|
|
|
5811
5816
|
const FloatingActionButton = (props) => {
|
|
5812
|
-
const { className, icon, color = exports.
|
|
5817
|
+
const { className, icon, color = exports.Color.primary, fixed, position = 'rightBottom', size = exports.SIZE.lg, isActive, disabled, onClick } = props;
|
|
5813
5818
|
const getCssClasses = () => {
|
|
5814
5819
|
const cssClasses = [];
|
|
5815
5820
|
cssClasses.push(styles$t.fab);
|
|
@@ -5933,26 +5938,10 @@ styleInject(css_248z$q);
|
|
|
5933
5938
|
|
|
5934
5939
|
const MenuDivider = () => jsxRuntime.jsx("div", { className: styles$q.menuItemDivider });
|
|
5935
5940
|
|
|
5936
|
-
var css_248z$p = ".
|
|
5937
|
-
var styles$p = {"
|
|
5941
|
+
var css_248z$p = ".Modal-module_modal__HMxWV {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n z-index: 1111 !important;\n border-radius: var(--borderRadius);\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_sm__CsR6U {\n max-width: 300px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_md__lNggx {\n max-width: 500px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_lg__6dtT2 {\n max-width: 1140px;\n}\n@media (min-width: 576px) {\n .Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf {\n max-width: 600px;\n }\n}\n\n.Modal-module_modalDialog__fNqyK {\n position: relative;\n width: auto;\n pointer-events: none;\n}\n\n.Modal-module_modalDialogCentered__sa2wv {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.Modal-module_modalContent__9wAwB {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n pointer-events: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);\n outline: 0;\n margin: 1rem;\n max-height: 600px;\n}\n@media (min-width: 576px) {\n .Modal-module_modalContent__9wAwB {\n max-width: 500px;\n margin: auto;\n }\n}\n\n.Modal-module_fullscreen__iepGa {\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n margin: 0;\n padding: 0;\n}\n.Modal-module_fullscreen__iepGa .Modal-module_modalContent__9wAwB {\n margin: 0;\n height: auto;\n min-height: 100%;\n max-height: 100%;\n border-radius: 0;\n overflow: auto;\n max-width: 100%;\n}\n@media (min-width: 320px) {\n .Modal-module_fullscreen__iepGa {\n max-width: 100% !important;\n }\n}";
|
|
5942
|
+
var styles$p = {"modal":"Modal-module_modal__HMxWV","modal-dialog":"Modal-module_modal-dialog__U2wGf","sm":"Modal-module_sm__CsR6U","md":"Modal-module_md__lNggx","lg":"Modal-module_lg__6dtT2","modalDialog":"Modal-module_modalDialog__fNqyK","modalDialogCentered":"Modal-module_modalDialogCentered__sa2wv","modalContent":"Modal-module_modalContent__9wAwB","fullscreen":"Modal-module_fullscreen__iepGa"};
|
|
5938
5943
|
styleInject(css_248z$p);
|
|
5939
5944
|
|
|
5940
|
-
const ModalHeader = (props) => {
|
|
5941
|
-
const { children, shadow, className, isDismissable = false, onClose, ...rest } = props;
|
|
5942
|
-
const getCssClasses = () => {
|
|
5943
|
-
const cssClasses = [];
|
|
5944
|
-
cssClasses.push(styles$p.modalHeader);
|
|
5945
|
-
shadow && cssClasses.push(styles$p.shadow);
|
|
5946
|
-
className && cssClasses.push(className);
|
|
5947
|
-
return cssClasses.filter(css => css).join(' ');
|
|
5948
|
-
};
|
|
5949
|
-
const handleClick = () => {
|
|
5950
|
-
onClose && onClose();
|
|
5951
|
-
};
|
|
5952
|
-
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("h5", { className: styles$p.modalTitle, children: children }), isDismissable &&
|
|
5953
|
-
jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), variant: exports.VARIANT.text, onClick: handleClick })] }));
|
|
5954
|
-
};
|
|
5955
|
-
|
|
5956
5945
|
var css_248z$o = ".ModalBody-module_modalBody__D-gk2 {\n position: relative;\n flex: 1 1 auto;\n padding: 0 1rem 1rem 1rem;\n overflow-y: auto;\n}";
|
|
5957
5946
|
var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
|
|
5958
5947
|
styleInject(css_248z$o);
|
|
@@ -5975,18 +5964,33 @@ const ModalFooter = (props) => {
|
|
|
5975
5964
|
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5976
5965
|
};
|
|
5977
5966
|
|
|
5978
|
-
var css_248z$m = ".
|
|
5979
|
-
var styles$m = {"
|
|
5967
|
+
var css_248z$m = ".ModalHeader-module_modalHeader__tw-u- {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: space-between;\n padding: 1rem;\n border-top-left-radius: calc(0.3rem - 1px);\n border-top-right-radius: calc(0.3rem - 1px);\n border-bottom: none;\n align-items: center;\n}\n.ModalHeader-module_modalHeader__tw-u-.ModalHeader-module_shadow__qELWb {\n box-shadow: var(--shadow);\n}\n\n.ModalHeader-module_modalTitle__2xShH {\n margin-bottom: 0;\n line-height: 1.5;\n}";
|
|
5968
|
+
var styles$m = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-","shadow":"ModalHeader-module_shadow__qELWb","modalTitle":"ModalHeader-module_modalTitle__2xShH"};
|
|
5980
5969
|
styleInject(css_248z$m);
|
|
5981
5970
|
|
|
5971
|
+
const ModalHeader = (props) => {
|
|
5972
|
+
const { children, shadow, className, isDismissable = false, onClose, ...rest } = props;
|
|
5973
|
+
const getCssClasses = () => {
|
|
5974
|
+
const cssClasses = [];
|
|
5975
|
+
cssClasses.push(styles$m.modalHeader);
|
|
5976
|
+
shadow && cssClasses.push(styles$m.shadow);
|
|
5977
|
+
className && cssClasses.push(className);
|
|
5978
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5979
|
+
};
|
|
5980
|
+
const handleClick = () => {
|
|
5981
|
+
onClose && onClose();
|
|
5982
|
+
};
|
|
5983
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("h5", { className: styles$m.modalTitle, children: children }), isDismissable && jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), variant: exports.VARIANT.text, onClick: handleClick })] }));
|
|
5984
|
+
};
|
|
5985
|
+
|
|
5982
5986
|
const Modal = (props) => {
|
|
5983
|
-
const { target = document.body, className, size, fullScreen, children, header, footer, onHeaderCloseClick, onBackdropClick, isDismissable = false } = props;
|
|
5987
|
+
const { target = document.body, className, size, fullScreen, children, header, footer, onHeaderCloseClick, onBackdropClick, isDismissable = false, } = props;
|
|
5984
5988
|
const getCssClass = () => {
|
|
5985
5989
|
const cssClasses = [];
|
|
5986
|
-
cssClasses.push(styles$
|
|
5987
|
-
cssClasses.push(styles$
|
|
5988
|
-
size && cssClasses.push(styles$
|
|
5989
|
-
fullScreen && cssClasses.push(styles$
|
|
5990
|
+
cssClasses.push(styles$p.modalDialog);
|
|
5991
|
+
cssClasses.push(styles$p.modalDialogCentered);
|
|
5992
|
+
size && cssClasses.push(styles$p[size]);
|
|
5993
|
+
fullScreen && cssClasses.push(styles$p.fullscreen);
|
|
5990
5994
|
className && cssClasses.push(className);
|
|
5991
5995
|
return cssClasses.filter(r => r).join(' ');
|
|
5992
5996
|
};
|
|
@@ -5999,9 +6003,7 @@ const Modal = (props) => {
|
|
|
5999
6003
|
const handleClickBackdrop = () => {
|
|
6000
6004
|
onBackdropClick && onBackdropClick();
|
|
6001
6005
|
};
|
|
6002
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Portal$1, { className:
|
|
6003
|
-
jsxRuntime.jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header }), jsxRuntime.jsx(ModalBody, { children: children }), footer &&
|
|
6004
|
-
jsxRuntime.jsx(ModalFooter, { children: footer })] }) }) }) }), jsxRuntime.jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6006
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Portal$1, { className: "modal-root", target: target, children: jsxRuntime.jsx("div", { className: styles$p.modal, children: jsxRuntime.jsx("div", { className: getCssClass(), children: jsxRuntime.jsxs("div", { className: styles$p.modalContent, children: [header && (jsxRuntime.jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header })), jsxRuntime.jsx(ModalBody, { children: children }), footer && jsxRuntime.jsx(ModalFooter, { children: footer })] }) }) }) }), jsxRuntime.jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6005
6007
|
};
|
|
6006
6008
|
|
|
6007
6009
|
exports.MODALTYPE = void 0;
|
|
@@ -6018,9 +6020,9 @@ exports.MODALBUTTONTYPE = void 0;
|
|
|
6018
6020
|
})(exports.MODALBUTTONTYPE || (exports.MODALBUTTONTYPE = {}));
|
|
6019
6021
|
|
|
6020
6022
|
const GlobalModal = ({ title, description, formControls, onOk, onChange, onCancel, onBackdropClick, isDismissable = false, buttons = [
|
|
6021
|
-
{ label: 'Cancel', type: exports.MODALBUTTONTYPE.CANCEL, color: exports.
|
|
6023
|
+
{ label: 'Cancel', type: exports.MODALBUTTONTYPE.CANCEL, color: exports.Color.secondary, variant: exports.VARIANT.text, shadow: false },
|
|
6022
6024
|
{ label: 'Ok', type: exports.MODALBUTTONTYPE.OK, variant: exports.VARIANT.contained, focus: true },
|
|
6023
|
-
], size = exports.SIZE.md, fullScreen = false }) => {
|
|
6025
|
+
], size = exports.SIZE.md, fullScreen = false, }) => {
|
|
6024
6026
|
// workaround for getDerivedStateFromProps
|
|
6025
6027
|
const [myControls, setMyControls] = React.useState(null);
|
|
6026
6028
|
React.useEffect(() => {
|
|
@@ -6057,8 +6059,7 @@ const GlobalModal = ({ title, description, formControls, onOk, onChange, onCance
|
|
|
6057
6059
|
}
|
|
6058
6060
|
button.handler && button.handler();
|
|
6059
6061
|
};
|
|
6060
|
-
return (jsxRuntime.jsxs(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: jsxRuntime.jsx(jsxRuntime.Fragment, { children: buttons.map((button, index) => (jsxRuntime.jsx(Button, { variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button), children: button.label }, index))) }), children: [description && jsxRuntime.jsx("div", { children: description }), modalType === exports.MODALTYPE.FORM &&
|
|
6061
|
-
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) })] }));
|
|
6062
|
+
return (jsxRuntime.jsxs(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: jsxRuntime.jsx(jsxRuntime.Fragment, { children: buttons.map((button, index) => (jsxRuntime.jsx(Button, { variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button), children: button.label }, index))) }), children: [description && jsxRuntime.jsx("div", { children: description }), modalType === exports.MODALTYPE.FORM && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) }))] }));
|
|
6062
6063
|
};
|
|
6063
6064
|
|
|
6064
6065
|
class ModalService {
|
|
@@ -6222,7 +6223,7 @@ var styles$k = {"progressBarContainer":"ProgressBar-module_progressBarContainer_
|
|
|
6222
6223
|
styleInject(css_248z$k);
|
|
6223
6224
|
|
|
6224
6225
|
const ProgressBar = (props) => {
|
|
6225
|
-
const { className, color = exports.
|
|
6226
|
+
const { className, color = exports.Color.primary, value, indeterminate, ...rest } = props;
|
|
6226
6227
|
const [model, setModel] = React.useState();
|
|
6227
6228
|
React.useEffect(() => {
|
|
6228
6229
|
document.body.style.setProperty('--progress-bar-bg', `var(--${color})`);
|
|
@@ -6256,7 +6257,7 @@ const ProgressBar = (props) => {
|
|
|
6256
6257
|
}
|
|
6257
6258
|
return `${width}%`;
|
|
6258
6259
|
};
|
|
6259
|
-
return (jsxRuntime.jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx("div", { className: getCssClassesBar(), style: {
|
|
6260
|
+
return (jsxRuntime.jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx("div", { className: getCssClassesBar(), style: { width: getStyle() }, role: "progressbar" }) }) }));
|
|
6260
6261
|
};
|
|
6261
6262
|
|
|
6262
6263
|
class SidebarItemModel {
|
|
@@ -6391,7 +6392,7 @@ var styles$f = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackba
|
|
|
6391
6392
|
styleInject(css_248z$f);
|
|
6392
6393
|
|
|
6393
6394
|
const Snackbar = (props) => {
|
|
6394
|
-
const { children, color = exports.
|
|
6395
|
+
const { children, color = exports.Color.dark, actionText = 'ok', onOk, ...rest } = props;
|
|
6395
6396
|
const getCssClasses = () => {
|
|
6396
6397
|
const cssClasses = [];
|
|
6397
6398
|
cssClasses.push(styles$f.snackbar);
|
|
@@ -6407,9 +6408,9 @@ const Snackbar = (props) => {
|
|
|
6407
6408
|
|
|
6408
6409
|
class SnackbarService {
|
|
6409
6410
|
show(message, options) {
|
|
6410
|
-
const defaultOptions = { timeout: 3000, actionText: 'ok', color: exports.
|
|
6411
|
+
const defaultOptions = { timeout: 3000, actionText: 'ok', color: exports.Color.dark, target: document.body };
|
|
6411
6412
|
const mergedOptions = Object.assign(defaultOptions, options);
|
|
6412
|
-
return new Promise(
|
|
6413
|
+
return new Promise(resolve => {
|
|
6413
6414
|
if (this.container) {
|
|
6414
6415
|
this.hide();
|
|
6415
6416
|
}
|
|
@@ -6483,14 +6484,14 @@ var styles$c = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz
|
|
|
6483
6484
|
styleInject(css_248z$c);
|
|
6484
6485
|
|
|
6485
6486
|
const SpeedDialAction = (props) => {
|
|
6486
|
-
const { icon, color = exports.
|
|
6487
|
+
const { icon, color = exports.Color.light, onClick, className } = props;
|
|
6487
6488
|
const getCssClasses = () => {
|
|
6488
6489
|
const cssClasses = [];
|
|
6489
6490
|
cssClasses.push(styles$c.speedDialAction);
|
|
6490
6491
|
className && cssClasses.push(className);
|
|
6491
6492
|
return cssClasses.filter(css => css).join(' ');
|
|
6492
6493
|
};
|
|
6493
|
-
return
|
|
6494
|
+
return jsxRuntime.jsx(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: exports.VARIANT.contained, shadow: true, onClick: onClick });
|
|
6494
6495
|
};
|
|
6495
6496
|
|
|
6496
6497
|
const SpeedDialIcon = (props) => {
|
|
@@ -6515,10 +6516,7 @@ const StepperActions = (props) => {
|
|
|
6515
6516
|
className && cssClasses.push(className);
|
|
6516
6517
|
return cssClasses.filter(css => css).join(' ');
|
|
6517
6518
|
};
|
|
6518
|
-
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [!isFirstStep &&
|
|
6519
|
-
jsxRuntime.jsx(Button, { className: "mr-2", variant: exports.VARIANT.outline, startIcon: jsxRuntime.jsx(ChevronLeftSolidIcon, {}), onClick: () => onBack && onBack(), children: "Back" }), jsxRuntime.jsxs("div", { className: "ml-auto", children: [isCompleted && showResetButton && (jsxRuntime.jsx(Button, { color: exports.COLOR.secondary, variant: exports.VARIANT.text, onClick: () => onReset && onReset(), children: "Reset" })), isStepOptional && (jsxRuntime.jsx(Button, { variant: exports.VARIANT.contained, color: exports.COLOR.primary, onClick: () => onSkip && onSkip(), children: "Skip" })), !isCompleted &&
|
|
6520
|
-
jsxRuntime.jsx(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, endIcon: jsxRuntime.jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" }), isCompleted && showDoneButton &&
|
|
6521
|
-
jsxRuntime.jsx(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, startIcon: jsxRuntime.jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" })] })] }));
|
|
6519
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [!isFirstStep && (jsxRuntime.jsx(Button, { className: "mr-2", variant: exports.VARIANT.outline, startIcon: jsxRuntime.jsx(ChevronLeftSolidIcon, {}), onClick: () => onBack && onBack(), children: "Back" })), jsxRuntime.jsxs("div", { className: "ml-auto", children: [isCompleted && showResetButton && (jsxRuntime.jsx(Button, { color: exports.Color.secondary, variant: exports.VARIANT.text, onClick: () => onReset && onReset(), children: "Reset" })), isStepOptional && (jsxRuntime.jsx(Button, { variant: exports.VARIANT.contained, color: exports.Color.primary, onClick: () => onSkip && onSkip(), children: "Skip" })), !isCompleted && (jsxRuntime.jsx(Button, { className: "ml-2", variant: exports.VARIANT.contained, color: exports.Color.primary, endIcon: jsxRuntime.jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" })), isCompleted && showDoneButton && (jsxRuntime.jsx(Button, { className: "ml-2", variant: exports.VARIANT.contained, color: exports.Color.primary, startIcon: jsxRuntime.jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" }))] })] }));
|
|
6522
6520
|
};
|
|
6523
6521
|
|
|
6524
6522
|
const StepPanel = (props) => {
|
|
@@ -6556,7 +6554,7 @@ var styles$8 = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V
|
|
|
6556
6554
|
styleInject(css_248z$8);
|
|
6557
6555
|
|
|
6558
6556
|
const Dot = (props) => {
|
|
6559
|
-
const { className, color = exports.
|
|
6557
|
+
const { className, color = exports.Color.primary, isActive, ...rest } = props;
|
|
6560
6558
|
const getCssClasses = () => {
|
|
6561
6559
|
const cssClasses = [];
|
|
6562
6560
|
cssClasses.push(styles$8.dot);
|
|
@@ -6565,7 +6563,7 @@ const Dot = (props) => {
|
|
|
6565
6563
|
className && cssClasses.push(className);
|
|
6566
6564
|
return cssClasses.filter(css => css).join(' ');
|
|
6567
6565
|
};
|
|
6568
|
-
return
|
|
6566
|
+
return jsxRuntime.jsx("div", { className: getCssClasses(), ...rest });
|
|
6569
6567
|
};
|
|
6570
6568
|
|
|
6571
6569
|
const Stepper = (props) => {
|
|
@@ -6715,11 +6713,7 @@ const Step = (props) => {
|
|
|
6715
6713
|
isActive && cssClasses.push(styles$6.stepValue['isActive']);
|
|
6716
6714
|
return cssClasses.filter(css => css).join(' ');
|
|
6717
6715
|
};
|
|
6718
|
-
return (jsxRuntime.jsxs("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick, children: [jsxRuntime.jsxs("div", { className: getCssClassesStep(), children: [jsxRuntime.jsx(Icon, { className: styles$6.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ? exports.
|
|
6719
|
-
jsxRuntime.jsx(Icon, { children: jsxRuntime.jsx(CheckSolidIcon, {}) })
|
|
6720
|
-
:
|
|
6721
|
-
jsxRuntime.jsx(Typography, { children: index + 1 }) })] }), label && showLabel &&
|
|
6722
|
-
jsxRuntime.jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6716
|
+
return (jsxRuntime.jsxs("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick, children: [jsxRuntime.jsxs("div", { className: getCssClassesStep(), children: [jsxRuntime.jsx(Icon, { className: styles$6.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ? exports.Color.primary : exports.Color.secondary, children: jsxRuntime.jsx(CircleSolidIcon, {}) }), jsxRuntime.jsx("div", { className: getCssClassesStepValue(), children: showProgressCheckIcon && isActive && isDone ? (jsxRuntime.jsx(Icon, { children: jsxRuntime.jsx(CheckSolidIcon, {}) })) : (jsxRuntime.jsx(Typography, { children: index + 1 })) })] }), label && showLabel && jsxRuntime.jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6723
6717
|
};
|
|
6724
6718
|
|
|
6725
6719
|
var css_248z$5 = ":root {\n --table-bg: transparent;\n --table-accent-bg: transparent;\n --table-striped-color: #212529;\n --table-striped-bg: rgba(0, 0, 0, 0.05);\n --table-active-color: #212529;\n --table-active-bg: rgba(0, 0, 0, 0.1);\n --table-hover-color: #212529;\n --table-hover-bg: rgba(0, 0, 0, 0.075);\n}\n\n.Table-module_tableResponsive__ykttB {\n overflow-x: auto;\n}\n\n.Table-module_table__DHKNv {\n display: table;\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0px;\n min-width: 650px;\n}\n.Table-module_table__DHKNv thead {\n display: table-header-group;\n}\n.Table-module_table__DHKNv tbody {\n display: table-row-group;\n}\n.Table-module_table__DHKNv tr {\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0px;\n}\n.Table-module_table__DHKNv th {\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n text-align: left;\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n border-collapse: collapse;\n border-spacing: 0px;\n}\n.Table-module_table__DHKNv td {\n font-size: 0.875rem;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n flex-direction: row-reverse;\n}\n\n.Table-module_hover__P6r3y > tbody > tr:hover > * {\n background-color: var(--table-hover-bg);\n color: var(--table-hover-color);\n}";
|
|
@@ -6775,7 +6769,7 @@ var styles$4 = {"tabIndicator":"TabIndicator-module_tabIndicator__jSJhH","primar
|
|
|
6775
6769
|
styleInject(css_248z$4);
|
|
6776
6770
|
|
|
6777
6771
|
const TabIndicator = (props) => {
|
|
6778
|
-
const { color = exports.
|
|
6772
|
+
const { color = exports.Color.primary, width, amount, index } = props;
|
|
6779
6773
|
const getCssClasses = () => {
|
|
6780
6774
|
const cssClasses = [];
|
|
6781
6775
|
cssClasses.push(styles$4.tabIndicator);
|
|
@@ -6784,7 +6778,7 @@ const TabIndicator = (props) => {
|
|
|
6784
6778
|
};
|
|
6785
6779
|
return (jsxRuntime.jsx("span", { className: getCssClasses(), style: {
|
|
6786
6780
|
width: width,
|
|
6787
|
-
left: `calc(calc(100% / ${amount}) * ${index})
|
|
6781
|
+
left: `calc(calc(100% / ${amount}) * ${index})`,
|
|
6788
6782
|
} }));
|
|
6789
6783
|
};
|
|
6790
6784
|
|
|
@@ -6793,14 +6787,14 @@ var styles$3 = {"tabs":"Tabs-module_tabs__YyRTZ"};
|
|
|
6793
6787
|
styleInject(css_248z$3);
|
|
6794
6788
|
|
|
6795
6789
|
const Tabs = (props) => {
|
|
6796
|
-
const { children, className, fixed = false, color, indicatorColor = exports.
|
|
6790
|
+
const { children, className, fixed = false, color, indicatorColor = exports.Color.accent, value, onChange } = props;
|
|
6797
6791
|
const [selectedValue, setSelectedValue] = React.useState('');
|
|
6798
6792
|
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
|
6799
|
-
const tabContext =
|
|
6793
|
+
const tabContext = {
|
|
6800
6794
|
selectedValue: selectedValue,
|
|
6801
6795
|
setSelectedValue: setSelectedValue,
|
|
6802
|
-
fixed: fixed
|
|
6803
|
-
}
|
|
6796
|
+
fixed: fixed,
|
|
6797
|
+
};
|
|
6804
6798
|
const prevSelectedValueRef = React.useRef();
|
|
6805
6799
|
React.useEffect(() => {
|
|
6806
6800
|
if (value !== undefined && value !== prevSelectedValueRef.current) {
|
|
@@ -6824,8 +6818,7 @@ const Tabs = (props) => {
|
|
|
6824
6818
|
className && cssClasses.push(className);
|
|
6825
6819
|
return cssClasses.filter(css => css).join(' ');
|
|
6826
6820
|
};
|
|
6827
|
-
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.
|
|
6828
|
-
jsxRuntime.jsx(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length })] }) }) }));
|
|
6821
|
+
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.Color.light }, children: jsxRuntime.jsx(TabContext.Provider, { value: tabContext, children: jsxRuntime.jsxs("div", { className: getCssClasses(), children: [children, children && (jsxRuntime.jsx(TabIndicator, { color: indicatorColor, width: 100 / React.Children.toArray(children).length + '%', index: selectedIndex, amount: React.Children.toArray(children).length }))] }) }) }));
|
|
6829
6822
|
};
|
|
6830
6823
|
|
|
6831
6824
|
var css_248z$2 = ".Tab-module_tab__Q8w1f {\n padding: 6px 12px;\n overflow: hidden;\n position: relative;\n font-size: 0.875rem;\n min-width: 72px;\n box-sizing: border-box;\n min-height: 48px;\n text-align: center;\n font-weight: 500;\n line-height: 1.75;\n white-space: normal;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n border-radius: 0;\n flex-grow: 1;\n flex-basis: 0;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { SIZE } from '
|
|
4
|
-
import {
|
|
3
|
+
import type { SIZE } from '../../enums';
|
|
4
|
+
import { Color, VARIANT } from '../../enums';
|
|
5
5
|
export interface IAlertProps extends React.ComponentProps<'div'> {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
variant?: VARIANT;
|
|
9
|
-
color?:
|
|
9
|
+
color?: Color;
|
|
10
10
|
shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
|
|
11
11
|
}
|
|
12
12
|
export declare const Alert: (props: IAlertProps) => JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { SIZE } from '
|
|
4
|
-
import {
|
|
3
|
+
import type { SIZE } from '../../enums';
|
|
4
|
+
import { Color } from '../../enums';
|
|
5
5
|
export interface IAppBarProps extends React.ComponentProps<'nav'> {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
|
-
color?:
|
|
8
|
+
color?: Color;
|
|
9
9
|
shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
|
|
10
10
|
}
|
|
11
11
|
export declare const AppBar: (props: IAppBarProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color, VARIANT } from '../../enums';
|
|
3
3
|
export interface IButtonProps extends React.ComponentProps<'button'> {
|
|
4
|
-
color?:
|
|
4
|
+
color?: Color;
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
isRounded?: boolean;
|
|
7
7
|
variant?: VARIANT;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { Color } from '../../enums';
|
|
3
3
|
export interface IButtonContext {
|
|
4
|
-
color:
|
|
4
|
+
color: Color | null;
|
|
5
5
|
}
|
|
6
6
|
export declare const ButtonContext: React.Context<IButtonContext>;
|
|
7
7
|
export declare const useButtonContext: () => IButtonContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '../../enums';
|
|
3
3
|
export interface IButtonGroupProps extends React.ComponentProps<'div'> {
|
|
4
|
-
color?:
|
|
4
|
+
color?: Color;
|
|
5
5
|
}
|
|
6
6
|
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Color } from '../../enums';
|
|
3
3
|
export interface IChipProps extends React.ComponentProps<'div'> {
|
|
4
|
-
color?:
|
|
4
|
+
color?: Color;
|
|
5
5
|
shadow?: boolean;
|
|
6
6
|
onClick?: (e: React.MouseEvent<Element>) => void;
|
|
7
7
|
isDeletable?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color, SIZE } from '../../enums';
|
|
3
3
|
export interface IFloatingActionButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
4
4
|
icon?: React.ReactNode;
|
|
5
|
-
color?:
|
|
5
|
+
color?: Color;
|
|
6
6
|
size?: SIZE;
|
|
7
7
|
fixed?: boolean;
|
|
8
8
|
isActive?: boolean;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ColumnSize } from './column.types';
|
|
2
3
|
interface IColProps extends React.ComponentProps<'div'> {
|
|
3
|
-
|
|
4
|
-
sm?: number;
|
|
5
|
-
md?: number;
|
|
6
|
-
lg?: number;
|
|
7
|
-
xl?: number;
|
|
4
|
+
size?: ColumnSize;
|
|
8
5
|
}
|
|
9
6
|
export declare const Column: (props: IColProps) => JSX.Element;
|
|
10
7
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ColumnSize = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Color } from '../../enums';
|
|
4
4
|
export interface IIconProps extends ComponentProps<'div'> {
|
|
5
|
-
iconColor?:
|
|
5
|
+
iconColor?: Color;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
export declare const Icon: (props: IIconProps) => JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color, SIZE, VARIANT } from '../../enums';
|
|
3
3
|
export interface IIconButtonProps extends React.ComponentProps<'button'> {
|
|
4
4
|
icon?: React.ReactNode;
|
|
5
|
-
color?:
|
|
5
|
+
color?: Color;
|
|
6
6
|
size?: SIZE;
|
|
7
7
|
isActive?: boolean;
|
|
8
8
|
variant?: VARIANT;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Color } from '../../enums';
|
|
3
3
|
export interface IListItemProps extends React.ComponentProps<'li'> {
|
|
4
|
-
color?:
|
|
4
|
+
color?: Color;
|
|
5
5
|
active?: boolean;
|
|
6
6
|
isHoverable?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import { SIZE } from '
|
|
2
|
+
import { SIZE } from '../../enums';
|
|
3
3
|
import type { IControls } from '../Form';
|
|
4
4
|
import { MODALTYPE } from './modal.enum';
|
|
5
5
|
import type { IModalButton } from './modal.interfaces';
|
|
@@ -17,5 +17,5 @@ interface IModalProps {
|
|
|
17
17
|
fullScreen?: boolean;
|
|
18
18
|
size?: SIZE;
|
|
19
19
|
}
|
|
20
|
-
export declare const GlobalModal: ({ title, description, formControls, onOk, onChange, onCancel, onBackdropClick, isDismissable, buttons, size, fullScreen }: IModalProps) => JSX.Element;
|
|
20
|
+
export declare const GlobalModal: ({ title, description, formControls, onOk, onChange, onCancel, onBackdropClick, isDismissable, buttons, size, fullScreen, }: IModalProps) => JSX.Element;
|
|
21
21
|
export {};
|