@kapiuara/ui 0.22.0 → 0.23.1

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 (368) hide show
  1. package/dist/components/chat/KapiChatDivider.js +1 -2
  2. package/dist/components/chat/KapiChatList.js +15 -16
  3. package/dist/components/chat/KapiChatThread.js +21 -22
  4. package/dist/components/chat/KapiComposer.js +23 -24
  5. package/dist/components/chat/KapiMessageBubble.js +5 -6
  6. package/dist/components/chat/KapiTypingIndicator.js +5 -6
  7. package/dist/components/chat/chatLogic.js +1 -2
  8. package/dist/components/data/KapiBarChart.js +22 -23
  9. package/dist/components/data/KapiDataTable.js +92 -93
  10. package/dist/components/data/KapiEventCalendar.js +96 -97
  11. package/dist/components/data/KapiHeatmap.js +21 -22
  12. package/dist/components/data/KapiLineChart.js +23 -24
  13. package/dist/components/data/KapiPagination.js +1 -2
  14. package/dist/components/data/KapiPaginationFooter.js +5 -6
  15. package/dist/components/data/KapiScatterChart.js +18 -19
  16. package/dist/components/data/KapiSheet.js +2 -3
  17. package/dist/components/data/KapiSparkline.js +1 -2
  18. package/dist/components/data/KapiTable.js +107 -108
  19. package/dist/components/data/KapiTableFilter.js +13 -14
  20. package/dist/components/data/KapiTableFooter.js +21 -22
  21. package/dist/components/data/KapiTableRow.js +10 -11
  22. package/dist/components/data/KapiTableToolbar.js +95 -96
  23. package/dist/components/data/barChartLogic.js +1 -2
  24. package/dist/components/data/chartFrame.js +13 -14
  25. package/dist/components/data/datasetSelectionLogic.js +1 -2
  26. package/dist/components/data/eventCalendarLogic.js +2 -3
  27. package/dist/components/data/heatmapLogic.js +1 -2
  28. package/dist/components/data/lineChartLogic.js +1 -2
  29. package/dist/components/data/rowClickLogic.js +2 -17
  30. package/dist/components/data/scatterLogic.js +1 -2
  31. package/dist/components/data/sparklineLogic.js +1 -2
  32. package/dist/components/data/tableCells.js +14 -15
  33. package/dist/components/data/tableHeaderMenu.js +1 -2
  34. package/dist/components/data/tableLabels.js +1 -2
  35. package/dist/components/data/tableLogic.js +0 -1
  36. package/dist/components/data/tablePaginationLogic.js +1 -2
  37. package/dist/components/data/tableResizeLogic.js +1 -2
  38. package/dist/components/data/tableSlots.js +1 -2
  39. package/dist/components/data/tableSpanLogic.js +1 -2
  40. package/dist/components/data/useColumnResize.js +23 -24
  41. package/dist/components/data/useRowKeyWarning.js +1 -2
  42. package/dist/components/data/useTableEdges.js +1 -2
  43. package/dist/components/data/useTableSelection.js +25 -26
  44. package/dist/components/display/KapiAnchor.js +7 -8
  45. package/dist/components/display/KapiAnnotation.js +15 -16
  46. package/dist/components/display/KapiAvatar.js +6 -7
  47. package/dist/components/display/KapiAvatarGroup.js +15 -16
  48. package/dist/components/display/KapiBadge.js +1 -2
  49. package/dist/components/display/KapiCodeBlock.js +14 -15
  50. package/dist/components/display/KapiComment.js +10 -11
  51. package/dist/components/display/KapiCommentComposer.js +13 -14
  52. package/dist/components/display/KapiDescriptionList.js +1 -2
  53. package/dist/components/display/KapiDiff.js +23 -24
  54. package/dist/components/display/KapiFileItem.js +13 -14
  55. package/dist/components/display/KapiFileViewer.js +17 -18
  56. package/dist/components/display/KapiHighlight.js +2 -3
  57. package/dist/components/display/KapiIconTile.js +2 -3
  58. package/dist/components/display/KapiStat.js +8 -9
  59. package/dist/components/display/KapiTag.js +6 -7
  60. package/dist/components/display/KapiText.js +5 -6
  61. package/dist/components/display/KapiTimeline.js +2 -3
  62. package/dist/components/display/KapiTitle.js +1 -2
  63. package/dist/components/display/KapiTruncate.js +5 -6
  64. package/dist/components/display/annotationLogic.js +1 -2
  65. package/dist/components/display/avatarGroupLogic.js +1 -2
  66. package/dist/components/display/avatarGroupSlots.js +1 -2
  67. package/dist/components/display/avatarLogic.js +1 -2
  68. package/dist/components/display/codeBlockSlots.js +1 -2
  69. package/dist/components/display/commentLogic.js +1 -2
  70. package/dist/components/display/diffLogic.js +1 -2
  71. package/dist/components/display/diffSlots.js +1 -2
  72. package/dist/components/display/fileItemLogic.js +1 -2
  73. package/dist/components/display/highlightLogic.js +1 -2
  74. package/dist/components/display/highlightSlots.js +1 -2
  75. package/dist/components/display/iconTileLogic.js +1 -2
  76. package/dist/components/display/statLogic.js +1 -2
  77. package/dist/components/display/tagLogic.js +1 -2
  78. package/dist/components/display/textLogic.js +1 -2
  79. package/dist/components/display/timelineLogic.js +1 -2
  80. package/dist/components/display/truncateLogic.js +1 -2
  81. package/dist/components/feedback/KapiAlert.js +6 -7
  82. package/dist/components/feedback/KapiBulkBar.js +5 -6
  83. package/dist/components/feedback/KapiCountdown.js +16 -17
  84. package/dist/components/feedback/KapiEmpty.js +2 -3
  85. package/dist/components/feedback/KapiFab.js +96 -97
  86. package/dist/components/feedback/KapiOfflineBanner.js +4 -5
  87. package/dist/components/feedback/KapiProgress.js +1 -2
  88. package/dist/components/feedback/KapiSkeleton.js +1 -2
  89. package/dist/components/feedback/KapiSpinner.js +5 -6
  90. package/dist/components/feedback/KapiToastContainer.js +28 -29
  91. package/dist/components/feedback/KapiTour.js +24 -25
  92. package/dist/components/feedback/KapiUnsavedBar.js +5 -6
  93. package/dist/components/feedback/alertSlots.js +1 -2
  94. package/dist/components/feedback/bulkBarLogic.js +1 -2
  95. package/dist/components/feedback/countdownLogic.js +1 -2
  96. package/dist/components/feedback/countdownSlots.js +1 -2
  97. package/dist/components/feedback/emptySlots.js +1 -2
  98. package/dist/components/feedback/fabLogic.js +1 -2
  99. package/dist/components/feedback/offlineBannerLogic.js +1 -2
  100. package/dist/components/feedback/progressLogic.js +1 -2
  101. package/dist/components/feedback/toastLayer.js +1 -2
  102. package/dist/components/feedback/toastStore.js +2 -3
  103. package/dist/components/feedback/tourLogic.js +1 -2
  104. package/dist/components/feedback/unsavedBarLogic.js +1 -2
  105. package/dist/components/inputs/KapiAutocomplete.js +23 -24
  106. package/dist/components/inputs/KapiButton.js +1 -2
  107. package/dist/components/inputs/KapiCalendar.js +12 -13
  108. package/dist/components/inputs/KapiCalendarGrid.js +15 -16
  109. package/dist/components/inputs/KapiCheckCard.js +4 -5
  110. package/dist/components/inputs/KapiCheckbox.js +1 -2
  111. package/dist/components/inputs/KapiChecklist.js +62 -63
  112. package/dist/components/inputs/KapiCopyButton.js +6 -7
  113. package/dist/components/inputs/KapiDatePicker.js +33 -34
  114. package/dist/components/inputs/KapiDateRangePicker.js +145 -146
  115. package/dist/components/inputs/KapiFacetedSearch.js +55 -56
  116. package/dist/components/inputs/KapiField.js +5 -6
  117. package/dist/components/inputs/KapiFileUpload.js +26 -27
  118. package/dist/components/inputs/KapiIconButton.js +1 -2
  119. package/dist/components/inputs/KapiInput.js +46 -47
  120. package/dist/components/inputs/KapiInputGroup.js +1 -2
  121. package/dist/components/inputs/KapiMaskedInput.js +50 -51
  122. package/dist/components/inputs/KapiNumberStepper.js +49 -50
  123. package/dist/components/inputs/KapiPinInput.js +9 -10
  124. package/dist/components/inputs/KapiPropsForm.js +43 -44
  125. package/dist/components/inputs/KapiRadio.js +1 -2
  126. package/dist/components/inputs/KapiRating.js +38 -39
  127. package/dist/components/inputs/KapiSearchChip.js +10 -11
  128. package/dist/components/inputs/KapiSegmented.js +65 -66
  129. package/dist/components/inputs/KapiSelect.js +198 -199
  130. package/dist/components/inputs/KapiSelectMenu.js +1 -2
  131. package/dist/components/inputs/KapiSlider.js +11 -12
  132. package/dist/components/inputs/KapiSwitch.js +6 -7
  133. package/dist/components/inputs/KapiTagInput.js +32 -33
  134. package/dist/components/inputs/KapiTextarea.js +22 -23
  135. package/dist/components/inputs/asyncSelectLogic.js +22 -23
  136. package/dist/components/inputs/autocompleteLogic.js +1 -2
  137. package/dist/components/inputs/checkControl.js +4 -5
  138. package/dist/components/inputs/checklistLogic.js +1 -2
  139. package/dist/components/inputs/copyLogic.js +1 -2
  140. package/dist/components/inputs/datePickerLogic.js +1 -2
  141. package/dist/components/inputs/dateRangeLogic.js +1 -2
  142. package/dist/components/inputs/facetedSearchLogic.js +1 -2
  143. package/dist/components/inputs/fieldLogic.js +1 -2
  144. package/dist/components/inputs/fileUploadLogic.js +1 -2
  145. package/dist/components/inputs/formBridgeLogic.js +1 -2
  146. package/dist/components/inputs/inputGroupLogic.js +1 -2
  147. package/dist/components/inputs/inputLogic.js +1 -2
  148. package/dist/components/inputs/maskLogic.js +0 -1
  149. package/dist/components/inputs/misuseWarnings.js +1 -2
  150. package/dist/components/inputs/numberStepLogic.js +1 -2
  151. package/dist/components/inputs/ownField.js +9 -10
  152. package/dist/components/inputs/pinInputLogic.js +1 -2
  153. package/dist/components/inputs/propsFormLogic.js +1 -2
  154. package/dist/components/inputs/ratingLogic.js +1 -2
  155. package/dist/components/inputs/searchChipLogic.js +1 -2
  156. package/dist/components/inputs/segmentedLogic.js +1 -2
  157. package/dist/components/inputs/selectKeyLogic.js +1 -2
  158. package/dist/components/inputs/selectLogic.js +1 -2
  159. package/dist/components/inputs/selectSlots.js +1 -2
  160. package/dist/components/inputs/sliderLogic.js +1 -2
  161. package/dist/components/inputs/tagInputLogic.js +1 -2
  162. package/dist/components/inputs/textareaLogic.js +1 -2
  163. package/dist/components/inputs/useCalendarFocus.js +1 -2
  164. package/dist/components/inputs/useDatePopSide.js +1 -2
  165. package/dist/components/inputs/useSelectCreate.js +1 -2
  166. package/dist/components/inputs/useSelectSource.js +11 -12
  167. package/dist/components/labelsLogic.js +1 -2
  168. package/dist/components/layout/KapiAccessCard.js +10 -11
  169. package/dist/components/layout/KapiAccountMenu.js +24 -25
  170. package/dist/components/layout/KapiBox.js +5 -6
  171. package/dist/components/layout/KapiCard.js +18 -19
  172. package/dist/components/layout/KapiCenter.js +1 -2
  173. package/dist/components/layout/KapiCluster.js +1 -2
  174. package/dist/components/layout/KapiCol.js +1 -2
  175. package/dist/components/layout/KapiCollapse.js +1 -2
  176. package/dist/components/layout/KapiContextSlot.js +98 -99
  177. package/dist/components/layout/KapiDivider.js +1 -2
  178. package/dist/components/layout/KapiGrid.js +9 -10
  179. package/dist/components/layout/KapiMasonry.js +1 -2
  180. package/dist/components/layout/KapiNotificationBell.js +53 -54
  181. package/dist/components/layout/KapiPageHeader.js +42 -43
  182. package/dist/components/layout/KapiPanelParts.js +43 -44
  183. package/dist/components/layout/KapiRail.js +103 -104
  184. package/dist/components/layout/KapiRailAccount.js +11 -12
  185. package/dist/components/layout/KapiRoot.js +33 -34
  186. package/dist/components/layout/KapiScrollArea.js +7 -8
  187. package/dist/components/layout/KapiShell.js +8 -9
  188. package/dist/components/layout/KapiStack.js +1 -2
  189. package/dist/components/layout/KapiThemeScript.js +1 -2
  190. package/dist/components/layout/accessCardLogic.js +1 -2
  191. package/dist/components/layout/cardLogic.js +1 -2
  192. package/dist/components/layout/cardSlots.js +1 -2
  193. package/dist/components/layout/gridSpanLogic.js +1 -2
  194. package/dist/components/layout/layoutPrimitives.js +1 -2
  195. package/dist/components/layout/masonryLogic.js +1 -2
  196. package/dist/components/layout/notificationBellLogic.js +1 -2
  197. package/dist/components/layout/pageHeaderLogic.js +1 -2
  198. package/dist/components/layout/pageHeaderSlots.js +1 -2
  199. package/dist/components/layout/railContext.js +1 -2
  200. package/dist/components/layout/railLogic.js +1 -2
  201. package/dist/components/layout/railSlots.js +1 -2
  202. package/dist/components/layout/reopenBus.js +1 -2
  203. package/dist/components/layout/shellSlots.js +1 -2
  204. package/dist/components/layout/useGridBreakpoint.js +1 -2
  205. package/dist/components/layout/useMasonrySpans.js +6 -7
  206. package/dist/components/layout/useRailOverflow.js +7 -8
  207. package/dist/components/locale/KapiLocaleProvider.js +1 -2
  208. package/dist/components/locale/linkLabels.js +1 -2
  209. package/dist/components/locale/localeLogic.js +1 -2
  210. package/dist/components/navigation/CtxSlidingList.js +7 -8
  211. package/dist/components/navigation/KapiAccordion.js +11 -12
  212. package/dist/components/navigation/KapiBreadcrumb.js +11 -12
  213. package/dist/components/navigation/KapiCollapsiblePanel.js +13 -14
  214. package/dist/components/navigation/KapiContextPanel.js +138 -139
  215. package/dist/components/navigation/KapiFilterChips.js +25 -22
  216. package/dist/components/navigation/KapiNavBadge.js +6 -7
  217. package/dist/components/navigation/KapiPanelGroup.js +34 -35
  218. package/dist/components/navigation/KapiSteps.js +41 -36
  219. package/dist/components/navigation/KapiTabs.js +40 -41
  220. package/dist/components/navigation/KapiToc.js +15 -16
  221. package/dist/components/navigation/KapiTree.js +126 -124
  222. package/dist/components/navigation/KapiWizard.js +12 -13
  223. package/dist/components/navigation/MiniNavItem.js +11 -12
  224. package/dist/components/navigation/accordionLogic.js +1 -2
  225. package/dist/components/navigation/activeItemLogic.js +1 -2
  226. package/dist/components/navigation/breadcrumbLogic.js +1 -2
  227. package/dist/components/navigation/contextPanelLogic.js +1 -2
  228. package/dist/components/navigation/filterChipsLogic.d.ts +9 -1
  229. package/dist/components/navigation/filterChipsLogic.js +2 -3
  230. package/dist/components/navigation/navBadgeLogic.js +1 -2
  231. package/dist/components/navigation/navLink.js +1 -2
  232. package/dist/components/navigation/navLinkLogic.js +1 -2
  233. package/dist/components/navigation/panelGroupLogic.js +1 -2
  234. package/dist/components/navigation/panelMini.js +0 -1
  235. package/dist/components/navigation/panelMiniLogic.js +1 -2
  236. package/dist/components/navigation/stepsLogic.js +1 -2
  237. package/dist/components/navigation/tabsLogic.js +1 -2
  238. package/dist/components/navigation/tocLogic.js +1 -2
  239. package/dist/components/navigation/tocSlots.js +1 -2
  240. package/dist/components/navigation/treeLogic.js +1 -2
  241. package/dist/components/navigation/wizardLogic.js +1 -2
  242. package/dist/components/overlays/KapiCanvasForm.js +5 -6
  243. package/dist/components/overlays/KapiCommandPalette.js +45 -45
  244. package/dist/components/overlays/KapiConfirm.js +9 -10
  245. package/dist/components/overlays/KapiContextMenu.js +16 -17
  246. package/dist/components/overlays/KapiDialogHost.js +50 -51
  247. package/dist/components/overlays/KapiDropdown.js +2 -3
  248. package/dist/components/overlays/KapiImageViewer.js +8 -9
  249. package/dist/components/overlays/KapiLoading.js +7 -8
  250. package/dist/components/overlays/KapiMenuButton.js +19 -20
  251. package/dist/components/overlays/KapiModal.js +58 -59
  252. package/dist/components/overlays/KapiOffcanvas.js +146 -147
  253. package/dist/components/overlays/KapiOffcanvasStack.js +18 -19
  254. package/dist/components/overlays/KapiPhotoView.js +21 -22
  255. package/dist/components/overlays/KapiPopover.js +12 -13
  256. package/dist/components/overlays/KapiShapeSheet.js +11 -12
  257. package/dist/components/overlays/KapiShortcutsHelp.js +18 -19
  258. package/dist/components/overlays/KapiSplitModal.js +20 -21
  259. package/dist/components/overlays/KapiTooltip.js +46 -47
  260. package/dist/components/overlays/KapiViewport.js +17 -18
  261. package/dist/components/overlays/canvasFormLogic.js +1 -2
  262. package/dist/components/overlays/commandPaletteLogic.js +1 -2
  263. package/dist/components/overlays/dialogStore.js +3 -4
  264. package/dist/components/overlays/dialogUtils.js +1 -2
  265. package/dist/components/overlays/exitPresenceLogic.js +1 -2
  266. package/dist/components/overlays/menuButtonLogic.js +1 -2
  267. package/dist/components/overlays/menuKeyboardLogic.js +1 -2
  268. package/dist/components/overlays/menuList.js +94 -95
  269. package/dist/components/overlays/modalSlots.js +1 -2
  270. package/dist/components/overlays/modalStack.js +1 -2
  271. package/dist/components/overlays/offcanvasCompanion.js +1 -2
  272. package/dist/components/overlays/offcanvasResize.js +0 -1
  273. package/dist/components/overlays/offcanvasSide.js +1 -2
  274. package/dist/components/overlays/offcanvasStack.js +1 -2
  275. package/dist/components/overlays/overlayPortal.js +1 -2
  276. package/dist/components/overlays/popoverLogic.js +1 -2
  277. package/dist/components/overlays/shortcutsHelpSlots.js +1 -2
  278. package/dist/components/overlays/splitModalLayout.js +1 -2
  279. package/dist/components/overlays/useExitPresence.js +11 -12
  280. package/dist/components/overlays/useNativeDialog.js +21 -22
  281. package/dist/components/overlays/viewportLogic.js +1 -2
  282. package/dist/components/renderSlot.js +1 -2
  283. package/dist/components/rootProps.js +1 -2
  284. package/dist/components/slotCatalog.js +33 -34
  285. package/dist/components/slotsLogic.js +1 -2
  286. package/dist/components/tone.js +1 -2
  287. package/dist/css/base.css +1 -1
  288. package/dist/css/components/navigation/navigation.css +1 -1
  289. package/dist/css/components/overlays/KapiViewport.css +1 -1
  290. package/dist/hooks/asyncResourceLogic.js +1 -2
  291. package/dist/hooks/breakpointOpenLogic.js +1 -2
  292. package/dist/hooks/colorLogic.js +1 -2
  293. package/dist/hooks/dateFormat.js +1 -2
  294. package/dist/hooks/densityLogic.js +1 -2
  295. package/dist/hooks/directionLogic.js +1 -2
  296. package/dist/hooks/downloadLogic.js +1 -2
  297. package/dist/hooks/elementSizeLogic.js +1 -2
  298. package/dist/hooks/fieldErrorsLogic.js +1 -2
  299. package/dist/hooks/focusLogic.js +2 -11
  300. package/dist/hooks/growOriginLogic.js +1 -2
  301. package/dist/hooks/hotkeyLogic.js +1 -2
  302. package/dist/hooks/hotkeyRegistry.js +1 -2
  303. package/dist/hooks/kapiRoot.js +2 -3
  304. package/dist/hooks/mergeRefs.js +1 -2
  305. package/dist/hooks/numberFormatLogic.js +1 -2
  306. package/dist/hooks/onlineStatusLogic.js +1 -2
  307. package/dist/hooks/ownerDocument.js +1 -2
  308. package/dist/hooks/persistentStateLogic.js +1 -2
  309. package/dist/hooks/portalRoot.js +1 -2
  310. package/dist/hooks/rafThrottle.js +1 -2
  311. package/dist/hooks/rangeSelectLogic.js +1 -2
  312. package/dist/hooks/recentLogic.js +1 -2
  313. package/dist/hooks/reducedMotion.js +8 -9
  314. package/dist/hooks/rightClick.js +10 -11
  315. package/dist/hooks/scrollCollapseLogic.js +1 -2
  316. package/dist/hooks/scrollEdgesLogic.js +1 -2
  317. package/dist/hooks/shallowStable.js +1 -2
  318. package/dist/hooks/slidingIndicatorLogic.js +1 -2
  319. package/dist/hooks/storageLogic.js +1 -2
  320. package/dist/hooks/themeColorsLogic.js +1 -2
  321. package/dist/hooks/themeContrastLogic.js +1 -2
  322. package/dist/hooks/themeDeriveLogic.js +0 -1
  323. package/dist/hooks/themeRadiiLogic.js +1 -2
  324. package/dist/hooks/themeScript.js +1 -2
  325. package/dist/hooks/toneFamilyLogic.js +1 -2
  326. package/dist/hooks/unsavedGuardLogic.js +1 -2
  327. package/dist/hooks/useAsyncLoader.js +1 -2
  328. package/dist/hooks/useAsyncResource.js +5 -6
  329. package/dist/hooks/useAsyncTasks.js +1 -2
  330. package/dist/hooks/useBottomBarInset.js +9 -10
  331. package/dist/hooks/useControllableState.js +1 -2
  332. package/dist/hooks/useDebouncedValue.js +1 -2
  333. package/dist/hooks/useDisclosure.js +1 -2
  334. package/dist/hooks/useDismiss.js +10 -11
  335. package/dist/hooks/useDragScroll.js +12 -13
  336. package/dist/hooks/useElementSize.js +1 -2
  337. package/dist/hooks/useFieldErrors.js +1 -2
  338. package/dist/hooks/useFocusReturn.js +1 -2
  339. package/dist/hooks/useFormReset.js +1 -2
  340. package/dist/hooks/useGlobalRightClick.js +1 -2
  341. package/dist/hooks/useGrowOrigin.js +1 -2
  342. package/dist/hooks/useHotkey.js +1 -2
  343. package/dist/hooks/useHydrated.js +1 -2
  344. package/dist/hooks/useKapiTheme.js +55 -56
  345. package/dist/hooks/useMediaQuery.js +1 -2
  346. package/dist/hooks/useObjectUrl.js +1 -2
  347. package/dist/hooks/useOnlineStatus.js +1 -2
  348. package/dist/hooks/useOutsidePress.js +1 -2
  349. package/dist/hooks/usePersistentState.js +9 -10
  350. package/dist/hooks/usePlacement.js +15 -16
  351. package/dist/hooks/useRangeSelect.js +2 -3
  352. package/dist/hooks/useRecent.js +6 -7
  353. package/dist/hooks/useScrollCollapse.js +1 -2
  354. package/dist/hooks/useScrollEdges.js +25 -26
  355. package/dist/hooks/useSlidingIndicator.js +19 -20
  356. package/dist/hooks/useSubmitDraft.js +1 -2
  357. package/dist/hooks/useToneFamilies.js +0 -1
  358. package/dist/hooks/useTypeahead.js +1 -2
  359. package/dist/hooks/useUnsavedGuard.js +5 -6
  360. package/dist/hooks/useVirtualList.js +1 -2
  361. package/dist/hooks/useWheelZoom.js +1 -2
  362. package/dist/hooks/viewportInsetLogic.js +1 -2
  363. package/dist/hooks/virtualListLogic.js +0 -1
  364. package/dist/hooks/wheelZoomLogic.js +1 -2
  365. package/dist/kapi.css +1 -1
  366. package/dist/kapi.layered.css +1 -1
  367. package/dist/logic.js +45 -45
  368. package/package.json +35 -36
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/overlays/overlays.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
5
- import { useLabels as n } from "../locale/KapiLocaleProvider.js";
6
- import { useControllableState as r } from "../../hooks/useControllableState.js";
7
- import { useDismiss as i } from "../../hooks/useDismiss.js";
8
3
  /* empty css */
9
- import { focusableWithin as a } from "../../hooks/focusLogic.js";
4
+ import { useLabels as e } from "../locale/KapiLocaleProvider.js";
5
+ import { focusableWithin as t } from "../../hooks/focusLogic.js";
6
+ import { joinClasses as n } from "../rootProps.js";
7
+ import { useMergedRefs as r } from "../../hooks/mergeRefs.js";
8
+ import { useControllableState as i } from "../../hooks/useControllableState.js";
9
+ import { useDismiss as a } from "../../hooks/useDismiss.js";
10
10
  import { useEffect as o, useId as s, useRef as c } from "react";
11
11
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
12
12
  import { Minus as d, Plus as f } from "lucide-react";
13
- //#region src/components/overlays/KapiShapeSheet.tsx
13
+ // src/components/overlays/KapiShapeSheet.tsx
14
14
  var p = {
15
15
  close: "Cerrar",
16
16
  open: "Abrir"
17
17
  }, m = ({ title: m, children: h, width: g = 300, height: _ = 250, label: v, labels: y, className: b, style: x, id: S, ref: C, open: w, defaultOpen: T = !1, onOpenChange: E }) => {
18
- let D = n("shapeSheet", p, y), O = c(null), k = t(O, C), A = c(null), j = c(null), M = c(null), N = s(), [P, F] = r(w, T, E), I = c(P);
18
+ let D = e("shapeSheet", p, y), O = c(null), k = r(O, C), A = c(null), j = c(null), M = c(null), N = s(), [P, F] = i(w, T, E), I = c(P);
19
19
  I.current = P;
20
20
  let L = (e) => {
21
21
  e !== I.current && F(e);
@@ -23,9 +23,9 @@ var p = {
23
23
  R.current = !0, L(!1);
24
24
  };
25
25
  o(() => {
26
- P ? (a(M.current)[0] ?? j.current)?.focus() : R.current && (R.current = !1, A.current?.focus());
26
+ P ? (t(M.current)[0] ?? j.current)?.focus() : R.current && (R.current = !1, A.current?.focus());
27
27
  }, [P]);
28
- let B = i(P, {
28
+ let B = a(P, {
29
29
  zones: [O],
30
30
  onDismiss: (e) => {
31
31
  e === "escape" && (R.current = !0), L(!1);
@@ -34,7 +34,7 @@ var p = {
34
34
  return /* @__PURE__ */ u("div", {
35
35
  ref: k,
36
36
  id: S,
37
- className: e("kapi-shape", P && "kapi-shape--open", b),
37
+ className: n("kapi-shape", P && "kapi-shape--open", b),
38
38
  style: P ? {
39
39
  ...x,
40
40
  width: g,
@@ -84,5 +84,4 @@ var p = {
84
84
  })]
85
85
  });
86
86
  };
87
- //#endregion
88
87
  export { p as DEFAULT_SHAPE_SHEET_LABELS, m as KapiShapeSheet };
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/overlays/overlays.css";
3
- import { useLabels as e } from "../locale/KapiLocaleProvider.js";
4
- import { slot as t } from "../slotsLogic.js";
5
- /* empty css */
6
- import { KapiModal as n } from "./KapiModal.js";
7
- import { groupHotkeys as r, hotkeyKeys as i, hotkeyRegistry as a } from "../../hooks/hotkeyRegistry.js";
3
+ import { KapiModal as e } from "./KapiModal.js";
4
+ import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
+ import { groupHotkeys as n, hotkeyKeys as r, hotkeyRegistry as i } from "../../hooks/hotkeyRegistry.js";
6
+ import { slot as a } from "../slotsLogic.js";
8
7
  import { SHORTCUTS_HELP_SLOTS as o } from "./shortcutsHelpSlots.js";
8
+ /* empty css */
9
9
  import { useSyncExternalStore as s } from "react";
10
10
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
11
- //#region src/components/overlays/KapiShortcutsHelp.tsx
11
+ // src/components/overlays/KapiShortcutsHelp.tsx
12
12
  var u = {
13
13
  title: "Atajos de teclado",
14
14
  general: "General",
15
15
  empty: "No hay atajos disponibles en esta pantalla."
16
16
  }, d = () => typeof navigator < "u" && /mac/i.test(navigator.platform || navigator.userAgent), f = ({ ref: f, open: p, onClose: m, title: h, mac: g, className: _, style: v, id: y, classNames: b, labels: x }) => {
17
- let S = e("shortcutsHelp", u, x), C = s(a.subscribe, a.getSnapshot, a.getSnapshot), w = r(C, S.general), T = g ?? d();
18
- return /* @__PURE__ */ c(n, {
17
+ let S = t("shortcutsHelp", u, x), C = s(i.subscribe, i.getSnapshot, i.getSnapshot), w = n(C, S.general), T = g ?? d();
18
+ return /* @__PURE__ */ c(e, {
19
19
  open: p,
20
20
  onClose: m,
21
21
  title: h === void 0 ? S.title : h,
@@ -27,29 +27,28 @@ var u = {
27
27
  children: w.length === 0 ? /* @__PURE__ */ c("p", {
28
28
  className: "kapi-muted",
29
29
  children: S.empty
30
- }) : w.map(({ group: e, items: n }) => /* @__PURE__ */ l("section", {
31
- ...t(o, "group", b),
30
+ }) : w.map(({ group: e, items: t }) => /* @__PURE__ */ l("section", {
31
+ ...a(o, "group", b),
32
32
  children: [/* @__PURE__ */ c("h3", {
33
- ...t(o, "groupTitle", b),
33
+ ...a(o, "groupTitle", b),
34
34
  children: e
35
35
  }), /* @__PURE__ */ c("dl", {
36
- ...t(o, "list", b),
37
- children: n.map((e, n) => /* @__PURE__ */ l("div", {
38
- ...t(o, "row", b),
36
+ ...a(o, "list", b),
37
+ children: t.map((e, t) => /* @__PURE__ */ l("div", {
38
+ ...a(o, "row", b),
39
39
  children: [/* @__PURE__ */ c("dt", {
40
- ...t(o, "keys", b),
41
- children: i(e.combo, T).map((e, t) => /* @__PURE__ */ c("kbd", {
40
+ ...a(o, "keys", b),
41
+ children: r(e.combo, T).map((e, t) => /* @__PURE__ */ c("kbd", {
42
42
  className: "kapi-kbd",
43
43
  children: e
44
44
  }, t))
45
45
  }), /* @__PURE__ */ c("dd", {
46
- ...t(o, "description", b),
46
+ ...a(o, "description", b),
47
47
  children: e.description
48
48
  })]
49
- }, `${e.combo}-${n}`))
49
+ }, `${e.combo}-${t}`))
50
50
  })]
51
51
  }, e))
52
52
  });
53
53
  };
54
- //#endregion
55
54
  export { u as DEFAULT_SHORTCUTS_HELP_LABELS, f as KapiShortcutsHelp };
@@ -1,42 +1,42 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/overlays/KapiModal.css";
3
3
  import "#kapi-css/components/overlays/KapiSplitModal.css";
4
- import { useLabels as e } from "../locale/KapiLocaleProvider.js";
5
- import { dialogNameProps as t, modalClasses as n, resolveDismiss as r } from "./dialogUtils.js";
6
- import { useExitPresence as i } from "./useExitPresence.js";
7
- import { useBackdropClose as a, useNativeDialog as o, usePortalRoot as s, useTrappedDialogWarning as c } from "./useNativeDialog.js";
4
+ import { dialogNameProps as e, modalClasses as t, resolveDismiss as n } from "./dialogUtils.js";
5
+ import { resolveAsideWidth as r, resolvePanelOrder as i, splitModalClasses as a } from "./splitModalLayout.js";
6
+ import { useBackdropClose as o, useNativeDialog as s, usePortalRoot as c, useTrappedDialogWarning as l } from "./useNativeDialog.js";
7
+ import { useExitPresence as u } from "./useExitPresence.js";
8
8
  /* empty css */
9
- import { resolveAsideWidth as l, resolvePanelOrder as u, splitModalClasses as d } from "./splitModalLayout.js";
10
9
  /* empty css */
10
+ import { useLabels as d } from "../locale/KapiLocaleProvider.js";
11
11
  import { useId as f, useRef as p } from "react";
12
12
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
13
13
  import { X as g } from "lucide-react";
14
14
  import { createPortal as _ } from "react-dom";
15
- //#region src/components/overlays/KapiSplitModal.tsx
15
+ // src/components/overlays/KapiSplitModal.tsx
16
16
  var v = {
17
17
  close: "Cerrar",
18
18
  closePanel: "Cerrar panel"
19
19
  }, y = ({ open: e, ...t }) => {
20
- let n = p(null), { present: r, closing: a } = i(e, n);
20
+ let n = p(null), { present: r, closing: i } = u(e, n);
21
21
  return r ? /* @__PURE__ */ m(x, {
22
22
  ...t,
23
23
  dialogRef: n,
24
- closing: a
24
+ closing: i
25
25
  }) : null;
26
- }, b = () => {}, x = ({ title: i, subtitle: p, onClose: y, children: x, footer: S, size: C = "md", hideHeader: w = !1, className: T = "", style: E, id: D, ref: O, closeOnBackdrop: ee, closeOnEscape: k, closeButton: A, dismissible: j, closeLabel: M, labels: N, "aria-label": P, "aria-labelledby": F, aside: I, dialogRef: L, closing: R }) => {
27
- let z = R ? b : y, B = f(), V = f(), H = r({
26
+ }, b = () => {}, x = ({ title: u, subtitle: p, onClose: y, children: x, footer: S, size: C = "md", hideHeader: w = !1, className: T = "", style: E, id: D, ref: O, closeOnBackdrop: ee, closeOnEscape: k, closeButton: A, dismissible: j, closeLabel: M, labels: N, "aria-label": P, "aria-labelledby": F, aside: I, dialogRef: L, closing: R }) => {
27
+ let z = R ? b : y, B = f(), V = f(), H = n({
28
28
  dismissible: j,
29
29
  closeOnEscape: k,
30
30
  closeOnBackdrop: ee,
31
31
  closeButton: A
32
- }), { closeOnEscape: U, closeOnBackdrop: W, closeButton: G } = H, { ref: K, dialogProps: q } = o({ onRequestClose: U ? () => z("escape") : void 0 }), J = a(W ? () => z("backdrop") : void 0);
33
- c("KapiSplitModal", H, K);
34
- let Y = e("splitModal", v, N), X = M ?? Y.close, Z = s();
32
+ }), { closeOnEscape: U, closeOnBackdrop: W, closeButton: G } = H, { ref: K, dialogProps: q } = s({ onRequestClose: U ? () => z("escape") : void 0 }), J = o(W ? () => z("backdrop") : void 0);
33
+ l("KapiSplitModal", H, K);
34
+ let Y = d("splitModal", v, N), X = M ?? Y.close, Z = c();
35
35
  if (!Z) return null;
36
36
  let Q = I?.open === !0, $ = I?.side ?? "left", te = /* @__PURE__ */ h("div", {
37
37
  ref: O,
38
38
  id: D,
39
- className: n(C, T),
39
+ className: t(C, T),
40
40
  style: E,
41
41
  children: [
42
42
  w ? G && /* @__PURE__ */ m("button", {
@@ -53,7 +53,7 @@ var v = {
53
53
  children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
54
54
  id: B,
55
55
  className: "kapi-modal__title",
56
- children: i
56
+ children: u
57
57
  }), p && /* @__PURE__ */ m("div", {
58
58
  className: "kapi-modal__sub",
59
59
  children: p
@@ -79,7 +79,7 @@ var v = {
79
79
  ]
80
80
  }, "main"), ne = I && Q ? /* @__PURE__ */ h("aside", {
81
81
  className: "kapi-splitmodal__aside",
82
- style: { "--kapi-split-aside-w": l(I.width) },
82
+ style: { "--kapi-split-aside-w": r(I.width) },
83
83
  "aria-labelledby": I.title ? V : void 0,
84
84
  children: [
85
85
  (I.title || I.onClose) && /* @__PURE__ */ h("div", {
@@ -108,7 +108,7 @@ var v = {
108
108
  children: I.footer
109
109
  })
110
110
  ]
111
- }, "aside") : null, re = u($).map((e) => e === "main" ? te : ne).filter((e) => e !== null);
111
+ }, "aside") : null, re = i($).map((e) => e === "main" ? te : ne).filter((e) => e !== null);
112
112
  return _(/* @__PURE__ */ m("dialog", {
113
113
  ref: (e) => {
114
114
  K.current = e, L.current = e;
@@ -116,9 +116,9 @@ var v = {
116
116
  className: "kapi-modal-overlay kapi-modal-dialog",
117
117
  "data-closing": R || void 0,
118
118
  "aria-modal": "true",
119
- ...t({
119
+ ...e({
120
120
  titleId: B,
121
- title: i,
121
+ title: u,
122
122
  hideHeader: w,
123
123
  "aria-label": P,
124
124
  "aria-labelledby": F
@@ -126,10 +126,9 @@ var v = {
126
126
  ...q,
127
127
  ...J,
128
128
  children: /* @__PURE__ */ m("div", {
129
- className: Q ? d($) : "kapi-splitmodal kapi-splitmodal--single",
129
+ className: Q ? a($) : "kapi-splitmodal kapi-splitmodal--single",
130
130
  children: re
131
131
  })
132
132
  }), Z);
133
133
  };
134
- //#endregion
135
134
  export { v as DEFAULT_SPLIT_MODAL_LABELS, y as KapiSplitModal };
@@ -1,33 +1,33 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/overlays/overlays.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
5
- import { useKapiDir as n } from "../locale/KapiLocaleProvider.js";
6
- import { winOf as r } from "../../hooks/ownerDocument.js";
7
- import { joinIds as i } from "../inputs/fieldLogic.js";
8
- import { placePopover as a } from "./popoverLogic.js";
9
- import { onViewportChange as o } from "../../hooks/rafThrottle.js";
10
- import { placementViewport as s } from "../../hooks/viewportInsetLogic.js";
11
- import { resolveDirection as c } from "../../hooks/directionLogic.js";
3
+ import { joinIds as e } from "../inputs/fieldLogic.js";
4
+ import { placePopover as t } from "./popoverLogic.js";
5
+ import { onViewportChange as n } from "../../hooks/rafThrottle.js";
6
+ import { placementViewport as r } from "../../hooks/viewportInsetLogic.js";
12
7
  /* empty css */
8
+ import { joinClasses as i } from "../rootProps.js";
9
+ import { useMergedRefs as a } from "../../hooks/mergeRefs.js";
10
+ import { resolveDirection as o } from "../../hooks/directionLogic.js";
11
+ import { useKapiDir as s } from "../locale/KapiLocaleProvider.js";
12
+ import { winOf as c } from "../../hooks/ownerDocument.js";
13
13
  import { cloneElement as l, isValidElement as ee, useEffect as u, useId as te, useLayoutEffect as d, useRef as f, useState as p } from "react";
14
14
  import { jsx as m, jsxs as ne } from "react/jsx-runtime";
15
- //#region src/components/overlays/KapiTooltip.tsx
16
- var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "rtl" ? "left" : "right" : e === "start" ? t === "rtl" ? "right" : "left" : e, x = (e) => typeof e == "string" || typeof e == "number" ? Math.min(h, String(e).length * g + _) : h, S = (e, t, n, r, i = Infinity) => {
17
- let o = t.bottom ?? t.top, s = t.left ?? t.right, c = {
18
- top: t.top,
15
+ // src/components/overlays/KapiTooltip.tsx
16
+ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "rtl" ? "left" : "right" : e === "start" ? t === "rtl" ? "right" : "left" : e, x = (e) => typeof e == "string" || typeof e == "number" ? Math.min(h, String(e).length * g + _) : h, S = (e, n, r, i, a = Infinity) => {
17
+ let o = n.bottom ?? n.top, s = n.left ?? n.right, c = {
18
+ top: n.top,
19
19
  bottom: o,
20
20
  left: s,
21
- right: t.right,
22
- width: t.right - s,
23
- height: o - t.top
21
+ right: n.right,
22
+ width: n.right - s,
23
+ height: o - n.top
24
24
  }, l = e === "top" || e === "bottom";
25
- return a(c, {
26
- width: x(n),
25
+ return t(c, {
26
+ width: x(r),
27
27
  height: y
28
28
  }, {
29
- width: r,
30
- height: i
29
+ width: i,
30
+ height: a
31
31
  }, {
32
32
  side: e,
33
33
  offset: l ? 0 : v,
@@ -39,14 +39,14 @@ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "r
39
39
  flip: !1,
40
40
  shift: !1,
41
41
  mainMin: -Infinity
42
- }, E = (e, t) => {
43
- let n = e === "top" || e === "bottom", { top: r, left: i } = a({
44
- top: t.top,
45
- bottom: t.bottom,
46
- left: t.left,
47
- right: t.right,
48
- width: t.right - t.left,
49
- height: t.bottom - t.top
42
+ }, E = (e, n) => {
43
+ let r = e === "top" || e === "bottom", { top: i, left: a } = t({
44
+ top: n.top,
45
+ bottom: n.bottom,
46
+ left: n.left,
47
+ right: n.right,
48
+ width: n.right - n.left,
49
+ height: n.bottom - n.top
50
50
  }, {
51
51
  width: 0,
52
52
  height: 0
@@ -56,11 +56,11 @@ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "r
56
56
  }, {
57
57
  ...T,
58
58
  side: e,
59
- offset: n ? w : C
59
+ offset: r ? w : C
60
60
  });
61
61
  return {
62
- x: i,
63
- y: r
62
+ x: a,
63
+ y: i
64
64
  };
65
65
  }, D = (e, t) => {
66
66
  try {
@@ -68,17 +68,17 @@ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "r
68
68
  } catch {
69
69
  return null;
70
70
  }
71
- }, O = (e, t) => i(typeof e == "string" ? e : void 0, t), k = ({ label: i, children: a, target: h, prefer: g = "end", disabled: _, multiline: v, openDelay: y = 0, opened: x, className: C, style: w, id: T, ref: k }) => {
72
- let A = te(), j = f(null), M = t(j, k), N = n(), [P, re] = p(() => b(g, c(null, N))), [F, I] = p(!1), [ie, L] = p(!1), R = f(!1), z = x !== void 0, B = _ ? !1 : x ?? ie, V = f({
71
+ }, O = (t, n) => e(typeof t == "string" ? t : void 0, n), k = ({ label: e, children: t, target: h, prefer: g = "end", disabled: _, multiline: v, openDelay: y = 0, opened: x, className: C, style: w, id: T, ref: k }) => {
72
+ let A = te(), j = f(null), M = a(j, k), N = s(), [P, re] = p(() => b(g, o(null, N))), [F, I] = p(!1), [ie, L] = p(!1), R = f(!1), z = x !== void 0, B = _ ? !1 : x ?? ie, V = f({
73
73
  hover: !1,
74
74
  focus: !1
75
75
  }), H = f(null), U = () => {
76
76
  H.current !== null && clearTimeout(H.current), H.current = null;
77
77
  }, W = f(null), ae = () => W.current ?? j.current, G = () => {
78
- let e = ae(), t = j.current;
79
- if (!e || !t) return;
80
- let n = e.getBoundingClientRect(), r = s(e), a = S(b(g, c(e, N)), n, i, r.width, r.height), { x: o, y: l } = E(a, n);
81
- t.style.setProperty("--kapi-tip-x", `${Math.round(o)}px`), t.style.setProperty("--kapi-tip-y", `${Math.round(l)}px`), re(a);
78
+ let t = ae(), n = j.current;
79
+ if (!t || !n) return;
80
+ let i = t.getBoundingClientRect(), a = r(t), s = S(b(g, o(t, N)), i, e, a.width, a.height), { x: c, y: l } = E(s, i);
81
+ n.style.setProperty("--kapi-tip-x", `${Math.round(c)}px`), n.style.setProperty("--kapi-tip-y", `${Math.round(l)}px`), re(s);
82
82
  }, K = f(G);
83
83
  d(() => {
84
84
  K.current = G;
@@ -95,21 +95,21 @@ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "r
95
95
  H.current = null, (V.current.hover || V.current.focus) && X();
96
96
  }, y)));
97
97
  }, Q = (e) => {
98
- _ || z || (V.current[e] = !1, !(V.current.hover || V.current.focus) && (U(), I(!1), L(!1), Y(!1)));
98
+ _ || z || (V.current[e] = !1, V.current.hover || V.current.focus || (U(), I(!1), L(!1), Y(!1)));
99
99
  };
100
100
  d(() => {
101
101
  z && (B ? (R.current || I(!1), G(), Y(!0)) : Y(!1), R.current = B);
102
102
  }, [
103
103
  z,
104
104
  B,
105
- i,
105
+ e,
106
106
  g
107
107
  ]), u(() => {
108
108
  _ && (U(), V.current.hover = !1, V.current.focus = !1, L(!1), Y(!1));
109
109
  }, [_]), u(() => U, []), u(() => {
110
110
  if (!B) return;
111
- let e = r(j.current);
112
- return o(() => K.current(), e ? { target: e } : {});
111
+ let e = c(j.current);
112
+ return n(() => K.current(), e ? { target: e } : {});
113
113
  }, [B]);
114
114
  let oe = () => I(!0), se = (e) => {
115
115
  e.key === "Escape" && !F && oe();
@@ -140,15 +140,15 @@ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "r
140
140
  ]);
141
141
  let ce = /* @__PURE__ */ m("span", {
142
142
  ref: q,
143
- className: e("kapi-tip__bubble", v && "kapi-tip__bubble--multiline"),
143
+ className: i("kapi-tip__bubble", v && "kapi-tip__bubble--multiline"),
144
144
  role: "tooltip",
145
145
  id: A,
146
146
  popover: "manual",
147
- children: i
147
+ children: e
148
148
  });
149
149
  if (h !== void 0) return /* @__PURE__ */ m("span", {
150
150
  id: T,
151
- className: e("kapi-tip", C),
151
+ className: i("kapi-tip", C),
152
152
  style: w,
153
153
  ref: M,
154
154
  "data-side": P,
@@ -156,10 +156,10 @@ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "r
156
156
  "data-dismissed": F || void 0,
157
157
  children: ce
158
158
  });
159
- let $ = ee(a) ? a : null, le = $ && !_ ? l($, { "aria-describedby": O($.props["aria-describedby"], A) }) : a;
159
+ let $ = ee(t) ? t : null, le = $ && !_ ? l($, { "aria-describedby": O($.props["aria-describedby"], A) }) : t;
160
160
  return /* @__PURE__ */ ne("span", {
161
161
  id: T,
162
- className: e("kapi-tip", C),
162
+ className: i("kapi-tip", C),
163
163
  style: w,
164
164
  ref: M,
165
165
  "data-side": P,
@@ -176,5 +176,4 @@ var h = 280, g = 7, _ = 28, v = 12, y = 44, b = (e, t) => e === "end" ? t === "r
176
176
  children: [le, ce]
177
177
  });
178
178
  };
179
- //#endregion
180
179
  export { k as KapiTooltip, x as estimateTooltipWidth, b as physicalTooltipSide, S as resolveTooltipSide, E as tooltipAnchor, O as tooltipDescribedBy };
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/overlays/KapiViewport.css";
3
- import { joinClasses as e } from "../rootProps.js";
3
+ import { KapiIconButton as e } from "../inputs/KapiIconButton.js";
4
4
  import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
- import { docOf as n } from "../../hooks/ownerDocument.js";
6
- import { KapiIconButton as r } from "../inputs/KapiIconButton.js";
7
- import { useControllableState as ee } from "../../hooks/useControllableState.js";
8
- import { useElementSize as i } from "../../hooks/useElementSize.js";
9
- import { nextWheelZoom as a } from "../../hooks/wheelZoomLogic.js";
5
+ import { joinClasses as n } from "../rootProps.js";
6
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
7
+ import { useElementSize as ee } from "../../hooks/useElementSize.js";
8
+ import { nextWheelZoom as i } from "../../hooks/wheelZoomLogic.js";
9
+ import { docOf as a } from "../../hooks/ownerDocument.js";
10
10
  import { VIEWPORT_IDENTITY as te, clampViewport as o, doubleTapScale as ne, fitScale as re, fitViewport as s, pinchCenter as c, pinchDistance as l, zoomAt as u } from "./viewportLogic.js";
11
11
  /* empty css */
12
12
  import { useCallback as ie, useEffect as d, useRef as f, useState as ae } from "react";
13
13
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
14
14
  import { Maximize2 as oe, Minimize2 as se, Minus as h, Plus as g, Scan as _ } from "lucide-react";
15
- //#region src/components/overlays/KapiViewport.tsx
15
+ // src/components/overlays/KapiViewport.tsx
16
16
  var v = {
17
17
  zoomIn: "Acercar",
18
18
  zoomOut: "Alejar",
@@ -20,7 +20,7 @@ var v = {
20
20
  fullscreen: "Pantalla completa",
21
21
  exitFullscreen: "Salir de pantalla completa"
22
22
  }, y = ({ children: y, contentWidth: b, contentHeight: x, minScale: S = .25, maxScale: C = 8, scaleStep: ce = .25, state: w, defaultState: T, onStateChange: le, hideControls: ue, hideFullscreen: de, labels: fe, className: pe, ref: E, ...me }) => {
23
- let D = t("viewport", v, fe), { ref: O, width: k, height: A } = i(), j = f(null), M = f(null), [N, P] = ae(!1), F = {
23
+ let D = t("viewport", v, fe), { ref: O, width: k, height: A } = ee(), j = f(null), M = f(null), [N, P] = ae(!1), F = {
24
24
  width: b,
25
25
  height: x
26
26
  }, I = {
@@ -29,7 +29,7 @@ var v = {
29
29
  }, L = {
30
30
  min: S,
31
31
  max: C
32
- }, R = re(F, I), [z, B] = ee(w, T ?? te, le), V = k > 0 && A > 0, H = V ? o(z, F, I, L) : z, U = b > 0 && x > 0, W = f(T !== void 0 || w !== void 0);
32
+ }, R = re(F, I), [z, B] = r(w, T ?? te, le), V = k > 0 && A > 0, H = V ? o(z, F, I, L) : z, U = b > 0 && x > 0, W = f(T !== void 0 || w !== void 0);
33
33
  d(() => {
34
34
  !W.current && V && U && (W.current = !0, B(s(F, I, L)));
35
35
  }, [
@@ -63,7 +63,7 @@ var v = {
63
63
  }, q = (e, t) => {
64
64
  let n = u(H, e, t, F, I, L);
65
65
  (n.scale !== H.scale || n.x !== H.x || n.y !== H.y) && B(n);
66
- }, J = (e, t) => q(a(H.scale, e, {
66
+ }, J = (e, t) => q(i(H.scale, e, {
67
67
  min: S,
68
68
  max: C,
69
69
  step: ce
@@ -115,13 +115,13 @@ var v = {
115
115
  X.current.delete(e.pointerId), X.current.size < 2 && (Z.current = null), X.current.size === 0 && (Q.current = null);
116
116
  };
117
117
  d(() => {
118
- let e = n(j.current);
118
+ let e = a(j.current);
119
119
  if (!e) return;
120
120
  let t = () => P(e.fullscreenElement === j.current);
121
121
  return e.addEventListener("fullscreenchange", t), t(), () => e.removeEventListener("fullscreenchange", t);
122
122
  }, []);
123
123
  let _e = () => {
124
- let e = j.current, t = n(e);
124
+ let e = j.current, t = a(e);
125
125
  e && t && (t.fullscreenElement ? t.exitFullscreen?.() : e.requestFullscreen?.())?.catch(() => void 0);
126
126
  }, ve = V && (b * H.scale > k || x * H.scale > A);
127
127
  return /* @__PURE__ */ m("div", {
@@ -129,7 +129,7 @@ var v = {
129
129
  ref: (e) => {
130
130
  j.current = e, O(e), typeof E == "function" ? E(e) : E && (E.current = e);
131
131
  },
132
- className: e("kapi-viewport", ve && "is-pannable", pe),
132
+ className: n("kapi-viewport", ve && "is-pannable", pe),
133
133
  children: [/* @__PURE__ */ p("div", {
134
134
  ref: M,
135
135
  className: "kapi-viewport__stage",
@@ -147,7 +147,7 @@ var v = {
147
147
  }), !ue && /* @__PURE__ */ m("div", {
148
148
  className: "kapi-viewport__controls",
149
149
  children: [
150
- /* @__PURE__ */ p(r, {
150
+ /* @__PURE__ */ p(e, {
151
151
  "aria-label": D.zoomOut,
152
152
  icon: /* @__PURE__ */ p(h, {
153
153
  size: 16,
@@ -159,7 +159,7 @@ var v = {
159
159
  }),
160
160
  disabled: H.scale <= S
161
161
  }),
162
- /* @__PURE__ */ p(r, {
162
+ /* @__PURE__ */ p(e, {
163
163
  "aria-label": D.zoomIn,
164
164
  icon: /* @__PURE__ */ p(g, {
165
165
  size: 16,
@@ -171,7 +171,7 @@ var v = {
171
171
  }),
172
172
  disabled: H.scale >= C
173
173
  }),
174
- /* @__PURE__ */ p(r, {
174
+ /* @__PURE__ */ p(e, {
175
175
  "aria-label": D.fit,
176
176
  icon: /* @__PURE__ */ p(_, {
177
177
  size: 16,
@@ -179,7 +179,7 @@ var v = {
179
179
  }),
180
180
  onClick: () => G(s(F, I, L))
181
181
  }),
182
- !de && /* @__PURE__ */ p(r, {
182
+ !de && /* @__PURE__ */ p(e, {
183
183
  "aria-label": N ? D.exitFullscreen : D.fullscreen,
184
184
  icon: p(N ? se : oe, {
185
185
  size: 16,
@@ -191,5 +191,4 @@ var v = {
191
191
  })]
192
192
  });
193
193
  };
194
- //#endregion
195
194
  export { v as DEFAULT_VIEWPORT_LABELS, y as KapiViewport };
@@ -1,4 +1,4 @@
1
- //#region src/components/overlays/canvasFormLogic.ts
1
+ // src/components/overlays/canvasFormLogic.ts
2
2
  var e = (e) => typeof e == "object" && !!e && typeof e.then == "function", t = async (t, n) => {
3
3
  let r = !1;
4
4
  try {
@@ -12,5 +12,4 @@ var e = (e) => typeof e == "object" && !!e && typeof e.then == "function", t = a
12
12
  r && n.onEnd();
13
13
  }
14
14
  };
15
- //#endregion
16
15
  export { e as isThenable, t as runSubmit };
@@ -1,4 +1,4 @@
1
- //#region src/components/overlays/commandPaletteLogic.ts
1
+ // src/components/overlays/commandPaletteLogic.ts
2
2
  var e = (e) => e.normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase(), t = (e) => typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(t).join("") : e && typeof e == "object" && "props" in e ? t(e.props?.children) : "", n = (t, n) => {
3
3
  let r = e(n.trim());
4
4
  if (!r) return !0;
@@ -15,5 +15,4 @@ var e = (e) => e.normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase(), t = (e)
15
15
  }
16
16
  return r;
17
17
  }, i = (e) => e.flatMap((e) => e.commands.filter((e) => !e.disabled)), a = (e, t) => t <= 0 ? -1 : e < 0 ? 0 : Math.min(e, t - 1);
18
- //#endregion
19
18
  export { a as clampActiveIndex, r as filterGroups, i as flattenNavigable, n as matchesCommand, t as nodeText, e as normalizeText };
@@ -1,4 +1,4 @@
1
- //#region src/components/overlays/dialogStore.ts
1
+ // src/components/overlays/dialogStore.ts
2
2
  var e = () => {
3
3
  let e = [], t = [], n = 0, r = {
4
4
  dialog: null,
@@ -13,8 +13,8 @@ var e = () => {
13
13
  e = [...e, {
14
14
  request: n,
15
15
  resolve: r
16
- }], t = t.filter((e) => e.owned), s(), !(i.size > 0 || a) && (a = !0, setTimeout(() => {
17
- a = !1, !(i.size > 0 || e.length === 0 || o) && (o = !0, console.warn("kapiConfirm/kapiAlertDialog: no hay ningún KapiDialogHost montado. El diálogo queda en cola hasta que se monte uno."));
16
+ }], t = t.filter((e) => e.owned), s(), i.size > 0 || a || (a = !0, setTimeout(() => {
17
+ a = !1, i.size > 0 || e.length === 0 || o || (o = !0, console.warn("kapiConfirm/kapiAlertDialog: no hay ningún KapiDialogHost montado. El diálogo queda en cola hasta que se monte uno."));
18
18
  }, 0));
19
19
  }, l = (t, n) => {
20
20
  let r = e[0];
@@ -72,5 +72,4 @@ var e = () => {
72
72
  let t = e instanceof Error ? e.message : typeof e == "string" ? e : "";
73
73
  return typeof t == "string" && t !== "" ? t : null;
74
74
  }, s = Object.assign((e) => t.loading(e), { run: (e, n) => t.run(e, n) });
75
- //#endregion
76
75
  export { o as confirmErrorMessage, e as createDialogStore, t as dialogStore, i as kapiAlert, r as kapiAlertDialog, a as kapiCloseDialogs, n as kapiConfirm, s as kapiLoading };
@@ -1,4 +1,4 @@
1
- //#region src/components/overlays/dialogUtils.ts
1
+ // src/components/overlays/dialogUtils.ts
2
2
  var e = (e, t, n) => Math.min(n, Math.max(t, e)), t = (e, t) => {
3
3
  if (typeof e == "number") return Number.isFinite(e) && e > 0 ? `${e}px` : t;
4
4
  let n = e?.trim();
@@ -62,5 +62,4 @@ var e = (e, t, n) => Math.min(n, Math.max(t, e)), t = (e, t) => {
62
62
  closeOnBackdrop: n ?? e,
63
63
  closeButton: r ?? e
64
64
  }), l = "button:not([disabled]), a[href], [role='button'], input[type='submit']", u = (e, t) => !e.closeButton && !e.closeOnEscape && t !== null && t.querySelector(l) === null;
65
- //#endregion
66
65
  export { e as clamp, s as createScrollLock, n as dialogNameProps, u as isTrappedDialog, o as maxTransitionMs, i as modalClasses, a as parseCssTime, c as resolveDismiss, t as toCssSize };
@@ -1,5 +1,4 @@
1
1
  import { maxTransitionMs as e } from "./dialogUtils.js";
2
- //#region src/components/overlays/exitPresenceLogic.ts
2
+ // src/components/overlays/exitPresenceLogic.ts
3
3
  var t = (e, t) => t ? "open" : e === "open" ? "closing" : e, n = (t) => Math.max(e(t.animationDuration || "0s", t.animationDelay || "0s"), e(t.transitionDuration || "0s", t.transitionDelay || "0s"));
4
- //#endregion
5
4
  export { n as exitWaitMs, t as nextExitPhase };
@@ -1,5 +1,5 @@
1
1
  import { findTypeaheadMatch as e } from "./menuKeyboardLogic.js";
2
- //#region src/components/overlays/menuButtonLogic.ts
2
+ // src/components/overlays/menuButtonLogic.ts
3
3
  var t = (e) => e.sep === !0 || "header" in e, n = (e) => t(e) || "label" in e && e.disabled === !0, r = (e) => e.flatMap((e, t) => n(e) ? [] : [t]), i = (e) => !t(e) && "label" in e, a = (e) => i(e) ? typeof e.label == "string" ? e.label : e.textValue ?? "" : "", o = (t, n, i) => {
4
4
  let o = r(t);
5
5
  return e(t.length, (e) => a(t[e]), o.includes(n) ? n : -1, i, {
@@ -11,5 +11,4 @@ var t = (e) => e.sep === !0 || "header" in e, n = (e) => t(e) || "label" in e &&
11
11
  flip: "auto",
12
12
  shift: !0
13
13
  };
14
- //#endregion
15
14
  export { u as ACTION_MENU_PLACEMENT, r as actionableIndexes, l as estimateMenuHeight, i as isActionMenuItem, t as isStaticMenuItem, o as matchMenuTypeahead, s as menuItemRole, a as menuItemText, c as submenuKeyAction };
@@ -1,4 +1,4 @@
1
- //#region src/components/overlays/menuKeyboardLogic.ts
1
+ // src/components/overlays/menuKeyboardLogic.ts
2
2
  var e = {
3
3
  ArrowDown: {
4
4
  dir: "next",
@@ -57,5 +57,4 @@ var e = {
57
57
  let t = e?.getAttribute("data-menu-index");
58
58
  return t == null ? -1 : Number(t);
59
59
  };
60
- //#endregion
61
60
  export { n as enabledIndexes, s as findTypeaheadMatch, l as focusedMenuIndex, c as initialMenuFocus, a as isTypeaheadKey, r as menuKeyIntent, t as navKeyOf, i as nextEnabledIndex, o as normalizeText };