@editora/ui-react 0.1.24 → 0.1.25

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.
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Z=require("react"),C=require("react-dom");require("@editora/ui-core/sortable");const s=require("./_internals-C6EP1OPI.js"),nt=require("./_createElement-DC52GmgH.js"),lt=r=>r&&r.__esModule?r:{default:r},f=lt(Z);function L(r){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(r):r.replace(/"/g,'\\"')}function Y(r){if(r==null||r==="")return null;if(typeof r=="number")return`${r}px`;switch(r){case"none":return"0px";case"sm":return"10px";case"md":return"16px";case"lg":return"20px";case"xl":return"28px";case"full":return"999px";default:return r}}function ct(r){if(r==null||r==="")return null;if(typeof r=="number")return`${r}px`;switch(r){case"xs":return"6px";case"sm":return"8px";case"md":return"10px";case"lg":return"14px";case"xl":return"18px";default:return r}}const dt=[],bt=[],M=f.default.forwardRef(function({lists:K,items:Q,selection:d,filterQuery:b,sort:l,persistKey:E,allowFilteredDrag:w,allowNesting:S,dropIndicatorVisibility:q,dropzoneStyle:V,dragPreviewSize:P,dragHandleMode:A,dragHandleSelector:m,itemRadius:k,handleRadius:B,listGap:J,itemSpacing:j,showSelectionBadge:_,disabled:g,renderItem:i,renderListHeader:y,renderEmptyState:h,onChange:D,onItemsChange:O,onSelectionChange:$,onPersistRequest:T,children:H,...tt},et){const n=K??dt,c=Q??bt,a=s.useForwardedHostRef(et),[v,rt]=f.default.useState(0),N=!!(i||y||h);Z.useEffect(()=>{s.warnIfElementNotRegistered("ui-sortable","Sortable")},[]),s.useElementEventListeners(a,[{type:"change",listener:D||O?(t=>{const e=s.getCustomEventDetail(t);e&&(D?.(e),O?.(e.items))}):void 0},{type:"selection-change",listener:$?(t=>{const e=s.getCustomEventDetail(t);e&&$(e)}):void 0},{type:"persist-request",listener:T?(t=>{const e=s.getCustomEventDetail(t);e&&T(e)}):void 0}],[D,O,$,T]),s.useElementAttributes(a,t=>{s.syncJsonAttribute(t,"lists",n),s.syncJsonAttribute(t,"items",c),s.syncJsonAttribute(t,"selection",d??null),s.syncStringAttribute(t,"filter-query",b??null),s.syncStringAttribute(t,"sort",l&&l!=="manual"?l:null),s.syncStringAttribute(t,"persist-key",E??null),s.syncBooleanAttribute(t,"allow-filtered-drag",w),S===!1?t.setAttribute("allow-nesting","false"):t.removeAttribute("allow-nesting"),q==="always"?t.setAttribute("drop-indicator-visibility","always"):t.removeAttribute("drop-indicator-visibility"),V==="container"?t.setAttribute("dropzone-style","container"):t.removeAttribute("dropzone-style"),P==="compact"?t.setAttribute("drag-preview-size","compact"):t.removeAttribute("drag-preview-size"),A==="item"?t.setAttribute("drag-handle-mode","item"):t.removeAttribute("drag-handle-mode"),s.syncStringAttribute(t,"drag-handle-selector",m??null);const e=Y(k);e?t.style.setProperty("--ui-sortable-item-radius",e):t.style.removeProperty("--ui-sortable-item-radius");const u=Y(B);u?t.style.setProperty("--ui-sortable-handle-radius",u):t.style.removeProperty("--ui-sortable-handle-radius");const o=ct(J??j);o?t.style.setProperty("--ui-sortable-list-gap",o):t.style.removeProperty("--ui-sortable-list-gap"),i?t.setAttribute("custom-item-rendering","true"):t.removeAttribute("custom-item-rendering"),_===!1?t.setAttribute("show-selection-badge","false"):t.removeAttribute("show-selection-badge"),s.syncBooleanAttribute(t,"disabled",g)},[n,c,d,b,l,E,w,S,q,V,P,A,m,k,B,J,j,i,_,g]),s.useIsomorphicLayoutEffect(()=>{if(!N)return;const t=a.current,e=t?.ownerDocument?.defaultView;if(!t||!e)return;let u=!1,o=!1,x=null,R=null;const I=[i&&c.length>0?".item-custom-content[data-item-content-target]":null,y&&n.length>0?".list-custom-header[data-list-header-target]":null,h&&n.length>0?".list-custom-empty[data-list-empty-target]":null].filter(Boolean).join(", "),W=()=>{u||o||(o=!0,queueMicrotask(()=>{o=!1,!u&&rt(p=>p+1)}))},ut=()=>{const p=a.current?.shadowRoot;return p?(R||(R=new MutationObserver(()=>W()),R.observe(p,{childList:!0,subtree:!0})),!0):!1},X=()=>{if(u)return;const p=a.current?.shadowRoot,it=!I||!!p?.querySelector(I);if(ut()&&it){W();return}x=e.requestAnimationFrame(X)};return X(),()=>{u=!0,x!==null&&e.cancelAnimationFrame(x),R?.disconnect()}},[a,N,c,n,d,b,l,E,w,S,q,P,A,m,_,g,i,y,h]),s.useIsomorphicLayoutEffect(()=>{const t=a.current,e=t?.shadowRoot;if(!t)return;if(!i||!e){t.removeAttribute("custom-item-rendering-ready"),t.removeAttribute("custom-item-rendering-pending");return}const u=e.querySelectorAll(".item-custom-content[data-item-content-target]"),o=e.querySelectorAll("[data-sortable-custom-item]");u.length>0&&o.length>=u.length?(t.setAttribute("custom-item-rendering-ready","true"),t.removeAttribute("custom-item-rendering-pending")):(t.removeAttribute("custom-item-rendering-ready"),t.setAttribute("custom-item-rendering-pending","true"))},[a,i,v,c,d,b,l,g]),s.useIsomorphicLayoutEffect(()=>{const t=a.current?.shadowRoot;t&&(t.querySelectorAll("[data-sortable-custom-handle]").forEach(e=>{e.removeAttribute("data-sortable-custom-handle"),e.removeAttribute("data-drag-trigger"),e.removeAttribute("data-id"),e.removeAttribute("draggable"),e.hasAttribute("data-sortable-handle-tabindex")&&(e.removeAttribute("data-sortable-handle-tabindex"),e.removeAttribute("tabindex"))}),!(!i||!m||A==="item")&&t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach(e=>{const u=e.getAttribute("data-sortable-item-id");u&&e.querySelectorAll(m).forEach(o=>{o.setAttribute("data-sortable-custom-handle",""),o.setAttribute("data-drag-trigger","custom"),o.setAttribute("data-id",u),o.setAttribute("draggable","true"),o.hasAttribute("tabindex")||(o.setAttribute("tabindex","-1"),o.setAttribute("data-sortable-handle-tabindex",""))})}))},[a,i,m,A,v,c,d,b,l,g]);const z=new Map(n.map(t=>[t.id,t])),F=new Map(n.map(t=>[t.id,c.filter(e=>e.listId===t.id).length])),U=!!g||l==="label"||!!b&&!w,st=i?c.map(t=>{const e=a.current?.shadowRoot?.querySelector(`.item-custom-content[data-item-content-target="${L(t.id)}"]`);return e?C.createPortal(f.default.createElement("div",{"data-sortable-custom-item":"","data-sortable-item-id":t.id,"data-selected":d?.includes(t.id)?"true":"false","data-disabled":t.disabled?"true":"false","data-drag-disabled":t.dragDisabled?"true":"false"},i(t,{selected:d?.includes(t.id)??!1,disabled:!!t.disabled,dragDisabled:!!t.dragDisabled,cloneOnDrag:!!t.cloneOnDrag||!!z.get(t.listId)?.cloneOnDrag,list:z.get(t.listId)})),e,t.id):null}):null,ot=y?n.map(t=>{const e=a.current?.shadowRoot?.querySelector(`.list-custom-header[data-list-header-target="${L(t.id)}"]`);return e?C.createPortal(f.default.createElement("div",{"data-sortable-custom-list-header":"","data-sortable-list-id":t.id},y(t,{itemCount:F.get(t.id)??0,dragLocked:U})),e,`header-${t.id}`):null}):null,at=h?n.map(t=>{const e=a.current?.shadowRoot?.querySelector(`.list-custom-empty[data-list-empty-target="${L(t.id)}"]`);return e?C.createPortal(f.default.createElement("div",{"data-sortable-custom-empty":"","data-sortable-list-id":t.id},h(t,{itemCount:F.get(t.id)??0,dragLocked:U,filterQuery:b??""})),e,`empty-${t.id}`):null}):null,G={ref:a,...tt};return i&&(G["custom-item-rendering"]=""),f.default.createElement(f.default.Fragment,null,nt.createUIElement("ui-sortable",G,H),v>=0?st:null,v>=0?ot:null,v>=0?at:null)});M.displayName="Sortable";exports.Sortable=M;exports.default=M;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ot=require("react"),N=require("react-dom");require("@editora/ui-core/sortable");const r=require("./_internals-C6EP1OPI.js"),gt=require("./_createElement-DC52GmgH.js"),yt=s=>s&&s.__esModule?s:{default:s},f=yt(ot);function B(s){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(s):s.replace(/"/g,'\\"')}function st(s){if(s==null||s==="")return null;if(typeof s=="number")return`${s}px`;switch(s){case"none":return"0px";case"sm":return"10px";case"md":return"16px";case"lg":return"20px";case"xl":return"28px";case"full":return"999px";default:return s}}function At(s){if(s==null||s==="")return null;if(typeof s=="number")return`${s}px`;switch(s){case"xs":return"6px";case"sm":return"8px";case"md":return"10px";case"lg":return"14px";case"xl":return"18px";default:return s}}const ht=[],vt=[],F=f.default.forwardRef(function({lists:ut,items:it,selection:d,filterQuery:b,sort:c,persistKey:_,allowFilteredDrag:S,allowNesting:O,nestTrigger:w,group:T,touchHoldDelay:x,listMaxHeight:E,dropIndicatorVisibility:D,dropzoneStyle:z,dragPreviewSize:$,dragHandleMode:y,dragHandleSelector:m,itemRadius:M,handleRadius:U,listGap:G,itemSpacing:I,canDrop:W,showSelectionBadge:L,labels:R,hideToolbar:X,disabled:p,renderItem:a,renderListHeader:A,renderEmptyState:h,onBeforeChange:k,onChange:C,onItemsChange:J,onSelectionChange:V,onPersistRequest:j,children:at,...nt},ct){const n=ut??ht,l=it??vt,u=r.useForwardedHostRef(ct),[v,lt]=f.default.useState(0),Y=!!(a||A||h);ot.useEffect(()=>{r.warnIfElementNotRegistered("ui-sortable","Sortable")},[]),r.useElementEventListeners(u,[{type:"before-change",listener:k?(t=>{const e=r.getCustomEventDetail(t);e&&k(e,t)===!1&&t.preventDefault()}):void 0},{type:"change",listener:C||J?(t=>{const e=r.getCustomEventDetail(t);e&&(C?.(e),J?.(e.items))}):void 0},{type:"selection-change",listener:V?(t=>{const e=r.getCustomEventDetail(t);e&&V(e)}):void 0},{type:"persist-request",listener:j?(t=>{const e=r.getCustomEventDetail(t);e&&j(e)}):void 0}],[k,C,J,V,j]),r.useElementAttributes(u,t=>{r.syncJsonAttribute(t,"lists",n),r.syncJsonAttribute(t,"items",l),r.syncJsonAttribute(t,"selection",d??null),r.syncStringAttribute(t,"filter-query",b??null),r.syncStringAttribute(t,"sort",c&&c!=="manual"?c:null),r.syncStringAttribute(t,"persist-key",_??null),r.syncBooleanAttribute(t,"allow-filtered-drag",S),O===!1?t.setAttribute("allow-nesting","false"):t.removeAttribute("allow-nesting"),r.syncStringAttribute(t,"nest-trigger",w&&w!=="gutter"?w:null),r.syncStringAttribute(t,"list-max-height",typeof E=="number"?String(E)+"px":E??null),r.syncStringAttribute(t,"group",T??null),r.syncStringAttribute(t,"touch-hold-delay",typeof x=="number"&&Number.isFinite(x)?String(x):null),D==="always"?t.setAttribute("drop-indicator-visibility","always"):t.removeAttribute("drop-indicator-visibility"),z==="container"?t.setAttribute("dropzone-style","container"):t.removeAttribute("dropzone-style"),$==="compact"?t.setAttribute("drag-preview-size","compact"):t.removeAttribute("drag-preview-size"),y==="item"?t.setAttribute("drag-handle-mode","item"):t.removeAttribute("drag-handle-mode"),r.syncStringAttribute(t,"drag-handle-selector",m??null);const e=st(M);e?t.style.setProperty("--ui-sortable-item-radius",e):t.style.removeProperty("--ui-sortable-item-radius");const i=st(U);i?t.style.setProperty("--ui-sortable-handle-radius",i):t.style.removeProperty("--ui-sortable-handle-radius");const o=At(G??I);o?t.style.setProperty("--ui-sortable-list-gap",o):t.style.removeProperty("--ui-sortable-list-gap"),a?t.setAttribute("custom-item-rendering","true"):t.removeAttribute("custom-item-rendering"),L===!1?t.setAttribute("show-selection-badge","false"):t.removeAttribute("show-selection-badge"),t.canDrop=W??null,r.syncJsonAttribute(t,"labels",R&&Object.keys(R).length?R:null),r.syncBooleanAttribute(t,"hide-toolbar",X),r.syncBooleanAttribute(t,"disabled",p)},[n,l,d,b,c,_,S,O,w,T,x,E,D,z,$,y,m,M,U,G,I,a,L,W,R,X,p]),r.useIsomorphicLayoutEffect(()=>{if(!Y)return;const t=u.current,e=t?.ownerDocument?.defaultView;if(!t||!e)return;let i=!1,o=!1,q=null,P=null;const tt=[a&&l.length>0?".item-custom-content[data-item-content-target]":null,A&&n.length>0?".list-custom-header[data-list-header-target]":null,h&&n.length>0?".list-custom-empty[data-list-empty-target]":null].filter(Boolean).join(", "),et=()=>{i||o||(o=!0,queueMicrotask(()=>{o=!1,!i&&lt(g=>g+1)}))},mt=()=>{const g=u.current?.shadowRoot;return g?(P||(P=new MutationObserver(()=>et()),P.observe(g,{childList:!0,subtree:!0})),!0):!1},rt=()=>{if(i)return;const g=u.current?.shadowRoot,pt=!tt||!!g?.querySelector(tt);if(mt()&&pt){et();return}q=e.requestAnimationFrame(rt)};return rt(),()=>{i=!0,q!==null&&e.cancelAnimationFrame(q),P?.disconnect()}},[u,Y,l,n,d,b,c,_,S,O,D,$,y,m,L,p,a,A,h]),r.useIsomorphicLayoutEffect(()=>{const t=u.current,e=t?.shadowRoot;if(!t)return;if(!a||!e){t.removeAttribute("custom-item-rendering-ready"),t.removeAttribute("custom-item-rendering-pending");return}const i=e.querySelectorAll(".item-custom-content[data-item-content-target]"),o=e.querySelectorAll("[data-sortable-custom-item]");i.length>0&&o.length>=i.length?(t.setAttribute("custom-item-rendering-ready","true"),t.removeAttribute("custom-item-rendering-pending")):(t.removeAttribute("custom-item-rendering-ready"),t.setAttribute("custom-item-rendering-pending","true"))},[u,a,v,l,d,b,c,p]),r.useIsomorphicLayoutEffect(()=>{const t=u.current?.shadowRoot;t&&(t.querySelectorAll("[data-sortable-custom-handle]").forEach(e=>{e.removeAttribute("data-sortable-custom-handle"),e.removeAttribute("data-drag-trigger"),e.removeAttribute("data-id"),e.removeAttribute("draggable"),e.hasAttribute("data-sortable-handle-tabindex")&&(e.removeAttribute("data-sortable-handle-tabindex"),e.removeAttribute("tabindex"))}),!(!a||!m||y==="item")&&t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach(e=>{const i=e.getAttribute("data-sortable-item-id");i&&e.querySelectorAll(m).forEach(o=>{o.setAttribute("data-sortable-custom-handle",""),o.setAttribute("data-drag-trigger","custom"),o.setAttribute("data-id",i),o.hasAttribute("tabindex")||(o.setAttribute("tabindex","-1"),o.setAttribute("data-sortable-handle-tabindex",""))})}))},[u,a,m,y,v,l,d,b,c,p]);const Z=new Map(n.map(t=>[t.id,t])),K=new Map(n.map(t=>[t.id,l.filter(e=>e.listId===t.id).length])),Q=!!p||c==="label"||!!b&&!S,dt=a?l.map(t=>{const e=u.current?.shadowRoot?.querySelector(`.item-custom-content[data-item-content-target="${B(t.id)}"]`);return e?N.createPortal(f.default.createElement("div",{"data-sortable-custom-item":"","data-sortable-item-id":t.id,"data-selected":d?.includes(t.id)?"true":"false","data-disabled":t.disabled?"true":"false","data-drag-disabled":t.dragDisabled?"true":"false"},a(t,{selected:d?.includes(t.id)??!1,disabled:!!t.disabled,dragDisabled:!!t.dragDisabled,cloneOnDrag:!!t.cloneOnDrag||!!Z.get(t.listId)?.cloneOnDrag,list:Z.get(t.listId)})),e,t.id):null}):null,bt=A?n.map(t=>{const e=u.current?.shadowRoot?.querySelector(`.list-custom-header[data-list-header-target="${B(t.id)}"]`);return e?N.createPortal(f.default.createElement("div",{"data-sortable-custom-list-header":"","data-sortable-list-id":t.id},A(t,{itemCount:K.get(t.id)??0,dragLocked:Q})),e,`header-${t.id}`):null}):null,ft=h?n.map(t=>{const e=u.current?.shadowRoot?.querySelector(`.list-custom-empty[data-list-empty-target="${B(t.id)}"]`);return e?N.createPortal(f.default.createElement("div",{"data-sortable-custom-empty":"","data-sortable-list-id":t.id},h(t,{itemCount:K.get(t.id)??0,dragLocked:Q,filterQuery:b??""})),e,`empty-${t.id}`):null}):null,H={ref:u,...nt};return a&&(H["custom-item-rendering"]=""),f.default.createElement(f.default.Fragment,null,gt.createUIElement("ui-sortable",H,at),v>=0?dt:null,v>=0?bt:null,v>=0?ft:null)});F.displayName="Sortable";exports.Sortable=F;exports.default=F;
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import b, { useEffect as ct } from "react";
3
- import { createPortal as _ } from "react-dom";
2
+ import f, { useEffect as yt } from "react";
3
+ import { createPortal as J } from "react-dom";
4
4
  import "@editora/ui-core/sortable";
5
- import { u as dt, w as bt, a as ft, g as k, b as mt, f as C, s as R, c as K, h as L } from "./_internals-DnSIpvQ-.mjs";
6
- import { c as pt } from "./_createElement-DheOwG2B.mjs";
5
+ import { u as ht, w as vt, a as wt, g as O, b as xt, f as $, s as c, c as T, h as U } from "./_internals-DnSIpvQ-.mjs";
6
+ import { c as Rt } from "./_createElement-DheOwG2B.mjs";
7
7
  function B(r) {
8
8
  return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(r) : r.replace(/"/g, '\\"');
9
9
  }
10
- function Q(r) {
10
+ function it(r) {
11
11
  if (r == null || r === "") return null;
12
12
  if (typeof r == "number") return `${r}px`;
13
13
  switch (r) {
@@ -27,7 +27,7 @@ function Q(r) {
27
27
  return r;
28
28
  }
29
29
  }
30
- function gt(r) {
30
+ function St(r) {
31
31
  if (r == null || r === "") return null;
32
32
  if (typeof r == "number") return `${r}px`;
33
33
  switch (r) {
@@ -45,126 +45,141 @@ function gt(r) {
45
45
  return r;
46
46
  }
47
47
  }
48
- const At = [], ht = [], yt = b.forwardRef(function({
49
- lists: H,
50
- items: tt,
51
- selection: c,
52
- filterQuery: d,
48
+ const Et = [], qt = [], Pt = f.forwardRef(function({
49
+ lists: ut,
50
+ items: nt,
51
+ selection: d,
52
+ filterQuery: b,
53
53
  sort: n,
54
- persistKey: E,
55
- allowFilteredDrag: v,
56
- allowNesting: q,
57
- dropIndicatorVisibility: S,
58
- dropzoneStyle: N,
59
- dragPreviewSize: P,
60
- dragHandleMode: g,
61
- dragHandleSelector: f,
62
- itemRadius: j,
63
- handleRadius: z,
64
- listGap: F,
65
- itemSpacing: J,
66
- showSelectionBadge: O,
67
- disabled: m,
54
+ persistKey: k,
55
+ allowFilteredDrag: w,
56
+ allowNesting: V,
57
+ nestTrigger: x,
58
+ group: G,
59
+ touchHoldDelay: R,
60
+ listMaxHeight: S,
61
+ dropIndicatorVisibility: _,
62
+ dropzoneStyle: W,
63
+ dragPreviewSize: D,
64
+ dragHandleMode: A,
65
+ dragHandleSelector: m,
66
+ itemRadius: X,
67
+ handleRadius: Y,
68
+ listGap: Z,
69
+ itemSpacing: I,
70
+ canDrop: K,
71
+ showSelectionBadge: L,
72
+ labels: E,
73
+ hideToolbar: M,
74
+ disabled: p,
68
75
  renderItem: i,
69
- renderListHeader: A,
76
+ renderListHeader: y,
70
77
  renderEmptyState: h,
71
- onChange: $,
72
- onItemsChange: D,
73
- onSelectionChange: T,
74
- onPersistRequest: V,
75
- children: et,
76
- ...rt
77
- }, st) {
78
- const u = H ?? At, l = tt ?? ht, o = dt(st), [y, ot] = b.useState(0), M = !!(i || A || h);
79
- ct(() => {
80
- bt("ui-sortable", "Sortable");
81
- }, []), ft(
78
+ onBeforeChange: N,
79
+ onChange: j,
80
+ onItemsChange: F,
81
+ onSelectionChange: z,
82
+ onPersistRequest: C,
83
+ children: lt,
84
+ ...ct
85
+ }, dt) {
86
+ const u = ut ?? Et, l = nt ?? qt, o = ht(dt), [v, bt] = f.useState(0), Q = !!(i || y || h);
87
+ yt(() => {
88
+ vt("ui-sortable", "Sortable");
89
+ }, []), wt(
82
90
  o,
83
91
  [
92
+ {
93
+ type: "before-change",
94
+ listener: N ? ((t) => {
95
+ const e = O(t);
96
+ e && N(e, t) === !1 && t.preventDefault();
97
+ }) : void 0
98
+ },
84
99
  {
85
100
  type: "change",
86
- listener: $ || D ? ((t) => {
87
- const e = k(t);
88
- e && ($?.(e), D?.(e.items));
101
+ listener: j || F ? ((t) => {
102
+ const e = O(t);
103
+ e && (j?.(e), F?.(e.items));
89
104
  }) : void 0
90
105
  },
91
106
  {
92
107
  type: "selection-change",
93
- listener: T ? ((t) => {
94
- const e = k(t);
95
- e && T(e);
108
+ listener: z ? ((t) => {
109
+ const e = O(t);
110
+ e && z(e);
96
111
  }) : void 0
97
112
  },
98
113
  {
99
114
  type: "persist-request",
100
- listener: V ? ((t) => {
101
- const e = k(t);
102
- e && V(e);
115
+ listener: C ? ((t) => {
116
+ const e = O(t);
117
+ e && C(e);
103
118
  }) : void 0
104
119
  }
105
120
  ],
106
- [$, D, T, V]
107
- ), mt(
121
+ [N, j, F, z, C]
122
+ ), xt(
108
123
  o,
109
124
  (t) => {
110
- C(t, "lists", u), C(t, "items", l), C(t, "selection", c ?? null), R(t, "filter-query", d ?? null), R(t, "sort", n && n !== "manual" ? n : null), R(t, "persist-key", E ?? null), K(t, "allow-filtered-drag", v), q === !1 ? t.setAttribute("allow-nesting", "false") : t.removeAttribute("allow-nesting"), S === "always" ? t.setAttribute("drop-indicator-visibility", "always") : t.removeAttribute("drop-indicator-visibility"), N === "container" ? t.setAttribute("dropzone-style", "container") : t.removeAttribute("dropzone-style"), P === "compact" ? t.setAttribute("drag-preview-size", "compact") : t.removeAttribute("drag-preview-size"), g === "item" ? t.setAttribute("drag-handle-mode", "item") : t.removeAttribute("drag-handle-mode"), R(t, "drag-handle-selector", f ?? null);
111
- const e = Q(j);
125
+ $(t, "lists", u), $(t, "items", l), $(t, "selection", d ?? null), c(t, "filter-query", b ?? null), c(t, "sort", n && n !== "manual" ? n : null), c(t, "persist-key", k ?? null), T(t, "allow-filtered-drag", w), V === !1 ? t.setAttribute("allow-nesting", "false") : t.removeAttribute("allow-nesting"), c(t, "nest-trigger", x && x !== "gutter" ? x : null), c(t, "list-max-height", typeof S == "number" ? String(S) + "px" : S ?? null), c(t, "group", G ?? null), c(t, "touch-hold-delay", typeof R == "number" && Number.isFinite(R) ? String(R) : null), _ === "always" ? t.setAttribute("drop-indicator-visibility", "always") : t.removeAttribute("drop-indicator-visibility"), W === "container" ? t.setAttribute("dropzone-style", "container") : t.removeAttribute("dropzone-style"), D === "compact" ? t.setAttribute("drag-preview-size", "compact") : t.removeAttribute("drag-preview-size"), A === "item" ? t.setAttribute("drag-handle-mode", "item") : t.removeAttribute("drag-handle-mode"), c(t, "drag-handle-selector", m ?? null);
126
+ const e = it(X);
112
127
  e ? t.style.setProperty("--ui-sortable-item-radius", e) : t.style.removeProperty("--ui-sortable-item-radius");
113
- const a = Q(z);
128
+ const a = it(Y);
114
129
  a ? t.style.setProperty("--ui-sortable-handle-radius", a) : t.style.removeProperty("--ui-sortable-handle-radius");
115
- const s = gt(F ?? J);
116
- s ? t.style.setProperty("--ui-sortable-list-gap", s) : t.style.removeProperty("--ui-sortable-list-gap"), i ? t.setAttribute("custom-item-rendering", "true") : t.removeAttribute("custom-item-rendering"), O === !1 ? t.setAttribute("show-selection-badge", "false") : t.removeAttribute("show-selection-badge"), K(t, "disabled", m);
130
+ const s = St(Z ?? I);
131
+ s ? t.style.setProperty("--ui-sortable-list-gap", s) : t.style.removeProperty("--ui-sortable-list-gap"), i ? t.setAttribute("custom-item-rendering", "true") : t.removeAttribute("custom-item-rendering"), L === !1 ? t.setAttribute("show-selection-badge", "false") : t.removeAttribute("show-selection-badge"), t.canDrop = K ?? null, $(t, "labels", E && Object.keys(E).length ? E : null), T(t, "hide-toolbar", M), T(t, "disabled", p);
117
132
  },
118
- [u, l, c, d, n, E, v, q, S, N, P, g, f, j, z, F, J, i, O, m]
119
- ), L(() => {
120
- if (!M) return;
133
+ [u, l, d, b, n, k, w, V, x, G, R, S, _, W, D, A, m, X, Y, Z, I, i, L, K, E, M, p]
134
+ ), U(() => {
135
+ if (!Q) return;
121
136
  const t = o.current, e = t?.ownerDocument?.defaultView;
122
137
  if (!t || !e) return;
123
- let a = !1, s = !1, w = null, x = null;
124
- const Y = [
138
+ let a = !1, s = !1, q = null, P = null;
139
+ const st = [
125
140
  i && l.length > 0 ? ".item-custom-content[data-item-content-target]" : null,
126
- A && u.length > 0 ? ".list-custom-header[data-list-header-target]" : null,
141
+ y && u.length > 0 ? ".list-custom-header[data-list-header-target]" : null,
127
142
  h && u.length > 0 ? ".list-custom-empty[data-list-empty-target]" : null
128
- ].filter(Boolean).join(", "), Z = () => {
143
+ ].filter(Boolean).join(", "), ot = () => {
129
144
  a || s || (s = !0, queueMicrotask(() => {
130
- s = !1, !a && ot((p) => p + 1);
145
+ s = !1, !a && bt((g) => g + 1);
131
146
  }));
132
- }, nt = () => {
133
- const p = o.current?.shadowRoot;
134
- return p ? (x || (x = new MutationObserver(() => Z()), x.observe(p, { childList: !0, subtree: !0 })), !0) : !1;
135
- }, I = () => {
147
+ }, gt = () => {
148
+ const g = o.current?.shadowRoot;
149
+ return g ? (P || (P = new MutationObserver(() => ot()), P.observe(g, { childList: !0, subtree: !0 })), !0) : !1;
150
+ }, at = () => {
136
151
  if (a) return;
137
- const p = o.current?.shadowRoot, lt = !Y || !!p?.querySelector(Y);
138
- if (nt() && lt) {
139
- Z();
152
+ const g = o.current?.shadowRoot, At = !st || !!g?.querySelector(st);
153
+ if (gt() && At) {
154
+ ot();
140
155
  return;
141
156
  }
142
- w = e.requestAnimationFrame(I);
157
+ q = e.requestAnimationFrame(at);
143
158
  };
144
- return I(), () => {
145
- a = !0, w !== null && e.cancelAnimationFrame(w), x?.disconnect();
159
+ return at(), () => {
160
+ a = !0, q !== null && e.cancelAnimationFrame(q), P?.disconnect();
146
161
  };
147
162
  }, [
148
163
  o,
149
- M,
164
+ Q,
150
165
  l,
151
166
  u,
152
- c,
153
167
  d,
168
+ b,
154
169
  n,
155
- E,
156
- v,
157
- q,
158
- S,
159
- P,
160
- g,
161
- f,
162
- O,
170
+ k,
171
+ w,
172
+ V,
173
+ _,
174
+ D,
175
+ A,
163
176
  m,
177
+ L,
178
+ p,
164
179
  i,
165
- A,
180
+ y,
166
181
  h
167
- ]), L(() => {
182
+ ]), U(() => {
168
183
  const t = o.current, e = t?.shadowRoot;
169
184
  if (!t) return;
170
185
  if (!i || !e) {
@@ -173,72 +188,72 @@ const At = [], ht = [], yt = b.forwardRef(function({
173
188
  }
174
189
  const a = e.querySelectorAll(".item-custom-content[data-item-content-target]"), s = e.querySelectorAll("[data-sortable-custom-item]");
175
190
  a.length > 0 && s.length >= a.length ? (t.setAttribute("custom-item-rendering-ready", "true"), t.removeAttribute("custom-item-rendering-pending")) : (t.removeAttribute("custom-item-rendering-ready"), t.setAttribute("custom-item-rendering-pending", "true"));
176
- }, [o, i, y, l, c, d, n, m]), L(() => {
191
+ }, [o, i, v, l, d, b, n, p]), U(() => {
177
192
  const t = o.current?.shadowRoot;
178
193
  t && (t.querySelectorAll("[data-sortable-custom-handle]").forEach((e) => {
179
194
  e.removeAttribute("data-sortable-custom-handle"), e.removeAttribute("data-drag-trigger"), e.removeAttribute("data-id"), e.removeAttribute("draggable"), e.hasAttribute("data-sortable-handle-tabindex") && (e.removeAttribute("data-sortable-handle-tabindex"), e.removeAttribute("tabindex"));
180
- }), !(!i || !f || g === "item") && t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach((e) => {
195
+ }), !(!i || !m || A === "item") && t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach((e) => {
181
196
  const a = e.getAttribute("data-sortable-item-id");
182
- a && e.querySelectorAll(f).forEach((s) => {
183
- s.setAttribute("data-sortable-custom-handle", ""), s.setAttribute("data-drag-trigger", "custom"), s.setAttribute("data-id", a), s.setAttribute("draggable", "true"), s.hasAttribute("tabindex") || (s.setAttribute("tabindex", "-1"), s.setAttribute("data-sortable-handle-tabindex", ""));
197
+ a && e.querySelectorAll(m).forEach((s) => {
198
+ s.setAttribute("data-sortable-custom-handle", ""), s.setAttribute("data-drag-trigger", "custom"), s.setAttribute("data-id", a), s.hasAttribute("tabindex") || (s.setAttribute("tabindex", "-1"), s.setAttribute("data-sortable-handle-tabindex", ""));
184
199
  });
185
200
  }));
186
- }, [o, i, f, g, y, l, c, d, n, m]);
187
- const U = new Map(u.map((t) => [t.id, t])), G = new Map(u.map((t) => [t.id, l.filter((e) => e.listId === t.id).length])), W = !!m || n === "label" || !!d && !v, at = i ? l.map((t) => {
201
+ }, [o, i, m, A, v, l, d, b, n, p]);
202
+ const H = new Map(u.map((t) => [t.id, t])), tt = new Map(u.map((t) => [t.id, l.filter((e) => e.listId === t.id).length])), et = !!p || n === "label" || !!b && !w, ft = i ? l.map((t) => {
188
203
  const e = o.current?.shadowRoot?.querySelector(
189
204
  `.item-custom-content[data-item-content-target="${B(t.id)}"]`
190
205
  );
191
- return e ? _(
192
- /* @__PURE__ */ b.createElement(
206
+ return e ? J(
207
+ /* @__PURE__ */ f.createElement(
193
208
  "div",
194
209
  {
195
210
  "data-sortable-custom-item": "",
196
211
  "data-sortable-item-id": t.id,
197
- "data-selected": c?.includes(t.id) ? "true" : "false",
212
+ "data-selected": d?.includes(t.id) ? "true" : "false",
198
213
  "data-disabled": t.disabled ? "true" : "false",
199
214
  "data-drag-disabled": t.dragDisabled ? "true" : "false"
200
215
  },
201
216
  i(t, {
202
- selected: c?.includes(t.id) ?? !1,
217
+ selected: d?.includes(t.id) ?? !1,
203
218
  disabled: !!t.disabled,
204
219
  dragDisabled: !!t.dragDisabled,
205
- cloneOnDrag: !!t.cloneOnDrag || !!U.get(t.listId)?.cloneOnDrag,
206
- list: U.get(t.listId)
220
+ cloneOnDrag: !!t.cloneOnDrag || !!H.get(t.listId)?.cloneOnDrag,
221
+ list: H.get(t.listId)
207
222
  })
208
223
  ),
209
224
  e,
210
225
  t.id
211
226
  ) : null;
212
- }) : null, it = A ? u.map((t) => {
227
+ }) : null, mt = y ? u.map((t) => {
213
228
  const e = o.current?.shadowRoot?.querySelector(
214
229
  `.list-custom-header[data-list-header-target="${B(t.id)}"]`
215
230
  );
216
- return e ? _(
217
- /* @__PURE__ */ b.createElement("div", { "data-sortable-custom-list-header": "", "data-sortable-list-id": t.id }, A(t, {
218
- itemCount: G.get(t.id) ?? 0,
219
- dragLocked: W
231
+ return e ? J(
232
+ /* @__PURE__ */ f.createElement("div", { "data-sortable-custom-list-header": "", "data-sortable-list-id": t.id }, y(t, {
233
+ itemCount: tt.get(t.id) ?? 0,
234
+ dragLocked: et
220
235
  })),
221
236
  e,
222
237
  `header-${t.id}`
223
238
  ) : null;
224
- }) : null, ut = h ? u.map((t) => {
239
+ }) : null, pt = h ? u.map((t) => {
225
240
  const e = o.current?.shadowRoot?.querySelector(
226
241
  `.list-custom-empty[data-list-empty-target="${B(t.id)}"]`
227
242
  );
228
- return e ? _(
229
- /* @__PURE__ */ b.createElement("div", { "data-sortable-custom-empty": "", "data-sortable-list-id": t.id }, h(t, {
230
- itemCount: G.get(t.id) ?? 0,
231
- dragLocked: W,
232
- filterQuery: d ?? ""
243
+ return e ? J(
244
+ /* @__PURE__ */ f.createElement("div", { "data-sortable-custom-empty": "", "data-sortable-list-id": t.id }, h(t, {
245
+ itemCount: tt.get(t.id) ?? 0,
246
+ dragLocked: et,
247
+ filterQuery: b ?? ""
233
248
  })),
234
249
  e,
235
250
  `empty-${t.id}`
236
251
  ) : null;
237
- }) : null, X = { ref: o, ...rt };
238
- return i && (X["custom-item-rendering"] = ""), /* @__PURE__ */ b.createElement(b.Fragment, null, pt("ui-sortable", X, et), y >= 0 ? at : null, y >= 0 ? it : null, y >= 0 ? ut : null);
252
+ }) : null, rt = { ref: o, ...ct };
253
+ return i && (rt["custom-item-rendering"] = ""), /* @__PURE__ */ f.createElement(f.Fragment, null, Rt("ui-sortable", rt, lt), v >= 0 ? ft : null, v >= 0 ? mt : null, v >= 0 ? pt : null);
239
254
  });
240
- yt.displayName = "Sortable";
255
+ Pt.displayName = "Sortable";
241
256
  export {
242
- yt as Sortable,
243
- yt as default
257
+ Pt as Sortable,
258
+ Pt as default
244
259
  };
@@ -9,6 +9,9 @@ export type SortableDropIndicatorVisibility = 'active' | 'always';
9
9
  export type SortableDropzoneStyle = 'indicator' | 'container';
10
10
  export type SortableDragPreviewSize = 'match-item' | 'compact';
11
11
  export type SortableDragHandleMode = 'handle' | 'item';
12
+ export type SortableLabelKey = 'hintHandle' | 'hintItem' | 'hintCustom' | 'hintKeyboard' | 'hintNestGutter' | 'hintNestModifier' | 'hintNestArea' | 'hintPausedSort' | 'hintPausedFilter' | 'hintDisabled' | 'selectedOne' | 'selectedMany' | 'listReadOnly' | 'listClone' | 'listAccepts' | 'listFull' | 'emptyList' | 'dropHere' | 'nestHere' | 'badgeSelected' | 'badgeClone' | 'badgePinned' | 'dropPreview' | 'copyPreview' | 'releaseMove' | 'releaseMoveMany' | 'releaseCopy' | 'movingOne' | 'movingMany' | 'copyingOne' | 'copyingMany' | 'announceSelectedMany' | 'announceDragDisabled' | 'announceDragging' | 'announceDraggingMany' | 'announceDraggingCopy' | 'announceDraggingCopyMany' | 'announceCancelled' | 'announceRejected' | 'announceLifted' | 'announceLiftedMany' | 'announceLiftedHelp' | 'announceCopiedOne' | 'announceCopiedMany' | 'announceNestedOne' | 'announceNestedMany' | 'announceMovedOne' | 'announceMovedMany' | 'announceReorderedOne' | 'announceReorderedMany' | 'targetBefore' | 'targetInside' | 'targetEnd' | 'targetAfterChildren';
13
+ export type SortableLabels = Partial<Record<SortableLabelKey, string>>;
14
+ export type SortableNestTrigger = 'gutter' | 'modifier' | 'area';
12
15
  export type SortableRadiusPreset = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
13
16
  export type SortableRadius = SortableRadiusPreset | number | string;
14
17
  export type SortableSpacePreset = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -22,6 +25,12 @@ export type SortableList = {
22
25
  disabled?: boolean;
23
26
  cloneOnDrag?: boolean;
24
27
  accepts?: string[];
28
+ /** The most items the list can hold, at every nesting level. A move or copy that would go past it is refused. */
29
+ maxItems?: number;
30
+ /** The tallest the list's cards can be before the list scrolls on its own (a number of px, or a CSS length such as "20rem"). Overrides `listMaxHeight`. */
31
+ maxHeight?: number | string;
32
+ /** Anything of yours that is JSON-serialisable. It travels with the list and comes back in every event. */
33
+ data?: unknown;
25
34
  };
26
35
  export type SortableItem = {
27
36
  id: string;
@@ -34,6 +43,8 @@ export type SortableItem = {
34
43
  dragDisabled?: boolean;
35
44
  cloneOnDrag?: boolean;
36
45
  hidden?: boolean;
46
+ /** Anything of yours that is JSON-serialisable (a record, a price, a status). It travels with the item through moves and copies, and comes back in every event. */
47
+ data?: unknown;
37
48
  };
38
49
  export type SortableSelectionChangeDetail = {
39
50
  selection: string[];
@@ -49,6 +60,12 @@ export type SortablePersistenceSnapshot = {
49
60
  version: 1;
50
61
  records: SortablePersistenceRecord[];
51
62
  };
63
+ /** Set on the `change` of both sortables when items go from one to another (see `group`). */
64
+ export type SortableExternalMove = {
65
+ /** `in` on the sortable the items arrived in, `out` on the one they left. */
66
+ direction: 'in' | 'out';
67
+ peer: SortableElement;
68
+ };
52
69
  export type SortableChangeDetail = {
53
70
  items: SortableItem[];
54
71
  lists: SortableList[];
@@ -58,6 +75,8 @@ export type SortableChangeDetail = {
58
75
  source: SortableChangeSource;
59
76
  operation: SortableOperation;
60
77
  persistence: SortablePersistenceSnapshot;
78
+ /** Only when the items crossed between two sortables. */
79
+ external?: SortableExternalMove;
61
80
  };
62
81
  export type SortableRenderItemContext = {
63
82
  selected: boolean;
@@ -75,6 +94,28 @@ export type SortableRenderEmptyStateContext = {
75
94
  dragLocked: boolean;
76
95
  filterQuery: string;
77
96
  };
97
+ export type SortableDropInfo = {
98
+ /** The items being moved (not their children), as they are now. */
99
+ items: SortableItem[];
100
+ movedIds: string[];
101
+ targetListId: string;
102
+ parentId: string | null;
103
+ beforeId: string | null;
104
+ mode: SortableDropMode;
105
+ /** True when the items are copied rather than moved. */
106
+ clone: boolean;
107
+ /** The other sortable the items come from, when they are dropped across sortables (see `group`). */
108
+ from?: SortableElement;
109
+ };
110
+ export type SortableBeforeChangeDetail = SortableChangeDetail & {
111
+ target: {
112
+ listId: string;
113
+ parentId: string | null;
114
+ beforeId: string | null;
115
+ mode: SortableDropMode;
116
+ };
117
+ clone: boolean;
118
+ };
78
119
  export type SortableMoveOptions = {
79
120
  targetListId: string;
80
121
  beforeId?: string | null;
@@ -93,7 +134,10 @@ export type SortableElement = HTMLElement & {
93
134
  clearSelection(): void;
94
135
  cancelDrag(): void;
95
136
  focusItem(id: string): void;
96
- moveSelection(options: SortableMoveOptions): void;
137
+ moveSelection(options: SortableMoveOptions): boolean;
138
+ /** Moves (or copies) the selected items into another sortable, as if they were dragged there. */
139
+ moveSelectionTo(peer: SortableElement, options: SortableMoveOptions): boolean;
140
+ canDrop: ((info: SortableDropInfo) => boolean) | null;
97
141
  getPersistenceSnapshot(): SortablePersistenceSnapshot;
98
142
  };
99
143
  export type SortableProps = Omit<React.HTMLAttributes<SortableElement>, 'onChange'> & {
@@ -105,6 +149,13 @@ export type SortableProps = Omit<React.HTMLAttributes<SortableElement>, 'onChang
105
149
  persistKey?: string;
106
150
  allowFilteredDrag?: boolean;
107
151
  allowNesting?: boolean;
152
+ nestTrigger?: SortableNestTrigger;
153
+ /** Sortables with the same group can exchange items: drop a card on another one and both report it (`change`'s `external`). Ids must be unique across the group. */
154
+ group?: string;
155
+ /** Milliseconds a finger must rest on a card before it lifts (touch, dragging by the card). 0 lifts at once. Default 350. */
156
+ touchHoldDelay?: number;
157
+ /** The tallest the cards of a list can be before the list scrolls on its own: a number of px or a CSS length such as "20rem". A list's own `maxHeight` overrides it. */
158
+ listMaxHeight?: number | string;
108
159
  dropIndicatorVisibility?: SortableDropIndicatorVisibility;
109
160
  dropzoneStyle?: SortableDropzoneStyle;
110
161
  dragPreviewSize?: SortableDragPreviewSize;
@@ -114,11 +165,20 @@ export type SortableProps = Omit<React.HTMLAttributes<SortableElement>, 'onChang
114
165
  handleRadius?: SortableRadius;
115
166
  listGap?: SortableSpace;
116
167
  itemSpacing?: SortableSpace;
168
+ /** Decides whether items may go somewhere; return false to refuse. Asked on every pointer move, so keep it quick. */
169
+ canDrop?: (info: SortableDropInfo) => boolean;
117
170
  showSelectionBadge?: boolean;
171
+ labels?: SortableLabels;
172
+ hideToolbar?: boolean;
118
173
  disabled?: boolean;
119
174
  renderItem?: (item: SortableItem, context: SortableRenderItemContext) => React.ReactNode;
120
175
  renderListHeader?: (list: SortableList, context: SortableRenderListHeaderContext) => React.ReactNode;
121
176
  renderEmptyState?: (list: SortableList, context: SortableRenderEmptyStateContext) => React.ReactNode;
177
+ /**
178
+ * Called just before a move is applied, with the result it would have. Return `false` (or call
179
+ * `event.preventDefault()`) to cancel it: nothing changes and `onChange` does not fire.
180
+ */
181
+ onBeforeChange?: (detail: SortableBeforeChangeDetail, event: Event) => boolean | void;
122
182
  onChange?: (detail: SortableChangeDetail) => void;
123
183
  onItemsChange?: (items: SortableItem[]) => void;
124
184
  onSelectionChange?: (detail: SortableSelectionChangeDetail) => void;
@@ -133,6 +193,13 @@ export declare const Sortable: React.ForwardRefExoticComponent<Omit<React.HTMLAt
133
193
  persistKey?: string;
134
194
  allowFilteredDrag?: boolean;
135
195
  allowNesting?: boolean;
196
+ nestTrigger?: SortableNestTrigger;
197
+ /** Sortables with the same group can exchange items: drop a card on another one and both report it (`change`'s `external`). Ids must be unique across the group. */
198
+ group?: string;
199
+ /** Milliseconds a finger must rest on a card before it lifts (touch, dragging by the card). 0 lifts at once. Default 350. */
200
+ touchHoldDelay?: number;
201
+ /** The tallest the cards of a list can be before the list scrolls on its own: a number of px or a CSS length such as "20rem". A list's own `maxHeight` overrides it. */
202
+ listMaxHeight?: number | string;
136
203
  dropIndicatorVisibility?: SortableDropIndicatorVisibility;
137
204
  dropzoneStyle?: SortableDropzoneStyle;
138
205
  dragPreviewSize?: SortableDragPreviewSize;
@@ -142,11 +209,20 @@ export declare const Sortable: React.ForwardRefExoticComponent<Omit<React.HTMLAt
142
209
  handleRadius?: SortableRadius;
143
210
  listGap?: SortableSpace;
144
211
  itemSpacing?: SortableSpace;
212
+ /** Decides whether items may go somewhere; return false to refuse. Asked on every pointer move, so keep it quick. */
213
+ canDrop?: (info: SortableDropInfo) => boolean;
145
214
  showSelectionBadge?: boolean;
215
+ labels?: SortableLabels;
216
+ hideToolbar?: boolean;
146
217
  disabled?: boolean;
147
218
  renderItem?: (item: SortableItem, context: SortableRenderItemContext) => React.ReactNode;
148
219
  renderListHeader?: (list: SortableList, context: SortableRenderListHeaderContext) => React.ReactNode;
149
220
  renderEmptyState?: (list: SortableList, context: SortableRenderEmptyStateContext) => React.ReactNode;
221
+ /**
222
+ * Called just before a move is applied, with the result it would have. Return `false` (or call
223
+ * `event.preventDefault()`) to cancel it: nothing changes and `onChange` does not fire.
224
+ */
225
+ onBeforeChange?: (detail: SortableBeforeChangeDetail, event: Event) => boolean | void;
150
226
  onChange?: (detail: SortableChangeDetail) => void;
151
227
  onItemsChange?: (items: SortableItem[]) => void;
152
228
  onSelectionChange?: (detail: SortableSelectionChangeDetail) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Sortable.d.ts","sourceRoot":"","sources":["../../src/components/Sortable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,2BAA2B,CAAC;AAcnC,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,YAAY,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAClD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACnD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1E,MAAM,MAAM,+BAA+B,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,WAAW,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,SAAS,CAAC;AAC/D,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,MAAM,CAAC;AACvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,MAAM,GAAG,MAAM,CAAC;AAElE,MA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AC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI;wBAC3B,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI;uBAChD,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI;yCAubzD,CAAC;AAIH,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editora/ui-react",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Enterprise React component library with SaaS UI components, modern design system patterns, and wrappers for Editora UI Core.",
5
5
  "homepage": "https://editora-ecosystem.netlify.app/docs/ui-react",
6
6
  "bugs": {
@@ -854,7 +854,7 @@
854
854
  },
855
855
  "dependencies": {
856
856
  "@editora/toast": "^2.0.10",
857
- "@editora/ui-core": "^0.1.23"
857
+ "@editora/ui-core": "^0.1.24"
858
858
  },
859
859
  "keywords": [
860
860
  "editora",