@hot-updater/console 1.0.0-rc.4 → 1.0.0-rc.6
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/.output/nitro.json +1 -1
- package/.output/public/assets/api-keys-B7ST06Ka.js +1 -0
- package/.output/public/assets/api-keys-api-DES3hsJ4.js +1 -0
- package/.output/public/assets/{badge-BuMDU0Rf.js → badge-EeOoNiqh.js} +1 -1
- package/.output/public/assets/card-C_X4GIlF.js +1 -0
- package/.output/public/assets/{chart-no-axes-combined-C0G0fQ3J.js → chart-no-axes-combined-nSa3OEl6.js} +1 -1
- package/.output/public/assets/{createServerFn-DHc2erub.js → createServerFn-D8qEPlP8.js} +1 -1
- package/.output/public/assets/dialog-D00iBhL0.js +1 -0
- package/.output/public/assets/{dist-Bh1gaDfB.js → dist-xZVNEbOu.js} +1 -1
- package/.output/public/assets/field-CO1jp81G.js +1 -0
- package/.output/public/assets/index-DE1_xVkn.js +10 -0
- package/.output/public/assets/input-group-SjCPYBW9.js +1 -0
- package/.output/public/assets/insights-api-D_K5SUP4.js +1 -0
- package/.output/public/assets/insights-rQIzm_oS.js +1 -0
- package/.output/public/assets/{installations-DvjbUqd1.js → installations-CgnjlXje.js} +2 -2
- package/.output/public/assets/installations-D_kFnI66.js +1 -0
- package/.output/public/assets/{lazyRouteComponent-BN0MS05o.js → lazyRouteComponent-CCIDe0Lh.js} +1 -1
- package/.output/public/assets/{link-BG06whwB.js → link-Be4uZttD.js} +1 -1
- package/.output/public/assets/list-BvmBmuqF.js +1 -0
- package/.output/public/assets/{loader-circle-Bbp8LGVC.js → loader-circle-B2i8_N8g.js} +1 -1
- package/.output/public/assets/{refresh-cw-DZgiAOMk.js → refresh-cw-8miVsYu7.js} +1 -1
- package/.output/public/assets/routes-CysnwyF_.js +1 -0
- package/.output/public/assets/{routes-DaPMY31P.js → routes-mObViGNP.js} +2 -2
- package/.output/public/assets/select-UlCdBpYY.js +42 -0
- package/.output/public/assets/{shield-check-DoIiaaXU.js → shield-check-CRsh7gIU.js} +1 -1
- package/.output/public/assets/{signing-BTRhaF5D.js → signing-De0pVD-2.js} +1 -1
- package/.output/public/assets/styles-CG7DPL5T.css +2 -0
- package/.output/public/assets/table-CKRmsojH.js +1 -0
- package/.output/public/assets/useOpenInteractionType-BqjXLUzB.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-Dr2ixDgQ.mjs → __23tanstack-start-server-fn-resolver-CrJZcTjM.mjs} +34 -34
- package/.output/server/_libs/@base-ui/react+[...].mjs +1763 -1381
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +2 -24
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/{api-keys-DJml_XoK.mjs → api-keys-2UQPavK5.mjs} +10 -10
- package/.output/server/_ssr/{api-keys-api-CrCZyvnl.mjs → api-keys-api-Dde8YRj8.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CFaNf-q0.mjs → api-keys-rpc-BSuCGin-.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-B61KL3Eo.mjs → api-rpc-CN8c0M7A.mjs} +21 -21
- package/.output/server/_ssr/{auth-rpc-D_hv52-J.mjs → auth-rpc-BuNx0I-5.mjs} +2 -2
- package/.output/server/_ssr/{badge-BgsCP9Dp.mjs → badge-CycQlHMf.mjs} +3 -3
- package/.output/server/_ssr/{bundle-signing-rpc-BBipZnFs.mjs → bundle-signing-rpc-CNO_vmUy.mjs} +2 -2
- package/.output/server/_ssr/{bundleActivity-D3_fIda2.mjs → bundleActivity-BVQLgAhG.mjs} +2 -2
- package/.output/server/_ssr/{card-DrbxCPtG.mjs → card-Bpx8rIBK.mjs} +3 -3
- package/.output/server/_ssr/{config.server-CBr6PDj5.mjs → config.server-DD2gVbcQ.mjs} +5 -5
- package/.output/server/_ssr/{createSsrRpc-NHF2PxuK.mjs → createSsrRpc-BRyKMNRx.mjs} +3 -3
- package/.output/server/_ssr/{dialog-DUaIgpgd.mjs → dialog-DVzq5bLf.mjs} +2 -2
- package/.output/server/_ssr/{field-CqNUlqUq.mjs → field-2JE26naz.mjs} +3 -3
- package/.output/server/_ssr/{input-group-Bb8ueylQ.mjs → input-group-DYWFPLD4.mjs} +2 -2
- package/.output/server/_ssr/insights-EmmXtSpv.mjs +547 -0
- package/.output/server/_ssr/insights-api-D7Jxk8Bo.mjs +135 -0
- package/.output/server/_ssr/{insights-recovery-rpc-P71FH66n.mjs → insights-recovery-rpc-CbTmZ1VK.mjs} +3 -3
- package/.output/server/_ssr/{insights-rpc-DrIQCjpD.mjs → insights-rpc-ib7jyh5A.mjs} +2 -2
- package/.output/server/_ssr/{insightsContract-fjJDBeEE.mjs → insightsContract-B09K_Px1.mjs} +5 -5
- package/.output/server/_ssr/{insightsRecovery-CqcosG7B.mjs → insightsRecovery-CQiWK_5g.mjs} +11 -11
- package/.output/server/_ssr/{installations-YumqpNpa.mjs → installations-Co69spqF.mjs} +35 -97
- package/.output/server/_ssr/{installations-BQrppti7.mjs → installations-DSZZ2iFW.mjs} +2 -2
- package/.output/server/_ssr/{router-iP95Vqi2.mjs → router-BZ3ihV4N.mjs} +12 -12
- package/.output/server/_ssr/{routes-BDabsmc7.mjs → routes-FYW1gPsw.mjs} +2 -2
- package/.output/server/_ssr/{routes-ivsV2TDu.mjs → routes-M-fWPky0.mjs} +38 -103
- package/.output/server/_ssr/{runtime.server-jmZOKIQM.mjs → runtime.server-DRbG_Cmf.mjs} +9 -11
- package/.output/server/_ssr/{chart-qxa-_30a.mjs → select-BPL6i4NH.mjs} +80 -4
- package/.output/server/_ssr/{server-p7yrVBfD.mjs → server-CBfhv3Mw.mjs} +4 -4
- package/.output/server/_ssr/{signing-CxCbnFCt.mjs → signing-begffzW-.mjs} +6 -6
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{table-D1mL8fJu.mjs → table-CezCSfXa.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-CaEH9ZyL.mjs +103 -0
- package/.output/server/index.mjs +157 -150
- package/package.json +5 -5
- package/src/components/features/bundles/BundleActivityChart.tsx +4 -2
- package/src/components/features/bundles/BundleInsightsSummary.tsx +14 -9
- package/src/components/features/insights/EventDetails.tsx +29 -32
- package/src/components/features/insights/EventHistoryCard.tsx +2 -2
- package/src/components/features/insights/EventHistoryList.tsx +2 -2
- package/src/components/features/insights/InsightsControls.tsx +57 -82
- package/src/components/features/insights/InsightsOverview.tsx +342 -274
- package/src/components/features/insights/InsightsPageHeader.tsx +19 -13
- package/src/components/features/insights/InstallationHistoryCard.tsx +2 -2
- package/src/components/features/insights/ReportingDevicesSummary.tsx +61 -0
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/tabs.tsx +81 -0
- package/src/lib/insights-recovery.ts +2 -2
- package/src/lib/insights-view.ts +1 -1
- package/src/lib/server/insightsRecovery.ts +14 -16
- package/src/routes/insights.tsx +9 -8
- package/src/routes/installations.tsx +1 -1
- package/.output/public/assets/InsightsPageHeader-C-Xc2MB9.js +0 -1
- package/.output/public/assets/api-keys-C1sgC6ko.js +0 -1
- package/.output/public/assets/api-keys-api-LchP65vQ.js +0 -1
- package/.output/public/assets/card-BEvx_QKh.js +0 -1
- package/.output/public/assets/composite-CHTH1Xhh.js +0 -1
- package/.output/public/assets/dialog-dyZ1SphZ.js +0 -1
- package/.output/public/assets/field-79SVH26s.js +0 -1
- package/.output/public/assets/index-BNkxg4jz.js +0 -10
- package/.output/public/assets/input-group-BbHfaBzQ.js +0 -1
- package/.output/public/assets/insights-D_7uSKfc.js +0 -1
- package/.output/public/assets/installations-BzoHWuXw.js +0 -1
- package/.output/public/assets/routes-BFE-oRIT.js +0 -1
- package/.output/public/assets/styles-C7U0oVke.css +0 -2
- package/.output/public/assets/table-BBEzJ7Xl.js +0 -1
- package/.output/public/assets/useCompositeListItem-BkPDaqyj.js +0 -42
- package/.output/server/_ssr/InsightsPageHeader-C5Has8Ry.mjs +0 -60
- package/.output/server/_ssr/insights-B-DUbksX.mjs +0 -502
- package/.output/server/_tanstack-start-manifest_v-Cwpu0C9Q.mjs +0 -100
- /package/.output/public/assets/{preload-helper-uTix4PVD.js → preload-helper-C5gCWwwF.js} +0 -0
package/.output/nitro.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Cn as e,Fr as t,Mr as n,Sn as r,Xn as i,Yn as a,bn as o,m as s,nr as c}from"./createServerFn-D8qEPlP8.js";import{t as l}from"./loader-circle-B2i8_N8g.js";import{a as u,i as d,n as ee,r as f,s as p,t as m}from"./field-CO1jp81G.js";import{a as h,i as g,o as _,r as v}from"./api-keys-api-DES3hsJ4.js";import{T as te,_ as y,a as b,d as x,f as ne,g as re,h as S,i as C,l as w,m as T,n as E,o as D,p as O,r as k,t as A,u as j,v as M}from"./dialog-D00iBhL0.js";import{t as N}from"./refresh-cw-8miVsYu7.js";import{a as P,i as F,n as I,o as L,r as R,t as z}from"./table-CKRmsojH.js";import{n as B}from"./dist-xZVNEbOu.js";import{a as V,c as H,l as U,n as W,o as G,s as K,t as q,u as J}from"./card-C_X4GIlF.js";import{t as Y}from"./badge-EeOoNiqh.js";var X=i(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),Z=i(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Q=t(n(),1),$=c(),ie=e=>new Date(e).toISOString().slice(0,10);function ae(){let[t,n]=(0,Q.useState)(!1),[i,a]=(0,Q.useState)(``),[o,s]=(0,Q.useState)(null),c=g(),h=i.trim(),v=h.length>64?`Name must be 64 characters or fewer.`:null,y=()=>{a(``),s(null),c.reset()},x=e=>{n(e),e||y()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(e,{onClick:()=>n(!0),children:[(0,$.jsx)(te,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(A,{open:t,onOpenChange:x,children:(0,$.jsxs)(E,{showCloseButton:o===null,children:[(0,$.jsxs)(b,{children:[(0,$.jsx)(D,{children:o===null?`Create API key`:`Save your API key`}),(0,$.jsx)(k,{children:o===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),o===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(h.length===0||v!==null))try{s((await c.mutateAsync(h)).apiKey),B.success(`API key created`)}catch(e){B.error(e instanceof Error?e.message:`Unable to create API key`)}},children:[(0,$.jsx)(d,{children:(0,$.jsxs)(m,{"data-invalid":v!==null||void 0,children:[(0,$.jsx)(u,{htmlFor:`api-key-name`,children:`Name`}),(0,$.jsx)(r,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>a(e.target.value),placeholder:`Production app`,value:i}),(0,$.jsx)(ee,{children:`Use a name you can identify before revoking the key.`}),(0,$.jsx)(f,{children:v})]})}),(0,$.jsx)(C,{className:`mt-4`,children:(0,$.jsxs)(e,{disabled:c.isPending||h.length===0||v!==null,type:`submit`,children:[c.isPending?(0,$.jsx)(l,{"data-icon":`inline-start`,className:`animate-spin`}):(0,$.jsx)(_,{"data-icon":`inline-start`}),`Create API key`]})})]}):(0,$.jsxs)(d,{children:[(0,$.jsxs)(m,{children:[(0,$.jsx)(u,{htmlFor:`created-api-key`,children:`API key`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(r,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:o}),(0,$.jsxs)(e,{onClick:async()=>{if(o!==null)try{await navigator.clipboard.writeText(o),B.success(`API key copied`)}catch{B.error(`Unable to copy API key`)}},type:`button`,variant:`outline`,children:[(0,$.jsx)(X,{"data-icon":`inline-start`}),`Copy`]})]})]}),(0,$.jsx)(C,{children:(0,$.jsxs)(e,{onClick:()=>x(!1),children:[(0,$.jsx)(p,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function oe({record:t}){let[n,r]=(0,Q.useState)(!1),i=h(),a=async e=>{e.preventDefault();try{await i.mutateAsync(t.id),r(!1),B.success(`API key revoked`)}catch(e){B.error(e instanceof Error?e.message:`Unable to revoke API key`)}};return(0,$.jsxs)(w,{open:n,onOpenChange:e=>{i.isPending||r(e)},children:[(0,$.jsxs)(M,{render:(0,$.jsx)(e,{size:`sm`,variant:`ghost`}),children:[(0,$.jsx)(Z,{"data-icon":`inline-start`}),`Revoke`]}),(0,$.jsxs)(ne,{children:[(0,$.jsxs)(S,{children:[(0,$.jsx)(re,{children:(0,$.jsx)(Z,{})}),(0,$.jsxs)(y,{children:[`Revoke `,t.name,`?`]}),(0,$.jsxs)(O,{children:[`Apps using `,t.prefix,`… will immediately lose OTA update and insights access. This action cannot be undone.`]})]}),(0,$.jsxs)(T,{children:[(0,$.jsx)(x,{disabled:i.isPending,children:`Cancel`}),(0,$.jsx)(j,{disabled:i.isPending,onClick:e=>void a(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function se(){let t=v();return(0,$.jsxs)(q,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(V,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(G,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(ae,{})]}),(0,$.jsx)(W,{className:`p-0`,children:t.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(K,{variant:`destructive`,children:[(0,$.jsx)(a,{}),(0,$.jsx)(J,{children:`API keys couldn't be loaded`}),(0,$.jsx)(U,{children:`Check your connection and try again.`}),(0,$.jsx)(H,{children:(0,$.jsxs)(e,{onClick:()=>void t.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(N,{"data-icon":`inline-start`}),`Retry`]})})]})}):(0,$.jsxs)(z,{"aria-label":`API keys`,className:`table-fixed`,children:[(0,$.jsx)(P,{children:(0,$.jsxs)(L,{children:[(0,$.jsx)(F,{children:`Key`}),(0,$.jsx)(F,{className:`w-32`,children:`Created`}),(0,$.jsx)(F,{className:`w-24 text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(I,{children:t.isLoading?Array.from({length:3},(e,t)=>(0,$.jsxs)(L,{children:[(0,$.jsxs)(R,{className:`space-y-2 py-3`,children:[t===0?(0,$.jsx)(`span`,{className:`sr-only`,children:`Loading API keys`}):null,(0,$.jsx)(o,{className:`h-3.5 w-32`}),(0,$.jsx)(o,{className:`h-3 w-20`})]}),(0,$.jsx)(R,{children:(0,$.jsx)(o,{className:`h-3.5 w-20`})}),(0,$.jsx)(R,{children:(0,$.jsx)(o,{className:`ml-auto h-6 w-16`})})]},t)):t.data?.length===0?(0,$.jsx)(L,{children:(0,$.jsx)(R,{colSpan:3,className:`h-40 text-center text-muted-foreground`,children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-xs flex-col items-center gap-2`,children:[(0,$.jsx)(_,{className:`size-5`}),(0,$.jsx)(`p`,{className:`font-medium text-foreground`,children:`No API keys`}),(0,$.jsx)(`p`,{children:`Create an API key to connect an app.`})]})})}):t.data?.map(e=>(0,$.jsxs)(L,{className:e.revoked_at_ms===null?void 0:`text-muted-foreground`,children:[(0,$.jsx)(R,{className:`whitespace-normal py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`p`,{className:`break-words font-medium text-foreground`,children:e.name}),(0,$.jsxs)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:[e.prefix,`…`]})]})}),(0,$.jsx)(R,{className:`text-xs text-muted-foreground`,children:(0,$.jsx)(`time`,{dateTime:new Date(e.created_at_ms).toISOString(),children:ie(e.created_at_ms)})}),(0,$.jsx)(R,{className:`text-right`,children:e.revoked_at_ms===null?(0,$.jsx)(oe,{record:e}):(0,$.jsx)(Y,{variant:`outline`,children:`Revoked`})})]},e.id))})]})})]})}function ce(){return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,$.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,$.jsx)(s,{className:`-ml-1`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(_,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`API keys`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`API keys can download OTA updates and submit insights only.`})]}),(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,$.jsx)(se,{})})})]})}export{ce as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$n as e,Sr as t,Tr as n,Xn as r,t as i,tr as a}from"./createServerFn-D8qEPlP8.js";import{n as o}from"./loader-circle-B2i8_N8g.js";var s=r(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),c=i({method:`GET`}).handler(t(`29665ce3a33cde2eb2ee082694288db269438f62f3a4d0a005dec3256e0f15c1`)),l=i({method:`GET`}).handler(t(`2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b`)),u=i({method:`POST`}).handler(t(`68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b`)),d=i({method:`POST`}).handler(t(`a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795`)),f={capability:[`api-keys`,`capability`],list:[`api-keys`,`list`]},p=()=>({queryKey:f.capability,queryFn:()=>c(),staleTime:1/0}),m=()=>e(p()),h=async e=>{if(!(await e.ensureQueryData(p())).apiKeys)throw n({to:`/`,search:{},replace:!0})},g=()=>e({queryKey:f.list,queryFn:()=>l()}),_=()=>{let e=a();return o({mutationFn:e=>u({data:{name:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:f.list})}})},v=()=>{let e=a();return o({mutationFn:e=>d({data:{id:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:f.list})}})};export{v as a,_ as i,m as n,s as o,g as r,h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Jn as e,Ln as t,Tn as n,zn as r}from"./createServerFn-D8qEPlP8.js";var i=t(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,success:`border-success/20 bg-success/10 text-success`,warning:`border-warning/20 bg-warning/10 text-warning`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function a({className:t,variant:a=`default`,render:o,...s}){return r({defaultTagName:`span`,props:e({className:n(i({variant:a}),t)},s),render:o,state:{slot:`badge`,variant:a}})}export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ln as e,Mr as t,Tn as n,nr as r}from"./createServerFn-D8qEPlP8.js";t();var i=r(),a=e(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function o({className:e,variant:t,...r}){return(0,i.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:n(a({variant:t}),e),...r})}function s({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`alert-title`,className:n(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,e),...t})}function c({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`alert-description`,className:n(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,e),...t})}function l({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`alert-action`,className:n(`absolute top-1.5 right-2`,e),...t})}function u({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card`,className:n(`rounded-xl border bg-card text-card-foreground shadow`,e),...t})}function d({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-header`,className:n(`flex flex-col gap-1.5 p-6`,e),...t})}function f({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-title`,className:n(`font-semibold leading-none tracking-tight`,e),...t})}function p({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-description`,className:n(`text-sm text-muted-foreground`,e),...t})}function m({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-content`,className:n(`p-6 pt-0`,e),...t})}function h({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-footer`,className:n(`flex items-center p-6 pt-0`,e),...t})}export{d as a,l as c,h as i,c as l,m as n,f as o,p as r,o as s,u as t,s as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Xn as e}from"./createServerFn-D8qEPlP8.js";var t=e(`chart-no-axes-combined`,[[`path`,{d:`M12 16v5`,key:`zza2cw`}],[`path`,{d:`M16 14v7`,key:`1g90b9`}],[`path`,{d:`M20 10v11`,key:`1iqoj0`}],[`path`,{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`,key:`1fw8x9`}],[`path`,{d:`M4 18v3`,key:`1yp0dc`}],[`path`,{d:`M8 14v7`,key:`n3cwzv`}]]);export{t};
|