@kapiuara/ui 0.16.0 → 0.18.0

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 (243) hide show
  1. package/README.md +430 -20
  2. package/dist/components/chat/KapiChatThread.js +4 -4
  3. package/dist/components/chat/KapiComposer.js +8 -8
  4. package/dist/components/data/KapiDataTable.js +4 -4
  5. package/dist/components/data/KapiScatterChart.d.ts +56 -0
  6. package/dist/components/data/KapiScatterChart.js +90 -0
  7. package/dist/components/data/KapiSparkline.d.ts +2 -1
  8. package/dist/components/data/KapiSparkline.js +29 -26
  9. package/dist/components/data/KapiTableFilter.js +6 -6
  10. package/dist/components/data/chartFrame.d.ts +20 -2
  11. package/dist/components/data/chartFrame.js +33 -24
  12. package/dist/components/data/index.d.ts +4 -0
  13. package/dist/components/data/scatterLogic.d.ts +56 -0
  14. package/dist/components/data/scatterLogic.js +43 -0
  15. package/dist/components/data/tableCells.d.ts +12 -1
  16. package/dist/components/data/tableCells.js +49 -51
  17. package/dist/components/data/useTableSelection.js +3 -3
  18. package/dist/components/display/KapiAnnotation.js +68 -63
  19. package/dist/components/display/KapiAvatar.d.ts +6 -4
  20. package/dist/components/display/KapiAvatar.js +33 -28
  21. package/dist/components/display/KapiAvatarGroup.d.ts +14 -2
  22. package/dist/components/display/KapiAvatarGroup.js +25 -23
  23. package/dist/components/display/KapiCodeBlock.d.ts +48 -0
  24. package/dist/components/display/KapiCodeBlock.js +44 -0
  25. package/dist/components/display/KapiCommentComposer.js +6 -6
  26. package/dist/components/display/KapiDiff.d.ts +62 -0
  27. package/dist/components/display/KapiDiff.js +118 -0
  28. package/dist/components/display/KapiHighlight.d.ts +27 -0
  29. package/dist/components/display/KapiHighlight.js +21 -0
  30. package/dist/components/display/KapiIconTile.d.ts +2 -1
  31. package/dist/components/display/KapiIconTile.js +23 -21
  32. package/dist/components/display/KapiStat.d.ts +3 -2
  33. package/dist/components/display/KapiStat.js +32 -26
  34. package/dist/components/display/KapiTag.d.ts +4 -3
  35. package/dist/components/display/KapiTag.js +29 -24
  36. package/dist/components/display/KapiTimeline.d.ts +19 -2
  37. package/dist/components/display/KapiTimeline.js +38 -23
  38. package/dist/components/display/annotationLogic.d.ts +2 -1
  39. package/dist/components/display/annotationLogic.js +7 -6
  40. package/dist/components/display/avatarGroupSlots.d.ts +6 -0
  41. package/dist/components/display/avatarGroupSlots.js +9 -0
  42. package/dist/components/display/codeBlockSlots.d.ts +10 -0
  43. package/dist/components/display/codeBlockSlots.js +13 -0
  44. package/dist/components/display/diffLogic.d.ts +58 -0
  45. package/dist/components/display/diffLogic.js +96 -0
  46. package/dist/components/display/diffSlots.d.ts +14 -0
  47. package/dist/components/display/diffSlots.js +17 -0
  48. package/dist/components/display/highlightLogic.d.ts +18 -0
  49. package/dist/components/display/highlightLogic.js +26 -0
  50. package/dist/components/display/highlightSlots.d.ts +5 -0
  51. package/dist/components/display/highlightSlots.js +8 -0
  52. package/dist/components/display/iconTileLogic.d.ts +2 -2
  53. package/dist/components/display/iconTileLogic.js +7 -6
  54. package/dist/components/display/index.d.ts +9 -1
  55. package/dist/components/display/statLogic.d.ts +2 -1
  56. package/dist/components/display/statLogic.js +7 -6
  57. package/dist/components/display/tagLogic.d.ts +2 -1
  58. package/dist/components/display/tagLogic.js +7 -6
  59. package/dist/components/display/timelineLogic.d.ts +20 -2
  60. package/dist/components/display/timelineLogic.js +10 -2
  61. package/dist/components/feedback/KapiAlert.d.ts +6 -1
  62. package/dist/components/feedback/KapiAlert.js +45 -44
  63. package/dist/components/feedback/KapiCountdown.d.ts +12 -1
  64. package/dist/components/feedback/KapiCountdown.js +34 -31
  65. package/dist/components/feedback/KapiEmpty.d.ts +6 -1
  66. package/dist/components/feedback/KapiEmpty.js +20 -18
  67. package/dist/components/feedback/KapiFab.js +108 -108
  68. package/dist/components/feedback/KapiProgress.js +63 -54
  69. package/dist/components/feedback/KapiSpinner.d.ts +48 -0
  70. package/dist/components/feedback/KapiSpinner.js +27 -0
  71. package/dist/components/feedback/KapiToastContainer.js +10 -10
  72. package/dist/components/feedback/KapiTour.js +13 -13
  73. package/dist/components/feedback/alertSlots.d.ts +9 -0
  74. package/dist/components/feedback/alertSlots.js +12 -0
  75. package/dist/components/feedback/countdownSlots.d.ts +6 -0
  76. package/dist/components/feedback/countdownSlots.js +9 -0
  77. package/dist/components/feedback/emptySlots.d.ts +8 -0
  78. package/dist/components/feedback/emptySlots.js +11 -0
  79. package/dist/components/feedback/index.d.ts +5 -3
  80. package/dist/components/feedback/progressLogic.d.ts +2 -1
  81. package/dist/components/feedback/progressLogic.js +9 -8
  82. package/dist/components/inputs/KapiAutocomplete.d.ts +6 -0
  83. package/dist/components/inputs/KapiAutocomplete.js +86 -85
  84. package/dist/components/inputs/KapiChecklist.d.ts +7 -1
  85. package/dist/components/inputs/KapiChecklist.js +53 -52
  86. package/dist/components/inputs/KapiCopyButton.d.ts +40 -0
  87. package/dist/components/inputs/KapiCopyButton.js +35 -0
  88. package/dist/components/inputs/KapiDatePicker.d.ts +7 -1
  89. package/dist/components/inputs/KapiDatePicker.js +118 -116
  90. package/dist/components/inputs/KapiDateRangePicker.d.ts +7 -1
  91. package/dist/components/inputs/KapiDateRangePicker.js +136 -135
  92. package/dist/components/inputs/KapiFacetedSearch.js +5 -5
  93. package/dist/components/inputs/KapiField.d.ts +9 -1
  94. package/dist/components/inputs/KapiField.js +43 -42
  95. package/dist/components/inputs/KapiFileUpload.d.ts +14 -1
  96. package/dist/components/inputs/KapiFileUpload.js +83 -70
  97. package/dist/components/inputs/KapiInput.d.ts +29 -1
  98. package/dist/components/inputs/KapiInput.js +74 -51
  99. package/dist/components/inputs/KapiMaskedInput.js +26 -26
  100. package/dist/components/inputs/KapiNumberStepper.d.ts +7 -1
  101. package/dist/components/inputs/KapiNumberStepper.js +24 -23
  102. package/dist/components/inputs/KapiPinInput.d.ts +72 -0
  103. package/dist/components/inputs/KapiPinInput.js +75 -0
  104. package/dist/components/inputs/KapiPropsForm.d.ts +34 -0
  105. package/dist/components/inputs/KapiPropsForm.js +78 -0
  106. package/dist/components/inputs/KapiRating.d.ts +7 -1
  107. package/dist/components/inputs/KapiRating.js +39 -38
  108. package/dist/components/inputs/KapiSearchChip.js +5 -5
  109. package/dist/components/inputs/KapiSegmented.d.ts +13 -5
  110. package/dist/components/inputs/KapiSegmented.js +81 -77
  111. package/dist/components/inputs/KapiSelect.d.ts +9 -1
  112. package/dist/components/inputs/KapiSelect.js +236 -233
  113. package/dist/components/inputs/KapiSlider.d.ts +10 -3
  114. package/dist/components/inputs/KapiSlider.js +67 -63
  115. package/dist/components/inputs/KapiTagInput.d.ts +7 -1
  116. package/dist/components/inputs/KapiTagInput.js +70 -69
  117. package/dist/components/inputs/KapiTextarea.d.ts +7 -1
  118. package/dist/components/inputs/KapiTextarea.js +51 -50
  119. package/dist/components/inputs/copyLogic.d.ts +1 -0
  120. package/dist/components/inputs/copyLogic.js +12 -0
  121. package/dist/components/inputs/fieldLogic.d.ts +23 -3
  122. package/dist/components/inputs/fieldLogic.js +18 -11
  123. package/dist/components/inputs/formBridgeLogic.d.ts +104 -0
  124. package/dist/components/inputs/formBridgeLogic.js +25 -0
  125. package/dist/components/inputs/index.d.ts +10 -0
  126. package/dist/components/inputs/inputLogic.d.ts +16 -1
  127. package/dist/components/inputs/inputLogic.js +3 -3
  128. package/dist/components/inputs/ownField.d.ts +3 -1
  129. package/dist/components/inputs/ownField.js +28 -27
  130. package/dist/components/inputs/pinInputLogic.d.ts +34 -0
  131. package/dist/components/inputs/pinInputLogic.js +37 -0
  132. package/dist/components/inputs/propsFormLogic.d.ts +53 -0
  133. package/dist/components/inputs/propsFormLogic.js +11 -0
  134. package/dist/components/inputs/segmentedLogic.d.ts +7 -0
  135. package/dist/components/inputs/segmentedLogic.js +2 -2
  136. package/dist/components/layout/KapiAccessCard.d.ts +5 -1
  137. package/dist/components/layout/KapiAccessCard.js +43 -39
  138. package/dist/components/layout/KapiAccountMenu.js +7 -7
  139. package/dist/components/layout/KapiCollapse.d.ts +39 -0
  140. package/dist/components/layout/KapiCollapse.js +20 -0
  141. package/dist/components/layout/KapiContextSlot.js +4 -4
  142. package/dist/components/layout/KapiDivider.d.ts +11 -2
  143. package/dist/components/layout/KapiDivider.js +30 -24
  144. package/dist/components/layout/KapiGrid.js +2 -2
  145. package/dist/components/layout/KapiNotificationBell.js +10 -10
  146. package/dist/components/layout/KapiPageHeader.js +22 -22
  147. package/dist/components/layout/KapiRail.js +4 -4
  148. package/dist/components/layout/KapiRoot.d.ts +22 -2
  149. package/dist/components/layout/KapiRoot.js +33 -29
  150. package/dist/components/layout/KapiShell.d.ts +9 -1
  151. package/dist/components/layout/KapiShell.js +28 -27
  152. package/dist/components/layout/accessCardLogic.d.ts +8 -1
  153. package/dist/components/layout/accessCardLogic.js +11 -7
  154. package/dist/components/layout/index.d.ts +2 -0
  155. package/dist/components/locale/labelRegistry.d.ts +18 -0
  156. package/dist/components/navigation/KapiAccordion.js +9 -9
  157. package/dist/components/navigation/KapiContextPanel.js +12 -12
  158. package/dist/components/navigation/KapiNavBadge.d.ts +6 -3
  159. package/dist/components/navigation/KapiNavBadge.js +26 -22
  160. package/dist/components/navigation/KapiSteps.d.ts +26 -5
  161. package/dist/components/navigation/KapiSteps.js +55 -43
  162. package/dist/components/navigation/KapiTabs.js +9 -9
  163. package/dist/components/navigation/KapiToc.d.ts +48 -0
  164. package/dist/components/navigation/KapiToc.js +66 -0
  165. package/dist/components/navigation/KapiTree.js +10 -10
  166. package/dist/components/navigation/index.d.ts +3 -0
  167. package/dist/components/navigation/tocLogic.d.ts +35 -0
  168. package/dist/components/navigation/tocLogic.js +11 -0
  169. package/dist/components/navigation/tocSlots.d.ts +8 -0
  170. package/dist/components/navigation/tocSlots.js +11 -0
  171. package/dist/components/overlays/KapiCommandPalette.js +6 -6
  172. package/dist/components/overlays/KapiContextMenu.js +5 -5
  173. package/dist/components/overlays/KapiImageViewer.d.ts +63 -0
  174. package/dist/components/overlays/KapiImageViewer.js +106 -0
  175. package/dist/components/overlays/KapiMenuButton.js +7 -7
  176. package/dist/components/overlays/KapiModal.js +3 -3
  177. package/dist/components/overlays/KapiOffcanvas.js +24 -24
  178. package/dist/components/overlays/KapiPhotoView.js +10 -10
  179. package/dist/components/overlays/KapiPopover.js +6 -6
  180. package/dist/components/overlays/KapiShapeSheet.js +4 -4
  181. package/dist/components/overlays/KapiShortcutsHelp.d.ts +53 -0
  182. package/dist/components/overlays/KapiShortcutsHelp.js +55 -0
  183. package/dist/components/overlays/KapiTooltip.d.ts +49 -10
  184. package/dist/components/overlays/KapiTooltip.js +120 -68
  185. package/dist/components/overlays/KapiViewport.d.ts +63 -0
  186. package/dist/components/overlays/KapiViewport.js +195 -0
  187. package/dist/components/overlays/index.d.ts +8 -0
  188. package/dist/components/overlays/menuList.js +22 -22
  189. package/dist/components/overlays/shortcutsHelpSlots.d.ts +9 -0
  190. package/dist/components/overlays/shortcutsHelpSlots.js +12 -0
  191. package/dist/components/overlays/viewportLogic.d.ts +73 -0
  192. package/dist/components/overlays/viewportLogic.js +54 -0
  193. package/dist/components/slotCatalog.d.ts +66 -0
  194. package/dist/components/slotCatalog.js +30 -12
  195. package/dist/css/base.css +1 -1
  196. package/dist/css/components/data/KapiScatterChart.css +1 -0
  197. package/dist/css/components/display/KapiAnnotation.css +1 -1
  198. package/dist/css/components/display/KapiCodeBlock.css +1 -0
  199. package/dist/css/components/display/KapiDiff.css +1 -0
  200. package/dist/css/components/display/display.css +1 -1
  201. package/dist/css/components/feedback/feedback.css +1 -1
  202. package/dist/css/components/inputs/KapiFileUpload.css +1 -1
  203. package/dist/css/components/inputs/KapiPinInput.css +1 -0
  204. package/dist/css/components/inputs/KapiSelect.css +1 -1
  205. package/dist/css/components/inputs/inputsExtra.css +1 -1
  206. package/dist/css/components/layout/KapiAccessCard.css +1 -1
  207. package/dist/css/components/layout/KapiCollapse.css +1 -0
  208. package/dist/css/components/layout/KapiDivider.css +1 -1
  209. package/dist/css/components/navigation/KapiSteps.css +1 -1
  210. package/dist/css/components/navigation/KapiToc.css +1 -0
  211. package/dist/css/components/overlays/KapiViewport.css +1 -0
  212. package/dist/css/components/overlays/overlays.css +1 -1
  213. package/dist/hooks/asyncResourceLogic.d.ts +11 -0
  214. package/dist/hooks/asyncResourceLogic.js +4 -0
  215. package/dist/hooks/elementSizeLogic.d.ts +15 -0
  216. package/dist/hooks/elementSizeLogic.js +7 -0
  217. package/dist/hooks/hotkeyLogic.d.ts +9 -0
  218. package/dist/hooks/hotkeyLogic.js +16 -15
  219. package/dist/hooks/hotkeyRegistry.d.ts +44 -0
  220. package/dist/hooks/hotkeyRegistry.js +32 -0
  221. package/dist/hooks/index.d.ts +13 -0
  222. package/dist/hooks/toneFamilyLogic.d.ts +26 -2
  223. package/dist/hooks/toneFamilyLogic.js +19 -6
  224. package/dist/hooks/useAsyncResource.d.ts +45 -0
  225. package/dist/hooks/useAsyncResource.js +24 -0
  226. package/dist/hooks/useDebouncedValue.d.ts +30 -0
  227. package/dist/hooks/useDebouncedValue.js +26 -0
  228. package/dist/hooks/useDisclosure.d.ts +39 -0
  229. package/dist/hooks/useDisclosure.js +35 -0
  230. package/dist/hooks/useElementSize.d.ts +27 -0
  231. package/dist/hooks/useElementSize.js +29 -0
  232. package/dist/hooks/useHotkey.d.ts +8 -0
  233. package/dist/hooks/useHotkey.js +27 -15
  234. package/dist/hooks/useKapiTheme.d.ts +8 -1
  235. package/dist/hooks/useKapiTheme.js +57 -57
  236. package/dist/hooks/useToneFamilies.d.ts +14 -4
  237. package/dist/hooks/useToneFamilies.js +27 -23
  238. package/dist/index.js +234 -207
  239. package/dist/kapi.css +1 -1
  240. package/dist/kapi.layered.css +1 -1
  241. package/dist/logic.d.ts +45 -0
  242. package/dist/logic.js +46 -0
  243. package/package.json +13 -2
