@omerdlw/base-framework 3.0.0 → 3.1.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/dist/atoms/icon.d.ts.map +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/spinner.d.ts.map +1 -1
- package/dist/atoms/tooltip.d.ts.map +1 -1
- package/dist/{chunk-7HQMXTNP.js → chunk-6UFMD6TK.js} +5 -5
- package/dist/{chunk-7HQMXTNP.js.map → chunk-6UFMD6TK.js.map} +1 -1
- package/dist/{chunk-CGHZSSFR.js → chunk-AA2TWJQI.js} +35 -15
- package/dist/chunk-AA2TWJQI.js.map +1 -0
- package/dist/{chunk-CYU6SGAL.js → chunk-ACLLDU3J.js} +7 -7
- package/dist/chunk-ACLLDU3J.js.map +1 -0
- package/dist/{chunk-TG6NMHXI.js → chunk-E6ANX5YP.js} +89 -34
- package/dist/chunk-E6ANX5YP.js.map +1 -0
- package/dist/{chunk-R2YGFJDJ.js → chunk-GDCVEINL.js} +4 -4
- package/dist/chunk-GDCVEINL.js.map +1 -0
- package/dist/chunk-GN666KV5.js +28 -0
- package/dist/{chunk-M57SNWXK.js.map → chunk-GN666KV5.js.map} +1 -1
- package/dist/{chunk-TV3WEF5G.js → chunk-HCSDQEFB.js} +80 -19
- package/dist/chunk-HCSDQEFB.js.map +1 -0
- package/dist/{chunk-GF7TUX5I.js → chunk-HMEWYAWU.js} +3 -3
- package/dist/{chunk-GF7TUX5I.js.map → chunk-HMEWYAWU.js.map} +1 -1
- package/dist/{chunk-3BUP64Q6.js → chunk-I3IZUBBU.js} +3 -11
- package/dist/chunk-I3IZUBBU.js.map +1 -0
- package/dist/{chunk-RFZQWLC5.js → chunk-JCZUCKI3.js} +2 -2
- package/dist/chunk-JCZUCKI3.js.map +1 -0
- package/dist/{chunk-FIMPHODX.js → chunk-MAGYFVKH.js} +6 -6
- package/dist/chunk-MAGYFVKH.js.map +1 -0
- package/dist/{chunk-SYAVGTOX.js → chunk-NEBGCFE3.js} +5 -5
- package/dist/chunk-NEBGCFE3.js.map +1 -0
- package/dist/{chunk-66EYJBIP.js → chunk-NK2DQB3G.js} +14 -8
- package/dist/chunk-NK2DQB3G.js.map +1 -0
- package/dist/{chunk-4GMQKD6F.js → chunk-QM2P6TIU.js} +5 -5
- package/dist/{chunk-4GMQKD6F.js.map → chunk-QM2P6TIU.js.map} +1 -1
- package/dist/{chunk-HHWRTQKQ.js → chunk-RFP2DJAB.js} +76 -28
- package/dist/chunk-RFP2DJAB.js.map +1 -0
- package/dist/{chunk-HLL5EHXC.js → chunk-SQ7XZMCN.js} +3 -7
- package/dist/chunk-SQ7XZMCN.js.map +1 -0
- package/dist/{chunk-7TAVYJ3A.js → chunk-TMTMQNEQ.js} +5 -4
- package/dist/chunk-TMTMQNEQ.js.map +1 -0
- package/dist/{chunk-JIXBFFRD.js → chunk-VDNE3A7X.js} +127 -144
- package/dist/chunk-VDNE3A7X.js.map +1 -0
- package/dist/{chunk-RIOKLMYM.js → chunk-XATRMFGU.js} +7 -13
- package/dist/chunk-XATRMFGU.js.map +1 -0
- package/dist/{chunk-JELG4JLT.js → chunk-ZAP2YHZG.js} +5 -5
- package/dist/{chunk-JELG4JLT.js.map → chunk-ZAP2YHZG.js.map} +1 -1
- package/dist/{chunk-AQ4BNXA2.js → chunk-ZH5FUYPG.js} +7 -7
- package/dist/chunk-ZH5FUYPG.js.map +1 -0
- package/dist/{chunk-K676GL7Z.js → chunk-ZKM4RETZ.js} +5 -5
- package/dist/chunk-ZKM4RETZ.js.map +1 -0
- package/dist/error/index.js +5 -5
- package/dist/error/reporter.d.ts.map +1 -1
- package/dist/events.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-scroll-lock.d.ts +3 -0
- package/dist/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/index.js +19 -19
- package/dist/kernel/handlers.d.ts.map +1 -1
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/installed.d.ts.map +1 -1
- package/dist/kernel/provider.d.ts.map +1 -1
- package/dist/kernel/store.d.ts.map +1 -1
- package/dist/modules/ambient/analyze.d.ts +1 -33
- package/dist/modules/ambient/analyze.d.ts.map +1 -1
- package/dist/modules/ambient/dom.d.ts +0 -12
- package/dist/modules/ambient/dom.d.ts.map +1 -1
- package/dist/modules/ambient/extractor.d.ts +0 -8
- package/dist/modules/ambient/extractor.d.ts.map +1 -1
- 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/index.js +7 -7
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/oklab.d.ts +0 -19
- 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 +0 -11
- package/dist/modules/ambient/quantize.d.ts.map +1 -1
- package/dist/modules/ambient/server/address.d.ts +0 -3
- package/dist/modules/ambient/server/address.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +0 -27
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.js +21 -17
- package/dist/modules/ambient/server/index.js.map +1 -1
- package/dist/modules/ambient/settings.d.ts +0 -6
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/types.d.ts +0 -37
- package/dist/modules/ambient/types.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts +0 -1
- package/dist/modules/ambient/worker/index.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.js +11 -3
- package/dist/modules/ambient/worker/index.js.map +1 -1
- package/dist/modules/background/context.d.ts.map +1 -1
- package/dist/modules/background/hooks.d.ts.map +1 -1
- package/dist/modules/background/index.d.ts +1 -1
- package/dist/modules/background/index.d.ts.map +1 -1
- package/dist/modules/background/index.js +6 -6
- package/dist/modules/background/module.d.ts.map +1 -1
- package/dist/modules/background/motion.d.ts.map +1 -1
- package/dist/modules/background/overlay.d.ts.map +1 -1
- package/dist/modules/background/state.d.ts.map +1 -1
- package/dist/modules/background/types.d.ts +0 -7
- package/dist/modules/background/types.d.ts.map +1 -1
- package/dist/modules/background/visual.d.ts.map +1 -1
- package/dist/modules/background/youtube/player.d.ts.map +1 -1
- package/dist/modules/context-menu/context.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/index.js +10 -10
- package/dist/modules/context-menu/module.d.ts.map +1 -1
- package/dist/modules/context-menu/types.d.ts +0 -6
- package/dist/modules/context-menu/types.d.ts.map +1 -1
- package/dist/modules/controls/hooks.d.ts.map +1 -1
- package/dist/modules/controls/index.js +4 -4
- package/dist/modules/controls/module.d.ts.map +1 -1
- package/dist/modules/dock/cards.d.ts +3 -3
- package/dist/modules/dock/cards.d.ts.map +1 -1
- package/dist/modules/dock/constants.d.ts +0 -15
- package/dist/modules/dock/constants.d.ts.map +1 -1
- package/dist/modules/dock/context.d.ts.map +1 -1
- package/dist/modules/dock/dom.d.ts.map +1 -1
- package/dist/modules/dock/helpers.d.ts.map +1 -1
- package/dist/modules/dock/index.js +9 -9
- package/dist/modules/dock/layout.d.ts.map +1 -1
- package/dist/modules/dock/module.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +5 -9
- package/dist/modules/dock/motion.d.ts.map +1 -1
- package/dist/modules/dock/overlay.d.ts.map +1 -1
- package/dist/modules/dock/routing/navigation.d.ts +0 -1
- package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
- package/dist/modules/dock/runtime/display.d.ts +0 -6
- package/dist/modules/dock/runtime/display.d.ts.map +1 -1
- package/dist/modules/dock/runtime/dock.d.ts +0 -1
- package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
- package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/styles.d.ts +3 -3
- package/dist/modules/dock/styles.d.ts.map +1 -1
- package/dist/modules/dock/surface/context.d.ts.map +1 -1
- package/dist/modules/dock/surface/definition.d.ts.map +1 -1
- package/dist/modules/dock/surface/hooks.d.ts.map +1 -1
- package/dist/modules/dock/surface/machine.d.ts.map +1 -1
- package/dist/modules/dock/surface/stack.d.ts.map +1 -1
- package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
- package/dist/modules/dock/types.d.ts +47 -68
- package/dist/modules/dock/types.d.ts.map +1 -1
- package/dist/modules/index.js +17 -17
- package/dist/modules/loading/constants.d.ts.map +1 -1
- package/dist/modules/loading/context.d.ts.map +1 -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/index.js +5 -5
- package/dist/modules/loading/module.d.ts.map +1 -1
- package/dist/modules/media/constants.d.ts.map +1 -1
- package/dist/modules/media/context.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/index.js +3 -3
- package/dist/modules/modal/dom.d.ts.map +1 -1
- package/dist/modules/modal/index.d.ts +2 -2
- package/dist/modules/modal/index.d.ts.map +1 -1
- package/dist/modules/modal/index.js +7 -7
- package/dist/modules/modal/module.d.ts.map +1 -1
- package/dist/modules/modal/overlay.d.ts.map +1 -1
- package/dist/modules/modal/types.d.ts +0 -9
- package/dist/modules/modal/types.d.ts.map +1 -1
- package/dist/modules/navigation/constants.d.ts +0 -4
- package/dist/modules/navigation/constants.d.ts.map +1 -1
- package/dist/modules/navigation/context.d.ts +0 -1
- package/dist/modules/navigation/context.d.ts.map +1 -1
- package/dist/modules/navigation/hooks.d.ts +0 -18
- package/dist/modules/navigation/hooks.d.ts.map +1 -1
- package/dist/modules/navigation/index.d.ts +1 -1
- package/dist/modules/navigation/index.d.ts.map +1 -1
- package/dist/modules/navigation/index.js +14 -15
- package/dist/modules/navigation/index.js.map +1 -1
- package/dist/modules/navigation/listeners.d.ts +0 -11
- package/dist/modules/navigation/listeners.d.ts.map +1 -1
- package/dist/modules/navigation/navigator.d.ts +0 -5
- package/dist/modules/navigation/navigator.d.ts.map +1 -1
- package/dist/modules/navigation/settings.d.ts +0 -5
- package/dist/modules/navigation/settings.d.ts.map +1 -1
- package/dist/modules/navigation/state.d.ts +0 -1
- package/dist/modules/navigation/state.d.ts.map +1 -1
- package/dist/modules/navigation/types.d.ts +0 -50
- package/dist/modules/navigation/types.d.ts.map +1 -1
- package/dist/modules/navigation/utils.d.ts +0 -3
- package/dist/modules/navigation/utils.d.ts.map +1 -1
- package/dist/modules/notification/constants.d.ts.map +1 -1
- package/dist/modules/notification/context.d.ts.map +1 -1
- package/dist/modules/notification/hooks.d.ts.map +1 -1
- package/dist/modules/notification/index.js +4 -4
- package/dist/modules/notification/module.d.ts.map +1 -1
- package/dist/modules/notification/types.d.ts +0 -3
- package/dist/modules/notification/types.d.ts.map +1 -1
- package/dist/overlay-LTRZUZQD.js +9 -0
- package/dist/{overlay-TZ6L52A5.js.map → overlay-LTRZUZQD.js.map} +1 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +6 -6
- package/dist/result.js +1 -1
- package/dist/theme.d.ts +0 -17
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +3 -3
- package/dist/tokens/index.js +2 -1
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/motion-config.d.ts +0 -9
- package/dist/tokens/motion-config.d.ts.map +1 -1
- package/dist/tokens/motion.d.ts.map +1 -1
- package/dist/ui/carousel/carousel.d.ts +24 -0
- package/dist/ui/carousel/carousel.d.ts.map +1 -0
- package/dist/ui/carousel/track.d.ts +11 -0
- package/dist/ui/carousel/track.d.ts.map +1 -0
- package/dist/ui/carousel/use-drag-scroll.d.ts +3 -0
- package/dist/ui/carousel/use-drag-scroll.d.ts.map +1 -0
- package/dist/ui/cn.d.ts +19 -0
- package/dist/ui/cn.d.ts.map +1 -0
- package/dist/ui/components/avatar.d.ts +14 -0
- package/dist/ui/components/avatar.d.ts.map +1 -0
- package/dist/ui/components/button.d.ts +9 -0
- package/dist/ui/components/button.d.ts.map +1 -0
- package/dist/ui/components/checkbox.d.ts +18 -0
- package/dist/ui/components/checkbox.d.ts.map +1 -0
- package/dist/ui/components/icon.d.ts +4 -0
- package/dist/ui/components/icon.d.ts.map +1 -0
- package/dist/ui/components/image.d.ts +13 -0
- package/dist/ui/components/image.d.ts.map +1 -0
- package/dist/ui/components/indicator.d.ts +37 -0
- package/dist/ui/components/indicator.d.ts.map +1 -0
- package/dist/ui/components/input.d.ts +15 -0
- package/dist/ui/components/input.d.ts.map +1 -0
- package/dist/ui/components/loader.d.ts +17 -0
- package/dist/ui/components/loader.d.ts.map +1 -0
- package/dist/ui/components/segmented.d.ts +21 -0
- package/dist/ui/components/segmented.d.ts.map +1 -0
- package/dist/ui/components/select.d.ts +34 -0
- package/dist/ui/components/select.d.ts.map +1 -0
- package/dist/ui/components/skeleton.d.ts +16 -0
- package/dist/ui/components/skeleton.d.ts.map +1 -0
- package/dist/ui/components/switch.d.ts +11 -0
- package/dist/ui/components/switch.d.ts.map +1 -0
- package/dist/ui/components/tooltip.d.ts +25 -0
- package/dist/ui/components/tooltip.d.ts.map +1 -0
- package/dist/ui/defaults.d.ts +250 -0
- package/dist/ui/defaults.d.ts.map +1 -0
- package/dist/ui/define.d.ts +112 -0
- package/dist/ui/define.d.ts.map +1 -0
- package/dist/ui/index.d.ts +19 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +1970 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/provider.d.ts +11 -0
- package/dist/ui/provider.d.ts.map +1 -0
- package/dist/ui/recipe.d.ts +70 -0
- package/dist/ui/recipe.d.ts.map +1 -0
- package/dist/ui/recipes.d.ts +9 -0
- package/dist/ui/recipes.d.ts.map +1 -0
- package/dist/ui/recipes.js +648 -0
- package/dist/ui/recipes.js.map +1 -0
- package/dist/ui/split.d.ts +4 -0
- package/dist/ui/split.d.ts.map +1 -0
- package/dist/ui/tones.d.ts +23 -0
- package/dist/ui/tones.d.ts.map +1 -0
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/report.d.ts.map +1 -1
- package/docs/README.md +4 -0
- package/docs/modules/dock.md +19 -3
- package/docs/theming.md +1 -1
- package/docs/ui.md +183 -0
- package/package.json +18 -3
- package/styles/effects.css +219 -0
- package/styles/index.css +8 -0
- package/styles/interaction.css +273 -0
- package/styles/palette.css +81 -0
- package/styles/time.css +26 -0
- package/styles/tokens.css +114 -0
- package/styles/utilities.css +110 -0
- package/templates/motion/background.ts +0 -2
- package/templates/motion/context-menu.ts +5 -3
- package/templates/motion/dock.ts +129 -35
- package/templates/motion/modal.ts +8 -5
- package/templates/motion/notification.ts +0 -1
- package/templates/motion/tokens.ts +4 -15
- package/dist/chunk-3BUP64Q6.js.map +0 -1
- package/dist/chunk-66EYJBIP.js.map +0 -1
- package/dist/chunk-7TAVYJ3A.js.map +0 -1
- package/dist/chunk-AQ4BNXA2.js.map +0 -1
- package/dist/chunk-CGHZSSFR.js.map +0 -1
- package/dist/chunk-CYU6SGAL.js.map +0 -1
- package/dist/chunk-FIMPHODX.js.map +0 -1
- package/dist/chunk-HHWRTQKQ.js.map +0 -1
- package/dist/chunk-HLL5EHXC.js.map +0 -1
- package/dist/chunk-JIXBFFRD.js.map +0 -1
- package/dist/chunk-K676GL7Z.js.map +0 -1
- package/dist/chunk-M57SNWXK.js +0 -28
- package/dist/chunk-R2YGFJDJ.js.map +0 -1
- package/dist/chunk-RFZQWLC5.js.map +0 -1
- package/dist/chunk-RIOKLMYM.js.map +0 -1
- package/dist/chunk-SYAVGTOX.js.map +0 -1
- package/dist/chunk-TG6NMHXI.js.map +0 -1
- package/dist/chunk-TV3WEF5G.js.map +0 -1
- package/dist/overlay-TZ6L52A5.js +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useOptionalLoadingActions, useOptionalLoadingState } from './chunk-NK2DQB3G.js';
|
|
2
|
+
import { NAVIGATION_STATUS, createNavigator } from './chunk-SQ7XZMCN.js';
|
|
3
|
+
import { useNotificationVisible } from './chunk-NEBGCFE3.js';
|
|
4
|
+
import { useOptionalMediaState, useOptionalMediaActions } from './chunk-GDCVEINL.js';
|
|
2
5
|
import { Z_INDEX } from './chunk-QI3ALLIB.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { getOrCreateGlobalContext, defineModule, useModule, useRegistryEntries, useModuleRegistration } from './chunk-GF7TUX5I.js';
|
|
8
|
-
import { createStore, cn, isImageIconSource, clamp, useIsomorphicLayoutEffect, isObject, isPlainObject, trimToNull, shallowEqual, useGlobalEvent, useRequiredContext, globalEvents, toArray, useIsFullscreenStateActive, useClickOutside, report, normalizePath, useStore, createScheduler, EVENT_TYPES, toUserMessage } from './chunk-TV3WEF5G.js';
|
|
9
|
-
import { Tooltip, Icon, Button, Spinner } from './chunk-3BUP64Q6.js';
|
|
6
|
+
import { defineThemeSpec, useModuleMotion, useTheme, cssTransition, staggerDelay, gpuTransform, useOptionalModuleMotion } from './chunk-TMTMQNEQ.js';
|
|
7
|
+
import { getOrCreateGlobalContext, defineModule, useModule, useRegistryEntries, useModuleRegistration } from './chunk-HMEWYAWU.js';
|
|
8
|
+
import { createStore, cn, isImageIconSource, clamp, useIsomorphicLayoutEffect, isObject, isPlainObject, trimToNull, shallowEqual, useGlobalEvent, useRequiredContext, globalEvents, toArray, useIsFullscreenStateActive, useClickOutside, report, normalizePath, useStore, createScheduler, EVENT_TYPES, toUserMessage } from './chunk-HCSDQEFB.js';
|
|
9
|
+
import { Tooltip, Icon, Button, Spinner } from './chunk-I3IZUBBU.js';
|
|
10
10
|
import React, { createContext, memo, createElement, isValidElement, cloneElement, Suspense, useEffect, useState, useCallback, useMemo, use, useSyncExternalStore, useRef, useLayoutEffect, useReducer, lazy, useContext, useId } from 'react';
|
|
11
11
|
import { motion, AnimatePresence, useMotionValue, useSpring, useTransform, useDragControls } from 'motion/react';
|
|
12
12
|
import Link from 'next/link';
|
|
@@ -410,27 +410,13 @@ var DOCK_SURFACE_PHASE = Object.freeze({
|
|
|
410
410
|
});
|
|
411
411
|
var VIEWPORT_MARGIN = 24;
|
|
412
412
|
var DOCK_CARD_DIMENSIONS = Object.freeze({
|
|
413
|
-
expandedY: -72,
|
|
414
413
|
chromeHeight: 20,
|
|
415
|
-
collapsedY: -10,
|
|
416
|
-
extensionShelfY: -42,
|
|
417
|
-
extensionShelfScale: 0.94,
|
|
418
414
|
extensionShelfHeight: 45,
|
|
419
415
|
hudHeight: 52,
|
|
420
416
|
actionGap: 10,
|
|
421
417
|
height: 68
|
|
422
418
|
});
|
|
423
419
|
var DOCK_CARD_LAYOUT = Object.freeze({
|
|
424
|
-
collapsed: Object.freeze({
|
|
425
|
-
offsetY: DOCK_CARD_DIMENSIONS.collapsedY,
|
|
426
|
-
scale: 0.88
|
|
427
|
-
}),
|
|
428
|
-
expanded: Object.freeze({
|
|
429
|
-
offsetY: DOCK_CARD_DIMENSIONS.expandedY,
|
|
430
|
-
scale: 1
|
|
431
|
-
}),
|
|
432
|
-
extensionShelfY: DOCK_CARD_DIMENSIONS.extensionShelfY,
|
|
433
|
-
extensionShelfScale: DOCK_CARD_DIMENSIONS.extensionShelfScale,
|
|
434
420
|
extensionShelfHeight: DOCK_CARD_DIMENSIONS.extensionShelfHeight,
|
|
435
421
|
chromeHeight: DOCK_CARD_DIMENSIONS.chromeHeight,
|
|
436
422
|
hudHeight: DOCK_CARD_DIMENSIONS.hudHeight,
|
|
@@ -499,7 +485,6 @@ var STATUS_CLEAR_DURATION = 4500;
|
|
|
499
485
|
var API_ERROR_BATCH_DELAY = 300;
|
|
500
486
|
var DOCK_HEIGHT_BUFFER = 16;
|
|
501
487
|
var HEIGHT_EPSILON = 0.5;
|
|
502
|
-
var MAX_VISIBLE_STACKED_CARDS = 3;
|
|
503
488
|
var dockTheme = defineThemeSpec("dock");
|
|
504
489
|
var DockContext = getOrCreateGlobalContext(
|
|
505
490
|
"DockContext",
|
|
@@ -1598,10 +1583,6 @@ var DOCK_SURFACE_DRAG_CONSTRAINTS = Object.freeze({
|
|
|
1598
1583
|
top: 0,
|
|
1599
1584
|
bottom: 0
|
|
1600
1585
|
});
|
|
1601
|
-
var DOCK_SURFACE_DRAG_THRESHOLDS = Object.freeze({
|
|
1602
|
-
DISMISS_OFFSET_Y: 65,
|
|
1603
|
-
DISMISS_VELOCITY_Y: 400
|
|
1604
|
-
});
|
|
1605
1586
|
function toGpuTransform(y = 0, scale = 1, x = 0) {
|
|
1606
1587
|
return gpuTransform(y, scale, x);
|
|
1607
1588
|
}
|
|
@@ -1637,42 +1618,39 @@ function getDockMediaVolumeThumbAnimateProps(motion2, { isDragging = false } = {
|
|
|
1637
1618
|
function getDockMediaVolumeThumbPositionTransition(motion2, { isDragging = false } = {}) {
|
|
1638
1619
|
return isDragging ? "none" : cssTransition("left", motion2.transitions.mediaVolume);
|
|
1639
1620
|
}
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1621
|
+
var SURFACE_PHASE_KEYS = Object.freeze({
|
|
1622
|
+
[DOCK_SURFACE_PHASE.IDLE]: "idle",
|
|
1623
|
+
[DOCK_SURFACE_PHASE.DISMISSING_ACTION]: "dismissAction",
|
|
1624
|
+
[DOCK_SURFACE_PHASE.EXPANDING_BODY]: "expandBody",
|
|
1625
|
+
[DOCK_SURFACE_PHASE.OPEN]: "open",
|
|
1626
|
+
[DOCK_SURFACE_PHASE.CLOSING_ANTICIPATION]: "anticipation",
|
|
1627
|
+
[DOCK_SURFACE_PHASE.COLLAPSING_BODY]: "collapseBody",
|
|
1628
|
+
[DOCK_SURFACE_PHASE.RESTORING_HEADER]: "restoreHeader"
|
|
1629
|
+
});
|
|
1630
|
+
function getDockPhaseMotion(motion2, surfacePhase) {
|
|
1631
|
+
const key = surfacePhase && SURFACE_PHASE_KEYS[surfacePhase] || "idle";
|
|
1632
|
+
return motion2.phases[key];
|
|
1648
1633
|
}
|
|
1649
1634
|
function getDockStackTransformTransition(motion2, surfacePhase, fallbackTransition) {
|
|
1650
|
-
|
|
1651
|
-
return motion2.transitions.surfaceArrival;
|
|
1652
|
-
}
|
|
1653
|
-
if (surfacePhase === DOCK_SURFACE_PHASE.DISMISSING_ACTION || surfacePhase === DOCK_SURFACE_PHASE.CLOSING_ANTICIPATION) {
|
|
1654
|
-
return motion2.transitions.anticipation;
|
|
1655
|
-
}
|
|
1656
|
-
return fallbackTransition;
|
|
1635
|
+
return getDockPhaseMotion(motion2, surfacePhase).transform ?? fallbackTransition;
|
|
1657
1636
|
}
|
|
1658
1637
|
function getDockStackTransition(motion2, {
|
|
1659
1638
|
expanded = false,
|
|
1660
1639
|
resizeDistance = 0,
|
|
1661
1640
|
surfacePhase = null
|
|
1662
1641
|
} = {}) {
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
return motion2.transitions.surfaceResize(
|
|
1668
|
-
resizeDistance > 0 ? resizeDistance : 260
|
|
1642
|
+
const { deck } = getDockPhaseMotion(motion2, surfacePhase);
|
|
1643
|
+
if (typeof deck === "function") {
|
|
1644
|
+
return deck(
|
|
1645
|
+
resizeDistance > 0 ? resizeDistance : motion2.deck.resizeFallback
|
|
1669
1646
|
);
|
|
1670
1647
|
}
|
|
1671
|
-
if (
|
|
1672
|
-
return motion2.transitions.expand;
|
|
1673
|
-
}
|
|
1648
|
+
if (deck) return deck;
|
|
1674
1649
|
return expanded ? motion2.transitions.expand : motion2.transitions.stack;
|
|
1675
1650
|
}
|
|
1651
|
+
function getDockLayoutTransition(motion2) {
|
|
1652
|
+
return { layout: motion2.transitions.layout };
|
|
1653
|
+
}
|
|
1676
1654
|
function getDockStackAnimateProps(motion2, {
|
|
1677
1655
|
width,
|
|
1678
1656
|
height,
|
|
@@ -1683,7 +1661,7 @@ function getDockStackAnimateProps(motion2, {
|
|
|
1683
1661
|
}) {
|
|
1684
1662
|
const safeWidth = Number(width);
|
|
1685
1663
|
const safeHeight = Number(height);
|
|
1686
|
-
const liftAmount = isBreadcrumbsVisible ?
|
|
1664
|
+
const liftAmount = isBreadcrumbsVisible ? motion2.deck.breadcrumbOffset : 0;
|
|
1687
1665
|
return {
|
|
1688
1666
|
width: Math.max(0, Math.round(Number.isFinite(safeWidth) ? safeWidth : 0)),
|
|
1689
1667
|
height: Math.max(
|
|
@@ -1692,9 +1670,9 @@ function getDockStackAnimateProps(motion2, {
|
|
|
1692
1670
|
),
|
|
1693
1671
|
transform: toGpuTransform(
|
|
1694
1672
|
liftAmount,
|
|
1695
|
-
|
|
1673
|
+
getDockPhaseMotion(motion2, surfacePhase).scale
|
|
1696
1674
|
),
|
|
1697
|
-
opacity: isFullscreen ?
|
|
1675
|
+
opacity: isFullscreen ? motion2.deck.fullscreenOpacity : 1,
|
|
1698
1676
|
boxShadow: isSurfaceActive ? motion2.deck.elevation.elevated : motion2.deck.elevation.rest,
|
|
1699
1677
|
pointerEvents: isFullscreen ? "none" : "auto"
|
|
1700
1678
|
};
|
|
@@ -1759,7 +1737,7 @@ function getDockItemExitValues(motion2, {
|
|
|
1759
1737
|
return motion2.deck.exit({
|
|
1760
1738
|
position: safePosition,
|
|
1761
1739
|
scale: motionValues && Number.isFinite(motionValues.scale) ? motionValues.scale : null,
|
|
1762
|
-
y: motionValues && Number.isFinite(motionValues.y) ? motionValues.y : safePosition *
|
|
1740
|
+
y: motionValues && Number.isFinite(motionValues.y) ? motionValues.y : safePosition * motion2.deck.stacking.collapsed.offsetY
|
|
1763
1741
|
});
|
|
1764
1742
|
}
|
|
1765
1743
|
function getDockCardContentAnimateProps(motion2, {
|
|
@@ -2203,7 +2181,8 @@ function useDockSurfaceShellModel({
|
|
|
2203
2181
|
const handleDragEnd = (_event, info) => {
|
|
2204
2182
|
if (!isActive || !allowSwipeDismiss || typeof onClose !== "function" || !isFullyOpen)
|
|
2205
2183
|
return;
|
|
2206
|
-
|
|
2184
|
+
const { dismiss } = dockMotion.drag;
|
|
2185
|
+
if (info.offset.y > dismiss.offset || info.velocity.y > dismiss.velocity) {
|
|
2207
2186
|
onClose();
|
|
2208
2187
|
}
|
|
2209
2188
|
};
|
|
@@ -2228,12 +2207,12 @@ function useDockSurfaceShellModel({
|
|
|
2228
2207
|
const resolvedSurfaceId = surfaceId || "active";
|
|
2229
2208
|
const bodyVariants = useMemo(() => {
|
|
2230
2209
|
const { surfaceBody } = dockMotion.variants;
|
|
2231
|
-
const {
|
|
2210
|
+
const { surfaceExit } = dockMotion.transitions;
|
|
2232
2211
|
return {
|
|
2233
2212
|
hidden: surfaceBody.hidden,
|
|
2234
2213
|
visible: {
|
|
2235
2214
|
...surfaceBody.visible,
|
|
2236
|
-
transition: surfacePhase
|
|
2215
|
+
transition: getDockPhaseMotion(dockMotion, surfacePhase).body
|
|
2237
2216
|
},
|
|
2238
2217
|
exit: {
|
|
2239
2218
|
...surfaceBody.exit,
|
|
@@ -2329,11 +2308,12 @@ function getDockItemCardProps({
|
|
|
2329
2308
|
hasExtensions = false,
|
|
2330
2309
|
isAnchoredToBottom,
|
|
2331
2310
|
position,
|
|
2311
|
+
stacking,
|
|
2332
2312
|
theme,
|
|
2333
|
-
visibleCount =
|
|
2313
|
+
visibleCount = stacking.visible.stack
|
|
2334
2314
|
}) {
|
|
2335
|
-
const { offsetY: collapsedOffsetY, scale: collapsedScale } =
|
|
2336
|
-
const { offsetY: expandedOffsetY } =
|
|
2315
|
+
const { offsetY: collapsedOffsetY, scale: collapsedScale } = stacking.collapsed;
|
|
2316
|
+
const { offsetY: expandedOffsetY } = stacking.expanded;
|
|
2337
2317
|
const safeCardStyle = { ...cardStyle };
|
|
2338
2318
|
delete safeCardStyle.scale;
|
|
2339
2319
|
delete safeCardStyle.className;
|
|
@@ -2341,10 +2321,12 @@ function getDockItemCardProps({
|
|
|
2341
2321
|
const isShelf = !expanded && position === 1 && hasExtensions;
|
|
2342
2322
|
const isHeavyBlur = position < visibleCount || expanded || isShelf;
|
|
2343
2323
|
const collapsedScaleValue = collapsedScale ** position;
|
|
2344
|
-
const y = expanded ? position * expandedOffsetY : isShelf ?
|
|
2345
|
-
const
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2324
|
+
const y = expanded ? position * expandedOffsetY : isShelf ? stacking.shelf.offsetY : position * collapsedOffsetY;
|
|
2325
|
+
const scale = expanded ? cardScale || 1 : isShelf ? stacking.shelf.scale : collapsedScaleValue;
|
|
2326
|
+
const collapsedOpacity = Math.max(
|
|
2327
|
+
stacking.collapsed.opacityMin,
|
|
2328
|
+
+(1 - position * stacking.collapsed.opacityStep).toFixed(2)
|
|
2329
|
+
);
|
|
2348
2330
|
const opacity = expanded || isShelf ? 1 : position < visibleCount ? collapsedOpacity : 0;
|
|
2349
2331
|
return {
|
|
2350
2332
|
className: cn(theme.slots.card, cardStyle?.className),
|
|
@@ -2626,6 +2608,10 @@ function removeInactiveLoadingItems(items = [], activeItem = null) {
|
|
|
2626
2608
|
(item) => !item?.isLoading || isSameItem(item, activeItem)
|
|
2627
2609
|
);
|
|
2628
2610
|
}
|
|
2611
|
+
function stackRank(item) {
|
|
2612
|
+
if (typeof item.stackOrder === "number") return item.stackOrder;
|
|
2613
|
+
return item.path === "/" ? Number.POSITIVE_INFINITY : 0;
|
|
2614
|
+
}
|
|
2629
2615
|
function reorderItemsWithActiveFirst(items, activeIndex) {
|
|
2630
2616
|
if (activeIndex === -1) return items;
|
|
2631
2617
|
const active = items[activeIndex];
|
|
@@ -2633,7 +2619,7 @@ function reorderItemsWithActiveFirst(items, activeIndex) {
|
|
|
2633
2619
|
...items.slice(0, activeIndex),
|
|
2634
2620
|
...items.slice(activeIndex + 1)
|
|
2635
2621
|
];
|
|
2636
|
-
rest.sort((a, b) => a
|
|
2622
|
+
rest.sort((a, b) => stackRank(a) - stackRank(b));
|
|
2637
2623
|
return [active, ...rest];
|
|
2638
2624
|
}
|
|
2639
2625
|
function shouldRenderInlineAction({
|
|
@@ -3216,9 +3202,7 @@ function emitDockEvent(eventType, data = {}) {
|
|
|
3216
3202
|
}
|
|
3217
3203
|
function useDockNavigator(router) {
|
|
3218
3204
|
const shared = useModule("navigation");
|
|
3219
|
-
const [own] = useState(
|
|
3220
|
-
() => shared ? null : createNavigator({ router })
|
|
3221
|
-
);
|
|
3205
|
+
const [own] = useState(() => shared ? null : createNavigator({ router }));
|
|
3222
3206
|
useEffect(() => {
|
|
3223
3207
|
own?.setRouter(router);
|
|
3224
3208
|
}, [own, router]);
|
|
@@ -3315,13 +3299,7 @@ function useDockNavigation() {
|
|
|
3315
3299
|
}
|
|
3316
3300
|
return false;
|
|
3317
3301
|
},
|
|
3318
|
-
[
|
|
3319
|
-
closeSurface,
|
|
3320
|
-
continuity,
|
|
3321
|
-
guards,
|
|
3322
|
-
navigator2,
|
|
3323
|
-
prepareRouteReset
|
|
3324
|
-
]
|
|
3302
|
+
[closeSurface, continuity, guards, navigator2, prepareRouteReset]
|
|
3325
3303
|
);
|
|
3326
3304
|
const navigate = useCallback(
|
|
3327
3305
|
async (href, {
|
|
@@ -3557,6 +3535,7 @@ function useActionSlot(item, pathname, { isTop = false } = {}) {
|
|
|
3557
3535
|
if (isTop && hasMedia && ownsPathname(path, pathname)) {
|
|
3558
3536
|
return { kind: "media" };
|
|
3559
3537
|
}
|
|
3538
|
+
if (!isTop && !isOverlay) return null;
|
|
3560
3539
|
if (!shouldRenderInlineAction(
|
|
3561
3540
|
{ action, isLoading, isOverlay, path },
|
|
3562
3541
|
pathname
|
|
@@ -3738,7 +3717,7 @@ function useDockCardItemModel({
|
|
|
3738
3717
|
hidden: headerRestore.hidden,
|
|
3739
3718
|
visible: {
|
|
3740
3719
|
...visible,
|
|
3741
|
-
transition: item.surfacePhase
|
|
3720
|
+
transition: getDockPhaseMotion(dockMotion, item.surfacePhase).headerReturn ?? visible.transition
|
|
3742
3721
|
},
|
|
3743
3722
|
exit: headerRestore.exit
|
|
3744
3723
|
};
|
|
@@ -3802,7 +3781,7 @@ function useDockCardItemModel({
|
|
|
3802
3781
|
!expanded && position > 0 && !isExtensionShelf
|
|
3803
3782
|
);
|
|
3804
3783
|
const isCollapsedGhostCard = Boolean(
|
|
3805
|
-
!expanded && position >=
|
|
3784
|
+
!expanded && position >= dockMotion.deck.stacking.visible.stack && !isExtensionShelf
|
|
3806
3785
|
);
|
|
3807
3786
|
const {
|
|
3808
3787
|
className: cardClassName,
|
|
@@ -3816,7 +3795,8 @@ function useDockCardItemModel({
|
|
|
3816
3795
|
cardScale: itemStyle.scale,
|
|
3817
3796
|
theme,
|
|
3818
3797
|
isAnchoredToBottom: item.isSurface,
|
|
3819
|
-
|
|
3798
|
+
stacking: dockMotion.deck.stacking,
|
|
3799
|
+
visibleCount: item.isStatus && !isStackHovered ? dockMotion.deck.stacking.visible.status : hasExtensions && !expanded ? dockMotion.deck.stacking.visible.extensions : dockMotion.deck.stacking.visible.stack,
|
|
3820
3800
|
hasExtensions
|
|
3821
3801
|
});
|
|
3822
3802
|
const cardDelay = useMemo(
|
|
@@ -6180,8 +6160,7 @@ function useDockLayout({
|
|
|
6180
6160
|
}, [pathname, dockItems, activeItem]);
|
|
6181
6161
|
return {
|
|
6182
6162
|
displayItems,
|
|
6183
|
-
activeIndex: displayActiveIndex
|
|
6184
|
-
MAX_VISIBLE_STACKED_CARDS
|
|
6163
|
+
activeIndex: displayActiveIndex
|
|
6185
6164
|
};
|
|
6186
6165
|
}
|
|
6187
6166
|
function useDock() {
|
|
@@ -6665,7 +6644,7 @@ var DockCardBanner = memo(function DockCardBanner2({
|
|
|
6665
6644
|
const resolvedPosition = bannerPosition || bannerObj?.position || bannerObj?.bannerPosition || "center 45%";
|
|
6666
6645
|
const resolvedSize = bannerSize || bannerObj?.size || bannerObj?.bannerSize || "cover";
|
|
6667
6646
|
const resolvedRepeat = bannerRepeat || bannerObj?.repeat || bannerObj?.bannerRepeat || "no-repeat";
|
|
6668
|
-
const resolvedOpacity = bannerOpacity ?? bannerObj?.opacity ?? bannerObj?.bannerOpacity ??
|
|
6647
|
+
const resolvedOpacity = bannerOpacity ?? bannerObj?.opacity ?? bannerObj?.bannerOpacity ?? dockMotion.opacity.banner;
|
|
6669
6648
|
return /* @__PURE__ */ jsxs(
|
|
6670
6649
|
motion.div,
|
|
6671
6650
|
{
|
|
@@ -6807,9 +6786,9 @@ var DockDescription = memo(function DockDescription2({
|
|
|
6807
6786
|
const theme = useDockTheme();
|
|
6808
6787
|
if (text == null || text === "") return null;
|
|
6809
6788
|
const { className, inlineStyle } = splitStyle(style);
|
|
6810
|
-
const { opacity =
|
|
6789
|
+
const { opacity = dockMotion.opacity.description, ...restStyle } = inlineStyle;
|
|
6811
6790
|
const isMultiline = Number(maxLines) > 1;
|
|
6812
|
-
const targetOpacity = typeof opacity === "number" ? opacity :
|
|
6791
|
+
const targetOpacity = typeof opacity === "number" ? opacity : dockMotion.opacity.description;
|
|
6813
6792
|
const sharedClass = cn(theme.slots.descriptionText, className);
|
|
6814
6793
|
const sharedStyle = {
|
|
6815
6794
|
opacity: targetOpacity,
|
|
@@ -6991,6 +6970,11 @@ var DockIcon = memo(function DockIcon2({
|
|
|
6991
6970
|
/* @__PURE__ */ jsx(DockIconOverlay, { overlay: iconOverlay })
|
|
6992
6971
|
] });
|
|
6993
6972
|
});
|
|
6973
|
+
var HEADER_IDENTITY_STYLE = {
|
|
6974
|
+
flex: "1 1 0%",
|
|
6975
|
+
minWidth: 0,
|
|
6976
|
+
position: "relative"
|
|
6977
|
+
};
|
|
6994
6978
|
var DockCardHeader = memo(function DockCardHeader2({
|
|
6995
6979
|
item: propItem,
|
|
6996
6980
|
link,
|
|
@@ -7023,33 +7007,33 @@ var DockCardHeader = memo(function DockCardHeader2({
|
|
|
7023
7007
|
contextCommands
|
|
7024
7008
|
});
|
|
7025
7009
|
const theme = useDockTheme();
|
|
7026
|
-
return /* @__PURE__ */ jsx("div", { className: theme.slots.header, children: /* @__PURE__ */
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
/* @__PURE__ */ jsxs("div", { className: theme.slots.headerText, children: [
|
|
7010
|
+
return /* @__PURE__ */ jsx("div", { className: theme.slots.header, children: /* @__PURE__ */ jsxs("div", { className: theme.slots.headerRow, children: [
|
|
7011
|
+
/* @__PURE__ */ jsx("div", { style: HEADER_IDENTITY_STYLE, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs(
|
|
7012
|
+
motion.div,
|
|
7013
|
+
{
|
|
7014
|
+
variants: dockMotion.variants.headerSwap,
|
|
7015
|
+
initial: "hidden",
|
|
7016
|
+
animate: "visible",
|
|
7017
|
+
exit: "exit",
|
|
7018
|
+
transition: dockMotion.transitions.headerSwap,
|
|
7019
|
+
className: theme.slots.headerRow,
|
|
7020
|
+
style: { ...DOCK_COMPOSITOR_STYLE, willChange: "transform" },
|
|
7021
|
+
children: [
|
|
7022
|
+
/* @__PURE__ */ jsxs("div", { className: theme.slots.headerIcon, children: [
|
|
7023
|
+
item.icon ? /* @__PURE__ */ jsx(
|
|
7024
|
+
DockIcon,
|
|
7025
|
+
{
|
|
7026
|
+
animated: false,
|
|
7027
|
+
icon: showVideoIcon ? isPlaying ? "mdi:pause" : "mdi:play" : item.icon,
|
|
7028
|
+
iconOverlay: effectiveIconOverlay,
|
|
7029
|
+
style: itemStyle.icon,
|
|
7030
|
+
onClick: isIconInteractive ? handleIconClick : null,
|
|
7031
|
+
ariaLabel: isIconInteractive ? showVideoIcon ? isPlaying ? "Pause" : "Play" : "Open" : void 0
|
|
7032
|
+
}
|
|
7033
|
+
) : /* @__PURE__ */ jsx("div", { className: theme.slots.headerIconEmpty }),
|
|
7034
|
+
!showVideoIcon && !effectiveIconOverlay && /* @__PURE__ */ jsx(Badge, { badge })
|
|
7035
|
+
] }),
|
|
7036
|
+
/* @__PURE__ */ jsx("div", { className: theme.slots.headerBody, children: /* @__PURE__ */ jsxs("div", { className: theme.slots.headerText, children: [
|
|
7053
7037
|
/* @__PURE__ */ jsx("div", { className: theme.slots.headerTitleRow, children: /* @__PURE__ */ jsx(
|
|
7054
7038
|
DockTitle,
|
|
7055
7039
|
{
|
|
@@ -7072,20 +7056,20 @@ var DockCardHeader = memo(function DockCardHeader2({
|
|
|
7072
7056
|
style: itemStyle.description
|
|
7073
7057
|
}
|
|
7074
7058
|
)
|
|
7075
|
-
] })
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7059
|
+
] }) })
|
|
7060
|
+
]
|
|
7061
|
+
},
|
|
7062
|
+
headerKey
|
|
7063
|
+
) }) }),
|
|
7064
|
+
isTop && !item.isStatus ? /* @__PURE__ */ jsx(
|
|
7065
|
+
DockCommandBar,
|
|
7066
|
+
{
|
|
7067
|
+
activeItem: activeItem || item,
|
|
7068
|
+
contextCommands,
|
|
7069
|
+
hasBanner
|
|
7070
|
+
}
|
|
7071
|
+
) : null
|
|
7072
|
+
] }) });
|
|
7089
7073
|
});
|
|
7090
7074
|
function DockSurfaceAction({ children }) {
|
|
7091
7075
|
useSurfaceAction(children);
|
|
@@ -7373,7 +7357,7 @@ var DockSurfaceControls = memo(function DockSurfaceControls2({
|
|
|
7373
7357
|
const isControlsVisible = Boolean(
|
|
7374
7358
|
isBodyVisible && (activeItem ? activeItem.isSurface !== false : true) && activeControlKeys.length > 0
|
|
7375
7359
|
);
|
|
7376
|
-
const targetY = hasExtensions ?
|
|
7360
|
+
const targetY = hasExtensions ? dockMotion.deck.stacking.shelf.offsetY - dockMotion.deck.stacking.collapsed.offsetY : 0;
|
|
7377
7361
|
return /* @__PURE__ */ jsx(AnimatePresence, { children: isControlsVisible && /* @__PURE__ */ jsx(
|
|
7378
7362
|
motion.div,
|
|
7379
7363
|
{
|
|
@@ -7442,6 +7426,7 @@ var DockSurfaceControls = memo(function DockSurfaceControls2({
|
|
|
7442
7426
|
motion.div,
|
|
7443
7427
|
{
|
|
7444
7428
|
layout: "position",
|
|
7429
|
+
transition: getDockLayoutTransition(dockMotion),
|
|
7445
7430
|
variants: dockMotion.variants.controlsClose,
|
|
7446
7431
|
initial: "hidden",
|
|
7447
7432
|
animate: "visible",
|
|
@@ -7585,19 +7570,11 @@ var LoadingItemContent = memo(function LoadingItemContent2() {
|
|
|
7585
7570
|
return /* @__PURE__ */ jsxs("div", { className: theme.slots.loading, children: [
|
|
7586
7571
|
/* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingIcon, dockMotion.skeleton) }),
|
|
7587
7572
|
/* @__PURE__ */ jsxs("div", { className: theme.slots.loadingText, children: [
|
|
7573
|
+
/* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingTitle, dockMotion.skeleton) }),
|
|
7588
7574
|
/* @__PURE__ */ jsx(
|
|
7589
7575
|
"div",
|
|
7590
7576
|
{
|
|
7591
|
-
className: cn(theme.slots.
|
|
7592
|
-
}
|
|
7593
|
-
),
|
|
7594
|
-
/* @__PURE__ */ jsx(
|
|
7595
|
-
"div",
|
|
7596
|
-
{
|
|
7597
|
-
className: cn(
|
|
7598
|
-
theme.slots.loadingDescription,
|
|
7599
|
-
dockMotion.skeleton
|
|
7600
|
-
)
|
|
7577
|
+
className: cn(theme.slots.loadingDescription, dockMotion.skeleton)
|
|
7601
7578
|
}
|
|
7602
7579
|
)
|
|
7603
7580
|
] })
|
|
@@ -8016,7 +7993,7 @@ var DockCardItem = memo(function DockCardItem2({
|
|
|
8016
7993
|
initial: "hidden",
|
|
8017
7994
|
animate: item.surfacePhase === DOCK_SURFACE_PHASE.DISMISSING_ACTION ? "hidden" : "visible",
|
|
8018
7995
|
exit: layerExit,
|
|
8019
|
-
transition: item.surfacePhase
|
|
7996
|
+
transition: getDockPhaseMotion(dockMotion, item.surfacePhase).header,
|
|
8020
7997
|
style: { ...DOCK_COMPOSITOR_STYLE, willChange: "transform" },
|
|
8021
7998
|
className: theme.slots.cardStandard,
|
|
8022
7999
|
children: item.isLoading ? /* @__PURE__ */ jsx(LoadingItemContent, {}) : /* @__PURE__ */ jsx(
|
|
@@ -8120,7 +8097,9 @@ var DockMediaControls = memo(function DockMediaControls2({
|
|
|
8120
8097
|
/* @__PURE__ */ jsxs(
|
|
8121
8098
|
motion.div,
|
|
8122
8099
|
{
|
|
8123
|
-
...getDockActionMotionProps(dockMotion, {
|
|
8100
|
+
...getDockActionMotionProps(dockMotion, {
|
|
8101
|
+
disabled: isDraggingVolume
|
|
8102
|
+
}),
|
|
8124
8103
|
"data-active": isDraggingVolume,
|
|
8125
8104
|
className: theme.slots.mediaVolume,
|
|
8126
8105
|
children: [
|
|
@@ -8174,9 +8153,12 @@ var DockMediaControls = memo(function DockMediaControls2({
|
|
|
8174
8153
|
transition: dockMotion.transitions.press,
|
|
8175
8154
|
style: {
|
|
8176
8155
|
left: `${effectiveVolume * 100}%`,
|
|
8177
|
-
transition: getDockMediaVolumeThumbPositionTransition(
|
|
8178
|
-
|
|
8179
|
-
|
|
8156
|
+
transition: getDockMediaVolumeThumbPositionTransition(
|
|
8157
|
+
dockMotion,
|
|
8158
|
+
{
|
|
8159
|
+
isDragging: isDraggingVolume
|
|
8160
|
+
}
|
|
8161
|
+
)
|
|
8180
8162
|
}
|
|
8181
8163
|
}
|
|
8182
8164
|
)
|
|
@@ -8253,6 +8235,7 @@ var DockBreadcrumbsCard = memo(function DockBreadcrumbsCard2({
|
|
|
8253
8235
|
motion.div,
|
|
8254
8236
|
{
|
|
8255
8237
|
layout: "position",
|
|
8238
|
+
transition: getDockLayoutTransition(dockMotion),
|
|
8256
8239
|
className: theme.slots.breadcrumbsItem,
|
|
8257
8240
|
children: [
|
|
8258
8241
|
isLast ? /* @__PURE__ */ jsx("span", { className: theme.slots.breadcrumbsCurrent, children: crumb.title }) : /* @__PURE__ */ jsx(
|
|
@@ -8332,7 +8315,7 @@ function Dock() {
|
|
|
8332
8315
|
"data-controls-hidden": expanded || activeItem?.isSurface ? "true" : "false",
|
|
8333
8316
|
style: {
|
|
8334
8317
|
...theme.styles.stack,
|
|
8335
|
-
transformOrigin:
|
|
8318
|
+
transformOrigin: dockMotion.deck.origin
|
|
8336
8319
|
},
|
|
8337
8320
|
initial: false,
|
|
8338
8321
|
animate: getDockStackAnimateProps(dockMotion, {
|
|
@@ -9737,5 +9720,5 @@ var dockModule = defineModule({
|
|
|
9737
9720
|
});
|
|
9738
9721
|
|
|
9739
9722
|
export { DOCK_EVENTS, DOCK_HUD_PRIORITY, DOCK_HUD_RENDER_MODE, DOCK_HUD_VARIANT, Dock, DockCardBanner, DockCardHeader, DockDescription, DockIcon, DockProvider, DockSurfaceAction, DockSurfaceExtension, DockSurfaceHeaderButton, DockTitle, ErrorActions, GuardActions, createDockGuardRegistry, createErrorStatus, createGuardStatus, createInlineSurfaceEntry, createSurfaceEntryDefinition, createSurfaceFlowBuilder, defineBreadcrumb, defineDockAction, defineHud, defineStepSurface, defineSurface, dockModule, dockTheme, isValidBannerUrl, useDock, useDockActionClass, useDockActions, useDockBanner, useDockConfig, useDockContextActions, useDockDimensions, useDockGuard, useDockHeight, useDockHud, useDockMotion, useDockRegistration, useDockSelector, useDockState, useDockTheme, useHud, useOptionalDockActions, useOptionalDockState, useSurface, useSurfaceAction, useSurfaceDimensions, useSurfaceFlow, useSurfaceHeader, useSurfaceId, useSurfaceReturn, useSurfaceStep };
|
|
9740
|
-
//# sourceMappingURL=chunk-
|
|
9741
|
-
//# sourceMappingURL=chunk-
|
|
9723
|
+
//# sourceMappingURL=chunk-VDNE3A7X.js.map
|
|
9724
|
+
//# sourceMappingURL=chunk-VDNE3A7X.js.map
|