Iterate
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "vite build",
|
"prepare": "vite build",
|
||||||
"lint:ts": "tsc --noEmit",
|
"lint:types": "tsc --noEmit",
|
||||||
|
"lint:codestyle": "echo 'handled by lint:eslint'",
|
||||||
"test": "echo no tests yet"
|
"test": "echo no tests yet"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ import { theme } from "./theme";
|
|||||||
import Logo from "./Logo.tsx";
|
import Logo from "./Logo.tsx";
|
||||||
|
|
||||||
const Root = styled.nav`
|
const Root = styled.nav`
|
||||||
background-color: ${({ theme }) => theme.compound.color.bgCanvasDefault};
|
background-color: ${({ theme }): string => theme.compound.color.bgCanvasDefault};
|
||||||
border-bottom: ${({ theme }) => theme.navbar.border};
|
border-bottom: ${({ theme }): string => theme.navbar.border};
|
||||||
height: ${({ theme }) => theme.navbar.height};
|
height: ${({ theme }): string => theme.navbar.height};
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: ${({ theme }) => `${theme.navbar.triggerWidth} auto`};
|
grid-template-columns: ${({ theme }): string => `${theme.navbar.triggerWidth} auto`};
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const Anchor = styled.a`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const Image = styled.img`
|
const Image = styled.img`
|
||||||
height: ${({ theme }) => theme.navbar.logoHeight};
|
height: ${({ theme }): string => theme.navbar.logoHeight};
|
||||||
align-self: center;
|
align-self: center;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const SidebarHeading = styled.div`
|
|||||||
const Launcher = styled.button`
|
const Launcher = styled.button`
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border: none;
|
border: none;
|
||||||
color: ${({ theme }) => theme.compound.color.textPrimary};
|
color: ${({ theme }): string => theme.compound.color.textPrimary};
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { StaticConfig } from "../config";
|
|||||||
* Univention Central Navigation API
|
* Univention Central Navigation API
|
||||||
* https://docs.software-univention.de/nubus-kubernetes-customization/1.x/en/api/central-navigation.html
|
* https://docs.software-univention.de/nubus-kubernetes-customization/1.x/en/api/central-navigation.html
|
||||||
*/
|
*/
|
||||||
export const UniventionCentralNavigation = z.object({
|
const UniventionCentralNavigation = z.object({
|
||||||
categories: z.array(
|
categories: z.array(
|
||||||
z.object({
|
z.object({
|
||||||
identifier: z.string(),
|
identifier: z.string(),
|
||||||
|
|||||||
@@ -14,6 +14,35 @@ const iconOnSolidPrimary = "var(--cpd-color-icon-on-solid-primary)";
|
|||||||
|
|
||||||
const bodyMdSemibold = "var(--cpd-font-body-md-semibold)";
|
const bodyMdSemibold = "var(--cpd-font-body-md-semibold)";
|
||||||
|
|
||||||
|
declare module "styled-components" {
|
||||||
|
export interface DefaultTheme {
|
||||||
|
compound: {
|
||||||
|
color: {
|
||||||
|
bgCanvasDefault: string;
|
||||||
|
textActionAccent: string;
|
||||||
|
textPrimary: string;
|
||||||
|
iconOnSolidPrimary: string;
|
||||||
|
};
|
||||||
|
font: {
|
||||||
|
bodyMdSemibold: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
color: {
|
||||||
|
accent: string;
|
||||||
|
};
|
||||||
|
navbar: {
|
||||||
|
border: string;
|
||||||
|
boxShadow: string;
|
||||||
|
height: string;
|
||||||
|
triggerWidth: string;
|
||||||
|
logoHeight: string;
|
||||||
|
};
|
||||||
|
menu: {
|
||||||
|
width: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const theme: DefaultTheme = {
|
export const theme: DefaultTheme = {
|
||||||
compound: {
|
compound: {
|
||||||
color: {
|
color: {
|
||||||
|
|||||||
Reference in New Issue
Block a user