orange-core-ui 0.1.2 → 0.1.3
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/components/accordion/accordion.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +172 -173
- package/dist/index.js.map +1 -1
- package/dist/styles/globals.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as i, jsxs as A } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import { appendErrors as Le, useForm as Fe, FormProvider as Be, useFormContext as He, Controller as We } from "react-hook-form";
|
|
4
|
-
import { validateFieldsNatively as Ve, toNestErrors as
|
|
4
|
+
import { validateFieldsNatively as Ve, toNestErrors as Ue } from "@hookform/resolvers";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import * as se from "@radix-ui/react-checkbox";
|
|
7
7
|
import * as D from "@radix-ui/react-radio-group";
|
|
8
8
|
import * as ne from "@radix-ui/react-switch";
|
|
9
9
|
import * as C from "@radix-ui/react-select";
|
|
10
|
-
import * as
|
|
10
|
+
import * as U from "@radix-ui/react-slider";
|
|
11
11
|
import * as G from "@radix-ui/react-tabs";
|
|
12
12
|
import * as E from "@radix-ui/react-accordion";
|
|
13
13
|
import * as _ from "@radix-ui/react-popover";
|
|
@@ -102,7 +102,7 @@ const u = {
|
|
|
102
102
|
500: "#b98f11",
|
|
103
103
|
600: "#9d6e06"
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, $ = {
|
|
106
106
|
green: u.forest[200],
|
|
107
107
|
// #228722
|
|
108
108
|
blue: u.water[200],
|
|
@@ -111,7 +111,7 @@ const u = {
|
|
|
111
111
|
// #fc0
|
|
112
112
|
red: u.fire[200]
|
|
113
113
|
// #cd3c14
|
|
114
|
-
},
|
|
114
|
+
}, $e = {
|
|
115
115
|
blue: u.blue[300],
|
|
116
116
|
// #4bb4e6
|
|
117
117
|
yellow: u.yellow[300],
|
|
@@ -129,13 +129,13 @@ const u = {
|
|
|
129
129
|
// #f16e00
|
|
130
130
|
secondary: u.black[900],
|
|
131
131
|
// #000
|
|
132
|
-
success:
|
|
132
|
+
success: $.green,
|
|
133
133
|
// #228722
|
|
134
|
-
info:
|
|
134
|
+
info: $.blue,
|
|
135
135
|
// #4170d8
|
|
136
|
-
warning:
|
|
136
|
+
warning: $.yellow,
|
|
137
137
|
// #fc0
|
|
138
|
-
danger:
|
|
138
|
+
danger: $.red,
|
|
139
139
|
// #cd3c14
|
|
140
140
|
light: u.gray[500],
|
|
141
141
|
// #999
|
|
@@ -184,8 +184,8 @@ const u = {
|
|
|
184
184
|
}
|
|
185
185
|
}, _e = {
|
|
186
186
|
...u,
|
|
187
|
-
functional:
|
|
188
|
-
supporting:
|
|
187
|
+
functional: $,
|
|
188
|
+
supporting: $e,
|
|
189
189
|
theme: Ce,
|
|
190
190
|
gray: Re,
|
|
191
191
|
semantic: De
|
|
@@ -201,11 +201,11 @@ const u = {
|
|
|
201
201
|
// spacer * 1.5 = 30px
|
|
202
202
|
5: "3.75rem"
|
|
203
203
|
// spacer * 3 = 60px
|
|
204
|
-
}, Xe = "2.75rem", Se = Oe,
|
|
204
|
+
}, Xe = "2.75rem", Se = Oe, Je = Se, Ze = {
|
|
205
205
|
...qe,
|
|
206
206
|
targetSize: Xe,
|
|
207
207
|
gridGutter: Se,
|
|
208
|
-
containerPadding:
|
|
208
|
+
containerPadding: Je
|
|
209
209
|
}, he = {
|
|
210
210
|
sansSerif: [
|
|
211
211
|
"HelvNeueOrange",
|
|
@@ -229,7 +229,7 @@ const u = {
|
|
|
229
229
|
"Courier New",
|
|
230
230
|
"monospace"
|
|
231
231
|
].join(", ")
|
|
232
|
-
},
|
|
232
|
+
}, Z = {
|
|
233
233
|
root: null,
|
|
234
234
|
// Browser default
|
|
235
235
|
base: "1rem",
|
|
@@ -247,13 +247,13 @@ const u = {
|
|
|
247
247
|
// 30px (base * 1.875)
|
|
248
248
|
h3: "1.5rem",
|
|
249
249
|
// 24px (base * 1.5)
|
|
250
|
-
h4:
|
|
250
|
+
h4: Z.xlg,
|
|
251
251
|
// 20px
|
|
252
|
-
h5:
|
|
252
|
+
h5: Z.lg,
|
|
253
253
|
// 18px
|
|
254
|
-
h6:
|
|
254
|
+
h6: Z.base
|
|
255
255
|
// 16px
|
|
256
|
-
},
|
|
256
|
+
}, Ke = {
|
|
257
257
|
display1: "3.75rem",
|
|
258
258
|
// 60px (xlg * 3)
|
|
259
259
|
display2: "3.125rem",
|
|
@@ -262,7 +262,7 @@ const u = {
|
|
|
262
262
|
// 40px (xlg * 2)
|
|
263
263
|
display4: ze.h1
|
|
264
264
|
// 34px
|
|
265
|
-
}, xe = "calc(18 / 16)", ve = "1",
|
|
265
|
+
}, xe = "calc(18 / 16)", ve = "1", Qe = {
|
|
266
266
|
base: xe,
|
|
267
267
|
sm: "calc(16 / 14)",
|
|
268
268
|
// ~1.143
|
|
@@ -280,7 +280,7 @@ const u = {
|
|
|
280
280
|
h6: xe,
|
|
281
281
|
display: ve,
|
|
282
282
|
lead: "1.5"
|
|
283
|
-
}, ye = "-0.00625rem", oe = "-0.0625rem",
|
|
283
|
+
}, ye = "-0.00625rem", oe = "-0.0625rem", Ye = {
|
|
284
284
|
base: ye,
|
|
285
285
|
h1: oe,
|
|
286
286
|
h2: "-0.05rem",
|
|
@@ -313,11 +313,11 @@ const u = {
|
|
|
313
313
|
sans: he.sansSerif,
|
|
314
314
|
mono: he.monospace
|
|
315
315
|
},
|
|
316
|
-
fontSize:
|
|
316
|
+
fontSize: Z,
|
|
317
317
|
heading: ze,
|
|
318
|
-
display:
|
|
319
|
-
lineHeight:
|
|
320
|
-
letterSpacing:
|
|
318
|
+
display: Ke,
|
|
319
|
+
lineHeight: Qe,
|
|
320
|
+
letterSpacing: Ye,
|
|
321
321
|
fontWeight: er
|
|
322
322
|
}, Ie = "0.125rem", tr = {
|
|
323
323
|
1: "0.0625rem",
|
|
@@ -393,7 +393,7 @@ const u = {
|
|
|
393
393
|
containerFluidMargins: br
|
|
394
394
|
}, ro = {
|
|
395
395
|
colors: _e,
|
|
396
|
-
spacing:
|
|
396
|
+
spacing: Ze,
|
|
397
397
|
typography: rr,
|
|
398
398
|
borders: nr,
|
|
399
399
|
shadows: lr,
|
|
@@ -408,11 +408,11 @@ function Me(e) {
|
|
|
408
408
|
} else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
409
409
|
return o;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function gr() {
|
|
412
412
|
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = Me(e)) && (o && (o += " "), o += r);
|
|
413
413
|
return o;
|
|
414
414
|
}
|
|
415
|
-
const ce = "-",
|
|
415
|
+
const ce = "-", mr = (e) => {
|
|
416
416
|
const r = fr(e), {
|
|
417
417
|
conflictingClassGroups: t,
|
|
418
418
|
conflictingClassGroupModifiers: o
|
|
@@ -520,12 +520,12 @@ const ce = "-", gr = (e) => {
|
|
|
520
520
|
experimentalParseClassName: t
|
|
521
521
|
} = e, o = r.length === 1, a = r[0], s = r.length, n = (l) => {
|
|
522
522
|
const b = [];
|
|
523
|
-
let p = 0,
|
|
523
|
+
let p = 0, g = 0, h;
|
|
524
524
|
for (let w = 0; w < l.length; w++) {
|
|
525
525
|
let N = l[w];
|
|
526
526
|
if (p === 0) {
|
|
527
527
|
if (N === a && (o || l.slice(w, w + s) === r)) {
|
|
528
|
-
b.push(l.slice(
|
|
528
|
+
b.push(l.slice(g, w)), g = w + s;
|
|
529
529
|
continue;
|
|
530
530
|
}
|
|
531
531
|
if (N === "/") {
|
|
@@ -535,7 +535,7 @@ const ce = "-", gr = (e) => {
|
|
|
535
535
|
}
|
|
536
536
|
N === "[" ? p++ : N === "]" && p--;
|
|
537
537
|
}
|
|
538
|
-
const f = b.length === 0 ? l : l.substring(
|
|
538
|
+
const f = b.length === 0 ? l : l.substring(g), y = f.startsWith(Te), R = y ? f.substring(1) : f, k = h && h > g ? h - g : void 0;
|
|
539
539
|
return {
|
|
540
540
|
modifiers: b,
|
|
541
541
|
hasImportantModifier: y,
|
|
@@ -558,7 +558,7 @@ const ce = "-", gr = (e) => {
|
|
|
558
558
|
}, kr = (e) => ({
|
|
559
559
|
cache: vr(e.cacheSize),
|
|
560
560
|
parseClassName: yr(e),
|
|
561
|
-
...
|
|
561
|
+
...mr(e)
|
|
562
562
|
}), Nr = /\s+/, Cr = (e, r) => {
|
|
563
563
|
const {
|
|
564
564
|
parseClassName: t,
|
|
@@ -568,7 +568,7 @@ const ce = "-", gr = (e) => {
|
|
|
568
568
|
let l = "";
|
|
569
569
|
for (let b = n.length - 1; b >= 0; b -= 1) {
|
|
570
570
|
const p = n[b], {
|
|
571
|
-
modifiers:
|
|
571
|
+
modifiers: g,
|
|
572
572
|
hasImportantModifier: h,
|
|
573
573
|
baseClassName: f,
|
|
574
574
|
maybePostfixModifierPosition: y
|
|
@@ -585,7 +585,7 @@ const ce = "-", gr = (e) => {
|
|
|
585
585
|
}
|
|
586
586
|
R = !1;
|
|
587
587
|
}
|
|
588
|
-
const w = wr(
|
|
588
|
+
const w = wr(g).join(":"), N = h ? w + Te : w, S = N + k;
|
|
589
589
|
if (s.includes(S))
|
|
590
590
|
continue;
|
|
591
591
|
s.push(S);
|
|
@@ -615,15 +615,15 @@ const Pe = (e) => {
|
|
|
615
615
|
function Sr(e, ...r) {
|
|
616
616
|
let t, o, a, s = n;
|
|
617
617
|
function n(b) {
|
|
618
|
-
const p = r.reduce((
|
|
618
|
+
const p = r.reduce((g, h) => h(g), e());
|
|
619
619
|
return t = kr(p), o = t.cache.get, a = t.cache.set, s = l, l(b);
|
|
620
620
|
}
|
|
621
621
|
function l(b) {
|
|
622
622
|
const p = o(b);
|
|
623
623
|
if (p)
|
|
624
624
|
return p;
|
|
625
|
-
const
|
|
626
|
-
return a(b,
|
|
625
|
+
const g = Cr(b, t);
|
|
626
|
+
return a(b, g), g;
|
|
627
627
|
}
|
|
628
628
|
return function() {
|
|
629
629
|
return s(Rr.apply(null, arguments));
|
|
@@ -632,7 +632,7 @@ function Sr(e, ...r) {
|
|
|
632
632
|
const x = (e) => {
|
|
633
633
|
const r = (t) => t[e] || [];
|
|
634
634
|
return r.isThemeGetter = !0, r;
|
|
635
|
-
}, je = /^\[(?:([a-z-]+):)?(.+)\]$/i, zr = /^\d+\/\d+$/, Ir = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ar = /\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$/, Tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Pr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, M = (e) => L(e) || Ir.has(e) || zr.test(e), T = (e) => F(e, "length", Vr), L = (e) => !!e && !Number.isNaN(Number(e)), ae = (e) => F(e, "number", L), W = (e) => !!e && Number.isInteger(Number(e)), Er = (e) => e.endsWith("%") && L(e.slice(0, -1)),
|
|
635
|
+
}, je = /^\[(?:([a-z-]+):)?(.+)\]$/i, zr = /^\d+\/\d+$/, Ir = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ar = /\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$/, Tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Pr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, M = (e) => L(e) || Ir.has(e) || zr.test(e), T = (e) => F(e, "length", Vr), L = (e) => !!e && !Number.isNaN(Number(e)), ae = (e) => F(e, "number", L), W = (e) => !!e && Number.isInteger(Number(e)), Er = (e) => e.endsWith("%") && L(e.slice(0, -1)), m = (e) => je.test(e), P = (e) => Mr.test(e), Gr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Lr = (e) => F(e, Gr, Ee), Fr = (e) => F(e, "position", Ee), Br = /* @__PURE__ */ new Set(["image", "url"]), Hr = (e) => F(e, Br, $r), Wr = (e) => F(e, "", Ur), V = () => !0, F = (e, r, t) => {
|
|
636
636
|
const o = je.exec(e);
|
|
637
637
|
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
638
638
|
}, Vr = (e) => (
|
|
@@ -640,20 +640,20 @@ const x = (e) => {
|
|
|
640
640
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
641
641
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
642
642
|
Ar.test(e) && !Tr.test(e)
|
|
643
|
-
), Ee = () => !1,
|
|
644
|
-
const e = x("colors"), r = x("spacing"), t = x("blur"), o = x("brightness"), a = x("borderColor"), s = x("borderRadius"), n = x("borderSpacing"), l = x("borderWidth"), b = x("contrast"), p = x("grayscale"),
|
|
643
|
+
), Ee = () => !1, Ur = (e) => Pr.test(e), $r = (e) => jr.test(e), Dr = () => {
|
|
644
|
+
const e = x("colors"), r = x("spacing"), t = x("blur"), o = x("brightness"), a = x("borderColor"), s = x("borderRadius"), n = x("borderSpacing"), l = x("borderWidth"), b = x("contrast"), p = x("grayscale"), g = x("hueRotate"), h = x("invert"), f = x("gap"), y = x("gradientColorStops"), R = x("gradientColorStopPositions"), k = x("inset"), w = x("margin"), N = x("opacity"), S = x("padding"), B = x("saturate"), j = x("scale"), q = x("sepia"), de = x("skew"), be = x("space"), pe = x("translate"), Y = () => ["auto", "contain", "none"], ee = () => ["auto", "hidden", "clip", "visible", "scroll"], re = () => ["auto", m, r], v = () => [m, r], ge = () => ["", M, T], X = () => ["auto", L, m], me = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], J = () => ["solid", "dashed", "dotted", "double", "none"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", m], fe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [L, m];
|
|
645
645
|
return {
|
|
646
646
|
cacheSize: 500,
|
|
647
647
|
separator: ":",
|
|
648
648
|
theme: {
|
|
649
649
|
colors: [V],
|
|
650
650
|
spacing: [M, T],
|
|
651
|
-
blur: ["none", "", P,
|
|
651
|
+
blur: ["none", "", P, m],
|
|
652
652
|
brightness: I(),
|
|
653
653
|
borderColor: [e],
|
|
654
|
-
borderRadius: ["none", "", "full", P,
|
|
654
|
+
borderRadius: ["none", "", "full", P, m],
|
|
655
655
|
borderSpacing: v(),
|
|
656
|
-
borderWidth:
|
|
656
|
+
borderWidth: ge(),
|
|
657
657
|
contrast: I(),
|
|
658
658
|
grayscale: H(),
|
|
659
659
|
hueRotate: I(),
|
|
@@ -679,7 +679,7 @@ const x = (e) => {
|
|
|
679
679
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
680
680
|
*/
|
|
681
681
|
aspect: [{
|
|
682
|
-
aspect: ["auto", "square", "video",
|
|
682
|
+
aspect: ["auto", "square", "video", m]
|
|
683
683
|
}],
|
|
684
684
|
/**
|
|
685
685
|
* Container
|
|
@@ -764,7 +764,7 @@ const x = (e) => {
|
|
|
764
764
|
* @see https://tailwindcss.com/docs/object-position
|
|
765
765
|
*/
|
|
766
766
|
"object-position": [{
|
|
767
|
-
object: [...
|
|
767
|
+
object: [...me(), m]
|
|
768
768
|
}],
|
|
769
769
|
/**
|
|
770
770
|
* Overflow
|
|
@@ -792,21 +792,21 @@ const x = (e) => {
|
|
|
792
792
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
793
793
|
*/
|
|
794
794
|
overscroll: [{
|
|
795
|
-
overscroll:
|
|
795
|
+
overscroll: Y()
|
|
796
796
|
}],
|
|
797
797
|
/**
|
|
798
798
|
* Overscroll Behavior X
|
|
799
799
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
800
800
|
*/
|
|
801
801
|
"overscroll-x": [{
|
|
802
|
-
"overscroll-x":
|
|
802
|
+
"overscroll-x": Y()
|
|
803
803
|
}],
|
|
804
804
|
/**
|
|
805
805
|
* Overscroll Behavior Y
|
|
806
806
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
807
807
|
*/
|
|
808
808
|
"overscroll-y": [{
|
|
809
|
-
"overscroll-y":
|
|
809
|
+
"overscroll-y": Y()
|
|
810
810
|
}],
|
|
811
811
|
/**
|
|
812
812
|
* Position
|
|
@@ -886,7 +886,7 @@ const x = (e) => {
|
|
|
886
886
|
* @see https://tailwindcss.com/docs/z-index
|
|
887
887
|
*/
|
|
888
888
|
z: [{
|
|
889
|
-
z: ["auto", W,
|
|
889
|
+
z: ["auto", W, m]
|
|
890
890
|
}],
|
|
891
891
|
// Flexbox and Grid
|
|
892
892
|
/**
|
|
@@ -915,7 +915,7 @@ const x = (e) => {
|
|
|
915
915
|
* @see https://tailwindcss.com/docs/flex
|
|
916
916
|
*/
|
|
917
917
|
flex: [{
|
|
918
|
-
flex: ["1", "auto", "initial", "none",
|
|
918
|
+
flex: ["1", "auto", "initial", "none", m]
|
|
919
919
|
}],
|
|
920
920
|
/**
|
|
921
921
|
* Flex Grow
|
|
@@ -936,7 +936,7 @@ const x = (e) => {
|
|
|
936
936
|
* @see https://tailwindcss.com/docs/order
|
|
937
937
|
*/
|
|
938
938
|
order: [{
|
|
939
|
-
order: ["first", "last", "none", W,
|
|
939
|
+
order: ["first", "last", "none", W, m]
|
|
940
940
|
}],
|
|
941
941
|
/**
|
|
942
942
|
* Grid Template Columns
|
|
@@ -951,8 +951,8 @@ const x = (e) => {
|
|
|
951
951
|
*/
|
|
952
952
|
"col-start-end": [{
|
|
953
953
|
col: ["auto", {
|
|
954
|
-
span: ["full", W,
|
|
955
|
-
},
|
|
954
|
+
span: ["full", W, m]
|
|
955
|
+
}, m]
|
|
956
956
|
}],
|
|
957
957
|
/**
|
|
958
958
|
* Grid Column Start
|
|
@@ -981,8 +981,8 @@ const x = (e) => {
|
|
|
981
981
|
*/
|
|
982
982
|
"row-start-end": [{
|
|
983
983
|
row: ["auto", {
|
|
984
|
-
span: [W,
|
|
985
|
-
},
|
|
984
|
+
span: [W, m]
|
|
985
|
+
}, m]
|
|
986
986
|
}],
|
|
987
987
|
/**
|
|
988
988
|
* Grid Row Start
|
|
@@ -1010,14 +1010,14 @@ const x = (e) => {
|
|
|
1010
1010
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1011
1011
|
*/
|
|
1012
1012
|
"auto-cols": [{
|
|
1013
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
1013
|
+
"auto-cols": ["auto", "min", "max", "fr", m]
|
|
1014
1014
|
}],
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Grid Auto Rows
|
|
1017
1017
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1018
1018
|
*/
|
|
1019
1019
|
"auto-rows": [{
|
|
1020
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
1020
|
+
"auto-rows": ["auto", "min", "max", "fr", m]
|
|
1021
1021
|
}],
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Gap
|
|
@@ -1260,21 +1260,21 @@ const x = (e) => {
|
|
|
1260
1260
|
* @see https://tailwindcss.com/docs/width
|
|
1261
1261
|
*/
|
|
1262
1262
|
w: [{
|
|
1263
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
1263
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", m, r]
|
|
1264
1264
|
}],
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Min-Width
|
|
1267
1267
|
* @see https://tailwindcss.com/docs/min-width
|
|
1268
1268
|
*/
|
|
1269
1269
|
"min-w": [{
|
|
1270
|
-
"min-w": [
|
|
1270
|
+
"min-w": [m, r, "min", "max", "fit"]
|
|
1271
1271
|
}],
|
|
1272
1272
|
/**
|
|
1273
1273
|
* Max-Width
|
|
1274
1274
|
* @see https://tailwindcss.com/docs/max-width
|
|
1275
1275
|
*/
|
|
1276
1276
|
"max-w": [{
|
|
1277
|
-
"max-w": [
|
|
1277
|
+
"max-w": [m, r, "none", "full", "min", "max", "fit", "prose", {
|
|
1278
1278
|
screen: [P]
|
|
1279
1279
|
}, P]
|
|
1280
1280
|
}],
|
|
@@ -1283,28 +1283,28 @@ const x = (e) => {
|
|
|
1283
1283
|
* @see https://tailwindcss.com/docs/height
|
|
1284
1284
|
*/
|
|
1285
1285
|
h: [{
|
|
1286
|
-
h: [
|
|
1286
|
+
h: [m, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1287
1287
|
}],
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Min-Height
|
|
1290
1290
|
* @see https://tailwindcss.com/docs/min-height
|
|
1291
1291
|
*/
|
|
1292
1292
|
"min-h": [{
|
|
1293
|
-
"min-h": [
|
|
1293
|
+
"min-h": [m, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1294
1294
|
}],
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Max-Height
|
|
1297
1297
|
* @see https://tailwindcss.com/docs/max-height
|
|
1298
1298
|
*/
|
|
1299
1299
|
"max-h": [{
|
|
1300
|
-
"max-h": [
|
|
1300
|
+
"max-h": [m, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1301
1301
|
}],
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Size
|
|
1304
1304
|
* @see https://tailwindcss.com/docs/size
|
|
1305
1305
|
*/
|
|
1306
1306
|
size: [{
|
|
1307
|
-
size: [
|
|
1307
|
+
size: [m, r, "auto", "min", "max", "fit"]
|
|
1308
1308
|
}],
|
|
1309
1309
|
// Typography
|
|
1310
1310
|
/**
|
|
@@ -1373,7 +1373,7 @@ const x = (e) => {
|
|
|
1373
1373
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1374
1374
|
*/
|
|
1375
1375
|
tracking: [{
|
|
1376
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
1376
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", m]
|
|
1377
1377
|
}],
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Line Clamp
|
|
@@ -1387,21 +1387,21 @@ const x = (e) => {
|
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/line-height
|
|
1388
1388
|
*/
|
|
1389
1389
|
leading: [{
|
|
1390
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", M,
|
|
1390
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", M, m]
|
|
1391
1391
|
}],
|
|
1392
1392
|
/**
|
|
1393
1393
|
* List Style Image
|
|
1394
1394
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1395
1395
|
*/
|
|
1396
1396
|
"list-image": [{
|
|
1397
|
-
"list-image": ["none",
|
|
1397
|
+
"list-image": ["none", m]
|
|
1398
1398
|
}],
|
|
1399
1399
|
/**
|
|
1400
1400
|
* List Style Type
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1402
1402
|
*/
|
|
1403
1403
|
"list-style-type": [{
|
|
1404
|
-
list: ["none", "disc", "decimal",
|
|
1404
|
+
list: ["none", "disc", "decimal", m]
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* List Style Position
|
|
@@ -1456,7 +1456,7 @@ const x = (e) => {
|
|
|
1456
1456
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1457
1457
|
*/
|
|
1458
1458
|
"text-decoration-style": [{
|
|
1459
|
-
decoration: [...
|
|
1459
|
+
decoration: [...J(), "wavy"]
|
|
1460
1460
|
}],
|
|
1461
1461
|
/**
|
|
1462
1462
|
* Text Decoration Thickness
|
|
@@ -1470,7 +1470,7 @@ const x = (e) => {
|
|
|
1470
1470
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1471
1471
|
*/
|
|
1472
1472
|
"underline-offset": [{
|
|
1473
|
-
"underline-offset": ["auto", M,
|
|
1473
|
+
"underline-offset": ["auto", M, m]
|
|
1474
1474
|
}],
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Text Decoration Color
|
|
@@ -1508,7 +1508,7 @@ const x = (e) => {
|
|
|
1508
1508
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1509
1509
|
*/
|
|
1510
1510
|
"vertical-align": [{
|
|
1511
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1511
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", m]
|
|
1512
1512
|
}],
|
|
1513
1513
|
/**
|
|
1514
1514
|
* Whitespace
|
|
@@ -1536,7 +1536,7 @@ const x = (e) => {
|
|
|
1536
1536
|
* @see https://tailwindcss.com/docs/content
|
|
1537
1537
|
*/
|
|
1538
1538
|
content: [{
|
|
1539
|
-
content: ["none",
|
|
1539
|
+
content: ["none", m]
|
|
1540
1540
|
}],
|
|
1541
1541
|
// Backgrounds
|
|
1542
1542
|
/**
|
|
@@ -1573,7 +1573,7 @@ const x = (e) => {
|
|
|
1573
1573
|
* @see https://tailwindcss.com/docs/background-position
|
|
1574
1574
|
*/
|
|
1575
1575
|
"bg-position": [{
|
|
1576
|
-
bg: [...
|
|
1576
|
+
bg: [...me(), Fr]
|
|
1577
1577
|
}],
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Background Repeat
|
|
@@ -1830,7 +1830,7 @@ const x = (e) => {
|
|
|
1830
1830
|
* @see https://tailwindcss.com/docs/border-style
|
|
1831
1831
|
*/
|
|
1832
1832
|
"border-style": [{
|
|
1833
|
-
border: [...
|
|
1833
|
+
border: [...J(), "hidden"]
|
|
1834
1834
|
}],
|
|
1835
1835
|
/**
|
|
1836
1836
|
* Divide Width X
|
|
@@ -1868,7 +1868,7 @@ const x = (e) => {
|
|
|
1868
1868
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1869
1869
|
*/
|
|
1870
1870
|
"divide-style": [{
|
|
1871
|
-
divide:
|
|
1871
|
+
divide: J()
|
|
1872
1872
|
}],
|
|
1873
1873
|
/**
|
|
1874
1874
|
* Border Color
|
|
@@ -1945,14 +1945,14 @@ const x = (e) => {
|
|
|
1945
1945
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1946
1946
|
*/
|
|
1947
1947
|
"outline-style": [{
|
|
1948
|
-
outline: ["", ...
|
|
1948
|
+
outline: ["", ...J()]
|
|
1949
1949
|
}],
|
|
1950
1950
|
/**
|
|
1951
1951
|
* Outline Offset
|
|
1952
1952
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1953
1953
|
*/
|
|
1954
1954
|
"outline-offset": [{
|
|
1955
|
-
"outline-offset": [M,
|
|
1955
|
+
"outline-offset": [M, m]
|
|
1956
1956
|
}],
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Outline Width
|
|
@@ -1973,7 +1973,7 @@ const x = (e) => {
|
|
|
1973
1973
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1974
1974
|
*/
|
|
1975
1975
|
"ring-w": [{
|
|
1976
|
-
ring:
|
|
1976
|
+
ring: ge()
|
|
1977
1977
|
}],
|
|
1978
1978
|
/**
|
|
1979
1979
|
* Ring Width Inset
|
|
@@ -2079,7 +2079,7 @@ const x = (e) => {
|
|
|
2079
2079
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2080
2080
|
*/
|
|
2081
2081
|
"drop-shadow": [{
|
|
2082
|
-
"drop-shadow": ["", "none", P,
|
|
2082
|
+
"drop-shadow": ["", "none", P, m]
|
|
2083
2083
|
}],
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Grayscale
|
|
@@ -2093,7 +2093,7 @@ const x = (e) => {
|
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2094
2094
|
*/
|
|
2095
2095
|
"hue-rotate": [{
|
|
2096
|
-
"hue-rotate": [
|
|
2096
|
+
"hue-rotate": [g]
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Invert
|
|
@@ -2157,7 +2157,7 @@ const x = (e) => {
|
|
|
2157
2157
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2158
2158
|
*/
|
|
2159
2159
|
"backdrop-hue-rotate": [{
|
|
2160
|
-
"backdrop-hue-rotate": [
|
|
2160
|
+
"backdrop-hue-rotate": [g]
|
|
2161
2161
|
}],
|
|
2162
2162
|
/**
|
|
2163
2163
|
* Backdrop Invert
|
|
@@ -2236,7 +2236,7 @@ const x = (e) => {
|
|
|
2236
2236
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2237
2237
|
*/
|
|
2238
2238
|
transition: [{
|
|
2239
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
2239
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", m]
|
|
2240
2240
|
}],
|
|
2241
2241
|
/**
|
|
2242
2242
|
* Transition Duration
|
|
@@ -2250,7 +2250,7 @@ const x = (e) => {
|
|
|
2250
2250
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2251
2251
|
*/
|
|
2252
2252
|
ease: [{
|
|
2253
|
-
ease: ["linear", "in", "out", "in-out",
|
|
2253
|
+
ease: ["linear", "in", "out", "in-out", m]
|
|
2254
2254
|
}],
|
|
2255
2255
|
/**
|
|
2256
2256
|
* Transition Delay
|
|
@@ -2264,7 +2264,7 @@ const x = (e) => {
|
|
|
2264
2264
|
* @see https://tailwindcss.com/docs/animation
|
|
2265
2265
|
*/
|
|
2266
2266
|
animate: [{
|
|
2267
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
2267
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", m]
|
|
2268
2268
|
}],
|
|
2269
2269
|
// Transforms
|
|
2270
2270
|
/**
|
|
@@ -2300,7 +2300,7 @@ const x = (e) => {
|
|
|
2300
2300
|
* @see https://tailwindcss.com/docs/rotate
|
|
2301
2301
|
*/
|
|
2302
2302
|
rotate: [{
|
|
2303
|
-
rotate: [W,
|
|
2303
|
+
rotate: [W, m]
|
|
2304
2304
|
}],
|
|
2305
2305
|
/**
|
|
2306
2306
|
* Translate X
|
|
@@ -2335,7 +2335,7 @@ const x = (e) => {
|
|
|
2335
2335
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2336
2336
|
*/
|
|
2337
2337
|
"transform-origin": [{
|
|
2338
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
2338
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", m]
|
|
2339
2339
|
}],
|
|
2340
2340
|
// Interactivity
|
|
2341
2341
|
/**
|
|
@@ -2357,7 +2357,7 @@ const x = (e) => {
|
|
|
2357
2357
|
* @see https://tailwindcss.com/docs/cursor
|
|
2358
2358
|
*/
|
|
2359
2359
|
cursor: [{
|
|
2360
|
-
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",
|
|
2360
|
+
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", m]
|
|
2361
2361
|
}],
|
|
2362
2362
|
/**
|
|
2363
2363
|
* Caret Color
|
|
@@ -2579,7 +2579,7 @@ const x = (e) => {
|
|
|
2579
2579
|
* @see https://tailwindcss.com/docs/will-change
|
|
2580
2580
|
*/
|
|
2581
2581
|
"will-change": [{
|
|
2582
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2582
|
+
"will-change": ["auto", "scroll", "contents", "transform", m]
|
|
2583
2583
|
}],
|
|
2584
2584
|
// SVG
|
|
2585
2585
|
/**
|
|
@@ -2671,7 +2671,7 @@ const x = (e) => {
|
|
|
2671
2671
|
};
|
|
2672
2672
|
}, _r = /* @__PURE__ */ Sr(Dr);
|
|
2673
2673
|
function d(...e) {
|
|
2674
|
-
return _r(
|
|
2674
|
+
return _r(gr(e));
|
|
2675
2675
|
}
|
|
2676
2676
|
const Or = c.forwardRef(
|
|
2677
2677
|
({
|
|
@@ -2684,7 +2684,7 @@ const Or = c.forwardRef(
|
|
|
2684
2684
|
children: n,
|
|
2685
2685
|
...l
|
|
2686
2686
|
}, b) => {
|
|
2687
|
-
const p = "inline-flex items-center justify-center font-sans font-normal leading-[1.25] text-base border border-transparent cursor-pointer select-none transition-all duration-200 ease-in-out target-size",
|
|
2687
|
+
const p = "inline-flex items-center justify-center font-sans font-normal leading-[1.25] text-base border border-transparent cursor-pointer select-none transition-all duration-200 ease-in-out target-size", g = {
|
|
2688
2688
|
primary: "bg-supporting-orange text-black hover:bg-supporting-orange hover:text-black active:bg-[var(--highlight-color)] active:border-[var(--border-color)] active:text-[var(--body-color)] focus-visible:z-[5]",
|
|
2689
2689
|
secondary: "bg-black text-[var(--highlight-color)] hover:bg-[var(--highlight-color)] hover:border-[var(--border-color)] hover:text-[var(--body-color)] active:bg-[var(--highlight-color)] active:border-[var(--border-color)] active:text-[var(--body-color)]",
|
|
2690
2690
|
success: "bg-success text-[var(--highlight-color)] hover:bg-success hover:text-[var(--highlight-color)] active:bg-success active:text-[var(--highlight-color)]",
|
|
@@ -2716,7 +2716,7 @@ const Or = c.forwardRef(
|
|
|
2716
2716
|
ref: b,
|
|
2717
2717
|
className: d(
|
|
2718
2718
|
p,
|
|
2719
|
-
|
|
2719
|
+
g[r],
|
|
2720
2720
|
h[t],
|
|
2721
2721
|
f,
|
|
2722
2722
|
a && "active",
|
|
@@ -2765,7 +2765,7 @@ const Xr = c.forwardRef(
|
|
|
2765
2765
|
)
|
|
2766
2766
|
);
|
|
2767
2767
|
Xr.displayName = "Card";
|
|
2768
|
-
const
|
|
2768
|
+
const Jr = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
|
|
2769
2769
|
"div",
|
|
2770
2770
|
{
|
|
2771
2771
|
ref: t,
|
|
@@ -2773,8 +2773,8 @@ const Yr = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
|
|
|
2773
2773
|
...r
|
|
2774
2774
|
}
|
|
2775
2775
|
));
|
|
2776
|
-
|
|
2777
|
-
const
|
|
2776
|
+
Jr.displayName = "CardHeader";
|
|
2777
|
+
const Zr = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
|
|
2778
2778
|
"h3",
|
|
2779
2779
|
{
|
|
2780
2780
|
ref: t,
|
|
@@ -2782,13 +2782,13 @@ const Jr = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
|
|
|
2782
2782
|
...r
|
|
2783
2783
|
}
|
|
2784
2784
|
));
|
|
2785
|
-
|
|
2786
|
-
const
|
|
2787
|
-
|
|
2788
|
-
const
|
|
2789
|
-
|
|
2790
|
-
const
|
|
2791
|
-
|
|
2785
|
+
Zr.displayName = "CardTitle";
|
|
2786
|
+
const Kr = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i("p", { ref: t, className: d("text-sm text-body-secondary-color", e), ...r }));
|
|
2787
|
+
Kr.displayName = "CardDescription";
|
|
2788
|
+
const Qr = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i("div", { ref: t, className: d("p-5 pt-0", e), ...r }));
|
|
2789
|
+
Qr.displayName = "CardContent";
|
|
2790
|
+
const Yr = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i("div", { ref: t, className: d("flex items-center p-5 pt-0", e), ...r }));
|
|
2791
|
+
Yr.displayName = "CardFooter";
|
|
2792
2792
|
const et = c.forwardRef(
|
|
2793
2793
|
({ as: e, variant: r = "body", className: t, children: o, ...a }, s) => {
|
|
2794
2794
|
const n = {
|
|
@@ -2902,8 +2902,8 @@ var at = function(e, r) {
|
|
|
2902
2902
|
var l = o.unionErrors[0].errors[0];
|
|
2903
2903
|
t[n] = { message: l.message, type: l.code };
|
|
2904
2904
|
} else t[n] = { message: s, type: a };
|
|
2905
|
-
if ("unionErrors" in o && o.unionErrors.forEach(function(
|
|
2906
|
-
return
|
|
2905
|
+
if ("unionErrors" in o && o.unionErrors.forEach(function(g) {
|
|
2906
|
+
return g.errors.forEach(function(h) {
|
|
2907
2907
|
return e.push(h);
|
|
2908
2908
|
});
|
|
2909
2909
|
}), r) {
|
|
@@ -2928,7 +2928,7 @@ var at = function(e, r) {
|
|
|
2928
2928
|
})(0, function(n) {
|
|
2929
2929
|
if ((function(l) {
|
|
2930
2930
|
return Array.isArray(l == null ? void 0 : l.errors);
|
|
2931
|
-
})(n)) return { values: {}, errors:
|
|
2931
|
+
})(n)) return { values: {}, errors: Ue(at(n.errors, !s.shouldUseNativeValidation && s.criteriaMode === "all"), s) };
|
|
2932
2932
|
throw n;
|
|
2933
2933
|
}));
|
|
2934
2934
|
} catch (n) {
|
|
@@ -3019,9 +3019,9 @@ const ct = c.forwardRef(
|
|
|
3019
3019
|
ct.displayName = "FormDescription";
|
|
3020
3020
|
const ao = z.string().email("Invalid email address"), so = z.string().min(1, "This field is required"), no = z.string().optional(), io = z.string().regex(/^[+]?[(]?[0-9]{1,4}[)]?[-\s.]?[(]?[0-9]{1,4}[)]?[-\s.]?[0-9]{1,9}$/, {
|
|
3021
3021
|
message: "Invalid phone number"
|
|
3022
|
-
}), lo = z.string().url("Invalid URL"), co = z.number().positive("Must be a positive number"), bo = z.number().nonnegative("Must be a non-negative number"), po = z.date(),
|
|
3022
|
+
}), lo = z.string().url("Invalid URL"), co = z.number().positive("Must be a positive number"), bo = z.number().nonnegative("Must be a non-negative number"), po = z.date(), go = z.date().refine((e) => e > /* @__PURE__ */ new Date(), {
|
|
3023
3023
|
message: "Date must be in the future"
|
|
3024
|
-
}),
|
|
3024
|
+
}), mo = z.date().refine((e) => e < /* @__PURE__ */ new Date(), {
|
|
3025
3025
|
message: "Date must be in the past"
|
|
3026
3026
|
}), dt = c.forwardRef(
|
|
3027
3027
|
({ className: e, variant: r = "info", dismissible: t = !1, onDismiss: o, children: a, ...s }, n) => {
|
|
@@ -3104,28 +3104,28 @@ const bt = c.forwardRef(
|
|
|
3104
3104
|
bt.displayName = "Modal";
|
|
3105
3105
|
const pt = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i("div", { ref: t, className: d("mb-4", e), ...r }));
|
|
3106
3106
|
pt.displayName = "ModalHeader";
|
|
3107
|
-
const
|
|
3108
|
-
|
|
3109
|
-
const
|
|
3110
|
-
|
|
3107
|
+
const gt = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i("h2", { ref: t, className: d("text-2xl font-semibold", e), ...r }));
|
|
3108
|
+
gt.displayName = "ModalTitle";
|
|
3109
|
+
const mt = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i("div", { ref: t, className: d("mb-4", e), ...r }));
|
|
3110
|
+
mt.displayName = "ModalBody";
|
|
3111
3111
|
const ut = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i("div", { ref: t, className: d("flex justify-end gap-2", e), ...r }));
|
|
3112
3112
|
ut.displayName = "ModalFooter";
|
|
3113
3113
|
const ft = c.forwardRef(
|
|
3114
3114
|
({ className: e, trigger: r, open: t, onOpenChange: o, children: a, ...s }, n) => {
|
|
3115
|
-
const [l, b] = c.useState(!1), p = c.useRef(null),
|
|
3116
|
-
const f = !
|
|
3115
|
+
const [l, b] = c.useState(!1), p = c.useRef(null), g = t ?? l, h = () => {
|
|
3116
|
+
const f = !g;
|
|
3117
3117
|
b(f), o == null || o(f);
|
|
3118
3118
|
};
|
|
3119
3119
|
return c.useEffect(() => {
|
|
3120
3120
|
const f = (y) => {
|
|
3121
3121
|
p.current && !p.current.contains(y.target) && (b(!1), o == null || o(!1));
|
|
3122
3122
|
};
|
|
3123
|
-
return
|
|
3123
|
+
return g && document.addEventListener("mousedown", f), () => {
|
|
3124
3124
|
document.removeEventListener("mousedown", f);
|
|
3125
3125
|
};
|
|
3126
|
-
}, [
|
|
3126
|
+
}, [g, o]), /* @__PURE__ */ A("div", { ref: p, className: d("relative inline-block", e), ...s, children: [
|
|
3127
3127
|
/* @__PURE__ */ i("div", { onClick: h, role: "button", tabIndex: 0, children: r }),
|
|
3128
|
-
|
|
3128
|
+
g && /* @__PURE__ */ i(
|
|
3129
3129
|
"div",
|
|
3130
3130
|
{
|
|
3131
3131
|
ref: n,
|
|
@@ -3440,7 +3440,7 @@ const Tt = c.forwardRef(({ className: e, size: r = "base", ...t }, o) => {
|
|
|
3440
3440
|
lg: "h-6 w-6"
|
|
3441
3441
|
};
|
|
3442
3442
|
return /* @__PURE__ */ A(
|
|
3443
|
-
|
|
3443
|
+
U.Root,
|
|
3444
3444
|
{
|
|
3445
3445
|
ref: o,
|
|
3446
3446
|
className: d(
|
|
@@ -3450,9 +3450,9 @@ const Tt = c.forwardRef(({ className: e, size: r = "base", ...t }, o) => {
|
|
|
3450
3450
|
),
|
|
3451
3451
|
...t,
|
|
3452
3452
|
children: [
|
|
3453
|
-
/* @__PURE__ */ i(
|
|
3453
|
+
/* @__PURE__ */ i(U.Track, { className: "relative h-full w-full grow rounded-full bg-gray-300", children: /* @__PURE__ */ i(U.Range, { className: "absolute h-full rounded-full bg-primary" }) }),
|
|
3454
3454
|
/* @__PURE__ */ i(
|
|
3455
|
-
|
|
3455
|
+
U.Thumb,
|
|
3456
3456
|
{
|
|
3457
3457
|
className: d(
|
|
3458
3458
|
"block rounded-full border-2 border-black bg-white transition-colors",
|
|
@@ -3466,7 +3466,7 @@ const Tt = c.forwardRef(({ className: e, size: r = "base", ...t }, o) => {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
);
|
|
3468
3468
|
});
|
|
3469
|
-
Tt.displayName =
|
|
3469
|
+
Tt.displayName = U.Root.displayName;
|
|
3470
3470
|
const Pt = c.forwardRef(
|
|
3471
3471
|
({ className: e, separator: r = "/", children: t, ...o }, a) => {
|
|
3472
3472
|
const s = c.Children.toArray(t);
|
|
@@ -3523,12 +3523,12 @@ const Et = c.forwardRef(
|
|
|
3523
3523
|
...n
|
|
3524
3524
|
}, l) => {
|
|
3525
3525
|
const p = (() => {
|
|
3526
|
-
const
|
|
3526
|
+
const g = [], h = Math.floor(s / 2);
|
|
3527
3527
|
let f = Math.max(1, r - h), y = Math.min(t, r + h);
|
|
3528
|
-
y - f < s - 1 && (f === 1 ? y = Math.min(t, f + s - 1) : f = Math.max(1, y - s + 1)), f > 1 && a && (
|
|
3528
|
+
y - f < s - 1 && (f === 1 ? y = Math.min(t, f + s - 1) : f = Math.max(1, y - s + 1)), f > 1 && a && (g.push(1), f > 2 && g.push("ellipsis-start"));
|
|
3529
3529
|
for (let R = f; R <= y; R++)
|
|
3530
|
-
|
|
3531
|
-
return y < t && a && (y < t - 1 &&
|
|
3530
|
+
g.push(R);
|
|
3531
|
+
return y < t && a && (y < t - 1 && g.push("ellipsis-end"), g.push(t)), g;
|
|
3532
3532
|
})();
|
|
3533
3533
|
return /* @__PURE__ */ A(
|
|
3534
3534
|
"nav",
|
|
@@ -3539,7 +3539,7 @@ const Et = c.forwardRef(
|
|
|
3539
3539
|
...n,
|
|
3540
3540
|
children: [
|
|
3541
3541
|
/* @__PURE__ */ i(
|
|
3542
|
-
|
|
3542
|
+
K,
|
|
3543
3543
|
{
|
|
3544
3544
|
onClick: () => o(r - 1),
|
|
3545
3545
|
disabled: r === 1,
|
|
@@ -3547,19 +3547,19 @@ const Et = c.forwardRef(
|
|
|
3547
3547
|
children: "‹"
|
|
3548
3548
|
}
|
|
3549
3549
|
),
|
|
3550
|
-
p.map((
|
|
3551
|
-
|
|
3550
|
+
p.map((g, h) => typeof g == "string" ? /* @__PURE__ */ i("span", { className: "px-2 text-gray-500", children: "..." }, h) : /* @__PURE__ */ i(
|
|
3551
|
+
K,
|
|
3552
3552
|
{
|
|
3553
|
-
onClick: () => o(
|
|
3554
|
-
active:
|
|
3555
|
-
"aria-label": `Page ${
|
|
3556
|
-
"aria-current":
|
|
3557
|
-
children:
|
|
3553
|
+
onClick: () => o(g),
|
|
3554
|
+
active: g === r,
|
|
3555
|
+
"aria-label": `Page ${g}`,
|
|
3556
|
+
"aria-current": g === r ? "page" : void 0,
|
|
3557
|
+
children: g
|
|
3558
3558
|
},
|
|
3559
|
-
|
|
3559
|
+
g
|
|
3560
3560
|
)),
|
|
3561
3561
|
/* @__PURE__ */ i(
|
|
3562
|
-
|
|
3562
|
+
K,
|
|
3563
3563
|
{
|
|
3564
3564
|
onClick: () => o(r + 1),
|
|
3565
3565
|
disabled: r === t,
|
|
@@ -3573,7 +3573,7 @@ const Et = c.forwardRef(
|
|
|
3573
3573
|
}
|
|
3574
3574
|
);
|
|
3575
3575
|
Et.displayName = "Pagination";
|
|
3576
|
-
const
|
|
3576
|
+
const K = c.forwardRef(({ className: e, active: r = !1, ...t }, o) => /* @__PURE__ */ i(
|
|
3577
3577
|
"button",
|
|
3578
3578
|
{
|
|
3579
3579
|
ref: o,
|
|
@@ -3587,7 +3587,7 @@ const Z = c.forwardRef(({ className: e, active: r = !1, ...t }, o) => /* @__PURE
|
|
|
3587
3587
|
...t
|
|
3588
3588
|
}
|
|
3589
3589
|
));
|
|
3590
|
-
|
|
3590
|
+
K.displayName = "PaginationButton";
|
|
3591
3591
|
const xo = G.Root, Gt = c.forwardRef(({ className: e, variant: r = "default", ...t }, o) => /* @__PURE__ */ i(
|
|
3592
3592
|
G.List,
|
|
3593
3593
|
{
|
|
@@ -3630,7 +3630,7 @@ const Ft = c.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
|
|
|
3630
3630
|
}
|
|
3631
3631
|
));
|
|
3632
3632
|
Ft.displayName = G.Content.displayName;
|
|
3633
|
-
const Ge = c.createContext("base"),
|
|
3633
|
+
const Ge = c.createContext("base"), Q = c.createContext(void 0), Bt = c.forwardRef(({ className: e, size: r = "base", theme: t, ...o }, a) => /* @__PURE__ */ i(Ge.Provider, { value: r, children: /* @__PURE__ */ i(Q.Provider, { value: t, children: /* @__PURE__ */ i(
|
|
3634
3634
|
E.Root,
|
|
3635
3635
|
{
|
|
3636
3636
|
ref: a,
|
|
@@ -3640,7 +3640,7 @@ const Ge = c.createContext("base"), K = c.createContext(void 0), Bt = c.forwardR
|
|
|
3640
3640
|
) }) }));
|
|
3641
3641
|
Bt.displayName = "Accordion";
|
|
3642
3642
|
const Ht = c.forwardRef(({ className: e, ...r }, t) => {
|
|
3643
|
-
const a = c.useContext(
|
|
3643
|
+
const a = c.useContext(Q) === "dark";
|
|
3644
3644
|
return /* @__PURE__ */ i(
|
|
3645
3645
|
E.Item,
|
|
3646
3646
|
{
|
|
@@ -3660,7 +3660,7 @@ const Ht = c.forwardRef(({ className: e, ...r }, t) => {
|
|
|
3660
3660
|
});
|
|
3661
3661
|
Ht.displayName = "AccordionItem";
|
|
3662
3662
|
const Wt = c.forwardRef(({ className: e, children: r, ...t }, o) => {
|
|
3663
|
-
const a = c.useContext(Ge), s = c.useContext(
|
|
3663
|
+
const a = c.useContext(Ge), s = c.useContext(Q), n = c.useRef(null), [l, b] = c.useState(!1), p = s === "dark";
|
|
3664
3664
|
c.useImperativeHandle(o, () => n.current), c.useEffect(() => {
|
|
3665
3665
|
const f = n.current;
|
|
3666
3666
|
if (!f) return;
|
|
@@ -3737,13 +3737,12 @@ const Wt = c.forwardRef(({ className: e, children: r, ...t }, o) => {
|
|
|
3737
3737
|
"border-b-[0.25rem] border-b-transparent",
|
|
3738
3738
|
"border-l-[0.25rem]",
|
|
3739
3739
|
p ? "border-l-white" : "border-l-black",
|
|
3740
|
-
"transition-transform duration-200",
|
|
3741
|
-
"translate-y-[calc(0.125rem*0.5)]"
|
|
3740
|
+
"transition-transform duration-200 origin-center",
|
|
3741
|
+
"translate-y-[calc(0.125rem*0.5)]",
|
|
3742
3742
|
// translateY(calc(border-width * 0.5))
|
|
3743
|
+
l && "rotate-90"
|
|
3744
|
+
// Rotate 90 degrees when open (right arrow becomes down arrow)
|
|
3743
3745
|
),
|
|
3744
|
-
style: {
|
|
3745
|
-
transform: `translateY(calc(0.125rem * 0.5)) ${l ? "scaleY(-1)" : ""}`
|
|
3746
|
-
},
|
|
3747
3746
|
"aria-hidden": "true"
|
|
3748
3747
|
}
|
|
3749
3748
|
)
|
|
@@ -3753,7 +3752,7 @@ const Wt = c.forwardRef(({ className: e, children: r, ...t }, o) => {
|
|
|
3753
3752
|
});
|
|
3754
3753
|
Wt.displayName = E.Trigger.displayName;
|
|
3755
3754
|
const Vt = c.forwardRef(({ className: e, children: r, ...t }, o) => {
|
|
3756
|
-
const s = c.useContext(
|
|
3755
|
+
const s = c.useContext(Q) === "dark";
|
|
3757
3756
|
return /* @__PURE__ */ i(
|
|
3758
3757
|
E.Content,
|
|
3759
3758
|
{
|
|
@@ -3772,7 +3771,7 @@ const Vt = c.forwardRef(({ className: e, children: r, ...t }, o) => {
|
|
|
3772
3771
|
className: d(
|
|
3773
3772
|
"pt-5 pb-7.5 px-0",
|
|
3774
3773
|
// pt: spacer (20px), pb: spacer * 1.5 (30px), px: 0
|
|
3775
|
-
s ? "text-white [&_*]
|
|
3774
|
+
s ? "!text-white [&_*]:!text-white" : "text-black",
|
|
3776
3775
|
e
|
|
3777
3776
|
),
|
|
3778
3777
|
children: r
|
|
@@ -3782,7 +3781,7 @@ const Vt = c.forwardRef(({ className: e, children: r, ...t }, o) => {
|
|
|
3782
3781
|
);
|
|
3783
3782
|
});
|
|
3784
3783
|
Vt.displayName = E.Content.displayName;
|
|
3785
|
-
const vo = _.Root, yo = _.Trigger,
|
|
3784
|
+
const vo = _.Root, yo = _.Trigger, Ut = c.forwardRef(({ className: e, align: r = "center", sideOffset: t = 4, ...o }, a) => /* @__PURE__ */ i(_.Portal, { children: /* @__PURE__ */ i(
|
|
3786
3785
|
_.Content,
|
|
3787
3786
|
{
|
|
3788
3787
|
ref: a,
|
|
@@ -3796,8 +3795,8 @@ const vo = _.Root, yo = _.Trigger, $t = c.forwardRef(({ className: e, align: r =
|
|
|
3796
3795
|
...o
|
|
3797
3796
|
}
|
|
3798
3797
|
) }));
|
|
3799
|
-
|
|
3800
|
-
const wo = O.Provider, ko = O.Root, No = O.Trigger,
|
|
3798
|
+
Ut.displayName = _.Content.displayName;
|
|
3799
|
+
const wo = O.Provider, ko = O.Root, No = O.Trigger, $t = c.forwardRef(({ className: e, sideOffset: r = 4, ...t }, o) => /* @__PURE__ */ i(
|
|
3801
3800
|
O.Content,
|
|
3802
3801
|
{
|
|
3803
3802
|
ref: o,
|
|
@@ -3810,7 +3809,7 @@ const wo = O.Provider, ko = O.Root, No = O.Trigger, Ut = c.forwardRef(({ classNa
|
|
|
3810
3809
|
...t
|
|
3811
3810
|
}
|
|
3812
3811
|
));
|
|
3813
|
-
|
|
3812
|
+
$t.displayName = O.Content.displayName;
|
|
3814
3813
|
const Dt = c.forwardRef(
|
|
3815
3814
|
({ className: e, variant: r = "primary", size: t = "base", ...o }, a) => {
|
|
3816
3815
|
const s = {
|
|
@@ -3971,7 +3970,7 @@ const Xt = c.forwardRef(({ className: e, variant: r = "primary", size: t = "base
|
|
|
3971
3970
|
);
|
|
3972
3971
|
});
|
|
3973
3972
|
Xt.displayName = ie.Root.displayName;
|
|
3974
|
-
const
|
|
3973
|
+
const Jt = c.forwardRef(
|
|
3975
3974
|
({ className: e, size: r = "base", variant: t = "primary", ...o }, a) => {
|
|
3976
3975
|
const s = {
|
|
3977
3976
|
sm: "h-4 w-4 border-2",
|
|
@@ -4000,8 +3999,8 @@ const Yt = c.forwardRef(
|
|
|
4000
3999
|
);
|
|
4001
4000
|
}
|
|
4002
4001
|
);
|
|
4003
|
-
|
|
4004
|
-
const
|
|
4002
|
+
Jt.displayName = "Spinner";
|
|
4003
|
+
const Zt = c.forwardRef(
|
|
4005
4004
|
({ className: e, orientation: r = "horizontal", decorative: t = !0, ...o }, a) => /* @__PURE__ */ i(
|
|
4006
4005
|
Ne.Root,
|
|
4007
4006
|
{
|
|
@@ -4017,7 +4016,7 @@ const Jt = c.forwardRef(
|
|
|
4017
4016
|
}
|
|
4018
4017
|
)
|
|
4019
4018
|
);
|
|
4020
|
-
|
|
4019
|
+
Zt.displayName = Ne.Root.displayName;
|
|
4021
4020
|
export {
|
|
4022
4021
|
Bt as Accordion,
|
|
4023
4022
|
Vt as AccordionContent,
|
|
@@ -4030,11 +4029,11 @@ export {
|
|
|
4030
4029
|
Pt as Breadcrumbs,
|
|
4031
4030
|
Or as Button,
|
|
4032
4031
|
Xr as Card,
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4032
|
+
Qr as CardContent,
|
|
4033
|
+
Kr as CardDescription,
|
|
4034
|
+
Yr as CardFooter,
|
|
4035
|
+
Jr as CardHeader,
|
|
4036
|
+
Zr as CardTitle,
|
|
4038
4037
|
kt as Checkbox,
|
|
4039
4038
|
rt as Container,
|
|
4040
4039
|
Ot as Divider,
|
|
@@ -4050,18 +4049,18 @@ export {
|
|
|
4050
4049
|
ot as GridItem,
|
|
4051
4050
|
qr as Input,
|
|
4052
4051
|
bt as Modal,
|
|
4053
|
-
|
|
4052
|
+
mt as ModalBody,
|
|
4054
4053
|
ut as ModalFooter,
|
|
4055
4054
|
pt as ModalHeader,
|
|
4056
|
-
|
|
4055
|
+
gt as ModalTitle,
|
|
4057
4056
|
xt as Navbar,
|
|
4058
4057
|
yt as NavbarItem,
|
|
4059
4058
|
wt as NavbarLink,
|
|
4060
4059
|
vt as NavbarNav,
|
|
4061
4060
|
Et as Pagination,
|
|
4062
|
-
|
|
4061
|
+
K as PaginationButton,
|
|
4063
4062
|
vo as Popover,
|
|
4064
|
-
|
|
4063
|
+
Ut as PopoverContent,
|
|
4065
4064
|
yo as PopoverTrigger,
|
|
4066
4065
|
Xt as Progress,
|
|
4067
4066
|
Nt as RadioGroup,
|
|
@@ -4073,10 +4072,10 @@ export {
|
|
|
4073
4072
|
Mt as SelectSeparator,
|
|
4074
4073
|
St as SelectTrigger,
|
|
4075
4074
|
ho as SelectValue,
|
|
4076
|
-
|
|
4075
|
+
Zt as Separator,
|
|
4077
4076
|
qt as Skeleton,
|
|
4078
4077
|
Tt as Slider,
|
|
4079
|
-
|
|
4078
|
+
Jt as Spinner,
|
|
4080
4079
|
Rt as Switch,
|
|
4081
4080
|
xo as Tabs,
|
|
4082
4081
|
Ft as TabsContent,
|
|
@@ -4084,7 +4083,7 @@ export {
|
|
|
4084
4083
|
Lt as TabsTrigger,
|
|
4085
4084
|
At as Textarea,
|
|
4086
4085
|
ko as Tooltip,
|
|
4087
|
-
|
|
4086
|
+
$t as TooltipContent,
|
|
4088
4087
|
wo as TooltipProvider,
|
|
4089
4088
|
No as TooltipTrigger,
|
|
4090
4089
|
et as Typography,
|
|
@@ -4099,24 +4098,24 @@ export {
|
|
|
4099
4098
|
_e as colors,
|
|
4100
4099
|
br as containerFluidMargins,
|
|
4101
4100
|
dr as containerMaxWidths,
|
|
4102
|
-
|
|
4101
|
+
Je as containerPaddingX,
|
|
4103
4102
|
po as dateSchema,
|
|
4104
|
-
|
|
4103
|
+
Ke as displaySizes,
|
|
4105
4104
|
ao as emailSchema,
|
|
4106
4105
|
he as fontFamilies,
|
|
4107
|
-
|
|
4106
|
+
Z as fontSizes,
|
|
4108
4107
|
er as fontWeights,
|
|
4109
|
-
|
|
4110
|
-
|
|
4108
|
+
$ as functionalColors,
|
|
4109
|
+
go as futureDateSchema,
|
|
4111
4110
|
Re as grays,
|
|
4112
4111
|
Se as gridGutterWidth,
|
|
4113
4112
|
ze as headingSizes,
|
|
4114
|
-
|
|
4115
|
-
|
|
4113
|
+
Ye as letterSpacing,
|
|
4114
|
+
Qe as lineHeights,
|
|
4116
4115
|
bo as nonNegativeNumber,
|
|
4117
4116
|
u as odsColors,
|
|
4118
4117
|
no as optionalString,
|
|
4119
|
-
|
|
4118
|
+
mo as pastDateSchema,
|
|
4120
4119
|
io as phoneSchema,
|
|
4121
4120
|
co as positiveNumber,
|
|
4122
4121
|
so as requiredString,
|
|
@@ -4125,8 +4124,8 @@ export {
|
|
|
4125
4124
|
lr as shadows,
|
|
4126
4125
|
Oe as spacer,
|
|
4127
4126
|
qe as spacers,
|
|
4128
|
-
|
|
4129
|
-
|
|
4127
|
+
Ze as spacing,
|
|
4128
|
+
$e as supportingColors,
|
|
4130
4129
|
Xe as targetSize,
|
|
4131
4130
|
Ce as themeColors,
|
|
4132
4131
|
ro as tokens,
|