@illinois-grad/grad-vue 3.0.10 → 3.0.12

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.
@@ -1880,6 +1880,15 @@
1880
1880
  },
1881
1881
  "optional": true,
1882
1882
  "description": "Sidebar media query for custom elements mode"
1883
+ },
1884
+ {
1885
+ "kind": "field",
1886
+ "name": "storageKey",
1887
+ "type": {
1888
+ "text": "string"
1889
+ },
1890
+ "optional": true,
1891
+ "description": "Storage key for scroll position persistence"
1883
1892
  }
1884
1893
  ],
1885
1894
  "events": []
@@ -2895,7 +2904,7 @@
2895
2904
  "text": "string"
2896
2905
  },
2897
2906
  "optional": true,
2898
- "description": "When provided, expanded/collapsed states are saved to `sessionStorage` under this key and restored on page load. Item states are keyed by each the `label` prop. If the menu is inside a scrollable container such as `GSidebar`, the scroll position is also saved and restored automatically."
2907
+ "description": "When provided, expanded/collapsed states are saved to `sessionStorage` under this key and restored on page load. Item states are keyed by each the `label` prop."
2899
2908
  },
2900
2909
  {
2901
2910
  "kind": "field",
@@ -0,0 +1,15 @@
1
+ declare var __VLS_1: {}, __VLS_3: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ } & {
5
+ fallback?: (props: typeof __VLS_3) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -13,7 +13,7 @@ export default _default;
13
13
  declare const __VLS_export: import("vue").DefineComponent<{
14
14
  /**
15
15
  * Label
16
- * @demo
16
+ * @demo Currency Input
17
17
  */
18
18
  label?: string;
19
19
  /**
@@ -55,7 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
55
55
  }, string, import("vue").PublicProps, Readonly<{
56
56
  /**
57
57
  * Label
58
- * @demo
58
+ * @demo Currency Input
59
59
  */
60
60
  label?: string;
61
61
  /**
@@ -13,7 +13,7 @@ export default _default;
13
13
  declare const __VLS_export: import("vue").DefineComponent<{
14
14
  /**
15
15
  * Label
16
- * @demo
16
+ * @demo Date Input
17
17
  */
18
18
  label?: string;
19
19
  /**
@@ -55,7 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
55
55
  }, string, import("vue").PublicProps, Readonly<{
56
56
  /**
57
57
  * Label
58
- * @demo
58
+ * @demo Date Input
59
59
  */
60
60
  label?: string;
61
61
  /**
@@ -13,7 +13,7 @@ export default _default;
13
13
  declare const __VLS_export: import("vue").DefineComponent<{
14
14
  /**
15
15
  * Label for the component
16
- * @demo
16
+ * @demo Date Range Input
17
17
  */
18
18
  label?: string;
19
19
  /**
@@ -66,7 +66,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
66
66
  }, string, import("vue").PublicProps, Readonly<{
67
67
  /**
68
68
  * Label for the component
69
- * @demo
69
+ * @demo Date Range Input
70
70
  */
71
71
  label?: string;
72
72
  /**
@@ -9,7 +9,7 @@ export default _default;
9
9
  declare const __VLS_export: import("vue").DefineComponent<{
10
10
  /**
11
11
  * Label
12
- * @demo
12
+ * @demo Email Input
13
13
  */
14
14
  label?: string;
15
15
  /**
@@ -47,7 +47,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
47
47
  }, string, import("vue").PublicProps, Readonly<{
48
48
  /**
49
49
  * Label
50
- * @demo
50
+ * @demo Email Input
51
51
  */
52
52
  label?: string;
53
53
  /**
@@ -15,6 +15,9 @@
15
15
  * In web components mode, use the `sidebar-key` prop to pair this sidebar
16
16
  * with a matching GHamburgerMenu instance and `media-query` to set the
17
17
  * collapsible breakpoint.
18
+ *
19
+ * When `storage-key` is provided, the sidebar remembers and restores its own
20
+ * scroll position from `sessionStorage`.
18
21
  */
19
22
  declare const _default: typeof __VLS_export;
20
23
  export default _default;
@@ -59,6 +62,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
59
62
  * @demo
60
63
  */
61
64
  mediaQuery?: string;
65
+ /**
66
+ * Storage key for scroll position persistence
67
+ * @demo
68
+ */
69
+ storageKey?: string;
62
70
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
63
71
  /**
64
72
  * Custom background color
@@ -100,6 +108,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
100
108
  * @demo
101
109
  */
102
110
  mediaQuery?: string;
111
+ /**
112
+ * Storage key for scroll position persistence
113
+ * @demo
114
+ */
115
+ storageKey?: string;
103
116
  }> & Readonly<{}>, {
104
117
  width: string;
105
118
  theme: "light" | "dark";
@@ -17,7 +17,7 @@ export default _default;
17
17
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
18
18
  /**
19
19
  * Label
20
- * @demo Example Label
20
+ * @demo Text Input Label
21
21
  */
22
22
  label?: string;
23
23
  /**
@@ -78,7 +78,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
78
78
  }, string, import("vue").PublicProps, Readonly<{
79
79
  /**
80
80
  * Label
81
- * @demo Example Label
81
+ * @demo Text Input Label
82
82
  */
83
83
  label?: string;
84
84
  /**
@@ -18,7 +18,7 @@ export default _default;
18
18
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
19
19
  /**
20
20
  * Label
21
- * @demo Example Label
21
+ * @demo Textarea Label
22
22
  */
23
23
  label?: string;
24
24
  /**
@@ -84,7 +84,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
84
84
  }, string, import("vue").PublicProps, Readonly<{
85
85
  /**
86
86
  * Label
87
- * @demo Example Label
87
+ * @demo Textarea Label
88
88
  */
89
89
  label?: string;
90
90
  /**
@@ -38,9 +38,7 @@
38
38
  * - `storageKey` - when provided, expanded/collapsed states are persisted to
39
39
  * `sessionStorage` under this key and restored on page load. This is useful
40
40
  * in Web Component / Drupal contexts where every page navigation is a full
41
- * refresh. Item states are keyed by the item's `label` prop. If the menu is
42
- * inside a scrollable container such as `GSidebar`, the scroll position is
43
- * also saved and restored automatically.
41
+ * refresh. Item states are keyed by the item's `label` prop.
44
42
  *
45
43
  * **Keyboard navigation** (tree-view style):
46
44
  *
@@ -71,8 +69,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
71
69
  /**
72
70
  * When provided, expanded/collapsed states are saved to `sessionStorage`
73
71
  * under this key and restored on page load. Item states are keyed by each
74
- * the `label` prop. If the menu is inside a scrollable container such as
75
- * `GSidebar`, the scroll position is also saved and restored automatically.
72
+ * the `label` prop.
76
73
  */
77
74
  storageKey?: string;
78
75
  /**
@@ -109,8 +106,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
109
106
  /**
110
107
  * When provided, expanded/collapsed states are saved to `sessionStorage`
111
108
  * under this key and restored on page load. Item states are keyed by each
112
- * the `label` prop. If the menu is inside a scrollable container such as
113
- * `GSidebar`, the scroll position is also saved and restored automatically.
109
+ * the `label` prop.
114
110
  */
115
111
  storageKey?: string;
116
112
  /**
@@ -1,10 +1,11 @@
1
1
  import { type Ref } from "vue";
2
2
  /**
3
3
  * Composable to handle scroll position storage and automatic restoration for a component.
4
- * Saves the scroll top of the nearest scrollable parent when scrolling,
5
- * and restores it automatically on mount or when the component becomes visible.
4
+ * Saves the scroll top of the scrollable element itself, or its nearest scrollable
5
+ * parent when the element is not scrollable, and restores it automatically on mount
6
+ * or when the component becomes visible.
6
7
  *
7
- * @param elementRef Ref to the element whose scrollable parent should be tracked.
8
+ * @param elementRef Ref to the element whose scrollable element should be tracked.
8
9
  * @param storageKey Session storage key prefix. Scroll position is saved under `${storageKey}:scroll`.
9
10
  */
10
11
  export declare function useScrollRestore(elementRef: Ref<HTMLElement | null>, storageKey: string | undefined): {