@adgytec/adgytec-web-ui-components 2.1.9 → 2.3.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/assets/AppBarHeadline.css +1 -1
- package/dist/assets/Card.css +1 -0
- package/dist/assets/CardIcon.css +1 -0
- package/dist/assets/ConnectedButtonGroup.css +1 -1
- package/dist/assets/GridBackgroundDecorator.css +1 -0
- package/dist/assets/ListAvatar.css +1 -0
- package/dist/assets/ListBox.css +1 -0
- package/dist/assets/ListIcon.css +1 -0
- package/dist/assets/ListItem.css +1 -0
- package/dist/assets/ListLabelText.css +1 -0
- package/dist/assets/ListMedia.css +1 -0
- package/dist/assets/ListOverlineText.css +1 -0
- package/dist/assets/ListSupportingText.css +1 -0
- package/dist/assets/NavigationScrollContainer.css +1 -1
- package/dist/assets/RadialGlowDecorator.css +1 -0
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/index.css +1 -0
- package/dist/chunks/AppBarHeadline +2 -2
- package/dist/chunks/AppBarHeadline.map +1 -1
- package/dist/chunks/Card +22 -0
- package/dist/chunks/Card.map +1 -0
- package/dist/chunks/CardIcon +23 -0
- package/dist/chunks/CardIcon.map +1 -0
- package/dist/chunks/ConnectedButtonGroup +6 -6
- package/dist/chunks/ConnectedButtonGroup.map +1 -1
- package/dist/chunks/GridBackgroundDecorator +16 -0
- package/dist/chunks/GridBackgroundDecorator.map +1 -0
- package/dist/chunks/ListAvatar +20 -0
- package/dist/chunks/ListAvatar.map +1 -0
- package/dist/chunks/ListBox +16 -0
- package/dist/chunks/ListBox.map +1 -0
- package/dist/chunks/ListIcon +21 -0
- package/dist/chunks/ListIcon.map +1 -0
- package/dist/chunks/ListItem +63 -0
- package/dist/chunks/ListItem.map +1 -0
- package/dist/chunks/ListLabelText +22 -0
- package/dist/chunks/ListLabelText.map +1 -0
- package/dist/chunks/ListMedia +15 -0
- package/dist/chunks/ListMedia.map +1 -0
- package/dist/chunks/ListOverlineText +21 -0
- package/dist/chunks/ListOverlineText.map +1 -0
- package/dist/chunks/ListSupportingText +22 -0
- package/dist/chunks/ListSupportingText.map +1 -0
- package/dist/chunks/Navigation +20 -20
- package/dist/chunks/NavigationScrollContainer +45 -32
- package/dist/chunks/NavigationScrollContainer.map +1 -1
- package/dist/chunks/RadialGlowDecorator +110 -0
- package/dist/chunks/RadialGlowDecorator.map +1 -0
- package/dist/chunks/Snackbar +18 -27
- package/dist/chunks/Snackbar.map +1 -1
- package/dist/chunks/types +6 -0
- package/dist/chunks/types.map +1 -0
- package/dist/components/Card/Card/Card.d.ts +2 -0
- package/dist/components/Card/Card/index.d.ts +2 -0
- package/dist/components/Card/Card/index.js +3 -0
- package/dist/components/Card/Card/types.d.ts +7 -0
- package/dist/components/Card/CardIcon/CardIcon.d.ts +2 -0
- package/dist/components/Card/CardIcon/index.d.ts +1 -0
- package/dist/components/Card/CardIcon/index.js +2 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +14 -0
- package/dist/components/Decorators/GridBackgroundDecorator/index.d.ts +1 -0
- package/dist/components/Decorators/GridBackgroundDecorator/index.js +2 -0
- package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +12 -0
- package/dist/components/Decorators/RadialGlowDecorator/index.d.ts +1 -0
- package/dist/components/Decorators/RadialGlowDecorator/index.js +2 -0
- package/dist/components/Decorators/index.d.ts +2 -0
- package/dist/components/Decorators/index.js +3 -0
- package/dist/components/List/ListAction/ListAction.d.ts +2 -0
- package/dist/components/List/ListAction/index.d.ts +1 -0
- package/dist/components/List/ListAction/index.js +0 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +1 -0
- package/dist/components/List/ListAvatar/index.d.ts +1 -0
- package/dist/components/List/ListAvatar/index.js +2 -0
- package/dist/components/List/ListBox/ListBox.d.ts +2 -0
- package/dist/components/List/ListBox/index.d.ts +2 -0
- package/dist/components/List/ListBox/index.js +2 -0
- package/dist/components/List/ListBox/types.d.ts +5 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +2 -0
- package/dist/components/List/ListIcon/index.d.ts +1 -0
- package/dist/components/List/ListIcon/index.js +2 -0
- package/dist/components/List/ListItem/ListItem.d.ts +2 -0
- package/dist/components/List/ListItem/index.d.ts +2 -0
- package/dist/components/List/ListItem/index.js +2 -0
- package/dist/components/List/ListItem/types.d.ts +9 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +2 -0
- package/dist/components/List/ListLabelText/index.d.ts +1 -0
- package/dist/components/List/ListLabelText/index.js +2 -0
- package/dist/components/List/ListMedia/ListMedia.d.ts +2 -0
- package/dist/components/List/ListMedia/index.d.ts +2 -0
- package/dist/components/List/ListMedia/index.js +2 -0
- package/dist/components/List/ListMedia/types.d.ts +10 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +2 -0
- package/dist/components/List/ListOverlineText/index.d.ts +1 -0
- package/dist/components/List/ListOverlineText/index.js +2 -0
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +2 -0
- package/dist/components/List/ListSupportingText/index.d.ts +1 -0
- package/dist/components/List/ListSupportingText/index.js +2 -0
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +2 -0
- package/dist/components/List/ListTrailingText/index.d.ts +1 -0
- package/dist/components/List/ListTrailingText/index.js +0 -0
- package/dist/components/List/index.d.ts +10 -0
- package/dist/components/List/index.js +9 -0
- package/dist/components/Navigation/NavigationState/context.d.ts +1 -1
- package/dist/components/Navigation/NavigationState/index.js +61 -2
- package/dist/components/Navigation/NavigationState/index.js.map +1 -0
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js +4 -4
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js +5 -5
- package/dist/components/Navigation/index.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +162 -113
- package/dist/index.js.map +1 -1
- package/dist/utils/gradients/gradients.d.ts +17 -0
- package/dist/utils/gradients/index.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/NavigationState +0 -69
- package/dist/chunks/NavigationState.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ListAvatar: React.FC<React.ComponentPropsWithRef<"div">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListAvatar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListIcon';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ListBoxItem } from 'react-aria-components';
|
|
3
|
+
export interface ListItemProps extends Omit<React.ComponentPropsWithRef<typeof ListBoxItem>, "children"> {
|
|
4
|
+
leading?: ReactNode;
|
|
5
|
+
overline?: ReactNode;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
supporting?: ReactNode;
|
|
8
|
+
trailing?: ReactNode[];
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListLabelText';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../../../chunks/ListMedia";
|
|
2
|
+
export { a as ListMedia, o as ListMediaImageHeight, n as ListMediaImageWidth, i as ListMediaLargeVideoHeight, t as ListMediaLargeVideoWidth, e as ListMediaVideoHeight, r as ListMediaVideoWidth };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ListMediaImageWidth = 56;
|
|
2
|
+
export declare const ListMediaImageHeight = 56;
|
|
3
|
+
export declare const ListMediaVideoWidth = 100;
|
|
4
|
+
export declare const ListMediaVideoHeight = 56;
|
|
5
|
+
export declare const ListMediaLargeVideoWidth = 114;
|
|
6
|
+
export declare const ListMediaLargeVideoHeight = 64;
|
|
7
|
+
export type ListMediaVariant = "image" | "video" | "large-video";
|
|
8
|
+
export interface ListMediaProps extends React.ComponentPropsWithRef<"div"> {
|
|
9
|
+
variant?: ListMediaVariant;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListOverlineText';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListSupportingText';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './ListAction';
|
|
2
|
+
export * from './ListAvatar';
|
|
3
|
+
export * from './ListBox';
|
|
4
|
+
export * from './ListIcon';
|
|
5
|
+
export * from './ListItem';
|
|
6
|
+
export * from './ListLabelText';
|
|
7
|
+
export * from './ListMedia';
|
|
8
|
+
export * from './ListOverlineText';
|
|
9
|
+
export * from './ListSupportingText';
|
|
10
|
+
export * from './ListTrailingText';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as e } from "../../chunks/ListAvatar";
|
|
2
|
+
import { t } from "../../chunks/ListBox";
|
|
3
|
+
import { t as n } from "../../chunks/ListIcon";
|
|
4
|
+
import { t as r } from "../../chunks/ListItem";
|
|
5
|
+
import { t as i } from "../../chunks/ListLabelText";
|
|
6
|
+
import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../../chunks/ListMedia";
|
|
7
|
+
import { t as f } from "../../chunks/ListOverlineText";
|
|
8
|
+
import { t as p } from "../../chunks/ListSupportingText";
|
|
9
|
+
export { e as ListAvatar, t as ListBox, n as ListIcon, r as ListItem, i as ListLabelText, u as ListMedia, d as ListMediaImageHeight, s as ListMediaImageWidth, l as ListMediaLargeVideoHeight, o as ListMediaLargeVideoWidth, a as ListMediaVideoHeight, c as ListMediaVideoWidth, f as ListOverlineText, p as ListSupportingText };
|
|
@@ -2,9 +2,9 @@ export type NavigationStateContextType = {
|
|
|
2
2
|
openSubNavigation: (id: string, depth: number) => void;
|
|
3
3
|
closeSubNavigation: (id: string) => void;
|
|
4
4
|
saveNavigationScrollTopProgress: (id: string, progress: number) => void;
|
|
5
|
-
registerNavigationContainer: (id: string, container: HTMLDivElement) => () => void;
|
|
6
5
|
isSubNavigationOpen: (id: string) => boolean;
|
|
7
6
|
isInert: (depth: number) => boolean;
|
|
7
|
+
getNavigationScrollProgress: (id: string) => number;
|
|
8
8
|
};
|
|
9
9
|
export declare const NavigationStateContext: import('react').Context<NavigationStateContextType | null>;
|
|
10
10
|
export declare function useNavigationState(): NavigationStateContextType;
|
|
@@ -1,2 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as e } from "../../../chunks/compiler-runtime";
|
|
2
|
+
import { createContext as t, useContext as n, useRef as r, useState as i } from "react";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/Navigation/NavigationState/context.ts
|
|
5
|
+
var o = t(null);
|
|
6
|
+
function s() {
|
|
7
|
+
let e = n(o);
|
|
8
|
+
if (e === null) throw Error("Missing navigation state. Ensure this component is rendered within Navigation component.");
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/Navigation/NavigationState/NavigationState.tsx
|
|
13
|
+
var c = e(), l = (e) => {
|
|
14
|
+
let t = (0, c.c)(18), { children: n } = e, s;
|
|
15
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = [], t[0] = s) : s = t[0];
|
|
16
|
+
let [l, u] = i(s), d;
|
|
17
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (d = {}, t[1] = d) : d = t[1];
|
|
18
|
+
let f = r(d), p;
|
|
19
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = (e) => f.current[e] ?? 0, t[2] = p) : p = t[2];
|
|
20
|
+
let m = p, h;
|
|
21
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (h = (e, t) => {
|
|
22
|
+
u((n) => [...n.filter((e) => e.depth < t), {
|
|
23
|
+
id: e,
|
|
24
|
+
depth: t
|
|
25
|
+
}]);
|
|
26
|
+
}, t[3] = h) : h = t[3];
|
|
27
|
+
let g = h, _;
|
|
28
|
+
t[4] === l ? _ = t[5] : (_ = (e) => {
|
|
29
|
+
let t = l.find((t) => t.id === e);
|
|
30
|
+
if (!t) return;
|
|
31
|
+
let n = l.filter((e) => e.depth >= t.depth);
|
|
32
|
+
for (let e of n) delete f.current[e.id];
|
|
33
|
+
u((e) => e.filter((e) => e.depth < t.depth));
|
|
34
|
+
}, t[4] = l, t[5] = _);
|
|
35
|
+
let v = _, y;
|
|
36
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (y = (e, t) => {
|
|
37
|
+
f.current[e] = t;
|
|
38
|
+
}, t[6] = y) : y = t[6];
|
|
39
|
+
let b = y, x;
|
|
40
|
+
t[7] === l ? x = t[8] : (x = (e) => l.some((t) => t.id === e), t[7] = l, t[8] = x);
|
|
41
|
+
let S = x, C;
|
|
42
|
+
t[9] === l ? C = t[10] : (C = (e) => e < (l[l.length - 1]?.depth ?? 0), t[9] = l, t[10] = C);
|
|
43
|
+
let w = C, T;
|
|
44
|
+
t[11] !== v || t[12] !== w || t[13] !== S ? (T = {
|
|
45
|
+
getNavigationScrollProgress: m,
|
|
46
|
+
openSubNavigation: g,
|
|
47
|
+
closeSubNavigation: v,
|
|
48
|
+
saveNavigationScrollTopProgress: b,
|
|
49
|
+
isSubNavigationOpen: S,
|
|
50
|
+
isInert: w
|
|
51
|
+
}, t[11] = v, t[12] = w, t[13] = S, t[14] = T) : T = t[14];
|
|
52
|
+
let E;
|
|
53
|
+
return t[15] !== n || t[16] !== T ? (E = /* @__PURE__ */ a(o, {
|
|
54
|
+
value: T,
|
|
55
|
+
children: n
|
|
56
|
+
}), t[15] = n, t[16] = T, t[17] = E) : E = t[17], E;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { l as NavigationState, o as NavigationStateContext, s as useNavigationState };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["id","item","x","prev","depth","children"],"sources":["../../../../src/components/Navigation/NavigationState/context.ts","../../../../src/components/Navigation/NavigationState/NavigationState.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\nexport type NavigationStateContextType = {\n openSubNavigation: (id: string, depth: number) => void;\n closeSubNavigation: (id: string) => void;\n saveNavigationScrollTopProgress: (id: string, progress: number) => void;\n\n isSubNavigationOpen: (id: string) => boolean;\n isInert: (depth: number) => boolean;\n\n getNavigationScrollProgress: (id: string) => number;\n};\n\nexport const NavigationStateContext =\n createContext<NavigationStateContextType | null>(null);\n\nexport function useNavigationState() {\n const ctx = useContext(NavigationStateContext);\n if (ctx === null) {\n throw new Error(\n \"Missing navigation state. Ensure this component is rendered within Navigation component.\"\n );\n }\n\n return ctx;\n}\n","import { type ReactNode, useCallback, useRef, useState } from \"react\";\nimport { NavigationStateContext } from \"./context\";\nimport type { NavScrollInfo, SubNavItem } from \"./types\";\n\nexport const NavigationState: React.FC<{ children?: ReactNode }> = ({\n children,\n}) => {\n const [openSubNavs, setOpenSubNavs] = useState<SubNavItem[]>([]);\n const navScrollRef = useRef<NavScrollInfo>({});\n\n const getNavigationScrollProgress = useCallback((id: string) => {\n return navScrollRef.current[id] ?? 0;\n }, []);\n\n const openSubNavigation = useCallback((id: string, depth: number) => {\n setOpenSubNavs((prev) => [\n ...prev.filter((item) => item.depth < depth),\n { id, depth },\n ]);\n }, []);\n\n const closeSubNavigation = useCallback(\n (id: string) => {\n const item = openSubNavs.find((x) => x.id === id);\n if (!item) {\n return;\n }\n\n const removedItems = openSubNavs.filter(\n (x) => x.depth >= item.depth\n );\n for (const removedItem of removedItems) {\n delete navScrollRef.current[removedItem.id];\n }\n\n setOpenSubNavs((prev) => prev.filter((x) => x.depth < item.depth));\n },\n [openSubNavs]\n );\n\n const saveNavigationScrollTopProgress = useCallback(\n (id: string, progress: number) => {\n navScrollRef.current[id] = progress;\n },\n []\n );\n\n const isSubNavigationOpen = useCallback(\n (id: string) => {\n return openSubNavs.some((item) => item.id === id);\n },\n [openSubNavs]\n );\n\n const isInert = useCallback(\n (depth: number) => {\n const activeDepth = openSubNavs[openSubNavs.length - 1]?.depth ?? 0;\n\n return depth < activeDepth;\n },\n [openSubNavs]\n );\n\n return (\n <NavigationStateContext\n value={{\n getNavigationScrollProgress,\n openSubNavigation,\n closeSubNavigation,\n saveNavigationScrollTopProgress,\n isSubNavigationOpen,\n isInert,\n }}\n >\n {children}\n </NavigationStateContext>\n );\n};\n"],"mappings":";;;;AAaA,IAAa,IACT,EAAiD,IAAI;AAEzD,SAAO,IAAA;CACH,IAAA,IAAY,EAAW,CAAsB;CAC7C,IAAI,MAAQ,MACR,MAAU,MACN,0FACJ;CACH,OAEM;AAAG;;;aCpBD,KAAsD,MAAA;CAAA,IAAA,KAAA,GAAA,EAAA,EAAA,CAAA,EAAA,GAAC,EAAA,gBAAA,GAEnE;CAAA,AAAA,EAAA,OAAA,OAAA,IAAA,2BAAA,KACgE,IAAA,CAAA,GAAE,EAAA,KAAA,KAAA,IAAA,EAAA;CAA/D,IAAA,CAAA,GAAA,KAAsC,EAAuB,CAAE,GAAE;CAAA,AAAA,EAAA,OAAA,OAAA,IAAA,2BAAA,KACtB,IAAA,CAAC,GAAC,EAAA,KAAA,KAAA,IAAA,EAAA;CAA7C,IAAA,IAAqB,EAAsB,CAAE,GAAE;CAAA,AAAA,EAAA,OAAA,OAAA,IAAA,2BAAA,KAEC,KAAA,MACrC,EAAY,QAAS,MAArB,GACV,EAAA,KAAA,KAAA,IAAA,EAAA;CAFD,IAAA,IAAoC,GAE7B;CAAA,AAAA,EAAA,OAAA,OAAA,IAAA,2BAAA,KAE+B,KAAA,GAAA,MAAA;EAClC,GAAe,MAAU,CAAA,GAClB,EAAI,QAAQ,MAAU,EAAI,QAAS,CAAK,GAC3C;GAAA,IAAEA;GAAE;EAAQ,CAAC,CAChB;CAAC,GACL,EAAA,KAAA,KAAA,IAAA,EAAA;CALD,IAAA,IAA0B,GAKnB;CAAA,AAAA,EAAA,OAAA,IAiBF,IAAA,EAAA,MAdD,KAAA,MAAA;EACI,IAAA,IAAa,EAAW,MAAM,MAAO,EAAC,OAAQA,CAAE;EAChD,IAAI,CAACC,GAAI;EAIT,IAAA,IAAqB,EAAW,QAC5B,MAAOC,EAAC,SAAUD,EAAI,KAC1B;EACA,KAAK,IAAA,KAAqB,GACtB,OAAO,EAAY,QAAS,EAAW;EAG3C,GAAe,MAAUE,EAAI,QAAQ,MAAOD,EAAC,QAASD,EAAI,KAAM,CAAC;CAAC,GACrE,EAAA,KAAA,GAAA,EAAA,KAAA;CAfL,IAAA,IAA2B,GAiBzB;CAAA,AAAA,EAAA,OAAA,OAAA,IAAA,2BAAA,KAGE,KAAA,GAAA,MAAA;EACI,EAAY,QAASD,KAAM;CAAH,GAC3B,EAAA,KAAA,KAAA,IAAA,EAAA;CAHL,IAAA,IAAwC,GAKtC;CAAA,AAAA,EAAA,OAAA,IAKG,IAAA,EAAA,MAFD,KAAA,MACW,EAAW,MAAM,MAAUC,EAAI,OAAQD,CAAE,GACnD,EAAA,KAAA,GAAA,EAAA,KAAA;CAHL,IAAA,IAA4B,GAK1B;CAAA,AAAA,EAAA,OAAA,IAOG,IAAA,EAAA,OAJD,KAAA,MAGWI,KAFa,EAAY,EAAW,SAAU,EAAS,EAAA,SAA1C,IAGvB,EAAA,KAAA,GAAA,EAAA,MAAA;CALL,IAAA,IAAgB,GAOd;CAAA,AAAA,EAAA,QAAA,KAAA,EAAA,QAAA,KAAA,EAAA,QAAA,KAIa,IAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;CAOP,GAAC,EAAA,MAAA,GAAA,EAAA,MAAA,GAAA,EAAA,MAAA,GAAA,EAAA,MAAA,KAAA,IAAA,EAAA;CAAA,IAAA;CAGoB,OAHpB,EAAA,QAAA,KAAA,EAAA,QAAA,KARL,IAAA,kBAAC,GAAD;EACW,OAAA;EASN;CAVkB,CAAA,GAWE,EAAA,MAAA,GAAA,EAAA,MAAA,GAAA,EAAA,MAAA,KAAA,IAAA,EAAA,KAXzB;AAWyB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "../../../../chunks/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { t } from "../../../../chunks/NavigationScrollContainer";
|
|
3
3
|
import { t as n } from "../../../../chunks/base";
|
|
4
4
|
import { IconButton as r } from "../../../Button/IconButton/index.js";
|
|
5
5
|
import { useInDialog as i } from "../../../Dialog/core/index.js";
|
|
6
6
|
import { a, o, r as s, t as c } from "../../../../chunks/core8";
|
|
7
|
-
import {
|
|
7
|
+
import { useNavigationState as l } from "../../NavigationState/index.js";
|
|
8
8
|
import { r as u } from "../../../../chunks/Navigation";
|
|
9
9
|
import d from "clsx";
|
|
10
10
|
import { useContext as f } from "react";
|
|
@@ -18,7 +18,7 @@ import { createPortal as x } from "react-dom";
|
|
|
18
18
|
var S = e(), C = (e) => {
|
|
19
19
|
let C = (0, S.c)(30), w, T, E, D, O, k, A;
|
|
20
20
|
C[0] === e ? (w = C[1], T = C[2], E = C[3], D = C[4], O = C[5], k = C[6], A = C[7]) : ({className: T, label: D, children: w, inert: E, ref: k, style: A, ...O} = e, C[0] = e, C[1] = w, C[2] = T, C[3] = E, C[4] = D, C[5] = O, C[6] = k, C[7] = A);
|
|
21
|
-
let j = y(k), M = i(), { id: N, depth: P } = s(), { isInert: F, isSubNavigationOpen: I } =
|
|
21
|
+
let j = y(k), M = i(), { id: N, depth: P } = s(), { isInert: F, isSubNavigationOpen: I } = l(), { container: L } = u(), R = f(c), z = D ?? R;
|
|
22
22
|
if (L === null) return null;
|
|
23
23
|
let B;
|
|
24
24
|
C[8] === Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
@@ -55,7 +55,7 @@ var S = e(), C = (e) => {
|
|
|
55
55
|
"data-heading": !0,
|
|
56
56
|
children: z
|
|
57
57
|
})]
|
|
58
|
-
}), /* @__PURE__ */ p(
|
|
58
|
+
}), /* @__PURE__ */ p(t, { children: w })]
|
|
59
59
|
})
|
|
60
60
|
}), C[12] = w, C[13] = T, C[14] = P, C[15] = z, C[16] = E, C[17] = M, C[18] = F, C[19] = O, C[20] = A, C[21] = j, C[22] = H) : H = C[22];
|
|
61
61
|
let U;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "../../../../chunks/compiler-runtime";
|
|
2
|
-
import { r as t } from "../../../../chunks/
|
|
3
|
-
import {
|
|
2
|
+
import { n as t, r as n, t as r } from "../../../../chunks/core8";
|
|
3
|
+
import { useNavigationState as i } from "../../NavigationState/index.js";
|
|
4
4
|
import { jsx as a } from "react/jsx-runtime";
|
|
5
5
|
import { ButtonContext as o, DEFAULT_SLOT as s, Provider as c } from "react-aria-components";
|
|
6
6
|
//#region src/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.tsx
|
|
7
7
|
var l = e(), u = (e) => {
|
|
8
|
-
let u = (0, l.c)(29), { stateID: d, children: f, label: p } = e, m =
|
|
9
|
-
u[0] === p ? b = u[1] : (b = [
|
|
8
|
+
let u = (0, l.c)(29), { stateID: d, children: f, label: p } = e, m = n(), { openSubNavigation: h, closeSubNavigation: g, isSubNavigationOpen: _ } = i(), v = `${m.id}--${d}`, y = m.depth + 1, b;
|
|
9
|
+
u[0] === p ? b = u[1] : (b = [r, p], u[0] = p, u[1] = b);
|
|
10
10
|
let x;
|
|
11
|
-
u[2] !== y || u[3] !== v ? (x = [
|
|
11
|
+
u[2] !== y || u[3] !== v ? (x = [t, {
|
|
12
12
|
id: v,
|
|
13
13
|
depth: y
|
|
14
14
|
}], u[2] = y, u[3] = v, u[4] = x) : x = u[4];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NavigationState as e, NavigationStateContext as t, useNavigationState as n } from "./NavigationState/index.js";
|
|
2
2
|
import { n as r, t as i } from "../../chunks/navContext";
|
|
3
3
|
import { n as a, r as o, t as s } from "../../chunks/Navigation";
|
|
4
4
|
import { NavigationButton as c } from "./NavigationItem/NavigationButton/index.js";
|
|
@@ -7,4 +7,4 @@ import { t as u } from "../../chunks/NavigationSection";
|
|
|
7
7
|
import { t as d } from "../../chunks/NavigationSectionLabel";
|
|
8
8
|
import { SubNavigation as f } from "./SubNavigation/SubNavigation/index.js";
|
|
9
9
|
import { SubNavigationTrigger as p } from "./SubNavigation/SubNavigationTrigger/index.js";
|
|
10
|
-
export { s as Navigation, c as NavigationButton, i as NavigationContext, l as NavigationLink, a as NavigationRenderingContext, u as NavigationSection, d as NavigationSectionLabel,
|
|
10
|
+
export { s as Navigation, c as NavigationButton, i as NavigationContext, l as NavigationLink, a as NavigationRenderingContext, u as NavigationSection, d as NavigationSectionLabel, e as NavigationState, t as NavigationStateContext, f as SubNavigation, p as SubNavigationTrigger, o as useNavigationContainer, r as useNavigationContext, n as useNavigationState };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export * from './components/AppBar';
|
|
2
2
|
export * from './components/Button';
|
|
3
3
|
export * from './components/Calendar';
|
|
4
|
+
export * from './components/Card';
|
|
5
|
+
export * from './components/Decorators';
|
|
4
6
|
export * from './components/Dialog';
|
|
5
7
|
export * from './components/Disclosure';
|
|
6
8
|
export * from './components/Divider';
|
|
7
9
|
export * from './components/Icon';
|
|
8
10
|
export * from './components/Image';
|
|
9
11
|
export * from './components/Input';
|
|
12
|
+
export * from './components/List';
|
|
10
13
|
export * from './components/Loader';
|
|
11
14
|
export * from './components/Menu';
|
|
12
15
|
export * from './components/Navigation';
|