Comparing version 0.0.1 to 0.0.2
34
index.js
import m from "react"; | ||
const d = "_kbutton_o1yzy_3", l = "_primary_o1yzy_18", z = "_destructive_o1yzy_34", v = "_secondary_o1yzy_49", b = "_tertiary_o1yzy_68", $ = "_inverse_o1yzy_88", p = "_large_o1yzy_103", k = "_icon_o1yzy_108", g = "_medium_o1yzy_111", f = "_small_o1yzy_119", t = { | ||
const d = "_kbutton_1yzq7_2", l = "_primary_1yzq7_17", q = "_destructive_1yzq7_33", z = "_secondary_1yzq7_48", v = "_tertiary_1yzq7_67", b = "_inverse_1yzq7_87", $ = "_large_1yzq7_102", p = "_icon_1yzq7_107", k = "_medium_1yzq7_110", g = "_small_1yzq7_118", t = { | ||
kbutton: d, | ||
primary: l, | ||
destructive: z, | ||
secondary: v, | ||
tertiary: b, | ||
inverse: $, | ||
large: p, | ||
icon: k, | ||
medium: g, | ||
small: f | ||
}, B = ({ content: e, variant: n = "secondary", size: r = "medium", className: o, inverse: y, destructive: _ = !1, icon: s, ariaLabel: c, disabled: i, onClick: a }) => { | ||
destructive: q, | ||
secondary: z, | ||
tertiary: v, | ||
inverse: b, | ||
large: $, | ||
icon: p, | ||
medium: k, | ||
small: g | ||
}, x = ({ content: n, variant: r = "secondary", size: o = "medium", className: e, inverse: _, destructive: s = !1, icon: c, ariaLabel: i, disabled: y, onClick: a }) => { | ||
const u = ` | ||
${t.kbutton} | ||
${t[n]} | ||
${t[r]} | ||
${y && t.inverse} | ||
${_ && t.destructive} | ||
${o != null ? o : ""} | ||
${s && t.icon} | ||
${t[o]} | ||
${_ && t.inverse} | ||
${s && t.destructive} | ||
${e != null ? e : ""} | ||
${c && t.icon} | ||
`; | ||
return m.createElement("button", { disabled: i, "aria-label": c, className: u, onClick: a }, e); | ||
return m.createElement("button", { disabled: y, "aria-label": i, className: u, onClick: a }, n); | ||
}; | ||
export { | ||
B as Button | ||
x as Button | ||
}; |
{ | ||
"name": "kzkzkz", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18554