@lucasromero/matrix-ui 0.4.0 → 0.6.0

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.
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { BadgeProps } from '../../types/badgeType';
3
+ export declare const Badge: React.FC<BadgeProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { SelectDropdownProps } from '../../types/selectDropdownType';
3
+ export declare const SelectDropdown: React.FC<SelectDropdownProps>;
@@ -7,3 +7,5 @@ export * from './Navbar/Navbar';
7
7
  export * from './Link/Link';
8
8
  export * from './IconDropdown/IconDropdown';
9
9
  export * from './CardRow/CardRow';
10
+ export * from './SelectDropdown/SelectDropdown';
11
+ export * from './Badge/Badge';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Button, Card, CardRow, IconDropdown, Image, Link, Navbar, Rating, Text, } from './components';
1
+ export { Badge, Button, Card, CardRow, IconDropdown, Image, Link, Navbar, Rating, SelectDropdown, Text, } from './components';
2
2
  export * from './types';
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.primary{color:#111827;cursor:pointer;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.primary:hover:not(:disabled){background:#5fafd6}.primary:active:not(:disabled){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.secondary:hover:not(:disabled){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.ghost:hover:not(:disabled){background:#ffffff0d}.ghost:active:not(:disabled){background:#ffffff14}.error{color:#111827;cursor:pointer;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.error:hover:not(:disabled){filter:brightness(.95)}.error:active:not(:disabled){filter:brightness(.9)}.success{color:#111827;cursor:pointer;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.success:hover:not(:disabled){filter:brightness(.95)}.success:active:not(:disabled){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled){color:#f8fafc}.transparent:disabled{color:#64748b;cursor:not-allowed}._cardContainer_13n90_1{border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:min(300px,90%);height:auto;margin:0 auto;display:flex}._topContentContainer_13n90_13{flex-direction:column;margin-top:1rem;margin-bottom:1rem;display:flex}._cardTitle_13n90_20{margin:0 1rem .2rem}._miniCard_13n90_27 ._cardTitle_13n90_20{flex:1;margin:0}._ctaContainer_13n90_32{box-sizing:border-box;flex-direction:column;justify-content:space-between;gap:1rem;width:100%;padding:.75rem;display:flex}._miniCard_13n90_27 ._ctaContainer_13n90_32{flex-direction:row;justify-content:center;gap:.5rem;padding:.5rem}._imgContainer_13n90_49{box-sizing:border-box;border-radius:8px;justify-content:center;padding-bottom:1rem;padding-left:1.5rem;padding-right:1.5rem;display:flex}._img_13n90_49{max-width:100%}._miniCard_13n90_27 ._topContentContainer_13n90_13{flex-direction:row;justify-content:flex-start;align-items:center;gap:1rem;margin-top:1rem;margin-bottom:1rem}._cardRating_13n90_72{justify-content:center;margin-top:.1rem;display:flex}:where(._headingSm_1ex79_1){color:#f8fafc;font-size:1.25rem;font-weight:600}:where(._headingMd_1ex79_7){color:#f8fafc;font-size:1.5rem;font-weight:600}:where(._headingLg_1ex79_13){color:#f8fafc;font-size:1.875rem;font-weight:700}:where(._headingXl_1ex79_19){color:#f8fafc;font-size:2rem;font-weight:700}:where(._bodySm_1ex79_25){color:#cbd5e1;font-size:.875rem;font-weight:400}:where(._bodyMd_1ex79_31){color:#cbd5e1;font-size:1rem;font-weight:400}:where(._bodyLg_1ex79_37){color:#cbd5e1;font-size:1.125rem;font-weight:400}:where(._caption_1ex79_43){color:#cbd5e1;font-size:.75rem;font-weight:500}._img_14ux7_1{max-width:100%;display:block}._circle_14ux7_6{border-radius:50%}._ratingContainer_1xmf5_1{flex-direction:row;display:flex}._text_1xmf5_6{margin:0;padding-right:.2rem}._star_1xmf5_11{color:gold;fill:gold;width:1rem;height:1rem;margin-top:.17rem}.primary{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.primary:hover:not(:disabled),.primary:hover:not([aria-disabled=true]){background:#5fafd6}.primary:active:not(:disabled),.primary:active:not([aria-disabled=true]){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;text-align:center;vertical-align:middle;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.secondary:hover:not(:disabled),.secondary:hover:not([aria-disabled=true]){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled),.secondary:active:not([aria-disabled=true]){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.ghost:hover:not(:disabled),.ghost:hover:not([aria-disabled=true]){background:#ffffff0d}.ghost:active:not(:disabled),.ghost:active:not([aria-disabled=true]){background:#ffffff14}.error{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.error:hover:not(:disabled),.error:hover:not([aria-disabled=true]){filter:brightness(.95)}.error:active:not(:disabled),.error:active:not([aria-disabled=true]){filter:brightness(.9)}.success{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.success:hover:not(:disabled),.success:hover:not([aria-disabled=true]){filter:brightness(.95)}.success:active:not(:disabled),.success:active:not([aria-disabled=true]){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled),.transparent:hover:not([aria-disabled=true]){color:#f8fafc}.transparent.active{color:#f8fafc;background:#ffffff14}.transparent:focus-visible{outline:none;box-shadow:0 0 0 3px #87ceeb59}.transparent:disabled,.transparent[aria-disabled=true]{color:#64748b;cursor:not-allowed}.link{justify-content:center;align-items:center;display:flex}._navElementsContainer_ndrvq_1{z-index:1000;background-color:#0b0f17;border-bottom:2px solid #1f2937;width:100%;height:3.5rem;position:sticky;top:0}._internalElementsContainer_ndrvq_11{flex-direction:row;align-items:center;width:100%;height:3.5rem;display:flex}._hamburgerIcon_ndrvq_19{margin-left:auto;padding-right:2rem}._leftElementsContainer_ndrvq_24{flex-direction:row;align-items:center;gap:2rem;width:50%;padding-left:1.5rem;line-height:.625rem;display:flex}._leftElement_ndrvq_24{padding-left:2rem}._rightElementsContainer_ndrvq_38{flex-direction:row;justify-content:end;gap:2rem;width:50%;padding-right:2rem;line-height:.625rem;display:flex}._wrapper_1cng4_1{min-width:10rem;display:inline-block;position:relative}._dropdownButton_1cng4_7{padding:0}._dropdownButtonContainer_1cng4_11{justify-content:right;align-items:end;display:flex}._listItemContainer_1cng4_17{z-index:1000;border-radius:5px;flex-direction:column;justify-content:left;align-items:start;min-width:10rem;margin-top:.5rem;padding:0;display:flex;position:absolute;top:100%;left:0}._listItem_1cng4_17{padding-top:.5rem;padding-bottom:.5rem;list-style:none}._cardsContainer_1yd4d_1{flex-direction:row;gap:1rem;display:flex}._cardRowTitle_1yd4d_7{padding-left:1rem}._mobileCardsContainer_1yd4d_11{grid-template-columns:repeat(2,1fr);gap:1rem;display:grid}._mobileCard_1yd4d_11{width:100%;margin-bottom:1rem}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.primary{color:#111827;cursor:pointer;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.primary:hover:not(:disabled){background:#5fafd6}.primary:active:not(:disabled){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.secondary:hover:not(:disabled){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.ghost:hover:not(:disabled){background:#ffffff0d}.ghost:active:not(:disabled){background:#ffffff14}.error{color:#111827;cursor:pointer;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.error:hover:not(:disabled){filter:brightness(.95)}.error:active:not(:disabled){filter:brightness(.9)}.success{color:#111827;cursor:pointer;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.success:hover:not(:disabled){filter:brightness(.95)}.success:active:not(:disabled){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled){color:#f8fafc}.transparent:disabled{color:#64748b;cursor:not-allowed}._cardContainer_59wg4_1{border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:min(300px,90%);height:auto;transition:filter .15s,transform .15s;display:flex}._interactive_59wg4_13:hover{filter:brightness(1.05)}._interactive_59wg4_13:active{filter:brightness(.95)}._topContentContainer_59wg4_21{flex-direction:column;margin-top:1rem;margin-bottom:1rem;display:flex}._cardTitle_59wg4_28{margin:0 1rem .2rem}._miniCard_59wg4_35 ._cardTitle_59wg4_28{flex:1;margin:0}._ctaContainer_59wg4_40{box-sizing:border-box;flex-direction:column;justify-content:space-between;gap:1rem;width:100%;padding:.75rem;display:flex}._miniCard_59wg4_35 ._ctaContainer_59wg4_40{flex-direction:row;justify-content:center;gap:.5rem;padding:.5rem}._imgContainer_59wg4_57{box-sizing:border-box;border-radius:8px;justify-content:center;padding-bottom:1rem;padding-left:1.5rem;padding-right:1.5rem;display:flex}._badgesContainer_59wg4_67{flex-wrap:wrap;justify-content:center;gap:.2rem;display:flex}._badge_59wg4_67{white-space:nowrap}._img_59wg4_57{max-width:100%}._miniCard_59wg4_35 ._topContentContainer_59wg4_21{flex-direction:row;justify-content:flex-start;align-items:center;gap:1rem;margin-top:1rem;margin-bottom:1rem}._cardRating_59wg4_91{justify-content:center;margin-top:.1rem;display:flex}:where(._headingSm_5e5d4_1){color:#f8fafc;margin:0;font-size:1.25rem;font-weight:600}:where(._headingMd_5e5d4_8){color:#f8fafc;margin:0;font-size:1.5rem;font-weight:600}:where(._headingLg_5e5d4_15){color:#f8fafc;margin:0;font-size:1.875rem;font-weight:700}:where(._headingXl_5e5d4_22){color:#f8fafc;margin:0;font-size:2rem;font-weight:700}:where(._bodySm_5e5d4_29){color:#cbd5e1;margin:0;font-size:.875rem;font-weight:400}:where(._bodyMd_5e5d4_36){color:#cbd5e1;margin:0;font-size:1rem;font-weight:400}:where(._bodyLg_5e5d4_43){color:#cbd5e1;margin:0;font-size:1.125rem;font-weight:400}:where(._caption_5e5d4_50){color:#cbd5e1;margin:0;font-size:.75rem;font-weight:500}._img_14ux7_1{max-width:100%;display:block}._circle_14ux7_6{border-radius:50%}._ratingContainer_1xmf5_1{flex-direction:row;display:flex}._text_1xmf5_6{margin:0;padding-right:.2rem}._star_1xmf5_11{color:gold;fill:gold;width:1rem;height:1rem;margin-top:.17rem}.primary{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.primary:hover:not(:disabled),.primary:hover:not([aria-disabled=true]){background:#5fafd6}.primary:active:not(:disabled),.primary:active:not([aria-disabled=true]){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;text-align:center;vertical-align:middle;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.secondary:hover:not(:disabled),.secondary:hover:not([aria-disabled=true]){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled),.secondary:active:not([aria-disabled=true]){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.ghost:hover:not(:disabled),.ghost:hover:not([aria-disabled=true]){background:#ffffff0d}.ghost:active:not(:disabled),.ghost:active:not([aria-disabled=true]){background:#ffffff14}.error{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.error:hover:not(:disabled),.error:hover:not([aria-disabled=true]){filter:brightness(.95)}.error:active:not(:disabled),.error:active:not([aria-disabled=true]){filter:brightness(.9)}.success{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.success:hover:not(:disabled),.success:hover:not([aria-disabled=true]){filter:brightness(.95)}.success:active:not(:disabled),.success:active:not([aria-disabled=true]){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled),.transparent:hover:not([aria-disabled=true]){color:#f8fafc}.transparent.active{color:#f8fafc;background:#ffffff14}.transparent:focus-visible{outline:none;box-shadow:0 0 0 3px #87ceeb59}.transparent:disabled,.transparent[aria-disabled=true]{color:#64748b;cursor:not-allowed}.link{justify-content:center;align-items:center;display:flex}._badge_dy664_1{border-radius:8px;align-items:center;max-width:5rem;max-height:1.5rem;display:flex}._text_dy664_9{margin:0;padding:0;line-height:1}._icon_dy664_15{margin:0;padding:0 .2rem 0 0;line-height:1}._navElementsContainer_ndrvq_1{z-index:1000;background-color:#0b0f17;border-bottom:2px solid #1f2937;width:100%;height:3.5rem;position:sticky;top:0}._internalElementsContainer_ndrvq_11{flex-direction:row;align-items:center;width:100%;height:3.5rem;display:flex}._hamburgerIcon_ndrvq_19{margin-left:auto;padding-right:2rem}._leftElementsContainer_ndrvq_24{flex-direction:row;align-items:center;gap:2rem;width:50%;padding-left:1.5rem;line-height:.625rem;display:flex}._leftElement_ndrvq_24{padding-left:2rem}._rightElementsContainer_ndrvq_38{flex-direction:row;justify-content:end;gap:2rem;width:50%;padding-right:2rem;line-height:.625rem;display:flex}._wrapper_1cng4_1{min-width:10rem;display:inline-block;position:relative}._dropdownButton_1cng4_7{padding:0}._dropdownButtonContainer_1cng4_11{justify-content:right;align-items:end;display:flex}._listItemContainer_1cng4_17{z-index:1000;border-radius:5px;flex-direction:column;justify-content:left;align-items:start;min-width:10rem;margin-top:.5rem;padding:0;display:flex;position:absolute;top:100%;left:0}._listItem_1cng4_17{padding-top:.5rem;padding-bottom:.5rem;list-style:none}._cardsContainer_13xr6_1{flex-direction:row;gap:1rem;display:flex;overflow:hidden}._cardRowTitle_13xr6_8{padding-bottom:.5rem}._mobileCardsContainer_13xr6_12{grid-template-columns:repeat(2,1fr);gap:1rem;display:grid}._mobileCard_13xr6_12{width:100%;margin-bottom:1rem}._viewAllButton_13xr6_26{align-self:center;display:flex}._labelText_1p6fo_1{padding-bottom:.5rem}._selectContainer_1p6fo_5{width:100%;min-width:8rem;max-width:12rem;height:auto;display:inline-block;position:relative}._select_1p6fo_5{appearance:none;cursor:pointer;background:#fff;width:100%;height:100%}._select_1p6fo_5:focus{box-shadow:none;outline:none}._icon_1p6fo_29{pointer-events:none;position:absolute;top:50%;right:.75rem;transform:translateY(-50%)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import e, { createContext as t, createElement as n, forwardRef as r, useContext as i, useEffect as a, useState as o } from "react";
3
3
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
4
4
  //#region node_modules/clsx/dist/clsx.mjs
@@ -36,18 +36,21 @@ var f = {
36
36
  "aria-label": a,
37
37
  "aria-pressed": o,
38
38
  onClick: r,
39
- className: d(t && p[t], i),
39
+ className: d(p[t], i),
40
40
  role: "button",
41
41
  children: n
42
42
  }), h = {
43
- cardContainer: "_cardContainer_13n90_1",
44
- topContentContainer: "_topContentContainer_13n90_13",
45
- cardTitle: "_cardTitle_13n90_20",
46
- miniCard: "_miniCard_13n90_27",
47
- ctaContainer: "_ctaContainer_13n90_32",
48
- imgContainer: "_imgContainer_13n90_49",
49
- img: "_img_13n90_49",
50
- cardRating: "_cardRating_13n90_72"
43
+ cardContainer: "_cardContainer_59wg4_1",
44
+ interactive: "_interactive_59wg4_13",
45
+ topContentContainer: "_topContentContainer_59wg4_21",
46
+ cardTitle: "_cardTitle_59wg4_28",
47
+ miniCard: "_miniCard_59wg4_35",
48
+ ctaContainer: "_ctaContainer_59wg4_40",
49
+ imgContainer: "_imgContainer_59wg4_57",
50
+ badgesContainer: "_badgesContainer_59wg4_67",
51
+ badge: "_badge_59wg4_67",
52
+ img: "_img_59wg4_57",
53
+ cardRating: "_cardRating_59wg4_91"
51
54
  }, g = {
52
55
  headingXl: "h1",
53
56
  headingLg: "h2",
@@ -58,14 +61,14 @@ var f = {
58
61
  bodySm: "p",
59
62
  caption: "span"
60
63
  }, _ = {
61
- headingSm: "_headingSm_1ex79_1",
62
- headingMd: "_headingMd_1ex79_7",
63
- headingLg: "_headingLg_1ex79_13",
64
- headingXl: "_headingXl_1ex79_19",
65
- bodySm: "_bodySm_1ex79_25",
66
- bodyMd: "_bodyMd_1ex79_31",
67
- bodyLg: "_bodyLg_1ex79_37",
68
- caption: "_caption_1ex79_43"
64
+ headingSm: "_headingSm_5e5d4_1",
65
+ headingMd: "_headingMd_5e5d4_8",
66
+ headingLg: "_headingLg_5e5d4_15",
67
+ headingXl: "_headingXl_5e5d4_22",
68
+ bodySm: "_bodySm_5e5d4_29",
69
+ bodyMd: "_bodyMd_5e5d4_36",
70
+ bodyLg: "_bodyLg_5e5d4_43",
71
+ caption: "_caption_5e5d4_50"
69
72
  }, v = ({ copy: e, variant: t, className: n }) => {
70
73
  let r = g[t];
71
74
  return /* @__PURE__ */ c(r, {
@@ -125,7 +128,10 @@ var f = {
125
128
  ...i
126
129
  }));
127
130
  return i.displayName = T(e), i;
128
- }, M = j("menu", [
131
+ }, M = j("chevron-down", [["path", {
132
+ d: "m6 9 6 6 6-6",
133
+ key: "qrunsl"
134
+ }]]), N = j("menu", [
129
135
  ["path", {
130
136
  d: "M4 5h16",
131
137
  key: "1tepv9"
@@ -138,20 +144,20 @@ var f = {
138
144
  d: "M4 19h16",
139
145
  key: "1djgab"
140
146
  }]
141
- ]), N = j("star", [["path", {
147
+ ]), P = j("star", [["path", {
142
148
  d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
143
149
  key: "r04s7s"
144
- }]]), P = {
150
+ }]]), F = {
145
151
  ratingContainer: "_ratingContainer_1xmf5_1",
146
152
  text: "_text_1xmf5_6",
147
153
  star: "_star_1xmf5_11"
148
- }, F = [
149
- { star: /* @__PURE__ */ c(N, { className: P.star }) },
150
- { star: /* @__PURE__ */ c(N, { className: P.star }) },
151
- { star: /* @__PURE__ */ c(N, { className: P.star }) },
152
- { star: /* @__PURE__ */ c(N, { className: P.star }) },
153
- { star: /* @__PURE__ */ c(N, { className: P.star }) }
154
- ], I = ({ rating: t }) => F.filter((e, n) => t && n < t).map((t, n) => e.cloneElement(t.star, { key: n })), L = ({ variant: e, text: t, to: n, className: r, ariaLabel: i, id: a }) => /* @__PURE__ */ c("a", {
154
+ }, I = [
155
+ { star: /* @__PURE__ */ c(P, { className: F.star }) },
156
+ { star: /* @__PURE__ */ c(P, { className: F.star }) },
157
+ { star: /* @__PURE__ */ c(P, { className: F.star }) },
158
+ { star: /* @__PURE__ */ c(P, { className: F.star }) },
159
+ { star: /* @__PURE__ */ c(P, { className: F.star }) }
160
+ ], L = ({ rating: t }) => I.filter((e, n) => t && n < t).map((t, n) => e.cloneElement(t.star, { key: n })), R = ({ variant: e, text: t, to: n, className: r, ariaLabel: i, id: a }) => /* @__PURE__ */ c("a", {
155
161
  id: a,
156
162
  className: d("link", e && f[e], r),
157
163
  href: n,
@@ -160,12 +166,12 @@ var f = {
160
166
  "aria-label": i ?? "Link",
161
167
  role: "link",
162
168
  children: t
163
- }), R = {
169
+ }), z = {
164
170
  mobile: "(max-width: 767px)",
165
171
  tablet: "(min-width: 768px) and (max-width: 1023px)",
166
172
  desktop: "(min-width: 1024px)",
167
173
  belowMobile: "(max-width: 460px)"
168
- }, z = () => {
174
+ }, B = () => {
169
175
  let [e, t] = o({
170
176
  isBelowMobileMinimum: !1,
171
177
  isMobile: !1,
@@ -173,11 +179,11 @@ var f = {
173
179
  isDesktop: !1
174
180
  });
175
181
  return a(() => {
176
- let e = Object.entries(R).map(([e, n]) => {
182
+ let e = Object.entries(z).map(([e, n]) => {
177
183
  let r = window.matchMedia(n), i = () => {
178
184
  t((t) => ({
179
185
  ...t,
180
- [e === "belowMobile" ? "isBelowMobileMinimum" : `is${B(e)}`]: r.matches
186
+ [e === "belowMobile" ? "isBelowMobileMinimum" : `is${V(e)}`]: r.matches
181
187
  }));
182
188
  };
183
189
  return i(), r.addEventListener("change", i), () => r.removeEventListener("change", i);
@@ -186,97 +192,147 @@ var f = {
186
192
  e.forEach((e) => e?.());
187
193
  };
188
194
  }, []), e;
189
- }, B = (e) => e.charAt(0).toUpperCase() + e.slice(1), V = ({ id: e, borderColor: t = "", backgroundColor: n, miniCard: r = !1, title: i, hasRating: a, ratingValue: o, img: s, imgAriaLabel: u, isImgCircle: d = !0, imgHeight: f, imgWidth: p, primaryCta: g, secondaryCta: _ }) => {
190
- let { isBelowMobileMinimum: y } = z(), b = y || r;
191
- return /* @__PURE__ */ l("article", {
195
+ }, V = (e) => e.charAt(0).toUpperCase() + e.slice(1), H = {
196
+ badge: "_badge_dy664_1",
197
+ text: "_text_dy664_9",
198
+ icon: "_icon_dy664_15"
199
+ }, U = ({ text: e, textColor: t, borderColor: n, backgroundColor: r, icon: i }) => /* @__PURE__ */ l("div", {
200
+ className: H.badge,
201
+ style: {
202
+ padding: i ? "0.2rem" : "0.3rem",
203
+ border: n ? `1px solid ${n}` : "1px solid grey",
204
+ background: r ?? "none",
205
+ fontSize: 12,
206
+ flexDirection: "row"
207
+ },
208
+ children: [/* @__PURE__ */ c("p", {
209
+ className: H.text,
210
+ style: {
211
+ color: t,
212
+ paddingRight: i ? "0.3rem" : "",
213
+ paddingLeft: i ? "0.3rem" : ""
214
+ },
215
+ children: e
216
+ }), i && /* @__PURE__ */ c("div", {
217
+ className: H.icon,
218
+ children: i
219
+ })]
220
+ }), W = ({ id: e, isSelectable: t = !1, isSelected: n = !1, cardOnclick: r, borderColor: i = "", backgroundColor: a, miniCard: o = !1, title: s, hasRating: u, ratingValue: f, img: p, imgAriaLabel: g, isImgCircle: _ = !0, imgHeight: y, imgWidth: b, primaryCta: S, secondaryCta: C, badges: w }) => {
221
+ let { isBelowMobileMinimum: T } = B(), E = T || o;
222
+ return /* @__PURE__ */ l("div", {
192
223
  id: e,
193
- "aria-label": `${i} Card`,
194
- className: `${h.cardContainer} ${r ? h.miniCard : ""}`,
224
+ role: t ? "button" : void 0,
225
+ tabIndex: 0,
226
+ "aria-pressed": t ? n : void 0,
227
+ "aria-label": `${s} Card`,
228
+ className: d(h.cardContainer, {
229
+ [h.miniCard]: o,
230
+ [h.interactive]: t,
231
+ [h.selected]: t && n
232
+ }),
233
+ onKeyDown: (e) => {
234
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r?.());
235
+ },
195
236
  style: {
196
- backgroundColor: n,
197
- border: t ? `2px solid ${t}` : void 0
237
+ backgroundColor: a,
238
+ border: i ? `2px solid ${i}` : void 0,
239
+ cursor: t ? "pointer" : ""
198
240
  },
241
+ onClick: t ? r : void 0,
199
242
  children: [
200
243
  /* @__PURE__ */ l("div", {
201
244
  "aria-label": "Card Top Content Container",
202
245
  className: h.topContentContainer,
203
246
  children: [/* @__PURE__ */ c(v, {
204
247
  className: h.cardTitle,
205
- variant: "headingMd",
206
- copy: i
207
- }), a && o != null && /* @__PURE__ */ c("div", {
248
+ variant: "bodyLg",
249
+ copy: s
250
+ }), u && f != null && /* @__PURE__ */ c("div", {
208
251
  "aria-label": "Card Rating Container",
209
252
  className: h.cardRating,
210
- children: /* @__PURE__ */ c(I, { rating: o })
253
+ children: /* @__PURE__ */ c(L, { rating: f })
211
254
  })]
212
255
  }),
213
- !b && /* @__PURE__ */ c("div", {
214
- "aria-label": u ? `${u} Container` : "Image Container",
256
+ !E && /* @__PURE__ */ c("div", {
257
+ "aria-label": g ? `${g} Container` : "Image Container",
215
258
  className: h.imgContainer,
216
259
  children: /* @__PURE__ */ c(x, {
217
- width: p,
218
- height: f,
219
- ariaLabel: u ?? "Card Image",
220
- isCircle: d,
221
- src: s ?? "",
222
- alt: `${i} Card Image`,
223
- style: { border: t ? `2px solid ${t}` : void 0 }
260
+ width: b,
261
+ height: y,
262
+ ariaLabel: g ?? "Card Image",
263
+ isCircle: _,
264
+ src: p ?? "",
265
+ alt: `${s} Card Image`,
266
+ style: { border: i ? `2px solid ${i}` : void 0 }
224
267
  })
225
268
  }),
269
+ w && /* @__PURE__ */ c("div", {
270
+ className: h.badgesContainer,
271
+ children: w?.map((e, t) => /* @__PURE__ */ c("div", {
272
+ className: h.badge,
273
+ children: /* @__PURE__ */ c(U, {
274
+ text: e.text,
275
+ textColor: e.textColor,
276
+ borderColor: e.borderColor,
277
+ backgroundColor: e.backgroundColor,
278
+ icon: e.icon
279
+ })
280
+ }, `${e.text}-${t}`))
281
+ }),
226
282
  /* @__PURE__ */ l("div", {
227
283
  "aria-label": "Card CTA Container",
228
284
  className: h.ctaContainer,
229
- children: [g && (g?.isLink ? /* @__PURE__ */ c(L, {
230
- id: g.id,
231
- ariaLabel: g.ariaLinkLabel ?? "Primary Card Link",
232
- to: g.to,
233
- text: g.text,
234
- variant: g.variant
285
+ children: [S && (S?.isLink ? /* @__PURE__ */ c(R, {
286
+ id: S.id,
287
+ ariaLabel: S.ariaLinkLabel ?? "Primary Card Link",
288
+ to: S.to,
289
+ text: S.text,
290
+ variant: S.variant
235
291
  }) : /* @__PURE__ */ c(m, {
236
- id: g.id,
237
- ariaLabel: g?.ariaButtonLabel ?? "Primary Card Button",
238
- ariaPressed: g?.ariaPressed,
239
- variant: g?.variant,
240
- text: g?.text,
241
- onClick: g?.onClick
242
- })), _ && (_.isLink ? /* @__PURE__ */ c(L, {
243
- id: _.id,
244
- ariaLabel: _.ariaLinkLabel ?? "Secondary Card Link",
245
- to: _.to,
246
- text: _.text,
247
- variant: _.variant
292
+ id: S.id,
293
+ ariaLabel: S?.ariaButtonLabel ?? "Primary Card Button",
294
+ ariaPressed: S?.ariaPressed,
295
+ variant: S?.variant,
296
+ text: S?.text,
297
+ onClick: S?.onClick
298
+ })), C && (C.isLink ? /* @__PURE__ */ c(R, {
299
+ id: C.id,
300
+ ariaLabel: C.ariaLinkLabel ?? "Secondary Card Link",
301
+ to: C.to,
302
+ text: C.text,
303
+ variant: C.variant
248
304
  }) : /* @__PURE__ */ c(m, {
249
- id: _.id,
250
- ariaLabel: _.ariaButtonLabel ?? "Secondary Card Button",
251
- ariaPressed: _.ariaPressed,
252
- variant: _.variant,
253
- text: _.text,
254
- onClick: _.onClick
305
+ id: C.id,
306
+ ariaLabel: C.ariaButtonLabel ?? "Secondary Card Button",
307
+ ariaPressed: C.ariaPressed,
308
+ variant: C.variant,
309
+ text: C.text,
310
+ onClick: C.onClick
255
311
  }))]
256
312
  })
257
313
  ]
258
314
  });
259
- }, H = {
315
+ }, G = {
260
316
  navElementsContainer: "_navElementsContainer_ndrvq_1",
261
317
  internalElementsContainer: "_internalElementsContainer_ndrvq_11",
262
318
  hamburgerIcon: "_hamburgerIcon_ndrvq_19",
263
319
  leftElementsContainer: "_leftElementsContainer_ndrvq_24",
264
320
  leftElement: "_leftElement_ndrvq_24",
265
321
  rightElementsContainer: "_rightElementsContainer_ndrvq_38"
266
- }, U = {
322
+ }, K = {
267
323
  wrapper: "_wrapper_1cng4_1",
268
324
  dropdownButton: "_dropdownButton_1cng4_7",
269
325
  dropdownButtonContainer: "_dropdownButtonContainer_1cng4_11",
270
326
  listItemContainer: "_listItemContainer_1cng4_17",
271
327
  listItem: "_listItem_1cng4_17"
272
- }, W = ({ className: e, icon: t, options: n, listBorderColor: r, listBackgroundColor: i, isNavbarDropdown: a = !1 }) => {
328
+ }, q = ({ className: e, icon: t, options: n, listBorderColor: r, listBackgroundColor: i, isNavbarDropdown: a = !1 }) => {
273
329
  let [s, u] = o(!1);
274
330
  return /* @__PURE__ */ l("section", {
275
- className: d(e, U.wrapper),
331
+ className: d(e, K.wrapper),
276
332
  children: [/* @__PURE__ */ c("div", {
277
- className: U.dropdownButtonContainer,
333
+ className: K.dropdownButtonContainer,
278
334
  children: /* @__PURE__ */ c(m, {
279
- className: U.dropdownButton,
335
+ className: K.dropdownButton,
280
336
  text: t,
281
337
  variant: "transparent",
282
338
  onClick: () => u(!s),
@@ -284,7 +340,7 @@ var f = {
284
340
  })
285
341
  }), s && /* @__PURE__ */ c("ul", {
286
342
  "aria-label": "Unordered Dropdown List",
287
- className: U.listItemContainer,
343
+ className: K.listItemContainer,
288
344
  style: {
289
345
  marginTop: a ? "1.5rem" : "none",
290
346
  border: `2px solid ${r}`,
@@ -292,8 +348,8 @@ var f = {
292
348
  },
293
349
  children: n.map((e) => e.isLink ? /* @__PURE__ */ c("li", {
294
350
  "aria-label": "Dropdown List Item",
295
- className: U.listItem,
296
- children: /* @__PURE__ */ c(L, {
351
+ className: K.listItem,
352
+ children: /* @__PURE__ */ c(R, {
297
353
  id: e.id,
298
354
  variant: e.variant,
299
355
  to: e.to,
@@ -301,7 +357,7 @@ var f = {
301
357
  })
302
358
  }, e.id) : /* @__PURE__ */ c("li", {
303
359
  "aria-label": "Dropdown List Item",
304
- className: U.listItem,
360
+ className: K.listItem,
305
361
  children: /* @__PURE__ */ c(m, {
306
362
  id: e.id,
307
363
  variant: e.variant,
@@ -311,8 +367,8 @@ var f = {
311
367
  }, e.id))
312
368
  })]
313
369
  });
314
- }, G = ({ id: e, ariaLabel: t, backgroundColor: n, borderBottomColor: r, dropdownListBackgroundColor: i, dropdownListBorderColor: a, dropdownListIcon: o = /* @__PURE__ */ c(M, {}), leftElement: u, leftElementNeighbors: d, rightElements: f }) => {
315
- let p = [...d, ...f], { isMobile: h, isBelowMobileMinimum: g } = z();
370
+ }, J = ({ id: e, ariaLabel: t, backgroundColor: n, borderBottomColor: r, dropdownListBackgroundColor: i, dropdownListBorderColor: a, dropdownListIcon: o = /* @__PURE__ */ c(N, {}), leftElement: u, leftElementNeighbors: d, rightElements: f }) => {
371
+ let p = [...d, ...f], { isMobile: h, isBelowMobileMinimum: g } = B();
316
372
  return /* @__PURE__ */ c("nav", {
317
373
  id: e,
318
374
  "aria-label": t ?? "Main Navbar",
@@ -320,17 +376,17 @@ var f = {
320
376
  backgroundColor: n,
321
377
  borderBottom: `2px solid ${r}`
322
378
  },
323
- className: H.navElementsContainer,
379
+ className: G.navElementsContainer,
324
380
  children: /* @__PURE__ */ l("article", {
325
381
  "aria-label": "Elements Container",
326
- className: H.internalElementsContainer,
382
+ className: G.internalElementsContainer,
327
383
  children: [!g && /* @__PURE__ */ c("div", {
328
- className: H.leftElement,
384
+ className: G.leftElement,
329
385
  children: u
330
- }), h ? /* @__PURE__ */ c(W, {
386
+ }), h ? /* @__PURE__ */ c(q, {
331
387
  listBackgroundColor: i,
332
388
  listBorderColor: a,
333
- className: H.hamburgerIcon,
389
+ className: G.hamburgerIcon,
334
390
  icon: o,
335
391
  options: p.map(({ text: e, to: t, variant: n, id: r, isLink: i, onClick: a }) => ({
336
392
  onClick: a,
@@ -343,11 +399,11 @@ var f = {
343
399
  isNavbarDropdown: !0
344
400
  }) : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("article", {
345
401
  "aria-label": "Left Navbar Elements Container",
346
- className: H.leftElementsContainer,
402
+ className: G.leftElementsContainer,
347
403
  children: d?.map((e) => e.isLink ? /* @__PURE__ */ c("div", {
348
404
  "aria-label": "Dropdown List Item",
349
- className: H.listItem,
350
- children: /* @__PURE__ */ c(L, {
405
+ className: G.listItem,
406
+ children: /* @__PURE__ */ c(R, {
351
407
  id: e.id,
352
408
  variant: e.variant,
353
409
  to: e.to,
@@ -355,7 +411,7 @@ var f = {
355
411
  })
356
412
  }, e.id) : /* @__PURE__ */ c("div", {
357
413
  "aria-label": "Dropdown List Item",
358
- className: H.listItem,
414
+ className: G.listItem,
359
415
  children: /* @__PURE__ */ c(m, {
360
416
  id: e.id,
361
417
  variant: e.variant,
@@ -365,11 +421,11 @@ var f = {
365
421
  }, e.id))
366
422
  }), /* @__PURE__ */ c("article", {
367
423
  "aria-label": "Right Navbar Elements Container",
368
- className: H.rightElementsContainer,
424
+ className: G.rightElementsContainer,
369
425
  children: f.map((e) => e.isLink ? /* @__PURE__ */ c("div", {
370
426
  "aria-label": "Dropdown List Item",
371
- className: H.listItem,
372
- children: /* @__PURE__ */ c(L, {
427
+ className: G.listItem,
428
+ children: /* @__PURE__ */ c(R, {
373
429
  id: e.id,
374
430
  variant: e.variant,
375
431
  to: e.to,
@@ -377,7 +433,7 @@ var f = {
377
433
  })
378
434
  }, e.id) : /* @__PURE__ */ c("div", {
379
435
  "aria-label": "Dropdown List Item",
380
- className: H.listItem,
436
+ className: G.listItem,
381
437
  children: /* @__PURE__ */ c(m, {
382
438
  id: e.id,
383
439
  variant: e.variant,
@@ -388,61 +444,113 @@ var f = {
388
444
  })] })]
389
445
  })
390
446
  });
391
- }, K = {
392
- cardsContainer: "_cardsContainer_1yd4d_1",
393
- cardRowTitle: "_cardRowTitle_1yd4d_7",
394
- mobileCardsContainer: "_mobileCardsContainer_1yd4d_11",
395
- mobileCard: "_mobileCard_1yd4d_11"
396
- }, q = ({ rowTitle: e, cards: t, viewAllOnClick: n }) => {
397
- let { isMobile: r, isTablet: i } = z(), a = i ? t.slice(0, 3) : t;
447
+ }, Y = {
448
+ cardsContainer: "_cardsContainer_13xr6_1",
449
+ cardRowTitle: "_cardRowTitle_13xr6_8",
450
+ mobileCardsContainer: "_mobileCardsContainer_13xr6_12",
451
+ mobileCard: "_mobileCard_13xr6_12",
452
+ viewAllButton: "_viewAllButton_13xr6_26"
453
+ }, X = ({ rowTitle: e, cards: t, viewAllOnClick: n }) => {
454
+ let { isMobile: r, isTablet: i } = B(), a = r ? t : i ? t.slice(0, 3) : t.slice(0, 4);
398
455
  return /* @__PURE__ */ l("section", { children: [/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(v, {
399
456
  copy: e ?? "",
400
457
  variant: "bodyLg",
401
- className: K.cardRowTitle
458
+ className: Y.cardRowTitle
402
459
  }) }), /* @__PURE__ */ l("div", {
403
- className: d(K.cardsContainer, r && K.mobileCardsContainer),
404
- children: [a.map((e) => /* @__PURE__ */ c("div", {
405
- className: d(r ? K.mobileCard : null),
406
- children: /* @__PURE__ */ c(V, {
407
- id: e.id,
408
- borderColor: e.borderColor,
409
- backgroundColor: e.backgroundColor,
410
- miniCard: e.miniCard,
411
- title: e.title,
412
- hasRating: e.hasRating,
413
- ratingValue: e.ratingValue,
414
- img: e.img,
415
- imgAriaLabel: e.imgAriaLabel,
416
- isImgCircle: e.isImgCircle,
417
- imgWidth: e.imgWidth,
418
- imgHeight: e.imgHeight,
419
- primaryCta: {
420
- ariaButtonLabel: e.primaryCta?.ariaButtonLabel,
421
- ariaLinkLabel: e.primaryCta?.ariaLinkLabel,
422
- ariaPressed: e.primaryCta?.ariaPressed,
423
- text: e.primaryCta?.text,
424
- onClick: e.primaryCta?.onClick,
425
- to: e.primaryCta?.to,
426
- variant: e.primaryCta?.variant,
427
- isLink: e.primaryCta?.isLink
428
- },
429
- secondaryCta: e.secondaryCta && {
430
- ariaButtonLabel: e.secondaryCta.ariaButtonLabel,
431
- ariaLinkLabel: e.secondaryCta.ariaLinkLabel,
432
- ariaPressed: e.secondaryCta.ariaPressed,
433
- text: e.secondaryCta.text,
434
- onClick: e.secondaryCta.onClick,
435
- to: e.secondaryCta.to,
436
- variant: e.secondaryCta.variant,
437
- isLink: e.secondaryCta.isLink
438
- }
460
+ style: {
461
+ display: "flex",
462
+ flexDirection: "row"
463
+ },
464
+ children: [/* @__PURE__ */ c("div", {
465
+ className: d(Y.cardsContainer, r && Y.mobileCardsContainer),
466
+ children: a.map((e) => /* @__PURE__ */ c("div", {
467
+ className: d(r ? Y.mobileCard : null),
468
+ children: /* @__PURE__ */ c(W, {
469
+ id: e.id,
470
+ borderColor: e.borderColor,
471
+ backgroundColor: e.backgroundColor,
472
+ miniCard: e.miniCard,
473
+ title: e.title,
474
+ hasRating: e.hasRating,
475
+ ratingValue: e.ratingValue,
476
+ img: e.img,
477
+ imgAriaLabel: e.imgAriaLabel,
478
+ isImgCircle: e.isImgCircle,
479
+ imgWidth: e.imgWidth,
480
+ imgHeight: e.imgHeight,
481
+ badges: e.badges,
482
+ isSelectable: e.isSelectable,
483
+ isSelected: e.isSelected,
484
+ cardOnclick: e.cardOnclick,
485
+ primaryCta: {
486
+ ariaButtonLabel: e.primaryCta?.ariaButtonLabel,
487
+ ariaLinkLabel: e.primaryCta?.ariaLinkLabel,
488
+ ariaPressed: e.primaryCta?.ariaPressed,
489
+ text: e.primaryCta?.text,
490
+ onClick: e.primaryCta?.onClick,
491
+ to: e.primaryCta?.to,
492
+ variant: e.primaryCta?.variant,
493
+ isLink: e.primaryCta?.isLink
494
+ },
495
+ secondaryCta: e.secondaryCta && {
496
+ ariaButtonLabel: e.secondaryCta.ariaButtonLabel,
497
+ ariaLinkLabel: e.secondaryCta.ariaLinkLabel,
498
+ ariaPressed: e.secondaryCta.ariaPressed,
499
+ text: e.secondaryCta.text,
500
+ onClick: e.secondaryCta.onClick,
501
+ to: e.secondaryCta.to,
502
+ variant: e.secondaryCta.variant,
503
+ isLink: e.secondaryCta.isLink
504
+ }
505
+ })
506
+ }, e.id))
507
+ }), a.length < t.length && /* @__PURE__ */ c("div", {
508
+ className: Y.viewAllButton,
509
+ children: /* @__PURE__ */ c(m, {
510
+ onClick: n,
511
+ text: "View All",
512
+ variant: "ghost"
439
513
  })
440
- }, e.id)), i && /* @__PURE__ */ c(m, {
441
- onClick: n,
442
- text: "View All",
443
- variant: "transparent"
444
514
  })]
445
515
  })] });
446
- };
516
+ }, Z = {
517
+ labelText: "_labelText_1p6fo_1",
518
+ selectContainer: "_selectContainer_1p6fo_5",
519
+ select: "_select_1p6fo_5",
520
+ icon: "_icon_1p6fo_29"
521
+ }, Q = ({ id: e, label: t, selectOptions: n, value: r, defaultValue: i, onChange: a, multipleOptionSelect: o, className: u, selectBackgroundColor: f, borderColor: p, textColor: m }) => /* @__PURE__ */ c(s, { children: /* @__PURE__ */ l("label", {
522
+ htmlFor: e,
523
+ children: [/* @__PURE__ */ c(v, {
524
+ className: Z.labelText,
525
+ copy: t,
526
+ variant: "bodySm"
527
+ }), /* @__PURE__ */ l("div", {
528
+ className: Z.selectContainer,
529
+ children: [/* @__PURE__ */ c("select", {
530
+ id: e,
531
+ defaultValue: i,
532
+ className: d(Z.select, u),
533
+ style: {
534
+ color: m ?? "",
535
+ background: f ?? "transparent",
536
+ border: p ? `2px solid ${p}` : "none",
537
+ borderRadius: p ? "8px" : "",
538
+ padding: p ? "0.5rem" : 0
539
+ },
540
+ value: r,
541
+ onChange: a,
542
+ multiple: o,
543
+ children: n.map((e) => /* @__PURE__ */ c("option", {
544
+ value: e.option,
545
+ children: e.option
546
+ }, e.option))
547
+ }), /* @__PURE__ */ c(M, {
548
+ color: m,
549
+ strokeWidth: 1,
550
+ size: 20,
551
+ className: Z.icon
552
+ })]
553
+ })]
554
+ }) });
447
555
  //#endregion
448
- export { m as Button, V as Card, q as CardRow, W as IconDropdown, x as Image, L as Link, G as Navbar, I as Rating, v as Text, g as variantMap };
556
+ export { U as Badge, m as Button, W as Card, X as CardRow, q as IconDropdown, x as Image, R as Link, J as Navbar, L as Rating, Q as SelectDropdown, v as Text, g as variantMap };
@@ -1,2 +1,2 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.primary{color:#111827;cursor:pointer;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.primary:hover:not(:disabled){background:#5fafd6}.primary:active:not(:disabled){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.secondary:hover:not(:disabled){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.ghost:hover:not(:disabled){background:#ffffff0d}.ghost:active:not(:disabled){background:#ffffff14}.error{color:#111827;cursor:pointer;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.error:hover:not(:disabled){filter:brightness(.95)}.error:active:not(:disabled){filter:brightness(.9)}.success{color:#111827;cursor:pointer;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.success:hover:not(:disabled){filter:brightness(.95)}.success:active:not(:disabled){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled){color:#f8fafc}.transparent:disabled{color:#64748b;cursor:not-allowed}._cardContainer_13n90_1{border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:min(300px,90%);height:auto;margin:0 auto;display:flex}._topContentContainer_13n90_13{flex-direction:column;margin-top:1rem;margin-bottom:1rem;display:flex}._cardTitle_13n90_20{margin:0 1rem .2rem}._miniCard_13n90_27 ._cardTitle_13n90_20{flex:1;margin:0}._ctaContainer_13n90_32{box-sizing:border-box;flex-direction:column;justify-content:space-between;gap:1rem;width:100%;padding:.75rem;display:flex}._miniCard_13n90_27 ._ctaContainer_13n90_32{flex-direction:row;justify-content:center;gap:.5rem;padding:.5rem}._imgContainer_13n90_49{box-sizing:border-box;border-radius:8px;justify-content:center;padding-bottom:1rem;padding-left:1.5rem;padding-right:1.5rem;display:flex}._img_13n90_49{max-width:100%}._miniCard_13n90_27 ._topContentContainer_13n90_13{flex-direction:row;justify-content:flex-start;align-items:center;gap:1rem;margin-top:1rem;margin-bottom:1rem}._cardRating_13n90_72{justify-content:center;margin-top:.1rem;display:flex}:where(._headingSm_1ex79_1){color:#f8fafc;font-size:1.25rem;font-weight:600}:where(._headingMd_1ex79_7){color:#f8fafc;font-size:1.5rem;font-weight:600}:where(._headingLg_1ex79_13){color:#f8fafc;font-size:1.875rem;font-weight:700}:where(._headingXl_1ex79_19){color:#f8fafc;font-size:2rem;font-weight:700}:where(._bodySm_1ex79_25){color:#cbd5e1;font-size:.875rem;font-weight:400}:where(._bodyMd_1ex79_31){color:#cbd5e1;font-size:1rem;font-weight:400}:where(._bodyLg_1ex79_37){color:#cbd5e1;font-size:1.125rem;font-weight:400}:where(._caption_1ex79_43){color:#cbd5e1;font-size:.75rem;font-weight:500}._img_14ux7_1{max-width:100%;display:block}._circle_14ux7_6{border-radius:50%}._ratingContainer_1xmf5_1{flex-direction:row;display:flex}._text_1xmf5_6{margin:0;padding-right:.2rem}._star_1xmf5_11{color:gold;fill:gold;width:1rem;height:1rem;margin-top:.17rem}.primary{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.primary:hover:not(:disabled),.primary:hover:not([aria-disabled=true]){background:#5fafd6}.primary:active:not(:disabled),.primary:active:not([aria-disabled=true]){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;text-align:center;vertical-align:middle;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.secondary:hover:not(:disabled),.secondary:hover:not([aria-disabled=true]){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled),.secondary:active:not([aria-disabled=true]){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.ghost:hover:not(:disabled),.ghost:hover:not([aria-disabled=true]){background:#ffffff0d}.ghost:active:not(:disabled),.ghost:active:not([aria-disabled=true]){background:#ffffff14}.error{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.error:hover:not(:disabled),.error:hover:not([aria-disabled=true]){filter:brightness(.95)}.error:active:not(:disabled),.error:active:not([aria-disabled=true]){filter:brightness(.9)}.success{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.success:hover:not(:disabled),.success:hover:not([aria-disabled=true]){filter:brightness(.95)}.success:active:not(:disabled),.success:active:not([aria-disabled=true]){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled),.transparent:hover:not([aria-disabled=true]){color:#f8fafc}.transparent.active{color:#f8fafc;background:#ffffff14}.transparent:focus-visible{outline:none;box-shadow:0 0 0 3px #87ceeb59}.transparent:disabled,.transparent[aria-disabled=true]{color:#64748b;cursor:not-allowed}.link{justify-content:center;align-items:center;display:flex}._navElementsContainer_ndrvq_1{z-index:1000;background-color:#0b0f17;border-bottom:2px solid #1f2937;width:100%;height:3.5rem;position:sticky;top:0}._internalElementsContainer_ndrvq_11{flex-direction:row;align-items:center;width:100%;height:3.5rem;display:flex}._hamburgerIcon_ndrvq_19{margin-left:auto;padding-right:2rem}._leftElementsContainer_ndrvq_24{flex-direction:row;align-items:center;gap:2rem;width:50%;padding-left:1.5rem;line-height:.625rem;display:flex}._leftElement_ndrvq_24{padding-left:2rem}._rightElementsContainer_ndrvq_38{flex-direction:row;justify-content:end;gap:2rem;width:50%;padding-right:2rem;line-height:.625rem;display:flex}._wrapper_1cng4_1{min-width:10rem;display:inline-block;position:relative}._dropdownButton_1cng4_7{padding:0}._dropdownButtonContainer_1cng4_11{justify-content:right;align-items:end;display:flex}._listItemContainer_1cng4_17{z-index:1000;border-radius:5px;flex-direction:column;justify-content:left;align-items:start;min-width:10rem;margin-top:.5rem;padding:0;display:flex;position:absolute;top:100%;left:0}._listItem_1cng4_17{padding-top:.5rem;padding-bottom:.5rem;list-style:none}._cardsContainer_1yd4d_1{flex-direction:row;gap:1rem;display:flex}._cardRowTitle_1yd4d_7{padding-left:1rem}._mobileCardsContainer_1yd4d_11{grid-template-columns:repeat(2,1fr);gap:1rem;display:grid}._mobileCard_1yd4d_11{width:100%;margin-bottom:1rem}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`matrix-ui`]={},e.React,e.react_jsx_runtime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:r(s(e)),l(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function u(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function d(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=` `),r+=t);return r}var f={primary:`primary`,secondary:`secondary`,ghost:`ghost`,transparent:`transparent`,success:`success`,error:`error`},p={primary:`primary`,secondary:`secondary`,ghost:`ghost`,transparent:`transparent`,success:`success`,error:`error`},m=({id:e,variant:t=`primary`,text:r,onClick:i,className:a,ariaLabel:o=`Button`,ariaPressed:s=!1})=>(0,n.jsx)(`button`,{id:e,"aria-label":o,"aria-pressed":s,onClick:i,className:d(t&&p[t],a),role:`button`,children:r}),h={cardContainer:`_cardContainer_13n90_1`,topContentContainer:`_topContentContainer_13n90_13`,cardTitle:`_cardTitle_13n90_20`,miniCard:`_miniCard_13n90_27`,ctaContainer:`_ctaContainer_13n90_32`,imgContainer:`_imgContainer_13n90_49`,img:`_img_13n90_49`,cardRating:`_cardRating_13n90_72`},g={headingXl:`h1`,headingLg:`h2`,headingMd:`h3`,headingSm:`h4`,bodyLg:`p`,bodyMd:`p`,bodySm:`p`,caption:`span`},_={headingSm:`_headingSm_1ex79_1`,headingMd:`_headingMd_1ex79_7`,headingLg:`_headingLg_1ex79_13`,headingXl:`_headingXl_1ex79_19`,bodySm:`_bodySm_1ex79_25`,bodyMd:`_bodyMd_1ex79_31`,bodyLg:`_bodyLg_1ex79_37`,caption:`_caption_1ex79_43`},v=({copy:e,variant:t,className:r})=>{let i=g[t];return(0,n.jsx)(i,{className:d(_[t],r),children:e})},y={img:`_img_14ux7_1`,circle:`_circle_14ux7_6`},b=e=>`${e?.toLowerCase().replace(/\s+/g,`-`)}-id`,x=({width:e,height:t,src:r,alt:i,className:a,isCircle:o=!1,ariaLabel:s,style:c})=>{let l=d(y.img,o&&y.circle,a);return(0,n.jsx)(`img`,{id:b(s),"aria-label":s??`Image`,"data-circle":o,className:l,src:r,alt:i,width:e,height:t,style:c})},S=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),C=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),w=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),T=e=>{let t=w(e);return t.charAt(0).toUpperCase()+t.slice(1)},E={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},D=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},O=(0,t.createContext)({}),k=()=>(0,t.useContext)(O),A=(0,t.forwardRef)(({color:e,size:n,strokeWidth:r,absoluteStrokeWidth:i,className:a=``,children:o,iconNode:s,...c},l)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=k()??{},h=i??f?Number(r??d)*24/Number(n??u):r??d;return(0,t.createElement)(`svg`,{ref:l,...E,width:n??u??E.width,height:n??u??E.height,stroke:e??p,strokeWidth:h,className:S(`lucide`,m,a),...!o&&!D(c)&&{"aria-hidden":`true`},...c},[...s.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(o)?o:[o]])}),j=(e,n)=>{let r=(0,t.forwardRef)(({className:r,...i},a)=>(0,t.createElement)(A,{ref:a,iconNode:n,className:S(`lucide-${C(T(e))}`,`lucide-${e}`,r),...i}));return r.displayName=T(e),r},M=j(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),N=j(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),P={ratingContainer:`_ratingContainer_1xmf5_1`,text:`_text_1xmf5_6`,star:`_star_1xmf5_11`},F=[{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})}],I=({rating:e})=>F.filter((t,n)=>e&&n<e).map((e,n)=>t.default.cloneElement(e.star,{key:n})),L=({variant:e,text:t,to:r,className:i,ariaLabel:a,id:o})=>(0,n.jsx)(`a`,{id:o,className:d(`link`,e&&f[e],i),href:r,target:`_blank`,rel:`noopener noreferrer`,"aria-label":a??`Link`,role:`link`,children:t}),R={mobile:`(max-width: 767px)`,tablet:`(min-width: 768px) and (max-width: 1023px)`,desktop:`(min-width: 1024px)`,belowMobile:`(max-width: 460px)`},z=()=>{let[e,n]=(0,t.useState)({isBelowMobileMinimum:!1,isMobile:!1,isTablet:!1,isDesktop:!1});return(0,t.useEffect)(()=>{let e=Object.entries(R).map(([e,t])=>{let r=window.matchMedia(t),i=()=>{n(t=>({...t,[e===`belowMobile`?`isBelowMobileMinimum`:`is${B(e)}`]:r.matches}))};return i(),r.addEventListener(`change`,i),()=>r.removeEventListener(`change`,i)});return()=>{e.forEach(e=>e?.())}},[]),e},B=e=>e.charAt(0).toUpperCase()+e.slice(1),V=({id:e,borderColor:t=``,backgroundColor:r,miniCard:i=!1,title:a,hasRating:o,ratingValue:s,img:c,imgAriaLabel:l,isImgCircle:u=!0,imgHeight:d,imgWidth:f,primaryCta:p,secondaryCta:g})=>{let{isBelowMobileMinimum:_}=z(),y=_||i;return(0,n.jsxs)(`article`,{id:e,"aria-label":`${a} Card`,className:`${h.cardContainer} ${i?h.miniCard:``}`,style:{backgroundColor:r,border:t?`2px solid ${t}`:void 0},children:[(0,n.jsxs)(`div`,{"aria-label":`Card Top Content Container`,className:h.topContentContainer,children:[(0,n.jsx)(v,{className:h.cardTitle,variant:`headingMd`,copy:a}),o&&s!=null&&(0,n.jsx)(`div`,{"aria-label":`Card Rating Container`,className:h.cardRating,children:(0,n.jsx)(I,{rating:s})})]}),!y&&(0,n.jsx)(`div`,{"aria-label":l?`${l} Container`:`Image Container`,className:h.imgContainer,children:(0,n.jsx)(x,{width:f,height:d,ariaLabel:l??`Card Image`,isCircle:u,src:c??``,alt:`${a} Card Image`,style:{border:t?`2px solid ${t}`:void 0}})}),(0,n.jsxs)(`div`,{"aria-label":`Card CTA Container`,className:h.ctaContainer,children:[p&&(p?.isLink?(0,n.jsx)(L,{id:p.id,ariaLabel:p.ariaLinkLabel??`Primary Card Link`,to:p.to,text:p.text,variant:p.variant}):(0,n.jsx)(m,{id:p.id,ariaLabel:p?.ariaButtonLabel??`Primary Card Button`,ariaPressed:p?.ariaPressed,variant:p?.variant,text:p?.text,onClick:p?.onClick})),g&&(g.isLink?(0,n.jsx)(L,{id:g.id,ariaLabel:g.ariaLinkLabel??`Secondary Card Link`,to:g.to,text:g.text,variant:g.variant}):(0,n.jsx)(m,{id:g.id,ariaLabel:g.ariaButtonLabel??`Secondary Card Button`,ariaPressed:g.ariaPressed,variant:g.variant,text:g.text,onClick:g.onClick}))]})]})},H={navElementsContainer:`_navElementsContainer_ndrvq_1`,internalElementsContainer:`_internalElementsContainer_ndrvq_11`,hamburgerIcon:`_hamburgerIcon_ndrvq_19`,leftElementsContainer:`_leftElementsContainer_ndrvq_24`,leftElement:`_leftElement_ndrvq_24`,rightElementsContainer:`_rightElementsContainer_ndrvq_38`},U={wrapper:`_wrapper_1cng4_1`,dropdownButton:`_dropdownButton_1cng4_7`,dropdownButtonContainer:`_dropdownButtonContainer_1cng4_11`,listItemContainer:`_listItemContainer_1cng4_17`,listItem:`_listItem_1cng4_17`},W=({className:e,icon:r,options:i,listBorderColor:a,listBackgroundColor:o,isNavbarDropdown:s=!1})=>{let[c,l]=(0,t.useState)(!1);return(0,n.jsxs)(`section`,{className:d(e,U.wrapper),children:[(0,n.jsx)(`div`,{className:U.dropdownButtonContainer,children:(0,n.jsx)(m,{className:U.dropdownButton,text:r,variant:`transparent`,onClick:()=>l(!c),ariaLabel:`Dropdown Menu Button`})}),c&&(0,n.jsx)(`ul`,{"aria-label":`Unordered Dropdown List`,className:U.listItemContainer,style:{marginTop:s?`1.5rem`:`none`,border:`2px solid ${a}`,backgroundColor:o},children:i.map(e=>e.isLink?(0,n.jsx)(`li`,{"aria-label":`Dropdown List Item`,className:U.listItem,children:(0,n.jsx)(L,{id:e.id,variant:e.variant,to:e.to,text:e.text})},e.id):(0,n.jsx)(`li`,{"aria-label":`Dropdown List Item`,className:U.listItem,children:(0,n.jsx)(m,{id:e.id,variant:e.variant,onClick:e.onClick,text:e.text})},e.id))})]})},G=({id:e,ariaLabel:t,backgroundColor:r,borderBottomColor:i,dropdownListBackgroundColor:a,dropdownListBorderColor:o,dropdownListIcon:s=(0,n.jsx)(M,{}),leftElement:c,leftElementNeighbors:l,rightElements:u})=>{let d=[...l,...u],{isMobile:f,isBelowMobileMinimum:p}=z();return(0,n.jsx)(`nav`,{id:e,"aria-label":t??`Main Navbar`,style:{backgroundColor:r,borderBottom:`2px solid ${i}`},className:H.navElementsContainer,children:(0,n.jsxs)(`article`,{"aria-label":`Elements Container`,className:H.internalElementsContainer,children:[!p&&(0,n.jsx)(`div`,{className:H.leftElement,children:c}),f?(0,n.jsx)(W,{listBackgroundColor:a,listBorderColor:o,className:H.hamburgerIcon,icon:s,options:d.map(({text:e,to:t,variant:n,id:r,isLink:i,onClick:a})=>({onClick:a,isLink:i,id:r,text:e,to:t,variant:n})),isNavbarDropdown:!0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`article`,{"aria-label":`Left Navbar Elements Container`,className:H.leftElementsContainer,children:l?.map(e=>e.isLink?(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:H.listItem,children:(0,n.jsx)(L,{id:e.id,variant:e.variant,to:e.to,text:e.text})},e.id):(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:H.listItem,children:(0,n.jsx)(m,{id:e.id,variant:e.variant,onClick:e.onClick,text:e.text})},e.id))}),(0,n.jsx)(`article`,{"aria-label":`Right Navbar Elements Container`,className:H.rightElementsContainer,children:u.map(e=>e.isLink?(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:H.listItem,children:(0,n.jsx)(L,{id:e.id,variant:e.variant,to:e.to,text:e.text})},e.id):(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:H.listItem,children:(0,n.jsx)(m,{id:e.id,variant:e.variant,onClick:e.onClick,text:e.text})},e.id))})]})]})})},K={cardsContainer:`_cardsContainer_1yd4d_1`,cardRowTitle:`_cardRowTitle_1yd4d_7`,mobileCardsContainer:`_mobileCardsContainer_1yd4d_11`,mobileCard:`_mobileCard_1yd4d_11`};e.Button=m,e.Card=V,e.CardRow=({rowTitle:e,cards:t,viewAllOnClick:r})=>{let{isMobile:i,isTablet:a}=z(),o=a?t.slice(0,3):t;return(0,n.jsxs)(`section`,{children:[(0,n.jsx)(`div`,{children:(0,n.jsx)(v,{copy:e??``,variant:`bodyLg`,className:K.cardRowTitle})}),(0,n.jsxs)(`div`,{className:d(K.cardsContainer,i&&K.mobileCardsContainer),children:[o.map(e=>(0,n.jsx)(`div`,{className:d(i?K.mobileCard:null),children:(0,n.jsx)(V,{id:e.id,borderColor:e.borderColor,backgroundColor:e.backgroundColor,miniCard:e.miniCard,title:e.title,hasRating:e.hasRating,ratingValue:e.ratingValue,img:e.img,imgAriaLabel:e.imgAriaLabel,isImgCircle:e.isImgCircle,imgWidth:e.imgWidth,imgHeight:e.imgHeight,primaryCta:{ariaButtonLabel:e.primaryCta?.ariaButtonLabel,ariaLinkLabel:e.primaryCta?.ariaLinkLabel,ariaPressed:e.primaryCta?.ariaPressed,text:e.primaryCta?.text,onClick:e.primaryCta?.onClick,to:e.primaryCta?.to,variant:e.primaryCta?.variant,isLink:e.primaryCta?.isLink},secondaryCta:e.secondaryCta&&{ariaButtonLabel:e.secondaryCta.ariaButtonLabel,ariaLinkLabel:e.secondaryCta.ariaLinkLabel,ariaPressed:e.secondaryCta.ariaPressed,text:e.secondaryCta.text,onClick:e.secondaryCta.onClick,to:e.secondaryCta.to,variant:e.secondaryCta.variant,isLink:e.secondaryCta.isLink}})},e.id)),a&&(0,n.jsx)(m,{onClick:r,text:`View All`,variant:`transparent`})]})]})},e.IconDropdown=W,e.Image=x,e.Link=L,e.Navbar=G,e.Rating=I,e.Text=v,e.variantMap=g});
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.primary{color:#111827;cursor:pointer;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.primary:hover:not(:disabled){background:#5fafd6}.primary:active:not(:disabled){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.secondary:hover:not(:disabled){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.ghost:hover:not(:disabled){background:#ffffff0d}.ghost:active:not(:disabled){background:#ffffff14}.error{color:#111827;cursor:pointer;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.error:hover:not(:disabled){filter:brightness(.95)}.error:active:not(:disabled){filter:brightness(.9)}.success{color:#111827;cursor:pointer;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.success:hover:not(:disabled){filter:brightness(.95)}.success:active:not(:disabled){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled){color:#f8fafc}.transparent:disabled{color:#64748b;cursor:not-allowed}._cardContainer_59wg4_1{border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:min(300px,90%);height:auto;transition:filter .15s,transform .15s;display:flex}._interactive_59wg4_13:hover{filter:brightness(1.05)}._interactive_59wg4_13:active{filter:brightness(.95)}._topContentContainer_59wg4_21{flex-direction:column;margin-top:1rem;margin-bottom:1rem;display:flex}._cardTitle_59wg4_28{margin:0 1rem .2rem}._miniCard_59wg4_35 ._cardTitle_59wg4_28{flex:1;margin:0}._ctaContainer_59wg4_40{box-sizing:border-box;flex-direction:column;justify-content:space-between;gap:1rem;width:100%;padding:.75rem;display:flex}._miniCard_59wg4_35 ._ctaContainer_59wg4_40{flex-direction:row;justify-content:center;gap:.5rem;padding:.5rem}._imgContainer_59wg4_57{box-sizing:border-box;border-radius:8px;justify-content:center;padding-bottom:1rem;padding-left:1.5rem;padding-right:1.5rem;display:flex}._badgesContainer_59wg4_67{flex-wrap:wrap;justify-content:center;gap:.2rem;display:flex}._badge_59wg4_67{white-space:nowrap}._img_59wg4_57{max-width:100%}._miniCard_59wg4_35 ._topContentContainer_59wg4_21{flex-direction:row;justify-content:flex-start;align-items:center;gap:1rem;margin-top:1rem;margin-bottom:1rem}._cardRating_59wg4_91{justify-content:center;margin-top:.1rem;display:flex}:where(._headingSm_5e5d4_1){color:#f8fafc;margin:0;font-size:1.25rem;font-weight:600}:where(._headingMd_5e5d4_8){color:#f8fafc;margin:0;font-size:1.5rem;font-weight:600}:where(._headingLg_5e5d4_15){color:#f8fafc;margin:0;font-size:1.875rem;font-weight:700}:where(._headingXl_5e5d4_22){color:#f8fafc;margin:0;font-size:2rem;font-weight:700}:where(._bodySm_5e5d4_29){color:#cbd5e1;margin:0;font-size:.875rem;font-weight:400}:where(._bodyMd_5e5d4_36){color:#cbd5e1;margin:0;font-size:1rem;font-weight:400}:where(._bodyLg_5e5d4_43){color:#cbd5e1;margin:0;font-size:1.125rem;font-weight:400}:where(._caption_5e5d4_50){color:#cbd5e1;margin:0;font-size:.75rem;font-weight:500}._img_14ux7_1{max-width:100%;display:block}._circle_14ux7_6{border-radius:50%}._ratingContainer_1xmf5_1{flex-direction:row;display:flex}._text_1xmf5_6{margin:0;padding-right:.2rem}._star_1xmf5_11{color:gold;fill:gold;width:1rem;height:1rem;margin-top:.17rem}.primary{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.primary:hover:not(:disabled),.primary:hover:not([aria-disabled=true]){background:#5fafd6}.primary:active:not(:disabled),.primary:active:not([aria-disabled=true]){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;text-align:center;vertical-align:middle;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.secondary:hover:not(:disabled),.secondary:hover:not([aria-disabled=true]){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled),.secondary:active:not([aria-disabled=true]){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.ghost:hover:not(:disabled),.ghost:hover:not([aria-disabled=true]){background:#ffffff0d}.ghost:active:not(:disabled),.ghost:active:not([aria-disabled=true]){background:#ffffff14}.error{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.error:hover:not(:disabled),.error:hover:not([aria-disabled=true]){filter:brightness(.95)}.error:active:not(:disabled),.error:active:not([aria-disabled=true]){filter:brightness(.9)}.success{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.success:hover:not(:disabled),.success:hover:not([aria-disabled=true]){filter:brightness(.95)}.success:active:not(:disabled),.success:active:not([aria-disabled=true]){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled),.transparent:hover:not([aria-disabled=true]){color:#f8fafc}.transparent.active{color:#f8fafc;background:#ffffff14}.transparent:focus-visible{outline:none;box-shadow:0 0 0 3px #87ceeb59}.transparent:disabled,.transparent[aria-disabled=true]{color:#64748b;cursor:not-allowed}.link{justify-content:center;align-items:center;display:flex}._badge_dy664_1{border-radius:8px;align-items:center;max-width:5rem;max-height:1.5rem;display:flex}._text_dy664_9{margin:0;padding:0;line-height:1}._icon_dy664_15{margin:0;padding:0 .2rem 0 0;line-height:1}._navElementsContainer_ndrvq_1{z-index:1000;background-color:#0b0f17;border-bottom:2px solid #1f2937;width:100%;height:3.5rem;position:sticky;top:0}._internalElementsContainer_ndrvq_11{flex-direction:row;align-items:center;width:100%;height:3.5rem;display:flex}._hamburgerIcon_ndrvq_19{margin-left:auto;padding-right:2rem}._leftElementsContainer_ndrvq_24{flex-direction:row;align-items:center;gap:2rem;width:50%;padding-left:1.5rem;line-height:.625rem;display:flex}._leftElement_ndrvq_24{padding-left:2rem}._rightElementsContainer_ndrvq_38{flex-direction:row;justify-content:end;gap:2rem;width:50%;padding-right:2rem;line-height:.625rem;display:flex}._wrapper_1cng4_1{min-width:10rem;display:inline-block;position:relative}._dropdownButton_1cng4_7{padding:0}._dropdownButtonContainer_1cng4_11{justify-content:right;align-items:end;display:flex}._listItemContainer_1cng4_17{z-index:1000;border-radius:5px;flex-direction:column;justify-content:left;align-items:start;min-width:10rem;margin-top:.5rem;padding:0;display:flex;position:absolute;top:100%;left:0}._listItem_1cng4_17{padding-top:.5rem;padding-bottom:.5rem;list-style:none}._cardsContainer_13xr6_1{flex-direction:row;gap:1rem;display:flex;overflow:hidden}._cardRowTitle_13xr6_8{padding-bottom:.5rem}._mobileCardsContainer_13xr6_12{grid-template-columns:repeat(2,1fr);gap:1rem;display:grid}._mobileCard_13xr6_12{width:100%;margin-bottom:1rem}._viewAllButton_13xr6_26{align-self:center;display:flex}._labelText_1p6fo_1{padding-bottom:.5rem}._selectContainer_1p6fo_5{width:100%;min-width:8rem;max-width:12rem;height:auto;display:inline-block;position:relative}._select_1p6fo_5{appearance:none;cursor:pointer;background:#fff;width:100%;height:100%}._select_1p6fo_5:focus{box-shadow:none;outline:none}._icon_1p6fo_29{pointer-events:none;position:absolute;top:50%;right:.75rem;transform:translateY(-50%)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`matrix-ui`]={},e.React,e.react_jsx_runtime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:r(s(e)),l(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function u(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function d(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=` `),r+=t);return r}var f={primary:`primary`,secondary:`secondary`,ghost:`ghost`,transparent:`transparent`,success:`success`,error:`error`},p={primary:`primary`,secondary:`secondary`,ghost:`ghost`,transparent:`transparent`,success:`success`,error:`error`},m=({id:e,variant:t=`primary`,text:r,onClick:i,className:a,ariaLabel:o=`Button`,ariaPressed:s=!1})=>(0,n.jsx)(`button`,{id:e,"aria-label":o,"aria-pressed":s,onClick:i,className:d(p[t],a),role:`button`,children:r}),h={cardContainer:`_cardContainer_59wg4_1`,interactive:`_interactive_59wg4_13`,topContentContainer:`_topContentContainer_59wg4_21`,cardTitle:`_cardTitle_59wg4_28`,miniCard:`_miniCard_59wg4_35`,ctaContainer:`_ctaContainer_59wg4_40`,imgContainer:`_imgContainer_59wg4_57`,badgesContainer:`_badgesContainer_59wg4_67`,badge:`_badge_59wg4_67`,img:`_img_59wg4_57`,cardRating:`_cardRating_59wg4_91`},g={headingXl:`h1`,headingLg:`h2`,headingMd:`h3`,headingSm:`h4`,bodyLg:`p`,bodyMd:`p`,bodySm:`p`,caption:`span`},_={headingSm:`_headingSm_5e5d4_1`,headingMd:`_headingMd_5e5d4_8`,headingLg:`_headingLg_5e5d4_15`,headingXl:`_headingXl_5e5d4_22`,bodySm:`_bodySm_5e5d4_29`,bodyMd:`_bodyMd_5e5d4_36`,bodyLg:`_bodyLg_5e5d4_43`,caption:`_caption_5e5d4_50`},v=({copy:e,variant:t,className:r})=>{let i=g[t];return(0,n.jsx)(i,{className:d(_[t],r),children:e})},y={img:`_img_14ux7_1`,circle:`_circle_14ux7_6`},b=e=>`${e?.toLowerCase().replace(/\s+/g,`-`)}-id`,x=({width:e,height:t,src:r,alt:i,className:a,isCircle:o=!1,ariaLabel:s,style:c})=>{let l=d(y.img,o&&y.circle,a);return(0,n.jsx)(`img`,{id:b(s),"aria-label":s??`Image`,"data-circle":o,className:l,src:r,alt:i,width:e,height:t,style:c})},S=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),C=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),w=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),T=e=>{let t=w(e);return t.charAt(0).toUpperCase()+t.slice(1)},E={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},D=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},O=(0,t.createContext)({}),k=()=>(0,t.useContext)(O),A=(0,t.forwardRef)(({color:e,size:n,strokeWidth:r,absoluteStrokeWidth:i,className:a=``,children:o,iconNode:s,...c},l)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=k()??{},h=i??f?Number(r??d)*24/Number(n??u):r??d;return(0,t.createElement)(`svg`,{ref:l,...E,width:n??u??E.width,height:n??u??E.height,stroke:e??p,strokeWidth:h,className:S(`lucide`,m,a),...!o&&!D(c)&&{"aria-hidden":`true`},...c},[...s.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(o)?o:[o]])}),j=(e,n)=>{let r=(0,t.forwardRef)(({className:r,...i},a)=>(0,t.createElement)(A,{ref:a,iconNode:n,className:S(`lucide-${C(T(e))}`,`lucide-${e}`,r),...i}));return r.displayName=T(e),r},M=j(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),N=j(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),P=j(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),F={ratingContainer:`_ratingContainer_1xmf5_1`,text:`_text_1xmf5_6`,star:`_star_1xmf5_11`},I=[{star:(0,n.jsx)(P,{className:F.star})},{star:(0,n.jsx)(P,{className:F.star})},{star:(0,n.jsx)(P,{className:F.star})},{star:(0,n.jsx)(P,{className:F.star})},{star:(0,n.jsx)(P,{className:F.star})}],L=({rating:e})=>I.filter((t,n)=>e&&n<e).map((e,n)=>t.default.cloneElement(e.star,{key:n})),R=({variant:e,text:t,to:r,className:i,ariaLabel:a,id:o})=>(0,n.jsx)(`a`,{id:o,className:d(`link`,e&&f[e],i),href:r,target:`_blank`,rel:`noopener noreferrer`,"aria-label":a??`Link`,role:`link`,children:t}),z={mobile:`(max-width: 767px)`,tablet:`(min-width: 768px) and (max-width: 1023px)`,desktop:`(min-width: 1024px)`,belowMobile:`(max-width: 460px)`},B=()=>{let[e,n]=(0,t.useState)({isBelowMobileMinimum:!1,isMobile:!1,isTablet:!1,isDesktop:!1});return(0,t.useEffect)(()=>{let e=Object.entries(z).map(([e,t])=>{let r=window.matchMedia(t),i=()=>{n(t=>({...t,[e===`belowMobile`?`isBelowMobileMinimum`:`is${V(e)}`]:r.matches}))};return i(),r.addEventListener(`change`,i),()=>r.removeEventListener(`change`,i)});return()=>{e.forEach(e=>e?.())}},[]),e},V=e=>e.charAt(0).toUpperCase()+e.slice(1),H={badge:`_badge_dy664_1`,text:`_text_dy664_9`,icon:`_icon_dy664_15`},U=({text:e,textColor:t,borderColor:r,backgroundColor:i,icon:a})=>(0,n.jsxs)(`div`,{className:H.badge,style:{padding:a?`0.2rem`:`0.3rem`,border:r?`1px solid ${r}`:`1px solid grey`,background:i??`none`,fontSize:12,flexDirection:`row`},children:[(0,n.jsx)(`p`,{className:H.text,style:{color:t,paddingRight:a?`0.3rem`:``,paddingLeft:a?`0.3rem`:``},children:e}),a&&(0,n.jsx)(`div`,{className:H.icon,children:a})]}),W=({id:e,isSelectable:t=!1,isSelected:r=!1,cardOnclick:i,borderColor:a=``,backgroundColor:o,miniCard:s=!1,title:c,hasRating:l,ratingValue:u,img:f,imgAriaLabel:p,isImgCircle:g=!0,imgHeight:_,imgWidth:y,primaryCta:b,secondaryCta:S,badges:C})=>{let{isBelowMobileMinimum:w}=B(),T=w||s;return(0,n.jsxs)(`div`,{id:e,role:t?`button`:void 0,tabIndex:0,"aria-pressed":t?r:void 0,"aria-label":`${c} Card`,className:d(h.cardContainer,{[h.miniCard]:s,[h.interactive]:t,[h.selected]:t&&r}),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),i?.())},style:{backgroundColor:o,border:a?`2px solid ${a}`:void 0,cursor:t?`pointer`:``},onClick:t?i:void 0,children:[(0,n.jsxs)(`div`,{"aria-label":`Card Top Content Container`,className:h.topContentContainer,children:[(0,n.jsx)(v,{className:h.cardTitle,variant:`bodyLg`,copy:c}),l&&u!=null&&(0,n.jsx)(`div`,{"aria-label":`Card Rating Container`,className:h.cardRating,children:(0,n.jsx)(L,{rating:u})})]}),!T&&(0,n.jsx)(`div`,{"aria-label":p?`${p} Container`:`Image Container`,className:h.imgContainer,children:(0,n.jsx)(x,{width:y,height:_,ariaLabel:p??`Card Image`,isCircle:g,src:f??``,alt:`${c} Card Image`,style:{border:a?`2px solid ${a}`:void 0}})}),C&&(0,n.jsx)(`div`,{className:h.badgesContainer,children:C?.map((e,t)=>(0,n.jsx)(`div`,{className:h.badge,children:(0,n.jsx)(U,{text:e.text,textColor:e.textColor,borderColor:e.borderColor,backgroundColor:e.backgroundColor,icon:e.icon})},`${e.text}-${t}`))}),(0,n.jsxs)(`div`,{"aria-label":`Card CTA Container`,className:h.ctaContainer,children:[b&&(b?.isLink?(0,n.jsx)(R,{id:b.id,ariaLabel:b.ariaLinkLabel??`Primary Card Link`,to:b.to,text:b.text,variant:b.variant}):(0,n.jsx)(m,{id:b.id,ariaLabel:b?.ariaButtonLabel??`Primary Card Button`,ariaPressed:b?.ariaPressed,variant:b?.variant,text:b?.text,onClick:b?.onClick})),S&&(S.isLink?(0,n.jsx)(R,{id:S.id,ariaLabel:S.ariaLinkLabel??`Secondary Card Link`,to:S.to,text:S.text,variant:S.variant}):(0,n.jsx)(m,{id:S.id,ariaLabel:S.ariaButtonLabel??`Secondary Card Button`,ariaPressed:S.ariaPressed,variant:S.variant,text:S.text,onClick:S.onClick}))]})]})},G={navElementsContainer:`_navElementsContainer_ndrvq_1`,internalElementsContainer:`_internalElementsContainer_ndrvq_11`,hamburgerIcon:`_hamburgerIcon_ndrvq_19`,leftElementsContainer:`_leftElementsContainer_ndrvq_24`,leftElement:`_leftElement_ndrvq_24`,rightElementsContainer:`_rightElementsContainer_ndrvq_38`},K={wrapper:`_wrapper_1cng4_1`,dropdownButton:`_dropdownButton_1cng4_7`,dropdownButtonContainer:`_dropdownButtonContainer_1cng4_11`,listItemContainer:`_listItemContainer_1cng4_17`,listItem:`_listItem_1cng4_17`},q=({className:e,icon:r,options:i,listBorderColor:a,listBackgroundColor:o,isNavbarDropdown:s=!1})=>{let[c,l]=(0,t.useState)(!1);return(0,n.jsxs)(`section`,{className:d(e,K.wrapper),children:[(0,n.jsx)(`div`,{className:K.dropdownButtonContainer,children:(0,n.jsx)(m,{className:K.dropdownButton,text:r,variant:`transparent`,onClick:()=>l(!c),ariaLabel:`Dropdown Menu Button`})}),c&&(0,n.jsx)(`ul`,{"aria-label":`Unordered Dropdown List`,className:K.listItemContainer,style:{marginTop:s?`1.5rem`:`none`,border:`2px solid ${a}`,backgroundColor:o},children:i.map(e=>e.isLink?(0,n.jsx)(`li`,{"aria-label":`Dropdown List Item`,className:K.listItem,children:(0,n.jsx)(R,{id:e.id,variant:e.variant,to:e.to,text:e.text})},e.id):(0,n.jsx)(`li`,{"aria-label":`Dropdown List Item`,className:K.listItem,children:(0,n.jsx)(m,{id:e.id,variant:e.variant,onClick:e.onClick,text:e.text})},e.id))})]})},J=({id:e,ariaLabel:t,backgroundColor:r,borderBottomColor:i,dropdownListBackgroundColor:a,dropdownListBorderColor:o,dropdownListIcon:s=(0,n.jsx)(N,{}),leftElement:c,leftElementNeighbors:l,rightElements:u})=>{let d=[...l,...u],{isMobile:f,isBelowMobileMinimum:p}=B();return(0,n.jsx)(`nav`,{id:e,"aria-label":t??`Main Navbar`,style:{backgroundColor:r,borderBottom:`2px solid ${i}`},className:G.navElementsContainer,children:(0,n.jsxs)(`article`,{"aria-label":`Elements Container`,className:G.internalElementsContainer,children:[!p&&(0,n.jsx)(`div`,{className:G.leftElement,children:c}),f?(0,n.jsx)(q,{listBackgroundColor:a,listBorderColor:o,className:G.hamburgerIcon,icon:s,options:d.map(({text:e,to:t,variant:n,id:r,isLink:i,onClick:a})=>({onClick:a,isLink:i,id:r,text:e,to:t,variant:n})),isNavbarDropdown:!0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`article`,{"aria-label":`Left Navbar Elements Container`,className:G.leftElementsContainer,children:l?.map(e=>e.isLink?(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:G.listItem,children:(0,n.jsx)(R,{id:e.id,variant:e.variant,to:e.to,text:e.text})},e.id):(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:G.listItem,children:(0,n.jsx)(m,{id:e.id,variant:e.variant,onClick:e.onClick,text:e.text})},e.id))}),(0,n.jsx)(`article`,{"aria-label":`Right Navbar Elements Container`,className:G.rightElementsContainer,children:u.map(e=>e.isLink?(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:G.listItem,children:(0,n.jsx)(R,{id:e.id,variant:e.variant,to:e.to,text:e.text})},e.id):(0,n.jsx)(`div`,{"aria-label":`Dropdown List Item`,className:G.listItem,children:(0,n.jsx)(m,{id:e.id,variant:e.variant,onClick:e.onClick,text:e.text})},e.id))})]})]})})},Y={cardsContainer:`_cardsContainer_13xr6_1`,cardRowTitle:`_cardRowTitle_13xr6_8`,mobileCardsContainer:`_mobileCardsContainer_13xr6_12`,mobileCard:`_mobileCard_13xr6_12`,viewAllButton:`_viewAllButton_13xr6_26`},X=({rowTitle:e,cards:t,viewAllOnClick:r})=>{let{isMobile:i,isTablet:a}=B(),o=i?t:a?t.slice(0,3):t.slice(0,4);return(0,n.jsxs)(`section`,{children:[(0,n.jsx)(`div`,{children:(0,n.jsx)(v,{copy:e??``,variant:`bodyLg`,className:Y.cardRowTitle})}),(0,n.jsxs)(`div`,{style:{display:`flex`,flexDirection:`row`},children:[(0,n.jsx)(`div`,{className:d(Y.cardsContainer,i&&Y.mobileCardsContainer),children:o.map(e=>(0,n.jsx)(`div`,{className:d(i?Y.mobileCard:null),children:(0,n.jsx)(W,{id:e.id,borderColor:e.borderColor,backgroundColor:e.backgroundColor,miniCard:e.miniCard,title:e.title,hasRating:e.hasRating,ratingValue:e.ratingValue,img:e.img,imgAriaLabel:e.imgAriaLabel,isImgCircle:e.isImgCircle,imgWidth:e.imgWidth,imgHeight:e.imgHeight,badges:e.badges,isSelectable:e.isSelectable,isSelected:e.isSelected,cardOnclick:e.cardOnclick,primaryCta:{ariaButtonLabel:e.primaryCta?.ariaButtonLabel,ariaLinkLabel:e.primaryCta?.ariaLinkLabel,ariaPressed:e.primaryCta?.ariaPressed,text:e.primaryCta?.text,onClick:e.primaryCta?.onClick,to:e.primaryCta?.to,variant:e.primaryCta?.variant,isLink:e.primaryCta?.isLink},secondaryCta:e.secondaryCta&&{ariaButtonLabel:e.secondaryCta.ariaButtonLabel,ariaLinkLabel:e.secondaryCta.ariaLinkLabel,ariaPressed:e.secondaryCta.ariaPressed,text:e.secondaryCta.text,onClick:e.secondaryCta.onClick,to:e.secondaryCta.to,variant:e.secondaryCta.variant,isLink:e.secondaryCta.isLink}})},e.id))}),o.length<t.length&&(0,n.jsx)(`div`,{className:Y.viewAllButton,children:(0,n.jsx)(m,{onClick:r,text:`View All`,variant:`ghost`})})]})]})},Z={labelText:`_labelText_1p6fo_1`,selectContainer:`_selectContainer_1p6fo_5`,select:`_select_1p6fo_5`,icon:`_icon_1p6fo_29`};e.Badge=U,e.Button=m,e.Card=W,e.CardRow=X,e.IconDropdown=q,e.Image=x,e.Link=R,e.Navbar=J,e.Rating=L,e.SelectDropdown=({id:e,label:t,selectOptions:r,value:i,defaultValue:a,onChange:o,multipleOptionSelect:s,className:c,selectBackgroundColor:l,borderColor:u,textColor:f})=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`label`,{htmlFor:e,children:[(0,n.jsx)(v,{className:Z.labelText,copy:t,variant:`bodySm`}),(0,n.jsxs)(`div`,{className:Z.selectContainer,children:[(0,n.jsx)(`select`,{id:e,defaultValue:a,className:d(Z.select,c),style:{color:f??``,background:l??`transparent`,border:u?`2px solid ${u}`:`none`,borderRadius:u?`8px`:``,padding:u?`0.5rem`:0},value:i,onChange:o,multiple:s,children:r.map(e=>(0,n.jsx)(`option`,{value:e.option,children:e.option},e.option))}),(0,n.jsx)(M,{color:f,strokeWidth:1,size:20,className:Z.icon})]})]})}),e.Text=v,e.variantMap=g});
@@ -0,0 +1,7 @@
1
+ export interface BadgeProps {
2
+ text: string;
3
+ borderColor?: string;
4
+ backgroundColor?: string;
5
+ textColor?: string;
6
+ icon?: React.ReactNode;
7
+ }
@@ -1,11 +1,16 @@
1
+ import { BadgeProps } from './badgeType';
1
2
  import { ButtonVariant } from './buttonType';
2
3
  import { LinkVariant } from './linkType';
3
4
  export interface CardProps {
5
+ title: string;
4
6
  id?: string;
7
+ badges?: BadgeProps[];
8
+ isSelectable?: boolean;
9
+ isSelected?: boolean;
10
+ cardOnclick?: () => void;
5
11
  borderColor?: string;
6
12
  backgroundColor?: string;
7
13
  miniCard?: boolean;
8
- title: string;
9
14
  hasRating?: boolean;
10
15
  ratingValue?: number;
11
16
  img?: string;
@@ -7,3 +7,5 @@ export * from './ratingType';
7
7
  export * from './navbarType';
8
8
  export * from './iconDropdownType';
9
9
  export * from './cardRowType';
10
+ export * from './selectDropdownType';
11
+ export * from './badgeType';
@@ -0,0 +1,15 @@
1
+ export interface SelectDropdownProps {
2
+ id: string;
3
+ label: string;
4
+ selectOptions: {
5
+ option: string;
6
+ }[];
7
+ defaultValue?: string;
8
+ value?: string;
9
+ onChange?: React.ChangeEventHandler<HTMLSelectElement>;
10
+ multipleOptionSelect?: boolean;
11
+ className?: string;
12
+ selectBackgroundColor?: string;
13
+ borderColor?: string;
14
+ textColor?: string;
15
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lucasromero/matrix-ui",
3
3
  "private": false,
4
- "version": "0.4.0",
4
+ "version": "0.6.0",
5
5
  "type": "module",
6
6
  "main": "./dist/matrix-ui.es.js",
7
7
  "module": "./dist/matrix-ui.es.js",