@viglet/viglet-design-system 2026.3.9 → 2026.3.11

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 (259) hide show
  1. package/README.md +528 -44
  2. package/consumers.json +186 -0
  3. package/dist/badge-locale-CJkHDlPg.cjs +1 -0
  4. package/dist/badge-locale-DxDp8Q3S.js +397 -0
  5. package/dist/bento/bento-actions-menu.d.ts +8 -0
  6. package/dist/bento/bento-actions-menu.d.ts.map +1 -1
  7. package/dist/bento/bento-back-to-top.d.ts +9 -1
  8. package/dist/bento/bento-back-to-top.d.ts.map +1 -1
  9. package/dist/bento/bento-command-palette.d.ts +56 -9
  10. package/dist/bento/bento-command-palette.d.ts.map +1 -1
  11. package/dist/bento/bento-data-table.d.ts +81 -0
  12. package/dist/bento/bento-data-table.d.ts.map +1 -0
  13. package/dist/bento/bento-diff.d.ts +41 -0
  14. package/dist/bento/bento-diff.d.ts.map +1 -0
  15. package/dist/bento/bento-empty-state.d.ts +8 -1
  16. package/dist/bento/bento-empty-state.d.ts.map +1 -1
  17. package/dist/bento/bento-entity-shell.d.ts.map +1 -1
  18. package/dist/bento/bento-filter-bar.d.ts +60 -0
  19. package/dist/bento/bento-filter-bar.d.ts.map +1 -0
  20. package/dist/bento/bento-form-section.d.ts +14 -1
  21. package/dist/bento/bento-form-section.d.ts.map +1 -1
  22. package/dist/bento/bento-inline-edit.d.ts.map +1 -1
  23. package/dist/bento/bento-nav-rail.d.ts +13 -13
  24. package/dist/bento/bento-nav-rail.d.ts.map +1 -1
  25. package/dist/bento/bento-nav.d.ts +10 -2
  26. package/dist/bento/bento-nav.d.ts.map +1 -1
  27. package/dist/bento/bento-palette-trigger.d.ts +18 -0
  28. package/dist/bento/bento-palette-trigger.d.ts.map +1 -0
  29. package/dist/bento/bento-section-chrome.d.ts +19 -39
  30. package/dist/bento/bento-section-chrome.d.ts.map +1 -1
  31. package/dist/bento/bento-shell-shortcuts.d.ts +67 -0
  32. package/dist/bento/bento-shell-shortcuts.d.ts.map +1 -0
  33. package/dist/bento/bento-shell.d.ts +53 -0
  34. package/dist/bento/bento-shell.d.ts.map +1 -0
  35. package/dist/bento/bento-shortcuts-dialog.d.ts +9 -7
  36. package/dist/bento/bento-shortcuts-dialog.d.ts.map +1 -1
  37. package/dist/bento/bento-status-marker.d.ts +5 -2
  38. package/dist/bento/bento-status-marker.d.ts.map +1 -1
  39. package/dist/bento/bento-tile.d.ts.map +1 -1
  40. package/dist/bento/bento-user-menu.d.ts +9 -8
  41. package/dist/bento/bento-user-menu.d.ts.map +1 -1
  42. package/dist/bento/bento-version-rail.d.ts +31 -0
  43. package/dist/bento/bento-version-rail.d.ts.map +1 -0
  44. package/dist/bento/index.d.ts +15 -6
  45. package/dist/bento/index.d.ts.map +1 -1
  46. package/dist/bento.cjs +5 -1
  47. package/dist/bento.css +70 -4
  48. package/dist/bento.es.js +1778 -701
  49. package/dist/catalogue.json +5283 -0
  50. package/dist/components/app-footer.d.ts +7 -0
  51. package/dist/components/app-footer.d.ts.map +1 -1
  52. package/dist/components/app-switcher.d.ts.map +1 -1
  53. package/dist/components/backend-status.d.ts +19 -11
  54. package/dist/components/backend-status.d.ts.map +1 -1
  55. package/dist/components/badge-colorful.d.ts +13 -0
  56. package/dist/components/badge-colorful.d.ts.map +1 -1
  57. package/dist/components/badge-locale.d.ts +7 -0
  58. package/dist/components/badge-locale.d.ts.map +1 -1
  59. package/dist/components/error-boundary.d.ts +15 -13
  60. package/dist/components/error-boundary.d.ts.map +1 -1
  61. package/dist/components/language-select.d.ts +8 -0
  62. package/dist/components/language-select.d.ts.map +1 -1
  63. package/dist/components/login/login.d.ts +27 -0
  64. package/dist/components/login/login.d.ts.map +1 -1
  65. package/dist/components/mode-toggle.d.ts +9 -0
  66. package/dist/components/mode-toggle.d.ts.map +1 -1
  67. package/dist/components/nav-secondary.d.ts +7 -0
  68. package/dist/components/nav-secondary.d.ts.map +1 -1
  69. package/dist/components/router/dialog.delete.d.ts +8 -0
  70. package/dist/components/router/dialog.delete.d.ts.map +1 -1
  71. package/dist/components/router/gradient-button-link.d.ts +6 -0
  72. package/dist/components/router/gradient-button-link.d.ts.map +1 -1
  73. package/dist/components/router/index.d.ts +0 -11
  74. package/dist/components/router/index.d.ts.map +1 -1
  75. package/dist/components/router/loading-provider.d.ts +4 -0
  76. package/dist/components/router/loading-provider.d.ts.map +1 -1
  77. package/dist/components/startup-first/startup-first.d.ts +29 -0
  78. package/dist/components/startup-first/startup-first.d.ts.map +1 -1
  79. package/dist/components/ui/accordion.d.ts +17 -0
  80. package/dist/components/ui/accordion.d.ts.map +1 -1
  81. package/dist/components/ui/avatar.d.ts +14 -0
  82. package/dist/components/ui/avatar.d.ts.map +1 -1
  83. package/dist/components/ui/badge.d.ts +6 -0
  84. package/dist/components/ui/badge.d.ts.map +1 -1
  85. package/dist/components/ui/breadcrumb.d.ts +25 -0
  86. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  87. package/dist/components/ui/button.d.ts +15 -1
  88. package/dist/components/ui/button.d.ts.map +1 -1
  89. package/dist/components/ui/card.d.ts +27 -0
  90. package/dist/components/ui/card.d.ts.map +1 -1
  91. package/dist/components/ui/checkbox.d.ts +4 -0
  92. package/dist/components/ui/checkbox.d.ts.map +1 -1
  93. package/dist/components/ui/dialog.d.ts +36 -0
  94. package/dist/components/ui/dialog.d.ts.map +1 -1
  95. package/dist/components/ui/drawer.d.ts +35 -0
  96. package/dist/components/ui/drawer.d.ts.map +1 -1
  97. package/dist/components/ui/dropdown-menu.d.ts +53 -0
  98. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  99. package/dist/components/ui/floating-formulas-bg.d.ts +8 -0
  100. package/dist/components/ui/floating-formulas-bg.d.ts.map +1 -1
  101. package/dist/components/ui/form-actions.d.ts +7 -0
  102. package/dist/components/ui/form-actions.d.ts.map +1 -1
  103. package/dist/components/ui/form-item-two-columns.d.ts +7 -0
  104. package/dist/components/ui/form-item-two-columns.d.ts.map +1 -1
  105. package/dist/components/ui/form.d.ts +25 -0
  106. package/dist/components/ui/form.d.ts.map +1 -1
  107. package/dist/components/ui/glass-card.d.ts +18 -14
  108. package/dist/components/ui/glass-card.d.ts.map +1 -1
  109. package/dist/components/ui/gradient-button.d.ts +15 -1
  110. package/dist/components/ui/gradient-button.d.ts.map +1 -1
  111. package/dist/components/ui/gradient-switch.d.ts +6 -0
  112. package/dist/components/ui/gradient-switch.d.ts.map +1 -1
  113. package/dist/components/ui/hover-card.d.ts +14 -0
  114. package/dist/components/ui/hover-card.d.ts.map +1 -1
  115. package/dist/components/ui/icon-picker-dialog.d.ts.map +1 -1
  116. package/dist/components/ui/index.d.ts +6 -4
  117. package/dist/components/ui/index.d.ts.map +1 -1
  118. package/dist/components/ui/input.d.ts +6 -0
  119. package/dist/components/ui/input.d.ts.map +1 -1
  120. package/dist/components/ui/label.d.ts +4 -0
  121. package/dist/components/ui/label.d.ts.map +1 -1
  122. package/dist/components/ui/navigation-menu.d.ts +41 -0
  123. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  124. package/dist/components/ui/pagination.d.ts +25 -0
  125. package/dist/components/ui/pagination.d.ts.map +1 -1
  126. package/dist/components/ui/popover.d.ts +24 -0
  127. package/dist/components/ui/popover.d.ts.map +1 -1
  128. package/dist/components/ui/progress.d.ts +4 -0
  129. package/dist/components/ui/progress.d.ts.map +1 -1
  130. package/dist/components/ui/pulse-ring.d.ts +9 -11
  131. package/dist/components/ui/pulse-ring.d.ts.map +1 -1
  132. package/dist/components/ui/resizable.d.ts +11 -0
  133. package/dist/components/ui/resizable.d.ts.map +1 -1
  134. package/dist/components/ui/section-card.d.ts +9 -0
  135. package/dist/components/ui/section-card.d.ts.map +1 -1
  136. package/dist/components/ui/select.d.ts +36 -0
  137. package/dist/components/ui/select.d.ts.map +1 -1
  138. package/dist/components/ui/separator.d.ts +4 -0
  139. package/dist/components/ui/separator.d.ts.map +1 -1
  140. package/dist/components/ui/sheet.d.ts +29 -0
  141. package/dist/components/ui/sheet.d.ts.map +1 -1
  142. package/dist/components/ui/sidebar.d.ts +83 -0
  143. package/dist/components/ui/sidebar.d.ts.map +1 -1
  144. package/dist/components/ui/skeleton.d.ts +4 -0
  145. package/dist/components/ui/skeleton.d.ts.map +1 -1
  146. package/dist/components/ui/slider.d.ts +4 -0
  147. package/dist/components/ui/slider.d.ts.map +1 -1
  148. package/dist/components/ui/sonner.d.ts +16 -0
  149. package/dist/components/ui/sonner.d.ts.map +1 -1
  150. package/dist/components/ui/stepper.d.ts +8 -0
  151. package/dist/components/ui/stepper.d.ts.map +1 -1
  152. package/dist/components/ui/sticky-save-bar.d.ts +7 -0
  153. package/dist/components/ui/sticky-save-bar.d.ts.map +1 -1
  154. package/dist/components/ui/switch.d.ts +4 -0
  155. package/dist/components/ui/switch.d.ts.map +1 -1
  156. package/dist/components/ui/table.d.ts +31 -0
  157. package/dist/components/ui/table.d.ts.map +1 -1
  158. package/dist/components/ui/tabs.d.ts +16 -0
  159. package/dist/components/ui/tabs.d.ts.map +1 -1
  160. package/dist/components/ui/textarea.d.ts +4 -0
  161. package/dist/components/ui/textarea.d.ts.map +1 -1
  162. package/dist/components/ui/toggle-group.d.ts +7 -0
  163. package/dist/components/ui/toggle-group.d.ts.map +1 -1
  164. package/dist/components/ui/toggle.d.ts +4 -0
  165. package/dist/components/ui/toggle.d.ts.map +1 -1
  166. package/dist/components/ui/tooltip.d.ts +18 -0
  167. package/dist/components/ui/tooltip.d.ts.map +1 -1
  168. package/dist/components/ui/user-avatar.d.ts +2 -1
  169. package/dist/components/ui/user-avatar.d.ts.map +1 -1
  170. package/dist/components/ui/viglet-assistant.d.ts +103 -0
  171. package/dist/components/ui/viglet-assistant.d.ts.map +1 -0
  172. package/dist/components/ui/viglet-avatar.d.ts +44 -0
  173. package/dist/components/ui/viglet-avatar.d.ts.map +1 -0
  174. package/dist/contexts/breadcrumb.context.d.ts +7 -0
  175. package/dist/contexts/breadcrumb.context.d.ts.map +1 -1
  176. package/dist/contexts/user.context.d.ts +8 -0
  177. package/dist/contexts/user.context.d.ts.map +1 -1
  178. package/dist/exports.json +359 -30
  179. package/dist/floating-formulas-bg.cjs +1 -1
  180. package/dist/floating-formulas-bg.es.js +56 -55
  181. package/dist/hooks/index.d.ts +1 -0
  182. package/dist/hooks/index.d.ts.map +1 -1
  183. package/dist/hooks/use-assistant-notifications.d.ts +15 -0
  184. package/dist/hooks/use-assistant-notifications.d.ts.map +1 -0
  185. package/dist/i18n/index.d.ts +168 -0
  186. package/dist/i18n/index.d.ts.map +1 -1
  187. package/dist/i18n/locales/en/assistant.json.d.ts +25 -0
  188. package/dist/i18n/locales/en/bento.json.d.ts +48 -2
  189. package/dist/i18n/locales/en/common.json.d.ts +6 -1
  190. package/dist/i18n/locales/en/language.json.d.ts +8 -0
  191. package/dist/i18n/locales/pt/assistant.json.d.ts +25 -0
  192. package/dist/i18n/locales/pt/bento.json.d.ts +48 -2
  193. package/dist/i18n/locales/pt/common.json.d.ts +6 -1
  194. package/dist/i18n/locales/pt/language.json.d.ts +8 -0
  195. package/dist/i18n.cjs +1 -1
  196. package/dist/i18n.es.js +572 -2
  197. package/dist/index.cjs +1 -1
  198. package/dist/index.d.ts +0 -1
  199. package/dist/index.d.ts.map +1 -1
  200. package/dist/index.es.js +2280 -733
  201. package/dist/lib/busy.d.ts +26 -0
  202. package/dist/lib/busy.d.ts.map +1 -0
  203. package/dist/lib/corner-slot.d.ts +15 -0
  204. package/dist/lib/corner-slot.d.ts.map +1 -0
  205. package/dist/{loading-provider-BWWhhfEn.js → loading-provider-ClDkFPuv.js} +84 -81
  206. package/dist/loading-provider-DGuCfsl9.cjs +1 -0
  207. package/dist/preset.css +7 -10
  208. package/dist/router.cjs +1 -1
  209. package/dist/router.es.js +2 -776
  210. package/dist/user.context-Cr3GAQ_r.js +762 -0
  211. package/dist/user.context-hbdvmXOn.cjs +1 -0
  212. package/dist/utils-Fk5jmzzb.js +41 -0
  213. package/dist/utils-Oagwe_oa.cjs +1 -0
  214. package/dist/viglet-design-system.css +1 -1
  215. package/dist/vite/boot-loader.d.ts +33 -2
  216. package/dist/vite/boot-loader.d.ts.map +1 -1
  217. package/dist/vite.cjs +16 -5
  218. package/dist/vite.es.js +27 -14
  219. package/docs/BENTO-AUTHORING.md +81 -11
  220. package/docs/reference/grounds.dc.html +9 -9
  221. package/package.json +16 -4
  222. package/scripts/consumer-entries.mjs +209 -0
  223. package/scripts/lib/contrast.mjs +301 -0
  224. package/scripts/mcp.mjs +300 -0
  225. package/scripts/page-lint.mjs +428 -0
  226. package/scripts/page-reference.mjs +54 -10
  227. package/dist/badge-locale-CoEEv7s5.js +0 -581
  228. package/dist/badge-locale-hQyWhAKe.cjs +0 -7
  229. package/dist/breadcrumb.context-KQut7j8U.js +0 -917
  230. package/dist/breadcrumb.context-Vwc3lAlf.cjs +0 -1
  231. package/dist/components/router/blank-slate.d.ts +0 -21
  232. package/dist/components/router/blank-slate.d.ts.map +0 -1
  233. package/dist/components/router/grid.list.d.ts +0 -39
  234. package/dist/components/router/grid.list.d.ts.map +0 -1
  235. package/dist/components/router/internal.sidebar.d.ts +0 -61
  236. package/dist/components/router/internal.sidebar.d.ts.map +0 -1
  237. package/dist/components/router/nav-main.d.ts +0 -25
  238. package/dist/components/router/nav-main.d.ts.map +0 -1
  239. package/dist/components/router/nav-user.d.ts +0 -24
  240. package/dist/components/router/nav-user.d.ts.map +0 -1
  241. package/dist/components/router/page-content.d.ts +0 -12
  242. package/dist/components/router/page-content.d.ts.map +0 -1
  243. package/dist/components/router/page-header.d.ts +0 -23
  244. package/dist/components/router/page-header.d.ts.map +0 -1
  245. package/dist/components/router/page.d.ts +0 -22
  246. package/dist/components/router/page.d.ts.map +0 -1
  247. package/dist/components/router/sticky.page.header.d.ts +0 -85
  248. package/dist/components/router/sticky.page.header.d.ts.map +0 -1
  249. package/dist/components/router/sub.page.d.ts +0 -50
  250. package/dist/components/router/sub.page.d.ts.map +0 -1
  251. package/dist/components/router/sub.page.header.d.ts +0 -37
  252. package/dist/components/router/sub.page.header.d.ts.map +0 -1
  253. package/dist/i18n-DD3rQOWi.js +0 -426
  254. package/dist/i18n-DrBq-qJJ.cjs +0 -1
  255. package/dist/lib/react-markers.d.ts +0 -17
  256. package/dist/lib/react-markers.d.ts.map +0 -1
  257. package/dist/loading-provider-CmeMqLGk.cjs +0 -1
  258. package/dist/user.context-B9vIBzY5.cjs +0 -1
  259. package/dist/user.context-D1PxP4D4.js +0 -512
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime-BocRIvOZ.cjs"),t=require("./badge-locale-hQyWhAKe.cjs");let n=require("react");n=e.t(n,1);let r=require("react/jsx-runtime"),i=require("@radix-ui/react-avatar");i=e.t(i,1);let a=require("@radix-ui/react-slot"),o=require("class-variance-authority"),s=require("react-i18next"),c=require("@radix-ui/react-dialog");c=e.t(c,1);let l=require("@radix-ui/react-select");l=e.t(l,1);let u=require("@radix-ui/react-separator");u=e.t(u,1);let d=require("next-themes");var f=t.H(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),p=t.H(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),m=t.H(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),h=t.H(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),g=t.H(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),_=t.H(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),v=t.H(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),y=t.H(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]);function ee({className:e,...n}){return(0,r.jsx)(i.Root,{"data-slot":`avatar`,className:t.U(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,e),...n})}function te({className:e,...n}){return(0,r.jsx)(i.Image,{"data-slot":`avatar-image`,className:t.U(`aspect-square size-full`,e),...n})}function ne({className:e,...n}){return(0,r.jsx)(i.Fallback,{"data-slot":`avatar-fallback`,className:t.U(`bg-muted flex size-full items-center justify-center rounded-full`,e),...n})}function re({...e}){let{t}=(0,s.useTranslation)();return(0,r.jsx)(`nav`,{"aria-label":t(`common.breadcrumb`,{defaultValue:`Breadcrumb`}),"data-slot":`breadcrumb`,...e})}function ie({className:e,...n}){return(0,r.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:t.U(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,e),...n})}function ae({className:e,...n}){return(0,r.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:t.U(`inline-flex items-center gap-1.5`,e),...n})}function oe({asChild:e,className:n,...i}){return(0,r.jsx)(e?a.Slot:`a`,{"data-slot":`breadcrumb-link`,className:t.U(`hover:text-foreground transition-colors`,n),...i})}function se({className:e,...n}){return(0,r.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:t.U(`text-foreground font-normal`,e),...n})}function b({children:e,className:n,...i}){return(0,r.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:t.U(`[&>svg]:size-3.5`,n),...i,children:e??(0,r.jsx)(t.B,{})})}function x({className:e,...n}){let{t:i}=(0,s.useTranslation)();return(0,r.jsxs)(`span`,{"data-slot":`breadcrumb-ellipsis`,role:`presentation`,"aria-hidden":`true`,className:t.U(`flex size-9 items-center justify-center`,e),...n,children:[(0,r.jsx)(m,{className:`size-4`}),(0,r.jsx)(`span`,{className:`sr-only`,children:i(`common.more`,{defaultValue:`More`})})]})}function S({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card`,className:t.U(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,e),...n})}function C({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:t.U(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...n})}function w({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:t.U(`leading-none font-semibold`,e),...n})}function T({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:t.U(`text-muted-foreground text-sm`,e),...n})}function ce({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-action`,className:t.U(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...n})}function le({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:t.U(`px-6`,e),...n})}function ue({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:t.U(`flex items-center px-6 [.border-t]:pt-6`,e),...n})}function de({...e}){return(0,r.jsx)(l.Root,{"data-slot":`select`,...e})}function E({...e}){return(0,r.jsx)(l.Group,{"data-slot":`select-group`,...e})}function D({...e}){return(0,r.jsx)(l.Value,{"data-slot":`select-value`,...e})}function O({className:e,size:n=`default`,children:i,...a}){return(0,r.jsxs)(l.Trigger,{"data-slot":`select-trigger`,"data-size":n,className:t.U(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...a,children:[i,(0,r.jsx)(l.Icon,{asChild:!0,children:(0,r.jsx)(f,{className:`size-4 opacity-50`})})]})}function k({className:e,children:n,position:i=`popper`,align:a=`center`,...o}){return(0,r.jsx)(l.Portal,{children:(0,r.jsxs)(l.Content,{"data-slot":`select-content`,className:t.U(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,i===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:i,align:a,...o,children:[(0,r.jsx)(N,{}),(0,r.jsx)(l.Viewport,{className:t.U(`p-1`,i===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:n}),(0,r.jsx)(P,{})]})})}function A({className:e,...n}){return(0,r.jsx)(l.Label,{"data-slot":`select-label`,className:t.U(`text-muted-foreground px-2 py-1.5 text-xs`,e),...n})}function j({className:e,children:n,...i}){return(0,r.jsxs)(l.Item,{"data-slot":`select-item`,className:t.U(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...i,children:[(0,r.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(l.ItemIndicator,{children:(0,r.jsx)(t.V,{className:`size-4`})})}),(0,r.jsx)(l.ItemText,{children:n})]})}function M({className:e,...n}){return(0,r.jsx)(l.Separator,{"data-slot":`select-separator`,className:t.U(`bg-border pointer-events-none -mx-1 my-1 h-px`,e),...n})}function N({className:e,...n}){return(0,r.jsx)(l.ScrollUpButton,{"data-slot":`select-scroll-up-button`,className:t.U(`flex cursor-default items-center justify-center py-1`,e),...n,children:(0,r.jsx)(p,{className:`size-4`})})}function P({className:e,...n}){return(0,r.jsx)(l.ScrollDownButton,{"data-slot":`select-scroll-down-button`,className:t.U(`flex cursor-default items-center justify-center py-1`,e),...n,children:(0,r.jsx)(f,{className:`size-4`})})}function F({className:e,orientation:n=`horizontal`,decorative:i=!0,...a}){return(0,r.jsx)(u.Root,{"data-slot":`separator`,decorative:i,orientation:n,className:t.U(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,e),...a})}function I({...e}){return(0,r.jsx)(c.Root,{"data-slot":`sheet`,...e})}function L({...e}){return(0,r.jsx)(c.Trigger,{"data-slot":`sheet-trigger`,...e})}function R({...e}){return(0,r.jsx)(c.Close,{"data-slot":`sheet-close`,...e})}function z({...e}){return(0,r.jsx)(c.Portal,{"data-slot":`sheet-portal`,...e})}function B({className:e,...n}){return(0,r.jsx)(c.Overlay,{"data-slot":`sheet-overlay`,className:t.U(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,e),...n})}function V({className:e,children:n,side:i=`right`,...a}){let{t:o}=(0,s.useTranslation)();return(0,r.jsxs)(z,{children:[(0,r.jsx)(B,{}),(0,r.jsxs)(c.Content,{"data-slot":`sheet-content`,className:t.U(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,i===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,i===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,i===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,i===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,e),...a,children:[n,(0,r.jsxs)(c.Close,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none`,children:[(0,r.jsx)(t.z,{className:`size-4`}),(0,r.jsx)(`span`,{className:`sr-only`,children:o(`dialog.close`,{defaultValue:`Close`})})]})]})]})}function H({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sheet-header`,className:t.U(`flex flex-col gap-1.5 p-4`,e),...n})}function fe({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sheet-footer`,className:t.U(`mt-auto flex flex-col gap-2 p-4`,e),...n})}function U({className:e,...n}){return(0,r.jsx)(c.Title,{"data-slot":`sheet-title`,className:t.U(`text-foreground font-semibold`,e),...n})}function W({className:e,...n}){return(0,r.jsx)(c.Description,{"data-slot":`sheet-description`,className:t.U(`text-muted-foreground text-sm`,e),...n})}var pe=`(max-width: 767px)`;function G(){return window.matchMedia(pe)}function me(e){let t=G();return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function K(){return n.useSyncExternalStore(me,()=>G().matches,()=>!1)}var he=`sidebar_state`,ge=604800,_e=`16rem`,ve=`18rem`,q=`3rem`,ye=`b`,J=n.createContext(null);function Y(){let e=n.useContext(J);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function X(){return n.useContext(J)}function be({defaultOpen:e=!0,open:i,onOpenChange:a,className:o,style:s,children:c,...l}){let u=K(),[d,f]=n.useState(!1),[p,m]=n.useState(e),h=i??p,g=n.useCallback(e=>{let t=typeof e==`function`?e(h):e;a?a(t):m(t),document.cookie=`${he}=${t}; path=/; max-age=${ge}`},[a,h]),_=n.useCallback(()=>u?f(e=>!e):g(e=>!e),[u,g,f]);n.useEffect(()=>{let e=e=>{e.key===ye&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),_())};return globalThis.addEventListener(`keydown`,e),()=>globalThis.removeEventListener(`keydown`,e)},[_]);let v=h?`expanded`:`collapsed`,y=n.useMemo(()=>({state:v,open:h,setOpen:g,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:_}),[v,h,g,u,d,f,_]);return(0,r.jsx)(J.Provider,{value:y,children:(0,r.jsx)(t.o,{delayDuration:0,children:(0,r.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":_e,"--sidebar-width-icon":q,...s},className:t.U(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,o),...l,children:c})})})}function xe({side:e=`left`,variant:n=`sidebar`,collapsible:i=`offcanvas`,position:a=`fixed`,className:o,children:c,...l}){let{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=Y(),{t:m}=(0,s.useTranslation)();return i===`none`?(0,r.jsx)(`div`,{"data-slot":`sidebar`,className:t.U(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,o),...l,children:c}):u?(0,r.jsx)(I,{open:f,onOpenChange:p,...l,children:(0,r.jsxs)(V,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":ve},side:e,children:[(0,r.jsxs)(H,{className:`sr-only`,children:[(0,r.jsx)(U,{children:m(`sidebar.title`,{defaultValue:`Sidebar`})}),(0,r.jsx)(W,{children:m(`sidebar.description`,{defaultValue:`Displays the mobile sidebar.`})})]}),(0,r.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:c})]})}):(0,r.jsxs)(`div`,{className:t.U(`group peer text-sidebar-foreground hidden md:block`,a===`absolute`&&`relative`),"data-state":d,"data-collapsible":d===`collapsed`?i:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[(0,r.jsx)(`div`,{"data-slot":`sidebar-gap`,className:t.U(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,r.jsx)(`div`,{"data-slot":`sidebar-container`,className:t.U(`inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,a===`absolute`?`h-full`:`h-svh`,a===`absolute`?`absolute`:`fixed`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,o),...l,children:(0,r.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:c})})]})}function Se({className:e,onClick:n,...i}){let a=X(),{t:o}=(0,s.useTranslation)();if(!a)return null;let{toggleSidebar:c,isMobile:l}=a;return(0,r.jsxs)(t.u,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:t.U(`size-7`,e),onClick:e=>{n?.(e),c()},...i,children:[l?(0,r.jsx)(h,{}):(0,r.jsx)(v,{}),(0,r.jsx)(`span`,{className:`sr-only`,children:o(`sidebar.toggle`,{defaultValue:`Toggle Sidebar`})})]})}function Ce({className:e,...n}){let{toggleSidebar:i}=Y(),{t:a}=(0,s.useTranslation)(),o=a(`sidebar.toggle`,{defaultValue:`Toggle Sidebar`});return(0,r.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":o,tabIndex:-1,onClick:i,title:o,className:t.U(`hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...n})}function we({className:e,...n}){return(0,r.jsx)(`main`,{"data-slot":`sidebar-inset`,className:t.U(`bg-background relative flex w-full flex-1 flex-col`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...n})}function Te({className:e,...n}){return(0,r.jsx)(t.l,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:t.U(`bg-background h-8 w-full shadow-none`,e),...n})}function Ee({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:t.U(`flex flex-col gap-2 p-2`,e),...n})}function De({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:t.U(`flex flex-col gap-2 p-2`,e),...n})}function Oe({className:e,...n}){return(0,r.jsx)(F,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:t.U(`bg-sidebar-border mx-2 w-auto`,e),...n})}function ke({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:t.U(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...n})}function Ae({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:t.U(`relative flex w-full min-w-0 flex-col p-2`,e),...n})}function je({className:e,asChild:n=!1,...i}){return(0,r.jsx)(n?a.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:t.U(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),...i})}function Me({className:e,asChild:n=!1,...i}){return(0,r.jsx)(n?a.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:t.U(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...i})}function Ne({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:t.U(`w-full text-sm`,e),...n})}function Pe({className:e,...n}){return(0,r.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:t.U(`flex w-full min-w-0 flex-col gap-1`,e),...n})}function Fe({className:e,...n}){return(0,r.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:t.U(`group/menu-item relative`,e),...n})}var Ie=(0,o.cva)(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--vg-sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--vg-sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Le({asChild:e=!1,isActive:n=!1,variant:i=`default`,size:o=`default`,tooltip:s,className:c,...l}){let u=e?a.Slot:`button`,{isMobile:d,state:f}=Y(),p=(0,r.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":n,className:t.U(Ie({variant:i,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),(0,r.jsxs)(t.i,{children:[(0,r.jsx)(t.s,{asChild:!0,children:p}),(0,r.jsx)(t.a,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...s})]})):p}function Re({className:e,asChild:n=!1,showOnHover:i=!1,...o}){return(0,r.jsx)(n?a.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:t.U(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,i&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0`,e),...o})}function ze({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:t.U(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...n})}function Be(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}function Ve({className:e,showIcon:i=!1,...a}){let o=`${50+Be(n.useId())%40}%`;return(0,r.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:t.U(`flex h-8 items-center gap-2 rounded-md px-2`,e),...a,children:[i&&(0,r.jsx)(t.c,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,r.jsx)(t.c,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":o}})]})}function He({className:e,...n}){return(0,r.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:t.U(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...n})}function Ue({className:e,...n}){return(0,r.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:t.U(`group/menu-sub-item relative`,e),...n})}function We({asChild:e=!1,size:n=`md`,isActive:i=!1,className:o,...s}){return(0,r.jsx)(e?a.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":n,"data-active":i,className:t.U(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,n===`sm`&&`text-xs`,n===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,o),...s})}function Ge({children:e,defaultTheme:t=`system`,storageKey:n=`vite-ui-theme`,...i}){return(0,r.jsx)(d.ThemeProvider,{attribute:`class`,enableSystem:!0,defaultTheme:t,storageKey:n,...i,children:e})}var Z=()=>{let{theme:e,setTheme:t}=(0,d.useTheme)();return{theme:e??`system`,setTheme:t}};function Ke(){let{setTheme:e}=Z(),{t:n}=(0,s.useTranslation)();return(0,r.jsxs)(t.f,{children:[(0,r.jsx)(t.E,{asChild:!0,children:(0,r.jsxs)(t.u,{variant:`outline`,size:`sm`,children:[(0,r.jsx)(y,{className:`h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),(0,r.jsx)(_,{className:`absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),(0,r.jsx)(`span`,{className:`sr-only`,children:n(`theme.toggle`)})]})}),(0,r.jsxs)(t.m,{align:`end`,children:[(0,r.jsx)(t.g,{onClick:()=>e(`light`),children:n(`theme.light`)}),(0,r.jsx)(t.g,{onClick:()=>e(`dark`),children:n(`theme.dark`)}),(0,r.jsx)(t.g,{onClick:()=>e(`system`),children:n(`theme.system`)})]})]})}var Q=[{value:`light`,labelKey:`theme.light`,icon:y},{value:`dark`,labelKey:`theme.dark`,icon:_},{value:`system`,labelKey:`theme.system`,icon:g}];function qe(){let{theme:e,setTheme:t}=Z(),{t:n}=(0,s.useTranslation)(),i=Q.find(t=>t.value===e)??Q[2];function a(){let n=Q[(Q.findIndex(t=>t.value===e)+1)%Q.length];t(n.value)}let o=i.icon;return(0,r.jsxs)(`button`,{type:`button`,title:n(`theme.toggle`),onClick:a,className:`md:hidden flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-sidebar-foreground hover:bg-sidebar-accent transition-colors w-full`,children:[(0,r.jsx)(o,{className:`size-4 shrink-0`}),(0,r.jsx)(`span`,{children:n(`theme.modeLabel`,{mode:n(i.labelKey)})})]})}var $=(0,n.createContext)(void 0);function Je({children:e}){let[t,i]=(0,n.useState)([]),a=(0,n.useCallback)(e=>{i(t=>t.length>0&&t[t.length-1].label===e.label?t:[...t,e])},[]),o=(0,n.useCallback)(()=>{i(e=>e.slice(0,-1))},[]),s=(0,n.useCallback)((e=[])=>{i(e)},[]),c=(0,n.useMemo)(()=>({items:t,setItems:i,pushItem:a,popItem:o,resetBreadcrumb:s}),[t,a,o,s]);return(0,r.jsx)($.Provider,{value:c,children:e})}var Ye=()=>{let e=(0,n.useContext)($);if(!e)throw Error(`useBreadcrumb must be used within Provider`);return e},Xe=()=>(0,n.useContext)($);Object.defineProperty(exports,"$",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"Q",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"X",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"Y",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"Z",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"_t",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,"at",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,"ct",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"dt",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"et",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"ft",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"gt",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"ht",{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,"it",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"lt",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"mt",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"nt",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,"ot",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"pt",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,"rt",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"st",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,"tt",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"ut",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return H}});
@@ -1,21 +0,0 @@
1
- import { default as React } from 'react';
2
- interface Props {
3
- icon: React.ElementType;
4
- title: string;
5
- description: string;
6
- buttonText: string;
7
- urlNew?: string;
8
- }
9
- /**
10
- * The console empty state.
11
- *
12
- * @deprecated Console-era chrome. Still exported and still supported - the
13
- * cutover has not started in any of the three consoles, and removal is its own
14
- * decision, not a side effect of this notice. New pages should use the
15
- * bento layer.
16
- *
17
- * @see BentoEmptyState - the bento equivalent.
18
- */
19
- export declare const BlankSlate: React.FC<Props>;
20
- export {};
21
- //# sourceMappingURL=blank-slate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blank-slate.d.ts","sourceRoot":"","sources":["../../../src/components/router/blank-slate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,KAAK;IACX,IAAI,EAAE,KAAK,CAAC,WAAW,CAAA;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+BtC,CAAA"}
@@ -1,39 +0,0 @@
1
- import { ReactNode, default as React } from 'react';
2
- import { VigGridItem } from '../../models/grid-item';
3
- interface Props {
4
- gridItemList: VigGridItem[];
5
- children?: ReactNode;
6
- }
7
- interface NewButtonProps {
8
- to: string;
9
- label: string;
10
- }
11
- interface ActionProps {
12
- children: ReactNode;
13
- }
14
- export interface ItemActionProps {
15
- icon?: ReactNode;
16
- label: string;
17
- onClick: (item: VigGridItem) => void;
18
- position?: "left" | "right";
19
- }
20
- /**
21
- * The console list page: a searchable table/grid of entities with per-row actions.
22
- *
23
- * @deprecated Console-era chrome. Still exported and still supported - the
24
- * cutover has not started in any of the three consoles, and removal is its own
25
- * decision, not a side effect of this notice. New pages should use the
26
- * bento layer.
27
- *
28
- * @see BentoListPage - the bento equivalent.
29
- *
30
- * `BentoTileGrid` is the mosaic on its own, if the page already has
31
- * its own chrome.
32
- */
33
- export declare const GridList: React.FC<Props> & {
34
- NewButton: React.FC<NewButtonProps>;
35
- Action: React.FC<ActionProps>;
36
- ItemAction: React.FC<ItemActionProps>;
37
- };
38
- export {};
39
- //# sourceMappingURL=grid.list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grid.list.d.ts","sourceRoot":"","sources":["../../../src/components/router/grid.list.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAkBjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,KAAK;IACX,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,UAAU,cAAc;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB;AAMD,UAAU,WAAW;IACjB,QAAQ,EAAE,SAAS,CAAC;CACvB;AAMD,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B;AAuSD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ;;;;CAInB,CAAC"}
@@ -1,61 +0,0 @@
1
- import { default as React } from 'react';
2
- /** One entry in the sidebar's main navigation, optionally with sub-entries. */
3
- export interface NavMainItem {
4
- title: string;
5
- /**
6
- * Navigable URL fragment. VDS76 — optional: an item with `children` and no
7
- * `url` renders as a `SidebarGroupLabel` heading them, which is how a product
8
- * groups related sub-pages without inventing a clickable parent.
9
- */
10
- url?: string;
11
- icon?: React.ElementType;
12
- children?: NavMainItem[];
13
- /**
14
- * VDS76 — keeps the item visible while an entity is being created (`isNew`).
15
- * Omitted, it falls back to the legacy `url === "/detail"` heuristic, so
16
- * every existing caller behaves as before.
17
- */
18
- showOnNew?: boolean;
19
- }
20
- /**
21
- * One row of the indexing group: a labelled, formatted count with an optional
22
- * icon. `count` is optional because a caller renders the row before the number
23
- * arrives — sub.page.tsx passes this straight through, and the two declared it
24
- * separately until typing this one showed they disagreed about exactly that.
25
- */
26
- export interface InternalSidebarCount {
27
- title: string;
28
- count?: number;
29
- icon?: React.ElementType;
30
- }
31
- interface InternalSidebarProps {
32
- icon: React.ElementType;
33
- feature: string;
34
- name: string;
35
- urlBase?: string;
36
- isNew?: boolean;
37
- data?: {
38
- counts?: InternalSidebarCount[];
39
- navMain: NavMainItem[];
40
- };
41
- onDelete?: () => void;
42
- onExport?: () => void;
43
- open?: boolean;
44
- setOpen?: React.Dispatch<React.SetStateAction<boolean>>;
45
- }
46
- /**
47
- * The console entity sidebar: a header, indexing counts and a nav tree.
48
- *
49
- * @deprecated Console-era chrome. Still exported and still supported - the
50
- * cutover has not started in any of the three consoles, and removal is its own
51
- * decision, not a side effect of this notice. New pages should use the
52
- * bento layer.
53
- *
54
- * @see BentoNavRail - the bento equivalent.
55
- *
56
- * The rail takes its nav array as a prop rather than importing the
57
- * product's routes, which is what lets one rail serve three products.
58
- */
59
- export declare const InternalSidebar: React.FC<InternalSidebarProps>;
60
- export {};
61
- //# sourceMappingURL=internal.sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/router/internal.sidebar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAmB9C,+EAA+E;AAC/E,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAyBD;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;QAChC,OAAO,EAAE,WAAW,EAAE,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACzD;AA+BD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkI1D,CAAC"}
@@ -1,25 +0,0 @@
1
- import { Icon } from '@tabler/icons-react';
2
- interface NavItem {
3
- readonly title: string;
4
- readonly url: string;
5
- readonly icon?: Icon;
6
- }
7
- interface NavGroup {
8
- readonly label?: string;
9
- readonly items: readonly NavItem[];
10
- }
11
- /**
12
- * The console primary navigation.
13
- *
14
- * @deprecated Console-era chrome. Still exported and still supported - the
15
- * cutover has not started in any of the three consoles, and removal is its own
16
- * decision, not a side effect of this notice. New pages should use the
17
- * bento layer.
18
- *
19
- * @see BentoNavRail - the bento equivalent.
20
- */
21
- export declare function NavMain({ groups, }: {
22
- readonly groups: readonly NavGroup[];
23
- }): import("react").JSX.Element;
24
- export {};
25
- //# sourceMappingURL=nav-main.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-main.d.ts","sourceRoot":"","sources":["../../../src/components/router/nav-main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAa/C,UAAU,OAAO;IACf,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CACrB;AAED,UAAU,QAAQ;IAChB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAA;CACnC;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,EACtB,MAAM,GACP,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAA;CACrC,+BA2BA"}
@@ -1,24 +0,0 @@
1
- import { VigUser } from '../../models/user';
2
- import { default as React } from 'react';
3
- interface NavUserProps {
4
- user: VigUser;
5
- accountUrl?: string;
6
- logoutUrl?: string;
7
- onLogout?: () => void;
8
- }
9
- /**
10
- * The console account menu.
11
- *
12
- * @deprecated Console-era chrome. Still exported and still supported - the
13
- * cutover has not started in any of the three consoles, and removal is its own
14
- * decision, not a side effect of this notice. New pages should use the
15
- * bento layer.
16
- *
17
- * @see BentoUserMenu - the bento equivalent.
18
- *
19
- * Routes and feature flags arrive as props, so the menu holds no
20
- * product data.
21
- */
22
- export declare function NavUser({ user, accountUrl, logoutUrl, onLogout, }: Readonly<NavUserProps>): React.JSX.Element;
23
- export {};
24
- //# sourceMappingURL=nav-user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-user.d.ts","sourceRoot":"","sources":["../../../src/components/router/nav-user.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,YAAY;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,QAAQ,CAAC,YAAY,CAAC,qBAgGxB"}
@@ -1,12 +0,0 @@
1
- /**
2
- * The console page's outlet wrapper.
3
- *
4
- * @deprecated Console-era chrome. Still exported and still supported - the
5
- * cutover has not started in any of the three consoles, and removal is its own
6
- * decision, not a side effect of this notice. New pages should use the
7
- * bento layer.
8
- *
9
- * Part of the console shell; see `Page`.
10
- */
11
- export declare const PageContent: React.FC;
12
- //# sourceMappingURL=page-content.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"page-content.d.ts","sourceRoot":"","sources":["../../../src/components/router/page-content.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAU/B,CAAA"}
@@ -1,23 +0,0 @@
1
- import { default as React } from 'react';
2
- interface PageHeaderProps {
3
- icon?: React.ElementType;
4
- title: string;
5
- urlBase?: string;
6
- children?: React.ReactNode;
7
- }
8
- /**
9
- * The console page header: a tinted icon chip, a title and a row of actions.
10
- *
11
- * @deprecated Console-era chrome. Still exported and still supported - the
12
- * cutover has not started in any of the three consoles, and removal is its own
13
- * decision, not a side effect of this notice. New pages should use the
14
- * bento layer.
15
- *
16
- * @see BentoHero - the bento equivalent.
17
- *
18
- * `BentoHero` takes the same title/subtitle/icon and adds a tone, so
19
- * the chip follows the product accent rather than the component.
20
- */
21
- export declare const PageHeader: React.FC<PageHeaderProps>;
22
- export {};
23
- //# sourceMappingURL=page-header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../src/components/router/page-header.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkFhD,CAAA"}
@@ -1,22 +0,0 @@
1
- import { default as React } from 'react';
2
- interface PageProps {
3
- icon?: React.ElementType;
4
- title: string;
5
- urlBase?: string;
6
- }
7
- /**
8
- * The console page shell.
9
- *
10
- * @deprecated Console-era chrome. Still exported and still supported - the
11
- * cutover has not started in any of the three consoles, and removal is its own
12
- * decision, not a side effect of this notice. New pages should use the
13
- * bento layer.
14
- *
15
- * The bento layer ships no single shell on purpose - the shell is
16
- * where a product is itself. Compose `BentoNavRail`, `BentoUserMenu`
17
- * and `BentoCommandPalette`, or use `BentoEntityShell` for an entity
18
- * page.
19
- */
20
- export declare const Page: React.FC<PageProps>;
21
- export {};
22
- //# sourceMappingURL=page.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/components/router/page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAOpC,CAAA"}
@@ -1,85 +0,0 @@
1
- import { default as React } from 'react';
2
- /**
3
- * Composite sticky header for sub-pages.
4
- *
5
- * Replaces the former `SubPageHeader` + `StickySaveBar` duplication. The root
6
- * is a sticky flex row with the SidebarTrigger; callers compose the title and
7
- * any buttons as children.
8
- *
9
- * Usage:
10
- * ```tsx
11
- * <StickyPageHeader>
12
- * <StickyPageHeader.Title icon={IconSettings} feature="..." description="..." />
13
- * <StickyPageHeader.Actions>
14
- * <StickyPageHeader.Action label="Duplicate" onClick={...} /> // → dropdown item
15
- *
16
- * <GradientButton variant="ghost" size="icon-sm" onClick={handleExport}>
17
- * <IconDownload className="size-5!" />
18
- * </GradientButton>
19
- *
20
- * <DialogDelete feature="..." name={name} onDelete={...} open={open} setOpen={setOpen} />
21
- *
22
- * <GradientButton type="submit" size="sm" loading={isLoading}>
23
- * <IconDeviceFloppy className="size-4" />
24
- * {t("forms.formActions.saveChanges")}
25
- * </GradientButton>
26
- *
27
- * <GradientButton type="button" variant="outline" size="sm" onClick={...}>
28
- * <IconX className="size-4" />
29
- * {t("forms.formActions.cancel")}
30
- * </GradientButton>
31
- * </StickyPageHeader.Actions>
32
- * </StickyPageHeader>
33
- * ```
34
- *
35
- * Only `Action` (dropdown item marker) has special handling — all other nodes
36
- * inside `<Actions>` render inline in the order they appear.
37
- *
38
- * @since 2026.2.26
39
- */
40
- interface TitleProps {
41
- icon: React.ElementType;
42
- feature: string;
43
- description: string;
44
- /** When set, wraps the title in a NavLink to this route (desktop only). */
45
- urlBase?: string;
46
- }
47
- interface ActionProps {
48
- label: string;
49
- icon?: React.ElementType;
50
- href?: string;
51
- onClick?: () => void;
52
- disabled?: boolean;
53
- }
54
- interface ActionsProps {
55
- children: React.ReactNode;
56
- /**
57
- * Optional label rendered next to the dropdown trigger's three-dots icon.
58
- * When omitted, the trigger is icon-only (three vertical dots).
59
- */
60
- menuLabel?: string;
61
- }
62
- interface RootProps {
63
- children: React.ReactNode;
64
- }
65
- /**
66
- * The console sticky header: a header that condenses as the page scrolls.
67
- *
68
- * @deprecated Console-era chrome. Still exported and still supported - the
69
- * cutover has not started in any of the three consoles, and removal is its own
70
- * decision, not a side effect of this notice. New pages should use the
71
- * bento layer.
72
- *
73
- * @see useBentoScrollFade - the bento equivalent.
74
- *
75
- * The bento layer separates the scroll state from the chrome, so the
76
- * same fade drives a header, a save bar (`BentoScrollSaveBar`) or
77
- * anything else.
78
- */
79
- export declare const StickyPageHeader: React.FC<RootProps> & {
80
- Title: React.FC<TitleProps>;
81
- Actions: React.FC<ActionsProps>;
82
- Action: React.FC<ActionProps>;
83
- };
84
- export {};
85
- //# sourceMappingURL=sticky.page.header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sticky.page.header.d.ts","sourceRoot":"","sources":["../../../src/components/router/sticky.page.header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAIH,UAAU,UAAU;IAClB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA8CD,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAOD,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmED,UAAU,SAAS;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAcD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB;;;;CAI3B,CAAC"}
@@ -1,50 +0,0 @@
1
- import { default as React, Dispatch, SetStateAction } from 'react';
2
- import { InternalSidebarCount, NavMainItem } from './internal.sidebar';
3
- interface DataType {
4
- navMain: NavMainItem[];
5
- counts?: InternalSidebarCount[];
6
- }
7
- interface Props {
8
- icon: React.ElementType;
9
- feature: string;
10
- name: string;
11
- urlBase?: string;
12
- isNew?: boolean;
13
- data?: DataType;
14
- open?: boolean;
15
- setOpen?: Dispatch<SetStateAction<boolean>>;
16
- onDelete?: () => void;
17
- onExport?: () => void;
18
- /**
19
- * VDS76 — value handed to the nested `<Outlet context={...}>`, which child
20
- * routes read with `useOutletContext()`. There is no other way for a routed
21
- * child to reach it, and it is what lets an editor's section sub-pages share
22
- * one form instance instead of each mounting its own.
23
- */
24
- outletContext?: unknown;
25
- /**
26
- * VDS76 — how much room the shell takes around the page.
27
- *
28
- * `comfortable` is what this component has always rendered and stays the
29
- * default, so no existing console moves. `compact` removes the outer padding
30
- * and tightens the inset, which is the spacing a console that already fills
31
- * its own viewport needs; adopting the shared component should not reflow it.
32
- */
33
- density?: "comfortable" | "compact";
34
- }
35
- /**
36
- * The console entity page: sidebar, header and outlet in one.
37
- *
38
- * @deprecated Console-era chrome. Still exported and still supported - the
39
- * cutover has not started in any of the three consoles, and removal is its own
40
- * decision, not a side effect of this notice. New pages should use the
41
- * bento layer.
42
- *
43
- * @see BentoEntityShell - the bento equivalent.
44
- *
45
- * The shell renders through a render prop, so a product supplies the
46
- * body without the shell knowing what an entity is.
47
- */
48
- export declare const SubPage: React.FC<Props>;
49
- export {};
50
- //# sourceMappingURL=sub.page.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub.page.d.ts","sourceRoot":"","sources":["../../../src/components/router/sub.page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAM5B,UAAU,QAAQ;IAChB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACjC;AAED,UAAU,KAAK;IACb,IAAI,EAAE,KAAK,CAAC,WAAW,CAAA;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACrC;AAeD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4BnC,CAAC"}
@@ -1,37 +0,0 @@
1
- import { default as React } from 'react';
2
- interface ActionProps {
3
- label: string;
4
- icon?: React.ElementType;
5
- href?: string;
6
- onClick?: () => void;
7
- disabled?: boolean;
8
- }
9
- interface Props {
10
- icon: React.ElementType;
11
- feature: string;
12
- name: string;
13
- description: string;
14
- urlBase?: string;
15
- onDelete?: () => void;
16
- open?: boolean;
17
- setOpen?: React.Dispatch<React.SetStateAction<boolean>>;
18
- children?: React.ReactNode;
19
- }
20
- /**
21
- * The console sub-page header: the same chip and title, plus an actions menu and a back target.
22
- *
23
- * @deprecated Console-era chrome. Still exported and still supported - the
24
- * cutover has not started in any of the three consoles, and removal is its own
25
- * decision, not a side effect of this notice. New pages should use the
26
- * bento layer.
27
- *
28
- * @see BentoHero - the bento equivalent.
29
- *
30
- * Pair it with `BentoBackLink` for the back target; the actions menu
31
- * is `BentoActionsMenu`.
32
- */
33
- export declare const SubPageHeader: React.FC<Props> & {
34
- Action: React.FC<ActionProps>;
35
- };
36
- export {};
37
- //# sourceMappingURL=sub.page.header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub.page.header.d.ts","sourceRoot":"","sources":["../../../src/components/router/sub.page.header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAOD,UAAU,KAAK;IACb,IAAI,EAAE,KAAK,CAAC,WAAW,CAAA;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAoGD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa;;CAExB,CAAC"}