@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.
Files changed (119) hide show
  1. package/dist/assets/AppBarHeadline.css +1 -1
  2. package/dist/assets/Card.css +1 -0
  3. package/dist/assets/CardIcon.css +1 -0
  4. package/dist/assets/ConnectedButtonGroup.css +1 -1
  5. package/dist/assets/GridBackgroundDecorator.css +1 -0
  6. package/dist/assets/ListAvatar.css +1 -0
  7. package/dist/assets/ListBox.css +1 -0
  8. package/dist/assets/ListIcon.css +1 -0
  9. package/dist/assets/ListItem.css +1 -0
  10. package/dist/assets/ListLabelText.css +1 -0
  11. package/dist/assets/ListMedia.css +1 -0
  12. package/dist/assets/ListOverlineText.css +1 -0
  13. package/dist/assets/ListSupportingText.css +1 -0
  14. package/dist/assets/NavigationScrollContainer.css +1 -1
  15. package/dist/assets/RadialGlowDecorator.css +1 -0
  16. package/dist/assets/Snackbar.css +1 -1
  17. package/dist/assets/index.css +1 -0
  18. package/dist/chunks/AppBarHeadline +2 -2
  19. package/dist/chunks/AppBarHeadline.map +1 -1
  20. package/dist/chunks/Card +22 -0
  21. package/dist/chunks/Card.map +1 -0
  22. package/dist/chunks/CardIcon +23 -0
  23. package/dist/chunks/CardIcon.map +1 -0
  24. package/dist/chunks/ConnectedButtonGroup +6 -6
  25. package/dist/chunks/ConnectedButtonGroup.map +1 -1
  26. package/dist/chunks/GridBackgroundDecorator +16 -0
  27. package/dist/chunks/GridBackgroundDecorator.map +1 -0
  28. package/dist/chunks/ListAvatar +20 -0
  29. package/dist/chunks/ListAvatar.map +1 -0
  30. package/dist/chunks/ListBox +16 -0
  31. package/dist/chunks/ListBox.map +1 -0
  32. package/dist/chunks/ListIcon +21 -0
  33. package/dist/chunks/ListIcon.map +1 -0
  34. package/dist/chunks/ListItem +63 -0
  35. package/dist/chunks/ListItem.map +1 -0
  36. package/dist/chunks/ListLabelText +22 -0
  37. package/dist/chunks/ListLabelText.map +1 -0
  38. package/dist/chunks/ListMedia +15 -0
  39. package/dist/chunks/ListMedia.map +1 -0
  40. package/dist/chunks/ListOverlineText +21 -0
  41. package/dist/chunks/ListOverlineText.map +1 -0
  42. package/dist/chunks/ListSupportingText +22 -0
  43. package/dist/chunks/ListSupportingText.map +1 -0
  44. package/dist/chunks/Navigation +20 -20
  45. package/dist/chunks/NavigationScrollContainer +45 -32
  46. package/dist/chunks/NavigationScrollContainer.map +1 -1
  47. package/dist/chunks/RadialGlowDecorator +110 -0
  48. package/dist/chunks/RadialGlowDecorator.map +1 -0
  49. package/dist/chunks/Snackbar +18 -27
  50. package/dist/chunks/Snackbar.map +1 -1
  51. package/dist/chunks/types +6 -0
  52. package/dist/chunks/types.map +1 -0
  53. package/dist/components/Card/Card/Card.d.ts +2 -0
  54. package/dist/components/Card/Card/index.d.ts +2 -0
  55. package/dist/components/Card/Card/index.js +3 -0
  56. package/dist/components/Card/Card/types.d.ts +7 -0
  57. package/dist/components/Card/CardIcon/CardIcon.d.ts +2 -0
  58. package/dist/components/Card/CardIcon/index.d.ts +1 -0
  59. package/dist/components/Card/CardIcon/index.js +2 -0
  60. package/dist/components/Card/index.d.ts +2 -0
  61. package/dist/components/Card/index.js +4 -0
  62. package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +14 -0
  63. package/dist/components/Decorators/GridBackgroundDecorator/index.d.ts +1 -0
  64. package/dist/components/Decorators/GridBackgroundDecorator/index.js +2 -0
  65. package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +12 -0
  66. package/dist/components/Decorators/RadialGlowDecorator/index.d.ts +1 -0
  67. package/dist/components/Decorators/RadialGlowDecorator/index.js +2 -0
  68. package/dist/components/Decorators/index.d.ts +2 -0
  69. package/dist/components/Decorators/index.js +3 -0
  70. package/dist/components/List/ListAction/ListAction.d.ts +2 -0
  71. package/dist/components/List/ListAction/index.d.ts +1 -0
  72. package/dist/components/List/ListAction/index.js +0 -0
  73. package/dist/components/List/ListAvatar/ListAvatar.d.ts +1 -0
  74. package/dist/components/List/ListAvatar/index.d.ts +1 -0
  75. package/dist/components/List/ListAvatar/index.js +2 -0
  76. package/dist/components/List/ListBox/ListBox.d.ts +2 -0
  77. package/dist/components/List/ListBox/index.d.ts +2 -0
  78. package/dist/components/List/ListBox/index.js +2 -0
  79. package/dist/components/List/ListBox/types.d.ts +5 -0
  80. package/dist/components/List/ListIcon/ListIcon.d.ts +2 -0
  81. package/dist/components/List/ListIcon/index.d.ts +1 -0
  82. package/dist/components/List/ListIcon/index.js +2 -0
  83. package/dist/components/List/ListItem/ListItem.d.ts +2 -0
  84. package/dist/components/List/ListItem/index.d.ts +2 -0
  85. package/dist/components/List/ListItem/index.js +2 -0
  86. package/dist/components/List/ListItem/types.d.ts +9 -0
  87. package/dist/components/List/ListLabelText/ListLabelText.d.ts +2 -0
  88. package/dist/components/List/ListLabelText/index.d.ts +1 -0
  89. package/dist/components/List/ListLabelText/index.js +2 -0
  90. package/dist/components/List/ListMedia/ListMedia.d.ts +2 -0
  91. package/dist/components/List/ListMedia/index.d.ts +2 -0
  92. package/dist/components/List/ListMedia/index.js +2 -0
  93. package/dist/components/List/ListMedia/types.d.ts +10 -0
  94. package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +2 -0
  95. package/dist/components/List/ListOverlineText/index.d.ts +1 -0
  96. package/dist/components/List/ListOverlineText/index.js +2 -0
  97. package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +2 -0
  98. package/dist/components/List/ListSupportingText/index.d.ts +1 -0
  99. package/dist/components/List/ListSupportingText/index.js +2 -0
  100. package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +2 -0
  101. package/dist/components/List/ListTrailingText/index.d.ts +1 -0
  102. package/dist/components/List/ListTrailingText/index.js +0 -0
  103. package/dist/components/List/index.d.ts +10 -0
  104. package/dist/components/List/index.js +9 -0
  105. package/dist/components/Navigation/NavigationState/context.d.ts +1 -1
  106. package/dist/components/Navigation/NavigationState/index.js +61 -2
  107. package/dist/components/Navigation/NavigationState/index.js.map +1 -0
  108. package/dist/components/Navigation/SubNavigation/SubNavigation/index.js +4 -4
  109. package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js +5 -5
  110. package/dist/components/Navigation/index.js +2 -2
  111. package/dist/index.d.ts +3 -0
  112. package/dist/index.js +162 -113
  113. package/dist/index.js.map +1 -1
  114. package/dist/utils/gradients/gradients.d.ts +17 -0
  115. package/dist/utils/gradients/index.d.ts +1 -0
  116. package/dist/utils/index.d.ts +1 -0
  117. package/package.json +1 -1
  118. package/dist/chunks/NavigationState +0 -69
  119. package/dist/chunks/NavigationState.map +0 -1
