@editora/ui-core 0.1.21 → 0.1.23

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.
Files changed (348) hide show
  1. package/README.md +292 -221
  2. package/dist/{ElementBase-YlTLMsGk.mjs → ElementBase-BeZT54Hj.mjs} +3 -2
  3. package/dist/ElementBase-DxbvhLJs.js +1 -0
  4. package/dist/ElementBase.d.ts +2 -1
  5. package/dist/ElementBase.d.ts.map +1 -1
  6. package/dist/__tests__/setup.d.ts +0 -2
  7. package/dist/__tests__/setup.d.ts.map +1 -1
  8. package/dist/accordion.cjs.js +4 -4
  9. package/dist/accordion.esm.js +4 -4
  10. package/dist/alert-dialog.cjs.js +32 -32
  11. package/dist/alert-dialog.esm.js +95 -75
  12. package/dist/alert.cjs.js +7 -7
  13. package/dist/alert.esm.js +7 -7
  14. package/dist/anchor.cjs.js +3 -3
  15. package/dist/anchor.esm.js +6 -5
  16. package/dist/animated-beam.cjs.js +1 -1
  17. package/dist/animated-beam.esm.js +1 -1
  18. package/dist/animated-list.cjs.js +5 -5
  19. package/dist/animated-list.esm.js +5 -5
  20. package/dist/animated-text.cjs.js +5 -5
  21. package/dist/animated-text.esm.js +5 -5
  22. package/dist/app-header.cjs.js +4 -4
  23. package/dist/app-header.esm.js +4 -4
  24. package/dist/aspect-ratio.cjs.js +4 -4
  25. package/dist/aspect-ratio.esm.js +4 -4
  26. package/dist/avatar.cjs.js +14 -14
  27. package/dist/avatar.esm.js +31 -29
  28. package/dist/badge.cjs.js +5 -5
  29. package/dist/badge.esm.js +5 -5
  30. package/dist/block-controls.cjs.js +5 -5
  31. package/dist/block-controls.esm.js +5 -5
  32. package/dist/box.cjs.js +3 -3
  33. package/dist/box.esm.js +3 -3
  34. package/dist/breadcrumb.cjs.js +6 -6
  35. package/dist/breadcrumb.esm.js +6 -6
  36. package/dist/button.cjs.js +1 -1
  37. package/dist/button.esm.js +1 -1
  38. package/dist/{calendar-DLY4acgn.mjs → calendar-B3PUKHQm.mjs} +227 -183
  39. package/dist/{calendar-Dkof-FTK.js → calendar-D-mXMgqc.js} +74 -35
  40. package/dist/calendar.cjs.js +1 -1
  41. package/dist/calendar.esm.js +1 -1
  42. package/dist/card.cjs.js +8 -8
  43. package/dist/card.esm.js +63 -20
  44. package/dist/chart.cjs.js +5 -5
  45. package/dist/chart.esm.js +7 -7
  46. package/dist/checkbox.cjs.js +3 -3
  47. package/dist/checkbox.esm.js +3 -3
  48. package/dist/collapsible.cjs.js +8 -8
  49. package/dist/collapsible.esm.js +8 -8
  50. package/dist/collection.cjs.js +1 -1
  51. package/dist/collection.esm.js +9 -8
  52. package/dist/color-picker.cjs.js +30 -10
  53. package/dist/color-picker.esm.js +84 -62
  54. package/dist/combobox.cjs.js +29 -27
  55. package/dist/combobox.esm.js +51 -45
  56. package/dist/command-palette.cjs.js +1 -1
  57. package/dist/command-palette.esm.js +1 -1
  58. package/dist/command.cjs.js +2 -2
  59. package/dist/command.esm.js +3 -3
  60. package/dist/components/ui-alert-dialog.d.ts +1 -0
  61. package/dist/components/ui-alert-dialog.d.ts.map +1 -1
  62. package/dist/components/ui-anchor.d.ts +2 -1
  63. package/dist/components/ui-anchor.d.ts.map +1 -1
  64. package/dist/components/ui-avatar.d.ts +1 -0
  65. package/dist/components/ui-avatar.d.ts.map +1 -1
  66. package/dist/components/ui-button.d.ts +1 -0
  67. package/dist/components/ui-button.d.ts.map +1 -1
  68. package/dist/components/ui-calendar.d.ts.map +1 -1
  69. package/dist/components/ui-card.d.ts +3 -0
  70. package/dist/components/ui-card.d.ts.map +1 -1
  71. package/dist/components/ui-checkbox.d.ts.map +1 -1
  72. package/dist/components/ui-collection.d.ts +2 -1
  73. package/dist/components/ui-collection.d.ts.map +1 -1
  74. package/dist/components/ui-color-picker.d.ts.map +1 -1
  75. package/dist/components/ui-combobox.d.ts.map +1 -1
  76. package/dist/components/ui-data-table.d.ts.map +1 -1
  77. package/dist/components/ui-date-field.d.ts.map +1 -1
  78. package/dist/components/ui-date-picker.d.ts.map +1 -1
  79. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  80. package/dist/components/ui-date-range-time-picker.d.ts.map +1 -1
  81. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  82. package/dist/components/ui-dock.d.ts +1 -0
  83. package/dist/components/ui-dock.d.ts.map +1 -1
  84. package/dist/components/ui-drawer.d.ts.map +1 -1
  85. package/dist/components/ui-dropdown.d.ts.map +1 -1
  86. package/dist/components/ui-field.d.ts.map +1 -1
  87. package/dist/components/ui-file-upload.d.ts.map +1 -1
  88. package/dist/components/ui-form.d.ts +1 -0
  89. package/dist/components/ui-form.d.ts.map +1 -1
  90. package/dist/components/ui-gantt.d.ts.map +1 -1
  91. package/dist/components/ui-input.d.ts.map +1 -1
  92. package/dist/components/ui-menu.d.ts.map +1 -1
  93. package/dist/components/ui-multi-select.d.ts.map +1 -1
  94. package/dist/components/ui-number-field.d.ts.map +1 -1
  95. package/dist/components/ui-password-field.d.ts.map +1 -1
  96. package/dist/components/ui-pin-input.d.ts +1 -0
  97. package/dist/components/ui-pin-input.d.ts.map +1 -1
  98. package/dist/components/ui-placement-grid.d.ts.map +1 -1
  99. package/dist/components/ui-progress.d.ts.map +1 -1
  100. package/dist/components/ui-radio.d.ts.map +1 -1
  101. package/dist/components/ui-rating.d.ts +1 -0
  102. package/dist/components/ui-rating.d.ts.map +1 -1
  103. package/dist/components/ui-roving-focus-group.d.ts +2 -1
  104. package/dist/components/ui-roving-focus-group.d.ts.map +1 -1
  105. package/dist/components/ui-select.d.ts.map +1 -1
  106. package/dist/components/ui-sortable.d.ts.map +1 -1
  107. package/dist/components/ui-switch.d.ts.map +1 -1
  108. package/dist/components/ui-table.d.ts.map +1 -1
  109. package/dist/components/ui-tabs.d.ts +1 -0
  110. package/dist/components/ui-tabs.d.ts.map +1 -1
  111. package/dist/components/ui-tags-input.d.ts +1 -0
  112. package/dist/components/ui-tags-input.d.ts.map +1 -1
  113. package/dist/components/ui-textarea.d.ts.map +1 -1
  114. package/dist/components/ui-time-field.d.ts.map +1 -1
  115. package/dist/components/ui-toggle-group.d.ts.map +1 -1
  116. package/dist/components/ui-toggle.d.ts.map +1 -1
  117. package/dist/components/ui-tree.d.ts.map +1 -1
  118. package/dist/components/ui-wizard.d.ts.map +1 -1
  119. package/dist/container.cjs.js +1 -1
  120. package/dist/container.esm.js +1 -1
  121. package/dist/context-menu.cjs.js +3 -3
  122. package/dist/context-menu.esm.js +5 -5
  123. package/dist/control-group.cjs.js +1 -1
  124. package/dist/control-group.esm.js +1 -1
  125. package/dist/control-name-BmoI1m3a.js +1 -0
  126. package/dist/control-name-Bpj7F34X.mjs +48 -0
  127. package/dist/data-table.cjs.js +6 -3
  128. package/dist/data-table.esm.js +146 -143
  129. package/dist/date-field.cjs.js +5 -5
  130. package/dist/date-field.esm.js +34 -31
  131. package/dist/date-picker.cjs.js +16 -16
  132. package/dist/date-picker.esm.js +49 -45
  133. package/dist/date-range-picker.cjs.js +5 -5
  134. package/dist/date-range-picker.esm.js +120 -118
  135. package/dist/date-range-time-picker.cjs.js +22 -22
  136. package/dist/date-range-time-picker.esm.js +89 -85
  137. package/dist/date-time-picker.cjs.js +23 -23
  138. package/dist/date-time-picker.esm.js +103 -99
  139. package/dist/{date-time-utils-y1N2gvG2.mjs → date-time-utils-BTlxnz5j.mjs} +1 -1
  140. package/dist/{date-time-utils-Dmost5Ee.js → date-time-utils-y3AvNvGe.js} +1 -1
  141. package/dist/description.cjs.js +4 -4
  142. package/dist/description.esm.js +4 -4
  143. package/dist/dialog.cjs.js +3 -3
  144. package/dist/dialog.esm.js +3 -3
  145. package/dist/direction-provider.cjs.js +1 -1
  146. package/dist/direction-provider.esm.js +1 -1
  147. package/dist/dismissable-layer.cjs.js +1 -1
  148. package/dist/dismissable-layer.esm.js +1 -1
  149. package/dist/dock.cjs.js +12 -12
  150. package/dist/dock.esm.js +73 -75
  151. package/dist/domElement-DazSZBjV.js +1 -0
  152. package/dist/domElement-ZlSGVP0l.mjs +5 -0
  153. package/dist/domElement.d.ts +2 -0
  154. package/dist/domElement.d.ts.map +1 -0
  155. package/dist/drawer.cjs.js +19 -19
  156. package/dist/drawer.esm.js +58 -58
  157. package/dist/dropdown.cjs.js +13 -13
  158. package/dist/dropdown.esm.js +50 -49
  159. package/dist/empty-state.cjs.js +4 -4
  160. package/dist/empty-state.esm.js +4 -4
  161. package/dist/field-error.cjs.js +2 -2
  162. package/dist/field-error.esm.js +2 -2
  163. package/dist/field.cjs.js +12 -12
  164. package/dist/field.esm.js +84 -75
  165. package/dist/fieldset.cjs.js +5 -5
  166. package/dist/fieldset.esm.js +5 -5
  167. package/dist/file-upload.cjs.js +4 -4
  168. package/dist/file-upload.esm.js +6 -4
  169. package/dist/flex.cjs.js +1 -1
  170. package/dist/flex.esm.js +1 -1
  171. package/dist/floating-toolbar.cjs.js +8 -8
  172. package/dist/floating-toolbar.esm.js +10 -10
  173. package/dist/focus-scope.cjs.js +1 -1
  174. package/dist/focus-scope.esm.js +1 -1
  175. package/dist/form.cjs.js +13 -13
  176. package/dist/form.esm.js +23 -13
  177. package/dist/gantt.cjs.js +43 -32
  178. package/dist/gantt.esm.js +100 -89
  179. package/dist/grid.cjs.js +1 -1
  180. package/dist/grid.esm.js +1 -1
  181. package/dist/hover-card.cjs.js +1 -1
  182. package/dist/hover-card.esm.js +1 -1
  183. package/dist/icon-cloud.cjs.js +4 -4
  184. package/dist/icon-cloud.esm.js +4 -4
  185. package/dist/icon.cjs.js +1 -1
  186. package/dist/icon.esm.js +1 -1
  187. package/dist/index.cjs.js +1 -1
  188. package/dist/index.esm.js +121 -118
  189. package/dist/inline-edit.cjs.js +2 -2
  190. package/dist/inline-edit.esm.js +2 -2
  191. package/dist/input.cjs.js +14 -14
  192. package/dist/input.esm.js +40 -33
  193. package/dist/label.cjs.js +4 -4
  194. package/dist/label.esm.js +4 -4
  195. package/dist/layout.cjs.js +1 -1
  196. package/dist/layout.esm.js +1 -1
  197. package/dist/{listbox-B6QgECax.js → listbox-CTpRpuF7.js} +1 -1
  198. package/dist/{listbox-DJamVeFj.mjs → listbox-hMVOhKHC.mjs} +1 -1
  199. package/dist/listbox.cjs.js +1 -1
  200. package/dist/listbox.esm.js +1 -1
  201. package/dist/marquee.cjs.js +4 -4
  202. package/dist/marquee.esm.js +4 -4
  203. package/dist/masonry-grid.cjs.js +1 -1
  204. package/dist/masonry-grid.esm.js +1 -1
  205. package/dist/{menu-item-styles-CbNUEwP2.js → menu-item-styles-B4onAr4C.js} +3 -3
  206. package/dist/{menu-item-styles-CZiPwPwl.mjs → menu-item-styles-IGSFLAHu.mjs} +3 -3
  207. package/dist/menu.cjs.js +7 -7
  208. package/dist/menu.esm.js +30 -29
  209. package/dist/menubar.cjs.js +1 -1
  210. package/dist/menubar.esm.js +3 -3
  211. package/dist/meter.cjs.js +2 -2
  212. package/dist/meter.esm.js +2 -2
  213. package/dist/multi-select.cjs.js +17 -17
  214. package/dist/multi-select.esm.js +52 -44
  215. package/dist/navigation-menu.cjs.js +2 -2
  216. package/dist/navigation-menu.esm.js +2 -2
  217. package/dist/number-field.cjs.js +11 -13
  218. package/dist/number-field.esm.js +30 -28
  219. package/dist/number-ticker.cjs.js +5 -5
  220. package/dist/number-ticker.esm.js +5 -5
  221. package/dist/odometer.cjs.js +3 -3
  222. package/dist/odometer.esm.js +3 -3
  223. package/dist/orbiter.cjs.js +4 -4
  224. package/dist/orbiter.esm.js +4 -4
  225. package/dist/pagination.cjs.js +2 -2
  226. package/dist/pagination.esm.js +2 -2
  227. package/dist/{panel-group-CaD0_KQf.js → panel-group-BVHJEdfx.js} +1 -1
  228. package/dist/{panel-group-8sVNnGxg.mjs → panel-group-BxO_eNW6.mjs} +1 -1
  229. package/dist/panel-group.cjs.js +1 -1
  230. package/dist/panel-group.esm.js +1 -1
  231. package/dist/panel.cjs.js +1 -1
  232. package/dist/panel.esm.js +1 -1
  233. package/dist/password-field.cjs.js +23 -23
  234. package/dist/password-field.esm.js +48 -47
  235. package/dist/pin-input.cjs.js +8 -6
  236. package/dist/pin-input.esm.js +21 -15
  237. package/dist/placement-grid.cjs.js +4 -4
  238. package/dist/placement-grid.esm.js +58 -58
  239. package/dist/plugin-panel.cjs.js +2 -2
  240. package/dist/plugin-panel.esm.js +2 -2
  241. package/dist/popover.cjs.js +6 -6
  242. package/dist/popover.esm.js +5 -5
  243. package/dist/portal.cjs.js +1 -1
  244. package/dist/portal.esm.js +1 -1
  245. package/dist/positioner.cjs.js +1 -1
  246. package/dist/positioner.esm.js +1 -1
  247. package/dist/presence.cjs.js +1 -1
  248. package/dist/presence.esm.js +1 -1
  249. package/dist/primitives/control-name.d.ts +30 -0
  250. package/dist/primitives/control-name.d.ts.map +1 -0
  251. package/dist/primitives/trigger.d.ts +2 -0
  252. package/dist/primitives/trigger.d.ts.map +1 -0
  253. package/dist/progress.cjs.js +4 -4
  254. package/dist/progress.esm.js +20 -18
  255. package/dist/quick-actions.cjs.js +4 -4
  256. package/dist/quick-actions.esm.js +4 -4
  257. package/dist/radio-group.cjs.js +2 -2
  258. package/dist/radio-group.esm.js +2 -2
  259. package/dist/radio.cjs.js +3 -3
  260. package/dist/radio.esm.js +3 -3
  261. package/dist/rating.cjs.js +18 -17
  262. package/dist/rating.esm.js +91 -92
  263. package/dist/roving-focus-group.cjs.js +1 -1
  264. package/dist/roving-focus-group.esm.js +11 -10
  265. package/dist/{runtime-D1gFh1fS.mjs → runtime-CFnK53iC.mjs} +133 -94
  266. package/dist/runtime-DwE-tizc.js +1 -0
  267. package/dist/runtime.cjs.js +1 -1
  268. package/dist/runtime.d.ts +1 -1
  269. package/dist/runtime.d.ts.map +1 -1
  270. package/dist/runtime.esm.js +29 -26
  271. package/dist/scroll-area.cjs.js +1 -1
  272. package/dist/scroll-area.esm.js +1 -1
  273. package/dist/section.cjs.js +1 -1
  274. package/dist/section.esm.js +1 -1
  275. package/dist/select.cjs.js +20 -19
  276. package/dist/select.esm.js +37 -33
  277. package/dist/selection-popup.cjs.js +3 -3
  278. package/dist/selection-popup.esm.js +3 -3
  279. package/dist/separator.cjs.js +8 -8
  280. package/dist/separator.esm.js +8 -8
  281. package/dist/sidebar.cjs.js +9 -9
  282. package/dist/sidebar.esm.js +16 -16
  283. package/dist/skeleton.cjs.js +8 -8
  284. package/dist/skeleton.esm.js +8 -8
  285. package/dist/slider.cjs.js +4 -4
  286. package/dist/slider.esm.js +4 -4
  287. package/dist/slot.cjs.js +4 -4
  288. package/dist/slot.esm.js +4 -4
  289. package/dist/sortable.cjs.js +43 -44
  290. package/dist/sortable.esm.js +100 -101
  291. package/dist/spinning-text.cjs.js +4 -4
  292. package/dist/spinning-text.esm.js +4 -4
  293. package/dist/split-button.cjs.js +1 -1
  294. package/dist/split-button.esm.js +2 -2
  295. package/dist/splitter.cjs.js +1 -1
  296. package/dist/splitter.esm.js +1 -1
  297. package/dist/stepper.cjs.js +2 -2
  298. package/dist/stepper.esm.js +2 -2
  299. package/dist/switch.cjs.js +11 -13
  300. package/dist/switch.esm.js +11 -13
  301. package/dist/table.cjs.js +10 -7
  302. package/dist/table.esm.js +47 -44
  303. package/dist/tabs.cjs.js +21 -22
  304. package/dist/tabs.esm.js +71 -67
  305. package/dist/tags-input.cjs.js +9 -9
  306. package/dist/tags-input.esm.js +32 -25
  307. package/dist/textarea.cjs.js +10 -10
  308. package/dist/textarea.esm.js +30 -21
  309. package/dist/theme.d.ts +18 -0
  310. package/dist/theme.d.ts.map +1 -1
  311. package/dist/time-field.cjs.js +5 -5
  312. package/dist/time-field.esm.js +21 -18
  313. package/dist/time-picker.cjs.js +4 -4
  314. package/dist/time-picker.esm.js +6 -6
  315. package/dist/timeline.cjs.js +3 -3
  316. package/dist/timeline.esm.js +5 -5
  317. package/dist/toast.cjs.js +7 -7
  318. package/dist/toast.esm.js +14 -14
  319. package/dist/toggle-group.cjs.js +6 -7
  320. package/dist/toggle-group.esm.js +64 -61
  321. package/dist/toggle.cjs.js +18 -18
  322. package/dist/toggle.esm.js +32 -31
  323. package/dist/toolbar.cjs.js +1 -1
  324. package/dist/toolbar.esm.js +1 -1
  325. package/dist/tooltip.cjs.js +5 -5
  326. package/dist/tooltip.esm.js +5 -5
  327. package/dist/transfer-list.cjs.js +4 -4
  328. package/dist/transfer-list.esm.js +4 -4
  329. package/dist/{tree-B3kE8ESs.mjs → tree-B_oQput6.mjs} +35 -34
  330. package/dist/tree-SivHxcAy.js +39 -0
  331. package/dist/tree-item.cjs.js +1 -1
  332. package/dist/tree-item.esm.js +1 -1
  333. package/dist/tree.cjs.js +1 -1
  334. package/dist/tree.esm.js +1 -1
  335. package/dist/trigger-BjnxLCeQ.mjs +9 -0
  336. package/dist/trigger-DkPsKxsP.js +1 -0
  337. package/dist/{ui-button-rXQOS9QJ.js → ui-button-BPrzJScZ.js} +29 -28
  338. package/dist/{ui-button-Q0GNNWKC.mjs → ui-button-Co8Sid6t.mjs} +70 -49
  339. package/dist/{ui-icon-BzVNC_lr.js → ui-icon-D3avtxX_.js} +5 -5
  340. package/dist/{ui-icon-YI6lyuqU.mjs → ui-icon-DLhB08Fo.mjs} +3 -3
  341. package/dist/visually-hidden.cjs.js +1 -1
  342. package/dist/visually-hidden.esm.js +1 -1
  343. package/dist/wizard.cjs.js +12 -13
  344. package/dist/wizard.esm.js +18 -16
  345. package/package.json +2 -2
  346. package/dist/ElementBase-EV6mVBUV.js +0 -1
  347. package/dist/runtime-CTaOSmBj.js +0 -1
  348. package/dist/tree-Dx_kv_ih.js +0 -39
