@viglet/viglet-design-system 2026.3.2 → 2026.3.4
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.
- package/README.md +334 -8
- package/dist/assets.cjs +1 -0
- package/dist/assets.es.js +2 -0
- package/dist/badge-locale-BxI9TwkE.js +579 -0
- package/dist/badge-locale-sIsBdP_e.cjs +7 -0
- package/dist/bento/bento-actions-menu.d.ts +42 -0
- package/dist/bento/bento-actions-menu.d.ts.map +1 -0
- package/dist/bento/bento-back-to-top.d.ts +11 -0
- package/dist/bento/bento-back-to-top.d.ts.map +1 -0
- package/dist/bento/bento-command-palette.d.ts +28 -0
- package/dist/bento/bento-command-palette.d.ts.map +1 -0
- package/dist/bento/bento-count-tile.d.ts +18 -0
- package/dist/bento/bento-count-tile.d.ts.map +1 -0
- package/dist/bento/bento-empty-state.d.ts +35 -0
- package/dist/bento/bento-empty-state.d.ts.map +1 -0
- package/dist/bento/bento-entity-shell.d.ts +123 -0
- package/dist/bento/bento-entity-shell.d.ts.map +1 -0
- package/dist/bento/bento-entity-tile.d.ts +40 -0
- package/dist/bento/bento-entity-tile.d.ts.map +1 -0
- package/dist/bento/bento-form-hero.d.ts +91 -0
- package/dist/bento/bento-form-hero.d.ts.map +1 -0
- package/dist/bento/bento-form-section.d.ts +31 -0
- package/dist/bento/bento-form-section.d.ts.map +1 -0
- package/dist/bento/bento-hero-icon-picker.d.ts +35 -0
- package/dist/bento/bento-hero-icon-picker.d.ts.map +1 -0
- package/dist/bento/bento-hero.d.ts +62 -0
- package/dist/bento/bento-hero.d.ts.map +1 -0
- package/dist/bento/bento-inline-edit.d.ts +52 -0
- package/dist/bento/bento-inline-edit.d.ts.map +1 -0
- package/dist/bento/bento-layout.d.ts +52 -0
- package/dist/bento/bento-layout.d.ts.map +1 -0
- package/dist/bento/bento-list-page.d.ts +124 -0
- package/dist/bento/bento-list-page.d.ts.map +1 -0
- package/dist/bento/bento-nav-rail.d.ts +32 -0
- package/dist/bento/bento-nav-rail.d.ts.map +1 -0
- package/dist/bento/bento-nav.d.ts +69 -0
- package/dist/bento/bento-nav.d.ts.map +1 -0
- package/dist/bento/bento-save-bar.d.ts +36 -0
- package/dist/bento/bento-save-bar.d.ts.map +1 -0
- package/dist/bento/bento-scroll-fade.d.ts +20 -0
- package/dist/bento/bento-scroll-fade.d.ts.map +1 -0
- package/dist/bento/bento-scroll-save-bar.d.ts +22 -0
- package/dist/bento/bento-scroll-save-bar.d.ts.map +1 -0
- package/dist/bento/bento-section-chrome.d.ts +60 -0
- package/dist/bento/bento-section-chrome.d.ts.map +1 -0
- package/dist/bento/bento-section.d.ts +27 -0
- package/dist/bento/bento-section.d.ts.map +1 -0
- package/dist/bento/bento-shortcuts-dialog.d.ts +15 -0
- package/dist/bento/bento-shortcuts-dialog.d.ts.map +1 -0
- package/dist/bento/bento-status-marker.d.ts +26 -0
- package/dist/bento/bento-status-marker.d.ts.map +1 -0
- package/dist/bento/bento-tile.d.ts +42 -0
- package/dist/bento/bento-tile.d.ts.map +1 -0
- package/dist/bento/bento-tones.d.ts +33 -0
- package/dist/bento/bento-tones.d.ts.map +1 -0
- package/dist/bento/bento-user-menu.d.ts +31 -0
- package/dist/bento/bento-user-menu.d.ts.map +1 -0
- package/dist/bento/index.d.ts +59 -0
- package/dist/bento/index.d.ts.map +1 -0
- package/dist/bento.cjs +1 -0
- package/dist/bento.css +442 -0
- package/dist/bento.es.js +1502 -0
- package/dist/breadcrumb.context-CGqjI0-U.js +914 -0
- package/dist/breadcrumb.context-DYeZEC65.cjs +1 -0
- package/dist/components/app-switcher.d.ts +2 -0
- package/dist/components/app-switcher.d.ts.map +1 -1
- package/dist/components/badge-locale.d.ts.map +1 -1
- package/dist/components/error-boundary.d.ts.map +1 -1
- package/dist/components/language-select.d.ts.map +1 -1
- package/dist/components/router/blank-slate.d.ts +10 -0
- package/dist/components/router/blank-slate.d.ts.map +1 -1
- package/dist/components/router/grid.list.d.ts +13 -0
- package/dist/components/router/grid.list.d.ts.map +1 -1
- package/dist/components/router/internal.sidebar.d.ts +39 -3
- package/dist/components/router/internal.sidebar.d.ts.map +1 -1
- package/dist/components/router/loading-provider.d.ts +6 -1
- package/dist/components/router/loading-provider.d.ts.map +1 -1
- package/dist/components/router/nav-main.d.ts +10 -0
- package/dist/components/router/nav-main.d.ts.map +1 -1
- package/dist/components/router/nav-user.d.ts +13 -0
- package/dist/components/router/nav-user.d.ts.map +1 -1
- package/dist/components/router/page-content.d.ts +10 -0
- package/dist/components/router/page-content.d.ts.map +1 -1
- package/dist/components/router/page-header.d.ts +13 -0
- package/dist/components/router/page-header.d.ts.map +1 -1
- package/dist/components/router/page.d.ts +13 -0
- package/dist/components/router/page.d.ts.map +1 -1
- package/dist/components/router/sticky.page.header.d.ts +14 -0
- package/dist/components/router/sticky.page.header.d.ts.map +1 -1
- package/dist/components/router/sub.page.d.ts +31 -11
- package/dist/components/router/sub.page.d.ts.map +1 -1
- package/dist/components/router/sub.page.header.d.ts +13 -0
- package/dist/components/router/sub.page.header.d.ts.map +1 -1
- package/dist/components/startup-first/startup-first.d.ts.map +1 -1
- package/dist/components/theme-provider.d.ts +37 -2
- package/dist/components/theme-provider.d.ts.map +1 -1
- package/dist/components/ui/floating-formulas-bg.d.ts +8 -1
- package/dist/components/ui/floating-formulas-bg.d.ts.map +1 -1
- package/dist/components/ui/form.d.ts +2 -2
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/gradient-button.d.ts.map +1 -1
- package/dist/components/ui/gradient-switch.d.ts.map +1 -1
- package/dist/components/ui/icon-picker-dialog.d.ts +35 -0
- package/dist/components/ui/icon-picker-dialog.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/section-card.d.ts +3 -3
- package/dist/components/ui/section-card.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/viglet-app-switcher.d.ts +3 -0
- package/dist/components/viglet-app-switcher.d.ts.map +1 -1
- package/dist/contexts/user.context.d.ts +24 -0
- package/dist/contexts/user.context.d.ts.map +1 -1
- package/dist/exports.json +404 -0
- package/dist/floating-formulas-bg.cjs +1 -0
- package/dist/floating-formulas-bg.css +21 -0
- package/dist/floating-formulas-bg.es.js +84 -56
- package/dist/fonts/inter-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-vietnamese-wght-normal.woff2 +0 -0
- package/dist/fonts/plus-jakarta-sans-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/plus-jakarta-sans-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/plus-jakarta-sans-vietnamese-wght-normal.woff2 +0 -0
- package/dist/fonts.css +126 -0
- package/dist/hooks/use-grid-adapter.d.ts.map +1 -1
- package/dist/hooks/use-mobile.d.ts +10 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-sub-page-breadcrumb.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +136 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/locales/en/bento.json.d.ts +51 -0
- package/dist/i18n/locales/en/common.json.d.ts +7 -1
- package/dist/i18n/locales/en/forms.json.d.ts +15 -1
- package/dist/i18n/locales/en/nav.json.d.ts +3 -1
- package/dist/i18n/locales/pt/bento.json.d.ts +51 -0
- package/dist/i18n/locales/pt/common.json.d.ts +7 -1
- package/dist/i18n/locales/pt/forms.json.d.ts +15 -1
- package/dist/i18n/locales/pt/nav.json.d.ts +3 -1
- package/dist/i18n-DoNdMLEd.cjs +1 -0
- package/dist/{i18n-C94rDRaM.js → i18n-DuNITbWa.js} +155 -27
- package/dist/i18n.cjs +1 -0
- package/dist/i18n.es.js +2 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +493 -750
- package/dist/lib/axios.d.ts.map +1 -1
- package/dist/lib/export-xlsx.d.ts +7 -1
- package/dist/lib/export-xlsx.d.ts.map +1 -1
- package/dist/lib/react-markers.d.ts +17 -0
- package/dist/lib/react-markers.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +22 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/loading-provider-1mgM91iY.cjs +1 -0
- package/dist/loading-provider-CMnOuvdR.js +224 -0
- package/dist/preset.css +103 -3
- package/dist/products-DL_YYXkV.cjs +1 -0
- package/dist/products-Du9KB6Xl.js +9 -0
- package/dist/{rolldown-runtime-CMqjfN_6.cjs → rolldown-runtime-BocRIvOZ.cjs} +1 -1
- package/dist/router.cjs +1 -0
- package/dist/router.es.js +334 -504
- package/dist/user.context-kPAqKN4o.js +512 -0
- package/dist/user.context-r50nSWER.cjs +1 -0
- package/dist/viglet-design-system.css +1 -1
- package/dist/vite/boot-loader.d.ts +21 -7
- package/dist/vite/boot-loader.d.ts.map +1 -1
- package/dist/{vite.cjs.js → vite.cjs} +8 -8
- package/dist/vite.es.js +29 -16
- package/package.json +66 -22
- package/scripts/check-duplicates.mjs +198 -0
- package/dist/breadcrumb.context-C7VCfh49.js +0 -1501
- package/dist/breadcrumb.context-Td6Tjc_z.cjs +0 -7
- package/dist/floating-formulas-bg.cjs.js +0 -1
- package/dist/i18n-DN_2YzjB.cjs +0 -1
- package/dist/i18n.cjs.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/router.cjs.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-BocRIvOZ.cjs"),t=require("./badge-locale-sIsBdP_e.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("@radix-ui/react-dialog");s=e.t(s,1);let c=require("react-i18next"),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}){return(0,r.jsx)(`nav`,{"aria-label":`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}){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:`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)(s.Root,{"data-slot":`sheet`,...e})}function L({...e}){return(0,r.jsx)(s.Trigger,{"data-slot":`sheet-trigger`,...e})}function R({...e}){return(0,r.jsx)(s.Close,{"data-slot":`sheet-close`,...e})}function z({...e}){return(0,r.jsx)(s.Portal,{"data-slot":`sheet-portal`,...e})}function B({className:e,...n}){return(0,r.jsx)(s.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}){return(0,r.jsxs)(z,{children:[(0,r.jsx)(B,{}),(0,r.jsxs)(s.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)(s.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:`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)(s.Title,{"data-slot":`sheet-title`,className:t.U(`text-foreground font-semibold`,e),...n})}function W({className:e,...n}){return(0,r.jsx)(s.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:s,...c}){let{isMobile:l,state:u,openMobile:d,setOpenMobile:f}=Y();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),...c,children:s}):l?(0,r.jsx)(I,{open:d,onOpenChange:f,...c,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:`Sidebar`}),(0,r.jsx)(W,{children:`Displays the mobile sidebar.`})]}),(0,r.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:s})]})}):(0,r.jsxs)(`div`,{className:t.U(`group peer text-sidebar-foreground hidden md:block`,a===`absolute`&&`relative`),"data-state":u,"data-collapsible":u===`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),...c,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:s})})]})}function Se({className:e,onClick:n,...i}){let a=X();if(!a)return null;let{toggleSidebar:o,isMobile:s}=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),o()},...i,children:[s?(0,r.jsx)(h,{}):(0,r.jsx)(v,{}),(0,r.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Ce({className:e,...n}){let{toggleSidebar:i}=Y();return(0,r.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:i,title:`Toggle Sidebar`,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,c.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,c.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}});
|
|
@@ -44,6 +44,8 @@ export interface AppSwitcherProps {
|
|
|
44
44
|
* Application switcher — a side panel listing related apps in a multi-product
|
|
45
45
|
* suite (e.g. Cloud, Turing, Shio, Dumont). Designed to live in the top-right
|
|
46
46
|
* corner of a sticky header.
|
|
47
|
+
* viglet-ds-consumer-pair -- an example of a suite, not a claim about who
|
|
48
|
+
* installs this package. The apps are the caller's to pass in.
|
|
47
49
|
*/
|
|
48
50
|
export declare function AppSwitcher({ open, onToggle, apps, triggerTitle, closeLabel, showTrigger, headerHeight, }: Readonly<AppSwitcherProps>): import("react").JSX.Element;
|
|
49
51
|
//# sourceMappingURL=app-switcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-switcher.d.ts","sourceRoot":"","sources":["../../src/components/app-switcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"app-switcher.d.ts","sourceRoot":"","sources":["../../src/components/app-switcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,YAAqB,EACrB,UAAiC,EACjC,WAAkB,EAClB,YAAiB,GAClB,EAAE,QAAQ,CAAC,gBAAgB,CAAC,+BA+C5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-locale.d.ts","sourceRoot":"","sources":["../../src/components/badge-locale.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"badge-locale.d.ts","sourceRoot":"","sources":["../../src/components/badge-locale.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,UAAU,gBAAgB;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAkDD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAkB3D;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8BlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../src/components/error-boundary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9D;;;;;;;;;;;;GAYG;AAEH,UAAU,KAAK;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC;CACtE;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,qBAAa,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAuB;IAEnC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAIpD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../src/components/error-boundary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9D;;;;;;;;;;;;GAYG;AAEH,UAAU,KAAK;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC;CACtE;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,qBAAa,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAuB;IAEnC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAIpD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;IAItD,KAAK,QAAO,IAAI,CAEd;IAEF,MAAM,IAAI,SAAS;CASpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-select.d.ts","sourceRoot":"","sources":["../../src/components/language-select.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,UAAU,mBAAmB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,OAAO,EACP,iBAAsB,EACtB,WAAW,EACX,SAAS,GACZ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,+
|
|
1
|
+
{"version":3,"file":"language-select.d.ts","sourceRoot":"","sources":["../../src/components/language-select.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,UAAU,mBAAmB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,OAAO,EACP,iBAAsB,EACtB,WAAW,EACX,SAAS,GACZ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,+BAuD/B"}
|
|
@@ -6,6 +6,16 @@ interface Props {
|
|
|
6
6
|
buttonText: string;
|
|
7
7
|
urlNew?: string;
|
|
8
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
|
+
*/
|
|
9
19
|
export declare const BlankSlate: React.FC<Props>;
|
|
10
20
|
export {};
|
|
11
21
|
//# sourceMappingURL=blank-slate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+BtC,CAAA"}
|
|
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"}
|
|
@@ -17,6 +17,19 @@ export interface ItemActionProps {
|
|
|
17
17
|
onClick: (item: VigGridItem) => void;
|
|
18
18
|
position?: "left" | "right";
|
|
19
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
|
+
*/
|
|
20
33
|
export declare const GridList: React.FC<Props> & {
|
|
21
34
|
NewButton: React.FC<NewButtonProps>;
|
|
22
35
|
Action: React.FC<ActionProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.list.d.ts","sourceRoot":"","sources":["../../../src/components/router/grid.list.tsx"],"names":[],"mappings":"
|
|
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;AAqSD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ;;;;CAInB,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
/** One entry in the sidebar's main navigation, optionally with sub-entries. */
|
|
3
|
+
export interface NavMainItem {
|
|
3
4
|
title: string;
|
|
4
|
-
|
|
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;
|
|
5
11
|
icon?: React.ElementType;
|
|
6
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;
|
|
7
30
|
}
|
|
8
31
|
interface InternalSidebarProps {
|
|
9
32
|
icon: React.ElementType;
|
|
@@ -12,7 +35,7 @@ interface InternalSidebarProps {
|
|
|
12
35
|
urlBase?: string;
|
|
13
36
|
isNew?: boolean;
|
|
14
37
|
data?: {
|
|
15
|
-
counts?:
|
|
38
|
+
counts?: InternalSidebarCount[];
|
|
16
39
|
navMain: NavMainItem[];
|
|
17
40
|
};
|
|
18
41
|
onDelete?: () => void;
|
|
@@ -20,6 +43,19 @@ interface InternalSidebarProps {
|
|
|
20
43
|
open?: boolean;
|
|
21
44
|
setOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
22
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
|
+
*/
|
|
23
59
|
export declare const InternalSidebar: React.FC<InternalSidebarProps>;
|
|
24
60
|
export {};
|
|
25
61
|
//# sourceMappingURL=internal.sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,5 +1,10 @@
|
|
|
1
1
|
interface LoadProviderProps {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The value the page is waiting on. Only its presence is read — the
|
|
4
|
+
* skeleton shows while this is `undefined` — so it is deliberately
|
|
5
|
+
* untyped rather than `any`, which would let a caller's mistake through.
|
|
6
|
+
*/
|
|
7
|
+
checkIsNotUndefined?: unknown;
|
|
3
8
|
error?: string | null;
|
|
4
9
|
tryAgainUrl?: string;
|
|
5
10
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-provider.d.ts","sourceRoot":"","sources":["../../../src/components/router/loading-provider.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACvB,mBAAmB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"loading-provider.d.ts","sourceRoot":"","sources":["../../../src/components/router/loading-provider.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,GAAI,uDAK1B,iBAAiB,gCAmCnB,CAAC"}
|
|
@@ -8,6 +8,16 @@ interface NavGroup {
|
|
|
8
8
|
readonly label?: string;
|
|
9
9
|
readonly items: readonly NavItem[];
|
|
10
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
|
+
*/
|
|
11
21
|
export declare function NavMain({ groups, }: {
|
|
12
22
|
readonly groups: readonly NavGroup[];
|
|
13
23
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
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,wBAAgB,OAAO,CAAC,EACtB,MAAM,GACP,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAA;CACrC,+BA2BA"}
|
|
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"}
|
|
@@ -6,6 +6,19 @@ interface NavUserProps {
|
|
|
6
6
|
logoutUrl?: string;
|
|
7
7
|
onLogout?: () => void;
|
|
8
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
|
+
*/
|
|
9
22
|
export declare function NavUser({ user, accountUrl, logoutUrl, onLogout, }: Readonly<NavUserProps>): React.JSX.Element;
|
|
10
23
|
export {};
|
|
11
24
|
//# sourceMappingURL=nav-user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,QAAQ,CAAC,YAAY,CAAC,qBAgGxB"}
|
|
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,2 +1,12 @@
|
|
|
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
|
+
*/
|
|
1
11
|
export declare const PageContent: React.FC;
|
|
2
12
|
//# sourceMappingURL=page-content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-content.d.ts","sourceRoot":"","sources":["../../../src/components/router/page-content.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAU/B,CAAA"}
|
|
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"}
|
|
@@ -5,6 +5,19 @@ interface PageHeaderProps {
|
|
|
5
5
|
urlBase?: string;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
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
|
+
*/
|
|
8
21
|
export declare const PageHeader: React.FC<PageHeaderProps>;
|
|
9
22
|
export {};
|
|
10
23
|
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkFhD,CAAA"}
|
|
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"}
|
|
@@ -4,6 +4,19 @@ interface PageProps {
|
|
|
4
4
|
title: string;
|
|
5
5
|
urlBase?: string;
|
|
6
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
|
+
*/
|
|
7
20
|
export declare const Page: React.FC<PageProps>;
|
|
8
21
|
export {};
|
|
9
22
|
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAOpC,CAAA"}
|
|
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"}
|
|
@@ -62,6 +62,20 @@ interface ActionsProps {
|
|
|
62
62
|
interface RootProps {
|
|
63
63
|
children: React.ReactNode;
|
|
64
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
|
+
*/
|
|
65
79
|
export declare const StickyPageHeader: React.FC<RootProps> & {
|
|
66
80
|
Title: React.FC<TitleProps>;
|
|
67
81
|
Actions: React.FC<ActionsProps>;
|
|
@@ -1 +1 @@
|
|
|
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;AA6CD,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,eAAO,MAAM,gBAAgB;;;;CAI3B,CAAC"}
|
|
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;AA6CD,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,17 +1,8 @@
|
|
|
1
1
|
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
|
|
3
|
-
title: string;
|
|
4
|
-
url: string;
|
|
5
|
-
icon?: React.ElementType;
|
|
6
|
-
}
|
|
7
|
-
interface NavCountItem {
|
|
8
|
-
title: string;
|
|
9
|
-
icon?: React.ElementType;
|
|
10
|
-
count?: number;
|
|
11
|
-
}
|
|
2
|
+
import { InternalSidebarCount, NavMainItem } from './internal.sidebar';
|
|
12
3
|
interface DataType {
|
|
13
4
|
navMain: NavMainItem[];
|
|
14
|
-
counts?:
|
|
5
|
+
counts?: InternalSidebarCount[];
|
|
15
6
|
}
|
|
16
7
|
interface Props {
|
|
17
8
|
icon: React.ElementType;
|
|
@@ -24,7 +15,36 @@ interface Props {
|
|
|
24
15
|
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
25
16
|
onDelete?: () => void;
|
|
26
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";
|
|
27
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
|
+
*/
|
|
28
48
|
export declare const SubPage: React.FC<Props>;
|
|
29
49
|
export {};
|
|
30
50
|
//# sourceMappingURL=sub.page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -17,6 +17,19 @@ interface Props {
|
|
|
17
17
|
setOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
18
|
children?: React.ReactNode;
|
|
19
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
|
+
*/
|
|
20
33
|
export declare const SubPageHeader: React.FC<Props> & {
|
|
21
34
|
Action: React.FC<ActionProps>;
|
|
22
35
|
};
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAW1B,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;AAmGD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa;;CAExB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startup-first.d.ts","sourceRoot":"","sources":["../../../src/components/startup-first/startup-first.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG9F,OAAO,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"startup-first.d.ts","sourceRoot":"","sources":["../../../src/components/startup-first/startup-first.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG9F,OAAO,qBAAqB,CAAC;AAwD7B,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EACtD,EAAE,QAAQ,CAAC,qBAAqB,CAAC,+BAqBjC;AAED,2DAA2D;AAC3D,iBAAS,sBAAsB,CAC7B,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,uBAAuB,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC,+BAItE;AAED,uDAAuD;AACvD,iBAAS,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,+BAMtG;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5E,kDAAkD;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;CACf;AACD,2DAA2D;AAC3D,iBAAS,iBAAiB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,sBAAsB,CAAC,+BAoBlG;AAED,UAAU,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AACD,4CAA4C;AAC5C,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAS,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,qBAAqB,CAAC,+BAazH;AAED,0CAA0C;AAC1C,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,+BAWxG;AAED,2EAA2E;AAC3E,iBAAS,uBAAuB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,+BAQhH;AAED,8DAA8D;AAC9D,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,+BAMnG;AAED,wDAAwD;AACxD,iBAAS,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,+BAMtG;AAED,gEAAgE;AAChE,iBAAS,kBAAkB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,+BAQ3G;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AACD,kDAAkD;AAClD,iBAAS,gBAAgB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,qBAAqB,CAAC,+BAUhG;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;CAWvB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';
|
|
1
2
|
type Theme = "dark" | "light" | "system";
|
|
2
|
-
type ThemeProviderProps = {
|
|
3
|
+
type ThemeProviderProps = Omit<NextThemesProviderProps, "defaultTheme"> & {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
defaultTheme?: Theme;
|
|
5
6
|
storageKey?: string;
|
|
@@ -8,7 +9,41 @@ type ThemeProviderState = {
|
|
|
8
9
|
theme: Theme;
|
|
9
10
|
setTheme: (theme: Theme) => void;
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The console's theme source, and now the only one.
|
|
14
|
+
*
|
|
15
|
+
* VDS72 — this used to hold its own state, seeded by reading `localStorage`
|
|
16
|
+
* inside a `useState` initialiser. That callback runs during render, so on a
|
|
17
|
+
* server render there is no `localStorage` and the provider threw: a
|
|
18
|
+
* React Server Components consumer failed on the first hook, and one product
|
|
19
|
+
* worked around it by not mounting this provider at all.
|
|
20
|
+
*
|
|
21
|
+
* It was also a second source. The package's own `Toaster` reads `useTheme`
|
|
22
|
+
* from `next-themes`, which is a declared peer dependency, so a consumer
|
|
23
|
+
* mounting both ran two theme systems writing the class from two storage keys
|
|
24
|
+
* and agreeing only by luck.
|
|
25
|
+
*
|
|
26
|
+
* Both are one problem, so this is a thin wrapper over `next-themes` rather
|
|
27
|
+
* than a patched initialiser: one source of truth, SSR-safe because
|
|
28
|
+
* `next-themes` reads storage in an effect and injects a blocking script for
|
|
29
|
+
* the first paint. The props and the `vite-ui-theme` storage key are the ones
|
|
30
|
+
* this package already published, and `useTheme` keeps its shape, because
|
|
31
|
+
* three consoles import it.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: Readonly<ThemeProviderProps>): import("react").JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* The shape three consoles import: `{ theme, setTheme }`, where `theme` is the
|
|
36
|
+
* setting rather than the resolved colour — "system" stays "system".
|
|
37
|
+
*
|
|
38
|
+
* `next-themes` reports `theme` as `undefined` until it has read storage on the
|
|
39
|
+
* client, and as a plain `string` because a consumer may define its own theme
|
|
40
|
+
* names. Neither is true of this package's contract, so both are narrowed here
|
|
41
|
+
* rather than at every call site.
|
|
42
|
+
*
|
|
43
|
+
* Works with no `ThemeProvider` of ours in the tree, which is deliberate: a
|
|
44
|
+
* consumer that lets `next-themes` own the class mounts its provider directly,
|
|
45
|
+
* and this hook reads that one.
|
|
46
|
+
*/
|
|
12
47
|
export declare const useTheme: () => ThemeProviderState;
|
|
13
48
|
export {};
|
|
14
49
|
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../src/components/theme-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../src/components/theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,IAAI,uBAAuB,EACnD,MAAM,aAAa,CAAA;AAEpB,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAExC,KAAK,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,cAAc,CAAC,GAAG;IACxE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,YAAY,CAAC,EAAE,KAAK,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CACjC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,YAAuB,EACvB,UAA4B,EAC5B,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,kBAAkB,CAAC,+BAe9B;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,QAAO,kBAO3B,CAAA"}
|
|
@@ -6,6 +6,13 @@ export interface FloatingFormulasBgProps {
|
|
|
6
6
|
* mix into the formula pool. Tokenized on whitespace/`-`/`_`.
|
|
7
7
|
*/
|
|
8
8
|
extraTokens?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Fixes the arrangement. Omitted, it is derived from the formula pool, so the
|
|
11
|
+
* same props always lay out the same way — which is what lets a snapshot or a
|
|
12
|
+
* visual check hold this component. Pass a changing value (`Date.now()`) for a
|
|
13
|
+
* fresh arrangement per visit.
|
|
14
|
+
*/
|
|
15
|
+
seed?: number;
|
|
9
16
|
/** Accent color for formulas / bonds / orbs / lightning. Defaults to Turing blue. */
|
|
10
17
|
color?: string;
|
|
11
18
|
/** Accent color in dark mode. Defaults to Turing dark blue. */
|
|
@@ -32,5 +39,5 @@ export interface FloatingFormulasBgProps {
|
|
|
32
39
|
/** Additional CSS classes applied to the root container. */
|
|
33
40
|
className?: string;
|
|
34
41
|
}
|
|
35
|
-
export declare function FloatingFormulasBg({ itemCount, extraTokens, color, colorDark, withFormulas, withBonds, withOrbs, withLightning, withExplosion, withGrid, motionPaused, className, }: Readonly<FloatingFormulasBgProps>): import("react").JSX.Element;
|
|
42
|
+
export declare function FloatingFormulasBg({ itemCount, extraTokens, seed, color, colorDark, withFormulas, withBonds, withOrbs, withLightning, withExplosion, withGrid, motionPaused, className, }: Readonly<FloatingFormulasBgProps>): import("react").JSX.Element;
|
|
36
43
|
//# sourceMappingURL=floating-formulas-bg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-formulas-bg.d.ts","sourceRoot":"","sources":["../../../src/components/ui/floating-formulas-bg.tsx"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"floating-formulas-bg.d.ts","sourceRoot":"","sources":["../../../src/components/ui/floating-formulas-bg.tsx"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAC;AA2NpC,MAAM,WAAW,uBAAuB;IACtC,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAc,EACd,WAAW,EACX,IAAI,EACJ,KAAK,EACL,SAAS,EACT,YAAmB,EACnB,SAAgB,EAChB,QAAe,EACf,aAAqB,EACrB,aAAqB,EACrB,QAAe,EACf,YAAoB,EACpB,SAAS,GACV,EAAE,QAAQ,CAAC,uBAAuB,CAAC,+BAgHnC"}
|