@@ -1,180 +1,181 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/inputs/KapiDatePicker.css";
3
- import { assignRef as e, fieldControlProps as t, focusLeaves as ee, resolveReadOnly as te } from "./fieldLogic.js";
4
- import { useOwnField as ne } from "./ownField.js";
5
- import { useKapiLocale as re, useLabels as ie } from "../locale/KapiLocaleProvider.js";
6
- import { resolveChipLabel as ae } from "./selectLogic.js";
7
- import { useControllableState as oe } from "../../hooks/useControllableState.js";
8
- import { activeHTMLElementOf as se } from "../../hooks/ownerDocument.js";
9
- import { useFormReset as ce } from "../../hooks/useFormReset.js";
10
- import { useMergedRefs as le } from "../../hooks/mergeRefs.js";
3
+ import { useMergedRefs as e } from "../../hooks/mergeRefs.js";
4
+ import { useKapiLocale as t, useLabels as ee } from "../locale/KapiLocaleProvider.js";
5
+ import { activeHTMLElementOf as te } from "../../hooks/ownerDocument.js";
6
+ import { assignRef as ne, fieldControlProps as re, focusLeaves as ie, resolveReadOnly as ae } from "./fieldLogic.js";
7
+ import { useOwnField as oe } from "./ownField.js";
8
+ import { useControllableState as se } from "../../hooks/useControllableState.js";
9
+ import { resolveChipLabel as ce } from "./selectLogic.js";
10
+ import { useFormReset as le } from "../../hooks/useFormReset.js";
11
11
  import { useOutsidePress as ue } from "../../hooks/useOutsidePress.js";
