quirk-ui 0.1.51 → 0.1.53

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.
Files changed (39) hide show
  1. package/dist/{CategoryFilters-DGVHtkMK.js → CategoryFilters-CIWwf9VY.js} +1 -1
  2. package/dist/{CategoryFilters-dbhgKOVq.cjs → CategoryFilters-CvmFCE3e.cjs} +1 -1
  3. package/dist/core/components/Button/Button.test.cjs +1 -1
  4. package/dist/core/components/Button/Button.test.mjs +1 -1
  5. package/dist/core/components/Button/index.cjs +1 -1
  6. package/dist/core/components/Button/index.mjs +1 -1
  7. package/dist/core/components/Footer/index.cjs +1 -1
  8. package/dist/core/components/Footer/index.mjs +1 -1
  9. package/dist/core/components/NavBar/index.cjs +2 -2
  10. package/dist/core/components/NavBar/index.mjs +2 -1
  11. package/dist/core/components/Table/index.cjs +1 -1
  12. package/dist/core/components/Table/index.mjs +34 -34
  13. package/dist/core.cjs +1 -1
  14. package/dist/core.mjs +1 -1
  15. package/dist/{index-014h0tPD.js → index-CnlJ2RgH.js} +64 -64
  16. package/dist/{index-C-M4OSu5.cjs → index-D0ylyll7.cjs} +7 -7
  17. package/dist/index11.css +1 -1
  18. package/dist/index17.css +1 -1
  19. package/dist/index31.css +1 -1
  20. package/dist/index65.css +1 -1
  21. package/dist/main.cjs +1 -1
  22. package/dist/main.mjs +1 -1
  23. package/dist/next/blocks/DocumentListBlock/CategoryFilters.cjs +1 -1
  24. package/dist/next/blocks/DocumentListBlock/CategoryFilters.mjs +2 -2
  25. package/dist/next/blocks/DocumentListBlock/index.cjs +1 -1
  26. package/dist/next/blocks/DocumentListBlock/index.mjs +2 -2
  27. package/dist/next/blocks/TabsBlock/index.cjs +1 -1
  28. package/dist/next/blocks/TabsBlock/index.mjs +1 -1
  29. package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
  30. package/dist/next/blocks/WasHelpfulBlock/index.mjs +1 -1
  31. package/dist/next/cards/ProductCard/index.cjs +1 -1
  32. package/dist/next/cards/ProductCard/index.mjs +37 -37
  33. package/dist/next/cards/SpotlightCard/index.cjs +1 -1
  34. package/dist/next/cards/SpotlightCard/index.mjs +1 -1
  35. package/dist/next/ui/CallToAction/index.cjs +1 -1
  36. package/dist/next/ui/CallToAction/index.mjs +1 -1
  37. package/dist/next/ui/PortableTextRenderer/index.cjs +1 -1
  38. package/dist/next/ui/PortableTextRenderer/index.mjs +68 -68
  39. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { B as h } from "./index-014h0tPD.js";
2
+ import { B as h } from "./index-CnlJ2RgH.js";
3
3
  import { X as v } from "./x-CnsEH4Ox.js";
