@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,825 @@
|
|
|
1
|
+
import { useModuleRegistration, useRegistryEntries } from './chunk-NHOJWICA.js';
|
|
2
|
+
import { useRequiredContext, useStore } from './chunk-Y2Q74PJP.js';
|
|
3
|
+
import { defineThemeSpec, useTheme } from './chunk-ESD5EQ5H.js';
|
|
4
|
+
import { createStore, report, acquireGlobalScrollLock } from './chunk-5H6FZW3N.js';
|
|
5
|
+
import { getOrCreateGlobalContext } from './chunk-J3VTDBC6.js';
|
|
6
|
+
import { isPlainObject } from './chunk-BMFHS3GV.js';
|
|
7
|
+
import { c } from 'react/compiler-runtime';
|
|
8
|
+
import { useState, useRef, useSyncExternalStore, useLayoutEffect, useEffect } from 'react';
|
|
9
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
// src/modules/modal/constants.ts
|
|
12
|
+
var MODAL_POSITIONS = Object.freeze({
|
|
13
|
+
BOTTOM: "bottom",
|
|
14
|
+
CENTER: "center",
|
|
15
|
+
LEFT: "left",
|
|
16
|
+
RIGHT: "right",
|
|
17
|
+
TOP: "top"
|
|
18
|
+
});
|
|
19
|
+
var MODAL_CHROME = Object.freeze({
|
|
20
|
+
BARE: "bare",
|
|
21
|
+
PANEL: "panel"
|
|
22
|
+
});
|
|
23
|
+
var MODAL_BREAKPOINTS = Object.freeze({
|
|
24
|
+
MOBILE_MAX_WIDTH: 639
|
|
25
|
+
});
|
|
26
|
+
var SMOOTH_SCROLL_LOCK_EVENT = "modal:smooth-scroll-lock";
|
|
27
|
+
var FOCUSABLE_SELECTOR = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [contenteditable="true"], [tabindex]:not([tabindex="-1"])';
|
|
28
|
+
var HEIGHT_CONSTRAINT_PATTERN = /(\s|^)(?:[\w-]+:)*(?:h|max-h)-/;
|
|
29
|
+
var modalTheme = defineThemeSpec("modal");
|
|
30
|
+
|
|
31
|
+
// src/modules/modal/model/layout.ts
|
|
32
|
+
function hasHeightConstraint(className) {
|
|
33
|
+
return typeof className === "string" && HEIGHT_CONSTRAINT_PATTERN.test(className);
|
|
34
|
+
}
|
|
35
|
+
function isSidePosition(position) {
|
|
36
|
+
return position === MODAL_POSITIONS.LEFT || position === MODAL_POSITIONS.RIGHT;
|
|
37
|
+
}
|
|
38
|
+
function isVerticalEdgePosition(position) {
|
|
39
|
+
return position === MODAL_POSITIONS.TOP || position === MODAL_POSITIONS.BOTTOM;
|
|
40
|
+
}
|
|
41
|
+
function getModalPosition(position) {
|
|
42
|
+
return position === MODAL_POSITIONS.TOP || position === MODAL_POSITIONS.BOTTOM || position === MODAL_POSITIONS.LEFT || position === MODAL_POSITIONS.RIGHT ? position : MODAL_POSITIONS.CENTER;
|
|
43
|
+
}
|
|
44
|
+
function getModalLayout(position, isMobile) {
|
|
45
|
+
const resolved = getModalPosition(position);
|
|
46
|
+
if (!isMobile) return resolved;
|
|
47
|
+
if (resolved === MODAL_POSITIONS.TOP || resolved === MODAL_POSITIONS.BOTTOM) return `${resolved}-mobile`;
|
|
48
|
+
if (resolved === MODAL_POSITIONS.LEFT || resolved === MODAL_POSITIONS.RIGHT) return "side-mobile";
|
|
49
|
+
return resolved;
|
|
50
|
+
}
|
|
51
|
+
function getViewportIsMobile() {
|
|
52
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return window.matchMedia(`(max-width: ${MODAL_BREAKPOINTS.MOBILE_MAX_WIDTH}px)`).matches;
|
|
56
|
+
}
|
|
57
|
+
function resolveActivePosition(position, responsivePosition, isMobileViewport) {
|
|
58
|
+
if (!isPlainObject(responsivePosition)) return position;
|
|
59
|
+
const responsive = isMobileViewport ? responsivePosition.mobile : responsivePosition.desktop;
|
|
60
|
+
return responsive || position;
|
|
61
|
+
}
|
|
62
|
+
function normalizePosition(input) {
|
|
63
|
+
if (typeof input === "string") {
|
|
64
|
+
return {
|
|
65
|
+
position: input,
|
|
66
|
+
responsivePosition: null
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
if (!isPlainObject(input)) {
|
|
70
|
+
return {
|
|
71
|
+
position: MODAL_POSITIONS.CENTER,
|
|
72
|
+
responsivePosition: null
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
position: resolveActivePosition(MODAL_POSITIONS.CENTER, input, getViewportIsMobile()),
|
|
77
|
+
responsivePosition: input
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// src/modules/modal/model/identity.ts
|
|
82
|
+
function getModalIdentity(input) {
|
|
83
|
+
if (typeof input === "string") return {
|
|
84
|
+
component: null,
|
|
85
|
+
type: input
|
|
86
|
+
};
|
|
87
|
+
const options = typeof input === "function" ? {
|
|
88
|
+
component: input
|
|
89
|
+
} : input;
|
|
90
|
+
const component = options.component ?? null;
|
|
91
|
+
return {
|
|
92
|
+
component,
|
|
93
|
+
type: "type" in options && options.type || "id" in options && options.id || component?.displayName || component?.name || "modal"
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function getModalLabel(modalType) {
|
|
97
|
+
if (typeof modalType !== "string" || !modalType.trim()) return "Modal";
|
|
98
|
+
return modalType.trim().toLowerCase().split(/[_-]+/).map((part) => `${part.charAt(0).toUpperCase()}${part.slice(1)}`).join(" ");
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// src/modules/modal/model/state.ts
|
|
102
|
+
function createModalState(modalStack = []) {
|
|
103
|
+
const activeModal = modalStack[modalStack.length - 1] || null;
|
|
104
|
+
return {
|
|
105
|
+
activeModalId: activeModal?.id || null,
|
|
106
|
+
chrome: activeModal?.chrome || MODAL_CHROME.PANEL,
|
|
107
|
+
headerActions: activeModal?.headerActions || null,
|
|
108
|
+
isOpen: modalStack.length > 0,
|
|
109
|
+
modalStack,
|
|
110
|
+
modalType: activeModal?.modalType || null,
|
|
111
|
+
position: activeModal?.position || MODAL_POSITIONS.CENTER,
|
|
112
|
+
props: activeModal?.props || {},
|
|
113
|
+
responsivePosition: activeModal?.responsivePosition || null,
|
|
114
|
+
showClose: activeModal?.showClose ?? true,
|
|
115
|
+
title: activeModal?.title || null
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
var INITIAL_MODAL_STATE = createModalState([]);
|
|
119
|
+
|
|
120
|
+
// src/modules/modal/model/entry.ts
|
|
121
|
+
function isSameModal(entry, type, component) {
|
|
122
|
+
if (!entry) return false;
|
|
123
|
+
return entry.modalType === type || Boolean(component && entry.component === component);
|
|
124
|
+
}
|
|
125
|
+
function createModalEntry({
|
|
126
|
+
component,
|
|
127
|
+
input,
|
|
128
|
+
modalId,
|
|
129
|
+
options,
|
|
130
|
+
type
|
|
131
|
+
}) {
|
|
132
|
+
const definition = typeof input === "object" ? input : void 0;
|
|
133
|
+
const merged = {
|
|
134
|
+
...definition,
|
|
135
|
+
...options
|
|
136
|
+
};
|
|
137
|
+
const data = {
|
|
138
|
+
...definition?.defaultData,
|
|
139
|
+
...options.data
|
|
140
|
+
};
|
|
141
|
+
const entry = {
|
|
142
|
+
chrome: merged.chrome || MODAL_CHROME.PANEL,
|
|
143
|
+
component,
|
|
144
|
+
headerActions: merged.actions || null,
|
|
145
|
+
id: modalId,
|
|
146
|
+
modalType: type,
|
|
147
|
+
props: data,
|
|
148
|
+
showClose: merged.showClose ?? true,
|
|
149
|
+
title: typeof merged.title === "function" ? merged.title(data) : merged.title ?? null,
|
|
150
|
+
...normalizePosition(merged.position)
|
|
151
|
+
};
|
|
152
|
+
return {
|
|
153
|
+
entry,
|
|
154
|
+
onClose: merged.onClose
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
var ModalContext = getOrCreateGlobalContext("ModalContext", null);
|
|
158
|
+
function runOnClose(onClose, result) {
|
|
159
|
+
try {
|
|
160
|
+
const outcome = onClose?.(result);
|
|
161
|
+
if (outcome instanceof Promise) {
|
|
162
|
+
outcome.catch((error) => report("Modal onClose", error));
|
|
163
|
+
}
|
|
164
|
+
} catch (error) {
|
|
165
|
+
report("Modal onClose", error);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function ModalProvider(t0) {
|
|
169
|
+
const $ = c(24);
|
|
170
|
+
const {
|
|
171
|
+
children,
|
|
172
|
+
modalRenderer: t1
|
|
173
|
+
} = t0;
|
|
174
|
+
const ModalRenderer = t1 === void 0 ? null : t1;
|
|
175
|
+
const [store] = useState(_temp);
|
|
176
|
+
let t2;
|
|
177
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
178
|
+
t2 = [];
|
|
179
|
+
$[0] = t2;
|
|
180
|
+
} else {
|
|
181
|
+
t2 = $[0];
|
|
182
|
+
}
|
|
183
|
+
const modalStackRef = useRef(t2);
|
|
184
|
+
let t3;
|
|
185
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
186
|
+
t3 = /* @__PURE__ */ new Map();
|
|
187
|
+
$[1] = t3;
|
|
188
|
+
} else {
|
|
189
|
+
t3 = $[1];
|
|
190
|
+
}
|
|
191
|
+
const pendingRef = useRef(t3);
|
|
192
|
+
const modalIdRef = useRef(0);
|
|
193
|
+
let t4;
|
|
194
|
+
if ($[2] !== store) {
|
|
195
|
+
t4 = (nextStack) => {
|
|
196
|
+
modalStackRef.current = nextStack;
|
|
197
|
+
store.publish(createModalState(nextStack));
|
|
198
|
+
};
|
|
199
|
+
$[2] = store;
|
|
200
|
+
$[3] = t4;
|
|
201
|
+
} else {
|
|
202
|
+
t4 = $[3];
|
|
203
|
+
}
|
|
204
|
+
const syncModalStack = t4;
|
|
205
|
+
let t5;
|
|
206
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
207
|
+
t5 = (modalId, result) => {
|
|
208
|
+
const pending = pendingRef.current.get(modalId);
|
|
209
|
+
if (!pending) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
pendingRef.current.delete(modalId);
|
|
213
|
+
runOnClose(pending.onClose, result);
|
|
214
|
+
pending.resolve(result);
|
|
215
|
+
};
|
|
216
|
+
$[4] = t5;
|
|
217
|
+
} else {
|
|
218
|
+
t5 = $[4];
|
|
219
|
+
}
|
|
220
|
+
const settleModal = t5;
|
|
221
|
+
let t6;
|
|
222
|
+
if ($[5] !== syncModalStack) {
|
|
223
|
+
t6 = (modalInput, t72) => {
|
|
224
|
+
const options = t72 === void 0 ? {} : t72;
|
|
225
|
+
if (!modalInput) {
|
|
226
|
+
return Promise.resolve(null);
|
|
227
|
+
}
|
|
228
|
+
const stack = modalStackRef.current;
|
|
229
|
+
const {
|
|
230
|
+
component,
|
|
231
|
+
type
|
|
232
|
+
} = getModalIdentity(modalInput);
|
|
233
|
+
if (isSameModal(stack[stack.length - 1], type, component)) {
|
|
234
|
+
return Promise.resolve(null);
|
|
235
|
+
}
|
|
236
|
+
const modalId_0 = modalIdRef.current = modalIdRef.current + 1;
|
|
237
|
+
const {
|
|
238
|
+
entry,
|
|
239
|
+
onClose
|
|
240
|
+
} = createModalEntry({
|
|
241
|
+
component,
|
|
242
|
+
input: modalInput,
|
|
243
|
+
modalId: modalId_0,
|
|
244
|
+
options,
|
|
245
|
+
type
|
|
246
|
+
});
|
|
247
|
+
return new Promise((resolve) => {
|
|
248
|
+
pendingRef.current.set(modalId_0, {
|
|
249
|
+
onClose,
|
|
250
|
+
resolve
|
|
251
|
+
});
|
|
252
|
+
syncModalStack([...stack, entry]);
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
$[5] = syncModalStack;
|
|
256
|
+
$[6] = t6;
|
|
257
|
+
} else {
|
|
258
|
+
t6 = $[6];
|
|
259
|
+
}
|
|
260
|
+
const openModal = t6;
|
|
261
|
+
let t7;
|
|
262
|
+
if ($[7] !== syncModalStack) {
|
|
263
|
+
t7 = (t82, t92) => {
|
|
264
|
+
const result_0 = t82 === void 0 ? null : t82;
|
|
265
|
+
const targetModalId = t92 === void 0 ? null : t92;
|
|
266
|
+
const stack_0 = modalStackRef.current;
|
|
267
|
+
const modalId_1 = targetModalId || stack_0[stack_0.length - 1]?.id;
|
|
268
|
+
if (!modalId_1 || !stack_0.some((entry_0) => entry_0.id === modalId_1)) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
syncModalStack(stack_0.filter((entry_1) => entry_1.id !== modalId_1));
|
|
272
|
+
settleModal(modalId_1, result_0);
|
|
273
|
+
};
|
|
274
|
+
$[7] = syncModalStack;
|
|
275
|
+
$[8] = t7;
|
|
276
|
+
} else {
|
|
277
|
+
t7 = $[8];
|
|
278
|
+
}
|
|
279
|
+
const closeModal = t7;
|
|
280
|
+
let t8;
|
|
281
|
+
if ($[9] !== syncModalStack) {
|
|
282
|
+
t8 = (t92) => {
|
|
283
|
+
const result_1 = t92 === void 0 ? null : t92;
|
|
284
|
+
const stack_1 = modalStackRef.current;
|
|
285
|
+
if (stack_1.length === 0) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
syncModalStack([]);
|
|
289
|
+
stack_1.forEach((entry_2) => settleModal(entry_2.id, result_1));
|
|
290
|
+
};
|
|
291
|
+
$[9] = syncModalStack;
|
|
292
|
+
$[10] = t8;
|
|
293
|
+
} else {
|
|
294
|
+
t8 = $[10];
|
|
295
|
+
}
|
|
296
|
+
const closeAllModals = t8;
|
|
297
|
+
let t9;
|
|
298
|
+
if ($[11] !== closeAllModals || $[12] !== closeModal || $[13] !== openModal) {
|
|
299
|
+
t9 = {
|
|
300
|
+
closeAllModals,
|
|
301
|
+
closeModal,
|
|
302
|
+
openModal
|
|
303
|
+
};
|
|
304
|
+
$[11] = closeAllModals;
|
|
305
|
+
$[12] = closeModal;
|
|
306
|
+
$[13] = openModal;
|
|
307
|
+
$[14] = t9;
|
|
308
|
+
} else {
|
|
309
|
+
t9 = $[14];
|
|
310
|
+
}
|
|
311
|
+
const actionsValue = t9;
|
|
312
|
+
let t10;
|
|
313
|
+
if ($[15] !== actionsValue || $[16] !== store) {
|
|
314
|
+
t10 = {
|
|
315
|
+
actions: actionsValue,
|
|
316
|
+
store
|
|
317
|
+
};
|
|
318
|
+
$[15] = actionsValue;
|
|
319
|
+
$[16] = store;
|
|
320
|
+
$[17] = t10;
|
|
321
|
+
} else {
|
|
322
|
+
t10 = $[17];
|
|
323
|
+
}
|
|
324
|
+
const contextValue = t10;
|
|
325
|
+
let t11;
|
|
326
|
+
if ($[18] !== ModalRenderer) {
|
|
327
|
+
t11 = ModalRenderer && /* @__PURE__ */ jsx(ModalRenderer, {});
|
|
328
|
+
$[18] = ModalRenderer;
|
|
329
|
+
$[19] = t11;
|
|
330
|
+
} else {
|
|
331
|
+
t11 = $[19];
|
|
332
|
+
}
|
|
333
|
+
let t12;
|
|
334
|
+
if ($[20] !== children || $[21] !== contextValue || $[22] !== t11) {
|
|
335
|
+
t12 = /* @__PURE__ */ jsxs(ModalContext, { value: contextValue, children: [
|
|
336
|
+
t11,
|
|
337
|
+
children
|
|
338
|
+
] });
|
|
339
|
+
$[20] = children;
|
|
340
|
+
$[21] = contextValue;
|
|
341
|
+
$[22] = t11;
|
|
342
|
+
$[23] = t12;
|
|
343
|
+
} else {
|
|
344
|
+
t12 = $[23];
|
|
345
|
+
}
|
|
346
|
+
return t12;
|
|
347
|
+
}
|
|
348
|
+
function _temp() {
|
|
349
|
+
return createStore(INITIAL_MODAL_STATE, {
|
|
350
|
+
freezeSnapshots: false
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// src/modules/modal/lib/dom.ts
|
|
355
|
+
function dispatchSmoothScrollLock(locked) {
|
|
356
|
+
if (typeof window === "undefined") return;
|
|
357
|
+
window.dispatchEvent(new CustomEvent(SMOOTH_SCROLL_LOCK_EVENT, {
|
|
358
|
+
detail: {
|
|
359
|
+
locked,
|
|
360
|
+
source: "modal"
|
|
361
|
+
}
|
|
362
|
+
}));
|
|
363
|
+
}
|
|
364
|
+
function getFocusableElements(container) {
|
|
365
|
+
if (!container || typeof container.querySelectorAll !== "function") return [];
|
|
366
|
+
return Array.from(container.querySelectorAll(FOCUSABLE_SELECTOR)).filter((element) => !element.hasAttribute("disabled") && element.getAttribute("aria-hidden") !== "true");
|
|
367
|
+
}
|
|
368
|
+
function trapFocus(event, container) {
|
|
369
|
+
if (event.key !== "Tab" || !container) return;
|
|
370
|
+
const elements = getFocusableElements(container);
|
|
371
|
+
if (elements.length === 0) return;
|
|
372
|
+
const firstElement = elements[0];
|
|
373
|
+
const lastElement = elements[elements.length - 1];
|
|
374
|
+
if (event.shiftKey) {
|
|
375
|
+
if (document.activeElement === firstElement) {
|
|
376
|
+
event.preventDefault();
|
|
377
|
+
lastElement?.focus();
|
|
378
|
+
}
|
|
379
|
+
} else {
|
|
380
|
+
if (document.activeElement === lastElement) {
|
|
381
|
+
event.preventDefault();
|
|
382
|
+
firstElement?.focus();
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
function useMobileViewport() {
|
|
387
|
+
const $ = c(2);
|
|
388
|
+
const [isMobileViewport, setIsMobileViewport] = useState(getViewportIsMobile);
|
|
389
|
+
let t0;
|
|
390
|
+
let t1;
|
|
391
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
392
|
+
t0 = () => {
|
|
393
|
+
if (typeof window === "undefined" || !window.matchMedia) {
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
const mediaQuery = window.matchMedia(`(max-width: ${MODAL_BREAKPOINTS.MOBILE_MAX_WIDTH}px)`);
|
|
397
|
+
const handleViewportChange = (e) => setIsMobileViewport(e.matches);
|
|
398
|
+
mediaQuery.addEventListener("change", handleViewportChange);
|
|
399
|
+
return () => mediaQuery.removeEventListener("change", handleViewportChange);
|
|
400
|
+
};
|
|
401
|
+
t1 = [];
|
|
402
|
+
$[0] = t0;
|
|
403
|
+
$[1] = t1;
|
|
404
|
+
} else {
|
|
405
|
+
t0 = $[0];
|
|
406
|
+
t1 = $[1];
|
|
407
|
+
}
|
|
408
|
+
useEffect(t0, t1);
|
|
409
|
+
return isMobileViewport;
|
|
410
|
+
}
|
|
411
|
+
function useModalFocusTrap(t0) {
|
|
412
|
+
const $ = c(6);
|
|
413
|
+
const {
|
|
414
|
+
closeModal,
|
|
415
|
+
entryId,
|
|
416
|
+
isTopModal,
|
|
417
|
+
modalRef
|
|
418
|
+
} = t0;
|
|
419
|
+
let t1;
|
|
420
|
+
let t2;
|
|
421
|
+
if ($[0] !== closeModal || $[1] !== entryId || $[2] !== isTopModal || $[3] !== modalRef) {
|
|
422
|
+
t1 = () => {
|
|
423
|
+
if (!isTopModal || !modalRef.current) {
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
const previouslyFocusedElement = document.activeElement;
|
|
427
|
+
const initialElements = getFocusableElements(modalRef.current);
|
|
428
|
+
if (initialElements.length > 0) {
|
|
429
|
+
initialElements[0].focus();
|
|
430
|
+
}
|
|
431
|
+
const handleKeyDown = (event) => {
|
|
432
|
+
if (event.key === "Escape") {
|
|
433
|
+
closeModal(null, entryId);
|
|
434
|
+
} else {
|
|
435
|
+
trapFocus(event, modalRef.current);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
439
|
+
return () => {
|
|
440
|
+
window.removeEventListener("keydown", handleKeyDown);
|
|
441
|
+
if (previouslyFocusedElement?.isConnected) {
|
|
442
|
+
previouslyFocusedElement.focus();
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
t2 = [closeModal, entryId, isTopModal, modalRef];
|
|
447
|
+
$[0] = closeModal;
|
|
448
|
+
$[1] = entryId;
|
|
449
|
+
$[2] = isTopModal;
|
|
450
|
+
$[3] = modalRef;
|
|
451
|
+
$[4] = t1;
|
|
452
|
+
$[5] = t2;
|
|
453
|
+
} else {
|
|
454
|
+
t1 = $[4];
|
|
455
|
+
t2 = $[5];
|
|
456
|
+
}
|
|
457
|
+
useEffect(t1, t2);
|
|
458
|
+
}
|
|
459
|
+
function useModalScrollLock(isModalVisible) {
|
|
460
|
+
const $ = c(5);
|
|
461
|
+
const releaseScrollLockRef = useRef(null);
|
|
462
|
+
let t0;
|
|
463
|
+
let t1;
|
|
464
|
+
if ($[0] !== isModalVisible) {
|
|
465
|
+
t0 = () => {
|
|
466
|
+
if (typeof document === "undefined") {
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
if (isModalVisible) {
|
|
470
|
+
if (!releaseScrollLockRef.current) {
|
|
471
|
+
releaseScrollLockRef.current = acquireGlobalScrollLock();
|
|
472
|
+
}
|
|
473
|
+
} else {
|
|
474
|
+
if (releaseScrollLockRef.current) {
|
|
475
|
+
releaseScrollLockRef.current();
|
|
476
|
+
releaseScrollLockRef.current = null;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
dispatchSmoothScrollLock(isModalVisible);
|
|
480
|
+
};
|
|
481
|
+
t1 = [isModalVisible];
|
|
482
|
+
$[0] = isModalVisible;
|
|
483
|
+
$[1] = t0;
|
|
484
|
+
$[2] = t1;
|
|
485
|
+
} else {
|
|
486
|
+
t0 = $[1];
|
|
487
|
+
t1 = $[2];
|
|
488
|
+
}
|
|
489
|
+
useEffect(t0, t1);
|
|
490
|
+
let t2;
|
|
491
|
+
let t3;
|
|
492
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
493
|
+
t2 = () => () => {
|
|
494
|
+
releaseScrollLockRef.current?.();
|
|
495
|
+
releaseScrollLockRef.current = null;
|
|
496
|
+
dispatchSmoothScrollLock(false);
|
|
497
|
+
};
|
|
498
|
+
t3 = [];
|
|
499
|
+
$[3] = t2;
|
|
500
|
+
$[4] = t3;
|
|
501
|
+
} else {
|
|
502
|
+
t2 = $[3];
|
|
503
|
+
t3 = $[4];
|
|
504
|
+
}
|
|
505
|
+
useEffect(t2, t3);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// src/modules/modal/hooks.ts
|
|
509
|
+
function useModalRegistration(config, options) {
|
|
510
|
+
useModuleRegistration("modal", config, options);
|
|
511
|
+
}
|
|
512
|
+
function useModalRegistryEntries() {
|
|
513
|
+
const $ = c(2);
|
|
514
|
+
const entries = useRegistryEntries("modal");
|
|
515
|
+
let t0;
|
|
516
|
+
if ($[0] !== entries) {
|
|
517
|
+
t0 = {
|
|
518
|
+
get: (type) => entries[type]
|
|
519
|
+
};
|
|
520
|
+
$[0] = entries;
|
|
521
|
+
$[1] = t0;
|
|
522
|
+
} else {
|
|
523
|
+
t0 = $[1];
|
|
524
|
+
}
|
|
525
|
+
return t0;
|
|
526
|
+
}
|
|
527
|
+
function useModalActions() {
|
|
528
|
+
return useRequiredContext(ModalContext, "useModalActions", "ModalProvider").actions;
|
|
529
|
+
}
|
|
530
|
+
function useModalState() {
|
|
531
|
+
const {
|
|
532
|
+
store
|
|
533
|
+
} = useRequiredContext(ModalContext, "useModalState", "ModalProvider");
|
|
534
|
+
return useStore(store);
|
|
535
|
+
}
|
|
536
|
+
function useModal(modalInput) {
|
|
537
|
+
const $ = c(10);
|
|
538
|
+
const actions = useModalActions();
|
|
539
|
+
const state = useModalState();
|
|
540
|
+
let t0;
|
|
541
|
+
bb0: {
|
|
542
|
+
if (!modalInput) {
|
|
543
|
+
let t12;
|
|
544
|
+
if ($[0] !== actions || $[1] !== state) {
|
|
545
|
+
t12 = {
|
|
546
|
+
...actions,
|
|
547
|
+
...state
|
|
548
|
+
};
|
|
549
|
+
$[0] = actions;
|
|
550
|
+
$[1] = state;
|
|
551
|
+
$[2] = t12;
|
|
552
|
+
} else {
|
|
553
|
+
t12 = $[2];
|
|
554
|
+
}
|
|
555
|
+
t0 = t12;
|
|
556
|
+
break bb0;
|
|
557
|
+
}
|
|
558
|
+
let t1;
|
|
559
|
+
if ($[3] !== actions || $[4] !== modalInput || $[5] !== state) {
|
|
560
|
+
const {
|
|
561
|
+
component,
|
|
562
|
+
type
|
|
563
|
+
} = getModalIdentity(modalInput);
|
|
564
|
+
const isOpen = state.modalStack.some((entry) => entry.modalType === type || component && entry.component === component);
|
|
565
|
+
let t2;
|
|
566
|
+
if ($[7] !== actions || $[8] !== modalInput) {
|
|
567
|
+
t2 = (data, overrides) => actions.openModal(modalInput, {
|
|
568
|
+
...overrides,
|
|
569
|
+
data
|
|
570
|
+
});
|
|
571
|
+
$[7] = actions;
|
|
572
|
+
$[8] = modalInput;
|
|
573
|
+
$[9] = t2;
|
|
574
|
+
} else {
|
|
575
|
+
t2 = $[9];
|
|
576
|
+
}
|
|
577
|
+
const open = t2;
|
|
578
|
+
const controls = {
|
|
579
|
+
close: actions.closeModal,
|
|
580
|
+
closeAll: actions.closeAllModals,
|
|
581
|
+
isOpen,
|
|
582
|
+
state
|
|
583
|
+
};
|
|
584
|
+
t1 = Object.assign([open, controls], controls, {
|
|
585
|
+
open
|
|
586
|
+
});
|
|
587
|
+
$[3] = actions;
|
|
588
|
+
$[4] = modalInput;
|
|
589
|
+
$[5] = state;
|
|
590
|
+
$[6] = t1;
|
|
591
|
+
} else {
|
|
592
|
+
t1 = $[6];
|
|
593
|
+
}
|
|
594
|
+
t0 = t1;
|
|
595
|
+
}
|
|
596
|
+
return t0;
|
|
597
|
+
}
|
|
598
|
+
var emptySubscribe = () => () => {
|
|
599
|
+
};
|
|
600
|
+
function useModalLayerModel(t0) {
|
|
601
|
+
const $ = c(29);
|
|
602
|
+
const {
|
|
603
|
+
closeModal,
|
|
604
|
+
entry,
|
|
605
|
+
isMobileViewport,
|
|
606
|
+
isTopModal,
|
|
607
|
+
modalStack,
|
|
608
|
+
registry,
|
|
609
|
+
stackIndex
|
|
610
|
+
} = t0;
|
|
611
|
+
const modalRef = useRef(null);
|
|
612
|
+
let ActiveModalComponent;
|
|
613
|
+
let activePosition;
|
|
614
|
+
let isLeftModal;
|
|
615
|
+
let isPanelChrome;
|
|
616
|
+
let isSide;
|
|
617
|
+
let t1;
|
|
618
|
+
if ($[0] !== entry.chrome || $[1] !== entry.component || $[2] !== entry.modalType || $[3] !== entry.position || $[4] !== entry.responsivePosition || $[5] !== isMobileViewport || $[6] !== registry) {
|
|
619
|
+
activePosition = resolveActivePosition(entry.position, entry.responsivePosition, isMobileViewport);
|
|
620
|
+
let t22;
|
|
621
|
+
if ($[13] !== entry.component || $[14] !== entry.modalType || $[15] !== registry) {
|
|
622
|
+
t22 = entry.component || registry.get(entry.modalType);
|
|
623
|
+
$[13] = entry.component;
|
|
624
|
+
$[14] = entry.modalType;
|
|
625
|
+
$[15] = registry;
|
|
626
|
+
$[16] = t22;
|
|
627
|
+
} else {
|
|
628
|
+
t22 = $[16];
|
|
629
|
+
}
|
|
630
|
+
ActiveModalComponent = t22;
|
|
631
|
+
isPanelChrome = entry.chrome !== MODAL_CHROME.BARE;
|
|
632
|
+
isLeftModal = activePosition === MODAL_POSITIONS.LEFT;
|
|
633
|
+
isSide = isSidePosition(activePosition);
|
|
634
|
+
t1 = isVerticalEdgePosition(activePosition);
|
|
635
|
+
$[0] = entry.chrome;
|
|
636
|
+
$[1] = entry.component;
|
|
637
|
+
$[2] = entry.modalType;
|
|
638
|
+
$[3] = entry.position;
|
|
639
|
+
$[4] = entry.responsivePosition;
|
|
640
|
+
$[5] = isMobileViewport;
|
|
641
|
+
$[6] = registry;
|
|
642
|
+
$[7] = ActiveModalComponent;
|
|
643
|
+
$[8] = activePosition;
|
|
644
|
+
$[9] = isLeftModal;
|
|
645
|
+
$[10] = isPanelChrome;
|
|
646
|
+
$[11] = isSide;
|
|
647
|
+
$[12] = t1;
|
|
648
|
+
} else {
|
|
649
|
+
ActiveModalComponent = $[7];
|
|
650
|
+
activePosition = $[8];
|
|
651
|
+
isLeftModal = $[9];
|
|
652
|
+
isPanelChrome = $[10];
|
|
653
|
+
isSide = $[11];
|
|
654
|
+
t1 = $[12];
|
|
655
|
+
}
|
|
656
|
+
const isVerticalEdge = t1;
|
|
657
|
+
const previousEntry = modalStack[stackIndex - 1] || null;
|
|
658
|
+
let t2;
|
|
659
|
+
if ($[17] !== closeModal || $[18] !== entry.id || $[19] !== isTopModal) {
|
|
660
|
+
t2 = {
|
|
661
|
+
closeModal,
|
|
662
|
+
entryId: entry.id,
|
|
663
|
+
isTopModal,
|
|
664
|
+
modalRef
|
|
665
|
+
};
|
|
666
|
+
$[17] = closeModal;
|
|
667
|
+
$[18] = entry.id;
|
|
668
|
+
$[19] = isTopModal;
|
|
669
|
+
$[20] = t2;
|
|
670
|
+
} else {
|
|
671
|
+
t2 = $[20];
|
|
672
|
+
}
|
|
673
|
+
useModalFocusTrap(t2);
|
|
674
|
+
let t3;
|
|
675
|
+
if ($[21] !== ActiveModalComponent || $[22] !== activePosition || $[23] !== isLeftModal || $[24] !== isPanelChrome || $[25] !== isSide || $[26] !== isVerticalEdge || $[27] !== previousEntry) {
|
|
676
|
+
t3 = {
|
|
677
|
+
modalRef,
|
|
678
|
+
activePosition,
|
|
679
|
+
ActiveModalComponent,
|
|
680
|
+
isPanelChrome,
|
|
681
|
+
isLeftModal,
|
|
682
|
+
isSide,
|
|
683
|
+
isVerticalEdge,
|
|
684
|
+
previousEntry
|
|
685
|
+
};
|
|
686
|
+
$[21] = ActiveModalComponent;
|
|
687
|
+
$[22] = activePosition;
|
|
688
|
+
$[23] = isLeftModal;
|
|
689
|
+
$[24] = isPanelChrome;
|
|
690
|
+
$[25] = isSide;
|
|
691
|
+
$[26] = isVerticalEdge;
|
|
692
|
+
$[27] = previousEntry;
|
|
693
|
+
$[28] = t3;
|
|
694
|
+
} else {
|
|
695
|
+
t3 = $[28];
|
|
696
|
+
}
|
|
697
|
+
return t3;
|
|
698
|
+
}
|
|
699
|
+
function useModalContainerModel() {
|
|
700
|
+
const $ = c(2);
|
|
701
|
+
const t0 = useTheme(modalTheme);
|
|
702
|
+
let t1;
|
|
703
|
+
if ($[0] !== t0) {
|
|
704
|
+
t1 = {
|
|
705
|
+
theme: t0
|
|
706
|
+
};
|
|
707
|
+
$[0] = t0;
|
|
708
|
+
$[1] = t1;
|
|
709
|
+
} else {
|
|
710
|
+
t1 = $[1];
|
|
711
|
+
}
|
|
712
|
+
return t1;
|
|
713
|
+
}
|
|
714
|
+
function useModalModel() {
|
|
715
|
+
const $ = c(24);
|
|
716
|
+
const {
|
|
717
|
+
modalStack: t0,
|
|
718
|
+
isOpen,
|
|
719
|
+
closeModal
|
|
720
|
+
} = useModal();
|
|
721
|
+
let t1;
|
|
722
|
+
if ($[0] !== t0) {
|
|
723
|
+
t1 = t0 === void 0 ? [] : t0;
|
|
724
|
+
$[0] = t0;
|
|
725
|
+
$[1] = t1;
|
|
726
|
+
} else {
|
|
727
|
+
t1 = $[1];
|
|
728
|
+
}
|
|
729
|
+
const modalStack = t1;
|
|
730
|
+
const registry = useModalRegistryEntries();
|
|
731
|
+
let t2;
|
|
732
|
+
if ($[2] !== modalStack || $[3] !== registry) {
|
|
733
|
+
let t32;
|
|
734
|
+
if ($[5] !== registry) {
|
|
735
|
+
t32 = (entry) => Boolean(entry.component || registry.get(entry.modalType));
|
|
736
|
+
$[5] = registry;
|
|
737
|
+
$[6] = t32;
|
|
738
|
+
} else {
|
|
739
|
+
t32 = $[6];
|
|
740
|
+
}
|
|
741
|
+
t2 = modalStack.filter(t32);
|
|
742
|
+
$[2] = modalStack;
|
|
743
|
+
$[3] = registry;
|
|
744
|
+
$[4] = t2;
|
|
745
|
+
} else {
|
|
746
|
+
t2 = $[4];
|
|
747
|
+
}
|
|
748
|
+
const visibleModalStack = t2;
|
|
749
|
+
const topModalEntry = visibleModalStack[visibleModalStack.length - 1] || null;
|
|
750
|
+
const isModalVisible = Boolean(isOpen && topModalEntry);
|
|
751
|
+
const mounted = useSyncExternalStore(emptySubscribe, _temp3, _temp2);
|
|
752
|
+
const isMobileViewport = useMobileViewport();
|
|
753
|
+
const [isTopExitSettling, setIsTopExitSettling] = useState(false);
|
|
754
|
+
const previousTopModalIdRef = useRef(null);
|
|
755
|
+
let t3;
|
|
756
|
+
if ($[7] !== topModalEntry?.id || $[8] !== visibleModalStack) {
|
|
757
|
+
t3 = () => {
|
|
758
|
+
const currentTopModalId = topModalEntry?.id || null;
|
|
759
|
+
const previousTopModalId = previousTopModalIdRef.current;
|
|
760
|
+
const previousTopStillMounted = visibleModalStack.some((entry_0) => entry_0.id === previousTopModalId);
|
|
761
|
+
if (previousTopModalId && previousTopModalId !== currentTopModalId && !previousTopStillMounted) {
|
|
762
|
+
setIsTopExitSettling(true);
|
|
763
|
+
}
|
|
764
|
+
previousTopModalIdRef.current = currentTopModalId;
|
|
765
|
+
};
|
|
766
|
+
$[7] = topModalEntry?.id;
|
|
767
|
+
$[8] = visibleModalStack;
|
|
768
|
+
$[9] = t3;
|
|
769
|
+
} else {
|
|
770
|
+
t3 = $[9];
|
|
771
|
+
}
|
|
772
|
+
const t4 = topModalEntry?.id;
|
|
773
|
+
let t5;
|
|
774
|
+
if ($[10] !== t4 || $[11] !== visibleModalStack) {
|
|
775
|
+
t5 = [t4, visibleModalStack];
|
|
776
|
+
$[10] = t4;
|
|
777
|
+
$[11] = visibleModalStack;
|
|
778
|
+
$[12] = t5;
|
|
779
|
+
} else {
|
|
780
|
+
t5 = $[12];
|
|
781
|
+
}
|
|
782
|
+
useLayoutEffect(t3, t5);
|
|
783
|
+
useModalScrollLock(isModalVisible);
|
|
784
|
+
const t6 = useTheme(modalTheme);
|
|
785
|
+
let t7;
|
|
786
|
+
if ($[13] !== closeModal || $[14] !== isMobileViewport || $[15] !== isModalVisible || $[16] !== isTopExitSettling || $[17] !== modalStack || $[18] !== mounted || $[19] !== registry || $[20] !== t6 || $[21] !== topModalEntry || $[22] !== visibleModalStack) {
|
|
787
|
+
t7 = {
|
|
788
|
+
modalStack,
|
|
789
|
+
closeModal,
|
|
790
|
+
registry,
|
|
791
|
+
visibleModalStack,
|
|
792
|
+
topModalEntry,
|
|
793
|
+
isModalVisible,
|
|
794
|
+
mounted,
|
|
795
|
+
isMobileViewport,
|
|
796
|
+
isTopExitSettling,
|
|
797
|
+
setIsTopExitSettling,
|
|
798
|
+
theme: t6
|
|
799
|
+
};
|
|
800
|
+
$[13] = closeModal;
|
|
801
|
+
$[14] = isMobileViewport;
|
|
802
|
+
$[15] = isModalVisible;
|
|
803
|
+
$[16] = isTopExitSettling;
|
|
804
|
+
$[17] = modalStack;
|
|
805
|
+
$[18] = mounted;
|
|
806
|
+
$[19] = registry;
|
|
807
|
+
$[20] = t6;
|
|
808
|
+
$[21] = topModalEntry;
|
|
809
|
+
$[22] = visibleModalStack;
|
|
810
|
+
$[23] = t7;
|
|
811
|
+
} else {
|
|
812
|
+
t7 = $[23];
|
|
813
|
+
}
|
|
814
|
+
return t7;
|
|
815
|
+
}
|
|
816
|
+
function _temp2() {
|
|
817
|
+
return false;
|
|
818
|
+
}
|
|
819
|
+
function _temp3() {
|
|
820
|
+
return true;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export { INITIAL_MODAL_STATE, MODAL_BREAKPOINTS, MODAL_CHROME, MODAL_POSITIONS, ModalContext, ModalProvider, SMOOTH_SCROLL_LOCK_EVENT, createModalState, dispatchSmoothScrollLock, getFocusableElements, getModalIdentity, getModalLabel, getModalLayout, getModalPosition, getViewportIsMobile, hasHeightConstraint, isSidePosition, isVerticalEdgePosition, modalTheme, normalizePosition, resolveActivePosition, trapFocus, useModal, useModalActions, useModalContainerModel, useModalLayerModel, useModalModel, useModalRegistration, useModalRegistryEntries, useModalState };
|
|
824
|
+
//# sourceMappingURL=chunk-RTCJ35UC.js.map
|
|
825
|
+
//# sourceMappingURL=chunk-RTCJ35UC.js.map
|