@kapiuara/ui 0.12.0 → 0.13.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.
- package/README.md +1197 -49
- package/dist/components/chat/KapiChatDivider.d.ts +1 -2
- package/dist/components/chat/KapiChatDivider.js +1 -0
- package/dist/components/chat/KapiChatList.d.ts +10 -6
- package/dist/components/chat/KapiChatList.js +12 -11
- package/dist/components/chat/KapiChatThread.d.ts +2 -3
- package/dist/components/chat/KapiChatThread.js +73 -52
- package/dist/components/chat/KapiComposer.d.ts +3 -4
- package/dist/components/chat/KapiComposer.js +2 -1
- package/dist/components/chat/KapiMessageBubble.d.ts +3 -4
- package/dist/components/chat/KapiMessageBubble.js +1 -0
- package/dist/components/chat/KapiTypingIndicator.d.ts +2 -3
- package/dist/components/chat/KapiTypingIndicator.js +1 -0
- package/dist/components/chat/chatLogic.d.ts +6 -0
- package/dist/components/chat/chatLogic.js +2 -2
- package/dist/components/chat/index.d.ts +18 -14
- package/dist/components/data/KapiBarChart.d.ts +13 -14
- package/dist/components/data/KapiBarChart.js +54 -52
- package/dist/components/data/KapiDataTable.d.ts +56 -0
- package/dist/components/data/KapiDataTable.js +143 -0
- package/dist/components/data/KapiEventCalendar.d.ts +9 -4
- package/dist/components/data/KapiEventCalendar.js +100 -96
- package/dist/components/data/KapiHeatmap.d.ts +8 -9
- package/dist/components/data/KapiHeatmap.js +64 -63
- package/dist/components/data/KapiLineChart.d.ts +9 -10
- package/dist/components/data/KapiLineChart.js +59 -56
- package/dist/components/data/KapiPagination.d.ts +6 -4
- package/dist/components/data/KapiPagination.js +2 -1
- package/dist/components/data/KapiPaginationFooter.d.ts +2 -3
- package/dist/components/data/KapiPaginationFooter.js +7 -4
- package/dist/components/data/KapiSparkline.d.ts +8 -9
- package/dist/components/data/KapiSparkline.js +1 -0
- package/dist/components/data/KapiTable.d.ts +7 -360
- package/dist/components/data/KapiTable.js +417 -692
- package/dist/components/data/KapiTableFilter.d.ts +16 -10
- package/dist/components/data/KapiTableFilter.js +50 -48
- package/dist/components/data/KapiTableRow.d.ts +55 -0
- package/dist/components/data/KapiTableRow.js +103 -0
- package/dist/components/data/KapiTableToolbar.d.ts +37 -0
- package/dist/components/data/KapiTableToolbar.js +237 -0
- package/dist/components/data/chartFrame.d.ts +1 -1
- package/dist/components/data/chartFrame.js +54 -55
- package/dist/components/data/datasetSelectionLogic.d.ts +7 -4
- package/dist/components/data/datasetSelectionLogic.js +3 -2
- package/dist/components/data/eventCalendarLogic.d.ts +7 -3
- package/dist/components/data/eventCalendarLogic.js +5 -4
- package/dist/components/data/index.d.ts +108 -30
- package/dist/components/data/rowClickLogic.d.ts +51 -0
- package/dist/components/data/rowClickLogic.js +56 -0
- package/dist/components/data/tableCells.d.ts +38 -0
- package/dist/components/data/tableCells.js +121 -0
- package/dist/components/data/tableHeaderMenu.d.ts +21 -0
- package/dist/components/data/tableHeaderMenu.js +45 -0
- package/dist/components/data/tableLabels.d.ts +76 -0
- package/dist/components/data/tableLabels.js +48 -0
- package/dist/components/data/tableLogic.d.ts +119 -21
- package/dist/components/data/tableLogic.js +121 -84
- package/dist/components/data/tablePaginationLogic.d.ts +15 -0
- package/dist/components/data/tablePaginationLogic.js +15 -0
- package/dist/components/data/tableResizeLogic.d.ts +12 -4
- package/dist/components/data/tableResizeLogic.js +14 -10
- package/dist/components/data/tableTypes.d.ts +509 -0
- package/dist/components/data/useColumnResize.d.ts +28 -0
- package/dist/components/data/useColumnResize.js +116 -0
- package/dist/components/data/useRowKeyWarning.d.ts +10 -0
- package/dist/components/data/useRowKeyWarning.js +29 -0
- package/dist/components/data/useTableEdges.d.ts +15 -0
- package/dist/components/data/useTableEdges.js +26 -0
- package/dist/components/data/useTableSelection.d.ts +51 -0
- package/dist/components/data/useTableSelection.js +80 -0
- package/dist/components/display/KapiAnnotation.d.ts +10 -9
- package/dist/components/display/KapiAnnotation.js +98 -101
- package/dist/components/display/KapiAvatar.d.ts +19 -13
- package/dist/components/display/KapiAvatar.js +26 -24
- package/dist/components/display/KapiAvatarGroup.d.ts +26 -10
- package/dist/components/display/KapiAvatarGroup.js +26 -24
- package/dist/components/display/KapiBadge.d.ts +23 -12
- package/dist/components/display/KapiBadge.js +20 -15
- package/dist/components/display/KapiComment.d.ts +1 -2
- package/dist/components/display/KapiComment.js +3 -2
- package/dist/components/display/KapiCommentComposer.d.ts +2 -3
- package/dist/components/display/KapiCommentComposer.js +3 -2
- package/dist/components/display/KapiDescriptionList.d.ts +6 -5
- package/dist/components/display/KapiDescriptionList.js +1 -0
- package/dist/components/display/KapiFileItem.d.ts +2 -3
- package/dist/components/display/KapiFileItem.js +3 -2
- package/dist/components/display/KapiFileViewer.d.ts +8 -9
- package/dist/components/display/KapiFileViewer.js +1 -0
- package/dist/components/display/KapiIconTile.d.ts +7 -6
- package/dist/components/display/KapiIconTile.js +1 -0
- package/dist/components/display/KapiStat.d.ts +9 -8
- package/dist/components/display/KapiStat.js +1 -0
- package/dist/components/display/KapiTag.d.ts +5 -4
- package/dist/components/display/KapiTag.js +1 -0
- package/dist/components/display/KapiTimeline.d.ts +6 -5
- package/dist/components/display/KapiTimeline.js +1 -0
- package/dist/components/display/KapiTruncate.d.ts +1 -2
- package/dist/components/display/KapiTruncate.js +1 -0
- package/dist/components/display/fileItemLogic.d.ts +1 -1
- package/dist/components/display/iconTileLogic.d.ts +2 -2
- package/dist/components/display/index.d.ts +86 -44
- package/dist/components/display/statLogic.d.ts +1 -1
- package/dist/components/feedback/KapiAlert.d.ts +30 -7
- package/dist/components/feedback/KapiAlert.js +47 -23
- package/dist/components/feedback/KapiBulkBar.d.ts +11 -6
- package/dist/components/feedback/KapiBulkBar.js +6 -3
- package/dist/components/feedback/KapiCountdown.d.ts +15 -12
- package/dist/components/feedback/KapiCountdown.js +17 -16
- package/dist/components/feedback/KapiEmpty.d.ts +3 -2
- package/dist/components/feedback/KapiEmpty.js +1 -0
- package/dist/components/feedback/KapiFab.d.ts +39 -9
- package/dist/components/feedback/KapiFab.js +172 -91
- package/dist/components/feedback/KapiOfflineBanner.d.ts +7 -6
- package/dist/components/feedback/KapiOfflineBanner.js +1 -0
- package/dist/components/feedback/KapiProgress.d.ts +8 -7
- package/dist/components/feedback/KapiProgress.js +1 -0
- package/dist/components/feedback/KapiSkeleton.d.ts +6 -4
- package/dist/components/feedback/KapiToastContainer.d.ts +16 -8
- package/dist/components/feedback/KapiToastContainer.js +118 -63
- package/dist/components/feedback/KapiTour.d.ts +6 -7
- package/dist/components/feedback/KapiTour.js +91 -86
- package/dist/components/feedback/KapiUnsavedBar.d.ts +15 -8
- package/dist/components/feedback/KapiUnsavedBar.js +8 -4
- package/dist/components/feedback/bulkBarLogic.d.ts +6 -1
- package/dist/components/feedback/bulkBarLogic.js +7 -4
- package/dist/components/feedback/countdownLogic.d.ts +19 -11
- package/dist/components/feedback/fabLogic.d.ts +28 -0
- package/dist/components/feedback/fabLogic.js +18 -2
- package/dist/components/feedback/index.d.ts +65 -33
- package/dist/components/feedback/toastLayer.d.ts +18 -0
- package/dist/components/feedback/toastLayer.js +22 -0
- package/dist/components/feedback/toastStore.d.ts +97 -9
- package/dist/components/feedback/toastStore.js +132 -29
- package/dist/components/feedback/tourLogic.d.ts +4 -16
- package/dist/components/feedback/unsavedBarLogic.d.ts +7 -1
- package/dist/components/feedback/unsavedBarLogic.js +9 -5
- package/dist/components/inputs/KapiAutocomplete.d.ts +73 -48
- package/dist/components/inputs/KapiAutocomplete.js +128 -146
- package/dist/components/inputs/KapiButton.d.ts +30 -11
- package/dist/components/inputs/KapiButton.js +34 -27
- package/dist/components/inputs/KapiCalendar.d.ts +14 -8
- package/dist/components/inputs/KapiCalendar.js +36 -34
- package/dist/components/inputs/KapiCalendarGrid.d.ts +11 -6
- package/dist/components/inputs/KapiCalendarGrid.js +44 -38
- package/dist/components/inputs/KapiCheckCard.d.ts +2 -3
- package/dist/components/inputs/KapiCheckCard.js +1 -0
- package/dist/components/inputs/KapiCheckbox.d.ts +1 -1
- package/dist/components/inputs/KapiChecklist.d.ts +77 -0
- package/dist/components/inputs/KapiChecklist.js +175 -0
- package/dist/components/inputs/KapiDatePicker.d.ts +60 -22
- package/dist/components/inputs/KapiDatePicker.js +122 -100
- package/dist/components/inputs/KapiDateRangePicker.d.ts +44 -10
- package/dist/components/inputs/KapiDateRangePicker.js +148 -120
- package/dist/components/inputs/KapiFacetedSearch.d.ts +7 -6
- package/dist/components/inputs/KapiFacetedSearch.js +130 -167
- package/dist/components/inputs/KapiField.d.ts +16 -8
- package/dist/components/inputs/KapiField.js +44 -43
- package/dist/components/inputs/KapiFileUpload.d.ts +15 -16
- package/dist/components/inputs/KapiFileUpload.js +1 -0
- package/dist/components/inputs/KapiIconButton.d.ts +1 -1
- package/dist/components/inputs/KapiInput.d.ts +13 -12
- package/dist/components/inputs/KapiInput.js +70 -70
- package/dist/components/inputs/KapiInputGroup.d.ts +13 -10
- package/dist/components/inputs/KapiInputGroup.js +21 -19
- package/dist/components/inputs/KapiMaskedInput.d.ts +15 -15
- package/dist/components/inputs/KapiMaskedInput.js +51 -48
- package/dist/components/inputs/KapiNumberStepper.d.ts +30 -18
- package/dist/components/inputs/KapiNumberStepper.js +80 -65
- package/dist/components/inputs/KapiRadio.d.ts +1 -1
- package/dist/components/inputs/KapiRating.d.ts +40 -23
- package/dist/components/inputs/KapiRating.js +80 -65
- package/dist/components/inputs/KapiSearchChip.d.ts +9 -8
- package/dist/components/inputs/KapiSearchChip.js +46 -42
- package/dist/components/inputs/KapiSegmented.d.ts +49 -16
- package/dist/components/inputs/KapiSegmented.js +72 -51
- package/dist/components/inputs/KapiSelect.d.ts +120 -39
- package/dist/components/inputs/KapiSelect.js +309 -379
- package/dist/components/inputs/KapiSelectMenu.d.ts +38 -0
- package/dist/components/inputs/KapiSelectMenu.js +173 -0
- package/dist/components/inputs/KapiSlider.d.ts +37 -19
- package/dist/components/inputs/KapiSlider.js +67 -54
- package/dist/components/inputs/KapiSwitch.d.ts +13 -7
- package/dist/components/inputs/KapiSwitch.js +30 -21
- package/dist/components/inputs/KapiTagInput.d.ts +35 -24
- package/dist/components/inputs/KapiTagInput.js +77 -66
- package/dist/components/inputs/KapiTextarea.d.ts +12 -11
- package/dist/components/inputs/KapiTextarea.js +71 -49
- package/dist/components/inputs/asyncSelectLogic.d.ts +8 -4
- package/dist/components/inputs/asyncSelectLogic.js +13 -12
- package/dist/components/inputs/autocompleteLogic.d.ts +2 -29
- package/dist/components/inputs/autocompleteLogic.js +6 -6
- package/dist/components/inputs/checkControl.d.ts +3 -3
- package/dist/components/inputs/checkControl.js +2 -0
- package/dist/components/inputs/checklistLogic.d.ts +33 -0
- package/dist/components/inputs/checklistLogic.js +16 -0
- package/dist/components/inputs/datePickerLogic.d.ts +63 -13
- package/dist/components/inputs/datePickerLogic.js +119 -50
- package/dist/components/inputs/dateRangeLogic.d.ts +8 -3
- package/dist/components/inputs/dateRangeLogic.js +49 -43
- package/dist/components/inputs/facetedSearchLogic.d.ts +1 -3
- package/dist/components/inputs/facetedSearchLogic.js +4 -5
- package/dist/components/inputs/fieldLogic.d.ts +37 -1
- package/dist/components/inputs/fieldLogic.js +36 -19
- package/dist/components/inputs/index.d.ts +118 -57
- package/dist/components/inputs/inputGroupLogic.d.ts +1 -1
- package/dist/components/inputs/inputLogic.d.ts +1 -1
- package/dist/components/inputs/maskLogic.d.ts +3 -2
- package/dist/components/inputs/maskLogic.js +12 -10
- package/dist/components/inputs/ownField.d.ts +37 -0
- package/dist/components/inputs/ownField.js +37 -0
- package/dist/components/inputs/segmentedLogic.d.ts +4 -3
- package/dist/components/inputs/segmentedLogic.js +7 -11
- package/dist/components/inputs/selectKeyLogic.d.ts +45 -0
- package/dist/components/inputs/selectKeyLogic.js +52 -0
- package/dist/components/inputs/selectLogic.d.ts +79 -22
- package/dist/components/inputs/selectLogic.js +87 -51
- package/dist/components/inputs/useCalendarFocus.js +13 -12
- package/dist/components/inputs/useSelectCreate.d.ts +22 -0
- package/dist/components/inputs/useSelectCreate.js +35 -0
- package/dist/components/inputs/useSelectSource.d.ts +39 -0
- package/dist/components/inputs/useSelectSource.js +42 -0
- package/dist/components/layout/KapiAccessCard.d.ts +11 -12
- package/dist/components/layout/KapiAccessCard.js +41 -37
- package/dist/components/layout/KapiAccountMenu.d.ts +23 -8
- package/dist/components/layout/KapiAccountMenu.js +124 -104
- package/dist/components/layout/KapiCard.d.ts +14 -7
- package/dist/components/layout/KapiCard.js +1 -0
- package/dist/components/layout/KapiCluster.d.ts +8 -7
- package/dist/components/layout/KapiCluster.js +1 -0
- package/dist/components/layout/KapiContextSlot.d.ts +10 -11
- package/dist/components/layout/KapiContextSlot.js +97 -92
- package/dist/components/layout/KapiDivider.d.ts +3 -2
- package/dist/components/layout/KapiDivider.js +1 -0
- package/dist/components/layout/KapiGrid.d.ts +8 -7
- package/dist/components/layout/KapiGrid.js +1 -0
- package/dist/components/layout/KapiMasonry.d.ts +1 -2
- package/dist/components/layout/KapiMasonry.js +1 -0
- package/dist/components/layout/KapiNotificationBell.d.ts +14 -15
- package/dist/components/layout/KapiNotificationBell.js +113 -116
- package/dist/components/layout/KapiPageHeader.d.ts +14 -6
- package/dist/components/layout/KapiPageHeader.js +99 -87
- package/dist/components/layout/KapiPanelParts.d.ts +11 -7
- package/dist/components/layout/KapiPanelParts.js +1 -0
- package/dist/components/layout/KapiRail.d.ts +17 -11
- package/dist/components/layout/KapiRail.js +96 -83
- package/dist/components/layout/KapiRailAccount.d.ts +26 -0
- package/dist/components/layout/KapiRailAccount.js +37 -0
- package/dist/components/layout/KapiRoot.d.ts +85 -0
- package/dist/components/layout/KapiRoot.js +58 -0
- package/dist/components/layout/KapiScrollArea.d.ts +2 -3
- package/dist/components/layout/KapiScrollArea.js +1 -0
- package/dist/components/layout/KapiShell.d.ts +15 -10
- package/dist/components/layout/KapiShell.js +51 -46
- package/dist/components/layout/KapiStack.d.ts +6 -5
- package/dist/components/layout/KapiStack.js +1 -0
- package/dist/components/layout/KapiThemeScript.d.ts +23 -0
- package/dist/components/layout/KapiThemeScript.js +13 -0
- package/dist/components/layout/accessCardLogic.d.ts +2 -2
- package/dist/components/layout/index.d.ts +55 -35
- package/dist/components/layout/notificationBellLogic.d.ts +1 -1
- package/dist/components/layout/railContext.d.ts +6 -0
- package/dist/components/layout/railContext.js +6 -0
- package/dist/components/layout/railLogic.d.ts +14 -14
- package/dist/components/layout/useMasonrySpans.js +31 -30
- package/dist/components/layout/useRailOverflow.js +30 -29
- package/dist/components/locale/KapiLocaleProvider.d.ts +33 -4
- package/dist/components/locale/KapiLocaleProvider.js +28 -17
- package/dist/components/locale/index.d.ts +7 -5
- package/dist/components/locale/labelRegistry.d.ts +67 -59
- package/dist/components/locale/localeLogic.d.ts +20 -0
- package/dist/components/locale/localeLogic.js +30 -0
- package/dist/components/navigation/CtxSlidingList.d.ts +5 -3
- package/dist/components/navigation/CtxSlidingList.js +15 -14
- package/dist/components/navigation/KapiAccordion.d.ts +9 -8
- package/dist/components/navigation/KapiAccordion.js +29 -29
- package/dist/components/navigation/KapiBreadcrumb.d.ts +4 -5
- package/dist/components/navigation/KapiBreadcrumb.js +1 -0
- package/dist/components/navigation/KapiCollapsiblePanel.d.ts +22 -16
- package/dist/components/navigation/KapiCollapsiblePanel.js +46 -43
- package/dist/components/navigation/KapiContextPanel.d.ts +31 -32
- package/dist/components/navigation/KapiContextPanel.js +119 -108
- package/dist/components/navigation/KapiFilterChips.d.ts +15 -10
- package/dist/components/navigation/KapiFilterChips.js +27 -22
- package/dist/components/navigation/KapiNavBadge.d.ts +7 -5
- package/dist/components/navigation/KapiNavBadge.js +12 -10
- package/dist/components/navigation/KapiPanelGroup.d.ts +22 -23
- package/dist/components/navigation/KapiPanelGroup.js +62 -60
- package/dist/components/navigation/KapiSteps.d.ts +4 -5
- package/dist/components/navigation/KapiSteps.js +1 -0
- package/dist/components/navigation/KapiTabs.d.ts +34 -16
- package/dist/components/navigation/KapiTabs.js +58 -49
- package/dist/components/navigation/KapiTree.d.ts +58 -18
- package/dist/components/navigation/KapiTree.js +135 -83
- package/dist/components/navigation/KapiWizard.d.ts +21 -11
- package/dist/components/navigation/KapiWizard.js +79 -72
- package/dist/components/navigation/MiniNavItem.d.ts +3 -4
- package/dist/components/navigation/MiniNavItem.js +1 -0
- package/dist/components/navigation/breadcrumbLogic.d.ts +1 -1
- package/dist/components/navigation/contextPanelLogic.d.ts +9 -5
- package/dist/components/navigation/filterChipsLogic.d.ts +13 -7
- package/dist/components/navigation/filterChipsLogic.js +12 -14
- package/dist/components/navigation/index.d.ts +75 -39
- package/dist/components/navigation/panelGroupLogic.d.ts +5 -1
- package/dist/components/navigation/panelMini.d.ts +1 -1
- package/dist/components/navigation/panelMini.js +1 -1
- package/dist/components/navigation/tabsLogic.d.ts +3 -2
- package/dist/components/navigation/tabsLogic.js +8 -12
- package/dist/components/navigation/treeLogic.d.ts +5 -5
- package/dist/components/navigation/treeLogic.js +3 -9
- package/dist/components/overlays/KapiCanvasForm.d.ts +8 -8
- package/dist/components/overlays/KapiCanvasForm.js +1 -1
- package/dist/components/overlays/KapiCommandPalette.d.ts +14 -10
- package/dist/components/overlays/KapiCommandPalette.js +70 -67
- package/dist/components/overlays/KapiConfirm.d.ts +16 -11
- package/dist/components/overlays/KapiConfirm.js +47 -44
- package/dist/components/overlays/KapiContextMenu.d.ts +77 -16
- package/dist/components/overlays/KapiContextMenu.js +55 -70
- package/dist/components/overlays/KapiDialogHost.d.ts +5 -7
- package/dist/components/overlays/KapiDialogHost.js +67 -64
- package/dist/components/overlays/KapiDropdown.d.ts +43 -21
- package/dist/components/overlays/KapiDropdown.js +31 -80
- package/dist/components/overlays/KapiLoading.d.ts +10 -5
- package/dist/components/overlays/KapiLoading.js +28 -25
- package/dist/components/overlays/KapiMenuButton.d.ts +48 -17
- package/dist/components/overlays/KapiMenuButton.js +73 -95
- package/dist/components/overlays/KapiModal.d.ts +16 -8
- package/dist/components/overlays/KapiModal.js +72 -65
- package/dist/components/overlays/KapiOffcanvas.d.ts +23 -13
- package/dist/components/overlays/KapiOffcanvas.js +159 -143
- package/dist/components/overlays/KapiOffcanvasStack.d.ts +4 -4
- package/dist/components/overlays/KapiOffcanvasStack.js +63 -52
- package/dist/components/overlays/KapiPhotoView.d.ts +7 -8
- package/dist/components/overlays/KapiPhotoView.js +67 -64
- package/dist/components/overlays/KapiPopover.d.ts +18 -17
- package/dist/components/overlays/KapiPopover.js +32 -42
- package/dist/components/overlays/KapiShapeSheet.d.ts +18 -12
- package/dist/components/overlays/KapiShapeSheet.js +51 -45
- package/dist/components/overlays/KapiSplitModal.d.ts +12 -11
- package/dist/components/overlays/KapiSplitModal.js +78 -68
- package/dist/components/overlays/KapiTooltip.d.ts +20 -10
- package/dist/components/overlays/KapiTooltip.js +91 -68
- package/dist/components/overlays/commandPaletteLogic.d.ts +2 -4
- package/dist/components/overlays/commandPaletteLogic.js +2 -2
- package/dist/components/overlays/dialogStore.d.ts +41 -20
- package/dist/components/overlays/dialogStore.js +4 -4
- package/dist/components/overlays/dialogUtils.d.ts +22 -0
- package/dist/components/overlays/dialogUtils.js +6 -2
- package/dist/components/overlays/index.d.ts +48 -38
- package/dist/components/overlays/menuButtonLogic.d.ts +33 -31
- package/dist/components/overlays/menuButtonLogic.js +9 -3
- package/dist/components/overlays/menuKeyboardLogic.d.ts +42 -8
- package/dist/components/overlays/menuKeyboardLogic.js +46 -15
- package/dist/components/overlays/menuList.d.ts +91 -0
- package/dist/components/overlays/menuList.js +223 -0
- package/dist/components/overlays/modalStack.d.ts +21 -0
- package/dist/components/overlays/modalStack.js +23 -0
- package/dist/components/overlays/offcanvasCompanion.d.ts +1 -1
- package/dist/components/overlays/offcanvasResize.d.ts +1 -1
- package/dist/components/overlays/offcanvasSide.d.ts +12 -1
- package/dist/components/overlays/offcanvasSide.js +4 -4
- package/dist/components/overlays/popoverLogic.d.ts +12 -12
- package/dist/components/overlays/useExitPresence.js +23 -22
- package/dist/components/overlays/useNativeDialog.d.ts +15 -4
- package/dist/components/overlays/useNativeDialog.js +52 -33
- package/dist/components/rootProps.d.ts +6 -4
- package/dist/components/tone.d.ts +55 -0
- package/dist/components/tone.js +92 -0
- package/dist/css/base.css +1 -0
- package/dist/css/components/chat/chat.css +1 -0
- package/dist/css/components/data/KapiBarChart.css +1 -0
- package/dist/css/components/data/KapiEventCalendar.css +1 -0
- package/dist/css/components/data/KapiHeatmap.css +1 -0
- package/dist/css/components/data/KapiLineChart.css +1 -0
- package/dist/css/components/data/KapiSparkline.css +1 -0
- package/dist/css/components/data/KapiTable.css +1 -0
- package/dist/css/components/data/KapiTableFilter.css +1 -0
- package/dist/css/components/display/KapiAnnotation.css +1 -0
- package/dist/css/components/display/KapiComment.css +1 -0
- package/dist/css/components/display/KapiFileItem.css +1 -0
- package/dist/css/components/display/KapiFileViewer.css +1 -0
- package/dist/css/components/display/KapiTruncate.css +1 -0
- package/dist/css/components/display/display.css +1 -0
- package/dist/css/components/feedback/KapiBulkBar.css +1 -0
- package/dist/css/components/feedback/KapiOfflineBanner.css +1 -0
- package/dist/css/components/feedback/KapiUnsavedBar.css +1 -0
- package/dist/css/components/feedback/feedback.css +1 -0
- package/dist/css/components/inputs/KapiAutocomplete.css +1 -0
- package/dist/css/components/inputs/KapiButton.css +1 -0
- package/dist/css/components/inputs/KapiChecklist.css +1 -0
- package/dist/css/components/inputs/KapiDatePicker.css +1 -0
- package/dist/css/components/inputs/KapiFacetedSearch.css +1 -0
- package/dist/css/components/inputs/KapiFileUpload.css +1 -0
- package/dist/css/components/inputs/KapiInputGroup.css +1 -0
- package/dist/css/components/inputs/KapiSearchChip.css +1 -0
- package/dist/css/components/inputs/KapiSelect.css +1 -0
- package/dist/css/components/inputs/KapiTagInput.css +1 -0
- package/dist/css/components/inputs/checkControl.css +1 -0
- package/dist/css/components/inputs/inputsExtra.css +1 -0
- package/dist/css/components/layout/KapiAccessCard.css +1 -0
- package/dist/css/components/layout/KapiAccountMenu.css +1 -0
- package/dist/css/components/layout/KapiCard.css +1 -0
- package/dist/css/components/layout/KapiDivider.css +1 -0
- package/dist/css/components/layout/KapiMasonry.css +1 -0
- package/dist/css/components/layout/KapiNotificationBell.css +1 -0
- package/dist/css/components/layout/KapiPageHeader.css +1 -0
- package/dist/css/components/layout/KapiPanelParts.css +1 -0
- package/dist/css/components/layout/KapiRail.css +1 -0
- package/dist/css/components/layout/KapiRoot.css +1 -0
- package/dist/css/components/layout/KapiScrollArea.css +1 -0
- package/dist/css/components/layout/layout-primitives.css +1 -0
- package/dist/css/components/navigation/KapiFilterChips.css +1 -0
- package/dist/css/components/navigation/KapiNavBadge.css +1 -0
- package/dist/css/components/navigation/KapiSteps.css +1 -0
- package/dist/css/components/navigation/navigation.css +1 -0
- package/dist/css/components/overlays/KapiCommandPalette.css +1 -0
- package/dist/css/components/overlays/KapiConfirm.css +1 -0
- package/dist/css/components/overlays/KapiModal.css +1 -0
- package/dist/css/components/overlays/KapiOffcanvas.css +1 -0
- package/dist/css/components/overlays/KapiPopover.css +1 -0
- package/dist/css/components/overlays/KapiSplitModal.css +1 -0
- package/dist/css/components/overlays/overlays.css +1 -0
- package/dist/css/none.js +1 -0
- package/dist/hooks/dataColorLogic.d.ts +1 -1
- package/dist/hooks/dateFormat.js +13 -13
- package/dist/hooks/directionLogic.d.ts +32 -0
- package/dist/hooks/directionLogic.js +7 -0
- package/dist/hooks/fieldErrorsLogic.d.ts +35 -0
- package/dist/hooks/fieldErrorsLogic.js +13 -0
- package/dist/hooks/focusLogic.js +8 -7
- package/dist/hooks/hotkeyLogic.d.ts +5 -1
- package/dist/hooks/hotkeyLogic.js +2 -2
- package/dist/hooks/index.d.ts +122 -57
- package/dist/hooks/kapiRoot.d.ts +11 -4
- package/dist/hooks/kapiRoot.js +18 -5
- package/dist/hooks/mergeRefs.d.ts +9 -0
- package/dist/hooks/mergeRefs.js +15 -0
- package/dist/hooks/onlineStatusLogic.d.ts +4 -4
- package/dist/hooks/ownerDocument.d.ts +26 -0
- package/dist/hooks/ownerDocument.js +24 -0
- package/dist/hooks/portalRoot.d.ts +19 -0
- package/dist/hooks/portalRoot.js +10 -0
- package/dist/hooks/rafThrottle.d.ts +12 -4
- package/dist/hooks/rafThrottle.js +43 -10
- package/dist/hooks/rangeSelectLogic.d.ts +47 -0
- package/dist/hooks/rangeSelectLogic.js +29 -0
- package/dist/hooks/recentLogic.d.ts +3 -3
- package/dist/hooks/reducedMotion.js +11 -3
- package/dist/hooks/rightClick.d.ts +5 -1
- package/dist/hooks/rightClick.js +16 -15
- package/dist/hooks/scrollCollapseLogic.d.ts +2 -2
- package/dist/hooks/seriesPaletteLogic.d.ts +1 -1
- package/dist/hooks/shallowStable.d.ts +12 -0
- package/dist/hooks/shallowStable.js +17 -0
- package/dist/hooks/slidingIndicatorLogic.d.ts +4 -0
- package/dist/hooks/themeColorsLogic.d.ts +1 -1
- package/dist/hooks/themeDeriveLogic.d.ts +1 -2
- package/dist/hooks/themeRadiiLogic.d.ts +1 -1
- package/dist/hooks/themeScript.d.ts +10 -0
- package/dist/hooks/themeScript.js +5 -0
- package/dist/hooks/useAsyncLoader.d.ts +51 -0
- package/dist/hooks/useAsyncLoader.js +77 -0
- package/dist/hooks/useAsyncTasks.d.ts +19 -0
- package/dist/hooks/useAsyncTasks.js +37 -0
- package/dist/hooks/useBottomBarInset.d.ts +7 -0
- package/dist/hooks/useBottomBarInset.js +25 -0
- package/dist/hooks/useControllableState.d.ts +21 -0
- package/dist/hooks/useControllableState.js +17 -0
- package/dist/hooks/useDismiss.d.ts +40 -0
- package/dist/hooks/useDismiss.js +42 -0
- package/dist/hooks/useDragScroll.d.ts +10 -0
- package/dist/hooks/useDragScroll.js +36 -25
- package/dist/hooks/useFieldErrors.d.ts +39 -0
- package/dist/hooks/useFieldErrors.js +29 -0
- package/dist/hooks/useFocusReturn.d.ts +25 -0
- package/dist/hooks/useFocusReturn.js +31 -0
- package/dist/hooks/useGrowOrigin.d.ts +2 -2
- package/dist/hooks/useHotkey.d.ts +3 -3
- package/dist/hooks/useHydrated.d.ts +2 -0
- package/dist/hooks/useHydrated.js +6 -0
- package/dist/hooks/useKapiTheme.d.ts +3 -2
- package/dist/hooks/useKapiTheme.js +111 -68
- package/dist/hooks/useMediaQuery.d.ts +5 -1
- package/dist/hooks/useMediaQuery.js +5 -9
- package/dist/hooks/useOnlineStatus.d.ts +1 -1
- package/dist/hooks/useOutsidePress.d.ts +9 -0
- package/dist/hooks/useOutsidePress.js +11 -0
- package/dist/hooks/usePersistentState.d.ts +2 -2
- package/dist/hooks/usePersistentState.js +21 -21
- package/dist/hooks/usePlacement.d.ts +6 -5
- package/dist/hooks/usePlacement.js +68 -65
- package/dist/hooks/useRangeSelect.d.ts +24 -0
- package/dist/hooks/useRangeSelect.js +26 -0
- package/dist/hooks/useRecent.d.ts +3 -3
- package/dist/hooks/useScrollCollapse.d.ts +1 -1
- package/dist/hooks/useScrollEdges.d.ts +9 -8
- package/dist/hooks/useScrollEdges.js +62 -57
- package/dist/hooks/useSlidingIndicator.d.ts +1 -1
- package/dist/hooks/useSlidingIndicator.js +38 -33
- package/dist/hooks/useSubmitDraft.js +18 -19
- package/dist/hooks/useTypeahead.d.ts +9 -0
- package/dist/hooks/useTypeahead.js +20 -0
- package/dist/hooks/useUnsavedGuard.d.ts +7 -4
- package/dist/hooks/useUnsavedGuard.js +1 -0
- package/dist/hooks/useVirtualList.d.ts +36 -0
- package/dist/hooks/useVirtualList.js +126 -0
- package/dist/hooks/viewportInsetLogic.d.ts +37 -0
- package/dist/hooks/viewportInsetLogic.js +20 -0
- package/dist/hooks/virtualListLogic.d.ts +88 -0
- package/dist/hooks/virtualListLogic.js +80 -0
- package/dist/index.d.ts +13 -13
- package/dist/index.js +196 -179
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/package.json +14 -6
|
@@ -5,7 +5,7 @@ export type KapiIconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
5
5
|
/** Ícono (lucide-react). Si falta, muestra el glifo `⋯` (acciones de fila). */
|
|
6
6
|
icon?: ReactNode;
|
|
7
7
|
/** Ref al `<button>` nativo. */
|
|
8
|
-
ref?: Ref<HTMLButtonElement
|
|
8
|
+
ref?: Ref<HTMLButtonElement> | undefined;
|
|
9
9
|
};
|
|
10
10
|
/** Clases del botón. Pura y exportada para testear. */
|
|
11
11
|
export declare const iconButtonClasses: (className?: string) => string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { type InputHTMLAttributes, type ReactElement, type ReactNode, type Ref, type TextareaHTMLAttributes } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import type { KapiLabelsOverride } from "../labelsLogic";
|
|
4
|
-
import "./inputsExtra.css";
|
|
2
|
+
import type { KapiFieldStatus } from "./KapiField.js";
|
|
3
|
+
import type { KapiLabelsOverride } from "../labelsLogic.js";
|
|
5
4
|
export type KapiInputSize = "sm" | "md" | "lg";
|
|
6
5
|
/** Props propias del design system, comunes a input y textarea. */
|
|
7
6
|
type KapiInputOwnProps = {
|
|
8
7
|
/** Escala de control compartida con botones y selects. */
|
|
9
8
|
size?: KapiInputSize | undefined;
|
|
10
|
-
/**
|
|
9
|
+
/** Marca el campo inválido: borde rojo, `aria-invalid` y la ayuda en color de error. Gana sobre `status`. */
|
|
10
|
+
invalid?: boolean | undefined;
|
|
11
|
+
/** Validación no erróneo: borde verde (`ok`) u ocupado (`pending`). El valor `err` está deprecado: usa `invalid`. */
|
|
11
12
|
status?: KapiFieldStatus | undefined;
|
|
12
13
|
/** Angosto y centrado (notas, cantidades en celdas). */
|
|
13
14
|
num?: boolean | undefined;
|
|
@@ -15,7 +16,7 @@ type KapiInputOwnProps = {
|
|
|
15
16
|
label?: ReactNode | undefined;
|
|
16
17
|
/** Agrega el asterisco de obligatorio a la etiqueta. */
|
|
17
18
|
required?: boolean | undefined;
|
|
18
|
-
/** Ayuda / mensaje de error bajo el control (toma el color de `status`). */
|
|
19
|
+
/** Ayuda / mensaje de error bajo el control (toma el color de `invalid` o `status`). */
|
|
19
20
|
help?: ReactNode | undefined;
|
|
20
21
|
/** Clase del `KapiField` contenedor (si lo hay). `className` va al control. */
|
|
21
22
|
fieldClassName?: string | undefined;
|
|
@@ -40,9 +41,9 @@ type KapiInputAdornmentProps = {
|
|
|
40
41
|
/** Texto corto después del valor (`kg`, `ARS`). Lo leen los lectores (se suma a `aria-describedby`). */
|
|
41
42
|
suffix?: ReactNode;
|
|
42
43
|
/** Botón para vaciar el campo; aparece sólo con valor. Dispara `onChange` con `""` y deja el foco en el input. */
|
|
43
|
-
clearable?: boolean;
|
|
44
|
+
clearable?: boolean | undefined;
|
|
44
45
|
/** Avisa que se limpió (además del `onChange`). */
|
|
45
|
-
onClear?: () => void;
|
|
46
|
+
onClear?: (() => void) | undefined;
|
|
46
47
|
/**
|
|
47
48
|
* Atajo de teclado que enfoca el campo (`"/"`, `"Control+K"`), dibujado como `<kbd>` al final mientras el
|
|
48
49
|
* campo está vacío y anunciado con `aria-keyshortcuts`. Sólo presentación: la app registra la tecla
|
|
@@ -57,18 +58,18 @@ type KapiInputAdornmentProps = {
|
|
|
57
58
|
* Con adornos, `className` va a la caja (es la que se ve y ocupa el lugar); sin adornos, al `<input>`.
|
|
58
59
|
*/
|
|
59
60
|
export type KapiInputProps = KapiInputOwnProps & KapiInputAdornmentProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
|
|
60
|
-
multiline?: false;
|
|
61
|
+
multiline?: false | undefined;
|
|
61
62
|
/** Ref al `<input>`. */
|
|
62
|
-
ref?: Ref<HTMLInputElement
|
|
63
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
63
64
|
};
|
|
64
65
|
/** El textarea no lleva adornos. */
|
|
65
66
|
export type KapiTextareaProps = KapiInputOwnProps & {
|
|
66
|
-
[K in keyof KapiInputAdornmentProps]?: never;
|
|
67
|
+
[K in keyof KapiInputAdornmentProps]?: never | undefined;
|
|
67
68
|
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "prefix"> & {
|
|
68
69
|
/** Renderiza un `<textarea>` en vez de un `<input>`. */
|
|
69
70
|
multiline: true;
|
|
70
71
|
/** Ref al `<textarea>`. */
|
|
71
|
-
ref?: Ref<HTMLTextAreaElement
|
|
72
|
+
ref?: Ref<HTMLTextAreaElement> | undefined;
|
|
72
73
|
};
|
|
73
74
|
/** Clases del control. Pura y exportada: es lo que se testea (no el markup). */
|
|
74
75
|
export declare const inputClasses: ({ size, status, num, className }?: {
|
|
@@ -80,7 +81,7 @@ export declare const inputClasses: ({ size, status, num, className }?: {
|
|
|
80
81
|
type KapiInputComponent = {
|
|
81
82
|
(props: KapiInputProps): ReactElement | null;
|
|
82
83
|
(props: KapiTextareaProps): ReactElement | null;
|
|
83
|
-
displayName?: string;
|
|
84
|
+
displayName?: string | undefined;
|
|
84
85
|
};
|
|
85
86
|
/**
|
|
86
87
|
* Campo de texto (`.kapi-input`). `<input>` por defecto; con `multiline` es un `<textarea>`.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import "#kapi-css/components/inputs/inputsExtra.css";
|
|
3
|
+
import { fieldControlProps as e, joinIds as t, resolveValidation as n } from "./fieldLogic.js";
|
|
4
|
+
import { useOwnField as r } from "./ownField.js";
|
|
4
5
|
import { resolveGroupSize as i } from "./inputGroupLogic.js";
|
|
5
|
-
import { useKapiInputGroup as
|
|
6
|
-
import { hasAdornments as
|
|
7
|
-
import { useLabels as
|
|
6
|
+
import { useKapiInputGroup as ee } from "./KapiInputGroup.js";
|
|
7
|
+
import { hasAdornments as te, hasValue as a, inputBoxClasses as ne, present as o } from "./inputLogic.js";
|
|
8
|
+
import { useLabels as re } from "../locale/KapiLocaleProvider.js";
|
|
8
9
|
/* empty css */
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { useId as
|
|
10
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
11
|
+
import { useId as l, useRef as u, useState as d } from "react";
|
|
11
12
|
import { X as f } from "lucide-react";
|
|
12
13
|
//#region src/components/inputs/KapiInput.tsx
|
|
13
14
|
var p = { clear: "Limpiar" }, m = (e) => {
|
|
@@ -19,104 +20,103 @@ var p = { clear: "Limpiar" }, m = (e) => {
|
|
|
19
20
|
t && `kapi-input--${t}`,
|
|
20
21
|
r
|
|
21
22
|
].filter(Boolean).join(" "), g = (g) => {
|
|
22
|
-
let { size: _, status: v, num: y, label: b, required: x, help: S, fieldClassName: C, className: w, multiline: T, id:
|
|
23
|
-
startIcon:
|
|
24
|
-
endIcon:
|
|
25
|
-
prefix:
|
|
26
|
-
suffix:
|
|
27
|
-
clearable:
|
|
28
|
-
shortcut:
|
|
29
|
-
}),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
let { size: ie, invalid: _, status: v, num: y, label: b, required: x, help: S, fieldClassName: C, className: w, multiline: T, id: ae, startIcon: E, endIcon: D, prefix: O, suffix: k, clearable: A, onClear: j, shortcut: M, labels: N, ref: P, ...F } = g, I = P, { invalid: L, status: R } = n(_, v), z = re("input", p, N), B = i(ie, ee()?.size), V = !T && te({
|
|
24
|
+
startIcon: E,
|
|
25
|
+
endIcon: D,
|
|
26
|
+
prefix: O,
|
|
27
|
+
suffix: k,
|
|
28
|
+
clearable: A,
|
|
29
|
+
shortcut: M
|
|
30
|
+
}), H = u(null), U = F, [W, G] = d(() => a(U.defaultValue)), K = r({
|
|
31
|
+
id: ae,
|
|
32
|
+
label: b,
|
|
33
|
+
help: S,
|
|
34
|
+
required: x,
|
|
35
|
+
invalid: _,
|
|
36
|
+
status: v,
|
|
37
|
+
fieldClassName: C
|
|
38
|
+
}), { controlId: q, helpId: J } = K, Y = l(), X = V && o(O) ? `${Y}-prefix` : void 0, Z = V && o(k) ? `${Y}-suffix` : void 0, Q = {
|
|
39
|
+
...e(K.outer, {
|
|
40
|
+
id: q,
|
|
41
|
+
describedBy: t(J, F["aria-describedby"], X, Z),
|
|
42
|
+
invalid: L
|
|
34
43
|
}),
|
|
35
44
|
required: x,
|
|
36
|
-
className:
|
|
37
|
-
size:
|
|
38
|
-
status:
|
|
45
|
+
className: V ? "kapi-inputbox__control" : h({
|
|
46
|
+
size: B,
|
|
47
|
+
status: R,
|
|
39
48
|
num: y,
|
|
40
49
|
className: w
|
|
41
50
|
})
|
|
42
51
|
}, oe = (e) => {
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
let e =
|
|
46
|
-
e && (m(e),
|
|
47
|
-
},
|
|
48
|
-
ref:
|
|
49
|
-
...
|
|
50
|
-
...
|
|
51
|
-
}) :
|
|
52
|
-
className:
|
|
53
|
-
size:
|
|
54
|
-
status:
|
|
55
|
-
disabled:
|
|
52
|
+
H.current = e, typeof I == "function" ? I(e) : I && (I.current = e);
|
|
53
|
+
}, $ = U.value === void 0 ? W : a(U.value), se = () => {
|
|
54
|
+
let e = H.current;
|
|
55
|
+
e && (m(e), G(!1), e.focus(), j?.());
|
|
56
|
+
}, ce = T ? /* @__PURE__ */ s("textarea", {
|
|
57
|
+
ref: I,
|
|
58
|
+
...F,
|
|
59
|
+
...Q
|
|
60
|
+
}) : V ? /* @__PURE__ */ c("div", {
|
|
61
|
+
className: ne({
|
|
62
|
+
size: B,
|
|
63
|
+
status: R,
|
|
64
|
+
disabled: U.disabled,
|
|
56
65
|
className: w
|
|
57
66
|
}),
|
|
58
67
|
onMouseDown: (e) => {
|
|
59
|
-
e.target ===
|
|
68
|
+
e.target === H.current || U.disabled || (e.preventDefault(), H.current?.focus());
|
|
60
69
|
},
|
|
61
70
|
children: [
|
|
62
|
-
|
|
71
|
+
o(E) && /* @__PURE__ */ s("span", {
|
|
63
72
|
className: "kapi-inputbox__icon",
|
|
64
73
|
"aria-hidden": "true",
|
|
65
|
-
children:
|
|
74
|
+
children: E
|
|
66
75
|
}),
|
|
67
|
-
|
|
68
|
-
id:
|
|
76
|
+
o(O) && /* @__PURE__ */ s("span", {
|
|
77
|
+
id: X,
|
|
69
78
|
className: "kapi-inputbox__affix",
|
|
70
|
-
children:
|
|
79
|
+
children: O
|
|
71
80
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ s("input", {
|
|
73
82
|
ref: oe,
|
|
74
|
-
...
|
|
75
|
-
...
|
|
76
|
-
"aria-keyshortcuts":
|
|
83
|
+
...U,
|
|
84
|
+
...Q,
|
|
85
|
+
"aria-keyshortcuts": U["aria-keyshortcuts"] ?? (M || void 0),
|
|
77
86
|
onChange: (e) => {
|
|
78
|
-
|
|
87
|
+
G(a(e.target.value)), U.onChange?.(e);
|
|
79
88
|
}
|
|
80
89
|
}),
|
|
81
|
-
|
|
82
|
-
id:
|
|
90
|
+
o(k) && /* @__PURE__ */ s("span", {
|
|
91
|
+
id: Z,
|
|
83
92
|
className: "kapi-inputbox__affix",
|
|
84
|
-
children:
|
|
93
|
+
children: k
|
|
85
94
|
}),
|
|
86
|
-
|
|
95
|
+
A && $ && !U.disabled && !U.readOnly && /* @__PURE__ */ s("button", {
|
|
87
96
|
type: "button",
|
|
88
97
|
tabIndex: -1,
|
|
89
98
|
className: "kapi-inputbox__clear",
|
|
90
|
-
"aria-label":
|
|
99
|
+
"aria-label": z.clear,
|
|
91
100
|
onClick: se,
|
|
92
|
-
children: /* @__PURE__ */
|
|
101
|
+
children: /* @__PURE__ */ s(f, { "aria-hidden": "true" })
|
|
93
102
|
}),
|
|
94
|
-
|
|
103
|
+
M && !$ && /* @__PURE__ */ s("kbd", {
|
|
95
104
|
className: "kapi-inputbox__kbd",
|
|
96
105
|
"aria-hidden": "true",
|
|
97
|
-
children:
|
|
106
|
+
children: M
|
|
98
107
|
}),
|
|
99
|
-
|
|
108
|
+
o(D) && /* @__PURE__ */ s("span", {
|
|
100
109
|
className: "kapi-inputbox__icon",
|
|
101
110
|
"aria-hidden": "true",
|
|
102
|
-
children:
|
|
111
|
+
children: D
|
|
103
112
|
})
|
|
104
113
|
]
|
|
105
|
-
}) : /* @__PURE__ */
|
|
106
|
-
ref:
|
|
107
|
-
...
|
|
108
|
-
...
|
|
114
|
+
}) : /* @__PURE__ */ s("input", {
|
|
115
|
+
ref: I,
|
|
116
|
+
...U,
|
|
117
|
+
...Q
|
|
109
118
|
});
|
|
110
|
-
return
|
|
111
|
-
label: b,
|
|
112
|
-
htmlFor: K,
|
|
113
|
-
required: x,
|
|
114
|
-
help: S,
|
|
115
|
-
helpId: q,
|
|
116
|
-
status: v,
|
|
117
|
-
className: C,
|
|
118
|
-
children: $
|
|
119
|
-
}) : $;
|
|
119
|
+
return K.wrap(ce);
|
|
120
120
|
};
|
|
121
121
|
g.displayName = "KapiInput";
|
|
122
122
|
//#endregion
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
import type { KapiFieldStatus } from "./KapiField";
|
|
3
|
-
import { type KapiInputGroupSize } from "./inputGroupLogic";
|
|
4
|
-
import "./KapiInputGroup.css";
|
|
1
|
+
import { type HTMLAttributes, type ReactNode, type Ref } from "react";
|
|
2
|
+
import type { KapiFieldStatus } from "./KapiField.js";
|
|
3
|
+
import { type KapiInputGroupSize } from "./inputGroupLogic.js";
|
|
5
4
|
export type { KapiInputGroupSize };
|
|
6
5
|
/** Atributos nativos (`id`, `style`, `data-*`…) van a la caja `role="group"` (el rol es propio). */
|
|
7
6
|
export type KapiInputGroupProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "role"> & {
|
|
7
|
+
/** Ref al `<div>` raíz del grupo. */
|
|
8
|
+
ref?: Ref<HTMLDivElement> | undefined;
|
|
8
9
|
/** Escala compartida: los `KapiInput` y `KapiSelect` de adentro la toman si no traen `size` propio. */
|
|
9
|
-
size?: KapiInputGroupSize;
|
|
10
|
-
/** Borde
|
|
11
|
-
|
|
10
|
+
size?: KapiInputGroupSize | undefined;
|
|
11
|
+
/** Borde rojo del grupo entero (también se pinta solo si un input de adentro es inválido). Gana sobre `status`. */
|
|
12
|
+
invalid?: boolean | undefined;
|
|
13
|
+
/** Borde de validación no erróneo del grupo (`ok`, `pending`). El valor `err` está deprecado: usa `invalid`. */
|
|
14
|
+
status?: KapiFieldStatus | undefined;
|
|
12
15
|
/** Controles y adornos del grupo (`KapiInput`, `KapiSelect`, `KapiInputGroupAddon`…), en orden. */
|
|
13
16
|
children: ReactNode;
|
|
14
17
|
};
|
|
15
18
|
export type KapiInputGroupAddonProps = {
|
|
16
19
|
/** Sólo decorativo (un ícono suelto): se oculta a lectores. Un texto como "https://" se deja visible. */
|
|
17
|
-
decorative?: boolean;
|
|
18
|
-
className?: string;
|
|
20
|
+
decorative?: boolean | undefined;
|
|
21
|
+
className?: string | undefined;
|
|
19
22
|
children: ReactNode;
|
|
20
23
|
};
|
|
21
24
|
type KapiInputGroupContextValue = {
|
|
@@ -32,6 +35,6 @@ export declare const useKapiInputGroup: () => KapiInputGroupContextValue | null;
|
|
|
32
35
|
* usa su propio id (dale `aria-label`). Con varios inputs de texto, pasales `id` explícitos.
|
|
33
36
|
*/
|
|
34
37
|
export declare const KapiInputGroup: {
|
|
35
|
-
({ size, status, className, children, ...rest }: KapiInputGroupProps): import("react").JSX.Element;
|
|
38
|
+
({ size, invalid, status: statusProp, className, children, ...rest }: KapiInputGroupProps): import("react").JSX.Element;
|
|
36
39
|
Addon: ({ decorative, className, children }: KapiInputGroupAddonProps) => import("react").JSX.Element;
|
|
37
40
|
};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import "#kapi-css/components/inputs/KapiInputGroup.css";
|
|
3
|
+
import { resolveValidation as e } from "./fieldLogic.js";
|
|
4
|
+
import { inputGroupAddonClasses as t, inputGroupClasses as n } from "./inputGroupLogic.js";
|
|
3
5
|
/* empty css */
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { createContext as
|
|
6
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
7
|
+
import { createContext as i, useContext as a, useMemo as o } from "react";
|
|
6
8
|
//#region src/components/inputs/KapiInputGroup.tsx
|
|
7
|
-
var
|
|
8
|
-
className:
|
|
9
|
-
"aria-hidden":
|
|
9
|
+
var s = i(null), c = () => a(s), l = ({ decorative: e = !1, className: n, children: i }) => /* @__PURE__ */ r("span", {
|
|
10
|
+
className: t(n),
|
|
11
|
+
"aria-hidden": e || void 0,
|
|
10
12
|
children: i
|
|
11
|
-
}),
|
|
12
|
-
let
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
value:
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
...
|
|
13
|
+
}), u = ({ size: t, invalid: i, status: a, className: c, children: l, ...u }) => {
|
|
14
|
+
let { status: d } = e(i, a), f = o(() => ({ size: t }), [t]);
|
|
15
|
+
return /* @__PURE__ */ r(s.Provider, {
|
|
16
|
+
value: f,
|
|
17
|
+
children: /* @__PURE__ */ r("div", {
|
|
18
|
+
...u,
|
|
17
19
|
role: "group",
|
|
18
|
-
className:
|
|
19
|
-
size:
|
|
20
|
-
status:
|
|
21
|
-
className:
|
|
20
|
+
className: n({
|
|
21
|
+
size: t,
|
|
22
|
+
status: d,
|
|
23
|
+
className: c
|
|
22
24
|
}),
|
|
23
|
-
children:
|
|
25
|
+
children: l
|
|
24
26
|
})
|
|
25
27
|
});
|
|
26
28
|
};
|
|
27
|
-
|
|
29
|
+
u.Addon = l;
|
|
28
30
|
//#endregion
|
|
29
|
-
export {
|
|
31
|
+
export { u as KapiInputGroup, c as useKapiInputGroup };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { type Ref } from "react";
|
|
2
|
-
import { type KapiInputProps } from "./KapiInput";
|
|
3
|
-
/** Props comunes: las de `KapiInput` (label, help, status, size…) salvo el valor, que cada máscara tipa. */
|
|
2
|
+
import { type KapiInputProps } from "./KapiInput.js";
|
|
3
|
+
/** Props comunes: las de `KapiInput` (label, help, invalid, status, size…) salvo el valor, que cada máscara tipa. */
|
|
4
4
|
type MaskedBaseProps = Omit<KapiInputProps, "value" | "defaultValue" | "multiline" | "type"> & {
|
|
5
5
|
/** Ref al `<input>`. */
|
|
6
|
-
ref?: Ref<HTMLInputElement
|
|
6
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
7
7
|
};
|
|
8
8
|
export type KapiDniInputProps = MaskedBaseProps & {
|
|
9
9
|
/** Dígitos del DNI (sin puntos). Controlado si viene definido. */
|
|
10
|
-
value?: string;
|
|
10
|
+
value?: string | undefined;
|
|
11
11
|
/** Dígitos iniciales en modo no controlado (sin `value`). */
|
|
12
|
-
defaultValue?: string;
|
|
12
|
+
defaultValue?: string | undefined;
|
|
13
13
|
/** Se llama con los dígitos (sin puntos) en cada cambio. */
|
|
14
|
-
onValueChange?: (digits: string) => void;
|
|
14
|
+
onValueChange?: ((digits: string) => void) | undefined;
|
|
15
15
|
};
|
|
16
16
|
/** DNI argentino con máscara `12.345.678` (7 u 8 dígitos). El valor son sólo los dígitos. */
|
|
17
17
|
export declare const KapiDniInput: ({ value, defaultValue, onValueChange, onChange, ref, placeholder, ...rest }: KapiDniInputProps) => import("react").JSX.Element;
|
|
18
18
|
export type KapiCuitInputProps = MaskedBaseProps & {
|
|
19
19
|
/** Dígitos del CUIT/CUIL (sin guiones). Controlado si viene definido. */
|
|
20
|
-
value?: string;
|
|
20
|
+
value?: string | undefined;
|
|
21
21
|
/** Dígitos iniciales en modo no controlado (sin `value`). */
|
|
22
|
-
defaultValue?: string;
|
|
22
|
+
defaultValue?: string | undefined;
|
|
23
23
|
/** Se llama con los dígitos y si el CUIT está completo y con dígito verificador correcto. */
|
|
24
|
-
onValueChange?: (digits: string, valid: boolean) => void;
|
|
24
|
+
onValueChange?: ((digits: string, valid: boolean) => void) | undefined;
|
|
25
25
|
/** Ayuda que se muestra cuando el CUIT está completo pero el dígito verificador no cierra. Gana sobre `invalid` de la clave `cuitInput`. */
|
|
26
|
-
invalidMessage?: string;
|
|
26
|
+
invalidMessage?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
/** Textos del CUIT (clave `cuitInput` del provider; por instancia se pisa con `invalidMessage`, porque `labels` es el de `KapiInput`). */
|
|
29
29
|
export type KapiCuitInputLabels = {
|
|
@@ -32,17 +32,17 @@ export type KapiCuitInputLabels = {
|
|
|
32
32
|
export declare const DEFAULT_CUIT_INPUT_LABELS: KapiCuitInputLabels;
|
|
33
33
|
/**
|
|
34
34
|
* CUIT/CUIL con máscara `20-12345678-9` y validación del dígito verificador. Completo e inválido → borde
|
|
35
|
-
* rojo y `aria-invalid` (salvo que `status`
|
|
35
|
+
* rojo y `aria-invalid` (salvo que `invalid` o `status` vengan de afuera); si el campo tiene label o ayuda, muestra
|
|
36
36
|
* `invalidMessage`.
|
|
37
37
|
*/
|
|
38
|
-
export declare const KapiCuitInput: ({ value, defaultValue, onValueChange, onChange, invalidMessage, status, help, label, ref, placeholder, ...rest }: KapiCuitInputProps) => import("react").JSX.Element;
|
|
38
|
+
export declare const KapiCuitInput: ({ value, defaultValue, onValueChange, onChange, invalidMessage, invalid: invalidProp, status, help, label, ref, placeholder, ...rest }: KapiCuitInputProps) => import("react").JSX.Element;
|
|
39
39
|
export type KapiCurrencyInputProps = MaskedBaseProps & {
|
|
40
40
|
/** Importe. Controlado si viene definido (`null` = vacío). */
|
|
41
|
-
value?: number | null;
|
|
41
|
+
value?: number | null | undefined;
|
|
42
42
|
/** Importe inicial en modo no controlado (sin `value`); `null` = vacío. */
|
|
43
|
-
defaultValue?: number | null;
|
|
43
|
+
defaultValue?: number | null | undefined;
|
|
44
44
|
/** Se llama con el importe (`null` si está vacío) cada vez que cambia. */
|
|
45
|
-
onValueChange?: (value: number | null) => void;
|
|
45
|
+
onValueChange?: ((value: number | null) => void) | undefined;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* Importe en pesos con formato es-AR (`$ 1.234,56`): puntos de miles automáticos y coma decimal
|
|
@@ -2,77 +2,80 @@
|
|
|
2
2
|
import { assignRef as e } from "./fieldLogic.js";
|
|
3
3
|
import { useLabels as t } from "../locale/KapiLocaleProvider.js";
|
|
4
4
|
import { KapiInput as n } from "./KapiInput.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
6
|
+
import { activeElementOf as i } from "../../hooks/ownerDocument.js";
|
|
7
|
+
import { caretForSignificant as a, countSignificant as o, formatCuit as s, formatCurrency as c, formatDni as l, isValidCuit as u, maskCurrencyInput as d, onlyDigits as f, parseCurrency as p } from "./maskLogic.js";
|
|
8
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
9
|
+
import { useCallback as h, useRef as g, useState as _ } from "react";
|
|
8
10
|
//#region src/components/inputs/KapiMaskedInput.tsx
|
|
9
|
-
var
|
|
10
|
-
setRef:
|
|
11
|
+
var v = (t, n, r) => ({
|
|
12
|
+
setRef: h((t) => e(n, t), [n]),
|
|
11
13
|
apply: (e, n) => {
|
|
12
|
-
let
|
|
13
|
-
if (
|
|
14
|
-
let e = Math.max(0,
|
|
15
|
-
return
|
|
14
|
+
let s = e.target, c = s.selectionStart ?? s.value.length;
|
|
15
|
+
if (r !== void 0 && f(s.value).length > r) {
|
|
16
|
+
let e = Math.max(0, c - (s.value.length - n.length));
|
|
17
|
+
return s.value = n, s.setSelectionRange(e, e), n;
|
|
16
18
|
}
|
|
17
|
-
let
|
|
18
|
-
if (
|
|
19
|
-
let e =
|
|
20
|
-
|
|
19
|
+
let l = o(s.value, c), u = t(s.value);
|
|
20
|
+
if (s.value = u, i(s) === s) {
|
|
21
|
+
let e = a(u, l);
|
|
22
|
+
s.setSelectionRange(e, e);
|
|
21
23
|
}
|
|
22
|
-
return
|
|
24
|
+
return u;
|
|
23
25
|
}
|
|
24
|
-
}),
|
|
25
|
-
let [
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
}), y = ({ value: e, defaultValue: t = "", onValueChange: i, onChange: a, ref: o, placeholder: s = "12.345.678", ...c }) => {
|
|
27
|
+
let [u, d] = r(e, () => f(t, 8), i), p = f(u, 8), { setRef: h, apply: g } = v(l, o, 8);
|
|
28
|
+
return /* @__PURE__ */ m(n, {
|
|
27
29
|
...c,
|
|
28
|
-
ref:
|
|
29
|
-
value:
|
|
30
|
-
placeholder:
|
|
30
|
+
ref: h,
|
|
31
|
+
value: l(p),
|
|
32
|
+
placeholder: s,
|
|
31
33
|
inputMode: "numeric",
|
|
32
34
|
autoComplete: "off",
|
|
33
|
-
onChange: (
|
|
34
|
-
let
|
|
35
|
-
|
|
35
|
+
onChange: (e) => {
|
|
36
|
+
let t = f(g(e, l(p)));
|
|
37
|
+
t !== p && d(t), a?.(e);
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
|
-
},
|
|
39
|
-
let
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
}, b = { invalid: "CUIT inválido: revisa el dígito verificador" }, x = ({ value: e, defaultValue: i = "", onValueChange: a, onChange: o, invalidMessage: c, invalid: l, status: d, help: p, label: h, ref: g, placeholder: _ = "20-12345678-9", ...y }) => {
|
|
41
|
+
let x = t("cuitInput", b), [S, C] = r(e, () => f(i, 11), a && ((e) => a(e, u(e)))), w = f(S, 11), T = w.length === 11 && !u(w), E = l !== void 0 || d !== void 0, D = h != null || !!p, { setRef: O, apply: k } = v(s, g, 11);
|
|
42
|
+
return /* @__PURE__ */ m(n, {
|
|
41
43
|
...y,
|
|
42
|
-
ref:
|
|
43
|
-
label:
|
|
44
|
-
help:
|
|
45
|
-
status:
|
|
46
|
-
|
|
44
|
+
ref: O,
|
|
45
|
+
label: h,
|
|
46
|
+
help: D && T ? c ?? x.invalid : p,
|
|
47
|
+
status: d,
|
|
48
|
+
invalid: E ? l : T || void 0,
|
|
49
|
+
value: s(w),
|
|
47
50
|
placeholder: _,
|
|
48
51
|
inputMode: "numeric",
|
|
49
52
|
autoComplete: "off",
|
|
50
|
-
onChange: (
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
+
onChange: (e) => {
|
|
54
|
+
let t = f(k(e, s(w)));
|
|
55
|
+
t !== w && C(t), o?.(e);
|
|
53
56
|
}
|
|
54
57
|
});
|
|
55
|
-
},
|
|
56
|
-
let [
|
|
57
|
-
e !== void 0 && e !== y && (b(e), e !==
|
|
58
|
-
let { setRef: x, apply: S } =
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
...
|
|
58
|
+
}, S = ({ value: e, defaultValue: t = null, onValueChange: r, onChange: i, onBlur: a, ref: o, placeholder: s = "$ 0,00", ...l }) => {
|
|
59
|
+
let [u, f] = _(() => c(e === void 0 ? t : e)), h = g(p(u)), [y, b] = _(e);
|
|
60
|
+
e !== void 0 && e !== y && (b(e), e !== p(u) && (f(c(e)), h.current = e));
|
|
61
|
+
let { setRef: x, apply: S } = v(d, o);
|
|
62
|
+
return /* @__PURE__ */ m(n, {
|
|
63
|
+
...l,
|
|
61
64
|
ref: x,
|
|
62
|
-
value:
|
|
63
|
-
placeholder:
|
|
65
|
+
value: u,
|
|
66
|
+
placeholder: s,
|
|
64
67
|
inputMode: "decimal",
|
|
65
68
|
autoComplete: "off",
|
|
66
69
|
onChange: (e) => {
|
|
67
|
-
let t = S(e,
|
|
68
|
-
|
|
69
|
-
let n =
|
|
70
|
-
n !==
|
|
70
|
+
let t = S(e, u);
|
|
71
|
+
f(t);
|
|
72
|
+
let n = p(t);
|
|
73
|
+
n !== h.current && (h.current = n, r?.(n)), i?.(e);
|
|
71
74
|
},
|
|
72
75
|
onBlur: (e) => {
|
|
73
|
-
|
|
76
|
+
f(c(p(u))), a?.(e);
|
|
74
77
|
}
|
|
75
78
|
});
|
|
76
79
|
};
|
|
77
80
|
//#endregion
|
|
78
|
-
export {
|
|
81
|
+
export { b as DEFAULT_CUIT_INPUT_LABELS, x as KapiCuitInput, S as KapiCurrencyInput, y as KapiDniInput };
|
|
@@ -1,29 +1,41 @@
|
|
|
1
|
-
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
import "./
|
|
3
|
-
import type
|
|
4
|
-
import {
|
|
5
|
-
import type { KapiLabelsOverride } from "../labelsLogic";
|
|
1
|
+
import { type InputHTMLAttributes, type ReactNode, type Ref } from "react";
|
|
2
|
+
import type { KapiFieldStatus } from "./KapiField.js";
|
|
3
|
+
import { type KapiInputSize } from "./KapiInput.js";
|
|
4
|
+
import type { KapiLabelsOverride } from "../labelsLogic.js";
|
|
6
5
|
export type KapiNumberStepperProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "defaultValue" | "onChange" | "min" | "max" | "step"> & {
|
|
7
|
-
/**
|
|
8
|
-
|
|
6
|
+
/** Ref al `<input>` numérico (el enfocable del contrato de campo). */
|
|
7
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
8
|
+
/** Valor actual; con él, el control es controlado. */
|
|
9
|
+
value?: number | undefined;
|
|
10
|
+
/** Valor inicial sin controlar (sin `value`): el control guarda los cambios. Sin ninguno de los dos arranca en 0 (acotado a `min`/`max`). */
|
|
11
|
+
defaultValue?: number | undefined;
|
|
9
12
|
/** Se llama con el número nuevo, ya acotado a `min`/`max`. */
|
|
10
|
-
onChange
|
|
13
|
+
onChange?: ((value: number) => void) | undefined;
|
|
11
14
|
/** Mínimo permitido; en el tope el botón − se deshabilita. */
|
|
12
|
-
min?: number;
|
|
15
|
+
min?: number | undefined;
|
|
13
16
|
/** Máximo permitido; en el tope el botón + se deshabilita. */
|
|
14
|
-
max?: number;
|
|
17
|
+
max?: number | undefined;
|
|
15
18
|
/** Cuánto suman o restan los botones − y +. */
|
|
16
|
-
step?: number;
|
|
19
|
+
step?: number | undefined;
|
|
17
20
|
/** Tamaño del control: `sm` · `md` · `lg`. */
|
|
18
|
-
size?: KapiInputSize;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
+
size?: KapiInputSize | undefined;
|
|
22
|
+
/** Marca el campo inválido: borde rojo, `aria-invalid` y la ayuda en color de error. Gana sobre `status`. */
|
|
23
|
+
invalid?: boolean | undefined;
|
|
24
|
+
/** Validación no erróneo (`ok`, `pending`): borde y ayuda. El valor `err` está deprecado: usa `invalid`. */
|
|
25
|
+
status?: KapiFieldStatus | undefined;
|
|
26
|
+
/** Marca el campo obligatorio (`required` en el input y asterisco en la etiqueta). */
|
|
27
|
+
required?: boolean | undefined;
|
|
21
28
|
/** Etiqueta visible; con ella (o `help`) el control se envuelve en un `KapiField`. */
|
|
22
29
|
label?: ReactNode;
|
|
23
30
|
/** Texto de ayuda o error bajo el control. */
|
|
24
31
|
help?: ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
|
|
32
|
+
/** Clase del contenedor del control (`.kapi-stepper`, botones + input). `className` va al `<input>`. */
|
|
33
|
+
fieldClassName?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Clase del contenedor del control.
|
|
36
|
+
* @deprecated Usa `fieldClassName`.
|
|
37
|
+
*/
|
|
38
|
+
wrapperClassName?: string | undefined;
|
|
27
39
|
/** Textos de los botones − y +. */
|
|
28
40
|
labels?: KapiLabelsOverride<KapiNumberStepperLabels> | undefined;
|
|
29
41
|
};
|
|
@@ -33,7 +45,7 @@ export declare const stepperClasses: ({ size, className }?: {
|
|
|
33
45
|
className?: string | undefined;
|
|
34
46
|
}) => string;
|
|
35
47
|
/**
|
|
36
|
-
* Numeric field with − / + buttons. Controlled
|
|
48
|
+
* Numeric field with − / + buttons. Controlled with `value`, or uncontrolled with `defaultValue`. Typing is free while focused and is
|
|
37
49
|
* committed (clamped to bounds) on blur / Enter; the buttons and arrow keys step immediately.
|
|
38
50
|
*/
|
|
39
51
|
export type KapiNumberStepperLabels = {
|
|
@@ -41,4 +53,4 @@ export type KapiNumberStepperLabels = {
|
|
|
41
53
|
increase: string;
|
|
42
54
|
};
|
|
43
55
|
export declare const DEFAULT_NUMBER_STEPPER_LABELS: KapiNumberStepperLabels;
|
|
44
|
-
export declare const KapiNumberStepper: ({ value, onChange, min, max, step, size, status, label, help, wrapperClassName, labels, className, disabled, id, ...rest }: KapiNumberStepperProps) =>
|
|
56
|
+
export declare const KapiNumberStepper: ({ value: valueProp, defaultValue, onChange, min, max, step, size, invalid: invalidProp, status: statusProp, required, label, help, fieldClassName, wrapperClassName, labels, className, disabled, readOnly: readOnlyProp, id, ...rest }: KapiNumberStepperProps) => ReactNode;
|