@keepkit/ui 0.27.1 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/index.d.ts +89 -3
- package/dist/index.js +993 -227
- package/dist/index.js.map +1 -1
- package/dist/styles/collection.css +179 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ function SavedArticles() {
|
|
|
58
58
|
|
|
59
59
|
`keep.Collection`は検索、ソート、ページング、loading / empty / error、ARIA live通知を標準で提供します。検索は既定で300msデバウンスされます。`features={{ tagFilter: true, bulkActions: true }}`でタグフィルターと一括操作も有効にできます。個別の`KeepList`、`KeepSearchInput`、`KeepSortSelect`、`KeepPagination`、`KeepItemCheckbox`、`KeepTagEditor`などは高度なレイアウト用に利用できます。`KeepBulkActions`はrender propsで操作UIを差し替えられ、`isAllSelected` / `toggleSelectAll`で表示中アイテムを一括操作できます。`KeepNoteEditor`は既定300msのデバウンス保存に対応し、`debounceMs={0}`でフォーム送信のみへ戻せます。通知領域だけを明示的に置く場合は`KeepAnnouncer`(`KeepAnnouncements`のalias)を使えます。
|
|
60
60
|
`KeepWorkspace`はこれらのプリミティブを一つにまとめ、`basic`、`standard`、`management`、`sync`のプリセットを提供します。`createKeepKit()`を利用する場合は同じ実装を`keep.Workspace`から型付きで利用できます。`modules`、`slots`、子コンポーネントごとのpropsで部分的に差し替えられます。
|
|
61
|
+
`KeepCollectionManager`は作成・名前変更・削除・件数表示をまとめたheadless UIです。`allowCreate`、`allowRename`、`allowDelete`、`showCounts`で機能を個別に切り替えられ、`collectionLabels`、`title`、`description`、`empty`で表示を差し替えられます。
|
|
61
62
|
画面領域を明示する場合は`surface="panel"`または領域別の`surface`と、`sectionGap="compact" | "comfortable"`を指定できます。空のslotは枠を生成せず、未指定時と`surface="plain"`では従来のDOM順序を維持します。
|
|
62
63
|
|
|
63
64
|
```tsx
|
|
@@ -106,7 +107,7 @@ const onFeedback = useKeepToastFeedback(toast);
|
|
|
106
107
|
<KeepKitProvider storage={storage} onFeedback={onFeedback}>{children}</KeepKitProvider>;
|
|
107
108
|
```
|
|
108
109
|
|
|
109
|
-
v0.
|
|
110
|
+
v0.28.0では、レイアウト領域を消費しないPortalベースのフローティング巡回UIを追加しました。Tailwind CSS v4との統合、ホストテーマ変数との衝突回避、CSS cascade layer対応も引き続き利用できます。
|
|
110
111
|
Phase 4の状態UIとして`KeepItemStatusBadge`、`KeepStaleNotice`、`KeepPruneStaleButton`、`KeepSyncStatusBanner`、`KeepSyncRecoveryDialog`を利用できます。`import "@keepkit/ui/theme.css"`でテーマCSSを有効にできます。
|
|
111
112
|
|
|
112
113
|
### Tailwind/shadcnテーマ
|
|
@@ -198,6 +199,7 @@ function SavedArticles() {
|
|
|
198
199
|
|
|
199
200
|
`keep.Collection` includes search, sorting, pagination, loading/empty/error states, and polite live announcements. Search is debounced by 300ms by default. Enable `features={{ tagFilter: true, bulkActions: true }}` for tag filtering and bulk operations. Use the individual `KeepList`, `KeepSearchInput`, `KeepSortSelect`, `KeepPagination`, `KeepItemCheckbox`, and `KeepTagEditor` primitives when you need a custom layout. `KeepBulkActions` supports render props and exposes `isAllSelected` / `toggleSelectAll` for visible-item selection. `KeepNoteEditor` auto-saves dirty notes after 300ms by default; set `debounceMs={0}` to use form submission only. Mount `KeepAnnouncer` (`KeepAnnouncements` alias) when you need the live region explicitly.
|
|
200
201
|
`KeepWorkspace` composes these primitives into `basic`, `standard`, `management`, and `sync` presets. `createKeepKit()` exposes the same implementation as a typed `keep.Workspace`. Override individual areas through `modules`, `slots`, and child-component props.
|
|
202
|
+
`KeepCollectionManager` is a headless collection-management UI for creating, renaming, deleting, and counting collections. Toggle each capability with `allowCreate`, `allowRename`, `allowDelete`, and `showCounts`; customize `collectionLabels`, `title`, `description`, and `empty`.
|
|
201
203
|
Use `surface="panel"` or a per-region `surface` map together with `sectionGap="compact" | "comfortable"` to make workspace boundaries explicit. Empty slots do not create frames, and omitted `surface` or `surface="plain"` preserves the existing DOM order.
|
|
202
204
|
|
|
203
205
|
```tsx
|
|
@@ -214,7 +216,9 @@ Set `toolbarLayout="grouped"` and `toolbarVariant="panel"` to render host `slots
|
|
|
214
216
|
The opt-in theme adds neutral borders, surfaces, shadows, focus treatment, and decorative action icons without changing accessible names. Regular remove, bulk-delete, and stale-prune actions use a subtle red outline and text with a light hover surface; solid red is reserved for error states that need confirmation. Target individual controls with `data-keep-action`, or override `--keep-icon-size`, `--keep-control-gap`, `--keep-shadow`, `--keep-success`, and `--keep-warning`. Consumers that omit the CSS keep the headless markup, and `KeepButton icons` continues to take precedence over the built-in icon.
|
|
215
217
|
`KeepItemCard` accepts `href`, `onOpen`, `linkTarget`, and `linkComponent` for detail-page navigation. Links are disabled for unavailable `status` values such as private or expired. `KeepBackup` provides JSON export, merge/replace import, result counts, and quota-error messaging.
|
|
216
218
|
`KeepTourBar` (aliased as `KeepNavigator`) provides progress, previous/next, and return-to-list actions through URLs or callbacks. Inject host routing with `getItemHref`, `getBackHref`, and `onNavigate`. Adjacent item titles are previewed below the navigation labels; customize them with `getItemTitle`. Set `keyboardShortcuts` for J/K or ]/[ tour navigation, or use `useKeepTourShortcuts` for custom bindings. `KeepReorderableList` supports drag and keyboard reordering and shows the active insertion position; `KeepCollection reorderable` includes that path and standard undo without a slot replacement.
|
|
219
|
+
`KeepTourProvider` / `useKeepTour` manage a session-scoped tour, and `KeepFloatingTour` renders controls in a body portal so the host layout needs no reserved space. Start with `start({ itemIds })`, configure `position`, `offset`, `zIndex`, and routing callbacks. Same-tab state resumes from `sessionStorage`; set `tour={{ sessionKey }}` on `KeepKitProvider` to namespace it.
|
|
217
220
|
`KeepShortcutHint` renders semantic `<kbd>` badges. `KeepTourBar showShortcutHint` displays the previous/next keys, while `KeepNoteEditor showShortcutHint` displays `Ctrl+Enter` in the save button. `mergeProps` / `createSlot` compose className, style, ARIA, events, and child/parent refs for `asChild` slots; `composeRefs` combines callback and object refs. Filter chips restore focus to an adjacent chip after removal and support ArrowLeft / ArrowRight navigation.
|
|
221
|
+
`KeepFloatingTour` is a fixed portal-rendered tour control that does not consume page layout space. Use `KeepTourProvider` / `useKeepTour` to start an ordered session with `start({ itemIds })` and configure host routing with `getItemHref`, `getBackHref`, or `onNavigate`.
|
|
218
222
|
Cards rendered by `KeepList` and `KeepCollection` highlight case-insensitive search matches with `<mark class="keep-highlight" data-highlight="true">`. Use `highlightQuery` on a standalone `KeepItemCard` or `KeepHighlight` for arbitrary text. `KeepItemCard.Media` exposes its loading state through `data-media-status` and replaces failed images with `fallback` or the built-in SVG placeholder.
|
|
219
223
|
The theme defines WCAG-oriented `--keep-highlight-bg` / `--keep-highlight-fg` pairs for light and dark modes, clamps titles to two lines and memo previews to three, and reserves a stable media aspect ratio. `KeepItemStatusBadge` combines visible status text with check, clock, ban, or lock SVG icons; import `@keepkit/ui/styles/status.css` when using the status styles independently.
|
|
220
224
|
External detail URLs receive `target="_blank"` and `rel="noreferrer"` defaults. Unavailable cards expose `aria-disabled="true"` and normalized `data-item-status` values, and the sync recovery dialog compares local and remote updated dates and notes side by side.
|
|
@@ -243,7 +247,7 @@ const onFeedback = useKeepToastFeedback(toast);
|
|
|
243
247
|
<KeepKitProvider storage={storage} onFeedback={onFeedback}>{children}</KeepKitProvider>;
|
|
244
248
|
```
|
|
245
249
|
|
|
246
|
-
v0.
|
|
250
|
+
v0.28.0 adds a portal-rendered floating tour UI that does not consume host layout space. Tailwind CSS v4 integration, host-theme isolation, and cascade-layer support remain available.
|
|
247
251
|
Phase 4 adds `KeepItemStatusBadge`, `KeepStaleNotice`, `KeepPruneStaleButton`, `KeepSyncStatusBanner`, and `KeepSyncRecoveryDialog` for unavailable items, sync failures, conflict resolution, and backup recovery. Import `@keepkit/ui/theme.css` or `@keepkit/ui/tailwind.css` for the opt-in theme layer.
|
|
248
252
|
|
|
249
253
|
### Tailwind and shadcn theme
|
package/dist/index.d.ts
CHANGED
|
@@ -728,6 +728,31 @@ type KeepCollectionCreateProps = Omit<InputHTMLAttributes<HTMLInputElement>, "on
|
|
|
728
728
|
/** A compact form for creating new named collections. */
|
|
729
729
|
declare function KeepCollectionCreate({ onCreated, onError, label, submitLabel, placeholder, id: externalId, ...inputProps }: KeepCollectionCreateProps): react.JSX.Element;
|
|
730
730
|
|
|
731
|
+
type KeepCollectionManagerProps = Omit<HTMLAttributes<HTMLElement>, "children" | "title" | "onError"> & {
|
|
732
|
+
/** Enables the built-in collection creation form. */
|
|
733
|
+
allowCreate?: boolean;
|
|
734
|
+
/** Enables inline collection renaming. */
|
|
735
|
+
allowRename?: boolean;
|
|
736
|
+
/** Enables inline collection deletion with confirmation. */
|
|
737
|
+
allowDelete?: boolean;
|
|
738
|
+
/** Shows item counts beside collection names. */
|
|
739
|
+
showCounts?: boolean;
|
|
740
|
+
/** Optional heading content. Defaults to the localized management label. */
|
|
741
|
+
title?: ReactNode;
|
|
742
|
+
/** Optional description rendered below the heading. */
|
|
743
|
+
description?: ReactNode;
|
|
744
|
+
/** Optional content rendered when there are no collections. */
|
|
745
|
+
empty?: ReactNode;
|
|
746
|
+
/** Replaces derived collection names in the management list. */
|
|
747
|
+
collectionLabels?: Record<string, string>;
|
|
748
|
+
onCreated?: (id: string) => void;
|
|
749
|
+
onRenamed?: (id: string, name: string) => void | Promise<void>;
|
|
750
|
+
onDeleted?: (id: string) => void | Promise<void>;
|
|
751
|
+
onError?: (error: unknown) => void;
|
|
752
|
+
};
|
|
753
|
+
/** A headless collection manager for creating, renaming, and removing collections. */
|
|
754
|
+
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;
|
|
755
|
+
|
|
731
756
|
type KeepLayoutProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
732
757
|
layout?: KeepLayoutPreset;
|
|
733
758
|
children?: ReactNode;
|
|
@@ -807,7 +832,7 @@ type KeepTagEditorProps<TMeta = Record<string, unknown>> = Omit<FormHTMLAttribut
|
|
|
807
832
|
/** Edits one item's normalized tag set; Enter adds and Backspace removes the last tag. */
|
|
808
833
|
declare function KeepTagEditor<TMeta = Record<string, unknown>>({ item, availableTags, onSaved, onSaveError, render, ...props }: KeepTagEditorProps<TMeta>): react.JSX.Element;
|
|
809
834
|
|
|
810
|
-
type KeepUiLabelKey = "save" | "saved" | "remove" | "loading" | "saving" | "syncing" | "error" | "archive" | "unarchive" | "archived" | "pin" | "unpin" | "pinned" | "collection" | "allCollections" | "filterCollections" | "uncategorized" | "saveWithNote" | "editSavedItem" | "unsavedChanges" | "allTags" | "tags" | "filterTags" | "activeFilters" | "clearFilters" | "clearAllFilters" | "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" | "savedMessage" | "removedMessage" | "restoredMessage" | "syncFailedMessage" | "stalePrunedMessage" | "undo" | "undoAvailable" | "selectionScope" | "currentPage" | "searchResults" | "allItems" | "localVersion" | "remoteVersion" | "updatedAt" | "statusAvailable" | "noteSavedMessage" | "exportData" | "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" | "undoReorder" | "toolbarStart" | "toolbarQuery" | "toolbarFilters" | "toolbarEnd" | "createCollection" | "createCollectionSubmit" | "collectionName";
|
|
835
|
+
type KeepUiLabelKey = "save" | "saved" | "remove" | "loading" | "saving" | "syncing" | "error" | "archive" | "unarchive" | "archived" | "pin" | "unpin" | "pinned" | "collection" | "allCollections" | "filterCollections" | "uncategorized" | "saveWithNote" | "editSavedItem" | "unsavedChanges" | "allTags" | "tags" | "filterTags" | "activeFilters" | "clearFilters" | "clearAllFilters" | "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" | "savedMessage" | "removedMessage" | "restoredMessage" | "syncFailedMessage" | "stalePrunedMessage" | "undo" | "undoAvailable" | "selectionScope" | "currentPage" | "searchResults" | "allItems" | "localVersion" | "remoteVersion" | "updatedAt" | "statusAvailable" | "noteSavedMessage" | "exportData" | "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" | "undoReorder" | "toolbarStart" | "toolbarQuery" | "toolbarFilters" | "toolbarEnd" | "createCollection" | "createCollectionSubmit" | "collectionName" | "manageCollections" | "renameCollection" | "renameCollectionSubmit" | "deleteCollection" | "deleteCollectionConfirm" | "deleteCollectionSubmit" | "cancel" | "collectionItem" | "collectionItems";
|
|
811
836
|
type KeepUiLabelOptions = {
|
|
812
837
|
/** Replaces the localized label text. Omit to keep the locale default. */
|
|
813
838
|
text?: string;
|
|
@@ -886,6 +911,24 @@ type KeepDisplayStatus = "available" | "expired" | "removed" | "restricted";
|
|
|
886
911
|
/** Displays the normalized availability state of a saved item. */
|
|
887
912
|
declare function KeepItemStatusBadge({ status, label, className, ...props }: KeepItemStatusBadgeProps): react.JSX.Element;
|
|
888
913
|
|
|
914
|
+
type KeepFloatingTourProps<TMeta = Record<string, unknown>> = {
|
|
915
|
+
currentId?: string;
|
|
916
|
+
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
917
|
+
getBackHref?: () => string;
|
|
918
|
+
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
919
|
+
onBack?: () => void | Promise<void>;
|
|
920
|
+
position?: "bottom-center" | "bottom-left" | "bottom-right";
|
|
921
|
+
offset?: number | string;
|
|
922
|
+
zIndex?: number;
|
|
923
|
+
className?: string;
|
|
924
|
+
style?: CSSProperties;
|
|
925
|
+
keyboardShortcuts?: boolean;
|
|
926
|
+
showShortcutHint?: boolean;
|
|
927
|
+
children?: ReactNode;
|
|
928
|
+
};
|
|
929
|
+
/** A fixed, portal-rendered tour bar that does not consume host layout space. */
|
|
930
|
+
declare function KeepFloatingTour<TMeta = Record<string, unknown>>({ currentId, getItemHref, getBackHref, onNavigate, onBack, position, offset, zIndex, className, style, keyboardShortcuts, showShortcutHint, }: KeepFloatingTourProps<TMeta>): react.ReactPortal | null;
|
|
931
|
+
|
|
889
932
|
type KeepShortcutHintProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
890
933
|
shortcut: string | readonly string[];
|
|
891
934
|
separator?: ReactNode;
|
|
@@ -938,6 +981,41 @@ type KeepTourBarProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTM
|
|
|
938
981
|
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>>;
|
|
939
982
|
declare const KeepNavigator: typeof KeepTourBar;
|
|
940
983
|
|
|
984
|
+
type KeepTourPosition = "bottom-center" | "bottom-left" | "bottom-right";
|
|
985
|
+
type KeepTourPersistenceStatus = "persistent" | "memory";
|
|
986
|
+
type KeepTourStartOptions = {
|
|
987
|
+
itemIds: readonly string[];
|
|
988
|
+
currentId?: string;
|
|
989
|
+
};
|
|
990
|
+
type KeepTourContextValue<TMeta = Record<string, unknown>> = {
|
|
991
|
+
active: boolean;
|
|
992
|
+
itemIds: readonly string[];
|
|
993
|
+
currentId: string | null;
|
|
994
|
+
collapsed: boolean;
|
|
995
|
+
persistenceStatus: KeepTourPersistenceStatus;
|
|
996
|
+
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
997
|
+
getBackHref?: () => string;
|
|
998
|
+
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
999
|
+
start: (options: KeepTourStartOptions) => boolean;
|
|
1000
|
+
end: () => void;
|
|
1001
|
+
collapse: () => void;
|
|
1002
|
+
expand: () => void;
|
|
1003
|
+
goNext: () => KeepItem<TMeta> | null;
|
|
1004
|
+
goPrev: () => KeepItem<TMeta> | null;
|
|
1005
|
+
setCurrentId: (id: string) => void;
|
|
1006
|
+
};
|
|
1007
|
+
type KeepTourProviderProps<TMeta = Record<string, unknown>> = {
|
|
1008
|
+
children?: ReactNode;
|
|
1009
|
+
sessionKey?: string;
|
|
1010
|
+
getItemHref?: (item: KeepItem<TMeta>) => string;
|
|
1011
|
+
getBackHref?: () => string;
|
|
1012
|
+
onNavigate?: (direction: "prev" | "next", item: KeepItem<TMeta>) => void;
|
|
1013
|
+
};
|
|
1014
|
+
declare function KeepTourProvider<TMeta = Record<string, unknown>>({ children, sessionKey, getItemHref, getBackHref, onNavigate, }: KeepTourProviderProps<TMeta>): react.JSX.Element;
|
|
1015
|
+
declare function useKeepTour<TMeta = Record<string, unknown>>(options?: {
|
|
1016
|
+
currentId?: string;
|
|
1017
|
+
}): KeepTourContextValue<TMeta>;
|
|
1018
|
+
|
|
941
1019
|
type KeepActiveFiltersSummaryProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
942
1020
|
ref?: Ref<HTMLElement> | {
|
|
943
1021
|
readonly current: unknown;
|
|
@@ -1189,9 +1267,10 @@ declare function KeepThemeProvider({ children, theme, mode, density, radius, acc
|
|
|
1189
1267
|
|
|
1190
1268
|
type KeepKitProviderProps<TMeta = Record<string, unknown>> = Omit<KeepProviderProps<TMeta>, "children"> & Omit<KeepUiProviderProps<TMeta>, "children"> & Omit<KeepThemeProviderProps, "children"> & {
|
|
1191
1269
|
children?: ReactNode;
|
|
1270
|
+
tour?: Omit<KeepTourProviderProps<TMeta>, "children">;
|
|
1192
1271
|
};
|
|
1193
1272
|
/** Combines the core store, UI labels, and the global live announcer. */
|
|
1194
|
-
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, children, ...providerProps }: KeepKitProviderProps<TMeta>): react.JSX.Element;
|
|
1273
|
+
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;
|
|
1195
1274
|
|
|
1196
1275
|
type CreateKeepKitOptions<TMeta = Record<string, unknown>> = CreateKeepKitOptions$1<TMeta> & Omit<KeepUiProviderProps<TMeta>, "children"> & {
|
|
1197
1276
|
theme?: KeepThemeName;
|
|
@@ -1204,6 +1283,7 @@ type CreateKeepKitOptions<TMeta = Record<string, unknown>> = CreateKeepKitOption
|
|
|
1204
1283
|
variables?: KeepThemeVariables;
|
|
1205
1284
|
themeClassName?: string;
|
|
1206
1285
|
themeStyle?: KeepThemeProviderProps["style"];
|
|
1286
|
+
tour?: Omit<KeepTourProviderProps<TMeta>, "children">;
|
|
1207
1287
|
getTitle?: (item: KeepItem<TMeta>) => ReactNode;
|
|
1208
1288
|
getImageProps?: (item: KeepItem<TMeta>, title: ReactNode) => KeepImageProps | undefined;
|
|
1209
1289
|
};
|
|
@@ -1212,6 +1292,7 @@ type KeepKit<TMeta = Record<string, unknown>> = {
|
|
|
1212
1292
|
Button: ComponentType<KeepButtonProps<TMeta>>;
|
|
1213
1293
|
Backup: ComponentType<KeepBackupProps<TMeta>>;
|
|
1214
1294
|
Collection: ComponentType<KeepCollectionProps<TMeta>>;
|
|
1295
|
+
CollectionManager: ComponentType<KeepCollectionManagerProps>;
|
|
1215
1296
|
Workspace: ComponentType<KeepWorkspaceProps<TMeta>>;
|
|
1216
1297
|
useContext: () => ReturnType<typeof useKeepContext<TMeta>>;
|
|
1217
1298
|
useItem: (item?: KeepItemInput<TMeta>) => ReturnType<typeof useKeepItem<TMeta>>;
|
|
@@ -1222,8 +1303,13 @@ type KeepKit<TMeta = Record<string, unknown>> = {
|
|
|
1222
1303
|
}) => UseKeepCollectionsResult;
|
|
1223
1304
|
useNavigator: (options?: UseKeepNavigatorOptions<TMeta>) => UseKeepNavigatorResult<TMeta>;
|
|
1224
1305
|
useShortcut: (options: KeepShortcutOptions<TMeta>) => void;
|
|
1306
|
+
FloatingTour: ComponentType<KeepFloatingTourProps<TMeta>>;
|
|
1307
|
+
TourProvider: ComponentType<KeepTourProviderProps<TMeta>>;
|
|
1308
|
+
useTour: (options?: {
|
|
1309
|
+
currentId?: string;
|
|
1310
|
+
}) => ReturnType<typeof useKeepTour<TMeta>>;
|
|
1225
1311
|
};
|
|
1226
1312
|
/** Create one typed application API for the core and standard UI layer. */
|
|
1227
1313
|
declare function createKeepKit<TMeta = Record<string, unknown>>(options?: CreateKeepKitOptions<TMeta>): KeepKit<TMeta>;
|
|
1228
1314
|
|
|
1229
|
-
export { type CreateKeepKitOptions, KeepActiveFiltersSummary, type KeepActiveFiltersSummaryProps, type KeepActiveFiltersSummaryState, KeepAnnouncements, type KeepAnnouncementsProps, KeepAnnouncer, KeepArchiveButton, type KeepArchiveButtonProps, type KeepArchiveButtonState, type KeepArchiveScope, KeepArchiveScopeSelect, type KeepArchiveScopeSelectProps, KeepBackup, type KeepBackupProps, KeepBulkActions, type KeepBulkActionsProps, type KeepBulkActionsState, KeepButton, type KeepButtonIcon, type KeepButtonIconProps, type KeepButtonIcons, type KeepButtonLabels, type KeepButtonProps, KeepCollection, type KeepCollectionControlProps, KeepCollectionCreate, type KeepCollectionCreateProps, type KeepCollectionFeature, KeepCollectionFilter, type KeepCollectionOption, type KeepCollectionProps, KeepCollectionSelect, type KeepCollectionSlots, type KeepCollectionToolbarContent, type KeepCollectionToolbarGroup, type KeepCollectionToolbarLayout, type KeepCollectionToolbarVariant, type KeepDisplayStatus, KeepEmptyState, type KeepEmptyStateProps, type KeepEmptyStateVariant, KeepHighlight, type KeepHighlightProps, type KeepImageProps, KeepItemCard, type KeepItemCardActionSlotProps, type KeepItemCardActionsProps, type KeepItemCardBadgeProps, type KeepItemCardContentProps, type KeepItemCardLinkProps, type KeepItemCardMediaProps, type KeepItemCardProps, type KeepItemCardRemoveProps, type KeepItemCardSaveProps, KeepItemCardSkeleton, type KeepItemCardSkeletonProps, type KeepItemCardState, type KeepItemCardTagsProps, type KeepItemCardTitleProps, type KeepItemCardVariant, KeepItemCheckbox, type KeepItemCheckboxProps, KeepItemStatusBadge, type KeepItemStatusBadgeProps, type KeepKit, KeepKitProvider, type KeepKitProviderProps, KeepLayout, type KeepLayoutPreset, type KeepLayoutProps, KeepList, type KeepListProps, type KeepListState, KeepNavigator, KeepNoteEditor, type KeepNoteEditorProps, type KeepNoteEditorState, type KeepPagesRouterLike, KeepPagination, type KeepPaginationProps, type KeepPaginationState, KeepPinButton, type KeepPinButtonProps, type KeepPinButtonState, KeepPruneStaleButton, type KeepPruneStaleButtonProps, KeepQuickEditor, type KeepQuickEditorFeature, type KeepQuickEditorProps, type KeepQuickEditorState, type KeepReorderableItemState, KeepReorderableList, type KeepReorderableListProps, KeepSavePopover, type KeepSavePopoverProps, KeepSearchInput, type KeepSearchInputProps, type KeepSelectionScope, KeepShortcutHint, type KeepShortcutHintProps, KeepSortSelect, type KeepSortSelectProps, type KeepSortValue, KeepStaleNotice, type KeepStaleNoticeProps, KeepStatus, type KeepStatusLabels, type KeepStatusProps, type KeepStatusState, type KeepStatusValue, KeepSyncRecoveryDialog, type KeepSyncRecoveryDialogProps, KeepSyncStatusBanner, type KeepSyncStatusBannerProps, KeepTagEditor, type KeepTagEditorProps, type KeepTagEditorState, KeepTagFilter, type KeepTagFilterProps, type KeepTagFilterState, type KeepThemeDensity, type KeepThemeMode, type KeepThemeName, KeepThemeProvider, type KeepThemeProviderProps, type KeepThemeRadius, type KeepThemeVariables, type KeepToastFeedbackOptions, type KeepToastHandler, KeepTourBar, type KeepTourBarProps, type KeepTourShortcutsOptions, type KeepUiFeedbackEvent, type KeepUiLabelContext, type KeepUiLabelKey, type KeepUiLabelOptions, type KeepUiLabelOptionsMap, type KeepUiLabels, type KeepUiLocale, type KeepUiLocaleLabels, KeepUiProvider, type KeepUiProviderProps, KeepUndo, type KeepUndoProps, type KeepUrlAdapter, KeepWorkspace, type KeepWorkspaceModule, type KeepWorkspacePreset, type KeepWorkspaceProps, type KeepWorkspaceRegion, type KeepWorkspaceSectionGap, type KeepWorkspaceSlots, type KeepWorkspaceState, type KeepWorkspaceSurface, type RenderProp, chainedFunction, composeRefs, createKeepKit, createNextPagesRouterAdapter, createSlot, getKeepLocaleLabels, highlightText, isAllSelected, keepThemeNames, mergeProps, toggleSelectAll, useKeepQuickEditor, useKeepToastFeedback, useKeepTourShortcuts, useKeepUiLabels, useKeepUrlSync, useUiLabelVisibility };
|
|
1315
|
+
export { type CreateKeepKitOptions, KeepActiveFiltersSummary, type KeepActiveFiltersSummaryProps, type KeepActiveFiltersSummaryState, KeepAnnouncements, type KeepAnnouncementsProps, KeepAnnouncer, KeepArchiveButton, type KeepArchiveButtonProps, type KeepArchiveButtonState, type KeepArchiveScope, KeepArchiveScopeSelect, type KeepArchiveScopeSelectProps, KeepBackup, type KeepBackupProps, KeepBulkActions, type KeepBulkActionsProps, type KeepBulkActionsState, KeepButton, type KeepButtonIcon, type KeepButtonIconProps, type KeepButtonIcons, type KeepButtonLabels, type KeepButtonProps, KeepCollection, type KeepCollectionControlProps, KeepCollectionCreate, type KeepCollectionCreateProps, type KeepCollectionFeature, KeepCollectionFilter, KeepCollectionManager, type KeepCollectionManagerProps, type KeepCollectionOption, type KeepCollectionProps, KeepCollectionSelect, type KeepCollectionSlots, type KeepCollectionToolbarContent, type KeepCollectionToolbarGroup, type KeepCollectionToolbarLayout, type KeepCollectionToolbarVariant, type KeepDisplayStatus, KeepEmptyState, type KeepEmptyStateProps, type KeepEmptyStateVariant, KeepFloatingTour, type KeepFloatingTourProps, KeepHighlight, type KeepHighlightProps, type KeepImageProps, KeepItemCard, type KeepItemCardActionSlotProps, type KeepItemCardActionsProps, type KeepItemCardBadgeProps, type KeepItemCardContentProps, type KeepItemCardLinkProps, type KeepItemCardMediaProps, type KeepItemCardProps, type KeepItemCardRemoveProps, type KeepItemCardSaveProps, KeepItemCardSkeleton, type KeepItemCardSkeletonProps, type KeepItemCardState, type KeepItemCardTagsProps, type KeepItemCardTitleProps, type KeepItemCardVariant, KeepItemCheckbox, type KeepItemCheckboxProps, KeepItemStatusBadge, type KeepItemStatusBadgeProps, type KeepKit, KeepKitProvider, type KeepKitProviderProps, KeepLayout, type KeepLayoutPreset, type KeepLayoutProps, KeepList, type KeepListProps, type KeepListState, KeepNavigator, KeepNoteEditor, type KeepNoteEditorProps, type KeepNoteEditorState, type KeepPagesRouterLike, KeepPagination, type KeepPaginationProps, type KeepPaginationState, KeepPinButton, type KeepPinButtonProps, type KeepPinButtonState, KeepPruneStaleButton, type KeepPruneStaleButtonProps, KeepQuickEditor, type KeepQuickEditorFeature, type KeepQuickEditorProps, type KeepQuickEditorState, type KeepReorderableItemState, KeepReorderableList, type KeepReorderableListProps, KeepSavePopover, type KeepSavePopoverProps, KeepSearchInput, type KeepSearchInputProps, type KeepSelectionScope, KeepShortcutHint, type KeepShortcutHintProps, KeepSortSelect, type KeepSortSelectProps, type KeepSortValue, KeepStaleNotice, type KeepStaleNoticeProps, KeepStatus, type KeepStatusLabels, type KeepStatusProps, type KeepStatusState, type KeepStatusValue, KeepSyncRecoveryDialog, type KeepSyncRecoveryDialogProps, KeepSyncStatusBanner, type KeepSyncStatusBannerProps, KeepTagEditor, type KeepTagEditorProps, type KeepTagEditorState, KeepTagFilter, type KeepTagFilterProps, type KeepTagFilterState, type KeepThemeDensity, type KeepThemeMode, type KeepThemeName, KeepThemeProvider, type KeepThemeProviderProps, type KeepThemeRadius, type KeepThemeVariables, type KeepToastFeedbackOptions, type KeepToastHandler, KeepTourBar, type KeepTourBarProps, type KeepTourContextValue, type KeepTourPersistenceStatus, type KeepTourPosition, KeepTourProvider, type KeepTourProviderProps, type KeepTourShortcutsOptions, type KeepTourStartOptions, type KeepUiFeedbackEvent, type KeepUiLabelContext, type KeepUiLabelKey, type KeepUiLabelOptions, type KeepUiLabelOptionsMap, type KeepUiLabels, type KeepUiLocale, type KeepUiLocaleLabels, KeepUiProvider, type KeepUiProviderProps, KeepUndo, type KeepUndoProps, type KeepUrlAdapter, KeepWorkspace, type KeepWorkspaceModule, type KeepWorkspacePreset, type KeepWorkspaceProps, type KeepWorkspaceRegion, type KeepWorkspaceSectionGap, type KeepWorkspaceSlots, type KeepWorkspaceState, type KeepWorkspaceSurface, type RenderProp, chainedFunction, composeRefs, createKeepKit, createNextPagesRouterAdapter, createSlot, getKeepLocaleLabels, highlightText, isAllSelected, keepThemeNames, mergeProps, toggleSelectAll, useKeepQuickEditor, useKeepToastFeedback, useKeepTour, useKeepTourShortcuts, useKeepUiLabels, useKeepUrlSync, useUiLabelVisibility };
|