@fuf-stack/pixel-utils 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import { ArgumentArray } from "classnames";
2
- import { ConfigExtension } from "tailwind-merge";
3
2
  import { Options } from "slug";
4
- import { VariantProps, heroui } from "@heroui/theme";
5
- import { ClassProp, TV } from "tailwind-variants";
6
3
 
7
4
  //#region src/cn.d.ts
8
5
  /**
@@ -47,6 +44,210 @@ declare const cn: (...classes: ArgumentArray) => string;
47
44
  */
48
45
  declare const isTestEnvironment: () => boolean;
49
46
  //#endregion
47
+ //#region ../../node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/types.d.ts
48
+ /**
49
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
50
+ *
51
+ * Specifically:
52
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
53
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
54
+ *
55
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
56
+ */
57
+ type ClassNameValue = ClassNameArray | string | null | undefined | 0 | 0n | false;
58
+ type ClassNameArray = readonly ClassNameValue[];
59
+ /**
60
+ * Type the tailwind-merge configuration adheres to.
61
+ */
62
+ interface Config$1<ClassGroupIds extends string, ThemeGroupIds extends string> extends ConfigStaticPart, ConfigGroupsPart<ClassGroupIds, ThemeGroupIds> {}
63
+ /**
64
+ * The static part of the tailwind-merge configuration. When merging multiple configurations, the properties of this interface are always overridden.
65
+ */
66
+ interface ConfigStaticPart {
67
+ /**
68
+ * Integer indicating size of LRU cache used for memoizing results.
69
+ * - Cache might be up to twice as big as `cacheSize`
70
+ * - No cache is used for values <= 0
71
+ */
72
+ cacheSize: number;
73
+ /**
74
+ * Prefix added to Tailwind-generated classes
75
+ * @see https://tailwindcss.com/docs/configuration#prefix
76
+ */
77
+ prefix?: string;
78
+ /**
79
+ * Allows to customize parsing of individual classes passed to `twMerge`.
80
+ * All classes passed to `twMerge` outside of cache hits are passed to this function before it is determined whether the class is a valid Tailwind CSS class.
81
+ *
82
+ * This is an experimental feature and may introduce breaking changes in any minor version update.
83
+ */
84
+ experimentalParseClassName?(param: ExperimentalParseClassNameParam): ParsedClassName;
85
+ }
86
+ /**
87
+ * Type of param passed to the `experimentalParseClassName` function.
88
+ *
89
+ * This is an experimental feature and may introduce breaking changes in any minor version update.
90
+ */
91
+ interface ExperimentalParseClassNameParam {
92
+ className: string;
93
+ parseClassName(className: string): ParsedClassName;
94
+ }
95
+ /**
96
+ * Type of the result returned by the `experimentalParseClassName` function.
97
+ *
98
+ * This is an experimental feature and may introduce breaking changes in any minor version update.
99
+ */
100
+ interface ParsedClassName {
101
+ /**
102
+ * Whether the class is external and merging logic should be sipped.
103
+ *
104
+ * If this is `true`, the class will be treated as if it wasn't a Tailwind class and will be passed through as is.
105
+ */
106
+ isExternal?: boolean;
107
+ /**
108
+ * Modifiers of the class in the order they appear in the class.
109
+ *
110
+ * @example ['hover', 'dark'] // for `hover:dark:bg-gray-100`
111
+ */
112
+ modifiers: string[];
113
+ /**
114
+ * Whether the class has an `!important` modifier.
115
+ *
116
+ * @example true // for `hover:dark:!bg-gray-100`
117
+ */
118
+ hasImportantModifier: boolean;
119
+ /**
120
+ * Base class without preceding modifiers.
121
+ *
122
+ * @example 'bg-gray-100' // for `hover:dark:bg-gray-100`
123
+ */
124
+ baseClassName: string;
125
+ /**
126
+ * Index position of a possible postfix modifier in the class.
127
+ * If the class has no postfix modifier, this is `undefined`.
128
+ *
129
+ * This property is prefixed with "maybe" because tailwind-merge does not know whether something is a postfix modifier or part of the base class since it's possible to configure Tailwind CSS classes which include a `/` in the base class name.
130
+ *
131
+ * If a `maybePostfixModifierPosition` is present, tailwind-merge first tries to match the `baseClassName` without the possible postfix modifier to a class group. If that fails or the matched class group is configured in `postfixLookupClassGroups`, it tries again with the possible postfix modifier.
132
+ *
133
+ * @example 11 // for `bg-gray-100/50`
134
+ */
135
+ maybePostfixModifierPosition: number | undefined;
136
+ }
137
+ /**
138
+ * The dynamic part of the tailwind-merge configuration. When merging multiple configurations, the user can choose to either override or extend the properties of this interface.
139
+ */
140
+ interface ConfigGroupsPart<ClassGroupIds extends string, ThemeGroupIds extends string> {
141
+ /**
142
+ * Theme scales used in classGroups.
143
+ *
144
+ * The keys are the same as in the Tailwind config but the values are sometimes defined more broadly.
145
+ */
146
+ theme: NoInfer<ThemeObject<ThemeGroupIds>>;
147
+ /**
148
+ * Object with groups of classes.
149
+ *
150
+ * @example
151
+ * {
152
+ * // Creates group of classes `group`, `of` and `classes`
153
+ * 'group-id': ['group', 'of', 'classes'],
154
+ * // Creates group of classes `look-at-me-other` and `look-at-me-group`.
155
+ * 'other-group': [{ 'look-at-me': ['other', 'group']}]
156
+ * }
157
+ */
158
+ classGroups: NoInfer<Record<ClassGroupIds, ClassGroup<ThemeGroupIds>>>;
159
+ /**
160
+ * Conflicting classes across groups.
161
+ *
162
+ * The key is the ID of a class group which creates a conflict, values are IDs of class groups which receive a conflict. That means if a class from from the key ID is present, all preceding classes from the values are removed.
163
+ *
164
+ * A class group ID is the key of a class group in the classGroups object.
165
+ *
166
+ * @example { gap: ['gap-x', 'gap-y'] }
167
+ */
168
+ conflictingClassGroups: NoInfer<Partial<Record<ClassGroupIds, readonly ClassGroupIds[]>>>;
169
+ /**
170
+ * Postfix modifiers conflicting with other class groups.
171
+ *
172
+ * A class group ID is the key of a class group in classGroups object.
173
+ *
174
+ * @example { 'font-size': ['leading'] }
175
+ */
176
+ conflictingClassGroupModifiers: NoInfer<Partial<Record<ClassGroupIds, readonly ClassGroupIds[]>>>;
177
+ /**
178
+ * Class group IDs which should be resolved again with their postfix modifier attached.
179
+ *
180
+ * This is needed when a slash can make the full class name belong to a different class group than the part before the slash.
181
+ *
182
+ * @example ['container-type'] // `@container-size/sidebar` should resolve differently from `@container-size`
183
+ */
184
+ postfixLookupClassGroups?: readonly NoInferString<ClassGroupIds>[];
185
+ /**
186
+ * Modifiers whose order among multiple modifiers should be preserved because their order changes which element gets targeted.
187
+ *
188
+ * tailwind-merge makes sure that classes with these modifiers are not overwritten by classes with the same modifiers with order-sensitive modifiers being in a different position.
189
+ */
190
+ orderSensitiveModifiers: string[];
191
+ }
192
+ /**
193
+ * Type of the configuration object that can be passed to `extendTailwindMerge`.
194
+ */
195
+ interface ConfigExtension<ClassGroupIds extends string, ThemeGroupIds extends string> extends Partial<ConfigStaticPart> {
196
+ override?: PartialConfigGroupsPart<ClassGroupIds, ThemeGroupIds>;
197
+ extend?: PartialConfigGroupsPart<ClassGroupIds, ThemeGroupIds>;
198
+ }
199
+ interface PartialConfigGroupsPart<ClassGroupIds extends string, ThemeGroupIds extends string> {
200
+ theme?: NoInfer<Partial<ThemeObject<ThemeGroupIds>>>;
201
+ classGroups?: NoInfer<Partial<Record<ClassGroupIds, ClassGroup<ThemeGroupIds>>>>;
202
+ conflictingClassGroups?: NoInfer<Partial<Record<ClassGroupIds, readonly ClassGroupIds[]>>>;
203
+ conflictingClassGroupModifiers?: NoInfer<Partial<Record<ClassGroupIds, readonly ClassGroupIds[]>>>;
204
+ postfixLookupClassGroups?: readonly NoInferString<ClassGroupIds>[];
205
+ orderSensitiveModifiers?: string[];
206
+ }
207
+ type ThemeObject<ThemeGroupIds extends string> = Record<ThemeGroupIds, ClassGroup<ThemeGroupIds>>;
208
+ type ClassGroup<ThemeGroupIds extends string> = readonly ClassDefinition<ThemeGroupIds>[];
209
+ type ClassDefinition<ThemeGroupIds extends string> = string | ClassValidator | ThemeGetter | ClassObject<ThemeGroupIds>;
210
+ type ClassValidator = (classPart: string) => boolean;
211
+ interface ThemeGetter {
212
+ (theme: ThemeObject<AnyThemeGroupIds>): ClassGroup<AnyClassGroupIds>;
213
+ isThemeGetter: true;
214
+ }
215
+ type ClassObject<ThemeGroupIds extends string> = Record<string, readonly ClassDefinition<ThemeGroupIds>[]>;
216
+ /**
217
+ * Hack from https://stackoverflow.com/questions/56687668/a-way-to-disable-type-argument-inference-in-generics/56688073#56688073
218
+ *
219
+ * Could be replaced with NoInfer utility type from TypeScript (https://www.typescriptlang.org/docs/handbook/utility-types.html#noinfertype), but that is only supported in TypeScript 5.4 or higher, so I should wait some time before using it.
220
+ */
221
+ type NoInfer<T> = [T][T extends any ? 0 : never];
222
+ /**
223
+ * Special-purpose NoInfer variant for string unions used in array item positions.
224
+ *
225
+ * The NoInfer helper above doesn't prevent inference from array items in all cases, so this keeps config arrays like `postfixLookupClassGroups` from defining or narrowing class group IDs. Once tailwind-merge only supports TypeScript 5.4 and newer, this can be replaced with TypeScript's built-in NoInfer utility type.
226
+ */
227
+ type NoInferString<T extends string> = T extends infer S ? S & string : never;
228
+ /**
229
+ * Theme group IDs included in the default configuration of tailwind-merge.
230
+ *
231
+ * If you want to use a scale that is not supported in the `ThemeObject` type,
232
+ * consider using `classGroups` instead of `theme`.
233
+ *
234
+ * @see https://github.com/dcastil/tailwind-merge/blob/main/docs/configuration.md#theme
235
+ * (the list of supported keys may vary between `tailwind-merge` versions)
236
+ */
237
+ type DefaultThemeGroupIds = 'animate' | 'aspect' | 'blur' | 'breakpoint' | 'color' | 'container' | 'drop-shadow' | 'ease' | 'font-weight' | 'font' | 'inset-shadow' | 'leading' | 'perspective' | 'radius' | 'shadow' | 'spacing' | 'text' | 'text-shadow' | 'tracking';
238
+ /**
239
+ * Class group IDs included in the default configuration of tailwind-merge.
240
+ */
241
+ type DefaultClassGroupIds = 'accent' | 'align-content' | 'align-items' | 'align-self' | 'animate' | 'appearance' | 'aspect' | 'auto-cols' | 'auto-rows' | 'backdrop-blur' | 'backdrop-brightness' | 'backdrop-contrast' | 'backdrop-filter' | 'backdrop-grayscale' | 'backdrop-hue-rotate' | 'backdrop-invert' | 'backdrop-opacity' | 'backdrop-saturate' | 'backdrop-sepia' | 'backface' | 'basis' | 'bg-attachment' | 'bg-blend' | 'bg-clip' | 'bg-color' | 'bg-image' | 'bg-origin' | 'bg-position' | 'bg-repeat' | 'bg-size' | 'block-size' | 'blur' | 'border-collapse' | 'border-color-b' | 'border-color-be' | 'border-color-bs' | 'border-color-e' | 'border-color-l' | 'border-color-r' | 'border-color-s' | 'border-color-t' | 'border-color-x' | 'border-color-y' | 'border-color' | 'border-spacing-x' | 'border-spacing-y' | 'border-spacing' | 'border-style' | 'border-w-b' | 'border-w-be' | 'border-w-bs' | 'border-w-e' | 'border-w-l' | 'border-w-r' | 'border-w-s' | 'border-w-t' | 'border-w-x' | 'border-w-y' | 'border-w' | 'bottom' | 'box-decoration' | 'box' | 'break-after' | 'break-before' | 'break-inside' | 'break' | 'brightness' | 'caption' | 'caret-color' | 'clear' | 'col-end' | 'col-start-end' | 'col-start' | 'color-scheme' | 'columns' | 'container' | 'container-named' | 'container-type' | 'content' | 'contrast' | 'cursor' | 'delay' | 'display' | 'divide-color' | 'divide-style' | 'divide-x-reverse' | 'divide-x' | 'divide-y-reverse' | 'divide-y' | 'drop-shadow' | 'drop-shadow-color' | 'duration' | 'ease' | 'end' | 'field-sizing' | 'fill' | 'filter' | 'flex-direction' | 'flex-wrap' | 'flex' | 'float' | 'font-family' | 'font-features' | 'font-size' | 'font-smoothing' | 'font-stretch' | 'font-style' | 'font-weight' | 'forced-color-adjust' | 'fvn-figure' | 'fvn-fraction' | 'fvn-normal' | 'fvn-ordinal' | 'fvn-slashed-zero' | 'fvn-spacing' | 'gap-x' | 'gap-y' | 'gap' | 'gradient-from-pos' | 'gradient-from' | 'gradient-to-pos' | 'gradient-to' | 'gradient-via-pos' | 'gradient-via' | 'grayscale' | 'grid-cols' | 'grid-flow' | 'grid-rows' | 'grow' | 'h' | 'hue-rotate' | 'hyphens' | 'indent' | 'inline-size' | 'inset-ring-color' | 'inset-ring-w' | 'inset-shadow-color' | 'inset-shadow' | 'inset-be' | 'inset-bs' | 'inset-x' | 'inset-y' | 'inset' | 'invert' | 'isolation' | 'justify-content' | 'justify-items' | 'justify-self' | 'leading' | 'left' | 'line-clamp' | 'list-image' | 'list-style-position' | 'list-style-type' | 'm' | 'mask-clip' | 'mask-composite' | 'mask-image-b-from-color' | 'mask-image-b-from-pos' | 'mask-image-b-to-color' | 'mask-image-b-to-pos' | 'mask-image-conic-from-color' | 'mask-image-conic-from-pos' | 'mask-image-conic-pos' | 'mask-image-conic-to-color' | 'mask-image-conic-to-pos' | 'mask-image-l-from-color' | 'mask-image-l-from-pos' | 'mask-image-l-to-color' | 'mask-image-l-to-pos' | 'mask-image-linear-from-color' | 'mask-image-linear-from-pos' | 'mask-image-linear-pos' | 'mask-image-linear-to-color' | 'mask-image-linear-to-pos' | 'mask-image-r-from-color' | 'mask-image-r-from-pos' | 'mask-image-r-to-color' | 'mask-image-r-to-pos' | 'mask-image-radial-from-color' | 'mask-image-radial-from-pos' | 'mask-image-radial-pos' | 'mask-image-radial-shape' | 'mask-image-radial-size' | 'mask-image-radial-to-color' | 'mask-image-radial-to-pos' | 'mask-image-radial' | 'mask-image-t-from-color' | 'mask-image-t-from-pos' | 'mask-image-t-to-color' | 'mask-image-t-to-pos' | 'mask-image-x-from-color' | 'mask-image-x-from-pos' | 'mask-image-x-to-color' | 'mask-image-x-to-pos' | 'mask-image-y-from-color' | 'mask-image-y-from-pos' | 'mask-image-y-to-color' | 'mask-image-y-to-pos' | 'mask-image' | 'mask-mode' | 'mask-origin' | 'mask-position' | 'mask-repeat' | 'mask-size' | 'mask-type' | 'max-block-size' | 'max-h' | 'max-inline-size' | 'max-w' | 'mb' | 'mbe' | 'mbs' | 'me' | 'min-block-size' | 'min-h' | 'min-inline-size' | 'min-w' | 'mix-blend' | 'ml' | 'mr' | 'ms' | 'mt' | 'mx' | 'my' | 'object-fit' | 'object-position' | 'opacity' | 'order' | 'outline-color' | 'outline-offset' | 'outline-style' | 'outline-w' | 'overflow-x' | 'overflow-y' | 'overflow' | 'overscroll-x' | 'overscroll-y' | 'overscroll' | 'p' | 'pb' | 'pbe' | 'pe' | 'perspective-origin' | 'perspective' | 'pl' | 'place-content' | 'place-items' | 'place-self' | 'placeholder-color' | 'pointer-events' | 'position' | 'pr' | 'ps' | 'pbs' | 'pt' | 'px' | 'py' | 'resize' | 'right' | 'ring-color' | 'ring-offset-color' | 'ring-offset-w' | 'ring-w-inset' | 'ring-w' | 'rotate-x' | 'rotate-y' | 'rotate-z' | 'rotate' | 'rounded-b' | 'rounded-bl' | 'rounded-br' | 'rounded-e' | 'rounded-ee' | 'rounded-es' | 'rounded-l' | 'rounded-r' | 'rounded-s' | 'rounded-se' | 'rounded-ss' | 'rounded-t' | 'rounded-tl' | 'rounded-tr' | 'rounded' | 'row-end' | 'row-start-end' | 'row-start' | 'saturate' | 'scale-3d' | 'scale-x' | 'scale-y' | 'scale-z' | 'scale' | 'scrollbar-gutter' | 'scrollbar-thumb-color' | 'scrollbar-track-color' | 'scrollbar-w' | 'scroll-behavior' | 'scroll-m' | 'scroll-mb' | 'scroll-mbe' | 'scroll-me' | 'scroll-ml' | 'scroll-mr' | 'scroll-mbs' | 'scroll-ms' | 'scroll-mt' | 'scroll-mx' | 'scroll-my' | 'scroll-p' | 'scroll-pb' | 'scroll-pbe' | 'scroll-pe' | 'scroll-pl' | 'scroll-pr' | 'scroll-pbs' | 'scroll-ps' | 'scroll-pt' | 'scroll-px' | 'scroll-py' | 'select' | 'sepia' | 'shadow-color' | 'shadow' | 'shrink' | 'size' | 'skew-x' | 'skew-y' | 'skew' | 'snap-align' | 'snap-stop' | 'snap-strictness' | 'snap-type' | 'space-x-reverse' | 'space-x' | 'space-y-reverse' | 'space-y' | 'sr' | 'start' | 'stroke-w' | 'stroke' | 'table-layout' | 'tab-size' | 'text-alignment' | 'text-color' | 'text-decoration-color' | 'text-decoration-style' | 'text-decoration-thickness' | 'text-decoration' | 'text-overflow' | 'text-shadow' | 'text-shadow-color' | 'text-transform' | 'text-wrap' | 'top' | 'touch-pz' | 'touch-x' | 'touch-y' | 'touch' | 'tracking' | 'transform-origin' | 'transform-style' | 'transform' | 'transition-behavior' | 'transition' | 'translate-none' | 'translate-x' | 'translate-y' | 'translate-z' | 'translate' | 'underline-offset' | 'vertical-align' | 'visibility' | 'w' | 'whitespace' | 'will-change' | 'wrap' | 'zoom' | 'z';
242
+ type AnyClassGroupIds = string;
243
+ type AnyThemeGroupIds = string;
244
+ /**
245
+ * type of the tailwind-merge configuration that allows for any possible configuration.
246
+ */
247
+ type AnyConfig = Config$1<AnyClassGroupIds, AnyThemeGroupIds>;
248
+ type CreateConfigSubsequent = (config: AnyConfig) => AnyConfig;
249
+ declare const extendTailwindMerge: <AdditionalClassGroupIds extends string = never, AdditionalThemeGroupIds extends string = never>(configExtension: ConfigExtension<DefaultClassGroupIds | AdditionalClassGroupIds, DefaultThemeGroupIds | AdditionalThemeGroupIds> | CreateConfigSubsequent, ...createConfig: CreateConfigSubsequent[]) => (...classLists: ClassNameValue[]) => string;
250
+ //#endregion
50
251
  //#region src/proseTwMerge.d.ts
51
252
  type ProseClassGroupIds = 'prose-size' | 'prose-color';
52
253
  declare const proseTwMergeClassGroups: NonNullable<NonNullable<ConfigExtension<ProseClassGroupIds, never>['extend']>['classGroups']>;
@@ -55,7 +256,7 @@ declare const proseTwMergeClassGroups: NonNullable<NonNullable<ConfigExtension<P
55
256
  * Used by `cn(...)` internally. Also exported for direct use in components
56
257
  * that need prose-aware class merging outside of `cn`.
57
258
  */
58
- declare const proseTwMerge: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
259
+ declare const proseTwMerge: (...classLists: ClassNameValue[]) => string;
59
260
  //#endregion
60
261
  //#region src/slugify.d.ts
61
262
  interface SlugifyOptions extends Options {
@@ -64,6 +265,811 @@ interface SlugifyOptions extends Options {
64
265
  }
65
266
  declare const slugify: (string: string, options?: SlugifyOptions) => string;
66
267
  //#endregion
268
+ //#region ../../node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.0/node_modules/tailwind-variants/dist/config.d.ts
269
+ type MergeConfig = Parameters<typeof extendTailwindMerge>[0];
270
+ type LegacyMergeConfig = Extract<MergeConfig, {
271
+ extend?: unknown;
272
+ }>["extend"];
273
+ type TWMergeConfig = MergeConfig & LegacyMergeConfig;
274
+ type TWMConfig = {
275
+ /**
276
+ * Whether to merge the class names with `tailwind-merge` library.
277
+ * It's avoid to have duplicate tailwind classes. (Recommended)
278
+ * @see https://github.com/dcastil/tailwind-merge/blob/v2.2.0/README.md
279
+ * @default true
280
+ */
281
+ twMerge?: boolean;
282
+ /**
283
+ * The config object for `tailwind-merge` library.
284
+ * @see https://github.com/dcastil/tailwind-merge/blob/v2.2.0/docs/configuration.md
285
+ */
286
+ twMergeConfig?: TWMergeConfig;
287
+ };
288
+ type TVConfig = TWMConfig;
289
+ //#endregion
290
+ //#region ../../node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.0/node_modules/tailwind-variants/dist/types.d.ts
291
+ type ClassProp<V extends unknown = ClassNameValue> = {
292
+ class?: V;
293
+ className?: never;
294
+ } | {
295
+ class?: never;
296
+ className?: V;
297
+ };
298
+ type TVBaseName = "base";
299
+ type TVSlots = Record<string, ClassNameValue> | undefined;
300
+ /**
301
+ * ----------------------------------------------------------------------
302
+ * Utils
303
+ * ----------------------------------------------------------------------
304
+ */
305
+ type OmitUndefined<T> = T extends undefined ? never : T;
306
+ type StringToBoolean<T> = T extends "true" | "false" ? boolean : T;
307
+ /**
308
+ * ----------------------------------------------------------------------
309
+ * TV Types
310
+ * ----------------------------------------------------------------------
311
+ */
312
+ type TVSlotsWithBase<S extends TVSlots, B extends ClassNameValue> = B extends undefined ? keyof S : keyof S | TVBaseName;
313
+ type SlotsClassValue<S extends TVSlots, B extends ClassNameValue> = { [K in TVSlotsWithBase<S, B>]?: ClassNameValue };
314
+ type TVVariantsDefault<S extends TVSlots, B extends ClassNameValue> = S extends undefined ? {} : {
315
+ [key: string]: {
316
+ [key: string]: S extends TVSlots ? SlotsClassValue<S, B> | ClassNameValue : ClassNameValue;
317
+ };
318
+ };
319
+ type TVVariants<S extends TVSlots | undefined, B extends ClassNameValue | undefined = undefined, EV extends TVVariants<ES> | undefined = undefined, ES extends TVSlots | undefined = undefined> = EV extends undefined ? TVVariantsDefault<S, B> : { [K in keyof EV]: { [K2 in keyof EV[K]]: S extends TVSlots ? SlotsClassValue<S, B> | ClassNameValue : ClassNameValue } } | TVVariantsDefault<S, B>;
320
+ type TVCompoundVariants<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue, EV extends TVVariants<ES>, ES extends TVSlots> = Array<{ [K in keyof V | keyof EV]?: (K extends keyof V ? StringToBoolean<keyof V[K]> : never) | (K extends keyof EV ? StringToBoolean<keyof EV[K]> : never) | (K extends keyof V ? StringToBoolean<keyof V[K]>[] : never) } & ClassProp<SlotsClassValue<S, B> | ClassNameValue>>;
321
+ type TVCompoundSlots<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue> = Array<V extends undefined ? {
322
+ slots: Array<TVSlotsWithBase<S, B>>;
323
+ } & ClassProp : {
324
+ slots: Array<TVSlotsWithBase<S, B>>;
325
+ } & { [K in keyof V]?: StringToBoolean<keyof V[K]> | StringToBoolean<keyof V[K]>[] } & ClassProp>;
326
+ type TVDefaultVariants<V extends TVVariants<S>, S extends TVSlots, EV extends TVVariants<ES>, ES extends TVSlots> = { [K in keyof V | keyof EV]?: (K extends keyof V ? StringToBoolean<keyof V[K]> : never) | (K extends keyof EV ? StringToBoolean<keyof EV[K]> : never) };
327
+ type TVProps$1<V extends TVVariants<S>, S extends TVSlots, EV extends TVVariants<ES>, ES extends TVSlots> = EV extends undefined ? V extends undefined ? ClassProp<ClassNameValue> : { [K in keyof V]?: StringToBoolean<keyof V[K]> | undefined } & ClassProp<ClassNameValue> : V extends undefined ? { [K in keyof EV]?: StringToBoolean<keyof EV[K]> | undefined } & ClassProp<ClassNameValue> : { [K in keyof V | keyof EV]?: (K extends keyof V ? StringToBoolean<keyof V[K]> : never) | (K extends keyof EV ? StringToBoolean<keyof EV[K]> : never) | undefined } & ClassProp<ClassNameValue>;
328
+ type TVVariantKeys<V extends TVVariants<S>, S extends TVSlots> = V extends Object ? Array<keyof V> : undefined;
329
+ type TVReturnProps<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue, EV extends TVVariants<ES>, ES extends TVSlots, // @ts-expect-error
330
+ E extends TVReturnType = undefined> = {
331
+ extend: E;
332
+ base: B;
333
+ slots: S;
334
+ variants: V;
335
+ defaultVariants: TVDefaultVariants<V, S, EV, ES>;
336
+ compoundVariants: TVCompoundVariants<V, S, B, EV, ES>;
337
+ compoundSlots: TVCompoundSlots<V, S, B>;
338
+ variantKeys: TVVariantKeys<V, S>;
339
+ };
340
+ type HasSlots<S extends TVSlots, ES extends TVSlots> = S extends undefined ? ES extends undefined ? false : true : true;
341
+ type TVReturnType<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue, EV extends TVVariants<ES>, ES extends TVSlots, // @ts-expect-error
342
+ E extends TVReturnType = undefined> = {
343
+ (props?: TVProps$1<V, S, EV, ES>): HasSlots<S, ES> extends true ? { [K in keyof (ES extends undefined ? {} : ES)]: (slotProps?: TVProps$1<V, S, EV, ES>) => string } & { [K in keyof (S extends undefined ? {} : S)]: (slotProps?: TVProps$1<V, S, EV, ES>) => string } & { [K in TVSlotsWithBase<{}, B>]: (slotProps?: TVProps$1<V, S, EV, ES>) => string } : string;
344
+ } & TVReturnProps<V, S, B, EV, ES, E>;
345
+ type TV = {
346
+ <V extends TVVariants<S, B, EV>, CV extends TVCompoundVariants<V, S, B, EV, ES>, DV extends TVDefaultVariants<V, S, EV, ES>, B extends ClassNameValue = undefined, S extends TVSlots = undefined, // @ts-expect-error
347
+ E extends TVReturnType = TVReturnType<V, S, B, // @ts-expect-error
348
+ EV extends undefined ? {} : EV, // @ts-expect-error
349
+ ES extends undefined ? {} : ES>, EV extends TVVariants<ES, B, E["variants"], ES> = E["variants"], ES extends TVSlots = (E["slots"] extends TVSlots ? E["slots"] : undefined)>(options: {
350
+ /**
351
+ * Extend allows for easy composition of components.
352
+ * @see https://www.tailwind-variants.org/docs/composing-components
353
+ */
354
+ extend?: E;
355
+ /**
356
+ * Base allows you to set a base class for a component.
357
+ */
358
+ base?: B;
359
+ /**
360
+ * Slots allow you to separate a component into multiple parts.
361
+ * @see https://www.tailwind-variants.org/docs/slots
362
+ */
363
+ slots?: S;
364
+ /**
365
+ * Variants allow you to create multiple versions of the same component.
366
+ * @see https://www.tailwind-variants.org/docs/variants#adding-variants
367
+ */
368
+ variants?: V;
369
+ /**
370
+ * Compound variants allow you to apply classes to multiple variants at once.
371
+ * @see https://www.tailwind-variants.org/docs/variants#compound-variants
372
+ */
373
+ compoundVariants?: CV;
374
+ /**
375
+ * Compound slots allow you to apply classes to multiple slots at once.
376
+ */
377
+ compoundSlots?: TVCompoundSlots<V, S, B>;
378
+ /**
379
+ * Default variants allow you to set default variants for a component.
380
+ * @see https://www.tailwind-variants.org/docs/variants#default-variants
381
+ */
382
+ defaultVariants?: DV;
383
+ },
384
+ /**
385
+ * The config object allows you to modify the default configuration.
386
+ * @see https://www.tailwind-variants.org/docs/api-reference#config-optional
387
+ */
388
+
389
+ config?: TVConfig): TVReturnType<V, S, B, EV, ES, E>;
390
+ };
391
+ type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
392
+ //#endregion
393
+ //#region ../../node_modules/.pnpm/@heroui+theme@2.4.26_tailwindcss@4.3.0/node_modules/@heroui/theme/dist/colors/types.d.ts
394
+ type ColorScale = Partial<{
395
+ 50: string;
396
+ 100: string;
397
+ 200: string;
398
+ 300: string;
399
+ 400: string;
400
+ 500: string;
401
+ 600: string;
402
+ 700: string;
403
+ 800: string;
404
+ 900: string;
405
+ foreground: string;
406
+ DEFAULT: string;
407
+ }> | string;
408
+ type BaseColors = {
409
+ background: ColorScale;
410
+ foreground: ColorScale;
411
+ divider: ColorScale;
412
+ overlay: ColorScale;
413
+ focus: ColorScale;
414
+ content1: ColorScale;
415
+ content2: ColorScale;
416
+ content3: ColorScale;
417
+ content4: ColorScale;
418
+ };
419
+ type ThemeColors = BaseColors & {
420
+ default: ColorScale;
421
+ primary: ColorScale;
422
+ secondary: ColorScale;
423
+ success: ColorScale;
424
+ warning: ColorScale;
425
+ danger: ColorScale;
426
+ };
427
+ //#endregion
428
+ //#region ../../node_modules/.pnpm/@heroui+theme@2.4.26_tailwindcss@4.3.0/node_modules/@heroui/theme/dist/types.d.ts
429
+ type DefaultThemeType = "light" | "dark";
430
+ type BaseThemeUnit = {
431
+ small?: string;
432
+ medium?: string;
433
+ large?: string;
434
+ };
435
+ type FontThemeUnit = BaseThemeUnit & {
436
+ tiny?: string;
437
+ };
438
+ interface LayoutTheme {
439
+ /**
440
+ * The default font size applied across the components.
441
+ *
442
+ * @default
443
+ * {
444
+ * tiny: "0.75rem",
445
+ * small: "0.875rem",
446
+ * medium: "1rem",
447
+ * large: "1.125rem",
448
+ * DEFAULT: "1rem",
449
+ * }
450
+ */
451
+ fontSize?: FontThemeUnit;
452
+ /**
453
+ * The default line height applied across the components.
454
+ *
455
+ * @default
456
+ * {
457
+ * tiny: "1rem",
458
+ * small: "1.25rem",
459
+ * medium: "1.5rem",
460
+ * large: "1.75rem",
461
+ * DEFAULT: "1.5rem",
462
+ * }
463
+ */
464
+ lineHeight?: FontThemeUnit;
465
+ /**
466
+ * The default radius applied across the components.
467
+ * we recommend to use `rem` units.
468
+ *
469
+ * @default
470
+ * {
471
+ * small: "0.25rem",
472
+ * medium: "0.5rem",
473
+ * large: "0.75rem",
474
+ * }
475
+ */
476
+ radius?: BaseThemeUnit;
477
+ /**
478
+ * A number between 0 and 1 that is applied as opacity-[value] when the component is disabled.
479
+ *
480
+ * format: ".[value]"
481
+ *
482
+ * @default .5
483
+ */
484
+ disabledOpacity?: string | number;
485
+ /**
486
+ * A number between 0 and 1 that is applied as opacity-[value] when the component is hovered.
487
+ *
488
+ * format: ".[value]"
489
+ *
490
+ * @default .8
491
+ */
492
+ hoverOpacity?: string | number;
493
+ /**
494
+ * The default height applied to the divider component.
495
+ * we recommend to use `px` units.
496
+ *
497
+ * @default 1px
498
+ */
499
+ dividerWeight?: string;
500
+ /**
501
+ * The border width applied across the components.
502
+ * @default
503
+ * {
504
+ * small: "1px",
505
+ * medium: "2px",
506
+ * large: "3px",
507
+ * }
508
+ *
509
+ */
510
+ borderWidth?: BaseThemeUnit;
511
+ /**
512
+ * The box shadow applied across the components.
513
+ *
514
+ * @default
515
+ * {
516
+ * small: 0px 0px 5px 0px rgb(0 0 0 / 0.01), 0px 2px 10px 0px rgb(0 0 0 / 0.06),
517
+ * medium: 0px 0px 15px 0px rgb(0 0 0 / 0.02), 0px 2px 30px 0px rgb(0 0 0 / 0.08),
518
+ * large: 0px 0px 30px 0px rgb(0 0 0 / 0.03), 0px 30px 60px 0px rgb(0 0 0 / 0.12),
519
+ * }
520
+ */
521
+ boxShadow?: BaseThemeUnit;
522
+ }
523
+ type ConfigTheme = {
524
+ extend?: "light" | "dark";
525
+ layout?: LayoutTheme;
526
+ colors?: Partial<ThemeColors>;
527
+ };
528
+ type ConfigThemes = Record<string, ConfigTheme>;
529
+ /**
530
+ * The HeroUI config.
531
+ * @see https://heroui.com/docs/customization/customize-theme
532
+ */
533
+ type HeroUIPluginConfig = {
534
+ /**
535
+ * The prefix for the css variables.
536
+ * @default "heroui"
537
+ */
538
+ prefix?: string;
539
+ /**
540
+ * If true, the common heroui colors (e.g. "blue", "green", "purple") will not be extended on the theme.
541
+ * @default false
542
+ */
543
+ addCommonColors?: boolean;
544
+ /**
545
+ * Common layout definitions. These definitions are applied to all themes.
546
+ */
547
+ layout?: LayoutTheme;
548
+ /**
549
+ * The theme definitions.
550
+ */
551
+ themes?: ConfigThemes;
552
+ /**
553
+ * The default theme to use.
554
+ * @default "light"
555
+ */
556
+ defaultTheme?: DefaultThemeType;
557
+ /**
558
+ * The default theme to extend.
559
+ * @default "light"
560
+ */
561
+ defaultExtendTheme?: DefaultThemeType;
562
+ };
563
+ //#endregion
564
+ //#region ../../node_modules/.pnpm/tailwindcss@4.3.0/node_modules/tailwindcss/dist/colors.d.mts
565
+ declare const _default: {
566
+ inherit: string;
567
+ current: string;
568
+ transparent: string;
569
+ black: string;
570
+ white: string;
571
+ slate: {
572
+ '50': string;
573
+ '100': string;
574
+ '200': string;
575
+ '300': string;
576
+ '400': string;
577
+ '500': string;
578
+ '600': string;
579
+ '700': string;
580
+ '800': string;
581
+ '900': string;
582
+ '950': string;
583
+ };
584
+ gray: {
585
+ '50': string;
586
+ '100': string;
587
+ '200': string;
588
+ '300': string;
589
+ '400': string;
590
+ '500': string;
591
+ '600': string;
592
+ '700': string;
593
+ '800': string;
594
+ '900': string;
595
+ '950': string;
596
+ };
597
+ zinc: {
598
+ '50': string;
599
+ '100': string;
600
+ '200': string;
601
+ '300': string;
602
+ '400': string;
603
+ '500': string;
604
+ '600': string;
605
+ '700': string;
606
+ '800': string;
607
+ '900': string;
608
+ '950': string;
609
+ };
610
+ neutral: {
611
+ '50': string;
612
+ '100': string;
613
+ '200': string;
614
+ '300': string;
615
+ '400': string;
616
+ '500': string;
617
+ '600': string;
618
+ '700': string;
619
+ '800': string;
620
+ '900': string;
621
+ '950': string;
622
+ };
623
+ stone: {
624
+ '50': string;
625
+ '100': string;
626
+ '200': string;
627
+ '300': string;
628
+ '400': string;
629
+ '500': string;
630
+ '600': string;
631
+ '700': string;
632
+ '800': string;
633
+ '900': string;
634
+ '950': string;
635
+ };
636
+ mauve: {
637
+ '50': string;
638
+ '100': string;
639
+ '200': string;
640
+ '300': string;
641
+ '400': string;
642
+ '500': string;
643
+ '600': string;
644
+ '700': string;
645
+ '800': string;
646
+ '900': string;
647
+ '950': string;
648
+ };
649
+ olive: {
650
+ '50': string;
651
+ '100': string;
652
+ '200': string;
653
+ '300': string;
654
+ '400': string;
655
+ '500': string;
656
+ '600': string;
657
+ '700': string;
658
+ '800': string;
659
+ '900': string;
660
+ '950': string;
661
+ };
662
+ mist: {
663
+ '50': string;
664
+ '100': string;
665
+ '200': string;
666
+ '300': string;
667
+ '400': string;
668
+ '500': string;
669
+ '600': string;
670
+ '700': string;
671
+ '800': string;
672
+ '900': string;
673
+ '950': string;
674
+ };
675
+ taupe: {
676
+ '50': string;
677
+ '100': string;
678
+ '200': string;
679
+ '300': string;
680
+ '400': string;
681
+ '500': string;
682
+ '600': string;
683
+ '700': string;
684
+ '800': string;
685
+ '900': string;
686
+ '950': string;
687
+ };
688
+ red: {
689
+ '50': string;
690
+ '100': string;
691
+ '200': string;
692
+ '300': string;
693
+ '400': string;
694
+ '500': string;
695
+ '600': string;
696
+ '700': string;
697
+ '800': string;
698
+ '900': string;
699
+ '950': string;
700
+ };
701
+ orange: {
702
+ '50': string;
703
+ '100': string;
704
+ '200': string;
705
+ '300': string;
706
+ '400': string;
707
+ '500': string;
708
+ '600': string;
709
+ '700': string;
710
+ '800': string;
711
+ '900': string;
712
+ '950': string;
713
+ };
714
+ amber: {
715
+ '50': string;
716
+ '100': string;
717
+ '200': string;
718
+ '300': string;
719
+ '400': string;
720
+ '500': string;
721
+ '600': string;
722
+ '700': string;
723
+ '800': string;
724
+ '900': string;
725
+ '950': string;
726
+ };
727
+ yellow: {
728
+ '50': string;
729
+ '100': string;
730
+ '200': string;
731
+ '300': string;
732
+ '400': string;
733
+ '500': string;
734
+ '600': string;
735
+ '700': string;
736
+ '800': string;
737
+ '900': string;
738
+ '950': string;
739
+ };
740
+ lime: {
741
+ '50': string;
742
+ '100': string;
743
+ '200': string;
744
+ '300': string;
745
+ '400': string;
746
+ '500': string;
747
+ '600': string;
748
+ '700': string;
749
+ '800': string;
750
+ '900': string;
751
+ '950': string;
752
+ };
753
+ green: {
754
+ '50': string;
755
+ '100': string;
756
+ '200': string;
757
+ '300': string;
758
+ '400': string;
759
+ '500': string;
760
+ '600': string;
761
+ '700': string;
762
+ '800': string;
763
+ '900': string;
764
+ '950': string;
765
+ };
766
+ emerald: {
767
+ '50': string;
768
+ '100': string;
769
+ '200': string;
770
+ '300': string;
771
+ '400': string;
772
+ '500': string;
773
+ '600': string;
774
+ '700': string;
775
+ '800': string;
776
+ '900': string;
777
+ '950': string;
778
+ };
779
+ teal: {
780
+ '50': string;
781
+ '100': string;
782
+ '200': string;
783
+ '300': string;
784
+ '400': string;
785
+ '500': string;
786
+ '600': string;
787
+ '700': string;
788
+ '800': string;
789
+ '900': string;
790
+ '950': string;
791
+ };
792
+ cyan: {
793
+ '50': string;
794
+ '100': string;
795
+ '200': string;
796
+ '300': string;
797
+ '400': string;
798
+ '500': string;
799
+ '600': string;
800
+ '700': string;
801
+ '800': string;
802
+ '900': string;
803
+ '950': string;
804
+ };
805
+ sky: {
806
+ '50': string;
807
+ '100': string;
808
+ '200': string;
809
+ '300': string;
810
+ '400': string;
811
+ '500': string;
812
+ '600': string;
813
+ '700': string;
814
+ '800': string;
815
+ '900': string;
816
+ '950': string;
817
+ };
818
+ blue: {
819
+ '50': string;
820
+ '100': string;
821
+ '200': string;
822
+ '300': string;
823
+ '400': string;
824
+ '500': string;
825
+ '600': string;
826
+ '700': string;
827
+ '800': string;
828
+ '900': string;
829
+ '950': string;
830
+ };
831
+ indigo: {
832
+ '50': string;
833
+ '100': string;
834
+ '200': string;
835
+ '300': string;
836
+ '400': string;
837
+ '500': string;
838
+ '600': string;
839
+ '700': string;
840
+ '800': string;
841
+ '900': string;
842
+ '950': string;
843
+ };
844
+ violet: {
845
+ '50': string;
846
+ '100': string;
847
+ '200': string;
848
+ '300': string;
849
+ '400': string;
850
+ '500': string;
851
+ '600': string;
852
+ '700': string;
853
+ '800': string;
854
+ '900': string;
855
+ '950': string;
856
+ };
857
+ purple: {
858
+ '50': string;
859
+ '100': string;
860
+ '200': string;
861
+ '300': string;
862
+ '400': string;
863
+ '500': string;
864
+ '600': string;
865
+ '700': string;
866
+ '800': string;
867
+ '900': string;
868
+ '950': string;
869
+ };
870
+ fuchsia: {
871
+ '50': string;
872
+ '100': string;
873
+ '200': string;
874
+ '300': string;
875
+ '400': string;
876
+ '500': string;
877
+ '600': string;
878
+ '700': string;
879
+ '800': string;
880
+ '900': string;
881
+ '950': string;
882
+ };
883
+ pink: {
884
+ '50': string;
885
+ '100': string;
886
+ '200': string;
887
+ '300': string;
888
+ '400': string;
889
+ '500': string;
890
+ '600': string;
891
+ '700': string;
892
+ '800': string;
893
+ '900': string;
894
+ '950': string;
895
+ };
896
+ rose: {
897
+ '50': string;
898
+ '100': string;
899
+ '200': string;
900
+ '300': string;
901
+ '400': string;
902
+ '500': string;
903
+ '600': string;
904
+ '700': string;
905
+ '800': string;
906
+ '900': string;
907
+ '950': string;
908
+ };
909
+ };
910
+ //#endregion
911
+ //#region ../../node_modules/.pnpm/tailwindcss@4.3.0/node_modules/tailwindcss/dist/resolve-config-QUZ9b-Gn.d.mts
912
+ type NamedUtilityValue = {
913
+ kind: 'named';
914
+ /**
915
+ * ```
916
+ * bg-red-500
917
+ * ^^^^^^^
918
+ *
919
+ * w-1/2
920
+ * ^
921
+ * ```
922
+ */
923
+ value: string;
924
+ /**
925
+ * ```
926
+ * w-1/2
927
+ * ^^^
928
+ * ```
929
+ */
930
+ fraction: string | null;
931
+ };
932
+ type PluginUtils = {
933
+ theme: (keypath: string, defaultValue?: any) => any;
934
+ colors: typeof _default;
935
+ };
936
+ //#endregion
937
+ //#region ../../node_modules/.pnpm/tailwindcss@4.3.0/node_modules/tailwindcss/dist/types-CJYAW1ql.d.mts
938
+ /**
939
+ * The source code for one or more nodes in the AST
940
+ *
941
+ * This generally corresponds to a stylesheet
942
+ */
943
+ interface Source {
944
+ /**
945
+ * The path to the file that contains the referenced source code
946
+ *
947
+ * If this references the *output* source code, this is `null`.
948
+ */
949
+ file: string | null;
950
+ /**
951
+ * The referenced source code
952
+ */
953
+ code: string;
954
+ }
955
+ /**
956
+ * The file and offsets within it that this node covers
957
+ *
958
+ * This can represent either:
959
+ * - A location in the original CSS which caused this node to be created
960
+ * - A location in the output CSS where this node resides
961
+ */
962
+ type SourceLocation = [source: Source, start: number, end: number];
963
+ type Config = UserConfig;
964
+ type PluginFn = (api: PluginAPI) => void;
965
+ type PluginWithConfig = {
966
+ handler: PluginFn;
967
+ config?: UserConfig; /** @internal */
968
+ reference?: boolean;
969
+ src?: SourceLocation | undefined;
970
+ };
971
+ type PluginWithOptions<T> = {
972
+ (options?: T): PluginWithConfig;
973
+ __isOptionsFunction: true;
974
+ };
975
+ type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
976
+ type PluginAPI = {
977
+ addBase(base: CssInJs): void;
978
+ addVariant(name: string, variant: string | string[] | CssInJs): void;
979
+ matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
980
+ modifier: string | null;
981
+ }) => string | string[], options?: {
982
+ values?: Record<string, T>;
983
+ sort?(a: {
984
+ value: T | string;
985
+ modifier: string | null;
986
+ }, b: {
987
+ value: T | string;
988
+ modifier: string | null;
989
+ }): number;
990
+ }): void;
991
+ addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
992
+ matchUtilities(utilities: Record<string, (value: string, extra: {
993
+ modifier: string | null;
994
+ }) => CssInJs | CssInJs[]>, options?: Partial<{
995
+ type: string | string[];
996
+ supportsNegativeValues: boolean;
997
+ values: Record<string, string> & {
998
+ __BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
999
+ };
1000
+ modifiers: 'any' | Record<string, string>;
1001
+ }>): void;
1002
+ addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
1003
+ matchComponents(utilities: Record<string, (value: string, extra: {
1004
+ modifier: string | null;
1005
+ }) => CssInJs>, options?: Partial<{
1006
+ type: string | string[];
1007
+ supportsNegativeValues: boolean;
1008
+ values: Record<string, string> & {
1009
+ __BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
1010
+ };
1011
+ modifiers: 'any' | Record<string, string>;
1012
+ }>): void;
1013
+ theme(path: string, defaultValue?: any): any;
1014
+ config(path?: string, defaultValue?: any): any;
1015
+ prefix(className: string): string;
1016
+ };
1017
+ type CssInJs = {
1018
+ [key: string]: string | string[] | CssInJs | CssInJs[];
1019
+ };
1020
+ type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
1021
+ type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
1022
+ type ThemeConfig = Record<string, ThemeValue> & {
1023
+ extend?: Record<string, ThemeValue>;
1024
+ };
1025
+ type ContentFile = string | {
1026
+ raw: string;
1027
+ extension?: string;
1028
+ };
1029
+ type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
1030
+ interface UserConfig {
1031
+ presets?: UserConfig[];
1032
+ theme?: ThemeConfig;
1033
+ plugins?: Plugin[];
1034
+ }
1035
+ interface UserConfig {
1036
+ content?: ContentFile[] | {
1037
+ relative?: boolean;
1038
+ files: ContentFile[];
1039
+ };
1040
+ }
1041
+ interface UserConfig {
1042
+ darkMode?: DarkModeStrategy;
1043
+ }
1044
+ interface UserConfig {
1045
+ prefix?: string;
1046
+ }
1047
+ interface UserConfig {
1048
+ blocklist?: string[];
1049
+ }
1050
+ interface UserConfig {
1051
+ important?: boolean | string;
1052
+ }
1053
+ interface UserConfig {
1054
+ future?: 'all' | Record<string, boolean>;
1055
+ }
1056
+ interface UserConfig {
1057
+ experimental?: 'all' | Record<string, boolean>;
1058
+ }
1059
+ //#endregion
1060
+ //#region ../../node_modules/.pnpm/tailwindcss@4.3.0/node_modules/tailwindcss/dist/plugin.d.mts
1061
+ declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
1062
+ declare namespace createPlugin {
1063
+ var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
1064
+ }
1065
+ //#endregion
1066
+ //#region ../../node_modules/.pnpm/@heroui+theme@2.4.26_tailwindcss@4.3.0/node_modules/@heroui/theme/dist/plugin.d.ts
1067
+ /**
1068
+ * Based on tw-colors by L-Blondy
1069
+ * @see https://github.com/L-Blondy/tw-colors
1070
+ */
1071
+ declare const heroui: (config?: HeroUIPluginConfig) => ReturnType<typeof createPlugin>;
1072
+ //#endregion
67
1073
  //#region src/tv.d.ts
68
1074
  /**
69
1075
  * Represents a class value which can be either a string or an array of strings