quirk-ui 0.1.104 → 0.1.106

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
- "use strict";const t=require("react/jsx-runtime"),e=require("../../../react.esm-C_9Ma9mj.cjs"),r=require("./index.cjs");require("../../../index-CW_Ehh1q.cjs");e.describe("Stack",()=>{e.describe("Rendering",()=>{e.it("renders children",()=>{e.render(t.jsxs(r.Stack,{children:[t.jsx("div",{children:"Item 1"}),t.jsx("div",{children:"Item 2"})]})),e.globalExpect(e.screen.getByText("Item 1")).toBeInTheDocument(),e.globalExpect(e.screen.getByText("Item 2")).toBeInTheDocument()}),e.it("renders with default props",()=>{const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("stack","vertical","gapMd","alignStretch","justifyStart")}),e.it("renders as div by default",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("DIV")})}),e.describe("Direction",()=>{e.it("renders vertical direction (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"vertical",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("vertical")}),e.it("renders horizontal direction",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"horizontal",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("horizontal")})}),e.describe("Gap Sizes",()=>{e.it("renders xs gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"xs",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapXs")}),e.it("renders sm gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"sm",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapSm")}),e.it("renders md gap (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"md",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapMd")}),e.it("renders lg gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"lg",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapLg")}),e.it("renders xl gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"xl",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapXl")}),e.it("renders 2xl gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"2xl",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gap2xl")})}),e.describe("Custom Gap",()=>{e.it("accepts custom gap as number",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:24,children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("24px")}),e.it("accepts custom gap as string",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"2.5rem",children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("2.5rem")}),e.it("accepts percentage gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"10%",children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("10%")})}),e.describe("Alignment",()=>{e.it("renders start alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"start",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignStart")}),e.it("renders center alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"center",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignCenter")}),e.it("renders end alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"end",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignEnd")}),e.it("renders stretch alignment (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"stretch",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignStretch")}),e.it("renders baseline alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"baseline",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignBaseline")})}),e.describe("Justify",()=>{e.it("renders start justify (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"start",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifyStart")}),e.it("renders center justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"center",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifyCenter")}),e.it("renders end justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"end",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifyEnd")}),e.it("renders space-between justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"space-between",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifySpaceBetween")}),e.it("renders space-around justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"space-around",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifySpaceAround")}),e.it("renders space-evenly justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"space-evenly",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifySpaceEvenly")})}),e.describe("Wrap",()=>{e.it("does not wrap by default",()=>{const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).not.toHaveClass("wrap")}),e.it("applies wrap class when wrap is true",()=>{const{container:i}=e.render(t.jsx(r.Stack,{wrap:!0,children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("wrap")})}),e.describe("As Prop (Polymorphic)",()=>{e.it("renders as div by default",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("DIV")}),e.it("renders as ul",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"ul",children:t.jsx("li",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("UL")}),e.it("renders as ol",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"ol",children:t.jsx("li",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("OL")}),e.it("renders as nav",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"nav",children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("NAV")}),e.it("renders as section",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"section",children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("SECTION")}),e.it("renders as article",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"article",children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("ARTICLE")})}),e.describe("Custom Styling",()=>{e.it("applies custom className",()=>{const{container:i}=e.render(t.jsx(r.Stack,{className:"custom-stack",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("custom-stack")}),e.it("applies custom inline styles",()=>{const{container:i}=e.render(t.jsx(r.Stack,{style:{backgroundColor:"red"},children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.backgroundColor).toBe("red")}),e.it("merges custom style with gap style",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:16,style:{padding:"1rem"},children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("16px"),e.globalExpect(s.style.padding).toBe("1rem")})}),e.describe("Props Forwarding",()=>{e.it("forwards HTML attributes",()=>{const{container:i}=e.render(t.jsx(r.Stack,{"data-testid":"test-stack",id:"my-stack",children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s).toHaveAttribute("data-testid","test-stack"),e.globalExpect(s).toHaveAttribute("id","my-stack")}),e.it("forwards event handlers",()=>{const i=e.vi.fn(),{container:s}=e.render(t.jsx(r.Stack,{onClick:i,children:t.jsx("div",{children:"Item"})}));s.firstChild.click(),e.globalExpect(i).toHaveBeenCalledTimes(1)})}),e.describe("Combined Props",()=>{e.it("combines direction, gap, align, and justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"horizontal",gap:"lg",align:"center",justify:"space-between",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("stack","horizontal","gapLg","alignCenter","justifySpaceBetween")}),e.it("combines all props including wrap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"horizontal",gap:"sm",align:"center",justify:"center",wrap:!0,className:"custom",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("stack","horizontal","gapSm","alignCenter","justifyCenter","wrap","custom")})})});
1
+ "use strict";const t=require("react/jsx-runtime"),e=require("../../../react.esm-C_9Ma9mj.cjs"),r=require("./index.cjs");require("../../../index-CW_Ehh1q.cjs");e.describe("Stack",()=>{e.describe("Rendering",()=>{e.it("renders children",()=>{e.render(t.jsxs(r.Stack,{children:[t.jsx("div",{children:"Item 1"}),t.jsx("div",{children:"Item 2"})]})),e.globalExpect(e.screen.getByText("Item 1")).toBeInTheDocument(),e.globalExpect(e.screen.getByText("Item 2")).toBeInTheDocument()}),e.it("renders with default props",()=>{const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("stack","vertical","gapMd","alignStretch","justifyStart")}),e.it("renders as div by default",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("DIV")})}),e.describe("Direction",()=>{e.it("renders vertical direction (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"vertical",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("vertical")}),e.it("renders horizontal direction",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"horizontal",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("horizontal")})}),e.describe("Gap Sizes",()=>{e.it("renders xs gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"xs",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapXs")}),e.it("renders sm gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"sm",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapSm")}),e.it("renders md gap (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"md",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapMd")}),e.it("renders lg gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"lg",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapLg")}),e.it("renders xl gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"xl",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("gapXl")})}),e.describe("Custom Gap",()=>{e.it("accepts custom gap as number",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:24,children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("24px")}),e.it("accepts custom gap as string",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"2.5rem",children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("2.5rem")}),e.it("accepts percentage gap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:"10%",children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("10%")})}),e.describe("Alignment",()=>{e.it("renders start alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"start",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignStart")}),e.it("renders center alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"center",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignCenter")}),e.it("renders end alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"end",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignEnd")}),e.it("renders stretch alignment (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"stretch",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignStretch")}),e.it("renders baseline alignment",()=>{const{container:i}=e.render(t.jsx(r.Stack,{align:"baseline",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("alignBaseline")})}),e.describe("Justify",()=>{e.it("renders start justify (default)",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"start",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifyStart")}),e.it("renders center justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"center",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifyCenter")}),e.it("renders end justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"end",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifyEnd")}),e.it("renders space-between justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"space-between",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifySpaceBetween")}),e.it("renders space-around justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"space-around",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifySpaceAround")}),e.it("renders space-evenly justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{justify:"space-evenly",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("justifySpaceEvenly")})}),e.describe("Wrap",()=>{e.it("does not wrap by default",()=>{const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).not.toHaveClass("wrap")}),e.it("applies wrap class when wrap is true",()=>{const{container:i}=e.render(t.jsx(r.Stack,{wrap:!0,children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("wrap")})}),e.describe("As Prop (Polymorphic)",()=>{e.it("renders as div by default",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("DIV")}),e.it("renders as ul",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"ul",children:t.jsx("li",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("UL")}),e.it("renders as ol",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"ol",children:t.jsx("li",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("OL")}),e.it("renders as nav",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"nav",children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("NAV")}),e.it("renders as section",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"section",children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("SECTION")}),e.it("renders as article",()=>{var s;const{container:i}=e.render(t.jsx(r.Stack,{as:"article",children:t.jsx("div",{children:"Item"})}));e.globalExpect((s=i.firstChild)==null?void 0:s.nodeName).toBe("ARTICLE")})}),e.describe("Custom Styling",()=>{e.it("applies custom className",()=>{const{container:i}=e.render(t.jsx(r.Stack,{className:"custom-stack",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("custom-stack")}),e.it("applies custom inline styles",()=>{const{container:i}=e.render(t.jsx(r.Stack,{style:{backgroundColor:"red"},children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.backgroundColor).toBe("red")}),e.it("merges custom style with gap style",()=>{const{container:i}=e.render(t.jsx(r.Stack,{gap:16,style:{padding:"1rem"},children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s.style.gap).toBe("16px"),e.globalExpect(s.style.padding).toBe("1rem")})}),e.describe("Props Forwarding",()=>{e.it("forwards HTML attributes",()=>{const{container:i}=e.render(t.jsx(r.Stack,{"data-testid":"test-stack",id:"my-stack",children:t.jsx("div",{children:"Item"})})),s=i.firstChild;e.globalExpect(s).toHaveAttribute("data-testid","test-stack"),e.globalExpect(s).toHaveAttribute("id","my-stack")}),e.it("forwards event handlers",()=>{const i=e.vi.fn(),{container:s}=e.render(t.jsx(r.Stack,{onClick:i,children:t.jsx("div",{children:"Item"})}));s.firstChild.click(),e.globalExpect(i).toHaveBeenCalledTimes(1)})}),e.describe("Combined Props",()=>{e.it("combines direction, gap, align, and justify",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"horizontal",gap:"lg",align:"center",justify:"space-between",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("stack","horizontal","gapLg","alignCenter","justifySpaceBetween")}),e.it("combines all props including wrap",()=>{const{container:i}=e.render(t.jsx(r.Stack,{direction:"horizontal",gap:"sm",align:"center",justify:"center",wrap:!0,className:"custom",children:t.jsx("div",{children:"Item"})}));e.globalExpect(i.firstChild).toHaveClass("stack","horizontal","gapSm","alignCenter","justifyCenter","wrap","custom")})})});
@@ -67,11 +67,6 @@ c("Stack", () => {
67
67
  /* @__PURE__ */ e(s, { gap: "xl", children: /* @__PURE__ */ e("div", { children: "Item" }) })
68
68
  );
69
69
  i(t.firstChild).toHaveClass("gapXl");
70
- }), n("renders 2xl gap", () => {
71
- const { container: t } = r(
72
- /* @__PURE__ */ e(s, { gap: "2xl", children: /* @__PURE__ */ e("div", { children: "Item" }) })
73
- );
74
- i(t.firstChild).toHaveClass("gap2xl");
75
70
  });
