@omerdlw/base-framework 3.4.1 → 4.0.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/ambient/index.js +4 -5
- package/dist/background/index.js +3 -4
- package/dist/{chunk-DC4XZPDK.js → chunk-3FSDBJ7V.js} +4 -4
- package/dist/{chunk-DC4XZPDK.js.map → chunk-3FSDBJ7V.js.map} +1 -1
- package/dist/{chunk-GTJMM32W.js → chunk-5TQSH6KE.js} +6 -7
- package/dist/chunk-5TQSH6KE.js.map +1 -0
- package/dist/{chunk-DGVRHX3C.js → chunk-6P3F4JU3.js} +5 -6
- package/dist/{chunk-DGVRHX3C.js.map → chunk-6P3F4JU3.js.map} +1 -1
- package/dist/{chunk-3JLG24KI.js → chunk-AKPH5CEJ.js} +199 -9
- package/dist/chunk-AKPH5CEJ.js.map +1 -0
- package/dist/{chunk-KRHH3UQ6.js → chunk-AWLK2I56.js} +7 -8
- package/dist/{chunk-KRHH3UQ6.js.map → chunk-AWLK2I56.js.map} +1 -1
- package/dist/{chunk-M36DFIJ6.js → chunk-C527JOJQ.js} +4 -4
- package/dist/{chunk-M36DFIJ6.js.map → chunk-C527JOJQ.js.map} +1 -1
- package/dist/{chunk-E2QQJZYY.js → chunk-EXB7VFD3.js} +4 -4
- package/dist/{chunk-E2QQJZYY.js.map → chunk-EXB7VFD3.js.map} +1 -1
- package/dist/chunk-FG2AKFXP.js +108 -0
- package/dist/chunk-FG2AKFXP.js.map +1 -0
- package/dist/chunk-GA5SZ6E2.js +17 -0
- package/dist/{chunk-2E6OASVV.js.map → chunk-GA5SZ6E2.js.map} +1 -1
- package/dist/chunk-GG2ILNK2.js +44 -0
- package/dist/chunk-GG2ILNK2.js.map +1 -0
- package/dist/{chunk-VMR7ZKIF.js → chunk-JA75E4BG.js} +5 -5
- package/dist/{chunk-VMR7ZKIF.js.map → chunk-JA75E4BG.js.map} +1 -1
- package/dist/{chunk-BLWJZHRL.js → chunk-QZA5AIT6.js} +6 -9
- package/dist/chunk-QZA5AIT6.js.map +1 -0
- package/dist/{chunk-ST7QOM4O.js → chunk-T53WFIZN.js} +3 -3
- package/dist/{chunk-ST7QOM4O.js.map → chunk-T53WFIZN.js.map} +1 -1
- package/dist/{chunk-KN4KOTC7.js → chunk-WVED7PDH.js} +4 -4
- package/dist/{chunk-KN4KOTC7.js.map → chunk-WVED7PDH.js.map} +1 -1
- package/dist/{chunk-HPJWMBUS.js → chunk-XIFQMK2Z.js} +34 -37
- package/dist/chunk-XIFQMK2Z.js.map +1 -0
- package/dist/{chunk-7A47AXKI.js → chunk-YKHAFHB7.js} +4 -5
- package/dist/{chunk-7A47AXKI.js.map → chunk-YKHAFHB7.js.map} +1 -1
- package/dist/context-menu/index.js +7 -10
- package/dist/controls/index.js +3 -3
- package/dist/core/error/boundary.d.ts.map +1 -1
- package/dist/core/provider/index.d.ts +3 -8
- package/dist/core/provider/index.d.ts.map +1 -1
- package/dist/dock/index.js +6 -9
- package/dist/error/index.js +2 -5
- package/dist/foundation/recipes/index.d.ts +0 -7
- package/dist/foundation/recipes/index.d.ts.map +1 -1
- package/dist/index.js +15 -18
- package/dist/loading/index.js +2 -4
- package/dist/modal/index.js +10 -12
- package/dist/modal/index.js.map +1 -1
- package/dist/modules/dock/card/icon.d.ts.map +1 -1
- package/dist/modules/dock/card/use-card.d.ts +38 -38
- package/dist/modules/dock/media/controls.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +24 -24
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/surface/controls.d.ts.map +1 -1
- package/dist/modules/dock/surface/header-button.d.ts.map +1 -1
- package/dist/modules/dock/theme.d.ts +14 -14
- package/dist/modules/index.js +13 -16
- package/dist/modules/modal/container.d.ts.map +1 -1
- package/dist/notification/index.js +4 -4
- package/dist/overlay-ZCMQVNYT.js +12 -0
- package/dist/{overlay-YMLS3SAQ.js.map → overlay-ZCMQVNYT.js.map} +1 -1
- package/dist/provider/index.js +3 -8
- package/dist/react/theme/index.d.ts +7 -2
- package/dist/react/theme/index.d.ts.map +1 -1
- package/dist/react/theme/parts.d.ts +89 -0
- package/dist/react/theme/parts.d.ts.map +1 -0
- package/dist/recipes/index.js +1 -115
- package/dist/recipes/index.js.map +1 -1
- package/dist/theme/index.js +1 -1
- package/docs/README.md +11 -12
- package/docs/architecture-and-rules.md +8 -8
- package/docs/core-engine.md +11 -13
- package/docs/custom-modules.md +1 -1
- package/docs/design.md +60 -153
- package/docs/getting-started.md +3 -5
- package/docs/modules/README.md +1 -1
- package/docs/modules/background.md +1 -1
- package/docs/modules/context-menu.md +1 -1
- package/docs/modules/dock.md +23 -23
- package/docs/modules/error-boundary.md +1 -1
- package/docs/modules/loading.md +1 -1
- package/docs/modules/modal.md +1 -1
- package/package.json +1 -7
- package/templates/AGENTS.md +4 -3
- package/MIGRATION.md +0 -99
- package/dist/chunk-2E6OASVV.js +0 -17
- package/dist/chunk-3JLG24KI.js.map +0 -1
- package/dist/chunk-6LWCTP2Y.js +0 -448
- package/dist/chunk-6LWCTP2Y.js.map +0 -1
- package/dist/chunk-BLWJZHRL.js.map +0 -1
- package/dist/chunk-EBNZXYLT.js +0 -704
- package/dist/chunk-EBNZXYLT.js.map +0 -1
- package/dist/chunk-FLYL76ZT.js +0 -139
- package/dist/chunk-FLYL76ZT.js.map +0 -1
- package/dist/chunk-GTJMM32W.js.map +0 -1
- package/dist/chunk-HPJWMBUS.js.map +0 -1
- package/dist/chunk-ICFPSAJZ.js +0 -112
- package/dist/chunk-ICFPSAJZ.js.map +0 -1
- package/dist/chunk-S2ZOLTTS.js +0 -140
- package/dist/chunk-S2ZOLTTS.js.map +0 -1
- package/dist/foundation/recipes/anatomy.d.ts +0 -139
- package/dist/foundation/recipes/anatomy.d.ts.map +0 -1
- package/dist/foundation/recipes/define.d.ts +0 -133
- package/dist/foundation/recipes/define.d.ts.map +0 -1
- package/dist/overlay-YMLS3SAQ.js +0 -14
- package/dist/react/ui/components/avatar.d.ts +0 -10
- package/dist/react/ui/components/avatar.d.ts.map +0 -1
- package/dist/react/ui/components/button.d.ts +0 -6
- package/dist/react/ui/components/button.d.ts.map +0 -1
- package/dist/react/ui/components/carousel.d.ts +0 -27
- package/dist/react/ui/components/carousel.d.ts.map +0 -1
- package/dist/react/ui/components/checkbox.d.ts +0 -10
- package/dist/react/ui/components/checkbox.d.ts.map +0 -1
- package/dist/react/ui/components/icon.d.ts +0 -6
- package/dist/react/ui/components/icon.d.ts.map +0 -1
- package/dist/react/ui/components/image.d.ts +0 -6
- package/dist/react/ui/components/image.d.ts.map +0 -1
- package/dist/react/ui/components/indicator.d.ts +0 -55
- package/dist/react/ui/components/indicator.d.ts.map +0 -1
- package/dist/react/ui/components/input.d.ts +0 -10
- package/dist/react/ui/components/input.d.ts.map +0 -1
- package/dist/react/ui/components/loader.d.ts +0 -10
- package/dist/react/ui/components/loader.d.ts.map +0 -1
- package/dist/react/ui/components/segmented.d.ts +0 -6
- package/dist/react/ui/components/segmented.d.ts.map +0 -1
- package/dist/react/ui/components/select/options.d.ts +0 -22
- package/dist/react/ui/components/select/options.d.ts.map +0 -1
- package/dist/react/ui/components/select/select.d.ts +0 -6
- package/dist/react/ui/components/select/select.d.ts.map +0 -1
- package/dist/react/ui/components/skeleton.d.ts +0 -10
- package/dist/react/ui/components/skeleton.d.ts.map +0 -1
- package/dist/react/ui/components/switch.d.ts +0 -6
- package/dist/react/ui/components/switch.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/group.d.ts +0 -35
- package/dist/react/ui/components/tooltip/group.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/placement.d.ts +0 -42
- package/dist/react/ui/components/tooltip/placement.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/slot.d.ts +0 -23
- package/dist/react/ui/components/tooltip/slot.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/tooltip.d.ts +0 -13
- package/dist/react/ui/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/react/ui/index.d.ts +0 -20
- package/dist/react/ui/index.d.ts.map +0 -1
- package/dist/react/ui/provider.d.ts +0 -22
- package/dist/react/ui/provider.d.ts.map +0 -1
- package/dist/react/ui/types.d.ts +0 -341
- package/dist/react/ui/types.d.ts.map +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -2259
- package/dist/ui/index.js.map +0 -1
|
@@ -1,15 +1,12 @@
|
|
|
1
|
+
import { useNotificationVisible } from './chunk-JA75E4BG.js';
|
|
2
|
+
import { useOptionalLoadingActions, useOptionalLoadingState } from './chunk-YKHAFHB7.js';
|
|
3
|
+
import { usePortalTarget } from './chunk-T53WFIZN.js';
|
|
1
4
|
import { pathOf, createNavigator, NAVIGATION_STATUS } from './chunk-UWX7GCNX.js';
|
|
2
|
-
import { useNotificationVisible } from './chunk-VMR7ZKIF.js';
|
|
3
|
-
import { useOptionalLoadingActions, useOptionalLoadingState } from './chunk-7A47AXKI.js';
|
|
4
5
|
import { useOptionalMediaState, useOptionalMediaActions } from './chunk-C3SEBNF5.js';
|
|
5
|
-
import {
|
|
6
|
-
import { usePortalTarget } from './chunk-ST7QOM4O.js';
|
|
6
|
+
import { cn } from './chunk-GG2ILNK2.js';
|
|
7
7
|
import { defineModule, useModule, useRegistryEntries, useModuleRegistration } from './chunk-ED32WLAD.js';
|
|
8
8
|
import { useRequiredContext, useIsFullscreenStateActive, useClickOutside, useStore, useGlobalEvent } from './chunk-JWUKAZ3A.js';
|
|
9
|
-
import {
|
|
10
|
-
import { Icon, Spinner } from './chunk-6LWCTP2Y.js';
|
|
11
|
-
import { cn } from './chunk-ICFPSAJZ.js';
|
|
12
|
-
import { defineThemeSpec, useModuleMotion, useTheme, useOptionalModuleMotion } from './chunk-3JLG24KI.js';
|
|
9
|
+
import { defineThemeSpec, useModuleMotion, useTheme, ThemeButton, ThemeIcon, useOptionalModuleMotion, ThemeSpinner, ThemeTooltip } from './chunk-AKPH5CEJ.js';
|
|
13
10
|
import { createStore, gpuTransform, normalizePath, cssTransition, trimToNull, report, isImageIconSource, globalEvents, clamp, EVENT_TYPES, toUserMessage, createScheduler } from './chunk-S67HGKJ2.js';
|
|
14
11
|
import { getOrCreateGlobalContext } from './chunk-J3VTDBC6.js';
|
|
15
12
|
import { isObject, isPlainObject, shallowEqual, toArray, getOrInsert } from './chunk-YHWA7FXX.js';
|
|
@@ -975,9 +972,9 @@ function getSkipForwardTime(current, duration) {
|
|
|
975
972
|
return duration > 0 ? Math.min(duration, current + MEDIA_SKIP_SECONDS) : current + MEDIA_SKIP_SECONDS;
|
|
976
973
|
}
|
|
977
974
|
function getVolumeIcon(effectiveVolume) {
|
|
978
|
-
if (effectiveVolume === 0) return "
|
|
979
|
-
if (effectiveVolume < LOW_VOLUME_THRESHOLD) return "
|
|
980
|
-
return "
|
|
975
|
+
if (effectiveVolume === 0) return "volumeMuted";
|
|
976
|
+
if (effectiveVolume < LOW_VOLUME_THRESHOLD) return "volumeSmall";
|
|
977
|
+
return "volumeLoud";
|
|
981
978
|
}
|
|
982
979
|
function getProgressRatio(current, total) {
|
|
983
980
|
return total > 0 ? clamp(current / total, 0, 1) : 0;
|
|
@@ -2006,7 +2003,7 @@ function DockSurfaceHeaderButton(t0) {
|
|
|
2006
2003
|
}
|
|
2007
2004
|
let t8;
|
|
2008
2005
|
if ($[13] !== icon) {
|
|
2009
|
-
t8 = icon && (typeof icon === "string" ? /* @__PURE__ */ jsx(
|
|
2006
|
+
t8 = icon && (typeof icon === "string" ? /* @__PURE__ */ jsx(ThemeIcon, { icon, size: CONTROL_ICON_SIZE }) : icon);
|
|
2010
2007
|
$[13] = icon;
|
|
2011
2008
|
$[14] = t8;
|
|
2012
2009
|
} else {
|
|
@@ -2014,7 +2011,7 @@ function DockSurfaceHeaderButton(t0) {
|
|
|
2014
2011
|
}
|
|
2015
2012
|
let t9;
|
|
2016
2013
|
if ($[15] !== children || $[16] !== disabled || $[17] !== isText || $[18] !== t5 || $[19] !== t6 || $[20] !== t7 || $[21] !== t8 || $[22] !== theme.styles.controlHeaderButton) {
|
|
2017
|
-
t9 = /* @__PURE__ */ jsxs(
|
|
2014
|
+
t9 = /* @__PURE__ */ jsxs(ThemeButton, { type: "button", onClick: t5, disabled, "aria-label": t6, "data-text": isText, className: t7, style: theme.styles.controlHeaderButton, children: [
|
|
2018
2015
|
t8,
|
|
2019
2016
|
children
|
|
2020
2017
|
] });
|
|
@@ -2110,14 +2107,14 @@ function DockSurfaceControls(t0) {
|
|
|
2110
2107
|
hasHeaderAction && /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.controlsAction, initial: "hidden", animate: "visible", exit: "exit", className: cn(theme.slots.controlAction, radiusFor("action")), children: /* @__PURE__ */ jsx(DockSurfaceHeaderRadiusContext, { value: radiusFor("action"), children: isValidElement(resolvedHeaderAction) ? cloneElement(resolvedHeaderAction, {
|
|
2111
2108
|
className: applyControlRadius(resolvedHeaderAction.props?.className, radiusFor("action"))
|
|
2112
2109
|
}) : resolvedHeaderAction }) }, "dock-surface-custom-action"),
|
|
2113
|
-
hasBack && /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.controlsBack, initial: "hidden", animate: "visible", exit: "exit", className: cn(theme.slots.controlBack, radiusFor("back")), children: /* @__PURE__ */ jsx(
|
|
2110
|
+
hasBack && /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.controlsBack, initial: "hidden", animate: "visible", exit: "exit", className: cn(theme.slots.controlBack, radiusFor("back")), children: /* @__PURE__ */ jsx(ThemeButton, { type: "button", onClick: (e) => {
|
|
2114
2111
|
e.stopPropagation();
|
|
2115
2112
|
resolvedBack();
|
|
2116
|
-
}, className: cn(theme.slots.controlButton, radiusFor("back")), "aria-label": resolvedBackLabel, title: resolvedBackLabel, style: theme.styles.controlButton, children: /* @__PURE__ */ jsx(
|
|
2117
|
-
hasClose && /* @__PURE__ */ jsx(motion.div, { layout: "position", transition: getDockLayoutTransition(dockMotion), variants: dockMotion.variants.controlsClose, initial: "hidden", animate: "visible", exit: "exit", className: cn(theme.slots.controlClose, radiusFor("close")), children: /* @__PURE__ */ jsx(
|
|
2113
|
+
}, className: cn(theme.slots.controlButton, radiusFor("back")), "aria-label": resolvedBackLabel, title: resolvedBackLabel, style: theme.styles.controlButton, children: /* @__PURE__ */ jsx(ThemeIcon, { icon: "back", size: CONTROL_ICON_SIZE, className: theme.slots.controlBackIcon }) }) }, "dock-surface-back"),
|
|
2114
|
+
hasClose && /* @__PURE__ */ jsx(motion.div, { layout: "position", transition: getDockLayoutTransition(dockMotion), variants: dockMotion.variants.controlsClose, initial: "hidden", animate: "visible", exit: "exit", className: cn(theme.slots.controlClose, radiusFor("close")), children: /* @__PURE__ */ jsx(ThemeButton, { type: "button", onClick: (e_0) => {
|
|
2118
2115
|
e_0.stopPropagation();
|
|
2119
2116
|
resolvedClose();
|
|
2120
|
-
}, className: cn(theme.slots.controlButton, radiusFor("close")), "aria-label": resolvedCloseLabel, title: resolvedCloseLabel, style: theme.styles.controlButton, children: /* @__PURE__ */ jsx(
|
|
2117
|
+
}, className: cn(theme.slots.controlButton, radiusFor("close")), "aria-label": resolvedCloseLabel, title: resolvedCloseLabel, style: theme.styles.controlButton, children: /* @__PURE__ */ jsx(ThemeIcon, { icon: "close", size: CONTROL_ICON_SIZE }) }) }, "dock-surface-close")
|
|
2121
2118
|
] }) }, "dock-surface-controls-container");
|
|
2122
2119
|
$[9] = activeItem;
|
|
2123
2120
|
$[10] = backLabel;
|
|
@@ -2656,7 +2653,7 @@ function DockSurfaceLoader() {
|
|
|
2656
2653
|
const theme = useDockTheme();
|
|
2657
2654
|
let t0;
|
|
2658
2655
|
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2659
|
-
t0 = /* @__PURE__ */ jsx(
|
|
2656
|
+
t0 = /* @__PURE__ */ jsx(ThemeSpinner, {});
|
|
2660
2657
|
$[0] = t0;
|
|
2661
2658
|
} else {
|
|
2662
2659
|
t0 = $[0];
|
|
@@ -3324,7 +3321,7 @@ function DockMediaControls(t0) {
|
|
|
3324
3321
|
}
|
|
3325
3322
|
let t14;
|
|
3326
3323
|
if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3327
|
-
t14 = /* @__PURE__ */ jsx(
|
|
3324
|
+
t14 = /* @__PURE__ */ jsx(ThemeIcon, { icon: "rewind", size: CONTROL_ICON_SIZE });
|
|
3328
3325
|
$[24] = t14;
|
|
3329
3326
|
} else {
|
|
3330
3327
|
t14 = $[24];
|
|
@@ -3349,7 +3346,7 @@ function DockMediaControls(t0) {
|
|
|
3349
3346
|
}
|
|
3350
3347
|
let t17;
|
|
3351
3348
|
if ($[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3352
|
-
t17 = /* @__PURE__ */ jsx(
|
|
3349
|
+
t17 = /* @__PURE__ */ jsx(ThemeIcon, { icon: "forward", size: CONTROL_ICON_SIZE });
|
|
3353
3350
|
$[31] = t17;
|
|
3354
3351
|
} else {
|
|
3355
3352
|
t17 = $[31];
|
|
@@ -3395,7 +3392,7 @@ function DockMediaControls(t0) {
|
|
|
3395
3392
|
const t23 = isMuted ? "Unmute" : "Mute";
|
|
3396
3393
|
let t24;
|
|
3397
3394
|
if ($[44] !== volumeIcon) {
|
|
3398
|
-
t24 = /* @__PURE__ */ jsx(
|
|
3395
|
+
t24 = /* @__PURE__ */ jsx(ThemeIcon, { icon: volumeIcon, size: CONTROL_ICON_SIZE });
|
|
3399
3396
|
$[44] = volumeIcon;
|
|
3400
3397
|
$[45] = t24;
|
|
3401
3398
|
} else {
|
|
@@ -3403,7 +3400,7 @@ function DockMediaControls(t0) {
|
|
|
3403
3400
|
}
|
|
3404
3401
|
let t25;
|
|
3405
3402
|
if ($[46] !== handleToggleMute || $[47] !== muteTitle || $[48] !== t23 || $[49] !== t24 || $[50] !== theme.slots.mediaMute) {
|
|
3406
|
-
t25 = /* @__PURE__ */ jsx(
|
|
3403
|
+
t25 = /* @__PURE__ */ jsx(ThemeButton, { type: "button", onClick: handleToggleMute, className: theme.slots.mediaMute, "aria-label": t23, title: muteTitle, children: t24 });
|
|
3407
3404
|
$[46] = handleToggleMute;
|
|
3408
3405
|
$[47] = muteTitle;
|
|
3409
3406
|
$[48] = t23;
|
|
@@ -3551,7 +3548,7 @@ function DockMediaControls(t0) {
|
|
|
3551
3548
|
}
|
|
3552
3549
|
let t44;
|
|
3553
3550
|
if ($[97] !== dockMotion || $[98] !== handleTogglePip || $[99] !== isPipActive || $[100] !== isPipSupported || $[101] !== theme.slots.mediaToggle) {
|
|
3554
|
-
t44 = isPipSupported && /* @__PURE__ */ jsx(motion.button, { ...getDockActionMotionProps(dockMotion), type: "button", onClick: () => void handleTogglePip(), "data-active": isPipActive, className: theme.slots.mediaToggle, "aria-label": isPipActive ? "Exit Picture-in-Picture" : "Enter Picture-in-Picture", title: isPipActive ? "Exit Picture-in-Picture" : "Picture-in-Picture", children: /* @__PURE__ */ jsx(
|
|
3551
|
+
t44 = isPipSupported && /* @__PURE__ */ jsx(motion.button, { ...getDockActionMotionProps(dockMotion), type: "button", onClick: () => void handleTogglePip(), "data-active": isPipActive, className: theme.slots.mediaToggle, "aria-label": isPipActive ? "Exit Picture-in-Picture" : "Enter Picture-in-Picture", title: isPipActive ? "Exit Picture-in-Picture" : "Picture-in-Picture", children: /* @__PURE__ */ jsx(ThemeIcon, { icon: "pip", size: CONTROL_ICON_SIZE }) });
|
|
3555
3552
|
$[97] = dockMotion;
|
|
3556
3553
|
$[98] = handleTogglePip;
|
|
3557
3554
|
$[99] = isPipActive;
|
|
@@ -3573,7 +3570,7 @@ function DockMediaControls(t0) {
|
|
|
3573
3570
|
const t47 = isLoop ? "Loop: On" : "Loop: Off";
|
|
3574
3571
|
let t48;
|
|
3575
3572
|
if ($[105] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3576
|
-
t48 = /* @__PURE__ */ jsx(
|
|
3573
|
+
t48 = /* @__PURE__ */ jsx(ThemeIcon, { icon: "repeat", size: CONTROL_ICON_SIZE });
|
|
3577
3574
|
$[105] = t48;
|
|
3578
3575
|
} else {
|
|
3579
3576
|
t48 = $[105];
|
|
@@ -4470,7 +4467,7 @@ function DockIcon(t0) {
|
|
|
4470
4467
|
return t9;
|
|
4471
4468
|
}
|
|
4472
4469
|
function renderIconNode(icon, size) {
|
|
4473
|
-
return typeof icon === "string" ? /* @__PURE__ */ jsx(
|
|
4470
|
+
return typeof icon === "string" ? /* @__PURE__ */ jsx(ThemeIcon, { icon, size }) : icon;
|
|
4474
4471
|
}
|
|
4475
4472
|
function DockCommand(t0) {
|
|
4476
4473
|
const $ = c(26);
|
|
@@ -4553,7 +4550,7 @@ function DockCommand(t0) {
|
|
|
4553
4550
|
}
|
|
4554
4551
|
let t12;
|
|
4555
4552
|
if ($[22] !== t11 || $[23] !== t2 || $[24] !== theme.slots.commandTooltip) {
|
|
4556
|
-
t12 = /* @__PURE__ */ jsx(
|
|
4553
|
+
t12 = /* @__PURE__ */ jsx(ThemeTooltip, { className: t1, sideOffset: 6, text: t2, children: t11 });
|
|
4557
4554
|
$[22] = t11;
|
|
4558
4555
|
$[23] = t2;
|
|
4559
4556
|
$[24] = theme.slots.commandTooltip;
|
|
@@ -5165,7 +5162,7 @@ var HEADER_IDENTITY_STYLE = {
|
|
|
5165
5162
|
position: "relative"
|
|
5166
5163
|
};
|
|
5167
5164
|
function resolvePlaybackIcon(isPlaying) {
|
|
5168
|
-
return isPlaying ? "
|
|
5165
|
+
return isPlaying ? "pause" : "play";
|
|
5169
5166
|
}
|
|
5170
5167
|
function resolveIconAriaLabel(showVideoIcon, isPlaying) {
|
|
5171
5168
|
if (!showVideoIcon) return "Open";
|
|
@@ -8032,7 +8029,7 @@ function DockBreadcrumbsCard(t0) {
|
|
|
8032
8029
|
event.preventDefault();
|
|
8033
8030
|
onNavigate(crumb.path);
|
|
8034
8031
|
}, className: theme.slots.breadcrumbsLink, children: crumb.title }),
|
|
8035
|
-
!isLast && /* @__PURE__ */ jsx(
|
|
8032
|
+
!isLast && /* @__PURE__ */ jsx(ThemeIcon, { icon: "next", size: SEPARATOR_ICON_SIZE, className: theme.slots.breadcrumbsSeparator })
|
|
8036
8033
|
] }, crumb.id || crumb.path);
|
|
8037
8034
|
};
|
|
8038
8035
|
$[21] = dockMotion;
|
|
@@ -8174,7 +8171,7 @@ function createGuardStatus({
|
|
|
8174
8171
|
guardAction,
|
|
8175
8172
|
title = "Navigation Blocked",
|
|
8176
8173
|
description = "You have unsaved changes. Are you sure you want to leave?",
|
|
8177
|
-
icon = "
|
|
8174
|
+
icon = "danger",
|
|
8178
8175
|
style,
|
|
8179
8176
|
onConfirm,
|
|
8180
8177
|
onCancel,
|
|
@@ -8214,7 +8211,7 @@ function createConnectionStatus(type) {
|
|
|
8214
8211
|
type,
|
|
8215
8212
|
title: "Connection Lost",
|
|
8216
8213
|
description: "You are currently offline",
|
|
8217
|
-
icon: /* @__PURE__ */ jsx(
|
|
8214
|
+
icon: /* @__PURE__ */ jsx(ThemeIcon, { icon: "wifiOff", size: CONNECTION_ICON_SIZE }),
|
|
8218
8215
|
style: getStatusTheme()
|
|
8219
8216
|
});
|
|
8220
8217
|
}
|
|
@@ -8222,7 +8219,7 @@ function createConnectionStatus(type) {
|
|
|
8222
8219
|
type: "ONLINE",
|
|
8223
8220
|
title: "Connection Restored",
|
|
8224
8221
|
description: "You are back online",
|
|
8225
|
-
icon: /* @__PURE__ */ jsx(
|
|
8222
|
+
icon: /* @__PURE__ */ jsx(ThemeIcon, { icon: "wifi", size: CONNECTION_ICON_SIZE }),
|
|
8226
8223
|
style: getStatusTheme(),
|
|
8227
8224
|
isOverlay: false
|
|
8228
8225
|
});
|
|
@@ -8989,7 +8986,7 @@ function openDockGuardConfirmation({
|
|
|
8989
8986
|
from,
|
|
8990
8987
|
title: "Navigation Blocked",
|
|
8991
8988
|
message: message || DEFAULT_UNSAVED_MESSAGE,
|
|
8992
|
-
icon: "
|
|
8989
|
+
icon: "danger",
|
|
8993
8990
|
cancelText: "Stay",
|
|
8994
8991
|
confirmText: "Leave",
|
|
8995
8992
|
onCancel: () => {
|
|
@@ -9654,7 +9651,7 @@ function createDockTopology(items = [], {
|
|
|
9654
9651
|
};
|
|
9655
9652
|
}
|
|
9656
9653
|
var DEFAULT_STATUS_TYPE = "STATUS";
|
|
9657
|
-
var DANGER_ICON = "
|
|
9654
|
+
var DANGER_ICON = "danger";
|
|
9658
9655
|
function stripTitleEcho(text) {
|
|
9659
9656
|
return text.replace(/^Something went wrong\.?\s*/i, "") || text;
|
|
9660
9657
|
}
|
|
@@ -9806,7 +9803,7 @@ function subscribeToNotFoundStatusEvents({
|
|
|
9806
9803
|
isOverlay: true,
|
|
9807
9804
|
title: eventData?.title || "404",
|
|
9808
9805
|
description: eventData?.description || "This page does not exist or has moved",
|
|
9809
|
-
icon: eventData?.icon || "
|
|
9806
|
+
icon: eventData?.icon || "forbidden",
|
|
9810
9807
|
style: getStatusTheme(),
|
|
9811
9808
|
action: currentNotFoundAction ? () => {
|
|
9812
9809
|
const NotFoundAction = currentNotFoundAction;
|
|
@@ -15127,7 +15124,7 @@ function ActionButton(t0) {
|
|
|
15127
15124
|
}
|
|
15128
15125
|
let t4;
|
|
15129
15126
|
if ($[9] !== t1 || $[10] !== t2 || $[11] !== t3) {
|
|
15130
|
-
t4 = /* @__PURE__ */ jsx(
|
|
15127
|
+
t4 = /* @__PURE__ */ jsx(ThemeButton, { type: "button", onClick: t1, className: t2, children: t3 });
|
|
15131
15128
|
$[9] = t1;
|
|
15132
15129
|
$[10] = t2;
|
|
15133
15130
|
$[11] = t3;
|
|
@@ -16028,5 +16025,5 @@ function useDockBanner(banner, options) {
|
|
|
16028
16025
|
}
|
|
16029
16026
|
|
|
16030
16027
|
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 };
|
|
16031
|
-
//# sourceMappingURL=chunk-
|
|
16032
|
-
//# sourceMappingURL=chunk-
|
|
16028
|
+
//# sourceMappingURL=chunk-XIFQMK2Z.js.map
|
|
16029
|
+
//# sourceMappingURL=chunk-XIFQMK2Z.js.map
|