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
package/dist/components/Table.js
CHANGED
|
@@ -2,12 +2,16 @@ import {
|
|
|
2
2
|
$143fb904d86051ce$export$89be5a243e59c4b2,
|
|
3
3
|
$7705c033048f6da7$export$353f5b6fc5456de1,
|
|
4
4
|
$89d060d8eb451127$export$4b687e3f663d618c,
|
|
5
|
+
$89d060d8eb451127$export$533df5f8efd48cc9,
|
|
5
6
|
$89d060d8eb451127$export$53d36ab85dc89436,
|
|
6
7
|
$89d060d8eb451127$export$7fbedc92909ed28e,
|
|
8
|
+
$89d060d8eb451127$export$8953bccafd7bce87,
|
|
7
9
|
$942f06a693c162e2$export$cacbb3924155d68e
|
|
8
|
-
} from "../chunks/chunk-
|
|
10
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
9
11
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
10
|
-
import
|
|
12
|
+
import {
|
|
13
|
+
$42ceafc619f9c3ba$export$fb8073518f34e6ec
|
|
14
|
+
} from "../chunks/chunk-PMGIIYDD.js";
|
|
11
15
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
12
16
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
13
17
|
import {
|
|
@@ -29,66 +33,70 @@ import {
|
|
|
29
33
|
|
|
30
34
|
// src/components/Table.module.css
|
|
31
35
|
var Table_default = {
|
|
32
|
-
"TableHeader-sortIcon": "alinea-TableHeader-sortIcon",
|
|
33
|
-
"TableHeaderSortIcon": "alinea-TableHeader-sortIcon",
|
|
34
|
-
"TableCell-label": "alinea-TableCell-label",
|
|
35
|
-
"TableCellLabel": "alinea-TableCell-label",
|
|
36
36
|
"TableTitle-suffix": "alinea-TableTitle-suffix",
|
|
37
37
|
"TableTitleSuffix": "alinea-TableTitle-suffix",
|
|
38
|
+
"TableThumbnail-image": "alinea-TableThumbnail-image",
|
|
39
|
+
"TableThumbnailImage": "alinea-TableThumbnail-image",
|
|
40
|
+
"TableTitle-drag": "alinea-TableTitle-drag",
|
|
41
|
+
"TableTitleDrag": "alinea-TableTitle-drag",
|
|
38
42
|
"Table": "alinea-Table",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"TableHeader-sort": "alinea-TableHeader-sort",
|
|
42
|
-
"TableHeaderSort": "alinea-TableHeader-sort",
|
|
43
|
-
"is-highlighted": "alinea-is-highlighted",
|
|
44
|
-
"isHighlighted": "alinea-is-highlighted",
|
|
45
|
-
"TableRow-selection": "alinea-TableRow-selection",
|
|
46
|
-
"TableRowSelection": "alinea-TableRow-selection",
|
|
47
|
-
"is-indented": "alinea-is-indented",
|
|
48
|
-
"isIndented": "alinea-is-indented",
|
|
49
|
-
"TableThumbnail": "alinea-TableThumbnail",
|
|
50
|
-
"TableRow": "alinea-TableRow",
|
|
43
|
+
"Table-dropIndicator": "alinea-Table-dropIndicator",
|
|
44
|
+
"TableDropIndicator": "alinea-Table-dropIndicator",
|
|
51
45
|
"is-static": "alinea-is-static",
|
|
52
46
|
"isStatic": "alinea-is-static",
|
|
47
|
+
"is-dropTarget": "alinea-is-dropTarget",
|
|
48
|
+
"isDropTarget": "alinea-is-dropTarget",
|
|
49
|
+
"is-indented": "alinea-is-indented",
|
|
50
|
+
"isIndented": "alinea-is-indented",
|
|
51
|
+
"is-sorted": "alinea-is-sorted",
|
|
52
|
+
"isSorted": "alinea-is-sorted",
|
|
53
|
+
"TableRow-selection": "alinea-TableRow-selection",
|
|
54
|
+
"TableRowSelection": "alinea-TableRow-selection",
|
|
55
|
+
"TableRow-chevron-button": "alinea-TableRow-chevron-button",
|
|
56
|
+
"TableRowChevronButton": "alinea-TableRow-chevron-button",
|
|
57
|
+
"is-highlighted": "alinea-is-highlighted",
|
|
58
|
+
"isHighlighted": "alinea-is-highlighted",
|
|
59
|
+
"TableTitle": "alinea-TableTitle",
|
|
53
60
|
"TableTitle-text": "alinea-TableTitle-text",
|
|
54
61
|
"TableTitleText": "alinea-TableTitle-text",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
62
|
+
"TableRow-chevron": "alinea-TableRow-chevron",
|
|
63
|
+
"TableRowChevron": "alinea-TableRow-chevron",
|
|
64
|
+
"TableCell-value": "alinea-TableCell-value",
|
|
65
|
+
"TableCellValue": "alinea-TableCell-value",
|
|
57
66
|
"TableHeader": "alinea-TableHeader",
|
|
67
|
+
"TableTitle-icon": "alinea-TableTitle-icon",
|
|
68
|
+
"TableTitleIcon": "alinea-TableTitle-icon",
|
|
58
69
|
"TableRow-grid": "alinea-TableRow-grid",
|
|
59
70
|
"TableRowGrid": "alinea-TableRow-grid",
|
|
71
|
+
"TableCell-label": "alinea-TableCell-label",
|
|
72
|
+
"TableCellLabel": "alinea-TableCell-label",
|
|
73
|
+
"TableHeader-head": "alinea-TableHeader-head",
|
|
74
|
+
"TableHeaderHead": "alinea-TableHeader-head",
|
|
60
75
|
"is-active": "alinea-is-active",
|
|
61
76
|
"isActive": "alinea-is-active",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"TableRowChevronButton": "alinea-TableRow-chevron-button",
|
|
77
|
+
"TableHeader-sort": "alinea-TableHeader-sort",
|
|
78
|
+
"TableHeaderSort": "alinea-TableHeader-sort",
|
|
79
|
+
"TableRow-first": "alinea-TableRow-first",
|
|
80
|
+
"TableRowFirst": "alinea-TableRow-first",
|
|
67
81
|
"TableCell": "alinea-TableCell",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
82
|
+
"Table-empty": "alinea-Table-empty",
|
|
83
|
+
"TableEmpty": "alinea-Table-empty",
|
|
70
84
|
"TableTitle-title": "alinea-TableTitle-title",
|
|
71
85
|
"TableTitleTitle": "alinea-TableTitle-title",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"is-dragging": "alinea-is-dragging",
|
|
75
|
-
"isDragging": "alinea-is-dragging",
|
|
86
|
+
"TableHeader-label": "alinea-TableHeader-label",
|
|
87
|
+
"TableHeaderLabel": "alinea-TableHeader-label",
|
|
76
88
|
"TableTitle-label": "alinea-TableTitle-label",
|
|
77
89
|
"TableTitleLabel": "alinea-TableTitle-label",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"TableRow-first": "alinea-TableRow-first",
|
|
89
|
-
"TableRowFirst": "alinea-TableRow-first",
|
|
90
|
-
"TableTitle-drag": "alinea-TableTitle-drag",
|
|
91
|
-
"TableTitleDrag": "alinea-TableTitle-drag"
|
|
90
|
+
"TableThumbnail": "alinea-TableThumbnail",
|
|
91
|
+
"TableHeader-sortIcon": "alinea-TableHeader-sortIcon",
|
|
92
|
+
"TableHeaderSortIcon": "alinea-TableHeader-sortIcon",
|
|
93
|
+
"Table-loader": "alinea-Table-loader",
|
|
94
|
+
"TableLoader": "alinea-Table-loader",
|
|
95
|
+
"Table-body": "alinea-Table-body",
|
|
96
|
+
"TableBody": "alinea-Table-body",
|
|
97
|
+
"TableRow": "alinea-TableRow",
|
|
98
|
+
"is-dragging": "alinea-is-dragging",
|
|
99
|
+
"isDragging": "alinea-is-dragging"
|
|
92
100
|
};
|
|
93
101
|
|
|
94
102
|
// src/components/Table.tsx
|
|
@@ -96,6 +104,7 @@ import { FoldIcon } from "./FoldIcon.js";
|
|
|
96
104
|
import { Icon } from "./Icon.js";
|
|
97
105
|
import { SelectionCheckbox } from "./internal/SelectionCheckbox.js";
|
|
98
106
|
import { useDragDrop } from "./internal/useDragDrop.js";
|
|
107
|
+
import { Spinner } from "./Spinner.js";
|
|
99
108
|
import { Surface } from "./Surface.js";
|
|
100
109
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
101
110
|
import { createElement } from "react";
|
|
@@ -153,6 +162,8 @@ function Table({
|
|
|
153
162
|
onSortChange,
|
|
154
163
|
onRowAction,
|
|
155
164
|
renderEmptyState,
|
|
165
|
+
loading,
|
|
166
|
+
onLoadMore,
|
|
156
167
|
dependencies = [],
|
|
157
168
|
getDragData,
|
|
158
169
|
acceptedDragTypes,
|
|
@@ -214,14 +225,17 @@ function Table({
|
|
|
214
225
|
$143fb904d86051ce$export$89be5a243e59c4b2,
|
|
215
226
|
{
|
|
216
227
|
layout: $942f06a693c162e2$export$cacbb3924155d68e,
|
|
217
|
-
layoutOptions: {
|
|
228
|
+
layoutOptions: {
|
|
229
|
+
rowHeight,
|
|
230
|
+
loaderHeight: rowHeight,
|
|
231
|
+
padding: 0,
|
|
232
|
+
gap: 0
|
|
233
|
+
},
|
|
218
234
|
children: /* @__PURE__ */ createElement(
|
|
219
235
|
$89d060d8eb451127$export$7fbedc92909ed28e,
|
|
220
236
|
{
|
|
221
237
|
...props,
|
|
222
238
|
key: dnd.key,
|
|
223
|
-
items,
|
|
224
|
-
dependencies: [context, ...dependencies],
|
|
225
239
|
selectionMode,
|
|
226
240
|
selectionBehavior,
|
|
227
241
|
selectedKeys,
|
|
@@ -234,12 +248,12 @@ function Table({
|
|
|
234
248
|
onExpandedChange,
|
|
235
249
|
onAction: onRowAction && noop,
|
|
236
250
|
dragAndDropHooks: dnd.dragAndDropHooks,
|
|
237
|
-
renderEmptyState: renderEmptyState ? () => /* @__PURE__ */ jsx(
|
|
251
|
+
renderEmptyState: loading || renderEmptyState ? () => /* @__PURE__ */ jsx(
|
|
238
252
|
"div",
|
|
239
253
|
{
|
|
240
|
-
"data-slot": "table-empty",
|
|
254
|
+
"data-slot": loading ? "table-loading" : "table-empty",
|
|
241
255
|
className: styles.Table.empty(),
|
|
242
|
-
children: renderEmptyState()
|
|
256
|
+
children: loading ? /* @__PURE__ */ jsx(Spinner, {}) : renderEmptyState?.()
|
|
243
257
|
}
|
|
244
258
|
) : void 0,
|
|
245
259
|
className: (values) => styles.Table.body({
|
|
@@ -247,7 +261,8 @@ function Table({
|
|
|
247
261
|
dropTarget: values.isDropTarget
|
|
248
262
|
})
|
|
249
263
|
},
|
|
250
|
-
children
|
|
264
|
+
/* @__PURE__ */ jsx($42ceafc619f9c3ba$export$fb8073518f34e6ec, { items, dependencies: [context, ...dependencies], children }),
|
|
265
|
+
(loading !== void 0 || onLoadMore) && /* @__PURE__ */ jsx($89d060d8eb451127$export$533df5f8efd48cc9, { isLoading: loading, onLoadMore, children: /* @__PURE__ */ jsx(TableLoader, {}) })
|
|
251
266
|
)
|
|
252
267
|
}
|
|
253
268
|
)
|
|
@@ -255,6 +270,11 @@ function Table({
|
|
|
255
270
|
}
|
|
256
271
|
) });
|
|
257
272
|
}
|
|
273
|
+
function TableLoader() {
|
|
274
|
+
const state = useContext($89d060d8eb451127$export$8953bccafd7bce87);
|
|
275
|
+
if (!state?.collection.size) return null;
|
|
276
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "table-loader", className: styles.Table.loader(), children: /* @__PURE__ */ jsx(Spinner, { size: "sm" }) });
|
|
277
|
+
}
|
|
258
278
|
var sortDescriptions = {
|
|
259
279
|
asc: "sorted ascending",
|
|
260
280
|
desc: "sorted descending"
|
|
@@ -266,7 +286,15 @@ function TableHeader({ sortDescriptor, onSortChange }) {
|
|
|
266
286
|
columns.map((column, index) => {
|
|
267
287
|
const sorted = sortDescriptor?.column === column.id ? sortDescriptor.direction : void 0;
|
|
268
288
|
const label = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
269
|
-
|
|
289
|
+
/* @__PURE__ */ jsx(
|
|
290
|
+
"span",
|
|
291
|
+
{
|
|
292
|
+
"data-slot": "table-head-label",
|
|
293
|
+
className: styles.TableHeader.label(),
|
|
294
|
+
title: typeof column.header === "string" ? column.header : void 0,
|
|
295
|
+
children: column.header
|
|
296
|
+
}
|
|
297
|
+
),
|
|
270
298
|
sorted && /* @__PURE__ */ jsx(
|
|
271
299
|
Icon,
|
|
272
300
|
{
|
package/dist/components/Tabs.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
$b4f18e3395fe64d7$export$3e41faf802a29e71,
|
|
4
4
|
$b4f18e3395fe64d7$export$b2539bed5023c21c,
|
|
5
5
|
$b4f18e3395fe64d7$export$e51a686c67fdaa2d
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
7
7
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-PMGIIYDD.js";
|
|
9
9
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
10
10
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
11
11
|
import {
|
|
@@ -15,12 +15,12 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
15
15
|
|
|
16
16
|
// src/components/Tabs.module.css
|
|
17
17
|
var Tabs_default = {
|
|
18
|
-
"
|
|
18
|
+
"Tabs": "alinea-Tabs",
|
|
19
|
+
"TabsContent": "alinea-TabsContent",
|
|
19
20
|
"TabsList-list": "alinea-TabsList-list",
|
|
20
21
|
"TabsListList": "alinea-TabsList-list",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"Tabs": "alinea-Tabs"
|
|
22
|
+
"TabsList": "alinea-TabsList",
|
|
23
|
+
"TabsTrigger": "alinea-TabsTrigger"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
// src/components/Tabs.tsx
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
$3df3ddf5bafbc7b1$export$67ea30858aaf75e3,
|
|
4
4
|
$3df3ddf5bafbc7b1$export$f9fef0f55402315b,
|
|
5
5
|
$7705c033048f6da7$export$353f5b6fc5456de1
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
7
7
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-PMGIIYDD.js";
|
|
9
9
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
10
10
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
11
11
|
import {
|
|
@@ -21,18 +21,18 @@ import { Icon } from "./Icon.js";
|
|
|
21
21
|
|
|
22
22
|
// src/components/TagGroup.module.css
|
|
23
23
|
var TagGroup_default = {
|
|
24
|
-
"is-selectable": "alinea-is-selectable",
|
|
25
|
-
"isSelectable": "alinea-is-selectable",
|
|
26
|
-
"TagGroup": "alinea-TagGroup",
|
|
27
|
-
"is-readOnly": "alinea-is-readOnly",
|
|
28
|
-
"isReadOnly": "alinea-is-readOnly",
|
|
29
24
|
"TagGroup-list": "alinea-TagGroup-list",
|
|
30
25
|
"TagGroupList": "alinea-TagGroup-list",
|
|
31
|
-
"
|
|
32
|
-
"isSelected": "alinea-is-selected",
|
|
26
|
+
"TagGroup": "alinea-TagGroup",
|
|
33
27
|
"Tag-remove": "alinea-Tag-remove",
|
|
34
28
|
"TagRemove": "alinea-Tag-remove",
|
|
35
|
-
"
|
|
29
|
+
"is-readOnly": "alinea-is-readOnly",
|
|
30
|
+
"isReadOnly": "alinea-is-readOnly",
|
|
31
|
+
"Tag": "alinea-Tag",
|
|
32
|
+
"is-selectable": "alinea-is-selectable",
|
|
33
|
+
"isSelectable": "alinea-is-selectable",
|
|
34
|
+
"is-selected": "alinea-is-selected",
|
|
35
|
+
"isSelected": "alinea-is-selected"
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// src/components/TagGroup.tsx
|
|
@@ -11,6 +11,8 @@ export interface TextFieldProps extends FieldSharedProps, StyleProps, AriaProps,
|
|
|
11
11
|
multiline?: boolean;
|
|
12
12
|
/** Minimum number of rows of a multiline field */
|
|
13
13
|
rows?: number;
|
|
14
|
+
/** Maximum number of rows a multiline field grows to before it scrolls */
|
|
15
|
+
maxRows?: number;
|
|
14
16
|
/** Icon displayed inside the input, before the text */
|
|
15
17
|
startIcon?: IconType | ReactElement;
|
|
16
18
|
/** Icon displayed inside the input, after the text */
|
|
@@ -20,6 +22,10 @@ export interface TextFieldProps extends FieldSharedProps, StyleProps, AriaProps,
|
|
|
20
22
|
autoComplete?: string;
|
|
21
23
|
maxLength?: number;
|
|
22
24
|
minLength?: number;
|
|
25
|
+
/** Which virtual keyboard to show, eg. `numeric` for a code */
|
|
26
|
+
inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
27
|
+
/** A regular expression the value must match to be valid */
|
|
28
|
+
pattern?: string;
|
|
23
29
|
onBlur?: (event: FocusEvent<TextFieldElement>) => void;
|
|
24
30
|
onFocus?: (event: FocusEvent<TextFieldElement>) => void;
|
|
25
31
|
onKeyDown?: (event: KeyboardEvent<TextFieldElement>) => void;
|
|
@@ -27,5 +33,5 @@ export interface TextFieldProps extends FieldSharedProps, StyleProps, AriaProps,
|
|
|
27
33
|
inputProps?: DataProps;
|
|
28
34
|
ref?: Ref<HTMLDivElement>;
|
|
29
35
|
}
|
|
30
|
-
export declare function TextField({ label, description, error, required, disabled, readOnly, icon, shared, value, defaultValue, onValueChange, placeholder, type, multiline, rows, startIcon, endIcon, autoComplete, maxLength, minLength, onBlur, onFocus, onKeyDown, inputProps, className, style, ...props }: TextFieldProps): import("react").JSX.Element;
|
|
36
|
+
export declare function TextField({ label, description, error, required, disabled, readOnly, icon, shared, value, defaultValue, onValueChange, placeholder, type, multiline, rows, maxRows, startIcon, endIcon, autoComplete, maxLength, minLength, onBlur, onFocus, onKeyDown, inputProps, className, style, ...props }: TextFieldProps): import("react").JSX.Element;
|
|
31
37
|
export {};
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
$41fb335299a4a39e$export$f5b8910cec6cf069,
|
|
3
3
|
$b8dcdc58eeae0d40$export$2c73285ae9390cec,
|
|
4
4
|
$bd263d78e9bf3c56$export$f5c9f3c2c4054eec
|
|
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 {
|
|
@@ -21,18 +21,20 @@ import { Icon } from "./Icon.js";
|
|
|
21
21
|
|
|
22
22
|
// src/components/TextField.module.css
|
|
23
23
|
var TextField_default = {
|
|
24
|
-
"
|
|
24
|
+
"is-shadow": "alinea-is-shadow",
|
|
25
|
+
"isShadow": "alinea-is-shadow",
|
|
26
|
+
"TextField": "alinea-TextField",
|
|
25
27
|
"is-start": "alinea-is-start",
|
|
26
28
|
"isStart": "alinea-is-start",
|
|
27
|
-
"
|
|
29
|
+
"TextFieldGroup": "alinea-TextFieldGroup",
|
|
30
|
+
"is-limited": "alinea-is-limited",
|
|
31
|
+
"isLimited": "alinea-is-limited",
|
|
32
|
+
"is-end": "alinea-is-end",
|
|
33
|
+
"isEnd": "alinea-is-end",
|
|
28
34
|
"TextFieldGroup-icon": "alinea-TextFieldGroup-icon",
|
|
29
35
|
"TextFieldGroupIcon": "alinea-TextFieldGroup-icon",
|
|
30
36
|
"TextFieldControl": "alinea-TextFieldControl",
|
|
31
|
-
"
|
|
32
|
-
"isShadow": "alinea-is-shadow",
|
|
33
|
-
"TextFieldGrow": "alinea-TextFieldGrow",
|
|
34
|
-
"is-end": "alinea-is-end",
|
|
35
|
-
"isEnd": "alinea-is-end"
|
|
37
|
+
"TextFieldGrow": "alinea-TextFieldGrow"
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
// src/components/TextField.tsx
|
|
@@ -54,6 +56,7 @@ function TextField({
|
|
|
54
56
|
type = "text",
|
|
55
57
|
multiline,
|
|
56
58
|
rows = 1,
|
|
59
|
+
maxRows,
|
|
57
60
|
startIcon,
|
|
58
61
|
endIcon,
|
|
59
62
|
autoComplete,
|
|
@@ -85,6 +88,7 @@ function TextField({
|
|
|
85
88
|
onKeyDown
|
|
86
89
|
};
|
|
87
90
|
const adornments = { start: Boolean(startIcon), end: Boolean(endIcon) };
|
|
91
|
+
const limit = maxRows ? { maxHeight: `calc(${maxRows * 1.5}em + 18px)` } : void 0;
|
|
88
92
|
return /* @__PURE__ */ jsx(
|
|
89
93
|
$b8dcdc58eeae0d40$export$2c73285ae9390cec,
|
|
90
94
|
{
|
|
@@ -99,7 +103,7 @@ function TextField({
|
|
|
99
103
|
isRequired: required,
|
|
100
104
|
isDisabled: disabled,
|
|
101
105
|
isReadOnly: readOnly,
|
|
102
|
-
isInvalid:
|
|
106
|
+
isInvalid: error ? true : void 0,
|
|
103
107
|
className: styles.TextField(dist_default.merge({ className })),
|
|
104
108
|
style,
|
|
105
109
|
children: /* @__PURE__ */ jsx(
|
|
@@ -130,7 +134,11 @@ function TextField({
|
|
|
130
134
|
...inputProps,
|
|
131
135
|
...control,
|
|
132
136
|
rows,
|
|
133
|
-
className: styles.TextFieldControl(
|
|
137
|
+
className: styles.TextFieldControl({
|
|
138
|
+
...adornments,
|
|
139
|
+
limited: Boolean(maxRows)
|
|
140
|
+
}),
|
|
141
|
+
style: limit
|
|
134
142
|
}
|
|
135
143
|
),
|
|
136
144
|
/* @__PURE__ */ jsx(
|
|
@@ -142,6 +150,7 @@ function TextField({
|
|
|
142
150
|
...adornments,
|
|
143
151
|
shadow: true
|
|
144
152
|
}),
|
|
153
|
+
style: limit,
|
|
145
154
|
children: `${current || placeholder || ""} `
|
|
146
155
|
}
|
|
147
156
|
)
|
|
@@ -15,7 +15,12 @@ export interface TimeFieldProps extends FieldSharedProps, StyleProps, AriaProps,
|
|
|
15
15
|
granularity?: 'minute' | 'second';
|
|
16
16
|
/** Defaults to the locale's hour cycle */
|
|
17
17
|
hourCycle?: 12 | 24;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the hidden form input, which submits the time like a native
|
|
20
|
+
* time input: `HH:mm`, or `HH:mm:ss` when granularity is `second`, and an
|
|
21
|
+
* empty string when no time is set
|
|
22
|
+
*/
|
|
18
23
|
name?: string;
|
|
19
24
|
autoFocus?: boolean;
|
|
20
25
|
}
|
|
21
|
-
export declare function TimeField({ label, description, error, required, disabled, readOnly, icon, shared, value, defaultValue, onValueChange, min, max, granularity, className, locale, ...props }: TimeFieldProps): import("react").JSX.Element;
|
|
26
|
+
export declare function TimeField({ label, description, error, required, disabled, readOnly, icon, shared, value, defaultValue, onValueChange, min, max, granularity, name, className, locale, ...props }: TimeFieldProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$5400c097f4765e59$export$336ab7fa954c4b5f,
|
|
3
|
+
$5400c097f4765e59$export$5d8dc44abd10a920,
|
|
3
4
|
$5400c097f4765e59$export$5eaee2322dd727eb,
|
|
4
5
|
$5400c097f4765e59$export$7edc06cf1783b30f
|
|
5
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
6
7
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-PMGIIYDD.js";
|
|
8
9
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
10
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
10
11
|
import {
|
|
@@ -13,6 +14,7 @@ import {
|
|
|
13
14
|
import "../chunks/chunk-CQ52GEHY.js";
|
|
14
15
|
|
|
15
16
|
// src/components/TimeField.tsx
|
|
17
|
+
import { useContext } from "react";
|
|
16
18
|
import { Field } from "./Field.js";
|
|
17
19
|
import { formatTime, toTime } from "./internal/DateValue.js";
|
|
18
20
|
import { Locale } from "./internal/Locale.js";
|
|
@@ -21,17 +23,17 @@ import { Locale } from "./internal/Locale.js";
|
|
|
21
23
|
var TimeField_default = {
|
|
22
24
|
"TimeField-segment": "alinea-TimeField-segment",
|
|
23
25
|
"TimeFieldSegment": "alinea-TimeField-segment",
|
|
26
|
+
"is-placeholder": "alinea-is-placeholder",
|
|
27
|
+
"isPlaceholder": "alinea-is-placeholder",
|
|
24
28
|
"is-literal": "alinea-is-literal",
|
|
25
29
|
"isLiteral": "alinea-is-literal",
|
|
30
|
+
"TimeField": "alinea-TimeField",
|
|
26
31
|
"TimeField-input": "alinea-TimeField-input",
|
|
27
|
-
"TimeFieldInput": "alinea-TimeField-input"
|
|
28
|
-
"is-placeholder": "alinea-is-placeholder",
|
|
29
|
-
"isPlaceholder": "alinea-is-placeholder",
|
|
30
|
-
"TimeField": "alinea-TimeField"
|
|
32
|
+
"TimeFieldInput": "alinea-TimeField-input"
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
// src/components/TimeField.tsx
|
|
34
|
-
import { jsx } from "react/jsx-runtime";
|
|
36
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
35
37
|
var styles = dist_default(TimeField_default);
|
|
36
38
|
function TimeField({
|
|
37
39
|
label,
|
|
@@ -48,6 +50,7 @@ function TimeField({
|
|
|
48
50
|
min,
|
|
49
51
|
max,
|
|
50
52
|
granularity = "minute",
|
|
53
|
+
name,
|
|
51
54
|
className,
|
|
52
55
|
locale,
|
|
53
56
|
...props
|
|
@@ -68,7 +71,7 @@ function TimeField({
|
|
|
68
71
|
isDisabled: disabled,
|
|
69
72
|
isReadOnly: readOnly,
|
|
70
73
|
isInvalid: error ? true : void 0,
|
|
71
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ jsxs(
|
|
72
75
|
Field,
|
|
73
76
|
{
|
|
74
77
|
label,
|
|
@@ -79,29 +82,51 @@ function TimeField({
|
|
|
79
82
|
readOnly,
|
|
80
83
|
icon,
|
|
81
84
|
shared,
|
|
82
|
-
children:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
$5400c097f4765e59$export$7edc06cf1783b30f,
|
|
88
|
+
{
|
|
89
|
+
"data-slot": "time-field-input",
|
|
90
|
+
className: styles.TimeField.input(),
|
|
91
|
+
children: (segment) => /* @__PURE__ */ jsx(
|
|
92
|
+
$5400c097f4765e59$export$336ab7fa954c4b5f,
|
|
93
|
+
{
|
|
94
|
+
"data-slot": "time-field-segment",
|
|
95
|
+
className: (state) => styles.TimeField.segment({
|
|
96
|
+
placeholder: state.isPlaceholder,
|
|
97
|
+
literal: segment.type === "literal"
|
|
98
|
+
}),
|
|
99
|
+
segment
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
name && /* @__PURE__ */ jsx(
|
|
105
|
+
TimeFieldValue,
|
|
106
|
+
{
|
|
107
|
+
name,
|
|
108
|
+
granularity,
|
|
109
|
+
disabled
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
]
|
|
100
113
|
}
|
|
101
114
|
)
|
|
102
115
|
}
|
|
103
116
|
) });
|
|
104
117
|
}
|
|
118
|
+
function TimeFieldValue({ name, granularity, disabled }) {
|
|
119
|
+
const time = useContext($5400c097f4765e59$export$5d8dc44abd10a920)?.timeValue;
|
|
120
|
+
return /* @__PURE__ */ jsx(
|
|
121
|
+
"input",
|
|
122
|
+
{
|
|
123
|
+
type: "hidden",
|
|
124
|
+
name,
|
|
125
|
+
disabled,
|
|
126
|
+
value: time ? formatTime(time, granularity) : ""
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
}
|
|
105
130
|
export {
|
|
106
131
|
TimeField
|
|
107
132
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$bc25b811ec97a172$export$40258cc1d95ff477
|
|
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 {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$db7105decd081705$export$4c260019440d418f,
|
|
3
3
|
$e28ab3efe3e87743$export$1ff3c3f08ae963c0
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-7DDPSWRY.js";
|
|
5
5
|
import "../chunks/chunk-NUFRM6SI.js";
|
|
6
|
-
import "../chunks/chunk-
|
|
6
|
+
import "../chunks/chunk-PMGIIYDD.js";
|
|
7
7
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
8
8
|
import "../chunks/chunk-PSSMQKAH.js";
|
|
9
9
|
import {
|
|
@@ -17,8 +17,8 @@ import { Button } from "./Button.js";
|
|
|
17
17
|
|
|
18
18
|
// src/components/Toolbar.module.css
|
|
19
19
|
var Toolbar_default = {
|
|
20
|
-
"ToolbarSeparator": "alinea-ToolbarSeparator",
|
|
21
20
|
"Toolbar": "alinea-Toolbar",
|
|
21
|
+
"ToolbarSeparator": "alinea-ToolbarSeparator",
|
|
22
22
|
"ToolbarGroup": "alinea-ToolbarGroup"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
$05a50f7d78b03ad9$export$28c660c63b792dea,
|
|
3
3
|
$05a50f7d78b03ad9$export$8c610744efcf8a1d,
|
|
4
4
|
$4fcfe18fac72dabd$export$746d02f47f4d381
|
|
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,11 +18,11 @@ import { Trigger } from "./internal/Trigger.js";
|
|
|
18
18
|
|
|
19
19
|
// src/components/Tooltip.module.css
|
|
20
20
|
var Tooltip_default = {
|
|
21
|
-
"TooltipContent": "alinea-TooltipContent",
|
|
22
21
|
"TooltipContent-arrow-icon": "alinea-TooltipContent-arrow-icon",
|
|
23
22
|
"TooltipContentArrowIcon": "alinea-TooltipContent-arrow-icon",
|
|
24
23
|
"TooltipContent-arrow": "alinea-TooltipContent-arrow",
|
|
25
|
-
"TooltipContentArrow": "alinea-TooltipContent-arrow"
|
|
24
|
+
"TooltipContentArrow": "alinea-TooltipContent-arrow",
|
|
25
|
+
"TooltipContent": "alinea-TooltipContent"
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// src/components/Tooltip.tsx
|
|
@@ -67,6 +67,7 @@ function TooltipContent({
|
|
|
67
67
|
$05a50f7d78b03ad9$export$28c660c63b792dea,
|
|
68
68
|
{
|
|
69
69
|
"data-slot": "tooltip-content",
|
|
70
|
+
"data-alinea-theme": "",
|
|
70
71
|
...props,
|
|
71
72
|
placement: placement(side, align),
|
|
72
73
|
offset: sideOffset,
|