@kapiuara/ui 0.23.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 (366) 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/components/overlays/KapiViewport.css +1 -1
  288. package/dist/hooks/asyncResourceLogic.js +1 -2
  289. package/dist/hooks/breakpointOpenLogic.js +1 -2
  290. package/dist/hooks/colorLogic.js +1 -2
  291. package/dist/hooks/dateFormat.js +1 -2
  292. package/dist/hooks/densityLogic.js +1 -2
  293. package/dist/hooks/directionLogic.js +1 -2
  294. package/dist/hooks/downloadLogic.js +1 -2
  295. package/dist/hooks/elementSizeLogic.js +1 -2
  296. package/dist/hooks/fieldErrorsLogic.js +1 -2
  297. package/dist/hooks/focusLogic.js +2 -11
  298. package/dist/hooks/growOriginLogic.js +1 -2
  299. package/dist/hooks/hotkeyLogic.js +1 -2
  300. package/dist/hooks/hotkeyRegistry.js +1 -2
  301. package/dist/hooks/kapiRoot.js +2 -3
  302. package/dist/hooks/mergeRefs.js +1 -2
  303. package/dist/hooks/numberFormatLogic.js +1 -2
  304. package/dist/hooks/onlineStatusLogic.js +1 -2
  305. package/dist/hooks/ownerDocument.js +1 -2
  306. package/dist/hooks/persistentStateLogic.js +1 -2
  307. package/dist/hooks/portalRoot.js +1 -2
  308. package/dist/hooks/rafThrottle.js +1 -2
  309. package/dist/hooks/rangeSelectLogic.js +1 -2
  310. package/dist/hooks/recentLogic.js +1 -2
  311. package/dist/hooks/reducedMotion.js +8 -9
  312. package/dist/hooks/rightClick.js +10 -11
  313. package/dist/hooks/scrollCollapseLogic.js +1 -2
  314. package/dist/hooks/scrollEdgesLogic.js +1 -2
  315. package/dist/hooks/shallowStable.js +1 -2
  316. package/dist/hooks/slidingIndicatorLogic.js +1 -2
  317. package/dist/hooks/storageLogic.js +1 -2
  318. package/dist/hooks/themeColorsLogic.js +1 -2
  319. package/dist/hooks/themeContrastLogic.js +1 -2
  320. package/dist/hooks/themeDeriveLogic.js +0 -1
  321. package/dist/hooks/themeRadiiLogic.js +1 -2
  322. package/dist/hooks/themeScript.js +1 -2
  323. package/dist/hooks/toneFamilyLogic.js +1 -2
  324. package/dist/hooks/unsavedGuardLogic.js +1 -2
  325. package/dist/hooks/useAsyncLoader.js +1 -2
  326. package/dist/hooks/useAsyncResource.js +5 -6
  327. package/dist/hooks/useAsyncTasks.js +1 -2
  328. package/dist/hooks/useBottomBarInset.js +9 -10
  329. package/dist/hooks/useControllableState.js +1 -2
  330. package/dist/hooks/useDebouncedValue.js +1 -2
  331. package/dist/hooks/useDisclosure.js +1 -2
  332. package/dist/hooks/useDismiss.js +10 -11
  333. package/dist/hooks/useDragScroll.js +12 -13
  334. package/dist/hooks/useElementSize.js +1 -2
  335. package/dist/hooks/useFieldErrors.js +1 -2
  336. package/dist/hooks/useFocusReturn.js +1 -2
  337. package/dist/hooks/useFormReset.js +1 -2
  338. package/dist/hooks/useGlobalRightClick.js +1 -2
  339. package/dist/hooks/useGrowOrigin.js +1 -2
  340. package/dist/hooks/useHotkey.js +1 -2
  341. package/dist/hooks/useHydrated.js +1 -2
  342. package/dist/hooks/useKapiTheme.js +55 -56
  343. package/dist/hooks/useMediaQuery.js +1 -2
  344. package/dist/hooks/useObjectUrl.js +1 -2
  345. package/dist/hooks/useOnlineStatus.js +1 -2
  346. package/dist/hooks/useOutsidePress.js +1 -2
  347. package/dist/hooks/usePersistentState.js +9 -10
  348. package/dist/hooks/usePlacement.js +15 -16
  349. package/dist/hooks/useRangeSelect.js +2 -3
  350. package/dist/hooks/useRecent.js +6 -7
  351. package/dist/hooks/useScrollCollapse.js +1 -2
  352. package/dist/hooks/useScrollEdges.js +25 -26
  353. package/dist/hooks/useSlidingIndicator.js +19 -20
  354. package/dist/hooks/useSubmitDraft.js +1 -2
  355. package/dist/hooks/useToneFamilies.js +0 -1
  356. package/dist/hooks/useTypeahead.js +1 -2
  357. package/dist/hooks/useUnsavedGuard.js +5 -6
  358. package/dist/hooks/useVirtualList.js +1 -2
  359. package/dist/hooks/useWheelZoom.js +1 -2
  360. package/dist/hooks/viewportInsetLogic.js +1 -2
  361. package/dist/hooks/virtualListLogic.js +0 -1
  362. package/dist/hooks/wheelZoomLogic.js +1 -2
  363. package/dist/kapi.css +1 -1
  364. package/dist/kapi.layered.css +1 -1
  365. package/dist/logic.js +45 -45
  366. package/package.json +16 -16
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/KapiComment.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useKapiFormatLocale as t } from "../locale/KapiLocaleProvider.js";
5
- import { KapiAvatar as n } from "./KapiAvatar.js";
6
- import { formatDate as r, formatRelativeTime as i, isoDateTime as a } from "../../hooks/dateFormat.js";
3
+ import { formatDate as e, formatRelativeTime as t, isoDateTime as n } from "../../hooks/dateFormat.js";
4
+ import { useKapiFormatLocale as r } from "../locale/KapiLocaleProvider.js";
5
+ import { joinClasses as i } from "../rootProps.js";
6
+ import { KapiAvatar as a } from "./KapiAvatar.js";
7
7
  /* empty css */
