@omerdlw/base-framework 3.0.1 → 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-RRAZKP3J.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-I5GK7VOV.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-WVRMABDN.js → chunk-VDNE3A7X.js} +73 -76
- 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.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 +0 -6
- 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.map +1 -1
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/styles.d.ts +2 -2
- 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 +0 -88
- 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/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 +61 -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-FIMPHODX.js.map +0 -1
- package/dist/chunk-HHWRTQKQ.js.map +0 -1
- package/dist/chunk-HLL5EHXC.js.map +0 -1
- package/dist/chunk-I5GK7VOV.js +0 -28
- package/dist/chunk-K676GL7Z.js.map +0 -1
- 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-RRAZKP3J.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/chunk-WVRMABDN.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';
|
|
@@ -1641,7 +1641,9 @@ function getDockStackTransition(motion2, {
|
|
|
1641
1641
|
} = {}) {
|
|
1642
1642
|
const { deck } = getDockPhaseMotion(motion2, surfacePhase);
|
|
1643
1643
|
if (typeof deck === "function") {
|
|
1644
|
-
return deck(
|
|
1644
|
+
return deck(
|
|
1645
|
+
resizeDistance > 0 ? resizeDistance : motion2.deck.resizeFallback
|
|
1646
|
+
);
|
|
1645
1647
|
}
|
|
1646
1648
|
if (deck) return deck;
|
|
1647
1649
|
return expanded ? motion2.transitions.expand : motion2.transitions.stack;
|
|
@@ -3200,9 +3202,7 @@ function emitDockEvent(eventType, data = {}) {
|
|
|
3200
3202
|
}
|
|
3201
3203
|
function useDockNavigator(router) {
|
|
3202
3204
|
const shared = useModule("navigation");
|
|
3203
|
-
const [own] = useState(
|
|
3204
|
-
() => shared ? null : createNavigator({ router })
|
|
3205
|
-
);
|
|
3205
|
+
const [own] = useState(() => shared ? null : createNavigator({ router }));
|
|
3206
3206
|
useEffect(() => {
|
|
3207
3207
|
own?.setRouter(router);
|
|
3208
3208
|
}, [own, router]);
|
|
@@ -3299,13 +3299,7 @@ function useDockNavigation() {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
return false;
|
|
3301
3301
|
},
|
|
3302
|
-
[
|
|
3303
|
-
closeSurface,
|
|
3304
|
-
continuity,
|
|
3305
|
-
guards,
|
|
3306
|
-
navigator2,
|
|
3307
|
-
prepareRouteReset
|
|
3308
|
-
]
|
|
3302
|
+
[closeSurface, continuity, guards, navigator2, prepareRouteReset]
|
|
3309
3303
|
);
|
|
3310
3304
|
const navigate = useCallback(
|
|
3311
3305
|
async (href, {
|
|
@@ -3541,6 +3535,7 @@ function useActionSlot(item, pathname, { isTop = false } = {}) {
|
|
|
3541
3535
|
if (isTop && hasMedia && ownsPathname(path, pathname)) {
|
|
3542
3536
|
return { kind: "media" };
|
|
3543
3537
|
}
|
|
3538
|
+
if (!isTop && !isOverlay) return null;
|
|
3544
3539
|
if (!shouldRenderInlineAction(
|
|
3545
3540
|
{ action, isLoading, isOverlay, path },
|
|
3546
3541
|
pathname
|
|
@@ -6975,6 +6970,11 @@ var DockIcon = memo(function DockIcon2({
|
|
|
6975
6970
|
/* @__PURE__ */ jsx(DockIconOverlay, { overlay: iconOverlay })
|
|
6976
6971
|
] });
|
|
6977
6972
|
});
|
|
6973
|
+
var HEADER_IDENTITY_STYLE = {
|
|
6974
|
+
flex: "1 1 0%",
|
|
6975
|
+
minWidth: 0,
|
|
6976
|
+
position: "relative"
|
|
6977
|
+
};
|
|
6978
6978
|
var DockCardHeader = memo(function DockCardHeader2({
|
|
6979
6979
|
item: propItem,
|
|
6980
6980
|
link,
|
|
@@ -7007,33 +7007,33 @@ var DockCardHeader = memo(function DockCardHeader2({
|
|
|
7007
7007
|
contextCommands
|
|
7008
7008
|
});
|
|
7009
7009
|
const theme = useDockTheme();
|
|
7010
|
-
return /* @__PURE__ */ jsx("div", { className: theme.slots.header, children: /* @__PURE__ */
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
/* @__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: [
|
|
7037
7037
|
/* @__PURE__ */ jsx("div", { className: theme.slots.headerTitleRow, children: /* @__PURE__ */ jsx(
|
|
7038
7038
|
DockTitle,
|
|
7039
7039
|
{
|
|
@@ -7056,20 +7056,20 @@ var DockCardHeader = memo(function DockCardHeader2({
|
|
|
7056
7056
|
style: itemStyle.description
|
|
7057
7057
|
}
|
|
7058
7058
|
)
|
|
7059
|
-
] })
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
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
|
+
] }) });
|
|
7073
7073
|
});
|
|
7074
7074
|
function DockSurfaceAction({ children }) {
|
|
7075
7075
|
useSurfaceAction(children);
|
|
@@ -7570,19 +7570,11 @@ var LoadingItemContent = memo(function LoadingItemContent2() {
|
|
|
7570
7570
|
return /* @__PURE__ */ jsxs("div", { className: theme.slots.loading, children: [
|
|
7571
7571
|
/* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingIcon, dockMotion.skeleton) }),
|
|
7572
7572
|
/* @__PURE__ */ jsxs("div", { className: theme.slots.loadingText, children: [
|
|
7573
|
+
/* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingTitle, dockMotion.skeleton) }),
|
|
7573
7574
|
/* @__PURE__ */ jsx(
|
|
7574
7575
|
"div",
|
|
7575
7576
|
{
|
|
7576
|
-
className: cn(theme.slots.
|
|
7577
|
-
}
|
|
7578
|
-
),
|
|
7579
|
-
/* @__PURE__ */ jsx(
|
|
7580
|
-
"div",
|
|
7581
|
-
{
|
|
7582
|
-
className: cn(
|
|
7583
|
-
theme.slots.loadingDescription,
|
|
7584
|
-
dockMotion.skeleton
|
|
7585
|
-
)
|
|
7577
|
+
className: cn(theme.slots.loadingDescription, dockMotion.skeleton)
|
|
7586
7578
|
}
|
|
7587
7579
|
)
|
|
7588
7580
|
] })
|
|
@@ -8105,7 +8097,9 @@ var DockMediaControls = memo(function DockMediaControls2({
|
|
|
8105
8097
|
/* @__PURE__ */ jsxs(
|
|
8106
8098
|
motion.div,
|
|
8107
8099
|
{
|
|
8108
|
-
...getDockActionMotionProps(dockMotion, {
|
|
8100
|
+
...getDockActionMotionProps(dockMotion, {
|
|
8101
|
+
disabled: isDraggingVolume
|
|
8102
|
+
}),
|
|
8109
8103
|
"data-active": isDraggingVolume,
|
|
8110
8104
|
className: theme.slots.mediaVolume,
|
|
8111
8105
|
children: [
|
|
@@ -8159,9 +8153,12 @@ var DockMediaControls = memo(function DockMediaControls2({
|
|
|
8159
8153
|
transition: dockMotion.transitions.press,
|
|
8160
8154
|
style: {
|
|
8161
8155
|
left: `${effectiveVolume * 100}%`,
|
|
8162
|
-
transition: getDockMediaVolumeThumbPositionTransition(
|
|
8163
|
-
|
|
8164
|
-
|
|
8156
|
+
transition: getDockMediaVolumeThumbPositionTransition(
|
|
8157
|
+
dockMotion,
|
|
8158
|
+
{
|
|
8159
|
+
isDragging: isDraggingVolume
|
|
8160
|
+
}
|
|
8161
|
+
)
|
|
8165
8162
|
}
|
|
8166
8163
|
}
|
|
8167
8164
|
)
|
|
@@ -9723,5 +9720,5 @@ var dockModule = defineModule({
|
|
|
9723
9720
|
});
|
|
9724
9721
|
|
|
9725
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 };
|
|
9726
|
-
//# sourceMappingURL=chunk-
|
|
9727
|
-
//# sourceMappingURL=chunk-
|
|
9723
|
+
//# sourceMappingURL=chunk-VDNE3A7X.js.map
|
|
9724
|
+
//# sourceMappingURL=chunk-VDNE3A7X.js.map
|