chore(ui,icons,ui-preset,toolbox): Move design system packages to monorepo (#5470)

This commit is contained in:
Kasper Fabricius Kristensen
2023-11-07 22:17:44 +01:00
committed by GitHub
parent 71853eafdd
commit e4ce2f4e07
722 changed files with 30300 additions and 186 deletions

View File

@@ -0,0 +1,6 @@
import clsx, { type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function clx(...args: ClassValue[]) {
return twMerge(clsx(...args));
}

View File

@@ -0,0 +1,12 @@
const isBrowserLocaleClockType24h = () => {
const language =
typeof window !== "undefined" ? window.navigator.language : "en-US"
const hr = new Intl.DateTimeFormat(language, {
hour: "numeric",
}).format()
return Number.isInteger(Number(hr))
}
export { isBrowserLocaleClockType24h }