quirk-ui 0.0.374 → 0.0.375

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 './assets/index.css';import './assets/CategoryFilters.css';/* empty css */
3
- import { v as u } from "./index-DYQkvBi4-BU42YIP-.js";
3
+ import { v as u } from "./index-xnHGGMQI-iLSPM2oT.js";
4
4
  import { X as m } from "./x-CnsEH4Ox.js";
5
5
  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-xnHGGMQI.js";
3
+ import { C as a } from "../../../index-Btue8cu4.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-xnHGGMQI.js";
2
+ import { C as c } from "../../../index-Btue8cu4.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-xnHGGMQI.js";
2
+ import { C as y } from "../../../index-Btue8cu4.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-BE_Z3sd3.js";
4
4
  import { Modal as ne } from "../Modal/index.js";
5
- import { a as xe, C as ae } from "../../../index-xnHGGMQI.js";
5
+ import { a as xe, C as ae } from "../../../index-Btue8cu4.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-xnHGGMQI.js";
9
+ import { C } from "./index-Btue8cu4.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";
@@ -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-DYQkvBi4.css';/**
9
+ import './assets/index-xnHGGMQI.css';/**
10
10
  * @license lucide-react v0.488.0 - ISC
11
11
  *
12
12
  * This source code is licensed under the ISC license.
@@ -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-D-Ho8Mhr.js";
4
- import './assets/index-DYQkvBi4.css';var O = {
4
+ import './assets/index-xnHGGMQI.css';var O = {
5
5
  color: void 0,
6
6
  size: void 0,
7
7
  className: void 0,
package/dist/main.d.ts CHANGED
@@ -1502,10 +1502,10 @@ declare interface SanityImage {
1502
1502
  layout?: "cover" | "contain" | "none";
1503
1503
  position?: "center" | "top" | "bottom" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
1504
1504
  width?: "full" | "inset" | "half";
1505
+ maxWidth?: string;
1505
1506
  aspectRatio?: "1:1" | "16:9" | "4:3";
1506
1507
  /** Deprecated */
1507
1508
  display?: "default" | "max-width" | "full-bleed";
1508
- maxWidth?: number | string;
1509
1509
  }
1510
1510
 
1511
1511
  export declare function Select({ id, name, label, options, defaultValue, required, disabled, onChange, className, ...restProps }: SelectProps): JSX.Element;
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-xnHGGMQI.js";
9
+ import { C as u } from "./index-Btue8cu4.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,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
- import { C as e } from "../../../CategoryFilters-o4Nh-kj7.js";
2
+ import { C as e } from "../../../CategoryFilters-CERSAkqH.js";
3
3
  import '../../../assets/index.css';/* empty css */
4
- import "../../../index-DYQkvBi4-BU42YIP-.js";
4
+ import "../../../index-xnHGGMQI-iLSPM2oT.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-xnHGGMQI.js";
7
+ import { C as L } from "../../../index-Btue8cu4.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-o4Nh-kj7.js";
14
+ import { s, C as F } from "../../../CategoryFilters-CERSAkqH.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/index11.css';/* empty css */
5
- import { C as A } from "../../../index-xnHGGMQI.js";
5
+ import { C as A } from "../../../index-Btue8cu4.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 '../../../assets/index.css';import '../../../assets/index67.css';/* empty css */
4
- import { v as p } from "../../../index-DYQkvBi4-BU42YIP-.js";
4
+ import { v as p } from "../../../index-xnHGGMQI-iLSPM2oT.js";
5
5
  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,
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, Fragment as p, jsxs as a } from "react/jsx-runtime";
2
- import { useState as O, useEffect as P } from "react";
2
+ import { useState as W, useEffect as g } from "react";
3
3
  import { RichText as f } from "../../ui/PortableTextRenderer/index.js";
4
- import W from "next/image";
4
+ import P from "next/image";
5
5
  import '../../../assets/colors.css';import '../../../assets/index.css';import '../../../assets/index16.css';/* empty css */
6
6
  import { Modal as v } from "../../../core/components/Modal/index.js";
7
7
  import "../../../core/components/Tabs/index.js";
@@ -12,7 +12,7 @@ import { useStyleClasses as E } from "../../hooks/useStyleClasses.js";
12
12
  import "@fortawesome/fontawesome-free/css/all.min.css";
13
13
  import { P as G } from "../../../play-DYgKiSaf.js";
14
14
  import { A as Q } from "../../../arrow-right-QEwnX3Sk.js";
