@tangle-network/charts 2.0.13 → 2.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
- import { C as isRefusal, J as hatchPath, O as duration, S as markName, Z as markerPath, dt as wrap, i as timeline, n as reportedCount, p as MARK_HEADS, r as sumReportedCounts, t as finiteNumber, ut as textWidth, v as eventsGap } from "../flow-trace-k097Ukvs.js";
1
+ import { G as hatchPath, J as markerPath, T as duration, b as isRefusal, ct as wrap, h as eventsGap, st as textWidth, t as timeline, u as MARK_HEADS, y as markName } from "../timeline-B7c-cede.js";
2
+ import { n as reportedCount, r as sumReportedCounts } from "../flow-trace-DRluIYw8.js";
3
+ import { C as visibleFlowWaterfallRows, D as statusMeta, E as runStatus, S as totalsAt, T as RunStatusIcon, _ as slowestRow, a as costSummary, b as spanRunning, c as drawnRow, d as formatCount, f as formatSpanDuration, g as searchMatchIds, h as rowCostText, i as busyMs, l as flowWaterfallRows, n as agentSummary, o as criticalPathIds, p as quietActivity, r as agentViewRows, s as defaultOpenFamilies, t as agentCallouts, u as formatCost, v as spanFact, w as workKind, x as toneKey, y as spanFailed } from "../flow-waterfall-model-DvrgPLGS.js";
2
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { Fragment as Fragment$1, createContext, createElement, forwardRef, memo, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
5
+ import { Fragment as Fragment$1, memo, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
4
6
  //#region src/react/sparkline.tsx
5
7
  const DEFAULT_SPARKLINE_WIDTH = 96;
6
8
  const DEFAULT_SPARKLINE_HEIGHT = 24;
@@ -652,9 +654,9 @@ const durationStyle = {
652
654
  fontFamily: "var(--font-mono, monospace)",
653
655
  fontVariantNumeric: "tabular-nums"
654
656
  };
655
- const ordered$1 = (start, end) => Number.isFinite(start) && Number.isFinite(end) && end >= start;
657
+ const ordered = (start, end) => Number.isFinite(start) && Number.isFinite(end) && end >= start;
656
658
  function WaterfallTimeAxis({ windowMs, originMs = 0, widthPx = 208, formatDuration = formatWaterfallDuration, className, fluid = false }) {
657
- if (!ordered$1(0, windowMs) || !Number.isFinite(originMs)) return null;
659
+ if (!ordered(0, windowMs) || !Number.isFinite(originMs)) return null;
658
660
  const ticks = waterfallTicks(windowMs, widthPx);
659
661
  if (windowMs === 0) return null;
660
662
  return /* @__PURE__ */ jsx("div", {
@@ -706,7 +708,7 @@ function WaterfallBar({ startMs, endMs, window, tone = "default", formatDuration
706
708
  minWidth: 0,
707
709
  flex: "1 1 0%"
708
710
  } : timingCell;
709
- if (!ordered$1(startMs, endMs) || !ordered$1(window.startMs, window.endMs)) return /* @__PURE__ */ jsx("span", {
711
+ if (!ordered(startMs, endMs) || !ordered(window.startMs, window.endMs)) return /* @__PURE__ */ jsx("span", {
710
712
  className,
711
713
  "data-waterfall-track": "",
712
714
  "data-unavailable": "true",
@@ -779,7 +781,7 @@ function WaterfallRow({ label, attribution, startMs, endMs, window, tone, format
779
781
  "data-waterfall-duration": "",
780
782
  className: durationClassName,
781
783
  style: durationStyle,
782
- children: durationLabel ?? (ordered$1(startMs, endMs) ? formatDuration(endMs - startMs) : "—")
784
+ children: durationLabel ?? (ordered(startMs, endMs) ? formatDuration(endMs - startMs) : "—")
783
785
  })
784
786
  ]
785
787
  });
@@ -2621,4742 +2623,6 @@ function DotMap({ positions, radii, colors, palette, extent, rects, labels, dimm
2621
2623
  });
2622
2624
  }
2623
2625
  //#endregion
2624
- //#region node_modules/clsx/dist/clsx.mjs
2625
- function r(e) {
2626
- var t, f, n = "";
2627
- if ("string" == typeof e || "number" == typeof e) n += e;
2628
- else if ("object" == typeof e) if (Array.isArray(e)) {
2629
- var o = e.length;
2630
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
2631
- } else for (f in e) e[f] && (n && (n += " "), n += f);
2632
- return n;
2633
- }
2634
- function clsx() {
2635
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
2636
- return n;
2637
- }
2638
- //#endregion
2639
- //#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
2640
- /**
2641
- * Concatenates two arrays faster than the array spread operator.
2642
- */
2643
- const concatArrays = (array1, array2) => {
2644
- const combinedArray = new Array(array1.length + array2.length);
2645
- for (let i = 0; i < array1.length; i++) combinedArray[i] = array1[i];
2646
- for (let i = 0; i < array2.length; i++) combinedArray[array1.length + i] = array2[i];
2647
- return combinedArray;
2648
- };
2649
- const createClassValidatorObject = (classGroupId, validator) => ({
2650
- classGroupId,
2651
- validator
2652
- });
2653
- const createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
2654
- nextPart,
2655
- validators,
2656
- classGroupId
2657
- });
2658
- const CLASS_PART_SEPARATOR = "-";
2659
- const EMPTY_CONFLICTS = [];
2660
- const ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
2661
- const createClassGroupUtils = (config) => {
2662
- const classMap = createClassMap(config);
2663
- const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
2664
- const getClassGroupId = (className) => {
2665
- if (className.startsWith("[") && className.endsWith("]")) return getGroupIdForArbitraryProperty(className);
2666
- const classParts = className.split(CLASS_PART_SEPARATOR);
2667
- const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
2668
- return getGroupRecursive(classParts, startIndex, classMap);
2669
- };
2670
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
2671
- if (hasPostfixModifier) {
2672
- const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
2673
- const baseConflicts = conflictingClassGroups[classGroupId];
2674
- if (modifierConflicts) {
2675
- if (baseConflicts) return concatArrays(baseConflicts, modifierConflicts);
2676
- return modifierConflicts;
2677
- }
2678
- return baseConflicts || EMPTY_CONFLICTS;
2679
- }
2680
- return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
2681
- };
2682
- return {
2683
- getClassGroupId,
2684
- getConflictingClassGroupIds
2685
- };
2686
- };
2687
- const getGroupRecursive = (classParts, startIndex, classPartObject) => {
2688
- if (classParts.length - startIndex === 0) return classPartObject.classGroupId;
2689
- const currentClassPart = classParts[startIndex];
2690
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
2691
- if (nextClassPartObject) {
2692
- const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
2693
- if (result) return result;
2694
- }
2695
- const validators = classPartObject.validators;
2696
- if (validators === null) return;
2697
- const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
2698
- const validatorsLength = validators.length;
2699
- for (let i = 0; i < validatorsLength; i++) {
2700
- const validatorObj = validators[i];
2701
- if (validatorObj.validator(classRest)) return validatorObj.classGroupId;
2702
- }
2703
- };
2704
- /**
2705
- * Get the class group ID for an arbitrary property.
2706
- *
2707
- * @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
2708
- */
2709
- const getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
2710
- const content = className.slice(1, -1);
2711
- const colonIndex = content.indexOf(":");
2712
- const property = content.slice(0, colonIndex);
2713
- return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
2714
- })();
2715
- /**
2716
- * Exported for testing only
2717
- */
2718
- const createClassMap = (config) => {
2719
- const { theme, classGroups } = config;
2720
- return processClassGroups(classGroups, theme);
2721
- };
2722
- const processClassGroups = (classGroups, theme) => {
2723
- const classMap = createClassPartObject();
2724
- for (const classGroupId in classGroups) {
2725
- const group = classGroups[classGroupId];
2726
- processClassesRecursively(group, classMap, classGroupId, theme);
2727
- }
2728
- return classMap;
2729
- };
2730
- const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
2731
- const len = classGroup.length;
2732
- for (let i = 0; i < len; i++) {
2733
- const classDefinition = classGroup[i];
2734
- processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
2735
- }
2736
- };
2737
- const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
2738
- if (typeof classDefinition === "string") {
2739
- processStringDefinition(classDefinition, classPartObject, classGroupId);
2740
- return;
2741
- }
2742
- if (typeof classDefinition === "function") {
2743
- processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
2744
- return;
2745
- }
2746
- processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
2747
- };
2748
- const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
2749
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
2750
- classPartObjectToEdit.classGroupId = classGroupId;
2751
- };
2752
- const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
2753
- if (isThemeGetter(classDefinition)) {
2754
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
2755
- return;
2756
- }
2757
- if (classPartObject.validators === null) classPartObject.validators = [];
2758
- classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
2759
- };
2760
- const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
2761
- const entries = Object.entries(classDefinition);
2762
- const len = entries.length;
2763
- for (let i = 0; i < len; i++) {
2764
- const [key, value] = entries[i];
2765
- processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
2766
- }
2767
- };
2768
- const getPart = (classPartObject, path) => {
2769
- let current = classPartObject;
2770
- const parts = path.split(CLASS_PART_SEPARATOR);
2771
- const len = parts.length;
2772
- for (let i = 0; i < len; i++) {
2773
- const part = parts[i];
2774
- let next = current.nextPart.get(part);
2775
- if (!next) {
2776
- next = createClassPartObject();
2777
- current.nextPart.set(part, next);
2778
- }
2779
- current = next;
2780
- }
2781
- return current;
2782
- };
2783
- const isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
2784
- const createLruCache = (maxCacheSize) => {
2785
- if (maxCacheSize < 1) return {
2786
- get: () => void 0,
2787
- set: () => {}
2788
- };
2789
- let cacheSize = 0;
2790
- let cache = Object.create(null);
2791
- let previousCache = Object.create(null);
2792
- const update = (key, value) => {
2793
- cache[key] = value;
2794
- cacheSize++;
2795
- if (cacheSize > maxCacheSize) {
2796
- cacheSize = 0;
2797
- previousCache = cache;
2798
- cache = Object.create(null);
2799
- }
2800
- };
2801
- return {
2802
- get(key) {
2803
- let value = cache[key];
2804
- if (value !== void 0) return value;
2805
- if ((value = previousCache[key]) !== void 0) {
2806
- update(key, value);
2807
- return value;
2808
- }
2809
- },
2810
- set(key, value) {
2811
- if (key in cache) cache[key] = value;
2812
- else update(key, value);
2813
- }
2814
- };
2815
- };
2816
- const IMPORTANT_MODIFIER = "!";
2817
- const MODIFIER_SEPARATOR = ":";
2818
- const EMPTY_MODIFIERS = [];
2819
- const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
2820
- modifiers,
2821
- hasImportantModifier,
2822
- baseClassName,
2823
- maybePostfixModifierPosition,
2824
- isExternal
2825
- });
2826
- const createParseClassName = (config) => {
2827
- const { prefix, experimentalParseClassName } = config;
2828
- /**
2829
- * Parse class name into parts.
2830
- *
2831
- * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
2832
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
2833
- */
2834
- let parseClassName = (className) => {
2835
- const modifiers = [];
2836
- let bracketDepth = 0;
2837
- let parenDepth = 0;
2838
- let modifierStart = 0;
2839
- let postfixModifierPosition;
2840
- const len = className.length;
2841
- for (let index = 0; index < len; index++) {
2842
- const currentCharacter = className[index];
2843
- if (bracketDepth === 0 && parenDepth === 0) {
2844
- if (currentCharacter === MODIFIER_SEPARATOR) {
2845
- modifiers.push(className.slice(modifierStart, index));
2846
- modifierStart = index + 1;
2847
- continue;
2848
- }
2849
- if (currentCharacter === "/") {
2850
- postfixModifierPosition = index;
2851
- continue;
2852
- }
2853
- }
2854
- if (currentCharacter === "[") bracketDepth++;
2855
- else if (currentCharacter === "]") bracketDepth--;
2856
- else if (currentCharacter === "(") parenDepth++;
2857
- else if (currentCharacter === ")") parenDepth--;
2858
- }
2859
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
2860
- let baseClassName = baseClassNameWithImportantModifier;
2861
- let hasImportantModifier = false;
2862
- if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
2863
- baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
2864
- hasImportantModifier = true;
2865
- } else if (baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
2866
- baseClassName = baseClassNameWithImportantModifier.slice(1);
2867
- hasImportantModifier = true;
2868
- }
2869
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
2870
- return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
2871
- };
2872
- if (prefix) {
2873
- const fullPrefix = prefix + MODIFIER_SEPARATOR;
2874
- const parseClassNameOriginal = parseClassName;
2875
- parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true);
2876
- }
2877
- if (experimentalParseClassName) {
2878
- const parseClassNameOriginal = parseClassName;
2879
- parseClassName = (className) => experimentalParseClassName({
2880
- className,
2881
- parseClassName: parseClassNameOriginal
2882
- });
2883
- }
2884
- return parseClassName;
2885
- };
2886
- /**
2887
- * Sorts modifiers according to following schema:
2888
- * - Predefined modifiers are sorted alphabetically
2889
- * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
2890
- */
2891
- const createSortModifiers = (config) => {
2892
- const modifierWeights = /* @__PURE__ */ new Map();
2893
- config.orderSensitiveModifiers.forEach((mod, index) => {
2894
- modifierWeights.set(mod, 1e6 + index);
2895
- });
2896
- return (modifiers) => {
2897
- const result = [];
2898
- let currentSegment = [];
2899
- for (let i = 0; i < modifiers.length; i++) {
2900
- const modifier = modifiers[i];
2901
- const isArbitrary = modifier[0] === "[";
2902
- const isOrderSensitive = modifierWeights.has(modifier);
2903
- if (isArbitrary || isOrderSensitive) {
2904
- if (currentSegment.length > 0) {
2905
- currentSegment.sort();
2906
- result.push(...currentSegment);
2907
- currentSegment = [];
2908
- }
2909
- result.push(modifier);
2910
- } else currentSegment.push(modifier);
2911
- }
2912
- if (currentSegment.length > 0) {
2913
- currentSegment.sort();
2914
- result.push(...currentSegment);
2915
- }
2916
- return result;
2917
- };
2918
- };
2919
- const createConfigUtils = (config) => ({
2920
- cache: createLruCache(config.cacheSize),
2921
- parseClassName: createParseClassName(config),
2922
- sortModifiers: createSortModifiers(config),
2923
- postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config),
2924
- ...createClassGroupUtils(config)
2925
- });
2926
- const createPostfixLookupClassGroupIds = (config) => {
2927
- const lookup = Object.create(null);
2928
- const classGroupIds = config.postfixLookupClassGroups;
2929
- if (classGroupIds) for (let i = 0; i < classGroupIds.length; i++) lookup[classGroupIds[i]] = true;
2930
- return lookup;
2931
- };
2932
- const SPLIT_CLASSES_REGEX = /\s+/;
2933
- const mergeClassList = (classList, configUtils) => {
2934
- const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers, postfixLookupClassGroupIds } = configUtils;
2935
- /**
2936
- * Set of classGroupIds in following format:
2937
- * `{importantModifier}{variantModifiers}{classGroupId}`
2938
- * @example 'float'
2939
- * @example 'hover:focus:bg-color'
2940
- * @example 'md:!pr'
2941
- */
2942
- const classGroupsInConflict = [];
2943
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
2944
- let result = "";
2945
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
2946
- const originalClassName = classNames[index];
2947
- const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
2948
- if (isExternal) {
2949
- result = originalClassName + (result.length > 0 ? " " + result : result);
2950
- continue;
2951
- }
2952
- let hasPostfixModifier = !!maybePostfixModifierPosition;
2953
- let classGroupId;
2954
- if (hasPostfixModifier) {
2955
- classGroupId = getClassGroupId(baseClassName.substring(0, maybePostfixModifierPosition));
2956
- const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : void 0;
2957
- if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
2958
- classGroupId = classGroupIdWithPostfix;
2959
- hasPostfixModifier = false;
2960
- }
2961
- } else classGroupId = getClassGroupId(baseClassName);
2962
- if (!classGroupId) {
2963
- if (!hasPostfixModifier) {
2964
- result = originalClassName + (result.length > 0 ? " " + result : result);
2965
- continue;
2966
- }
2967
- classGroupId = getClassGroupId(baseClassName);
2968
- if (!classGroupId) {
2969
- result = originalClassName + (result.length > 0 ? " " + result : result);
2970
- continue;
2971
- }
2972
- hasPostfixModifier = false;
2973
- }
2974
- const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
2975
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
2976
- const classId = modifierId + classGroupId;
2977
- if (classGroupsInConflict.indexOf(classId) > -1) continue;
2978
- classGroupsInConflict.push(classId);
2979
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
2980
- for (let i = 0; i < conflictGroups.length; ++i) {
2981
- const group = conflictGroups[i];
2982
- classGroupsInConflict.push(modifierId + group);
2983
- }
2984
- result = originalClassName + (result.length > 0 ? " " + result : result);
2985
- }
2986
- return result;
2987
- };
2988
- /**
2989
- * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
2990
- *
2991
- * Specifically:
2992
- * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
2993
- * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
2994
- *
2995
- * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
2996
- */
2997
- const twJoin = (...classLists) => {
2998
- let index = 0;
2999
- let argument;
3000
- let resolvedValue;
3001
- let string = "";
3002
- while (index < classLists.length) if (argument = classLists[index++]) {
3003
- if (resolvedValue = toValue(argument)) {
3004
- string && (string += " ");
3005
- string += resolvedValue;
3006
- }
3007
- }
3008
- return string;
3009
- };
3010
- const toValue = (mix) => {
3011
- if (typeof mix === "string") return mix;
3012
- let resolvedValue;
3013
- let string = "";
3014
- for (let k = 0; k < mix.length; k++) if (mix[k]) {
3015
- if (resolvedValue = toValue(mix[k])) {
3016
- string && (string += " ");
3017
- string += resolvedValue;
3018
- }
3019
- }
3020
- return string;
3021
- };
3022
- const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
3023
- let configUtils;
3024
- let cacheGet;
3025
- let cacheSet;
3026
- let functionToCall;
3027
- const initTailwindMerge = (classList) => {
3028
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
3029
- configUtils = createConfigUtils(config);
3030
- cacheGet = configUtils.cache.get;
3031
- cacheSet = configUtils.cache.set;
3032
- functionToCall = tailwindMerge;
3033
- return tailwindMerge(classList);
3034
- };
3035
- const tailwindMerge = (classList) => {
3036
- const cachedResult = cacheGet(classList);
3037
- if (cachedResult) return cachedResult;
3038
- const result = mergeClassList(classList, configUtils);
3039
- cacheSet(classList, result);
3040
- return result;
3041
- };
3042
- functionToCall = initTailwindMerge;
3043
- return (...args) => functionToCall(twJoin(...args));
3044
- };
3045
- const fallbackThemeArr = [];
3046
- const fromTheme = (key) => {
3047
- const themeGetter = (theme) => theme[key] || fallbackThemeArr;
3048
- themeGetter.isThemeGetter = true;
3049
- themeGetter.themeKey = key;
3050
- return themeGetter;
3051
- };
3052
- const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
3053
- const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
3054
- const fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
3055
- const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
3056
- const 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$/;
3057
- const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/;
3058
- const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
3059
- const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
3060
- const isFraction = (value) => fractionRegex.test(value);
3061
- const isNumber = (value) => !!value && !Number.isNaN(Number(value));
3062
- const isInteger = (value) => !!value && Number.isInteger(Number(value));
3063
- const isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
3064
- const isTshirtSize = (value) => tshirtUnitRegex.test(value);
3065
- const isAny = () => true;
3066
- const isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
3067
- const isNever = () => false;
3068
- const isShadow = (value) => shadowRegex.test(value);
3069
- const isImage = (value) => imageRegex.test(value);
3070
- const isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
3071
- const 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));
3072
- const isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
3073
- const isArbitraryValue = (value) => arbitraryValueRegex.test(value);
3074
- const isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
3075
- const isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
3076
- const isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
3077
- const isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
3078
- const isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
3079
- const isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
3080
- const isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
3081
- const isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
3082
- const isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
3083
- const isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
3084
- const isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
3085
- const isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
3086
- const isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
3087
- const isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
3088
- const isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
3089
- const getIsArbitraryValue = (value, testLabel, testValue) => {
3090
- const result = arbitraryValueRegex.exec(value);
3091
- if (result) {
3092
- if (result[1]) return testLabel(result[1]);
3093
- return testValue(result[2]);
3094
- }
3095
- return false;
3096
- };
3097
- const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
3098
- const result = arbitraryVariableRegex.exec(value);
3099
- if (result) {
3100
- if (result[1]) return testLabel(result[1]);
3101
- return shouldMatchNoLabel;
3102
- }
3103
- return false;
3104
- };
3105
- const isLabelPosition = (label) => label === "position" || label === "percentage";
3106
- const isLabelImage = (label) => label === "image" || label === "url";
3107
- const isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
3108
- const isLabelLength = (label) => label === "length";
3109
- const isLabelNumber = (label) => label === "number";
3110
- const isLabelFamilyName = (label) => label === "family-name";
3111
- const isLabelWeight = (label) => label === "number" || label === "weight";
3112
- const isLabelShadow = (label) => label === "shadow";
3113
- const getDefaultConfig = () => {
3114
- /**
3115
- * Theme getters for theme variable namespaces
3116
- * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
3117
- */
3118
- const themeColor = fromTheme("color");
3119
- const themeFont = fromTheme("font");
3120
- const themeText = fromTheme("text");
3121
- const themeFontWeight = fromTheme("font-weight");
3122
- const themeTracking = fromTheme("tracking");
3123
- const themeLeading = fromTheme("leading");
3124
- const themeBreakpoint = fromTheme("breakpoint");
3125
- const themeContainer = fromTheme("container");
3126
- const themeSpacing = fromTheme("spacing");
3127
- const themeRadius = fromTheme("radius");
3128
- const themeShadow = fromTheme("shadow");
3129
- const themeInsetShadow = fromTheme("inset-shadow");
3130
- const themeTextShadow = fromTheme("text-shadow");
3131
- const themeDropShadow = fromTheme("drop-shadow");
3132
- const themeBlur = fromTheme("blur");
3133
- const themePerspective = fromTheme("perspective");
3134
- const themeAspect = fromTheme("aspect");
3135
- const themeEase = fromTheme("ease");
3136
- const themeAnimate = fromTheme("animate");
3137
- /**
3138
- * Helpers to avoid repeating the same scales
3139
- *
3140
- * We use functions that create a new array every time they're called instead of static arrays.
3141
- * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
3142
- */
3143
- const scaleBreak = () => [
3144
- "auto",
3145
- "avoid",
3146
- "all",
3147
- "avoid-page",
3148
- "page",
3149
- "left",
3150
- "right",
3151
- "column"
3152
- ];
3153
- const scalePosition = () => [
3154
- "center",
3155
- "top",
3156
- "bottom",
3157
- "left",
3158
- "right",
3159
- "top-left",
3160
- "left-top",
3161
- "top-right",
3162
- "right-top",
3163
- "bottom-right",
3164
- "right-bottom",
3165
- "bottom-left",
3166
- "left-bottom"
3167
- ];
3168
- const scalePositionWithArbitrary = () => [
3169
- ...scalePosition(),
3170
- isArbitraryVariable,
3171
- isArbitraryValue
3172
- ];
3173
- const scaleOverflow = () => [
3174
- "auto",
3175
- "hidden",
3176
- "clip",
3177
- "visible",
3178
- "scroll"
3179
- ];
3180
- const scaleOverscroll = () => [
3181
- "auto",
3182
- "contain",
3183
- "none"
3184
- ];
3185
- const scaleUnambiguousSpacing = () => [
3186
- isArbitraryVariable,
3187
- isArbitraryValue,
3188
- themeSpacing
3189
- ];
3190
- const scaleInset = () => [
3191
- isFraction,
3192
- "full",
3193
- "auto",
3194
- ...scaleUnambiguousSpacing()
3195
- ];
3196
- const scaleGridTemplateColsRows = () => [
3197
- isInteger,
3198
- "none",
3199
- "subgrid",
3200
- isArbitraryVariable,
3201
- isArbitraryValue
3202
- ];
3203
- const scaleGridColRowStartAndEnd = () => [
3204
- "auto",
3205
- { span: [
3206
- "full",
3207
- isInteger,
3208
- isArbitraryVariable,
3209
- isArbitraryValue
3210
- ] },
3211
- isInteger,
3212
- isArbitraryVariable,
3213
- isArbitraryValue
3214
- ];
3215
- const scaleGridColRowStartOrEnd = () => [
3216
- isInteger,
3217
- "auto",
3218
- isArbitraryVariable,
3219
- isArbitraryValue
3220
- ];
3221
- const scaleGridAutoColsRows = () => [
3222
- "auto",
3223
- "min",
3224
- "max",
3225
- "fr",
3226
- isArbitraryVariable,
3227
- isArbitraryValue
3228
- ];
3229
- const scaleAlignPrimaryAxis = () => [
3230
- "start",
3231
- "end",
3232
- "center",
3233
- "between",
3234
- "around",
3235
- "evenly",
3236
- "stretch",
3237
- "baseline",
3238
- "center-safe",
3239
- "end-safe"
3240
- ];
3241
- const scaleAlignSecondaryAxis = () => [
3242
- "start",
3243
- "end",
3244
- "center",
3245
- "stretch",
3246
- "center-safe",
3247
- "end-safe"
3248
- ];
3249
- const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
3250
- const scaleSizing = () => [
3251
- isFraction,
3252
- "auto",
3253
- "full",
3254
- "dvw",
3255
- "dvh",
3256
- "lvw",
3257
- "lvh",
3258
- "svw",
3259
- "svh",
3260
- "min",
3261
- "max",
3262
- "fit",
3263
- ...scaleUnambiguousSpacing()
3264
- ];
3265
- const scaleSizingInline = () => [
3266
- themeContainer,
3267
- isFraction,
3268
- "screen",
3269
- "full",
3270
- "dvw",
3271
- "lvw",
3272
- "svw",
3273
- "min",
3274
- "max",
3275
- "fit",
3276
- ...scaleUnambiguousSpacing()
3277
- ];
3278
- const scaleSizingBlock = () => [
3279
- isFraction,
3280
- "screen",
3281
- "full",
3282
- "lh",
3283
- "dvh",
3284
- "lvh",
3285
- "svh",
3286
- "min",
3287
- "max",
3288
- "fit",
3289
- ...scaleUnambiguousSpacing()
3290
- ];
3291
- const scaleColor = () => [
3292
- themeColor,
3293
- isArbitraryVariable,
3294
- isArbitraryValue
3295
- ];
3296
- const scaleBgPosition = () => [
3297
- ...scalePosition(),
3298
- isArbitraryVariablePosition,
3299
- isArbitraryPosition,
3300
- { position: [isArbitraryVariable, isArbitraryValue] }
3301
- ];
3302
- const scaleBgRepeat = () => ["no-repeat", { repeat: [
3303
- "",
3304
- "x",
3305
- "y",
3306
- "space",
3307
- "round"
3308
- ] }];
3309
- const scaleBgSize = () => [
3310
- "auto",
3311
- "cover",
3312
- "contain",
3313
- isArbitraryVariableSize,
3314
- isArbitrarySize,
3315
- { size: [isArbitraryVariable, isArbitraryValue] }
3316
- ];
3317
- const scaleGradientStopPosition = () => [
3318
- isPercent,
3319
- isArbitraryVariableLength,
3320
- isArbitraryLength
3321
- ];
3322
- const scaleRadius = () => [
3323
- "",
3324
- "none",
3325
- "full",
3326
- themeRadius,
3327
- isArbitraryVariable,
3328
- isArbitraryValue
3329
- ];
3330
- const scaleBorderWidth = () => [
3331
- "",
3332
- isNumber,
3333
- isArbitraryVariableLength,
3334
- isArbitraryLength
3335
- ];
3336
- const scaleLineStyle = () => [
3337
- "solid",
3338
- "dashed",
3339
- "dotted",
3340
- "double"
3341
- ];
3342
- const scaleBlendMode = () => [
3343
- "normal",
3344
- "multiply",
3345
- "screen",
3346
- "overlay",
3347
- "darken",
3348
- "lighten",
3349
- "color-dodge",
3350
- "color-burn",
3351
- "hard-light",
3352
- "soft-light",
3353
- "difference",
3354
- "exclusion",
3355
- "hue",
3356
- "saturation",
3357
- "color",
3358
- "luminosity"
3359
- ];
3360
- const scaleMaskImagePosition = () => [
3361
- isNumber,
3362
- isPercent,
3363
- isArbitraryVariablePosition,
3364
- isArbitraryPosition
3365
- ];
3366
- const scaleBlur = () => [
3367
- "",
3368
- "none",
3369
- themeBlur,
3370
- isArbitraryVariable,
3371
- isArbitraryValue
3372
- ];
3373
- const scaleRotate = () => [
3374
- "none",
3375
- isNumber,
3376
- isArbitraryVariable,
3377
- isArbitraryValue
3378
- ];
3379
- const scaleScale = () => [
3380
- "none",
3381
- isNumber,
3382
- isArbitraryVariable,
3383
- isArbitraryValue
3384
- ];
3385
- const scaleSkew = () => [
3386
- isNumber,
3387
- isArbitraryVariable,
3388
- isArbitraryValue
3389
- ];
3390
- const scaleTranslate = () => [
3391
- isFraction,
3392
- "full",
3393
- ...scaleUnambiguousSpacing()
3394
- ];
3395
- return {
3396
- cacheSize: 500,
3397
- theme: {
3398
- animate: [
3399
- "spin",
3400
- "ping",
3401
- "pulse",
3402
- "bounce"
3403
- ],
3404
- aspect: ["video"],
3405
- blur: [isTshirtSize],
3406
- breakpoint: [isTshirtSize],
3407
- color: [isAny],
3408
- container: [isTshirtSize],
3409
- "drop-shadow": [isTshirtSize],
3410
- ease: [
3411
- "in",
3412
- "out",
3413
- "in-out"
3414
- ],
3415
- font: [isAnyNonArbitrary],
3416
- "font-weight": [
3417
- "thin",
3418
- "extralight",
3419
- "light",
3420
- "normal",
3421
- "medium",
3422
- "semibold",
3423
- "bold",
3424
- "extrabold",
3425
- "black"
3426
- ],
3427
- "inset-shadow": [isTshirtSize],
3428
- leading: [
3429
- "none",
3430
- "tight",
3431
- "snug",
3432
- "normal",
3433
- "relaxed",
3434
- "loose"
3435
- ],
3436
- perspective: [
3437
- "dramatic",
3438
- "near",
3439
- "normal",
3440
- "midrange",
3441
- "distant",
3442
- "none"
3443
- ],
3444
- radius: [isTshirtSize],
3445
- shadow: [isTshirtSize],
3446
- spacing: ["px", isNumber],
3447
- text: [isTshirtSize],
3448
- "text-shadow": [isTshirtSize],
3449
- tracking: [
3450
- "tighter",
3451
- "tight",
3452
- "normal",
3453
- "wide",
3454
- "wider",
3455
- "widest"
3456
- ]
3457
- },
3458
- classGroups: {
3459
- /**
3460
- * Aspect Ratio
3461
- * @see https://tailwindcss.com/docs/aspect-ratio
3462
- */
3463
- aspect: [{ aspect: [
3464
- "auto",
3465
- "square",
3466
- isFraction,
3467
- isArbitraryValue,
3468
- isArbitraryVariable,
3469
- themeAspect
3470
- ] }],
3471
- /**
3472
- * Container
3473
- * @see https://tailwindcss.com/docs/container
3474
- * @deprecated since Tailwind CSS v4.0.0
3475
- */
3476
- container: ["container"],
3477
- /**
3478
- * Container Type
3479
- * @see https://tailwindcss.com/docs/responsive-design#container-queries
3480
- */
3481
- "container-type": [{ "@container": [
3482
- "",
3483
- "normal",
3484
- "size",
3485
- isArbitraryVariable,
3486
- isArbitraryValue
3487
- ] }],
3488
- /**
3489
- * Container Name
3490
- * @see https://tailwindcss.com/docs/responsive-design#named-containers
3491
- */
3492
- "container-named": [isNamedContainerQuery],
3493
- /**
3494
- * Columns
3495
- * @see https://tailwindcss.com/docs/columns
3496
- */
3497
- columns: [{ columns: [
3498
- isNumber,
3499
- "auto",
3500
- isArbitraryValue,
3501
- isArbitraryVariable,
3502
- themeContainer
3503
- ] }],
3504
- /**
3505
- * Break After
3506
- * @see https://tailwindcss.com/docs/break-after
3507
- */
3508
- "break-after": [{ "break-after": scaleBreak() }],
3509
- /**
3510
- * Break Before
3511
- * @see https://tailwindcss.com/docs/break-before
3512
- */
3513
- "break-before": [{ "break-before": scaleBreak() }],
3514
- /**
3515
- * Break Inside
3516
- * @see https://tailwindcss.com/docs/break-inside
3517
- */
3518
- "break-inside": [{ "break-inside": [
3519
- "auto",
3520
- "avoid",
3521
- "avoid-page",
3522
- "avoid-column"
3523
- ] }],
3524
- /**
3525
- * Box Decoration Break
3526
- * @see https://tailwindcss.com/docs/box-decoration-break
3527
- */
3528
- "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
3529
- /**
3530
- * Box Sizing
3531
- * @see https://tailwindcss.com/docs/box-sizing
3532
- */
3533
- box: [{ box: ["border", "content"] }],
3534
- /**
3535
- * Display
3536
- * @see https://tailwindcss.com/docs/display
3537
- */
3538
- display: [
3539
- "block",
3540
- "inline-block",
3541
- "inline",
3542
- "flex",
3543
- "inline-flex",
3544
- "table",
3545
- "inline-table",
3546
- "table-caption",
3547
- "table-cell",
3548
- "table-column",
3549
- "table-column-group",
3550
- "table-footer-group",
3551
- "table-header-group",
3552
- "table-row-group",
3553
- "table-row",
3554
- "flow-root",
3555
- "grid",
3556
- "inline-grid",
3557
- "contents",
3558
- "list-item",
3559
- "hidden"
3560
- ],
3561
- /**
3562
- * Screen Reader Only
3563
- * @see https://tailwindcss.com/docs/display#screen-reader-only
3564
- */
3565
- sr: ["sr-only", "not-sr-only"],
3566
- /**
3567
- * Floats
3568
- * @see https://tailwindcss.com/docs/float
3569
- */
3570
- float: [{ float: [
3571
- "right",
3572
- "left",
3573
- "none",
3574
- "start",
3575
- "end"
3576
- ] }],
3577
- /**
3578
- * Clear
3579
- * @see https://tailwindcss.com/docs/clear
3580
- */
3581
- clear: [{ clear: [
3582
- "left",
3583
- "right",
3584
- "both",
3585
- "none",
3586
- "start",
3587
- "end"
3588
- ] }],
3589
- /**
3590
- * Isolation
3591
- * @see https://tailwindcss.com/docs/isolation
3592
- */
3593
- isolation: ["isolate", "isolation-auto"],
3594
- /**
3595
- * Object Fit
3596
- * @see https://tailwindcss.com/docs/object-fit
3597
- */
3598
- "object-fit": [{ object: [
3599
- "contain",
3600
- "cover",
3601
- "fill",
3602
- "none",
3603
- "scale-down"
3604
- ] }],
3605
- /**
3606
- * Object Position
3607
- * @see https://tailwindcss.com/docs/object-position
3608
- */
3609
- "object-position": [{ object: scalePositionWithArbitrary() }],
3610
- /**
3611
- * Overflow
3612
- * @see https://tailwindcss.com/docs/overflow
3613
- */
3614
- overflow: [{ overflow: scaleOverflow() }],
3615
- /**
3616
- * Overflow X
3617
- * @see https://tailwindcss.com/docs/overflow
3618
- */
3619
- "overflow-x": [{ "overflow-x": scaleOverflow() }],
3620
- /**
3621
- * Overflow Y
3622
- * @see https://tailwindcss.com/docs/overflow
3623
- */
3624
- "overflow-y": [{ "overflow-y": scaleOverflow() }],
3625
- /**
3626
- * Overscroll Behavior
3627
- * @see https://tailwindcss.com/docs/overscroll-behavior
3628
- */
3629
- overscroll: [{ overscroll: scaleOverscroll() }],
3630
- /**
3631
- * Overscroll Behavior X
3632
- * @see https://tailwindcss.com/docs/overscroll-behavior
3633
- */
3634
- "overscroll-x": [{ "overscroll-x": scaleOverscroll() }],
3635
- /**
3636
- * Overscroll Behavior Y
3637
- * @see https://tailwindcss.com/docs/overscroll-behavior
3638
- */
3639
- "overscroll-y": [{ "overscroll-y": scaleOverscroll() }],
3640
- /**
3641
- * Position
3642
- * @see https://tailwindcss.com/docs/position
3643
- */
3644
- position: [
3645
- "static",
3646
- "fixed",
3647
- "absolute",
3648
- "relative",
3649
- "sticky"
3650
- ],
3651
- /**
3652
- * Inset
3653
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3654
- */
3655
- inset: [{ inset: scaleInset() }],
3656
- /**
3657
- * Inset Inline
3658
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3659
- */
3660
- "inset-x": [{ "inset-x": scaleInset() }],
3661
- /**
3662
- * Inset Block
3663
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3664
- */
3665
- "inset-y": [{ "inset-y": scaleInset() }],
3666
- /**
3667
- * Inset Inline Start
3668
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3669
- * @todo class group will be renamed to `inset-s` in next major release
3670
- */
3671
- start: [{
3672
- "inset-s": scaleInset(),
3673
- /**
3674
- * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
3675
- * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
3676
- */
3677
- start: scaleInset()
3678
- }],
3679
- /**
3680
- * Inset Inline End
3681
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3682
- * @todo class group will be renamed to `inset-e` in next major release
3683
- */
3684
- end: [{
3685
- "inset-e": scaleInset(),
3686
- /**
3687
- * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
3688
- * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
3689
- */
3690
- end: scaleInset()
3691
- }],
3692
- /**
3693
- * Inset Block Start
3694
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3695
- */
3696
- "inset-bs": [{ "inset-bs": scaleInset() }],
3697
- /**
3698
- * Inset Block End
3699
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3700
- */
3701
- "inset-be": [{ "inset-be": scaleInset() }],
3702
- /**
3703
- * Top
3704
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3705
- */
3706
- top: [{ top: scaleInset() }],
3707
- /**
3708
- * Right
3709
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3710
- */
3711
- right: [{ right: scaleInset() }],
3712
- /**
3713
- * Bottom
3714
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3715
- */
3716
- bottom: [{ bottom: scaleInset() }],
3717
- /**
3718
- * Left
3719
- * @see https://tailwindcss.com/docs/top-right-bottom-left
3720
- */
3721
- left: [{ left: scaleInset() }],
3722
- /**
3723
- * Visibility
3724
- * @see https://tailwindcss.com/docs/visibility
3725
- */
3726
- visibility: [
3727
- "visible",
3728
- "invisible",
3729
- "collapse"
3730
- ],
3731
- /**
3732
- * Z-Index
3733
- * @see https://tailwindcss.com/docs/z-index
3734
- */
3735
- z: [{ z: [
3736
- isInteger,
3737
- "auto",
3738
- isArbitraryVariable,
3739
- isArbitraryValue
3740
- ] }],
3741
- /**
3742
- * Flex Basis
3743
- * @see https://tailwindcss.com/docs/flex-basis
3744
- */
3745
- basis: [{ basis: [
3746
- isFraction,
3747
- "full",
3748
- "auto",
3749
- themeContainer,
3750
- ...scaleUnambiguousSpacing()
3751
- ] }],
3752
- /**
3753
- * Flex Direction
3754
- * @see https://tailwindcss.com/docs/flex-direction
3755
- */
3756
- "flex-direction": [{ flex: [
3757
- "row",
3758
- "row-reverse",
3759
- "col",
3760
- "col-reverse"
3761
- ] }],
3762
- /**
3763
- * Flex Wrap
3764
- * @see https://tailwindcss.com/docs/flex-wrap
3765
- */
3766
- "flex-wrap": [{ flex: [
3767
- "nowrap",
3768
- "wrap",
3769
- "wrap-reverse"
3770
- ] }],
3771
- /**
3772
- * Flex
3773
- * @see https://tailwindcss.com/docs/flex
3774
- */
3775
- flex: [{ flex: [
3776
- isNumber,
3777
- isFraction,
3778
- "auto",
3779
- "initial",
3780
- "none",
3781
- isArbitraryValue
3782
- ] }],
3783
- /**
3784
- * Flex Grow
3785
- * @see https://tailwindcss.com/docs/flex-grow
3786
- */
3787
- grow: [{ grow: [
3788
- "",
3789
- isNumber,
3790
- isArbitraryVariable,
3791
- isArbitraryValue
3792
- ] }],
3793
- /**
3794
- * Flex Shrink
3795
- * @see https://tailwindcss.com/docs/flex-shrink
3796
- */
3797
- shrink: [{ shrink: [
3798
- "",
3799
- isNumber,
3800
- isArbitraryVariable,
3801
- isArbitraryValue
3802
- ] }],
3803
- /**
3804
- * Order
3805
- * @see https://tailwindcss.com/docs/order
3806
- */
3807
- order: [{ order: [
3808
- isInteger,
3809
- "first",
3810
- "last",
3811
- "none",
3812
- isArbitraryVariable,
3813
- isArbitraryValue
3814
- ] }],
3815
- /**
3816
- * Grid Template Columns
3817
- * @see https://tailwindcss.com/docs/grid-template-columns
3818
- */
3819
- "grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
3820
- /**
3821
- * Grid Column Start / End
3822
- * @see https://tailwindcss.com/docs/grid-column
3823
- */
3824
- "col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
3825
- /**
3826
- * Grid Column Start
3827
- * @see https://tailwindcss.com/docs/grid-column
3828
- */
3829
- "col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
3830
- /**
3831
- * Grid Column End
3832
- * @see https://tailwindcss.com/docs/grid-column
3833
- */
3834
- "col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
3835
- /**
3836
- * Grid Template Rows
3837
- * @see https://tailwindcss.com/docs/grid-template-rows
3838
- */
3839
- "grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
3840
- /**
3841
- * Grid Row Start / End
3842
- * @see https://tailwindcss.com/docs/grid-row
3843
- */
3844
- "row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
3845
- /**
3846
- * Grid Row Start
3847
- * @see https://tailwindcss.com/docs/grid-row
3848
- */
3849
- "row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
3850
- /**
3851
- * Grid Row End
3852
- * @see https://tailwindcss.com/docs/grid-row
3853
- */
3854
- "row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
3855
- /**
3856
- * Grid Auto Flow
3857
- * @see https://tailwindcss.com/docs/grid-auto-flow
3858
- */
3859
- "grid-flow": [{ "grid-flow": [
3860
- "row",
3861
- "col",
3862
- "dense",
3863
- "row-dense",
3864
- "col-dense"
3865
- ] }],
3866
- /**
3867
- * Grid Auto Columns
3868
- * @see https://tailwindcss.com/docs/grid-auto-columns
3869
- */
3870
- "auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
3871
- /**
3872
- * Grid Auto Rows
3873
- * @see https://tailwindcss.com/docs/grid-auto-rows
3874
- */
3875
- "auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
3876
- /**
3877
- * Gap
3878
- * @see https://tailwindcss.com/docs/gap
3879
- */
3880
- gap: [{ gap: scaleUnambiguousSpacing() }],
3881
- /**
3882
- * Gap X
3883
- * @see https://tailwindcss.com/docs/gap
3884
- */
3885
- "gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
3886
- /**
3887
- * Gap Y
3888
- * @see https://tailwindcss.com/docs/gap
3889
- */
3890
- "gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
3891
- /**
3892
- * Justify Content
3893
- * @see https://tailwindcss.com/docs/justify-content
3894
- */
3895
- "justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
3896
- /**
3897
- * Justify Items
3898
- * @see https://tailwindcss.com/docs/justify-items
3899
- */
3900
- "justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
3901
- /**
3902
- * Justify Self
3903
- * @see https://tailwindcss.com/docs/justify-self
3904
- */
3905
- "justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
3906
- /**
3907
- * Align Content
3908
- * @see https://tailwindcss.com/docs/align-content
3909
- */
3910
- "align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
3911
- /**
3912
- * Align Items
3913
- * @see https://tailwindcss.com/docs/align-items
3914
- */
3915
- "align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
3916
- /**
3917
- * Align Self
3918
- * @see https://tailwindcss.com/docs/align-self
3919
- */
3920
- "align-self": [{ self: [
3921
- "auto",
3922
- ...scaleAlignSecondaryAxis(),
3923
- { baseline: ["", "last"] }
3924
- ] }],
3925
- /**
3926
- * Place Content
3927
- * @see https://tailwindcss.com/docs/place-content
3928
- */
3929
- "place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
3930
- /**
3931
- * Place Items
3932
- * @see https://tailwindcss.com/docs/place-items
3933
- */
3934
- "place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
3935
- /**
3936
- * Place Self
3937
- * @see https://tailwindcss.com/docs/place-self
3938
- */
3939
- "place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
3940
- /**
3941
- * Padding
3942
- * @see https://tailwindcss.com/docs/padding
3943
- */
3944
- p: [{ p: scaleUnambiguousSpacing() }],
3945
- /**
3946
- * Padding Inline
3947
- * @see https://tailwindcss.com/docs/padding
3948
- */
3949
- px: [{ px: scaleUnambiguousSpacing() }],
3950
- /**
3951
- * Padding Block
3952
- * @see https://tailwindcss.com/docs/padding
3953
- */
3954
- py: [{ py: scaleUnambiguousSpacing() }],
3955
- /**
3956
- * Padding Inline Start
3957
- * @see https://tailwindcss.com/docs/padding
3958
- */
3959
- ps: [{ ps: scaleUnambiguousSpacing() }],
3960
- /**
3961
- * Padding Inline End
3962
- * @see https://tailwindcss.com/docs/padding
3963
- */
3964
- pe: [{ pe: scaleUnambiguousSpacing() }],
3965
- /**
3966
- * Padding Block Start
3967
- * @see https://tailwindcss.com/docs/padding
3968
- */
3969
- pbs: [{ pbs: scaleUnambiguousSpacing() }],
3970
- /**
3971
- * Padding Block End
3972
- * @see https://tailwindcss.com/docs/padding
3973
- */
3974
- pbe: [{ pbe: scaleUnambiguousSpacing() }],
3975
- /**
3976
- * Padding Top
3977
- * @see https://tailwindcss.com/docs/padding
3978
- */
3979
- pt: [{ pt: scaleUnambiguousSpacing() }],
3980
- /**
3981
- * Padding Right
3982
- * @see https://tailwindcss.com/docs/padding
3983
- */
3984
- pr: [{ pr: scaleUnambiguousSpacing() }],
3985
- /**
3986
- * Padding Bottom
3987
- * @see https://tailwindcss.com/docs/padding
3988
- */
3989
- pb: [{ pb: scaleUnambiguousSpacing() }],
3990
- /**
3991
- * Padding Left
3992
- * @see https://tailwindcss.com/docs/padding
3993
- */
3994
- pl: [{ pl: scaleUnambiguousSpacing() }],
3995
- /**
3996
- * Margin
3997
- * @see https://tailwindcss.com/docs/margin
3998
- */
3999
- m: [{ m: scaleMargin() }],
4000
- /**
4001
- * Margin Inline
4002
- * @see https://tailwindcss.com/docs/margin
4003
- */
4004
- mx: [{ mx: scaleMargin() }],
4005
- /**
4006
- * Margin Block
4007
- * @see https://tailwindcss.com/docs/margin
4008
- */
4009
- my: [{ my: scaleMargin() }],
4010
- /**
4011
- * Margin Inline Start
4012
- * @see https://tailwindcss.com/docs/margin
4013
- */
4014
- ms: [{ ms: scaleMargin() }],
4015
- /**
4016
- * Margin Inline End
4017
- * @see https://tailwindcss.com/docs/margin
4018
- */
4019
- me: [{ me: scaleMargin() }],
4020
- /**
4021
- * Margin Block Start
4022
- * @see https://tailwindcss.com/docs/margin
4023
- */
4024
- mbs: [{ mbs: scaleMargin() }],
4025
- /**
4026
- * Margin Block End
4027
- * @see https://tailwindcss.com/docs/margin
4028
- */
4029
- mbe: [{ mbe: scaleMargin() }],
4030
- /**
4031
- * Margin Top
4032
- * @see https://tailwindcss.com/docs/margin
4033
- */
4034
- mt: [{ mt: scaleMargin() }],
4035
- /**
4036
- * Margin Right
4037
- * @see https://tailwindcss.com/docs/margin
4038
- */
4039
- mr: [{ mr: scaleMargin() }],
4040
- /**
4041
- * Margin Bottom
4042
- * @see https://tailwindcss.com/docs/margin
4043
- */
4044
- mb: [{ mb: scaleMargin() }],
4045
- /**
4046
- * Margin Left
4047
- * @see https://tailwindcss.com/docs/margin
4048
- */
4049
- ml: [{ ml: scaleMargin() }],
4050
- /**
4051
- * Space Between X
4052
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
4053
- */
4054
- "space-x": [{ "space-x": scaleUnambiguousSpacing() }],
4055
- /**
4056
- * Space Between X Reverse
4057
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
4058
- */
4059
- "space-x-reverse": ["space-x-reverse"],
4060
- /**
4061
- * Space Between Y
4062
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
4063
- */
4064
- "space-y": [{ "space-y": scaleUnambiguousSpacing() }],
4065
- /**
4066
- * Space Between Y Reverse
4067
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
4068
- */
4069
- "space-y-reverse": ["space-y-reverse"],
4070
- /**
4071
- * Size
4072
- * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
4073
- */
4074
- size: [{ size: scaleSizing() }],
4075
- /**
4076
- * Inline Size
4077
- * @see https://tailwindcss.com/docs/inline-size
4078
- */
4079
- "inline-size": [{ inline: ["auto", ...scaleSizingInline()] }],
4080
- /**
4081
- * Min-Inline Size
4082
- * @see https://tailwindcss.com/docs/min-inline-size
4083
- */
4084
- "min-inline-size": [{ "min-inline": ["auto", ...scaleSizingInline()] }],
4085
- /**
4086
- * Max-Inline Size
4087
- * @see https://tailwindcss.com/docs/max-inline-size
4088
- */
4089
- "max-inline-size": [{ "max-inline": ["none", ...scaleSizingInline()] }],
4090
- /**
4091
- * Block Size
4092
- * @see https://tailwindcss.com/docs/block-size
4093
- */
4094
- "block-size": [{ block: ["auto", ...scaleSizingBlock()] }],
4095
- /**
4096
- * Min-Block Size
4097
- * @see https://tailwindcss.com/docs/min-block-size
4098
- */
4099
- "min-block-size": [{ "min-block": ["auto", ...scaleSizingBlock()] }],
4100
- /**
4101
- * Max-Block Size
4102
- * @see https://tailwindcss.com/docs/max-block-size
4103
- */
4104
- "max-block-size": [{ "max-block": ["none", ...scaleSizingBlock()] }],
4105
- /**
4106
- * Width
4107
- * @see https://tailwindcss.com/docs/width
4108
- */
4109
- w: [{ w: [
4110
- themeContainer,
4111
- "screen",
4112
- ...scaleSizing()
4113
- ] }],
4114
- /**
4115
- * Min-Width
4116
- * @see https://tailwindcss.com/docs/min-width
4117
- */
4118
- "min-w": [{ "min-w": [
4119
- themeContainer,
4120
- "screen",
4121
- "none",
4122
- ...scaleSizing()
4123
- ] }],
4124
- /**
4125
- * Max-Width
4126
- * @see https://tailwindcss.com/docs/max-width
4127
- */
4128
- "max-w": [{ "max-w": [
4129
- themeContainer,
4130
- "screen",
4131
- "none",
4132
- "prose",
4133
- { screen: [themeBreakpoint] },
4134
- ...scaleSizing()
4135
- ] }],
4136
- /**
4137
- * Height
4138
- * @see https://tailwindcss.com/docs/height
4139
- */
4140
- h: [{ h: [
4141
- "screen",
4142
- "lh",
4143
- ...scaleSizing()
4144
- ] }],
4145
- /**
4146
- * Min-Height
4147
- * @see https://tailwindcss.com/docs/min-height
4148
- */
4149
- "min-h": [{ "min-h": [
4150
- "screen",
4151
- "lh",
4152
- "none",
4153
- ...scaleSizing()
4154
- ] }],
4155
- /**
4156
- * Max-Height
4157
- * @see https://tailwindcss.com/docs/max-height
4158
- */
4159
- "max-h": [{ "max-h": [
4160
- "screen",
4161
- "lh",
4162
- "none",
4163
- ...scaleSizing()
4164
- ] }],
4165
- /**
4166
- * Font Size
4167
- * @see https://tailwindcss.com/docs/font-size
4168
- */
4169
- "font-size": [{ text: [
4170
- "base",
4171
- themeText,
4172
- isArbitraryVariableLength,
4173
- isArbitraryLength
4174
- ] }],
4175
- /**
4176
- * Font Smoothing
4177
- * @see https://tailwindcss.com/docs/font-smoothing
4178
- */
4179
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
4180
- /**
4181
- * Font Style
4182
- * @see https://tailwindcss.com/docs/font-style
4183
- */
4184
- "font-style": ["italic", "not-italic"],
4185
- /**
4186
- * Font Weight
4187
- * @see https://tailwindcss.com/docs/font-weight
4188
- */
4189
- "font-weight": [{ font: [
4190
- themeFontWeight,
4191
- isArbitraryVariableWeight,
4192
- isArbitraryWeight
4193
- ] }],
4194
- /**
4195
- * Font Stretch
4196
- * @see https://tailwindcss.com/docs/font-stretch
4197
- */
4198
- "font-stretch": [{ "font-stretch": [
4199
- "ultra-condensed",
4200
- "extra-condensed",
4201
- "condensed",
4202
- "semi-condensed",
4203
- "normal",
4204
- "semi-expanded",
4205
- "expanded",
4206
- "extra-expanded",
4207
- "ultra-expanded",
4208
- isPercent,
4209
- isArbitraryValue
4210
- ] }],
4211
- /**
4212
- * Font Family
4213
- * @see https://tailwindcss.com/docs/font-family
4214
- */
4215
- "font-family": [{ font: [
4216
- isArbitraryVariableFamilyName,
4217
- isArbitraryFamilyName,
4218
- themeFont
4219
- ] }],
4220
- /**
4221
- * Font Feature Settings
4222
- * @see https://tailwindcss.com/docs/font-feature-settings
4223
- */
4224
- "font-features": [{ "font-features": [isArbitraryValue] }],
4225
- /**
4226
- * Font Variant Numeric
4227
- * @see https://tailwindcss.com/docs/font-variant-numeric
4228
- */
4229
- "fvn-normal": ["normal-nums"],
4230
- /**
4231
- * Font Variant Numeric
4232
- * @see https://tailwindcss.com/docs/font-variant-numeric
4233
- */
4234
- "fvn-ordinal": ["ordinal"],
4235
- /**
4236
- * Font Variant Numeric
4237
- * @see https://tailwindcss.com/docs/font-variant-numeric
4238
- */
4239
- "fvn-slashed-zero": ["slashed-zero"],
4240
- /**
4241
- * Font Variant Numeric
4242
- * @see https://tailwindcss.com/docs/font-variant-numeric
4243
- */
4244
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
4245
- /**
4246
- * Font Variant Numeric
4247
- * @see https://tailwindcss.com/docs/font-variant-numeric
4248
- */
4249
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
4250
- /**
4251
- * Font Variant Numeric
4252
- * @see https://tailwindcss.com/docs/font-variant-numeric
4253
- */
4254
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
4255
- /**
4256
- * Letter Spacing
4257
- * @see https://tailwindcss.com/docs/letter-spacing
4258
- */
4259
- tracking: [{ tracking: [
4260
- themeTracking,
4261
- isArbitraryVariable,
4262
- isArbitraryValue
4263
- ] }],
4264
- /**
4265
- * Line Clamp
4266
- * @see https://tailwindcss.com/docs/line-clamp
4267
- */
4268
- "line-clamp": [{ "line-clamp": [
4269
- isNumber,
4270
- "none",
4271
- isArbitraryVariable,
4272
- isArbitraryNumber
4273
- ] }],
4274
- /**
4275
- * Line Height
4276
- * @see https://tailwindcss.com/docs/line-height
4277
- */
4278
- leading: [{ leading: [
4279
- "none",
4280
- themeLeading,
4281
- ...scaleUnambiguousSpacing()
4282
- ] }],
4283
- /**
4284
- * List Style Image
4285
- * @see https://tailwindcss.com/docs/list-style-image
4286
- */
4287
- "list-image": [{ "list-image": [
4288
- "none",
4289
- isArbitraryVariable,
4290
- isArbitraryValue
4291
- ] }],
4292
- /**
4293
- * List Style Position
4294
- * @see https://tailwindcss.com/docs/list-style-position
4295
- */
4296
- "list-style-position": [{ list: ["inside", "outside"] }],
4297
- /**
4298
- * List Style Type
4299
- * @see https://tailwindcss.com/docs/list-style-type
4300
- */
4301
- "list-style-type": [{ list: [
4302
- "disc",
4303
- "decimal",
4304
- "none",
4305
- isArbitraryVariable,
4306
- isArbitraryValue
4307
- ] }],
4308
- /**
4309
- * Text Alignment
4310
- * @see https://tailwindcss.com/docs/text-align
4311
- */
4312
- "text-alignment": [{ text: [
4313
- "left",
4314
- "center",
4315
- "right",
4316
- "justify",
4317
- "start",
4318
- "end"
4319
- ] }],
4320
- /**
4321
- * Placeholder Color
4322
- * @deprecated since Tailwind CSS v3.0.0
4323
- * @see https://v3.tailwindcss.com/docs/placeholder-color
4324
- */
4325
- "placeholder-color": [{ placeholder: scaleColor() }],
4326
- /**
4327
- * Text Color
4328
- * @see https://tailwindcss.com/docs/text-color
4329
- */
4330
- "text-color": [{ text: scaleColor() }],
4331
- /**
4332
- * Text Decoration
4333
- * @see https://tailwindcss.com/docs/text-decoration
4334
- */
4335
- "text-decoration": [
4336
- "underline",
4337
- "overline",
4338
- "line-through",
4339
- "no-underline"
4340
- ],
4341
- /**
4342
- * Text Decoration Style
4343
- * @see https://tailwindcss.com/docs/text-decoration-style
4344
- */
4345
- "text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
4346
- /**
4347
- * Text Decoration Thickness
4348
- * @see https://tailwindcss.com/docs/text-decoration-thickness
4349
- */
4350
- "text-decoration-thickness": [{ decoration: [
4351
- isNumber,
4352
- "from-font",
4353
- "auto",
4354
- isArbitraryVariable,
4355
- isArbitraryLength
4356
- ] }],
4357
- /**
4358
- * Text Decoration Color
4359
- * @see https://tailwindcss.com/docs/text-decoration-color
4360
- */
4361
- "text-decoration-color": [{ decoration: scaleColor() }],
4362
- /**
4363
- * Text Underline Offset
4364
- * @see https://tailwindcss.com/docs/text-underline-offset
4365
- */
4366
- "underline-offset": [{ "underline-offset": [
4367
- isNumber,
4368
- "auto",
4369
- isArbitraryVariable,
4370
- isArbitraryValue
4371
- ] }],
4372
- /**
4373
- * Text Transform
4374
- * @see https://tailwindcss.com/docs/text-transform
4375
- */
4376
- "text-transform": [
4377
- "uppercase",
4378
- "lowercase",
4379
- "capitalize",
4380
- "normal-case"
4381
- ],
4382
- /**
4383
- * Text Overflow
4384
- * @see https://tailwindcss.com/docs/text-overflow
4385
- */
4386
- "text-overflow": [
4387
- "truncate",
4388
- "text-ellipsis",
4389
- "text-clip"
4390
- ],
4391
- /**
4392
- * Text Wrap
4393
- * @see https://tailwindcss.com/docs/text-wrap
4394
- */
4395
- "text-wrap": [{ text: [
4396
- "wrap",
4397
- "nowrap",
4398
- "balance",
4399
- "pretty"
4400
- ] }],
4401
- /**
4402
- * Text Indent
4403
- * @see https://tailwindcss.com/docs/text-indent
4404
- */
4405
- indent: [{ indent: scaleUnambiguousSpacing() }],
4406
- /**
4407
- * Tab Size
4408
- * @see https://tailwindcss.com/docs/tab-size
4409
- */
4410
- "tab-size": [{ tab: [
4411
- isInteger,
4412
- isArbitraryVariable,
4413
- isArbitraryValue
4414
- ] }],
4415
- /**
4416
- * Vertical Alignment
4417
- * @see https://tailwindcss.com/docs/vertical-align
4418
- */
4419
- "vertical-align": [{ align: [
4420
- "baseline",
4421
- "top",
4422
- "middle",
4423
- "bottom",
4424
- "text-top",
4425
- "text-bottom",
4426
- "sub",
4427
- "super",
4428
- isArbitraryVariable,
4429
- isArbitraryValue
4430
- ] }],
4431
- /**
4432
- * Whitespace
4433
- * @see https://tailwindcss.com/docs/whitespace
4434
- */
4435
- whitespace: [{ whitespace: [
4436
- "normal",
4437
- "nowrap",
4438
- "pre",
4439
- "pre-line",
4440
- "pre-wrap",
4441
- "break-spaces"
4442
- ] }],
4443
- /**
4444
- * Word Break
4445
- * @see https://tailwindcss.com/docs/word-break
4446
- */
4447
- break: [{ break: [
4448
- "normal",
4449
- "words",
4450
- "all",
4451
- "keep"
4452
- ] }],
4453
- /**
4454
- * Overflow Wrap
4455
- * @see https://tailwindcss.com/docs/overflow-wrap
4456
- */
4457
- wrap: [{ wrap: [
4458
- "break-word",
4459
- "anywhere",
4460
- "normal"
4461
- ] }],
4462
- /**
4463
- * Hyphens
4464
- * @see https://tailwindcss.com/docs/hyphens
4465
- */
4466
- hyphens: [{ hyphens: [
4467
- "none",
4468
- "manual",
4469
- "auto"
4470
- ] }],
4471
- /**
4472
- * Content
4473
- * @see https://tailwindcss.com/docs/content
4474
- */
4475
- content: [{ content: [
4476
- "none",
4477
- isArbitraryVariable,
4478
- isArbitraryValue
4479
- ] }],
4480
- /**
4481
- * Background Attachment
4482
- * @see https://tailwindcss.com/docs/background-attachment
4483
- */
4484
- "bg-attachment": [{ bg: [
4485
- "fixed",
4486
- "local",
4487
- "scroll"
4488
- ] }],
4489
- /**
4490
- * Background Clip
4491
- * @see https://tailwindcss.com/docs/background-clip
4492
- */
4493
- "bg-clip": [{ "bg-clip": [
4494
- "border",
4495
- "padding",
4496
- "content",
4497
- "text"
4498
- ] }],
4499
- /**
4500
- * Background Origin
4501
- * @see https://tailwindcss.com/docs/background-origin
4502
- */
4503
- "bg-origin": [{ "bg-origin": [
4504
- "border",
4505
- "padding",
4506
- "content"
4507
- ] }],
4508
- /**
4509
- * Background Position
4510
- * @see https://tailwindcss.com/docs/background-position
4511
- */
4512
- "bg-position": [{ bg: scaleBgPosition() }],
4513
- /**
4514
- * Background Repeat
4515
- * @see https://tailwindcss.com/docs/background-repeat
4516
- */
4517
- "bg-repeat": [{ bg: scaleBgRepeat() }],
4518
- /**
4519
- * Background Size
4520
- * @see https://tailwindcss.com/docs/background-size
4521
- */
4522
- "bg-size": [{ bg: scaleBgSize() }],
4523
- /**
4524
- * Background Image
4525
- * @see https://tailwindcss.com/docs/background-image
4526
- */
4527
- "bg-image": [{ bg: [
4528
- "none",
4529
- {
4530
- linear: [
4531
- { to: [
4532
- "t",
4533
- "tr",
4534
- "r",
4535
- "br",
4536
- "b",
4537
- "bl",
4538
- "l",
4539
- "tl"
4540
- ] },
4541
- isInteger,
4542
- isArbitraryVariable,
4543
- isArbitraryValue
4544
- ],
4545
- radial: [
4546
- "",
4547
- isArbitraryVariable,
4548
- isArbitraryValue
4549
- ],
4550
- conic: [
4551
- "",
4552
- isInteger,
4553
- isArbitraryVariable,
4554
- isArbitraryValue
4555
- ]
4556
- },
4557
- isArbitraryVariableImage,
4558
- isArbitraryImage
4559
- ] }],
4560
- /**
4561
- * Background Color
4562
- * @see https://tailwindcss.com/docs/background-color
4563
- */
4564
- "bg-color": [{ bg: scaleColor() }],
4565
- /**
4566
- * Gradient Color Stops From Position
4567
- * @see https://tailwindcss.com/docs/gradient-color-stops
4568
- */
4569
- "gradient-from-pos": [{ from: scaleGradientStopPosition() }],
4570
- /**
4571
- * Gradient Color Stops Via Position
4572
- * @see https://tailwindcss.com/docs/gradient-color-stops
4573
- */
4574
- "gradient-via-pos": [{ via: scaleGradientStopPosition() }],
4575
- /**
4576
- * Gradient Color Stops To Position
4577
- * @see https://tailwindcss.com/docs/gradient-color-stops
4578
- */
4579
- "gradient-to-pos": [{ to: scaleGradientStopPosition() }],
4580
- /**
4581
- * Gradient Color Stops From
4582
- * @see https://tailwindcss.com/docs/gradient-color-stops
4583
- */
4584
- "gradient-from": [{ from: scaleColor() }],
4585
- /**
4586
- * Gradient Color Stops Via
4587
- * @see https://tailwindcss.com/docs/gradient-color-stops
4588
- */
4589
- "gradient-via": [{ via: scaleColor() }],
4590
- /**
4591
- * Gradient Color Stops To
4592
- * @see https://tailwindcss.com/docs/gradient-color-stops
4593
- */
4594
- "gradient-to": [{ to: scaleColor() }],
4595
- /**
4596
- * Border Radius
4597
- * @see https://tailwindcss.com/docs/border-radius
4598
- */
4599
- rounded: [{ rounded: scaleRadius() }],
4600
- /**
4601
- * Border Radius Start
4602
- * @see https://tailwindcss.com/docs/border-radius
4603
- */
4604
- "rounded-s": [{ "rounded-s": scaleRadius() }],
4605
- /**
4606
- * Border Radius End
4607
- * @see https://tailwindcss.com/docs/border-radius
4608
- */
4609
- "rounded-e": [{ "rounded-e": scaleRadius() }],
4610
- /**
4611
- * Border Radius Top
4612
- * @see https://tailwindcss.com/docs/border-radius
4613
- */
4614
- "rounded-t": [{ "rounded-t": scaleRadius() }],
4615
- /**
4616
- * Border Radius Right
4617
- * @see https://tailwindcss.com/docs/border-radius
4618
- */
4619
- "rounded-r": [{ "rounded-r": scaleRadius() }],
4620
- /**
4621
- * Border Radius Bottom
4622
- * @see https://tailwindcss.com/docs/border-radius
4623
- */
4624
- "rounded-b": [{ "rounded-b": scaleRadius() }],
4625
- /**
4626
- * Border Radius Left
4627
- * @see https://tailwindcss.com/docs/border-radius
4628
- */
4629
- "rounded-l": [{ "rounded-l": scaleRadius() }],
4630
- /**
4631
- * Border Radius Start Start
4632
- * @see https://tailwindcss.com/docs/border-radius
4633
- */
4634
- "rounded-ss": [{ "rounded-ss": scaleRadius() }],
4635
- /**
4636
- * Border Radius Start End
4637
- * @see https://tailwindcss.com/docs/border-radius
4638
- */
4639
- "rounded-se": [{ "rounded-se": scaleRadius() }],
4640
- /**
4641
- * Border Radius End End
4642
- * @see https://tailwindcss.com/docs/border-radius
4643
- */
4644
- "rounded-ee": [{ "rounded-ee": scaleRadius() }],
4645
- /**
4646
- * Border Radius End Start
4647
- * @see https://tailwindcss.com/docs/border-radius
4648
- */
4649
- "rounded-es": [{ "rounded-es": scaleRadius() }],
4650
- /**
4651
- * Border Radius Top Left
4652
- * @see https://tailwindcss.com/docs/border-radius
4653
- */
4654
- "rounded-tl": [{ "rounded-tl": scaleRadius() }],
4655
- /**
4656
- * Border Radius Top Right
4657
- * @see https://tailwindcss.com/docs/border-radius
4658
- */
4659
- "rounded-tr": [{ "rounded-tr": scaleRadius() }],
4660
- /**
4661
- * Border Radius Bottom Right
4662
- * @see https://tailwindcss.com/docs/border-radius
4663
- */
4664
- "rounded-br": [{ "rounded-br": scaleRadius() }],
4665
- /**
4666
- * Border Radius Bottom Left
4667
- * @see https://tailwindcss.com/docs/border-radius
4668
- */
4669
- "rounded-bl": [{ "rounded-bl": scaleRadius() }],
4670
- /**
4671
- * Border Width
4672
- * @see https://tailwindcss.com/docs/border-width
4673
- */
4674
- "border-w": [{ border: scaleBorderWidth() }],
4675
- /**
4676
- * Border Width Inline
4677
- * @see https://tailwindcss.com/docs/border-width
4678
- */
4679
- "border-w-x": [{ "border-x": scaleBorderWidth() }],
4680
- /**
4681
- * Border Width Block
4682
- * @see https://tailwindcss.com/docs/border-width
4683
- */
4684
- "border-w-y": [{ "border-y": scaleBorderWidth() }],
4685
- /**
4686
- * Border Width Inline Start
4687
- * @see https://tailwindcss.com/docs/border-width
4688
- */
4689
- "border-w-s": [{ "border-s": scaleBorderWidth() }],
4690
- /**
4691
- * Border Width Inline End
4692
- * @see https://tailwindcss.com/docs/border-width
4693
- */
4694
- "border-w-e": [{ "border-e": scaleBorderWidth() }],
4695
- /**
4696
- * Border Width Block Start
4697
- * @see https://tailwindcss.com/docs/border-width
4698
- */
4699
- "border-w-bs": [{ "border-bs": scaleBorderWidth() }],
4700
- /**
4701
- * Border Width Block End
4702
- * @see https://tailwindcss.com/docs/border-width
4703
- */
4704
- "border-w-be": [{ "border-be": scaleBorderWidth() }],
4705
- /**
4706
- * Border Width Top
4707
- * @see https://tailwindcss.com/docs/border-width
4708
- */
4709
- "border-w-t": [{ "border-t": scaleBorderWidth() }],
4710
- /**
4711
- * Border Width Right
4712
- * @see https://tailwindcss.com/docs/border-width
4713
- */
4714
- "border-w-r": [{ "border-r": scaleBorderWidth() }],
4715
- /**
4716
- * Border Width Bottom
4717
- * @see https://tailwindcss.com/docs/border-width
4718
- */
4719
- "border-w-b": [{ "border-b": scaleBorderWidth() }],
4720
- /**
4721
- * Border Width Left
4722
- * @see https://tailwindcss.com/docs/border-width
4723
- */
4724
- "border-w-l": [{ "border-l": scaleBorderWidth() }],
4725
- /**
4726
- * Divide Width X
4727
- * @see https://tailwindcss.com/docs/border-width#between-children
4728
- */
4729
- "divide-x": [{ "divide-x": scaleBorderWidth() }],
4730
- /**
4731
- * Divide Width X Reverse
4732
- * @see https://tailwindcss.com/docs/border-width#between-children
4733
- */
4734
- "divide-x-reverse": ["divide-x-reverse"],
4735
- /**
4736
- * Divide Width Y
4737
- * @see https://tailwindcss.com/docs/border-width#between-children
4738
- */
4739
- "divide-y": [{ "divide-y": scaleBorderWidth() }],
4740
- /**
4741
- * Divide Width Y Reverse
4742
- * @see https://tailwindcss.com/docs/border-width#between-children
4743
- */
4744
- "divide-y-reverse": ["divide-y-reverse"],
4745
- /**
4746
- * Border Style
4747
- * @see https://tailwindcss.com/docs/border-style
4748
- */
4749
- "border-style": [{ border: [
4750
- ...scaleLineStyle(),
4751
- "hidden",
4752
- "none"
4753
- ] }],
4754
- /**
4755
- * Divide Style
4756
- * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
4757
- */
4758
- "divide-style": [{ divide: [
4759
- ...scaleLineStyle(),
4760
- "hidden",
4761
- "none"
4762
- ] }],
4763
- /**
4764
- * Border Color
4765
- * @see https://tailwindcss.com/docs/border-color
4766
- */
4767
- "border-color": [{ border: scaleColor() }],
4768
- /**
4769
- * Border Color Inline
4770
- * @see https://tailwindcss.com/docs/border-color
4771
- */
4772
- "border-color-x": [{ "border-x": scaleColor() }],
4773
- /**
4774
- * Border Color Block
4775
- * @see https://tailwindcss.com/docs/border-color
4776
- */
4777
- "border-color-y": [{ "border-y": scaleColor() }],
4778
- /**
4779
- * Border Color Inline Start
4780
- * @see https://tailwindcss.com/docs/border-color
4781
- */
4782
- "border-color-s": [{ "border-s": scaleColor() }],
4783
- /**
4784
- * Border Color Inline End
4785
- * @see https://tailwindcss.com/docs/border-color
4786
- */
4787
- "border-color-e": [{ "border-e": scaleColor() }],
4788
- /**
4789
- * Border Color Block Start
4790
- * @see https://tailwindcss.com/docs/border-color
4791
- */
4792
- "border-color-bs": [{ "border-bs": scaleColor() }],
4793
- /**
4794
- * Border Color Block End
4795
- * @see https://tailwindcss.com/docs/border-color
4796
- */
4797
- "border-color-be": [{ "border-be": scaleColor() }],
4798
- /**
4799
- * Border Color Top
4800
- * @see https://tailwindcss.com/docs/border-color
4801
- */
4802
- "border-color-t": [{ "border-t": scaleColor() }],
4803
- /**
4804
- * Border Color Right
4805
- * @see https://tailwindcss.com/docs/border-color
4806
- */
4807
- "border-color-r": [{ "border-r": scaleColor() }],
4808
- /**
4809
- * Border Color Bottom
4810
- * @see https://tailwindcss.com/docs/border-color
4811
- */
4812
- "border-color-b": [{ "border-b": scaleColor() }],
4813
- /**
4814
- * Border Color Left
4815
- * @see https://tailwindcss.com/docs/border-color
4816
- */
4817
- "border-color-l": [{ "border-l": scaleColor() }],
4818
- /**
4819
- * Divide Color
4820
- * @see https://tailwindcss.com/docs/divide-color
4821
- */
4822
- "divide-color": [{ divide: scaleColor() }],
4823
- /**
4824
- * Outline Style
4825
- * @see https://tailwindcss.com/docs/outline-style
4826
- */
4827
- "outline-style": [{ outline: [
4828
- ...scaleLineStyle(),
4829
- "none",
4830
- "hidden"
4831
- ] }],
4832
- /**
4833
- * Outline Offset
4834
- * @see https://tailwindcss.com/docs/outline-offset
4835
- */
4836
- "outline-offset": [{ "outline-offset": [
4837
- isNumber,
4838
- isArbitraryVariable,
4839
- isArbitraryValue
4840
- ] }],
4841
- /**
4842
- * Outline Width
4843
- * @see https://tailwindcss.com/docs/outline-width
4844
- */
4845
- "outline-w": [{ outline: [
4846
- "",
4847
- isNumber,
4848
- isArbitraryVariableLength,
4849
- isArbitraryLength
4850
- ] }],
4851
- /**
4852
- * Outline Color
4853
- * @see https://tailwindcss.com/docs/outline-color
4854
- */
4855
- "outline-color": [{ outline: scaleColor() }],
4856
- /**
4857
- * Box Shadow
4858
- * @see https://tailwindcss.com/docs/box-shadow
4859
- */
4860
- shadow: [{ shadow: [
4861
- "",
4862
- "inner",
4863
- "none",
4864
- themeShadow,
4865
- isArbitraryVariableShadow,
4866
- isArbitraryShadow
4867
- ] }],
4868
- /**
4869
- * Box Shadow Color
4870
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
4871
- */
4872
- "shadow-color": [{ shadow: scaleColor() }],
4873
- /**
4874
- * Inset Box Shadow
4875
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
4876
- */
4877
- "inset-shadow": [{ "inset-shadow": [
4878
- "none",
4879
- themeInsetShadow,
4880
- isArbitraryVariableShadow,
4881
- isArbitraryShadow
4882
- ] }],
4883
- /**
4884
- * Inset Box Shadow Color
4885
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
4886
- */
4887
- "inset-shadow-color": [{ "inset-shadow": scaleColor() }],
4888
- /**
4889
- * Ring Width
4890
- * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
4891
- */
4892
- "ring-w": [{ ring: scaleBorderWidth() }],
4893
- /**
4894
- * Ring Width Inset
4895
- * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
4896
- * @deprecated since Tailwind CSS v4.0.0
4897
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
4898
- */
4899
- "ring-w-inset": ["ring-inset"],
4900
- /**
4901
- * Ring Color
4902
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
4903
- */
4904
- "ring-color": [{ ring: scaleColor() }],
4905
- /**
4906
- * Ring Offset Width
4907
- * @see https://v3.tailwindcss.com/docs/ring-offset-width
4908
- * @deprecated since Tailwind CSS v4.0.0
4909
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
4910
- */
4911
- "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
4912
- /**
4913
- * Ring Offset Color
4914
- * @see https://v3.tailwindcss.com/docs/ring-offset-color
4915
- * @deprecated since Tailwind CSS v4.0.0
4916
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
4917
- */
4918
- "ring-offset-color": [{ "ring-offset": scaleColor() }],
4919
- /**
4920
- * Inset Ring Width
4921
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
4922
- */
4923
- "inset-ring-w": [{ "inset-ring": scaleBorderWidth() }],
4924
- /**
4925
- * Inset Ring Color
4926
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
4927
- */
4928
- "inset-ring-color": [{ "inset-ring": scaleColor() }],
4929
- /**
4930
- * Text Shadow
4931
- * @see https://tailwindcss.com/docs/text-shadow
4932
- */
4933
- "text-shadow": [{ "text-shadow": [
4934
- "none",
4935
- themeTextShadow,
4936
- isArbitraryVariableShadow,
4937
- isArbitraryShadow
4938
- ] }],
4939
- /**
4940
- * Text Shadow Color
4941
- * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
4942
- */
4943
- "text-shadow-color": [{ "text-shadow": scaleColor() }],
4944
- /**
4945
- * Opacity
4946
- * @see https://tailwindcss.com/docs/opacity
4947
- */
4948
- opacity: [{ opacity: [
4949
- isNumber,
4950
- isArbitraryVariable,
4951
- isArbitraryValue
4952
- ] }],
4953
- /**
4954
- * Mix Blend Mode
4955
- * @see https://tailwindcss.com/docs/mix-blend-mode
4956
- */
4957
- "mix-blend": [{ "mix-blend": [
4958
- ...scaleBlendMode(),
4959
- "plus-darker",
4960
- "plus-lighter"
4961
- ] }],
4962
- /**
4963
- * Background Blend Mode
4964
- * @see https://tailwindcss.com/docs/background-blend-mode
4965
- */
4966
- "bg-blend": [{ "bg-blend": scaleBlendMode() }],
4967
- /**
4968
- * Mask Clip
4969
- * @see https://tailwindcss.com/docs/mask-clip
4970
- */
4971
- "mask-clip": [{ "mask-clip": [
4972
- "border",
4973
- "padding",
4974
- "content",
4975
- "fill",
4976
- "stroke",
4977
- "view"
4978
- ] }, "mask-no-clip"],
4979
- /**
4980
- * Mask Composite
4981
- * @see https://tailwindcss.com/docs/mask-composite
4982
- */
4983
- "mask-composite": [{ mask: [
4984
- "add",
4985
- "subtract",
4986
- "intersect",
4987
- "exclude"
4988
- ] }],
4989
- /**
4990
- * Mask Image
4991
- * @see https://tailwindcss.com/docs/mask-image
4992
- */
4993
- "mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
4994
- "mask-image-linear-from-pos": [{ "mask-linear-from": scaleMaskImagePosition() }],
4995
- "mask-image-linear-to-pos": [{ "mask-linear-to": scaleMaskImagePosition() }],
4996
- "mask-image-linear-from-color": [{ "mask-linear-from": scaleColor() }],
4997
- "mask-image-linear-to-color": [{ "mask-linear-to": scaleColor() }],
4998
- "mask-image-t-from-pos": [{ "mask-t-from": scaleMaskImagePosition() }],
4999
- "mask-image-t-to-pos": [{ "mask-t-to": scaleMaskImagePosition() }],
5000
- "mask-image-t-from-color": [{ "mask-t-from": scaleColor() }],
5001
- "mask-image-t-to-color": [{ "mask-t-to": scaleColor() }],
5002
- "mask-image-r-from-pos": [{ "mask-r-from": scaleMaskImagePosition() }],
5003
- "mask-image-r-to-pos": [{ "mask-r-to": scaleMaskImagePosition() }],
5004
- "mask-image-r-from-color": [{ "mask-r-from": scaleColor() }],
5005
- "mask-image-r-to-color": [{ "mask-r-to": scaleColor() }],
5006
- "mask-image-b-from-pos": [{ "mask-b-from": scaleMaskImagePosition() }],
5007
- "mask-image-b-to-pos": [{ "mask-b-to": scaleMaskImagePosition() }],
5008
- "mask-image-b-from-color": [{ "mask-b-from": scaleColor() }],
5009
- "mask-image-b-to-color": [{ "mask-b-to": scaleColor() }],
5010
- "mask-image-l-from-pos": [{ "mask-l-from": scaleMaskImagePosition() }],
5011
- "mask-image-l-to-pos": [{ "mask-l-to": scaleMaskImagePosition() }],
5012
- "mask-image-l-from-color": [{ "mask-l-from": scaleColor() }],
5013
- "mask-image-l-to-color": [{ "mask-l-to": scaleColor() }],
5014
- "mask-image-x-from-pos": [{ "mask-x-from": scaleMaskImagePosition() }],
5015
- "mask-image-x-to-pos": [{ "mask-x-to": scaleMaskImagePosition() }],
5016
- "mask-image-x-from-color": [{ "mask-x-from": scaleColor() }],
5017
- "mask-image-x-to-color": [{ "mask-x-to": scaleColor() }],
5018
- "mask-image-y-from-pos": [{ "mask-y-from": scaleMaskImagePosition() }],
5019
- "mask-image-y-to-pos": [{ "mask-y-to": scaleMaskImagePosition() }],
5020
- "mask-image-y-from-color": [{ "mask-y-from": scaleColor() }],
5021
- "mask-image-y-to-color": [{ "mask-y-to": scaleColor() }],
5022
- "mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
5023
- "mask-image-radial-from-pos": [{ "mask-radial-from": scaleMaskImagePosition() }],
5024
- "mask-image-radial-to-pos": [{ "mask-radial-to": scaleMaskImagePosition() }],
5025
- "mask-image-radial-from-color": [{ "mask-radial-from": scaleColor() }],
5026
- "mask-image-radial-to-color": [{ "mask-radial-to": scaleColor() }],
5027
- "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
5028
- "mask-image-radial-size": [{ "mask-radial": [{
5029
- closest: ["side", "corner"],
5030
- farthest: ["side", "corner"]
5031
- }] }],
5032
- "mask-image-radial-pos": [{ "mask-radial-at": scalePosition() }],
5033
- "mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
5034
- "mask-image-conic-from-pos": [{ "mask-conic-from": scaleMaskImagePosition() }],
5035
- "mask-image-conic-to-pos": [{ "mask-conic-to": scaleMaskImagePosition() }],
5036
- "mask-image-conic-from-color": [{ "mask-conic-from": scaleColor() }],
5037
- "mask-image-conic-to-color": [{ "mask-conic-to": scaleColor() }],
5038
- /**
5039
- * Mask Mode
5040
- * @see https://tailwindcss.com/docs/mask-mode
5041
- */
5042
- "mask-mode": [{ mask: [
5043
- "alpha",
5044
- "luminance",
5045
- "match"
5046
- ] }],
5047
- /**
5048
- * Mask Origin
5049
- * @see https://tailwindcss.com/docs/mask-origin
5050
- */
5051
- "mask-origin": [{ "mask-origin": [
5052
- "border",
5053
- "padding",
5054
- "content",
5055
- "fill",
5056
- "stroke",
5057
- "view"
5058
- ] }],
5059
- /**
5060
- * Mask Position
5061
- * @see https://tailwindcss.com/docs/mask-position
5062
- */
5063
- "mask-position": [{ mask: scaleBgPosition() }],
5064
- /**
5065
- * Mask Repeat
5066
- * @see https://tailwindcss.com/docs/mask-repeat
5067
- */
5068
- "mask-repeat": [{ mask: scaleBgRepeat() }],
5069
- /**
5070
- * Mask Size
5071
- * @see https://tailwindcss.com/docs/mask-size
5072
- */
5073
- "mask-size": [{ mask: scaleBgSize() }],
5074
- /**
5075
- * Mask Type
5076
- * @see https://tailwindcss.com/docs/mask-type
5077
- */
5078
- "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
5079
- /**
5080
- * Mask Image
5081
- * @see https://tailwindcss.com/docs/mask-image
5082
- */
5083
- "mask-image": [{ mask: [
5084
- "none",
5085
- isArbitraryVariable,
5086
- isArbitraryValue
5087
- ] }],
5088
- /**
5089
- * Filter
5090
- * @see https://tailwindcss.com/docs/filter
5091
- */
5092
- filter: [{ filter: [
5093
- "",
5094
- "none",
5095
- isArbitraryVariable,
5096
- isArbitraryValue
5097
- ] }],
5098
- /**
5099
- * Blur
5100
- * @see https://tailwindcss.com/docs/blur
5101
- */
5102
- blur: [{ blur: scaleBlur() }],
5103
- /**
5104
- * Brightness
5105
- * @see https://tailwindcss.com/docs/brightness
5106
- */
5107
- brightness: [{ brightness: [
5108
- isNumber,
5109
- isArbitraryVariable,
5110
- isArbitraryValue
5111
- ] }],
5112
- /**
5113
- * Contrast
5114
- * @see https://tailwindcss.com/docs/contrast
5115
- */
5116
- contrast: [{ contrast: [
5117
- isNumber,
5118
- isArbitraryVariable,
5119
- isArbitraryValue
5120
- ] }],
5121
- /**
5122
- * Drop Shadow
5123
- * @see https://tailwindcss.com/docs/drop-shadow
5124
- */
5125
- "drop-shadow": [{ "drop-shadow": [
5126
- "",
5127
- "none",
5128
- themeDropShadow,
5129
- isArbitraryVariableShadow,
5130
- isArbitraryShadow
5131
- ] }],
5132
- /**
5133
- * Drop Shadow Color
5134
- * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
5135
- */
5136
- "drop-shadow-color": [{ "drop-shadow": scaleColor() }],
5137
- /**
5138
- * Grayscale
5139
- * @see https://tailwindcss.com/docs/grayscale
5140
- */
5141
- grayscale: [{ grayscale: [
5142
- "",
5143
- isNumber,
5144
- isArbitraryVariable,
5145
- isArbitraryValue
5146
- ] }],
5147
- /**
5148
- * Hue Rotate
5149
- * @see https://tailwindcss.com/docs/hue-rotate
5150
- */
5151
- "hue-rotate": [{ "hue-rotate": [
5152
- isNumber,
5153
- isArbitraryVariable,
5154
- isArbitraryValue
5155
- ] }],
5156
- /**
5157
- * Invert
5158
- * @see https://tailwindcss.com/docs/invert
5159
- */
5160
- invert: [{ invert: [
5161
- "",
5162
- isNumber,
5163
- isArbitraryVariable,
5164
- isArbitraryValue
5165
- ] }],
5166
- /**
5167
- * Saturate
5168
- * @see https://tailwindcss.com/docs/saturate
5169
- */
5170
- saturate: [{ saturate: [
5171
- isNumber,
5172
- isArbitraryVariable,
5173
- isArbitraryValue
5174
- ] }],
5175
- /**
5176
- * Sepia
5177
- * @see https://tailwindcss.com/docs/sepia
5178
- */
5179
- sepia: [{ sepia: [
5180
- "",
5181
- isNumber,
5182
- isArbitraryVariable,
5183
- isArbitraryValue
5184
- ] }],
5185
- /**
5186
- * Backdrop Filter
5187
- * @see https://tailwindcss.com/docs/backdrop-filter
5188
- */
5189
- "backdrop-filter": [{ "backdrop-filter": [
5190
- "",
5191
- "none",
5192
- isArbitraryVariable,
5193
- isArbitraryValue
5194
- ] }],
5195
- /**
5196
- * Backdrop Blur
5197
- * @see https://tailwindcss.com/docs/backdrop-blur
5198
- */
5199
- "backdrop-blur": [{ "backdrop-blur": scaleBlur() }],
5200
- /**
5201
- * Backdrop Brightness
5202
- * @see https://tailwindcss.com/docs/backdrop-brightness
5203
- */
5204
- "backdrop-brightness": [{ "backdrop-brightness": [
5205
- isNumber,
5206
- isArbitraryVariable,
5207
- isArbitraryValue
5208
- ] }],
5209
- /**
5210
- * Backdrop Contrast
5211
- * @see https://tailwindcss.com/docs/backdrop-contrast
5212
- */
5213
- "backdrop-contrast": [{ "backdrop-contrast": [
5214
- isNumber,
5215
- isArbitraryVariable,
5216
- isArbitraryValue
5217
- ] }],
5218
- /**
5219
- * Backdrop Grayscale
5220
- * @see https://tailwindcss.com/docs/backdrop-grayscale
5221
- */
5222
- "backdrop-grayscale": [{ "backdrop-grayscale": [
5223
- "",
5224
- isNumber,
5225
- isArbitraryVariable,
5226
- isArbitraryValue
5227
- ] }],
5228
- /**
5229
- * Backdrop Hue Rotate
5230
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
5231
- */
5232
- "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
5233
- isNumber,
5234
- isArbitraryVariable,
5235
- isArbitraryValue
5236
- ] }],
5237
- /**
5238
- * Backdrop Invert
5239
- * @see https://tailwindcss.com/docs/backdrop-invert
5240
- */
5241
- "backdrop-invert": [{ "backdrop-invert": [
5242
- "",
5243
- isNumber,
5244
- isArbitraryVariable,
5245
- isArbitraryValue
5246
- ] }],
5247
- /**
5248
- * Backdrop Opacity
5249
- * @see https://tailwindcss.com/docs/backdrop-opacity
5250
- */
5251
- "backdrop-opacity": [{ "backdrop-opacity": [
5252
- isNumber,
5253
- isArbitraryVariable,
5254
- isArbitraryValue
5255
- ] }],
5256
- /**
5257
- * Backdrop Saturate
5258
- * @see https://tailwindcss.com/docs/backdrop-saturate
5259
- */
5260
- "backdrop-saturate": [{ "backdrop-saturate": [
5261
- isNumber,
5262
- isArbitraryVariable,
5263
- isArbitraryValue
5264
- ] }],
5265
- /**
5266
- * Backdrop Sepia
5267
- * @see https://tailwindcss.com/docs/backdrop-sepia
5268
- */
5269
- "backdrop-sepia": [{ "backdrop-sepia": [
5270
- "",
5271
- isNumber,
5272
- isArbitraryVariable,
5273
- isArbitraryValue
5274
- ] }],
5275
- /**
5276
- * Border Collapse
5277
- * @see https://tailwindcss.com/docs/border-collapse
5278
- */
5279
- "border-collapse": [{ border: ["collapse", "separate"] }],
5280
- /**
5281
- * Border Spacing
5282
- * @see https://tailwindcss.com/docs/border-spacing
5283
- */
5284
- "border-spacing": [{ "border-spacing": scaleUnambiguousSpacing() }],
5285
- /**
5286
- * Border Spacing X
5287
- * @see https://tailwindcss.com/docs/border-spacing
5288
- */
5289
- "border-spacing-x": [{ "border-spacing-x": scaleUnambiguousSpacing() }],
5290
- /**
5291
- * Border Spacing Y
5292
- * @see https://tailwindcss.com/docs/border-spacing
5293
- */
5294
- "border-spacing-y": [{ "border-spacing-y": scaleUnambiguousSpacing() }],
5295
- /**
5296
- * Table Layout
5297
- * @see https://tailwindcss.com/docs/table-layout
5298
- */
5299
- "table-layout": [{ table: ["auto", "fixed"] }],
5300
- /**
5301
- * Caption Side
5302
- * @see https://tailwindcss.com/docs/caption-side
5303
- */
5304
- caption: [{ caption: ["top", "bottom"] }],
5305
- /**
5306
- * Transition Property
5307
- * @see https://tailwindcss.com/docs/transition-property
5308
- */
5309
- transition: [{ transition: [
5310
- "",
5311
- "all",
5312
- "colors",
5313
- "opacity",
5314
- "shadow",
5315
- "transform",
5316
- "none",
5317
- isArbitraryVariable,
5318
- isArbitraryValue
5319
- ] }],
5320
- /**
5321
- * Transition Behavior
5322
- * @see https://tailwindcss.com/docs/transition-behavior
5323
- */
5324
- "transition-behavior": [{ transition: ["normal", "discrete"] }],
5325
- /**
5326
- * Transition Duration
5327
- * @see https://tailwindcss.com/docs/transition-duration
5328
- */
5329
- duration: [{ duration: [
5330
- isNumber,
5331
- "initial",
5332
- isArbitraryVariable,
5333
- isArbitraryValue
5334
- ] }],
5335
- /**
5336
- * Transition Timing Function
5337
- * @see https://tailwindcss.com/docs/transition-timing-function
5338
- */
5339
- ease: [{ ease: [
5340
- "linear",
5341
- "initial",
5342
- themeEase,
5343
- isArbitraryVariable,
5344
- isArbitraryValue
5345
- ] }],
5346
- /**
5347
- * Transition Delay
5348
- * @see https://tailwindcss.com/docs/transition-delay
5349
- */
5350
- delay: [{ delay: [
5351
- isNumber,
5352
- isArbitraryVariable,
5353
- isArbitraryValue
5354
- ] }],
5355
- /**
5356
- * Animation
5357
- * @see https://tailwindcss.com/docs/animation
5358
- */
5359
- animate: [{ animate: [
5360
- "none",
5361
- themeAnimate,
5362
- isArbitraryVariable,
5363
- isArbitraryValue
5364
- ] }],
5365
- /**
5366
- * Backface Visibility
5367
- * @see https://tailwindcss.com/docs/backface-visibility
5368
- */
5369
- backface: [{ backface: ["hidden", "visible"] }],
5370
- /**
5371
- * Perspective
5372
- * @see https://tailwindcss.com/docs/perspective
5373
- */
5374
- perspective: [{ perspective: [
5375
- themePerspective,
5376
- isArbitraryVariable,
5377
- isArbitraryValue
5378
- ] }],
5379
- /**
5380
- * Perspective Origin
5381
- * @see https://tailwindcss.com/docs/perspective-origin
5382
- */
5383
- "perspective-origin": [{ "perspective-origin": scalePositionWithArbitrary() }],
5384
- /**
5385
- * Rotate
5386
- * @see https://tailwindcss.com/docs/rotate
5387
- */
5388
- rotate: [{ rotate: scaleRotate() }],
5389
- /**
5390
- * Rotate X
5391
- * @see https://tailwindcss.com/docs/rotate
5392
- */
5393
- "rotate-x": [{ "rotate-x": scaleRotate() }],
5394
- /**
5395
- * Rotate Y
5396
- * @see https://tailwindcss.com/docs/rotate
5397
- */
5398
- "rotate-y": [{ "rotate-y": scaleRotate() }],
5399
- /**
5400
- * Rotate Z
5401
- * @see https://tailwindcss.com/docs/rotate
5402
- */
5403
- "rotate-z": [{ "rotate-z": scaleRotate() }],
5404
- /**
5405
- * Scale
5406
- * @see https://tailwindcss.com/docs/scale
5407
- */
5408
- scale: [{ scale: scaleScale() }],
5409
- /**
5410
- * Scale X
5411
- * @see https://tailwindcss.com/docs/scale
5412
- */
5413
- "scale-x": [{ "scale-x": scaleScale() }],
5414
- /**
5415
- * Scale Y
5416
- * @see https://tailwindcss.com/docs/scale
5417
- */
5418
- "scale-y": [{ "scale-y": scaleScale() }],
5419
- /**
5420
- * Scale Z
5421
- * @see https://tailwindcss.com/docs/scale
5422
- */
5423
- "scale-z": [{ "scale-z": scaleScale() }],
5424
- /**
5425
- * Scale 3D
5426
- * @see https://tailwindcss.com/docs/scale
5427
- */
5428
- "scale-3d": ["scale-3d"],
5429
- /**
5430
- * Skew
5431
- * @see https://tailwindcss.com/docs/skew
5432
- */
5433
- skew: [{ skew: scaleSkew() }],
5434
- /**
5435
- * Skew X
5436
- * @see https://tailwindcss.com/docs/skew
5437
- */
5438
- "skew-x": [{ "skew-x": scaleSkew() }],
5439
- /**
5440
- * Skew Y
5441
- * @see https://tailwindcss.com/docs/skew
5442
- */
5443
- "skew-y": [{ "skew-y": scaleSkew() }],
5444
- /**
5445
- * Transform
5446
- * @see https://tailwindcss.com/docs/transform
5447
- */
5448
- transform: [{ transform: [
5449
- isArbitraryVariable,
5450
- isArbitraryValue,
5451
- "",
5452
- "none",
5453
- "gpu",
5454
- "cpu"
5455
- ] }],
5456
- /**
5457
- * Transform Origin
5458
- * @see https://tailwindcss.com/docs/transform-origin
5459
- */
5460
- "transform-origin": [{ origin: scalePositionWithArbitrary() }],
5461
- /**
5462
- * Transform Style
5463
- * @see https://tailwindcss.com/docs/transform-style
5464
- */
5465
- "transform-style": [{ transform: ["3d", "flat"] }],
5466
- /**
5467
- * Translate
5468
- * @see https://tailwindcss.com/docs/translate
5469
- */
5470
- translate: [{ translate: scaleTranslate() }],
5471
- /**
5472
- * Translate X
5473
- * @see https://tailwindcss.com/docs/translate
5474
- */
5475
- "translate-x": [{ "translate-x": scaleTranslate() }],
5476
- /**
5477
- * Translate Y
5478
- * @see https://tailwindcss.com/docs/translate
5479
- */
5480
- "translate-y": [{ "translate-y": scaleTranslate() }],
5481
- /**
5482
- * Translate Z
5483
- * @see https://tailwindcss.com/docs/translate
5484
- */
5485
- "translate-z": [{ "translate-z": scaleTranslate() }],
5486
- /**
5487
- * Translate None
5488
- * @see https://tailwindcss.com/docs/translate
5489
- */
5490
- "translate-none": ["translate-none"],
5491
- /**
5492
- * Zoom
5493
- * @see https://tailwindcss.com/docs/zoom
5494
- */
5495
- zoom: [{ zoom: [
5496
- isInteger,
5497
- isArbitraryVariable,
5498
- isArbitraryValue
5499
- ] }],
5500
- /**
5501
- * Accent Color
5502
- * @see https://tailwindcss.com/docs/accent-color
5503
- */
5504
- accent: [{ accent: scaleColor() }],
5505
- /**
5506
- * Appearance
5507
- * @see https://tailwindcss.com/docs/appearance
5508
- */
5509
- appearance: [{ appearance: ["none", "auto"] }],
5510
- /**
5511
- * Caret Color
5512
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
5513
- */
5514
- "caret-color": [{ caret: scaleColor() }],
5515
- /**
5516
- * Color Scheme
5517
- * @see https://tailwindcss.com/docs/color-scheme
5518
- */
5519
- "color-scheme": [{ scheme: [
5520
- "normal",
5521
- "dark",
5522
- "light",
5523
- "light-dark",
5524
- "only-dark",
5525
- "only-light"
5526
- ] }],
5527
- /**
5528
- * Cursor
5529
- * @see https://tailwindcss.com/docs/cursor
5530
- */
5531
- cursor: [{ cursor: [
5532
- "auto",
5533
- "default",
5534
- "pointer",
5535
- "wait",
5536
- "text",
5537
- "move",
5538
- "help",
5539
- "not-allowed",
5540
- "none",
5541
- "context-menu",
5542
- "progress",
5543
- "cell",
5544
- "crosshair",
5545
- "vertical-text",
5546
- "alias",
5547
- "copy",
5548
- "no-drop",
5549
- "grab",
5550
- "grabbing",
5551
- "all-scroll",
5552
- "col-resize",
5553
- "row-resize",
5554
- "n-resize",
5555
- "e-resize",
5556
- "s-resize",
5557
- "w-resize",
5558
- "ne-resize",
5559
- "nw-resize",
5560
- "se-resize",
5561
- "sw-resize",
5562
- "ew-resize",
5563
- "ns-resize",
5564
- "nesw-resize",
5565
- "nwse-resize",
5566
- "zoom-in",
5567
- "zoom-out",
5568
- isArbitraryVariable,
5569
- isArbitraryValue
5570
- ] }],
5571
- /**
5572
- * Field Sizing
5573
- * @see https://tailwindcss.com/docs/field-sizing
5574
- */
5575
- "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
5576
- /**
5577
- * Pointer Events
5578
- * @see https://tailwindcss.com/docs/pointer-events
5579
- */
5580
- "pointer-events": [{ "pointer-events": ["auto", "none"] }],
5581
- /**
5582
- * Resize
5583
- * @see https://tailwindcss.com/docs/resize
5584
- */
5585
- resize: [{ resize: [
5586
- "none",
5587
- "",
5588
- "y",
5589
- "x"
5590
- ] }],
5591
- /**
5592
- * Scroll Behavior
5593
- * @see https://tailwindcss.com/docs/scroll-behavior
5594
- */
5595
- "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
5596
- /**
5597
- * Scrollbar Thumb Color
5598
- * @see https://tailwindcss.com/docs/scrollbar-color
5599
- */
5600
- "scrollbar-thumb-color": [{ "scrollbar-thumb": scaleColor() }],
5601
- /**
5602
- * Scrollbar Track Color
5603
- * @see https://tailwindcss.com/docs/scrollbar-color
5604
- */
5605
- "scrollbar-track-color": [{ "scrollbar-track": scaleColor() }],
5606
- /**
5607
- * Scrollbar Gutter
5608
- * @see https://tailwindcss.com/docs/scrollbar-gutter
5609
- */
5610
- "scrollbar-gutter": [{ "scrollbar-gutter": [
5611
- "auto",
5612
- "stable",
5613
- "both"
5614
- ] }],
5615
- /**
5616
- * Scrollbar Width
5617
- * @see https://tailwindcss.com/docs/scrollbar-width
5618
- */
5619
- "scrollbar-w": [{ scrollbar: [
5620
- "auto",
5621
- "thin",
5622
- "none"
5623
- ] }],
5624
- /**
5625
- * Scroll Margin
5626
- * @see https://tailwindcss.com/docs/scroll-margin
5627
- */
5628
- "scroll-m": [{ "scroll-m": scaleUnambiguousSpacing() }],
5629
- /**
5630
- * Scroll Margin Inline
5631
- * @see https://tailwindcss.com/docs/scroll-margin
5632
- */
5633
- "scroll-mx": [{ "scroll-mx": scaleUnambiguousSpacing() }],
5634
- /**
5635
- * Scroll Margin Block
5636
- * @see https://tailwindcss.com/docs/scroll-margin
5637
- */
5638
- "scroll-my": [{ "scroll-my": scaleUnambiguousSpacing() }],
5639
- /**
5640
- * Scroll Margin Inline Start
5641
- * @see https://tailwindcss.com/docs/scroll-margin
5642
- */
5643
- "scroll-ms": [{ "scroll-ms": scaleUnambiguousSpacing() }],
5644
- /**
5645
- * Scroll Margin Inline End
5646
- * @see https://tailwindcss.com/docs/scroll-margin
5647
- */
5648
- "scroll-me": [{ "scroll-me": scaleUnambiguousSpacing() }],
5649
- /**
5650
- * Scroll Margin Block Start
5651
- * @see https://tailwindcss.com/docs/scroll-margin
5652
- */
5653
- "scroll-mbs": [{ "scroll-mbs": scaleUnambiguousSpacing() }],
5654
- /**
5655
- * Scroll Margin Block End
5656
- * @see https://tailwindcss.com/docs/scroll-margin
5657
- */
5658
- "scroll-mbe": [{ "scroll-mbe": scaleUnambiguousSpacing() }],
5659
- /**
5660
- * Scroll Margin Top
5661
- * @see https://tailwindcss.com/docs/scroll-margin
5662
- */
5663
- "scroll-mt": [{ "scroll-mt": scaleUnambiguousSpacing() }],
5664
- /**
5665
- * Scroll Margin Right
5666
- * @see https://tailwindcss.com/docs/scroll-margin
5667
- */
5668
- "scroll-mr": [{ "scroll-mr": scaleUnambiguousSpacing() }],
5669
- /**
5670
- * Scroll Margin Bottom
5671
- * @see https://tailwindcss.com/docs/scroll-margin
5672
- */
5673
- "scroll-mb": [{ "scroll-mb": scaleUnambiguousSpacing() }],
5674
- /**
5675
- * Scroll Margin Left
5676
- * @see https://tailwindcss.com/docs/scroll-margin
5677
- */
5678
- "scroll-ml": [{ "scroll-ml": scaleUnambiguousSpacing() }],
5679
- /**
5680
- * Scroll Padding
5681
- * @see https://tailwindcss.com/docs/scroll-padding
5682
- */
5683
- "scroll-p": [{ "scroll-p": scaleUnambiguousSpacing() }],
5684
- /**
5685
- * Scroll Padding Inline
5686
- * @see https://tailwindcss.com/docs/scroll-padding
5687
- */
5688
- "scroll-px": [{ "scroll-px": scaleUnambiguousSpacing() }],
5689
- /**
5690
- * Scroll Padding Block
5691
- * @see https://tailwindcss.com/docs/scroll-padding
5692
- */
5693
- "scroll-py": [{ "scroll-py": scaleUnambiguousSpacing() }],
5694
- /**
5695
- * Scroll Padding Inline Start
5696
- * @see https://tailwindcss.com/docs/scroll-padding
5697
- */
5698
- "scroll-ps": [{ "scroll-ps": scaleUnambiguousSpacing() }],
5699
- /**
5700
- * Scroll Padding Inline End
5701
- * @see https://tailwindcss.com/docs/scroll-padding
5702
- */
5703
- "scroll-pe": [{ "scroll-pe": scaleUnambiguousSpacing() }],
5704
- /**
5705
- * Scroll Padding Block Start
5706
- * @see https://tailwindcss.com/docs/scroll-padding
5707
- */
5708
- "scroll-pbs": [{ "scroll-pbs": scaleUnambiguousSpacing() }],
5709
- /**
5710
- * Scroll Padding Block End
5711
- * @see https://tailwindcss.com/docs/scroll-padding
5712
- */
5713
- "scroll-pbe": [{ "scroll-pbe": scaleUnambiguousSpacing() }],
5714
- /**
5715
- * Scroll Padding Top
5716
- * @see https://tailwindcss.com/docs/scroll-padding
5717
- */
5718
- "scroll-pt": [{ "scroll-pt": scaleUnambiguousSpacing() }],
5719
- /**
5720
- * Scroll Padding Right
5721
- * @see https://tailwindcss.com/docs/scroll-padding
5722
- */
5723
- "scroll-pr": [{ "scroll-pr": scaleUnambiguousSpacing() }],
5724
- /**
5725
- * Scroll Padding Bottom
5726
- * @see https://tailwindcss.com/docs/scroll-padding
5727
- */
5728
- "scroll-pb": [{ "scroll-pb": scaleUnambiguousSpacing() }],
5729
- /**
5730
- * Scroll Padding Left
5731
- * @see https://tailwindcss.com/docs/scroll-padding
5732
- */
5733
- "scroll-pl": [{ "scroll-pl": scaleUnambiguousSpacing() }],
5734
- /**
5735
- * Scroll Snap Align
5736
- * @see https://tailwindcss.com/docs/scroll-snap-align
5737
- */
5738
- "snap-align": [{ snap: [
5739
- "start",
5740
- "end",
5741
- "center",
5742
- "align-none"
5743
- ] }],
5744
- /**
5745
- * Scroll Snap Stop
5746
- * @see https://tailwindcss.com/docs/scroll-snap-stop
5747
- */
5748
- "snap-stop": [{ snap: ["normal", "always"] }],
5749
- /**
5750
- * Scroll Snap Type
5751
- * @see https://tailwindcss.com/docs/scroll-snap-type
5752
- */
5753
- "snap-type": [{ snap: [
5754
- "none",
5755
- "x",
5756
- "y",
5757
- "both"
5758
- ] }],
5759
- /**
5760
- * Scroll Snap Type Strictness
5761
- * @see https://tailwindcss.com/docs/scroll-snap-type
5762
- */
5763
- "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
5764
- /**
5765
- * Touch Action
5766
- * @see https://tailwindcss.com/docs/touch-action
5767
- */
5768
- touch: [{ touch: [
5769
- "auto",
5770
- "none",
5771
- "manipulation"
5772
- ] }],
5773
- /**
5774
- * Touch Action X
5775
- * @see https://tailwindcss.com/docs/touch-action
5776
- */
5777
- "touch-x": [{ "touch-pan": [
5778
- "x",
5779
- "left",
5780
- "right"
5781
- ] }],
5782
- /**
5783
- * Touch Action Y
5784
- * @see https://tailwindcss.com/docs/touch-action
5785
- */
5786
- "touch-y": [{ "touch-pan": [
5787
- "y",
5788
- "up",
5789
- "down"
5790
- ] }],
5791
- /**
5792
- * Touch Action Pinch Zoom
5793
- * @see https://tailwindcss.com/docs/touch-action
5794
- */
5795
- "touch-pz": ["touch-pinch-zoom"],
5796
- /**
5797
- * User Select
5798
- * @see https://tailwindcss.com/docs/user-select
5799
- */
5800
- select: [{ select: [
5801
- "none",
5802
- "text",
5803
- "all",
5804
- "auto"
5805
- ] }],
5806
- /**
5807
- * Will Change
5808
- * @see https://tailwindcss.com/docs/will-change
5809
- */
5810
- "will-change": [{ "will-change": [
5811
- "auto",
5812
- "scroll",
5813
- "contents",
5814
- "transform",
5815
- isArbitraryVariable,
5816
- isArbitraryValue
5817
- ] }],
5818
- /**
5819
- * Fill
5820
- * @see https://tailwindcss.com/docs/fill
5821
- */
5822
- fill: [{ fill: ["none", ...scaleColor()] }],
5823
- /**
5824
- * Stroke Width
5825
- * @see https://tailwindcss.com/docs/stroke-width
5826
- */
5827
- "stroke-w": [{ stroke: [
5828
- isNumber,
5829
- isArbitraryVariableLength,
5830
- isArbitraryLength,
5831
- isArbitraryNumber
5832
- ] }],
5833
- /**
5834
- * Stroke
5835
- * @see https://tailwindcss.com/docs/stroke
5836
- */
5837
- stroke: [{ stroke: ["none", ...scaleColor()] }],
5838
- /**
5839
- * Forced Color Adjust
5840
- * @see https://tailwindcss.com/docs/forced-color-adjust
5841
- */
5842
- "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
5843
- },
5844
- conflictingClassGroups: {
5845
- "container-named": ["container-type"],
5846
- overflow: ["overflow-x", "overflow-y"],
5847
- overscroll: ["overscroll-x", "overscroll-y"],
5848
- inset: [
5849
- "inset-x",
5850
- "inset-y",
5851
- "inset-bs",
5852
- "inset-be",
5853
- "start",
5854
- "end",
5855
- "top",
5856
- "right",
5857
- "bottom",
5858
- "left"
5859
- ],
5860
- "inset-x": [
5861
- "start",
5862
- "end",
5863
- "right",
5864
- "left"
5865
- ],
5866
- "inset-y": [
5867
- "inset-bs",
5868
- "inset-be",
5869
- "top",
5870
- "bottom"
5871
- ],
5872
- flex: [
5873
- "basis",
5874
- "grow",
5875
- "shrink"
5876
- ],
5877
- gap: ["gap-x", "gap-y"],
5878
- p: [
5879
- "px",
5880
- "py",
5881
- "ps",
5882
- "pe",
5883
- "pbs",
5884
- "pbe",
5885
- "pt",
5886
- "pr",
5887
- "pb",
5888
- "pl"
5889
- ],
5890
- px: [
5891
- "ps",
5892
- "pe",
5893
- "pr",
5894
- "pl"
5895
- ],
5896
- py: [
5897
- "pbs",
5898
- "pbe",
5899
- "pt",
5900
- "pb"
5901
- ],
5902
- m: [
5903
- "mx",
5904
- "my",
5905
- "ms",
5906
- "me",
5907
- "mbs",
5908
- "mbe",
5909
- "mt",
5910
- "mr",
5911
- "mb",
5912
- "ml"
5913
- ],
5914
- mx: [
5915
- "ms",
5916
- "me",
5917
- "mr",
5918
- "ml"
5919
- ],
5920
- my: [
5921
- "mbs",
5922
- "mbe",
5923
- "mt",
5924
- "mb"
5925
- ],
5926
- size: ["w", "h"],
5927
- "font-size": ["leading"],
5928
- "fvn-normal": [
5929
- "fvn-ordinal",
5930
- "fvn-slashed-zero",
5931
- "fvn-figure",
5932
- "fvn-spacing",
5933
- "fvn-fraction"
5934
- ],
5935
- "fvn-ordinal": ["fvn-normal"],
5936
- "fvn-slashed-zero": ["fvn-normal"],
5937
- "fvn-figure": ["fvn-normal"],
5938
- "fvn-spacing": ["fvn-normal"],
5939
- "fvn-fraction": ["fvn-normal"],
5940
- "line-clamp": ["display", "overflow"],
5941
- rounded: [
5942
- "rounded-s",
5943
- "rounded-e",
5944
- "rounded-t",
5945
- "rounded-r",
5946
- "rounded-b",
5947
- "rounded-l",
5948
- "rounded-ss",
5949
- "rounded-se",
5950
- "rounded-ee",
5951
- "rounded-es",
5952
- "rounded-tl",
5953
- "rounded-tr",
5954
- "rounded-br",
5955
- "rounded-bl"
5956
- ],
5957
- "rounded-s": ["rounded-ss", "rounded-es"],
5958
- "rounded-e": ["rounded-se", "rounded-ee"],
5959
- "rounded-t": ["rounded-tl", "rounded-tr"],
5960
- "rounded-r": ["rounded-tr", "rounded-br"],
5961
- "rounded-b": ["rounded-br", "rounded-bl"],
5962
- "rounded-l": ["rounded-tl", "rounded-bl"],
5963
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
5964
- "border-w": [
5965
- "border-w-x",
5966
- "border-w-y",
5967
- "border-w-s",
5968
- "border-w-e",
5969
- "border-w-bs",
5970
- "border-w-be",
5971
- "border-w-t",
5972
- "border-w-r",
5973
- "border-w-b",
5974
- "border-w-l"
5975
- ],
5976
- "border-w-x": [
5977
- "border-w-s",
5978
- "border-w-e",
5979
- "border-w-r",
5980
- "border-w-l"
5981
- ],
5982
- "border-w-y": [
5983
- "border-w-bs",
5984
- "border-w-be",
5985
- "border-w-t",
5986
- "border-w-b"
5987
- ],
5988
- "border-color": [
5989
- "border-color-x",
5990
- "border-color-y",
5991
- "border-color-s",
5992
- "border-color-e",
5993
- "border-color-bs",
5994
- "border-color-be",
5995
- "border-color-t",
5996
- "border-color-r",
5997
- "border-color-b",
5998
- "border-color-l"
5999
- ],
6000
- "border-color-x": [
6001
- "border-color-s",
6002
- "border-color-e",
6003
- "border-color-r",
6004
- "border-color-l"
6005
- ],
6006
- "border-color-y": [
6007
- "border-color-bs",
6008
- "border-color-be",
6009
- "border-color-t",
6010
- "border-color-b"
6011
- ],
6012
- translate: [
6013
- "translate-x",
6014
- "translate-y",
6015
- "translate-none"
6016
- ],
6017
- "translate-none": [
6018
- "translate",
6019
- "translate-x",
6020
- "translate-y",
6021
- "translate-z"
6022
- ],
6023
- "scroll-m": [
6024
- "scroll-mx",
6025
- "scroll-my",
6026
- "scroll-ms",
6027
- "scroll-me",
6028
- "scroll-mbs",
6029
- "scroll-mbe",
6030
- "scroll-mt",
6031
- "scroll-mr",
6032
- "scroll-mb",
6033
- "scroll-ml"
6034
- ],
6035
- "scroll-mx": [
6036
- "scroll-ms",
6037
- "scroll-me",
6038
- "scroll-mr",
6039
- "scroll-ml"
6040
- ],
6041
- "scroll-my": [
6042
- "scroll-mbs",
6043
- "scroll-mbe",
6044
- "scroll-mt",
6045
- "scroll-mb"
6046
- ],
6047
- "scroll-p": [
6048
- "scroll-px",
6049
- "scroll-py",
6050
- "scroll-ps",
6051
- "scroll-pe",
6052
- "scroll-pbs",
6053
- "scroll-pbe",
6054
- "scroll-pt",
6055
- "scroll-pr",
6056
- "scroll-pb",
6057
- "scroll-pl"
6058
- ],
6059
- "scroll-px": [
6060
- "scroll-ps",
6061
- "scroll-pe",
6062
- "scroll-pr",
6063
- "scroll-pl"
6064
- ],
6065
- "scroll-py": [
6066
- "scroll-pbs",
6067
- "scroll-pbe",
6068
- "scroll-pt",
6069
- "scroll-pb"
6070
- ],
6071
- touch: [
6072
- "touch-x",
6073
- "touch-y",
6074
- "touch-pz"
6075
- ],
6076
- "touch-x": ["touch"],
6077
- "touch-y": ["touch"],
6078
- "touch-pz": ["touch"]
6079
- },
6080
- conflictingClassGroupModifiers: { "font-size": ["leading"] },
6081
- postfixLookupClassGroups: ["container-type"],
6082
- orderSensitiveModifiers: [
6083
- "*",
6084
- "**",
6085
- "after",
6086
- "backdrop",
6087
- "before",
6088
- "details-content",
6089
- "file",
6090
- "first-letter",
6091
- "first-line",
6092
- "marker",
6093
- "placeholder",
6094
- "selection"
6095
- ]
6096
- };
6097
- };
6098
- const twMerge = /*#__PURE__*/ createTailwindMerge(getDefaultConfig);
6099
- //#endregion
6100
- //#region node_modules/@tangle-network/ui/dist/lib/utils.js
6101
- function cn(...inputs) {
6102
- return twMerge(clsx(inputs));
6103
- }
6104
- //#endregion
6105
- //#region node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
6106
- /**
6107
- * @license lucide-react v1.63.0 - ISC
6108
- *
6109
- * This source code is licensed under the ISC license.
6110
- * See the LICENSE file in the root directory of this source tree.
6111
- */
6112
- const toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
6113
- //#endregion
6114
- //#region node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
6115
- /**
6116
- * @license lucide-react v1.63.0 - ISC
6117
- *
6118
- * This source code is licensed under the ISC license.
6119
- * See the LICENSE file in the root directory of this source tree.
6120
- */
6121
- function toLucideIconData(iconName, iconNode, aliases = []) {
6122
- if (iconNode == null) throw new Error("[lucide]: iconNode is required when icon name is used");
6123
- return {
6124
- name: toKebabCase(iconName),
6125
- size: 24,
6126
- node: iconNode,
6127
- ...aliases.length > 0 ? { aliases } : {}
6128
- };
6129
- }
6130
- //#endregion
6131
- //#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
6132
- /**
6133
- * @license lucide-react v1.63.0 - ISC
6134
- *
6135
- * This source code is licensed under the ISC license.
6136
- * See the LICENSE file in the root directory of this source tree.
6137
- */
6138
- const toCamelCase = (string) => {
6139
- let out = "";
6140
- let upperNext = false;
6141
- for (const ch of string) {
6142
- if (ch === "-" || ch === "_" || ch <= " ") {
6143
- upperNext = out.length > 0;
6144
- continue;
6145
- }
6146
- if (out.length === 0) out += ch.toLowerCase();
6147
- else out += upperNext ? ch.toUpperCase() : ch;
6148
- upperNext = false;
6149
- }
6150
- return out;
6151
- };
6152
- //#endregion
6153
- //#region node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
6154
- /**
6155
- * @license lucide-react v1.63.0 - ISC
6156
- *
6157
- * This source code is licensed under the ISC license.
6158
- * See the LICENSE file in the root directory of this source tree.
6159
- */
6160
- const toPascalCase = (string) => {
6161
- const camelCase = toCamelCase(string);
6162
- return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
6163
- };
6164
- //#endregion
6165
- //#region node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
6166
- /**
6167
- * @license lucide-react v1.63.0 - ISC
6168
- *
6169
- * This source code is licensed under the ISC license.
6170
- * See the LICENSE file in the root directory of this source tree.
6171
- */
6172
- const mergeClasses = (...classes) => classes.filter((className, index, array) => {
6173
- return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
6174
- }).join(" ").trim();
6175
- //#endregion
6176
- //#region node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
6177
- /**
6178
- * @license lucide-react v1.63.0 - ISC
6179
- *
6180
- * This source code is licensed under the ISC license.
6181
- * See the LICENSE file in the root directory of this source tree.
6182
- */
6183
- const defaultAttributes = {
6184
- xmlns: "http://www.w3.org/2000/svg",
6185
- width: 24,
6186
- height: 24,
6187
- viewBox: "0 0 24 24",
6188
- fill: "none",
6189
- stroke: "currentColor",
6190
- "stroke-width": 2,
6191
- "stroke-linecap": "round",
6192
- "stroke-linejoin": "round"
6193
- };
6194
- //#endregion
6195
- //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
6196
- /**
6197
- * @license lucide-react v1.63.0 - ISC
6198
- *
6199
- * This source code is licensed under the ISC license.
6200
- * See the LICENSE file in the root directory of this source tree.
6201
- */
6202
- function isDefined(value) {
6203
- return value !== null && value !== void 0;
6204
- }
6205
- function buildLucideIconNode(icon, params = {}) {
6206
- const attributeNames = params.attributeNames ?? {};
6207
- const getAttributeName = (attributeName) => attributeNames[attributeName] ?? attributeName;
6208
- const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes["width"];
6209
- const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes["height"];
6210
- const aliasClassNames = icon.aliases?.filter((alias) => typeof alias === "string" && alias.trim() !== "").map((alias) => `lucide-${alias}`) ?? [];
6211
- const iconClassNames = [...icon.name ? [`lucide-${icon.name}`] : [], ...aliasClassNames];
6212
- const classNamesFromClassName = params.className?.split(" ").filter(Boolean) ?? [];
6213
- const className = params.includeDefaultClasses === false ? mergeClasses(...classNamesFromClassName) : mergeClasses("lucide", ...iconClassNames, ...classNamesFromClassName);
6214
- const calculatedStrokeWidth = params.absoluteStrokeWidth ? Number(params.strokeWidth ?? defaultAttributes["stroke-width"]) * Number(icon.size ?? icon.width ?? defaultAttributes["width"]) / Number(params.size ?? params.width ?? defaultAttributes["width"]) : params.strokeWidth ?? defaultAttributes["stroke-width"];
6215
- return [
6216
- "svg",
6217
- {
6218
- ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {
6219
- attrs[getAttributeName(attrName)] = value;
6220
- return attrs;
6221
- }, {}),
6222
- ..."color" in params && params.color && { [getAttributeName("stroke")]: params.color },
6223
- ..."size" in params && isDefined(params.size) && {
6224
- [getAttributeName("width")]: params.size,
6225
- [getAttributeName("height")]: params.size
6226
- },
6227
- ..."width" in params && isDefined(params.width) && { [getAttributeName("width")]: params.width },
6228
- ..."height" in params && isDefined(params.height) && { [getAttributeName("height")]: params.height },
6229
- [getAttributeName("stroke-width")]: calculatedStrokeWidth,
6230
- ...className && { [getAttributeName("class")]: className },
6231
- [getAttributeName("viewBox")]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
6232
- ...params.hasA11yProp === false ? { [getAttributeName("aria-hidden")]: "true" } : {},
6233
- ..."attributes" in params && params.attributes
6234
- },
6235
- icon.node.map((child) => {
6236
- const [name, attrs, children] = child;
6237
- const nextAttrs = params.nonScalingStroke ? {
6238
- [getAttributeName("vector-effect")]: "non-scaling-stroke",
6239
- ...attrs
6240
- } : attrs;
6241
- return children ? [
6242
- name,
6243
- nextAttrs,
6244
- children
6245
- ] : [name, nextAttrs];
6246
- })
6247
- ];
6248
- }
6249
- //#endregion
6250
- //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
6251
- /**
6252
- * @license lucide-react v1.63.0 - ISC
6253
- *
6254
- * This source code is licensed under the ISC license.
6255
- * See the LICENSE file in the root directory of this source tree.
6256
- */
6257
- function buildLucideIconForReact(icon, params = {}) {
6258
- return buildLucideIconNode(icon, {
6259
- ...params,
6260
- attributeNames: {
6261
- ...params.attributeNames,
6262
- class: "className",
6263
- "stroke-width": "strokeWidth",
6264
- "stroke-linecap": "strokeLinecap",
6265
- "stroke-linejoin": "strokeLinejoin",
6266
- "vector-effect": "vectorEffect"
6267
- }
6268
- });
6269
- }
6270
- //#endregion
6271
- //#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
6272
- /**
6273
- * @license lucide-react v1.63.0 - ISC
6274
- *
6275
- * This source code is licensed under the ISC license.
6276
- * See the LICENSE file in the root directory of this source tree.
6277
- */
6278
- const hasA11yProp = (props) => {
6279
- for (const prop in props) if (prop.startsWith("aria-") || prop === "role" || prop === "title") return true;
6280
- return false;
6281
- };
6282
- //#endregion
6283
- //#region node_modules/lucide-react/dist/esm/context.mjs
6284
- /**
6285
- * @license lucide-react v1.63.0 - ISC
6286
- *
6287
- * This source code is licensed under the ISC license.
6288
- * See the LICENSE file in the root directory of this source tree.
6289
- */
6290
- const LucideContext = createContext({});
6291
- const useLucideContext = () => useContext(LucideContext);
6292
- //#endregion
6293
- //#region node_modules/lucide-react/dist/esm/Icon.mjs
6294
- /**
6295
- * @license lucide-react v1.63.0 - ISC
6296
- *
6297
- * This source code is licensed under the ISC license.
6298
- * See the LICENSE file in the root directory of this source tree.
6299
- */
6300
- const Icon = forwardRef(({ color, size, width, height, strokeWidth, absoluteStrokeWidth, nonScalingStroke, className = "", children, iconNode = [], icon = {
6301
- node: iconNode,
6302
- aliases: [],
6303
- size: 24
6304
- }, ...rest }, ref) => {
6305
- const { size: contextSize = 24, strokeWidth: contextStrokeWidth = 2, absoluteStrokeWidth: contextAbsoluteStrokeWidth = false, nonScalingStroke: contextNonScalingStroke = false, color: contextColor = "currentColor", className: contextClass = "" } = useLucideContext() ?? {};
6306
- const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);
6307
- const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {
6308
- color: color ?? contextColor,
6309
- width: width ?? size ?? contextSize,
6310
- height: height ?? size ?? contextSize,
6311
- strokeWidth: strokeWidth ?? contextStrokeWidth,
6312
- absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,
6313
- nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,
6314
- className: mergeClasses(contextClass, className),
6315
- hasA11yProp: hasAccessibleProp,
6316
- attributes: rest
6317
- });
6318
- return createElement(name, {
6319
- ref,
6320
- ...svgAttributes
6321
- }, [...builtIconNode.map(([tag, attrs]) => createElement(tag, attrs)), ...Array.isArray(children) ? children : [children]]);
6322
- });
6323
- //#endregion
6324
- //#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
6325
- /**
6326
- * @license lucide-react v1.63.0 - ISC
6327
- *
6328
- * This source code is licensed under the ISC license.
6329
- * See the LICENSE file in the root directory of this source tree.
6330
- */
6331
- function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
6332
- const iconData = typeof iconDataOrName === "string" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;
6333
- const Component = forwardRef(({ className, ...props }, ref) => createElement(Icon, {
6334
- ref,
6335
- icon: iconData,
6336
- className,
6337
- ...props
6338
- }));
6339
- if (iconData.name) Component.displayName = toPascalCase(iconData.name);
6340
- return Component;
6341
- }
6342
- //#endregion
6343
- //#region node_modules/lucide-react/dist/esm/icons/circle-check.mjs
6344
- /**
6345
- * @license lucide-react v1.63.0 - ISC
6346
- *
6347
- * This source code is licensed under the ISC license.
6348
- * See the LICENSE file in the root directory of this source tree.
6349
- */
6350
- const __iconData$7 = {
6351
- name: "circle-check",
6352
- size: 24,
6353
- node: [["circle", {
6354
- cx: "12",
6355
- cy: "12",
6356
- r: "10",
6357
- key: "1mglay"
6358
- }], ["path", {
6359
- d: "m16 9-5.5 5.5L8 12",
6360
- key: "xofnsj"
6361
- }]],
6362
- aliases: ["check-circle-2"]
6363
- };
6364
- __iconData$7.node;
6365
- const CircleCheck = createLucideIcon(__iconData$7);
6366
- //#endregion
6367
- //#region node_modules/lucide-react/dist/esm/icons/circle-dashed.mjs
6368
- /**
6369
- * @license lucide-react v1.63.0 - ISC
6370
- *
6371
- * This source code is licensed under the ISC license.
6372
- * See the LICENSE file in the root directory of this source tree.
6373
- */
6374
- const __iconData$6 = {
6375
- name: "circle-dashed",
6376
- size: 24,
6377
- node: [
6378
- ["path", {
6379
- d: "M10.1 2.182a10 10 0 0 1 3.8 0",
6380
- key: "5ilxe3"
6381
- }],
6382
- ["path", {
6383
- d: "M13.9 21.818a10 10 0 0 1-3.8 0",
6384
- key: "11zvb9"
6385
- }],
6386
- ["path", {
6387
- d: "M17.609 3.721a10 10 0 0 1 2.69 2.7",
6388
- key: "1iw5b2"
6389
- }],
6390
- ["path", {
6391
- d: "M2.182 13.9a10 10 0 0 1 0-3.8",
6392
- key: "c0bmvh"
6393
- }],
6394
- ["path", {
6395
- d: "M20.279 17.609a10 10 0 0 1-2.7 2.69",
6396
- key: "1ruxm7"
6397
- }],
6398
- ["path", {
6399
- d: "M21.818 10.1a10 10 0 0 1 0 3.8",
6400
- key: "qkgqxc"
6401
- }],
6402
- ["path", {
6403
- d: "M3.721 6.391a10 10 0 0 1 2.7-2.69",
6404
- key: "1mcia2"
6405
- }],
6406
- ["path", {
6407
- d: "M6.391 20.279a10 10 0 0 1-2.69-2.7",
6408
- key: "1fvljs"
6409
- }]
6410
- ]
6411
- };
6412
- __iconData$6.node;
6413
- const CircleDashed = createLucideIcon(__iconData$6);
6414
- //#endregion
6415
- //#region node_modules/lucide-react/dist/esm/icons/circle-dot.mjs
6416
- /**
6417
- * @license lucide-react v1.63.0 - ISC
6418
- *
6419
- * This source code is licensed under the ISC license.
6420
- * See the LICENSE file in the root directory of this source tree.
6421
- */
6422
- const __iconData$5 = {
6423
- name: "circle-dot",
6424
- size: 24,
6425
- node: [["circle", {
6426
- cx: "12",
6427
- cy: "12",
6428
- r: "1",
6429
- key: "41hilf"
6430
- }], ["circle", {
6431
- cx: "12",
6432
- cy: "12",
6433
- r: "10",
6434
- key: "1mglay"
6435
- }]]
6436
- };
6437
- __iconData$5.node;
6438
- const CircleDot = createLucideIcon(__iconData$5);
6439
- //#endregion
6440
- //#region node_modules/lucide-react/dist/esm/icons/circle-question-mark.mjs
6441
- /**
6442
- * @license lucide-react v1.63.0 - ISC
6443
- *
6444
- * This source code is licensed under the ISC license.
6445
- * See the LICENSE file in the root directory of this source tree.
6446
- */
6447
- const __iconData$4 = {
6448
- name: "circle-question-mark",
6449
- size: 24,
6450
- node: [
6451
- ["circle", {
6452
- cx: "12",
6453
- cy: "12",
6454
- r: "10",
6455
- key: "1mglay"
6456
- }],
6457
- ["path", {
6458
- d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",
6459
- key: "1u773s"
6460
- }],
6461
- ["path", {
6462
- d: "M12 17h.01",
6463
- key: "p32p05"
6464
- }]
6465
- ],
6466
- aliases: ["help-circle", "circle-help"]
6467
- };
6468
- __iconData$4.node;
6469
- const CircleQuestionMark = createLucideIcon(__iconData$4);
6470
- //#endregion
6471
- //#region node_modules/lucide-react/dist/esm/icons/circle-stop.mjs
6472
- /**
6473
- * @license lucide-react v1.63.0 - ISC
6474
- *
6475
- * This source code is licensed under the ISC license.
6476
- * See the LICENSE file in the root directory of this source tree.
6477
- */
6478
- const __iconData$3 = {
6479
- name: "circle-stop",
6480
- size: 24,
6481
- node: [["circle", {
6482
- cx: "12",
6483
- cy: "12",
6484
- r: "10",
6485
- key: "1mglay"
6486
- }], ["rect", {
6487
- x: "9",
6488
- y: "9",
6489
- width: "6",
6490
- height: "6",
6491
- rx: "1",
6492
- key: "1ssd4o"
6493
- }]],
6494
- aliases: ["stop-circle"]
6495
- };
6496
- __iconData$3.node;
6497
- const CircleStop = createLucideIcon(__iconData$3);
6498
- //#endregion
6499
- //#region node_modules/lucide-react/dist/esm/icons/circle-x.mjs
6500
- /**
6501
- * @license lucide-react v1.63.0 - ISC
6502
- *
6503
- * This source code is licensed under the ISC license.
6504
- * See the LICENSE file in the root directory of this source tree.
6505
- */
6506
- const __iconData$2 = {
6507
- name: "circle-x",
6508
- size: 24,
6509
- node: [
6510
- ["circle", {
6511
- cx: "12",
6512
- cy: "12",
6513
- r: "10",
6514
- key: "1mglay"
6515
- }],
6516
- ["path", {
6517
- d: "m15 9-6 6",
6518
- key: "1uzhvr"
6519
- }],
6520
- ["path", {
6521
- d: "m9 9 6 6",
6522
- key: "z0biqf"
6523
- }]
6524
- ],
6525
- aliases: ["x-circle"]
6526
- };
6527
- __iconData$2.node;
6528
- const CircleX = createLucideIcon(__iconData$2);
6529
- //#endregion
6530
- //#region node_modules/lucide-react/dist/esm/icons/hand.mjs
6531
- /**
6532
- * @license lucide-react v1.63.0 - ISC
6533
- *
6534
- * This source code is licensed under the ISC license.
6535
- * See the LICENSE file in the root directory of this source tree.
6536
- */
6537
- const __iconData$1 = {
6538
- name: "hand",
6539
- size: 24,
6540
- node: [
6541
- ["path", {
6542
- d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",
6543
- key: "1fvzgz"
6544
- }],
6545
- ["path", {
6546
- d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",
6547
- key: "1kc0my"
6548
- }],
6549
- ["path", {
6550
- d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",
6551
- key: "10h0bg"
6552
- }],
6553
- ["path", {
6554
- d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",
6555
- key: "1s1gnw"
6556
- }]
6557
- ]
6558
- };
6559
- __iconData$1.node;
6560
- const Hand = createLucideIcon(__iconData$1);
6561
- //#endregion
6562
- //#region node_modules/lucide-react/dist/esm/icons/hourglass.mjs
6563
- /**
6564
- * @license lucide-react v1.63.0 - ISC
6565
- *
6566
- * This source code is licensed under the ISC license.
6567
- * See the LICENSE file in the root directory of this source tree.
6568
- */
6569
- const __iconData = {
6570
- name: "hourglass",
6571
- size: 24,
6572
- node: [
6573
- ["path", {
6574
- d: "M5 22h14",
6575
- key: "ehvnwv"
6576
- }],
6577
- ["path", {
6578
- d: "M5 2h14",
6579
- key: "pdyrp9"
6580
- }],
6581
- ["path", {
6582
- d: "M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",
6583
- key: "1d314k"
6584
- }],
6585
- ["path", {
6586
- d: "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",
6587
- key: "1vvvr6"
6588
- }]
6589
- ]
6590
- };
6591
- __iconData.node;
6592
- const Hourglass = createLucideIcon(__iconData);
6593
- //#endregion
6594
- //#region node_modules/@tangle-network/ui/dist/run/status-meta.js
6595
- const META = {
6596
- running: {
6597
- label: "Running",
6598
- icon: CircleDot,
6599
- token: "--surface-info-text"
6600
- },
6601
- waiting: {
6602
- label: "Waiting",
6603
- icon: Hourglass,
6604
- token: "--surface-neutral-text"
6605
- },
6606
- "needs-you": {
6607
- label: "Needs you",
6608
- icon: Hand,
6609
- token: "--surface-warning-text"
6610
- },
6611
- done: {
6612
- label: "Done",
6613
- icon: CircleCheck,
6614
- token: "--surface-success-text"
6615
- },
6616
- failed: {
6617
- label: "Failed",
6618
- icon: CircleX,
6619
- token: "--surface-danger-text"
6620
- },
6621
- stopped: {
6622
- label: "Stopped",
6623
- icon: CircleStop,
6624
- token: "--surface-neutral-text"
6625
- },
6626
- idle: {
6627
- label: "Idle",
6628
- icon: CircleDashed,
6629
- token: "--surface-neutral-text"
6630
- },
6631
- unknown: {
6632
- label: "Unknown",
6633
- icon: CircleQuestionMark,
6634
- token: "--surface-neutral-text"
6635
- }
6636
- };
6637
- const ALIASES = {
6638
- active: "running",
6639
- in_progress: "running",
6640
- "in-progress": "running",
6641
- streaming: "running",
6642
- pending: "waiting",
6643
- queued: "waiting",
6644
- blocked: "waiting",
6645
- "attention-needed": "needs-you",
6646
- needs_you: "needs-you",
6647
- needs_input: "needs-you",
6648
- awaiting_input: "needs-you",
6649
- completed: "done",
6650
- complete: "done",
6651
- success: "done",
6652
- succeeded: "done",
6653
- shipped: "done",
6654
- error: "failed",
6655
- errored: "failed",
6656
- cancelled: "stopped",
6657
- canceled: "stopped",
6658
- aborted: "stopped"
6659
- };
6660
- /** Any status string as a `RunStatus`; a value nothing names reads as Unknown, never as a guess. */
6661
- function runStatus(status) {
6662
- const key = status.trim().toLowerCase();
6663
- if (Object.hasOwn(META, key)) return key;
6664
- return Object.hasOwn(ALIASES, key) ? ALIASES[key] : "unknown";
6665
- }
6666
- /** The label, glyph and colour token for a status, in every surface. */
6667
- function statusMeta(status) {
6668
- return META[runStatus(status)];
6669
- }
6670
- /**
6671
- * A status glyph on the icon grid, in its token colour and labelled with its
6672
- * word. Pass `aria-hidden` where the label is already printed beside it.
6673
- * Running breathes on `--motion-ambient`, the page's one loop period; the
6674
- * breathe is opacity only, so it is the essential motion reduced motion keeps.
6675
- */
6676
- function RunStatusIcon({ status, className, style, ...props }) {
6677
- const key = runStatus(status);
6678
- const { label, icon: Icon, token } = META[key];
6679
- const running = key === "running";
6680
- return /* @__PURE__ */ jsx(Icon, {
6681
- role: "img",
6682
- "aria-label": label,
6683
- size: 16,
6684
- strokeWidth: 1.75,
6685
- "data-run-status": key,
6686
- "data-motion": running ? "essential" : void 0,
6687
- className: cn("shrink-0", running && "animate-[tangle-breathe_var(--motion-ambient)_infinite]", className),
6688
- style: {
6689
- color: `var(${token})`,
6690
- ...style
6691
- },
6692
- ...props
6693
- });
6694
- }
6695
- //#endregion
6696
- //#region src/react/flow-waterfall-model.ts
6697
- const workKind = (mark) => mark.kind === "model" || mark.modelCall ? "model" : "tool";
6698
- const toolOf = (name) => name?.split(" · ")[0];
6699
- /** The CSS hue slot: 0 is the root agent's neutral, then five agent hues cycle. */
6700
- const toneKey = (tone) => tone > 0 && tone <= 5 ? tone : 0;
6701
- const spanFailed = (span) => span.status === "failed";
6702
- const spanRunning = (span) => span.status === "running";
6703
- const spanFact = (span, label) => new Map((span.facts ?? []).map((fact) => [fact.label.toLowerCase(), fact.value])).get(label.toLowerCase());
6704
- const ordered = (span) => Number.isFinite(span.startMs) && Number.isFinite(span.endMs) && span.endMs >= span.startMs;
6705
- /** 542ms, 6.9s, 23s, 1m 22s, 2h 05m: the precision a reader compares at each scale. */
6706
- function formatSpanDuration(ms) {
6707
- if (!Number.isFinite(ms) || ms < 0) return "—";
6708
- if (ms < 1e3) return `${Math.round(ms)}ms`;
6709
- if (ms < 1e4) return `${(ms / 1e3).toFixed(1)}s`;
6710
- if (ms < 6e4) return `${Math.round(ms / 1e3)}s`;
6711
- if (ms < 36e5) {
6712
- const m = Math.floor(ms / 6e4), s = Math.round(ms % 6e4 / 1e3);
6713
- return s === 60 ? `${m + 1}m` : s ? `${m}m ${s}s` : `${m}m`;
6714
- }
6715
- const h = Math.floor(ms / 36e5), m = Math.round(ms % 36e5 / 6e4);
6716
- return m === 60 ? `${h + 1}h` : `${h}h ${String(m).padStart(2, "0")}m`;
6717
- }
6718
- /** $0.12, $0.005, $12.40; never rounds a recorded nonzero cost to $0.00. */
6719
- function formatCost(usd) {
6720
- if (finiteNumber(usd) === void 0) return "—";
6721
- if (usd === 0) return "$0.00";
6722
- if (usd < .01) return `$${usd.toPrecision(1).replace(/0+$/, "")}`;
6723
- return `$${usd.toFixed(2)}`;
6724
- }
6725
- /** 9.8k, 754.4k, 1.2M with the exact count left to a title. */
6726
- function formatCount(n) {
6727
- if (reportedCount(n) === void 0) return "—";
6728
- if (n < 1e3) return String(n);
6729
- if (n < 1e6) return `${(n / 1e3).toFixed(1)}K`;
6730
- return `${(n / 1e6).toFixed(1)}M`;
6731
- }
6732
- /** Merge marks closer than `gapMs` so a dense row stays a readable strip of at most `cap` marks. Marks narrower
6733
- * than the gap merge across kinds and take the kind that covers more time; failures and retries stay distinct. */
6734
- function mergeSegments(marks, gapMs, cap = 240) {
6735
- marks.sort((a, b) => a.startMs - b.startMs);
6736
- let gap = gapMs;
6737
- for (let pass = 0; pass < 40; pass++, gap *= 2) {
6738
- const out = [];
6739
- const covered = /* @__PURE__ */ new Map();
6740
- for (const mark of marks) {
6741
- const last = out[out.length - 1];
6742
- const width = Math.min(mark.endMs, mark.startMs + gap * 4) - mark.startMs;
6743
- const distinct = (m) => m.retry || m.kind === "failed";
6744
- const small = width < gap || last !== void 0 && last.endMs - last.startMs < gap;
6745
- if (last && !distinct(last) && !distinct(mark) && last.tone === mark.tone && mark.startMs - last.endMs <= gap && (last.kind === mark.kind || small)) {
6746
- const share = covered.get(last) ?? {
6747
- model: last.kind === "model" ? last.endMs - last.startMs : 0,
6748
- tool: last.kind === "tool" ? last.endMs - last.startMs : 0
6749
- };
6750
- share[mark.kind === "model" ? "model" : "tool"] += width;
6751
- covered.set(last, share);
6752
- last.endMs = Math.max(last.endMs, mark.endMs);
6753
- last.count += mark.count;
6754
- if (last.tool !== mark.tool) last.tool = void 0;
6755
- if (mark.costUsd !== void 0) last.costUsd = (last.costUsd ?? 0) + mark.costUsd;
6756
- last.kind = share.model >= share.tool ? "model" : "tool";
6757
- } else out.push({ ...mark });
6758
- }
6759
- if (out.length <= cap) return out;
6760
- }
6761
- return marks;
6762
- }
6763
- /** Hierarchy only; presentation owns geometry.
6764
- * Orphaned parents become roots; cycles are broken without dropping any span. */
6765
- function flowWaterfallRows(trace, resolutionMs) {
6766
- const ids = /* @__PURE__ */ new Set();
6767
- const rows = [...trace.spans].map((recorded, i) => {
6768
- const state = runStatus(recorded.status ?? "unknown");
6769
- const outcome = {
6770
- label: statusMeta(state).label,
6771
- tone: state === "running" ? "live" : state === "done" ? "ok" : state === "needs-you" ? "warn" : state === "failed" ? "failed" : "neutral",
6772
- ...state === "unknown" ? { ring: true } : {}
6773
- };
6774
- const span = {
6775
- ...recorded,
6776
- outcome: recorded.outcome ?? outcome,
6777
- detail: spanFact(recorded, recorded.kind === "tool" ? "Provider" : "Model") ?? recorded.detail
6778
- };
6779
- return {
6780
- span,
6781
- key: span.id ?? `span-${i}`
6782
- };
6783
- }).sort((a, b) => a.span.startMs - b.span.startMs).map(({ span, key }, index) => {
6784
- let id = key;
6785
- let suffix = index;
6786
- while (ids.has(id)) id = `${key}:${suffix++}`;
6787
- ids.add(id);
6788
- return {
6789
- id,
6790
- parentId: span.parentId,
6791
- name: span.name,
6792
- kind: span.kind,
6793
- durationLabel: ordered(span) ? `${formatSpanDuration(span.endMs - span.startMs)}${span.approx ? "~" : ""}` : "—",
6794
- approx: span.approx === true,
6795
- ok: !spanFailed(span),
6796
- depth: 0,
6797
- hasChildren: false,
6798
- span,
6799
- tone: -1,
6800
- descendants: 0,
6801
- segments: [],
6802
- own: [],
6803
- retry: span.retryOf !== void 0,
6804
- hasAgents: false,
6805
- ...span.costBound === "lower" || span.costBound === void 0 && trace.costBound === "lower" ? { costFloor: true } : {}
6806
- };
6807
- });
6808
- const byId = new Map(rows.map((row) => [row.id, row]));
6809
- const children = /* @__PURE__ */ new Map();
6810
- for (const row of rows) {
6811
- const seen = /* @__PURE__ */ new Set([row.id]);
6812
- let parent = row.parentId;
6813
- while (parent && byId.has(parent)) {
6814
- if (seen.has(parent)) {
6815
- row.parentId = void 0;
6816
- break;
6817
- }
6818
- seen.add(parent);
6819
- parent = byId.get(parent)?.parentId;
6820
- }
6821
- if (row.parentId && !byId.has(row.parentId)) row.parentId = void 0;
6822
- if (row.parentId) {
6823
- const siblings = children.get(row.parentId) ?? [];
6824
- siblings.push(row);
6825
- children.set(row.parentId, siblings);
6826
- }
6827
- }
6828
- const total = Math.max(1, Number.isFinite(trace.totalMs) ? trace.totalMs : 1);
6829
- const gap = resolutionMs ?? total / 900;
6830
- const ordered_ = [];
6831
- let agents = 0;
6832
- const visit = (row, depth, tone) => {
6833
- row.depth = depth;
6834
- row.tone = row.kind === "pipeline" ? agents++ : tone;
6835
- const kids = children.get(row.id) ?? [];
6836
- row.hasChildren = kids.length > 0;
6837
- ordered_.push(row);
6838
- const marks = [];
6839
- const own = row.span.promptTokens !== void 0 || row.span.completionTokens !== void 0 || row.span.cachedTokens !== void 0;
6840
- let cost = row.span.costUsd ?? 0;
6841
- let costKnown = row.span.kind !== "model" || row.span.costUsd !== void 0;
6842
- for (const child of kids) {
6843
- for (const mark of visit(child, depth + 1, row.tone)) marks.push(mark);
6844
- row.descendants += 1 + child.descendants;
6845
- if (child.kind === "pipeline") row.hasAgents = true;
6846
- const childCost = child.hasChildren ? child.rollupCostUsd : child.span.costUsd;
6847
- if (childCost === void 0) {
6848
- if (child.kind === "model" || child.hasChildren) costKnown = false;
6849
- } else cost += childCost;
6850
- if (child.kind !== "pipeline" && child.kind !== "waiting" && ordered(child.span)) row.own.push(segmentOf(child));
6851
- }
6852
- Object.assign(row, stepStats(kids));
6853
- const tokens = own ? {
6854
- prompt: reportedCount(row.span.promptTokens),
6855
- completion: reportedCount(row.span.completionTokens),
6856
- cached: reportedCount(row.span.cachedTokens)
6857
- } : sumTokens(kids);
6858
- if (tokens) row.tokens = tokens;
6859
- if (row.hasChildren && costKnown) row.rollupCostUsd = cost;
6860
- if (row.hasChildren) {
6861
- row.segments = mergeSegments(marks.map((mark) => ({ ...mark })), gap);
6862
- row.own = mergeSegments(row.own, gap);
6863
- }
6864
- if (row.kind === "pipeline" || row.kind === "waiting" || !ordered(row.span)) return marks;
6865
- marks.push(segmentOf(row));
6866
- return marks;
6867
- };
6868
- for (const row of rows) if (!row.parentId) visit(row, 0, -1);
6869
- return ordered_;
6870
- }
6871
- /** What a row's direct steps add up to; nothing when it has none. */
6872
- function stepStats(steps) {
6873
- let counts;
6874
- const modelMs = [];
6875
- for (const step of steps) {
6876
- if (step.kind === "pipeline" || step.kind === "waiting" || !ordered(step.span)) continue;
6877
- counts ??= {
6878
- model: 0,
6879
- tool: 0,
6880
- failed: 0,
6881
- retried: 0,
6882
- tools: {}
6883
- };
6884
- if (!step.ok) counts.failed++;
6885
- if (step.retry) counts.retried++;
6886
- if (step.kind === "model") {
6887
- counts.model++;
6888
- if (!spanRunning(step.span)) modelMs.push(step.span.endMs - step.span.startMs);
6889
- } else {
6890
- counts.tool++;
6891
- const tool = toolOf(step.name) || step.kind;
6892
- counts.tools[tool] = (counts.tools[tool] ?? 0) + 1;
6893
- }
6894
- }
6895
- return counts ? {
6896
- counts,
6897
- modelMs: modelMs.sort((a, b) => a - b)
6898
- } : {};
6899
- }
6900
- /** Several rows' steps as one: a family's members or a folded run. */
6901
- function mergeStats(rows) {
6902
- let counts;
6903
- for (const row of rows) {
6904
- if (!row.counts) continue;
6905
- counts ??= {
6906
- model: 0,
6907
- tool: 0,
6908
- failed: 0,
6909
- retried: 0,
6910
- tools: {}
6911
- };
6912
- counts.model += row.counts.model;
6913
- counts.tool += row.counts.tool;
6914
- counts.failed += row.counts.failed;
6915
- counts.retried += row.counts.retried;
6916
- for (const [tool, n] of Object.entries(row.counts.tools)) counts.tools[tool] = (counts.tools[tool] ?? 0) + n;
6917
- }
6918
- const tokens = sumTokens(rows);
6919
- return {
6920
- ...counts ? {
6921
- counts,
6922
- modelMs: rows.flatMap((row) => row.modelMs ?? []).sort((a, b) => a - b)
6923
- } : {},
6924
- ...tokens ? { tokens } : {}
6925
- };
6926
- }
6927
- function sumTokens(rows) {
6928
- let out;
6929
- const sources = rows.filter((row) => row.kind === "model" || row.tokens !== void 0);
6930
- for (const key of [
6931
- "prompt",
6932
- "completion",
6933
- "cached"
6934
- ]) {
6935
- const total = sumReportedCounts(sources.map((row) => row.tokens?.[key]));
6936
- if (total !== void 0) (out ??= {})[key] = total;
6937
- }
6938
- return out;
6939
- }
6940
- function segmentOf(row) {
6941
- return {
6942
- startMs: row.span.startMs,
6943
- endMs: spanRunning(row.span) ? Number.POSITIVE_INFINITY : row.span.endMs,
6944
- kind: !row.ok ? "failed" : row.kind === "model" ? "model" : "tool",
6945
- tone: row.tone,
6946
- id: row.id,
6947
- count: 1,
6948
- retry: row.retry,
6949
- name: row.name,
6950
- tool: toolOf(row.name),
6951
- ...row.span.costUsd === void 0 ? {} : { costUsd: row.span.costUsd },
6952
- ...!row.ok && row.kind === "model" ? { modelCall: true } : {}
6953
- };
6954
- }
6955
- /** The rows a search term matches by themselves, before ancestor context is added. */
6956
- function searchMatchIds(rows, query, matchSpan) {
6957
- const term = query.trim();
6958
- const lower = term.toLowerCase();
6959
- return new Set(rows.filter((row) => matchSpan ? matchSpan(row.span, term) : `${row.name} ${row.span.detail ?? ""} ${row.kind} ${row.ok ? "" : "failed"} ${row.span.status ?? ""}`.toLowerCase().includes(lower)).map((row) => row.id));
6960
- }
6961
- /** Search keeps ancestor context and deliberately reveals matches inside collapsed branches. */
6962
- function visibleFlowWaterfallRows(rows, query, collapsed, matchSpan) {
6963
- const byId = new Map(rows.map((row) => [row.id, row]));
6964
- if (query.trim()) {
6965
- const matching = /* @__PURE__ */ new Set();
6966
- for (const id of searchMatchIds(rows, query, matchSpan)) {
6967
- let cursor = byId.get(id);
6968
- while (cursor && !matching.has(cursor.id)) {
6969
- matching.add(cursor.id);
6970
- cursor = cursor.parentId ? byId.get(cursor.parentId) : void 0;
6971
- }
6972
- }
6973
- return rows.filter((row) => matching.has(row.id));
6974
- }
6975
- const hidden = /* @__PURE__ */ new Set();
6976
- return rows.filter((row) => {
6977
- const isHidden = row.parentId !== void 0 && (collapsed.has(row.parentId) || hidden.has(row.parentId));
6978
- if (isHidden) hidden.add(row.id);
6979
- return !isHidden;
6980
- });
6981
- }
6982
- /** The leaf a reader should look at first: the longest completed or running non-agent step. */
6983
- function slowestRow(rows, clockMs) {
6984
- let best;
6985
- let bestMs = -1;
6986
- for (const row of rows) {
6987
- if (row.hasChildren || row.kind === "pipeline" || row.kind === "waiting" || row.durationLabel === "—") continue;
6988
- if (row.span.startMs > clockMs) continue;
6989
- const ms = (spanRunning(row.span) ? Math.max(row.span.endMs, clockMs) : Math.min(row.span.endMs, clockMs)) - row.span.startMs;
6990
- if (ms > bestMs) {
6991
- best = row;
6992
- bestMs = ms;
6993
- }
6994
- }
6995
- return best;
6996
- }
6997
- /** The chain of steps that gates the trace's end: from each root, descend into the latest-ending child until a leaf; the root whose
6998
- * chain ends last wins. Cutting latency anywhere else leaves the trace's end unchanged. */
6999
- function criticalPathIds(rows) {
7000
- const children = /* @__PURE__ */ new Map();
7001
- for (const row of rows) {
7002
- if (!row.parentId) continue;
7003
- const siblings = children.get(row.parentId);
7004
- if (siblings) siblings.push(row);
7005
- else children.set(row.parentId, [row]);
7006
- }
7007
- let best;
7008
- for (const root of rows) {
7009
- if (root.parentId) continue;
7010
- const chain = [];
7011
- let end = root.span.endMs;
7012
- for (let cursor = root; cursor;) {
7013
- chain.push(cursor.id);
7014
- end = Math.max(end, cursor.span.endMs);
7015
- cursor = children.get(cursor.id)?.reduce((latest, child) => !latest || child.span.endMs > latest.span.endMs ? child : latest, void 0);
7016
- }
7017
- if (!best || end > best.end) best = {
7018
- end,
7019
- chain
7020
- };
7021
- }
7022
- return new Set(best?.chain);
7023
- }
7024
- /** The agents a reader should look at first: the longest one by the clock, and the costliest when two or more are priced. */
7025
- function agentCallouts(agents, clockMs) {
7026
- let slowest, slowestMs = -1, costliest, top = -1, priced = 0, timed = 0;
7027
- for (const row of agents) {
7028
- if (row.durationLabel === "—" || row.span.startMs > clockMs || row.kind !== "pipeline" || row.hasAgents || row.id.startsWith("family:") || row.id.startsWith("run:")) continue;
7029
- const ms = (spanRunning(row.span) ? Math.max(row.span.endMs, clockMs) : Math.min(row.span.endMs, clockMs)) - row.span.startMs;
7030
- if (spanFact(row.span, "Ran for") === void 0) {
7031
- timed += 1;
7032
- if (ms > slowestMs) {
7033
- slowest = row;
7034
- slowestMs = ms;
7035
- }
7036
- }
7037
- const cost = spanFact(row.span, "Cost") === void 0 ? row.span.costUsd ?? row.rollupCostUsd : void 0;
7038
- if (typeof cost !== "number" || !Number.isFinite(cost)) continue;
7039
- priced += 1;
7040
- if (cost > top) {
7041
- costliest = row;
7042
- top = cost;
7043
- }
7044
- }
7045
- return {
7046
- slowestId: timed > 1 ? slowest?.id : void 0,
7047
- costliestId: priced > 1 && top > 0 ? costliest?.id : void 0
7048
- };
7049
- }
7050
- /** Busy time per agent row: the union of its own work. Their sum over wall time is the parallel speedup. */
7051
- function busyMs(row, clockMs) {
7052
- let total = 0, end = -Infinity;
7053
- for (const mark of row.own) {
7054
- const a = Math.max(mark.startMs, end), b = Math.min(mark.endMs, clockMs);
7055
- if (b > a) total += b - a;
7056
- end = Math.max(end, Math.min(mark.endMs, clockMs));
7057
- }
7058
- return total;
7059
- }
7060
- /** Complete per-span usage drives playback; authoritative call/error counts remain trace totals. */
7061
- function totalsAt(trace, clockMs) {
7062
- let cost = 0;
7063
- let costs = false, counted = false;
7064
- const tokens = [];
7065
- for (const span of trace.spans) {
7066
- if (span.startMs > clockMs) continue;
7067
- const aggregate = span.meta?.["cli_bridge.usage.scope"] === "sum_of_children";
7068
- if (span.endMs > clockMs) continue;
7069
- if (span.costUsd !== void 0) {
7070
- cost += span.costUsd;
7071
- costs = true;
7072
- }
7073
- if (!aggregate && (span.kind === "model" || span.promptTokens !== void 0 || span.completionTokens !== void 0)) {
7074
- tokens.push(sumReportedCounts([span.promptTokens, span.completionTokens]));
7075
- counted ||= span.promptTokens !== void 0 || span.completionTokens !== void 0;
7076
- }
7077
- }
7078
- return {
7079
- costUsd: trace.costUsd === void 0 ? void 0 : costs ? cost : trace.costUsd,
7080
- tokens: counted ? sumReportedCounts(tokens) : sumReportedCounts([trace.promptTokens, trace.completionTokens]),
7081
- modelCalls: reportedCount(trace.modelCalls),
7082
- toolCalls: reportedCount(trace.toolCalls),
7083
- errors: reportedCount(trace.errors)
7084
- };
7085
- }
7086
- /** The cost a reader can rely on: a lower bound when some calls are unpriced, a dash only when nothing is priced. */
7087
- function costSummary(costUsd, trace) {
7088
- costUsd = finiteNumber(costUsd);
7089
- const billedUsd = finiteNumber(trace.billedUsd);
7090
- const list = trace.costBasis === "list";
7091
- const label = list ? "Cost · list price" : "Cost";
7092
- if (costUsd === void 0) return billedUsd !== void 0 ? {
7093
- value: `${formatCost(billedUsd)} billed`,
7094
- title: "No list price for these calls; billed is the seat charge",
7095
- label
7096
- } : {
7097
- value: "—",
7098
- title: "No cost source: the harness recorded no cost and no price catalog was given",
7099
- label
7100
- };
7101
- const coverage = trace.costCoverage;
7102
- const partial = coverage !== void 0 && coverage.priced < coverage.total;
7103
- const upper = !partial && trace.costBound === "upper";
7104
- return {
7105
- value: `${partial || trace.costBound === "lower" ? "≥" : upper ? "≤" : list ? "≈" : ""}${formatCost(costUsd)}${billedUsd !== void 0 ? ` · ${formatCost(billedUsd)} billed` : ""}`,
7106
- title: [
7107
- partial ? `${coverage.priced} of ${coverage.total} model calls priced` : coverage ? `all ${coverage.total} model calls priced` : "",
7108
- list ? "at the model catalog list price; not a bill" : "",
7109
- upper ? "cached input is not split out, so it is priced as fresh input: at most this" : "",
7110
- trace.costBound === "lower" ? "a floor: the producer reports at least this" : "",
7111
- billedUsd !== void 0 ? `billed ${formatCost(billedUsd)} (the seat charge)` : ""
7112
- ].filter(Boolean).join("; "),
7113
- label
7114
- };
7115
- }
7116
- /** The role an agent plays: its name without a trailing counter ("memscale-engineer-3", "Subagent 2"). */
7117
- const roleOf = (name) => name.replace(/[-\s]\d+$/, "");
7118
- /**
7119
- * Agents sharing a role fold into one family row until opened: a 17-agent run reads as its few roles, and the bar of a
7120
- * family carries every member's work in each member's hue. Members follow their opened family, marked with `family`.
7121
- */
7122
- /** The families open by default: all of them when every agent fits in `rows`, so a reader sees each agent and its steps (the
7123
- * blind reviews preferred agent rows to `role ×N`); none on bigger runs. `flipped` holds the families the reader toggled. */
7124
- function defaultOpenFamilies(agents, rows, flipped) {
7125
- const unfold = agents.length <= rows;
7126
- const ids = agentFamilies(agents, /* @__PURE__ */ new Set()).filter((row) => row.id.startsWith("family:")).map((row) => row.id);
7127
- return new Set(ids.filter((id) => unfold !== flipped.has(id)));
7128
- }
7129
- function agentFamilies(agents, open) {
7130
- const groups = /* @__PURE__ */ new Map();
7131
- for (const row of agents) {
7132
- const key = row.parentId === void 0 ? `root:${row.id}` : roleOf(row.name);
7133
- groups.set(key, [...groups.get(key) ?? [], row]);
7134
- }
7135
- const out = [];
7136
- let next = 0;
7137
- const hue = (row) => row.tone <= 0 || ++next > 5 ? 0 : 1 + [...roleOf(row.name)].reduce((hash, c) => hash * 31 + c.charCodeAt(0) >>> 0, 0) % 5;
7138
- for (const [role, members] of groups) {
7139
- if (members.length < 2) {
7140
- const row = members[0], tone = hue(row);
7141
- out.push({
7142
- ...row,
7143
- tone,
7144
- own: row.own.map((mark) => ({
7145
- ...mark,
7146
- tone
7147
- }))
7148
- });
7149
- continue;
7150
- }
7151
- const tone = hue(members[0]);
7152
- const id = `family:${role}`;
7153
- const startMs = Math.min(...members.map((row) => row.span.startMs));
7154
- const endMs = Math.max(...members.map((row) => row.span.endMs));
7155
- const running = members.some((row) => spanRunning(row.span));
7156
- const known = members.map((row) => row.span.costUsd ?? (spanFact(row.span, "Cost") === void 0 ? row.rollupCostUsd : void 0)).filter((cost) => cost !== void 0 && Number.isFinite(cost));
7157
- const failed = members.filter((row) => row.span.outcome ? row.span.outcome.tone === "failed" : !row.ok).length;
7158
- const outcome = members.every((row) => row.span.outcome && row.span.outcome.tone === members[0].span.outcome?.tone && !row.span.outcome.ring === !members[0].span.outcome?.ring) ? members[0].span.outcome : void 0;
7159
- const facts = members.flatMap((row) => (row.span.facts ?? []).filter(({ label }) => [
7160
- "model",
7161
- "model calls",
7162
- "tool calls",
7163
- "model latency",
7164
- "failures",
7165
- "retries"
7166
- ].includes(label.toLowerCase()) || label.toLowerCase() === "tokens" && ![
7167
- row.span.promptTokens,
7168
- row.span.completionTokens,
7169
- row.span.cachedTokens
7170
- ].some(Number.isFinite) || label.toLowerCase() === "cost" && known.length === 0)).map(({ label }) => ({
7171
- label,
7172
- value: "Not recorded"
7173
- }));
7174
- out.push({
7175
- costFloor: known.length < members.length || members.some((row) => row.costFloor),
7176
- id,
7177
- parentId: members[0].parentId,
7178
- name: role,
7179
- kind: "pipeline",
7180
- durationLabel: formatSpanDuration(endMs - startMs),
7181
- approx: members.some((row) => row.approx),
7182
- ok: failed === 0,
7183
- depth: 0,
7184
- hasChildren: true,
7185
- tone,
7186
- outcomes: [...new Map(members.map((row) => {
7187
- const state = row.span.outcome ?? {
7188
- tone: "neutral",
7189
- label: "Unknown",
7190
- ring: true
7191
- };
7192
- return [`${state.label}:${state.tone}:${state.ring}`, state];
7193
- })).values()],
7194
- descendants: members.length,
7195
- segments: [],
7196
- retry: false,
7197
- hasAgents: false,
7198
- own: members.flatMap((row, i) => row.own.map((mark) => ({
7199
- ...mark,
7200
- tone,
7201
- alt: i % 2 === 1
7202
- }))).sort((a, b) => a.startMs - b.startMs),
7203
- ...known.length ? { rollupCostUsd: known.reduce((sum, cost) => sum + cost, 0) } : {},
7204
- ...mergeStats(members),
7205
- span: {
7206
- id,
7207
- kind: "pipeline",
7208
- name: role,
7209
- startMs,
7210
- endMs,
7211
- activityAt: members.flatMap((row) => row.span.activityAt ?? row.own.flatMap((mark) => [mark.startMs, mark.endMs])),
7212
- status: running ? "running" : failed ? "failed" : "done",
7213
- ...outcome ? { outcome } : {},
7214
- detail: members.every((row) => row.span.detail === members[0].span.detail) ? members[0].span.detail : void 0,
7215
- facts,
7216
- meta: {
7217
- failedAgents: failed,
7218
- costPartial: known.length < members.length,
7219
- members: members.map((row) => row.id)
7220
- }
7221
- }
7222
- });
7223
- if (open.has(id)) out.push(...members.map((row, i) => ({
7224
- ...row,
7225
- family: id,
7226
- inset: 1,
7227
- tone,
7228
- own: row.own.map((mark) => ({
7229
- ...mark,
7230
- tone,
7231
- alt: i % 2 === 1
7232
- }))
7233
- })));
7234
- }
7235
- return out;
7236
- }
7237
- /** The second line of an agent row in parts: how it ended and how much it did (failed, 3 model calls, 412 tool calls; 6 agents, 4 failed).
7238
- * The row shows the parts in order and drops the last ones whole when the line is full, never half a word. */
7239
- function agentSummary(row) {
7240
- if (row.id.startsWith("family:")) {
7241
- const failed = Number(row.span.meta?.failedAgents ?? 0);
7242
- return [`${row.descendants} agents`, ...failed ? [`${failed} failed`] : []];
7243
- }
7244
- if (row.id.startsWith("run:")) {
7245
- const failed = row.own.filter((mark) => mark.kind === "failed").length;
7246
- return [failed ? `${failed} failed` : "all done"];
7247
- }
7248
- const facts = new Map((row.span.facts ?? []).map(({ label, value }) => [label.toLowerCase(), value]));
7249
- const calls = [[
7250
- "Model calls",
7251
- row.counts?.model,
7252
- "model"
7253
- ], [
7254
- "Tool calls",
7255
- row.counts?.tool,
7256
- "tool"
7257
- ]].map(([label, count, kind]) => facts.has(label.toLowerCase()) ? `${label}: ${facts.get(label.toLowerCase())}` : count ? `${count} ${kind} ${count === 1 ? "call" : "calls"}` : "");
7258
- return [row.span.outcome?.label ?? (spanRunning(row.span) ? "running" : !row.ok ? "failed" : row.kind === "pipeline" ? "" : "done"), ...calls].filter(Boolean);
7259
- }
7260
- /**
7261
- * The agent view's rows: families folded until opened, and an opened agent's own steps (its turns and tool calls, not its
7262
- * child agents) nested beneath it with their icons, durations and costs, as a reader drills from the run into one agent.
7263
- */
7264
- function agentViewRows(agents, rows, openFamilies, openSteps) {
7265
- const base = agentFamilies(agents, openFamilies);
7266
- if (openSteps.size === 0) return base;
7267
- const steps = /* @__PURE__ */ new Map();
7268
- for (const row of rows) {
7269
- if (row.parentId === void 0 || !openSteps.has(row.parentId) || row.kind === "pipeline") continue;
7270
- steps.set(row.parentId, [...steps.get(row.parentId) ?? [], row]);
7271
- }
7272
- return base.flatMap((row) => openSteps.has(row.id) ? [row, ...stepRuns(steps.get(row.id) ?? []).map((step) => ({
7273
- ...step,
7274
- stepOf: row.id,
7275
- inset: (row.inset ?? 0) + 1,
7276
- tone: row.tone,
7277
- own: step.own.map((mark) => ({
7278
- ...mark,
7279
- tone: row.tone
7280
- }))
7281
- }))] : [row]);
7282
- }
7283
- /** Three or more consecutive steps of one kind and name read as one row ("15 model calls · 4h"), each a mark in its bar. */
7284
- function stepRuns(steps) {
7285
- const out = [];
7286
- for (let i = 0; i < steps.length;) {
7287
- let j = i;
7288
- while (j < steps.length && steps[j].kind === steps[i].kind && steps[j].name === steps[i].name) j++;
7289
- const run = steps.slice(i, j);
7290
- if (run.length < 3) {
7291
- out.push(...run);
7292
- i = j;
7293
- continue;
7294
- }
7295
- const first = run[0];
7296
- const startMs = Math.min(...run.map((step) => step.span.startMs));
7297
- const endMs = Math.max(...run.map((step) => step.span.endMs));
7298
- const failed = run.filter((step) => !step.ok).length;
7299
- const costs = run.map((step) => step.span.costUsd ?? step.rollupCostUsd).filter((cost) => cost !== void 0);
7300
- const noun = first.kind === "model" ? "model calls" : first.kind === "tool" ? `${first.name} calls` : `${first.name} steps`;
7301
- out.push({
7302
- ...first,
7303
- id: `run:${first.id}`,
7304
- name: `${run.length} ${noun}`,
7305
- durationLabel: formatSpanDuration(endMs - startMs),
7306
- ok: failed === 0,
7307
- hasChildren: false,
7308
- descendants: 0,
7309
- segments: [],
7310
- ...stepStats(run),
7311
- tokens: sumTokens(run),
7312
- own: run.map((step) => ({
7313
- ...segmentOf(step),
7314
- tone: first.tone
7315
- })),
7316
- ...costs.length ? { rollupCostUsd: costs.reduce((sum, cost) => sum + cost, 0) } : {},
7317
- span: {
7318
- ...first.span,
7319
- id: `run:${first.id}`,
7320
- name: `${run.length} ${noun}`,
7321
- startMs,
7322
- endMs,
7323
- status: failed ? "failed" : first.span.status,
7324
- costUsd: void 0
7325
- }
7326
- });
7327
- i = j;
7328
- }
7329
- return out;
7330
- }
7331
- /** A row as the view draws it: its drawn copy, or for a member of a folded family, itself in the family's hue. */
7332
- function drawnRow(row, visible) {
7333
- const drawn = visible.find((item) => item.id === row.id);
7334
- if (drawn) return drawn;
7335
- const family = visible.find((item) => (item.span.meta?.members)?.includes(row.id));
7336
- return family ? {
7337
- ...row,
7338
- tone: family.tone
7339
- } : row;
7340
- }
7341
- /** A row's cost as printed: "≥" when it is a floor. */
7342
- const rowCostText = (row, cost) => spanFact(row.span, "Cost") ?? (cost === void 0 ? "" : `${row.costFloor ? "≥" : ""}${formatCost(cost)}`);
7343
- /** Quiet is elapsed silence beyond both five minutes and three median event gaps. */
7344
- function quietActivity(row, now) {
7345
- const times = [...row.span.activityAt ?? row.own.flatMap((mark) => [mark.startMs, mark.endMs])].filter(Number.isFinite).sort((a, b) => a - b);
7346
- const last = times.at(-1) ?? NaN;
7347
- const gaps = times.slice(1).map((at, i) => at - times[i]).sort((a, b) => a - b);
7348
- const middle = Math.floor(gaps.length / 2);
7349
- const observedMedian = gaps.length ? gaps.length % 2 ? gaps[middle] : (gaps[middle - 1] + gaps[middle]) / 2 : 0;
7350
- const supplied = row.span.medianEventGapMs;
7351
- const median = typeof supplied === "number" && Number.isFinite(supplied) && supplied >= 0 ? supplied : observedMedian;
7352
- const quietMs = Number.isFinite(last) ? Math.max(0, now - last) : 0;
7353
- return {
7354
- last,
7355
- quietMs,
7356
- quiet: spanRunning(row.span) && Number.isFinite(last) && quietMs > Math.max(3e5, 3 * median)
7357
- };
7358
- }
7359
- //#endregion
7360
2626
  //#region src/react/flow-waterfall-icons.tsx
7361
2627
  const svg = (children, label) => /* @__PURE__ */ jsx("svg", {
7362
2628
  viewBox: "0 0 16 16",