@noya-app/noya-designsystem 0.1.14 → 0.1.15
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Sortable.tsx +9 -1
package/dist/index.mjs
CHANGED
|
@@ -4126,7 +4126,7 @@ import React35, {
|
|
|
4126
4126
|
forwardRef as forwardRef13,
|
|
4127
4127
|
memo as memo23,
|
|
4128
4128
|
useCallback as useCallback21,
|
|
4129
|
-
useEffect as
|
|
4129
|
+
useEffect as useEffect14,
|
|
4130
4130
|
useImperativeHandle as useImperativeHandle3,
|
|
4131
4131
|
useLayoutEffect as useLayoutEffect7,
|
|
4132
4132
|
useMemo as useMemo19,
|
|
@@ -4268,6 +4268,7 @@ import React32, {
|
|
|
4268
4268
|
memo as memo21,
|
|
4269
4269
|
useCallback as useCallback19,
|
|
4270
4270
|
useContext as useContext8,
|
|
4271
|
+
useEffect as useEffect13,
|
|
4271
4272
|
useMemo as useMemo17,
|
|
4272
4273
|
useRef as useRef14,
|
|
4273
4274
|
useState as useState18
|
|
@@ -4400,6 +4401,10 @@ function SortableRoot({
|
|
|
4400
4401
|
},
|
|
4401
4402
|
[acceptsDrop, axis, keys, onMoveItem, position.x, position.y]
|
|
4402
4403
|
);
|
|
4404
|
+
const [mounted, setMounted] = useState18(false);
|
|
4405
|
+
useEffect13(() => {
|
|
4406
|
+
setMounted(true);
|
|
4407
|
+
}, []);
|
|
4403
4408
|
return /* @__PURE__ */ React32.createElement(
|
|
4404
4409
|
SortableItemContext.Provider,
|
|
4405
4410
|
{
|
|
@@ -4424,7 +4429,7 @@ function SortableRoot({
|
|
|
4424
4429
|
onDragEnd: handleDragEnd
|
|
4425
4430
|
},
|
|
4426
4431
|
/* @__PURE__ */ React32.createElement(SortableContext, { items: keys, strategy: verticalListSortingStrategy }, children),
|
|
4427
|
-
renderOverlay && createPortal2(
|
|
4432
|
+
mounted && renderOverlay && createPortal2(
|
|
4428
4433
|
/* @__PURE__ */ React32.createElement(DragOverlay, { dropAnimation: null }, activeIndex !== void 0 && activeIndex >= 0 && renderOverlay(activeIndex)),
|
|
4429
4434
|
document.body
|
|
4430
4435
|
)
|
|
@@ -5273,7 +5278,7 @@ var InputFieldWithCompletions = memo23(
|
|
|
5273
5278
|
),
|
|
5274
5279
|
ListView.rowHeight * 10.5
|
|
5275
5280
|
);
|
|
5276
|
-
|
|
5281
|
+
useEffect14(() => {
|
|
5277
5282
|
if (listRef.current) {
|
|
5278
5283
|
listRef.current.scrollToIndex(selectedIndex);
|
|
5279
5284
|
}
|
|
@@ -5791,7 +5796,7 @@ import React40, {
|
|
|
5791
5796
|
memo as memo27,
|
|
5792
5797
|
useCallback as useCallback23,
|
|
5793
5798
|
useContext as useContext11,
|
|
5794
|
-
useEffect as
|
|
5799
|
+
useEffect as useEffect15,
|
|
5795
5800
|
useMemo as useMemo22,
|
|
5796
5801
|
useRef as useRef18
|
|
5797
5802
|
} from "react";
|
|
@@ -5803,7 +5808,7 @@ var SelectOption = memo27(function SelectOption2({
|
|
|
5803
5808
|
onSelect
|
|
5804
5809
|
}) {
|
|
5805
5810
|
const { addListener, removeListener } = useContext11(SelectContext);
|
|
5806
|
-
|
|
5811
|
+
useEffect15(() => {
|
|
5807
5812
|
if (!onSelect)
|
|
5808
5813
|
return;
|
|
5809
5814
|
addListener(value, onSelect);
|