@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
@@ -3,7 +3,7 @@ import "#kapi-css/components/chat/chat.css";
3
3
  import { joinClasses as e } from "../rootProps.js";
4
4
  /* empty css */
5
5
  import { jsx as t } from "react/jsx-runtime";
6
- //#region src/components/chat/KapiChatDivider.tsx
6
+ // src/components/chat/KapiChatDivider.tsx
7
7
  var n = ({ variant: n, tone: r, children: i, ref: a, className: o, ...s }) => /* @__PURE__ */ t("div", {
8
8
  ...s,
9
9
  ref: a,
@@ -14,5 +14,4 @@ var n = ({ variant: n, tone: r, children: i, ref: a, className: o, ...s }) => /*
14
14
  children: i
15
15
  })
16
16
  });
17
- //#endregion
18
17
  export { n as KapiChatDivider };
@@ -1,42 +1,42 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/chat/chat.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
- import { KapiAvatar as n } from "../display/KapiAvatar.js";
3
+ import { KapiAvatar as e } from "../display/KapiAvatar.js";
4
+ import { KapiEmpty as t } from "../feedback/KapiEmpty.js";
5
+ import { useLabels as n } from "../locale/KapiLocaleProvider.js";
6
+ import { KapiNavBadge as r } from "../navigation/KapiNavBadge.js";
7
+ import { joinClasses as i } from "../rootProps.js";
6
8
  /* empty css */
7
- import { KapiEmpty as r } from "../feedback/KapiEmpty.js";
8
- import { KapiNavBadge as i } from "../navigation/KapiNavBadge.js";
9
9
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
10
- //#region src/components/chat/KapiChatList.tsx
10
+ // src/components/chat/KapiChatList.tsx
11
11
  var s = {
12
12
  list: "Conversaciones",
13
13
  empty: "No hay conversaciones",
14
14
  unread: "sin leer"
15
15
  }, c = ({ items: c, activeId: l, onSelect: u, emptyMessage: d, empty: f, labels: p, ref: m, className: h, ...g }) => {
16
- let _ = t("chatList", s, p), v = d === void 0 ? f : d;
16
+ let _ = n("chatList", s, p), v = d === void 0 ? f : d;
17
17
  return c.length === 0 ? /* @__PURE__ */ a("div", {
18
18
  ...g,
19
19
  ref: m,
20
- className: e("kapi-chatlist", h),
21
- children: v === void 0 ? /* @__PURE__ */ a(r, { title: _.empty }) : v
20
+ className: i("kapi-chatlist", h),
21
+ children: v === void 0 ? /* @__PURE__ */ a(t, { title: _.empty }) : v
22
22
  }) : /* @__PURE__ */ a("div", {
23
23
  "aria-label": _.list,
24
24
  ...g,
25
25
  ref: m,
26
26
  role: "group",
27
- className: e("kapi-chatlist", h),
27
+ className: i("kapi-chatlist", h),
28
28
  children: c.map((t) => {
29
- let r = l != null && l === t.id, s = t.unread ?? 0;
29
+ let n = l != null && l === t.id, s = t.unread ?? 0;
30
30
  return /* @__PURE__ */ o("button", {
31
31
  type: "button",
32
- className: e("kapi-chatlist__item", r && "kapi-chatlist__item--on"),
33
- "aria-current": r ? "page" : void 0,
32
+ className: i("kapi-chatlist__item", n && "kapi-chatlist__item--on"),
33
+ "aria-current": n ? "page" : void 0,
34
34
  disabled: t.disabled,
35
35
  onClick: () => u?.(t.id),
36
36
  children: [/* @__PURE__ */ a("span", {
37
37
  className: "kapi-chatlist__avatar",
38
38
  "aria-hidden": "true",
39
- children: /* @__PURE__ */ a(n, {
39
+ children: /* @__PURE__ */ a(e, {
40
40
  name: t.name,
41
41
  ...t.initials !== void 0 && { initials: t.initials },
42
42
  ...t.avatarSrc !== void 0 && { src: t.avatarSrc }
@@ -57,7 +57,7 @@ var s = {
57
57
  children: [/* @__PURE__ */ a("span", {
58
58
  className: "kapi-chatlist__preview",
59
59
  children: t.preview
60
- }), /* @__PURE__ */ a(i, {
60
+ }), /* @__PURE__ */ a(r, {
61
61
  value: s,
62
62
  tone: t.unreadTone,
63
63
  label: `${s} ${_.unread}`
@@ -68,5 +68,4 @@ var s = {
68
68
  })
69
69
  });
70
70
  };
71
- //#endregion
72
71
  export { s as DEFAULT_CHAT_LIST_LABELS, c as KapiChatList };
@@ -1,36 +1,36 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/chat/chat.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useLabels as t } from "../locale/KapiLocaleProvider.js";
3
+ import { prefersReducedMotion as e } from "../../hooks/reducedMotion.js";
4
+ import { useScrollEdges as t } from "../../hooks/useScrollEdges.js";
5
5
  import { assignRef as n } from "../inputs/fieldLogic.js";
6
- import { prefersReducedMotion as r } from "../../hooks/reducedMotion.js";
7
- import { isAtScrollEnd as i, shouldFollowBottom as a } from "./chatLogic.js";
6
+ import { useLabels as r } from "../locale/KapiLocaleProvider.js";
7
+ import { KapiNavBadge as i } from "../navigation/KapiNavBadge.js";
8
+ import { joinClasses as a } from "../rootProps.js";
9
+ import { isAtScrollEnd as o, shouldFollowBottom as s } from "./chatLogic.js";
8
10
  /* empty css */
9
- import { KapiNavBadge as o } from "../navigation/KapiNavBadge.js";
10
- import { useScrollEdges as s } from "../../hooks/useScrollEdges.js";
11
11
  import { useCallback as c, useLayoutEffect as l, useRef as u } from "react";
12
12
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
13
- //#region src/components/chat/KapiChatThread.tsx
13
+ // src/components/chat/KapiChatThread.tsx
14
14
  var p = {
15
15
  unseen: "Mensajes nuevos",
16
16
  toBottom: "Ir al final del hilo"
17
17
  }, m = ({ children: m, unseen: h = 0, followKey: g, onAtBottomChange: _, labels: v, ref: y, className: b, ...x }) => {
18
- let S = t("chatThread", p, v), { ref: C, edges: w } = s({ axis: "y" }), T = u(null), E = !w.end, D = u(!0), O = u(!1), k = c((e) => {
18
+ let S = r("chatThread", p, v), { ref: C, edges: w } = t({ axis: "y" }), T = u(null), E = !w.end, D = u(!0), O = u(!1), k = c((e) => {
19
19
  C.current = e, n(y, e);
20
- }, [C, y]), A = c((e) => {
21
- let t = C.current;
22
- if (!t) return;
23
- let n = e || r(t) ? "auto" : "smooth";
24
- D.current = !0, O.current = !i(t), typeof t.scrollTo == "function" ? t.scrollTo({
25
- top: t.scrollHeight,
26
- behavior: n
27
- }) : t.scrollTop = t.scrollHeight;
20
+ }, [C, y]), A = c((t) => {
21
+ let n = C.current;
22
+ if (!n) return;
23
+ let r = t || e(n) ? "auto" : "smooth";
24
+ D.current = !0, O.current = !o(n), typeof n.scrollTo == "function" ? n.scrollTo({
25
+ top: n.scrollHeight,
26
+ behavior: r
27
+ }) : n.scrollTop = n.scrollHeight;
28
28
  }, [C]);
29
29
  l(() => {
30
30
  let e = C.current;
31
31
  if (!e) return;
32
32
  let t = () => {
33
- let t = i(e);
33
+ let t = o(e);
34
34
  O.current ? t && (O.current = !1) : D.current = t;
35
35
  }, n = () => {
36
36
  O.current = !1;
@@ -49,7 +49,7 @@ var p = {
49
49
  let e = T.current;
50
50
  if (!e || typeof ResizeObserver > "u") return;
51
51
  let t = new ResizeObserver(() => {
52
- a({
52
+ s({
53
53
  atBottom: D.current,
54
54
  outgoing: !1
55
55
  }) && A(!1);
@@ -65,7 +65,7 @@ var p = {
65
65
  }, [C, A]);
66
66
  let j = u(g);
67
67
  l(() => {
68
- Object.is(j.current, g) || (j.current = g, a({
68
+ Object.is(j.current, g) || (j.current = g, s({
69
69
  atBottom: D.current,
70
70
  outgoing: !0
71
71
  }) && A(!1));
@@ -77,7 +77,7 @@ var p = {
77
77
  let N = !E && h > 0;
78
78
  return /* @__PURE__ */ f("div", {
79
79
  ...x,
80
- className: e("kapi-chatthread", b),
80
+ className: a("kapi-chatthread", b),
81
81
  children: [/* @__PURE__ */ d("div", {
82
82
  ref: k,
83
83
  className: "kapi-chatthread__scroll",
@@ -95,12 +95,11 @@ var p = {
95
95
  children: [/* @__PURE__ */ d("span", {
96
96
  "aria-hidden": "true",
97
97
  children: S.unseen
98
- }), /* @__PURE__ */ d(o, {
98
+ }), /* @__PURE__ */ d(i, {
99
99
  value: h,
100
100
  announce: !1
101
101
  })]
102
102
  })]
103
103
  });
104
104
  };
105
- //#endregion
106
105
  export { p as DEFAULT_CHAT_THREAD_LABELS, m as KapiChatThread };
@@ -1,42 +1,42 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/chat/chat.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
- import { KapiIconButton as n } from "../inputs/KapiIconButton.js";
6
- import { assignRef as r, joinIds as i } from "../inputs/fieldLogic.js";
7
- import { useKapiField as a } from "../inputs/KapiField.js";
8
- import { KapiTextarea as o } from "../inputs/KapiTextarea.js";
9
- import { isSubmitShortcut as s } from "../display/commentLogic.js";
10
- import { useSubmitDraft as c } from "../../hooks/useSubmitDraft.js";
3
+ import { isSubmitShortcut as e } from "../display/commentLogic.js";
4
+ import { useSubmitDraft as t } from "../../hooks/useSubmitDraft.js";
5
+ import { useKapiField as n } from "../inputs/KapiField.js";
6
+ import { KapiIconButton as r } from "../inputs/KapiIconButton.js";
7
+ import { KapiTextarea as i } from "../inputs/KapiTextarea.js";
8
+ import { assignRef as a, joinIds as o } from "../inputs/fieldLogic.js";
9
+ import { useLabels as s } from "../locale/KapiLocaleProvider.js";
10
+ import { joinClasses as c } from "../rootProps.js";
11
11
  /* empty css */
12
12
  import { useId as l } from "react";
13
13
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
14
14
  import { Send as f } from "lucide-react";
15
- //#region src/components/chat/KapiComposer.tsx
15
+ // src/components/chat/KapiComposer.tsx
16
16
  var p = {
17
17
  label: "Mensaje",
18
18
  placeholder: "Escribe un mensaje…",
19
19
  send: "Enviar",
20
20
  shortcut: "Enter envía, Shift + Enter hace un salto de línea"
21
21
  }, m = ({ value: m, defaultValue: h, onChange: g, onSubmit: _, submitOn: v = "enter", loading: y = !1, invalid: b, required: x, disabled: S, leading: C, trailing: w, maxRows: T = 6, rows: E = 1, className: D, style: O, labels: k, ref: A, placeholder: j, onKeyDown: M, "aria-label": N, "aria-labelledby": P, "aria-describedby": F, ...I }) => {
22
- let L = t("composer", p, k), R = a(), z = l(), { text: B, setText: V, submit: H, busy: U, canSubmit: W, boxRef: G } = c({
22
+ let L = s("composer", p, k), R = n(), z = l(), { text: B, setText: V, submit: H, busy: U, canSubmit: W, boxRef: G } = t({
23
23
  value: m,
24
24
  defaultValue: h,
25
25
  onChange: g,
26
26
  onSubmit: _,
27
27
  disabled: S,
28
28
  loading: y
29
- }), K = (e) => {
30
- M?.(e), !e.defaultPrevented && s({
31
- key: e.key,
32
- ctrlKey: e.ctrlKey,
33
- metaKey: e.metaKey,
34
- shiftKey: e.shiftKey,
35
- isComposing: e.nativeEvent.isComposing
36
- }, v) && (e.preventDefault(), H());
29
+ }), K = (t) => {
30
+ M?.(t), !t.defaultPrevented && e({
31
+ key: t.key,
32
+ ctrlKey: t.ctrlKey,
33
+ metaKey: t.metaKey,
34
+ shiftKey: t.shiftKey,
35
+ isComposing: t.nativeEvent.isComposing
36
+ }, v) && (t.preventDefault(), H());
37
37
  }, q = N !== void 0 || P !== void 0 || R !== null;
38
38
  return /* @__PURE__ */ d("div", {
39
- className: e("kapi-chatcomposer", D),
39
+ className: c("kapi-chatcomposer", D),
40
40
  style: O,
41
41
  children: [/* @__PURE__ */ d("div", {
42
42
  className: "kapi-chatcomposer__field",
@@ -45,10 +45,10 @@ var p = {
45
45
  className: "kapi-chatcomposer__side",
46
46
  children: C
47
47
  }),
48
- /* @__PURE__ */ u(o, {
48
+ /* @__PURE__ */ u(i, {
49
49
  ...I,
50
50
  ref: (e) => {
51
- G.current = e, r(A, e);
51
+ G.current = e, a(A, e);
52
52
  },
53
53
  className: "kapi-chatcomposer__input",
54
54
  autosize: !0,
@@ -59,7 +59,7 @@ var p = {
59
59
  placeholder: j ?? L.placeholder,
60
60
  "aria-label": q ? N : L.label,
61
61
  "aria-labelledby": P,
62
- "aria-describedby": i(F, z),
62
+ "aria-describedby": o(F, z),
63
63
  ...x === void 0 ? {} : { required: x },
64
64
  ...b ? { invalid: !0 } : {},
65
65
  onChange: (e) => V(e.target.value),
@@ -75,7 +75,7 @@ var p = {
75
75
  children: w
76
76
  })
77
77
  ]
78
- }), /* @__PURE__ */ u(n, {
78
+ }), /* @__PURE__ */ u(r, {
79
79
  className: "kapi-chatcomposer__send",
80
80
  icon: /* @__PURE__ */ u(f, {
81
81
  size: 18,
@@ -88,5 +88,4 @@ var p = {
88
88
  })]
89
89
  });
90
90
  };
91
- //#endregion
92
91
  export { p as DEFAULT_COMPOSER_LABELS, m as KapiComposer };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/chat/chat.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useLabels as t } from "../locale/KapiLocaleProvider.js";
3
+ import { useLabels as e } from "../locale/KapiLocaleProvider.js";
4
+ import { joinClasses as t } from "../rootProps.js";
5
5
  /* empty css */
6
6
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
7
7
  import { Check as i, CheckCheck as a, Clock as o, TriangleAlert as s } from "lucide-react";
8
- //#region src/components/chat/KapiMessageBubble.tsx
8
+ // src/components/chat/KapiMessageBubble.tsx
9
9
  var c = {
10
10
  sending: "Enviando",
11
11
  sent: "Enviado",
@@ -19,11 +19,11 @@ var c = {
19
19
  read: a,
20
20
  failed: s
21
21
  }, u = (e) => e != null && e !== !1, d = ({ outgoing: i = !1, grouping: a = "single", author: o, time: s, status: d, reply: f, media: p, children: m, labels: h, ref: g, className: _, ...v }) => {
22
- let y = t("messageBubble", c, h), b = i && d !== void 0 ? l[d] : null, x = u(s) || b !== null;
22
+ let y = e("messageBubble", c, h), b = i && d !== void 0 ? l[d] : null, x = u(s) || b !== null;
23
23
  return /* @__PURE__ */ r("div", {
24
24
  ...v,
25
25
  ref: g,
26
- className: e("kapi-bubble", _),
26
+ className: t("kapi-bubble", _),
27
27
  "data-direction": i ? "out" : "in",
28
28
  "data-grouping": a,
29
29
  children: [
@@ -64,5 +64,4 @@ var c = {
64
64
  ]
65
65
  });
66
66
  };
67
- //#endregion
68
67
  export { c as DEFAULT_MESSAGE_BUBBLE_LABELS, d as KapiMessageBubble };
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/chat/chat.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useLabels as t } from "../locale/KapiLocaleProvider.js";
3
+ import { useLabels as e } from "../locale/KapiLocaleProvider.js";
4
+ import { joinClasses as t } from "../rootProps.js";
5
5
  import { typingText as n } from "./chatLogic.js";
6
6
  /* empty css */
7
7
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
8
- //#region src/components/chat/KapiTypingIndicator.tsx
8
+ // src/components/chat/KapiTypingIndicator.tsx
9
9
  var a = {
10
10
  one: "{name} está escribiendo…",
11
11
  many: "{count} personas están escribiendo…",
12
12
  someone: "Alguien está escribiendo…"
13
13
  }, o = ({ names: o, labels: s, ref: c, className: l, ...u }) => {
14
- let d = t("typingIndicator", a, s), f = n(o, d);
14
+ let d = e("typingIndicator", a, s), f = n(o, d);
15
15
  return f === null ? null : /* @__PURE__ */ i("div", {
16
16
  "aria-live": "polite",
17
17
  ...u,
18
18
  ref: c,
19
- className: e("kapi-typing", l),
19
+ className: t("kapi-typing", l),
20
20
  children: [/* @__PURE__ */ i("span", {
21
21
  className: "kapi-typing__dots",
22
22
  "aria-hidden": "true",
@@ -31,5 +31,4 @@ var a = {
31
31
  })]
32
32
  });
33
33
  };
34
- //#endregion
35
34
  export { a as DEFAULT_TYPING_INDICATOR_LABELS, o as KapiTypingIndicator };
@@ -1,4 +1,4 @@
1
- //#region src/components/chat/chatLogic.ts
1
+ // src/components/chat/chatLogic.ts
2
2
  var e = (e) => String(e).padStart(2, "0"), t = (t) => `${t.getFullYear()}-${e(t.getMonth() + 1)}-${e(t.getDate())}`, n = (e, n) => {
3
3
  let { meId: r, groupGapMs: i = 3e5, firstUnreadId: a = null } = n, o = [], s = a === null ? -1 : e.findIndex((e) => e.id === a), c = s < 0 ? 0 : e.slice(s).filter((e) => e.authorId !== r).length, l = [], u = () => {
4
4
  l.forEach((e, t) => {
@@ -30,5 +30,4 @@ var e = (e) => String(e).padStart(2, "0"), t = (t) => `${t.getFullYear()}-${e(t.
30
30
  let n = (e[0] ?? "").trim();
31
31
  return n === "" ? t.someone : t.one.replaceAll("{name}", () => n);
32
32
  };
33
- //#endregion
34
33
  export { n as groupChatMessages, i as isAtScrollEnd, r as shouldFollowBottom, a as typingText };
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/data/KapiBarChart.css";
3
- import { useKapiFormatLocale as e } from "../locale/KapiLocaleProvider.js";
3
+ import { KapiTooltip as e } from "../overlays/KapiTooltip.js";
4
4
  import { formatDataValue as t } from "../../hooks/numberFormatLogic.js";
5
- import { KapiTooltip as n } from "../overlays/KapiTooltip.js";
6
- import { KapiChartFrame as r, chartSummary as i, chartVars as a, useChartLabels as o, useChartTitleId as s, useChartView as c, withChartUnit as l } from "./chartFrame.js";
7
- import { barCategoryOrder as u, barHeight as d, barScale as f, barStackTotals as p, barTickLabel as m, barValueLabelPredicate as h } from "./barChartLogic.js";
5
+ import { KapiChartFrame as n, chartSummary as r, chartVars as i, useChartLabels as a, useChartTitleId as o, useChartView as s, withChartUnit as c } from "./chartFrame.js";
6
+ import { barCategoryOrder as l, barHeight as u, barScale as d, barStackTotals as f, barTickLabel as p, barValueLabelPredicate as m } from "./barChartLogic.js";
8
7
  /* empty css */
8
+ import { useKapiFormatLocale as h } from "../locale/KapiLocaleProvider.js";
9
9
  import "react";
10
10
  import { jsx as g, jsxs as _ } from "react/jsx-runtime";
11
- //#region src/components/data/KapiBarChart.tsx
11
+ // src/components/data/KapiBarChart.tsx
12
12
  var v = (e, t) => e.values[t] ?? 0;
13
13
  function y({ categories: y, series: b, title: x, tickCount: S = 4, horizontal: C = !1, sort: w = "none", stacked: T = !1, values: E, unit: D, view: O, defaultView: k = "chart", onViewChange: A, labels: j, className: M, ref: N, ...P }) {
14
- let F = e(), I = o(j), L = s(), { current: R, setView: z } = c(O, k, A), B = b.slice(0, 8);
14
+ let F = h(), I = a(j), L = o(), { current: R, setView: z } = s(O, k, A), B = b.slice(0, 8);
15
15
  b.length > 8 && process.env.NODE_ENV !== "production" && console.warn(`KapiBarChart: ${b.length} series y la paleta tiene 8 slots. Se dibujan las primeras 8; agrupá el resto en vez de perderlo.`);
16
- let V = B.map((e) => y.map((t, n) => v(e, n))), H = u(V, y.length, w), U = B.flatMap((e) => y.map((t, n) => v(e, n))), W = T ? p(V, y.length) : U, { max: G, ticks: K } = f(W, S), q = h(U, E ?? (T ? "none" : "auto")), J = i(T ? I.kindStackedBars : I.kindBars, I, B.length, y.length);
16
+ let V = B.map((e) => y.map((t, n) => v(e, n))), H = l(V, y.length, w), U = B.flatMap((e) => y.map((t, n) => v(e, n))), W = T ? f(V, y.length) : U, { max: G, ticks: K } = d(W, S), q = m(U, E ?? (T ? "none" : "auto")), J = r(T ? I.kindStackedBars : I.kindBars, I, B.length, y.length);
17
17
  return /* @__PURE__ */ g("div", {
18
18
  ...P,
19
19
  ref: N,
@@ -24,7 +24,7 @@ function y({ categories: y, series: b, title: x, tickCount: S = 4, horizontal: C
24
24
  ].filter(Boolean).join(" "),
25
25
  role: "group",
26
26
  ...x ? { "aria-labelledby": L } : {},
27
- children: /* @__PURE__ */ g(r, {
27
+ children: /* @__PURE__ */ g(n, {
28
28
  title: x,
29
29
  titleId: L,
30
30
  series: B,
@@ -43,48 +43,47 @@ function y({ categories: y, series: b, title: x, tickCount: S = 4, horizontal: C
43
43
  className: "kapi-barchart__axis",
44
44
  children: K.map((e) => /* @__PURE__ */ g("div", {
45
45
  className: "kapi-barchart__tick",
46
- style: a({ y: d(e, G) }),
46
+ style: i({ y: u(e, G) }),
47
47
  children: /* @__PURE__ */ g("span", {
48
48
  className: "kapi-barchart__ticklabel",
49
- children: l(m(e), D)
49
+ children: c(p(e), D)
50
50
  })
51
51
  }, e))
52
52
  }), /* @__PURE__ */ g("div", {
53
53
  className: "kapi-barchart__groups",
54
- children: H.map((e) => {
55
- let r = y[e];
54
+ children: H.map((n) => {
55
+ let r = y[n];
56
56
  return /* @__PURE__ */ _("div", {
57
57
  className: "kapi-barchart__group",
58
58
  children: [/* @__PURE__ */ g("div", {
59
59
  className: `kapi-barchart__bars${T ? " kapi-barchart__bars--stacked" : ""}`,
60
- children: B.map((i, o) => {
61
- let s = v(i, e);
62
- return /* @__PURE__ */ g(n, {
63
- label: `${i.label} · ${r}: ${l(t(s, F), D)}`,
60
+ children: B.map((a, o) => {
61
+ let s = v(a, n);
62
+ return /* @__PURE__ */ g(e, {
63
+ label: `${a.label} · ${r}: ${c(t(s, F), D)}`,
64
64
  className: "kapi-barchart__slot",
65
- style: a({
65
+ style: i({
66
66
  slot: o,
67
- y: d(s, G)
67
+ y: u(s, G)
68
68
  }),
69
69
  children: /* @__PURE__ */ g("div", {
70
70
  className: "kapi-barchart__bar",
71
- children: q(o * y.length + e) ? /* @__PURE__ */ g("span", {
71
+ children: q(o * y.length + n) ? /* @__PURE__ */ g("span", {
72
72
  className: "kapi-barchart__value",
73
- children: l(m(s), D)
73
+ children: c(p(s), D)
74
74
  }) : null
75
75
  })
76
- }, i.id);
76
+ }, a.id);
77
77
  })
78
78
  }), /* @__PURE__ */ g("div", {
79
79
  className: "kapi-barchart__cat",
80
80
  children: r
81
81
  })]
82
- }, `${r}-${e}`);
82
+ }, `${r}-${n}`);
83
83
  })
84
84
  })]
85
85
  })
86
86
  })
87
87
  });
88
88
  }
89
- //#endregion
90
89
  export { y as KapiBarChart };