alinea 2.0.0-preview.12 → 2.0.0-preview.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.init/content/pages/welcome.json +1 -1
- package/dist/.mcp/later/dev.json +1 -1
- package/dist/.mcp/online/dev.json +1 -1
- package/dist/adapter/next/cms.js +16 -8
- package/dist/adapter/next/dashboardUrl.d.ts +6 -0
- package/dist/adapter/next/dashboardUrl.js +13 -0
- package/dist/adapter/next/syncCheck.d.ts +15 -2
- package/dist/adapter/next/syncCheck.js +26 -9
- package/dist/backend/Handler.js +5 -1
- package/dist/backend/api/BlobStore.d.ts +21 -0
- package/dist/backend/api/BlobStore.js +63 -0
- package/dist/backend/api/CreateBackend.js +10 -8
- package/dist/backend/api/DatabaseApi.d.ts +4 -1
- package/dist/backend/api/DatabaseApi.js +88 -4
- package/dist/backend/api/GithubApi.js +47 -24
- package/dist/backend/api/database.js +6 -6
- package/dist/bundled.d.ts +676 -280
- package/dist/chunks/{bun-sqlite-5SHXN3AT.js → bun-sqlite-RI6BYU5S.js} +3 -3
- package/dist/chunks/{chunk-OHGAVV4G.js → chunk-3QFSGTGF.js} +2 -3
- package/dist/chunks/{chunk-QJGGYF6E.js → chunk-4ZA6KZHS.js} +5 -5
- package/dist/chunks/{chunk-ASYKC6IE.js → chunk-5H4D5JQL.js} +1 -1
- package/dist/chunks/{chunk-ETWOY4AL.js → chunk-A2I6MCCS.js} +1 -1
- package/dist/chunks/{chunk-W5AXN7GH.js → chunk-CYVOGRSD.js} +1 -2
- package/dist/chunks/{chunk-TIJTT5ZI.js → chunk-G43W7AME.js} +1 -0
- package/dist/chunks/{chunk-RE523BQ7.js → chunk-HOETF6HN.js} +5829 -5830
- package/dist/chunks/{chunk-AIU6CMVT.js → chunk-PTYZMV5G.js} +1 -1
- package/dist/chunks/{chunk-JOF663EG.js → chunk-QHHMKJUO.js} +1 -1
- package/dist/chunks/{chunk-66YZ47TY.js → chunk-RAR44T5O.js} +1 -1
- package/dist/chunks/{chunk-QSN6RH6X.js → chunk-VA6NC3MI.js} +1 -1
- package/dist/chunks/{node-sqlite-XVNTNMCY.js → node-sqlite-C7VJ2NSN.js} +3 -3
- package/dist/cli/Mcp.js +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +2 -3
- package/dist/cli/serve/mcp/DevMcp.js +1 -1
- package/dist/cli/serve/mcp/McpTools.js +29 -1
- package/dist/cloud/CloudRemote.js +1 -1
- package/dist/components/Alert.js +2 -2
- package/dist/components/AppShell.js +2 -2
- package/dist/components/Badge.d.ts +3 -1
- package/dist/components/Badge.js +5 -3
- package/dist/components/Breadcrumbs.js +7 -7
- package/dist/components/Button.d.ts +6 -1
- package/dist/components/Button.js +16 -7
- package/dist/components/Calendar.js +20 -20
- package/dist/components/Checkbox.js +7 -7
- package/dist/components/CheckboxGroup.js +4 -4
- package/dist/components/Code.js +2 -2
- package/dist/components/Collapsible.js +3 -3
- package/dist/components/ColorSwatch.js +2 -2
- package/dist/components/ColorSwatchPicker.js +2 -2
- package/dist/components/ComboBox.js +7 -7
- package/dist/components/Command.js +14 -13
- package/dist/components/ContentCard.d.ts +3 -1
- package/dist/components/ContentCard.js +46 -24
- package/dist/components/ContentGrid.js +17 -17
- package/dist/components/DataList.js +2 -2
- package/dist/components/DateField.js +2 -2
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/DateRangePicker.js +2 -2
- package/dist/components/Dialog.js +7 -7
- package/dist/components/DropZone.js +6 -6
- package/dist/components/DropdownMenu.js +9 -9
- package/dist/components/Empty.js +5 -5
- package/dist/components/Field.js +8 -8
- package/dist/components/List.js +27 -27
- package/dist/components/MediaPreview.js +5 -5
- package/dist/components/MultipleSelect.js +22 -22
- package/dist/components/NavRail.js +4 -4
- package/dist/components/NumberField.js +4 -4
- package/dist/components/Page.js +3 -3
- package/dist/components/Popover.js +2 -2
- package/dist/components/PreviewFrame.js +9 -9
- package/dist/components/RadioGroup.js +9 -9
- package/dist/components/Resizable.js +4 -4
- package/dist/components/SearchField.d.ts +6 -1
- package/dist/components/SearchField.js +5 -3
- package/dist/components/Select.js +13 -13
- package/dist/components/Sheet.d.ts +50 -0
- package/dist/components/Sheet.js +202 -0
- package/dist/components/Sidebar.js +4 -4
- package/dist/components/SortableList.d.ts +34 -30
- package/dist/components/SortableList.js +161 -264
- package/dist/components/Spinner.js +2 -2
- package/dist/components/Surface.js +2 -2
- package/dist/components/Switch.js +8 -8
- package/dist/components/Table.d.ts +3 -1
- package/dist/components/Table.js +57 -46
- package/dist/components/Tabs.js +5 -5
- package/dist/components/TagGroup.js +8 -8
- package/dist/components/TextField.js +10 -10
- package/dist/components/TimeField.js +6 -6
- package/dist/components/Timestamp.js +1 -1
- package/dist/components/ToggleGroup.js +2 -2
- package/dist/components/Toolbar.js +2 -2
- package/dist/components/Tooltip.js +5 -5
- package/dist/components/Tree.js +24 -24
- package/dist/components/internal/DateControl.js +12 -12
- package/dist/components/internal/ListBoxOption.js +6 -6
- package/dist/components/internal/Locale.js +2 -2
- package/dist/components/internal/PopoverSurface.js +4 -4
- package/dist/components/internal/SelectionCheckbox.js +5 -5
- package/dist/components/internal/Slot.js +1 -1
- package/dist/components/internal/ToggleButton.js +3 -3
- package/dist/components/internal/Trigger.js +2 -2
- package/dist/components/internal/sortableDrag.d.ts +19 -0
- package/dist/components/internal/sortableDrag.js +175 -0
- package/dist/components/internal/useDragDrop.js +2 -2
- package/dist/components.d.ts +1 -0
- package/dist/components.js +1 -0
- package/dist/core/Config.d.ts +6 -1
- package/dist/core/Document.d.ts +9 -1
- package/dist/core/Document.js +31 -6
- package/dist/core/Overview.d.ts +2 -4
- package/dist/core/TextDoc.d.ts +4 -0
- package/dist/core/Validation.d.ts +0 -1
- package/dist/core/Validation.js +0 -6
- package/dist/core/field/RichTextField.js +23 -4
- package/dist/core/media/MediaTypes.js +1 -1
- package/dist/core/source/GithubSource.d.ts +4 -0
- package/dist/core/source/GithubSource.js +127 -25
- package/dist/core/source/GithubUsage.d.ts +21 -0
- package/dist/core/source/GithubUsage.js +47 -0
- package/dist/dashboard/App.d.ts +2 -2
- package/dist/dashboard/App.js +5 -3
- package/dist/dashboard/ViewKeys.d.ts +1 -0
- package/dist/dashboard/ViewKeys.js +1 -0
- package/dist/dashboard/app/ActivityStatus.js +7 -7
- package/dist/dashboard/app/AuthView.js +5 -5
- package/dist/dashboard/app/BlockSheet.d.ts +50 -0
- package/dist/dashboard/app/BlockSheet.js +207 -0
- package/dist/dashboard/app/BlockSheetStoryFrame.d.ts +6 -0
- package/dist/dashboard/app/BlockSheetStoryFrame.js +29 -0
- package/dist/dashboard/app/CompactField.js +16 -16
- package/dist/dashboard/app/DashboardLayout.js +3 -1
- package/dist/dashboard/app/EntryFields.js +2 -2
- package/dist/dashboard/app/EntryHeader.js +33 -34
- package/dist/dashboard/app/EntryReferences.js +7 -7
- package/dist/dashboard/app/EntrySidebar.js +15 -15
- package/dist/dashboard/app/EntrySidebarPreview.js +3 -3
- package/dist/dashboard/app/EntryStatusIcon.d.ts +23 -0
- package/dist/dashboard/app/EntryStatusIcon.js +58 -0
- package/dist/dashboard/app/EntryValidationModal.d.ts +6 -5
- package/dist/dashboard/app/EntryValidationModal.js +20 -20
- package/dist/dashboard/app/Explorer.d.ts +3 -1
- package/dist/dashboard/app/Explorer.js +48 -44
- package/dist/dashboard/app/ExplorerBatchActions.d.ts +3 -1
- package/dist/dashboard/app/ExplorerBatchActions.js +68 -43
- package/dist/dashboard/app/ExplorerCards.js +7 -1
- package/dist/dashboard/app/ExplorerControls.js +6 -6
- package/dist/dashboard/app/ExplorerList.js +5 -5
- package/dist/dashboard/app/ExplorerModal.js +2 -2
- package/dist/dashboard/app/ExplorerTable.js +11 -8
- package/dist/dashboard/app/ImageEditor.js +28 -28
- package/dist/dashboard/app/ImagePicker.js +3 -13
- package/dist/dashboard/app/LinkPicker.js +28 -26
- package/dist/dashboard/app/LocaleMenu.js +4 -4
- package/dist/dashboard/app/MediaPreviewCell.js +1 -1
- package/dist/dashboard/app/MoveConfirmDialog.d.ts +5 -0
- package/dist/dashboard/app/MoveConfirmDialog.js +79 -0
- package/dist/dashboard/app/OverviewCell.js +8 -13
- package/dist/dashboard/app/PendingUploadsView.js +3 -3
- package/dist/dashboard/app/ReadOnlyBadge.d.ts +1 -1
- package/dist/dashboard/app/RemoveDialog.d.ts +17 -0
- package/dist/dashboard/app/{DeleteDialog.js → RemoveDialog.js} +67 -27
- package/dist/dashboard/app/RemoveRedirect.d.ts +7 -0
- package/dist/dashboard/app/RemoveRedirect.js +123 -0
- package/dist/dashboard/app/SearchBar.d.ts +9 -0
- package/dist/dashboard/app/SearchBar.js +31 -0
- package/dist/dashboard/app/SidebarTree.js +27 -72
- package/dist/dashboard/app/WorkspaceMenu.js +7 -7
- package/dist/dashboard/app/WorkspaceRoots.js +12 -12
- package/dist/dashboard/app/editor/FileEditor.js +14 -14
- package/dist/dashboard/app/modals/CreateEntry.js +3 -3
- package/dist/dashboard/app/pages/EntryPage.d.ts +2 -1
- package/dist/dashboard/app/pages/EntryPage.js +34 -15
- package/dist/dashboard/app/pages/SplashPage.js +37 -37
- package/dist/dashboard/app/pages/UsersPage.js +12 -12
- package/dist/dashboard/app/ui/DashboardModal.js +15 -14
- package/dist/dashboard/atoms/dashboard.js +1 -1
- package/dist/dashboard/atoms/entry.js +1 -14
- package/dist/dashboard/atoms/entryTable.js +1 -0
- package/dist/dashboard/atoms/explorer.d.ts +4 -0
- package/dist/dashboard/atoms/explorer.js +19 -7
- package/dist/dashboard/atoms/graph.js +1 -1
- package/dist/dashboard/atoms/link.js +5 -2
- package/dist/dashboard/atoms/move.d.ts +5 -0
- package/dist/dashboard/atoms/move.js +29 -3
- package/dist/dashboard/atoms/moveConfirmation.d.ts +34 -0
- package/dist/dashboard/atoms/moveConfirmation.js +95 -0
- package/dist/dashboard/atoms/nav.d.ts +9 -5
- package/dist/dashboard/atoms/nav.js +120 -45
- package/dist/dashboard/atoms/overview.d.ts +6 -5
- package/dist/dashboard/atoms/overview.js +2 -16
- package/dist/dashboard/atoms/remove.d.ts +112 -0
- package/dist/dashboard/atoms/remove.js +268 -0
- package/dist/dashboard/atoms/root.d.ts +2 -2
- package/dist/dashboard/atoms/root.js +41 -26
- package/dist/dashboard/atoms/user.js +1 -1
- package/dist/dashboard/atoms/utils.js +1 -1
- package/dist/dashboard/boot/Boot.js +25 -17
- package/dist/dashboard/boot/DashboardWorker.d.ts +1 -0
- package/dist/dashboard/boot/DashboardWorker.js +10 -46
- package/dist/dashboard/boot/LoadWorker.js +17 -10
- package/dist/dashboard/cms/EntryTable.js +8 -5
- package/dist/database/BrowserEntryStore.d.ts +12 -62
- package/dist/database/BrowserEntryStore.js +97 -196
- package/dist/database/DatabaseTables.js +2 -2
- package/dist/database/EntryDatabase.js +21 -1
- package/dist/database/EntryTransaction.js +0 -35
- package/dist/database/EntryUrlAliases.d.ts +4 -0
- package/dist/database/EntryUrlAliases.js +16 -10
- package/dist/database/driver/RuntimeDatabase.js +3 -3
- package/dist/database/driver/WasmDatabase.d.ts +5 -18
- package/dist/database/driver/WasmDatabase.js +15 -16
- package/dist/database/entry/EntryTable.js +2 -2
- package/dist/database/query/EntryQuery.js +1 -1
- package/dist/database/query/Relation.js +1 -1
- package/dist/database/query/Search.js +2 -2
- package/dist/field/code/CodeField.view.js +16 -16
- package/dist/field/link/EntryLink.d.ts +4 -4
- package/dist/field/link/FileLink.d.ts +4 -4
- package/dist/field/link/ImageLink.d.ts +4 -4
- package/dist/field/link/Link.d.ts +1 -1
- package/dist/field/link/LinkField.d.ts +5 -0
- package/dist/field/link/LinkField.view.js +244 -370
- package/dist/field/link/UrlLink.d.ts +4 -4
- package/dist/field/list/ListField.d.ts +2 -0
- package/dist/field/list/ListField.view.d.ts +15 -0
- package/dist/field/list/ListField.view.js +343 -301
- package/dist/field/metadata/MetadataField.d.ts +17 -7
- package/dist/field/metadata/MetadataField.js +14 -3
- package/dist/field/metadata/MetadataField.view.d.ts +1 -0
- package/dist/field/metadata/MetadataField.view.js +25 -21
- package/dist/field/richtext/RichTextBlock.d.ts +3 -1
- package/dist/field/richtext/RichTextBlock.js +177 -74
- package/dist/field/richtext/RichTextBlockHost.js +1 -1
- package/dist/field/richtext/RichTextExtensions.js +31 -31
- package/dist/field/richtext/RichTextField.view.js +14 -8
- package/dist/field/richtext/RichTextInsertMenu.js +43 -27
- package/dist/field/views.js +2 -0
- package/dist/index.css +490 -309
- package/dist/picker/url/UrlPicker.js +1 -0
- package/docs/components/badge.md +1 -0
- package/docs/components/button.md +1 -0
- package/docs/components/content-card.md +1 -0
- package/docs/components/search-field.md +1 -0
- package/docs/components/sortable-list.md +5 -20
- package/docs/components/table.md +1 -0
- package/docs/configuration.md +1 -1
- package/docs/deploy/self-host.md +1 -1
- package/docs/deploy.md +5 -4
- package/docs/fields.md +1 -1
- package/docs/index.md +1 -1
- package/docs/instant-publishing.md +7 -22
- package/docs/overviews.md +3 -4
- package/docs/upgrading.md +3 -2
- package/llms-full.txt +31 -55
- package/package.json +2 -3
- package/dist/core/db/EntryValidationError.d.ts +0 -13
- package/dist/core/db/EntryValidationError.js +0 -23
- package/dist/dashboard/app/DeleteDialog.d.ts +0 -11
- package/dist/dashboard/atoms/delete.d.ts +0 -68
- package/dist/dashboard/atoms/delete.js +0 -143
- package/dist/chunks/{chunk-MOWR65LM.js → chunk-PYDOMKJZ.js} +71 -71
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$db7105decd081705$export$4c260019440d418f
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-QHHMKJUO.js";
|
|
4
4
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
5
|
-
import "../chunks/chunk-
|
|
5
|
+
import "../chunks/chunk-HOETF6HN.js";
|
|
6
6
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
7
7
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
8
8
|
import {
|
|
@@ -21,18 +21,18 @@ import { Button } from "./Button.js";
|
|
|
21
21
|
|
|
22
22
|
// src/components/PreviewFrame.module.css
|
|
23
23
|
var PreviewFrame_default = {
|
|
24
|
-
"PreviewToolbar-
|
|
25
|
-
"
|
|
24
|
+
"PreviewToolbar-open": "alinea-PreviewToolbar-open",
|
|
25
|
+
"PreviewToolbarOpen": "alinea-PreviewToolbar-open",
|
|
26
26
|
"PreviewFrame-iframe": "alinea-PreviewFrame-iframe",
|
|
27
27
|
"PreviewFrameIframe": "alinea-PreviewFrame-iframe",
|
|
28
|
-
"PreviewFrame": "alinea-PreviewFrame",
|
|
29
|
-
"PreviewFrame-unavailable": "alinea-PreviewFrame-unavailable",
|
|
30
|
-
"PreviewFrameUnavailable": "alinea-PreviewFrame-unavailable",
|
|
31
28
|
"PreviewFrame-loading": "alinea-PreviewFrame-loading",
|
|
32
29
|
"PreviewFrameLoading": "alinea-PreviewFrame-loading",
|
|
30
|
+
"PreviewFrame-unavailable": "alinea-PreviewFrame-unavailable",
|
|
31
|
+
"PreviewFrameUnavailable": "alinea-PreviewFrame-unavailable",
|
|
33
32
|
"PreviewToolbar": "alinea-PreviewToolbar",
|
|
34
|
-
"PreviewToolbar-
|
|
35
|
-
"
|
|
33
|
+
"PreviewToolbar-navigation": "alinea-PreviewToolbar-navigation",
|
|
34
|
+
"PreviewToolbarNavigation": "alinea-PreviewToolbar-navigation",
|
|
35
|
+
"PreviewFrame": "alinea-PreviewFrame"
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// src/components/PreviewFrame.tsx
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
$efe09c6d1c304b50$export$9afb8bc826b033ea,
|
|
3
3
|
$fe21c36db05242bb$export$a98f0dcb43a68a25,
|
|
4
4
|
$fe21c36db05242bb$export$d7b12c4107be0d61
|
|
5
|
-
} from "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-QHHMKJUO.js";
|
|
6
6
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
7
|
+
import "../chunks/chunk-HOETF6HN.js";
|
|
8
8
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
9
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
10
10
|
import {
|
|
@@ -18,18 +18,18 @@ import { Field, FieldDescription } from "./Field.js";
|
|
|
18
18
|
|
|
19
19
|
// src/components/RadioGroup.module.css
|
|
20
20
|
var RadioGroup_default = {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"RadioGroupItem-indicator": "alinea-RadioGroupItem-indicator",
|
|
24
|
-
"RadioGroupItemIndicator": "alinea-RadioGroupItem-indicator",
|
|
25
|
-
"RadioGroup": "alinea-RadioGroup",
|
|
21
|
+
"RadioGroup-items": "alinea-RadioGroup-items",
|
|
22
|
+
"RadioGroupItems": "alinea-RadioGroup-items",
|
|
26
23
|
"RadioGroupItem-content": "alinea-RadioGroupItem-content",
|
|
27
24
|
"RadioGroupItemContent": "alinea-RadioGroupItem-content",
|
|
28
25
|
"is-focusVisible": "alinea-is-focusVisible",
|
|
29
26
|
"isFocusVisible": "alinea-is-focusVisible",
|
|
27
|
+
"RadioGroupItem-label": "alinea-RadioGroupItem-label",
|
|
28
|
+
"RadioGroupItemLabel": "alinea-RadioGroupItem-label",
|
|
29
|
+
"RadioGroup": "alinea-RadioGroup",
|
|
30
30
|
"RadioGroupItem": "alinea-RadioGroupItem",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"RadioGroupItem-indicator": "alinea-RadioGroupItem-indicator",
|
|
32
|
+
"RadioGroupItemIndicator": "alinea-RadioGroupItem-indicator"
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// src/components/RadioGroup.tsx
|
|
@@ -1082,12 +1082,12 @@ import {
|
|
|
1082
1082
|
|
|
1083
1083
|
// src/components/Resizable.module.css
|
|
1084
1084
|
var Resizable_default = {
|
|
1085
|
+
"ResizablePanelGroup-view": "alinea-ResizablePanelGroup-view",
|
|
1086
|
+
"ResizablePanelGroupView": "alinea-ResizablePanelGroup-view",
|
|
1087
|
+
"ResizablePanel": "alinea-ResizablePanel",
|
|
1085
1088
|
"ResizablePanelGroup": "alinea-ResizablePanelGroup",
|
|
1086
1089
|
"ResizablePanelGroup-handle": "alinea-ResizablePanelGroup-handle",
|
|
1087
|
-
"ResizablePanelGroupHandle": "alinea-ResizablePanelGroup-handle"
|
|
1088
|
-
"ResizablePanel": "alinea-ResizablePanel",
|
|
1089
|
-
"ResizablePanelGroup-view": "alinea-ResizablePanelGroup-view",
|
|
1090
|
-
"ResizablePanelGroupView": "alinea-ResizablePanelGroup-view"
|
|
1090
|
+
"ResizablePanelGroupHandle": "alinea-ResizablePanelGroup-handle"
|
|
1091
1091
|
};
|
|
1092
1092
|
|
|
1093
1093
|
// src/components/Resizable.tsx
|
|
@@ -11,6 +11,11 @@ export interface SearchFieldProps extends FieldSharedProps, StyleProps, AriaProp
|
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
/** Shows a spinner while results are being loaded */
|
|
13
13
|
loading?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* `inline` drops the box so the field reads as the top row of the results
|
|
16
|
+
* it searches, like a command palette. The row draws its own border.
|
|
17
|
+
*/
|
|
18
|
+
variant?: 'default' | 'inline';
|
|
14
19
|
name?: string;
|
|
15
20
|
autoFocus?: boolean;
|
|
16
21
|
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
@@ -36,4 +41,4 @@ export interface SearchFieldProps extends FieldSharedProps, StyleProps, AriaProp
|
|
|
36
41
|
* A text input for search queries with a clear button. The `icon` is shown
|
|
37
42
|
* inside the input, in front of the query.
|
|
38
43
|
*/
|
|
39
|
-
export declare function SearchField({ label, description, error, required, disabled, readOnly, icon, shared, onValueChange, placeholder, loading, onBlur, onFocus, onKeyDown, role, 'aria-controls': ariaControls, 'aria-activedescendant': ariaActiveDescendant, 'aria-expanded': ariaExpanded, 'aria-haspopup': ariaHasPopup, 'aria-autocomplete': ariaAutocomplete, className, ...props }: SearchFieldProps): import("react").JSX.Element;
|
|
44
|
+
export declare function SearchField({ label, description, error, required, disabled, readOnly, icon, shared, onValueChange, placeholder, loading, variant, onBlur, onFocus, onKeyDown, role, 'aria-controls': ariaControls, 'aria-activedescendant': ariaActiveDescendant, 'aria-expanded': ariaExpanded, 'aria-haspopup': ariaHasPopup, 'aria-autocomplete': ariaAutocomplete, className, ...props }: SearchFieldProps): import("react").JSX.Element;
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
$29a5029ff43c9612$export$b94867ecbd698f21,
|
|
3
3
|
$41fb335299a4a39e$export$f5b8910cec6cf069,
|
|
4
4
|
$7705c033048f6da7$export$353f5b6fc5456de1
|
|
5
|
-
} from "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-QHHMKJUO.js";
|
|
6
6
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
7
|
+
import "../chunks/chunk-HOETF6HN.js";
|
|
8
8
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
9
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
10
10
|
import {
|
|
@@ -19,10 +19,10 @@ import { Icon } from "./Icon.js";
|
|
|
19
19
|
|
|
20
20
|
// src/components/SearchField.module.css
|
|
21
21
|
var SearchField_default = {
|
|
22
|
-
"SearchFieldClear": "alinea-SearchFieldClear",
|
|
23
22
|
"SearchFieldClear-icon": "alinea-SearchFieldClear-icon",
|
|
24
23
|
"SearchFieldClearIcon": "alinea-SearchFieldClear-icon",
|
|
25
24
|
"SearchFieldGroup": "alinea-SearchFieldGroup",
|
|
25
|
+
"SearchFieldClear": "alinea-SearchFieldClear",
|
|
26
26
|
"SearchFieldIcon": "alinea-SearchFieldIcon",
|
|
27
27
|
"SearchFieldSpinner": "alinea-SearchFieldSpinner",
|
|
28
28
|
"SearchFieldInput": "alinea-SearchFieldInput",
|
|
@@ -45,6 +45,7 @@ function SearchField({
|
|
|
45
45
|
onValueChange,
|
|
46
46
|
placeholder,
|
|
47
47
|
loading,
|
|
48
|
+
variant = "default",
|
|
48
49
|
onBlur,
|
|
49
50
|
onFocus,
|
|
50
51
|
onKeyDown,
|
|
@@ -62,6 +63,7 @@ function SearchField({
|
|
|
62
63
|
{
|
|
63
64
|
"data-slot": "search-field",
|
|
64
65
|
...props,
|
|
66
|
+
"data-variant": variant,
|
|
65
67
|
onChange: onValueChange,
|
|
66
68
|
isRequired: required,
|
|
67
69
|
isDisabled: disabled,
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
$c8bb816105474884$export$ef445b55be0601bd,
|
|
8
8
|
$c8bb816105474884$export$ef9b1a59e592288f,
|
|
9
9
|
$e28ab3efe3e87743$export$1ff3c3f08ae963c0
|
|
10
|
-
} from "../chunks/chunk-
|
|
10
|
+
} from "../chunks/chunk-QHHMKJUO.js";
|
|
11
11
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
12
|
+
import "../chunks/chunk-HOETF6HN.js";
|
|
13
13
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
14
14
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
15
15
|
import {
|
|
@@ -31,24 +31,24 @@ import { PopoverSurface } from "./internal/PopoverSurface.js";
|
|
|
31
31
|
|
|
32
32
|
// src/components/Select.module.css
|
|
33
33
|
var Select_default = {
|
|
34
|
+
"SelectSeparator": "alinea-SelectSeparator",
|
|
35
|
+
"SelectGroup": "alinea-SelectGroup",
|
|
36
|
+
"SelectTrigger-clear": "alinea-SelectTrigger-clear",
|
|
37
|
+
"SelectTriggerClear": "alinea-SelectTrigger-clear",
|
|
38
|
+
"SelectTrigger": "alinea-SelectTrigger",
|
|
34
39
|
"SelectTrigger-value": "alinea-SelectTrigger-value",
|
|
35
40
|
"SelectTriggerValue": "alinea-SelectTrigger-value",
|
|
41
|
+
"SelectContent-list": "alinea-SelectContent-list",
|
|
42
|
+
"SelectContentList": "alinea-SelectContent-list",
|
|
36
43
|
"SelectTrigger-button": "alinea-SelectTrigger-button",
|
|
37
44
|
"SelectTriggerButton": "alinea-SelectTrigger-button",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
45
|
+
"Select": "alinea-Select",
|
|
46
|
+
"SelectTrigger-arrow": "alinea-SelectTrigger-arrow",
|
|
47
|
+
"SelectTriggerArrow": "alinea-SelectTrigger-arrow",
|
|
40
48
|
"SelectGroup-label": "alinea-SelectGroup-label",
|
|
41
49
|
"SelectGroupLabel": "alinea-SelectGroup-label",
|
|
42
|
-
"SelectSeparator": "alinea-SelectSeparator",
|
|
43
|
-
"SelectContent-list": "alinea-SelectContent-list",
|
|
44
|
-
"SelectContentList": "alinea-SelectContent-list",
|
|
45
50
|
"SelectTrigger-placeholder": "alinea-SelectTrigger-placeholder",
|
|
46
|
-
"SelectTriggerPlaceholder": "alinea-SelectTrigger-placeholder"
|
|
47
|
-
"SelectTrigger-arrow": "alinea-SelectTrigger-arrow",
|
|
48
|
-
"SelectTriggerArrow": "alinea-SelectTrigger-arrow",
|
|
49
|
-
"Select": "alinea-Select",
|
|
50
|
-
"SelectTrigger-clear": "alinea-SelectTrigger-clear",
|
|
51
|
-
"SelectTriggerClear": "alinea-SelectTrigger-clear"
|
|
51
|
+
"SelectTriggerPlaceholder": "alinea-SelectTrigger-placeholder"
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
// src/components/Select.tsx
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type MouseEvent, type ReactNode } from 'react';
|
|
2
|
+
import type { AriaProps, DataProps, StyleProps } from './types.js';
|
|
3
|
+
export interface SheetContentProps extends StyleProps, AriaProps, DataProps {
|
|
4
|
+
/** Called on Escape while focus is inside the sheet, and by `SheetClose` */
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
/** Accessible label of the back button in the header, defaults to "Back" */
|
|
7
|
+
backLabel?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A non-modal panel that fills its positioned container. Mount it to open
|
|
12
|
+
* the sheet: focus moves to its first field, and returns to the previously
|
|
13
|
+
* focused element when it unmounts. Labelled by its `SheetTitle` unless
|
|
14
|
+
* given an `aria-label`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function SheetContent({ onClose, backLabel, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, ...props }: SheetContentProps): import("react").JSX.Element;
|
|
17
|
+
export interface SheetPartProps extends StyleProps, AriaProps, DataProps {
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export interface SheetHeaderProps extends SheetPartProps {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Top bar of the sheet, eg. a badge, the title, a key hint and SheetClose.
|
|
24
|
+
* Starts with a back button when the sheet has an `onClose`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function SheetHeader({ className, children, ...props }: SheetHeaderProps): import("react").JSX.Element;
|
|
27
|
+
export interface SheetTitleProps extends SheetPartProps {
|
|
28
|
+
}
|
|
29
|
+
export declare function SheetTitle({ className, ...props }: SheetTitleProps): import("react").JSX.Element;
|
|
30
|
+
export interface SheetBodyProps extends SheetPartProps {
|
|
31
|
+
}
|
|
32
|
+
/** Scrolling content of the sheet, holds SheetSection elements */
|
|
33
|
+
export declare function SheetBody({ className, ...props }: SheetBodyProps): import("react").JSX.Element;
|
|
34
|
+
export interface SheetSectionProps extends SheetPartProps {
|
|
35
|
+
title?: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export declare function SheetSection({ title, className, children, ...props }: SheetSectionProps): import("react").JSX.Element;
|
|
38
|
+
export interface SheetFooterProps extends SheetPartProps {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Bottom bar of the sheet, holds small ghost buttons. Destructive buttons
|
|
42
|
+
* are pushed to the end.
|
|
43
|
+
*/
|
|
44
|
+
export declare function SheetFooter({ className, ...props }: SheetFooterProps): import("react").JSX.Element;
|
|
45
|
+
export interface SheetCloseProps extends StyleProps, DataProps {
|
|
46
|
+
'aria-label': string;
|
|
47
|
+
/** Defaults to the `onClose` of the surrounding SheetContent */
|
|
48
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
49
|
+
}
|
|
50
|
+
export declare function SheetClose({ onClick, ...props }: SheetCloseProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dist_default
|
|
3
|
+
} from "../chunks/chunk-I4OYYAX5.js";
|
|
4
|
+
import "../chunks/chunk-CQ52GEHY.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Sheet.tsx
|
|
7
|
+
import {
|
|
8
|
+
createContext,
|
|
9
|
+
useContext,
|
|
10
|
+
useId,
|
|
11
|
+
useLayoutEffect,
|
|
12
|
+
useMemo,
|
|
13
|
+
useRef
|
|
14
|
+
} from "react";
|
|
15
|
+
import { IcRoundArrowBack, IcRoundClose } from "alinea/dashboard/icons";
|
|
16
|
+
import { Button } from "./Button.js";
|
|
17
|
+
|
|
18
|
+
// src/components/Sheet.module.css
|
|
19
|
+
var Sheet_default = {
|
|
20
|
+
"SheetBody": "alinea-SheetBody",
|
|
21
|
+
"SheetTitle": "alinea-SheetTitle",
|
|
22
|
+
"SheetSection-title": "alinea-SheetSection-title",
|
|
23
|
+
"SheetSectionTitle": "alinea-SheetSection-title",
|
|
24
|
+
"SheetFooter": "alinea-SheetFooter",
|
|
25
|
+
"SheetContent": "alinea-SheetContent",
|
|
26
|
+
"SheetHeader": "alinea-SheetHeader",
|
|
27
|
+
"SheetSection": "alinea-SheetSection",
|
|
28
|
+
"SheetHeader-back": "alinea-SheetHeader-back",
|
|
29
|
+
"SheetHeaderBack": "alinea-SheetHeader-back"
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/components/Sheet.tsx
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
var styles = dist_default(Sheet_default);
|
|
35
|
+
var fields = 'input:not([type="hidden"]), textarea, select, [contenteditable="true"]';
|
|
36
|
+
var focusables = 'button, [href], input, textarea, select, [contenteditable="true"], [tabindex]';
|
|
37
|
+
var SheetContext = createContext(null);
|
|
38
|
+
function focusable(element) {
|
|
39
|
+
return element.tabIndex >= 0 && !element.matches(":disabled") && !element.closest('[aria-hidden="true"], [inert]');
|
|
40
|
+
}
|
|
41
|
+
function first(root, selector) {
|
|
42
|
+
return Array.from(root.querySelectorAll(selector)).find(
|
|
43
|
+
focusable
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function SheetContent({
|
|
47
|
+
onClose,
|
|
48
|
+
backLabel = "Back",
|
|
49
|
+
className,
|
|
50
|
+
children,
|
|
51
|
+
"aria-label": ariaLabel,
|
|
52
|
+
"aria-labelledby": ariaLabelledby,
|
|
53
|
+
...props
|
|
54
|
+
}) {
|
|
55
|
+
const ref = useRef(null);
|
|
56
|
+
const titleId = useId();
|
|
57
|
+
const context = useMemo(
|
|
58
|
+
() => ({ titleId, backLabel, onClose }),
|
|
59
|
+
[titleId, backLabel, onClose]
|
|
60
|
+
);
|
|
61
|
+
useLayoutEffect(() => {
|
|
62
|
+
const root = ref.current;
|
|
63
|
+
if (!root) return;
|
|
64
|
+
const previous = document.activeElement;
|
|
65
|
+
const body = root.querySelector('[data-slot="sheet-body"]') ?? root;
|
|
66
|
+
const target = first(body, fields) ?? first(body, focusables) ?? root;
|
|
67
|
+
target.focus();
|
|
68
|
+
return () => {
|
|
69
|
+
const active = document.activeElement;
|
|
70
|
+
const lost = !active || active === document.body || root.contains(active);
|
|
71
|
+
if (lost && previous instanceof HTMLElement && previous.isConnected)
|
|
72
|
+
previous.focus();
|
|
73
|
+
};
|
|
74
|
+
}, []);
|
|
75
|
+
function onKeyDown(event) {
|
|
76
|
+
if (event.key !== "Escape" || event.defaultPrevented || !onClose) return;
|
|
77
|
+
event.preventDefault();
|
|
78
|
+
onClose();
|
|
79
|
+
}
|
|
80
|
+
return /* @__PURE__ */ jsx(SheetContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "sheet-content",
|
|
84
|
+
role: "dialog",
|
|
85
|
+
tabIndex: -1,
|
|
86
|
+
"aria-label": ariaLabel,
|
|
87
|
+
"aria-labelledby": ariaLabelledby ?? (ariaLabel ? void 0 : titleId),
|
|
88
|
+
...props,
|
|
89
|
+
ref,
|
|
90
|
+
className: styles.SheetContent(dist_default.merge({ className })),
|
|
91
|
+
onKeyDown,
|
|
92
|
+
children
|
|
93
|
+
}
|
|
94
|
+
) });
|
|
95
|
+
}
|
|
96
|
+
function SheetHeader({ className, children, ...props }) {
|
|
97
|
+
const context = useContext(SheetContext);
|
|
98
|
+
return /* @__PURE__ */ jsxs(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
"data-slot": "sheet-header",
|
|
102
|
+
...props,
|
|
103
|
+
className: styles.SheetHeader(dist_default.merge({ className })),
|
|
104
|
+
children: [
|
|
105
|
+
context?.onClose && /* @__PURE__ */ jsx(
|
|
106
|
+
Button,
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "sheet-back",
|
|
109
|
+
variant: "ghost",
|
|
110
|
+
size: "icon-sm",
|
|
111
|
+
icon: IcRoundArrowBack,
|
|
112
|
+
"aria-label": context.backLabel,
|
|
113
|
+
className: styles.SheetHeader.back(),
|
|
114
|
+
onClick: context.onClose
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
children
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function SheetTitle({ className, ...props }) {
|
|
123
|
+
const context = useContext(SheetContext);
|
|
124
|
+
return /* @__PURE__ */ jsx(
|
|
125
|
+
"h2",
|
|
126
|
+
{
|
|
127
|
+
"data-slot": "sheet-title",
|
|
128
|
+
id: context?.titleId,
|
|
129
|
+
...props,
|
|
130
|
+
className: styles.SheetTitle(dist_default.merge({ className }))
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
function SheetBody({ className, ...props }) {
|
|
135
|
+
return /* @__PURE__ */ jsx(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
"data-slot": "sheet-body",
|
|
139
|
+
...props,
|
|
140
|
+
className: styles.SheetBody(dist_default.merge({ className }))
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
function SheetSection({
|
|
145
|
+
title,
|
|
146
|
+
className,
|
|
147
|
+
children,
|
|
148
|
+
...props
|
|
149
|
+
}) {
|
|
150
|
+
return /* @__PURE__ */ jsxs(
|
|
151
|
+
"section",
|
|
152
|
+
{
|
|
153
|
+
"data-slot": "sheet-section",
|
|
154
|
+
...props,
|
|
155
|
+
className: styles.SheetSection(dist_default.merge({ className })),
|
|
156
|
+
children: [
|
|
157
|
+
title && /* @__PURE__ */ jsx(
|
|
158
|
+
"h3",
|
|
159
|
+
{
|
|
160
|
+
"data-slot": "sheet-section-title",
|
|
161
|
+
className: styles.SheetSection.title(),
|
|
162
|
+
children: title
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
children
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
function SheetFooter({ className, ...props }) {
|
|
171
|
+
return /* @__PURE__ */ jsx(
|
|
172
|
+
"div",
|
|
173
|
+
{
|
|
174
|
+
"data-slot": "sheet-footer",
|
|
175
|
+
...props,
|
|
176
|
+
className: styles.SheetFooter(dist_default.merge({ className }))
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
function SheetClose({ onClick, ...props }) {
|
|
181
|
+
const context = useContext(SheetContext);
|
|
182
|
+
return /* @__PURE__ */ jsx(
|
|
183
|
+
Button,
|
|
184
|
+
{
|
|
185
|
+
"data-slot": "sheet-close",
|
|
186
|
+
...props,
|
|
187
|
+
variant: "ghost",
|
|
188
|
+
size: "icon-sm",
|
|
189
|
+
icon: IcRoundClose,
|
|
190
|
+
onClick: onClick ?? (() => context?.onClose?.())
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
export {
|
|
195
|
+
SheetBody,
|
|
196
|
+
SheetClose,
|
|
197
|
+
SheetContent,
|
|
198
|
+
SheetFooter,
|
|
199
|
+
SheetHeader,
|
|
200
|
+
SheetSection,
|
|
201
|
+
SheetTitle
|
|
202
|
+
};
|
|
@@ -9,13 +9,13 @@ import { createContext, useContext, useId } from "react";
|
|
|
9
9
|
// src/components/Sidebar.module.css
|
|
10
10
|
var Sidebar_default = {
|
|
11
11
|
"SidebarContent": "alinea-SidebarContent",
|
|
12
|
-
"SidebarGroupAction": "alinea-SidebarGroupAction",
|
|
13
12
|
"SidebarFooter": "alinea-SidebarFooter",
|
|
14
|
-
"SidebarHeader": "alinea-SidebarHeader",
|
|
15
13
|
"SidebarInset": "alinea-SidebarInset",
|
|
16
|
-
"
|
|
14
|
+
"SidebarHeader": "alinea-SidebarHeader",
|
|
15
|
+
"SidebarGroupAction": "alinea-SidebarGroupAction",
|
|
16
|
+
"SidebarGroup": "alinea-SidebarGroup",
|
|
17
17
|
"SidebarGroupLabel": "alinea-SidebarGroupLabel",
|
|
18
|
-
"
|
|
18
|
+
"Sidebar": "alinea-Sidebar"
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// src/components/Sidebar.tsx
|
|
@@ -1,46 +1,56 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { type ButtonProps } from './Button.js';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export interface SortableListProps extends SurfaceProps {
|
|
3
|
+
import type { DragMoveEvent, Key } from './types.js';
|
|
4
|
+
export interface SortableListProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
5
|
/**
|
|
7
|
-
* Enables reordering: items with an `id`
|
|
8
|
-
* `
|
|
9
|
-
*
|
|
10
|
-
* item and the item it was
|
|
11
|
-
*
|
|
6
|
+
* Enables reordering: items with an `id` follow the pointer when their
|
|
7
|
+
* `SortableListItemHeader` is dragged, the other items move aside as it
|
|
8
|
+
* passes them. With focus in the header, Alt+ArrowUp and Alt+ArrowDown
|
|
9
|
+
* move an item. Called with the key of the moved item and the item it was
|
|
10
|
+
* dropped before or after. Update the order synchronously: the dropped item
|
|
11
|
+
* glides into the place it renders in right after this returns.
|
|
12
12
|
*/
|
|
13
13
|
onReorder?: (event: DragMoveEvent) => void;
|
|
14
|
-
/** Mime type the dragged items carry, defaults to `alinea/sortable-list-item` */
|
|
15
|
-
dragType?: string;
|
|
16
14
|
}
|
|
17
|
-
export declare function SortableList({ className, role, onReorder,
|
|
15
|
+
export declare function SortableList({ className, role, onReorder, ...props }: SortableListProps): import("react").JSX.Element;
|
|
18
16
|
export interface SortableListItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'id'> {
|
|
19
17
|
/**
|
|
20
18
|
* Identifies the item within its list. Items with an id can be dragged when
|
|
21
19
|
* the list has `onReorder`. The id is not rendered as a DOM id.
|
|
22
20
|
*/
|
|
23
21
|
id?: Key;
|
|
24
|
-
/**
|
|
25
|
-
|
|
22
|
+
/** Highlights the item, eg. while its settings are open next to the list */
|
|
23
|
+
current?: boolean;
|
|
26
24
|
}
|
|
27
|
-
export declare function SortableListItem({ id,
|
|
25
|
+
export declare function SortableListItem({ id, className, current, ...props }: SortableListItemProps): import("react").JSX.Element;
|
|
28
26
|
export interface SortableListItemHeaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
29
27
|
}
|
|
30
|
-
/** Top bar of an item, holds its handle, title and actions */
|
|
31
|
-
export declare function SortableListItemHeader({ className, ...props }: SortableListItemHeaderProps): import("react").JSX.Element;
|
|
32
|
-
export interface SortableListHandleProps extends ComponentPropsWithoutRef<'span'> {
|
|
33
|
-
}
|
|
34
28
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* `SortableListItemHeader`, it shows while the header is hovered or focused.
|
|
29
|
+
* Top bar of an item, holds its title and actions. Drags the item when the
|
|
30
|
+
* list has `onReorder`, a press that does not move still clicks.
|
|
38
31
|
*/
|
|
39
|
-
export declare function
|
|
32
|
+
export declare function SortableListItemHeader({ className, onPointerDownCapture, onKeyDown, onDragStart, ...props }: SortableListItemHeaderProps): import("react").JSX.Element;
|
|
40
33
|
export interface SortableListItemTitleProps extends ComponentPropsWithoutRef<'div'> {
|
|
41
34
|
}
|
|
42
35
|
/** Row of the toggle, badges and description of an item, fills the header */
|
|
43
36
|
export declare function SortableListItemTitle({ className, ...props }: SortableListItemTitleProps): import("react").JSX.Element;
|
|
37
|
+
export interface SortableListItemTriggerProps extends Omit<ButtonProps, 'variant' | 'size' | 'icon' | 'asChild'> {
|
|
38
|
+
/** Ends the button with a "…", defaults to true */
|
|
39
|
+
more?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The badges and description of an item as one button that ends in a "…",
|
|
43
|
+
* eg. to open the settings of the item. Fills the title up to the actions.
|
|
44
|
+
*/
|
|
45
|
+
export declare function SortableListItemTrigger({ className, more, children, ...props }: SortableListItemTriggerProps): import("react").JSX.Element;
|
|
46
|
+
export interface SortableListItemInsertProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Inserts an item before the one it is placed in: a line with an add button
|
|
50
|
+
* that shows when the pointer is on the border above the item. Place it first
|
|
51
|
+
* in the `SortableListItem`.
|
|
52
|
+
*/
|
|
53
|
+
export declare function SortableListItemInsert({ className, ...props }: SortableListItemInsertProps): import("react").JSX.Element;
|
|
44
54
|
export interface SortableListItemDescriptionProps extends ComponentPropsWithoutRef<'span'> {
|
|
45
55
|
}
|
|
46
56
|
/** Muted, truncated text next to the badges of an item, eg. its label */
|
|
@@ -49,7 +59,7 @@ export interface SortableListItemActionsProps extends ComponentPropsWithoutRef<'
|
|
|
49
59
|
}
|
|
50
60
|
export declare function SortableListItemActions({ className, ...props }: SortableListItemActionsProps): import("react").JSX.Element;
|
|
51
61
|
export interface SortableListItemToggleProps extends Omit<ButtonProps, 'variant' | 'children' | 'size'> {
|
|
52
|
-
/** Whether the item content is shown,
|
|
62
|
+
/** Whether the item content is shown, picks the unfold icon */
|
|
53
63
|
expanded: boolean;
|
|
54
64
|
}
|
|
55
65
|
/** Folds the content of an item */
|
|
@@ -68,12 +78,6 @@ export interface SortableListItemSettingsProps extends ComponentPropsWithoutRef<
|
|
|
68
78
|
}
|
|
69
79
|
/** A group of settings or actions in the popover of an item */
|
|
70
80
|
export declare function SortableListItemSettings({ variant, className, ...props }: SortableListItemSettingsProps): import("react").JSX.Element;
|
|
71
|
-
export interface SortableListDragPreviewProps extends ComponentPropsWithoutRef<'div'> {
|
|
72
|
-
icon?: IconType;
|
|
73
|
-
label: ReactNode;
|
|
74
|
-
}
|
|
75
|
-
/** Card shown under the pointer while dragging an item */
|
|
76
|
-
export declare function SortableListDragPreview({ className, icon, label, ...props }: SortableListDragPreviewProps): import("react").JSX.Element;
|
|
77
81
|
export interface SortableListAddProps extends ComponentPropsWithoutRef<'div'> {
|
|
78
82
|
}
|
|
79
83
|
/** Last row of the list holding the buttons that add items */
|