@coreframe/dashboard 0.3.26 → 0.3.28

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 CHANGED
@@ -25,8 +25,9 @@ export default defineConfig({
25
25
  Removing `diagnostics()` removes the feature's root navigation entry and its runtime operations.
26
26
  Plugins are never discovered or installed at runtime.
27
27
 
28
- Add app-owned routes at `dashboard/pages/<slug>/route.tsx`. An optional adjacent `page.yaml` may
29
- define `title` and `description`. Build-time composition validates slugs, metadata, route modules,
28
+ Add app-owned routes at `dashboard/pages/<slug>/route.tsx`. An adjacent `page.yaml` must define `icon` as a Codicon name (for example,
29
+ `icon: settings-gear`) and may define `title` and `description`. Plugin navigation also requires
30
+ `icon`. The sidebar uses the application package name and `src/assets/favicon.svg`. Build-time composition validates slugs, metadata, route modules,
30
31
  identifiers, and paths before generating the React Router route graph and navigation manifest.
31
32
 
32
33
  The generated dashboard does not need route adapters, a document root, a query-client module, or an
@@ -1 +1 @@
1
- import{DashboardErrorBoundary as e,DashboardShell as t}from"../web-shell/shell.js";import"../web-shell/index.js";import{jsx as n}from"react/jsx-runtime";import{dashboardManifest as r}from"virtual:coreframe-internal/dashboard/manifest";const i=e;function a(){return n(t,{pages:r})}export{i as ErrorBoundary,a as default};
1
+ import{DashboardErrorBoundary as e,DashboardShell as t}from"../web-shell/shell.js";import"../web-shell/index.js";import{jsx as n}from"react/jsx-runtime";import{dashboardApplication as r,dashboardManifest as i}from"virtual:coreframe-internal/dashboard/manifest";const a=e;function o(){return n(t,{pages:i,application:r})}export{a as ErrorBoundary,o as default};
@@ -1,3 +1,3 @@
1
- import{getDashboardPluginBuild as e}from"./config.js";import{createRequire as t}from"node:module";import{readFile as n,readdir as r}from"node:fs/promises";import{isAbsolute as i,join as a,resolve as o}from"node:path";import{parseDocument as s}from"yaml";import{z as c}from"zod";const l=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,u=c.object({title:c.string().trim().min(1,`title must not be empty`).optional(),description:c.string().trim().min(1,`description must not be empty`).optional()}).strict(),d=c.object({id:c.string(),path:c.string(),title:c.string(),description:c.string().optional(),routeModule:c.string(),environments:c.array(c.enum([`local`,`deployed`])).optional()}).strict(),f=c.string().trim().min(1,`module reference must not be empty`),p=c.object({path:c.string(),title:c.string(),description:c.string().optional(),environments:c.array(c.enum([`local`,`deployed`])).optional()}).strict(),m=c.object({document:f.optional(),plugins:c.array(c.object({id:c.string(),navigation:p,pageModule:f,api:c.unknown().optional()}).strict()).optional()}).strict();async function h(e={}){let t=a(o(e.dashboardDirectory??a(process.cwd(),`dashboard`)),`pages`),i;try{i=await r(t,{withFileTypes:!0})}catch(e){if(N(e)&&e.code===`ENOENT`)return[];throw new S(t,`could not read the pages directory`,e)}let s=i.filter(e=>e.isDirectory()&&!e.name.startsWith(`.`)).sort((e,t)=>M(e.name,t.name));return Promise.all(s.map(async({name:e})=>{let r=a(t,e);A(e,r,`page directory`);let i=a(r,`route.tsx`);try{await n(i)}catch(e){throw N(e)&&e.code===`ENOENT`?new S(i,`missing required React Router route.tsx`):new S(i,`could not read route.tsx`,e)}let o=await C(a(r,`page.yaml`));return{id:e,path:e,title:o?.title??j(e),...o?.description?{description:o.description}:{},routeModule:`pages/${e}/route.tsx`}}))}function g(e,t,n={}){let r=n.environment??`local`,i=new Set,a=[],o=O(e);for(let e of o.plugins??[]){if(A(e.id,`dashboard.config.ts plugin "${e.id}"`,`plugin id`),i.has(e.id))throw new S(`dashboard.config.ts`,`duplicate plugin id "${e.id}"`);i.add(e.id);let t=T(e,`plugin`,r);t&&a.push(t)}let s=t.map(e=>({page:e,normalizedPage:w(e,`app`)})).sort((e,t)=>M(e.normalizedPage.path,t.normalizedPage.path));for(let{page:e,normalizedPage:t}of s)D(e,r)&&a.push(t);return E(a),a}function _(e,t){let n=O(e),r=new Set,i=[];for(let e of n.plugins??[]){if(A(e.id,`dashboard.config.ts plugin "${e.id}"`,`plugin id`),r.has(e.id))throw new S(`dashboard.config.ts`,`duplicate plugin id "${e.id}"`);if(r.add(e.id),!e.api)continue;let n=k(e,`dashboard API`),a=t===`local`?n.localImplementationModule:n.deployedImplementationModule;a&&i.push({pluginId:e.id,apiModule:n.apiModule,implementationModule:a})}return i}function v(e){let t=[],n=[];for(let[r,i]of e.entries())t.push(`import { api as api${r} } from ${JSON.stringify(i.apiModule)}`,`import { createImplementation as createImplementation${r} } from ${JSON.stringify(i.implementationModule)}`),n.push(`{ api: api${r}, createImplementation: createImplementation${r} }`);return`${t.join(`
1
+ import{getDashboardPluginBuild as e}from"./config.js";import{createRequire as t}from"node:module";import{readFile as n,readdir as r}from"node:fs/promises";import{isAbsolute as i,join as a,resolve as o}from"node:path";import{icons as s}from"@iconify-json/codicon";import{parseDocument as c}from"yaml";import{z as l}from"zod";const u=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,d=l.string().refine(e=>Object.hasOwn(s.icons,e),`must be a valid Codicon name`),f=l.object({icon:d,title:l.string().trim().min(1,`title must not be empty`).optional(),description:l.string().trim().min(1,`description must not be empty`).optional()}).strict(),p=l.object({id:l.string(),path:l.string(),icon:d,title:l.string(),description:l.string().optional(),routeModule:l.string(),environments:l.array(l.enum([`local`,`deployed`])).optional()}).strict(),m=l.string().trim().min(1,`module reference must not be empty`),h=l.object({path:l.string(),icon:d,title:l.string(),description:l.string().optional(),environments:l.array(l.enum([`local`,`deployed`])).optional()}).strict(),g=l.object({document:m.optional(),plugins:l.array(l.object({id:l.string(),navigation:h,pageModule:m,api:l.unknown().optional()}).strict()).optional()}).strict();async function _(e={}){let t=a(o(e.dashboardDirectory??a(process.cwd(),`dashboard`)),`pages`),i;try{i=await r(t,{withFileTypes:!0})}catch(e){if(F(e)&&e.code===`ENOENT`)return[];throw new w(t,`could not read the pages directory`,e)}let s=i.filter(e=>e.isDirectory()&&!e.name.startsWith(`.`)).sort((e,t)=>P(e.name,t.name));return Promise.all(s.map(async({name:e})=>{let r=a(t,e);M(e,r,`page directory`);let i=a(r,`route.tsx`);try{await n(i)}catch(e){throw F(e)&&e.code===`ENOENT`?new w(i,`missing required React Router route.tsx`):new w(i,`could not read route.tsx`,e)}let o=await T(a(r,`page.yaml`));return{id:e,path:e,icon:o.icon,title:o?.title??N(e),...o?.description?{description:o.description}:{},routeModule:`pages/${e}/route.tsx`}}))}function v(e,t,n={}){let r=n.environment??`local`,i=new Set,a=[],o=A(e);for(let e of o.plugins??[]){if(M(e.id,`dashboard.config.ts plugin "${e.id}"`,`plugin id`),i.has(e.id))throw new w(`dashboard.config.ts`,`duplicate plugin id "${e.id}"`);i.add(e.id);let t=D(e,`plugin`,r);t&&a.push(t)}let s=t.map(e=>({page:e,normalizedPage:E(e,`app`)})).sort((e,t)=>P(e.normalizedPage.path,t.normalizedPage.path));for(let{page:e,normalizedPage:t}of s)k(e,r)&&a.push(t);return O(a),a}function y(e,t){let n=A(e),r=new Set,i=[];for(let e of n.plugins??[]){if(M(e.id,`dashboard.config.ts plugin "${e.id}"`,`plugin id`),r.has(e.id))throw new w(`dashboard.config.ts`,`duplicate plugin id "${e.id}"`);if(r.add(e.id),!e.api)continue;let n=j(e,`dashboard API`),a=t===`local`?n.localImplementationModule:n.deployedImplementationModule;a&&i.push({pluginId:e.id,apiModule:n.apiModule,implementationModule:a})}return i}function b(e){let t=[],n=[];for(let[r,i]of e.entries())t.push(`import { api as api${r} } from ${JSON.stringify(i.apiModule)}`,`import { createImplementation as createImplementation${r} } from ${JSON.stringify(i.implementationModule)}`),n.push(`{ api: api${r}, createImplementation: createImplementation${r} }`);return`${t.join(`
2
2
  `)}\n\nexport const dashboardPlugins = [\n${n.map(e=>` ${e},`).join(`
3
- `)}\n]\n`}function y(e,t){let n=[e.length>0?{index:!0,file:t.indexRoute}:{index:!0,file:t.emptyRoute},...e.map(e=>({id:`dashboard-page-${e.id}`,path:e.path,file:e.routeModule})),...t.notFoundRoute?[{path:`*`,file:t.notFoundRoute}]:[]];return[{id:`dashboard-shell`,file:t.shellRoute,children:n}]}function b(e,t={}){let n=o(t.dashboardDirectory??a(process.cwd(),`dashboard`));return e.map(e=>({...e,routeModule:e.source===`app`?o(n,e.routeModule):x(e.routeModule,t)}))}function x(e,n={}){let r=o(n.dashboardDirectory??a(process.cwd(),`dashboard`)),s=t(a(o(n.projectRoot??a(r,`..`)),`package.json`));if(i(e)||e.startsWith(`.`))return o(r,e);try{return s.resolve(e)}catch(t){throw new S(e,`could not resolve dashboard module`,t)}}var S=class extends Error{file;constructor(e,t,n){super(`${e}: ${t}`,{cause:n}),this.name=`DashboardCompositionError`,this.file=e}};async function C(e){let t;try{t=await n(e,`utf8`)}catch(t){if(N(t)&&t.code===`ENOENT`)return;throw new S(e,`could not read page metadata`,t)}let r=s(t,{prettyErrors:!0,strict:!0,uniqueKeys:!0});if(r.errors.length>0)throw new S(e,r.errors[0]?.message??`invalid YAML`);let i=u.safeParse(r.toJS());if(!i.success)throw new S(e,c.prettifyError(i.error));return i.data}function w(e,t,n){let r=t===`plugin`?`dashboard.config.ts plugin "${n??`unknown`}" page "${e.id}"`:e.routeModule,i=d.safeParse(e);if(!i.success)throw new S(r,c.prettifyError(i.error));let a=i.data;A(a.id,r,`page id`),A(a.path,r,`page path`);let o=a.title.trim();if(!o)throw new S(r,`page title must not be empty`);if(!a.routeModule.trim())throw new S(r,`page routeModule must not be empty`);let s=a.description?.trim();if(a.description!==void 0&&!s)throw new S(r,`page description must not be empty`);return{id:a.id,path:a.path,title:o,...s?{description:s}:{},routeModule:a.routeModule,source:t,...n?{pluginId:n}:{}}}function T(e,t,n){let r=`dashboard.config.ts plugin "${e.id}"`,i=p.safeParse(e.navigation);if(!i.success)throw new S(r,c.prettifyError(i.error));let a=i.data;if(A(e.id,r,`plugin id`),A(a.path,r,`navigation path`),!a.title.trim())throw new S(r,`navigation title must not be empty`);if(a.description!==void 0&&!a.description.trim())throw new S(r,`navigation description must not be empty`);if(!e.pageModule.trim())throw new S(r,`pageModule must not be empty`);if(!(a.environments&&!a.environments.includes(n))){if(e.api){let t=k(e,`dashboard API`);if(n===`local`&&!t.localImplementationModule||n===`deployed`&&!t.deployedImplementationModule)return}return w({id:e.id,path:a.path,title:a.title,...a.description?{description:a.description}:{},routeModule:e.pageModule,...a.environments?{environments:a.environments}:{}},t,e.id)}}function E(e){let t=new Map,n=new Map;for(let r of e){let e=t.get(r.id);if(e)throw new S(r.routeModule,`duplicate page id "${r.id}" also contributed by ${e.routeModule}`);t.set(r.id,r);let i=n.get(r.path);if(i)throw new S(r.routeModule,`duplicate page path "${r.path}" also contributed by ${i.routeModule}`);n.set(r.path,r)}}function D(e,t){return e.environments?e.environments.includes(t):!0}function O(e){let t=m.safeParse(e);if(!t.success)throw new S(`dashboard.config.ts`,c.prettifyError(t.error));return e}function k(t,n){let r=e(t);if(!r)throw new S(`dashboard.config.ts plugin "${t.id}"`,`${n} is missing its package-owned build descriptor`);if(t.api&&t.api.id!==t.id)throw new S(`dashboard.config.ts plugin "${t.id}"`,`API id "${t.api.id}" does not match the plugin id`);for(let e of[`apiModule`,`localImplementationModule`]){let n=r[e];if(typeof n!=`string`||!n.trim())throw new S(`dashboard.config.ts plugin "${t.id}"`,`build descriptor field "${e}" must be a non-empty module reference`)}if(r.deployedImplementationModule!==void 0&&(typeof r.deployedImplementationModule!=`string`||!r.deployedImplementationModule.trim()))throw new S(`dashboard.config.ts plugin "${t.id}"`,`build descriptor field "deployedImplementationModule" must be a non-empty module reference`);return r}function A(e,t,n){if(!l.test(e))throw new S(t,`${n} "${e}" must contain only lowercase letters, numbers, and single hyphens`)}function j(e){let t=e.split(`-`).join(` `);return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function M(e,t){return e<t?-1:+(e>t)}function N(e){return e instanceof Error&&`code`in e}export{S as DashboardCompositionError,g as composeDashboardManifest,_ as composeDashboardPluginTarget,y as composeDashboardRoutes,h as discoverDashboardPages,v as renderDashboardPluginTargetModule,x as resolveDashboardModuleReference,b as resolveDashboardRouteModules};
3
+ `)}\n]\n`}function x(e,t){let n=[e.length>0?{index:!0,file:t.indexRoute}:{index:!0,file:t.emptyRoute},...e.map(e=>({id:`dashboard-page-${e.id}`,path:e.path,file:e.routeModule})),...t.notFoundRoute?[{path:`*`,file:t.notFoundRoute}]:[]];return[{id:`dashboard-shell`,file:t.shellRoute,children:n}]}function S(e,t={}){let n=o(t.dashboardDirectory??a(process.cwd(),`dashboard`));return e.map(e=>({...e,routeModule:e.source===`app`?o(n,e.routeModule):C(e.routeModule,t)}))}function C(e,n={}){let r=o(n.dashboardDirectory??a(process.cwd(),`dashboard`)),s=t(a(o(n.projectRoot??a(r,`..`)),`package.json`));if(i(e)||e.startsWith(`.`))return o(r,e);try{return s.resolve(e)}catch(t){throw new w(e,`could not resolve dashboard module`,t)}}var w=class extends Error{file;constructor(e,t,n){super(`${e}: ${t}`,{cause:n}),this.name=`DashboardCompositionError`,this.file=e}};async function T(e){let t;try{t=await n(e,`utf8`)}catch(t){throw F(t)&&t.code===`ENOENT`?new w(e,`missing required page.yaml with a Codicon icon`):new w(e,`could not read page metadata`,t)}let r=c(t,{prettyErrors:!0,strict:!0,uniqueKeys:!0});if(r.errors.length>0)throw new w(e,r.errors[0]?.message??`invalid YAML`);let i=f.safeParse(r.toJS());if(!i.success)throw new w(e,l.prettifyError(i.error));return i.data}function E(e,t,n){let r=t===`plugin`?`dashboard.config.ts plugin "${n??`unknown`}" page "${e.id}"`:e.routeModule,i=p.safeParse(e);if(!i.success)throw new w(r,l.prettifyError(i.error));let a=i.data;M(a.id,r,`page id`),M(a.path,r,`page path`);let o=a.title.trim();if(!o)throw new w(r,`page title must not be empty`);if(!a.routeModule.trim())throw new w(r,`page routeModule must not be empty`);let s=a.description?.trim();if(a.description!==void 0&&!s)throw new w(r,`page description must not be empty`);return{id:a.id,path:a.path,title:o,icon:a.icon,...s?{description:s}:{},routeModule:a.routeModule,source:t,...n?{pluginId:n}:{}}}function D(e,t,n){let r=`dashboard.config.ts plugin "${e.id}"`,i=h.safeParse(e.navigation);if(!i.success)throw new w(r,l.prettifyError(i.error));let a=i.data;if(M(e.id,r,`plugin id`),M(a.path,r,`navigation path`),!a.title.trim())throw new w(r,`navigation title must not be empty`);if(a.description!==void 0&&!a.description.trim())throw new w(r,`navigation description must not be empty`);if(!e.pageModule.trim())throw new w(r,`pageModule must not be empty`);if(!(a.environments&&!a.environments.includes(n))){if(e.api){let t=j(e,`dashboard API`);if(n===`local`&&!t.localImplementationModule||n===`deployed`&&!t.deployedImplementationModule)return}return E({id:e.id,path:a.path,title:a.title,icon:a.icon,...a.description?{description:a.description}:{},routeModule:e.pageModule,...a.environments?{environments:a.environments}:{}},t,e.id)}}function O(e){let t=new Map,n=new Map;for(let r of e){let e=t.get(r.id);if(e)throw new w(r.routeModule,`duplicate page id "${r.id}" also contributed by ${e.routeModule}`);t.set(r.id,r);let i=n.get(r.path);if(i)throw new w(r.routeModule,`duplicate page path "${r.path}" also contributed by ${i.routeModule}`);n.set(r.path,r)}}function k(e,t){return e.environments?e.environments.includes(t):!0}function A(e){let t=g.safeParse(e);if(!t.success)throw new w(`dashboard.config.ts`,l.prettifyError(t.error));return e}function j(t,n){let r=e(t);if(!r)throw new w(`dashboard.config.ts plugin "${t.id}"`,`${n} is missing its package-owned build descriptor`);if(t.api&&t.api.id!==t.id)throw new w(`dashboard.config.ts plugin "${t.id}"`,`API id "${t.api.id}" does not match the plugin id`);for(let e of[`apiModule`,`localImplementationModule`]){let n=r[e];if(typeof n!=`string`||!n.trim())throw new w(`dashboard.config.ts plugin "${t.id}"`,`build descriptor field "${e}" must be a non-empty module reference`)}if(r.deployedImplementationModule!==void 0&&(typeof r.deployedImplementationModule!=`string`||!r.deployedImplementationModule.trim()))throw new w(`dashboard.config.ts plugin "${t.id}"`,`build descriptor field "deployedImplementationModule" must be a non-empty module reference`);return r}function M(e,t,n){if(!u.test(e))throw new w(t,`${n} "${e}" must contain only lowercase letters, numbers, and single hyphens`)}function N(e){let t=e.split(`-`).join(` `);return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function P(e,t){return e<t?-1:+(e>t)}function F(e){return e instanceof Error&&`code`in e}export{w as DashboardCompositionError,v as composeDashboardManifest,y as composeDashboardPluginTarget,x as composeDashboardRoutes,_ as discoverDashboardPages,b as renderDashboardPluginTargetModule,C as resolveDashboardModuleReference,S as resolveDashboardRouteModules};
@@ -8,6 +8,8 @@ interface DashboardPageContribution {
8
8
  /** Top-level URL segment below `/__dashboard/`. */
9
9
  path: string;
10
10
  title: string;
11
+ /** Codicon name, for example `settings-gear`. */
12
+ icon: string;
11
13
  description?: string;
12
14
  /** React Router framework route module, resolved by the dashboard build. */
13
15
  routeModule: string;
@@ -19,6 +21,8 @@ interface DashboardPluginNavigation {
19
21
  /** Top-level URL segment below `/__dashboard/`. */
20
22
  path: string;
21
23
  title: string;
24
+ /** Codicon name, for example `settings-gear`. */
25
+ icon: string;
22
26
  description?: string;
23
27
  /** Environments where the feature is available. Defaults to both. */
24
28
  environments?: readonly DashboardEnvironment[];
@@ -56,6 +60,8 @@ interface DashboardPageManifestEntry {
56
60
  id: string;
57
61
  path: string;
58
62
  title: string;
63
+ /** Codicon name, for example `settings-gear`. */
64
+ icon: string;
59
65
  description?: string;
60
66
  routeModule: string;
61
67
  source: "app" | "plugin";
@@ -5,6 +5,7 @@ declare const diagnosticsPlugin: {
5
5
  readonly id: "diagnostics";
6
6
  readonly navigation: {
7
7
  readonly path: "diagnostics";
8
+ readonly icon: "checklist";
8
9
  readonly title: "Production readiness";
9
10
  readonly description: "Review launch readiness, deployment configuration, and project health.";
10
11
  };
@@ -18,6 +19,7 @@ declare function diagnostics(): {
18
19
  readonly id: "diagnostics";
19
20
  readonly navigation: {
20
21
  readonly path: "diagnostics";
22
+ readonly icon: "checklist";
21
23
  readonly title: "Production readiness";
22
24
  readonly description: "Review launch readiness, deployment configuration, and project health.";
23
25
  };
@@ -1 +1 @@
1
- import{definePlugin as e}from"../../config.js";import{diagnosticsApi as t}from"./api/contract.js";const n=e({id:`diagnostics`,navigation:{path:`diagnostics`,title:`Production readiness`,description:`Review launch readiness, deployment configuration, and project health.`},pageModule:`@coreframe/dashboard/plugins/diagnostics/web`,api:t},{apiModule:`@coreframe/dashboard/plugins/diagnostics/api/contract`,localImplementationModule:`@coreframe/dashboard/plugins/diagnostics/api/local`,deployedImplementationModule:`@coreframe/dashboard/plugins/diagnostics/api/worker`});function r(){return n}export{r as diagnostics,n as diagnosticsPlugin};
1
+ import{definePlugin as e}from"../../config.js";import{diagnosticsApi as t}from"./api/contract.js";const n=e({id:`diagnostics`,navigation:{path:`diagnostics`,icon:`checklist`,title:`Production readiness`,description:`Review launch readiness, deployment configuration, and project health.`},pageModule:`@coreframe/dashboard/plugins/diagnostics/web`,api:t},{apiModule:`@coreframe/dashboard/plugins/diagnostics/api/contract`,localImplementationModule:`@coreframe/dashboard/plugins/diagnostics/api/local`,deployedImplementationModule:`@coreframe/dashboard/plugins/diagnostics/api/worker`});function r(){return n}export{r as diagnostics,n as diagnosticsPlugin};
@@ -195,8 +195,7 @@
195
195
  flex: 0 0 auto;
196
196
  place-items: center;
197
197
  border-radius: 0.375rem;
198
- background: var(--dashboard-foreground);
199
- color: var(--dashboard-surface);
198
+ object-fit: contain;
200
199
  font-size: 0.875rem;
201
200
  font-weight: 700;
202
201
  }
@@ -235,7 +234,7 @@
235
234
  color: var(--dashboard-foreground);
236
235
  }
237
236
 
238
- .coreframe-dashboard__navigation-initials {
237
+ .coreframe-dashboard__navigation-icon {
239
238
  display: grid;
240
239
  width: 1.5rem;
241
240
  height: 1.5rem;
@@ -248,8 +247,7 @@
248
247
  line-height: 1;
249
248
  }
250
249
 
251
- .coreframe-dashboard__navigation-link[aria-current="page"]
252
- .coreframe-dashboard__navigation-initials {
250
+ .coreframe-dashboard__navigation-link[aria-current="page"] .coreframe-dashboard__navigation-icon {
253
251
  background: color-mix(in srgb, var(--dashboard-accent) 12%, var(--dashboard-background));
254
252
  color: var(--dashboard-accent);
255
253
  }
@@ -1 +1 @@
1
- import{css as e}from"../styled-system/css/css.js";import"../../styled-css.js";var t={page:e({width:`100%`,minWidth:`0`}),topbar:e({display:`flex`,alignItems:{base:`flex-start`,md:`center`},justifyContent:`space-between`,flexDirection:{base:`column`,md:`row`},gap:`1.25rem`,padding:`0 0.25rem 1.5rem`}),brand:e({display:`flex`,alignItems:`center`,gap:`0.875rem`}),brandMark:e({display:`grid`,width:`2.625rem`,height:`2.625rem`,placeItems:`center`,borderRadius:`0.75rem`,background:`gray.900`,color:`white`,fontSize:`1rem`,fontWeight:`750`,boxShadow:`0 5px 14px rgb(32 33 38 / 0.16)`}),topbarActions:e({display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:`0.625rem`}),eyebrow:e({margin:`0 0 0.2rem`,color:`gray.600`,fontSize:`0.65rem`,fontWeight:`700`,letterSpacing:`0.1em`,textTransform:`uppercase`}),title:e({margin:`0`,fontSize:`clamp(1.5rem, 4vw, 1.875rem)`,fontWeight:`700`,letterSpacing:`-0.035em`,lineHeight:`1.05`}),button:e({border:`1px solid token(colors.gray.300)`,borderRadius:`0.625rem`,background:`white`,color:`gray.900`,padding:`0.5625rem 0.75rem`,fontWeight:`600`,boxShadow:`0 1px 2px rgb(32 33 38 / 0.05)`,transition:`border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease`,"&:hover":{borderColor:`gray.500`,boxShadow:`0 3px 8px rgb(32 33 38 / 0.08)`,transform:`translateY(-1px)`},"&:focus-visible":{outline:`3px solid rgb(91 91 214 / 0.22)`,outlineOffset:`2px`},"&:disabled":{opacity:`0.55`}}),primaryButton:e({border:`1px solid token(colors.indigo.600)`,borderRadius:`0.625rem`,background:`indigo.600`,color:`white`,padding:`0.5625rem 0.75rem`,fontWeight:`600`,boxShadow:`0 4px 10px rgb(91 91 214 / 0.2)`,transition:`filter 150ms ease, transform 150ms ease`,"&:hover:not(:disabled)":{filter:`brightness(0.94)`,transform:`translateY(-1px)`},"&:focus-visible":{outline:`3px solid rgb(91 91 214 / 0.22)`,outlineOffset:`2px`},"&:disabled":{borderColor:`gray.300`,background:`gray.100`,color:`gray.500`,boxShadow:`none`,opacity:`1`}}),smallButton:e({border:`1px solid token(colors.gray.300)`,borderRadius:`0.5rem`,background:`white`,color:`gray.900`,padding:`0.4rem 0.625rem`,fontSize:`0.75rem`,fontWeight:`600`,transition:`border-color 150ms ease, background 150ms ease`,"&:hover":{borderColor:`indigo.600`,background:`gray.100`}}),status:e({display:`inline-flex`,alignItems:`center`,borderRadius:`999px`,gap:`0.4rem`,padding:`0.5rem 0.7rem`,fontSize:`0.75rem`,fontWeight:`650`,lineHeight:`1`,whiteSpace:`nowrap`,"&::before":{width:`0.4rem`,height:`0.4rem`,borderRadius:`50%`,background:`currentColor`,content:`''`}}),success:e({background:`green.50`,color:`green.700`}),warning:e({background:`yellow.50`,color:`yellow.700`}),danger:e({background:`red.50`,color:`red.700`}),neutral:e({background:`gray.100`,color:`gray.600`}),summary:e({position:`relative`,display:`grid`,gridTemplateColumns:{base:`1fr`,md:`minmax(0, 1.05fr) minmax(21rem, 0.95fr)`},alignItems:`center`,gap:{base:`1.5rem`,md:`2.5rem`},overflow:`hidden`,border:`1px solid token(colors.gray.200)`,borderRadius:`1rem`,background:`linear-gradient(135deg, #ffffff 20%, #f8f7ff 100%)`,padding:{base:`1.25rem`,md:`1.75rem 2rem`},boxShadow:`0 12px 35px rgb(32 33 38 / 0.055)`,"&::after":{position:`absolute`,top:`-5rem`,right:`-3rem`,width:`11rem`,height:`11rem`,borderRadius:`50%`,background:`rgb(91 91 214 / 0.06)`,content:`''`,pointerEvents:`none`}}),summaryTitle:e({margin:`0`,fontSize:`clamp(1.4rem, 3vw, 1.8rem)`,fontWeight:`680`,letterSpacing:`-0.025em`,lineHeight:`1.2`}),muted:e({maxWidth:`47.5rem`,margin:`0.5rem 0 0`,color:`gray.600`,fontSize:`0.875rem`,lineHeight:`1.55`}),summaryFacts:e({position:`relative`,zIndex:`1`,display:`grid`,gridTemplateColumns:{base:`1fr`,sm:`repeat(3, minmax(0, 1fr))`},gap:`0.625rem`,margin:`0`}),summaryFact:e({minWidth:`0`,border:`1px solid rgb(229 228 223 / 0.9)`,borderRadius:`0.75rem`,background:`rgb(255 255 255 / 0.8)`,padding:`0.875rem`,boxShadow:`0 2px 10px rgb(32 33 38 / 0.035)`,"& dt":{color:`gray.500`,fontSize:`0.625rem`,fontWeight:`700`,letterSpacing:`0.035em`,textTransform:`uppercase`},"& dd":{margin:`0.35rem 0 0`,fontSize:`0.925rem`,fontWeight:`650`,lineHeight:`1.3`}}),grid:e({display:`grid`,gridTemplateColumns:{base:`1fr`,md:`repeat(2, minmax(0, 1fr))`},gap:`1rem`,paddingTop:`1rem`}),section:e({minWidth:`0`,gridColumn:{base:`auto`,md:`1 / -1`},border:`1px solid token(colors.gray.200)`,borderRadius:`1rem`,background:`white`,padding:{base:`1.125rem`,md:`1.375rem 1.5rem`},boxShadow:`0 5px 18px rgb(32 33 38 / 0.035)`}),sectionHeader:e({marginBottom:`1rem`,"& h2":{margin:`0`,fontSize:`1.05rem`,fontWeight:`680`,letterSpacing:`-0.015em`},"& p":{margin:`0.3rem 0 0`,color:`gray.600`,fontSize:`0.8125rem`,lineHeight:`1.45`}}),environmentNotice:e({margin:`0.75rem 0`,borderRadius:`0.625rem`,background:`yellow.50`,color:`yellow.700`,padding:`0.625rem 0.75rem`,fontSize:`0.75rem`,lineHeight:`1.45`}),environmentTableFrame:e({overflowX:`auto`}),environmentTable:e({width:`100%`,borderCollapse:`collapse`,textAlign:`left`,"& th, & td":{borderTop:`1px solid token(colors.gray.200)`,padding:`0.75rem`,verticalAlign:`top`,fontSize:`0.75rem`},"& thead th":{borderTop:`0`,color:`gray.500`,fontSize:`0.65rem`,fontWeight:`700`,letterSpacing:`0.04em`,textTransform:`uppercase`},"& tbody th":{minWidth:`16rem`,fontWeight:`600`},"& code":{fontSize:`0.75rem`},"& tbody th span":{display:`block`,maxWidth:`28rem`,marginTop:`0.25rem`,color:`gray.600`,fontWeight:`400`,lineHeight:`1.4`}}),environmentState:e({display:`inline-flex`,borderRadius:`999px`,background:`gray.100`,color:`gray.600`,padding:`0.3125rem 0.5rem`,fontSize:`0.6875rem`,fontWeight:`650`,lineHeight:`1`,whiteSpace:`nowrap`}),environmentStateOk:e({background:`green.50`,color:`green.700`}),environmentStateMissing:e({background:`red.50`,color:`red.700`}),environmentStatePending:e({background:`yellow.50`,color:`yellow.800`}),list:e({listStyle:`none`,margin:`0`,padding:`0`}),empty:e({borderTop:`1px solid token(colors.gray.200)`,paddingTop:`0.875rem`,"& strong":{fontSize:`0.8125rem`},"& p":{margin:`0.25rem 0 0`,color:`gray.600`,fontSize:`0.8125rem`}}),error:e({margin:`0.75rem 0 0`,color:`red.700`,fontSize:`0.8125rem`}),findingRow:e({borderTop:`1px solid token(colors.gray.200)`,padding:`1.125rem 0`,"&:first-child":{borderTop:`0`,paddingTop:`0.125rem`},"&:last-child":{paddingBottom:`0.125rem`}}),findingTitle:e({display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`0.5rem`,"& h3":{margin:`0`,fontSize:`0.9rem`,fontWeight:`650`}}),findingArea:e({color:`gray.500`,fontSize:`0.6875rem`,fontWeight:`700`,letterSpacing:`0.04em`,textTransform:`uppercase`,whiteSpace:`nowrap`}),findingStatus:e({display:`inline-flex`,marginLeft:`auto`,borderRadius:`999px`,padding:`0.3125rem 0.5rem`,fontSize:`0.75rem`,fontWeight:`650`,lineHeight:`1`,whiteSpace:`nowrap`}),dot:e({width:`0.4375rem`,height:`0.4375rem`,flex:`0 0 auto`,borderRadius:`50%`}),successDot:e({background:`green.700`}),warningDot:e({background:`yellow.700`}),dangerDot:e({background:`red.700`}),evidence:e({display:`flex`,flexWrap:`wrap`,gap:`0.375rem 1.125rem`,margin:`0.625rem 0 0 0.9375rem`,"& > div":{display:`flex`,alignItems:`baseline`,gap:`0.3125rem`},"& dt":{color:`gray.500`,fontSize:`0.6875rem`,fontWeight:`700`,textTransform:`uppercase`},"& dd":{margin:`0`,fontSize:`0.75rem`,fontWeight:`600`}}),actions:e({display:`grid`,gap:`0.5rem`,margin:`0.75rem 0 0 0.9375rem`,"& a":{width:`fit-content`,color:`indigo.600`,fontSize:`0.8125rem`,fontWeight:`600`}}),action:e({display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`0.5rem`,"& > span:first-child":{fontSize:`0.8125rem`,fontWeight:`600`}}),linkRow:e({borderTop:`1px solid token(colors.gray.200)`,"&:first-child":{borderTop:`0`},"& a":{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,padding:`0.6875rem 0`,color:`indigo.600`,fontWeight:`600`,textDecoration:`none`,"&:hover":{textDecoration:`underline`}}})};export{t as default};
1
+ import{css as e}from"../styled-system/css/css.js";var t={page:e({width:`100%`,minWidth:`0`}),topbar:e({display:`flex`,alignItems:{base:`flex-start`,md:`center`},justifyContent:`space-between`,flexDirection:{base:`column`,md:`row`},gap:`1.25rem`,padding:`0 0.25rem 1.5rem`}),brand:e({display:`flex`,alignItems:`center`,gap:`0.875rem`}),brandMark:e({display:`grid`,width:`2.625rem`,height:`2.625rem`,placeItems:`center`,borderRadius:`0.75rem`,background:`gray.900`,color:`white`,fontSize:`1rem`,fontWeight:`750`,boxShadow:`0 5px 14px rgb(32 33 38 / 0.16)`}),topbarActions:e({display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:`0.625rem`}),eyebrow:e({margin:`0 0 0.2rem`,color:`gray.600`,fontSize:`0.65rem`,fontWeight:`700`,letterSpacing:`0.1em`,textTransform:`uppercase`}),title:e({margin:`0`,fontSize:`clamp(1.5rem, 4vw, 1.875rem)`,fontWeight:`700`,letterSpacing:`-0.035em`,lineHeight:`1.05`}),button:e({border:`1px solid token(colors.gray.300)`,borderRadius:`0.625rem`,background:`white`,color:`gray.900`,padding:`0.5625rem 0.75rem`,fontWeight:`600`,boxShadow:`0 1px 2px rgb(32 33 38 / 0.05)`,transition:`border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease`,"&:hover":{borderColor:`gray.500`,boxShadow:`0 3px 8px rgb(32 33 38 / 0.08)`,transform:`translateY(-1px)`},"&:focus-visible":{outline:`3px solid rgb(91 91 214 / 0.22)`,outlineOffset:`2px`},"&:disabled":{opacity:`0.55`}}),primaryButton:e({border:`1px solid token(colors.indigo.600)`,borderRadius:`0.625rem`,background:`indigo.600`,color:`white`,padding:`0.5625rem 0.75rem`,fontWeight:`600`,boxShadow:`0 4px 10px rgb(91 91 214 / 0.2)`,transition:`filter 150ms ease, transform 150ms ease`,"&:hover:not(:disabled)":{filter:`brightness(0.94)`,transform:`translateY(-1px)`},"&:focus-visible":{outline:`3px solid rgb(91 91 214 / 0.22)`,outlineOffset:`2px`},"&:disabled":{borderColor:`gray.300`,background:`gray.100`,color:`gray.500`,boxShadow:`none`,opacity:`1`}}),smallButton:e({border:`1px solid token(colors.gray.300)`,borderRadius:`0.5rem`,background:`white`,color:`gray.900`,padding:`0.4rem 0.625rem`,fontSize:`0.75rem`,fontWeight:`600`,transition:`border-color 150ms ease, background 150ms ease`,"&:hover":{borderColor:`indigo.600`,background:`gray.100`}}),status:e({display:`inline-flex`,alignItems:`center`,borderRadius:`999px`,gap:`0.4rem`,padding:`0.5rem 0.7rem`,fontSize:`0.75rem`,fontWeight:`650`,lineHeight:`1`,whiteSpace:`nowrap`,"&::before":{width:`0.4rem`,height:`0.4rem`,borderRadius:`50%`,background:`currentColor`,content:`''`}}),success:e({background:`green.50`,color:`green.700`}),warning:e({background:`yellow.50`,color:`yellow.700`}),danger:e({background:`red.50`,color:`red.700`}),neutral:e({background:`gray.100`,color:`gray.600`}),summary:e({position:`relative`,display:`grid`,gridTemplateColumns:{base:`1fr`,md:`minmax(0, 1.05fr) minmax(21rem, 0.95fr)`},alignItems:`center`,gap:{base:`1.5rem`,md:`2.5rem`},overflow:`hidden`,border:`1px solid token(colors.gray.200)`,borderRadius:`1rem`,background:`linear-gradient(135deg, #ffffff 20%, #f8f7ff 100%)`,padding:{base:`1.25rem`,md:`1.75rem 2rem`},boxShadow:`0 12px 35px rgb(32 33 38 / 0.055)`,"&::after":{position:`absolute`,top:`-5rem`,right:`-3rem`,width:`11rem`,height:`11rem`,borderRadius:`50%`,background:`rgb(91 91 214 / 0.06)`,content:`''`,pointerEvents:`none`}}),summaryTitle:e({margin:`0`,fontSize:`clamp(1.4rem, 3vw, 1.8rem)`,fontWeight:`680`,letterSpacing:`-0.025em`,lineHeight:`1.2`}),muted:e({maxWidth:`47.5rem`,margin:`0.5rem 0 0`,color:`gray.600`,fontSize:`0.875rem`,lineHeight:`1.55`}),summaryFacts:e({position:`relative`,zIndex:`1`,display:`grid`,gridTemplateColumns:{base:`1fr`,sm:`repeat(3, minmax(0, 1fr))`},gap:`0.625rem`,margin:`0`}),summaryFact:e({minWidth:`0`,border:`1px solid rgb(229 228 223 / 0.9)`,borderRadius:`0.75rem`,background:`rgb(255 255 255 / 0.8)`,padding:`0.875rem`,boxShadow:`0 2px 10px rgb(32 33 38 / 0.035)`,"& dt":{color:`gray.500`,fontSize:`0.625rem`,fontWeight:`700`,letterSpacing:`0.035em`,textTransform:`uppercase`},"& dd":{margin:`0.35rem 0 0`,fontSize:`0.925rem`,fontWeight:`650`,lineHeight:`1.3`}}),grid:e({display:`grid`,gridTemplateColumns:{base:`1fr`,md:`repeat(2, minmax(0, 1fr))`},gap:`1rem`,paddingTop:`1rem`}),section:e({minWidth:`0`,gridColumn:{base:`auto`,md:`1 / -1`},border:`1px solid token(colors.gray.200)`,borderRadius:`1rem`,background:`white`,padding:{base:`1.125rem`,md:`1.375rem 1.5rem`},boxShadow:`0 5px 18px rgb(32 33 38 / 0.035)`}),sectionHeader:e({marginBottom:`1rem`,"& h2":{margin:`0`,fontSize:`1.05rem`,fontWeight:`680`,letterSpacing:`-0.015em`},"& p":{margin:`0.3rem 0 0`,color:`gray.600`,fontSize:`0.8125rem`,lineHeight:`1.45`}}),environmentNotice:e({margin:`0.75rem 0`,borderRadius:`0.625rem`,background:`yellow.50`,color:`yellow.700`,padding:`0.625rem 0.75rem`,fontSize:`0.75rem`,lineHeight:`1.45`}),environmentTableFrame:e({overflowX:`auto`}),environmentTable:e({width:`100%`,borderCollapse:`collapse`,textAlign:`left`,"& th, & td":{borderTop:`1px solid token(colors.gray.200)`,padding:`0.75rem`,verticalAlign:`top`,fontSize:`0.75rem`},"& thead th":{borderTop:`0`,color:`gray.500`,fontSize:`0.65rem`,fontWeight:`700`,letterSpacing:`0.04em`,textTransform:`uppercase`},"& tbody th":{minWidth:`16rem`,fontWeight:`600`},"& code":{fontSize:`0.75rem`},"& tbody th span":{display:`block`,maxWidth:`28rem`,marginTop:`0.25rem`,color:`gray.600`,fontWeight:`400`,lineHeight:`1.4`}}),environmentState:e({display:`inline-flex`,borderRadius:`999px`,background:`gray.100`,color:`gray.600`,padding:`0.3125rem 0.5rem`,fontSize:`0.6875rem`,fontWeight:`650`,lineHeight:`1`,whiteSpace:`nowrap`}),environmentStateOk:e({background:`green.50`,color:`green.700`}),environmentStateMissing:e({background:`red.50`,color:`red.700`}),environmentStatePending:e({background:`yellow.50`,color:`yellow.800`}),list:e({listStyle:`none`,margin:`0`,padding:`0`}),empty:e({borderTop:`1px solid token(colors.gray.200)`,paddingTop:`0.875rem`,"& strong":{fontSize:`0.8125rem`},"& p":{margin:`0.25rem 0 0`,color:`gray.600`,fontSize:`0.8125rem`}}),error:e({margin:`0.75rem 0 0`,color:`red.700`,fontSize:`0.8125rem`}),findingRow:e({borderTop:`1px solid token(colors.gray.200)`,padding:`1.125rem 0`,"&:first-child":{borderTop:`0`,paddingTop:`0.125rem`},"&:last-child":{paddingBottom:`0.125rem`}}),findingTitle:e({display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`0.5rem`,"& h3":{margin:`0`,fontSize:`0.9rem`,fontWeight:`650`}}),findingArea:e({color:`gray.500`,fontSize:`0.6875rem`,fontWeight:`700`,letterSpacing:`0.04em`,textTransform:`uppercase`,whiteSpace:`nowrap`}),findingStatus:e({display:`inline-flex`,marginLeft:`auto`,borderRadius:`999px`,padding:`0.3125rem 0.5rem`,fontSize:`0.75rem`,fontWeight:`650`,lineHeight:`1`,whiteSpace:`nowrap`}),dot:e({width:`0.4375rem`,height:`0.4375rem`,flex:`0 0 auto`,borderRadius:`50%`}),successDot:e({background:`green.700`}),warningDot:e({background:`yellow.700`}),dangerDot:e({background:`red.700`}),evidence:e({display:`flex`,flexWrap:`wrap`,gap:`0.375rem 1.125rem`,margin:`0.625rem 0 0 0.9375rem`,"& > div":{display:`flex`,alignItems:`baseline`,gap:`0.3125rem`},"& dt":{color:`gray.500`,fontSize:`0.6875rem`,fontWeight:`700`,textTransform:`uppercase`},"& dd":{margin:`0`,fontSize:`0.75rem`,fontWeight:`600`}}),actions:e({display:`grid`,gap:`0.5rem`,margin:`0.75rem 0 0 0.9375rem`,"& a":{width:`fit-content`,color:`indigo.600`,fontSize:`0.8125rem`,fontWeight:`600`}}),action:e({display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`0.5rem`,"& > span:first-child":{fontSize:`0.8125rem`,fontWeight:`600`}}),linkRow:e({borderTop:`1px solid token(colors.gray.200)`,"&:first-child":{borderTop:`0`},"& a":{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,padding:`0.6875rem 0`,color:`indigo.600`,fontWeight:`600`,textDecoration:`none`,"&:hover":{textDecoration:`underline`}}})};export{t as default};
@@ -1 +1 @@
1
- import{css as e}from"./styled-system/css/css.js";import"../styled-css.js";var t={statePage:e({display:`flex`,width:`min(70rem, calc(100vw - 2.5rem))`,minHeight:`100svh`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`center`,margin:`0 auto`}),eyebrow:e({margin:`0 0 0.3125rem`,color:`gray.600`,fontSize:`0.6875rem`,fontWeight:`700`,letterSpacing:`0.08em`,textTransform:`uppercase`}),message:e({color:`gray.600`}),button:e({marginTop:`1rem`,borderRadius:`0.375rem`,background:`indigo.600`,color:`white`,padding:`0.5rem 0.75rem`,fontWeight:`600`,textDecoration:`none`})};export{t as default};
1
+ import{css as e}from"./styled-system/css/css.js";var t={statePage:e({display:`flex`,width:`min(70rem, calc(100vw - 2.5rem))`,minHeight:`100svh`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`center`,margin:`0 auto`}),eyebrow:e({margin:`0 0 0.3125rem`,color:`gray.600`,fontSize:`0.6875rem`,fontWeight:`700`,letterSpacing:`0.08em`,textTransform:`uppercase`}),message:e({color:`gray.600`}),button:e({marginTop:`1rem`,borderRadius:`0.375rem`,background:`indigo.600`,color:`white`,padding:`0.5rem 0.75rem`,fontWeight:`600`,textDecoration:`none`})};export{t as default};
@@ -1 +1 @@
1
- import{withoutSpace as e}from"../helpers.js";const t=new Set(`2xl,2xlDown,2xlOnly,@/2xl,@/2xlDown,@/2xlOnly,@/2xlTo3xl,@/2xlTo4xl,@/2xlTo5xl,@/2xlTo6xl,@/2xlTo7xl,@/2xlTo8xl,@/2xs,@/2xsDown,@/2xsOnly,@/2xsTo2xl,@/2xsTo3xl,@/2xsTo4xl,@/2xsTo5xl,@/2xsTo6xl,@/2xsTo7xl,@/2xsTo8xl,@/2xsToLg,@/2xsToMd,@/2xsToSm,@/2xsToXl,@/2xsToXs,@/3xl,@/3xlDown,@/3xlOnly,@/3xlTo4xl,@/3xlTo5xl,@/3xlTo6xl,@/3xlTo7xl,@/3xlTo8xl,@/3xs,@/3xsDown,@/3xsOnly,@/3xsTo2xl,@/3xsTo2xs,@/3xsTo3xl,@/3xsTo4xl,@/3xsTo5xl,@/3xsTo6xl,@/3xsTo7xl,@/3xsTo8xl,@/3xsToLg,@/3xsToMd,@/3xsToSm,@/3xsToXl,@/3xsToXs,@/4xl,@/4xlDown,@/4xlOnly,@/4xlTo5xl,@/4xlTo6xl,@/4xlTo7xl,@/4xlTo8xl,@/5xl,@/5xlDown,@/5xlOnly,@/5xlTo6xl,@/5xlTo7xl,@/5xlTo8xl,@/6xl,@/6xlDown,@/6xlOnly,@/6xlTo7xl,@/6xlTo8xl,@/7xl,@/7xlDown,@/7xlOnly,@/7xlTo8xl,@/8xl,@/8xlDown,@/8xlOnly,@/lg,@/lgDown,@/lgOnly,@/lgTo2xl,@/lgTo3xl,@/lgTo4xl,@/lgTo5xl,@/lgTo6xl,@/lgTo7xl,@/lgTo8xl,@/lgToXl,@/md,@/mdDown,@/mdOnly,@/mdTo2xl,@/mdTo3xl,@/mdTo4xl,@/mdTo5xl,@/mdTo6xl,@/mdTo7xl,@/mdTo8xl,@/mdToLg,@/mdToXl,@/sm,@/smDown,@/smOnly,@/smTo2xl,@/smTo3xl,@/smTo4xl,@/smTo5xl,@/smTo6xl,@/smTo7xl,@/smTo8xl,@/smToLg,@/smToMd,@/smToXl,@/xl,@/xlDown,@/xlOnly,@/xlTo2xl,@/xlTo3xl,@/xlTo4xl,@/xlTo5xl,@/xlTo6xl,@/xlTo7xl,@/xlTo8xl,@/xs,@/xsDown,@/xsOnly,@/xsTo2xl,@/xsTo3xl,@/xsTo4xl,@/xsTo5xl,@/xsTo6xl,@/xsTo7xl,@/xsTo8xl,@/xsToLg,@/xsToMd,@/xsToSm,@/xsToXl,_active,_after,_atValue,_autofill,_backdrop,_before,_checked,_closed,_complete,_current,_currentPage,_currentStep,_dark,_default,_disabled,_dragging,_empty,_enabled,_even,_expanded,_file,_first,_firstLetter,_firstLine,_firstOfType,_focus,_focusVisible,_focusWithin,_fullscreen,_grabbed,_groupActive,_groupChecked,_groupDisabled,_groupExpanded,_groupFocus,_groupFocusVisible,_groupFocusWithin,_groupHover,_groupInvalid,_hidden,_highContrast,_highlighted,_horizontal,_hover,_icon,_inRange,_incomplete,_indeterminate,_invalid,_invertedColors,_landscape,_last,_lastOfType,_lessContrast,_light,_loading,_ltr,_marker,_moreContrast,_motionReduce,_motionSafe,_noscript,_now,_odd,_only,_onlyOfType,_open,_optional,_osDark,_osLight,_outOfRange,_overValue,_peerActive,_peerChecked,_peerDisabled,_peerExpanded,_peerFocus,_peerFocusVisible,_peerFocusWithin,_peerHover,_peerInvalid,_peerPlaceholderShown,_placeholder,_placeholderShown,_portrait,_pressed,_print,_rangeEnd,_rangeStart,_readOnly,_readWrite,_required,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_selected,_selection,_starting,_target,_today,_topmost,_unavailable,_underValue,_valid,_vertical,_visited,base,lg,lgDown,lgOnly,lgTo2xl,lgToXl,md,mdDown,mdOnly,mdTo2xl,mdToLg,mdToXl,sm,smDown,smOnly,smTo2xl,smToLg,smToMd,smToXl,xl,xlDown,xlOnly,xlTo2xl`.split(`,`)),n=/^@|&/,r=/^_/,i=/&|@/,a=[`base`,`sm`,`md`,`lg`,`xl`,`2xl`];function o(e){return t.has(e)||n.test(e)}function s(n){return n.map(n=>t.has(n)?n.replace(r,``):i.test(n)?`[${e(n.trim())}]`:n)}function c(e){return[...e].sort((e,t)=>{let n=o(e),r=o(t);return n&&!r?1:!n&&r?-1:0})}export{a as breakpointKeys,s as finalizeConditions,o as isCondition,c as sortConditions};
1
+ import{withoutSpace as e}from"../helpers.js";const t=new Set(`2xl,2xlDown,2xlOnly,@/2xl,@/2xlDown,@/2xlOnly,@/2xlTo3xl,@/2xlTo4xl,@/2xlTo5xl,@/2xlTo6xl,@/2xlTo7xl,@/2xlTo8xl,@/2xs,@/2xsDown,@/2xsOnly,@/2xsTo2xl,@/2xsTo3xl,@/2xsTo4xl,@/2xsTo5xl,@/2xsTo6xl,@/2xsTo7xl,@/2xsTo8xl,@/2xsToLg,@/2xsToMd,@/2xsToSm,@/2xsToXl,@/2xsToXs,@/3xl,@/3xlDown,@/3xlOnly,@/3xlTo4xl,@/3xlTo5xl,@/3xlTo6xl,@/3xlTo7xl,@/3xlTo8xl,@/3xs,@/3xsDown,@/3xsOnly,@/3xsTo2xl,@/3xsTo2xs,@/3xsTo3xl,@/3xsTo4xl,@/3xsTo5xl,@/3xsTo6xl,@/3xsTo7xl,@/3xsTo8xl,@/3xsToLg,@/3xsToMd,@/3xsToSm,@/3xsToXl,@/3xsToXs,@/4xl,@/4xlDown,@/4xlOnly,@/4xlTo5xl,@/4xlTo6xl,@/4xlTo7xl,@/4xlTo8xl,@/5xl,@/5xlDown,@/5xlOnly,@/5xlTo6xl,@/5xlTo7xl,@/5xlTo8xl,@/6xl,@/6xlDown,@/6xlOnly,@/6xlTo7xl,@/6xlTo8xl,@/7xl,@/7xlDown,@/7xlOnly,@/7xlTo8xl,@/8xl,@/8xlDown,@/8xlOnly,@/lg,@/lgDown,@/lgOnly,@/lgTo2xl,@/lgTo3xl,@/lgTo4xl,@/lgTo5xl,@/lgTo6xl,@/lgTo7xl,@/lgTo8xl,@/lgToXl,@/md,@/mdDown,@/mdOnly,@/mdTo2xl,@/mdTo3xl,@/mdTo4xl,@/mdTo5xl,@/mdTo6xl,@/mdTo7xl,@/mdTo8xl,@/mdToLg,@/mdToXl,@/sm,@/smDown,@/smOnly,@/smTo2xl,@/smTo3xl,@/smTo4xl,@/smTo5xl,@/smTo6xl,@/smTo7xl,@/smTo8xl,@/smToLg,@/smToMd,@/smToXl,@/xl,@/xlDown,@/xlOnly,@/xlTo2xl,@/xlTo3xl,@/xlTo4xl,@/xlTo5xl,@/xlTo6xl,@/xlTo7xl,@/xlTo8xl,@/xs,@/xsDown,@/xsOnly,@/xsTo2xl,@/xsTo3xl,@/xsTo4xl,@/xsTo5xl,@/xsTo6xl,@/xsTo7xl,@/xsTo8xl,@/xsToLg,@/xsToMd,@/xsToSm,@/xsToXl,_active,_after,_anyPointerCoarse,_anyPointerFine,_anyPointerNone,_atValue,_autofill,_backdrop,_before,_checked,_closed,_complete,_current,_currentPage,_currentStep,_dark,_default,_disabled,_dragging,_empty,_enabled,_even,_expanded,_file,_first,_firstLetter,_firstLine,_firstOfType,_focus,_focusVisible,_focusWithin,_fullscreen,_grabbed,_groupActive,_groupChecked,_groupDisabled,_groupExpanded,_groupFocus,_groupFocusVisible,_groupFocusWithin,_groupHover,_groupInvalid,_hidden,_highContrast,_highlighted,_horizontal,_hover,_icon,_inRange,_incomplete,_indeterminate,_inert,_invalid,_invertedColors,_landscape,_last,_lastOfType,_lessContrast,_light,_loading,_ltr,_marker,_moreContrast,_motionReduce,_motionSafe,_noscript,_now,_odd,_only,_onlyOfType,_open,_optional,_osDark,_osLight,_outOfRange,_overValue,_peerActive,_peerChecked,_peerDisabled,_peerExpanded,_peerFocus,_peerFocusVisible,_peerFocusWithin,_peerHover,_peerInvalid,_peerPlaceholderShown,_placeholder,_placeholderShown,_pointerCoarse,_pointerFine,_pointerNone,_portrait,_pressed,_print,_rangeEnd,_rangeStart,_readOnly,_readWrite,_required,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_selected,_selection,_starting,_target,_today,_topmost,_unavailable,_underValue,_userInvalid,_userValid,_valid,_vertical,_visited,base,lg,lgDown,lgOnly,lgTo2xl,lgToXl,md,mdDown,mdOnly,mdTo2xl,mdToLg,mdToXl,sm,smDown,smOnly,smTo2xl,smToLg,smToMd,smToXl,xl,xlDown,xlOnly,xlTo2xl`.split(`,`)),n=/^@|&/,r=/^_/,i=/&|@/,a=[`base`,`sm`,`md`,`lg`,`xl`,`2xl`];function o(e){return t.has(e)||n.test(e)}function s(n){return n.map(n=>t.has(n)?n.replace(r,``):i.test(n)?`[${e(n.trim())}]`:n)}function c(e){return[...e].sort((e,t)=>{let n=o(e),r=o(t);return n&&!r?1:!n&&r?-1:0})}export{a as breakpointKeys,s as finalizeConditions,o as isCondition,c as sortConditions};
@@ -1 +1 @@
1
- import{createCssRuntime as e,hypenateProperty as t,isObject as n,withoutSpace as r}from"../helpers.js";import{breakpointKeys as i,finalizeConditions as a,sortConditions as o}from"./conditions.js";const s=new Map,c=new Map;`WebkitTextFillColor:wktf-c,accentColor:ac-c,alignContent:ac,alignItems:ai,alignSelf:as,animation:anim,animationComposition:anim-comp,animationDelay:anim-dly,animationDirection:anim-dir,animationDuration:anim-dur,animationFillMode:anim-fm,animationIterationCount:anim-ic,animationName:anim-n,animationPlayState:anim-ps,animationRange:anim-r,animationRangeEnd:anim-re,animationRangeStart:anim-rs,animationState:anim-s,animationTimeline:anim-tl,animationTimingFunction:anim-tmf,appearance:ap,aspectRatio:asp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropFilter:bkdp,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,backfaceVisibility:bfv,background:bg/1,backgroundAttachment:bg-a/bgAttachment,backgroundBlendMode:bg-bm/bgBlendMode,backgroundClip:bg-cp/bgClip,backgroundColor:bg-c/bgColor,backgroundConic:bg-conic/bgConic,backgroundGradient:bg-grad/bgGradient,backgroundImage:bg-i/bgImage,backgroundLinear:bg-linear/bgLinear,backgroundOrigin:bg-o/bgOrigin,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundRadial:bg-radial/bgRadial,backgroundRepeat:bg-r/bgRepeat,backgroundSize:bg-s/bgSize,blockSize:h-bs,border:bd,borderBlock:bd-y/borderY,borderBlockColor:bd-y-c/borderYColor,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockEndWidth:bd-be-w,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,borderBlockStartWidth:bd-bs-w,borderBlockWidth:bd-y-w/borderYWidth,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderBottomRadius:bdr-b/roundedBottom,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomWidth:bd-b-w,borderCollapse:bd-cl,borderColor:bd-c,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,borderEndStartRadius:bdr-es/roundedEndStart,borderInline:bd-x/borderX,borderInlineColor:bd-x-c/borderXColor,borderInlineEnd:bd-e/borderEnd,borderInlineEndColor:bd-e-c/borderEndColor,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineStart:bd-s/borderStart,borderInlineStartColor:bd-s-c/borderStartColor,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineWidth:bd-x-w/borderXWidth,borderLeft:bd-l,borderLeftColor:bd-l-c,borderLeftRadius:bdr-l/roundedLeft,borderLeftWidth:bd-l-w,borderRadius:bdr/rounded,borderRight:bd-r,borderRightColor:bd-r-c,borderRightRadius:bdr-r/roundedRight,borderRightWidth:bd-r-w,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderStartStartRadius:bdr-ss/roundedStartStart,borderTop:bd-t,borderTopColor:bd-t-c,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRadius:bdr-t/roundedTop,borderTopRightRadius:bdr-tr/roundedTopRight,borderTopWidth:bd-t-w,borderWidth:bd-w,boxDecorationBreak:bx-db,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,boxSize:size,boxSizing:bx-s,caretColor:ca-c,clipPath:cp-path,color:c,columnGap:cg,container:cq,containerName:cq-n,containerType:cq-t,display:d,divideColor:dvd-c,divideStyle:dvd-s,divideX:dvd-x,divideY:dvd-y,flexBasis:flex-b,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingStyle:focus-ring-s,focusRingWidth:focus-ring-w,focusVisibleRing:focus-v-ring,fontFamily:ff,fontFeatureSettings:ff-s,fontKerning:fk,fontPalette:fp,fontSize:fs,fontSizeAdjust:fs-a,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariantNumeric:fv-num,fontVariationSettings:fv-s,fontWeight:fw,gradientFrom:grad-from,gradientFromPosition:grad-from-pos,gradientTo:grad-to,gradientToPosition:grad-to-pos,gradientVia:grad-via,gradientViaPosition:grad-via-pos,gridAutoColumns:grid-ac,gridAutoFlow:grid-af,gridAutoRows:grid-ar,gridColumn:grid-c,gridColumnEnd:grid-ce,gridColumnGap:grid-cg,gridColumnStart:grid-cs,gridGap:grid-g,gridRow:grid-r,gridRowGap:grid-rg,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,height:h/1,hideBelow:show,hideFrom:hide,hyphens:hy,inlineSize:w-is,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInline:inset-x/insetX,insetInlineEnd:inset-e/end/insetEnd,insetInlineStart:inset-s/insetStart/start,justifyContent:jc,letterSpacing:ls,lineClamp:lc,lineHeight:lh,listStyle:li-s,listStyleImage:li-img,listStylePosition:li-pos,listStyleType:li-t,margin:m/1,marginBlock:my/marginY/1,marginBlockEnd:mbe,marginBlockStart:mbs,marginBottom:mb/1,marginInline:mx/marginX/1,marginInlineEnd:me/marginEnd/1,marginInlineStart:ms/marginStart/1,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,mask:msk,maskImage:msk-i,maskSize:msk-s,maxBlockSize:max-b,maxHeight:max-h/maxH,maxInlineSize:max-w-is,maxWidth:max-w/maxW,minBlockSize:min-h-bs,minHeight:min-h/minH,minInlineSize:min-w-is,minWidth:min-w/minW,mixBlendMode:mix-bm,objectFit:obj-f,objectPosition:obj-p,opacity:op,outline:ring/1,outlineColor:ring-c/ringColor,outlineOffset:ring-o/ringOffset,outlineWidth:ring-w/ringWidth,overflow:ov,overflowAnchor:ov-a,overflowBlock:ov-b,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overflowInline:ov-i,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overscrollBehavior:ovs-b,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,padding:p/1,paddingBlock:py/paddingY/1,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingBottom:pb/1,paddingInline:px/paddingX/1,paddingInlineEnd:pe/paddingEnd/1,paddingInlineStart:ps/paddingStart/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,position:pos/1,rowGap:rg,scrollBehavior:scr-bhv,scrollMargin:scr-m,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginBottom:scr-mb,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockEnd:scr-pbe,scrollPaddingBlockStart:scr-pbs,scrollPaddingBottom:scr-pb,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollSnapAlign:scr-sa,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapMargin:scrs-m,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapMarginTop:scrs-mt,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapStop:scrs-s,scrollSnapStrictness:scrs-strt,scrollSnapType:scrs-t,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,spaceX:sx,spaceY:sy,srOnly:sr,stroke:stk,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,strokeWidth:stk-w,tableLayout:tbl,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textEmphasisColor:te-c,textGradient:txt-grad,textIndent:ti,textOverflow:tov,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textSizeAdjust:txt-adj,textStyle:textStyle,textTransform:tt,textUnderlineOffset:tu-o,textWrap:tw,touchAction:tch-a,transform:trf,transformBox:trf-b,transformOrigin:trf-o,transformStyle:trf-s,transition:trs,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transitionTimingFunction:trs-tmf,translateX:/x,translateY:/y,translateZ:/z,truncate:trunc,userSelect:us,verticalAlign:va,visibility:vis,width:w/1,wordBreak:wb,zIndex:z`.split(`,`).forEach(e=>{let[t,n]=e.split(`:`),[r,...i]=n.split(`/`);r&&s.set(t,r),i.forEach(e=>{let n=e===`1`?r:e;c.set(n,t)})});const l=e=>c.get(e)||e,{serializeCss:u,mergeCss:d,assignCss:f}=e({hash:!1,conditions:{shift:o,finalize:a,breakpoints:{keys:i}},utility:{prefix:null,hasShorthand:!0,toHash(e,t){return t(e.join(`:`))},transform(e,n){let i=l(e);return{className:`${s.get(i)||t(i)}_${r(n)}`}},resolveShorthand:l}}),p=Object.assign(function(...e){return e.length===1&&n(e[0])?u(e[0]):u(d(...e))},{raw:function(...e){return d(...e)}});export{p as css,d as mergeCss};
1
+ import{createMergeCss as e,createSerializeCss as t,createSerializeCssArgs as n,hypenateProperty as r,isObject as i,withoutSpace as a}from"../helpers.js";import{breakpointKeys as o,finalizeConditions as s,sortConditions as c}from"./conditions.js";function l(){let e=new Map,t=new Map;`WebkitTextFillColor:wktf-c,accentColor:ac-c,alignContent:ac,alignItems:ai,alignSelf:as,animation:anim,animationComposition:anim-comp,animationDelay:anim-dly,animationDirection:anim-dir,animationDuration:anim-dur,animationFillMode:anim-fm,animationIterationCount:anim-ic,animationName:anim-n,animationPlayState:anim-ps,animationRange:anim-r,animationRangeEnd:anim-re,animationRangeStart:anim-rs,animationState:anim-s,animationTimeline:anim-tl,animationTimingFunction:anim-tmf,appearance:ap,aspectRatio:asp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropFilter:bkdp,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,backfaceVisibility:bfv,background:bg/1,backgroundAttachment:bg-a/bgAttachment,backgroundBlendMode:bg-bm/bgBlendMode,backgroundClip:bg-cp/bgClip,backgroundColor:bg-c/bgColor,backgroundConic:bg-conic/bgConic,backgroundGradient:bg-grad/bgGradient,backgroundImage:bg-i/bgImage,backgroundLinear:bg-linear/bgLinear,backgroundOrigin:bg-o/bgOrigin,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundRadial:bg-radial/bgRadial,backgroundRepeat:bg-r/bgRepeat,backgroundSize:bg-s/bgSize,blockSize:h-bs,border:bd,borderBlock:bd-y/borderY,borderBlockColor:bd-y-c/borderYColor,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockEndWidth:bd-be-w,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,borderBlockStartWidth:bd-bs-w,borderBlockWidth:bd-y-w/borderYWidth,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderBottomRadius:bdr-b/roundedBottom,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomWidth:bd-b-w,borderCollapse:bd-cl,borderColor:bd-c,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,borderEndStartRadius:bdr-es/roundedEndStart,borderInline:bd-x/borderX,borderInlineColor:bd-x-c/borderXColor,borderInlineEnd:bd-e/borderEnd,borderInlineEndColor:bd-e-c/borderEndColor,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineStart:bd-s/borderStart,borderInlineStartColor:bd-s-c/borderStartColor,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineWidth:bd-x-w/borderXWidth,borderLeft:bd-l,borderLeftColor:bd-l-c,borderLeftRadius:bdr-l/roundedLeft,borderLeftWidth:bd-l-w,borderRadius:bdr/rounded,borderRight:bd-r,borderRightColor:bd-r-c,borderRightRadius:bdr-r/roundedRight,borderRightWidth:bd-r-w,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderStartStartRadius:bdr-ss/roundedStartStart,borderTop:bd-t,borderTopColor:bd-t-c,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRadius:bdr-t/roundedTop,borderTopRightRadius:bdr-tr/roundedTopRight,borderTopWidth:bd-t-w,borderWidth:bd-w,boxDecorationBreak:bx-db,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,boxSize:size,boxSizing:bx-s,caretColor:ca-c,clipPath:cp-path,color:c,columnGap:cg,container:cq,containerName:cq-n,containerType:cq-t,display:d,divideColor:dvd-c,divideStyle:dvd-s,divideX:dvd-x,divideY:dvd-y,flexBasis:flex-b,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingStyle:focus-ring-s,focusRingWidth:focus-ring-w,focusVisibleRing:focus-v-ring,fontFamily:ff,fontFeatureSettings:ff-s,fontKerning:fk,fontPalette:fp,fontSize:fs,fontSizeAdjust:fs-a,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariantNumeric:fv-num,fontVariationSettings:fv-s,fontWeight:fw,gradientFrom:grad-from,gradientFromPosition:grad-from-pos,gradientTo:grad-to,gradientToPosition:grad-to-pos,gradientVia:grad-via,gradientViaPosition:grad-via-pos,gridAutoColumns:grid-ac,gridAutoFlow:grid-af,gridAutoRows:grid-ar,gridColumn:grid-c,gridColumnEnd:grid-ce,gridColumnGap:grid-cg,gridColumnStart:grid-cs,gridGap:grid-g,gridRow:grid-r,gridRowGap:grid-rg,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,height:h/1,hideBelow:show,hideFrom:hide,hyphens:hy,inlineSize:w-is,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInline:inset-x/insetX,insetInlineEnd:inset-e/end/insetEnd,insetInlineStart:inset-s/insetStart/start,justifyContent:jc,letterSpacing:ls,lineClamp:lc,lineHeight:lh,listStyle:li-s,listStyleImage:li-img,listStylePosition:li-pos,listStyleType:li-t,margin:m/1,marginBlock:my/marginY/1,marginBlockEnd:mbe,marginBlockStart:mbs,marginBottom:mb/1,marginInline:mx/marginX/1,marginInlineEnd:me/marginEnd/1,marginInlineStart:ms/marginStart/1,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,mask:msk,maskBottomFrom:msk-b-from,maskBottomFromColor:msk-b-from-c,maskBottomTo:msk-b-to,maskBottomToColor:msk-b-to-c,maskClip:msk-cp,maskComposite:msk-cmp,maskConic:msk-conic,maskConicFrom:msk-conic-from,maskConicFromColor:msk-conic-from-c,maskConicTo:msk-conic-to,maskConicToColor:msk-conic-to-c,maskImage:msk-i,maskLeftFrom:msk-l-from,maskLeftFromColor:msk-l-from-c,maskLeftTo:msk-l-to,maskLeftToColor:msk-l-to-c,maskLinear:msk-linear,maskLinearFrom:msk-linear-from,maskLinearFromColor:msk-linear-from-c,maskLinearTo:msk-linear-to,maskLinearToColor:msk-linear-to-c,maskMode:msk-md,maskOrigin:msk-o,maskPosition:msk-p,maskRadial:msk-radial,maskRadialAt:msk-radial-at,maskRadialFrom:msk-radial-from,maskRadialFromColor:msk-radial-from-c,maskRadialShape:msk-radial-shape,maskRadialSize:msk-radial-sz,maskRadialTo:msk-radial-to,maskRadialToColor:msk-radial-to-c,maskRepeat:msk-r,maskRightFrom:msk-r-from,maskRightFromColor:msk-r-from-c,maskRightTo:msk-r-to,maskRightToColor:msk-r-to-c,maskSize:msk-s,maskTopFrom:msk-t-from,maskTopFromColor:msk-t-from-c,maskTopTo:msk-t-to,maskTopToColor:msk-t-to-c,maskType:msk-t,maskXFrom:msk-x-from,maskXFromColor:msk-x-from-c,maskXTo:msk-x-to,maskXToColor:msk-x-to-c,maskYFrom:msk-y-from,maskYFromColor:msk-y-from-c,maskYTo:msk-y-to,maskYToColor:msk-y-to-c,maxBlockSize:max-b,maxHeight:max-h/maxH,maxInlineSize:max-w-is,maxWidth:max-w/maxW,minBlockSize:min-h-bs,minHeight:min-h/minH,minInlineSize:min-w-is,minWidth:min-w/minW,mixBlendMode:mix-bm,objectFit:obj-f,objectPosition:obj-p,opacity:op,outline:ring/1,outlineColor:ring-c/ringColor,outlineOffset:ring-o/ringOffset,outlineWidth:ring-w/ringWidth,overflow:ov,overflowAnchor:ov-a,overflowBlock:ov-b,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overflowInline:ov-i,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overscrollBehavior:ovs-b,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,padding:p/1,paddingBlock:py/paddingY/1,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingBottom:pb/1,paddingInline:px/paddingX/1,paddingInlineEnd:pe/paddingEnd/1,paddingInlineStart:ps/paddingStart/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,position:pos/1,rowGap:rg,scrollBehavior:scr-bhv,scrollMargin:scr-m,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginBottom:scr-mb,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockEnd:scr-pbe,scrollPaddingBlockStart:scr-pbs,scrollPaddingBottom:scr-pb,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollSnapAlign:scr-sa,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapMargin:scrs-m,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapMarginTop:scrs-mt,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapStop:scrs-s,scrollSnapStrictness:scrs-strt,scrollSnapType:scrs-t,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarThumb:scr-bar-th,scrollbarTrack:scr-bar-tk,scrollbarWidth:scr-bar-w,spaceX:sx,spaceY:sy,srOnly:sr,stroke:stk,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,strokeWidth:stk-w,tableLayout:tbl,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textEmphasisColor:te-c,textGradient:txt-grad,textIndent:ti,textOverflow:tov,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textSizeAdjust:txt-adj,textStyle:textStyle,textTransform:tt,textUnderlineOffset:tu-o,textWrap:tw,touchAction:tch-a,transform:trf,transformBox:trf-b,transformOrigin:trf-o,transformStyle:trf-s,transition:trs,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transitionTimingFunction:trs-tmf,translateX:/x,translateY:/y,translateZ:/z,truncate:trunc,userSelect:us,verticalAlign:va,visibility:vis,width:w/1,wordBreak:wb,zIndex:z`.split(`,`).forEach(n=>{let[r,i]=n.split(`:`),[a,...o]=i.split(`/`);a&&e.set(r,a),o.forEach(e=>{let n=e===`1`?a:e;t.set(n,r)})});let n=e=>t.get(e)||e;return{hash:!1,conditions:{shift:c,finalize:s,breakpoints:{keys:o}},utility:{prefix:null,hasShorthand:!0,toHash(e,t){return t(e.join(`:`))},transform(t,i){let o=n(t);return{className:`${e.get(o)||r(o)}_${a(i)}`}},resolveShorthand:n}}}const u=l(),d=t(u),f=e(u),p=n(d,f),m=Object.assign(function(...e){return e.length===1&&i(e[0])?d(e[0]):p(...e)},{raw:function(...e){return f(...e)}});export{m as css,f as mergeCss};
@@ -1 +1 @@
1
- function e(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const t=Object.prototype.hasOwnProperty;function n(e){return e===`base`}function r(e){let t=[];for(let r=0;r<e.length;r++)n(e[r])||t.push(e[r]);return t}function i(e){let t=5381;for(let n=e.length;n;)t=t*33^e.charCodeAt(--n);let n=t>>>0,r=``;for(;n>52;n=n/52|0){let e=n%52;r=String.fromCharCode(e+(e>25?39:97))+r}let i=n%52;return String.fromCharCode(i+(i>25?39:97))+r}function a(e){let t=Object.create(null);if(!e)return t;for(let n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function o(e,t){return{...e,...a(t)}}function s(e,t,n){let r=[];outer:for(let i of e){for(let e in i){if(e===`css`||e===`className`||e===`classNames`)continue;let n=i[e],r=t[e];if(Array.isArray(n)){if(!n.includes(r))continue outer}else if(r!==n)continue outer}i.className&&r.push(n?n(i.className):i.className)}return r.join(` `)}function c(e,t){let n=[];for(let r of e){let e=r.css?.[t],i=r.classNames?.[t]??r.className;if(!e&&!i)continue;let a=e?{css:e}:{};for(let e in r)e===`css`||e===`className`||e===`classNames`||(a[e]=r[e]);i&&(a.className=i),n.push(a)}return n}function l(e,t){let n=Object.create(null);for(let r=0;r<e.length;r++)e[r]!=null&&(n[t[r]]=e[r]);return n}function u(e,n,r){r||={};let{stop:i,getKey:a}=r,o=(e,r=[])=>{if(!e||typeof e!=`object`||i?.(e,r))return n(e,r);let s=Array.isArray(e)?[]:Object.create(null);for(let n in e){if(!t.call(e,n))continue;let i=a?.(n,e[n])??n;r.push(i);let c=o(e[n],r);r.pop(),c!=null&&(s[i]=c)}return s};return o(e)}function d(e,t,n){let{utility:r,conditions:i}=t,{hasShorthand:a,resolveShorthand:o}=r;return n=n!==!1,u(e,e=>Array.isArray(e)?l(e,i.breakpoints.keys):e,{stop:Array.isArray,getKey:n?e=>a?o(e):e:void 0})}function f(e){let t=new Map;return((...n)=>{let r=JSON.stringify(n);if(t.has(r)){let e=t.get(r);return t.delete(r),t.set(r,e),e}let i=e(...n);return t.set(r,i),t.size>500&&t.delete(t.keys().next().value),i})}function p(e){let t=new WeakMap;return(n=>{if(!n||typeof n!=`object`)return e(n);if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r})}function m(...n){let r=Object.create(null);for(let i of n)if(i)for(let n in i){if(!t.call(i,n)||n===`__proto__`||n===`constructor`||n===`prototype`)continue;let a=r[n],o=i[n];r[n]=e(a)&&e(o)?m(a,o):o}return r}function h(t){let{utility:n,hash:a,conditions:o}=t,s=e=>n.prefix?n.prefix+`-`+e:e,c=(e,t)=>{let r=o.finalize(e);return r.push(a?t:s(t)),a?s(n.toHash(r,i)):r.join(`:`)},l=p(function({base:e,...i}={}){let a=d(e?Object.assign(i,e):i,t),s=new Set;u(a,(e,t)=>{if(e==null)return;let i=C(e),[a,...l]=o.shift(t),u=r(l),d=n.transform(a,S(w(e))),f=c(u,d.className);i&&(f+=`!`),s.add(f)});let l=``;for(let e of s)l+=l?` `+e:e;return l}),f=n=>{let r=[],i=t=>{for(let n=0;n<t.length;n++){let a=t[n];if(Array.isArray(a)){i(a);continue}if(e(a)){for(let e in a)if(a[e]!==void 0){r.push(a);break}}}};if(i(n),r.length<2)return r;for(let e=0;e<r.length;e++)r[e]=d(r[e],t);return r};return{serializeCss:l,mergeCss:function(){return m(...f(arguments))},assignCss:function(){let e={},t=f(arguments);for(let n=0;n<t.length;n++)Object.assign(e,t[n]);return e}}}function g(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,`-$&`).replace(/^ms-/,`-ms-`).toLowerCase()}function _(e,...t){let n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=e=>{let t=Object.create(null);for(let r=0;r<e.length;r++){let i=e[r];n[i]&&(Object.defineProperty(t,i,n[i]),delete n[i])}return t},a=[];for(let e of t){if(Array.isArray(e)){a.push(i(e));continue}let t=[];for(let n=0;n<r.length;n++)e(r[n])&&t.push(r[n]);a.push(i(t))}return a.push(i(r)),a}const v=[`htmlSize`,`htmlTranslate`,`htmlWidth`,`htmlHeight`];function y(e){return v.includes(e)?e.replace(`html`,``).toLowerCase():e}function b(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[y(e),t]))}b.keys=v;function x(...e){let t=new Set;for(let n of e)if(n)for(let e=0;e<n.length;e++)t.add(n[e]);return Array.from(t)}function S(e){return typeof e==`string`&&e.indexOf(` `)>=0?e.replaceAll(` `,`_`):e}function C(e){return typeof e==`string`?/\s*!(important)?/i.test(e):!1}function w(e){return typeof e==`string`?e.replace(/\s*!(important)?/i,``).trim():e}export{a as compact,h as createCssRuntime,r as filterBaseConditions,s as getCompoundVariantClassNames,c as getSlotCompoundVariant,g as hypenateProperty,n as isBaseCondition,C as isImportant,e as isObject,f as memo,m as mergeProps,b as normalizeHTMLProps,d as normalizeStyleObject,_ as splitProps,i as toHash,l as toResponsiveObject,x as uniq,u as walkObject,p as weakMemo,o as withDefaults,w as withoutImportant,S as withoutSpace};
1
+ function e(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const t=Object.prototype.hasOwnProperty;function n(e){return e===`base`}function r(e){let t=[];for(let r=0;r<e.length;r++)n(e[r])||t.push(e[r]);return t}function i(e){let t=5381;for(let n=e.length;n;)t=t*33^e.charCodeAt(--n);let n=t>>>0,r=``;for(;n>52;n=n/52|0){let e=n%52;r=String.fromCharCode(e+(e>25?39:97))+r}let i=n%52;return String.fromCharCode(i+(i>25?39:97))+r}function a(e){let t={};if(!e)return t;for(let n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function o(e,t){return{...e,...a(t)}}function s(e,t){for(let n in e){if(n===`css`||n===`className`||n===`classNames`)continue;let r=e[n],i=t[n];if(Array.isArray(r)?!r.includes(i):i!==r)return!1}return!0}function c(e,t,n){let r=[];for(let i of e)s(i,t)&&i.className&&r.push(n?n(i.className):i.className);return r.join(` `)}function l(e,t){let n=[];for(let r of e){let e=r.css?.[t],i=r.classNames?.[t]??r.className;if(!e&&!i)continue;let a=e?{css:e}:{};for(let e in r)e===`css`||e===`className`||e===`classNames`||(a[e]=r[e]);i&&(a.className=i),n.push(a)}return n}function u(e,t){let n={};for(let r=0;r<e.length;r++)e[r]!=null&&(n[t[r]]=e[r]);return n}function d(e,n,r){r||={};let{stop:i,getKey:a}=r,o=(e,r=[])=>{if(!e||typeof e!=`object`||i?.(e,r))return n(e,r);let s=Array.isArray(e)?[]:{};for(let n in e){if(!t.call(e,n)||n===`__proto__`)continue;let i=a?.(n,e[n])??n;r.push(i);let c=o(e[n],r);r.pop(),c!=null&&(s[i]=c)}return s};return o(e)}function f(e,t,n){let{utility:r,conditions:i}=t,{hasShorthand:a,resolveShorthand:o}=r;return n=n!==!1,d(e,e=>Array.isArray(e)?u(e,i.breakpoints.keys):e,{stop:Array.isArray,getKey:n?e=>a?o(e):e:void 0})}function p(e){let t=5381;for(let n=0;n<e.length;n++){let r=e[n];if(typeof r!=`object`||!r){t=t*33^1;continue}for(let e in r){let n=r[e],i=typeof n;if(n!==null&&i===`object`)return null;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);if(i===`string`)for(let e=0;e<n.length;e++)t=t*33^n.charCodeAt(e);else t=i===`number`?t*33^(n|0):i===`boolean`?t*33^(n?991:997):t*33^2}}return t>>>0}function m(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r===i)continue;if(r===null||i===null||typeof r!=`object`||typeof i!=`object`)return!1;let a=0;for(let e in r){if(r[e]!==i[e])return!1;a++}if(a!==Object.keys(i).length)return!1}return!0}function h(e){let t=new Map,n=new Map,r=new WeakSet,i=()=>({objects:new WeakMap,prims:new Map,out:void 0,has:!1}),a=i(),o,s,c,l=!1,u=0,d=(e,t)=>{if(typeof t==`object`&&t){let n=e.objects.get(t);return n===void 0&&(n=i(),e.objects.set(t,n)),n}let n=e.prims.get(t);return n===void 0&&(e.prims.size>64&&e.prims.clear(),n=i(),e.prims.set(t,n)),n},f=(e,t)=>{if(Array.isArray(t)){e=d(e,`\0[`);for(let n=0;n<t.length;n++)e=f(e,t[n]);return d(e,`\0]`)}return d(e,t)},h=(e,t)=>{if(e!==void 0){if(Array.isArray(t)){e=e.prims.get(`\0[`);for(let n=0;n<t.length&&e!==void 0;n++)e=h(e,t[n]);return e===void 0?void 0:e.prims.get(`\0]`)}return typeof t==`object`&&t?e.objects.get(t):e.prims.get(t)}},g=e=>{if(Array.isArray(e)){let t=!0;for(let n=0;n<e.length;n++)g(e[n])||(t=!1);return t}return typeof e!=`object`||!e||r.has(e)?!0:(r.add(e),!1)};return((...r)=>{let i=!1;for(let e=0;e<r.length;e++)if(Array.isArray(r[e])){i=!0;break}if(i){let t=a;for(let e=0;e<r.length&&t!==void 0;e++)t=h(t,r[e]);if(t!==void 0&&t.has)return t.out;let i=JSON.stringify(r),d=l&&o===void 0&&i===s?c:n.get(i);d===void 0&&(d=e(...r),n.set(i,d),n.size>500&&n.delete(n.keys().next().value));let p=!1;if(!(++u&3)){p=!0;for(let e=0;e<r.length;e++)g(r[e])||(p=!1)}if(p){let e=a;for(let t=0;t<r.length;t++)e=f(e,r[t]);e.out=d,e.has=!0}return o=void 0,s=i,c=d,l=!0,d}let d=p(r);if(d!==null){if(l&&o===d&&m(r,s))return c;let n=t.get(d);if(n){for(let e=0;e<n.length;e++)if(m(r,n[e].args))return o=d,s=r,c=n[e].out,l=!0,n[e].out}let i=e(...r);return n||(n=[],t.set(d,n)),n.push({args:r,out:i}),n.length>8&&n.shift(),t.size>500&&t.delete(t.keys().next().value),o=d,s=r,c=i,l=!0,i}let _=JSON.stringify(r);if(l&&o===void 0&&_===s)return c;let v=n.get(_);if(v!==void 0)return o=void 0,s=_,c=v,l=!0,v;let y=e(...r);return n.set(_,y),n.size>500&&n.delete(n.keys().next().value),o=void 0,s=_,c=y,l=!0,y})}function g(e){let t=new WeakMap;return(n=>{if(!n||typeof n!=`object`)return e(n);if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r})}function _(...n){let r={};for(let i of n)if(i)for(let n in i){if(!t.call(i,n)||n===`__proto__`||n===`constructor`||n===`prototype`)continue;let a=r[n],o=i[n];r[n]=e(a)&&e(o)?_(a,o):o}return r}const v=/[\n\s]+/g,y=e=>typeof e==`string`?e.replace(v,` `):e;function b(t,n){let r=[],i=t=>{for(let n=0;n<t.length;n++){let a=t[n];if(Array.isArray(a)){i(a);continue}if(e(a)){for(let e in a)if(a[e]!==void 0){r.push(a);break}}}};if(i(t),r.length<2)return r;for(let e=0;e<r.length;e++)r[e]=f(r[e],n);return r}function x(e){let t=e.utility,n=e.conditions,a=e.hash,o=e=>t.prefix?t.prefix+`-`+e:e,s=(e,r)=>{let s=n.finalize(e);return s.push(a?r:o(r)),a?o(t.toHash(s,i)):s.join(`:`)};return g(h(function({base:i,...a}={}){let o=f(i?Object.assign(a,i):a,e),c=new Set;d(o,(e,i)=>{if(e==null)return;let a=P(e),[o,...l]=n.shift(i),u=r(l),d=t.transform(o,M(F(y(e)))),f=s(u,d.className);a&&(f+=`!`),c.add(f)});let l=``;for(let e of c)l+=l?` `+e:e;return l}))}function S(e){return function(){return _(...b(arguments,e))}}function C(e,t){return h(function(...n){return e(t(...n))})}const w=/[A-Z]/g,T=/^ms-/;function E(e){return e.startsWith(`--`)?e:e.replace(w,`-$&`).replace(T,`-ms-`).toLowerCase()}const D=new WeakMap;function O(e){let t=D.get(e);if(t)return t;t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n]]=!0;return D.set(e,t),t}function k(e,t,n){let r=Object.getOwnPropertyDescriptor(e,n);if(r?.get||r?.set){Object.defineProperty(t,n,r);return}t[n]=e[n]}function A(e,...t){let n=Object.keys(e),r=t.length;if(r===1){let r=t[0],i={},a={};if(Array.isArray(r)){let t=O(r);for(let r=0;r<n.length;r++){let o=n[r];t[o]===!0?k(e,i,o):k(e,a,o)}return[i,a]}for(let t=0;t<n.length;t++){let o=n[t];r(o)?k(e,i,o):k(e,a,o)}return[i,a]}let i=Array(r);for(let e=0;e<r;e++){let n=t[e];i[e]=Array.isArray(n)?O(n):n}let a=Array(r+1);for(let e=0;e<=r;e++)a[e]={};let o=a[r];for(let t=0;t<n.length;t++){let s=n[t],c=!1;for(let t=0;t<r;t++){let n=i[t];if(typeof n==`function`?n(s):n[s]===!0){k(e,a[t],s),c=!0;break}}c||k(e,o,s)}return a}function j(...e){let t=new Set;for(let n of e)if(n)for(let e=0;e<n.length;e++)t.add(n[e]);return Array.from(t)}function M(e){return typeof e==`string`&&e.indexOf(` `)>=0?e.replaceAll(` `,`_`):e}const N=/\s*!(important)?\s*$/i;function P(e){return typeof e==`string`?N.test(e):!1}function F(e){return typeof e==`string`?e.replace(N,``).trim():e}export{a as compact,S as createMergeCss,x as createSerializeCss,C as createSerializeCssArgs,r as filterBaseConditions,c as getCompoundVariantClassNames,l as getSlotCompoundVariant,E as hypenateProperty,n as isBaseCondition,P as isImportant,e as isObject,h as memo,_ as mergeProps,f as normalizeStyleObject,b as resolveStyleArgs,A as splitProps,i as toHash,u as toResponsiveObject,j as uniq,d as walkObject,g as weakMemo,o as withDefaults,F as withoutImportant,M as withoutSpace};
@@ -1 +1 @@
1
- import{createRecipe as e}from"./runtime.js";const t=e({name:`dashboardButton`,className:`dashboard-button`,defaultVariants:{size:`md`,tone:`accent`,variant:`solid`},compoundVariants:[{tone:`neutral`,variant:`solid`,className:`dashboard-button--compound__tone_neutral__variant_solid`},{tone:`accent`,variant:`solid`,className:`dashboard-button--compound__tone_accent__variant_solid`},{tone:`danger`,variant:`solid`,className:`dashboard-button--compound__tone_danger__variant_solid`},{tone:`accent`,variant:`outline`,className:`dashboard-button--compound__tone_accent__variant_outline`},{tone:`danger`,variant:`outline`,className:`dashboard-button--compound__tone_danger__variant_outline`},{tone:`accent`,variant:`quiet`,className:`dashboard-button--compound__tone_accent__variant_quiet`},{tone:`danger`,variant:`quiet`,className:`dashboard-button--compound__tone_danger__variant_quiet`}],variantMap:{size:[`lg`,`md`,`sm`],tone:[`accent`,`danger`,`neutral`],variant:[`outline`,`quiet`,`solid`]}});export{t as dashboardButton};
1
+ import{createRecipe as e}from"./runtime.js";const t=e({name:`dashboardButton`,className:`dashboard-button`,defaultVariants:{size:`md`,tone:`accent`,variant:`solid`},compoundVariants:[{tone:`neutral`,variant:`solid`,className:`dashboard-button--compound__tone_neutral__variant_solid`},{tone:`accent`,variant:`solid`,className:`dashboard-button--compound__tone_accent__variant_solid`},{tone:`danger`,variant:`solid`,className:`dashboard-button--compound__tone_danger__variant_solid`},{tone:`accent`,variant:`outline`,className:`dashboard-button--compound__tone_accent__variant_outline`},{tone:`danger`,variant:`outline`,className:`dashboard-button--compound__tone_danger__variant_outline`},{tone:`accent`,variant:`quiet`,className:`dashboard-button--compound__tone_accent__variant_quiet`},{tone:`danger`,variant:`quiet`,className:`dashboard-button--compound__tone_danger__variant_quiet`}],variantMap:{variant:[`solid`,`outline`,`quiet`],tone:[`neutral`,`accent`,`danger`],size:[`sm`,`md`,`lg`]}});export{t as dashboardButton};
@@ -1 +1 @@
1
- import{createRecipe as e}from"./runtime.js";const t=e({name:`dashboardStatus`,className:`dashboard-status`,defaultVariants:{tone:`neutral`},variantMap:{tone:[`danger`,`info`,`neutral`,`success`,`warning`]}});export{t as dashboardStatus};
1
+ import{createRecipe as e}from"./runtime.js";const t=e({name:`dashboardStatus`,className:`dashboard-status`,defaultVariants:{tone:`neutral`},variantMap:{tone:[`neutral`,`info`,`success`,`warning`,`danger`]}});export{t as dashboardStatus};
@@ -1 +1 @@
1
- import{createCssRuntime as e,getCompoundVariantClassNames as t,getSlotCompoundVariant as n,memo as r,splitProps as i,toHash as a,uniq as o,withDefaults as s,withoutSpace as c}from"../helpers.js";import{breakpointKeys as l,finalizeConditions as u,sortConditions as d}from"../css/conditions.js";import{cx as f}from"../css/cx.js";function p(e){let t=e.variantMap??{};return{name:e.name,className:e.className??e.name,slots:e.slots??[],variantMap:t,variantKeys:Object.keys(t),defaults:e.defaultVariants??{},compounds:e.compoundVariants??[]}}function m(n){let{name:i,className:o,variantMap:m,variantKeys:h,defaults:v,compounds:y}=p(n),{serializeCss:b}=e({hash:!1,conditions:{shift:d,finalize:u,breakpoints:{keys:l}},utility:{prefix:null,toHash:a,transform(e,t){return{className:t===`__ignore__`?o:`${o}--${e}_${c(t)}`}}}}),x=e=>e;function S(e={}){return{[o]:`__ignore__`,...s(v,e)}}function C(e){if(y.length!==0)for(let t of h){let n=e[t];if(typeof n==`object`&&n)throw Error(`[recipe:${o}:${t}] Conditions are not supported when using compound variants.`)}}function w(e){return t(y,S(e),x)}let T=_(r(function(e={},t=!0){C(e);let n=b(S(e));return t?f(n,w(e)):n}),i,h,m,S);return T.__recipe__=!0,T.__getCompoundVariantClasses__=w,T.merge=function(e){return g(T,e)},T}function h(e){let{name:t,className:i,slots:a,variantMap:o,variantKeys:c,defaults:l,compounds:u}=p(e),d=a.map(function(e){return[e,m({name:t,className:`${i}__${e}`,variantMap:o,defaultVariants:l,compoundVariants:n(u,e)})]}),f=r(function(e={}){let t={};for(let[n,r]of d)t[n]=r(e);return t});return _(f,t,c,o,function(e={}){return s(l,e)}),f.__recipe__=!1,f.classNameMap={},f}function g(e,t){if(e&&!t)return e;if(!e&&t)return t;function n(...n){let r=e(...n),i=t(...n);return r&&i?`${r} ${i}`:r||i}let r=o(e.variantKeys,t.variantKeys),i={};for(let n of r)i[n]=o(e.variantMap[n],t.variantMap[n]);return _(n,`${e.__name__} ${t.__name__}`,r,i,function(e){return e}),n.__recipe__=!0,n}function _(e,t,n,r,a){return e.__name__=t,e.raw=function(e){return e},e.variantKeys=n,e.variantMap=r,e.splitVariantProps=function(e){return i(e,n)},e.getVariantProps=a,e}export{m as createRecipe,h as createSlotRecipe};
1
+ import{createSerializeCss as e,getCompoundVariantClassNames as t,getSlotCompoundVariant as n,memo as r,splitProps as i,uniq as a,withDefaults as o,withoutSpace as s}from"../helpers.js";import{breakpointKeys as c,finalizeConditions as l,sortConditions as u}from"../css/conditions.js";import{cx as d}from"../css/cx.js";function f(e){let t=e.variantMap??{};return{name:e.name,className:e.className??e.name,slots:e.slots??[],variantMap:t,variantKeys:Object.keys(t),defaults:e.defaultVariants??{},compounds:e.compoundVariants??[]}}function p(n){let{name:i,className:a,variantMap:p,variantKeys:m,defaults:_,compounds:v}=f(n),y=e({hash:!1,conditions:{shift:u,finalize:l,breakpoints:{keys:c}},utility:{prefix:null,toHash(e,t){return t(e.join(`:`))},transform(e,t){return{className:t===`__ignore__`?a:`${a}--${e}_${s(t)}`}}}}),b=e=>e;function x(e={}){return{[a]:`__ignore__`,...o(_,e)}}function S(e){if(v.length!==0)for(let t of m){let n=e[t];if(typeof n==`object`&&n)throw Error(`[recipe:${a}:${t}] Conditions are not supported when using compound variants.`)}}function C(e){return t(v,x(e),b)}let w=g(r(function(e={},t=!0){S(e);let n=y(x(e));return t?d(n,C(e)):n}),i,m,p,x);return w.__recipe__=!0,w.__getCompoundVariantClasses__=C,w.merge=function(e){return h(w,e)},w}function m(e){let{name:t,className:i,slots:a,variantMap:s,variantKeys:c,defaults:l,compounds:u}=f(e),d=a.map(function(e){return[e,p({name:t,className:`${i}__${e}`,variantMap:s,defaultVariants:l,compoundVariants:n(u,e)})]}),m=r(function(e={}){let t={};for(let[n,r]of d)t[n]=r(e);return t});return g(m,t,c,s,function(e={}){return o(l,e)}),m.__recipe__=!1,m.classNameMap={},m}function h(e,t){if(e&&!t)return e;if(!e&&t)return t;function n(...n){let r=e(...n),i=t(...n);return r&&i?`${r} ${i}`:r||i}let r=a(e.variantKeys,t.variantKeys),i={};for(let n of r)i[n]=a(e.variantMap[n],t.variantMap[n]);return g(n,`${e.__name__} ${t.__name__}`,r,i,function(e){return e}),n.__recipe__=!0,n}function g(e,t,n,r,a){return e.__name__=t,e.raw=function(e){return e},e.variantKeys=n,e.variantMap=r,e.splitVariantProps=function(e){return i(e,n)},e.getVariantProps=a,e}export{p as createRecipe,m as createSlotRecipe};
@@ -1 +1 @@
1
- import{cx as e}from"../styled-system/css/cx.js";import"../../styled-css.js";import{dashboardButton as t}from"../styled-system/recipes/dashboard-button.js";import{dashboardConfirmDialog as n}from"../styled-system/recipes/dashboard-confirm-dialog.js";import{dashboardEmptyState as r}from"../styled-system/recipes/dashboard-empty-state.js";import{dashboardErrorState as i}from"../styled-system/recipes/dashboard-error-state.js";import{dashboardField as a}from"../styled-system/recipes/dashboard-field.js";import{dashboardPage as o}from"../styled-system/recipes/dashboard-page.js";import{dashboardSection as s}from"../styled-system/recipes/dashboard-section.js";import{dashboardStatus as c}from"../styled-system/recipes/dashboard-status.js";import{dashboardTabs as l}from"../styled-system/recipes/dashboard-tabs.js";const u={button:t,confirmDialog:n,emptyState:r,errorState:i,field:a,page:o,section:s,status:c,tabs:l};export{e as cx,u as styles};
1
+ import{cx as e}from"../styled-system/css/cx.js";import{dashboardButton as t}from"../styled-system/recipes/dashboard-button.js";import{dashboardConfirmDialog as n}from"../styled-system/recipes/dashboard-confirm-dialog.js";import{dashboardEmptyState as r}from"../styled-system/recipes/dashboard-empty-state.js";import{dashboardErrorState as i}from"../styled-system/recipes/dashboard-error-state.js";import{dashboardField as a}from"../styled-system/recipes/dashboard-field.js";import{dashboardPage as o}from"../styled-system/recipes/dashboard-page.js";import{dashboardSection as s}from"../styled-system/recipes/dashboard-section.js";import{dashboardStatus as c}from"../styled-system/recipes/dashboard-status.js";import{dashboardTabs as l}from"../styled-system/recipes/dashboard-tabs.js";const u={button:t,confirmDialog:n,emptyState:r,errorState:i,field:a,page:o,section:s,status:c,tabs:l};export{e as cx,u as styles};
@@ -2,10 +2,15 @@ import { DashboardPageManifestEntry } from "../config.js";
2
2
 
3
3
  //#region src/web-shell/shell.d.ts
4
4
  interface DashboardShellProps {
5
+ application?: {
6
+ name: string;
7
+ favicon: string;
8
+ };
5
9
  pages: readonly DashboardPageManifestEntry[];
6
10
  }
7
11
  declare function DashboardShell({
8
- pages
12
+ pages,
13
+ application
9
14
  }: DashboardShellProps): import("react").JSX.Element;
10
15
  declare function DashboardIndexRedirect({
11
16
  pages
@@ -1 +1 @@
1
- import{useEffect as e,useRef as t,useState as n}from"react";import{Link as r,NavLink as i,Navigate as a,Outlet as o,isRouteErrorResponse as s,useLocation as c,useNavigation as l,useRouteError as u}from"react-router";import{jsx as d,jsxs as f}from"react/jsx-runtime";function p({pages:r}){let a=c(),s=l(),[u,p]=n(()=>globalThis.window!==void 0&&globalThis.matchMedia(`(max-width: 47.999rem)`).matches),[m,h]=n(!1),[g,v]=n(!1),y=t(null),b=t(null),x=t(!1),S=_(r,a.pathname);e(()=>{let e=globalThis.matchMedia(`(max-width: 47.999rem)`),t=()=>p(e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),e(()=>{u&&(m?b.current?.focus():x.current&&y.current?.focus(),x.current=m)},[u,m]),e(()=>{if(!m)return;let e=e=>{e.key===`Escape`&&h(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[m]);let C=u?m:!g;return f(`div`,{className:`coreframe-dashboard`,"data-collapsed":!u&&g?`true`:`false`,"data-drawer-open":u&&m?`true`:`false`,children:[d(`button`,{type:`button`,className:`coreframe-dashboard__backdrop`,"aria-label":`Close dashboard navigation`,tabIndex:u&&m?0:-1,onClick:()=>h(!1)}),d(`aside`,{className:`coreframe-dashboard__sidebar`,role:u?`dialog`:void 0,"aria-label":u?`Dashboard navigation`:void 0,"aria-modal":u&&m?!0:void 0,"aria-hidden":u&&!m?!0:void 0,inert:u&&!m?!0:void 0,children:f(`nav`,{ref:b,id:`coreframe-dashboard-navigation`,className:`coreframe-dashboard__navigation`,"aria-label":`Dashboard`,tabIndex:u?-1:void 0,children:[f(`div`,{className:`coreframe-dashboard__sidebar-header`,children:[f(`div`,{className:`coreframe-dashboard__brand`,"aria-label":`Coreframe Dashboard`,children:[d(`span`,{"aria-hidden":`true`,className:`coreframe-dashboard__mark`,children:`C`}),d(`span`,{className:`coreframe-dashboard__navigation-text`,children:`Coreframe`})]}),u?d(`button`,{type:`button`,className:`coreframe-dashboard__drawer-close`,"aria-label":`Close dashboard navigation`,onClick:()=>h(!1),children:d(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:d(`path`,{d:`m6 6 12 12M6 18 18 6`})})}):null]}),r.length>0?d(`ul`,{className:`coreframe-dashboard__navigation-list`,children:r.map(e=>d(`li`,{children:f(i,{className:`coreframe-dashboard__navigation-link`,to:`/${e.path}`,title:e.title,onClick:()=>h(!1),children:[d(`span`,{"aria-hidden":`true`,className:`coreframe-dashboard__navigation-initials`,children:e.title.match(/[\p{L}\p{N}]+/gu)?.slice(0,2).map(e=>Array.from(e)[0]).join(``).toUpperCase()}),d(`span`,{className:`coreframe-dashboard__navigation-text`,children:e.title})]})},e.id))}):d(`p`,{className:`coreframe-dashboard__navigation-empty`,children:`No pages`})]})}),f(`main`,{className:`coreframe-dashboard__main`,inert:u&&m?!0:void 0,children:[f(`header`,{className:`coreframe-dashboard__page-header`,children:[d(`button`,{ref:y,type:`button`,className:`coreframe-dashboard__toggle`,"aria-controls":`coreframe-dashboard-navigation`,"aria-expanded":C,"aria-label":C?`Collapse dashboard navigation`:`Expand dashboard navigation`,title:C?`Collapse dashboard navigation`:`Expand dashboard navigation`,onClick:()=>{u?h(e=>!e):v(e=>!e)},children:f(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[d(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`3`}),d(`path`,{d:`M9 3v18`}),d(`path`,{d:C?`m16 9-3 3 3 3`:`m13 9 3 3-3 3`})]})}),S?f(`div`,{className:`coreframe-dashboard__page-heading`,children:[d(`h1`,{children:S.title}),S.description?d(`p`,{children:S.description}):null]}):null,s.state===`idle`?null:d(`div`,{className:`coreframe-dashboard__pending`,role:`status`,children:`Loading page…`})]}),d(`div`,{className:`coreframe-dashboard__content`,children:d(o,{})})]})]})}function m({pages:e}){let t=e[0];return t?d(a,{replace:!0,to:`/${t.path}`}):d(h,{})}function h(){return f(`section`,{className:`coreframe-dashboard__state`,"aria-labelledby":`dashboard-empty-title`,children:[d(`p`,{className:`coreframe-dashboard__eyebrow`,children:`Dashboard`}),d(`h1`,{id:`dashboard-empty-title`,children:`No dashboard pages yet`}),f(`p`,{children:[`Add a page under `,d(`code`,{children:`dashboard/pages/`}),` or register a plugin in`,` `,d(`code`,{children:`dashboard.config.ts`}),`.`]})]})}function g(){let e=u(),t=s(e)&&e.status===404,n=import.meta.env.DEV&&e instanceof Error?e.message:t?`The requested dashboard page does not exist.`:`The dashboard hit an unexpected error.`;return f(`main`,{className:`coreframe-dashboard__state`,children:[d(`p`,{className:`coreframe-dashboard__eyebrow`,children:`Coreframe Dashboard`}),d(`h1`,{children:t?`Page not found`:`Dashboard unavailable`}),d(`p`,{children:n}),d(r,{className:`coreframe-dashboard__button`,to:`/`,children:`Go to dashboard`})]})}function _(e,t){let n=t.split(`/`).filter(Boolean)[0];return e.find(e=>e.path===n)??(n?void 0:e[0])}export{h as DashboardEmptyState,g as DashboardErrorBoundary,m as DashboardIndexRedirect,p as DashboardShell};
1
+ import{icons as e}from"@iconify-json/codicon";import{useEffect as t,useRef as n,useState as r}from"react";import{Link as i,NavLink as a,Navigate as o,Outlet as s,isRouteErrorResponse as c,useLocation as l,useNavigation as u,useRouteError as d}from"react-router";import{jsx as f,jsxs as p}from"react/jsx-runtime";function m({pages:i,application:o}){let c=l(),d=u(),[m,h]=r(()=>globalThis.window!==void 0&&globalThis.matchMedia(`(max-width: 47.999rem)`).matches),[g,_]=r(!1),[y,b]=r(!1),x=n(null),S=n(null),C=n(!1),w=v(i,c.pathname);t(()=>{let e=globalThis.matchMedia(`(max-width: 47.999rem)`),t=()=>h(e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),t(()=>{m&&(g?S.current?.focus():C.current&&x.current?.focus(),C.current=g)},[m,g]),t(()=>{if(!g)return;let e=e=>{e.key===`Escape`&&_(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[g]);let T=m?g:!y;return p(`div`,{className:`coreframe-dashboard`,"data-collapsed":!m&&y?`true`:`false`,"data-drawer-open":m&&g?`true`:`false`,children:[f(`button`,{type:`button`,className:`coreframe-dashboard__backdrop`,"aria-label":`Close dashboard navigation`,tabIndex:m&&g?0:-1,onClick:()=>_(!1)}),f(`aside`,{className:`coreframe-dashboard__sidebar`,role:m?`dialog`:void 0,"aria-label":m?`Dashboard navigation`:void 0,"aria-modal":m&&g?!0:void 0,"aria-hidden":m&&!g?!0:void 0,inert:m&&!g?!0:void 0,children:p(`nav`,{ref:S,id:`coreframe-dashboard-navigation`,className:`coreframe-dashboard__navigation`,"aria-label":`Dashboard`,tabIndex:m?-1:void 0,children:[p(`div`,{className:`coreframe-dashboard__sidebar-header`,children:[p(`div`,{className:`coreframe-dashboard__brand`,"aria-label":o?.name,children:[o?f(`img`,{src:o.favicon,alt:``,className:`coreframe-dashboard__mark`}):null,f(`span`,{className:`coreframe-dashboard__navigation-text`,children:o?.name})]}),m?f(`button`,{type:`button`,className:`coreframe-dashboard__drawer-close`,"aria-label":`Close dashboard navigation`,onClick:()=>_(!1),children:f(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:f(`path`,{d:`m6 6 12 12M6 18 18 6`})})}):null]}),i.length>0?f(`ul`,{className:`coreframe-dashboard__navigation-list`,children:i.map(t=>f(`li`,{children:p(a,{className:`coreframe-dashboard__navigation-link`,to:`/${t.path}`,title:t.title,onClick:()=>_(!1),children:[f(`svg`,{"aria-hidden":`true`,className:`coreframe-dashboard__navigation-icon`,width:`20`,height:`20`,viewBox:`0 0 ${e.width} ${e.height}`,fill:`currentColor`,dangerouslySetInnerHTML:{__html:e.icons[t.icon].body}}),f(`span`,{className:`coreframe-dashboard__navigation-text`,children:t.title})]})},t.id))}):f(`p`,{className:`coreframe-dashboard__navigation-empty`,children:`No pages`})]})}),p(`main`,{className:`coreframe-dashboard__main`,inert:m&&g?!0:void 0,children:[p(`header`,{className:`coreframe-dashboard__page-header`,children:[f(`button`,{ref:x,type:`button`,className:`coreframe-dashboard__toggle`,"aria-controls":`coreframe-dashboard-navigation`,"aria-expanded":T,"aria-label":T?`Collapse dashboard navigation`:`Expand dashboard navigation`,title:T?`Collapse dashboard navigation`:`Expand dashboard navigation`,onClick:()=>{m?_(e=>!e):b(e=>!e)},children:p(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[f(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`3`}),f(`path`,{d:`M9 3v18`}),f(`path`,{d:T?`m16 9-3 3 3 3`:`m13 9 3 3-3 3`})]})}),w?p(`div`,{className:`coreframe-dashboard__page-heading`,children:[f(`h1`,{children:w.title}),w.description?f(`p`,{children:w.description}):null]}):null,d.state===`idle`?null:f(`div`,{className:`coreframe-dashboard__pending`,role:`status`,children:`Loading page…`})]}),f(`div`,{className:`coreframe-dashboard__content`,children:f(s,{})})]})]})}function h({pages:e}){let t=e[0];return t?f(o,{replace:!0,to:`/${t.path}`}):f(g,{})}function g(){return p(`section`,{className:`coreframe-dashboard__state`,"aria-labelledby":`dashboard-empty-title`,children:[f(`p`,{className:`coreframe-dashboard__eyebrow`,children:`Dashboard`}),f(`h1`,{id:`dashboard-empty-title`,children:`No dashboard pages yet`}),p(`p`,{children:[`Add a page under `,f(`code`,{children:`dashboard/pages/`}),` or register a plugin in`,` `,f(`code`,{children:`dashboard.config.ts`}),`.`]})]})}function _(){let e=d(),t=c(e)&&e.status===404,n=import.meta.env.DEV&&e instanceof Error?e.message:t?`The requested dashboard page does not exist.`:`The dashboard hit an unexpected error.`;return p(`main`,{className:`coreframe-dashboard__state`,children:[f(`p`,{className:`coreframe-dashboard__eyebrow`,children:`Coreframe Dashboard`}),f(`h1`,{children:t?`Page not found`:`Dashboard unavailable`}),f(`p`,{children:n}),f(i,{className:`coreframe-dashboard__button`,to:`/`,children:`Go to dashboard`})]})}function v(e,t){let n=t.split(`/`).filter(Boolean)[0];return e.find(e=>e.path===n)??(n?void 0:e[0])}export{g as DashboardEmptyState,_ as DashboardErrorBoundary,h as DashboardIndexRedirect,m as DashboardShell};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreframe/dashboard",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "description": "Reusable dashboard composition, shell, plugin, and authenticated runtime for Coreframe apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -80,6 +80,7 @@
80
80
  },
81
81
  "dependencies": {
82
82
  "@fontsource-variable/inter": "^5.2.8",
83
+ "@iconify-json/codicon": "^1.2.77",
83
84
  "@tanstack/react-query": "^5.101.2",
84
85
  "react": "19.2.8",
85
86
  "react-dom": "19.2.8",
@@ -89,22 +90,22 @@
89
90
  "zod": "^4.4.3",
90
91
  "@coreframe/deploy": "0.1.19",
91
92
  "@coreframe/diagnostics": "0.2.3",
92
- "@coreframe/lib": "^0.2.16"
93
+ "@coreframe/lib": "^0.2.17"
93
94
  },
94
95
  "devDependencies": {
95
- "@pandacss/dev": "2.0.0-beta.8",
96
- "@pandacss/preset-base": "2.0.0-beta.8",
97
- "@pandacss/preset-panda": "2.0.0-beta.8",
96
+ "@pandacss/dev": "2.4.0",
97
+ "@pandacss/preset-base": "2.4.0",
98
+ "@pandacss/preset-panda": "2.4.0",
98
99
  "@types/node": "^26.1.0",
99
100
  "@types/react": "19.2.18",
100
101
  "@types/react-dom": "19.2.4",
101
102
  "jsdom": "^29.1.1",
102
- "miniflare": "4.20260710.0",
103
+ "miniflare": "4.20260730.0",
103
104
  "tsdown": "0.22.3",
104
105
  "typescript": "6.0.3",
105
- "vite": "^8.1.4",
106
+ "vite": "^8.3.5",
106
107
  "vitest": "^4.1.10",
107
- "@coreframe/panda": "0.1.11"
108
+ "@coreframe/panda": "0.1.12"
108
109
  },
109
110
  "scripts": {
110
111
  "build": "pnpm --dir ../diagnostics build && pnpm build:server",
@@ -1 +0,0 @@
1
- import{css as e}from"./web/styled-system/css/css.js";import{cx as t}from"./web/styled-system/css/cx.js";export{e as css,t as cx};