@@ -0,0 +1,3 @@
1
+ import { t as e } from "../../chunks/GridBackgroundDecorator";
2
+ import { t } from "../../chunks/RadialGlowDecorator";
3
+ export { e as GridBackgroundDecorator, t as RadialGlowDecorator };
@@ -0,0 +1,2 @@
1
+ import { IconButtonProps } from '../../Button';
2
+ export declare const ListAction: React.FC<Omit<IconButtonProps, "size">>;
@@ -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,2 @@
1
+ import { t as e } from "../../../chunks/ListAvatar";
2
+ export { e as ListAvatar };
@@ -0,0 +1,2 @@
1
+ import { ListBoxProps } from './types';
2
+ export declare const ListBox: <T extends object>({ alignY, className, ...props }: ListBoxProps<T>) => import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './ListBox';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/ListBox";
2
+ export { e as ListBox };
@@ -0,0 +1,5 @@
1
+ import { ListBox } from 'react-aria-components';
2
+ export type ListAlignY = "start" | "center" | "end";
3
+ export interface ListBoxProps<T extends object> extends React.ComponentPropsWithRef<typeof ListBox<T>> {
4
+ alignY?: ListAlignY;
5
+ }
@@ -0,0 +1,2 @@
1
+ import { Icon } from '../../Icon';
2
+ export declare const ListIcon: React.FC<Omit<React.ComponentPropsWithRef<typeof Icon>, "size" | "withText">>;
@@ -0,0 +1 @@
1
+ export * from './ListIcon';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/ListIcon";
2
+ export { e as ListIcon };
@@ -0,0 +1,2 @@
1
+ import { ListItemProps } from './types';
2
+ export declare const ListItem: React.FC<ListItemProps>;
@@ -0,0 +1,2 @@
1
+ export * from './ListItem';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/ListItem";
2
+ export { e as ListItem };
@@ -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,2 @@
1
+ import { Text } from 'react-aria-components';
2
+ export declare const ListLabelText: React.FC<Omit<React.ComponentPropsWithRef<typeof Text>, "slot">>;
@@ -0,0 +1 @@
1
+ export * from './ListLabelText';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/ListLabelText";
2
+ export { e as ListLabelText };
@@ -0,0 +1,2 @@
1
+ import { ListMediaProps } from './types';
2
+ export declare const ListMedia: React.FC<ListMediaProps>;
@@ -0,0 +1,2 @@
1
+ export * from './ListMedia';
2
+ export * from './types';
@@ -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,2 @@
1
+ import { Text } from 'react-aria-components';
2
+ export declare const ListOverlineText: React.FC<React.ComponentPropsWithRef<typeof Text>>;
@@ -0,0 +1 @@
1
+ export * from './ListOverlineText';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/ListOverlineText";
2
+ export { e as ListOverlineText };
@@ -0,0 +1,2 @@
1
+ import { Text } from 'react-aria-components';
2
+ export declare const ListSupportingText: React.FC<Omit<React.ComponentPropsWithRef<typeof Text>, "slot">>;
@@ -0,0 +1 @@
1
+ export * from './ListSupportingText';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/ListSupportingText";
2
+ export { e as ListSupportingText };
@@ -0,0 +1,2 @@
1
+ import { Text } from 'react-aria-components';
2
+ export declare const ListTrailingText: React.FC<React.ComponentPropsWithRef<typeof Text>>;
@@ -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 { n as e, r as t, t as n } from "../../../chunks/NavigationState";
2
- export { n as NavigationState, e as NavigationStateContext, t as useNavigationState };
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 { r as t } from "../../../../chunks/NavigationState";
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 { t as l } from "../../../../chunks/NavigationScrollContainer";
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 } = t(), { container: L } = u(), R = f(c), z = D ?? R;
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(l, { children: w })]
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/NavigationState";
3
- import { n, r, t as i } from "../../../../chunks/core8";
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 = r(), { openSubNavigation: h, closeSubNavigation: g, isSubNavigationOpen: _ } = t(), v = `${m.id}--${d}`, y = m.depth + 1, b;
9
- u[0] === p ? b = u[1] : (b = [i, p], u[0] = p, 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 = [n, {
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 { n as e, r as t, t as n } from "../../chunks/NavigationState";
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, n as NavigationState, e as NavigationStateContext, f as SubNavigation, p as SubNavigationTrigger, o as useNavigationContainer, r as useNavigationContext, t as useNavigationState };
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';