@monolith-forensics/monolith-ui 1.1.7 → 1.1.9
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.
|
@@ -6,9 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
-
const
|
|
10
|
-
const IndeterminateCheckBox_1 = __importDefault(require("@mui/icons-material/IndeterminateCheckBox"));
|
|
11
|
-
const CheckBox_1 = __importDefault(require("@mui/icons-material/CheckBox"));
|
|
9
|
+
const fa_1 = require("react-icons/fa");
|
|
12
10
|
const CheckBox = (0, styled_components_1.default)(({ className, defaultValue = false, value = false, partialCheck = false, onChange = () => { }, }) => {
|
|
13
11
|
const [checkedState, setCheckedState] = (0, react_1.useState)(defaultValue);
|
|
14
12
|
const handleChange = (e) => {
|
|
@@ -20,7 +18,7 @@ const CheckBox = (0, styled_components_1.default)(({ className, defaultValue = f
|
|
|
20
18
|
setCheckedState(value);
|
|
21
19
|
}, [value]);
|
|
22
20
|
const _checked = value === undefined ? checkedState : value;
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: className, onClick: handleChange, children: partialCheck === true ? ((0, jsx_runtime_1.jsx)(
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: className, onClick: handleChange, children: partialCheck === true ? ((0, jsx_runtime_1.jsx)(fa_1.FaRegMinusSquare, { className: "checkbox partial" })) : _checked === true ? ((0, jsx_runtime_1.jsx)(fa_1.FaCheckSquare, { className: "checkbox checked" })) : ((0, jsx_runtime_1.jsx)(fa_1.FaRegSquare, { className: "checkbox unchecked" })) }));
|
|
24
22
|
}) `
|
|
25
23
|
display: flex;
|
|
26
24
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monolith-forensics/monolith-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Matt Danner (Monolith Forensics LLC)",
|
|
@@ -17,11 +17,16 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@floating-ui/react": "^0.26.16",
|
|
20
|
+
"@radix-ui/react-switch": "^1.0.7",
|
|
20
21
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
21
22
|
"deepmerge": "^4.3.1",
|
|
22
23
|
"lucide-react": "^0.378.0",
|
|
24
|
+
"moment": "^2.29.1",
|
|
25
|
+
"react-dropzone": "^14.2.3",
|
|
26
|
+
"react-icons": "^5.2.1",
|
|
23
27
|
"react-textarea-autosize": "^8.5.3",
|
|
24
|
-
"styled-components": "^6.1.11"
|
|
28
|
+
"styled-components": "^6.1.11",
|
|
29
|
+
"use-debounce": "^10.0.0"
|
|
25
30
|
},
|
|
26
31
|
"peerDependencies": {
|
|
27
32
|
"react": "18.2.0"
|