4
4
  import './CategoryFilters.css';const p = "_documentList_1vg9o_1", u = "_container_1vg9o_9", m = "_heading_1vg9o_20", b = "_title_1vg9o_25", f = "_eyebrow_1vg9o_30", H = "_listContainer_1vg9o_34", L = "_listWrapper_1vg9o_45", S = "_list_1vg9o_34", F = "_listHeader_1vg9o_66", w = "_listSearch_1vg9o_79", y = "_clearSearch_1vg9o_106", C = "_listHeaderFilters_1vg9o_125", k = "_listResults_1vg9o_136", x = "_listSort_1vg9o_140", N = "_filterToggle_1vg9o_163", I = "_filterHeader_1vg9o_178", M = "_loadMore_1vg9o_199", R = "_filterList_1vg9o_203", T = "_listFilters_1vg9o_210", W = "_applyFilters_1vg9o_218", j = "_show_1vg9o_247", B = "_hide_1vg9o_256", $ = "_buttonIsLoading_1vg9o_307", s = {
5
5
  documentList: p,
@@ -1 +1 @@
1
- "use strict";require('./CategoryFilters.css');const t=require("react/jsx-runtime"),g=require("./index-C-M4OSu5.cjs"),h=require("./x-Dft9NVe_.cjs"),v="_documentList_1vg9o_1",u="_container_1vg9o_9",p="_heading_1vg9o_20",x="_title_1vg9o_25",b="_eyebrow_1vg9o_30",y="_listContainer_1vg9o_34",F="_listWrapper_1vg9o_45",H="_list_1vg9o_34",L="_listHeader_1vg9o_66",S="_listSearch_1vg9o_79",j="_clearSearch_1vg9o_106",m="_listHeaderFilters_1vg9o_125",f="_listResults_1vg9o_136",w="_listSort_1vg9o_140",C="_filterToggle_1vg9o_163",k="_filterHeader_1vg9o_178",q="_loadMore_1vg9o_199",N="_filterList_1vg9o_203",$="_listFilters_1vg9o_210",I="_applyFilters_1vg9o_218",M="_show_1vg9o_247",R="_hide_1vg9o_256",T="_buttonIsLoading_1vg9o_307",e={documentList:v,container:u,heading:p,title:x,eyebrow:b,listContainer:y,listWrapper:F,list:H,listHeader:L,listSearch:S,clearSearch:j,listHeaderFilters:m,listResults:f,listSort:w,filterToggle:C,filterHeader:k,loadMore:q,filterList:N,listFilters:$,applyFilters:I,show:M,hide:R,buttonIsLoading:T};function W({categoryFilters:i,selectedCategories:o,onSelectionChange:n,showFilters:_,toggleFilters:l,isLoading:r}){return t.jsxs("div",{className:`${e.listFilters} ${_?e.show:e.hide}`,children:[t.jsxs("div",{className:e.filterHeader,children:[t.jsx("h5",{children:"Filters"}),t.jsx("button",{onClick:l,children:t.jsx(h.X,{size:24})})]}),t.jsx("div",{className:e.filterList,children:i==null?void 0:i.map(s=>t.jsxs("label",{children:[t.jsx("input",{type:"checkbox",value:s._id,checked:o.includes(s._id),onChange:c=>{const a=c.target.checked?[...o,s._id]:o.filter(d=>d!==s._id);n(a)}}),s.title]},s._id))}),t.jsx(g.Button,{as:"button",variant:"secondary",onClick:l,disabled:r,className:e.applyFilters,children:"Apply Filters"})]})}exports.CategoryFilters=W;exports.styles=e;
1
+ "use strict";require('./CategoryFilters.css');const t=require("react/jsx-runtime"),g=require("./index-D0ylyll7.cjs"),h=require("./x-Dft9NVe_.cjs"),v="_documentList_1vg9o_1",u="_container_1vg9o_9",p="_heading_1vg9o_20",x="_title_1vg9o_25",b="_eyebrow_1vg9o_30",y="_listContainer_1vg9o_34",F="_listWrapper_1vg9o_45",H="_list_1vg9o_34",L="_listHeader_1vg9o_66",S="_listSearch_1vg9o_79",j="_clearSearch_1vg9o_106",m="_listHeaderFilters_1vg9o_125",f="_listResults_1vg9o_136",w="_listSort_1vg9o_140",C="_filterToggle_1vg9o_163",k="_filterHeader_1vg9o_178",q="_loadMore_1vg9o_199",N="_filterList_1vg9o_203",$="_listFilters_1vg9o_210",I="_applyFilters_1vg9o_218",M="_show_1vg9o_247",R="_hide_1vg9o_256",T="_buttonIsLoading_1vg9o_307",e={documentList:v,container:u,heading:p,title:x,eyebrow:b,listContainer:y,listWrapper:F,list:H,listHeader:L,listSearch:S,clearSearch:j,listHeaderFilters:m,listResults:f,listSort:w,filterToggle:C,filterHeader:k,loadMore:q,filterList:N,listFilters:$,applyFilters:I,show:M,hide:R,buttonIsLoading:T};function W({categoryFilters:i,selectedCategories:o,onSelectionChange:n,showFilters:_,toggleFilters:l,isLoading:r}){return t.jsxs("div",{className:`${e.listFilters} ${_?e.show:e.hide}`,children:[t.jsxs("div",{className:e.filterHeader,children:[t.jsx("h5",{children:"Filters"}),t.jsx("button",{onClick:l,children:t.jsx(h.X,{size:24})})]}),t.jsx("div",{className:e.filterList,children:i==null?void 0:i.map(s=>t.jsxs("label",{children:[t.jsx("input",{type:"checkbox",value:s._id,checked:o.includes(s._id),onChange:c=>{const a=c.target.checked?[...o,s._id]:o.filter(d=>d!==s._id);n(a)}}),s.title]},s._id))}),t.jsx(g.Button,{as:"button",variant:"secondary",onClick:l,disabled:r,className:e.applyFilters,children:"Apply Filters"})]})}exports.CategoryFilters=W;exports.styles=e;
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),e=require("../../../index-DITXfOUM.cjs"),r=require("../../../index-C-M4OSu5.cjs");e.describe("Button",()=>{e.describe("Rendering as button",()=>{e.it("renders as a button by default",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Click Me"}));const t=e.screen.getByRole("button",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t.tagName).toBe("BUTTON")}),e.it("renders as a button when 'as' is set to 'button'",()=>{e.render(n.jsx(r.Button,{as:"button",variant:"primary",children:"Click Me"}));const t=e.screen.getByRole("button",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t).toHaveClass("button","primary")}),e.it("has type='button' by default",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Click Me"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveAttribute("type","button")}),e.it("respects the disabled prop on buttons",()=>{e.render(n.jsx(r.Button,{as:"button",variant:"primary",disabled:!0,children:"Disabled"}));const t=e.screen.getByRole("button",{name:"Disabled"});e.globalExpect(t).toBeDisabled()}),e.it("calls onClick when clicked",()=>{const t=e.vi.fn();e.render(n.jsx(r.Button,{variant:"primary",onClick:t,children:"Click Me"}));const o=e.screen.getByRole("button");e.fireEvent.click(o),e.globalExpect(t).toHaveBeenCalledTimes(1)}),e.it("does not call onClick when disabled",()=>{const t=e.vi.fn();e.render(n.jsx(r.Button,{variant:"primary",onClick:t,disabled:!0,children:"Disabled"}));const o=e.screen.getByRole("button");e.fireEvent.click(o),e.globalExpect(t).not.toHaveBeenCalled()})}),e.describe("Rendering as anchor",()=>{e.it("renders as an anchor when 'as' is set to 'a'",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",children:"Click Me"}));const t=e.screen.getByRole("link",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t.tagName).toBe("A"),e.globalExpect(t).toHaveAttribute("href","/test"),e.globalExpect(t).toHaveClass("button","link")}),e.it("adds rel='noopener noreferrer' when target is '_blank'",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",target:"_blank",variant:"link",children:"External"}));const t=e.screen.getByRole("link",{name:"External"});e.globalExpect(t).toHaveAttribute("rel","noopener noreferrer")}),e.it("preserves custom rel attribute and adds security",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",target:"_blank",rel:"author",variant:"link",children:"External"}));const t=e.screen.getByRole("link");e.globalExpect(t).toHaveAttribute("rel","author noopener noreferrer")}),e.it("does not add security rel for internal links",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",children:"Internal"}));const t=e.screen.getByRole("link");e.globalExpect(t).not.toHaveAttribute("rel")}),e.it("adds aria-disabled when disabled",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",disabled:!0,children:"Disabled Link"}));const t=e.screen.getByRole("link");e.globalExpect(t).toHaveAttribute("aria-disabled","true")})}),e.describe("Scroll button",()=>{e.it("renders as a scroll button when 'as' is set to 'scroll'",()=>{e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"section-1",variant:"primary",children:"Scroll Down"}));const t=e.screen.getByRole("button",{name:"Scroll to section-1"});e.globalExpect(t).toBeInTheDocument()}),e.it("has proper aria-label for scroll button",()=>{e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"footer",variant:"primary",children:"To Footer"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveAttribute("aria-label","Scroll to footer")}),e.it("scrolls to target element when clicked",()=>{const t=document.createElement("div");t.id="target-section",document.body.appendChild(t);const o=e.vi.fn();t.scrollIntoView=o,e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"target-section",variant:"primary",children:"Scroll"}));const a=e.screen.getByRole("button");e.fireEvent.click(a),e.globalExpect(o).toHaveBeenCalledWith({behavior:"smooth",block:"start"}),document.body.removeChild(t)}),e.it("does not error if scroll target does not exist",()=>{e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"non-existent",variant:"primary",children:"Scroll"}));const t=e.screen.getByRole("button");e.globalExpect(()=>e.fireEvent.click(t)).not.toThrow()})}),e.describe("Variants",()=>{["primary","primaryInverted","secondary","secondaryInverted","link","linkInverted","underline","underlineInverted","blurred","blurredInverted"].forEach(o=>{e.it(`applies ${o} variant class`,()=>{e.render(n.jsx(r.Button,{variant:o,children:"Button"}));const a=e.screen.getByRole("button");e.globalExpect(a).toHaveClass(o)})}),e.it("uses primary variant by default",()=>{e.render(n.jsx(r.Button,{children:"Default"}));const o=e.screen.getByRole("button");e.globalExpect(o).toHaveClass("primary")})}),e.describe("Icons",()=>{e.it("includes icon when icon prop is provided",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-right",children:"Next"}));const t=document.querySelector(".icon");e.globalExpect(t).toBeInTheDocument();const o=t==null?void 0:t.querySelector("svg");e.globalExpect(o).toBeInTheDocument()}),e.it("places icon on the left when iconAlignment is 'left'",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-left",iconAlignment:"left",children:"Back"}));const t=document.querySelector(".content");e.globalExpect(t).toHaveClass("iconLeft")}),e.it("places icon on the right when iconAlignment is 'right'",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-right",iconAlignment:"right",children:"Next"}));const t=document.querySelector(".content");e.globalExpect(t).toHaveClass("iconRight")}),e.it("uses right alignment by default",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-right",children:"Default Icon"}));const t=document.querySelector(".content");e.globalExpect(t).toHaveClass("iconRight")}),e.it("icon has aria-hidden attribute",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"settings",children:"Settings"}));const t=document.querySelector(".icon");e.globalExpect(t).toHaveAttribute("aria-hidden","true")}),e.it("works with anchor links",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",icon:"new-tab",children:"External"}));const t=document.querySelector(".icon");e.globalExpect(t).toBeInTheDocument()})}),e.describe("Image display",()=>{e.it("renders image when displayType is 'image' and imageSrc is provided",()=>{e.render(n.jsx(r.Button,{variant:"primary",displayType:"image",imageSrc:"/logo.png",imageAlt:"Company Logo",children:"Text not shown"}));const t=document.querySelector("img");e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t).toHaveAttribute("src","/logo.png"),e.globalExpect(t).toHaveAttribute("alt","Company Logo")}),e.it("renders ImageComponent when provided",()=>{const t=()=>n.jsx("div",{"data-testid":"custom-image",children:"Custom"});e.render(n.jsx(r.Button,{variant:"primary",displayType:"image",ImageComponent:n.jsx(t,{}),children:"Text"})),e.globalExpect(e.screen.getByTestId("custom-image")).toBeInTheDocument()}),e.it("applies image class when displayType is image",()=>{e.render(n.jsx(r.Button,{variant:"primary",displayType:"image",imageSrc:"/logo.png",children:"Text"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveClass("image"),e.globalExpect(t).not.toHaveClass("primary")})}),e.describe("Custom className",()=>{e.it("applies custom className",()=>{e.render(n.jsx(r.Button,{variant:"primary",className:"custom-button",children:"Custom"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveClass("custom-button"),e.globalExpect(t).toHaveClass("button"),e.globalExpect(t).toHaveClass("primary")})}),e.describe("Accessibility",()=>{e.it("has button role for button element",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Click"})),e.globalExpect(e.screen.getByRole("button")).toBeInTheDocument()}),e.it("has link role for anchor element",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",children:"Link"})),e.globalExpect(e.screen.getByRole("link")).toBeInTheDocument()}),e.it("supports aria attributes",()=>{e.render(n.jsx(r.Button,{variant:"primary","aria-label":"Custom Label","aria-describedby":"desc",children:"Button"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveAttribute("aria-label","Custom Label"),e.globalExpect(t).toHaveAttribute("aria-describedby","desc")})}),e.describe("Edge cases",()=>{e.it("handles undefined variant",()=>{e.render(n.jsx(r.Button,{variant:void 0,children:"No Variant"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveClass("button")}),e.it("handles empty children",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Primary"}));const t=e.screen.getByRole("button");e.globalExpect(t).toBeInTheDocument()}),e.it("handles complex children",()=>{e.render(n.jsxs(r.Button,{variant:"primary",children:[n.jsx("span",{children:"Complex"}),n.jsx("strong",{children:"Children"})]})),e.globalExpect(e.screen.getByText("Complex")).toBeInTheDocument(),e.globalExpect(e.screen.getByText("Children")).toBeInTheDocument()})})});
1
+ "use strict";const n=require("react/jsx-runtime"),e=require("../../../index-DITXfOUM.cjs"),r=require("../../../index-D0ylyll7.cjs");e.describe("Button",()=>{e.describe("Rendering as button",()=>{e.it("renders as a button by default",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Click Me"}));const t=e.screen.getByRole("button",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t.tagName).toBe("BUTTON")}),e.it("renders as a button when 'as' is set to 'button'",()=>{e.render(n.jsx(r.Button,{as:"button",variant:"primary",children:"Click Me"}));const t=e.screen.getByRole("button",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t).toHaveClass("button","primary")}),e.it("has type='button' by default",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Click Me"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveAttribute("type","button")}),e.it("respects the disabled prop on buttons",()=>{e.render(n.jsx(r.Button,{as:"button",variant:"primary",disabled:!0,children:"Disabled"}));const t=e.screen.getByRole("button",{name:"Disabled"});e.globalExpect(t).toBeDisabled()}),e.it("calls onClick when clicked",()=>{const t=e.vi.fn();e.render(n.jsx(r.Button,{variant:"primary",onClick:t,children:"Click Me"}));const o=e.screen.getByRole("button");e.fireEvent.click(o),e.globalExpect(t).toHaveBeenCalledTimes(1)}),e.it("does not call onClick when disabled",()=>{const t=e.vi.fn();e.render(n.jsx(r.Button,{variant:"primary",onClick:t,disabled:!0,children:"Disabled"}));const o=e.screen.getByRole("button");e.fireEvent.click(o),e.globalExpect(t).not.toHaveBeenCalled()})}),e.describe("Rendering as anchor",()=>{e.it("renders as an anchor when 'as' is set to 'a'",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",children:"Click Me"}));const t=e.screen.getByRole("link",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t.tagName).toBe("A"),e.globalExpect(t).toHaveAttribute("href","/test"),e.globalExpect(t).toHaveClass("button","link")}),e.it("adds rel='noopener noreferrer' when target is '_blank'",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",target:"_blank",variant:"link",children:"External"}));const t=e.screen.getByRole("link",{name:"External"});e.globalExpect(t).toHaveAttribute("rel","noopener noreferrer")}),e.it("preserves custom rel attribute and adds security",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",target:"_blank",rel:"author",variant:"link",children:"External"}));const t=e.screen.getByRole("link");e.globalExpect(t).toHaveAttribute("rel","author noopener noreferrer")}),e.it("does not add security rel for internal links",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",children:"Internal"}));const t=e.screen.getByRole("link");e.globalExpect(t).not.toHaveAttribute("rel")}),e.it("adds aria-disabled when disabled",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",disabled:!0,children:"Disabled Link"}));const t=e.screen.getByRole("link");e.globalExpect(t).toHaveAttribute("aria-disabled","true")})}),e.describe("Scroll button",()=>{e.it("renders as a scroll button when 'as' is set to 'scroll'",()=>{e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"section-1",variant:"primary",children:"Scroll Down"}));const t=e.screen.getByRole("button",{name:"Scroll to section-1"});e.globalExpect(t).toBeInTheDocument()}),e.it("has proper aria-label for scroll button",()=>{e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"footer",variant:"primary",children:"To Footer"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveAttribute("aria-label","Scroll to footer")}),e.it("scrolls to target element when clicked",()=>{const t=document.createElement("div");t.id="target-section",document.body.appendChild(t);const o=e.vi.fn();t.scrollIntoView=o,e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"target-section",variant:"primary",children:"Scroll"}));const a=e.screen.getByRole("button");e.fireEvent.click(a),e.globalExpect(o).toHaveBeenCalledWith({behavior:"smooth",block:"start"}),document.body.removeChild(t)}),e.it("does not error if scroll target does not exist",()=>{e.render(n.jsx(r.Button,{as:"scroll",scrollTarget:"non-existent",variant:"primary",children:"Scroll"}));const t=e.screen.getByRole("button");e.globalExpect(()=>e.fireEvent.click(t)).not.toThrow()})}),e.describe("Variants",()=>{["primary","primaryInverted","secondary","secondaryInverted","link","linkInverted","underline","underlineInverted","blurred","blurredInverted"].forEach(o=>{e.it(`applies ${o} variant class`,()=>{e.render(n.jsx(r.Button,{variant:o,children:"Button"}));const a=e.screen.getByRole("button");e.globalExpect(a).toHaveClass(o)})}),e.it("uses primary variant by default",()=>{e.render(n.jsx(r.Button,{children:"Default"}));const o=e.screen.getByRole("button");e.globalExpect(o).toHaveClass("primary")})}),e.describe("Icons",()=>{e.it("includes icon when icon prop is provided",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-right",children:"Next"}));const t=document.querySelector(".icon");e.globalExpect(t).toBeInTheDocument();const o=t==null?void 0:t.querySelector("svg");e.globalExpect(o).toBeInTheDocument()}),e.it("places icon on the left when iconAlignment is 'left'",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-left",iconAlignment:"left",children:"Back"}));const t=document.querySelector(".content");e.globalExpect(t).toHaveClass("iconLeft")}),e.it("places icon on the right when iconAlignment is 'right'",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-right",iconAlignment:"right",children:"Next"}));const t=document.querySelector(".content");e.globalExpect(t).toHaveClass("iconRight")}),e.it("uses right alignment by default",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"arrow-right",children:"Default Icon"}));const t=document.querySelector(".content");e.globalExpect(t).toHaveClass("iconRight")}),e.it("icon has aria-hidden attribute",()=>{e.render(n.jsx(r.Button,{variant:"primary",icon:"settings",children:"Settings"}));const t=document.querySelector(".icon");e.globalExpect(t).toHaveAttribute("aria-hidden","true")}),e.it("works with anchor links",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",icon:"new-tab",children:"External"}));const t=document.querySelector(".icon");e.globalExpect(t).toBeInTheDocument()})}),e.describe("Image display",()=>{e.it("renders image when displayType is 'image' and imageSrc is provided",()=>{e.render(n.jsx(r.Button,{variant:"primary",displayType:"image",imageSrc:"/logo.png",imageAlt:"Company Logo",children:"Text not shown"}));const t=document.querySelector("img");e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t).toHaveAttribute("src","/logo.png"),e.globalExpect(t).toHaveAttribute("alt","Company Logo")}),e.it("renders ImageComponent when provided",()=>{const t=()=>n.jsx("div",{"data-testid":"custom-image",children:"Custom"});e.render(n.jsx(r.Button,{variant:"primary",displayType:"image",ImageComponent:n.jsx(t,{}),children:"Text"})),e.globalExpect(e.screen.getByTestId("custom-image")).toBeInTheDocument()}),e.it("applies image class when displayType is image",()=>{e.render(n.jsx(r.Button,{variant:"primary",displayType:"image",imageSrc:"/logo.png",children:"Text"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveClass("image"),e.globalExpect(t).not.toHaveClass("primary")})}),e.describe("Custom className",()=>{e.it("applies custom className",()=>{e.render(n.jsx(r.Button,{variant:"primary",className:"custom-button",children:"Custom"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveClass("custom-button"),e.globalExpect(t).toHaveClass("button"),e.globalExpect(t).toHaveClass("primary")})}),e.describe("Accessibility",()=>{e.it("has button role for button element",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Click"})),e.globalExpect(e.screen.getByRole("button")).toBeInTheDocument()}),e.it("has link role for anchor element",()=>{e.render(n.jsx(r.Button,{as:"a",href:"/test",variant:"link",children:"Link"})),e.globalExpect(e.screen.getByRole("link")).toBeInTheDocument()}),e.it("supports aria attributes",()=>{e.render(n.jsx(r.Button,{variant:"primary","aria-label":"Custom Label","aria-describedby":"desc",children:"Button"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveAttribute("aria-label","Custom Label"),e.globalExpect(t).toHaveAttribute("aria-describedby","desc")})}),e.describe("Edge cases",()=>{e.it("handles undefined variant",()=>{e.render(n.jsx(r.Button,{variant:void 0,children:"No Variant"}));const t=e.screen.getByRole("button");e.globalExpect(t).toHaveClass("button")}),e.it("handles empty children",()=>{e.render(n.jsx(r.Button,{variant:"primary",children:"Primary"}));const t=e.screen.getByRole("button");e.globalExpect(t).toBeInTheDocument()}),e.it("handles complex children",()=>{e.render(n.jsxs(r.Button,{variant:"primary",children:[n.jsx("span",{children:"Complex"}),n.jsx("strong",{children:"Children"})]})),e.globalExpect(e.screen.getByText("Complex")).toBeInTheDocument(),e.globalExpect(e.screen.getByText("Children")).toBeInTheDocument()})})});
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
2
  import { d as s, i as o, r as a, s as i, g as t, v as u, f as c } from "../../../index-BQV8LRFm.js";
