@powerhousedao/connect 1.0.28-dev.0 → 1.0.28-staging.0

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.
Files changed (37) hide show
  1. package/dist/assets/{app-BDw8v6b_.css → app-Di6g_N6F.css} +97 -79
  2. package/dist/assets/{app-DHw_h7gS.js → app-fD71bJN5.js} +4821 -4136
  3. package/dist/assets/app-fD71bJN5.js.map +1 -0
  4. package/dist/assets/{app-loader-DwKN8KIC.js → app-loader-BgVDAZzK.js} +831 -440
  5. package/dist/assets/app-loader-BgVDAZzK.js.map +1 -0
  6. package/dist/assets/{app-loader-CDW9U8zV.css → app-loader-b43YtazY.css} +22 -15
  7. package/dist/assets/{browser-CEIioANE.js → browser-BfKVilMY.js} +35 -45
  8. package/dist/assets/browser-BfKVilMY.js.map +1 -0
  9. package/dist/assets/{ccip-Cgv37f4v.js → ccip-DqNp5gVF.js} +4 -4
  10. package/dist/assets/ccip-DqNp5gVF.js.map +1 -0
  11. package/dist/assets/{content-Bnjc15M3.js → content-BnihK9ko.js} +69 -115
  12. package/dist/assets/content-BnihK9ko.js.map +1 -0
  13. package/dist/assets/{index-D9_MTgI5.js → index-Bfinzr42.js} +4 -4
  14. package/dist/assets/{index-D9_MTgI5.js.map → index-Bfinzr42.js.map} +1 -1
  15. package/dist/assets/{index-DPsLHOm9.js → index-Cteg8MEt.js} +4 -4
  16. package/dist/assets/index-Cteg8MEt.js.map +1 -0
  17. package/dist/assets/{index-BgGUWENy.js → index-D8ml-kF6.js} +3463 -61
  18. package/dist/assets/index-D8ml-kF6.js.map +1 -0
  19. package/dist/assets/{index-CrWUHus9.js → index-W1LZgOxg.js} +5 -5
  20. package/dist/assets/{index-CrWUHus9.js.map → index-W1LZgOxg.js.map} +1 -1
  21. package/dist/assets/{main.DzLLcDg5.js → main.CU15VE0F.js} +2 -2
  22. package/dist/assets/{main.DzLLcDg5.js.map → main.CU15VE0F.js.map} +1 -1
  23. package/dist/assets/{reactor-analytics-ChaldiVR.js → reactor-analytics-C1DnbKP-.js} +6 -6
  24. package/dist/assets/{reactor-analytics-ChaldiVR.js.map → reactor-analytics-C1DnbKP-.js.map} +1 -1
  25. package/dist/assets/{router-COn-IaaE.js → router-D6f-fo9X.js} +8 -8
  26. package/dist/assets/{router-COn-IaaE.js.map → router-D6f-fo9X.js.map} +1 -1
  27. package/dist/assets/{style-C0GVbPTL.css → style-CK8AY-7U.css} +12 -16
  28. package/dist/index.html +1 -1
  29. package/dist/vite-envs.sh +1 -1
  30. package/package.json +9 -9
  31. package/dist/assets/app-DHw_h7gS.js.map +0 -1
  32. package/dist/assets/app-loader-DwKN8KIC.js.map +0 -1
  33. package/dist/assets/browser-CEIioANE.js.map +0 -1
  34. package/dist/assets/ccip-Cgv37f4v.js.map +0 -1
  35. package/dist/assets/content-Bnjc15M3.js.map +0 -1
  36. package/dist/assets/index-BgGUWENy.js.map +0 -1
  37. package/dist/assets/index-DPsLHOm9.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  var _a2, _b;
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { t as twMerge, aa as clsx, ab as get, ac as set, ad as appendErrors, ae as useFormContext, af as Primitive, ag as cva, ah as FormProvider, ai as Controller, aj as Slot, ak as useForm, al as Root2, am as List, an as Trigger, ao as Content, ap as setModelName, aq as setModelId, ar as setModelDescription, as as setModelExtension, at as setAuthorName, au as setAuthorWebsite, av as setStateSchema, aw as setInitialState, ax as addModule, ay as setModuleName, az as deleteModule, aA as addOperation, aB as setOperationName, aC as setOperationSchema, aD as setOperationDescription, aE as deleteOperation, aF as addOperationError, aG as deleteOperationError, aH as setOperationErrorName } from "./app-DHw_h7gS.js";
4
- import { aP as inspect$1, aQ as GraphQLError$1, aR as getNamedType, aS as invariant$2, aT as isInputObjectType, aU as isScalarType, aV as isObjectType, aW as isInterfaceType, aX as isUnionType, aY as isEnumType, aZ as print, a_ as isPrintableAsBlockString, a$ as Kind, b0 as astFromValue$1, b1 as DEFAULT_DEPRECATION_REASON, b2 as isSpecifiedDirective, b3 as isSpecifiedScalarType, b4 as isIntrospectionType, a5 as objectType, b5 as GraphQLScalarType, b6 as numberType, a7 as stringType, b7 as lazyType, b8 as unionType, b9 as booleanType, ba as nullType, bb as arrayType, a6 as recordType, bc as specifiedRules$1, bd as GraphQLID, be as GraphQLBoolean, bf as GraphQLString, bg as GraphQLFloat, bh as GraphQLInt, bi as GraphQLDirective, bj as GraphQLObjectType, bk as GraphQLInterfaceType, bl as GraphQLUnionType, bm as GraphQLInputObjectType, bn as GraphQLEnumType, bo as isListType, bp as GraphQLList, bq as isNonNullType, br as GraphQLNonNull, bs as isNamedType, bt as getNullableType, bu as isLeafType, bv as GraphQLSchema, bw as buildSchema, bx as buildASTSchema, by as parse, bz as validate$2, Z as pascalCase, bA as visit, a0 as getDefaultExportFromCjs, bB as snakeCase, bC as constantCase, bD as literalType, bE as isAbstractType, bF as BREAK, bG as SchemaMetaFieldDef, bH as TypeMetaFieldDef, bI as TypeNameMetaFieldDef, bJ as isCompositeType, bK as isOutputType, bL as isInputType, bM as assertAbstractType, bN as doTypesOverlap, bO as DirectiveLocation, bP as NoUnusedFragmentsRule$1, bQ as ExecutableDefinitionsRule$1, ah as process, bR as validateSchema, bS as sentenceCase, am as generateId } from "./app-loader-DwKN8KIC.js";
3
+ import { aa as clsx, ab as get, ac as set, ad as appendErrors, ae as useFormContext, af as Primitive, ag as cva, ah as FormProvider, ai as Controller, aj as Slot, ak as useForm, al as createContextScope, am as useComposedRefs, an as createSlot, ao as useId$1, ap as composeEventHandlers, aq as useControllableState, ar as useCallbackRef, as as Presence, at as setModelName, au as setModelId, av as setModelDescription, aw as setModelExtension, ax as setAuthorName, ay as setAuthorWebsite, az as setStateSchema, aA as setInitialState, aB as addModule, aC as setModuleName, aD as deleteModule, aE as addOperation, aF as setOperationName, aG as setOperationSchema, aH as setOperationDescription, aI as deleteOperation, aJ as addOperationError, aK as deleteOperationError, aL as setOperationErrorName } from "./app-fD71bJN5.js";
4
+ import { aP as inspect$1, aQ as GraphQLError$1, aR as getNamedType, aS as invariant$2, aT as isInputObjectType, aU as isScalarType, aV as isObjectType, aW as isInterfaceType, aX as isUnionType, aY as isEnumType, aZ as print, a_ as isPrintableAsBlockString, a$ as Kind, b0 as astFromValue$1, b1 as DEFAULT_DEPRECATION_REASON, b2 as isSpecifiedDirective, b3 as isSpecifiedScalarType, b4 as isIntrospectionType, b5 as z, b6 as GraphQLScalarType, b7 as specifiedRules$1, b8 as GraphQLID, b9 as GraphQLBoolean, ba as GraphQLString, bb as GraphQLFloat, bc as GraphQLInt, bd as GraphQLDirective, be as GraphQLObjectType, bf as GraphQLInterfaceType, bg as GraphQLUnionType, bh as GraphQLInputObjectType, bi as GraphQLEnumType, bj as isListType, bk as GraphQLList, bl as isNonNullType, bm as GraphQLNonNull, bn as isNamedType, bo as getNullableType, bp as isLeafType, bq as GraphQLSchema, br as buildSchema, bs as buildASTSchema, bt as parse, bu as validate$2, Z as pascalCase, bv as visit, a0 as getDefaultExportFromCjs, bw as snakeCase, bx as constantCase, by as isAbstractType, bz as BREAK, bA as SchemaMetaFieldDef, bB as TypeMetaFieldDef, bC as TypeNameMetaFieldDef, bD as isCompositeType, bE as isOutputType, bF as isInputType, bG as assertAbstractType, bH as doTypesOverlap, bI as DirectiveLocation, bJ as NoUnusedFragmentsRule$1, bK as ExecutableDefinitionsRule$1, ah as process, bL as validateSchema, bM as sentenceCase, am as generateId } from "./app-loader-BgVDAZzK.js";
5
5
  import * as React from "react";
6
6
  import React__default, { useState, useEffect, createContext, useContext, forwardRef, useRef, useCallback, useImperativeHandle, useId, memo, useMemo } from "react";
7
- import "./main.DzLLcDg5.js";
7
+ import "./main.CU15VE0F.js";
8
8
  import "react-dom";
9
9
  const versionInfo = Object.freeze({
10
10
  major: 16,
@@ -296,9 +296,9 @@ function printDescription(def, indentation = "", firstInBlock = true) {
296
296
  }
297
297
  const type$g = "{ unit?: string, value?: number }";
298
298
  const typedef$f = "scalar Amount";
299
- const schema$g = objectType({
300
- unit: stringType().optional(),
301
- value: numberType().finite()
299
+ const schema$g = z.object({
300
+ unit: z.string().optional(),
301
+ value: z.number().finite()
302
302
  });
303
303
  const stringSchema$f = "z.object({ unit: z.string().optional(), value: z.number().finite() })";
304
304
  const amountValidation = (value) => {
@@ -351,9 +351,9 @@ const Amount = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
351
351
  }, Symbol.toStringTag, { value: "Module" }));
352
352
  const type$f = "{ unit: string, value: number }";
353
353
  const typedef$e = "scalar Amount_Crypto";
354
- const schema$f = objectType({
355
- unit: stringType(),
356
- value: numberType().finite()
354
+ const schema$f = z.object({
355
+ unit: z.string(),
356
+ value: z.number().finite()
357
357
  });
358
358
  const stringSchema$e = "z.object({ unit: z.string(), value: z.number().finite() })";
359
359
  const amountCryptoValidation = (value) => {
@@ -405,9 +405,9 @@ const AmountCrypto = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
405
405
  }, Symbol.toStringTag, { value: "Module" }));
406
406
  const type$e = "{ unit: string, value: number }";
407
407
  const typedef$d = "scalar Amount_Currency";
408
- const schema$e = objectType({
409
- unit: stringType(),
410
- value: numberType().finite()
408
+ const schema$e = z.object({
409
+ unit: z.string(),
410
+ value: z.number().finite()
411
411
  });
412
412
  const stringSchema$d = "z.object({ unit: z.string(), value: z.number().finite() })";
413
413
  const amountCurrencyValidation = (value) => {
@@ -459,9 +459,9 @@ const AmountCurrency = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
459
459
  }, Symbol.toStringTag, { value: "Module" }));
460
460
  const type$d = "{ unit: string, value: number }";
461
461
  const typedef$c = "scalar Amount_Fiat";
462
- const schema$d = objectType({
463
- unit: stringType(),
464
- value: numberType().finite()
462
+ const schema$d = z.object({
463
+ unit: z.string(),
464
+ value: z.number().finite()
465
465
  });
466
466
  const stringSchema$c = "z.object({ unit: z.string(), value: z.number().finite() })";
467
467
  const amountFiatValidation = (value) => {
@@ -513,7 +513,7 @@ const AmountFiat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
513
513
  }, Symbol.toStringTag, { value: "Module" }));
514
514
  const type$c = "number";
515
515
  const typedef$b = "scalar Amount_Money";
516
- const schema$c = numberType();
516
+ const schema$c = z.number();
517
517
  const stringSchema$b = "z.number()";
518
518
  const amountMoneyValidation = (value) => {
519
519
  if (typeof value !== "number") {
@@ -554,7 +554,7 @@ const AmountMoney = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
554
554
  }, Symbol.toStringTag, { value: "Module" }));
555
555
  const type$b = "number";
556
556
  const typedef$a = "scalar Amount_Percentage";
557
- const schema$b = numberType();
557
+ const schema$b = z.number();
558
558
  const stringSchema$a = "z.number()";
559
559
  const amountPercentageValidation = (value) => {
560
560
  if (typeof value !== "number") {
@@ -593,7 +593,7 @@ const AmountPercentage = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
593
593
  }, Symbol.toStringTag, { value: "Module" }));
594
594
  const type$a = "number";
595
595
  const typedef$9 = "scalar Amount_Tokens";
596
- const schema$a = numberType();
596
+ const schema$a = z.number();
597
597
  const stringSchema$9 = "z.number()";
598
598
  const amountTokensValidation = (value) => {
599
599
  if (typeof value !== "number") {
@@ -632,7 +632,7 @@ const AmountTokens = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
632
632
  }, Symbol.toStringTag, { value: "Module" }));
633
633
  const type$9 = "string";
634
634
  const typedef$8 = "scalar Currency";
635
- const schema$9 = stringType();
635
+ const schema$9 = z.string();
636
636
  const stringSchema$8 = "z.string()";
637
637
  const currencyValidation = (value) => {
638
638
  if (typeof value !== "string") {
@@ -669,7 +669,7 @@ const Currency = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
669
669
  }, Symbol.toStringTag, { value: "Module" }));
670
670
  const type$8 = "string";
671
671
  const typedef$7 = "scalar Date";
672
- const schema$8 = stringType().datetime();
672
+ const schema$8 = z.string().datetime();
673
673
  const stringSchema$7 = "z.string().datetime()";
674
674
  const datetimeValidation$1 = (value) => {
675
675
  if (typeof value !== "string") {
@@ -704,7 +704,7 @@ const DateScalar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
704
704
  }, Symbol.toStringTag, { value: "Module" }));
705
705
  const type$7 = "string";
706
706
  const typedef$6 = "scalar DateTime";
707
- const schema$7 = stringType().datetime();
707
+ const schema$7 = z.string().datetime();
708
708
  const stringSchema$6 = "z.string().datetime()";
709
709
  const datetimeValidation = (value) => {
710
710
  if (typeof value !== "string") {
@@ -739,7 +739,7 @@ const DateTime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
739
739
  }, Symbol.toStringTag, { value: "Module" }));
740
740
  const type$6 = "string";
741
741
  const typedef$5 = "scalar EmailAddress";
742
- const schema$6 = stringType().email();
742
+ const schema$6 = z.string().email();
743
743
  const stringSchema$5 = "z.string().email()";
744
744
  const emailValidation = (value) => {
745
745
  if (typeof value !== "string") {
@@ -774,7 +774,7 @@ const EmailAddress = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
774
774
  }, Symbol.toStringTag, { value: "Module" }));
775
775
  const type$5 = "string";
776
776
  const typedef$4 = "scalar EthereumAddress";
777
- const schema$5 = stringType().regex(/^0x[a-fA-F0-9]{40}$/, {
777
+ const schema$5 = z.string().regex(/^0x[a-fA-F0-9]{40}$/, {
778
778
  message: "Invalid Ethereum address format"
779
779
  });
780
780
  const stringSchema$4 = "z.string().regex(/^0x[a-fA-F0-9]{40}$/, { message: 'Invalid Ethereum address format' })";
@@ -811,7 +811,7 @@ const EthereumAddress = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
811
811
  }, Symbol.toStringTag, { value: "Module" }));
812
812
  const type$4 = "string";
813
813
  const typedef$3 = "scalar OID";
814
- const schema$4 = stringType();
814
+ const schema$4 = z.string();
815
815
  const stringSchema$3 = "z.string()";
816
816
  const oIdValidation = (value) => {
817
817
  if (typeof value !== "string") {
@@ -848,7 +848,7 @@ const OID = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
848
848
  }, Symbol.toStringTag, { value: "Module" }));
849
849
  const type$3 = "string";
850
850
  const typedef$2 = "scalar OLabel";
851
- const schema$3 = stringType();
851
+ const schema$3 = z.string();
852
852
  const stringSchema$2 = "z.string()";
853
853
  const oLabelValidation = (value) => {
854
854
  if (typeof value !== "string") {
@@ -885,7 +885,7 @@ const OLabel = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
885
885
  }, Symbol.toStringTag, { value: "Module" }));
886
886
  const type$2 = "string";
887
887
  const typedef$1 = "scalar PHID";
888
- const schema$2 = stringType();
888
+ const schema$2 = z.string();
889
889
  const stringSchema$1 = "z.string()";
890
890
  const phidlValidation = (value) => {
891
891
  if (typeof value !== "string") {
@@ -922,7 +922,7 @@ const PHID = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
922
922
  }, Symbol.toStringTag, { value: "Module" }));
923
923
  const type$1 = "string";
924
924
  const typedef = "scalar URL";
925
- const schema$1 = stringType().url();
925
+ const schema$1 = z.string().url();
926
926
  const stringSchema = "z.string().url()";