@@ -1,4 +1,4 @@
1
- import { E as ee } from "./ElementBase-YlTLMsGk.mjs";
1
+ import { E as ee } from "./ElementBase-BeZT54Hj.mjs";
2
2
  function te(l, e, t, r = 56, i = 18) {
3
3
  if (!Number.isFinite(l) || !(t > e)) return 0;
4
4
  const s = Math.min(r, (t - e) / 2);
@@ -22,7 +22,7 @@ const se = 1, oe = 44, ne = 72, ae = `
22
22
  --ui-sortable-surface-muted: color-mix(in srgb, var(--ui-sortable-surface) 92%, #eff6ff);
23
23
  --ui-sortable-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent);
24
24
  --ui-sortable-text: var(--ui-color-text, #0f172a);
25
- --ui-sortable-muted: var(--ui-color-muted, #64748b);
25
+ --ui-sortable-muted: var(--ui-color-muted, #526175);
26
26
  --ui-sortable-shadow:
27
27
  0 1px 3px rgba(15, 23, 42, 0.06),
28
28
  0 16px 34px rgba(15, 23, 42, 0.08);
@@ -761,7 +761,7 @@ function K(l) {
761
761
  return [];
762
762
  }
763
763
  }
764
- function y(l) {
764
+ function I(l) {
765
765
  return l.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
766
766
  }
767
767
  function k(l, e) {
@@ -810,15 +810,15 @@ function ce(l, e, t, r, i, s) {
810
810
  !x || d.has(g) || (d.add(g), o.push(g), (a.get(k(x.listId, g)) || []).forEach(u));
811
811
  };
812
812
  r.forEach(u);
813
- const c = l.map(P), h = c.filter((g) => d.has(g.id)), f = i ? c.map(P) : c.filter((g) => !d.has(g.id)), _ = i ? h.map((g) => s(g, o)) : h.map(P), I = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
813
+ const c = l.map(P), h = c.filter((g) => d.has(g.id)), _ = i ? c.map(P) : c.filter((g) => !d.has(g.id)), b = i ? h.map((g) => s(g, o)) : h.map(P), S = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
814
814
  i && h.forEach((g, x) => {
815
- I.set(g.id, _[x].id), m.set(_[x].id, g.id);
816
- }), _.forEach((g) => {
815
+ S.set(g.id, b[x].id), m.set(b[x].id, g.id);
816
+ }), b.forEach((g) => {
817
817
  const x = i ? m.get(g.id) : g.id, M = x ? n.get(x) : null;
818
- M && (i && (g.parentId = M.parentId && I.has(M.parentId) && I.get(M.parentId) || null), g.listId = t.listId);
818
+ M && (i && (g.parentId = M.parentId && S.has(M.parentId) && S.get(M.parentId) || null), g.listId = t.listId);
819
819
  });
820
- const v = r.map((g) => I.get(g) || g), D = [...f, ..._], A = E(f), z = k(t.listId, t.parentId), b = [...A.get(z) || []], S = t.beforeId ? b.indexOf(t.beforeId) : b.length, R = S >= 0 ? S : b.length;
821
- b.splice(R, 0, ...v), A.set(z, b), E(_).forEach((g, x) => {
820
+ const v = r.map((g) => S.get(g) || g), D = [..._, ...b], A = E(_), z = k(t.listId, t.parentId), f = [...A.get(z) || []], y = t.beforeId ? f.indexOf(t.beforeId) : f.length, R = y >= 0 ? y : f.length;
821
+ f.splice(R, 0, ...v), A.set(z, f), E(b).forEach((g, x) => {
822
822
  const [, M] = x.split("::");
823
823
  (M || "") !== "__root__" && A.set(x, [...g]);
824
824
  });
@@ -879,11 +879,11 @@ function U(l, e) {
879
879
  e.forEach((o, u) => {
880
880
  const c = typeof o?.id == "string" && o.id.trim() ? o.id.trim() : "", h = typeof o?.label == "string" && o.label.trim() ? o.label.trim() : "";
881
881
  if (!c || !h) return;
882
- const f = typeof o?.listId == "string" && t.has(o.listId) ? o.listId : l[0].id;
882
+ const _ = typeof o?.listId == "string" && t.has(o.listId) ? o.listId : l[0].id;
883
883
  r.push({
884
884
  id: c,
885
885
  label: h,
886
- listId: f,
886
+ listId: _,
887
887
  parentId: typeof o?.parentId == "string" && o.parentId.trim() ? o.parentId.trim() : null,
888
888
  description: typeof o?.description == "string" ? o.description : "",
889
889
  order: Number.isFinite(o?.order) ? Number(o.order) : u,
@@ -905,8 +905,8 @@ function U(l, e) {
905
905
  c ? c.push(o) : s.set(u, [o]);
906
906
  }), s.forEach((o) => o.sort((u, c) => u.order - c.order || u.label.localeCompare(c.label)));
907
907
  const n = [], a = /* @__PURE__ */ new Set(), d = (o, u) => {
908
- (s.get(k(o, u)) || []).forEach((h, f) => {
909
- a.has(h.id) || (a.add(h.id), h.order = f, n.push(h), d(o, h.id));
908
+ (s.get(k(o, u)) || []).forEach((h, _) => {
909
+ a.has(h.id) || (a.add(h.id), h.order = _, n.push(h), d(o, h.id));
910
910
  });
911
911
  };
912
912
  return l.forEach((o) => d(o.id, null)), r.forEach((o) => {
@@ -962,22 +962,22 @@ function W(l, e) {
962
962
  }
963
963
  function Q(l, e, t, r, i) {
964
964
  const s = T(l), n = E(l), a = /* @__PURE__ */ new Map(), d = (c, h) => {
965
- const f = [...n.get(k(c, h)) || []];
966
- return i === "label" && f.sort((_, I) => {
967
- const m = s.get(_), v = s.get(I);
965
+ const _ = [...n.get(k(c, h)) || []];
966
+ return i === "label" && _.sort((b, S) => {
967
+ const m = s.get(b), v = s.get(S);
968
968
  return !m || !v ? 0 : m.label.localeCompare(v.label);
969
- }), f;
970
- }, o = (c, h, f) => {
971
- const _ = [];
972
- return d(c, h).forEach((I) => {
973
- const m = s.get(I);
969
+ }), _;
970
+ }, o = (c, h, _) => {
971
+ const b = [];
972
+ return d(c, h).forEach((S) => {
973
+ const m = s.get(S);
974
974
  if (!m || m.hidden) return;
975
975
  const v = o(c, m.id);
976
- !W(m, r) && v.length === 0 || (_.push({
976
+ !W(m, r) && v.length === 0 || (b.push({
977
977
  id: m.id,
978
978
  disabled: m.disabled
979
- }), v.length && _.push(...v));
980
- }), _;
979
+ }), v.length && b.push(...v));
980
+ }), b;
981
981
  };
982
982
  return Array.from(new Set(l.map((c) => c.listId))).forEach((c) => {
983
983
  a.set(c, o(c, null));
@@ -1098,49 +1098,49 @@ class he extends ee {
1098
1098
  }
1099
1099
  render() {
1100
1100
  this._syncStateFromAttributes();
1101
- const e = this._measureItemShellRects(), t = new Set(this._draggingIds()), r = new Set(this._selection), s = !!this._dragState?.keyboard ? this._projectedMoveResult() : null, n = s?.items || this._items, a = new Set(s?.insertedRootIds || []), d = !!this._dragState && !this._dragState.keyboard && !!this._dragState.dropTarget, o = Q(n, r, t, this.filterQuery, this.sort), u = this._resolvedFocusedId(o), c = this._isDragLocked(), h = this._selection.length, f = this.getAttribute("allow-nesting") !== "false", _ = this.getAttribute("drop-indicator-visibility") === "always" ? "always" : "active", I = this._dropzoneStyle(), m = this.getAttribute("show-selection-badge") !== "false", v = this._dragHandleMode(), D = this._usesCustomHandleSelector(), A = c ? this.sort === "label" ? "Dragging is paused while alphabetical sorting is active." : this.filterQuery && !this.hasAttribute("allow-filtered-drag") ? "Dragging is paused while the list is filtered." : "Dragging is currently disabled." : this._dragState?.keyboard ? "Keyboard drag active. Use arrow keys to choose a drop target, Space or Enter to drop, and Escape to cancel." : v === "item" ? "Drag from anywhere on an item, or press Space on a focused item to start keyboard reordering." : D ? "Use your custom drag handle element, or press Space on a focused item to start keyboard reordering." : "Use the handle to drag, or press Space on a focused item to start keyboard reordering.", z = `
1101
+ const e = this._measureItemShellRects(), t = new Set(this._draggingIds()), r = new Set(this._selection), s = !!this._dragState?.keyboard ? this._projectedMoveResult() : null, n = s?.items || this._items, a = new Set(s?.insertedRootIds || []), d = !!this._dragState && !this._dragState.keyboard && !!this._dragState.dropTarget, o = Q(n, r, t, this.filterQuery, this.sort), u = this._resolvedFocusedId(o), c = this._isDragLocked(), h = this._selection.length, _ = this.getAttribute("allow-nesting") !== "false", b = this.getAttribute("drop-indicator-visibility") === "always" ? "always" : "active", S = this._dropzoneStyle(), m = this.getAttribute("show-selection-badge") !== "false", v = this._dragHandleMode(), D = this._usesCustomHandleSelector(), A = c ? this.sort === "label" ? "Dragging is paused while alphabetical sorting is active." : this.filterQuery && !this.hasAttribute("allow-filtered-drag") ? "Dragging is paused while the list is filtered." : "Dragging is currently disabled." : this._dragState?.keyboard ? "Keyboard drag active. Use arrow keys to choose a drop target, Space or Enter to drop, and Escape to cancel." : v === "item" ? "Drag from anywhere on an item, or press Space on a focused item to start keyboard reordering." : D ? "Use your custom drag handle element, or press Space on a focused item to start keyboard reordering." : "Use the handle to drag, or press Space on a focused item to start keyboard reordering.", z = `
1102
1102
  <style>${ae}</style>
1103
1103
  <div
1104
1104
  class="root"
1105
1105
  part="root"
1106
1106
  data-drag-locked="${c}"
1107
1107
  data-drag-preview="${a.size || d ? "true" : "false"}"
1108
- data-drop-indicator-visibility="${_}"
1109
- data-dropzone-style="${I}"
1108
+ data-drop-indicator-visibility="${b}"
1109
+ data-dropzone-style="${S}"
1110
1110
  >
1111
1111
  <div class="toolbar" part="toolbar">
1112
- <div class="helper">${y(A)}</div>
1112
+ <div class="helper" id="ui-sortable-helper">${I(A)}</div>
1113
1113
  <div class="helper selection-summary">
1114
1114
  <span class="selection-pill" part="selection-count">${h}</span>
1115
1115
  <span class="selection-text">${h === 1 ? "item selected" : "items selected"}</span>
1116
1116
  </div>
1117
1117
  </div>
1118
1118
  <div class="lists" part="lists">
1119
- ${this._lists.map((b) => {
1120
- const S = o.get(b.id) || [], R = S.length ? this._renderListTree(n, b, u, t, f, a, m) : "", $ = b.disabled ? "This list is read-only." : b.cloneOnDrag ? "Dragging from this list creates a copy." : b.accepts?.length ? `Accepts drops from: ${b.accepts.join(", ")}` : "";
1119
+ ${this._lists.map((f) => {
1120
+ const y = o.get(f.id) || [], R = y.length ? this._renderListTree(n, f, u, t, _, a, m) : "", $ = f.disabled ? "This list is read-only." : f.cloneOnDrag ? "Dragging from this list creates a copy." : f.accepts?.length ? `Accepts drops from: ${f.accepts.join(", ")}` : "";
1121
1121
  return `
1122
1122
  <section
1123
1123
  class="list"
1124
1124
  part="list"
1125
- data-list-id="${y(b.id)}"
1126
- data-orientation="${b.orientation}"
1127
- data-disabled="${b.disabled}"
1128
- aria-label="${y(b.label)}"
1125
+ data-list-id="${I(f.id)}"
1126
+ data-orientation="${f.orientation}"
1127
+ data-disabled="${f.disabled}"
1128
+ aria-label="${I(f.label)}"
1129
1129
  >
1130
1130
  <header class="list-header">
1131
- <div class="list-custom-header" part="list-custom-header" data-list-header-target="${y(b.id)}"></div>
1131
+ <div class="list-custom-header" part="list-custom-header" data-list-header-target="${I(f.id)}"></div>
1132
1132
  <div class="list-default-header">
1133
1133
  <div class="list-topline">
1134
- <div class="list-label">${y(b.label)}</div>
1135
- <span class="list-count">${S.length}</span>
1134
+ <div class="list-label">${I(f.label)}</div>
1135
+ <span class="list-count">${y.length}</span>
1136
1136
  </div>
1137
- ${b.description ? `<div class="list-description">${y(b.description)}</div>` : ""}
1138
- ${$ ? `<div class="list-helper">${y($)}</div>` : ""}
1137
+ ${f.description ? `<div class="list-description">${I(f.description)}</div>` : ""}
1138
+ ${$ ? `<div class="list-helper">${I($)}</div>` : ""}
1139
1139
  </div>
1140
1140
  </header>
1141
- <div class="items" role="listbox" aria-multiselectable="true" aria-label="${y(b.label)}">
1142
- ${R || `<div class="list-custom-empty" part="list-custom-empty" data-list-empty-target="${y(b.id)}"></div><div class="empty">${y(b.emptyLabel)}</div>${this._renderDropzone({
1143
- listId: b.id,
1141
+ <div class="items" role="${y.length ? "listbox" : "group"}" ${y.length ? 'aria-multiselectable="true"' : ""} aria-label="${I(f.label)}" aria-describedby="ui-sortable-helper">
1142
+ ${R || `<div class="list-custom-empty" part="list-custom-empty" data-list-empty-target="${I(f.id)}"></div><div class="empty">${I(f.emptyLabel)}</div>${this._renderDropzone({
1143
+ listId: f.id,
1144
1144
  parentId: null,
1145
1145
  beforeId: null,
1146
1146
  mode: "before"
@@ -1150,7 +1150,7 @@ class he extends ee {
1150
1150
  `;
1151
1151
  }).join("")}
1152
1152
  </div>
1153
- <div class="sr-only" aria-live="polite" aria-atomic="true">${y(this._liveMessage)}</div>
1153
+ <div class="sr-only" aria-live="polite" aria-atomic="true">${I(this._liveMessage)}</div>
1154
1154
  </div>
1155
1155
  `;
1156
1156
  this.setContent(z), queueMicrotask(() => {
@@ -1162,7 +1162,7 @@ class he extends ee {
1162
1162
  e !== this._lastListsAttr && (this._lastListsAttr = e, this._lists = Y(K(e)));
1163
1163
  const t = this.getAttribute("items");
1164
1164
  if (t !== this._lastItemsAttr) {
1165
- this._lastItemsAttr = t, this._items = U(this._lists, K(t));
1165
+ this._lastItemsAttr = t, this._items = U(this._lists, K(t)), this._lastSelectionAttr = null;
1166
1166
  const i = this.getAttribute("persist-key");
1167
1167
  i && this._hydratedPersistKey !== i && (this._items = this._restorePersistedItems(i, this._items), this._hydratedPersistKey = i);
1168
1168
  }
@@ -1350,26 +1350,26 @@ class he extends ee {
1350
1350
  const a = this._ensureDragPreviewOverlay();
1351
1351
  a.innerHTML = `
1352
1352
  <div class="placeholder-content">
1353
- <div class="placeholder-kicker">${y(e.kicker)}</div>
1354
- <div class="placeholder-title">${y(e.title)}</div>
1355
- <div class="placeholder-description">${y(e.description)}</div>
1353
+ <div class="placeholder-kicker">${I(e.kicker)}</div>
1354
+ <div class="placeholder-title">${I(e.title)}</div>
1355
+ <div class="placeholder-description">${I(e.description)}</div>
1356
1356
  </div>
1357
1357
  `;
1358
1358
  const d = n.getBoundingClientRect();
1359
1359
  t && t.setAttribute("data-drag-preview", "true"), a.style.setProperty("left", "-9999px"), a.style.setProperty("top", "-9999px"), s ? (a.style.setProperty("inline-size", `${s.width}px`), a.style.setProperty("block-size", `${s.height}px`)) : (a.style.removeProperty("inline-size"), a.style.removeProperty("block-size")), a.setAttribute("data-visible", "true");
1360
- const o = a.getBoundingClientRect(), u = s?.width ?? o.width, c = s?.height ?? o.height, h = Math.max(16, Math.min(d.left, window.innerWidth - u - 16)), f = Math.max(
1360
+ const o = a.getBoundingClientRect(), u = s?.width ?? o.width, c = s?.height ?? o.height, h = Math.max(16, Math.min(d.left, window.innerWidth - u - 16)), _ = Math.max(
1361
1361
  16,
1362
1362
  Math.min(
1363
1363
  d.top + (d.height - c) / 2,
1364
1364
  window.innerHeight - c - 16
1365
1365
  )
1366
1366
  );
1367
- a.style.setProperty("left", `${Math.round(h)}px`), a.style.setProperty("top", `${Math.round(f)}px`);
1367
+ a.style.setProperty("left", `${Math.round(h)}px`), a.style.setProperty("top", `${Math.round(_)}px`);
1368
1368
  }
1369
1369
  _setDraggingVisualState(e, t) {
1370
1370
  e.forEach((r) => {
1371
1371
  const i = this._findItemElement(r);
1372
- i && (i.setAttribute("data-dragging", t ? "true" : "false"), i.setAttribute("aria-grabbed", t ? "true" : "false"), t && i.getBoundingClientRect());
1372
+ i && (i.setAttribute("data-dragging", t ? "true" : "false"), t && i.getBoundingClientRect());
1373
1373
  });
1374
1374
  }
1375
1375
  _setDropTarget(e, t) {
@@ -1485,13 +1485,13 @@ class he extends ee {
1485
1485
  }
1486
1486
  _renderListTree(e, t, r, i, s, n, a) {
1487
1487
  const d = T(e), o = E(e), u = (c) => {
1488
- const h = o.get(k(t.id, c)) || [], f = this.sort === "label" ? [...h].sort((I, m) => {
1489
- const v = d.get(I), D = d.get(m);
1488
+ const h = o.get(k(t.id, c)) || [], _ = this.sort === "label" ? [...h].sort((S, m) => {
1489
+ const v = d.get(S), D = d.get(m);
1490
1490
  return !v || !D ? 0 : v.label.localeCompare(D.label);
1491
1491
  }) : h;
1492
- let _ = "";
1493
- return f.forEach((I) => {
1494
- const m = d.get(I);
1492
+ let b = "";
1493
+ return _.forEach((S) => {
1494
+ const m = d.get(S);
1495
1495
  if (!m || m.hidden) return;
1496
1496
  const v = this._renderChildBranch(
1497
1497
  m,
@@ -1502,61 +1502,60 @@ class he extends ee {
1502
1502
  n,
1503
1503
  a
1504
1504
  );
1505
- !W(m, this.filterQuery) && !v.includes('class="item"') || (_ += this._renderDropzone({
1505
+ !W(m, this.filterQuery) && !v.includes('class="item"') || (b += this._renderDropzone({
1506
1506
  listId: t.id,
1507
1507
  parentId: c,
1508
- beforeId: I,
1508
+ beforeId: S,
1509
1509
  mode: "before"
1510
- }, "Drop here"), _ += v);
1511
- }), _ += this._renderDropzone({
1510
+ }, "Drop here"), b += v);
1511
+ }), b += this._renderDropzone({
1512
1512
  listId: t.id,
1513
1513
  parentId: c,
1514
1514
  beforeId: null,
1515
1515
  mode: "before"
1516
- }, "Drop here"), _;
1516
+ }, "Drop here"), b;
1517
1517
  };
1518
1518
  return `<div class="tree">${u(null)}</div>`;
1519
1519
  }
1520
1520
  _renderChildBranch(e, t, r, i, s, n, a) {
1521
- const d = y(e.id), o = n.has(e.id), u = o ? "" : i(e.id), c = u.includes('class="item"'), h = o ? !1 : this._selection.includes(e.id), f = o ? !1 : r.has(e.id), _ = e.disabled, I = _ || e.dragDisabled || this._isDragLocked(), m = this._dragState?.dropTarget?.mode === "inside" && this._dragState.dropTarget.parentId === e.id, v = this._dragState?.clone ? "Copy preview" : "Drop preview", D = this._dragState?.clone ? "Release to add a copy here." : this._dragState && this._dragState.movedRootIds.length > 1 ? "Release to place this selection here." : "Release to place this item here.", A = this._dragHandleMode(), z = this._usesCustomHandleSelector(), b = z ? "custom" : A, S = !z && A === "handle";
1521
+ const d = I(e.id), o = n.has(e.id), u = o ? "" : i(e.id), c = u.includes('class="item"'), h = o ? !1 : this._selection.includes(e.id), _ = o ? !1 : r.has(e.id), b = e.disabled, S = b || e.dragDisabled || this._isDragLocked(), m = this._dragState?.dropTarget?.mode === "inside" && this._dragState.dropTarget.parentId === e.id, v = this._dragState?.clone ? "Copy preview" : "Drop preview", D = this._dragState?.clone ? "Release to add a copy here." : this._dragState && this._dragState.movedRootIds.length > 1 ? "Release to place this selection here." : "Release to place this item here.", A = this._dragHandleMode(), z = this._usesCustomHandleSelector(), f = z ? "custom" : A, y = !z && A === "handle";
1522
1522
  return `
1523
1523
  <div class="item-shell" data-item-shell="${d}">
1524
- <article
1524
+ <div
1525
1525
  class="item${o ? " item-placeholder" : ""}"
1526
1526
  part="item"
1527
1527
  data-id="${d}"
1528
- data-drag-handle-mode="${b}"
1529
- ${!o && b === "item" ? 'data-drag-trigger="item"' : ""}
1528
+ data-drag-handle-mode="${f}"
1529
+ ${!o && f === "item" ? 'data-drag-trigger="item"' : ""}
1530
1530
  data-selected="${h}"
1531
1531
  data-focused="${o ? "false" : t === e.id}"
1532
- data-dragging="${f}"
1533
- data-disabled="${_}"
1532
+ data-dragging="${_}"
1533
+ data-disabled="${b}"
1534
1534
  data-drop-inside-active="${m ? "true" : "false"}"
1535
1535
  role="${o ? "presentation" : "option"}"
1536
1536
  aria-selected="${o ? "false" : h}"
1537
- aria-disabled="${_}"
1538
- aria-grabbed="${o ? "false" : f}"
1537
+ aria-disabled="${b}"
1539
1538
  aria-hidden="${o ? "true" : "false"}"
1540
1539
  tabindex="${o ? "-1" : t === e.id ? "0" : "-1"}"
1541
1540
  >
1542
1541
  ${o ? `
1543
1542
  <div class="placeholder-content">
1544
- <div class="placeholder-kicker">${y(v)}</div>
1545
- <div class="placeholder-title">${y(e.label)}</div>
1546
- <div class="placeholder-description">${y(D)}</div>
1543
+ <div class="placeholder-kicker">${I(v)}</div>
1544
+ <div class="placeholder-title">${I(e.label)}</div>
1545
+ <div class="placeholder-description">${I(D)}</div>
1547
1546
  </div>
1548
1547
  ` : `
1549
- ${S ? `
1550
- <button
1548
+ ${y ? `
1549
+ <span
1551
1550
  class="handle"
1552
1551
  part="handle"
1553
- type="button"
1552
+ role="presentation"
1553
+ aria-hidden="true"
1554
1554
  data-action="handle"
1555
1555
  data-drag-trigger="handle"
1556
1556
  data-id="${d}"
1557
1557
  draggable="false"
1558
- ${I ? "disabled" : ""}
1559
- aria-label="Drag ${y(e.label)}"
1558
+ ${S ? "disabled" : ""}
1560
1559
  >
1561
1560
  <svg viewBox="0 0 16 16" aria-hidden="true" focusable="false">
1562
1561
  <circle cx="5" cy="4" r="1.25"></circle>
@@ -1566,13 +1565,13 @@ class he extends ee {
1566
1565
  <circle cx="5" cy="12" r="1.25"></circle>
1567
1566
  <circle cx="11" cy="12" r="1.25"></circle>
1568
1567
  </svg>
1569
- </button>
1568
+ </span>
1570
1569
  ` : ""}
1571
1570
  <div class="item-content" data-action="select" data-id="${d}">
1572
1571
  <div class="item-custom-content" part="item-custom-content" data-item-content-target="${d}"></div>
1573
1572
  <div class="item-default-content">
1574
- <div class="item-title">${y(e.label)}</div>
1575
- ${e.description ? `<div class="item-description">${y(e.description)}</div>` : ""}
1573
+ <div class="item-title">${I(e.label)}</div>
1574
+ ${e.description ? `<div class="item-description">${I(e.description)}</div>` : ""}
1576
1575
  <div class="item-meta">
1577
1576
  <span class="item-badge selection-badge" data-selection-badge="true" ${h && a ? "" : "hidden"}>${h && a ? "Selected" : ""}</span>
1578
1577
  ${e.cloneOnDrag ? '<span class="item-badge">Clone on drag</span>' : ""}
@@ -1582,7 +1581,7 @@ class he extends ee {
1582
1581
  </div>
1583
1582
  </div>
1584
1583
  `}
1585
- </article>
1584
+ </div>
1586
1585
  ${s && !o ? this._renderDropzone({
1587
1586
  listId: e.listId,
1588
1587
  parentId: e.id,
@@ -1599,14 +1598,14 @@ class he extends ee {
1599
1598
  <div
1600
1599
  class="dropzone"
1601
1600
  part="dropzone"
1602
- data-list-id="${y(e.listId)}"
1603
- data-parent-id="${y(e.parentId ?? "")}"
1604
- data-before-id="${y(e.beforeId ?? "")}"
1601
+ data-list-id="${I(e.listId)}"
1602
+ data-parent-id="${I(e.parentId ?? "")}"
1603
+ data-before-id="${I(e.beforeId ?? "")}"
1605
1604
  data-mode="${e.mode}"
1606
1605
  data-active="${r ? "true" : "false"}"
1607
1606
  aria-hidden="true"
1608
1607
  >
1609
- <span class="dropzone-label">${y(t)}</span>
1608
+ <span class="dropzone-label">${I(t)}</span>
1610
1609
  </div>
1611
1610
  `;
1612
1611
  }
@@ -1676,8 +1675,8 @@ class he extends ee {
1676
1675
  dropTarget: this._initialKeyboardDropTarget(r),
1677
1676
  committed: !1
1678
1677
  };
1679
- const f = c.length === 1 ? `Lifted ${s?.label || "item"}.` : `Lifted ${c.length} items.`;
1680
- this._announce(`${f} Use arrow keys to choose a destination.`), this.requestRender();
1678
+ const _ = c.length === 1 ? `Lifted ${s?.label || "item"}.` : `Lifted ${c.length} items.`;
1679
+ this._announce(`${_} Use arrow keys to choose a destination.`), this.requestRender();
1681
1680
  return;
1682
1681
  }
1683
1682
  if (e.key === "Escape") {
@@ -1765,17 +1764,17 @@ class he extends ee {
1765
1764
  return this._dropTargetFromPath(e.composedPath(), e.clientX, e.clientY);
1766
1765
  }
1767
1766
  _dropTargetFromPath(e, t, r) {
1768
- const i = e.find((S) => S instanceof HTMLElement && S.classList.contains("dropzone"));
1767
+ const i = e.find((y) => y instanceof HTMLElement && y.classList.contains("dropzone"));
1769
1768
  if (i) {
1770
- const S = {
1769
+ const y = {
1771
1770
  listId: i.getAttribute("data-list-id") || "",
1772
1771
  parentId: i.getAttribute("data-parent-id") || null,
1773
1772
  beforeId: i.getAttribute("data-before-id") || null,
1774
1773
  mode: i.getAttribute("data-mode") === "inside" ? "inside" : "before"
1775
1774
  };
1776
- if (S.listId) return S;
1775
+ if (y.listId) return y;
1777
1776
  }
1778
- const s = e.find((S) => S instanceof HTMLElement && S.classList.contains("item"));
1777
+ const s = e.find((y) => y instanceof HTMLElement && y.classList.contains("item"));
1779
1778
  if (!s) {
1780
1779
  const R = e.find(
1781
1780
  ($) => $ instanceof HTMLElement && $.classList.contains("list") && $.hasAttribute("data-list-id")
@@ -1784,9 +1783,9 @@ class he extends ee {
1784
1783
  }
1785
1784
  const n = s.getAttribute("data-id");
1786
1785
  if (!n) return null;
1787
- const a = this._items.find((S) => S.id === n);
1786
+ const a = this._items.find((y) => y.id === n);
1788
1787
  if (!a) return null;
1789
- const d = this._lists.find((S) => S.id === a.listId), o = s.getBoundingClientRect(), u = d?.orientation === "horizontal", c = u ? o.left : o.top, h = u ? o.right : o.bottom, f = u ? t : r, _ = Math.max(1, h - c), I = (f - c) / _, m = u && this._isRtl() ? 1 - I : I, v = this.getAttribute("allow-nesting") !== "false" && !a.disabled;
1788
+ const d = this._lists.find((y) => y.id === a.listId), o = s.getBoundingClientRect(), u = d?.orientation === "horizontal", c = u ? o.left : o.top, h = u ? o.right : o.bottom, _ = u ? t : r, b = Math.max(1, h - c), S = (_ - c) / b, m = u && this._isRtl() ? 1 - S : S, v = this.getAttribute("allow-nesting") !== "false" && !a.disabled;
1790
1789
  if (m <= 0.34)
1791
1790
  return {
1792
1791
  listId: a.listId,
@@ -1801,11 +1800,11 @@ class he extends ee {
1801
1800
  beforeId: null,
1802
1801
  mode: "inside"
1803
1802
  };
1804
- const A = E(this._items).get(k(a.listId, a.parentId)) || [], z = A.indexOf(a.id), b = z >= 0 && A[z + 1] || null;
1803
+ const A = E(this._items).get(k(a.listId, a.parentId)) || [], z = A.indexOf(a.id), f = z >= 0 && A[z + 1] || null;
1805
1804
  return {
1806
1805
  listId: a.listId,
1807
1806
  parentId: a.parentId,
1808
- beforeId: b,
1807
+ beforeId: f,
1809
1808
  mode: "before"
1810
1809
  };
1811
1810
  }
@@ -1996,15 +1995,15 @@ class he extends ee {
1996
1995
  !w || a.has(p) || (a.add(p), d.push(p), (n.get(k(w.listId, p)) || []).forEach(o));
1997
1996
  };
1998
1997
  t.forEach(o);
1999
- const u = this._items.map(P), c = u.filter((p) => a.has(p.id)), h = r ? u.map(P) : u.filter((p) => !a.has(p.id)), f = r ? c.map((p) => this._cloneSubtreeItem(p, d)) : c.map(P), _ = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
1998
+ const u = this._items.map(P), c = u.filter((p) => a.has(p.id)), h = r ? u.map(P) : u.filter((p) => !a.has(p.id)), _ = r ? c.map((p) => this._cloneSubtreeItem(p, d)) : c.map(P), b = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map();
2000
1999
  r && c.forEach((p, w) => {
2001
- _.set(p.id, f[w].id), I.set(f[w].id, p.id);
2002
- }), f.forEach((p) => {
2003
- const w = r ? I.get(p.id) : p.id, F = w ? s.get(w) : null;
2004
- F && (r && (p.parentId = F.parentId && _.has(F.parentId) && _.get(F.parentId) || null), p.listId = e.listId);
2000
+ b.set(p.id, _[w].id), S.set(_[w].id, p.id);
2001
+ }), _.forEach((p) => {
2002
+ const w = r ? S.get(p.id) : p.id, F = w ? s.get(w) : null;
2003
+ F && (r && (p.parentId = F.parentId && b.has(F.parentId) && b.get(F.parentId) || null), p.listId = e.listId);
2005
2004
  });
2006
- const m = t.map((p) => _.get(p) || p), v = [...h, ...f], D = E(h), A = k(e.listId, e.parentId), z = [...D.get(A) || []], b = e.beforeId ? z.indexOf(e.beforeId) : z.length, S = b >= 0 ? b : z.length;
2007
- z.splice(S, 0, ...m), D.set(A, z), E(f).forEach((p, w) => {
2005
+ const m = t.map((p) => b.get(p) || p), v = [...h, ..._], D = E(h), A = k(e.listId, e.parentId), z = [...D.get(A) || []], f = e.beforeId ? z.indexOf(e.beforeId) : z.length, y = f >= 0 ? f : z.length;
2006
+ z.splice(y, 0, ...m), D.set(A, z), E(_).forEach((p, w) => {
2008
2007
  const [, F] = w.split("::");
2009
2008
  (F || "") !== "__root__" && D.set(w, [...p]);
2010
2009
  });
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("./ElementBase-EV6mVBUV.js"),D="14s",I=" • ",h="linear",N=4,L=1,O=12,F=new Set(["clockwise","counterclockwise"]),Q=new Set(["default","surface","soft","solid","glass","contrast","minimal"]),U=new Set(["brand","neutral","info","success","warning","danger"]),B=new Set(["sm","md","lg","xl","1","2","3","4"]),j=new Set(["none","low","high"]),r={sm:{fontSize:"12px",fontSizePx:12,radius:"56px",radiusPx:56,padding:"12px",letterSpacing:"0.16em",letterSpacingPx:1.92,surfaceRadius:"24px"},md:{fontSize:"14px",fontSizePx:14,radius:"78px",radiusPx:78,padding:"16px",letterSpacing:"0.16em",letterSpacingPx:2.24,surfaceRadius:"28px"},lg:{fontSize:"16px",fontSizePx:16,radius:"96px",radiusPx:96,padding:"20px",letterSpacing:"0.18em",letterSpacingPx:2.88,surfaceRadius:"32px"},xl:{fontSize:"20px",fontSizePx:20,radius:"122px",radiusPx:122,padding:"24px",letterSpacing:"0.2em",letterSpacingPx:4,surfaceRadius:"36px"}},q=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("./ElementBase-DxbvhLJs.js"),D="14s",I=" • ",h="linear",N=4,L=1,O=12,F=new Set(["clockwise","counterclockwise"]),Q=new Set(["default","surface","soft","solid","glass","contrast","minimal"]),U=new Set(["brand","neutral","info","success","warning","danger"]),B=new Set(["sm","md","lg","xl","1","2","3","4"]),j=new Set(["none","low","high"]),r={sm:{fontSize:"12px",fontSizePx:12,radius:"56px",radiusPx:56,padding:"12px",letterSpacing:"0.16em",letterSpacingPx:1.92,surfaceRadius:"24px"},md:{fontSize:"14px",fontSizePx:14,radius:"78px",radiusPx:78,padding:"16px",letterSpacing:"0.16em",letterSpacingPx:2.24,surfaceRadius:"28px"},lg:{fontSize:"16px",fontSizePx:16,radius:"96px",radiusPx:96,padding:"20px",letterSpacing:"0.18em",letterSpacingPx:2.88,surfaceRadius:"32px"},xl:{fontSize:"20px",fontSizePx:20,radius:"122px",radiusPx:122,padding:"24px",letterSpacing:"0.2em",letterSpacingPx:4,surfaceRadius:"36px"}},q=`
2
2
  :host {
3
3
  --ui-spinning-text-duration: ${D};
4
4
  --ui-spinning-text-easing: ${h};
@@ -95,7 +95,7 @@
95
95
  }
96
96
 
97
97
  :host([tone="neutral"]) {
98
- --ui-spinning-text-accent: #64748b;
98
+ --ui-spinning-text-accent: #526175;
99
99
  }
100
100
 
101
101
  :host([tone="info"]) {
@@ -103,11 +103,11 @@
103
103
  }
104
104
 
105
105
  :host([tone="success"]) {
106
- --ui-spinning-text-accent: var(--ui-color-success, #16a34a);
106
+ --ui-spinning-text-accent: var(--ui-color-success, #15803d);
107
107
  }
108
108
 
109
109
  :host([tone="warning"]) {
110
- --ui-spinning-text-accent: var(--ui-color-warning, #d97706);
110
+ --ui-spinning-text-accent: var(--ui-color-warning, #b45309);
111
111
  }
112
112
 
113
113
  :host([tone="danger"]) {
@@ -1,4 +1,4 @@
1
- import { E as k } from "./ElementBase-YlTLMsGk.mjs";
1
+ import { E as k } from "./ElementBase-BeZT54Hj.mjs";
2
2
  const C = "14s", D = " • ", h = "linear", N = 4, I = 1, L = 12, O = /* @__PURE__ */ new Set(["clockwise", "counterclockwise"]), F = /* @__PURE__ */ new Set(["default", "surface", "soft", "solid", "glass", "contrast", "minimal"]), Q = /* @__PURE__ */ new Set(["brand", "neutral", "info", "success", "warning", "danger"]), U = /* @__PURE__ */ new Set(["sm", "md", "lg", "xl", "1", "2", "3", "4"]), B = /* @__PURE__ */ new Set(["none", "low", "high"]), r = {
3
3
  sm: {
4
4
  fontSize: "12px",
@@ -137,7 +137,7 @@ const C = "14s", D = " • ", h = "linear", N = 4, I = 1, L = 12, O = /* @__PURE
137
137
  }
138
138
 
139
139
  :host([tone="neutral"]) {
140
- --ui-spinning-text-accent: #64748b;
140
+ --ui-spinning-text-accent: #526175;
141
141
  }
142
142
 
143
143
  :host([tone="info"]) {
@@ -145,11 +145,11 @@ const C = "14s", D = " • ", h = "linear", N = 4, I = 1, L = 12, O = /* @__PURE
145
145
  }
146
146
 
147
147
  :host([tone="success"]) {
148
- --ui-spinning-text-accent: var(--ui-color-success, #16a34a);
148
+ --ui-spinning-text-accent: var(--ui-color-success, #15803d);
149
149
  }
150
150
 
151
151
  :host([tone="warning"]) {
152
- --ui-spinning-text-accent: var(--ui-color-warning, #d97706);
152
+ --ui-spinning-text-accent: var(--ui-color-warning, #b45309);
153
153
  }
154
154
 
155
155
  :host([tone="danger"]) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("./ElementBase-EV6mVBUV.js"),f=require("./portal-DgpQ3Jo1.js"),g=require("./dismissable-layer-DNfrKA20.js"),h=require("./positioner-D_fqyx_j.js");require("./listbox-B6QgECax.js");const l=160,x=["--ui-split-button-menu-bg","--ui-split-button-menu-color","--ui-split-button-menu-border","--ui-split-button-menu-radius","--ui-split-button-menu-shadow","--ui-split-button-menu-accent","--ui-split-button-menu-accent-strong","--ui-split-button-menu-shortcut","--ui-split-button-menu-separator","--ui-split-button-menu-muted","--ui-split-button-menu-danger","--ui-split-button-menu-option-border","--ui-split-button-menu-option-border-strong","--ui-split-button-menu-option-shadow","--ui-split-button-menu-affordance-bg","--ui-split-button-menu-affordance-border","--ui-split-button-menu-affordance-size","--ui-split-button-menu-list-gap","--ui-split-button-menu-list-padding-top","--ui-split-button-menu-item-min-height","--ui-split-button-menu-item-radius","--ui-split-button-menu-item-padding"],v=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("./ElementBase-DxbvhLJs.js"),f=require("./portal-DgpQ3Jo1.js"),g=require("./dismissable-layer-DNfrKA20.js"),h=require("./positioner-D_fqyx_j.js");require("./listbox-CTpRpuF7.js");const l=160,x=["--ui-split-button-menu-bg","--ui-split-button-menu-color","--ui-split-button-menu-border","--ui-split-button-menu-radius","--ui-split-button-menu-shadow","--ui-split-button-menu-accent","--ui-split-button-menu-accent-strong","--ui-split-button-menu-shortcut","--ui-split-button-menu-separator","--ui-split-button-menu-muted","--ui-split-button-menu-danger","--ui-split-button-menu-option-border","--ui-split-button-menu-option-border-strong","--ui-split-button-menu-option-shadow","--ui-split-button-menu-affordance-bg","--ui-split-button-menu-affordance-border","--ui-split-button-menu-affordance-size","--ui-split-button-menu-list-gap","--ui-split-button-menu-list-padding-top","--ui-split-button-menu-item-min-height","--ui-split-button-menu-item-radius","--ui-split-button-menu-item-padding"],v=`
2
2
  :host {
3
3
  --ui-split-button-radius: 12px;
4
4
  --ui-split-button-border: 1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 70%, transparent);
@@ -1,8 +1,8 @@
1
- import { E as c } from "./ElementBase-YlTLMsGk.mjs";
1
+ import { E as c } from "./ElementBase-BeZT54Hj.mjs";
2
2
  import { b } from "./portal-bR42gHvG.mjs";
3
3
  import { c as f } from "./dismissable-layer-BmPIoK80.mjs";
4
4
  import { e as g } from "./positioner-D0VGxtYU.mjs";
5
- import "./listbox-DJamVeFj.mjs";
5
+ import "./listbox-hMVOhKHC.mjs";
6
6
  const l = 160, h = [
7
7
  "--ui-split-button-menu-bg",
8
8
  "--ui-split-button-menu-color",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./ElementBase-EV6mVBUV.js"),l=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./ElementBase-DxbvhLJs.js"),l=`
2
2
  :host {
3
3
  --ui-splitter-size: 10px;
4
4
  --ui-splitter-hit-area: 10px;
@@ -1,4 +1,4 @@
1
- import { E as s } from "./ElementBase-YlTLMsGk.mjs";
1
+ import { E as s } from "./ElementBase-BeZT54Hj.mjs";
2
2
  const r = `
3
3
  :host {
4
4
  --ui-splitter-size: 10px;
@@ -1,11 +1,11 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("./ElementBase-EV6mVBUV.js"),g=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("./ElementBase-DxbvhLJs.js"),g=`
2
2
  :host {
3
3
  --ui-stepper-gap: 8px;
4
4
  --ui-stepper-radius: 12px;
5
5
  --ui-stepper-bg: color-mix(in srgb, var(--ui-color-surface, #ffffff) 95%, transparent);
6
6
  --ui-stepper-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent);
7
7
  --ui-stepper-text: var(--ui-color-text, #0f172a);
8
- --ui-stepper-muted: var(--ui-color-muted, #64748b);
8
+ --ui-stepper-muted: var(--ui-color-muted, #526175);
9
9
  --ui-stepper-accent: var(--ui-color-primary, #2563eb);
10
10
  --ui-stepper-focus: var(--ui-color-focus-ring, #2563eb);
11
11
  --ui-stepper-indicator-duration: 1.6s;
@@ -1,4 +1,4 @@
1
- import { E as d } from "./ElementBase-YlTLMsGk.mjs";
1
+ import { E as d } from "./ElementBase-BeZT54Hj.mjs";
2
2
  const b = `
3
3
  :host {
4
4
  --ui-stepper-gap: 8px;
@@ -6,7 +6,7 @@ const b = `
6
6
  --ui-stepper-bg: color-mix(in srgb, var(--ui-color-surface, #ffffff) 95%, transparent);
7
7
  --ui-stepper-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent);
8
8
  --ui-stepper-text: var(--ui-color-text, #0f172a);
9
- --ui-stepper-muted: var(--ui-color-muted, #64748b);
9
+ --ui-stepper-muted: var(--ui-color-muted, #526175);
10
10
  --ui-stepper-accent: var(--ui-color-primary, #2563eb);
11
11
  --ui-stepper-focus: var(--ui-color-focus-ring, #2563eb);
12
12
  --ui-stepper-indicator-duration: 1.6s;