8
8
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
9
- //#region src/components/display/KapiComment.tsx
9
+ // src/components/display/KapiComment.tsx
10
10
  var c = {
11
11
  dateStyle: "medium",
12
12
  timeStyle: "short"
13
13
  }, l = ({ author: l, avatarSrc: u, avatar: d, date: f, now: p, body: m, meta: h, actions: g, children: _, ref: v, className: y, ...b }) => {
14
- let x = t(), S = f === void 0 ? null : a(f), C = _ != null && _ !== !1;
14
+ let x = r(), S = f === void 0 ? null : n(f), C = _ != null && _ !== !1;
15
15
  return /* @__PURE__ */ s("article", {
16
16
  ...b,
17
17
  ref: v,
18
- className: e("kapi-comment", y),
18
+ className: i("kapi-comment", y),
19
19
  children: [/* @__PURE__ */ s("div", {
20
20
  className: "kapi-comment__row",
21
21
  children: [/* @__PURE__ */ o("span", {
22
22
  className: "kapi-comment__avatar",
23
- children: d ?? /* @__PURE__ */ o(n, {
23
+ children: d ?? /* @__PURE__ */ o(a, {
24
24
  name: l,
25
25
  size: "sm",
26
26
  ...u ? { src: u } : {}
@@ -38,8 +38,8 @@ var c = {
38
38
  S !== null && f !== void 0 && /* @__PURE__ */ o("time", {
39
39
  className: "kapi-comment__date",
40
40
  dateTime: S,
41
- title: r(f, x, c),
42
- children: i(f, p ?? /* @__PURE__ */ new Date(), x)
41
+ title: e(f, x, c),
42
+ children: t(f, p ?? /* @__PURE__ */ new Date(), x)
43
43
  }),
44
44
  h != null && h !== !1 && /* @__PURE__ */ o("span", {
45
45
  className: "kapi-comment__meta",
@@ -63,5 +63,4 @@ var c = {
63
63
  })]
64
64
  });
65
65
  };
66
- //#endregion
67
66
  export { l as KapiComment };
@@ -1,24 +1,24 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/KapiComment.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { KapiButton as t } from "../inputs/KapiButton.js";
5
- import { useLabels as n } from "../locale/KapiLocaleProvider.js";
3
+ import { KapiButton as e } from "../inputs/KapiButton.js";
4
+ import { useKapiField as t } from "../inputs/KapiField.js";
5
+ import { KapiTextarea as n } from "../inputs/KapiTextarea.js";
6
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";
7
+ import { useLabels as a } from "../locale/KapiLocaleProvider.js";
8
+ import { joinClasses as o } from "../rootProps.js";
9
+ import { useSubmitDraft as s } from "../../hooks/useSubmitDraft.js";
10
+ import { isSubmitShortcut as c } from "./commentLogic.js";
9
11
  /* empty css */
10
- import { isSubmitShortcut as s } from "./commentLogic.js";
11
- import { useSubmitDraft as c } from "../../hooks/useSubmitDraft.js";
12
12
  import { useId as l } from "react";
13
13
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
14
- //#region src/components/display/KapiCommentComposer.tsx
14
+ // src/components/display/KapiCommentComposer.tsx
15
15
  var f = {
16
16
  label: "Comentario",
17
17
  placeholder: "Escribe un comentario…",
18
18
  submit: "Comentar",
19
19
  shortcut: "Ctrl o ⌘ + Enter para enviar"
20
20
  }, p = ({ value: p, defaultValue: m, onChange: h, onSubmit: g, loading: _ = !1, invalid: v, required: y, disabled: b, className: x, style: S, labels: C, ref: w, placeholder: T, onKeyDown: E, "aria-label": D, "aria-labelledby": O, "aria-describedby": k, ...A }) => {
21
- let j = n("commentComposer", f, C), M = a(), N = l(), { text: P, setText: F, submit: I, busy: L, canSubmit: R, boxRef: z } = c({
21
+ let j = a("commentComposer", f, C), M = t(), N = l(), { text: P, setText: F, submit: I, busy: L, canSubmit: R, boxRef: z } = s({
22
22
  value: p,
23
23
  defaultValue: m,
24
24
  onChange: h,
@@ -26,15 +26,15 @@ var f = {
26
26
  disabled: b,
27
27
  loading: _
28
28
  }), B = (e) => {
29
- E?.(e), !e.defaultPrevented && s({
29
+ E?.(e), !e.defaultPrevented && c({
30
30
  ...e,
31
31
  isComposing: e.nativeEvent.isComposing
32
32
  }) && (e.preventDefault(), I());
33
33
  }, V = D !== void 0 || O !== void 0 || M !== null;
34
34
  return /* @__PURE__ */ d("div", {
35
- className: e("kapi-composer", x),
35
+ className: o("kapi-composer", x),
36
36
  style: S,
37
- children: [/* @__PURE__ */ u(o, {
37
+ children: [/* @__PURE__ */ u(n, {
38
38
  ...A,
39
39
  ref: (e) => {
40
40
  z.current = e, r(w, e);
@@ -59,7 +59,7 @@ var f = {
59
59
  id: N,
60
60
  className: "kapi-composer__hint",
61
61
  children: j.shortcut
62
- }), /* @__PURE__ */ u(t, {
62
+ }), /* @__PURE__ */ u(e, {
63
63
  tone: "primary",
64
64
  size: "sm",
65
65
  disabled: !R,
@@ -70,5 +70,4 @@ var f = {
70
70
  })]
71
71
  });
72
72
  };
73
- //#endregion
74
73
  export { f as DEFAULT_COMMENT_COMPOSER_LABELS, p as KapiCommentComposer };
@@ -2,7 +2,7 @@
2
2
  import "#kapi-css/components/display/display.css";
3
3
  /* empty css */
4
4
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
5
- //#region src/components/display/KapiDescriptionList.tsx
5
+ // src/components/display/KapiDescriptionList.tsx
6
6
  var n = ({ inline: e = !1, className: t = "" } = {}) => [
7
7
  "kapi-dl",
8
8
  e && "kapi-dl--inline",
@@ -32,5 +32,4 @@ function r({ items: r, columns: i = 1, inline: a = !1, className: o, style: s, .
32
32
  }, r))
33
33
  });
34
34
  }
35
- //#endregion
36
35
  export { r as KapiDescriptionList, n as descriptionListClasses };
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/KapiDiff.css";
3
- import { useLabels as e } from "../locale/KapiLocaleProvider.js";
4
- import { useControllableState as t } from "../../hooks/useControllableState.js";
5
- import { slot as n } from "../slotsLogic.js";
6
- import { KapiSegmented as r } from "../inputs/KapiSegmented.js";
3
+ import { useControllableState as e } from "../../hooks/useControllableState.js";
4
+ import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
+ import { KapiSegmented as n } from "../inputs/KapiSegmented.js";
6
+ import { slot as r } from "../slotsLogic.js";
7
7
  import { DIFF_SLOTS as i } from "./diffSlots.js";
8
8
  import { diffHunks as a, diffLines as o, diffRows as s } from "./diffLogic.js";
9
9
  /* empty css */
10
10
  import { useMemo as c } from "react";
11
11
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
12
- //#region src/components/display/KapiDiff.tsx
12
+ // src/components/display/KapiDiff.tsx
13
13
  var d = {
14
14
  region: "Diferencias",
15
15
  split: "Lado a lado",
@@ -19,46 +19,46 @@ var d = {
19
19
  empty: "No hay diferencias.",
20
20
  added: "Agregada:",
21
21
  removed: "Quitada:"
22
- }, f = ({ line: e, lado: t, tx: r, classNames: a }) => e === null ? /* @__PURE__ */ l("div", {
23
- ...n(i, "cell", a, "kapi-diff__cell--none"),
22
+ }, f = ({ line: e, lado: t, tx: n, classNames: a }) => e === null ? /* @__PURE__ */ l("div", {
23
+ ...r(i, "cell", a, "kapi-diff__cell--none"),
24
24
  "aria-hidden": !0
25
25
  }) : /* @__PURE__ */ u("div", {
26
- ...n(i, "cell", a, `kapi-diff__cell--${e.kind}`),
26
+ ...r(i, "cell", a, `kapi-diff__cell--${e.kind}`),
27
27
  children: [
28
28
  /* @__PURE__ */ l("span", {
29
- ...n(i, "number", a),
29
+ ...r(i, "number", a),
30
30
  "aria-hidden": !0,
31
31
  children: t === "despues" ? e.after ?? e.before : e.before ?? e.after
32
32
  }),
33
33
  /* @__PURE__ */ l("span", {
34
- ...n(i, "sign", a),
34
+ ...r(i, "sign", a),
35
35
  "aria-hidden": !0,
36
36
  children: e.kind === "add" ? "+" : e.kind === "remove" ? "-" : " "
37
37
  }),
38
38
  e.kind !== "equal" && /* @__PURE__ */ l("span", {
39
39
  className: "kapi-sr-only",
40
- children: e.kind === "add" ? r.added : r.removed
40
+ children: e.kind === "add" ? n.added : n.removed
41
41
  }),
42
42
  /* @__PURE__ */ l("code", {
43
- ...n(i, "text", a),
43
+ ...r(i, "text", a),
44
44
  children: e.text
45
45
  })
46
46
  ]
47
47
  });
48
48
  function p({ before: p, after: m, view: h, defaultView: g = "split", onViewChange: _, context: v = 3, noToolbar: y = !1, toolbar: b, labels: x, classNames: S, className: C, ...w }) {
49
- let T = e("diff", d, x), [E, D] = t(h, g, _), O = c(() => a(o(p, m), v), [
49
+ let T = t("diff", d, x), [E, D] = e(h, g, _), O = c(() => a(o(p, m), v), [
50
50
  p,
51
51
  m,
52
52
  v
53
53
  ]);
54
54
  return /* @__PURE__ */ u("div", {
55
55
  ...w,
56
- ...n(i, "root", S, C),
56
+ ...r(i, "root", S, C),
57
57
  role: "region",
58
58
  "aria-label": T.region,
59
59
  children: [!y && /* @__PURE__ */ u("div", {
60
- ...n(i, "bar", S),
61
- children: [b, /* @__PURE__ */ l(r, {
60
+ ...r(i, "bar", S),
61
+ children: [b, /* @__PURE__ */ l(n, {
62
62
  "aria-label": T.viewLabel,
63
63
  size: "sm",
64
64
  value: E,
@@ -72,19 +72,19 @@ function p({ before: p, after: m, view: h, defaultView: g = "split", onViewChang
72
72
  }]
73
73
  })]
74
74
  }), O.length === 0 ? /* @__PURE__ */ l("p", {
75
- ...n(i, "empty", S, "kapi-muted"),
75
+ ...r(i, "empty", S, "kapi-muted"),
76
76
  children: T.empty
77
77
  }) : /* @__PURE__ */ l("div", {
78
- ...n(i, "body", S, `kapi-diff__body--${E}`),
78
+ ...r(i, "body", S, `kapi-diff__body--${E}`),
79
79
  children: O.map((e, t) => /* @__PURE__ */ u("div", {
80
- ...n(i, "hunk", S),
80
+ ...r(i, "hunk", S),
81
81
  children: [
82
82
  e.skipped > 0 && /* @__PURE__ */ l("p", {
83
- ...n(i, "skip", S),
83
+ ...r(i, "skip", S),
84
84
  children: T.skipped.replace("{n}", String(e.skipped))
85
85
  }),
86
86
  E === "unified" ? e.lines.map((e, t) => /* @__PURE__ */ l("div", {
87
- ...n(i, "row", S),
87
+ ...r(i, "row", S),
88
88
  children: /* @__PURE__ */ l(f, {
89
89
  line: e,
90
90
  lado: "antes",
@@ -92,7 +92,7 @@ function p({ before: p, after: m, view: h, defaultView: g = "split", onViewChang
92
92
  classNames: S
93
93
  })
94
94
  }, t)) : s(e.lines).map((e, t) => /* @__PURE__ */ u("div", {
95
- ...n(i, "row", S),
95
+ ...r(i, "row", S),
96
96
  children: [/* @__PURE__ */ l(f, {
97
97
  line: e.left,
98
98
  lado: "antes",
@@ -106,7 +106,7 @@ function p({ before: p, after: m, view: h, defaultView: g = "split", onViewChang
106
106
  })]
107
107
  }, t)),
108
108
  e.skippedAfter > 0 && /* @__PURE__ */ l("p", {
109
- ...n(i, "skip", S),
109
+ ...r(i, "skip", S),
110
110
  children: T.skipped.replace("{n}", String(e.skippedAfter))
111
111
  })
112
112
  ]
@@ -114,5 +114,4 @@ function p({ before: p, after: m, view: h, defaultView: g = "split", onViewChang
114
114
  })]
115
115
  });
116
116
  }
117
- //#endregion
118
117
  export { d as DEFAULT_DIFF_LABELS, p as KapiDiff };
@@ -1,28 +1,28 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/KapiFileItem.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { useKapiFormatLocale as t } from "../locale/KapiLocaleProvider.js";
5
- import { formatFileSize as n } from "../../hooks/downloadLogic.js";
6
- import { formatDate as r, isoDateTime as i } from "../../hooks/dateFormat.js";
3
+ import { formatFileSize as e } from "../../hooks/downloadLogic.js";
4
+ import { formatDate as t, isoDateTime as n } from "../../hooks/dateFormat.js";
5
+ import { useKapiFormatLocale as r } from "../locale/KapiLocaleProvider.js";
6
+ import { joinClasses as i } from "../rootProps.js";
7
7
  import { fileItemKind as a, fileMetaParts as o } from "./fileItemLogic.js";
8
8
  /* empty css */
9
9
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
10
  import { File as l, FileCode as u, FileImage as d, FileText as f } from "lucide-react";
11
- //#region src/components/display/KapiFileItem.tsx
11
+ // src/components/display/KapiFileItem.tsx
12
12
  var p = {
13
13
  pdf: f,
14
14
  image: d,
15
15
  text: u,
16
16
  other: l
17
17
  }, m = ({ name: l, mimeType: u, size: d, date: f, details: m, icon: h, status: g, actions: _, onOpen: v, ref: y, className: b, ...x }) => {
18
- let S = t(), C = a(u, l), w = p[C], T = f === void 0 ? null : i(f), E = T === null || f === void 0 ? null : /* @__PURE__ */ s("time", {
18
+ let S = r(), C = a(u, l), w = p[C], T = f === void 0 ? null : n(f), E = T === null || f === void 0 ? null : /* @__PURE__ */ s("time", {
19
19
  dateTime: T,
20
- children: r(f, S)
21
- }, "date"), D = o(m, d === void 0 ? "" : n(d, S), E);
20
+ children: t(f, S)
21
+ }, "date"), D = o(m, d === void 0 ? "" : e(d, S), E);
22
22
  return /* @__PURE__ */ c("li", {
23
23
  ...x,
24
24
  ref: y,
25
- className: e("kapi-file", b),
25
+ className: i("kapi-file", b),
26
26
  children: [
27
27
  /* @__PURE__ */ s("span", {
28
28
  className: `kapi-file__icon kapi-file__icon--${C}`,
@@ -66,10 +66,9 @@ var p = {
66
66
  })
67
67
  ]
68
68
  });
69
- }, h = ({ className: t, ref: n, ...r }) => /* @__PURE__ */ s("ul", {
70
- ...r,
71
- ref: n,
72
- className: e("kapi-filelist", t)
69
+ }, h = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ s("ul", {
70
+ ...n,
71
+ ref: t,
72
+ className: i("kapi-filelist", e)
73
73
  });
74
- //#endregion
75
74
  export { m as KapiFileItem, h as KapiFileList };
@@ -1,33 +1,33 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/KapiFileViewer.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { buttonClasses as t } from "../inputs/KapiButton.js";
5
- import { useLabels as n } from "../locale/KapiLocaleProvider.js";
6
- import { fileKind as r, fileNameFromUrl as i, isSafeFileUrl as a } from "../../hooks/downloadLogic.js";
7
- import { useObjectUrl as o } from "../../hooks/useObjectUrl.js";
3
+ import { fileKind as e, fileNameFromUrl as t, isSafeFileUrl as n } from "../../hooks/downloadLogic.js";
4
+ import { useObjectUrl as r } from "../../hooks/useObjectUrl.js";
5
+ import { useLabels as i } from "../locale/KapiLocaleProvider.js";
6
+ import { buttonClasses as a } from "../inputs/KapiButton.js";
7
+ import { joinClasses as o } from "../rootProps.js";
8
8
  /* empty css */
9
9
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
10
  import { Download as l, ExternalLink as u, FileText as d } from "lucide-react";
11
- //#region src/components/display/KapiFileViewer.tsx
11
+ // src/components/display/KapiFileViewer.tsx
12
12
  var f = {
13
13
  download: "Descargar",
14
14
  openNewTab: "Abrir en otra pestaña",
15
15
  unsupported: "No se puede mostrar este archivo aquí.",
16
16
  file: "Archivo"
17
- }, p = (e, t) => t || (typeof e == "string" ? i(e) : typeof File < "u" && e instanceof File && e.name ? e.name : null), m = (e, t, n) => {
18
- let i = t || (typeof e == "string" ? "" : e.type);
17
+ }, p = (e, n) => n || (typeof e == "string" ? t(e) : typeof File < "u" && e instanceof File && e.name ? e.name : null), m = (t, n, r) => {
18
+ let i = n || (typeof t == "string" ? "" : t.type);
19
19
  if (i) {
20
- let e = r(i);
21
- return e !== "other" || !n ? e : /^application\/octet-stream/i.test(i) ? r(n) : e;
20
+ let t = e(i);
21
+ return t !== "other" || !r ? t : /^application\/octet-stream/i.test(i) ? e(r) : t;
22
22
  }
23
- return r(n ?? (typeof e == "string" ? e : ""));
23
+ return e(r ?? (typeof t == "string" ? t : ""));
24
24
  };
25
- function h({ src: r, fileName: i, type: h, title: g, height: _, downloadable: v = !0, toolbar: y = !0, labels: b, className: x, style: S, ref: C, ...w }) {
26
- let T = n("fileViewer", f, b), E = o(typeof r == "string" ? null : r), D = typeof r == "string" && !a(r), O = typeof r == "string" ? D ? null : r : E, k = p(r, i), A = m(r, h, k), j = g ?? k ?? T.file, M = _ ? {
25
+ function h({ src: e, fileName: t, type: h, title: g, height: _, downloadable: v = !0, toolbar: y = !0, labels: b, className: x, style: S, ref: C, ...w }) {
26
+ let T = i("fileViewer", f, b), E = r(typeof e == "string" ? null : e), D = typeof e == "string" && !n(e), O = typeof e == "string" ? D ? null : e : E, k = p(e, t), A = m(e, h, k), j = g ?? k ?? T.file, M = _ ? {
27
27
  ...S,
28
28
  "--kapi-file-viewer-h": _
29
29
  } : S, N = (e) => v && O ? /* @__PURE__ */ c("a", {
30
- className: t({
30
+ className: a({
31
31
  size: "sm",
32
32
  className: e
33
33
  }),
@@ -75,7 +75,7 @@ function h({ src: r, fileName: i, type: h, title: g, height: _, downloadable: v
75
75
  }) : P), /* @__PURE__ */ c("div", {
76
76
  ...w,
77
77
  ref: C,
78
- className: e("kapi-file-viewer", `kapi-file-viewer--${A}`, x),
78
+ className: o("kapi-file-viewer", `kapi-file-viewer--${A}`, x),
79
79
  style: M,
80
80
  children: [y && /* @__PURE__ */ c("div", {
81
81
  className: "kapi-file-viewer__bar",
@@ -84,8 +84,8 @@ function h({ src: r, fileName: i, type: h, title: g, height: _, downloadable: v
84
84
  children: k ?? j
85
85
  }), /* @__PURE__ */ c("span", {
86
86
  className: "kapi-file-viewer__actions",
87
- children: [typeof r == "string" && O && /* @__PURE__ */ c("a", {
88
- className: t({
87
+ children: [typeof e == "string" && O && /* @__PURE__ */ c("a", {
88
+ className: a({
89
89
  size: "sm",
90
90
  variant: "ghost"
91
91
  }),
@@ -104,5 +104,4 @@ function h({ src: r, fileName: i, type: h, title: g, height: _, downloadable: v
104
104
  })]
105
105
  });
106
106
  }
107
- //#endregion
108
107
  export { f as DEFAULT_FILE_VIEWER_LABELS, h as KapiFileViewer };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/display.css";
3
3
  import { slot as e } from "../slotsLogic.js";
4
- /* empty css */
5
4
  import { HIGHLIGHT_SLOTS as t } from "./highlightSlots.js";
6
5
  import { splitByQuery as n } from "./highlightLogic.js";
6
+ /* empty css */
7
7
  import { jsx as r } from "react/jsx-runtime";
8
- //#region src/components/display/KapiHighlight.tsx
8
+ // src/components/display/KapiHighlight.tsx
9
9
  function i({ text: i, query: a = "", caseSensitive: o = !1, classNames: s, className: c, ...l }) {
10
10
  let u = n(i, a, o);
11
11
  return /* @__PURE__ */ r("span", {
@@ -17,5 +17,4 @@ function i({ text: i, query: a = "", caseSensitive: o = !1, classNames: s, class
17
17
  }, i) : n.text)
18
18
  });
19
19
  }
20
- //#endregion
21
20
  export { i as KapiHighlight };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/display.css";
3
3
  import { useToneLook as e } from "../../hooks/useToneFamilies.js";
4
- /* empty css */
5
4
  import { iconTileClasses as t, iconTileRadiusPx as n, iconTileSizePx as r } from "./iconTileLogic.js";
5
+ /* empty css */
6
6
  import { jsx as i } from "react/jsx-runtime";
7
- //#region src/components/display/KapiIconTile.tsx
7
+ // src/components/display/KapiIconTile.tsx
8
8
  function a({ icon: a, tone: o = "primary", soft: s = !1, size: c = "md", className: l, style: u, "aria-label": d, ...f }) {
9
9
  let p = e("KapiIconTile", o), m = r(c), h = {
10
10
  width: m,
@@ -28,5 +28,4 @@ function a({ icon: a, tone: o = "primary", soft: s = !1, size: c = "md", classNa
28
28
  children: a
29
29
  });
30
30
  }
31
- //#endregion
32
31
  export { a as KapiIconTile };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/display.css";
3
- import { useToneLook as e } from "../../hooks/useToneFamilies.js";
4
- import { isFamilyTone as t } from "../tone.js";
3
+ import { KapiIconTile as e } from "./KapiIconTile.js";
4
+ import { statClasses as t, statIconTone as n } from "./statLogic.js";
5
+ import { useToneLook as r } from "../../hooks/useToneFamilies.js";
6
+ import { isFamilyTone as i } from "../tone.js";
5
7
  /* empty css */
6
- import { KapiIconTile as n } from "./KapiIconTile.js";
7
- import { statClasses as r, statIconTone as i } from "./statLogic.js";
8
8
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
9
- //#region src/components/display/KapiStat.tsx
9
+ // src/components/display/KapiStat.tsx
10
10
  function c({ label: c, value: l, note: u, tone: d = "neutral", icon: f, iconTone: p, iconSoft: m = !1, iconSize: h = "sm", className: g, style: _, ...v }) {
11
- let y = e("KapiStat", d), b = f != null, x = t(d) ? p ?? d : i(d, p), S = /* @__PURE__ */ s(a, { children: [
11
+ let y = r("KapiStat", d), b = f != null, x = i(d) ? p ?? d : n(d, p), S = /* @__PURE__ */ s(a, { children: [
12
12
  /* @__PURE__ */ o("div", {
13
13
  className: "kapi-ct",
14
14
  children: c
@@ -23,7 +23,7 @@ function c({ label: c, value: l, note: u, tone: d = "neutral", icon: f, iconTone
23
23
  })
24
24
  ] });
25
25
  return /* @__PURE__ */ o("div", {
26
- className: r({
26
+ className: t({
27
27
  tone: y.tone,
28
28
  hasIcon: b,
29
29
  className: g
@@ -33,7 +33,7 @@ function c({ label: c, value: l, note: u, tone: d = "neutral", icon: f, iconTone
33
33
  ..._
34
34
  } : _,
35
35
  ...v,
36
- children: b ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(n, {
36
+ children: b ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(e, {
37
37
  icon: f,
38
38
  tone: x,
39
39
  soft: m,
@@ -44,5 +44,4 @@ function c({ label: c, value: l, note: u, tone: d = "neutral", icon: f, iconTone
44
44
  })] }) : S
45
45
  });
46
46
  }
47
- //#endregion
48
47
  export { c as KapiStat };
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/display.css";
3
- import { useToneLook as e } from "../../hooks/useToneFamilies.js";
4
- import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
- import { tagClasses as n } from "./tagLogic.js";
3
+ import { tagClasses as e } from "./tagLogic.js";
4
+ import { useToneLook as t } from "../../hooks/useToneFamilies.js";
6
5
  /* empty css */
6
+ import { useLabels as n } from "../locale/KapiLocaleProvider.js";
7
7
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
8
8
  import { X as a } from "lucide-react";
9
- //#region src/components/display/KapiTag.tsx
9
+ // src/components/display/KapiTag.tsx
10
10
  var o = { remove: "Quitar" };
11
11
  function s({ tone: s = "neutral", size: c = "md", icon: l, onRemove: u, removeLabel: d, labels: f, className: p, style: m, children: h, ...g }) {
12
- let _ = t("tag", o, f), v = e("KapiTag", s);
12
+ let _ = n("tag", o, f), v = t("KapiTag", s);
13
13
  return /* @__PURE__ */ i("span", {
14
- className: n({
14
+ className: e({
15
15
  tone: v.tone,
16
16
  size: c,
17
17
  removable: !!u,
@@ -46,5 +46,4 @@ function s({ tone: s = "neutral", size: c = "md", icon: l, onRemove: u, removeLa
46
46
  ]
47
47
  });
48
48
  }
49
- //#endregion
50
49
  export { o as DEFAULT_TAG_LABELS, s as KapiTag };
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/typography.css";
3
3
  import { useToneLook as e } from "../../hooks/useToneFamilies.js";
4
- import { joinClasses as t } from "../rootProps.js";
5
- import { renderSlot as n } from "../renderSlot.js";
4
+ import { renderSlot as t } from "../renderSlot.js";
5
+ import { joinClasses as n } from "../rootProps.js";
6
6
  import { textClasses as r, truncateLines as i } from "./textLogic.js";
7
7
  /* empty css */
8
8
  import { jsx as a } from "react/jsx-runtime";
9
- //#region src/components/display/KapiText.tsx
9
+ // src/components/display/KapiText.tsx
10
10
  var o = ({ size: o, tone: s, muted: c, weight: l, align: u, truncate: d, as: f = "p", render: p, className: m, style: h, ref: g, children: _, ...v }) => {
11
11
  let y = i(d), b = e("KapiText", s), x = {
12
- className: t(...r({
12
+ className: n(...r({
13
13
  size: o,
14
14
  tone: b.tone,
15
15
  muted: c,
@@ -24,10 +24,9 @@ var o = ({ size: o, tone: s, muted: c, weight: l, align: u, truncate: d, as: f =
24
24
  },
25
25
  ...v
26
26
  }, S = f;
27
- return n(p, x, {
27
+ return t(p, x, {
28
28
  ref: g,
29
29
  children: _
30
30
  }, (e) => /* @__PURE__ */ a(S, { ...e }));
31
31
  };
32
- //#endregion
33
32
  export { o as KapiText };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/display.css";
3
3
  import { useToneLookResolver as e } from "../../hooks/useToneFamilies.js";
4
- /* empty css */
5
4
  import { KapiAnchor as t } from "./KapiAnchor.js";
6
5
  import { isTimelineTone as n, needsToneResolver as r, showConnector as i, timelineDotClass as a } from "./timelineLogic.js";
6
+ /* empty css */
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- //#region src/components/display/KapiTimeline.tsx
8
+ // src/components/display/KapiTimeline.tsx
9
9
  function c({ items: c, className: l, ...u }) {
10
10
  let d = e("KapiTimeline");
11
11
  return /* @__PURE__ */ o("ol", {
@@ -42,5 +42,4 @@ function c({ items: c, className: l, ...u }) {
42
42
  })
43
43
  });
44
44
  }
45
- //#endregion
46
45
  export { c as KapiTimeline };
@@ -5,7 +5,7 @@ import { joinClasses as t } from "../rootProps.js";
5
5
  import { TITLE_DEFAULT_SIZE as n, textClasses as r, truncateLines as i } from "./textLogic.js";
6
6
  /* empty css */
7
7
  import { jsx as a } from "react/jsx-runtime";
8
- //#region src/components/display/KapiTitle.tsx
8
+ // src/components/display/KapiTitle.tsx
9
9
  var o = ({ level: o = 2, size: s, tone: c, weight: l, align: u, truncate: d, className: f, style: p, ref: m, ...h }) => {
10
10
  let g = `h${o}`, _ = i(d), v = e("KapiTitle", c);
11
11
  return /* @__PURE__ */ a(g, {
@@ -25,5 +25,4 @@ var o = ({ level: o = 2, size: s, tone: c, weight: l, align: u, truncate: d, cla
25
25
  }
26
26
  });
27
27
  };
28
- //#endregion
29
28
  export { o as KapiTitle };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/display/KapiTruncate.css";
3
- import { joinClasses as e } from "../rootProps.js";
4
- import { KapiTooltip as t } from "../overlays/KapiTooltip.js";
3
+ import { KapiTooltip as e } from "../overlays/KapiTooltip.js";
4
+ import { joinClasses as t } from "../rootProps.js";
5
5
  import { isTruncated as n } from "./truncateLogic.js";
6
6
  /* empty css */
7
7
  import { useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
8
8
  import { jsx as s } from "react/jsx-runtime";
9
- //#region src/components/display/KapiTruncate.tsx
9
+ // src/components/display/KapiTruncate.tsx
10
10
  var c = ({ text: c, prefer: l = "top", focusable: u = !1, className: d, ref: f, ...p }) => {
11
11
  let m = a(null), h = a(null), [g, _] = o(!1), v = r(() => {
12
12
  let e = m.current, t = h.current;
@@ -30,9 +30,9 @@ var c = ({ text: c, prefer: l = "top", focusable: u = !1, className: d, ref: f,
30
30
  ref: (e) => {
31
31
  m.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
32
32
  },
33
- className: e("kapi-truncate", d),
33
+ className: t("kapi-truncate", d),
34
34
  "data-truncated": g || void 0,
35
- children: g ? /* @__PURE__ */ s(t, {
35
+ children: g ? /* @__PURE__ */ s(e, {
36
36
  label: c,
37
37
  prefer: l,
38
38
  className: "kapi-truncate__tip",
@@ -40,5 +40,4 @@ var c = ({ text: c, prefer: l = "top", focusable: u = !1, className: d, ref: f,
40
40
  }) : y
41
41
  });
42
42
  };
43
- //#endregion
44
43
  export { c as KapiTruncate };
@@ -1,5 +1,5 @@
1
1
  import { isFamilyTone as e } from "../tone.js";
2
- //#region src/components/display/annotationLogic.ts
2
+ // src/components/display/annotationLogic.ts
3
3
  var t = ({ underline: t = "dotted", tone: n = "primary", clickable: r = !1, className: i = "" } = {}) => [
4
4
  "kapi-annotation",
5
5
  e(n) ? "kapi-annotation--family" : `kapi-annotation--${n}`,
@@ -14,5 +14,4 @@ var t = ({ underline: t = "dotted", tone: n = "primary", clickable: r = !1, clas
14
14
  mode: t || typeof n != "string" && typeof n != "number" && n !== void 0 ? "popover" : "tooltip"
15
15
  };
16
16
  };
17
- //#endregion
18
17
  export { t as annotationClasses, n as annotationRole };
@@ -1,4 +1,4 @@
1
- //#region src/components/display/avatarGroupLogic.ts
1
+ // src/components/display/avatarGroupLogic.ts
2
2
  var e = (e, t = 4) => {
3
3
  let n = Number.isFinite(t) ? Math.max(0, Math.floor(t)) : e.length;
4
4
  return e.length <= n || e.length === n + 1 && n > 0 ? {
@@ -9,5 +9,4 @@ var e = (e, t = 4) => {
9
9
  overflow: e.length - n
10
10
  };
11
11
  }, t = (e) => e > 99 ? "99+" : `+${e}`, n = (e) => Math.round(e * .22);
12
- //#endregion
13
12
  export { n as avatarOverlapPx, t as overflowLabel, e as splitAvatarGroup };