@blakesteve/roster 4.13.0 → 5.0.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.
- package/README.md +14 -6
- package/dist/components/atoms/Avatar/Avatar.cjs +1 -1
- package/dist/components/atoms/Avatar/Avatar.js +9 -8
- package/dist/components/atoms/AvatarStrip/AvatarStrip.cjs +1 -1
- package/dist/components/atoms/AvatarStrip/AvatarStrip.js +11 -10
- package/dist/components/atoms/Badge/Badge.cjs +1 -1
- package/dist/components/atoms/Badge/Badge.js +12 -11
- package/dist/components/atoms/Button/Button.cjs +1 -1
- package/dist/components/atoms/Button/Button.js +9 -8
- package/dist/components/atoms/Card/Card.cjs +1 -1
- package/dist/components/atoms/Card/Card.js +14 -13
- package/dist/components/atoms/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.js +10 -9
- package/dist/components/atoms/Chip/Chip.cjs +1 -1
- package/dist/components/atoms/Chip/Chip.js +1 -0
- package/dist/components/atoms/CollapsibleSection/CollapsibleSection.cjs +1 -1
- package/dist/components/atoms/CollapsibleSection/CollapsibleSection.js +1 -0
- package/dist/components/atoms/Combobox/Combobox.cjs +1 -1
- package/dist/components/atoms/Combobox/Combobox.js +20 -19
- package/dist/components/atoms/Disclosure/Disclosure.cjs +1 -1
- package/dist/components/atoms/Disclosure/Disclosure.js +5 -4
- package/dist/components/atoms/Eyebrow/Eyebrow.cjs +1 -1
- package/dist/components/atoms/Eyebrow/Eyebrow.js +9 -8
- package/dist/components/atoms/InlineCode/InlineCode.cjs +1 -1
- package/dist/components/atoms/InlineCode/InlineCode.js +7 -6
- package/dist/components/atoms/Input/Input.cjs +1 -1
- package/dist/components/atoms/Input/Input.js +12 -11
- package/dist/components/atoms/LabeledDivider/LabeledDivider.cjs +1 -1
- package/dist/components/atoms/LabeledDivider/LabeledDivider.js +6 -5
- package/dist/components/atoms/Link/Link.cjs +1 -1
- package/dist/components/atoms/Link/Link.js +10 -9
- package/dist/components/atoms/LiquidTabs/LiquidTabs.cjs +1 -1
- package/dist/components/atoms/LiquidTabs/LiquidTabs.js +1 -0
- package/dist/components/atoms/MultiSelect/MultiSelect.cjs +1 -1
- package/dist/components/atoms/MultiSelect/MultiSelect.js +1 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/components/atoms/PasswordInput/PasswordInput.js +1 -0
- package/dist/components/atoms/Pill/Pill.cjs +1 -1
- package/dist/components/atoms/Pill/Pill.js +5 -4
- package/dist/components/atoms/SegmentBar/SegmentBar.cjs +1 -1
- package/dist/components/atoms/SegmentBar/SegmentBar.js +1 -0
- package/dist/components/atoms/Select/Select.cjs +1 -1
- package/dist/components/atoms/Select/Select.js +1 -0
- package/dist/components/atoms/Spinner/Spinner.cjs +1 -1
- package/dist/components/atoms/Spinner/Spinner.js +3 -2
- package/dist/components/atoms/Stat/Stat.cjs +1 -1
- package/dist/components/atoms/Stat/Stat.js +7 -6
- package/dist/components/atoms/Switch/Switch.cjs +1 -1
- package/dist/components/atoms/Switch/Switch.js +1 -0
- package/dist/components/atoms/Textarea/Textarea.cjs +1 -1
- package/dist/components/atoms/Textarea/Textarea.js +11 -10
- package/dist/components/atoms/ThemeToggle/ThemeToggle.cjs +1 -1
- package/dist/components/atoms/ThemeToggle/ThemeToggle.js +1 -0
- package/dist/components/atoms/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/atoms/Tooltip/Tooltip.js +4 -3
- package/dist/components/molecules/Accordion/Accordion.cjs +1 -1
- package/dist/components/molecules/Accordion/Accordion.js +5 -4
- package/dist/components/molecules/Alert/Alert.cjs +1 -1
- package/dist/components/molecules/Alert/Alert.js +1 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +4 -3
- package/dist/components/molecules/CallToAction/CallToAction.cjs +1 -1
- package/dist/components/molecules/CallToAction/CallToAction.js +1 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.cjs +1 -1
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.js +7 -6
- package/dist/components/molecules/DescriptionList/DescriptionList.cjs +1 -1
- package/dist/components/molecules/DescriptionList/DescriptionList.js +1 -0
- package/dist/components/molecules/EmptyState/EmptyState.cjs +1 -1
- package/dist/components/molecules/EmptyState/EmptyState.js +1 -0
- package/dist/components/molecules/ErrorState/ErrorState.cjs +1 -1
- package/dist/components/molecules/ErrorState/ErrorState.js +5 -4
- package/dist/components/molecules/MatchupCard/MatchupCard.cjs +1 -1
- package/dist/components/molecules/MatchupCard/MatchupCard.js +1 -0
- package/dist/components/molecules/Pullquote/Pullquote.cjs +1 -1
- package/dist/components/molecules/Pullquote/Pullquote.js +6 -5
- package/dist/components/molecules/RadioGroup/RadioGroup.cjs +1 -1
- package/dist/components/molecules/RadioGroup/RadioGroup.js +1 -0
- package/dist/components/molecules/Toast/Toast.cjs +1 -1
- package/dist/components/molecules/Toast/Toast.js +1 -0
- package/dist/components/molecules/Toast/Toaster.cjs +1 -1
- package/dist/components/molecules/Toast/Toaster.js +1 -0
- package/dist/components/molecules/Toast/toast-api.cjs +1 -1
- package/dist/components/molecules/Toast/toast-api.js +11 -10
- package/dist/components/organisms/ActionBar/ActionBar.cjs +1 -1
- package/dist/components/organisms/ActionBar/ActionBar.js +5 -4
- package/dist/components/organisms/Countdown/Countdown.cjs +1 -1
- package/dist/components/organisms/Countdown/Countdown.js +1 -0
- package/dist/components/organisms/DataTable/DataTable.cjs +1 -1
- package/dist/components/organisms/DataTable/DataTable.js +1 -0
- package/dist/components/organisms/Dialog/Dialog.cjs +1 -1
- package/dist/components/organisms/Dialog/Dialog.js +5 -4
- package/dist/components/organisms/Footer/Footer.cjs +1 -1
- package/dist/components/organisms/Footer/Footer.js +1 -0
- package/dist/components/organisms/Navbar/Navbar.cjs +1 -1
- package/dist/components/organisms/Navbar/Navbar.js +1 -0
- package/dist/components/organisms/Table/Table.cjs +1 -1
- package/dist/components/organisms/Table/Table.js +20 -19
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.js +2 -3
- package/dist/hooks/useCountdown.cjs +1 -1
- package/dist/hooks/useCountdown.js +1 -0
- package/dist/hooks/useKeySequence.cjs +1 -1
- package/dist/hooks/useKeySequence.js +1 -0
- package/dist/internal/PopupOption.cjs +1 -1
- package/dist/internal/PopupOption.js +1 -0
- package/dist/internal/popup.cjs +1 -1
- package/dist/internal/popup.js +8 -7
- package/dist/meta.json +1 -1
- package/dist/roster.cjs +1 -1
- package/dist/roster.js +7 -8
- package/dist/utils.d.ts +11 -8
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("react"),r=require("../../../node_modules/@radix-ui/react-tooltip/dist/index.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("react"),r=require("../../../node_modules/@radix-ui/react-tooltip/dist/index.cjs"),h=require("../../../lib/utils.cjs");function x({content:o,children:n,placement:d="top",variant:e="dark",delayDuration:l=300,defaultOpen:a=!1,className:c}){const[g,s]=i.useState(a),p=i.useCallback(()=>s(u=>!u),[]);return t.jsx(r.Provider,{delayDuration:l,children:t.jsxs(r.Root,{open:g,onOpenChange:s,children:[t.jsx(r.Trigger,{asChild:!0,onClick:p,children:t.jsx("span",{className:"rst:inline-flex rst:items-center rst:cursor-default",tabIndex:0,"data-testid":"tooltip-trigger",children:n})}),t.jsx(r.Portal,{children:t.jsxs(r.Content,{side:d,sideOffset:8,collisionPadding:8,"data-testid":"tooltip-content",className:h.cn("rst:font-ui rst:z-50 rst:max-w-60 rst:rounded-lg rst:px-3 rst:py-2 rst:text-xs rst:leading-snug rst:elevation-anchored","rst:animate-in rst:fade-in-0 rst:zoom-in-95","rst:data-[side=bottom]:slide-in-from-top-2","rst:data-[side=top]:slide-in-from-bottom-2","rst:data-[side=left]:slide-in-from-right-2","rst:data-[side=right]:slide-in-from-left-2",e==="themed"?"rst:bg-[var(--roster-popover-bg)] rst:text-[var(--roster-popover-text)] rst:ring-1 rst:ring-[var(--roster-popover-border)]":e==="dark"?"rst:bg-zinc-900 rst:text-zinc-100 rst:ring-1 rst:ring-white/10":"rst:bg-white rst:text-zinc-900 rst:ring-1 rst:ring-zinc-200",c),children:[o,t.jsx(r.Arrow,{className:e==="themed"?"rst:fill-[var(--roster-popover-bg)]":e==="dark"?"rst:fill-zinc-900":"rst:fill-white",width:12,height:6})]})})]})})}exports.Tooltip=x;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
3
|
import { useState as m, useCallback as f } from "react";
|
|
3
|
-
import { Provider as h, Root as x, Trigger as
|
|
4
|
+
import { Provider as h, Root as x, Trigger as u, Portal as b, Content as v, Arrow as w } from "../../../node_modules/@radix-ui/react-tooltip/dist/index.js";
|
|
4
5
|
import { cn as z } from "../../../lib/utils.js";
|
|
5
6
|
function P({
|
|
6
7
|
content: i,
|
|
@@ -13,7 +14,7 @@ function P({
|
|
|
13
14
|
}) {
|
|
14
15
|
const [c, e] = m(a), p = f(() => e((g) => !g), []);
|
|
15
16
|
return /* @__PURE__ */ t(h, { delayDuration: d, children: /* @__PURE__ */ s(x, { open: c, onOpenChange: e, children: [
|
|
16
|
-
/* @__PURE__ */ t(
|
|
17
|
+
/* @__PURE__ */ t(u, { asChild: !0, onClick: p, children: /* @__PURE__ */ t(
|
|
17
18
|
"span",
|
|
18
19
|
{
|
|
19
20
|
className: "rst:inline-flex rst:items-center rst:cursor-default",
|
|
@@ -22,7 +23,7 @@ function P({
|
|
|
22
23
|
children: o
|
|
23
24
|
}
|
|
24
25
|
) }),
|
|
25
|
-
/* @__PURE__ */ t(
|
|
26
|
+
/* @__PURE__ */ t(b, { children: /* @__PURE__ */ s(
|
|
26
27
|
v,
|
|
27
28
|
{
|
|
28
29
|
side: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),x=require("../../../lib/utils.cjs"),h=require("../../atoms/Disclosure/Disclosure.cjs"),j=({items:c,allowMultiple:
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),x=require("../../../lib/utils.cjs"),h=require("../../atoms/Disclosure/Disclosure.cjs"),j=({items:c,allowMultiple:l=!1,variant:o="soft",className:i,showDividers:a=!1,defaultOpenIds:u=[]})=>{const[d,g]=p.useState(new Set(u)),f=e=>{g(r=>{const s=new Set(r),n=s.has(e);return l?n?s.delete(e):s.add(e):(s.clear(),n||s.add(e)),s})};return t.jsx("div",{className:x.cn("rst:font-ui rst:w-full rst:space-y-1",i),children:c.map((e,r)=>t.jsxs("div",{className:"rst:relative",children:[a&&r>0&&t.jsx("div",{className:"rst:mx-4 rst:h-px rst:bg-gray-200/50 rst:dark:bg-gray-700/50 rst:transition-colors rst:mb-1"}),t.jsx(h.Disclosure,{title:e.title,variant:o,isOpen:d.has(e.id),onToggle:()=>f(e.id),children:e.content})]},e.id))})};exports.Accordion=j;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as r, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cn as
|
|
3
|
+
import { useState as u } from "react";
|
|
4
|
+
import { cn as h } from "../../../lib/utils.js";
|
|
4
5
|
import { Disclosure as x } from "../../atoms/Disclosure/Disclosure.js";
|
|
5
6
|
const N = ({
|
|
6
7
|
items: o,
|
|
@@ -10,7 +11,7 @@ const N = ({
|
|
|
10
11
|
showDividers: i = !1,
|
|
11
12
|
defaultOpenIds: d = []
|
|
12
13
|
}) => {
|
|
13
|
-
const [f, m] =
|
|
14
|
+
const [f, m] = u(
|
|
14
15
|
new Set(d)
|
|
15
16
|
), p = (s) => {
|
|
16
17
|
m((t) => {
|
|
@@ -18,7 +19,7 @@ const N = ({
|
|
|
18
19
|
return l ? n ? e.delete(s) : e.add(s) : (e.clear(), n || e.add(s)), e;
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
|
-
return /* @__PURE__ */ r("div", { className:
|
|
22
|
+
return /* @__PURE__ */ r("div", { className: h("rst:font-ui rst:w-full rst:space-y-1", c), children: o.map((s, t) => /* @__PURE__ */ g("div", { className: "rst:relative", children: [
|
|
22
23
|
i && t > 0 && /* @__PURE__ */ r("div", { className: "rst:mx-4 rst:h-px rst:bg-gray-200/50 rst:dark:bg-gray-700/50 rst:transition-colors rst:mb-1" }),
|
|
23
24
|
/* @__PURE__ */ r(
|
|
24
25
|
x,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("react"),o=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),r=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),c=require("../../../lib/utils.cjs"),v=require("./alert-variants.cjs"),b={error:r.faCircleExclamation,success:r.faCircleCheck,amber:r.faTriangleExclamation,info:r.faCircleInfo,primary:r.faCircleInfo,neutral:r.faCircleInfo,current:r.faCircleInfo},l=p.forwardRef(({colorScheme:e="error",surface:u,title:t,children:d,icon:i,onDismiss:a,dismissLabel:f="Dismiss",className:m,...x},h)=>{const n=e==="error";return s.jsxs("div",{ref:h,role:n?"alert":"status","aria-live":n?"assertive":"polite",className:c.cn(v.alertVariants({colorScheme:e,surface:u}),m),...x,children:[i===void 0?s.jsx(o.FontAwesomeIcon,{icon:b[e??"error"],className:"rst:mt-0.5 rst:h-4 rst:w-4 rst:shrink-0","aria-hidden":"true"}):i,s.jsxs("div",{className:"rst:min-w-0 rst:flex-1",children:[t&&s.jsx("p",{className:"rst:font-semibold",children:t}),s.jsx("div",{className:c.cn("rst:min-w-0",t&&"rst:mt-0.5 rst:opacity-90"),children:d})]}),a&&s.jsx("button",{type:"button",onClick:a,"aria-label":f,className:"rst:-m-1 rst:shrink-0 rst:rounded rst:p-1 rst:opacity-60 rst:transition-opacity rst:hover:opacity-100 rst:focus:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring",children:s.jsx(o.FontAwesomeIcon,{icon:r.faXmark,className:"rst:h-3.5 rst:w-3.5","aria-hidden":"true"})})]})});l.displayName="Alert";exports.Alert=l;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("react"),o=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),r=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),c=require("../../../lib/utils.cjs"),v=require("./alert-variants.cjs"),b={error:r.faCircleExclamation,success:r.faCircleCheck,amber:r.faTriangleExclamation,info:r.faCircleInfo,primary:r.faCircleInfo,neutral:r.faCircleInfo,current:r.faCircleInfo},l=p.forwardRef(({colorScheme:e="error",surface:u,title:t,children:d,icon:i,onDismiss:a,dismissLabel:f="Dismiss",className:m,...x},h)=>{const n=e==="error";return s.jsxs("div",{ref:h,role:n?"alert":"status","aria-live":n?"assertive":"polite",className:c.cn(v.alertVariants({colorScheme:e,surface:u}),m),...x,children:[i===void 0?s.jsx(o.FontAwesomeIcon,{icon:b[e??"error"],className:"rst:mt-0.5 rst:h-4 rst:w-4 rst:shrink-0","aria-hidden":"true"}):i,s.jsxs("div",{className:"rst:min-w-0 rst:flex-1",children:[t&&s.jsx("p",{className:"rst:font-semibold",children:t}),s.jsx("div",{className:c.cn("rst:min-w-0",t&&"rst:mt-0.5 rst:opacity-90"),children:d})]}),a&&s.jsx("button",{type:"button",onClick:a,"aria-label":f,className:"rst:-m-1 rst:shrink-0 rst:rounded rst:p-1 rst:opacity-60 rst:transition-opacity rst:hover:opacity-100 rst:focus:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring",children:s.jsx(o.FontAwesomeIcon,{icon:r.faXmark,className:"rst:h-3.5 rst:w-3.5","aria-hidden":"true"})})]})});l.displayName="Alert";exports.Alert=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("react");const j=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),N=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),s=require("../../../lib/utils.cjs"),o=require("./breadcrumb-variants.cjs"),p=require("../../atoms/Link/Link.cjs"),g=({items:c,separator:d,showHomeIcon:m,homeHref:u="/",linkComponent:x,currentClassName:h,variant:t,className:b,...f})=>{const l=x??p.Link,i=d??e.jsx("span",{className:"rst:text-gray-300 rst:dark:text-gray-600 rst:text-sm rst:transition-colors",children:"/"});return e.jsx("nav",{"aria-label":"Breadcrumb",className:s.cn("rst:flex",b),...f,children:e.jsxs("ol",{className:"rst:flex rst:items-center rst:space-x-2",children:[m&&e.jsxs("li",{className:"rst:flex rst:items-center",children:[e.jsx(l,{href:u,className:s.cn(o.breadcrumbVariants({variant:t}),"rst:hover:no-underline"),"aria-label":"Home",children:e.jsx(j.FontAwesomeIcon,{icon:N.faHome,className:"rst:h-4 rst:w-4"})}),e.jsx("span",{className:"rst:ml-2 rst:flex rst:select-none rst:items-center","aria-hidden":"true",children:i})]}),c.map((r,a)=>{const n=a===c.length-1;return e.jsxs("li",{className:"rst:flex rst:items-center",children:[a>0&&e.jsx("span",{className:"rst:mr-2 rst:flex rst:select-none rst:items-center","aria-hidden":"true",children:i}),n||!r.href?e.jsx("span",{className:s.cn("rst:font-semibold rst:text-sm rst:cursor-default rst:transition-colors",t==="inverse"?"rst:text-white":"rst:text-gray-900 rst:dark:text-gray-100",n&&h,r.className),"aria-current":n?"page":void 0,children:r.label}):e.jsx(l,{href:r.href,className:s.cn(o.breadcrumbVariants({variant:t}),"rst:hover:underline",r.className),children:r.label})]},a)})]})})};exports.Breadcrumbs=g;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
3
|
import "react";
|
|
3
4
|
import { FontAwesomeIcon as b } from "../../../node_modules/@fortawesome/react-fontawesome/dist/index.js";
|
|
@@ -13,11 +14,11 @@ const I = ({
|
|
|
13
14
|
linkComponent: p,
|
|
14
15
|
currentClassName: x,
|
|
15
16
|
variant: t,
|
|
16
|
-
className:
|
|
17
|
-
...
|
|
17
|
+
className: u,
|
|
18
|
+
...N
|
|
18
19
|
}) => {
|
|
19
20
|
const o = p ?? y, m = d ?? /* @__PURE__ */ r("span", { className: "rst:text-gray-300 rst:dark:text-gray-600 rst:text-sm rst:transition-colors", children: "/" });
|
|
20
|
-
return /* @__PURE__ */ r("nav", { "aria-label": "Breadcrumb", className: e("rst:flex",
|
|
21
|
+
return /* @__PURE__ */ r("nav", { "aria-label": "Breadcrumb", className: e("rst:flex", u), ...N, children: /* @__PURE__ */ n("ol", { className: "rst:flex rst:items-center rst:space-x-2", children: [
|
|
21
22
|
h && /* @__PURE__ */ n("li", { className: "rst:flex rst:items-center", children: [
|
|
22
23
|
/* @__PURE__ */ r(
|
|
23
24
|
o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const o=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),m=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),x=require("../../../lib/utils.cjs"),d=require("./call-to-action-variants.cjs"),u=require("../../atoms/Button/Button.cjs"),h=({title:a,description:r,action:s,icon:e,variant:i,onDismiss:l,className:c,...n})=>t.jsx("div",{className:x.cn(d.ctaVariants({variant:i}),c),...n,children:t.jsxs("div",{className:"rst:flex rst:flex-col rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-center rst:@[32rem]:justify-between",children:[t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-center rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-start",children:[e&&t.jsx("div",{className:"rst:shrink-0 rst:text-current rst:@[32rem]:mt-1",children:e}),t.jsxs("div",{className:"rst:flex rst:min-w-0 rst:flex-col rst:gap-1.5 rst:w-full",children:[t.jsx("h3",{className:"rst:text-lg rst:font-bold rst:leading-tight rst:tracking-tight rst:text-current",children:a}),r&&t.jsx("div",{className:"rst:max-w-prose rst:text-sm rst:leading-relaxed rst:text-current rst:opacity-90 rst:dark:opacity-80",children:r})]})]}),s&&t.jsx("div",{className:"rst:flex rst:w-full rst:shrink-0 rst:pt-2 rst:[&>*]:w-full rst:@[32rem]:w-auto rst:@[32rem]:pt-0 rst:@[32rem]:[&>*]:w-auto",children:s}),l&&t.jsx("div",{className:"rst:absolute rst:right-2 rst:top-2",children:t.jsx(u.Button,{variant:"ghost",size:"sm",className:"rst:h-8 rst:w-8 rst:rounded-full rst:p-0 rst:opacity-60 rst:hover:opacity-100 rst:dark:hover:bg-black/20",onClick:l,"aria-label":"Dismiss",children:t.jsx(o.FontAwesomeIcon,{icon:m.faXmark,className:"rst:h-4 rst:w-4"})})})]})});exports.CallToAction=h;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const o=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),m=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),x=require("../../../lib/utils.cjs"),d=require("./call-to-action-variants.cjs"),u=require("../../atoms/Button/Button.cjs"),h=({title:a,description:r,action:s,icon:e,variant:i,onDismiss:l,className:c,...n})=>t.jsx("div",{className:x.cn(d.ctaVariants({variant:i}),c),...n,children:t.jsxs("div",{className:"rst:flex rst:flex-col rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-center rst:@[32rem]:justify-between",children:[t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-center rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-start",children:[e&&t.jsx("div",{className:"rst:shrink-0 rst:text-current rst:@[32rem]:mt-1",children:e}),t.jsxs("div",{className:"rst:flex rst:min-w-0 rst:flex-col rst:gap-1.5 rst:w-full",children:[t.jsx("h3",{className:"rst:text-lg rst:font-bold rst:leading-tight rst:tracking-tight rst:text-current",children:a}),r&&t.jsx("div",{className:"rst:max-w-prose rst:text-sm rst:leading-relaxed rst:text-current rst:opacity-90 rst:dark:opacity-80",children:r})]})]}),s&&t.jsx("div",{className:"rst:flex rst:w-full rst:shrink-0 rst:pt-2 rst:[&>*]:w-full rst:@[32rem]:w-auto rst:@[32rem]:pt-0 rst:@[32rem]:[&>*]:w-auto",children:s}),l&&t.jsx("div",{className:"rst:absolute rst:right-2 rst:top-2",children:t.jsx(u.Button,{variant:"ghost",size:"sm",className:"rst:h-8 rst:w-8 rst:rounded-full rst:p-0 rst:opacity-60 rst:hover:opacity-100 rst:dark:hover:bg-black/20",onClick:l,"aria-label":"Dismiss",children:t.jsx(o.FontAwesomeIcon,{icon:m.faXmark,className:"rst:h-4 rst:w-4"})})})]})});exports.CallToAction=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),A=require("react"),B=require("../../../node_modules/@headlessui/react/dist/components/description/description.cjs"),D=require("../../../node_modules/@headlessui/react/dist/components/field/field.cjs"),y=require("../../../node_modules/@headlessui/react/dist/components/fieldset/fieldset.cjs"),F=require("../../../node_modules/@headlessui/react/dist/components/label/label.cjs"),g=require("../../../node_modules/@headlessui/react/dist/components/legend/legend.cjs"),e=require("../../../lib/utils.cjs"),P=require("../../atoms/Checkbox/Checkbox.cjs"),R=require("../../atoms/Eyebrow/Eyebrow.cjs"),h=require("./checkbox-group-variants.cjs"),V=t=>t.length>0&&Array.isArray(t[0].options),Z={sm:"rst:text-xs",md:"rst:text-sm",lg:"rst:text-base"},_=({options:t,value:a,onChange:p,label:b,helperText:o,errorMessage:i,maxHeight:u,disabled:n=!1,variant:v,size:c="md",columns:j,colorScheme:k,className:N,optionsClassName:q,panelClassName:w,"aria-describedby":G,"aria-invalid":C,...E})=>{const l=!!i,d=u!==void 0,m=A.useId(),L=[G,o||i?m:void 0].filter(Boolean).join(" ")||void 0,I=(s,x)=>{p(x?[...a,s]:a.filter(S=>S!==s))},O=s=>r.jsxs(D.Field,{disabled:n||s.disabled,className:"rst:flex rst:items-start rst:gap-2",children:[r.jsx(P.Checkbox,{size:c??"md",colorScheme:k,checked:a.includes(s.value),onChange:x=>I(s.value,x),className:"rst:mt-0.5 rst:shrink-0"}),r.jsxs("div",{className:"rst:flex rst:min-w-0 rst:flex-col",children:[r.jsx(F.Label,{className:e.cn("rst:cursor-pointer rst:select-none rst:px-1 rst:py-0.5","rst:text-[var(--roster-control-text)]","rst:data-disabled:cursor-not-allowed rst:data-disabled:opacity-50",Z[c??"md"]),children:s.label}),s.description&&r.jsx(B.Description,{className:"rst:px-1 rst:text-xs rst:text-gray-500 rst:dark:text-gray-400 rst:data-disabled:opacity-50",children:s.description})]})]},s.value),f=s=>r.jsx("div",{className:e.cn(h.checkboxGroupOptionsVariants({columns:j,size:c})),children:s.map(O)});return r.jsxs(y.Fieldset,{disabled:n,className:e.cn("rst:font-ui rst:flex rst:flex-col rst:gap-1.5 rst:min-w-0",N),...E,"aria-invalid":l||C||void 0,"aria-describedby":L,children:[b&&r.jsx(g.Legend,{className:"rst:block rst:text-sm rst:font-medium rst:text-[var(--roster-control-text)] rst:text-left rst:data-disabled:opacity-50",children:b}),r.jsx("div",{className:e.cn(h.checkboxGroupPanelVariants({variant:v,size:c,error:l}),d&&"rst:overflow-y-auto rst:custom-scrollbar rst:focus-visible:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:focus-visible:ring-offset-2 rst:ring-offset-background",w,q),style:d?{maxHeight:u}:void 0,tabIndex:d?0:void 0,children:V(t)?t.map(s=>r.jsxs(y.Fieldset,{className:"rst:flex rst:flex-col rst:gap-2",children:[r.jsx(g.Legend,{as:R.Eyebrow,weight:"semibold",tone:"default",className:"rst:border-b rst:border-gray-200 rst:pb-1 rst:dark:border-gray-800",children:s.category}),f(s.options)]},s.category)):f(t)}),(o||i)&&r.jsx("p",{id:m,className:e.cn("rst:text-xs rst:text-left",l?"rst:text-error-600 rst:dark:text-error-400 rst:font-medium":"rst:text-gray-500 rst:dark:text-gray-400",n&&"rst:opacity-50"),children:i||o})]})};exports.CheckboxGroup=_;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import O from "react";
|
|
3
4
|
import { Description as _ } from "../../../node_modules/@headlessui/react/dist/components/description/description.js";
|
|
4
5
|
import { Field as F } from "../../../node_modules/@headlessui/react/dist/components/field/field.js";
|
|
5
|
-
import { Fieldset as
|
|
6
|
+
import { Fieldset as y } from "../../../node_modules/@headlessui/react/dist/components/fieldset/fieldset.js";
|
|
6
7
|
import { Label as S } from "../../../node_modules/@headlessui/react/dist/components/label/label.js";
|
|
7
8
|
import { Legend as h } from "../../../node_modules/@headlessui/react/dist/components/legend/legend.js";
|
|
8
9
|
import { cn as e } from "../../../lib/utils.js";
|
|
@@ -71,9 +72,9 @@ const W = (s) => s.length > 0 && Array.isArray(s[0].options), q = {
|
|
|
71
72
|
]
|
|
72
73
|
},
|
|
73
74
|
r.value
|
|
74
|
-
),
|
|
75
|
+
), u = (r) => /* @__PURE__ */ t("div", { className: e(V({ columns: k, size: o })), children: r.map(C) });
|
|
75
76
|
return /* @__PURE__ */ i(
|
|
76
|
-
|
|
77
|
+
y,
|
|
77
78
|
{
|
|
78
79
|
disabled: l,
|
|
79
80
|
className: e(
|
|
@@ -108,7 +109,7 @@ const W = (s) => s.length > 0 && Array.isArray(s[0].options), q = {
|
|
|
108
109
|
`as={Eyebrow}` overrides Legend's own `as="div"` — it is
|
|
109
110
|
spread after — so these render as <span>. The registration is
|
|
110
111
|
what matters and it is unchanged. */
|
|
111
|
-
/* @__PURE__ */ i(
|
|
112
|
+
/* @__PURE__ */ i(y, { className: "rst:flex rst:flex-col rst:gap-2", children: [
|
|
112
113
|
/* @__PURE__ */ t(
|
|
113
114
|
h,
|
|
114
115
|
{
|
|
@@ -119,9 +120,9 @@ const W = (s) => s.length > 0 && Array.isArray(s[0].options), q = {
|
|
|
119
120
|
children: r.category
|
|
120
121
|
}
|
|
121
122
|
),
|
|
122
|
-
|
|
123
|
+
u(r.options)
|
|
123
124
|
] }, r.category)
|
|
124
|
-
)) :
|
|
125
|
+
)) : u(s)
|
|
125
126
|
}
|
|
126
127
|
),
|
|
127
128
|
(d || a) && /* @__PURE__ */ t(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),m=require("react"),e=require("../../../lib/utils.cjs"),u=require("./description-list-variants.cjs"),i=m.forwardRef(({items:n,layout:a,size:d,dividers:l=!1,className:o,...x},g)=>r.jsx("dl",{ref:g,className:e.cn(u.descriptionListVariants({layout:a,size:d}),o),...x,children:n.map((t,s)=>{const p=s===n.length-1,c=l&&!p?"rst:border-b rst:border-gray-200 rst:pb-1.5 rst:dark:border-gray-800":"";return a==="stacked"?r.jsxs("div",{className:e.cn("rst:flex rst:flex-col rst:gap-0.5",c),children:[r.jsx("dt",{className:"rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s):a==="split"?r.jsxs("div",{className:e.cn("rst:flex rst:items-baseline rst:justify-between rst:gap-4",c),children:[r.jsx("dt",{className:"rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-right rst:tabular-nums rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s):r.jsxs("div",{className:e.cn("rst:contents",c),children:[r.jsx("dt",{className:"rst:whitespace-nowrap rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s)})}));i.displayName="DescriptionList";exports.DescriptionList=i;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),m=require("react"),e=require("../../../lib/utils.cjs"),u=require("./description-list-variants.cjs"),i=m.forwardRef(({items:n,layout:a,size:d,dividers:l=!1,className:o,...x},g)=>r.jsx("dl",{ref:g,className:e.cn(u.descriptionListVariants({layout:a,size:d}),o),...x,children:n.map((t,s)=>{const p=s===n.length-1,c=l&&!p?"rst:border-b rst:border-gray-200 rst:pb-1.5 rst:dark:border-gray-800":"";return a==="stacked"?r.jsxs("div",{className:e.cn("rst:flex rst:flex-col rst:gap-0.5",c),children:[r.jsx("dt",{className:"rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s):a==="split"?r.jsxs("div",{className:e.cn("rst:flex rst:items-baseline rst:justify-between rst:gap-4",c),children:[r.jsx("dt",{className:"rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-right rst:tabular-nums rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s):r.jsxs("div",{className:e.cn("rst:contents",c),children:[r.jsx("dt",{className:"rst:whitespace-nowrap rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s)})}));i.displayName="DescriptionList";exports.DescriptionList=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const c=require("../../../lib/utils.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const c=require("../../../lib/utils.cjs"),n=require("./empty-state-variants.cjs"),d=({title:a,description:r,icon:s,action:e,variant:l,className:i,...m})=>t.jsxs("div",{className:c.cn(n.emptyStateVariants({variant:l}),i),...m,children:[s&&t.jsx("div",{className:"rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-gray-100 rst:text-gray-400 rst:dark:bg-gray-800 rst:dark:text-gray-500",children:t.jsx("div",{className:"rst:h-6 rst:w-6 rst:[&>svg]:h-full rst:[&>svg]:w-full",children:s})}),t.jsx("h3",{className:"rst:text-lg rst:font-semibold rst:text-gray-900 rst:dark:text-gray-100",children:a}),r&&t.jsx("p",{className:"rst:mt-1 rst:max-w-sm rst:text-sm rst:text-gray-500 rst:dark:text-gray-400",children:r}),e&&t.jsx("div",{className:"rst:mt-6",children:e})]});exports.EmptyState=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");const d=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),u=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),n=require("../../../lib/utils.cjs"),x=require("./error-state-variants.cjs"),m=require("../../atoms/Button/Button.cjs"),h=({title:c="An Error Occurred",description:i,onRetry:e,action:s,icon:l,variant:t,className:a,...o})=>r.jsxs("div",{className:n.cn(x.errorStateVariants({variant:t}),a),...o,children:[r.jsx("div",{className:"rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-error-100 rst:text-error-600 rst:dark:bg-error-500/15 rst:dark:text-error-400",children:r.jsx("div",{className:"rst:h-6 rst:w-6 rst:flex rst:items-center rst:justify-center",children:l||r.jsx(d.FontAwesomeIcon,{icon:u.faTriangleExclamation,className:"rst:h-full rst:w-full"})})}),r.jsx("h3",{className:"rst:text-lg rst:font-bold rst:tracking-tight",children:c}),r.jsx("p",{className:n.cn("rst:mt-2 rst:text-sm rst:leading-relaxed",t==="card"?"rst:text-error-800/80 rst:dark:text-error-200/80":"rst:text-gray-500 rst:dark:text-gray-400"),children:i}),r.jsx("div",{className:"rst:mt-6",children:s||(e?r.jsx(m.Button,{onClick:e,colorScheme:"error",variant:t==="card"?"outline":"solid",children:"Try Again"}):null)})]});exports.ErrorState=h;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");const d=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),u=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),n=require("../../../lib/utils.cjs"),x=require("./error-state-variants.cjs"),m=require("../../atoms/Button/Button.cjs"),h=({title:c="An Error Occurred",description:i,onRetry:e,action:s,icon:l,variant:t,className:a,...o})=>r.jsxs("div",{className:n.cn(x.errorStateVariants({variant:t}),a),...o,children:[r.jsx("div",{className:"rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-error-100 rst:text-error-600 rst:dark:bg-error-500/15 rst:dark:text-error-400",children:r.jsx("div",{className:"rst:h-6 rst:w-6 rst:flex rst:items-center rst:justify-center",children:l||r.jsx(d.FontAwesomeIcon,{icon:u.faTriangleExclamation,className:"rst:h-full rst:w-full"})})}),r.jsx("h3",{className:"rst:text-lg rst:font-bold rst:tracking-tight",children:c}),r.jsx("p",{className:n.cn("rst:mt-2 rst:text-sm rst:leading-relaxed",t==="card"?"rst:text-error-800/80 rst:dark:text-error-200/80":"rst:text-gray-500 rst:dark:text-gray-400"),children:i}),r.jsx("div",{className:"rst:mt-6",children:s||(e?r.jsx(m.Button,{onClick:e,colorScheme:"error",variant:t==="card"?"outline":"solid",children:"Try Again"}):null)})]});exports.ErrorState=h;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import "react";
|
|
3
4
|
import { FontAwesomeIcon as d } from "../../../node_modules/@fortawesome/react-fontawesome/dist/index.js";
|
|
@@ -7,15 +8,15 @@ import { errorStateVariants as x } from "./error-state-variants.js";
|
|
|
7
8
|
import { Button as h } from "../../atoms/Button/Button.js";
|
|
8
9
|
const w = ({
|
|
9
10
|
title: l = "An Error Occurred",
|
|
10
|
-
description:
|
|
11
|
+
description: i,
|
|
11
12
|
onRetry: e,
|
|
12
13
|
action: s,
|
|
13
|
-
icon:
|
|
14
|
+
icon: a,
|
|
14
15
|
variant: t,
|
|
15
16
|
className: c,
|
|
16
17
|
...m
|
|
17
18
|
}) => /* @__PURE__ */ n("div", { className: o(x({ variant: t }), c), ...m, children: [
|
|
18
|
-
/* @__PURE__ */ r("div", { className: "rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-error-100 rst:text-error-600 rst:dark:bg-error-500/15 rst:dark:text-error-400", children: /* @__PURE__ */ r("div", { className: "rst:h-6 rst:w-6 rst:flex rst:items-center rst:justify-center", children:
|
|
19
|
+
/* @__PURE__ */ r("div", { className: "rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-error-100 rst:text-error-600 rst:dark:bg-error-500/15 rst:dark:text-error-400", children: /* @__PURE__ */ r("div", { className: "rst:h-6 rst:w-6 rst:flex rst:items-center rst:justify-center", children: a || /* @__PURE__ */ r(
|
|
19
20
|
d,
|
|
20
21
|
{
|
|
21
22
|
icon: f,
|
|
@@ -30,7 +31,7 @@ const w = ({
|
|
|
30
31
|
"rst:mt-2 rst:text-sm rst:leading-relaxed",
|
|
31
32
|
t === "card" ? "rst:text-error-800/80 rst:dark:text-error-200/80" : "rst:text-gray-500 rst:dark:text-gray-400"
|
|
32
33
|
),
|
|
33
|
-
children:
|
|
34
|
+
children: i
|
|
34
35
|
}
|
|
35
36
|
),
|
|
36
37
|
/* @__PURE__ */ r("div", { className: "rst:mt-6", children: s || (e ? /* @__PURE__ */ r(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),d=require("../../../node_modules/class-variance-authority/dist/index.cjs"),a=require("../../../lib/utils.cjs"),l=d.cva("rst:flex rst:items-center rst:gap-2 rst:transition-all",{variants:{state:{default:"",winner:"",loser:"rst:opacity-50 rst:grayscale",tie:""}},defaultVariants:{state:"default"}}),o=d.cva("rst:h-8 rst:w-8 rst:object-contain rst:transition-all rst:rounded-full",{variants:{state:{default:"",winner:"rst:ring-2 rst:ring-success-500 rst:bg-success-200/25",loser:"",tie:"rst:ring-2 rst:ring-gray-400"}},defaultVariants:{state:"default"}}),x=p.forwardRef(({awayTeam:s,homeTeam:r,isCompleted:e=!1,isTie:u=!1,className:f,...g},j)=>{const n=v=>e?u?"tie":v.isWinner?"winner":"loser":"default",c=n(s),i=n(r);return t.jsxs("button",{ref:j,type:"button",className:a.cn("rst:flex rst:items-center rst:gap-3 rst:rounded-lg rst:p-2 rst:text-left rst:transition rst:hover:bg-gray-100 rst:dark:hover:bg-slate-800",f),...g,children:[t.jsxs("div",{className:l({state:c}),children:[t.jsx("div",{className:"rst:relative",children:t.jsx("img",{src:s.logoSrc,alt:s.name||`Team ${s.id}`,className:o({state:c})})}),t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-end",children:[s.accessory&&t.jsx("span",{className:a.cn("rst:text-sm rst:text-gray-800 rst:dark:text-gray-300",s.isWinner&&"rst:font-bold"),children:s.accessory}),e&&s.score!==void 0&&t.jsx("span",{className:"rst:text-xs rst:font-mono rst:font-semibold rst:text-gray-900 rst:dark:text-white",children:s.score})]})]}),t.jsx("span",{className:"rst:text-xs rst:font-medium rst:text-gray-500 rst:self-center rst:px-1",children:e?"-":"@"}),t.jsxs("div",{className:l({state:i}),children:[t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-start",children:[r.accessory&&t.jsx("span",{className:a.cn("rst:text-sm rst:text-gray-800 rst:dark:text-gray-300",r.isWinner&&"rst:font-bold"),children:r.accessory}),e&&r.score!==void 0&&t.jsx("span",{className:"rst:text-xs rst:font-mono rst:font-semibold rst:text-gray-900 rst:dark:text-white",children:r.score})]}),t.jsx("div",{className:"rst:relative",children:t.jsx("img",{src:r.logoSrc,alt:r.name||`Team ${r.id}`,className:o({state:i})})})]})]})});x.displayName="MatchupCard";exports.MatchupCard=x;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),d=require("../../../node_modules/class-variance-authority/dist/index.cjs"),a=require("../../../lib/utils.cjs"),l=d.cva("rst:flex rst:items-center rst:gap-2 rst:transition-all",{variants:{state:{default:"",winner:"",loser:"rst:opacity-50 rst:grayscale",tie:""}},defaultVariants:{state:"default"}}),o=d.cva("rst:h-8 rst:w-8 rst:object-contain rst:transition-all rst:rounded-full",{variants:{state:{default:"",winner:"rst:ring-2 rst:ring-success-500 rst:bg-success-200/25",loser:"",tie:"rst:ring-2 rst:ring-gray-400"}},defaultVariants:{state:"default"}}),x=p.forwardRef(({awayTeam:s,homeTeam:r,isCompleted:e=!1,isTie:u=!1,className:f,...g},j)=>{const n=v=>e?u?"tie":v.isWinner?"winner":"loser":"default",c=n(s),i=n(r);return t.jsxs("button",{ref:j,type:"button",className:a.cn("rst:flex rst:items-center rst:gap-3 rst:rounded-lg rst:p-2 rst:text-left rst:transition rst:hover:bg-gray-100 rst:dark:hover:bg-slate-800",f),...g,children:[t.jsxs("div",{className:l({state:c}),children:[t.jsx("div",{className:"rst:relative",children:t.jsx("img",{src:s.logoSrc,alt:s.name||`Team ${s.id}`,className:o({state:c})})}),t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-end",children:[s.accessory&&t.jsx("span",{className:a.cn("rst:text-sm rst:text-gray-800 rst:dark:text-gray-300",s.isWinner&&"rst:font-bold"),children:s.accessory}),e&&s.score!==void 0&&t.jsx("span",{className:"rst:text-xs rst:font-mono rst:font-semibold rst:text-gray-900 rst:dark:text-white",children:s.score})]})]}),t.jsx("span",{className:"rst:text-xs rst:font-medium rst:text-gray-500 rst:self-center rst:px-1",children:e?"-":"@"}),t.jsxs("div",{className:l({state:i}),children:[t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-start",children:[r.accessory&&t.jsx("span",{className:a.cn("rst:text-sm rst:text-gray-800 rst:dark:text-gray-300",r.isWinner&&"rst:font-bold"),children:r.accessory}),e&&r.score!==void 0&&t.jsx("span",{className:"rst:text-xs rst:font-mono rst:font-semibold rst:text-gray-900 rst:dark:text-white",children:r.score})]}),t.jsx("div",{className:"rst:relative",children:t.jsx("img",{src:r.logoSrc,alt:r.name||`Team ${r.id}`,className:o({state:i})})})]})]})});x.displayName="MatchupCard";exports.MatchupCard=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),m=require("../../../lib/utils.cjs"),x=require("./pullquote-variants.cjs"),r=c.forwardRef(({children:s,cite:e,citeUrl:a,variant:l,colorScheme:
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),m=require("../../../lib/utils.cjs"),x=require("./pullquote-variants.cjs"),r=c.forwardRef(({children:s,cite:e,citeUrl:a,variant:l,colorScheme:u,className:n,...o},i)=>t.jsxs("figure",{ref:i,className:m.cn(x.pullquoteVariants({variant:l,colorScheme:u}),n),...o,children:[t.jsx("blockquote",{cite:a,className:"rst:m-0 rst:max-w-[48ch] rst:text-[1.03125rem] rst:leading-[1.5] rst:text-gray-900 rst:dark:text-gray-100",children:s}),e&&t.jsx("figcaption",{className:"rst:mt-[7px] rst:font-mono rst:text-[0.625rem] rst:uppercase rst:leading-none rst:tracking-[0.14em] rst:text-gray-500 rst:dark:text-gray-400",children:e})]}));r.displayName="Pullquote";exports.Pullquote=r;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import n from "react";
|
|
3
4
|
import { cn as p } from "../../../lib/utils.js";
|
|
4
|
-
import { pullquoteVariants as
|
|
5
|
-
const
|
|
5
|
+
import { pullquoteVariants as u } from "./pullquote-variants.js";
|
|
6
|
+
const x = n.forwardRef(
|
|
6
7
|
({ children: e, cite: t, citeUrl: s, variant: a, colorScheme: o, className: m, ...l }, i) => /* @__PURE__ */ c(
|
|
7
8
|
"figure",
|
|
8
9
|
{
|
|
9
10
|
ref: i,
|
|
10
|
-
className: p(
|
|
11
|
+
className: p(u({ variant: a, colorScheme: o }), m),
|
|
11
12
|
...l,
|
|
12
13
|
children: [
|
|
13
14
|
/* @__PURE__ */ r(
|
|
@@ -23,7 +24,7 @@ const f = n.forwardRef(
|
|
|
23
24
|
}
|
|
24
25
|
)
|
|
25
26
|
);
|
|
26
|
-
|
|
27
|
+
x.displayName = "Pullquote";
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
x as Pullquote
|
|
29
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const u=require("../../../node_modules/@headlessui/react/dist/components/description/description.cjs"),w=require("../../../node_modules/@headlessui/react/dist/components/field/field.cjs"),m=require("../../../node_modules/@headlessui/react/dist/components/label/label.cjs"),p=require("../../../node_modules/@headlessui/react/dist/components/radio-group/radio-group.cjs"),r=require("../../../lib/utils.cjs"),c=require("./radio-group-variants.cjs"),L={sm:"rst:text-xs",md:"rst:text-sm",lg:"rst:text-base"},D=({options:f,value:v,onChange:y,label:n,helperText:d,errorMessage:l,disabled:e=!1,size:j="md",orientation:i="vertical",colorScheme:b,className:N,optionsClassName:h,optionClassName:q,radioClassName:g,labelClassName:G,optionLabelClassName:z,descriptionClassName:R,messageClassName:S,"aria-invalid":V,...k})=>{const x=!!l,a=j??"md";return t.jsxs(p.RadioGroup,{value:v,onChange:y,disabled:e,className:r.cn("rst:font-ui rst:flex rst:flex-col rst:gap-1.5 rst:min-w-0",N),...k,"aria-invalid":x||V||void 0,"aria-orientation":i,children:[n&&t.jsx(m.Label,{className:r.cn("rst:block rst:text-sm rst:font-medium rst:text-[var(--roster-control-text)] rst:text-left",e&&"rst:opacity-50",G),children:n}),t.jsx("div",{className:r.cn(c.radioGroupOptionsVariants({size:a,orientation:i}),h),children:f.map(s=>t.jsxs(w.Field,{disabled:e||s.disabled,className:r.cn(c.radioOptionVariants({orientation:i,size:a}),q),children:[t.jsx(p.Radio,{value:s.value,className:({checked:o})=>r.cn(c.radioVariants({colorScheme:b,size:a,checked:o}),"rst:self-start",e||s.disabled?"rst:opacity-50 rst:cursor-not-allowed":"rst:cursor-pointer",g),children:({checked:o})=>t.jsx("span",{className:r.cn(c.radioDotVariants({size:a}),o?"rst:opacity-100":"rst:opacity-0")})}),t.jsxs("div",{className:r.cn("rst:flex rst:min-w-0 rst:flex-col",i==="vertical"&&"rst:flex-1"),children:[t.jsx(m.Label,{className:r.cn("rst:cursor-pointer rst:select-none","rst:text-[var(--roster-control-text)]","rst:data-disabled:cursor-not-allowed rst:data-disabled:opacity-50",L[a],z),children:s.label}),s.description&&t.jsx(u.Description,{className:r.cn("rst:text-xs rst:text-gray-500 rst:dark:text-gray-400 rst:data-disabled:opacity-50",R),children:s.description})]})]},s.value))}),(d||l)&&t.jsx(u.Description,{as:"p",className:r.cn("rst:text-xs rst:text-left",x?"rst:text-error-600 rst:dark:text-error-400 rst:font-medium":"rst:text-gray-500 rst:dark:text-gray-400",e&&"rst:opacity-50",S),children:l||d})]})};exports.RadioGroup=D;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const u=require("../../../node_modules/@headlessui/react/dist/components/description/description.cjs"),w=require("../../../node_modules/@headlessui/react/dist/components/field/field.cjs"),m=require("../../../node_modules/@headlessui/react/dist/components/label/label.cjs"),p=require("../../../node_modules/@headlessui/react/dist/components/radio-group/radio-group.cjs"),r=require("../../../lib/utils.cjs"),c=require("./radio-group-variants.cjs"),L={sm:"rst:text-xs",md:"rst:text-sm",lg:"rst:text-base"},D=({options:f,value:v,onChange:y,label:n,helperText:d,errorMessage:l,disabled:e=!1,size:j="md",orientation:i="vertical",colorScheme:b,className:N,optionsClassName:h,optionClassName:q,radioClassName:g,labelClassName:G,optionLabelClassName:z,descriptionClassName:R,messageClassName:S,"aria-invalid":V,...k})=>{const x=!!l,a=j??"md";return t.jsxs(p.RadioGroup,{value:v,onChange:y,disabled:e,className:r.cn("rst:font-ui rst:flex rst:flex-col rst:gap-1.5 rst:min-w-0",N),...k,"aria-invalid":x||V||void 0,"aria-orientation":i,children:[n&&t.jsx(m.Label,{className:r.cn("rst:block rst:text-sm rst:font-medium rst:text-[var(--roster-control-text)] rst:text-left",e&&"rst:opacity-50",G),children:n}),t.jsx("div",{className:r.cn(c.radioGroupOptionsVariants({size:a,orientation:i}),h),children:f.map(s=>t.jsxs(w.Field,{disabled:e||s.disabled,className:r.cn(c.radioOptionVariants({orientation:i,size:a}),q),children:[t.jsx(p.Radio,{value:s.value,className:({checked:o})=>r.cn(c.radioVariants({colorScheme:b,size:a,checked:o}),"rst:self-start",e||s.disabled?"rst:opacity-50 rst:cursor-not-allowed":"rst:cursor-pointer",g),children:({checked:o})=>t.jsx("span",{className:r.cn(c.radioDotVariants({size:a}),o?"rst:opacity-100":"rst:opacity-0")})}),t.jsxs("div",{className:r.cn("rst:flex rst:min-w-0 rst:flex-col",i==="vertical"&&"rst:flex-1"),children:[t.jsx(m.Label,{className:r.cn("rst:cursor-pointer rst:select-none","rst:text-[var(--roster-control-text)]","rst:data-disabled:cursor-not-allowed rst:data-disabled:opacity-50",L[a],z),children:s.label}),s.description&&t.jsx(u.Description,{className:r.cn("rst:text-xs rst:text-gray-500 rst:dark:text-gray-400 rst:data-disabled:opacity-50",R),children:s.description})]})]},s.value))}),(d||l)&&t.jsx(u.Description,{as:"p",className:r.cn("rst:text-xs rst:text-left",x?"rst:text-error-600 rst:dark:text-error-400 rst:font-medium":"rst:text-gray-500 rst:dark:text-gray-400",e&&"rst:opacity-50",S),children:l||d})]})};exports.RadioGroup=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),c=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),s=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),l=require("../../../lib/utils.cjs"),g=require("./toast-variants.cjs");function x(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>r[a]})}}return t.default=r,Object.freeze(t)}const j=x(p),h={success:s.faCircleCheck,error:s.faCircleExclamation,amber:s.faTriangleExclamation,info:s.faCircleInfo,primary:s.faCircleInfo,neutral:s.faCircleInfo},u=j.forwardRef(({className:r,colorScheme:t="neutral",variant:a="soft",title:n,icon:i,onDismiss:o,dismissLabel:f="Dismiss",children:d,...m},b)=>e.jsxs("div",{ref:b,className:l.cn(g.toastVariants({colorScheme:t,variant:a}),r),...m,children:[i!==null&&e.jsx("span",{"aria-hidden":"true",className:"rst:mt-0.5 rst:shrink-0",children:i??e.jsx(c.FontAwesomeIcon,{icon:h[t??"neutral"],className:"rst:h-4 rst:w-4"})}),e.jsxs("div",{className:"rst:flex rst:min-w-0 rst:flex-col rst:gap-0.5",children:[n&&e.jsx("p",{className:"rst:font-semibold",children:n}),e.jsx("div",{className:"rst:min-w-0 rst:break-words",children:d})]}),o&&e.jsx("button",{type:"button",onClick:o,"aria-label":f,className:l.cn("rst:-mr-1 rst:ml-auto rst:shrink-0 rst:cursor-pointer rst:rounded rst:opacity-70 rst:hover:opacity-100","rst:focus-visible:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:ring-offset-background rst:focus-visible:ring-offset-2"),children:e.jsx(c.FontAwesomeIcon,{icon:s.faXmark,className:"rst:h-3.5 rst:w-3.5","aria-hidden":"true"})})]}));u.displayName="Toast";exports.Toast=u;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),c=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),s=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),l=require("../../../lib/utils.cjs"),g=require("./toast-variants.cjs");function x(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>r[a]})}}return t.default=r,Object.freeze(t)}const j=x(p),h={success:s.faCircleCheck,error:s.faCircleExclamation,amber:s.faTriangleExclamation,info:s.faCircleInfo,primary:s.faCircleInfo,neutral:s.faCircleInfo},u=j.forwardRef(({className:r,colorScheme:t="neutral",variant:a="soft",title:n,icon:i,onDismiss:o,dismissLabel:f="Dismiss",children:d,...m},b)=>e.jsxs("div",{ref:b,className:l.cn(g.toastVariants({colorScheme:t,variant:a}),r),...m,children:[i!==null&&e.jsx("span",{"aria-hidden":"true",className:"rst:mt-0.5 rst:shrink-0",children:i??e.jsx(c.FontAwesomeIcon,{icon:h[t??"neutral"],className:"rst:h-4 rst:w-4"})}),e.jsxs("div",{className:"rst:flex rst:min-w-0 rst:flex-col rst:gap-0.5",children:[n&&e.jsx("p",{className:"rst:font-semibold",children:n}),e.jsx("div",{className:"rst:min-w-0 rst:break-words",children:d})]}),o&&e.jsx("button",{type:"button",onClick:o,"aria-label":f,className:l.cn("rst:-mr-1 rst:ml-auto rst:shrink-0 rst:cursor-pointer rst:rounded rst:opacity-70 rst:hover:opacity-100","rst:focus-visible:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:ring-offset-background rst:focus-visible:ring-offset-2"),children:e.jsx(c.FontAwesomeIcon,{icon:s.faXmark,className:"rst:h-3.5 rst:w-3.5","aria-hidden":"true"})})]}));u.displayName="Toast";exports.Toast=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("react-hot-toast"),p=require("./Toast.cjs"),T=require("../../atoms/Spinner/Spinner.cjs"),b=require("./toast-api.cjs");function g({position:n="bottom-right",duration:e=4e3,dismissible:a=!0,variant:c="soft",gutter:l,reverseOrder:u,containerClassName:m}){return o.jsx(r.Toaster,{position:n,gutter:l,reverseOrder:u,containerClassName:m,toastOptions:{success:{duration:e},error:{duration:e},blank:{duration:e},custom:{duration:e}},children:s=>{const d=s.className?.split(/\s+/)??[],t=E.find(f=>d.includes(`${b.TONE_PREFIX}${f}`)),i=t?S[t]:v[s.type]??"neutral";return o.jsx(p.Toast,{colorScheme:i,variant:c,icon:s.icon??(s.type==="loading"?o.jsx(T.Spinner,{size:"sm"}):void 0),onDismiss:a?()=>r.toast.dismiss(s.id):void 0,...i==="error"?{role:"alert","aria-live":"assertive"}:s.ariaProps,className:y[s.visible?"in":"out"],children:r.resolveValue(s.message,s)})}})}const E=["info","warning"],S={info:"info",warning:"amber"},v={success:"success",error:"error",loading:"neutral",blank:"neutral",custom:"neutral"},y={in:"rst:motion-safe:animate-in rst:motion-safe:fade-in-0 rst:motion-safe:slide-in-from-bottom-2",out:"rst:opacity-0 rst:transition-opacity rst:duration-200"};exports.Toaster=g;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("react-hot-toast"),p=require("./Toast.cjs"),T=require("../../atoms/Spinner/Spinner.cjs"),b=require("./toast-api.cjs");function g({position:n="bottom-right",duration:e=4e3,dismissible:a=!0,variant:c="soft",gutter:l,reverseOrder:u,containerClassName:m}){return o.jsx(r.Toaster,{position:n,gutter:l,reverseOrder:u,containerClassName:m,toastOptions:{success:{duration:e},error:{duration:e},blank:{duration:e},custom:{duration:e}},children:s=>{const d=s.className?.split(/\s+/)??[],t=E.find(f=>d.includes(`${b.TONE_PREFIX}${f}`)),i=t?S[t]:v[s.type]??"neutral";return o.jsx(p.Toast,{colorScheme:i,variant:c,icon:s.icon??(s.type==="loading"?o.jsx(T.Spinner,{size:"sm"}):void 0),onDismiss:a?()=>r.toast.dismiss(s.id):void 0,...i==="error"?{role:"alert","aria-live":"assertive"}:s.ariaProps,className:y[s.visible?"in":"out"],children:r.resolveValue(s.message,s)})}})}const E=["info","warning"],S={info:"info",warning:"amber"},v={success:"success",error:"error",loading:"neutral",blank:"neutral",custom:"neutral"},y={in:"rst:motion-safe:animate-in rst:motion-safe:fade-in-0 rst:motion-safe:slide-in-from-bottom-2",out:"rst:opacity-0 rst:transition-opacity rst:duration-200"};exports.Toaster=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react-hot-toast"),i=Object.assign((t,s)=>o.toast(t,e(null,s)),{success:(t,s)=>o.toast.success(t,e(null,s)),error:(t,s)=>o.toast.error(t,e(null,s)),info:(t,s)=>o.toast(t,e("info",s)),warning:(t,s)=>o.toast(t,e("warning",s)),loading:(t,s)=>o.toast.loading(t,e(null,s)),custom:o.toast.custom,dismiss:o.toast.dismiss,remove:o.toast.remove,promise:o.toast.promise}),a="rst-toast-tone-",e=(t,s)=>{const r=(s?.className??"").split(/\s+/).filter(n=>n&&!n.startsWith(a));return t&&r.push(`${a}${t}`),{...s,className:r.join(" ")}};exports.TONE_PREFIX=a;exports.toast=i;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react-hot-toast"),i=Object.assign((t,s)=>o.toast(t,e(null,s)),{success:(t,s)=>o.toast.success(t,e(null,s)),error:(t,s)=>o.toast.error(t,e(null,s)),info:(t,s)=>o.toast(t,e("info",s)),warning:(t,s)=>o.toast(t,e("warning",s)),loading:(t,s)=>o.toast.loading(t,e(null,s)),custom:o.toast.custom,dismiss:o.toast.dismiss,remove:o.toast.remove,promise:o.toast.promise}),a="rst-toast-tone-",e=(t,s)=>{const r=(s?.className??"").split(/\s+/).filter(n=>n&&!n.startsWith(a));return t&&r.push(`${a}${t}`),{...s,className:r.join(" ")}};exports.TONE_PREFIX=a;exports.toast=i;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { toast as o } from "react-hot-toast";
|
|
2
|
-
const
|
|
3
|
-
(s, t) => o(s,
|
|
3
|
+
const a = /* @__PURE__ */ Object.assign(
|
|
4
|
+
(s, t) => o(s, e(null, t)),
|
|
4
5
|
{
|
|
5
|
-
success: (s, t) => o.success(s,
|
|
6
|
-
error: (s, t) => o.error(s,
|
|
6
|
+
success: (s, t) => o.success(s, e(null, t)),
|
|
7
|
+
error: (s, t) => o.error(s, e(null, t)),
|
|
7
8
|
/* Both ride on `blank` plus an explicit tone marker, because
|
|
8
9
|
react-hot-toast has no slot for them. `Toaster` reads the marker to pick
|
|
9
10
|
a color scheme, so they are real tones rather than a red toast wearing a
|
|
10
11
|
different word. */
|
|
11
|
-
info: (s, t) => o(s,
|
|
12
|
-
warning: (s, t) => o(s,
|
|
13
|
-
loading: (s, t) => o.loading(s,
|
|
12
|
+
info: (s, t) => o(s, e("info", t)),
|
|
13
|
+
warning: (s, t) => o(s, e("warning", t)),
|
|
14
|
+
loading: (s, t) => o.loading(s, e(null, t)),
|
|
14
15
|
custom: o.custom,
|
|
15
16
|
dismiss: o.dismiss,
|
|
16
17
|
remove: o.remove,
|
|
17
18
|
promise: o.promise
|
|
18
19
|
}
|
|
19
|
-
), i = "rst-toast-tone-",
|
|
20
|
-
const n = (t?.className ?? "").split(/\s+/).filter((
|
|
20
|
+
), i = "rst-toast-tone-", e = (s, t) => {
|
|
21
|
+
const n = (t?.className ?? "").split(/\s+/).filter((r) => r && !r.startsWith(i));
|
|
21
22
|
return s && n.push(`${i}${s}`), { ...t, className: n.join(" ") };
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
25
|
i as TONE_PREFIX,
|
|
25
|
-
|
|
26
|
+
a as toast
|
|
26
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),x=require("react"),f=require("../../../lib/utils.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),x=require("react"),f=require("../../../lib/utils.cjs"),u=require("./action-bar-variants.cjs"),c=x.forwardRef(({title:r,subtitle:t,badge:e,actions:a,children:i,position:n,variant:l,className:m,...o},d)=>s.jsx("div",{ref:d,className:f.cn(u.actionBarVariants({variant:l,position:n}),m),...o,children:s.jsxs("div",{className:"rst:container rst:mx-auto rst:p-4",children:[s.jsxs("div",{className:"rst:flex rst:justify-between rst:items-center",children:[s.jsxs("div",{className:"rst:flex rst:flex-col rst:sm:flex-row rst:sm:items-center rst:gap-x-4 rst:gap-y-2",children:[r&&s.jsx("span",{className:"rst:font-semibold rst:text-lg",children:r}),e&&s.jsx("div",{className:"rst:max-w-44 rst:sm:max-w-max rst:mr-2",children:e})]}),a&&s.jsx("div",{className:"rst:flex rst:gap-2",children:a})]}),t&&s.jsx("div",{className:"rst:text-sm rst:opacity-80 rst:mt-1 rst:font-medium",children:t}),i&&s.jsx("div",{className:"rst:flex rst:flex-wrap rst:items-center rst:mt-4 rst:pt-4 rst:border-t rst:border-black/10 rst:dark:border-white/10 rst:gap-y-2",children:i})]})}));c.displayName="ActionBar";exports.ActionBar=c;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as x } from "react";
|
|
3
4
|
import { cn as f } from "../../../lib/utils.js";
|
|
@@ -12,13 +13,13 @@ const N = x(
|
|
|
12
13
|
position: c,
|
|
13
14
|
variant: l,
|
|
14
15
|
className: o,
|
|
15
|
-
...
|
|
16
|
-
},
|
|
16
|
+
...n
|
|
17
|
+
}, d) => /* @__PURE__ */ r(
|
|
17
18
|
"div",
|
|
18
19
|
{
|
|
19
|
-
ref:
|
|
20
|
+
ref: d,
|
|
20
21
|
className: f(p({ variant: l, position: c }), o),
|
|
21
|
-
...
|
|
22
|
+
...n,
|
|
22
23
|
children: /* @__PURE__ */ s("div", { className: "rst:container rst:mx-auto rst:p-4", children: [
|
|
23
24
|
/* @__PURE__ */ s("div", { className: "rst:flex rst:justify-between rst:items-center", children: [
|
|
24
25
|
/* @__PURE__ */ s("div", { className: "rst:flex rst:flex-col rst:sm:flex-row rst:sm:items-center rst:gap-x-4 rst:gap-y-2", children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),b=require("react"),r=require("../../../lib/utils.cjs"),g=require("../../../hooks/useCountdown.cjs"),l=require("./countdown-variants.cjs"),a=({value:c,label:n,size:s,variant:e})=>t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-center",children:[t.jsx("span",{className:r.cn(l.countdownNumberVariants({size:s,variant:e})),children:String(c).padStart(2,"0")}),t.jsx("span",{className:r.cn(l.countdownLabelVariants({size:s}),"rst:@max-[22rem]:text-[9px]"),children:n})]}),x=b.forwardRef(({targetDate:c,title:n,size:s,variant:e="gradient",className:o,completionText:u,...d},i)=>{const{days:m,hours:j,minutes:w,seconds:f,isFinished:h}=g.useCountdown(c);return h?u?t.jsx("div",{ref:i,className:r.cn("rst:font-bold rst:w-full rst:text-center rst:text-gray-900 rst:dark:text-gray-100",o),...d,children:t.jsx("h3",{className:r.cn(l.countdownTitleVariants({size:s}),"rst:mb-0"),children:u})}):null:t.jsx("div",{ref:i,className:r.cn("rst:font-bold rst:w-full rst:text-center rst:text-gray-900 rst:dark:text-gray-100",o),...d,children:t.jsxs("div",{className:"rst:@container rst:w-full",children:[n&&t.jsx("h3",{className:r.cn(l.countdownTitleVariants({size:s})),children:n}),t.jsxs("div",{className:"rst:flex rst:justify-center rst:gap-3 rst:@[22rem]:gap-6 rst:@[35rem]:gap-8",children:[t.jsx(a,{value:m,label:"Days",size:s,variant:e}),t.jsx(a,{value:j,label:"Hours",size:s,variant:e}),t.jsx(a,{value:w,label:"Minutes",size:s,variant:e}),t.jsx(a,{value:f,label:"Seconds",size:s,variant:e})]})]})})});x.displayName="Countdown";exports.Countdown=x;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),b=require("react"),r=require("../../../lib/utils.cjs"),g=require("../../../hooks/useCountdown.cjs"),l=require("./countdown-variants.cjs"),a=({value:c,label:n,size:s,variant:e})=>t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-center",children:[t.jsx("span",{className:r.cn(l.countdownNumberVariants({size:s,variant:e})),children:String(c).padStart(2,"0")}),t.jsx("span",{className:r.cn(l.countdownLabelVariants({size:s}),"rst:@max-[22rem]:text-[9px]"),children:n})]}),x=b.forwardRef(({targetDate:c,title:n,size:s,variant:e="gradient",className:o,completionText:u,...d},i)=>{const{days:m,hours:j,minutes:w,seconds:f,isFinished:h}=g.useCountdown(c);return h?u?t.jsx("div",{ref:i,className:r.cn("rst:font-bold rst:w-full rst:text-center rst:text-gray-900 rst:dark:text-gray-100",o),...d,children:t.jsx("h3",{className:r.cn(l.countdownTitleVariants({size:s}),"rst:mb-0"),children:u})}):null:t.jsx("div",{ref:i,className:r.cn("rst:font-bold rst:w-full rst:text-center rst:text-gray-900 rst:dark:text-gray-100",o),...d,children:t.jsxs("div",{className:"rst:@container rst:w-full",children:[n&&t.jsx("h3",{className:r.cn(l.countdownTitleVariants({size:s})),children:n}),t.jsxs("div",{className:"rst:flex rst:justify-center rst:gap-3 rst:@[22rem]:gap-6 rst:@[35rem]:gap-8",children:[t.jsx(a,{value:m,label:"Days",size:s,variant:e}),t.jsx(a,{value:j,label:"Hours",size:s,variant:e}),t.jsx(a,{value:w,label:"Minutes",size:s,variant:e}),t.jsx(a,{value:f,label:"Seconds",size:s,variant:e})]})]})})});x.displayName="Countdown";exports.Countdown=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),w=require("react"),r=require("@tanstack/react-table"),n=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),o=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),c=require("../../../lib/utils.cjs"),i=require("../../atoms/Button/Button.cjs"),a=require("../Table/Table.cjs"),C=r.tableFeatures({rowSortingFeature:r.rowSortingFeature,rowPaginationFeature:r.rowPaginationFeature,sortedRowModel:r.createSortedRowModel(),paginatedRowModel:r.createPaginatedRowModel(),sortFns:r.sortFns});function S({columns:g,data:d,className:
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),w=require("react"),r=require("@tanstack/react-table"),n=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),o=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),c=require("../../../lib/utils.cjs"),i=require("../../atoms/Button/Button.cjs"),a=require("../Table/Table.cjs"),C=r.tableFeatures({rowSortingFeature:r.rowSortingFeature,rowPaginationFeature:r.rowPaginationFeature,sortedRowModel:r.createSortedRowModel(),paginatedRowModel:r.createPaginatedRowModel(),sortFns:r.sortFns});function S({columns:g,data:d,className:u,tableClassName:x,paginationClassName:m,variant:f="default",size:j="md",hoverable:p=!1}){const[b,h]=w.useState([]),t=r.useTable({features:C,data:d,columns:g,onSortingChange:h,state:{sorting:b},initialState:{pagination:{pageIndex:0,pageSize:10}}});return e.jsxs("div",{className:c.cn("rst:font-ui rst:flex rst:flex-col rst:gap-4",u),children:[e.jsxs(a.Table,{variant:f,size:j,hoverable:p,className:x,children:[e.jsx(a.TableHeader,{children:t.getHeaderGroups().map(l=>e.jsx(a.TableRow,{children:l.headers.map(s=>e.jsx(a.TableHead,{children:s.isPlaceholder?null:e.jsxs("div",{className:c.cn("rst:flex rst:items-center rst:gap-2 rst:transition-opacity",s.column.getCanSort()&&"rst:cursor-pointer rst:select-none rst:opacity-80 rst:hover:opacity-100"),onClick:s.column.getToggleSortingHandler(),children:[r.flexRender(s.column.columnDef.header,s.getContext()),s.column.getCanSort()&&e.jsx("span",{className:"rst:w-4 rst:flex rst:justify-center rst:text-primary-500",children:s.column.getIsSorted()==="asc"?e.jsx(n.FontAwesomeIcon,{icon:o.faCaretUp}):s.column.getIsSorted()==="desc"?e.jsx(n.FontAwesomeIcon,{icon:o.faCaretDown}):null})]})},s.id))},l.id))}),e.jsx(a.TableBody,{children:t.getRowModel().rows?.length?t.getRowModel().rows.map(l=>e.jsx(a.TableRow,{children:l.getAllCells().map(s=>e.jsx(a.TableCell,{children:r.flexRender(s.column.columnDef.cell,s.getContext())},s.id))},l.id)):e.jsx(a.TableRow,{children:e.jsx(a.TableCell,{colSpan:g.length,className:"rst:h-24 rst:text-center rst:text-gray-500 rst:dark:text-gray-400 rst:italic",children:"No results found."})})})]}),e.jsxs("div",{className:c.cn("rst:flex rst:flex-col rst:sm:flex-row rst:items-center rst:justify-between rst:gap-4 rst:px-2",m),children:[e.jsxs("div",{className:"rst:text-sm rst:font-medium rst:text-gray-500 rst:dark:text-gray-400",children:["Page"," ",e.jsx("strong",{className:"rst:text-gray-900 rst:dark:text-gray-100",children:t.state.pagination.pageIndex+1})," ","of"," ",e.jsx("strong",{className:"rst:text-gray-900 rst:dark:text-gray-100",children:t.getPageCount()})]}),e.jsxs("div",{className:"rst:flex rst:items-center rst:space-x-2",children:[e.jsx(i.Button,{variant:"outline",colorScheme:"neutral",size:"sm",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),"aria-label":"Go to first page",children:e.jsx(n.FontAwesomeIcon,{icon:o.faAnglesLeft})}),e.jsx(i.Button,{variant:"outline",colorScheme:"neutral",size:"sm",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),"aria-label":"Go to previous page",children:e.jsx(n.FontAwesomeIcon,{icon:o.faAngleLeft})}),e.jsx(i.Button,{variant:"outline",colorScheme:"neutral",size:"sm",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),"aria-label":"Go to next page",children:e.jsx(n.FontAwesomeIcon,{icon:o.faAngleRight})}),e.jsx(i.Button,{variant:"outline",colorScheme:"neutral",size:"sm",onClick:()=>t.setPageIndex(t.getPageCount()-1),disabled:!t.getCanNextPage(),"aria-label":"Go to last page",children:e.jsx(n.FontAwesomeIcon,{icon:o.faAnglesRight})})]})]})]})}exports.DataTable=S;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
3
|
import { useState as P } from "react";
|
|
3
4
|
import { useTable as w, flexRender as g, tableFeatures as y, sortFns as v, rowPaginationFeature as N, rowSortingFeature as R, createPaginatedRowModel as T, createSortedRowModel as k } from "@tanstack/react-table";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),a=require("react"),v=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),b=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),e=require("../../../node_modules/class-variance-authority/dist/index.cjs"),t=require("../../../lib/utils.cjs"),s=require("../../../node_modules/@headlessui/react/dist/components/dialog/dialog.cjs"),o=require("../../../node_modules/@headlessui/react/dist/components/transition/transition.cjs"),f=e.cva("rst:relative rst:w-full rst:transform rst:overflow-hidden rst:rounded-2xl rst:p-6 rst:text-left rst:align-middle rst:elevation-overlay rst:transition-all rst:border",{variants:{size:{xs:"rst:max-w-xs",sm:"rst:max-w-sm",md:"rst:max-w-md",lg:"rst:max-w-lg",xl:"rst:max-w-xl","2xl":"rst:max-w-2xl","3xl":"rst:max-w-3xl",full:"rst:max-w-[95vw] rst:m-4"},variant:{white:"rst:bg-[var(--roster-popover-bg)] rst:border-[var(--roster-popover-border)] rst:text-[var(--roster-popover-text)]",slate:"rst:bg-gray-700 rst:border-gray-600 rst:text-gray-100 rst:dark:bg-gray-900 rst:dark:border-gray-800 rst:[--roster-ring:var(--roster-primary-400,#5ea3de)] rst:[--roster-ring-offset:var(--roster-gray-700,#44403c)] rst:dark:[--roster-ring-offset:var(--roster-gray-900,#1c1917)] rst:[--roster-control-text:var(--roster-gray-100,#f5f5f4)] rst:[--roster-control-border:var(--roster-gray-400,#a8a29e)] rst:[--roster-control-border-focus:var(--roster-primary-400,#5ea3de)]",primary:"rst:bg-primary-700 rst:border-primary-600 rst:text-white rst:dark:bg-primary-950 rst:dark:border-primary-900 rst:[--roster-ring:var(--roster-primary-400,#5ea3de)] rst:[--roster-ring-offset:var(--roster-primary-700,#084063)] rst:dark:[--roster-ring-offset:var(--roster-primary-950,#021724)] rst:[--roster-control-text:var(--roster-gray-100,#f5f5f4)] rst:[--roster-control-border:var(--roster-gray-400,#a8a29e)] rst:[--roster-control-border-focus:var(--roster-primary-400,#5ea3de)]",glass:"rst:bg-white/80 rst:border-white/20 rst:backdrop-blur-xl rst:text-gray-900 rst:dark:bg-slate-900/80 rst:dark:border-slate-700/50 rst:dark:text-white"},status:{default:"",destructive:"rst:border-t-4 rst:border-t-error-500",success:"rst:border-t-4 rst:border-t-success-500"}},defaultVariants:{size:"md",variant:"white",status:"default"}}),y=e.cva("rst:text-xl rst:font-bold rst:leading-6 rst:text-inherit"),p=e.cva("rst:mt-1 rst:text-sm rst:text-inherit rst:opacity-75"),h=e.cva("rst:inline-flex rst:size-11 rst:shrink-0 rst:items-center rst:justify-center rst:-m-3 rst:cursor-pointer rst:rounded-md rst:bg-transparent rst:text-inherit rst:opacity-50 rst:hover:opacity-100 rst:focus:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:focus-visible:ring-offset-2 rst:ring-offset-background rst:transition-opacity"),w=({isOpen:c,onClose:i,title:d,description:n,size:m,variant:l,status:x,children:g,className:u})=>r.jsx(o.Transition,{appear:!0,show:c,as:a.Fragment,children:r.jsxs(s.Dialog,{as:"div",className:"rst:font-ui rst:relative rst:z-50",onClose:i,children:[r.jsx(o.TransitionChild,{as:a.Fragment,enter:"rst:ease-out rst:duration-300",enterFrom:"rst:opacity-0",enterTo:"rst:opacity-100",leave:"rst:ease-in rst:duration-200",leaveFrom:"rst:opacity-100",leaveTo:"rst:opacity-0",children:r.jsx(s.DialogBackdrop,{className:t.cn("rst:fixed rst:inset-0 rst:transition-opacity",l==="glass"?"rst:bg-slate-900/40 rst:dark:bg-black/60":"rst:bg-slate-900/60 rst:dark:bg-black/80 rst:backdrop-blur-sm")})}),r.jsx("div",{className:"rst:fixed rst:inset-0 rst:overflow-y-auto",children:r.jsx("div",{className:"rst:flex rst:min-h-full rst:items-center rst:justify-center rst:p-4 rst:text-center",children:r.jsx(o.TransitionChild,{as:a.Fragment,enter:"rst:ease-out rst:duration-300",enterFrom:"rst:opacity-0 rst:scale-95",enterTo:"rst:opacity-100 rst:scale-100",leave:"rst:ease-in rst:duration-200",leaveFrom:"rst:opacity-100 rst:scale-100",leaveTo:"rst:opacity-0 rst:scale-95",children:r.jsxs(s.DialogPanel,{className:t.cn(f({size:m,variant:l,status:x}),u),children:[r.jsxs("div",{className:"rst:flex rst:items-start rst:justify-between",children:[r.jsxs("div",{children:[r.jsx(s.DialogTitle,{as:"h2",className:t.cn(y()),children:d}),n&&r.jsx("p",{className:t.cn(p()),children:n})]}),r.jsx("div",{className:"rst:ml-4 rst:flex rst:shrink-0",children:r.jsx("button",{type:"button",onClick:i,className:t.cn(h()),"aria-label":"Close dialog",children:r.jsx(v.FontAwesomeIcon,{icon:b.faXmark,className:"rst:h-5 rst:w-5"})})})]}),r.jsx("div",{className:"rst:mt-6",children:g})]})})})})]})});exports.Dialog=w;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),a=require("react"),v=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),b=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),e=require("../../../node_modules/class-variance-authority/dist/index.cjs"),t=require("../../../lib/utils.cjs"),s=require("../../../node_modules/@headlessui/react/dist/components/dialog/dialog.cjs"),o=require("../../../node_modules/@headlessui/react/dist/components/transition/transition.cjs"),f=e.cva("rst:relative rst:w-full rst:transform rst:overflow-hidden rst:rounded-2xl rst:p-6 rst:text-left rst:align-middle rst:elevation-overlay rst:transition-all rst:border",{variants:{size:{xs:"rst:max-w-xs",sm:"rst:max-w-sm",md:"rst:max-w-md",lg:"rst:max-w-lg",xl:"rst:max-w-xl","2xl":"rst:max-w-2xl","3xl":"rst:max-w-3xl",full:"rst:max-w-[95vw] rst:m-4"},variant:{white:"rst:bg-[var(--roster-popover-bg)] rst:border-[var(--roster-popover-border)] rst:text-[var(--roster-popover-text)]",slate:"rst:bg-gray-700 rst:border-gray-600 rst:text-gray-100 rst:dark:bg-gray-900 rst:dark:border-gray-800 rst:[--roster-ring:var(--roster-primary-400,#5ea3de)] rst:[--roster-ring-offset:var(--roster-gray-700,#44403c)] rst:dark:[--roster-ring-offset:var(--roster-gray-900,#1c1917)] rst:[--roster-control-text:var(--roster-gray-100,#f5f5f4)] rst:[--roster-control-border:var(--roster-gray-400,#a8a29e)] rst:[--roster-control-border-focus:var(--roster-primary-400,#5ea3de)]",primary:"rst:bg-primary-700 rst:border-primary-600 rst:text-white rst:dark:bg-primary-950 rst:dark:border-primary-900 rst:[--roster-ring:var(--roster-primary-400,#5ea3de)] rst:[--roster-ring-offset:var(--roster-primary-700,#084063)] rst:dark:[--roster-ring-offset:var(--roster-primary-950,#021724)] rst:[--roster-control-text:var(--roster-gray-100,#f5f5f4)] rst:[--roster-control-border:var(--roster-gray-400,#a8a29e)] rst:[--roster-control-border-focus:var(--roster-primary-400,#5ea3de)]",glass:"rst:bg-white/80 rst:border-white/20 rst:backdrop-blur-xl rst:text-gray-900 rst:dark:bg-slate-900/80 rst:dark:border-slate-700/50 rst:dark:text-white"},status:{default:"",destructive:"rst:border-t-4 rst:border-t-error-500",success:"rst:border-t-4 rst:border-t-success-500"}},defaultVariants:{size:"md",variant:"white",status:"default"}}),y=e.cva("rst:text-xl rst:font-bold rst:leading-6 rst:text-inherit"),p=e.cva("rst:mt-1 rst:text-sm rst:text-inherit rst:opacity-75"),h=e.cva("rst:inline-flex rst:size-11 rst:shrink-0 rst:items-center rst:justify-center rst:-m-3 rst:cursor-pointer rst:rounded-md rst:bg-transparent rst:text-inherit rst:opacity-50 rst:hover:opacity-100 rst:focus:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:focus-visible:ring-offset-2 rst:ring-offset-background rst:transition-opacity"),w=({isOpen:c,onClose:i,title:d,description:n,size:m,variant:l,status:x,children:g,className:u})=>r.jsx(o.Transition,{appear:!0,show:c,as:a.Fragment,children:r.jsxs(s.Dialog,{as:"div",className:"rst:font-ui rst:relative rst:z-50",onClose:i,children:[r.jsx(o.TransitionChild,{as:a.Fragment,enter:"rst:ease-out rst:duration-300",enterFrom:"rst:opacity-0",enterTo:"rst:opacity-100",leave:"rst:ease-in rst:duration-200",leaveFrom:"rst:opacity-100",leaveTo:"rst:opacity-0",children:r.jsx(s.DialogBackdrop,{className:t.cn("rst:fixed rst:inset-0 rst:transition-opacity",l==="glass"?"rst:bg-slate-900/40 rst:dark:bg-black/60":"rst:bg-slate-900/60 rst:dark:bg-black/80 rst:backdrop-blur-sm")})}),r.jsx("div",{className:"rst:fixed rst:inset-0 rst:overflow-y-auto",children:r.jsx("div",{className:"rst:flex rst:min-h-full rst:items-center rst:justify-center rst:p-4 rst:text-center",children:r.jsx(o.TransitionChild,{as:a.Fragment,enter:"rst:ease-out rst:duration-300",enterFrom:"rst:opacity-0 rst:scale-95",enterTo:"rst:opacity-100 rst:scale-100",leave:"rst:ease-in rst:duration-200",leaveFrom:"rst:opacity-100 rst:scale-100",leaveTo:"rst:opacity-0 rst:scale-95",children:r.jsxs(s.DialogPanel,{className:t.cn(f({size:m,variant:l,status:x}),u),children:[r.jsxs("div",{className:"rst:flex rst:items-start rst:justify-between",children:[r.jsxs("div",{children:[r.jsx(s.DialogTitle,{as:"h2",className:t.cn(y()),children:d}),n&&r.jsx("p",{className:t.cn(p()),children:n})]}),r.jsx("div",{className:"rst:ml-4 rst:flex rst:shrink-0",children:r.jsx("button",{type:"button",onClick:i,className:t.cn(h()),"aria-label":"Close dialog",children:r.jsx(v.FontAwesomeIcon,{icon:b.faXmark,className:"rst:h-5 rst:w-5"})})})]}),r.jsx("div",{className:"rst:mt-6",children:g})]})})})})]})});exports.Dialog=w;
|