@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
package/docs/core-engine.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
# Core Engine — `src/core`
|
|
2
2
|
|
|
3
|
-
> **Read this first if you need to:** know what lives in `src/core`, wire `CoreProvider`, restyle things through themes, use the event bus
|
|
3
|
+
> **Read this first if you need to:** know what lives in `src/core`, wire `CoreProvider`, restyle things through themes, use the event bus or motion retiming, or find a utility/hook before writing your own.
|
|
4
4
|
>
|
|
5
5
|
> **Location:** `src/core/` · **Key principle:** frozen upstream, zero imports from higher layers, zero coupling between sibling modules, pure composability. Module and feature specifics live in [modules/](./modules/README.md).
|
|
6
6
|
|
|
7
7
|
## 1. What is in the core
|
|
8
8
|
|
|
9
|
-
| Entry
|
|
10
|
-
|
|
|
11
|
-
| `@omerdlw/base-framework/utils`
|
|
12
|
-
| `@omerdlw/base-framework/
|
|
13
|
-
| `@omerdlw/base-framework/
|
|
14
|
-
| `@omerdlw/base-framework/events`
|
|
15
|
-
| `@omerdlw/base-framework/hooks`
|
|
16
|
-
| `@omerdlw/base-framework/theme`
|
|
17
|
-
| `@omerdlw/base-framework/
|
|
18
|
-
| `@omerdlw/base-framework/kernel`
|
|
19
|
-
| `@omerdlw/base-framework/error`
|
|
20
|
-
| `@omerdlw/base-framework/provider`
|
|
21
|
-
|
|
22
|
-
Server-safe entries (`utils`, `
|
|
9
|
+
| Entry | Path | Server-safe? | What it is |
|
|
10
|
+
| :--------------------------------- | :-------------------- | :----------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| `@omerdlw/base-framework/utils` | `foundation/utils/` | ✅ | Scheduling, stores, string/number/object helpers, motion retiming (`defineMotion`, `retime`), `report`, `toUserMessage`. Foundation layer: imports nothing from other layers. |
|
|
12
|
+
| `@omerdlw/base-framework/result` | `foundation/result/` | ✅ | `Result<T, E>`, `createSafeAction`. → [result.md](./modules/result.md) |
|
|
13
|
+
| `@omerdlw/base-framework/recipes` | `foundation/recipes/` | ✅ | Server-safe `defineUi`, recipes, `cn`, `createCn`, `ANATOMY`. → [design.md](./design.md) |
|
|
14
|
+
| `@omerdlw/base-framework/events` | `foundation/events/` | ✅ | `globalEvents` bus, `EVENT_TYPES`, `FrameworkEventMap`. |
|
|
15
|
+
| `@omerdlw/base-framework/hooks` | `react/hooks/` | client | Universal React hooks. |
|
|
16
|
+
| `@omerdlw/base-framework/theme` | `react/theme/` | client | Theme specs and provider (shared by core and modules). |
|
|
17
|
+
| `@omerdlw/base-framework/ui` | `react/ui/` | client | Styled components (`Button`, `Icon`, `Loader`, `Tooltip`, …) the modules render with too. → [design.md](./design.md) |
|
|
18
|
+
| `@omerdlw/base-framework/kernel` | `core/kernel/` | client | Module host, registry, `usePage`. → [kernel.md](./modules/kernel.md) |
|
|
19
|
+
| `@omerdlw/base-framework/error` | `core/error/` | client | Boundaries, reporter. → [error-boundary.md](./modules/error-boundary.md) |
|
|
20
|
+
| `@omerdlw/base-framework/provider` | `core/provider/` | client | `CoreProvider`: the one component that assembles everything. |
|
|
21
|
+
|
|
22
|
+
Server-safe entries (`utils`, `recipes`, `result`, `events`) must not import React or `next/*`, so route handlers, server actions and the Edge can use them.
|
|
23
23
|
|
|
24
24
|
## 2. `CoreProvider`
|
|
25
25
|
|
|
@@ -47,7 +47,7 @@ Server-safe entries (`utils`, `tokens`, `result`, `events`) must not import Reac
|
|
|
47
47
|
| `providers` | `readonly ProviderEntry[]` | Extra providers nested **inside** the module host (so they can use modules). A provider is a component or `[Component, props]`. |
|
|
48
48
|
| `overlays` | `ReactNode` | Rendered after `children`, inside the pipeline. |
|
|
49
49
|
| `slots` | `{ beforeContent?, afterContent?, overlays? }` | Positional content around `children`. |
|
|
50
|
-
| `tooltip` | `boolean \| { delayDuration?, skipDelayDuration? }` | Radix `TooltipProvider` (default on: 300 / 150 ms). `false` removes it (then `Tooltip` components need their own provider).
|
|
50
|
+
| `tooltip` | `boolean \| { delayDuration?, skipDelayDuration? }` | Radix `TooltipProvider` (default on: 300 / 150 ms). `false` removes it (then `Tooltip` components need their own provider). |
|
|
51
51
|
|
|
52
52
|
Resulting tree: `GlobalError` → `TooltipProvider` → `ModuleHost` (registry, page controller stack, module providers, backdrops, **children**, overlays; each module UI inside `ModuleError`) → your `providers` → `beforeContent`, `children`, `afterContent`, `overlays`, `slots.overlays`, `GlobalErrorListener`.
|
|
53
53
|
|
|
@@ -64,7 +64,7 @@ export const dockTheme = defineThemeSpec<DockThemeSlot>("dock");
|
|
|
64
64
|
// 2. The project supplies the design (src/config/dock.module.theme.ts)
|
|
65
65
|
export const dockThemeConfig = defineTheme(dockTheme, {
|
|
66
66
|
slots: { card: "rounded-[30px] bg-black/60 …", header: "…" }, // Tailwind classes — all slots required
|
|
67
|
-
styles: { card: { zIndex:
|
|
67
|
+
styles: { card: { zIndex: 110 } }, // optional inline CSS per slot
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
// 3. src/config/index.ts lists it in `themes`; src/app/providers.tsx passes it to <ThemeProvider themes={themes}>
|
|
@@ -80,7 +80,7 @@ const theme = useTheme(dockTheme); // → { slots, styles }
|
|
|
80
80
|
| `defineTheme(spec, { slots, styles? })` | Type-checked: every slot must be present in `slots`; `styles` is optional and partial. |
|
|
81
81
|
| `ThemeProvider({ themes })` | Builds an `id → config` map. |
|
|
82
82
|
| `useTheme(spec)` | Returns `{ slots, styles }` (empty `styles` default). **Throws** `Theme "<id>" is missing. Add its theme file to src/config/ and list it in src/config/index.ts.` when absent. |
|
|
83
|
-
| `@omerdlw/base-framework/theme`
|
|
83
|
+
| `@omerdlw/base-framework/theme` | Re-exports `ThemeProvider`, `defineTheme`, `defineThemeSpec` and `useTheme` for module authors. |
|
|
84
84
|
|
|
85
85
|
Theme files in this repo: `ambient`, `background`, `context-menu`, `controls`, `dock`, `loading`, `modal`, `notification` (module themes), and `error` (core theme). See [theming.md](./theming.md) for full customization details.
|
|
86
86
|
|
|
@@ -119,23 +119,22 @@ Who listens to what: the dock turns `APP_ERROR` / critical `API_ERROR` into stat
|
|
|
119
119
|
|
|
120
120
|
## 5. Hooks (`@omerdlw/base-framework/hooks`)
|
|
121
121
|
|
|
122
|
-
| Hook
|
|
123
|
-
|
|
|
124
|
-
| `useRequiredContext(ctx, hookName, providerName)`
|
|
125
|
-
| `useStore(store, selector?, isEqual?)`
|
|
126
|
-
| `useClickOutside(ref, cb)`
|
|
127
|
-
| `
|
|
128
|
-
| `
|
|
129
|
-
| `useIsFullscreenStateActive()` | Reactively subscribes to global fullscreen state presence (used by `dock` and `loading` to yield when active). |
|
|
122
|
+
| Hook | Signature / behaviour |
|
|
123
|
+
| :--------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
124
|
+
| `useRequiredContext(ctx, hookName, providerName)` | `use(ctx)` or throw `"<hook> must be used within <Provider>"`. |
|
|
125
|
+
| `useStore(store, selector?, isEqual?)` | Subscribe to an `ExternalStore` slice with `useSyncExternalStore`; re-renders only when `isEqual(prev, next)` is false (default `Object.is`). Pass `shallowEqual` for object slices. |
|
|
126
|
+
| `useClickOutside(ref, cb)` | `pointerdown` outside `ref.current` → `cb(event)`. |
|
|
127
|
+
| `useGlobalEvent(event \| event[] \| null, cb, { debounceMs?, throttleMs? })` | Subscribes to one or multiple global events for the component lifetime with optional debounce or throttle timing. Fresh callback reference maintained without effect restarts. |
|
|
128
|
+
| `useIsFullscreenStateActive()` | Reactively subscribes to global fullscreen state presence (used by `dock` and `loading` to yield when active). |
|
|
130
129
|
|
|
131
130
|
## 6. Utilities (`@omerdlw/base-framework/utils`)
|
|
132
131
|
|
|
133
132
|
| Group | Exports |
|
|
134
133
|
| :------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
135
134
|
| Classes | `cn(...)` — `clsx` + `tailwind-merge` (later classes win). |
|
|
136
|
-
| DOM / env | `isBrowser`, `acquireGlobalScrollLock()` (ref-counted; returns a release function that restores previous body and html overflow styles).
|
|
137
|
-
| Strings | `trimToNull`, `stripTrailingSlash`, `normalizePath` (`""` for empty, `"/"` kept), `isImageIconSource` (http(s) / `/` / `data:image/`).
|
|
138
|
-
| Numbers | `clamp(val, min, max)`, `toFiniteNumber(value, fallback = 0)`.
|
|
135
|
+
| DOM / env | `isBrowser`, `acquireGlobalScrollLock()` (ref-counted; returns a release function that restores previous body and html overflow styles). |
|
|
136
|
+
| Strings | `trimToNull`, `stripTrailingSlash`, `normalizePath` (`""` for empty, `"/"` kept), `isImageIconSource` (http(s) / `/` / `data:image/`). |
|
|
137
|
+
| Numbers | `clamp(val, min, max)`, `toFiniteNumber(value, fallback = 0)`. |
|
|
139
138
|
| Objects | `isObject`, `isPlainObject`, `shallowEqual`, `toArray`. |
|
|
140
139
|
| Timing | `debounce`, `throttle` (both return a function with `.cancel()`). |
|
|
141
140
|
| Reporting | `report(scope, error, level?)`, `setReportSink(fn)` — replaces `console.*` ([error-boundary.md](./modules/error-boundary.md#7-user-facing-messages-and-report)). |
|
|
@@ -144,31 +143,16 @@ Who listens to what: the dock turns `APP_ERROR` / critical `API_ERROR` into stat
|
|
|
144
143
|
| Scheduling | `createScheduler(options?)` → `{ schedule(cb, delayMs, { label }), scheduleFrame(cb, { label }), cancel(id), cancelAll(), getSnapshot(), subscribe, now }`. Timers and frames are tracked (`pendingCount`, labels), and **inject-able** (`now`, `requestFrame`, `scheduleTimer`, …) so tests run deterministically. The dock uses it instead of ad-hoc `setTimeout`/intervals. |
|
|
145
144
|
| Types | `ExternalStore`, `CreateStoreOptions`, `CoreSchedulerOptions`, `ScheduleHandle`, `ScheduledTaskSnapshot`, `SchedulerSnapshot`, `ReportLevel`, `ReportSink`, `UserMessageOptions`. |
|
|
146
145
|
|
|
147
|
-
## 7. Motion
|
|
146
|
+
## 7. Motion mechanics (`@omerdlw/base-framework/utils`)
|
|
148
147
|
|
|
149
|
-
|
|
148
|
+
The framework ships **no design**: no motion values, no z-index ladder, no CSS. First-party modules play what the app's theme gives them ([theming §5](./theming.md#5-motion-your-app-owns-every-animation)) and take their stacking from the theme's `styles` (e.g. `styles: { layer: { zIndex: 140 } }`). What stays is mechanics:
|
|
150
149
|
|
|
151
|
-
- **App motion (`defineMotion`).** `defineMotion({ tempo, reducedMotion, durations, easings, springs })` returns the app's frozen motion
|
|
152
|
-
- **
|
|
153
|
-
- **Reduced motion
|
|
154
|
-
- **
|
|
155
|
-
- **Module motion files** (`modules/*/motion.ts`) hold mechanics only: the module's `use*Motion()` hook (the app's motion, retimed) and helpers that pick from it by state. The values live in the app's theme files; the framework's originals are in `templates/motion/`.
|
|
150
|
+
- **App motion (`defineMotion`).** `defineMotion({ tempo, reducedMotion, still, durations, easings, springs })` returns the app's frozen motion for `<ThemeProvider motion>`. `retime(tree, { tempo, reduced, still })` stretches every transition in a motion tree by `tempo` (springs keep their damping ratio) or replaces it with `still` (instant when none is given). `retimeModuleMotion` does the same and also treats a top-level `timings` table as seconds.
|
|
151
|
+
- **CSS helpers.** `cssTransition(property, tween)` writes a CSS `transition` value; `cssEasing(ease)` writes the easing alone; `gpuTransform(y, scale, x)` builds the canonical `translate3d(...) scale(...)` string. Animate `transform` and `opacity`, never layout properties.
|
|
152
|
+
- **Reduced motion.** When the app's policy is in effect, every module transition becomes `still`, and `CoreProvider` wraps each module backdrop and overlay in `ModuleMotionConfig` (`MotionConfig` with the app's policy).
|
|
153
|
+
- **Module motion files** (`modules/*/motion.ts`) hold mechanics only: the module's `use*Motion()` hook (the app's motion, retimed) and helpers that pick from it by state.
|
|
156
154
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
Global layers, bottom to top: `BACKGROUND` 0 · `DOCK_BACKDROP` 100 · `DOCK` 110 · `NOTIFICATION` 120 · `MODAL_BACKDROP` 130 · `MODAL` 140 · `SELECT` 150 · `LOADING` 160 · `ERROR_OVERLAY` 170 · `CONTEXT_MENU_BACKDROP` 180 · `CONTEXT_MENU` 190 · `TOOLTIP` 200.
|
|
160
|
-
|
|
161
|
-
Local layers (inside their own stacking context, ≤ 30): `UI_ELEMENT` 10, `DOCK_CARD_BACKGROUND` 0, `DOCK_CARD_CONTENT` 10, `DOCK_CARD_STACK_BASE` 10 (card `i` uses `BASE − i`), `DOCK_CARD_BADGE` 20, `DOCK_CARD_MEDIA` 30, `DOCK_BREADCRUMBS` 10, `DOCK_SURFACE_CONTROL` 10, `DOCK_SURFACE_POPOVER` 30, `DOCK_SURFACE_CENTER` 0, `MODAL_FRAME` 1, `MODAL_STICKY_HEADER` 10.
|
|
162
|
-
|
|
163
|
-
Only the **order** of global layers matters, but each must stay above the local range (and above Tailwind's allowed `z-0/10/20`), otherwise page content covers it. Stacked modals share `Z_INDEX.MODAL` and stack by DOM order. A test asserts `SELECT` and `CONTEXT_MENU` exist and `DROPDOWN` / `DEBUG_OVERLAY` do not.
|
|
164
|
-
|
|
165
|
-
### Shared class constants
|
|
166
|
-
|
|
167
|
-
`SURFACE_CLASSES` (`surface`, `title`, `description`, `icon`) and `ACTION_TONE_CLASS` give feature surfaces the same glass look as the dock without importing it.
|
|
168
|
-
|
|
169
|
-
### Global CSS (`src/app/globals.css`)
|
|
170
|
-
|
|
171
|
-
Defines the color variables (`--white`, `--black`, `--primary`) that [ambient](./modules/ambient.md) rewrites, Tailwind v4 `@theme` color bindings (`bg-black`, `text-primary`), the motion token classes (`duration-*`, `ease-*`), and utilities `center` (flex-center) and `skeleton-block` (pulse).
|
|
155
|
+
The only numbers left in module code are relative stacking inside a module's own context (a modal's frame above its backdrop, dock card `i` below card `i − 1`).
|
|
172
156
|
|
|
173
157
|
## 8. Module overview
|
|
174
158
|
|
|
@@ -186,7 +170,7 @@ Defines the color variables (`--white`, `--black`, `--primary`) that [ambient](.
|
|
|
186
170
|
|
|
187
171
|
## 9. Gotchas
|
|
188
172
|
|
|
189
|
-
- Importing `@omerdlw/base-framework/hooks` or `@omerdlw/base-framework/
|
|
173
|
+
- Importing `@omerdlw/base-framework/hooks` or `@omerdlw/base-framework/ui` from a server-safe entry breaks the lint boundary and the Edge bundle.
|
|
190
174
|
- `createStore` snapshots are frozen in development: mutate through `publish`/`setState`, never in place.
|
|
191
175
|
- `useStore` without a selector re-renders on every change; select a slice.
|
|
192
176
|
- A theme file that is not listed in `src/config/index.ts` crashes the first component that uses it (by design, with a clear message).
|
package/docs/custom-modules.md
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
## 1. Overview: The Microkernel Extensibility Model
|
|
8
8
|
|
|
9
|
-
The core strength of `@omerdlw/base-framework` is its **inversion-of-control microkernel**. The kernel knows
|
|
9
|
+
The core strength of `@omerdlw/base-framework` is its **inversion-of-control microkernel**. The kernel knows _no module by name_. All 9 built-in modules (`dock`, `modal`, `notification`, etc.) are authored using the exact same public API available to you: `defineModule()`.
|
|
10
10
|
|
|
11
11
|
When you register a module in `<CoreProvider modules={[myModule, ...]}>`:
|
|
12
|
+
|
|
12
13
|
1. The kernel validates uniqueness of the module's `id`.
|
|
13
14
|
2. The kernel topologically sorts dependencies declared in `uses: ["peerModule"]` so that providers are nested in guaranteed dependency order.
|
|
14
15
|
3. The kernel mounts the module's `<Provider>`, renders its `<Backdrop>` behind `{children}`, and renders its `<Overlay>` in an isolated error boundary above `{children}`.
|
|
@@ -51,7 +52,7 @@ Create `src/modules/tour/types.ts`:
|
|
|
51
52
|
|
|
52
53
|
```ts
|
|
53
54
|
export interface TourStep {
|
|
54
|
-
target: string;
|
|
55
|
+
target: string; // CSS selector or data attribute
|
|
55
56
|
title: string;
|
|
56
57
|
description: string;
|
|
57
58
|
}
|
|
@@ -73,7 +74,8 @@ Create `src/modules/tour/constants.ts`:
|
|
|
73
74
|
```ts
|
|
74
75
|
import { defineThemeSpec } from "@omerdlw/base-framework/theme";
|
|
75
76
|
|
|
76
|
-
export type TourThemeSlot =
|
|
77
|
+
export type TourThemeSlot =
|
|
78
|
+
"card" | "title" | "description" | "nextButton" | "skipButton";
|
|
77
79
|
export const tourTheme = defineThemeSpec<TourThemeSlot>("tour");
|
|
78
80
|
```
|
|
79
81
|
|
|
@@ -105,17 +107,23 @@ export function TourProvider({ children }: { children?: React.ReactNode }) {
|
|
|
105
107
|
const [index, setIndex] = useState(0);
|
|
106
108
|
const [isActive, setIsActive] = useState(false);
|
|
107
109
|
|
|
108
|
-
const value = useMemo<TourContextValue>(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
const value = useMemo<TourContextValue>(
|
|
111
|
+
() => ({
|
|
112
|
+
currentStepIndex: index,
|
|
113
|
+
currentStep: isActive ? (steps[index] ?? null) : null,
|
|
114
|
+
isActive,
|
|
115
|
+
start: () => {
|
|
116
|
+
setIndex(0);
|
|
117
|
+
setIsActive(true);
|
|
118
|
+
},
|
|
119
|
+
next: () => {
|
|
120
|
+
if (index + 1 < steps.length) setIndex(index + 1);
|
|
121
|
+
else setIsActive(false);
|
|
122
|
+
},
|
|
123
|
+
stop: () => setIsActive(false),
|
|
124
|
+
}),
|
|
125
|
+
[index, isActive, steps],
|
|
126
|
+
);
|
|
119
127
|
|
|
120
128
|
return <TourContext.Provider value={value}>{children}</TourContext.Provider>;
|
|
121
129
|
}
|
|
@@ -138,7 +146,7 @@ Create `src/modules/tour/overlay.tsx`:
|
|
|
138
146
|
|
|
139
147
|
import React from "react";
|
|
140
148
|
import { useTheme } from "@omerdlw/base-framework/theme";
|
|
141
|
-
import { Button } from "@omerdlw/base-framework/
|
|
149
|
+
import { Button } from "@omerdlw/base-framework/ui";
|
|
142
150
|
import { useTour } from "./context";
|
|
143
151
|
import { tourTheme } from "./constants";
|
|
144
152
|
|
|
@@ -154,8 +162,12 @@ export function TourOverlay() {
|
|
|
154
162
|
<h3 className={theme.slots.title}>{currentStep.title}</h3>
|
|
155
163
|
<p className={theme.slots.description}>{currentStep.description}</p>
|
|
156
164
|
<div className="mt-4 flex gap-2">
|
|
157
|
-
<Button onClick={stop} className={theme.slots.skipButton}>
|
|
158
|
-
|
|
165
|
+
<Button onClick={stop} className={theme.slots.skipButton}>
|
|
166
|
+
Skip
|
|
167
|
+
</Button>
|
|
168
|
+
<Button onClick={next} className={theme.slots.nextButton}>
|
|
169
|
+
Next
|
|
170
|
+
</Button>
|
|
159
171
|
</div>
|
|
160
172
|
</div>
|
|
161
173
|
</div>
|
|
@@ -177,12 +189,7 @@ import { TourProvider, useTour } from "./context";
|
|
|
177
189
|
import { TourOverlay } from "./overlay";
|
|
178
190
|
import type { TourConfig, TourPageApi } from "./types";
|
|
179
191
|
|
|
180
|
-
export const tourModule = defineModule<
|
|
181
|
-
"tour",
|
|
182
|
-
null,
|
|
183
|
-
TourConfig,
|
|
184
|
-
TourPageApi
|
|
185
|
-
>({
|
|
192
|
+
export const tourModule = defineModule<"tour", null, TourConfig, TourPageApi>({
|
|
186
193
|
id: "tour",
|
|
187
194
|
Provider: TourProvider,
|
|
188
195
|
Overlay: TourOverlay,
|
|
@@ -222,14 +229,12 @@ In `src/app/providers.tsx`:
|
|
|
222
229
|
|
|
223
230
|
```tsx
|
|
224
231
|
import { CoreProvider } from "@omerdlw/base-framework/provider";
|
|
225
|
-
import { dockModule } from "@omerdlw/base-framework/
|
|
232
|
+
import { dockModule } from "@omerdlw/base-framework/dock";
|
|
226
233
|
import { tourModule } from "@/modules/tour";
|
|
227
234
|
|
|
228
235
|
export function Providers({ children }: { children: React.ReactNode }) {
|
|
229
236
|
return (
|
|
230
|
-
<CoreProvider modules={[dockModule, tourModule]}>
|
|
231
|
-
{children}
|
|
232
|
-
</CoreProvider>
|
|
237
|
+
<CoreProvider modules={[dockModule, tourModule]}>{children}</CoreProvider>
|
|
233
238
|
);
|
|
234
239
|
}
|
|
235
240
|
```
|
|
@@ -248,17 +253,23 @@ export default function DashboardPage() {
|
|
|
248
253
|
title: "Dashboard",
|
|
249
254
|
tour: {
|
|
250
255
|
steps: [
|
|
251
|
-
{
|
|
252
|
-
|
|
256
|
+
{
|
|
257
|
+
target: "#metrics",
|
|
258
|
+
title: "Key Metrics",
|
|
259
|
+
description: "Monitor your KPIs here in real time.",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
target: "#export",
|
|
263
|
+
title: "Export Data",
|
|
264
|
+
description: "Download CSV reports with one click.",
|
|
265
|
+
},
|
|
253
266
|
],
|
|
254
267
|
},
|
|
255
268
|
});
|
|
256
269
|
|
|
257
270
|
return (
|
|
258
271
|
<div>
|
|
259
|
-
<button onClick={() => page.modules.tour?.start()}>
|
|
260
|
-
Take a Tour
|
|
261
|
-
</button>
|
|
272
|
+
<button onClick={() => page.modules.tour?.start()}>Take a Tour</button>
|
|
262
273
|
</div>
|
|
263
274
|
);
|
|
264
275
|
}
|
package/docs/design.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# Design — `@omerdlw/base-framework/ui`
|
|
2
|
+
|
|
3
|
+
> **Read this first if you need to:** build an interface from the framework's components (Button, Input, Select, Switch, Checkbox, SegmentedControl, Carousel, Tooltip, Image, Avatar, Loader, Skeleton, indicators), give them your product's look, add your own variants, or understand why the framework ships no styles.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. The idea
|
|
8
|
+
|
|
9
|
+
The framework holds **no design**. No CSS file, no colour or size tokens, no motion values, no icon set. The modules (`dock`, `modal`, …) already work this way: they own mechanics and take every class and every timing from the app's theme. The components follow the same rule.
|
|
10
|
+
|
|
11
|
+
- Each component is **behaviour plus an anatomy**: the parts it renders (`select.trigger`, `select.menu`, …) and the states it sets on them (`checked`, `active`, `visible`, `loading`, …). Every part starts as an empty recipe.
|
|
12
|
+
- The app gives the parts their look in **one file** with `defineUi(...)`: a base, named variants, compound variants and defaults for each part (`cva`-shaped). It also gives the motion and the icons.
|
|
13
|
+
- The result is a plain, **server-safe object**. A Server Component calls a part (`ui.parts.button.root({ intent: "primary" })`); `<UiProvider ui={ui}>` hands it to the components.
|
|
14
|
+
- A one-line **module augmentation** types the components from the app's recipes: a variant the app wrote type-checks; one nobody wrote does not.
|
|
15
|
+
|
|
16
|
+
Without a ui, every component renders with no class at all and no animation. That is the contract, and a test holds it.
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
@omerdlw/base-framework/recipes defineUi, recipes, createCn, ANATOMY (server-safe)
|
|
20
|
+
@omerdlw/base-framework/ui UiProvider + components ("use client")
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`design` sits beside `hooks` in the layer hierarchy: it imports `hooks`, `theme`, `kernel` and `utils`, and never imports a module. The modules render with its `Button`, `Icon`, `Loader` and `Tooltip`, so those pick up the app's look too.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Setup
|
|
28
|
+
|
|
29
|
+
### 2.1 The ui
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
// src/design/ui.ts — no "use client": Server Components import it too
|
|
33
|
+
import { defineUi } from "@omerdlw/base-framework/recipes";
|
|
34
|
+
|
|
35
|
+
export const ui = defineUi({
|
|
36
|
+
parts: {
|
|
37
|
+
button: {
|
|
38
|
+
root: {
|
|
39
|
+
base: "inline-flex items-center justify-center gap-2 font-medium",
|
|
40
|
+
variants: {
|
|
41
|
+
intent: {
|
|
42
|
+
primary: "bg-primary text-on-primary",
|
|
43
|
+
ghost: "bg-transparent",
|
|
44
|
+
},
|
|
45
|
+
size: { sm: "h-8 px-3 text-sm", md: "h-10 px-4" },
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: { size: "md" },
|
|
48
|
+
},
|
|
49
|
+
busyLabel: { base: "invisible col-start-1 row-start-1" },
|
|
50
|
+
busySpinner: { base: "col-start-1 row-start-1 grid place-items-center" },
|
|
51
|
+
},
|
|
52
|
+
// …every part you use
|
|
53
|
+
},
|
|
54
|
+
icons: {
|
|
55
|
+
check: "lucide:check",
|
|
56
|
+
chevron: "lucide:chevron-down",
|
|
57
|
+
spinner: "lucide:loader",
|
|
58
|
+
},
|
|
59
|
+
motion: { follow: { type: "spring", stiffness: 500, damping: 40 } },
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
declare module "@omerdlw/base-framework/recipes" {
|
|
63
|
+
interface UiRegister {
|
|
64
|
+
ui: typeof ui;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
A part takes a recipe (`{ base, variants, compoundVariants, defaultVariants }`); `reset: true` drops what the anatomy declared. Your CSS (colours, type scale, utilities) lives in your app; the framework neither ships nor reads it.
|
|
70
|
+
|
|
71
|
+
### 2.2 The provider
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
// app/providers.tsx ("use client")
|
|
75
|
+
import { TooltipProvider, UiProvider } from "@omerdlw/base-framework/ui";
|
|
76
|
+
import { ui } from "@/design/ui";
|
|
77
|
+
|
|
78
|
+
<UiProvider ui={ui}>
|
|
79
|
+
<TooltipProvider delayDuration={300}>{children}</TooltipProvider>
|
|
80
|
+
</UiProvider>;
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
A nested `UiProvider` restyles a subtree. Mount `TooltipProvider` from the library (it binds the framework's own Radix copy, which the dock's tooltips use too).
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 3. What the app gives
|
|
88
|
+
|
|
89
|
+
### 3.1 Parts
|
|
90
|
+
|
|
91
|
+
| Level | Where | Reach |
|
|
92
|
+
| :----------- | :------------------------------------------------ | :------------------- |
|
|
93
|
+
| **Recipes** | `defineUi({ parts })` | one part, everywhere |
|
|
94
|
+
| **Subtree** | a nested `<UiProvider ui={otherUi}>` | one part, below it |
|
|
95
|
+
| **Instance** | `className` (root) and `classNames={{ part: … }}` | one element |
|
|
96
|
+
|
|
97
|
+
A variant you add arrives as a prop the component never named; it styles the part and never reaches the DOM. A component of your own can live in the same system: `defineUi({ parts: { badge: { root: { … } } } })` and call `ui.parts.badge.root(…)`.
|
|
98
|
+
|
|
99
|
+
### 3.2 Motion
|
|
100
|
+
|
|
101
|
+
```ts
|
|
102
|
+
defineUi({
|
|
103
|
+
motion: {
|
|
104
|
+
follow: { type: "spring", stiffness: 500, damping: 40 }, // segmented pill, highlight
|
|
105
|
+
menu: {
|
|
106
|
+
// select menu; custom = 1 or -1 (opens down / up)
|
|
107
|
+
initial: (rise) => ({ opacity: 0, y: rise * -8 }),
|
|
108
|
+
animate: { opacity: 1, y: 0, transition: { duration: 0.3 } },
|
|
109
|
+
exit: (rise) => ({
|
|
110
|
+
opacity: 0,
|
|
111
|
+
y: rise * -6,
|
|
112
|
+
transition: { duration: 0.15 },
|
|
113
|
+
}),
|
|
114
|
+
},
|
|
115
|
+
option: {
|
|
116
|
+
// each option; custom = its index
|
|
117
|
+
initial: { opacity: 0 },
|
|
118
|
+
animate: (index) => ({ opacity: 1, transition: { delay: 0.02 * index } }),
|
|
119
|
+
},
|
|
120
|
+
glide: { duration: 0.8, ease: [0.5, 0, 0.1, 1] }, // carousel arrows
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
`menu` and `option` are `motion/react` variants (`initial`, `animate`, `exit`). Leave a key out and that part does not animate: the pill and the highlight jump, the menu appears, the carousel scrolls in one step. Every value is retimed by `ThemeProvider motion`'s tempo and replaced by its `still` transition for reduced motion.
|
|
126
|
+
|
|
127
|
+
### 3.3 Icons and labels
|
|
128
|
+
|
|
129
|
+
`icons` names the Iconify glyphs the components draw: `check`, `selected`, `chevron`, `previous`, `next`, `spinner`. An icon you leave out is not drawn. Icons have no size of their own: give the part a size (`size-4 text-[length:16px]`), or pass `size` to `Icon`.
|
|
130
|
+
|
|
131
|
+
`labels` (`loading`, `placeholder`, `empty`, `previous`, `next`) are text for screen readers and empty states. They default to English so a component is never silent; override them for your language.
|
|
132
|
+
|
|
133
|
+
### 3.4 Your class names in `cn`
|
|
134
|
+
|
|
135
|
+
`cn` is `tailwind-merge`, knowing only Tailwind's own classes. Teach it your names so a later class of the same family wins:
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
defineUi({
|
|
139
|
+
merge: {
|
|
140
|
+
theme: { radius: ["card", "tile"], spacing: ["control-md"] },
|
|
141
|
+
classGroups: {
|
|
142
|
+
"font-size": ["type-body", "type-meta"],
|
|
143
|
+
duration: ["duration-move"],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
ui.cn("type-body", "type-meta"); // "type-meta"
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`theme` extends Tailwind's scales; `classGroups` lists whole class names per group.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 4. Components
|
|
155
|
+
|
|
156
|
+
Every part below starts empty. "States" are the variants the component sets itself; give them classes, or leave them blank.
|
|
157
|
+
|
|
158
|
+
| Component | Parts (`classNames` keys) | States | Notes |
|
|
159
|
+
| :------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
160
|
+
| `Button` | `root`, `bare`, `busy`, `busyLabel`, `busySpinner` | — | With an `intent` prop it draws `root`, without one `bare`. `loading` stacks `busyLabel` and `busySpinner` inside `busy`. Pass `href` to render a `next/link` with the same classes. |
|
|
161
|
+
| `Input`, `Textarea` | `field`, `area` | — | `Textarea` draws `field` plus `area`. |
|
|
162
|
+
| `Switch` | `track`, `thumb` | — | `data-state="checked"/"unchecked"` on both; `role="switch"`, `onCheckedChange`. |
|
|
163
|
+
| `Checkbox`, `CheckboxIndicator` | `root`, `box`, `glyph` | `checked` (box, glyph) | `pending` plays the loader. |
|
|
164
|
+
| `SegmentedControl` | `root`, `segment`, `pill`, `chosen`, `icon`, `count` | `active` (segment) | Tabs with a sliding pill; `chosen` paints the active tab until the pill is measured. |
|
|
165
|
+
| `Select` | `root`, `trigger`, `value`, `label`, `placeholder`, `chevron`, `menu`, `option`, `highlight`, `optionBody`, `text`, `description`, `icon`, `check`, `empty` | — | Listbox: arrows, Enter/Space, Escape; flips up; anchor positioning where supported; scroll lock while open. `offset` and `collisionPadding` (px, default 0); the room left in the viewport is `--select-available-height` on the menu. `floatingProps` for the portal. |
|
|
166
|
+
| `Carousel` | `root`, `track`, `slide`, `arrow`, `icon` | `side`, `visible` (arrow) | Touch, wheel, mouse drag; arrow glide; `onNearEnd`. `trackProps` for data hooks; inject `glide`, `renderSlide`, `ready`, `frameSelector` to drive it from your own engine. |
|
|
167
|
+
| `Tooltip`, `TooltipProvider` | `content`, `label` | — | `sideOffset` and `collisionPadding` default to Radix's; `contentProps` for data hooks, `triggerRef`. Radix copies the content's `z-index` to its portal. |
|
|
168
|
+
| `Image` | `frame`, `picture`, `fallback` | `layout` (frame, picture), `loading` (frame) | `loading` is true until the picture decodes (paused off screen); CORS retry; fallback. |
|
|
169
|
+
| `Avatar` | `root`, `image`, `initials` | — | `size` sets width and height inline; without it the root's classes size it. |
|
|
170
|
+
| `Loader`, `Spinner` | `root`, `label`, `overlay`, `dots`, `dot`, `spinner`, `icon` | `over` (root) | Three `dot`s inside `dots`; `size` sets `--loader-size` on `dots`. Over content, `label` keeps the width and `overlay` holds the dots. |
|
|
171
|
+
| `SkeletonBlock`, `SkeletonLines` | `block`, `lines`, `line`, `bar` | — | `SkeletonLines` draws one `bar` per width inside a `line`. |
|
|
172
|
+
| `SlidingPill`, `useSlidingPill`, `SlidingHighlight`, `HighlightGroup`, `useHighlight` | `highlight.fill` | — | Positioned inline (absolute, no pointer events); the `follow` motion moves them. |
|
|
173
|
+
| `Icon` | — | — | Iconify. `size` in px, or let its class size it (`1em`). |
|
|
174
|
+
|
|
175
|
+
Pure helpers for your own racks: `glideTarget`, `rackClip`, `readScroll`, `useDragScroll`.
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## 5. Rules
|
|
180
|
+
|
|
181
|
+
1. **No design in the framework.** A class, a colour, a duration or an icon name in `src/` is a bug; it belongs in the app's ui or theme.
|
|
182
|
+
2. **Write classes literally.** Tailwind reads source files; a class built at runtime is never generated.
|
|
183
|
+
3. **Style in `defineUi`, not at the call site.** `className` is for layout (`w-full`, `mt-4`), not for redrawing a part on every use.
|
|
184
|
+
4. **One ui per app.** Derive variants of it with `defineUi({ ...ui.config, … })` for a subtree.
|
|
185
|
+
5. **Server Components call parts, client components render components.** `ui.parts.*` is safe anywhere; components are `"use client"`.
|