@moontra/moonui-pro 2.0.7 → 2.0.8

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/index.js CHANGED
@@ -10,7 +10,6 @@ var lucideReact = require('lucide-react');
10
10
  var ReactDOM = require('react-dom');
11
11
  var AvatarPrimitive = require('@radix-ui/react-avatar');
12
12
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
13
- var dnd = require('@hello-pangea/dnd');
14
13
 
15
14
  function _interopNamespace(e) {
16
15
  if (e && e.__esModule) return e;
@@ -54649,82 +54648,6 @@ var SwipeableCard = React50__namespace.default.forwardRef(
54649
54648
  }
54650
54649
  );
54651
54650
  SwipeableCard.displayName = "SwipeableCard";
54652
- function DraggableList({
54653
- items,
54654
- onReorder,
54655
- renderItem,
54656
- keyExtractor,
54657
- direction = "vertical",
54658
- className,
54659
- droppableId = "draggable-list",
54660
- disabled = false
54661
- }) {
54662
- const handleDragEnd = (result) => {
54663
- if (!result.destination || disabled) {
54664
- return;
54665
- }
54666
- const sourceIndex = result.source.index;
54667
- const destinationIndex = result.destination.index;
54668
- if (sourceIndex === destinationIndex) {
54669
- return;
54670
- }
54671
- const newItems = Array.from(items);
54672
- const [reorderedItem] = newItems.splice(sourceIndex, 1);
54673
- newItems.splice(destinationIndex, 0, reorderedItem);
54674
- onReorder(newItems);
54675
- };
54676
- return /* @__PURE__ */ jsxRuntime.jsx(dnd.DragDropContext, { onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsxRuntime.jsx(
54677
- dnd.Droppable,
54678
- {
54679
- droppableId,
54680
- direction,
54681
- isDropDisabled: disabled,
54682
- children: (provided, snapshot) => /* @__PURE__ */ jsxRuntime.jsxs(
54683
- "div",
54684
- {
54685
- ...provided.droppableProps,
54686
- ref: provided.innerRef,
54687
- className: cn(
54688
- "space-y-2",
54689
- direction === "horizontal" && "flex space-y-0 space-x-2",
54690
- snapshot.isDraggingOver && "bg-muted/50 rounded-lg",
54691
- className
54692
- ),
54693
- children: [
54694
- items.map((item, index2) => /* @__PURE__ */ jsxRuntime.jsx(
54695
- dnd.Draggable,
54696
- {
54697
- draggableId: keyExtractor(item),
54698
- index: index2,
54699
- isDragDisabled: disabled,
54700
- children: (provided2, snapshot2) => /* @__PURE__ */ jsxRuntime.jsx(
54701
- "div",
54702
- {
54703
- ref: provided2.innerRef,
54704
- ...provided2.draggableProps,
54705
- ...provided2.dragHandleProps,
54706
- className: cn(
54707
- "transition-all duration-200",
54708
- snapshot2.isDragging && "rotate-2 scale-105 shadow-lg z-50",
54709
- disabled && "cursor-not-allowed opacity-50"
54710
- ),
54711
- style: {
54712
- ...provided2.draggableProps.style,
54713
- transform: snapshot2.isDragging ? provided2.draggableProps.style?.transform : "none"
54714
- },
54715
- children: renderItem(item, index2)
54716
- }
54717
- )
54718
- },
54719
- keyExtractor(item)
54720
- )),
54721
- provided.placeholder
54722
- ]
54723
- }
54724
- )
54725
- }
54726
- ) });
54727
- }
54728
54651
  /*! Bundled license information:
54729
54652
 
54730
54653
  use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
@@ -54773,7 +54696,6 @@ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.developme
54773
54696
  */
54774
54697
 
54775
54698
  exports.Calendar = Calendar2;
54776
- exports.DraggableList = DraggableList;
54777
54699
  exports.Kanban = Kanban;
54778
54700
  exports.MemoryAnalytics = MemoryAnalytics;
54779
54701
  exports.MemoryEfficientData = MemoryEfficientData;