@kestack/web-platform 0.0.0-stage → 0.0.1
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 +523 -2
- package/dist/_virtual/_rolldown/runtime.js +27 -0
- package/dist/app/apis/apis.d.ts +55 -0
- package/dist/app/apis/apis.d.ts.map +1 -0
- package/dist/app/apis/apis.js +43 -0
- package/dist/app/apis/apis.js.map +1 -0
- package/dist/app/apis/index.d.ts +2 -0
- package/dist/app/apis/index.js +2 -0
- package/dist/app/app.d.ts +77 -0
- package/dist/app/app.d.ts.map +1 -0
- package/dist/app/app.js +118 -0
- package/dist/app/app.js.map +1 -0
- package/dist/app/assemble/assemble.d.ts +167 -0
- package/dist/app/assemble/assemble.d.ts.map +1 -0
- package/dist/app/assemble/assemble.js +186 -0
- package/dist/app/assemble/assemble.js.map +1 -0
- package/dist/app/assemble/index.d.ts +2 -0
- package/dist/app/assemble/index.js +2 -0
- package/dist/app/assemble/public.d.ts +18 -0
- package/dist/app/assemble/public.d.ts.map +1 -0
- package/dist/app/assemble/public.js +41 -0
- package/dist/app/assemble/public.js.map +1 -0
- package/dist/app/gate/domain/check.d.ts +33 -0
- package/dist/app/gate/domain/check.d.ts.map +1 -0
- package/dist/app/gate/domain/check.js +50 -0
- package/dist/app/gate/domain/check.js.map +1 -0
- package/dist/app/gate/domain/index.d.ts +4 -0
- package/dist/app/gate/domain/index.js +3 -0
- package/dist/app/gate/domain/machine.d.ts +180 -0
- package/dist/app/gate/domain/machine.d.ts.map +1 -0
- package/dist/app/gate/domain/machine.js +383 -0
- package/dist/app/gate/domain/machine.js.map +1 -0
- package/dist/app/gate/domain/services.d.ts +37 -0
- package/dist/app/gate/domain/services.d.ts.map +1 -0
- package/dist/app/gate/domain/services.js +13 -0
- package/dist/app/gate/domain/services.js.map +1 -0
- package/dist/app/gate/domain/types.d.ts +44 -0
- package/dist/app/gate/domain/types.d.ts.map +1 -0
- package/dist/app/gate/domain/types.js +0 -0
- package/dist/app/gate/gate.d.ts +86 -0
- package/dist/app/gate/gate.d.ts.map +1 -0
- package/dist/app/gate/gate.js +351 -0
- package/dist/app/gate/gate.js.map +1 -0
- package/dist/app/gate/index.d.ts +5 -0
- package/dist/app/gate/index.js +3 -0
- package/dist/app/gate/memory.d.ts +97 -0
- package/dist/app/gate/memory.d.ts.map +1 -0
- package/dist/app/gate/memory.js +48 -0
- package/dist/app/gate/memory.js.map +1 -0
- package/dist/app/gate/react.d.ts +74 -0
- package/dist/app/gate/react.d.ts.map +1 -0
- package/dist/app/gate/react.js +107 -0
- package/dist/app/gate/react.js.map +1 -0
- package/dist/app/host/host.d.ts +90 -0
- package/dist/app/host/host.d.ts.map +1 -0
- package/dist/app/host/host.js +75 -0
- package/dist/app/host/host.js.map +1 -0
- package/dist/app/host/index.d.ts +2 -0
- package/dist/app/host/index.js +2 -0
- package/dist/app/index.d.ts +4 -0
- package/dist/app/index.js +2 -0
- package/dist/app/session/define.d.ts +60 -0
- package/dist/app/session/define.d.ts.map +1 -0
- package/dist/app/session/define.js +31 -0
- package/dist/app/session/define.js.map +1 -0
- package/dist/app/session/index.d.ts +6 -0
- package/dist/app/session/index.js +6 -0
- package/dist/app/session/keeper.d.ts +17 -0
- package/dist/app/session/keeper.d.ts.map +1 -0
- package/dist/app/session/keeper.js +21 -0
- package/dist/app/session/keeper.js.map +1 -0
- package/dist/app/session/open.d.ts +44 -0
- package/dist/app/session/open.d.ts.map +1 -0
- package/dist/app/session/open.js +70 -0
- package/dist/app/session/open.js.map +1 -0
- package/dist/app/session/react.d.ts +17 -0
- package/dist/app/session/react.d.ts.map +1 -0
- package/dist/app/session/react.js +28 -0
- package/dist/app/session/react.js.map +1 -0
- package/dist/app/session/status.d.ts +24 -0
- package/dist/app/session/status.d.ts.map +1 -0
- package/dist/app/session/status.js +25 -0
- package/dist/app/session/status.js.map +1 -0
- package/dist/app/web-host.d.ts +16 -0
- package/dist/app/web-host.d.ts.map +1 -0
- package/dist/app/web-host.js +85 -0
- package/dist/app/web-host.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/client/root/index.d.ts +2 -0
- package/dist/client/root/index.js +2 -0
- package/dist/client/root/root.d.ts +62 -0
- package/dist/client/root/root.d.ts.map +1 -0
- package/dist/client/root/root.js +92 -0
- package/dist/client/root/root.js.map +1 -0
- package/dist/client/server.d.ts +2 -0
- package/dist/client/server.js +2 -0
- package/dist/client/theme/index.d.ts +2 -0
- package/dist/client/theme/index.js +2 -0
- package/dist/client/theme/tanstack-start.d.ts +5 -0
- package/dist/client/theme/tanstack-start.d.ts.map +1 -0
- package/dist/client/theme/tanstack-start.js +9 -0
- package/dist/client/theme/tanstack-start.js.map +1 -0
- package/dist/components/hooks/use-element-width.d.ts +9 -0
- package/dist/components/hooks/use-element-width.d.ts.map +1 -0
- package/dist/components/hooks/use-element-width.js +26 -0
- package/dist/components/hooks/use-element-width.js.map +1 -0
- package/dist/components/hooks/use-mobile.d.ts +6 -0
- package/dist/components/hooks/use-mobile.d.ts.map +1 -0
- package/dist/components/hooks/use-mobile.js +16 -0
- package/dist/components/hooks/use-mobile.js.map +1 -0
- package/dist/components/hooks/use-scroll.d.ts +12 -0
- package/dist/components/hooks/use-scroll.d.ts.map +1 -0
- package/dist/components/hooks/use-scroll.js +198 -0
- package/dist/components/hooks/use-scroll.js.map +1 -0
- package/dist/components/lib/lucide.d.ts +1 -0
- package/dist/components/lib/lucide.js +10 -0
- package/dist/components/lib/lucide.js.map +1 -0
- package/dist/components/lib/motion.d.ts +1 -0
- package/dist/components/lib/motion.js +1 -0
- package/dist/components/lib/scrollStyles.d.ts +13 -0
- package/dist/components/lib/scrollStyles.d.ts.map +1 -0
- package/dist/components/lib/scrollStyles.js +19 -0
- package/dist/components/lib/scrollStyles.js.map +1 -0
- package/dist/components/lib/shadow-dom.d.ts +17 -0
- package/dist/components/lib/shadow-dom.d.ts.map +1 -0
- package/dist/components/lib/shadow-dom.js +50 -0
- package/dist/components/lib/shadow-dom.js.map +1 -0
- package/dist/components/lib/utils.d.ts +5 -0
- package/dist/components/lib/utils.d.ts.map +1 -0
- package/dist/components/lib/utils.js +10 -0
- package/dist/components/lib/utils.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +9 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +55 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +96 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +13 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +45 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +7 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +15 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/attachment.d.ts +26 -0
- package/dist/components/ui/attachment.d.ts.map +1 -0
- package/dist/components/ui/attachment.js +106 -0
- package/dist/components/ui/attachment.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +14 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +52 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +31 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +13 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +74 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/bubble.d.ts +19 -0
- package/dist/components/ui/bubble.d.ts.map +1 -0
- package/dist/components/ui/bubble.js +75 -0
- package/dist/components/ui/bubble.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +13 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +43 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +46 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +13 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +110 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +14 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +58 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +31 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +133 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +47 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +150 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +22 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +8 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +25 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +27 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +163 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.d.ts +22 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +90 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +32 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +135 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +94 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.js +2 -0
- package/dist/components/ui/drawer.d.ts +19 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +125 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +35 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +141 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +14 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +61 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/field.d.ts +27 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +111 -0
- package/dist/components/ui/field.js.map +1 -0
- package/dist/components/ui/file-tree.d.ts +62 -0
- package/dist/components/ui/file-tree.d.ts.map +1 -0
- package/dist/components/ui/file-tree.js +300 -0
- package/dist/components/ui/file-tree.js.map +1 -0
- package/dist/components/ui/google-button.d.ts +9 -0
- package/dist/components/ui/google-button.d.ts.map +1 -0
- package/dist/components/ui/google-button.js +183 -0
- package/dist/components/ui/google-button.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +8 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +38 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +21 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +81 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +14 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +48 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +17 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/item.d.ts +25 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +123 -0
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +6 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +21 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +16 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/marker.d.ts +13 -0
- package/dist/components/ui/marker.d.ts.map +1 -0
- package/dist/components/ui/marker.js +45 -0
- package/dist/components/ui/marker.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +32 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +138 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/message-scroller.d.ts +13 -0
- package/dist/components/ui/message-scroller.d.ts.map +1 -0
- package/dist/components/ui/message-scroller.js +62 -0
- package/dist/components/ui/message-scroller.js.map +1 -0
- package/dist/components/ui/message.d.ts +13 -0
- package/dist/components/ui/message.d.ts.map +1 -0
- package/dist/components/ui/message.js +51 -0
- package/dist/components/ui/message.js.map +1 -0
- package/dist/components/ui/native-select.d.ts +11 -0
- package/dist/components/ui/native-select.d.ts.map +1 -0
- package/dist/components/ui/native-select.js +40 -0
- package/dist/components/ui/native-select.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +84 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +20 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +82 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +12 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +56 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +10 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +46 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/questionnaire.d.ts +22 -0
- package/dist/components/ui/questionnaire.d.ts.map +1 -0
- package/dist/components/ui/questionnaire.js +172 -0
- package/dist/components/ui/questionnaire.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +8 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +28 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +10 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +30 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +10 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +38 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +100 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +16 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +17 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +90 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +5 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +6 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +6 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +28 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +5 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +17 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +68 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +13 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +47 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +15 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.d.ts +19 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +125 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +14 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +53 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +11 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +37 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +43 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/viewers/diff-viewer/align.d.ts +23 -0
- package/dist/components/viewers/diff-viewer/align.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/align.js +68 -0
- package/dist/components/viewers/diff-viewer/align.js.map +1 -0
- package/dist/components/viewers/diff-viewer/collapse.d.ts +20 -0
- package/dist/components/viewers/diff-viewer/collapse.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/collapse.js +84 -0
- package/dist/components/viewers/diff-viewer/collapse.js.map +1 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.d.ts +34 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.js +373 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.js.map +1 -0
- package/dist/components/viewers/diff-viewer/index.d.ts +2 -0
- package/dist/components/viewers/diff-viewer/index.js +2 -0
- package/dist/components/viewers/diff-viewer/render-model.d.ts +27 -0
- package/dist/components/viewers/diff-viewer/render-model.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/render-model.js +83 -0
- package/dist/components/viewers/diff-viewer/render-model.js.map +1 -0
- package/dist/components/viewers/diff-viewer/sync-rows.d.ts +8 -0
- package/dist/components/viewers/diff-viewer/sync-rows.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/sync-rows.js +32 -0
- package/dist/components/viewers/diff-viewer/sync-rows.js.map +1 -0
- package/dist/components/viewers/file-tree/expand.d.ts +7 -0
- package/dist/components/viewers/file-tree/expand.d.ts.map +1 -0
- package/dist/components/viewers/file-tree/expand.js +37 -0
- package/dist/components/viewers/file-tree/expand.js.map +1 -0
- package/dist/components/viewers/file-tree/file-tree.d.ts +20 -0
- package/dist/components/viewers/file-tree/file-tree.d.ts.map +1 -0
- package/dist/components/viewers/file-tree/file-tree.js +116 -0
- package/dist/components/viewers/file-tree/file-tree.js.map +1 -0
- package/dist/components/viewers/file-tree/index.d.ts +3 -0
- package/dist/components/viewers/file-tree/index.js +3 -0
- package/dist/components/viewers/git-changes/git-changes.d.ts +40 -0
- package/dist/components/viewers/git-changes/git-changes.d.ts.map +1 -0
- package/dist/components/viewers/git-changes/git-changes.js +170 -0
- package/dist/components/viewers/git-changes/git-changes.js.map +1 -0
- package/dist/components/viewers/git-changes/index.d.ts +2 -0
- package/dist/components/viewers/git-changes/index.js +2 -0
- package/dist/components/viewers/json/index.d.ts +4 -0
- package/dist/components/viewers/json/index.js +4 -0
- package/dist/components/viewers/json/json-editor.d.ts +14 -0
- package/dist/components/viewers/json/json-editor.d.ts.map +1 -0
- package/dist/components/viewers/json/json-editor.js +84 -0
- package/dist/components/viewers/json/json-editor.js.map +1 -0
- package/dist/components/viewers/json/json-tree.d.ts +11 -0
- package/dist/components/viewers/json/json-tree.d.ts.map +1 -0
- package/dist/components/viewers/json/json-tree.js +88 -0
- package/dist/components/viewers/json/json-tree.js.map +1 -0
- package/dist/components/viewers/json/json-viewer.d.ts +10 -0
- package/dist/components/viewers/json/json-viewer.d.ts.map +1 -0
- package/dist/components/viewers/json/json-viewer.js +48 -0
- package/dist/components/viewers/json/json-viewer.js.map +1 -0
- package/dist/components/viewers/markdown-viewer/index.d.ts +2 -0
- package/dist/components/viewers/markdown-viewer/index.js +2 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.d.ts +8 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.d.ts.map +1 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.js +65 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.js.map +1 -0
- package/dist/components/viewers/source-explorer/index.d.ts +2 -0
- package/dist/components/viewers/source-explorer/index.js +2 -0
- package/dist/components/viewers/source-explorer/initial-selection.d.ts +6 -0
- package/dist/components/viewers/source-explorer/initial-selection.d.ts.map +1 -0
- package/dist/components/viewers/source-explorer/initial-selection.js +13 -0
- package/dist/components/viewers/source-explorer/initial-selection.js.map +1 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.d.ts +11 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.d.ts.map +1 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.js +21 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.js.map +1 -0
- package/dist/components/viewers/source-explorer/source-explorer.d.ts +49 -0
- package/dist/components/viewers/source-explorer/source-explorer.d.ts.map +1 -0
- package/dist/components/viewers/source-explorer/source-explorer.js +364 -0
- package/dist/components/viewers/source-explorer/source-explorer.js.map +1 -0
- package/dist/components/viewers/source-viewer/index.d.ts +2 -0
- package/dist/components/viewers/source-viewer/index.js +2 -0
- package/dist/components/viewers/source-viewer/source-viewer.d.ts +33 -0
- package/dist/components/viewers/source-viewer/source-viewer.d.ts.map +1 -0
- package/dist/components/viewers/source-viewer/source-viewer.js +224 -0
- package/dist/components/viewers/source-viewer/source-viewer.js.map +1 -0
- package/dist/define/index.d.ts +10 -0
- package/dist/define/index.js +4 -0
- package/dist/feedback/index.d.ts +2 -0
- package/dist/feedback/index.js +2 -0
- package/dist/feedback/sound.d.ts +28 -0
- package/dist/feedback/sound.d.ts.map +1 -0
- package/dist/feedback/sound.js +150 -0
- package/dist/feedback/sound.js.map +1 -0
- package/dist/form/components/submit-button.d.ts +11 -0
- package/dist/form/components/submit-button.d.ts.map +1 -0
- package/dist/form/components/submit-button.js +26 -0
- package/dist/form/components/submit-button.js.map +1 -0
- package/dist/form/context.d.ts +8 -0
- package/dist/form/context.d.ts.map +1 -0
- package/dist/form/context.js +11 -0
- package/dist/form/context.js.map +1 -0
- package/dist/form/create-form-hook.d.ts +62 -0
- package/dist/form/create-form-hook.d.ts.map +1 -0
- package/dist/form/create-form-hook.js +51 -0
- package/dist/form/create-form-hook.js.map +1 -0
- package/dist/form/fields/date-picker-field.d.ts +9 -0
- package/dist/form/fields/date-picker-field.d.ts.map +1 -0
- package/dist/form/fields/date-picker-field.js +84 -0
- package/dist/form/fields/date-picker-field.js.map +1 -0
- package/dist/form/fields/select-field.d.ts +15 -0
- package/dist/form/fields/select-field.d.ts.map +1 -0
- package/dist/form/fields/select-field.js +65 -0
- package/dist/form/fields/select-field.js.map +1 -0
- package/dist/form/fields/switch-field.d.ts +9 -0
- package/dist/form/fields/switch-field.d.ts.map +1 -0
- package/dist/form/fields/switch-field.js +56 -0
- package/dist/form/fields/switch-field.js.map +1 -0
- package/dist/form/fields/text-field.d.ts +10 -0
- package/dist/form/fields/text-field.d.ts.map +1 -0
- package/dist/form/fields/text-field.js +58 -0
- package/dist/form/fields/text-field.js.map +1 -0
- package/dist/form/fields/textarea-field.d.ts +10 -0
- package/dist/form/fields/textarea-field.d.ts.map +1 -0
- package/dist/form/fields/textarea-field.js +58 -0
- package/dist/form/fields/textarea-field.js.map +1 -0
- package/dist/form/index.d.ts +10 -0
- package/dist/form/index.js +3 -0
- package/dist/form/types.d.ts +51 -0
- package/dist/form/types.d.ts.map +1 -0
- package/dist/form/types.js +23 -0
- package/dist/form/types.js.map +1 -0
- package/dist/input/device/device.d.ts +21 -0
- package/dist/input/device/device.d.ts.map +1 -0
- package/dist/input/device/device.js +61 -0
- package/dist/input/device/device.js.map +1 -0
- package/dist/input/device/index.d.ts +2 -0
- package/dist/input/device/index.js +2 -0
- package/dist/input/gesture/index.d.ts +9 -0
- package/dist/input/gesture/index.js +5 -0
- package/dist/input/gesture/patterns/index.d.ts +5 -0
- package/dist/input/gesture/patterns/index.js +3 -0
- package/dist/input/gesture/patterns/pull-to-refresh/index.d.ts +2 -0
- package/dist/input/gesture/patterns/pull-to-refresh/index.js +2 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.d.ts +32 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.d.ts.map +1 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.js +75 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.js.map +1 -0
- package/dist/input/gesture/patterns/sidebar/index.d.ts +2 -0
- package/dist/input/gesture/patterns/sidebar/index.js +2 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.d.ts +41 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.d.ts.map +1 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.js +131 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.js.map +1 -0
- package/dist/input/gesture/recognizers/index.d.ts +3 -0
- package/dist/input/gesture/recognizers/index.js +2 -0
- package/dist/input/gesture/recognizers/swipe/index.d.ts +2 -0
- package/dist/input/gesture/recognizers/swipe/index.js +2 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.d.ts +56 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.d.ts.map +1 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.js +150 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.js.map +1 -0
- package/dist/input/gesture/zones/index.d.ts +4 -0
- package/dist/input/gesture/zones/index.js +2 -0
- package/dist/input/gesture/zones/touch-input/index.d.ts +3 -0
- package/dist/input/gesture/zones/touch-input/index.js +3 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.d.ts +28 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.d.ts.map +1 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.js +61 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.js.map +1 -0
- package/dist/input/gesture/zones/touch-input/touch-input.d.ts +54 -0
- package/dist/input/gesture/zones/touch-input/touch-input.d.ts.map +1 -0
- package/dist/input/gesture/zones/touch-input/touch-input.js +243 -0
- package/dist/input/gesture/zones/touch-input/touch-input.js.map +1 -0
- package/dist/input/gesture/zones/zone/index.d.ts +3 -0
- package/dist/input/gesture/zones/zone/index.js +2 -0
- package/dist/input/gesture/zones/zone/motion-pointers.d.ts +33 -0
- package/dist/input/gesture/zones/zone/motion-pointers.d.ts.map +1 -0
- package/dist/input/gesture/zones/zone/motion-pointers.js +52 -0
- package/dist/input/gesture/zones/zone/motion-pointers.js.map +1 -0
- package/dist/input/gesture/zones/zone/zone.d.ts +93 -0
- package/dist/input/gesture/zones/zone/zone.d.ts.map +1 -0
- package/dist/input/gesture/zones/zone/zone.js +169 -0
- package/dist/input/gesture/zones/zone/zone.js.map +1 -0
- package/dist/input/index.d.ts +8 -0
- package/dist/input/index.js +6 -0
- package/dist/pwa/browser/dom-events.d.ts +9 -0
- package/dist/pwa/browser/dom-events.d.ts.map +1 -0
- package/dist/pwa/browser/dom-events.js +10 -0
- package/dist/pwa/browser/dom-events.js.map +1 -0
- package/dist/pwa/browser/subscription-ref.d.ts +6 -0
- package/dist/pwa/browser/subscription-ref.d.ts.map +1 -0
- package/dist/pwa/browser/subscription-ref.js +19 -0
- package/dist/pwa/browser/subscription-ref.js.map +1 -0
- package/dist/pwa/client/client.d.ts +32 -0
- package/dist/pwa/client/client.d.ts.map +1 -0
- package/dist/pwa/client/client.js +36 -0
- package/dist/pwa/client/client.js.map +1 -0
- package/dist/pwa/client/commands/commands.d.ts +9 -0
- package/dist/pwa/client/commands/commands.d.ts.map +1 -0
- package/dist/pwa/client/commands/commands.js +21 -0
- package/dist/pwa/client/commands/commands.js.map +1 -0
- package/dist/pwa/client/commands/index.d.ts +2 -0
- package/dist/pwa/client/commands/index.js +2 -0
- package/dist/pwa/client/index.d.ts +3 -0
- package/dist/pwa/client/index.js +3 -0
- package/dist/pwa/client/registration.d.ts +14 -0
- package/dist/pwa/client/registration.d.ts.map +1 -0
- package/dist/pwa/client/registration.js +36 -0
- package/dist/pwa/client/registration.js.map +1 -0
- package/dist/pwa/client/runtime-cache.d.ts +9 -0
- package/dist/pwa/client/runtime-cache.d.ts.map +1 -0
- package/dist/pwa/client/runtime-cache.js +15 -0
- package/dist/pwa/client/runtime-cache.js.map +1 -0
- package/dist/pwa/client/status/index.d.ts +2 -0
- package/dist/pwa/client/status/index.js +2 -0
- package/dist/pwa/client/status/status.d.ts +136 -0
- package/dist/pwa/client/status/status.d.ts.map +1 -0
- package/dist/pwa/client/status/status.js +83 -0
- package/dist/pwa/client/status/status.js.map +1 -0
- package/dist/pwa/extras/display-mode/display-mode.d.ts +18 -0
- package/dist/pwa/extras/display-mode/display-mode.d.ts.map +1 -0
- package/dist/pwa/extras/display-mode/display-mode.js +42 -0
- package/dist/pwa/extras/display-mode/display-mode.js.map +1 -0
- package/dist/pwa/extras/display-mode/index.d.ts +2 -0
- package/dist/pwa/extras/display-mode/index.js +2 -0
- package/dist/pwa/extras/index.d.ts +13 -0
- package/dist/pwa/extras/index.js +9 -0
- package/dist/pwa/extras/install/index.d.ts +5 -0
- package/dist/pwa/extras/install/index.js +5 -0
- package/dist/pwa/extras/install/install-content.d.ts +12 -0
- package/dist/pwa/extras/install/install-content.d.ts.map +1 -0
- package/dist/pwa/extras/install/install-content.js +57 -0
- package/dist/pwa/extras/install/install-content.js.map +1 -0
- package/dist/pwa/extras/install/install-dismissal.d.ts +5 -0
- package/dist/pwa/extras/install/install-dismissal.d.ts.map +1 -0
- package/dist/pwa/extras/install/install-dismissal.js +20 -0
- package/dist/pwa/extras/install/install-dismissal.js.map +1 -0
- package/dist/pwa/extras/install/install-prompt.d.ts +12 -0
- package/dist/pwa/extras/install/install-prompt.d.ts.map +1 -0
- package/dist/pwa/extras/install/install-prompt.js +66 -0
- package/dist/pwa/extras/install/install-prompt.js.map +1 -0
- package/dist/pwa/extras/install/install.d.ts +125 -0
- package/dist/pwa/extras/install/install.d.ts.map +1 -0
- package/dist/pwa/extras/install/install.js +80 -0
- package/dist/pwa/extras/install/install.js.map +1 -0
- package/dist/pwa/extras/install/ios.d.ts +8 -0
- package/dist/pwa/extras/install/ios.d.ts.map +1 -0
- package/dist/pwa/extras/install/ios.js +10 -0
- package/dist/pwa/extras/install/ios.js.map +1 -0
- package/dist/pwa/extras/install/media-query.d.ts +5 -0
- package/dist/pwa/extras/install/media-query.d.ts.map +1 -0
- package/dist/pwa/extras/install/media-query.js +15 -0
- package/dist/pwa/extras/install/media-query.js.map +1 -0
- package/dist/pwa/extras/lazy-service/index.d.ts +2 -0
- package/dist/pwa/extras/lazy-service/index.js +2 -0
- package/dist/pwa/extras/lazy-service/lazy-service.d.ts +11 -0
- package/dist/pwa/extras/lazy-service/lazy-service.d.ts.map +1 -0
- package/dist/pwa/extras/lazy-service/lazy-service.js +30 -0
- package/dist/pwa/extras/lazy-service/lazy-service.js.map +1 -0
- package/dist/pwa/extras/online/index.d.ts +3 -0
- package/dist/pwa/extras/online/index.js +3 -0
- package/dist/pwa/extras/online/offline-indicator.d.ts +11 -0
- package/dist/pwa/extras/online/offline-indicator.d.ts.map +1 -0
- package/dist/pwa/extras/online/offline-indicator.js +26 -0
- package/dist/pwa/extras/online/offline-indicator.js.map +1 -0
- package/dist/pwa/extras/online/online.d.ts +15 -0
- package/dist/pwa/extras/online/online.d.ts.map +1 -0
- package/dist/pwa/extras/online/online.js +27 -0
- package/dist/pwa/extras/online/online.js.map +1 -0
- package/dist/pwa/extras/storage/index.d.ts +2 -0
- package/dist/pwa/extras/storage/index.js +2 -0
- package/dist/pwa/extras/storage/storage.d.ts +28 -0
- package/dist/pwa/extras/storage/storage.d.ts.map +1 -0
- package/dist/pwa/extras/storage/storage.js +51 -0
- package/dist/pwa/extras/storage/storage.js.map +1 -0
- package/dist/pwa/index.d.ts +8 -0
- package/dist/pwa/index.js +5 -0
- package/dist/pwa/react/head.d.ts +33 -0
- package/dist/pwa/react/head.d.ts.map +1 -0
- package/dist/pwa/react/head.js +43 -0
- package/dist/pwa/react/head.js.map +1 -0
- package/dist/pwa/react/index.d.ts +4 -0
- package/dist/pwa/react/index.js +3 -0
- package/dist/pwa/react/react.d.ts +33 -0
- package/dist/pwa/react/react.d.ts.map +1 -0
- package/dist/pwa/react/react.js +67 -0
- package/dist/pwa/react/react.js.map +1 -0
- package/dist/pwa/react/update-prompt.d.ts +12 -0
- package/dist/pwa/react/update-prompt.d.ts.map +1 -0
- package/dist/pwa/react/update-prompt.js +23 -0
- package/dist/pwa/react/update-prompt.js.map +1 -0
- package/dist/pwa/react/update-toast.d.ts +15 -0
- package/dist/pwa/react/update-toast.d.ts.map +1 -0
- package/dist/pwa/react/update-toast.js +52 -0
- package/dist/pwa/react/update-toast.js.map +1 -0
- package/dist/pwa/root/index.d.ts +2 -0
- package/dist/pwa/root/index.js +2 -0
- package/dist/pwa/root/root.d.ts +14 -0
- package/dist/pwa/root/root.d.ts.map +1 -0
- package/dist/pwa/root/root.js +35 -0
- package/dist/pwa/root/root.js.map +1 -0
- package/dist/pwa/rpc/client/client.d.ts +49 -0
- package/dist/pwa/rpc/client/client.d.ts.map +1 -0
- package/dist/pwa/rpc/client/client.js +55 -0
- package/dist/pwa/rpc/client/client.js.map +1 -0
- package/dist/pwa/rpc/client/index.d.ts +3 -0
- package/dist/pwa/rpc/client/index.js +3 -0
- package/dist/pwa/rpc/client/page-environment.d.ts +25 -0
- package/dist/pwa/rpc/client/page-environment.d.ts.map +1 -0
- package/dist/pwa/rpc/client/page-environment.js +46 -0
- package/dist/pwa/rpc/client/page-environment.js.map +1 -0
- package/dist/pwa/rpc/client/platform.d.ts +26 -0
- package/dist/pwa/rpc/client/platform.d.ts.map +1 -0
- package/dist/pwa/rpc/client/platform.js +144 -0
- package/dist/pwa/rpc/client/platform.js.map +1 -0
- package/dist/pwa/rpc/client/version-skew.d.ts +24 -0
- package/dist/pwa/rpc/client/version-skew.d.ts.map +1 -0
- package/dist/pwa/rpc/client/version-skew.js +63 -0
- package/dist/pwa/rpc/client/version-skew.js.map +1 -0
- package/dist/pwa/rpc/handshake/handshake.d.ts +74 -0
- package/dist/pwa/rpc/handshake/handshake.d.ts.map +1 -0
- package/dist/pwa/rpc/handshake/handshake.js +104 -0
- package/dist/pwa/rpc/handshake/handshake.js.map +1 -0
- package/dist/pwa/rpc/handshake/index.d.ts +2 -0
- package/dist/pwa/rpc/handshake/index.js +2 -0
- package/dist/pwa/rpc/worker/connections.d.ts +31 -0
- package/dist/pwa/rpc/worker/connections.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/connections.js +48 -0
- package/dist/pwa/rpc/worker/connections.js.map +1 -0
- package/dist/pwa/rpc/worker/index.d.ts +2 -0
- package/dist/pwa/rpc/worker/index.js +2 -0
- package/dist/pwa/rpc/worker/keep-alive.d.ts +11 -0
- package/dist/pwa/rpc/worker/keep-alive.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/keep-alive.js +30 -0
- package/dist/pwa/rpc/worker/keep-alive.js.map +1 -0
- package/dist/pwa/rpc/worker/runner-platform.d.ts +18 -0
- package/dist/pwa/rpc/worker/runner-platform.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/runner-platform.js +113 -0
- package/dist/pwa/rpc/worker/runner-platform.js.map +1 -0
- package/dist/pwa/rpc/worker/worker.d.ts +22 -0
- package/dist/pwa/rpc/worker/worker.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/worker.js +23 -0
- package/dist/pwa/rpc/worker/worker.js.map +1 -0
- package/dist/pwa/shared/build/build.d.ts +55 -0
- package/dist/pwa/shared/build/build.d.ts.map +1 -0
- package/dist/pwa/shared/build/build.js +55 -0
- package/dist/pwa/shared/build/build.js.map +1 -0
- package/dist/pwa/shared/build/canonical-json.d.ts +5 -0
- package/dist/pwa/shared/build/canonical-json.d.ts.map +1 -0
- package/dist/pwa/shared/build/canonical-json.js +7 -0
- package/dist/pwa/shared/build/canonical-json.js.map +1 -0
- package/dist/pwa/shared/build/fnv1a.d.ts +5 -0
- package/dist/pwa/shared/build/fnv1a.d.ts.map +1 -0
- package/dist/pwa/shared/build/fnv1a.js +17 -0
- package/dist/pwa/shared/build/fnv1a.js.map +1 -0
- package/dist/pwa/shared/build/index.d.ts +2 -0
- package/dist/pwa/shared/build/index.js +2 -0
- package/dist/pwa/shared/commands/commands.d.ts +39 -0
- package/dist/pwa/shared/commands/commands.d.ts.map +1 -0
- package/dist/pwa/shared/commands/commands.js +51 -0
- package/dist/pwa/shared/commands/commands.js.map +1 -0
- package/dist/pwa/shared/commands/index.d.ts +2 -0
- package/dist/pwa/shared/commands/index.js +2 -0
- package/dist/pwa/shared/config/config.d.ts +231 -0
- package/dist/pwa/shared/config/config.d.ts.map +1 -0
- package/dist/pwa/shared/config/config.js +136 -0
- package/dist/pwa/shared/config/config.js.map +1 -0
- package/dist/pwa/shared/config/index.d.ts +2 -0
- package/dist/pwa/shared/config/index.js +2 -0
- package/dist/pwa/shared/config/presets.d.ts +19 -0
- package/dist/pwa/shared/config/presets.d.ts.map +1 -0
- package/dist/pwa/shared/config/presets.js +45 -0
- package/dist/pwa/shared/config/presets.js.map +1 -0
- package/dist/pwa/shared/manifest/index.d.ts +2 -0
- package/dist/pwa/shared/manifest/index.js +2 -0
- package/dist/pwa/shared/manifest/manifest.d.ts +53 -0
- package/dist/pwa/shared/manifest/manifest.d.ts.map +1 -0
- package/dist/pwa/shared/manifest/manifest.js +87 -0
- package/dist/pwa/shared/manifest/manifest.js.map +1 -0
- package/dist/pwa/shared/strategy/index.d.ts +2 -0
- package/dist/pwa/shared/strategy/index.js +2 -0
- package/dist/pwa/shared/strategy/pattern.d.ts +6 -0
- package/dist/pwa/shared/strategy/pattern.d.ts.map +1 -0
- package/dist/pwa/shared/strategy/pattern.js +23 -0
- package/dist/pwa/shared/strategy/pattern.js.map +1 -0
- package/dist/pwa/shared/strategy/strategy.d.ts +41 -0
- package/dist/pwa/shared/strategy/strategy.d.ts.map +1 -0
- package/dist/pwa/shared/strategy/strategy.js +60 -0
- package/dist/pwa/shared/strategy/strategy.js.map +1 -0
- package/dist/pwa/shared/worker-host/index.d.ts +2 -0
- package/dist/pwa/shared/worker-host/index.js +2 -0
- package/dist/pwa/shared/worker-host/worker-host.d.ts +22 -0
- package/dist/pwa/shared/worker-host/worker-host.d.ts.map +1 -0
- package/dist/pwa/shared/worker-host/worker-host.js +11 -0
- package/dist/pwa/shared/worker-host/worker-host.js.map +1 -0
- package/dist/pwa/splash/devices.d.ts +85 -0
- package/dist/pwa/splash/devices.d.ts.map +1 -0
- package/dist/pwa/splash/devices.js +109 -0
- package/dist/pwa/splash/devices.js.map +1 -0
- package/dist/pwa/splash/index.d.ts +2 -0
- package/dist/pwa/splash/index.js +2 -0
- package/dist/pwa/splash/splash.d.ts +29 -0
- package/dist/pwa/splash/splash.d.ts.map +1 -0
- package/dist/pwa/splash/splash.js +38 -0
- package/dist/pwa/splash/splash.js.map +1 -0
- package/dist/pwa/vite/build/build-plugin.d.ts +15 -0
- package/dist/pwa/vite/build/build-plugin.d.ts.map +1 -0
- package/dist/pwa/vite/build/build-plugin.js +105 -0
- package/dist/pwa/vite/build/build-plugin.js.map +1 -0
- package/dist/pwa/vite/build/build-state.d.ts +17 -0
- package/dist/pwa/vite/build/build-state.d.ts.map +1 -0
- package/dist/pwa/vite/build/build-state.js +9 -0
- package/dist/pwa/vite/build/build-state.js.map +1 -0
- package/dist/pwa/vite/build/headers.d.ts +10 -0
- package/dist/pwa/vite/build/headers.d.ts.map +1 -0
- package/dist/pwa/vite/build/headers.js +26 -0
- package/dist/pwa/vite/build/headers.js.map +1 -0
- package/dist/pwa/vite/build/index.d.ts +3 -0
- package/dist/pwa/vite/build/index.js +3 -0
- package/dist/pwa/vite/build/output-files.d.ts +12 -0
- package/dist/pwa/vite/build/output-files.d.ts.map +1 -0
- package/dist/pwa/vite/build/output-files.js +35 -0
- package/dist/pwa/vite/build/output-files.js.map +1 -0
- package/dist/pwa/vite/build/start-setup.d.ts +19 -0
- package/dist/pwa/vite/build/start-setup.d.ts.map +1 -0
- package/dist/pwa/vite/build/start-setup.js +27 -0
- package/dist/pwa/vite/build/start-setup.js.map +1 -0
- package/dist/pwa/vite/client-module/build-version.d.ts +15 -0
- package/dist/pwa/vite/client-module/build-version.d.ts.map +1 -0
- package/dist/pwa/vite/client-module/build-version.js +45 -0
- package/dist/pwa/vite/client-module/build-version.js.map +1 -0
- package/dist/pwa/vite/client-module/client-info.d.ts +22 -0
- package/dist/pwa/vite/client-module/client-info.d.ts.map +1 -0
- package/dist/pwa/vite/client-module/client-info.js +38 -0
- package/dist/pwa/vite/client-module/client-info.js.map +1 -0
- package/dist/pwa/vite/client-module/client-module.d.ts +16 -0
- package/dist/pwa/vite/client-module/client-module.d.ts.map +1 -0
- package/dist/pwa/vite/client-module/client-module.js +47 -0
- package/dist/pwa/vite/client-module/client-module.js.map +1 -0
- package/dist/pwa/vite/client-module/index.d.ts +2 -0
- package/dist/pwa/vite/client-module/index.js +2 -0
- package/dist/pwa/vite/dev/dev-plugin.d.ts +13 -0
- package/dist/pwa/vite/dev/dev-plugin.d.ts.map +1 -0
- package/dist/pwa/vite/dev/dev-plugin.js +61 -0
- package/dist/pwa/vite/dev/dev-plugin.js.map +1 -0
- package/dist/pwa/vite/dev/index.d.ts +2 -0
- package/dist/pwa/vite/dev/index.js +2 -0
- package/dist/pwa/vite/index.d.ts +2 -0
- package/dist/pwa/vite/index.js +2 -0
- package/dist/pwa/vite/precache/asset-kind.d.ts +7 -0
- package/dist/pwa/vite/precache/asset-kind.d.ts.map +1 -0
- package/dist/pwa/vite/precache/asset-kind.js +24 -0
- package/dist/pwa/vite/precache/asset-kind.js.map +1 -0
- package/dist/pwa/vite/precache/index.d.ts +2 -0
- package/dist/pwa/vite/precache/index.js +2 -0
- package/dist/pwa/vite/precache/precache.d.ts +39 -0
- package/dist/pwa/vite/precache/precache.d.ts.map +1 -0
- package/dist/pwa/vite/precache/precache.js +60 -0
- package/dist/pwa/vite/precache/precache.js.map +1 -0
- package/dist/pwa/vite/precache/revision.d.ts +5 -0
- package/dist/pwa/vite/precache/revision.d.ts.map +1 -0
- package/dist/pwa/vite/precache/revision.js +8 -0
- package/dist/pwa/vite/precache/revision.js.map +1 -0
- package/dist/pwa/vite/precache/url-path.d.ts +12 -0
- package/dist/pwa/vite/precache/url-path.d.ts.map +1 -0
- package/dist/pwa/vite/precache/url-path.js +23 -0
- package/dist/pwa/vite/precache/url-path.js.map +1 -0
- package/dist/pwa/vite/vite.d.ts +14 -0
- package/dist/pwa/vite/vite.d.ts.map +1 -0
- package/dist/pwa/vite/vite.js +27 -0
- package/dist/pwa/vite/vite.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/build-module.d.ts +11 -0
- package/dist/pwa/vite/worker-bundle/build-module.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/build-module.js +23 -0
- package/dist/pwa/vite/worker-bundle/build-module.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/entry.d.ts +10 -0
- package/dist/pwa/vite/worker-bundle/entry.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/entry.js +25 -0
- package/dist/pwa/vite/worker-bundle/entry.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/index.d.ts +2 -0
- package/dist/pwa/vite/worker-bundle/index.js +2 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.d.ts +9 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.js +27 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.d.ts +25 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.js +49 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.js.map +1 -0
- package/dist/pwa/worker/commands/commands.d.ts +13 -0
- package/dist/pwa/worker/commands/commands.d.ts.map +1 -0
- package/dist/pwa/worker/commands/commands.js +23 -0
- package/dist/pwa/worker/commands/commands.js.map +1 -0
- package/dist/pwa/worker/commands/index.d.ts +2 -0
- package/dist/pwa/worker/commands/index.js +2 -0
- package/dist/pwa/worker/global-scope/global-scope.d.ts +35 -0
- package/dist/pwa/worker/global-scope/global-scope.d.ts.map +1 -0
- package/dist/pwa/worker/global-scope/global-scope.js +45 -0
- package/dist/pwa/worker/global-scope/global-scope.js.map +1 -0
- package/dist/pwa/worker/global-scope/index.d.ts +2 -0
- package/dist/pwa/worker/global-scope/index.js +2 -0
- package/dist/pwa/worker/index.d.ts +3 -0
- package/dist/pwa/worker/index.js +3 -0
- package/dist/pwa/worker/lifecycle/index.d.ts +2 -0
- package/dist/pwa/worker/lifecycle/index.js +2 -0
- package/dist/pwa/worker/lifecycle/lifecycle.d.ts +19 -0
- package/dist/pwa/worker/lifecycle/lifecycle.d.ts.map +1 -0
- package/dist/pwa/worker/lifecycle/lifecycle.js +32 -0
- package/dist/pwa/worker/lifecycle/lifecycle.js.map +1 -0
- package/dist/pwa/worker/messages/index.d.ts +2 -0
- package/dist/pwa/worker/messages/index.js +2 -0
- package/dist/pwa/worker/messages/messages.d.ts +16 -0
- package/dist/pwa/worker/messages/messages.d.ts.map +1 -0
- package/dist/pwa/worker/messages/messages.js +59 -0
- package/dist/pwa/worker/messages/messages.js.map +1 -0
- package/dist/pwa/worker/precache/download.d.ts +11 -0
- package/dist/pwa/worker/precache/download.d.ts.map +1 -0
- package/dist/pwa/worker/precache/download.js +26 -0
- package/dist/pwa/worker/precache/download.js.map +1 -0
- package/dist/pwa/worker/precache/index.d.ts +2 -0
- package/dist/pwa/worker/precache/index.js +2 -0
- package/dist/pwa/worker/precache/precache.d.ts +21 -0
- package/dist/pwa/worker/precache/precache.d.ts.map +1 -0
- package/dist/pwa/worker/precache/precache.js +35 -0
- package/dist/pwa/worker/precache/precache.js.map +1 -0
- package/dist/pwa/worker/requests/index.d.ts +2 -0
- package/dist/pwa/worker/requests/index.js +2 -0
- package/dist/pwa/worker/requests/pages/index.d.ts +2 -0
- package/dist/pwa/worker/requests/pages/index.js +2 -0
- package/dist/pwa/worker/requests/pages/pages.d.ts +25 -0
- package/dist/pwa/worker/requests/pages/pages.d.ts.map +1 -0
- package/dist/pwa/worker/requests/pages/pages.js +74 -0
- package/dist/pwa/worker/requests/pages/pages.js.map +1 -0
- package/dist/pwa/worker/requests/requests.d.ts +17 -0
- package/dist/pwa/worker/requests/requests.d.ts.map +1 -0
- package/dist/pwa/worker/requests/requests.js +28 -0
- package/dist/pwa/worker/requests/requests.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/cache-store.d.ts +19 -0
- package/dist/pwa/worker/requests/strategies/cache-store.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/cache-store.js +50 -0
- package/dist/pwa/worker/requests/strategies/cache-store.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/index.d.ts +3 -0
- package/dist/pwa/worker/requests/strategies/index.js +3 -0
- package/dist/pwa/worker/requests/strategies/kinds.d.ts +11 -0
- package/dist/pwa/worker/requests/strategies/kinds.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/kinds.js +35 -0
- package/dist/pwa/worker/requests/strategies/kinds.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/network-first.d.ts +18 -0
- package/dist/pwa/worker/requests/strategies/network-first.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/network-first.js +30 -0
- package/dist/pwa/worker/requests/strategies/network-first.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/strategies.d.ts +16 -0
- package/dist/pwa/worker/requests/strategies/strategies.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/strategies.js +22 -0
- package/dist/pwa/worker/requests/strategies/strategies.js.map +1 -0
- package/dist/pwa/worker/worker.d.ts +23 -0
- package/dist/pwa/worker/worker.d.ts.map +1 -0
- package/dist/pwa/worker/worker.js +53 -0
- package/dist/pwa/worker/worker.js.map +1 -0
- package/dist/recipes/account-lost/account-lost.d.ts +24 -0
- package/dist/recipes/account-lost/account-lost.d.ts.map +1 -0
- package/dist/recipes/account-lost/account-lost.js +35 -0
- package/dist/recipes/account-lost/account-lost.js.map +1 -0
- package/dist/recipes/account-lost/index.d.ts +2 -0
- package/dist/recipes/account-lost/index.js +2 -0
- package/dist/recipes/account-switcher/account-switcher.d.ts +25 -0
- package/dist/recipes/account-switcher/account-switcher.d.ts.map +1 -0
- package/dist/recipes/account-switcher/account-switcher.js +124 -0
- package/dist/recipes/account-switcher/account-switcher.js.map +1 -0
- package/dist/recipes/account-switcher/index.d.ts +2 -0
- package/dist/recipes/account-switcher/index.js +2 -0
- package/dist/recipes/frame/app-shell.d.ts +37 -0
- package/dist/recipes/frame/app-shell.d.ts.map +1 -0
- package/dist/recipes/frame/app-shell.js +46 -0
- package/dist/recipes/frame/app-shell.js.map +1 -0
- package/dist/recipes/frame/frame/frame.d.ts +32 -0
- package/dist/recipes/frame/frame/frame.d.ts.map +1 -0
- package/dist/recipes/frame/frame/frame.js +135 -0
- package/dist/recipes/frame/frame/frame.js.map +1 -0
- package/dist/recipes/frame/frame/geometry.d.ts +22 -0
- package/dist/recipes/frame/frame/geometry.d.ts.map +1 -0
- package/dist/recipes/frame/frame/geometry.js +36 -0
- package/dist/recipes/frame/frame/geometry.js.map +1 -0
- package/dist/recipes/frame/frame/index.d.ts +2 -0
- package/dist/recipes/frame/frame/index.js +2 -0
- package/dist/recipes/frame/frame/motion.d.ts +20 -0
- package/dist/recipes/frame/frame/motion.d.ts.map +1 -0
- package/dist/recipes/frame/frame/motion.js +58 -0
- package/dist/recipes/frame/frame/motion.js.map +1 -0
- package/dist/recipes/frame/frame/state.d.ts +17 -0
- package/dist/recipes/frame/frame/state.d.ts.map +1 -0
- package/dist/recipes/frame/frame/state.js +27 -0
- package/dist/recipes/frame/frame/state.js.map +1 -0
- package/dist/recipes/frame/header.d.ts +18 -0
- package/dist/recipes/frame/header.d.ts.map +1 -0
- package/dist/recipes/frame/header.js +43 -0
- package/dist/recipes/frame/header.js.map +1 -0
- package/dist/recipes/frame/index.d.ts +4 -0
- package/dist/recipes/frame/index.js +4 -0
- package/dist/recipes/frame/sidebar/blocks.d.ts +31 -0
- package/dist/recipes/frame/sidebar/blocks.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/blocks.js +126 -0
- package/dist/recipes/frame/sidebar/blocks.js.map +1 -0
- package/dist/recipes/frame/sidebar/index.d.ts +4 -0
- package/dist/recipes/frame/sidebar/index.js +4 -0
- package/dist/recipes/frame/sidebar/nav.d.ts +22 -0
- package/dist/recipes/frame/sidebar/nav.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/nav.js +14 -0
- package/dist/recipes/frame/sidebar/nav.js.map +1 -0
- package/dist/recipes/frame/sidebar/resize-handle.d.ts +12 -0
- package/dist/recipes/frame/sidebar/resize-handle.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/resize-handle.js +90 -0
- package/dist/recipes/frame/sidebar/resize-handle.js.map +1 -0
- package/dist/recipes/frame/sidebar/sidebar.d.ts +24 -0
- package/dist/recipes/frame/sidebar/sidebar.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/sidebar.js +30 -0
- package/dist/recipes/frame/sidebar/sidebar.js.map +1 -0
- package/dist/recipes/frame/sidebar/width.d.ts +9 -0
- package/dist/recipes/frame/sidebar/width.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/width.js +22 -0
- package/dist/recipes/frame/sidebar/width.js.map +1 -0
- package/dist/recipes/gate-screens/gate-screens.d.ts +52 -0
- package/dist/recipes/gate-screens/gate-screens.d.ts.map +1 -0
- package/dist/recipes/gate-screens/gate-screens.js +192 -0
- package/dist/recipes/gate-screens/gate-screens.js.map +1 -0
- package/dist/recipes/gate-screens/index.d.ts +2 -0
- package/dist/recipes/gate-screens/index.js +2 -0
- package/dist/recipes/kabuki-devtools/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/index.js +2 -0
- package/dist/recipes/kabuki-devtools/ink/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/ink/index.js +2 -0
- package/dist/recipes/kabuki-devtools/ink/ink.d.ts +37 -0
- package/dist/recipes/kabuki-devtools/ink/ink.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/ink/ink.js +37 -0
- package/dist/recipes/kabuki-devtools/ink/ink.js.map +1 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.d.ts +40 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.js +279 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.d.ts +13 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.js +223 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/beat/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/beat/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.d.ts +29 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.js +221 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/canvas/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/canvas/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/link/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/link/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/link/link.d.ts +22 -0
- package/dist/recipes/kabuki-devtools/map/link/link.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/link/link.js +72 -0
- package/dist/recipes/kabuki-devtools/map/link/link.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/map.d.ts +26 -0
- package/dist/recipes/kabuki-devtools/map/map.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/map.js +362 -0
- package/dist/recipes/kabuki-devtools/map/map.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/node/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/node/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/node/node.d.ts +25 -0
- package/dist/recipes/kabuki-devtools/map/node/node.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/node/node.js +251 -0
- package/dist/recipes/kabuki-devtools/map/node/node.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/popup/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/popup/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.d.ts +12 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.js +72 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/beats.d.ts +36 -0
- package/dist/recipes/kabuki-devtools/scene/beats.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/beats.js +46 -0
- package/dist/recipes/kabuki-devtools/scene/beats.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/index.d.ts +5 -0
- package/dist/recipes/kabuki-devtools/scene/index.js +3 -0
- package/dist/recipes/kabuki-devtools/scene/layout/index.d.ts +3 -0
- package/dist/recipes/kabuki-devtools/scene/layout/index.js +2 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.d.ts +6 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.js +8 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.d.ts +5 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.js +84 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.d.ts +57 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.js +38 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.d.ts +5 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.js +146 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.d.ts +67 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.js +39 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/scene.d.ts +78 -0
- package/dist/recipes/kabuki-devtools/scene/scene.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/scene.js +128 -0
- package/dist/recipes/kabuki-devtools/scene/scene.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/tree.d.ts +20 -0
- package/dist/recipes/kabuki-devtools/scene/tree.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/tree.js +85 -0
- package/dist/recipes/kabuki-devtools/scene/tree.js.map +1 -0
- package/dist/recipes/kabuki-devtools/sheet/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/sheet/index.js +2 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.d.ts +33 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.js +129 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.js.map +1 -0
- package/dist/recipes/kabuki-devtools/timeline/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/timeline/index.js +2 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.d.ts +25 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.js +122 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.js.map +1 -0
- package/dist/recipes/key-bindings/index.d.ts +2 -0
- package/dist/recipes/key-bindings/index.js +2 -0
- package/dist/recipes/key-bindings/key-bindings.d.ts +19 -0
- package/dist/recipes/key-bindings/key-bindings.d.ts.map +1 -0
- package/dist/recipes/key-bindings/key-bindings.js +61 -0
- package/dist/recipes/key-bindings/key-bindings.js.map +1 -0
- package/dist/recipes/local-sign-in/index.d.ts +2 -0
- package/dist/recipes/local-sign-in/index.js +2 -0
- package/dist/recipes/local-sign-in/local-sign-in.d.ts +18 -0
- package/dist/recipes/local-sign-in/local-sign-in.d.ts.map +1 -0
- package/dist/recipes/local-sign-in/local-sign-in.js +109 -0
- package/dist/recipes/local-sign-in/local-sign-in.js.map +1 -0
- package/dist/recipes/parts/email-privacy/email-privacy.d.ts +24 -0
- package/dist/recipes/parts/email-privacy/email-privacy.d.ts.map +1 -0
- package/dist/recipes/parts/email-privacy/email-privacy.js +35 -0
- package/dist/recipes/parts/email-privacy/email-privacy.js.map +1 -0
- package/dist/recipes/parts/email-privacy/index.d.ts +2 -0
- package/dist/recipes/parts/email-privacy/index.js +2 -0
- package/dist/recipes/swipe-row/index.d.ts +2 -0
- package/dist/recipes/swipe-row/index.js +2 -0
- package/dist/recipes/swipe-row/swipe-row.d.ts +16 -0
- package/dist/recipes/swipe-row/swipe-row.d.ts.map +1 -0
- package/dist/recipes/swipe-row/swipe-row.js +96 -0
- package/dist/recipes/swipe-row/swipe-row.js.map +1 -0
- package/dist/recipes/thumb-picker/choice.d.ts +18 -0
- package/dist/recipes/thumb-picker/choice.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/choice.js +0 -0
- package/dist/recipes/thumb-picker/index.d.ts +3 -0
- package/dist/recipes/thumb-picker/index.js +2 -0
- package/dist/recipes/thumb-picker/list.d.ts +18 -0
- package/dist/recipes/thumb-picker/list.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/list.js +48 -0
- package/dist/recipes/thumb-picker/list.js.map +1 -0
- package/dist/recipes/thumb-picker/lock.d.ts +18 -0
- package/dist/recipes/thumb-picker/lock.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/lock.js +71 -0
- package/dist/recipes/thumb-picker/lock.js.map +1 -0
- package/dist/recipes/thumb-picker/menu.d.ts +19 -0
- package/dist/recipes/thumb-picker/menu.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/menu.js +127 -0
- package/dist/recipes/thumb-picker/menu.js.map +1 -0
- package/dist/recipes/thumb-picker/thumb-picker.d.ts +31 -0
- package/dist/recipes/thumb-picker/thumb-picker.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/thumb-picker.js +65 -0
- package/dist/recipes/thumb-picker/thumb-picker.js.map +1 -0
- package/dist/server/index.d.ts +7 -0
- package/dist/server/index.js +5 -0
- package/dist/server/live/index.d.ts +2 -0
- package/dist/server/live/index.js +2 -0
- package/dist/server/live/live.d.ts +56 -0
- package/dist/server/live/live.d.ts.map +1 -0
- package/dist/server/live/live.js +98 -0
- package/dist/server/live/live.js.map +1 -0
- package/dist/server/serve/index.d.ts +2 -0
- package/dist/server/serve/index.js +2 -0
- package/dist/server/serve/serve.d.ts +48 -0
- package/dist/server/serve/serve.d.ts.map +1 -0
- package/dist/server/serve/serve.js +47 -0
- package/dist/server/serve/serve.js.map +1 -0
- package/dist/server/stage/index.d.ts +2 -0
- package/dist/server/stage/index.js +2 -0
- package/dist/server/stage/stage.d.ts +14 -0
- package/dist/server/stage/stage.d.ts.map +1 -0
- package/dist/server/stage/stage.js +28 -0
- package/dist/server/stage/stage.js.map +1 -0
- package/dist/server/worker/index.d.ts +2 -0
- package/dist/server/worker/index.js +2 -0
- package/dist/server/worker/worker.d.ts +19 -0
- package/dist/server/worker/worker.d.ts.map +1 -0
- package/dist/server/worker/worker.js +18 -0
- package/dist/server/worker/worker.js.map +1 -0
- package/dist/theme/cookie.d.ts +6 -0
- package/dist/theme/cookie.d.ts.map +1 -0
- package/dist/theme/cookie.js +21 -0
- package/dist/theme/cookie.js.map +1 -0
- package/dist/theme/css/font-inter.css +2 -0
- package/dist/theme/css/global.css +62 -0
- package/dist/theme/css/shiki.css +71 -0
- package/dist/theme/css/sources.css +6 -0
- package/dist/theme/css/theme.css +170 -0
- package/dist/theme/css/typography.css +1 -0
- package/dist/theme/document.d.ts +6 -0
- package/dist/theme/document.d.ts.map +1 -0
- package/dist/theme/document.js +26 -0
- package/dist/theme/document.js.map +1 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +4 -0
- package/dist/theme/model.d.ts +9 -0
- package/dist/theme/model.d.ts.map +1 -0
- package/dist/theme/model.js +13 -0
- package/dist/theme/model.js.map +1 -0
- package/dist/theme/status-bar.d.ts +10 -0
- package/dist/theme/status-bar.d.ts.map +1 -0
- package/dist/theme/status-bar.js +19 -0
- package/dist/theme/status-bar.js.map +1 -0
- package/dist/theme/store.d.ts +6 -0
- package/dist/theme/store.d.ts.map +1 -0
- package/dist/theme/store.js +45 -0
- package/dist/theme/store.js.map +1 -0
- package/dist/theme/theme.d.ts +22 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/theme/theme.js +37 -0
- package/dist/theme/theme.js.map +1 -0
- package/package.json +255 -3
- package/src/app/apis/apis.ts +109 -0
- package/src/app/apis/index.ts +13 -0
- package/src/app/app.tsx +232 -0
- package/src/app/assemble/assemble.tsx +339 -0
- package/src/app/assemble/index.ts +7 -0
- package/src/app/assemble/public.ts +98 -0
- package/src/app/gate/domain/check.ts +76 -0
- package/src/app/gate/domain/index.ts +3 -0
- package/src/app/gate/domain/machine.ts +439 -0
- package/src/app/gate/domain/services.ts +46 -0
- package/src/app/gate/domain/types.ts +36 -0
- package/src/app/gate/gate.ts +501 -0
- package/src/app/gate/index.ts +3 -0
- package/src/app/gate/memory.ts +56 -0
- package/src/app/gate/react.tsx +139 -0
- package/src/app/host/host.ts +166 -0
- package/src/app/host/index.ts +10 -0
- package/src/app/index.ts +10 -0
- package/src/app/session/define.ts +75 -0
- package/src/app/session/index.ts +17 -0
- package/src/app/session/keeper.ts +34 -0
- package/src/app/session/open.ts +207 -0
- package/src/app/session/react.tsx +38 -0
- package/src/app/session/status.ts +46 -0
- package/src/app/web-host.ts +104 -0
- package/src/client/index.ts +9 -0
- package/src/client/root/index.ts +7 -0
- package/src/client/root/root.tsx +149 -0
- package/src/client/server.ts +3 -0
- package/src/client/theme/index.ts +1 -0
- package/src/client/theme/tanstack-start.ts +5 -0
- package/src/components/hooks/use-element-width.ts +24 -0
- package/src/components/hooks/use-mobile.ts +21 -0
- package/src/components/hooks/use-scroll.ts +292 -0
- package/src/components/lib/lucide.ts +1 -0
- package/src/components/lib/motion.ts +1 -0
- package/src/components/lib/scrollStyles.ts +44 -0
- package/src/components/lib/shadow-dom.tsx +86 -0
- package/src/components/lib/utils.ts +6 -0
- package/src/components/ui/accordion.tsx +71 -0
- package/src/components/ui/alert-dialog.tsx +185 -0
- package/src/components/ui/alert.tsx +75 -0
- package/src/components/ui/aspect-ratio.tsx +22 -0
- package/src/components/ui/attachment.tsx +207 -0
- package/src/components/ui/avatar.tsx +106 -0
- package/src/components/ui/badge.tsx +51 -0
- package/src/components/ui/breadcrumb.tsx +124 -0
- package/src/components/ui/bubble.tsx +127 -0
- package/src/components/ui/button-group.tsx +87 -0
- package/src/components/ui/button.tsx +57 -0
- package/src/components/ui/calendar.tsx +221 -0
- package/src/components/ui/card.tsx +102 -0
- package/src/components/ui/carousel.tsx +240 -0
- package/src/components/ui/chart.tsx +370 -0
- package/src/components/ui/checkbox.tsx +28 -0
- package/src/components/ui/collapsible.tsx +19 -0
- package/src/components/ui/combobox.tsx +295 -0
- package/src/components/ui/command.tsx +196 -0
- package/src/components/ui/context-menu.tsx +270 -0
- package/src/components/ui/dialog.tsx +157 -0
- package/src/components/ui/direction.tsx +4 -0
- package/src/components/ui/drawer.tsx +224 -0
- package/src/components/ui/dropdown-menu.tsx +275 -0
- package/src/components/ui/empty.tsx +103 -0
- package/src/components/ui/field.tsx +236 -0
- package/src/components/ui/file-tree.tsx +619 -0
- package/src/components/ui/google-button.tsx +194 -0
- package/src/components/ui/hover-card.tsx +50 -0
- package/src/components/ui/input-group.tsx +158 -0
- package/src/components/ui/input-otp.tsx +84 -0
- package/src/components/ui/input.tsx +19 -0
- package/src/components/ui/item.tsx +201 -0
- package/src/components/ui/kbd.tsx +26 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/marker.tsx +70 -0
- package/src/components/ui/menubar.tsx +280 -0
- package/src/components/ui/message-scroller.tsx +129 -0
- package/src/components/ui/message.tsx +91 -0
- package/src/components/ui/native-select.tsx +60 -0
- package/src/components/ui/navigation-menu.tsx +167 -0
- package/src/components/ui/pagination.tsx +130 -0
- package/src/components/ui/popover.tsx +87 -0
- package/src/components/ui/progress.tsx +82 -0
- package/src/components/ui/questionnaire.tsx +324 -0
- package/src/components/ui/radio-group.tsx +35 -0
- package/src/components/ui/resizable.tsx +49 -0
- package/src/components/ui/scroll-area.tsx +60 -0
- package/src/components/ui/select.tsx +200 -0
- package/src/components/ui/separator.tsx +22 -0
- package/src/components/ui/sheet.tsx +133 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +51 -0
- package/src/components/ui/sonner.tsx +43 -0
- package/src/components/ui/spinner.tsx +10 -0
- package/src/components/ui/switch.tsx +31 -0
- package/src/components/ui/table.tsx +113 -0
- package/src/components/ui/tabs.tsx +81 -0
- package/src/components/ui/textarea.tsx +17 -0
- package/src/components/ui/toast.tsx +234 -0
- package/src/components/ui/toggle-group.tsx +87 -0
- package/src/components/ui/toggle.tsx +42 -0
- package/src/components/ui/tooltip.tsx +65 -0
- package/src/components/viewers/diff-viewer/align.ts +83 -0
- package/src/components/viewers/diff-viewer/collapse.ts +102 -0
- package/src/components/viewers/diff-viewer/diff-viewer.tsx +605 -0
- package/src/components/viewers/diff-viewer/index.ts +8 -0
- package/src/components/viewers/diff-viewer/render-model.ts +123 -0
- package/src/components/viewers/diff-viewer/sync-rows.ts +41 -0
- package/src/components/viewers/file-tree/expand.ts +58 -0
- package/src/components/viewers/file-tree/file-tree.tsx +199 -0
- package/src/components/viewers/file-tree/index.ts +2 -0
- package/src/components/viewers/git-changes/git-changes.tsx +287 -0
- package/src/components/viewers/git-changes/index.ts +11 -0
- package/src/components/viewers/json/index.ts +3 -0
- package/src/components/viewers/json/json-editor.tsx +94 -0
- package/src/components/viewers/json/json-tree.tsx +110 -0
- package/src/components/viewers/json/json-viewer.tsx +61 -0
- package/src/components/viewers/markdown-viewer/index.ts +1 -0
- package/src/components/viewers/markdown-viewer/markdown-viewer.tsx +83 -0
- package/src/components/viewers/source-explorer/index.ts +11 -0
- package/src/components/viewers/source-explorer/initial-selection.ts +21 -0
- package/src/components/viewers/source-explorer/snapshot-tree.ts +39 -0
- package/src/components/viewers/source-explorer/source-explorer.tsx +598 -0
- package/src/components/viewers/source-viewer/index.ts +7 -0
- package/src/components/viewers/source-viewer/source-viewer.tsx +437 -0
- package/src/cosmos.decorator.tsx +38 -0
- package/src/css.d.ts +1 -0
- package/src/define/index.ts +26 -0
- package/src/feedback/index.ts +1 -0
- package/src/feedback/sound.ts +167 -0
- package/src/form/components/submit-button.tsx +52 -0
- package/src/form/context.ts +8 -0
- package/src/form/create-form-hook.ts +50 -0
- package/src/form/fields/date-picker-field.tsx +125 -0
- package/src/form/fields/select-field.tsx +110 -0
- package/src/form/fields/switch-field.tsx +72 -0
- package/src/form/fields/text-field.tsx +82 -0
- package/src/form/fields/textarea-field.tsx +82 -0
- package/src/form/index.ts +56 -0
- package/src/form/types.ts +76 -0
- package/src/input/device/device.ts +83 -0
- package/src/input/device/index.ts +1 -0
- package/src/input/gesture/index.ts +26 -0
- package/src/input/gesture/patterns/index.ts +3 -0
- package/src/input/gesture/patterns/pull-to-refresh/index.ts +6 -0
- package/src/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.ts +101 -0
- package/src/input/gesture/patterns/sidebar/index.ts +2 -0
- package/src/input/gesture/patterns/sidebar/use-sidebar.ts +201 -0
- package/src/input/gesture/recognizers/index.ts +12 -0
- package/src/input/gesture/recognizers/swipe/index.ts +12 -0
- package/src/input/gesture/recognizers/swipe/use-swipe.ts +224 -0
- package/src/input/gesture/zones/index.ts +11 -0
- package/src/input/gesture/zones/touch-input/index.ts +10 -0
- package/src/input/gesture/zones/touch-input/native-scroll.ts +74 -0
- package/src/input/gesture/zones/touch-input/touch-input.ts +322 -0
- package/src/input/gesture/zones/zone/index.ts +11 -0
- package/src/input/gesture/zones/zone/motion-pointers.ts +74 -0
- package/src/input/gesture/zones/zone/zone.tsx +291 -0
- package/src/input/index.ts +4 -0
- package/src/pwa/browser/dom-events.ts +17 -0
- package/src/pwa/browser/subscription-ref.ts +29 -0
- package/src/pwa/client/client.ts +43 -0
- package/src/pwa/client/commands/commands.ts +28 -0
- package/src/pwa/client/commands/index.ts +1 -0
- package/src/pwa/client/index.ts +1 -0
- package/src/pwa/client/registration.ts +63 -0
- package/src/pwa/client/runtime-cache.ts +24 -0
- package/src/pwa/client/status/index.ts +1 -0
- package/src/pwa/client/status/status.ts +155 -0
- package/src/pwa/extras/display-mode/display-mode.ts +64 -0
- package/src/pwa/extras/display-mode/index.ts +6 -0
- package/src/pwa/extras/index.ts +15 -0
- package/src/pwa/extras/install/index.ts +4 -0
- package/src/pwa/extras/install/install-content.tsx +45 -0
- package/src/pwa/extras/install/install-dismissal.ts +20 -0
- package/src/pwa/extras/install/install-prompt.tsx +93 -0
- package/src/pwa/extras/install/install.ts +134 -0
- package/src/pwa/extras/install/ios.ts +13 -0
- package/src/pwa/extras/install/media-query.ts +18 -0
- package/src/pwa/extras/lazy-service/index.ts +1 -0
- package/src/pwa/extras/lazy-service/lazy-service.ts +38 -0
- package/src/pwa/extras/online/index.ts +2 -0
- package/src/pwa/extras/online/offline-indicator.tsx +26 -0
- package/src/pwa/extras/online/online.ts +35 -0
- package/src/pwa/extras/storage/index.ts +1 -0
- package/src/pwa/extras/storage/storage.ts +101 -0
- package/src/pwa/index.ts +5 -0
- package/src/pwa/react/head.ts +69 -0
- package/src/pwa/react/index.ts +3 -0
- package/src/pwa/react/react.tsx +98 -0
- package/src/pwa/react/update-prompt.tsx +26 -0
- package/src/pwa/react/update-toast.ts +57 -0
- package/src/pwa/root/index.ts +1 -0
- package/src/pwa/root/root.tsx +39 -0
- package/src/pwa/rpc/client/client.ts +105 -0
- package/src/pwa/rpc/client/index.ts +1 -0
- package/src/pwa/rpc/client/page-environment.ts +88 -0
- package/src/pwa/rpc/client/platform.ts +213 -0
- package/src/pwa/rpc/client/version-skew.ts +71 -0
- package/src/pwa/rpc/handshake/handshake.ts +125 -0
- package/src/pwa/rpc/handshake/index.ts +11 -0
- package/src/pwa/rpc/worker/connections.ts +62 -0
- package/src/pwa/rpc/worker/index.ts +1 -0
- package/src/pwa/rpc/worker/keep-alive.ts +26 -0
- package/src/pwa/rpc/worker/runner-platform.ts +200 -0
- package/src/pwa/rpc/worker/worker.ts +44 -0
- package/src/pwa/shared/build/build.ts +78 -0
- package/src/pwa/shared/build/canonical-json.ts +11 -0
- package/src/pwa/shared/build/fnv1a.ts +13 -0
- package/src/pwa/shared/build/index.ts +19 -0
- package/src/pwa/shared/commands/commands.ts +60 -0
- package/src/pwa/shared/commands/index.ts +11 -0
- package/src/pwa/shared/config/config.ts +185 -0
- package/src/pwa/shared/config/index.ts +11 -0
- package/src/pwa/shared/config/presets.ts +45 -0
- package/src/pwa/shared/manifest/index.ts +5 -0
- package/src/pwa/shared/manifest/manifest.ts +102 -0
- package/src/pwa/shared/strategy/index.ts +8 -0
- package/src/pwa/shared/strategy/pattern.ts +20 -0
- package/src/pwa/shared/strategy/strategy.ts +107 -0
- package/src/pwa/shared/worker-host/index.ts +1 -0
- package/src/pwa/shared/worker-host/worker-host.ts +22 -0
- package/src/pwa/splash/devices.ts +28 -0
- package/src/pwa/splash/index.ts +1 -0
- package/src/pwa/splash/splash.ts +44 -0
- package/src/pwa/virtual.d.ts +13 -0
- package/src/pwa/vite/build/build-plugin.ts +153 -0
- package/src/pwa/vite/build/build-state.ts +17 -0
- package/src/pwa/vite/build/headers.ts +34 -0
- package/src/pwa/vite/build/index.ts +2 -0
- package/src/pwa/vite/build/output-files.ts +49 -0
- package/src/pwa/vite/build/start-setup.ts +50 -0
- package/src/pwa/vite/client-module/build-version.ts +43 -0
- package/src/pwa/vite/client-module/client-info.ts +58 -0
- package/src/pwa/vite/client-module/client-module.ts +67 -0
- package/src/pwa/vite/client-module/index.ts +1 -0
- package/src/pwa/vite/dev/dev-plugin.ts +72 -0
- package/src/pwa/vite/dev/index.ts +1 -0
- package/src/pwa/vite/index.ts +1 -0
- package/src/pwa/vite/precache/asset-kind.ts +25 -0
- package/src/pwa/vite/precache/index.ts +6 -0
- package/src/pwa/vite/precache/precache.ts +97 -0
- package/src/pwa/vite/precache/revision.ts +5 -0
- package/src/pwa/vite/precache/url-path.ts +21 -0
- package/src/pwa/vite/vite.ts +25 -0
- package/src/pwa/vite/worker-bundle/build-module.ts +28 -0
- package/src/pwa/vite/worker-bundle/entry.ts +29 -0
- package/src/pwa/vite/worker-bundle/index.ts +1 -0
- package/src/pwa/vite/worker-bundle/kill-switch.ts +23 -0
- package/src/pwa/vite/worker-bundle/worker-bundle.ts +71 -0
- package/src/pwa/worker/commands/commands.ts +31 -0
- package/src/pwa/worker/commands/index.ts +1 -0
- package/src/pwa/worker/global-scope/global-scope.ts +99 -0
- package/src/pwa/worker/global-scope/index.ts +9 -0
- package/src/pwa/worker/index.ts +1 -0
- package/src/pwa/worker/lifecycle/index.ts +1 -0
- package/src/pwa/worker/lifecycle/lifecycle.ts +52 -0
- package/src/pwa/worker/messages/index.ts +1 -0
- package/src/pwa/worker/messages/messages.ts +67 -0
- package/src/pwa/worker/precache/download.ts +38 -0
- package/src/pwa/worker/precache/index.ts +7 -0
- package/src/pwa/worker/precache/precache.ts +72 -0
- package/src/pwa/worker/requests/index.ts +1 -0
- package/src/pwa/worker/requests/pages/index.ts +1 -0
- package/src/pwa/worker/requests/pages/pages.ts +116 -0
- package/src/pwa/worker/requests/requests.ts +39 -0
- package/src/pwa/worker/requests/strategies/cache-store.ts +82 -0
- package/src/pwa/worker/requests/strategies/index.ts +2 -0
- package/src/pwa/worker/requests/strategies/kinds.ts +63 -0
- package/src/pwa/worker/requests/strategies/network-first.ts +40 -0
- package/src/pwa/worker/requests/strategies/strategies.ts +40 -0
- package/src/pwa/worker/worker.ts +99 -0
- package/src/recipes/account-lost/account-lost.tsx +66 -0
- package/src/recipes/account-lost/index.ts +5 -0
- package/src/recipes/account-switcher/account-switcher.tsx +199 -0
- package/src/recipes/account-switcher/index.ts +5 -0
- package/src/recipes/frame/app-shell.tsx +74 -0
- package/src/recipes/frame/frame/frame.tsx +204 -0
- package/src/recipes/frame/frame/geometry.ts +60 -0
- package/src/recipes/frame/frame/index.ts +1 -0
- package/src/recipes/frame/frame/motion.ts +85 -0
- package/src/recipes/frame/frame/state.ts +29 -0
- package/src/recipes/frame/header.tsx +54 -0
- package/src/recipes/frame/index.ts +16 -0
- package/src/recipes/frame/sidebar/blocks.tsx +214 -0
- package/src/recipes/frame/sidebar/index.ts +15 -0
- package/src/recipes/frame/sidebar/nav.tsx +46 -0
- package/src/recipes/frame/sidebar/resize-handle.tsx +94 -0
- package/src/recipes/frame/sidebar/sidebar.tsx +44 -0
- package/src/recipes/frame/sidebar/width.ts +23 -0
- package/src/recipes/gate-screens/gate-screens.tsx +213 -0
- package/src/recipes/gate-screens/index.ts +5 -0
- package/src/recipes/kabuki-devtools/index.ts +1 -0
- package/src/recipes/kabuki-devtools/ink/index.ts +2 -0
- package/src/recipes/kabuki-devtools/ink/ink.ts +53 -0
- package/src/recipes/kabuki-devtools/kabuki-devtools.tsx +419 -0
- package/src/recipes/kabuki-devtools/map/beat/beat.tsx +243 -0
- package/src/recipes/kabuki-devtools/map/beat/index.ts +1 -0
- package/src/recipes/kabuki-devtools/map/canvas/canvas.tsx +320 -0
- package/src/recipes/kabuki-devtools/map/canvas/index.ts +2 -0
- package/src/recipes/kabuki-devtools/map/index.ts +2 -0
- package/src/recipes/kabuki-devtools/map/link/index.ts +1 -0
- package/src/recipes/kabuki-devtools/map/link/link.tsx +107 -0
- package/src/recipes/kabuki-devtools/map/map.tsx +474 -0
- package/src/recipes/kabuki-devtools/map/node/index.ts +2 -0
- package/src/recipes/kabuki-devtools/map/node/node.tsx +437 -0
- package/src/recipes/kabuki-devtools/map/popup/index.ts +1 -0
- package/src/recipes/kabuki-devtools/map/popup/popup.tsx +73 -0
- package/src/recipes/kabuki-devtools/scene/beats.ts +110 -0
- package/src/recipes/kabuki-devtools/scene/index.ts +11 -0
- package/src/recipes/kabuki-devtools/scene/layout/index.ts +3 -0
- package/src/recipes/kabuki-devtools/scene/layout/layout.ts +14 -0
- package/src/recipes/kabuki-devtools/scene/layout/outline.ts +80 -0
- package/src/recipes/kabuki-devtools/scene/layout/shapes.ts +93 -0
- package/src/recipes/kabuki-devtools/scene/layout/tree.ts +181 -0
- package/src/recipes/kabuki-devtools/scene/nodes.ts +116 -0
- package/src/recipes/kabuki-devtools/scene/scene.ts +268 -0
- package/src/recipes/kabuki-devtools/scene/tree.ts +191 -0
- package/src/recipes/kabuki-devtools/sheet/index.ts +1 -0
- package/src/recipes/kabuki-devtools/sheet/sheet.tsx +193 -0
- package/src/recipes/kabuki-devtools/timeline/index.ts +2 -0
- package/src/recipes/kabuki-devtools/timeline/timeline.tsx +206 -0
- package/src/recipes/key-bindings/index.ts +1 -0
- package/src/recipes/key-bindings/key-bindings.tsx +80 -0
- package/src/recipes/local-sign-in/index.ts +5 -0
- package/src/recipes/local-sign-in/local-sign-in.tsx +148 -0
- package/src/recipes/parts/email-privacy/email-privacy.tsx +52 -0
- package/src/recipes/parts/email-privacy/index.ts +1 -0
- package/src/recipes/swipe-row/index.ts +1 -0
- package/src/recipes/swipe-row/swipe-row.tsx +97 -0
- package/src/recipes/thumb-picker/choice.ts +14 -0
- package/src/recipes/thumb-picker/index.ts +1 -0
- package/src/recipes/thumb-picker/list.tsx +73 -0
- package/src/recipes/thumb-picker/lock.ts +86 -0
- package/src/recipes/thumb-picker/menu.tsx +105 -0
- package/src/recipes/thumb-picker/thumb-picker.tsx +84 -0
- package/src/server/index.ts +21 -0
- package/src/server/live/index.ts +9 -0
- package/src/server/live/live.ts +219 -0
- package/src/server/serve/index.ts +6 -0
- package/src/server/serve/serve.ts +115 -0
- package/src/server/stage/index.ts +6 -0
- package/src/server/stage/stage.ts +43 -0
- package/src/server/worker/index.ts +1 -0
- package/src/server/worker/worker.ts +26 -0
- package/src/theme/cookie.ts +22 -0
- package/src/theme/css/font-inter.css +2 -0
- package/src/theme/css/global.css +62 -0
- package/src/theme/css/shiki.css +71 -0
- package/src/theme/css/sources.css +6 -0
- package/src/theme/css/theme.css +170 -0
- package/src/theme/css/typography.css +1 -0
- package/src/theme/document.ts +37 -0
- package/src/theme/index.ts +3 -0
- package/src/theme/model.ts +12 -0
- package/src/theme/status-bar.ts +28 -0
- package/src/theme/store.ts +66 -0
- package/src/theme/theme.ts +45 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HeaderConfig } from "./header.js";
|
|
2
|
+
import { SidebarConfig } from "./sidebar/sidebar.js";
|
|
3
|
+
import { useSidebarWidth } from "./sidebar/width.js";
|
|
4
|
+
import { SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem } from "./sidebar/blocks.js";
|
|
5
|
+
import "./sidebar/index.js";
|
|
6
|
+
import { CSSProperties, ReactNode } from "react";
|
|
7
|
+
//#region src/recipes/frame/app-shell.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* An app's whole screen: an optional sidebar, an optional header, and the
|
|
10
|
+
* page, which scrolls under the header. Mobile first: on a phone the page
|
|
11
|
+
* moves aside and shrinks to show the sidebar, under a finger on a touch
|
|
12
|
+
* screen; on a wide screen the sidebar sits beside the page, which is a card.
|
|
13
|
+
* One open state serves every size. Without a sidebar the page fills the
|
|
14
|
+
* screen, and the header's actions hold what the sidebar's footer would.
|
|
15
|
+
*/
|
|
16
|
+
export declare function AppShell(props: {
|
|
17
|
+
readonly sidebar?: SidebarConfig;
|
|
18
|
+
readonly header?: HeaderConfig;
|
|
19
|
+
/** Where a swipe that opens the sidebar may start, on a touch screen. */
|
|
20
|
+
readonly swipe?: 'anywhere' | 'edge' | 'off';
|
|
21
|
+
/** Drawn outside the moving page, told whether the sidebar is open. */
|
|
22
|
+
readonly statusBar?: (open: boolean) => ReactNode;
|
|
23
|
+
readonly className?: string;
|
|
24
|
+
readonly style?: CSSProperties;
|
|
25
|
+
/** The page. */
|
|
26
|
+
readonly children: ReactNode;
|
|
27
|
+
}): import("react").JSX.Element;
|
|
28
|
+
/** Whether the sidebar is open, to open or shut it, and whether it's a phone. */
|
|
29
|
+
export declare function useAppShell(): {
|
|
30
|
+
open: boolean;
|
|
31
|
+
setOpen: (open: boolean) => void;
|
|
32
|
+
toggle: () => void;
|
|
33
|
+
isMobile: boolean;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, useSidebarWidth };
|
|
37
|
+
//# sourceMappingURL=app-shell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","names":[],"sources":["../../../src/recipes/frame/app-shell.tsx"],"mappings":";;;;;;;;;;;;;;;wBA8BgB,SAAS;WACd,UAAU;WACV,SAAS;;WAET;;WAEA,aAAa,kBAAkB;WAC/B;WACA,QAAQ;;WAER,UAAU;oBACpB,IAAA;;wBA6Be"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Frame, useFrame } from "./frame/frame.js";
|
|
2
|
+
import { Header } from "./header.js";
|
|
3
|
+
import { SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem } from "./sidebar/blocks.js";
|
|
4
|
+
import { SidebarContents } from "./sidebar/sidebar.js";
|
|
5
|
+
import { useSidebarWidth } from "./sidebar/width.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { cn } from "cn";
|
|
8
|
+
//#region src/recipes/frame/app-shell.tsx
|
|
9
|
+
/**
|
|
10
|
+
* An app's whole screen: an optional sidebar, an optional header, and the
|
|
11
|
+
* page, which scrolls under the header. Mobile first: on a phone the page
|
|
12
|
+
* moves aside and shrinks to show the sidebar, under a finger on a touch
|
|
13
|
+
* screen; on a wide screen the sidebar sits beside the page, which is a card.
|
|
14
|
+
* One open state serves every size. Without a sidebar the page fills the
|
|
15
|
+
* screen, and the header's actions hold what the sidebar's footer would.
|
|
16
|
+
*/
|
|
17
|
+
function AppShell(props) {
|
|
18
|
+
const { sidebar, header } = props;
|
|
19
|
+
return /* @__PURE__ */ jsxs(Frame, {
|
|
20
|
+
sidebar: sidebar === void 0 ? void 0 : /* @__PURE__ */ jsx(SidebarContents, { config: sidebar }),
|
|
21
|
+
sidebarWidth: sidebar?.width,
|
|
22
|
+
swipe: props.swipe ?? "anywhere",
|
|
23
|
+
statusBar: props.statusBar,
|
|
24
|
+
className: props.className,
|
|
25
|
+
style: props.style,
|
|
26
|
+
children: [header === void 0 ? null : /* @__PURE__ */ jsx(Header, { config: header }), /* @__PURE__ */ jsx("div", {
|
|
27
|
+
"data-slot": "app-shell-scroller",
|
|
28
|
+
className: cn("min-h-0 flex-1 overflow-y-auto overscroll-contain", header === void 0 && "pt-[env(safe-area-inset-top)]"),
|
|
29
|
+
children: props.children
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** Whether the sidebar is open, to open or shut it, and whether it's a phone. */
|
|
34
|
+
function useAppShell() {
|
|
35
|
+
const { open, setOpen, toggle, isMobile } = useFrame();
|
|
36
|
+
return {
|
|
37
|
+
open,
|
|
38
|
+
setOpen,
|
|
39
|
+
toggle,
|
|
40
|
+
isMobile
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { AppShell, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, useAppShell, useSidebarWidth };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=app-shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-shell.js","names":[],"sources":["../../../src/recipes/frame/app-shell.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport type { CSSProperties, ReactNode } from 'react';\nimport { Frame, useFrame } from './frame/index.ts';\nimport { Header, type HeaderConfig } from './header.tsx';\nimport { type SidebarConfig, SidebarContents } from './sidebar/index.ts';\n\nexport { useSidebarWidth } from './sidebar/index.ts';\n\nexport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarInput,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from './sidebar/index.ts';\n\n/**\n * An app's whole screen: an optional sidebar, an optional header, and the\n * page, which scrolls under the header. Mobile first: on a phone the page\n * moves aside and shrinks to show the sidebar, under a finger on a touch\n * screen; on a wide screen the sidebar sits beside the page, which is a card.\n * One open state serves every size. Without a sidebar the page fills the\n * screen, and the header's actions hold what the sidebar's footer would.\n */\nexport function AppShell(props: {\n readonly sidebar?: SidebarConfig;\n readonly header?: HeaderConfig;\n /** Where a swipe that opens the sidebar may start, on a touch screen. */\n readonly swipe?: 'anywhere' | 'edge' | 'off';\n /** Drawn outside the moving page, told whether the sidebar is open. */\n readonly statusBar?: (open: boolean) => ReactNode;\n readonly className?: string;\n readonly style?: CSSProperties;\n /** The page. */\n readonly children: ReactNode;\n}) {\n const { sidebar, header } = props;\n return (\n <Frame\n sidebar={\n sidebar === undefined ? undefined : <SidebarContents config={sidebar} />\n }\n sidebarWidth={sidebar?.width}\n swipe={props.swipe ?? 'anywhere'}\n statusBar={props.statusBar}\n className={props.className}\n style={props.style}\n >\n {header === undefined ? null : <Header config={header} />}\n <div\n data-slot=\"app-shell-scroller\"\n className={cn(\n 'min-h-0 flex-1 overflow-y-auto overscroll-contain',\n // Without a header, the page itself keeps clear of the status bar.\n header === undefined && 'pt-[env(safe-area-inset-top)]',\n )}\n >\n {props.children}\n </div>\n </Frame>\n );\n}\n\n/** Whether the sidebar is open, to open or shut it, and whether it's a phone. */\nexport function useAppShell() {\n const { open, setOpen, toggle, isMobile } = useFrame();\n return { open, setOpen, toggle, isMobile };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA8BA,SAAgB,SAAS,OAWtB;CACD,MAAM,EAAE,SAAS,WAAW;CAC5B,OACE,qBAAC,OAAD;EACE,SACE,YAAY,KAAA,IAAY,KAAA,IAAY,oBAAC,iBAAD,EAAiB,QAAQ,QAAU,CAAA;EAEzE,cAAc,SAAS;EACvB,OAAO,MAAM,SAAS;EACtB,WAAW,MAAM;EACjB,WAAW,MAAM;EACjB,OAAO,MAAM;EARf,UAAA,CAUG,WAAW,KAAA,IAAY,OAAO,oBAAC,QAAD,EAAQ,QAAQ,OAAS,CAAA,GACxD,oBAAC,OAAD;GACE,aAAU;GACV,WAAW,GACT,qDAEA,WAAW,KAAA,KAAa,+BAC1B;GAEC,UAAA,MAAM;EACJ,CAAA,CACA;;AAEX;;AAGA,SAAgB,cAAc;CAC5B,MAAM,EAAE,MAAM,SAAS,QAAQ,aAAa,SAAS;CACrD,OAAO;EAAE;EAAM;EAAS;EAAQ;CAAS;AAC3C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
//#region src/recipes/frame/frame/frame.d.ts
|
|
3
|
+
interface FrameState {
|
|
4
|
+
readonly open: boolean;
|
|
5
|
+
readonly setOpen: (open: boolean) => void;
|
|
6
|
+
readonly toggle: () => void;
|
|
7
|
+
readonly isMobile: boolean;
|
|
8
|
+
readonly hasSidebar: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** The shell's state, for anything inside it. */
|
|
11
|
+
export declare function useFrame(): FrameState;
|
|
12
|
+
interface FrameProps {
|
|
13
|
+
/** What the sidebar holds; without it the page fills the screen alone. */
|
|
14
|
+
readonly sidebar?: ReactNode;
|
|
15
|
+
/** The page. */
|
|
16
|
+
readonly children: ReactNode;
|
|
17
|
+
readonly swipe: 'anywhere' | 'edge' | 'off';
|
|
18
|
+
/** The sidebar's width on a wide screen, in px. */
|
|
19
|
+
readonly sidebarWidth?: number;
|
|
20
|
+
/** Drawn outside the moving page, told whether the sidebar is open. */
|
|
21
|
+
readonly statusBar?: (open: boolean) => ReactNode;
|
|
22
|
+
readonly className?: string;
|
|
23
|
+
readonly style?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The screen: a sidebar under the page. On a phone the page moves aside,
|
|
27
|
+
* shrinks and dims to show it, under a finger or a spring; on a wide screen
|
|
28
|
+
* it sits beside the page, a card. Crossing between the two morphs.
|
|
29
|
+
*/
|
|
30
|
+
export declare function Frame(props: FrameProps): import("react").JSX.Element;
|
|
31
|
+
//#endregion
|
|
32
|
+
//# sourceMappingURL=frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.d.ts","names":[],"sources":["../../../../src/recipes/frame/frame/frame.tsx"],"mappings":";;UAuBU;WACC;WACA,UAAU;WACV;WACA;WACA;;;wBAMK,YAAY;UAOlB;;WAEC,UAAU;;WAEV,UAAU;WACV;;WAEA;;WAEA,aAAa,kBAAkB;WAC/B;WACA,QAAQ;;;;;;;wBAQH,MAAM,OAAO,6BAAU,IAAA"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { GestureProvider, GestureZone } from "../../../input/gesture/zones/zone/zone.js";
|
|
2
|
+
import { useIsMobile } from "../../../components/hooks/use-mobile.js";
|
|
3
|
+
import { DERIVED, FIRST_PAINT, PAGE_SIZE, PAGE_STYLE, SCRIM, SIDEBAR_STYLE } from "./geometry.js";
|
|
4
|
+
import { useMobileProgress, useOpenProgress } from "./motion.js";
|
|
5
|
+
import { useHydrated, useOpenState } from "./state.js";
|
|
6
|
+
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { cn } from "cn";
|
|
9
|
+
import { motion } from "motion/react";
|
|
10
|
+
//#region src/recipes/frame/frame/frame.tsx
|
|
11
|
+
const FrameContext = createContext(null);
|
|
12
|
+
/** The shell's state, for anything inside it. */
|
|
13
|
+
function useFrame() {
|
|
14
|
+
const frame = useContext(FrameContext);
|
|
15
|
+
if (frame === null) throw new Error("useAppShell must be used in an AppShell");
|
|
16
|
+
return frame;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The screen: a sidebar under the page. On a phone the page moves aside,
|
|
20
|
+
* shrinks and dims to show it, under a finger or a spring; on a wide screen
|
|
21
|
+
* it sits beside the page, a card. Crossing between the two morphs.
|
|
22
|
+
*/
|
|
23
|
+
function Frame(props) {
|
|
24
|
+
const root = cn("h-dvh", props.className);
|
|
25
|
+
if (props.sidebar === void 0) return /* @__PURE__ */ jsx("div", {
|
|
26
|
+
className: root,
|
|
27
|
+
style: props.style,
|
|
28
|
+
children: /* @__PURE__ */ jsx(Page, {
|
|
29
|
+
statusBar: props.statusBar,
|
|
30
|
+
children: props.children
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ jsx(GestureProvider, { children: /* @__PURE__ */ jsx(GestureZone, {
|
|
34
|
+
className: root,
|
|
35
|
+
style: props.style,
|
|
36
|
+
children: /* @__PURE__ */ jsx(WithSidebar, {
|
|
37
|
+
...props,
|
|
38
|
+
sidebar: props.sidebar
|
|
39
|
+
})
|
|
40
|
+
}) });
|
|
41
|
+
}
|
|
42
|
+
const noop = () => {};
|
|
43
|
+
function Page(props) {
|
|
44
|
+
const isMobile = useIsMobile();
|
|
45
|
+
const state = useMemo(() => ({
|
|
46
|
+
open: false,
|
|
47
|
+
setOpen: noop,
|
|
48
|
+
toggle: noop,
|
|
49
|
+
isMobile,
|
|
50
|
+
hasSidebar: false
|
|
51
|
+
}), [isMobile]);
|
|
52
|
+
return /* @__PURE__ */ jsxs(FrameContext.Provider, {
|
|
53
|
+
value: state,
|
|
54
|
+
children: [props.statusBar?.(false), /* @__PURE__ */ jsx("main", {
|
|
55
|
+
"data-slot": "app-shell-page",
|
|
56
|
+
className: "flex h-full flex-col bg-background",
|
|
57
|
+
children: props.children
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function WithSidebar(props) {
|
|
62
|
+
const isMobile = useIsMobile();
|
|
63
|
+
const { open, shown, setOpen } = useOpenState();
|
|
64
|
+
const toggle = useCallback(() => setOpen(!open), [open, setOpen]);
|
|
65
|
+
const values = {
|
|
66
|
+
"--sidebar-open": useOpenProgress({
|
|
67
|
+
open,
|
|
68
|
+
setOpen,
|
|
69
|
+
swipe: props.swipe
|
|
70
|
+
}),
|
|
71
|
+
"--sidebar-mobile": useMobileProgress()
|
|
72
|
+
};
|
|
73
|
+
const hydrated = useHydrated();
|
|
74
|
+
const state = useMemo(() => ({
|
|
75
|
+
open: shown,
|
|
76
|
+
setOpen,
|
|
77
|
+
toggle,
|
|
78
|
+
isMobile,
|
|
79
|
+
hasSidebar: true
|
|
80
|
+
}), [
|
|
81
|
+
shown,
|
|
82
|
+
setOpen,
|
|
83
|
+
toggle,
|
|
84
|
+
isMobile
|
|
85
|
+
]);
|
|
86
|
+
const covered = isMobile && shown;
|
|
87
|
+
return /* @__PURE__ */ jsx(FrameContext.Provider, {
|
|
88
|
+
value: state,
|
|
89
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
90
|
+
"data-slot": "app-shell",
|
|
91
|
+
"data-state": shown ? "open" : "closed",
|
|
92
|
+
className: cn("relative flex size-full overflow-hidden bg-sidebar", FIRST_PAINT),
|
|
93
|
+
style: {
|
|
94
|
+
"--sidebar-width": props.sidebarWidth === void 0 ? "16rem" : `${props.sidebarWidth}px`,
|
|
95
|
+
"--sidebar-width-mobile": "18rem"
|
|
96
|
+
},
|
|
97
|
+
onClick: (event) => {
|
|
98
|
+
if (covered && event.target === event.currentTarget) setOpen(false);
|
|
99
|
+
},
|
|
100
|
+
onKeyDown: (event) => {
|
|
101
|
+
if (covered && event.key === "Escape") setOpen(false);
|
|
102
|
+
},
|
|
103
|
+
children: [props.statusBar?.(shown), /* @__PURE__ */ jsxs(motion.div, {
|
|
104
|
+
className: "contents",
|
|
105
|
+
style: {
|
|
106
|
+
...DERIVED,
|
|
107
|
+
...hydrated ? values : {}
|
|
108
|
+
},
|
|
109
|
+
children: [/* @__PURE__ */ jsxs("aside", {
|
|
110
|
+
inert: !shown,
|
|
111
|
+
"data-slot": "app-shell-sidebar",
|
|
112
|
+
style: SIDEBAR_STYLE,
|
|
113
|
+
className: "absolute inset-y-0 left-0 z-0 flex w-(--sidebar-width-mobile) flex-col bg-sidebar pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] text-sidebar-foreground md:w-(--sidebar-width) md:py-2",
|
|
114
|
+
children: [props.swipe !== "off" && /* @__PURE__ */ jsx("div", {
|
|
115
|
+
"aria-hidden": "true",
|
|
116
|
+
className: "absolute inset-y-0 left-0 z-10 hidden w-6 pointer-coarse:block"
|
|
117
|
+
}), props.sidebar]
|
|
118
|
+
}), /* @__PURE__ */ jsxs("main", {
|
|
119
|
+
inert: covered,
|
|
120
|
+
"data-slot": "app-shell-page",
|
|
121
|
+
style: PAGE_STYLE,
|
|
122
|
+
className: cn("relative z-10 flex flex-col overflow-hidden bg-background shadow-sm", PAGE_SIZE),
|
|
123
|
+
children: [props.children, /* @__PURE__ */ jsx("div", {
|
|
124
|
+
"aria-hidden": "true",
|
|
125
|
+
className: cn("pointer-events-none absolute inset-0 z-50 bg-black", SCRIM)
|
|
126
|
+
})]
|
|
127
|
+
})]
|
|
128
|
+
})]
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
export { Frame, useFrame };
|
|
134
|
+
|
|
135
|
+
//# sourceMappingURL=frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.js","names":[],"sources":["../../../../src/recipes/frame/frame/frame.tsx"],"sourcesContent":["import { GestureProvider, GestureZone } from '../../../input/index.ts';\nimport { cn } from 'cn';\nimport { motion, type MotionStyle } from 'motion/react';\nimport {\n createContext,\n type CSSProperties,\n type ReactNode,\n useCallback,\n useContext,\n useMemo,\n} from 'react';\nimport { useIsMobile } from '#hooks/use-mobile';\nimport {\n DERIVED,\n FIRST_PAINT,\n PAGE_SIZE,\n PAGE_STYLE,\n SCRIM,\n SIDEBAR_STYLE,\n} from './geometry.ts';\nimport { useMobileProgress, useOpenProgress } from './motion.ts';\nimport { useHydrated, useOpenState } from './state.ts';\n\ninterface FrameState {\n readonly open: boolean;\n readonly setOpen: (open: boolean) => void;\n readonly toggle: () => void;\n readonly isMobile: boolean;\n readonly hasSidebar: boolean;\n}\n\nconst FrameContext = createContext<FrameState | null>(null);\n\n/** The shell's state, for anything inside it. */\nexport function useFrame(): FrameState {\n const frame = useContext(FrameContext);\n if (frame === null)\n throw new Error('useAppShell must be used in an AppShell');\n return frame;\n}\n\ninterface FrameProps {\n /** What the sidebar holds; without it the page fills the screen alone. */\n readonly sidebar?: ReactNode;\n /** The page. */\n readonly children: ReactNode;\n readonly swipe: 'anywhere' | 'edge' | 'off';\n /** The sidebar's width on a wide screen, in px. */\n readonly sidebarWidth?: number;\n /** Drawn outside the moving page, told whether the sidebar is open. */\n readonly statusBar?: (open: boolean) => ReactNode;\n readonly className?: string;\n readonly style?: CSSProperties;\n}\n\n/**\n * The screen: a sidebar under the page. On a phone the page moves aside,\n * shrinks and dims to show it, under a finger or a spring; on a wide screen\n * it sits beside the page, a card. Crossing between the two morphs.\n */\nexport function Frame(props: FrameProps) {\n const root = cn('h-dvh', props.className);\n if (props.sidebar === undefined) {\n return (\n <div className={root} style={props.style}>\n <Page statusBar={props.statusBar}>{props.children}</Page>\n </div>\n );\n }\n // A swipe needs a Gesture Zone; it takes only the swipes the sidebar wants.\n return (\n <GestureProvider>\n <GestureZone className={root} style={props.style}>\n <WithSidebar {...props} sidebar={props.sidebar} />\n </GestureZone>\n </GestureProvider>\n );\n}\n\nconst noop = () => {};\n\nfunction Page(props: {\n readonly statusBar: FrameProps['statusBar'];\n readonly children: ReactNode;\n}) {\n const isMobile = useIsMobile();\n const state = useMemo<FrameState>(\n () => ({\n open: false,\n setOpen: noop,\n toggle: noop,\n isMobile,\n hasSidebar: false,\n }),\n [isMobile],\n );\n return (\n <FrameContext.Provider value={state}>\n {props.statusBar?.(false)}\n <main\n data-slot=\"app-shell-page\"\n className=\"flex h-full flex-col bg-background\"\n >\n {props.children}\n </main>\n </FrameContext.Provider>\n );\n}\n\nfunction WithSidebar(props: FrameProps & { readonly sidebar: ReactNode }) {\n const isMobile = useIsMobile();\n const { open, shown, setOpen } = useOpenState();\n const toggle = useCallback(() => setOpen(!open), [open, setOpen]);\n\n // The two values everything is drawn from. The server can't know either,\n // so until hydration ends the classes give both by the breakpoint.\n const values = {\n '--sidebar-open': useOpenProgress({ open, setOpen, swipe: props.swipe }),\n '--sidebar-mobile': useMobileProgress(),\n };\n const hydrated = useHydrated();\n\n const state = useMemo<FrameState>(\n () => ({ open: shown, setOpen, toggle, isMobile, hasSidebar: true }),\n [shown, setOpen, toggle, isMobile],\n );\n // On a phone the open sidebar covers the page, which is inert till it shuts.\n const covered = isMobile && shown;\n\n return (\n <FrameContext.Provider value={state}>\n <div\n data-slot=\"app-shell\"\n data-state={shown ? 'open' : 'closed'}\n className={cn(\n 'relative flex size-full overflow-hidden bg-sidebar',\n FIRST_PAINT,\n )}\n style={\n {\n '--sidebar-width':\n props.sidebarWidth === undefined\n ? '16rem'\n : `${props.sidebarWidth}px`,\n '--sidebar-width-mobile': '18rem',\n } as CSSProperties\n }\n // The page is inert while covered, so a tap on it lands here: that\n // shuts the sidebar, as a tap on a scrim would.\n onClick={(event) => {\n if (covered && event.target === event.currentTarget) setOpen(false);\n }}\n onKeyDown={(event) => {\n if (covered && event.key === 'Escape') setOpen(false);\n }}\n >\n {props.statusBar?.(shown)}\n {/* No box of its own: it carries the values to what it holds. */}\n <motion.div\n className=\"contents\"\n style={{ ...DERIVED, ...(hydrated ? values : {}) } as MotionStyle}\n >\n {/* Absolute, not fixed: a fixed element down the whole screen stops\n an installed iOS app's status bar following theme switches. */}\n <aside\n inert={!shown}\n data-slot=\"app-shell-sidebar\"\n style={SIDEBAR_STYLE}\n className=\"absolute inset-y-0 left-0 z-0 flex w-(--sidebar-width-mobile) flex-col bg-sidebar pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] text-sidebar-foreground md:w-(--sidebar-width) md:py-2\"\n >\n {/* On touch, use-gesture keeps the first 24px from the edge from\n the browser's back swipe, but not on a link or button. This\n strip covers the items there, so the swipe never reaches one. */}\n {props.swipe !== 'off' && (\n <div\n aria-hidden=\"true\"\n className=\"absolute inset-y-0 left-0 z-10 hidden w-6 pointer-coarse:block\"\n />\n )}\n {props.sidebar}\n </aside>\n <main\n inert={covered}\n data-slot=\"app-shell-page\"\n style={PAGE_STYLE}\n className={cn(\n 'relative z-10 flex flex-col overflow-hidden bg-background shadow-sm',\n PAGE_SIZE,\n )}\n >\n {props.children}\n <div\n aria-hidden=\"true\"\n className={cn(\n 'pointer-events-none absolute inset-0 z-50 bg-black',\n SCRIM,\n )}\n />\n </main>\n </motion.div>\n </div>\n </FrameContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;AA+BA,MAAM,eAAe,cAAiC,IAAI;;AAG1D,SAAgB,WAAuB;CACrC,MAAM,QAAQ,WAAW,YAAY;CACrC,IAAI,UAAU,MACZ,MAAM,IAAI,MAAM,yCAAyC;CAC3D,OAAO;AACT;;;;;;AAqBA,SAAgB,MAAM,OAAmB;CACvC,MAAM,OAAO,GAAG,SAAS,MAAM,SAAS;CACxC,IAAI,MAAM,YAAY,KAAA,GACpB,OACE,oBAAC,OAAD;EAAK,WAAW;EAAM,OAAO,MAAM;EACjC,UAAA,oBAAC,MAAD;GAAM,WAAW,MAAM;GAAY,UAAA,MAAM;EAAe,CAAA;CACrD,CAAA;CAIT,OACE,oBAAC,iBAAD,EAAA,UACE,oBAAC,aAAD;EAAa,WAAW;EAAM,OAAO,MAAM;EACzC,UAAA,oBAAC,aAAD;GAAa,GAAI;GAAO,SAAS,MAAM;EAAU,CAAA;CACtC,CAAA,EACE,CAAA;AAErB;AAEA,MAAM,aAAa,CAAC;AAEpB,SAAS,KAAK,OAGX;CACD,MAAM,WAAW,YAAY;CAC7B,MAAM,QAAQ,eACL;EACL,MAAM;EACN,SAAS;EACT,QAAQ;EACR;EACA,YAAY;CACd,IACA,CAAC,QAAQ,CACX;CACA,OACE,qBAAC,aAAa,UAAd;EAAuB,OAAO;EAA9B,UAAA,CACG,MAAM,YAAY,KAAK,GACxB,oBAAC,QAAD;GACE,aAAU;GACV,WAAU;GAET,UAAA,MAAM;EACH,CAAA,CACe;;AAE3B;AAEA,SAAS,YAAY,OAAqD;CACxE,MAAM,WAAW,YAAY;CAC7B,MAAM,EAAE,MAAM,OAAO,YAAY,aAAa;CAC9C,MAAM,SAAS,kBAAkB,QAAQ,CAAC,IAAI,GAAG,CAAC,MAAM,OAAO,CAAC;CAIhE,MAAM,SAAS;EACb,kBAAkB,gBAAgB;GAAE;GAAM;GAAS,OAAO,MAAM;EAAM,CAAC;EACvE,oBAAoB,kBAAkB;CACxC;CACA,MAAM,WAAW,YAAY;CAE7B,MAAM,QAAQ,eACL;EAAE,MAAM;EAAO;EAAS;EAAQ;EAAU,YAAY;CAAK,IAClE;EAAC;EAAO;EAAS;EAAQ;CAAQ,CACnC;CAEA,MAAM,UAAU,YAAY;CAE5B,OACE,oBAAC,aAAa,UAAd;EAAuB,OAAO;EAC5B,UAAA,qBAAC,OAAD;GACE,aAAU;GACV,cAAY,QAAQ,SAAS;GAC7B,WAAW,GACT,sDACA,WACF;GACA,OACE;IACE,mBACE,MAAM,iBAAiB,KAAA,IACnB,UACA,GAAG,MAAM,aAAa;IAC5B,0BAA0B;GAC5B;GAIF,UAAU,UAAU;IAClB,IAAI,WAAW,MAAM,WAAW,MAAM,eAAe,QAAQ,KAAK;GACpE;GACA,YAAY,UAAU;IACpB,IAAI,WAAW,MAAM,QAAQ,UAAU,QAAQ,KAAK;GACtD;GAvBF,UAAA,CAyBG,MAAM,YAAY,KAAK,GAExB,qBAAC,OAAO,KAAR;IACE,WAAU;IACV,OAAO;KAAE,GAAG;KAAS,GAAI,WAAW,SAAS,CAAC;IAAG;IAFnD,UAAA,CAME,qBAAC,SAAD;KACE,OAAO,CAAC;KACR,aAAU;KACV,OAAO;KACP,WAAU;KAJZ,UAAA,CASG,MAAM,UAAU,SACf,oBAAC,OAAD;MACE,eAAY;MACZ,WAAU;KACX,CAAA,GAEF,MAAM,OACF;IACP,CAAA,GAAA,qBAAC,QAAD;KACE,OAAO;KACP,aAAU;KACV,OAAO;KACP,WAAW,GACT,uEACA,SACF;KAPF,UAAA,CASG,MAAM,UACP,oBAAC,OAAD;MACE,eAAY;MACZ,WAAW,GACT,sDACA,KACF;KACD,CAAA,CACG;IACI,CAAA,CAAA;GACT,CAAA,CAAA;;CACgB,CAAA;AAE3B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
//#region src/recipes/frame/frame/geometry.d.ts
|
|
3
|
+
/** The values the shapes below read, derived from the two. */
|
|
4
|
+
export declare const DERIVED: Record<string, string>;
|
|
5
|
+
/**
|
|
6
|
+
* The two values before the motion takes over, by the breakpoint: a phone
|
|
7
|
+
* starts shut, a wide screen as the markup says.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FIRST_PAINT = "[--sidebar-mobile:1] [--sidebar-open:0] md:[--sidebar-mobile:0] md:data-[state=open]:[--sidebar-open:1]";
|
|
10
|
+
/** The sidebar, under the page, sliding in and fading up as it opens. */
|
|
11
|
+
export declare const SIDEBAR_STYLE: CSSProperties;
|
|
12
|
+
/** The page: moved aside by the sidebar, lifted on a phone, a card when wide. */
|
|
13
|
+
export declare const PAGE_STYLE: CSSProperties;
|
|
14
|
+
/**
|
|
15
|
+
* The page's size: a phone's is the whole screen, pushed aside; a wide one's
|
|
16
|
+
* is what the sidebar leaves, less the card's margin.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PAGE_SIZE = "w-full md:h-[calc(100%-1rem)] md:w-[calc(100%-var(--sidebar-open)*var(--sidebar-width)-(2-var(--sidebar-open))*0.5rem)]";
|
|
19
|
+
/** The dim over the page, by how lifted it is. */
|
|
20
|
+
export declare const SCRIM = "opacity-[calc(var(--sidebar-lift)*0.3)] dark:opacity-[calc(var(--sidebar-lift)*0.5)]";
|
|
21
|
+
//#endregion
|
|
22
|
+
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","names":[],"sources":["../../../../src/recipes/frame/frame/geometry.ts"],"mappings":";;;qBAea,SAAS;;;;;qBAeT;;qBAIA,eAAe;;qBAMf,YAAY;;;;;qBAcZ;;qBAIA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region src/recipes/frame/frame/geometry.ts
|
|
2
|
+
/** The values the shapes below read, derived from the two. */
|
|
3
|
+
const DERIVED = {
|
|
4
|
+
"--sidebar-lift": "calc(var(--sidebar-open) * var(--sidebar-mobile))",
|
|
5
|
+
"--sidebar-push": "calc(var(--sidebar-width-mobile) * var(--sidebar-mobile) + var(--sidebar-width) * (1 - var(--sidebar-mobile)))",
|
|
6
|
+
"--sidebar-gap": "calc(0.5rem * (1 - var(--sidebar-mobile)))"
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The two values before the motion takes over, by the breakpoint: a phone
|
|
10
|
+
* starts shut, a wide screen as the markup says.
|
|
11
|
+
*/
|
|
12
|
+
const FIRST_PAINT = "[--sidebar-mobile:1] [--sidebar-open:0] md:[--sidebar-mobile:0] md:data-[state=open]:[--sidebar-open:1]";
|
|
13
|
+
/** The sidebar, under the page, sliding in and fading up as it opens. */
|
|
14
|
+
const SIDEBAR_STYLE = {
|
|
15
|
+
translate: "calc((var(--sidebar-open) - 1) * 20%)",
|
|
16
|
+
opacity: "var(--sidebar-open)"
|
|
17
|
+
};
|
|
18
|
+
/** The page: moved aside by the sidebar, lifted on a phone, a card when wide. */
|
|
19
|
+
const PAGE_STYLE = {
|
|
20
|
+
flex: "none",
|
|
21
|
+
translate: "calc(var(--sidebar-open) * var(--sidebar-push) + (1 - var(--sidebar-open)) * var(--sidebar-gap)) var(--sidebar-gap)",
|
|
22
|
+
scale: "calc(1 - 0.08 * var(--sidebar-lift))",
|
|
23
|
+
transformOrigin: "left center",
|
|
24
|
+
borderRadius: "calc(var(--sidebar-lift) * 2rem + (1 - var(--sidebar-mobile)) * 0.75rem)"
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The page's size: a phone's is the whole screen, pushed aside; a wide one's
|
|
28
|
+
* is what the sidebar leaves, less the card's margin.
|
|
29
|
+
*/
|
|
30
|
+
const PAGE_SIZE = "w-full md:h-[calc(100%-1rem)] md:w-[calc(100%-var(--sidebar-open)*var(--sidebar-width)-(2-var(--sidebar-open))*0.5rem)]";
|
|
31
|
+
/** The dim over the page, by how lifted it is. */
|
|
32
|
+
const SCRIM = "opacity-[calc(var(--sidebar-lift)*0.3)] dark:opacity-[calc(var(--sidebar-lift)*0.5)]";
|
|
33
|
+
//#endregion
|
|
34
|
+
export { DERIVED, FIRST_PAINT, PAGE_SIZE, PAGE_STYLE, SCRIM, SIDEBAR_STYLE };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=geometry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.js","names":[],"sources":["../../../../src/recipes/frame/frame/geometry.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\n\n/*\n * The shell is drawn from two values, both 0 to 1: `--sidebar-open`, how open\n * the sidebar is, and `--sidebar-mobile`, how much the layout is a phone's.\n * Everything else is a formula of them, so the same formulas swipe the\n * sidebar open on a phone, push the page on a wide screen, and morph one into\n * the other as the screen crosses the breakpoint.\n *\n * They move only what is painted. Sizes follow the breakpoint itself, in the\n * classes, so the page reflows once as the screen crosses it, never while it\n * morphs.\n */\n\n/** The values the shapes below read, derived from the two. */\nexport const DERIVED: Record<string, string> = {\n // How far the page is lifted off the sidebar, a phone's look: shrunk,\n // rounded and dimmed. Never on a wide screen.\n '--sidebar-lift': 'calc(var(--sidebar-open) * var(--sidebar-mobile))',\n // How far the page moves aside: a phone's sidebar width or a wide screen's.\n '--sidebar-push':\n 'calc(var(--sidebar-width-mobile) * var(--sidebar-mobile) + var(--sidebar-width) * (1 - var(--sidebar-mobile)))',\n // The margin round the page, a card on a wide screen.\n '--sidebar-gap': 'calc(0.5rem * (1 - var(--sidebar-mobile)))',\n};\n\n/**\n * The two values before the motion takes over, by the breakpoint: a phone\n * starts shut, a wide screen as the markup says.\n */\nexport const FIRST_PAINT =\n '[--sidebar-mobile:1] [--sidebar-open:0] md:[--sidebar-mobile:0] md:data-[state=open]:[--sidebar-open:1]';\n\n/** The sidebar, under the page, sliding in and fading up as it opens. */\nexport const SIDEBAR_STYLE: CSSProperties = {\n translate: 'calc((var(--sidebar-open) - 1) * 20%)',\n opacity: 'var(--sidebar-open)',\n};\n\n/** The page: moved aside by the sidebar, lifted on a phone, a card when wide. */\nexport const PAGE_STYLE: CSSProperties = {\n flex: 'none',\n translate:\n 'calc(var(--sidebar-open) * var(--sidebar-push) + (1 - var(--sidebar-open)) * var(--sidebar-gap)) var(--sidebar-gap)',\n scale: 'calc(1 - 0.08 * var(--sidebar-lift))',\n transformOrigin: 'left center',\n borderRadius:\n 'calc(var(--sidebar-lift) * 2rem + (1 - var(--sidebar-mobile)) * 0.75rem)',\n};\n\n/**\n * The page's size: a phone's is the whole screen, pushed aside; a wide one's\n * is what the sidebar leaves, less the card's margin.\n */\nexport const PAGE_SIZE =\n 'w-full md:h-[calc(100%-1rem)] md:w-[calc(100%-var(--sidebar-open)*var(--sidebar-width)-(2-var(--sidebar-open))*0.5rem)]';\n\n/** The dim over the page, by how lifted it is. */\nexport const SCRIM =\n 'opacity-[calc(var(--sidebar-lift)*0.3)] dark:opacity-[calc(var(--sidebar-lift)*0.5)]';\n"],"mappings":";;AAeA,MAAa,UAAkC;CAG7C,kBAAkB;CAElB,kBACE;CAEF,iBAAiB;AACnB;;;;;AAMA,MAAa,cACX;;AAGF,MAAa,gBAA+B;CAC1C,WAAW;CACX,SAAS;AACX;;AAGA,MAAa,aAA4B;CACvC,MAAM;CACN,WACE;CACF,OAAO;CACP,iBAAiB;CACjB,cACE;AACJ;;;;;AAMA,MAAa,YACX;;AAGF,MAAa,QACX"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MotionValue } from "motion/react";
|
|
2
|
+
//#region src/recipes/frame/frame/motion.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* `open`, 0 shut to 1 open: under a finger on a touch screen, else springing
|
|
5
|
+
* to the open state as it changes. Swipes open from anywhere, from the left
|
|
6
|
+
* edge only, or not at all.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useOpenProgress(options: {
|
|
9
|
+
readonly open: boolean;
|
|
10
|
+
readonly setOpen: (open: boolean) => void;
|
|
11
|
+
readonly swipe: 'anywhere' | 'edge' | 'off';
|
|
12
|
+
}): MotionValue<number>;
|
|
13
|
+
/**
|
|
14
|
+
* `mobile`, 1 on a phone to 0 wider: springing between the two as the screen
|
|
15
|
+
* crosses the breakpoint, or jumping, for reduced motion. It starts at the
|
|
16
|
+
* screen's real value.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useMobileProgress(): MotionValue<number>;
|
|
19
|
+
//#endregion
|
|
20
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","names":[],"sources":["../../../../src/recipes/frame/frame/motion.ts"],"mappings":";;;;;;;wBAmCgB,gBAAgB;WACrB;WACA,UAAU;WACV;IACP;;;;;;wBAiBY,qBAAqB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { useSidebar } from "../../../input/gesture/patterns/sidebar/use-sidebar.js";
|
|
2
|
+
import { MOBILE_QUERY } from "../../../components/hooks/use-mobile.js";
|
|
3
|
+
import { useCallback, useState, useSyncExternalStore } from "react";
|
|
4
|
+
import { animate, motionValue } from "motion/react";
|
|
5
|
+
//#region src/recipes/frame/frame/motion.ts
|
|
6
|
+
/** How far a phone's sidebar opens, in px: the `18rem` of `--sidebar-width-mobile`. */
|
|
7
|
+
const PHONE_SIDEBAR_WIDTH = 288;
|
|
8
|
+
/** The strip along the left edge that opens it, when swipes open from the edge. */
|
|
9
|
+
const EDGE = 24;
|
|
10
|
+
const TOUCH_QUERY = "(pointer: coarse)";
|
|
11
|
+
const MOBILE_SPRING = {
|
|
12
|
+
type: "spring",
|
|
13
|
+
visualDuration: .3,
|
|
14
|
+
bounce: 0
|
|
15
|
+
};
|
|
16
|
+
const watch = (query, onChange) => {
|
|
17
|
+
const mql = window.matchMedia(query);
|
|
18
|
+
mql.addEventListener("change", onChange);
|
|
19
|
+
return () => mql.removeEventListener("change", onChange);
|
|
20
|
+
};
|
|
21
|
+
function useIsTouch() {
|
|
22
|
+
return useSyncExternalStore(useCallback((onChange) => watch(TOUCH_QUERY, onChange), []), () => window.matchMedia(TOUCH_QUERY).matches, () => false);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* `open`, 0 shut to 1 open: under a finger on a touch screen, else springing
|
|
26
|
+
* to the open state as it changes. Swipes open from anywhere, from the left
|
|
27
|
+
* edge only, or not at all.
|
|
28
|
+
*/
|
|
29
|
+
function useOpenProgress(options) {
|
|
30
|
+
const touch = useIsTouch();
|
|
31
|
+
return useSidebar({
|
|
32
|
+
side: "left",
|
|
33
|
+
width: PHONE_SIDEBAR_WIDTH,
|
|
34
|
+
edge: options.swipe === "edge" ? EDGE : void 0,
|
|
35
|
+
enabled: touch && options.swipe !== "off",
|
|
36
|
+
open: options.open,
|
|
37
|
+
onOpenChange: options.setOpen
|
|
38
|
+
}).progress;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* `mobile`, 1 on a phone to 0 wider: springing between the two as the screen
|
|
42
|
+
* crosses the breakpoint, or jumping, for reduced motion. It starts at the
|
|
43
|
+
* screen's real value.
|
|
44
|
+
*/
|
|
45
|
+
function useMobileProgress() {
|
|
46
|
+
const [value] = useState(() => motionValue(typeof window !== "undefined" && window.matchMedia(MOBILE_QUERY).matches ? 1 : 0));
|
|
47
|
+
useSyncExternalStore(useCallback((onChange) => watch(MOBILE_QUERY, () => {
|
|
48
|
+
const next = window.matchMedia(MOBILE_QUERY).matches ? 1 : 0;
|
|
49
|
+
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) value.jump(next);
|
|
50
|
+
else animate(value, next, MOBILE_SPRING);
|
|
51
|
+
onChange();
|
|
52
|
+
}), [value]), () => value, () => value);
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { useMobileProgress, useOpenProgress };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.js","names":["useSwipeSidebar"],"sources":["../../../../src/recipes/frame/frame/motion.ts"],"sourcesContent":["import { useSidebar as useSwipeSidebar } from '../../../input/index.ts';\nimport { animate, type MotionValue, motionValue } from 'motion/react';\nimport { useCallback, useState, useSyncExternalStore } from 'react';\nimport { MOBILE_QUERY } from '#hooks/use-mobile';\n\n/** How far a phone's sidebar opens, in px: the `18rem` of `--sidebar-width-mobile`. */\nconst PHONE_SIDEBAR_WIDTH = 288;\n/** The strip along the left edge that opens it, when swipes open from the edge. */\nconst EDGE = 24;\nconst TOUCH_QUERY = '(pointer: coarse)';\nconst MOBILE_SPRING = {\n type: 'spring',\n visualDuration: 0.3,\n bounce: 0,\n} as const;\n\nconst watch = (query: string, onChange: () => void) => {\n const mql = window.matchMedia(query);\n mql.addEventListener('change', onChange);\n return () => mql.removeEventListener('change', onChange);\n};\n\nfunction useIsTouch() {\n return useSyncExternalStore(\n useCallback((onChange: () => void) => watch(TOUCH_QUERY, onChange), []),\n () => window.matchMedia(TOUCH_QUERY).matches,\n () => false,\n );\n}\n\n/**\n * `open`, 0 shut to 1 open: under a finger on a touch screen, else springing\n * to the open state as it changes. Swipes open from anywhere, from the left\n * edge only, or not at all.\n */\nexport function useOpenProgress(options: {\n readonly open: boolean;\n readonly setOpen: (open: boolean) => void;\n readonly swipe: 'anywhere' | 'edge' | 'off';\n}): MotionValue<number> {\n const touch = useIsTouch();\n return useSwipeSidebar({\n side: 'left',\n width: PHONE_SIDEBAR_WIDTH,\n edge: options.swipe === 'edge' ? EDGE : undefined,\n enabled: touch && options.swipe !== 'off',\n open: options.open,\n onOpenChange: options.setOpen,\n }).progress;\n}\n\n/**\n * `mobile`, 1 on a phone to 0 wider: springing between the two as the screen\n * crosses the breakpoint, or jumping, for reduced motion. It starts at the\n * screen's real value.\n */\nexport function useMobileProgress(): MotionValue<number> {\n const [value] = useState(() =>\n motionValue(\n typeof window !== 'undefined' && window.matchMedia(MOBILE_QUERY).matches\n ? 1\n : 0,\n ),\n );\n // The breakpoint's change event moves the value, through React's store\n // subscription: no effect to keep in step.\n useSyncExternalStore(\n useCallback(\n (onChange: () => void) =>\n watch(MOBILE_QUERY, () => {\n const next = window.matchMedia(MOBILE_QUERY).matches ? 1 : 0;\n if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {\n value.jump(next);\n } else {\n animate(value, next, MOBILE_SPRING);\n }\n onChange();\n }),\n [value],\n ),\n () => value,\n () => value,\n );\n return value;\n}\n"],"mappings":";;;;;;AAMA,MAAM,sBAAsB;;AAE5B,MAAM,OAAO;AACb,MAAM,cAAc;AACpB,MAAM,gBAAgB;CACpB,MAAM;CACN,gBAAgB;CAChB,QAAQ;AACV;AAEA,MAAM,SAAS,OAAe,aAAyB;CACrD,MAAM,MAAM,OAAO,WAAW,KAAK;CACnC,IAAI,iBAAiB,UAAU,QAAQ;CACvC,aAAa,IAAI,oBAAoB,UAAU,QAAQ;AACzD;AAEA,SAAS,aAAa;CACpB,OAAO,qBACL,aAAa,aAAyB,MAAM,aAAa,QAAQ,GAAG,CAAC,CAAC,SAChE,OAAO,WAAW,WAAW,CAAC,CAAC,eAC/B,KACR;AACF;;;;;;AAOA,SAAgB,gBAAgB,SAIR;CACtB,MAAM,QAAQ,WAAW;CACzB,OAAOA,WAAgB;EACrB,MAAM;EACN,OAAO;EACP,MAAM,QAAQ,UAAU,SAAS,OAAO,KAAA;EACxC,SAAS,SAAS,QAAQ,UAAU;EACpC,MAAM,QAAQ;EACd,cAAc,QAAQ;CACxB,CAAC,CAAC,CAAC;AACL;;;;;;AAOA,SAAgB,oBAAyC;CACvD,MAAM,CAAC,SAAS,eACd,YACE,OAAO,WAAW,eAAe,OAAO,WAAW,YAAY,CAAC,CAAC,UAC7D,IACA,CACN,CACF;CAGA,qBACE,aACG,aACC,MAAM,oBAAoB;EACxB,MAAM,OAAO,OAAO,WAAW,YAAY,CAAC,CAAC,UAAU,IAAI;EAC3D,IAAI,OAAO,WAAW,kCAAkC,CAAC,CAAC,SACxD,MAAM,KAAK,IAAI;OAEf,QAAQ,OAAO,MAAM,aAAa;EAEpC,SAAS;CACX,CAAC,GACH,CAAC,KAAK,CACR,SACM,aACA,KACR;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/recipes/frame/frame/state.d.ts
|
|
2
|
+
/** False while the server renders and hydration matches it, then true. */
|
|
3
|
+
export declare function useHydrated(): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* The sidebar's one open state, at every screen size. It starts open, except
|
|
6
|
+
* on a phone, where it starts shut so the page shows first. The server can't
|
|
7
|
+
* tell a phone, so it renders open, and so does hydration: `shown` is the
|
|
8
|
+
* state for the markup, `open` the real one for the motion, which draws
|
|
9
|
+
* nothing until then.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useOpenState(): {
|
|
12
|
+
open: boolean;
|
|
13
|
+
shown: boolean;
|
|
14
|
+
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","names":[],"sources":["../../../../src/recipes/frame/frame/state.ts"],"mappings":";;wBAMgB;;;;;;;;wBAeA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MOBILE_QUERY } from "../../../components/hooks/use-mobile.js";
|
|
2
|
+
import { useState, useSyncExternalStore } from "react";
|
|
3
|
+
//#region src/recipes/frame/frame/state.ts
|
|
4
|
+
const noSubscription = () => () => {};
|
|
5
|
+
/** False while the server renders and hydration matches it, then true. */
|
|
6
|
+
function useHydrated() {
|
|
7
|
+
return useSyncExternalStore(noSubscription, () => true, () => false);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The sidebar's one open state, at every screen size. It starts open, except
|
|
11
|
+
* on a phone, where it starts shut so the page shows first. The server can't
|
|
12
|
+
* tell a phone, so it renders open, and so does hydration: `shown` is the
|
|
13
|
+
* state for the markup, `open` the real one for the motion, which draws
|
|
14
|
+
* nothing until then.
|
|
15
|
+
*/
|
|
16
|
+
function useOpenState() {
|
|
17
|
+
const [open, setOpen] = useState(() => typeof window === "undefined" || !window.matchMedia(MOBILE_QUERY).matches);
|
|
18
|
+
return {
|
|
19
|
+
open,
|
|
20
|
+
shown: useHydrated() ? open : true,
|
|
21
|
+
setOpen
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { useHydrated, useOpenState };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","names":[],"sources":["../../../../src/recipes/frame/frame/state.ts"],"sourcesContent":["import { useState, useSyncExternalStore } from 'react';\nimport { MOBILE_QUERY } from '#hooks/use-mobile';\n\nconst noSubscription = () => () => {};\n\n/** False while the server renders and hydration matches it, then true. */\nexport function useHydrated() {\n return useSyncExternalStore(\n noSubscription,\n () => true,\n () => false,\n );\n}\n\n/**\n * The sidebar's one open state, at every screen size. It starts open, except\n * on a phone, where it starts shut so the page shows first. The server can't\n * tell a phone, so it renders open, and so does hydration: `shown` is the\n * state for the markup, `open` the real one for the motion, which draws\n * nothing until then.\n */\nexport function useOpenState() {\n const [open, setOpen] = useState(\n () =>\n typeof window === 'undefined' || !window.matchMedia(MOBILE_QUERY).matches,\n );\n const shown = useHydrated() ? open : true;\n return { open, shown, setOpen };\n}\n"],"mappings":";;;AAGA,MAAM,6BAA6B,CAAC;;AAGpC,SAAgB,cAAc;CAC5B,OAAO,qBACL,sBACM,YACA,KACR;AACF;;;;;;;;AASA,SAAgB,eAAe;CAC7B,MAAM,CAAC,MAAM,WAAW,eAEpB,OAAO,WAAW,eAAe,CAAC,OAAO,WAAW,YAAY,CAAC,CAAC,OACtE;CAEA,OAAO;EAAE;EAAM,OADD,YAAY,IAAI,OAAO;EACf;CAAQ;AAChC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/recipes/frame/header.d.ts
|
|
3
|
+
/** What an app puts in its header. */
|
|
4
|
+
export interface HeaderConfig {
|
|
5
|
+
/** Where you are. */
|
|
6
|
+
readonly title: ReactNode;
|
|
7
|
+
/** At the right edge: the page's own actions, and the account menu when there's no sidebar. */
|
|
8
|
+
readonly actions?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The page's bar: the sidebar's button and a divider, when there's a sidebar,
|
|
12
|
+
* then where you are, then the actions. Under the status bar on a phone.
|
|
13
|
+
*/
|
|
14
|
+
export declare function Header(props: {
|
|
15
|
+
readonly config: HeaderConfig;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
//# sourceMappingURL=header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","names":[],"sources":["../../../src/recipes/frame/header.tsx"],"mappings":";;;iBAOiB;;WAEN,OAAO;;WAEP,UAAU;;;;;;wBAOL,OAAO;WAAkB,QAAQ;oBAAc,IAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Button } from "../../components/ui/button.js";
|
|
2
|
+
import { Separator } from "../../components/ui/separator.js";
|
|
3
|
+
import { useFrame } from "./frame/frame.js";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { PanelLeftIcon } from "lucide-react";
|
|
6
|
+
//#region src/recipes/frame/header.tsx
|
|
7
|
+
/**
|
|
8
|
+
* The page's bar: the sidebar's button and a divider, when there's a sidebar,
|
|
9
|
+
* then where you are, then the actions. Under the status bar on a phone.
|
|
10
|
+
*/
|
|
11
|
+
function Header(props) {
|
|
12
|
+
const { open, toggle, hasSidebar } = useFrame();
|
|
13
|
+
return /* @__PURE__ */ jsxs("header", {
|
|
14
|
+
"data-slot": "app-shell-header",
|
|
15
|
+
className: "box-content flex h-14 shrink-0 items-center gap-2 border-b border-border px-4 pt-[env(safe-area-inset-top)] md:h-12 md:pt-0",
|
|
16
|
+
children: [
|
|
17
|
+
hasSidebar ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Button, {
|
|
18
|
+
variant: "ghost",
|
|
19
|
+
size: "icon",
|
|
20
|
+
"aria-label": "Toggle sidebar",
|
|
21
|
+
"aria-expanded": open,
|
|
22
|
+
className: "-ml-2 size-11 rounded-full hover:bg-transparent aria-expanded:bg-transparent md:-ml-1 md:size-8 dark:hover:bg-transparent",
|
|
23
|
+
onClick: toggle,
|
|
24
|
+
children: /* @__PURE__ */ jsx(PanelLeftIcon, { "aria-hidden": "true" })
|
|
25
|
+
}), /* @__PURE__ */ jsx(Separator, {
|
|
26
|
+
orientation: "vertical",
|
|
27
|
+
className: "mr-1 data-[orientation=vertical]:h-4 data-[orientation=vertical]:self-center"
|
|
28
|
+
})] }) : null,
|
|
29
|
+
/* @__PURE__ */ jsx("div", {
|
|
30
|
+
className: "min-w-0 flex-1 truncate text-sm font-medium",
|
|
31
|
+
children: props.config.title
|
|
32
|
+
}),
|
|
33
|
+
props.config.actions === void 0 ? null : /* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: "-mr-2 flex shrink-0 items-center gap-1 md:-mr-1",
|
|
35
|
+
children: props.config.actions
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Header };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","names":[],"sources":["../../../src/recipes/frame/header.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { PanelLeftIcon } from 'lucide-react';\nimport { Button } from '#components/ui/button';\nimport { Separator } from '#components/ui/separator';\nimport { useFrame } from './frame/index.ts';\n\n/** What an app puts in its header. */\nexport interface HeaderConfig {\n /** Where you are. */\n readonly title: ReactNode;\n /** At the right edge: the page's own actions, and the account menu when there's no sidebar. */\n readonly actions?: ReactNode;\n}\n\n/**\n * The page's bar: the sidebar's button and a divider, when there's a sidebar,\n * then where you are, then the actions. Under the status bar on a phone.\n */\nexport function Header(props: { readonly config: HeaderConfig }) {\n const { open, toggle, hasSidebar } = useFrame();\n return (\n <header\n data-slot=\"app-shell-header\"\n className=\"box-content flex h-14 shrink-0 items-center gap-2 border-b border-border px-4 pt-[env(safe-area-inset-top)] md:h-12 md:pt-0\"\n >\n {hasSidebar ? (\n <>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n aria-label=\"Toggle sidebar\"\n aria-expanded={open}\n className=\"-ml-2 size-11 rounded-full hover:bg-transparent aria-expanded:bg-transparent md:-ml-1 md:size-8 dark:hover:bg-transparent\"\n onClick={toggle}\n >\n <PanelLeftIcon aria-hidden=\"true\" />\n </Button>\n <Separator\n orientation=\"vertical\"\n className=\"mr-1 data-[orientation=vertical]:h-4 data-[orientation=vertical]:self-center\"\n />\n </>\n ) : null}\n <div className=\"min-w-0 flex-1 truncate text-sm font-medium\">\n {props.config.title}\n </div>\n {props.config.actions === undefined ? null : (\n <div className=\"-mr-2 flex shrink-0 items-center gap-1 md:-mr-1\">\n {props.config.actions}\n </div>\n )}\n </header>\n );\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,OAAO,OAA0C;CAC/D,MAAM,EAAE,MAAM,QAAQ,eAAe,SAAS;CAC9C,OACE,qBAAC,UAAD;EACE,aAAU;EACV,WAAU;EAFZ,UAAA;GAIG,aACC,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,QAAD;IACE,SAAQ;IACR,MAAK;IACL,cAAW;IACX,iBAAe;IACf,WAAU;IACV,SAAS;IAET,UAAA,oBAAC,eAAD,EAAe,eAAY,OAAQ,CAAA;GAC7B,CAAA,GACR,oBAAC,WAAD;IACE,aAAY;IACZ,WAAU;GACX,CAAA,CACD,EAAA,CAAA,IACA;GACJ,oBAAC,OAAD;IAAK,WAAU;IACZ,UAAA,MAAM,OAAO;GACX,CAAA;GACJ,MAAM,OAAO,YAAY,KAAA,IAAY,OACpC,oBAAC,OAAD;IAAK,WAAU;IACZ,UAAA,MAAM,OAAO;GACX,CAAA;EAED;;AAEZ"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { useSidebarWidth } from "./sidebar/width.js";
|
|
2
|
+
import { SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem } from "./sidebar/blocks.js";
|
|
3
|
+
import { AppShell, useAppShell } from "./app-shell.js";
|
|
4
|
+
export { AppShell, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, useAppShell, useSidebarWidth };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem } from "./sidebar/blocks.js";
|
|
2
|
+
import { useSidebarWidth } from "./sidebar/width.js";
|
|
3
|
+
import { AppShell, useAppShell } from "./app-shell.js";
|
|
4
|
+
export { AppShell, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInput, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, useAppShell, useSidebarWidth };
|