@monolith-forensics/monolith-ui 1.1.73 → 1.1.75
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/TagBox/TagBox.js
CHANGED
|
@@ -543,6 +543,12 @@ const TagBox = styled(({ className, data = [], placeholder = "Select tags", arro
|
|
|
543
543
|
useEffect(() => {
|
|
544
544
|
update();
|
|
545
545
|
}, [selectedItems]);
|
|
546
|
+
// handle default value
|
|
547
|
+
useEffect(() => {
|
|
548
|
+
if (defaultValue) {
|
|
549
|
+
setSelectedItems(defaultValue);
|
|
550
|
+
}
|
|
551
|
+
}, [defaultValue]);
|
|
546
552
|
const referenceEl = (_b = refs === null || refs === void 0 ? void 0 : refs.reference) === null || _b === void 0 ? void 0 : _b.current;
|
|
547
553
|
const contentWidth = ((_e = (_d = (_c = referenceEl === null || referenceEl === void 0 ? void 0 : referenceEl.getClientRects) === null || _c === void 0 ? void 0 : _c.call(referenceEl)) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.width) || "100%";
|
|
548
554
|
const scrollEl = scrollContainerRef === null || scrollContainerRef === void 0 ? void 0 : scrollContainerRef.current;
|
|
@@ -8,6 +8,7 @@ interface TextInputProps extends InputProps {
|
|
|
8
8
|
size?: Size;
|
|
9
9
|
colSpan?: number;
|
|
10
10
|
description?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
11
12
|
}
|
|
12
13
|
declare const TextInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<TextInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
13
14
|
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|