@almadar/ui 4.33.0 → 4.34.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/avl/index.cjs +1484 -1527
- package/dist/avl/index.css +1 -1
- package/dist/avl/index.js +404 -447
- package/dist/components/index.cjs +1280 -1307
- package/dist/components/index.css +1 -1
- package/dist/components/index.js +381 -408
- package/dist/components/templates/DashboardLayout.d.ts +0 -7
- package/dist/context/index.cjs +0 -10
- package/dist/context/index.d.ts +0 -1
- package/dist/context/index.js +1 -8
- package/dist/docs/index.cjs +2 -2
- package/dist/docs/index.js +2 -2
- package/dist/marketing/index.cjs +2 -2
- package/dist/marketing/index.js +2 -2
- package/dist/providers/index.cjs +1105 -1132
- package/dist/providers/index.css +1 -1
- package/dist/providers/index.js +373 -400
- package/dist/runtime/createClientEffectHandlers.d.ts +1 -9
- package/dist/runtime/index.cjs +1146 -1189
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/index.js +382 -425
- package/package.json +14 -8
- package/dist/context/CurrentPagePathContext.d.ts +0 -9
|
@@ -88,13 +88,6 @@ export interface DashboardLayoutProps {
|
|
|
88
88
|
/** Custom sidebar footer (optional). When omitted, the sidebar has
|
|
89
89
|
* no footer — apps that need Settings/etc. add them via navItems. */
|
|
90
90
|
sidebarFooter?: React.ReactNode;
|
|
91
|
-
/** Active path used to highlight the matching nav item. Falls back
|
|
92
|
-
* to `useCurrentPagePath()` (set by `CurrentPagePathProvider`), then
|
|
93
|
-
* to `useLocation().pathname`. Production deploys can omit it; the
|
|
94
|
-
* studio preview passes the in-frame `?page=` value so highlighting
|
|
95
|
-
* works inside the embedded playground where `pathname` would be
|
|
96
|
-
* the studio route. */
|
|
97
|
-
currentPath?: string;
|
|
98
91
|
/** Callback when user clicks sign out (optional - uses auth context signOut if not provided) */
|
|
99
92
|
onSignOut?: () => void;
|
|
100
93
|
/** Page content rendered inside the main area */
|
package/dist/context/index.cjs
CHANGED
|
@@ -675,13 +675,6 @@ function useDesignTheme() {
|
|
|
675
675
|
availableThemes: availableThemes.map((t) => t.name)
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
|
-
var CurrentPagePathContext = react.createContext(void 0);
|
|
679
|
-
var CurrentPagePathProvider = ({
|
|
680
|
-
value,
|
|
681
|
-
children
|
|
682
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(CurrentPagePathContext.Provider, { value, children });
|
|
683
|
-
CurrentPagePathProvider.displayName = "CurrentPagePathProvider";
|
|
684
|
-
var useCurrentPagePath = () => react.useContext(CurrentPagePathContext);
|
|
685
678
|
var ANONYMOUS_USER = {
|
|
686
679
|
id: "anonymous",
|
|
687
680
|
role: "anonymous",
|
|
@@ -783,8 +776,6 @@ function useUserForEvaluation() {
|
|
|
783
776
|
|
|
784
777
|
exports.ANONYMOUS_USER = ANONYMOUS_USER;
|
|
785
778
|
exports.BUILT_IN_THEMES = BUILT_IN_THEMES;
|
|
786
|
-
exports.CurrentPagePathContext = CurrentPagePathContext;
|
|
787
|
-
exports.CurrentPagePathProvider = CurrentPagePathProvider;
|
|
788
779
|
exports.DesignThemeProvider = DesignThemeProvider;
|
|
789
780
|
exports.ThemeContext = ThemeContext_default;
|
|
790
781
|
exports.ThemeProvider = ThemeProvider;
|
|
@@ -792,7 +783,6 @@ exports.UISlotContext = UISlotContext;
|
|
|
792
783
|
exports.UISlotProvider = UISlotProvider;
|
|
793
784
|
exports.UserContext = UserContext;
|
|
794
785
|
exports.UserProvider = UserProvider;
|
|
795
|
-
exports.useCurrentPagePath = useCurrentPagePath;
|
|
796
786
|
exports.useDesignTheme = useDesignTheme;
|
|
797
787
|
exports.useHasPermission = useHasPermission;
|
|
798
788
|
exports.useHasRole = useHasRole;
|
package/dist/context/index.d.ts
CHANGED
|
@@ -5,5 +5,4 @@ export { UISlotProvider, useUISlots, useSlotContent, useSlotHasContent, UISlotCo
|
|
|
5
5
|
export { ThemeProvider, useTheme, BUILT_IN_THEMES, type ThemeDefinition, type ThemeProviderProps, type ColorMode, type ResolvedMode, type DesignTheme, } from "./ThemeContext";
|
|
6
6
|
export { default as ThemeContext } from "./ThemeContext";
|
|
7
7
|
export { DesignThemeProvider, useDesignTheme } from "./DesignThemeContext";
|
|
8
|
-
export { CurrentPagePathProvider, CurrentPagePathContext, useCurrentPagePath, type CurrentPagePathProviderProps, } from "./CurrentPagePathContext";
|
|
9
8
|
export { UserProvider, UserContext, useUser, useHasRole, useHasPermission, useUserForEvaluation, ANONYMOUS_USER, type UserData, type UserContextValue, type UserProviderProps, } from "./UserContext";
|
package/dist/context/index.js
CHANGED
|
@@ -673,13 +673,6 @@ function useDesignTheme() {
|
|
|
673
673
|
availableThemes: availableThemes.map((t) => t.name)
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
var CurrentPagePathContext = createContext(void 0);
|
|
677
|
-
var CurrentPagePathProvider = ({
|
|
678
|
-
value,
|
|
679
|
-
children
|
|
680
|
-
}) => /* @__PURE__ */ jsx(CurrentPagePathContext.Provider, { value, children });
|
|
681
|
-
CurrentPagePathProvider.displayName = "CurrentPagePathProvider";
|
|
682
|
-
var useCurrentPagePath = () => useContext(CurrentPagePathContext);
|
|
683
676
|
var ANONYMOUS_USER = {
|
|
684
677
|
id: "anonymous",
|
|
685
678
|
role: "anonymous",
|
|
@@ -779,4 +772,4 @@ function useUserForEvaluation() {
|
|
|
779
772
|
return isLoggedIn && user ? user : void 0;
|
|
780
773
|
}
|
|
781
774
|
|
|
782
|
-
export { ANONYMOUS_USER, BUILT_IN_THEMES,
|
|
775
|
+
export { ANONYMOUS_USER, BUILT_IN_THEMES, DesignThemeProvider, ThemeContext_default as ThemeContext, ThemeProvider, UISlotContext, UISlotProvider, UserContext, UserProvider, useDesignTheme, useHasPermission, useHasRole, useSlotContent, useSlotHasContent, useTheme, useUISlots, useUser, useUserForEvaluation };
|
package/dist/docs/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React5__default = /*#__PURE__*/_interopDefault(React5);
|
|
28
28
|
var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
|
|
29
29
|
|
|
30
|
-
// node_modules
|
|
30
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
31
31
|
function r(e) {
|
|
32
32
|
var t, f, n = "";
|
|
33
33
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -42,7 +42,7 @@ function clsx() {
|
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
// node_modules
|
|
45
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
46
46
|
var CLASS_PART_SEPARATOR = "-";
|
|
47
47
|
var createClassGroupUtils = (config) => {
|
|
48
48
|
const classMap = createClassMap(config);
|
package/dist/docs/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import * as LucideIcons from 'lucide-react';
|
|
4
4
|
import { Loader2, ChevronDown, X } from 'lucide-react';
|
|
5
5
|
|
|
6
|
-
// node_modules
|
|
6
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
7
7
|
function r(e) {
|
|
8
8
|
var t, f, n = "";
|
|
9
9
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -18,7 +18,7 @@ function clsx() {
|
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// node_modules
|
|
21
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
22
22
|
var CLASS_PART_SEPARATOR = "-";
|
|
23
23
|
var createClassGroupUtils = (config) => {
|
|
24
24
|
const classMap = createClassMap(config);
|
package/dist/marketing/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React6__default = /*#__PURE__*/_interopDefault(React6);
|
|
28
28
|
var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
|
|
29
29
|
|
|
30
|
-
// node_modules
|
|
30
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
31
31
|
function r(e) {
|
|
32
32
|
var t, f3, n = "";
|
|
33
33
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -42,7 +42,7 @@ function clsx() {
|
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
// node_modules
|
|
45
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
46
46
|
var CLASS_PART_SEPARATOR = "-";
|
|
47
47
|
var createClassGroupUtils = (config) => {
|
|
48
48
|
const classMap = createClassMap(config);
|
package/dist/marketing/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import * as LucideIcons from 'lucide-react';
|
|
4
4
|
import { Loader2, Check, User } from 'lucide-react';
|
|
5
5
|
|
|
6
|
-
// node_modules
|
|
6
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
7
7
|
function r(e) {
|
|
8
8
|
var t, f3, n = "";
|
|
9
9
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -18,7 +18,7 @@ function clsx() {
|
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// node_modules
|
|
21
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
22
22
|
var CLASS_PART_SEPARATOR = "-";
|
|
23
23
|
var createClassGroupUtils = (config) => {
|
|
24
24
|
const classMap = createClassMap(config);
|