rule engine and configration and fix booking for custoemr

This commit is contained in:
marshal
2026-06-01 23:15:11 +03:00
parent b9ca0b8a82
commit 452ebdbc0a
52 changed files with 3355 additions and 3358 deletions

View File

@@ -0,0 +1,57 @@
/** Material-inspired surfaces using shadcn tokens — modest radius, outlined fields. */
export const ruleEngineSurface = {
pageCard:
"overflow-hidden rounded-lg border border-border bg-card shadow-sm",
pageCardToolbar: "border-b border-border bg-muted/30 px-4 py-3 sm:px-5 sm:py-3.5",
dialog: "max-h-[90vh] overflow-y-auto rounded-lg border-border sm:max-w-lg",
dialogSm: "rounded-lg border-border sm:max-w-md",
} as const;
export const ruleEngineField = {
label: "text-sm font-medium text-foreground",
requiredMark: "text-destructive",
input:
"h-10 w-full rounded-md border border-input bg-background px-3 text-sm shadow-xs transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30",
textarea:
"min-h-[96px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30",
selectTrigger:
"h-10 w-full rounded-md border border-input bg-background px-3 text-sm shadow-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 data-[placeholder]:text-muted-foreground",
selectContent: "rounded-md border-border shadow-md",
switchRow: "flex min-h-10 items-center justify-between gap-3 rounded-md border border-border bg-muted/20 px-3",
switchHint: "text-xs text-muted-foreground",
} as const;
export const ruleEngineToolbar = {
search:
"h-10 rounded-md border border-input bg-background pl-10 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30",
viewToggleGroup:
"flex h-10 items-center rounded-md border border-border bg-muted/40 p-0.5",
viewToggleBtn:
"inline-flex h-8 items-center gap-1.5 rounded-sm px-3 text-sm font-medium transition-colors",
viewToggleActive: "bg-background text-foreground shadow-sm",
viewToggleIdle: "text-muted-foreground hover:bg-background/60 hover:text-foreground",
actionBtn: "h-10 rounded-md shadow-xs",
primaryBtn: "h-10 gap-2 rounded-md px-4 text-sm font-medium shadow-xs",
} as const;
export const ruleEngineCard = {
article:
"group flex flex-col overflow-hidden rounded-lg border border-border bg-card shadow-sm transition-shadow duration-200 hover:shadow-md",
header: "border-b border-border bg-muted/25 px-4 py-3.5",
avatar:
"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-primary/12 text-sm font-semibold text-primary",
title: "truncate text-[15px] font-semibold text-foreground",
meta: "text-xs text-muted-foreground",
detailLabel:
"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
detailValue: "mt-0.5 text-sm text-foreground",
footer: "mt-auto border-t border-border bg-muted/20 px-3 py-2.5",
skeleton: "animate-pulse rounded-lg border border-border bg-muted/30 p-4",
} as const;
export const ruleEngineTable = {
headerCell:
"h-11 bg-muted/50 text-xs font-semibold uppercase tracking-wide text-muted-foreground",
bodyCell: "py-3.5 text-sm text-foreground",
} as const;