quirk-ui 0.0.253 → 0.0.255

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
- ._card_18ynt_1{background-color:var(--color-background);border-radius:var(--radius-md);padding:var(--spacing-md);cursor:pointer;transition:box-shadow .3s,transform .3s;display:flex;flex-direction:column;justify-content:space-between;height:100%;box-sizing:border-box;min-height:225px;margin:0 auto}._clickable_18ynt_16{cursor:pointer}._clickable_18ynt_16:hover{box-shadow:0 6px 12px #0003}._default_18ynt_24{box-shadow:0 2px 4px #0000001a}._outlined_18ynt_28{border:1px solid var(--color-border)}._shadow_18ynt_32{box-shadow:0 2px 4px #00000026}._imageTop_18ynt_36{padding:0;overflow:hidden;border-radius:var(--radius-md);display:flex;flex-direction:column;height:100%;border:1px solid var(--color-border)}._imageTop_18ynt_36 ._imageContainer_18ynt_46{width:100%;height:100%;max-height:150px;overflow:hidden;flex-shrink:0}._imageTop_18ynt_36 ._image_18ynt_36{width:100%;height:100%;object-fit:cover}._imageTop_18ynt_36 ._content_18ynt_61{padding:var(--spacing-md)}._imageBackground_18ynt_65{position:relative;padding:0;overflow:hidden;border-radius:var(--radius-md);color:var(--color-foreground);display:flex;flex-direction:column;height:100%}._imageBackground_18ynt_65 ._imageBackgroundContainer_18ynt_76{position:relative;width:100%;height:100%;overflow:hidden;flex-grow:1}._imageBackground_18ynt_65 ._backgroundImage_18ynt_84{width:100%;height:100%;object-fit:cover;position:relative;top:0;left:0;z-index:1}._imageBackground_18ynt_65 ._overlay_18ynt_94{position:absolute;top:0;left:0;width:100%;height:100%;background:#0009;z-index:2;display:flex;flex-direction:column;justify-content:space-between;padding:var(--spacing-md)}._imageBackground_18ynt_65 ._text_18ynt_110,._imageBackground_18ynt_65 h3{color:#fff}._content_18ynt_61{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1}._card_18ynt_1:hover{transform:translateY(-2px)}._text_18ynt_110{font-size:var(-font-size-md);color:var(--color-text-primary);margin-bottom:var(--spacing-md)}._footer_18ynt_132{text-align:right;padding-top:var(--spacing-md);flex-shrink:0}
1
+ ._card_ti1qi_1{background-color:var(--color-background);border-radius:var(--radius-md);padding:var(--spacing-md);cursor:pointer;transition:box-shadow .3s,transform .3s;display:flex;flex-direction:column;justify-content:space-between;height:100%;box-sizing:border-box;min-height:225px;margin:0 auto;max-width:800px}._clickable_ti1qi_18{cursor:pointer}._clickable_ti1qi_18:hover{box-shadow:0 6px 12px #0003}._default_ti1qi_26{box-shadow:0 2px 4px #0000001a}._outlined_ti1qi_30{border:1px solid var(--color-border)}._shadow_ti1qi_34{box-shadow:0 2px 4px #00000026}._imageTop_ti1qi_38{padding:0;overflow:hidden;border-radius:var(--radius-md);display:flex;flex-direction:column;height:100%;border:1px solid var(--color-border)}._imageTop_ti1qi_38 ._imageContainer_ti1qi_48{width:100%;height:100%;max-height:150px;overflow:hidden;flex-shrink:0}._imageTop_ti1qi_38 ._image_ti1qi_38{width:100%;height:100%;object-fit:cover}._imageTop_ti1qi_38 ._content_ti1qi_63{padding:var(--spacing-md)}._imageBackground_ti1qi_67{position:relative;padding:0;overflow:hidden;border-radius:var(--radius-md);color:var(--color-foreground);display:flex;flex-direction:column;height:100%}._imageBackground_ti1qi_67 ._imageBackgroundContainer_ti1qi_78{position:relative;width:100%;height:100%;overflow:hidden;flex-grow:1}._imageBackground_ti1qi_67 ._backgroundImage_ti1qi_86{width:100%;height:100%;object-fit:cover;position:relative;top:0;left:0;z-index:1}._imageBackground_ti1qi_67 ._overlay_ti1qi_96{position:absolute;top:0;left:0;width:100%;height:100%;background:#0009;z-index:2;display:flex;flex-direction:column;justify-content:space-between;padding:var(--spacing-md)}._imageBackground_ti1qi_67 ._text_ti1qi_112,._imageBackground_ti1qi_67 h3{color:#fff}._content_ti1qi_63{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1}._card_ti1qi_1:hover{transform:translateY(-2px)}._text_ti1qi_112{font-size:var(-font-size-md);color:var(--color-text-primary);margin-bottom:var(--spacing-md)}._footer_ti1qi_134{text-align:right;padding-top:var(--spacing-md);flex-shrink:0}
@@ -1,18 +1,18 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import '../../assets/colors.css';import '../../assets/index.css';import '../../assets/index21.css';/* empty css */
3
3
  import { Heading as l } from "../Heading/index.js";
4
4
  import "react";
5
5
  import "../../index-CxrBcaoP.js";
6
6
  import "../Tabs/index.js";
7
7
  /* empty css */
8
- const g = "_card_18ynt_1", u = "_clickable_18ynt_16", y = "_outlined_18ynt_28", h = "_shadow_18ynt_32", k = "_imageTop_18ynt_36", p = "_imageContainer_18ynt_46", v = "_image_18ynt_36", f = "_content_18ynt_61", B = "_imageBackground_18ynt_65", N = "_imageBackgroundContainer_18ynt_76", C = "_backgroundImage_18ynt_84", b = "_overlay_18ynt_94", x = "_text_18ynt_110", T = "_footer_18ynt_132", a = {
8
+ const g = "_card_ti1qi_1", u = "_clickable_ti1qi_18", h = "_outlined_ti1qi_30", k = "_shadow_ti1qi_34", p = "_imageTop_ti1qi_38", q = "_imageContainer_ti1qi_48", v = "_image_ti1qi_38", f = "_content_ti1qi_63", B = "_imageBackground_ti1qi_67", N = "_imageBackgroundContainer_ti1qi_78", C = "_backgroundImage_ti1qi_86", b = "_overlay_ti1qi_96", x = "_text_ti1qi_112", T = "_footer_ti1qi_134", i = {
9
9
  card: g,
10
10
  clickable: u,
11
- default: "_default_18ynt_24",
12
- outlined: y,
13
- shadow: h,
14
- imageTop: k,
15
- imageContainer: p,
11
+ default: "_default_ti1qi_26",
12
+ outlined: h,
13
+ shadow: k,
14
+ imageTop: p,
15
+ imageContainer: q,
16
16
  image: v,
17
17
  content: f,
18
18
  imageBackground: B,
@@ -22,16 +22,16 @@ const g = "_card_18ynt_1", u = "_clickable_18ynt_16", y = "_outlined_18ynt_28",
22
22
  text: x,
23
23
  footer: T
24
24
  }, w = {
25
- default: a.default,
26
- outlined: a.outlined,
27
- shadow: a.shadow,
28
- imageTop: a.imageTop,
29
- imageBackground: a.imageBackground
25
+ default: i.default,
26
+ outlined: i.outlined,
27
+ shadow: i.shadow,
28
+ imageTop: i.imageTop,
29
+ imageBackground: i.imageBackground
30
30
  };
31
31
  function D({
32
32
  title: o,
33
- content: t,
34
- footer: i,
33
+ content: n,
34
+ footer: t,
35
35
  imageSrc: c,
36
36
  imageAlt: r = "Card image",
37
37
  onClick: s,
@@ -39,37 +39,37 @@ function D({
39
39
  clickable: m = !1,
40
40
  className: _
41
41
  }) {
42
- return /* @__PURE__ */ n(
42
+ return /* @__PURE__ */ e(
43
43
  "div",
44
44
  {
45
- className: `${_ ?? ""} ${a.card} ${w[d]} ${m ? a.clickable : ""}`,
45
+ className: `${_ ?? ""} ${i.card} ${w[d]} ${m ? i.clickable : ""}`,
46
46
  onClick: s,
47
47
  role: s ? "button" : "presentation",
48
48
  children: [
49
- d === "imageTop" && c && /* @__PURE__ */ e("div", { className: a.imageContainer, children: /* @__PURE__ */ e("img", { src: c, alt: r, className: a.image }) }),
50
- d === "imageBackground" && c && /* @__PURE__ */ n("div", { className: a.imageBackgroundContainer, children: [
51
- /* @__PURE__ */ e(
49
+ d === "imageTop" && c && /* @__PURE__ */ a("div", { className: i.imageContainer, children: /* @__PURE__ */ a("img", { src: c, alt: r, className: i.image }) }),
50
+ d === "imageBackground" && c && /* @__PURE__ */ e("div", { className: i.imageBackgroundContainer, children: [
51
+ /* @__PURE__ */ a(
52
52
  "img",
53
53
  {
54
54
  src: c,
55
55
  alt: r,
56
- className: a.backgroundImage
56
+ className: i.backgroundImage
57
57
  }
58
58
  ),
59
- /* @__PURE__ */ n("div", { className: a.overlay, children: [
60
- /* @__PURE__ */ n("div", { children: [
61
- o && /* @__PURE__ */ e(l, { level: 3, children: o }),
62
- t && /* @__PURE__ */ e("div", { className: a.text, children: t })
59
+ /* @__PURE__ */ e("div", { className: i.overlay, children: [
60
+ /* @__PURE__ */ e("div", { children: [
61
+ o && /* @__PURE__ */ a(l, { level: 3, children: o }),
62
+ n && /* @__PURE__ */ a("div", { className: i.text, children: n })
63
63
  ] }),
64
- i && /* @__PURE__ */ e("div", { className: a.footer, children: i })
64
+ t && /* @__PURE__ */ a("div", { className: i.footer, children: t })
65
65
  ] })
66
66
  ] }),
67
- d !== "imageBackground" && /* @__PURE__ */ n("div", { className: a.content, children: [
68
- /* @__PURE__ */ n("div", { children: [
69
- o && /* @__PURE__ */ e(l, { level: 3, children: o }),
70
- t && /* @__PURE__ */ e("div", { className: a.text, children: t })
67
+ d !== "imageBackground" && /* @__PURE__ */ e("div", { className: i.content, children: [
68
+ /* @__PURE__ */ e("div", { children: [
69
+ o && /* @__PURE__ */ a(l, { level: 3, children: o }),
70
+ n && /* @__PURE__ */ a("div", { className: i.text, children: n })
71
71
  ] }),
72
- i && /* @__PURE__ */ e("div", { className: a.footer, children: i })
72
+ t && /* @__PURE__ */ a("div", { className: i.footer, children: t })
73
73
  ] })
74
74
  ]
75
75
  }
@@ -2,7 +2,7 @@ import { jsxs as W, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as c, useRef as C, useEffect as E, useLayoutEffect as wt } from "react";
3
3
  import { A as Mt } from "../../arrow-left-BIJvHwNQ.js";
4
4
  import { A as bt } from "../../arrow-right-QEwnX3Sk.js";
5
- import '../../assets/index30.css';const xt = "_carousel_ifeug_1", $t = "_noPointerEvents_ifeug_10", Ct = "_trackContainer_ifeug_14", Et = "_track_ifeug_14", Xt = "_page_ifeug_29", yt = "_controls_ifeug_39", It = "_indicators_ifeug_50", Nt = "_indicator_ifeug_50", kt = "_active_ifeug_67", Tt = "_buttons_ifeug_71", At = "_prev_ifeug_76", Wt = "_disabled_ifeug_76", Dt = "_next_ifeug_77", o = {
5
+ import '../../assets/index30.css';const xt = "_carousel_ifeug_1", $t = "_noPointerEvents_ifeug_10", Ct = "_trackContainer_ifeug_14", Et = "_track_ifeug_14", Xt = "_page_ifeug_29", yt = "_controls_ifeug_39", It = "_indicators_ifeug_50", Nt = "_indicator_ifeug_50", Tt = "_active_ifeug_67", kt = "_buttons_ifeug_71", At = "_prev_ifeug_76", Wt = "_disabled_ifeug_76", St = "_next_ifeug_77", o = {
6
6
  carousel: xt,
7
7
  noPointerEvents: $t,
8
8
  trackContainer: Ct,
@@ -11,58 +11,58 @@ import '../../assets/index30.css';const xt = "_carousel_ifeug_1", $t = "_noPoint
11
11
  controls: yt,
12
12
  indicators: It,
13
13
  indicator: Nt,
14
- active: kt,
15
- buttons: Tt,
14
+ active: Tt,
15
+ buttons: kt,
16
16
  prev: At,
17
17
  disabled: Wt,
18
- next: Dt
18
+ next: St
19
19
  };
20
20
  function Yt({
21
- items: l,
22
- itemsPerPage: u = 9,
21
+ items: M,
22
+ itemsPerPage: l = 9,
23
23
  itemsPerRow: K = 3,
24
24
  autoplay: Q = !1,
25
- autoplayInterval: D = 3,
25
+ autoplayInterval: S = 3,
26
26
  className: V,
27
27
  externalRef: Z,
28
- siblingRef: d,
29
- isSplit: L = !1
28
+ siblingRef: u,
29
+ isSplit: D = !1
30
30
  }) {
31
- const [h, f] = c(0), [_, b] = c(0), [S, P] = c(0), [p, tt] = c(u), [v, et] = c(!1), [z, nt] = c(Q), ot = C(null), a = C(null), m = C(null), x = Z, [w, X] = c(!1), [Y, B] = c(null), [$, j] = c(null), [R, U] = c(null), [st, G] = c(!1), [M, O] = c(null), [y, q] = c(null), ct = (t) => {
32
- Math.abs((y ?? 0) - (M ?? 0)) > 25 && (t.stopPropagation(), t.preventDefault());
31
+ const [d, h] = c(0), [_, b] = c(0), [L, P] = c(0), [f, tt] = c(l), [p, et] = c(!1), [z, nt] = c(Q), ot = C(null), a = C(null), g = C(null), x = Z, [m, X] = c(!1), [Y, B] = c(null), [$, R] = c(null), [j, U] = c(null), [st, F] = c(!1), [w, G] = c(null), [y, O] = c(null), ct = (t) => {
32
+ Math.abs((y ?? 0) - (w ?? 0)) > 25 && (t.stopPropagation(), t.preventDefault());
33
33
  }, rt = (t) => {
34
- O(t.clientX);
34
+ G(t.clientX);
35
35
  }, at = (t) => {
36
- M !== null && Math.abs(t.clientX - M) > 5 && (G(!0), q(t.clientX));
36
+ w !== null && Math.abs(t.clientX - w) > 5 && (F(!0), O(t.clientX));
37
37
  }, it = () => {
38
- if (!M || !y) {
38
+ if (!w || !y) {
39
39
  I();
40
40
  return;
41
41
  }
42
- const t = M - y;
43
- Math.abs(t) > 50 && (t > 0 ? T() : A()), I();
42
+ const t = w - y;
43
+ Math.abs(t) > 50 && (t > 0 ? k() : A()), I();
44
44
  }, lt = () => {
45
45
  I();
46
46
  }, I = () => {
47
- G(!1), O(null), q(null);
47
+ F(!1), G(null), O(null);
48
48
  }, ut = (t) => {
49
- j(t.touches[0].clientX), B(t.touches[0].clientY), X(!1);
50
- }, F = C(null);
49
+ R(t.touches[0].clientX), B(t.touches[0].clientY), X(!1);
50
+ }, q = C(null);
51
51
  E(() => {
52
- const t = F.current;
52
+ const t = q.current;
53
53
  if (!t) return;
54
54
  const e = (n) => {
55
55
  const s = n.touches[0].clientX - ($ ?? 0), i = n.touches[0].clientY - (Y ?? 0);
56
- !w && Math.abs(s) > Math.abs(i) && X(!0), w && (n.preventDefault(), U(n.touches[0].clientX));
56
+ !m && Math.abs(s) > Math.abs(i) && X(!0), m && (n.preventDefault(), U(n.touches[0].clientX));
57
57
  };
58
58
  return t.addEventListener("touchmove", e), () => {
59
59
  t.removeEventListener("touchmove", e);
60
60
  };
61
- }, [w, $, Y]);
61
+ }, [m, $, Y]);
62
62
  const dt = () => {
63
- if ($ === null || R === null) return;
64
- const t = $ - R;
65
- Math.abs(t) > 50 && (t > 0 ? T() : A()), j(null), U(null), B(null), X(!1);
63
+ if ($ === null || j === null) return;
64
+ const t = $ - j;
65
+ Math.abs(t) > 50 && (t > 0 ? k() : A()), R(null), U(null), B(null), X(!1);
66
66
  }, ht = (t, e) => {
67
67
  const n = [];
68
68
  for (let s = 0; s < t.length; s += e)
@@ -74,64 +74,64 @@ function Yt({
74
74
  const t = (e = a == null ? void 0 : a.current) == null ? void 0 : e.children[0].children[0].children[0];
75
75
  if (t) {
76
76
  const n = t.getBoundingClientRect().width;
77
- n && P(n);
77
+ console.log("FIRST", n), n && P(n);
78
78
  }
79
- }, [l.length]), E(() => {
79
+ }, []), E(() => {
80
80
  if (typeof window < "u") {
81
81
  const t = () => {
82
- const e = window.innerWidth < 768, n = e ? 1 : u;
83
- et(e), tt(e ? 1 : u), f(
84
- (s) => Math.min(s, Math.ceil(l.length / n) - 1)
82
+ const e = window.innerWidth < 768, n = e ? 1 : l;
83
+ et(e), tt(e ? 1 : l), h(
84
+ (s) => Math.min(s, Math.ceil(M.length / n) - 1)
85
85
  );
86
86
  };
87
87
  return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
88
88
  }
89
- }, [u]);
90
- const N = Math.ceil(p / K), H = ht(l, p), g = H.length, ft = 3 * 16, pt = 3 * 16;
89
+ }, [l]);
90
+ const N = Math.ceil(f / K), H = ht(M, f), v = H.length, ft = 3 * 16, pt = 3 * 16;
91
91
  E(() => {
92
92
  const t = new ResizeObserver((e) => {
93
93
  var n, s;
94
94
  for (let i of e)
95
95
  if (i.contentRect) {
96
- v ? b(i.contentRect.width - pt) : L ? d != null && d.current ? b(
97
- i.contentRect.width - ((n = d == null ? void 0 : d.current) == null ? void 0 : n.offsetWidth) - ft
96
+ p ? b(i.contentRect.width - pt) : D ? u != null && u.current ? b(
97
+ i.contentRect.width - ((n = u == null ? void 0 : u.current) == null ? void 0 : n.offsetWidth) - ft
98
98
  ) : b(i.contentRect.width) : (b(i.contentRect.width), P(
99
99
  ((s = a == null ? void 0 : a.current) == null ? void 0 : s.children[0].children[0].children[0].getBoundingClientRect().width) ?? 0
100
100
  ));
101
- const _t = v ? 1 : u;
102
- f(
103
- (mt) => Math.min(mt, Math.ceil(l.length / _t) - 1)
101
+ const gt = p ? 1 : l;
102
+ h(
103
+ (mt) => Math.min(mt, Math.ceil(M.length / gt) - 1)
104
104
  );
105
105
  }
106
106
  });
107
107
  return x != null && x.current && t.observe(x.current), () => t.disconnect();
108
- }, [v, L, l.length]);
109
- const k = () => {
110
- m.current && clearInterval(m.current), nt(!1);
111
- }, T = () => {
112
- k(), f((t) => Math.min(t + 1, g - 1));
108
+ }, [p, D]);
109
+ const T = () => {
110
+ g.current && clearInterval(g.current), nt(!1);
111
+ }, k = () => {
112
+ T(), h((t) => Math.min(t + 1, v - 1));
113
113
  }, A = () => {
114
- k(), f((t) => Math.max(t - 1, 0));
114
+ T(), h((t) => Math.max(t - 1, 0));
115
115
  }, vt = (t) => {
116
- k(), f(t);
117
- }, gt = () => _ ? `translateX(-${h * _}px)` : "translateX(0px)", J = () => {
118
- f((t) => t >= g - 1 ? 0 : t + 1);
116
+ T(), h(t);
117
+ }, _t = () => _ ? `translateX(-${d * _}px)` : "translateX(0px)", J = () => {
118
+ h((t) => t >= v - 1 ? 0 : t + 1);
119
119
  };
120
- return E(() => (z && (m.current = setInterval(
120
+ return E(() => (z && (g.current = setInterval(
121
121
  J,
122
- D * 1e3
122
+ S * 1e3
123
123
  )), () => {
124
- m.current && clearInterval(m.current);
125
- }), [z, D, J]), /* @__PURE__ */ W("div", { className: `${V ?? ""} ${o.carousel}`, ref: ot, children: [
124
+ g.current && clearInterval(g.current);
125
+ }), [z, S, J]), /* @__PURE__ */ W("div", { className: `${V ?? ""} ${o.carousel}`, ref: ot, children: [
126
126
  /* @__PURE__ */ r(
127
127
  "div",
128
128
  {
129
- ref: F,
130
- className: `${o.trackContainer} ${st || w ? o.noPointerEvents : ""}
129
+ ref: q,
130
+ className: `${o.trackContainer} ${st || m ? o.noPointerEvents : ""}
131
131
  `,
132
132
  style: {
133
133
  maxWidth: `${_}px`,
134
- touchAction: w ? "none" : "pan-y"
134
+ touchAction: m ? "none" : "pan-y"
135
135
  },
136
136
  onTouchStart: ut,
137
137
  onTouchEnd: dt,
@@ -144,7 +144,7 @@ function Yt({
144
144
  {
145
145
  ref: a,
146
146
  className: o.track,
147
- style: { width: `${g * 100}%`, transform: gt() },
147
+ style: { width: `${v * 100}%`, transform: _t() },
148
148
  children: H.map((t, e) => /* @__PURE__ */ r(
149
149
  "div",
150
150
  {
@@ -152,7 +152,7 @@ function Yt({
152
152
  style: {
153
153
  display: N > 1 ? "grid" : "flex",
154
154
  gridTemplateColumns: `repeat(${Math.ceil(
155
- p / N
155
+ f / N
156
156
  )}, 1fr)`,
157
157
  gridTemplateRows: `repeat(${N}, auto)`,
158
158
  width: `${_}px`
@@ -162,8 +162,8 @@ function Yt({
162
162
  {
163
163
  onClickCapture: ct,
164
164
  style: {
165
- flexBasis: v ? "100%" : `${100 / p}%`,
166
- width: v ? `${_ / p - 16}px` : "unset"
165
+ flexBasis: p ? "100%" : `${100 / f}%`,
166
+ width: p ? `${_ / f - 16}px` : "unset"
167
167
  },
168
168
  children: n
169
169
  },
@@ -176,18 +176,18 @@ function Yt({
176
176
  )
177
177
  }
178
178
  ),
179
- g > 1 && /* @__PURE__ */ W(
179
+ v > 1 && /* @__PURE__ */ W(
180
180
  "div",
181
181
  {
182
182
  className: o.controls,
183
183
  style: {
184
- maxWidth: S > 0 && u === 1 && !v ? `${S}px` : "unset"
184
+ maxWidth: L > 0 && l === 1 && !p ? `${L}px` : "unset"
185
185
  },
186
186
  children: [
187
- /* @__PURE__ */ r("div", { className: o.indicators, children: Array.from({ length: g }).map((t, e) => /* @__PURE__ */ r(
187
+ /* @__PURE__ */ r("div", { className: o.indicators, children: Array.from({ length: v }).map((t, e) => /* @__PURE__ */ r(
188
188
  "button",
189
189
  {
190
- className: `${o.indicator} ${e === h ? o.active : ""}`,
190
+ className: `${o.indicator} ${e === d ? o.active : ""}`,
191
191
  onClick: () => vt(e),
192
192
  "aria-label": `Go to group ${e + 1}`
193
193
  },
@@ -198,9 +198,9 @@ function Yt({
198
198
  "button",
199
199
  {
200
200
  "aria-label": "Previous slide",
201
- className: `${o.prev} ${h === 0 ? o.disabled : ""}`,
201
+ className: `${o.prev} ${d === 0 ? o.disabled : ""}`,
202
202
  onClick: A,
203
- disabled: h === 0,
203
+ disabled: d === 0,
204
204
  children: /* @__PURE__ */ r(Mt, { size: 36 })
205
205
  }
206
206
  ),
@@ -208,9 +208,9 @@ function Yt({
208
208
  "button",
209
209
  {
210
210
  "aria-label": "Next slide",
211
- className: `${o.next} ${h >= g - 1 ? o.disabled : ""}`,
212
- onClick: T,
213
- disabled: h >= l.length - p,
211
+ className: `${o.next} ${d >= v - 1 ? o.disabled : ""}`,
212
+ onClick: k,
213
+ disabled: d >= M.length - f,
214
214
  children: /* @__PURE__ */ r(bt, { size: 36 })
215
215
  }
216
216
  )
package/dist/styles.css CHANGED
@@ -18,7 +18,7 @@ h1,h2,h3,h4,h5,h6,._h1_lse9h_7,._h2_lse9h_8,._h3_lse9h_9,._h4_lse9h_10,._h5_lse9
18
18
  ._box_1mldh_1{box-sizing:border-box}._paddingNone_1mldh_6{padding:0}._paddingSm_1mldh_10{padding:.5rem}._paddingMd_1mldh_14{padding:1rem}._paddingLg_1mldh_18{padding:2rem}._marginNone_1mldh_23{margin:0}._marginSm_1mldh_27{margin:.5rem}._marginMd_1mldh_31{margin:1rem}._marginLg_1mldh_35{margin:2rem}._block_1mldh_40{display:block}._inline_1mldh_44{display:inline}._inlineBlock_1mldh_48{display:inline-block}._flex_1mldh_52{display:flex}._inlineFlex_1mldh_56{display:inline-flex}._grid_1mldh_60{display:grid}._bgTransparent_1mldh_65{background-color:transparent}._bgLight_1mldh_69{background-color:var(--color-primary-25)}._bgDark_1mldh_73{background-color:var(--color-secondary-100)}._bgAccent_1mldh_77{background-color:var(--color-primary-100)}._borderNone_1mldh_82{border:none}._borderThin_1mldh_86{border:1px solid var(--color-border)}._borderThick_1mldh_90{border:2px solid var(--color-border)}._radiusNone_1mldh_95{border-radius:0}._radiusSm_1mldh_99{border-radius:var(--radius-sm)}._radiusMd_1mldh_103{border-radius:var(--radius-md)}._radiusLg_1mldh_107{border-radius:var(--radius-lg)}._radiusFull_1mldh_111{border-radius:var(--radius-full)}
19
19
  ._divider_zjbsg_1{flex-shrink:0;background:none}._horizontal_zjbsg_6{width:100%;height:auto}._vertical_zjbsg_11{height:100%;width:auto}
20
20
  ul._list_1fin2_1{list-style-type:none;padding:0;margin:0}ol._list_1fin2_1{list-style-type:decimal;padding:0;margin:0 0 0 var(--spacing-md)}._listItem_1fin2_13{padding:var(--spacing-sm) var(--spacing-md);margin-bottom:var(--spacing-sm);background-color:var(--color-secondary-100);border-radius:var(--radius-sm);cursor:pointer;transition:background-color .3s;color:var(--color-text-primary)}._listItem_1fin2_13:hover{background-color:var(--color-secondary-100)}._listItem_1fin2_13:active{background-color:var(--color-primary-100)}
21
- ._card_18ynt_1{background-color:var(--color-background);border-radius:var(--radius-md);padding:var(--spacing-md);cursor:pointer;transition:box-shadow .3s,transform .3s;display:flex;flex-direction:column;justify-content:space-between;height:100%;box-sizing:border-box;min-height:225px;margin:0 auto}._clickable_18ynt_16{cursor:pointer}._clickable_18ynt_16:hover{box-shadow:0 6px 12px #0003}._default_18ynt_24{box-shadow:0 2px 4px #0000001a}._outlined_18ynt_28{border:1px solid var(--color-border)}._shadow_18ynt_32{box-shadow:0 2px 4px #00000026}._imageTop_18ynt_36{padding:0;overflow:hidden;border-radius:var(--radius-md);display:flex;flex-direction:column;height:100%;border:1px solid var(--color-border)}._imageTop_18ynt_36 ._imageContainer_18ynt_46{width:100%;height:100%;max-height:150px;overflow:hidden;flex-shrink:0}._imageTop_18ynt_36 ._image_18ynt_36{width:100%;height:100%;object-fit:cover}._imageTop_18ynt_36 ._content_18ynt_61{padding:var(--spacing-md)}._imageBackground_18ynt_65{position:relative;padding:0;overflow:hidden;border-radius:var(--radius-md);color:var(--color-foreground);display:flex;flex-direction:column;height:100%}._imageBackground_18ynt_65 ._imageBackgroundContainer_18ynt_76{position:relative;width:100%;height:100%;overflow:hidden;flex-grow:1}._imageBackground_18ynt_65 ._backgroundImage_18ynt_84{width:100%;height:100%;object-fit:cover;position:relative;top:0;left:0;z-index:1}._imageBackground_18ynt_65 ._overlay_18ynt_94{position:absolute;top:0;left:0;width:100%;height:100%;background:#0009;z-index:2;display:flex;flex-direction:column;justify-content:space-between;padding:var(--spacing-md)}._imageBackground_18ynt_65 ._text_18ynt_110,._imageBackground_18ynt_65 h3{color:#fff}._content_18ynt_61{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1}._card_18ynt_1:hover{transform:translateY(-2px)}._text_18ynt_110{font-size:var(-font-size-md);color:var(--color-text-primary);margin-bottom:var(--spacing-md)}._footer_18ynt_132{text-align:right;padding-top:var(--spacing-md);flex-shrink:0}
21
+ ._card_ti1qi_1{background-color:var(--color-background);border-radius:var(--radius-md);padding:var(--spacing-md);cursor:pointer;transition:box-shadow .3s,transform .3s;display:flex;flex-direction:column;justify-content:space-between;height:100%;box-sizing:border-box;min-height:225px;margin:0 auto;max-width:800px}._clickable_ti1qi_18{cursor:pointer}._clickable_ti1qi_18:hover{box-shadow:0 6px 12px #0003}._default_ti1qi_26{box-shadow:0 2px 4px #0000001a}._outlined_ti1qi_30{border:1px solid var(--color-border)}._shadow_ti1qi_34{box-shadow:0 2px 4px #00000026}._imageTop_ti1qi_38{padding:0;overflow:hidden;border-radius:var(--radius-md);display:flex;flex-direction:column;height:100%;border:1px solid var(--color-border)}._imageTop_ti1qi_38 ._imageContainer_ti1qi_48{width:100%;height:100%;max-height:150px;overflow:hidden;flex-shrink:0}._imageTop_ti1qi_38 ._image_ti1qi_38{width:100%;height:100%;object-fit:cover}._imageTop_ti1qi_38 ._content_ti1qi_63{padding:var(--spacing-md)}._imageBackground_ti1qi_67{position:relative;padding:0;overflow:hidden;border-radius:var(--radius-md);color:var(--color-foreground);display:flex;flex-direction:column;height:100%}._imageBackground_ti1qi_67 ._imageBackgroundContainer_ti1qi_78{position:relative;width:100%;height:100%;overflow:hidden;flex-grow:1}._imageBackground_ti1qi_67 ._backgroundImage_ti1qi_86{width:100%;height:100%;object-fit:cover;position:relative;top:0;left:0;z-index:1}._imageBackground_ti1qi_67 ._overlay_ti1qi_96{position:absolute;top:0;left:0;width:100%;height:100%;background:#0009;z-index:2;display:flex;flex-direction:column;justify-content:space-between;padding:var(--spacing-md)}._imageBackground_ti1qi_67 ._text_ti1qi_112,._imageBackground_ti1qi_67 h3{color:#fff}._content_ti1qi_63{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1}._card_ti1qi_1:hover{transform:translateY(-2px)}._text_ti1qi_112{font-size:var(-font-size-md);color:var(--color-text-primary);margin-bottom:var(--spacing-md)}._footer_ti1qi_134{text-align:right;padding-top:var(--spacing-md);flex-shrink:0}
22
22
  ._avatar_1ihs2_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:visible;border:2px solid;cursor:default;transition:transform .3s}._avatar_1ihs2_1:hover{transform:scale(1.05)}._sm_1ihs2_17{width:32px;height:32px;font-size:12px}._md_1ihs2_23{width:48px;height:48px;font-size:16px}._lg_1ihs2_29{width:64px;height:64px;font-size:20px}._xl_1ihs2_35{width:80px;height:80px;font-size:20px}._image_1ihs2_41{width:100%;height:100%;border-radius:50%;object-fit:cover}._initials_1ihs2_48{color:#fff;font-family:var(--font-weight-bold)}._status_1ihs2_53{position:absolute;bottom:-2px;right:-2px;width:12px;height:12px;border-radius:50%;border:2px solid #fff;background-color:var(--color-offline);z-index:1}._online_1ihs2_65{background-color:var(--color-online)}._offline_1ihs2_69{background-color:var(--color-offline)}._busy_1ihs2_73{background-color:var(--color-busy)}
23
23
  :root{--badge-bg-default: var(--color-secondary, #94a3b8);--badge-bg-success: var(--color-success-bg, #28a745);--badge-bg-warning: var(--color-warning-bg, #f59e0b);--badge-bg-error: var(--color-error-bg, #bd1919);--badge-bg-info: var(--color-info-bg);--badge-text-default: var(--color-secondary-foreground, #fff);--badge-text-success: var(--color-success-text, #fff);--badge-text-warning: var(--color-warning-text, #333);--badge-text-error: var(--color-error-text, #fff);--badge-text-info: var(--color-info-text, #fff);--badge-padding: var(--spacing-sm) var(--spacing-md);--badge-font-size: var(--font-size-sm, .875rem);--badge-border-radius: var(--radius-sm, 8px)}._badge_18z15_19{display:inline-flex;align-items:center;padding:var(--badge-padding);font-size:var(--badge-font-size);border-radius:var(--badge-border-radius);font-weight:var(--font-weight-semibold);cursor:default;transition:background-color .3s,color .3s;-webkit-user-select:none;user-select:none}._clickable_18z15_31{cursor:pointer}._icon_18z15_35{margin-right:var(--spacing-sm);display:flex;align-items:center}._text_18z15_41{display:inline-block}._default_18z15_45{background-color:var(--badge-bg-default);color:var(--badge-text-default)}._success_18z15_50{background-color:var(--badge-bg-success);color:var(--badge-text-success)}._warning_18z15_55{background-color:var(--badge-bg-warning);color:var(--badge-text-warning)}._error_18z15_60{background-color:var(--badge-bg-error);color:var(--badge-text-error)}._info_18z15_65{background-color:var(--badge-bg-info);color:var(--badge-text-info)}
24
24
  ._overlay_140ia_1{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000080;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:1000;animation:_fadeIn_140ia_1 .3s ease}._modal_140ia_16{position:absolute;background-color:var(--color-background, #fff);border-radius:var(--radius-md, 4px);padding:var(--spacing-md, 1rem);width:min(90%,800px);max-width:100%;animation:_slideUp_140ia_1 .3s ease}._closeButton_140ia_26{color:var(--color-primary-100);position:absolute;top:var(--spacing-xs);right:var(--spacing-xs);background:none;border:none;cursor:pointer;padding:var(--spacing-sm)}._content_140ia_37{margin-top:var(--spacing-lg)}._content_140ia_37 video{width:100%;max-width:100%;height:auto;border-radius:var(--radius-md)}@keyframes _fadeIn_140ia_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_140ia_1{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.253",
4
+ "version": "0.0.255",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {