prometeo-design-system 1.6.3 → 1.6.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/Button.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { c as n } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { useAnimationControls as
|
|
5
|
-
const
|
|
3
|
+
import { c as C } from "./index-BOQuZ0gG.js";
|
|
4
|
+
import { useAnimationControls as N, motion as m } from "framer-motion";
|
|
5
|
+
const z = C(
|
|
6
6
|
"flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
@@ -75,7 +75,7 @@ const N = S(
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
function
|
|
78
|
+
function R({
|
|
79
79
|
label: o = "Selene",
|
|
80
80
|
onClick: p,
|
|
81
81
|
icon: l,
|
|
@@ -92,14 +92,15 @@ function B({
|
|
|
92
92
|
children: u,
|
|
93
93
|
Spinner: g,
|
|
94
94
|
className: y,
|
|
95
|
-
|
|
95
|
+
form: h,
|
|
96
|
+
...w
|
|
96
97
|
}) {
|
|
97
|
-
const d =
|
|
98
|
+
const d = N(), j = () => {
|
|
98
99
|
!a || r || e || !s || d.start({ rotate: 90 });
|
|
99
|
-
},
|
|
100
|
+
}, H = () => {
|
|
100
101
|
!a || r || e || !s || d.start({ rotate: 0 });
|
|
101
|
-
},
|
|
102
|
-
|
|
102
|
+
}, S = n(
|
|
103
|
+
z({
|
|
103
104
|
variant: v,
|
|
104
105
|
color: x,
|
|
105
106
|
size: i,
|
|
@@ -111,16 +112,17 @@ function B({
|
|
|
111
112
|
return /* @__PURE__ */ t.jsx(
|
|
112
113
|
m.button,
|
|
113
114
|
{
|
|
115
|
+
form: h,
|
|
114
116
|
onClick: p,
|
|
115
|
-
className:
|
|
117
|
+
className: S,
|
|
116
118
|
whileHover: a && !r && !e ? { scale: 1.05 } : {},
|
|
117
119
|
whileTap: a && !r && !e ? { scale: 0.98 } : {},
|
|
118
120
|
transition: { type: "spring", stiffness: 400, damping: 17 },
|
|
119
|
-
onHoverStart:
|
|
120
|
-
onHoverEnd:
|
|
121
|
+
onHoverStart: j,
|
|
122
|
+
onHoverEnd: H,
|
|
121
123
|
disabled: r || e,
|
|
122
124
|
type: b,
|
|
123
|
-
...
|
|
125
|
+
...w,
|
|
124
126
|
children: e ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
125
127
|
g,
|
|
126
128
|
i !== "small" && /* @__PURE__ */ t.jsx("span", { children: f })
|
|
@@ -143,5 +145,5 @@ function B({
|
|
|
143
145
|
);
|
|
144
146
|
}
|
|
145
147
|
export {
|
|
146
|
-
|
|
148
|
+
R as default
|
|
147
149
|
};
|
package/dist/InputFormik.es.js
CHANGED
|
@@ -60,7 +60,7 @@ const U = ({
|
|
|
60
60
|
{
|
|
61
61
|
htmlFor: x || t.name,
|
|
62
62
|
className: u(
|
|
63
|
-
"absolute transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10",
|
|
63
|
+
"absolute transition-all duration-200 font-bold text-sm ease-in-out pointer-events-none bg-inherit px-1 z-10",
|
|
64
64
|
z(),
|
|
65
65
|
I(),
|
|
66
66
|
b || d ? "text-primary-default-default" : f ? "text-red-500" : "text-neutral-medium-default"
|
|
@@ -22,6 +22,7 @@ export interface ButtonProps extends VariantProps<typeof buttonVariants> {
|
|
|
22
22
|
className?: string;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
variant?: "filled" | "outline" | "text";
|
|
25
|
+
form?: string;
|
|
25
26
|
}
|
|
26
|
-
export default function Button({ label, onClick, icon, contentClassName, loadingText, animate, animateIcon, isLoading, disabled, type, variant, color, size, children, Spinner, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default function Button({ label, onClick, icon, contentClassName, loadingText, animate, animateIcon, isLoading, disabled, type, variant, color, size, children, Spinner, className, form, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
export {};
|