@devalok/shilp-sutra 0.34.0 → 0.34.1

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 (172) hide show
  1. package/dist/_chunks/badge-group.js +306 -246
  2. package/dist/_chunks/chat.js +513 -0
  3. package/dist/_chunks/date-picker.js +748 -0
  4. package/dist/_chunks/document-preview.js +109 -90
  5. package/dist/_chunks/file-preview.js +492 -504
  6. package/dist/_chunks/framer.js +5564 -5613
  7. package/dist/_chunks/image-preview.js +127 -88
  8. package/dist/_chunks/keybinding.js +12 -14
  9. package/dist/_chunks/link-context.js +19 -16
  10. package/dist/_chunks/mention-suggestion.js +353 -350
  11. package/dist/_chunks/motion-provider.js +26 -20
  12. package/dist/_chunks/popover.js +127 -0
  13. package/dist/_chunks/primitives.js +7584 -6425
  14. package/dist/_chunks/rich-chat-input.js +2070 -0
  15. package/dist/_chunks/rolldown-runtime.js +21 -0
  16. package/dist/_chunks/shared.js +126 -0
  17. package/dist/_chunks/sonner.js +605 -734
  18. package/dist/_chunks/stat-row.js +418 -440
  19. package/dist/_chunks/tiptap.js +15850 -19964
  20. package/dist/_chunks/tree-view.js +231 -290
  21. package/dist/_chunks/use-calendar.js +161 -208
  22. package/dist/_chunks/vendor-client.js +314 -2199
  23. package/dist/_chunks/vendor-utils.js +1721 -2978
  24. package/dist/ai/ai-command-provider.js +23 -17
  25. package/dist/ai/block-renderer.js +68 -51
  26. package/dist/ai/blocks/index.js +2 -12
  27. package/dist/ai/command-bar.js +470 -519
  28. package/dist/ai/conversation.js +241 -227
  29. package/dist/ai/index.js +181 -167
  30. package/dist/ai/types.js +0 -1
  31. package/dist/composed/activity-feed.js +232 -202
  32. package/dist/composed/avatar-group.js +164 -222
  33. package/dist/composed/bulk-action-bar.js +174 -165
  34. package/dist/composed/command-palette.js +290 -308
  35. package/dist/composed/confirm-dialog.js +28 -48
  36. package/dist/composed/content-card.js +69 -108
  37. package/dist/composed/date-picker/index.js +3 -13
  38. package/dist/composed/deadline-indicator.js +68 -74
  39. package/dist/composed/emoji-picker.js +83 -110
  40. package/dist/composed/empty-state.js +64 -103
  41. package/dist/composed/error-boundary.js +129 -127
  42. package/dist/composed/file-preview.js +2 -12
  43. package/dist/composed/filter-bar.js +98 -130
  44. package/dist/composed/form-section.js +61 -45
  45. package/dist/composed/global-loading.js +34 -47
  46. package/dist/composed/index.js +34 -92
  47. package/dist/composed/inline-edit.js +92 -107
  48. package/dist/composed/lib/string-utils.js +8 -8
  49. package/dist/composed/loading-skeleton.js +103 -171
  50. package/dist/composed/markdown-viewer.js +187 -139
  51. package/dist/composed/master-detail.js +147 -156
  52. package/dist/composed/member-picker.js +46 -49
  53. package/dist/composed/multi-select-popover.js +181 -179
  54. package/dist/composed/page-header.js +54 -76
  55. package/dist/composed/page-skeletons.js +143 -127
  56. package/dist/composed/priority-indicator.js +105 -111
  57. package/dist/composed/responsive-overlay.js +36 -41
  58. package/dist/composed/rich-chat-input.js +2 -1860
  59. package/dist/composed/rich-text-editor.js +561 -424
  60. package/dist/composed/schedule-view.js +134 -185
  61. package/dist/composed/simple-tooltip.js +21 -21
  62. package/dist/composed/status-badge.js +133 -137
  63. package/dist/hooks/index.js +7 -12
  64. package/dist/hooks/use-color-mode.js +28 -25
  65. package/dist/hooks/use-mobile.js +13 -13
  66. package/dist/hooks/use-toast.js +2 -4
  67. package/dist/hooks/use-touch-device.js +9 -11
  68. package/dist/hooks/use-viewport-height.js +14 -14
  69. package/dist/motion/index.js +3 -11
  70. package/dist/motion/primitives-index.js +226 -186
  71. package/dist/shell/app-command-palette.js +203 -234
  72. package/dist/shell/bottom-navbar.js +150 -190
  73. package/dist/shell/command-registry.js +13 -14
  74. package/dist/shell/index.js +10 -20
  75. package/dist/shell/link-context.js +2 -5
  76. package/dist/shell/notification-center.js +238 -259
  77. package/dist/shell/notification-preferences.js +241 -184
  78. package/dist/shell/sidebar.js +251 -281
  79. package/dist/shell/top-bar.js +203 -237
  80. package/dist/tailwind/index.cjs +426 -442
  81. package/dist/tailwind/index.js +2 -4
  82. package/dist/tailwind/preset.js +443 -459
  83. package/dist/ui/accordion.js +52 -60
  84. package/dist/ui/alert-dialog.js +111 -156
  85. package/dist/ui/alert.js +177 -99
  86. package/dist/ui/aspect-ratio.js +13 -16
  87. package/dist/ui/autocomplete.js +112 -148
  88. package/dist/ui/avatar.js +196 -169
  89. package/dist/ui/badge-group.js +2 -7
  90. package/dist/ui/badge-indicator.js +42 -51
  91. package/dist/ui/badge.js +2 -15
  92. package/dist/ui/banner.js +76 -68
  93. package/dist/ui/breadcrumb.js +65 -84
  94. package/dist/ui/button-group.js +109 -102
  95. package/dist/ui/button-processing.js +69 -73
  96. package/dist/ui/button.js +393 -279
  97. package/dist/ui/card.js +151 -157
  98. package/dist/ui/charts/index.js +1002 -1319
  99. package/dist/ui/chat/index.js +2 -11
  100. package/dist/ui/checkbox.js +77 -100
  101. package/dist/ui/code.js +18 -32
  102. package/dist/ui/collapsible.js +21 -29
  103. package/dist/ui/color-input.js +453 -372
  104. package/dist/ui/color-swatch.js +60 -90
  105. package/dist/ui/combobox.js +244 -293
  106. package/dist/ui/container.js +18 -24
  107. package/dist/ui/context-menu.js +154 -203
  108. package/dist/ui/data-table-body.js +116 -213
  109. package/dist/ui/data-table-bulk-actions.js +43 -59
  110. package/dist/ui/data-table-card.js +84 -71
  111. package/dist/ui/data-table-context.js +39 -42
  112. package/dist/ui/data-table-header.js +98 -139
  113. package/dist/ui/data-table-pagination.js +69 -82
  114. package/dist/ui/data-table-toolbar.js +104 -130
  115. package/dist/ui/data-table.js +278 -354
  116. package/dist/ui/devalok-grain.js +77 -66
  117. package/dist/ui/dialog.js +122 -151
  118. package/dist/ui/dropdown-menu.js +152 -203
  119. package/dist/ui/file-upload.js +242 -266
  120. package/dist/ui/form.js +60 -56
  121. package/dist/ui/hover-card.js +54 -54
  122. package/dist/ui/icon-button.js +21 -26
  123. package/dist/ui/icon-context.js +17 -17
  124. package/dist/ui/icon-group.js +22 -29
  125. package/dist/ui/icon.js +201 -121
  126. package/dist/ui/index.js +74 -350
  127. package/dist/ui/input-otp.js +44 -48
  128. package/dist/ui/input.js +92 -169
  129. package/dist/ui/label.js +17 -22
  130. package/dist/ui/lib/date-utils.js +14 -11
  131. package/dist/ui/lib/motion.js +77 -36
  132. package/dist/ui/lib/utils.js +39 -16
  133. package/dist/ui/link.js +13 -24
  134. package/dist/ui/menubar.js +132 -210
  135. package/dist/ui/navigation-menu.js +163 -193
  136. package/dist/ui/number-input.js +72 -95
  137. package/dist/ui/pagination.js +122 -159
  138. package/dist/ui/popover.js +2 -131
  139. package/dist/ui/progress-ring.js +133 -143
  140. package/dist/ui/progress.js +51 -95
  141. package/dist/ui/radio.js +41 -50
  142. package/dist/ui/search-input.js +51 -53
  143. package/dist/ui/segmented-control.js +93 -114
  144. package/dist/ui/select.js +131 -157
  145. package/dist/ui/separator.js +15 -25
  146. package/dist/ui/sheet.js +135 -163
  147. package/dist/ui/sidebar.js +357 -600
  148. package/dist/ui/skeleton.js +179 -231
  149. package/dist/ui/slider.js +24 -34
  150. package/dist/ui/spinner.js +226 -205
  151. package/dist/ui/split-button.js +227 -276
  152. package/dist/ui/stack.js +56 -70
  153. package/dist/ui/stat-card.js +259 -251
  154. package/dist/ui/status-dot.js +67 -63
  155. package/dist/ui/stepper.js +119 -168
  156. package/dist/ui/switch.js +51 -54
  157. package/dist/ui/table.js +57 -90
  158. package/dist/ui/tabs.js +139 -156
  159. package/dist/ui/text.js +52 -59
  160. package/dist/ui/textarea.js +40 -57
  161. package/dist/ui/toast-types.js +0 -1
  162. package/dist/ui/toast.js +554 -536
  163. package/dist/ui/toaster.js +23 -33
  164. package/dist/ui/toggle-group.js +37 -41
  165. package/dist/ui/toggle.js +36 -40
  166. package/dist/ui/tooltip.js +80 -65
  167. package/dist/ui/tree-view/index.js +2 -6
  168. package/dist/ui/visually-hidden.js +12 -10
  169. package/llms-full.txt +1 -1
  170. package/package.json +1 -1
  171. package/dist/_chunks/date-time-picker.js +0 -851
  172. package/dist/_chunks/typing-indicator.js +0 -565