15
- const q = "_cardLink_nhkju_1", H = "_card_nhkju_1", J = "_container_nhkju_20", K = "_icon_nhkju_30", X = "_modalTrigger_nhkju_52", Y = "_callToAction_nhkju_57", Z = "_label_nhkju_58", V = "_cardIcon_nhkju_63", T = "_title_nhkju_70", A = "_description_nhkju_93", ee = "_imageWrapper_nhkju_108", te = "_metric_nhkju_193", re = "_content_nhkju_194", se = "_outerCircle_nhkju_210", ne = "_innerCircle_nhkju_215", oe = "_metricLabel_nhkju_221", ie = "_textOnly_nhkju_229", ae = "_fullBleed_nhkju_261", ce = "_imageTop_nhkju_302", le = "_imageBottom_nhkju_323", de = "_imageLeft_nhkju_350", _e = "_imageRight_nhkju_360", ue = "_containImage_nhkju_410", he = "_fullBleedImage_nhkju_414", me = "_image_nhkju_108", pe = "_eyebrow_nhkju_495", fe = "_cta_nhkju_507", ke = "_secondary_nhkju_508", t = {
15
+ const q = "_cardLink_nhkju_1", H = "_card_nhkju_1", J = "_container_nhkju_20", K = "_icon_nhkju_30", X = "_modalTrigger_nhkju_52", Y = "_callToAction_nhkju_57", Z = "_label_nhkju_58", V = "_cardIcon_nhkju_63", T = "_title_nhkju_70", A = "_description_nhkju_93", ee = "_imageWrapper_nhkju_108", te = "_metric_nhkju_193", re = "_content_nhkju_194", se = "_outerCircle_nhkju_210", ne = "_innerCircle_nhkju_215", oe = "_metricLabel_nhkju_221", ie = "_textOnly_nhkju_229", ae = "_fullBleed_nhkju_261", ce = "_imageTop_nhkju_302", le = "_imageBottom_nhkju_323", de = "_imageLeft_nhkju_350", _e = "_imageRight_nhkju_360", he = "_containImage_nhkju_410", ue = "_fullBleedImage_nhkju_414", me = "_image_nhkju_108", pe = "_eyebrow_nhkju_495", fe = "_cta_nhkju_507", ke = "_secondary_nhkju_508", t = {
16
16
  cardLink: q,
17
17
  card: H,
18
18
  container: J,
@@ -35,8 +35,8 @@ const q = "_cardLink_nhkju_1", H = "_card_nhkju_1", J = "_container_nhkju_20", K
35
35
  imageBottom: le,
36
36
  imageLeft: de,
37
37
  imageRight: _e,
38
- containImage: ue,
39
- fullBleedImage: he,
38
+ containImage: he,
39
+ fullBleedImage: ue,
40
40
  image: me,
41
41
  eyebrow: pe,
42
42
  cta: fe,
@@ -48,7 +48,7 @@ function Ue({
48
48
  metricValue: l,
49
49
  eyebrow: d,
50
50
  title: _,
51
- description: u,
51
+ description: h,
52
52
  image: e,
53
53
  icon: j,
54
54
  callToAction: r,
@@ -57,8 +57,8 @@ function Ue({
57
57
  gridArea: y,
58
58
  styleOptions: I
59
59
  }) {
60
- const [b, B] = O(void 0), C = E(I);
61
- P(() => {
60
+ const [b, B] = W(void 0), C = E(I);
61
+ g(() => {
62
62
  async function n() {
63
63
  if ((r == null ? void 0 : r.type) === "link" || (r == null ? void 0 : r.type) === "download") {
64
64
  const i = await S(r);
@@ -71,7 +71,7 @@ function Ue({
71
71
  if ((e == null ? void 0 : e.layout) === "cover")
72
72
  o.objectFit = "cover", e != null && e.position && (o.objectPosition = c ? "top" : e == null ? void 0 : e.position);
73
73
  else if ((e == null ? void 0 : e.layout) === "contain") {
74
- if (o.objectFit = "contain", (e == null ? void 0 : e.width) === "half" ? o.width = c ? "100%" : "50%" : (e == null ? void 0 : e.width) === "inset" ? o.width = c ? "100%" : "75%" : o.width = "100%", e != null && e.aspectRatio) {
74
+ if (o.objectFit = "contain", (e == null ? void 0 : e.width) === "half" ? o.width = c ? "100%" : "50%" : (e == null ? void 0 : e.width) === "inset" ? (o.width = c ? "100%" : "75%", o.maxWidth = e.maxWidth ?? "unset") : o.width = "100%", e != null && e.aspectRatio) {
75
75
  const [n, i] = e == null ? void 0 : e.aspectRatio.split(":").map(Number);
76
76
  o.aspectRatio = `${n}/${i}`;
77
77
  }
@@ -86,7 +86,7 @@ function Ue({
86
86
  "image-top": t.imageTop,
87
87
  "image-bottom": t.imageBottom
88
88
  }[x || "text"], R = /* @__PURE__ */ s(p, { children: e && e.imageUrl ? /* @__PURE__ */ s("div", { className: t.imageWrapper, children: /* @__PURE__ */ s(
89
- W,
89
+ P,
90
90
  {
91
91
  src: e.imageUrl,
92
92
  alt: (e == null ? void 0 : e.asset.altText) || (e == null ? void 0 : e.asset.description) || "Card image",
@@ -97,7 +97,7 @@ function Ue({
97
97
  }
98
98
  ) }) : null }), U = ({ value: n }) => {
99
99
  if (n && n.includes("%")) {
100
- const m = 2 * Math.PI * 57.5, F = m - parseFloat(n) / 100 * m;
100
+ const m = 2 * Math.PI * 57.5, O = m - parseFloat(n) / 100 * m;
101
101
  return /* @__PURE__ */ a("svg", { width: 125, height: 125, viewBox: "0 0 125 125", children: [
102
102
  /* @__PURE__ */ s(
103
103
  "circle",
@@ -118,7 +118,7 @@ function Ue({
118
118
  r: 57.5,
119
119
  fill: "none",
120
120
  strokeDasharray: m,
121
- strokeDashoffset: F,
121
+ strokeDashoffset: O,
122
122
  strokeLinecap: "round",
123
123
  transform: `rotate(-90 ${125 / 2} ${125 / 2})`
124
124
  }
@@ -137,7 +137,7 @@ function Ue({
137
137
  ] });
138
138
  }
139
139
  return /* @__PURE__ */ s("div", { className: t.metric });
140
- }, M = !l && !d && !_ && !u, N = /* @__PURE__ */ a(p, { children: [
140
+ }, M = !l && !d && !_ && !h, N = /* @__PURE__ */ a(p, { children: [
141
141
  /* @__PURE__ */ a(
142
142
  "div",
143
143
  {
@@ -148,7 +148,7 @@ function Ue({
148
148
  l && /* @__PURE__ */ s(U, { value: l }),
149
149
  d && /* @__PURE__ */ s(f, { className: t.eyebrow, blocks: d }),
150
150
  _ && /* @__PURE__ */ s(f, { className: t.title, blocks: _ }),
151
- u && /* @__PURE__ */ s(f, { className: t.description, blocks: u })
151
+ h && /* @__PURE__ */ s(f, { className: t.description, blocks: h })
152
152
  ] }),
153
153
  R
154
154
  ]
@@ -162,8 +162,8 @@ function Ue({
162
162
  /* @__PURE__ */ s("div", { className: t.label, children: r.label }),
163
163
  /* @__PURE__ */ s("div", { className: t.cardIcon, children: /* @__PURE__ */ s(Q, { size: 45 }) })
164
164
  ] })
165
- ] }), g = ({ children: n }) => {
166
- var i, h;
165
+ ] }), F = ({ children: n }) => {
166
+ var i, u;
167
167
  switch (r == null ? void 0 : r.type) {
168
168
  case "link":
169
169
  return /* @__PURE__ */ s(
@@ -173,7 +173,7 @@ function Ue({
173
173
  "aria-label": r.ariaLabel || r.label,
174
174
  href: b,
175
175
  target: ((i = r.linkOptions) == null ? void 0 : i.linkType) === "external" ? "_blank" : "_self",
176
- rel: ((h = r.linkOptions) == null ? void 0 : h.linkType) === "external" ? "noopener noreferrer" : "",
176
+ rel: ((u = r.linkOptions) == null ? void 0 : u.linkType) === "external" ? "noopener noreferrer" : "",
177
177
  children: n
178
178
  }
179
179
  );
@@ -217,7 +217,7 @@ function Ue({
217
217
  onMouseEnter: L,
218
218
  onMouseLeave: w,
219
219
  style: y && !c ? { gridArea: y } : {},
220
- children: (r == null ? void 0 : r.type) !== "none" ? /* @__PURE__ */ s(g, { children: N }) : /* @__PURE__ */ s(p, { children: N })
220
+ children: (r == null ? void 0 : r.type) !== "none" ? /* @__PURE__ */ s(F, { children: N }) : /* @__PURE__ */ s(p, { children: N })
221
221
  }
222
222
  );
223
223
  }
@@ -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-xnHGGMQI.js";
5
+ import { C as O } from "../../../index-Btue8cu4.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-xnHGGMQI.js";
5
+ import { C as l } from "../../../index-Btue8cu4.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
@@ -517,10 +517,10 @@ declare interface SanityImage {
517
517
  layout?: "cover" | "contain" | "none";
518
518
  position?: "center" | "top" | "bottom" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
519
519
  width?: "full" | "inset" | "half";
520
+ maxWidth?: string;
520
521
  aspectRatio?: "1:1" | "16:9" | "4:3";
521
522
  /** Deprecated */
522
523
  display?: "default" | "max-width" | "full-bleed";
523
- maxWidth?: number | string;
524
524
  }
525
525
 
526
526
  export declare type SingletonBlockProps = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.374",
4
+ "version": "0.0.375",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {