@monolith-forensics/monolith-ui 1.3.109 → 1.3.110
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/Button/Button.js
CHANGED
|
@@ -94,6 +94,8 @@ const StyledButton = styled.button `
|
|
|
94
94
|
}
|
|
95
95
|
}};
|
|
96
96
|
|
|
97
|
+
height: 400px;
|
|
98
|
+
|
|
97
99
|
color: ${({ theme, variant, color }) => {
|
|
98
100
|
var _a, _b;
|
|
99
101
|
if (variant === "default")
|
|
@@ -169,7 +171,9 @@ const StyledButton = styled.button `
|
|
|
169
171
|
|
|
170
172
|
cursor: pointer;
|
|
171
173
|
|
|
172
|
-
transition:
|
|
174
|
+
transition:
|
|
175
|
+
background-color 0.2s,
|
|
176
|
+
border 0.2s;
|
|
173
177
|
|
|
174
178
|
.inner-span {
|
|
175
179
|
display: flex;
|
|
@@ -381,7 +381,7 @@ triggerFocus = false, triggerOpen = false, onFocused, onOpened, }) => {
|
|
|
381
381
|
// ============================================================================
|
|
382
382
|
// Render
|
|
383
383
|
// ============================================================================
|
|
384
|
-
return (_jsxs(StyledContainer, { className: className, children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsxs(StyledInputContainer, { ref: refs.setReference, onMouseDown: () => setIsOpen(true), width: width, onKeyDown: handleKeyDown, "data-open": isOpen, "data-disabled": disabled, tabIndex:
|
|
384
|
+
return (_jsxs(StyledContainer, { className: className, "data-test": "this-is-a-test", children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsxs(StyledInputContainer, { ref: refs.setReference, onMouseDown: () => setIsOpen(true), width: width, onKeyDown: handleKeyDown, "data-open": isOpen, "data-disabled": disabled, tabIndex: -1, children: [_jsx(Input, { ref: inputRef, value: inputValue, onChange: handleInputChange, onFocus: handleFocus, autoFocus: focused, disabled: disabled, tabIndex: disabled ? -1 : 0, placeholder: placeholder, size: size, readOnly: !searchable && !allowCustomValue, "data-button-right": arrow || clearable, style: isOpen ? { borderColor: theme.palette.primary.main } : {} }), renderActionButton()] }), isOpen && (_jsx(FloatingPortal, { preserveTabOrder: true, children: _jsx(StyledFloatContainer, { ref: (ref) => {
|
|
385
385
|
containerRef.current = ref;
|
|
386
386
|
refs.setFloating(ref);
|
|
387
387
|
}, style: floatingStyles, className: "mfFloating", children: _jsxs(StyledContent, Object.assign({ className: "mfFloatingContent", style: {
|
package/dist/Switch/Switch.d.ts
CHANGED
package/dist/Switch/Switch.js
CHANGED
|
@@ -30,6 +30,18 @@ const StyledRoot = styled(RadixSwitch.Root) `
|
|
|
30
30
|
? "32px"
|
|
31
31
|
: "16px"};
|
|
32
32
|
|
|
33
|
+
min-width: ${({ size }) => size === "xs"
|
|
34
|
+
? "26px"
|
|
35
|
+
: size === "sm"
|
|
36
|
+
? "35px"
|
|
37
|
+
: size === "md"
|
|
38
|
+
? "41px"
|
|
39
|
+
: size === "lg"
|
|
40
|
+
? "53px"
|
|
41
|
+
: size === "xl"
|
|
42
|
+
? "70px"
|
|
43
|
+
: "26px"};
|
|
44
|
+
|
|
33
45
|
width: ${({ size }) => size === "xs"
|
|
34
46
|
? "26px"
|
|
35
47
|
: size === "sm"
|
|
@@ -152,7 +152,7 @@ const TextAreaInput = forwardRef((props, ref) => {
|
|
|
152
152
|
height: 16,
|
|
153
153
|
width: 16,
|
|
154
154
|
},
|
|
155
|
-
}, children: _jsx(StyledMoreHorizontal, { size: 16 }) })) : null, children: label })), _jsxs(TextAreaWrapper, { children: [_jsx(TextArea, Object.assign({ ref: mergedRef, size: size, maxRows: maxRows, minRows: minRows, onHeightChange: onHeightChange, cacheMeasurements: cacheMeasurements }, rest)), (insertableItems === null || insertableItems === void 0 ? void 0 : insertableItems.length) && (_jsx(InsertMenuOverlay, { ref: insertMenuRef, "$visible": showInsertMenu, children: _jsx(StyledInsertSelectBox, { data: insertableItems, placeholder: "Select item to insert...", searchable: true, clearable: false, arrow: false, focused: showInsertMenu, openOnFocus: true, triggerOpen: triggerSelectBoxOpen, onOpened: handleSelectBoxOpened, onChange: handleInsertSelect, size: size }) }))] })] }));
|
|
155
|
+
}, children: _jsx(StyledMoreHorizontal, { size: 16 }) })) : null, children: label })), _jsxs(TextAreaWrapper, { children: [_jsx(TextArea, Object.assign({ ref: mergedRef, size: size, maxRows: maxRows, minRows: minRows, onHeightChange: onHeightChange, cacheMeasurements: cacheMeasurements }, rest)), showInsertMenu && (insertableItems === null || insertableItems === void 0 ? void 0 : insertableItems.length) && (_jsx(InsertMenuOverlay, { ref: insertMenuRef, "$visible": showInsertMenu, children: _jsx(StyledInsertSelectBox, { data: insertableItems, placeholder: "Select item to insert...", searchable: true, clearable: false, arrow: false, focused: showInsertMenu, openOnFocus: true, triggerOpen: triggerSelectBoxOpen, onOpened: handleSelectBoxOpened, onChange: handleInsertSelect, size: size }) }))] })] }));
|
|
156
156
|
});
|
|
157
157
|
TextAreaInput.displayName = "TextAreaInput";
|
|
158
158
|
export default TextAreaInput;
|
|
@@ -81,10 +81,10 @@ export const TextInput = forwardRef((_a, ref) => {
|
|
|
81
81
|
return (_jsxs(StyledContainer, { className: className, colSpan: colSpan, children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsxs(InputContainer, { children: [_jsx(Input, Object.assign({ ref: ref, value: value, size: size, type: inputType, style: inputStyle }, inputProps, rest)), password ? (_jsx(InputButton, { onClick: handlePasswordToggle, onMouseDown: (e) => {
|
|
82
82
|
e.preventDefault();
|
|
83
83
|
e.stopPropagation();
|
|
84
|
-
}, type: "button", children: passwordVisible ? _jsx(Eye, {}) : _jsx(EyeOff, {}) })) : clearable && value ? (_jsx(InputButton, { onClick: handleClear, onMouseDown: (e) => {
|
|
84
|
+
}, tabIndex: -1, type: "button", children: passwordVisible ? _jsx(Eye, {}) : _jsx(EyeOff, {}) })) : clearable && value ? (_jsx(InputButton, { onClick: handleClear, onMouseDown: (e) => {
|
|
85
85
|
e.preventDefault();
|
|
86
86
|
e.stopPropagation();
|
|
87
|
-
}, type: "button", children: _jsx(X, {}) })) : null] })] }));
|
|
87
|
+
}, tabIndex: -1, type: "button", children: _jsx(X, {}) })) : null] })] }));
|
|
88
88
|
});
|
|
89
89
|
TextInput.displayName = "TextInput";
|
|
90
90
|
export default TextInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monolith-forensics/monolith-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.110",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Matt Danner (Monolith Forensics LLC)",
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
"registry": "https://registry.npmjs.org/"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
+
"branch": "bash ./scripts/branch",
|
|
20
|
+
"pr": "bash ./scripts/pr",
|
|
19
21
|
"dev": "cd playground && yarn dev",
|
|
22
|
+
"dev:link": "yarn build && yalc publish --push && chokidar \"src/**/*\" -d 500 -c \"yarn build && yalc publish --push\"",
|
|
20
23
|
"clean": "rm -r ./dist",
|
|
21
24
|
"build": "tsc",
|
|
22
25
|
"listFiles": "tsc --listFiles",
|
|
@@ -79,6 +82,8 @@
|
|
|
79
82
|
"@types/react-dom": "^18.3.0",
|
|
80
83
|
"@types/react-window": "^1.8.8",
|
|
81
84
|
"@types/spark-md5": "^3.0.4",
|
|
82
|
-
"
|
|
85
|
+
"chokidar-cli": "^3.0.0",
|
|
86
|
+
"typescript": "^5.5.4",
|
|
87
|
+
"yalc": "^1.0.0-pre.53"
|
|
83
88
|
}
|
|
84
89
|
}
|