@omerdlw/base-framework 3.0.1 → 3.2.0
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/MIGRATION.md +75 -0
- package/README.md +33 -25
- package/dist/ambient/index.d.ts +1 -0
- package/dist/ambient/index.js +14 -0
- package/dist/ambient/server/index.d.ts +1 -0
- package/dist/ambient/server/index.js +238 -0
- package/dist/ambient/server/index.js.map +1 -0
- package/dist/ambient/worker/index.d.ts +1 -0
- package/dist/ambient/worker/index.js +143 -0
- package/dist/ambient/worker/index.js.map +1 -0
- package/dist/background/index.d.ts +1 -0
- package/dist/background/index.js +13 -0
- package/dist/chunk-2223J34C.js +850 -0
- package/dist/chunk-2223J34C.js.map +1 -0
- package/dist/chunk-2LGI33JP.js +832 -0
- package/dist/chunk-2LGI33JP.js.map +1 -0
- package/dist/chunk-37OBXNEO.js +116 -0
- package/dist/chunk-37OBXNEO.js.map +1 -0
- package/dist/chunk-4OQGXZIH.js +1435 -0
- package/dist/chunk-4OQGXZIH.js.map +1 -0
- package/dist/chunk-5H6FZW3N.js +535 -0
- package/dist/chunk-5H6FZW3N.js.map +1 -0
- package/dist/chunk-7RSRDKYE.js +22 -0
- package/dist/chunk-7RSRDKYE.js.map +1 -0
- package/dist/chunk-AYUEZPAN.js +15762 -0
- package/dist/chunk-AYUEZPAN.js.map +1 -0
- package/dist/chunk-BCFJSPTI.js +261 -0
- package/dist/chunk-BCFJSPTI.js.map +1 -0
- package/dist/chunk-BMFHS3GV.js +118 -0
- package/dist/chunk-BMFHS3GV.js.map +1 -0
- package/dist/chunk-CRKJAACG.js +81 -0
- package/dist/chunk-CRKJAACG.js.map +1 -0
- package/dist/chunk-CT4UILO2.js +537 -0
- package/dist/chunk-CT4UILO2.js.map +1 -0
- package/dist/chunk-ESD5EQ5H.js +178 -0
- package/dist/chunk-ESD5EQ5H.js.map +1 -0
- package/dist/chunk-GCHQ5OC4.js +460 -0
- package/dist/chunk-GCHQ5OC4.js.map +1 -0
- package/dist/chunk-GT4COZI7.js +110 -0
- package/dist/chunk-GT4COZI7.js.map +1 -0
- package/dist/chunk-H6HRU3XN.js +567 -0
- package/dist/chunk-H6HRU3XN.js.map +1 -0
- package/dist/chunk-J3VTDBC6.js +14 -0
- package/dist/chunk-J3VTDBC6.js.map +1 -0
- package/dist/chunk-LTO77WSO.js +140 -0
- package/dist/chunk-LTO77WSO.js.map +1 -0
- package/dist/chunk-MCYHKFZL.js +17 -0
- package/dist/chunk-MCYHKFZL.js.map +1 -0
- package/dist/chunk-NHOJWICA.js +2367 -0
- package/dist/chunk-NHOJWICA.js.map +1 -0
- package/dist/chunk-QMFV53PP.js +1766 -0
- package/dist/chunk-QMFV53PP.js.map +1 -0
- package/dist/chunk-RDYYP36I.js +27 -0
- package/dist/chunk-RDYYP36I.js.map +1 -0
- package/dist/chunk-RF2YGILF.js +656 -0
- package/dist/chunk-RF2YGILF.js.map +1 -0
- package/dist/chunk-RTCJ35UC.js +825 -0
- package/dist/chunk-RTCJ35UC.js.map +1 -0
- package/dist/chunk-TUUGWQY5.js +3488 -0
- package/dist/chunk-TUUGWQY5.js.map +1 -0
- package/dist/chunk-WXEOP6Z4.js +577 -0
- package/dist/chunk-WXEOP6Z4.js.map +1 -0
- package/dist/chunk-WYVA6AN5.js +590 -0
- package/dist/chunk-WYVA6AN5.js.map +1 -0
- package/dist/chunk-Y2Q74PJP.js +537 -0
- package/dist/chunk-Y2Q74PJP.js.map +1 -0
- package/dist/chunk-ZFTQY7OF.js +139 -0
- package/dist/chunk-ZFTQY7OF.js.map +1 -0
- package/dist/chunk-ZSNP26VU.js +493 -0
- package/dist/chunk-ZSNP26VU.js.map +1 -0
- package/dist/context-menu/index.d.ts +1 -0
- package/dist/context-menu/index.js +19 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +10 -0
- package/dist/core/error/boundary.d.ts +27 -0
- package/dist/core/error/boundary.d.ts.map +1 -0
- package/dist/core/error/constants.d.ts +33 -0
- package/dist/core/error/constants.d.ts.map +1 -0
- package/dist/core/error/index.d.ts +9 -0
- package/dist/core/error/index.d.ts.map +1 -0
- package/dist/core/error/listener.d.ts +6 -0
- package/dist/core/error/listener.d.ts.map +1 -0
- package/dist/core/error/reporter.d.ts +49 -0
- package/dist/core/error/reporter.d.ts.map +1 -0
- package/dist/core/error/theme.d.ts +10 -0
- package/dist/core/error/theme.d.ts.map +1 -0
- package/dist/core/error/types.d.ts +128 -0
- package/dist/core/error/types.d.ts.map +1 -0
- package/dist/core/error/utils.d.ts +55 -0
- package/dist/core/error/utils.d.ts.map +1 -0
- package/dist/core/kernel/adapters.d.ts +9 -0
- package/dist/core/kernel/adapters.d.ts.map +1 -0
- package/dist/core/kernel/compose.d.ts +21 -0
- package/dist/core/kernel/compose.d.ts.map +1 -0
- package/dist/core/kernel/constants.d.ts +42 -0
- package/dist/core/kernel/constants.d.ts.map +1 -0
- package/dist/core/kernel/handlers.d.ts +7 -0
- package/dist/core/kernel/handlers.d.ts.map +1 -0
- package/dist/core/kernel/hooks.d.ts +13 -0
- package/dist/core/kernel/hooks.d.ts.map +1 -0
- package/dist/core/kernel/index.d.ts +15 -0
- package/dist/core/kernel/index.d.ts.map +1 -0
- package/dist/core/kernel/installed.d.ts +28 -0
- package/dist/core/kernel/installed.d.ts.map +1 -0
- package/dist/core/kernel/module.d.ts +57 -0
- package/dist/core/kernel/module.d.ts.map +1 -0
- package/dist/core/kernel/operations-records.d.ts +25 -0
- package/dist/core/kernel/operations-records.d.ts.map +1 -0
- package/dist/core/kernel/operations-resolve.d.ts +5 -0
- package/dist/core/kernel/operations-resolve.d.ts.map +1 -0
- package/dist/core/kernel/operations.d.ts +23 -0
- package/dist/core/kernel/operations.d.ts.map +1 -0
- package/dist/core/kernel/page-controller.d.ts +20 -0
- package/dist/core/kernel/page-controller.d.ts.map +1 -0
- package/dist/core/kernel/provider.d.ts +29 -0
- package/dist/core/kernel/provider.d.ts.map +1 -0
- package/dist/core/kernel/runtime.d.ts.map +1 -0
- package/dist/core/kernel/schema.d.ts +13 -0
- package/dist/core/kernel/schema.d.ts.map +1 -0
- package/dist/core/kernel/stabilize.d.ts +13 -0
- package/dist/core/kernel/stabilize.d.ts.map +1 -0
- package/dist/core/kernel/store-batch.d.ts +17 -0
- package/dist/core/kernel/store-batch.d.ts.map +1 -0
- package/dist/core/kernel/store-entries.d.ts +6 -0
- package/dist/core/kernel/store-entries.d.ts.map +1 -0
- package/dist/core/kernel/store-handles.d.ts +4 -0
- package/dist/core/kernel/store-handles.d.ts.map +1 -0
- package/dist/core/kernel/store-registration.d.ts +14 -0
- package/dist/core/kernel/store-registration.d.ts.map +1 -0
- package/dist/core/kernel/store-snapshots.d.ts +14 -0
- package/dist/core/kernel/store-snapshots.d.ts.map +1 -0
- package/dist/core/kernel/store-subscriptions.d.ts +16 -0
- package/dist/core/kernel/store-subscriptions.d.ts.map +1 -0
- package/dist/core/kernel/store.d.ts +8 -0
- package/dist/core/kernel/store.d.ts.map +1 -0
- package/dist/core/kernel/types-modules.d.ts +82 -0
- package/dist/core/kernel/types-modules.d.ts.map +1 -0
- package/dist/core/kernel/types-page.d.ts +67 -0
- package/dist/core/kernel/types-page.d.ts.map +1 -0
- package/dist/core/kernel/types-store.d.ts +71 -0
- package/dist/core/kernel/types-store.d.ts.map +1 -0
- package/dist/core/kernel/types.d.ts +169 -0
- package/dist/core/kernel/types.d.ts.map +1 -0
- package/dist/core/kernel/utils.d.ts +21 -0
- package/dist/core/kernel/utils.d.ts.map +1 -0
- package/dist/core/navigation/constants.d.ts +48 -0
- package/dist/core/navigation/constants.d.ts.map +1 -0
- package/dist/core/navigation/navigator-defaults.d.ts +4 -0
- package/dist/core/navigation/navigator-defaults.d.ts.map +1 -0
- package/dist/core/navigation/navigator-holds.d.ts +8 -0
- package/dist/core/navigation/navigator-holds.d.ts.map +1 -0
- package/dist/core/navigation/navigator-patience.d.ts +15 -0
- package/dist/core/navigation/navigator-patience.d.ts.map +1 -0
- package/dist/core/navigation/navigator-payload.d.ts +6 -0
- package/dist/core/navigation/navigator-payload.d.ts.map +1 -0
- package/dist/core/navigation/navigator-prefetch.d.ts +13 -0
- package/dist/core/navigation/navigator-prefetch.d.ts.map +1 -0
- package/dist/core/navigation/navigator.d.ts +7 -0
- package/dist/core/navigation/navigator.d.ts.map +1 -0
- package/dist/core/navigation/settings.d.ts +12 -0
- package/dist/core/navigation/settings.d.ts.map +1 -0
- package/dist/core/navigation/state.d.ts +26 -0
- package/dist/core/navigation/state.d.ts.map +1 -0
- package/dist/core/navigation/types.d.ts +194 -0
- package/dist/core/navigation/types.d.ts.map +1 -0
- package/dist/core/navigation/utils.d.ts +18 -0
- package/dist/core/navigation/utils.d.ts.map +1 -0
- package/dist/core/provider/index.d.ts +31 -0
- package/dist/core/provider/index.d.ts.map +1 -0
- package/dist/dock/index.d.ts +1 -0
- package/dist/dock/index.js +18 -0
- package/dist/error/index.d.ts +1 -9
- package/dist/error/index.js +8 -5
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +83 -0
- package/dist/events/index.js.map +1 -0
- package/dist/foundation/events/index.d.ts +67 -0
- package/dist/foundation/events/index.d.ts.map +1 -0
- package/dist/foundation/recipes/anatomy.d.ts +139 -0
- package/dist/foundation/recipes/anatomy.d.ts.map +1 -0
- package/dist/foundation/recipes/cn.d.ts +17 -0
- package/dist/foundation/recipes/cn.d.ts.map +1 -0
- package/dist/foundation/recipes/define.d.ts +134 -0
- package/dist/foundation/recipes/define.d.ts.map +1 -0
- package/dist/foundation/recipes/index.d.ts +11 -0
- package/dist/foundation/recipes/index.d.ts.map +1 -0
- package/dist/foundation/recipes/recipe.d.ts +97 -0
- package/dist/foundation/recipes/recipe.d.ts.map +1 -0
- package/dist/foundation/recipes/split.d.ts +10 -0
- package/dist/foundation/recipes/split.d.ts.map +1 -0
- package/dist/foundation/result/index.d.ts +98 -0
- package/dist/foundation/result/index.d.ts.map +1 -0
- package/dist/foundation/utils/dom.d.ts +19 -0
- package/dist/foundation/utils/dom.d.ts.map +1 -0
- package/dist/foundation/utils/index.d.ts +17 -0
- package/dist/foundation/utils/index.d.ts.map +1 -0
- package/dist/foundation/utils/number.d.ts +9 -0
- package/dist/foundation/utils/number.d.ts.map +1 -0
- package/dist/foundation/utils/object.d.ts +17 -0
- package/dist/foundation/utils/object.d.ts.map +1 -0
- package/dist/foundation/utils/report.d.ts +18 -0
- package/dist/foundation/utils/report.d.ts.map +1 -0
- package/dist/foundation/utils/scheduler.d.ts +52 -0
- package/dist/foundation/utils/scheduler.d.ts.map +1 -0
- package/dist/foundation/utils/store.d.ts +21 -0
- package/dist/foundation/utils/store.d.ts.map +1 -0
- package/dist/foundation/utils/string.d.ts +18 -0
- package/dist/foundation/utils/string.d.ts.map +1 -0
- package/dist/foundation/utils/tempo.d.ts +61 -0
- package/dist/foundation/utils/tempo.d.ts.map +1 -0
- package/dist/foundation/utils/timing.d.ts +13 -0
- package/dist/foundation/utils/timing.d.ts.map +1 -0
- package/dist/foundation/utils/transform.d.ts +17 -0
- package/dist/foundation/utils/transform.d.ts.map +1 -0
- package/dist/foundation/utils/user-message.d.ts +32 -0
- package/dist/foundation/utils/user-message.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -10
- package/dist/hooks/index.js +3 -1
- package/dist/index.d.ts +8 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -20
- package/dist/kernel/index.d.ts +1 -15
- package/dist/kernel/index.js +5 -2
- package/dist/loading/index.d.ts +1 -0
- package/dist/loading/index.js +12 -0
- package/dist/media/index.d.ts +1 -0
- package/dist/media/index.js +9 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +310 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modules/ambient/analyze-bounds.d.ts +12 -0
- package/dist/modules/ambient/analyze-bounds.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-clusters.d.ts +14 -0
- package/dist/modules/ambient/analyze-clusters.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-measures.d.ts +22 -0
- package/dist/modules/ambient/analyze-measures.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-swatches.d.ts +16 -0
- package/dist/modules/ambient/analyze-swatches.d.ts.map +1 -0
- package/dist/modules/ambient/analyze.d.ts +9 -49
- package/dist/modules/ambient/analyze.d.ts.map +1 -1
- package/dist/modules/ambient/constants.d.ts +4 -1
- package/dist/modules/ambient/constants.d.ts.map +1 -1
- package/dist/modules/ambient/context.d.ts +6 -0
- package/dist/modules/ambient/context.d.ts.map +1 -1
- package/dist/modules/ambient/dom.d.ts +23 -12
- package/dist/modules/ambient/dom.d.ts.map +1 -1
- package/dist/modules/ambient/extractor.d.ts +6 -4
- package/dist/modules/ambient/extractor.d.ts.map +1 -1
- package/dist/modules/ambient/hooks.d.ts +12 -0
- package/dist/modules/ambient/hooks.d.ts.map +1 -1
- package/dist/modules/ambient/index.d.ts +2 -2
- package/dist/modules/ambient/index.d.ts.map +1 -1
- package/dist/modules/ambient/module.d.ts +12 -1
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/oklab.d.ts +18 -13
- package/dist/modules/ambient/oklab.d.ts.map +1 -1
- package/dist/modules/ambient/pipeline.d.ts +0 -7
- package/dist/modules/ambient/pipeline.d.ts.map +1 -1
- package/dist/modules/ambient/quantize.d.ts +2 -9
- package/dist/modules/ambient/quantize.d.ts.map +1 -1
- package/dist/modules/ambient/server/address.d.ts +8 -3
- package/dist/modules/ambient/server/address.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +20 -23
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/settings.d.ts +23 -3
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/types.d.ts +98 -36
- package/dist/modules/ambient/types.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts +16 -1
- package/dist/modules/ambient/worker/index.d.ts.map +1 -1
- package/dist/modules/background/components/background-gradients.d.ts +8 -0
- package/dist/modules/background/components/background-gradients.d.ts.map +1 -0
- package/dist/modules/background/components/edge-gradient.d.ts +9 -0
- package/dist/modules/background/components/edge-gradient.d.ts.map +1 -0
- package/dist/modules/background/components/native-video.d.ts +4 -0
- package/dist/modules/background/components/native-video.d.ts.map +1 -0
- package/dist/modules/background/components/noise-overlay.d.ts +11 -0
- package/dist/modules/background/components/noise-overlay.d.ts.map +1 -0
- package/dist/modules/background/components/overlay.d.ts +6 -0
- package/dist/modules/background/components/overlay.d.ts.map +1 -0
- package/dist/modules/background/components/solid-overlay.d.ts +10 -0
- package/dist/modules/background/components/solid-overlay.d.ts.map +1 -0
- package/dist/modules/background/constants.d.ts +14 -1
- package/dist/modules/background/constants.d.ts.map +1 -1
- package/dist/modules/background/context.d.ts +7 -0
- package/dist/modules/background/context.d.ts.map +1 -1
- package/dist/modules/background/hooks/use-background-media-source.d.ts +4 -0
- package/dist/modules/background/hooks/use-background-media-source.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts +15 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts +929 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts +22 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts.map +1 -0
- package/dist/modules/background/hooks.d.ts +20 -1
- package/dist/modules/background/hooks.d.ts.map +1 -1
- package/dist/modules/background/index.d.ts +7 -7
- package/dist/modules/background/index.d.ts.map +1 -1
- package/dist/modules/background/lib/theme.d.ts +4 -0
- package/dist/modules/background/lib/theme.d.ts.map +1 -0
- package/dist/modules/background/model/override.d.ts +14 -0
- package/dist/modules/background/model/override.d.ts.map +1 -0
- package/dist/modules/background/model/playback.d.ts +25 -0
- package/dist/modules/background/model/playback.d.ts.map +1 -0
- package/dist/modules/background/model/state.d.ts +31 -0
- package/dist/modules/background/model/state.d.ts.map +1 -0
- package/dist/modules/background/model/video-frame.d.ts +31 -0
- package/dist/modules/background/model/video-frame.d.ts.map +1 -0
- package/dist/modules/background/model/visual.d.ts +932 -0
- package/dist/modules/background/model/visual.d.ts.map +1 -0
- package/dist/modules/background/module.d.ts +11 -0
- package/dist/modules/background/module.d.ts.map +1 -1
- package/dist/modules/background/motion.d.ts.map +1 -1
- package/dist/modules/background/types.d.ts +66 -10
- package/dist/modules/background/types.d.ts.map +1 -1
- package/dist/modules/background/youtube/components/player.d.ts +7 -0
- package/dist/modules/background/youtube/components/player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts +27 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +20 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +8 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts +16 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/audio.d.ts +17 -0
- package/dist/modules/background/youtube/lib/audio.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts +29 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/parse.d.ts +36 -0
- package/dist/modules/background/youtube/lib/parse.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/timing.d.ts +11 -0
- package/dist/modules/background/youtube/lib/timing.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts +53 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts.map +1 -0
- package/dist/modules/context-menu/constants.d.ts +30 -1
- package/dist/modules/context-menu/constants.d.ts.map +1 -1
- package/dist/modules/context-menu/context.d.ts +10 -2
- package/dist/modules/context-menu/context.d.ts.map +1 -1
- package/dist/modules/context-menu/dom.d.ts +13 -0
- package/dist/modules/context-menu/dom.d.ts.map +1 -1
- package/dist/modules/context-menu/hooks.d.ts +32 -5
- package/dist/modules/context-menu/hooks.d.ts.map +1 -1
- package/dist/modules/context-menu/index.d.ts +1 -1
- package/dist/modules/context-menu/index.d.ts.map +1 -1
- package/dist/modules/context-menu/items.d.ts +25 -0
- package/dist/modules/context-menu/items.d.ts.map +1 -1
- package/dist/modules/context-menu/module.d.ts +6 -0
- package/dist/modules/context-menu/module.d.ts.map +1 -1
- package/dist/modules/context-menu/motion.d.ts.map +1 -1
- package/dist/modules/context-menu/overlay.d.ts +30 -8
- package/dist/modules/context-menu/overlay.d.ts.map +1 -1
- package/dist/modules/context-menu/resolver.d.ts +8 -0
- package/dist/modules/context-menu/resolver.d.ts.map +1 -1
- package/dist/modules/context-menu/state.d.ts +9 -0
- package/dist/modules/context-menu/state.d.ts.map +1 -1
- package/dist/modules/context-menu/types.d.ts +85 -9
- package/dist/modules/context-menu/types.d.ts.map +1 -1
- package/dist/modules/controls/constants.d.ts +18 -1
- package/dist/modules/controls/constants.d.ts.map +1 -1
- package/dist/modules/controls/entries.d.ts +23 -1
- package/dist/modules/controls/entries.d.ts.map +1 -1
- package/dist/modules/controls/hooks.d.ts +11 -1
- package/dist/modules/controls/hooks.d.ts.map +1 -1
- package/dist/modules/controls/layout.d.ts +17 -0
- package/dist/modules/controls/layout.d.ts.map +1 -1
- package/dist/modules/controls/module.d.ts +7 -1
- package/dist/modules/controls/module.d.ts.map +1 -1
- package/dist/modules/controls/overlay.d.ts +11 -1
- package/dist/modules/controls/overlay.d.ts.map +1 -1
- package/dist/modules/controls/types.d.ts +51 -2
- package/dist/modules/controls/types.d.ts.map +1 -1
- package/dist/modules/dock/components/badge.d.ts +5 -0
- package/dist/modules/dock/components/badge.d.ts.map +1 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts +6 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +1 -0
- package/dist/modules/dock/components/card-banner.d.ts +4 -0
- package/dist/modules/dock/components/card-banner.d.ts.map +1 -0
- package/dist/modules/dock/components/card-header.d.ts +4 -0
- package/dist/modules/dock/components/card-header.d.ts.map +1 -0
- package/dist/modules/dock/components/card-item.d.ts +3 -0
- package/dist/modules/dock/components/card-item.d.ts.map +1 -0
- package/dist/modules/dock/components/command-bar.d.ts +7 -0
- package/dist/modules/dock/components/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/description.d.ts +4 -0
- package/dist/modules/dock/components/description.d.ts.map +1 -0
- package/dist/modules/dock/components/dock.d.ts +4 -0
- package/dist/modules/dock/components/dock.d.ts.map +1 -0
- package/dist/modules/dock/components/hud-view.d.ts +7 -0
- package/dist/modules/dock/components/hud-view.d.ts.map +1 -0
- package/dist/modules/dock/components/icon.d.ts +6 -0
- package/dist/modules/dock/components/icon.d.ts.map +1 -0
- package/dist/modules/dock/components/item-content.d.ts +4 -0
- package/dist/modules/dock/components/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/media-action.d.ts +4 -0
- package/dist/modules/dock/components/media-action.d.ts.map +1 -0
- package/dist/modules/dock/components/media-controls.d.ts +4 -0
- package/dist/modules/dock/components/media-controls.d.ts.map +1 -0
- package/dist/modules/dock/components/media-scrubber.d.ts +5 -0
- package/dist/modules/dock/components/media-scrubber.d.ts.map +1 -0
- package/dist/modules/dock/components/status-actions.d.ts +10 -0
- package/dist/modules/dock/components/status-actions.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/action.d.ts +17 -0
- package/dist/modules/dock/components/surface/action.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/controls.d.ts +12 -0
- package/dist/modules/dock/components/surface/controls.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts +5 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/header-button.d.ts +14 -0
- package/dist/modules/dock/components/surface/header-button.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/item-content.d.ts +6 -0
- package/dist/modules/dock/components/surface/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/shell.d.ts +3 -0
- package/dist/modules/dock/components/surface/shell.d.ts.map +1 -0
- package/dist/modules/dock/components/title.d.ts +4 -0
- package/dist/modules/dock/components/title.d.ts.map +1 -0
- package/dist/modules/dock/constants.d.ts +11 -2
- package/dist/modules/dock/constants.d.ts.map +1 -1
- package/dist/modules/dock/context.d.ts +8 -2
- package/dist/modules/dock/context.d.ts.map +1 -1
- package/dist/modules/dock/hooks/use-action-slot.d.ts +6 -0
- package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-badge.d.ts +4 -0
- package/dist/modules/dock/hooks/use-badge.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts +18 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts +7 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts +1612 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts +19 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts +8 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +2 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts +3 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts +16 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts +9 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts +8 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts.map +1 -0
- package/dist/modules/dock/hud.d.ts +8 -34
- package/dist/modules/dock/hud.d.ts.map +1 -1
- package/dist/modules/dock/index.d.ts +18 -12
- package/dist/modules/dock/index.d.ts.map +1 -1
- package/dist/modules/dock/lib/banner.d.ts +43 -0
- package/dist/modules/dock/lib/banner.d.ts.map +1 -0
- package/dist/modules/dock/lib/card-item.d.ts +46 -0
- package/dist/modules/dock/lib/card-item.d.ts.map +1 -0
- package/dist/modules/dock/lib/card.d.ts +20 -0
- package/dist/modules/dock/lib/card.d.ts.map +1 -0
- package/dist/modules/dock/lib/command-bar.d.ts +8 -0
- package/dist/modules/dock/lib/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/lib/dom.d.ts +7 -0
- package/dist/modules/dock/lib/dom.d.ts.map +1 -0
- package/dist/modules/dock/lib/element-helpers.d.ts +8 -0
- package/dist/modules/dock/lib/element-helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/helpers.d.ts +19 -0
- package/dist/modules/dock/lib/helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/media.d.ts +35 -0
- package/dist/modules/dock/lib/media.d.ts.map +1 -0
- package/dist/modules/dock/lib/styles.d.ts +902 -0
- package/dist/modules/dock/lib/styles.d.ts.map +1 -0
- package/dist/modules/dock/model/hud-definition.d.ts +13 -0
- package/dist/modules/dock/model/hud-definition.d.ts.map +1 -0
- package/dist/modules/dock/model/hud.d.ts +10 -0
- package/dist/modules/dock/model/hud.d.ts.map +1 -0
- package/dist/modules/dock/model/layout.d.ts +28 -0
- package/dist/modules/dock/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/model/page-entry.d.ts +11 -0
- package/dist/modules/dock/model/page-entry.d.ts.map +1 -0
- package/dist/modules/dock/model/page-surface.d.ts +4 -0
- package/dist/modules/dock/model/page-surface.d.ts.map +1 -0
- package/dist/modules/dock/model/paths.d.ts +15 -0
- package/dist/modules/dock/model/paths.d.ts.map +1 -0
- package/dist/modules/dock/model/state.d.ts +28 -0
- package/dist/modules/dock/model/state.d.ts.map +1 -0
- package/dist/modules/dock/model/surface-return.d.ts +14 -0
- package/dist/modules/dock/model/surface-return.d.ts.map +1 -0
- package/dist/modules/dock/module.d.ts +5 -7
- package/dist/modules/dock/module.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +716 -11
- package/dist/modules/dock/motion.d.ts.map +1 -1
- package/dist/modules/dock/provider.d.ts +2 -1
- package/dist/modules/dock/provider.d.ts.map +1 -1
- package/dist/modules/dock/routing/breadcrumbs.d.ts +6 -2
- package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -1
- package/dist/modules/dock/routing/continuity.d.ts +46 -14
- package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
- package/dist/modules/dock/routing/guards.d.ts +10 -1
- package/dist/modules/dock/routing/guards.d.ts.map +1 -1
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts +12 -0
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +1 -0
- package/dist/modules/dock/routing/lib/restore.d.ts +7 -0
- package/dist/modules/dock/routing/lib/restore.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/continuity.d.ts +21 -0
- package/dist/modules/dock/routing/model/continuity.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/policy.d.ts +7 -0
- package/dist/modules/dock/routing/model/policy.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/topology.d.ts +5 -0
- package/dist/modules/dock/routing/model/topology.d.ts.map +1 -0
- package/dist/modules/dock/routing/navigation.d.ts +10 -23
- package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
- package/dist/modules/dock/runtime/commands.d.ts +10 -1
- package/dist/modules/dock/runtime/commands.d.ts.map +1 -1
- package/dist/modules/dock/runtime/display.d.ts +9 -48
- package/dist/modules/dock/runtime/display.d.ts.map +1 -1
- package/dist/modules/dock/runtime/dock.d.ts +11 -70
- package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +14 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +7 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts +30 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/attention.d.ts +25 -0
- package/dist/modules/dock/runtime/model/attention.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/cards.d.ts +64 -0
- package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/items.d.ts +31 -0
- package/dist/modules/dock/runtime/model/items.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/layout.d.ts +10 -0
- package/dist/modules/dock/runtime/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/pipeline.d.ts +1 -1
- package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
- package/dist/modules/dock/runtime/provider-actions.d.ts +38 -0
- package/dist/modules/dock/runtime/provider-actions.d.ts.map +1 -0
- package/dist/modules/dock/status/action-options.d.ts +35 -0
- package/dist/modules/dock/status/action-options.d.ts.map +1 -0
- package/dist/modules/dock/status/events.d.ts +2 -2
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/status/hooks.d.ts +1 -1
- package/dist/modules/dock/status/hooks.d.ts.map +1 -1
- package/dist/modules/dock/status/model.d.ts +12 -32
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/status/state.d.ts +12 -0
- package/dist/modules/dock/status/state.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +5 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +7 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/constants.d.ts +5 -0
- package/dist/modules/dock/surface/constants.d.ts.map +1 -0
- package/dist/modules/dock/surface/context.d.ts +14 -1
- package/dist/modules/dock/surface/context.d.ts.map +1 -1
- package/dist/modules/dock/surface/definition.d.ts +28 -2
- package/dist/modules/dock/surface/definition.d.ts.map +1 -1
- package/dist/modules/dock/surface/helpers.d.ts +2 -1
- package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +15 -0
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +7 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +14 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts +20 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +13 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts +28 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/drag.d.ts +9 -0
- package/dist/modules/dock/surface/lib/drag.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/target.d.ts +8 -0
- package/dist/modules/dock/surface/lib/target.d.ts.map +1 -0
- package/dist/modules/dock/surface/machine.d.ts +17 -62
- package/dist/modules/dock/surface/machine.d.ts.map +1 -1
- package/dist/modules/dock/surface/model/builder.d.ts +39 -0
- package/dist/modules/dock/surface/model/builder.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/normalize.d.ts +13 -0
- package/dist/modules/dock/surface/model/normalize.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/open.d.ts +26 -0
- package/dist/modules/dock/surface/model/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/records.d.ts +45 -0
- package/dist/modules/dock/surface/model/records.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/steps.d.ts +9 -0
- package/dist/modules/dock/surface/model/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts +23 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/url.d.ts +14 -0
- package/dist/modules/dock/surface/model/url.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts +22 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/context.d.ts +29 -0
- package/dist/modules/dock/surface/runtime/context.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts +21 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/open.d.ts +6 -0
- package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/release.d.ts +9 -0
- package/dist/modules/dock/surface/runtime/release.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts +10 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/stack.d.ts +20 -11
- package/dist/modules/dock/surface/stack.d.ts.map +1 -1
- package/dist/modules/dock/surface/view-model.d.ts +5 -1
- package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
- package/dist/modules/dock/types/card.d.ts +297 -0
- package/dist/modules/dock/types/card.d.ts.map +1 -0
- package/dist/modules/dock/types/hud.d.ts +142 -0
- package/dist/modules/dock/types/hud.d.ts.map +1 -0
- package/dist/modules/dock/types/index.d.ts +8 -0
- package/dist/modules/dock/types/index.d.ts.map +1 -0
- package/dist/modules/dock/types/media.d.ts +66 -0
- package/dist/modules/dock/types/media.d.ts.map +1 -0
- package/dist/modules/dock/types/routing.d.ts +336 -0
- package/dist/modules/dock/types/routing.d.ts.map +1 -0
- package/dist/modules/dock/types/surface-flow.d.ts +231 -0
- package/dist/modules/dock/types/surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/types/surface.d.ts +194 -0
- package/dist/modules/dock/types/surface.d.ts.map +1 -0
- package/dist/modules/dock/types/theme.d.ts +201 -0
- package/dist/modules/dock/types/theme.d.ts.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +23 -18
- package/dist/modules/loading/constants.d.ts +18 -1
- package/dist/modules/loading/constants.d.ts.map +1 -1
- package/dist/modules/loading/context.d.ts +11 -1
- package/dist/modules/loading/context.d.ts.map +1 -1
- package/dist/modules/loading/hooks.d.ts +24 -1
- package/dist/modules/loading/hooks.d.ts.map +1 -1
- package/dist/modules/loading/index.d.ts +1 -1
- package/dist/modules/loading/index.d.ts.map +1 -1
- package/dist/modules/loading/module.d.ts +6 -0
- package/dist/modules/loading/module.d.ts.map +1 -1
- package/dist/modules/loading/overlay.d.ts +3 -0
- package/dist/modules/loading/overlay.d.ts.map +1 -1
- package/dist/modules/loading/state.d.ts +13 -0
- package/dist/modules/loading/state.d.ts.map +1 -1
- package/dist/modules/loading/types.d.ts +42 -2
- package/dist/modules/loading/types.d.ts.map +1 -1
- package/dist/modules/media/constants.d.ts +19 -0
- package/dist/modules/media/constants.d.ts.map +1 -1
- package/dist/modules/media/context.d.ts +11 -1
- package/dist/modules/media/context.d.ts.map +1 -1
- package/dist/modules/media/hooks.d.ts +17 -0
- package/dist/modules/media/hooks.d.ts.map +1 -1
- package/dist/modules/media/index.d.ts +1 -1
- package/dist/modules/media/index.d.ts.map +1 -1
- package/dist/modules/media/module.d.ts +4 -0
- package/dist/modules/media/module.d.ts.map +1 -1
- package/dist/modules/media/overlay.d.ts +7 -0
- package/dist/modules/media/overlay.d.ts.map +1 -1
- package/dist/modules/media/playback.d.ts +13 -0
- package/dist/modules/media/playback.d.ts.map +1 -1
- package/dist/modules/media/session.d.ts +20 -0
- package/dist/modules/media/session.d.ts.map +1 -1
- package/dist/modules/media/types.d.ts +49 -2
- package/dist/modules/media/types.d.ts.map +1 -1
- package/dist/modules/modal/components/close-button.d.ts +6 -0
- package/dist/modules/modal/components/close-button.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-container.d.ts +7 -0
- package/dist/modules/modal/components/modal-container.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts +9 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer.d.ts +17 -0
- package/dist/modules/modal/components/modal-layer.d.ts.map +1 -0
- package/dist/modules/modal/components/overlay.d.ts +6 -0
- package/dist/modules/modal/components/overlay.d.ts.map +1 -0
- package/dist/modules/modal/components/resolve-header.d.ts +10 -0
- package/dist/modules/modal/components/resolve-header.d.ts.map +1 -0
- package/dist/modules/modal/components/slot-row.d.ts +12 -0
- package/dist/modules/modal/components/slot-row.d.ts.map +1 -0
- package/dist/modules/modal/constants.d.ts +16 -1
- package/dist/modules/modal/constants.d.ts.map +1 -1
- package/dist/modules/modal/context.d.ts +7 -1
- package/dist/modules/modal/context.d.ts.map +1 -1
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +3 -0
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +12 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +3 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +1 -0
- package/dist/modules/modal/hooks.d.ts +30 -4
- package/dist/modules/modal/hooks.d.ts.map +1 -1
- package/dist/modules/modal/index.d.ts +8 -7
- package/dist/modules/modal/index.d.ts.map +1 -1
- package/dist/modules/modal/lib/dom.d.ts +13 -0
- package/dist/modules/modal/lib/dom.d.ts.map +1 -0
- package/dist/modules/modal/lib/theme.d.ts +4 -0
- package/dist/modules/modal/lib/theme.d.ts.map +1 -0
- package/dist/modules/modal/model/entry.d.ts +18 -0
- package/dist/modules/modal/model/entry.d.ts.map +1 -0
- package/dist/modules/modal/model/header.d.ts +16 -0
- package/dist/modules/modal/model/header.d.ts.map +1 -0
- package/dist/modules/modal/model/identity.d.ts +13 -0
- package/dist/modules/modal/model/identity.d.ts.map +1 -0
- package/dist/modules/modal/model/layout.d.ts +37 -0
- package/dist/modules/modal/model/layout.d.ts.map +1 -0
- package/dist/modules/modal/model/state.d.ts +10 -0
- package/dist/modules/modal/model/state.d.ts.map +1 -0
- package/dist/modules/modal/module.d.ts +7 -0
- package/dist/modules/modal/module.d.ts.map +1 -1
- package/dist/modules/modal/motion.d.ts.map +1 -1
- package/dist/modules/modal/types.d.ts +73 -10
- package/dist/modules/modal/types.d.ts.map +1 -1
- package/dist/modules/navigation/context.d.ts +16 -5
- package/dist/modules/navigation/context.d.ts.map +1 -1
- package/dist/modules/navigation/hooks.d.ts +22 -13
- package/dist/modules/navigation/hooks.d.ts.map +1 -1
- package/dist/modules/navigation/index.d.ts +5 -5
- package/dist/modules/navigation/index.d.ts.map +1 -1
- package/dist/modules/navigation/listeners.d.ts +6 -8
- package/dist/modules/navigation/listeners.d.ts.map +1 -1
- package/dist/modules/navigation/module.d.ts +5 -2
- package/dist/modules/navigation/module.d.ts.map +1 -1
- package/dist/modules/notification/constants.d.ts +22 -2
- package/dist/modules/notification/constants.d.ts.map +1 -1
- package/dist/modules/notification/context.d.ts +12 -2
- package/dist/modules/notification/context.d.ts.map +1 -1
- package/dist/modules/notification/hooks.d.ts +32 -1
- package/dist/modules/notification/hooks.d.ts.map +1 -1
- package/dist/modules/notification/module.d.ts +3 -0
- package/dist/modules/notification/module.d.ts.map +1 -1
- package/dist/modules/notification/motion.d.ts.map +1 -1
- package/dist/modules/notification/overlay.d.ts.map +1 -1
- package/dist/modules/notification/state.d.ts +28 -0
- package/dist/modules/notification/state.d.ts.map +1 -1
- package/dist/modules/notification/types.d.ts +48 -5
- package/dist/modules/notification/types.d.ts.map +1 -1
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +189 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.js +11 -0
- package/dist/overlay-QHSJBV3O.js +13 -0
- package/dist/overlay-QHSJBV3O.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.js +14 -0
- package/dist/react/context/index.d.ts +4 -0
- package/dist/react/context/index.d.ts.map +1 -0
- package/dist/react/hooks/index.d.ts +10 -0
- package/dist/react/hooks/index.d.ts.map +1 -0
- package/dist/react/hooks/types.d.ts +25 -0
- package/dist/react/hooks/types.d.ts.map +1 -0
- package/dist/react/hooks/use-click-outside.d.ts +6 -0
- package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/react/hooks/use-controllable-state.d.ts +7 -0
- package/dist/react/hooks/use-controllable-state.d.ts.map +1 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts +7 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -0
- package/dist/react/hooks/use-global-event.d.ts +9 -0
- package/dist/react/hooks/use-global-event.d.ts.map +1 -0
- package/dist/react/hooks/use-hotkey.d.ts +10 -0
- package/dist/react/hooks/use-hotkey.d.ts.map +1 -0
- package/dist/react/hooks/use-required-context.d.ts +6 -0
- package/dist/react/hooks/use-required-context.d.ts.map +1 -0
- package/dist/react/hooks/use-scroll-lock.d.ts +9 -0
- package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/react/hooks/use-store.d.ts +3 -0
- package/dist/react/hooks/use-store.d.ts.map +1 -0
- package/dist/react/theme/index.d.ts +82 -0
- package/dist/react/theme/index.d.ts.map +1 -0
- package/dist/react/ui/components/avatar.d.ts +6 -0
- package/dist/react/ui/components/avatar.d.ts.map +1 -0
- package/dist/react/ui/components/button.d.ts +6 -0
- package/dist/react/ui/components/button.d.ts.map +1 -0
- package/dist/react/ui/components/carousel.d.ts +6 -0
- package/dist/react/ui/components/carousel.d.ts.map +1 -0
- package/dist/react/ui/components/checkbox.d.ts +10 -0
- package/dist/react/ui/components/checkbox.d.ts.map +1 -0
- package/dist/react/ui/components/icon.d.ts +6 -0
- package/dist/react/ui/components/icon.d.ts.map +1 -0
- package/dist/react/ui/components/image.d.ts +6 -0
- package/dist/react/ui/components/image.d.ts.map +1 -0
- package/dist/react/ui/components/indicator.d.ts +45 -0
- package/dist/react/ui/components/indicator.d.ts.map +1 -0
- package/dist/react/ui/components/input.d.ts +10 -0
- package/dist/react/ui/components/input.d.ts.map +1 -0
- package/dist/react/ui/components/loader.d.ts +10 -0
- package/dist/react/ui/components/loader.d.ts.map +1 -0
- package/dist/react/ui/components/segmented.d.ts +6 -0
- package/dist/react/ui/components/segmented.d.ts.map +1 -0
- package/dist/react/ui/components/select-parts.d.ts +22 -0
- package/dist/react/ui/components/select-parts.d.ts.map +1 -0
- package/dist/react/ui/components/select.d.ts +6 -0
- package/dist/react/ui/components/select.d.ts.map +1 -0
- package/dist/react/ui/components/skeleton.d.ts +10 -0
- package/dist/react/ui/components/skeleton.d.ts.map +1 -0
- package/dist/react/ui/components/switch.d.ts +6 -0
- package/dist/react/ui/components/switch.d.ts.map +1 -0
- package/dist/react/ui/components/tooltip.d.ts +11 -0
- package/dist/react/ui/components/tooltip.d.ts.map +1 -0
- package/dist/react/ui/index.d.ts +19 -0
- package/dist/react/ui/index.d.ts.map +1 -0
- package/dist/react/ui/provider.d.ts +22 -0
- package/dist/react/ui/provider.d.ts.map +1 -0
- package/dist/react/ui/types-controls.d.ts +133 -0
- package/dist/react/ui/types-controls.d.ts.map +1 -0
- package/dist/react/ui/types.d.ts +192 -0
- package/dist/react/ui/types.d.ts.map +1 -0
- package/dist/react/ui/utils.d.ts +65 -0
- package/dist/react/ui/utils.d.ts.map +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/recipes/index.js +233 -0
- package/dist/recipes/index.js.map +1 -0
- package/dist/result/index.d.ts +1 -0
- package/dist/result/index.js +98 -0
- package/dist/result/index.js.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +6 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +2268 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/index.d.ts +1 -15
- package/dist/utils/index.js +194 -71
- package/dist/utils/index.js.map +1 -1
- package/docs/README.md +58 -57
- package/docs/architecture-and-rules.md +133 -58
- package/docs/core-engine.md +36 -52
- package/docs/custom-modules.md +43 -32
- package/docs/design.md +185 -0
- package/docs/getting-started.md +49 -57
- package/docs/modules/README.md +50 -61
- package/docs/modules/ambient.md +95 -87
- package/docs/modules/background.md +39 -36
- package/docs/modules/context-menu.md +19 -18
- package/docs/modules/controls.md +13 -13
- package/docs/modules/dock.md +74 -93
- package/docs/modules/error-boundary.md +2 -2
- package/docs/modules/kernel.md +38 -26
- package/docs/modules/loading.md +14 -14
- package/docs/modules/media.md +13 -13
- package/docs/modules/modal.md +14 -14
- package/docs/modules/navigation.md +87 -84
- package/docs/modules/notification.md +13 -13
- package/docs/modules/result.md +22 -22
- package/docs/proposals/navigation.md +32 -31
- package/docs/testing.md +34 -28
- package/docs/theming.md +67 -44
- package/package.json +106 -88
- package/templates/AGENTS.md +35 -25
- package/dist/atoms/button.d.ts +0 -11
- package/dist/atoms/button.d.ts.map +0 -1
- package/dist/atoms/icon.d.ts +0 -15
- package/dist/atoms/icon.d.ts.map +0 -1
- package/dist/atoms/index.d.ts +0 -5
- package/dist/atoms/index.d.ts.map +0 -1
- package/dist/atoms/index.js +0 -4
- package/dist/atoms/spinner.d.ts +0 -9
- package/dist/atoms/spinner.d.ts.map +0 -1
- package/dist/atoms/tooltip.d.ts +0 -18
- package/dist/atoms/tooltip.d.ts.map +0 -1
- package/dist/chunk-3BUP64Q6.js +0 -105
- package/dist/chunk-3BUP64Q6.js.map +0 -1
- package/dist/chunk-4GMQKD6F.js +0 -353
- package/dist/chunk-4GMQKD6F.js.map +0 -1
- package/dist/chunk-66EYJBIP.js +0 -300
- package/dist/chunk-66EYJBIP.js.map +0 -1
- package/dist/chunk-7HQMXTNP.js +0 -419
- package/dist/chunk-7HQMXTNP.js.map +0 -1
- package/dist/chunk-7TAVYJ3A.js +0 -371
- package/dist/chunk-7TAVYJ3A.js.map +0 -1
- package/dist/chunk-AQ4BNXA2.js +0 -349
- package/dist/chunk-AQ4BNXA2.js.map +0 -1
- package/dist/chunk-CGHZSSFR.js +0 -2166
- package/dist/chunk-CGHZSSFR.js.map +0 -1
- package/dist/chunk-DGCQWQLZ.js +0 -61
- package/dist/chunk-DGCQWQLZ.js.map +0 -1
- package/dist/chunk-FIMPHODX.js +0 -67
- package/dist/chunk-FIMPHODX.js.map +0 -1
- package/dist/chunk-GF7TUX5I.js +0 -1889
- package/dist/chunk-GF7TUX5I.js.map +0 -1
- package/dist/chunk-HHWRTQKQ.js +0 -610
- package/dist/chunk-HHWRTQKQ.js.map +0 -1
- package/dist/chunk-HLL5EHXC.js +0 -485
- package/dist/chunk-HLL5EHXC.js.map +0 -1
- package/dist/chunk-I5GK7VOV.js +0 -28
- package/dist/chunk-I5GK7VOV.js.map +0 -1
- package/dist/chunk-JELG4JLT.js +0 -454
- package/dist/chunk-JELG4JLT.js.map +0 -1
- package/dist/chunk-K676GL7Z.js +0 -51
- package/dist/chunk-K676GL7Z.js.map +0 -1
- package/dist/chunk-QI3ALLIB.js +0 -38
- package/dist/chunk-QI3ALLIB.js.map +0 -1
- package/dist/chunk-R2YGFJDJ.js +0 -408
- package/dist/chunk-R2YGFJDJ.js.map +0 -1
- package/dist/chunk-RFZQWLC5.js +0 -27
- package/dist/chunk-RFZQWLC5.js.map +0 -1
- package/dist/chunk-RIOKLMYM.js +0 -145
- package/dist/chunk-RIOKLMYM.js.map +0 -1
- package/dist/chunk-RRAZKP3J.js +0 -888
- package/dist/chunk-RRAZKP3J.js.map +0 -1
- package/dist/chunk-SYAVGTOX.js +0 -521
- package/dist/chunk-SYAVGTOX.js.map +0 -1
- package/dist/chunk-TG6NMHXI.js +0 -1218
- package/dist/chunk-TG6NMHXI.js.map +0 -1
- package/dist/chunk-TV3WEF5G.js +0 -784
- package/dist/chunk-TV3WEF5G.js.map +0 -1
- package/dist/chunk-WVRMABDN.js +0 -9727
- package/dist/chunk-WVRMABDN.js.map +0 -1
- package/dist/error/boundary.d.ts +0 -14
- package/dist/error/boundary.d.ts.map +0 -1
- package/dist/error/constants.d.ts +0 -18
- package/dist/error/constants.d.ts.map +0 -1
- package/dist/error/index.d.ts.map +0 -1
- package/dist/error/listener.d.ts +0 -2
- package/dist/error/listener.d.ts.map +0 -1
- package/dist/error/reporter.d.ts +0 -32
- package/dist/error/reporter.d.ts.map +0 -1
- package/dist/error/theme.d.ts +0 -3
- package/dist/error/theme.d.ts.map +0 -1
- package/dist/error/types.d.ts +0 -91
- package/dist/error/types.d.ts.map +0 -1
- package/dist/error/utils.d.ts +0 -21
- package/dist/error/utils.d.ts.map +0 -1
- package/dist/events.d.ts +0 -51
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -82
- package/dist/events.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/types.d.ts +0 -16
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-controllable-state.d.ts +0 -3
- package/dist/hooks/use-controllable-state.d.ts.map +0 -1
- package/dist/hooks/use-fullscreen-state.d.ts +0 -4
- package/dist/hooks/use-fullscreen-state.d.ts.map +0 -1
- package/dist/hooks/use-global-event.d.ts +0 -5
- package/dist/hooks/use-global-event.d.ts.map +0 -1
- package/dist/hooks/use-hotkey.d.ts +0 -4
- package/dist/hooks/use-hotkey.d.ts.map +0 -1
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +0 -3
- package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
- package/dist/hooks/use-required-context.d.ts +0 -3
- package/dist/hooks/use-required-context.d.ts.map +0 -1
- package/dist/hooks/use-store.d.ts +0 -3
- package/dist/hooks/use-store.d.ts.map +0 -1
- package/dist/kernel/adapters.d.ts +0 -5
- package/dist/kernel/adapters.d.ts.map +0 -1
- package/dist/kernel/compose.d.ts +0 -15
- package/dist/kernel/compose.d.ts.map +0 -1
- package/dist/kernel/constants.d.ts +0 -12
- package/dist/kernel/constants.d.ts.map +0 -1
- package/dist/kernel/context-registry.d.ts +0 -3
- package/dist/kernel/context-registry.d.ts.map +0 -1
- package/dist/kernel/handlers.d.ts +0 -3
- package/dist/kernel/handlers.d.ts.map +0 -1
- package/dist/kernel/hooks.d.ts +0 -7
- package/dist/kernel/hooks.d.ts.map +0 -1
- package/dist/kernel/index.d.ts.map +0 -1
- package/dist/kernel/installed.d.ts +0 -21
- package/dist/kernel/installed.d.ts.map +0 -1
- package/dist/kernel/module.d.ts +0 -32
- package/dist/kernel/module.d.ts.map +0 -1
- package/dist/kernel/operations.d.ts +0 -21
- package/dist/kernel/operations.d.ts.map +0 -1
- package/dist/kernel/page-controller.d.ts +0 -8
- package/dist/kernel/page-controller.d.ts.map +0 -1
- package/dist/kernel/provider.d.ts +0 -18
- package/dist/kernel/provider.d.ts.map +0 -1
- package/dist/kernel/runtime.d.ts.map +0 -1
- package/dist/kernel/schema.d.ts +0 -11
- package/dist/kernel/schema.d.ts.map +0 -1
- package/dist/kernel/store.d.ts +0 -4
- package/dist/kernel/store.d.ts.map +0 -1
- package/dist/kernel/types.d.ts +0 -233
- package/dist/kernel/types.d.ts.map +0 -1
- package/dist/kernel/utils.d.ts +0 -18
- package/dist/kernel/utils.d.ts.map +0 -1
- package/dist/modules/ambient/index.js +0 -10
- package/dist/modules/ambient/server/index.js +0 -221
- package/dist/modules/ambient/server/index.js.map +0 -1
- package/dist/modules/ambient/worker/index.js +0 -114
- package/dist/modules/ambient/worker/index.js.map +0 -1
- package/dist/modules/background/index.js +0 -9
- package/dist/modules/background/overlay.d.ts +0 -135
- package/dist/modules/background/overlay.d.ts.map +0 -1
- package/dist/modules/background/playback.d.ts +0 -10
- package/dist/modules/background/playback.d.ts.map +0 -1
- package/dist/modules/background/state.d.ts +0 -9
- package/dist/modules/background/state.d.ts.map +0 -1
- package/dist/modules/background/visual.d.ts +0 -48
- package/dist/modules/background/visual.d.ts.map +0 -1
- package/dist/modules/background/youtube/iframe.d.ts +0 -52
- package/dist/modules/background/youtube/iframe.d.ts.map +0 -1
- package/dist/modules/background/youtube/parse.d.ts +0 -17
- package/dist/modules/background/youtube/parse.d.ts.map +0 -1
- package/dist/modules/background/youtube/player.d.ts +0 -28
- package/dist/modules/background/youtube/player.d.ts.map +0 -1
- package/dist/modules/context-menu/index.js +0 -14
- package/dist/modules/controls/index.js +0 -7
- package/dist/modules/dock/cards.d.ts +0 -1722
- package/dist/modules/dock/cards.d.ts.map +0 -1
- package/dist/modules/dock/dom.d.ts +0 -24
- package/dist/modules/dock/dom.d.ts.map +0 -1
- package/dist/modules/dock/helpers.d.ts +0 -25
- package/dist/modules/dock/helpers.d.ts.map +0 -1
- package/dist/modules/dock/hooks.d.ts +0 -42
- package/dist/modules/dock/hooks.d.ts.map +0 -1
- package/dist/modules/dock/index.js +0 -13
- package/dist/modules/dock/layout.d.ts +0 -26
- package/dist/modules/dock/layout.d.ts.map +0 -1
- package/dist/modules/dock/overlay.d.ts +0 -79
- package/dist/modules/dock/overlay.d.ts.map +0 -1
- package/dist/modules/dock/paths.d.ts +0 -10
- package/dist/modules/dock/paths.d.ts.map +0 -1
- package/dist/modules/dock/state.d.ts +0 -22
- package/dist/modules/dock/state.d.ts.map +0 -1
- package/dist/modules/dock/styles.d.ts +0 -900
- package/dist/modules/dock/styles.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks.d.ts +0 -110
- package/dist/modules/dock/surface/hooks.d.ts.map +0 -1
- package/dist/modules/dock/types.d.ts +0 -1362
- package/dist/modules/dock/types.d.ts.map +0 -1
- package/dist/modules/loading/index.js +0 -8
- package/dist/modules/media/index.js +0 -6
- package/dist/modules/modal/dom.d.ts +0 -4
- package/dist/modules/modal/dom.d.ts.map +0 -1
- package/dist/modules/modal/header.d.ts +0 -7
- package/dist/modules/modal/header.d.ts.map +0 -1
- package/dist/modules/modal/identity.d.ts +0 -7
- package/dist/modules/modal/identity.d.ts.map +0 -1
- package/dist/modules/modal/index.js +0 -11
- package/dist/modules/modal/layout.d.ts +0 -13
- package/dist/modules/modal/layout.d.ts.map +0 -1
- package/dist/modules/modal/overlay.d.ts +0 -4
- package/dist/modules/modal/overlay.d.ts.map +0 -1
- package/dist/modules/modal/state.d.ts +0 -4
- package/dist/modules/modal/state.d.ts.map +0 -1
- package/dist/modules/navigation/constants.d.ts +0 -37
- package/dist/modules/navigation/constants.d.ts.map +0 -1
- package/dist/modules/navigation/index.js +0 -81
- package/dist/modules/navigation/index.js.map +0 -1
- package/dist/modules/navigation/navigator.d.ts +0 -8
- package/dist/modules/navigation/navigator.d.ts.map +0 -1
- package/dist/modules/navigation/settings.d.ts +0 -10
- package/dist/modules/navigation/settings.d.ts.map +0 -1
- package/dist/modules/navigation/state.d.ts +0 -20
- package/dist/modules/navigation/state.d.ts.map +0 -1
- package/dist/modules/navigation/types.d.ts +0 -168
- package/dist/modules/navigation/types.d.ts.map +0 -1
- package/dist/modules/navigation/utils.d.ts +0 -11
- package/dist/modules/navigation/utils.d.ts.map +0 -1
- package/dist/modules/notification/index.js +0 -7
- package/dist/overlay-TZ6L52A5.js +0 -9
- package/dist/overlay-TZ6L52A5.js.map +0 -1
- package/dist/provider.d.ts +0 -23
- package/dist/provider.d.ts.map +0 -1
- package/dist/provider.js +0 -9
- package/dist/provider.js.map +0 -1
- package/dist/result.d.ts +0 -50
- package/dist/result.d.ts.map +0 -1
- package/dist/result.js +0 -102
- package/dist/result.js.map +0 -1
- package/dist/theme.d.ts +0 -63
- package/dist/theme.d.ts.map +0 -1
- package/dist/theme.js +0 -6
- package/dist/theme.js.map +0 -1
- package/dist/tokens/index.d.ts +0 -4
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/index.js +0 -296
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/motion-config.d.ts +0 -44
- package/dist/tokens/motion-config.d.ts.map +0 -1
- package/dist/tokens/motion.d.ts +0 -164
- package/dist/tokens/motion.d.ts.map +0 -1
- package/dist/tokens/tokens.d.ts +0 -34
- package/dist/tokens/tokens.d.ts.map +0 -1
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/dom.d.ts +0 -5
- package/dist/utils/dom.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/number.d.ts +0 -3
- package/dist/utils/number.d.ts.map +0 -1
- package/dist/utils/object.d.ts +0 -5
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/report.d.ts +0 -5
- package/dist/utils/report.d.ts.map +0 -1
- package/dist/utils/scheduler.d.ts +0 -34
- package/dist/utils/scheduler.d.ts.map +0 -1
- package/dist/utils/store.d.ts +0 -11
- package/dist/utils/store.d.ts.map +0 -1
- package/dist/utils/string.d.ts +0 -5
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/timing.d.ts +0 -7
- package/dist/utils/timing.d.ts.map +0 -1
- package/dist/utils/user-message.d.ts +0 -20
- package/dist/utils/user-message.d.ts.map +0 -1
- package/templates/motion/background.ts +0 -17
- package/templates/motion/context-menu.ts +0 -63
- package/templates/motion/dock.ts +0 -395
- package/templates/motion/modal.ts +0 -79
- package/templates/motion/notification.ts +0 -27
- package/templates/motion/tokens.ts +0 -47
- /package/dist/{atoms → ambient}/index.js.map +0 -0
- /package/dist/{modules/ambient → background}/index.js.map +0 -0
- /package/dist/{modules/background → context-menu}/index.js.map +0 -0
- /package/dist/{modules/context-menu → controls}/index.js.map +0 -0
- /package/dist/{kernel → core/kernel}/runtime.d.ts +0 -0
- /package/dist/{modules/controls → dock}/index.js.map +0 -0
- /package/dist/{modules/dock → loading}/index.js.map +0 -0
- /package/dist/{modules/loading → media}/index.js.map +0 -0
- /package/dist/{modules/media → notification}/index.js.map +0 -0
- /package/dist/{modules/modal → provider}/index.js.map +0 -0
- /package/dist/{modules/notification → theme}/index.js.map +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { getOrCreateGlobalContext } from './chunk-J3VTDBC6.js';
|
|
2
|
+
import { defineMotion, NEUTRAL_TEMPO, retimeModuleMotion } from './chunk-BMFHS3GV.js';
|
|
3
|
+
import { c } from 'react/compiler-runtime';
|
|
4
|
+
import { MotionConfig, useReducedMotion } from 'motion/react';
|
|
5
|
+
import { use } from 'react';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function defineThemeSpec(id) {
|
|
9
|
+
return Object.freeze({
|
|
10
|
+
id
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function defineTheme(spec, config) {
|
|
14
|
+
return {
|
|
15
|
+
id: spec.id,
|
|
16
|
+
config
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
var EMPTY = /* @__PURE__ */ new Map();
|
|
20
|
+
var ThemeContext = getOrCreateGlobalContext("ThemeContext", EMPTY);
|
|
21
|
+
var DEFAULT_MOTION = defineMotion({});
|
|
22
|
+
var NO_MOTION_PROVIDER = Object.freeze({
|
|
23
|
+
reduced: false,
|
|
24
|
+
tempo: NEUTRAL_TEMPO,
|
|
25
|
+
tokens: DEFAULT_MOTION
|
|
26
|
+
});
|
|
27
|
+
var MotionContext = getOrCreateGlobalContext("MotionContext", NO_MOTION_PROVIDER);
|
|
28
|
+
function MotionProvider(t0) {
|
|
29
|
+
const $ = c(6);
|
|
30
|
+
const {
|
|
31
|
+
children,
|
|
32
|
+
tokens
|
|
33
|
+
} = t0;
|
|
34
|
+
const prefersReduced = useReducedMotion() === true;
|
|
35
|
+
const reduced = tokens.reducedMotion === "always" || tokens.reducedMotion === "user" && prefersReduced;
|
|
36
|
+
let t1;
|
|
37
|
+
if ($[0] !== reduced || $[1] !== tokens) {
|
|
38
|
+
t1 = Object.freeze({
|
|
39
|
+
reduced,
|
|
40
|
+
still: tokens.still,
|
|
41
|
+
tempo: tokens.tempo,
|
|
42
|
+
tokens
|
|
43
|
+
});
|
|
44
|
+
$[0] = reduced;
|
|
45
|
+
$[1] = tokens;
|
|
46
|
+
$[2] = t1;
|
|
47
|
+
} else {
|
|
48
|
+
t1 = $[2];
|
|
49
|
+
}
|
|
50
|
+
const state = t1;
|
|
51
|
+
let t2;
|
|
52
|
+
if ($[3] !== children || $[4] !== state) {
|
|
53
|
+
t2 = /* @__PURE__ */ jsx(MotionContext, { value: state, children });
|
|
54
|
+
$[3] = children;
|
|
55
|
+
$[4] = state;
|
|
56
|
+
$[5] = t2;
|
|
57
|
+
} else {
|
|
58
|
+
t2 = $[5];
|
|
59
|
+
}
|
|
60
|
+
return t2;
|
|
61
|
+
}
|
|
62
|
+
function ThemeProvider(t0) {
|
|
63
|
+
const $ = c(9);
|
|
64
|
+
const {
|
|
65
|
+
children,
|
|
66
|
+
motion,
|
|
67
|
+
themes
|
|
68
|
+
} = t0;
|
|
69
|
+
let t1;
|
|
70
|
+
if ($[0] !== themes) {
|
|
71
|
+
t1 = new Map(themes.map(_temp));
|
|
72
|
+
$[0] = themes;
|
|
73
|
+
$[1] = t1;
|
|
74
|
+
} else {
|
|
75
|
+
t1 = $[1];
|
|
76
|
+
}
|
|
77
|
+
const configs = t1;
|
|
78
|
+
const inheritsMotion = use(MotionContext) !== NO_MOTION_PROVIDER;
|
|
79
|
+
const providesMotion = Boolean(motion) || !inheritsMotion;
|
|
80
|
+
let t2;
|
|
81
|
+
if ($[2] !== children || $[3] !== motion || $[4] !== providesMotion) {
|
|
82
|
+
t2 = providesMotion ? /* @__PURE__ */ jsx(MotionProvider, { tokens: motion ?? DEFAULT_MOTION, children }) : children;
|
|
83
|
+
$[2] = children;
|
|
84
|
+
$[3] = motion;
|
|
85
|
+
$[4] = providesMotion;
|
|
86
|
+
$[5] = t2;
|
|
87
|
+
} else {
|
|
88
|
+
t2 = $[5];
|
|
89
|
+
}
|
|
90
|
+
const content = t2;
|
|
91
|
+
let t3;
|
|
92
|
+
if ($[6] !== configs || $[7] !== content) {
|
|
93
|
+
t3 = /* @__PURE__ */ jsx(ThemeContext, { value: configs, children: content });
|
|
94
|
+
$[6] = configs;
|
|
95
|
+
$[7] = content;
|
|
96
|
+
$[8] = t3;
|
|
97
|
+
} else {
|
|
98
|
+
t3 = $[8];
|
|
99
|
+
}
|
|
100
|
+
return t3;
|
|
101
|
+
}
|
|
102
|
+
function _temp(entry) {
|
|
103
|
+
return [entry.id, entry.config];
|
|
104
|
+
}
|
|
105
|
+
function missingTheme(id) {
|
|
106
|
+
return new Error(`Theme "${id}" is missing. Ensure its theme configuration is provided to <ThemeProvider themes={[...]}> (e.g. in src/config/ or your theme setup).`);
|
|
107
|
+
}
|
|
108
|
+
function useTheme(spec) {
|
|
109
|
+
const config = use(ThemeContext).get(spec.id);
|
|
110
|
+
if (!config) throw missingTheme(spec.id);
|
|
111
|
+
return {
|
|
112
|
+
slots: config.slots,
|
|
113
|
+
styles: config.styles ?? {}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
var motionTokens = /* @__PURE__ */ new WeakMap();
|
|
117
|
+
function useMotionTokens() {
|
|
118
|
+
const state = use(MotionContext);
|
|
119
|
+
let tokens = motionTokens.get(state);
|
|
120
|
+
if (!tokens) {
|
|
121
|
+
tokens = {
|
|
122
|
+
...state.tokens,
|
|
123
|
+
reduced: state.reduced
|
|
124
|
+
};
|
|
125
|
+
motionTokens.set(state, tokens);
|
|
126
|
+
}
|
|
127
|
+
return tokens;
|
|
128
|
+
}
|
|
129
|
+
var resolvedMotion = /* @__PURE__ */ new WeakMap();
|
|
130
|
+
function useModuleMotion(spec) {
|
|
131
|
+
const config = use(ThemeContext).get(spec.id);
|
|
132
|
+
const state = use(MotionContext);
|
|
133
|
+
if (!config) throw missingTheme(spec.id);
|
|
134
|
+
if (!config.motion || typeof config.motion !== "object") {
|
|
135
|
+
throw new Error(`Motion for theme "${spec.id}" is missing. Add \`motion\` to its defineTheme(...) next to \`slots\` (see docs/theming.md).`);
|
|
136
|
+
}
|
|
137
|
+
return resolveModuleMotion(state, config.motion);
|
|
138
|
+
}
|
|
139
|
+
function useOptionalModuleMotion(spec) {
|
|
140
|
+
const motion = use(ThemeContext).get(spec.id)?.motion;
|
|
141
|
+
const state = use(MotionContext);
|
|
142
|
+
if (!motion || typeof motion !== "object") return null;
|
|
143
|
+
return resolveModuleMotion(state, motion);
|
|
144
|
+
}
|
|
145
|
+
function resolveModuleMotion(state, motion) {
|
|
146
|
+
let byConfig = resolvedMotion.get(state);
|
|
147
|
+
if (!byConfig) {
|
|
148
|
+
byConfig = /* @__PURE__ */ new WeakMap();
|
|
149
|
+
resolvedMotion.set(state, byConfig);
|
|
150
|
+
}
|
|
151
|
+
if (!byConfig.has(motion)) {
|
|
152
|
+
byConfig.set(motion, retimeModuleMotion(motion, state));
|
|
153
|
+
}
|
|
154
|
+
return byConfig.get(motion);
|
|
155
|
+
}
|
|
156
|
+
function ModuleMotionConfig(t0) {
|
|
157
|
+
const $ = c(3);
|
|
158
|
+
const {
|
|
159
|
+
children
|
|
160
|
+
} = t0;
|
|
161
|
+
const {
|
|
162
|
+
tokens
|
|
163
|
+
} = use(MotionContext);
|
|
164
|
+
let t1;
|
|
165
|
+
if ($[0] !== children || $[1] !== tokens.reducedMotion) {
|
|
166
|
+
t1 = /* @__PURE__ */ jsx(MotionConfig, { reducedMotion: tokens.reducedMotion, children });
|
|
167
|
+
$[0] = children;
|
|
168
|
+
$[1] = tokens.reducedMotion;
|
|
169
|
+
$[2] = t1;
|
|
170
|
+
} else {
|
|
171
|
+
t1 = $[2];
|
|
172
|
+
}
|
|
173
|
+
return t1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export { ModuleMotionConfig, ThemeProvider, defineTheme, defineThemeSpec, useModuleMotion, useMotionTokens, useOptionalModuleMotion, useTheme };
|
|
177
|
+
//# sourceMappingURL=chunk-ESD5EQ5H.js.map
|
|
178
|
+
//# sourceMappingURL=chunk-ESD5EQ5H.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react/theme/index.tsx"],"names":["defineThemeSpec","id","Object","freeze","defineTheme","spec","config","EMPTY","Map","ThemeContext","getOrCreateGlobalContext","DEFAULT_MOTION","defineMotion","NO_MOTION_PROVIDER","reduced","tempo","NEUTRAL_TEMPO","tokens","MotionContext","MotionProvider","t0","$","_c","children","prefersReduced","useReducedMotion","reducedMotion","t1","still","state","t2","ThemeProvider","motion","themes","map","_temp","configs","inheritsMotion","use","providesMotion","Boolean","content","t3","entry","missingTheme","Error","useTheme","get","slots","styles","motionTokens","WeakMap","useMotionTokens","set","resolvedMotion","useModuleMotion","resolveModuleMotion","useOptionalModuleMotion","byConfig","has","retimeModuleMotion","ModuleMotionConfig"],"mappings":"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","file":"chunk-ESD5EQ5H.js","sourcesContent":["\"use client\";\n\nimport { MotionConfig, useReducedMotion } from \"motion/react\";\nimport { type CSSProperties, type ReactNode, use, useMemo } from \"react\";\n\nimport {\n defineMotion,\n type MotionClock,\n type MotionTokens,\n NEUTRAL_TEMPO,\n retimeModuleMotion,\n} from \"@/foundation/utils/tempo\";\nimport { getOrCreateGlobalContext } from \"@/react/context\";\n\n/**\n * A theme's identity and, through its type parameters, its slot names and motion shape.\n */\nexport interface ThemeSpec<S extends string = string, M = never> {\n readonly id: string;\n readonly _slots?: S;\n readonly _motion?: M;\n}\n\ninterface ThemeVisuals<S extends string> {\n slots: Readonly<Record<S, string>>;\n styles?: Readonly<Partial<Record<S, CSSProperties>>>;\n}\n\n/**\n * The slot classes, styles and (when the spec has motion) motion of a theme.\n */\nexport type ThemeConfig<S extends string, M = never> = ThemeVisuals<S> &\n ([M] extends [never] ? { motion?: undefined } : { motion: M });\n\n/**\n * The slot classes and styles a component receives from `useTheme`.\n */\nexport interface ResolvedTheme<S extends string> {\n readonly slots: Readonly<Record<S, string>>;\n readonly styles: Readonly<Partial<Record<S, CSSProperties>>>;\n}\n\n/**\n * A theme id paired with its configuration, as passed to `ThemeProvider`.\n */\nexport interface ThemeEntry {\n readonly id: string;\n readonly config: ThemeVisuals<string> & { motion?: unknown };\n}\n\n/**\n * Declares a theme's identity with its slot names and optional motion type.\n */\nexport function defineThemeSpec<S extends string, M = never>(\n id: string,\n): ThemeSpec<S, M> {\n return Object.freeze({ id });\n}\n\n/**\n * Binds a configuration to a theme spec.\n */\nexport function defineTheme<S extends string, M = never>(\n spec: ThemeSpec<S, M>,\n config: ThemeConfig<NoInfer<S>, NoInfer<M>>,\n): ThemeEntry {\n return { id: spec.id, config };\n}\n\nconst EMPTY: ReadonlyMap<string, ThemeEntry[\"config\"]> = new Map();\nconst ThemeContext = getOrCreateGlobalContext<\n ReadonlyMap<string, ThemeEntry[\"config\"]>\n>(\"ThemeContext\", EMPTY);\n\ninterface MotionState extends MotionClock {\n readonly tokens: MotionTokens;\n}\n\nconst DEFAULT_MOTION = defineMotion({});\nconst NO_MOTION_PROVIDER: MotionState = Object.freeze({\n reduced: false,\n tempo: NEUTRAL_TEMPO,\n tokens: DEFAULT_MOTION,\n});\nconst MotionContext = getOrCreateGlobalContext<MotionState>(\n \"MotionContext\",\n NO_MOTION_PROVIDER,\n);\n\ninterface MotionProviderProps {\n children?: ReactNode;\n tokens: MotionTokens;\n}\n\nfunction MotionProvider({ children, tokens }: MotionProviderProps) {\n const prefersReduced = useReducedMotion() === true;\n const reduced =\n tokens.reducedMotion === \"always\" ||\n (tokens.reducedMotion === \"user\" && prefersReduced);\n // stable identity: consumers subscribe by reference\n const state = useMemo<MotionState>(\n () =>\n Object.freeze({\n reduced,\n still: tokens.still,\n tempo: tokens.tempo,\n tokens,\n }),\n [reduced, tokens],\n );\n return <MotionContext value={state}>{children}</MotionContext>;\n}\n\ninterface ThemeProviderProps {\n children?: ReactNode;\n motion?: MotionTokens;\n themes: readonly ThemeEntry[];\n}\n\n/**\n * Provides themes, and motion tokens when given, to the tree below it.\n */\nexport function ThemeProvider({\n children,\n motion,\n themes,\n}: ThemeProviderProps) {\n // stable identity: consumers subscribe by reference\n const configs = useMemo(\n () => new Map(themes.map((entry) => [entry.id, entry.config])),\n [themes],\n );\n const inheritsMotion = use(MotionContext) !== NO_MOTION_PROVIDER;\n const providesMotion = Boolean(motion) || !inheritsMotion;\n const content = providesMotion ? (\n <MotionProvider tokens={motion ?? DEFAULT_MOTION}>\n {children}\n </MotionProvider>\n ) : (\n children\n );\n return <ThemeContext value={configs}>{content}</ThemeContext>;\n}\n\nfunction missingTheme(id: string): Error {\n return new Error(\n `Theme \"${id}\" is missing. Ensure its theme configuration is provided to <ThemeProvider themes={[...]}> (e.g. in src/config/ or your theme setup).`,\n );\n}\n\n/**\n * Returns the slot classes and styles configured for a theme spec.\n */\nexport function useTheme<S extends string>(\n spec: ThemeSpec<S, unknown>,\n): ResolvedTheme<S> {\n const config = use(ThemeContext).get(spec.id);\n if (!config) throw missingTheme(spec.id);\n return {\n slots: config.slots,\n styles: config.styles ?? {},\n };\n}\n\n// Cached per motion state, so `useMotionTokens` returns a stable object without memo.\nconst motionTokens = new WeakMap<\n MotionState,\n MotionTokens & { readonly reduced: boolean }\n>();\n\n/**\n * Returns the current motion tokens plus whether motion is reduced.\n */\nexport function useMotionTokens<T extends MotionTokens = MotionTokens>(): T & {\n readonly reduced: boolean;\n} {\n const state = use(MotionContext);\n let tokens = motionTokens.get(state);\n if (!tokens) {\n tokens = { ...state.tokens, reduced: state.reduced };\n motionTokens.set(state, tokens);\n }\n return tokens as T & { readonly reduced: boolean };\n}\n\nconst resolvedMotion = new WeakMap<MotionState, WeakMap<object, unknown>>();\n\n/**\n * Returns a theme's motion, retimed to the current tempo; throws if it has none.\n */\nexport function useModuleMotion<M>(spec: ThemeSpec<string, M>): M {\n const config = use(ThemeContext).get(spec.id);\n const state = use(MotionContext);\n if (!config) throw missingTheme(spec.id);\n if (!config.motion || typeof config.motion !== \"object\") {\n throw new Error(\n `Motion for theme \"${spec.id}\" is missing. Add \\`motion\\` to its defineTheme(...) next to \\`slots\\` (see docs/theming.md).`,\n );\n }\n return resolveModuleMotion(state, config.motion) as M;\n}\n\n/**\n * Like `useModuleMotion`, but returns null when the theme has no motion.\n */\nexport function useOptionalModuleMotion<M>(\n spec: ThemeSpec<string, M>,\n): M | null {\n const motion = use(ThemeContext).get(spec.id)?.motion;\n const state = use(MotionContext);\n if (!motion || typeof motion !== \"object\") return null;\n return resolveModuleMotion(state, motion) as M;\n}\n\nfunction resolveModuleMotion(state: MotionState, motion: object): unknown {\n let byConfig = resolvedMotion.get(state);\n if (!byConfig) {\n byConfig = new WeakMap();\n resolvedMotion.set(state, byConfig);\n }\n if (!byConfig.has(motion)) {\n byConfig.set(motion, retimeModuleMotion(motion, state));\n }\n return byConfig.get(motion);\n}\n\ninterface ModuleMotionConfigProps {\n children?: ReactNode;\n}\n\n/**\n * Applies the motion tokens' reduced-motion policy to motion components below it.\n */\nexport function ModuleMotionConfig({ children }: ModuleMotionConfigProps) {\n const { tokens } = use(MotionContext);\n return (\n <MotionConfig reducedMotion={tokens.reducedMotion}>{children}</MotionConfig>\n );\n}\n"]}
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
import { modalTheme, useModalModel, useModalLayerModel, getModalLayout, getModalPosition, MODAL_POSITIONS, getModalLabel } from './chunk-RTCJ35UC.js';
|
|
2
|
+
import { ModuleBoundary } from './chunk-NHOJWICA.js';
|
|
3
|
+
import { Button } from './chunk-LTO77WSO.js';
|
|
4
|
+
import { cn } from './chunk-7RSRDKYE.js';
|
|
5
|
+
import { useModuleMotion } from './chunk-ESD5EQ5H.js';
|
|
6
|
+
import { c } from 'react/compiler-runtime';
|
|
7
|
+
import { motion, AnimatePresence } from 'motion/react';
|
|
8
|
+
import { createPortal } from 'react-dom';
|
|
9
|
+
import { createElement } from 'react';
|
|
10
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
// src/modules/modal/motion.ts
|
|
13
|
+
var MODAL_COMPOSITOR_STYLE = Object.freeze({
|
|
14
|
+
WebkitBackfaceVisibility: "hidden",
|
|
15
|
+
WebkitFontSmoothing: "antialiased",
|
|
16
|
+
backfaceVisibility: "hidden",
|
|
17
|
+
transform: "translateZ(0)",
|
|
18
|
+
willChange: "transform, opacity"
|
|
19
|
+
});
|
|
20
|
+
function useModalMotion() {
|
|
21
|
+
return useModuleMotion(modalTheme);
|
|
22
|
+
}
|
|
23
|
+
function getModalPositionMotion(positions, position) {
|
|
24
|
+
return positions[position] ?? positions.center;
|
|
25
|
+
}
|
|
26
|
+
function ModalLayerSwitcher(t0) {
|
|
27
|
+
const $ = c(19);
|
|
28
|
+
const {
|
|
29
|
+
currentEntry,
|
|
30
|
+
onSwitchToPrevious,
|
|
31
|
+
previousEntry,
|
|
32
|
+
theme
|
|
33
|
+
} = t0;
|
|
34
|
+
const t1 = theme.slots.switcher;
|
|
35
|
+
const t2 = theme.slots.switcherButton;
|
|
36
|
+
let t3;
|
|
37
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
38
|
+
t3 = /* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M7.5 2.5L4 6l3.5 3.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
39
|
+
$[0] = t3;
|
|
40
|
+
} else {
|
|
41
|
+
t3 = $[0];
|
|
42
|
+
}
|
|
43
|
+
let t4;
|
|
44
|
+
if ($[1] !== previousEntry.modalType) {
|
|
45
|
+
t4 = getModalLabel(previousEntry.modalType);
|
|
46
|
+
$[1] = previousEntry.modalType;
|
|
47
|
+
$[2] = t4;
|
|
48
|
+
} else {
|
|
49
|
+
t4 = $[2];
|
|
50
|
+
}
|
|
51
|
+
let t5;
|
|
52
|
+
if ($[3] !== onSwitchToPrevious || $[4] !== t4 || $[5] !== theme.slots.switcherButton) {
|
|
53
|
+
t5 = /* @__PURE__ */ jsxs(Button, { type: "button", onClick: onSwitchToPrevious, className: t2, children: [
|
|
54
|
+
t3,
|
|
55
|
+
t4
|
|
56
|
+
] });
|
|
57
|
+
$[3] = onSwitchToPrevious;
|
|
58
|
+
$[4] = t4;
|
|
59
|
+
$[5] = theme.slots.switcherButton;
|
|
60
|
+
$[6] = t5;
|
|
61
|
+
} else {
|
|
62
|
+
t5 = $[6];
|
|
63
|
+
}
|
|
64
|
+
let t6;
|
|
65
|
+
if ($[7] !== theme.slots.switcherDivider) {
|
|
66
|
+
t6 = /* @__PURE__ */ jsx("span", { className: theme.slots.switcherDivider, children: "/" });
|
|
67
|
+
$[7] = theme.slots.switcherDivider;
|
|
68
|
+
$[8] = t6;
|
|
69
|
+
} else {
|
|
70
|
+
t6 = $[8];
|
|
71
|
+
}
|
|
72
|
+
const t7 = theme.slots.switcherCurrent;
|
|
73
|
+
let t8;
|
|
74
|
+
if ($[9] !== currentEntry.modalType) {
|
|
75
|
+
t8 = getModalLabel(currentEntry.modalType);
|
|
76
|
+
$[9] = currentEntry.modalType;
|
|
77
|
+
$[10] = t8;
|
|
78
|
+
} else {
|
|
79
|
+
t8 = $[10];
|
|
80
|
+
}
|
|
81
|
+
let t9;
|
|
82
|
+
if ($[11] !== t8 || $[12] !== theme.slots.switcherCurrent) {
|
|
83
|
+
t9 = /* @__PURE__ */ jsx("span", { className: t7, children: t8 });
|
|
84
|
+
$[11] = t8;
|
|
85
|
+
$[12] = theme.slots.switcherCurrent;
|
|
86
|
+
$[13] = t9;
|
|
87
|
+
} else {
|
|
88
|
+
t9 = $[13];
|
|
89
|
+
}
|
|
90
|
+
let t10;
|
|
91
|
+
if ($[14] !== t5 || $[15] !== t6 || $[16] !== t9 || $[17] !== theme.slots.switcher) {
|
|
92
|
+
t10 = /* @__PURE__ */ jsxs("div", { className: t1, children: [
|
|
93
|
+
t5,
|
|
94
|
+
t6,
|
|
95
|
+
t9
|
|
96
|
+
] });
|
|
97
|
+
$[14] = t5;
|
|
98
|
+
$[15] = t6;
|
|
99
|
+
$[16] = t9;
|
|
100
|
+
$[17] = theme.slots.switcher;
|
|
101
|
+
$[18] = t10;
|
|
102
|
+
} else {
|
|
103
|
+
t10 = $[18];
|
|
104
|
+
}
|
|
105
|
+
return t10;
|
|
106
|
+
}
|
|
107
|
+
function ModalLayerContent(t0) {
|
|
108
|
+
const $ = c(31);
|
|
109
|
+
const {
|
|
110
|
+
ActiveModalComponent,
|
|
111
|
+
activePosition,
|
|
112
|
+
closeModal,
|
|
113
|
+
entry,
|
|
114
|
+
isTopModal,
|
|
115
|
+
modalStack,
|
|
116
|
+
previousEntry,
|
|
117
|
+
stackIndex,
|
|
118
|
+
theme
|
|
119
|
+
} = t0;
|
|
120
|
+
const t1 = entry.modalType;
|
|
121
|
+
let t2;
|
|
122
|
+
if ($[0] !== closeModal || $[1] !== entry.id) {
|
|
123
|
+
t2 = (result) => closeModal(result, entry.id);
|
|
124
|
+
$[0] = closeModal;
|
|
125
|
+
$[1] = entry.id;
|
|
126
|
+
$[2] = t2;
|
|
127
|
+
} else {
|
|
128
|
+
t2 = $[2];
|
|
129
|
+
}
|
|
130
|
+
const t3 = `modal-title-${entry.id}`;
|
|
131
|
+
let t4;
|
|
132
|
+
if ($[3] !== ActiveModalComponent || $[4] !== activePosition || $[5] !== entry.headerActions || $[6] !== entry.props || $[7] !== entry.showClose || $[8] !== entry.title || $[9] !== t2 || $[10] !== t3) {
|
|
133
|
+
t4 = createElement(ActiveModalComponent, {
|
|
134
|
+
close: t2,
|
|
135
|
+
data: entry.props,
|
|
136
|
+
header: {
|
|
137
|
+
actions: entry.headerActions,
|
|
138
|
+
position: activePosition,
|
|
139
|
+
showClose: entry.showClose,
|
|
140
|
+
title: entry.title,
|
|
141
|
+
titleId: t3
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
$[3] = ActiveModalComponent;
|
|
145
|
+
$[4] = activePosition;
|
|
146
|
+
$[5] = entry.headerActions;
|
|
147
|
+
$[6] = entry.props;
|
|
148
|
+
$[7] = entry.showClose;
|
|
149
|
+
$[8] = entry.title;
|
|
150
|
+
$[9] = t2;
|
|
151
|
+
$[10] = t3;
|
|
152
|
+
$[11] = t4;
|
|
153
|
+
} else {
|
|
154
|
+
t4 = $[11];
|
|
155
|
+
}
|
|
156
|
+
let t5;
|
|
157
|
+
if ($[12] !== entry.modalType || $[13] !== t4) {
|
|
158
|
+
t5 = /* @__PURE__ */ jsx(ModuleBoundary, { name: t1, children: t4 });
|
|
159
|
+
$[12] = entry.modalType;
|
|
160
|
+
$[13] = t4;
|
|
161
|
+
$[14] = t5;
|
|
162
|
+
} else {
|
|
163
|
+
t5 = $[14];
|
|
164
|
+
}
|
|
165
|
+
let t6;
|
|
166
|
+
if ($[15] !== closeModal || $[16] !== isTopModal || $[17] !== modalStack || $[18] !== theme) {
|
|
167
|
+
t6 = !isTopModal && /* @__PURE__ */ jsx("div", { onClick: (e) => {
|
|
168
|
+
e.stopPropagation();
|
|
169
|
+
const topModal = modalStack[modalStack.length - 1];
|
|
170
|
+
if (topModal) {
|
|
171
|
+
closeModal(null, topModal.id);
|
|
172
|
+
}
|
|
173
|
+
}, className: theme.slots.dim, style: theme.styles.dim, "aria-label": "Close active top modal" });
|
|
174
|
+
$[15] = closeModal;
|
|
175
|
+
$[16] = isTopModal;
|
|
176
|
+
$[17] = modalStack;
|
|
177
|
+
$[18] = theme;
|
|
178
|
+
$[19] = t6;
|
|
179
|
+
} else {
|
|
180
|
+
t6 = $[19];
|
|
181
|
+
}
|
|
182
|
+
let t7;
|
|
183
|
+
if ($[20] !== closeModal || $[21] !== entry || $[22] !== isTopModal || $[23] !== previousEntry || $[24] !== stackIndex || $[25] !== theme) {
|
|
184
|
+
t7 = isTopModal && stackIndex > 0 && previousEntry && /* @__PURE__ */ jsx(ModalLayerSwitcher, { currentEntry: entry, previousEntry, theme, onSwitchToPrevious: () => closeModal(null, entry.id) });
|
|
185
|
+
$[20] = closeModal;
|
|
186
|
+
$[21] = entry;
|
|
187
|
+
$[22] = isTopModal;
|
|
188
|
+
$[23] = previousEntry;
|
|
189
|
+
$[24] = stackIndex;
|
|
190
|
+
$[25] = theme;
|
|
191
|
+
$[26] = t7;
|
|
192
|
+
} else {
|
|
193
|
+
t7 = $[26];
|
|
194
|
+
}
|
|
195
|
+
let t8;
|
|
196
|
+
if ($[27] !== t5 || $[28] !== t6 || $[29] !== t7) {
|
|
197
|
+
t8 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
198
|
+
t5,
|
|
199
|
+
t6,
|
|
200
|
+
t7
|
|
201
|
+
] });
|
|
202
|
+
$[27] = t5;
|
|
203
|
+
$[28] = t6;
|
|
204
|
+
$[29] = t7;
|
|
205
|
+
$[30] = t8;
|
|
206
|
+
} else {
|
|
207
|
+
t8 = $[30];
|
|
208
|
+
}
|
|
209
|
+
return t8;
|
|
210
|
+
}
|
|
211
|
+
function ModalLayer(t0) {
|
|
212
|
+
const $ = c(50);
|
|
213
|
+
const {
|
|
214
|
+
closeModal,
|
|
215
|
+
entry,
|
|
216
|
+
isMobileViewport,
|
|
217
|
+
isTopModal,
|
|
218
|
+
modalStack,
|
|
219
|
+
registry,
|
|
220
|
+
stackIndex,
|
|
221
|
+
theme
|
|
222
|
+
} = t0;
|
|
223
|
+
let t1;
|
|
224
|
+
if ($[0] !== closeModal || $[1] !== entry || $[2] !== isMobileViewport || $[3] !== isTopModal || $[4] !== modalStack || $[5] !== registry || $[6] !== stackIndex) {
|
|
225
|
+
t1 = {
|
|
226
|
+
closeModal,
|
|
227
|
+
entry,
|
|
228
|
+
isMobileViewport,
|
|
229
|
+
isTopModal,
|
|
230
|
+
modalStack,
|
|
231
|
+
registry,
|
|
232
|
+
stackIndex
|
|
233
|
+
};
|
|
234
|
+
$[0] = closeModal;
|
|
235
|
+
$[1] = entry;
|
|
236
|
+
$[2] = isMobileViewport;
|
|
237
|
+
$[3] = isTopModal;
|
|
238
|
+
$[4] = modalStack;
|
|
239
|
+
$[5] = registry;
|
|
240
|
+
$[6] = stackIndex;
|
|
241
|
+
$[7] = t1;
|
|
242
|
+
} else {
|
|
243
|
+
t1 = $[7];
|
|
244
|
+
}
|
|
245
|
+
const {
|
|
246
|
+
modalRef,
|
|
247
|
+
activePosition,
|
|
248
|
+
ActiveModalComponent,
|
|
249
|
+
isPanelChrome,
|
|
250
|
+
previousEntry
|
|
251
|
+
} = useModalLayerModel(t1);
|
|
252
|
+
const modalMotion = useModalMotion();
|
|
253
|
+
if (!ActiveModalComponent) {
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
let t2;
|
|
257
|
+
if ($[8] !== activePosition || $[9] !== isMobileViewport) {
|
|
258
|
+
t2 = getModalLayout(activePosition, isMobileViewport);
|
|
259
|
+
$[8] = activePosition;
|
|
260
|
+
$[9] = isMobileViewport;
|
|
261
|
+
$[10] = t2;
|
|
262
|
+
} else {
|
|
263
|
+
t2 = $[10];
|
|
264
|
+
}
|
|
265
|
+
const layout = t2;
|
|
266
|
+
let t3;
|
|
267
|
+
if ($[11] !== activePosition || $[12] !== modalMotion.positions) {
|
|
268
|
+
t3 = getModalPositionMotion(modalMotion.positions, activePosition);
|
|
269
|
+
$[11] = activePosition;
|
|
270
|
+
$[12] = modalMotion.positions;
|
|
271
|
+
$[13] = t3;
|
|
272
|
+
} else {
|
|
273
|
+
t3 = $[13];
|
|
274
|
+
}
|
|
275
|
+
const positionMotion = t3;
|
|
276
|
+
const t4 = entry.title ? `modal-title-${entry.id}` : void 0;
|
|
277
|
+
let t5;
|
|
278
|
+
if ($[14] !== activePosition) {
|
|
279
|
+
t5 = getModalPosition(activePosition);
|
|
280
|
+
$[14] = activePosition;
|
|
281
|
+
$[15] = t5;
|
|
282
|
+
} else {
|
|
283
|
+
t5 = $[15];
|
|
284
|
+
}
|
|
285
|
+
const t6 = activePosition === MODAL_POSITIONS.CENTER && !isMobileViewport ? true : void 0;
|
|
286
|
+
const t7 = theme.slots.layer;
|
|
287
|
+
const t8 = theme.styles.layer;
|
|
288
|
+
const t9 = positionMotion.variants;
|
|
289
|
+
const t10 = positionMotion.transition;
|
|
290
|
+
const t11 = theme.slots.frame;
|
|
291
|
+
let t12;
|
|
292
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
293
|
+
t12 = {
|
|
294
|
+
zIndex: 1,
|
|
295
|
+
...MODAL_COMPOSITOR_STYLE
|
|
296
|
+
};
|
|
297
|
+
$[16] = t12;
|
|
298
|
+
} else {
|
|
299
|
+
t12 = $[16];
|
|
300
|
+
}
|
|
301
|
+
const t13 = isPanelChrome ? theme.slots.panelChrome : theme.slots.panelBare;
|
|
302
|
+
let t14;
|
|
303
|
+
if ($[17] !== t13 || $[18] !== theme.slots.panel) {
|
|
304
|
+
t14 = cn(theme.slots.panel, t13);
|
|
305
|
+
$[17] = t13;
|
|
306
|
+
$[18] = theme.slots.panel;
|
|
307
|
+
$[19] = t14;
|
|
308
|
+
} else {
|
|
309
|
+
t14 = $[19];
|
|
310
|
+
}
|
|
311
|
+
let t15;
|
|
312
|
+
if ($[20] !== ActiveModalComponent || $[21] !== activePosition || $[22] !== closeModal || $[23] !== entry || $[24] !== isTopModal || $[25] !== modalStack || $[26] !== previousEntry || $[27] !== stackIndex || $[28] !== theme) {
|
|
313
|
+
t15 = /* @__PURE__ */ jsx(ModalLayerContent, { ActiveModalComponent, activePosition, closeModal, entry, isTopModal, modalStack, previousEntry, stackIndex, theme });
|
|
314
|
+
$[20] = ActiveModalComponent;
|
|
315
|
+
$[21] = activePosition;
|
|
316
|
+
$[22] = closeModal;
|
|
317
|
+
$[23] = entry;
|
|
318
|
+
$[24] = isTopModal;
|
|
319
|
+
$[25] = modalStack;
|
|
320
|
+
$[26] = previousEntry;
|
|
321
|
+
$[27] = stackIndex;
|
|
322
|
+
$[28] = theme;
|
|
323
|
+
$[29] = t15;
|
|
324
|
+
} else {
|
|
325
|
+
t15 = $[29];
|
|
326
|
+
}
|
|
327
|
+
let t16;
|
|
328
|
+
if ($[30] !== layout || $[31] !== t14 || $[32] !== t15) {
|
|
329
|
+
t16 = /* @__PURE__ */ jsx("div", { "data-layout": layout, className: t14, children: t15 });
|
|
330
|
+
$[30] = layout;
|
|
331
|
+
$[31] = t14;
|
|
332
|
+
$[32] = t15;
|
|
333
|
+
$[33] = t16;
|
|
334
|
+
} else {
|
|
335
|
+
t16 = $[33];
|
|
336
|
+
}
|
|
337
|
+
let t17;
|
|
338
|
+
if ($[34] !== isTopModal || $[35] !== layout || $[36] !== modalRef || $[37] !== positionMotion.transition || $[38] !== positionMotion.variants || $[39] !== t16 || $[40] !== theme.slots.frame) {
|
|
339
|
+
t17 = /* @__PURE__ */ jsx(motion.div, { ref: modalRef, variants: t9, initial: "hidden", animate: "visible", exit: "exit", transition: t10, "data-active": isTopModal, "data-layout": layout, className: t11, style: t12, onClick: _temp, children: t16 });
|
|
340
|
+
$[34] = isTopModal;
|
|
341
|
+
$[35] = layout;
|
|
342
|
+
$[36] = modalRef;
|
|
343
|
+
$[37] = positionMotion.transition;
|
|
344
|
+
$[38] = positionMotion.variants;
|
|
345
|
+
$[39] = t16;
|
|
346
|
+
$[40] = theme.slots.frame;
|
|
347
|
+
$[41] = t17;
|
|
348
|
+
} else {
|
|
349
|
+
t17 = $[41];
|
|
350
|
+
}
|
|
351
|
+
let t18;
|
|
352
|
+
if ($[42] !== isTopModal || $[43] !== t17 || $[44] !== t4 || $[45] !== t5 || $[46] !== t6 || $[47] !== theme.slots.layer || $[48] !== theme.styles.layer) {
|
|
353
|
+
t18 = /* @__PURE__ */ jsx("div", { role: "dialog", "aria-modal": isTopModal, "aria-labelledby": t4, "data-position": t5, "data-inset": t6, className: t7, style: t8, children: t17 });
|
|
354
|
+
$[42] = isTopModal;
|
|
355
|
+
$[43] = t17;
|
|
356
|
+
$[44] = t4;
|
|
357
|
+
$[45] = t5;
|
|
358
|
+
$[46] = t6;
|
|
359
|
+
$[47] = theme.slots.layer;
|
|
360
|
+
$[48] = theme.styles.layer;
|
|
361
|
+
$[49] = t18;
|
|
362
|
+
} else {
|
|
363
|
+
t18 = $[49];
|
|
364
|
+
}
|
|
365
|
+
return t18;
|
|
366
|
+
}
|
|
367
|
+
function _temp(e) {
|
|
368
|
+
return e.stopPropagation();
|
|
369
|
+
}
|
|
370
|
+
function Modal() {
|
|
371
|
+
const $ = c(24);
|
|
372
|
+
const {
|
|
373
|
+
closeModal,
|
|
374
|
+
registry,
|
|
375
|
+
visibleModalStack,
|
|
376
|
+
topModalEntry,
|
|
377
|
+
isModalVisible,
|
|
378
|
+
mounted,
|
|
379
|
+
isMobileViewport,
|
|
380
|
+
isTopExitSettling,
|
|
381
|
+
setIsTopExitSettling,
|
|
382
|
+
theme
|
|
383
|
+
} = useModalModel();
|
|
384
|
+
const modalMotion = useModalMotion();
|
|
385
|
+
if (!mounted) {
|
|
386
|
+
return null;
|
|
387
|
+
}
|
|
388
|
+
let t0;
|
|
389
|
+
if ($[0] !== closeModal || $[1] !== isModalVisible || $[2] !== isTopExitSettling || $[3] !== modalMotion || $[4] !== theme || $[5] !== topModalEntry) {
|
|
390
|
+
t0 = isModalVisible && /* @__PURE__ */ jsx(motion.div, { variants: modalMotion.backdrop, initial: "hidden", animate: "visible", exit: "exit", className: theme.slots.backdrop, style: theme.styles.backdrop, onClick: () => {
|
|
391
|
+
if (!isTopExitSettling) {
|
|
392
|
+
closeModal(null, topModalEntry.id);
|
|
393
|
+
}
|
|
394
|
+
} }, "global-modal-backdrop");
|
|
395
|
+
$[0] = closeModal;
|
|
396
|
+
$[1] = isModalVisible;
|
|
397
|
+
$[2] = isTopExitSettling;
|
|
398
|
+
$[3] = modalMotion;
|
|
399
|
+
$[4] = theme;
|
|
400
|
+
$[5] = topModalEntry;
|
|
401
|
+
$[6] = t0;
|
|
402
|
+
} else {
|
|
403
|
+
t0 = $[6];
|
|
404
|
+
}
|
|
405
|
+
let t1;
|
|
406
|
+
if ($[7] !== t0) {
|
|
407
|
+
t1 = /* @__PURE__ */ jsx(AnimatePresence, { children: t0 });
|
|
408
|
+
$[7] = t0;
|
|
409
|
+
$[8] = t1;
|
|
410
|
+
} else {
|
|
411
|
+
t1 = $[8];
|
|
412
|
+
}
|
|
413
|
+
let t2;
|
|
414
|
+
if ($[9] !== setIsTopExitSettling) {
|
|
415
|
+
t2 = () => setIsTopExitSettling(false);
|
|
416
|
+
$[9] = setIsTopExitSettling;
|
|
417
|
+
$[10] = t2;
|
|
418
|
+
} else {
|
|
419
|
+
t2 = $[10];
|
|
420
|
+
}
|
|
421
|
+
let t3;
|
|
422
|
+
if ($[11] !== closeModal || $[12] !== isMobileViewport || $[13] !== isTopExitSettling || $[14] !== registry || $[15] !== theme || $[16] !== visibleModalStack) {
|
|
423
|
+
t3 = visibleModalStack.map((entry, index) => /* @__PURE__ */ jsx(ModalLayer, { entry, stackIndex: index, isTopModal: index === visibleModalStack.length - 1 && !isTopExitSettling, isMobileViewport, closeModal, registry, modalStack: visibleModalStack, theme }, entry.id));
|
|
424
|
+
$[11] = closeModal;
|
|
425
|
+
$[12] = isMobileViewport;
|
|
426
|
+
$[13] = isTopExitSettling;
|
|
427
|
+
$[14] = registry;
|
|
428
|
+
$[15] = theme;
|
|
429
|
+
$[16] = visibleModalStack;
|
|
430
|
+
$[17] = t3;
|
|
431
|
+
} else {
|
|
432
|
+
t3 = $[17];
|
|
433
|
+
}
|
|
434
|
+
let t4;
|
|
435
|
+
if ($[18] !== t2 || $[19] !== t3) {
|
|
436
|
+
t4 = /* @__PURE__ */ jsx(AnimatePresence, { onExitComplete: t2, children: t3 });
|
|
437
|
+
$[18] = t2;
|
|
438
|
+
$[19] = t3;
|
|
439
|
+
$[20] = t4;
|
|
440
|
+
} else {
|
|
441
|
+
t4 = $[20];
|
|
442
|
+
}
|
|
443
|
+
let t5;
|
|
444
|
+
if ($[21] !== t1 || $[22] !== t4) {
|
|
445
|
+
t5 = createPortal(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
446
|
+
t1,
|
|
447
|
+
t4
|
|
448
|
+
] }), document.body);
|
|
449
|
+
$[21] = t1;
|
|
450
|
+
$[22] = t4;
|
|
451
|
+
$[23] = t5;
|
|
452
|
+
} else {
|
|
453
|
+
t5 = $[23];
|
|
454
|
+
}
|
|
455
|
+
return t5;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export { Modal, useModalMotion };
|
|
459
|
+
//# sourceMappingURL=chunk-GCHQ5OC4.js.map
|
|
460
|
+
//# sourceMappingURL=chunk-GCHQ5OC4.js.map
|