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 o, jsxs as f } from "react/jsx-runtime";
2
- import '../../assets/index14.css';const y = "_callToAction_175rm_1", h = "_primary_175rm_28", u = "_secondary_175rm_50", g = "_link_175rm_76", $ = "_underline_175rm_94", A = "_icon_175rm_121", k = "_content_175rm_125", T = "_iconLeft_175rm_134", x = "_iconRight_175rm_138", n = {
3
- callToAction: y,
4
- primary: h,
5
- secondary: u,
6
- link: g,
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
- icon: A,
9
- content: k,
10
- iconLeft: T,
11
- iconRight: x
12
- }, l = {
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
- underline: n.underline
17
- }, R = {
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 b({
29
+ function E({
22
30
  variant: t = "primary",
23
- icon: r,
31
+ icon: o,
24
32
  iconAlignemnt: a = "right",
25
- useRouter: L = !1,
33
+ useRouter: N = !1,
26
34
  className: i,
27
- children: _,
28
- disabled: m = !1,
29
- ...c
35
+ children: d,
36
+ disabled: _ = !1,
37
+ ...r
30
38
  }) {
31
- const e = /* @__PURE__ */ f("span", { className: `${n.content} ${R[a]}`, children: [
32
- /* @__PURE__ */ o("span", { children: _ }),
33
- r && /* @__PURE__ */ o("span", { className: n.icon, children: r })
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 (c.as == "a") {
36
- const { href: d, target: s, ...p } = c;
37
- return /* @__PURE__ */ o(
43
+ if (r.as == "a") {
44
+ const { href: m, target: l, ...y } = r;
45
+ return /* @__PURE__ */ e(
38
46
  "a",
39
47
  {
40
- href: d,
41
- target: s,
42
- rel: s === "_blank" ? "noopener noreferrer" : void 0,
43
- className: `${i ?? ""} ${n.callToAction} ${l[t]}`,
44
- ...p,
45
- children: e
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__ */ o(
57
+ return /* @__PURE__ */ e(
50
58
  "button",
51
59
  {
52
- className: `${i ?? ""} ${n.callToAction} ${l[t]}`,
53
- disabled: m,
54
- ...c,
55
- children: e
60
+ className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
61
+ disabled: _,
62
+ ...r,
63
+ children: c
56
64
  }
57
65
  );
58
66
  }
59
67
  export {
60
- b as CallToAction
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: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.48",
4
+ "version": "0.0.49",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {