refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -24,17 +24,17 @@ const packageRoot = join(here, "..");
|
||||
let cachedCss: string | undefined;
|
||||
let cachedComponentFiles: Map<string, string> | undefined;
|
||||
|
||||
/** Absolute path to the directory of Wire UI component `.wrn` files. */
|
||||
/** Absolute path to the directory of WrNexus UI component `.wrn` files. */
|
||||
export function uiComponentsDir(): string {
|
||||
return join(packageRoot, "components");
|
||||
}
|
||||
|
||||
/** Absolute path to the Wire UI stylesheet. */
|
||||
/** Absolute path to the WrNexus UI stylesheet. */
|
||||
export function uiCssPath(): string {
|
||||
return join(packageRoot, "ui.css");
|
||||
}
|
||||
|
||||
/** The Wire UI stylesheet contents (all `.wire-*` classes, themed via tokens). */
|
||||
/** The WrNexus UI stylesheet contents (all `.wrn-*` classes, themed via tokens). */
|
||||
export function uiCss(): string {
|
||||
return (cachedCss ??= readFileSync(uiCssPath(), "utf8"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user