@almadar/ui 6.55.0 → 6.57.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/{ArbitraryClassCompiler-DvzdeHxc.d.ts → ArbitraryClassCompiler-tChQ3nVq.d.ts} +15 -1
- package/dist/{FileTree-DUi7e7Z8.d.ts → FileTree-BSfgp-HH.d.ts} +29 -2
- package/dist/Typography-LZTP72Y4.js +5 -0
- package/dist/{UISlotRenderer-QTHFT6Z4.js → UISlotRenderer-NCGDIXN4.js} +8 -8
- package/dist/avl/index.cjs +4832 -4212
- package/dist/avl/index.d.ts +74 -5
- package/dist/avl/index.js +68 -711
- package/dist/{avl-schema-parser-C0wnAp5x.d.ts → avl-schema-parser-CH1QoZw1.d.ts} +1 -1
- package/dist/{chunk-HCSJHRC4.js → chunk-4ZGXIW3B.js} +1 -1
- package/dist/{chunk-RNY5LJXJ.js → chunk-723MJUU3.js} +1 -1
- package/dist/{chunk-6EV3OEBQ.js → chunk-CHNC4UYE.js} +3 -2
- package/dist/{chunk-SGJHVPHC.js → chunk-GZGDBS4S.js} +2 -2
- package/dist/{chunk-Y53Q55H5.js → chunk-HA7CJWQX.js} +1123 -1121
- package/dist/{chunk-JRW33U35.js → chunk-I5QOYW2Z.js} +1 -1
- package/dist/{chunk-KQXXO42S.js → chunk-KJGVLXEN.js} +78 -1
- package/dist/{chunk-HRCR53OW.js → chunk-LZRW6GXG.js} +18 -3
- package/dist/{chunk-2LFBQ4IS.js → chunk-MZIDOJMD.js} +2 -2
- package/dist/{chunk-QGH4NAQO.js → chunk-N7JIG57B.js} +9 -4
- package/dist/{chunk-XZKGRSIO.js → chunk-PYJ2UQWM.js} +2487 -1156
- package/dist/{chunk-FQM37C56.js → chunk-RHP5WL55.js} +61 -55
- package/dist/chunk-YYYHH5BA.js +2519 -0
- package/dist/{cn-ClXGlIOY.d.ts → cn-DIql5232.d.ts} +152 -24
- package/dist/components/index.cjs +6876 -3072
- package/dist/components/index.d.ts +45 -94
- package/dist/components/index.js +14 -16
- package/dist/context/index.cjs +23 -0
- package/dist/context/index.d.ts +2 -2
- package/dist/context/index.js +20 -1
- package/dist/hooks/index.cjs +2544 -7
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +7 -6
- package/dist/lib/drawable/three/index.cjs +22 -6
- package/dist/lib/drawable/three/index.d.ts +1 -1
- package/dist/lib/drawable/three/index.js +7 -7
- package/dist/lib/index.cjs +18 -3
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +3 -4
- package/dist/locales/index.cjs +54 -9
- package/dist/locales/index.js +2 -2489
- package/dist/providers/index.cjs +4035 -2382
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js +24 -13
- package/dist/runtime/index.cjs +4092 -2447
- package/dist/runtime/index.d.ts +0 -13
- package/dist/runtime/index.js +11 -10
- package/dist/ssr/index.cjs +23 -6
- package/dist/ssr/index.js +23 -6
- package/dist/{useEventBus-JUAH3EFW.js → useEventBus-SWRN475O.js} +1 -1
- package/locales/ar.json +18 -3
- package/locales/en.json +18 -3
- package/locales/sl.json +18 -3
- package/package.json +6 -6
- package/tailwind-preset.cjs +6 -0
- package/themes/_fonts.css +1 -1
- package/themes/_presets.css +1 -0
- package/themes/kflow.css +299 -0
- package/dist/Typography-7PDT62PG.js +0 -5
- package/dist/chunk-F4ZTPKZL.js +0 -284
- package/dist/chunk-OKWD7LPO.js +0 -80
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { ReactNode } from 'react';
|
|
2
2
|
import { EntityRow, SExpr, EventPayload, EffectTrace, SurfaceMode } from '@almadar/core';
|
|
3
3
|
export { ANONYMOUS_USER, SurfaceMode, comparePathSpecificity, matchPath, matchPathAmong } from '@almadar/core';
|
|
4
|
-
import { U as UIThemeDefinition } from '../ArbitraryClassCompiler-
|
|
5
|
-
export { A as ARBITRARY_CLASS_STYLE_ID, a as ArbitraryClassCompiler, b as ArbitraryClassCompilerProvider, c as ArbitraryClassCompilerProviderProps, d as CurrentPagePathContext, e as CurrentPagePathProvider, f as CurrentPagePathProviderProps, g as DesignThemeProvider, O as OrbitalThemeProvider, h as OrbitalThemeProviderProps,
|
|
4
|
+
import { U as UIThemeDefinition } from '../ArbitraryClassCompiler-tChQ3nVq.js';
|
|
5
|
+
export { A as ARBITRARY_CLASS_STYLE_ID, a as ArbitraryClassCompiler, b as ArbitraryClassCompilerProvider, c as ArbitraryClassCompilerProviderProps, d as CurrentPagePathContext, e as CurrentPagePathProvider, f as CurrentPagePathProviderProps, g as DesignThemeProvider, O as OrbitalThemeProvider, h as OrbitalThemeProviderProps, v as resetArbitraryClassStyles, u as useArbitraryClassStyles, n as useCurrentPagePath, o as useDesignTheme } from '../ArbitraryClassCompiler-tChQ3nVq.js';
|
|
6
6
|
import { b as UserData } from '../UserContext-D566nfWA.js';
|
|
7
7
|
export { U as UserContext, a as UserContextValue, c as UserProvider, d as UserProviderProps, u as useHasPermission, e as useHasRole, f as useUser, g as useUserForEvaluation } from '../UserContext-D566nfWA.js';
|
|
8
8
|
import { E as EventBusContextType } from '../NavStackContext-04NLdXsY.js';
|
package/dist/providers/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { arbitraryClassesOf } from '../chunk-D2E44ODB.js';
|
|
2
|
-
import { useGameAudio, SuspenseConfigProvider } from '../chunk-
|
|
3
|
-
import { Box } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
2
|
+
import { useGameAudio, SuspenseConfigProvider } from '../chunk-PYJ2UQWM.js';
|
|
3
|
+
import { Box } from '../chunk-HA7CJWQX.js';
|
|
4
|
+
import '../chunk-4ZGXIW3B.js';
|
|
5
|
+
import '../chunk-I5QOYW2Z.js';
|
|
6
6
|
import '../chunk-XJTHMW4G.js';
|
|
7
|
-
import { setGlobalEventBus, useEventBus } from '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import { setGlobalEventBus, useEventBus } from '../chunk-CHNC4UYE.js';
|
|
8
|
+
import '../chunk-KJGVLXEN.js';
|
|
9
9
|
import { registerCheck, recordTransition, bindEventBus, bindTraitStateGetter } from '../chunk-Q47ZN2DW.js';
|
|
10
|
-
import '../chunk-64WACXM7.js';
|
|
10
|
+
import { cn } from '../chunk-64WACXM7.js';
|
|
11
11
|
import { resolveThemeForRuntime, themeTokensToCssVars } from '../chunk-V3FGTQUE.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-723MJUU3.js';
|
|
13
|
+
import '../chunk-LZRW6GXG.js';
|
|
14
14
|
import { useOfflineExecutor } from '../chunk-PQKU62LK.js';
|
|
15
15
|
import '../chunk-PEST66PN.js';
|
|
16
16
|
import '../chunk-QPXIAUJD.js';
|
|
17
17
|
import React17, { createContext, useRef, useCallback, useMemo, useEffect, useState, useContext, useSyncExternalStore } from 'react';
|
|
18
|
-
import { ThemeProvider, useThemeScope, useTheme, ThemeScopeContext } from '@almadar/ui/context';
|
|
18
|
+
import { ThemeProvider, useThemeScope, useTheme, registryKeyTheme, themeHasMode, ThemeScopeContext } from '@almadar/ui/context';
|
|
19
19
|
export { DesignThemeProvider, useDesignTheme } from '@almadar/ui/context';
|
|
20
20
|
import { createLogger } from '@almadar/logger';
|
|
21
21
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -614,15 +614,18 @@ function OrbitalThemeProvider({ theme: declared, override, children }) {
|
|
|
614
614
|
const hostOverride = override || parent.override || void 0;
|
|
615
615
|
const theme = hostOverride ?? declared;
|
|
616
616
|
const resolved = resolveThemeForRuntime(theme);
|
|
617
|
-
const { resolvedMode } = useTheme();
|
|
617
|
+
const { resolvedMode, availableThemes } = useTheme();
|
|
618
618
|
const darkTypeScale = resolvedMode === "dark" ? resolved?.variants?.dark?.typeScale : void 0;
|
|
619
619
|
useFontImport(darkTypeScale?.fontImport ?? resolved?.tokens.typeScale?.fontImport);
|
|
620
620
|
if (isThemeRegistryKey(theme)) {
|
|
621
|
+
const keyTheme = registryKeyTheme(theme, availableThemes);
|
|
622
|
+
const mode = keyTheme === void 0 ? parent.mode : themeHasMode(keyTheme.theme, resolvedMode) ? resolvedMode : keyTheme.mode;
|
|
623
|
+
const key = keyTheme === void 0 ? theme : `${keyTheme.theme.name}-${mode}`;
|
|
621
624
|
return /* @__PURE__ */ jsx(
|
|
622
625
|
ThemeScopeContext.Provider,
|
|
623
626
|
{
|
|
624
|
-
value: hostOverride ? { ...parent, theme, vars: void 0, override:
|
|
625
|
-
children: /* @__PURE__ */ jsx(Box, { "data-theme":
|
|
627
|
+
value: hostOverride ? { ...parent, theme: key, mode, vars: void 0, override: key } : { ...parent, theme: key, mode },
|
|
628
|
+
children: /* @__PURE__ */ jsx(Box, { "data-theme": key, className: cn(SURFACE, keyTheme && mode), children })
|
|
626
629
|
}
|
|
627
630
|
);
|
|
628
631
|
}
|
|
@@ -1375,6 +1378,14 @@ var NavStackRouterBridge = ({
|
|
|
1375
1378
|
},
|
|
1376
1379
|
[routerNavigate]
|
|
1377
1380
|
);
|
|
1381
|
+
const eventBus = useEventBus();
|
|
1382
|
+
useEffect(
|
|
1383
|
+
() => eventBus.on("UI:NAVIGATE", (event) => {
|
|
1384
|
+
const url = event.payload?.url;
|
|
1385
|
+
if (typeof url === "string" && url.length > 0) routerNavigate(url);
|
|
1386
|
+
}),
|
|
1387
|
+
[eventBus, routerNavigate]
|
|
1388
|
+
);
|
|
1378
1389
|
return /* @__PURE__ */ jsx(
|
|
1379
1390
|
NavStackProvider,
|
|
1380
1391
|
{
|