3
- import { B as r } from "../../../index-014h0tPD.js";
3
+ import { B as r } from "../../../index-CnlJ2RgH.js";
4
4
  s("Button", () => {
5
5
  s("Rendering as button", () => {
6
6
  o("renders as a button by default", () => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const e=require("../../../index-C-M4OSu5.cjs");require("../../../index-CBK5rp6X.cjs");require("../../../external-link-DDShu-48.cjs");require("../../../play-CQBnZgNa.cjs");require("../../../chevron-right-motlyADs.cjs");require("../../../chevron-down-DfK1XBl3.cjs");require("../../../arrow-right-DO6S4vfx.cjs");require("../../../arrow-left-4E3t8axP.cjs");exports.Button=e.Button;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const e=require("../../../index-D0ylyll7.cjs");require("../../../index-CBK5rp6X.cjs");require("../../../external-link-DDShu-48.cjs");require("../../../play-CQBnZgNa.cjs");require("../../../chevron-right-motlyADs.cjs");require("../../../chevron-down-DfK1XBl3.cjs");require("../../../arrow-right-DO6S4vfx.cjs");require("../../../arrow-left-4E3t8axP.cjs");exports.Button=e.Button;
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { B as s } from "../../../index-014h0tPD.js";
3
+ import { B as s } from "../../../index-CnlJ2RgH.js";
4
4
  import "../../../index-CeBA0PT0.js";
5
5
  import "../../../external-link-BOPobeQJ.js";
6
6
  import "../../../play-DYgKiSaf.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index45.css');const n=require("react/jsx-runtime"),k=require("../../../index-C-M4OSu5.cjs"),$=require("../ButtonGroup/index.cjs"),o=require("../../../index-CBK5rp6X.cjs"),F=require("../../../external-link-DDShu-48.cjs"),I="_footer_10n06_1",S="_container_10n06_10",q="_primaryNav_10n06_24",w="_secondaryNav_10n06_35",L="_details_10n06_72",A="_nav_10n06_85",B="_logo_10n06_93",E="_socialItems_10n06_108",C="_group_10n06_115",M="_groups_10n06_125",z="_groupTitle_10n06_136",G="_sublinks_10n06_145",Y="_link_10n06_153",O="_newTabIcon_10n06_171",P="_bottom_10n06_185",U="_left_10n06_196",D="_center_10n06_216",H="_right_10n06_246",e={footer:I,container:S,primaryNav:q,secondaryNav:w,details:L,nav:A,logo:B,socialItems:E,group:C,groups:M,groupTitle:z,sublinks:G,link:Y,newTabIcon:O,bottom:P,left:U,center:D,right:H},J={Facebook:o.FaFacebook,Twitter:o.FaTwitter,LinkedIn:o.FaLinkedin,Instagram:o.FaInstagram,YouTube:o.FaYoutube},K={left:e.left,center:e.center,right:e.right};function Q({logo:d,items:u,primaryInfo:g,secondaryInfo:h,utilityItems:t,socialItems:i,alignment:m="left",copyright:v,className:b,style:j,...N}){const l=(s,r=!1)=>s.map((a,f)=>{var x;const y=a._key??`${a.label}-${f}`,c=!!((x=a.sublinks)!=null&&x.length),T=!!a.href,_=a.icon?J[a.icon]:void 0,p=n.jsxs(n.Fragment,{children:[!r&&a.label,_&&n.jsx(_,{"aria-hidden":"true"}),!_&&a.isExternal&&n.jsx(F.ExternalLink,{className:e.newTabIcon,size:14,"aria-hidden":"true"})]});return n.jsxs("div",{className:e.group,children:[T?n.jsx("a",{href:a.href,className:`${e.link}${c?` ${e.groupTitle}`:""}`,target:a.isExternal?"_blank":"_self",rel:a.isExternal?"noopener noreferrer":void 0,"aria-label":r?a.label:void 0,onClick:a.onClick,children:p}):n.jsx("span",{className:c?e.groupTitle:void 0,children:p}),c&&n.jsx("div",{className:e.sublinks,"aria-label":`${a.label} links`,children:l(a.sublinks)})]},y)});return n.jsx("footer",{className:`${e.footer} ${K[m]}${b?` ${b}`:""}`,style:j,...N,children:n.jsxs("div",{className:e.container,children:[n.jsxs("div",{className:e.primaryNav,children:[n.jsxs("div",{className:e.details,children:[d&&n.jsx("div",{className:e.logo,children:d}),i&&i.length>0&&n.jsx("div",{className:e.socialItems,"aria-label":"Social media links",children:l(i,!0)}),g&&n.jsx("div",{children:g}),h&&n.jsx("div",{children:h})]}),u.length>0&&n.jsx("nav",{className:e.nav,id:"footer-nav","aria-label":"Footer navigation",children:n.jsx("div",{className:e.groups,children:l(u)})})]}),n.jsxs("div",{className:e.secondaryNav,children:[v&&n.jsx("div",{className:e.bottom,children:n.jsx("span",{children:v})}),t&&t.length>0&&n.jsx("nav",{"aria-label":"Utility links",children:n.jsx($.ButtonGroup,{orientation:"horizontal",children:t.map((s,r)=>n.jsx(k.Button,{as:"a",href:s.href??"/",variant:s.variant??"primary",displayType:s.displayType??"text",imageSrc:s.imageSrc,imageAlt:s.imageAlt,"aria-label":s.ariaLabel??(typeof s.label=="string"?s.label:""),icon:s.icon,iconAlignment:s.iconAlignment,children:s.label},s._key??r))})})]})]})})}exports.Footer=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index45.css');const n=require("react/jsx-runtime"),k=require("../../../index-D0ylyll7.cjs"),$=require("../ButtonGroup/index.cjs"),o=require("../../../index-CBK5rp6X.cjs"),F=require("../../../external-link-DDShu-48.cjs"),I="_footer_10n06_1",S="_container_10n06_10",q="_primaryNav_10n06_24",w="_secondaryNav_10n06_35",L="_details_10n06_72",A="_nav_10n06_85",B="_logo_10n06_93",E="_socialItems_10n06_108",C="_group_10n06_115",M="_groups_10n06_125",z="_groupTitle_10n06_136",G="_sublinks_10n06_145",Y="_link_10n06_153",O="_newTabIcon_10n06_171",P="_bottom_10n06_185",U="_left_10n06_196",D="_center_10n06_216",H="_right_10n06_246",e={footer:I,container:S,primaryNav:q,secondaryNav:w,details:L,nav:A,logo:B,socialItems:E,group:C,groups:M,groupTitle:z,sublinks:G,link:Y,newTabIcon:O,bottom:P,left:U,center:D,right:H},J={Facebook:o.FaFacebook,Twitter:o.FaTwitter,LinkedIn:o.FaLinkedin,Instagram:o.FaInstagram,YouTube:o.FaYoutube},K={left:e.left,center:e.center,right:e.right};function Q({logo:d,items:u,primaryInfo:g,secondaryInfo:h,utilityItems:t,socialItems:i,alignment:m="left",copyright:v,className:b,style:j,...N}){const l=(s,r=!1)=>s.map((a,f)=>{var x;const y=a._key??`${a.label}-${f}`,c=!!((x=a.sublinks)!=null&&x.length),T=!!a.href,_=a.icon?J[a.icon]:void 0,p=n.jsxs(n.Fragment,{children:[!r&&a.label,_&&n.jsx(_,{"aria-hidden":"true"}),!_&&a.isExternal&&n.jsx(F.ExternalLink,{className:e.newTabIcon,size:14,"aria-hidden":"true"})]});return n.jsxs("div",{className:e.group,children:[T?n.jsx("a",{href:a.href,className:`${e.link}${c?` ${e.groupTitle}`:""}`,target:a.isExternal?"_blank":"_self",rel:a.isExternal?"noopener noreferrer":void 0,"aria-label":r?a.label:void 0,onClick:a.onClick,children:p}):n.jsx("span",{className:c?e.groupTitle:void 0,children:p}),c&&n.jsx("div",{className:e.sublinks,"aria-label":`${a.label} links`,children:l(a.sublinks)})]},y)});return n.jsx("footer",{className:`${e.footer} ${K[m]}${b?` ${b}`:""}`,style:j,...N,children:n.jsxs("div",{className:e.container,children:[n.jsxs("div",{className:e.primaryNav,children:[n.jsxs("div",{className:e.details,children:[d&&n.jsx("div",{className:e.logo,children:d}),i&&i.length>0&&n.jsx("div",{className:e.socialItems,"aria-label":"Social media links",children:l(i,!0)}),g&&n.jsx("div",{children:g}),h&&n.jsx("div",{children:h})]}),u.length>0&&n.jsx("nav",{className:e.nav,id:"footer-nav","aria-label":"Footer navigation",children:n.jsx("div",{className:e.groups,children:l(u)})})]}),n.jsxs("div",{className:e.secondaryNav,children:[v&&n.jsx("div",{className:e.bottom,children:n.jsx("span",{children:v})}),t&&t.length>0&&n.jsx("nav",{"aria-label":"Utility links",children:n.jsx($.ButtonGroup,{orientation:"horizontal",children:t.map((s,r)=>n.jsx(k.Button,{as:"a",href:s.href??"/",variant:s.variant??"primary",displayType:s.displayType??"text",imageSrc:s.imageSrc,imageAlt:s.imageAlt,"aria-label":s.ariaLabel??(typeof s.label=="string"?s.label:""),icon:s.icon,iconAlignment:s.iconAlignment,children:s.label},s._key??r))})})]})]})})}exports.Footer=Q;
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as r, Fragment as $ } from "react/jsx-runtime";
2
- import { B as x } from "../../../index-014h0tPD.js";
2
+ import { B as x } from "../../../index-CnlJ2RgH.js";
3
3
  import { ButtonGroup as I } from "../ButtonGroup/index.mjs";
4
4
  import { a as w, b as E, c as S, d as A, e as L } from "../../../index-CeBA0PT0.js";
5
5
  import { E as B } from "../../../external-link-BOPobeQJ.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("react"),se=require("../Modal/index.cjs"),q=require("../../../index-C-M4OSu5.cjs"),le=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-C8zuF_oM.cjs"),U=require("../../utils/NoScroll/noScroll.cjs"),we=require("../../../chevron-right-motlyADs.cjs"),P=require("../../../external-link-DDShu-48.cjs"),Ce=require("../../../x-Dft9NVe_.cjs"),ne=require("../../../createLucideIcon-DpotSgUx.cjs"),_e=require("../../../chevron-down-DfK1XBl3.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("react"),se=require("../Modal/index.cjs"),z=require("../../../index-D0ylyll7.cjs"),le=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-C8zuF_oM.cjs"),U=require("../../utils/NoScroll/noScroll.cjs"),we=require("../../../chevron-right-motlyADs.cjs"),P=require("../../../external-link-DDShu-48.cjs"),Ce=require("../../../x-Dft9NVe_.cjs"),ne=require("../../../createLucideIcon-DpotSgUx.cjs"),_e=require("../../../chevron-down-DfK1XBl3.cjs");/**
2
2
  * @license lucide-react v0.488.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -8,4 +8,4 @@
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const Le=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Me=ne.createLucideIcon("search",Le),Ee={standard:e.styles.standard,transparent:e.styles.transparent},Be={left:e.styles.left,center:e.styles.center,right:e.styles.right},Re=({spotlight:i,renderText:h})=>{var y,_,p,v,k,S;const r=i.callToAction;if(!r)return null;const j=((y=r.linkOptions)==null?void 0:y.linkType)==="external";let u="#";return j&&((_=r.linkOptions)!=null&&_.externalUrl)?u=r.linkOptions.externalUrl:((p=r.linkOptions)==null?void 0:p.linkType)==="internal"&&((k=(v=r.linkOptions)==null?void 0:v.internalUrl)!=null&&k.slug.current)&&(u=`/${r.linkOptions.internalUrl.slug.current}`),s.jsxs("div",{className:e.styles.spotlight,children:[i.image&&s.jsx("div",{className:e.styles.imageWrapper,children:s.jsx("img",{src:((S=i.image.imageUrls)==null?void 0:S.medium)??"",alt:i.image.asset.altText||i.image.asset.description||"Content image",width:600,height:400})}),s.jsxs("div",{className:e.styles.content,children:[i.title&&s.jsx("div",{className:e.styles.title,children:h==null?void 0:h(i.title,e.styles.title)}),i.description&&s.jsx("div",{className:e.styles.description,children:h==null?void 0:h(i.description,e.styles.description)})]}),r.linkOptions&&s.jsx("div",{className:e.styles.actions,children:s.jsx(q.Button,{as:"a",variant:r.variant??"primary",href:u,target:j?"_blank":"_self",rel:j?"noopener noreferrer":void 0,"aria-label":r.ariaLabel||r.label,children:r.label})})]})};function qe({renderText:i,title:h,logo:r,items:j,groups:u,utilityItems:y,isSticky:_=!1,showSearch:p=!0,showLocaleSelect:v=!0,showThemeToggle:k=!0,themeToggleComponent:S,alignment:z="right",variant:ae="standard",navigationType:I="default",searchComponent:te,localeSelectComponent:ie,className:re,style:ce,...oe}){const[m,V]=a.useState(!1),[H,f]=a.useState(null),[de,ue]=a.useState(0),[ye,he]=a.useState(!1),[me,be]=a.useState(null),[c,$]=a.useState([]),[L,O]=a.useState(0),[xe,X]=a.useState(null),[w,pe]=a.useState(!1),[M,E]=a.useState("forward"),A=a.useRef(null),C=a.useRef(null),W=a.useRef(new Map),J=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,children:s.jsx("div",{className:`${e.styles.linkItem} ${e.styles.themeToggle}`,children:S})}),F=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(se.Modal,{className:e.styles.searchModal,trigger:s.jsx("button",{title:"Search","aria-label":"Search",className:e.styles.search,children:s.jsx(Me,{size:16,"aria-hidden":"true"})}),content:te})})}),K=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(se.Modal,{className:e.styles.localeModal,trigger:s.jsx("button",{title:"Locale Select","aria-label":"Locale Select",className:e.styles.locale,children:s.jsx(Ie,{size:16,"aria-hidden":"true"})}),content:ie})})}),B=a.useCallback(()=>{C.current&&ue(C.current.getBoundingClientRect().width)},[]),fe=()=>{V(l=>{const n=!l;return n||($([]),E("forward"),f(null)),n})},Q=a.useCallback(l=>{const n=W.current.get(l);if(n&&C.current){const d=n.getBoundingClientRect(),b=C.current.getBoundingClientRect();be(d.left-b.left+d.width/2)}},[]),je=a.useCallback(l=>{f(n=>n===l?null:l)},[]),G=a.useCallback(l=>{A.current&&!A.current.contains(l.target)&&f(null)},[]),D=a.useCallback(()=>{B(),typeof window<"u"&&window.innerWidth>768&&(V(!1),f(null))},[B]),ve=()=>$([]),ke=l=>{E("forward"),$([{title:l.title,primary:l.primaryItems??[],secondary:l.secondaryItems??[],description:""}])},Y=l=>{E("forward"),$(n=>[...n,{title:l.label,primary:l.sublinks??[],secondary:[],description:l.description}])},ge=()=>{E("backward"),$(l=>l.slice(0,-1))};a.useEffect(()=>{if(typeof window>"u")return;const l=()=>pe(window.innerWidth<768);return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),a.useEffect(()=>{const l=typeof window<"u",n=typeof document<"u";return l&&window.addEventListener("resize",D),n&&document.addEventListener("click",G),B(),he(!0),()=>{l&&window.removeEventListener("resize",D),n&&document.removeEventListener("click",G)}},[D,G,B]),a.useEffect(()=>{if(!(typeof document>"u"))return m?setTimeout(()=>U.lockScroll(),0):U.unlockScroll(),()=>U.unlockScroll()},[m]);const R=(l,n="")=>l.map((d,b)=>{const g=`${n}/${d._key??d.label}-${b}`;return s.jsx(e.NavLink,{link:d,path:g,parentPath:n,openPath:H,togglePath:je,updateTriangleIndicator:Q,setOpenPath:f,renderLinks:R,buttonRefs:W},g)}),Ne=l=>l.map((n,d)=>{var Z,T;const b=`group-${d}`,g=xe===d,x=(Z=n.primaryItems)==null?void 0:Z[L??0];return s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{X(d),f(b),Q(b)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:t=>{W.current.set(b,t)},"aria-haspopup":!0,"aria-expanded":g,"aria-controls":`submenu-${d}`,className:`${e.styles.sublinkToggle} ${g?e.styles.open:""}`,children:[n.title,s.jsx(_e.ChevronDown,{size:18,className:e.styles.chevron,"aria-hidden":"true"})]})}),s.jsx("div",{id:`submenu-${d}`,className:`${e.styles.sublinks} ${g?e.styles.show:""}`,role:"menu","aria-label":`${n.title} submenu`,onMouseLeave:()=>{X(null),O(0),f(null)},children:s.jsx("div",{children:s.jsxs("div",{className:`${e.styles.sublinksInner} ${n.spotlight?e.styles.withSpotlight:e.styles.withoutSpotlight}`,children:[s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.primaryColumn}`,children:[s.jsx("div",{className:e.styles.linkItem}),(T=n.primaryItems)==null?void 0:T.map((t,N)=>t.href?s.jsx("div",{role:"menuitem",children:s.jsxs("a",{href:t.href,className:`${e.styles.link} ${L===N?e.styles.open:""}`,target:t.isExternal?"_blank":"_self",rel:t.isExternal?"noopener noreferrer":void 0,onClick:()=>{var ee;f(null),(ee=t.onClick)==null||ee.call(t)},onMouseEnter:()=>O(N),children:[s.jsxs("span",{className:e.styles.linkContent,children:[t.label,t.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:t.subtitle})]}),t.isExternal&&s.jsx(P.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},t._key??N):s.jsx("div",{role:"menuitem",children:s.jsx("button",{className:`${e.styles.sublinkToggle} ${L===N?e.styles.open:""}`,onMouseEnter:()=>O(N),children:s.jsxs("span",{className:e.styles.linkContent,children:[t.label,t.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:t.subtitle})]})})},t._key??N))]}),(x==null?void 0:x.sublinks)&&x.sublinks.length>0&&s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.fadeInFromLeft}`,children:[x.description&&s.jsx("div",{className:e.styles.sublinksDescription,children:i==null?void 0:i(x.description)}),R(x.sublinks,`${b}-${L}`)]},`${x.label}-${x.sublinks.length}`),n.secondaryItems&&n.secondaryItems.length>0&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.secondaryColumn}`,children:R(n.secondaryItems,`${b}-secondary`)}),n.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:s.jsx(Re,{spotlight:n.spotlight,renderText:i})})]})})})]},n._key??`group-${d}`)}),$e=[e.styles.navbar,Be[z],Ee[ae],_?e.styles.sticky:"",u!=null&&u.length?e.styles.advanced:e.styles.default,re??""].filter(Boolean).join(" "),o=y&&y.length>0?y[Math.min(1,y.length-1)]:null;return s.jsx("header",{ref:A,className:$e,style:ce,"aria-label":"Site header",...oe,children:s.jsxs("div",{className:`${e.styles.container} ${(!y||y.length===0)&&z!=="center"?e.styles.twoColumn:""}`,children:[r?s.jsx("div",{className:e.styles.logo,children:r}):h?s.jsx("div",{className:e.styles.title,children:h}):null,s.jsx("nav",{ref:C,style:{left:z==="center"?`calc(50% - ${de/2}px)`:"0"},className:`${e.styles.nav} ${m?e.styles.open:""} ${ye?e.styles.visible:e.styles.hidden}`,id:"main-menu","aria-label":"Primary navigation",children:s.jsxs("div",{className:e.styles.navInner,children:[s.jsx("svg",{style:{left:`${me}px`},className:`${e.styles.triangle} ${H?e.styles.show:""}`,width:16,height:12,viewBox:"0 0 100 75",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:s.jsx("polygon",{points:"50,5 95,70 5,70",strokeLinejoin:"round",fill:"white",stroke:"white"})}),I==="default"&&j&&s.jsxs("div",{className:e.styles.grid,role:"menubar",children:[j.length>0&&R(j),(p||v||k)&&s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),k&&s.jsx(J,{}),p&&!w&&s.jsx(F,{}),v&&s.jsx(K,{})]}),!w&&I==="advanced"&&u&&s.jsxs("div",{className:e.styles.grid,children:[u.length>0&&Ne(u),(p||v||k)&&s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),k&&s.jsx(J,{}),p&&s.jsx(F,{}),v&&s.jsx(K,{})]}),w&&I==="advanced"&&m&&c.length===0&&u&&s.jsx("div",{className:e.styles.mobileMenu,children:u.map((l,n)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>ke(l),children:l.title})},l._key??n))}),w&&I==="advanced"&&m&&c.length>0&&s.jsxs("div",{className:e.styles.mobileMenuSlide,children:[s.jsx("button",{className:e.styles.back,"aria-label":"Go back",onClick:c.length===1?ve:ge,children:s.jsx(we.ChevronLeft,{size:18,"aria-hidden":"true"})}),c[c.length-1].description&&s.jsx("div",{className:`${e.styles.sublinksDescription} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:i==null?void 0:i(c[c.length-1].description)}),c[c.length-1].primary.map((l,n)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:l.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>Y(l),children:s.jsxs("span",{className:e.styles.linkContent,children:[l.label,l.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:l.subtitle})]})}):s.jsxs("a",{href:l.href,className:e.styles.link,target:l.isExternal?"_blank":"_self",rel:l.isExternal?"noopener noreferrer":void 0,children:[s.jsxs("span",{className:e.styles.linkContent,children:[l.label,l.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:l.subtitle})]}),l.isExternal&&s.jsx(P.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},l._key??`primary-${n}`)),c[c.length-1].secondary.length>0&&s.jsx("hr",{className:e.styles.groupDivider}),c[c.length-1].secondary.map((l,n)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:l.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>Y(l),children:l.label}):s.jsxs("a",{href:l.href,className:e.styles.link,target:l.isExternal?"_blank":"_self",rel:l.isExternal?"noopener noreferrer":void 0,children:[l.label,l.isExternal&&s.jsx(P.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},l._key??`secondary-${n}`))]},`stack-${c.length}`)]})}),y&&y.length>0&&s.jsx("nav",{className:e.styles.utility,"aria-label":"Utility navigation",children:s.jsx(le.ButtonGroup,{children:y.map((l,n)=>s.jsx(q.Button,{as:"a",href:l.href??"/",variant:l.variant??"primary",displayType:l.displayType??"text",imageSrc:l.imageSrc,imageAlt:l.imageAlt,"aria-label":l.ariaLabel,icon:l.icon,iconAlignment:l.iconAlignment,children:l.imageSrc?s.jsx("img",{src:l.imageSrc,alt:l.imageAlt??l.ariaLabel}):l.label},l._key??n))})}),o&&s.jsx("nav",{"aria-label":"Utility navigation",className:`${e.styles.utilityMobile} ${m?e.styles.open:""}`,children:s.jsx(le.ButtonGroup,{alignment:"center",children:s.jsx(q.Button,{as:"a",href:o.href??"/",variant:o.variant??"primary",displayType:o.displayType??"text",imageSrc:o.imageSrc,imageAlt:o.imageAlt,"aria-label":o.ariaLabel,icon:o.icon,iconAlignment:o.iconAlignment,children:o.imageSrc?s.jsx("img",{src:o.imageSrc,alt:o.imageAlt??o.ariaLabel}):o.label})})}),s.jsxs("div",{className:e.styles.mobileButtons,children:[w&&p&&s.jsx(F,{}),s.jsx("button",{className:e.styles.menuToggle,onClick:fe,"aria-label":m?"Close menu":"Open menu","aria-expanded":m,"aria-controls":"main-menu",children:m?s.jsx(Ce.X,{size:24,"aria-hidden":"true"}):s.jsx(q.Menu,{size:24,"aria-hidden":"true"})})]})]})})}exports.Navbar=qe;
11
+ */const Le=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Me=ne.createLucideIcon("search",Le),Ee={standard:e.styles.standard,transparent:e.styles.transparent},Be={left:e.styles.left,center:e.styles.center,right:e.styles.right},Re=({spotlight:i,renderText:h})=>{var y,_,p,v,k,S;const r=i.callToAction;if(!r)return null;const j=((y=r.linkOptions)==null?void 0:y.linkType)==="external";let u="#";return j&&((_=r.linkOptions)!=null&&_.externalUrl)?u=r.linkOptions.externalUrl:((p=r.linkOptions)==null?void 0:p.linkType)==="internal"&&((k=(v=r.linkOptions)==null?void 0:v.internalUrl)!=null&&k.slug.current)&&(u=`/${r.linkOptions.internalUrl.slug.current}`),s.jsxs("div",{className:e.styles.spotlight,children:[i.image&&s.jsx("div",{className:e.styles.imageWrapper,children:s.jsx("img",{src:((S=i.image.imageUrls)==null?void 0:S.medium)??"",alt:i.image.asset.altText||i.image.asset.description||"Content image",width:600,height:400})}),s.jsxs("div",{className:e.styles.content,children:[i.title&&s.jsx("div",{className:e.styles.title,children:h==null?void 0:h(i.title,e.styles.title)}),i.description&&s.jsx("div",{className:e.styles.description,children:h==null?void 0:h(i.description,e.styles.description)})]}),r.linkOptions&&s.jsx("div",{className:e.styles.actions,children:s.jsx(z.Button,{as:"a",variant:r.variant??"primary",href:u,target:j?"_blank":"_self",rel:j?"noopener noreferrer":void 0,"aria-label":r.ariaLabel||r.label,children:r.label})})]})};function ze({renderText:i,title:h,logo:r,items:j,groups:u,utilityItems:y,isSticky:_=!1,showSearch:p=!0,showLocaleSelect:v=!0,showThemeToggle:k=!0,themeToggleComponent:S,alignment:q="right",variant:ae="standard",navigationType:I="default",searchComponent:te,localeSelectComponent:ie,className:re,style:ce,...oe}){const[m,V]=a.useState(!1),[H,f]=a.useState(null),[de,ue]=a.useState(0),[ye,he]=a.useState(!1),[me,be]=a.useState(null),[c,$]=a.useState([]),[L,O]=a.useState(0),[xe,X]=a.useState(null),[w,pe]=a.useState(!1),[M,E]=a.useState("forward"),A=a.useRef(null),C=a.useRef(null),W=a.useRef(new Map),J=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,children:s.jsx("div",{className:`${e.styles.linkItem} ${e.styles.themeToggle}`,children:S})}),F=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(se.Modal,{size:"lg",className:e.styles.searchModal,trigger:s.jsx("button",{title:"Search","aria-label":"Search",className:e.styles.search,children:s.jsx(Me,{size:16,"aria-hidden":"true"})}),content:te})})}),K=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(se.Modal,{className:e.styles.localeModal,trigger:s.jsx("button",{title:"Locale Select","aria-label":"Locale Select",className:e.styles.locale,children:s.jsx(Ie,{size:16,"aria-hidden":"true"})}),content:ie})})}),B=a.useCallback(()=>{C.current&&ue(C.current.getBoundingClientRect().width)},[]),fe=()=>{V(l=>{const n=!l;return n||($([]),E("forward"),f(null)),n})},Q=a.useCallback(l=>{const n=W.current.get(l);if(n&&C.current){const d=n.getBoundingClientRect(),b=C.current.getBoundingClientRect();be(d.left-b.left+d.width/2)}},[]),je=a.useCallback(l=>{f(n=>n===l?null:l)},[]),G=a.useCallback(l=>{A.current&&!A.current.contains(l.target)&&f(null)},[]),D=a.useCallback(()=>{B(),typeof window<"u"&&window.innerWidth>768&&(V(!1),f(null))},[B]),ve=()=>$([]),ke=l=>{E("forward"),$([{title:l.title,primary:l.primaryItems??[],secondary:l.secondaryItems??[],description:""}])},Y=l=>{E("forward"),$(n=>[...n,{title:l.label,primary:l.sublinks??[],secondary:[],description:l.description}])},ge=()=>{E("backward"),$(l=>l.slice(0,-1))};a.useEffect(()=>{if(typeof window>"u")return;const l=()=>pe(window.innerWidth<768);return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),a.useEffect(()=>{const l=typeof window<"u",n=typeof document<"u";return l&&window.addEventListener("resize",D),n&&document.addEventListener("click",G),B(),he(!0),()=>{l&&window.removeEventListener("resize",D),n&&document.removeEventListener("click",G)}},[D,G,B]),a.useEffect(()=>{if(!(typeof document>"u"))return m?setTimeout(()=>U.lockScroll(),0):U.unlockScroll(),()=>U.unlockScroll()},[m]);const R=(l,n="")=>l.map((d,b)=>{const g=`${n}/${d._key??d.label}-${b}`;return s.jsx(e.NavLink,{link:d,path:g,parentPath:n,openPath:H,togglePath:je,updateTriangleIndicator:Q,setOpenPath:f,renderLinks:R,buttonRefs:W},g)}),Ne=l=>l.map((n,d)=>{var Z,T;const b=`group-${d}`,g=xe===d,x=(Z=n.primaryItems)==null?void 0:Z[L??0];return s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{X(d),f(b),Q(b)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:t=>{W.current.set(b,t)},"aria-haspopup":!0,"aria-expanded":g,"aria-controls":`submenu-${d}`,className:`${e.styles.sublinkToggle} ${g?e.styles.open:""}`,children:[n.title,s.jsx(_e.ChevronDown,{size:18,className:e.styles.chevron,"aria-hidden":"true"})]})}),s.jsx("div",{id:`submenu-${d}`,className:`${e.styles.sublinks} ${g?e.styles.show:""}`,role:"menu","aria-label":`${n.title} submenu`,onMouseLeave:()=>{X(null),O(0),f(null)},children:s.jsx("div",{children:s.jsxs("div",{className:`${e.styles.sublinksInner} ${n.spotlight?e.styles.withSpotlight:e.styles.withoutSpotlight}`,children:[s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.primaryColumn}`,children:[s.jsx("div",{className:e.styles.linkItem}),(T=n.primaryItems)==null?void 0:T.map((t,N)=>t.href?s.jsx("div",{role:"menuitem",children:s.jsxs("a",{href:t.href,className:`${e.styles.link} ${L===N?e.styles.open:""}`,target:t.isExternal?"_blank":"_self",rel:t.isExternal?"noopener noreferrer":void 0,onClick:()=>{var ee;f(null),(ee=t.onClick)==null||ee.call(t)},onMouseEnter:()=>O(N),children:[s.jsxs("span",{className:e.styles.linkContent,children:[t.label,t.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:t.subtitle})]}),t.isExternal&&s.jsx(P.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},t._key??N):s.jsx("div",{role:"menuitem",children:s.jsx("button",{className:`${e.styles.sublinkToggle} ${L===N?e.styles.open:""}`,onMouseEnter:()=>O(N),children:s.jsxs("span",{className:e.styles.linkContent,children:[t.label,t.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:t.subtitle})]})})},t._key??N))]}),(x==null?void 0:x.sublinks)&&x.sublinks.length>0&&s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.fadeInFromLeft}`,children:[x.description&&s.jsx("div",{className:e.styles.sublinksDescription,children:i==null?void 0:i(x.description)}),R(x.sublinks,`${b}-${L}`)]},`${x.label}-${x.sublinks.length}`),n.secondaryItems&&n.secondaryItems.length>0&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.secondaryColumn}`,children:R(n.secondaryItems,`${b}-secondary`)}),n.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:s.jsx(Re,{spotlight:n.spotlight,renderText:i})})]})})})]},n._key??`group-${d}`)}),$e=[e.styles.navbar,Be[q],Ee[ae],_?e.styles.sticky:"",u!=null&&u.length?e.styles.advanced:e.styles.default,re??""].filter(Boolean).join(" "),o=y&&y.length>0?y[Math.min(1,y.length-1)]:null;return s.jsx("header",{ref:A,className:$e,style:ce,"aria-label":"Site header",...oe,children:s.jsxs("div",{className:`${e.styles.container} ${(!y||y.length===0)&&q!=="center"?e.styles.twoColumn:""}`,children:[r?s.jsx("div",{className:e.styles.logo,children:r}):h?s.jsx("div",{className:e.styles.title,children:h}):null,s.jsx("nav",{ref:C,style:{left:q==="center"?`calc(50% - ${de/2}px)`:"0"},className:`${e.styles.nav} ${m?e.styles.open:""} ${ye?e.styles.visible:e.styles.hidden}`,id:"main-menu","aria-label":"Primary navigation",children:s.jsxs("div",{className:e.styles.navInner,children:[s.jsx("svg",{style:{left:`${me}px`},className:`${e.styles.triangle} ${H?e.styles.show:""}`,width:16,height:12,viewBox:"0 0 100 75",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:s.jsx("polygon",{points:"50,5 95,70 5,70",strokeLinejoin:"round",fill:"white",stroke:"white"})}),I==="default"&&j&&s.jsxs("div",{className:e.styles.grid,role:"menubar",children:[j.length>0&&R(j),(p||v||k)&&s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),k&&s.jsx(J,{}),p&&!w&&s.jsx(F,{}),v&&s.jsx(K,{})]}),!w&&I==="advanced"&&u&&s.jsxs("div",{className:e.styles.grid,children:[u.length>0&&Ne(u),(p||v||k)&&s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),k&&s.jsx(J,{}),p&&s.jsx(F,{}),v&&s.jsx(K,{})]}),w&&I==="advanced"&&m&&c.length===0&&u&&s.jsx("div",{className:e.styles.mobileMenu,children:u.map((l,n)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>ke(l),children:l.title})},l._key??n))}),w&&I==="advanced"&&m&&c.length>0&&s.jsxs("div",{className:e.styles.mobileMenuSlide,children:[s.jsx("button",{className:e.styles.back,"aria-label":"Go back",onClick:c.length===1?ve:ge,children:s.jsx(we.ChevronLeft,{size:18,"aria-hidden":"true"})}),c[c.length-1].description&&s.jsx("div",{className:`${e.styles.sublinksDescription} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:i==null?void 0:i(c[c.length-1].description)}),c[c.length-1].primary.map((l,n)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:l.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>Y(l),children:s.jsxs("span",{className:e.styles.linkContent,children:[l.label,l.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:l.subtitle})]})}):s.jsxs("a",{href:l.href,className:e.styles.link,target:l.isExternal?"_blank":"_self",rel:l.isExternal?"noopener noreferrer":void 0,children:[s.jsxs("span",{className:e.styles.linkContent,children:[l.label,l.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:l.subtitle})]}),l.isExternal&&s.jsx(P.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},l._key??`primary-${n}`)),c[c.length-1].secondary.length>0&&s.jsx("hr",{className:e.styles.groupDivider}),c[c.length-1].secondary.map((l,n)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${M==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:l.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>Y(l),children:l.label}):s.jsxs("a",{href:l.href,className:e.styles.link,target:l.isExternal?"_blank":"_self",rel:l.isExternal?"noopener noreferrer":void 0,children:[l.label,l.isExternal&&s.jsx(P.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},l._key??`secondary-${n}`))]},`stack-${c.length}`)]})}),y&&y.length>0&&s.jsx("nav",{className:e.styles.utility,"aria-label":"Utility navigation",children:s.jsx(le.ButtonGroup,{children:y.map((l,n)=>s.jsx(z.Button,{as:"a",href:l.href??"/",variant:l.variant??"primary",displayType:l.displayType??"text",imageSrc:l.imageSrc,imageAlt:l.imageAlt,"aria-label":l.ariaLabel,icon:l.icon,iconAlignment:l.iconAlignment,children:l.imageSrc?s.jsx("img",{src:l.imageSrc,alt:l.imageAlt??l.ariaLabel}):l.label},l._key??n))})}),o&&s.jsx("nav",{"aria-label":"Utility navigation",className:`${e.styles.utilityMobile} ${m?e.styles.open:""}`,children:s.jsx(le.ButtonGroup,{alignment:"center",children:s.jsx(z.Button,{as:"a",href:o.href??"/",variant:o.variant??"primary",displayType:o.displayType??"text",imageSrc:o.imageSrc,imageAlt:o.imageAlt,"aria-label":o.ariaLabel,icon:o.icon,iconAlignment:o.iconAlignment,children:o.imageSrc?s.jsx("img",{src:o.imageSrc,alt:o.imageAlt??o.ariaLabel}):o.label})})}),s.jsxs("div",{className:e.styles.mobileButtons,children:[w&&p&&s.jsx(F,{}),s.jsx("button",{className:e.styles.menuToggle,onClick:fe,"aria-label":m?"Close menu":"Open menu","aria-expanded":m,"aria-controls":"main-menu",children:m?s.jsx(Ce.X,{size:24,"aria-hidden":"true"}):s.jsx(z.Menu,{size:24,"aria-hidden":"true"})})]})]})})}exports.Navbar=ze;
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, jsxs as i } from "react/jsx-runtime";
2
2
  import { useState as u, useRef as V, useCallback as L, useEffect as H } from "react";
