@simpli-route/apollo-ds 0.1.3 → 0.1.4
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/Slider/Slider.d.ts +12 -0
- package/dist/components/Slider/SliderContainerTrack.d.ts +3 -0
- package/dist/components/Slider/SliderThumb.d.ts +3 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/types.d.ts +68 -0
- package/dist/components/Slider/utils.d.ts +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -9
- package/dist/index.cjs37.js +1 -19
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +9 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +19 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -0
- package/dist/index.cjs46.js +1 -0
- package/dist/index.cjs47.js +1 -0
- package/dist/index.cjs48.js +1 -0
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es.js +20 -18
- package/dist/index.es10.js +77 -32
- package/dist/index.es11.js +29 -20
- package/dist/index.es12.js +21 -25
- package/dist/index.es13.js +28 -8
- package/dist/index.es14.js +7 -7
- package/dist/index.es15.js +8 -6
- package/dist/index.es16.js +6 -6
- package/dist/index.es17.js +6 -22
- package/dist/index.es18.js +22 -173
- package/dist/index.es19.js +150 -20
- package/dist/index.es2.js +3 -3
- package/dist/index.es20.js +20 -36
- package/dist/index.es21.js +45 -78
- package/dist/index.es23.js +87 -17
- package/dist/index.es24.js +20 -28
- package/dist/index.es25.js +30 -10
- package/dist/index.es26.js +11 -12
- package/dist/index.es27.js +10 -19
- package/dist/index.es28.js +12 -20
- package/dist/index.es29.js +131 -10
- package/dist/index.es3.js +7 -7
- package/dist/index.es30.js +19 -10
- package/dist/index.es31.js +17 -28
- package/dist/index.es32.js +95 -130
- package/dist/index.es33.js +13 -11
- package/dist/index.es34.js +10 -45
- package/dist/index.es35.js +10 -2
- package/dist/index.es36.js +30 -29
- package/dist/index.es37.js +45 -599
- package/dist/index.es38.js +2 -2
- package/dist/index.es39.js +30 -2
- package/dist/index.es4.js +4 -4
- package/dist/index.es40.js +599 -19
- package/dist/index.es41.js +7 -7
- package/dist/index.es42.js +13 -15
- package/dist/index.es43.js +8 -8
- package/dist/index.es44.js +11 -9
- package/dist/index.es45.js +21 -0
- package/dist/index.es46.js +58 -0
- package/dist/index.es47.js +4 -0
- package/dist/index.es48.js +4 -0
- package/dist/index.es5.js +19 -18
- package/dist/index.es6.js +17 -16
- package/dist/index.es7.js +2 -2
- package/dist/index.es8.js +5 -5
- package/dist/index.es9.js +67 -74
- package/dist/stories/Checkbox.stories.d.ts +5 -0
- package/dist/style.css +34 -0
- package/package.json +1 -1
package/dist/index.es23.js
CHANGED
|
@@ -1,24 +1,94 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const s = e("relative rounded-full transition-colors duration-300", {
|
|
3
3
|
variants: {
|
|
4
|
+
isSelected: {
|
|
5
|
+
true: "bg-primary-500",
|
|
6
|
+
false: "bg-neutral-50 border border-primary-200"
|
|
7
|
+
},
|
|
8
|
+
isDisabled: {
|
|
9
|
+
true: "cursor-not-allowed bg-neutral-400 border-none",
|
|
10
|
+
false: "cursor-pointer"
|
|
11
|
+
},
|
|
12
|
+
isHoveredWhenOff: {
|
|
13
|
+
true: "bg-neutral-200 border-primary-700",
|
|
14
|
+
false: ""
|
|
15
|
+
},
|
|
16
|
+
isFocusVisible: {
|
|
17
|
+
true: "ring-2 ring-sky-400 ring-offset-2",
|
|
18
|
+
false: ""
|
|
19
|
+
},
|
|
4
20
|
size: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
h3: "text-2xl font-semibold",
|
|
8
|
-
h4: "text-[1.375rem] font-semibold leading-7",
|
|
9
|
-
h5: "text-xl font-semibold",
|
|
10
|
-
h6: "text-lg font-semibold"
|
|
21
|
+
sm: "w-[42px] h-[24px]",
|
|
22
|
+
md: "w-[56px] h-[32px]"
|
|
11
23
|
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
size: "md",
|
|
27
|
+
isSelected: !1,
|
|
28
|
+
isDisabled: !1,
|
|
29
|
+
isFocusVisible: !1,
|
|
30
|
+
isHoveredWhenOff: !1
|
|
31
|
+
},
|
|
32
|
+
compoundVariants: [
|
|
33
|
+
// Hover cuando el switch está apagado y no deshabilitado
|
|
34
|
+
{
|
|
35
|
+
isSelected: !1,
|
|
36
|
+
isDisabled: !1,
|
|
37
|
+
class: "hover:bg-neutral-200 hover:border-primary-700"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
isSelected: !0,
|
|
41
|
+
isDisabled: !1,
|
|
42
|
+
class: "hover:bg-primary-700"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
isSelected: !1,
|
|
46
|
+
isDisabled: !0,
|
|
47
|
+
class: "bg-neutral-400 border-none"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
isSelected: !0,
|
|
51
|
+
isDisabled: !0,
|
|
52
|
+
class: "bg-neutral-500"
|
|
18
53
|
}
|
|
54
|
+
]
|
|
55
|
+
}), a = e(
|
|
56
|
+
"absolute top-1/2 transform -translate-y-1/2 transition-all duration-300 rounded-full",
|
|
57
|
+
{
|
|
58
|
+
variants: {
|
|
59
|
+
isSelected: {
|
|
60
|
+
true: "bg-primary-50",
|
|
61
|
+
false: "bg-primary-200 border border-primary-200"
|
|
62
|
+
},
|
|
63
|
+
isDisabled: {
|
|
64
|
+
true: "bg-neutral-600 border-none",
|
|
65
|
+
false: ""
|
|
66
|
+
},
|
|
67
|
+
isHoveredWhenOff: {
|
|
68
|
+
true: "bg-primary-700 border-primary-700",
|
|
69
|
+
false: ""
|
|
70
|
+
},
|
|
71
|
+
size: {
|
|
72
|
+
sm: "w-[20px] h-[20px]",
|
|
73
|
+
md: "w-[24px] h-[24px]"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
defaultVariants: {
|
|
77
|
+
size: "md",
|
|
78
|
+
isSelected: !1,
|
|
79
|
+
isDisabled: !1,
|
|
80
|
+
isHoveredWhenOff: !1
|
|
81
|
+
},
|
|
82
|
+
compoundVariants: [
|
|
83
|
+
{
|
|
84
|
+
isSelected: !0,
|
|
85
|
+
isDisabled: !0,
|
|
86
|
+
class: "bg-neutral-400"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
19
89
|
}
|
|
20
|
-
|
|
90
|
+
);
|
|
21
91
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
92
|
+
a as indicatorVariants,
|
|
93
|
+
s as switchVariants
|
|
24
94
|
};
|
package/dist/index.es24.js
CHANGED
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
y2: 10,
|
|
12
|
-
fill: "none",
|
|
13
|
-
strokeWidth: 2,
|
|
14
|
-
strokeDasharray: 14,
|
|
15
|
-
strokeDashoffset: s ? 28 : 42,
|
|
16
|
-
style: { transition: "all 400ms" }
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const o = t("scroll-m-12 text-neutral-900", {
|
|
3
|
+
variants: {
|
|
4
|
+
size: {
|
|
5
|
+
h1: "text-[2rem] font-bold leading-10",
|
|
6
|
+
h2: "text-[1.75rem] font-bold leading-9",
|
|
7
|
+
h3: "text-2xl font-semibold",
|
|
8
|
+
h4: "text-[1.375rem] font-semibold leading-7",
|
|
9
|
+
h5: "text-xl font-semibold",
|
|
10
|
+
h6: "text-lg font-semibold"
|
|
17
11
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
strokeDasharray: 22,
|
|
25
|
-
strokeDashoffset: i ? 44 : 66,
|
|
26
|
-
style: { transition: "all 400ms" }
|
|
12
|
+
}
|
|
13
|
+
}), n = t("", {
|
|
14
|
+
variants: {
|
|
15
|
+
type: {
|
|
16
|
+
body: "text-base text-neutral-900",
|
|
17
|
+
caption: "text-xs text-neutral-700"
|
|
27
18
|
}
|
|
28
|
-
|
|
29
|
-
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
30
21
|
export {
|
|
31
|
-
|
|
22
|
+
n as textVariants,
|
|
23
|
+
o as titleVariants
|
|
32
24
|
};
|
package/dist/index.es25.js
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { cn as
|
|
3
|
-
const m = ({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { j as e } from "./index.es16.js";
|
|
2
|
+
import { cn as l } from "./index.es17.js";
|
|
3
|
+
const m = (r) => {
|
|
4
|
+
const { isIndeterminate: t, isSelected: s, className: n, isHovered: a } = r, o = a && !s && !t ? "text-neutral-500" : "", i = !!(o || s);
|
|
5
|
+
return /* @__PURE__ */ e.jsx("svg", { className: l("stroke-current", o, n), viewBox: "-1 1 17 17", children: t ? /* @__PURE__ */ e.jsx(
|
|
6
|
+
"line",
|
|
7
|
+
{
|
|
8
|
+
x1: 1,
|
|
9
|
+
y1: 10,
|
|
10
|
+
x2: 14,
|
|
11
|
+
y2: 10,
|
|
12
|
+
fill: "none",
|
|
13
|
+
strokeWidth: 2,
|
|
14
|
+
strokeDasharray: 14,
|
|
15
|
+
strokeDashoffset: s ? 28 : 42,
|
|
16
|
+
style: { transition: "all 400ms" }
|
|
17
|
+
}
|
|
18
|
+
) : /* @__PURE__ */ e.jsx(
|
|
19
|
+
"polyline",
|
|
20
|
+
{
|
|
21
|
+
points: "1 9 7 14 15 4",
|
|
22
|
+
fill: "none",
|
|
23
|
+
strokeWidth: 2,
|
|
24
|
+
strokeDasharray: 22,
|
|
25
|
+
strokeDashoffset: i ? 44 : 66,
|
|
26
|
+
style: { transition: "all 400ms" }
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
};
|
|
10
30
|
export {
|
|
11
|
-
m as
|
|
31
|
+
m as MarkIcon
|
|
12
32
|
};
|
package/dist/index.es26.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "absolute inset-y-0 right-0 flex flex-col items-center justify-center space-y-0.5 pr-2", children: [
|
|
8
|
-
/* @__PURE__ */ e.jsx(s, { slot: "increment", className: t, children: /* @__PURE__ */ e.jsx(n, { className: "size-3.5" }) }),
|
|
9
|
-
/* @__PURE__ */ e.jsx(s, { slot: "decrement", className: t, children: /* @__PURE__ */ e.jsx(o, { className: "size-3.5" }) })
|
|
10
|
-
] });
|
|
11
|
-
};
|
|
1
|
+
import { D as o } from "./index.es41.js";
|
|
2
|
+
import { I as n } from "./index.es42.js";
|
|
3
|
+
import { M as r } from "./index.es43.js";
|
|
4
|
+
import { P as I } from "./index.es44.js";
|
|
5
|
+
import { U as a } from "./index.es45.js";
|
|
6
|
+
var f = o, i = n, t = r, e = I, _ = a;
|
|
12
7
|
export {
|
|
13
|
-
|
|
8
|
+
f as DownChevronIcon,
|
|
9
|
+
i as InfoIcon,
|
|
10
|
+
t as MinusIcon,
|
|
11
|
+
e as PlusIcon,
|
|
12
|
+
_ as UpChevronIcon
|
|
14
13
|
};
|
package/dist/index.es27.js
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { cn as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
errorMessage:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
renderLabelIcon: m
|
|
11
|
-
}) => !e && !x && !n ? null : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
12
|
-
e ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
13
|
-
/* @__PURE__ */ t.jsx("p", { className: c("text-sm font-semibold", l ? "text-neutral-600" : "text-neutral-900"), children: e }),
|
|
14
|
-
m ? /* @__PURE__ */ t.jsx(t.Fragment, { children: m }) : null
|
|
15
|
-
] }) : n,
|
|
16
|
-
x && !s && /* @__PURE__ */ t.jsx("p", { className: c("text-xs", l ? "text-neutral-600" : "text-neutral-800"), children: x }),
|
|
17
|
-
r && s && /* @__PURE__ */ t.jsx("p", { className: "text-sm text-red-500", children: s })
|
|
18
|
-
] });
|
|
1
|
+
import { j as n } from "./index.es16.js";
|
|
2
|
+
import { cn as x } from "./index.es17.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
description: t,
|
|
5
|
+
descriptionClasses: i,
|
|
6
|
+
errorMessage: r,
|
|
7
|
+
errorClasses: s,
|
|
8
|
+
isInvalidField: e
|
|
9
|
+
}) => t && !e ? /* @__PURE__ */ n.jsx("div", { slot: "description", className: x("text-xs leading-3 text-neutral-700", i), children: t }) : r && e ? /* @__PURE__ */ n.jsx("div", { className: x("text-xs leading-3 text-error-500", s), children: r }) : null;
|
|
19
10
|
export {
|
|
20
|
-
|
|
11
|
+
m as CaptionNumberField
|
|
21
12
|
};
|
package/dist/index.es28.js
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isHoveredWhenOff: f && !r
|
|
13
|
-
})
|
|
14
|
-
),
|
|
15
|
-
style: {
|
|
16
|
-
left: r ? `${t.onLeft}px` : `${t.offLeft}px`
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
1
|
+
import { j as e } from "./index.es16.js";
|
|
2
|
+
import { UpChevronIcon as n, DownChevronIcon as o } from "./index.es26.js";
|
|
3
|
+
import { Button as s } from "react-aria-components";
|
|
4
|
+
import { cn as c } from "./index.es17.js";
|
|
5
|
+
const x = ({ isDisabled: r }) => {
|
|
6
|
+
const t = c("flex items-center justify-center", r ? "text-neutral-600" : "text-primary-500");
|
|
7
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "absolute inset-y-0 right-0 flex flex-col items-center justify-center space-y-0.5 pr-2", children: [
|
|
8
|
+
/* @__PURE__ */ e.jsx(s, { slot: "increment", className: t, children: /* @__PURE__ */ e.jsx(n, { className: "size-3.5" }) }),
|
|
9
|
+
/* @__PURE__ */ e.jsx(s, { slot: "decrement", className: t, children: /* @__PURE__ */ e.jsx(o, { className: "size-3.5" }) })
|
|
10
|
+
] });
|
|
11
|
+
};
|
|
20
12
|
export {
|
|
21
|
-
|
|
13
|
+
x as StepperButton
|
|
22
14
|
};
|
package/dist/index.es29.js
CHANGED
|
@@ -1,12 +1,133 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const t = [
|
|
3
|
+
{
|
|
4
|
+
intent: "primary",
|
|
5
|
+
isHovered: !0,
|
|
6
|
+
isDisabled: !1,
|
|
7
|
+
isActive: !1,
|
|
8
|
+
class: "bg-primary-100"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
intent: "secondary",
|
|
12
|
+
isHovered: !0,
|
|
13
|
+
isDisabled: !1,
|
|
14
|
+
isActive: !1,
|
|
15
|
+
class: "bg-primary-500 text-primary-50"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
intent: "minimal",
|
|
19
|
+
isHovered: !0,
|
|
20
|
+
isDisabled: !1,
|
|
21
|
+
isActive: !1,
|
|
22
|
+
class: "bg-neutral-200 text-neutral-800"
|
|
23
|
+
}
|
|
24
|
+
], i = [
|
|
25
|
+
{
|
|
26
|
+
intent: "primary",
|
|
27
|
+
isActive: !0,
|
|
28
|
+
isDisabled: !1,
|
|
29
|
+
class: "bg-primary-500 text-primary-50"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
intent: "primary",
|
|
33
|
+
isActive: !0,
|
|
34
|
+
isDisabled: !0,
|
|
35
|
+
class: "bg-primary-300 text-primary-100"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
intent: "secondary",
|
|
39
|
+
isActive: !0,
|
|
40
|
+
isDisabled: !1,
|
|
41
|
+
class: "bg-primary-500 text-primary-50"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
intent: "secondary",
|
|
45
|
+
isActive: !0,
|
|
46
|
+
isDisabled: !0,
|
|
47
|
+
class: "bg-primary-100 text-primary-300"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
intent: "minimal",
|
|
51
|
+
isActive: !0,
|
|
52
|
+
isDisabled: !1,
|
|
53
|
+
class: "text-primary-500"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
intent: "minimal",
|
|
57
|
+
isActive: !0,
|
|
58
|
+
isDisabled: !0,
|
|
59
|
+
class: "text-neutral-700"
|
|
60
|
+
}
|
|
61
|
+
], s = [
|
|
62
|
+
{
|
|
63
|
+
intent: "primary",
|
|
64
|
+
isDisabled: !0,
|
|
65
|
+
isActive: !1,
|
|
66
|
+
class: "text-neutral-600"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
intent: "primary",
|
|
70
|
+
isDisabled: !0,
|
|
71
|
+
isActive: !0,
|
|
72
|
+
class: "bg-primary-300 text-primary-100"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
intent: "secondary",
|
|
76
|
+
isDisabled: !0,
|
|
77
|
+
isActive: !1,
|
|
78
|
+
class: "bg-neutral-400 text-neutral-600"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
intent: "secondary",
|
|
82
|
+
isDisabled: !0,
|
|
83
|
+
isActive: !0,
|
|
84
|
+
class: "bg-primary-100 text-primary-300"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
intent: "minimal",
|
|
88
|
+
isDisabled: !0,
|
|
89
|
+
isActive: !1,
|
|
90
|
+
class: "text-neutral-600"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
intent: "minimal",
|
|
94
|
+
isDisabled: !0,
|
|
95
|
+
isActive: !0,
|
|
96
|
+
class: "text-neutral-700"
|
|
97
|
+
}
|
|
98
|
+
], a = e(
|
|
99
|
+
"inline-flex items-center justify-center border border-transparent transition duration-150 ease-in-out focus:outline-none",
|
|
100
|
+
{
|
|
101
|
+
variants: {
|
|
102
|
+
intent: {
|
|
103
|
+
primary: "bg-transparent text-primary-500",
|
|
104
|
+
secondary: "bg-primary-200 text-primary-500",
|
|
105
|
+
minimal: "bg-transparent text-neutral-700"
|
|
106
|
+
},
|
|
107
|
+
size: {
|
|
108
|
+
xxs: "p-1",
|
|
109
|
+
xs: "p-2",
|
|
110
|
+
sm: "p-2.5",
|
|
111
|
+
md: "p-3",
|
|
112
|
+
lg: "p-4"
|
|
113
|
+
},
|
|
114
|
+
isDisabled: {
|
|
115
|
+
true: "pointer-events-none cursor-not-allowed"
|
|
116
|
+
},
|
|
117
|
+
isHovered: {
|
|
118
|
+
true: ""
|
|
119
|
+
},
|
|
120
|
+
isActive: {
|
|
121
|
+
true: ""
|
|
122
|
+
},
|
|
123
|
+
isFocused: {
|
|
124
|
+
false: "",
|
|
125
|
+
true: "focus:outline-none focus:ring-offset-2 outline-none ring-2 ring-sky-400"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
compoundVariants: [...t, ...i, ...s]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
10
131
|
export {
|
|
11
|
-
|
|
132
|
+
a as buttonVariants
|
|
12
133
|
};
|
package/dist/index.es3.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as r } from "./index.
|
|
1
|
+
import { j as r } from "./index.es16.js";
|
|
2
2
|
import { Button as I } from "react-aria-components";
|
|
3
|
-
import { cn as x } from "./index.
|
|
3
|
+
import { cn as x } from "./index.es17.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { buttonVariants as B } from "./index.
|
|
6
|
-
import "./index.
|
|
5
|
+
import { buttonVariants as B } from "./index.es19.js";
|
|
6
|
+
import "./index.es20.js";
|
|
7
7
|
import "./index.es5.js";
|
|
8
8
|
import "./index.es6.js";
|
|
9
9
|
import { Loader as y } from "./index.es7.js";
|
|
10
|
-
import "./index.es20.js";
|
|
11
10
|
import "./index.es21.js";
|
|
12
|
-
import "./index.
|
|
13
|
-
import "./index.es11.js";
|
|
11
|
+
import "./index.es12.js";
|
|
14
12
|
import "react-aria";
|
|
15
13
|
import "react-stately";
|
|
16
14
|
import "./index.es22.js";
|
|
17
15
|
import "./index.es23.js";
|
|
16
|
+
import "./index.es11.js";
|
|
17
|
+
import "./index.es24.js";
|
|
18
18
|
const j = ({
|
|
19
19
|
renderPosition: t,
|
|
20
20
|
leftIcon: n,
|
package/dist/index.es30.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { j as t } from "./index.es16.js";
|
|
2
|
+
import { cn as c } from "./index.es17.js";
|
|
3
|
+
const i = ({
|
|
4
|
+
label: e,
|
|
5
|
+
description: x,
|
|
6
|
+
errorMessage: s,
|
|
7
|
+
isDisabled: l,
|
|
8
|
+
isInvalid: r,
|
|
9
|
+
children: n,
|
|
10
|
+
renderLabelIcon: m
|
|
11
|
+
}) => !e && !x && !n ? null : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
12
|
+
e ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
13
|
+
/* @__PURE__ */ t.jsx("p", { className: c("text-sm font-semibold", l ? "text-neutral-600" : "text-neutral-900"), children: e }),
|
|
14
|
+
m ? /* @__PURE__ */ t.jsx(t.Fragment, { children: m }) : null
|
|
15
|
+
] }) : n,
|
|
16
|
+
x && !s && /* @__PURE__ */ t.jsx("p", { className: c("text-xs", l ? "text-neutral-600" : "text-neutral-800"), children: x }),
|
|
17
|
+
r && s && /* @__PURE__ */ t.jsx("p", { className: "text-sm text-red-500", children: s })
|
|
18
|
+
] });
|
|
10
19
|
export {
|
|
11
|
-
|
|
20
|
+
i as ContentSwitch
|
|
12
21
|
};
|
package/dist/index.es31.js
CHANGED
|
@@ -1,33 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
vertical: "flex-row"
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}), i = r(
|
|
10
|
-
"group inline-flex cursor-pointer items-center px-4 py-3 text-base font-semibold focus-visible:outline-none",
|
|
1
|
+
import { j as i } from "./index.es16.js";
|
|
2
|
+
import { cn as m } from "./index.es17.js";
|
|
3
|
+
import { indicatorVariants as n } from "./index.es23.js";
|
|
4
|
+
const c = ({ isSelected: r, isDisabled: o, isHovered: f, size: a, dimensions: t }) => /* @__PURE__ */ i.jsx(
|
|
5
|
+
"div",
|
|
11
6
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{ isActive: !0, orientation: "horizontal", class: "border-b-2 border-primary-500" },
|
|
24
|
-
{ isActive: !1, orientation: "horizontal", class: "border-b-2 border-primary-200" },
|
|
25
|
-
{ isActive: !1, orientation: "vertical", class: "border-r-2 border-primary-200" },
|
|
26
|
-
{ isActive: !0, orientation: "vertical", class: "border-r-2 border-primary-500" }
|
|
27
|
-
]
|
|
7
|
+
className: m(
|
|
8
|
+
n({
|
|
9
|
+
isSelected: r,
|
|
10
|
+
isDisabled: o,
|
|
11
|
+
size: a,
|
|
12
|
+
isHoveredWhenOff: f && !r
|
|
13
|
+
})
|
|
14
|
+
),
|
|
15
|
+
style: {
|
|
16
|
+
left: r ? `${t.onLeft}px` : `${t.offLeft}px`
|
|
17
|
+
}
|
|
28
18
|
}
|
|
29
19
|
);
|
|
30
20
|
export {
|
|
31
|
-
|
|
32
|
-
e as tabsVariants
|
|
21
|
+
c as SwitchIndicator
|
|
33
22
|
};
|