@@ -1,193 +1,153 @@
1
1
  "use client";
2
- import { jsxs as t, Fragment as C, jsx as s } from "react/jsx-runtime";
3
- import * as R from "react";
4
- import { useState as j, useRef as z, useCallback as B, useEffect as L } from "react";
5
- import { IconX as S, IconDots as A } from "@tabler/icons-react";
6
- import { Icon as x } from "../ui/icon.js";
7
- import { cn as d } from "../ui/lib/utils.js";
8
- import { springs as f } from "../ui/lib/motion.js";
9
- import { u as g } from "../_chunks/link-context.js";
10
- import { u as v, A as D, m as u } from "../_chunks/framer.js";
11
- function F({ count: a }) {
12
- if (!a || a <= 0) return null;
13
- const o = a > 99 ? "99+" : String(a), i = a >= 10;
14
- return /* @__PURE__ */ s(
15
- "span",
16
- {
17
- "aria-label": `${a} notifications`,
18
- className: d(
19
- "absolute -right-1 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-9 text-[10px] font-semibold leading-none text-accent-fg animate-in zoom-in-75",
20
- i ? "px-0.5" : ""
21
- ),
22
- children: o
23
- }
24
- );
2
+ import { a as e, c as t, n } from "../_chunks/framer.js";
3
+ import { springs as r } from "../ui/lib/motion.js";
4
+ import { cn as i } from "../ui/lib/utils.js";
5
+ import { Icon as a } from "../ui/icon.js";
6
+ import { n as o } from "../_chunks/link-context.js";
7
+ import "./link-context.js";
8
+ import * as s from "react";
9
+ import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
10
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
11
+ import { IconDots as h, IconX as g } from "@tabler/icons-react";
12
+ //#region src/shell/bottom-navbar.tsx
13
+ function _({ count: e }) {
14
+ if (!e || e <= 0) return null;
15
+ let t = e > 99 ? "99+" : String(e), n = e >= 10;
16
+ return /* @__PURE__ */ p("span", {
17
+ "aria-label": `${e} notifications`,
18
+ className: i("absolute -right-1 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-9 text-[10px] font-semibold leading-none text-accent-fg animate-in zoom-in-75", n ? "px-0.5" : ""),
19
+ children: t
20
+ });
25
21
  }
26
- function I({
27
- item: a,
28
- isActive: o,
29
- onClick: i
30
- }) {
31
- const n = g(), l = v();
32
- return /* @__PURE__ */ s(u.div, { whileTap: l ? void 0 : { y: -2 }, transition: l ? { duration: 0 } : f.snappy, className: "flex max-w-[70px] flex-1", children: /* @__PURE__ */ s(
33
- n,
34
- {
35
- href: a.href,
36
- onClick: i,
37
- "aria-label": a.title,
38
- "aria-current": o ? "page" : void 0,
39
- className: d(
40
- "flex h-16 w-full cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm transition-colors duration-fast-02 ease-productive-standard",
41
- o ? "font-semibold text-accent-11" : "text-surface-fg-subtle"
42
- ),
43
- children: /* @__PURE__ */ t("div", { className: "relative flex w-full flex-col items-center gap-ds-02", children: [
44
- o && /* @__PURE__ */ s(
45
- u.div,
46
- {
47
- layoutId: "bottom-nav-indicator",
48
- className: "absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-accent-9 p-0",
49
- "aria-hidden": "true",
50
- transition: l ? { duration: 0 } : f.snappy
51
- }
52
- ),
53
- /* @__PURE__ */ t("div", { className: "relative p-ds-03", children: [
54
- /* @__PURE__ */ s("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md", "aria-hidden": "true", children: a.icon }),
55
- a.badge != null && /* @__PURE__ */ s(F, { count: a.badge })
56
- ] }),
57
- /* @__PURE__ */ s("span", { className: "text-center", children: a.title })
58
- ] })
59
- }
60
- ) });
22
+ function v({ item: t, isActive: a, onClick: s }) {
23
+ let c = o(), l = n();
24
+ return /* @__PURE__ */ p(e.div, {
25
+ whileTap: l ? void 0 : { y: -2 },
26
+ transition: l ? { duration: 0 } : r.snappy,
27
+ className: "flex max-w-[70px] flex-1",
28
+ children: /* @__PURE__ */ p(c, {
29
+ href: t.href,
30
+ onClick: s,
31
+ "aria-label": t.title,
32
+ "aria-current": a ? "page" : void 0,
33
+ className: i("flex h-16 w-full cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm transition-colors duration-fast-02 ease-productive-standard", a ? "font-semibold text-accent-11" : "text-surface-fg-subtle"),
34
+ children: /* @__PURE__ */ m("div", {
35
+ className: "relative flex w-full flex-col items-center gap-ds-02",
36
+ children: [
37
+ a && /* @__PURE__ */ p(e.div, {
38
+ layoutId: "bottom-nav-indicator",
39
+ className: "absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-accent-9 p-0",
40
+ "aria-hidden": "true",
41
+ transition: l ? { duration: 0 } : r.snappy
42
+ }),
43
+ /* @__PURE__ */ m("div", {
44
+ className: "relative p-ds-03",
45
+ children: [/* @__PURE__ */ p("span", {
46
+ className: "[&>svg]:h-ico-md [&>svg]:w-ico-md",
47
+ "aria-hidden": "true",
48
+ children: t.icon
49
+ }), t.badge != null && /* @__PURE__ */ p(_, { count: t.badge })]
50
+ }),
51
+ /* @__PURE__ */ p("span", {
52
+ className: "text-center",
53
+ children: t.title
54
+ })
55
+ ]
56
+ })
57
+ })
58
+ });
61
59
  }
62
- const E = R.forwardRef(
63
- ({
64
- currentPath: a = "/",
65
- user: o,
66
- primaryItems: i = [],
67
- moreItems: n = [],
68
- className: l,
69
- ...N
70
- }, y) => {
71
- const w = g(), m = v(), [r, c] = j(!1), p = z(null), M = B(() => c(!1), []);
72
- L(() => {
73
- r && p.current && p.current.querySelector("a, button")?.focus();
74
- }, [r]);
75
- const b = (e, k = !1) => k || e === "/" ? a === e : a.startsWith(e), h = n.some(
76
- (e) => b(e.href, e.exact)
77
- );
78
- return /* @__PURE__ */ t(C, { children: [
79
- /* @__PURE__ */ s(D, { children: r && // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- backdrop overlay, dismiss via mouse only; keyboard users close via Escape
80
- /* @__PURE__ */ t(
81
- "div",
82
- {
83
- className: "fixed inset-0 z-overlay md:hidden",
84
- onClick: () => c(!1),
85
- children: [
86
- /* @__PURE__ */ s("div", { className: "absolute inset-0 bg-overlay" }),
87
- /* @__PURE__ */ t(
88
- u.div,
89
- {
90
- ref: p,
91
- role: "dialog",
92
- "aria-label": "More navigation",
93
- initial: { y: "100%" },
94
- animate: { y: 0 },
95
- exit: { y: "100%" },
96
- transition: m ? { duration: 0 } : f.smooth,
97
- className: "absolute bottom-[72px] left-0 right-0 rounded-t-ds-2xl border-t border-surface-border-strong bg-surface-overlay p-ds-05 pb-ds-03",
98
- onClick: (e) => e.stopPropagation(),
99
- onKeyDown: (e) => {
100
- e.stopPropagation(), e.key === "Escape" && M();
101
- },
102
- children: [
103
- /* @__PURE__ */ t("div", { className: "mb-ds-04 flex items-center justify-between", children: [
104
- /* @__PURE__ */ s("span", { className: "text-ds-md font-semibold text-surface-fg", children: "More" }),
105
- /* @__PURE__ */ s(
106
- "button",
107
- {
108
- onClick: () => c(!1),
109
- "aria-label": "Close more menu",
110
- className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-full hover:bg-surface-raised-hover",
111
- children: /* @__PURE__ */ s(x, { icon: S, size: "sm", className: "text-surface-fg-muted" })
112
- }
113
- )
114
- ] }),
115
- /* @__PURE__ */ s("div", { className: "grid grid-cols-4 gap-ds-03", children: n.map((e) => /* @__PURE__ */ t(
116
- w,
117
- {
118
- href: e.href,
119
- onClick: () => c(!1),
120
- className: d(
121
- "flex flex-col items-center gap-ds-02b rounded-ds-xl p-ds-04 text-ds-sm transition-colors ease-productive-standard",
122
- b(e.href, e.exact) ? "bg-surface-raised-hover text-accent-11" : "text-surface-fg-subtle hover:bg-surface-raised-hover"
123
- ),
124
- children: [
125
- /* @__PURE__ */ s("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md", children: e.icon }),
126
- /* @__PURE__ */ s("span", { className: "text-center", children: e.title })
127
- ]
128
- },
129
- e.href
130
- )) })
131
- ]
132
- }
133
- )
134
- ]
135
- }
136
- ) }),
137
- /* @__PURE__ */ t(
138
- "nav",
139
- {
140
- ...N,
141
- ref: y,
142
- "aria-label": "Mobile navigation",
143
- className: d(
144
- "fixed bottom-0 left-0 right-0 z-sticky flex w-full flex-row items-start justify-between border-t border-surface-border-strong bg-surface-raised px-ds-05 pb-safe pt-0 md:hidden",
145
- l
146
- ),
147
- children: [
148
- i.map((e) => /* @__PURE__ */ s(
149
- I,
150
- {
151
- item: e,
152
- isActive: b(e.href, e.exact)
153
- },
154
- e.href
155
- )),
156
- n.length > 0 && /* @__PURE__ */ s(
157
- u.button,
158
- {
159
- type: "button",
160
- onClick: () => c(!r),
161
- "aria-label": "More navigation options",
162
- "aria-expanded": r,
163
- whileTap: m ? void 0 : { y: -2 },
164
- transition: m ? { duration: 0 } : f.snappy,
165
- className: d(
166
- "flex h-16 max-w-[70px] flex-1 cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm",
167
- r || h ? "font-semibold text-accent-11" : "text-surface-fg-subtle"
168
- ),
169
- children: /* @__PURE__ */ t("div", { className: "relative flex w-full flex-col items-center gap-ds-02", children: [
170
- (r || h) && /* @__PURE__ */ s(
171
- u.div,
172
- {
173
- layoutId: "bottom-nav-indicator",
174
- className: "absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-accent-9 p-0",
175
- "aria-hidden": "true",
176
- transition: m ? { duration: 0 } : f.snappy
177
- }
178
- ),
179
- /* @__PURE__ */ s("div", { className: "p-ds-03", children: /* @__PURE__ */ s(x, { icon: A }) }),
180
- /* @__PURE__ */ s("span", { className: "text-center", children: "More" })
181
- ] })
182
- }
183
- )
184
- ]
185
- }
186
- )
187
- ] });
188
- }
189
- );
190
- E.displayName = "BottomNavbar";
191
- export {
192
- E as BottomNavbar
193
- };
60
+ var y = s.forwardRef(({ currentPath: s = "/", user: _, primaryItems: y = [], moreItems: b = [], className: x, ...S }, C) => {
61
+ let w = o(), T = n(), [E, D] = d(!1), O = u(null), k = c(() => D(!1), []);
62
+ l(() => {
63
+ E && O.current && O.current.querySelector("a, button")?.focus();
64
+ }, [E]);
65
+ let A = (e, t = !1) => t || e === "/" ? s === e : s.startsWith(e), j = b.some((e) => A(e.href, e.exact));
66
+ return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(t, { children: E && /* @__PURE__ */ m("div", {
67
+ className: "fixed inset-0 z-overlay md:hidden",
68
+ onClick: () => D(!1),
69
+ children: [/* @__PURE__ */ p("div", { className: "absolute inset-0 bg-overlay" }), /* @__PURE__ */ m(e.div, {
70
+ ref: O,
71
+ role: "dialog",
72
+ "aria-label": "More navigation",
73
+ initial: { y: "100%" },
74
+ animate: { y: 0 },
75
+ exit: { y: "100%" },
76
+ transition: T ? { duration: 0 } : r.smooth,
77
+ className: "absolute bottom-[72px] left-0 right-0 rounded-t-ds-2xl border-t border-surface-border-strong bg-surface-overlay p-ds-05 pb-ds-03",
78
+ onClick: (e) => e.stopPropagation(),
79
+ onKeyDown: (e) => {
80
+ e.stopPropagation(), e.key === "Escape" && k();
81
+ },
82
+ children: [/* @__PURE__ */ m("div", {
83
+ className: "mb-ds-04 flex items-center justify-between",
84
+ children: [/* @__PURE__ */ p("span", {
85
+ className: "text-ds-md font-semibold text-surface-fg",
86
+ children: "More"
87
+ }), /* @__PURE__ */ p("button", {
88
+ onClick: () => D(!1),
89
+ "aria-label": "Close more menu",
90
+ className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-full hover:bg-surface-raised-hover",
91
+ children: /* @__PURE__ */ p(a, {
92
+ icon: g,
93
+ size: "sm",
94
+ className: "text-surface-fg-muted"
95
+ })
96
+ })]
97
+ }), /* @__PURE__ */ p("div", {
98
+ className: "grid grid-cols-4 gap-ds-03",
99
+ children: b.map((e) => /* @__PURE__ */ m(w, {
100
+ href: e.href,
101
+ onClick: () => D(!1),
102
+ className: i("flex flex-col items-center gap-ds-02b rounded-ds-xl p-ds-04 text-ds-sm transition-colors ease-productive-standard", A(e.href, e.exact) ? "bg-surface-raised-hover text-accent-11" : "text-surface-fg-subtle hover:bg-surface-raised-hover"),
103
+ children: [/* @__PURE__ */ p("span", {
104
+ className: "[&>svg]:h-ico-md [&>svg]:w-ico-md",
105
+ children: e.icon
106
+ }), /* @__PURE__ */ p("span", {
107
+ className: "text-center",
108
+ children: e.title
109
+ })]
110
+ }, e.href))
111
+ })]
112
+ })]
113
+ }) }), /* @__PURE__ */ m("nav", {
114
+ ...S,
115
+ ref: C,
116
+ "aria-label": "Mobile navigation",
117
+ className: i("fixed bottom-0 left-0 right-0 z-sticky flex w-full flex-row items-start justify-between border-t border-surface-border-strong bg-surface-raised px-ds-05 pb-safe pt-0 md:hidden", x),
118
+ children: [y.map((e) => /* @__PURE__ */ p(v, {
119
+ item: e,
120
+ isActive: A(e.href, e.exact)
121
+ }, e.href)), b.length > 0 && /* @__PURE__ */ p(e.button, {
122
+ type: "button",
123
+ onClick: () => D(!E),
124
+ "aria-label": "More navigation options",
125
+ "aria-expanded": E,
126
+ whileTap: T ? void 0 : { y: -2 },
127
+ transition: T ? { duration: 0 } : r.snappy,
128
+ className: i("flex h-16 max-w-[70px] flex-1 cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm", E || j ? "font-semibold text-accent-11" : "text-surface-fg-subtle"),
129
+ children: /* @__PURE__ */ m("div", {
130
+ className: "relative flex w-full flex-col items-center gap-ds-02",
131
+ children: [
132
+ (E || j) && /* @__PURE__ */ p(e.div, {
133
+ layoutId: "bottom-nav-indicator",
134
+ className: "absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-accent-9 p-0",
135
+ "aria-hidden": "true",
136
+ transition: T ? { duration: 0 } : r.snappy
137
+ }),
138
+ /* @__PURE__ */ p("div", {
139
+ className: "p-ds-03",
140
+ children: /* @__PURE__ */ p(a, { icon: h })
141
+ }),
142
+ /* @__PURE__ */ p("span", {
143
+ className: "text-center",
144
+ children: "More"
145
+ })
146
+ ]
147
+ })
148
+ })]
149
+ })] });
150
+ });
151
+ y.displayName = "BottomNavbar";
152
+ //#endregion
153
+ export { y as BottomNavbar };
@@ -1,18 +1,17 @@
1
1
  "use client";
