frontile 0.18.5 → 0.18.7

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 (219) hide show
  1. package/declarations/-private/icons.d.ts +4 -0
  2. package/declarations/-private/icons.d.ts.map +1 -1
  3. package/declarations/-private/reveal-within.d.ts +19 -0
  4. package/declarations/-private/reveal-within.d.ts.map +1 -0
  5. package/declarations/components/collections/calendar/year-grid.d.ts.map +1 -1
  6. package/declarations/components/collections/dropdown/dropdown.d.ts +50 -53
  7. package/declarations/components/collections/dropdown/dropdown.d.ts.map +1 -1
  8. package/declarations/components/collections/listbox/item.d.ts +52 -1
  9. package/declarations/components/collections/listbox/item.d.ts.map +1 -1
  10. package/declarations/components/forms/date-input/segment-group.d.ts +2 -1
  11. package/declarations/components/forms/date-input/segment-group.d.ts.map +1 -1
  12. package/declarations/components/forms/date-input/segments.d.ts +3 -1
  13. package/declarations/components/forms/date-input/segments.d.ts.map +1 -1
  14. package/declarations/components/forms/date-picker/date-picker.d.ts +119 -1
  15. package/declarations/components/forms/date-picker/date-picker.d.ts.map +1 -1
  16. package/declarations/components/forms/date-picker/time-columns.d.ts +87 -0
  17. package/declarations/components/forms/date-picker/time-columns.d.ts.map +1 -0
  18. package/declarations/components/forms/date-picker/types.d.ts +28 -0
  19. package/declarations/components/forms/date-picker/types.d.ts.map +1 -1
  20. package/declarations/components/forms/select/native-mirror.d.ts +3 -2
  21. package/declarations/components/forms/select/native-mirror.d.ts.map +1 -1
  22. package/declarations/components/forms/select/select.d.ts +31 -2
  23. package/declarations/components/forms/select/select.d.ts.map +1 -1
  24. package/declarations/components/forms/select/types.d.ts +3 -2
  25. package/declarations/components/forms/select/types.d.ts.map +1 -1
  26. package/declarations/components/layout/app-layout-state.d.ts +32 -0
  27. package/declarations/components/layout/app-layout-state.d.ts.map +1 -0
  28. package/declarations/components/layout/app-layout.d.ts +954 -0
  29. package/declarations/components/layout/app-layout.d.ts.map +1 -0
  30. package/declarations/components/layout/aside-toggle.d.ts +55 -0
  31. package/declarations/components/layout/aside-toggle.d.ts.map +1 -0
  32. package/declarations/components/layout/aside.d.ts +761 -0
  33. package/declarations/components/layout/aside.d.ts.map +1 -0
  34. package/declarations/components/layout/bottom-nav-more.d.ts +123 -0
  35. package/declarations/components/layout/bottom-nav-more.d.ts.map +1 -0
  36. package/declarations/components/layout/bottom-nav.d.ts +60 -0
  37. package/declarations/components/layout/bottom-nav.d.ts.map +1 -0
  38. package/declarations/components/layout/context.d.ts +134 -0
  39. package/declarations/components/layout/context.d.ts.map +1 -0
  40. package/declarations/components/layout/index.d.ts +14 -0
  41. package/declarations/components/layout/index.d.ts.map +1 -0
  42. package/declarations/components/layout/main.d.ts +28 -0
  43. package/declarations/components/layout/main.d.ts.map +1 -0
  44. package/declarations/components/layout/menu-toggle.d.ts +58 -0
  45. package/declarations/components/layout/menu-toggle.d.ts.map +1 -0
  46. package/declarations/components/layout/nav-context.d.ts +45 -0
  47. package/declarations/components/layout/nav-context.d.ts.map +1 -0
  48. package/declarations/components/layout/nav-folder.d.ts +216 -0
  49. package/declarations/components/layout/nav-folder.d.ts.map +1 -0
  50. package/declarations/components/layout/nav-item.d.ts +220 -0
  51. package/declarations/components/layout/nav-item.d.ts.map +1 -0
  52. package/declarations/components/layout/nav-link.d.ts +67 -0
  53. package/declarations/components/layout/nav-link.d.ts.map +1 -0
  54. package/declarations/components/layout/navbar.d.ts +27 -0
  55. package/declarations/components/layout/navbar.d.ts.map +1 -0
  56. package/declarations/components/layout/page-header.d.ts +40 -0
  57. package/declarations/components/layout/page-header.d.ts.map +1 -0
  58. package/declarations/components/layout/sidebar-group.d.ts +41 -0
  59. package/declarations/components/layout/sidebar-group.d.ts.map +1 -0
  60. package/declarations/components/layout/sidebar-toggle.d.ts +71 -0
  61. package/declarations/components/layout/sidebar-toggle.d.ts.map +1 -0
  62. package/declarations/components/layout/sidebar.d.ts +904 -0
  63. package/declarations/components/layout/sidebar.d.ts.map +1 -0
  64. package/declarations/components/navigation/index.d.ts +1 -0
  65. package/declarations/components/navigation/index.d.ts.map +1 -1
  66. package/declarations/components/navigation/stepper/collapse-menu.d.ts +42 -0
  67. package/declarations/components/navigation/stepper/collapse-menu.d.ts.map +1 -0
  68. package/declarations/components/navigation/stepper/list.d.ts +24 -0
  69. package/declarations/components/navigation/stepper/list.d.ts.map +1 -0
  70. package/declarations/components/navigation/stepper/panel.d.ts +42 -0
  71. package/declarations/components/navigation/stepper/panel.d.ts.map +1 -0
  72. package/declarations/components/navigation/stepper/step.d.ts +123 -0
  73. package/declarations/components/navigation/stepper/step.d.ts.map +1 -0
  74. package/declarations/components/navigation/stepper/stepper.d.ts +947 -0
  75. package/declarations/components/navigation/stepper/stepper.d.ts.map +1 -0
  76. package/declarations/components/navigation/stepper.d.ts +6 -0
  77. package/declarations/components/navigation/stepper.d.ts.map +1 -0
  78. package/declarations/components/navigation/tab-nav/item.d.ts +2 -2
  79. package/declarations/components/navigation/tab-nav/item.d.ts.map +1 -1
  80. package/declarations/components/overlays/overlay.d.ts +17 -2
  81. package/declarations/components/overlays/overlay.d.ts.map +1 -1
  82. package/declarations/components/overlays/portal.d.ts.map +1 -1
  83. package/declarations/components/utilities/collapsible.d.ts +19 -2
  84. package/declarations/components/utilities/collapsible.d.ts.map +1 -1
  85. package/declarations/index.d.ts +1 -0
  86. package/declarations/index.d.ts.map +1 -1
  87. package/declarations/layout.d.ts +2 -0
  88. package/declarations/layout.d.ts.map +1 -0
  89. package/declarations/test-support.d.ts.map +1 -1
  90. package/declarations/utils/breakpoint.d.ts +16 -0
  91. package/declarations/utils/breakpoint.d.ts.map +1 -0
  92. package/declarations/utils/document-listener.d.ts +6 -0
  93. package/declarations/utils/document-listener.d.ts.map +1 -0
  94. package/declarations/utils/listManager.d.ts +7 -1
  95. package/declarations/utils/listManager.d.ts.map +1 -1
  96. package/declarations/utils/route-active.d.ts +34 -0
  97. package/declarations/utils/route-active.d.ts.map +1 -0
  98. package/declarations/utils/selection-indicator.d.ts +7 -4
  99. package/declarations/utils/selection-indicator.d.ts.map +1 -1
  100. package/dist/components/collections/calendar/header.js +1 -1
  101. package/dist/components/collections/calendar/year-grid.js +1 -30
  102. package/dist/components/collections/calendar/year-grid.js.map +1 -1
  103. package/dist/components/collections/dropdown/dropdown.js +172 -48
  104. package/dist/components/collections/dropdown/dropdown.js.map +1 -1
  105. package/dist/components/collections/listbox/item.js +36 -2
  106. package/dist/components/collections/listbox/item.js.map +1 -1
  107. package/dist/components/collections/table/column-visibility.js +1 -1
  108. package/dist/components/collections/table/sort-button.js +1 -1
  109. package/dist/components/disclosure/accordion/item.js +1 -1
  110. package/dist/components/forms/autocomplete.js +1 -1
  111. package/dist/components/forms/date-input/segment-group.js +1 -1
  112. package/dist/components/forms/date-input/segment-group.js.map +1 -1
  113. package/dist/components/forms/date-input/segments.js +1 -1
  114. package/dist/components/forms/date-input/segments.js.map +1 -1
  115. package/dist/components/forms/date-input.js +1 -1
  116. package/dist/components/forms/date-picker/date-picker.js +57 -6
  117. package/dist/components/forms/date-picker/date-picker.js.map +1 -1
  118. package/dist/components/forms/date-picker/end-content.js +1 -1
  119. package/dist/components/forms/date-picker/time-columns.js +238 -0
  120. package/dist/components/forms/date-picker/time-columns.js.map +1 -0
  121. package/dist/components/forms/index.js +1 -1
  122. package/dist/components/forms/native-select.js +1 -1
  123. package/dist/components/forms/select/end-content.js +1 -1
  124. package/dist/components/forms/select/native-mirror.js.map +1 -1
  125. package/dist/components/forms/select/select.js +24 -5
  126. package/dist/components/forms/select/select.js.map +1 -1
  127. package/dist/components/layout/app-layout-state.js +64 -0
  128. package/dist/components/layout/app-layout-state.js.map +1 -0
  129. package/dist/components/layout/app-layout.js +416 -0
  130. package/dist/components/layout/app-layout.js.map +1 -0
  131. package/dist/components/layout/aside-toggle.js +55 -0
  132. package/dist/components/layout/aside-toggle.js.map +1 -0
  133. package/dist/components/layout/aside.js +100 -0
  134. package/dist/components/layout/aside.js.map +1 -0
  135. package/dist/components/layout/bottom-nav-more.js +150 -0
  136. package/dist/components/layout/bottom-nav-more.js.map +1 -0
  137. package/dist/components/layout/bottom-nav.js +65 -0
  138. package/dist/components/layout/bottom-nav.js.map +1 -0
  139. package/dist/components/layout/context.js +89 -0
  140. package/dist/components/layout/context.js.map +1 -0
  141. package/dist/components/layout/index.js +14 -0
  142. package/dist/components/layout/index.js.map +1 -0
  143. package/dist/components/layout/main.js +34 -0
  144. package/dist/components/layout/main.js.map +1 -0
  145. package/dist/components/layout/menu-toggle.js +61 -0
  146. package/dist/components/layout/menu-toggle.js.map +1 -0
  147. package/dist/components/layout/nav-context.js +85 -0
  148. package/dist/components/layout/nav-context.js.map +1 -0
  149. package/dist/components/layout/nav-folder.js +271 -0
  150. package/dist/components/layout/nav-folder.js.map +1 -0
  151. package/dist/components/layout/nav-item.js +192 -0
  152. package/dist/components/layout/nav-item.js.map +1 -0
  153. package/dist/components/layout/nav-link.js +58 -0
  154. package/dist/components/layout/nav-link.js.map +1 -0
  155. package/dist/components/layout/navbar.js +30 -0
  156. package/dist/components/layout/navbar.js.map +1 -0
  157. package/dist/components/layout/page-header.js +45 -0
  158. package/dist/components/layout/page-header.js.map +1 -0
  159. package/dist/components/layout/sidebar-group.js +41 -0
  160. package/dist/components/layout/sidebar-group.js.map +1 -0
  161. package/dist/components/layout/sidebar-toggle.js +82 -0
  162. package/dist/components/layout/sidebar-toggle.js.map +1 -0
  163. package/dist/components/layout/sidebar.js +249 -0
  164. package/dist/components/layout/sidebar.js.map +1 -0
  165. package/dist/components/navigation/breadcrumbs/separator.js +1 -1
  166. package/dist/components/navigation/index.js +4 -0
  167. package/dist/components/navigation/index.js.map +1 -1
  168. package/dist/components/navigation/pagination/pagination.js +1 -1
  169. package/dist/components/navigation/stepper/collapse-menu.js +128 -0
  170. package/dist/components/navigation/stepper/collapse-menu.js.map +1 -0
  171. package/dist/components/navigation/stepper/list.js +17 -0
  172. package/dist/components/navigation/stepper/list.js.map +1 -0
  173. package/dist/components/navigation/stepper/panel.js +26 -0
  174. package/dist/components/navigation/stepper/panel.js.map +1 -0
  175. package/dist/components/navigation/stepper/step.js +130 -0
  176. package/dist/components/navigation/stepper/step.js.map +1 -0
  177. package/dist/components/navigation/stepper/stepper.js +475 -0
  178. package/dist/components/navigation/stepper/stepper.js.map +1 -0
  179. package/dist/components/navigation/stepper.js +5 -0
  180. package/dist/components/navigation/stepper.js.map +1 -0
  181. package/dist/components/navigation/tab-nav/item.js +6 -40
  182. package/dist/components/navigation/tab-nav/item.js.map +1 -1
  183. package/dist/components/notifications/index.js +1 -1
  184. package/dist/components/notifications/notification-card.js +2 -2
  185. package/dist/components/notifications/notifications-container.js +1 -1
  186. package/dist/components/overlays/overlay.js +55 -7
  187. package/dist/components/overlays/overlay.js.map +1 -1
  188. package/dist/components/overlays/portal.js +11 -2
  189. package/dist/components/overlays/portal.js.map +1 -1
  190. package/dist/components/status/alert.js +1 -1
  191. package/dist/components/utilities/collapsible.js +33 -5
  192. package/dist/components/utilities/collapsible.js.map +1 -1
  193. package/dist/forms.js +1 -1
  194. package/dist/{icons-DZ61nCzv.js → icons-55dthVFk.js} +14 -2
  195. package/dist/{icons-DZ61nCzv.js.map → icons-55dthVFk.js.map} +1 -1
  196. package/dist/index.js +19 -2
  197. package/dist/index.js.map +1 -1
  198. package/dist/layout.js +14 -0
  199. package/dist/layout.js.map +1 -0
  200. package/dist/navigation.js +4 -0
  201. package/dist/navigation.js.map +1 -1
  202. package/dist/{notification-card-dz-eE6z9.js → notification-card-BPfDo-Gf.js} +2 -2
  203. package/dist/{notification-card-dz-eE6z9.js.map → notification-card-BPfDo-Gf.js.map} +1 -1
  204. package/dist/notifications.js +1 -1
  205. package/dist/reveal-within-BcqpOmSI.js +33 -0
  206. package/dist/reveal-within-BcqpOmSI.js.map +1 -0
  207. package/dist/test-support.js +3 -1
  208. package/dist/test-support.js.map +1 -1
  209. package/dist/utils/breakpoint.js +56 -0
  210. package/dist/utils/breakpoint.js.map +1 -0
  211. package/dist/utils/document-listener.js +10 -0
  212. package/dist/utils/document-listener.js.map +1 -0
  213. package/dist/utils/listManager.js +12 -2
  214. package/dist/utils/listManager.js.map +1 -1
  215. package/dist/utils/route-active.js +70 -0
  216. package/dist/utils/route-active.js.map +1 -0
  217. package/dist/utils/selection-indicator.js +25 -5
  218. package/dist/utils/selection-indicator.js.map +1 -1
  219. package/package.json +7 -3
