@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,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { appearance } from '../../styles/index.js';
|
|
3
|
+
import './Text.css';
|
|
4
|
+
export function Text({ text, variant = 'body', muted, weight, align, tone, style, }) {
|
|
5
|
+
const cls = [
|
|
6
|
+
appearance('oo-text', { variant }),
|
|
7
|
+
muted ? 'oo-text--muted' : '',
|
|
8
|
+
weight === 'bold' ? 'oo-text--bold' : '',
|
|
9
|
+
align ? `oo-text--align-${align}` : '',
|
|
10
|
+
tone ? `oo-text--tone-${tone}` : '',
|
|
11
|
+
]
|
|
12
|
+
.filter(Boolean)
|
|
13
|
+
.join(' ');
|
|
14
|
+
return (_jsx("span", { className: cls, style: style, children: text }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Catalog registration for display components (dynamic import — no eager load).
|
|
2
|
+
export const CATALOG_DISPLAY_MAP = [
|
|
3
|
+
{ component: 'Card', category: 'inline', renderer: { kind: 'react', load: () => import('./Card.js').then((m) => ({ default: m.Card })) } },
|
|
4
|
+
{ component: 'Divider', category: 'inline', renderer: { kind: 'react', load: () => import('./Divider.js').then((m) => ({ default: m.Divider })) } },
|
|
5
|
+
{ component: 'Alert', category: 'inline', renderer: { kind: 'react', load: () => import('./Alert.js').then((m) => ({ default: m.Alert })) } },
|
|
6
|
+
{ component: 'Badge', category: 'inline', renderer: { kind: 'react', load: () => import('./Badge.js').then((m) => ({ default: m.Badge })) } },
|
|
7
|
+
{ component: 'Text', category: 'inline', renderer: { kind: 'react', load: () => import('./Text.js').then((m) => ({ default: m.Text })) } },
|
|
8
|
+
{ component: 'Image', category: 'inline', renderer: { kind: 'react', load: () => import('./Image.js').then((m) => ({ default: m.Image })) } },
|
|
9
|
+
{ component: 'Icon', category: 'inline', renderer: { kind: 'react', load: () => import('./Icon.js').then((m) => ({ default: m.Icon })) } },
|
|
10
|
+
{ component: 'DetailList', category: 'inline', renderer: { kind: 'react', load: () => import('./DetailList.js').then((m) => ({ default: m.DetailList })) } },
|
|
11
|
+
{ component: 'DetailHeader', category: 'inline', renderer: { kind: 'react', load: () => import('./DetailHeader.js').then((m) => ({ default: m.DetailHeader })) } },
|
|
12
|
+
];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { Card } from './Card.js';
|
|
2
|
+
export { Divider } from './Divider.js';
|
|
3
|
+
export { Text } from './Text.js';
|
|
4
|
+
export { Image } from './Image.js';
|
|
5
|
+
export { Icon, NAMED_GLYPH } from './Icon.js';
|
|
6
|
+
export type { IconName } from './Icon.js';
|
|
7
|
+
export { Alert } from './Alert.js';
|
|
8
|
+
export type { AlertProps, AlertTone } from './Alert.js';
|
|
9
|
+
export { Badge } from './Badge.js';
|
|
10
|
+
export type { BadgeProps, BadgeTone } from './Badge.js';
|
|
11
|
+
export { DetailList } from './DetailList.js';
|
|
12
|
+
export type { DetailListProps, DetailItem } from './DetailList.js';
|
|
13
|
+
export { DetailHeader } from './DetailHeader.js';
|
|
14
|
+
export type { DetailHeaderProps, DetailHeaderMeta } from './DetailHeader.js';
|
|
15
|
+
export { DetailContainer } from './DetailContainer.js';
|
|
16
|
+
export type { DetailContainerProps } from './DetailContainer.js';
|
|
17
|
+
export { DetailNotFound } from './DetailNotFound.js';
|
|
18
|
+
export type { DetailNotFoundProps, DetailNotFoundAction } from './DetailNotFound.js';
|
|
19
|
+
export { AddPlaceholder } from './AddPlaceholder.js';
|
|
20
|
+
export type { AddPlaceholderProps } from './AddPlaceholder.js';
|
|
21
|
+
export { SectionTitle } from './SectionTitle.js';
|
|
22
|
+
export type { SectionTitleProps } from './SectionTitle.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Direct-React re-exports. Catalog registration lives in ../catalog.ts.
|
|
2
|
+
export { Card } from './Card.js';
|
|
3
|
+
export { Divider } from './Divider.js';
|
|
4
|
+
export { Text } from './Text.js';
|
|
5
|
+
export { Image } from './Image.js';
|
|
6
|
+
export { Icon, NAMED_GLYPH } from './Icon.js';
|
|
7
|
+
export { Alert } from './Alert.js';
|
|
8
|
+
export { Badge } from './Badge.js';
|
|
9
|
+
export { DetailList } from './DetailList.js';
|
|
10
|
+
export { DetailHeader } from './DetailHeader.js';
|
|
11
|
+
export { DetailContainer } from './DetailContainer.js';
|
|
12
|
+
export { DetailNotFound } from './DetailNotFound.js';
|
|
13
|
+
export { AddPlaceholder } from './AddPlaceholder.js';
|
|
14
|
+
export { SectionTitle } from './SectionTitle.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export interface HtmlEmbedProps {
|
|
3
|
+
html: string;
|
|
4
|
+
height?: number | string;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
allowScripts?: boolean;
|
|
7
|
+
sandbox?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function HtmlEmbed({ html, height, width, allowScripts, sandbox, title, style, className, }: HtmlEmbedProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function HtmlEmbed({ html, height = 200, width = '100%', allowScripts, sandbox, title, style, className, }) {
|
|
3
|
+
const effective = sandbox ?? (allowScripts ? 'allow-scripts allow-same-origin' : 'allow-same-origin');
|
|
4
|
+
return (_jsx("div", { className: ['oo-html-embed', className].filter(Boolean).join(' '), style: {
|
|
5
|
+
border: '1px solid var(--oo-color-border)',
|
|
6
|
+
borderRadius: 'var(--oo-radius-md, 8px)',
|
|
7
|
+
overflow: 'hidden',
|
|
8
|
+
background: 'var(--oo-color-canvas)',
|
|
9
|
+
...style,
|
|
10
|
+
}, children: _jsx("iframe", { srcDoc: html, sandbox: effective, title: title ?? 'embedded HTML', style: {
|
|
11
|
+
width,
|
|
12
|
+
height,
|
|
13
|
+
border: 'none',
|
|
14
|
+
display: 'block',
|
|
15
|
+
} }) }));
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HtmlEmbed } from './HtmlEmbed.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface DangerZoneProps {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
confirmMessage?: string;
|
|
6
|
+
onConfirm: () => void | Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare function DangerZone({ label, description, confirmMessage, onConfirm }: DangerZoneProps): ReactNode;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../control/Button.js';
|
|
3
|
+
// A bordered destructive-action block for settings panels (mirrors web's
|
|
4
|
+
// DangerZone). Used by SettingsContainer so resources don't re-implement the
|
|
5
|
+
// delete affordance.
|
|
6
|
+
export function DangerZone({ label, description, confirmMessage, onConfirm }) {
|
|
7
|
+
function run() {
|
|
8
|
+
if (confirmMessage && !window.confirm(confirmMessage))
|
|
9
|
+
return;
|
|
10
|
+
void onConfirm();
|
|
11
|
+
}
|
|
12
|
+
return (_jsxs("div", { className: "oo-danger-zone", style: wrap, children: [_jsx("div", { style: title, children: "\u26A0\uFE0E DANGER ZONE" }), description ? _jsx("div", { style: desc, children: description }) : null, _jsx("div", { children: _jsx(Button, { label: `🗑︎ ${label}`, variant: "danger", size: "sm", onClick: run }) })] }));
|
|
13
|
+
}
|
|
14
|
+
const wrap = {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
gap: 8,
|
|
18
|
+
borderTop: '1px solid rgb(var(--oo-rgb-danger) / 0.3)',
|
|
19
|
+
paddingTop: 'var(--oo-spacing-md, 16px)',
|
|
20
|
+
paddingBottom: 'var(--oo-spacing-md, 16px)',
|
|
21
|
+
paddingLeft: 'var(--oo-spacing-md, 16px)',
|
|
22
|
+
paddingRight: 'var(--oo-spacing-md, 16px)',
|
|
23
|
+
};
|
|
24
|
+
const title = {
|
|
25
|
+
fontSize: 'var(--oo-font-size-sm)',
|
|
26
|
+
color: 'var(--oo-color-danger)',
|
|
27
|
+
};
|
|
28
|
+
const desc = {
|
|
29
|
+
fontSize: 'var(--oo-font-size-xs)',
|
|
30
|
+
color: 'var(--oo-color-muted)',
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.oo-field-row {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--oo-spacing-xs);
|
|
5
|
+
}
|
|
6
|
+
.oo-field-row__labelline {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: baseline;
|
|
9
|
+
gap: var(--oo-spacing-xs);
|
|
10
|
+
}
|
|
11
|
+
.oo-field-row__label {
|
|
12
|
+
font-size: var(--oo-font-size-sm);
|
|
13
|
+
color: var(--oo-color-text);
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Field.css';
|
|
3
|
+
export interface FieldLabelProps {
|
|
4
|
+
htmlFor?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
typeTag?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function FieldLabel({ htmlFor, label, required, typeTag }: FieldLabelProps): import("react").JSX.Element;
|
|
10
|
+
export interface FieldHintProps {
|
|
11
|
+
text?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function FieldHint({ text }: FieldHintProps): import("react").JSX.Element | null;
|
|
14
|
+
export interface FieldErrorProps {
|
|
15
|
+
name?: string;
|
|
16
|
+
error?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function FieldError({ name, error }: FieldErrorProps): import("react").JSX.Element | null;
|
|
19
|
+
export interface FieldProps {
|
|
20
|
+
name: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
hint?: string;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
typeTag?: string;
|
|
25
|
+
error?: string;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export declare function Field({ name, label, hint, required, typeTag, error, children }: FieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useFormContext } from './Form.js';
|
|
3
|
+
import './Field.css';
|
|
4
|
+
export function FieldLabel({ htmlFor, label, required, typeTag }) {
|
|
5
|
+
return (_jsxs("span", { className: "oo-field-row__labelline", children: [_jsx("label", { className: "oo-field-row__label", htmlFor: htmlFor, children: label }), required ? _jsx("span", { className: "oo-field__required oo-field-row__required", children: "*" }) : null, typeTag ? _jsx("span", { className: "oo-field-row__type", children: typeTag }) : null] }));
|
|
6
|
+
}
|
|
7
|
+
export function FieldHint({ text }) {
|
|
8
|
+
if (!text)
|
|
9
|
+
return null;
|
|
10
|
+
return _jsx("span", { className: "oo-field__hint oo-field-row__hint", children: text });
|
|
11
|
+
}
|
|
12
|
+
export function FieldError({ name, error }) {
|
|
13
|
+
const { errors } = useFormContext();
|
|
14
|
+
const message = error ?? (name ? errors?.[name] : undefined);
|
|
15
|
+
if (!message)
|
|
16
|
+
return null;
|
|
17
|
+
return _jsx("span", { className: "oo-field__error oo-field-row__error", children: message });
|
|
18
|
+
}
|
|
19
|
+
// A field ROW for content that owns no single focusable input — array
|
|
20
|
+
// repeaters, custom format renderers, union pickers. The heading is a <span>,
|
|
21
|
+
// not a <label> (there is no input to associate). Scalar controls do NOT use
|
|
22
|
+
// Field: they render their own <label> via the control's field chrome.
|
|
23
|
+
export function Field({ name, label, hint, required, typeTag, error, children }) {
|
|
24
|
+
return (_jsxs("div", { className: "oo-field-row", children: [label ? (_jsxs("span", { className: "oo-field-row__labelline", children: [_jsx("span", { className: "oo-field-row__label", children: label }), required ? _jsx("span", { className: "oo-field__required oo-field-row__required", children: "*" }) : null, typeTag ? _jsx("span", { className: "oo-field__type oo-field-row__type", children: typeTag }) : null] })) : null, _jsx(FieldHint, { text: hint }), _jsx("div", { className: "oo-field-row__control", children: children }), _jsx(FieldError, { name: name, error: error })] }));
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.oo-field-group {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--oo-spacing-md);
|
|
5
|
+
border: 1px solid var(--oo-color-border);
|
|
6
|
+
border-radius: var(--oo-radius-sm);
|
|
7
|
+
padding: var(--oo-spacing-md);
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
.oo-field-group__legend {
|
|
11
|
+
font-size: var(--oo-font-size-xs);
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
color: var(--oo-color-muted);
|
|
14
|
+
padding: 0 var(--oo-spacing-xs);
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './FieldGroup.css';
|
|
3
|
+
// Fieldset-style grouping of related fields. No header border (that is
|
|
4
|
+
// FormSection's job) — just an optional legend and a bordered box.
|
|
5
|
+
export function FieldGroup({ legend, children }) {
|
|
6
|
+
return (_jsxs("fieldset", { className: "oo-field-group", children: [legend ? _jsx("legend", { className: "oo-field-group__legend", children: legend }) : null, children] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.oo-form {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--oo-form-gap, var(--oo-spacing-md));
|
|
5
|
+
padding: var(--oo-form-padding, var(--oo-spacing-md));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Async-load state. Placeholder treatment — refine per design. Disables input
|
|
9
|
+
while data streams in and fades the body. */
|
|
10
|
+
.oo-form[data-loading='true'] {
|
|
11
|
+
opacity: 0.55;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
transition: opacity 0.2s ease;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
import './Form.css';
|
|
3
|
+
export interface FormContextValue {
|
|
4
|
+
errors?: Record<string, string>;
|
|
5
|
+
namespace?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormContext: import("react").Context<FormContextValue>;
|
|
8
|
+
export declare function useFormContext(): FormContextValue;
|
|
9
|
+
export interface FormProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
errors?: Record<string, string>;
|
|
12
|
+
namespace?: string;
|
|
13
|
+
gap?: number | string;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
onSubmit?: () => void;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
export declare function Form({ children, errors, namespace, gap, loading, onSubmit, style }: FormProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
import './Form.css';
|
|
4
|
+
export const FormContext = createContext({});
|
|
5
|
+
export function useFormContext() {
|
|
6
|
+
return useContext(FormContext);
|
|
7
|
+
}
|
|
8
|
+
export function Form({ children, errors, namespace, gap, loading, onSubmit, style }) {
|
|
9
|
+
const formStyle = {
|
|
10
|
+
...(gap !== undefined ? { gap } : null),
|
|
11
|
+
...style,
|
|
12
|
+
};
|
|
13
|
+
return (_jsx(FormContext.Provider, { value: { errors, namespace }, children: _jsx("form", { className: "oo-form", "data-loading": loading ? 'true' : undefined, style: formStyle, onSubmit: (e) => {
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
onSubmit?.();
|
|
16
|
+
}, children: children }) }));
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type ButtonProps } from '../control/Button.js';
|
|
3
|
+
import './FormActions.css';
|
|
4
|
+
export interface FormActionItem {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
type?: 'button' | 'submit' | 'reset';
|
|
8
|
+
variant?: ButtonProps['variant'];
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
icon?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FormActionsProps {
|
|
14
|
+
actions?: FormActionItem[];
|
|
15
|
+
align?: 'start' | 'end' | 'between';
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function FormActions({ actions, align, children }: FormActionsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../control/Button.js';
|
|
3
|
+
import './FormActions.css';
|
|
4
|
+
export function FormActions({ actions, align = 'start', children }) {
|
|
5
|
+
return (_jsxs("div", { className: "oo-form-actions", "data-align": align, children: [actions
|
|
6
|
+
? actions
|
|
7
|
+
.filter((a) => !a.hidden)
|
|
8
|
+
.map((a, i) => (_jsx(Button, { type: a.type ?? 'button', label: a.icon ? `${a.icon} ${a.label}` : a.label, variant: a.variant, disabled: a.disabled, onClick: a.onClick }, i)))
|
|
9
|
+
: null, children] }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.oo-form-section {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--oo-spacing-sm);
|
|
5
|
+
}
|
|
6
|
+
.oo-form-section__header {
|
|
7
|
+
font-size: var(--oo-font-size-xs);
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
text-transform: uppercase;
|
|
10
|
+
letter-spacing: 0.06em;
|
|
11
|
+
color: var(--oo-color-muted);
|
|
12
|
+
border-bottom: 1px solid var(--oo-color-border);
|
|
13
|
+
padding-bottom: var(--oo-spacing-xs);
|
|
14
|
+
}
|
|
15
|
+
.oo-form-section__body {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: var(--oo-spacing-md);
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './FormSection.css';
|
|
3
|
+
// Section header (uppercase title + bottom border) + its fields. This is the
|
|
4
|
+
// `x-header` pattern from web's JsonSchemaForm.
|
|
5
|
+
export function FormSection({ title, children }) {
|
|
6
|
+
return (_jsxs("section", { className: "oo-form-section", children: [_jsx("header", { className: "oo-form-section__header", children: title }), _jsx("div", { className: "oo-form-section__body", children: children })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.porta-form {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--oo-spacing-md);
|
|
5
|
+
max-width: 360px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.porta-form__oauth {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--oo-spacing-xs);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.porta-form__divider {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--oo-spacing-sm);
|
|
18
|
+
color: var(--oo-color-muted);
|
|
19
|
+
font-size: var(--oo-font-size-xs);
|
|
20
|
+
text-transform: uppercase;
|
|
21
|
+
letter-spacing: 0.5px;
|
|
22
|
+
}
|
|
23
|
+
.porta-form__divider::before,
|
|
24
|
+
.porta-form__divider::after {
|
|
25
|
+
content: '';
|
|
26
|
+
flex: 1;
|
|
27
|
+
height: 1px;
|
|
28
|
+
background: var(--oo-color-border);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.porta-form__fields {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: var(--oo-spacing-sm);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.porta-form__two-step {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
gap: var(--oo-spacing-xs);
|
|
41
|
+
padding: var(--oo-spacing-sm);
|
|
42
|
+
border: 1px solid var(--oo-color-border);
|
|
43
|
+
border-radius: var(--oo-radius-sm);
|
|
44
|
+
}
|
|
45
|
+
.porta-form__two-step-label {
|
|
46
|
+
font-size: var(--oo-font-size-xs);
|
|
47
|
+
color: var(--oo-color-muted);
|
|
48
|
+
}
|
|
49
|
+
.porta-form__two-step-row {
|
|
50
|
+
display: flex;
|
|
51
|
+
gap: var(--oo-spacing-xs);
|
|
52
|
+
align-items: flex-end;
|
|
53
|
+
}
|
|
54
|
+
.porta-form__two-step-row .oo-field {
|
|
55
|
+
flex: 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.porta-form__otp-digits {
|
|
59
|
+
display: flex;
|
|
60
|
+
gap: 4px;
|
|
61
|
+
}
|
|
62
|
+
.porta-form__otp-digit {
|
|
63
|
+
width: 32px;
|
|
64
|
+
height: 36px;
|
|
65
|
+
text-align: center;
|
|
66
|
+
border: 1px solid var(--oo-color-border);
|
|
67
|
+
border-radius: var(--oo-radius-sm);
|
|
68
|
+
background: transparent;
|
|
69
|
+
color: inherit;
|
|
70
|
+
font: inherit;
|
|
71
|
+
font-family: var(--oo-font-mono);
|
|
72
|
+
}
|
|
73
|
+
.porta-form__otp-digit:focus {
|
|
74
|
+
outline: 2px solid var(--oo-color-accent);
|
|
75
|
+
outline-offset: -2px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.porta-form__footer {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
gap: var(--oo-spacing-sm);
|
|
83
|
+
}
|
|
84
|
+
.porta-form__error {
|
|
85
|
+
color: var(--oo-color-danger);
|
|
86
|
+
font-size: var(--oo-font-size-xs);
|
|
87
|
+
}
|
|
88
|
+
.porta-form__pending {
|
|
89
|
+
color: var(--oo-color-muted);
|
|
90
|
+
font-size: var(--oo-font-size-xs);
|
|
91
|
+
}
|
|
92
|
+
.porta-form__aux {
|
|
93
|
+
display: flex;
|
|
94
|
+
gap: var(--oo-spacing-md);
|
|
95
|
+
}
|
|
96
|
+
.porta-form__aux button {
|
|
97
|
+
background: transparent;
|
|
98
|
+
border: none;
|
|
99
|
+
color: var(--oo-color-accent);
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
font: inherit;
|
|
102
|
+
font-size: var(--oo-font-size-xs);
|
|
103
|
+
padding: 0;
|
|
104
|
+
text-decoration: underline;
|
|
105
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import '../control/_field-parts.css';
|
|
3
|
+
import './LoginForm.css';
|
|
4
|
+
export interface LoginFormProps {
|
|
5
|
+
/** Filter to a subset by provider id; omit to render every registered provider. */
|
|
6
|
+
providers?: string[];
|
|
7
|
+
allowSignup?: boolean;
|
|
8
|
+
allowForgotPassword?: boolean;
|
|
9
|
+
onSignup?: () => void;
|
|
10
|
+
onForgotPassword?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function LoginForm({ providers: filter, allowSignup, allowForgotPassword, onSignup, onForgotPassword, }: LoginFormProps): ReactNode;
|