12
12
  import { DEFAULT_CALENDAR_LABELS as n, calendarNames as de, chipFieldSize as fe, datePatternFor as pe, formDateValue as r, monthTitle as me, pickerIsChip as he } from "./datePickerLogic.js";
13
13
  /* empty css */
14
14
  import { KapiCalendarGrid as ge } from "./KapiCalendarGrid.js";
15
15
  import { useCalendarFocus as _e } from "./useCalendarFocus.js";
16
16
  import { useDatePopSide as ve } from "./useDatePopSide.js";
17
- import { EMPTY_RANGE as i, formatRange as a, isCompleteRange as ye, maskRangeInput as be, openEndedDay as xe, parseRangeText as Se, pickRangeDay as Ce, rangeDayState as o, rangePlaceholder as we, sameRange as Te, validRange as Ee } from "./dateRangeLogic.js";
18
- import { useId as De, useMemo as s, useRef as c, useState as l } from "react";
19
- import { Fragment as Oe, jsx as u, jsxs as d } from "react/jsx-runtime";
20
- import { Calendar as ke, ChevronLeft as Ae, ChevronRight as je } from "lucide-react";
17
+ import { EMPTY_RANGE as i, formatRange as a, isCompleteRange as ye, maskRangeInput as be, openEndedDay as xe, parseRangeText as Se, pickRangeDay as Ce, rangeDayState as o, rangePlaceholder as we, sameRange as Te, validRange as s } from "./dateRangeLogic.js";
18
+ import { useId as Ee, useMemo as c, useRef as l, useState as u } from "react";
19
+ import { Fragment as De, jsx as d, jsxs as f } from "react/jsx-runtime";
20
+ import { Calendar as Oe, ChevronLeft as ke, ChevronRight as Ae } from "lucide-react";
21
21
  //#region src/components/inputs/KapiDateRangePicker.tsx
