@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,58 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, Ref, ReactNode, ReactElement } from 'react';
|
|
3
|
+
import { KeepListQuery } from '@keepkit/core/core';
|
|
4
|
+
import { R as RenderProp } from '../highlight-BFeqa6kU.js';
|
|
5
|
+
|
|
6
|
+
type KeepActiveFiltersSummaryProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
7
|
+
ref?: Ref<HTMLElement> | {
|
|
8
|
+
readonly current: unknown;
|
|
9
|
+
};
|
|
10
|
+
query?: KeepListQuery<TMeta>;
|
|
11
|
+
search?: string;
|
|
12
|
+
tags?: readonly string[];
|
|
13
|
+
collection?: string;
|
|
14
|
+
collectionLabel?: string;
|
|
15
|
+
organization?: KeepListQuery<TMeta>["organization"];
|
|
16
|
+
savedBetween?: KeepListQuery<TMeta>["savedBetween"];
|
|
17
|
+
activity?: KeepListQuery<TMeta>["activity"];
|
|
18
|
+
activityLabel?: string;
|
|
19
|
+
archiveScope?: KeepListQuery<TMeta>["archiveScope"];
|
|
20
|
+
archiveScopeLabel?: string;
|
|
21
|
+
totalCount?: number;
|
|
22
|
+
onSearchChange?: (value: string) => void;
|
|
23
|
+
onTagChange?: (tag: string) => void;
|
|
24
|
+
onCollectionChange?: (collectionId?: string) => void;
|
|
25
|
+
onOrganizationChange?: (organization?: KeepListQuery<TMeta>["organization"]) => void;
|
|
26
|
+
onSavedBetweenChange?: (range?: KeepListQuery<TMeta>["savedBetween"]) => void;
|
|
27
|
+
onActivityChange?: (activity?: KeepListQuery<TMeta>["activity"]) => void;
|
|
28
|
+
onArchiveScopeChange?: (scope: NonNullable<KeepListQuery<TMeta>["archiveScope"]>) => void;
|
|
29
|
+
onClear?: () => void;
|
|
30
|
+
onReset?: () => void;
|
|
31
|
+
canReset?: boolean;
|
|
32
|
+
children?: ReactNode | RenderProp<KeepActiveFiltersSummaryState>;
|
|
33
|
+
asChild?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type KeepActiveFiltersSummaryState = {
|
|
36
|
+
search: string;
|
|
37
|
+
tags: string[];
|
|
38
|
+
collection?: string;
|
|
39
|
+
organization?: KeepListQuery["organization"];
|
|
40
|
+
savedBetween?: KeepListQuery["savedBetween"];
|
|
41
|
+
activity?: KeepListQuery["activity"];
|
|
42
|
+
archiveScope?: KeepListQuery["archiveScope"];
|
|
43
|
+
totalCount?: number;
|
|
44
|
+
hasFilters: boolean;
|
|
45
|
+
clear: () => void;
|
|
46
|
+
removeSearch: () => void;
|
|
47
|
+
removeTag: (tag: string) => void;
|
|
48
|
+
removeCollection: () => void;
|
|
49
|
+
removeOrganization: (field: "collection" | "tags" | "note") => void;
|
|
50
|
+
removeSavedBetween: () => void;
|
|
51
|
+
removeActivity: () => void;
|
|
52
|
+
removeArchiveScope: () => void;
|
|
53
|
+
reset: () => void;
|
|
54
|
+
};
|
|
55
|
+
/** Lists active query filters with one-tap recovery actions. */
|
|
56
|
+
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;
|
|
57
|
+
|
|
58
|
+
export { KeepActiveFiltersSummary, type KeepActiveFiltersSummaryProps, type KeepActiveFiltersSummaryState };
|
|
@@ -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,13 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { SelectHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type KeepArchiveScope = "active" | "archived" | "all";
|
|
5
|
+
type KeepArchiveScopeSelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "value" | "defaultValue" | "onChange"> & {
|
|
6
|
+
value?: KeepArchiveScope;
|
|
7
|
+
defaultValue?: KeepArchiveScope;
|
|
8
|
+
onValueChange?: (value: KeepArchiveScope) => void;
|
|
9
|
+
};
|
|
10
|
+
/** A localized active/archived/all selector for a KeepCollection query. */
|
|
11
|
+
declare function KeepArchiveScopeSelect({ value: controlledValue, defaultValue, onValueChange, "aria-label": ariaLabel, ...props }: KeepArchiveScopeSelectProps): react.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { type KeepArchiveScope, KeepArchiveScopeSelect, type KeepArchiveScopeSelectProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { ImportItemsResult } from '@keepkit/core/core';
|
|
4
|
+
|
|
5
|
+
type KeepBackupProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
6
|
+
filename?: string;
|
|
7
|
+
markdownFilename?: string;
|
|
8
|
+
/** Enables a button to export saved items as a portable Markdown list. */
|
|
9
|
+
allowMarkdownExport?: boolean;
|
|
10
|
+
/** Requires confirmation with a backup summary before replacing current storage data. */
|
|
11
|
+
confirmReplace?: boolean;
|
|
12
|
+
onExport?: (data: string) => void;
|
|
13
|
+
onExportMarkdown?: (markdown: string) => void;
|
|
14
|
+
onImported?: (result: ImportItemsResult<TMeta>) => void;
|
|
15
|
+
};
|
|
16
|
+
/** Accessible JSON backup controls backed by the current KeepProvider storage. */
|
|
17
|
+
declare function KeepBackup<TMeta = Record<string, unknown>>({ filename, markdownFilename, allowMarkdownExport, confirmReplace, onExport, onExportMarkdown, onImported, ...props }: KeepBackupProps<TMeta>): react.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { KeepBackup, type KeepBackupProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { KeepListQuery, KeepItem } from '@keepkit/core/core';
|
|
4
|
+
import { KeepCollectionSummary } from '@keepkit/core/react';
|
|
5
|
+
import { R as RenderProp } from '../highlight-BFeqa6kU.js';
|
|
6
|
+
|
|
7
|
+
type KeepBulkActionsState<TMeta = Record<string, unknown>> = {
|
|
8
|
+
items: KeepItem<TMeta>[];
|
|
9
|
+
selectedIds: string[];
|
|
10
|
+
selectedCount: number;
|
|
11
|
+
isAllSelected: boolean;
|
|
12
|
+
allSelected: boolean;
|
|
13
|
+
tagsInput: string;
|
|
14
|
+
setTagsInput: (value: string) => void;
|
|
15
|
+
toggle: (id: string) => void;
|
|
16
|
+
toggleSelectAll: () => void;
|
|
17
|
+
toggleAll: () => void;
|
|
18
|
+
remove: () => Promise<void>;
|
|
19
|
+
requestRemoval: () => Promise<void>;
|
|
20
|
+
confirmRemoval: () => Promise<void>;
|
|
21
|
+
cancelRemoval: () => void;
|
|
22
|
+
removalConfirmation: {
|
|
23
|
+
ids: readonly string[];
|
|
24
|
+
count: number;
|
|
25
|
+
} | null;
|
|
26
|
+
updateTags: () => Promise<void>;
|
|
27
|
+
addTags: () => Promise<void>;
|
|
28
|
+
removeTags: () => Promise<void>;
|
|
29
|
+
collectionId: string;
|
|
30
|
+
setCollectionId: (value: string) => void;
|
|
31
|
+
collections: KeepCollectionSummary[];
|
|
32
|
+
moveToCollection: () => Promise<void>;
|
|
33
|
+
archive: () => Promise<void>;
|
|
34
|
+
unarchive: () => Promise<void>;
|
|
35
|
+
pin: () => Promise<void>;
|
|
36
|
+
unpin: () => Promise<void>;
|
|
37
|
+
isMutating: boolean;
|
|
38
|
+
error: unknown | null;
|
|
39
|
+
selectionScope: KeepSelectionScope;
|
|
40
|
+
setSelectionScope: (scope: KeepSelectionScope) => void;
|
|
41
|
+
};
|
|
42
|
+
type KeepSelectionScope = "page" | "query" | "all";
|
|
43
|
+
type KeepBulkActionsProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
44
|
+
query?: KeepListQuery<TMeta>;
|
|
45
|
+
selectedIds?: string[];
|
|
46
|
+
defaultSelectedIds?: string[];
|
|
47
|
+
onSelectedIdsChange?: (ids: string[]) => void;
|
|
48
|
+
renderItem?: (item: KeepItem<TMeta>, selected: boolean) => ReactNode;
|
|
49
|
+
onCompleted?: (action: "remove" | "tags", ids: string[]) => void;
|
|
50
|
+
selectionScope?: KeepSelectionScope;
|
|
51
|
+
onSelectionScopeChange?: (scope: KeepSelectionScope) => void;
|
|
52
|
+
/** Requires confirmation before removing the full selection, including items on other pages. */
|
|
53
|
+
confirmRemoval?: boolean;
|
|
54
|
+
render?: RenderProp<KeepBulkActionsState<TMeta>>;
|
|
55
|
+
children?: ReactNode | RenderProp<KeepBulkActionsState<TMeta>>;
|
|
56
|
+
};
|
|
57
|
+
/** Selects visible items and performs one storage operation for the whole selection. */
|
|
58
|
+
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;
|
|
59
|
+
|
|
60
|
+
export { KeepBulkActions, type KeepBulkActionsProps, type KeepBulkActionsState, type KeepSelectionScope };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
KeepBulkActions
|
|
4
|
+
} from "../chunk-SYLOO5TX.js";
|
|
5
|
+
import "../chunk-GZEFBTVD.js";
|
|
6
|
+
import "../chunk-NOPTRHRR.js";
|
|
7
|
+
import "../chunk-LKNVVPTN.js";
|
|
8
|
+
import "../chunk-M3UORQXZ.js";
|
|
9
|
+
export {
|
|
10
|
+
KeepBulkActions
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=bulk-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { KeepButtonProps as KeepButtonProps$1 } from '@keepkit/core/react';
|
|
2
|
+
export { KeepButtonState } from '@keepkit/core/react';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { Ref } from 'react';
|
|
5
|
+
import { c as KeepButtonLabels, K as KeepButtonIcons } from '../highlight-BFeqa6kU.js';
|
|
6
|
+
export { a as KeepButtonIcon, b as KeepButtonIconProps } from '../highlight-BFeqa6kU.js';
|
|
7
|
+
|
|
8
|
+
type KeepButtonProps<TMeta = Record<string, unknown>> = KeepButtonProps$1<TMeta> & {
|
|
9
|
+
ref?: Ref<HTMLElement> | {
|
|
10
|
+
readonly current: unknown;
|
|
11
|
+
};
|
|
12
|
+
labels?: KeepButtonLabels;
|
|
13
|
+
icons?: KeepButtonIcons;
|
|
14
|
+
iconOnly?: boolean;
|
|
15
|
+
showLabel?: boolean;
|
|
16
|
+
iconClassName?: string;
|
|
17
|
+
};
|
|
18
|
+
/** A style-free save toggle with localized labels and the core button's ARIA/asChild behavior. */
|
|
19
|
+
declare function KeepButton<TMeta = Record<string, unknown>>({ labels, icons, iconOnly, showLabel, iconClassName, onClick, onToggleError, ...props }: KeepButtonProps<TMeta>): react.JSX.Element;
|
|
20
|
+
|
|
21
|
+
export { KeepButton, KeepButtonIcons, KeepButtonLabels, type KeepButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type KeepCollectionCreateProps = Omit<InputHTMLAttributes<HTMLInputElement>, "onSubmit" | "onChange"> & {
|
|
5
|
+
/** Called with the new collection ID after successful creation. */
|
|
6
|
+
onCreated?: (id: string) => void;
|
|
7
|
+
/** Called when creation fails (e.g. duplicate name). */
|
|
8
|
+
onError?: (error: unknown) => void;
|
|
9
|
+
/** Custom label for the input field. */
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
/** Custom label for the submit button. */
|
|
12
|
+
submitLabel?: ReactNode;
|
|
13
|
+
/** Placeholder text for the input. */
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
};
|
|
16
|
+
/** A compact form for creating new named collections. */
|
|
17
|
+
declare function KeepCollectionCreate(props: KeepCollectionCreateProps): react.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { KeepCollectionCreate, type KeepCollectionCreateProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type KeepCollectionManagerProps = Omit<HTMLAttributes<HTMLElement>, "children" | "title" | "onError"> & {
|
|
5
|
+
/** Enables the built-in collection creation form. */
|
|
6
|
+
allowCreate?: boolean;
|
|
7
|
+
/** Enables inline collection renaming. */
|
|
8
|
+
allowRename?: boolean;
|
|
9
|
+
/** Enables inline collection deletion with confirmation. */
|
|
10
|
+
allowDelete?: boolean;
|
|
11
|
+
/** Shows item counts beside collection names. */
|
|
12
|
+
showCounts?: boolean;
|
|
13
|
+
/** Optional heading content. Defaults to the localized management label. */
|
|
14
|
+
title?: ReactNode;
|
|
15
|
+
/** Optional description rendered below the heading. */
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/** Optional content rendered when there are no collections. */
|
|
18
|
+
empty?: ReactNode;
|
|
19
|
+
/** Replaces derived collection names in the management list. */
|
|
20
|
+
collectionLabels?: Record<string, string>;
|
|
21
|
+
onCreated?: (id: string) => void;
|
|
22
|
+
onRenamed?: (id: string, name: string) => void | Promise<void>;
|
|
23
|
+
onDeleted?: (id: string) => void | Promise<void>;
|
|
24
|
+
onError?: (error: unknown) => void;
|
|
25
|
+
};
|
|
26
|
+
/** A headless collection manager for creating, renaming, and removing collections. */
|
|
27
|
+
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;
|
|
28
|
+
|
|
29
|
+
export { KeepCollectionManager, type KeepCollectionManagerProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
KeepCollectionManager
|
|
4
|
+
} from "../chunk-5ETQGHPV.js";
|
|
5
|
+
import "../chunk-M46GROWD.js";
|
|
6
|
+
import "../chunk-NOPTRHRR.js";
|
|
7
|
+
import "../chunk-LKNVVPTN.js";
|
|
8
|
+
import "../chunk-M3UORQXZ.js";
|
|
9
|
+
export {
|
|
10
|
+
KeepCollectionManager
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=collection-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { a as KeepCollection, b as KeepCollectionFeature, K as KeepCollectionProps, c as KeepCollectionRevealRequest, d as KeepCollectionRevealResult, e as KeepCollectionSlots, f as KeepCollectionToolbarContent, g as KeepCollectionToolbarGroup, h as KeepCollectionToolbarLayout, i as KeepCollectionToolbarVariant, k as KeepLayoutPreset } from '../list-C350Dche.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '@keepkit/core/core';
|
|
4
|
+
import '@keepkit/core/react';
|
|
5
|
+
import '../highlight-BFeqa6kU.js';
|
|
6
|
+
import './item-card.js';
|
|
7
|
+
import '../pin-button-DK3j0atw.js';
|
|
8
|
+
import './button.js';
|
|
9
|
+
import '../quick-editor-BpsvwjQS.js';
|
|
10
|
+
import './last-activity.js';
|
|
11
|
+
import './archive-scope-select.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
KeepCollection
|
|
4
|
+
} from "../chunk-PE57SLZO.js";
|
|
5
|
+
import "../chunk-YCUQ2YTP.js";
|
|
6
|
+
import "../chunk-6JKG6SKJ.js";
|
|
7
|
+
import "../chunk-PZHARNLY.js";
|
|
8
|
+
import "../chunk-RKYQGWKB.js";
|
|
9
|
+
import "../chunk-K2L44I7D.js";
|
|
10
|
+
import "../chunk-QOCX37A5.js";
|
|
11
|
+
import "../chunk-VTPSR3LD.js";
|
|
12
|
+
import "../chunk-7DOB3Z6F.js";
|
|
13
|
+
import "../chunk-BYYWJGSN.js";
|
|
14
|
+
import "../chunk-6753KF4D.js";
|
|
15
|
+
import "../chunk-WB6NBGC2.js";
|
|
16
|
+
import "../chunk-P2WLTFPG.js";
|
|
17
|
+
import "../chunk-SYLOO5TX.js";
|
|
18
|
+
import "../chunk-GZEFBTVD.js";
|
|
19
|
+
import "../chunk-BW4SUJIX.js";
|
|
20
|
+
import "../chunk-M46GROWD.js";
|
|
21
|
+
import "../chunk-CIVXLU4D.js";
|
|
22
|
+
import "../chunk-NOPTRHRR.js";
|
|
23
|
+
import "../chunk-JJ4L5AKR.js";
|
|
24
|
+
import "../chunk-RIWL3IPZ.js";
|
|
25
|
+
import "../chunk-NVFKN4NU.js";
|
|
26
|
+
import "../chunk-Q7IEJ2YF.js";
|
|
27
|
+
import "../chunk-LKNVVPTN.js";
|
|
28
|
+
import "../chunk-M3UORQXZ.js";
|
|
29
|
+
export {
|
|
30
|
+
KeepCollection
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=collection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type KeepEmptyStateVariant = "empty-storage" | "empty-filtered";
|
|
5
|
+
type KeepEmptyStateProps = Omit<HTMLAttributes<HTMLElement>, "children" | "title"> & {
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
action?: ReactNode;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
variant?: KeepEmptyStateVariant;
|
|
11
|
+
onClearFilters?: () => void;
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/** An accessible empty state that distinguishes an empty store from an empty filter result. */
|
|
15
|
+
declare function KeepEmptyState({ title, description, action, children, variant, onClearFilters, asChild, className, ...rootProps }: KeepEmptyStateProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
16
|
+
|
|
17
|
+
export { KeepEmptyState, type KeepEmptyStateProps, type KeepEmptyStateVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { KeepErrorBoundary, KeepErrorBoundaryProps } from '@keepkit/core/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/entries/error-boundary.ts"],"sourcesContent":["\"use client\";\n\nexport { KeepErrorBoundary, type KeepErrorBoundaryProps } from \"@keepkit/core/react\";\n"],"mappings":";;;AAEA,SAAS,yBAAsD;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { KeepStorageRecovery } from '@keepkit/core/storage';
|
|
4
|
+
|
|
5
|
+
type KeepFallbackRecoveryProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
6
|
+
/** Pass a standalone local adapter's capability before initializing remote synchronization. */
|
|
7
|
+
recovery: KeepStorageRecovery<TMeta>;
|
|
8
|
+
};
|
|
9
|
+
/** Compares persisted versions without writing; only an explicit reviewed apply commits a repair. */
|
|
10
|
+
declare function KeepFallbackRecovery<TMeta = Record<string, unknown>>({ recovery, ...props }: KeepFallbackRecoveryProps<TMeta>): react.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { KeepFallbackRecovery, type KeepFallbackRecoveryProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import { KeepItem } from '@keepkit/core/core';
|
|
4
|
+
|
|
5
|
+
type KeepFloatingTourProps<TMeta = Record<string, unknown>> = {
|
|
6
|
+
currentId?: string;
|
|
7
|
+
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
8
|
+
getBackHref?: () => string;
|
|
9
|
+
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
10
|
+
onBack?: () => void | Promise<void>;
|
|
11
|
+
position?: "bottom-center" | "bottom-left" | "bottom-right";
|
|
12
|
+
offset?: number | string;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
keyboardShortcuts?: boolean;
|
|
17
|
+
showShortcutHint?: boolean;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
/** A fixed, portal-rendered tour bar that does not consume host layout space. */
|
|
21
|
+
declare function KeepFloatingTour<TMeta = Record<string, unknown>>({ currentId, getItemHref, getBackHref, onNavigate, onBack, position, offset, zIndex, className, style, keyboardShortcuts, showShortcutHint, }: KeepFloatingTourProps<TMeta>): react.ReactPortal | null;
|
|
22
|
+
|
|
23
|
+
export { KeepFloatingTour, type KeepFloatingTourProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
KeepFloatingTour
|
|
4
|
+
} from "../chunk-XKWDO5VL.js";
|
|
5
|
+
import "../chunk-HFXB4S72.js";
|
|
6
|
+
import "../chunk-ZCDLWGQV.js";
|
|
7
|
+
import "../chunk-URE4EGL2.js";
|
|
8
|
+
import "../chunk-NSYL6RSY.js";
|
|
9
|
+
import "../chunk-LKNVVPTN.js";
|
|
10
|
+
import "../chunk-M3UORQXZ.js";
|
|
11
|
+
export {
|
|
12
|
+
KeepFloatingTour
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=floating-tour.js.map
|