927
927
  const urlValidation = (value) => {
928
928
  if (typeof value !== "string") {
@@ -1030,18 +1030,2970 @@ const typeDefs = [
1030
1030
  [config$f.name]: stringSchema$e,
1031
1031
  [config$g.name]: stringSchema$f
1032
1032
  });
1033
- const SerializableSchema = lazyType(() => unionType([
1034
- stringType(),
1035
- numberType(),
1036
- booleanType(),
1037
- nullType(),
1038
- arrayType(SerializableSchema),
1039
- recordType(stringType(), SerializableSchema)
1033
+ const SerializableSchema = z.lazy(() => z.union([
1034
+ z.string(),
1035
+ z.number(),
1036
+ z.boolean(),
1037
+ z.null(),
1038
+ z.array(SerializableSchema),
1039
+ z.record(z.string(), SerializableSchema)
1040
1040
  ]));
1041
1041
  function getPHCustomScalarByTypeName(name2) {
1042
1042
  const scalar2 = Object.values(customScalars).find((scalar3) => scalar3.config.name === name2) ?? null;
1043
1043
  return scalar2;
1044
1044
  }
1045
+ const CLASS_PART_SEPARATOR = "-";
1046
+ const createClassGroupUtils = (config2) => {
1047
+ const classMap = createClassMap(config2);
1048
+ const {
1049
+ conflictingClassGroups,
1050
+ conflictingClassGroupModifiers
1051
+ } = config2;
1052
+ const getClassGroupId = (className) => {
1053
+ const classParts = className.split(CLASS_PART_SEPARATOR);
1054
+ if (classParts[0] === "" && classParts.length !== 1) {
1055
+ classParts.shift();
1056
+ }
1057
+ return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
1058
+ };
1059
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
1060
+ const conflicts = conflictingClassGroups[classGroupId] || [];
1061
+ if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
1062
+ return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
1063
+ }
1064
+ return conflicts;
1065
+ };
1066
+ return {
1067
+ getClassGroupId,
1068
+ getConflictingClassGroupIds
1069
+ };
1070
+ };
1071
+ const getGroupRecursive = (classParts, classPartObject) => {
1072
+ var _a3;
1073
+ if (classParts.length === 0) {
1074
+ return classPartObject.classGroupId;
1075
+ }
1076
+ const currentClassPart = classParts[0];
1077
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
1078
+ const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
1079
+ if (classGroupFromNextClassPart) {
1080
+ return classGroupFromNextClassPart;
1081
+ }
1082
+ if (classPartObject.validators.length === 0) {
1083
+ return void 0;
1084
+ }
1085
+ const classRest = classParts.join(CLASS_PART_SEPARATOR);
1086
+ return (_a3 = classPartObject.validators.find(({
1087
+ validator: validator2
1088
+ }) => validator2(classRest))) == null ? void 0 : _a3.classGroupId;
1089
+ };
1090
+ const arbitraryPropertyRegex = /^\[(.+)\]$/;
1091
+ const getGroupIdForArbitraryProperty = (className) => {
1092
+ if (arbitraryPropertyRegex.test(className)) {
1093
+ const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
1094
+ const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
1095
+ if (property) {
1096
+ return "arbitrary.." + property;
1097
+ }
1098
+ }
1099
+ };
1100
+ const createClassMap = (config2) => {
1101
+ const {
1102
+ theme: theme2,
1103
+ classGroups
1104
+ } = config2;
1105
+ const classMap = {
1106
+ nextPart: /* @__PURE__ */ new Map(),
1107
+ validators: []
1108
+ };
1109
+ for (const classGroupId in classGroups) {
1110
+ processClassesRecursively(classGroups[classGroupId], classMap, classGroupId, theme2);
1111
+ }
1112
+ return classMap;
1113
+ };
1114
+ const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme2) => {
1115
+ classGroup.forEach((classDefinition) => {
1116
+ if (typeof classDefinition === "string") {
1117
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
1118
+ classPartObjectToEdit.classGroupId = classGroupId;
1119
+ return;
1120
+ }
1121
+ if (typeof classDefinition === "function") {
1122
+ if (isThemeGetter(classDefinition)) {
1123
+ processClassesRecursively(classDefinition(theme2), classPartObject, classGroupId, theme2);
1124
+ return;
1125
+ }
1126
+ classPartObject.validators.push({
1127
+ validator: classDefinition,
1128
+ classGroupId
1129
+ });
1130
+ return;
1131
+ }
1132
+ Object.entries(classDefinition).forEach(([key, classGroup2]) => {
1133
+ processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme2);
1134
+ });
1135
+ });
1136
+ };
1137
+ const getPart = (classPartObject, path) => {
1138
+ let currentClassPartObject = classPartObject;
1139
+ path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
1140
+ if (!currentClassPartObject.nextPart.has(pathPart)) {
1141
+ currentClassPartObject.nextPart.set(pathPart, {
1142
+ nextPart: /* @__PURE__ */ new Map(),
1143
+ validators: []
1144
+ });
1145
+ }
1146
+ currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
1147
+ });
1148
+ return currentClassPartObject;
1149
+ };
1150
+ const isThemeGetter = (func) => func.isThemeGetter;
1151
+ const createLruCache = (maxCacheSize) => {
1152
+ if (maxCacheSize < 1) {
1153
+ return {
1154
+ get: () => void 0,
1155
+ set: () => {
1156
+ }
1157
+ };
1158
+ }
1159
+ let cacheSize = 0;
1160
+ let cache = /* @__PURE__ */ new Map();
1161
+ let previousCache = /* @__PURE__ */ new Map();
1162
+ const update = (key, value) => {
1163
+ cache.set(key, value);
1164
+ cacheSize++;
1165
+ if (cacheSize > maxCacheSize) {
1166
+ cacheSize = 0;
1167
+ previousCache = cache;
1168
+ cache = /* @__PURE__ */ new Map();
1169
+ }
1170
+ };
1171
+ return {
1172
+ get(key) {
1173
+ let value = cache.get(key);
1174
+ if (value !== void 0) {
1175
+ return value;
1176
+ }
1177
+ if ((value = previousCache.get(key)) !== void 0) {
1178
+ update(key, value);
1179
+ return value;
1180
+ }
1181
+ },
1182
+ set(key, value) {
1183
+ if (cache.has(key)) {
1184
+ cache.set(key, value);
1185
+ } else {
1186
+ update(key, value);
1187
+ }
1188
+ }
1189
+ };
1190
+ };
1191
+ const IMPORTANT_MODIFIER = "!";
1192
+ const MODIFIER_SEPARATOR = ":";
1193
+ const MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length;
1194
+ const createParseClassName = (config2) => {
1195
+ const {
1196
+ prefix,
1197
+ experimentalParseClassName
1198
+ } = config2;
1199
+ let parseClassName = (className) => {
1200
+ const modifiers2 = [];
1201
+ let bracketDepth = 0;
1202
+ let parenDepth = 0;
1203
+ let modifierStart = 0;
1204
+ let postfixModifierPosition;
1205
+ for (let index = 0; index < className.length; index++) {
1206
+ let currentCharacter = className[index];
1207
+ if (bracketDepth === 0 && parenDepth === 0) {
1208
+ if (currentCharacter === MODIFIER_SEPARATOR) {
1209
+ modifiers2.push(className.slice(modifierStart, index));
1210
+ modifierStart = index + MODIFIER_SEPARATOR_LENGTH;
1211
+ continue;
1212
+ }
1213
+ if (currentCharacter === "/") {
1214
+ postfixModifierPosition = index;
1215
+ continue;
1216
+ }
1217
+ }
1218
+ if (currentCharacter === "[") {
1219
+ bracketDepth++;
1220
+ } else if (currentCharacter === "]") {
1221
+ bracketDepth--;
1222
+ } else if (currentCharacter === "(") {
1223
+ parenDepth++;
1224
+ } else if (currentCharacter === ")") {
1225
+ parenDepth--;
1226
+ }
1227
+ }
1228
+ const baseClassNameWithImportantModifier = modifiers2.length === 0 ? className : className.substring(modifierStart);
1229
+ const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier);
1230
+ const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier;
1231
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
1232
+ return {
1233
+ modifiers: modifiers2,
1234
+ hasImportantModifier,
1235
+ baseClassName,
1236
+ maybePostfixModifierPosition
1237
+ };
1238
+ };
1239
+ if (prefix) {
1240
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
1241
+ const parseClassNameOriginal = parseClassName;
1242
+ parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.substring(fullPrefix.length)) : {
1243
+ isExternal: true,
1244
+ modifiers: [],
1245
+ hasImportantModifier: false,
1246
+ baseClassName: className,
1247
+ maybePostfixModifierPosition: void 0
1248
+ };
1249
+ }
1250
+ if (experimentalParseClassName) {
1251
+ const parseClassNameOriginal = parseClassName;
1252
+ parseClassName = (className) => experimentalParseClassName({
1253
+ className,
1254
+ parseClassName: parseClassNameOriginal
1255
+ });
1256
+ }
1257
+ return parseClassName;
1258
+ };
1259
+ const stripImportantModifier = (baseClassName) => {
1260
+ if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {
1261
+ return baseClassName.substring(0, baseClassName.length - 1);
1262
+ }
1263
+ if (baseClassName.startsWith(IMPORTANT_MODIFIER)) {
1264
+ return baseClassName.substring(1);
1265
+ }
1266
+ return baseClassName;
1267
+ };
1268
+ const createSortModifiers = (config2) => {
1269
+ const orderSensitiveModifiers = Object.fromEntries(config2.orderSensitiveModifiers.map((modifier) => [modifier, true]));
1270
+ const sortModifiers = (modifiers2) => {
1271
+ if (modifiers2.length <= 1) {
1272
+ return modifiers2;
1273
+ }
1274
+ const sortedModifiers = [];
1275
+ let unsortedModifiers = [];
1276
+ modifiers2.forEach((modifier) => {
1277
+ const isPositionSensitive = modifier[0] === "[" || orderSensitiveModifiers[modifier];
1278
+ if (isPositionSensitive) {
1279
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
1280
+ unsortedModifiers = [];
1281
+ } else {
1282
+ unsortedModifiers.push(modifier);
1283
+ }
1284
+ });
1285
+ sortedModifiers.push(...unsortedModifiers.sort());
1286
+ return sortedModifiers;
1287
+ };
1288
+ return sortModifiers;
1289
+ };
1290
+ const createConfigUtils = (config2) => ({
1291
+ cache: createLruCache(config2.cacheSize),
1292
+ parseClassName: createParseClassName(config2),
1293
+ sortModifiers: createSortModifiers(config2),
1294
+ ...createClassGroupUtils(config2)
1295
+ });
1296
+ const SPLIT_CLASSES_REGEX = /\s+/;
1297
+ const mergeClassList = (classList, configUtils) => {
1298
+ const {
1299
+ parseClassName,
1300
+ getClassGroupId,
1301
+ getConflictingClassGroupIds,
1302
+ sortModifiers
1303
+ } = configUtils;
1304
+ const classGroupsInConflict = [];
1305
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
1306
+ let result = "";
1307
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
1308
+ const originalClassName = classNames[index];
1309
+ const {
1310
+ isExternal,
1311
+ modifiers: modifiers2,
1312
+ hasImportantModifier,
1313
+ baseClassName,
1314
+ maybePostfixModifierPosition
1315
+ } = parseClassName(originalClassName);
1316
+ if (isExternal) {
1317
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1318
+ continue;
1319
+ }
1320
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
1321
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
1322
+ if (!classGroupId) {
1323
+ if (!hasPostfixModifier) {
1324
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1325
+ continue;
1326
+ }
1327
+ classGroupId = getClassGroupId(baseClassName);
1328
+ if (!classGroupId) {
1329
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1330
+ continue;
1331
+ }
1332
+ hasPostfixModifier = false;
1333
+ }
1334
+ const variantModifier = sortModifiers(modifiers2).join(":");
1335
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
1336
+ const classId = modifierId + classGroupId;
1337
+ if (classGroupsInConflict.includes(classId)) {
1338
+ continue;
1339
+ }
1340
+ classGroupsInConflict.push(classId);
1341
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
1342
+ for (let i = 0; i < conflictGroups.length; ++i) {
1343
+ const group = conflictGroups[i];
1344
+ classGroupsInConflict.push(modifierId + group);
1345
+ }
1346
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1347
+ }
1348
+ return result;
1349
+ };
1350
+ function twJoin() {
1351
+ let index = 0;
1352
+ let argument;
1353
+ let resolvedValue;
1354
+ let string2 = "";
1355
+ while (index < arguments.length) {
1356
+ if (argument = arguments[index++]) {
1357
+ if (resolvedValue = toValue(argument)) {
1358
+ string2 && (string2 += " ");
1359
+ string2 += resolvedValue;
1360
+ }
1361
+ }
1362
+ }
1363
+ return string2;
1364
+ }
1365
+ const toValue = (mix) => {
1366
+ if (typeof mix === "string") {
1367
+ return mix;
1368
+ }
1369
+ let resolvedValue;
1370
+ let string2 = "";
1371
+ for (let k = 0; k < mix.length; k++) {
1372
+ if (mix[k]) {
1373
+ if (resolvedValue = toValue(mix[k])) {
1374
+ string2 && (string2 += " ");
1375
+ string2 += resolvedValue;
1376
+ }
1377
+ }
1378
+ }
1379
+ return string2;
1380
+ };
1381
+ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
1382
+ let configUtils;
1383
+ let cacheGet;
1384
+ let cacheSet;
1385
+ let functionToCall = initTailwindMerge;
1386
+ function initTailwindMerge(classList) {
1387
+ const config2 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
1388
+ configUtils = createConfigUtils(config2);
1389
+ cacheGet = configUtils.cache.get;
1390
+ cacheSet = configUtils.cache.set;
1391
+ functionToCall = tailwindMerge;
1392
+ return tailwindMerge(classList);
1393
+ }
1394
+ function tailwindMerge(classList) {
1395
+ const cachedResult = cacheGet(classList);
1396
+ if (cachedResult) {
1397
+ return cachedResult;
1398
+ }
1399
+ const result = mergeClassList(classList, configUtils);
1400
+ cacheSet(classList, result);
1401
+ return result;
1402
+ }
1403
+ return function callTailwindMerge() {
1404
+ return functionToCall(twJoin.apply(null, arguments));
1405
+ };
1406
+ }
1407
+ const fromTheme = (key) => {
1408
+ const themeGetter = (theme2) => theme2[key] || [];
1409
+ themeGetter.isThemeGetter = true;
1410
+ return themeGetter;
1411
+ };
1412
+ const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
1413
+ const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
1414
+ const fractionRegex = /^\d+\/\d+$/;
1415
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
1416
+ 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$/;
1417
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
1418
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
1419
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
1420
+ const isFraction = (value) => fractionRegex.test(value);
1421
+ const isNumber = (value) => !!value && !Number.isNaN(Number(value));
1422
+ const isInteger = (value) => !!value && Number.isInteger(Number(value));
1423
+ const isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
1424
+ const isTshirtSize = (value) => tshirtUnitRegex.test(value);
1425
+ const isAny = () => true;
1426
+ const isLengthOnly = (value) => (
1427
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1428
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1429
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1430
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
1431
+ );
1432
+ const isNever = () => false;
1433
+ const isShadow = (value) => shadowRegex.test(value);
1434
+ const isImage = (value) => imageRegex.test(value);
1435
+ const isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
1436
+ const isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
1437
+ const isArbitraryValue = (value) => arbitraryValueRegex.test(value);
1438
+ const isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
1439
+ const isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
1440
+ const isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
1441
+ const isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
1442
+ const isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
1443
+ const isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
1444
+ const isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
1445
+ const isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
1446
+ const isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
1447
+ const isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
1448
+ const isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
1449
+ const isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
1450
+ const getIsArbitraryValue = (value, testLabel, testValue) => {
1451
+ const result = arbitraryValueRegex.exec(value);
1452
+ if (result) {
1453
+ if (result[1]) {
1454
+ return testLabel(result[1]);
1455
+ }
1456
+ return testValue(result[2]);
1457
+ }
1458
+ return false;
1459
+ };
1460
+ const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
1461
+ const result = arbitraryVariableRegex.exec(value);
1462
+ if (result) {
1463
+ if (result[1]) {
1464
+ return testLabel(result[1]);
1465
+ }
1466
+ return shouldMatchNoLabel;
1467
+ }
1468
+ return false;
1469
+ };
1470
+ const isLabelPosition = (label) => label === "position" || label === "percentage";
1471
+ const isLabelImage = (label) => label === "image" || label === "url";
1472
+ const isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
1473
+ const isLabelLength = (label) => label === "length";
1474
+ const isLabelNumber = (label) => label === "number";
1475
+ const isLabelFamilyName = (label) => label === "family-name";
1476
+ const isLabelShadow = (label) => label === "shadow";
1477
+ const getDefaultConfig = () => {
1478
+ const themeColor = fromTheme("color");
1479
+ const themeFont = fromTheme("font");
1480
+ const themeText = fromTheme("text");
1481
+ const themeFontWeight = fromTheme("font-weight");
1482
+ const themeTracking = fromTheme("tracking");
1483
+ const themeLeading = fromTheme("leading");
1484
+ const themeBreakpoint = fromTheme("breakpoint");
1485
+ const themeContainer = fromTheme("container");
1486
+ const themeSpacing = fromTheme("spacing");
1487
+ const themeRadius = fromTheme("radius");
1488
+ const themeShadow = fromTheme("shadow");
1489
+ const themeInsetShadow = fromTheme("inset-shadow");
1490
+ const themeTextShadow = fromTheme("text-shadow");
1491
+ const themeDropShadow = fromTheme("drop-shadow");
1492
+ const themeBlur = fromTheme("blur");
1493
+ const themePerspective = fromTheme("perspective");
1494
+ const themeAspect = fromTheme("aspect");
1495
+ const themeEase = fromTheme("ease");
1496
+ const themeAnimate = fromTheme("animate");
1497
+ const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
1498
+ const scalePosition = () => [
1499
+ "center",
1500
+ "top",
1501
+ "bottom",
1502
+ "left",
1503
+ "right",
1504
+ "top-left",
1505
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1506
+ "left-top",
1507
+ "top-right",
1508
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1509
+ "right-top",
1510
+ "bottom-right",
1511
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1512
+ "right-bottom",
1513
+ "bottom-left",
1514
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1515
+ "left-bottom"
1516
+ ];
1517
+ const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
1518
+ const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
1519
+ const scaleOverscroll = () => ["auto", "contain", "none"];
1520
+ const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
1521
+ const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
1522
+ const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
1523
+ const scaleGridColRowStartAndEnd = () => ["auto", {
1524
+ span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
1525
+ }, isInteger, isArbitraryVariable, isArbitraryValue];
1526
+ const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
1527
+ const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
1528
+ const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
1529
+ const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
1530
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
1531
+ const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
1532
+ const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
1533
+ const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
1534
+ position: [isArbitraryVariable, isArbitraryValue]
1535
+ }];
1536
+ const scaleBgRepeat = () => ["no-repeat", {
1537
+ repeat: ["", "x", "y", "space", "round"]
1538
+ }];
1539
+ const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
1540
+ size: [isArbitraryVariable, isArbitraryValue]
1541
+ }];
1542
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
1543
+ const scaleRadius = () => [
1544
+ // Deprecated since Tailwind CSS v4.0.0
1545
+ "",
1546
+ "none",
1547
+ "full",
1548
+ themeRadius,
1549
+ isArbitraryVariable,
1550
+ isArbitraryValue
1551
+ ];
1552
+ const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
1553
+ const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
1554
+ const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
1555
+ const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
1556
+ const scaleBlur = () => [
1557
+ // Deprecated since Tailwind CSS v4.0.0
1558
+ "",
1559
+ "none",
1560
+ themeBlur,
1561
+ isArbitraryVariable,
1562
+ isArbitraryValue
1563
+ ];
1564
+ const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
1565
+ const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
1566
+ const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
1567
+ const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
1568
+ return {
1569
+ cacheSize: 500,
1570
+ theme: {
1571
+ animate: ["spin", "ping", "pulse", "bounce"],
1572
+ aspect: ["video"],
1573
+ blur: [isTshirtSize],
1574
+ breakpoint: [isTshirtSize],
1575
+ color: [isAny],
1576
+ container: [isTshirtSize],
1577
+ "drop-shadow": [isTshirtSize],
1578
+ ease: ["in", "out", "in-out"],
1579
+ font: [isAnyNonArbitrary],
1580
+ "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1581
+ "inset-shadow": [isTshirtSize],
1582
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
1583
+ perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
1584
+ radius: [isTshirtSize],
1585
+ shadow: [isTshirtSize],
1586
+ spacing: ["px", isNumber],
1587
+ text: [isTshirtSize],
1588
+ "text-shadow": [isTshirtSize],
1589
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
1590
+ },
1591
+ classGroups: {
1592
+ // --------------
1593
+ // --- Layout ---
1594
+ // --------------
1595
+ /**
1596
+ * Aspect Ratio
1597
+ * @see https://tailwindcss.com/docs/aspect-ratio
1598
+ */
1599
+ aspect: [{
1600
+ aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
1601
+ }],
1602
+ /**
1603
+ * Container
1604
+ * @see https://tailwindcss.com/docs/container
1605
+ * @deprecated since Tailwind CSS v4.0.0
1606
+ */
1607
+ container: ["container"],
1608
+ /**
1609
+ * Columns
1610
+ * @see https://tailwindcss.com/docs/columns
1611
+ */
1612
+ columns: [{
1613
+ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
1614
+ }],
1615
+ /**
1616
+ * Break After
1617
+ * @see https://tailwindcss.com/docs/break-after
1618
+ */
1619
+ "break-after": [{
1620
+ "break-after": scaleBreak()
1621
+ }],
1622
+ /**
1623
+ * Break Before
1624
+ * @see https://tailwindcss.com/docs/break-before
1625
+ */
1626
+ "break-before": [{
1627
+ "break-before": scaleBreak()
1628
+ }],
1629
+ /**
1630
+ * Break Inside
1631
+ * @see https://tailwindcss.com/docs/break-inside
1632
+ */
1633
+ "break-inside": [{
1634
+ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
1635
+ }],
1636
+ /**
1637
+ * Box Decoration Break
1638
+ * @see https://tailwindcss.com/docs/box-decoration-break
1639
+ */
1640
+ "box-decoration": [{
1641
+ "box-decoration": ["slice", "clone"]
1642
+ }],
1643
+ /**
1644
+ * Box Sizing
1645
+ * @see https://tailwindcss.com/docs/box-sizing
1646
+ */
1647
+ box: [{
1648
+ box: ["border", "content"]
1649
+ }],
1650
+ /**
1651
+ * Display
1652
+ * @see https://tailwindcss.com/docs/display
1653
+ */
1654
+ display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
1655
+ /**
1656
+ * Screen Reader Only
1657
+ * @see https://tailwindcss.com/docs/display#screen-reader-only
1658
+ */
1659
+ sr: ["sr-only", "not-sr-only"],
1660
+ /**
1661
+ * Floats
1662
+ * @see https://tailwindcss.com/docs/float
1663
+ */
1664
+ float: [{
1665
+ float: ["right", "left", "none", "start", "end"]
1666
+ }],
1667
+ /**
1668
+ * Clear
1669
+ * @see https://tailwindcss.com/docs/clear
1670
+ */
1671
+ clear: [{
1672
+ clear: ["left", "right", "both", "none", "start", "end"]
1673
+ }],
1674
+ /**
1675
+ * Isolation
1676
+ * @see https://tailwindcss.com/docs/isolation
1677
+ */
1678
+ isolation: ["isolate", "isolation-auto"],
1679
+ /**
1680
+ * Object Fit
1681
+ * @see https://tailwindcss.com/docs/object-fit
1682
+ */
1683
+ "object-fit": [{
1684
+ object: ["contain", "cover", "fill", "none", "scale-down"]
1685
+ }],
1686
+ /**
1687
+ * Object Position
1688
+ * @see https://tailwindcss.com/docs/object-position
1689
+ */
1690
+ "object-position": [{
1691
+ object: scalePositionWithArbitrary()
1692
+ }],
1693
+ /**
1694
+ * Overflow
1695
+ * @see https://tailwindcss.com/docs/overflow
1696
+ */
1697
+ overflow: [{
1698
+ overflow: scaleOverflow()
1699
+ }],
1700
+ /**
1701
+ * Overflow X
1702
+ * @see https://tailwindcss.com/docs/overflow
1703
+ */
1704
+ "overflow-x": [{
1705
+ "overflow-x": scaleOverflow()
1706
+ }],
1707
+ /**
1708
+ * Overflow Y
1709
+ * @see https://tailwindcss.com/docs/overflow
1710
+ */
1711
+ "overflow-y": [{
1712
+ "overflow-y": scaleOverflow()
1713
+ }],
1714
+ /**
1715
+ * Overscroll Behavior
1716
+ * @see https://tailwindcss.com/docs/overscroll-behavior
1717
+ */
1718
+ overscroll: [{
1719
+ overscroll: scaleOverscroll()
1720
+ }],
1721
+ /**
1722
+ * Overscroll Behavior X
1723
+ * @see https://tailwindcss.com/docs/overscroll-behavior
1724
+ */
1725
+ "overscroll-x": [{
1726
+ "overscroll-x": scaleOverscroll()
1727
+ }],
1728
+ /**
1729
+ * Overscroll Behavior Y
1730
+ * @see https://tailwindcss.com/docs/overscroll-behavior
1731
+ */
1732
+ "overscroll-y": [{
1733
+ "overscroll-y": scaleOverscroll()
1734
+ }],
1735
+ /**
1736
+ * Position
1737
+ * @see https://tailwindcss.com/docs/position
1738
+ */
1739
+ position: ["static", "fixed", "absolute", "relative", "sticky"],
1740
+ /**
1741
+ * Top / Right / Bottom / Left
1742
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1743
+ */
1744
+ inset: [{
1745
+ inset: scaleInset()
1746
+ }],
1747
+ /**
1748
+ * Right / Left
1749
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1750
+ */
1751
+ "inset-x": [{
1752
+ "inset-x": scaleInset()
1753
+ }],
1754
+ /**
1755
+ * Top / Bottom
1756
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1757
+ */
1758
+ "inset-y": [{
1759
+ "inset-y": scaleInset()
1760
+ }],
1761
+ /**
1762
+ * Start
1763
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1764
+ */
1765
+ start: [{
1766
+ start: scaleInset()
1767
+ }],
1768
+ /**
1769
+ * End
1770
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1771
+ */
1772
+ end: [{
1773
+ end: scaleInset()
1774
+ }],
1775
+ /**
1776
+ * Top
1777
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1778
+ */
1779
+ top: [{
1780
+ top: scaleInset()
1781
+ }],
1782
+ /**
1783
+ * Right
1784
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1785
+ */
1786
+ right: [{
1787
+ right: scaleInset()
1788
+ }],
1789
+ /**
1790
+ * Bottom
1791
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1792
+ */
1793
+ bottom: [{
1794
+ bottom: scaleInset()
1795
+ }],
1796
+ /**
1797
+ * Left
1798
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1799
+ */
1800
+ left: [{
1801
+ left: scaleInset()
1802
+ }],
1803
+ /**
1804
+ * Visibility
1805
+ * @see https://tailwindcss.com/docs/visibility
1806
+ */
1807
+ visibility: ["visible", "invisible", "collapse"],
1808
+ /**
1809
+ * Z-Index
1810
+ * @see https://tailwindcss.com/docs/z-index
1811
+ */
1812
+ z: [{
1813
+ z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
1814
+ }],
1815
+ // ------------------------
1816
+ // --- Flexbox and Grid ---
1817
+ // ------------------------
1818
+ /**
1819
+ * Flex Basis
1820
+ * @see https://tailwindcss.com/docs/flex-basis
1821
+ */
1822
+ basis: [{
1823
+ basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
1824
+ }],
1825
+ /**
1826
+ * Flex Direction
1827
+ * @see https://tailwindcss.com/docs/flex-direction
1828
+ */
1829
+ "flex-direction": [{
1830
+ flex: ["row", "row-reverse", "col", "col-reverse"]
1831
+ }],
1832
+ /**
1833
+ * Flex Wrap
1834
+ * @see https://tailwindcss.com/docs/flex-wrap
1835
+ */
1836
+ "flex-wrap": [{
1837
+ flex: ["nowrap", "wrap", "wrap-reverse"]
1838
+ }],
1839
+ /**
1840
+ * Flex
1841
+ * @see https://tailwindcss.com/docs/flex
1842
+ */
1843
+ flex: [{
1844
+ flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
1845
+ }],
1846
+ /**
1847
+ * Flex Grow
1848
+ * @see https://tailwindcss.com/docs/flex-grow
1849
+ */
1850
+ grow: [{
1851
+ grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1852
+ }],
1853
+ /**
1854
+ * Flex Shrink
1855
+ * @see https://tailwindcss.com/docs/flex-shrink
1856
+ */
1857
+ shrink: [{
1858
+ shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1859
+ }],
1860
+ /**
1861
+ * Order
1862
+ * @see https://tailwindcss.com/docs/order
1863
+ */
1864
+ order: [{
1865
+ order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
1866
+ }],
1867
+ /**
1868
+ * Grid Template Columns
1869
+ * @see https://tailwindcss.com/docs/grid-template-columns
1870
+ */
1871
+ "grid-cols": [{
1872
+ "grid-cols": scaleGridTemplateColsRows()
1873
+ }],
1874
+ /**
1875
+ * Grid Column Start / End
1876
+ * @see https://tailwindcss.com/docs/grid-column
1877
+ */
1878
+ "col-start-end": [{
1879
+ col: scaleGridColRowStartAndEnd()
1880
+ }],
1881
+ /**
1882
+ * Grid Column Start
1883
+ * @see https://tailwindcss.com/docs/grid-column
1884
+ */
1885
+ "col-start": [{
1886
+ "col-start": scaleGridColRowStartOrEnd()
1887
+ }],
1888
+ /**
1889
+ * Grid Column End
1890
+ * @see https://tailwindcss.com/docs/grid-column
1891
+ */
1892
+ "col-end": [{
1893
+ "col-end": scaleGridColRowStartOrEnd()
1894
+ }],
1895
+ /**
1896
+ * Grid Template Rows
1897
+ * @see https://tailwindcss.com/docs/grid-template-rows
1898
+ */
1899
+ "grid-rows": [{
1900
+ "grid-rows": scaleGridTemplateColsRows()
1901
+ }],
1902
+ /**
1903
+ * Grid Row Start / End
1904
+ * @see https://tailwindcss.com/docs/grid-row
1905
+ */
1906
+ "row-start-end": [{
1907
+ row: scaleGridColRowStartAndEnd()
1908
+ }],
1909
+ /**
1910
+ * Grid Row Start
1911
+ * @see https://tailwindcss.com/docs/grid-row
1912
+ */
1913
+ "row-start": [{
1914
+ "row-start": scaleGridColRowStartOrEnd()
1915
+ }],
1916
+ /**
1917
+ * Grid Row End
1918
+ * @see https://tailwindcss.com/docs/grid-row
1919
+ */
1920
+ "row-end": [{
1921
+ "row-end": scaleGridColRowStartOrEnd()
1922
+ }],
1923
+ /**
1924
+ * Grid Auto Flow
1925
+ * @see https://tailwindcss.com/docs/grid-auto-flow
1926
+ */
1927
+ "grid-flow": [{
1928
+ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
1929
+ }],
1930
+ /**
1931
+ * Grid Auto Columns
1932
+ * @see https://tailwindcss.com/docs/grid-auto-columns
1933
+ */
1934
+ "auto-cols": [{
1935
+ "auto-cols": scaleGridAutoColsRows()
1936
+ }],
1937
+ /**
1938
+ * Grid Auto Rows
1939
+ * @see https://tailwindcss.com/docs/grid-auto-rows
1940
+ */
1941
+ "auto-rows": [{
1942
+ "auto-rows": scaleGridAutoColsRows()
1943
+ }],
1944
+ /**
1945
+ * Gap
1946
+ * @see https://tailwindcss.com/docs/gap
1947
+ */
1948
+ gap: [{
1949
+ gap: scaleUnambiguousSpacing()
1950
+ }],
1951
+ /**
1952
+ * Gap X
1953
+ * @see https://tailwindcss.com/docs/gap
1954
+ */
1955
+ "gap-x": [{
1956
+ "gap-x": scaleUnambiguousSpacing()
1957
+ }],
1958
+ /**
1959
+ * Gap Y
1960
+ * @see https://tailwindcss.com/docs/gap
1961
+ */
1962
+ "gap-y": [{
1963
+ "gap-y": scaleUnambiguousSpacing()
1964
+ }],
1965
+ /**
1966
+ * Justify Content
1967
+ * @see https://tailwindcss.com/docs/justify-content
1968
+ */
1969
+ "justify-content": [{
1970
+ justify: [...scaleAlignPrimaryAxis(), "normal"]
1971
+ }],
1972
+ /**
1973
+ * Justify Items
1974
+ * @see https://tailwindcss.com/docs/justify-items
1975
+ */
1976
+ "justify-items": [{
1977
+ "justify-items": [...scaleAlignSecondaryAxis(), "normal"]
1978
+ }],
1979
+ /**
1980
+ * Justify Self
1981
+ * @see https://tailwindcss.com/docs/justify-self
1982
+ */
1983
+ "justify-self": [{
1984
+ "justify-self": ["auto", ...scaleAlignSecondaryAxis()]
1985
+ }],
1986
+ /**
1987
+ * Align Content
1988
+ * @see https://tailwindcss.com/docs/align-content
1989
+ */
1990
+ "align-content": [{
1991
+ content: ["normal", ...scaleAlignPrimaryAxis()]
1992
+ }],
1993
+ /**
1994
+ * Align Items
1995
+ * @see https://tailwindcss.com/docs/align-items
1996
+ */
1997
+ "align-items": [{
1998
+ items: [...scaleAlignSecondaryAxis(), {
1999
+ baseline: ["", "last"]
2000
+ }]
2001
+ }],
2002
+ /**
2003
+ * Align Self
2004
+ * @see https://tailwindcss.com/docs/align-self
2005
+ */
2006
+ "align-self": [{
2007
+ self: ["auto", ...scaleAlignSecondaryAxis(), {
2008
+ baseline: ["", "last"]
2009
+ }]
2010
+ }],
2011
+ /**
2012
+ * Place Content
2013
+ * @see https://tailwindcss.com/docs/place-content
2014
+ */
2015
+ "place-content": [{
2016
+ "place-content": scaleAlignPrimaryAxis()
2017
+ }],
2018
+ /**
2019
+ * Place Items
2020
+ * @see https://tailwindcss.com/docs/place-items
2021
+ */
2022
+ "place-items": [{
2023
+ "place-items": [...scaleAlignSecondaryAxis(), "baseline"]
2024
+ }],
2025
+ /**
2026
+ * Place Self
2027
+ * @see https://tailwindcss.com/docs/place-self
2028
+ */
2029
+ "place-self": [{
2030
+ "place-self": ["auto", ...scaleAlignSecondaryAxis()]
2031
+ }],
2032
+ // Spacing
2033
+ /**
2034
+ * Padding
2035
+ * @see https://tailwindcss.com/docs/padding
2036
+ */
2037
+ p: [{
2038
+ p: scaleUnambiguousSpacing()
2039
+ }],
2040
+ /**
2041
+ * Padding X
2042
+ * @see https://tailwindcss.com/docs/padding
2043
+ */
2044
+ px: [{
2045
+ px: scaleUnambiguousSpacing()
2046
+ }],
2047
+ /**
2048
+ * Padding Y
2049
+ * @see https://tailwindcss.com/docs/padding
2050
+ */
2051
+ py: [{
2052
+ py: scaleUnambiguousSpacing()
2053
+ }],
2054
+ /**
2055
+ * Padding Start
2056
+ * @see https://tailwindcss.com/docs/padding
2057
+ */
2058
+ ps: [{
2059
+ ps: scaleUnambiguousSpacing()
2060
+ }],
2061
+ /**
2062
+ * Padding End
2063
+ * @see https://tailwindcss.com/docs/padding
2064
+ */
2065
+ pe: [{
2066
+ pe: scaleUnambiguousSpacing()
2067
+ }],
2068
+ /**
2069
+ * Padding Top
2070
+ * @see https://tailwindcss.com/docs/padding
2071
+ */
2072
+ pt: [{
2073
+ pt: scaleUnambiguousSpacing()
2074
+ }],
2075
+ /**
2076
+ * Padding Right
2077
+ * @see https://tailwindcss.com/docs/padding
2078
+ */
2079
+ pr: [{
2080
+ pr: scaleUnambiguousSpacing()
2081
+ }],
2082
+ /**
2083
+ * Padding Bottom
2084
+ * @see https://tailwindcss.com/docs/padding
2085
+ */
2086
+ pb: [{
2087
+ pb: scaleUnambiguousSpacing()
2088
+ }],
2089
+ /**
2090
+ * Padding Left
2091
+ * @see https://tailwindcss.com/docs/padding
2092
+ */
2093
+ pl: [{
2094
+ pl: scaleUnambiguousSpacing()
2095
+ }],
2096
+ /**
2097
+ * Margin
2098
+ * @see https://tailwindcss.com/docs/margin
2099
+ */
2100
+ m: [{
2101
+ m: scaleMargin()
2102
+ }],
2103
+ /**
2104
+ * Margin X
2105
+ * @see https://tailwindcss.com/docs/margin
2106
+ */
2107
+ mx: [{
2108
+ mx: scaleMargin()
2109
+ }],
2110
+ /**
2111
+ * Margin Y
2112
+ * @see https://tailwindcss.com/docs/margin
2113
+ */
2114
+ my: [{
2115
+ my: scaleMargin()
2116
+ }],
2117
+ /**
2118
+ * Margin Start
2119
+ * @see https://tailwindcss.com/docs/margin
2120
+ */
2121
+ ms: [{
2122
+ ms: scaleMargin()
2123
+ }],
2124
+ /**
2125
+ * Margin End
2126
+ * @see https://tailwindcss.com/docs/margin
2127
+ */
2128
+ me: [{
2129
+ me: scaleMargin()
2130
+ }],
2131
+ /**
2132
+ * Margin Top
2133
+ * @see https://tailwindcss.com/docs/margin
2134
+ */
2135
+ mt: [{
2136
+ mt: scaleMargin()
2137
+ }],
2138
+ /**
2139
+ * Margin Right
2140
+ * @see https://tailwindcss.com/docs/margin
2141
+ */
2142
+ mr: [{
2143
+ mr: scaleMargin()
2144
+ }],
2145
+ /**
2146
+ * Margin Bottom
2147
+ * @see https://tailwindcss.com/docs/margin
2148
+ */
2149
+ mb: [{
2150
+ mb: scaleMargin()
2151
+ }],
2152
+ /**
2153
+ * Margin Left
2154
+ * @see https://tailwindcss.com/docs/margin
2155
+ */
2156
+ ml: [{
2157
+ ml: scaleMargin()
2158
+ }],
2159
+ /**
2160
+ * Space Between X
2161
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2162
+ */
2163
+ "space-x": [{
2164
+ "space-x": scaleUnambiguousSpacing()
2165
+ }],
2166
+ /**
2167
+ * Space Between X Reverse
2168
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2169
+ */
2170
+ "space-x-reverse": ["space-x-reverse"],
2171
+ /**
2172
+ * Space Between Y
2173
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2174
+ */
2175
+ "space-y": [{
2176
+ "space-y": scaleUnambiguousSpacing()
2177
+ }],
2178
+ /**
2179
+ * Space Between Y Reverse
2180
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2181
+ */
2182
+ "space-y-reverse": ["space-y-reverse"],
2183
+ // --------------
2184
+ // --- Sizing ---
2185
+ // --------------
2186
+ /**
2187
+ * Size
2188
+ * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
2189
+ */
2190
+ size: [{
2191
+ size: scaleSizing()
2192
+ }],
2193
+ /**
2194
+ * Width
2195
+ * @see https://tailwindcss.com/docs/width
2196
+ */
2197
+ w: [{
2198
+ w: [themeContainer, "screen", ...scaleSizing()]
2199
+ }],
2200
+ /**
2201
+ * Min-Width
2202
+ * @see https://tailwindcss.com/docs/min-width
2203
+ */
2204
+ "min-w": [{
2205
+ "min-w": [
2206
+ themeContainer,
2207
+ "screen",
2208
+ /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2209
+ "none",
2210
+ ...scaleSizing()
2211
+ ]
2212
+ }],
2213
+ /**
2214
+ * Max-Width
2215
+ * @see https://tailwindcss.com/docs/max-width
2216
+ */
2217
+ "max-w": [{
2218
+ "max-w": [
2219
+ themeContainer,
2220
+ "screen",
2221
+ "none",
2222
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2223
+ "prose",
2224
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2225
+ {
2226
+ screen: [themeBreakpoint]
2227
+ },
2228
+ ...scaleSizing()
2229
+ ]
2230
+ }],
2231
+ /**
2232
+ * Height
2233
+ * @see https://tailwindcss.com/docs/height
2234
+ */
2235
+ h: [{
2236
+ h: ["screen", "lh", ...scaleSizing()]
2237
+ }],
2238
+ /**
2239
+ * Min-Height
2240
+ * @see https://tailwindcss.com/docs/min-height
2241
+ */
2242
+ "min-h": [{
2243
+ "min-h": ["screen", "lh", "none", ...scaleSizing()]
2244
+ }],
2245
+ /**
2246
+ * Max-Height
2247
+ * @see https://tailwindcss.com/docs/max-height
2248
+ */
2249
+ "max-h": [{
2250
+ "max-h": ["screen", "lh", ...scaleSizing()]
2251
+ }],
2252
+ // ------------------
2253
+ // --- Typography ---
2254
+ // ------------------
2255
+ /**
2256
+ * Font Size
2257
+ * @see https://tailwindcss.com/docs/font-size
2258
+ */
2259
+ "font-size": [{
2260
+ text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
2261
+ }],
2262
+ /**
2263
+ * Font Smoothing
2264
+ * @see https://tailwindcss.com/docs/font-smoothing
2265
+ */
2266
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
2267
+ /**
2268
+ * Font Style
2269
+ * @see https://tailwindcss.com/docs/font-style
2270
+ */
2271
+ "font-style": ["italic", "not-italic"],
2272
+ /**
2273
+ * Font Weight
2274
+ * @see https://tailwindcss.com/docs/font-weight
2275
+ */
2276
+ "font-weight": [{
2277
+ font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
2278
+ }],
2279
+ /**
2280
+ * Font Stretch
2281
+ * @see https://tailwindcss.com/docs/font-stretch
2282
+ */
2283
+ "font-stretch": [{
2284
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
2285
+ }],
2286
+ /**
2287
+ * Font Family
2288
+ * @see https://tailwindcss.com/docs/font-family
2289
+ */
2290
+ "font-family": [{
2291
+ font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
2292
+ }],
2293
+ /**
2294
+ * Font Variant Numeric
2295
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2296
+ */
2297
+ "fvn-normal": ["normal-nums"],
2298
+ /**
2299
+ * Font Variant Numeric
2300
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2301
+ */
2302
+ "fvn-ordinal": ["ordinal"],
2303
+ /**
2304
+ * Font Variant Numeric
2305
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2306
+ */
2307
+ "fvn-slashed-zero": ["slashed-zero"],
2308
+ /**
2309
+ * Font Variant Numeric
2310
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2311
+ */
2312
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
2313
+ /**
2314
+ * Font Variant Numeric
2315
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2316
+ */
2317
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
2318
+ /**
2319
+ * Font Variant Numeric
2320
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2321
+ */
2322
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
2323
+ /**
2324
+ * Letter Spacing
2325
+ * @see https://tailwindcss.com/docs/letter-spacing
2326
+ */
2327
+ tracking: [{
2328
+ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
2329
+ }],
2330
+ /**
2331
+ * Line Clamp
2332
+ * @see https://tailwindcss.com/docs/line-clamp
2333
+ */
2334
+ "line-clamp": [{
2335
+ "line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
2336
+ }],
2337
+ /**
2338
+ * Line Height
2339
+ * @see https://tailwindcss.com/docs/line-height
2340
+ */
2341
+ leading: [{
2342
+ leading: [
2343
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2344
+ themeLeading,
2345
+ ...scaleUnambiguousSpacing()
2346
+ ]
2347
+ }],
2348
+ /**
2349
+ * List Style Image
2350
+ * @see https://tailwindcss.com/docs/list-style-image
2351
+ */
2352
+ "list-image": [{
2353
+ "list-image": ["none", isArbitraryVariable, isArbitraryValue]
2354
+ }],
2355
+ /**
2356
+ * List Style Position
2357
+ * @see https://tailwindcss.com/docs/list-style-position
2358
+ */
2359
+ "list-style-position": [{
2360
+ list: ["inside", "outside"]
2361
+ }],
2362
+ /**
2363
+ * List Style Type
2364
+ * @see https://tailwindcss.com/docs/list-style-type
2365
+ */
2366
+ "list-style-type": [{
2367
+ list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
2368
+ }],
2369
+ /**
2370
+ * Text Alignment
2371
+ * @see https://tailwindcss.com/docs/text-align
2372
+ */
2373
+ "text-alignment": [{
2374
+ text: ["left", "center", "right", "justify", "start", "end"]
2375
+ }],
2376
+ /**
2377
+ * Placeholder Color
2378
+ * @deprecated since Tailwind CSS v3.0.0
2379
+ * @see https://v3.tailwindcss.com/docs/placeholder-color
2380
+ */
2381
+ "placeholder-color": [{
2382
+ placeholder: scaleColor()
2383
+ }],
2384
+ /**
2385
+ * Text Color
2386
+ * @see https://tailwindcss.com/docs/text-color
2387
+ */
2388
+ "text-color": [{
2389
+ text: scaleColor()
2390
+ }],
2391
+ /**
2392
+ * Text Decoration
2393
+ * @see https://tailwindcss.com/docs/text-decoration
2394
+ */
2395
+ "text-decoration": ["underline", "overline", "line-through", "no-underline"],
2396
+ /**
2397
+ * Text Decoration Style
2398
+ * @see https://tailwindcss.com/docs/text-decoration-style
2399
+ */
2400
+ "text-decoration-style": [{
2401
+ decoration: [...scaleLineStyle(), "wavy"]
2402
+ }],
2403
+ /**
2404
+ * Text Decoration Thickness
2405
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
2406
+ */
2407
+ "text-decoration-thickness": [{
2408
+ decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
2409
+ }],
2410
+ /**
2411
+ * Text Decoration Color
2412
+ * @see https://tailwindcss.com/docs/text-decoration-color
2413
+ */
2414
+ "text-decoration-color": [{
2415
+ decoration: scaleColor()
2416
+ }],
2417
+ /**
2418
+ * Text Underline Offset
2419
+ * @see https://tailwindcss.com/docs/text-underline-offset
2420
+ */
2421
+ "underline-offset": [{
2422
+ "underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
2423
+ }],
2424
+ /**
2425
+ * Text Transform
2426
+ * @see https://tailwindcss.com/docs/text-transform
2427
+ */
2428
+ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
2429
+ /**
2430
+ * Text Overflow
2431
+ * @see https://tailwindcss.com/docs/text-overflow
2432
+ */
2433
+ "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
2434
+ /**
2435
+ * Text Wrap
2436
+ * @see https://tailwindcss.com/docs/text-wrap
2437
+ */
2438
+ "text-wrap": [{
2439
+ text: ["wrap", "nowrap", "balance", "pretty"]
2440
+ }],
2441
+ /**
2442
+ * Text Indent
2443
+ * @see https://tailwindcss.com/docs/text-indent
2444
+ */
2445
+ indent: [{
2446
+ indent: scaleUnambiguousSpacing()
2447
+ }],
2448
+ /**
2449
+ * Vertical Alignment
2450
+ * @see https://tailwindcss.com/docs/vertical-align
2451
+ */
2452
+ "vertical-align": [{
2453
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
2454
+ }],
2455
+ /**
2456
+ * Whitespace
2457
+ * @see https://tailwindcss.com/docs/whitespace
2458
+ */
2459
+ whitespace: [{
2460
+ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
2461
+ }],
2462
+ /**
2463
+ * Word Break
2464
+ * @see https://tailwindcss.com/docs/word-break
2465
+ */
2466
+ break: [{
2467
+ break: ["normal", "words", "all", "keep"]
2468
+ }],
2469
+ /**
2470
+ * Overflow Wrap
2471
+ * @see https://tailwindcss.com/docs/overflow-wrap
2472
+ */
2473
+ wrap: [{
2474
+ wrap: ["break-word", "anywhere", "normal"]
2475
+ }],
2476
+ /**
2477
+ * Hyphens
2478
+ * @see https://tailwindcss.com/docs/hyphens
2479
+ */
2480
+ hyphens: [{
2481
+ hyphens: ["none", "manual", "auto"]
2482
+ }],
2483
+ /**
2484
+ * Content
2485
+ * @see https://tailwindcss.com/docs/content
2486
+ */
2487
+ content: [{
2488
+ content: ["none", isArbitraryVariable, isArbitraryValue]
2489
+ }],
2490
+ // -------------------
2491
+ // --- Backgrounds ---
2492
+ // -------------------
2493
+ /**
2494
+ * Background Attachment
2495
+ * @see https://tailwindcss.com/docs/background-attachment
2496
+ */
2497
+ "bg-attachment": [{
2498
+ bg: ["fixed", "local", "scroll"]
2499
+ }],
2500
+ /**
2501
+ * Background Clip
2502
+ * @see https://tailwindcss.com/docs/background-clip
2503
+ */
2504
+ "bg-clip": [{
2505
+ "bg-clip": ["border", "padding", "content", "text"]
2506
+ }],
2507
+ /**
2508
+ * Background Origin
2509
+ * @see https://tailwindcss.com/docs/background-origin
2510
+ */
2511
+ "bg-origin": [{
2512
+ "bg-origin": ["border", "padding", "content"]
2513
+ }],
2514
+ /**
2515
+ * Background Position
2516
+ * @see https://tailwindcss.com/docs/background-position
2517
+ */
2518
+ "bg-position": [{
2519
+ bg: scaleBgPosition()
2520
+ }],
2521
+ /**
2522
+ * Background Repeat
2523
+ * @see https://tailwindcss.com/docs/background-repeat
2524
+ */
2525
+ "bg-repeat": [{
2526
+ bg: scaleBgRepeat()
2527
+ }],
2528
+ /**
2529
+ * Background Size
2530
+ * @see https://tailwindcss.com/docs/background-size
2531
+ */
2532
+ "bg-size": [{
2533
+ bg: scaleBgSize()
2534
+ }],
2535
+ /**
2536
+ * Background Image
2537
+ * @see https://tailwindcss.com/docs/background-image
2538
+ */
2539
+ "bg-image": [{
2540
+ bg: ["none", {
2541
+ linear: [{
2542
+ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2543
+ }, isInteger, isArbitraryVariable, isArbitraryValue],
2544
+ radial: ["", isArbitraryVariable, isArbitraryValue],
2545
+ conic: [isInteger, isArbitraryVariable, isArbitraryValue]
2546
+ }, isArbitraryVariableImage, isArbitraryImage]
2547
+ }],
2548
+ /**
2549
+ * Background Color
2550
+ * @see https://tailwindcss.com/docs/background-color
2551
+ */
2552
+ "bg-color": [{
2553
+ bg: scaleColor()
2554
+ }],
2555
+ /**
2556
+ * Gradient Color Stops From Position
2557
+ * @see https://tailwindcss.com/docs/gradient-color-stops
2558
+ */
2559
+ "gradient-from-pos": [{
2560
+ from: scaleGradientStopPosition()
2561
+ }],
2562
+ /**
2563
+ * Gradient Color Stops Via Position
2564
+ * @see https://tailwindcss.com/docs/gradient-color-stops
2565
+ */
2566
+ "gradient-via-pos": [{
2567
+ via: scaleGradientStopPosition()
2568
+ }],
2569
+ /**
2570
+ * Gradient Color Stops To Position
2571
+ * @see https://tailwindcss.com/docs/gradient-color-stops
2572
+ */
2573
+ "gradient-to-pos": [{
2574
+ to: scaleGradientStopPosition()
2575
+ }],
2576
+ /**
2577
+ * Gradient Color Stops From
2578
+ * @see https://tailwindcss.com/docs/gradient-color-stops
2579
+ */
2580
+ "gradient-from": [{
2581
+ from: scaleColor()
2582
+ }],
2583
+ /**
2584
+ * Gradient Color Stops Via
2585
+ * @see https://tailwindcss.com/docs/gradient-color-stops
2586
+ */
2587
+ "gradient-via": [{
2588
+ via: scaleColor()
2589
+ }],
2590
+ /**
2591
+ * Gradient Color Stops To
2592
+ * @see https://tailwindcss.com/docs/gradient-color-stops
2593
+ */
2594
+ "gradient-to": [{
2595
+ to: scaleColor()
2596
+ }],
2597
+ // ---------------
2598
+ // --- Borders ---
2599
+ // ---------------
2600
+ /**
2601
+ * Border Radius
2602
+ * @see https://tailwindcss.com/docs/border-radius
2603
+ */
2604
+ rounded: [{
2605
+ rounded: scaleRadius()
2606
+ }],
2607
+ /**
2608
+ * Border Radius Start
2609
+ * @see https://tailwindcss.com/docs/border-radius
2610
+ */
2611
+ "rounded-s": [{
2612
+ "rounded-s": scaleRadius()
2613
+ }],
2614
+ /**
2615
+ * Border Radius End
2616
+ * @see https://tailwindcss.com/docs/border-radius
2617
+ */
2618
+ "rounded-e": [{
2619
+ "rounded-e": scaleRadius()
2620
+ }],
2621
+ /**
2622
+ * Border Radius Top
2623
+ * @see https://tailwindcss.com/docs/border-radius
2624
+ */
2625
+ "rounded-t": [{
2626
+ "rounded-t": scaleRadius()
2627
+ }],
2628
+ /**
2629
+ * Border Radius Right
2630
+ * @see https://tailwindcss.com/docs/border-radius
2631
+ */
2632
+ "rounded-r": [{
2633
+ "rounded-r": scaleRadius()
2634
+ }],
2635
+ /**
2636
+ * Border Radius Bottom
2637
+ * @see https://tailwindcss.com/docs/border-radius
2638
+ */
2639
+ "rounded-b": [{
2640
+ "rounded-b": scaleRadius()
2641
+ }],
2642
+ /**
2643
+ * Border Radius Left
2644
+ * @see https://tailwindcss.com/docs/border-radius
2645
+ */
2646
+ "rounded-l": [{
2647
+ "rounded-l": scaleRadius()
2648
+ }],
2649
+ /**
2650
+ * Border Radius Start Start
2651
+ * @see https://tailwindcss.com/docs/border-radius
2652
+ */
2653
+ "rounded-ss": [{
2654
+ "rounded-ss": scaleRadius()
2655
+ }],
2656
+ /**
2657
+ * Border Radius Start End
2658
+ * @see https://tailwindcss.com/docs/border-radius
2659
+ */
2660
+ "rounded-se": [{
2661
+ "rounded-se": scaleRadius()
2662
+ }],
2663
+ /**
2664
+ * Border Radius End End
2665
+ * @see https://tailwindcss.com/docs/border-radius
2666
+ */
2667
+ "rounded-ee": [{
2668
+ "rounded-ee": scaleRadius()
2669
+ }],
2670
+ /**
2671
+ * Border Radius End Start
2672
+ * @see https://tailwindcss.com/docs/border-radius
2673
+ */
2674
+ "rounded-es": [{
2675
+ "rounded-es": scaleRadius()
2676
+ }],
2677
+ /**
2678
+ * Border Radius Top Left
2679
+ * @see https://tailwindcss.com/docs/border-radius
2680
+ */
2681
+ "rounded-tl": [{
2682
+ "rounded-tl": scaleRadius()
2683
+ }],
2684
+ /**
2685
+ * Border Radius Top Right
2686
+ * @see https://tailwindcss.com/docs/border-radius
2687
+ */
2688
+ "rounded-tr": [{
2689
+ "rounded-tr": scaleRadius()
2690
+ }],
2691
+ /**
2692
+ * Border Radius Bottom Right
2693
+ * @see https://tailwindcss.com/docs/border-radius
2694
+ */
2695
+ "rounded-br": [{
2696
+ "rounded-br": scaleRadius()
2697
+ }],
2698
+ /**
2699
+ * Border Radius Bottom Left
2700
+ * @see https://tailwindcss.com/docs/border-radius
2701
+ */
2702
+ "rounded-bl": [{
2703
+ "rounded-bl": scaleRadius()
2704
+ }],
2705
+ /**
2706
+ * Border Width
2707
+ * @see https://tailwindcss.com/docs/border-width
2708
+ */
2709
+ "border-w": [{
2710
+ border: scaleBorderWidth()
2711
+ }],
2712
+ /**
2713
+ * Border Width X
2714
+ * @see https://tailwindcss.com/docs/border-width
2715
+ */
2716
+ "border-w-x": [{
2717
+ "border-x": scaleBorderWidth()
2718
+ }],
2719
+ /**
2720
+ * Border Width Y
2721
+ * @see https://tailwindcss.com/docs/border-width
2722
+ */
2723
+ "border-w-y": [{
2724
+ "border-y": scaleBorderWidth()
2725
+ }],
2726
+ /**
2727
+ * Border Width Start
2728
+ * @see https://tailwindcss.com/docs/border-width
2729
+ */
2730
+ "border-w-s": [{
2731
+ "border-s": scaleBorderWidth()
2732
+ }],
2733
+ /**
2734
+ * Border Width End
2735
+ * @see https://tailwindcss.com/docs/border-width
2736
+ */
2737
+ "border-w-e": [{
2738
+ "border-e": scaleBorderWidth()
2739
+ }],
2740
+ /**
2741
+ * Border Width Top
2742
+ * @see https://tailwindcss.com/docs/border-width
2743
+ */
2744
+ "border-w-t": [{
2745
+ "border-t": scaleBorderWidth()
2746
+ }],
2747
+ /**
2748
+ * Border Width Right
2749
+ * @see https://tailwindcss.com/docs/border-width
2750
+ */
2751
+ "border-w-r": [{
2752
+ "border-r": scaleBorderWidth()
2753
+ }],
2754
+ /**
2755
+ * Border Width Bottom
2756
+ * @see https://tailwindcss.com/docs/border-width
2757
+ */
2758
+ "border-w-b": [{
2759
+ "border-b": scaleBorderWidth()
2760
+ }],
2761
+ /**
2762
+ * Border Width Left
2763
+ * @see https://tailwindcss.com/docs/border-width
2764
+ */
2765
+ "border-w-l": [{
2766
+ "border-l": scaleBorderWidth()
2767
+ }],
2768
+ /**
2769
+ * Divide Width X
2770
+ * @see https://tailwindcss.com/docs/border-width#between-children
2771
+ */
2772
+ "divide-x": [{
2773
+ "divide-x": scaleBorderWidth()
2774
+ }],
2775
+ /**
2776
+ * Divide Width X Reverse
2777
+ * @see https://tailwindcss.com/docs/border-width#between-children
2778
+ */
2779
+ "divide-x-reverse": ["divide-x-reverse"],
2780
+ /**
2781
+ * Divide Width Y
2782
+ * @see https://tailwindcss.com/docs/border-width#between-children
2783
+ */
2784
+ "divide-y": [{
2785
+ "divide-y": scaleBorderWidth()
2786
+ }],
2787
+ /**
2788
+ * Divide Width Y Reverse
2789
+ * @see https://tailwindcss.com/docs/border-width#between-children
2790
+ */
2791
+ "divide-y-reverse": ["divide-y-reverse"],
2792
+ /**
2793
+ * Border Style
2794
+ * @see https://tailwindcss.com/docs/border-style
2795
+ */
2796
+ "border-style": [{
2797
+ border: [...scaleLineStyle(), "hidden", "none"]
2798
+ }],
2799
+ /**
2800
+ * Divide Style
2801
+ * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2802
+ */
2803
+ "divide-style": [{
2804
+ divide: [...scaleLineStyle(), "hidden", "none"]
2805
+ }],
2806
+ /**
2807
+ * Border Color
2808
+ * @see https://tailwindcss.com/docs/border-color
2809
+ */
2810
+ "border-color": [{
2811
+ border: scaleColor()
2812
+ }],
2813
+ /**
2814
+ * Border Color X
2815
+ * @see https://tailwindcss.com/docs/border-color
2816
+ */
2817
+ "border-color-x": [{
2818
+ "border-x": scaleColor()
2819
+ }],
2820
+ /**
2821
+ * Border Color Y
2822
+ * @see https://tailwindcss.com/docs/border-color
2823
+ */
2824
+ "border-color-y": [{
2825
+ "border-y": scaleColor()
2826
+ }],
2827
+ /**
2828
+ * Border Color S
2829
+ * @see https://tailwindcss.com/docs/border-color
2830
+ */
2831
+ "border-color-s": [{
2832
+ "border-s": scaleColor()
2833
+ }],
2834
+ /**
2835
+ * Border Color E
2836
+ * @see https://tailwindcss.com/docs/border-color
2837
+ */
2838
+ "border-color-e": [{
2839
+ "border-e": scaleColor()
2840
+ }],
2841
+ /**
2842
+ * Border Color Top
2843
+ * @see https://tailwindcss.com/docs/border-color
2844
+ */
2845
+ "border-color-t": [{
2846
+ "border-t": scaleColor()
2847
+ }],
2848
+ /**
2849
+ * Border Color Right
2850
+ * @see https://tailwindcss.com/docs/border-color
2851
+ */
2852
+ "border-color-r": [{
2853
+ "border-r": scaleColor()
2854
+ }],
2855
+ /**
2856
+ * Border Color Bottom
2857
+ * @see https://tailwindcss.com/docs/border-color
2858
+ */
2859
+ "border-color-b": [{
2860
+ "border-b": scaleColor()
2861
+ }],
2862
+ /**
2863
+ * Border Color Left
2864
+ * @see https://tailwindcss.com/docs/border-color
2865
+ */
2866
+ "border-color-l": [{
2867
+ "border-l": scaleColor()
2868
+ }],
2869
+ /**
2870
+ * Divide Color
2871
+ * @see https://tailwindcss.com/docs/divide-color
2872
+ */
2873
+ "divide-color": [{
2874
+ divide: scaleColor()
2875
+ }],
2876
+ /**
2877
+ * Outline Style
2878
+ * @see https://tailwindcss.com/docs/outline-style
2879
+ */
2880
+ "outline-style": [{
2881
+ outline: [...scaleLineStyle(), "none", "hidden"]
2882
+ }],
2883
+ /**
2884
+ * Outline Offset
2885
+ * @see https://tailwindcss.com/docs/outline-offset
2886
+ */
2887
+ "outline-offset": [{
2888
+ "outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
2889
+ }],
2890
+ /**
2891
+ * Outline Width
2892
+ * @see https://tailwindcss.com/docs/outline-width
2893
+ */
2894
+ "outline-w": [{
2895
+ outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
2896
+ }],
2897
+ /**
2898
+ * Outline Color
2899
+ * @see https://tailwindcss.com/docs/outline-color
2900
+ */
2901
+ "outline-color": [{
2902
+ outline: scaleColor()
2903
+ }],
2904
+ // ---------------
2905
+ // --- Effects ---
2906
+ // ---------------
2907
+ /**
2908
+ * Box Shadow
2909
+ * @see https://tailwindcss.com/docs/box-shadow
2910
+ */
2911
+ shadow: [{
2912
+ shadow: [
2913
+ // Deprecated since Tailwind CSS v4.0.0
2914
+ "",
2915
+ "none",
2916
+ themeShadow,
2917
+ isArbitraryVariableShadow,
2918
+ isArbitraryShadow
2919
+ ]
2920
+ }],
2921
+ /**
2922
+ * Box Shadow Color
2923
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2924
+ */
2925
+ "shadow-color": [{
2926
+ shadow: scaleColor()
2927
+ }],
2928
+ /**
2929
+ * Inset Box Shadow
2930
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2931
+ */
2932
+ "inset-shadow": [{
2933
+ "inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
2934
+ }],
2935
+ /**
2936
+ * Inset Box Shadow Color
2937
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2938
+ */
2939
+ "inset-shadow-color": [{
2940
+ "inset-shadow": scaleColor()
2941
+ }],
2942
+ /**
2943
+ * Ring Width
2944
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2945
+ */
2946
+ "ring-w": [{
2947
+ ring: scaleBorderWidth()
2948
+ }],
2949
+ /**
2950
+ * Ring Width Inset
2951
+ * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
2952
+ * @deprecated since Tailwind CSS v4.0.0
2953
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2954
+ */
2955
+ "ring-w-inset": ["ring-inset"],
2956
+ /**
2957
+ * Ring Color
2958
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2959
+ */
2960
+ "ring-color": [{
2961
+ ring: scaleColor()
2962
+ }],
2963
+ /**
2964
+ * Ring Offset Width
2965
+ * @see https://v3.tailwindcss.com/docs/ring-offset-width
2966
+ * @deprecated since Tailwind CSS v4.0.0
2967
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2968
+ */
2969
+ "ring-offset-w": [{
2970
+ "ring-offset": [isNumber, isArbitraryLength]
2971
+ }],
2972
+ /**
2973
+ * Ring Offset Color
2974
+ * @see https://v3.tailwindcss.com/docs/ring-offset-color
2975
+ * @deprecated since Tailwind CSS v4.0.0
2976
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2977
+ */
2978
+ "ring-offset-color": [{
2979
+ "ring-offset": scaleColor()
2980
+ }],
2981
+ /**
2982
+ * Inset Ring Width
2983
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2984
+ */
2985
+ "inset-ring-w": [{
2986
+ "inset-ring": scaleBorderWidth()
2987
+ }],
2988
+ /**
2989
+ * Inset Ring Color
2990
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2991
+ */
2992
+ "inset-ring-color": [{
2993
+ "inset-ring": scaleColor()
2994
+ }],
2995
+ /**
2996
+ * Text Shadow
2997
+ * @see https://tailwindcss.com/docs/text-shadow
2998
+ */
2999
+ "text-shadow": [{
3000
+ "text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
3001
+ }],
3002
+ /**
3003
+ * Text Shadow Color
3004
+ * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
3005
+ */
3006
+ "text-shadow-color": [{
3007
+ "text-shadow": scaleColor()
3008
+ }],
3009
+ /**
3010
+ * Opacity
3011
+ * @see https://tailwindcss.com/docs/opacity
3012
+ */
3013
+ opacity: [{
3014
+ opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
3015
+ }],
3016
+ /**
3017
+ * Mix Blend Mode
3018
+ * @see https://tailwindcss.com/docs/mix-blend-mode
3019
+ */
3020
+ "mix-blend": [{
3021
+ "mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
3022
+ }],
3023
+ /**
3024
+ * Background Blend Mode
3025
+ * @see https://tailwindcss.com/docs/background-blend-mode
3026
+ */
3027
+ "bg-blend": [{
3028
+ "bg-blend": scaleBlendMode()
3029
+ }],
3030
+ /**
3031
+ * Mask Clip
3032
+ * @see https://tailwindcss.com/docs/mask-clip
3033
+ */
3034
+ "mask-clip": [{
3035
+ "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
3036
+ }, "mask-no-clip"],
3037
+ /**
3038
+ * Mask Composite
3039
+ * @see https://tailwindcss.com/docs/mask-composite
3040
+ */
3041
+ "mask-composite": [{
3042
+ mask: ["add", "subtract", "intersect", "exclude"]
3043
+ }],
3044
+ /**
3045
+ * Mask Image
3046
+ * @see https://tailwindcss.com/docs/mask-image
3047
+ */
3048
+ "mask-image-linear-pos": [{
3049
+ "mask-linear": [isNumber]
3050
+ }],
3051
+ "mask-image-linear-from-pos": [{
3052
+ "mask-linear-from": scaleMaskImagePosition()
3053
+ }],
3054
+ "mask-image-linear-to-pos": [{
3055
+ "mask-linear-to": scaleMaskImagePosition()
3056
+ }],
3057
+ "mask-image-linear-from-color": [{
3058
+ "mask-linear-from": scaleColor()
3059
+ }],
3060
+ "mask-image-linear-to-color": [{
3061
+ "mask-linear-to": scaleColor()
3062
+ }],
3063
+ "mask-image-t-from-pos": [{
3064
+ "mask-t-from": scaleMaskImagePosition()
3065
+ }],
3066
+ "mask-image-t-to-pos": [{
3067
+ "mask-t-to": scaleMaskImagePosition()
3068
+ }],
3069
+ "mask-image-t-from-color": [{
3070
+ "mask-t-from": scaleColor()
3071
+ }],
3072
+ "mask-image-t-to-color": [{
3073
+ "mask-t-to": scaleColor()
3074
+ }],
3075
+ "mask-image-r-from-pos": [{
3076
+ "mask-r-from": scaleMaskImagePosition()
3077
+ }],
3078
+ "mask-image-r-to-pos": [{
3079
+ "mask-r-to": scaleMaskImagePosition()
3080
+ }],
3081
+ "mask-image-r-from-color": [{
3082
+ "mask-r-from": scaleColor()
3083
+ }],
3084
+ "mask-image-r-to-color": [{
3085
+ "mask-r-to": scaleColor()
3086
+ }],
3087
+ "mask-image-b-from-pos": [{
3088
+ "mask-b-from": scaleMaskImagePosition()
3089
+ }],
3090
+ "mask-image-b-to-pos": [{
3091
+ "mask-b-to": scaleMaskImagePosition()
3092
+ }],
3093
+ "mask-image-b-from-color": [{
3094
+ "mask-b-from": scaleColor()
3095
+ }],
3096
+ "mask-image-b-to-color": [{
3097
+ "mask-b-to": scaleColor()
3098
+ }],
3099
+ "mask-image-l-from-pos": [{
3100
+ "mask-l-from": scaleMaskImagePosition()
3101
+ }],
3102
+ "mask-image-l-to-pos": [{
3103
+ "mask-l-to": scaleMaskImagePosition()
3104
+ }],
3105
+ "mask-image-l-from-color": [{
3106
+ "mask-l-from": scaleColor()
3107
+ }],
3108
+ "mask-image-l-to-color": [{
3109
+ "mask-l-to": scaleColor()
3110
+ }],
3111
+ "mask-image-x-from-pos": [{
3112
+ "mask-x-from": scaleMaskImagePosition()
3113
+ }],
3114
+ "mask-image-x-to-pos": [{
3115
+ "mask-x-to": scaleMaskImagePosition()
3116
+ }],
3117
+ "mask-image-x-from-color": [{
3118
+ "mask-x-from": scaleColor()
3119
+ }],
3120
+ "mask-image-x-to-color": [{
3121
+ "mask-x-to": scaleColor()
3122
+ }],
3123
+ "mask-image-y-from-pos": [{
3124
+ "mask-y-from": scaleMaskImagePosition()
3125
+ }],
3126
+ "mask-image-y-to-pos": [{
3127
+ "mask-y-to": scaleMaskImagePosition()
3128
+ }],
3129
+ "mask-image-y-from-color": [{
3130
+ "mask-y-from": scaleColor()
3131
+ }],
3132
+ "mask-image-y-to-color": [{
3133
+ "mask-y-to": scaleColor()
3134
+ }],
3135
+ "mask-image-radial": [{
3136
+ "mask-radial": [isArbitraryVariable, isArbitraryValue]
3137
+ }],
3138
+ "mask-image-radial-from-pos": [{
3139
+ "mask-radial-from": scaleMaskImagePosition()
3140
+ }],
3141
+ "mask-image-radial-to-pos": [{
3142
+ "mask-radial-to": scaleMaskImagePosition()
3143
+ }],
3144
+ "mask-image-radial-from-color": [{
3145
+ "mask-radial-from": scaleColor()
3146
+ }],
3147
+ "mask-image-radial-to-color": [{
3148
+ "mask-radial-to": scaleColor()
3149
+ }],
3150
+ "mask-image-radial-shape": [{
3151
+ "mask-radial": ["circle", "ellipse"]
3152
+ }],
3153
+ "mask-image-radial-size": [{
3154
+ "mask-radial": [{
3155
+ closest: ["side", "corner"],
3156
+ farthest: ["side", "corner"]
3157
+ }]
3158
+ }],
3159
+ "mask-image-radial-pos": [{
3160
+ "mask-radial-at": scalePosition()
3161
+ }],
3162
+ "mask-image-conic-pos": [{
3163
+ "mask-conic": [isNumber]
3164
+ }],
3165
+ "mask-image-conic-from-pos": [{
3166
+ "mask-conic-from": scaleMaskImagePosition()
3167
+ }],
3168
+ "mask-image-conic-to-pos": [{
3169
+ "mask-conic-to": scaleMaskImagePosition()
3170
+ }],
3171
+ "mask-image-conic-from-color": [{
3172
+ "mask-conic-from": scaleColor()
3173
+ }],
3174
+ "mask-image-conic-to-color": [{
3175
+ "mask-conic-to": scaleColor()
3176
+ }],
3177
+ /**
3178
+ * Mask Mode
3179
+ * @see https://tailwindcss.com/docs/mask-mode
3180
+ */
3181
+ "mask-mode": [{
3182
+ mask: ["alpha", "luminance", "match"]
3183
+ }],
3184
+ /**
3185
+ * Mask Origin
3186
+ * @see https://tailwindcss.com/docs/mask-origin
3187
+ */
3188
+ "mask-origin": [{
3189
+ "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
3190
+ }],
3191
+ /**
3192
+ * Mask Position
3193
+ * @see https://tailwindcss.com/docs/mask-position
3194
+ */
3195
+ "mask-position": [{
3196
+ mask: scaleBgPosition()
3197
+ }],
3198
+ /**
3199
+ * Mask Repeat
3200
+ * @see https://tailwindcss.com/docs/mask-repeat
3201
+ */
3202
+ "mask-repeat": [{
3203
+ mask: scaleBgRepeat()
3204
+ }],
3205
+ /**
3206
+ * Mask Size
3207
+ * @see https://tailwindcss.com/docs/mask-size
3208
+ */
3209
+ "mask-size": [{
3210
+ mask: scaleBgSize()
3211
+ }],
3212
+ /**
3213
+ * Mask Type
3214
+ * @see https://tailwindcss.com/docs/mask-type
3215
+ */
3216
+ "mask-type": [{
3217
+ "mask-type": ["alpha", "luminance"]
3218
+ }],
3219
+ /**
3220
+ * Mask Image
3221
+ * @see https://tailwindcss.com/docs/mask-image
3222
+ */
3223
+ "mask-image": [{
3224
+ mask: ["none", isArbitraryVariable, isArbitraryValue]
3225
+ }],
3226
+ // ---------------
3227
+ // --- Filters ---
3228
+ // ---------------
3229
+ /**
3230
+ * Filter
3231
+ * @see https://tailwindcss.com/docs/filter
3232
+ */
3233
+ filter: [{
3234
+ filter: [
3235
+ // Deprecated since Tailwind CSS v3.0.0
3236
+ "",
3237
+ "none",
3238
+ isArbitraryVariable,
3239
+ isArbitraryValue
3240
+ ]
3241
+ }],
3242
+ /**
3243
+ * Blur
3244
+ * @see https://tailwindcss.com/docs/blur
3245
+ */
3246
+ blur: [{
3247
+ blur: scaleBlur()
3248
+ }],
3249
+ /**
3250
+ * Brightness
3251
+ * @see https://tailwindcss.com/docs/brightness
3252
+ */
3253
+ brightness: [{
3254
+ brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
3255
+ }],
3256
+ /**
3257
+ * Contrast
3258
+ * @see https://tailwindcss.com/docs/contrast
3259
+ */
3260
+ contrast: [{
3261
+ contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
3262
+ }],
3263
+ /**
3264
+ * Drop Shadow
3265
+ * @see https://tailwindcss.com/docs/drop-shadow
3266
+ */
3267
+ "drop-shadow": [{
3268
+ "drop-shadow": [
3269
+ // Deprecated since Tailwind CSS v4.0.0
3270
+ "",
3271
+ "none",
3272
+ themeDropShadow,
3273
+ isArbitraryVariableShadow,
3274
+ isArbitraryShadow
3275
+ ]
3276
+ }],
3277
+ /**
3278
+ * Drop Shadow Color
3279
+ * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
3280
+ */
3281
+ "drop-shadow-color": [{
3282
+ "drop-shadow": scaleColor()
3283
+ }],
3284
+ /**
3285
+ * Grayscale
3286
+ * @see https://tailwindcss.com/docs/grayscale
3287
+ */
3288
+ grayscale: [{
3289
+ grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
3290
+ }],
3291
+ /**
3292
+ * Hue Rotate
3293
+ * @see https://tailwindcss.com/docs/hue-rotate
3294
+ */
3295
+ "hue-rotate": [{
3296
+ "hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
3297
+ }],
3298
+ /**
3299
+ * Invert
3300
+ * @see https://tailwindcss.com/docs/invert
3301
+ */
3302
+ invert: [{
3303
+ invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
3304
+ }],
3305
+ /**
3306
+ * Saturate
3307
+ * @see https://tailwindcss.com/docs/saturate
3308
+ */
3309
+ saturate: [{
3310
+ saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
3311
+ }],
3312
+ /**
3313
+ * Sepia
3314
+ * @see https://tailwindcss.com/docs/sepia
3315
+ */
3316
+ sepia: [{
3317
+ sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
3318
+ }],
3319
+ /**
3320
+ * Backdrop Filter
3321
+ * @see https://tailwindcss.com/docs/backdrop-filter
3322
+ */
3323
+ "backdrop-filter": [{
3324
+ "backdrop-filter": [
3325
+ // Deprecated since Tailwind CSS v3.0.0
3326
+ "",
3327
+ "none",
3328
+ isArbitraryVariable,
3329
+ isArbitraryValue
3330
+ ]
3331
+ }],
3332
+ /**
3333
+ * Backdrop Blur
3334
+ * @see https://tailwindcss.com/docs/backdrop-blur
3335
+ */
3336
+ "backdrop-blur": [{
3337
+ "backdrop-blur": scaleBlur()
3338
+ }],
3339
+ /**
3340
+ * Backdrop Brightness
3341
+ * @see https://tailwindcss.com/docs/backdrop-brightness
3342
+ */
3343
+ "backdrop-brightness": [{
3344
+ "backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
3345
+ }],
3346
+ /**
3347
+ * Backdrop Contrast
3348
+ * @see https://tailwindcss.com/docs/backdrop-contrast
3349
+ */
3350
+ "backdrop-contrast": [{
3351
+ "backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
3352
+ }],
3353
+ /**
3354
+ * Backdrop Grayscale
3355
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
3356
+ */
3357
+ "backdrop-grayscale": [{
3358
+ "backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
3359
+ }],
3360
+ /**
3361
+ * Backdrop Hue Rotate
3362
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3363
+ */
3364
+ "backdrop-hue-rotate": [{
3365
+ "backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
3366
+ }],
3367
+ /**
3368
+ * Backdrop Invert
3369
+ * @see https://tailwindcss.com/docs/backdrop-invert
3370
+ */
3371
+ "backdrop-invert": [{
3372
+ "backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
3373
+ }],
3374
+ /**
3375
+ * Backdrop Opacity
3376
+ * @see https://tailwindcss.com/docs/backdrop-opacity
3377
+ */
3378
+ "backdrop-opacity": [{
3379
+ "backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
3380
+ }],
3381
+ /**
3382
+ * Backdrop Saturate
3383
+ * @see https://tailwindcss.com/docs/backdrop-saturate
3384
+ */
3385
+ "backdrop-saturate": [{
3386
+ "backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
3387
+ }],
3388
+ /**
3389
+ * Backdrop Sepia
3390
+ * @see https://tailwindcss.com/docs/backdrop-sepia
3391
+ */
3392
+ "backdrop-sepia": [{
3393
+ "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
3394
+ }],
3395
+ // --------------
3396
+ // --- Tables ---
3397
+ // --------------
3398
+ /**
3399
+ * Border Collapse
3400
+ * @see https://tailwindcss.com/docs/border-collapse
3401
+ */
3402
+ "border-collapse": [{
3403
+ border: ["collapse", "separate"]
3404
+ }],
3405
+ /**
3406
+ * Border Spacing
3407
+ * @see https://tailwindcss.com/docs/border-spacing
3408
+ */
3409
+ "border-spacing": [{
3410
+ "border-spacing": scaleUnambiguousSpacing()
3411
+ }],
3412
+ /**
3413
+ * Border Spacing X
3414
+ * @see https://tailwindcss.com/docs/border-spacing
3415
+ */
3416
+ "border-spacing-x": [{
3417
+ "border-spacing-x": scaleUnambiguousSpacing()
3418
+ }],
3419
+ /**
3420
+ * Border Spacing Y
3421
+ * @see https://tailwindcss.com/docs/border-spacing
3422
+ */
3423
+ "border-spacing-y": [{
3424
+ "border-spacing-y": scaleUnambiguousSpacing()
3425
+ }],
3426
+ /**
3427
+ * Table Layout
3428
+ * @see https://tailwindcss.com/docs/table-layout
3429
+ */
3430
+ "table-layout": [{
3431
+ table: ["auto", "fixed"]
3432
+ }],
3433
+ /**
3434
+ * Caption Side
3435
+ * @see https://tailwindcss.com/docs/caption-side
3436
+ */
3437
+ caption: [{
3438
+ caption: ["top", "bottom"]
3439
+ }],
3440
+ // ---------------------------------
3441
+ // --- Transitions and Animation ---
3442
+ // ---------------------------------
3443
+ /**
3444
+ * Transition Property
3445
+ * @see https://tailwindcss.com/docs/transition-property
3446
+ */
3447
+ transition: [{
3448
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
3449
+ }],
3450
+ /**
3451
+ * Transition Behavior
3452
+ * @see https://tailwindcss.com/docs/transition-behavior
3453
+ */
3454
+ "transition-behavior": [{
3455
+ transition: ["normal", "discrete"]
3456
+ }],
3457
+ /**
3458
+ * Transition Duration
3459
+ * @see https://tailwindcss.com/docs/transition-duration
3460
+ */
3461
+ duration: [{
3462
+ duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
3463
+ }],
3464
+ /**
3465
+ * Transition Timing Function
3466
+ * @see https://tailwindcss.com/docs/transition-timing-function
3467
+ */
3468
+ ease: [{
3469
+ ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
3470
+ }],
3471
+ /**
3472
+ * Transition Delay
3473
+ * @see https://tailwindcss.com/docs/transition-delay
3474
+ */
3475
+ delay: [{
3476
+ delay: [isNumber, isArbitraryVariable, isArbitraryValue]
3477
+ }],
3478
+ /**
3479
+ * Animation
3480
+ * @see https://tailwindcss.com/docs/animation
3481
+ */
3482
+ animate: [{
3483
+ animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
3484
+ }],
3485
+ // ------------------
3486
+ // --- Transforms ---
3487
+ // ------------------
3488
+ /**
3489
+ * Backface Visibility
3490
+ * @see https://tailwindcss.com/docs/backface-visibility
3491
+ */
3492
+ backface: [{
3493
+ backface: ["hidden", "visible"]
3494
+ }],
3495
+ /**
3496
+ * Perspective
3497
+ * @see https://tailwindcss.com/docs/perspective
3498
+ */
3499
+ perspective: [{
3500
+ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
3501
+ }],
3502
+ /**
3503
+ * Perspective Origin
3504
+ * @see https://tailwindcss.com/docs/perspective-origin
3505
+ */
3506
+ "perspective-origin": [{
3507
+ "perspective-origin": scalePositionWithArbitrary()
3508
+ }],
3509
+ /**
3510
+ * Rotate
3511
+ * @see https://tailwindcss.com/docs/rotate
3512
+ */
3513
+ rotate: [{
3514
+ rotate: scaleRotate()
3515
+ }],
3516
+ /**
3517
+ * Rotate X
3518
+ * @see https://tailwindcss.com/docs/rotate
3519
+ */
3520
+ "rotate-x": [{
3521
+ "rotate-x": scaleRotate()
3522
+ }],
3523
+ /**
3524
+ * Rotate Y
3525
+ * @see https://tailwindcss.com/docs/rotate
3526
+ */
3527
+ "rotate-y": [{
3528
+ "rotate-y": scaleRotate()
3529
+ }],
3530
+ /**
3531
+ * Rotate Z
3532
+ * @see https://tailwindcss.com/docs/rotate
3533
+ */
3534
+ "rotate-z": [{
3535
+ "rotate-z": scaleRotate()
3536
+ }],
3537
+ /**
3538
+ * Scale
3539
+ * @see https://tailwindcss.com/docs/scale
3540
+ */
3541
+ scale: [{
3542
+ scale: scaleScale()
3543
+ }],
3544
+ /**
3545
+ * Scale X
3546
+ * @see https://tailwindcss.com/docs/scale
3547
+ */
3548
+ "scale-x": [{
3549
+ "scale-x": scaleScale()
3550
+ }],
3551
+ /**
3552
+ * Scale Y
3553
+ * @see https://tailwindcss.com/docs/scale
3554
+ */
3555
+ "scale-y": [{
3556
+ "scale-y": scaleScale()
3557
+ }],
3558
+ /**
3559
+ * Scale Z
3560
+ * @see https://tailwindcss.com/docs/scale
3561
+ */
3562
+ "scale-z": [{
3563
+ "scale-z": scaleScale()
3564
+ }],
3565
+ /**
3566
+ * Scale 3D
3567
+ * @see https://tailwindcss.com/docs/scale
3568
+ */
3569
+ "scale-3d": ["scale-3d"],
3570
+ /**
3571
+ * Skew
3572
+ * @see https://tailwindcss.com/docs/skew
3573
+ */
3574
+ skew: [{
3575
+ skew: scaleSkew()
3576
+ }],
3577
+ /**
3578
+ * Skew X
3579
+ * @see https://tailwindcss.com/docs/skew
3580
+ */
3581
+ "skew-x": [{
3582
+ "skew-x": scaleSkew()
3583
+ }],
3584
+ /**
3585
+ * Skew Y
3586
+ * @see https://tailwindcss.com/docs/skew
3587
+ */
3588
+ "skew-y": [{
3589
+ "skew-y": scaleSkew()
3590
+ }],
3591
+ /**
3592
+ * Transform
3593
+ * @see https://tailwindcss.com/docs/transform
3594
+ */
3595
+ transform: [{
3596
+ transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
3597
+ }],
3598
+ /**
3599
+ * Transform Origin
3600
+ * @see https://tailwindcss.com/docs/transform-origin
3601
+ */
3602
+ "transform-origin": [{
3603
+ origin: scalePositionWithArbitrary()
3604
+ }],
3605
+ /**
3606
+ * Transform Style
3607
+ * @see https://tailwindcss.com/docs/transform-style
3608
+ */
3609
+ "transform-style": [{
3610
+ transform: ["3d", "flat"]
3611
+ }],
3612
+ /**
3613
+ * Translate
3614
+ * @see https://tailwindcss.com/docs/translate
3615
+ */
3616
+ translate: [{
3617
+ translate: scaleTranslate()
3618
+ }],
3619
+ /**
3620
+ * Translate X
3621
+ * @see https://tailwindcss.com/docs/translate
3622
+ */
3623
+ "translate-x": [{
3624
+ "translate-x": scaleTranslate()
3625
+ }],
3626
+ /**
3627
+ * Translate Y
3628
+ * @see https://tailwindcss.com/docs/translate
3629
+ */
3630
+ "translate-y": [{
3631
+ "translate-y": scaleTranslate()
3632
+ }],
3633
+ /**
3634
+ * Translate Z
3635
+ * @see https://tailwindcss.com/docs/translate
3636
+ */
3637
+ "translate-z": [{
3638
+ "translate-z": scaleTranslate()
3639
+ }],
3640
+ /**
3641
+ * Translate None
3642
+ * @see https://tailwindcss.com/docs/translate
3643
+ */
3644
+ "translate-none": ["translate-none"],
3645
+ // ---------------------
3646
+ // --- Interactivity ---
3647
+ // ---------------------
3648
+ /**
3649
+ * Accent Color
3650
+ * @see https://tailwindcss.com/docs/accent-color
3651
+ */
3652
+ accent: [{
3653
+ accent: scaleColor()
3654
+ }],
3655
+ /**
3656
+ * Appearance
3657
+ * @see https://tailwindcss.com/docs/appearance
3658
+ */
3659
+ appearance: [{
3660
+ appearance: ["none", "auto"]
3661
+ }],
3662
+ /**
3663
+ * Caret Color
3664
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3665
+ */
3666
+ "caret-color": [{
3667
+ caret: scaleColor()
3668
+ }],
3669
+ /**
3670
+ * Color Scheme
3671
+ * @see https://tailwindcss.com/docs/color-scheme
3672
+ */
3673
+ "color-scheme": [{
3674
+ scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
3675
+ }],
3676
+ /**
3677
+ * Cursor
3678
+ * @see https://tailwindcss.com/docs/cursor
3679
+ */
3680
+ cursor: [{
3681
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryVariable, isArbitraryValue]
3682
+ }],
3683
+ /**
3684
+ * Field Sizing
3685
+ * @see https://tailwindcss.com/docs/field-sizing
3686
+ */
3687
+ "field-sizing": [{
3688
+ "field-sizing": ["fixed", "content"]
3689
+ }],
3690
+ /**
3691
+ * Pointer Events
3692
+ * @see https://tailwindcss.com/docs/pointer-events
3693
+ */
3694
+ "pointer-events": [{
3695
+ "pointer-events": ["auto", "none"]
3696
+ }],
3697
+ /**
3698
+ * Resize
3699
+ * @see https://tailwindcss.com/docs/resize
3700
+ */
3701
+ resize: [{
3702
+ resize: ["none", "", "y", "x"]
3703
+ }],
3704
+ /**
3705
+ * Scroll Behavior
3706
+ * @see https://tailwindcss.com/docs/scroll-behavior
3707
+ */
3708
+ "scroll-behavior": [{
3709
+ scroll: ["auto", "smooth"]
3710
+ }],
3711
+ /**
3712
+ * Scroll Margin
3713
+ * @see https://tailwindcss.com/docs/scroll-margin
3714
+ */
3715
+ "scroll-m": [{
3716
+ "scroll-m": scaleUnambiguousSpacing()
3717
+ }],
3718
+ /**
3719
+ * Scroll Margin X
3720
+ * @see https://tailwindcss.com/docs/scroll-margin
3721
+ */
3722
+ "scroll-mx": [{
3723
+ "scroll-mx": scaleUnambiguousSpacing()
3724
+ }],
3725
+ /**
3726
+ * Scroll Margin Y
3727
+ * @see https://tailwindcss.com/docs/scroll-margin
3728
+ */
3729
+ "scroll-my": [{
3730
+ "scroll-my": scaleUnambiguousSpacing()
3731
+ }],
3732
+ /**
3733
+ * Scroll Margin Start
3734
+ * @see https://tailwindcss.com/docs/scroll-margin
3735
+ */
3736
+ "scroll-ms": [{
3737
+ "scroll-ms": scaleUnambiguousSpacing()
3738
+ }],
3739
+ /**
3740
+ * Scroll Margin End
3741
+ * @see https://tailwindcss.com/docs/scroll-margin
3742
+ */
3743
+ "scroll-me": [{
3744
+ "scroll-me": scaleUnambiguousSpacing()
3745
+ }],
3746
+ /**
3747
+ * Scroll Margin Top
3748
+ * @see https://tailwindcss.com/docs/scroll-margin
3749
+ */
3750
+ "scroll-mt": [{
3751
+ "scroll-mt": scaleUnambiguousSpacing()
3752
+ }],
3753
+ /**
3754
+ * Scroll Margin Right
3755
+ * @see https://tailwindcss.com/docs/scroll-margin
3756
+ */
3757
+ "scroll-mr": [{
3758
+ "scroll-mr": scaleUnambiguousSpacing()
3759
+ }],
3760
+ /**
3761
+ * Scroll Margin Bottom
3762
+ * @see https://tailwindcss.com/docs/scroll-margin
3763
+ */
3764
+ "scroll-mb": [{
3765
+ "scroll-mb": scaleUnambiguousSpacing()
3766
+ }],
3767
+ /**
3768
+ * Scroll Margin Left
3769
+ * @see https://tailwindcss.com/docs/scroll-margin
3770
+ */
3771
+ "scroll-ml": [{
3772
+ "scroll-ml": scaleUnambiguousSpacing()
3773
+ }],
3774
+ /**
3775
+ * Scroll Padding
3776
+ * @see https://tailwindcss.com/docs/scroll-padding
3777
+ */
3778
+ "scroll-p": [{
3779
+ "scroll-p": scaleUnambiguousSpacing()
3780
+ }],
3781
+ /**
3782
+ * Scroll Padding X
3783
+ * @see https://tailwindcss.com/docs/scroll-padding
3784
+ */
3785
+ "scroll-px": [{
3786
+ "scroll-px": scaleUnambiguousSpacing()
3787
+ }],
3788
+ /**
3789
+ * Scroll Padding Y
3790
+ * @see https://tailwindcss.com/docs/scroll-padding
3791
+ */
3792
+ "scroll-py": [{
3793
+ "scroll-py": scaleUnambiguousSpacing()
3794
+ }],
3795
+ /**
3796
+ * Scroll Padding Start
3797
+ * @see https://tailwindcss.com/docs/scroll-padding
3798
+ */
3799
+ "scroll-ps": [{
3800
+ "scroll-ps": scaleUnambiguousSpacing()
3801
+ }],
3802
+ /**
3803
+ * Scroll Padding End
3804
+ * @see https://tailwindcss.com/docs/scroll-padding
3805
+ */
3806
+ "scroll-pe": [{
3807
+ "scroll-pe": scaleUnambiguousSpacing()
3808
+ }],
3809
+ /**
3810
+ * Scroll Padding Top
3811
+ * @see https://tailwindcss.com/docs/scroll-padding
3812
+ */
3813
+ "scroll-pt": [{
3814
+ "scroll-pt": scaleUnambiguousSpacing()
3815
+ }],
3816
+ /**
3817
+ * Scroll Padding Right
3818
+ * @see https://tailwindcss.com/docs/scroll-padding
3819
+ */
3820
+ "scroll-pr": [{
3821
+ "scroll-pr": scaleUnambiguousSpacing()
3822
+ }],
3823
+ /**
3824
+ * Scroll Padding Bottom
3825
+ * @see https://tailwindcss.com/docs/scroll-padding
3826
+ */
3827
+ "scroll-pb": [{
3828
+ "scroll-pb": scaleUnambiguousSpacing()
3829
+ }],
3830
+ /**
3831
+ * Scroll Padding Left
3832
+ * @see https://tailwindcss.com/docs/scroll-padding
3833
+ */
3834
+ "scroll-pl": [{
3835
+ "scroll-pl": scaleUnambiguousSpacing()
3836
+ }],
3837
+ /**
3838
+ * Scroll Snap Align
3839
+ * @see https://tailwindcss.com/docs/scroll-snap-align
3840
+ */
3841
+ "snap-align": [{
3842
+ snap: ["start", "end", "center", "align-none"]
3843
+ }],
3844
+ /**
3845
+ * Scroll Snap Stop
3846
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
3847
+ */
3848
+ "snap-stop": [{
3849
+ snap: ["normal", "always"]
3850
+ }],
3851
+ /**
3852
+ * Scroll Snap Type
3853
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3854
+ */
3855
+ "snap-type": [{
3856
+ snap: ["none", "x", "y", "both"]
3857
+ }],
3858
+ /**
3859
+ * Scroll Snap Type Strictness
3860
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3861
+ */
3862
+ "snap-strictness": [{
3863
+ snap: ["mandatory", "proximity"]
3864
+ }],
3865
+ /**
3866
+ * Touch Action
3867
+ * @see https://tailwindcss.com/docs/touch-action
3868
+ */
3869
+ touch: [{
3870
+ touch: ["auto", "none", "manipulation"]
3871
+ }],
3872
+ /**
3873
+ * Touch Action X
3874
+ * @see https://tailwindcss.com/docs/touch-action
3875
+ */
3876
+ "touch-x": [{
3877
+ "touch-pan": ["x", "left", "right"]
3878
+ }],
3879
+ /**
3880
+ * Touch Action Y
3881
+ * @see https://tailwindcss.com/docs/touch-action
3882
+ */
3883
+ "touch-y": [{
3884
+ "touch-pan": ["y", "up", "down"]
3885
+ }],
3886
+ /**
3887
+ * Touch Action Pinch Zoom
3888
+ * @see https://tailwindcss.com/docs/touch-action
3889
+ */
3890
+ "touch-pz": ["touch-pinch-zoom"],
3891
+ /**
3892
+ * User Select
3893
+ * @see https://tailwindcss.com/docs/user-select
3894
+ */
3895
+ select: [{
3896
+ select: ["none", "text", "all", "auto"]
3897
+ }],
3898
+ /**
3899
+ * Will Change
3900
+ * @see https://tailwindcss.com/docs/will-change
3901
+ */
3902
+ "will-change": [{
3903
+ "will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
3904
+ }],
3905
+ // -----------
3906
+ // --- SVG ---
3907
+ // -----------
3908
+ /**
3909
+ * Fill
3910
+ * @see https://tailwindcss.com/docs/fill
3911
+ */
3912
+ fill: [{
3913
+ fill: ["none", ...scaleColor()]
3914
+ }],
3915
+ /**
3916
+ * Stroke Width
3917
+ * @see https://tailwindcss.com/docs/stroke-width
3918
+ */
3919
+ "stroke-w": [{
3920
+ stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
3921
+ }],
3922
+ /**
3923
+ * Stroke
3924
+ * @see https://tailwindcss.com/docs/stroke
3925
+ */
3926
+ stroke: [{
3927
+ stroke: ["none", ...scaleColor()]
3928
+ }],
3929
+ // ---------------------
3930
+ // --- Accessibility ---
3931
+ // ---------------------
3932
+ /**
3933
+ * Forced Color Adjust
3934
+ * @see https://tailwindcss.com/docs/forced-color-adjust
3935
+ */
3936
+ "forced-color-adjust": [{
3937
+ "forced-color-adjust": ["auto", "none"]
3938
+ }]
3939
+ },
3940
+ conflictingClassGroups: {
3941
+ overflow: ["overflow-x", "overflow-y"],
3942
+ overscroll: ["overscroll-x", "overscroll-y"],
3943
+ inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
3944
+ "inset-x": ["right", "left"],
3945
+ "inset-y": ["top", "bottom"],
3946
+ flex: ["basis", "grow", "shrink"],
3947
+ gap: ["gap-x", "gap-y"],
3948
+ p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
3949
+ px: ["pr", "pl"],
3950
+ py: ["pt", "pb"],
3951
+ m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
3952
+ mx: ["mr", "ml"],
3953
+ my: ["mt", "mb"],
3954
+ size: ["w", "h"],
3955
+ "font-size": ["leading"],
3956
+ "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
3957
+ "fvn-ordinal": ["fvn-normal"],
3958
+ "fvn-slashed-zero": ["fvn-normal"],
3959
+ "fvn-figure": ["fvn-normal"],
3960
+ "fvn-spacing": ["fvn-normal"],
3961
+ "fvn-fraction": ["fvn-normal"],
3962
+ "line-clamp": ["display", "overflow"],
3963
+ rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
3964
+ "rounded-s": ["rounded-ss", "rounded-es"],
3965
+ "rounded-e": ["rounded-se", "rounded-ee"],
3966
+ "rounded-t": ["rounded-tl", "rounded-tr"],
3967
+ "rounded-r": ["rounded-tr", "rounded-br"],
3968
+ "rounded-b": ["rounded-br", "rounded-bl"],
3969
+ "rounded-l": ["rounded-tl", "rounded-bl"],
3970
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
3971
+ "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
3972
+ "border-w-x": ["border-w-r", "border-w-l"],
3973
+ "border-w-y": ["border-w-t", "border-w-b"],
3974
+ "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
3975
+ "border-color-x": ["border-color-r", "border-color-l"],
3976
+ "border-color-y": ["border-color-t", "border-color-b"],
3977
+ translate: ["translate-x", "translate-y", "translate-none"],
3978
+ "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
3979
+ "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
3980
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
3981
+ "scroll-my": ["scroll-mt", "scroll-mb"],
3982
+ "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
3983
+ "scroll-px": ["scroll-pr", "scroll-pl"],
3984
+ "scroll-py": ["scroll-pt", "scroll-pb"],
3985
+ touch: ["touch-x", "touch-y", "touch-pz"],
3986
+ "touch-x": ["touch"],
3987
+ "touch-y": ["touch"],
3988
+ "touch-pz": ["touch"]
3989
+ },
3990
+ conflictingClassGroupModifiers: {
3991
+ "font-size": ["leading"]
3992
+ },
3993
+ orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3994
+ };
3995
+ };
3996
+ const twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
1045
3997
  function cn(...inputs) {
1046
3998
  return twMerge(clsx(inputs));
1047
3999
  }
@@ -2071,31 +5023,31 @@ function makeMinimalValueForGQLPrimitiveNode(primitiveTypeNode, existingFieldVal
2071
5023
  }
2072
5024
  switch (name2) {
2073
5025
  case ID_GQL_PRIMITIVE_NAME: {
2074
- if (stringType().safeParse(existingFieldValue).success) {
5026
+ if (z.string().safeParse(existingFieldValue).success) {
2075
5027
  return existingFieldValue;
2076
5028
  }
2077
5029
  return isNonNull ? "placeholder-id" : null;
2078
5030
  }
2079
5031
  case BOOLEAN_GQL_PRIMITIVE_NAME: {
2080
- if (booleanType().safeParse(existingFieldValue).success) {
5032
+ if (z.boolean().safeParse(existingFieldValue).success) {
2081
5033
  return existingFieldValue;
2082
5034
  }
2083
5035
  return isNonNull ? false : null;
2084
5036
  }
2085
5037
  case INT_GQL_PRIMITIVE_NAME: {
2086
- if (numberType().safeParse(existingFieldValue).success) {
5038
+ if (z.number().safeParse(existingFieldValue).success) {
2087
5039
  return existingFieldValue;
2088
5040
  }
2089
5041
  return isNonNull ? 0 : null;
2090
5042
  }
2091
5043
  case FLOAT_GQL_PRIMITIVE_NAME: {
2092
- if (numberType().safeParse(existingFieldValue).success) {
5044
+ if (z.number().safeParse(existingFieldValue).success) {
2093
5045
  return existingFieldValue;
2094
5046
  }
2095
5047
  return isNonNull ? 0 : null;
2096
5048
  }
2097
5049
  case STRING_GQL_PRIMITIVE_NAME: {
2098
- if (stringType().safeParse(existingFieldValue).success) {
5050
+ if (z.string().safeParse(existingFieldValue).success) {
2099
5051
  return existingFieldValue;
2100
5052
  }
2101
5053
  return isNonNull ? "" : null;
@@ -9148,20 +12100,20 @@ var validatorExports = /* @__PURE__ */ requireValidator();
9148
12100
  const validator = /* @__PURE__ */ getDefaultExportFromCjs(validatorExports);
9149
12101
  function createNameSchema(options = {}) {
9150
12102
  const { required = false, allowEmpty = false, unique = [] } = options;
9151
- const baseSchema = allowEmpty ? stringType() : stringType().min(1);
12103
+ const baseSchema = allowEmpty ? z.string() : z.string().min(1);
9152
12104
  const uniqueRefinement = baseSchema.refine((value) => {
9153
12105
  if (!value && allowEmpty)
9154
12106
  return true;
9155
12107
  return !unique.map((n2) => n2.toLowerCase()).includes(value.replace(/^\s+|\s+$/g, "_").toLowerCase());
9156
12108
  }, { message: "Item with this name already exists" });
9157
12109
  if (!required) {
9158
- return unique.length > 0 ? stringType().optional().refine((value) => {
12110
+ return unique.length > 0 ? z.string().optional().refine((value) => {
9159
12111
  if (value === void 0)
9160
12112
  return true;
9161
12113
  if (!value && allowEmpty)
9162
12114
  return true;
9163
12115
  return !unique.map((n2) => n2.toLowerCase()).includes(value.replace(/^\s+|\s+$/g, "_").toLowerCase());
9164
- }, { message: "Item with this name already exists" }) : stringType().optional();
12116
+ }, { message: "Item with this name already exists" }) : z.string().optional();
9165
12117
  }
9166
12118
  return unique.length > 0 ? uniqueRefinement : baseSchema;
9167
12119
  }
@@ -9181,9 +12133,9 @@ function toLowercaseSnakeCase(value, options = {}) {
9181
12133
  function toConstantCase(value, options = {}) {
9182
12134
  return createConstantCaseSchema(options).parse(constantCase(value));
9183
12135
  }
9184
- objectType({
12136
+ z.object({
9185
12137
  name: createNameSchema({ allowEmpty: true }),
9186
- website: unionType([stringType().url(), literalType("")]).optional().default("")
12138
+ website: z.union([z.string().url(), z.literal("")]).optional().default("")
9187
12139
  }).default({
9188
12140
  name: "",
9189
12141
  website: ""
@@ -9226,10 +12178,10 @@ var Label$1 = React.forwardRef((props, forwardedRef) => {
9226
12178
  );
9227
12179
  });
9228
12180
  Label$1.displayName = NAME;
9229
- var Root = Label$1;
12181
+ var Root$1 = Label$1;
9230
12182
  const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
9231
- const Label = React.forwardRef(({ className, ...props }, ref) => jsx(Root, { ref, className: cn(labelVariants(), className), ...props }));
9232
- Label.displayName = Root.displayName;
12183
+ const Label = React.forwardRef(({ className, ...props }, ref) => jsx(Root$1, { ref, className: cn(labelVariants(), className), ...props }));
12184
+ Label.displayName = Root$1.displayName;
9233
12185
  const Form = FormProvider;
9234
12186
  const FormField = ({ ...props }) => {
9235
12187
  return jsx(FormFieldContext.Provider, { value: { name: props.name }, children: jsx(Controller, { ...props }) });
@@ -9296,7 +12248,7 @@ const TextField = forwardRef(({ name: name2, value, onSubmit, label, placeholder
9296
12248
  textareaRef.current.focus();
9297
12249
  }
9298
12250
  }, [focusOnMount]);
9299
- const fieldSchema = objectType({
12251
+ const fieldSchema = z.object({
9300
12252
  [name2]: createNameSchema({ required, allowEmpty, unique })
9301
12253
  });
9302
12254
  const form = useForm({
@@ -9359,13 +12311,13 @@ const TextField = forwardRef(({ name: name2, value, onSubmit, label, placeholder
9359
12311
  }, onKeyDown: onEnterKeyDown, rows, className }) }), jsx(FormMessage, {})] }) }) });
9360
12312
  });
9361
12313
  TextField.displayName = "TextField";
9362
- objectType({
9363
- name: stringType(),
9364
- documentType: stringType(),
9365
- extension: stringType(),
9366
- description: stringType(),
9367
- authorName: stringType(),
9368
- authorWebsite: stringType()
12314
+ z.object({
12315
+ name: z.string(),
12316
+ documentType: z.string(),
12317
+ extension: z.string(),
12318
+ description: z.string(),
12319
+ authorName: z.string(),
12320
+ authorWebsite: z.string()
9369
12321
  });
9370
12322
  function ModelMetadata(props) {
9371
12323
  return jsxs("div", { children: [jsx(ModelNameForm, { ...props }), jsx("div", { className: "flex h-full flex-col gap-4", children: jsxs("div", { className: "grid flex-1 grid-cols-3 items-start gap-4", children: [jsxs("div", { className: "col-span-2 flex h-full flex-col gap-4", children: [jsx("div", { className: "shrink-0", children: jsx(DocumentTypeForm, { ...props }) }), jsx("div", { className: "min-h-0 flex-1", children: jsx(DescriptionForm, { ...props }) })] }), jsxs("div", { className: "col-span-1 flex flex-col gap-4", children: [jsx(AuthorNameForm, { ...props }), jsx(AuthorWebsiteForm, { ...props }), jsx(ModelExtensionForm, { ...props })] })] }) })] });
@@ -25895,8 +28847,8 @@ function getTypeInfo(schema2, tokenState) {
25895
28847
  inputType = nullableType instanceof GraphQLList ? nullableType.ofType : null;
25896
28848
  break;
25897
28849
  case RuleKinds.OBJECT_VALUE:
25898
- const objectType2 = getNamedType(inputType);
25899
- objectFieldDefs = objectType2 instanceof GraphQLInputObjectType ? objectType2.getFields() : null;
28850
+ const objectType = getNamedType(inputType);
28851
+ objectFieldDefs = objectType instanceof GraphQLInputObjectType ? objectType.getFields() : null;
25900
28852
  break;
25901
28853
  case RuleKinds.OBJECT_FIELD:
25902
28854
  const objectField = state.name && objectFieldDefs ? objectFieldDefs[state.name] : null;
@@ -41994,11 +44946,11 @@ function requireTypeInfo() {
41994
44946
  break;
41995
44947
  }
41996
44948
  case _kinds.Kind.OBJECT_FIELD: {
41997
- const objectType2 = (0, _definition.getNamedType)(this.getInputType());
44949
+ const objectType = (0, _definition.getNamedType)(this.getInputType());
41998
44950
  let inputFieldType;
41999
44951
  let inputField;
42000
- if ((0, _definition.isInputObjectType)(objectType2)) {
42001
- inputField = objectType2.getFields()[node.name.value];
44952
+ if ((0, _definition.isInputObjectType)(objectType)) {
44953
+ inputField = objectType.getFields()[node.name.value];
42002
44954
  if (inputField) {
42003
44955
  inputFieldType = inputField.type;
42004
44956
  }
@@ -46475,6 +49427,456 @@ const JSONEditor = memo(function JSONEditor2(props) {
46475
49427
  useDocumentSync(viewRef.current, doc2);
46476
49428
  return jsx("div", { ref: editorRef });
46477
49429
  });
49430
+ function createCollection(name2) {
49431
+ const PROVIDER_NAME = name2 + "CollectionProvider";
49432
+ const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME);
49433
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
49434
+ PROVIDER_NAME,
49435
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
49436
+ );
49437
+ const CollectionProvider = (props) => {
49438
+ const { scope, children } = props;
49439
+ const ref = React__default.useRef(null);
49440
+ const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
49441
+ return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
49442
+ };
49443
+ CollectionProvider.displayName = PROVIDER_NAME;
49444
+ const COLLECTION_SLOT_NAME = name2 + "CollectionSlot";
49445
+ const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
49446
+ const CollectionSlot = React__default.forwardRef(
49447
+ (props, forwardedRef) => {
49448
+ const { scope, children } = props;
49449
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
49450
+ const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
49451
+ return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
49452
+ }
49453
+ );
49454
+ CollectionSlot.displayName = COLLECTION_SLOT_NAME;
49455
+ const ITEM_SLOT_NAME = name2 + "CollectionItemSlot";
49456
+ const ITEM_DATA_ATTR = "data-radix-collection-item";
49457
+ const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
49458
+ const CollectionItemSlot = React__default.forwardRef(
49459
+ (props, forwardedRef) => {
49460
+ const { scope, children, ...itemData } = props;
49461
+ const ref = React__default.useRef(null);
49462
+ const composedRefs = useComposedRefs(forwardedRef, ref);
49463
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
49464
+ React__default.useEffect(() => {
49465
+ context.itemMap.set(ref, { ref, ...itemData });
49466
+ return () => void context.itemMap.delete(ref);
49467
+ });
49468
+ return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
49469
+ }
49470
+ );
49471
+ CollectionItemSlot.displayName = ITEM_SLOT_NAME;
49472
+ function useCollection2(scope) {
49473
+ const context = useCollectionContext(name2 + "CollectionConsumer", scope);
49474
+ const getItems = React__default.useCallback(() => {
49475
+ const collectionNode = context.collectionRef.current;
49476
+ if (!collectionNode) return [];
49477
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
49478
+ const items = Array.from(context.itemMap.values());
49479
+ const orderedItems = items.sort(
49480
+ (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
49481
+ );
49482
+ return orderedItems;
49483
+ }, [context.collectionRef, context.itemMap]);
49484
+ return getItems;
49485
+ }
49486
+ return [
49487
+ { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
49488
+ useCollection2,
49489
+ createCollectionScope2
49490
+ ];
49491
+ }
49492
+ var DirectionContext = React.createContext(void 0);
49493
+ function useDirection(localDir) {
49494
+ const globalDir = React.useContext(DirectionContext);
49495
+ return localDir || globalDir || "ltr";
49496
+ }
49497
+ var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
49498
+ var EVENT_OPTIONS = { bubbles: false, cancelable: true };
49499
+ var GROUP_NAME = "RovingFocusGroup";
49500
+ var [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);
49501
+ var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(
49502
+ GROUP_NAME,
49503
+ [createCollectionScope]
49504
+ );
49505
+ var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);
49506
+ var RovingFocusGroup = React.forwardRef(
49507
+ (props, forwardedRef) => {
49508
+ return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });
49509
+ }
49510
+ );
49511
+ RovingFocusGroup.displayName = GROUP_NAME;
49512
+ var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
49513
+ const {
49514
+ __scopeRovingFocusGroup,
49515
+ orientation,
49516
+ loop = false,
49517
+ dir,
49518
+ currentTabStopId: currentTabStopIdProp,
49519
+ defaultCurrentTabStopId,
49520
+ onCurrentTabStopIdChange,
49521
+ onEntryFocus,
49522
+ preventScrollOnEntryFocus = false,
49523
+ ...groupProps
49524
+ } = props;
49525
+ const ref = React.useRef(null);
49526
+ const composedRefs = useComposedRefs(forwardedRef, ref);
49527
+ const direction = useDirection(dir);
49528
+ const [currentTabStopId, setCurrentTabStopId] = useControllableState({
49529
+ prop: currentTabStopIdProp,
49530
+ defaultProp: defaultCurrentTabStopId ?? null,
49531
+ onChange: onCurrentTabStopIdChange,
49532
+ caller: GROUP_NAME
49533
+ });
49534
+ const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);
49535
+ const handleEntryFocus = useCallbackRef(onEntryFocus);
49536
+ const getItems = useCollection(__scopeRovingFocusGroup);
49537
+ const isClickFocusRef = React.useRef(false);
49538
+ const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);
49539
+ React.useEffect(() => {
49540
+ const node = ref.current;
49541
+ if (node) {
49542
+ node.addEventListener(ENTRY_FOCUS, handleEntryFocus);
49543
+ return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);
49544
+ }
49545
+ }, [handleEntryFocus]);
49546
+ return /* @__PURE__ */ jsx(
49547
+ RovingFocusProvider,
49548
+ {
49549
+ scope: __scopeRovingFocusGroup,
49550
+ orientation,
49551
+ dir: direction,
49552
+ loop,
49553
+ currentTabStopId,
49554
+ onItemFocus: React.useCallback(
49555
+ (tabStopId) => setCurrentTabStopId(tabStopId),
49556
+ [setCurrentTabStopId]
49557
+ ),
49558
+ onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),
49559
+ onFocusableItemAdd: React.useCallback(
49560
+ () => setFocusableItemsCount((prevCount) => prevCount + 1),
49561
+ []
49562
+ ),
49563
+ onFocusableItemRemove: React.useCallback(
49564
+ () => setFocusableItemsCount((prevCount) => prevCount - 1),
49565
+ []
49566
+ ),
49567
+ children: /* @__PURE__ */ jsx(
49568
+ Primitive.div,
49569
+ {
49570
+ tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
49571
+ "data-orientation": orientation,
49572
+ ...groupProps,
49573
+ ref: composedRefs,
49574
+ style: { outline: "none", ...props.style },
49575
+ onMouseDown: composeEventHandlers(props.onMouseDown, () => {
49576
+ isClickFocusRef.current = true;
49577
+ }),
49578
+ onFocus: composeEventHandlers(props.onFocus, (event) => {
49579
+ const isKeyboardFocus = !isClickFocusRef.current;
49580
+ if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {
49581
+ const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
49582
+ event.currentTarget.dispatchEvent(entryFocusEvent);
49583
+ if (!entryFocusEvent.defaultPrevented) {
49584
+ const items = getItems().filter((item) => item.focusable);
49585
+ const activeItem = items.find((item) => item.active);
49586
+ const currentItem = items.find((item) => item.id === currentTabStopId);
49587
+ const candidateItems = [activeItem, currentItem, ...items].filter(
49588
+ Boolean
49589
+ );
49590
+ const candidateNodes = candidateItems.map((item) => item.ref.current);
49591
+ focusFirst(candidateNodes, preventScrollOnEntryFocus);
49592
+ }
49593
+ }
49594
+ isClickFocusRef.current = false;
49595
+ }),
49596
+ onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))
49597
+ }
49598
+ )
49599
+ }
49600
+ );
49601
+ });
49602
+ var ITEM_NAME = "RovingFocusGroupItem";
49603
+ var RovingFocusGroupItem = React.forwardRef(
49604
+ (props, forwardedRef) => {
49605
+ const {
49606
+ __scopeRovingFocusGroup,
49607
+ focusable = true,
49608
+ active = false,
49609
+ tabStopId,
49610
+ children,
49611
+ ...itemProps
49612
+ } = props;
49613
+ const autoId = useId$1();
49614
+ const id = tabStopId || autoId;
49615
+ const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);
49616
+ const isCurrentTabStop = context.currentTabStopId === id;
49617
+ const getItems = useCollection(__scopeRovingFocusGroup);
49618
+ const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
49619
+ React.useEffect(() => {
49620
+ if (focusable) {
49621
+ onFocusableItemAdd();
49622
+ return () => onFocusableItemRemove();
49623
+ }
49624
+ }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);
49625
+ return /* @__PURE__ */ jsx(
49626
+ Collection.ItemSlot,
49627
+ {
49628
+ scope: __scopeRovingFocusGroup,
49629
+ id,
49630
+ focusable,
49631
+ active,
49632
+ children: /* @__PURE__ */ jsx(
49633
+ Primitive.span,
49634
+ {
49635
+ tabIndex: isCurrentTabStop ? 0 : -1,
49636
+ "data-orientation": context.orientation,
49637
+ ...itemProps,
49638
+ ref: forwardedRef,
49639
+ onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {
49640
+ if (!focusable) event.preventDefault();
49641
+ else context.onItemFocus(id);
49642
+ }),
49643
+ onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),
49644
+ onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
49645
+ if (event.key === "Tab" && event.shiftKey) {
49646
+ context.onItemShiftTab();
49647
+ return;
49648
+ }
49649
+ if (event.target !== event.currentTarget) return;
49650
+ const focusIntent = getFocusIntent(event, context.orientation, context.dir);
49651
+ if (focusIntent !== void 0) {
49652
+ if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;
49653
+ event.preventDefault();
49654
+ const items = getItems().filter((item) => item.focusable);
49655
+ let candidateNodes = items.map((item) => item.ref.current);
49656
+ if (focusIntent === "last") candidateNodes.reverse();
49657
+ else if (focusIntent === "prev" || focusIntent === "next") {
49658
+ if (focusIntent === "prev") candidateNodes.reverse();
49659
+ const currentIndex = candidateNodes.indexOf(event.currentTarget);
49660
+ candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);
49661
+ }
49662
+ setTimeout(() => focusFirst(candidateNodes));
49663
+ }
49664
+ }),
49665
+ children: typeof children === "function" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children
49666
+ }
49667
+ )
49668
+ }
49669
+ );
49670
+ }
49671
+ );
49672
+ RovingFocusGroupItem.displayName = ITEM_NAME;
49673
+ var MAP_KEY_TO_FOCUS_INTENT = {
49674
+ ArrowLeft: "prev",
49675
+ ArrowUp: "prev",
49676
+ ArrowRight: "next",
49677
+ ArrowDown: "next",
49678
+ PageUp: "first",
49679
+ Home: "first",
49680
+ PageDown: "last",
49681
+ End: "last"
49682
+ };
49683
+ function getDirectionAwareKey(key, dir) {
49684
+ if (dir !== "rtl") return key;
49685
+ return key === "ArrowLeft" ? "ArrowRight" : key === "ArrowRight" ? "ArrowLeft" : key;
49686
+ }
49687
+ function getFocusIntent(event, orientation, dir) {
49688
+ const key = getDirectionAwareKey(event.key, dir);
49689
+ if (orientation === "vertical" && ["ArrowLeft", "ArrowRight"].includes(key)) return void 0;
49690
+ if (orientation === "horizontal" && ["ArrowUp", "ArrowDown"].includes(key)) return void 0;
49691
+ return MAP_KEY_TO_FOCUS_INTENT[key];
49692
+ }
49693
+ function focusFirst(candidates, preventScroll = false) {
49694
+ const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
49695
+ for (const candidate of candidates) {
49696
+ if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
49697
+ candidate.focus({ preventScroll });
49698
+ if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
49699
+ }
49700
+ }
49701
+ function wrapArray(array, startIndex) {
49702
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
49703
+ }
49704
+ var Root = RovingFocusGroup;
49705
+ var Item = RovingFocusGroupItem;
49706
+ var TABS_NAME = "Tabs";
49707
+ var [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
49708
+ createRovingFocusGroupScope
49709
+ ]);
49710
+ var useRovingFocusGroupScope = createRovingFocusGroupScope();
49711
+ var [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME);
49712
+ var Tabs$1 = React.forwardRef(
49713
+ (props, forwardedRef) => {
49714
+ const {
49715
+ __scopeTabs,
49716
+ value: valueProp,
49717
+ onValueChange,
49718
+ defaultValue,
49719
+ orientation = "horizontal",
49720
+ dir,
49721
+ activationMode = "automatic",
49722
+ ...tabsProps
49723
+ } = props;
49724
+ const direction = useDirection(dir);
49725
+ const [value, setValue] = useControllableState({
49726
+ prop: valueProp,
49727
+ onChange: onValueChange,
49728
+ defaultProp: defaultValue ?? "",
49729
+ caller: TABS_NAME
49730
+ });
49731
+ return /* @__PURE__ */ jsx(
49732
+ TabsProvider,
49733
+ {
49734
+ scope: __scopeTabs,
49735
+ baseId: useId$1(),
49736
+ value,
49737
+ onValueChange: setValue,
49738
+ orientation,
49739
+ dir: direction,
49740
+ activationMode,
49741
+ children: /* @__PURE__ */ jsx(
49742
+ Primitive.div,
49743
+ {
49744
+ dir: direction,
49745
+ "data-orientation": orientation,
49746
+ ...tabsProps,
49747
+ ref: forwardedRef
49748
+ }
49749
+ )
49750
+ }
49751
+ );
49752
+ }
49753
+ );
49754
+ Tabs$1.displayName = TABS_NAME;
49755
+ var TAB_LIST_NAME = "TabsList";
49756
+ var TabsList$1 = React.forwardRef(
49757
+ (props, forwardedRef) => {
49758
+ const { __scopeTabs, loop = true, ...listProps } = props;
49759
+ const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
49760
+ const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
49761
+ return /* @__PURE__ */ jsx(
49762
+ Root,
49763
+ {
49764
+ asChild: true,
49765
+ ...rovingFocusGroupScope,
49766
+ orientation: context.orientation,
49767
+ dir: context.dir,
49768
+ loop,
49769
+ children: /* @__PURE__ */ jsx(
49770
+ Primitive.div,
49771
+ {
49772
+ role: "tablist",
49773
+ "aria-orientation": context.orientation,
49774
+ ...listProps,
49775
+ ref: forwardedRef
49776
+ }
49777
+ )
49778
+ }
49779
+ );
49780
+ }
49781
+ );
49782
+ TabsList$1.displayName = TAB_LIST_NAME;
49783
+ var TRIGGER_NAME = "TabsTrigger";
49784
+ var TabsTrigger$1 = React.forwardRef(
49785
+ (props, forwardedRef) => {
49786
+ const { __scopeTabs, value, disabled = false, ...triggerProps } = props;
49787
+ const context = useTabsContext(TRIGGER_NAME, __scopeTabs);
49788
+ const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
49789
+ const triggerId = makeTriggerId(context.baseId, value);
49790
+ const contentId = makeContentId(context.baseId, value);
49791
+ const isSelected = value === context.value;
49792
+ return /* @__PURE__ */ jsx(
49793
+ Item,
49794
+ {
49795
+ asChild: true,
49796
+ ...rovingFocusGroupScope,
49797
+ focusable: !disabled,
49798
+ active: isSelected,
49799
+ children: /* @__PURE__ */ jsx(
49800
+ Primitive.button,
49801
+ {
49802
+ type: "button",
49803
+ role: "tab",
49804
+ "aria-selected": isSelected,
49805
+ "aria-controls": contentId,
49806
+ "data-state": isSelected ? "active" : "inactive",
49807
+ "data-disabled": disabled ? "" : void 0,
49808
+ disabled,
49809
+ id: triggerId,
49810
+ ...triggerProps,
49811
+ ref: forwardedRef,
49812
+ onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {
49813
+ if (!disabled && event.button === 0 && event.ctrlKey === false) {
49814
+ context.onValueChange(value);
49815
+ } else {
49816
+ event.preventDefault();
49817
+ }
49818
+ }),
49819
+ onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
49820
+ if ([" ", "Enter"].includes(event.key)) context.onValueChange(value);
49821
+ }),
49822
+ onFocus: composeEventHandlers(props.onFocus, () => {
49823
+ const isAutomaticActivation = context.activationMode !== "manual";
49824
+ if (!isSelected && !disabled && isAutomaticActivation) {
49825
+ context.onValueChange(value);
49826
+ }
49827
+ })
49828
+ }
49829
+ )
49830
+ }
49831
+ );
49832
+ }
49833
+ );
49834
+ TabsTrigger$1.displayName = TRIGGER_NAME;
49835
+ var CONTENT_NAME = "TabsContent";
49836
+ var TabsContent$1 = React.forwardRef(
49837
+ (props, forwardedRef) => {
49838
+ const { __scopeTabs, value, forceMount, children, ...contentProps } = props;
49839
+ const context = useTabsContext(CONTENT_NAME, __scopeTabs);
49840
+ const triggerId = makeTriggerId(context.baseId, value);
49841
+ const contentId = makeContentId(context.baseId, value);
49842
+ const isSelected = value === context.value;
49843
+ const isMountAnimationPreventedRef = React.useRef(isSelected);
49844
+ React.useEffect(() => {
49845
+ const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
49846
+ return () => cancelAnimationFrame(rAF);
49847
+ }, []);
49848
+ return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(
49849
+ Primitive.div,
49850
+ {
49851
+ "data-state": isSelected ? "active" : "inactive",
49852
+ "data-orientation": context.orientation,
49853
+ role: "tabpanel",
49854
+ "aria-labelledby": triggerId,
49855
+ hidden: !present,
49856
+ id: contentId,
49857
+ tabIndex: 0,
49858
+ ...contentProps,
49859
+ ref: forwardedRef,
49860
+ style: {
49861
+ ...props.style,
49862
+ animationDuration: isMountAnimationPreventedRef.current ? "0s" : void 0
49863
+ },
49864
+ children: present && children
49865
+ }
49866
+ ) });
49867
+ }
49868
+ );
49869
+ TabsContent$1.displayName = CONTENT_NAME;
49870
+ function makeTriggerId(baseId, value) {
49871
+ return `${baseId}-trigger-${value}`;
49872
+ }
49873
+ function makeContentId(baseId, value) {
49874
+ return `${baseId}-content-${value}`;
49875
+ }
49876
+ var Root2 = Tabs$1;
49877
+ var List = TabsList$1;
49878
+ var Trigger = TabsTrigger$1;
49879
+ var Content = TabsContent$1;
46478
49880
  const Tabs = Root2;
46479
49881
  const TabsList = React.forwardRef(({ className, ...props }, ref) => jsx(List, { ref, className: cn("flex items-center justify-center rounded-xl bg-slate-50 p-1 shadow-[inset_0px_0px_2px_rgba(255,255,255,0.50)]", className), ...props }));
46480
49882
  TabsList.displayName = List.displayName;
@@ -46702,4 +50104,4 @@ export {
46702
50104
  DocumentModelEditor,
46703
50105
  documentModelEditorModule
46704
50106
  };
46705
- //# sourceMappingURL=index-BgGUWENy.js.map
50107
+ //# sourceMappingURL=index-D8ml-kF6.js.map