@softov/scena 0.1.2
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/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/controls/command.d.ts +18 -0
- package/dist/controls/command.js +150 -0
- package/dist/controls/events.d.ts +3 -0
- package/dist/controls/events.js +43 -0
- package/dist/controls/index.d.ts +10 -0
- package/dist/controls/index.js +10 -0
- package/dist/controls/keybinding.d.ts +9 -0
- package/dist/controls/keybinding.js +94 -0
- package/dist/controls/layout.d.ts +16 -0
- package/dist/controls/layout.js +201 -0
- package/dist/controls/manifest.d.ts +21 -0
- package/dist/controls/manifest.js +219 -0
- package/dist/controls/session.d.ts +16 -0
- package/dist/controls/session.js +95 -0
- package/dist/controls/shell.d.ts +8 -0
- package/dist/controls/shell.js +48 -0
- package/dist/controls/storage/layout-local.d.ts +6 -0
- package/dist/controls/storage/layout-local.js +47 -0
- package/dist/controls/storage/session-local.d.ts +5 -0
- package/dist/controls/storage/session-local.js +38 -0
- package/dist/controls/when.d.ts +7 -0
- package/dist/controls/when.js +226 -0
- package/dist/converters/a2ui-v0.10.d.ts +23 -0
- package/dist/converters/a2ui-v0.10.js +136 -0
- package/dist/converters/index.d.ts +1 -0
- package/dist/converters/index.js +1 -0
- package/dist/core/backends/modus-backend.d.ts +13 -0
- package/dist/core/backends/modus-backend.js +115 -0
- package/dist/core/backends/storage-backend.d.ts +7 -0
- package/dist/core/backends/storage-backend.js +73 -0
- package/dist/core/backends/yjs-backend.d.ts +3 -0
- package/dist/core/backends/yjs-backend.js +44 -0
- package/dist/core/binding-resolver.d.ts +7 -0
- package/dist/core/binding-resolver.js +106 -0
- package/dist/core/component-graph.d.ts +6 -0
- package/dist/core/component-graph.js +77 -0
- package/dist/core/component-registry.d.ts +7 -0
- package/dist/core/component-registry.js +87 -0
- package/dist/core/computed-dsl.d.ts +2 -0
- package/dist/core/computed-dsl.js +267 -0
- package/dist/core/converter-registry.d.ts +2 -0
- package/dist/core/converter-registry.js +37 -0
- package/dist/core/disposable.d.ts +3 -0
- package/dist/core/disposable.js +19 -0
- package/dist/core/dynamic-resolver.d.ts +12 -0
- package/dist/core/dynamic-resolver.js +134 -0
- package/dist/core/index.d.ts +44 -0
- package/dist/core/index.js +48 -0
- package/dist/core/label.d.ts +2 -0
- package/dist/core/label.js +14 -0
- package/dist/core/mount-menu.d.ts +2 -0
- package/dist/core/mount-menu.js +23 -0
- package/dist/core/mount-surface.d.ts +15 -0
- package/dist/core/mount-surface.js +214 -0
- package/dist/core/path-resolver.d.ts +14 -0
- package/dist/core/path-resolver.js +169 -0
- package/dist/core/permissions.d.ts +2 -0
- package/dist/core/permissions.js +50 -0
- package/dist/core/reactive-store.d.ts +17 -0
- package/dist/core/reactive-store.js +496 -0
- package/dist/core/scena.d.ts +2 -0
- package/dist/core/scena.js +115 -0
- package/dist/core/surface-presentation.d.ts +6 -0
- package/dist/core/surface-presentation.js +12 -0
- package/dist/i18n/i18n-backend.d.ts +2 -0
- package/dist/i18n/i18n-backend.js +35 -0
- package/dist/i18n/registry.d.ts +32 -0
- package/dist/i18n/registry.js +200 -0
- package/dist/porta/Limen.css +50 -0
- package/dist/porta/Limen.d.ts +16 -0
- package/dist/porta/Limen.js +14 -0
- package/dist/porta/PortaContext.d.ts +10 -0
- package/dist/porta/PortaContext.js +20 -0
- package/dist/porta/PortaLock.css +14 -0
- package/dist/porta/PortaLock.d.ts +10 -0
- package/dist/porta/PortaLock.js +13 -0
- package/dist/porta/SigillumGate.d.ts +8 -0
- package/dist/porta/SigillumGate.js +7 -0
- package/dist/porta/commands.d.ts +3 -0
- package/dist/porta/commands.js +125 -0
- package/dist/porta/index.d.ts +18 -0
- package/dist/porta/index.js +22 -0
- package/dist/porta/login-form.block.d.ts +2 -0
- package/dist/porta/login-form.block.js +7 -0
- package/dist/porta/match.d.ts +2 -0
- package/dist/porta/match.js +20 -0
- package/dist/porta/provider.d.ts +59 -0
- package/dist/porta/provider.js +1 -0
- package/dist/porta/providers/examples/google-oauth.d.ts +6 -0
- package/dist/porta/providers/examples/google-oauth.js +21 -0
- package/dist/porta/providers/examples/index.d.ts +6 -0
- package/dist/porta/providers/examples/index.js +3 -0
- package/dist/porta/providers/examples/magic-link.d.ts +8 -0
- package/dist/porta/providers/examples/magic-link.js +31 -0
- package/dist/porta/providers/examples/sms-otp.d.ts +9 -0
- package/dist/porta/providers/examples/sms-otp.js +31 -0
- package/dist/porta/providers/password.d.ts +12 -0
- package/dist/porta/providers/password.js +46 -0
- package/dist/porta/register-blocks.d.ts +3 -0
- package/dist/porta/register-blocks.js +31 -0
- package/dist/porta/register.d.ts +15 -0
- package/dist/porta/register.js +31 -0
- package/dist/porta/sigillum.d.ts +19 -0
- package/dist/porta/sigillum.js +41 -0
- package/dist/react/DefaultShell.d.ts +1 -0
- package/dist/react/DefaultShell.js +37 -0
- package/dist/react/Scena.d.ts +9 -0
- package/dist/react/Scena.js +20 -0
- package/dist/react/ScenaProvider.d.ts +8 -0
- package/dist/react/ScenaProvider.js +13 -0
- package/dist/react/ShellSplitter.d.ts +13 -0
- package/dist/react/ShellSplitter.js +88 -0
- package/dist/react/SurfaceArea.d.ts +13 -0
- package/dist/react/SurfaceArea.js +75 -0
- package/dist/react/Translate.d.ts +8 -0
- package/dist/react/Translate.js +10 -0
- package/dist/react/ViewMount.d.ts +12 -0
- package/dist/react/ViewMount.js +268 -0
- package/dist/react/core.d.ts +6 -0
- package/dist/react/core.js +10 -0
- package/dist/react/hooks/useCommand.d.ts +1 -0
- package/dist/react/hooks/useCommand.js +6 -0
- package/dist/react/hooks/useI18n.d.ts +9 -0
- package/dist/react/hooks/useI18n.js +16 -0
- package/dist/react/hooks/useLabel.d.ts +2 -0
- package/dist/react/hooks/useLabel.js +19 -0
- package/dist/react/hooks/useLayout.d.ts +2 -0
- package/dist/react/hooks/useLayout.js +10 -0
- package/dist/react/hooks/useMounts.d.ts +2 -0
- package/dist/react/hooks/useMounts.js +17 -0
- package/dist/react/hooks/useStore.d.ts +3 -0
- package/dist/react/hooks/useStore.js +40 -0
- package/dist/react/hooks/useStoreLabel.d.ts +3 -0
- package/dist/react/hooks/useStoreLabel.js +25 -0
- package/dist/react/hooks/useSurfacePresentation.d.ts +4 -0
- package/dist/react/hooks/useSurfacePresentation.js +16 -0
- package/dist/react/index.d.ts +20 -0
- package/dist/react/index.js +20 -0
- package/dist/react/mount-context.d.ts +8 -0
- package/dist/react/mount-context.js +20 -0
- package/dist/react/useSurfaceResize.d.ts +39 -0
- package/dist/react/useSurfaceResize.js +135 -0
- package/dist/runtime/args-schema.d.ts +11 -0
- package/dist/runtime/args-schema.js +45 -0
- package/dist/runtime/builtins.d.ts +3 -0
- package/dist/runtime/builtins.js +193 -0
- package/dist/runtime/client-handlers.d.ts +3 -0
- package/dist/runtime/client-handlers.js +19 -0
- package/dist/runtime/in-memory-socket.d.ts +7 -0
- package/dist/runtime/in-memory-socket.js +53 -0
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +7 -0
- package/dist/runtime/layout-commands.d.ts +5 -0
- package/dist/runtime/layout-commands.js +548 -0
- package/dist/runtime/opener-commands.d.ts +17 -0
- package/dist/runtime/opener-commands.js +96 -0
- package/dist/runtime/surface-bridge.d.ts +15 -0
- package/dist/runtime/surface-bridge.js +116 -0
- package/dist/styles/bar.css +155 -0
- package/dist/styles/base.css +285 -0
- package/dist/styles/geometry.css +32 -0
- package/dist/styles/index.d.ts +29 -0
- package/dist/styles/index.js +109 -0
- package/dist/styles/scrollbar.css +45 -0
- package/dist/styles/surface.css +179 -0
- package/dist/styles/theme.css +3 -0
- package/dist/styles/themes/dark.css +30 -0
- package/dist/styles/themes/light.css +1 -0
- package/dist/styles/themes/tokens.css +222 -0
- package/dist/types/binding-resolver.d.ts +30 -0
- package/dist/types/binding-resolver.js +1 -0
- package/dist/types/colors.d.ts +7 -0
- package/dist/types/colors.js +59 -0
- package/dist/types/command.d.ts +62 -0
- package/dist/types/command.js +1 -0
- package/dist/types/component-graph.d.ts +72 -0
- package/dist/types/component-graph.js +40 -0
- package/dist/types/component-registry.d.ts +70 -0
- package/dist/types/component-registry.js +1 -0
- package/dist/types/converter-registry.d.ts +17 -0
- package/dist/types/converter-registry.js +1 -0
- package/dist/types/disposable.d.ts +3 -0
- package/dist/types/disposable.js +1 -0
- package/dist/types/events.d.ts +75 -0
- package/dist/types/events.js +1 -0
- package/dist/types/host.d.ts +50 -0
- package/dist/types/host.js +1 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/index.js +23 -0
- package/dist/types/keybinding.d.ts +36 -0
- package/dist/types/keybinding.js +1 -0
- package/dist/types/label.d.ts +9 -0
- package/dist/types/label.js +1 -0
- package/dist/types/layout.d.ts +117 -0
- package/dist/types/layout.js +1 -0
- package/dist/types/manifest.d.ts +152 -0
- package/dist/types/manifest.js +1 -0
- package/dist/types/mount-menu.d.ts +8 -0
- package/dist/types/mount-menu.js +1 -0
- package/dist/types/mount-surface.d.ts +87 -0
- package/dist/types/mount-surface.js +1 -0
- package/dist/types/permissions.d.ts +18 -0
- package/dist/types/permissions.js +1 -0
- package/dist/types/query.d.ts +34 -0
- package/dist/types/query.js +7 -0
- package/dist/types/reactive-store.d.ts +39 -0
- package/dist/types/reactive-store.js +1 -0
- package/dist/types/scena.d.ts +53 -0
- package/dist/types/scena.js +1 -0
- package/dist/types/scope-backend.d.ts +16 -0
- package/dist/types/scope-backend.js +1 -0
- package/dist/types/session.d.ts +39 -0
- package/dist/types/session.js +1 -0
- package/dist/types/shell.d.ts +21 -0
- package/dist/types/shell.js +1 -0
- package/dist/types/when.d.ts +10 -0
- package/dist/types/when.js +1 -0
- package/dist/ui/_utils.d.ts +8 -0
- package/dist/ui/_utils.js +53 -0
- package/dist/ui/campus/CampusMappa.d.ts +18 -0
- package/dist/ui/campus/CampusMappa.js +106 -0
- package/dist/ui/campus/CampusNodus.d.ts +25 -0
- package/dist/ui/campus/CampusNodus.js +211 -0
- package/dist/ui/campus/CampusStratum.d.ts +13 -0
- package/dist/ui/campus/CampusStratum.js +20 -0
- package/dist/ui/campus/CampusVelum.d.ts +7 -0
- package/dist/ui/campus/CampusVelum.js +12 -0
- package/dist/ui/campus/CampusView.d.ts +27 -0
- package/dist/ui/campus/CampusView.js +420 -0
- package/dist/ui/campus/context.d.ts +13 -0
- package/dist/ui/campus/context.js +12 -0
- package/dist/ui/campus/index.d.ts +14 -0
- package/dist/ui/campus/index.js +11 -0
- package/dist/ui/campus/stratum-context.d.ts +2 -0
- package/dist/ui/campus/stratum-context.js +10 -0
- package/dist/ui/campus/types.d.ts +47 -0
- package/dist/ui/campus/types.js +4 -0
- package/dist/ui/chart/BarChart.css +53 -0
- package/dist/ui/chart/BarChart.d.ts +24 -0
- package/dist/ui/chart/BarChart.js +32 -0
- package/dist/ui/chart/Donut.css +15 -0
- package/dist/ui/chart/Donut.d.ts +15 -0
- package/dist/ui/chart/Donut.js +18 -0
- package/dist/ui/chart/LineChart.css +8 -0
- package/dist/ui/chart/LineChart.d.ts +24 -0
- package/dist/ui/chart/LineChart.js +29 -0
- package/dist/ui/chart/catalog.d.ts +2 -0
- package/dist/ui/chart/catalog.js +7 -0
- package/dist/ui/chart/index.d.ts +6 -0
- package/dist/ui/chart/index.js +4 -0
- package/dist/ui/control/Button.css +7 -0
- package/dist/ui/control/Button.d.ts +17 -0
- package/dist/ui/control/Button.js +17 -0
- package/dist/ui/control/CheckBox.css +16 -0
- package/dist/ui/control/CheckBox.d.ts +15 -0
- package/dist/ui/control/CheckBox.js +23 -0
- package/dist/ui/control/Checks.css +6 -0
- package/dist/ui/control/Checks.d.ts +9 -0
- package/dist/ui/control/Checks.js +10 -0
- package/dist/ui/control/ChoicePicker.css +16 -0
- package/dist/ui/control/ChoicePicker.d.ts +25 -0
- package/dist/ui/control/ChoicePicker.js +38 -0
- package/dist/ui/control/DateTimeInput.css +1 -0
- package/dist/ui/control/DateTimeInput.d.ts +22 -0
- package/dist/ui/control/DateTimeInput.js +41 -0
- package/dist/ui/control/LocaleToggle.css +38 -0
- package/dist/ui/control/LocaleToggle.d.ts +11 -0
- package/dist/ui/control/LocaleToggle.js +23 -0
- package/dist/ui/control/ReloadButton.d.ts +6 -0
- package/dist/ui/control/ReloadButton.js +9 -0
- package/dist/ui/control/Slider.css +2 -0
- package/dist/ui/control/Slider.d.ts +21 -0
- package/dist/ui/control/Slider.js +37 -0
- package/dist/ui/control/TextField.css +0 -0
- package/dist/ui/control/TextField.d.ts +25 -0
- package/dist/ui/control/TextField.js +36 -0
- package/dist/ui/control/_field-parts.css +102 -0
- package/dist/ui/control/_field-parts.d.ts +15 -0
- package/dist/ui/control/_field-parts.js +17 -0
- package/dist/ui/control/catalog.d.ts +2 -0
- package/dist/ui/control/catalog.js +10 -0
- package/dist/ui/control/index.d.ts +13 -0
- package/dist/ui/control/index.js +11 -0
- package/dist/ui/data/DataTable.d.ts +19 -0
- package/dist/ui/data/DataTable.js +20 -0
- package/dist/ui/data/Filter.d.ts +13 -0
- package/dist/ui/data/Filter.js +56 -0
- package/dist/ui/data/List.css +16 -0
- package/dist/ui/data/List.d.ts +15 -0
- package/dist/ui/data/List.js +18 -0
- package/dist/ui/data/Listable.css +245 -0
- package/dist/ui/data/Listable.d.ts +60 -0
- package/dist/ui/data/Listable.js +209 -0
- package/dist/ui/data/Pagination.d.ts +5 -0
- package/dist/ui/data/Pagination.js +43 -0
- package/dist/ui/data/Tree.css +118 -0
- package/dist/ui/data/Tree.d.ts +45 -0
- package/dist/ui/data/Tree.js +170 -0
- package/dist/ui/data/catalog.d.ts +2 -0
- package/dist/ui/data/catalog.js +7 -0
- package/dist/ui/data/index.d.ts +11 -0
- package/dist/ui/data/index.js +7 -0
- package/dist/ui/display/AddPlaceholder.d.ts +6 -0
- package/dist/ui/display/AddPlaceholder.js +24 -0
- package/dist/ui/display/Alert.css +42 -0
- package/dist/ui/display/Alert.d.ts +14 -0
- package/dist/ui/display/Alert.js +13 -0
- package/dist/ui/display/Avatar.css +19 -0
- package/dist/ui/display/Avatar.d.ts +16 -0
- package/dist/ui/display/Avatar.js +52 -0
- package/dist/ui/display/Badge.css +26 -0
- package/dist/ui/display/Badge.d.ts +16 -0
- package/dist/ui/display/Badge.js +9 -0
- package/dist/ui/display/Card.css +15 -0
- package/dist/ui/display/Card.d.ts +11 -0
- package/dist/ui/display/Card.js +8 -0
- package/dist/ui/display/DetailContainer.d.ts +6 -0
- package/dist/ui/display/DetailContainer.js +7 -0
- package/dist/ui/display/DetailHeader.css +53 -0
- package/dist/ui/display/DetailHeader.d.ts +22 -0
- package/dist/ui/display/DetailHeader.js +8 -0
- package/dist/ui/display/DetailList.css +26 -0
- package/dist/ui/display/DetailList.d.ts +13 -0
- package/dist/ui/display/DetailList.js +5 -0
- package/dist/ui/display/DetailNotFound.d.ts +17 -0
- package/dist/ui/display/DetailNotFound.js +39 -0
- package/dist/ui/display/Divider.css +6 -0
- package/dist/ui/display/Divider.d.ts +8 -0
- package/dist/ui/display/Divider.js +16 -0
- package/dist/ui/display/Divisor.css +30 -0
- package/dist/ui/display/Divisor.d.ts +11 -0
- package/dist/ui/display/Divisor.js +43 -0
- package/dist/ui/display/Icon.css +10 -0
- package/dist/ui/display/Icon.d.ts +14 -0
- package/dist/ui/display/Icon.js +144 -0
- package/dist/ui/display/Image.css +1 -0
- package/dist/ui/display/Image.d.ts +16 -0
- package/dist/ui/display/Image.js +19 -0
- package/dist/ui/display/Markdown.css +38 -0
- package/dist/ui/display/Markdown.d.ts +8 -0
- package/dist/ui/display/Markdown.js +140 -0
- package/dist/ui/display/Progress.css +39 -0
- package/dist/ui/display/Progress.d.ts +15 -0
- package/dist/ui/display/Progress.js +17 -0
- package/dist/ui/display/SectionTitle.d.ts +6 -0
- package/dist/ui/display/SectionTitle.js +6 -0
- package/dist/ui/display/Skeleton.css +20 -0
- package/dist/ui/display/Skeleton.d.ts +11 -0
- package/dist/ui/display/Skeleton.js +11 -0
- package/dist/ui/display/Spinner.css +20 -0
- package/dist/ui/display/Spinner.d.ts +12 -0
- package/dist/ui/display/Spinner.js +12 -0
- package/dist/ui/display/Svg.d.ts +13 -0
- package/dist/ui/display/Svg.js +17 -0
- package/dist/ui/display/Text.css +20 -0
- package/dist/ui/display/Text.d.ts +13 -0
- package/dist/ui/display/Text.js +15 -0
- package/dist/ui/display/catalog.d.ts +2 -0
- package/dist/ui/display/catalog.js +12 -0
- package/dist/ui/display/index.d.ts +22 -0
- package/dist/ui/display/index.js +14 -0
- package/dist/ui/embed/HtmlEmbed.d.ts +12 -0
- package/dist/ui/embed/HtmlEmbed.js +16 -0
- package/dist/ui/embed/index.d.ts +2 -0
- package/dist/ui/embed/index.js +1 -0
- package/dist/ui/forms/DangerZone.d.ts +8 -0
- package/dist/ui/forms/DangerZone.js +31 -0
- package/dist/ui/forms/Field.css +15 -0
- package/dist/ui/forms/Field.d.ts +28 -0
- package/dist/ui/forms/Field.js +25 -0
- package/dist/ui/forms/FieldGroup.css +15 -0
- package/dist/ui/forms/FieldGroup.d.ts +7 -0
- package/dist/ui/forms/FieldGroup.js +7 -0
- package/dist/ui/forms/Form.css +14 -0
- package/dist/ui/forms/Form.d.ts +18 -0
- package/dist/ui/forms/Form.js +17 -0
- package/dist/ui/forms/FormActions.css +11 -0
- package/dist/ui/forms/FormActions.d.ts +18 -0
- package/dist/ui/forms/FormActions.js +10 -0
- package/dist/ui/forms/FormSection.css +19 -0
- package/dist/ui/forms/FormSection.d.ts +7 -0
- package/dist/ui/forms/FormSection.js +7 -0
- package/dist/ui/forms/LoginForm.css +105 -0
- package/dist/ui/forms/LoginForm.d.ts +12 -0
- package/dist/ui/forms/LoginForm.js +137 -0
- package/dist/ui/forms/SchemaForm.css +81 -0
- package/dist/ui/forms/SchemaForm.d.ts +26 -0
- package/dist/ui/forms/SchemaForm.js +186 -0
- package/dist/ui/forms/SettingsContainer.d.ts +8 -0
- package/dist/ui/forms/SettingsContainer.js +8 -0
- package/dist/ui/forms/catalog.d.ts +2 -0
- package/dist/ui/forms/catalog.js +11 -0
- package/dist/ui/forms/index.d.ts +19 -0
- package/dist/ui/forms/index.js +12 -0
- package/dist/ui/forms/schema-walk.d.ts +50 -0
- package/dist/ui/forms/schema-walk.js +116 -0
- package/dist/ui/index.d.ts +58 -0
- package/dist/ui/index.js +63 -0
- package/dist/ui/layout/BarLayout.d.ts +2 -0
- package/dist/ui/layout/BarLayout.js +18 -0
- package/dist/ui/layout/Column.css +6 -0
- package/dist/ui/layout/Column.d.ts +12 -0
- package/dist/ui/layout/Column.js +13 -0
- package/dist/ui/layout/FloatingLayout.d.ts +2 -0
- package/dist/ui/layout/FloatingLayout.js +12 -0
- package/dist/ui/layout/Grid.css +5 -0
- package/dist/ui/layout/Grid.d.ts +13 -0
- package/dist/ui/layout/Grid.js +19 -0
- package/dist/ui/layout/InlineLayout.d.ts +2 -0
- package/dist/ui/layout/InlineLayout.js +13 -0
- package/dist/ui/layout/MountTitle.d.ts +12 -0
- package/dist/ui/layout/MountTitle.js +42 -0
- package/dist/ui/layout/RailLayout.d.ts +2 -0
- package/dist/ui/layout/RailLayout.js +38 -0
- package/dist/ui/layout/Row.css +16 -0
- package/dist/ui/layout/Row.d.ts +13 -0
- package/dist/ui/layout/Row.js +21 -0
- package/dist/ui/layout/SectionHeader.d.ts +10 -0
- package/dist/ui/layout/SectionHeader.js +65 -0
- package/dist/ui/layout/SingleLayout.d.ts +2 -0
- package/dist/ui/layout/SingleLayout.js +25 -0
- package/dist/ui/layout/SpatialCard.d.ts +9 -0
- package/dist/ui/layout/SpatialCard.js +30 -0
- package/dist/ui/layout/SpatialLayout.d.ts +2 -0
- package/dist/ui/layout/SpatialLayout.js +446 -0
- package/dist/ui/layout/SplitLayout.d.ts +2 -0
- package/dist/ui/layout/SplitLayout.js +159 -0
- package/dist/ui/layout/Splitter.d.ts +12 -0
- package/dist/ui/layout/Splitter.js +64 -0
- package/dist/ui/layout/StackHeader.d.ts +9 -0
- package/dist/ui/layout/StackHeader.js +87 -0
- package/dist/ui/layout/StackLayout.d.ts +2 -0
- package/dist/ui/layout/StackLayout.js +137 -0
- package/dist/ui/layout/TabLayout.d.ts +2 -0
- package/dist/ui/layout/TabLayout.js +145 -0
- package/dist/ui/layout/TabPanelLayout.d.ts +20 -0
- package/dist/ui/layout/TabPanelLayout.js +615 -0
- package/dist/ui/layout/catalog.d.ts +2 -0
- package/dist/ui/layout/catalog.js +10 -0
- package/dist/ui/layout/index.d.ts +17 -0
- package/dist/ui/layout/index.js +17 -0
- package/dist/ui/layout/register.d.ts +3 -0
- package/dist/ui/layout/register.js +25 -0
- package/dist/ui/media/Audio.css +1 -0
- package/dist/ui/media/Audio.d.ts +12 -0
- package/dist/ui/media/Audio.js +8 -0
- package/dist/ui/media/Video.css +1 -0
- package/dist/ui/media/Video.d.ts +16 -0
- package/dist/ui/media/Video.js +9 -0
- package/dist/ui/media/catalog.d.ts +2 -0
- package/dist/ui/media/catalog.js +5 -0
- package/dist/ui/media/index.d.ts +2 -0
- package/dist/ui/media/index.js +3 -0
- package/dist/ui/menu/ActionList.css +262 -0
- package/dist/ui/menu/ActionList.d.ts +19 -0
- package/dist/ui/menu/ActionList.js +369 -0
- package/dist/ui/menu/ContainerMenu.d.ts +13 -0
- package/dist/ui/menu/ContainerMenu.js +57 -0
- package/dist/ui/menu/ContextMenu.d.ts +27 -0
- package/dist/ui/menu/ContextMenu.js +93 -0
- package/dist/ui/menu/index.d.ts +10 -0
- package/dist/ui/menu/index.js +7 -0
- package/dist/ui/menu/token.d.ts +22 -0
- package/dist/ui/menu/token.js +145 -0
- package/dist/ui/menu/useChatPicker.d.ts +24 -0
- package/dist/ui/menu/useChatPicker.js +210 -0
- package/dist/ui/navigation/Breadcrumb.css +30 -0
- package/dist/ui/navigation/Breadcrumb.d.ts +14 -0
- package/dist/ui/navigation/Breadcrumb.js +12 -0
- package/dist/ui/navigation/Link.css +13 -0
- package/dist/ui/navigation/Link.d.ts +18 -0
- package/dist/ui/navigation/Link.js +43 -0
- package/dist/ui/navigation/Tabs.css +39 -0
- package/dist/ui/navigation/Tabs.d.ts +18 -0
- package/dist/ui/navigation/Tabs.js +55 -0
- package/dist/ui/navigation/Toolbar.css +25 -0
- package/dist/ui/navigation/Toolbar.d.ts +12 -0
- package/dist/ui/navigation/Toolbar.js +21 -0
- package/dist/ui/navigation/catalog.d.ts +2 -0
- package/dist/ui/navigation/catalog.js +5 -0
- package/dist/ui/navigation/index.d.ts +8 -0
- package/dist/ui/navigation/index.js +5 -0
- package/dist/ui/overlay/Modal.css +35 -0
- package/dist/ui/overlay/Modal.d.ts +12 -0
- package/dist/ui/overlay/Modal.js +57 -0
- package/dist/ui/overlay/Popup.d.ts +12 -0
- package/dist/ui/overlay/Popup.js +74 -0
- package/dist/ui/overlay/catalog.d.ts +2 -0
- package/dist/ui/overlay/catalog.js +4 -0
- package/dist/ui/overlay/index.d.ts +1 -0
- package/dist/ui/overlay/index.js +2 -0
- package/dist/ui/register.d.ts +6 -0
- package/dist/ui/register.js +26 -0
- package/package.json +115 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { combineDisposables } from '../core/disposable.js';
|
|
2
|
+
// Wires the socket bridge to scena's surface registry.
|
|
3
|
+
//
|
|
4
|
+
// Scena has no notion of "agent" — anyone (an agent, the user, a plugin, a
|
|
5
|
+
// remote peer) can emit a surface event. If a sender wants to namespace its
|
|
6
|
+
// surfaces, it does so by encoding scope into the surfaceId itself (e.g.
|
|
7
|
+
// `<agentId>:<localId>`, `<sessionId>:<formId>`). Scena treats surfaceId as
|
|
8
|
+
// an opaque key.
|
|
9
|
+
//
|
|
10
|
+
// Inbound events:
|
|
11
|
+
// surface:open → translate(payload) → store.set page + data → surfaces.open
|
|
12
|
+
// surface:update → either set one data path OR re-translate the page
|
|
13
|
+
// surface:delete → close mount + clear surface scope
|
|
14
|
+
//
|
|
15
|
+
// Outbound events:
|
|
16
|
+
// surface:event → emitted by the dynamic resolver when an Action of `event`
|
|
17
|
+
// form fires; the bridge forwards it to the socket so the
|
|
18
|
+
// originating sender can react.
|
|
19
|
+
//
|
|
20
|
+
// Path layout:
|
|
21
|
+
// $/surfaces/<surfaceId>/page — translated ComponentNode tree
|
|
22
|
+
// $/surfaces/<surfaceId>/data/<key> — mutable data model
|
|
23
|
+
//
|
|
24
|
+
// Mount key: `surface:<surfaceId>`.
|
|
25
|
+
export function createSurfaceBridge(deps) {
|
|
26
|
+
const { store, surfaces, converters, socket, events } = deps;
|
|
27
|
+
const defaultSurface = deps.defaultSurface ?? 'main';
|
|
28
|
+
function surfaceBase(surfaceId) {
|
|
29
|
+
return `$/surfaces/${surfaceId}`;
|
|
30
|
+
}
|
|
31
|
+
function dataContextOf(surfaceId) {
|
|
32
|
+
return `${surfaceBase(surfaceId)}/data`;
|
|
33
|
+
}
|
|
34
|
+
function pagePath(surfaceId) {
|
|
35
|
+
return `${surfaceBase(surfaceId)}/page`;
|
|
36
|
+
}
|
|
37
|
+
function mountKey(surfaceId) {
|
|
38
|
+
return `surface:${surfaceId}`;
|
|
39
|
+
}
|
|
40
|
+
function parseMountKey(key) {
|
|
41
|
+
if (!key.startsWith('surface:'))
|
|
42
|
+
return null;
|
|
43
|
+
return key.slice('surface:'.length);
|
|
44
|
+
}
|
|
45
|
+
function writePageAndData(surfaceId, page, dataModel) {
|
|
46
|
+
const writes = {
|
|
47
|
+
[pagePath(surfaceId)]: page,
|
|
48
|
+
};
|
|
49
|
+
for (const [k, v] of Object.entries(dataModel ?? {})) {
|
|
50
|
+
writes[`${dataContextOf(surfaceId)}/${k}`] = v;
|
|
51
|
+
}
|
|
52
|
+
store.patchMany(writes);
|
|
53
|
+
}
|
|
54
|
+
const subs = [
|
|
55
|
+
socket.on('surface:open', (raw) => {
|
|
56
|
+
const ev = raw;
|
|
57
|
+
const schema = ev.schema ?? 'a2ui/v0.10';
|
|
58
|
+
const page = converters.translate({
|
|
59
|
+
schema,
|
|
60
|
+
surfaceId: ev.surfaceId,
|
|
61
|
+
payload: ev.payload,
|
|
62
|
+
});
|
|
63
|
+
writePageAndData(ev.surfaceId, page, ev.payload.dataModel);
|
|
64
|
+
surfaces.open({
|
|
65
|
+
surface: ev.preferredSurface ?? defaultSurface,
|
|
66
|
+
key: mountKey(ev.surfaceId),
|
|
67
|
+
resource: { path: pagePath(ev.surfaceId) },
|
|
68
|
+
policy: { editable: false, transient: true },
|
|
69
|
+
dataContext: dataContextOf(ev.surfaceId),
|
|
70
|
+
});
|
|
71
|
+
}),
|
|
72
|
+
socket.on('surface:update', (raw) => {
|
|
73
|
+
const ev = raw;
|
|
74
|
+
if (ev.path !== undefined) {
|
|
75
|
+
const segment = ev.path.startsWith('/') ? ev.path.slice(1) : ev.path;
|
|
76
|
+
store.set(`${dataContextOf(ev.surfaceId)}/${segment}`, ev.value);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (ev.payload) {
|
|
80
|
+
const page = converters.translate({
|
|
81
|
+
schema: ev.schema ?? 'a2ui/v0.10',
|
|
82
|
+
surfaceId: ev.surfaceId,
|
|
83
|
+
payload: ev.payload,
|
|
84
|
+
});
|
|
85
|
+
writePageAndData(ev.surfaceId, page, ev.payload.dataModel);
|
|
86
|
+
}
|
|
87
|
+
}),
|
|
88
|
+
socket.on('surface:delete', (raw) => {
|
|
89
|
+
const ev = raw;
|
|
90
|
+
surfaces.close(mountKey(ev.surfaceId), { reason: 'surface-deleted' });
|
|
91
|
+
const base = surfaceBase(ev.surfaceId);
|
|
92
|
+
const internal = store;
|
|
93
|
+
const keys = internal._internalKeys?.() ?? [];
|
|
94
|
+
for (const k of keys) {
|
|
95
|
+
if (k === base || k.startsWith(`${base}/`)) {
|
|
96
|
+
store.delete(k);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}),
|
|
100
|
+
events.on('scena:action:event', (ev) => {
|
|
101
|
+
if (!ev.mountKey)
|
|
102
|
+
return;
|
|
103
|
+
const surfaceId = parseMountKey(ev.mountKey);
|
|
104
|
+
if (!surfaceId)
|
|
105
|
+
return;
|
|
106
|
+
socket.emit('surface:event', {
|
|
107
|
+
surfaceId,
|
|
108
|
+
name: ev.name,
|
|
109
|
+
context: ev.context,
|
|
110
|
+
wantResponse: ev.wantResponse,
|
|
111
|
+
responsePath: ev.responsePath,
|
|
112
|
+
});
|
|
113
|
+
}),
|
|
114
|
+
];
|
|
115
|
+
return combineDisposables(...subs);
|
|
116
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* Bar layout: three slots (left | center | right) used by titlebar +
|
|
2
|
+
* statusbar. Per-surface chrome (height, border-bottom vs border-top, bg)
|
|
3
|
+
* lives on `.oo-surface--titlebar` / `.oo-surface--statusbar` so the
|
|
4
|
+
* same bar layout can render in either bar. */
|
|
5
|
+
.oo-layout--bar {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
height: 100%;
|
|
9
|
+
width: 100%;
|
|
10
|
+
user-select: none;
|
|
11
|
+
background: var(--oo-color-surface);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.oo-bar__slot {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
height: 100%;
|
|
18
|
+
gap: var(--oo-spacing-xs);
|
|
19
|
+
padding: 0 var(--oo-spacing-sm);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.oo-bar__slot button {
|
|
23
|
+
border: 0;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.oo-bar__slot button[data-active="true"]:not(:hover) {
|
|
28
|
+
color: var(--oo-color-active);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.oo-bar__slot--left {
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
flex: 0 0 auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.oo-bar__slot--center {
|
|
37
|
+
justify-content: center;
|
|
38
|
+
flex: 1 1 auto;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.oo-bar__slot--right {
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
flex: 0 0 auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.oo-bar__item {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tab-bar {
|
|
53
|
+
display: flex;
|
|
54
|
+
background: var(--oo-color-surface);
|
|
55
|
+
border-bottom: 1px solid var(--oo-color-border);
|
|
56
|
+
font-size: var(--oo-font-size-xs);
|
|
57
|
+
min-width: 0;
|
|
58
|
+
min-height: 32px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tab-bar__strip {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: 1 1 auto;
|
|
64
|
+
min-width: 0;
|
|
65
|
+
overflow-x: auto;
|
|
66
|
+
overflow-y: hidden;
|
|
67
|
+
scrollbar-width: thin;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tab-bar__strip::-webkit-scrollbar {
|
|
71
|
+
height: 6px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tab-bar__strip::-webkit-scrollbar-thumb {
|
|
75
|
+
background: var(--oo-color-border);
|
|
76
|
+
border-radius: 3px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.tab-bar__tab {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: 4px;
|
|
83
|
+
padding: 4px 12px;
|
|
84
|
+
border-right: 1px solid var(--oo-color-border);
|
|
85
|
+
color: var(--oo-color-muted);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
user-select: none;
|
|
88
|
+
flex: 0 0 auto;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.tab-bar__tab[data-active="true"] {
|
|
93
|
+
color: var(--oo-color-text);
|
|
94
|
+
background: var(--oo-color-bg);
|
|
95
|
+
border-bottom: 2px solid var(--oo-color-accent);
|
|
96
|
+
margin-bottom: -1px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.tab-bar__tab[data-drag-over="true"] {
|
|
100
|
+
box-shadow: inset 0 2px 0 var(--oo-color-accent);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.tab-bar__tab .close {
|
|
104
|
+
opacity: 0.5;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.tab-bar__tab:hover .close {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
.tab-bar__tab .tab__label {
|
|
111
|
+
max-width: 173px;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
}
|
|
115
|
+
.tab-bar__tab .tab__icon {
|
|
116
|
+
color: var(--tab-color, inherit);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.tab-bar__extras {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex: 0 0 auto;
|
|
122
|
+
padding: 0 8px;
|
|
123
|
+
gap: 6px;
|
|
124
|
+
align-items: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.tab-bar__extras button {
|
|
128
|
+
font-size: 11px;
|
|
129
|
+
padding: 2px 8px;
|
|
130
|
+
border: 0;
|
|
131
|
+
/* border: 1px solid var(--oo-color-border); */
|
|
132
|
+
border-radius: 3px;
|
|
133
|
+
background: transparent;
|
|
134
|
+
color: inherit;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/* Testing ui boxed */
|
|
140
|
+
/* .tab-bar__extras {
|
|
141
|
+
gap: 0;
|
|
142
|
+
align-items: stretch;
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.tab-bar__extras button {
|
|
147
|
+
border: 0;
|
|
148
|
+
border-radius: 0px;
|
|
149
|
+
min-width: 32px;
|
|
150
|
+
border-left: 1px solid var(--oo-color-border);
|
|
151
|
+
} */
|
|
152
|
+
|
|
153
|
+
.tab-bar__extras button:hover {
|
|
154
|
+
background: var(--oo-color-active);
|
|
155
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
|
|
3
|
+
--input-padding-y: var(--oo-spacing-xs);
|
|
4
|
+
--input-padding-x: var(--oo-spacing-sm);
|
|
5
|
+
--input-background: var(--oo-color-canvas);
|
|
6
|
+
--input-color: var(--oo-color-text);
|
|
7
|
+
--input-border-color: var(--oo-color-border);
|
|
8
|
+
--input-border-radius: var(--oo-radius-sm);
|
|
9
|
+
--input-border-width: 1px;
|
|
10
|
+
/* Inherit input styles, but allow overrides via --textarea-*. */
|
|
11
|
+
--textarea-padding-y: var(--input-padding-y);
|
|
12
|
+
--textarea-padding-x: var(--input-padding-x);
|
|
13
|
+
--textarea-background: var(--input-background);
|
|
14
|
+
--textarea-color: var(--input-color);
|
|
15
|
+
--textarea-border-color: var(--input-border-color);
|
|
16
|
+
--textarea-border-radius: var(--input-border-radius);
|
|
17
|
+
--textarea-border-width: var(--input-border-width);
|
|
18
|
+
|
|
19
|
+
--button-background: none;
|
|
20
|
+
--button-background-hover: rgb(var(--oo-rgb-primary) / 0.88);
|
|
21
|
+
--button-background-active: var(--oo-color-active);
|
|
22
|
+
--button-text: inherit;
|
|
23
|
+
--button-text-hover: var(--oo-color-hover);
|
|
24
|
+
--button-border: var(--oo-color-border);
|
|
25
|
+
--button-border-width: 1px;
|
|
26
|
+
--button-radius: 0;
|
|
27
|
+
--button-padding-y: var(--oo-spacing-xs);
|
|
28
|
+
--button-padding-x: var(--oo-spacing-xs);
|
|
29
|
+
--button-font-size: var(--oo-font-size-sm);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Minimal reset + body defaults consuming scena theme tokens. */
|
|
33
|
+
*,
|
|
34
|
+
*::before,
|
|
35
|
+
*::after {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
html,
|
|
40
|
+
body,
|
|
41
|
+
#root {
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding: 0;
|
|
44
|
+
height: 100vh;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
body {
|
|
49
|
+
font-family: var(--oo-font-family);
|
|
50
|
+
font-size: var(--oo-font-size-md);
|
|
51
|
+
line-height: var(--oo-line-height);
|
|
52
|
+
color: var(--oo-color-text);
|
|
53
|
+
background: var(--oo-color-canvas);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
a {
|
|
57
|
+
color: var(--oo-color-primary);
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
a:hover {
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
a:active {
|
|
67
|
+
color: var(--oo-color-active);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
button {
|
|
71
|
+
appearance: none;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
/* justify-content: center; */
|
|
75
|
+
gap: var(--oo-spacing-xs);
|
|
76
|
+
|
|
77
|
+
/* padding: var(--button-padding-y) var(--button-padding-x); */
|
|
78
|
+
padding-inline: var(--button-padding-x);
|
|
79
|
+
padding-block: var(--button-padding-y);
|
|
80
|
+
border-radius: var(--button-radius);
|
|
81
|
+
border-width: var(--button-border-width);
|
|
82
|
+
border-style: solid;
|
|
83
|
+
border-color: var(--button-border);
|
|
84
|
+
background: var(--button-background);
|
|
85
|
+
color: var(--button-text);
|
|
86
|
+
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
font: inherit;
|
|
89
|
+
font-size: var(--button-font-size);
|
|
90
|
+
line-height: 1;
|
|
91
|
+
|
|
92
|
+
transition:
|
|
93
|
+
background-color 120ms ease,
|
|
94
|
+
color 120ms ease,
|
|
95
|
+
border-color 120ms ease,
|
|
96
|
+
opacity 120ms ease,
|
|
97
|
+
filter 120ms ease;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
button[data-variant="primary"] {
|
|
101
|
+
--button-background: none;
|
|
102
|
+
--button-text: var(--oo-color-primary);
|
|
103
|
+
--button-border: var(--oo-color-primary);
|
|
104
|
+
--button-text-hover: var(--oo-color-surface);
|
|
105
|
+
--button-background-hover: rgb(var(--oo-rgb-primary) / 0.88);
|
|
106
|
+
--button-background-active: rgb(var(--oo-rgb-primary) / 0.76);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
button [data-variant="secondary"] {
|
|
110
|
+
--button-background: none;
|
|
111
|
+
--button-text: var(--oo-color-text);
|
|
112
|
+
--button-border: var(--oo-color-border);
|
|
113
|
+
--button-text-hover: var(--oo-color-surface);
|
|
114
|
+
--button-background-hover: rgb(var(--oo-rgb-text) / 0.8);
|
|
115
|
+
--button-background-active: rgb(var(--oo-rgb-text) / 0.76);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
button[data-variant="danger"] {
|
|
119
|
+
--button-background: none;
|
|
120
|
+
--button-text: var(--oo-color-danger);
|
|
121
|
+
--button-border: var(--oo-color-danger);
|
|
122
|
+
--button-text-hover: var(--oo-color-surface);
|
|
123
|
+
--button-background-hover: rgb(var(--oo-rgb-danger) / 0.88);
|
|
124
|
+
--button-background-active: rgb(var(--oo-rgb-danger) / 0.76);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
button[data-variant="ghost"] {
|
|
128
|
+
--button-background: none;
|
|
129
|
+
--button-text: var(--oo-color-text);
|
|
130
|
+
--button-text-hover: var(--oo-color-primary);
|
|
131
|
+
--button-background-hover: none;
|
|
132
|
+
--button-background-active: none;
|
|
133
|
+
border: none;
|
|
134
|
+
background: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
button[data-variant="borderless"] {
|
|
138
|
+
--button-background: var(--oo-color-hover);
|
|
139
|
+
--button-text: var(--oo-color-text);
|
|
140
|
+
--button-border-width: 0;
|
|
141
|
+
--button-background-hover: var(--oo-color-surface);
|
|
142
|
+
--button-background-active: var(--oo-color-active);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
button[data-selected="true"] {
|
|
146
|
+
color: var(--oo-color-surface);
|
|
147
|
+
background: var(--oo-color-active);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
button:active,
|
|
151
|
+
button[data-active="true"] {
|
|
152
|
+
background: var(--button-background-active);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
button[disabled],
|
|
156
|
+
button[data-disabled="true"] {
|
|
157
|
+
cursor: not-allowed;
|
|
158
|
+
opacity: 0.5;
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
button:hover {
|
|
163
|
+
background: var(--button-background-hover);
|
|
164
|
+
color: var(--button-text-hover);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
code,
|
|
168
|
+
pre {
|
|
169
|
+
font-family: var(--oo-font-mono);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
select {
|
|
174
|
+
color: inherit;
|
|
175
|
+
font: inherit;
|
|
176
|
+
box-sizing: border-box;
|
|
177
|
+
padding: var(--oo-spacing-xs) var(--oo-spacing-sm);
|
|
178
|
+
background: var(--oo-color-canvas);
|
|
179
|
+
color: var(--oo-color-fg);
|
|
180
|
+
border: 1px solid var(--oo-color-border);
|
|
181
|
+
border-radius: var(--oo-radius-sm);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
input {
|
|
185
|
+
color: inherit;
|
|
186
|
+
font: inherit;
|
|
187
|
+
box-sizing: border-box;
|
|
188
|
+
padding: var(--input-padding-y) var(--input-padding-x);
|
|
189
|
+
background: var(--input-background);
|
|
190
|
+
color: var(--input-color);
|
|
191
|
+
border: var(--input-border-width) solid var(--input-border-color);
|
|
192
|
+
border-radius: var(--input-border-radius);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
textarea {
|
|
196
|
+
color: inherit;
|
|
197
|
+
font: inherit;
|
|
198
|
+
box-sizing: border-box;
|
|
199
|
+
padding: var(--textarea-padding-y) var(--textarea-padding-x);
|
|
200
|
+
background: var(--textarea-background);
|
|
201
|
+
color: var(--textarea-color);
|
|
202
|
+
border: var(--textarea-border-width) solid var(--textarea-border-color);
|
|
203
|
+
border-radius: var(--textarea-border-radius);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
select:focus,
|
|
207
|
+
input:focus,
|
|
208
|
+
textarea:focus {
|
|
209
|
+
outline: 1px solid var(--oo-color-accent);
|
|
210
|
+
outline-offset: -2px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/*
|
|
214
|
+
* `display: contents` makes the wrapper transparent to layout — the user
|
|
215
|
+
* component becomes a direct child of the layout's body, inheriting flex /
|
|
216
|
+
* grid context (and 100% height) instead of being limited by an
|
|
217
|
+
* uncontrolled wrapper div.
|
|
218
|
+
*/
|
|
219
|
+
.oo-mount {
|
|
220
|
+
display: contents;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
.oo-loading-dots {
|
|
225
|
+
display: inline-flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
margin: 0 auto;
|
|
229
|
+
width: 100%;
|
|
230
|
+
height: 100%;
|
|
231
|
+
gap: 4px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.oo-loading-dots span {
|
|
235
|
+
width: 4px;
|
|
236
|
+
height: 4px;
|
|
237
|
+
border-radius: 999px;
|
|
238
|
+
background: currentColor;
|
|
239
|
+
opacity: 0.35;
|
|
240
|
+
animation: dotPulse 1s infinite ease-in-out;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.oo-loading-dots span:nth-child(2) {
|
|
244
|
+
animation-delay: 0.15s;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.oo-loading-dots span:nth-child(3) {
|
|
248
|
+
animation-delay: 0.3s;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@keyframes dotPulse {
|
|
252
|
+
|
|
253
|
+
0%,
|
|
254
|
+
80%,
|
|
255
|
+
100% {
|
|
256
|
+
transform: scale(0.75);
|
|
257
|
+
opacity: 0.35;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
40% {
|
|
261
|
+
transform: scale(1);
|
|
262
|
+
opacity: 1;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/*
|
|
267
|
+
* While a splitter is being dragged.
|
|
268
|
+
*
|
|
269
|
+
* `user-select: none` on the handle alone does not help: the pointer is
|
|
270
|
+
* captured by the handle, but the selection being extended belongs to the
|
|
271
|
+
* document, so dragging across a sidebar highlights every label it passes over.
|
|
272
|
+
*
|
|
273
|
+
* The cursor is forced for the same reason. The handle is 4px wide and the
|
|
274
|
+
* pointer spends most of a drag outside it, where the cursor would otherwise
|
|
275
|
+
* revert to whatever it is over. The splitter sets the value inline, since only
|
|
276
|
+
* it knows which axis is being dragged.
|
|
277
|
+
*/
|
|
278
|
+
html.oo-resizing,
|
|
279
|
+
html.oo-resizing * {
|
|
280
|
+
user-select: none !important;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
html.oo-resizing * {
|
|
284
|
+
cursor: inherit !important;
|
|
285
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Geometry CSS variables. LayoutAPI writes these at runtime as the user
|
|
3
|
+
* resizes surfaces; the defaults here keep the values usable before
|
|
4
|
+
* the first write (and on environments without LayoutAPI mounted yet).
|
|
5
|
+
*
|
|
6
|
+
* Variable naming maps SurfaceName → kebab-case (sidebar:left → sidebar-left).
|
|
7
|
+
*/
|
|
8
|
+
:root {
|
|
9
|
+
--oo-activitybar-size: 48px;
|
|
10
|
+
--oo-sidebar-left-size: 240px;
|
|
11
|
+
--oo-sidebar-right-size: 280px;
|
|
12
|
+
--oo-main-size: 0px; /* flex-filled; not typically read */
|
|
13
|
+
--oo-panel-bottom-size: 200px;
|
|
14
|
+
--oo-statusbar-size: 22px;
|
|
15
|
+
--oo-overlay-size: 0px;
|
|
16
|
+
|
|
17
|
+
--oo-sidebar-left-visible: 1;
|
|
18
|
+
--oo-sidebar-right-visible: 0;
|
|
19
|
+
--oo-panel-bottom-visible: 0;
|
|
20
|
+
--oo-activitybar-visible: 1;
|
|
21
|
+
--oo-statusbar-visible: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Utility: width of main viewport after subtracting visible chrome widths. */
|
|
25
|
+
.oo-main-fluid-width {
|
|
26
|
+
width: calc(
|
|
27
|
+
100vw
|
|
28
|
+
- var(--oo-activitybar-size, 0px)
|
|
29
|
+
- var(--oo-sidebar-left-size, 0px) * var(--oo-sidebar-left-visible, 0)
|
|
30
|
+
- var(--oo-sidebar-right-size, 0px) * var(--oo-sidebar-right-visible, 0)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type ThemeMode = 'light' | 'dark';
|
|
2
|
+
export type ThemeSource = {
|
|
3
|
+
kind: 'tokens';
|
|
4
|
+
tokens: Record<string, string>;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'css';
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
export interface ThemeDefinition {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
variants: Partial<Record<ThemeMode, ThemeSource>>;
|
|
13
|
+
}
|
|
14
|
+
export declare function registerTheme(def: ThemeDefinition): void;
|
|
15
|
+
export declare function unregisterTheme(id: string): void;
|
|
16
|
+
export declare function getTheme(id: string): ThemeDefinition | undefined;
|
|
17
|
+
export declare function listThemes(): ThemeDefinition[];
|
|
18
|
+
export declare function applyTheme(root: HTMLElement, themeId: string, mode: ThemeMode): void;
|
|
19
|
+
export declare const SIZE_NAMES: string[];
|
|
20
|
+
export declare const SIZE_SET: Set<string>;
|
|
21
|
+
export type SizeName = (typeof SIZE_NAMES)[number];
|
|
22
|
+
export interface AppearanceProps {
|
|
23
|
+
variant?: string;
|
|
24
|
+
size?: SizeName;
|
|
25
|
+
density?: 'compact' | 'comfortable' | 'spacious';
|
|
26
|
+
}
|
|
27
|
+
export declare function appearance(base: string, opts?: AppearanceProps): string;
|
|
28
|
+
export declare function resolveVariableSize(name: string): string;
|
|
29
|
+
export declare function resolveVariableFontSize(name: string): string;
|