musae 0.1.34 → 0.1.35
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.
|
@@ -127,7 +127,9 @@ const Input = forwardRef((props$1, ref) => {
|
|
|
127
127
|
}
|
|
128
128
|
}), []);
|
|
129
129
|
/// controlled value
|
|
130
|
-
const [_value, _setValue] = useControlledState(props$1.value
|
|
130
|
+
const [_value, _setValue] = useControlledState(props$1.value, {
|
|
131
|
+
defaultState: ""
|
|
132
|
+
});
|
|
131
133
|
/// events
|
|
132
134
|
const inputEvents = useInputEvents({
|
|
133
135
|
setValue: _setValue,
|
|
@@ -12,6 +12,9 @@ const useRepaint = ({ columns, rowGap }) => {
|
|
|
12
12
|
items.current.set(index, ref);
|
|
13
13
|
}, []);
|
|
14
14
|
useEffect(() => {
|
|
15
|
+
// only 1 columns, no need to repaint, just display as flex
|
|
16
|
+
if (columns <= 1)
|
|
17
|
+
return;
|
|
15
18
|
const [columnHeights, _orders] = Array.from(items.current.entries()).reduce((prev, [index, child]) => {
|
|
16
19
|
if (!child)
|
|
17
20
|
return prev;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "musae",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "musae-ui",
|
|
5
5
|
"author": "tutu@fantufantu.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aiszlab/relax": "^1.2.
|
|
25
|
+
"@aiszlab/relax": "^1.2.32",
|
|
26
26
|
"@popperjs/core": "^2.11.8",
|
|
27
27
|
"@tanstack/react-table": "^8.11.3",
|
|
28
28
|
"clsx": "^2.1.0",
|