2
- import { jsx as n } from "react/jsx-runtime";
3
2
  import * as e from "react";
4
- const r = e.createContext(null);
5
- function m({
6
- children: t,
7
- registry: o
8
- }) {
9
- return /* @__PURE__ */ n(r.Provider, { value: o, children: t });
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ //#region src/shell/command-registry.tsx
5
+ var n = e.createContext(null);
6
+ function r({ children: e, registry: r }) {
7
+ return /* @__PURE__ */ t(n.Provider, {
8
+ value: r,
9
+ children: e
10
+ });
10
11
  }
11
- m.displayName = "CommandRegistryProvider";
12
- function a() {
13
- return e.useContext(r);
12
+ r.displayName = "CommandRegistryProvider";
13
+ function i() {
14
+ return e.useContext(n);
14
15
  }
15
- export {
16
- m as CommandRegistryProvider,
17
- a as useCommandRegistry
18
- };
16
+ //#endregion
17
+ export { r as CommandRegistryProvider, i as useCommandRegistry };
@@ -1,21 +1,11 @@
1
1
  "use client";
2
- import { AppSidebar as e } from "./sidebar.js";
3
- import { TopBar as m } from "./top-bar.js";
4
- import { BottomNavbar as p } from "./bottom-navbar.js";
5
- import { NotificationCenter as f } from "./notification-center.js";
6
- import { NotificationPreferences as x } from "./notification-preferences.js";
7
- import { AppCommandPalette as d } from "./app-command-palette.js";
8
- import { CommandRegistryProvider as P, useCommandRegistry as c } from "./command-registry.js";
9
- import { L as v, u as L } from "../_chunks/link-context.js";
10
- export {
11
- d as AppCommandPalette,
12
- e as AppSidebar,
13
- p as BottomNavbar,
14
- P as CommandRegistryProvider,
15
- v as LinkProvider,
16
- f as NotificationCenter,
17
- x as NotificationPreferences,
18
- m as TopBar,
19
- c as useCommandRegistry,
20
- L as useLink
21
- };
2
+ import { n as e, t } from "../_chunks/link-context.js";
3
+ import { CommandRegistryProvider as n, useCommandRegistry as r } from "./command-registry.js";
4
+ import { AppCommandPalette as i } from "./app-command-palette.js";
5
+ import "./link-context.js";
6
+ import { BottomNavbar as a } from "./bottom-navbar.js";
7
+ import { AppSidebar as o } from "./sidebar.js";
8
+ import { TopBar as s } from "./top-bar.js";
9
+ import { NotificationCenter as c } from "./notification-center.js";
10
+ import { NotificationPreferences as l } from "./notification-preferences.js";
11
+ export { i as AppCommandPalette, o as AppSidebar, a as BottomNavbar, n as CommandRegistryProvider, t as LinkProvider, c as NotificationCenter, l as NotificationPreferences, s as TopBar, r as useCommandRegistry, e as useLink };
@@ -1,6 +1,3 @@
1
1
  "use client";
2
- import { L as i, u as o } from "../_chunks/link-context.js";
3
- export {
4
- i as LinkProvider,
5
- o as useLink
6
- };
2
+ import { n as e, t } from "../_chunks/link-context.js";
3
+ export { t as LinkProvider, e as useLink };