@keepkit/ui 0.28.16 → 0.28.18
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 +226 -5
- package/dist/chunk-4O5N26YS.js +218 -0
- package/dist/chunk-4O5N26YS.js.map +1 -0
- package/dist/chunk-5ETQGHPV.js +307 -0
- package/dist/chunk-5ETQGHPV.js.map +1 -0
- package/dist/chunk-5SFHCUDA.js +200 -0
- package/dist/chunk-5SFHCUDA.js.map +1 -0
- package/dist/chunk-6753KF4D.js +357 -0
- package/dist/chunk-6753KF4D.js.map +1 -0
- package/dist/chunk-6JKG6SKJ.js +234 -0
- package/dist/chunk-6JKG6SKJ.js.map +1 -0
- package/dist/chunk-7DCSOVGM.js +23 -0
- package/dist/chunk-7DCSOVGM.js.map +1 -0
- package/dist/chunk-7DOB3Z6F.js +565 -0
- package/dist/chunk-7DOB3Z6F.js.map +1 -0
- package/dist/chunk-AQOSZ6AW.js +287 -0
- package/dist/chunk-AQOSZ6AW.js.map +1 -0
- package/dist/chunk-BJCZ7MFN.js +322 -0
- package/dist/chunk-BJCZ7MFN.js.map +1 -0
- package/dist/chunk-BW4SUJIX.js +135 -0
- package/dist/chunk-BW4SUJIX.js.map +1 -0
- package/dist/chunk-BYYWJGSN.js +220 -0
- package/dist/chunk-BYYWJGSN.js.map +1 -0
- package/dist/chunk-CIVXLU4D.js +111 -0
- package/dist/chunk-CIVXLU4D.js.map +1 -0
- package/dist/chunk-DMDBZJPO.js +37 -0
- package/dist/chunk-DMDBZJPO.js.map +1 -0
- package/dist/chunk-DQ5RMIU5.js +112 -0
- package/dist/chunk-DQ5RMIU5.js.map +1 -0
- package/dist/chunk-G2JWJKST.js +95 -0
- package/dist/chunk-G2JWJKST.js.map +1 -0
- package/dist/chunk-G76JVCNJ.js +55 -0
- package/dist/chunk-G76JVCNJ.js.map +1 -0
- package/dist/chunk-GZEFBTVD.js +37 -0
- package/dist/chunk-GZEFBTVD.js.map +1 -0
- package/dist/chunk-HFXB4S72.js +160 -0
- package/dist/chunk-HFXB4S72.js.map +1 -0
- package/dist/chunk-JJ4L5AKR.js +389 -0
- package/dist/chunk-JJ4L5AKR.js.map +1 -0
- package/dist/chunk-K2L44I7D.js +152 -0
- package/dist/chunk-K2L44I7D.js.map +1 -0
- package/dist/chunk-LKNVVPTN.js +210 -0
- package/dist/chunk-LKNVVPTN.js.map +1 -0
- package/dist/chunk-M3UORQXZ.js +2983 -0
- package/dist/chunk-M3UORQXZ.js.map +1 -0
- package/dist/chunk-M46GROWD.js +116 -0
- package/dist/chunk-M46GROWD.js.map +1 -0
- package/dist/chunk-MMGM7JIE.js +141 -0
- package/dist/chunk-MMGM7JIE.js.map +1 -0
- package/dist/chunk-NOPTRHRR.js +26 -0
- package/dist/chunk-NOPTRHRR.js.map +1 -0
- package/dist/chunk-NSYL6RSY.js +20 -0
- package/dist/chunk-NSYL6RSY.js.map +1 -0
- package/dist/chunk-NVFKN4NU.js +94 -0
- package/dist/chunk-NVFKN4NU.js.map +1 -0
- package/dist/chunk-P2WLTFPG.js +46 -0
- package/dist/chunk-P2WLTFPG.js.map +1 -0
- package/dist/chunk-PE57SLZO.js +798 -0
- package/dist/chunk-PE57SLZO.js.map +1 -0
- package/dist/chunk-PHFY6LQT.js +167 -0
- package/dist/chunk-PHFY6LQT.js.map +1 -0
- package/dist/chunk-PZHARNLY.js +208 -0
- package/dist/chunk-PZHARNLY.js.map +1 -0
- package/dist/chunk-Q6AFJL4Y.js +318 -0
- package/dist/chunk-Q6AFJL4Y.js.map +1 -0
- package/dist/chunk-Q7IEJ2YF.js +49 -0
- package/dist/chunk-Q7IEJ2YF.js.map +1 -0
- package/dist/chunk-QOCX37A5.js +69 -0
- package/dist/chunk-QOCX37A5.js.map +1 -0
- package/dist/chunk-RIWL3IPZ.js +46 -0
- package/dist/chunk-RIWL3IPZ.js.map +1 -0
- package/dist/chunk-RKYQGWKB.js +229 -0
- package/dist/chunk-RKYQGWKB.js.map +1 -0
- package/dist/chunk-SYLOO5TX.js +504 -0
- package/dist/chunk-SYLOO5TX.js.map +1 -0
- package/dist/chunk-URE4EGL2.js +206 -0
- package/dist/chunk-URE4EGL2.js.map +1 -0
- package/dist/chunk-VM4ROXYF.js +114 -0
- package/dist/chunk-VM4ROXYF.js.map +1 -0
- package/dist/chunk-VTPSR3LD.js +16 -0
- package/dist/chunk-VTPSR3LD.js.map +1 -0
- package/dist/chunk-WB6NBGC2.js +112 -0
- package/dist/chunk-WB6NBGC2.js.map +1 -0
- package/dist/chunk-XJFMMRQR.js +110 -0
- package/dist/chunk-XJFMMRQR.js.map +1 -0
- package/dist/chunk-XKWDO5VL.js +156 -0
- package/dist/chunk-XKWDO5VL.js.map +1 -0
- package/dist/chunk-XVOLYEUK.js +65 -0
- package/dist/chunk-XVOLYEUK.js.map +1 -0
- package/dist/chunk-YCUQ2YTP.js +169 -0
- package/dist/chunk-YCUQ2YTP.js.map +1 -0
- package/dist/chunk-ZCDLWGQV.js +140 -0
- package/dist/chunk-ZCDLWGQV.js.map +1 -0
- package/dist/collection-select-X6WKM--x.d.ts +25 -0
- package/dist/entries/active-filters-summary.d.ts +58 -0
- package/dist/entries/active-filters-summary.js +10 -0
- package/dist/entries/active-filters-summary.js.map +1 -0
- package/dist/entries/announcements.d.ts +4 -0
- package/dist/entries/announcements.js +11 -0
- package/dist/entries/announcements.js.map +1 -0
- package/dist/entries/announcer.d.ts +4 -0
- package/dist/entries/announcer.js +11 -0
- package/dist/entries/announcer.js.map +1 -0
- package/dist/entries/archive-button.d.ts +4 -0
- package/dist/entries/archive-button.js +9 -0
- package/dist/entries/archive-button.js.map +1 -0
- package/dist/entries/archive-scope-select.d.ts +13 -0
- package/dist/entries/archive-scope-select.js +9 -0
- package/dist/entries/archive-scope-select.js.map +1 -0
- package/dist/entries/archive-undo.d.ts +6 -0
- package/dist/entries/archive-undo.js +10 -0
- package/dist/entries/archive-undo.js.map +1 -0
- package/dist/entries/backup.d.ts +19 -0
- package/dist/entries/backup.js +10 -0
- package/dist/entries/backup.js.map +1 -0
- package/dist/entries/bulk-actions.d.ts +60 -0
- package/dist/entries/bulk-actions.js +12 -0
- package/dist/entries/bulk-actions.js.map +1 -0
- package/dist/entries/button.d.ts +21 -0
- package/dist/entries/button.js +10 -0
- package/dist/entries/button.js.map +1 -0
- package/dist/entries/collection-create.d.ts +19 -0
- package/dist/entries/collection-create.js +10 -0
- package/dist/entries/collection-create.js.map +1 -0
- package/dist/entries/collection-filter.d.ts +3 -0
- package/dist/entries/collection-filter.js +10 -0
- package/dist/entries/collection-filter.js.map +1 -0
- package/dist/entries/collection-manager.d.ts +29 -0
- package/dist/entries/collection-manager.js +12 -0
- package/dist/entries/collection-manager.js.map +1 -0
- package/dist/entries/collection-select.d.ts +3 -0
- package/dist/entries/collection-select.js +10 -0
- package/dist/entries/collection-select.js.map +1 -0
- package/dist/entries/collection.d.ts +11 -0
- package/dist/entries/collection.js +32 -0
- package/dist/entries/collection.js.map +1 -0
- package/dist/entries/empty-state.d.ts +17 -0
- package/dist/entries/empty-state.js +10 -0
- package/dist/entries/empty-state.js.map +1 -0
- package/dist/entries/error-boundary.d.ts +1 -0
- package/dist/entries/error-boundary.js +8 -0
- package/dist/entries/error-boundary.js.map +1 -0
- package/dist/entries/fallback-recovery.d.ts +12 -0
- package/dist/entries/fallback-recovery.js +9 -0
- package/dist/entries/fallback-recovery.js.map +1 -0
- package/dist/entries/floating-tour.d.ts +23 -0
- package/dist/entries/floating-tour.js +14 -0
- package/dist/entries/floating-tour.js.map +1 -0
- package/dist/entries/highlight.d.ts +2 -0
- package/dist/entries/highlight.js +8 -0
- package/dist/entries/highlight.js.map +1 -0
- package/dist/entries/inbox.d.ts +19 -0
- package/dist/entries/inbox.js +33 -0
- package/dist/entries/inbox.js.map +1 -0
- package/dist/entries/item-card-skeleton.d.ts +20 -0
- package/dist/entries/item-card-skeleton.js +8 -0
- package/dist/entries/item-card-skeleton.js.map +1 -0
- package/dist/entries/item-card.d.ts +412 -0
- package/dist/entries/item-card.js +17 -0
- package/dist/entries/item-card.js.map +1 -0
- package/dist/entries/item-checkbox.d.ts +14 -0
- package/dist/entries/item-checkbox.js +8 -0
- package/dist/entries/item-checkbox.js.map +1 -0
- package/dist/entries/item-status-badge.d.ts +13 -0
- package/dist/entries/item-status-badge.js +10 -0
- package/dist/entries/item-status-badge.js.map +1 -0
- package/dist/entries/kit-provider.d.ts +18 -0
- package/dist/entries/kit-provider.js +14 -0
- package/dist/entries/kit-provider.js.map +1 -0
- package/dist/entries/last-activity.d.ts +12 -0
- package/dist/entries/last-activity.js +9 -0
- package/dist/entries/last-activity.js.map +1 -0
- package/dist/entries/layout.d.ts +21 -0
- package/dist/entries/layout.js +9 -0
- package/dist/entries/layout.js.map +1 -0
- package/dist/entries/list.d.ts +11 -0
- package/dist/entries/list.js +23 -0
- package/dist/entries/list.js.map +1 -0
- package/dist/entries/navigator.d.ts +4 -0
- package/dist/entries/navigator.js +11 -0
- package/dist/entries/navigator.js.map +1 -0
- package/dist/entries/note-editor.d.ts +32 -0
- package/dist/entries/note-editor.js +11 -0
- package/dist/entries/note-editor.js.map +1 -0
- package/dist/entries/pagination.d.ts +3 -0
- package/dist/entries/pagination.js +9 -0
- package/dist/entries/pagination.js.map +1 -0
- package/dist/entries/pin-button.d.ts +4 -0
- package/dist/entries/pin-button.js +9 -0
- package/dist/entries/pin-button.js.map +1 -0
- package/dist/entries/provider.d.ts +1 -0
- package/dist/entries/provider.js +8 -0
- package/dist/entries/provider.js.map +1 -0
- package/dist/entries/prune-stale-button.d.ts +3 -0
- package/dist/entries/prune-stale-button.js +12 -0
- package/dist/entries/prune-stale-button.js.map +1 -0
- package/dist/entries/quick-editor.d.ts +3 -0
- package/dist/entries/quick-editor.js +11 -0
- package/dist/entries/quick-editor.js.map +1 -0
- package/dist/entries/rediscovery-panel.d.ts +12 -0
- package/dist/entries/rediscovery-panel.js +24 -0
- package/dist/entries/rediscovery-panel.js.map +1 -0
- package/dist/entries/rediscovery.d.ts +12 -0
- package/dist/entries/rediscovery.js +24 -0
- package/dist/entries/rediscovery.js.map +1 -0
- package/dist/entries/reorderable-list.d.ts +35 -0
- package/dist/entries/reorderable-list.js +10 -0
- package/dist/entries/reorderable-list.js.map +1 -0
- package/dist/entries/save-popover.d.ts +39 -0
- package/dist/entries/save-popover.js +15 -0
- package/dist/entries/save-popover.js.map +1 -0
- package/dist/entries/save-view-button.d.ts +3 -0
- package/dist/entries/save-view-button.js +9 -0
- package/dist/entries/save-view-button.js.map +1 -0
- package/dist/entries/saved-views.d.ts +3 -0
- package/dist/entries/saved-views.js +9 -0
- package/dist/entries/saved-views.js.map +1 -0
- package/dist/entries/search-input.d.ts +3 -0
- package/dist/entries/search-input.js +9 -0
- package/dist/entries/search-input.js.map +1 -0
- package/dist/entries/shortcut-hint.d.ts +11 -0
- package/dist/entries/shortcut-hint.js +8 -0
- package/dist/entries/shortcut-hint.js.map +1 -0
- package/dist/entries/sort-select.d.ts +3 -0
- package/dist/entries/sort-select.js +9 -0
- package/dist/entries/sort-select.js.map +1 -0
- package/dist/entries/stale-notice.d.ts +3 -0
- package/dist/entries/stale-notice.js +12 -0
- package/dist/entries/stale-notice.js.map +1 -0
- package/dist/entries/status.d.ts +4 -0
- package/dist/entries/status.js +11 -0
- package/dist/entries/status.js.map +1 -0
- package/dist/entries/sync-recovery-dialog.d.ts +18 -0
- package/dist/entries/sync-recovery-dialog.js +11 -0
- package/dist/entries/sync-recovery-dialog.js.map +1 -0
- package/dist/entries/sync-status-banner.d.ts +12 -0
- package/dist/entries/sync-status-banner.js +10 -0
- package/dist/entries/sync-status-banner.js.map +1 -0
- package/dist/entries/tag-editor.d.ts +22 -0
- package/dist/entries/tag-editor.js +10 -0
- package/dist/entries/tag-editor.js.map +1 -0
- package/dist/entries/tag-filter.d.ts +33 -0
- package/dist/entries/tag-filter.js +10 -0
- package/dist/entries/tag-filter.js.map +1 -0
- package/dist/entries/theme-provider.d.ts +2 -0
- package/dist/entries/theme-provider.js +9 -0
- package/dist/entries/theme-provider.js.map +1 -0
- package/dist/entries/tour-bar.d.ts +4 -0
- package/dist/entries/tour-bar.js +11 -0
- package/dist/entries/tour-bar.js.map +1 -0
- package/dist/entries/tour-provider.d.ts +3 -0
- package/dist/entries/tour-provider.js +8 -0
- package/dist/entries/tour-provider.js.map +1 -0
- package/dist/entries/ui-provider.d.ts +5 -0
- package/dist/entries/ui-provider.js +8 -0
- package/dist/entries/ui-provider.js.map +1 -0
- package/dist/entries/undo.d.ts +11 -0
- package/dist/entries/undo.js +10 -0
- package/dist/entries/undo.js.map +1 -0
- package/dist/entries/workspace.d.ts +59 -0
- package/dist/entries/workspace.js +37 -0
- package/dist/entries/workspace.js.map +1 -0
- package/dist/highlight-BFeqa6kU.d.ts +40 -0
- package/dist/index.d.ts +63 -1404
- package/dist/index.js +214 -10128
- package/dist/index.js.map +1 -1
- package/dist/list-C350Dche.d.ts +141 -0
- package/dist/pin-button-DK3j0atw.d.ts +27 -0
- package/dist/quick-editor-BpsvwjQS.d.ts +61 -0
- package/dist/rediscovery-F5gTtPUz.d.ts +20 -0
- package/dist/saved-views-BXIyAVBn.d.ts +14 -0
- package/dist/sort-select-DBlR6ubA.d.ts +40 -0
- package/dist/stale-notice-DczSweyn.d.ts +24 -0
- package/dist/status-xiIQ206y.d.ts +31 -0
- package/dist/styles/base.css +100 -55
- package/dist/styles/collection.css +2 -4
- package/dist/tailwind.css +0 -30
- package/dist/theme-provider-DFMkjkmm.d.ts +37 -0
- package/dist/tour-bar-iiXvVYE8.d.ts +51 -0
- package/dist/tour-provider-BqhPK2vS.d.ts +40 -0
- package/dist/ui-context-BE201rLI.d.ts +70 -0
- package/dist/ui-provider-Bqziw03k.d.ts +7 -0
- package/package.json +226 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,980 +1,73 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, ComponentType, Ref, RefCallback, ReactElement, InputHTMLAttributes, FormHTMLAttributes, ImgHTMLAttributes, MouseEvent, HTMLAttributeAnchorTarget, SelectHTMLAttributes, KeyboardEvent, CSSProperties } from 'react';
|
|
3
|
-
import { KeepListQuery, KeepUrlSyncOptions, KeepItemInput, ImportItemsResult, KeepItem, KeepItemStatus, KeepRediscoveryStrategy, KeepSavedViewStorage, KeepSavedView, KeepSyncConflict } from '@keepkit/core/core';
|
|
1
|
+
import { KeepItem, KeepSavedView, KeepListQuery, KeepSavedViewStorage, KeepItemInput } from '@keepkit/core/core';
|
|
4
2
|
export { AuthenticatedSyncAuthContext, AuthenticatedSyncKit, AuthenticatedSyncKitOptions, AuthenticatedSyncRequestContext, AuthenticatedSyncTransport, KeepItem, KeepItemInput, KeepListQuery, KeepRediscoveryStrategy, KeepScope, KeepSyncConflict, KeepSyncResolution, KeepSyncState, KeepSyncStatus, KeepUndoState, KeepUrlSyncOptions, createAuthenticatedSyncKit } from '@keepkit/core/core';
|
|
5
|
-
import {
|
|
3
|
+
import { CreateKeepKitOptions as CreateKeepKitOptions$1, useKeepContext, useKeepItem, useKeepList, UseKeepRediscoveryOptions, UseKeepRediscoveryResult, UseKeepCollectionsResult, UseKeepNavigatorOptions, UseKeepNavigatorResult, KeepShortcutOptions } from '@keepkit/core/react';
|
|
6
4
|
export { KeepButtonState, KeepContextValue, KeepErrorBoundary, KeepErrorBoundaryProps, KeepProvider, KeepProviderProps, KeepShortcutOptions, useKeepCollections, useKeepContext, useKeepItem, useKeepList, useKeepNavigator, useKeepRediscovery, useKeepShortcut } from '@keepkit/core/react';
|
|
7
|
-
import {
|
|
5
|
+
import { ReactNode, ComponentType } from 'react';
|
|
6
|
+
import { K as KeepCollectionProps } from './list-C350Dche.js';
|
|
7
|
+
export { a as KeepCollection, b as KeepCollectionFeature, c as KeepCollectionRevealRequest, d as KeepCollectionRevealResult, e as KeepCollectionSlots, f as KeepCollectionToolbarContent, g as KeepCollectionToolbarGroup, h as KeepCollectionToolbarLayout, i as KeepCollectionToolbarVariant, j as KeepItemSelection, k as KeepLayoutPreset, l as KeepList, m as KeepListProps, n as KeepListSelection, o as KeepListState, p as KeepPagesRouterLike, q as KeepUrlAdapter, r as createNextPagesRouterAdapter, u as useKeepUrlSync } from './list-C350Dche.js';
|
|
8
|
+
export { K as KeepArchiveButton, a as KeepArchiveButtonProps, b as KeepArchiveButtonState, c as KeepPinButton, d as KeepPinButtonProps, e as KeepPinButtonState } from './pin-button-DK3j0atw.js';
|
|
9
|
+
export { KeepArchiveUndo } from './entries/archive-undo.js';
|
|
10
|
+
import { KeepBackupProps } from './entries/backup.js';
|
|
11
|
+
export { KeepBackup } from './entries/backup.js';
|
|
12
|
+
export { KeepBulkActions, KeepBulkActionsProps, KeepBulkActionsState, KeepSelectionScope } from './entries/bulk-actions.js';
|
|
13
|
+
import { KeepButtonProps } from './entries/button.js';
|
|
14
|
+
export { KeepButton } from './entries/button.js';
|
|
15
|
+
export { KeepItemCheckbox, KeepItemCheckboxProps } from './entries/item-checkbox.js';
|
|
16
|
+
export { KeepSavePopover, KeepSavePopoverPanelContext, KeepSavePopoverProps } from './entries/save-popover.js';
|
|
17
|
+
export { KeepUndo, KeepUndoProps } from './entries/undo.js';
|
|
18
|
+
export { KeepCollectionCreate, KeepCollectionCreateProps } from './entries/collection-create.js';
|
|
19
|
+
import { KeepCollectionManagerProps } from './entries/collection-manager.js';
|
|
20
|
+
export { KeepCollectionManager } from './entries/collection-manager.js';
|
|
21
|
+
import { KeepInboxProps } from './entries/inbox.js';
|
|
22
|
+
export { KeepInbox } from './entries/inbox.js';
|
|
23
|
+
export { KeepLayout, KeepLayoutProps } from './entries/layout.js';
|
|
24
|
+
export { KeepReorderableItemState, KeepReorderableList, KeepReorderableListProps } from './entries/reorderable-list.js';
|
|
25
|
+
export { KeepNoteEditor, KeepNoteEditorProps, KeepNoteEditorState } from './entries/note-editor.js';
|
|
26
|
+
export { K as KeepQuickEditor, a as KeepQuickEditorFeature, b as KeepQuickEditorProps, c as KeepQuickEditorState, u as useKeepQuickEditor } from './quick-editor-BpsvwjQS.js';
|
|
27
|
+
export { KeepTagEditor, KeepTagEditorProps, KeepTagEditorState } from './entries/tag-editor.js';
|
|
28
|
+
import { K as KeepUiFeedbackEvent, a as KeepUiProviderProps } from './ui-context-BE201rLI.js';
|
|
29
|
+
export { b as KeepUiIcons, c as KeepUiLabelContext, d as KeepUiLabelKey, e as KeepUiLabelOptions, f as KeepUiLabelOptionsMap, g as KeepUiLabels, h as KeepUiLocaleLabels, i as KeepUiProvider, u as useKeepUiLabels, j as useUiLabelVisibility } from './ui-context-BE201rLI.js';
|
|
30
|
+
import { KeepImageProps } from './entries/item-card.js';
|
|
31
|
+
export { KeepItemCard, KeepItemCardActionSlotProps, KeepItemCardActionsProps, KeepItemCardBadgeProps, KeepItemCardContentProps, KeepItemCardLinkProps, KeepItemCardLinkRegionProps, KeepItemCardMediaProps, KeepItemCardPresentation, KeepItemCardProps, KeepItemCardRemoveProps, KeepItemCardSaveProps, KeepItemCardState, KeepItemCardTagsProps, KeepItemCardTitleProps, KeepItemCardVariant } from './entries/item-card.js';
|
|
32
|
+
export { KeepItemCardSkeleton, KeepItemCardSkeletonProps } from './entries/item-card-skeleton.js';
|
|
33
|
+
export { KeepDisplayStatus, KeepItemStatusBadge, KeepItemStatusBadgeProps } from './entries/item-status-badge.js';
|
|
34
|
+
export { KeepActivityKind, KeepLastActivity, KeepLastActivityProps } from './entries/last-activity.js';
|
|
35
|
+
import { KeepFloatingTourProps } from './entries/floating-tour.js';
|
|
36
|
+
export { KeepFloatingTour } from './entries/floating-tour.js';
|
|
37
|
+
export { KeepShortcutHint, KeepShortcutHintProps } from './entries/shortcut-hint.js';
|
|
38
|
+
export { K as KeepNavigator, a as KeepTourBar, b as KeepTourBarProps, c as KeepTourShortcutsOptions, u as useKeepTourShortcuts } from './tour-bar-iiXvVYE8.js';
|
|
39
|
+
import { K as KeepTourProviderProps, u as useKeepTour } from './tour-provider-BqhPK2vS.js';
|
|
40
|
+
export { a as KeepTourContextValue, b as KeepTourPersistenceStatus, c as KeepTourPosition, d as KeepTourProvider, e as KeepTourStartOptions } from './tour-provider-BqhPK2vS.js';
|
|
41
|
+
export { KeepActiveFiltersSummary, KeepActiveFiltersSummaryProps, KeepActiveFiltersSummaryState } from './entries/active-filters-summary.js';
|
|
42
|
+
export { KeepArchiveScope, KeepArchiveScopeSelect, KeepArchiveScopeSelectProps } from './entries/archive-scope-select.js';
|
|
43
|
+
export { K as KeepCollectionControlProps, a as KeepCollectionFilter, b as KeepCollectionOption, c as KeepCollectionSelect } from './collection-select-X6WKM--x.js';
|
|
44
|
+
export { KeepTagFilter, KeepTagFilterProps, KeepTagFilterState } from './entries/tag-filter.js';
|
|
45
|
+
export { K as KeepPagination, a as KeepPaginationProps, b as KeepPaginationState, c as KeepSearchInput, d as KeepSearchInputProps, e as KeepSortSelect, f as KeepSortSelectProps, g as KeepSortValue } from './sort-select-DBlR6ubA.js';
|
|
46
|
+
import { KeepFallbackRecoveryProps } from './entries/fallback-recovery.js';
|
|
47
|
+
export { KeepFallbackRecovery } from './entries/fallback-recovery.js';
|
|
48
|
+
export { K as KeepRediscovery, a as KeepRediscoveryPanel, b as KeepRediscoveryPanelProps, c as KeepRediscoveryProps } from './rediscovery-F5gTtPUz.js';
|
|
49
|
+
import { K as KeepSavedViewsProps } from './saved-views-BXIyAVBn.js';
|
|
50
|
+
export { a as KeepSaveViewButton, b as KeepSavedViews } from './saved-views-BXIyAVBn.js';
|
|
51
|
+
export { K as KeepPruneStaleButton, a as KeepPruneStaleButtonProps, b as KeepStaleNotice, c as KeepStaleNoticeProps } from './stale-notice-DczSweyn.js';
|
|
52
|
+
export { K as KeepAnnouncements, a as KeepAnnouncementsProps, b as KeepAnnouncer, c as KeepStatus, d as KeepStatusLabels, e as KeepStatusProps, f as KeepStatusState, g as KeepStatusValue } from './status-xiIQ206y.js';
|
|
53
|
+
export { KeepSyncRecoveryDialog, KeepSyncRecoveryDialogProps } from './entries/sync-recovery-dialog.js';
|
|
54
|
+
export { KeepSyncStatusBanner, KeepSyncStatusBannerProps } from './entries/sync-status-banner.js';
|
|
55
|
+
import { KeepWorkspaceProps } from './entries/workspace.js';
|
|
56
|
+
export { KeepWorkspace, KeepWorkspaceModule, KeepWorkspacePreset, KeepWorkspaceRegion, KeepWorkspaceSectionGap, KeepWorkspaceSlots, KeepWorkspaceState, KeepWorkspaceSurface } from './entries/workspace.js';
|
|
57
|
+
import { KeepKitProviderProps } from './entries/kit-provider.js';
|
|
58
|
+
export { KeepKitProvider } from './entries/kit-provider.js';
|
|
59
|
+
import { K as KeepThemeName, a as KeepThemeMode, b as KeepThemeProviderProps, c as KeepThemeDensity, d as KeepThemeRadius, e as KeepThemeVariables } from './theme-provider-DFMkjkmm.js';
|
|
60
|
+
export { f as KeepThemeProvider, k as keepThemeNames } from './theme-provider-DFMkjkmm.js';
|
|
8
61
|
export { FallbackStorageAdapter, IndexedDBAdapter, IndexedDBSyncQueueAdapter, LocalStorageAdapter, LocalStorageSyncQueueAdapter, SyncStorageAdapter, createBrowserStorageAdapter, createStorageAdapter } from '@keepkit/core/storage';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
subscribe?: (listener: () => void) => () => void;
|
|
13
|
-
navigate: (url: string, mode: "replace" | "push") => void;
|
|
14
|
-
};
|
|
15
|
-
type KeepPagesRouterLike = {
|
|
16
|
-
asPath?: string;
|
|
17
|
-
push: (url: string, as?: string, options?: {
|
|
18
|
-
shallow?: boolean;
|
|
19
|
-
}) => Promise<boolean> | boolean;
|
|
20
|
-
replace: (url: string, as?: string, options?: {
|
|
21
|
-
shallow?: boolean;
|
|
22
|
-
}) => Promise<boolean> | boolean;
|
|
23
|
-
events?: {
|
|
24
|
-
on: (event: string, listener: () => void) => void;
|
|
25
|
-
off: (event: string, listener: () => void) => void;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
type KeepUrlSyncProps<TMeta = Record<string, unknown>> = {
|
|
29
|
-
enabled?: boolean;
|
|
30
|
-
query: KeepListQuery<TMeta>;
|
|
31
|
-
onQueryChange: (query: KeepListQuery<TMeta> | ((previous: KeepListQuery<TMeta>) => KeepListQuery<TMeta>)) => void;
|
|
32
|
-
options?: KeepUrlSyncOptions;
|
|
33
|
-
adapter?: KeepUrlAdapter;
|
|
34
|
-
};
|
|
35
|
-
/** Adapter for Next.js Pages Router. It intentionally uses structural typing and has no Next dependency. */
|
|
36
|
-
declare function createNextPagesRouterAdapter(router: KeepPagesRouterLike): KeepUrlAdapter;
|
|
37
|
-
/** Synchronizes collection filters with browser history and supports back/forward restoration. */
|
|
38
|
-
declare function useKeepUrlSync<TMeta = Record<string, unknown>>({ enabled, query, onQueryChange, options, adapter: providedAdapter, }: KeepUrlSyncProps<TMeta>): void;
|
|
39
|
-
|
|
40
|
-
type KeepArchiveButtonState<TMeta = Record<string, unknown>> = ReturnType<typeof useKeepItem<TMeta>>;
|
|
41
|
-
type KeepArchiveButtonProps<TMeta = Record<string, unknown>> = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onClick" | "aria-pressed"> & {
|
|
42
|
-
item: KeepItemInput<TMeta>;
|
|
43
|
-
children?: ReactNode | ((state: KeepArchiveButtonState<TMeta>) => ReactNode);
|
|
44
|
-
archiveLabel?: ReactNode;
|
|
45
|
-
unarchiveLabel?: ReactNode;
|
|
46
|
-
onToggleError?: (error: unknown) => void;
|
|
47
|
-
};
|
|
48
|
-
/** A style-free accessible archive toggle. */
|
|
49
|
-
declare function KeepArchiveButton<TMeta = Record<string, unknown>>({ item, children, archiveLabel, unarchiveLabel, onToggleError, disabled, ...props }: KeepArchiveButtonProps<TMeta>): react.JSX.Element;
|
|
50
|
-
type KeepPinButtonState<TMeta = Record<string, unknown>> = ReturnType<typeof useKeepItem<TMeta>>;
|
|
51
|
-
type KeepPinButtonProps<TMeta = Record<string, unknown>> = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onClick" | "aria-pressed"> & {
|
|
52
|
-
item: KeepItemInput<TMeta>;
|
|
53
|
-
children?: ReactNode | ((state: KeepPinButtonState<TMeta>) => ReactNode);
|
|
54
|
-
pinLabel?: ReactNode;
|
|
55
|
-
unpinLabel?: ReactNode;
|
|
56
|
-
onToggleError?: (error: unknown) => void;
|
|
57
|
-
};
|
|
58
|
-
/** A style-free accessible pin toggle. */
|
|
59
|
-
declare function KeepPinButton<TMeta = Record<string, unknown>>({ item, children, pinLabel, unpinLabel, onToggleError, disabled, ...props }: KeepPinButtonProps<TMeta>): react.JSX.Element;
|
|
60
|
-
|
|
61
|
-
type KeepBackupProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
62
|
-
filename?: string;
|
|
63
|
-
markdownFilename?: string;
|
|
64
|
-
/** Enables a button to export saved items as a portable Markdown list. */
|
|
65
|
-
allowMarkdownExport?: boolean;
|
|
66
|
-
/** Requires confirmation with a backup summary before replacing current storage data. */
|
|
67
|
-
confirmReplace?: boolean;
|
|
68
|
-
onExport?: (data: string) => void;
|
|
69
|
-
onExportMarkdown?: (markdown: string) => void;
|
|
70
|
-
onImported?: (result: ImportItemsResult<TMeta>) => void;
|
|
71
|
-
};
|
|
72
|
-
/** Accessible JSON backup controls backed by the current KeepProvider storage. */
|
|
73
|
-
declare function KeepBackup<TMeta = Record<string, unknown>>({ filename, markdownFilename, allowMarkdownExport, confirmReplace, onExport, onExportMarkdown, onImported, ...props }: KeepBackupProps<TMeta>): react.JSX.Element;
|
|
74
|
-
|
|
75
|
-
type RenderProp<TState> = (state: TState) => ReactNode;
|
|
76
|
-
type KeepHighlightProps = {
|
|
77
|
-
children?: ReactNode;
|
|
78
|
-
query?: string;
|
|
79
|
-
};
|
|
80
|
-
/** Wraps case-insensitive, literal query matches in a style-free mark element. */
|
|
81
|
-
declare function KeepHighlight({ children, query }: KeepHighlightProps): ReactNode;
|
|
82
|
-
declare function highlightText(text: string, query: string): ReactNode;
|
|
83
|
-
type KeepButtonLabels = {
|
|
84
|
-
saved?: ReactNode;
|
|
85
|
-
unsaved?: ReactNode;
|
|
86
|
-
loading?: ReactNode;
|
|
87
|
-
error?: ReactNode;
|
|
88
|
-
savedAriaLabel?: string;
|
|
89
|
-
unsavedAriaLabel?: string;
|
|
90
|
-
};
|
|
91
|
-
type KeepButtonIconProps = {
|
|
92
|
-
"aria-hidden"?: boolean;
|
|
93
|
-
className?: string;
|
|
94
|
-
};
|
|
95
|
-
type KeepButtonIcon = ReactNode | ComponentType<KeepButtonIconProps>;
|
|
96
|
-
type KeepButtonIcons = {
|
|
97
|
-
save?: KeepButtonIcon;
|
|
98
|
-
saved?: KeepButtonIcon;
|
|
99
|
-
remove?: KeepButtonIcon;
|
|
100
|
-
loading?: KeepButtonIcon;
|
|
101
|
-
error?: KeepButtonIcon;
|
|
102
|
-
};
|
|
103
|
-
type MergeableProps = Record<string, unknown>;
|
|
104
|
-
/** Combines callback and object refs while preserving every ref target. */
|
|
105
|
-
declare function composeRefs<T>(...refs: Array<Ref<T> | null | undefined>): RefCallback<T>;
|
|
106
|
-
/** Chains child and component event handlers while preserving both handlers' event order. */
|
|
107
|
-
declare function chainedFunction<T extends (...args: never[]) => unknown>(childHandler: T | undefined, parentHandler: T | undefined): T | undefined;
|
|
108
|
-
/** Merges slot props without dropping child classes, styles, ARIA attributes, or events. */
|
|
109
|
-
declare function mergeProps<T extends MergeableProps>(childProps: T, parentProps: Partial<T> & MergeableProps): T;
|
|
110
|
-
declare function createSlot(child: ReactElement<MergeableProps>, props: MergeableProps, body?: ReactNode): ReactElement<MergeableProps>;
|
|
62
|
+
export { KeepEmptyState, KeepEmptyStateProps, KeepEmptyStateVariant } from './entries/empty-state.js';
|
|
63
|
+
export { a as KeepButtonIcon, b as KeepButtonIconProps, K as KeepButtonIcons, c as KeepButtonLabels, d as KeepHighlight, e as KeepHighlightProps, R as RenderProp, f as chainedFunction, g as composeRefs, h as createSlot, i as highlightText, m as mergeProps } from './highlight-BFeqa6kU.js';
|
|
64
|
+
export { K as KeepUiLocale, g as getKeepLocaleLabels } from './ui-provider-Bqziw03k.js';
|
|
111
65
|
|
|
112
66
|
/** Returns whether every visible item is selected. Empty lists are never all selected. */
|
|
113
67
|
declare function isAllSelected<TMeta>(items: readonly Pick<KeepItem<TMeta>, "id">[], selectedIds: readonly string[]): boolean;
|
|
114
68
|
/** Toggles only the visible items, preserving selections outside the current query or page. */
|
|
115
69
|
declare function toggleSelectAll<TMeta>(items: readonly Pick<KeepItem<TMeta>, "id">[], selectedIds: readonly string[]): string[];
|
|
116
70
|
|
|
117
|
-
type KeepBulkActionsState<TMeta = Record<string, unknown>> = {
|
|
118
|
-
items: KeepItem<TMeta>[];
|
|
119
|
-
selectedIds: string[];
|
|
120
|
-
selectedCount: number;
|
|
121
|
-
isAllSelected: boolean;
|
|
122
|
-
allSelected: boolean;
|
|
123
|
-
tagsInput: string;
|
|
124
|
-
setTagsInput: (value: string) => void;
|
|
125
|
-
toggle: (id: string) => void;
|
|
126
|
-
toggleSelectAll: () => void;
|
|
127
|
-
toggleAll: () => void;
|
|
128
|
-
remove: () => Promise<void>;
|
|
129
|
-
requestRemoval: () => Promise<void>;
|
|
130
|
-
confirmRemoval: () => Promise<void>;
|
|
131
|
-
cancelRemoval: () => void;
|
|
132
|
-
removalConfirmation: {
|
|
133
|
-
ids: readonly string[];
|
|
134
|
-
count: number;
|
|
135
|
-
} | null;
|
|
136
|
-
updateTags: () => Promise<void>;
|
|
137
|
-
addTags: () => Promise<void>;
|
|
138
|
-
removeTags: () => Promise<void>;
|
|
139
|
-
collectionId: string;
|
|
140
|
-
setCollectionId: (value: string) => void;
|
|
141
|
-
collections: KeepCollectionSummary[];
|
|
142
|
-
moveToCollection: () => Promise<void>;
|
|
143
|
-
archive: () => Promise<void>;
|
|
144
|
-
unarchive: () => Promise<void>;
|
|
145
|
-
pin: () => Promise<void>;
|
|
146
|
-
unpin: () => Promise<void>;
|
|
147
|
-
isMutating: boolean;
|
|
148
|
-
error: unknown | null;
|
|
149
|
-
selectionScope: KeepSelectionScope;
|
|
150
|
-
setSelectionScope: (scope: KeepSelectionScope) => void;
|
|
151
|
-
};
|
|
152
|
-
type KeepSelectionScope = "page" | "query" | "all";
|
|
153
|
-
type KeepBulkActionsProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
154
|
-
query?: KeepListQuery<TMeta>;
|
|
155
|
-
selectedIds?: string[];
|
|
156
|
-
defaultSelectedIds?: string[];
|
|
157
|
-
onSelectedIdsChange?: (ids: string[]) => void;
|
|
158
|
-
renderItem?: (item: KeepItem<TMeta>, selected: boolean) => ReactNode;
|
|
159
|
-
onCompleted?: (action: "remove" | "tags", ids: string[]) => void;
|
|
160
|
-
selectionScope?: KeepSelectionScope;
|
|
161
|
-
onSelectionScopeChange?: (scope: KeepSelectionScope) => void;
|
|
162
|
-
/** Requires confirmation before removing the full selection, including items on other pages. */
|
|
163
|
-
confirmRemoval?: boolean;
|
|
164
|
-
render?: RenderProp<KeepBulkActionsState<TMeta>>;
|
|
165
|
-
children?: ReactNode | RenderProp<KeepBulkActionsState<TMeta>>;
|
|
166
|
-
};
|
|
167
|
-
/** Selects visible items and performs one storage operation for the whole selection. */
|
|
168
|
-
declare function KeepBulkActions<TMeta = Record<string, unknown>>({ query, selectedIds: controlledSelectedIds, defaultSelectedIds, onSelectedIdsChange, renderItem, onCompleted, selectionScope: controlledScope, onSelectionScopeChange, confirmRemoval, render, children, ...props }: KeepBulkActionsProps<TMeta>): react.JSX.Element;
|
|
169
|
-
|
|
170
|
-
type KeepButtonProps<TMeta = Record<string, unknown>> = KeepButtonProps$1<TMeta> & {
|
|
171
|
-
ref?: Ref<HTMLElement> | {
|
|
172
|
-
readonly current: unknown;
|
|
173
|
-
};
|
|
174
|
-
labels?: KeepButtonLabels;
|
|
175
|
-
icons?: KeepButtonIcons;
|
|
176
|
-
iconOnly?: boolean;
|
|
177
|
-
showLabel?: boolean;
|
|
178
|
-
iconClassName?: string;
|
|
179
|
-
};
|
|
180
|
-
/** A style-free save toggle with localized labels and the core button's ARIA/asChild behavior. */
|
|
181
|
-
declare function KeepButton<TMeta = Record<string, unknown>>({ labels, icons, iconOnly, showLabel, iconClassName, onClick, onToggleError, ...props }: KeepButtonProps<TMeta>): react.JSX.Element;
|
|
182
|
-
|
|
183
|
-
type KeepItemCheckboxProps<TMeta = Record<string, unknown>> = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "checked" | "defaultChecked" | "onChange"> & {
|
|
184
|
-
item: KeepItem<TMeta>;
|
|
185
|
-
checked?: boolean;
|
|
186
|
-
label?: ReactNode;
|
|
187
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
188
|
-
};
|
|
189
|
-
/** A reusable accessible selection checkbox for a saved item. */
|
|
190
|
-
declare function KeepItemCheckbox<TMeta = Record<string, unknown>>({ item, checked, label, onCheckedChange, "aria-label": ariaLabel, ...props }: KeepItemCheckboxProps<TMeta>): react.JSX.Element;
|
|
191
|
-
|
|
192
|
-
type KeepQuickEditorState<TMeta = Record<string, unknown>> = {
|
|
193
|
-
item: KeepItem<TMeta>;
|
|
194
|
-
title: string;
|
|
195
|
-
note: string;
|
|
196
|
-
tags: string[];
|
|
197
|
-
collectionId?: string;
|
|
198
|
-
setTitle: (value: string) => void;
|
|
199
|
-
setNote: (value: string) => void;
|
|
200
|
-
setTags: (value: string[]) => void;
|
|
201
|
-
setCollectionId: (value?: string) => void;
|
|
202
|
-
isDirty: boolean;
|
|
203
|
-
isSaving: boolean;
|
|
204
|
-
saveStatus: "idle" | "dirty" | "saving" | "saved" | "error";
|
|
205
|
-
error: unknown | null;
|
|
206
|
-
flush: () => Promise<void>;
|
|
207
|
-
};
|
|
208
|
-
declare function useKeepQuickEditor<TMeta = Record<string, unknown>>(item: KeepItem<TMeta>, options?: {
|
|
209
|
-
debounceMs?: number;
|
|
210
|
-
onSaved?: (item: KeepItem<TMeta>) => void;
|
|
211
|
-
onSaveError?: (error: unknown) => void;
|
|
212
|
-
}): {
|
|
213
|
-
state: {
|
|
214
|
-
item: KeepItem<TMeta>;
|
|
215
|
-
title: string;
|
|
216
|
-
note: string;
|
|
217
|
-
tags: string[];
|
|
218
|
-
collectionId: string | undefined;
|
|
219
|
-
setTitle: (value: string) => void;
|
|
220
|
-
setNote: (value: string) => void;
|
|
221
|
-
setTags: (value: string[]) => void;
|
|
222
|
-
setCollectionId: (value: string | undefined) => void;
|
|
223
|
-
isDirty: boolean;
|
|
224
|
-
isSaving: boolean;
|
|
225
|
-
saveStatus: "saved" | "saving" | "error" | "idle" | "dirty";
|
|
226
|
-
error: unknown;
|
|
227
|
-
flush: () => Promise<void>;
|
|
228
|
-
};
|
|
229
|
-
};
|
|
230
|
-
type KeepQuickEditorFeature = "title" | "note" | "tags" | "collection";
|
|
231
|
-
type KeepQuickEditorProps<TMeta = Record<string, unknown>> = Omit<FormHTMLAttributes<HTMLFormElement>, "children" | "onSubmit"> & {
|
|
232
|
-
item: KeepItem<TMeta>;
|
|
233
|
-
debounceMs?: number;
|
|
234
|
-
collectionIds?: string[];
|
|
235
|
-
collectionLabels?: Record<string, string>;
|
|
236
|
-
showSaveButton?: boolean;
|
|
237
|
-
closeLabel?: string;
|
|
238
|
-
/** Controls which fields are visible. Defaults to all fields shown. */
|
|
239
|
-
features?: Partial<Record<KeepQuickEditorFeature, boolean>>;
|
|
240
|
-
children?: ReactNode | ((state: KeepQuickEditorState<TMeta>) => ReactNode);
|
|
241
|
-
onClose?: () => void;
|
|
242
|
-
onSaved?: (item: KeepItem<TMeta>) => void;
|
|
243
|
-
onSaveError?: (error: unknown) => void;
|
|
244
|
-
};
|
|
245
|
-
/** A compact, temporary-state editor for note, tags, and collection metadata. */
|
|
246
|
-
declare function KeepQuickEditor<TMeta = Record<string, unknown>>({ item, debounceMs, onSaved, onSaveError, features, ...props }: KeepQuickEditorProps<TMeta>): react.JSX.Element;
|
|
247
|
-
|
|
248
|
-
type KeepSavePopoverProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
249
|
-
item: KeepItemInput<TMeta>;
|
|
250
|
-
open?: boolean;
|
|
251
|
-
defaultOpen?: boolean;
|
|
252
|
-
onOpenChange?: (open: boolean) => void;
|
|
253
|
-
dialogLabel?: string;
|
|
254
|
-
portalContainer?: HTMLElement | null;
|
|
255
|
-
buttonProps?: Omit<KeepButtonProps<TMeta>, "item" | "asChild"> & {
|
|
256
|
-
asChild?: false;
|
|
257
|
-
};
|
|
258
|
-
editorProps?: Omit<KeepQuickEditorProps<TMeta>, "item" | "onClose">;
|
|
259
|
-
children?: ReactNode;
|
|
260
|
-
};
|
|
261
|
-
/** Opens a quick editor only after this trigger changes from unsaved to saved. */
|
|
262
|
-
declare function KeepSavePopover<TMeta = Record<string, unknown>>({ item, open: controlledOpen, defaultOpen, onOpenChange, dialogLabel, portalContainer, buttonProps, editorProps, children, ...props }: KeepSavePopoverProps<TMeta>): react.JSX.Element;
|
|
263
|
-
|
|
264
|
-
type KeepUndoProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
265
|
-
children?: ReactNode;
|
|
266
|
-
label?: ReactNode;
|
|
267
|
-
};
|
|
268
|
-
/** Presents the short-lived undo action created by removeWithUndo/removeBatchWithUndo. */
|
|
269
|
-
declare function KeepUndo({ children, label, ...props }: KeepUndoProps): react.JSX.Element | null;
|
|
270
|
-
|
|
271
|
-
type KeepItemCardState<TMeta = Record<string, unknown>> = {
|
|
272
|
-
item: KeepItem<TMeta>;
|
|
273
|
-
isSaved: boolean;
|
|
274
|
-
isMutating: boolean;
|
|
275
|
-
error: unknown | null;
|
|
276
|
-
remove: () => Promise<void>;
|
|
277
|
-
status: KeepItem["status"];
|
|
278
|
-
};
|
|
279
|
-
type KeepItemCardLinkProps = {
|
|
280
|
-
href: string;
|
|
281
|
-
children?: ReactNode;
|
|
282
|
-
target?: HTMLAttributeAnchorTarget;
|
|
283
|
-
rel?: string;
|
|
284
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
285
|
-
};
|
|
286
|
-
type KeepImageProps = ImgHTMLAttributes<HTMLImageElement> & {
|
|
287
|
-
src: string;
|
|
288
|
-
alt: string;
|
|
289
|
-
};
|
|
290
|
-
type KeepItemCardPresentation = "default" | "reading";
|
|
291
|
-
type KeepItemCardVariant = "outlined" | "elevated" | "filled";
|
|
292
|
-
type KeepActivityKind = "opened" | "inactive";
|
|
293
|
-
type KeepItemCardProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children" | "title"> & {
|
|
294
|
-
ref?: Ref<HTMLElement> | {
|
|
295
|
-
readonly current: unknown;
|
|
296
|
-
};
|
|
297
|
-
item: KeepItem<TMeta>;
|
|
298
|
-
title?: ReactNode | ((item: KeepItem<TMeta>) => ReactNode);
|
|
299
|
-
getTitle?: (item: KeepItem<TMeta>) => ReactNode;
|
|
300
|
-
getImageProps?: (item: KeepItem<TMeta>, title: ReactNode) => KeepImageProps | undefined;
|
|
301
|
-
imageComponent?: ComponentType<KeepImageProps>;
|
|
302
|
-
renderImage?: (props: KeepImageProps, item: KeepItem<TMeta>) => ReactNode;
|
|
303
|
-
renderTags?: (tags: string[], item: KeepItem<TMeta>) => ReactNode;
|
|
304
|
-
onTagClick?: (tag: string, item: KeepItem<TMeta>) => void;
|
|
305
|
-
showTags?: boolean;
|
|
306
|
-
showNote?: boolean;
|
|
307
|
-
showSavedAt?: boolean;
|
|
308
|
-
showActivity?: boolean;
|
|
309
|
-
activityKind?: KeepActivityKind;
|
|
310
|
-
collectionLabels?: Record<string, string>;
|
|
311
|
-
imageAlt?: string;
|
|
312
|
-
render?: RenderProp<KeepItemCardState<TMeta>>;
|
|
313
|
-
children?: ReactNode | RenderProp<KeepItemCardState<TMeta>>;
|
|
314
|
-
removeLabel?: string;
|
|
315
|
-
onRemoveError?: (error: unknown) => void;
|
|
316
|
-
onRemoved?: (item: KeepItem<TMeta>) => void;
|
|
317
|
-
onRetry?: (item: KeepItem<TMeta>) => void | Promise<void>;
|
|
318
|
-
showSaveButton?: boolean;
|
|
319
|
-
showPinButton?: boolean;
|
|
320
|
-
showArchiveButton?: boolean;
|
|
321
|
-
showEditButton?: boolean;
|
|
322
|
-
onEdit?: (item: KeepItem<TMeta>) => void;
|
|
323
|
-
editSlot?: (item: KeepItem<TMeta>, close: () => void) => ReactNode;
|
|
324
|
-
/** Controls which fields are visible in the default quick editor. */
|
|
325
|
-
editFeatures?: Partial<Record<KeepQuickEditorFeature, boolean>>;
|
|
326
|
-
saveButtonLabels?: KeepButtonLabels;
|
|
327
|
-
asChild?: boolean;
|
|
328
|
-
href?: string | ((item: KeepItem<TMeta>) => string | undefined);
|
|
329
|
-
onOpen?: (item: KeepItem<TMeta>, event: MouseEvent<HTMLElement>) => void;
|
|
330
|
-
/** Records an open through KeepKit before invoking `onOpen`. */
|
|
331
|
-
trackOpen?: boolean;
|
|
332
|
-
linkTarget?: "title" | "card";
|
|
333
|
-
linkComponent?: ComponentType<KeepItemCardLinkProps>;
|
|
334
|
-
linkTargetAttribute?: HTMLAttributeAnchorTarget;
|
|
335
|
-
linkRel?: string;
|
|
336
|
-
highlightQuery?: string;
|
|
337
|
-
/** Controls the opt-in card surface treatment while preserving the card contract. */
|
|
338
|
-
cardVariant?: KeepItemCardVariant;
|
|
339
|
-
presentation?: KeepItemCardPresentation;
|
|
340
|
-
};
|
|
341
|
-
type KeepItemCardMediaProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
342
|
-
children?: ReactNode;
|
|
343
|
-
fallback?: ReactNode;
|
|
344
|
-
};
|
|
345
|
-
/** An explicit linked region. Keep tags, buttons, and editors outside this region. */
|
|
346
|
-
type KeepItemCardLinkRegionProps = HTMLAttributes<HTMLElement>;
|
|
347
|
-
type KeepItemCardContentProps = HTMLAttributes<HTMLDivElement>;
|
|
348
|
-
type KeepItemCardTitleProps = Omit<HTMLAttributes<HTMLHeadingElement>, "title"> & {
|
|
349
|
-
as?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
350
|
-
};
|
|
351
|
-
type KeepItemCardTagsProps = HTMLAttributes<HTMLUListElement>;
|
|
352
|
-
type KeepItemCardActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
353
|
-
type KeepItemCardSkeletonProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
354
|
-
layout?: KeepLayoutPreset;
|
|
355
|
-
};
|
|
356
|
-
/** A low-dependency item presentation primitive with composable card parts. */
|
|
357
|
-
declare function KeepItemCardRoot<TMeta = Record<string, unknown>>({ item, title, getTitle, getImageProps, imageComponent: ImageComponent, renderImage, renderTags, onTagClick, presentation, showTags, showNote, showSavedAt, showActivity, activityKind, collectionLabels, imageAlt, render, children, removeLabel, onRemoveError, onRemoved, onRetry, showSaveButton, showPinButton, showArchiveButton, showEditButton, onEdit, editSlot, editFeatures, saveButtonLabels, asChild, href: hrefOption, onOpen, trackOpen, linkTarget, linkComponent: LinkComponent, linkTargetAttribute, linkRel, highlightQuery, cardVariant, className, ...rootProps }: KeepItemCardProps<TMeta>): react.JSX.Element;
|
|
358
|
-
declare function KeepItemCardMedia({ children, fallback, ...props }: KeepItemCardMediaProps): react.JSX.Element;
|
|
359
|
-
declare function KeepItemCardLink({ children, ...props }: KeepItemCardLinkRegionProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
|
|
360
|
-
declare function KeepItemCardContent({ children, ...props }: KeepItemCardContentProps): react.JSX.Element;
|
|
361
|
-
declare function KeepItemCardTitle({ as, children, ...props }: KeepItemCardTitleProps): react.DetailedReactHTMLElement<{
|
|
362
|
-
"data-keep-card-part": string;
|
|
363
|
-
"data-line-clamp": string;
|
|
364
|
-
onChange?: react.ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
|
|
365
|
-
onError?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
366
|
-
className?: string | undefined | undefined;
|
|
367
|
-
id?: string | undefined | undefined;
|
|
368
|
-
role?: react.AriaRole | undefined;
|
|
369
|
-
tabIndex?: number | undefined | undefined;
|
|
370
|
-
"aria-label"?: string | undefined | undefined;
|
|
371
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
372
|
-
"aria-describedby"?: string | undefined | undefined;
|
|
373
|
-
style?: react.CSSProperties | undefined;
|
|
374
|
-
onClick?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
375
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
376
|
-
defaultChecked?: boolean | undefined | undefined;
|
|
377
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
378
|
-
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
379
|
-
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
380
|
-
accessKey?: string | undefined | undefined;
|
|
381
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
382
|
-
autoFocus?: boolean | undefined | undefined;
|
|
383
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
384
|
-
contextMenu?: string | undefined | undefined;
|
|
385
|
-
dir?: string | undefined | undefined;
|
|
386
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
387
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
388
|
-
hidden?: boolean | undefined | undefined;
|
|
389
|
-
lang?: string | undefined | undefined;
|
|
390
|
-
nonce?: string | undefined | undefined;
|
|
391
|
-
slot?: string | undefined | undefined;
|
|
392
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
393
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
394
|
-
radioGroup?: string | undefined | undefined;
|
|
395
|
-
about?: string | undefined | undefined;
|
|
396
|
-
content?: string | undefined | undefined;
|
|
397
|
-
datatype?: string | undefined | undefined;
|
|
398
|
-
inlist?: any;
|
|
399
|
-
prefix?: string | undefined | undefined;
|
|
400
|
-
property?: string | undefined | undefined;
|
|
401
|
-
rel?: string | undefined | undefined;
|
|
402
|
-
resource?: string | undefined | undefined;
|
|
403
|
-
rev?: string | undefined | undefined;
|
|
404
|
-
typeof?: string | undefined | undefined;
|
|
405
|
-
vocab?: string | undefined | undefined;
|
|
406
|
-
autoCorrect?: string | undefined | undefined;
|
|
407
|
-
autoSave?: string | undefined | undefined;
|
|
408
|
-
color?: string | undefined | undefined;
|
|
409
|
-
itemProp?: string | undefined | undefined;
|
|
410
|
-
itemScope?: boolean | undefined | undefined;
|
|
411
|
-
itemType?: string | undefined | undefined;
|
|
412
|
-
itemID?: string | undefined | undefined;
|
|
413
|
-
itemRef?: string | undefined | undefined;
|
|
414
|
-
results?: number | undefined | undefined;
|
|
415
|
-
security?: string | undefined | undefined;
|
|
416
|
-
unselectable?: "on" | "off" | undefined | undefined;
|
|
417
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
418
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
419
|
-
popoverTarget?: string | undefined | undefined;
|
|
420
|
-
inert?: boolean | undefined | undefined;
|
|
421
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
422
|
-
is?: string | undefined | undefined;
|
|
423
|
-
exportparts?: string | undefined | undefined;
|
|
424
|
-
part?: string | undefined | undefined;
|
|
425
|
-
"aria-activedescendant"?: string | undefined | undefined;
|
|
426
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
427
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
428
|
-
"aria-braillelabel"?: string | undefined | undefined;
|
|
429
|
-
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
430
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
431
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
432
|
-
"aria-colcount"?: number | undefined | undefined;
|
|
433
|
-
"aria-colindex"?: number | undefined | undefined;
|
|
434
|
-
"aria-colindextext"?: string | undefined | undefined;
|
|
435
|
-
"aria-colspan"?: number | undefined | undefined;
|
|
436
|
-
"aria-controls"?: string | undefined | undefined;
|
|
437
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
438
|
-
"aria-description"?: string | undefined | undefined;
|
|
439
|
-
"aria-details"?: string | undefined | undefined;
|
|
440
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
441
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
442
|
-
"aria-errormessage"?: string | undefined | undefined;
|
|
443
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
444
|
-
"aria-flowto"?: string | undefined | undefined;
|
|
445
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
446
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
447
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
448
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
449
|
-
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
450
|
-
"aria-level"?: number | undefined | undefined;
|
|
451
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
452
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
453
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
454
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
455
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
456
|
-
"aria-owns"?: string | undefined | undefined;
|
|
457
|
-
"aria-placeholder"?: string | undefined | undefined;
|
|
458
|
-
"aria-posinset"?: number | undefined | undefined;
|
|
459
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
460
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
461
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
462
|
-
"aria-roledescription"?: string | undefined | undefined;
|
|
463
|
-
"aria-rowcount"?: number | undefined | undefined;
|
|
464
|
-
"aria-rowindex"?: number | undefined | undefined;
|
|
465
|
-
"aria-rowindextext"?: string | undefined | undefined;
|
|
466
|
-
"aria-rowspan"?: number | undefined | undefined;
|
|
467
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
468
|
-
"aria-setsize"?: number | undefined | undefined;
|
|
469
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
470
|
-
"aria-valuemax"?: number | undefined | undefined;
|
|
471
|
-
"aria-valuemin"?: number | undefined | undefined;
|
|
472
|
-
"aria-valuenow"?: number | undefined | undefined;
|
|
473
|
-
"aria-valuetext"?: string | undefined | undefined;
|
|
474
|
-
dangerouslySetInnerHTML?: {
|
|
475
|
-
__html: string | TrustedHTML;
|
|
476
|
-
} | undefined | undefined;
|
|
477
|
-
onCopy?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
478
|
-
onCopyCapture?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
479
|
-
onCut?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
480
|
-
onCutCapture?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
481
|
-
onPaste?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
482
|
-
onPasteCapture?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
483
|
-
onCompositionEnd?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
484
|
-
onCompositionEndCapture?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
485
|
-
onCompositionStart?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
486
|
-
onCompositionStartCapture?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
487
|
-
onCompositionUpdate?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
488
|
-
onCompositionUpdateCapture?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
489
|
-
onFocus?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
490
|
-
onFocusCapture?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
491
|
-
onBlur?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
492
|
-
onBlurCapture?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
493
|
-
onChangeCapture?: react.ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
|
|
494
|
-
onBeforeInput?: react.InputEventHandler<HTMLHeadingElement> | undefined;
|
|
495
|
-
onBeforeInputCapture?: react.InputEventHandler<HTMLHeadingElement> | undefined;
|
|
496
|
-
onInput?: react.InputEventHandler<HTMLHeadingElement> | undefined;
|
|
497
|
-
onInputCapture?: react.InputEventHandler<HTMLHeadingElement> | undefined;
|
|
498
|
-
onReset?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
499
|
-
onResetCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
500
|
-
onSubmit?: react.SubmitEventHandler<HTMLHeadingElement> | undefined;
|
|
501
|
-
onSubmitCapture?: react.SubmitEventHandler<HTMLHeadingElement> | undefined;
|
|
502
|
-
onInvalid?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
503
|
-
onInvalidCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
504
|
-
onLoad?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
505
|
-
onLoadCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
506
|
-
onErrorCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
507
|
-
onKeyDown?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
508
|
-
onKeyDownCapture?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
509
|
-
onKeyPress?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
510
|
-
onKeyPressCapture?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
511
|
-
onKeyUp?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
512
|
-
onKeyUpCapture?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
513
|
-
onAbort?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
514
|
-
onAbortCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
515
|
-
onCanPlay?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
516
|
-
onCanPlayCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
517
|
-
onCanPlayThrough?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
518
|
-
onCanPlayThroughCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
519
|
-
onDurationChange?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
520
|
-
onDurationChangeCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
521
|
-
onEmptied?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
522
|
-
onEmptiedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
523
|
-
onEncrypted?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
524
|
-
onEncryptedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
525
|
-
onEnded?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
526
|
-
onEndedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
527
|
-
onLoadedData?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
528
|
-
onLoadedDataCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
529
|
-
onLoadedMetadata?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
530
|
-
onLoadedMetadataCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
531
|
-
onLoadStart?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
532
|
-
onLoadStartCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
533
|
-
onPause?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
534
|
-
onPauseCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
535
|
-
onPlay?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
536
|
-
onPlayCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
537
|
-
onPlaying?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
538
|
-
onPlayingCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
539
|
-
onProgress?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
540
|
-
onProgressCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
541
|
-
onRateChange?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
542
|
-
onRateChangeCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
543
|
-
onSeeked?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
544
|
-
onSeekedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
545
|
-
onSeeking?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
546
|
-
onSeekingCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
547
|
-
onStalled?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
548
|
-
onStalledCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
549
|
-
onSuspend?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
550
|
-
onSuspendCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
551
|
-
onTimeUpdate?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
552
|
-
onTimeUpdateCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
553
|
-
onVolumeChange?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
554
|
-
onVolumeChangeCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
555
|
-
onWaiting?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
556
|
-
onWaitingCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
557
|
-
onAuxClick?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
558
|
-
onAuxClickCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
559
|
-
onClickCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
560
|
-
onContextMenu?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
561
|
-
onContextMenuCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
562
|
-
onDoubleClick?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
563
|
-
onDoubleClickCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
564
|
-
onDrag?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
565
|
-
onDragCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
566
|
-
onDragEnd?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
567
|
-
onDragEndCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
568
|
-
onDragEnter?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
569
|
-
onDragEnterCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
570
|
-
onDragExit?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
571
|
-
onDragExitCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
572
|
-
onDragLeave?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
573
|
-
onDragLeaveCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
574
|
-
onDragOver?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
575
|
-
onDragOverCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
576
|
-
onDragStart?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
577
|
-
onDragStartCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
578
|
-
onDrop?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
579
|
-
onDropCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
580
|
-
onMouseDown?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
581
|
-
onMouseDownCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
582
|
-
onMouseEnter?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
583
|
-
onMouseLeave?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
584
|
-
onMouseMove?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
585
|
-
onMouseMoveCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
586
|
-
onMouseOut?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
587
|
-
onMouseOutCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
588
|
-
onMouseOver?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
589
|
-
onMouseOverCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
590
|
-
onMouseUp?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
591
|
-
onMouseUpCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
592
|
-
onSelect?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
593
|
-
onSelectCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
594
|
-
onTouchCancel?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
595
|
-
onTouchCancelCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
596
|
-
onTouchEnd?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
597
|
-
onTouchEndCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
598
|
-
onTouchMove?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
599
|
-
onTouchMoveCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
600
|
-
onTouchStart?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
601
|
-
onTouchStartCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
602
|
-
onPointerDown?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
603
|
-
onPointerDownCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
604
|
-
onPointerMove?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
605
|
-
onPointerMoveCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
606
|
-
onPointerUp?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
607
|
-
onPointerUpCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
608
|
-
onPointerCancel?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
609
|
-
onPointerCancelCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
610
|
-
onPointerEnter?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
611
|
-
onPointerLeave?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
612
|
-
onPointerOver?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
613
|
-
onPointerOverCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
614
|
-
onPointerOut?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
615
|
-
onPointerOutCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
616
|
-
onGotPointerCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
617
|
-
onGotPointerCaptureCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
618
|
-
onLostPointerCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
619
|
-
onLostPointerCaptureCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
620
|
-
onScroll?: react.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
621
|
-
onScrollCapture?: react.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
622
|
-
onScrollEnd?: react.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
623
|
-
onScrollEndCapture?: react.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
624
|
-
onWheel?: react.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
625
|
-
onWheelCapture?: react.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
626
|
-
onAnimationStart?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
627
|
-
onAnimationStartCapture?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
628
|
-
onAnimationEnd?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
629
|
-
onAnimationEndCapture?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
630
|
-
onAnimationIteration?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
631
|
-
onAnimationIterationCapture?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
632
|
-
onToggle?: react.ToggleEventHandler<HTMLHeadingElement> | undefined;
|
|
633
|
-
onBeforeToggle?: react.ToggleEventHandler<HTMLHeadingElement> | undefined;
|
|
634
|
-
onTransitionCancel?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
635
|
-
onTransitionCancelCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
636
|
-
onTransitionEnd?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
637
|
-
onTransitionEndCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
638
|
-
onTransitionRun?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
639
|
-
onTransitionRunCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
640
|
-
onTransitionStart?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
641
|
-
onTransitionStartCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
642
|
-
}, HTMLElement>;
|
|
643
|
-
declare function KeepItemCardTags({ children, ...props }: KeepItemCardTagsProps): string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null;
|
|
644
|
-
declare function KeepItemCardActions({ children, ...props }: KeepItemCardActionsProps): react.JSX.Element;
|
|
645
|
-
type KeepItemCardActionSlotProps = Omit<KeepPinButtonProps<unknown>, "item" | "children"> & {
|
|
646
|
-
children?: ReactNode;
|
|
647
|
-
};
|
|
648
|
-
type KeepItemCardSaveProps = Omit<KeepButtonProps<unknown>, "item" | "asChild"> & {
|
|
649
|
-
asChild?: false;
|
|
650
|
-
};
|
|
651
|
-
type KeepItemCardRemoveProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
652
|
-
children?: ReactNode;
|
|
653
|
-
};
|
|
654
|
-
type KeepItemCardBadgeProps = HTMLAttributes<HTMLSpanElement>;
|
|
655
|
-
type KeepLastActivityProps<TMeta = Record<string, unknown>> = HTMLAttributes<HTMLSpanElement> & {
|
|
656
|
-
item: KeepItem<TMeta>;
|
|
657
|
-
kind?: KeepActivityKind;
|
|
658
|
-
};
|
|
659
|
-
declare function KeepLastActivity<TMeta = Record<string, unknown>>({ item, kind, ...props }: KeepLastActivityProps<TMeta>): react.JSX.Element;
|
|
660
|
-
declare function KeepItemCardSave({ labels, getAriaLabel, ...props }: KeepItemCardSaveProps): react.JSX.Element;
|
|
661
|
-
declare function KeepItemCardRemove({ children, disabled, onClick, ...props }: KeepItemCardRemoveProps): react.JSX.Element;
|
|
662
|
-
declare function KeepItemCardPin({ children, ...props }: KeepItemCardActionSlotProps): react.JSX.Element;
|
|
663
|
-
declare function KeepItemCardArchive({ children, ...props }: Omit<KeepArchiveButtonProps<unknown>, "item" | "children"> & {
|
|
664
|
-
children?: ReactNode;
|
|
665
|
-
}): react.JSX.Element;
|
|
666
|
-
declare function KeepItemCardCollectionBadge({ children, ...props }: KeepItemCardBadgeProps): react.JSX.Element | null;
|
|
667
|
-
declare const KeepItemCard: typeof KeepItemCardRoot & {
|
|
668
|
-
Link: typeof KeepItemCardLink;
|
|
669
|
-
Media: typeof KeepItemCardMedia;
|
|
670
|
-
Content: typeof KeepItemCardContent;
|
|
671
|
-
Title: typeof KeepItemCardTitle;
|
|
672
|
-
Tags: typeof KeepItemCardTags;
|
|
673
|
-
Actions: typeof KeepItemCardActions;
|
|
674
|
-
Save: typeof KeepItemCardSave;
|
|
675
|
-
Remove: typeof KeepItemCardRemove;
|
|
676
|
-
Pin: typeof KeepItemCardPin;
|
|
677
|
-
Archive: typeof KeepItemCardArchive;
|
|
678
|
-
CollectionBadge: typeof KeepItemCardCollectionBadge;
|
|
679
|
-
};
|
|
680
|
-
/** A non-interactive placeholder that preserves the selected card layout while data loads. */
|
|
681
|
-
declare function KeepItemCardSkeleton({ layout, ...props }: KeepItemCardSkeletonProps): react.JSX.Element;
|
|
682
|
-
|
|
683
|
-
type KeepArchiveScope = "active" | "archived" | "all";
|
|
684
|
-
type KeepArchiveScopeSelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "value" | "defaultValue" | "onChange"> & {
|
|
685
|
-
value?: KeepArchiveScope;
|
|
686
|
-
defaultValue?: KeepArchiveScope;
|
|
687
|
-
onValueChange?: (value: KeepArchiveScope) => void;
|
|
688
|
-
};
|
|
689
|
-
/** A localized active/archived/all selector for a KeepCollection query. */
|
|
690
|
-
declare function KeepArchiveScopeSelect({ value: controlledValue, defaultValue, onValueChange, "aria-label": ariaLabel, ...props }: KeepArchiveScopeSelectProps): react.JSX.Element;
|
|
691
|
-
|
|
692
|
-
type KeepListSelection = {
|
|
693
|
-
selectedIds: readonly string[];
|
|
694
|
-
onSelectedIdsChange: (ids: string[]) => void;
|
|
695
|
-
disabled?: boolean;
|
|
696
|
-
};
|
|
697
|
-
type KeepItemSelection = {
|
|
698
|
-
checked: boolean;
|
|
699
|
-
onCheckedChange: (checked: boolean) => void;
|
|
700
|
-
disabled?: boolean;
|
|
701
|
-
};
|
|
702
|
-
type KeepListState<TMeta = Record<string, unknown>> = UseKeepListResult<TMeta>;
|
|
703
|
-
type KeepListProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
704
|
-
ref?: Ref<HTMLElement> | {
|
|
705
|
-
readonly current: unknown;
|
|
706
|
-
};
|
|
707
|
-
query?: KeepListQuery<TMeta>;
|
|
708
|
-
children?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
709
|
-
renderItem?: (item: KeepItem<TMeta>, state: KeepListState<TMeta>, selection?: KeepItemSelection) => ReactNode;
|
|
710
|
-
loading?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
711
|
-
/** Alias for `loading`. When neither is provided, layout-matched skeletons are rendered. */
|
|
712
|
-
renderLoading?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
713
|
-
loadingCount?: number;
|
|
714
|
-
empty?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
715
|
-
error?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
716
|
-
onClearFilters?: () => void;
|
|
717
|
-
itemCardProps?: Omit<KeepItemCardProps<TMeta>, "item" | "children" | "render">;
|
|
718
|
-
layout?: KeepLayoutPreset;
|
|
719
|
-
selection?: KeepListSelection;
|
|
720
|
-
reorderable?: boolean;
|
|
721
|
-
onReorder?: (orderedIds: string[]) => void | Promise<void>;
|
|
722
|
-
asChild?: boolean;
|
|
723
|
-
fallback?: KeepErrorBoundaryProps["fallback"];
|
|
724
|
-
onBoundaryError?: KeepErrorBoundaryProps["onError"];
|
|
725
|
-
boundaryResetKey?: unknown;
|
|
726
|
-
};
|
|
727
|
-
/** A list primitive with built-in loading, empty, error, and removal states. */
|
|
728
|
-
declare function KeepList<TMeta = Record<string, unknown>>(props: KeepListProps<TMeta>): react.JSX.Element;
|
|
729
|
-
|
|
730
|
-
type KeepCollectionFeature = "search" | "sort" | "pagination" | "tagFilter" | "collectionFilter" | "bulkActions" | "tags" | "pin" | "archive" | "note" | "savedViews";
|
|
731
|
-
type KeepLayoutPreset = "list" | "grid" | "compact" | "auto";
|
|
732
|
-
type KeepCollectionToolbarVariant = "plain" | "panel";
|
|
733
|
-
type KeepCollectionToolbarLayout = "flat" | "grouped";
|
|
734
|
-
type KeepCollectionToolbarGroup = "toolbarStart" | "query" | "filters" | "toolbarEnd";
|
|
735
|
-
type KeepCollectionToolbarContent<TMeta = Record<string, unknown>> = ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
736
|
-
type KeepCollectionSlots<TMeta = Record<string, unknown>> = {
|
|
737
|
-
toolbarStart?: KeepCollectionToolbarContent<TMeta>;
|
|
738
|
-
toolbarEnd?: KeepCollectionToolbarContent<TMeta>;
|
|
739
|
-
};
|
|
740
|
-
type KeepCollectionRevealRequest = {
|
|
741
|
-
requestId: number;
|
|
742
|
-
itemId: string;
|
|
743
|
-
};
|
|
744
|
-
type KeepCollectionRevealResult = {
|
|
745
|
-
requestId: number;
|
|
746
|
-
itemId: string;
|
|
747
|
-
status: "visible" | "not-found" | "excluded";
|
|
748
|
-
};
|
|
749
|
-
type KeepCollectionProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
750
|
-
query?: KeepListQuery<TMeta>;
|
|
751
|
-
pageSize?: number;
|
|
752
|
-
layout?: KeepLayoutPreset;
|
|
753
|
-
/** Opts into the theme-backed toolbar surface. */
|
|
754
|
-
toolbarVariant?: KeepCollectionToolbarVariant;
|
|
755
|
-
/** Groups host actions, query controls, and filters into labelled regions. */
|
|
756
|
-
toolbarLayout?: KeepCollectionToolbarLayout;
|
|
757
|
-
slots?: KeepCollectionSlots<TMeta>;
|
|
758
|
-
urlSync?: boolean | KeepUrlSyncOptions;
|
|
759
|
-
urlAdapter?: KeepUrlAdapter;
|
|
760
|
-
/** Enables the built-in active/archived/all scope selector and query state. */
|
|
761
|
-
archiveScope?: KeepArchiveScope;
|
|
762
|
-
onArchiveScopeChange?: (scope: KeepArchiveScope) => void;
|
|
763
|
-
/** Enables the built-in drag and keyboard reorder list. */
|
|
764
|
-
reorderable?: boolean;
|
|
765
|
-
onReorder?: (items: KeepItem<TMeta>[]) => void | Promise<void>;
|
|
766
|
-
features?: Partial<Record<KeepCollectionFeature, boolean>>;
|
|
767
|
-
bulkActionsVariant?: "separate" | "inline";
|
|
768
|
-
/** Requires confirmation before a bulk removal. */
|
|
769
|
-
confirmRemoval?: boolean;
|
|
770
|
-
collectionLabels?: Record<string, string>;
|
|
771
|
-
/** Shows a collection creation form in the toolbar. */
|
|
772
|
-
creatable?: boolean;
|
|
773
|
-
renderItem?: KeepListProps<TMeta>["renderItem"];
|
|
774
|
-
itemCardProps?: Omit<KeepItemCardProps<TMeta>, "item" | "children" | "render">;
|
|
775
|
-
loading?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
776
|
-
/** Alias for `loading`. When neither is provided, KeepList renders skeleton cards. */
|
|
777
|
-
renderLoading?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
778
|
-
loadingCount?: number;
|
|
779
|
-
activeFilters?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
780
|
-
empty?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
781
|
-
error?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
782
|
-
fallback?: KeepErrorBoundaryProps["fallback"];
|
|
783
|
-
onBoundaryError?: KeepErrorBoundaryProps["onError"];
|
|
784
|
-
boundaryResetKey?: unknown;
|
|
785
|
-
/** Requests the collection to clear local filters and reveal an item. */
|
|
786
|
-
revealRequest?: KeepCollectionRevealRequest;
|
|
787
|
-
onRevealResult?: (result: KeepCollectionRevealResult) => void;
|
|
788
|
-
};
|
|
789
|
-
/** A batteries-included collection with query controls and accessible status feedback. */
|
|
790
|
-
declare function KeepCollection<TMeta = Record<string, unknown>>(props: KeepCollectionProps<TMeta>): react.JSX.Element;
|
|
791
|
-
|
|
792
|
-
type KeepCollectionCreateProps = Omit<InputHTMLAttributes<HTMLInputElement>, "onSubmit" | "onChange"> & {
|
|
793
|
-
/** Called with the new collection ID after successful creation. */
|
|
794
|
-
onCreated?: (id: string) => void;
|
|
795
|
-
/** Called when creation fails (e.g. duplicate name). */
|
|
796
|
-
onError?: (error: unknown) => void;
|
|
797
|
-
/** Custom label for the input field. */
|
|
798
|
-
label?: ReactNode;
|
|
799
|
-
/** Custom label for the submit button. */
|
|
800
|
-
submitLabel?: ReactNode;
|
|
801
|
-
/** Placeholder text for the input. */
|
|
802
|
-
placeholder?: string;
|
|
803
|
-
};
|
|
804
|
-
/** A compact form for creating new named collections. */
|
|
805
|
-
declare function KeepCollectionCreate({ onCreated, onError, label, submitLabel, placeholder, id: externalId, ...inputProps }: KeepCollectionCreateProps): react.JSX.Element;
|
|
806
|
-
|
|
807
|
-
type KeepCollectionManagerProps = Omit<HTMLAttributes<HTMLElement>, "children" | "title" | "onError"> & {
|
|
808
|
-
/** Enables the built-in collection creation form. */
|
|
809
|
-
allowCreate?: boolean;
|
|
810
|
-
/** Enables inline collection renaming. */
|
|
811
|
-
allowRename?: boolean;
|
|
812
|
-
/** Enables inline collection deletion with confirmation. */
|
|
813
|
-
allowDelete?: boolean;
|
|
814
|
-
/** Shows item counts beside collection names. */
|
|
815
|
-
showCounts?: boolean;
|
|
816
|
-
/** Optional heading content. Defaults to the localized management label. */
|
|
817
|
-
title?: ReactNode;
|
|
818
|
-
/** Optional description rendered below the heading. */
|
|
819
|
-
description?: ReactNode;
|
|
820
|
-
/** Optional content rendered when there are no collections. */
|
|
821
|
-
empty?: ReactNode;
|
|
822
|
-
/** Replaces derived collection names in the management list. */
|
|
823
|
-
collectionLabels?: Record<string, string>;
|
|
824
|
-
onCreated?: (id: string) => void;
|
|
825
|
-
onRenamed?: (id: string, name: string) => void | Promise<void>;
|
|
826
|
-
onDeleted?: (id: string) => void | Promise<void>;
|
|
827
|
-
onError?: (error: unknown) => void;
|
|
828
|
-
};
|
|
829
|
-
/** A headless collection manager for creating, renaming, and removing collections. */
|
|
830
|
-
declare function KeepCollectionManager<TMeta = Record<string, unknown>>({ allowCreate, allowRename, allowDelete, showCounts, title, description, empty, collectionLabels, onCreated, onRenamed, onDeleted, onError, className, ...rootProps }: KeepCollectionManagerProps): react.JSX.Element;
|
|
831
|
-
|
|
832
|
-
type KeepInboxProps<TMeta = Record<string, unknown>> = Omit<KeepCollectionProps<TMeta>, "query"> & {
|
|
833
|
-
query?: KeepListQuery<TMeta>;
|
|
834
|
-
};
|
|
835
|
-
/** Collection preset for active items that have not been assigned to a collection. */
|
|
836
|
-
declare function KeepInbox<TMeta = Record<string, unknown>>({ query, ...props }: KeepInboxProps<TMeta>): react.JSX.Element;
|
|
837
|
-
|
|
838
|
-
type KeepLayoutProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
839
|
-
layout?: KeepLayoutPreset;
|
|
840
|
-
children?: ReactNode;
|
|
841
|
-
};
|
|
842
|
-
/** A container-aware layout wrapper with a stable preset attribute for host or theme CSS. */
|
|
843
|
-
declare function KeepLayout({ layout, children, onKeyDown, onFocusCapture, ...props }: KeepLayoutProps): react.JSX.Element;
|
|
844
|
-
|
|
845
|
-
type KeepReorderableItemState = {
|
|
846
|
-
index: number;
|
|
847
|
-
isDragging: boolean;
|
|
848
|
-
dragHandleProps: {
|
|
849
|
-
role: "button";
|
|
850
|
-
tabIndex: 0;
|
|
851
|
-
draggable: true;
|
|
852
|
-
"data-drag-handle": "true";
|
|
853
|
-
"aria-label": string;
|
|
854
|
-
"aria-grabbed": boolean;
|
|
855
|
-
onDragStart: () => void;
|
|
856
|
-
onDragEnd: () => void;
|
|
857
|
-
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
858
|
-
};
|
|
859
|
-
moveUp: () => void;
|
|
860
|
-
moveDown: () => void;
|
|
861
|
-
};
|
|
862
|
-
type KeepReorderableListProps<TItem extends {
|
|
863
|
-
id: string;
|
|
864
|
-
} = KeepItem> = Omit<HTMLAttributes<HTMLUListElement>, "children" | "onChange"> & {
|
|
865
|
-
items: readonly TItem[];
|
|
866
|
-
onReorder: (orderedIds: string[]) => void | Promise<void>;
|
|
867
|
-
renderItem: (item: TItem, state: KeepReorderableItemState) => ReactNode;
|
|
868
|
-
itemLabel?: (item: TItem, index: number) => string;
|
|
869
|
-
};
|
|
870
|
-
/** Accessible drag-and-drop list with keyboard up/down fallback and no styling assumptions. */
|
|
871
|
-
declare function KeepReorderableList<TItem extends {
|
|
872
|
-
id: string;
|
|
873
|
-
} = KeepItem>({ items, onReorder, renderItem, itemLabel, ...props }: KeepReorderableListProps<TItem>): react.JSX.Element;
|
|
874
|
-
|
|
875
|
-
type KeepNoteEditorState<TMeta = Record<string, unknown>> = {
|
|
876
|
-
item: KeepItem<TMeta>;
|
|
877
|
-
note: string;
|
|
878
|
-
setNote: (note: string) => void;
|
|
879
|
-
isDirty: boolean;
|
|
880
|
-
isSaving: boolean;
|
|
881
|
-
error: unknown | null;
|
|
882
|
-
save: () => Promise<void>;
|
|
883
|
-
};
|
|
884
|
-
type KeepNoteEditorProps<TMeta = Record<string, unknown>> = Omit<FormHTMLAttributes<HTMLFormElement>, "children" | "onSubmit"> & {
|
|
885
|
-
item: KeepItem<TMeta>;
|
|
886
|
-
label?: ReactNode;
|
|
887
|
-
saveLabel?: ReactNode;
|
|
888
|
-
placeholder?: string;
|
|
889
|
-
/** Automatically save dirty notes after this delay; set to 0 to disable auto-save. */
|
|
890
|
-
debounceMs?: number;
|
|
891
|
-
showShortcutHint?: boolean;
|
|
892
|
-
onSaved?: (note?: string) => void;
|
|
893
|
-
onSaveError?: (error: unknown) => void;
|
|
894
|
-
render?: RenderProp<KeepNoteEditorState<TMeta>>;
|
|
895
|
-
children?: ReactNode | RenderProp<KeepNoteEditorState<TMeta>>;
|
|
896
|
-
asChild?: boolean;
|
|
897
|
-
};
|
|
898
|
-
/** A controlled-by-default note editor that persists through useKeepItem. */
|
|
899
|
-
declare function KeepNoteEditor<TMeta = Record<string, unknown>>({ item, label, saveLabel, placeholder, debounceMs, showShortcutHint, onSaved, onSaveError, render, children, asChild, className, ...formProps }: KeepNoteEditorProps<TMeta>): react.JSX.Element;
|
|
900
|
-
|
|
901
|
-
type KeepTagEditorState = {
|
|
902
|
-
tags: string[];
|
|
903
|
-
setTags: (tags: string[]) => void;
|
|
904
|
-
save: () => Promise<void>;
|
|
905
|
-
isSaving: boolean;
|
|
906
|
-
};
|
|
907
|
-
type KeepTagEditorProps<TMeta = Record<string, unknown>> = Omit<FormHTMLAttributes<HTMLFormElement>, "children" | "onSubmit"> & {
|
|
908
|
-
item: KeepItem<TMeta>;
|
|
909
|
-
availableTags?: string[];
|
|
910
|
-
onSaved?: (tags?: string[]) => void;
|
|
911
|
-
onSaveError?: (error: unknown) => void;
|
|
912
|
-
render?: RenderProp<KeepTagEditorState>;
|
|
913
|
-
};
|
|
914
|
-
/** Edits one item's normalized tag set; Enter adds and Backspace removes the last tag. */
|
|
915
|
-
declare function KeepTagEditor<TMeta = Record<string, unknown>>({ item, availableTags, onSaved, onSaveError, render, ...props }: KeepTagEditorProps<TMeta>): react.JSX.Element;
|
|
916
|
-
|
|
917
|
-
type KeepUiLabelKey = "confirmRemoval" | "confirmRemovalDescription" | "confirmReplace" | "confirmReplaceDescription" | "fallbackRecovery" | "inspectRecovery" | "recoveryPrimary" | "recoveryFallback" | "recoverySnapshot" | "recoveryLegacy" | "recoveryUnavailable" | "recoveryStale" | "recoveryPending" | "recoveryReady" | "recoveryChooseSource" | "recoveryPreview" | "recoveryApply" | "recoveryApplied" | "recoveryCommitted" | "recoveryItems" | "recoveryMemberships" | "recoveryBackups" | "recoveryIssues" | "recoveryNoChanges" | "moveSelectedCollection" | "archiveSelected" | "unarchiveSelected" | "pinSelected" | "unpinSelected" | "done" | "moreActions" | "moveSelected" | "save" | "saved" | "remove" | "loading" | "saving" | "syncing" | "error" | "archive" | "unarchive" | "archived" | "pin" | "unpin" | "pinned" | "collection" | "allCollections" | "filterCollections" | "uncategorized" | "saveWithNote" | "editSavedItem" | "unsavedChanges" | "allTags" | "tags" | "title" | "filterTags" | "activeFilters" | "clearFilters" | "clearAllFilters" | "resetFilters" | "removeFilter" | "noFilteredItems" | "noFilteredItemsDescription" | "emptyStorageDescription" | "note" | "saveNote" | "noItems" | "loadingItems" | "errorItems" | "search" | "sort" | "newest" | "oldest" | "savedNewest" | "savedOldest" | "updatedNewest" | "updatedOldest" | "previousPage" | "nextPage" | "pagination" | "page" | "selectItems" | "selectedCount" | "deleteSelected" | "tagsToApply" | "applyTags" | "addTags" | "removeTags" | "savedMessage" | "removedMessage" | "restoredMessage" | "syncFailedMessage" | "stalePrunedMessage" | "undo" | "undoAvailable" | "selectionScope" | "currentPage" | "searchResults" | "allItems" | "localVersion" | "remoteVersion" | "updatedAt" | "statusAvailable" | "noteSavedMessage" | "exportData" | "exportMarkdown" | "importData" | "importMode" | "merge" | "replace" | "importedCount" | "failedCount" | "storageQuotaError" | "statusExpired" | "statusRemoved" | "statusDeleted" | "statusPrivate" | "statusUnknown" | "retry" | "removeFromList" | "pruneStale" | "retrySync" | "resolveSync" | "keepLocal" | "useServer" | "manualMerge" | "close" | "backupRecovery" | "backupRecoveryDescription" | "syncPending" | "syncSynced" | "syncConflict" | "archiveScope" | "archiveScopeActive" | "archiveScopeArchived" | "archiveScopeAll" | "activityNeverOpened" | "activityOpened" | "activityInactiveFor" | "activityInactiveSuffix" | "activityBefore" | "activityAfter" | "undoReorder" | "toolbarStart" | "toolbarQuery" | "toolbarFilters" | "toolbarEnd" | "createCollection" | "createCollectionSubmit" | "collectionName" | "manageCollections" | "renameCollection" | "renameCollectionSubmit" | "deleteCollection" | "deleteCollectionConfirm" | "deleteCollectionSubmit" | "cancel" | "collectionItem" | "collectionItems" | "manualSort" | "moveItem" | "reorderMoved" | "reorderFailed" | "savedViews" | "savedViewName" | "saveView" | "renameSavedView" | "savedViewNewName" | "deleteSavedView" | "savedViewsLoadError" | "savedViewSaveError" | "savedViewNameRequired" | "savedViewNotSerializable" | "savedViewInvalidDates";
|
|
918
|
-
type KeepUiLabelOptions = {
|
|
919
|
-
/** Replaces the localized label text. Omit to keep the locale default. */
|
|
920
|
-
text?: string;
|
|
921
|
-
/** Controls the visible label. Accessible names remain available when a label is hidden. */
|
|
922
|
-
visible?: boolean;
|
|
923
|
-
};
|
|
924
|
-
type KeepUiLabels = Partial<Record<KeepUiLabelKey, string>>;
|
|
925
|
-
type KeepUiLabelOptionsMap = Partial<Record<KeepUiLabelKey, KeepUiLabelOptions>>;
|
|
926
|
-
type KeepUiLocaleLabels = Record<KeepUiLabelKey, string>;
|
|
927
|
-
|
|
928
|
-
declare const KEEP_BUILT_IN_LOCALES: readonly ["en", "ja", "ko", "zh-Hans", "zh-Hant", "th", "fr", "es", "pt-BR", "it", "de", "ru", "fil", "vi", "id", "ms"];
|
|
929
|
-
type KeepUiLocale = (typeof KEEP_BUILT_IN_LOCALES)[number];
|
|
930
|
-
declare function getKeepLocaleLabels(locale?: string): KeepUiLocaleLabels;
|
|
931
|
-
|
|
932
|
-
type KeepUiLabelContext = {
|
|
933
|
-
locale?: string;
|
|
934
|
-
labels: Readonly<Record<KeepUiLabelKey, string>>;
|
|
935
|
-
labelVisibility?: Readonly<Partial<Record<KeepUiLabelKey, boolean>>>;
|
|
936
|
-
customLabels?: KeepUiLabels;
|
|
937
|
-
labelOptions?: KeepUiLabelOptionsMap;
|
|
938
|
-
labelResolver?: (key: KeepUiLabelKey, context: {
|
|
939
|
-
locale?: string;
|
|
940
|
-
}) => string | undefined;
|
|
941
|
-
emitFeedback: <TMeta>(event: KeepUiFeedbackEvent<TMeta>) => void;
|
|
942
|
-
};
|
|
943
|
-
type KeepUiFeedbackBase<TType extends string> = {
|
|
944
|
-
type: TType;
|
|
945
|
-
message: string;
|
|
946
|
-
};
|
|
947
|
-
type KeepUiFeedbackEvent<TMeta = Record<string, unknown>> = (KeepUiFeedbackBase<"item-saved"> & {
|
|
948
|
-
item: KeepItem<TMeta>;
|
|
949
|
-
}) | (KeepUiFeedbackBase<"item-removed"> & {
|
|
950
|
-
item: KeepItem<TMeta>;
|
|
951
|
-
undo: () => void | Promise<void>;
|
|
952
|
-
undoLabel: string;
|
|
953
|
-
}) | (KeepUiFeedbackBase<"item-restored"> & {
|
|
954
|
-
item?: KeepItem<TMeta>;
|
|
955
|
-
items: KeepItem<TMeta>[];
|
|
956
|
-
}) | KeepUiFeedbackBase<"sync-completed"> | (KeepUiFeedbackBase<"sync-failed"> & {
|
|
957
|
-
error: unknown;
|
|
958
|
-
}) | (KeepUiFeedbackBase<"stale-pruned"> & {
|
|
959
|
-
item?: KeepItem<TMeta>;
|
|
960
|
-
items: KeepItem<TMeta>[];
|
|
961
|
-
undo: () => void | Promise<void>;
|
|
962
|
-
undoLabel: string;
|
|
963
|
-
});
|
|
964
|
-
type KeepUiProviderProps<TMeta = Record<string, unknown>> = {
|
|
965
|
-
labels?: KeepUiLabels;
|
|
966
|
-
labelOptions?: KeepUiLabelOptionsMap;
|
|
967
|
-
locale?: string;
|
|
968
|
-
labelResolver?: KeepUiLabelContext["labelResolver"];
|
|
969
|
-
onFeedback?: (event: KeepUiFeedbackEvent<TMeta>) => void;
|
|
970
|
-
children?: ReactNode;
|
|
971
|
-
};
|
|
972
|
-
/** Provides one complete locale-aware label source to every UI primitive. */
|
|
973
|
-
declare function KeepUiProvider<TMeta = Record<string, unknown>>({ labels, labelOptions, locale, labelResolver, onFeedback, children, }: KeepUiProviderProps<TMeta>): react.JSX.Element;
|
|
974
|
-
declare function useKeepUiLabels(): KeepUiLabelContext;
|
|
975
|
-
/** Returns whether a localized label should be rendered as visible text. */
|
|
976
|
-
declare function useUiLabelVisibility(key: KeepUiLabelKey): boolean;
|
|
977
|
-
|
|
978
71
|
type KeepToastFeedbackOptions = {
|
|
979
72
|
action?: {
|
|
980
73
|
label: string;
|
|
@@ -985,284 +78,6 @@ type KeepToastHandler = (message: string, options?: KeepToastFeedbackOptions) =>
|
|
|
985
78
|
/** Adapts KeepKit feedback to Sonner-like toast functions without adding a toast dependency. */
|
|
986
79
|
declare function useKeepToastFeedback<TMeta = Record<string, unknown>>(showToast: KeepToastHandler): (event: KeepUiFeedbackEvent<TMeta>) => void;
|
|
987
80
|
|
|
988
|
-
type KeepItemStatusBadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
989
|
-
status?: KeepItemStatus | "restricted";
|
|
990
|
-
label?: ReactNode;
|
|
991
|
-
};
|
|
992
|
-
type KeepDisplayStatus = "available" | "expired" | "removed" | "restricted";
|
|
993
|
-
/** Displays the normalized availability state of a saved item. */
|
|
994
|
-
declare function KeepItemStatusBadge({ status, label, className, ...props }: KeepItemStatusBadgeProps): react.JSX.Element;
|
|
995
|
-
|
|
996
|
-
type KeepFloatingTourProps<TMeta = Record<string, unknown>> = {
|
|
997
|
-
currentId?: string;
|
|
998
|
-
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
999
|
-
getBackHref?: () => string;
|
|
1000
|
-
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
1001
|
-
onBack?: () => void | Promise<void>;
|
|
1002
|
-
position?: "bottom-center" | "bottom-left" | "bottom-right";
|
|
1003
|
-
offset?: number | string;
|
|
1004
|
-
zIndex?: number;
|
|
1005
|
-
className?: string;
|
|
1006
|
-
style?: CSSProperties;
|
|
1007
|
-
keyboardShortcuts?: boolean;
|
|
1008
|
-
showShortcutHint?: boolean;
|
|
1009
|
-
children?: ReactNode;
|
|
1010
|
-
};
|
|
1011
|
-
/** A fixed, portal-rendered tour bar that does not consume host layout space. */
|
|
1012
|
-
declare function KeepFloatingTour<TMeta = Record<string, unknown>>({ currentId, getItemHref, getBackHref, onNavigate, onBack, position, offset, zIndex, className, style, keyboardShortcuts, showShortcutHint, }: KeepFloatingTourProps<TMeta>): react.ReactPortal | null;
|
|
1013
|
-
|
|
1014
|
-
type KeepShortcutHintProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
1015
|
-
shortcut: string | readonly string[];
|
|
1016
|
-
separator?: ReactNode;
|
|
1017
|
-
};
|
|
1018
|
-
/** Displays a keyboard shortcut using semantic kbd elements. */
|
|
1019
|
-
declare function KeepShortcutHint({ shortcut, separator, ...props }: KeepShortcutHintProps): react.JSX.Element;
|
|
1020
|
-
|
|
1021
|
-
type KeepTourShortcutsOptions = {
|
|
1022
|
-
onNext: () => void | Promise<void>;
|
|
1023
|
-
onPrev: () => void | Promise<void>;
|
|
1024
|
-
enabled?: boolean;
|
|
1025
|
-
allowInEditable?: boolean;
|
|
1026
|
-
preventDefault?: boolean;
|
|
1027
|
-
nextKeys?: readonly string[];
|
|
1028
|
-
prevKeys?: readonly string[];
|
|
1029
|
-
onError?: (error: unknown) => void;
|
|
1030
|
-
};
|
|
1031
|
-
/** Bind J/]/K/[ (or custom keys) to previous/next tour actions. */
|
|
1032
|
-
declare function useKeepTourShortcuts({ onNext, onPrev, enabled, allowInEditable, preventDefault, nextKeys, prevKeys, onError, }: KeepTourShortcutsOptions): void;
|
|
1033
|
-
|
|
1034
|
-
type KeepTourBarProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1035
|
-
ref?: Ref<HTMLElement> | {
|
|
1036
|
-
readonly current: unknown;
|
|
1037
|
-
};
|
|
1038
|
-
navigation?: UseKeepNavigatorResult<TMeta>;
|
|
1039
|
-
currentId?: string;
|
|
1040
|
-
initialIndex?: number;
|
|
1041
|
-
showProgress?: boolean;
|
|
1042
|
-
prevHref?: string;
|
|
1043
|
-
nextHref?: string;
|
|
1044
|
-
backHref?: string;
|
|
1045
|
-
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
1046
|
-
getBackHref?: () => string;
|
|
1047
|
-
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
1048
|
-
onPrev?: () => void | Promise<void>;
|
|
1049
|
-
onNext?: () => void | Promise<void>;
|
|
1050
|
-
onBack?: () => void | Promise<void>;
|
|
1051
|
-
prevLabel?: string;
|
|
1052
|
-
nextLabel?: string;
|
|
1053
|
-
backLabel?: string;
|
|
1054
|
-
keyboardShortcuts?: boolean;
|
|
1055
|
-
showShortcutHint?: boolean;
|
|
1056
|
-
shortcutOptions?: Omit<KeepTourShortcutsOptions, "onNext" | "onPrev">;
|
|
1057
|
-
progress?: ReactNode;
|
|
1058
|
-
getItemTitle?: (item: KeepItem<TMeta>) => ReactNode;
|
|
1059
|
-
children?: ReactNode;
|
|
1060
|
-
asChild?: boolean;
|
|
1061
|
-
};
|
|
1062
|
-
/** Headless previous/current/next navigation with optional URL links and keyboard shortcuts. */
|
|
1063
|
-
declare function KeepTourBar<TMeta = Record<string, unknown>>({ navigation: providedNavigation, currentId, initialIndex, showProgress, prevHref, nextHref, backHref, getItemHref, getBackHref, onNavigate, onPrev, onNext, onBack, prevLabel, nextLabel, backLabel, keyboardShortcuts, showShortcutHint, shortcutOptions, progress, getItemTitle, children, asChild, ...props }: KeepTourBarProps<TMeta>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
1064
|
-
declare const KeepNavigator: typeof KeepTourBar;
|
|
1065
|
-
|
|
1066
|
-
type KeepTourPosition = "bottom-center" | "bottom-left" | "bottom-right";
|
|
1067
|
-
type KeepTourPersistenceStatus = "persistent" | "memory";
|
|
1068
|
-
type KeepTourStartOptions = {
|
|
1069
|
-
itemIds: readonly string[];
|
|
1070
|
-
currentId?: string;
|
|
1071
|
-
};
|
|
1072
|
-
type KeepTourContextValue<TMeta = Record<string, unknown>> = {
|
|
1073
|
-
active: boolean;
|
|
1074
|
-
itemIds: readonly string[];
|
|
1075
|
-
currentId: string | null;
|
|
1076
|
-
collapsed: boolean;
|
|
1077
|
-
persistenceStatus: KeepTourPersistenceStatus;
|
|
1078
|
-
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
1079
|
-
getBackHref?: () => string;
|
|
1080
|
-
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
1081
|
-
start: (options: KeepTourStartOptions) => boolean;
|
|
1082
|
-
end: () => void;
|
|
1083
|
-
collapse: () => void;
|
|
1084
|
-
expand: () => void;
|
|
1085
|
-
goNext: () => KeepItem<TMeta> | null;
|
|
1086
|
-
goPrev: () => KeepItem<TMeta> | null;
|
|
1087
|
-
setCurrentId: (id: string) => void;
|
|
1088
|
-
};
|
|
1089
|
-
type KeepTourProviderProps<TMeta = Record<string, unknown>> = {
|
|
1090
|
-
children?: ReactNode;
|
|
1091
|
-
sessionKey?: string;
|
|
1092
|
-
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
1093
|
-
getBackHref?: () => string;
|
|
1094
|
-
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
1095
|
-
};
|
|
1096
|
-
declare function KeepTourProvider<TMeta = Record<string, unknown>>({ children, sessionKey, getItemHref, getBackHref, onNavigate, }: KeepTourProviderProps<TMeta>): react.JSX.Element;
|
|
1097
|
-
declare function useKeepTour<TMeta = Record<string, unknown>>(options?: {
|
|
1098
|
-
currentId?: string;
|
|
1099
|
-
}): KeepTourContextValue<TMeta>;
|
|
1100
|
-
|
|
1101
|
-
type KeepActiveFiltersSummaryProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1102
|
-
ref?: Ref<HTMLElement> | {
|
|
1103
|
-
readonly current: unknown;
|
|
1104
|
-
};
|
|
1105
|
-
query?: KeepListQuery<TMeta>;
|
|
1106
|
-
search?: string;
|
|
1107
|
-
tags?: readonly string[];
|
|
1108
|
-
collection?: string;
|
|
1109
|
-
collectionLabel?: string;
|
|
1110
|
-
organization?: KeepListQuery<TMeta>["organization"];
|
|
1111
|
-
savedBetween?: KeepListQuery<TMeta>["savedBetween"];
|
|
1112
|
-
activity?: KeepListQuery<TMeta>["activity"];
|
|
1113
|
-
activityLabel?: string;
|
|
1114
|
-
archiveScope?: KeepListQuery<TMeta>["archiveScope"];
|
|
1115
|
-
archiveScopeLabel?: string;
|
|
1116
|
-
totalCount?: number;
|
|
1117
|
-
onSearchChange?: (value: string) => void;
|
|
1118
|
-
onTagChange?: (tag: string) => void;
|
|
1119
|
-
onCollectionChange?: (collectionId?: string) => void;
|
|
1120
|
-
onOrganizationChange?: (organization?: KeepListQuery<TMeta>["organization"]) => void;
|
|
1121
|
-
onSavedBetweenChange?: (range?: KeepListQuery<TMeta>["savedBetween"]) => void;
|
|
1122
|
-
onActivityChange?: (activity?: KeepListQuery<TMeta>["activity"]) => void;
|
|
1123
|
-
onArchiveScopeChange?: (scope: NonNullable<KeepListQuery<TMeta>["archiveScope"]>) => void;
|
|
1124
|
-
onClear?: () => void;
|
|
1125
|
-
onReset?: () => void;
|
|
1126
|
-
canReset?: boolean;
|
|
1127
|
-
children?: ReactNode | RenderProp<KeepActiveFiltersSummaryState>;
|
|
1128
|
-
asChild?: boolean;
|
|
1129
|
-
};
|
|
1130
|
-
type KeepActiveFiltersSummaryState = {
|
|
1131
|
-
search: string;
|
|
1132
|
-
tags: string[];
|
|
1133
|
-
collection?: string;
|
|
1134
|
-
organization?: KeepListQuery["organization"];
|
|
1135
|
-
savedBetween?: KeepListQuery["savedBetween"];
|
|
1136
|
-
activity?: KeepListQuery["activity"];
|
|
1137
|
-
archiveScope?: KeepListQuery["archiveScope"];
|
|
1138
|
-
totalCount?: number;
|
|
1139
|
-
hasFilters: boolean;
|
|
1140
|
-
clear: () => void;
|
|
1141
|
-
removeSearch: () => void;
|
|
1142
|
-
removeTag: (tag: string) => void;
|
|
1143
|
-
removeCollection: () => void;
|
|
1144
|
-
removeOrganization: (field: "collection" | "tags" | "note") => void;
|
|
1145
|
-
removeSavedBetween: () => void;
|
|
1146
|
-
removeActivity: () => void;
|
|
1147
|
-
removeArchiveScope: () => void;
|
|
1148
|
-
reset: () => void;
|
|
1149
|
-
};
|
|
1150
|
-
/** Lists active query filters with one-tap recovery actions. */
|
|
1151
|
-
declare function KeepActiveFiltersSummary<TMeta = Record<string, unknown>>({ query, search: providedSearch, tags: providedTags, collection: providedCollection, collectionLabel: providedCollectionLabel, organization: providedOrganization, savedBetween: providedSavedBetween, activity: providedActivity, activityLabel: providedActivityLabel, archiveScope: providedArchiveScope, archiveScopeLabel: providedArchiveScopeLabel, totalCount, onSearchChange, onTagChange, onCollectionChange, onOrganizationChange, onSavedBetweenChange, onActivityChange, onArchiveScopeChange, onClear, onReset, canReset, children, asChild, className, ...rootProps }: KeepActiveFiltersSummaryProps<TMeta>): ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
1152
|
-
|
|
1153
|
-
type KeepCollectionOption = {
|
|
1154
|
-
id?: string;
|
|
1155
|
-
label: string;
|
|
1156
|
-
};
|
|
1157
|
-
type KeepCollectionControlProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "value" | "defaultValue" | "onChange"> & {
|
|
1158
|
-
value?: string;
|
|
1159
|
-
defaultValue?: string;
|
|
1160
|
-
onValueChange?: (collectionId?: string) => void;
|
|
1161
|
-
onChange?: (collectionId?: string) => void;
|
|
1162
|
-
collectionLabels?: Record<string, string>;
|
|
1163
|
-
allLabel?: string;
|
|
1164
|
-
uncategorizedLabel?: string;
|
|
1165
|
-
};
|
|
1166
|
-
/** A select that moves one item between derived collections. */
|
|
1167
|
-
declare function KeepCollectionSelect<TMeta = Record<string, unknown>>({ item, value, defaultValue, onValueChange, onChange, collectionLabels, uncategorizedLabel, ...props }: KeepCollectionControlProps & {
|
|
1168
|
-
item: KeepItem<TMeta>;
|
|
1169
|
-
}): react.JSX.Element;
|
|
1170
|
-
/** A select filter for the collections derived from current items. */
|
|
1171
|
-
declare function KeepCollectionFilter<TMeta = Record<string, unknown>>({ value, defaultValue, onValueChange, onChange, collectionLabels, allLabel, uncategorizedLabel, ...props }: KeepCollectionControlProps): react.JSX.Element;
|
|
1172
|
-
|
|
1173
|
-
type KeepTagFilterState = {
|
|
1174
|
-
tags: string[];
|
|
1175
|
-
tagCounts: Record<string, number>;
|
|
1176
|
-
value?: string;
|
|
1177
|
-
values: string[];
|
|
1178
|
-
select: (tag?: string) => void;
|
|
1179
|
-
toggle: (tag: string) => void;
|
|
1180
|
-
};
|
|
1181
|
-
type KeepTagFilterProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children" | "onChange"> & {
|
|
1182
|
-
query?: KeepListQuery<TMeta>;
|
|
1183
|
-
value?: string;
|
|
1184
|
-
defaultValue?: string;
|
|
1185
|
-
values?: readonly string[];
|
|
1186
|
-
defaultValues?: readonly string[];
|
|
1187
|
-
onChange?: (tag?: string) => void;
|
|
1188
|
-
onValueChange?: (tag?: string) => void;
|
|
1189
|
-
onValuesChange?: (tags: string[]) => void;
|
|
1190
|
-
allLabel?: ReactNode;
|
|
1191
|
-
ariaLabel?: string;
|
|
1192
|
-
renderTag?: (tag: string, count: number, selected: boolean) => ReactNode;
|
|
1193
|
-
render?: RenderProp<KeepTagFilterState>;
|
|
1194
|
-
children?: ReactNode | RenderProp<KeepTagFilterState>;
|
|
1195
|
-
asChild?: boolean;
|
|
1196
|
-
};
|
|
1197
|
-
/** An ARIA button group for tag filtering; consumers can connect value to a collection query. */
|
|
1198
|
-
declare function KeepTagFilter<TMeta = Record<string, unknown>>({ query, value: controlledValue, defaultValue, values: controlledValues, defaultValues, onChange, onValueChange, onValuesChange, allLabel, ariaLabel, renderTag, render, children, asChild, className, ...rootProps }: KeepTagFilterProps<TMeta>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
1199
|
-
|
|
1200
|
-
type KeepSearchInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange"> & {
|
|
1201
|
-
value?: string;
|
|
1202
|
-
defaultValue?: string;
|
|
1203
|
-
/** Delay before notifying consumers; set to 0 to disable debouncing. */
|
|
1204
|
-
debounceMs?: number;
|
|
1205
|
-
onValueChange?: (value: string) => void;
|
|
1206
|
-
};
|
|
1207
|
-
/** A controlled/uncontrolled search field with a small built-in debounce. */
|
|
1208
|
-
declare function KeepSearchInput({ value: controlledValue, defaultValue, debounceMs, onValueChange, "aria-label": ariaLabel, placeholder, ...props }: KeepSearchInputProps): react.JSX.Element;
|
|
1209
|
-
type KeepSortValue = "savedAt:desc" | "savedAt:asc" | "updatedAt:desc" | "updatedAt:asc" | "lastOpenedAt:desc" | "lastOpenedAt:asc";
|
|
1210
|
-
type KeepSortSelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "value" | "defaultValue" | "onChange"> & {
|
|
1211
|
-
value?: KeepSortValue | "manual";
|
|
1212
|
-
defaultValue?: KeepSortValue | "manual";
|
|
1213
|
-
onValueChange?: (value: KeepSortValue, sort: NonNullable<KeepListQuery["sort"]>) => void;
|
|
1214
|
-
/** Adds a manual-order option without changing the dated-sort callback. */
|
|
1215
|
-
onManualSort?: () => void;
|
|
1216
|
-
};
|
|
1217
|
-
/** Emits a normalized sort descriptor that can be passed directly to useKeepList. */
|
|
1218
|
-
declare function KeepSortSelect({ value: controlledValue, defaultValue, onValueChange, onManualSort, "aria-label": ariaLabel, children, ...props }: KeepSortSelectProps): react.JSX.Element;
|
|
1219
|
-
type KeepPaginationState = {
|
|
1220
|
-
page: number;
|
|
1221
|
-
pageCount: number;
|
|
1222
|
-
goToPage: (page: number) => void;
|
|
1223
|
-
};
|
|
1224
|
-
type KeepPaginationProps = Omit<React.HTMLAttributes<HTMLElement>, "children"> & {
|
|
1225
|
-
totalCount: number;
|
|
1226
|
-
pageSize: number;
|
|
1227
|
-
page?: number;
|
|
1228
|
-
maxPageButtons?: number;
|
|
1229
|
-
onPageChange?: (page: number, offset: number) => void;
|
|
1230
|
-
render?: (state: KeepPaginationState) => ReactNode;
|
|
1231
|
-
};
|
|
1232
|
-
/** Accessible pagination with previous/next controls and numbered page buttons. */
|
|
1233
|
-
declare function KeepPagination({ totalCount, pageSize, page, maxPageButtons, onPageChange, render, ...props }: KeepPaginationProps): react.JSX.Element;
|
|
1234
|
-
|
|
1235
|
-
type KeepFallbackRecoveryProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1236
|
-
/** Pass a standalone local adapter's capability before initializing remote synchronization. */
|
|
1237
|
-
recovery: KeepStorageRecovery<TMeta>;
|
|
1238
|
-
};
|
|
1239
|
-
/** Compares persisted versions without writing; only an explicit reviewed apply commits a repair. */
|
|
1240
|
-
declare function KeepFallbackRecovery<TMeta = Record<string, unknown>>({ recovery, ...props }: KeepFallbackRecoveryProps<TMeta>): react.JSX.Element;
|
|
1241
|
-
|
|
1242
|
-
type KeepRediscoveryProps<TMeta = Record<string, unknown>> = Omit<KeepListProps<TMeta>, "query"> & {
|
|
1243
|
-
strategy: KeepRediscoveryStrategy;
|
|
1244
|
-
inactiveForMs?: number;
|
|
1245
|
-
limit?: number;
|
|
1246
|
-
};
|
|
1247
|
-
/** A small composition for the standard rediscovery queries. */
|
|
1248
|
-
declare function KeepRediscovery<TMeta = Record<string, unknown>>({ strategy, inactiveForMs, limit, itemCardProps, ...props }: KeepRediscoveryProps<TMeta>): react.JSX.Element;
|
|
1249
|
-
type KeepRediscoveryPanelProps<TMeta = Record<string, unknown>> = Omit<KeepRediscoveryProps<TMeta>, "children"> & Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1250
|
-
title?: string;
|
|
1251
|
-
description?: string;
|
|
1252
|
-
};
|
|
1253
|
-
/** A labelled Rediscovery section that explains why its items are shown. */
|
|
1254
|
-
declare function KeepRediscoveryPanel<TMeta = Record<string, unknown>>({ title, description, strategy, ...props }: KeepRediscoveryPanelProps<TMeta>): react.JSX.Element;
|
|
1255
|
-
|
|
1256
|
-
type KeepSavedViewsProps<TMeta = Record<string, unknown>> = {
|
|
1257
|
-
storage?: KeepSavedViewStorage<TMeta>;
|
|
1258
|
-
onApply?: (query: KeepListQuery<TMeta>) => void;
|
|
1259
|
-
};
|
|
1260
|
-
declare function KeepSavedViews<TMeta = Record<string, unknown>>({ storage, onApply }: KeepSavedViewsProps<TMeta>): react.JSX.Element;
|
|
1261
|
-
declare function KeepSaveViewButton<TMeta = Record<string, unknown>>({ query, storage, }: {
|
|
1262
|
-
query: KeepListQuery<TMeta>;
|
|
1263
|
-
storage?: KeepSavedViewStorage<TMeta>;
|
|
1264
|
-
}): react.JSX.Element;
|
|
1265
|
-
|
|
1266
81
|
type UseKeepSavedViewsResult<TMeta = Record<string, unknown>> = {
|
|
1267
82
|
views: KeepSavedView<TMeta>[];
|
|
1268
83
|
error: unknown;
|
|
@@ -1274,166 +89,10 @@ type UseKeepSavedViewsResult<TMeta = Record<string, unknown>> = {
|
|
|
1274
89
|
};
|
|
1275
90
|
declare function useKeepSavedViews<TMeta = Record<string, unknown>>(storage?: KeepSavedViewStorage<TMeta>): UseKeepSavedViewsResult<TMeta>;
|
|
1276
91
|
|
|
1277
|
-
type KeepStaleNoticeProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1278
|
-
item: KeepItem<TMeta>;
|
|
1279
|
-
onRetry?: (item: KeepItem<TMeta>) => void | Promise<void>;
|
|
1280
|
-
onRemoved?: (item: KeepItem<TMeta>) => void;
|
|
1281
|
-
retryLabel?: ReactNode;
|
|
1282
|
-
removeLabel?: ReactNode;
|
|
1283
|
-
children?: ReactNode;
|
|
1284
|
-
};
|
|
1285
|
-
/** Provides retry and remove actions for an item whose source is no longer available. */
|
|
1286
|
-
declare function KeepStaleNotice<TMeta = Record<string, unknown>>({ item, onRetry, onRemoved, retryLabel, removeLabel, children, className, ...props }: KeepStaleNoticeProps<TMeta>): react.JSX.Element;
|
|
1287
|
-
type KeepPruneStaleButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
1288
|
-
statuses?: KeepItemStatus[];
|
|
1289
|
-
label?: ReactNode;
|
|
1290
|
-
onPruned?: (ids: string[]) => void;
|
|
1291
|
-
children?: ReactNode;
|
|
1292
|
-
};
|
|
1293
|
-
/** Removes all unavailable items through the provider's undo-capable batch action. */
|
|
1294
|
-
declare function KeepPruneStaleButton<TMeta = Record<string, unknown>>({ statuses, label, onPruned, children, disabled, ...props }: KeepPruneStaleButtonProps): react.JSX.Element;
|
|
1295
|
-
|
|
1296
|
-
type KeepEmptyStateVariant = "empty-storage" | "empty-filtered";
|
|
1297
|
-
type KeepEmptyStateProps = Omit<HTMLAttributes<HTMLElement>, "children" | "title"> & {
|
|
1298
|
-
title?: ReactNode;
|
|
1299
|
-
description?: ReactNode;
|
|
1300
|
-
action?: ReactNode;
|
|
1301
|
-
children?: ReactNode;
|
|
1302
|
-
variant?: KeepEmptyStateVariant;
|
|
1303
|
-
onClearFilters?: () => void;
|
|
1304
|
-
asChild?: boolean;
|
|
1305
|
-
};
|
|
1306
|
-
/** An accessible empty state that distinguishes an empty store from an empty filter result. */
|
|
1307
|
-
declare function KeepEmptyState({ title, description, action, children, variant, onClearFilters, asChild, className, ...rootProps }: KeepEmptyStateProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
1308
|
-
|
|
1309
|
-
type KeepStatusValue = "idle" | "empty" | "loading" | "saving" | "syncing" | "error";
|
|
1310
|
-
type KeepStatusLabels = Partial<Record<KeepStatusValue, ReactNode>>;
|
|
1311
|
-
type KeepStatusState<TMeta = Record<string, unknown>> = {
|
|
1312
|
-
status: KeepStatusValue;
|
|
1313
|
-
error: unknown | null;
|
|
1314
|
-
pendingCount: number;
|
|
1315
|
-
items: KeepItem<TMeta>[];
|
|
1316
|
-
};
|
|
1317
|
-
type KeepStatusProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1318
|
-
status?: KeepStatusValue;
|
|
1319
|
-
labels?: KeepStatusLabels;
|
|
1320
|
-
children?: ReactNode | RenderProp<KeepStatusState<TMeta>>;
|
|
1321
|
-
render?: RenderProp<KeepStatusState<TMeta>>;
|
|
1322
|
-
asChild?: boolean;
|
|
1323
|
-
};
|
|
1324
|
-
/** Presents provider loading, mutation, synchronization, empty, and error states accessibly. */
|
|
1325
|
-
declare function KeepStatus<TMeta = Record<string, unknown>>({ status, labels, children, render, asChild, className, ...rootProps }: KeepStatusProps<TMeta>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
1326
|
-
type KeepAnnouncementsProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1327
|
-
messages?: Partial<Record<"save" | "remove" | "note", string>>;
|
|
1328
|
-
};
|
|
1329
|
-
/** Announces successful save, remove, and note operations in a polite live region. */
|
|
1330
|
-
declare function KeepAnnouncements<TMeta = Record<string, unknown>>({ messages, ...props }: KeepAnnouncementsProps): react.JSX.Element;
|
|
1331
|
-
/** Singular alias for applications that mount one announcer explicitly. */
|
|
1332
|
-
declare const KeepAnnouncer: typeof KeepAnnouncements;
|
|
1333
|
-
|
|
1334
|
-
type KeepSyncRecoveryDialogProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children" | "title"> & {
|
|
1335
|
-
open?: boolean;
|
|
1336
|
-
onOpenChange?: (open: boolean) => void;
|
|
1337
|
-
conflicts?: KeepSyncConflict<TMeta>[];
|
|
1338
|
-
onManualMerge?: (conflict: KeepSyncConflict<TMeta>) => KeepItem<TMeta> | Promise<KeepItem<TMeta>>;
|
|
1339
|
-
backup?: ReactNode;
|
|
1340
|
-
showBackupControls?: boolean;
|
|
1341
|
-
title?: ReactNode;
|
|
1342
|
-
children?: ReactNode;
|
|
1343
|
-
};
|
|
1344
|
-
/** Resolves queued sync conflicts and guides users to restore a backup after data corruption. */
|
|
1345
|
-
declare function KeepSyncRecoveryDialog<TMeta = Record<string, unknown>>({ open, onOpenChange, conflicts, onManualMerge, backup, showBackupControls, title, children, className, ...props }: KeepSyncRecoveryDialogProps<TMeta>): react.JSX.Element | null;
|
|
1346
|
-
|
|
1347
|
-
type KeepSyncStatusBannerProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1348
|
-
onRetry?: () => void | Promise<void>;
|
|
1349
|
-
onResolveConflicts?: () => void;
|
|
1350
|
-
children?: ReactNode;
|
|
1351
|
-
};
|
|
1352
|
-
/** Announces synchronization failures and exposes retry or conflict-recovery entry points. */
|
|
1353
|
-
declare function KeepSyncStatusBanner({ onRetry, onResolveConflicts, children, className, ...props }: KeepSyncStatusBannerProps): react.JSX.Element | null;
|
|
1354
|
-
|
|
1355
|
-
type KeepWorkspacePreset = "basic" | "standard" | "management" | "sync";
|
|
1356
|
-
type KeepWorkspaceModule = "syncStatus" | "undo" | "recovery" | "backup" | "stalePrune" | "inbox" | "savedViews";
|
|
1357
|
-
type KeepWorkspaceRegion = "before" | "syncStatus" | "collection" | "actions" | "undo" | "recovery" | "children" | "after";
|
|
1358
|
-
type KeepWorkspaceSurface = "plain" | "compact" | "panel";
|
|
1359
|
-
type KeepWorkspaceSectionGap = "none" | "compact" | "comfortable";
|
|
1360
|
-
type KeepWorkspaceState = {
|
|
1361
|
-
preset: KeepWorkspacePreset;
|
|
1362
|
-
modules: Readonly<Record<KeepWorkspaceModule, boolean>>;
|
|
1363
|
-
recoveryOpen: boolean;
|
|
1364
|
-
setRecoveryOpen: (open: boolean) => void;
|
|
1365
|
-
};
|
|
1366
|
-
type KeepWorkspaceContent = ReactNode | RenderProp<KeepWorkspaceState>;
|
|
1367
|
-
type KeepWorkspaceSlots = {
|
|
1368
|
-
before?: KeepWorkspaceContent;
|
|
1369
|
-
syncStatus?: KeepWorkspaceContent;
|
|
1370
|
-
collection?: KeepWorkspaceContent;
|
|
1371
|
-
actions?: KeepWorkspaceContent;
|
|
1372
|
-
undo?: KeepWorkspaceContent;
|
|
1373
|
-
recovery?: KeepWorkspaceContent;
|
|
1374
|
-
after?: KeepWorkspaceContent;
|
|
1375
|
-
};
|
|
1376
|
-
type KeepWorkspaceProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1377
|
-
preset?: KeepWorkspacePreset;
|
|
1378
|
-
modules?: Partial<Record<KeepWorkspaceModule, boolean>>;
|
|
1379
|
-
/** Opts into region wrappers and their theme-backed surface treatment. */
|
|
1380
|
-
surface?: KeepWorkspaceSurface | Partial<Record<KeepWorkspaceRegion, KeepWorkspaceSurface>>;
|
|
1381
|
-
/** Controls the finite spacing scale between rendered workspace regions. */
|
|
1382
|
-
sectionGap?: KeepWorkspaceSectionGap;
|
|
1383
|
-
collectionProps?: KeepCollectionProps<TMeta>;
|
|
1384
|
-
syncStatusProps?: KeepSyncStatusBannerProps;
|
|
1385
|
-
recoveryProps?: KeepSyncRecoveryDialogProps<TMeta>;
|
|
1386
|
-
backupProps?: KeepBackupProps<TMeta>;
|
|
1387
|
-
undoProps?: KeepUndoProps;
|
|
1388
|
-
stalePruneProps?: KeepPruneStaleButtonProps;
|
|
1389
|
-
slots?: KeepWorkspaceSlots;
|
|
1390
|
-
children?: KeepWorkspaceContent;
|
|
1391
|
-
};
|
|
1392
|
-
/** Composes the standard collection, management, and sync primitives into one customizable workspace. */
|
|
1393
|
-
declare function KeepWorkspace<TMeta = Record<string, unknown>>({ preset, modules, surface, sectionGap, collectionProps, syncStatusProps, recoveryProps, backupProps, undoProps, stalePruneProps, slots, children, className, ...props }: KeepWorkspaceProps<TMeta>): react.JSX.Element;
|
|
1394
|
-
|
|
1395
|
-
declare const keepThemeNames: readonly ["default", "ocean", "forest", "sunset", "lavender", "compact", "minimal", "rounded", "high-contrast", "dark"];
|
|
1396
|
-
type KeepThemeName = (typeof keepThemeNames)[number];
|
|
1397
|
-
type KeepThemeMode = "light" | "dark" | "system";
|
|
1398
|
-
type KeepThemeDensity = "compact" | "comfortable" | "spacious";
|
|
1399
|
-
type KeepThemeRadius = "none" | "small" | "medium" | "large" | "full";
|
|
1400
|
-
type KeepThemeVariables = Record<`--keep-${string}`, string | number>;
|
|
1401
|
-
type KeepThemeProviderProps = {
|
|
1402
|
-
children?: ReactNode;
|
|
1403
|
-
className?: string;
|
|
1404
|
-
id?: string;
|
|
1405
|
-
title?: string;
|
|
1406
|
-
role?: string;
|
|
1407
|
-
tabIndex?: number;
|
|
1408
|
-
"aria-label"?: string;
|
|
1409
|
-
"aria-labelledby"?: string;
|
|
1410
|
-
"aria-describedby"?: string;
|
|
1411
|
-
"data-testid"?: string;
|
|
1412
|
-
[key: `data-${string}`]: string | undefined;
|
|
1413
|
-
theme?: KeepThemeName;
|
|
1414
|
-
mode?: KeepThemeMode;
|
|
1415
|
-
density?: KeepThemeDensity;
|
|
1416
|
-
radius?: KeepThemeRadius;
|
|
1417
|
-
accentColor?: "blue" | "green" | "violet" | "orange" | "rose" | (string & {});
|
|
1418
|
-
highContrast?: boolean;
|
|
1419
|
-
reducedMotion?: boolean;
|
|
1420
|
-
variables?: KeepThemeVariables;
|
|
1421
|
-
style?: CSSProperties & KeepThemeVariables;
|
|
1422
|
-
asChild?: boolean;
|
|
1423
|
-
};
|
|
1424
|
-
/** Scopes KeepKit tokens and opt-in component styles to one subtree. */
|
|
1425
|
-
declare function KeepThemeProvider({ children, theme, mode, density, radius, accentColor, highContrast, reducedMotion, variables, style, className, asChild, ...props }: KeepThemeProviderProps): react.JSX.Element;
|
|
1426
|
-
|
|
1427
|
-
type KeepKitProviderProps<TMeta = Record<string, unknown>> = Omit<KeepProviderProps<TMeta>, "children"> & Omit<KeepUiProviderProps<TMeta>, "children"> & Omit<KeepThemeProviderProps, "children"> & {
|
|
1428
|
-
children?: ReactNode;
|
|
1429
|
-
tour?: Omit<KeepTourProviderProps<TMeta>, "children">;
|
|
1430
|
-
};
|
|
1431
|
-
/** Combines the core store, UI labels, and the global live announcer. */
|
|
1432
|
-
declare function KeepKitProvider<TMeta = Record<string, unknown>>({ labels, labelOptions, locale, labelResolver, onFeedback, theme, mode, density, radius, accentColor, highContrast, reducedMotion, variables, className: themeClassName, style: themeStyle, asChild: themeAsChild, tour, children, ...providerProps }: KeepKitProviderProps<TMeta>): react.JSX.Element;
|
|
1433
|
-
|
|
1434
92
|
type CreateKeepKitOptions<TMeta = Record<string, unknown>> = CreateKeepKitOptions$1<TMeta> & Omit<KeepUiProviderProps<TMeta>, "children"> & {
|
|
1435
93
|
theme?: KeepThemeName;
|
|
1436
94
|
mode?: KeepThemeMode;
|
|
95
|
+
hostColorFormat?: KeepThemeProviderProps["hostColorFormat"];
|
|
1437
96
|
density?: KeepThemeDensity;
|
|
1438
97
|
radius?: KeepThemeRadius;
|
|
1439
98
|
accentColor?: KeepThemeProviderProps["accentColor"];
|
|
@@ -1476,4 +135,4 @@ type KeepKit<TMeta = Record<string, unknown>> = {
|
|
|
1476
135
|
/** Create one typed application API for the core and standard UI layer. */
|
|
1477
136
|
declare function createKeepKit<TMeta = Record<string, unknown>>(options?: CreateKeepKitOptions<TMeta>): KeepKit<TMeta>;
|
|
1478
137
|
|
|
1479
|
-
export { type CreateKeepKitOptions,
|
|
138
|
+
export { type CreateKeepKitOptions, KeepBackupProps, KeepButtonProps, KeepCollectionManagerProps, KeepCollectionProps, KeepFallbackRecoveryProps, KeepFloatingTourProps, KeepImageProps, KeepInboxProps, type KeepKit, KeepKitProviderProps, KeepSavedViewsProps, KeepThemeDensity, KeepThemeMode, KeepThemeName, KeepThemeProviderProps, KeepThemeRadius, KeepThemeVariables, type KeepToastFeedbackOptions, type KeepToastHandler, KeepTourProviderProps, KeepUiFeedbackEvent, KeepUiProviderProps, KeepWorkspaceProps, type UseKeepSavedViewsResult, createKeepKit, isAllSelected, toggleSelectAll, useKeepSavedViews, useKeepToastFeedback, useKeepTour };
|