76
71
  }), c("Custom Gap", () => {
77
72
  n("accepts custom gap as number", () => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index57.css');const w=require("react/jsx-runtime"),j="_stack_bxyw0_2",x="_vertical_bxyw0_7",b="_horizontal_bxyw0_11",d="_wrap_bxyw0_16",v="_gapXs_bxyw0_21",C="_gapSm_bxyw0_25",m="_gapMd_bxyw0_29",E="_gapLg_bxyw0_33",h="_gapXl_bxyw0_37",B="_alignStart_bxyw0_42",M="_alignCenter_bxyw0_46",X="_alignEnd_bxyw0_50",k="_alignStretch_bxyw0_54",z="_alignBaseline_bxyw0_58",A="_justifyStart_bxyw0_63",L="_justifyCenter_bxyw0_67",$="_justifyEnd_bxyw0_71",q="_justifySpaceBetween_bxyw0_75",T="_justifySpaceAround_bxyw0_79",G="_justifySpaceEvenly_bxyw0_83",t={stack:j,vertical:x,horizontal:b,wrap:d,gapXs:v,gapSm:C,gapMd:m,gapLg:E,gapXl:h,alignStart:B,alignCenter:M,alignEnd:X,alignStretch:k,alignBaseline:z,justifyStart:A,justifyCenter:L,justifyEnd:$,justifySpaceBetween:q,justifySpaceAround:T,justifySpaceEvenly:G},N={vertical:t.vertical,horizontal:t.horizontal},s={xs:t.gapXs,sm:t.gapSm,md:t.gapMd,lg:t.gapLg,xl:t.gapXl,"2xl":t.gap2xl},O={start:t.alignStart,center:t.alignCenter,end:t.alignEnd,stretch:t.alignStretch,baseline:t.alignBaseline},P={start:t.justifyStart,center:t.justifyCenter,end:t.justifyEnd,"space-between":t.justifySpaceBetween,"space-around":t.justifySpaceAround,"space-evenly":t.justifySpaceEvenly};function D({direction:i="vertical",gap:a="md",align:c="stretch",justify:l="start",wrap:r=!1,as:_="div",className:o,style:y,children:g,...p}){const u=_,e={};let n="";if(typeof a=="string"&&a in s)n=s[a];else{const f=typeof a=="number"?`${a}px`:a;e.gap=f}const S=[t.stack,N[i],n,O[c],P[l],r?t.wrap:"",o??""].filter(Boolean).join(" ");return w.jsx(u,{className:S,style:{...e,...y},...p,children:g})}exports.Stack=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index57.css');const w=require("react/jsx-runtime"),j="_stack_bxyw0_2",b="_vertical_bxyw0_7",d="_horizontal_bxyw0_11",x="_wrap_bxyw0_16",v="_gapXs_bxyw0_21",C="_gapSm_bxyw0_25",m="_gapMd_bxyw0_29",E="_gapLg_bxyw0_33",h="_gapXl_bxyw0_37",B="_alignStart_bxyw0_42",M="_alignCenter_bxyw0_46",X="_alignEnd_bxyw0_50",k="_alignStretch_bxyw0_54",z="_alignBaseline_bxyw0_58",A="_justifyStart_bxyw0_63",L="_justifyCenter_bxyw0_67",$="_justifyEnd_bxyw0_71",q="_justifySpaceBetween_bxyw0_75",T="_justifySpaceAround_bxyw0_79",G="_justifySpaceEvenly_bxyw0_83",t={stack:j,vertical:b,horizontal:d,wrap:x,gapXs:v,gapSm:C,gapMd:m,gapLg:E,gapXl:h,alignStart:B,alignCenter:M,alignEnd:X,alignStretch:k,alignBaseline:z,justifyStart:A,justifyCenter:L,justifyEnd:$,justifySpaceBetween:q,justifySpaceAround:T,justifySpaceEvenly:G},N={vertical:t.vertical,horizontal:t.horizontal},s={xs:t.gapXs,sm:t.gapSm,md:t.gapMd,lg:t.gapLg,xl:t.gapXl},O={start:t.alignStart,center:t.alignCenter,end:t.alignEnd,stretch:t.alignStretch,baseline:t.alignBaseline},P={start:t.justifyStart,center:t.justifyCenter,end:t.justifyEnd,"space-between":t.justifySpaceBetween,"space-around":t.justifySpaceAround,"space-evenly":t.justifySpaceEvenly};function D({direction:i="vertical",gap:a="md",align:c="stretch",justify:l="start",wrap:r=!1,as:_="div",className:o,style:y,children:g,...p}){const u=_,e={};let n="";if(typeof a=="string"&&a in s)n=s[a];else{const f=typeof a=="number"?`${a}px`:a;e.gap=f}const S=[t.stack,N[i],n,O[c],P[l],r?t.wrap:"",o??""].filter(Boolean).join(" ");return w.jsx(u,{className:S,style:{...e,...y},...p,children:g})}exports.Stack=D;
@@ -28,8 +28,7 @@ import '../../../index57.css';const j = "_stack_bxyw0_2", x = "_vertical_bxyw0_7
28
28
  sm: t.gapSm,
29
29
  md: t.gapMd,
30
30
  lg: t.gapLg,
31
- xl: t.gapXl,
32
- "2xl": t.gap2xl
31
+ xl: t.gapXl
33
32
  }, D = {
34
33
  start: t.alignStart,
35
34
  center: t.alignCenter,
package/dist/core.d.ts CHANGED
@@ -512,7 +512,6 @@ declare const gapClassMap: {
512
512
  readonly md: string;
513
513
  readonly lg: string;
514
514
  readonly xl: string;
515
- readonly "2xl": any;
516
515
  };
517
516
 
518
517
  export declare function Grid({ columns, rows, gap, rowGap, columnGap, areas, autoFit, autoFitMinMax, alignItems, justifyItems, justifyContent, alignContent, fullHeight, className, style, children, ...restProps }: GridProps): JSX.Element;
package/dist/index10.css CHANGED
@@ -1 +1 @@
1
- ._markdownBlock_1h9o1_8{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._maxWidthSm_1h9o1_16{max-width:640px}._maxWidthMd_1h9o1_19{max-width:800px}._maxWidthLg_1h9o1_22{max-width:1000px}._maxWidthFull_1h9o1_25{max-width:100%}._container_1h9o1_4{width:100%;margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_1h9o1_4 h1{font-size:var(--font-size-h1, 2.5rem);font-weight:var(--font-weight-bold, 700);letter-spacing:-.02em;margin-bottom:var(--spacing-md);border-bottom:2px solid var(--color-border)}._container_1h9o1_4 h2{font-size:var(--font-size-h2, 2rem);font-weight:var(--font-weight-bold, 700);letter-spacing:-.01em;margin-top:var(--spacing-xl, 3rem);margin-bottom:var(--spacing-md);border-bottom:1px solid var(--color-border)}._container_1h9o1_4 h3{font-size:var(--font-size-h4, 1.75rem);font-weight:var(--font-weight-semibold, 600);margin-top:var(--spacing-xl);margin-bottom:var(--spacing-md)}._container_1h9o1_4 h4{font-size:var(--font-size-h5, 1.5rem);font-weight:var(--font-weight-semibold, 600);margin-top:var(--spacing-xl);margin-bottom:var(--spacing-md)}._container_1h9o1_4 p{font-family:var(--font-family-primary, inherit);font-size:var(--font-size-md);line-height:var(--line-height-loose);color:var(--color-text-primary);margin:0}._container_1h9o1_4 ul,._container_1h9o1_4 ol{display:flex;flex-direction:column;padding-left:var(--spacing-lg, 1.5rem);margin:0}._container_1h9o1_4 ul{list-style:disc}._container_1h9o1_4 ol{list-style:decimal}._container_1h9o1_4 li{font-size:var(--font-size-md);line-height:var(--line-height-relaxed, 1.75);color:var(--color-text-primary)}._container_1h9o1_4 :not(pre)>code{font-family:var(--font-family-mono, "Fira Code", "Courier New", monospace);font-size:.875em;background-color:var(--color-secondary-10);color:var(--color-primary-100);padding:.1em .4em;border-radius:var(--radius-sm)}._container_1h9o1_4 pre{border-radius:var(--radius-md);border:1px solid var(--color-border);overflow:hidden;background-color:var(--color-secondary-10);margin:var(--spacing-md) 0}._container_1h9o1_4 pre code{display:block;padding:var(--spacing-lg);overflow-x:auto;-webkit-overflow-scrolling:touch;font-family:var( --font-family-mono, "Fira Code", "Courier New", monospace );font-size:var(--font-size-sm);line-height:1.6;color:var(--color-text-primary);white-space:pre;background:none;border:none;border-radius:0;padding-top:var(--spacing-lg)}._container_1h9o1_4 blockquote{border-left:4px solid var(--color-primary-100);padding:var(--spacing-md) var(--spacing-lg);background-color:var(--color-primary-10);border-radius:0 var(--radius-md) var(--radius-md) 0;font-style:italic}._container_1h9o1_4 blockquote p{margin:0;color:var(--color-text-primary)}._container_1h9o1_4 table{width:100%;border-collapse:collapse;font-size:var(--font-size-sm);display:table;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border:1px solid var(--color-border);border-radius:var(--radius-md);scrollbar-color:var(--color-secondary-50, #d0d0d0) var(--color-secondary-10, #f0f0f0);scrollbar-width:thin}@media (max-width: 767px){._container_1h9o1_4 table{display:block}}._container_1h9o1_4 table::-webkit-scrollbar{height:8px}._container_1h9o1_4 table::-webkit-scrollbar-track{background:transparent;border-radius:4px}._container_1h9o1_4 table::-webkit-scrollbar-thumb{background:var(--color-secondary-50, #d0d0d0);border-radius:4px}._container_1h9o1_4 table::-webkit-scrollbar-thumb:hover{background:var(--color-secondary-75, #b0b0b0)}._container_1h9o1_4 thead{background-color:var(--color-secondary-10)}@media (max-width: 767px){._container_1h9o1_4 table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}._container_1h9o1_4 th,._container_1h9o1_4 td{padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-sm);white-space:nowrap}._container_1h9o1_4 th{text-align:left;font-weight:var(--font-weight-semibold);color:var(--color-text-primary);background-color:var(--color-secondary-10);border-bottom:2px solid var(--color-border)}._container_1h9o1_4 td{text-align:left;color:var(--color-text-secondary);border-bottom:1px solid var(--color-border);vertical-align:top}._container_1h9o1_4 tr:last-child td{border-bottom:none}._container_1h9o1_4 hr{border:none;border-top:1px solid var(--color-border);margin:var(--spacing-xl) 0}._container_1h9o1_4 a{color:var(--color-primary-100);text-decoration:underline;text-underline-offset:2px;transition:color .2s ease}._container_1h9o1_4 a:hover{color:var(--color-primary-75)}._container_1h9o1_4 img{max-width:100%;height:auto;border-radius:var(--radius-md);border:1px solid var(--color-border)}._container_1h9o1_4 input[type=checkbox]{margin-right:var(--spacing-xs);accent-color:var(--color-primary-100)}
1
+ ._markdownBlock_lbx6l_8{width:100%}._maxWidthSm_lbx6l_14{max-width:640px}._maxWidthMd_lbx6l_17{max-width:800px}._maxWidthLg_lbx6l_20{max-width:1000px}._maxWidthFull_lbx6l_23{max-width:100%}._container_lbx6l_4{width:100%;margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_lbx6l_4>*+*{margin-bottom:var(--spacing-md)}._container_lbx6l_4>*+*:last-child{margin-bottom:0}._container_lbx6l_4 h1{font-size:var(--font-size-h1, 2.5rem);font-weight:var(--font-weight-bold, 700);letter-spacing:-.02em;margin-bottom:var(--spacing-md);border-bottom:2px solid var(--color-border)}._container_lbx6l_4 h2{font-size:var(--font-size-h3, 2rem);font-weight:var(--font-weight-bold, 700);letter-spacing:-.01em;margin-top:var(--spacing-xl, 3rem);margin-bottom:var(--spacing-md);border-bottom:1px solid var(--color-border)}._container_lbx6l_4 h3{font-size:var(--font-size-h5, 1.75rem);font-weight:var(--font-weight-semibold, 600);margin-top:var(--spacing-xl);margin-bottom:var(--spacing-md)}._container_lbx6l_4 h4{font-size:var(--font-size-h6, 1.5rem);font-weight:var(--font-weight-semibold, 600);margin-top:var(--spacing-xl);margin-bottom:var(--spacing-md)}._container_lbx6l_4 p{font-family:var(--font-family-primary, inherit);font-size:var(--font-size-md);line-height:var(--line-height-loose);color:var(--color-text-primary);margin:0}._container_lbx6l_4 ul,._container_lbx6l_4 ol{display:flex;flex-direction:column;padding-left:var(--spacing-lg, 1.5rem);margin:0}._container_lbx6l_4 ul{list-style:disc}._container_lbx6l_4 ol{list-style:decimal}._container_lbx6l_4 li{font-size:var(--font-size-md);line-height:var(--line-height-relaxed, 1.75);color:var(--color-text-primary)}._container_lbx6l_4 :not(pre)>code{font-family:var(--font-family-mono, "Fira Code", "Courier New", monospace);font-size:.875em;background-color:var(--color-secondary-10);color:var(--color-primary-100);padding:.1em .4em;border-radius:var(--radius-sm)}._container_lbx6l_4 pre{border-radius:var(--radius-md);border:1px solid var(--color-border);overflow:hidden;background-color:var(--color-secondary-10);margin:var(--spacing-md) 0}._container_lbx6l_4 pre code{display:block;padding:var(--spacing-lg);overflow-x:auto;-webkit-overflow-scrolling:touch;font-family:var( --font-family-mono, "Fira Code", "Courier New", monospace );font-size:var(--font-size-sm);line-height:1.6;color:var(--color-text-primary);white-space:pre;background:none;border:none;border-radius:0;padding-top:var(--spacing-lg)}._container_lbx6l_4 blockquote{border-left:4px solid var(--color-primary-100);padding:var(--spacing-md) var(--spacing-lg);background-color:var(--color-primary-10);border-radius:0 var(--radius-md) var(--radius-md) 0;font-style:italic}._container_lbx6l_4 blockquote p{margin:0;color:var(--color-text-primary)}._container_lbx6l_4 table{width:100%;border-collapse:collapse;font-size:var(--font-size-sm);display:table;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border:1px solid var(--color-border);border-radius:var(--radius-md);scrollbar-color:var(--color-secondary-50, #d0d0d0) var(--color-secondary-10, #f0f0f0);scrollbar-width:thin}@media (max-width: 767px){._container_lbx6l_4 table{display:block}}._container_lbx6l_4 table::-webkit-scrollbar{height:8px}._container_lbx6l_4 table::-webkit-scrollbar-track{background:transparent;border-radius:4px}._container_lbx6l_4 table::-webkit-scrollbar-thumb{background:var(--color-secondary-50, #d0d0d0);border-radius:4px}._container_lbx6l_4 table::-webkit-scrollbar-thumb:hover{background:var(--color-secondary-75, #b0b0b0)}._container_lbx6l_4 thead{background-color:var(--color-secondary-10)}@media (max-width: 767px){._container_lbx6l_4 table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}._container_lbx6l_4 th,._container_lbx6l_4 td{padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-sm);white-space:nowrap}._container_lbx6l_4 th{text-align:left;font-weight:var(--font-weight-semibold);color:var(--color-text-primary);background-color:var(--color-secondary-10);border-bottom:2px solid var(--color-border)}._container_lbx6l_4 td{text-align:left;color:var(--color-text-secondary);border-bottom:1px solid var(--color-border);vertical-align:top}._container_lbx6l_4 tr:last-child td{border-bottom:none}._container_lbx6l_4 hr{border:none;border-top:1px solid var(--color-border);margin:var(--spacing-xl) 0}._container_lbx6l_4 a{color:var(--color-primary-100);text-decoration:underline;text-underline-offset:2px;transition:color .2s ease}._container_lbx6l_4 a:hover{color:var(--color-primary-75)}._container_lbx6l_4 img{max-width:100%;height:auto;border-radius:var(--radius-md);border:1px solid var(--color-border)}._container_lbx6l_4 input[type=checkbox]{margin-right:var(--spacing-xs);accent-color:var(--color-primary-100)}
@@ -1,10 +1,10 @@
1
1
  declare const styles: {
2
- readonly "_container_1h9o1_4": string;
3
- readonly "_markdownBlock_1h9o1_8": string;
4
- readonly "_maxWidthFull_1h9o1_25": string;
5
- readonly "_maxWidthLg_1h9o1_22": string;
6
- readonly "_maxWidthMd_1h9o1_19": string;
7
- readonly "_maxWidthSm_1h9o1_16": string;
2
+ readonly "_container_lbx6l_4": string;
3
+ readonly "_markdownBlock_lbx6l_8": string;
4
+ readonly "_maxWidthFull_lbx6l_23": string;
5
+ readonly "_maxWidthLg_lbx6l_20": string;
6
+ readonly "_maxWidthMd_lbx6l_17": string;
7
+ readonly "_maxWidthSm_lbx6l_14": string;
8
8
  };
9
9
  export = styles;
10
10
 
package/dist/index11.css CHANGED
@@ -1 +1 @@
1
- ._container_1dlqn_1{width:100%;display:flex;flex-direction:column;justify-content:flex-start;gap:var(--spacing-sm)}._container_1dlqn_1 *:not(h1,._h1_1dlqn_11,h2,._h2_1dlqn_11,h3,._h3_1dlqn_11,h4,._h4_1dlqn_11,h5,._h5_1dlqn_11,h6,._h6_1dlqn_11){margin-bottom:1rem}._container_1dlqn_1 *:has(+._divider_1dlqn_15){margin-bottom:0}._container_1dlqn_1 ul{padding-top:var(--spacing-md);padding-bottom:var(--spacing-md)}._container_1dlqn_1 ul ul{padding-bottom:0}._container_1dlqn_1 *:last-child{margin-bottom:0}._container_1dlqn_1 ._richTextImage_1dlqn_33{border-radius:var(--radius-md);margin:0 auto;overflow:hidden;line-height:0;margin-bottom:1rem}._container_1dlqn_1 ._richTextLink_1dlqn_41{color:var(--color-secondary-100);text-decoration:underline;font-weight:var(--font-weight-semibold);transition:color .3s ease-in-out,text-decoration .3s ease-in-out}._container_1dlqn_1 ._richTextLink_1dlqn_41:hover{color:var(--color-primary-100);text-decoration:underline}._container_1dlqn_1 ._spacerSmall_1dlqn_55{border:none;margin:0 0 var(--spacing-sm)}._container_1dlqn_1 ._spacerMedium_1dlqn_60{border:none;margin:0 0 var(--spacing-md)}._container_1dlqn_1 ._spacerLarge_1dlqn_65{border:none;margin:0 0 var(--spacing-lg)}._container_1dlqn_1 ._divider_1dlqn_15{border:none;border-top:1px solid var(--color-secondary-25);margin:var(--spacing-md) 0}._container_1dlqn_1 .text-small{font-size:var(--font-size-sm)}._container_1dlqn_1 .text-medium{font-size:var(--font-size-md)}._container_1dlqn_1 .text-large{font-size:var(--font-size-lg)}._container_1dlqn_1 .text-xlarge{font-size:var(--font-size-xl)}code,._codeBlock_1dlqn_93{background-color:var(--color-secondary-10);padding:.25rem .5rem;border-radius:var(--radius-md);font-family:monospace;line-height:var(--line-height-normal);color:var(--color-text-primary)}._codeBlockWrapper_1dlqn_102{border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-secondary-10);padding:var(--spacing-md);border:1px solid var(--color-secondary-25)}._codeBlockWrapper_1dlqn_102 code{padding:0!important}._codeFilename_1dlqn_114{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);background-color:var(--color-secondary-10);padding:.25rem .5rem;border-bottom:1px solid var(--color-secondary-10)}._codeBlock_1dlqn_93{font-family:monospace;font-size:var(--font-size-sm);overflow-x:auto;white-space:pre;scrollbar-color:var(--color-secondary-50) transparent;scrollbar-width:thin}._codeBlock_1dlqn_93::-webkit-scrollbar{height:12px}._codeBlock_1dlqn_93::-webkit-scrollbar-track{border-radius:var(--radius-md);background-color:transparent;border:none}._codeBlock_1dlqn_93::-webkit-scrollbar-thumb{border:3px solid var(--color-secondary-10);border-radius:var(--radius-md);background-color:var(--color-secondary-50);background-clip:content-box}._tableWrapper_1dlqn_149{width:100%;overflow-x:auto;margin:var(--spacing-md) 0}._table_1dlqn_149{width:100%;border-collapse:collapse;border:1px solid var(--color-secondary-10)}._table_1dlqn_149 td,._table_1dlqn_149 th{border:1px solid var(--color-secondary-10);padding:var(--spacing-sm) var(--spacing-md);vertical-align:top}._table_1dlqn_149 th{font-weight:var(--font-weight-semibold)}
1
+ ._container_xord8_1{width:100%;display:flex;flex-direction:column;justify-content:flex-start;gap:var(--spacing-sm)}._container_xord8_1 *:not(h1,._h1_xord8_11,h2,._h2_xord8_11,h3,._h3_xord8_11,h4,._h4_xord8_11,h5,._h5_xord8_11,h6,._h6_xord8_11){margin-bottom:var(--spacing-md)}._container_xord8_1 *:has(+._divider_xord8_15){margin-bottom:0}._container_xord8_1 ul{padding-top:var(--spacing-md);padding-bottom:var(--spacing-md)}._container_xord8_1 ul ul{padding-bottom:0}._container_xord8_1 *:last-child{margin-bottom:0}._container_xord8_1 ._richTextImage_xord8_33{border-radius:var(--radius-md);margin:0 auto;overflow:hidden;line-height:0;margin-bottom:var(--spacing-md)}._container_xord8_1 ._richTextLink_xord8_41{color:var(--color-secondary-100);text-decoration:underline;font-weight:var(--font-weight-semibold);transition:color .3s ease-in-out,text-decoration .3s ease-in-out}._container_xord8_1 ._richTextLink_xord8_41:hover{color:var(--color-primary-100);text-decoration:underline}._container_xord8_1 ._spacerSmall_xord8_55{border:none;margin:0 0 var(--spacing-sm)}._container_xord8_1 ._spacerMedium_xord8_60{border:none;margin:0 0 var(--spacing-md)}._container_xord8_1 ._spacerLarge_xord8_65{border:none;margin:0 0 var(--spacing-lg)}._container_xord8_1 ._divider_xord8_15{border:none;border-top:1px solid var(--color-secondary-25);margin:var(--spacing-md) 0}._container_xord8_1 .text-small{font-size:var(--font-size-sm)}._container_xord8_1 .text-medium{font-size:var(--font-size-md)}._container_xord8_1 .text-large{font-size:var(--font-size-lg)}._container_xord8_1 .text-xlarge{font-size:var(--font-size-xl)}code,._codeBlock_xord8_93{background-color:var(--color-secondary-10);padding:.25rem .5rem;border-radius:var(--radius-md);font-family:monospace;line-height:var(--line-height-normal);color:var(--color-text-primary)}._codeBlockWrapper_xord8_102{border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-secondary-10);padding:var(--spacing-md);border:1px solid var(--color-secondary-25)}._codeBlockWrapper_xord8_102 code{padding:0!important}._codeFilename_xord8_114{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);background-color:var(--color-secondary-10);padding:.25rem .5rem;border-bottom:1px solid var(--color-secondary-10)}._codeBlock_xord8_93{font-family:monospace;font-size:var(--font-size-sm);overflow-x:auto;white-space:pre;scrollbar-color:var(--color-secondary-50) transparent;scrollbar-width:thin}._codeBlock_xord8_93::-webkit-scrollbar{height:12px}._codeBlock_xord8_93::-webkit-scrollbar-track{border-radius:var(--radius-md);background-color:transparent;border:none}._codeBlock_xord8_93::-webkit-scrollbar-thumb{border:3px solid var(--color-secondary-10);border-radius:var(--radius-md);background-color:var(--color-secondary-50);background-clip:content-box}._tableWrapper_xord8_149{width:100%;overflow-x:auto;margin:var(--spacing-md) 0}._table_xord8_149{width:100%;border-collapse:collapse;border:1px solid var(--color-secondary-10)}._table_xord8_149 td,._table_xord8_149 th{border:1px solid var(--color-secondary-10);padding:var(--spacing-sm) var(--spacing-md);vertical-align:top}._table_xord8_149 th{font-weight:var(--font-weight-semibold)}
@@ -1,22 +1,22 @@
1
1
  declare const styles: {
2
- readonly "_codeBlockWrapper_1dlqn_102": string;
3
- readonly "_codeBlock_1dlqn_93": string;
4
- readonly "_codeFilename_1dlqn_114": string;
5
- readonly "_container_1dlqn_1": string;
6
- readonly "_divider_1dlqn_15": string;
7
- readonly "_h1_1dlqn_11": string;
8
- readonly "_h2_1dlqn_11": string;
9
- readonly "_h3_1dlqn_11": string;
10
- readonly "_h4_1dlqn_11": string;
11
- readonly "_h5_1dlqn_11": string;
12
- readonly "_h6_1dlqn_11": string;
13
- readonly "_richTextImage_1dlqn_33": string;
14
- readonly "_richTextLink_1dlqn_41": string;
15
- readonly "_spacerLarge_1dlqn_65": string;
16
- readonly "_spacerMedium_1dlqn_60": string;
17
- readonly "_spacerSmall_1dlqn_55": string;
18
- readonly "_tableWrapper_1dlqn_149": string;
19
- readonly "_table_1dlqn_149": string;
2
+ readonly "_codeBlockWrapper_xord8_102": string;
3
+ readonly "_codeBlock_xord8_93": string;
4
+ readonly "_codeFilename_xord8_114": string;
5
+ readonly "_container_xord8_1": string;
6
+ readonly "_divider_xord8_15": string;
7
+ readonly "_h1_xord8_11": string;
8
+ readonly "_h2_xord8_11": string;
9
+ readonly "_h3_xord8_11": string;
10
+ readonly "_h4_xord8_11": string;
11
+ readonly "_h5_xord8_11": string;
12
+ readonly "_h6_xord8_11": string;
13
+ readonly "_richTextImage_xord8_33": string;
14
+ readonly "_richTextLink_xord8_41": string;
15
+ readonly "_spacerLarge_xord8_65": string;
16
+ readonly "_spacerMedium_xord8_60": string;
17
+ readonly "_spacerSmall_xord8_55": string;
18
+ readonly "_tableWrapper_xord8_149": string;
19
+ readonly "_table_xord8_149": string;
20
20
  readonly "text-large": string;
21
21
  readonly "text-medium": string;
22
22
  readonly "text-small": string;
package/dist/main.d.ts CHANGED
@@ -705,7 +705,6 @@ declare const gapClassMap: {
705
705
  readonly md: string;
706
706
  readonly lg: string;
707
707
  readonly xl: string;
708
- readonly "2xl": any;
709
708
  };
710
709
 
711
710
  export declare function Grid({ columns, rows, gap, rowGap, columnGap, areas, autoFit, autoFitMinMax, alignItems, justifyItems, justifyContent, alignContent, fullHeight, className, style, children, ...restProps }: GridProps): JSX.Element;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index10.css');const m=require("react/jsx-runtime"),x="_markdownBlock_1h9o1_8",u="_maxWidthSm_1h9o1_16",_="_maxWidthMd_1h9o1_19",W="_maxWidthLg_1h9o1_22",l="_maxWidthFull_1h9o1_25",g="_container_1h9o1_4",d={markdownBlock:x,maxWidthSm:u,maxWidthMd:_,maxWidthLg:W,maxWidthFull:l,container:g};function k({processedHtml:c,styleOptions:a,id:r}){var o;if(!c)return null;const n={sm:d.maxWidthSm,md:d.maxWidthMd,lg:d.maxWidthLg,full:d.maxWidthFull}[(a==null?void 0:a.maxWidth)??"lg"]??d.maxWidthLg,h=((o=a==null?void 0:a.padding)==null?void 0:o.join(" "))??"",i=a!=null&&a.background?`background${a.background.charAt(0).toUpperCase()}${a.background.slice(1)}`:"";return m.jsx("section",{id:r,className:[d.markdownBlock,h,i].filter(Boolean).join(" "),children:m.jsx("div",{className:`${d.container} ${n}`,dangerouslySetInnerHTML:{__html:c}})})}exports.MarkdownBlock=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index10.css');const r=require("react/jsx-runtime"),i="_markdownBlock_lbx6l_8",h="_maxWidthSm_lbx6l_14",u="_maxWidthMd_lbx6l_17",_="_maxWidthLg_lbx6l_20",W="_maxWidthFull_lbx6l_23",g="_container_lbx6l_4",d={markdownBlock:i,maxWidthSm:h,maxWidthMd:u,maxWidthLg:_,maxWidthFull:W,container:g};function k({processedHtml:c,styleOptions:a,id:n}){var m;if(!c)return null;const l={sm:d.maxWidthSm,md:d.maxWidthMd,lg:d.maxWidthLg,full:d.maxWidthFull}[(a==null?void 0:a.maxWidth)??"lg"]??d.maxWidthLg,o=((m=a==null?void 0:a.padding)==null?void 0:m.join(" "))??"",x=a!=null&&a.background?`background${a.background.charAt(0).toUpperCase()}${a.background.slice(1)}`:"";return r.jsx("section",{id:n,className:[d.markdownBlock,o,x].filter(Boolean).join(" "),children:r.jsx("div",{className:`${d.container} ${l}`,dangerouslySetInnerHTML:{__html:c}})})}exports.MarkdownBlock=k;
@@ -1,34 +1,34 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import '../../../index10.css';const _ = "_markdownBlock_1h9o1_8", i = "_maxWidthSm_1h9o1_16", W = "_maxWidthMd_1h9o1_19", g = "_maxWidthLg_1h9o1_22", k = "_maxWidthFull_1h9o1_25", u = "_container_1h9o1_4", d = {
3
- markdownBlock: _,
4
- maxWidthSm: i,
5
- maxWidthMd: W,
6
- maxWidthLg: g,
7
- maxWidthFull: k,
8
- container: u
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import '../../../index10.css';const h = "_markdownBlock_lbx6l_8", _ = "_maxWidthSm_lbx6l_14", i = "_maxWidthMd_lbx6l_17", W = "_maxWidthLg_lbx6l_20", g = "_maxWidthFull_lbx6l_23", k = "_container_lbx6l_4", d = {
3
+ markdownBlock: h,
4
+ maxWidthSm: _,
5
+ maxWidthMd: i,
6
+ maxWidthLg: W,
7
+ maxWidthFull: g,
8
+ container: k
9
9
  };
10
10
  function t({
11
11
  processedHtml: m,
12
12
  styleOptions: a,
13
- id: h
13
+ id: x
14
14
  }) {
15
15
  var c;
16
16
  if (!m) return null;
17
- const n = {
17
+ const l = {
18
18
  sm: d.maxWidthSm,
19
19
  md: d.maxWidthMd,
20
20
  lg: d.maxWidthLg,
21
21
  full: d.maxWidthFull
22
- }[(a == null ? void 0 : a.maxWidth) ?? "lg"] ?? d.maxWidthLg, r = ((c = a == null ? void 0 : a.padding) == null ? void 0 : c.join(" ")) ?? "", x = a != null && a.background ? `background${a.background.charAt(0).toUpperCase()}${a.background.slice(1)}` : "";
23
- return /* @__PURE__ */ o(
22
+ }[(a == null ? void 0 : a.maxWidth) ?? "lg"] ?? d.maxWidthLg, r = ((c = a == null ? void 0 : a.padding) == null ? void 0 : c.join(" ")) ?? "", o = a != null && a.background ? `background${a.background.charAt(0).toUpperCase()}${a.background.slice(1)}` : "";
23
+ return /* @__PURE__ */ n(
24
24
  "section",
25
25
  {
26
- id: h,
27
- className: [d.markdownBlock, r, x].filter(Boolean).join(" "),
28
- children: /* @__PURE__ */ o(
26
+ id: x,
27
+ className: [d.markdownBlock, r, o].filter(Boolean).join(" "),
28
+ children: /* @__PURE__ */ n(
29
29
  "div",
30
30
  {
31
- className: `${d.container} ${n}`,
31
+ className: `${d.container} ${l}`,
32
32
  dangerouslySetInnerHTML: { __html: m }
33
33
  }
34
34
  )
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index.css');require('../../../index11.css');const e=require("react/jsx-runtime"),T=require("react"),k=require("@portabletext/react"),w=require("../AnimatedSpan/index.cjs");;/* empty css */require("../../../core/components/Avatar/index.cjs");require("../../../core/components/Checkbox/index.cjs");const L=require("../../../core/components/Text/index.cjs"),h=require("../../../core/components/Heading/index.cjs");require("react-dom");const B=require("../../../core/components/Table/index.cjs");require("../../../core/components/Tabs/index.cjs");require("../../../core/tokens/theme.cjs");const H=require("next/image"),S=require("../../hooks/useMediaQuery.cjs"),b="_container_1dlqn_1",z="_divider_1dlqn_15",F="_richTextImage_1dlqn_33",I="_richTextLink_1dlqn_41",W="_spacerSmall_1dlqn_55",C="_spacerMedium_1dlqn_60",P="_spacerLarge_1dlqn_65",U="_codeBlock_1dlqn_93",A="_codeBlockWrapper_1dlqn_102",E="_codeFilename_1dlqn_114",i={container:b,divider:z,richTextImage:F,richTextLink:I,spacerSmall:W,spacerMedium:C,spacerLarge:P,codeBlock:U,codeBlockWrapper:A,codeFilename:E};function Q(n){return{normal:({children:t})=>e.jsx(L.Text,{className:n,children:t}),h1:({children:t})=>e.jsx(h.Heading,{className:n,level:1,children:t}),h2:({children:t})=>e.jsx(h.Heading,{className:n,level:2,children:t}),h3:({children:t})=>e.jsx(h.Heading,{className:n,level:3,children:t}),h4:({children:t})=>e.jsx(h.Heading,{className:n,level:4,children:t}),h5:({children:t})=>e.jsx(h.Heading,{className:n,level:5,children:t}),h6:({children:t})=>e.jsx(h.Heading,{className:n,level:6,children:t}),quote:({children:t})=>e.jsx("blockquote",{className:n,children:t})}}const D={strong:({children:n})=>e.jsx("strong",{children:n}),em:({children:n})=>e.jsx("em",{children:n}),number:({children:n})=>e.jsx("span",{className:"inlineNumber",children:n}),left:({children:n})=>e.jsx("span",{className:"textLeft",children:n}),center:({children:n})=>e.jsx("span",{className:"textCenter",children:n}),right:({children:n})=>e.jsx("span",{className:"textRight",children:n}),inlineCode:({children:n})=>e.jsx("code",{children:n}),link:({children:n,value:t})=>{var p;const{linkType:r,internalUrl:a,externalUrl:l,blank:x}=t??{};let d="#";return r==="external"&&l?d=l:r==="internal"&&((p=a==null?void 0:a.slug)!=null&&p.current)&&(d=`/${a.slug.current}`),e.jsx("a",{href:d,target:x?"_blank":void 0,rel:r==="external"?"noopener noreferrer":void 0,className:i.richTextLink,children:n})},textSize:({children:n,value:t})=>{const r=t!=null&&t.size?`text-${t.size}`:"";return e.jsx("span",{className:r,children:n})}};function G({baseClassName:n,previousTextRef:t,textOverride:r,animateText:a,isMobile:l}){const x=({children:s,value:c})=>{if(!c)return e.jsx(e.Fragment,{children:s});const{colorClass:o}=c;return r?a?e.jsx(w.AnimatedSpan,{className:o,text:r,prevText:t.current},"animated-span"):e.jsx("span",{className:o,children:r}):e.jsx("span",{className:o,children:s})},d=({children:s=[]})=>{const c=T.Children.count(s);return e.jsx("ul",{style:{columnCount:l?1:c>7?2:1},className:n,children:s})};let p;const N=()=>p;return p={marks:{...D,coloredText:x},block:Q(n),list:{bullet:d},types:{image:({value:s})=>{var o,g,m,q,f;if(!(s!=null&&s.imageUrls))return null;const c=((o=s.asset)==null?void 0:o.altText)||"Content image";return e.jsxs("figure",{className:`${n??""} ${i.richTextImage}`,children:[e.jsx(H,{src:s.imageUrls.medium,alt:c,width:1e3,height:800,style:{maxWidth:"100%",height:"auto"}}),(((g=s.asset)==null?void 0:g.title)||((m=s.asset)==null?void 0:m.description))&&e.jsxs("figcaption",{children:[((q=s.asset)==null?void 0:q.title)&&e.jsx("strong",{children:s.asset.title}),((f=s.asset)==null?void 0:f.description)&&e.jsx("p",{children:s.asset.description})]})]})},divider:()=>e.jsx("hr",{className:i.divider}),spacer:({value:s})=>{const c=(s==null?void 0:s.style)||"medium",o={small:i.spacerSmall,medium:i.spacerMedium,large:i.spacerLarge};return e.jsx("span",{className:o[c]??i.spacerMedium})},table:({value:s})=>{var $,M;if(!(($=s==null?void 0:s.rows)!=null&&$.length))return null;const{hasHeadingRow:c}=s,o=c?s.rows[0]:null,g=c?s.rows.slice(1):s.rows,m=o||g[0];if(!((M=m==null?void 0:m.cells)!=null&&M.length))return null;const q=m.cells.map((y,u)=>{var j;return{header:o?e.jsx(k.PortableText,{value:(j=o.cells[u])==null?void 0:j.content,components:N()}):`Column ${u+1}`,accessor:`col${u}`,cellRenderer:_=>_?e.jsx(k.PortableText,{value:_,components:N()}):null}}),f=g.map(y=>{var j;const u={};return(j=y.cells)==null||j.forEach((_,R)=>{u[`col${R}`]=_==null?void 0:_.content}),u});return e.jsx(B.Table,{hasHeadingRow:c,data:f,columns:q,className:`${n??""} ${c?"hasHeadingRow":""}`})},code:({value:s})=>s!=null&&s.code?e.jsxs("div",{className:`${i.codeBlockWrapper} ${n??""}`,children:[s.filename&&e.jsx("div",{className:i.codeFilename,children:s.filename}),e.jsx("pre",{className:i.codeBlock,children:e.jsx("code",{children:s.code})})]}):null}},p}const J=({blocks:n,className:t,textOverride:r,animateText:a})=>{const l=S.useMediaQuery("(max-width: 767px)"),x=T.useRef(r);T.useEffect(()=>{x.current=r},[r]);const d=T.useMemo(()=>G({baseClassName:t,previousTextRef:x,textOverride:r,animateText:a,isMobile:l}),[t,r,a,l]);return n?typeof n=="string"?e.jsx(L.Text,{className:t,children:n}):e.jsx("div",{className:`${i.container} portableTextContainer`,children:e.jsx(k.PortableText,{value:n,components:d})}):null};exports.RichText=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index.css');require('../../../index11.css');const e=require("react/jsx-runtime"),k=require("react"),q=require("@portabletext/react"),w=require("../AnimatedSpan/index.cjs");;/* empty css */require("../../../core/components/Avatar/index.cjs");require("../../../core/components/Checkbox/index.cjs");const L=require("../../../core/components/Text/index.cjs"),h=require("../../../core/components/Heading/index.cjs");require("react-dom");const B=require("../../../core/components/Table/index.cjs");require("../../../core/components/Tabs/index.cjs");require("../../../core/tokens/theme.cjs");const H=require("next/image"),S=require("../../hooks/useMediaQuery.cjs"),b="_container_xord8_1",z="_divider_xord8_15",F="_richTextImage_xord8_33",I="_richTextLink_xord8_41",W="_spacerSmall_xord8_55",C="_spacerMedium_xord8_60",P="_spacerLarge_xord8_65",U="_codeBlock_xord8_93",A="_codeBlockWrapper_xord8_102",E="_codeFilename_xord8_114",i={container:b,divider:z,richTextImage:F,richTextLink:I,spacerSmall:W,spacerMedium:C,spacerLarge:P,codeBlock:U,codeBlockWrapper:A,codeFilename:E};function Q(s){return{normal:({children:r})=>e.jsx(L.Text,{className:s,children:r}),h1:({children:r})=>e.jsx(h.Heading,{className:s,level:1,children:r}),h2:({children:r})=>e.jsx(h.Heading,{className:s,level:2,children:r}),h3:({children:r})=>e.jsx(h.Heading,{className:s,level:3,children:r}),h4:({children:r})=>e.jsx(h.Heading,{className:s,level:4,children:r}),h5:({children:r})=>e.jsx(h.Heading,{className:s,level:5,children:r}),h6:({children:r})=>e.jsx(h.Heading,{className:s,level:6,children:r}),quote:({children:r})=>e.jsx("blockquote",{className:s,children:r})}}const D={strong:({children:s})=>e.jsx("strong",{children:s}),em:({children:s})=>e.jsx("em",{children:s}),number:({children:s})=>e.jsx("span",{className:"inlineNumber",children:s}),left:({children:s})=>e.jsx("span",{className:"textLeft",children:s}),center:({children:s})=>e.jsx("span",{className:"textCenter",children:s}),right:({children:s})=>e.jsx("span",{className:"textRight",children:s}),inlineCode:({children:s})=>e.jsx("code",{children:s}),link:({children:s,value:r})=>{var p;const{linkType:t,internalUrl:a,externalUrl:l,blank:m}=r??{};let d="#";return t==="external"&&l?d=l:t==="internal"&&((p=a==null?void 0:a.slug)!=null&&p.current)&&(d=`/${a.slug.current}`),e.jsx("a",{href:d,target:m?"_blank":void 0,rel:t==="external"?"noopener noreferrer":void 0,className:i.richTextLink,children:s})},textSize:({children:s,value:r})=>{const t=r!=null&&r.size?`text-${r.size}`:"";return e.jsx("span",{className:t,children:s})}};function G({baseClassName:s,previousTextRef:r,textOverride:t,animateText:a,isMobile:l}){const m=({children:n,value:c})=>{if(!c)return e.jsx(e.Fragment,{children:n});const{colorClass:o}=c;return t?a?e.jsx(w.AnimatedSpan,{className:o,text:t,prevText:r.current},"animated-span"):e.jsx("span",{className:o,children:t}):e.jsx("span",{className:o,children:n})},d=({children:n=[]})=>{const c=k.Children.count(n);return e.jsx("ul",{style:{columnCount:l?1:c>7?2:1},className:s,children:n})};let p;const N=()=>p;return p={marks:{...D,coloredText:m},block:Q(s),list:{bullet:d},types:{image:({value:n})=>{var o,g,x,f,T;if(!(n!=null&&n.imageUrls))return null;const c=((o=n.asset)==null?void 0:o.altText)||"Content image";return e.jsxs("figure",{className:`${s??""} ${i.richTextImage}`,children:[e.jsx(H,{src:n.imageUrls.medium,alt:c,width:1e3,height:800,style:{maxWidth:"100%",height:"auto"}}),(((g=n.asset)==null?void 0:g.title)||((x=n.asset)==null?void 0:x.description))&&e.jsxs("figcaption",{children:[((f=n.asset)==null?void 0:f.title)&&e.jsx("strong",{children:n.asset.title}),((T=n.asset)==null?void 0:T.description)&&e.jsx("p",{children:n.asset.description})]})]})},divider:()=>e.jsx("hr",{className:i.divider}),spacer:({value:n})=>{const c=(n==null?void 0:n.style)||"medium",o={small:i.spacerSmall,medium:i.spacerMedium,large:i.spacerLarge};return e.jsx("span",{className:o[c]??i.spacerMedium})},table:({value:n})=>{var $,M;if(!(($=n==null?void 0:n.rows)!=null&&$.length))return null;const{hasHeadingRow:c}=n,o=c?n.rows[0]:null,g=c?n.rows.slice(1):n.rows,x=o||g[0];if(!((M=x==null?void 0:x.cells)!=null&&M.length))return null;const f=x.cells.map((y,u)=>{var j;return{header:o?e.jsx(q.PortableText,{value:(j=o.cells[u])==null?void 0:j.content,components:N()}):`Column ${u+1}`,accessor:`col${u}`,cellRenderer:_=>_?e.jsx(q.PortableText,{value:_,components:N()}):null}}),T=g.map(y=>{var j;const u={};return(j=y.cells)==null||j.forEach((_,R)=>{u[`col${R}`]=_==null?void 0:_.content}),u});return e.jsx(B.Table,{hasHeadingRow:c,data:T,columns:f,className:`${s??""} ${c?"hasHeadingRow":""}`})},code:({value:n})=>n!=null&&n.code?e.jsxs("div",{className:`${i.codeBlockWrapper} ${s??""}`,children:[n.filename&&e.jsx("div",{className:i.codeFilename,children:n.filename}),e.jsx("pre",{className:i.codeBlock,children:e.jsx("code",{children:n.code})})]}):null}},p}const J=({blocks:s,className:r,textOverride:t,animateText:a})=>{const l=S.useMediaQuery("(max-width: 767px)"),m=k.useRef(t);k.useEffect(()=>{m.current=t},[t]);const d=k.useMemo(()=>G({baseClassName:r,previousTextRef:m,textOverride:t,animateText:a,isMobile:l}),[r,t,a,l]);return s?typeof s=="string"?e.jsx(L.Text,{className:r,children:s}):e.jsx("div",{className:`${i.container} portableTextContainer`,children:e.jsx(q.PortableText,{value:s,components:d})}):null};exports.RichText=J;
@@ -1,20 +1,20 @@
1
- import { jsx as n, jsxs as N, Fragment as y } from "react/jsx-runtime";
2
- import S, { useRef as z, useEffect as F, useMemo as I } from "react";
3
- import { PortableText as q } from "@portabletext/react";
4
- import { AnimatedSpan as W } from "../AnimatedSpan/index.mjs";
1
+ import { jsx as r, jsxs as N, Fragment as S } from "react/jsx-runtime";
2
+ import z, { useRef as F, useEffect as I, useMemo as W } from "react";
3
+ import { PortableText as $ } from "@portabletext/react";
4
+ import { AnimatedSpan as C } from "../AnimatedSpan/index.mjs";
5
5
  import '../../../index.css';import '../../../index11.css';/* empty css */
6
6
  import "../../../core/components/Avatar/index.mjs";
7
7
  import "../../../core/components/Checkbox/index.mjs";
8
- import { Text as B } from "../../../core/components/Text/index.mjs";
9
- import { Heading as _ } from "../../../core/components/Heading/index.mjs";
8
+ import { Text as R } from "../../../core/components/Text/index.mjs";
9
+ import { Heading as g } from "../../../core/components/Heading/index.mjs";
10
10
  import "react-dom";
11
- import { Table as C } from "../../../core/components/Table/index.mjs";
11
+ import { Table as j } from "../../../core/components/Table/index.mjs";
12
12
  import "../../../core/components/Tabs/index.mjs";
13
13
  import "../../../core/tokens/theme.mjs";
14
- import j from "next/image";
15
- import { useMediaQuery as H } from "../../hooks/useMediaQuery.mjs";
16
- const U = "_container_1dlqn_1", E = "_divider_1dlqn_15", b = "_richTextImage_1dlqn_33", A = "_richTextLink_1dlqn_41", P = "_spacerSmall_1dlqn_55", Q = "_spacerMedium_1dlqn_60", D = "_spacerLarge_1dlqn_65", G = "_codeBlock_1dlqn_93", J = "_codeBlockWrapper_1dlqn_102", K = "_codeFilename_1dlqn_114", i = {
17
- container: U,
14
+ import H from "next/image";
15
+ import { useMediaQuery as U } from "../../hooks/useMediaQuery.mjs";
16
+ const q = "_container_xord8_1", E = "_divider_xord8_15", b = "_richTextImage_xord8_33", A = "_richTextLink_xord8_41", P = "_spacerSmall_xord8_55", Q = "_spacerMedium_xord8_60", D = "_spacerLarge_xord8_65", G = "_codeBlock_xord8_93", J = "_codeBlockWrapper_xord8_102", K = "_codeFilename_xord8_114", i = {
17
+ container: q,
18
18
  divider: E,
19
19
  richTextImage: b,
20
20
  richTextLink: A,
@@ -27,32 +27,32 @@ const U = "_container_1dlqn_1", E = "_divider_1dlqn_15", b = "_richTextImage_1dl
27
27
  };
28
28
  function X(e) {
29
29
  return {
30
- normal: ({ children: r }) => /* @__PURE__ */ n(B, { className: e, children: r }),
31
- h1: ({ children: r }) => /* @__PURE__ */ n(_, { className: e, level: 1, children: r }),
32
- h2: ({ children: r }) => /* @__PURE__ */ n(_, { className: e, level: 2, children: r }),
33
- h3: ({ children: r }) => /* @__PURE__ */ n(_, { className: e, level: 3, children: r }),
34
- h4: ({ children: r }) => /* @__PURE__ */ n(_, { className: e, level: 4, children: r }),
35
- h5: ({ children: r }) => /* @__PURE__ */ n(_, { className: e, level: 5, children: r }),
36
- h6: ({ children: r }) => /* @__PURE__ */ n(_, { className: e, level: 6, children: r }),
37
- quote: ({ children: r }) => /* @__PURE__ */ n("blockquote", { className: e, children: r })
30
+ normal: ({ children: n }) => /* @__PURE__ */ r(R, { className: e, children: n }),
31
+ h1: ({ children: n }) => /* @__PURE__ */ r(g, { className: e, level: 1, children: n }),
32
+ h2: ({ children: n }) => /* @__PURE__ */ r(g, { className: e, level: 2, children: n }),
33
+ h3: ({ children: n }) => /* @__PURE__ */ r(g, { className: e, level: 3, children: n }),
34
+ h4: ({ children: n }) => /* @__PURE__ */ r(g, { className: e, level: 4, children: n }),
35
+ h5: ({ children: n }) => /* @__PURE__ */ r(g, { className: e, level: 5, children: n }),
36
+ h6: ({ children: n }) => /* @__PURE__ */ r(g, { className: e, level: 6, children: n }),
37
+ quote: ({ children: n }) => /* @__PURE__ */ r("blockquote", { className: e, children: n })
38
38
  };
39
39
  }
40
40
  const Y = {
41
- strong: ({ children: e }) => /* @__PURE__ */ n("strong", { children: e }),
42
- em: ({ children: e }) => /* @__PURE__ */ n("em", { children: e }),
43
- number: ({ children: e }) => /* @__PURE__ */ n("span", { className: "inlineNumber", children: e }),
44
- left: ({ children: e }) => /* @__PURE__ */ n("span", { className: "textLeft", children: e }),
45
- center: ({ children: e }) => /* @__PURE__ */ n("span", { className: "textCenter", children: e }),
46
- right: ({ children: e }) => /* @__PURE__ */ n("span", { className: "textRight", children: e }),
47
- inlineCode: ({ children: e }) => /* @__PURE__ */ n("code", { children: e }),
48
- link: ({ children: e, value: r }) => {
41
+ strong: ({ children: e }) => /* @__PURE__ */ r("strong", { children: e }),
42
+ em: ({ children: e }) => /* @__PURE__ */ r("em", { children: e }),
43
+ number: ({ children: e }) => /* @__PURE__ */ r("span", { className: "inlineNumber", children: e }),
44
+ left: ({ children: e }) => /* @__PURE__ */ r("span", { className: "textLeft", children: e }),
45
+ center: ({ children: e }) => /* @__PURE__ */ r("span", { className: "textCenter", children: e }),
46
+ right: ({ children: e }) => /* @__PURE__ */ r("span", { className: "textRight", children: e }),
47
+ inlineCode: ({ children: e }) => /* @__PURE__ */ r("code", { children: e }),
48
+ link: ({ children: e, value: n }) => {
49
49
  var h;
50
- const { linkType: o, internalUrl: l, externalUrl: a, blank: p } = r ?? {};
51
- let m = "#";
52
- return o === "external" && a ? m = a : o === "internal" && ((h = l == null ? void 0 : l.slug) != null && h.current) && (m = `/${l.slug.current}`), /* @__PURE__ */ n(
50
+ const { linkType: o, internalUrl: a, externalUrl: m, blank: p } = n ?? {};
51
+ let l = "#";
52
+ return o === "external" && m ? l = m : o === "internal" && ((h = a == null ? void 0 : a.slug) != null && h.current) && (l = `/${a.slug.current}`), /* @__PURE__ */ r(
53
53
  "a",
54
54
  {
55
- href: m,
55
+ href: l,
56
56
  target: p ? "_blank" : void 0,
57
57
  rel: o === "external" ? "noopener noreferrer" : void 0,
58
58
  className: i.richTextLink,
@@ -60,46 +60,46 @@ const Y = {
60
60
  }
61
61
  );
62
62
  },
63
- textSize: ({ children: e, value: r }) => {
64
- const o = r != null && r.size ? `text-${r.size}` : "";
65
- return /* @__PURE__ */ n("span", { className: o, children: e });
63
+ textSize: ({ children: e, value: n }) => {
64
+ const o = n != null && n.size ? `text-${n.size}` : "";
65
+ return /* @__PURE__ */ r("span", { className: o, children: e });
66
66
  }
67
67
  };
68
68
  function Z({
69
69
  baseClassName: e,
70
- previousTextRef: r,
70
+ previousTextRef: n,
71
71
  textOverride: o,
72
- animateText: l,
73
- isMobile: a
72
+ animateText: a,
73
+ isMobile: m
74
74
  }) {
75
75
  const p = ({
76
76
  children: t,
77
77
  value: s
78
78
  }) => {
79
- if (!s) return /* @__PURE__ */ n(y, { children: t });
79
+ if (!s) return /* @__PURE__ */ r(S, { children: t });
80
80
  const { colorClass: c } = s;
81
- return o ? l ? /* @__PURE__ */ n(
82
- W,
81
+ return o ? a ? /* @__PURE__ */ r(
82
+ C,
83
83
  {
84
84
  className: c,
85
85
  text: o,
86
- prevText: r.current
86
+ prevText: n.current
87
87
  },
88
88
  "animated-span"
89
- ) : /* @__PURE__ */ n("span", { className: c, children: o }) : /* @__PURE__ */ n("span", { className: c, children: t });
90
- }, m = ({ children: t = [] }) => {
91
- const s = S.Children.count(t);
92
- return /* @__PURE__ */ n(
89
+ ) : /* @__PURE__ */ r("span", { className: c, children: o }) : /* @__PURE__ */ r("span", { className: c, children: t });
90
+ }, l = ({ children: t = [] }) => {
91
+ const s = z.Children.count(t);
92
+ return /* @__PURE__ */ r(
93
93
  "ul",
94
94
  {
95
- style: { columnCount: a ? 1 : s > 7 ? 2 : 1 },
95
+ style: { columnCount: m ? 1 : s > 7 ? 2 : 1 },
96
96
  className: e,
97
97
  children: t
98
98
  }
99
99
  );
100
100
  };
101
101
  let h;
102
- const $ = () => h;
102
+ const L = () => h;
103
103
  return h = {
104
104
  marks: {
105
105
  ...Y,
@@ -107,17 +107,17 @@ function Z({
107
107
  },
108
108
  block: X(e),
109
109
  list: {
110
- bullet: m
110
+ bullet: l
111
111
  },
112
112
  types: {
113
113
  // ── Inline image ────────────────────────────────────────────────────
114
114
  image: ({ value: t }) => {
115
- var c, u, d, k, T;
115
+ var c, _, d, k, T;
116
116
  if (!(t != null && t.imageUrls)) return null;
117
117
  const s = ((c = t.asset) == null ? void 0 : c.altText) || "Content image";
118
118
  return /* @__PURE__ */ N("figure", { className: `${e ?? ""} ${i.richTextImage}`, children: [
119
- /* @__PURE__ */ n(
120
- j,
119
+ /* @__PURE__ */ r(
120
+ H,
121
121
  {
122
122
  src: t.imageUrls.medium,
123
123
  alt: s,
@@ -126,14 +126,14 @@ function Z({
126
126
  style: { maxWidth: "100%", height: "auto" }
127
127
  }
128
128
  ),
129
- (((u = t.asset) == null ? void 0 : u.title) || ((d = t.asset) == null ? void 0 : d.description)) && /* @__PURE__ */ N("figcaption", { children: [
130
- ((k = t.asset) == null ? void 0 : k.title) && /* @__PURE__ */ n("strong", { children: t.asset.title }),
131
- ((T = t.asset) == null ? void 0 : T.description) && /* @__PURE__ */ n("p", { children: t.asset.description })
129
+ (((_ = t.asset) == null ? void 0 : _.title) || ((d = t.asset) == null ? void 0 : d.description)) && /* @__PURE__ */ N("figcaption", { children: [
130
+ ((k = t.asset) == null ? void 0 : k.title) && /* @__PURE__ */ r("strong", { children: t.asset.title }),
131
+ ((T = t.asset) == null ? void 0 : T.description) && /* @__PURE__ */ r("p", { children: t.asset.description })
132
132
  ] })
133
133
  ] });
134
134
  },
135
135
  // ── Divider ─────────────────────────────────────────────────────────
136
- divider: () => /* @__PURE__ */ n("hr", { className: i.divider }),
136
+ divider: () => /* @__PURE__ */ r("hr", { className: i.divider }),
137
137
  // ── Spacer ──────────────────────────────────────────────────────────
138
138
  spacer: ({ value: t }) => {
139
139
  const s = (t == null ? void 0 : t.style) || "medium", c = {
@@ -141,42 +141,42 @@ function Z({
141
141
  medium: i.spacerMedium,
142
142
  large: i.spacerLarge
143
143
  };
144
- return /* @__PURE__ */ n("span", { className: c[s] ?? i.spacerMedium });
144
+ return /* @__PURE__ */ r("span", { className: c[s] ?? i.spacerMedium });
145
145
  },
146
146
  // ── Table ────────────────────────────────────────────────────────────
147
147
  table: ({ value: t }) => {
148
- var L, M;
149
- if (!((L = t == null ? void 0 : t.rows) != null && L.length)) return null;
150
- const { hasHeadingRow: s } = t, c = s ? t.rows[0] : null, u = s ? t.rows.slice(1) : t.rows, d = c || u[0];
151
- if (!((M = d == null ? void 0 : d.cells) != null && M.length)) return null;
152
- const k = d.cells.map((w, f) => {
153
- var x;
148
+ var M, w;
149
+ if (!((M = t == null ? void 0 : t.rows) != null && M.length)) return null;
150
+ const { hasHeadingRow: s } = t, c = s ? t.rows[0] : null, _ = s ? t.rows.slice(1) : t.rows, d = c || _[0];
151
+ if (!((w = d == null ? void 0 : d.cells) != null && w.length)) return null;
152
+ const k = d.cells.map((B, f) => {
153
+ var u;
154
154
  return {
155
- header: c ? /* @__PURE__ */ n(
156
- q,
155
+ header: c ? /* @__PURE__ */ r(
156
+ $,
157
157
  {
158
- value: (x = c.cells[f]) == null ? void 0 : x.content,
159
- components: $()
158
+ value: (u = c.cells[f]) == null ? void 0 : u.content,
159
+ components: L()
160
160
  }
161
161
  ) : `Column ${f + 1}`,
162
162
  accessor: `col${f}`,
163
- cellRenderer: (g) => g ? /* @__PURE__ */ n(
164
- q,
163
+ cellRenderer: (x) => x ? /* @__PURE__ */ r(
164
+ $,
165
165
  {
166
- value: g,
167
- components: $()
166
+ value: x,
167
+ components: L()
168
168
  }
169
169
  ) : null
170
170
  };
171
- }), T = u.map((w) => {
172
- var x;
171
+ }), T = _.map((B) => {
172
+ var u;
173
173
  const f = {};
174
- return (x = w.cells) == null || x.forEach((g, R) => {
175
- f[`col${R}`] = g == null ? void 0 : g.content;
174
+ return (u = B.cells) == null || u.forEach((x, y) => {
175
+ f[`col${y}`] = x == null ? void 0 : x.content;
176
176
  }), f;
177
177
  });
178
- return /* @__PURE__ */ n(
179
- C,
178
+ return /* @__PURE__ */ r(
179
+ j,
180
180
  {
181
181
  hasHeadingRow: s,
182
182
  data: T,
@@ -187,35 +187,35 @@ function Z({
187
187
  },
188
188
  // ── Code block ──────────────────────────────────────────────────────
189
189
  code: ({ value: t }) => t != null && t.code ? /* @__PURE__ */ N("div", { className: `${i.codeBlockWrapper} ${e ?? ""}`, children: [
190
- t.filename && /* @__PURE__ */ n("div", { className: i.codeFilename, children: t.filename }),
191
- /* @__PURE__ */ n("pre", { className: i.codeBlock, children: /* @__PURE__ */ n("code", { children: t.code }) })
190
+ t.filename && /* @__PURE__ */ r("div", { className: i.codeFilename, children: t.filename }),
191
+ /* @__PURE__ */ r("pre", { className: i.codeBlock, children: /* @__PURE__ */ r("code", { children: t.code }) })
192
192
  ] }) : null
193
193
  }
194
194
  }, h;
195
195
  }
196
196
  const pe = ({
197
197
  blocks: e,
198
- className: r,
198
+ className: n,
199
199
  textOverride: o,
200
- animateText: l
200
+ animateText: a
201
201
  }) => {
202
- const a = H("(max-width: 767px)"), p = z(o);
203
- F(() => {
202
+ const m = U("(max-width: 767px)"), p = F(o);
203
+ I(() => {
204
204
  p.current = o;
205
205
  }, [o]);
206
- const m = I(
206
+ const l = W(
207
207
  () => Z({
208
- baseClassName: r,
208
+ baseClassName: n,
209
209
  previousTextRef: p,
210
210
  textOverride: o,
211
- animateText: l,
212
- isMobile: a
211
+ animateText: a,
212
+ isMobile: m
213
213
  }),
214
214
  // previousTextRef intentionally omitted — it's a stable ref object.
215
215
  // eslint-disable-next-line react-hooks/exhaustive-deps
216
- [r, o, l, a]
216
+ [n, o, a, m]
217
217
  );
218
- return e ? typeof e == "string" ? /* @__PURE__ */ n(B, { className: r, children: e }) : /* @__PURE__ */ n("div", { className: `${i.container} portableTextContainer`, children: /* @__PURE__ */ n(q, { value: e, components: m }) }) : null;
218
+ return e ? typeof e == "string" ? /* @__PURE__ */ r(R, { className: n, children: e }) : /* @__PURE__ */ r("div", { className: `${i.container} portableTextContainer`, children: /* @__PURE__ */ r($, { value: e, components: l }) }) : null;
219
219
  };
220
220
  export {
221
221
  pe as RichText
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.1.104",
4
+ "version": "0.1.106",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {