import "./chunk-KWPVD4H7.js"; // node_modules/tailwind-variants/dist/chunk-OYFAXDFZ.js var isArray = Array.isArray; var joinClassValue = (value) => { if (!value && value !== 0 && value !== 0n) return ""; if (typeof value === "string") return value; if (typeof value === "number") { if (value !== value) return ""; return "" + value; } if (typeof value === "bigint") return "" + value; let result = ""; if (isArray(value)) { const length = value.length; for (let index = 0; index < length; index++) { const item = value[index]; if (!item && item !== 0 && item !== 0n) continue; const resolved = typeof item === "string" ? item : joinClassValue(item); if (resolved) { if (result) result += " "; result += resolved; } } return result; } if (typeof value === "object") { for (const key in value) { if (value[key]) { if (result) result += " "; result += key; } } } return result; }; var SPACE_REGEX = /\s+/g; var isArray2 = Array.isArray; var removeExtraSpaces = (str) => { if (typeof str !== "string" || !str) return str; return str.replace(SPACE_REGEX, " ").trim(); }; var stringNeedsNormalize = (str) => { const len = str.length; if (len === 0) return false; const first = str.charCodeAt(0); const last = str.charCodeAt(len - 1); if (first === 32 || last === 32 || first >= 9 && first <= 13 || first === 160 || last >= 9 && last <= 13 || last === 160) { return true; } for (let i = 0; i < len; i++) { const code = str.charCodeAt(i); if (code >= 9 && code <= 13 || code === 160) return true; if (code === 32 && i + 1 < len && str.charCodeAt(i + 1) === 32) return true; } return false; }; var cx = (...classnames) => { const result = joinClassValue(classnames); if (!result) return void 0; return stringNeedsNormalize(result) ? removeExtraSpaces(result) : result; }; var falsyToString = (value) => value === false ? "false" : value === true ? "true" : value === 0 ? "0" : value; var isEmptyObject = (obj) => { if (!obj || typeof obj !== "object") return true; for (const _ in obj) return false; return true; }; var isEqual = (obj1, obj2) => { if (obj1 === obj2) return true; if (!obj1 || !obj2) return false; const record1 = obj1; const record2 = obj2; const keys1 = Object.keys(record1); const keys2 = Object.keys(record2); if (keys1.length !== keys2.length) return false; for (let i = 0; i < keys1.length; i++) { const key = keys1[i]; if (!keys2.includes(key)) return false; if (record1[key] !== record2[key]) return false; } return true; }; var joinObjects = (obj1, obj2) => { const target = obj1; for (const key in obj2) { if (Object.hasOwn(obj2, key)) { const val2 = obj2[key]; if (key in target) { target[key] = cx(target[key], val2); } else { target[key] = val2; } } } return obj1; }; var flat = (arr, target) => { for (let i = 0; i < arr.length; i++) { const el = arr[i]; if (isArray2(el)) flat(el, target); else if (el) target.push(el); } }; var flatMergeArrays = (...arrays) => { const result = []; flat(arrays, result); const filtered = []; for (let i = 0; i < result.length; i++) { if (result[i]) filtered.push(result[i]); } return filtered; }; var mergeObjects = (obj1, obj2) => { const record1 = obj1; const record2 = obj2; const result = {}; for (const key in record1) { const val1 = record1[key]; if (key in record2) { const val2 = record2[key]; if (isArray2(val1) || isArray2(val2)) { result[key] = flatMergeArrays(val2, val1); } else if (typeof val1 === "object" && typeof val2 === "object" && val1 && val2) { result[key] = mergeObjects(val1, val2); } else { result[key] = val2 + " " + val1; } } else { result[key] = val1; } } for (const key in record2) { if (!(key in record1)) { result[key] = record2[key]; } } return result; }; // node_modules/tailwind-variants/dist/chunk-SUL6UUW2.js var defaultConfig = { twMerge: true, twMergeConfig: {} }; var VARIANT_CACHE_LIMIT = 256; var OVERRIDE_CACHE_LIMIT = 128; var CACHE_MISS = Symbol("tv-cache-miss"); var hasClassOverride = (props) => (props == null ? void 0 : props.class) != null && props.class !== "" || (props == null ? void 0 : props.className) != null && props.className !== ""; var serializeFingerprintValue = (value) => { if (value === void 0) return ""; if (value === null) return "null"; if (typeof value === "string") return value; if (typeof value === "boolean") return value ? "true" : "false"; if (typeof value === "number") return value === 0 ? "0" : String(value); if (typeof value === "bigint") return String(value); const mapped = falsyToString(value); const mappedType = typeof mapped; if (mappedType === "string" || mappedType === "number" || mappedType === "boolean" || mappedType === "bigint") { return String(mapped); } if (mappedType === "object") { try { return JSON.stringify(mapped); } catch { return null; } } return null; }; var appendSignatureValue = (out, value) => { if (value === void 0) return out; if (value === null) return out + "null"; const type = typeof value; if (type === "string" || type === "number" || type === "boolean" || type === "bigint") { return out + String(value); } if (Array.isArray(value)) { return out + value.join("\0"); } try { return out + JSON.stringify(value); } catch { return out + "?"; } }; var buildPropsFingerprint = (variantKeys, defaultVariants, props, slotProps) => { let fingerprint = ""; const seen = /* @__PURE__ */ Object.create(null); for (let i = 0; i < variantKeys.length; i++) { const key = variantKeys[i]; seen[key] = 1; let value = defaultVariants[key]; if (props && props[key] !== void 0) value = props[key]; const serialized = serializeFingerprintValue(value); if (serialized === null) return null; fingerprint += key + ":" + serialized + ";"; } const extras = []; for (const key in defaultVariants) { if (key === "class" || key === "className" || seen[key]) continue; seen[key] = 1; extras.push(key); } if (props) { for (const key in props) { if (key === "class" || key === "className" || seen[key] || props[key] === void 0) continue; seen[key] = 1; extras.push(key); } } if (extras.length > 1) extras.sort(); for (let i = 0; i < extras.length; i++) { const key = extras[i]; let value = defaultVariants[key]; if (props && props[key] !== void 0) value = props[key]; const serialized = serializeFingerprintValue(value); if (serialized === null) return null; fingerprint += key + ":" + serialized + ";"; } return fingerprint; }; var buildCompoundsSignature = (compoundVariants, compoundSlots) => { let signature = ""; for (let i = 0; i < compoundVariants.length; i++) { const { conditionKeys, source } = compoundVariants[i]; for (let j = 0; j < conditionKeys.length; j++) { const key = conditionKeys[j]; signature += key + "="; signature = appendSignatureValue(signature, source[key]); signature += ","; } signature += "c="; signature = appendSignatureValue(signature, source.class); signature += "|cn="; signature = appendSignatureValue(signature, source.className); signature += ";"; } for (let i = 0; i < compoundSlots.length; i++) { const { conditionKeys, source } = compoundSlots[i]; for (let j = 0; j < conditionKeys.length; j++) { const key = conditionKeys[j]; signature += key + "="; signature = appendSignatureValue(signature, source[key]); signature += ","; } if (Array.isArray(source.slots)) { signature += "slots=" + source.slots.join(",") + ","; } signature += "c="; signature = appendSignatureValue(signature, source.class); signature += "|cn="; signature = appendSignatureValue(signature, source.className); signature += ";"; } return signature; }; var createBoundedCache = (limit = VARIANT_CACHE_LIMIT) => { let primary = /* @__PURE__ */ new Map(); let secondary = null; return { get(key) { if (primary.has(key)) return primary.get(key); if (secondary == null ? void 0 : secondary.has(key)) { const value = secondary.get(key); primary.set(key, value); return value; } return CACHE_MISS; }, set(key, value) { if (primary.size >= limit) { secondary = primary; primary = /* @__PURE__ */ new Map(); } primary.set(key, value); } }; }; var createResultCache = (limit = VARIANT_CACHE_LIMIT) => { const cache = createBoundedCache(limit); return { get(key) { return cache.get(key); }, set(key, value) { cache.set(key, value); } }; }; var createNestedOverrideCache = (limit = OVERRIDE_CACHE_LIMIT) => { let primary = /* @__PURE__ */ new Map(); let secondary = null; let size = 0; return { get(coreKey, overrideKey) { const primaryInner = primary.get(coreKey); if (primaryInner) { const value = primaryInner.get(overrideKey); if (value !== void 0 || primaryInner.has(overrideKey)) return value; } if (secondary) { const secondaryInner = secondary.get(coreKey); if (secondaryInner) { const value = secondaryInner.get(overrideKey); if (value !== void 0 || secondaryInner.has(overrideKey)) { let promoteInner = primary.get(coreKey); if (!promoteInner) { promoteInner = /* @__PURE__ */ new Map(); primary.set(coreKey, promoteInner); } if (!promoteInner.has(overrideKey)) size++; promoteInner.set(overrideKey, value); return value; } } } return CACHE_MISS; }, set(coreKey, overrideKey, value) { if (size >= limit) { secondary = primary; primary = /* @__PURE__ */ new Map(); size = 0; } let inner = primary.get(coreKey); if (!inner) { inner = /* @__PURE__ */ new Map(); primary.set(coreKey, inner); } if (!inner.has(overrideKey)) size++; inner.set(overrideKey, value); } }; }; var createLazyOverrideMerge = (cn3, config) => { let cache = null; return (core, props) => { if (!hasClassOverride(props)) return core; const classVal = props.class; const classNameVal = props.className; if (classVal != null && classVal !== "" && typeof classVal !== "string" || classNameVal != null && classNameVal !== "" && typeof classNameVal !== "string") { return cn3(config, core, classVal, classNameVal); } cache ?? (cache = createNestedOverrideCache()); const coreKey = core ?? ""; const overrideKey = (typeof classVal === "string" ? classVal : "") + "\0" + (typeof classNameVal === "string" ? classNameVal : ""); const cached = cache.get(coreKey, overrideKey); if (cached !== CACHE_MISS) return cached; const merged = cn3(config, core, classVal, classNameVal); cache.set(coreKey, overrideKey, merged); return merged; }; }; function createState() { let cachedTwMerge = null; let cachedTwMergeConfig = {}; let didTwMergeConfigChange = false; return { get cachedTwMerge() { return cachedTwMerge; }, set cachedTwMerge(value) { cachedTwMerge = value; }, get cachedTwMergeConfig() { return cachedTwMergeConfig; }, set cachedTwMergeConfig(value) { cachedTwMergeConfig = value; }, get didTwMergeConfigChange() { return didTwMergeConfigChange; }, set didTwMergeConfigChange(value) { didTwMergeConfigChange = value; }, reset() { cachedTwMerge = null; cachedTwMergeConfig = {}; didTwMergeConfigChange = false; } }; } var state = createState(); var synchronizeTwMergeConfig = (config) => { if (!isEmptyObject(config.twMergeConfig) && !isEqual(config.twMergeConfig, state.cachedTwMergeConfig)) { state.didTwMergeConfigChange = true; state.cachedTwMergeConfig = config.twMergeConfig; } }; var compileVariants = (variants, variantKeys) => { const compiledVariants = []; for (let i = 0; i < variantKeys.length; i++) { const key = variantKeys[i]; const values = variants[key]; compiledVariants.push({ key, values, isEmpty: isEmptyObject(values) }); } return compiledVariants; }; var compileCompoundVariants = (compoundVariants) => { if (!Array.isArray(compoundVariants) || compoundVariants.length === 0) return []; const result = []; for (let i = 0; i < compoundVariants.length; i++) { const compoundVariant = compoundVariants[i]; const conditionKeys = []; for (const key in compoundVariant) { if (key !== "class" && key !== "className") { conditionKeys.push(key); } } result.push({ conditionKeys, source: compoundVariant }); } return result; }; var compileCompoundSlots = (compoundSlots) => { if (!Array.isArray(compoundSlots) || compoundSlots.length === 0) return []; const result = []; for (let i = 0; i < compoundSlots.length; i++) { const compoundSlot = compoundSlots[i]; const conditionKeys = []; for (const key in compoundSlot) { if (key !== "slots" && key !== "class" && key !== "className") { conditionKeys.push(key); } } result.push({ conditionKeys, source: compoundSlot }); } return result; }; var indexCompoundSlotsBySlot = (compiledCompoundSlots) => { const index = {}; for (let i = 0; i < compiledCompoundSlots.length; i++) { const compoundSlot = compiledCompoundSlots[i]; const slots = compoundSlot.source.slots; if (!Array.isArray(slots)) continue; for (let j = 0; j < slots.length; j++) { const slotKey = slots[j]; if (!index[slotKey]) index[slotKey] = []; index[slotKey].push(compoundSlot); } } return index; }; var resolveOptions = (options, configProp) => { const { extend = null, slots: slotProps = {}, variants: variantsProps = {}, compoundVariants: compoundVariantsProps = [], compoundSlots: compoundSlotsProps = [], defaultVariants: defaultVariantsProps = {} } = options; const config = { ...defaultConfig, ...configProp }; const hasSlots = options.slots !== void 0; const base = (extend == null ? void 0 : extend.base) ? cx(extend.base, options == null ? void 0 : options.base) : options == null ? void 0 : options.base; const variants = (extend == null ? void 0 : extend.variants) && !isEmptyObject(extend.variants) ? mergeObjects(variantsProps, extend.variants) : variantsProps; const defaultVariants = (extend == null ? void 0 : extend.defaultVariants) && !isEmptyObject(extend.defaultVariants) ? { ...extend.defaultVariants, ...defaultVariantsProps } : defaultVariantsProps; synchronizeTwMergeConfig(config); const isExtendedSlotsEmpty = !(extend == null ? void 0 : extend.slots) || isEmptyObject(extend.slots); const componentBase = hasSlots ? isExtendedSlotsEmpty && (extend == null ? void 0 : extend.base) ? cx(options == null ? void 0 : options.base, extend.base) : typeof (options == null ? void 0 : options.base) === "string" || (options == null ? void 0 : options.base) == null ? options.base : cx(options.base) : void 0; const componentSlots = hasSlots ? { base: componentBase, ...slotProps } : {}; const slots = isExtendedSlotsEmpty ? componentSlots : joinObjects( { ...extend == null ? void 0 : extend.slots }, isEmptyObject(componentSlots) ? { base: options == null ? void 0 : options.base } : componentSlots ); const compoundVariants = !(extend == null ? void 0 : extend.compoundVariants) || isEmptyObject(extend.compoundVariants) ? compoundVariantsProps : flatMergeArrays(extend == null ? void 0 : extend.compoundVariants, compoundVariantsProps); const compoundSlots = !(extend == null ? void 0 : extend.compoundSlots) || isEmptyObject(extend.compoundSlots) ? compoundSlotsProps : flatMergeArrays(extend == null ? void 0 : extend.compoundSlots, compoundSlotsProps); const variantKeys = Object.keys(variants); const deferredError = compoundVariants && !Array.isArray(compoundVariants) ? new TypeError( `The "compoundVariants" prop must be an array. Received: ${typeof compoundVariants}` ) : compoundSlots && !Array.isArray(compoundSlots) ? new TypeError( `The "compoundSlots" prop must be an array. Received: ${typeof compoundSlots}` ) : null; const mode = hasSlots || !isExtendedSlotsEmpty ? "slots" : variantKeys.length === 0 ? "plain" : "variants"; return { config, extend, base, variants, defaultVariants, slots, compoundVariants, compoundSlots, compiledVariants: null, compiledCompoundVariants: null, compiledCompoundSlots: null, compiledCompoundSlotsBySlot: null, deferredError, mode, slotKeys: null, variantKeys }; }; var compileResolvedOptions = (resolved) => { if (resolved.compiledVariants !== null) return resolved; resolved.compiledVariants = compileVariants(resolved.variants, resolved.variantKeys); resolved.compiledCompoundVariants = compileCompoundVariants(resolved.compoundVariants); resolved.compiledCompoundSlots = compileCompoundSlots(resolved.compoundSlots); resolved.compiledCompoundSlotsBySlot = indexCompoundSlotsBySlot(resolved.compiledCompoundSlots); resolved.slotKeys = resolved.slots && typeof resolved.slots === "object" ? Object.keys(resolved.slots) : []; return resolved; }; var EMPTY_ARRAY = []; var variantClassesScratch = []; var compoundClassesScratch = []; var compoundVariantBySlotScratch = []; var compoundSlotClassesScratch = []; var getCompleteProps = (defaultVariants, props, slotProps) => { const result = {}; for (const key in defaultVariants) { result[key] = defaultVariants[key]; } if (props) { for (const key in props) { if (props[key] !== void 0) result[key] = props[key]; } } if (slotProps) { for (const key in slotProps) { if (slotProps[key] !== void 0) result[key] = slotProps[key]; } } return result; }; var isNullishOrFalse = (value) => value == null || value === false; var matchesCompoundValue = (expected, actual) => { if (!Array.isArray(expected)) { return expected === actual || isNullishOrFalse(expected) && isNullishOrFalse(actual); } for (let i = 0; i < expected.length; i++) { const expectedValue = expected[i]; if (expectedValue === actual || isNullishOrFalse(expectedValue) && isNullishOrFalse(actual)) { return true; } } return false; }; var getVariantValue = (variant, defaultVariants, props, slotProps) => { if (variant.isEmpty) return null; const variantProp = (slotProps == null ? void 0 : slotProps[variant.key]) ?? (props == null ? void 0 : props[variant.key]); if (variantProp === null) return null; const variantKey = falsyToString(variantProp); if (typeof variantKey === "object") return null; const defaultVariantProp = defaultVariants == null ? void 0 : defaultVariants[variant.key]; const key = variantKey != null ? variantKey : falsyToString(defaultVariantProp); return variant.values[key || "false"]; }; var matchesConditions = (compound, completeProps) => { const { conditionKeys, source } = compound; for (let i = 0; i < conditionKeys.length; i++) { const key = conditionKeys[i]; if (!matchesCompoundValue(source[key], completeProps[key])) return false; } return true; }; var pushCompoundClassForSlot = (result, slotKey, classValue) => { if (typeof classValue === "string") { if (slotKey === "base") result.push(classValue); } else if (classValue && typeof classValue === "object" && classValue[slotKey]) { result.push(classValue[slotKey]); } }; var getVariantClassNames = (variants, defaultVariants, props) => { const result = variantClassesScratch; result.length = 0; for (let i = 0; i < variants.length; i++) { const value = getVariantValue(variants[i], defaultVariants, props); if (value) result.push(value); } return result; }; var getVariantClassNamesBySlot = (slotKey, variants, defaultVariants, props, slotProps) => { const result = variantClassesScratch; result.length = 0; for (let i = 0; i < variants.length; i++) { const variantValue = getVariantValue(variants[i], defaultVariants, props, slotProps); const value = slotKey === "base" && typeof variantValue === "string" ? variantValue : variantValue && variantValue[slotKey]; if (value) result.push(value); } return result; }; var getCompoundVariantClasses = (compoundVariants, completeProps) => { const result = compoundClassesScratch; result.length = 0; for (let i = 0; i < compoundVariants.length; i++) { const compoundVariant = compoundVariants[i]; if (!matchesConditions(compoundVariant, completeProps)) continue; if (compoundVariant.source.class) result.push(compoundVariant.source.class); if (compoundVariant.source.className) result.push(compoundVariant.source.className); } return result; }; var getCompoundVariantClassesBySlot = (slotKey, compoundVariants, completeProps) => { const result = compoundVariantBySlotScratch; result.length = 0; for (let i = 0; i < compoundVariants.length; i++) { const compoundVariant = compoundVariants[i]; if (!matchesConditions(compoundVariant, completeProps)) continue; pushCompoundClassForSlot(result, slotKey, compoundVariant.source.class); pushCompoundClassForSlot(result, slotKey, compoundVariant.source.className); } return result; }; var getCompoundSlotClasses = (compoundSlotsForKey, completeProps) => { const result = compoundSlotClassesScratch; result.length = 0; for (let i = 0; i < compoundSlotsForKey.length; i++) { const compoundSlot = compoundSlotsForKey[i]; if (!matchesConditions(compoundSlot, completeProps)) continue; if (compoundSlot.source.class) result.push(compoundSlot.source.class); if (compoundSlot.source.className) result.push(compoundSlot.source.className); } return result; }; var createPlainResolver = (resolved, cn3) => { const { base, config } = resolved; let core = CACHE_MISS; const mergeOverride = createLazyOverrideMerge(cn3, config); return ((props) => { if (core === CACHE_MISS) { core = cn3(config, base); } return mergeOverride(core, props); }); }; var createVariantResolver = (resolved, cn3) => { const { base, config, defaultVariants, deferredError, variantKeys } = resolved; let compiledCompoundVariants = resolved.compiledCompoundVariants; let compiledVariants = resolved.compiledVariants; let compiledCompoundSlots = EMPTY_ARRAY; let cache = null; const mergeOverride = createLazyOverrideMerge(cn3, config); let coldInvokesRemaining = 1; const computeCore = (props) => { const compoundClasses = compiledCompoundVariants.length > 0 ? getCompoundVariantClasses( compiledCompoundVariants, getCompleteProps(defaultVariants, props) ) : void 0; return cn3( config, base, getVariantClassNames(compiledVariants, defaultVariants, props), compoundClasses ); }; return ((props) => { if (deferredError) throw deferredError; if (compiledVariants === null || compiledCompoundVariants === null) { compileResolvedOptions(resolved); compiledVariants = resolved.compiledVariants; compiledCompoundVariants = resolved.compiledCompoundVariants; compiledCompoundSlots = resolved.compiledCompoundSlots ?? EMPTY_ARRAY; } let core; if (coldInvokesRemaining > 0) { coldInvokesRemaining--; core = computeCore(props); } else { cache ?? (cache = createResultCache()); const propsFingerprint = buildPropsFingerprint(variantKeys, defaultVariants, props); if (propsFingerprint !== null) { const compoundsSig = compiledCompoundVariants.length > 0 || compiledCompoundSlots.length > 0 ? buildCompoundsSignature(compiledCompoundVariants, compiledCompoundSlots) : ""; const cacheKey = propsFingerprint + "#" + compoundsSig; const cached = cache.get(cacheKey); if (cached !== CACHE_MISS) { core = cached; } else { core = computeCore(props); cache.set(cacheKey, core); } } else { core = computeCore(props); } } return mergeOverride(core, props); }); }; var createSlotsResolver = (resolved, cn3) => { const { config, defaultVariants, deferredError, slots, variantKeys } = resolved; let compoundVariants = null; let compoundSlots = null; let keys = null; let slotComputers = null; let hasCompounds = false; let mergeOverride = null; let parentCache = null; let coldParentInvokesRemaining = 1; const ensureCompiled = () => { if (keys !== null) return; if (resolved.compiledVariants === null || resolved.compiledCompoundVariants === null || resolved.compiledCompoundSlots === null || resolved.compiledCompoundSlotsBySlot === null || resolved.slotKeys === null) { compileResolvedOptions(resolved); } const variants = resolved.compiledVariants; compoundVariants = resolved.compiledCompoundVariants; compoundSlots = resolved.compiledCompoundSlots; const compoundSlotsBySlot = resolved.compiledCompoundSlotsBySlot; keys = resolved.slotKeys; hasCompounds = compoundVariants.length > 0 || compoundSlots.length > 0; mergeOverride = createLazyOverrideMerge(cn3, config); const computers = new Array(keys.length); for (let i = 0; i < keys.length; i++) { const slotKey = keys[i]; const compoundSlotsForKey = compoundSlotsBySlot[slotKey] ?? EMPTY_ARRAY; computers[i] = (propsRef, slotProps) => { const completeProps = hasCompounds ? getCompleteProps(defaultVariants, propsRef, slotProps) : void 0; const compoundVariantClasses = completeProps ? getCompoundVariantClassesBySlot(slotKey, compoundVariants, completeProps) : void 0; const compoundSlotClasses = completeProps ? getCompoundSlotClasses(compoundSlotsForKey, completeProps) : void 0; return cn3( config, slots[slotKey], getVariantClassNamesBySlot(slotKey, variants, defaultVariants, propsRef, slotProps), compoundVariantClasses, compoundSlotClasses ); }; } slotComputers = computers; }; const createSlotsResult = (props) => { const slotKeys = keys; const computers = slotComputers; const overrideMerge = mergeOverride; const result = {}; for (let i = 0; i < slotKeys.length; i++) { const compute = computers[i]; const core = compute(props); result[slotKeys[i]] = (slotProps) => { if (slotProps == null) return core; let hasVariantOverride = false; for (const key in slotProps) { if (key === "class" || key === "className") continue; if (slotProps[key] !== void 0) { hasVariantOverride = true; break; } } if (!hasVariantOverride) { return overrideMerge(core, slotProps); } return overrideMerge(compute(props, slotProps), slotProps); }; } return result; }; return ((props) => { if (deferredError) throw deferredError; ensureCompiled(); if (coldParentInvokesRemaining > 0) { coldParentInvokesRemaining--; return createSlotsResult(props); } const propsFingerprint = buildPropsFingerprint(variantKeys, defaultVariants, props); if (propsFingerprint === null) { return createSlotsResult(props); } const compoundsSig = hasCompounds ? buildCompoundsSignature(compoundVariants, compoundSlots) : ""; const cacheKey = propsFingerprint + "#" + compoundsSig; parentCache ?? (parentCache = createBoundedCache()); const cached = parentCache.get(cacheKey); if (cached !== CACHE_MISS) return cached; const next = createSlotsResult(props); parentCache.set(cacheKey, next); return next; }); }; var createClassResolver = (resolved, cn3) => { if (resolved.mode === "plain") return createPlainResolver(resolved, cn3); let resolver; return ((props) => { resolver ?? (resolver = resolved.mode === "slots" ? createSlotsResolver(resolved, cn3) : createVariantResolver(resolved, cn3)); return resolver(props); }); }; var attachComponentMetadata = (component, resolved) => { component.variantKeys = resolved.variantKeys; component.extend = resolved.extend; component.base = resolved.base; component.slots = resolved.slots; component.variants = resolved.variants; component.defaultVariants = resolved.defaultVariants; component.compoundSlots = resolved.compoundSlots; component.compoundVariants = resolved.compoundVariants; }; var getTailwindVariants = (cn3) => { const tv2 = (options, configProp) => { const resolved = resolveOptions(options, configProp); const component = createClassResolver(resolved, cn3); attachComponentMetadata(component, resolved); return component; }; const createTV2 = (configProp) => { return (options, config) => tv2(options, config ? mergeObjects(configProp, config) : configProp); }; return { tv: tv2, createTV: createTV2 }; }; // node_modules/tailwind-variants/dist/index.js var concatArrays = (array1, array2) => { const length1 = array1.length; const length2 = array2.length; const combined = new Array(length1 + length2); for (let i = 0; i < length1; i++) combined[i] = array1[i]; for (let i = 0; i < length2; i++) combined[length1 + i] = array2[i]; return combined; }; var createClassValidatorObject = (classGroupId, validator) => ({ classGroupId, validator }); var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({ nextPart, validators, classGroupId }); var CLASS_PART_SEPARATOR = "-"; var EMPTY_CONFLICTS = []; var ARBITRARY_PROPERTY_PREFIX = "arbitrary.."; var createClassGroupUtils = (config) => { const classMap = createClassMap(config); const { conflictingClassGroups, conflictingClassGroupModifiers } = config; const getClassGroupId = (className) => { if (className[0] === "[" && className[className.length - 1] === "]") { return getGroupIdForArbitraryProperty(className); } const classParts = className.split(CLASS_PART_SEPARATOR); const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0; return getGroupRecursive(classParts, startIndex, classMap); }; const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => { if (hasPostfixModifier) { const modifierConflicts = conflictingClassGroupModifiers[classGroupId]; const baseConflicts = conflictingClassGroups[classGroupId]; if (modifierConflicts) { if (baseConflicts) { return concatArrays(baseConflicts, modifierConflicts); } return modifierConflicts; } return baseConflicts || EMPTY_CONFLICTS; } return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS; }; return { getClassGroupId, getConflictingClassGroupIds }; }; var getGroupRecursive = (classParts, startIndex, classPartObject) => { const classPathsLength = classParts.length - startIndex; if (classPathsLength === 0) { return classPartObject.classGroupId; } const currentClassPart = classParts[startIndex]; const nextClassPartObject = classPartObject.nextPart.get(currentClassPart); if (nextClassPartObject) { const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject); if (result) return result; } const validators = classPartObject.validators; if (validators === null) { return void 0; } const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR); const validatorsLength = validators.length; for (let index = 0; index < validatorsLength; index++) { const validatorObject = validators[index]; if (validatorObject.validator(classRest)) { return validatorObject.classGroupId; } } return void 0; }; var getGroupIdForArbitraryProperty = (className) => { const content = className.slice(1, -1); const colonIndex = content.indexOf(":"); if (colonIndex === -1) { return void 0; } const property = content.slice(0, colonIndex); return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0; }; var createClassMap = (config) => { const { theme, classGroups } = config; return processClassGroups(classGroups, theme); }; var processClassGroups = (classGroups, theme) => { const classMap = createClassPartObject(); for (const classGroupId in classGroups) { const group = classGroups[classGroupId]; processClassesRecursively(group, classMap, classGroupId, theme); } return classMap; }; var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => { const length = classGroup.length; for (let index = 0; index < length; index++) { const classDefinition = classGroup[index]; processClassDefinition(classDefinition, classPartObject, classGroupId, theme); } }; var processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => { if (typeof classDefinition === "string") { processStringDefinition(classDefinition, classPartObject, classGroupId); return; } if (typeof classDefinition === "function") { processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme); return; } processObjectDefinition( classDefinition, classPartObject, classGroupId, theme ); }; var processStringDefinition = (classDefinition, classPartObject, classGroupId) => { const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition); classPartObjectToEdit.classGroupId = classGroupId; }; var processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => { if (isThemeGetter(classDefinition)) { processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme); return; } if (classPartObject.validators === null) { classPartObject.validators = []; } classPartObject.validators.push( createClassValidatorObject(classGroupId, classDefinition) ); }; var processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => { const entries = Object.entries(classDefinition); const length = entries.length; for (let index = 0; index < length; index++) { const [key, value] = entries[index]; processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme); } }; var getPart = (classPartObject, path) => { let current = classPartObject; const parts = path.split(CLASS_PART_SEPARATOR); const length = parts.length; for (let index = 0; index < length; index++) { const part = parts[index]; let next = current.nextPart.get(part); if (!next) { next = createClassPartObject(); current.nextPart.set(part, next); } current = next; } return current; }; var isThemeGetter = (classDefinition) => "isThemeGetter" in classDefinition && classDefinition.isThemeGetter === true; var IMPORTANT_MODIFIER = "!"; var CHAR_MODIFIER_SEPARATOR = 58; var CHAR_POSTFIX_SEPARATOR = 47; var CHAR_OPEN_BRACKET = 91; var CHAR_CLOSE_BRACKET = 93; var CHAR_OPEN_PAREN = 40; var CHAR_CLOSE_PAREN = 41; var CHAR_IMPORTANT = 33; var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition) => ({ modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal: void 0 }); var parseClassName = (className) => { const modifiers = []; let bracketDepth = 0; let parenDepth = 0; let modifierStart = 0; let postfixModifierPosition; const len = className.length; for (let index = 0; index < len; index++) { const charCode = className.charCodeAt(index); if (bracketDepth === 0 && parenDepth === 0) { if (charCode === CHAR_MODIFIER_SEPARATOR) { modifiers.push(className.slice(modifierStart, index)); modifierStart = index + 1; continue; } if (charCode === CHAR_POSTFIX_SEPARATOR) { postfixModifierPosition = index; continue; } } if (charCode === CHAR_OPEN_BRACKET) bracketDepth++; else if (charCode === CHAR_CLOSE_BRACKET) bracketDepth--; else if (charCode === CHAR_OPEN_PAREN) parenDepth++; else if (charCode === CHAR_CLOSE_PAREN) parenDepth--; } const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart); let baseClassName = baseClassNameWithImportantModifier; let hasImportantModifier = false; const lastIndex = baseClassNameWithImportantModifier.length - 1; if (baseClassNameWithImportantModifier.charCodeAt(lastIndex) === CHAR_IMPORTANT) { baseClassName = baseClassNameWithImportantModifier.slice(0, -1); hasImportantModifier = true; } else if ( // Tailwind CSS v3: important modifier at the start of the base class (legacy). baseClassNameWithImportantModifier.charCodeAt(0) === CHAR_IMPORTANT ) { baseClassName = baseClassNameWithImportantModifier.slice(1); hasImportantModifier = true; } const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0; return createResultObject( modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition ); }; var createSortModifiers = (config) => { const orderSensitiveModifiers = new Set(config.orderSensitiveModifiers); return (modifiers) => { const result = []; let currentSegment = []; for (let index = 0; index < modifiers.length; index++) { const modifier = modifiers[index]; const isArbitrary = modifier[0] === "["; const isOrderSensitive = orderSensitiveModifiers.has(modifier); if (isArbitrary || isOrderSensitive) { if (currentSegment.length > 0) { currentSegment.sort(); for (let segmentIndex = 0; segmentIndex < currentSegment.length; segmentIndex++) { result.push(currentSegment[segmentIndex]); } currentSegment = []; } result.push(modifier); } else { currentSegment.push(modifier); } } if (currentSegment.length > 0) { currentSegment.sort(); for (let segmentIndex = 0; segmentIndex < currentSegment.length; segmentIndex++) { result.push(currentSegment[segmentIndex]); } } return result; }; }; var EXTERNAL_DESCRIPTOR = { isExternal: true, classId: -1, conflictIds: [] }; var DESCRIPTOR_CACHE_SIZE = 4096; var MAX_CONFLICT_KEYS = 16384; var createConfigUtils = (config) => { const sortModifiers = createSortModifiers(config); const postfixLookupClassGroupIds = createPostfixLookupClassGroupIds(config); const { getClassGroupId, getConflictingClassGroupIds } = createClassGroupUtils(config); let descriptorCache = /* @__PURE__ */ Object.create(null); let previousDescriptorCache = /* @__PURE__ */ Object.create(null); let descriptorCacheSize = 0; let claimedGeneration = new Int32Array(256); let currentGeneration = 0; let keepFlags = new Uint8Array(64); let splitSawNonSpaceWhitespace = false; const splitClassList = (classList) => { const tokens = []; const length = classList.length; let tokenStart = -1; splitSawNonSpaceWhitespace = false; for (let index = 0; index < length; index++) { const charCode = classList.charCodeAt(index); if (charCode === 32) { if (tokenStart !== -1) { tokens.push(classList.slice(tokenStart, index)); tokenStart = -1; } } else if (charCode >= 9 && charCode <= 13) { splitSawNonSpaceWhitespace = true; if (tokenStart !== -1) { tokens.push(classList.slice(tokenStart, index)); tokenStart = -1; } } else if (tokenStart === -1) { tokenStart = index; } } if (tokenStart !== -1) { tokens.push(classList.slice(tokenStart)); } return tokens; }; const conflictKeyIds = /* @__PURE__ */ new Map(); let nextConflictKeyId = 0; const internConflictKey = (conflictKey) => { let id = conflictKeyIds.get(conflictKey); if (id === void 0) { id = nextConflictKeyId++; conflictKeyIds.set(conflictKey, id); if (id >= claimedGeneration.length) { const grown = new Int32Array(claimedGeneration.length * 2); grown.set(claimedGeneration); claimedGeneration = grown; } } return id; }; const computeClassDescriptor = (originalClassName) => { const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName); if (isExternal) { return EXTERNAL_DESCRIPTOR; } let hasPostfixModifier = Boolean(maybePostfixModifierPosition); let classGroupId; if (hasPostfixModifier) { const baseClassNameWithoutPostfix = baseClassName.substring(0, maybePostfixModifierPosition); classGroupId = getClassGroupId(baseClassNameWithoutPostfix); const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : void 0; if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) { classGroupId = classGroupIdWithPostfix; hasPostfixModifier = false; } } else { classGroupId = getClassGroupId(baseClassName); } if (!classGroupId) { if (!hasPostfixModifier) { return EXTERNAL_DESCRIPTOR; } classGroupId = getClassGroupId(baseClassName); if (!classGroupId) { return EXTERNAL_DESCRIPTOR; } hasPostfixModifier = false; } const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":"); const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier; const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier); const conflictIds = []; for (let index = 0; index < conflictGroups.length; index++) { conflictIds.push(internConflictKey(modifierId + conflictGroups[index])); } return { isExternal: false, classId: internConflictKey(modifierId + classGroupId), conflictIds }; }; const getClassDescriptor = (originalClassName) => { let descriptor = descriptorCache[originalClassName]; if (descriptor !== void 0) { return descriptor; } descriptor = previousDescriptorCache[originalClassName]; if (descriptor === void 0) { descriptor = computeClassDescriptor(originalClassName); } descriptorCache[originalClassName] = descriptor; if (++descriptorCacheSize > DESCRIPTOR_CACHE_SIZE) { descriptorCacheSize = 0; previousDescriptorCache = descriptorCache; descriptorCache = /* @__PURE__ */ Object.create(null); } return descriptor; }; const mergeClassList = (classList) => { const classNames = splitClassList(classList); const classCount = classNames.length; if (classCount === 1) { return classNames[0]; } if (nextConflictKeyId > MAX_CONFLICT_KEYS) { conflictKeyIds.clear(); nextConflictKeyId = 0; descriptorCache = /* @__PURE__ */ Object.create(null); previousDescriptorCache = /* @__PURE__ */ Object.create(null); descriptorCacheSize = 0; } currentGeneration = currentGeneration + 1 | 0; if (currentGeneration === 0) currentGeneration = 1; const generation = currentGeneration; if (classCount > keepFlags.length) { let capacity = keepFlags.length; while (capacity < classCount) capacity *= 2; keepFlags = new Uint8Array(capacity); } let didDrop = false; let tokenCharCount = 0; for (let index = classCount - 1; index >= 0; index -= 1) { const className = classNames[index]; tokenCharCount += className.length; const descriptor = getClassDescriptor(className); if (descriptor.isExternal) { keepFlags[index] = 1; continue; } const classId = descriptor.classId; if (claimedGeneration[classId] === generation) { keepFlags[index] = 0; didDrop = true; continue; } claimedGeneration[classId] = generation; const conflictIds = descriptor.conflictIds; for (let conflictIndex = 0; conflictIndex < conflictIds.length; conflictIndex++) { claimedGeneration[conflictIds[conflictIndex]] = generation; } keepFlags[index] = 1; } if (!didDrop && !splitSawNonSpaceWhitespace && classList.length === tokenCharCount + classCount - 1) { return classList; } let result = ""; for (let index = 0; index < classCount; index++) { if (keepFlags[index] === 1) { if (result) result += " "; result += classNames[index]; } } return result; }; return { parseClassName, sortModifiers, postfixLookupClassGroupIds, getClassGroupId, getConflictingClassGroupIds, getClassDescriptor, mergeClassList }; }; var createPostfixLookupClassGroupIds = (config) => { const lookup = /* @__PURE__ */ Object.create(null); const classGroupIds = config.postfixLookupClassGroups; if (classGroupIds) { for (let index = 0; index < classGroupIds.length; index++) { lookup[classGroupIds[index]] = true; } } return lookup; }; var MERGE_CACHE_SIZE = 500; var createTailwindMerge = (createConfig) => { let configUtils; let mergeClassList; let cache = /* @__PURE__ */ Object.create(null); let previousCache = /* @__PURE__ */ Object.create(null); let cacheSize = 0; const initTailwindMerge = (classList) => { configUtils = createConfigUtils(createConfig()); mergeClassList = configUtils.mergeClassList; merge.mergeString = tailwindMerge; return tailwindMerge(classList); }; const tailwindMerge = (classList) => { let result = cache[classList]; if (result !== void 0) { return result; } result = previousCache[classList]; if (result === void 0) { result = mergeClassList(classList); } cache[classList] = result; if (++cacheSize > MERGE_CACHE_SIZE) { cacheSize = 0; previousCache = cache; cache = /* @__PURE__ */ Object.create(null); } return result; }; const merge = (...args) => merge.mergeString(joinClassValue(args)); merge.mergeString = initTailwindMerge; return merge; }; var fallbackThemeArr = []; var fromTheme = (key) => { const themeGetter = (theme) => theme[key] || fallbackThemeArr; themeGetter.isThemeGetter = true; return themeGetter; }; var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i; var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i; var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/; var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/; var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/; var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/; var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/; var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/; var toNumber = Number; var numberIsNaN = Number.isNaN; var numberIsInteger = Number.isInteger; var isFraction = (value) => fractionRegex.test(value); var isNumber = (value) => Boolean(value) && !numberIsNaN(toNumber(value)); var isInteger = (value) => Boolean(value) && numberIsInteger(toNumber(value)); var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1)); var isTshirtSize = (value) => tshirtUnitRegex.test(value); var isAny = () => true; var isLengthOnly = (value) => ( // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths. // For example, `hsl(0 0% 0%)` would be classified as a length without this check. // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough. lengthUnitRegex.test(value) && !colorFunctionRegex.test(value) ); var isNever = () => false; var isShadow = (value) => shadowRegex.test(value); var isImage = (value) => imageRegex.test(value); var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value); var isNamedContainerQuery = (value) => value.startsWith("@container") && (value[10] === "/" && value[11] !== void 0 || value[11] === "s" && value[16] !== void 0 && value.startsWith("-size/", 10) || value[11] === "n" && value[18] !== void 0 && value.startsWith("-normal/", 10)); var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever); var isArbitraryValue = (value) => arbitraryValueRegex.test(value); var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly); var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber); var isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny); var isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever); var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever); var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage); var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow); var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value); var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength); var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName); var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition); var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize); var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage); var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true); var isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true); var getIsArbitraryValue = (value, testLabel, testValue) => { const result = arbitraryValueRegex.exec(value); if (result) { if (result[1]) { return testLabel(result[1]); } return testValue(result[2]); } return false; }; var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => { const result = arbitraryVariableRegex.exec(value); if (result) { if (result[1]) { return testLabel(result[1]); } return shouldMatchNoLabel; } return false; }; var isLabelPosition = (label) => label === "position" || label === "percentage"; var isLabelImage = (label) => label === "image" || label === "url"; var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size"; var isLabelLength = (label) => label === "length"; var isLabelNumber = (label) => label === "number"; var isLabelFamilyName = (label) => label === "family-name"; var isLabelWeight = (label) => label === "number" || label === "weight"; var isLabelShadow = (label) => label === "shadow"; var getDefaultConfig = () => { const themeColor = fromTheme("color"); const themeFont = fromTheme("font"); const themeText = fromTheme("text"); const themeFontWeight = fromTheme("font-weight"); const themeTracking = fromTheme("tracking"); const themeLeading = fromTheme("leading"); const themeBreakpoint = fromTheme("breakpoint"); const themeContainer = fromTheme("container"); const themeSpacing = fromTheme("spacing"); const themeRadius = fromTheme("radius"); const themeShadow = fromTheme("shadow"); const themeInsetShadow = fromTheme("inset-shadow"); const themeTextShadow = fromTheme("text-shadow"); const themeDropShadow = fromTheme("drop-shadow"); const themeBlur = fromTheme("blur"); const themePerspective = fromTheme("perspective"); const themeAspect = fromTheme("aspect"); const themeEase = fromTheme("ease"); const themeAnimate = fromTheme("animate"); const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"]; const scalePosition = () => [ "center", "top", "bottom", "left", "right", "top-left", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "left-top", "top-right", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "right-top", "bottom-right", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "right-bottom", "bottom-left", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "left-bottom" ]; const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue]; const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"]; const scaleOverscroll = () => ["auto", "contain", "none"]; const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing]; const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()]; const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue]; const scaleGridColRowStartAndEnd = () => [ "auto", { span: ["full", isInteger, isArbitraryVariable, isArbitraryValue] }, isInteger, isArbitraryVariable, isArbitraryValue ]; const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue]; const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue]; const scaleAlignPrimaryAxis = () => [ "start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe" ]; const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"]; const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()]; const scaleSizing = () => [ isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing() ]; const scaleSizingInline = () => [ isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...scaleUnambiguousSpacing() ]; const scaleSizingBlock = () => [ isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing() ]; const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue]; const scaleBgPosition = () => [ ...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, { position: [isArbitraryVariable, isArbitraryValue] } ]; const scaleBgRepeat = () => ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }]; const scaleBgSize = () => [ "auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, { size: [isArbitraryVariable, isArbitraryValue] } ]; const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength]; const scaleRadius = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", "full", themeRadius, isArbitraryVariable, isArbitraryValue ]; const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength]; const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"]; const scaleBlendMode = () => [ "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity" ]; const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition]; const scaleBlur = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", themeBlur, isArbitraryVariable, isArbitraryValue ]; const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue]; const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue]; const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue]; const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()]; return { theme: { animate: ["spin", "ping", "pulse", "bounce"], aspect: ["video"], blur: [isTshirtSize], breakpoint: [isTshirtSize], color: [isAny], container: [isTshirtSize], "drop-shadow": [isTshirtSize], ease: ["in", "out", "in-out"], font: [isAnyNonArbitrary], "font-weight": [ "thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black" ], "inset-shadow": [isTshirtSize], leading: ["none", "tight", "snug", "normal", "relaxed", "loose"], perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"], radius: [isTshirtSize], shadow: [isTshirtSize], spacing: ["px", isNumber], text: [isTshirtSize], "text-shadow": [isTshirtSize], tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"] }, classGroups: { // -------------- // --- Layout --- // -------------- /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [ { aspect: [ "auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect ] } ], /** * Container * @see https://tailwindcss.com/docs/container * @deprecated since Tailwind CSS v4.0.0 */ container: ["container"], /** * Container Type * @see https://tailwindcss.com/docs/responsive-design#container-queries */ "container-type": [ { "@container": ["", "normal", "size", isArbitraryVariable, isArbitraryValue] } ], /** * Container Name * @see https://tailwindcss.com/docs/responsive-design#named-containers */ "container-named": [isNamedContainerQuery], /** * Columns * @see https://tailwindcss.com/docs/columns */ columns: [{ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ "break-after": scaleBreak() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ "break-before": scaleBreak() }], /** * Break Inside * @see https://tailwindcss.com/docs/break-inside */ "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], /** * Box Decoration Break * @see https://tailwindcss.com/docs/box-decoration-break */ "box-decoration": [{ "box-decoration": ["slice", "clone"] }], /** * Box Sizing * @see https://tailwindcss.com/docs/box-sizing */ box: [{ box: ["border", "content"] }], /** * Display * @see https://tailwindcss.com/docs/display */ display: [ "block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden" ], /** * Screen Reader Only * @see https://tailwindcss.com/docs/display#screen-reader-only */ sr: ["sr-only", "not-sr-only"], /** * Floats * @see https://tailwindcss.com/docs/float */ float: [{ float: ["right", "left", "none", "start", "end"] }], /** * Clear * @see https://tailwindcss.com/docs/clear */ clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], /** * Isolation * @see https://tailwindcss.com/docs/isolation */ isolation: ["isolate", "isolation-auto"], /** * Object Fit * @see https://tailwindcss.com/docs/object-fit */ "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], /** * Object Position * @see https://tailwindcss.com/docs/object-position */ "object-position": [{ object: scalePositionWithArbitrary() }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: scaleOverflow() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": scaleOverflow() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": scaleOverflow() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: scaleOverscroll() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": scaleOverscroll() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": scaleOverscroll() }], /** * Position * @see https://tailwindcss.com/docs/position */ position: ["static", "fixed", "absolute", "relative", "sticky"], /** * Inset * @see https://tailwindcss.com/docs/top-right-bottom-left */ inset: [{ inset: scaleInset() }], /** * Inset Inline * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": scaleInset() }], /** * Inset Block * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": scaleInset() }], /** * Inset Inline Start * @see https://tailwindcss.com/docs/top-right-bottom-left * @todo class group will be renamed to `inset-s` in next major release */ start: [ { "inset-s": scaleInset(), /** * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities. * @see https://github.com/tailwindlabs/tailwindcss/pull/19613 */ start: scaleInset() } ], /** * Inset Inline End * @see https://tailwindcss.com/docs/top-right-bottom-left * @todo class group will be renamed to `inset-e` in next major release */ end: [ { "inset-e": scaleInset(), /** * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities. * @see https://github.com/tailwindlabs/tailwindcss/pull/19613 */ end: scaleInset() } ], /** * Inset Block Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-bs": [{ "inset-bs": scaleInset() }], /** * Inset Block End * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-be": [{ "inset-be": scaleInset() }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: scaleInset() }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: scaleInset() }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: scaleInset() }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: scaleInset() }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue] }], // ------------------------ // --- Flexbox and Grid --- // ------------------------ /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [ { basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()] } ], /** * Flex Direction * @see https://tailwindcss.com/docs/flex-direction */ "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], /** * Flex Wrap * @see https://tailwindcss.com/docs/flex-wrap */ "flex-wrap": [{ flex: ["nowrap", "wrap", "wrap-reverse"] }], /** * Flex * @see https://tailwindcss.com/docs/flex */ flex: [{ flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: ["", isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [ { order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue] } ], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: scaleGridColRowStartAndEnd() }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ "col-start": scaleGridColRowStartOrEnd() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ "col-end": scaleGridColRowStartOrEnd() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: scaleGridColRowStartAndEnd() }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ "row-start": scaleGridColRowStartOrEnd() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ "row-end": scaleGridColRowStartOrEnd() }], /** * Grid Auto Flow * @see https://tailwindcss.com/docs/grid-auto-flow */ "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], /** * Grid Auto Columns * @see https://tailwindcss.com/docs/grid-auto-columns */ "auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: scaleUnambiguousSpacing() }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": scaleUnambiguousSpacing() }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": scaleUnambiguousSpacing() }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }], /** * Justify Items * @see https://tailwindcss.com/docs/justify-items */ "justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }], /** * Justify Self * @see https://tailwindcss.com/docs/justify-self */ "justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }], /** * Align Content * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }], /** * Align Items * @see https://tailwindcss.com/docs/align-items */ "align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }], /** * Align Self * @see https://tailwindcss.com/docs/align-self */ "align-self": [{ self: ["auto", ...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }], /** * Place Content * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ "place-content": scaleAlignPrimaryAxis() }], /** * Place Items * @see https://tailwindcss.com/docs/place-items */ "place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }], /** * Place Self * @see https://tailwindcss.com/docs/place-self */ "place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }], // Spacing /** * Padding * @see https://tailwindcss.com/docs/padding */ p: [{ p: scaleUnambiguousSpacing() }], /** * Padding Inline * @see https://tailwindcss.com/docs/padding */ px: [{ px: scaleUnambiguousSpacing() }], /** * Padding Block * @see https://tailwindcss.com/docs/padding */ py: [{ py: scaleUnambiguousSpacing() }], /** * Padding Inline Start * @see https://tailwindcss.com/docs/padding */ ps: [{ ps: scaleUnambiguousSpacing() }], /** * Padding Inline End * @see https://tailwindcss.com/docs/padding */ pe: [{ pe: scaleUnambiguousSpacing() }], /** * Padding Block Start * @see https://tailwindcss.com/docs/padding */ pbs: [{ pbs: scaleUnambiguousSpacing() }], /** * Padding Block End * @see https://tailwindcss.com/docs/padding */ pbe: [{ pbe: scaleUnambiguousSpacing() }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ pt: scaleUnambiguousSpacing() }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ pr: scaleUnambiguousSpacing() }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ pb: scaleUnambiguousSpacing() }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ pl: scaleUnambiguousSpacing() }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ m: scaleMargin() }], /** * Margin Inline * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: scaleMargin() }], /** * Margin Block * @see https://tailwindcss.com/docs/margin */ my: [{ my: scaleMargin() }], /** * Margin Inline Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: scaleMargin() }], /** * Margin Inline End * @see https://tailwindcss.com/docs/margin */ me: [{ me: scaleMargin() }], /** * Margin Block Start * @see https://tailwindcss.com/docs/margin */ mbs: [{ mbs: scaleMargin() }], /** * Margin Block End * @see https://tailwindcss.com/docs/margin */ mbe: [{ mbe: scaleMargin() }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: scaleMargin() }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: scaleMargin() }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: scaleMargin() }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: scaleMargin() }], /** * Space Between X * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-x": [{ "space-x": scaleUnambiguousSpacing() }], /** * Space Between X Reverse * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-x-reverse": ["space-x-reverse"], /** * Space Between Y * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-y": [{ "space-y": scaleUnambiguousSpacing() }], /** * Space Between Y Reverse * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-y-reverse": ["space-y-reverse"], // -------------- // --- Sizing --- // -------------- /** * Size * @see https://tailwindcss.com/docs/width#setting-both-width-and-height */ size: [{ size: scaleSizing() }], /** * Inline Size * @see https://tailwindcss.com/docs/width */ "inline-size": [{ inline: ["auto", ...scaleSizingInline()] }], /** * Min-Inline Size * @see https://tailwindcss.com/docs/min-width */ "min-inline-size": [{ "min-inline": ["auto", ...scaleSizingInline()] }], /** * Max-Inline Size * @see https://tailwindcss.com/docs/max-width */ "max-inline-size": [{ "max-inline": ["none", ...scaleSizingInline()] }], /** * Block Size * @see https://tailwindcss.com/docs/height */ "block-size": [{ block: ["auto", ...scaleSizingBlock()] }], /** * Min-Block Size * @see https://tailwindcss.com/docs/min-height */ "min-block-size": [{ "min-block": ["auto", ...scaleSizingBlock()] }], /** * Max-Block Size * @see https://tailwindcss.com/docs/max-height */ "max-block-size": [{ "max-block": ["none", ...scaleSizingBlock()] }], /** * Width * @see https://tailwindcss.com/docs/width */ w: [{ w: [themeContainer, "screen", ...scaleSizing()] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [ { "min-w": [ themeContainer, "screen", /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ "none", ...scaleSizing() ] } ], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [ { "max-w": [ themeContainer, "screen", "none", /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ "prose", /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ { screen: [themeBreakpoint] }, ...scaleSizing() ] } ], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: ["screen", "lh", ...scaleSizing()] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": ["screen", "lh", "none", ...scaleSizing()] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": ["screen", "lh", ...scaleSizing()] }], // ------------------ // --- Typography --- // ------------------ /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength] }], /** * Font Smoothing * @see https://tailwindcss.com/docs/font-smoothing */ "font-smoothing": ["antialiased", "subpixel-antialiased"], /** * Font Style * @see https://tailwindcss.com/docs/font-style */ "font-style": ["italic", "not-italic"], /** * Font Weight * @see https://tailwindcss.com/docs/font-weight */ "font-weight": [ { font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight] } ], /** * Font Stretch * @see https://tailwindcss.com/docs/font-stretch */ "font-stretch": [ { "font-stretch": [ "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue ] } ], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont] }], /** * Font Feature Settings * @see https://tailwindcss.com/docs/font-feature-settings */ "font-features": [{ "font-features": [isArbitraryValue] }], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-normal": ["normal-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-ordinal": ["ordinal"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-slashed-zero": ["slashed-zero"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-figure": ["lining-nums", "oldstyle-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-spacing": ["proportional-nums", "tabular-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], /** * Letter Spacing * @see https://tailwindcss.com/docs/letter-spacing */ tracking: [{ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [ { leading: [ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ themeLeading, ...scaleUnambiguousSpacing() ] } ], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", isArbitraryVariable, isArbitraryValue] }], /** * List Style Position * @see https://tailwindcss.com/docs/list-style-position */ "list-style-position": [{ list: ["inside", "outside"] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [ { list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue] } ], /** * Text Alignment * @see https://tailwindcss.com/docs/text-align */ "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], /** * Placeholder Color * @deprecated since Tailwind CSS v3.0.0 * @see https://v3.tailwindcss.com/docs/placeholder-color */ "placeholder-color": [{ placeholder: scaleColor() }], /** * Text Color * @see https://tailwindcss.com/docs/text-color */ "text-color": [{ text: scaleColor() }], /** * Text Decoration * @see https://tailwindcss.com/docs/text-decoration */ "text-decoration": ["underline", "overline", "line-through", "no-underline"], /** * Text Decoration Style * @see https://tailwindcss.com/docs/text-decoration-style */ "text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [ { decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength] } ], /** * Text Decoration Color * @see https://tailwindcss.com/docs/text-decoration-color */ "text-decoration-color": [{ decoration: scaleColor() }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [ { "underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue] } ], /** * Text Transform * @see https://tailwindcss.com/docs/text-transform */ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], /** * Text Overflow * @see https://tailwindcss.com/docs/text-overflow */ "text-overflow": ["truncate", "text-ellipsis", "text-clip"], /** * Text Wrap * @see https://tailwindcss.com/docs/text-wrap */ "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], /** * Text Indent * @see https://tailwindcss.com/docs/text-indent */ indent: [{ indent: scaleUnambiguousSpacing() }], /** * Tab Size * @see https://tailwindcss.com/docs/tab-size */ "tab-size": [{ tab: [isInteger, isArbitraryVariable, isArbitraryValue] }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [ { align: [ "baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue ] } ], /** * Whitespace * @see https://tailwindcss.com/docs/whitespace */ whitespace: [ { whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] } ], /** * Word Break * @see https://tailwindcss.com/docs/word-break */ break: [{ break: ["normal", "words", "all", "keep"] }], /** * Overflow Wrap * @see https://tailwindcss.com/docs/overflow-wrap */ wrap: [{ wrap: ["break-word", "anywhere", "normal"] }], /** * Hyphens * @see https://tailwindcss.com/docs/hyphens */ hyphens: [{ hyphens: ["none", "manual", "auto"] }], /** * Content * @see https://tailwindcss.com/docs/content */ content: [{ content: ["none", isArbitraryVariable, isArbitraryValue] }], // ------------------- // --- Backgrounds --- // ------------------- /** * Background Attachment * @see https://tailwindcss.com/docs/background-attachment */ "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], /** * Background Clip * @see https://tailwindcss.com/docs/background-clip */ "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], /** * Background Origin * @see https://tailwindcss.com/docs/background-origin */ "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], /** * Background Position * @see https://tailwindcss.com/docs/background-position */ "bg-position": [{ bg: scaleBgPosition() }], /** * Background Repeat * @see https://tailwindcss.com/docs/background-repeat */ "bg-repeat": [{ bg: scaleBgRepeat() }], /** * Background Size * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ bg: scaleBgSize() }], /** * Background Image * @see https://tailwindcss.com/docs/background-image */ "bg-image": [ { bg: [ "none", { linear: [ { to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, isInteger, isArbitraryVariable, isArbitraryValue ], radial: ["", isArbitraryVariable, isArbitraryValue], conic: [isInteger, isArbitraryVariable, isArbitraryValue] }, isArbitraryVariableImage, isArbitraryImage ] } ], /** * Background Color * @see https://tailwindcss.com/docs/background-color */ "bg-color": [{ bg: scaleColor() }], /** * Gradient Color Stops From Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ from: scaleGradientStopPosition() }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ via: scaleGradientStopPosition() }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ to: scaleGradientStopPosition() }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ from: scaleColor() }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ via: scaleColor() }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ to: scaleColor() }], // --------------- // --- Borders --- // --------------- /** * Border Radius * @see https://tailwindcss.com/docs/border-radius */ rounded: [{ rounded: scaleRadius() }], /** * Border Radius Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-s": [{ "rounded-s": scaleRadius() }], /** * Border Radius End * @see https://tailwindcss.com/docs/border-radius */ "rounded-e": [{ "rounded-e": scaleRadius() }], /** * Border Radius Top * @see https://tailwindcss.com/docs/border-radius */ "rounded-t": [{ "rounded-t": scaleRadius() }], /** * Border Radius Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-r": [{ "rounded-r": scaleRadius() }], /** * Border Radius Bottom * @see https://tailwindcss.com/docs/border-radius */ "rounded-b": [{ "rounded-b": scaleRadius() }], /** * Border Radius Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-l": [{ "rounded-l": scaleRadius() }], /** * Border Radius Start Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-ss": [{ "rounded-ss": scaleRadius() }], /** * Border Radius Start End * @see https://tailwindcss.com/docs/border-radius */ "rounded-se": [{ "rounded-se": scaleRadius() }], /** * Border Radius End End * @see https://tailwindcss.com/docs/border-radius */ "rounded-ee": [{ "rounded-ee": scaleRadius() }], /** * Border Radius End Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-es": [{ "rounded-es": scaleRadius() }], /** * Border Radius Top Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-tl": [{ "rounded-tl": scaleRadius() }], /** * Border Radius Top Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-tr": [{ "rounded-tr": scaleRadius() }], /** * Border Radius Bottom Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-br": [{ "rounded-br": scaleRadius() }], /** * Border Radius Bottom Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-bl": [{ "rounded-bl": scaleRadius() }], /** * Border Width * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ border: scaleBorderWidth() }], /** * Border Width Inline * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ "border-x": scaleBorderWidth() }], /** * Border Width Block * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ "border-y": scaleBorderWidth() }], /** * Border Width Inline Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ "border-s": scaleBorderWidth() }], /** * Border Width Inline End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ "border-e": scaleBorderWidth() }], /** * Border Width Block Start * @see https://tailwindcss.com/docs/border-width */ "border-w-bs": [{ "border-bs": scaleBorderWidth() }], /** * Border Width Block End * @see https://tailwindcss.com/docs/border-width */ "border-w-be": [{ "border-be": scaleBorderWidth() }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ "border-t": scaleBorderWidth() }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ "border-r": scaleBorderWidth() }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ "border-b": scaleBorderWidth() }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ "border-l": scaleBorderWidth() }], /** * Divide Width X * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-x": [{ "divide-x": scaleBorderWidth() }], /** * Divide Width X Reverse * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-x-reverse": ["divide-x-reverse"], /** * Divide Width Y * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-y": [{ "divide-y": scaleBorderWidth() }], /** * Divide Width Y Reverse * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-y-reverse": ["divide-y-reverse"], /** * Border Style * @see https://tailwindcss.com/docs/border-style */ "border-style": [{ border: [...scaleLineStyle(), "hidden", "none"] }], /** * Divide Style * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style */ "divide-style": [{ divide: [...scaleLineStyle(), "hidden", "none"] }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ border: scaleColor() }], /** * Border Color Inline * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ "border-x": scaleColor() }], /** * Border Color Block * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ "border-y": scaleColor() }], /** * Border Color Inline Start * @see https://tailwindcss.com/docs/border-color */ "border-color-s": [{ "border-s": scaleColor() }], /** * Border Color Inline End * @see https://tailwindcss.com/docs/border-color */ "border-color-e": [{ "border-e": scaleColor() }], /** * Border Color Block Start * @see https://tailwindcss.com/docs/border-color */ "border-color-bs": [{ "border-bs": scaleColor() }], /** * Border Color Block End * @see https://tailwindcss.com/docs/border-color */ "border-color-be": [{ "border-be": scaleColor() }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ "border-t": scaleColor() }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ "border-r": scaleColor() }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ "border-b": scaleColor() }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ "border-l": scaleColor() }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ divide: scaleColor() }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ outline: [...scaleLineStyle(), "none", "hidden"] }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ "outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength] }], /** * Outline Color * @see https://tailwindcss.com/docs/outline-color */ "outline-color": [{ outline: scaleColor() }], // --------------- // --- Effects --- // --------------- /** * Box Shadow * @see https://tailwindcss.com/docs/box-shadow */ shadow: [ { shadow: [ // Deprecated since Tailwind CSS v4.0.0 "", "none", themeShadow, isArbitraryVariableShadow, isArbitraryShadow ] } ], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color */ "shadow-color": [{ shadow: scaleColor() }], /** * Inset Box Shadow * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow */ "inset-shadow": [ { "inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow] } ], /** * Inset Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color */ "inset-shadow-color": [{ "inset-shadow": scaleColor() }], /** * Ring Width * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring */ "ring-w": [{ ring: scaleBorderWidth() }], /** * Ring Width Inset * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings * @deprecated since Tailwind CSS v4.0.0 * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158 */ "ring-w-inset": ["ring-inset"], /** * Ring Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color */ "ring-color": [{ ring: scaleColor() }], /** * Ring Offset Width * @see https://v3.tailwindcss.com/docs/ring-offset-width * @deprecated since Tailwind CSS v4.0.0 * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158 */ "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }], /** * Ring Offset Color * @see https://v3.tailwindcss.com/docs/ring-offset-color * @deprecated since Tailwind CSS v4.0.0 * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158 */ "ring-offset-color": [{ "ring-offset": scaleColor() }], /** * Inset Ring Width * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring */ "inset-ring-w": [{ "inset-ring": scaleBorderWidth() }], /** * Inset Ring Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color */ "inset-ring-color": [{ "inset-ring": scaleColor() }], /** * Text Shadow * @see https://tailwindcss.com/docs/text-shadow */ "text-shadow": [ { "text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow] } ], /** * Text Shadow Color * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color */ "text-shadow-color": [{ "text-shadow": scaleColor() }], /** * Opacity * @see https://tailwindcss.com/docs/opacity */ opacity: [{ opacity: [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Mix Blend Mode * @see https://tailwindcss.com/docs/mix-blend-mode */ "mix-blend": [{ "mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"] }], /** * Background Blend Mode * @see https://tailwindcss.com/docs/background-blend-mode */ "bg-blend": [{ "bg-blend": scaleBlendMode() }], /** * Mask Clip * @see https://tailwindcss.com/docs/mask-clip */ "mask-clip": [ { "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"] }, "mask-no-clip" ], /** * Mask Composite * @see https://tailwindcss.com/docs/mask-composite */ "mask-composite": [{ mask: ["add", "subtract", "intersect", "exclude"] }], /** * Mask Image * @see https://tailwindcss.com/docs/mask-image */ "mask-image-linear-pos": [{ "mask-linear": [isNumber] }], "mask-image-linear-from-pos": [{ "mask-linear-from": scaleMaskImagePosition() }], "mask-image-linear-to-pos": [{ "mask-linear-to": scaleMaskImagePosition() }], "mask-image-linear-from-color": [{ "mask-linear-from": scaleColor() }], "mask-image-linear-to-color": [{ "mask-linear-to": scaleColor() }], "mask-image-t-from-pos": [{ "mask-t-from": scaleMaskImagePosition() }], "mask-image-t-to-pos": [{ "mask-t-to": scaleMaskImagePosition() }], "mask-image-t-from-color": [{ "mask-t-from": scaleColor() }], "mask-image-t-to-color": [{ "mask-t-to": scaleColor() }], "mask-image-r-from-pos": [{ "mask-r-from": scaleMaskImagePosition() }], "mask-image-r-to-pos": [{ "mask-r-to": scaleMaskImagePosition() }], "mask-image-r-from-color": [{ "mask-r-from": scaleColor() }], "mask-image-r-to-color": [{ "mask-r-to": scaleColor() }], "mask-image-b-from-pos": [{ "mask-b-from": scaleMaskImagePosition() }], "mask-image-b-to-pos": [{ "mask-b-to": scaleMaskImagePosition() }], "mask-image-b-from-color": [{ "mask-b-from": scaleColor() }], "mask-image-b-to-color": [{ "mask-b-to": scaleColor() }], "mask-image-l-from-pos": [{ "mask-l-from": scaleMaskImagePosition() }], "mask-image-l-to-pos": [{ "mask-l-to": scaleMaskImagePosition() }], "mask-image-l-from-color": [{ "mask-l-from": scaleColor() }], "mask-image-l-to-color": [{ "mask-l-to": scaleColor() }], "mask-image-x-from-pos": [{ "mask-x-from": scaleMaskImagePosition() }], "mask-image-x-to-pos": [{ "mask-x-to": scaleMaskImagePosition() }], "mask-image-x-from-color": [{ "mask-x-from": scaleColor() }], "mask-image-x-to-color": [{ "mask-x-to": scaleColor() }], "mask-image-y-from-pos": [{ "mask-y-from": scaleMaskImagePosition() }], "mask-image-y-to-pos": [{ "mask-y-to": scaleMaskImagePosition() }], "mask-image-y-from-color": [{ "mask-y-from": scaleColor() }], "mask-image-y-to-color": [{ "mask-y-to": scaleColor() }], "mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }], "mask-image-radial-from-pos": [{ "mask-radial-from": scaleMaskImagePosition() }], "mask-image-radial-to-pos": [{ "mask-radial-to": scaleMaskImagePosition() }], "mask-image-radial-from-color": [{ "mask-radial-from": scaleColor() }], "mask-image-radial-to-color": [{ "mask-radial-to": scaleColor() }], "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }], "mask-image-radial-size": [ { "mask-radial": [{ closest: ["side", "corner"], farthest: ["side", "corner"] }] } ], "mask-image-radial-pos": [{ "mask-radial-at": scalePosition() }], "mask-image-conic-pos": [{ "mask-conic": [isNumber] }], "mask-image-conic-from-pos": [{ "mask-conic-from": scaleMaskImagePosition() }], "mask-image-conic-to-pos": [{ "mask-conic-to": scaleMaskImagePosition() }], "mask-image-conic-from-color": [{ "mask-conic-from": scaleColor() }], "mask-image-conic-to-color": [{ "mask-conic-to": scaleColor() }], /** * Mask Mode * @see https://tailwindcss.com/docs/mask-mode */ "mask-mode": [{ mask: ["alpha", "luminance", "match"] }], /** * Mask Origin * @see https://tailwindcss.com/docs/mask-origin */ "mask-origin": [{ "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"] }], /** * Mask Position * @see https://tailwindcss.com/docs/mask-position */ "mask-position": [{ mask: scaleBgPosition() }], /** * Mask Repeat * @see https://tailwindcss.com/docs/mask-repeat */ "mask-repeat": [{ mask: scaleBgRepeat() }], /** * Mask Size * @see https://tailwindcss.com/docs/mask-size */ "mask-size": [{ mask: scaleBgSize() }], /** * Mask Type * @see https://tailwindcss.com/docs/mask-type */ "mask-type": [{ "mask-type": ["alpha", "luminance"] }], /** * Mask Image * @see https://tailwindcss.com/docs/mask-image */ "mask-image": [{ mask: ["none", isArbitraryVariable, isArbitraryValue] }], // --------------- // --- Filters --- // --------------- /** * Filter * @see https://tailwindcss.com/docs/filter */ filter: [ { filter: [ // Deprecated since Tailwind CSS v3.0.0 "", "none", isArbitraryVariable, isArbitraryValue ] } ], /** * Blur * @see https://tailwindcss.com/docs/blur */ blur: [{ blur: scaleBlur() }], /** * Brightness * @see https://tailwindcss.com/docs/brightness */ brightness: [{ brightness: [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Contrast * @see https://tailwindcss.com/docs/contrast */ contrast: [{ contrast: [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Drop Shadow * @see https://tailwindcss.com/docs/drop-shadow */ "drop-shadow": [ { "drop-shadow": [ // Deprecated since Tailwind CSS v4.0.0 "", "none", themeDropShadow, isArbitraryVariableShadow, isArbitraryShadow ] } ], /** * Drop Shadow Color * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color */ "drop-shadow-color": [{ "drop-shadow": scaleColor() }], /** * Grayscale * @see https://tailwindcss.com/docs/grayscale */ grayscale: [{ grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Hue Rotate * @see https://tailwindcss.com/docs/hue-rotate */ "hue-rotate": [{ "hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Invert * @see https://tailwindcss.com/docs/invert */ invert: [{ invert: ["", isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Saturate * @see https://tailwindcss.com/docs/saturate */ saturate: [{ saturate: [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Sepia * @see https://tailwindcss.com/docs/sepia */ sepia: [{ sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Backdrop Filter * @see https://tailwindcss.com/docs/backdrop-filter */ "backdrop-filter": [ { "backdrop-filter": [ // Deprecated since Tailwind CSS v3.0.0 "", "none", isArbitraryVariable, isArbitraryValue ] } ], /** * Backdrop Blur * @see https://tailwindcss.com/docs/backdrop-blur */ "backdrop-blur": [{ "backdrop-blur": scaleBlur() }], /** * Backdrop Brightness * @see https://tailwindcss.com/docs/backdrop-brightness */ "backdrop-brightness": [ { "backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue] } ], /** * Backdrop Contrast * @see https://tailwindcss.com/docs/backdrop-contrast */ "backdrop-contrast": [ { "backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue] } ], /** * Backdrop Grayscale * @see https://tailwindcss.com/docs/backdrop-grayscale */ "backdrop-grayscale": [ { "backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue] } ], /** * Backdrop Hue Rotate * @see https://tailwindcss.com/docs/backdrop-hue-rotate */ "backdrop-hue-rotate": [ { "backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue] } ], /** * Backdrop Invert * @see https://tailwindcss.com/docs/backdrop-invert */ "backdrop-invert": [ { "backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue] } ], /** * Backdrop Opacity * @see https://tailwindcss.com/docs/backdrop-opacity */ "backdrop-opacity": [{ "backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Backdrop Saturate * @see https://tailwindcss.com/docs/backdrop-saturate */ "backdrop-saturate": [ { "backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue] } ], /** * Backdrop Sepia * @see https://tailwindcss.com/docs/backdrop-sepia */ "backdrop-sepia": [{ "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue] }], // -------------- // --- Tables --- // -------------- /** * Border Collapse * @see https://tailwindcss.com/docs/border-collapse */ "border-collapse": [{ border: ["collapse", "separate"] }], /** * Border Spacing * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing": [{ "border-spacing": scaleUnambiguousSpacing() }], /** * Border Spacing X * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-x": [{ "border-spacing-x": scaleUnambiguousSpacing() }], /** * Border Spacing Y * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-y": [{ "border-spacing-y": scaleUnambiguousSpacing() }], /** * Table Layout * @see https://tailwindcss.com/docs/table-layout */ "table-layout": [{ table: ["auto", "fixed"] }], /** * Caption Side * @see https://tailwindcss.com/docs/caption-side */ caption: [{ caption: ["top", "bottom"] }], // --------------------------------- // --- Transitions and Animation --- // --------------------------------- /** * Transition Property * @see https://tailwindcss.com/docs/transition-property */ transition: [ { transition: [ "", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue ] } ], /** * Transition Behavior * @see https://tailwindcss.com/docs/transition-behavior */ "transition-behavior": [{ transition: ["normal", "discrete"] }], /** * Transition Duration * @see https://tailwindcss.com/docs/transition-duration */ duration: [{ duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue] }], /** * Transition Timing Function * @see https://tailwindcss.com/docs/transition-timing-function */ ease: [{ ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue] }], /** * Transition Delay * @see https://tailwindcss.com/docs/transition-delay */ delay: [{ delay: [isNumber, isArbitraryVariable, isArbitraryValue] }], /** * Animation * @see https://tailwindcss.com/docs/animation */ animate: [{ animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue] }], // ------------------ // --- Transforms --- // ------------------ /** * Backface Visibility * @see https://tailwindcss.com/docs/backface-visibility */ backface: [{ backface: ["hidden", "visible"] }], /** * Perspective * @see https://tailwindcss.com/docs/perspective */ perspective: [{ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue] }], /** * Perspective Origin * @see https://tailwindcss.com/docs/perspective-origin */ "perspective-origin": [{ "perspective-origin": scalePositionWithArbitrary() }], /** * Rotate * @see https://tailwindcss.com/docs/rotate */ rotate: [{ rotate: scaleRotate() }], /** * Rotate X * @see https://tailwindcss.com/docs/rotate */ "rotate-x": [{ "rotate-x": scaleRotate() }], /** * Rotate Y * @see https://tailwindcss.com/docs/rotate */ "rotate-y": [{ "rotate-y": scaleRotate() }], /** * Rotate Z * @see https://tailwindcss.com/docs/rotate */ "rotate-z": [{ "rotate-z": scaleRotate() }], /** * Scale * @see https://tailwindcss.com/docs/scale */ scale: [{ scale: scaleScale() }], /** * Scale X * @see https://tailwindcss.com/docs/scale */ "scale-x": [{ "scale-x": scaleScale() }], /** * Scale Y * @see https://tailwindcss.com/docs/scale */ "scale-y": [{ "scale-y": scaleScale() }], /** * Scale Z * @see https://tailwindcss.com/docs/scale */ "scale-z": [{ "scale-z": scaleScale() }], /** * Scale 3D * @see https://tailwindcss.com/docs/scale */ "scale-3d": ["scale-3d"], /** * Skew * @see https://tailwindcss.com/docs/skew */ skew: [{ skew: scaleSkew() }], /** * Skew X * @see https://tailwindcss.com/docs/skew */ "skew-x": [{ "skew-x": scaleSkew() }], /** * Skew Y * @see https://tailwindcss.com/docs/skew */ "skew-y": [{ "skew-y": scaleSkew() }], /** * Transform * @see https://tailwindcss.com/docs/transform */ transform: [{ transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"] }], /** * Transform Origin * @see https://tailwindcss.com/docs/transform-origin */ "transform-origin": [{ origin: scalePositionWithArbitrary() }], /** * Transform Style * @see https://tailwindcss.com/docs/transform-style */ "transform-style": [{ transform: ["3d", "flat"] }], /** * Translate * @see https://tailwindcss.com/docs/translate */ translate: [{ translate: scaleTranslate() }], /** * Translate X * @see https://tailwindcss.com/docs/translate */ "translate-x": [{ "translate-x": scaleTranslate() }], /** * Translate Y * @see https://tailwindcss.com/docs/translate */ "translate-y": [{ "translate-y": scaleTranslate() }], /** * Translate Z * @see https://tailwindcss.com/docs/translate */ "translate-z": [{ "translate-z": scaleTranslate() }], /** * Translate None * @see https://tailwindcss.com/docs/translate */ "translate-none": ["translate-none"], /** * Zoom * @see https://tailwindcss.com/docs/zoom */ zoom: [{ zoom: [isInteger, isArbitraryVariable, isArbitraryValue] }], // --------------------- // --- Interactivity --- // --------------------- /** * Accent Color * @see https://tailwindcss.com/docs/accent-color */ accent: [{ accent: scaleColor() }], /** * Appearance * @see https://tailwindcss.com/docs/appearance */ appearance: [{ appearance: ["none", "auto"] }], /** * Caret Color * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities */ "caret-color": [{ caret: scaleColor() }], /** * Color Scheme * @see https://tailwindcss.com/docs/color-scheme */ "color-scheme": [ { scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"] } ], /** * Cursor * @see https://tailwindcss.com/docs/cursor */ cursor: [ { cursor: [ "auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryVariable, isArbitraryValue ] } ], /** * Field Sizing * @see https://tailwindcss.com/docs/field-sizing */ "field-sizing": [{ "field-sizing": ["fixed", "content"] }], /** * Pointer Events * @see https://tailwindcss.com/docs/pointer-events */ "pointer-events": [{ "pointer-events": ["auto", "none"] }], /** * Resize * @see https://tailwindcss.com/docs/resize */ resize: [{ resize: ["none", "", "y", "x"] }], /** * Scroll Behavior * @see https://tailwindcss.com/docs/scroll-behavior */ "scroll-behavior": [{ scroll: ["auto", "smooth"] }], /** * Scrollbar Thumb Color * @see https://tailwindcss.com/docs/scrollbar-color */ "scrollbar-thumb-color": [{ "scrollbar-thumb": scaleColor() }], /** * Scrollbar Track Color * @see https://tailwindcss.com/docs/scrollbar-color */ "scrollbar-track-color": [{ "scrollbar-track": scaleColor() }], /** * Scrollbar Gutter * @see https://tailwindcss.com/docs/scrollbar-gutter */ "scrollbar-gutter": [{ "scrollbar-gutter": ["auto", "stable", "both"] }], /** * Scrollbar Width * @see https://tailwindcss.com/docs/scrollbar-width */ "scrollbar-w": [{ scrollbar: ["auto", "thin", "none"] }], /** * Scroll Margin * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-m": [{ "scroll-m": scaleUnambiguousSpacing() }], /** * Scroll Margin Inline * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mx": [{ "scroll-mx": scaleUnambiguousSpacing() }], /** * Scroll Margin Block * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-my": [{ "scroll-my": scaleUnambiguousSpacing() }], /** * Scroll Margin Inline Start * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-ms": [{ "scroll-ms": scaleUnambiguousSpacing() }], /** * Scroll Margin Inline End * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-me": [{ "scroll-me": scaleUnambiguousSpacing() }], /** * Scroll Margin Block Start * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mbs": [{ "scroll-mbs": scaleUnambiguousSpacing() }], /** * Scroll Margin Block End * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mbe": [{ "scroll-mbe": scaleUnambiguousSpacing() }], /** * Scroll Margin Top * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mt": [{ "scroll-mt": scaleUnambiguousSpacing() }], /** * Scroll Margin Right * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mr": [{ "scroll-mr": scaleUnambiguousSpacing() }], /** * Scroll Margin Bottom * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mb": [{ "scroll-mb": scaleUnambiguousSpacing() }], /** * Scroll Margin Left * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-ml": [{ "scroll-ml": scaleUnambiguousSpacing() }], /** * Scroll Padding * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-p": [{ "scroll-p": scaleUnambiguousSpacing() }], /** * Scroll Padding Inline * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-px": [{ "scroll-px": scaleUnambiguousSpacing() }], /** * Scroll Padding Block * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-py": [{ "scroll-py": scaleUnambiguousSpacing() }], /** * Scroll Padding Inline Start * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-ps": [{ "scroll-ps": scaleUnambiguousSpacing() }], /** * Scroll Padding Inline End * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pe": [{ "scroll-pe": scaleUnambiguousSpacing() }], /** * Scroll Padding Block Start * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pbs": [{ "scroll-pbs": scaleUnambiguousSpacing() }], /** * Scroll Padding Block End * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pbe": [{ "scroll-pbe": scaleUnambiguousSpacing() }], /** * Scroll Padding Top * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pt": [{ "scroll-pt": scaleUnambiguousSpacing() }], /** * Scroll Padding Right * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pr": [{ "scroll-pr": scaleUnambiguousSpacing() }], /** * Scroll Padding Bottom * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pb": [{ "scroll-pb": scaleUnambiguousSpacing() }], /** * Scroll Padding Left * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pl": [{ "scroll-pl": scaleUnambiguousSpacing() }], /** * Scroll Snap Align * @see https://tailwindcss.com/docs/scroll-snap-align */ "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], /** * Scroll Snap Stop * @see https://tailwindcss.com/docs/scroll-snap-stop */ "snap-stop": [{ snap: ["normal", "always"] }], /** * Scroll Snap Type * @see https://tailwindcss.com/docs/scroll-snap-type */ "snap-type": [{ snap: ["none", "x", "y", "both"] }], /** * Scroll Snap Type Strictness * @see https://tailwindcss.com/docs/scroll-snap-type */ "snap-strictness": [{ snap: ["mandatory", "proximity"] }], /** * Touch Action * @see https://tailwindcss.com/docs/touch-action */ touch: [{ touch: ["auto", "none", "manipulation"] }], /** * Touch Action X * @see https://tailwindcss.com/docs/touch-action */ "touch-x": [{ "touch-pan": ["x", "left", "right"] }], /** * Touch Action Y * @see https://tailwindcss.com/docs/touch-action */ "touch-y": [{ "touch-pan": ["y", "up", "down"] }], /** * Touch Action Pinch Zoom * @see https://tailwindcss.com/docs/touch-action */ "touch-pz": ["touch-pinch-zoom"], /** * User Select * @see https://tailwindcss.com/docs/user-select */ select: [{ select: ["none", "text", "all", "auto"] }], /** * Will Change * @see https://tailwindcss.com/docs/will-change */ "will-change": [ { "will-change": [ "auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue ] } ], // ----------- // --- SVG --- // ----------- /** * Fill * @see https://tailwindcss.com/docs/fill */ fill: [{ fill: ["none", ...scaleColor()] }], /** * Stroke Width * @see https://tailwindcss.com/docs/stroke-width */ "stroke-w": [ { stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber] } ], /** * Stroke * @see https://tailwindcss.com/docs/stroke */ stroke: [{ stroke: ["none", ...scaleColor()] }], // --------------------- // --- Accessibility --- // --------------------- /** * Forced Color Adjust * @see https://tailwindcss.com/docs/forced-color-adjust */ "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { "container-named": ["container-type"], overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: [ "inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left" ], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": [ "fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction" ], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: [ "rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl" ], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": [ "border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "border-w-t", "border-w-r", "border-w-b", "border-w-l" ], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": [ "border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "border-color-t", "border-color-r", "border-color-b", "border-color-l" ], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], translate: ["translate-x", "translate-y", "translate-none"], "translate-none": ["translate", "translate-x", "translate-y", "translate-z"], "scroll-m": [ "scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml" ], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": [ "scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl" ], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] }, postfixLookupClassGroups: ["container-type"], orderSensitiveModifiers: [ "*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection" ] }; }; var mergeConfigs = (baseConfig, { extend = {}, override = {} }) => { overrideConfigProperties(baseConfig.theme, override.theme); overrideConfigProperties(baseConfig.classGroups, override.classGroups); overrideConfigProperties(baseConfig.conflictingClassGroups, override.conflictingClassGroups); overrideConfigProperties( baseConfig.conflictingClassGroupModifiers, override.conflictingClassGroupModifiers ); overrideProperty(baseConfig, "postfixLookupClassGroups", override.postfixLookupClassGroups); overrideProperty(baseConfig, "orderSensitiveModifiers", override.orderSensitiveModifiers); mergeConfigProperties(baseConfig.theme, extend.theme); mergeConfigProperties(baseConfig.classGroups, extend.classGroups); mergeConfigProperties(baseConfig.conflictingClassGroups, extend.conflictingClassGroups); mergeConfigProperties( baseConfig.conflictingClassGroupModifiers, extend.conflictingClassGroupModifiers ); mergeArrayProperties(baseConfig, extend, "postfixLookupClassGroups"); mergeArrayProperties(baseConfig, extend, "orderSensitiveModifiers"); return baseConfig; }; var overrideProperty = (baseObject, overrideKey, overrideValue) => { if (overrideValue !== void 0) { baseObject[overrideKey] = overrideValue; } }; var overrideConfigProperties = (baseObject, overrideObject) => { if (overrideObject) { for (const key in overrideObject) { overrideProperty(baseObject, key, overrideObject[key]); } } }; var mergeConfigProperties = (baseObject, mergeObject) => { if (mergeObject) { for (const key in mergeObject) { mergeArrayProperties(baseObject, mergeObject, key); } } }; var mergeArrayProperties = (baseObject, mergeObject, key) => { const mergeValue = mergeObject[key]; if (mergeValue !== void 0) { baseObject[key] = baseObject[key] ? baseObject[key].concat(mergeValue) : mergeValue; } }; var createMerger = (config) => { if (!config) { return createTailwindMerge(getDefaultConfig); } const createConfig = typeof config === "function" ? () => config(getDefaultConfig()) : () => mergeConfigs(getDefaultConfig(), config); return createTailwindMerge(createConfig); }; var toMergerConfig = (config) => { if (isEmptyObject(config)) return void 0; const source = config; const extend = { ...source.extend ?? {} }; for (const key of [ "theme", "classGroups", "conflictingClassGroups", "conflictingClassGroupModifiers", "postfixLookupClassGroups", "orderSensitiveModifiers", "cacheSize", "prefix", "separator", "experimentalParseClassName" ]) { if (source[key] !== void 0 && extend[key] === void 0) { extend[key] = source[key]; } } const result = {}; if (Object.keys(extend).length > 0) { result.extend = extend; } if (source.override != null && !isEmptyObject(source.override)) { result.override = source.override; } if (!result.extend && !result.override) return void 0; return result; }; var createTwMerge = (cachedTwMergeConfig) => { const extension = toMergerConfig(cachedTwMergeConfig); const merger = createMerger(extension); return (classList) => merger.mergeString(classList); }; var defaultMerger; var getDefaultMerger = () => { if (!defaultMerger) defaultMerger = createMerger(); return defaultMerger; }; var ensureConfiguredMerger = () => { if (!state.cachedTwMerge || state.didTwMergeConfigChange) { state.didTwMergeConfigChange = false; state.cachedTwMerge = createTwMerge(state.cachedTwMergeConfig); } return state.cachedTwMerge; }; var syncTwMergeConfig = (config) => { const next = config == null ? void 0 : config.twMergeConfig; if (!next || isEmptyObject(next)) return; if (!isEqual(next, state.cachedTwMergeConfig)) { state.cachedTwMergeConfig = next; state.didTwMergeConfigChange = true; } }; var joinArgs = (classnames) => joinClassValue(classnames); var IS_V8 = (() => { const error = new Error(); return !("line" in error) && !("lineNumber" in error); })(); var ARG_CACHE_BUCKET_SIZE = 64; var ARG_CACHE_SIZE = 500; var argCache = /* @__PURE__ */ new Map(); var previousArgCache = /* @__PURE__ */ new Map(); var argCacheCount = 0; var clearArgCache = () => { argCache = /* @__PURE__ */ new Map(); previousArgCache = /* @__PURE__ */ new Map(); argCacheCount = 0; }; var mergeStringDefault = (joined) => { if (!joined) return void 0; if (joined.indexOf(" ") === -1) return joined; return getDefaultMerger().mergeString(joined) || void 0; }; var storeArgCache = (firstKey, rest, result) => { let target = argCache.get(firstKey); if (target === void 0) { target = []; argCache.set(firstKey, target); } if (target.length >= ARG_CACHE_BUCKET_SIZE) target.shift(); target.push({ rest, result }); if (++argCacheCount > ARG_CACHE_SIZE) { argCacheCount = 0; previousArgCache = argCache; argCache = /* @__PURE__ */ new Map(); } }; var lookupArgCache = (firstKey, firstKeyIndex, truthyStringCount, length, getItem) => { let bucket = argCache.get(firstKey); if (bucket === void 0) bucket = previousArgCache.get(firstKey); if (bucket === void 0) return void 0; for (let entryIndex = 0; entryIndex < bucket.length; entryIndex++) { const entry = bucket[entryIndex]; const rest = entry.rest; if (rest.length !== truthyStringCount - 1) continue; let restIndex = 0; let isMatch = true; for (let index = firstKeyIndex + 1; index < length; index++) { const item = getItem(index); if (!item) continue; if (item !== rest[restIndex++]) { isMatch = false; break; } } if (isMatch) return entry.result; } return void 0; }; var mergeVariadicCached = (inputs) => { const length = inputs.length; let firstKey = ""; let firstKeyIndex = -1; let truthyStringCount = 0; let everyTruthyIsString = true; for (let index = 0; index < length; index++) { const item = inputs[index]; if (!item) continue; if (typeof item !== "string") { everyTruthyIsString = false; break; } if (firstKeyIndex === -1) { firstKey = item; firstKeyIndex = index; } truthyStringCount++; } if (!everyTruthyIsString) { return mergeStringDefault(joinArgs(inputs)); } if (truthyStringCount === 0) return void 0; if (truthyStringCount === 1) return mergeStringDefault(firstKey); const cached = lookupArgCache( firstKey, firstKeyIndex, truthyStringCount, length, (index) => inputs[index] ); if (cached !== void 0) return cached || void 0; let joined = firstKey; const rest = []; for (let index = firstKeyIndex + 1; index < length; index++) { const item = inputs[index]; if (!item) continue; joined += " " + item; rest.push(item); } const result = mergeStringDefault(joined) ?? ""; storeArgCache(firstKey, rest, result); return result || void 0; }; var mergeVariadicFromGetter = (length, getItem) => { let firstKey = ""; let firstKeyIndex = -1; let truthyStringCount = 0; let everyTruthyIsString = true; for (let index = 0; index < length; index++) { const item = getItem(index); if (!item) continue; if (typeof item !== "string") { everyTruthyIsString = false; break; } if (firstKeyIndex === -1) { firstKey = item; firstKeyIndex = index; } truthyStringCount++; } if (!everyTruthyIsString) { const inputs = new Array(length); for (let index = 0; index < length; index++) { inputs[index] = getItem(index); } return mergeStringDefault(joinArgs(inputs)); } if (truthyStringCount === 0) return void 0; if (truthyStringCount === 1) return mergeStringDefault(firstKey); const cached = lookupArgCache(firstKey, firstKeyIndex, truthyStringCount, length, getItem); if (cached !== void 0) return cached || void 0; let joined = firstKey; const rest = []; for (let index = firstKeyIndex + 1; index < length; index++) { const item = getItem(index); if (!item) continue; joined += " " + item; rest.push(item); } const result = mergeStringDefault(joined) ?? ""; storeArgCache(firstKey, rest, result); return result || void 0; }; var originalStateReset = state.reset.bind(state); state.reset = () => { defaultMerger = void 0; clearArgCache(); originalStateReset(); }; var executeMerge = (classnames, config) => { const base = joinArgs(classnames); if (!base || !((config == null ? void 0 : config.twMerge) ?? true)) return base || void 0; if (base.indexOf(" ") === -1) return base; syncTwMergeConfig(config); const hasCustomConfig = Boolean((config == null ? void 0 : config.twMergeConfig) && !isEmptyObject(config.twMergeConfig)); const merge = hasCustomConfig ? ensureConfiguredMerger() : getDefaultMerger().mergeString; return merge(base) || void 0; }; var isDefaultMergeConfig = (config) => { if (config == null) return true; if (config.twMerge === false) return false; if (config.twMergeConfig && !isEmptyObject(config.twMergeConfig)) return false; return true; }; var cnAdapter = (config, ...classnames) => executeMerge(classnames, config); var cn = function cn2() { const length = arguments.length; if (length === 0) return void 0; const first = arguments[0]; if (length === 1) { const joined = typeof first === "string" ? first : joinArgs([first]); return mergeStringDefault(joined); } if (IS_V8) { return mergeVariadicFromGetter(length, (index) => arguments[index]); } const inputs = new Array(length); for (let index = 0; index < length; index++) { inputs[index] = arguments[index]; } return mergeStringDefault(joinArgs(inputs)); }; var cnMerge = (...classnames) => { return (config) => { if (isDefaultMergeConfig(config)) { if (IS_V8) return mergeVariadicCached(classnames); return mergeStringDefault(joinArgs(classnames)); } return executeMerge(classnames, config); }; }; var runtime = getTailwindVariants(cnAdapter); var tv = runtime.tv; var createTV = runtime.createTV; var defaultConfig2 = defaultConfig; var cx2 = cx; export { cn, cnMerge, createTV, cx2 as cx, defaultConfig2 as defaultConfig, tv }; //# sourceMappingURL=tailwind-variants.js.map