@keepkit/ui 0.28.17 → 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 +196 -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 -1409
- package/dist/index.js +198 -10271
- 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 +87 -55
- package/dist/styles/collection.css +1 -0
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { KeepSyncConflict, KeepItem } from '@keepkit/core/core';
|
|
4
|
+
|
|
5
|
+
type KeepSyncRecoveryDialogProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children" | "title"> & {
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
conflicts?: KeepSyncConflict<TMeta>[];
|
|
9
|
+
onManualMerge?: (conflict: KeepSyncConflict<TMeta>) => KeepItem<TMeta> | Promise<KeepItem<TMeta>>;
|
|
10
|
+
backup?: ReactNode;
|
|
11
|
+
showBackupControls?: boolean;
|
|
12
|
+
title?: ReactNode;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
/** Resolves queued sync conflicts and guides users to restore a backup after data corruption. */
|
|
16
|
+
declare function KeepSyncRecoveryDialog<TMeta = Record<string, unknown>>({ open, onOpenChange, conflicts, onManualMerge, backup, showBackupControls, title, children, className, ...props }: KeepSyncRecoveryDialogProps<TMeta>): react.JSX.Element | null;
|
|
17
|
+
|
|
18
|
+
export { KeepSyncRecoveryDialog, type KeepSyncRecoveryDialogProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
KeepSyncRecoveryDialog
|
|
4
|
+
} from "../chunk-5SFHCUDA.js";
|
|
5
|
+
import "../chunk-BJCZ7MFN.js";
|
|
6
|
+
import "../chunk-LKNVVPTN.js";
|
|
7
|
+
import "../chunk-M3UORQXZ.js";
|
|
8
|
+
export {
|
|
9
|
+
KeepSyncRecoveryDialog
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=sync-recovery-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type KeepSyncStatusBannerProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
5
|
+
onRetry?: () => void | Promise<void>;
|
|
6
|
+
onResolveConflicts?: () => void;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/** Announces synchronization failures and exposes retry or conflict-recovery entry points. */
|
|
10
|
+
declare function KeepSyncStatusBanner({ onRetry, onResolveConflicts, children, className, ...props }: KeepSyncStatusBannerProps): react.JSX.Element | null;
|
|
11
|
+
|
|
12
|
+
export { KeepSyncStatusBanner, type KeepSyncStatusBannerProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { FormHTMLAttributes } from 'react';
|
|
3
|
+
import { KeepItem } from '@keepkit/core/core';
|
|
4
|
+
import { R as RenderProp } from '../highlight-BFeqa6kU.js';
|
|
5
|
+
|
|
6
|
+
type KeepTagEditorState = {
|
|
7
|
+
tags: string[];
|
|
8
|
+
setTags: (tags: string[]) => void;
|
|
9
|
+
save: () => Promise<void>;
|
|
10
|
+
isSaving: boolean;
|
|
11
|
+
};
|
|
12
|
+
type KeepTagEditorProps<TMeta = Record<string, unknown>> = Omit<FormHTMLAttributes<HTMLFormElement>, "children" | "onSubmit"> & {
|
|
13
|
+
item: KeepItem<TMeta>;
|
|
14
|
+
availableTags?: string[];
|
|
15
|
+
onSaved?: (tags?: string[]) => void;
|
|
16
|
+
onSaveError?: (error: unknown) => void;
|
|
17
|
+
render?: RenderProp<KeepTagEditorState>;
|
|
18
|
+
};
|
|
19
|
+
/** Edits one item's normalized tag set; Enter adds and Backspace removes the last tag. */
|
|
20
|
+
declare function KeepTagEditor<TMeta = Record<string, unknown>>({ item, availableTags, onSaved, onSaveError, render, ...props }: KeepTagEditorProps<TMeta>): react.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { KeepTagEditor, type KeepTagEditorProps, type KeepTagEditorState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { KeepListQuery } from '@keepkit/core/core';
|
|
4
|
+
import { R as RenderProp } from '../highlight-BFeqa6kU.js';
|
|
5
|
+
|
|
6
|
+
type KeepTagFilterState = {
|
|
7
|
+
tags: string[];
|
|
8
|
+
tagCounts: Record<string, number>;
|
|
9
|
+
value?: string;
|
|
10
|
+
values: string[];
|
|
11
|
+
select: (tag?: string) => void;
|
|
12
|
+
toggle: (tag: string) => void;
|
|
13
|
+
};
|
|
14
|
+
type KeepTagFilterProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children" | "onChange"> & {
|
|
15
|
+
query?: KeepListQuery<TMeta>;
|
|
16
|
+
value?: string;
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
values?: readonly string[];
|
|
19
|
+
defaultValues?: readonly string[];
|
|
20
|
+
onChange?: (tag?: string) => void;
|
|
21
|
+
onValueChange?: (tag?: string) => void;
|
|
22
|
+
onValuesChange?: (tags: string[]) => void;
|
|
23
|
+
allLabel?: ReactNode;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
renderTag?: (tag: string, count: number, selected: boolean) => ReactNode;
|
|
26
|
+
render?: RenderProp<KeepTagFilterState>;
|
|
27
|
+
children?: ReactNode | RenderProp<KeepTagFilterState>;
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** An ARIA button group for tag filtering; consumers can connect value to a collection query. */
|
|
31
|
+
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>>;
|
|
32
|
+
|
|
33
|
+
export { KeepTagFilter, type KeepTagFilterProps, type KeepTagFilterState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { K as KeepUiFeedbackEvent, b as KeepUiIcons, c as KeepUiLabelContext, d as KeepUiLabelKey, e as KeepUiLabelOptions, f as KeepUiLabelOptionsMap, g as KeepUiLabels, h as KeepUiLocaleLabels, i as KeepUiProvider, a as KeepUiProviderProps } from '../ui-context-BE201rLI.js';
|
|
2
|
+
export { K as KeepUiLocale } from '../ui-provider-Bqziw03k.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@keepkit/core/core';
|
|
5
|
+
import '../highlight-BFeqa6kU.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type KeepUndoProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/** Presents the short-lived undo action created by removeWithUndo/removeBatchWithUndo. */
|
|
9
|
+
declare function KeepUndo({ children, label, ...props }: KeepUndoProps): react.JSX.Element | null;
|
|
10
|
+
|
|
11
|
+
export { KeepUndo, type KeepUndoProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { R as RenderProp } from '../highlight-BFeqa6kU.js';
|
|
4
|
+
import { KeepBackupProps } from './backup.js';
|
|
5
|
+
import { KeepUndoProps } from './undo.js';
|
|
6
|
+
import { K as KeepCollectionProps } from '../list-C350Dche.js';
|
|
7
|
+
import { a as KeepPruneStaleButtonProps } from '../stale-notice-DczSweyn.js';
|
|
8
|
+
import { KeepSyncRecoveryDialogProps } from './sync-recovery-dialog.js';
|
|
9
|
+
import { KeepSyncStatusBannerProps } from './sync-status-banner.js';
|
|
10
|
+
import '@keepkit/core/core';
|
|
11
|
+
import '@keepkit/core/react';
|
|
12
|
+
import './item-card.js';
|
|
13
|
+
import '../pin-button-DK3j0atw.js';
|
|
14
|
+
import './button.js';
|
|
15
|
+
import '../quick-editor-BpsvwjQS.js';
|
|
16
|
+
import './last-activity.js';
|
|
17
|
+
import './archive-scope-select.js';
|
|
18
|
+
|
|
19
|
+
type KeepWorkspacePreset = "basic" | "standard" | "management" | "sync";
|
|
20
|
+
type KeepWorkspaceModule = "syncStatus" | "undo" | "recovery" | "backup" | "stalePrune" | "inbox" | "savedViews";
|
|
21
|
+
type KeepWorkspaceRegion = "before" | "syncStatus" | "collection" | "actions" | "undo" | "recovery" | "children" | "after";
|
|
22
|
+
type KeepWorkspaceSurface = "plain" | "compact" | "panel";
|
|
23
|
+
type KeepWorkspaceSectionGap = "none" | "compact" | "comfortable";
|
|
24
|
+
type KeepWorkspaceState = {
|
|
25
|
+
preset: KeepWorkspacePreset;
|
|
26
|
+
modules: Readonly<Record<KeepWorkspaceModule, boolean>>;
|
|
27
|
+
recoveryOpen: boolean;
|
|
28
|
+
setRecoveryOpen: (open: boolean) => void;
|
|
29
|
+
};
|
|
30
|
+
type KeepWorkspaceContent = ReactNode | RenderProp<KeepWorkspaceState>;
|
|
31
|
+
type KeepWorkspaceSlots = {
|
|
32
|
+
before?: KeepWorkspaceContent;
|
|
33
|
+
syncStatus?: KeepWorkspaceContent;
|
|
34
|
+
collection?: KeepWorkspaceContent;
|
|
35
|
+
actions?: KeepWorkspaceContent;
|
|
36
|
+
undo?: KeepWorkspaceContent;
|
|
37
|
+
recovery?: KeepWorkspaceContent;
|
|
38
|
+
after?: KeepWorkspaceContent;
|
|
39
|
+
};
|
|
40
|
+
type KeepWorkspaceProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
41
|
+
preset?: KeepWorkspacePreset;
|
|
42
|
+
modules?: Partial<Record<KeepWorkspaceModule, boolean>>;
|
|
43
|
+
/** Opts into region wrappers and their theme-backed surface treatment. */
|
|
44
|
+
surface?: KeepWorkspaceSurface | Partial<Record<KeepWorkspaceRegion, KeepWorkspaceSurface>>;
|
|
45
|
+
/** Controls the finite spacing scale between rendered workspace regions. */
|
|
46
|
+
sectionGap?: KeepWorkspaceSectionGap;
|
|
47
|
+
collectionProps?: KeepCollectionProps<TMeta>;
|
|
48
|
+
syncStatusProps?: KeepSyncStatusBannerProps;
|
|
49
|
+
recoveryProps?: KeepSyncRecoveryDialogProps<TMeta>;
|
|
50
|
+
backupProps?: KeepBackupProps<TMeta>;
|
|
51
|
+
undoProps?: KeepUndoProps;
|
|
52
|
+
stalePruneProps?: KeepPruneStaleButtonProps;
|
|
53
|
+
slots?: KeepWorkspaceSlots;
|
|
54
|
+
children?: KeepWorkspaceContent;
|
|
55
|
+
};
|
|
56
|
+
/** Composes the standard collection, management, and sync primitives into one customizable workspace. */
|
|
57
|
+
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;
|
|
58
|
+
|
|
59
|
+
export { KeepWorkspace, type KeepWorkspaceModule, type KeepWorkspacePreset, type KeepWorkspaceProps, type KeepWorkspaceRegion, type KeepWorkspaceSectionGap, type KeepWorkspaceSlots, type KeepWorkspaceState, type KeepWorkspaceSurface };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
KeepWorkspace
|
|
4
|
+
} from "../chunk-4O5N26YS.js";
|
|
5
|
+
import "../chunk-VM4ROXYF.js";
|
|
6
|
+
import "../chunk-5SFHCUDA.js";
|
|
7
|
+
import "../chunk-G2JWJKST.js";
|
|
8
|
+
import "../chunk-BJCZ7MFN.js";
|
|
9
|
+
import "../chunk-PE57SLZO.js";
|
|
10
|
+
import "../chunk-YCUQ2YTP.js";
|
|
11
|
+
import "../chunk-6JKG6SKJ.js";
|
|
12
|
+
import "../chunk-PZHARNLY.js";
|
|
13
|
+
import "../chunk-RKYQGWKB.js";
|
|
14
|
+
import "../chunk-K2L44I7D.js";
|
|
15
|
+
import "../chunk-QOCX37A5.js";
|
|
16
|
+
import "../chunk-VTPSR3LD.js";
|
|
17
|
+
import "../chunk-7DOB3Z6F.js";
|
|
18
|
+
import "../chunk-BYYWJGSN.js";
|
|
19
|
+
import "../chunk-6753KF4D.js";
|
|
20
|
+
import "../chunk-WB6NBGC2.js";
|
|
21
|
+
import "../chunk-P2WLTFPG.js";
|
|
22
|
+
import "../chunk-SYLOO5TX.js";
|
|
23
|
+
import "../chunk-GZEFBTVD.js";
|
|
24
|
+
import "../chunk-BW4SUJIX.js";
|
|
25
|
+
import "../chunk-M46GROWD.js";
|
|
26
|
+
import "../chunk-CIVXLU4D.js";
|
|
27
|
+
import "../chunk-NOPTRHRR.js";
|
|
28
|
+
import "../chunk-JJ4L5AKR.js";
|
|
29
|
+
import "../chunk-RIWL3IPZ.js";
|
|
30
|
+
import "../chunk-NVFKN4NU.js";
|
|
31
|
+
import "../chunk-Q7IEJ2YF.js";
|
|
32
|
+
import "../chunk-LKNVVPTN.js";
|
|
33
|
+
import "../chunk-M3UORQXZ.js";
|
|
34
|
+
export {
|
|
35
|
+
KeepWorkspace
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode, ComponentType, Ref, RefCallback, ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
type RenderProp<TState> = (state: TState) => ReactNode;
|
|
4
|
+
type KeepHighlightProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
query?: string;
|
|
7
|
+
};
|
|
8
|
+
/** Wraps case-insensitive, literal query matches in a style-free mark element. */
|
|
9
|
+
declare function KeepHighlight({ children, query }: KeepHighlightProps): ReactNode;
|
|
10
|
+
declare function highlightText(text: string, query: string): ReactNode;
|
|
11
|
+
type KeepButtonLabels = {
|
|
12
|
+
saved?: ReactNode;
|
|
13
|
+
unsaved?: ReactNode;
|
|
14
|
+
loading?: ReactNode;
|
|
15
|
+
error?: ReactNode;
|
|
16
|
+
savedAriaLabel?: string;
|
|
17
|
+
unsavedAriaLabel?: string;
|
|
18
|
+
};
|
|
19
|
+
type KeepButtonIconProps = {
|
|
20
|
+
"aria-hidden"?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
type KeepButtonIcon = ReactNode | ComponentType<KeepButtonIconProps>;
|
|
24
|
+
type KeepButtonIcons = {
|
|
25
|
+
save?: KeepButtonIcon;
|
|
26
|
+
saved?: KeepButtonIcon;
|
|
27
|
+
remove?: KeepButtonIcon;
|
|
28
|
+
loading?: KeepButtonIcon;
|
|
29
|
+
error?: KeepButtonIcon;
|
|
30
|
+
};
|
|
31
|
+
type MergeableProps = Record<string, unknown>;
|
|
32
|
+
/** Combines callback and object refs while preserving every ref target. */
|
|
33
|
+
declare function composeRefs<T>(...refs: Array<Ref<T> | null | undefined>): RefCallback<T>;
|
|
34
|
+
/** Chains child and component event handlers while preserving both handlers' event order. */
|
|
35
|
+
declare function chainedFunction<T extends (...args: never[]) => unknown>(childHandler: T | undefined, parentHandler: T | undefined): T | undefined;
|
|
36
|
+
/** Merges slot props without dropping child classes, styles, ARIA attributes, or events. */
|
|
37
|
+
declare function mergeProps<T extends MergeableProps>(childProps: T, parentProps: Partial<T> & MergeableProps): T;
|
|
38
|
+
declare function createSlot(child: ReactElement<MergeableProps>, props: MergeableProps, body?: ReactNode): ReactElement<MergeableProps>;
|
|
39
|
+
|
|
40
|
+
export { type KeepButtonIcons as K, type RenderProp as R, type KeepButtonIcon as a, type KeepButtonIconProps as b, type KeepButtonLabels as c, KeepHighlight as d, type KeepHighlightProps as e, chainedFunction as f, composeRefs as g, createSlot as h, highlightText as i, mergeProps as m };
|