@simpli-route/apollo-ds 0.1.9 → 0.1.10
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.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.cjs21.js +1 -1
- package/dist/index.cjs22.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 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -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.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es10.js +3 -3
- package/dist/index.es11.js +2 -2
- package/dist/index.es12.js +3 -3
- package/dist/index.es13.js +3 -3
- package/dist/index.es14.js +2 -2
- package/dist/index.es15.js +1 -1
- package/dist/index.es16.js +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es18.js +17 -17
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +30 -173
- package/dist/index.es24.js +169 -30
- package/dist/index.es25.js +31 -56
- package/dist/index.es26.js +59 -3
- package/dist/index.es27.js +3 -92
- package/dist/index.es28.js +87 -17
- package/dist/index.es29.js +15 -27
- package/dist/index.es3.js +6 -6
- package/dist/index.es30.js +34 -11
- package/dist/index.es31.js +11 -163
- package/dist/index.es32.js +10 -30
- package/dist/index.es33.js +10 -10
- package/dist/index.es34.js +12 -96
- package/dist/index.es35.js +19 -13
- package/dist/index.es36.js +20 -10
- package/dist/index.es37.js +96 -12
- package/dist/index.es38.js +12 -44
- package/dist/index.es39.js +45 -10
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +8 -8
- package/dist/index.es41.js +10 -31
- package/dist/index.es42.js +31 -19
- package/dist/index.es43.js +161 -18
- package/dist/index.es5.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es9.js +1 -1
- package/package.json +1 -1
package/dist/index.es18.js
CHANGED
|
@@ -3,39 +3,39 @@ import { motion as B } from "framer-motion";
|
|
|
3
3
|
import { ProgressBar as V } from "react-aria-components";
|
|
4
4
|
import "react";
|
|
5
5
|
import { cn as e } from "./index.es20.js";
|
|
6
|
-
import "./index.
|
|
6
|
+
import "./index.es24.js";
|
|
7
7
|
import "./index.es23.js";
|
|
8
8
|
import "react-aria";
|
|
9
|
-
import "./index.
|
|
9
|
+
import "./index.es25.js";
|
|
10
10
|
import "./index.es6.js";
|
|
11
11
|
import { Label as D } from "./index.es7.js";
|
|
12
12
|
import "./index.es9.js";
|
|
13
|
-
import "./index.
|
|
13
|
+
import "./index.es26.js";
|
|
14
14
|
import { Tooltip as I } from "./index.es14.js";
|
|
15
15
|
import { TooltipTrigger as M } from "./index.es15.js";
|
|
16
|
-
import "./index.
|
|
16
|
+
import "./index.es28.js";
|
|
17
17
|
import "./index.es13.js";
|
|
18
18
|
import { Text as d } from "./index.es16.js";
|
|
19
|
-
import "./index.
|
|
20
|
-
import { progressBarVariants as $, progressFillVariants as k } from "./index.
|
|
19
|
+
import "./index.es29.js";
|
|
20
|
+
import { progressBarVariants as $, progressFillVariants as k } from "./index.es30.js";
|
|
21
21
|
const es = (f) => {
|
|
22
22
|
const {
|
|
23
23
|
className: h,
|
|
24
24
|
classNameLabel: N,
|
|
25
|
-
label:
|
|
25
|
+
label: r,
|
|
26
26
|
variant: n = "primary",
|
|
27
27
|
barClassName: u,
|
|
28
28
|
fillClassName: g,
|
|
29
29
|
valueTextClassName: p,
|
|
30
30
|
isLoading: t = !1,
|
|
31
|
-
showPercentage:
|
|
32
|
-
percentageDisplayMode:
|
|
31
|
+
showPercentage: x = !0,
|
|
32
|
+
percentageDisplayMode: l = "text",
|
|
33
33
|
positionTooltip: j = "top",
|
|
34
34
|
modeTooltip: b = "dark",
|
|
35
35
|
maxValue: w = 100,
|
|
36
36
|
minValue: v = 0,
|
|
37
37
|
valueCustomLabel: a,
|
|
38
|
-
valuePosition:
|
|
38
|
+
valuePosition: c = "right",
|
|
39
39
|
classNameTooltip: C,
|
|
40
40
|
tooltipMessage: i,
|
|
41
41
|
...y
|
|
@@ -44,15 +44,15 @@ const es = (f) => {
|
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
className: e("flex w-full items-center gap-2", {
|
|
47
|
-
"items-end":
|
|
47
|
+
"items-end": r
|
|
48
48
|
}),
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ s.jsxs("div", { className: "flex w-full flex-col gap-1", children: [
|
|
51
|
-
|
|
51
|
+
r ? /* @__PURE__ */ s.jsx(D, { labelClassName: e("leading-[19.07px] text-left", N), children: r }) : null,
|
|
52
52
|
/* @__PURE__ */ s.jsxs(
|
|
53
53
|
M,
|
|
54
54
|
{
|
|
55
|
-
isDisabled:
|
|
55
|
+
isDisabled: l === "text" && !i || t,
|
|
56
56
|
className: "items-start",
|
|
57
57
|
delay: 90,
|
|
58
58
|
closeDelay: 200,
|
|
@@ -70,19 +70,19 @@ const es = (f) => {
|
|
|
70
70
|
I,
|
|
71
71
|
{
|
|
72
72
|
className: e("text-xs", C),
|
|
73
|
-
style:
|
|
73
|
+
style: l === "tooltip" ? { left: o + "%" } : {},
|
|
74
74
|
mode: b,
|
|
75
75
|
size: "sm",
|
|
76
76
|
placement: j,
|
|
77
|
-
children: i
|
|
77
|
+
children: i && l === "text" ? i : a || m
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
!t &&
|
|
83
|
+
!t && x && l === "text" && c === "bottom" && /* @__PURE__ */ s.jsx("div", { className: "mt-0.5 self-end", children: /* @__PURE__ */ s.jsx(d, { className: e("whitespace-nowrap text-xs text-neutral-900", p), children: a || m }) })
|
|
84
84
|
] }),
|
|
85
|
-
!t &&
|
|
85
|
+
!t && x && l === "text" && c === "right" && /* @__PURE__ */ s.jsx("div", { className: r ? "-mb-0.5" : "", children: /* @__PURE__ */ s.jsx(d, { className: e("whitespace-nowrap text-xs text-neutral-900", p), children: a || m }) })
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
) });
|
package/dist/index.es21.js
CHANGED
package/dist/index.es22.js
CHANGED
|
@@ -1,175 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
isActive: {
|
|
31
|
-
true: ""
|
|
32
|
-
},
|
|
33
|
-
fullWidth: {
|
|
34
|
-
true: "w-full",
|
|
35
|
-
false: "w-fit"
|
|
36
|
-
},
|
|
37
|
-
isLoading: {
|
|
38
|
-
true: "pointer-events-none cursor-not-allowed opacity-70"
|
|
39
|
-
},
|
|
40
|
-
isFocused: {
|
|
41
|
-
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
|
|
42
|
-
false: ""
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
defaultVariants: {
|
|
46
|
-
intent: "primary",
|
|
47
|
-
size: "md"
|
|
48
|
-
},
|
|
49
|
-
compoundVariants: [
|
|
50
|
-
/* Hover State */
|
|
51
|
-
{
|
|
52
|
-
intent: "primary",
|
|
53
|
-
isHovered: !0,
|
|
54
|
-
class: "bg-primary-700"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
intent: "secondary",
|
|
58
|
-
isHovered: !0,
|
|
59
|
-
class: "bg-primary-200"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
intent: "tertiary",
|
|
63
|
-
isHovered: !0,
|
|
64
|
-
class: "bg-primary-300 text-primary-800"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
intent: "outline",
|
|
68
|
-
isHovered: !0,
|
|
69
|
-
class: "bg-primary-500 text-primary-50"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
intent: "success",
|
|
73
|
-
isHovered: !0,
|
|
74
|
-
class: "bg-success-700 text-neutral-50"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
intent: "error",
|
|
78
|
-
isHovered: !0,
|
|
79
|
-
class: "bg-error-700 text-error-50"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
intent: "orangeWarning",
|
|
83
|
-
isHovered: !0,
|
|
84
|
-
class: "bg-orange-warning-700 text-orange-warning-50"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
intent: "yellowWarning",
|
|
88
|
-
isHovered: !0,
|
|
89
|
-
class: "bg-yellow-warning-700 text-neutral-50"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
intent: "info",
|
|
93
|
-
isHovered: !0,
|
|
94
|
-
class: "bg-blue-700 text-blue-50"
|
|
95
|
-
},
|
|
96
|
-
/* /Focus State */
|
|
97
|
-
{
|
|
98
|
-
intent: "success",
|
|
99
|
-
isFocused: !0,
|
|
100
|
-
class: "border-[1.5px] focus:ring-success-500"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
intent: "error",
|
|
104
|
-
isFocused: !0,
|
|
105
|
-
class: "border-[1.5px] focus:ring-error-500"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
intent: "orangeWarning",
|
|
109
|
-
isFocused: !0,
|
|
110
|
-
class: "border-[1.5px] focus:ring-orange-500"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
intent: "yellowWarning",
|
|
114
|
-
isFocused: !0,
|
|
115
|
-
class: "border-[1.5px] focus:ring-yellow-500"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
intent: "info",
|
|
119
|
-
isFocused: !0,
|
|
120
|
-
class: "border-[1.5px] focus:ring-blue-500"
|
|
121
|
-
},
|
|
122
|
-
/* Active State */
|
|
123
|
-
{
|
|
124
|
-
intent: "primary",
|
|
125
|
-
isActive: !0,
|
|
126
|
-
class: "bg-primary-900"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
intent: "secondary",
|
|
130
|
-
isActive: !0,
|
|
131
|
-
class: "bg-primary-300"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
intent: "tertiary",
|
|
135
|
-
isActive: !0,
|
|
136
|
-
class: "bg-primary-500 text-white"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
intent: "outline",
|
|
140
|
-
isActive: !0,
|
|
141
|
-
class: "border border-primary-500 bg-primary-300 text-primary-500"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
intent: "success",
|
|
145
|
-
isActive: !0,
|
|
146
|
-
class: "border border-transparent bg-success-300 text-success-900"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
intent: "error",
|
|
150
|
-
isActive: !0,
|
|
151
|
-
class: "border border-transparent bg-error-300 text-error-900"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
intent: "orangeWarning",
|
|
155
|
-
isActive: !0,
|
|
156
|
-
class: "border border-transparent bg-orange-warning-300 text-orange-warning-900"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
intent: "yellowWarning",
|
|
160
|
-
isActive: !0,
|
|
161
|
-
class: "border border-transparent bg-yellow-warning-300 text-[#6F5711]"
|
|
162
|
-
//TODO: Este color yellow-warning-900 esta mal en @simpli-route/tailwind-preset, debe borrarse la 'h' al final del color
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
intent: "info",
|
|
166
|
-
isActive: !0,
|
|
167
|
-
class: "border border-transparent bg-blue-200 text-blue-900"
|
|
168
|
-
}
|
|
169
|
-
/* /Active State */
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
);
|
|
1
|
+
import { j as e } from "./index.es19.js";
|
|
2
|
+
import { cn as l } from "./index.es20.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
|
+
};
|
|
173
30
|
export {
|
|
174
|
-
|
|
31
|
+
m as MarkIcon
|
|
175
32
|
};
|
package/dist/index.es24.js
CHANGED
|
@@ -1,36 +1,175 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const t = r(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
const t = r(
|
|
3
|
+
"inline-flex select-none items-center justify-center text-center text-base font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
intent: {
|
|
7
|
+
primary: "bg-primary-500 text-primary-50",
|
|
8
|
+
secondary: "border border-primary-500 bg-primary-50 text-primary-500",
|
|
9
|
+
tertiary: "text-primary-500",
|
|
10
|
+
outline: "border border-primary-500 text-primary-500",
|
|
11
|
+
success: "border bg-success-500 text-success-50",
|
|
12
|
+
error: "border bg-error-500 text-error-50",
|
|
13
|
+
orangeWarning: "border bg-orange-warning-500 text-orange-warning-50",
|
|
14
|
+
yellowWarning: "border bg-yellow-warning-500 text-[#6F5711]",
|
|
15
|
+
//TODO: Este color yellow-warning-900 esta mal en @simpli-route/tailwind-preset, debe borrarse la 'h' al final del color
|
|
16
|
+
info: "border bg-blue-500 text-blue-50"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
xs: "rounded px-3 py-1",
|
|
20
|
+
sm: "rounded px-3 py-2",
|
|
21
|
+
md: "rounded-lg px-4 py-3",
|
|
22
|
+
lg: "rounded-lg px-6 py-4"
|
|
23
|
+
},
|
|
24
|
+
isDisabled: {
|
|
25
|
+
true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
|
|
26
|
+
},
|
|
27
|
+
isHovered: {
|
|
28
|
+
true: ""
|
|
29
|
+
},
|
|
30
|
+
isActive: {
|
|
31
|
+
true: ""
|
|
32
|
+
},
|
|
33
|
+
fullWidth: {
|
|
34
|
+
true: "w-full",
|
|
35
|
+
false: "w-fit"
|
|
36
|
+
},
|
|
37
|
+
isLoading: {
|
|
38
|
+
true: "pointer-events-none cursor-not-allowed opacity-70"
|
|
39
|
+
},
|
|
40
|
+
isFocused: {
|
|
41
|
+
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
|
|
42
|
+
false: ""
|
|
43
|
+
}
|
|
7
44
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"[&_svg]:w-[10px] [&_svg]:h-[10px]"
|
|
12
|
-
],
|
|
13
|
-
sm: ["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-xs", "[&_svg]:w-3 [&_svg]:h-3"],
|
|
14
|
-
md: ["gap-1 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"],
|
|
15
|
-
lg: ["gap-2 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"]
|
|
45
|
+
defaultVariants: {
|
|
46
|
+
intent: "primary",
|
|
47
|
+
size: "md"
|
|
16
48
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
49
|
+
compoundVariants: [
|
|
50
|
+
/* Hover State */
|
|
51
|
+
{
|
|
52
|
+
intent: "primary",
|
|
53
|
+
isHovered: !0,
|
|
54
|
+
class: "bg-primary-700"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
intent: "secondary",
|
|
58
|
+
isHovered: !0,
|
|
59
|
+
class: "bg-primary-200"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
intent: "tertiary",
|
|
63
|
+
isHovered: !0,
|
|
64
|
+
class: "bg-primary-300 text-primary-800"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
intent: "outline",
|
|
68
|
+
isHovered: !0,
|
|
69
|
+
class: "bg-primary-500 text-primary-50"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
intent: "success",
|
|
73
|
+
isHovered: !0,
|
|
74
|
+
class: "bg-success-700 text-neutral-50"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
intent: "error",
|
|
78
|
+
isHovered: !0,
|
|
79
|
+
class: "bg-error-700 text-error-50"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
intent: "orangeWarning",
|
|
83
|
+
isHovered: !0,
|
|
84
|
+
class: "bg-orange-warning-700 text-orange-warning-50"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
intent: "yellowWarning",
|
|
88
|
+
isHovered: !0,
|
|
89
|
+
class: "bg-yellow-warning-700 text-neutral-50"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
intent: "info",
|
|
93
|
+
isHovered: !0,
|
|
94
|
+
class: "bg-blue-700 text-blue-50"
|
|
95
|
+
},
|
|
96
|
+
/* /Focus State */
|
|
97
|
+
{
|
|
98
|
+
intent: "success",
|
|
99
|
+
isFocused: !0,
|
|
100
|
+
class: "border-[1.5px] focus:ring-success-500"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
intent: "error",
|
|
104
|
+
isFocused: !0,
|
|
105
|
+
class: "border-[1.5px] focus:ring-error-500"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
intent: "orangeWarning",
|
|
109
|
+
isFocused: !0,
|
|
110
|
+
class: "border-[1.5px] focus:ring-orange-500"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
intent: "yellowWarning",
|
|
114
|
+
isFocused: !0,
|
|
115
|
+
class: "border-[1.5px] focus:ring-yellow-500"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
intent: "info",
|
|
119
|
+
isFocused: !0,
|
|
120
|
+
class: "border-[1.5px] focus:ring-blue-500"
|
|
121
|
+
},
|
|
122
|
+
/* Active State */
|
|
123
|
+
{
|
|
124
|
+
intent: "primary",
|
|
125
|
+
isActive: !0,
|
|
126
|
+
class: "bg-primary-900"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
intent: "secondary",
|
|
130
|
+
isActive: !0,
|
|
131
|
+
class: "bg-primary-300"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
intent: "tertiary",
|
|
135
|
+
isActive: !0,
|
|
136
|
+
class: "bg-primary-500 text-white"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
intent: "outline",
|
|
140
|
+
isActive: !0,
|
|
141
|
+
class: "border border-primary-500 bg-primary-300 text-primary-500"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
intent: "success",
|
|
145
|
+
isActive: !0,
|
|
146
|
+
class: "border border-transparent bg-success-300 text-success-900"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
intent: "error",
|
|
150
|
+
isActive: !0,
|
|
151
|
+
class: "border border-transparent bg-error-300 text-error-900"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
intent: "orangeWarning",
|
|
155
|
+
isActive: !0,
|
|
156
|
+
class: "border border-transparent bg-orange-warning-300 text-orange-warning-900"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
intent: "yellowWarning",
|
|
160
|
+
isActive: !0,
|
|
161
|
+
class: "border border-transparent bg-yellow-warning-300 text-[#6F5711]"
|
|
162
|
+
//TODO: Este color yellow-warning-900 esta mal en @simpli-route/tailwind-preset, debe borrarse la 'h' al final del color
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
intent: "info",
|
|
166
|
+
isActive: !0,
|
|
167
|
+
class: "border border-transparent bg-blue-200 text-blue-900"
|
|
168
|
+
}
|
|
169
|
+
/* /Active State */
|
|
170
|
+
]
|
|
32
171
|
}
|
|
33
|
-
|
|
172
|
+
);
|
|
34
173
|
export {
|
|
35
|
-
t as
|
|
174
|
+
t as buttonVariants
|
|
36
175
|
};
|
package/dist/index.es25.js
CHANGED
|
@@ -1,61 +1,36 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
xs: "py-1",
|
|
8
|
-
sm: "py-2",
|
|
9
|
-
md: "py-3",
|
|
10
|
-
lg: "py-4"
|
|
11
|
-
},
|
|
12
|
-
isHovered: {
|
|
13
|
-
true: ""
|
|
14
|
-
},
|
|
15
|
-
isFocused: {
|
|
16
|
-
true: ""
|
|
17
|
-
},
|
|
18
|
-
isDisabled: {
|
|
19
|
-
true: "border border-neutral-200 bg-neutral-200 cursor-not-allowed text-neutral-700",
|
|
20
|
-
false: "bg-neutral-50"
|
|
21
|
-
},
|
|
22
|
-
isReadOnly: {
|
|
23
|
-
true: "cursor-not-allowed"
|
|
24
|
-
},
|
|
25
|
-
validationState: {
|
|
26
|
-
default: "",
|
|
27
|
-
valid: "border border-success-500",
|
|
28
|
-
invalid: "border border-error-500"
|
|
29
|
-
}
|
|
2
|
+
const t = r("bg-primary-50 inline-flex items-center select-none border border-transparent", {
|
|
3
|
+
variants: {
|
|
4
|
+
style: {
|
|
5
|
+
square: "rounded-md",
|
|
6
|
+
rounded: "rounded-full"
|
|
30
7
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
]
|
|
8
|
+
size: {
|
|
9
|
+
xs: [
|
|
10
|
+
"gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-[10px]",
|
|
11
|
+
"[&_svg]:w-[10px] [&_svg]:h-[10px]"
|
|
12
|
+
],
|
|
13
|
+
sm: ["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-xs", "[&_svg]:w-3 [&_svg]:h-3"],
|
|
14
|
+
md: ["gap-1 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"],
|
|
15
|
+
lg: ["gap-2 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"]
|
|
16
|
+
},
|
|
17
|
+
pressable: {
|
|
18
|
+
true: "cursor-pointer"
|
|
19
|
+
},
|
|
20
|
+
isFocused: {
|
|
21
|
+
true: "border-primary-500"
|
|
22
|
+
},
|
|
23
|
+
isHovered: {
|
|
24
|
+
true: "border-primary-300"
|
|
25
|
+
},
|
|
26
|
+
isPressed: {
|
|
27
|
+
true: "bg-primary-200"
|
|
28
|
+
},
|
|
29
|
+
isDisabled: {
|
|
30
|
+
true: "bg-neutral-50 text-neutral-600 [&_svg]:text-neutral-600 cursor-not-allowed"
|
|
31
|
+
}
|
|
57
32
|
}
|
|
58
|
-
);
|
|
33
|
+
});
|
|
59
34
|
export {
|
|
60
|
-
|
|
35
|
+
t as assistChipVariants
|
|
61
36
|
};
|
package/dist/index.es26.js
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const o = r(
|
|
3
|
+
"box-border w-full rounded border border-neutral-500 px-3 placeholder:text-neutral-700 focus:outline-none",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
xs: "py-1",
|
|
8
|
+
sm: "py-2",
|
|
9
|
+
md: "py-3",
|
|
10
|
+
lg: "py-4"
|
|
11
|
+
},
|
|
12
|
+
isHovered: {
|
|
13
|
+
true: ""
|
|
14
|
+
},
|
|
15
|
+
isFocused: {
|
|
16
|
+
true: ""
|
|
17
|
+
},
|
|
18
|
+
isDisabled: {
|
|
19
|
+
true: "border border-neutral-200 bg-neutral-200 cursor-not-allowed text-neutral-700",
|
|
20
|
+
false: "bg-neutral-50"
|
|
21
|
+
},
|
|
22
|
+
isReadOnly: {
|
|
23
|
+
true: "cursor-not-allowed"
|
|
24
|
+
},
|
|
25
|
+
validationState: {
|
|
26
|
+
default: "",
|
|
27
|
+
valid: "border border-success-500",
|
|
28
|
+
invalid: "border border-error-500"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
compoundVariants: [
|
|
32
|
+
{
|
|
33
|
+
isHovered: !0,
|
|
34
|
+
isDisabled: !1,
|
|
35
|
+
validationState: "default",
|
|
36
|
+
class: "border border-neutral-900"
|
|
37
|
+
},
|
|
38
|
+
// default focus
|
|
39
|
+
{
|
|
40
|
+
isFocused: !0,
|
|
41
|
+
isDisabled: !1,
|
|
42
|
+
class: "border-2 focus-within:border-primary-500 focus-within:ring-1 focus-within:ring-primary-500 focus:border-primary-500 focus:ring-1 focus:ring-primary-500"
|
|
43
|
+
},
|
|
44
|
+
// success focused
|
|
45
|
+
{
|
|
46
|
+
validationState: "valid",
|
|
47
|
+
isFocused: !0,
|
|
48
|
+
class: "border-2 border-success-500 focus-within:ring-1 focus-within:ring-success-500 focus:border-success-500 focus:ring-1 focus:ring-success-500"
|
|
49
|
+
},
|
|
50
|
+
// error focused
|
|
51
|
+
{
|
|
52
|
+
validationState: "invalid",
|
|
53
|
+
isFocused: !0,
|
|
54
|
+
class: "border-2 border-error-500 focus-within:ring-1 focus-within:ring-error-500 focus:border-error-500 focus:ring-1 focus:ring-error-500"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
);
|
|
3
59
|
export {
|
|
4
|
-
|
|
60
|
+
o as inputNumberVariant
|
|
5
61
|
};
|