3
3
  import { Modal as ie } from "../Modal/index.mjs";
4
- import { B as q, M as _e } from "../../../index-014h0tPD.js";
4
+ import { B as q, M as _e } from "../../../index-CnlJ2RgH.js";
5
5
  import { ButtonGroup as se } from "../ButtonGroup/index.mjs";
6
6
  import { s as e, N as Se } from "../../../NavLink-CW1mxgVF.js";
7
7
  import { lockScroll as ze, unlockScroll as re } from "../../utils/NoScroll/noScroll.mjs";
@@ -111,6 +111,7 @@ function en({
111
111
  children: /* @__PURE__ */ n("div", { className: e.linkItem, children: /* @__PURE__ */ n(
112
112
  ie,
113
113
  {
114
+ size: "lg",
114
115
  className: e.searchModal,
115
116
  trigger: /* @__PURE__ */ n(
116
117
  "button",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index31.css');const s=require("react/jsx-runtime"),L="_wrapper_gfx4z_2",H="_stickyHeader_gfx4z_27",B="_table_gfx4z_39",T="_sizeSm_gfx4z_46",$="_sizeMd_gfx4z_52",q="_sizeLg_gfx4z_58",A="_striped_gfx4z_82",R="_bordered_gfx4z_87",C="_hoverable_gfx4z_97",O="_clickableRow_gfx4z_103",P="_empty_gfx4z_112",t={wrapper:L,stickyHeader:H,table:B,sizeSm:T,sizeMd:$,sizeLg:q,striped:A,bordered:R,hoverable:C,clickableRow:O,empty:P},W={sm:t.sizeSm,md:t.sizeMd,lg:t.sizeLg};function D({data:n,columns:l,size:_="md",striped:g=!1,bordered:o=!1,hoverable:p=!0,stickyHeader:b=!1,hasHeadingRow:m=!0,emptyMessage:z="No data available",loading:f=!1,loadingMessage:h="Loading...",onRowClick:i,rowClassName:c,className:x,style:j,...y}){const u=[t.wrapper,b?t.stickyHeader:"",x??""].filter(Boolean).join(" "),S=[t.table,W[_],g?t.striped:"",o?t.bordered:"",p?t.hoverable:""].filter(Boolean).join(" "),d=e=>{if(e)return{textAlign:e}},N=e=>{if(e)return typeof e=="number"?`${e}px`:e};return s.jsx("div",{className:u,style:j,...y,children:s.jsxs("table",{className:S,children:[m&&s.jsx("thead",{children:s.jsx("tr",{children:l.map((e,a)=>s.jsx("th",{className:e.headerClassName||e.className,style:{...d(e.align),width:N(e.width)},children:e.header},String(e.accessor)||a))})}),s.jsx("tbody",{children:f?s.jsx("tr",{children:s.jsx("td",{colSpan:l.length,className:t.empty,children:h})}):n.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:l.length,className:t.empty,children:z})}):n.map((e,a)=>{const v=c?c(e,a):"",M=i?t.clickableRow:"";return s.jsx("tr",{onClick:()=>i==null?void 0:i(e,a),className:[M,v].filter(Boolean).join(" "),children:l.map((r,k)=>s.jsx("td",{className:r.className,style:d(r.align),children:r.cellRenderer?r.cellRenderer(e[r.accessor],e,a):String(e[r.accessor]??"")},String(r.accessor)||k))},a)})})]})})}exports.Table=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index31.css');const s=require("react/jsx-runtime"),k="_wrapper_b52ws_2",L="_stickyHeader_b52ws_31",H="_table_b52ws_43",B="_sizeSm_b52ws_50",T="_sizeMd_b52ws_56",$="_sizeLg_b52ws_62",q="_striped_b52ws_86",A="_bordered_b52ws_91",R="_hoverable_b52ws_101",C="_clickableRow_b52ws_107",O="_empty_b52ws_116",t={wrapper:k,stickyHeader:L,table:H,sizeSm:B,sizeMd:T,sizeLg:$,striped:q,bordered:A,hoverable:R,clickableRow:C,empty:O},P={sm:t.sizeSm,md:t.sizeMd,lg:t.sizeLg};function W({data:n,columns:l,size:b="md",striped:_=!1,bordered:o=!1,hoverable:p=!0,stickyHeader:m=!1,hasHeadingRow:h=!0,emptyMessage:g="No data available",loading:j=!1,loadingMessage:y="Loading...",onRowClick:i,rowClassName:c,className:u,style:z,...f}){const x=[t.wrapper,m?t.stickyHeader:"",u??""].filter(Boolean).join(" "),S=[t.table,P[b],_?t.striped:"",o?t.bordered:"",p?t.hoverable:""].filter(Boolean).join(" "),d=e=>{if(e)return{textAlign:e}},N=e=>{if(e)return typeof e=="number"?`${e}px`:e};return s.jsx("div",{className:x,style:z,...f,children:s.jsxs("table",{className:S,children:[h&&s.jsx("thead",{children:s.jsx("tr",{children:l.map((e,a)=>s.jsx("th",{className:e.headerClassName||e.className,style:{...d(e.align),width:N(e.width)},children:e.header},String(e.accessor)||a))})}),s.jsx("tbody",{children:j?s.jsx("tr",{children:s.jsx("td",{colSpan:l.length,className:t.empty,children:y})}):n.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:l.length,className:t.empty,children:g})}):n.map((e,a)=>{const v=c?c(e,a):"",w=i?t.clickableRow:"";return s.jsx("tr",{onClick:()=>i==null?void 0:i(e,a),className:[w,v].filter(Boolean).join(" "),children:l.map((r,M)=>s.jsx("td",{className:r.className,style:d(r.align),children:r.cellRenderer?r.cellRenderer(e[r.accessor],e,a):String(e[r.accessor]??"")},String(r.accessor)||M))},a)})})]})})}exports.Table=W;
@@ -1,70 +1,70 @@
1
1
  import { jsx as t, jsxs as M } from "react/jsx-runtime";
2
- import '../../../index31.css';const H = "_wrapper_gfx4z_2", B = "_stickyHeader_gfx4z_27", A = "_table_gfx4z_39", R = "_sizeSm_gfx4z_46", C = "_sizeMd_gfx4z_52", T = "_sizeLg_gfx4z_58", W = "_striped_gfx4z_82", $ = "_bordered_gfx4z_87", q = "_hoverable_gfx4z_97", D = "_clickableRow_gfx4z_103", E = "_empty_gfx4z_112", s = {
2
+ import '../../../index31.css';const H = "_wrapper_b52ws_2", B = "_stickyHeader_b52ws_31", x = "_table_b52ws_43", A = "_sizeSm_b52ws_50", R = "_sizeMd_b52ws_56", C = "_sizeLg_b52ws_62", T = "_striped_b52ws_86", W = "_bordered_b52ws_91", $ = "_hoverable_b52ws_101", q = "_clickableRow_b52ws_107", D = "_empty_b52ws_116", s = {
3
3
  wrapper: H,
4
4
  stickyHeader: B,
5
- table: A,
6
- sizeSm: R,
7
- sizeMd: C,
8
- sizeLg: T,
9
- striped: W,
10
- bordered: $,
11
- hoverable: q,
12
- clickableRow: D,
13
- empty: E
14
- }, F = {
5
+ table: x,
6
+ sizeSm: A,
7
+ sizeMd: R,
8
+ sizeLg: C,
9
+ striped: T,
10
+ bordered: W,
11
+ hoverable: $,
12
+ clickableRow: q,
13
+ empty: D
14
+ }, E = {
15
15
  sm: s.sizeSm,
16
16
  md: s.sizeMd,
17
17
  lg: s.sizeLg
18
18
  };
19
- function J({
19
+ function G({
20
20
  data: n,
21
21
  columns: l,
22
- size: _ = "md",
23
- striped: p = !1,
24
- bordered: g = !1,
22
+ size: b = "md",
23
+ striped: _ = !1,
24
+ bordered: p = !1,
25
25
  hoverable: o = !0,
26
26
  stickyHeader: m = !1,
27
- hasHeadingRow: z = !0,
28
- emptyMessage: b = "No data available",
29
- loading: f = !1,
30
- loadingMessage: h = "Loading...",
27
+ hasHeadingRow: h = !0,
28
+ emptyMessage: g = "No data available",
29
+ loading: y = !1,
30
+ loadingMessage: z = "Loading...",
31
31
  onRowClick: i,
32
32
  rowClassName: c,
33
- className: y,
34
- style: x,
35
- ...N
33
+ className: f,
34
+ style: N,
35
+ ...S
36
36
  }) {
37
- const S = [
37
+ const u = [
38
38
  s.wrapper,
39
39
  m ? s.stickyHeader : "",
40
- y ?? ""
41
- ].filter(Boolean).join(" "), u = [
40
+ f ?? ""
41
+ ].filter(Boolean).join(" "), v = [
42
42
  s.table,
43
- F[_],
44
- p ? s.striped : "",
45
- g ? s.bordered : "",
43
+ E[b],
44
+ _ ? s.striped : "",
45
+ p ? s.bordered : "",
46
46
  o ? s.hoverable : ""
47
47
  ].filter(Boolean).join(" "), d = (e) => {
48
48
  if (e)
49
49
  return { textAlign: e };
50
- }, v = (e) => {
50
+ }, w = (e) => {
51
51
  if (e)
52
52
  return typeof e == "number" ? `${e}px` : e;
53
53
  };
54
- return /* @__PURE__ */ t("div", { className: S, style: x, ...N, children: /* @__PURE__ */ M("table", { className: u, children: [
55
- z && /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: l.map((e, r) => /* @__PURE__ */ t(
54
+ return /* @__PURE__ */ t("div", { className: u, style: N, ...S, children: /* @__PURE__ */ M("table", { className: v, children: [
55
+ h && /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: l.map((e, r) => /* @__PURE__ */ t(
56
56
  "th",
57
57
  {
58
58
  className: e.headerClassName || e.className,
59
59
  style: {
60
60
  ...d(e.align),
61
- width: v(e.width)
61
+ width: w(e.width)
62
62
  },
63
63
  children: e.header
64
64
  },
65
65
  String(e.accessor) || r
66
66
  )) }) }),
67
- /* @__PURE__ */ t("tbody", { children: f ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: l.length, className: s.empty, children: h }) }) : n.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: l.length, className: s.empty, children: b }) }) : n.map((e, r) => {
67
+ /* @__PURE__ */ t("tbody", { children: y ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: l.length, className: s.empty, children: z }) }) : n.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: l.length, className: s.empty, children: g }) }) : n.map((e, r) => {
68
68
  const j = c ? c(e, r) : "", k = i ? s.clickableRow : "";
69
69
  return /* @__PURE__ */ t(
70
70
  "tr",
@@ -87,5 +87,5 @@ function J({
87
87
  ] }) });
88
88
  }
89
89
  export {
90
- J as Table
90
+ G as Table
91
91
  };
package/dist/core.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');;/* empty css */const e=require("./core/components/Accordion/index.cjs"),o=require("./AccordionItem-DulgZilf.cjs"),n=require("./core/components/Avatar/index.cjs"),r=require("./core/components/Badge/index.cjs"),t=require("./core/components/Box/index.cjs"),c=require("./core/components/Breadcrumbs/index.cjs"),i=require("./core/components/ButtonGroup/index.cjs"),_=require("./index-C-M4OSu5.cjs"),s=require("./core/components/Card/index.cjs"),d=require("./core/components/Carousel/index.cjs"),a=require("./core/components/Checkbox/index.cjs"),u=require("./core/components/Container/index.cjs"),p=require("./core/components/DatePicker/index.cjs"),m=require("./core/components/Divider/index.cjs"),x=require("./core/components/Drawer/index.cjs"),q=require("./core/components/Fieldset/index.cjs"),l=require("./core/components/FileUpload/index.cjs"),S=require("./core/components/FloatingActionButton/index.cjs"),b=require("./core/components/Footer/index.cjs"),B=require("./core/components/Form/index.cjs"),T=require("./core/components/Grid/index.cjs"),g=require("./core/components/Heading/index.cjs"),C=require("./core/components/Input/index.cjs"),F=require("./core/components/Label/index.cjs"),v=require("./core/components/List/index.cjs"),A=require("./core/components/Modal/index.cjs"),k=require("./core/components/MultiSelect/index.cjs"),P=require("./core/components/NavBar/index.cjs"),h=require("./core/components/Notification/index.cjs"),D=require("./core/components/NotificationContainer/index.cjs"),N=require("./core/components/ProgressBar/index.cjs"),f=require("./core/components/Radio/index.cjs"),M=require("./core/components/Range/index.cjs"),w=require("./core/components/Select/index.cjs"),G=require("./core/components/Sidebar/index.cjs"),I=require("./core/components/Skeleton/index.cjs"),L=require("./core/components/Spacer/index.cjs"),R=require("./core/components/Spinner/index.cjs"),H=require("./core/components/Stack/index.cjs"),U=require("./core/components/Switch/index.cjs"),y=require("./core/components/Table/index.cjs"),j=require("./core/components/Tabs/index.cjs"),O=require("./core/components/Text/index.cjs"),z=require("./core/components/Textarea/index.cjs"),E=require("./core/components/Tooltip/index.cjs"),J=require("./core/utils/ThemeProvider/index.cjs");exports.Accordion=e.Accordion;exports.AccordionItem=o.AccordionItem;exports.Avatar=n.Avatar;exports.Badge=r.Badge;exports.Box=t.Box;exports.Breadcrumbs=c.Breadcrumbs;exports.ButtonGroup=i.ButtonGroup;exports.Button=_.Button;exports.Card=s.Card;exports.Carousel=d.Carousel;exports.Checkbox=a.Checkbox;exports.Container=u.Container;exports.DatePicker=p.DatePicker;exports.Divider=m.Divider;exports.Drawer=x.Drawer;exports.Fieldset=q.Fieldset;exports.FileUpload=l.FileUpload;exports.FloatingActionButton=S.FloatingActionButton;exports.Footer=b.Footer;exports.Form=B.Form;exports.Grid=T.Grid;exports.Heading=g.Heading;exports.Input=C.Input;exports.Label=F.Label;exports.List=v.List;exports.Modal=A.Modal;exports.MultiSelect=k.MultiSelect;exports.Navbar=P.Navbar;exports.Notification=h.Notification;exports.NotificationContainer=D.NotificationContainer;exports.ProgressBar=N.ProgressBar;exports.Radio=f.Radio;exports.Range=M.Range;exports.Select=w.Select;exports.Sidebar=G.Sidebar;exports.Skeleton=I.Skeleton;exports.Spacer=L.Spacer;exports.Spinner=R.Spinner;exports.Stack=H.Stack;exports.Switch=U.Switch;exports.Table=y.Table;exports.Tabs=j.Tabs;exports.Text=O.Text;exports.Textarea=z.Textarea;exports.Tooltip=E.Tooltip;exports.ThemeProvider=J.ThemeProvider;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');;/* empty css */const e=require("./core/components/Accordion/index.cjs"),o=require("./AccordionItem-DulgZilf.cjs"),n=require("./core/components/Avatar/index.cjs"),r=require("./core/components/Badge/index.cjs"),t=require("./core/components/Box/index.cjs"),c=require("./core/components/Breadcrumbs/index.cjs"),i=require("./core/components/ButtonGroup/index.cjs"),_=require("./index-D0ylyll7.cjs"),s=require("./core/components/Card/index.cjs"),d=require("./core/components/Carousel/index.cjs"),a=require("./core/components/Checkbox/index.cjs"),u=require("./core/components/Container/index.cjs"),p=require("./core/components/DatePicker/index.cjs"),m=require("./core/components/Divider/index.cjs"),x=require("./core/components/Drawer/index.cjs"),q=require("./core/components/Fieldset/index.cjs"),l=require("./core/components/FileUpload/index.cjs"),S=require("./core/components/FloatingActionButton/index.cjs"),b=require("./core/components/Footer/index.cjs"),B=require("./core/components/Form/index.cjs"),T=require("./core/components/Grid/index.cjs"),g=require("./core/components/Heading/index.cjs"),C=require("./core/components/Input/index.cjs"),F=require("./core/components/Label/index.cjs"),v=require("./core/components/List/index.cjs"),A=require("./core/components/Modal/index.cjs"),k=require("./core/components/MultiSelect/index.cjs"),P=require("./core/components/NavBar/index.cjs"),h=require("./core/components/Notification/index.cjs"),D=require("./core/components/NotificationContainer/index.cjs"),N=require("./core/components/ProgressBar/index.cjs"),f=require("./core/components/Radio/index.cjs"),M=require("./core/components/Range/index.cjs"),w=require("./core/components/Select/index.cjs"),G=require("./core/components/Sidebar/index.cjs"),I=require("./core/components/Skeleton/index.cjs"),L=require("./core/components/Spacer/index.cjs"),R=require("./core/components/Spinner/index.cjs"),H=require("./core/components/Stack/index.cjs"),U=require("./core/components/Switch/index.cjs"),y=require("./core/components/Table/index.cjs"),j=require("./core/components/Tabs/index.cjs"),O=require("./core/components/Text/index.cjs"),z=require("./core/components/Textarea/index.cjs"),E=require("./core/components/Tooltip/index.cjs"),J=require("./core/utils/ThemeProvider/index.cjs");exports.Accordion=e.Accordion;exports.AccordionItem=o.AccordionItem;exports.Avatar=n.Avatar;exports.Badge=r.Badge;exports.Box=t.Box;exports.Breadcrumbs=c.Breadcrumbs;exports.ButtonGroup=i.ButtonGroup;exports.Button=_.Button;exports.Card=s.Card;exports.Carousel=d.Carousel;exports.Checkbox=a.Checkbox;exports.Container=u.Container;exports.DatePicker=p.DatePicker;exports.Divider=m.Divider;exports.Drawer=x.Drawer;exports.Fieldset=q.Fieldset;exports.FileUpload=l.FileUpload;exports.FloatingActionButton=S.FloatingActionButton;exports.Footer=b.Footer;exports.Form=B.Form;exports.Grid=T.Grid;exports.Heading=g.Heading;exports.Input=C.Input;exports.Label=F.Label;exports.List=v.List;exports.Modal=A.Modal;exports.MultiSelect=k.MultiSelect;exports.Navbar=P.Navbar;exports.Notification=h.Notification;exports.NotificationContainer=D.NotificationContainer;exports.ProgressBar=N.ProgressBar;exports.Radio=f.Radio;exports.Range=M.Range;exports.Select=w.Select;exports.Sidebar=G.Sidebar;exports.Skeleton=I.Skeleton;exports.Spacer=L.Spacer;exports.Spinner=R.Spinner;exports.Stack=H.Stack;exports.Switch=U.Switch;exports.Table=y.Table;exports.Tabs=j.Tabs;exports.Text=O.Text;exports.Textarea=z.Textarea;exports.Tooltip=E.Tooltip;exports.ThemeProvider=J.ThemeProvider;
package/dist/core.mjs CHANGED
@@ -6,7 +6,7 @@ import { Badge as i } from "./core/components/Badge/index.mjs";
6
6
  import { Box as c } from "./core/components/Box/index.mjs";
7
7
  import { Breadcrumbs as l } from "./core/components/Breadcrumbs/index.mjs";
8
8
  import { ButtonGroup as u } from "./core/components/ButtonGroup/index.mjs";
9
- import { B as S } from "./index-014h0tPD.js";
9
+ import { B as S } from "./index-CnlJ2RgH.js";
10
10
  import { Card as T } from "./core/components/Card/index.mjs";
11
11
  import { Carousel as A } from "./core/components/Carousel/index.mjs";
12
12
  import { Checkbox as F } from "./core/components/Checkbox/index.mjs";
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as g, Fragment as $ } from "react/jsx-runtime";
2
- import f from "react";
3
- import { f as w, g as L, h as C } from "./index-CeBA0PT0.js";
1
+ import { jsx as e, jsxs as f, Fragment as w } from "react/jsx-runtime";
2
+ import y from "react";
3
+ import { f as L, g as C, h as R } from "./index-CeBA0PT0.js";
4
4
  import { c as r } from "./createLucideIcon-C8GTh_Qx.js";
5
- import { E as R } from "./external-link-BOPobeQJ.js";
6
- import { P as A } from "./play-DYgKiSaf.js";
7
- import { a as E, C as P } from "./chevron-right-Cim1KPuL.js";
8
- import { C as z } from "./chevron-down-DSUzBz9F.js";
9
- import { A as V } from "./arrow-right-QEwnX3Sk.js";
5
+ import { E as A } from "./external-link-BOPobeQJ.js";
6
+ import { P as E } from "./play-DYgKiSaf.js";
7
+ import { a as P, C as z } from "./chevron-right-Cim1KPuL.js";
8
+ import { C as V } from "./chevron-down-DSUzBz9F.js";
9
+ import { A as j } from "./arrow-right-QEwnX3Sk.js";
10
10
  import { A as F } from "./arrow-left-BIJvHwNQ.js";
11
11
  import './index65.css';/**
12
12
  * @license lucide-react v0.488.0 - ISC
@@ -79,7 +79,7 @@ const Q = [
79
79
  }
80
80
  ],
81
81
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
82
- ], T = r("settings", Q), W = "_button_1sjnl_1", X = "_sm_1sjnl_30", Y = "_content_1sjnl_34", Z = "_icon_1sjnl_38", ee = "_md_1sjnl_43", ne = "_lg_1sjnl_48", te = "_image_1sjnl_61", re = "_blurred_1sjnl_68", oe = "_primary_1sjnl_69", se = "_secondary_1sjnl_70", le = "_destructive_1sjnl_71", ae = "_primaryInverted_1sjnl_72", ce = "_secondaryInverted_1sjnl_73", ie = "_blurredInverted_1sjnl_75", de = "_link_1sjnl_89", _e = "_linkInverted_1sjnl_90", me = "_underline_1sjnl_91", he = "_underlineInverted_1sjnl_92", ue = "_children_1sjnl_286", pe = "_iconLeft_1sjnl_293", ve = "_iconRight_1sjnl_297", n = {
82
+ ], T = r("settings", Q), W = "_button_1xx80_1", X = "_sm_1xx80_30", Y = "_content_1xx80_34", Z = "_icon_1xx80_38", ee = "_md_1xx80_43", ne = "_lg_1xx80_48", te = "_image_1xx80_61", re = "_blurred_1xx80_68", oe = "_primary_1xx80_69", ae = "_secondary_1xx80_70", se = "_destructive_1xx80_71", ce = "_primaryInverted_1xx80_72", ie = "_secondaryInverted_1xx80_73", le = "_blurredInverted_1xx80_75", de = "_link_1xx80_89", _e = "_linkInverted_1xx80_90", xe = "_underline_1xx80_91", me = "_underlineInverted_1xx80_92", he = "_children_1xx80_286", ue = "_iconLeft_1xx80_293", pe = "_iconRight_1xx80_297", n = {
83
83
  button: W,
84
84
  sm: X,
85
85
  content: Y,
@@ -89,39 +89,39 @@ const Q = [
89
89
  image: te,
90
90
  blurred: re,
91
91
  primary: oe,
92
- secondary: se,
93
- destructive: le,
94
- primaryInverted: ae,
95
- secondaryInverted: ce,
96
- blurredInverted: ie,
92
+ secondary: ae,
93
+ destructive: se,
94
+ primaryInverted: ce,
95
+ secondaryInverted: ie,
96
+ blurredInverted: le,
97
97
  link: de,
98
98
  linkInverted: _e,
99
- underline: me,
100
- underlineInverted: he,
101
- children: ue,
102
- iconLeft: pe,
103
- iconRight: ve
104
- }, ye = {
105
- apps: /* @__PURE__ */ g($, { children: [
106
- /* @__PURE__ */ e(L, {}),
99
+ underline: xe,
100
+ underlineInverted: me,
101
+ children: he,
102
+ iconLeft: ue,
103
+ iconRight: pe
104
+ }, ve = {
105
+ apps: /* @__PURE__ */ f(w, { children: [
106
+ /* @__PURE__ */ e(C, {}),
107
107
  " ",
108
- /* @__PURE__ */ e(C, {})
108
+ /* @__PURE__ */ e(R, {})
109
109
  ] }),
110
110
  "arrow-left": /* @__PURE__ */ e(F, {}),
111
- "arrow-right": /* @__PURE__ */ e(V, {}),
111
+ "arrow-right": /* @__PURE__ */ e(j, {}),
112
112
  "chevron-up": /* @__PURE__ */ e(B, {}),
113
- "chevron-down": /* @__PURE__ */ e(z, {}),
114
- "chevron-left": /* @__PURE__ */ e(P, {}),
115
- "chevron-right": /* @__PURE__ */ e(E, {}),
116
- envelope: /* @__PURE__ */ e(w, {}),
113
+ "chevron-down": /* @__PURE__ */ e(V, {}),
114
+ "chevron-left": /* @__PURE__ */ e(z, {}),
115
+ "chevron-right": /* @__PURE__ */ e(P, {}),
116
+ envelope: /* @__PURE__ */ e(L, {}),
117
117
  phone: /* @__PURE__ */ e(J, {}),
118
- play: /* @__PURE__ */ e(A, {}),
119
- "new-tab": /* @__PURE__ */ e(R, {}),
118
+ play: /* @__PURE__ */ e(E, {}),
119
+ "new-tab": /* @__PURE__ */ e(A, {}),
120
120
  menu: /* @__PURE__ */ e(U, {}),
121
121
  refresh: /* @__PURE__ */ e(O, {}),
122
122
  settings: /* @__PURE__ */ e(T, {}),
123
123
  "sign-in": /* @__PURE__ */ e(D, {})
124
- }, fe = {
124
+ }, ye = {
125
125
  primary: n.primary,
126
126
  primaryInverted: n.primaryInverted,
127
127
  secondary: n.secondary,
@@ -133,63 +133,63 @@ const Q = [
133
133
  blurred: n.blurred,
134
134
  blurredInverted: n.blurredInverted,
135
135
  destructive: n.destructive
136
- }, ge = {
136
+ }, fe = {
137
137
  left: n.iconLeft,
138
138
  right: n.iconRight
139
- }, be = {
139
+ }, ge = {
140
140
  sm: n.sm,
141
141
  md: n.md,
142
142
  lg: n.lg
143
143
  };
144
- function Ae({
145
- variant: b = "primary",
146
- size: k = "md",
147
- displayType: u = "text",
148
- imageSrc: p,
149
- imageAlt: j = "",
144
+ function Ee({
145
+ variant: g = "primary",
146
+ size: b = "md",
147
+ displayType: h = "text",
148
+ imageSrc: u,
149
+ imageAlt: k = "",
150
150
  ImageComponent: t,
151
- icon: v,
151
+ icon: p,
152
152
  iconAlignment: I = "right",
153
- className: x,
154
- children: i,
153
+ className: N,
154
+ children: l,
155
155
  disabled: d = !1,
156
- ...N
156
+ ...M
157
157
  }) {
158
- let s = null;
159
- t && (f.isValidElement(t) ? s = t : (typeof t == "function" || typeof t == "object") && (s = /* @__PURE__ */ e(t, {})));
160
- const _ = u === "image" ? s || (p ? /* @__PURE__ */ e("img", { src: p, alt: j, className: n.image }) : f.isValidElement(i) ? i : null) : /* @__PURE__ */ g("span", { className: `${n.content} ${ge[I]}`, children: [
161
- /* @__PURE__ */ e("span", { className: n.children, children: i }),
162
- v && /* @__PURE__ */ e("span", { className: n.icon, "aria-hidden": "true", children: ye[v] })
163
- ] }), m = `${x ?? ""} ${n.button} ${be[k]} ${u === "text" ? fe[b] : n.image}`.trim(), { as: y = "button", ...h } = N;
164
- if (y === "a") {
165
- const { href: o, target: l, rel: a, ...c } = h, M = l === "_blank" ? a ? `${a} noopener noreferrer` : "noopener noreferrer" : a;
158
+ let a = null;
159
+ t && (y.isValidElement(t) ? a = t : (typeof t == "function" || typeof t == "object") && (a = /* @__PURE__ */ e(t, {})));
160
+ const _ = h === "image" ? a || (u ? /* @__PURE__ */ e("img", { src: u, alt: k, className: n.image }) : y.isValidElement(l) ? l : null) : /* @__PURE__ */ f("span", { className: `${n.content} ${fe[I]}`, children: [
161
+ /* @__PURE__ */ e("span", { className: n.children, children: l }),
162
+ p && /* @__PURE__ */ e("span", { className: n.icon, "aria-hidden": "true", children: ve[p] })
163
+ ] }), x = `${N ?? ""} ${n.button} ${ge[b]} ${h === "text" ? ye[g] : n.image}`.trim(), { as: v = "button", ...m } = M;
164
+ if (v === "a") {
165
+ const { href: o, target: s, rel: c, ...i } = m, $ = s === "_blank" ? c ? `${c} noopener noreferrer` : "noopener noreferrer" : c;
166
166
  return /* @__PURE__ */ e(
167
167
  "a",
168
168
  {
169
169
  href: o,
170
- target: l,
171
- rel: M,
172
- className: m,
170
+ target: s,
171
+ rel: $,
172
+ className: x,
173
173
  "aria-disabled": d ? "true" : void 0,
174
- ...c,
174
+ ...i,
175
175
  children: _
176
176
  }
177
177
  );
178
178
  }
179
- if (y === "scroll") {
180
- const { scrollTarget: o, ...l } = h;
179
+ if (v === "scroll") {
180
+ const { scrollTarget: o, ...s } = m;
181
181
  return /* @__PURE__ */ e(
182
182
  "button",
183
183
  {
184
184
  type: "button",
185
185
  onClick: () => {
186
- const c = document.getElementById(o);
187
- c && c.scrollIntoView({ behavior: "smooth", block: "start" });
186
+ const i = document.getElementById(o);
187
+ i && i.scrollIntoView({ behavior: "smooth", block: "start" });
188
188
  },
189
- className: m,
189
+ className: x,
190
190
  disabled: d,
191
191
  "aria-label": `Scroll to ${o}`,
192
- ...l,
192
+ ...s,
193
193
  children: _
194
194
  }
195
195
  );
@@ -198,14 +198,14 @@ function Ae({
198
198
  "button",
199
199
  {
200
200
  type: "button",
201
- className: m,
201
+ className: x,
202
202
  disabled: d,
203
- ...h,
203
+ ...m,
204
204
  children: _
205
205
  }
206
206
  );
207
207
  }
208
208
  export {
209
- Ae as B,
209
+ Ee as B,
210
210
  U as M
211
211
  };