@@ -0,0 +1,216 @@
1
+ import Component from '@glimmer/component';
2
+ import NavItem from './nav-item';
3
+ import { NavItemRegistry } from './nav-context';
4
+ import type { NavFolderContext, NavItemHandle } from './nav-context';
5
+ import type { ComponentLike, WithBoundArgs } from '@glint/template';
6
+ interface NavFolderArgs {
7
+ /** The folder's label, shown in its trigger. */
8
+ label: string;
9
+ /**
10
+ * An icon component, shown before the label. It is hidden from assistive
11
+ * technology.
12
+ */
13
+ icon?: ComponentLike;
14
+ /**
15
+ * Makes the open state controlled. Clicks then only call `@onOpenChange`,
16
+ * and so does an automatic open when a child becomes active.
17
+ *
18
+ * This is the inline open state. In the collapsed icon rail the folder
19
+ * opens as a menu instead, whose state is its own: `@open` does not
20
+ * control it and `@onOpenChange` is not called for it. The inline state
21
+ * still follows an active child there, and shows on expanding.
22
+ */
23
+ open?: boolean;
24
+ /**
25
+ * The initial open state when `@open` is not given.
26
+ *
27
+ * @defaultValue false
28
+ */
29
+ defaultOpen?: boolean;
30
+ /**
31
+ * Called with the requested inline open state whenever it would change.
32
+ * Not called when the menu of the collapsed icon rail opens or closes.
33
+ */
34
+ onOpenChange?: (open: boolean) => void;
35
+ /**
36
+ * Hides the folder. A folder is also hidden when none of its items is
37
+ * visible.
38
+ *
39
+ * @defaultValue false
40
+ */
41
+ isHidden?: boolean;
42
+ /**
43
+ * Class names added to the folder's root element. Merged with Tailwind
44
+ * Merge, so a class that conflicts with a theme class wins.
45
+ */
46
+ class?: string;
47
+ /**
48
+ * Supplied by `Sidebar`: whether the sidebar is drawn as the icon rail,
49
+ * where the folder opens as a menu. Not part of the public API.
50
+ *
51
+ * @internal
52
+ */
53
+ rail?: boolean;
54
+ /**
55
+ * Supplied by `Sidebar`: the side rail tooltips, and so the menu, open
56
+ * on. Not part of the public API.
57
+ *
58
+ * @defaultValue 'right'
59
+ * @internal
60
+ */
61
+ tooltipPlacement?: 'left' | 'right';
62
+ /**
63
+ * Supplied by `Sidebar` while it renders in the mobile drawer: handed to
64
+ * each item so following one closes the drawer. Not part of the public API.
65
+ *
66
+ * @internal
67
+ */
68
+ onActivate?: () => void;
69
+ /**
70
+ * Supplied by `BottomNav.More`: the container this folder belongs to. The
71
+ * folder registers a handle with it that reports its children: active when
72
+ * a visible child is, hidden when the folder or every child is, badged
73
+ * when a visible child is. Not part of the public API.
74
+ *
75
+ * @internal
76
+ */
77
+ parent?: NavFolderContext;
78
+ }
79
+ interface NavFolderSignature {
80
+ Args: NavFolderArgs;
81
+ Blocks: {
82
+ /** Yields `Item`, a `NavItem` that belongs to this folder. */
83
+ default: [
84
+ {
85
+ Item: WithBoundArgs<typeof NavItem, 'rail' | 'tooltipPlacement' | 'onActivate' | 'folder'>;
86
+ }
87
+ ];
88
+ };
89
+ Element: HTMLDivElement;
90
+ }
91
+ interface FolderTriggerSignature {
92
+ Args: {
93
+ label: string;
94
+ icon?: ComponentLike;
95
+ isOpen: boolean;
96
+ isActive: boolean;
97
+ classes: {
98
+ navFolderTrigger: string;
99
+ navItemIcon: string;
100
+ navItemLabel: string;
101
+ navFolderChevron: string;
102
+ };
103
+ };
104
+ Element: HTMLAnchorElement | HTMLButtonElement;
105
+ }
106
+ /**
107
+ * A collapsible group of navigation items, one level deep. The trigger is a
108
+ * disclosure button (`aria-expanded`, `aria-controls`); the items sit in a
109
+ * `role="group"` panel labelled by it. The folder opens when
110
+ * one of its items is active, on load and whenever an item newly becomes
111
+ * active, but never forces itself open otherwise. It is hidden when none of
112
+ * its items is visible.
113
+ *
114
+ * In the collapsed icon rail (not in the mobile drawer) the trigger is a
115
+ * `Dropdown` menu button instead, and the items are the menu's link items,
116
+ * beside the rail. The menu brings the keyboard model (arrows, type-ahead,
117
+ * Escape returning focus to the trigger); tabbing out of it or following an
118
+ * item closes it.
119
+ */
120
+ declare class NavFolder extends Component<NavFolderSignature> {
121
+ #private;
122
+ /** The registered items; see `NavItemRegistry`. */
123
+ registry: NavItemRegistry;
124
+ internalOpen: boolean;
125
+ /**
126
+ * The rail menu's open state, separate from the inline one so neither
127
+ * disturbs the other. Only honored in the rail; see `isMenuOpen`.
128
+ */
129
+ menuOpen: boolean;
130
+ /** Whether the rail trigger's tooltip would be open; see `isTooltipShown`. */
131
+ tooltipOpen: boolean;
132
+ constructor(owner: unknown, args: NavFolderSignature['Args']);
133
+ get visibleItems(): NavItemHandle[];
134
+ /** A hidden item never makes the folder active. */
135
+ get hasActiveDescendant(): boolean;
136
+ /** Hidden by `@isHidden`, or because no item is visible (or there is none). */
137
+ get isFolderHidden(): true | undefined;
138
+ get isControlled(): boolean;
139
+ /** The inline open state, whatever the sidebar's shape. */
140
+ get isOpen(): boolean;
141
+ /**
142
+ * In the icon rail the items sit in a menu. `rail` is never set inside the
143
+ * mobile drawer, which is always expanded, so the folder is inline there.
144
+ */
145
+ get isMenuMode(): boolean;
146
+ get isMenuOpen(): boolean;
147
+ /** What the folder reports as open: the menu in the rail, else the panel. */
148
+ get isExpanded(): boolean;
149
+ /** A collapsed panel keeps its links out of the tab order. */
150
+ get inert(): true | undefined;
151
+ /**
152
+ * The rail trigger is only an icon, so it shows its label as a tooltip,
153
+ * with no delay like the rail items beside it, but never over its open
154
+ * menu. Two guards, because the tooltip can open in the same event that
155
+ * opens the menu (a click focuses the trigger first, and a keyboard focus
156
+ * opens a no-delay tooltip at once): opening the menu closes the tooltip,
157
+ * and while the menu is open the tooltip's own requests to open are
158
+ * ignored. Its listeners stay installed, so a pointer leaving the trigger
159
+ * meanwhile is still heard.
160
+ */
161
+ get isTooltipShown(): boolean;
162
+ setTooltipOpen: (open: boolean) => void;
163
+ setMenuOpen: (open: boolean) => void;
164
+ /**
165
+ * Tab (either way) in the open menu closes it; the menu hands focus back
166
+ * to the trigger, so the next Tab moves on from there. Without this the
167
+ * menu's focus trap would keep focus cycling inside it.
168
+ */
169
+ closeMenuOnTab: (event: KeyboardEvent) => void;
170
+ /**
171
+ * The menu beside the rail: toward the content, top edges aligned. Flips
172
+ * for an end sidebar, whose tooltips open on the left.
173
+ */
174
+ get menuPlacement(): 'left-start' | 'right-start';
175
+ setOpen(open: boolean): void;
176
+ toggle: () => void;
177
+ /**
178
+ * Leaving the rail (expanding the sidebar) removes the menu with the
179
+ * `Dropdown` around it, so it also resets the rail state: the next
180
+ * collapse starts closed. Deferred: this runs during render, which has
181
+ * already read the state.
182
+ */
183
+ resetOutsideRail: import("ember-modifier").FunctionBasedModifier<{
184
+ Args: {
185
+ Positional: [boolean];
186
+ Named: import("ember-modifier/-private/signature").EmptyObject;
187
+ };
188
+ Element: HTMLElement;
189
+ }>;
190
+ /**
191
+ * Opens the folder when an item *newly* becomes active: on load (the first
192
+ * time an active item is seen) and after a later transition into one.
193
+ * Re-renders that leave it active do nothing, so a folder the user closed
194
+ * stays closed. Deferred to after render, where changing state is safe.
195
+ */
196
+ followActive: import("ember-modifier").FunctionBasedModifier<{
197
+ Args: {
198
+ Positional: [boolean];
199
+ Named: import("ember-modifier/-private/signature").EmptyObject;
200
+ };
201
+ Element: HTMLElement;
202
+ }>;
203
+ get triggerId(): string;
204
+ get panelId(): string;
205
+ get classes(): {
206
+ navFolder: string;
207
+ navFolderPanel: string;
208
+ };
209
+ /** The slots of the folder's trigger, with the icon and label of a row. */
210
+ get triggerClasses(): FolderTriggerSignature['Args']['classes'];
211
+ /** Merged, so a consumer class wins over a conflicting theme class. */
212
+ get className(): string;
213
+ }
214
+ export { NavFolder, type NavFolderSignature, type NavFolderArgs };
215
+ export default NavFolder;
216
+ //# sourceMappingURL=nav-folder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-folder.d.ts","sourceRoot":"","sources":["../../../src/components/layout/nav-folder.gts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OAIG;IACH,cAAc,GAAI,OAAO,aAAa,KAAG,IAAI,CAK3C;IAEF;;;OAGG;IACH,IAAI,aAAa,IAAI,YAAY,GAAG,aAAa,CAEhD;IAED,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAO5B,MAAM,QAAO,IAAI,CAEf;IAEF;;;;;OAKG;IACH,gBAAgB;;;;;;OAUb;IAEH;;;;;OAKG;IACH,YAAY;;;;;;OAUT;IAEH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IACI,OAAO;;;MAMV;IAED,2EAA2E;IAC3E,IACI,cAAc,IAAI,sBAAsB,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAQ9D;IAED,uEAAuE;IACvE,IAAI,SAAS,IAAI,MAAM,CAEtB;CAkJF;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,CAAC;AAClE,eAAe,SAAS,CAAC"}
@@ -0,0 +1,220 @@
1
+ import Component from '@glimmer/component';
2
+ import type { NavFolderContext } from './nav-context';
3
+ import type { ListboxItem } from '../collections/listbox/item';
4
+ import type RouterService from '@ember/routing/router-service';
5
+ import type { ComponentLike, WithBoundArgs } from '@glint/template';
6
+ /** How the item lays out its icon and label. */
7
+ type NavItemLayout = 'inline' | 'stacked' | 'icon';
8
+ interface NavItemArgs {
9
+ /**
10
+ * Renders a `LinkTo` for this route and derives the active state from the
11
+ * router. Omit it (and pass `@href`) to stay entirely router-free.
12
+ */
13
+ route?: string;
14
+ /** Dynamic segments for `@route`. */
15
+ models?: unknown[];
16
+ /** A single dynamic segment for `@route`. */
17
+ model?: unknown;
18
+ /** Query params for `@route`. */
19
+ query?: Record<string, unknown>;
20
+ /** Renders a plain anchor. Ignored when `@route` is given. */
21
+ href?: string;
22
+ /**
23
+ * Overrides the active state. Always wins over anything derived from the
24
+ * router, and is the only source of truth when `@route` is not used.
25
+ */
26
+ isActive?: boolean;
27
+ /**
28
+ * Marks the link as disabled. The href is dropped as well, so the link
29
+ * cannot be followed; an item with neither `@href` nor `@route` is a
30
+ * button, which gets the native `disabled` attribute.
31
+ *
32
+ * @defaultValue false
33
+ */
34
+ isDisabled?: boolean;
35
+ /**
36
+ * Renders nothing at all. For items the current user may not see.
37
+ *
38
+ * @defaultValue false
39
+ */
40
+ isHidden?: boolean;
41
+ /**
42
+ * An icon component, shown before the label. In the icon rail it is the
43
+ * only visible part of the item. It is hidden from assistive technology.
44
+ */
45
+ icon?: ComponentLike;
46
+ /**
47
+ * How the item lays out its icon and label. `inline` puts the label beside
48
+ * the icon and follows the sidebar's icon rail; `stacked` puts a small label
49
+ * under the icon; `icon` shows the icon alone, with the label as a tooltip.
50
+ * `stacked` and `icon` ignore the sidebar's collapsed state.
51
+ *
52
+ * @defaultValue 'inline'
53
+ */
54
+ layout?: NavItemLayout;
55
+ /**
56
+ * Shorter text shown in place of the label in the `stacked` layout. The
57
+ * full label stays the link's accessible name.
58
+ */
59
+ shortLabel?: string;
60
+ /**
61
+ * A count or short status shown as a pill: at the end of the row, or on
62
+ * the icon's corner where only the icon shows (the collapsed rail, the
63
+ * stacked and icon layouts). Nothing is shown for `undefined`, `null`, `0`
64
+ * or an empty string.
65
+ */
66
+ badge?: string | number;
67
+ /**
68
+ * Screen-reader text for the badge, read after the label. Defaults to the
69
+ * badge value.
70
+ */
71
+ badgeLabel?: string;
72
+ /**
73
+ * Class names added to this item's theme classes. Merged with Tailwind
74
+ * Merge, so a class that conflicts with a theme class wins.
75
+ */
76
+ class?: string;
77
+ /**
78
+ * Supplied by `Sidebar`: whether the sidebar is drawn as the icon rail.
79
+ * Not part of the public API.
80
+ *
81
+ * @internal
82
+ */
83
+ rail?: boolean;
84
+ /**
85
+ * Supplied by `Sidebar` (or `BottomNav`): the side of the item its
86
+ * tooltip opens on.
87
+ * Not part of the public API.
88
+ *
89
+ * @internal
90
+ */
91
+ tooltipPlacement?: 'left' | 'right' | 'top';
92
+ /**
93
+ * Supplied by `Sidebar` while it renders in the mobile drawer: called when
94
+ * the item's link is clicked, so the drawer closes. Not called for a
95
+ * disabled item. Not part of the public API.
96
+ *
97
+ * @internal
98
+ */
99
+ onActivate?: () => void;
100
+ /**
101
+ * Supplied by `NavFolder`: the folder this item belongs to. The item
102
+ * registers itself with it so the folder can follow its active and hidden
103
+ * state. Not part of the public API.
104
+ *
105
+ * @internal
106
+ */
107
+ folder?: NavFolderContext;
108
+ /**
109
+ * Supplied by `BottomNav.More`: shows the badge as a small dot with no
110
+ * text, whatever `@badge` is. `@badgeLabel` is its screen-reader text.
111
+ * Not part of the public API.
112
+ *
113
+ * @internal
114
+ */
115
+ badgeDot?: boolean;
116
+ /**
117
+ * Supplied by `BottomNav.More`: never shows the label as a tooltip, even
118
+ * in the `icon` layout. Not part of the public API.
119
+ *
120
+ * @internal
121
+ */
122
+ noTooltip?: boolean;
123
+ /**
124
+ * Supplied by `NavFolder` in the icon rail: the `Dropdown` menu's item
125
+ * component. The item then renders as a link row of that menu (a
126
+ * `role="menuitem"` holding the link) instead of a nav row. Not part of
127
+ * the public API.
128
+ *
129
+ * @internal
130
+ */
131
+ menuItem?: WithBoundArgs<typeof ListboxItem, 'manager' | 'onLinkActivate'>;
132
+ /**
133
+ * Supplied by `NavFolder` in the icon rail: the item only registers with
134
+ * its folder and renders nothing, so the folder can follow its active state
135
+ * while its menu is closed. Not part of the public API.
136
+ *
137
+ * @internal
138
+ */
139
+ registerOnly?: boolean;
140
+ }
141
+ interface NavItemSignature {
142
+ Args: NavItemArgs;
143
+ Blocks: {
144
+ /** The item's label. */
145
+ default: [];
146
+ };
147
+ Element: HTMLAnchorElement | HTMLButtonElement | HTMLLIElement;
148
+ }
149
+ /**
150
+ * A styled navigation link. It takes the same routing arguments as
151
+ * `TabNav.Item`: `@route` renders a `LinkTo` and the router decides whether it
152
+ * is active; `@href` renders a plain anchor and needs no router. The active
153
+ * item carries `aria-current="page"`. In the icon rail the label is visually
154
+ * hidden but keeps naming the link, and shows as a tooltip on hover or focus.
155
+ */
156
+ declare class NavItem extends Component<NavItemSignature> {
157
+ router: RouterService;
158
+ constructor(owner: unknown, args: NavItemSignature['Args']);
159
+ get layout(): NavItemLayout;
160
+ /** The item's theme slots for its layout. */
161
+ get classes(): {
162
+ navItem: string;
163
+ navItemIcon: string;
164
+ navItemLabel: string;
165
+ navItemShortLabel: string;
166
+ navItemBadge: string;
167
+ navItemBadgeLabel: string;
168
+ };
169
+ /**
170
+ * Only the inline layout follows the sidebar's collapsed state, which hides
171
+ * `[data-sidebar-label]` elements.
172
+ */
173
+ get isInline(): true | undefined;
174
+ /**
175
+ * Where the badge sits: on the icon's corner when the icon is all there is
176
+ * to see (the stacked and icon layouts), at the row's end otherwise. An
177
+ * inline row with an icon moves it onto the icon in the collapsed rail.
178
+ */
179
+ get badgePlacement(): 'icon' | 'end' | 'rail';
180
+ /** A badge inside the icon: the stacked and icon layouts. */
181
+ get badgeOnIcon(): boolean;
182
+ /** A badge after the label: every other row. */
183
+ get badgeAtEnd(): boolean;
184
+ get hasShortLabel(): boolean;
185
+ /**
186
+ * Whether a badge is shown: not for `undefined`, `null`, `0` or `''`.
187
+ * Always for `@badgeDot`.
188
+ */
189
+ get hasBadge(): boolean;
190
+ /** The label is not otherwise visible, so a tooltip names the item. */
191
+ get showTooltip(): boolean;
192
+ get badgeText(): string | number | undefined;
193
+ /** The pill's visible text: none for a dot. */
194
+ get badgeValue(): string | number | undefined;
195
+ /** The label and badge of a menu row, which shows its label at any size. */
196
+ get menuClasses(): {
197
+ navItemIcon: string;
198
+ navItemLabel: string;
199
+ navItemBadge: string;
200
+ navItemBadgeLabel: string;
201
+ };
202
+ /** Merged, so a consumer class wins over a conflicting theme class. */
203
+ get className(): string;
204
+ /** The row's key in a rail folder's menu. */
205
+ menuKey: string;
206
+ /**
207
+ * Whether the item is the current page, router included. Cached so the
208
+ * link, the folder's handle and a rail menu row share one router lookup.
209
+ */
210
+ get isCurrent(): boolean;
211
+ /**
212
+ * In a rail folder's menu a disabled item is plain text: no link args, so
213
+ * there is nothing to follow.
214
+ */
215
+ get menuLink(): Pick<NavItemArgs, 'href' | 'route'>;
216
+ activate: () => void;
217
+ }
218
+ export { NavItem, type NavItemSignature, type NavItemArgs, type NavItemLayout };
219
+ export default NavItem;
220
+ //# sourceMappingURL=nav-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-item.d.ts","sourceRoot":"","sources":["../../../src/components/layout/nav-item.gts"],"names":[],"mappings":"AAkdA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAU3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEpE,gDAAgD;AAChD,KAAK,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnD,UAAU,WAAW;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,qCAAqC;IACrC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IAEnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,aAAa,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G,SAAS,CAE/B;IAED;;;;OAIG;IACH,IAAI,cAAc,IAAI,MAAM,GAAG,KAAK,GAAG,MAAM,CAK5C;IAED,6DAA6D;IAC7D,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,gDAAgD;IAChD,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,OAAO,CAMtB;IAED,uEAAuE;IACvE,IAAI,WAAW,IAAI,OAAO,CAQzB;IAED,IAAI,SAAS,IAAI,MAAM,GAAG,MAAM,GAAG,SAAS,CAE3C;IAED,+CAA+C;IAC/C,IAAI,UAAU,IAAI,MAAM,GAAG,MAAM,GAAG,SAAS,CAE5C;IAED,4EAA4E;IAC5E,IACI,WAAW;;;;;MAYd;IAED,uEAAuE;IACvE,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,6CAA6C;IAC7C,OAAO,SAAiB;IAExB;;;OAGG;IACH,IACI,SAAS,IAAI,OAAO,CAEvB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,CAKlD;IAED,QAAQ,QAAO,IAAI,CAIjB;CAmPH;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,CAAC;AAChF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,67 @@
1
+ import Component from '@glimmer/component';
2
+ import { normalizeRouteArgs } from '../../utils/route-active';
3
+ import type RouterService from '@ember/routing/router-service';
4
+ interface NavLinkArgs {
5
+ /**
6
+ * Renders a `LinkTo` for this route and derives the active state from the
7
+ * router. Omit it (and pass `@href`) to stay entirely router-free.
8
+ */
9
+ route?: string;
10
+ /** Dynamic segments for `@route`. */
11
+ models?: unknown[];
12
+ /** A single dynamic segment for `@route`. */
13
+ model?: unknown;
14
+ /** Query params for `@route`. */
15
+ query?: Record<string, unknown>;
16
+ /** Renders a plain anchor. Ignored when `@route` is given. */
17
+ href?: string;
18
+ /**
19
+ * Overrides the active state. Always wins over anything derived from the
20
+ * router, and is the only source of truth when `@route` is not used.
21
+ */
22
+ isActive?: boolean;
23
+ /**
24
+ * Marks the link as disabled. The href is dropped as well, so the link
25
+ * cannot be followed; a button also gets the native `disabled` attribute.
26
+ *
27
+ * @defaultValue false
28
+ */
29
+ isDisabled?: boolean;
30
+ /**
31
+ * Renders nothing at all. For links the current user may not see.
32
+ *
33
+ * @defaultValue false
34
+ */
35
+ isHidden?: boolean;
36
+ }
37
+ interface NavLinkSignature {
38
+ Args: NavLinkArgs;
39
+ Blocks: {
40
+ /** The link's content. */
41
+ default: [];
42
+ };
43
+ Element: HTMLAnchorElement | HTMLButtonElement;
44
+ }
45
+ /**
46
+ * The headless element behind a navigation item: it handles routing, active
47
+ * state, ARIA, disabled and hidden, and renders no styling of its own.
48
+ * `@route` renders a `LinkTo`, `@href` a plain anchor, and neither a
49
+ * `<button type="button">`. Attributes, classes and modifiers are spread onto
50
+ * the rendered element.
51
+ */
52
+ declare class NavLink extends Component<NavLinkSignature> {
53
+ router: RouterService;
54
+ get routeArgs(): ReturnType<typeof normalizeRouteArgs>;
55
+ get isActive(): boolean;
56
+ get isDisabled(): boolean;
57
+ /**
58
+ * `LinkTo` cannot be talked out of a real, navigable href, so a disabled
59
+ * route link falls through to the plain anchor, where dropping the href is
60
+ * what disables it.
61
+ */
62
+ get rendersLink(): boolean;
63
+ get rendersAnchor(): boolean;
64
+ }
65
+ export { NavLink, type NavLinkSignature, type NavLinkArgs };
66
+ export default NavLink;
67
+ //# sourceMappingURL=nav-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-link.d.ts","sourceRoot":"","sources":["../../../src/components/layout/nav-link.gts"],"names":[],"mappings":"AA0IA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,EAAgB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAE/D,UAAU,WAAW;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,qCAAqC;IACrC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IAEnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE;QACN,0BAA0B;QAC1B,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;CAChD;AAED;;;;;;GAMG;AACH,cAAM,OAAQ,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAI9B,MAAM,EAAE,aAAa,CAAC;IAEvC,IACI,SAAS,IAAI,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAErD;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;;OAIG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,aAAa,IAAI,OAAO,CAE3B;CAmFF;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,CAAC;AAC5D,eAAe,OAAO,CAAC"}
@@ -0,0 +1,27 @@
1
+ import Component from '@glimmer/component';
2
+ import { type AppLayoutContext } from './context';
3
+ interface NavbarArgs {
4
+ /**
5
+ * Supplied by `AppLayout`. Not part of the public API.
6
+ *
7
+ * @internal
8
+ */
9
+ layout?: AppLayoutContext;
10
+ }
11
+ interface NavbarSignature {
12
+ Args: NavbarArgs;
13
+ Blocks: {
14
+ default: [];
15
+ };
16
+ Element: HTMLElement;
17
+ }
18
+ /**
19
+ * The top bar of the content column, rendered as a `header` landmark. It
20
+ * always sits to the sidebar's side, never above it.
21
+ */
22
+ declare class Navbar extends Component<NavbarSignature> {
23
+ get classNames(): string;
24
+ }
25
+ export { Navbar, type NavbarSignature, type NavbarArgs };
26
+ export default Navbar;
27
+ //# sourceMappingURL=navbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/navbar.gts"],"names":[],"mappings":"AAuCA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEpE,UAAU,UAAU;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;GAGG;AACH,cAAM,MAAO,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC7C,IACI,UAAU,IAAI,MAAM,CAGvB;CAkBF;AAED,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,CAAC;AACzD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,40 @@
1
+ import Component from '@glimmer/component';
2
+ import { type AppLayoutContext } from './context';
3
+ interface PageHeaderArgs {
4
+ /** The page title, rendered as the page's `h1`. */
5
+ title?: string;
6
+ /** A short line under the title. */
7
+ description?: string;
8
+ /**
9
+ * Supplied by `AppLayout`. Not part of the public API.
10
+ *
11
+ * @internal
12
+ */
13
+ layout?: AppLayoutContext;
14
+ }
15
+ interface PageHeaderSignature {
16
+ Args: PageHeaderArgs;
17
+ Blocks: {
18
+ /** Extra content under the title and description. */
19
+ default: [];
20
+ /** Buttons or links for the page, aligned to the end of the row. */
21
+ actions: [];
22
+ };
23
+ Element: HTMLDivElement;
24
+ }
25
+ /**
26
+ * The title row at the top of a page: title, description and actions. Place
27
+ * it inside `Main`.
28
+ */
29
+ declare class PageHeader extends Component<PageHeaderSignature> {
30
+ get classes(): {
31
+ pageHeader: string;
32
+ pageHeaderContent: string;
33
+ pageHeaderTitle: string;
34
+ pageHeaderDescription: string;
35
+ pageHeaderActions: string;
36
+ };
37
+ }
38
+ export { PageHeader, type PageHeaderSignature, type PageHeaderArgs };
39
+ export default PageHeader;
40
+ //# sourceMappingURL=page-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../src/components/layout/page-header.gts"],"names":[],"mappings":"AAmGA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEpE,UAAU,cAAc;IACtB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE;QACN,qDAAqD;QACrD,OAAO,EAAE,EAAE,CAAC;QACZ,oEAAoE;QACpE,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;;GAGG;AACH,cAAM,UAAW,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACrD,IACI,OAAO;;;;;;MAmBV;CAuEF;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,CAAC;AACrE,eAAe,UAAU,CAAC"}
@@ -0,0 +1,41 @@
1
+ import Component from '@glimmer/component';
2
+ /** Class names `Sidebar` hands each group. */
3
+ export interface SidebarGroupClasses {
4
+ sidebarGroup: string;
5
+ sidebarGroupLabel: string;
6
+ }
7
+ interface SidebarGroupArgs {
8
+ /**
9
+ * The group's heading. It is shown above the items and names the group for
10
+ * assistive technology. In the icon rail it is visually hidden.
11
+ */
12
+ label: string;
13
+ /** Class names appended to this group's theme classes. */
14
+ class?: string;
15
+ /**
16
+ * Supplied by `Sidebar`. Not part of the public API. Without it (a group
17
+ * rendered on its own) the standalone sidebar's classes are used.
18
+ *
19
+ * @internal
20
+ */
21
+ classes?: SidebarGroupClasses;
22
+ }
23
+ interface SidebarGroupSignature {
24
+ Args: SidebarGroupArgs;
25
+ Blocks: {
26
+ /** The group's items. */
27
+ default: [];
28
+ };
29
+ Element: HTMLDivElement;
30
+ }
31
+ /**
32
+ * A labelled set of sidebar items: a `group` named by its visible `@label`.
33
+ */
34
+ declare class SidebarGroup extends Component<SidebarGroupSignature> {
35
+ labelId: string;
36
+ get classes(): SidebarGroupClasses;
37
+ get className(): string;
38
+ }
39
+ export { SidebarGroup, type SidebarGroupSignature, type SidebarGroupArgs };
40
+ export default SidebarGroup;
41
+ //# sourceMappingURL=sidebar-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-group.d.ts","sourceRoot":"","sources":["../../../src/components/layout/sidebar-group.gts"],"names":[],"mappings":"AAuFA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,gBAAgB;IACxB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE;QACN,yBAAyB;QACzB,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,cAAM,YAAa,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IACzD,OAAO,SAA4B;IAEnC,IACI,OAAO,IAAI,mBAAmB,CAYjC;IAED,IAAI,SAAS,IAAI,MAAM,CAItB;CA0CF;AAED,OAAO,EAAE,YAAY,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,CAAC;AAC3E,eAAe,YAAY,CAAC"}