@tryghost/shade 0.1.0-alpha.56 → 0.1.0-alpha.57
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/es/components/patterns/gh-chart.js +2 -4
- package/es/components/patterns/gh-chart.js.map +1 -1
- package/es/components/ui/avatar.js +2 -7
- package/es/components/ui/avatar.js.map +1 -1
- package/es/lib/ds-utils.js +1 -1
- package/es/lib/ds-utils.js.map +1 -1
- package/es/tokens.js +10 -0
- package/es/tokens.js.map +1 -1
- package/package.json +1 -1
- package/styles.css +11 -12
- package/tailwind.theme.css +7 -3
- package/theme-variables.css +13 -235
- package/types/components/patterns/gh-chart.d.ts.map +1 -1
- package/types/components/ui/avatar.d.ts.map +1 -1
- package/types/lib/ds-utils.d.ts +1 -1
- package/types/lib/ds-utils.d.ts.map +1 -1
- package/types/tokens.d.ts +1 -1
- package/types/tokens.d.ts.map +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { calculateYAxisWidth, cn, formatNumber, getYRange } from "../../lib/ds-utils.js";
|
|
2
2
|
import { formatDisplayDateWithRange } from "../../lib/date-utils.js";
|
|
3
|
-
import { useShade } from "../../providers/shade-context.js";
|
|
4
3
|
import { AlignedAxisTick, ChartContainer, ChartTooltip } from "../ui/chart.js";
|
|
5
4
|
import { Area, AreaChart, CartesianGrid, XAxis, YAxis } from "recharts";
|
|
6
5
|
import { TrendingDown, TrendingUp } from "lucide-react";
|
|
@@ -51,7 +50,6 @@ var GhCustomTooltipContent = ({ active, payload, range, showHours, color }) => {
|
|
|
51
50
|
});
|
|
52
51
|
};
|
|
53
52
|
var GhAreaChart = ({ data, range, yAxisRange, color = "var(--chart-blue)", id, className, syncId, allowDataOverflow = false, showYAxisValues = true, showHorizontalLines = true, dataFormatter = formatNumber, showHours = false, tooltipContent }) => {
|
|
54
|
-
const { admin7Design } = useShade();
|
|
55
53
|
const yRange = yAxisRange || [getYRange(data).min, getYRange(data).max];
|
|
56
54
|
const chartConfig = { value: { label: data[0]?.label || "Value" } };
|
|
57
55
|
const baseValue = yRange[0];
|
|
@@ -128,11 +126,11 @@ var GhAreaChart = ({ data, range, yAxisRange, color = "var(--chart-blue)", id, c
|
|
|
128
126
|
children: [/* @__PURE__ */ jsx("stop", {
|
|
129
127
|
offset: "5%",
|
|
130
128
|
stopColor: color,
|
|
131
|
-
stopOpacity:
|
|
129
|
+
stopOpacity: .5
|
|
132
130
|
}), /* @__PURE__ */ jsx("stop", {
|
|
133
131
|
offset: "95%",
|
|
134
132
|
stopColor: color,
|
|
135
|
-
stopOpacity:
|
|
133
|
+
stopOpacity: .5
|
|
136
134
|
})]
|
|
137
135
|
}) }),
|
|
138
136
|
/* @__PURE__ */ jsx(Area, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gh-chart.js","names":[],"sources":["../../../src/components/patterns/gh-chart.tsx"],"sourcesContent":["import {\n calculateYAxisWidth,\n cn,\n formatDisplayDateWithRange,\n formatNumber,\n getYRange,\n} from '@/lib/utils';\nimport React from 'react';\nimport { AlignedAxisTick, ChartConfig, ChartContainer, ChartTooltip } from '@/components/ui/chart';\nimport { Area, AreaChart, CartesianGrid, XAxis, YAxis } from 'recharts';\nimport { TrendingDown, TrendingUp } from 'lucide-react';\
|
|
1
|
+
{"version":3,"file":"gh-chart.js","names":[],"sources":["../../../src/components/patterns/gh-chart.tsx"],"sourcesContent":["import {\n calculateYAxisWidth,\n cn,\n formatDisplayDateWithRange,\n formatNumber,\n getYRange,\n} from '@/lib/utils';\nimport React from 'react';\nimport { AlignedAxisTick, ChartConfig, ChartContainer, ChartTooltip } from '@/components/ui/chart';\nimport { Area, AreaChart, CartesianGrid, XAxis, YAxis } from 'recharts';\nimport { TrendingDown, TrendingUp } from 'lucide-react';\n\n// A Ghost specific charts for analytics re-using ShadCN/UI and Recharts components\n\ninterface TooltipPayload {\n value: number;\n payload: {\n date?: string;\n formattedValue?: string;\n label?: string;\n diffValue?: null | number;\n formattedDiffValue?: null | string;\n };\n}\n\ninterface TooltipProps {\n active?: boolean;\n payload?: TooltipPayload[];\n range?: number;\n showHours?: boolean;\n color?: string;\n}\n\nconst GhCustomTooltipContent = ({ active, payload, range, showHours, color }: TooltipProps) => {\n if (!active || !payload?.length) {\n return null;\n }\n\n const { date, formattedValue, label, diffValue, formattedDiffValue } = payload[0].payload;\n const displayValue = formattedValue || payload[0].value;\n\n return (\n <div className=\"min-w-[120px] rounded-lg border bg-background px-3 py-2 shadow-lg\">\n {date && (\n <div className=\"text-sm text-foreground\">\n {formatDisplayDateWithRange(date, range || 0, showHours)}\n </div>\n )}\n <div className=\"flex items-start gap-2\">\n <span\n className=\"mt-1.5 inline-block size-2 rounded-full opacity-50\"\n style={{ backgroundColor: color || 'var(--chart-blue)' }}\n ></span>\n <div className=\"flex grow items-start justify-between gap-5\">\n {label && <div className=\"text-sm text-muted-foreground\">{label}</div>}\n <div className=\"flex flex-col items-end font-mono font-medium\">\n {displayValue}\n\n {diffValue ? (\n diffValue < 0 && (\n <div className=\"flex items-center gap-0.5 text-state-danger\">\n <TrendingDown size={14} strokeWidth={1.5} />\n <span>{formattedDiffValue}</span>\n </div>\n )\n ) : (\n <></>\n )}\n {diffValue ? (\n diffValue > 0 && (\n <div className=\"flex items-center gap-0.5 text-state-success\">\n <TrendingUp size={14} strokeWidth={1.5} />\n <span>{formattedDiffValue}</span>\n </div>\n )\n ) : (\n <></>\n )}\n {/* {diffValue !== undefined ? diffValue === 0 && (\n <span>—</span>\n ) : <></>} */}\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport type GhAreaChartDataItem = {\n date: string;\n value: number;\n formattedValue: string;\n label: string;\n};\n\ninterface GhAreaChartProps {\n data: GhAreaChartDataItem[];\n range: number;\n yAxisRange?: [number, number];\n color?: string;\n id: string;\n className?: string;\n syncId?: string;\n allowDataOverflow?: boolean;\n showYAxisValues?: boolean;\n showHorizontalLines?: boolean;\n dataFormatter?: (value: number) => string;\n showHours?: boolean;\n tooltipContent?: React.ReactElement;\n}\n\nconst GhAreaChart: React.FC<GhAreaChartProps> = ({\n data,\n range,\n yAxisRange,\n color = 'var(--chart-blue)',\n id,\n className,\n syncId,\n allowDataOverflow = false,\n showYAxisValues = true,\n showHorizontalLines = true,\n dataFormatter = formatNumber,\n showHours = false,\n tooltipContent,\n}) => {\n const yRange = yAxisRange || [getYRange(data).min, getYRange(data).max];\n const chartConfig = {\n value: {\n label: data[0]?.label || 'Value',\n },\n } satisfies ChartConfig;\n\n // Use yRange as domain and set baseValue to the minimum\n const baseValue = yRange[0];\n\n // Calculate midpoint and create ticks array\n const midValue = (yRange[0] + yRange[1]) / 2;\n const isWholeMid = Number.isInteger(midValue);\n const yTicks = isWholeMid ? [yRange[0], midValue, yRange[1]] : yRange;\n\n const xTickHoursOnly = showHours && range === 1;\n const xTicks = data.length > 0 ? [...new Set([data[0].date, data[data.length - 1].date])] : [];\n\n return (\n <ChartContainer className={cn('w-full', className)} config={chartConfig}>\n <AreaChart\n data={data}\n margin={{\n left: 4,\n right: 4,\n top: showHorizontalLines ? 24 : 4,\n }}\n syncId={syncId}\n >\n <CartesianGrid horizontal={showHorizontalLines} stroke=\"var(--border)\" vertical={false} />\n <XAxis\n axisLine={{ stroke: 'var(--border)', strokeWidth: 1 }}\n dataKey=\"date\"\n interval={0}\n tick={(props) => (\n <AlignedAxisTick\n {...props}\n formatter={(value) =>\n formatDisplayDateWithRange(String(value), range, showHours, xTickHoursOnly)\n }\n textAnchor={xTicks.length === 1 ? 'middle' : undefined}\n />\n )}\n tickFormatter={(value) => formatDisplayDateWithRange(String(value), range, showHours)}\n tickLine={false}\n tickMargin={10}\n ticks={xTicks}\n />\n <YAxis\n allowDataOverflow={allowDataOverflow}\n axisLine={false}\n domain={allowDataOverflow ? undefined : yRange}\n scale=\"linear\"\n tickFormatter={(value: number) => {\n return dataFormatter(value);\n }}\n tickLine={false}\n ticks={yTicks}\n width={showYAxisValues ? calculateYAxisWidth(yRange, dataFormatter) : 0}\n />\n <ChartTooltip\n content={\n tooltipContent || (\n <GhCustomTooltipContent color={color} range={range} showHours={showHours} />\n )\n }\n cursor={true}\n isAnimationActive={false}\n position={{ y: 10 }}\n />\n <defs>\n <linearGradient id={`fillChart-${id}`} x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\">\n {/* Charts are flat: an even tint under the line. */}\n <stop offset=\"5%\" stopColor={color} stopOpacity={0.5} />\n <stop offset=\"95%\" stopColor={color} stopOpacity={0.5} />\n </linearGradient>\n </defs>\n <Area\n baseValue={baseValue}\n dataKey=\"value\"\n fill={`url(#fillChart-${id})`}\n fillOpacity={0.2}\n isAnimationActive={false}\n stroke={color}\n strokeWidth={1.5}\n type=\"linear\"\n />\n </AreaChart>\n </ChartContainer>\n );\n};\n\nexport { GhAreaChart, GhCustomTooltipContent };\n\nexport type { TooltipProps };\n"],"mappings":";;;;;;;;AAiCA,IAAM,0BAA0B,EAAE,QAAQ,SAAS,OAAO,WAAW,YAA0B;CAC7F,IAAI,CAAC,UAAU,CAAC,SAAS,QACvB,OAAO;CAGT,MAAM,EAAE,MAAM,gBAAgB,OAAO,WAAW,uBAAuB,QAAQ,EAAE,CAAC;CAClF,MAAM,eAAe,kBAAkB,QAAQ,EAAE,CAAC;CAElD,OACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACG,QACC,oBAAC,OAAD;GAAK,WAAU;aACZ,2BAA2B,MAAM,SAAS,GAAG,SAAS;EACpD,CAAA,GAEP,qBAAC,OAAD;GAAK,WAAU;aAAf,CACE,oBAAC,QAAD;IACE,WAAU;IACV,OAAO,EAAE,iBAAiB,SAAS,oBAAoB;GAClD,CAAA,GACP,qBAAC,OAAD;IAAK,WAAU;cAAf,CACG,SAAS,oBAAC,OAAD;KAAK,WAAU;eAAiC;IAAW,CAAA,GACrE,qBAAC,OAAD;KAAK,WAAU;eAAf;MACG;MAEA,YACC,YAAY,KACV,qBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,oBAAC,cAAD;QAAc,MAAM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
import { cn, stringToTonalAvatarClasses } from "../../lib/ds-utils.js";
|
|
3
2
|
import { User } from "lucide-react";
|
|
4
3
|
import * as React$1 from "react";
|
|
5
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -33,18 +32,14 @@ function ValidatedAvatarImage({ src }) {
|
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
34
|
var Avatar = React$1.forwardRef(({ className, children, src, initials, colorSeed, ...props }, ref) => {
|
|
36
|
-
const { admin7Design } = useShade();
|
|
37
35
|
const hasInitials = !!initials;
|
|
38
36
|
const seed = colorSeed || initials || "";
|
|
39
|
-
const tonal = hasInitials && admin7Design;
|
|
40
|
-
const bgColor = hasInitials && !tonal ? stringToHslColor(seed, "45", "55") : void 0;
|
|
41
37
|
return /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
|
|
42
38
|
ref,
|
|
43
39
|
className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
44
40
|
...props,
|
|
45
41
|
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AvatarFallback, {
|
|
46
|
-
className: cn("text-xs text-muted-foreground md:text-sm [&_svg]:size-3 md:[&_svg]:size-4", hasInitials && "font-semibold", hasInitials &&
|
|
47
|
-
style: bgColor ? { backgroundColor: bgColor } : void 0,
|
|
42
|
+
className: cn("text-xs text-muted-foreground md:text-sm [&_svg]:size-3 md:[&_svg]:size-4", hasInitials && "font-semibold", hasInitials && stringToTonalAvatarClasses(seed)),
|
|
48
43
|
children: initials ?? /* @__PURE__ */ jsx(User, {})
|
|
49
44
|
}), src && /* @__PURE__ */ jsx(ValidatedAvatarImage, { src })] })
|
|
50
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","names":[],"sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { User } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport {
|
|
1
|
+
{"version":3,"file":"avatar.js","names":[],"sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { User } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { stringToTonalAvatarClasses } from '@/lib/ds-utils';\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn('aspect-square size-full', className)}\n {...props}\n />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn(\n 'flex size-full items-center justify-center rounded-full bg-muted [&_svg]:size-4',\n className,\n )}\n {...props}\n />\n));\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n// Gravatar's `d=blank` parameter returns a 1×1 transparent PNG when no avatar\n// exists for the given email. The HTTP response is 200, so Radix's AvatarImage\n// would treat it as a valid image and hide the fallback. We render the image\n// ourselves and only reveal it once it loads with non-trivial dimensions.\nfunction ValidatedAvatarImage({ src }: { src: string }) {\n const [loaded, setLoaded] = React.useState(false);\n\n React.useEffect(() => {\n setLoaded(false);\n }, [src]);\n\n return (\n <img\n alt=\"\"\n className={cn('absolute inset-0 size-full object-cover', !loaded && 'invisible')}\n src={src}\n onLoad={(e) => {\n const { naturalWidth, naturalHeight } = e.currentTarget;\n if (naturalWidth > 1 && naturalHeight > 1) {\n setLoaded(true);\n }\n }}\n />\n );\n}\n\ninterface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {\n src?: string | null;\n initials?: string | null;\n /**\n * Seeds the fallback background hue. Defaults to the initials, but callers\n * should pass the richer identity string they derived the initials from\n * (name/email) so distinct people keep distinct hues.\n */\n colorSeed?: string | null;\n}\n\nconst Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(\n ({ className, children, src, initials, colorSeed, ...props }, ref) => {\n const hasInitials = !!initials;\n const seed = colorSeed || initials || '';\n\n return (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n >\n {children ?? (\n <>\n <AvatarFallback\n className={cn(\n 'text-xs text-muted-foreground md:text-sm [&_svg]:size-3 md:[&_svg]:size-4',\n hasInitials && 'font-semibold',\n hasInitials && stringToTonalAvatarClasses(seed),\n )}\n >\n {initials ?? <User />}\n </AvatarFallback>\n {src && <ValidatedAvatarImage src={src} />}\n </>\n )}\n </AvatarPrimitive.Root>\n );\n },\n);\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"mappings":";;;;;;AAOA,IAAM,cAAc,QAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GAAG,2BAA2B,SAAS;CAClD,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,gBAAgB,MAAM;AAEhD,IAAM,iBAAiB,QAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,UAAjB;CACO;CACL,WAAW,GACT,mFACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc,gBAAgB,SAAS;AAMtD,SAAS,qBAAqB,EAAE,OAAwB;CACtD,MAAM,CAAC,QAAQ,aAAa,QAAM,SAAS,KAAK;CAEhD,QAAM,gBAAgB;EACpB,UAAU,KAAK;CACjB,GAAG,CAAC,GAAG,CAAC;CAER,OACE,oBAAC,OAAD;EACE,KAAI;EACJ,WAAW,GAAG,2CAA2C,CAAC,UAAU,WAAW;EAC1E;EACL,SAAS,MAAM;GACb,MAAM,EAAE,cAAc,kBAAkB,EAAE;GAC1C,IAAI,eAAe,KAAK,gBAAgB,GACtC,UAAU,IAAI;EAElB;CACD,CAAA;AAEL;AAaA,IAAM,SAAS,QAAM,YAClB,EAAE,WAAW,UAAU,KAAK,UAAU,WAAW,GAAG,SAAS,QAAQ;CACpE,MAAM,cAAc,CAAC,CAAC;CACtB,MAAM,OAAO,aAAa,YAAY;CAEtC,OACE,oBAAC,gBAAgB,MAAjB;EACO;EACL,WAAW,GAAG,8DAA8D,SAAS;EACrF,GAAI;YAEH,YACC,qBAAA,YAAA,EAAA,UAAA,CACE,oBAAC,gBAAD;GACE,WAAW,GACT,6EACA,eAAe,iBACf,eAAe,2BAA2B,IAAI,CAChD;aAEC,YAAY,oBAAC,MAAD,CAAO,CAAA;EACN,CAAA,GACf,OAAO,oBAAC,sBAAD,EAA2B,IAAM,CAAA,CACzC,EAAA,CAAA;CAEgB,CAAA;AAE1B,CACF;AACA,OAAO,cAAc,gBAAgB,KAAK"}
|
package/es/lib/ds-utils.js
CHANGED
|
@@ -108,7 +108,7 @@ var TONAL_AVATAR_CLASSES = [
|
|
|
108
108
|
"bg-purple-200 text-purple-800 dark:bg-purple-800 dark:text-purple-200",
|
|
109
109
|
"bg-pink-200 text-pink-800 dark:bg-pink-800 dark:text-pink-200"
|
|
110
110
|
];
|
|
111
|
-
/**
|
|
111
|
+
/** Initials avatar colours: one palette family picked by the string's hash. */
|
|
112
112
|
var stringToTonalAvatarClasses = (str) => TONAL_AVATAR_CLASSES[Math.abs(stringHash(str)) % TONAL_AVATAR_CLASSES.length];
|
|
113
113
|
var getYRange = (data) => {
|
|
114
114
|
if (!data.length) return {
|
package/es/lib/ds-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-utils.js","names":[],"sources":["../../src/lib/ds-utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/* Generic helper functions\n/* -------------------------------------------------------------------------- */\n\n// Helper to merge Tailwind classes\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\n// Helper to debounce a function\nexport function debounce<T extends unknown[]>(\n func: (...args: T) => void,\n wait: number,\n immediate: boolean = false,\n): (...args: T) => void {\n let timeoutId: ReturnType<typeof setTimeout> | null;\n\n return function (this: unknown, ...args: T): void {\n const later = () => {\n timeoutId = null;\n if (!immediate) {\n func.apply(this, args);\n }\n };\n\n const callNow = immediate && !timeoutId;\n\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n timeoutId = setTimeout(later, wait);\n\n if (callNow) {\n func.apply(this, args);\n }\n };\n}\n\n// Helper to find scroll parent of element\nexport function getScrollParent(node: Node | null): HTMLElement | null {\n if (!node) {\n return null;\n }\n\n if (node instanceof HTMLElement) {\n const overflowY = window.getComputedStyle(node).overflowY;\n const isScrollable = overflowY !== 'visible' && overflowY !== 'hidden';\n\n if (isScrollable && node.scrollHeight >= node.clientHeight) {\n return node;\n }\n }\n\n return getScrollParent(node.parentNode) || document.body;\n}\n\n/* Data formatters\n/* -------------------------------------------------------------------------- */\n\n// Helper to convert kebab-case to PascalCase with numbers\nexport const kebabToPascalCase = (str: string): string => {\n const processed = str.replace(/[-_]([a-z0-9])/gi, (_, char) => char.toUpperCase());\n return processed.charAt(0).toUpperCase() + processed.slice(1);\n};\n\n// Helper function to format timestamp\nexport const formatTimestamp = (timestamp: string) => {\n const date = new Date(timestamp);\n const now = new Date();\n\n // Handle invalid dates\n if (isNaN(date.getTime())) {\n return 'Unknown';\n }\n\n // Both dates are now in the same timezone context (local)\n // The timestamp from DB is UTC but Date constructor handles the conversion\n const diffMs = now.getTime() - date.getTime();\n\n // Handle negative differences (future dates)\n if (diffMs < 0) {\n return 'Just now';\n }\n\n const diffMins = Math.floor(diffMs / (1000 * 60));\n const diffHours = Math.floor(diffMs / (1000 * 60 * 60));\n const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));\n\n if (diffMins < 1) {\n return 'Just now';\n } else if (diffMins < 60) {\n return `${diffMins} min ago`;\n } else if (diffHours < 24) {\n return `${diffHours} hr ago`;\n } else if (diffDays === 1) {\n return 'Yesterday';\n } else if (diffDays < 7) {\n return `${diffDays} days ago`;\n } else {\n return date.toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: diffDays > 365 ? 'numeric' : undefined,\n });\n }\n};\n\n// Add thousands indicator to numbers\nexport const formatNumber = (\n value: number,\n options?: Pick<Intl.NumberFormatOptions, 'minimumFractionDigits' | 'maximumFractionDigits'>,\n): string => {\n if (isNaN(value) || !isFinite(value)) {\n return '0';\n }\n\n const formattedValue = options ? value : Math.round(value);\n return new Intl.NumberFormat('en-US', options).format(formattedValue);\n};\n\n// Abbreviate numbers\nexport function abbreviateNumber(number: number): string {\n const num = Number(number);\n\n if (Number.isNaN(num) || !Number.isFinite(number)) {\n return formatNumber(num);\n }\n\n if (num < 0) {\n return `-${abbreviateNumber(-num)}`;\n }\n\n if (num < 1000) {\n return formatNumber(num);\n }\n\n if (num < 1000000) {\n // For thousands: round to nearest 100 for 10.3k, nearest 1000 for 101k\n const roundTo = num < 100000 ? 100 : 1000;\n\n const rounded = Math.round(num / roundTo) * roundTo;\n const abbreviated = rounded / 1000;\n\n if (abbreviated === 1000) {\n return '1M';\n }\n\n const formatted = abbreviated % 1 === 0 ? abbreviated.toString() : abbreviated.toFixed(1);\n return `${formatted}k`;\n }\n\n // For millions: round to nearest 100,000 for 1.1M\n const roundTo = 100000;\n const rounded = Math.round(num / roundTo) * roundTo;\n const abbreviated = rounded / 1000000;\n const formatted = abbreviated % 1 === 0 ? abbreviated.toString() : abbreviated.toFixed(1);\n return `${formatted}M`;\n}\n\n// Format time duration\nexport const formatDuration = (seconds: number): string => {\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n const remainingSeconds = Math.floor(seconds % 60);\n\n if (hours <= 0) {\n if (minutes <= 0) {\n return `${remainingSeconds}s`;\n }\n return `${minutes}m ${remainingSeconds}s`;\n }\n\n return `${hours}h ${minutes}m ${remainingSeconds}s`;\n};\n\n// Format a fraction to percentage\nexport const formatPercentage = (value: number) => {\n const percentage = value * 100;\n if (percentage === 0) {\n return '0%';\n } else if (percentage < 0.1) {\n return `${percentage.toFixed(2)}%`;\n } else if (percentage < 1) {\n return `${percentage.toFixed(1)}%`;\n }\n const rounded = Math.round(percentage);\n return `${new Intl.NumberFormat('en-US').format(rounded)}%`;\n};\n\n// Converts a country code to corresponding flag emoji\nexport function getCountryFlag(countryCode: string) {\n if (\n !countryCode ||\n countryCode === null ||\n countryCode.toUpperCase() === 'NULL' ||\n countryCode === 'ᴺᵁᴸᴸ' ||\n countryCode === 'ᴺᵁ'\n ) {\n return '🏳️';\n }\n return countryCode\n .toUpperCase()\n .replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397));\n}\n\nconst stringHash = (str: string) => {\n let hash = 0;\n for (let i = 0; i < str.length; i++) {\n hash = str.charCodeAt(i) + ((hash << 5) - hash);\n }\n return hash;\n};\n\nexport const stringToHslColor = (str: string, saturation: string, lightness: string) => {\n const h = stringHash(str) % 360;\n return 'hsl(' + h + ', ' + saturation + '%, ' + lightness + '%)';\n};\n\n// Tonal pairings (Shapeshifter style): a palette family's 200 behind its 800,\n// reversed in dark mode.\n// Written out in full so Tailwind generates every class.\nconst TONAL_AVATAR_CLASSES = [\n 'bg-red-200 text-red-800 dark:bg-red-800 dark:text-red-200',\n 'bg-orange-200 text-orange-800 dark:bg-orange-800 dark:text-orange-200',\n 'bg-yellow-200 text-yellow-800 dark:bg-yellow-800 dark:text-yellow-200',\n 'bg-green-200 text-green-800 dark:bg-green-800 dark:text-green-200',\n 'bg-blue-200 text-blue-800 dark:bg-blue-800 dark:text-blue-200',\n 'bg-purple-200 text-purple-800 dark:bg-purple-800 dark:text-purple-200',\n 'bg-pink-200 text-pink-800 dark:bg-pink-800 dark:text-pink-200',\n];\n\n/** The admin7Design initials avatar colours: one palette family picked by the string's hash. */\nexport const stringToTonalAvatarClasses = (str: string) =>\n TONAL_AVATAR_CLASSES[Math.abs(stringHash(str)) % TONAL_AVATAR_CLASSES.length];\n\n/* Chart formatters\n/* -------------------------------------------------------------------------- */\n\nexport const getYRange = (data: { value: number }[]): { min: number; max: number } => {\n if (!data.length) {\n return { min: 0, max: 1 };\n }\n\n const values = data.map((d) => Number(d.value));\n let min = Math.min(...values);\n let max = Math.max(...values);\n\n if (min === max) {\n const value = min;\n return { min: Math.max(0, value - 1), max: value + 1 };\n }\n\n // Use a percentage-based padding (10% of the range)\n const padding = 0.02;\n\n // Add padding and ensure min is not negative\n min = Math.max(0, min - min * padding);\n max = max + max * padding;\n\n const range = max - min;\n\n // Determine the order of magnitude for rounding based on the range\n const rangeMagnitude = Math.floor(Math.log10(range));\n // Always round to at least 10s, but use larger steps for bigger ranges\n // const roundTo = Math.max(10, Math.pow(10, rangeMagnitude));\n const roundTo = Math.pow(10, rangeMagnitude);\n\n // Round min and max to the appropriate precision\n const roundedMax = Math.round(max / roundTo) * roundTo;\n max = roundedMax < max ? Math.ceil(max / roundTo) * roundTo : roundedMax;\n\n const roundedMin = Math.round(min / roundTo) * roundTo;\n min = roundedMin > min ? Math.floor(min / roundTo) * roundTo : roundedMin;\n min = Math.max(0, min);\n\n // Ensure we have a visible range even after rounding\n if (min === max) {\n const midPoint = (min + max) / 2;\n const smallRange = Math.max(Math.abs(midPoint) * padding, roundTo);\n min = Math.max(0, Math.floor(midPoint - smallRange));\n max = Math.ceil(midPoint + smallRange);\n }\n\n // Final safety check to ensure min is never negative\n min = Math.max(0, min);\n\n return { min, max };\n};\n\n// Calculates the width needed for the Y-axis based on the formatted tick values\nexport const calculateYAxisWidth = (\n ticks: number[],\n formatter: (value: number) => string,\n): number => {\n if (!ticks.length) {\n return 40;\n }\n\n // Get the longest formatted tick value\n const maxFormattedLength = Math.max(...ticks.map((tick) => formatter(tick).length));\n\n // Approximate width based on character count (assuming monospace font)\n // Add padding for safety\n const width = Math.max(20, maxFormattedLength * 8 + 20);\n return width;\n};\n"],"mappings":";;;AAOA,SAAgB,GAAG,GAAG,QAAsB;CAC1C,OAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAGA,SAAgB,SACd,MACA,MACA,YAAqB,OACC;CACtB,IAAI;CAEJ,OAAO,SAAyB,GAAG,MAAe;EAChD,MAAM,cAAc;GAClB,YAAY;GACZ,IAAI,CAAC,WACH,KAAK,MAAM,MAAM,IAAI;EAEzB;EAEA,MAAM,UAAU,aAAa,CAAC;EAE9B,IAAI,WACF,aAAa,SAAS;EAGxB,YAAY,WAAW,OAAO,IAAI;EAElC,IAAI,SACF,KAAK,MAAM,MAAM,IAAI;CAEzB;AACF;AAGA,SAAgB,gBAAgB,MAAuC;CACrE,IAAI,CAAC,MACH,OAAO;CAGT,IAAI,gBAAgB,aAAa;EAC/B,MAAM,YAAY,OAAO,iBAAiB,IAAI,CAAC,CAAC;EAGhD,IAFqB,cAAc,aAAa,cAAc,YAE1C,KAAK,gBAAgB,KAAK,cAC5C,OAAO;CAEX;CAEA,OAAO,gBAAgB,KAAK,UAAU,KAAK,SAAS;AACtD;AAMA,IAAa,qBAAqB,QAAwB;CACxD,MAAM,YAAY,IAAI,QAAQ,qBAAqB,GAAG,SAAS,KAAK,YAAY,CAAC;CACjF,OAAO,UAAU,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,MAAM,CAAC;AAC9D;AAGA,IAAa,mBAAmB,cAAsB;CACpD,MAAM,OAAO,IAAI,KAAK,SAAS;CAC/B,MAAM,sBAAM,IAAI,KAAK;CAGrB,IAAI,MAAM,KAAK,QAAQ,CAAC,GACtB,OAAO;CAKT,MAAM,SAAS,IAAI,QAAQ,IAAI,KAAK,QAAQ;CAG5C,IAAI,SAAS,GACX,OAAO;CAGT,MAAM,WAAW,KAAK,MAAM,UAAU,MAAO,GAAG;CAChD,MAAM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W;CACX,IAAI,CAAC,MAAM,QACT,OAAO;CAIT,MAAM,qBAAqB,KAAK,IAAI,GAAG,MAAM,KAAK,SAAS,UAAU,IAAI,CAAC,CAAC,MAAM,CAAC;CAKlF,OADc,KAAK,IAAI,IAAI,qBAAqB,IAAI,EAC7C;AACT"}
|
|
1
|
+
{"version":3,"file":"ds-utils.js","names":[],"sources":["../../src/lib/ds-utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/* Generic helper functions\n/* -------------------------------------------------------------------------- */\n\n// Helper to merge Tailwind classes\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\n// Helper to debounce a function\nexport function debounce<T extends unknown[]>(\n func: (...args: T) => void,\n wait: number,\n immediate: boolean = false,\n): (...args: T) => void {\n let timeoutId: ReturnType<typeof setTimeout> | null;\n\n return function (this: unknown, ...args: T): void {\n const later = () => {\n timeoutId = null;\n if (!immediate) {\n func.apply(this, args);\n }\n };\n\n const callNow = immediate && !timeoutId;\n\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n timeoutId = setTimeout(later, wait);\n\n if (callNow) {\n func.apply(this, args);\n }\n };\n}\n\n// Helper to find scroll parent of element\nexport function getScrollParent(node: Node | null): HTMLElement | null {\n if (!node) {\n return null;\n }\n\n if (node instanceof HTMLElement) {\n const overflowY = window.getComputedStyle(node).overflowY;\n const isScrollable = overflowY !== 'visible' && overflowY !== 'hidden';\n\n if (isScrollable && node.scrollHeight >= node.clientHeight) {\n return node;\n }\n }\n\n return getScrollParent(node.parentNode) || document.body;\n}\n\n/* Data formatters\n/* -------------------------------------------------------------------------- */\n\n// Helper to convert kebab-case to PascalCase with numbers\nexport const kebabToPascalCase = (str: string): string => {\n const processed = str.replace(/[-_]([a-z0-9])/gi, (_, char) => char.toUpperCase());\n return processed.charAt(0).toUpperCase() + processed.slice(1);\n};\n\n// Helper function to format timestamp\nexport const formatTimestamp = (timestamp: string) => {\n const date = new Date(timestamp);\n const now = new Date();\n\n // Handle invalid dates\n if (isNaN(date.getTime())) {\n return 'Unknown';\n }\n\n // Both dates are now in the same timezone context (local)\n // The timestamp from DB is UTC but Date constructor handles the conversion\n const diffMs = now.getTime() - date.getTime();\n\n // Handle negative differences (future dates)\n if (diffMs < 0) {\n return 'Just now';\n }\n\n const diffMins = Math.floor(diffMs / (1000 * 60));\n const diffHours = Math.floor(diffMs / (1000 * 60 * 60));\n const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));\n\n if (diffMins < 1) {\n return 'Just now';\n } else if (diffMins < 60) {\n return `${diffMins} min ago`;\n } else if (diffHours < 24) {\n return `${diffHours} hr ago`;\n } else if (diffDays === 1) {\n return 'Yesterday';\n } else if (diffDays < 7) {\n return `${diffDays} days ago`;\n } else {\n return date.toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: diffDays > 365 ? 'numeric' : undefined,\n });\n }\n};\n\n// Add thousands indicator to numbers\nexport const formatNumber = (\n value: number,\n options?: Pick<Intl.NumberFormatOptions, 'minimumFractionDigits' | 'maximumFractionDigits'>,\n): string => {\n if (isNaN(value) || !isFinite(value)) {\n return '0';\n }\n\n const formattedValue = options ? value : Math.round(value);\n return new Intl.NumberFormat('en-US', options).format(formattedValue);\n};\n\n// Abbreviate numbers\nexport function abbreviateNumber(number: number): string {\n const num = Number(number);\n\n if (Number.isNaN(num) || !Number.isFinite(number)) {\n return formatNumber(num);\n }\n\n if (num < 0) {\n return `-${abbreviateNumber(-num)}`;\n }\n\n if (num < 1000) {\n return formatNumber(num);\n }\n\n if (num < 1000000) {\n // For thousands: round to nearest 100 for 10.3k, nearest 1000 for 101k\n const roundTo = num < 100000 ? 100 : 1000;\n\n const rounded = Math.round(num / roundTo) * roundTo;\n const abbreviated = rounded / 1000;\n\n if (abbreviated === 1000) {\n return '1M';\n }\n\n const formatted = abbreviated % 1 === 0 ? abbreviated.toString() : abbreviated.toFixed(1);\n return `${formatted}k`;\n }\n\n // For millions: round to nearest 100,000 for 1.1M\n const roundTo = 100000;\n const rounded = Math.round(num / roundTo) * roundTo;\n const abbreviated = rounded / 1000000;\n const formatted = abbreviated % 1 === 0 ? abbreviated.toString() : abbreviated.toFixed(1);\n return `${formatted}M`;\n}\n\n// Format time duration\nexport const formatDuration = (seconds: number): string => {\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n const remainingSeconds = Math.floor(seconds % 60);\n\n if (hours <= 0) {\n if (minutes <= 0) {\n return `${remainingSeconds}s`;\n }\n return `${minutes}m ${remainingSeconds}s`;\n }\n\n return `${hours}h ${minutes}m ${remainingSeconds}s`;\n};\n\n// Format a fraction to percentage\nexport const formatPercentage = (value: number) => {\n const percentage = value * 100;\n if (percentage === 0) {\n return '0%';\n } else if (percentage < 0.1) {\n return `${percentage.toFixed(2)}%`;\n } else if (percentage < 1) {\n return `${percentage.toFixed(1)}%`;\n }\n const rounded = Math.round(percentage);\n return `${new Intl.NumberFormat('en-US').format(rounded)}%`;\n};\n\n// Converts a country code to corresponding flag emoji\nexport function getCountryFlag(countryCode: string) {\n if (\n !countryCode ||\n countryCode === null ||\n countryCode.toUpperCase() === 'NULL' ||\n countryCode === 'ᴺᵁᴸᴸ' ||\n countryCode === 'ᴺᵁ'\n ) {\n return '🏳️';\n }\n return countryCode\n .toUpperCase()\n .replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397));\n}\n\nconst stringHash = (str: string) => {\n let hash = 0;\n for (let i = 0; i < str.length; i++) {\n hash = str.charCodeAt(i) + ((hash << 5) - hash);\n }\n return hash;\n};\n\nexport const stringToHslColor = (str: string, saturation: string, lightness: string) => {\n const h = stringHash(str) % 360;\n return 'hsl(' + h + ', ' + saturation + '%, ' + lightness + '%)';\n};\n\n// Tonal pairings (Shapeshifter style): a palette family's 200 behind its 800,\n// reversed in dark mode.\n// Written out in full so Tailwind generates every class.\nconst TONAL_AVATAR_CLASSES = [\n 'bg-red-200 text-red-800 dark:bg-red-800 dark:text-red-200',\n 'bg-orange-200 text-orange-800 dark:bg-orange-800 dark:text-orange-200',\n 'bg-yellow-200 text-yellow-800 dark:bg-yellow-800 dark:text-yellow-200',\n 'bg-green-200 text-green-800 dark:bg-green-800 dark:text-green-200',\n 'bg-blue-200 text-blue-800 dark:bg-blue-800 dark:text-blue-200',\n 'bg-purple-200 text-purple-800 dark:bg-purple-800 dark:text-purple-200',\n 'bg-pink-200 text-pink-800 dark:bg-pink-800 dark:text-pink-200',\n];\n\n/** Initials avatar colours: one palette family picked by the string's hash. */\nexport const stringToTonalAvatarClasses = (str: string) =>\n TONAL_AVATAR_CLASSES[Math.abs(stringHash(str)) % TONAL_AVATAR_CLASSES.length];\n\n/* Chart formatters\n/* -------------------------------------------------------------------------- */\n\nexport const getYRange = (data: { value: number }[]): { min: number; max: number } => {\n if (!data.length) {\n return { min: 0, max: 1 };\n }\n\n const values = data.map((d) => Number(d.value));\n let min = Math.min(...values);\n let max = Math.max(...values);\n\n if (min === max) {\n const value = min;\n return { min: Math.max(0, value - 1), max: value + 1 };\n }\n\n // Use a percentage-based padding (10% of the range)\n const padding = 0.02;\n\n // Add padding and ensure min is not negative\n min = Math.max(0, min - min * padding);\n max = max + max * padding;\n\n const range = max - min;\n\n // Determine the order of magnitude for rounding based on the range\n const rangeMagnitude = Math.floor(Math.log10(range));\n // Always round to at least 10s, but use larger steps for bigger ranges\n // const roundTo = Math.max(10, Math.pow(10, rangeMagnitude));\n const roundTo = Math.pow(10, rangeMagnitude);\n\n // Round min and max to the appropriate precision\n const roundedMax = Math.round(max / roundTo) * roundTo;\n max = roundedMax < max ? Math.ceil(max / roundTo) * roundTo : roundedMax;\n\n const roundedMin = Math.round(min / roundTo) * roundTo;\n min = roundedMin > min ? Math.floor(min / roundTo) * roundTo : roundedMin;\n min = Math.max(0, min);\n\n // Ensure we have a visible range even after rounding\n if (min === max) {\n const midPoint = (min + max) / 2;\n const smallRange = Math.max(Math.abs(midPoint) * padding, roundTo);\n min = Math.max(0, Math.floor(midPoint - smallRange));\n max = Math.ceil(midPoint + smallRange);\n }\n\n // Final safety check to ensure min is never negative\n min = Math.max(0, min);\n\n return { min, max };\n};\n\n// Calculates the width needed for the Y-axis based on the formatted tick values\nexport const calculateYAxisWidth = (\n ticks: number[],\n formatter: (value: number) => string,\n): number => {\n if (!ticks.length) {\n return 40;\n }\n\n // Get the longest formatted tick value\n const maxFormattedLength = Math.max(...ticks.map((tick) => formatter(tick).length));\n\n // Approximate width based on character count (assuming monospace font)\n // Add padding for safety\n const width = Math.max(20, maxFormattedLength * 8 + 20);\n return width;\n};\n"],"mappings":";;;AAOA,SAAgB,GAAG,GAAG,QAAsB;CAC1C,OAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAGA,SAAgB,SACd,MACA,MACA,YAAqB,OACC;CACtB,IAAI;CAEJ,OAAO,SAAyB,GAAG,MAAe;EAChD,MAAM,cAAc;GAClB,YAAY;GACZ,IAAI,CAAC,WACH,KAAK,MAAM,MAAM,IAAI;EAEzB;EAEA,MAAM,UAAU,aAAa,CAAC;EAE9B,IAAI,WACF,aAAa,SAAS;EAGxB,YAAY,WAAW,OAAO,IAAI;EAElC,IAAI,SACF,KAAK,MAAM,MAAM,IAAI;CAEzB;AACF;AAGA,SAAgB,gBAAgB,MAAuC;CACrE,IAAI,CAAC,MACH,OAAO;CAGT,IAAI,gBAAgB,aAAa;EAC/B,MAAM,YAAY,OAAO,iBAAiB,IAAI,CAAC,CAAC;EAGhD,IAFqB,cAAc,aAAa,cAAc,YAE1C,KAAK,gBAAgB,KAAK,cAC5C,OAAO;CAEX;CAEA,OAAO,gBAAgB,KAAK,UAAU,KAAK,SAAS;AACtD;AAMA,IAAa,qBAAqB,QAAwB;CACxD,MAAM,YAAY,IAAI,QAAQ,qBAAqB,GAAG,SAAS,KAAK,YAAY,CAAC;CACjF,OAAO,UAAU,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,MAAM,CAAC;AAC9D;AAGA,IA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AM,OAAO;EAC/B,MAAM,aAAa,KAAK,IAAI,KAAK,IAAI,QAAQ,IAAI,SAAS,OAAO;EACjE,MAAM,KAAK,IAAI,GAAG,KAAK,MAAM,WAAW,UAAU,CAAC;EACnD,MAAM,KAAK,KAAK,WAAW,UAAU;CACvC;CAGA,MAAM,KAAK,IAAI,GAAG,GAAG;CAErB,OAAO;EAAE;EAAK;CAAI;AACpB;AAGA,IAAa,uBACX,OACA,cACW;CACX,IAAI,CAAC,MAAM,QACT,OAAO;CAIT,MAAM,qBAAqB,KAAK,IAAI,GAAG,MAAM,KAAK,SAAS,UAAU,IAAI,CAAC,CAAC,MAAM,CAAC;CAKlF,OADc,KAAK,IAAI,IAAI,qBAAqB,IAAI,EAC7C;AACT"}
|
package/es/tokens.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
var SHADE_TOKEN_NAMES = [
|
|
3
3
|
"accent",
|
|
4
4
|
"accent-foreground",
|
|
5
|
+
"action-accent",
|
|
6
|
+
"action-accent-foreground",
|
|
7
|
+
"action-accent-hover",
|
|
5
8
|
"animate-accordion-down",
|
|
6
9
|
"animate-accordion-up",
|
|
7
10
|
"animate-fade-in",
|
|
@@ -48,6 +51,9 @@ var SHADE_TOKEN_NAMES = [
|
|
|
48
51
|
"chart-yellow",
|
|
49
52
|
"color-accent",
|
|
50
53
|
"color-accent-foreground",
|
|
54
|
+
"color-action-accent",
|
|
55
|
+
"color-action-accent-foreground",
|
|
56
|
+
"color-action-accent-hover",
|
|
51
57
|
"color-background",
|
|
52
58
|
"color-black",
|
|
53
59
|
"color-blue",
|
|
@@ -176,6 +182,8 @@ var SHADE_TOKEN_NAMES = [
|
|
|
176
182
|
"color-purple-700",
|
|
177
183
|
"color-purple-800",
|
|
178
184
|
"color-purple-900",
|
|
185
|
+
"color-reaction-foreground",
|
|
186
|
+
"color-reaction-liked",
|
|
179
187
|
"color-red",
|
|
180
188
|
"color-red-100",
|
|
181
189
|
"color-red-200",
|
|
@@ -329,6 +337,8 @@ var SHADE_TOKEN_NAMES = [
|
|
|
329
337
|
"radius-trend-badge",
|
|
330
338
|
"radius-xl",
|
|
331
339
|
"radius-xs",
|
|
340
|
+
"reaction-foreground",
|
|
341
|
+
"reaction-liked",
|
|
332
342
|
"ring",
|
|
333
343
|
"secondary",
|
|
334
344
|
"secondary-foreground",
|
package/es/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'character-count',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-character-count',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-event-email-icon',\n 'color-event-email-surface',\n 'color-event-engagement-icon',\n 'color-event-engagement-surface',\n 'color-event-gain-icon',\n 'color-event-gain-surface',\n 'color-event-gift-icon',\n 'color-event-gift-surface',\n 'color-event-loss-icon',\n 'color-event-loss-surface',\n 'color-event-warning-icon',\n 'color-event-warning-surface',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-map-surface',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-publish-accent',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-border',\n 'color-state-warning-fill',\n 'color-state-warning-foreground',\n 'color-state-warning-surface',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'event-email-icon',\n 'event-email-surface',\n 'event-engagement-icon',\n 'event-engagement-surface',\n 'event-gain-icon',\n 'event-gain-surface',\n 'event-gift-icon',\n 'event-gift-surface',\n 'event-loss-icon',\n 'event-loss-surface',\n 'event-warning-icon',\n 'event-warning-surface',\n 'field-border',\n 'field-chip-internal-border',\n 'field-chip-internal-surface',\n 'field-chip-surface',\n 'field-disabled-surface',\n 'field-readonly-surface',\n 'field-shadow',\n 'field-surface',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'font-weight-settings-heading',\n 'font-weight-title',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-field',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-field',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'tab-inactive',\n 'tab-inactive-hover',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-field',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-section-heading',\n 'text-section-heading-lg',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-section-heading',\n 'tracking-settings-heading',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
|
|
1
|
+
{"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'action-accent',\n 'action-accent-foreground',\n 'action-accent-hover',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'character-count',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-action-accent',\n 'color-action-accent-foreground',\n 'color-action-accent-hover',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-character-count',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-event-email-icon',\n 'color-event-email-surface',\n 'color-event-engagement-icon',\n 'color-event-engagement-surface',\n 'color-event-gain-icon',\n 'color-event-gain-surface',\n 'color-event-gift-icon',\n 'color-event-gift-surface',\n 'color-event-loss-icon',\n 'color-event-loss-surface',\n 'color-event-warning-icon',\n 'color-event-warning-surface',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-map-surface',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-publish-accent',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-reaction-foreground',\n 'color-reaction-liked',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-border',\n 'color-state-warning-fill',\n 'color-state-warning-foreground',\n 'color-state-warning-surface',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'event-email-icon',\n 'event-email-surface',\n 'event-engagement-icon',\n 'event-engagement-surface',\n 'event-gain-icon',\n 'event-gain-surface',\n 'event-gift-icon',\n 'event-gift-surface',\n 'event-loss-icon',\n 'event-loss-surface',\n 'event-warning-icon',\n 'event-warning-surface',\n 'field-border',\n 'field-chip-internal-border',\n 'field-chip-internal-surface',\n 'field-chip-surface',\n 'field-disabled-surface',\n 'field-readonly-surface',\n 'field-shadow',\n 'field-surface',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'font-weight-settings-heading',\n 'font-weight-title',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-field',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'reaction-foreground',\n 'reaction-liked',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-field',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'tab-inactive',\n 'tab-inactive-hover',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-field',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-section-heading',\n 'text-section-heading-lg',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-section-heading',\n 'tracking-settings-heading',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -95,15 +95,14 @@
|
|
|
95
95
|
text-transform: uppercase;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
/*
|
|
98
|
+
/* Colored banners are a flat color with darker shades of it for text and no
|
|
99
99
|
outline. Text inside takes those shades, whichever tone it asks for. */
|
|
100
|
-
[data-
|
|
101
|
-
[data-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
) {
|
|
100
|
+
[data-slot='banner']:is(
|
|
101
|
+
[data-variant='info'],
|
|
102
|
+
[data-variant='success'],
|
|
103
|
+
[data-variant='warning'],
|
|
104
|
+
[data-variant='destructive']
|
|
105
|
+
) {
|
|
107
106
|
--foreground: var(--banner-foreground);
|
|
108
107
|
--text-primary: var(--banner-foreground);
|
|
109
108
|
--text-secondary: var(--banner-secondary);
|
|
@@ -114,25 +113,25 @@
|
|
|
114
113
|
color: var(--banner-foreground);
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
[data-
|
|
116
|
+
[data-slot='banner'][data-variant='info'] {
|
|
118
117
|
--banner-surface: var(--banner-info-surface);
|
|
119
118
|
--banner-foreground: var(--banner-info-foreground);
|
|
120
119
|
--banner-secondary: var(--banner-info-secondary);
|
|
121
120
|
}
|
|
122
121
|
|
|
123
|
-
[data-
|
|
122
|
+
[data-slot='banner'][data-variant='success'] {
|
|
124
123
|
--banner-surface: var(--banner-success-surface);
|
|
125
124
|
--banner-foreground: var(--banner-success-foreground);
|
|
126
125
|
--banner-secondary: var(--banner-success-secondary);
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
[data-
|
|
128
|
+
[data-slot='banner'][data-variant='warning'] {
|
|
130
129
|
--banner-surface: var(--banner-warning-surface);
|
|
131
130
|
--banner-foreground: var(--banner-warning-foreground);
|
|
132
131
|
--banner-secondary: var(--banner-warning-secondary);
|
|
133
132
|
}
|
|
134
133
|
|
|
135
|
-
[data-
|
|
134
|
+
[data-slot='banner'][data-variant='destructive'] {
|
|
136
135
|
--banner-surface: var(--banner-destructive-surface);
|
|
137
136
|
--banner-foreground: var(--banner-destructive-foreground);
|
|
138
137
|
--banner-secondary: var(--banner-destructive-secondary);
|
package/tailwind.theme.css
CHANGED
|
@@ -22,15 +22,14 @@
|
|
|
22
22
|
--color-transparent: transparent;
|
|
23
23
|
--color-current: currentColor;
|
|
24
24
|
--color-white: oklch(100% 0 0);
|
|
25
|
-
/*
|
|
25
|
+
/* Shared color palette. Gray keeps Shade's lightness at each step
|
|
26
26
|
and is a slightly cool neutral (hue 255, chroma 0.0032 at most, about an
|
|
27
27
|
eighth of the previous slate greys). It departs from Shapeshifter's warm
|
|
28
28
|
sand on purpose, so Admin doesn't read brown or dated. The
|
|
29
29
|
colour families are Shapeshifter's ramps (TryGhost/shapeshifter
|
|
30
30
|
src/styles/tokens.css at 53cd116): red, orange = coral, yellow,
|
|
31
31
|
green = emerald, blue = sky, purple = indigo, pink. Lime has no
|
|
32
|
-
Shapeshifter family and is unchanged.
|
|
33
|
-
theme-variables.css under [data-admin7-design='false']. */
|
|
32
|
+
Shapeshifter family and is unchanged. */
|
|
34
33
|
--color-black: oklch(16% 0.002 255);
|
|
35
34
|
--color-gray-50: oklch(99% 0.0004 255);
|
|
36
35
|
--color-gray-100: oklch(97.83% 0.0006 255);
|
|
@@ -297,6 +296,11 @@
|
|
|
297
296
|
--color-muted-foreground: var(--muted-foreground);
|
|
298
297
|
--color-accent: var(--accent);
|
|
299
298
|
--color-accent-foreground: var(--accent-foreground);
|
|
299
|
+
--color-action-accent: var(--action-accent);
|
|
300
|
+
--color-action-accent-hover: var(--action-accent-hover);
|
|
301
|
+
--color-action-accent-foreground: var(--action-accent-foreground);
|
|
302
|
+
--color-reaction-foreground: var(--reaction-foreground);
|
|
303
|
+
--color-reaction-liked: var(--reaction-liked);
|
|
300
304
|
--color-destructive: var(--destructive);
|
|
301
305
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
302
306
|
--color-border: var(--border);
|
package/theme-variables.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Runtime semantic variables shared by styles.css and tokens.css. Declared on
|
|
2
2
|
every Shade scope too (ShadeApp, portals), so they resolve against the
|
|
3
|
-
palette in effect there
|
|
3
|
+
shared light or dark palette in effect there. */
|
|
4
4
|
:root,
|
|
5
5
|
[data-admin7-design] {
|
|
6
6
|
--background: var(--color-white);
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
--secondary-foreground: var(--color-black);
|
|
20
20
|
--accent: var(--color-gray-100);
|
|
21
21
|
--accent-foreground: var(--color-black);
|
|
22
|
+
--action-accent: var(--color-purple-600);
|
|
23
|
+
--action-accent-hover: var(--color-purple-700);
|
|
24
|
+
--action-accent-foreground: var(--color-white);
|
|
25
|
+
--reaction-foreground: var(--color-gray-900);
|
|
26
|
+
--reaction-liked: var(--color-pink-600);
|
|
22
27
|
--destructive: var(--color-red-600);
|
|
23
28
|
--destructive-foreground: var(--color-white);
|
|
24
29
|
--ring: var(--color-gray-600);
|
|
@@ -200,8 +205,8 @@
|
|
|
200
205
|
--mobile-navbar-height: 64px;
|
|
201
206
|
}
|
|
202
207
|
|
|
203
|
-
/* admin7Design off: the previous
|
|
204
|
-
|
|
208
|
+
/* admin7Design off: retain the previous control treatment and card corners.
|
|
209
|
+
The color palette is shared by both designs. Delete with the flag. */
|
|
205
210
|
[data-admin7-design='false'] {
|
|
206
211
|
--shadow-glass-floating:
|
|
207
212
|
inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 -1px 0 rgb(255 255 255 / 0.12),
|
|
@@ -211,131 +216,13 @@
|
|
|
211
216
|
inset 0 1px 0 rgb(255 255 255 / 0), inset 0 -1px 0 rgb(255 255 255 / 0),
|
|
212
217
|
0 0 0 1px rgb(0 0 0 / 0.06), 0 8px 24px -10px rgb(0 0 0 / 0), 0 4px 12px -4px rgb(0 0 0 / 0),
|
|
213
218
|
0 2px 6px rgb(0 0 0 / 0);
|
|
214
|
-
--color-black: oklch(20.38% 0.0067 258.4);
|
|
215
|
-
--color-gray-50: oklch(98.54% 0.0013 286.4);
|
|
216
|
-
--color-gray-100: oklch(96.97% 0.0017 247.8);
|
|
217
|
-
--color-gray-200: oklch(94.74% 0.0042 236.5);
|
|
218
|
-
--color-gray-300: oklch(90.78% 0.007 247.9);
|
|
219
|
-
--color-gray-400: oklch(86.68% 0.0095 242.9);
|
|
220
|
-
--color-gray-500: oklch(77.55% 0.0174 250.9);
|
|
221
|
-
--color-gray-600: oklch(70.33% 0.0223 248.1);
|
|
222
|
-
--color-gray-700: oklch(62.98% 0.0286 248.3);
|
|
223
|
-
--color-gray-800: oklch(52.97% 0.0232 250.6);
|
|
224
|
-
--color-gray-900: oklch(36.77% 0.0153 248.2);
|
|
225
|
-
--color-gray-950: oklch(25.95% 0.0063 258.4);
|
|
226
|
-
--color-red-50: oklch(96.69% 0.0162 17.4);
|
|
227
|
-
--color-red-100: oklch(93.22% 0.0343 17.8);
|
|
228
|
-
--color-red-200: oklch(86.97% 0.0702 15.3);
|
|
229
|
-
--color-red-300: oklch(78.48% 0.1262 15.5);
|
|
230
|
-
--color-red-400: oklch(64.57% 0.2253 21.5);
|
|
231
|
-
--color-red-500: oklch(61.27% 0.2462 26.4);
|
|
232
|
-
--color-red-600: oklch(56.5% 0.2269 26.4);
|
|
233
|
-
--color-red-700: oklch(48.49% 0.1939 26);
|
|
234
|
-
--color-red-800: oklch(40.18% 0.1591 25.2);
|
|
235
|
-
--color-red-900: oklch(32.24% 0.1264 24);
|
|
236
|
-
--color-orange-50: oklch(97.96% 0.0158 73.7);
|
|
237
|
-
--color-orange-100: oklch(95.42% 0.0372 75.2);
|
|
238
|
-
--color-orange-200: oklch(90.15% 0.0729 70.7);
|
|
239
|
-
--color-orange-300: oklch(83.66% 0.1165 66.3);
|
|
240
|
-
--color-orange-400: oklch(75.76% 0.159 55.9);
|
|
241
|
-
--color-orange-500: oklch(70.49% 0.1867 47.6);
|
|
242
|
-
--color-orange-600: oklch(64.61% 0.1943 41.1);
|
|
243
|
-
--color-orange-700: oklch(55.34% 0.1739 38.4);
|
|
244
|
-
--color-orange-800: oklch(46.98% 0.143 37.3);
|
|
245
|
-
--color-orange-900: oklch(40.84% 0.1165 38.2);
|
|
246
|
-
--color-yellow-50: oklch(98.27% 0.0207 88.7);
|
|
247
|
-
--color-yellow-100: oklch(96.22% 0.0384 83.8);
|
|
248
|
-
--color-yellow-200: oklch(92.42% 0.0867 87);
|
|
249
|
-
--color-yellow-300: oklch(88.67% 0.1322 87.2);
|
|
250
|
-
--color-yellow-400: oklch(84.87% 0.1508 81.3);
|
|
251
|
-
--color-yellow-500: oklch(82.04% 0.1655 77.3);
|
|
252
|
-
--color-yellow-600: oklch(76.61% 0.1628 73.4);
|
|
253
|
-
--color-yellow-700: oklch(65.82% 0.1419 70.8);
|
|
254
|
-
--color-yellow-800: oklch(54.44% 0.1173 70.8);
|
|
255
|
-
--color-yellow-900: oklch(43.45% 0.0931 72);
|
|
256
|
-
--color-green-50: oklch(98.14% 0.0199 150.1);
|
|
257
|
-
--color-green-100: oklch(95.89% 0.0375 148.9);
|
|
258
|
-
--color-green-200: oklch(91.68% 0.0857 148.3);
|
|
259
|
-
--color-green-300: oklch(85.66% 0.1484 146.8);
|
|
260
|
-
--color-green-400: oklch(79.04% 0.1936 145.5);
|
|
261
|
-
--color-green-500: oklch(74.81% 0.2213 144.4);
|
|
262
|
-
--color-green-600: oklch(66.9% 0.1961 144.5);
|
|
263
|
-
--color-green-700: oklch(55.58% 0.1604 144.5);
|
|
264
|
-
--color-green-800: oklch(47.03% 0.1318 144.9);
|
|
265
|
-
--color-green-900: oklch(39.31% 0.107 145.1);
|
|
266
|
-
--color-blue-50: oklch(97.83% 0.0134 226.6);
|
|
267
|
-
--color-blue-100: oklch(95.23% 0.0302 226);
|
|
268
|
-
--color-blue-200: oklch(90.71% 0.0587 227.1);
|
|
269
|
-
--color-blue-300: oklch(84.34% 0.0975 229.7);
|
|
270
|
-
--color-blue-400: oklch(77.95% 0.1376 231.3);
|
|
271
|
-
--color-blue-500: oklch(74.03% 0.1559 235.9);
|
|
272
|
-
--color-blue-600: oklch(68.26% 0.1518 238.2);
|
|
273
|
-
--color-blue-700: oklch(59.77% 0.1942 261.4);
|
|
274
|
-
--color-blue-800: oklch(48.99% 0.1869 262.4);
|
|
275
|
-
--color-blue-900: oklch(39.35% 0.1428 262.6);
|
|
276
|
-
--color-purple-50: oklch(96.95% 0.0183 306.7);
|
|
277
|
-
--color-purple-100: oklch(92.64% 0.0437 304.5);
|
|
278
|
-
--color-purple-200: oklch(84.44% 0.095 303.8);
|
|
279
|
-
--color-purple-300: oklch(74.11% 0.163 302.8);
|
|
280
|
-
--color-purple-400: oklch(64.94% 0.2182 298.5);
|
|
281
|
-
--color-purple-500: oklch(58.34% 0.2584 295.5);
|
|
282
|
-
--color-purple-600: oklch(53.55% 0.2835 291.5);
|
|
283
|
-
--color-purple-700: oklch(46.38% 0.2511 291);
|
|
284
|
-
--color-purple-800: oklch(38.02% 0.1986 292.9);
|
|
285
|
-
--color-purple-900: oklch(31.05% 0.157 294.7);
|
|
286
|
-
--color-pink-50: oklch(96.86% 0.0179 351.1);
|
|
287
|
-
--color-pink-100: oklch(93.43% 0.0402 347.9);
|
|
288
|
-
--color-pink-200: oklch(85.75% 0.091 350.5);
|
|
289
|
-
--color-pink-300: oklch(77.49% 0.1514 354.2);
|
|
290
|
-
--color-pink-400: oklch(70.96% 0.2092 355);
|
|
291
|
-
--color-pink-500: oklch(65.62% 0.2437 359.2);
|
|
292
|
-
--color-pink-600: oklch(63.03% 0.2514 3.9);
|
|
293
|
-
--color-pink-700: oklch(53.87% 0.217 3.4);
|
|
294
|
-
--color-pink-800: oklch(44.07% 0.1778 2.5);
|
|
295
|
-
--color-pink-900: oklch(35.27% 0.1427 0.8);
|
|
296
|
-
--destructive: var(--color-red-500);
|
|
297
|
-
--modal-backdrop: rgb(98 109 121 / 0.2);
|
|
298
|
-
--form-sheet-backdrop: rgb(98 109 121 / 0.08);
|
|
299
|
-
--preview-gradient-start: var(--color-white);
|
|
300
|
-
--surface-glass: rgb(248 248 248 / 0.5);
|
|
301
|
-
--state-info: var(--color-blue-500);
|
|
302
|
-
--state-success: var(--color-green-500);
|
|
303
|
-
--publish-accent: var(--state-success);
|
|
304
|
-
--character-count: var(--state-success);
|
|
305
|
-
--state-warning: var(--color-yellow-500);
|
|
306
|
-
--state-warning-surface: color-mix(in oklab, var(--state-warning) 10%, transparent);
|
|
307
|
-
--state-warning-border: color-mix(in oklab, var(--state-warning) 40%, transparent);
|
|
308
|
-
--state-warning-fill: var(--state-warning);
|
|
309
|
-
--badge-warning: color-mix(in oklab, var(--state-warning) 20%, transparent);
|
|
310
|
-
--badge-warning-hover: color-mix(in oklab, var(--state-warning) 30%, transparent);
|
|
311
|
-
--badge-warning-foreground: var(--color-yellow-600);
|
|
312
|
-
--state-danger: var(--color-red-500);
|
|
313
|
-
--chart-1: hsl(201 100% 50%);
|
|
314
|
-
--chart-2: hsl(201 88% 70%);
|
|
315
|
-
--chart-3: hsl(201 85% 80%);
|
|
316
|
-
--chart-4: hsl(201 82% 90%);
|
|
317
|
-
--chart-5: hsl(201 87% 94%);
|
|
318
|
-
--chart-gray: hsl(210 13% 88%);
|
|
319
|
-
--chart-darkgray: hsl(210 13% 79%);
|
|
320
|
-
--chart-rose: hsl(345 100% 56%);
|
|
321
|
-
--chart-orange: hsl(25 100% 50%);
|
|
322
|
-
--chart-amber: hsl(36 100% 50%);
|
|
323
|
-
--chart-yellow: hsl(47 100% 50%);
|
|
324
|
-
--chart-green: hsl(144 100% 39%);
|
|
325
|
-
--chart-teal: hsl(174 100% 37%);
|
|
326
|
-
--chart-blue: hsl(198 100% 51%);
|
|
327
|
-
--chart-darkblue: hsl(226 91% 61%);
|
|
328
|
-
--chart-purple: hsl(273 100% 64%);
|
|
329
219
|
--button-pressed: var(--button-hover);
|
|
330
|
-
--banner-glow-start: rgb(75 225 226);
|
|
331
|
-
--banner-glow-end: rgb(202 103 255);
|
|
332
220
|
--control-outline-shadow:
|
|
333
221
|
lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
|
|
334
222
|
lch(0 0 0 / 0.04) 0px 1px 1px 0px;
|
|
335
223
|
--control-outline-pressed-shadow:
|
|
336
224
|
lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
|
|
337
225
|
lch(0 0 0 / 0.04) 0px 1px 1px 0px, var(--control-pressed-shadow);
|
|
338
|
-
--table-row-hover: var(--color-gray-50);
|
|
339
226
|
--field-surface: var(--control-surface);
|
|
340
227
|
--field-readonly-surface: var(--control-readonly-surface);
|
|
341
228
|
--field-disabled-surface: var(--control-disabled-surface);
|
|
@@ -349,7 +236,7 @@
|
|
|
349
236
|
--radius-card: var(--radius-xl);
|
|
350
237
|
}
|
|
351
238
|
|
|
352
|
-
/* Dark mode
|
|
239
|
+
/* Dark mode: the same palette in both designs. */
|
|
353
240
|
.dark,
|
|
354
241
|
.dark [data-admin7-design] {
|
|
355
242
|
/* The cool-neutral gray ramp is shared with light mode. Black keeps the
|
|
@@ -424,6 +311,8 @@
|
|
|
424
311
|
--muted-foreground: var(--color-gray-600);
|
|
425
312
|
--accent: var(--color-gray-900);
|
|
426
313
|
--accent-foreground: var(--color-gray-100);
|
|
314
|
+
--reaction-foreground: var(--color-gray-600);
|
|
315
|
+
--reaction-liked: var(--color-pink-500);
|
|
427
316
|
--popover: var(--color-sidebar-bg);
|
|
428
317
|
--popover-foreground: var(--color-gray-400);
|
|
429
318
|
--border: color-mix(in oklab, var(--color-gray-900) 50%, transparent);
|
|
@@ -496,129 +385,18 @@
|
|
|
496
385
|
--sidebar-ring: var(--color-gray-700);
|
|
497
386
|
}
|
|
498
387
|
|
|
499
|
-
/* admin7Design off in dark mode:
|
|
500
|
-
|
|
388
|
+
/* admin7Design off in dark mode: retain the previous field and glass outlines.
|
|
389
|
+
Delete with the flag. */
|
|
501
390
|
.dark [data-admin7-design='false'] {
|
|
502
391
|
--field-border: var(--control-border);
|
|
503
392
|
--field-shadow: 0 0 #0000;
|
|
504
|
-
--state-warning-surface: color-mix(in oklab, var(--state-warning) 10%, transparent);
|
|
505
|
-
--state-warning-border: color-mix(in oklab, var(--state-warning) 40%, transparent);
|
|
506
|
-
--color-black: oklch(20.38% 0.0067 258.4);
|
|
507
|
-
/* Less-saturated gray scale for dark mode (lightness + hue preserved, chroma halved again) */
|
|
508
|
-
--color-gray-50: oklch(98.54% 0.0003 286.4);
|
|
509
|
-
--color-gray-100: oklch(96.97% 0.0004 247.8);
|
|
510
|
-
--color-gray-200: oklch(94.74% 0.0011 236.5);
|
|
511
|
-
--color-gray-300: oklch(90.78% 0.0018 247.9);
|
|
512
|
-
--color-gray-400: oklch(86.68% 0.0024 242.9);
|
|
513
|
-
--color-gray-500: oklch(77.55% 0.0044 250.9);
|
|
514
|
-
--color-gray-600: oklch(70.33% 0.0056 248.1);
|
|
515
|
-
--color-gray-700: oklch(62.98% 0.0072 248.3);
|
|
516
|
-
--color-gray-800: oklch(52.97% 0.0058 250.6);
|
|
517
|
-
--color-gray-900: oklch(36.77% 0.0038 248.2);
|
|
518
|
-
--color-gray-950: oklch(25.95% 0.0016 258.4);
|
|
519
|
-
|
|
520
|
-
/* One-off colors (not in the standard color scale) */
|
|
521
|
-
--color-sidebar-bg: oklch(0.204 0.004 258);
|
|
522
|
-
|
|
523
|
-
--tab-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
|
|
524
|
-
--tab-active: color-mix(in oklab, oklch(36.77% 0.006 248.2) 60%, transparent);
|
|
525
|
-
--button-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
|
|
526
|
-
--button-ghost-hover: var(--accent);
|
|
527
|
-
--interactive-hover: var(--button-hover);
|
|
528
|
-
--filter-bar-background: var(--surface-elevated-2);
|
|
529
|
-
--filter-bar-item-hover: var(--tab-hover);
|
|
530
|
-
--control-surface: transparent;
|
|
531
|
-
--control-readonly-surface: var(--color-gray-950);
|
|
532
|
-
--control-disabled-surface: var(--color-gray-950);
|
|
533
|
-
--control-border: color-mix(in oklab, var(--color-gray-900) 70%, transparent);
|
|
534
|
-
--control-pressed-shadow: lch(0 0 0 / 0.07) 0px 1px 2px 0px inset;
|
|
535
393
|
--control-outline-shadow:
|
|
536
394
|
lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
|
|
537
395
|
lch(0 0 0 / 0.04) 0px 1px 1px 0px;
|
|
538
396
|
--control-outline-pressed-shadow:
|
|
539
397
|
lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
|
|
540
398
|
lch(0 0 0 / 0.04) 0px 1px 1px 0px, var(--control-pressed-shadow);
|
|
541
|
-
--table-row-hover: var(--color-sidebar-bg);
|
|
542
|
-
/* Mixed into the page background rather than a step off the blue ramp: at
|
|
543
|
-
dark-mode lightness the raw palette blues are far too saturated for a
|
|
544
|
-
whole row. */
|
|
545
|
-
--table-row-selected: color-mix(in oklab, var(--color-blue-700) 25%, var(--background));
|
|
546
|
-
--members-sticky-hover-bg: var(--table-row-hover);
|
|
547
|
-
|
|
548
|
-
--background: oklch(0.178 0.003 271);
|
|
549
|
-
--foreground: var(--color-gray-200);
|
|
550
|
-
--muted: var(--color-gray-900);
|
|
551
|
-
--muted-foreground: var(--color-gray-600);
|
|
552
|
-
--accent: var(--color-gray-900);
|
|
553
|
-
--accent-foreground: var(--color-gray-100);
|
|
554
|
-
--popover: var(--color-sidebar-bg);
|
|
555
|
-
--popover-foreground: var(--color-gray-400);
|
|
556
|
-
--border: color-mix(in oklab, var(--color-gray-900) 50%, transparent);
|
|
557
|
-
--input: var(--color-gray-900);
|
|
558
|
-
--card: var(--background);
|
|
559
|
-
--card-foreground: var(--color-gray-100);
|
|
560
|
-
--primary: var(--color-gray-200);
|
|
561
|
-
--primary-foreground: var(--color-black);
|
|
562
|
-
--secondary: var(--color-gray-900);
|
|
563
|
-
--secondary-foreground: var(--color-gray-100);
|
|
564
|
-
--destructive: var(--color-red-500);
|
|
565
|
-
--destructive-foreground: var(--color-gray-50);
|
|
566
|
-
--ring: var(--color-gray-900);
|
|
567
|
-
--surface-page: var(--color-black);
|
|
568
|
-
--surface-panel: var(--color-black);
|
|
569
|
-
--surface-panel-foreground: var(--color-gray-100);
|
|
570
|
-
--surface-elevated: var(--color-sidebar-bg);
|
|
571
|
-
--surface-elevated-foreground: var(--color-gray-100);
|
|
572
|
-
--surface-elevated-2: oklch(0.235 0.004 260);
|
|
573
|
-
--surface-overlay: var(--color-black);
|
|
574
|
-
--surface-overlay-foreground: var(--color-gray-400);
|
|
575
|
-
--preview-canvas: var(--color-black);
|
|
576
|
-
--preview-gradient-start: var(--color-gray-950);
|
|
577
|
-
--preview-gradient-end: var(--color-black);
|
|
578
|
-
--surface-inverse: var(--color-white);
|
|
579
|
-
--surface-inverse-foreground: var(--color-black);
|
|
580
|
-
--text-primary: var(--color-gray-200);
|
|
581
|
-
--text-secondary: var(--color-gray-400);
|
|
582
|
-
--text-tertiary: var(--color-gray-500);
|
|
583
|
-
--text-inverse: var(--color-black);
|
|
584
|
-
--border-subtle: var(--color-gray-900);
|
|
585
|
-
--border-default: var(--color-gray-950);
|
|
586
|
-
--border-strong: var(--color-gray-700);
|
|
587
|
-
--surface-glass: rgb(32 32 34 / 0.55);
|
|
588
399
|
--border-glass: rgb(255 255 255 / 0.1);
|
|
589
|
-
--surface-glass-highlight: linear-gradient(
|
|
590
|
-
180deg,
|
|
591
|
-
rgb(255 255 255 / 0.066) 0%,
|
|
592
|
-
rgb(255 255 255 / 0) 18%,
|
|
593
|
-
rgb(255 255 255 / 0) 85%,
|
|
594
|
-
rgb(255 255 255 / 0.018) 100%
|
|
595
|
-
);
|
|
596
|
-
--focus-ring: var(--color-gray-900);
|
|
597
|
-
--state-info: var(--color-blue-400);
|
|
598
|
-
--search-result-title: #8ab4f8;
|
|
599
|
-
--search-result-description: #bdc1c6;
|
|
600
|
-
--state-info-foreground: var(--color-black);
|
|
601
|
-
--state-success: var(--color-green-400);
|
|
602
|
-
--state-success-foreground: var(--color-black);
|
|
603
|
-
--state-warning: var(--color-yellow-400);
|
|
604
|
-
--state-warning-foreground: var(--color-black);
|
|
605
|
-
--state-danger: var(--color-red-500);
|
|
606
|
-
--state-danger-foreground: var(--color-black);
|
|
607
|
-
--chart-1: hsl(201 100% 50%);
|
|
608
|
-
--chart-2: hsl(201 88% 70%);
|
|
609
|
-
--chart-3: hsl(201 85% 80%);
|
|
610
|
-
--chart-4: hsl(201 82% 90%);
|
|
611
|
-
--chart-5: hsl(201 87% 94%);
|
|
612
|
-
--chart-gray: hsl(210 13% 55%);
|
|
613
|
-
--sidebar-background: var(--color-sidebar-bg);
|
|
614
|
-
--sidebar-foreground: var(--color-gray-500);
|
|
615
|
-
--sidebar-primary: var(--color-gray-900);
|
|
616
|
-
--sidebar-primary-foreground: var(--color-white);
|
|
617
|
-
--sidebar-accent: var(--tab-active);
|
|
618
|
-
--sidebar-accent-foreground: var(--color-gray-100);
|
|
619
|
-
--sidebar-border: var(--border);
|
|
620
|
-
--sidebar-ring: var(--color-gray-700);
|
|
621
|
-
--badge-warning-foreground: var(--color-yellow-600);
|
|
622
400
|
}
|
|
623
401
|
|
|
624
402
|
/* Stronger shadows in dark mode — default Tailwind values use ~10% black alpha,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gh-chart.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/gh-chart.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"gh-chart.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/gh-chart.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,I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AE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAM1D,QAAA,MAAM,WAAW,gKASf,CAAC;AAGH,QAAA,MAAM,cAAc,iKAYlB,CAAC;AA6BH,UAAU,WAAY,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;IACvF,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,MAAM,qFA4BX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
|
package/types/lib/ds-utils.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const formatDuration: (seconds: number) => string;
|
|
|
10
10
|
export declare const formatPercentage: (value: number) => string;
|
|
11
11
|
export declare function getCountryFlag(countryCode: string): string;
|
|
12
12
|
export declare const stringToHslColor: (str: string, saturation: string, lightness: string) => string;
|
|
13
|
-
/**
|
|
13
|
+
/** Initials avatar colours: one palette family picked by the string's hash. */
|
|
14
14
|
export declare const stringToTonalAvatarClasses: (str: string) => string;
|
|
15
15
|
export declare const getYRange: (data: {
|
|
16
16
|
value: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-utils.d.ts","sourceRo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AMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'character-count', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-character-count', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-event-email-icon', 'color-event-email-surface', 'color-event-engagement-icon', 'color-event-engagement-surface', 'color-event-gain-icon', 'color-event-gain-surface', 'color-event-gift-icon', 'color-event-gift-surface', 'color-event-loss-icon', 'color-event-loss-surface', 'color-event-warning-icon', 'color-event-warning-surface', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'event-email-icon', 'event-email-surface', 'event-engagement-icon', 'event-engagement-surface', 'event-gain-icon', 'event-gain-surface', 'event-gift-icon', 'event-gift-surface', 'event-loss-icon', 'event-loss-surface', 'event-warning-icon', 'event-warning-surface', 'field-border', 'field-chip-internal-border', 'field-chip-internal-surface', 'field-chip-surface', 'field-disabled-surface', 'field-readonly-surface', 'field-shadow', 'field-surface', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'font-weight-settings-heading', 'font-weight-title', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-field', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-field', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'tab-inactive', 'tab-inactive-hover', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-field', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-section-heading', 'text-section-heading-lg', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-section-heading', 'tracking-settings-heading', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
|
|
1
|
+
export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'action-accent', 'action-accent-foreground', 'action-accent-hover', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'character-count', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-action-accent', 'color-action-accent-foreground', 'color-action-accent-hover', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-character-count', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-event-email-icon', 'color-event-email-surface', 'color-event-engagement-icon', 'color-event-engagement-surface', 'color-event-gain-icon', 'color-event-gain-surface', 'color-event-gift-icon', 'color-event-gift-surface', 'color-event-loss-icon', 'color-event-loss-surface', 'color-event-warning-icon', 'color-event-warning-surface', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-reaction-foreground', 'color-reaction-liked', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'event-email-icon', 'event-email-surface', 'event-engagement-icon', 'event-engagement-surface', 'event-gain-icon', 'event-gain-surface', 'event-gift-icon', 'event-gift-surface', 'event-loss-icon', 'event-loss-surface', 'event-warning-icon', 'event-warning-surface', 'field-border', 'field-chip-internal-border', 'field-chip-internal-surface', 'field-chip-surface', 'field-disabled-surface', 'field-readonly-surface', 'field-shadow', 'field-surface', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'font-weight-settings-heading', 'font-weight-title', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-field', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'reaction-foreground', 'reaction-liked', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-field', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'tab-inactive', 'tab-inactive-hover', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-field', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-section-heading', 'text-section-heading-lg', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-section-heading', 'tracking-settings-heading', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
|
|
2
2
|
export type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];
|
|
3
3
|
export declare const shadeToken: (name: ShadeTokenName) => string;
|
|
4
4
|
//# sourceMappingURL=tokens.d.ts.map
|
package/types/tokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAg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M,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,UAAU,SAAU,cAAc,KAAG,MAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,gCAAgC,EAChC,2BAA2B,EAC3B,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,E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