22
- var f = {
22
+ var p = {
23
23
  ...n,
24
24
  pickStart: "Elige la fecha de inicio",
25
25
  pickEnd: "Elige la fecha de fin",
26
26
  openEnd: "Desde esta fecha",
27
27
  openStart: "Hasta esta fecha"
28
- }, Me = (e) => `${e.from?.getTime() ?? ""}-${e.to?.getTime() ?? ""}`, p = ({ value: n, defaultValue: p, onChange: Ne, placeholder: Pe, variant: Fe, icon: m, chipLabel: h, label: g, help: Ie, fieldClassName: Le, readOnly: _, disabled: v = !1, id: y, name: b, className: Re, style: ze, "aria-label": Be, labels: Ve, invalid: He, required: x, ref: Ue, onBlur: We, weekStartsOn: Ge }) => {
29
- let S = re(), C = s(() => pe(S), [S]), w = Pe ?? we(C), Ke = s(() => S ? {
30
- ...f,
31
- ...de(S)
32
- } : f, [S]), T = ie("calendar", Ke, Ve), E = he({
33
- variant: Fe,
34
- icon: m,
35
- chipLabel: h,
36
- label: g
37
- }), { chipLabel: D, fieldLabel: qe } = ae({
38
- chip: E,
39
- chipLabel: h,
40
- label: g
41
- }), O = ne({
42
- id: y,
43
- label: qe,
44
- help: Ie,
45
- required: x,
46
- invalid: He,
47
- readOnly: _,
28
+ }, je = (e) => `${e.from?.getTime() ?? ""}-${e.to?.getTime() ?? ""}`, m = ({ value: n, defaultValue: m, onChange: Me, placeholder: Ne, variant: Pe, icon: h, chipLabel: g, label: _, help: Fe, error: Ie, fieldClassName: Le, readOnly: v, disabled: y = !1, id: b, name: x, className: Re, style: ze, "aria-label": Be, labels: Ve, invalid: S, required: C, ref: He, onBlur: Ue, weekStartsOn: We }) => {
29
+ let w = t(), T = c(() => pe(w), [w]), E = Ne ?? we(T), Ge = c(() => w ? {
30
+ ...p,
31
+ ...de(w)
32
+ } : p, [w]), D = ee("calendar", Ge, Ve), O = he({
33
+ variant: Pe,
34
+ icon: h,
35
+ chipLabel: g,
36
+ label: _
37
+ }), { chipLabel: k, fieldLabel: Ke } = ce({
38
+ chip: O,
39
+ chipLabel: g,
40
+ label: _
41
+ }), A = oe({
42
+ id: b,
43
+ label: Ke,
44
+ help: Fe,
45
+ error: Ie,
46
+ required: C,
47
+ invalid: S,
48
+ readOnly: v,
48
49
  fieldClassName: Le
49
- }), k = O.field, A = te(_, k), Je = De(), j = y ?? k?.controlId ?? (E ? Je : void 0), [M, N] = l(!1), Ye = n !== void 0, [P, Xe, , Ze] = oe(n === void 0 ? void 0 : Ee(n), Ee(p ?? i), Ne), [F, I] = l(P), [Qe, L] = l(null), [R, z] = l(() => a(P, C)), [B, V] = l(() => P.from ?? /* @__PURE__ */ new Date()), H = c(null), $e = le(H, ce(Ze)), U = c(null), W = c(null), { inputRef: et, focusRequest: tt, openFromKeyboard: G, openFromFocus: nt, returnFocus: K } = _e(N), q = Me(P), [rt, it] = l(q), [at, ot] = l(C);
50
- (rt !== q || at !== C) && (it(q), ot(C), I(P), z(a(P, C)), P.from && V(P.from));
51
- let J = () => {
52
- N(!1), I(P), L(null);
50
+ }), j = A.field, M = ae(v, j), qe = Ee(), N = b ?? j?.controlId ?? (O ? qe : void 0), [P, F] = u(!1), Je = n !== void 0, [I, Ye, , Xe] = se(n === void 0 ? void 0 : s(n), s(m ?? i), Me), [L, R] = u(I), [Ze, z] = u(null), [B, V] = u(() => a(I, T)), [H, U] = u(() => I.from ?? /* @__PURE__ */ new Date()), W = l(null), Qe = e(W, le(Xe)), G = l(null), K = l(null), { inputRef: $e, focusRequest: et, openFromKeyboard: q, openFromFocus: tt, returnFocus: J } = _e(F), Y = je(I), [nt, rt] = u(Y), [it, at] = u(T);
51
+ (nt !== Y || it !== T) && (rt(Y), at(T), R(I), V(a(I, T)), I.from && U(I.from));
52
+ let X = () => {
53
+ F(!1), R(I), z(null);
53
54
  };
54
- ue(M, [H], () => {
55
- let e = se(H.current);
56
- e && W.current?.contains(e) && e.blur(), J();
55
+ ue(P, [W], () => {
56
+ let e = te(W.current);
57
+ e && K.current?.contains(e) && e.blur(), X();
57
58
  });
58
- let Y = (e) => {
59
- Xe(e);
60
- let t = Ye ? P : e;
61
- I(t), z(a(t, C));
62
- }, st = () => {
63
- let e = Se(R, C);
64
- e === null ? (P.from || P.to) && Y(i) : e === void 0 ? z(a(P, C)) : (Te(e, P) ? z(a(e, C)) : Y(e), e.from && V(e.from));
59
+ let Z = (e) => {
60
+ Ye(e);
61
+ let t = Je ? I : e;
62
+ R(t), V(a(t, T));
63
+ }, ot = () => {
64
+ let e = Se(B, T);
65
+ e === null ? (I.from || I.to) && Z(i) : e === void 0 ? V(a(I, T)) : (Te(e, I) ? V(a(e, T)) : Z(e), e.from && U(e.from));
66
+ }, st = (e) => {
67
+ let t = Ce(L, e);
68
+ z(null), ye(t) ? (Z(t), J()) : R(t);
65
69
  }, ct = (e) => {
66
- let t = Ce(F, e);
67
- L(null), ye(t) ? (Y(t), K()) : I(t);
68
- }, X = (e) => {
69
- L(null), Y(e), K();
70
- }, Z = (e) => V(new Date(B.getFullYear(), B.getMonth() + e, 1)), Q = !!F.from && !F.to, $ = xe(F), lt = ve(M && !v && !A, U, W);
71
- return O.wrap(/* @__PURE__ */ d("div", {
70
+ z(null), Z(e), J();
71
+ }, lt = (e) => U(new Date(H.getFullYear(), H.getMonth() + e, 1)), Q = !!L.from && !L.to, $ = xe(L), ut = ve(P && !y && !M, G, K);
72
+ return A.wrap(/* @__PURE__ */ f("div", {
72
73
  className: [
73
74
  "kapi-dp",
74
75
  "kapi-dp--range",
75
- E && "kapi-dp--chip",
76
- A && "kapi-dp--readonly",
76
+ O && "kapi-dp--chip",
77
+ M && "kapi-dp--readonly",
77
78
  Re
78
79
  ].filter(Boolean).join(" "),
79
80
  style: ze,
80
- ref: $e,
81
+ ref: Qe,
81
82
  onBlur: (e) => {
82
- ee(e.relatedTarget, e.currentTarget) && We?.(e);
83
+ ie(e.relatedTarget, e.currentTarget) && Ue?.(e);
83
84
  },
84
85
  children: [
85
- /* @__PURE__ */ d("div", {
86
- className: ["kapi-dp__field", E && "kapi-filterchip"].filter(Boolean).join(" "),
87
- ref: U,
86
+ /* @__PURE__ */ f("div", {
87
+ className: ["kapi-dp__field", O && "kapi-filterchip"].filter(Boolean).join(" "),
88
+ ref: G,
88
89
  children: [
89
- E && m,
90
- D && /* @__PURE__ */ d("label", {
90
+ O && h,
91
+ k && /* @__PURE__ */ f("label", {
91
92
  className: "kapi-dp__label",
92
- htmlFor: j,
93
- children: [D, ":"]
93
+ htmlFor: N,
94
+ children: [k, ":"]
94
95
  }),
95
- /* @__PURE__ */ u("input", {
96
- ref: (t) => {
97
- et.current = t, e(Ue, t);
96
+ /* @__PURE__ */ d("input", {
97
+ ref: (e) => {
98
+ $e.current = e, ne(He, e);
98
99
  },
99
- ...t(k, {
100
- id: j,
101
- invalid: He,
102
- required: x
100
+ ...re(j, {
101
+ id: N,
102
+ invalid: S,
103
+ required: C
103
104
  }),
104
- ...E ? { size: fe(w) } : {},
105
+ ...O ? { size: fe(E) } : {},
105
106
  className: "kapi-input kapi-dp__input",
106
- value: R,
107
- placeholder: w,
108
- disabled: v,
109
- readOnly: A || void 0,
107
+ value: B,
108
+ placeholder: E,
109
+ disabled: y,
110
+ readOnly: M || void 0,
110
111
  "aria-label": Be,
111
112
  autoComplete: "off",
112
113
  inputMode: "numeric",
113
- onChange: (e) => z(be(e.target.value, C)),
114
- onFocus: A ? void 0 : nt,
115
- onBlur: st,
114
+ onChange: (e) => V(be(e.target.value, T)),
115
+ onFocus: M ? void 0 : tt,
116
+ onBlur: ot,
116
117
  onKeyDown: (e) => {
117
- e.key === "Escape" && M && (e.preventDefault(), e.stopPropagation(), J()), e.key === "ArrowDown" && !A && (e.preventDefault(), G());
118
+ e.key === "Escape" && P && (e.preventDefault(), e.stopPropagation(), X()), e.key === "ArrowDown" && !M && (e.preventDefault(), q());
118
119
  }
119
120
  }),
120
- /* @__PURE__ */ u("button", {
121
+ /* @__PURE__ */ d("button", {
121
122
  type: "button",
122
123
  className: "kapi-dp__toggle",
123
- disabled: v || A,
124
- "aria-label": T.openPicker,
125
- "aria-expanded": M,
126
- onClick: () => M ? J() : G(),
127
- children: /* @__PURE__ */ u(ke, {
124
+ disabled: y || M,
125
+ "aria-label": D.openPicker,
126
+ "aria-expanded": P,
127
+ onClick: () => P ? X() : q(),
128
+ children: /* @__PURE__ */ d(Oe, {
128
129
  size: 16,
129
130
  strokeWidth: 1.9
130
131
  })
131
132
  })
132
133
  ]
133
134
  }),
134
- b && /* @__PURE__ */ d(Oe, { children: [/* @__PURE__ */ u("input", {
135
+ x && /* @__PURE__ */ f(De, { children: [/* @__PURE__ */ d("input", {
135
136
  type: "hidden",
136
- name: `${b}.from`,
137
- value: r(P.from, "date"),
138
- disabled: v
139
- }), /* @__PURE__ */ u("input", {
137
+ name: `${x}.from`,
138
+ value: r(I.from, "date"),
139
+ disabled: y
140
+ }), /* @__PURE__ */ d("input", {
140
141
  type: "hidden",
141
- name: `${b}.to`,
142
- value: r(P.to, "date"),
143
- disabled: v
142
+ name: `${x}.to`,
143
+ value: r(I.to, "date"),
144
+ disabled: y
144
145
  })] }),
145
- M && !v && !A && /* @__PURE__ */ u("div", {
146
- ref: W,
147
- className: `kapi-dp__pop${lt === "top" ? " kapi-dp__pop--up" : ""}`,
146
+ P && !y && !M && /* @__PURE__ */ d("div", {
147
+ ref: K,
148
+ className: `kapi-dp__pop${ut === "top" ? " kapi-dp__pop--up" : ""}`,
148
149
  onKeyDown: (e) => {
149
- e.key === "Escape" && (e.preventDefault(), J(), K());
150
+ e.key === "Escape" && (e.preventDefault(), X(), J());
150
151
  },
151
- children: /* @__PURE__ */ d("div", {
152
+ children: /* @__PURE__ */ f("div", {
152
153
  className: "kapi-dp__cal",
153
154
  children: [
154
- /* @__PURE__ */ d("div", {
155
+ /* @__PURE__ */ f("div", {
155
156
  className: "kapi-dp__head",
156
157
  children: [
157
- /* @__PURE__ */ u("button", {
158
+ /* @__PURE__ */ d("button", {
158
159
  type: "button",
159
160
  className: "kapi-dp__nav",
160
- "aria-label": T.prevMonth,
161
- onClick: () => Z(-1),
162
- children: /* @__PURE__ */ u(Ae, {
161
+ "aria-label": D.prevMonth,
162
+ onClick: () => lt(-1),
163
+ children: /* @__PURE__ */ d(ke, {
163
164
  className: "kapi-flip-rtl",
164
165
  size: 15,
165
166
  strokeWidth: 2.2
166
167
  })
167
168
  }),
168
- /* @__PURE__ */ u("span", {
169
+ /* @__PURE__ */ d("span", {
169
170
  className: "kapi-dp__title",
170
- children: me(B, T.months)
171
+ children: me(H, D.months)
171
172
  }),
172
- /* @__PURE__ */ u("button", {
173
+ /* @__PURE__ */ d("button", {
173
174
  type: "button",
174
175
  className: "kapi-dp__nav",
175
- "aria-label": T.nextMonth,
176
- onClick: () => Z(1),
177
- children: /* @__PURE__ */ u(je, {
176
+ "aria-label": D.nextMonth,
177
+ onClick: () => lt(1),
178
+ children: /* @__PURE__ */ d(Ae, {
178
179
  className: "kapi-flip-rtl",
179
180
  size: 15,
180
181
  strokeWidth: 2.2
@@ -182,56 +183,56 @@ var f = {
182
183
  })
183
184
  ]
184
185
  }),
185
- /* @__PURE__ */ u(ge, {
186
- weekStartsOn: Ge,
187
- view: B,
188
- onViewChange: V,
189
- labels: T,
190
- focusTarget: F.from,
191
- focusRequest: tt,
192
- isSelected: (e) => o(e, F, null) !== null,
186
+ /* @__PURE__ */ d(ge, {
187
+ weekStartsOn: We,
188
+ view: H,
189
+ onViewChange: U,
190
+ labels: D,
191
+ focusTarget: L.from,
192
+ focusRequest: et,
193
+ isSelected: (e) => o(e, L, null) !== null,
193
194
  dayClassName: (e) => {
194
- let t = o(e, F, Q ? Qe : null);
195
+ let t = o(e, L, Q ? Ze : null);
195
196
  return [(t === "start" || t === "end" || t === "single") && "kapi-dp__day--sel", t && `kapi-dp__day--${t}`].filter(Boolean).join(" ");
196
197
  },
197
- onPick: ct,
198
+ onPick: st,
198
199
  onDayHover: (e) => {
199
- e === null ? L(null) : Q && L(e);
200
+ e === null ? z(null) : Q && z(e);
200
201
  }
201
202
  }),
202
- /* @__PURE__ */ d("div", {
203
+ /* @__PURE__ */ f("div", {
203
204
  className: "kapi-dp__foot",
204
- children: [/* @__PURE__ */ u("button", {
205
+ children: [/* @__PURE__ */ d("button", {
205
206
  type: "button",
206
207
  className: "kapi-dp__link",
207
208
  onClick: () => {
208
- Y(i), N(!1);
209
+ Z(i), F(!1);
209
210
  },
210
- children: T.clear
211
- }), /* @__PURE__ */ u("span", {
211
+ children: D.clear
212
+ }), /* @__PURE__ */ d("span", {
212
213
  className: "kapi-dp__hint",
213
214
  "aria-live": "polite",
214
- children: Q ? T.pickEnd : T.pickStart
215
+ children: Q ? D.pickEnd : D.pickStart
215
216
  })]
216
217
  }),
217
- $ && /* @__PURE__ */ d("div", {
218
+ $ && /* @__PURE__ */ f("div", {
218
219
  className: "kapi-dp__open",
219
- children: [/* @__PURE__ */ u("button", {
220
+ children: [/* @__PURE__ */ d("button", {
220
221
  type: "button",
221
222
  className: "kapi-dp__link",
222
- onClick: () => X({
223
+ onClick: () => ct({
223
224
  from: $,
224
225
  to: null
225
226
  }),
226
- children: T.openEnd
227
- }), /* @__PURE__ */ u("button", {
227
+ children: D.openEnd
228
+ }), /* @__PURE__ */ d("button", {
228
229
  type: "button",
229
230
  className: "kapi-dp__link",
230
- onClick: () => X({
231
+ onClick: () => ct({
231
232
  from: null,
232
233
  to: $
233
234
  }),
234
- children: T.openStart
235
+ children: D.openStart
235
236
  })]
236
237
  })
237
238
  ]
@@ -241,4 +242,4 @@ var f = {
241
242
  }));
242
243
  };
243
244
  //#endregion
244
- export { f as DEFAULT_DATE_RANGE_LABELS, p as KapiDateRangePicker };
245
+ export { p as DEFAULT_DATE_RANGE_LABELS, m as KapiDateRangePicker };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/inputs/KapiFacetedSearch.css";
3
3
  import { joinClasses as e } from "../rootProps.js";
4
- import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
- import { enabledIndexes as ee, nextEnabledIndex as n } from "../overlays/menuKeyboardLogic.js";
6
- import { useMergedRefs as r } from "../../hooks/mergeRefs.js";
4
+ import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
5
+ import { useLabels as ee } from "../locale/KapiLocaleProvider.js";
6
+ import { enabledIndexes as n, nextEnabledIndex as r } from "../overlays/menuKeyboardLogic.js";
7
7
  import { useAsyncLoader as te } from "../../hooks/useAsyncLoader.js";
8
8
  import { KapiDatePicker as ne } from "./KapiDatePicker.js";
9
9
  import { KapiDateRangePicker as re } from "./KapiDateRangePicker.js";
@@ -40,7 +40,7 @@ var p = {
40
40
  operatorLte: "menor o igual que"
41
41
  };
42
42
  function m({ facets: m, chips: h, onText: fe, onClearAll: g, loadDelay: pe = 300, reloadKey: me, labels: he, className: ge, onMouseDown: _e, "aria-label": _, ref: ve, ...v }) {
43
- let y = t("facetedSearch", p, he), b = s(), x = `${b}-list`, S = c(null), ye = r(S, ve), C = c(null), w = c(null), [T, E] = l(""), [D, O] = l(null), [k, A] = l(null), [j, M] = l(!1), [N, P] = l(-1), F = T.trim(), I = !!D && a(D).length >= 2 && k === null, L = D?.kind === "text" && !I, R = typeof D?.loadOptions == "function" && D.kind !== "text" && !I, z = {
43
+ let y = ee("facetedSearch", p, he), b = s(), x = `${b}-list`, S = c(null), ye = t(S, ve), C = c(null), w = c(null), [T, E] = l(""), [D, O] = l(null), [k, A] = l(null), [j, M] = l(!1), [N, P] = l(-1), F = T.trim(), I = !!D && a(D).length >= 2 && k === null, L = D?.kind === "text" && !I, R = typeof D?.loadOptions == "function" && D.kind !== "text" && !I, z = {
44
44
  eq: y.operatorEq,
45
45
  ne: y.operatorNe,
46
46
  contains: y.operatorContains,
@@ -88,7 +88,7 @@ function m({ facets: m, chips: h, onText: fe, onClearAll: g, loadDelay: pe = 300
88
88
  if (t) switch (e.preventDefault(), t) {
89
89
  case "next":
90
90
  case "prev":
91
- M(!0), P((e) => n(G ? e : -1, t, ee(W.length)));
91
+ M(!0), P((e) => r(G ? e : -1, t, n(W.length)));
92
92
  break;
93
93
  case "select": {
94
94
  let e = W[N];
@@ -17,6 +17,14 @@ export type KapiFieldProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> &
17
17
  required?: boolean | undefined;
18
18
  /** Texto de ayuda / error bajo el control. */
19
19
  help?: ReactNode | undefined;
20
+ /**
21
+ * El motivo por el que el campo está mal. Reemplaza a `help` y marca el campo inválido: se pinta en
22
+ * rojo, con ícono y `role="alert"`. Es lo que entregan las librerías de formularios (un mensaje, no
23
+ * un booleano), así que evita escribir `invalid={Boolean(e)} help={e ?? "pista"}` en cada campo y
24
+ * que las dos props se desincronicen dejando un campo rojo sin motivo visible. Un error que React no
25
+ * pinta (`true`, `""`, `null`) no marca nada. Gana sobre `invalid` y `status`.
26
+ */
27
+ error?: ReactNode | undefined;
20
28
  /** `id` del texto de ayuda. Opcional: sin él se deriva del id del control. */
21
29
  helpId?: string | undefined;
22
30
  /**
@@ -46,4 +54,4 @@ export declare const helpClasses: (status?: KapiFieldStatus) => string;
46
54
  * Los controles del design system que van adentro toman del contexto su id, la ayuda (`aria-describedby`),
47
55
  * `aria-invalid` y `aria-required`; no hace falta cablear ids a mano.
48
56
  */
49
- export declare const KapiField: ({ label, htmlFor, required, help, helpId: helpIdProp, invalid: invalidProp, status: statusProp, readOnly, className, children, ...rest }: KapiFieldProps) => import("react").JSX.Element;
57
+ export declare const KapiField: ({ label, htmlFor, required, help: helpProp, error, helpId: helpIdProp, invalid: invalidProp, status: statusProp, readOnly, className, children, ...rest }: KapiFieldProps) => import("react").JSX.Element;
@@ -1,63 +1,64 @@
1
1
  "use client";
2
- import { fieldContextValue as e, fieldIds as t, resolveValidation as n } from "./fieldLogic.js";
3
- import { createContext as r, useContext as i, useId as a, useMemo as o } from "react";
4
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
- import { AlertTriangle as l, CheckCircle2 as u, LoaderCircle as d } from "lucide-react";
2
+ import { present as e } from "./inputLogic.js";
3
+ import { fieldContextValue as t, fieldIds as n, resolveFieldMessage as r } from "./fieldLogic.js";
4
+ import { createContext as i, useContext as a, useId as o, useMemo as s } from "react";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
+ import { AlertTriangle as u, CheckCircle2 as d, LoaderCircle as f } from "lucide-react";
6
7
  //#region src/components/inputs/KapiField.tsx
7
- var f = r(null), p = () => i(f), m = (e = "") => ["kapi-field", e].filter(Boolean).join(" "), h = (e) => ["kapi-help", e && `kapi-help--${e}`].filter(Boolean).join(" "), g = ({ label: r, htmlFor: i, required: p = !1, help: g, helpId: _, invalid: v, status: y, readOnly: b, className: x, children: S, ...C }) => {
8
- let w = a(), T = !!g, { controlId: E, labelId: D, helpId: O } = t({
9
- htmlFor: i,
10
- autoId: w,
11
- helpId: _,
12
- hasHelp: T
13
- }), { status: k } = n(v, y), A = r != null, j = o(() => e({
14
- controlId: E,
15
- labelId: A ? D : void 0,
16
- helpId: O,
17
- required: p,
18
- status: k,
19
- readOnly: b
8
+ var p = i(null), m = () => a(p), h = (e = "") => ["kapi-field", e].filter(Boolean).join(" "), g = (e) => ["kapi-help", e && `kapi-help--${e}`].filter(Boolean).join(" "), _ = ({ label: i, htmlFor: a, required: m = !1, help: _, error: v, helpId: y, invalid: b, status: x, readOnly: S, className: C, children: w, ...T }) => {
9
+ let E = o(), { message: D, status: O } = r(v, _, b, x), k = e(D), { controlId: A, labelId: j, helpId: M } = n({
10
+ htmlFor: a,
11
+ autoId: E,
12
+ helpId: y,
13
+ hasHelp: k
14
+ }), N = i != null, P = s(() => t({
15
+ controlId: A,
16
+ labelId: N ? j : void 0,
17
+ helpId: M,
18
+ required: m,
19
+ status: O,
20
+ readOnly: S
20
21
  }), [
21
- E,
22
- D,
23
22
  A,
23
+ j,
24
+ N,
25
+ M,
26
+ m,
24
27
  O,
25
- p,
26
- k,
27
- b
28
+ S
28
29
  ]);
29
- return /* @__PURE__ */ s(f.Provider, {
30
- value: j,
31
- children: /* @__PURE__ */ c("div", {
32
- ...C,
33
- className: m(x),
30
+ return /* @__PURE__ */ c(p.Provider, {
31
+ value: P,
32
+ children: /* @__PURE__ */ l("div", {
33
+ ...T,
34
+ className: h(C),
34
35
  children: [
35
- r != null && /* @__PURE__ */ c("label", {
36
- id: D,
37
- htmlFor: E,
38
- children: [r, p && " *"]
36
+ i != null && /* @__PURE__ */ l("label", {
37
+ id: j,
38
+ htmlFor: A,
39
+ children: [i, m && " *"]
39
40
  }),
40
- S,
41
- T ? /* @__PURE__ */ c("span", {
42
- id: O,
43
- className: h(k),
44
- role: k === "err" ? "alert" : void 0,
45
- "aria-live": k === "pending" ? "polite" : void 0,
41
+ w,
42
+ k ? /* @__PURE__ */ l("span", {
43
+ id: M,
44
+ className: g(O),
45
+ role: O === "err" ? "alert" : void 0,
46
+ "aria-live": O === "pending" ? "polite" : void 0,
46
47
  children: [
47
- k === "ok" && /* @__PURE__ */ s(u, {
48
+ O === "ok" && /* @__PURE__ */ c(d, {
48
49
  size: 13,
49
50
  strokeWidth: 2.2
50
51
  }),
51
- k === "err" && /* @__PURE__ */ s(l, {
52
+ O === "err" && /* @__PURE__ */ c(u, {
52
53
  size: 13,
53
54
  strokeWidth: 2.2
54
55
  }),
55
- k === "pending" && /* @__PURE__ */ s(d, {
56
+ O === "pending" && /* @__PURE__ */ c(f, {
56
57
  size: 13,
57
58
  strokeWidth: 2.2,
58
59
  className: "kapi-spinner"
59
60
  }),
60
- g
61
+ D
61
62
  ]
62
63
  }) : null
63
64
  ]
@@ -65,4 +66,4 @@ var f = r(null), p = () => i(f), m = (e = "") => ["kapi-field", e].filter(Boolea
65
66
  });
66
67
  };
67
68
  //#endregion
68
- export { g as KapiField, m as fieldClasses, h as helpClasses, p as useKapiField };
69
+ export { _ as KapiField, h as fieldClasses, g as helpClasses, m as useKapiField };
@@ -32,6 +32,17 @@ export type KapiFileUploadProps = {
32
32
  onBlur?: ((event: FocusEvent<HTMLDivElement>) => void) | undefined;
33
33
  /** Marca la zona como inválida (`aria-invalid`). Sin la prop, lo toma del `KapiField` (`invalid`). */
34
34
  invalid?: boolean | undefined;
35
+ /**
36
+ * Progreso de subida de cada archivo, 0–100. Devolver `undefined` para un archivo es no mostrarle
37
+ * barra (todavía no empezó, o ya terminó). Es una **función y no un mapa por nombre** porque la
38
+ * lista admite dos archivos con el mismo nombre y un mapa se los pisaría entre sí.
39
+ */
40
+ progress?: ((file: File, index: number) => number | undefined) | undefined;
41
+ /**
42
+ * Permite pegar archivos del portapapeles con Ctrl/Cmd+V cuando la zona tiene el foco (una captura
43
+ * de pantalla, por ejemplo). Respeta `accept` y `multiple`, igual que arrastrar.
44
+ */
45
+ paste?: boolean | undefined;
35
46
  /** `id`s extra para `aria-describedby` (se suman a la ayuda del campo y al hint). */
36
47
  "aria-describedby"?: string | undefined;
37
48
  /** Ref a la zona (el elemento enfocable, `role="button"`). */
@@ -46,6 +57,8 @@ export type KapiFileUploadLabels = {
46
57
  remove: string;
47
58
  /** Ayuda bajo el título (sin `hint`). */
48
59
  hint: string;
60
+ /** Prefijo del nombre accesible de la barra de progreso ("Subiendo informe.pdf"). */
61
+ uploading: string;
49
62
  };
50
63
  export declare const DEFAULT_FILE_UPLOAD_LABELS: KapiFileUploadLabels;
51
64
  /**
@@ -54,4 +67,4 @@ export declare const DEFAULT_FILE_UPLOAD_LABELS: KapiFileUploadLabels;
54
67
  * Dentro de un `KapiField` la zona toma id, nombre (label del campo + texto de la zona), ayuda y `aria-invalid`.
55
68
  * No lleva `aria-required` (no es válido en `role="button"`): el obligatorio se ve en el asterisco del label.
56
69
  */
57
- export declare const KapiFileUpload: ({ multiple, accept, hint: hintProp, onChange, disabled, className, style, labels, name, id, onBlur, invalid, "aria-describedby": describedBy, ref }: KapiFileUploadProps) => import("react").JSX.Element;
70
+ export declare const KapiFileUpload: ({ multiple, accept, hint: hintProp, onChange, disabled, className, style, labels, name, id, onBlur, invalid, progress, paste, "aria-describedby": describedBy, ref }: KapiFileUploadProps) => import("react").JSX.Element;