quirk-ui 0.0.48 → 0.0.49
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,61 +1,69 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/index14.css';const
|
|
3
|
-
callToAction:
|
|
4
|
-
primary:
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as e, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index14.css';const I = "_callToAction_175rm_1", p = "_primary_175rm_28", u = "_primaryInverted_175rm_38", f = "_secondary_175rm_50", h = "_secondaryInverted_175rm_63", k = "_link_175rm_76", g = "_linkInverted_175rm_85", $ = "_underline_175rm_94", A = "_underlineInverted_175rm_103", T = "_icon_175rm_121", x = "_content_175rm_125", R = "_iconLeft_175rm_134", L = "_iconRight_175rm_138", n = {
|
|
3
|
+
callToAction: I,
|
|
4
|
+
primary: p,
|
|
5
|
+
primaryInverted: u,
|
|
6
|
+
secondary: f,
|
|
7
|
+
secondaryInverted: h,
|
|
8
|
+
link: k,
|
|
9
|
+
linkInverted: g,
|
|
7
10
|
underline: $,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
underlineInverted: A,
|
|
12
|
+
icon: T,
|
|
13
|
+
content: x,
|
|
14
|
+
iconLeft: R,
|
|
15
|
+
iconRight: L
|
|
16
|
+
}, s = {
|
|
13
17
|
primary: n.primary,
|
|
18
|
+
primaryInverted: n.primaryInverted,
|
|
14
19
|
secondary: n.secondary,
|
|
20
|
+
secondaryInverted: n.secondaryInverted,
|
|
15
21
|
link: n.link,
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
linkInverted: n.linkInverted,
|
|
23
|
+
underline: n.underline,
|
|
24
|
+
underlineInverted: n.underlineInverted
|
|
25
|
+
}, C = {
|
|
18
26
|
left: n.iconLeft,
|
|
19
27
|
right: n.iconRight
|
|
20
28
|
};
|
|
21
|
-
function
|
|
29
|
+
function E({
|
|
22
30
|
variant: t = "primary",
|
|
23
|
-
icon:
|
|
31
|
+
icon: o,
|
|
24
32
|
iconAlignemnt: a = "right",
|
|
25
|
-
useRouter:
|
|
33
|
+
useRouter: N = !1,
|
|
26
34
|
className: i,
|
|
27
|
-
children:
|
|
28
|
-
disabled:
|
|
29
|
-
...
|
|
35
|
+
children: d,
|
|
36
|
+
disabled: _ = !1,
|
|
37
|
+
...r
|
|
30
38
|
}) {
|
|
31
|
-
const
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
39
|
+
const c = /* @__PURE__ */ v("span", { className: `${n.content} ${C[a]}`, children: [
|
|
40
|
+
/* @__PURE__ */ e("span", { children: d }),
|
|
41
|
+
o && /* @__PURE__ */ e("span", { className: n.icon, children: o })
|
|
34
42
|
] });
|
|
35
|
-
if (
|
|
36
|
-
const { href:
|
|
37
|
-
return /* @__PURE__ */
|
|
43
|
+
if (r.as == "a") {
|
|
44
|
+
const { href: m, target: l, ...y } = r;
|
|
45
|
+
return /* @__PURE__ */ e(
|
|
38
46
|
"a",
|
|
39
47
|
{
|
|
40
|
-
href:
|
|
41
|
-
target:
|
|
42
|
-
rel:
|
|
43
|
-
className: `${i ?? ""} ${n.callToAction} ${
|
|
44
|
-
...
|
|
45
|
-
children:
|
|
48
|
+
href: m,
|
|
49
|
+
target: l,
|
|
50
|
+
rel: l === "_blank" ? "noopener noreferrer" : void 0,
|
|
51
|
+
className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
|
|
52
|
+
...y,
|
|
53
|
+
children: c
|
|
46
54
|
}
|
|
47
55
|
);
|
|
48
56
|
}
|
|
49
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ e(
|
|
50
58
|
"button",
|
|
51
59
|
{
|
|
52
|
-
className: `${i ?? ""} ${n.callToAction} ${
|
|
53
|
-
disabled:
|
|
54
|
-
...
|
|
55
|
-
children:
|
|
60
|
+
className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
|
|
61
|
+
disabled: _,
|
|
62
|
+
...r,
|
|
63
|
+
children: c
|
|
56
64
|
}
|
|
57
65
|
);
|
|
58
66
|
}
|
|
59
67
|
export {
|
|
60
|
-
|
|
68
|
+
E as CallToAction
|
|
61
69
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
declare const variantClassMap: {
|
|
3
3
|
readonly primary: any;
|
|
4
|
+
readonly primaryInverted: any;
|
|
4
5
|
readonly secondary: any;
|
|
6
|
+
readonly secondaryInverted: any;
|
|
5
7
|
readonly link: any;
|
|
8
|
+
readonly linkInverted: any;
|
|
6
9
|
readonly underline: any;
|
|
10
|
+
readonly underlineInverted: any;
|
|
7
11
|
};
|
|
8
12
|
type Variant = keyof typeof variantClassMap;
|
|
9
13
|
declare const iconAlignClassMap: {
|