alinea 2.0.0-preview.13 → 2.0.0-preview.14
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 +6 -2
- package/dist/adapter/next/context.js +1 -4
- package/dist/adapter/next/handler.js +12 -1
- package/dist/backend/CommitEntries.d.ts +17 -0
- package/dist/backend/CommitEntries.js +39 -0
- package/dist/backend/Handler.d.ts +9 -0
- package/dist/backend/Handler.js +80 -20
- package/dist/backend/api/BasicAuth.js +5 -1
- package/dist/backend/api/CreateBackend.js +2 -2
- package/dist/backend/api/DatabaseApi.js +18 -5
- package/dist/backend/api/GithubApi.d.ts +13 -0
- package/dist/backend/api/GithubApi.js +170 -30
- package/dist/backend/api/database.js +2 -2
- package/dist/backend/util/Syncable.d.ts +6 -0
- package/dist/backend/util/Syncable.js +3 -1
- package/dist/bundled.d.ts +911 -151
- package/dist/chunks/{chunk-5H4D5JQL.js → chunk-2PP7WJUJ.js} +1 -11
- package/dist/chunks/{chunk-QHHMKJUO.js → chunk-7DDPSWRY.js} +465 -2
- package/dist/chunks/{chunk-HOETF6HN.js → chunk-PMGIIYDD.js} +1 -0
- package/dist/chunks/{chunk-3QFSGTGF.js → chunk-SCV3TEXM.js} +1 -1
- package/dist/chunks/{chunk-UPY2RUZF.js → chunk-TWBREZWC.js} +30 -0
- package/dist/cli/Generate.js +20 -7
- package/dist/cli/Mcp.js +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/build/BuildEmitter.d.ts +5 -1
- package/dist/cli/build/BuildEmitter.js +8 -3
- package/dist/cli/generate/CompileConfig.js +10 -6
- package/dist/cli/generate/DevDB.d.ts +4 -1
- package/dist/cli/generate/DevDB.js +15 -7
- package/dist/cli/generate/GenerateDashboard.js +1 -0
- package/dist/cli/generate/MediaLocations.d.ts +18 -0
- package/dist/cli/generate/MediaLocations.js +69 -0
- package/dist/cli/serve/CreateLocalServer.js +1 -0
- package/dist/cli/serve/mcp/DevMcp.js +1 -1
- package/dist/cloud/CloudRemote.js +21 -7
- package/dist/cms.d.ts +4 -2
- package/dist/components/Alert.js +2 -2
- package/dist/components/AppShell.js +2 -2
- package/dist/components/AsyncList.d.ts +52 -0
- package/dist/components/AsyncList.js +69 -0
- package/dist/components/Breadcrumbs.js +6 -6
- package/dist/components/Button.js +4 -4
- package/dist/components/Calendar.js +18 -18
- package/dist/components/Checkbox.js +10 -10
- package/dist/components/CheckboxGroup.js +2 -2
- package/dist/components/Collapsible.js +5 -5
- package/dist/components/ColorSwatch.js +2 -2
- package/dist/components/ColorSwatchPicker.js +4 -4
- package/dist/components/ComboBox.d.ts +27 -9
- package/dist/components/ComboBox.js +40 -9
- package/dist/components/Command.js +13 -13
- package/dist/components/ContentCard.js +28 -28
- package/dist/components/ContentGrid.js +11 -11
- package/dist/components/DataList.js +1 -1
- package/dist/components/DateField.d.ts +4 -0
- 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.d.ts +14 -3
- package/dist/components/Dialog.js +38 -11
- package/dist/components/DropZone.js +6 -6
- package/dist/components/DropdownMenu.js +8 -8
- package/dist/components/Empty.js +4 -4
- package/dist/components/Field.d.ts +1 -1
- package/dist/components/Field.js +18 -12
- package/dist/components/Form.d.ts +23 -0
- package/dist/components/Form.js +64 -0
- package/dist/components/Link.d.ts +8 -1
- package/dist/components/List.js +27 -27
- package/dist/components/MediaPreview.js +5 -5
- package/dist/components/MultipleSelect.d.ts +13 -8
- package/dist/components/MultipleSelect.js +25 -25
- package/dist/components/NavRail.js +7 -7
- package/dist/components/NumberField.d.ts +5 -1
- package/dist/components/NumberField.js +6 -4
- package/dist/components/Page.js +6 -6
- package/dist/components/Popover.js +2 -2
- package/dist/components/PreviewFrame.js +8 -8
- package/dist/components/RadioGroup.js +10 -10
- package/dist/components/Resizable.js +1 -1
- package/dist/components/SearchField.js +8 -8
- package/dist/components/Select.d.ts +13 -10
- package/dist/components/Select.js +18 -32
- package/dist/components/Sheet.js +6 -6
- package/dist/components/Sidebar.js +5 -5
- package/dist/components/SortableList.js +12 -12
- package/dist/components/Spinner.js +4 -4
- package/dist/components/Stack.d.ts +20 -0
- package/dist/components/Stack.js +45 -0
- package/dist/components/Surface.js +1 -1
- package/dist/components/Switch.js +5 -5
- package/dist/components/Table.d.ts +11 -1
- package/dist/components/Table.js +81 -53
- package/dist/components/Tabs.js +6 -6
- package/dist/components/TagGroup.js +10 -10
- package/dist/components/TextField.d.ts +7 -1
- package/dist/components/TextField.js +20 -11
- package/dist/components/TimeField.d.ts +6 -1
- package/dist/components/TimeField.js +51 -26
- package/dist/components/Timestamp.js +1 -1
- package/dist/components/ToggleGroup.js +2 -2
- package/dist/components/Toolbar.js +3 -3
- package/dist/components/Tooltip.js +5 -4
- package/dist/components/Tree.js +27 -27
- package/dist/components/internal/DateControl.js +11 -11
- package/dist/components/internal/FormScope.d.ts +2 -0
- package/dist/components/internal/FormScope.js +8 -0
- package/dist/components/internal/ListBoxGroup.d.ts +12 -0
- package/dist/components/internal/ListBoxGroup.js +46 -0
- package/dist/components/internal/ListBoxOption.d.ts +2 -2
- package/dist/components/internal/ListBoxOption.js +5 -5
- package/dist/components/internal/Locale.js +2 -2
- package/dist/components/internal/PopoverSurface.js +5 -4
- package/dist/components/internal/SelectionCheckbox.js +5 -5
- package/dist/components/internal/Slot.js +1 -1
- package/dist/components/internal/ToggleButton.js +4 -4
- package/dist/components/internal/Trigger.js +2 -2
- package/dist/components/internal/useDragDrop.js +2 -2
- package/dist/components/types.d.ts +4 -0
- package/dist/components.d.ts +3 -0
- package/dist/components.js +3 -0
- package/dist/core/Client.js +12 -1
- package/dist/core/Config.d.ts +6 -0
- package/dist/core/Config.js +12 -0
- package/dist/core/DashboardEntry.d.ts +19 -0
- package/dist/core/DashboardEntry.js +0 -0
- package/dist/core/Document.d.ts +2 -2
- package/dist/core/Document.js +10 -3
- package/dist/core/EntryFields.d.ts +8 -2
- package/dist/core/Field.d.ts +5 -0
- package/dist/core/Filter.d.ts +19 -2
- package/dist/core/Filter.js +5 -0
- package/dist/core/Graph.d.ts +10 -2
- package/dist/core/Overview.d.ts +74 -5
- package/dist/core/Overview.js +1 -0
- package/dist/core/Root.js +1 -1
- package/dist/core/Scope.d.ts +5 -0
- package/dist/core/Scope.js +22 -5
- package/dist/core/Type.d.ts +25 -6
- package/dist/core/Type.js +25 -7
- package/dist/core/db/LocalStore.d.ts +7 -0
- package/dist/core/field/CreateField.d.ts +1 -2
- package/dist/core/source/Source.d.ts +2 -0
- package/dist/core/source/Source.js +11 -0
- package/dist/core/util/Async.d.ts +2 -0
- package/dist/core/util/Async.js +12 -1
- package/dist/core/util/Checks.js +1 -1
- package/dist/core/util/Slugs.js +4 -3
- package/dist/dashboard/App.css +13 -11
- package/dist/dashboard/App.d.ts +1 -0
- package/dist/dashboard/App.js +22 -6
- package/dist/dashboard/Href.d.ts +37 -0
- package/dist/dashboard/Href.js +46 -0
- package/dist/dashboard/app/ActivityStatus.js +34 -12
- package/dist/dashboard/app/AuthView.js +2 -2
- package/dist/dashboard/app/BlockSettings.d.ts +9 -0
- package/dist/dashboard/app/BlockSettings.js +16 -0
- package/dist/dashboard/app/BlockSheet.js +3 -3
- package/dist/dashboard/app/BlockSheetStoryFrame.js +2 -2
- package/dist/dashboard/app/CompactField.js +15 -15
- package/dist/dashboard/app/CroppedImage.js +2 -2
- package/dist/dashboard/app/DashboardLayout.d.ts +1 -1
- package/dist/dashboard/app/DashboardLayout.js +12 -0
- package/dist/dashboard/app/EntryActions.d.ts +11 -0
- package/dist/dashboard/app/EntryActions.js +30 -0
- package/dist/dashboard/app/EntryFields.d.ts +15 -2
- package/dist/dashboard/app/EntryFields.js +26 -5
- package/dist/dashboard/app/EntryHeader.js +17 -7
- package/dist/dashboard/app/EntryReferences.js +2 -2
- package/dist/dashboard/app/EntrySidebar.js +25 -23
- package/dist/dashboard/app/EntrySidebarPreview.js +2 -2
- package/dist/dashboard/app/EntryValidationModal.js +3 -3
- package/dist/dashboard/app/Explorer.js +84 -45
- package/dist/dashboard/app/ExplorerBatchActions.js +4 -4
- package/dist/dashboard/app/ExplorerControls.js +5 -5
- package/dist/dashboard/app/ExplorerList.js +2 -2
- package/dist/dashboard/app/ExplorerModal.js +3 -3
- package/dist/dashboard/app/ExplorerOverviewHeader.d.ts +6 -0
- package/dist/dashboard/app/ExplorerOverviewHeader.js +28 -0
- package/dist/dashboard/app/ExplorerTable.js +7 -7
- package/dist/dashboard/app/ExplorerTabs.d.ts +12 -0
- package/dist/dashboard/app/ExplorerTabs.js +42 -0
- package/dist/dashboard/app/ImageEditor.js +31 -31
- package/dist/dashboard/app/LinkPicker.js +3 -3
- package/dist/dashboard/app/LocaleMenu.js +9 -9
- package/dist/dashboard/app/MediaPreviewCell.js +5 -5
- package/dist/dashboard/app/OverviewCell.js +12 -10
- package/dist/dashboard/app/RemoveDialog.js +5 -0
- package/dist/dashboard/app/SearchBar.js +4 -4
- package/dist/dashboard/app/SettingsTab.d.ts +6 -0
- package/dist/dashboard/app/SettingsTab.js +27 -0
- package/dist/dashboard/app/SidebarTree.js +19 -19
- package/dist/dashboard/app/WorkspaceMenu.js +6 -6
- package/dist/dashboard/app/WorkspaceRoots.js +102 -98
- package/dist/dashboard/app/editor/FileEditor.js +18 -18
- package/dist/dashboard/app/pages/EntryPage.js +42 -39
- package/dist/dashboard/app/pages/RootPage.js +3 -3
- package/dist/dashboard/app/pages/SplashPage.js +94 -79
- package/dist/dashboard/app/pages/UsersPage.js +9 -9
- package/dist/dashboard/app/ui/DashboardModal.js +14 -14
- package/dist/dashboard/atoms/activity.d.ts +1 -0
- package/dist/dashboard/atoms/activity.js +8 -5
- package/dist/dashboard/atoms/config.d.ts +2 -0
- package/dist/dashboard/atoms/dashboard.d.ts +11 -0
- package/dist/dashboard/atoms/dashboard.js +8 -0
- package/dist/dashboard/atoms/editor.d.ts +7 -1
- package/dist/dashboard/atoms/editor.js +14 -2
- package/dist/dashboard/atoms/explorer.d.ts +15 -0
- package/dist/dashboard/atoms/explorer.js +43 -14
- package/dist/dashboard/atoms/graph.d.ts +5 -0
- package/dist/dashboard/atoms/graph.js +26 -1
- package/dist/dashboard/atoms/nav.d.ts +16 -10
- package/dist/dashboard/atoms/nav.js +96 -36
- package/dist/dashboard/atoms/overview.d.ts +26 -4
- package/dist/dashboard/atoms/overview.js +41 -12
- package/dist/dashboard/atoms/root.js +7 -1
- package/dist/dashboard/boot/ActivityEvent.d.ts +1 -1
- package/dist/dashboard/boot/Boot.js +6 -0
- package/dist/dashboard/boot/DashboardWorker.d.ts +6 -0
- package/dist/dashboard/boot/DashboardWorker.js +89 -8
- package/dist/dashboard/boot/LoadWorker.js +3 -0
- package/dist/dashboard/boot/SyncEvent.d.ts +7 -0
- package/dist/dashboard/boot/SyncEvent.js +14 -0
- package/dist/dashboard/boot/WorkerDB.d.ts +1 -0
- package/dist/dashboard/boot/WorkerDB.js +3 -0
- package/dist/dashboard/cms/EntryTable.d.ts +4 -3
- package/dist/dashboard/cms/EntryTable.js +2 -2
- package/dist/dashboard/cms/ViewProps.d.ts +3 -2
- package/dist/dashboard/cms/hooks.d.ts +34 -18
- package/dist/dashboard/cms/hooks.js +43 -18
- package/dist/dashboard/contexts.d.ts +3 -2
- package/dist/dashboard/contexts.js +3 -2
- package/dist/dashboard/hook/UseEntryEditor.d.ts +1 -1
- package/dist/dashboard/hook/UseEntryEditor.js +7 -3
- package/dist/dashboard/icons.d.ts +1 -0
- package/dist/dashboard/icons.js +15 -0
- package/dist/database/BrowserEntryStore.js +35 -13
- package/dist/database/DatabaseTables.js +1 -1
- package/dist/database/EntryDatabase.d.ts +10 -1
- package/dist/database/EntryDatabase.js +31 -10
- package/dist/database/EntryStore.js +1 -11
- package/dist/database/entry/EntryTable.d.ts +5 -3
- package/dist/database/entry/EntryTable.js +25 -8
- package/dist/database/query/Condition.d.ts +4 -1
- package/dist/database/query/Condition.js +16 -5
- package/dist/database/query/EntryQuery.js +59 -7
- package/dist/database/query/Relation.d.ts +13 -1
- package/dist/database/query/Relation.js +19 -1
- package/dist/database/query/Search.d.ts +7 -1
- package/dist/database/query/Search.js +54 -9
- package/dist/database/sync/EntrySyncer.d.ts +2 -0
- package/dist/database/sync/EntrySyncer.js +4 -2
- package/dist/database/sync/Ingest.d.ts +2 -1
- package/dist/database/sync/Ingest.js +20 -6
- package/dist/field/code/CodeField.view.js +12 -12
- package/dist/field/link/EntryLink.d.ts +4 -5
- package/dist/field/link/FileLink.d.ts +2 -2
- package/dist/field/link/ImageLink.d.ts +2 -5
- package/dist/field/link/ImageLink.js +0 -1
- package/dist/field/link/LinkField.view.js +18 -15
- package/dist/field/list/ListField.view.js +50 -35
- package/dist/field/metadata/MetadataField.view.js +14 -14
- package/dist/field/richtext/RichTextBlock.js +39 -35
- package/dist/field/richtext/RichTextExtensions.js +23 -23
- package/dist/field/richtext/RichTextField.view.js +6 -6
- package/dist/field/richtext/RichTextInsertMenu.js +5 -5
- package/dist/field/richtext/RichTextToolbar.js +26 -1
- package/dist/field/richtext/Toolbar.d.ts +9 -1
- package/dist/field/richtext/Toolbar.js +12 -2
- package/dist/field/select/SelectField.view.js +1 -0
- package/dist/index.css +174 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/next.d.ts +2 -0
- package/dist/next.edge.d.ts +2 -0
- package/dist/picker/entry/EntryPicker.d.ts +3 -1
- package/dist/picker/entry/EntryPicker.js +15 -1
- package/dist/preview/react.js +3 -0
- package/dist/query.d.ts +26 -14
- package/dist/query.js +4 -0
- package/dist/types.d.ts +8 -5
- package/dist/ui/Stack.d.ts +4 -2
- package/docs/ai-setup.md +3 -3
- package/docs/cli.md +4 -2
- package/docs/components/combo-box.md +105 -16
- package/docs/components/date-field.md +1 -1
- package/docs/components/dialog.md +51 -0
- package/docs/components/form.md +67 -0
- package/docs/components/link.md +10 -0
- package/docs/components/multiple-select.md +9 -17
- package/docs/components/number-field.md +5 -1
- package/docs/components/select.md +9 -20
- package/docs/components/stack.md +42 -0
- package/docs/components/table.md +83 -0
- package/docs/components/text-field.md +9 -1
- package/docs/components/time-field.md +5 -1
- package/docs/components.md +39 -1
- package/docs/configuration.md +3 -1
- package/docs/custom-fields.md +135 -7
- package/docs/deploy/self-host.md +2 -0
- package/docs/deploy.md +7 -4
- package/docs/fields/image.md +0 -1
- package/docs/fields/list.md +19 -0
- package/docs/fields/object.md +5 -3
- package/docs/fields/rich-text.md +31 -0
- package/docs/index.md +8 -6
- package/docs/instant-publishing.md +23 -2
- package/docs/overviews.md +128 -4
- package/docs/query/filtering.md +2 -0
- package/docs/query/related.md +58 -9
- package/docs/query.md +52 -1
- package/docs/quickstart.md +5 -5
- package/docs/schema/document.md +2 -0
- package/docs/schema/type.md +3 -1
- package/docs/upgrading.md +100 -19
- package/llms-full.txt +1022 -125
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/chunks/{chunk-4ZA6KZHS.js → chunk-6FQ5IMNA.js} +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$db7105decd081705$export$4c260019440d418f
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
4
4
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
5
|
-
import "../chunks/chunk-
|
|
5
|
+
import "../chunks/chunk-PMGIIYDD.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
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"PreviewFrame": "alinea-PreviewFrame",
|
|
25
|
+
"PreviewToolbar-navigation": "alinea-PreviewToolbar-navigation",
|
|
26
|
+
"PreviewToolbarNavigation": "alinea-PreviewToolbar-navigation",
|
|
26
27
|
"PreviewFrame-iframe": "alinea-PreviewFrame-iframe",
|
|
27
28
|
"PreviewFrameIframe": "alinea-PreviewFrame-iframe",
|
|
29
|
+
"PreviewToolbar": "alinea-PreviewToolbar",
|
|
28
30
|
"PreviewFrame-loading": "alinea-PreviewFrame-loading",
|
|
29
31
|
"PreviewFrameLoading": "alinea-PreviewFrame-loading",
|
|
30
32
|
"PreviewFrame-unavailable": "alinea-PreviewFrame-unavailable",
|
|
31
33
|
"PreviewFrameUnavailable": "alinea-PreviewFrame-unavailable",
|
|
32
|
-
"PreviewToolbar": "alinea-PreviewToolbar",
|
|
33
|
-
"
|
|
34
|
-
"PreviewToolbarNavigation": "alinea-PreviewToolbar-navigation",
|
|
35
|
-
"PreviewFrame": "alinea-PreviewFrame"
|
|
34
|
+
"PreviewToolbar-open": "alinea-PreviewToolbar-open",
|
|
35
|
+
"PreviewToolbarOpen": "alinea-PreviewToolbar-open"
|
|
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-7DDPSWRY.js";
|
|
6
6
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
7
|
+
import "../chunks/chunk-PMGIIYDD.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-content": "alinea-RadioGroupItem-content",
|
|
24
|
-
"RadioGroupItemContent": "alinea-RadioGroupItem-content",
|
|
21
|
+
"RadioGroupItem-indicator": "alinea-RadioGroupItem-indicator",
|
|
22
|
+
"RadioGroupItemIndicator": "alinea-RadioGroupItem-indicator",
|
|
25
23
|
"is-focusVisible": "alinea-is-focusVisible",
|
|
26
24
|
"isFocusVisible": "alinea-is-focusVisible",
|
|
25
|
+
"RadioGroup-items": "alinea-RadioGroup-items",
|
|
26
|
+
"RadioGroupItems": "alinea-RadioGroup-items",
|
|
27
|
+
"RadioGroupItem": "alinea-RadioGroupItem",
|
|
28
|
+
"RadioGroup": "alinea-RadioGroup",
|
|
27
29
|
"RadioGroupItem-label": "alinea-RadioGroupItem-label",
|
|
28
30
|
"RadioGroupItemLabel": "alinea-RadioGroupItem-label",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"RadioGroupItem-indicator": "alinea-RadioGroupItem-indicator",
|
|
32
|
-
"RadioGroupItemIndicator": "alinea-RadioGroupItem-indicator"
|
|
31
|
+
"RadioGroupItem-content": "alinea-RadioGroupItem-content",
|
|
32
|
+
"RadioGroupItemContent": "alinea-RadioGroupItem-content"
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// src/components/RadioGroup.tsx
|
|
@@ -1082,9 +1082,9 @@ import {
|
|
|
1082
1082
|
|
|
1083
1083
|
// src/components/Resizable.module.css
|
|
1084
1084
|
var Resizable_default = {
|
|
1085
|
+
"ResizablePanel": "alinea-ResizablePanel",
|
|
1085
1086
|
"ResizablePanelGroup-view": "alinea-ResizablePanelGroup-view",
|
|
1086
1087
|
"ResizablePanelGroupView": "alinea-ResizablePanelGroup-view",
|
|
1087
|
-
"ResizablePanel": "alinea-ResizablePanel",
|
|
1088
1088
|
"ResizablePanelGroup": "alinea-ResizablePanelGroup",
|
|
1089
1089
|
"ResizablePanelGroup-handle": "alinea-ResizablePanelGroup-handle",
|
|
1090
1090
|
"ResizablePanelGroupHandle": "alinea-ResizablePanelGroup-handle"
|
|
@@ -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-7DDPSWRY.js";
|
|
6
6
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
7
|
+
import "../chunks/chunk-PMGIIYDD.js";
|
|
8
8
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
9
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
10
10
|
import {
|
|
@@ -19,14 +19,14 @@ import { Icon } from "./Icon.js";
|
|
|
19
19
|
|
|
20
20
|
// src/components/SearchField.module.css
|
|
21
21
|
var SearchField_default = {
|
|
22
|
-
"SearchFieldClear-icon": "alinea-SearchFieldClear-icon",
|
|
23
|
-
"SearchFieldClearIcon": "alinea-SearchFieldClear-icon",
|
|
24
22
|
"SearchFieldGroup": "alinea-SearchFieldGroup",
|
|
25
|
-
"SearchFieldClear": "alinea-SearchFieldClear",
|
|
26
23
|
"SearchFieldIcon": "alinea-SearchFieldIcon",
|
|
27
|
-
"SearchFieldSpinner": "alinea-SearchFieldSpinner",
|
|
28
24
|
"SearchFieldInput": "alinea-SearchFieldInput",
|
|
29
|
-
"SearchField": "alinea-SearchField"
|
|
25
|
+
"SearchField": "alinea-SearchField",
|
|
26
|
+
"SearchFieldClear": "alinea-SearchFieldClear",
|
|
27
|
+
"SearchFieldClear-icon": "alinea-SearchFieldClear-icon",
|
|
28
|
+
"SearchFieldClearIcon": "alinea-SearchFieldClear-icon",
|
|
29
|
+
"SearchFieldSpinner": "alinea-SearchFieldSpinner"
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
// src/components/SearchField.tsx
|
|
@@ -68,7 +68,7 @@ function SearchField({
|
|
|
68
68
|
isRequired: required,
|
|
69
69
|
isDisabled: disabled,
|
|
70
70
|
isReadOnly: readOnly,
|
|
71
|
-
isInvalid:
|
|
71
|
+
isInvalid: error ? true : void 0,
|
|
72
72
|
className: styles.SearchField(dist_default.merge({ className })),
|
|
73
73
|
children: /* @__PURE__ */ jsx(
|
|
74
74
|
Field,
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
-
import type { AriaProps, DataProps, FieldSharedProps, IconType, OpenStateProps, StyleProps } from './types.js';
|
|
3
|
-
export interface SelectProps extends FieldSharedProps, OpenStateProps, StyleProps, AriaProps, DataProps {
|
|
4
|
-
value
|
|
5
|
-
|
|
2
|
+
import type { AriaProps, DataProps, FieldSharedProps, IconType, Key, OpenStateProps, StyleProps } from './types.js';
|
|
3
|
+
export interface SelectProps<V extends Key = Key> extends FieldSharedProps, OpenStateProps, StyleProps, AriaProps, DataProps {
|
|
4
|
+
/** The value of the selected SelectItem */
|
|
5
|
+
value?: V | null;
|
|
6
|
+
defaultValue?: V | null;
|
|
6
7
|
/** Called with the selected value, or null when the value is cleared */
|
|
7
|
-
onValueChange?: (value:
|
|
8
|
+
onValueChange?: (value: V | null) => void;
|
|
8
9
|
placeholder?: string;
|
|
10
|
+
/** Show a button that clears the value */
|
|
11
|
+
clearable?: boolean;
|
|
9
12
|
/** Name of the hidden form input carrying the value */
|
|
10
13
|
name?: string;
|
|
11
14
|
autoFocus?: boolean;
|
|
@@ -15,12 +18,12 @@ export interface SelectProps extends FieldSharedProps, OpenStateProps, StyleProp
|
|
|
15
18
|
children: ReactNode;
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
|
-
* A labelled field to pick a single value from a list.
|
|
19
|
-
*
|
|
21
|
+
* A labelled field to pick a single value from a list. Set `clearable` to
|
|
22
|
+
* let the value be cleared again.
|
|
20
23
|
*/
|
|
21
|
-
export declare function Select({ label, description, error, required, disabled, readOnly, icon, shared, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, placeholder, size, className, style, children, ...props }: SelectProps): import("react").JSX.Element;
|
|
24
|
+
export declare function Select<V extends Key = Key>({ label, description, error, required, disabled, readOnly, icon, shared, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, placeholder, clearable, size, className, style, children, ...props }: SelectProps<V>): import("react").JSX.Element;
|
|
22
25
|
export interface SelectItemProps extends StyleProps {
|
|
23
|
-
value:
|
|
26
|
+
value: Key;
|
|
24
27
|
disabled?: boolean;
|
|
25
28
|
icon?: IconType | ReactElement;
|
|
26
29
|
/** Text used for typeahead and the value, defaults to string children */
|
|
@@ -34,5 +37,5 @@ export interface SelectGroupProps extends AriaProps {
|
|
|
34
37
|
label?: ReactNode;
|
|
35
38
|
children: ReactNode;
|
|
36
39
|
}
|
|
37
|
-
export declare function SelectGroup(
|
|
40
|
+
export declare function SelectGroup(props: SelectGroupProps): import("react").JSX.Element;
|
|
38
41
|
export declare function SelectSeparator(): import("react").JSX.Element;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
$53e61d82d8b8611d$export$8b251419efc915eb,
|
|
3
2
|
$7705c033048f6da7$export$353f5b6fc5456de1,
|
|
4
3
|
$928221da08ecbc62$export$41f133550aa26f48,
|
|
5
|
-
$928221da08ecbc62$export$dca12b0bb56e4fc,
|
|
6
4
|
$c8bb816105474884$export$e288731fd71264f0,
|
|
7
5
|
$c8bb816105474884$export$ef445b55be0601bd,
|
|
8
6
|
$c8bb816105474884$export$ef9b1a59e592288f,
|
|
9
7
|
$e28ab3efe3e87743$export$1ff3c3f08ae963c0
|
|
10
|
-
} from "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
11
9
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-PMGIIYDD.js";
|
|
13
11
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
14
12
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
15
13
|
import {
|
|
@@ -26,29 +24,27 @@ import {
|
|
|
26
24
|
import { IcRoundClose, IcRoundKeyboardArrowDown } from "alinea/dashboard/icons";
|
|
27
25
|
import { Field } from "./Field.js";
|
|
28
26
|
import { Icon } from "./Icon.js";
|
|
27
|
+
import { ListBoxGroup } from "./internal/ListBoxGroup.js";
|
|
29
28
|
import { ListBoxOption } from "./internal/ListBoxOption.js";
|
|
30
29
|
import { PopoverSurface } from "./internal/PopoverSurface.js";
|
|
31
30
|
|
|
32
31
|
// src/components/Select.module.css
|
|
33
32
|
var Select_default = {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
33
|
+
"SelectTrigger-button": "alinea-SelectTrigger-button",
|
|
34
|
+
"SelectTriggerButton": "alinea-SelectTrigger-button",
|
|
35
|
+
"Select": "alinea-Select",
|
|
36
|
+
"SelectTrigger": "alinea-SelectTrigger",
|
|
36
37
|
"SelectTrigger-clear": "alinea-SelectTrigger-clear",
|
|
37
38
|
"SelectTriggerClear": "alinea-SelectTrigger-clear",
|
|
38
|
-
"SelectTrigger": "alinea-SelectTrigger",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"SelectTrigger-placeholder": "alinea-SelectTrigger-placeholder",
|
|
40
|
+
"SelectTriggerPlaceholder": "alinea-SelectTrigger-placeholder",
|
|
41
|
+
"SelectSeparator": "alinea-SelectSeparator",
|
|
41
42
|
"SelectContent-list": "alinea-SelectContent-list",
|
|
42
43
|
"SelectContentList": "alinea-SelectContent-list",
|
|
43
|
-
"SelectTrigger-
|
|
44
|
-
"
|
|
45
|
-
"Select": "alinea-Select",
|
|
44
|
+
"SelectTrigger-value": "alinea-SelectTrigger-value",
|
|
45
|
+
"SelectTriggerValue": "alinea-SelectTrigger-value",
|
|
46
46
|
"SelectTrigger-arrow": "alinea-SelectTrigger-arrow",
|
|
47
|
-
"SelectTriggerArrow": "alinea-SelectTrigger-arrow"
|
|
48
|
-
"SelectGroup-label": "alinea-SelectGroup-label",
|
|
49
|
-
"SelectGroupLabel": "alinea-SelectGroup-label",
|
|
50
|
-
"SelectTrigger-placeholder": "alinea-SelectTrigger-placeholder",
|
|
51
|
-
"SelectTriggerPlaceholder": "alinea-SelectTrigger-placeholder"
|
|
47
|
+
"SelectTriggerArrow": "alinea-SelectTrigger-arrow"
|
|
52
48
|
};
|
|
53
49
|
|
|
54
50
|
// src/components/Select.tsx
|
|
@@ -70,6 +66,7 @@ function Select({
|
|
|
70
66
|
defaultOpen,
|
|
71
67
|
onOpenChange,
|
|
72
68
|
placeholder,
|
|
69
|
+
clearable,
|
|
73
70
|
size = "default",
|
|
74
71
|
className,
|
|
75
72
|
style,
|
|
@@ -87,7 +84,7 @@ function Select({
|
|
|
87
84
|
style,
|
|
88
85
|
selectedKey: value,
|
|
89
86
|
defaultSelectedKey: defaultValue,
|
|
90
|
-
onSelectionChange: (key) => onValueChange?.(key
|
|
87
|
+
onSelectionChange: (key) => onValueChange?.(key),
|
|
91
88
|
isOpen: !readOnly && (open ?? isOpen),
|
|
92
89
|
onOpenChange: (next) => {
|
|
93
90
|
if (readOnly) return;
|
|
@@ -115,7 +112,7 @@ function Select({
|
|
|
115
112
|
{
|
|
116
113
|
triggerRef,
|
|
117
114
|
size,
|
|
118
|
-
clearable:
|
|
115
|
+
clearable: Boolean(clearable) && !disabled && !readOnly,
|
|
119
116
|
invalid: Boolean(error),
|
|
120
117
|
readOnly
|
|
121
118
|
}
|
|
@@ -211,19 +208,8 @@ function preventSelectionKeys(event) {
|
|
|
211
208
|
function SelectItem(props) {
|
|
212
209
|
return /* @__PURE__ */ jsx(ListBoxOption, { slot: "select-item", ...props });
|
|
213
210
|
}
|
|
214
|
-
function SelectGroup(
|
|
215
|
-
return /* @__PURE__ */
|
|
216
|
-
$928221da08ecbc62$export$dca12b0bb56e4fc,
|
|
217
|
-
{
|
|
218
|
-
"data-slot": "select-group",
|
|
219
|
-
...props,
|
|
220
|
-
className: styles.SelectGroup(),
|
|
221
|
-
children: [
|
|
222
|
-
label && /* @__PURE__ */ jsx($53e61d82d8b8611d$export$8b251419efc915eb, { "data-slot": "select-label", className: styles.SelectGroup.label(), children: label }),
|
|
223
|
-
children
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
);
|
|
211
|
+
function SelectGroup(props) {
|
|
212
|
+
return /* @__PURE__ */ jsx(ListBoxGroup, { slot: "select-group", labelSlot: "select-label", ...props });
|
|
227
213
|
}
|
|
228
214
|
function SelectSeparator() {
|
|
229
215
|
return /* @__PURE__ */ jsx(
|
package/dist/components/Sheet.js
CHANGED
|
@@ -17,16 +17,16 @@ import { Button } from "./Button.js";
|
|
|
17
17
|
|
|
18
18
|
// src/components/Sheet.module.css
|
|
19
19
|
var Sheet_default = {
|
|
20
|
-
"
|
|
20
|
+
"SheetHeader-back": "alinea-SheetHeader-back",
|
|
21
|
+
"SheetHeaderBack": "alinea-SheetHeader-back",
|
|
21
22
|
"SheetTitle": "alinea-SheetTitle",
|
|
23
|
+
"SheetBody": "alinea-SheetBody",
|
|
24
|
+
"SheetContent": "alinea-SheetContent",
|
|
22
25
|
"SheetSection-title": "alinea-SheetSection-title",
|
|
23
26
|
"SheetSectionTitle": "alinea-SheetSection-title",
|
|
24
|
-
"SheetFooter": "alinea-SheetFooter",
|
|
25
|
-
"SheetContent": "alinea-SheetContent",
|
|
26
|
-
"SheetHeader": "alinea-SheetHeader",
|
|
27
27
|
"SheetSection": "alinea-SheetSection",
|
|
28
|
-
"SheetHeader
|
|
29
|
-
"
|
|
28
|
+
"SheetHeader": "alinea-SheetHeader",
|
|
29
|
+
"SheetFooter": "alinea-SheetFooter"
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
// src/components/Sheet.tsx
|
|
@@ -8,14 +8,14 @@ import { createContext, useContext, useId } from "react";
|
|
|
8
8
|
|
|
9
9
|
// src/components/Sidebar.module.css
|
|
10
10
|
var Sidebar_default = {
|
|
11
|
-
"SidebarContent": "alinea-SidebarContent",
|
|
12
11
|
"SidebarFooter": "alinea-SidebarFooter",
|
|
13
|
-
"SidebarInset": "alinea-SidebarInset",
|
|
14
|
-
"SidebarHeader": "alinea-SidebarHeader",
|
|
15
|
-
"SidebarGroupAction": "alinea-SidebarGroupAction",
|
|
16
12
|
"SidebarGroup": "alinea-SidebarGroup",
|
|
13
|
+
"SidebarContent": "alinea-SidebarContent",
|
|
17
14
|
"SidebarGroupLabel": "alinea-SidebarGroupLabel",
|
|
18
|
-
"
|
|
15
|
+
"SidebarInset": "alinea-SidebarInset",
|
|
16
|
+
"Sidebar": "alinea-Sidebar",
|
|
17
|
+
"SidebarHeader": "alinea-SidebarHeader",
|
|
18
|
+
"SidebarGroupAction": "alinea-SidebarGroupAction"
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// src/components/Sidebar.tsx
|
|
@@ -23,25 +23,25 @@ import { pressSortableItem } from "./internal/sortableDrag.js";
|
|
|
23
23
|
|
|
24
24
|
// src/components/SortableList.module.css
|
|
25
25
|
var SortableList_default = {
|
|
26
|
+
"SortableListItemSettings": "alinea-SortableListItemSettings",
|
|
27
|
+
"SortableListItemFooter": "alinea-SortableListItemFooter",
|
|
28
|
+
"SortableListItemInsert": "alinea-SortableListItemInsert",
|
|
29
|
+
"SortableList": "alinea-SortableList",
|
|
26
30
|
"SortableListAdd-inner": "alinea-SortableListAdd-inner",
|
|
27
31
|
"SortableListAddInner": "alinea-SortableListAdd-inner",
|
|
32
|
+
"SortableListItemHeader": "alinea-SortableListItemHeader",
|
|
33
|
+
"SortableListItemTitle": "alinea-SortableListItemTitle",
|
|
34
|
+
"SortableListItemDescription": "alinea-SortableListItemDescription",
|
|
35
|
+
"SortableListItemToggle": "alinea-SortableListItemToggle",
|
|
28
36
|
"SortableListItemContent": "alinea-SortableListItemContent",
|
|
37
|
+
"SortableListItemActions": "alinea-SortableListItemActions",
|
|
38
|
+
"SortableListAdd": "alinea-SortableListAdd",
|
|
29
39
|
"SortableListItemTrigger": "alinea-SortableListItemTrigger",
|
|
30
40
|
"SortableListItemTrigger-more": "alinea-SortableListItemTrigger-more",
|
|
31
41
|
"SortableListItemTriggerMore": "alinea-SortableListItemTrigger-more",
|
|
32
|
-
"SortableListItemActions": "alinea-SortableListItemActions",
|
|
33
|
-
"SortableListItemHeader": "alinea-SortableListItemHeader",
|
|
34
|
-
"SortableListItemSettings": "alinea-SortableListItemSettings",
|
|
35
|
-
"SortableListItemToggle": "alinea-SortableListItemToggle",
|
|
36
|
-
"SortableListItemTitle": "alinea-SortableListItemTitle",
|
|
37
|
-
"SortableListItemInsert-button": "alinea-SortableListItemInsert-button",
|
|
38
|
-
"SortableListItemInsertButton": "alinea-SortableListItemInsert-button",
|
|
39
|
-
"SortableListItemFooter": "alinea-SortableListItemFooter",
|
|
40
|
-
"SortableListItemInsert": "alinea-SortableListItemInsert",
|
|
41
42
|
"SortableListItem": "alinea-SortableListItem",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"SortableList": "alinea-SortableList"
|
|
43
|
+
"SortableListItemInsert-button": "alinea-SortableListItemInsert-button",
|
|
44
|
+
"SortableListItemInsertButton": "alinea-SortableListItemInsert-button"
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
// src/components/SortableList.tsx
|
|
@@ -6,12 +6,12 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
6
6
|
// src/components/Spinner.module.css
|
|
7
7
|
var Spinner_default = {
|
|
8
8
|
"Spinner": "alinea-Spinner",
|
|
9
|
-
"Spinner-
|
|
10
|
-
"
|
|
9
|
+
"Spinner-spin": "alinea-Spinner-spin",
|
|
10
|
+
"SpinnerSpin": "alinea-Spinner-spin",
|
|
11
11
|
"Spinner-icon": "alinea-Spinner-icon",
|
|
12
12
|
"SpinnerIcon": "alinea-Spinner-icon",
|
|
13
|
-
"Spinner-
|
|
14
|
-
"
|
|
13
|
+
"Spinner-indicator": "alinea-Spinner-indicator",
|
|
14
|
+
"SpinnerIndicator": "alinea-Spinner-indicator"
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// src/components/Spinner.tsx
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { AriaProps, DataProps, StyleProps } from './types.js';
|
|
3
|
+
export interface StackProps extends StyleProps, AriaProps, DataProps {
|
|
4
|
+
/** Defaults to `column` */
|
|
5
|
+
direction?: 'row' | 'column';
|
|
6
|
+
/** Space between the items, a number is in pixels */
|
|
7
|
+
gap?: number | string;
|
|
8
|
+
/** Cross axis alignment of the items, they stretch by default */
|
|
9
|
+
align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
10
|
+
/** Main axis distribution of the items */
|
|
11
|
+
justify?: 'start' | 'center' | 'end' | 'between';
|
|
12
|
+
/** Wrap items onto multiple lines */
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
/** Lay out the single child element instead of rendering a div */
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
ref?: Ref<HTMLDivElement>;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/** Lays out its children in a row or column with a gap between them */
|
|
20
|
+
export declare function Stack({ direction, gap, align, justify, wrap, asChild, className, style, ...props }: StackProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dist_default
|
|
3
|
+
} from "../chunks/chunk-I4OYYAX5.js";
|
|
4
|
+
import "../chunks/chunk-CQ52GEHY.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Stack.tsx
|
|
7
|
+
import { Slot } from "./internal/Slot.js";
|
|
8
|
+
|
|
9
|
+
// src/components/Stack.module.css
|
|
10
|
+
var Stack_default = {
|
|
11
|
+
"Stack": "alinea-Stack"
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// src/components/Stack.tsx
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
var styles = dist_default(Stack_default);
|
|
17
|
+
function Stack({
|
|
18
|
+
direction = "column",
|
|
19
|
+
gap,
|
|
20
|
+
align,
|
|
21
|
+
justify,
|
|
22
|
+
wrap,
|
|
23
|
+
asChild,
|
|
24
|
+
className,
|
|
25
|
+
style,
|
|
26
|
+
...props
|
|
27
|
+
}) {
|
|
28
|
+
const Element = asChild ? Slot : "div";
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
Element,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "stack",
|
|
33
|
+
...props,
|
|
34
|
+
"data-direction": direction,
|
|
35
|
+
"data-align": align,
|
|
36
|
+
"data-justify": justify,
|
|
37
|
+
"data-wrap": wrap || void 0,
|
|
38
|
+
className: styles.Stack(dist_default.merge({ className })),
|
|
39
|
+
style: gap === void 0 ? style : { gap, ...style }
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
Stack
|
|
45
|
+
};
|
|
@@ -6,8 +6,8 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
6
6
|
// src/components/Surface.module.css
|
|
7
7
|
var Surface_default = {
|
|
8
8
|
"SurfaceContent": "alinea-SurfaceContent",
|
|
9
|
-
"SurfaceRow": "alinea-SurfaceRow",
|
|
10
9
|
"Surface": "alinea-Surface",
|
|
10
|
+
"SurfaceRow": "alinea-SurfaceRow",
|
|
11
11
|
"SurfaceHeader": "alinea-SurfaceHeader"
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$24585aa46d6ffdff$export$b5d5cf8927ab7262
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
4
4
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
5
|
-
import "../chunks/chunk-
|
|
5
|
+
import "../chunks/chunk-PMGIIYDD.js";
|
|
6
6
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
7
7
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
8
8
|
import {
|
|
@@ -14,13 +14,13 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
14
14
|
var Switch_default = {
|
|
15
15
|
"Switch-track": "alinea-Switch-track",
|
|
16
16
|
"SwitchTrack": "alinea-Switch-track",
|
|
17
|
-
"Switch": "alinea-Switch",
|
|
17
|
+
"Switch-thumb": "alinea-Switch-thumb",
|
|
18
|
+
"SwitchThumb": "alinea-Switch-thumb",
|
|
18
19
|
"Switch-label": "alinea-Switch-label",
|
|
19
20
|
"SwitchLabel": "alinea-Switch-label",
|
|
20
21
|
"is-focusVisible": "alinea-is-focusVisible",
|
|
21
22
|
"isFocusVisible": "alinea-is-focusVisible",
|
|
22
|
-
"Switch
|
|
23
|
-
"SwitchThumb": "alinea-Switch-thumb"
|
|
23
|
+
"Switch": "alinea-Switch"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
// src/components/Switch.tsx
|
|
@@ -42,6 +42,16 @@ export interface TableProps<T extends object> extends StyleProps, AriaProps, Dat
|
|
|
42
42
|
*/
|
|
43
43
|
onRowAction?: (key: Key) => void;
|
|
44
44
|
renderEmptyState?: () => ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Shows a spinner in place of the rows while there are none, below the
|
|
47
|
+
* rows otherwise
|
|
48
|
+
*/
|
|
49
|
+
loading?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Called when the rows are scrolled close to the end, to load the next
|
|
52
|
+
* page (see useAsyncList)
|
|
53
|
+
*/
|
|
54
|
+
onLoadMore?: () => void;
|
|
45
55
|
/**
|
|
46
56
|
* Rows are cached per item, list the values `children` reads besides the
|
|
47
57
|
* item to render them again when those change
|
|
@@ -49,7 +59,7 @@ export interface TableProps<T extends object> extends StyleProps, AriaProps, Dat
|
|
|
49
59
|
dependencies?: ReadonlyArray<unknown>;
|
|
50
60
|
children: (item: T) => ReactElement;
|
|
51
61
|
}
|
|
52
|
-
export declare function Table<T extends object>({ items, columns, showHeader, expandable, rowHeight, selectionMode, selectionBehavior, showSelectionControls, variant, selectedKeys, defaultSelectedKeys, onSelectionChange, disabledKeys, expandedKeys, defaultExpandedKeys, onExpandedChange, sortDescriptor, onSortChange, onRowAction, renderEmptyState, dependencies, getDragData, acceptedDragTypes, canDrop, onReorder, onMove, onDropItems, onDropFiles, renderDragPreview, className, style, children, ...props }: TableProps<T>): import("react").JSX.Element;
|
|
62
|
+
export declare function Table<T extends object>({ items, columns, showHeader, expandable, rowHeight, selectionMode, selectionBehavior, showSelectionControls, variant, selectedKeys, defaultSelectedKeys, onSelectionChange, disabledKeys, expandedKeys, defaultExpandedKeys, onExpandedChange, sortDescriptor, onSortChange, onRowAction, renderEmptyState, loading, onLoadMore, dependencies, getDragData, acceptedDragTypes, canDrop, onReorder, onMove, onDropItems, onDropFiles, renderDragPreview, className, style, children, ...props }: TableProps<T>): import("react").JSX.Element;
|
|
53
63
|
export interface TableRowProps extends DataProps {
|
|
54
64
|
id: Key;
|
|
55
65
|
/** Text used for typeahead and as the accessible row name */
|