reaxify 0.0.23 → 0.0.26
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("../../node_modules/react/jsx-runtime.cjs.js"),e=require("react"),zr=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js"),n=require("../../helpers/cn.cjs.js"),Mr=require("../../hooks/useClasses.cjs.js"),Rr=require("../../hooks/useCreateRipple.cjs.js");require("../Form/index.cjs.js");const Er=require("../ButtonGroup/index.cjs.js"),Nr=require("../Drawer/index.cjs.js"),$r=require("../Modal/index.cjs.js"),Br=require("../Spinner/index.cjs.js");function Dr({as:gr,variant:cr,color:b,size:sr,loading:br,stopPropagation:lr=!1,closeModal:fr=!1,closeDrawer:xr=!1,className:pr,onClick:l,children:mr,...x}){const r=Mr(o=>o.button),i=e.useContext(Er.ButtonGroupContext),yr=e.useContext($r.ModalContext),vr=e.useContext(Nr.DrawerContext),wr=Rr(),hr=gr||"button",p=cr??i.variant??"solid",f=e.useMemo(()=>b!==void 0?b:i.color!==void 0?i.color:"primary",[b,i.color]),g=sr??i.size??"md",c=br??i.loading??!1,u=e.useMemo(()=>{var t,d,a,m,y,v,w,h,k,C,j,q,z,M,R,E,N,$,B,D,G,P,W,A,F,H,I,J,K,L,O,Q,S,T,U,V,X,Y,Z,_,rr,nr,or,tr,er,ir,ur,dr,ar;if(!f)return"border-transparent";const o={primary:{solid:n("bg-primary text-white border-primary focus:ring-primary focus-visible:ring-primary",(d=(t=r==null?void 0:r.color)==null?void 0:t.primary)==null?void 0:d.solid),outline:n("bg-transparent text-primary border-primary focus:ring-primary focus-visible:ring-primary",(m=(a=r==null?void 0:r.color)==null?void 0:a.primary)==null?void 0:m.outline),text:n("bg-transparent text-primary border-transparent focus:ring-primary focus-visible:ring-primary",(v=(y=r==null?void 0:r.color)==null?void 0:y.primary)==null?void 0:v.text)},secondary:{solid:n("bg-secondary text-white border-secondary focus:ring-secondary focus-visible:ring-secondary",(h=(w=r==null?void 0:r.color)==null?void 0:w.secondary)==null?void 0:h.solid),outline:n("bg-transparent text-secondary border-secondary focus:ring-secondary focus-visible:ring-secondary",(C=(k=r==null?void 0:r.color)==null?void 0:k.secondary)==null?void 0:C.outline),text:n("bg-transparent text-secondary border-transparent focus:ring-secondary focus-visible:ring-secondary",(q=(j=r==null?void 0:r.color)==null?void 0:j.secondary)==null?void 0:q.text)},success:{solid:n("bg-success text-white border-success focus:ring-success focus-visible:ring-success",(M=(z=r==null?void 0:r.color)==null?void 0:z.success)==null?void 0:M.solid),outline:n("bg-transparent text-success border-success focus:ring-success focus-visible:ring-success",(E=(R=r==null?void 0:r.color)==null?void 0:R.success)==null?void 0:E.outline),text:n("bg-transparent text-success border-transparent focus:ring-success focus-visible:ring-success",($=(N=r==null?void 0:r.color)==null?void 0:N.success)==null?void 0:$.text)},info:{solid:n("bg-info text-white border-info focus:ring-info focus-visible:ring-info",(D=(B=r==null?void 0:r.color)==null?void 0:B.info)==null?void 0:D.solid),outline:n("bg-transparent text-info border-info focus:ring-info focus-visible:ring-info",(P=(G=r==null?void 0:r.color)==null?void 0:G.info)==null?void 0:P.outline),text:n("bg-transparent text-info border-transparent focus:ring-info focus-visible:ring-info",(A=(W=r==null?void 0:r.color)==null?void 0:W.info)==null?void 0:A.text)},warning:{solid:n("bg-warning text-white border-warning focus:ring-warning focus-visible:ring-warning",(H=(F=r==null?void 0:r.color)==null?void 0:F.warning)==null?void 0:H.solid),outline:n("bg-transparent text-warning border-warning focus:ring-warning focus-visible:ring-warning",(J=(I=r==null?void 0:r.color)==null?void 0:I.warning)==null?void 0:J.outline),text:n("bg-transparent text-warning border-transparent focus:ring-warning focus-visible:ring-warning",(L=(K=r==null?void 0:r.color)==null?void 0:K.warning)==null?void 0:L.text)},danger:{solid:n("bg-danger text-white border-danger focus:ring-danger focus-visible:ring-danger",(Q=(O=r==null?void 0:r.color)==null?void 0:O.danger)==null?void 0:Q.solid),outline:n("bg-transparent text-danger border-danger focus:ring-danger focus-visible:ring-danger",(T=(S=r==null?void 0:r.color)==null?void 0:S.danger)==null?void 0:T.outline),text:n("bg-transparent text-danger border-transparent focus:ring-danger focus-visible:ring-danger",(V=(U=r==null?void 0:r.color)==null?void 0:U.danger)==null?void 0:V.text)},dark:{solid:n("bg-dark text-white border-dark focus:ring-dark focus-visible:ring-dark",(Y=(X=r==null?void 0:r.color)==null?void 0:X.dark)==null?void 0:Y.solid),outline:n("bg-transparent text-dark border-dark focus:ring-dark focus-visible:ring-dark",(_=(Z=r==null?void 0:r.color)==null?void 0:Z.dark)==null?void 0:_.outline),text:n("bg-transparent text-dark border-transparent focus:ring-dark focus-visible:ring-dark",(nr=(rr=r==null?void 0:r.color)==null?void 0:rr.dark)==null?void 0:nr.text)},light:{solid:n("bg-light text-dark border-light focus:ring-light focus-visible:ring-light",(tr=(or=r==null?void 0:r.color)==null?void 0:or.light)==null?void 0:tr.solid),outline:n("bg-transparent text-dark border-light focus:ring-light focus-visible:ring-light",(ir=(er=r==null?void 0:r.color)==null?void 0:er.light)==null?void 0:ir.outline),text:n("bg-transparent text-dark border-transparent focus:ring-light focus-visible:ring-light",(dr=(ur=r==null?void 0:r.color)==null?void 0:ur.light)==null?void 0:dr.text)}};return((ar=o==null?void 0:o[f])==null?void 0:ar[p])??null},[f,p,r==null?void 0:r.color]),kr=e.useMemo(()=>u==null?void 0:u.split(" ").find(o=>o.startsWith("text-")),[u]),Cr=e.useMemo(()=>{var t,d,a;if(!g)return null;const o={sm:n("text-base py-1 px-3.5",(t=r==null?void 0:r.size)==null?void 0:t.sm),md:n("text-base py-1.5 px-4",(d=r==null?void 0:r.size)==null?void 0:d.md),lg:n("text-lg py-2 px-6",(a=r==null?void 0:r.size)==null?void 0:a.lg)};return o==null?void 0:o[g]},[g,r==null?void 0:r.size]),jr=e.useMemo(()=>{var o,t;return c?n("disabled:opacity-100 disabled:cursor-wait disabled:text-transparent",(o=r==null?void 0:r.loading)==null?void 0:o.active):n("disabled:opacity-75 disabled:cursor-not-allowed",(t=r==null?void 0:r.loading)==null?void 0:t.active)},[c,r==null?void 0:r.loading]),qr=o=>{wr(o),fr&&yr.onClose(),xr&&vr.onClose(),lr&&o.stopPropagation(),l==null||l(o)};return s.jsxRuntimeExports.jsxs(hr,{className:zr.twMerge("relative inline-block no-underline whitespace-nowrap font-medium text-center rounded border border-[#e8eaee] cursor-pointer transition-[box-shadow,opacity,color,background-color,border-color]","focus:outline-none focus:ring-2 focus:ring-offset-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",r==null?void 0:r.base,u,Cr,jr,i.buttonClasses,pr),onClick:qr,disabled:x.disabled||c,...x,children:[mr,c&&s.jsxRuntimeExports.jsx("span",{className:"absolute inset-0 size-full flex items-center justify-center bg-transparent p-2",children:s.jsxRuntimeExports.jsx(Br,{size:g,color:null,className:kr})}),s.jsxRuntimeExports.jsx("span",{className:"ripple-group absolute size-full inset-0 overflow-hidden rounded-[inherit] pointer-events-none"})]})}module.exports=Dr;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
1
|
+
import { j as f } from "../../node_modules/react/jsx-runtime.es.js";
|
|
2
|
+
import { useContext as p, useMemo as g } from "react";
|
|
3
3
|
import { twMerge as Mr } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
|
|
4
4
|
import o from "../../helpers/cn.es.js";
|
|
5
5
|
import Rr from "../../hooks/useClasses.es.js";
|
|
@@ -10,181 +10,182 @@ import { DrawerContext as Gr } from "../Drawer/index.es.js";
|
|
|
10
10
|
import { ModalContext as Er } from "../Modal/index.es.js";
|
|
11
11
|
import Pr from "../Spinner/index.es.js";
|
|
12
12
|
function Qr({
|
|
13
|
-
as:
|
|
14
|
-
variant:
|
|
15
|
-
color:
|
|
16
|
-
size:
|
|
17
|
-
loading:
|
|
18
|
-
stopPropagation:
|
|
19
|
-
closeModal:
|
|
13
|
+
as: cr,
|
|
14
|
+
variant: fr,
|
|
15
|
+
color: l,
|
|
16
|
+
size: lr,
|
|
17
|
+
loading: br,
|
|
18
|
+
stopPropagation: sr = !1,
|
|
19
|
+
closeModal: pr = !1,
|
|
20
20
|
closeDrawer: xr = !1,
|
|
21
|
-
className:
|
|
22
|
-
onClick:
|
|
23
|
-
children:
|
|
24
|
-
...
|
|
21
|
+
className: mr,
|
|
22
|
+
onClick: b,
|
|
23
|
+
children: yr,
|
|
24
|
+
...x
|
|
25
25
|
}) {
|
|
26
|
-
const r = Rr((
|
|
27
|
-
var
|
|
28
|
-
if (!
|
|
29
|
-
const
|
|
26
|
+
const r = Rr((n) => n.button), i = p(Dr), vr = p(Er), wr = p(Gr), hr = Br(), kr = cr || "button", m = fr ?? i.variant ?? "solid", s = g(() => l !== void 0 ? l : i.color !== void 0 ? i.color : "primary", [l, i.color]), u = lr ?? i.size ?? "md", c = br ?? i.loading ?? !1, e = g(() => {
|
|
27
|
+
var t, a, d, y, v, w, h, k, C, z, j, N, M, R, B, D, G, E, P, S, W, q, A, F, H, I, J, K, L, O, Q, T, U, V, X, Y, Z, _, $, rr, or, nr, tr, ir, er, ar, dr, gr, ur;
|
|
28
|
+
if (!s) return "border-transparent";
|
|
29
|
+
const n = {
|
|
30
30
|
primary: {
|
|
31
31
|
solid: o(
|
|
32
|
-
"bg-primary text-white border-primary
|
|
33
|
-
(
|
|
32
|
+
"bg-primary text-white border-primary focus:ring-primary focus-visible:ring-primary",
|
|
33
|
+
(a = (t = r == null ? void 0 : r.color) == null ? void 0 : t.primary) == null ? void 0 : a.solid
|
|
34
34
|
),
|
|
35
35
|
outline: o(
|
|
36
|
-
"bg-transparent text-primary border-primary
|
|
37
|
-
(
|
|
36
|
+
"bg-transparent text-primary border-primary focus:ring-primary focus-visible:ring-primary",
|
|
37
|
+
(y = (d = r == null ? void 0 : r.color) == null ? void 0 : d.primary) == null ? void 0 : y.outline
|
|
38
38
|
),
|
|
39
39
|
text: o(
|
|
40
|
-
"bg-transparent text-primary border-transparent
|
|
41
|
-
(
|
|
40
|
+
"bg-transparent text-primary border-transparent focus:ring-primary focus-visible:ring-primary",
|
|
41
|
+
(w = (v = r == null ? void 0 : r.color) == null ? void 0 : v.primary) == null ? void 0 : w.text
|
|
42
42
|
)
|
|
43
43
|
},
|
|
44
44
|
secondary: {
|
|
45
45
|
solid: o(
|
|
46
|
-
"bg-secondary text-white border-secondary
|
|
47
|
-
(k = (
|
|
46
|
+
"bg-secondary text-white border-secondary focus:ring-secondary focus-visible:ring-secondary",
|
|
47
|
+
(k = (h = r == null ? void 0 : r.color) == null ? void 0 : h.secondary) == null ? void 0 : k.solid
|
|
48
48
|
),
|
|
49
49
|
outline: o(
|
|
50
|
-
"bg-transparent text-secondary border-secondary
|
|
50
|
+
"bg-transparent text-secondary border-secondary focus:ring-secondary focus-visible:ring-secondary",
|
|
51
51
|
(z = (C = r == null ? void 0 : r.color) == null ? void 0 : C.secondary) == null ? void 0 : z.outline
|
|
52
52
|
),
|
|
53
53
|
text: o(
|
|
54
|
-
"bg-transparent text-secondary border-transparent
|
|
54
|
+
"bg-transparent text-secondary border-transparent focus:ring-secondary focus-visible:ring-secondary",
|
|
55
55
|
(N = (j = r == null ? void 0 : r.color) == null ? void 0 : j.secondary) == null ? void 0 : N.text
|
|
56
56
|
)
|
|
57
57
|
},
|
|
58
58
|
success: {
|
|
59
59
|
solid: o(
|
|
60
|
-
"bg-success text-white border-success
|
|
60
|
+
"bg-success text-white border-success focus:ring-success focus-visible:ring-success",
|
|
61
61
|
(R = (M = r == null ? void 0 : r.color) == null ? void 0 : M.success) == null ? void 0 : R.solid
|
|
62
62
|
),
|
|
63
63
|
outline: o(
|
|
64
|
-
"bg-transparent text-success border-success
|
|
64
|
+
"bg-transparent text-success border-success focus:ring-success focus-visible:ring-success",
|
|
65
65
|
(D = (B = r == null ? void 0 : r.color) == null ? void 0 : B.success) == null ? void 0 : D.outline
|
|
66
66
|
),
|
|
67
67
|
text: o(
|
|
68
|
-
"bg-transparent text-success border-transparent
|
|
68
|
+
"bg-transparent text-success border-transparent focus:ring-success focus-visible:ring-success",
|
|
69
69
|
(E = (G = r == null ? void 0 : r.color) == null ? void 0 : G.success) == null ? void 0 : E.text
|
|
70
70
|
)
|
|
71
71
|
},
|
|
72
72
|
info: {
|
|
73
73
|
solid: o(
|
|
74
|
-
"bg-info text-white border-info
|
|
74
|
+
"bg-info text-white border-info focus:ring-info focus-visible:ring-info",
|
|
75
75
|
(S = (P = r == null ? void 0 : r.color) == null ? void 0 : P.info) == null ? void 0 : S.solid
|
|
76
76
|
),
|
|
77
77
|
outline: o(
|
|
78
|
-
"bg-transparent text-info border-info
|
|
78
|
+
"bg-transparent text-info border-info focus:ring-info focus-visible:ring-info",
|
|
79
79
|
(q = (W = r == null ? void 0 : r.color) == null ? void 0 : W.info) == null ? void 0 : q.outline
|
|
80
80
|
),
|
|
81
81
|
text: o(
|
|
82
|
-
"bg-transparent text-info border-transparent
|
|
82
|
+
"bg-transparent text-info border-transparent focus:ring-info focus-visible:ring-info",
|
|
83
83
|
(F = (A = r == null ? void 0 : r.color) == null ? void 0 : A.info) == null ? void 0 : F.text
|
|
84
84
|
)
|
|
85
85
|
},
|
|
86
86
|
warning: {
|
|
87
87
|
solid: o(
|
|
88
|
-
"bg-warning text-white border-warning
|
|
88
|
+
"bg-warning text-white border-warning focus:ring-warning focus-visible:ring-warning",
|
|
89
89
|
(I = (H = r == null ? void 0 : r.color) == null ? void 0 : H.warning) == null ? void 0 : I.solid
|
|
90
90
|
),
|
|
91
91
|
outline: o(
|
|
92
|
-
"bg-transparent text-warning border-warning
|
|
92
|
+
"bg-transparent text-warning border-warning focus:ring-warning focus-visible:ring-warning",
|
|
93
93
|
(K = (J = r == null ? void 0 : r.color) == null ? void 0 : J.warning) == null ? void 0 : K.outline
|
|
94
94
|
),
|
|
95
95
|
text: o(
|
|
96
|
-
"bg-transparent text-warning border-transparent
|
|
96
|
+
"bg-transparent text-warning border-transparent focus:ring-warning focus-visible:ring-warning",
|
|
97
97
|
(O = (L = r == null ? void 0 : r.color) == null ? void 0 : L.warning) == null ? void 0 : O.text
|
|
98
98
|
)
|
|
99
99
|
},
|
|
100
100
|
danger: {
|
|
101
101
|
solid: o(
|
|
102
|
-
"bg-danger text-white border-danger
|
|
102
|
+
"bg-danger text-white border-danger focus:ring-danger focus-visible:ring-danger",
|
|
103
103
|
(T = (Q = r == null ? void 0 : r.color) == null ? void 0 : Q.danger) == null ? void 0 : T.solid
|
|
104
104
|
),
|
|
105
105
|
outline: o(
|
|
106
|
-
"bg-transparent text-danger border-danger
|
|
106
|
+
"bg-transparent text-danger border-danger focus:ring-danger focus-visible:ring-danger",
|
|
107
107
|
(V = (U = r == null ? void 0 : r.color) == null ? void 0 : U.danger) == null ? void 0 : V.outline
|
|
108
108
|
),
|
|
109
109
|
text: o(
|
|
110
|
-
"bg-transparent text-danger border-transparent
|
|
110
|
+
"bg-transparent text-danger border-transparent focus:ring-danger focus-visible:ring-danger",
|
|
111
111
|
(Y = (X = r == null ? void 0 : r.color) == null ? void 0 : X.danger) == null ? void 0 : Y.text
|
|
112
112
|
)
|
|
113
113
|
},
|
|
114
114
|
dark: {
|
|
115
115
|
solid: o(
|
|
116
|
-
"bg-dark text-white border-dark
|
|
116
|
+
"bg-dark text-white border-dark focus:ring-dark focus-visible:ring-dark",
|
|
117
117
|
(_ = (Z = r == null ? void 0 : r.color) == null ? void 0 : Z.dark) == null ? void 0 : _.solid
|
|
118
118
|
),
|
|
119
119
|
outline: o(
|
|
120
|
-
"bg-transparent text-dark border-dark
|
|
120
|
+
"bg-transparent text-dark border-dark focus:ring-dark focus-visible:ring-dark",
|
|
121
121
|
(rr = ($ = r == null ? void 0 : r.color) == null ? void 0 : $.dark) == null ? void 0 : rr.outline
|
|
122
122
|
),
|
|
123
123
|
text: o(
|
|
124
|
-
"bg-transparent text-dark border-transparent
|
|
125
|
-
(
|
|
124
|
+
"bg-transparent text-dark border-transparent focus:ring-dark focus-visible:ring-dark",
|
|
125
|
+
(nr = (or = r == null ? void 0 : r.color) == null ? void 0 : or.dark) == null ? void 0 : nr.text
|
|
126
126
|
)
|
|
127
127
|
},
|
|
128
128
|
light: {
|
|
129
129
|
solid: o(
|
|
130
|
-
"bg-light text-dark border-light
|
|
131
|
-
(ir = (
|
|
130
|
+
"bg-light text-dark border-light focus:ring-light focus-visible:ring-light",
|
|
131
|
+
(ir = (tr = r == null ? void 0 : r.color) == null ? void 0 : tr.light) == null ? void 0 : ir.solid
|
|
132
132
|
),
|
|
133
133
|
outline: o(
|
|
134
|
-
"bg-transparent text-dark border-light
|
|
135
|
-
(
|
|
134
|
+
"bg-transparent text-dark border-light focus:ring-light focus-visible:ring-light",
|
|
135
|
+
(ar = (er = r == null ? void 0 : r.color) == null ? void 0 : er.light) == null ? void 0 : ar.outline
|
|
136
136
|
),
|
|
137
137
|
text: o(
|
|
138
|
-
"bg-transparent text-dark border-transparent
|
|
139
|
-
(gr = (
|
|
138
|
+
"bg-transparent text-dark border-transparent focus:ring-light focus-visible:ring-light",
|
|
139
|
+
(gr = (dr = r == null ? void 0 : r.color) == null ? void 0 : dr.light) == null ? void 0 : gr.text
|
|
140
140
|
)
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
return ((ur =
|
|
144
|
-
}, [
|
|
145
|
-
var
|
|
143
|
+
return ((ur = n == null ? void 0 : n[s]) == null ? void 0 : ur[m]) ?? null;
|
|
144
|
+
}, [s, m, r == null ? void 0 : r.color]), Cr = g(() => e == null ? void 0 : e.split(" ").find((n) => n.startsWith("text-")), [e]), zr = g(() => {
|
|
145
|
+
var t, a, d;
|
|
146
146
|
if (!u) return null;
|
|
147
|
-
const
|
|
148
|
-
sm: o("text-base py-1 px-3.5", (
|
|
149
|
-
md: o("text-base py-1.5 px-4", (
|
|
150
|
-
lg: o("text-lg py-2 px-6", (
|
|
147
|
+
const n = {
|
|
148
|
+
sm: o("text-base py-1 px-3.5", (t = r == null ? void 0 : r.size) == null ? void 0 : t.sm),
|
|
149
|
+
md: o("text-base py-1.5 px-4", (a = r == null ? void 0 : r.size) == null ? void 0 : a.md),
|
|
150
|
+
lg: o("text-lg py-2 px-6", (d = r == null ? void 0 : r.size) == null ? void 0 : d.lg)
|
|
151
151
|
};
|
|
152
|
-
return
|
|
152
|
+
return n == null ? void 0 : n[u];
|
|
153
153
|
}, [u, r == null ? void 0 : r.size]), jr = g(() => {
|
|
154
|
-
var
|
|
155
|
-
return
|
|
154
|
+
var n, t;
|
|
155
|
+
return c ? o(
|
|
156
156
|
"disabled:opacity-100 disabled:cursor-wait disabled:text-transparent",
|
|
157
|
-
(
|
|
157
|
+
(n = r == null ? void 0 : r.loading) == null ? void 0 : n.active
|
|
158
158
|
) : o(
|
|
159
159
|
"disabled:opacity-75 disabled:cursor-not-allowed",
|
|
160
|
-
(
|
|
160
|
+
(t = r == null ? void 0 : r.loading) == null ? void 0 : t.active
|
|
161
161
|
);
|
|
162
|
-
}, [
|
|
163
|
-
|
|
162
|
+
}, [c, r == null ? void 0 : r.loading]), Nr = (n) => {
|
|
163
|
+
hr(n), pr && vr.onClose(), xr && wr.onClose(), sr && n.stopPropagation(), b == null || b(n);
|
|
164
164
|
};
|
|
165
|
-
return /* @__PURE__ */
|
|
165
|
+
return /* @__PURE__ */ f.jsxs(
|
|
166
166
|
kr,
|
|
167
167
|
{
|
|
168
168
|
className: Mr(
|
|
169
169
|
"relative inline-block no-underline whitespace-nowrap font-medium text-center rounded border border-[#e8eaee] cursor-pointer transition-[box-shadow,opacity,color,background-color,border-color]",
|
|
170
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
171
|
+
// variant === "solid"
|
|
172
|
+
// ? "shadow hover:shadow-md active:shadow-lg"
|
|
173
|
+
// : "shadow-none",
|
|
173
174
|
// color ? "ring-2 ring-offset-2 ring-transparent" : null,
|
|
174
175
|
r == null ? void 0 : r.base,
|
|
175
176
|
e,
|
|
176
177
|
zr,
|
|
177
178
|
jr,
|
|
178
179
|
i.buttonClasses,
|
|
179
|
-
|
|
180
|
+
mr
|
|
180
181
|
),
|
|
181
182
|
onClick: Nr,
|
|
182
|
-
disabled:
|
|
183
|
-
...
|
|
183
|
+
disabled: x.disabled || c,
|
|
184
|
+
...x,
|
|
184
185
|
children: [
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/* @__PURE__ */
|
|
186
|
+
yr,
|
|
187
|
+
c && /* @__PURE__ */ f.jsx("span", { className: "absolute inset-0 size-full flex items-center justify-center bg-transparent p-2", children: /* @__PURE__ */ f.jsx(Pr, { size: u, color: null, className: Cr }) }),
|
|
188
|
+
/* @__PURE__ */ f.jsx("span", { className: "ripple-group absolute size-full inset-0 overflow-hidden rounded-[inherit] pointer-events-none" })
|
|
188
189
|
]
|
|
189
190
|
}
|
|
190
191
|
);
|