quirk-ui 0.0.49 → 0.0.51

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
- ._callToAction_175rm_1{display:inline-flex;text-decoration:none;border-radius:var(--radius-md);border:2px solid transparent;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-weight:var(--font-weight-bold);font-family:inherit;background-color:var(--color-primary);cursor:pointer;transition:background-color .25s,border-color .25s;height:40px}._callToAction_175rm_1:focus,._callToAction_175rm_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_175rm_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_175rm_28{background-color:var(--color-primary);color:#fff}._primary_175rm_28:hover{background-color:var(--color-secondary);color:#fff}._primaryInverted_175rm_38{border-color:var(--color-primary);background-color:#fff;color:var(--color-primary)}._primaryInverted_175rm_38:hover{border-color:var(--color-secondary);background-color:var(--color-secondary);color:var(--color-primary)}._secondary_175rm_50{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._secondary_175rm_50:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._secondaryInverted_175rm_63{background-color:transparent;border-color:#fff;border-width:2px;color:#fff}._secondaryInverted_175rm_63:hover{border-color:#fff;background-color:#fff;color:var(--color-primary)}._link_175rm_76{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._linkInverted_175rm_85{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_175rm_94{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._underlineInverted_175rm_103{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._muted_175rm_112{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._icon_175rm_121{display:inline-flex}._content_175rm_125{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_175rm_134{flex-direction:row-reverse}._iconRight_175rm_138{flex-direction:row}
1
+ ._callToAction_1tdql_1{display:inline-flex;text-decoration:none;border-radius:var(--radius-md);border:2px solid transparent;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-weight:var(--font-weight-bold);font-family:inherit;background-color:var(--color-primary);cursor:pointer;transition:background-color .25s,border-color .25s;height:40px}._callToAction_1tdql_1:focus,._callToAction_1tdql_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_1tdql_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_1tdql_28{background-color:var(--color-primary);color:#fff}._primary_1tdql_28:hover{background-color:var(--color-secondary);color:#fff}._primaryInverted_1tdql_38{border-color:#fff;background-color:#fff;color:var(--color-primary)}._primaryInverted_1tdql_38:hover{border-color:var(--color-secondary);background-color:var(--color-secondary);color:var(--color-primary)}._secondary_1tdql_50{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._secondary_1tdql_50:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._secondaryInverted_1tdql_63{background-color:transparent;border-color:#fff;border-width:2px;color:#fff}._secondaryInverted_1tdql_63:hover{border-color:#fff;background-color:#fff;color:var(--color-primary)}._link_1tdql_76{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._linkInverted_1tdql_85{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_1tdql_94{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._underlineInverted_1tdql_103{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._muted_1tdql_112{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._icon_1tdql_121{display:inline-flex}._content_1tdql_125{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_1tdql_134{flex-direction:row-reverse}._iconRight_1tdql_138{flex-direction:row}
@@ -1,19 +1,19 @@
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,
1
+ import { jsx as e, jsxs as I } from "react/jsx-runtime";
2
+ import '../../assets/index14.css';const p = "_callToAction_1tdql_1", m = "_primary_1tdql_28", u = "_primaryInverted_1tdql_38", q = "_secondary_1tdql_50", f = "_secondaryInverted_1tdql_63", h = "_link_1tdql_76", k = "_linkInverted_1tdql_85", g = "_underline_1tdql_94", $ = "_underlineInverted_1tdql_103", A = "_icon_1tdql_121", T = "_content_1tdql_125", x = "_iconLeft_1tdql_134", R = "_iconRight_1tdql_138", n = {
3
+ callToAction: p,
4
+ primary: m,
5
5
  primaryInverted: u,
6
- secondary: f,
7
- secondaryInverted: h,
8
- link: k,
9
- linkInverted: g,
10
- underline: $,
11
- underlineInverted: A,
12
- icon: T,
13
- content: x,
14
- iconLeft: R,
15
- iconRight: L
16
- }, s = {
6
+ secondary: q,
7
+ secondaryInverted: f,
8
+ link: h,
9
+ linkInverted: k,
10
+ underline: g,
11
+ underlineInverted: $,
12
+ icon: A,
13
+ content: T,
14
+ iconLeft: x,
15
+ iconRight: R
16
+ }, d = {
17
17
  primary: n.primary,
18
18
  primaryInverted: n.primaryInverted,
19
19
  secondary: n.secondary,
@@ -22,34 +22,34 @@ import '../../assets/index14.css';const I = "_callToAction_175rm_1", p = "_prima
22
22
  linkInverted: n.linkInverted,
23
23
  underline: n.underline,
24
24
  underlineInverted: n.underlineInverted
25
- }, C = {
25
+ }, L = {
26
26
  left: n.iconLeft,
27
27
  right: n.iconRight
28
28
  };
29
- function E({
30
- variant: t = "primary",
29
+ function j({
30
+ variant: r = "primary",
31
31
  icon: o,
32
- iconAlignemnt: a = "right",
33
- useRouter: N = !1,
32
+ iconAlignemnt: s = "right",
33
+ useRouter: C = !1,
34
34
  className: i,
35
- children: d,
35
+ children: a,
36
36
  disabled: _ = !1,
37
- ...r
37
+ ...t
38
38
  }) {
39
- const c = /* @__PURE__ */ v("span", { className: `${n.content} ${C[a]}`, children: [
40
- /* @__PURE__ */ e("span", { children: d }),
39
+ const c = /* @__PURE__ */ I("span", { className: `${n.content} ${L[s]}`, children: [
40
+ /* @__PURE__ */ e("span", { children: a }),
41
41
  o && /* @__PURE__ */ e("span", { className: n.icon, children: o })
42
42
  ] });
43
- if (r.as == "a") {
44
- const { href: m, target: l, ...y } = r;
43
+ if (t.as == "a") {
44
+ const { href: y, target: l, ...v } = t;
45
45
  return /* @__PURE__ */ e(
46
46
  "a",
47
47
  {
48
- href: m,
48
+ href: y,
49
49
  target: l,
50
50
  rel: l === "_blank" ? "noopener noreferrer" : void 0,
51
- className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
52
- ...y,
51
+ className: `${i ?? ""} ${n.callToAction} ${d[r]}`,
52
+ ...v,
53
53
  children: c
54
54
  }
55
55
  );
@@ -57,13 +57,13 @@ function E({
57
57
  return /* @__PURE__ */ e(
58
58
  "button",
59
59
  {
60
- className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
60
+ className: `${i ?? ""} ${n.callToAction} ${d[r]}`,
61
61
  disabled: _,
62
- ...r,
62
+ ...t,
63
63
  children: c
64
64
  }
65
65
  );
66
66
  }
67
67
  export {
68
- E as CallToAction
68
+ j as CallToAction
69
69
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, jsx as s } from "react/jsx-runtime";
2
- import { d as a, a as i, i as o, r as n, g as l, s as c } from "../../vi.ClIskdbk-CZ8iFAMK.js";
2
+ import { d as i, a, i as o, r as n, g as l, s as c } from "../../vi.ClIskdbk-CZ8iFAMK.js";
3
3
  import { Carousel as d } from "./index.js";
4
4
  import "../../index-BBIdMcpm.js";
5
- a("Carousel", () => {
5
+ i("Carousel", () => {
6
6
  const r = Array.from({ length: 6 }, (m, e) => /* @__PURE__ */ t("div", { "data-testid": "carousel-item", children: [
7
7
  "Item ",
8
8
  e + 1
@@ -12,7 +12,7 @@ a("Carousel", () => {
12
12
  writable: !0,
13
13
  configurable: !0,
14
14
  value: 1024
15
- }), i(() => {
15
+ }), a(() => {
16
16
  window.dispatchEvent(new Event("resize"));
17
17
  }), global.ResizeObserver = class {
18
18
  observe() {
@@ -23,6 +23,8 @@ a("Carousel", () => {
23
23
  }
24
24
  };
25
25
  }), o("renders without crashing", () => {
26
- n(/* @__PURE__ */ s(d, { items: r, itemsPerPage: 3, itemsPerRow: 1 })), l(c.getAllByTestId("carousel-item").length).toBeGreaterThan(0);
26
+ n(
27
+ /* @__PURE__ */ s(d, { isSplit: !0, items: r, itemsPerPage: 3, itemsPerRow: 1 })
28
+ ), l(c.getAllByTestId("carousel-item").length).toBeGreaterThan(0);
27
29
  });
28
30
  });
@@ -1,129 +1,135 @@
1
- import { jsxs as v, jsx as r } from "react/jsx-runtime";
2
- import { useState as k, useRef as w, useEffect as b } from "react";
3
- import { A as T } from "../../arrow-left-BIJvHwNQ.js";
4
- import { A as W } from "../../arrow-right-QEwnX3Sk.js";
5
- import '../../assets/index31.css';const E = "_carousel_pk3a7_1", L = "_trackContainer_pk3a7_9", j = "_track_pk3a7_9", X = "_page_pk3a7_24", D = "_controls_pk3a7_30", G = "_indicators_pk3a7_47", O = "_indicator_pk3a7_47", S = "_active_pk3a7_64", q = "_buttons_pk3a7_68", B = "_prev_pk3a7_73", F = "_disabled_pk3a7_73", H = "_next_pk3a7_74", t = {
6
- carousel: E,
7
- trackContainer: L,
8
- track: j,
9
- page: X,
10
- controls: D,
11
- indicators: G,
12
- indicator: O,
1
+ import { jsxs as w, jsx as s } from "react/jsx-runtime";
2
+ import { useState as m, useRef as W, useEffect as x } from "react";
3
+ import { A as O } from "../../arrow-left-BIJvHwNQ.js";
4
+ import { A as q } from "../../arrow-right-QEwnX3Sk.js";
5
+ import '../../assets/index31.css';const B = "_carousel_pk3a7_1", F = "_trackContainer_pk3a7_9", H = "_track_pk3a7_9", J = "_page_pk3a7_24", K = "_controls_pk3a7_30", Q = "_indicators_pk3a7_47", R = "_indicator_pk3a7_47", S = "_active_pk3a7_64", U = "_buttons_pk3a7_68", V = "_prev_pk3a7_73", Y = "_disabled_pk3a7_73", Z = "_next_pk3a7_74", n = {
6
+ carousel: B,
7
+ trackContainer: F,
8
+ track: H,
9
+ page: J,
10
+ controls: K,
11
+ indicators: Q,
12
+ indicator: R,
13
13
  active: S,
14
- buttons: q,
15
- prev: B,
16
- disabled: F,
17
- next: H
14
+ buttons: U,
15
+ prev: V,
16
+ disabled: Y,
17
+ next: Z
18
18
  };
19
- function V({
20
- items: g,
21
- itemsPerPage: m = 3,
22
- itemsPerRow: N = 3,
23
- autoPlay: a = !1,
24
- autoPlayInterval: x = 3e3,
25
- className: C
19
+ function rt({
20
+ items: $,
21
+ itemsPerPage: v = 3,
22
+ itemsPerRow: z = 3,
23
+ autoPlay: c = !1,
24
+ autoPlayInterval: N = 3e3,
25
+ className: A,
26
+ externalRef: y,
27
+ siblingRef: o,
28
+ isSplit: b = !1
26
29
  }) {
27
- const [c, d] = k(0), [i, R] = k(0), [p, I] = k(m), u = w(null), h = w(null), z = (e, n) => {
28
- const s = [];
29
- for (let o = 0; o < e.length; o += n)
30
- s.push(e.slice(o, o + n));
31
- return s;
30
+ const [i, p] = m(0), [l, C] = m(0), [h, T] = m(v), [g, E] = m(!0), I = W(null), k = W(null), u = b && g ? y : I, L = (t, e) => {
31
+ const a = [];
32
+ for (let r = 0; r < t.length; r += e)
33
+ a.push(t.slice(r, r + e));
34
+ return a;
32
35
  };
33
- b(() => {
34
- const e = () => {
35
- const n = window.innerWidth < 768;
36
- I(n ? 1 : m);
36
+ x(() => {
37
+ const t = () => {
38
+ const e = window.innerWidth < 768;
39
+ E(e), T(e ? 1 : v);
37
40
  };
38
- return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
39
- }, [m]);
40
- const _ = Math.ceil(p / N), $ = z(g, p), l = $.length;
41
- b(() => {
42
- const e = new ResizeObserver((n) => {
43
- for (let s of n)
44
- s.contentRect && (R(s.contentRect.width), d(0));
41
+ return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
42
+ }, [v]);
43
+ const _ = Math.ceil(h / z), M = L($, h), d = M.length, j = 3 * 16;
44
+ x(() => {
45
+ const t = new ResizeObserver((e) => {
46
+ var a;
47
+ for (let r of e)
48
+ r.contentRect && (b && g ? o != null && o.current && C(
49
+ r.contentRect.width - ((a = o == null ? void 0 : o.current) == null ? void 0 : a.offsetWidth) - j
50
+ ) : C(r.contentRect.width), p(0));
45
51
  });
46
- return u.current && e.observe(u.current), () => e.disconnect();
52
+ return u != null && u.current && t.observe(u.current), () => t.disconnect();
47
53
  }, []);
48
54
  const f = () => {
49
- d((e) => Math.min(e + 1, l - 1));
50
- }, A = () => {
51
- d((e) => Math.max(e - 1, 0));
52
- }, M = (e) => {
53
- d(e);
54
- }, y = () => i ? `translateX(-${c * i}px)` : "translateX(0px)";
55
- return b(() => (a && (h.current = setInterval(f, x)), () => {
56
- h.current && clearInterval(h.current);
57
- }), [a, x, f]), /* @__PURE__ */ v("div", { className: `${C ?? ""} ${t.carousel}`, ref: u, children: [
58
- /* @__PURE__ */ r(
55
+ p((t) => Math.min(t + 1, d - 1));
56
+ }, X = () => {
57
+ p((t) => Math.max(t - 1, 0));
58
+ }, D = (t) => {
59
+ p(t);
60
+ }, G = () => l ? `translateX(-${i * l}px)` : "translateX(0px)";
61
+ return x(() => (c && (k.current = setInterval(f, N)), () => {
62
+ k.current && clearInterval(k.current);
63
+ }), [c, N, f]), /* @__PURE__ */ w("div", { className: `${A ?? ""} ${n.carousel}`, ref: I, children: [
64
+ /* @__PURE__ */ s(
59
65
  "div",
60
66
  {
61
- className: t.trackContainer,
62
- style: { maxWidth: `${i}px` },
63
- children: /* @__PURE__ */ r(
67
+ className: n.trackContainer,
68
+ style: { maxWidth: `${l}px` },
69
+ children: /* @__PURE__ */ s(
64
70
  "div",
65
71
  {
66
- className: t.track,
67
- style: { width: `${l * 100}%`, transform: y() },
68
- children: $.map((e, n) => /* @__PURE__ */ r(
72
+ className: n.track,
73
+ style: { width: `${d * 100}%`, transform: G() },
74
+ children: M.map((t, e) => /* @__PURE__ */ s(
69
75
  "div",
70
76
  {
71
- className: t.page,
77
+ className: n.page,
72
78
  style: {
73
79
  display: _ > 1 ? "grid" : "flex",
74
80
  gridTemplateColumns: `repeat(${Math.ceil(
75
- p / _
81
+ h / _
76
82
  )}, 1fr)`,
77
83
  gridTemplateRows: `repeat(${_}, auto)`,
78
- width: `${i}px`
84
+ width: `${l}px`
79
85
  },
80
- children: e.map((s, o) => /* @__PURE__ */ r(
86
+ children: t.map((a, r) => /* @__PURE__ */ s(
81
87
  "div",
82
88
  {
83
- className: t.slide,
89
+ className: n.slide,
84
90
  style: {
85
- width: `${i / _ - 16}px`
91
+ width: `${l / _ - 16}px`
86
92
  },
87
- children: s
93
+ children: a
88
94
  },
89
- o
95
+ r
90
96
  ))
91
97
  },
92
- n
98
+ e
93
99
  ))
94
100
  }
95
101
  )
96
102
  }
97
103
  ),
98
- l > 1 && /* @__PURE__ */ v("div", { className: t.controls, children: [
99
- /* @__PURE__ */ r("div", { className: t.indicators, children: Array.from({ length: l }).map((e, n) => /* @__PURE__ */ r(
104
+ d > 1 && /* @__PURE__ */ w("div", { className: n.controls, children: [
105
+ /* @__PURE__ */ s("div", { className: n.indicators, children: Array.from({ length: d }).map((t, e) => /* @__PURE__ */ s(
100
106
  "button",
101
107
  {
102
- className: `${t.indicator} ${n === c ? t.active : ""}`,
103
- onClick: () => M(n),
104
- "aria-label": `Go to group ${n + 1}`
108
+ className: `${n.indicator} ${e === i ? n.active : ""}`,
109
+ onClick: () => D(e),
110
+ "aria-label": `Go to group ${e + 1}`
105
111
  },
106
- n
112
+ e
107
113
  )) }),
108
- /* @__PURE__ */ v("div", { className: t.buttons, children: [
109
- /* @__PURE__ */ r(
114
+ /* @__PURE__ */ w("div", { className: n.buttons, children: [
115
+ /* @__PURE__ */ s(
110
116
  "button",
111
117
  {
112
118
  "aria-label": "Previous slide",
113
- className: `${t.prev} ${!a && c === 0 ? t.disabled : ""}`,
114
- onClick: A,
115
- disabled: !a && c === 0,
116
- children: /* @__PURE__ */ r(T, { size: 36 })
119
+ className: `${n.prev} ${!c && i === 0 ? n.disabled : ""}`,
120
+ onClick: X,
121
+ disabled: !c && i === 0,
122
+ children: /* @__PURE__ */ s(O, { size: 36 })
117
123
  }
118
124
  ),
119
- /* @__PURE__ */ r(
125
+ /* @__PURE__ */ s(
120
126
  "button",
121
127
  {
122
128
  "aria-label": "Next slide",
123
- className: `${t.next} ${!a && c >= l - 1 ? t.disabled : ""}`,
129
+ className: `${n.next} ${!c && i >= d - 1 ? n.disabled : ""}`,
124
130
  onClick: f,
125
- disabled: !a && c >= g.length - p,
126
- children: /* @__PURE__ */ r(W, { size: 36 })
131
+ disabled: !c && i >= $.length - h,
132
+ children: /* @__PURE__ */ s(q, { size: 36 })
127
133
  }
128
134
  )
129
135
  ] })
@@ -131,5 +137,5 @@ function V({
131
137
  ] });
132
138
  }
133
139
  export {
134
- V as Carousel
140
+ rt as Carousel
135
141
  };
@@ -5,7 +5,10 @@ type CarouselProps = {
5
5
  itemsPerRow?: number;
6
6
  autoPlay?: boolean;
7
7
  autoPlayInterval?: number;
8
+ externalRef?: React.RefObject<HTMLElement>;
9
+ siblingRef?: React.RefObject<HTMLElement>;
10
+ isSplit: boolean;
8
11
  className?: string;
9
12
  };
10
- export declare function Carousel({ items, itemsPerPage, itemsPerRow, autoPlay, autoPlayInterval, className, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function Carousel({ items, itemsPerPage, itemsPerRow, autoPlay, autoPlayInterval, className, externalRef, siblingRef, isSplit, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
11
14
  export {};
package/dist/styles.css CHANGED
@@ -11,7 +11,7 @@
11
11
  ._skeleton_u21vc_1{background-color:#e0e0e0;overflow:hidden;position:relative;display:inline-block;animation:_shimmer_u21vc_1 1.5s infinite;background:linear-gradient(90deg,#e0e0e0,#f0f0f0,#e0e0e0);background-size:200% 100%}._text_u21vc_16{height:16px;width:100%;border-radius:4px}._circle_u21vc_22{border-radius:50%;aspect-ratio:1/1}._rectangle_u21vc_27{border-radius:4px}@keyframes _shimmer_u21vc_1{0%{background-position:-200%}50%{background-position:100%}to{background-position:200%}}
12
12
  ._buttonGroup_e1koo_1{display:flex;gap:.5rem}._buttonGroup_e1koo_1>*{align-self:flex-start;width:auto}._left_e1koo_11{justify-content:flex-start}._center_e1koo_15{justify-content:center}._right_e1koo_19{justify-content:flex-end}._vertical_e1koo_23{flex-direction:column}._horizontal_e1koo_27{flex-direction:row}@media (max-width: 480px){._buttonGroup_e1koo_1{flex-direction:column}}
13
13
  ._fab_1p460_1{position:fixed;bottom:var(--spacing-lg);right:var(--spacing-lg);z-index:25;background-color:var(--color-primary, #000);color:#fff;border:none;border-radius:var(--radius-full);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);transition:background-color .25s ease-in-out}._fab_1p460_1:hover{background-color:var(--color-secondary)}._sm_1p460_22{width:40px;height:40px}._md_1p460_27{width:56px;height:56px}._lg_1p460_31{width:72px;height:72px}._bottom-right_1p460_36{bottom:var(--spacing-lg);right:var(--spacing-lg)}._bottom-left_1p460_41{bottom:var(--spacing-lg);left:var(--spacing-lg)}._top-right_1p460_46{top:var(--spacing-lg);right:var(--spacing-lg)}._top-left_1p460_51{top:var(--spacing-lg);left:var(--spacing-lg)}._disabled_1p460_56{color:var(--color-muted)}
14
- ._callToAction_175rm_1{display:inline-flex;text-decoration:none;border-radius:var(--radius-md);border:2px solid transparent;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-weight:var(--font-weight-bold);font-family:inherit;background-color:var(--color-primary);cursor:pointer;transition:background-color .25s,border-color .25s;height:40px}._callToAction_175rm_1:focus,._callToAction_175rm_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_175rm_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_175rm_28{background-color:var(--color-primary);color:#fff}._primary_175rm_28:hover{background-color:var(--color-secondary);color:#fff}._primaryInverted_175rm_38{border-color:var(--color-primary);background-color:#fff;color:var(--color-primary)}._primaryInverted_175rm_38:hover{border-color:var(--color-secondary);background-color:var(--color-secondary);color:var(--color-primary)}._secondary_175rm_50{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._secondary_175rm_50:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._secondaryInverted_175rm_63{background-color:transparent;border-color:#fff;border-width:2px;color:#fff}._secondaryInverted_175rm_63:hover{border-color:#fff;background-color:#fff;color:var(--color-primary)}._link_175rm_76{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._linkInverted_175rm_85{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_175rm_94{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._underlineInverted_175rm_103{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._muted_175rm_112{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._icon_175rm_121{display:inline-flex}._content_175rm_125{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_175rm_134{flex-direction:row-reverse}._iconRight_175rm_138{flex-direction:row}
14
+ ._callToAction_1tdql_1{display:inline-flex;text-decoration:none;border-radius:var(--radius-md);border:2px solid transparent;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-weight:var(--font-weight-bold);font-family:inherit;background-color:var(--color-primary);cursor:pointer;transition:background-color .25s,border-color .25s;height:40px}._callToAction_1tdql_1:focus,._callToAction_1tdql_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_1tdql_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_1tdql_28{background-color:var(--color-primary);color:#fff}._primary_1tdql_28:hover{background-color:var(--color-secondary);color:#fff}._primaryInverted_1tdql_38{border-color:#fff;background-color:#fff;color:var(--color-primary)}._primaryInverted_1tdql_38:hover{border-color:var(--color-secondary);background-color:var(--color-secondary);color:var(--color-primary)}._secondary_1tdql_50{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._secondary_1tdql_50:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._secondaryInverted_1tdql_63{background-color:transparent;border-color:#fff;border-width:2px;color:#fff}._secondaryInverted_1tdql_63:hover{border-color:#fff;background-color:#fff;color:var(--color-primary)}._link_1tdql_76{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._linkInverted_1tdql_85{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_1tdql_94{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._underlineInverted_1tdql_103{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._muted_1tdql_112{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._icon_1tdql_121{display:inline-flex}._content_1tdql_125{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_1tdql_134{flex-direction:row-reverse}._iconRight_1tdql_138{flex-direction:row}
15
15
  ._iconButton_e9jmu_1{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:var(--spacing-sm);border-radius:var(--radius-md);cursor:pointer;transition:background .25s ease}._iconButton_e9jmu_1:disabled{opacity:.5;cursor:not-allowed}._sm_e9jmu_18{width:32px;height:32px}._md_e9jmu_23{width:40px;height:40px}._lg_e9jmu_28{width:48px;height:48px}._default_e9jmu_33{background-color:#f0f0f0;color:#111}._muted_e9jmu_38{background-color:#bbb;color:var(--color-muted)}._accent_e9jmu_43{background-color:var(--color-primary);color:#fff}._error_e9jmu_48{background-color:var(--color-error);color:#fff}._srOnly_e9jmu_53{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
16
16
  h1,h2,h3,h4,h5,h6{line-height:var(--line-height-tight);margin-block:0 var(--spacing-md);color:var(--color-heading)}h1[class*=bg],h2[class*=bg],h3[class*=bg],h4[class*=bg],h5[class*=bg],h6[class*=bg]{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md)}h1{font-size:var(--font-size-h1);font-weight:var(--font-weight-bold);margin-block:0 var(--spacing-md)}h2{font-size:var(--font-size-h2);font-weight:var(--font-weight-bold);margin-block:0 var(--spacing-md)}h3{font-size:var(--font-size-h3);font-weight:var(--font-weight-semibold);margin-block:0 var(--spacing-sm)}h4{font-size:var(--font-size-h4);font-weight:var(--font-weight-semibold);margin-block:0 var(--spacing-sm)}h5{font-size:var(--font-size-h5);font-weight:var(--font-weight-medium);margin-block:var(--spacing-xs)}h6{font-size:var(--font-size-h6);font-weight:var(--font-weight-medium);margin-block:var(--spacing-xs)}
17
17
  ._grid_1pzcn_1{display:grid;width:100%;gap:var(--spacing-md, 1rem);grid-template-columns:var(--xs-columns, repeat(1, 1fr));grid-auto-rows:1fr}@media (min-width: 480px){._grid_1pzcn_1{grid-template-columns:var(--sm-columns, var(--xs-columns))}}@media (min-width: 768px){._grid_1pzcn_1{grid-template-columns:var(--md-columns, var(--sm-columns))}}@media (min-width: 1024px){._grid_1pzcn_1{grid-template-columns:var(--lg-columns, var(--md-columns))}}@media (min-width: 1280px){._grid_1pzcn_1{grid-template-columns:var(--xl-columns, var(--lg-columns))}}@media (min-width: 1536px){._grid_1pzcn_1{grid-template-columns:var(--2xl-columns, var(--xl-columns))}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.49",
4
+ "version": "0.0.51",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {