quirk-ui 0.0.384 → 0.0.385

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,6 +1,6 @@
1
1
  import { jsxs as n, jsx as l } from "react/jsx-runtime";
2
2
  import "./chevron-down-DSUzBz9F-BMmG6MOn.js";
3
- import { v as u } from "./index-D3QiuZPa-CdCr-7F2.js";
3
+ import { v as u } from "./index-C7H6hWZh-BE8PBYD7.js";
4
4
  import { X as m } from "./x-CnsEH4Ox.js";
5
5
  import './assets/CategoryFilters.css';const f = "_documentList_17zlj_1", H = "_container_17zlj_9", L = "_heading_17zlj_20", S = "_listContainer_17zlj_26", F = "_listWrapper_17zlj_37", b = "_list_17zlj_26", g = "_listHeader_17zlj_58", k = "_listSearch_17zlj_71", v = "_clearSearch_17zlj_98", C = "_listHeaderFilters_17zlj_117", w = "_listResults_17zlj_128", y = "_listSort_17zlj_132", x = "_filterToggle_17zlj_155", N = "_filterHeader_17zlj_170", I = "_loadMore_17zlj_191", M = "_filterList_17zlj_195", R = "_listFilters_17zlj_202", T = "_applyFilters_17zlj_210", W = "_show_17zlj_239", $ = "_hide_17zlj_248", A = "_buttonIsLoading_17zlj_299", s = {
6
6
  documentList: f,
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { d as i, i as o, r, s as l, g as t } from "../../../vi.ClIskdbk-D39wA6Kr.js";
3
- import { C as a } from "../../../index-C7H6hWZh.js";
3
+ import { C as a } from "../../../index-xw6CcoS5.js";
4
4
  import "../../../index-DPGXWTtt.js";
5
5
  i("CallToAction", () => {
6
6
  o("renders as a button when 'as' is set to 'button'", () => {
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { C as c } from "../../../index-C7H6hWZh.js";
2
+ import { C as c } from "../../../index-xw6CcoS5.js";
3
3
  import "../../../index-CeBA0PT0.js";
4
4
  import "../../../external-link-BOPobeQJ.js";
5
5
  import "../../../play-DYgKiSaf.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as r } from "react/jsx-runtime";
2
- import { C as y } from "../../../index-C7H6hWZh.js";
2
+ import { C as y } from "../../../index-xw6CcoS5.js";
3
3
  import { ButtonGroup as k } from "../ButtonGroup/index.js";
4
4
  import { a as $, b as F, c as I, d as w, e as A } from "../../../index-CeBA0PT0.js";
5
5
  import { E } from "../../../external-link-BOPobeQJ.js";
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as r, Fragment as ee } from "react/jsx-runtime";
2
2
  import { useState as h, useEffect as T, useRef as R, useCallback as A } from "react";
3
3
  import { s as e, N as Ce } from "../../../NavLink-RkB5XhMV.js";
4
4
  import { Modal as ne } from "../Modal/index.js";
5
- import { a as xe, C as ae } from "../../../index-C7H6hWZh.js";
5
+ import { a as xe, C as ae } from "../../../index-xw6CcoS5.js";
6
6
  import { ButtonGroup as le } from "../ButtonGroup/index.js";
7
7
  import { E as F } from "../../../external-link-BOPobeQJ.js";
8
8
  import { X as Me } from "../../../x-CnsEH4Ox.js";
package/dist/core.js CHANGED
@@ -6,7 +6,7 @@ import { Badge as i } from "./core/components/Badge/index.js";
6
6
  import { Box as l } from "./core/components/Box/index.js";
7
7
  import { Breadcrumbs as d } from "./core/components/Breadcrumbs/index.js";
8
8
  import { ButtonGroup as u } from "./core/components/ButtonGroup/index.js";
9
- import { C } from "./index-C7H6hWZh.js";
9
+ import { C } from "./index-xw6CcoS5.js";
10
10
  import { Card as T } from "./core/components/Card/index.js";
11
11
  import { Carousel as g } from "./core/components/Carousel/index.js";
12
12
  import { Checkbox as F } from "./core/components/Checkbox/index.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as k, Fragment as M } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { b as l, e as P } from "./chevron-down-DSUzBz9F-BMmG6MOn.js";
4
- import './assets/index-D3QiuZPa.css';var O = {
4
+ import './assets/index-C7H6hWZh.css';var O = {
5
5
  color: void 0,
6
6
  size: void 0,
7
7
  className: void 0,
@@ -6,7 +6,7 @@ import { P as x } from "./play-DYgKiSaf.js";
6
6
  import { C as $ } from "./chevron-down-DSUzBz9F.js";
7
7
  import { A as L } from "./arrow-right-QEwnX3Sk.js";
8
8
  import { A as M } from "./arrow-left-BIJvHwNQ.js";
9
- import './assets/index-D3QiuZPa.css';/**
9
+ import './assets/index-C7H6hWZh.css';/**
10
10
  * @license lucide-react v0.488.0 - ISC
11
11
  *
12
12
  * This source code is licensed under the ISC license.
package/dist/main.d.ts CHANGED
@@ -252,7 +252,7 @@ declare type CallToActionSection_2 = {
252
252
 
253
253
  export declare function Card({ title, content, footer, imageSrc, imageAlt, onClick, variant, clickable, className, }: CardProps): JSX.Element;
254
254
 
255
- export declare function CardGridBlock({ heading, grid, textReplaceOnHover, callToAction, styleOptions, }: CardGridBlockProps): JSX.Element;
255
+ export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, }: CardGridBlockProps): JSX.Element;
256
256
 
257
257
  declare interface CardGridBlockProps {
258
258
  heading: {
package/dist/main.js CHANGED
@@ -6,7 +6,7 @@ import { Badge as i } from "./core/components/Badge/index.js";
6
6
  import { Box as l } from "./core/components/Box/index.js";
7
7
  import { Breadcrumbs as B } from "./core/components/Breadcrumbs/index.js";
8
8
  import { ButtonGroup as k } from "./core/components/ButtonGroup/index.js";
9
- import { C as u } from "./index-C7H6hWZh.js";
9
+ import { C as u } from "./index-xw6CcoS5.js";
10
10
  import { Card as S } from "./core/components/Card/index.js";
11
11
  import { Carousel as b } from "./core/components/Carousel/index.js";
12
12
  import { Checkbox as A } from "./core/components/Checkbox/index.js";
@@ -1,24 +1,24 @@
1
- import { jsx as c, jsxs as m } from "react/jsx-runtime";
2
- import { useState as w, useEffect as z, useMemo as y } from "react";
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
+ import { useState as z, useEffect as V, useMemo as x } from "react";
3
3
  import '../../../assets/colors.css';import '../../../assets/index.css';import '../../../assets/index5.css';/* empty css */
4
- import { Grid as D } from "../../../core/components/Grid/index.js";
4
+ import { Grid as R } from "../../../core/components/Grid/index.js";
5
5
  import "react-dom";
6
6
  import "../../../core/components/Tabs/index.js";
7
7
  /* empty css */
8
- import { RichText as u } from "../../ui/PortableTextRenderer/index.js";
9
- import { CallToActions as E } from "../../ui/CallToActions/index.js";
10
- import { ProductCard as S } from "../../cards/ProductCard/index.js";
11
- import { GridCard as N } from "../../cards/GridCard/index.js";
12
- import { ServiceCard as A } from "../../cards/ServiceCard/index.js";
13
- import { TestimonialCard as M } from "../../cards/TestimonialCard/index.js";
14
- import { ReviewCard as R } from "../../cards/ReviewCard/index.js";
15
- import { useMediaQuery as j } from "../../hooks/useMediaQuery.js";
8
+ import { RichText as n } from "../../ui/PortableTextRenderer/index.js";
9
+ import { CallToActions as S } from "../../ui/CallToActions/index.js";
10
+ import { ProductCard as D } from "../../cards/ProductCard/index.js";
11
+ import { GridCard as y } from "../../cards/GridCard/index.js";
12
+ import { ServiceCard as M } from "../../cards/ServiceCard/index.js";
13
+ import { TestimonialCard as O } from "../../cards/TestimonialCard/index.js";
14
+ import { ReviewCard as j } from "../../cards/ReviewCard/index.js";
15
+ import { useMediaQuery as A } from "../../hooks/useMediaQuery.js";
16
16
  import { useStyleClasses as B } from "../../hooks/useStyleClasses.js";
17
- const I = "_cardGrid_11um4_1", L = "_container_11um4_7", O = "_heading_11um4_18", P = "_headingHorizontal_11um4_34", Q = "_title_11um4_38", U = "_headingVertical_11um4_47", q = "_description_11um4_58", F = "_disclaimer_11um4_63", J = "_grid_11um4_79", r = {
18
- cardGrid: I,
17
+ const E = "_cardGrid_11um4_1", L = "_container_11um4_7", P = "_heading_11um4_18", I = "_headingHorizontal_11um4_34", Q = "_title_11um4_38", U = "_headingVertical_11um4_47", q = "_description_11um4_58", F = "_disclaimer_11um4_63", J = "_grid_11um4_79", r = {
18
+ cardGrid: E,
19
19
  container: L,
20
- heading: O,
21
- headingHorizontal: P,
20
+ heading: P,
21
+ headingHorizontal: I,
22
22
  title: Q,
23
23
  headingVertical: U,
24
24
  description: q,
@@ -28,61 +28,58 @@ const I = "_cardGrid_11um4_1", L = "_container_11um4_7", O = "_heading_11um4_18"
28
28
  function at({
29
29
  heading: t,
30
30
  grid: s,
31
- textReplaceOnHover: p = !0,
32
31
  callToAction: a,
33
- styleOptions: C
32
+ styleOptions: N
34
33
  }) {
35
- var v;
36
- const [n, _] = w(null), f = j("(max-width: 768px)"), i = B(C), H = {
34
+ var k;
35
+ const [u, p] = z(null), _ = A("(max-width: 768px)"), C = !0, f = B(N), H = {
37
36
  horizontal: r.headingHorizontal,
38
37
  vertical: r.headingVertical
39
38
  }[(t == null ? void 0 : t.headingLayout) ?? "vertical"];
40
- function k(o) {
39
+ function i(o) {
41
40
  for (const l of o)
42
41
  if (!(!l.children || !l.markDefs)) {
43
- for (const e of l.children)
44
- if (e != null && e.marks)
45
- for (const V of e.marks) {
46
- const x = l.markDefs.find((b) => b._key === V);
47
- if (x && x._type === "coloredText")
48
- return e.text;
42
+ for (const c of l.children)
43
+ if (c != null && c.marks)
44
+ for (const b of c.marks) {
45
+ const v = l.markDefs.find((w) => w._key === b);
46
+ if (v && v._type === "coloredText")
47
+ return c.text;
49
48
  }
50
49
  }
51
50
  return null;
52
51
  }
53
- z(() => {
54
- t && t.title && _(k(t.title));
52
+ V(() => {
53
+ t && t.title && p(i(t.title));
55
54
  }, [t]);
56
- const T = y(() => {
57
- if (s != null && s.areas && !f)
55
+ const T = x(() => {
56
+ if (s != null && s.areas && !_)
58
57
  return s == null ? void 0 : s.areas.map((o) => o.trim().split(/\s+/));
59
- }, [s == null ? void 0 : s.areas, f]);
60
- console.log("HEADING", t), console.log("HOVERED", n);
61
- const $ = y(
62
- () => /* @__PURE__ */ c(
63
- u,
58
+ }, [s == null ? void 0 : s.areas, _]), $ = x(
59
+ () => /* @__PURE__ */ e(
60
+ n,
64
61
  {
65
62
  className: r.title,
66
- textOverride: n ?? "",
63
+ textOverride: u ?? "",
67
64
  animateText: (t == null ? void 0 : t.animateText) ?? !1,
68
65
  blocks: t == null ? void 0 : t.title
69
66
  }
70
67
  ),
71
- [t == null ? void 0 : t.title, n, t == null ? void 0 : t.animateText]
68
+ [t == null ? void 0 : t.title, u, t == null ? void 0 : t.animateText]
72
69
  ), G = !(t != null && t.title) && !(t != null && t.description);
73
- return /* @__PURE__ */ c(
70
+ return /* @__PURE__ */ e(
74
71
  "section",
75
72
  {
76
- className: `${r.cardGrid} ${(s == null ? void 0 : s.className) ?? ""} ${i}`,
73
+ className: `${r.cardGrid} ${(s == null ? void 0 : s.className) ?? ""} ${f}`,
77
74
  children: /* @__PURE__ */ m(
78
75
  "article",
79
76
  {
80
- className: `${r.container} ${i.includes("split") ? "split" : "default"}`,
77
+ className: `${r.container} ${f.includes("split") ? "split" : "default"}`,
81
78
  children: [
82
79
  !G && /* @__PURE__ */ m("div", { className: `${r.heading} ${H ?? ""}`, children: [
83
80
  (t == null ? void 0 : t.title) && $,
84
- (t == null ? void 0 : t.description) && /* @__PURE__ */ c(
85
- u,
81
+ (t == null ? void 0 : t.description) && /* @__PURE__ */ e(
82
+ n,
86
83
  {
87
84
  className: r.description,
88
85
  blocks: t == null ? void 0 : t.description
@@ -94,27 +91,27 @@ function at({
94
91
  {
95
92
  className: `${r.grid} ${s != null && s.className && r[s == null ? void 0 : s.className] ? r[s == null ? void 0 : s.className] : (s == null ? void 0 : s.className) ?? ""}`,
96
93
  children: [
97
- /* @__PURE__ */ c(D, { columns: s == null ? void 0 : s.columns, gap: s == null ? void 0 : s.gap, areas: T, children: (v = s == null ? void 0 : s.items) == null ? void 0 : v.map((o) => {
98
- const l = o.title ? k(o.title) : "", e = {
94
+ /* @__PURE__ */ e(R, { columns: s == null ? void 0 : s.columns, gap: s == null ? void 0 : s.gap, areas: T, children: (k = s == null ? void 0 : s.items) == null ? void 0 : k.map((o) => {
95
+ const l = o.title ? i(o.title) : "", c = {
99
96
  gridArea: o.gridArea,
100
97
  onHover: () => {
101
- console.log("HOVER", p), p && _(l);
98
+ console.log("HOVER", C), p(l);
102
99
  },
103
100
  ...o
104
101
  };
105
102
  switch (o.variant) {
106
103
  case "service":
107
- return /* @__PURE__ */ c(A, { ...e }, o._key);
104
+ return /* @__PURE__ */ e(M, { ...c }, o._key);
108
105
  case "grid":
109
- return /* @__PURE__ */ c(N, { ...e }, o._key);
106
+ return /* @__PURE__ */ e(y, { ...c }, o._key);
110
107
  case "image":
111
- return /* @__PURE__ */ c(N, { ...e }, o._key);
108
+ return /* @__PURE__ */ e(y, { ...c }, o._key);
112
109
  case "product":
113
- return /* @__PURE__ */ c(S, { ...e }, o._key);
110
+ return /* @__PURE__ */ e(D, { ...c }, o._key);
114
111
  case "testimonial":
115
- return /* @__PURE__ */ c(M, { ...e }, o._key);
112
+ return /* @__PURE__ */ e(O, { ...c }, o._key);
116
113
  case "review":
117
- return /* @__PURE__ */ c(R, { ...e }, o._key);
114
+ return /* @__PURE__ */ e(j, { ...c }, o._key);
118
115
  default:
119
116
  return /* @__PURE__ */ m("div", { children: [
120
117
  "Unknown item type: ",
@@ -122,15 +119,15 @@ function at({
122
119
  ] }, o._key);
123
120
  }
124
121
  }) }),
125
- a && /* @__PURE__ */ c(
126
- E,
122
+ a && /* @__PURE__ */ e(
123
+ S,
127
124
  {
128
125
  items: a.items,
129
126
  alignment: a.alignment
130
127
  }
131
128
  ),
132
- /* @__PURE__ */ c("div", { children: (t == null ? void 0 : t.disclaimer) && /* @__PURE__ */ c(
133
- u,
129
+ /* @__PURE__ */ e("div", { children: (t == null ? void 0 : t.disclaimer) && /* @__PURE__ */ e(
130
+ n,
134
131
  {
135
132
  className: r.disclaimer,
136
133
  blocks: t == null ? void 0 : t.disclaimer
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
- import { C as e } from "../../../CategoryFilters-DFRdVXYQ.js";
2
+ import { C as e } from "../../../CategoryFilters-CaUTVscB.js";
3
3
  import "../../../chevron-down-DSUzBz9F-BMmG6MOn.js";
4
- import "../../../index-D3QiuZPa-CdCr-7F2.js";
4
+ import "../../../index-C7H6hWZh-BE8PBYD7.js";
5
5
  import "../../../x-CnsEH4Ox.js";
6
6
  export {
7
7
  e as CategoryFilters
@@ -4,14 +4,14 @@ import { RichText as H } from "../../ui/PortableTextRenderer/index.js";
4
4
  import { useStyleClasses as J } from "../../hooks/useStyleClasses.js";
5
5
  import { useLocaleBridge as K } from "../../contexts/LocaleBridge.js";
6
6
  import '../../../assets/colors.css';import '../../../assets/index.css';/* empty css */
7
- import { C as L } from "../../../index-C7H6hWZh.js";
7
+ import { C as L } from "../../../index-xw6CcoS5.js";
8
8
  import { Input as Q } from "../../../core/components/Input/index.js";
9
9
  import "react-dom";
10
10
  import { Select as V } from "../../../core/components/Select/index.js";
11
11
  import "../../../core/components/Tabs/index.js";
12
12
  /* empty css */
13
13
  import { BlogArticleCard as Y } from "../../cards/BlogArticleCard/index.js";
14
- import { s, C as F } from "../../../CategoryFilters-DFRdVXYQ.js";
14
+ import { s, C as F } from "../../../CategoryFilters-CaUTVscB.js";
15
15
  import { X as ee } from "../../../x-CnsEH4Ox.js";
16
16
  const te = [
17
17
  { label: "Newest", value: "date-desc" },
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as X, useEffect as Y } from "react";
3
3
  import { useStyleClasses as Z } from "../../hooks/useStyleClasses.js";
4
4
  import '../../../assets/colors.css';import '../../../assets/index.css';import '../../../assets/index12.css';/* empty css */
5
- import { C as A } from "../../../index-C7H6hWZh.js";
5
+ import { C as A } from "../../../index-xw6CcoS5.js";
6
6
  import "react-dom";
7
7
  import { Tabs as f } from "../../../core/components/Tabs/index.js";
8
8
  /* empty css */
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as r, Fragment as _ } from "react/jsx-runtime";
2
2
  import { useState as f, useEffect as m } from "react";
3
3
  import "../../../chevron-down-DSUzBz9F-BMmG6MOn.js";
4
- import { v as p } from "../../../index-D3QiuZPa-CdCr-7F2.js";
4
+ import { v as p } from "../../../index-C7H6hWZh-BE8PBYD7.js";
5
5
  import '../../../assets/index67.css';const g = "_buttonGroup_15lw8_1", b = "_left_15lw8_16", w = "_center_15lw8_20", y = "_right_15lw8_29", v = "_vertical_15lw8_33", N = "_horizontal_15lw8_37", n = {
6
6
  buttonGroup: g,
7
7
  left: b,
@@ -2,7 +2,7 @@ import { jsxs as y, jsx as n } from "react/jsx-runtime";
2
2
  import v from "next/image";
3
3
  import '../../../assets/colors.css';import '../../../assets/index.css';import '../../../assets/index2.css';/* empty css */
4
4
  import "react";
5
- import { C as O } from "../../../index-C7H6hWZh.js";
5
+ import { C as O } from "../../../index-xw6CcoS5.js";
6
6
  import "react-dom";
7
7
  import "../../../core/components/Tabs/index.js";
8
8
  /* empty css */
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { useState as c, useEffect as b } from "react";
3
3
  import '../../../assets/colors.css';import '../../../assets/index.css';/* empty css */
4
4
  import { ButtonGroup as h } from "../../../core/components/ButtonGroup/index.js";
5
- import { C as l } from "../../../index-C7H6hWZh.js";
5
+ import { C as l } from "../../../index-xw6CcoS5.js";
6
6
  import { Modal as p } from "../../../core/components/Modal/index.js";
7
7
  import "../../../core/components/Tabs/index.js";
8
8
  /* empty css */
package/dist/next.d.ts CHANGED
@@ -65,7 +65,7 @@ declare type CallToActionSection_2 = {
65
65
  callToAction?: Link[] | Link;
66
66
  };
67
67
 
68
- export declare function CardGridBlock({ heading, grid, textReplaceOnHover, callToAction, styleOptions, }: CardGridBlockProps): JSX.Element;
68
+ export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, }: CardGridBlockProps): JSX.Element;
69
69
 
70
70
  declare interface CardGridBlockProps {
71
71
  heading: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.384",
4
+ "version": "0.0.385",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {