@niledatabase/react 3.0.0-alpha.37 → 3.0.0-alpha.39

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.mjs CHANGED
@@ -1,2958 +1,3 @@
1
- // src/GoogleLoginButton/GoogleLoginButton.tsx
2
- import React2 from "react";
3
- import { signIn } from "next-auth/react";
4
- import { Slot as Slot2 } from "@radix-ui/react-slot";
5
-
6
- // ../../node_modules/clsx/dist/clsx.mjs
7
- function r(e) {
8
- var t, f, n = "";
9
- if ("string" == typeof e || "number" == typeof e) n += e;
10
- else if ("object" == typeof e) if (Array.isArray(e)) {
11
- var o = e.length;
12
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
13
- } else for (f in e) e[f] && (n && (n += " "), n += f);
14
- return n;
15
- }
16
- function clsx() {
17
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
18
- return n;
19
- }
20
-
21
- // ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
22
- var CLASS_PART_SEPARATOR = "-";
23
- var createClassGroupUtils = (config) => {
24
- const classMap = createClassMap(config);
25
- const {
26
- conflictingClassGroups,
27
- conflictingClassGroupModifiers
28
- } = config;
29
- const getClassGroupId = (className) => {
30
- const classParts = className.split(CLASS_PART_SEPARATOR);
31
- if (classParts[0] === "" && classParts.length !== 1) {
32
- classParts.shift();
33
- }
34
- return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
35
- };
36
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
37
- const conflicts = conflictingClassGroups[classGroupId] || [];
38
- if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
39
- return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
40
- }
41
- return conflicts;
42
- };
43
- return {
44
- getClassGroupId,
45
- getConflictingClassGroupIds
46
- };
47
- };
48
- var getGroupRecursive = (classParts, classPartObject) => {
49
- if (classParts.length === 0) {
50
- return classPartObject.classGroupId;
51
- }
52
- const currentClassPart = classParts[0];
53
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
54
- const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
55
- if (classGroupFromNextClassPart) {
56
- return classGroupFromNextClassPart;
57
- }
58
- if (classPartObject.validators.length === 0) {
59
- return void 0;
60
- }
61
- const classRest = classParts.join(CLASS_PART_SEPARATOR);
62
- return classPartObject.validators.find(({
63
- validator
64
- }) => validator(classRest))?.classGroupId;
65
- };
66
- var arbitraryPropertyRegex = /^\[(.+)\]$/;
67
- var getGroupIdForArbitraryProperty = (className) => {
68
- if (arbitraryPropertyRegex.test(className)) {
69
- const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
70
- const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(":"));
71
- if (property) {
72
- return "arbitrary.." + property;
73
- }
74
- }
75
- };
76
- var createClassMap = (config) => {
77
- const {
78
- theme,
79
- prefix
80
- } = config;
81
- const classMap = {
82
- nextPart: /* @__PURE__ */ new Map(),
83
- validators: []
84
- };
85
- const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
86
- prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
87
- processClassesRecursively(classGroup, classMap, classGroupId, theme);
88
- });
89
- return classMap;
90
- };
91
- var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
92
- classGroup.forEach((classDefinition) => {
93
- if (typeof classDefinition === "string") {
94
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
95
- classPartObjectToEdit.classGroupId = classGroupId;
96
- return;
97
- }
98
- if (typeof classDefinition === "function") {
99
- if (isThemeGetter(classDefinition)) {
100
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
101
- return;
102
- }
103
- classPartObject.validators.push({
104
- validator: classDefinition,
105
- classGroupId
106
- });
107
- return;
108
- }
109
- Object.entries(classDefinition).forEach(([key, classGroup2]) => {
110
- processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
111
- });
112
- });
113
- };
114
- var getPart = (classPartObject, path) => {
115
- let currentClassPartObject = classPartObject;
116
- path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
117
- if (!currentClassPartObject.nextPart.has(pathPart)) {
118
- currentClassPartObject.nextPart.set(pathPart, {
119
- nextPart: /* @__PURE__ */ new Map(),
120
- validators: []
121
- });
122
- }
123
- currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
124
- });
125
- return currentClassPartObject;
126
- };
127
- var isThemeGetter = (func) => func.isThemeGetter;
128
- var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
129
- if (!prefix) {
130
- return classGroupEntries;
131
- }
132
- return classGroupEntries.map(([classGroupId, classGroup]) => {
133
- const prefixedClassGroup = classGroup.map((classDefinition) => {
134
- if (typeof classDefinition === "string") {
135
- return prefix + classDefinition;
136
- }
137
- if (typeof classDefinition === "object") {
138
- return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
139
- }
140
- return classDefinition;
141
- });
142
- return [classGroupId, prefixedClassGroup];
143
- });
144
- };
145
- var createLruCache = (maxCacheSize) => {
146
- if (maxCacheSize < 1) {
147
- return {
148
- get: () => void 0,
149
- set: () => {
150
- }
151
- };
152
- }
153
- let cacheSize = 0;
154
- let cache = /* @__PURE__ */ new Map();
155
- let previousCache = /* @__PURE__ */ new Map();
156
- const update = (key, value) => {
157
- cache.set(key, value);
158
- cacheSize++;
159
- if (cacheSize > maxCacheSize) {
160
- cacheSize = 0;
161
- previousCache = cache;
162
- cache = /* @__PURE__ */ new Map();
163
- }
164
- };
165
- return {
166
- get(key) {
167
- let value = cache.get(key);
168
- if (value !== void 0) {
169
- return value;
170
- }
171
- if ((value = previousCache.get(key)) !== void 0) {
172
- update(key, value);
173
- return value;
174
- }
175
- },
176
- set(key, value) {
177
- if (cache.has(key)) {
178
- cache.set(key, value);
179
- } else {
180
- update(key, value);
181
- }
182
- }
183
- };
184
- };
185
- var IMPORTANT_MODIFIER = "!";
186
- var createParseClassName = (config) => {
187
- const {
188
- separator,
189
- experimentalParseClassName
190
- } = config;
191
- const isSeparatorSingleCharacter = separator.length === 1;
192
- const firstSeparatorCharacter = separator[0];
193
- const separatorLength = separator.length;
194
- const parseClassName = (className) => {
195
- const modifiers = [];
196
- let bracketDepth = 0;
197
- let modifierStart = 0;
198
- let postfixModifierPosition;
199
- for (let index = 0; index < className.length; index++) {
200
- let currentCharacter = className[index];
201
- if (bracketDepth === 0) {
202
- if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
203
- modifiers.push(className.slice(modifierStart, index));
204
- modifierStart = index + separatorLength;
205
- continue;
206
- }
207
- if (currentCharacter === "/") {
208
- postfixModifierPosition = index;
209
- continue;
210
- }
211
- }
212
- if (currentCharacter === "[") {
213
- bracketDepth++;
214
- } else if (currentCharacter === "]") {
215
- bracketDepth--;
216
- }
217
- }
218
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
219
- const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
220
- const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
221
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
222
- return {
223
- modifiers,
224
- hasImportantModifier,
225
- baseClassName,
226
- maybePostfixModifierPosition
227
- };
228
- };
229
- if (experimentalParseClassName) {
230
- return (className) => experimentalParseClassName({
231
- className,
232
- parseClassName
233
- });
234
- }
235
- return parseClassName;
236
- };
237
- var sortModifiers = (modifiers) => {
238
- if (modifiers.length <= 1) {
239
- return modifiers;
240
- }
241
- const sortedModifiers = [];
242
- let unsortedModifiers = [];
243
- modifiers.forEach((modifier) => {
244
- const isArbitraryVariant = modifier[0] === "[";
245
- if (isArbitraryVariant) {
246
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
247
- unsortedModifiers = [];
248
- } else {
249
- unsortedModifiers.push(modifier);
250
- }
251
- });
252
- sortedModifiers.push(...unsortedModifiers.sort());
253
- return sortedModifiers;
254
- };
255
- var createConfigUtils = (config) => ({
256
- cache: createLruCache(config.cacheSize),
257
- parseClassName: createParseClassName(config),
258
- ...createClassGroupUtils(config)
259
- });
260
- var SPLIT_CLASSES_REGEX = /\s+/;
261
- var mergeClassList = (classList, configUtils) => {
262
- const {
263
- parseClassName,
264
- getClassGroupId,
265
- getConflictingClassGroupIds
266
- } = configUtils;
267
- const classGroupsInConflict = [];
268
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
269
- let result = "";
270
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
271
- const originalClassName = classNames[index];
272
- const {
273
- modifiers,
274
- hasImportantModifier,
275
- baseClassName,
276
- maybePostfixModifierPosition
277
- } = parseClassName(originalClassName);
278
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
279
- let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
280
- if (!classGroupId) {
281
- if (!hasPostfixModifier) {
282
- result = originalClassName + (result.length > 0 ? " " + result : result);
283
- continue;
284
- }
285
- classGroupId = getClassGroupId(baseClassName);
286
- if (!classGroupId) {
287
- result = originalClassName + (result.length > 0 ? " " + result : result);
288
- continue;
289
- }
290
- hasPostfixModifier = false;
291
- }
292
- const variantModifier = sortModifiers(modifiers).join(":");
293
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
294
- const classId = modifierId + classGroupId;
295
- if (classGroupsInConflict.includes(classId)) {
296
- continue;
297
- }
298
- classGroupsInConflict.push(classId);
299
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
300
- for (let i = 0; i < conflictGroups.length; ++i) {
301
- const group = conflictGroups[i];
302
- classGroupsInConflict.push(modifierId + group);
303
- }
304
- result = originalClassName + (result.length > 0 ? " " + result : result);
305
- }
306
- return result;
307
- };
308
- function twJoin() {
309
- let index = 0;
310
- let argument;
311
- let resolvedValue;
312
- let string = "";
313
- while (index < arguments.length) {
314
- if (argument = arguments[index++]) {
315
- if (resolvedValue = toValue(argument)) {
316
- string && (string += " ");
317
- string += resolvedValue;
318
- }
319
- }
320
- }
321
- return string;
322
- }
323
- var toValue = (mix) => {
324
- if (typeof mix === "string") {
325
- return mix;
326
- }
327
- let resolvedValue;
328
- let string = "";
329
- for (let k = 0; k < mix.length; k++) {
330
- if (mix[k]) {
331
- if (resolvedValue = toValue(mix[k])) {
332
- string && (string += " ");
333
- string += resolvedValue;
334
- }
335
- }
336
- }
337
- return string;
338
- };
339
- function createTailwindMerge(createConfigFirst, ...createConfigRest) {
340
- let configUtils;
341
- let cacheGet;
342
- let cacheSet;
343
- let functionToCall = initTailwindMerge;
344
- function initTailwindMerge(classList) {
345
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
346
- configUtils = createConfigUtils(config);
347
- cacheGet = configUtils.cache.get;
348
- cacheSet = configUtils.cache.set;
349
- functionToCall = tailwindMerge;
350
- return tailwindMerge(classList);
351
- }
352
- function tailwindMerge(classList) {
353
- const cachedResult = cacheGet(classList);
354
- if (cachedResult) {
355
- return cachedResult;
356
- }
357
- const result = mergeClassList(classList, configUtils);
358
- cacheSet(classList, result);
359
- return result;
360
- }
361
- return function callTailwindMerge() {
362
- return functionToCall(twJoin.apply(null, arguments));
363
- };
364
- }
365
- var fromTheme = (key) => {
366
- const themeGetter = (theme) => theme[key] || [];
367
- themeGetter.isThemeGetter = true;
368
- return themeGetter;
369
- };
370
- var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
371
- var fractionRegex = /^\d+\/\d+$/;
372
- var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
373
- var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
374
- var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
375
- var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
376
- var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
377
- var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
378
- var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
379
- var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
380
- var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
381
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
382
- var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
383
- var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
384
- var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
385
- var isTshirtSize = (value) => tshirtUnitRegex.test(value);
386
- var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
387
- var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
388
- var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
389
- var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
390
- var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
391
- var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
392
- var isAny = () => true;
393
- var getIsArbitraryValue = (value, label, testValue) => {
394
- const result = arbitraryValueRegex.exec(value);
395
- if (result) {
396
- if (result[1]) {
397
- return typeof label === "string" ? result[1] === label : label.has(result[1]);
398
- }
399
- return testValue(result[2]);
400
- }
401
- return false;
402
- };
403
- var isLengthOnly = (value) => (
404
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
405
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
406
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
407
- lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
408
- );
409
- var isNever = () => false;
410
- var isShadow = (value) => shadowRegex.test(value);
411
- var isImage = (value) => imageRegex.test(value);
412
- var getDefaultConfig = () => {
413
- const colors = fromTheme("colors");
414
- const spacing = fromTheme("spacing");
415
- const blur = fromTheme("blur");
416
- const brightness = fromTheme("brightness");
417
- const borderColor = fromTheme("borderColor");
418
- const borderRadius = fromTheme("borderRadius");
419
- const borderSpacing = fromTheme("borderSpacing");
420
- const borderWidth = fromTheme("borderWidth");
421
- const contrast = fromTheme("contrast");
422
- const grayscale = fromTheme("grayscale");
423
- const hueRotate = fromTheme("hueRotate");
424
- const invert = fromTheme("invert");
425
- const gap = fromTheme("gap");
426
- const gradientColorStops = fromTheme("gradientColorStops");
427
- const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
428
- const inset = fromTheme("inset");
429
- const margin = fromTheme("margin");
430
- const opacity = fromTheme("opacity");
431
- const padding = fromTheme("padding");
432
- const saturate = fromTheme("saturate");
433
- const scale = fromTheme("scale");
434
- const sepia = fromTheme("sepia");
435
- const skew = fromTheme("skew");
436
- const space = fromTheme("space");
437
- const translate = fromTheme("translate");
438
- const getOverscroll = () => ["auto", "contain", "none"];
439
- const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
440
- const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
441
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
442
- const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
443
- const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
444
- const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
445
- const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
446
- const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
447
- const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
448
- const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
449
- const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
450
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
451
- return {
452
- cacheSize: 500,
453
- separator: ":",
454
- theme: {
455
- colors: [isAny],
456
- spacing: [isLength, isArbitraryLength],
457
- blur: ["none", "", isTshirtSize, isArbitraryValue],
458
- brightness: getNumberAndArbitrary(),
459
- borderColor: [colors],
460
- borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
461
- borderSpacing: getSpacingWithArbitrary(),
462
- borderWidth: getLengthWithEmptyAndArbitrary(),
463
- contrast: getNumberAndArbitrary(),
464
- grayscale: getZeroAndEmpty(),
465
- hueRotate: getNumberAndArbitrary(),
466
- invert: getZeroAndEmpty(),
467
- gap: getSpacingWithArbitrary(),
468
- gradientColorStops: [colors],
469
- gradientColorStopPositions: [isPercent, isArbitraryLength],
470
- inset: getSpacingWithAutoAndArbitrary(),
471
- margin: getSpacingWithAutoAndArbitrary(),
472
- opacity: getNumberAndArbitrary(),
473
- padding: getSpacingWithArbitrary(),
474
- saturate: getNumberAndArbitrary(),
475
- scale: getNumberAndArbitrary(),
476
- sepia: getZeroAndEmpty(),
477
- skew: getNumberAndArbitrary(),
478
- space: getSpacingWithArbitrary(),
479
- translate: getSpacingWithArbitrary()
480
- },
481
- classGroups: {
482
- // Layout
483
- /**
484
- * Aspect Ratio
485
- * @see https://tailwindcss.com/docs/aspect-ratio
486
- */
487
- aspect: [{
488
- aspect: ["auto", "square", "video", isArbitraryValue]
489
- }],
490
- /**
491
- * Container
492
- * @see https://tailwindcss.com/docs/container
493
- */
494
- container: ["container"],
495
- /**
496
- * Columns
497
- * @see https://tailwindcss.com/docs/columns
498
- */
499
- columns: [{
500
- columns: [isTshirtSize]
501
- }],
502
- /**
503
- * Break After
504
- * @see https://tailwindcss.com/docs/break-after
505
- */
506
- "break-after": [{
507
- "break-after": getBreaks()
508
- }],
509
- /**
510
- * Break Before
511
- * @see https://tailwindcss.com/docs/break-before
512
- */
513
- "break-before": [{
514
- "break-before": getBreaks()
515
- }],
516
- /**
517
- * Break Inside
518
- * @see https://tailwindcss.com/docs/break-inside
519
- */
520
- "break-inside": [{
521
- "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
522
- }],
523
- /**
524
- * Box Decoration Break
525
- * @see https://tailwindcss.com/docs/box-decoration-break
526
- */
527
- "box-decoration": [{
528
- "box-decoration": ["slice", "clone"]
529
- }],
530
- /**
531
- * Box Sizing
532
- * @see https://tailwindcss.com/docs/box-sizing
533
- */
534
- box: [{
535
- box: ["border", "content"]
536
- }],
537
- /**
538
- * Display
539
- * @see https://tailwindcss.com/docs/display
540
- */
541
- 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"],
542
- /**
543
- * Floats
544
- * @see https://tailwindcss.com/docs/float
545
- */
546
- float: [{
547
- float: ["right", "left", "none", "start", "end"]
548
- }],
549
- /**
550
- * Clear
551
- * @see https://tailwindcss.com/docs/clear
552
- */
553
- clear: [{
554
- clear: ["left", "right", "both", "none", "start", "end"]
555
- }],
556
- /**
557
- * Isolation
558
- * @see https://tailwindcss.com/docs/isolation
559
- */
560
- isolation: ["isolate", "isolation-auto"],
561
- /**
562
- * Object Fit
563
- * @see https://tailwindcss.com/docs/object-fit
564
- */
565
- "object-fit": [{
566
- object: ["contain", "cover", "fill", "none", "scale-down"]
567
- }],
568
- /**
569
- * Object Position
570
- * @see https://tailwindcss.com/docs/object-position
571
- */
572
- "object-position": [{
573
- object: [...getPositions(), isArbitraryValue]
574
- }],
575
- /**
576
- * Overflow
577
- * @see https://tailwindcss.com/docs/overflow
578
- */
579
- overflow: [{
580
- overflow: getOverflow()
581
- }],
582
- /**
583
- * Overflow X
584
- * @see https://tailwindcss.com/docs/overflow
585
- */
586
- "overflow-x": [{
587
- "overflow-x": getOverflow()
588
- }],
589
- /**
590
- * Overflow Y
591
- * @see https://tailwindcss.com/docs/overflow
592
- */
593
- "overflow-y": [{
594
- "overflow-y": getOverflow()
595
- }],
596
- /**
597
- * Overscroll Behavior
598
- * @see https://tailwindcss.com/docs/overscroll-behavior
599
- */
600
- overscroll: [{
601
- overscroll: getOverscroll()
602
- }],
603
- /**
604
- * Overscroll Behavior X
605
- * @see https://tailwindcss.com/docs/overscroll-behavior
606
- */
607
- "overscroll-x": [{
608
- "overscroll-x": getOverscroll()
609
- }],
610
- /**
611
- * Overscroll Behavior Y
612
- * @see https://tailwindcss.com/docs/overscroll-behavior
613
- */
614
- "overscroll-y": [{
615
- "overscroll-y": getOverscroll()
616
- }],
617
- /**
618
- * Position
619
- * @see https://tailwindcss.com/docs/position
620
- */
621
- position: ["static", "fixed", "absolute", "relative", "sticky"],
622
- /**
623
- * Top / Right / Bottom / Left
624
- * @see https://tailwindcss.com/docs/top-right-bottom-left
625
- */
626
- inset: [{
627
- inset: [inset]
628
- }],
629
- /**
630
- * Right / Left
631
- * @see https://tailwindcss.com/docs/top-right-bottom-left
632
- */
633
- "inset-x": [{
634
- "inset-x": [inset]
635
- }],
636
- /**
637
- * Top / Bottom
638
- * @see https://tailwindcss.com/docs/top-right-bottom-left
639
- */
640
- "inset-y": [{
641
- "inset-y": [inset]
642
- }],
643
- /**
644
- * Start
645
- * @see https://tailwindcss.com/docs/top-right-bottom-left
646
- */
647
- start: [{
648
- start: [inset]
649
- }],
650
- /**
651
- * End
652
- * @see https://tailwindcss.com/docs/top-right-bottom-left
653
- */
654
- end: [{
655
- end: [inset]
656
- }],
657
- /**
658
- * Top
659
- * @see https://tailwindcss.com/docs/top-right-bottom-left
660
- */
661
- top: [{
662
- top: [inset]
663
- }],
664
- /**
665
- * Right
666
- * @see https://tailwindcss.com/docs/top-right-bottom-left
667
- */
668
- right: [{
669
- right: [inset]
670
- }],
671
- /**
672
- * Bottom
673
- * @see https://tailwindcss.com/docs/top-right-bottom-left
674
- */
675
- bottom: [{
676
- bottom: [inset]
677
- }],
678
- /**
679
- * Left
680
- * @see https://tailwindcss.com/docs/top-right-bottom-left
681
- */
682
- left: [{
683
- left: [inset]
684
- }],
685
- /**
686
- * Visibility
687
- * @see https://tailwindcss.com/docs/visibility
688
- */
689
- visibility: ["visible", "invisible", "collapse"],
690
- /**
691
- * Z-Index
692
- * @see https://tailwindcss.com/docs/z-index
693
- */
694
- z: [{
695
- z: ["auto", isInteger, isArbitraryValue]
696
- }],
697
- // Flexbox and Grid
698
- /**
699
- * Flex Basis
700
- * @see https://tailwindcss.com/docs/flex-basis
701
- */
702
- basis: [{
703
- basis: getSpacingWithAutoAndArbitrary()
704
- }],
705
- /**
706
- * Flex Direction
707
- * @see https://tailwindcss.com/docs/flex-direction
708
- */
709
- "flex-direction": [{
710
- flex: ["row", "row-reverse", "col", "col-reverse"]
711
- }],
712
- /**
713
- * Flex Wrap
714
- * @see https://tailwindcss.com/docs/flex-wrap
715
- */
716
- "flex-wrap": [{
717
- flex: ["wrap", "wrap-reverse", "nowrap"]
718
- }],
719
- /**
720
- * Flex
721
- * @see https://tailwindcss.com/docs/flex
722
- */
723
- flex: [{
724
- flex: ["1", "auto", "initial", "none", isArbitraryValue]
725
- }],
726
- /**
727
- * Flex Grow
728
- * @see https://tailwindcss.com/docs/flex-grow
729
- */
730
- grow: [{
731
- grow: getZeroAndEmpty()
732
- }],
733
- /**
734
- * Flex Shrink
735
- * @see https://tailwindcss.com/docs/flex-shrink
736
- */
737
- shrink: [{
738
- shrink: getZeroAndEmpty()
739
- }],
740
- /**
741
- * Order
742
- * @see https://tailwindcss.com/docs/order
743
- */
744
- order: [{
745
- order: ["first", "last", "none", isInteger, isArbitraryValue]
746
- }],
747
- /**
748
- * Grid Template Columns
749
- * @see https://tailwindcss.com/docs/grid-template-columns
750
- */
751
- "grid-cols": [{
752
- "grid-cols": [isAny]
753
- }],
754
- /**
755
- * Grid Column Start / End
756
- * @see https://tailwindcss.com/docs/grid-column
757
- */
758
- "col-start-end": [{
759
- col: ["auto", {
760
- span: ["full", isInteger, isArbitraryValue]
761
- }, isArbitraryValue]
762
- }],
763
- /**
764
- * Grid Column Start
765
- * @see https://tailwindcss.com/docs/grid-column
766
- */
767
- "col-start": [{
768
- "col-start": getNumberWithAutoAndArbitrary()
769
- }],
770
- /**
771
- * Grid Column End
772
- * @see https://tailwindcss.com/docs/grid-column
773
- */
774
- "col-end": [{
775
- "col-end": getNumberWithAutoAndArbitrary()
776
- }],
777
- /**
778
- * Grid Template Rows
779
- * @see https://tailwindcss.com/docs/grid-template-rows
780
- */
781
- "grid-rows": [{
782
- "grid-rows": [isAny]
783
- }],
784
- /**
785
- * Grid Row Start / End
786
- * @see https://tailwindcss.com/docs/grid-row
787
- */
788
- "row-start-end": [{
789
- row: ["auto", {
790
- span: [isInteger, isArbitraryValue]
791
- }, isArbitraryValue]
792
- }],
793
- /**
794
- * Grid Row Start
795
- * @see https://tailwindcss.com/docs/grid-row
796
- */
797
- "row-start": [{
798
- "row-start": getNumberWithAutoAndArbitrary()
799
- }],
800
- /**
801
- * Grid Row End
802
- * @see https://tailwindcss.com/docs/grid-row
803
- */
804
- "row-end": [{
805
- "row-end": getNumberWithAutoAndArbitrary()
806
- }],
807
- /**
808
- * Grid Auto Flow
809
- * @see https://tailwindcss.com/docs/grid-auto-flow
810
- */
811
- "grid-flow": [{
812
- "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
813
- }],
814
- /**
815
- * Grid Auto Columns
816
- * @see https://tailwindcss.com/docs/grid-auto-columns
817
- */
818
- "auto-cols": [{
819
- "auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
820
- }],
821
- /**
822
- * Grid Auto Rows
823
- * @see https://tailwindcss.com/docs/grid-auto-rows
824
- */
825
- "auto-rows": [{
826
- "auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
827
- }],
828
- /**
829
- * Gap
830
- * @see https://tailwindcss.com/docs/gap
831
- */
832
- gap: [{
833
- gap: [gap]
834
- }],
835
- /**
836
- * Gap X
837
- * @see https://tailwindcss.com/docs/gap
838
- */
839
- "gap-x": [{
840
- "gap-x": [gap]
841
- }],
842
- /**
843
- * Gap Y
844
- * @see https://tailwindcss.com/docs/gap
845
- */
846
- "gap-y": [{
847
- "gap-y": [gap]
848
- }],
849
- /**
850
- * Justify Content
851
- * @see https://tailwindcss.com/docs/justify-content
852
- */
853
- "justify-content": [{
854
- justify: ["normal", ...getAlign()]
855
- }],
856
- /**
857
- * Justify Items
858
- * @see https://tailwindcss.com/docs/justify-items
859
- */
860
- "justify-items": [{
861
- "justify-items": ["start", "end", "center", "stretch"]
862
- }],
863
- /**
864
- * Justify Self
865
- * @see https://tailwindcss.com/docs/justify-self
866
- */
867
- "justify-self": [{
868
- "justify-self": ["auto", "start", "end", "center", "stretch"]
869
- }],
870
- /**
871
- * Align Content
872
- * @see https://tailwindcss.com/docs/align-content
873
- */
874
- "align-content": [{
875
- content: ["normal", ...getAlign(), "baseline"]
876
- }],
877
- /**
878
- * Align Items
879
- * @see https://tailwindcss.com/docs/align-items
880
- */
881
- "align-items": [{
882
- items: ["start", "end", "center", "baseline", "stretch"]
883
- }],
884
- /**
885
- * Align Self
886
- * @see https://tailwindcss.com/docs/align-self
887
- */
888
- "align-self": [{
889
- self: ["auto", "start", "end", "center", "stretch", "baseline"]
890
- }],
891
- /**
892
- * Place Content
893
- * @see https://tailwindcss.com/docs/place-content
894
- */
895
- "place-content": [{
896
- "place-content": [...getAlign(), "baseline"]
897
- }],
898
- /**
899
- * Place Items
900
- * @see https://tailwindcss.com/docs/place-items
901
- */
902
- "place-items": [{
903
- "place-items": ["start", "end", "center", "baseline", "stretch"]
904
- }],
905
- /**
906
- * Place Self
907
- * @see https://tailwindcss.com/docs/place-self
908
- */
909
- "place-self": [{
910
- "place-self": ["auto", "start", "end", "center", "stretch"]
911
- }],
912
- // Spacing
913
- /**
914
- * Padding
915
- * @see https://tailwindcss.com/docs/padding
916
- */
917
- p: [{
918
- p: [padding]
919
- }],
920
- /**
921
- * Padding X
922
- * @see https://tailwindcss.com/docs/padding
923
- */
924
- px: [{
925
- px: [padding]
926
- }],
927
- /**
928
- * Padding Y
929
- * @see https://tailwindcss.com/docs/padding
930
- */
931
- py: [{
932
- py: [padding]
933
- }],
934
- /**
935
- * Padding Start
936
- * @see https://tailwindcss.com/docs/padding
937
- */
938
- ps: [{
939
- ps: [padding]
940
- }],
941
- /**
942
- * Padding End
943
- * @see https://tailwindcss.com/docs/padding
944
- */
945
- pe: [{
946
- pe: [padding]
947
- }],
948
- /**
949
- * Padding Top
950
- * @see https://tailwindcss.com/docs/padding
951
- */
952
- pt: [{
953
- pt: [padding]
954
- }],
955
- /**
956
- * Padding Right
957
- * @see https://tailwindcss.com/docs/padding
958
- */
959
- pr: [{
960
- pr: [padding]
961
- }],
962
- /**
963
- * Padding Bottom
964
- * @see https://tailwindcss.com/docs/padding
965
- */
966
- pb: [{
967
- pb: [padding]
968
- }],
969
- /**
970
- * Padding Left
971
- * @see https://tailwindcss.com/docs/padding
972
- */
973
- pl: [{
974
- pl: [padding]
975
- }],
976
- /**
977
- * Margin
978
- * @see https://tailwindcss.com/docs/margin
979
- */
980
- m: [{
981
- m: [margin]
982
- }],
983
- /**
984
- * Margin X
985
- * @see https://tailwindcss.com/docs/margin
986
- */
987
- mx: [{
988
- mx: [margin]
989
- }],
990
- /**
991
- * Margin Y
992
- * @see https://tailwindcss.com/docs/margin
993
- */
994
- my: [{
995
- my: [margin]
996
- }],
997
- /**
998
- * Margin Start
999
- * @see https://tailwindcss.com/docs/margin
1000
- */
1001
- ms: [{
1002
- ms: [margin]
1003
- }],
1004
- /**
1005
- * Margin End
1006
- * @see https://tailwindcss.com/docs/margin
1007
- */
1008
- me: [{
1009
- me: [margin]
1010
- }],
1011
- /**
1012
- * Margin Top
1013
- * @see https://tailwindcss.com/docs/margin
1014
- */
1015
- mt: [{
1016
- mt: [margin]
1017
- }],
1018
- /**
1019
- * Margin Right
1020
- * @see https://tailwindcss.com/docs/margin
1021
- */
1022
- mr: [{
1023
- mr: [margin]
1024
- }],
1025
- /**
1026
- * Margin Bottom
1027
- * @see https://tailwindcss.com/docs/margin
1028
- */
1029
- mb: [{
1030
- mb: [margin]
1031
- }],
1032
- /**
1033
- * Margin Left
1034
- * @see https://tailwindcss.com/docs/margin
1035
- */
1036
- ml: [{
1037
- ml: [margin]
1038
- }],
1039
- /**
1040
- * Space Between X
1041
- * @see https://tailwindcss.com/docs/space
1042
- */
1043
- "space-x": [{
1044
- "space-x": [space]
1045
- }],
1046
- /**
1047
- * Space Between X Reverse
1048
- * @see https://tailwindcss.com/docs/space
1049
- */
1050
- "space-x-reverse": ["space-x-reverse"],
1051
- /**
1052
- * Space Between Y
1053
- * @see https://tailwindcss.com/docs/space
1054
- */
1055
- "space-y": [{
1056
- "space-y": [space]
1057
- }],
1058
- /**
1059
- * Space Between Y Reverse
1060
- * @see https://tailwindcss.com/docs/space
1061
- */
1062
- "space-y-reverse": ["space-y-reverse"],
1063
- // Sizing
1064
- /**
1065
- * Width
1066
- * @see https://tailwindcss.com/docs/width
1067
- */
1068
- w: [{
1069
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
1070
- }],
1071
- /**
1072
- * Min-Width
1073
- * @see https://tailwindcss.com/docs/min-width
1074
- */
1075
- "min-w": [{
1076
- "min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
1077
- }],
1078
- /**
1079
- * Max-Width
1080
- * @see https://tailwindcss.com/docs/max-width
1081
- */
1082
- "max-w": [{
1083
- "max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1084
- screen: [isTshirtSize]
1085
- }, isTshirtSize]
1086
- }],
1087
- /**
1088
- * Height
1089
- * @see https://tailwindcss.com/docs/height
1090
- */
1091
- h: [{
1092
- h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
1093
- }],
1094
- /**
1095
- * Min-Height
1096
- * @see https://tailwindcss.com/docs/min-height
1097
- */
1098
- "min-h": [{
1099
- "min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1100
- }],
1101
- /**
1102
- * Max-Height
1103
- * @see https://tailwindcss.com/docs/max-height
1104
- */
1105
- "max-h": [{
1106
- "max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1107
- }],
1108
- /**
1109
- * Size
1110
- * @see https://tailwindcss.com/docs/size
1111
- */
1112
- size: [{
1113
- size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1114
- }],
1115
- // Typography
1116
- /**
1117
- * Font Size
1118
- * @see https://tailwindcss.com/docs/font-size
1119
- */
1120
- "font-size": [{
1121
- text: ["base", isTshirtSize, isArbitraryLength]
1122
- }],
1123
- /**
1124
- * Font Smoothing
1125
- * @see https://tailwindcss.com/docs/font-smoothing
1126
- */
1127
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
1128
- /**
1129
- * Font Style
1130
- * @see https://tailwindcss.com/docs/font-style
1131
- */
1132
- "font-style": ["italic", "not-italic"],
1133
- /**
1134
- * Font Weight
1135
- * @see https://tailwindcss.com/docs/font-weight
1136
- */
1137
- "font-weight": [{
1138
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
1139
- }],
1140
- /**
1141
- * Font Family
1142
- * @see https://tailwindcss.com/docs/font-family
1143
- */
1144
- "font-family": [{
1145
- font: [isAny]
1146
- }],
1147
- /**
1148
- * Font Variant Numeric
1149
- * @see https://tailwindcss.com/docs/font-variant-numeric
1150
- */
1151
- "fvn-normal": ["normal-nums"],
1152
- /**
1153
- * Font Variant Numeric
1154
- * @see https://tailwindcss.com/docs/font-variant-numeric
1155
- */
1156
- "fvn-ordinal": ["ordinal"],
1157
- /**
1158
- * Font Variant Numeric
1159
- * @see https://tailwindcss.com/docs/font-variant-numeric
1160
- */
1161
- "fvn-slashed-zero": ["slashed-zero"],
1162
- /**
1163
- * Font Variant Numeric
1164
- * @see https://tailwindcss.com/docs/font-variant-numeric
1165
- */
1166
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
1167
- /**
1168
- * Font Variant Numeric
1169
- * @see https://tailwindcss.com/docs/font-variant-numeric
1170
- */
1171
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
1172
- /**
1173
- * Font Variant Numeric
1174
- * @see https://tailwindcss.com/docs/font-variant-numeric
1175
- */
1176
- "fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
1177
- /**
1178
- * Letter Spacing
1179
- * @see https://tailwindcss.com/docs/letter-spacing
1180
- */
1181
- tracking: [{
1182
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
1183
- }],
1184
- /**
1185
- * Line Clamp
1186
- * @see https://tailwindcss.com/docs/line-clamp
1187
- */
1188
- "line-clamp": [{
1189
- "line-clamp": ["none", isNumber, isArbitraryNumber]
1190
- }],
1191
- /**
1192
- * Line Height
1193
- * @see https://tailwindcss.com/docs/line-height
1194
- */
1195
- leading: [{
1196
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
1197
- }],
1198
- /**
1199
- * List Style Image
1200
- * @see https://tailwindcss.com/docs/list-style-image
1201
- */
1202
- "list-image": [{
1203
- "list-image": ["none", isArbitraryValue]
1204
- }],
1205
- /**
1206
- * List Style Type
1207
- * @see https://tailwindcss.com/docs/list-style-type
1208
- */
1209
- "list-style-type": [{
1210
- list: ["none", "disc", "decimal", isArbitraryValue]
1211
- }],
1212
- /**
1213
- * List Style Position
1214
- * @see https://tailwindcss.com/docs/list-style-position
1215
- */
1216
- "list-style-position": [{
1217
- list: ["inside", "outside"]
1218
- }],
1219
- /**
1220
- * Placeholder Color
1221
- * @deprecated since Tailwind CSS v3.0.0
1222
- * @see https://tailwindcss.com/docs/placeholder-color
1223
- */
1224
- "placeholder-color": [{
1225
- placeholder: [colors]
1226
- }],
1227
- /**
1228
- * Placeholder Opacity
1229
- * @see https://tailwindcss.com/docs/placeholder-opacity
1230
- */
1231
- "placeholder-opacity": [{
1232
- "placeholder-opacity": [opacity]
1233
- }],
1234
- /**
1235
- * Text Alignment
1236
- * @see https://tailwindcss.com/docs/text-align
1237
- */
1238
- "text-alignment": [{
1239
- text: ["left", "center", "right", "justify", "start", "end"]
1240
- }],
1241
- /**
1242
- * Text Color
1243
- * @see https://tailwindcss.com/docs/text-color
1244
- */
1245
- "text-color": [{
1246
- text: [colors]
1247
- }],
1248
- /**
1249
- * Text Opacity
1250
- * @see https://tailwindcss.com/docs/text-opacity
1251
- */
1252
- "text-opacity": [{
1253
- "text-opacity": [opacity]
1254
- }],
1255
- /**
1256
- * Text Decoration
1257
- * @see https://tailwindcss.com/docs/text-decoration
1258
- */
1259
- "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1260
- /**
1261
- * Text Decoration Style
1262
- * @see https://tailwindcss.com/docs/text-decoration-style
1263
- */
1264
- "text-decoration-style": [{
1265
- decoration: [...getLineStyles(), "wavy"]
1266
- }],
1267
- /**
1268
- * Text Decoration Thickness
1269
- * @see https://tailwindcss.com/docs/text-decoration-thickness
1270
- */
1271
- "text-decoration-thickness": [{
1272
- decoration: ["auto", "from-font", isLength, isArbitraryLength]
1273
- }],
1274
- /**
1275
- * Text Underline Offset
1276
- * @see https://tailwindcss.com/docs/text-underline-offset
1277
- */
1278
- "underline-offset": [{
1279
- "underline-offset": ["auto", isLength, isArbitraryValue]
1280
- }],
1281
- /**
1282
- * Text Decoration Color
1283
- * @see https://tailwindcss.com/docs/text-decoration-color
1284
- */
1285
- "text-decoration-color": [{
1286
- decoration: [colors]
1287
- }],
1288
- /**
1289
- * Text Transform
1290
- * @see https://tailwindcss.com/docs/text-transform
1291
- */
1292
- "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1293
- /**
1294
- * Text Overflow
1295
- * @see https://tailwindcss.com/docs/text-overflow
1296
- */
1297
- "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1298
- /**
1299
- * Text Wrap
1300
- * @see https://tailwindcss.com/docs/text-wrap
1301
- */
1302
- "text-wrap": [{
1303
- text: ["wrap", "nowrap", "balance", "pretty"]
1304
- }],
1305
- /**
1306
- * Text Indent
1307
- * @see https://tailwindcss.com/docs/text-indent
1308
- */
1309
- indent: [{
1310
- indent: getSpacingWithArbitrary()
1311
- }],
1312
- /**
1313
- * Vertical Alignment
1314
- * @see https://tailwindcss.com/docs/vertical-align
1315
- */
1316
- "vertical-align": [{
1317
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
1318
- }],
1319
- /**
1320
- * Whitespace
1321
- * @see https://tailwindcss.com/docs/whitespace
1322
- */
1323
- whitespace: [{
1324
- whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1325
- }],
1326
- /**
1327
- * Word Break
1328
- * @see https://tailwindcss.com/docs/word-break
1329
- */
1330
- break: [{
1331
- break: ["normal", "words", "all", "keep"]
1332
- }],
1333
- /**
1334
- * Hyphens
1335
- * @see https://tailwindcss.com/docs/hyphens
1336
- */
1337
- hyphens: [{
1338
- hyphens: ["none", "manual", "auto"]
1339
- }],
1340
- /**
1341
- * Content
1342
- * @see https://tailwindcss.com/docs/content
1343
- */
1344
- content: [{
1345
- content: ["none", isArbitraryValue]
1346
- }],
1347
- // Backgrounds
1348
- /**
1349
- * Background Attachment
1350
- * @see https://tailwindcss.com/docs/background-attachment
1351
- */
1352
- "bg-attachment": [{
1353
- bg: ["fixed", "local", "scroll"]
1354
- }],
1355
- /**
1356
- * Background Clip
1357
- * @see https://tailwindcss.com/docs/background-clip
1358
- */
1359
- "bg-clip": [{
1360
- "bg-clip": ["border", "padding", "content", "text"]
1361
- }],
1362
- /**
1363
- * Background Opacity
1364
- * @deprecated since Tailwind CSS v3.0.0
1365
- * @see https://tailwindcss.com/docs/background-opacity
1366
- */
1367
- "bg-opacity": [{
1368
- "bg-opacity": [opacity]
1369
- }],
1370
- /**
1371
- * Background Origin
1372
- * @see https://tailwindcss.com/docs/background-origin
1373
- */
1374
- "bg-origin": [{
1375
- "bg-origin": ["border", "padding", "content"]
1376
- }],
1377
- /**
1378
- * Background Position
1379
- * @see https://tailwindcss.com/docs/background-position
1380
- */
1381
- "bg-position": [{
1382
- bg: [...getPositions(), isArbitraryPosition]
1383
- }],
1384
- /**
1385
- * Background Repeat
1386
- * @see https://tailwindcss.com/docs/background-repeat
1387
- */
1388
- "bg-repeat": [{
1389
- bg: ["no-repeat", {
1390
- repeat: ["", "x", "y", "round", "space"]
1391
- }]
1392
- }],
1393
- /**
1394
- * Background Size
1395
- * @see https://tailwindcss.com/docs/background-size
1396
- */
1397
- "bg-size": [{
1398
- bg: ["auto", "cover", "contain", isArbitrarySize]
1399
- }],
1400
- /**
1401
- * Background Image
1402
- * @see https://tailwindcss.com/docs/background-image
1403
- */
1404
- "bg-image": [{
1405
- bg: ["none", {
1406
- "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1407
- }, isArbitraryImage]
1408
- }],
1409
- /**
1410
- * Background Color
1411
- * @see https://tailwindcss.com/docs/background-color
1412
- */
1413
- "bg-color": [{
1414
- bg: [colors]
1415
- }],
1416
- /**
1417
- * Gradient Color Stops From Position
1418
- * @see https://tailwindcss.com/docs/gradient-color-stops
1419
- */
1420
- "gradient-from-pos": [{
1421
- from: [gradientColorStopPositions]
1422
- }],
1423
- /**
1424
- * Gradient Color Stops Via Position
1425
- * @see https://tailwindcss.com/docs/gradient-color-stops
1426
- */
1427
- "gradient-via-pos": [{
1428
- via: [gradientColorStopPositions]
1429
- }],
1430
- /**
1431
- * Gradient Color Stops To Position
1432
- * @see https://tailwindcss.com/docs/gradient-color-stops
1433
- */
1434
- "gradient-to-pos": [{
1435
- to: [gradientColorStopPositions]
1436
- }],
1437
- /**
1438
- * Gradient Color Stops From
1439
- * @see https://tailwindcss.com/docs/gradient-color-stops
1440
- */
1441
- "gradient-from": [{
1442
- from: [gradientColorStops]
1443
- }],
1444
- /**
1445
- * Gradient Color Stops Via
1446
- * @see https://tailwindcss.com/docs/gradient-color-stops
1447
- */
1448
- "gradient-via": [{
1449
- via: [gradientColorStops]
1450
- }],
1451
- /**
1452
- * Gradient Color Stops To
1453
- * @see https://tailwindcss.com/docs/gradient-color-stops
1454
- */
1455
- "gradient-to": [{
1456
- to: [gradientColorStops]
1457
- }],
1458
- // Borders
1459
- /**
1460
- * Border Radius
1461
- * @see https://tailwindcss.com/docs/border-radius
1462
- */
1463
- rounded: [{
1464
- rounded: [borderRadius]
1465
- }],
1466
- /**
1467
- * Border Radius Start
1468
- * @see https://tailwindcss.com/docs/border-radius
1469
- */
1470
- "rounded-s": [{
1471
- "rounded-s": [borderRadius]
1472
- }],
1473
- /**
1474
- * Border Radius End
1475
- * @see https://tailwindcss.com/docs/border-radius
1476
- */
1477
- "rounded-e": [{
1478
- "rounded-e": [borderRadius]
1479
- }],
1480
- /**
1481
- * Border Radius Top
1482
- * @see https://tailwindcss.com/docs/border-radius
1483
- */
1484
- "rounded-t": [{
1485
- "rounded-t": [borderRadius]
1486
- }],
1487
- /**
1488
- * Border Radius Right
1489
- * @see https://tailwindcss.com/docs/border-radius
1490
- */
1491
- "rounded-r": [{
1492
- "rounded-r": [borderRadius]
1493
- }],
1494
- /**
1495
- * Border Radius Bottom
1496
- * @see https://tailwindcss.com/docs/border-radius
1497
- */
1498
- "rounded-b": [{
1499
- "rounded-b": [borderRadius]
1500
- }],
1501
- /**
1502
- * Border Radius Left
1503
- * @see https://tailwindcss.com/docs/border-radius
1504
- */
1505
- "rounded-l": [{
1506
- "rounded-l": [borderRadius]
1507
- }],
1508
- /**
1509
- * Border Radius Start Start
1510
- * @see https://tailwindcss.com/docs/border-radius
1511
- */
1512
- "rounded-ss": [{
1513
- "rounded-ss": [borderRadius]
1514
- }],
1515
- /**
1516
- * Border Radius Start End
1517
- * @see https://tailwindcss.com/docs/border-radius
1518
- */
1519
- "rounded-se": [{
1520
- "rounded-se": [borderRadius]
1521
- }],
1522
- /**
1523
- * Border Radius End End
1524
- * @see https://tailwindcss.com/docs/border-radius
1525
- */
1526
- "rounded-ee": [{
1527
- "rounded-ee": [borderRadius]
1528
- }],
1529
- /**
1530
- * Border Radius End Start
1531
- * @see https://tailwindcss.com/docs/border-radius
1532
- */
1533
- "rounded-es": [{
1534
- "rounded-es": [borderRadius]
1535
- }],
1536
- /**
1537
- * Border Radius Top Left
1538
- * @see https://tailwindcss.com/docs/border-radius
1539
- */
1540
- "rounded-tl": [{
1541
- "rounded-tl": [borderRadius]
1542
- }],
1543
- /**
1544
- * Border Radius Top Right
1545
- * @see https://tailwindcss.com/docs/border-radius
1546
- */
1547
- "rounded-tr": [{
1548
- "rounded-tr": [borderRadius]
1549
- }],
1550
- /**
1551
- * Border Radius Bottom Right
1552
- * @see https://tailwindcss.com/docs/border-radius
1553
- */
1554
- "rounded-br": [{
1555
- "rounded-br": [borderRadius]
1556
- }],
1557
- /**
1558
- * Border Radius Bottom Left
1559
- * @see https://tailwindcss.com/docs/border-radius
1560
- */
1561
- "rounded-bl": [{
1562
- "rounded-bl": [borderRadius]
1563
- }],
1564
- /**
1565
- * Border Width
1566
- * @see https://tailwindcss.com/docs/border-width
1567
- */
1568
- "border-w": [{
1569
- border: [borderWidth]
1570
- }],
1571
- /**
1572
- * Border Width X
1573
- * @see https://tailwindcss.com/docs/border-width
1574
- */
1575
- "border-w-x": [{
1576
- "border-x": [borderWidth]
1577
- }],
1578
- /**
1579
- * Border Width Y
1580
- * @see https://tailwindcss.com/docs/border-width
1581
- */
1582
- "border-w-y": [{
1583
- "border-y": [borderWidth]
1584
- }],
1585
- /**
1586
- * Border Width Start
1587
- * @see https://tailwindcss.com/docs/border-width
1588
- */
1589
- "border-w-s": [{
1590
- "border-s": [borderWidth]
1591
- }],
1592
- /**
1593
- * Border Width End
1594
- * @see https://tailwindcss.com/docs/border-width
1595
- */
1596
- "border-w-e": [{
1597
- "border-e": [borderWidth]
1598
- }],
1599
- /**
1600
- * Border Width Top
1601
- * @see https://tailwindcss.com/docs/border-width
1602
- */
1603
- "border-w-t": [{
1604
- "border-t": [borderWidth]
1605
- }],
1606
- /**
1607
- * Border Width Right
1608
- * @see https://tailwindcss.com/docs/border-width
1609
- */
1610
- "border-w-r": [{
1611
- "border-r": [borderWidth]
1612
- }],
1613
- /**
1614
- * Border Width Bottom
1615
- * @see https://tailwindcss.com/docs/border-width
1616
- */
1617
- "border-w-b": [{
1618
- "border-b": [borderWidth]
1619
- }],
1620
- /**
1621
- * Border Width Left
1622
- * @see https://tailwindcss.com/docs/border-width
1623
- */
1624
- "border-w-l": [{
1625
- "border-l": [borderWidth]
1626
- }],
1627
- /**
1628
- * Border Opacity
1629
- * @see https://tailwindcss.com/docs/border-opacity
1630
- */
1631
- "border-opacity": [{
1632
- "border-opacity": [opacity]
1633
- }],
1634
- /**
1635
- * Border Style
1636
- * @see https://tailwindcss.com/docs/border-style
1637
- */
1638
- "border-style": [{
1639
- border: [...getLineStyles(), "hidden"]
1640
- }],
1641
- /**
1642
- * Divide Width X
1643
- * @see https://tailwindcss.com/docs/divide-width
1644
- */
1645
- "divide-x": [{
1646
- "divide-x": [borderWidth]
1647
- }],
1648
- /**
1649
- * Divide Width X Reverse
1650
- * @see https://tailwindcss.com/docs/divide-width
1651
- */
1652
- "divide-x-reverse": ["divide-x-reverse"],
1653
- /**
1654
- * Divide Width Y
1655
- * @see https://tailwindcss.com/docs/divide-width
1656
- */
1657
- "divide-y": [{
1658
- "divide-y": [borderWidth]
1659
- }],
1660
- /**
1661
- * Divide Width Y Reverse
1662
- * @see https://tailwindcss.com/docs/divide-width
1663
- */
1664
- "divide-y-reverse": ["divide-y-reverse"],
1665
- /**
1666
- * Divide Opacity
1667
- * @see https://tailwindcss.com/docs/divide-opacity
1668
- */
1669
- "divide-opacity": [{
1670
- "divide-opacity": [opacity]
1671
- }],
1672
- /**
1673
- * Divide Style
1674
- * @see https://tailwindcss.com/docs/divide-style
1675
- */
1676
- "divide-style": [{
1677
- divide: getLineStyles()
1678
- }],
1679
- /**
1680
- * Border Color
1681
- * @see https://tailwindcss.com/docs/border-color
1682
- */
1683
- "border-color": [{
1684
- border: [borderColor]
1685
- }],
1686
- /**
1687
- * Border Color X
1688
- * @see https://tailwindcss.com/docs/border-color
1689
- */
1690
- "border-color-x": [{
1691
- "border-x": [borderColor]
1692
- }],
1693
- /**
1694
- * Border Color Y
1695
- * @see https://tailwindcss.com/docs/border-color
1696
- */
1697
- "border-color-y": [{
1698
- "border-y": [borderColor]
1699
- }],
1700
- /**
1701
- * Border Color Top
1702
- * @see https://tailwindcss.com/docs/border-color
1703
- */
1704
- "border-color-t": [{
1705
- "border-t": [borderColor]
1706
- }],
1707
- /**
1708
- * Border Color Right
1709
- * @see https://tailwindcss.com/docs/border-color
1710
- */
1711
- "border-color-r": [{
1712
- "border-r": [borderColor]
1713
- }],
1714
- /**
1715
- * Border Color Bottom
1716
- * @see https://tailwindcss.com/docs/border-color
1717
- */
1718
- "border-color-b": [{
1719
- "border-b": [borderColor]
1720
- }],
1721
- /**
1722
- * Border Color Left
1723
- * @see https://tailwindcss.com/docs/border-color
1724
- */
1725
- "border-color-l": [{
1726
- "border-l": [borderColor]
1727
- }],
1728
- /**
1729
- * Divide Color
1730
- * @see https://tailwindcss.com/docs/divide-color
1731
- */
1732
- "divide-color": [{
1733
- divide: [borderColor]
1734
- }],
1735
- /**
1736
- * Outline Style
1737
- * @see https://tailwindcss.com/docs/outline-style
1738
- */
1739
- "outline-style": [{
1740
- outline: ["", ...getLineStyles()]
1741
- }],
1742
- /**
1743
- * Outline Offset
1744
- * @see https://tailwindcss.com/docs/outline-offset
1745
- */
1746
- "outline-offset": [{
1747
- "outline-offset": [isLength, isArbitraryValue]
1748
- }],
1749
- /**
1750
- * Outline Width
1751
- * @see https://tailwindcss.com/docs/outline-width
1752
- */
1753
- "outline-w": [{
1754
- outline: [isLength, isArbitraryLength]
1755
- }],
1756
- /**
1757
- * Outline Color
1758
- * @see https://tailwindcss.com/docs/outline-color
1759
- */
1760
- "outline-color": [{
1761
- outline: [colors]
1762
- }],
1763
- /**
1764
- * Ring Width
1765
- * @see https://tailwindcss.com/docs/ring-width
1766
- */
1767
- "ring-w": [{
1768
- ring: getLengthWithEmptyAndArbitrary()
1769
- }],
1770
- /**
1771
- * Ring Width Inset
1772
- * @see https://tailwindcss.com/docs/ring-width
1773
- */
1774
- "ring-w-inset": ["ring-inset"],
1775
- /**
1776
- * Ring Color
1777
- * @see https://tailwindcss.com/docs/ring-color
1778
- */
1779
- "ring-color": [{
1780
- ring: [colors]
1781
- }],
1782
- /**
1783
- * Ring Opacity
1784
- * @see https://tailwindcss.com/docs/ring-opacity
1785
- */
1786
- "ring-opacity": [{
1787
- "ring-opacity": [opacity]
1788
- }],
1789
- /**
1790
- * Ring Offset Width
1791
- * @see https://tailwindcss.com/docs/ring-offset-width
1792
- */
1793
- "ring-offset-w": [{
1794
- "ring-offset": [isLength, isArbitraryLength]
1795
- }],
1796
- /**
1797
- * Ring Offset Color
1798
- * @see https://tailwindcss.com/docs/ring-offset-color
1799
- */
1800
- "ring-offset-color": [{
1801
- "ring-offset": [colors]
1802
- }],
1803
- // Effects
1804
- /**
1805
- * Box Shadow
1806
- * @see https://tailwindcss.com/docs/box-shadow
1807
- */
1808
- shadow: [{
1809
- shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
1810
- }],
1811
- /**
1812
- * Box Shadow Color
1813
- * @see https://tailwindcss.com/docs/box-shadow-color
1814
- */
1815
- "shadow-color": [{
1816
- shadow: [isAny]
1817
- }],
1818
- /**
1819
- * Opacity
1820
- * @see https://tailwindcss.com/docs/opacity
1821
- */
1822
- opacity: [{
1823
- opacity: [opacity]
1824
- }],
1825
- /**
1826
- * Mix Blend Mode
1827
- * @see https://tailwindcss.com/docs/mix-blend-mode
1828
- */
1829
- "mix-blend": [{
1830
- "mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
1831
- }],
1832
- /**
1833
- * Background Blend Mode
1834
- * @see https://tailwindcss.com/docs/background-blend-mode
1835
- */
1836
- "bg-blend": [{
1837
- "bg-blend": getBlendModes()
1838
- }],
1839
- // Filters
1840
- /**
1841
- * Filter
1842
- * @deprecated since Tailwind CSS v3.0.0
1843
- * @see https://tailwindcss.com/docs/filter
1844
- */
1845
- filter: [{
1846
- filter: ["", "none"]
1847
- }],
1848
- /**
1849
- * Blur
1850
- * @see https://tailwindcss.com/docs/blur
1851
- */
1852
- blur: [{
1853
- blur: [blur]
1854
- }],
1855
- /**
1856
- * Brightness
1857
- * @see https://tailwindcss.com/docs/brightness
1858
- */
1859
- brightness: [{
1860
- brightness: [brightness]
1861
- }],
1862
- /**
1863
- * Contrast
1864
- * @see https://tailwindcss.com/docs/contrast
1865
- */
1866
- contrast: [{
1867
- contrast: [contrast]
1868
- }],
1869
- /**
1870
- * Drop Shadow
1871
- * @see https://tailwindcss.com/docs/drop-shadow
1872
- */
1873
- "drop-shadow": [{
1874
- "drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
1875
- }],
1876
- /**
1877
- * Grayscale
1878
- * @see https://tailwindcss.com/docs/grayscale
1879
- */
1880
- grayscale: [{
1881
- grayscale: [grayscale]
1882
- }],
1883
- /**
1884
- * Hue Rotate
1885
- * @see https://tailwindcss.com/docs/hue-rotate
1886
- */
1887
- "hue-rotate": [{
1888
- "hue-rotate": [hueRotate]
1889
- }],
1890
- /**
1891
- * Invert
1892
- * @see https://tailwindcss.com/docs/invert
1893
- */
1894
- invert: [{
1895
- invert: [invert]
1896
- }],
1897
- /**
1898
- * Saturate
1899
- * @see https://tailwindcss.com/docs/saturate
1900
- */
1901
- saturate: [{
1902
- saturate: [saturate]
1903
- }],
1904
- /**
1905
- * Sepia
1906
- * @see https://tailwindcss.com/docs/sepia
1907
- */
1908
- sepia: [{
1909
- sepia: [sepia]
1910
- }],
1911
- /**
1912
- * Backdrop Filter
1913
- * @deprecated since Tailwind CSS v3.0.0
1914
- * @see https://tailwindcss.com/docs/backdrop-filter
1915
- */
1916
- "backdrop-filter": [{
1917
- "backdrop-filter": ["", "none"]
1918
- }],
1919
- /**
1920
- * Backdrop Blur
1921
- * @see https://tailwindcss.com/docs/backdrop-blur
1922
- */
1923
- "backdrop-blur": [{
1924
- "backdrop-blur": [blur]
1925
- }],
1926
- /**
1927
- * Backdrop Brightness
1928
- * @see https://tailwindcss.com/docs/backdrop-brightness
1929
- */
1930
- "backdrop-brightness": [{
1931
- "backdrop-brightness": [brightness]
1932
- }],
1933
- /**
1934
- * Backdrop Contrast
1935
- * @see https://tailwindcss.com/docs/backdrop-contrast
1936
- */
1937
- "backdrop-contrast": [{
1938
- "backdrop-contrast": [contrast]
1939
- }],
1940
- /**
1941
- * Backdrop Grayscale
1942
- * @see https://tailwindcss.com/docs/backdrop-grayscale
1943
- */
1944
- "backdrop-grayscale": [{
1945
- "backdrop-grayscale": [grayscale]
1946
- }],
1947
- /**
1948
- * Backdrop Hue Rotate
1949
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1950
- */
1951
- "backdrop-hue-rotate": [{
1952
- "backdrop-hue-rotate": [hueRotate]
1953
- }],
1954
- /**
1955
- * Backdrop Invert
1956
- * @see https://tailwindcss.com/docs/backdrop-invert
1957
- */
1958
- "backdrop-invert": [{
1959
- "backdrop-invert": [invert]
1960
- }],
1961
- /**
1962
- * Backdrop Opacity
1963
- * @see https://tailwindcss.com/docs/backdrop-opacity
1964
- */
1965
- "backdrop-opacity": [{
1966
- "backdrop-opacity": [opacity]
1967
- }],
1968
- /**
1969
- * Backdrop Saturate
1970
- * @see https://tailwindcss.com/docs/backdrop-saturate
1971
- */
1972
- "backdrop-saturate": [{
1973
- "backdrop-saturate": [saturate]
1974
- }],
1975
- /**
1976
- * Backdrop Sepia
1977
- * @see https://tailwindcss.com/docs/backdrop-sepia
1978
- */
1979
- "backdrop-sepia": [{
1980
- "backdrop-sepia": [sepia]
1981
- }],
1982
- // Tables
1983
- /**
1984
- * Border Collapse
1985
- * @see https://tailwindcss.com/docs/border-collapse
1986
- */
1987
- "border-collapse": [{
1988
- border: ["collapse", "separate"]
1989
- }],
1990
- /**
1991
- * Border Spacing
1992
- * @see https://tailwindcss.com/docs/border-spacing
1993
- */
1994
- "border-spacing": [{
1995
- "border-spacing": [borderSpacing]
1996
- }],
1997
- /**
1998
- * Border Spacing X
1999
- * @see https://tailwindcss.com/docs/border-spacing
2000
- */
2001
- "border-spacing-x": [{
2002
- "border-spacing-x": [borderSpacing]
2003
- }],
2004
- /**
2005
- * Border Spacing Y
2006
- * @see https://tailwindcss.com/docs/border-spacing
2007
- */
2008
- "border-spacing-y": [{
2009
- "border-spacing-y": [borderSpacing]
2010
- }],
2011
- /**
2012
- * Table Layout
2013
- * @see https://tailwindcss.com/docs/table-layout
2014
- */
2015
- "table-layout": [{
2016
- table: ["auto", "fixed"]
2017
- }],
2018
- /**
2019
- * Caption Side
2020
- * @see https://tailwindcss.com/docs/caption-side
2021
- */
2022
- caption: [{
2023
- caption: ["top", "bottom"]
2024
- }],
2025
- // Transitions and Animation
2026
- /**
2027
- * Tranisition Property
2028
- * @see https://tailwindcss.com/docs/transition-property
2029
- */
2030
- transition: [{
2031
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
2032
- }],
2033
- /**
2034
- * Transition Duration
2035
- * @see https://tailwindcss.com/docs/transition-duration
2036
- */
2037
- duration: [{
2038
- duration: getNumberAndArbitrary()
2039
- }],
2040
- /**
2041
- * Transition Timing Function
2042
- * @see https://tailwindcss.com/docs/transition-timing-function
2043
- */
2044
- ease: [{
2045
- ease: ["linear", "in", "out", "in-out", isArbitraryValue]
2046
- }],
2047
- /**
2048
- * Transition Delay
2049
- * @see https://tailwindcss.com/docs/transition-delay
2050
- */
2051
- delay: [{
2052
- delay: getNumberAndArbitrary()
2053
- }],
2054
- /**
2055
- * Animation
2056
- * @see https://tailwindcss.com/docs/animation
2057
- */
2058
- animate: [{
2059
- animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
2060
- }],
2061
- // Transforms
2062
- /**
2063
- * Transform
2064
- * @see https://tailwindcss.com/docs/transform
2065
- */
2066
- transform: [{
2067
- transform: ["", "gpu", "none"]
2068
- }],
2069
- /**
2070
- * Scale
2071
- * @see https://tailwindcss.com/docs/scale
2072
- */
2073
- scale: [{
2074
- scale: [scale]
2075
- }],
2076
- /**
2077
- * Scale X
2078
- * @see https://tailwindcss.com/docs/scale
2079
- */
2080
- "scale-x": [{
2081
- "scale-x": [scale]
2082
- }],
2083
- /**
2084
- * Scale Y
2085
- * @see https://tailwindcss.com/docs/scale
2086
- */
2087
- "scale-y": [{
2088
- "scale-y": [scale]
2089
- }],
2090
- /**
2091
- * Rotate
2092
- * @see https://tailwindcss.com/docs/rotate
2093
- */
2094
- rotate: [{
2095
- rotate: [isInteger, isArbitraryValue]
2096
- }],
2097
- /**
2098
- * Translate X
2099
- * @see https://tailwindcss.com/docs/translate
2100
- */
2101
- "translate-x": [{
2102
- "translate-x": [translate]
2103
- }],
2104
- /**
2105
- * Translate Y
2106
- * @see https://tailwindcss.com/docs/translate
2107
- */
2108
- "translate-y": [{
2109
- "translate-y": [translate]
2110
- }],
2111
- /**
2112
- * Skew X
2113
- * @see https://tailwindcss.com/docs/skew
2114
- */
2115
- "skew-x": [{
2116
- "skew-x": [skew]
2117
- }],
2118
- /**
2119
- * Skew Y
2120
- * @see https://tailwindcss.com/docs/skew
2121
- */
2122
- "skew-y": [{
2123
- "skew-y": [skew]
2124
- }],
2125
- /**
2126
- * Transform Origin
2127
- * @see https://tailwindcss.com/docs/transform-origin
2128
- */
2129
- "transform-origin": [{
2130
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
2131
- }],
2132
- // Interactivity
2133
- /**
2134
- * Accent Color
2135
- * @see https://tailwindcss.com/docs/accent-color
2136
- */
2137
- accent: [{
2138
- accent: ["auto", colors]
2139
- }],
2140
- /**
2141
- * Appearance
2142
- * @see https://tailwindcss.com/docs/appearance
2143
- */
2144
- appearance: [{
2145
- appearance: ["none", "auto"]
2146
- }],
2147
- /**
2148
- * Cursor
2149
- * @see https://tailwindcss.com/docs/cursor
2150
- */
2151
- cursor: [{
2152
- 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", isArbitraryValue]
2153
- }],
2154
- /**
2155
- * Caret Color
2156
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2157
- */
2158
- "caret-color": [{
2159
- caret: [colors]
2160
- }],
2161
- /**
2162
- * Pointer Events
2163
- * @see https://tailwindcss.com/docs/pointer-events
2164
- */
2165
- "pointer-events": [{
2166
- "pointer-events": ["none", "auto"]
2167
- }],
2168
- /**
2169
- * Resize
2170
- * @see https://tailwindcss.com/docs/resize
2171
- */
2172
- resize: [{
2173
- resize: ["none", "y", "x", ""]
2174
- }],
2175
- /**
2176
- * Scroll Behavior
2177
- * @see https://tailwindcss.com/docs/scroll-behavior
2178
- */
2179
- "scroll-behavior": [{
2180
- scroll: ["auto", "smooth"]
2181
- }],
2182
- /**
2183
- * Scroll Margin
2184
- * @see https://tailwindcss.com/docs/scroll-margin
2185
- */
2186
- "scroll-m": [{
2187
- "scroll-m": getSpacingWithArbitrary()
2188
- }],
2189
- /**
2190
- * Scroll Margin X
2191
- * @see https://tailwindcss.com/docs/scroll-margin
2192
- */
2193
- "scroll-mx": [{
2194
- "scroll-mx": getSpacingWithArbitrary()
2195
- }],
2196
- /**
2197
- * Scroll Margin Y
2198
- * @see https://tailwindcss.com/docs/scroll-margin
2199
- */
2200
- "scroll-my": [{
2201
- "scroll-my": getSpacingWithArbitrary()
2202
- }],
2203
- /**
2204
- * Scroll Margin Start
2205
- * @see https://tailwindcss.com/docs/scroll-margin
2206
- */
2207
- "scroll-ms": [{
2208
- "scroll-ms": getSpacingWithArbitrary()
2209
- }],
2210
- /**
2211
- * Scroll Margin End
2212
- * @see https://tailwindcss.com/docs/scroll-margin
2213
- */
2214
- "scroll-me": [{
2215
- "scroll-me": getSpacingWithArbitrary()
2216
- }],
2217
- /**
2218
- * Scroll Margin Top
2219
- * @see https://tailwindcss.com/docs/scroll-margin
2220
- */
2221
- "scroll-mt": [{
2222
- "scroll-mt": getSpacingWithArbitrary()
2223
- }],
2224
- /**
2225
- * Scroll Margin Right
2226
- * @see https://tailwindcss.com/docs/scroll-margin
2227
- */
2228
- "scroll-mr": [{
2229
- "scroll-mr": getSpacingWithArbitrary()
2230
- }],
2231
- /**
2232
- * Scroll Margin Bottom
2233
- * @see https://tailwindcss.com/docs/scroll-margin
2234
- */
2235
- "scroll-mb": [{
2236
- "scroll-mb": getSpacingWithArbitrary()
2237
- }],
2238
- /**
2239
- * Scroll Margin Left
2240
- * @see https://tailwindcss.com/docs/scroll-margin
2241
- */
2242
- "scroll-ml": [{
2243
- "scroll-ml": getSpacingWithArbitrary()
2244
- }],
2245
- /**
2246
- * Scroll Padding
2247
- * @see https://tailwindcss.com/docs/scroll-padding
2248
- */
2249
- "scroll-p": [{
2250
- "scroll-p": getSpacingWithArbitrary()
2251
- }],
2252
- /**
2253
- * Scroll Padding X
2254
- * @see https://tailwindcss.com/docs/scroll-padding
2255
- */
2256
- "scroll-px": [{
2257
- "scroll-px": getSpacingWithArbitrary()
2258
- }],
2259
- /**
2260
- * Scroll Padding Y
2261
- * @see https://tailwindcss.com/docs/scroll-padding
2262
- */
2263
- "scroll-py": [{
2264
- "scroll-py": getSpacingWithArbitrary()
2265
- }],
2266
- /**
2267
- * Scroll Padding Start
2268
- * @see https://tailwindcss.com/docs/scroll-padding
2269
- */
2270
- "scroll-ps": [{
2271
- "scroll-ps": getSpacingWithArbitrary()
2272
- }],
2273
- /**
2274
- * Scroll Padding End
2275
- * @see https://tailwindcss.com/docs/scroll-padding
2276
- */
2277
- "scroll-pe": [{
2278
- "scroll-pe": getSpacingWithArbitrary()
2279
- }],
2280
- /**
2281
- * Scroll Padding Top
2282
- * @see https://tailwindcss.com/docs/scroll-padding
2283
- */
2284
- "scroll-pt": [{
2285
- "scroll-pt": getSpacingWithArbitrary()
2286
- }],
2287
- /**
2288
- * Scroll Padding Right
2289
- * @see https://tailwindcss.com/docs/scroll-padding
2290
- */
2291
- "scroll-pr": [{
2292
- "scroll-pr": getSpacingWithArbitrary()
2293
- }],
2294
- /**
2295
- * Scroll Padding Bottom
2296
- * @see https://tailwindcss.com/docs/scroll-padding
2297
- */
2298
- "scroll-pb": [{
2299
- "scroll-pb": getSpacingWithArbitrary()
2300
- }],
2301
- /**
2302
- * Scroll Padding Left
2303
- * @see https://tailwindcss.com/docs/scroll-padding
2304
- */
2305
- "scroll-pl": [{
2306
- "scroll-pl": getSpacingWithArbitrary()
2307
- }],
2308
- /**
2309
- * Scroll Snap Align
2310
- * @see https://tailwindcss.com/docs/scroll-snap-align
2311
- */
2312
- "snap-align": [{
2313
- snap: ["start", "end", "center", "align-none"]
2314
- }],
2315
- /**
2316
- * Scroll Snap Stop
2317
- * @see https://tailwindcss.com/docs/scroll-snap-stop
2318
- */
2319
- "snap-stop": [{
2320
- snap: ["normal", "always"]
2321
- }],
2322
- /**
2323
- * Scroll Snap Type
2324
- * @see https://tailwindcss.com/docs/scroll-snap-type
2325
- */
2326
- "snap-type": [{
2327
- snap: ["none", "x", "y", "both"]
2328
- }],
2329
- /**
2330
- * Scroll Snap Type Strictness
2331
- * @see https://tailwindcss.com/docs/scroll-snap-type
2332
- */
2333
- "snap-strictness": [{
2334
- snap: ["mandatory", "proximity"]
2335
- }],
2336
- /**
2337
- * Touch Action
2338
- * @see https://tailwindcss.com/docs/touch-action
2339
- */
2340
- touch: [{
2341
- touch: ["auto", "none", "manipulation"]
2342
- }],
2343
- /**
2344
- * Touch Action X
2345
- * @see https://tailwindcss.com/docs/touch-action
2346
- */
2347
- "touch-x": [{
2348
- "touch-pan": ["x", "left", "right"]
2349
- }],
2350
- /**
2351
- * Touch Action Y
2352
- * @see https://tailwindcss.com/docs/touch-action
2353
- */
2354
- "touch-y": [{
2355
- "touch-pan": ["y", "up", "down"]
2356
- }],
2357
- /**
2358
- * Touch Action Pinch Zoom
2359
- * @see https://tailwindcss.com/docs/touch-action
2360
- */
2361
- "touch-pz": ["touch-pinch-zoom"],
2362
- /**
2363
- * User Select
2364
- * @see https://tailwindcss.com/docs/user-select
2365
- */
2366
- select: [{
2367
- select: ["none", "text", "all", "auto"]
2368
- }],
2369
- /**
2370
- * Will Change
2371
- * @see https://tailwindcss.com/docs/will-change
2372
- */
2373
- "will-change": [{
2374
- "will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
2375
- }],
2376
- // SVG
2377
- /**
2378
- * Fill
2379
- * @see https://tailwindcss.com/docs/fill
2380
- */
2381
- fill: [{
2382
- fill: [colors, "none"]
2383
- }],
2384
- /**
2385
- * Stroke Width
2386
- * @see https://tailwindcss.com/docs/stroke-width
2387
- */
2388
- "stroke-w": [{
2389
- stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2390
- }],
2391
- /**
2392
- * Stroke
2393
- * @see https://tailwindcss.com/docs/stroke
2394
- */
2395
- stroke: [{
2396
- stroke: [colors, "none"]
2397
- }],
2398
- // Accessibility
2399
- /**
2400
- * Screen Readers
2401
- * @see https://tailwindcss.com/docs/screen-readers
2402
- */
2403
- sr: ["sr-only", "not-sr-only"],
2404
- /**
2405
- * Forced Color Adjust
2406
- * @see https://tailwindcss.com/docs/forced-color-adjust
2407
- */
2408
- "forced-color-adjust": [{
2409
- "forced-color-adjust": ["auto", "none"]
2410
- }]
2411
- },
2412
- conflictingClassGroups: {
2413
- overflow: ["overflow-x", "overflow-y"],
2414
- overscroll: ["overscroll-x", "overscroll-y"],
2415
- inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
2416
- "inset-x": ["right", "left"],
2417
- "inset-y": ["top", "bottom"],
2418
- flex: ["basis", "grow", "shrink"],
2419
- gap: ["gap-x", "gap-y"],
2420
- p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
2421
- px: ["pr", "pl"],
2422
- py: ["pt", "pb"],
2423
- m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
2424
- mx: ["mr", "ml"],
2425
- my: ["mt", "mb"],
2426
- size: ["w", "h"],
2427
- "font-size": ["leading"],
2428
- "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
2429
- "fvn-ordinal": ["fvn-normal"],
2430
- "fvn-slashed-zero": ["fvn-normal"],
2431
- "fvn-figure": ["fvn-normal"],
2432
- "fvn-spacing": ["fvn-normal"],
2433
- "fvn-fraction": ["fvn-normal"],
2434
- "line-clamp": ["display", "overflow"],
2435
- 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"],
2436
- "rounded-s": ["rounded-ss", "rounded-es"],
2437
- "rounded-e": ["rounded-se", "rounded-ee"],
2438
- "rounded-t": ["rounded-tl", "rounded-tr"],
2439
- "rounded-r": ["rounded-tr", "rounded-br"],
2440
- "rounded-b": ["rounded-br", "rounded-bl"],
2441
- "rounded-l": ["rounded-tl", "rounded-bl"],
2442
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
2443
- "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
2444
- "border-w-x": ["border-w-r", "border-w-l"],
2445
- "border-w-y": ["border-w-t", "border-w-b"],
2446
- "border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2447
- "border-color-x": ["border-color-r", "border-color-l"],
2448
- "border-color-y": ["border-color-t", "border-color-b"],
2449
- "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
2450
- "scroll-mx": ["scroll-mr", "scroll-ml"],
2451
- "scroll-my": ["scroll-mt", "scroll-mb"],
2452
- "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
2453
- "scroll-px": ["scroll-pr", "scroll-pl"],
2454
- "scroll-py": ["scroll-pt", "scroll-pb"],
2455
- touch: ["touch-x", "touch-y", "touch-pz"],
2456
- "touch-x": ["touch"],
2457
- "touch-y": ["touch"],
2458
- "touch-pz": ["touch"]
2459
- },
2460
- conflictingClassGroupModifiers: {
2461
- "font-size": ["leading"]
2462
- }
2463
- };
2464
- };
2465
- var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2466
-
2467
- // lib/utils.ts
2468
- function cn(...inputs) {
2469
- return twMerge(clsx(inputs));
2470
- }
2471
-
2472
- // components/ui/button.tsx
2473
- import * as React from "react";
2474
- import { Slot } from "@radix-ui/react-slot";
2475
-
2476
- // ../../node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs
2477
- function r2(e) {
2478
- var t, f, n = "";
2479
- if ("string" == typeof e || "number" == typeof e) n += e;
2480
- else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r2(e[t])) && (n && (n += " "), n += f);
2481
- else for (t in e) e[t] && (n && (n += " "), n += t);
2482
- return n;
2483
- }
2484
- function clsx2() {
2485
- for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r2(e)) && (n && (n += " "), n += t);
2486
- return n;
2487
- }
2488
-
2489
- // ../../node_modules/class-variance-authority/dist/index.mjs
2490
- var falsyToString = (value) => typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
2491
- var cx = clsx2;
2492
- var cva = (base, config) => {
2493
- return (props) => {
2494
- var ref;
2495
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2496
- const { variants, defaultVariants } = config;
2497
- const getVariantClassNames = Object.keys(variants).map((variant) => {
2498
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
2499
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
2500
- if (variantProp === null) return null;
2501
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
2502
- return variants[variant][variantKey];
2503
- });
2504
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
2505
- let [key, value] = param;
2506
- if (value === void 0) {
2507
- return acc;
2508
- }
2509
- acc[key] = value;
2510
- return acc;
2511
- }, {});
2512
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1) => {
2513
- let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param1;
2514
- return Object.entries(compoundVariantOptions).every((param) => {
2515
- let [key, value] = param;
2516
- return Array.isArray(value) ? value.includes({
2517
- ...defaultVariants,
2518
- ...propsWithoutUndefined
2519
- }[key]) : {
2520
- ...defaultVariants,
2521
- ...propsWithoutUndefined
2522
- }[key] === value;
2523
- }) ? [
2524
- ...acc,
2525
- cvClass,
2526
- cvClassName
2527
- ] : acc;
2528
- }, []);
2529
- return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2530
- };
2531
- };
2532
-
2533
- // components/ui/button.tsx
2534
- var buttonVariants = cva(
2535
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
2536
- {
2537
- variants: {
2538
- variant: {
2539
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
2540
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
2541
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
2542
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
2543
- ghost: "hover:bg-accent hover:text-accent-foreground",
2544
- link: "text-primary underline-offset-4 hover:underline"
2545
- },
2546
- size: {
2547
- default: "h-10 px-4 py-2",
2548
- sm: "h-9 rounded-md px-3",
2549
- lg: "h-11 rounded-md px-8",
2550
- icon: "h-10 w-10"
2551
- }
2552
- },
2553
- defaultVariants: {
2554
- variant: "default",
2555
- size: "default"
2556
- }
2557
- }
2558
- );
2559
- var Button = React.forwardRef(
2560
- ({ className, variant, size, asChild = false, ...props }, ref) => {
2561
- const Comp = asChild ? Slot : "button";
2562
- return /* @__PURE__ */ React.createElement(
2563
- Comp,
2564
- {
2565
- className: cn(buttonVariants({ variant, size, className })),
2566
- ref,
2567
- ...props
2568
- }
2569
- );
2570
- }
2571
- );
2572
- Button.displayName = "Button";
2573
-
2574
- // src/GoogleLoginButton/GoogleLoginButton.tsx
2575
- var GoogleSSOButton = React2.forwardRef(
2576
- ({ callbackUrl, className, variant, size, asChild = false, ...props }, ref) => {
2577
- const Comp = asChild ? Slot2 : "button";
2578
- return /* @__PURE__ */ React2.createElement(
2579
- Comp,
2580
- {
2581
- className: cn(
2582
- buttonVariants({ variant, size, className }),
2583
- "bg-[#4285f4] hover:bg-[#4285f4] hover:bg-opacity-90 pl-[3px]"
2584
- ),
2585
- ref,
2586
- onClick: () => {
2587
- signIn("google", { callbackUrl });
2588
- },
2589
- ...props
2590
- },
2591
- /* @__PURE__ */ React2.createElement("div", { className: "inline-flex items-center flex-1 justify-between font-roboto rounded-[4px] gap-4 google-logo" }, /* @__PURE__ */ React2.createElement(
2592
- "div",
2593
- {
2594
- style: {
2595
- background: "white",
2596
- borderRadius: "4px",
2597
- padding: "0.5rem"
2598
- }
2599
- },
2600
- /* @__PURE__ */ React2.createElement(GoogleLogo, null)
2601
- ), /* @__PURE__ */ React2.createElement("div", null, "Continue with Google"))
2602
- );
2603
- }
2604
- );
2605
- GoogleSSOButton.displayName = "GoogleSSOButton";
2606
- var GoogleLoginButton_default = GoogleSSOButton;
2607
- function GoogleLogo() {
2608
- return /* @__PURE__ */ React2.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18" }, /* @__PURE__ */ React2.createElement("g", { fill: "#000", fillRule: "evenodd" }, /* @__PURE__ */ React2.createElement(
2609
- "path",
2610
- {
2611
- d: "M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z",
2612
- fill: "#EA4335"
2613
- }
2614
- ), /* @__PURE__ */ React2.createElement(
2615
- "path",
2616
- {
2617
- d: "M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z",
2618
- fill: "#4285F4"
2619
- }
2620
- ), /* @__PURE__ */ React2.createElement(
2621
- "path",
2622
- {
2623
- d: "M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z",
2624
- fill: "#FBBC05"
2625
- }
2626
- ), /* @__PURE__ */ React2.createElement(
2627
- "path",
2628
- {
2629
- d: "M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z",
2630
- fill: "#34A853"
2631
- }
2632
- ), /* @__PURE__ */ React2.createElement("path", { fill: "none", d: "M0 0h18v18H0z" })));
2633
- }
2634
-
2635
- // src/SignUpForm/SignUpForm.tsx
2636
- import React7 from "react";
2637
-
2638
- // src/SignUpForm/Form.tsx
2639
- import React6 from "react";
2640
- import { QueryClient as QueryClient2, QueryClientProvider } from "@tanstack/react-query";
2641
- import { useForm } from "react-hook-form";
2642
-
2643
- // components/ui/form.tsx
2644
- import * as React5 from "react";
2645
- import { Slot as Slot3 } from "@radix-ui/react-slot";
2646
- import {
2647
- Controller,
2648
- FormProvider,
2649
- useFormContext
2650
- } from "react-hook-form";
2651
-
2652
- // components/ui/label.tsx
2653
- import * as React3 from "react";
2654
- import * as LabelPrimitive from "@radix-ui/react-label";
2655
- var labelVariants = cva(
2656
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2657
- );
2658
- var Label = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
2659
- LabelPrimitive.Root,
2660
- {
2661
- ref,
2662
- className: cn(labelVariants(), className),
2663
- ...props
2664
- }
2665
- ));
2666
- Label.displayName = LabelPrimitive.Root.displayName;
2667
-
2668
- // components/ui/input.tsx
2669
- import * as React4 from "react";
2670
- var Input = React4.forwardRef(
2671
- ({ className, type, ...props }, ref) => {
2672
- return /* @__PURE__ */ React4.createElement(
2673
- "input",
2674
- {
2675
- type,
2676
- className: cn(
2677
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
2678
- className
2679
- ),
2680
- ref,
2681
- ...props
2682
- }
2683
- );
2684
- }
2685
- );
2686
- Input.displayName = "Input";
2687
-
2688
- // components/ui/form.tsx
2689
- var Form = FormProvider;
2690
- var FormFieldContext = React5.createContext(
2691
- {}
2692
- );
2693
- var FormField = ({ ...props }) => {
2694
- return /* @__PURE__ */ React5.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React5.createElement(Controller, { ...props }));
2695
- };
2696
- var useFormField = () => {
2697
- const fieldContext = React5.useContext(FormFieldContext);
2698
- const itemContext = React5.useContext(FormItemContext);
2699
- const { getFieldState, formState } = useFormContext();
2700
- const fieldState = getFieldState(fieldContext.name, formState);
2701
- if (!fieldContext) {
2702
- throw new Error("useFormField should be used within <FormField>");
2703
- }
2704
- const { id } = itemContext;
2705
- return {
2706
- id,
2707
- name: fieldContext.name,
2708
- formItemId: `${id}-form-item`,
2709
- formDescriptionId: `${id}-form-item-description`,
2710
- formMessageId: `${id}-form-item-message`,
2711
- ...fieldState
2712
- };
2713
- };
2714
- var FormItemContext = React5.createContext(
2715
- {}
2716
- );
2717
- var FormItem = React5.forwardRef(({ className, ...props }, ref) => {
2718
- const id = React5.useId();
2719
- return /* @__PURE__ */ React5.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React5.createElement("div", { ref, className: cn("space-y-2", className), ...props }));
2720
- });
2721
- FormItem.displayName = "FormItem";
2722
- var FormLabel = React5.forwardRef(({ className, ...props }, ref) => {
2723
- const { error, formItemId } = useFormField();
2724
- return /* @__PURE__ */ React5.createElement(
2725
- Label,
2726
- {
2727
- ref,
2728
- className: cn(error && "text-destructive", className),
2729
- htmlFor: formItemId,
2730
- ...props
2731
- }
2732
- );
2733
- });
2734
- FormLabel.displayName = "FormLabel";
2735
- var FormControl = React5.forwardRef(({ ...props }, ref) => {
2736
- const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
2737
- return /* @__PURE__ */ React5.createElement(
2738
- Slot3,
2739
- {
2740
- ref,
2741
- id: formItemId,
2742
- "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
2743
- "aria-invalid": !!error,
2744
- ...props
2745
- }
2746
- );
2747
- });
2748
- FormControl.displayName = "FormControl";
2749
- var FormDescription = React5.forwardRef(({ className, ...props }, ref) => {
2750
- const { formDescriptionId } = useFormField();
2751
- return /* @__PURE__ */ React5.createElement(
2752
- "p",
2753
- {
2754
- ref,
2755
- id: formDescriptionId,
2756
- className: cn("text-sm text-muted-foreground", className),
2757
- ...props
2758
- }
2759
- );
2760
- });
2761
- FormDescription.displayName = "FormDescription";
2762
- var FormMessage = React5.forwardRef(({ className, children, ...props }, ref) => {
2763
- const { error, formMessageId } = useFormField();
2764
- const body = error ? String(error?.message) : children;
2765
- if (!body) {
2766
- return null;
2767
- }
2768
- return /* @__PURE__ */ React5.createElement(
2769
- "p",
2770
- {
2771
- ref,
2772
- id: formMessageId,
2773
- className: cn("text-sm font-medium text-destructive", className),
2774
- ...props
2775
- },
2776
- body
2777
- );
2778
- });
2779
- FormMessage.displayName = "FormMessage";
2780
- var Email = () => {
2781
- const form = useFormContext();
2782
- return /* @__PURE__ */ React5.createElement(
2783
- FormField,
2784
- {
2785
- control: form.control,
2786
- name: "email",
2787
- render: ({ field }) => {
2788
- return /* @__PURE__ */ React5.createElement(FormItem, null, /* @__PURE__ */ React5.createElement(FormLabel, null, "Email"), /* @__PURE__ */ React5.createElement(FormControl, null, /* @__PURE__ */ React5.createElement(
2789
- Input,
2790
- {
2791
- placeholder: "Email",
2792
- ...field,
2793
- autoComplete: "current-email"
2794
- }
2795
- )), /* @__PURE__ */ React5.createElement(FormDescription, null, "Your email address"), /* @__PURE__ */ React5.createElement(FormMessage, null));
2796
- }
2797
- }
2798
- );
2799
- };
2800
- var Password = () => {
2801
- const form = useFormContext();
2802
- return /* @__PURE__ */ React5.createElement(
2803
- FormField,
2804
- {
2805
- control: form.control,
2806
- name: "password",
2807
- render: ({ field }) => {
2808
- return /* @__PURE__ */ React5.createElement(FormItem, null, /* @__PURE__ */ React5.createElement(FormLabel, null, "Password"), /* @__PURE__ */ React5.createElement(FormControl, null, /* @__PURE__ */ React5.createElement(
2809
- Input,
2810
- {
2811
- placeholder: "Password",
2812
- ...field,
2813
- type: "password",
2814
- autoComplete: "current-password"
2815
- }
2816
- )), /* @__PURE__ */ React5.createElement(FormDescription, null, "The desired password"), /* @__PURE__ */ React5.createElement(FormMessage, null));
2817
- }
2818
- }
2819
- );
2820
- };
2821
-
2822
- // src/SignUpForm/hooks.tsx
2823
- import { useMutation } from "@tanstack/react-query";
2824
- import { useEffect } from "react";
2825
- function useSignUp(params, client) {
2826
- const { onSuccess, onError, beforeMutate, callbackUrl } = params;
2827
- const mutation = useMutation(
2828
- {
2829
- mutationFn: async (_data) => {
2830
- const possibleData = beforeMutate && beforeMutate(_data);
2831
- const payload = { ..._data, ...possibleData };
2832
- const { tenantId, newTenantName, ...body } = payload;
2833
- let fetchUrl = payload.fetchURL ?? `${window.location.origin}/api/signup`;
2834
- const searchParams = new URLSearchParams();
2835
- if (newTenantName) {
2836
- searchParams.set("newTenantName", newTenantName);
2837
- }
2838
- if (tenantId) {
2839
- searchParams.set("tenantId", tenantId);
2840
- }
2841
- if (searchParams.size > 0) {
2842
- fetchUrl += `?${searchParams}`;
2843
- }
2844
- return await fetch(fetchUrl, {
2845
- body: JSON.stringify(body),
2846
- method: "POST"
2847
- });
2848
- },
2849
- onSuccess: (data, variables) => {
2850
- if (callbackUrl) {
2851
- window.location.href = callbackUrl;
2852
- }
2853
- onSuccess && onSuccess(data, variables);
2854
- },
2855
- onError
2856
- },
2857
- client
2858
- );
2859
- useEffect(() => {
2860
- fetch("/api/auth/providers");
2861
- fetch("/api/auth/csrf");
2862
- }, []);
2863
- return mutation.mutate;
2864
- }
2865
-
2866
- // src/SignUpForm/Form.tsx
2867
- var queryClient = new QueryClient2();
2868
- function SignUpForm(props) {
2869
- const { client } = props ?? {};
2870
- return /* @__PURE__ */ React6.createElement(QueryClientProvider, { client: client ?? queryClient }, /* @__PURE__ */ React6.createElement(SignInForm, { ...props }));
2871
- }
2872
- function SignInForm(props) {
2873
- const signUp = useSignUp(props);
2874
- const form = useForm({ defaultValues: { email: "", password: "" } });
2875
- return /* @__PURE__ */ React6.createElement(Form, { ...form }, /* @__PURE__ */ React6.createElement(
2876
- "form",
2877
- {
2878
- onSubmit: form.handleSubmit(
2879
- ({ email, password }) => signUp({ email, password })
2880
- ),
2881
- className: "space-y-8"
2882
- },
2883
- /* @__PURE__ */ React6.createElement(Email, null),
2884
- /* @__PURE__ */ React6.createElement(Password, null),
2885
- /* @__PURE__ */ React6.createElement(Button, null, "Sign up")
2886
- ));
2887
- }
2888
-
2889
- // src/SignUpForm/SignUpForm.tsx
2890
- function SigningUp(props) {
2891
- return /* @__PURE__ */ React7.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React7.createElement("div", { className: "font-sans text-3xl" }, "Sign up"), /* @__PURE__ */ React7.createElement(SignUpForm, { ...props }));
2892
- }
2893
-
2894
- // src/SignInForm/SignInForm.tsx
2895
- import React9 from "react";
2896
-
2897
- // src/SignInForm/Form.tsx
2898
- import React8 from "react";
2899
- import { QueryClient as QueryClient3, QueryClientProvider as QueryClientProvider2 } from "@tanstack/react-query";
2900
- import { useForm as useForm2 } from "react-hook-form";
2901
-
2902
- // src/SignInForm/hooks.tsx
2903
- import { useMutation as useMutation2 } from "@tanstack/react-query";
2904
- import { signIn as signIn2 } from "next-auth/react";
2905
- function useSignIn(params) {
2906
- const { onSuccess, onError, beforeMutate, callbackUrl } = params ?? {};
2907
- const mutation = useMutation2({
2908
- mutationFn: async (_data) => {
2909
- const d = { ..._data, callbackUrl };
2910
- const possibleData = beforeMutate && beforeMutate(d);
2911
- const data = possibleData ?? d;
2912
- return await signIn2("credentials", data);
2913
- },
2914
- onSuccess,
2915
- onError
2916
- });
2917
- return mutation.mutate;
2918
- }
2919
-
2920
- // src/SignInForm/Form.tsx
2921
- var queryClient2 = new QueryClient3();
2922
- function SigningIn(props) {
2923
- const { client, ...remaining } = props ?? {};
2924
- return /* @__PURE__ */ React8.createElement(QueryClientProvider2, { client: client ?? queryClient2 }, /* @__PURE__ */ React8.createElement(SignInForm2, { ...remaining }));
2925
- }
2926
- function SignInForm2(props) {
2927
- const signIn3 = useSignIn(props);
2928
- const form = useForm2({ defaultValues: { email: "", password: "" } });
2929
- return /* @__PURE__ */ React8.createElement(Form, { ...form }, /* @__PURE__ */ React8.createElement(
2930
- "form",
2931
- {
2932
- onSubmit: form.handleSubmit(
2933
- ({ email, password }) => signIn3 && signIn3({ email, password })
2934
- ),
2935
- className: "space-y-8"
2936
- },
2937
- /* @__PURE__ */ React8.createElement(Email, null),
2938
- /* @__PURE__ */ React8.createElement(Password, null),
2939
- /* @__PURE__ */ React8.createElement(Button, { type: "submit" }, "Sign In")
2940
- ));
2941
- }
2942
-
2943
- // src/SignInForm/SignInForm.tsx
2944
- function SigningIn2(props) {
2945
- return /* @__PURE__ */ React9.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React9.createElement("h2", { className: "font-sans text-3xl" }, "Sign In"), /* @__PURE__ */ React9.createElement(SigningIn, { ...props }));
2946
- }
2947
-
2948
- // src/index.ts
2949
- export * from "next-auth/react";
2950
- export {
2951
- Email,
2952
- GoogleLoginButton_default as Google,
2953
- Password,
2954
- SigningIn2 as SignInForm,
2955
- SigningUp as SignUpForm,
2956
- useSignIn,
2957
- useSignUp
2958
- };
1
+ "use client"
2
+ import A from"react";import{QueryClient as Je,QueryClientProvider as Ke}from"@tanstack/react-query";import{useForm as Ye}from"react-hook-form";import{Mail as to}from"lucide-react";import*as m from"react";import{Slot as Qe}from"@radix-ui/react-slot";import{Controller as _e,FormProvider as De,useFormContext as vt}from"react-hook-form";function Ut(t){var e,o,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(o=Ut(t[e]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o);return r}function Rt(){for(var t,e,o=0,r="",s=arguments.length;o<s;o++)(t=arguments[o])&&(e=Ut(t))&&(r&&(r+=" "),r+=e);return r}var bt="-",pe=t=>{let e=ge(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{let i=l.split(bt);return i[0]===""&&i.length!==1&&i.shift(),$t(i,e)||fe(l)},getConflictingClassGroupIds:(l,i)=>{let a=o[l]||[];return i&&r[l]?[...a,...r[l]]:a}}},$t=(t,e)=>{var l;if(t.length===0)return e.classGroupId;let o=t[0],r=e.nextPart.get(o),s=r?$t(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;let n=t.join(bt);return(l=e.validators.find(({validator:i})=>i(n)))==null?void 0:l.classGroupId},jt=/^\[(.+)\]$/,fe=t=>{if(jt.test(t)){let e=jt.exec(t)[1],o=e==null?void 0:e.substring(0,e.indexOf(":"));if(o)return"arbitrary.."+o}},ge=t=>{let{theme:e,prefix:o}=t,r={nextPart:new Map,validators:[]};return he(Object.entries(t.classGroups),o).forEach(([n,l])=>{gt(l,r,n,e)}),r},gt=(t,e,o,r)=>{t.forEach(s=>{if(typeof s=="string"){let n=s===""?e:Wt(e,s);n.classGroupId=o;return}if(typeof s=="function"){if(be(s)){gt(s(r),e,o,r);return}e.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([n,l])=>{gt(l,Wt(e,n),o,r)})})},Wt=(t,e)=>{let o=t;return e.split(bt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},be=t=>t.isThemeGetter,he=(t,e)=>e?t.map(([o,r])=>{let s=r.map(n=>typeof n=="string"?e+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,i])=>[e+l,i])):n);return[o,s]}):t,xe=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,o=new Map,r=new Map,s=(n,l)=>{o.set(n,l),e++,e>t&&(e=0,r=o,o=new Map)};return{get(n){let l=o.get(n);if(l!==void 0)return l;if((l=r.get(n))!==void 0)return s(n,l),l},set(n,l){o.has(n)?o.set(n,l):s(n,l)}}},Ot="!",ve=t=>{let{separator:e,experimentalParseClassName:o}=t,r=e.length===1,s=e[0],n=e.length,l=i=>{let a=[],d=0,u=0,v;for(let f=0;f<i.length;f++){let C=i[f];if(d===0){if(C===s&&(r||i.slice(f,f+n)===e)){a.push(i.slice(u,f)),u=f+n;continue}if(C==="/"){v=f;continue}}C==="["?d++:C==="]"&&d--}let b=a.length===0?i:i.substring(u),S=b.startsWith(Ot),w=S?b.substring(1):b,x=v&&v>u?v-u:void 0;return{modifiers:a,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:x}};return o?i=>o({className:i,parseClassName:l}):l},ye=t=>{if(t.length<=1)return t;let e=[],o=[];return t.forEach(r=>{r[0]==="["?(e.push(...o.sort(),r),o=[]):o.push(r)}),e.push(...o.sort()),e},we=t=>({cache:xe(t.cacheSize),parseClassName:ve(t),...pe(t)}),Ce=/\s+/,Se=(t,e)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=e,n=[],l=t.trim().split(Ce),i="";for(let a=l.length-1;a>=0;a-=1){let d=l[a],{modifiers:u,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:S}=o(d),w=!!S,x=r(w?b.substring(0,S):b);if(!x){if(!w){i=d+(i.length>0?" "+i:i);continue}if(x=r(b),!x){i=d+(i.length>0?" "+i:i);continue}w=!1}let f=ye(u).join(":"),C=v?f+Ot:f,I=C+x;if(n.includes(I))continue;n.push(I);let $=s(x,w);for(let E=0;E<$.length;++E){let J=$[E];n.push(C+J)}i=d+(i.length>0?" "+i:i)}return i};function Ie(){let t=0,e,o,r="";for(;t<arguments.length;)(e=arguments[t++])&&(o=Qt(e))&&(r&&(r+=" "),r+=o);return r}var Qt=t=>{if(typeof t=="string")return t;let e,o="";for(let r=0;r<t.length;r++)t[r]&&(e=Qt(t[r]))&&(o&&(o+=" "),o+=e);return o};function Pe(t,...e){let o,r,s,n=l;function l(a){let d=e.reduce((u,v)=>v(u),t());return o=we(d),r=o.cache.get,s=o.cache.set,n=i,i(a)}function i(a){let d=r(a);if(d)return d;let u=Se(a,o);return s(a,u),u}return function(){return n(Ie.apply(null,arguments))}}var g=t=>{let e=o=>o[t]||[];return e.isThemeGetter=!0,e},_t=/^\[(?:([a-z-]+):)?(.+)\]$/i,ke=/^\d+\/\d+$/,Fe=new Set(["px","full","screen"]),Me=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ne=/\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$/,Be=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ze=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Te=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=t=>U(t)||Fe.has(t)||ke.test(t),B=t=>R(t,"length",Re),U=t=>!!t&&!Number.isNaN(Number(t)),ft=t=>R(t,"number",U),Q=t=>!!t&&Number.isInteger(Number(t)),Ee=t=>t.endsWith("%")&&U(t.slice(0,-1)),c=t=>_t.test(t),z=t=>Me.test(t),Le=new Set(["length","size","percentage"]),Ve=t=>R(t,Le,Dt),Ae=t=>R(t,"position",Dt),He=new Set(["image","url"]),Ge=t=>R(t,He,We),Ue=t=>R(t,"",je),_=()=>!0,R=(t,e,o)=>{let r=_t.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):o(r[2]):!1},Re=t=>Ne.test(t)&&!Be.test(t),Dt=()=>!1,je=t=>ze.test(t),We=t=>Te.test(t);var $e=()=>{let t=g("colors"),e=g("spacing"),o=g("blur"),r=g("brightness"),s=g("borderColor"),n=g("borderRadius"),l=g("borderSpacing"),i=g("borderWidth"),a=g("contrast"),d=g("grayscale"),u=g("hueRotate"),v=g("invert"),b=g("gap"),S=g("gradientColorStops"),w=g("gradientColorStopPositions"),x=g("inset"),f=g("margin"),C=g("opacity"),I=g("padding"),$=g("saturate"),E=g("scale"),J=g("sepia"),Tt=g("skew"),Et=g("space"),Lt=g("translate"),dt=()=>["auto","contain","none"],mt=()=>["auto","hidden","clip","visible","scroll"],ut=()=>["auto",c,e],h=()=>[c,e],Vt=()=>["",F,B],K=()=>["auto",U,c],At=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Ht=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pt=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",c],Gt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[U,c];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[F,B],blur:["none","",z,c],brightness:k(),borderColor:[t],borderRadius:["none","","full",z,c],borderSpacing:h(),borderWidth:Vt(),contrast:k(),grayscale:O(),hueRotate:k(),invert:O(),gap:h(),gradientColorStops:[t],gradientColorStopPositions:[Ee,B],inset:ut(),margin:ut(),opacity:k(),padding:h(),saturate:k(),scale:k(),sepia:O(),skew:k(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":Gt()}],"break-before":[{"break-before":Gt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],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"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...At(),c]}],overflow:[{overflow:mt()}],"overflow-x":[{"overflow-x":mt()}],"overflow-y":[{"overflow-y":mt()}],overscroll:[{overscroll:dt()}],"overscroll-x":[{"overscroll-x":dt()}],"overscroll-y":[{"overscroll-y":dt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Q,c]}],basis:[{basis:ut()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Q,c]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",Q,c]},c]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[Q,c]},c]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...pt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[Et]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Et]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,e]}],"min-w":[{"min-w":[c,e,"min","max","fit"]}],"max-w":[{"max-w":[c,e,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[c,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,e,"auto","min","max","fit"]}],"font-size":[{text:["base",z,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ft]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",U,ft]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,B]}],"underline-offset":[{"underline-offset":["auto",F,c]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...At(),Ae]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ve]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ge]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[F,c]}],"outline-w":[{outline:[F,B]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Vt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[F,B]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",z,Ue]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Ht(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ht()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",z,c]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[v]}],saturate:[{saturate:[$]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Q,c]}],"translate-x":[{"translate-x":[Lt]}],"translate-y":[{"translate-y":[Lt]}],"skew-x":[{"skew-x":[Tt]}],"skew-y":[{"skew-y":[Tt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[F,B,ft]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qt=Pe($e);function p(...t){return qt(Rt(t))}import*as et from"react";import*as ht from"@radix-ui/react-label";function Xt(t){var e,o,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(o=Xt(t[e]))&&(r&&(r+=" "),r+=o);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Zt(){for(var t,e,o=0,r="";o<arguments.length;)(t=arguments[o++])&&(e=Xt(t))&&(r&&(r+=" "),r+=e);return r}var Jt=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,Kt=Zt,tt=(t,e)=>o=>{var r;if((e==null?void 0:e.variants)==null)return Kt(t,o==null?void 0:o.class,o==null?void 0:o.className);let{variants:s,defaultVariants:n}=e,l=Object.keys(s).map(d=>{let u=o==null?void 0:o[d],v=n==null?void 0:n[d];if(u===null)return null;let b=Jt(u)||Jt(v);return s[d][b]}),i=o&&Object.entries(o).reduce((d,u)=>{let[v,b]=u;return b===void 0||(d[v]=b),d},{}),a=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:v,className:b,...S}=u;return Object.entries(S).every(w=>{let[x,f]=w;return Array.isArray(f)?f.includes({...n,...i}[x]):{...n,...i}[x]===f})?[...d,v,b]:d},[]);return Kt(t,l,a,o==null?void 0:o.class,o==null?void 0:o.className)};var Oe=tt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xt=et.forwardRef(({className:t,...e},o)=>et.createElement(ht.Root,{ref:o,className:p(Oe(),t),...e}));xt.displayName=ht.Root.displayName;import*as ot from"react";var rt=ot.forwardRef(({className:t,type:e,...o},r)=>ot.createElement("input",{type:e,className:p("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...o}));rt.displayName="Input";var j=De,Yt=m.createContext({}),te=({...t})=>m.createElement(Yt.Provider,{value:{name:t.name}},m.createElement(_e,{...t})),nt=()=>{let t=m.useContext(Yt),e=m.useContext(ee),{getFieldState:o,formState:r}=vt(),s=o(t.name,r);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:n}=e;return{id:n,name:t.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...s}},ee=m.createContext({}),yt=m.forwardRef(({className:t,...e},o)=>{let r=m.useId();return m.createElement(ee.Provider,{value:{id:r}},m.createElement("div",{ref:o,className:p("space-y-2",t),...e}))});yt.displayName="FormItem";var wt=m.forwardRef(({className:t,...e},o)=>{let{error:r,formItemId:s}=nt();return m.createElement(xt,{ref:o,className:p(r&&"text-destructive",t),htmlFor:s,...e})});wt.displayName="FormLabel";var Ct=m.forwardRef(({...t},e)=>{let{error:o,formItemId:r,formDescriptionId:s,formMessageId:n}=nt();return m.createElement(Qe,{ref:e,id:r,"aria-describedby":o?`${s} ${n}`:`${s}`,"aria-invalid":!!o,...t})});Ct.displayName="FormControl";var St=m.forwardRef(({className:t,...e},o)=>{let{formDescriptionId:r}=nt();return m.createElement("p",{ref:o,id:r,className:p("text-sm text-muted-foreground",t),...e})});St.displayName="FormDescription";var It=m.forwardRef(({className:t,children:e,...o},r)=>{let{error:s,formMessageId:n}=nt(),l=s?String(s==null?void 0:s.message):e;return l?m.createElement("p",{ref:r,id:n,className:p("text-sm font-medium text-destructive",t),...o},l):null});It.displayName="FormMessage";var L=()=>{let t=vt();return m.createElement(te,{control:t.control,name:"email",render:({field:e})=>m.createElement(yt,null,m.createElement(wt,null,"Email"),m.createElement(Ct,null,m.createElement(rt,{placeholder:"Email",...e,autoComplete:"current-email"})),m.createElement(St,null,"Your email address"),m.createElement(It,null))})},D=()=>{let t=vt();return m.createElement(te,{control:t.control,name:"password",render:({field:e})=>m.createElement(yt,null,m.createElement(wt,null,"Password"),m.createElement(Ct,null,m.createElement(rt,{placeholder:"Password",...e,type:"password",autoComplete:"current-password"})),m.createElement(St,null,"The desired password"),m.createElement(It,null))})};import*as st from"react";import{Slot as qe}from"@radix-ui/react-slot";var y=tt("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),V=st.forwardRef(({className:t,variant:e,size:o,asChild:r=!1,...s},n)=>st.createElement(r?qe:"button",{className:p(y({variant:e,size:o,className:t})),ref:n,...s}));V.displayName="Button";import{signIn as Xe}from"next-auth/react";import{useMutation as Ze}from"@tanstack/react-query";function it(t){let{onSuccess:e,onError:o,beforeMutate:r,callbackUrl:s,redirect:n=!1}=t!=null?t:{};return Ze({mutationFn:async i=>{let a={...i,callbackUrl:s,redirect:n},d=r&&r(a),u=d!=null?d:a;return await Xe("email",u)},onSuccess:e,onError:o}).mutate}var eo=new Je;function Pt(t){let{client:e,...o}=t!=null?t:{};return A.createElement(Ke,{client:e!=null?e:eo},A.createElement(oo,{...o}))}function oo(t){let e=it(t),o=Ye({defaultValues:{email:""}});return A.createElement(j,{...o},A.createElement("form",{onSubmit:o.handleSubmit(({email:r})=>e&&e({email:r})),className:"space-y-8"},A.createElement(L,null),A.createElement(V,{type:"submit",className:"flex flex-row gap-2"},A.createElement(to,null),"Sign in with email")))}import{Slot as ro}from"@radix-ui/react-slot";import{signIn as no}from"next-auth/react";import lt from"react";import{Mail as so}from"lucide-react";var oe=lt.forwardRef(({callbackUrl:t,className:e,variant:o,size:r,asChild:s=!1,redirect:n=!1,email:l,onFailure:i,onSent:a,...d},u)=>lt.createElement(s?ro:"button",{className:p(y({variant:o,size:r,className:e})),ref:u,onClick:async()=>{let b=await no("email",{email:l,callbackUrl:t,redirect:n});b&&"error"in b?i&&i(b):a&&a()},...d},d.children?d.children:lt.createElement("div",{className:"flex flex-row gap-2 items-center"},lt.createElement(so,null),"Continue with Email")));oe.displayName="EmailSignInButton";var re=oe;import P from"react";import{signIn as io}from"next-auth/react";import{Slot as lo}from"@radix-ui/react-slot";var ne=P.forwardRef(({callbackUrl:t,className:e,variant:o,size:r,buttonText:s="Continue with Google",asChild:n=!1,...l},i)=>P.createElement(n?lo:"button",{className:p(y({variant:o,size:r,className:e}),"bg-[#4285f4] hover:bg-[#4285f4] hover:bg-opacity-85 pl-[3px]"),ref:i,onClick:()=>{io("google",{callbackUrl:t})},...l},P.createElement("div",{className:"inline-flex items-center flex-1 justify-between font-roboto rounded-[4px] gap-4 google-logo"},P.createElement("div",{style:{background:"white",borderRadius:"4px",padding:"0.5rem"}},P.createElement(ao,null)),s)));ne.displayName="GoogleSSOButton";var se=ne;function ao(){return P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18"},P.createElement("g",{fill:"#000",fillRule:"evenodd"},P.createElement("path",{d:"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z",fill:"#EA4335"}),P.createElement("path",{d:"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z",fill:"#4285F4"}),P.createElement("path",{d:"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z",fill:"#FBBC05"}),P.createElement("path",{d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z",fill:"#34A853"}),P.createElement("path",{fill:"none",d:"M0 0h18v18H0z"})))}import{signIn as co}from"next-auth/react";import M from"react";import{Slot as mo}from"@radix-ui/react-slot";var ie=M.forwardRef(({callbackUrl:t,className:e,buttonText:o="Continue with Microsoft",variant:r,size:s,asChild:n=!1,...l},i)=>M.createElement(n?mo:"button",{className:p(y({variant:r,size:s,className:e}),"bg-[#0078d4] hover:bg-[#0078d4] hover:bg-opacity-85 pl-[3px] text-white gap-4 transition-colors shadow-md"),ref:i,onClick:()=>{co("azure-ad",{callbackUrl:t})},...l},M.createElement(po,null),o));ie.displayName="AzureSignInButton";var uo=ie,po=()=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 23",className:"w-5 h-5 ml-3"},M.createElement("path",{fill:"#f3f3f3",d:"M0 0h23v23H0z"}),M.createElement("path",{fill:"#f35325",d:"M1 1h10v10H1z"}),M.createElement("path",{fill:"#81bc06",d:"M12 1h10v10H12z"}),M.createElement("path",{fill:"#05a6f0",d:"M1 12h10v10H1z"}),M.createElement("path",{fill:"#ffba08",d:"M12 12h10v10H12z"}));import{signIn as fo}from"next-auth/react";import T from"react";import{Slot as go}from"@radix-ui/react-slot";var le=T.forwardRef(({callbackUrl:t,className:e,buttonText:o="Continue with Discord",variant:r,size:s,asChild:n=!1,...l},i)=>T.createElement(n?go:"button",{className:p(y({variant:r,size:s,className:e}),"bg-[#5865F2] hover:bg-[#5865F2] hover:bg-opacity-85 pl-[3px] gap-4 transition-colors border shadow-md text-white"),ref:i,onClick:()=>{fo("discord",{callbackUrl:t})},...l},T.createElement(ho,null),o));le.displayName="DiscordSignInButton";var bo=le,ho=()=>T.createElement("svg",{className:"w-5 h-5 ml-3",viewBox:"0 0 75 59",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},T.createElement("title",null,"discord-icon"),T.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},T.createElement("g",{id:"discord-icon",transform:"translate(2.000000, 2.411745)",fillRule:"nonzero",stroke:"#636262",strokeWidth:"0"},T.createElement("path",{d:"M60.1044999,4.48605546 C55.5791999,2.40965546 50.7264999,0.879855461 45.6526999,0.00367546142 C45.5602999,-0.0132345386 45.4679999,0.0290244614 45.4203999,0.113544461 C44.7962999,1.22355546 44.1049999,2.67165546 43.6208999,3.80985546 C38.1636999,2.99285546 32.7344999,2.99285546 27.3891999,3.80985546 C26.9049999,2.64635546 26.1885999,1.22355546 25.5616999,0.113544461 C25.5140999,0.0318444614 25.4217999,-0.0104145386 25.3293999,0.00367546142 C20.2583999,0.877055461 15.4056999,2.40685546 10.8775999,4.48605546 C10.8383999,4.50295546 10.8047999,4.53115546 10.7824999,4.56775546 C1.57794989,18.3191555 -0.94356111,31.7325555 0.29340789,44.9796555 C0.29900489,45.0444555 0.33538589,45.1064555 0.38576089,45.1458555 C6.45865989,49.6056555 12.3412999,52.3131555 18.1146999,54.1077555 C18.2070999,54.1359555 18.3049999,54.1021555 18.3637999,54.0260555 C19.7294999,52.1610555 20.9468999,50.1945555 21.9906999,48.1265555 C22.0522999,48.0054555 21.9934999,47.8617555 21.8675999,47.8138555 C19.9365999,47.0813555 18.0978999,46.1882555 16.3291999,45.1740555 C16.1892999,45.0923555 16.1780999,44.8922555 16.3067999,44.7964555 C16.6789999,44.5175555 17.0512999,44.2273555 17.4066999,43.9343555 C17.4709999,43.8808555 17.5605999,43.8695555 17.6361999,43.9033555 C29.2557999,49.2084555 41.8353999,49.2084555 53.3178999,43.9033555 C53.3934999,43.8667555 53.4830999,43.8780555 53.5501999,43.9315555 C53.9056999,44.2245555 54.2778999,44.5175555 54.6528999,44.7964555 C54.7815999,44.8922555 54.7731999,45.0923555 54.6332999,45.1740555 C52.8645999,46.2079555 51.0258999,47.0813555 49.0920999,47.8110555 C48.9661999,47.8589555 48.9101999,48.0054555 48.9717999,48.1265555 C50.0379999,50.1916555 51.2553999,52.1581555 52.5958999,54.0232555 C52.6518999,54.1021555 52.7525999,54.1359555 52.8449999,54.1077555 C58.6463999,52.3131555 64.5289999,49.6056555 70.6018999,45.1458555 C70.6550999,45.1064555 70.6886999,45.0472555 70.6942999,44.9824555 C72.1746999,29.6673555 68.2146999,16.3639555 60.1967999,4.57055546 C60.1771999,4.53115546 60.1436999,4.50295546 60.1044999,4.48605546 Z M23.7258999,36.9135555 C20.2275999,36.9135555 17.3450999,33.7018555 17.3450999,29.7575555 C17.3450999,25.8132555 20.1716999,22.6015555 23.7258999,22.6015555 C27.3079999,22.6015555 30.1625999,25.8414555 30.1065999,29.7575555 C30.1065999,33.7018555 27.2799999,36.9135555 23.7258999,36.9135555 Z M47.3177999,36.9135555 C43.8195999,36.9135555 40.9370999,33.7018555 40.9370999,29.7575555 C40.9370999,25.8132555 43.7635999,22.6015555 47.3177999,22.6015555 C50.8999999,22.6015555 53.7544999,25.8414555 53.6985999,29.7575555 C53.6985999,33.7018555 50.8999999,36.9135555 47.3177999,36.9135555 Z",id:"Shape",fill:"white"}))));import{signIn as xo}from"next-auth/react";import q from"react";import{Slot as vo}from"@radix-ui/react-slot";var ae=q.forwardRef(({callbackUrl:t,className:e,buttonText:o="Continue with GitHub",variant:r,size:s,asChild:n=!1,...l},i)=>q.createElement(n?vo:"button",{className:p(y({variant:r,size:s,className:e}),"bg-black hover:bg-slate-800 pl-[3px] text-white gap-4 transition-colors shadow-md"),ref:i,onClick:()=>{xo("github",{callbackUrl:t})},...l},q.createElement(wo,null),o));ae.displayName="GitHubSignInButton";var yo=ae,wo=()=>q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32.58 31.77",fill:"currentColor",className:"w-5 h-5 ml-3"},q.createElement("path",{fill:"#FFFFFF",d:"M16.29,0a16.29,16.29,0,0,0-5.15,31.75c.82.15,1.11-.36,1.11-.79s0-1.41,0-2.77C7.7,29.18,6.74,26,6.74,26a4.36,4.36,0,0,0-1.81-2.39c-1.47-1,.12-1,.12-1a3.43,3.43,0,0,1,2.49,1.68,3.48,3.48,0,0,0,4.74,1.36,3.46,3.46,0,0,1,1-2.18c-3.62-.41-7.42-1.81-7.42-8a6.3,6.3,0,0,1,1.67-4.37,5.94,5.94,0,0,1,.16-4.31s1.37-.44,4.48,1.67a15.41,15.41,0,0,1,8.16,0c3.11-2.11,4.47-1.67,4.47-1.67A5.91,5.91,0,0,1,25,11.07a6.3,6.3,0,0,1,1.67,4.37c0,6.26-3.81,7.63-7.44,8a3.85,3.85,0,0,1,1.11,3c0,2.18,0,3.94,0,4.47s.29.94,1.12.78A16.29,16.29,0,0,0,16.29,0Z"}));import{signIn as Co}from"next-auth/react";import X from"react";import{Slot as So}from"@radix-ui/react-slot";var ce=X.forwardRef(({callbackUrl:t,className:e,buttonText:o="Continue with HubSpot",variant:r,size:s,asChild:n=!1,...l},i)=>X.createElement(n?So:"button",{className:p(y({variant:r,size:s,className:e}),"bg-[#ff7a59] hover:bg-[#ff7a59] hover:bg-opacity-85 pl-[3px] text-white gap-4 transition-colors shadow-md"),ref:i,onClick:()=>{Co("hubspot",{callbackUrl:t})},...l},X.createElement(Po,null),o));ce.displayName="HubSpotSignInButton";var Io=ce,Po=()=>X.createElement("svg",{className:"w-5 h-5 ml-3",viewBox:"6.20856283 .64498824 244.26943717 251.24701176",xmlns:"http://www.w3.org/2000/svg"},X.createElement("path",{d:"m191.385 85.694v-29.506a22.722 22.722 0 0 0 13.101-20.48v-.677c0-12.549-10.173-22.722-22.721-22.722h-.678c-12.549 0-22.722 10.173-22.722 22.722v.677a22.722 22.722 0 0 0 13.101 20.48v29.506a64.342 64.342 0 0 0 -30.594 13.47l-80.922-63.03c.577-2.083.878-4.225.912-6.375a25.6 25.6 0 1 0 -25.633 25.55 25.323 25.323 0 0 0 12.607-3.43l79.685 62.007c-14.65 22.131-14.258 50.974.987 72.7l-24.236 24.243c-1.96-.626-4-.959-6.057-.987-11.607.01-21.01 9.423-21.007 21.03.003 11.606 9.412 21.014 21.018 21.017 11.607.003 21.02-9.4 21.03-21.007a20.747 20.747 0 0 0 -.988-6.056l23.976-23.985c21.423 16.492 50.846 17.913 73.759 3.562 22.912-14.352 34.475-41.446 28.985-67.918-5.49-26.473-26.873-46.734-53.603-50.792m-9.938 97.044a33.17 33.17 0 1 1 0-66.316c17.85.625 32 15.272 32.01 33.134.008 17.86-14.127 32.522-31.977 33.165",fill:"white"}));import{signIn as ko}from"next-auth/react";import W from"react";import{Slot as Fo}from"@radix-ui/react-slot";var de=W.forwardRef(({callbackUrl:t,className:e,buttonText:o="Continue with LinkedIn",variant:r,size:s,asChild:n=!1,...l},i)=>W.createElement(n?Fo:"button",{className:p(y({variant:r,size:s,className:e}),"bg-[#0288D1] hover:bg-[#0288D1] pl-[3px] hover:bg-opacity-85 gap-4 transition-colors shadow-md text-white"),ref:i,onClick:()=>{ko("linkedin",{callbackUrl:t})},...l},W.createElement(No,null),o));de.displayName="LinkedInSignInButton";var Mo=de,No=()=>W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",className:"w-6 h-6 ml-3"},W.createElement("path",{fill:"#fff",d:"M42,37c0,2.762-2.238,5-5,5H11c-2.761,0-5-2.238-5-5V11c0-2.762,2.239-5,5-5h26c2.762,0,5,2.238,5,5V37z"}),W.createElement("path",{fill:"#0288D1",d:"M12 19H17V36H12zM14.485 17h-.028C12.965 17 12 15.888 12 14.499 12 13.08 12.995 12 14.514 12c1.521 0 2.458 1.08 2.486 2.499C17 15.887 16.035 17 14.485 17zM36 36h-5v-9.099c0-2.198-1.225-3.698-3.192-3.698-1.501 0-2.313 1.012-2.707 1.99C24.957 25.543 25 26.511 25 27v9h-5V19h5v2.616C25.721 20.5 26.85 19 29.738 19c3.578 0 6.261 2.25 6.261 7.274L36 36 36 36z"}));import{signIn as Bo}from"next-auth/react";import N from"react";import{Slot as zo}from"@radix-ui/react-slot";var me=N.forwardRef(({callbackUrl:t,className:e,buttonText:o="Continue with Slack",variant:r,size:s,asChild:n=!1,...l},i)=>N.createElement(n?zo:"button",{className:p(y({variant:r,size:s,className:e}),"bg-[#4A154B] hover:bg-[#4A154B] pl-[3px] hover:bg-opacity-85 gap-4 transition-colors shadow-md text-white"),ref:i,onClick:()=>{Bo("slack",{callbackUrl:t})},...l},N.createElement(Eo,null),o));me.displayName="SlackSignInButton";var To=me,Eo=()=>N.createElement("svg",{enableBackground:"new 0 0 2447.6 2452.5",viewBox:"0 0 2447.6 2452.5",className:"w-5 h-5 ml-3",xmlns:"http://www.w3.org/2000/svg"},N.createElement("g",{clipRule:"evenodd",fillRule:"evenodd"},N.createElement("path",{d:"m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z",fill:"#36c5f0"}),N.createElement("path",{d:"m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z",fill:"#2eb67d"}),N.createElement("path",{d:"m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z",fill:"#ecb22e"}),N.createElement("path",{d:"m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0",fill:"#e01e5a"})));import{signIn as Lo}from"next-auth/react";import Z from"react";import{Slot as Vo}from"@radix-ui/react-slot";var ue=Z.forwardRef(({callbackUrl:t,className:e,buttonText:o="Continue with X",variant:r,size:s,asChild:n=!1,...l},i)=>Z.createElement(n?Vo:"button",{className:p(y({variant:r,size:s,className:e}),"bg-black hover:bg-slate-800 pl-[3px] text-white gap-4 transition-colors shadow-md"),ref:i,onClick:()=>{Lo("twitter",{callbackUrl:t})},...l},Z.createElement(Ho,null),o));ue.displayName="XSignInButton";var Ao=ue,Ho=()=>Z.createElement("svg",{className:"w-5 h-5 ml-3",viewBox:"0 0 24 24",version:"1.1"},Z.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",fill:"#ffffff"}));import Ft from"react";import H from"react";import{QueryClient as Ro,QueryClientProvider as jo}from"@tanstack/react-query";import{useForm as Wo}from"react-hook-form";import{useMutation as Go}from"@tanstack/react-query";import{useEffect as Uo}from"react";function at(t,e){let{onSuccess:o,onError:r,beforeMutate:s,callbackUrl:n}=t,l=Go({mutationFn:async i=>{var x;let a=s&&s(i),d={...i,...a},{tenantId:u,newTenantName:v,...b}=d,S=(x=d.fetchURL)!=null?x:`${window.location.origin}/api/signup`,w=new URLSearchParams;return v&&w.set("newTenantName",v),u&&w.set("tenantId",u),w.size>0&&(S+=`?${w}`),await fetch(S,{body:JSON.stringify(b),method:"POST"})},onSuccess:(i,a)=>{n&&(window.location.href=n),o&&o(i,a)},onError:r},e);return Uo(()=>{fetch("/api/auth/providers"),fetch("/api/auth/csrf")},[]),l.mutate}var $o=new Ro;function kt(t){let{client:e}=t!=null?t:{};return H.createElement(jo,{client:e!=null?e:$o},H.createElement(Oo,{...t}))}function Oo(t){let e=at(t),o=Wo({defaultValues:{email:"",password:""}});return H.createElement(j,{...o},H.createElement("form",{onSubmit:o.handleSubmit(({email:r,password:s})=>e({email:r,password:s})),className:"space-y-8"},H.createElement(L,null),H.createElement(D,null),H.createElement(V,null,"Sign up")))}function Mt(t){return Ft.createElement("div",{className:"flex flex-col gap-4"},Ft.createElement("div",{className:"font-sans text-3xl"},"Sign up"),Ft.createElement(kt,{...t}))}import Bt from"react";import G from"react";import{QueryClient as Do,QueryClientProvider as qo}from"@tanstack/react-query";import{useForm as Xo}from"react-hook-form";import{useMutation as Qo}from"@tanstack/react-query";import{signIn as _o}from"next-auth/react";function ct(t){let{onSuccess:e,onError:o,beforeMutate:r,callbackUrl:s}=t!=null?t:{};return Qo({mutationFn:async l=>{let i={...l,callbackUrl:s},a=r&&r(i),d=a!=null?a:i;return await _o("credentials",d)},onSuccess:e,onError:o}).mutate}var Zo=new Do;function Nt(t){let{client:e,...o}=t!=null?t:{};return G.createElement(qo,{client:e!=null?e:Zo},G.createElement(Jo,{...o}))}function Jo(t){let e=ct(t),o=Xo({defaultValues:{email:"",password:""}});return G.createElement(j,{...o},G.createElement("form",{onSubmit:o.handleSubmit(({email:r,password:s})=>e&&e({email:r,password:s})),className:"space-y-8"},G.createElement(L,null),G.createElement(D,null),G.createElement(V,{type:"submit"},"Sign In")))}function zt(t){return Bt.createElement("div",{className:"flex flex-col gap-4"},Bt.createElement("h2",{className:"font-sans text-3xl"},"Sign In"),Bt.createElement(Nt,{...t}))}import{signIn as Qs,signOut as _s}from"next-auth/react";export{uo as Azure,bo as Discord,L as Email,Pt as EmailSignIn,re as EmailSignInButton,yo as GitHub,se as Google,Io as HubSpot,Mo as LinkedIn,D as Password,zt as SignInForm,Mt as SignUpForm,To as Slack,Ao as X,Qs as signIn,_s as signOut,it as useEmailSignIn,ct as useSignIn,at as useSignUp};
3
+ //# sourceMappingURL=index.mjs.map