Skip to content

Open-source status page, incident response and uptime monitoring

chore: replace tremor with shadcn charts (#1130)

Maximilian Kaske97bd5dec2237
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index e9ed98298..f9d0e7efd 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -31,7 +31,6 @@ const nextConfig = {
// "@libsql/hrana-client",
// "better-sqlite3"
],
- optimizePackageImports: ["@tremor/react"],
/**
* The default stale revalidate time for SWR requests is 1year.
* We can't rely on the default because the status pages will always return the
diff --git a/apps/web/package.json b/apps/web/package.json
index ab99cca6b..a8048a8a1 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -13,7 +13,6 @@
"@auth/core": "0.34.1",
"@auth/drizzle-adapter": "1.7.0",
"@google-cloud/tasks": "4.0.1",
- "@headlessui/react": "1.7.17",
"@hookform/resolvers": "3.3.1",
"@libsql/client": "0.14.0",
"@openstatus/analytics": "workspace:*",
@@ -43,7 +42,6 @@
"@tanstack/react-query": "5.59.0",
"@tanstack/react-query-devtools": "5.59.0",
"@tanstack/react-table": "8.10.3",
- "@tremor/react": "3.17.4",
"@trpc/client": "11.0.0-rc.553",
"@trpc/next": "11.0.0-rc.553",
"@trpc/react-query": "11.0.0-rc.553",
@@ -93,7 +91,6 @@
"@content-collections/core": "0.7.3",
"@content-collections/mdx": "0.2.0",
"@content-collections/next": "0.2.3",
- "@headlessui/tailwindcss": "0.2.0",
"@openstatus/tsconfig": "workspace:*",
"@types/node": "20.14.8",
"@types/react": "18.3.3",
diff --git a/apps/web/src/app/status-page/[domain]/monitors/page.tsx b/apps/web/src/app/status-page/[domain]/monitors/page.tsx
index 6cefa4465..c6dbc8b1a 100644
--- a/apps/web/src/app/status-page/[domain]/monitors/page.tsx
+++ b/apps/web/src/app/status-page/[domain]/monitors/page.tsx
@@ -89,7 +89,14 @@ export default async function Page({
</Button>
</div>
{group ? (
- <SimpleChart data={group.data} region="ams" />
+ <SimpleChart
+ data={group.data.map((d) => ({
+ timestamp: d.timestamp,
+ // REMINDER: select first region as default
+ // TODO: we could create an average of all regions instead
+ latency: d[monitor.regions?.[0]],
+ }))}
+ />
) : (
<p>missing data</p>
)}
diff --git a/apps/web/src/components/data-table/single-region/columns.tsx b/apps/web/src/components/data-table/single-region/columns.tsx
index f78aad31c..fbbce0ee6 100644
--- a/apps/web/src/components/data-table/single-region/columns.tsx
+++ b/apps/web/src/components/data-table/single-region/columns.tsx
@@ -9,7 +9,7 @@ import type { ColumnDef } from "@tanstack/react-table";
import { DataTableColumnHeader } from "./data-table-column-header";
export interface RegionWithMetrics {
- data: (Partial<Record<Region, string>> & { timestamp: string })[];
+ data: (Partial<Record<Region, number>> & { timestamp: string })[];
metrics?: ResponseTimeMetricsByRegion;
region: Region;
}
@@ -40,7 +40,14 @@ export const columns: ColumnDef<RegionWithMetrics>[] = [
cell: ({ row }) => {
const data = row.getValue("data") as RegionWithMetrics["data"];
const region = row.getValue("region") as Region;
- return <SimpleChart data={data} region={region} />;
+ return (
+ <SimpleChart
+ data={data.map((d) => ({
+ timestamp: d.timestamp,
+ latency: d[region],
+ }))}
+ />
+ );
},
meta: {
headerClassName: "min-w-[300px] w-full",
@@ -55,9 +62,9 @@ export const columns: ColumnDef<RegionWithMetrics>[] = [
cell: ({ row }) => {
const p50 = row.getValue("p50") as number;
return (
- <div className="whitespace-nowrap">
- <span className="font-mono">{formatNumber(p50)}</span>{" "}
- <span className="font-normal text-muted-foreground text-xs">ms</span>
+ <div className="whitespace-nowrap font-mono">
+ <span>{formatNumber(p50)}</span>
+ <span className="text-muted-foreground text-xs">ms</span>
</div>
);
},
@@ -71,9 +78,9 @@ export const columns: ColumnDef<RegionWithMetrics>[] = [
cell: ({ row }) => {
const p95 = row.getValue("p95") as number;
return (
- <div className="whitespace-nowrap">
- <span className="font-mono">{formatNumber(p95)}</span>{" "}
- <span className="font-normal text-muted-foreground text-xs">ms</span>
+ <div className="whitespace-nowrap font-mono">
+ <span>{formatNumber(p95)}</span>
+ <span className="text-muted-foreground text-xs">ms</span>
</div>
);
},
@@ -87,9 +94,9 @@ export const columns: ColumnDef<RegionWithMetrics>[] = [
cell: ({ row }) => {
const p99 = row.getValue("p99") as number;
return (
- <div className="whitespace-nowrap">
- <span className="font-mono">{formatNumber(p99)}</span>{" "}
- <span className="font-normal text-muted-foreground text-xs">ms</span>
+ <div className="whitespace-nowrap font-mono">
+ <span>{formatNumber(p99)}</span>
+ <span className="text-muted-foreground text-xs">ms</span>
</div>
);
},
diff --git a/apps/web/src/components/monitor-charts/chart.tsx b/apps/web/src/components/monitor-charts/chart.tsx
index 7c596f0e1..6b17a17e0 100644
--- a/apps/web/src/components/monitor-charts/chart.tsx
+++ b/apps/web/src/components/monitor-charts/chart.tsx
@@ -1,12 +1,15 @@
"use client";
-import type { CustomTooltipProps, EventProps } from "@tremor/react";
-import { LineChart } from "@tremor/react";
-import { useState } from "react";
-
-import { cn } from "@/lib/utils";
import type { Region } from "@openstatus/db/src/schema/constants";
-import { dataFormatter, regionFormatter } from "./utils";
+import {
+ ChartContainer,
+ ChartLegend,
+ ChartLegendContent,
+ ChartTooltip,
+ ChartTooltipContent,
+} from "@openstatus/ui";
+import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";
+import { regionFormatter } from "./utils";
interface ChartProps {
data: { timestamp: string; [key: string]: string | number }[];
@@ -14,85 +17,132 @@ interface ChartProps {
}
export function Chart({ data, regions }: ChartProps) {
- const [value, setValue] = useState<EventProps | null>(null);
return (
- <LineChart
- data={data}
- yAxisWidth={64}
- index="timestamp"
- categories={regions}
- colors={[
- "blue",
- "amber",
- "cyan",
- "yellow",
- "red",
- "lime",
- "green",
- "purple",
- "indigo",
- "orange",
- "sky",
- "rose",
- "violet",
- "teal",
- "fuchsia",
- "pink",
- "emerald",
- ]}
- onValueChange={setValue}
- valueFormatter={dataFormatter}
- curveType="monotone"
- intervalType="equidistantPreserveStart"
- customTooltip={(props) => customTooltip({ ...props, value })}
- showAnimation={true}
- />
+ <ChartContainer config={chartConfig}>
+ <LineChart
+ accessibilityLayer
+ data={data}
+ margin={{
+ left: 12,
+ right: 12,
+ }}
+ >
+ <ChartLegend
+ content={<ChartLegendContent className="flex-wrap" />}
+ verticalAlign="top"
+ />
+ <YAxis
+ tickLine={false}
+ axisLine={false}
+ scale="sqrt"
+ domain={([dataMin, dataMax]) => {
+ const min = Math.max(Math.abs(dataMin) - 25, 0);
+ const max = dataMax + 100;
+ return [min, max];
+ }}
+ />
+ <XAxis
+ dataKey="timestamp"
+ tickLine={false}
+ tickFormatter={(value) => {
+ return new Date(value).toLocaleDateString("en-US", {
+ day: "numeric",
+ month: "short",
+ hour: "numeric",
+ minute: "numeric",
+ });
+ }}
+ />
+ <CartesianGrid vertical={false} />
+ <ChartTooltip
+ cursor={false}
+ defaultIndex={10}
+ content={
+ <ChartTooltipContent
+ indicator="line"
+ labelFormatter={(value) => {
+ return new Date(value).toLocaleDateString("en-US", {
+ day: "numeric",
+ month: "short",
+ hour: "numeric",
+ minute: "numeric",
+ });
+ }}
+ formatter={(value, name) => (
+ <>
+ <div
+ className="w-1 h-full shrink-0 rounded-[2px] bg-[--color-bg] self-center"
+ style={
+ {
+ "--color-bg": `var(--color-${name})`,
+ } as React.CSSProperties
+ }
+ />
+ {/* {chartConfig[name as keyof typeof chartConfig]?.label || name} */}
+ {regionFormatter(name as Region)}
+ <div className="ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground">
+ {value}
+ <span className="font-normal text-muted-foreground">
+ ms
+ </span>
+ </div>
+ </>
+ )}
+ />
+ }
+ />
+ {regions.map((region) => {
+ return (
+ <Line
+ key={region}
+ dataKey={region}
+ type="monotone"
+ stroke={`var(--color-${region})`}
+ strokeWidth={2}
+ dot={false}
+ />
+ );
+ })}
+ </LineChart>
+ </ChartContainer>
);
}
-const customTooltip = ({
- payload,
- active,
- label,
- value,
-}: CustomTooltipProps & { value: EventProps }) => {
- if (!active || !payload) return null;
- return (
- <div className="rounded-tremor-default border border-tremor-border bg-tremor-background p-2 text-tremor-default shadow-tremor-dropdown dark:border-dark-tremor-border dark:bg-dark-tremor-background dark:text-dark-tremor-default">
- <div className="flex flex-col gap-2">
- <p className="text-tremor-content dark:text-dark-tremor-content">
- {label}
- </p>
- {payload
- .filter((category) => category.type !== undefined) // tremor adds additional data to the payload, we don't want that
- .map((category, idx) => {
- const isActive = value
- ? value.categoryClicked === category.dataKey
- : true;
- return (
- <div
- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
- key={idx}
- className={cn("flex flex-1 gap-2", !isActive && "opacity-60")}
- >
- <div
- className={cn(
- "flex w-1 flex-col rounded",
- `bg-${category.color}-500`,
- )}
- />
- <div className="flex w-full justify-between gap-2">
- <p className="shrink-0 text-tremor-content dark:text-dark-tremor-content">
- {regionFormatter(category.dataKey as Region)}
- </p>
- <p className="font-medium font-mono text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis">
- {dataFormatter(category.value as number)}
- </p>
- </div>
- </div>
- );
- })}
- </div>
- </div>
- );
+// basic tailwindcss 500 colors in hsl format
+const chartConfig: Record<Region, { label: string; color: string }> = {
+ ams: { label: "AMS", color: "hsl(217.2 91.2% 59.8%)" },
+ arn: { label: "ARN", color: "hsl(238.7 83.5% 66.7%)" },
+ atl: { label: "ATL", color: "hsl(258.3 89.5% 66.3%)" },
+ bog: { label: "BOG", color: "hsl(270.7 91% 65.1%)" },
+ bom: { label: "BOM", color: "hsl(292.2 84.1% 60.6%)" },
+ bos: { label: "BOS", color: "hsl(330.4 81.2% 60.4%)" },
+ cdg: { label: "CDG", color: "hsl(349.7 89.2% 60.2%)" },
+ den: { label: "DEN", color: "hsl(215.4 16.3% 46.9%)" },
+ dfw: { label: "DFW", color: "hsl(220 8.9% 46.1%)" },
+ ewr: { label: "EWR", color: "hsl(240 3.8% 46.1%)" },
+ eze: { label: "EZE", color: "hsl(0 0% 45.1%)" },
+ fra: { label: "FRA", color: "hsl(25 5.3% 44.7%)" },
+ gdl: { label: "GDL", color: "hsl(0 84.2% 60.2%)" },
+ gig: { label: "GIG", color: "hsl(24.6 95% 53.1%)" },
+ gru: { label: "GRU", color: "hsl(37.7 92.1% 50.2%)" },
+ hkg: { label: "HKG", color: "hsl(45.4 93.4% 47.5%)" },
+ iad: { label: "IAD", color: "hsl(83.7 80.5% 44.3%)" },
+ jnb: { label: "JNB", color: "hsl(142.1 70.6% 45.3%)" },
+ lax: { label: "LAX", color: "hsl(160.1 84.1% 39.4%)" },
+ lhr: { label: "LHR", color: "hsl(173.4 80.4% 40%)" },
+ mad: { label: "MAD", color: "hsl(188.7 94.5% 42.7%)" },
+ mia: { label: "MIA", color: "hsl(198.6 88.7% 48.4%)" },
+ nrt: { label: "NRT", color: "hsl(217.2 91.2% 59.8%)" },
+ ord: { label: "ORD", color: "hsl(238.7 83.5% 66.7%)" },
+ otp: { label: "OTP", color: "hsl(258.3 89.5% 66.3%)" },
+ phx: { label: "PHX", color: "hsl(270.7 91% 65.1%)" },
+ qro: { label: "QRO", color: "hsl(292.2 84.1% 60.6%)" },
+ scl: { label: "SCL", color: "hsl(330.4 81.2% 60.4%)" },
+ sjc: { label: "SJC", color: "hsl(349.7 89.2% 60.2%)" },
+ sea: { label: "SEA", color: "hsl(215.4 16.3% 46.9%)" },
+ sin: { label: "SIN", color: "hsl(220 8.9% 46.1%)" },
+ syd: { label: "SYD", color: "hsl(240 3.8% 46.1%)" },
+ waw: { label: "WAW", color: "hsl(0 0% 45.1%)" },
+ yul: { label: "YUL", color: "hsl(25 5.3% 44.7%)" },
+ yyz: { label: "YYZ", color: "hsl(0 84.2% 60.2%)" },
};
diff --git a/apps/web/src/components/monitor-charts/region-table.tsx b/apps/web/src/components/monitor-charts/region-table.tsx
index 999a1aff8..9aa89111c 100644
--- a/apps/web/src/components/monitor-charts/region-table.tsx
+++ b/apps/web/src/components/monitor-charts/region-table.tsx
@@ -18,7 +18,7 @@ export interface RegionTableProps {
regions: Region[];
data: {
regions: Region[];
- data: (Partial<Record<Region, string>> & { timestamp: string })[];
+ data: (Partial<Record<Region, number>> & { timestamp: string })[];
};
metricsByRegion: ResponseTimeMetricsByRegion[];
caption?: string;
@@ -60,7 +60,12 @@ export function RegionTable({
</p>
</TableCell>
<TableCell>
- <SimpleChart data={data.data} region={region} />
+ <SimpleChart
+ data={data.data.map((d) => ({
+ timestamp: d.timestamp,
+ latency: d[region],
+ }))}
+ />
</TableCell>
<TableCell className="text-right font-medium">
{formatNumber(metrics?.p50Latency)}
diff --git a/apps/web/src/components/monitor-charts/simple-chart-wrapper.tsx b/apps/web/src/components/monitor-charts/simple-chart-wrapper.tsx
index b62a883c6..e58502e5b 100644
--- a/apps/web/src/components/monitor-charts/simple-chart-wrapper.tsx
+++ b/apps/web/src/components/monitor-charts/simple-chart-wrapper.tsx
@@ -21,7 +21,12 @@ export function SimpleChartWrapper({
<div className="w-24">
<p className="font-mono">{region}</p>
</div>
- <SimpleChart data={group.data} region={region} />
+ <SimpleChart
+ data={group.data.map((d) => ({
+ timestamp: d.timestamp,
+ latency: d[region],
+ }))}
+ />
</div>
);
}
diff --git a/apps/web/src/components/monitor-charts/simple-chart.tsx b/apps/web/src/components/monitor-charts/simple-chart.tsx
index f4355dca8..9d286c639 100644
--- a/apps/web/src/components/monitor-charts/simple-chart.tsx
+++ b/apps/web/src/components/monitor-charts/simple-chart.tsx
@@ -1,71 +1,80 @@
"use client";
-import type { CustomTooltipProps } from "@tremor/react";
-import { LineChart } from "@tremor/react";
+import { Line, LineChart, XAxis } from "recharts";
-import { cn } from "@/lib/utils";
-import { dataFormatter } from "./utils";
+import {
+ ChartContainer,
+ ChartTooltip,
+ ChartTooltipContent,
+} from "@openstatus/ui";
+
+const chartConfig = {
+ latency: {
+ label: "Latency",
+ color: "hsl(var(--status-operational))",
+ },
+};
export interface SimpleChartProps {
- data: { timestamp: string; [key: string]: string }[];
- region: string;
+ data: { timestamp: string; latency: number | undefined }[];
}
// TODO: allow click to open `./details` intercepting route
-export function SimpleChart({ data, region }: SimpleChartProps) {
+export function SimpleChart({ data }: SimpleChartProps) {
return (
- <LineChart
- data={data}
- index="timestamp"
- categories={[region]}
- colors={["green"]}
- className="h-20 w-full" // cannot take parent height
- valueFormatter={dataFormatter}
- curveType="monotone"
- autoMinValue
- showAnimation
- noDataText=""
- showXAxis={false}
- showYAxis={false}
- showGridLines={false}
- showLegend={false}
- customTooltip={customTooltip}
- // FEATURE: it would be nice, if on click, the tooltip would be open
- // onValueChange={(v) => setValue(v)}
- />
+ <ChartContainer config={chartConfig} className="h-20 w-full">
+ <LineChart
+ accessibilityLayer
+ data={data}
+ margin={{
+ left: 12,
+ right: 12,
+ }}
+ >
+ <XAxis dataKey="timestamp" hide />
+ <ChartTooltip
+ cursor={false}
+ content={
+ <ChartTooltipContent
+ indicator="line"
+ labelFormatter={(value) => {
+ return new Date(value).toLocaleDateString("en-US", {
+ day: "numeric",
+ month: "short",
+ hour: "numeric",
+ minute: "numeric",
+ });
+ }}
+ formatter={(value, name) => (
+ <>
+ <div
+ className="w-1 h-full shrink-0 rounded-[2px] bg-[--color-bg] self-center"
+ style={
+ {
+ "--color-bg": `var(--color-${name})`,
+ } as React.CSSProperties
+ }
+ />
+ {chartConfig[name as keyof typeof chartConfig]?.label || name}
+ <div className="ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground">
+ {value}
+ <span className="font-normal text-muted-foreground">
+ ms
+ </span>
+ </div>
+ </>
+ )}
+ />
+ }
+ />
+ <Line
+ dataKey="latency"
+ type="monotone"
+ stroke="var(--color-latency)"
+ strokeWidth={2}
+ dot={false}
+ />
+ </LineChart>
+ </ChartContainer>
);
}
-
-const customTooltip = ({ payload, active, label }: CustomTooltipProps) => {
- if (!active || !payload) return null;
- const data = payload?.[0]; // BUG: when onValueChange is set, payload is duplicated
- if (!data) return null;
-
- return (
- <div className="rounded-tremor-default border border-tremor-border bg-tremor-background p-2 text-tremor-default shadow-tremor-dropdown dark:border-dark-tremor-border dark:bg-dark-tremor-background dark:text-dark-tremor-default">
- <div className="flex flex-col gap-3">
- {[data].map((category, idx) => {
- return (
- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
- <div key={idx} className="flex flex-1 gap-2">
- <div
- className={cn(
- "flex w-1 flex-col rounded",
- `bg-${category.color}-500`,
- )}
- />
- <div className="flex flex-col gap-1">
- <p className="text-tremor-content dark:text-dark-tremor-content">
- {label}
- </p>
- <p className="font-medium font-mono text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis">
- {dataFormatter(category.value as number)}
- </p>
- </div>
- </div>
- );
- })}
- </div>
- </div>
- );
-};
diff --git a/apps/web/src/components/monitor-charts/utils.tsx b/apps/web/src/components/monitor-charts/utils.tsx
index 32b3170dc..68c8d24e3 100644
--- a/apps/web/src/components/monitor-charts/utils.tsx
+++ b/apps/web/src/components/monitor-charts/utils.tsx
@@ -48,7 +48,7 @@ export function groupDataByTimestamp(
}
return acc;
},
- [] as (Partial<Record<Region, string>> & { timestamp: string })[],
+ [] as (Partial<Record<Region, number>> & { timestamp: string })[],
);
// regions are sorted by the flag utf-8 code
diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.ts
index a9cf64916..152d78c4f 100644
--- a/apps/web/tailwind.config.ts
+++ b/apps/web/tailwind.config.ts
@@ -1,17 +1,11 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { fontFamily } = require("tailwindcss/defaultTheme");
-/**
- * TODO: is there a way to merge `tremor` with `shadcn`? At least the colors
- */
-
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: [
"src/**/*.{ts,tsx}",
- /* tremor */
- "./node_modules/@tremor/**/*.{js,ts,jsx,tsx}",
// our vercel integration
"../../packages/integrations/**/*.{ts,tsx}",
"../../packages/ui/**/*.{ts,tsx}",
@@ -19,10 +13,6 @@ module.exports = {
"./node_modules/@openstatus/react/**/*.{js,ts,jsx,tsx}",
],
theme: {
- /* Tremor */
- transparent: "transparent",
- current: "currentColor",
- /* */
container: {
center: true,
padding: "2rem",
@@ -84,101 +74,12 @@ module.exports = {
DEFAULT: "hsl(var(--status-monitoring))",
},
},
- /* Tremor */
- // light mode
- tremor: {
- brand: {
- faint: "#eff6ff", // blue-50
- muted: "#bfdbfe", // blue-200
- subtle: "#60a5fa", // blue-400
- DEFAULT: "#3b82f6", // blue-500
- emphasis: "#1d4ed8", // blue-700
- inverted: "#ffffff", // white
- },
- background: {
- muted: "#f9fafb", // gray-50
- subtle: "#f3f4f6", // gray-100
- DEFAULT: "#ffffff", // white
- emphasis: "#374151", // gray-700
- },
- border: {
- DEFAULT: "#e5e7eb", // gray-200
- },
- ring: {
- DEFAULT: "#e5e7eb", // gray-200
- },
- content: {
- subtle: "#9ca3af", // gray-400
- DEFAULT: "#6b7280", // gray-500
- emphasis: "#374151", // gray-700
- strong: "#111827", // gray-900
- inverted: "#ffffff", // white
- },
- },
- // dark mode
- "dark-tremor": {
- brand: {
- faint: "#0B1229", // custom
- muted: "#172554", // blue-950
- subtle: "#1e40af", // blue-800
- DEFAULT: "#3b82f6", // blue-500
- emphasis: "#60a5fa", // blue-400
- inverted: "#030712", // gray-950
- },
- background: {
- muted: "#131A2B", // custom
- subtle: "#1f2937", // gray-800
- DEFAULT: "#111827", // gray-900
- emphasis: "#d1d5db", // gray-300
- },
- border: {
- DEFAULT: "#1f2937", // gray-800
- },
- ring: {
- DEFAULT: "#1f2937", // gray-800
- },
- content: {
- subtle: "#4b5563", // gray-600
- DEFAULT: "#6b7280", // gray-600
- emphasis: "#e5e7eb", // gray-200
- strong: "#f9fafb", // gray-50
- inverted: "#000000", // black
- },
- },
- /* */
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
- /* Tremor */
- "tremor-small": "0.375rem",
- "tremor-default": "0.5rem",
- "tremor-full": "9999px",
- /* */
- },
- /* Tremor */
- boxShadow: {
- // light
- "tremor-input": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
- "tremor-card":
- "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
- "tremor-dropdown":
- "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
- // dark
- "dark-tremor-input": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
- "dark-tremor-card":
- "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
- "dark-tremor-dropdown":
- "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
},
- fontSize: {
- "tremor-label": ["0.75rem"],
- "tremor-default": ["0.875rem", { lineHeight: "1.25rem" }],
- "tremor-title": ["1.125rem", { lineHeight: "1.75rem" }],
- "tremor-metric": ["1.875rem", { lineHeight: "2.25rem" }],
- },
- /* */
fontFamily: {
sans: ["var(--font-sans)", ...fontFamily.sans],
cal: ["var(--font-calsans)"],
@@ -199,41 +100,9 @@ module.exports = {
},
},
},
- /* Tremor */
- safelist: [
- {
- pattern:
- /^(bg-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
- variants: ["hover", "ui-selected"],
- },
- {
- pattern:
- /^(text-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
- variants: ["hover", "ui-selected"],
- },
- {
- pattern:
- /^(border-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
- variants: ["hover", "ui-selected"],
- },
- {
- pattern:
- /^(ring-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
- },
- {
- pattern:
- /^(stroke-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
- },
- {
- pattern:
- /^(fill-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
- },
- ],
- /* */
plugins: [
require("tailwindcss-animate"),
require("@tailwindcss/container-queries"),
require("@tailwindcss/typography"),
- require("@headlessui/tailwindcss"),
],
};
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 444e527bc..eaddce7c1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -162,7 +162,7 @@ importers:
version: link:../../packages/utils
'@scalar/hono-api-reference':
specifier: 0.5.131
'@t3-oss/env-core':
specifier: 0.7.1
@@ -212,9 +212,6 @@ importers:
'@google-cloud/tasks':
specifier: 4.0.1
version: 4.0.1([email protected])
- '@headlessui/react':
- specifier: 1.7.17
'@hookform/resolvers':
specifier: 3.3.1
@@ -302,9 +299,6 @@ importers:
'@tanstack/react-table':
specifier: 8.10.3
- '@tremor/react':
- specifier: 3.17.4
'@trpc/client':
specifier: 11.0.0-rc.553
version: 11.0.0-rc.553(@trpc/[email protected])
@@ -447,9 +441,6 @@ importers:
'@content-collections/next':
specifier: 0.2.3
- '@headlessui/tailwindcss':
- specifier: 0.2.0
'@openstatus/tsconfig':
specifier: workspace:*
version: link:../../packages/tsconfig
@@ -3023,24 +3014,12 @@ packages:
'@floating-ui/[email protected]':
resolution: {integrity: sha512-wmVfPG5o2xnKDU4jx/m4w5qva9FWHcnZ8BvzEe90D/RpwsJaTAVYPEPdQ8sbr/N8zZTAHlZUTQdqg8ZUbzHmng==}
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-htwHm67Ji5E/pROEAr7f8IKFShuiCKHwUC/UY4vC3I5jiSvGFAYnSYiZO5MlGmads+QqvUkR9ANHEguGrDv72g==}
- peerDependencies:
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
-
'@floating-ui/[email protected]':
resolution: {integrity: sha512-5qhlDvjaLmAst/rKb3VdlCinwTF4EYMiVxuuc/HVUjs46W0zgtbMmAZ1UTsDrRTxRmUEzl92mOtWbeeXL26lSQ==}
peerDependencies:
react: '>=16.8.0'
react-dom: '>=16.8.0'
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-JyNk4A0Ezirq8FlXECvRtQOX/iBe5Ize0W/pLkrZjfHW9GUV7Xnq6zm6fyZuQzaHHqEnVizmvlA96e1/CkZv+w==}
- peerDependencies:
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
-
'@floating-ui/[email protected]':
resolution: {integrity: sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==}
@@ -3063,32 +3042,12 @@ packages:
engines: {node: '>=6'}
hasBin: true
- '@headlessui/[email protected]':
- resolution: {integrity: sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==}
- engines: {node: '>=10'}
- peerDependencies:
- react: ^16 || ^17 || ^18
- react-dom: ^16 || ^17 || ^18
-
- '@headlessui/[email protected]':
- resolution: {integrity: sha512-Ll+8q3OlMJfJbAKM/+/Y2q6PPYbryqNTXDbryx7SXLIDamkF6iQFbriYHga0dY44PvDhvvBWCx1Xj4U5+G4hOw==}
- engines: {node: '>=10'}
- peerDependencies:
- react: ^16 || ^17 || ^18
- react-dom: ^16 || ^17 || ^18
-
'@headlessui/[email protected]':
resolution: {integrity: sha512-fpL830Fln1SykOCboExsWr3JIVeQKieLJ3XytLe/tt1A0XzqUthOftDmjcCYLW62w7mQI7wXcoPXr3tZ9QfGxw==}
engines: {node: '>=10'}
peerDependencies:
tailwindcss: ^3.0
- '@headlessui/[email protected]':
- resolution: {integrity: sha512-2+5+NZ+RzMyrVeCZOxdbvkUSssSxGvcUxphkIfSVLpRiKsj+/63T2TOL9dBYMXVfj/CGr6hMxSRInzXv6YY7sA==}
- engines: {node: '>=10'}
- peerDependencies:
- tailwindcss: ^3.0
-
'@headlessui/[email protected]':
resolution: {integrity: sha512-Hoffjoolq1rY+LOfJ+B/OvkhuBXXBFgd8oBlN+l1TApma2dB0En0ucFZrwQtb33SmcCqd32EQd0y07oziXWNYg==}
engines: {node: '>=10'}
@@ -5225,19 +5184,10 @@ packages:
react: '>=16'
react-dom: '>=16'
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-9XbRLPKgnhMwwmuQMnJMv+5a9sitGNCSEtf/AZXzmJdesYk7XsjYHaEDny+IrJzvPNwZliIIDwCRiaUqR3zzCA==}
- peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
-
'@tanstack/[email protected]':
resolution: {integrity: sha512-hJ55YfJlWbfzRROfcyA/kC1aZr/shsLA8XNAwN8jXylhYWGLnPmiJJISrUfj4dMMWRiFi0xBlnlC7MLH+zSrcw==}
engines: {node: '>=12'}
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-SYXOBTjJb05rXa2vl55TTwO40A6wKu0R5i1qQwhJYNDIqaIGF7D0HsLw+pJAyi2OvntlEIVusx3xtbbgSUi6zg==}
-
'@tanstack/[email protected]':
resolution: {integrity: sha512-vd2A2TnM5lbnWZnHi9B+L2gPtkSeOtJOAw358JqokIH1+v2J7vUAzFVPwB/wrye12RFOurffXu33plm4uQ+JBQ==}
@@ -5284,12 +5234,6 @@ packages:
'@tootallnate/[email protected]':
resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==}
- '@tremor/[email protected]':
- resolution: {integrity: sha512-teItTLbZglXJwakW8XYtRfIXZvp1Y6HKsaD9MC8cJqXG3vf1n6D9aPz3OKyWmDkBYE1Yjo/PTmEHKQIwN+2suQ==}
- peerDependencies:
- react: ^18.0.0
- react-dom: '>=16.6.0'
-
resolution: {integrity: sha512-ICgziilbuAslRgHIVJZ162KaHQRpHXA1C1LPRsNpxPa9aStPF7eThAjn4V3JmDyJsuDLQgAmqLVRImlLPMYR5Q==}
peerDependencies:
@@ -6496,9 +6440,6 @@ packages:
resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==}
engines: {node: '>=0.11'}
- resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==}
-
resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
peerDependencies:
@@ -9376,12 +9317,6 @@ packages:
resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}
hasBin: true
- resolution: {integrity: sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==}
- peerDependencies:
- date-fns: ^2.28.0 || ^3.0.0
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
-
resolution: {integrity: sha512-sK5M5PNZaLiszmACUKUpVu1eX3eFDVV+WLdWQ3BxTPbEC9jhuawmlgpbSXX5dIIQQwJpZ4wwP5+vsMVOwa1IRw==}
peerDependencies:
@@ -9466,12 +9401,6 @@ packages:
react: '>=16.6.0'
react-dom: '>=16.6.0'
- resolution: {integrity: sha512-kQx5g1FVu9knoz1T1WkapjUgFz08qQ/g1OmuWGi3/AoEFfS0kStxrPlZx81urjCXdz2d+1DqLpU6TyLW/Ro04Q==}
- peerDependencies:
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
-
resolution: {integrity: sha512-8GQLa5y0G56kvGQkN7OiaKkjFAhWYVdyFq62ioY2qVtpMrjchVU+3KnqneCyp0+BemOQZkg6WWp/qoCNeEMH6A==}
peerDependencies:
@@ -10164,9 +10093,6 @@ packages:
peerDependencies:
react: ^16.11.0 || ^17.0.0 || ^18.0.0
- resolution: {integrity: sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==}
-
resolution: {integrity: sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==}
@@ -13440,26 +13366,12 @@ snapshots:
'@floating-ui/core': 1.6.4
'@floating-ui/utils': 0.2.4
- dependencies:
- '@floating-ui/dom': 1.5.3
- react: 18.3.1
- react-dom: 18.3.1([email protected])
-
dependencies:
'@floating-ui/dom': 1.5.3
react: 18.3.1
react-dom: 18.3.1([email protected])
- dependencies:
- '@floating-ui/react-dom': 1.3.0([email protected]([email protected]))([email protected])
- aria-hidden: 1.2.3
- react: 18.3.1
- react-dom: 18.3.1([email protected])
- tabbable: 6.2.0
-
'@floating-ui/[email protected]': {}
'@floating-ui/[email protected]': {}
@@ -13492,30 +13404,9 @@ snapshots:
protobufjs: 7.2.5
yargs: 17.7.2
dependencies:
- client-only: 0.0.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
-
- dependencies:
- '@tanstack/react-virtual': 3.0.2([email protected]([email protected]))([email protected])
- client-only: 0.0.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
-
- dependencies:
-
- dependencies:
-
- dependencies:
dependencies:
@@ -15215,9 +15106,9 @@ snapshots:
'@rollup/[email protected]':
optional: true
dependencies:
- '@headlessui/tailwindcss': 0.2.0([email protected]([email protected](@types/[email protected])([email protected])))
+ '@headlessui/tailwindcss': 0.2.0([email protected]([email protected](@types/[email protected])([email protected])))
'@headlessui/vue': 1.7.22([email protected]([email protected]))
'@scalar/draggable': 0.1.4([email protected])
@@ -15253,11 +15144,11 @@ snapshots:
- typescript
- vitest
dependencies:
'@floating-ui/vue': 1.1.1([email protected]([email protected]))
'@headlessui/vue': 1.7.22([email protected]([email protected]))
'@scalar/oas-utils': 0.2.26([email protected])
'@scalar/openapi-parser': 0.7.2
@@ -15342,9 +15233,9 @@ snapshots:
transitivePeerDependencies:
- typescript
dependencies:
hono: 4.5.3
transitivePeerDependencies:
- '@jest/globals'
@@ -16108,16 +15999,8 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
- dependencies:
- '@tanstack/virtual-core': 3.0.0
- react: 18.3.1
- react-dom: 18.3.1([email protected])
-
'@tanstack/[email protected]': {}
- '@tanstack/[email protected]': {}
-
'@tanstack/[email protected]': {}
@@ -16155,21 +16038,6 @@ snapshots:
'@tootallnate/[email protected]': {}
- dependencies:
- '@floating-ui/react': 0.19.2([email protected]([email protected]))([email protected])
- '@headlessui/tailwindcss': 0.2.1([email protected]([email protected](@types/[email protected])([email protected])))
- date-fns: 3.6.0
- react: 18.3.1
- react-day-picker: 8.10.1([email protected])([email protected])
- react-dom: 18.3.1([email protected])
- react-transition-state: 2.1.1([email protected]([email protected]))([email protected])
- tailwind-merge: 1.14.0
- transitivePeerDependencies:
- - tailwindcss
-
dependencies:
'@trpc/server': 11.0.0-rc.553
@@ -17574,8 +17442,6 @@ snapshots:
dependencies:
'@babel/runtime': 7.23.2
-
dependencies:
ms: 2.0.0
@@ -20945,6 +20811,14 @@ snapshots:
postcss: 8.4.38
ts-node: 10.9.2(@types/[email protected])([email protected])
+ dependencies:
+ lilconfig: 2.1.0
+ yaml: 2.3.3
+ optionalDependencies:
+ postcss: 8.4.38
+ ts-node: 10.9.2(@types/[email protected])([email protected])
+
dependencies:
lilconfig: 2.1.0
@@ -21219,11 +21093,6 @@ snapshots:
minimist: 1.2.8
strip-json-comments: 2.0.1
- dependencies:
- date-fns: 3.6.0
- react: 18.3.1
-
dependencies:
date-fns: 2.30.0
@@ -21329,11 +21198,6 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
- dependencies:
- react: 18.3.1
- react-dom: 18.3.1([email protected])
-
dependencies:
'@swc/helpers': 0.5.3
@@ -22284,8 +22148,6 @@ snapshots:
react: 18.3.1
use-sync-external-store: 1.2.0([email protected])
-
@@ -22431,6 +22293,33 @@ snapshots:
transitivePeerDependencies:
- ts-node
+ dependencies:
+ '@alloc/quick-lru': 5.2.0
+ arg: 5.0.2
+ chokidar: 3.5.3
+ didyoumean: 1.2.2
+ dlv: 1.1.3
+ fast-glob: 3.3.1
+ glob-parent: 6.0.2
+ is-glob: 4.0.3
+ jiti: 1.21.0
+ lilconfig: 2.1.0
+ micromatch: 4.0.5
+ normalize-path: 3.0.0
+ object-hash: 3.0.0
+ picocolors: 1.0.0
+ postcss: 8.4.38
+ postcss-import: 15.1.0([email protected])
+ postcss-js: 4.0.1([email protected])
+ postcss-nested: 6.0.1([email protected])
+ postcss-selector-parser: 6.0.13
+ resolve: 1.22.8
+ sucrase: 3.34.0
+ transitivePeerDependencies:
+ - ts-node
+
dependencies:
chownr: 1.1.4
@@ -22629,6 +22518,25 @@ snapshots:
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
+ dependencies:
+ '@cspotcode/source-map-support': 0.8.1
+ '@tsconfig/node10': 1.0.11
+ '@tsconfig/node12': 1.0.11
+ '@tsconfig/node14': 1.0.3
+ '@tsconfig/node16': 1.0.4
+ '@types/node': 20.8.0
+ acorn: 8.11.3
+ acorn-walk: 8.3.2
+ arg: 4.1.3
+ create-require: 1.1.1
+ diff: 4.0.2
+ make-error: 1.3.6
+ typescript: 5.7.2
+ v8-compile-cache-lib: 3.0.1
+ yn: 3.1.1
+ optional: true
+
optionalDependencies:
typescript: 5.7.2