@kapiuara/ui 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chat/KapiChatDivider.js +1 -2
- package/dist/components/chat/KapiChatList.js +15 -16
- package/dist/components/chat/KapiChatThread.js +21 -22
- package/dist/components/chat/KapiComposer.js +23 -24
- package/dist/components/chat/KapiMessageBubble.js +5 -6
- package/dist/components/chat/KapiTypingIndicator.js +5 -6
- package/dist/components/chat/chatLogic.js +1 -2
- package/dist/components/data/KapiBarChart.js +22 -23
- package/dist/components/data/KapiDataTable.js +92 -93
- package/dist/components/data/KapiEventCalendar.js +96 -97
- package/dist/components/data/KapiHeatmap.js +21 -22
- package/dist/components/data/KapiLineChart.js +23 -24
- package/dist/components/data/KapiPagination.js +1 -2
- package/dist/components/data/KapiPaginationFooter.js +5 -6
- package/dist/components/data/KapiScatterChart.js +18 -19
- package/dist/components/data/KapiSheet.js +2 -3
- package/dist/components/data/KapiSparkline.js +1 -2
- package/dist/components/data/KapiTable.js +107 -108
- package/dist/components/data/KapiTableFilter.js +13 -14
- package/dist/components/data/KapiTableFooter.js +21 -22
- package/dist/components/data/KapiTableRow.js +10 -11
- package/dist/components/data/KapiTableToolbar.js +95 -96
- package/dist/components/data/barChartLogic.js +1 -2
- package/dist/components/data/chartFrame.js +13 -14
- package/dist/components/data/datasetSelectionLogic.js +1 -2
- package/dist/components/data/eventCalendarLogic.js +2 -3
- package/dist/components/data/heatmapLogic.js +1 -2
- package/dist/components/data/lineChartLogic.js +1 -2
- package/dist/components/data/rowClickLogic.js +2 -17
- package/dist/components/data/scatterLogic.js +1 -2
- package/dist/components/data/sparklineLogic.js +1 -2
- package/dist/components/data/tableCells.js +14 -15
- package/dist/components/data/tableHeaderMenu.js +1 -2
- package/dist/components/data/tableLabels.js +1 -2
- package/dist/components/data/tableLogic.js +0 -1
- package/dist/components/data/tablePaginationLogic.js +1 -2
- package/dist/components/data/tableResizeLogic.js +1 -2
- package/dist/components/data/tableSlots.js +1 -2
- package/dist/components/data/tableSpanLogic.js +1 -2
- package/dist/components/data/useColumnResize.js +23 -24
- package/dist/components/data/useRowKeyWarning.js +1 -2
- package/dist/components/data/useTableEdges.js +1 -2
- package/dist/components/data/useTableSelection.js +25 -26
- package/dist/components/display/KapiAnchor.js +7 -8
- package/dist/components/display/KapiAnnotation.js +15 -16
- package/dist/components/display/KapiAvatar.js +6 -7
- package/dist/components/display/KapiAvatarGroup.js +15 -16
- package/dist/components/display/KapiBadge.js +1 -2
- package/dist/components/display/KapiCodeBlock.js +14 -15
- package/dist/components/display/KapiComment.js +10 -11
- package/dist/components/display/KapiCommentComposer.js +13 -14
- package/dist/components/display/KapiDescriptionList.js +1 -2
- package/dist/components/display/KapiDiff.js +23 -24
- package/dist/components/display/KapiFileItem.js +13 -14
- package/dist/components/display/KapiFileViewer.js +17 -18
- package/dist/components/display/KapiHighlight.js +2 -3
- package/dist/components/display/KapiIconTile.js +2 -3
- package/dist/components/display/KapiStat.js +8 -9
- package/dist/components/display/KapiTag.js +6 -7
- package/dist/components/display/KapiText.js +5 -6
- package/dist/components/display/KapiTimeline.js +2 -3
- package/dist/components/display/KapiTitle.js +1 -2
- package/dist/components/display/KapiTruncate.js +5 -6
- package/dist/components/display/annotationLogic.js +1 -2
- package/dist/components/display/avatarGroupLogic.js +1 -2
- package/dist/components/display/avatarGroupSlots.js +1 -2
- package/dist/components/display/avatarLogic.js +1 -2
- package/dist/components/display/codeBlockSlots.js +1 -2
- package/dist/components/display/commentLogic.js +1 -2
- package/dist/components/display/diffLogic.js +1 -2
- package/dist/components/display/diffSlots.js +1 -2
- package/dist/components/display/fileItemLogic.js +1 -2
- package/dist/components/display/highlightLogic.js +1 -2
- package/dist/components/display/highlightSlots.js +1 -2
- package/dist/components/display/iconTileLogic.js +1 -2
- package/dist/components/display/statLogic.js +1 -2
- package/dist/components/display/tagLogic.js +1 -2
- package/dist/components/display/textLogic.js +1 -2
- package/dist/components/display/timelineLogic.js +1 -2
- package/dist/components/display/truncateLogic.js +1 -2
- package/dist/components/feedback/KapiAlert.js +6 -7
- package/dist/components/feedback/KapiBulkBar.js +5 -6
- package/dist/components/feedback/KapiCountdown.js +16 -17
- package/dist/components/feedback/KapiEmpty.js +2 -3
- package/dist/components/feedback/KapiFab.js +96 -97
- package/dist/components/feedback/KapiOfflineBanner.js +4 -5
- package/dist/components/feedback/KapiProgress.js +1 -2
- package/dist/components/feedback/KapiSkeleton.js +1 -2
- package/dist/components/feedback/KapiSpinner.js +5 -6
- package/dist/components/feedback/KapiToastContainer.js +28 -29
- package/dist/components/feedback/KapiTour.js +24 -25
- package/dist/components/feedback/KapiUnsavedBar.js +5 -6
- package/dist/components/feedback/alertSlots.js +1 -2
- package/dist/components/feedback/bulkBarLogic.js +1 -2
- package/dist/components/feedback/countdownLogic.js +1 -2
- package/dist/components/feedback/countdownSlots.js +1 -2
- package/dist/components/feedback/emptySlots.js +1 -2
- package/dist/components/feedback/fabLogic.js +1 -2
- package/dist/components/feedback/offlineBannerLogic.js +1 -2
- package/dist/components/feedback/progressLogic.js +1 -2
- package/dist/components/feedback/toastLayer.js +1 -2
- package/dist/components/feedback/toastStore.js +2 -3
- package/dist/components/feedback/tourLogic.js +1 -2
- package/dist/components/feedback/unsavedBarLogic.js +1 -2
- package/dist/components/inputs/KapiAutocomplete.js +23 -24
- package/dist/components/inputs/KapiButton.js +1 -2
- package/dist/components/inputs/KapiCalendar.js +12 -13
- package/dist/components/inputs/KapiCalendarGrid.js +15 -16
- package/dist/components/inputs/KapiCheckCard.js +4 -5
- package/dist/components/inputs/KapiCheckbox.js +1 -2
- package/dist/components/inputs/KapiChecklist.js +62 -63
- package/dist/components/inputs/KapiCopyButton.js +6 -7
- package/dist/components/inputs/KapiDatePicker.js +33 -34
- package/dist/components/inputs/KapiDateRangePicker.js +145 -146
- package/dist/components/inputs/KapiFacetedSearch.js +55 -56
- package/dist/components/inputs/KapiField.js +5 -6
- package/dist/components/inputs/KapiFileUpload.js +26 -27
- package/dist/components/inputs/KapiIconButton.js +1 -2
- package/dist/components/inputs/KapiInput.js +46 -47
- package/dist/components/inputs/KapiInputGroup.js +1 -2
- package/dist/components/inputs/KapiMaskedInput.js +50 -51
- package/dist/components/inputs/KapiNumberStepper.js +49 -50
- package/dist/components/inputs/KapiPinInput.js +9 -10
- package/dist/components/inputs/KapiPropsForm.js +43 -44
- package/dist/components/inputs/KapiRadio.js +1 -2
- package/dist/components/inputs/KapiRating.js +38 -39
- package/dist/components/inputs/KapiSearchChip.js +10 -11
- package/dist/components/inputs/KapiSegmented.js +65 -66
- package/dist/components/inputs/KapiSelect.js +198 -199
- package/dist/components/inputs/KapiSelectMenu.js +1 -2
- package/dist/components/inputs/KapiSlider.js +11 -12
- package/dist/components/inputs/KapiSwitch.js +6 -7
- package/dist/components/inputs/KapiTagInput.js +32 -33
- package/dist/components/inputs/KapiTextarea.js +22 -23
- package/dist/components/inputs/asyncSelectLogic.js +22 -23
- package/dist/components/inputs/autocompleteLogic.js +1 -2
- package/dist/components/inputs/checkControl.js +4 -5
- package/dist/components/inputs/checklistLogic.js +1 -2
- package/dist/components/inputs/copyLogic.js +1 -2
- package/dist/components/inputs/datePickerLogic.js +1 -2
- package/dist/components/inputs/dateRangeLogic.js +1 -2
- package/dist/components/inputs/facetedSearchLogic.js +1 -2
- package/dist/components/inputs/fieldLogic.js +1 -2
- package/dist/components/inputs/fileUploadLogic.js +1 -2
- package/dist/components/inputs/formBridgeLogic.js +1 -2
- package/dist/components/inputs/inputGroupLogic.js +1 -2
- package/dist/components/inputs/inputLogic.js +1 -2
- package/dist/components/inputs/maskLogic.js +0 -1
- package/dist/components/inputs/misuseWarnings.js +1 -2
- package/dist/components/inputs/numberStepLogic.js +1 -2
- package/dist/components/inputs/ownField.js +9 -10
- package/dist/components/inputs/pinInputLogic.js +1 -2
- package/dist/components/inputs/propsFormLogic.js +1 -2
- package/dist/components/inputs/ratingLogic.js +1 -2
- package/dist/components/inputs/searchChipLogic.js +1 -2
- package/dist/components/inputs/segmentedLogic.js +1 -2
- package/dist/components/inputs/selectKeyLogic.js +1 -2
- package/dist/components/inputs/selectLogic.js +1 -2
- package/dist/components/inputs/selectSlots.js +1 -2
- package/dist/components/inputs/sliderLogic.js +1 -2
- package/dist/components/inputs/tagInputLogic.js +1 -2
- package/dist/components/inputs/textareaLogic.js +1 -2
- package/dist/components/inputs/useCalendarFocus.js +1 -2
- package/dist/components/inputs/useDatePopSide.js +1 -2
- package/dist/components/inputs/useSelectCreate.js +1 -2
- package/dist/components/inputs/useSelectSource.js +11 -12
- package/dist/components/labelsLogic.js +1 -2
- package/dist/components/layout/KapiAccessCard.js +10 -11
- package/dist/components/layout/KapiAccountMenu.js +24 -25
- package/dist/components/layout/KapiBox.js +5 -6
- package/dist/components/layout/KapiCard.js +18 -19
- package/dist/components/layout/KapiCenter.js +1 -2
- package/dist/components/layout/KapiCluster.js +1 -2
- package/dist/components/layout/KapiCol.js +1 -2
- package/dist/components/layout/KapiCollapse.js +1 -2
- package/dist/components/layout/KapiContextSlot.js +98 -99
- package/dist/components/layout/KapiDivider.js +1 -2
- package/dist/components/layout/KapiGrid.js +9 -10
- package/dist/components/layout/KapiMasonry.js +1 -2
- package/dist/components/layout/KapiNotificationBell.js +53 -54
- package/dist/components/layout/KapiPageHeader.js +42 -43
- package/dist/components/layout/KapiPanelParts.js +43 -44
- package/dist/components/layout/KapiRail.js +103 -104
- package/dist/components/layout/KapiRailAccount.js +11 -12
- package/dist/components/layout/KapiRoot.js +33 -34
- package/dist/components/layout/KapiScrollArea.js +7 -8
- package/dist/components/layout/KapiShell.js +8 -9
- package/dist/components/layout/KapiStack.js +1 -2
- package/dist/components/layout/KapiThemeScript.js +1 -2
- package/dist/components/layout/accessCardLogic.js +1 -2
- package/dist/components/layout/cardLogic.js +1 -2
- package/dist/components/layout/cardSlots.js +1 -2
- package/dist/components/layout/gridSpanLogic.js +1 -2
- package/dist/components/layout/layoutPrimitives.js +1 -2
- package/dist/components/layout/masonryLogic.js +1 -2
- package/dist/components/layout/notificationBellLogic.js +1 -2
- package/dist/components/layout/pageHeaderLogic.js +1 -2
- package/dist/components/layout/pageHeaderSlots.js +1 -2
- package/dist/components/layout/railContext.js +1 -2
- package/dist/components/layout/railLogic.js +1 -2
- package/dist/components/layout/railSlots.js +1 -2
- package/dist/components/layout/reopenBus.js +1 -2
- package/dist/components/layout/shellSlots.js +1 -2
- package/dist/components/layout/useGridBreakpoint.js +1 -2
- package/dist/components/layout/useMasonrySpans.js +6 -7
- package/dist/components/layout/useRailOverflow.js +7 -8
- package/dist/components/locale/KapiLocaleProvider.js +1 -2
- package/dist/components/locale/linkLabels.js +1 -2
- package/dist/components/locale/localeLogic.js +1 -2
- package/dist/components/navigation/CtxSlidingList.js +7 -8
- package/dist/components/navigation/KapiAccordion.js +11 -12
- package/dist/components/navigation/KapiBreadcrumb.js +11 -12
- package/dist/components/navigation/KapiCollapsiblePanel.js +13 -14
- package/dist/components/navigation/KapiContextPanel.js +138 -139
- package/dist/components/navigation/KapiFilterChips.js +25 -22
- package/dist/components/navigation/KapiNavBadge.js +6 -7
- package/dist/components/navigation/KapiPanelGroup.js +34 -35
- package/dist/components/navigation/KapiSteps.js +41 -36
- package/dist/components/navigation/KapiTabs.js +40 -41
- package/dist/components/navigation/KapiToc.js +15 -16
- package/dist/components/navigation/KapiTree.js +126 -124
- package/dist/components/navigation/KapiWizard.js +12 -13
- package/dist/components/navigation/MiniNavItem.js +11 -12
- package/dist/components/navigation/accordionLogic.js +1 -2
- package/dist/components/navigation/activeItemLogic.js +1 -2
- package/dist/components/navigation/breadcrumbLogic.js +1 -2
- package/dist/components/navigation/contextPanelLogic.js +1 -2
- package/dist/components/navigation/filterChipsLogic.d.ts +9 -1
- package/dist/components/navigation/filterChipsLogic.js +2 -3
- package/dist/components/navigation/navBadgeLogic.js +1 -2
- package/dist/components/navigation/navLink.js +1 -2
- package/dist/components/navigation/navLinkLogic.js +1 -2
- package/dist/components/navigation/panelGroupLogic.js +1 -2
- package/dist/components/navigation/panelMini.js +0 -1
- package/dist/components/navigation/panelMiniLogic.js +1 -2
- package/dist/components/navigation/stepsLogic.js +1 -2
- package/dist/components/navigation/tabsLogic.js +1 -2
- package/dist/components/navigation/tocLogic.js +1 -2
- package/dist/components/navigation/tocSlots.js +1 -2
- package/dist/components/navigation/treeLogic.js +1 -2
- package/dist/components/navigation/wizardLogic.js +1 -2
- package/dist/components/overlays/KapiCanvasForm.js +5 -6
- package/dist/components/overlays/KapiCommandPalette.js +45 -45
- package/dist/components/overlays/KapiConfirm.js +9 -10
- package/dist/components/overlays/KapiContextMenu.js +16 -17
- package/dist/components/overlays/KapiDialogHost.js +50 -51
- package/dist/components/overlays/KapiDropdown.js +2 -3
- package/dist/components/overlays/KapiImageViewer.js +8 -9
- package/dist/components/overlays/KapiLoading.js +7 -8
- package/dist/components/overlays/KapiMenuButton.js +19 -20
- package/dist/components/overlays/KapiModal.js +58 -59
- package/dist/components/overlays/KapiOffcanvas.js +146 -147
- package/dist/components/overlays/KapiOffcanvasStack.js +18 -19
- package/dist/components/overlays/KapiPhotoView.js +21 -22
- package/dist/components/overlays/KapiPopover.js +12 -13
- package/dist/components/overlays/KapiShapeSheet.js +11 -12
- package/dist/components/overlays/KapiShortcutsHelp.js +18 -19
- package/dist/components/overlays/KapiSplitModal.js +20 -21
- package/dist/components/overlays/KapiTooltip.js +46 -47
- package/dist/components/overlays/KapiViewport.js +17 -18
- package/dist/components/overlays/canvasFormLogic.js +1 -2
- package/dist/components/overlays/commandPaletteLogic.js +1 -2
- package/dist/components/overlays/dialogStore.js +3 -4
- package/dist/components/overlays/dialogUtils.js +1 -2
- package/dist/components/overlays/exitPresenceLogic.js +1 -2
- package/dist/components/overlays/menuButtonLogic.js +1 -2
- package/dist/components/overlays/menuKeyboardLogic.js +1 -2
- package/dist/components/overlays/menuList.js +94 -95
- package/dist/components/overlays/modalSlots.js +1 -2
- package/dist/components/overlays/modalStack.js +1 -2
- package/dist/components/overlays/offcanvasCompanion.js +1 -2
- package/dist/components/overlays/offcanvasResize.js +0 -1
- package/dist/components/overlays/offcanvasSide.js +1 -2
- package/dist/components/overlays/offcanvasStack.js +1 -2
- package/dist/components/overlays/overlayPortal.js +1 -2
- package/dist/components/overlays/popoverLogic.js +1 -2
- package/dist/components/overlays/shortcutsHelpSlots.js +1 -2
- package/dist/components/overlays/splitModalLayout.js +1 -2
- package/dist/components/overlays/useExitPresence.js +11 -12
- package/dist/components/overlays/useNativeDialog.js +21 -22
- package/dist/components/overlays/viewportLogic.js +1 -2
- package/dist/components/renderSlot.js +1 -2
- package/dist/components/rootProps.js +1 -2
- package/dist/components/slotCatalog.js +33 -34
- package/dist/components/slotsLogic.js +1 -2
- package/dist/components/tone.js +1 -2
- package/dist/css/components/overlays/KapiViewport.css +1 -1
- package/dist/hooks/asyncResourceLogic.js +1 -2
- package/dist/hooks/breakpointOpenLogic.js +1 -2
- package/dist/hooks/colorLogic.js +1 -2
- package/dist/hooks/dateFormat.js +1 -2
- package/dist/hooks/densityLogic.js +1 -2
- package/dist/hooks/directionLogic.js +1 -2
- package/dist/hooks/downloadLogic.js +1 -2
- package/dist/hooks/elementSizeLogic.js +1 -2
- package/dist/hooks/fieldErrorsLogic.js +1 -2
- package/dist/hooks/focusLogic.js +2 -11
- package/dist/hooks/growOriginLogic.js +1 -2
- package/dist/hooks/hotkeyLogic.js +1 -2
- package/dist/hooks/hotkeyRegistry.js +1 -2
- package/dist/hooks/kapiRoot.js +2 -3
- package/dist/hooks/mergeRefs.js +1 -2
- package/dist/hooks/numberFormatLogic.js +1 -2
- package/dist/hooks/onlineStatusLogic.js +1 -2
- package/dist/hooks/ownerDocument.js +1 -2
- package/dist/hooks/persistentStateLogic.js +1 -2
- package/dist/hooks/portalRoot.js +1 -2
- package/dist/hooks/rafThrottle.js +1 -2
- package/dist/hooks/rangeSelectLogic.js +1 -2
- package/dist/hooks/recentLogic.js +1 -2
- package/dist/hooks/reducedMotion.js +8 -9
- package/dist/hooks/rightClick.js +10 -11
- package/dist/hooks/scrollCollapseLogic.js +1 -2
- package/dist/hooks/scrollEdgesLogic.js +1 -2
- package/dist/hooks/shallowStable.js +1 -2
- package/dist/hooks/slidingIndicatorLogic.js +1 -2
- package/dist/hooks/storageLogic.js +1 -2
- package/dist/hooks/themeColorsLogic.js +1 -2
- package/dist/hooks/themeContrastLogic.js +1 -2
- package/dist/hooks/themeDeriveLogic.js +0 -1
- package/dist/hooks/themeRadiiLogic.js +1 -2
- package/dist/hooks/themeScript.js +1 -2
- package/dist/hooks/toneFamilyLogic.js +1 -2
- package/dist/hooks/unsavedGuardLogic.js +1 -2
- package/dist/hooks/useAsyncLoader.js +1 -2
- package/dist/hooks/useAsyncResource.js +5 -6
- package/dist/hooks/useAsyncTasks.js +1 -2
- package/dist/hooks/useBottomBarInset.js +9 -10
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDebouncedValue.js +1 -2
- package/dist/hooks/useDisclosure.js +1 -2
- package/dist/hooks/useDismiss.js +10 -11
- package/dist/hooks/useDragScroll.js +12 -13
- package/dist/hooks/useElementSize.js +1 -2
- package/dist/hooks/useFieldErrors.js +1 -2
- package/dist/hooks/useFocusReturn.js +1 -2
- package/dist/hooks/useFormReset.js +1 -2
- package/dist/hooks/useGlobalRightClick.js +1 -2
- package/dist/hooks/useGrowOrigin.js +1 -2
- package/dist/hooks/useHotkey.js +1 -2
- package/dist/hooks/useHydrated.js +1 -2
- package/dist/hooks/useKapiTheme.js +55 -56
- package/dist/hooks/useMediaQuery.js +1 -2
- package/dist/hooks/useObjectUrl.js +1 -2
- package/dist/hooks/useOnlineStatus.js +1 -2
- package/dist/hooks/useOutsidePress.js +1 -2
- package/dist/hooks/usePersistentState.js +9 -10
- package/dist/hooks/usePlacement.js +15 -16
- package/dist/hooks/useRangeSelect.js +2 -3
- package/dist/hooks/useRecent.js +6 -7
- package/dist/hooks/useScrollCollapse.js +1 -2
- package/dist/hooks/useScrollEdges.js +25 -26
- package/dist/hooks/useSlidingIndicator.js +19 -20
- package/dist/hooks/useSubmitDraft.js +1 -2
- package/dist/hooks/useToneFamilies.js +0 -1
- package/dist/hooks/useTypeahead.js +1 -2
- package/dist/hooks/useUnsavedGuard.js +5 -6
- package/dist/hooks/useVirtualList.js +1 -2
- package/dist/hooks/useWheelZoom.js +1 -2
- package/dist/hooks/viewportInsetLogic.js +1 -2
- package/dist/hooks/virtualListLogic.js +0 -1
- package/dist/hooks/wheelZoomLogic.js +1 -2
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/dist/logic.js +45 -45
- package/package.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/pinInputLogic.ts
|
|
2
2
|
var e = {
|
|
3
3
|
numeric: /[^0-9]/g,
|
|
4
4
|
alphanumeric: /[^0-9a-zA-Z]/g
|
|
@@ -33,5 +33,4 @@ var e = {
|
|
|
33
33
|
focus: t - 1
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
//#endregion
|
|
37
36
|
export { r as joinPin, s as pinAfterBackspace, a as pinAfterInput, o as pinAfterPaste, t as sanitizePin, n as splitPin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/propsFormLogic.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
switch (e) {
|
|
4
4
|
case "boolean": return !1;
|
|
@@ -7,5 +7,4 @@ var e = (e) => {
|
|
|
7
7
|
default: return "";
|
|
8
8
|
}
|
|
9
9
|
}, t = (t) => Object.fromEntries(t.map((t) => [t.name, t.defaultValue ?? e(t.kind)])), n = (e) => e === null || e === "", r = (e, t) => e.filter((e) => e.required && !e.disabled && n(t[e.name] ?? null)).map((e) => e.name), i = (t, n) => Object.fromEntries(t.map((t) => [t.name, t.name in n ? n[t.name] : t.defaultValue ?? e(t.kind)]));
|
|
10
|
-
//#endregion
|
|
11
10
|
export { t as initialPropsFormValues, n as isPropsFormFieldEmpty, r as missingPropsFormFields, i as reconcilePropsFormValues };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/ratingLogic.ts
|
|
2
2
|
var e = (e, t, n = !1) => {
|
|
3
3
|
if (!Number.isFinite(e)) return 0;
|
|
4
4
|
let r = n ? .5 : 1, i = Math.round(e / r) * r;
|
|
@@ -18,5 +18,4 @@ var e = (e, t, n = !1) => {
|
|
|
18
18
|
default: return null;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
//#endregion
|
|
22
21
|
export { e as normalizeRating, r as ratingFromKey, n as ratingFromPointer, t as starFills };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/searchChipLogic.ts
|
|
2
2
|
var e = ({ ariaLabel: e, placeholder: t, fallback: n }) => {
|
|
3
3
|
if (e !== void 0 && e.trim() !== "") return e;
|
|
4
4
|
let r = (t ?? "").replace(/[\s.…]+$/u, "").trim();
|
|
@@ -9,5 +9,4 @@ var e = ({ ariaLabel: e, placeholder: t, fallback: n }) => {
|
|
|
9
9
|
e && "is-disabled",
|
|
10
10
|
t
|
|
11
11
|
].filter(Boolean).join(" ");
|
|
12
|
-
//#endregion
|
|
13
12
|
export { t as searchChipClasses, e as searchChipName };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { enabledIndexes as e, navKeyOf as t, nextEnabledIndex as n } from "../overlays/menuKeyboardLogic.js";
|
|
2
|
-
|
|
2
|
+
// src/components/inputs/segmentedLogic.ts
|
|
3
3
|
var r = (r, i, a, o) => {
|
|
4
4
|
let s = t(a, "both");
|
|
5
5
|
if (!s || r === 0) return;
|
|
6
6
|
let c = n(i, s, e(r, o));
|
|
7
7
|
return c < 0 ? void 0 : c;
|
|
8
8
|
}, i = (e, t) => t ? "family" : e;
|
|
9
|
-
//#endregion
|
|
10
9
|
export { r as nextRadioIndex, i as segmentedToneAttr };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/selectKeyLogic.ts
|
|
2
2
|
var e = (e, t = !0) => ({
|
|
3
3
|
intent: e,
|
|
4
4
|
prevent: t
|
|
@@ -48,5 +48,4 @@ var e = (e, t = !0) => ({
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { t as selectKeyAction };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { enabledIndexes as e, findTypeaheadMatch as t, nextEnabledIndex as n, normalizeText as r } from "../overlays/menuKeyboardLogic.js";
|
|
2
|
-
|
|
2
|
+
// src/components/inputs/selectLogic.ts
|
|
3
3
|
var i = (e) => "options" in e && Array.isArray(e.options), a = (e) => e.flatMap((e) => i(e) ? e.options : [e]), o = (e, t) => {
|
|
4
4
|
let n = r(t.trim());
|
|
5
5
|
if (!n) return [...e];
|
|
@@ -114,5 +114,4 @@ var i = (e) => "options" in e && Array.isArray(e.options), a = (e) => e.flatMap(
|
|
|
114
114
|
chipLabel: void 0,
|
|
115
115
|
fieldLabel: n
|
|
116
116
|
};
|
|
117
|
-
//#endregion
|
|
118
117
|
export { v as SELECT_MENU_PLACEMENT, f as displayLabel, o as filterOptions, m as findTypeaheadIndex, g as flattenMenuRows, a as flattenOptions, h as indexEntries, p as initialActiveIndex, i as isGroup, s as nextActiveIndex, r as normalizeText, c as normalizeValue, y as resolveChipLabel, _ as resolveVirtualMenu, u as selectedOptions, l as toggleValue, d as withUnknownValues };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineSlots as e } from "../slotsLogic.js";
|
|
2
|
-
|
|
2
|
+
// src/components/inputs/selectSlots.ts
|
|
3
3
|
var t = e("select", {
|
|
4
4
|
root: null,
|
|
5
5
|
icon: "kapisel__icon",
|
|
@@ -23,5 +23,4 @@ var t = e("select", {
|
|
|
23
23
|
check: "kapisel__check",
|
|
24
24
|
status: "kapisel__status"
|
|
25
25
|
});
|
|
26
|
-
//#endregion
|
|
27
26
|
export { t as SELECT_SLOTS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/sliderLogic.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
let t = String(e), n = t.indexOf(".");
|
|
4
4
|
return n === -1 ? 0 : t.length - n - 1;
|
|
@@ -13,5 +13,4 @@ var e = (e) => {
|
|
|
13
13
|
let r = (e - t) / (n - t) * 100;
|
|
14
14
|
return Math.min(100, Math.max(0, r));
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { t as clampToStep, n as percentOf };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/tagInputLogic.ts
|
|
2
2
|
var e = /[,\r\n]/, t = /[,\r\n]+/, n = (t) => e.test(t), r = (e) => e.split(t).map((e) => e.trim()).filter(Boolean), i = (t) => {
|
|
3
3
|
let n = t.split(e), r = (n.pop() ?? "").trimStart();
|
|
4
4
|
return {
|
|
@@ -36,5 +36,4 @@ var e = /[,\r\n]/, t = /[,\r\n]+/, n = (t) => e.test(t), r = (e) => e.split(t).m
|
|
|
36
36
|
rejected: l
|
|
37
37
|
};
|
|
38
38
|
}, s = (e, t) => e.filter((e, n) => n !== t);
|
|
39
|
-
//#endregion
|
|
40
39
|
export { o as addTags, n as hasSeparator, s as removeTagAt, a as spliceText, i as splitDraft, r as splitTags };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/inputs/textareaLogic.ts
|
|
2
2
|
var e = (e, { minHeight: t, maxHeight: n }) => {
|
|
3
3
|
let r = Math.max(e, t);
|
|
4
4
|
return n !== void 0 && r > n ? {
|
|
@@ -9,5 +9,4 @@ var e = (e, { minHeight: t, maxHeight: n }) => {
|
|
|
9
9
|
overflowing: !1
|
|
10
10
|
};
|
|
11
11
|
}, t = (e, t, n) => Math.round(e * t + n);
|
|
12
|
-
//#endregion
|
|
13
12
|
export { e as autosizeHeight, t as rowsToHeight };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { activeElementOf as e } from "../../hooks/ownerDocument.js";
|
|
3
3
|
import { useRef as t, useState as n } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/inputs/useCalendarFocus.ts
|
|
5
5
|
var r = (r) => {
|
|
6
6
|
let i = t(null), a = t(!1), [o, s] = n(0);
|
|
7
7
|
return {
|
|
@@ -22,5 +22,4 @@ var r = (r) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { r as useCalendarFocus };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { usePlacement as e } from "../../hooks/usePlacement.js";
|
|
2
|
-
|
|
2
|
+
// src/components/inputs/useDatePopSide.ts
|
|
3
3
|
var t = {
|
|
4
4
|
side: "bottom",
|
|
5
5
|
align: "start",
|
|
@@ -16,5 +16,4 @@ var t = {
|
|
|
16
16
|
});
|
|
17
17
|
return a?.side === "top" ? "top" : "bottom";
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { t as DATE_POP_PLACEMENT, n as useDatePopSide };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
3
|
-
|
|
3
|
+
// src/components/inputs/useSelectCreate.ts
|
|
4
4
|
var r = ({ onCreate: r, onSettled: i, open: a }) => {
|
|
5
5
|
let [o, s] = n(!1), c = t(!1), [l, u] = n(!1), d = t(i);
|
|
6
6
|
return e(() => {
|
|
@@ -31,5 +31,4 @@ var r = ({ onCreate: r, onSettled: i, open: a }) => {
|
|
|
31
31
|
resetError: () => u(!1)
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { r as useSelectCreate };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useAsyncLoader as e } from "../../hooks/useAsyncLoader.js";
|
|
3
|
+
import { filterOptions as t, selectedOptions as n } from "./selectLogic.js";
|
|
4
|
+
import { mergeKnownOptions as r, selectedFromKnown as i } from "./asyncSelectLogic.js";
|
|
5
5
|
import { useMemo as a, useState as o } from "react";
|
|
6
|
-
|
|
6
|
+
// src/components/inputs/useSelectSource.ts
|
|
7
7
|
var s = ({ options: s, loadOptions: c, loadDelay: l, reloadKey: u, creatable: d, searchable: f, query: p, open: m, current: h, onLoaded: g }) => {
|
|
8
|
-
let _ = c !== void 0, v = p.trim(), y = _ || d, [b, x] = o(() => y ?
|
|
9
|
-
y && S !== s && (C(s), x((e) =>
|
|
10
|
-
let w = _ && (v !== "" || s.length === 0), T =
|
|
8
|
+
let _ = c !== void 0, v = p.trim(), y = _ || d, [b, x] = o(() => y ? r(/* @__PURE__ */ new Map(), s) : /* @__PURE__ */ new Map()), [S, C] = o(s);
|
|
9
|
+
y && S !== s && (C(s), x((e) => r(e, s)));
|
|
10
|
+
let w = _ && (v !== "" || s.length === 0), T = e({
|
|
11
11
|
query: v,
|
|
12
12
|
enabled: w && m,
|
|
13
13
|
load: c,
|
|
14
14
|
delay: l,
|
|
15
15
|
reloadKey: u,
|
|
16
16
|
onLoaded: (e, t) => {
|
|
17
|
-
x((t) =>
|
|
17
|
+
x((t) => r(t, e)), g(e, t);
|
|
18
18
|
}
|
|
19
|
-
}).result, E = T !== null, D = w && m && !E, O = w && E && T.error, k = a(() => y ?
|
|
19
|
+
}).result, E = T !== null, D = w && m && !E, O = w && E && T.error, k = a(() => y ? i(b, h) : n(s, h), [
|
|
20
20
|
y,
|
|
21
21
|
b,
|
|
22
22
|
s,
|
|
@@ -24,7 +24,7 @@ var s = ({ options: s, loadOptions: c, loadDelay: l, reloadKey: u, creatable: d,
|
|
|
24
24
|
]);
|
|
25
25
|
return {
|
|
26
26
|
isAsync: _,
|
|
27
|
-
filtered: a(() => w ? T?.data ?? [] : _ ? s : f ?
|
|
27
|
+
filtered: a(() => w ? T?.data ?? [] : _ ? s : f ? t(s, p) : s, [
|
|
28
28
|
w,
|
|
29
29
|
T,
|
|
30
30
|
_,
|
|
@@ -35,8 +35,7 @@ var s = ({ options: s, loadOptions: c, loadDelay: l, reloadKey: u, creatable: d,
|
|
|
35
35
|
selected: k,
|
|
36
36
|
asyncLoading: D,
|
|
37
37
|
loadError: O,
|
|
38
|
-
remember: (e) => x((t) =>
|
|
38
|
+
remember: (e) => x((t) => r(t, e))
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
//#endregion
|
|
42
41
|
export { s as useSelectSource };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/labelsLogic.ts
|
|
2
2
|
var e = (e, t) => {
|
|
3
3
|
let n = { ...e };
|
|
4
4
|
if (t) for (let e of Object.keys(t)) {
|
|
@@ -7,5 +7,4 @@ var e = (e, t) => {
|
|
|
7
7
|
}
|
|
8
8
|
return n;
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { e as withLabels };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/layout/KapiAccessCard.css";
|
|
3
|
-
import {
|
|
4
|
-
import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
|
|
5
|
-
import { useLabels as n } from "../locale/KapiLocaleProvider.js";
|
|
6
|
-
import { DEFAULT_LINK_LABELS as r } from "../locale/linkLabels.js";
|
|
7
|
-
import { accessCardAffordance as i, accessCardClasses as a, isActivationKey as o, linkAttrs as s } from "./accessCardLogic.js";
|
|
3
|
+
import { accessCardAffordance as e, accessCardClasses as t, isActivationKey as n, linkAttrs as r } from "./accessCardLogic.js";
|
|
8
4
|
/* empty css */
|
|
5
|
+
import { useLabels as i } from "../locale/KapiLocaleProvider.js";
|
|
6
|
+
import { DEFAULT_LINK_LABELS as a } from "../locale/linkLabels.js";
|
|
7
|
+
import { useMergedRefs as o } from "../../hooks/mergeRefs.js";
|
|
8
|
+
import { useToneLook as s } from "../../hooks/useToneFamilies.js";
|
|
9
9
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { ChevronRight as d, ExternalLink as f } from "lucide-react";
|
|
11
|
-
|
|
11
|
+
// src/components/layout/KapiAccessCard.tsx
|
|
12
12
|
var p = ({ icon: p, tone: m, title: h, description: g, external: _ = !1, href: v, newTab: y, onClick: b, className: x, style: S, id: C, ref: w, labels: T }) => {
|
|
13
|
-
let E =
|
|
13
|
+
let E = i("link", a, T), D = o(w), O = s("KapiAccessCard", m), k = t({
|
|
14
14
|
tone: O.tone,
|
|
15
15
|
className: x
|
|
16
16
|
}), A = O.style ? {
|
|
@@ -32,7 +32,7 @@ var p = ({ icon: p, tone: m, title: h, description: g, external: _ = !1, href: v
|
|
|
32
32
|
children: g
|
|
33
33
|
})]
|
|
34
34
|
}),
|
|
35
|
-
|
|
35
|
+
e(_) === "external" ? /* @__PURE__ */ l(f, {
|
|
36
36
|
className: "kapi-accesscard__go kapi-accesscard__go--ext",
|
|
37
37
|
size: 16,
|
|
38
38
|
"aria-hidden": "true"
|
|
@@ -51,7 +51,7 @@ var p = ({ icon: p, tone: m, title: h, description: g, external: _ = !1, href: v
|
|
|
51
51
|
tabIndex: 0,
|
|
52
52
|
onClick: b,
|
|
53
53
|
onKeyDown: (e) => {
|
|
54
|
-
|
|
54
|
+
n(e.key) && (e.preventDefault(), b?.());
|
|
55
55
|
},
|
|
56
56
|
children: j
|
|
57
57
|
}) : /* @__PURE__ */ u("a", {
|
|
@@ -60,7 +60,7 @@ var p = ({ icon: p, tone: m, title: h, description: g, external: _ = !1, href: v
|
|
|
60
60
|
style: A,
|
|
61
61
|
id: C,
|
|
62
62
|
href: v,
|
|
63
|
-
...
|
|
63
|
+
...r({
|
|
64
64
|
external: _,
|
|
65
65
|
newTab: y
|
|
66
66
|
}),
|
|
@@ -70,5 +70,4 @@ var p = ({ icon: p, tone: m, title: h, description: g, external: _ = !1, href: v
|
|
|
70
70
|
})]
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
-
//#endregion
|
|
74
73
|
export { p as KapiAccessCard };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/overlays.css";
|
|
3
3
|
import "#kapi-css/components/layout/KapiAccountMenu.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { enabledIndexes as
|
|
9
|
-
import {
|
|
4
|
+
import { useKapiTheme as e } from "../../hooks/useKapiTheme.js";
|
|
5
|
+
import { useLabels as t } from "../locale/KapiLocaleProvider.js";
|
|
6
|
+
import { initialsFrom as n } from "../display/avatarLogic.js";
|
|
7
|
+
import { useExitPresence as ee } from "../overlays/useExitPresence.js";
|
|
8
|
+
import { enabledIndexes as te, focusedMenuIndex as ne, menuKeyIntent as re, nextEnabledIndex as r } from "../overlays/menuKeyboardLogic.js";
|
|
9
|
+
import { isActionMenuItem as i, submenuKeyAction as a } from "../overlays/menuButtonLogic.js";
|
|
10
|
+
import { MenuEntry as o, useMenuSubmenus as s } from "../overlays/menuList.js";
|
|
11
|
+
import { DEFAULT_LINK_LABELS as c } from "../locale/linkLabels.js";
|
|
12
|
+
import { joinClasses as l } from "../rootProps.js";
|
|
10
13
|
/* empty css */
|
|
11
|
-
import { useExitPresence as o } from "../overlays/useExitPresence.js";
|
|
12
|
-
import { isActionMenuItem as s, submenuKeyAction as c } from "../overlays/menuButtonLogic.js";
|
|
13
|
-
import { DEFAULT_LINK_LABELS as l } from "../locale/linkLabels.js";
|
|
14
|
-
import { MenuEntry as u, useMenuSubmenus as d } from "../overlays/menuList.js";
|
|
15
|
-
import { useFocusReturn as f } from "../../hooks/useFocusReturn.js";
|
|
16
|
-
import { initialsFrom as p } from "../display/avatarLogic.js";
|
|
17
|
-
import { useKapiTheme as re } from "../../hooks/useKapiTheme.js";
|
|
18
14
|
/* empty css */
|
|
15
|
+
import { useMergedRefs as u } from "../../hooks/mergeRefs.js";
|
|
16
|
+
import { useDismiss as d } from "../../hooks/useDismiss.js";
|
|
17
|
+
import { useFocusReturn as f } from "../../hooks/useFocusReturn.js";
|
|
18
|
+
import { activeElementOf as p } from "../../hooks/ownerDocument.js";
|
|
19
19
|
import { useEffect as ie, useId as m, useRef as ae } from "react";
|
|
20
20
|
import { Fragment as oe, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
21
21
|
import { Bell as se, LogOut as ce, Settings as le, User as ue } from "lucide-react";
|
|
22
|
-
|
|
22
|
+
// src/components/layout/KapiAccountMenu.tsx
|
|
23
23
|
var _ = {
|
|
24
24
|
notifications: "Notificaciones",
|
|
25
25
|
profile: "Mi perfil",
|
|
@@ -50,7 +50,7 @@ var _ = {
|
|
|
50
50
|
});
|
|
51
51
|
}, b = "[role=\"menuitem\"], [role=\"menuitemradio\"], [role=\"menuitemcheckbox\"]", x = [], S = [];
|
|
52
52
|
function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifications: E, onProfile: D, onConfig: O, onLogout: k, items: A, hideBuiltins: j = S, labels: M, id: N, ref: P, triggerRef: F, className: I, style: de }) {
|
|
53
|
-
let { preference: L, setPreference: R } =
|
|
53
|
+
let { preference: L, setPreference: R } = e(), z = t("accountMenu", _, M), B = t("link", c), V = A ?? x, H = s(V), U = (e) => !j.includes(e), fe = [
|
|
54
54
|
{
|
|
55
55
|
key: "light",
|
|
56
56
|
label: z.themeLight
|
|
@@ -63,7 +63,7 @@ function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifica
|
|
|
63
63
|
key: "system",
|
|
64
64
|
label: z.themeSystem
|
|
65
65
|
}
|
|
66
|
-
], W = ae(null), pe =
|
|
66
|
+
], W = ae(null), pe = u(W, P), { present: me, closing: G } = ee(m, W), K = () => Array.from(W.current?.querySelectorAll(b) ?? []).filter((e) => e.closest("[role=\"menu\"]") === W.current), q = (e) => te(e.length, (t) => e[t].getAttribute("aria-disabled") === "true"), { restore: J } = f(m, {
|
|
67
67
|
container: W,
|
|
68
68
|
target: F
|
|
69
69
|
}), Y = (e) => {
|
|
@@ -74,7 +74,7 @@ function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifica
|
|
|
74
74
|
let e = K();
|
|
75
75
|
e[q(e)[0] ?? -1]?.focus();
|
|
76
76
|
}, [m]);
|
|
77
|
-
let he =
|
|
77
|
+
let he = d(m, {
|
|
78
78
|
zones: [W],
|
|
79
79
|
outside: !1,
|
|
80
80
|
onDismiss: (e) => Y(e)
|
|
@@ -83,17 +83,17 @@ function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifica
|
|
|
83
83
|
let X = (e) => () => {
|
|
84
84
|
e?.(), Y("item-selected");
|
|
85
85
|
}, ge = (e) => {
|
|
86
|
-
let t =
|
|
86
|
+
let t = re(e.key);
|
|
87
87
|
if (t.kind === "move") {
|
|
88
88
|
e.preventDefault();
|
|
89
89
|
let n = K();
|
|
90
|
-
n[
|
|
91
|
-
} else
|
|
90
|
+
n[r(ne(p(e.currentTarget)), t.dir, q(n))]?.focus();
|
|
91
|
+
} else a(e.key, {
|
|
92
92
|
hasSubmenu: Z() >= 0,
|
|
93
93
|
nested: !1
|
|
94
94
|
}) === "open" ? (e.preventDefault(), H.openSub(Z(), !0)) : t.kind === "close" && !t.returnFocus ? (J(), C("outside")) : he(e);
|
|
95
95
|
}, Z = () => {
|
|
96
|
-
let e =
|
|
96
|
+
let e = p(W.current), t = H.itemEls.current.findIndex((t) => t !== null && t === e);
|
|
97
97
|
return t >= 0 && H.hasSubmenu(t) ? t : -1;
|
|
98
98
|
}, _e = (e, t) => {
|
|
99
99
|
e.onClick?.(t), e.keepOpen || Y("item-selected");
|
|
@@ -109,7 +109,7 @@ function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifica
|
|
|
109
109
|
}), /* @__PURE__ */ g("div", {
|
|
110
110
|
ref: pe,
|
|
111
111
|
id: N,
|
|
112
|
-
className:
|
|
112
|
+
className: l("kapi-acct", I),
|
|
113
113
|
style: de,
|
|
114
114
|
role: "menu",
|
|
115
115
|
"data-closing": G || void 0,
|
|
@@ -120,7 +120,7 @@ function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifica
|
|
|
120
120
|
className: "kapi-acct__head",
|
|
121
121
|
children: [/* @__PURE__ */ h("span", {
|
|
122
122
|
className: "kapi-acct__av",
|
|
123
|
-
children: w.initials ??
|
|
123
|
+
children: w.initials ?? n(w.name)
|
|
124
124
|
}), /* @__PURE__ */ g("div", {
|
|
125
125
|
className: "kapi-acct__who",
|
|
126
126
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -182,7 +182,7 @@ function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifica
|
|
|
182
182
|
V.map((e, t) => e.sep ? /* @__PURE__ */ h("div", {
|
|
183
183
|
role: "separator",
|
|
184
184
|
className: "kapi-acct__sep"
|
|
185
|
-
}, `s${t}`) :
|
|
185
|
+
}, `s${t}`) : i(e) ? /* @__PURE__ */ h(o, {
|
|
186
186
|
...H.entryProps(t),
|
|
187
187
|
item: e,
|
|
188
188
|
index: Q++,
|
|
@@ -228,5 +228,4 @@ function C({ open: m, onClose: C, user: w, notificationsCount: T = 0, onNotifica
|
|
|
228
228
|
})]
|
|
229
229
|
})] });
|
|
230
230
|
}
|
|
231
|
-
//#endregion
|
|
232
231
|
export { _ as DEFAULT_ACCOUNT_MENU_LABELS, C as KapiAccountMenu };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/layout/KapiBox.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { renderSlot as e } from "../renderSlot.js";
|
|
4
|
+
import { joinClasses as t } from "../rootProps.js";
|
|
5
5
|
import { boxStyle as n } from "./layoutPrimitives.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/layout/KapiBox.tsx
|
|
9
9
|
var i = ({ as: i = "div", pad: a, padX: o, padY: s, render: c, className: l, style: u, ref: d, children: f, ...p }) => {
|
|
10
10
|
let m = {
|
|
11
|
-
className:
|
|
11
|
+
className: t("kapi-box", l),
|
|
12
12
|
style: n({
|
|
13
13
|
pad: a,
|
|
14
14
|
padX: o,
|
|
@@ -17,10 +17,9 @@ var i = ({ as: i = "div", pad: a, padX: o, padY: s, render: c, className: l, sty
|
|
|
17
17
|
}),
|
|
18
18
|
...p
|
|
19
19
|
}, h = i;
|
|
20
|
-
return
|
|
20
|
+
return e(c, m, {
|
|
21
21
|
ref: d,
|
|
22
22
|
children: f
|
|
23
23
|
}, (e) => /* @__PURE__ */ r(h, { ...e }));
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { i as KapiBox };
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/layout/KapiCard.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cardClasses as e, hasCardHeader as t } from "./cardLogic.js";
|
|
4
|
+
import { slot as n } from "../slotsLogic.js";
|
|
5
5
|
import { CARD_SLOTS as r } from "./cardSlots.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
function o({ title:
|
|
8
|
+
// src/components/layout/KapiCard.tsx
|
|
9
|
+
function o({ title: e, actions: t, className: o, classNames: s, children: c, ...l }) {
|
|
10
10
|
return /* @__PURE__ */ a("div", {
|
|
11
11
|
...l,
|
|
12
|
-
...
|
|
12
|
+
...n(r, "header", s, o),
|
|
13
13
|
children: [
|
|
14
|
-
|
|
15
|
-
...
|
|
16
|
-
children:
|
|
14
|
+
e != null && /* @__PURE__ */ i("span", {
|
|
15
|
+
...n(r, "title", s),
|
|
16
|
+
children: e
|
|
17
17
|
}),
|
|
18
18
|
c,
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
children:
|
|
19
|
+
t != null && /* @__PURE__ */ i("span", {
|
|
20
|
+
...n(r, "actions", s),
|
|
21
|
+
children: t
|
|
22
22
|
})
|
|
23
23
|
]
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function s({ className:
|
|
26
|
+
function s({ className: e, classNames: t, ...a }) {
|
|
27
27
|
return /* @__PURE__ */ i("div", {
|
|
28
28
|
...a,
|
|
29
|
-
...
|
|
29
|
+
...n(r, "body", t, e)
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function c({ className:
|
|
32
|
+
function c({ className: e, classNames: t, ...a }) {
|
|
33
33
|
return /* @__PURE__ */ i("div", {
|
|
34
34
|
...a,
|
|
35
|
-
...
|
|
35
|
+
...n(r, "footer", t, e)
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
function l({ title: l, actions: u, footer: d, flush: f = !1, responsive: p = !1, interactive: m = !1, className: h, classNames: g, children: _, ...v }) {
|
|
39
|
-
let y =
|
|
39
|
+
let y = t(l, u) || d != null;
|
|
40
40
|
return /* @__PURE__ */ a("div", {
|
|
41
41
|
...v,
|
|
42
|
-
...
|
|
42
|
+
...n(r, "root", g, e({
|
|
43
43
|
flush: f,
|
|
44
44
|
responsive: p,
|
|
45
45
|
interactive: m,
|
|
46
46
|
className: h
|
|
47
47
|
})),
|
|
48
48
|
children: [
|
|
49
|
-
|
|
49
|
+
t(l, u) && /* @__PURE__ */ i(o, {
|
|
50
50
|
title: l,
|
|
51
51
|
actions: u,
|
|
52
52
|
classNames: g
|
|
@@ -62,5 +62,4 @@ function l({ title: l, actions: u, footer: d, flush: f = !1, responsive: p = !1,
|
|
|
62
62
|
]
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { l as KapiCard, s as KapiCardBody, c as KapiCardFooter, o as KapiCardHeader };
|
|
@@ -3,7 +3,7 @@ import "#kapi-css/components/layout/layout-primitives.css";
|
|
|
3
3
|
import { clusterProps as e } from "./layoutPrimitives.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/layout/KapiCenter.tsx
|
|
7
7
|
function n({ gap: n, className: r, style: i, children: a, ...o }) {
|
|
8
8
|
let s = e({
|
|
9
9
|
gap: n,
|
|
@@ -19,5 +19,4 @@ function n({ gap: n, className: r, style: i, children: a, ...o }) {
|
|
|
19
19
|
children: a
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { n as KapiCenter };
|
|
@@ -3,7 +3,7 @@ import "#kapi-css/components/layout/layout-primitives.css";
|
|
|
3
3
|
import { clusterProps as e } from "./layoutPrimitives.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/layout/KapiCluster.tsx
|
|
7
7
|
function n({ gap: n, justify: r, align: i, wrap: a, className: o, style: s, children: c, ...l }) {
|
|
8
8
|
return /* @__PURE__ */ t("div", {
|
|
9
9
|
...l,
|
|
@@ -18,5 +18,4 @@ function n({ gap: n, justify: r, align: i, wrap: a, className: o, style: s, chil
|
|
|
18
18
|
children: c
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { n as KapiCluster };
|
|
@@ -4,7 +4,7 @@ import { joinClasses as e } from "../rootProps.js";
|
|
|
4
4
|
import { colStyle as t } from "./gridSpanLogic.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { jsx as n } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/layout/KapiCol.tsx
|
|
8
8
|
var r = ({ span: r, offset: i, order: a, className: o, style: s, ref: c, children: l, ...u }) => /* @__PURE__ */ n("div", {
|
|
9
9
|
...u,
|
|
10
10
|
ref: c,
|
|
@@ -19,5 +19,4 @@ var r = ({ span: r, offset: i, order: a, className: o, style: s, ref: c, childre
|
|
|
19
19
|
},
|
|
20
20
|
children: l
|
|
21
21
|
});
|
|
22
|
-
//#endregion
|
|
23
22
|
export { r as KapiCol };
|
|
@@ -3,7 +3,7 @@ import "#kapi-css/components/layout/KapiCollapse.css";
|
|
|
3
3
|
import { joinClasses as e } from "../rootProps.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/layout/KapiCollapse.tsx
|
|
7
7
|
function n({ open: n = !1, children: r, className: i, ...a }) {
|
|
8
8
|
return /* @__PURE__ */ t("div", {
|
|
9
9
|
...a,
|
|
@@ -16,5 +16,4 @@ function n({ open: n = !1, children: r, className: i, ...a }) {
|
|
|
16
16
|
})
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { n as KapiCollapse };
|