@speakeasy-api/moonshine 1.20.2 → 1.21.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.
@@ -1,5 +1,4 @@
1
- import { default as React, PropsWithChildren, HTMLAttributes } from 'react';
2
- import { MotionProps } from 'framer-motion';
1
+ import { default as React, PropsWithChildren, HTMLAttributes, ElementType, ComponentPropsWithoutRef } from 'react';
3
2
  import { IconName } from '../Icon/names';
4
3
  interface AppLayoutProps extends PropsWithChildren {
5
4
  className?: string;
@@ -17,13 +16,15 @@ interface AppLayoutThemeSwitcherProps {
17
16
  interface AppLayoutBreadcrumbProps extends PropsWithChildren {
18
17
  className?: string;
19
18
  }
20
- export interface AppLayoutBreadcrumbItemProps extends MotionProps, PropsWithChildren {
19
+ type AppLayoutBreadcrumbItemOwnProps = {
21
20
  className?: string;
22
21
  active?: boolean;
23
22
  children?: React.ReactNode;
24
23
  disabled?: boolean;
25
- onClick?: () => void;
26
- }
24
+ };
25
+ export type AppLayoutBreadcrumbItemProps<E extends ElementType = 'a'> = {
26
+ as?: E;
27
+ } & AppLayoutBreadcrumbItemOwnProps & Omit<ComponentPropsWithoutRef<E>, keyof AppLayoutBreadcrumbItemOwnProps | 'as'>;
27
28
  interface AppLayoutCollapseButtonProps extends PropsWithChildren {
28
29
  className?: string;
29
30
  }
@@ -36,7 +37,7 @@ interface AppLayoutHeaderProps extends PropsWithChildren {
36
37
  interface AppLayoutNavProps extends HTMLAttributes<HTMLDivElement> {
37
38
  className?: string;
38
39
  }
39
- export interface AppLayoutNavItemProps extends HTMLAttributes<HTMLButtonElement> {
40
+ type AppLayoutNavItemOwnProps = {
40
41
  title: string;
41
42
  icon: IconName;
42
43
  children?: React.ReactNode;
@@ -48,7 +49,10 @@ export interface AppLayoutNavItemProps extends HTMLAttributes<HTMLButtonElement>
48
49
  className?: string;
49
50
  active?: boolean;
50
51
  disabled?: boolean;
51
- }
52
+ };
53
+ export type AppLayoutNavItemProps<E extends ElementType = 'a'> = {
54
+ as?: E;
55
+ } & AppLayoutNavItemOwnProps & Omit<ComponentPropsWithoutRef<E>, keyof AppLayoutNavItemOwnProps | 'as'>;
52
56
  export interface AppLayoutNavItemGroupProps extends HTMLAttributes<HTMLDivElement> {
53
57
  className?: string;
54
58
  /**
@@ -81,7 +85,7 @@ export declare const AppLayout: {
81
85
  displayName: string;
82
86
  };
83
87
  BreadcrumbItem: {
84
- ({ children, className, active, disabled, onClick, ...props }: AppLayoutBreadcrumbItemProps): import("react/jsx-runtime").JSX.Element;
88
+ <E extends ElementType = "a">({ as, children, className, active, disabled, ...rest }: AppLayoutBreadcrumbItemProps<E>): import("react/jsx-runtime").JSX.Element;
85
89
  displayName: string;
86
90
  };
87
91
  CollapseButton: {
@@ -105,7 +109,7 @@ export declare const AppLayout: {
105
109
  displayName: string;
106
110
  };
107
111
  NavItem: {
108
- ({ title, icon, render, className, active, disabled, ...props }: AppLayoutNavItemProps): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
112
+ <E extends ElementType = "a">({ as, title, icon, render, className, active, disabled, ...rest }: AppLayoutNavItemProps<E>): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
109
113
  displayName: string;
110
114
  };
111
115
  NavItemGroup: {
@@ -1,4 +1,4 @@
1
- import { c as s, t as n } from "./index-DqLwaWEQ.mjs";
1
+ import { c as s, t as n } from "./index-DANjdSF9.mjs";
2
2
  import { Icon as p } from "lucide-react";
3
3
  import { forwardRef as f, createElement as i } from "react";
4
4
  const C = (e, t, r) => {
@@ -16,4 +16,4 @@ const C = (e, t, r) => {
16
16
  export {
17
17
  C as c
18
18
  };
19
- //# sourceMappingURL=createCustomLucideIcon-XbD-heqT.mjs.map
19
+ //# sourceMappingURL=createCustomLucideIcon-BHFGAZjD.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"createCustomLucideIcon-XbD-heqT.mjs","sources":["../src/components/Icon/customIcons/createCustomLucideIcon.ts"],"sourcesContent":["import { cn, toKebabCase } from '@/lib/utils'\nimport { Icon, IconNode, LucideProps } from 'lucide-react'\nimport { createElement, forwardRef } from 'react'\n\nconst createCustomLucideIcon = (\n iconName: string,\n iconNode: IconNode,\n lucideProps?: Partial<LucideProps>\n) => {\n const Component = forwardRef<SVGSVGElement, LucideProps>(\n ({ className, ...props }, ref) =>\n createElement(Icon, {\n ref,\n iconNode,\n className: cn(`lucide-${toKebabCase(iconName)}`, className),\n ...{ ...(lucideProps ?? {}), ...props },\n })\n )\n\n Component.displayName = `${iconName}`\n\n return Component\n}\n\nexport default createCustomLucideIcon\n"],"names":["createCustomLucideIcon","iconName","iconNode","lucideProps","Component","forwardRef","className","props","ref","createElement","Icon","cn","toKebabCase"],"mappings":";;;AAIA,MAAMA,IAAyB,CAC7BC,GACAC,GACAC,MACG;AACH,QAAMC,IAAYC;AAAA,IAChB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,MACxBC,EAAcC,GAAM;AAAA,MAClB,KAAAF;AAAA,MACA,UAAAN;AAAA,MACA,WAAWS,EAAG,UAAUC,EAAYX,CAAQ,CAAC,IAAIK,CAAS;AAAA,MACrD,GAAIH,KAAe,CAAC;AAAA,MAAI,GAAGI;AAAA,IACjC,CAAA;AAAA,EACL;AAEU,SAAAH,EAAA,cAAc,GAAGH,CAAQ,IAE5BG;AACT;"}
1
+ {"version":3,"file":"createCustomLucideIcon-BHFGAZjD.mjs","sources":["../src/components/Icon/customIcons/createCustomLucideIcon.ts"],"sourcesContent":["import { cn, toKebabCase } from '@/lib/utils'\nimport { Icon, IconNode, LucideProps } from 'lucide-react'\nimport { createElement, forwardRef } from 'react'\n\nconst createCustomLucideIcon = (\n iconName: string,\n iconNode: IconNode,\n lucideProps?: Partial<LucideProps>\n) => {\n const Component = forwardRef<SVGSVGElement, LucideProps>(\n ({ className, ...props }, ref) =>\n createElement(Icon, {\n ref,\n iconNode,\n className: cn(`lucide-${toKebabCase(iconName)}`, className),\n ...{ ...(lucideProps ?? {}), ...props },\n })\n )\n\n Component.displayName = `${iconName}`\n\n return Component\n}\n\nexport default createCustomLucideIcon\n"],"names":["createCustomLucideIcon","iconName","iconNode","lucideProps","Component","forwardRef","className","props","ref","createElement","Icon","cn","toKebabCase"],"mappings":";;;AAIA,MAAMA,IAAyB,CAC7BC,GACAC,GACAC,MACG;AACH,QAAMC,IAAYC;AAAA,IAChB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,MACxBC,EAAcC,GAAM;AAAA,MAClB,KAAAF;AAAA,MACA,UAAAN;AAAA,MACA,WAAWS,EAAG,UAAUC,EAAYX,CAAQ,CAAC,IAAIK,CAAS;AAAA,MACrD,GAAIH,KAAe,CAAC;AAAA,MAAI,GAAGI;AAAA,IACjC,CAAA;AAAA,EACL;AAEU,SAAAH,EAAA,cAAc,GAAGH,CAAQ,IAE5BG;AACT;"}
@@ -1,4 +1,4 @@
1
- import { c as L } from "./createCustomLucideIcon-XbD-heqT.mjs";
1
+ import { c as L } from "./createCustomLucideIcon-BHFGAZjD.mjs";
2
2
  const o = [
3
3
  [
4
4
  "path",
@@ -21,4 +21,4 @@ const o = [
21
21
  export {
22
22
  e as default
23
23
  };
24
- //# sourceMappingURL=gems-TBSqj4DF.mjs.map
24
+ //# sourceMappingURL=gems-C2etdIjl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"gems-TBSqj4DF.mjs","sources":["../src/components/Icon/customIcons/gems.ts"],"sourcesContent":["import { IconNode } from 'lucide-react'\nimport createCustomLucideIcon from './createCustomLucideIcon'\n\nconst iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M156.139 157.469L196.307 117.301L168.177 89.1397V89.0126H88.2885L88.4113 89.2582L88.2885 89.1354L60.6496 117.296L128.5 184.929',\n key: 'path-1',\n },\n ],\n [\n 'path',\n {\n d: 'M128.5 14L29 71.0835V185.25L128.5 242.333L228 185.25V71.0829L128.5 14ZM208.96 174.341L128.5 220.767L48.0401 174.34V81.7386L128.5 35.3114L208.96 81.3762',\n key: 'path-2',\n },\n ],\n]\n\nconst icon = createCustomLucideIcon('gems', iconNode, {\n viewBox: '0 0 256 256',\n fill: 'currentColor',\n})\n\nexport { icon as default }\n"],"names":["iconNode","icon","createCustomLucideIcon"],"mappings":";AAGA,MAAMA,IAAqB;AAAA,EACzB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EACP;AAEJ,GAEMC,IAAOC,EAAuB,QAAQF,GAAU;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;"}
1
+ {"version":3,"file":"gems-C2etdIjl.mjs","sources":["../src/components/Icon/customIcons/gems.ts"],"sourcesContent":["import { IconNode } from 'lucide-react'\nimport createCustomLucideIcon from './createCustomLucideIcon'\n\nconst iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M156.139 157.469L196.307 117.301L168.177 89.1397V89.0126H88.2885L88.4113 89.2582L88.2885 89.1354L60.6496 117.296L128.5 184.929',\n key: 'path-1',\n },\n ],\n [\n 'path',\n {\n d: 'M128.5 14L29 71.0835V185.25L128.5 242.333L228 185.25V71.0829L128.5 14ZM208.96 174.341L128.5 220.767L48.0401 174.34V81.7386L128.5 35.3114L208.96 81.3762',\n key: 'path-2',\n },\n ],\n]\n\nconst icon = createCustomLucideIcon('gems', iconNode, {\n viewBox: '0 0 256 256',\n fill: 'currentColor',\n})\n\nexport { icon as default }\n"],"names":["iconNode","icon","createCustomLucideIcon"],"mappings":";AAGA,MAAMA,IAAqB;AAAA,EACzB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EACP;AAEJ,GAEMC,IAAOC,EAAuB,QAAQF,GAAU;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;"}
@@ -1,4 +1,4 @@
1
- import { c } from "./createCustomLucideIcon-XbD-heqT.mjs";
1
+ import { c } from "./createCustomLucideIcon-BHFGAZjD.mjs";
2
2
  const o = [
3
3
  [
4
4
  "path",
@@ -21,4 +21,4 @@ const o = [
21
21
  export {
22
22
  e as default
23
23
  };
24
- //# sourceMappingURL=go--uba-LB-.mjs.map
24
+ //# sourceMappingURL=go-BluVQOxl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"go--uba-LB-.mjs","sources":["../src/components/Icon/customIcons/go.ts"],"sourcesContent":["import { IconNode } from 'lucide-react'\nimport createCustomLucideIcon from './createCustomLucideIcon'\n\nconst iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M11.156 54.829c-.243 0-.303-.122-.182-.303l1.273-1.637c.12-.182.424-.303.666-.303H34.55c.243 0 .303.182.182.364l-1.03 1.576c-.121.181-.424.363-.606.363zM2.004 60.404c-.242 0-.303-.12-.182-.303l1.273-1.636c.121-.182.424-.303.667-.303h27.636c.242 0 .364.182.303.364l-.485 1.454c-.06.243-.303.364-.545.364zM16.67 65.98c-.242 0-.302-.182-.181-.364l.848-1.515c.122-.182.364-.363.607-.363h12.12c.243 0 .364.181.364.424l-.12 1.454c0 .243-.243.425-.425.425zM79.58 53.738c-3.819.97-6.425 1.697-10.182 2.666-.91.243-.97.303-1.758-.606-.909-1.03-1.576-1.697-2.848-2.303-3.819-1.878-7.516-1.333-10.97.91-4.121 2.666-6.242 6.605-6.182 11.514.06 4.849 3.394 8.849 8.182 9.516 4.121.545 7.576-.91 10.303-4 .545-.667 1.03-1.394 1.636-2.243H56.064c-1.272 0-1.575-.788-1.151-1.818.788-1.879 2.242-5.03 3.09-6.606.183-.364.607-.97 1.516-.97h22.06c-.12 1.637-.12 3.273-.363 4.91-.667 4.363-2.303 8.363-4.97 11.878-4.364 5.758-10.06 9.333-17.273 10.303-5.939.788-11.454-.364-16.302-4-4.485-3.394-7.03-7.879-7.697-13.454-.788-6.606 1.151-12.546 5.151-17.758 4.303-5.636 10-9.212 16.97-10.485 5.697-1.03 11.151-.363 16.06 2.97 3.212 2.121 5.515 5.03 7.03 8.545.364.546.122.849-.606 1.03z',\n key: 'path-1',\n },\n ],\n [\n 'path',\n {\n d: 'M99.64 87.253c-5.515-.122-10.546-1.697-14.788-5.334-3.576-3.09-5.818-7.03-6.545-11.697-1.091-6.848.787-12.909 4.909-18.302 4.424-5.819 9.757-8.849 16.97-10.122 6.181-1.09 12-.484 17.272 3.091 4.788 3.273 7.757 7.697 8.545 13.515 1.03 8.182-1.333 14.849-6.97 20.546-4 4.06-8.909 6.606-14.545 7.757-1.636.303-3.273.364-4.848.546zm14.424-24.485c-.06-.788-.06-1.394-.182-2-1.09-6-6.606-9.394-12.363-8.06-5.637 1.272-9.273 4.848-10.606 10.545-1.091 4.727 1.212 9.515 5.575 11.454 3.334 1.455 6.667 1.273 9.879-.363 4.788-2.485 7.394-6.364 7.697-11.576z',\n key: 'path-2',\n },\n ],\n]\n\nconst icon = createCustomLucideIcon('go', iconNode, {\n viewBox: '0 0 128 128',\n fill: 'currentColor',\n})\n\nexport { icon as default }\n"],"names":["iconNode","icon","createCustomLucideIcon"],"mappings":";AAGA,MAAMA,IAAqB;AAAA,EACzB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EACP;AAEJ,GAEMC,IAAOC,EAAuB,MAAMF,GAAU;AAAA,EAClD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;"}
1
+ {"version":3,"file":"go-BluVQOxl.mjs","sources":["../src/components/Icon/customIcons/go.ts"],"sourcesContent":["import { IconNode } from 'lucide-react'\nimport createCustomLucideIcon from './createCustomLucideIcon'\n\nconst iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M11.156 54.829c-.243 0-.303-.122-.182-.303l1.273-1.637c.12-.182.424-.303.666-.303H34.55c.243 0 .303.182.182.364l-1.03 1.576c-.121.181-.424.363-.606.363zM2.004 60.404c-.242 0-.303-.12-.182-.303l1.273-1.636c.121-.182.424-.303.667-.303h27.636c.242 0 .364.182.303.364l-.485 1.454c-.06.243-.303.364-.545.364zM16.67 65.98c-.242 0-.302-.182-.181-.364l.848-1.515c.122-.182.364-.363.607-.363h12.12c.243 0 .364.181.364.424l-.12 1.454c0 .243-.243.425-.425.425zM79.58 53.738c-3.819.97-6.425 1.697-10.182 2.666-.91.243-.97.303-1.758-.606-.909-1.03-1.576-1.697-2.848-2.303-3.819-1.878-7.516-1.333-10.97.91-4.121 2.666-6.242 6.605-6.182 11.514.06 4.849 3.394 8.849 8.182 9.516 4.121.545 7.576-.91 10.303-4 .545-.667 1.03-1.394 1.636-2.243H56.064c-1.272 0-1.575-.788-1.151-1.818.788-1.879 2.242-5.03 3.09-6.606.183-.364.607-.97 1.516-.97h22.06c-.12 1.637-.12 3.273-.363 4.91-.667 4.363-2.303 8.363-4.97 11.878-4.364 5.758-10.06 9.333-17.273 10.303-5.939.788-11.454-.364-16.302-4-4.485-3.394-7.03-7.879-7.697-13.454-.788-6.606 1.151-12.546 5.151-17.758 4.303-5.636 10-9.212 16.97-10.485 5.697-1.03 11.151-.363 16.06 2.97 3.212 2.121 5.515 5.03 7.03 8.545.364.546.122.849-.606 1.03z',\n key: 'path-1',\n },\n ],\n [\n 'path',\n {\n d: 'M99.64 87.253c-5.515-.122-10.546-1.697-14.788-5.334-3.576-3.09-5.818-7.03-6.545-11.697-1.091-6.848.787-12.909 4.909-18.302 4.424-5.819 9.757-8.849 16.97-10.122 6.181-1.09 12-.484 17.272 3.091 4.788 3.273 7.757 7.697 8.545 13.515 1.03 8.182-1.333 14.849-6.97 20.546-4 4.06-8.909 6.606-14.545 7.757-1.636.303-3.273.364-4.848.546zm14.424-24.485c-.06-.788-.06-1.394-.182-2-1.09-6-6.606-9.394-12.363-8.06-5.637 1.272-9.273 4.848-10.606 10.545-1.091 4.727 1.212 9.515 5.575 11.454 3.334 1.455 6.667 1.273 9.879-.363 4.788-2.485 7.394-6.364 7.697-11.576z',\n key: 'path-2',\n },\n ],\n]\n\nconst icon = createCustomLucideIcon('go', iconNode, {\n viewBox: '0 0 128 128',\n fill: 'currentColor',\n})\n\nexport { icon as default }\n"],"names":["iconNode","icon","createCustomLucideIcon"],"mappings":";AAGA,MAAMA,IAAqB;AAAA,EACzB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EACP;AAEJ,GAEMC,IAAOC,EAAuB,MAAMF,GAAU;AAAA,EAClD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;"}
@@ -2929,13 +2929,13 @@ const G4 = {
2929
2929
  }
2930
2930
  return t;
2931
2931
  }, lu = {
2932
- npm: () => import("./npm-UvfadGAl.mjs"),
2933
- pypi: () => import("./pypi-DX10SEq1.mjs"),
2934
- nuget: () => import("./nuget-CAb9Y_bT.mjs"),
2935
- go: () => import("./go--uba-LB-.mjs"),
2936
- gems: () => import("./gems-TBSqj4DF.mjs"),
2937
- maven: () => import("./maven-BdyALhSy.mjs"),
2938
- packagist: () => import("./packagist-B4ZVDGbG.mjs")
2932
+ npm: () => import("./npm-BDFJaX3L.mjs"),
2933
+ pypi: () => import("./pypi-DsQLFJX7.mjs"),
2934
+ nuget: () => import("./nuget-BbSKzjQO.mjs"),
2935
+ go: () => import("./go-BluVQOxl.mjs"),
2936
+ gems: () => import("./gems-C2etdIjl.mjs"),
2937
+ maven: () => import("./maven-CAbtSIph.mjs"),
2938
+ packagist: () => import("./packagist-CliUktil.mjs")
2939
2939
  };
2940
2940
  function H4() {
2941
2941
  return /* @__PURE__ */ u("div", {});
@@ -34693,26 +34693,24 @@ const hx = ({
34693
34693
  };
34694
34694
  hx.displayName = "AppLayout.Breadcrumb";
34695
34695
  const Rj = () => /* @__PURE__ */ u("span", { className: "text-muted-foreground typography-body-lg select-none", children: "/" }), wx = ({
34696
- children: A,
34697
- className: e,
34698
- active: t = !1,
34699
- disabled: n = !1,
34700
- onClick: o,
34696
+ as: A,
34697
+ children: e,
34698
+ className: t,
34699
+ active: n = !1,
34700
+ disabled: o = !1,
34701
34701
  ...r
34702
34702
  }) => /* @__PURE__ */ u(
34703
- zA.button,
34703
+ A || "a",
34704
34704
  {
34705
- disabled: n,
34706
34705
  className: nA(
34707
34706
  "typography-body-md text-muted-foreground cursor-pointer rounded-md px-1.5 select-none",
34708
- t && "text-foreground cursor-default",
34709
- !t && "hover:text-foreground hover:bg-accent",
34710
- n && "hover:text-muted-foreground cursor-default opacity-50 hover:bg-transparent",
34711
- e
34707
+ n && "text-foreground cursor-default",
34708
+ !n && "hover:text-foreground hover:bg-accent",
34709
+ o && "hover:text-muted-foreground cursor-default opacity-50 hover:bg-transparent",
34710
+ t
34712
34711
  ),
34713
- onClick: o,
34714
34712
  ...r,
34715
- children: A
34713
+ children: e
34716
34714
  }
34717
34715
  );
34718
34716
  wx.displayName = "AppLayout.BreadcrumbItem";
@@ -34768,37 +34766,37 @@ mx.displayName = "AppLayout.Header";
34768
34766
  const yx = ({ children: A, className: e, ...t }) => /* @__PURE__ */ u("nav", { className: nA("mt-3 flex flex-col items-start", e), ...t, children: A });
34769
34767
  yx.displayName = "AppLayout.Nav";
34770
34768
  const Mx = ({
34771
- title: A,
34772
- icon: e,
34773
- render: t,
34774
- className: n,
34775
- active: o,
34776
- disabled: r,
34777
- ...i
34769
+ as: A,
34770
+ title: e,
34771
+ icon: t,
34772
+ render: n,
34773
+ className: o,
34774
+ active: r,
34775
+ disabled: i,
34776
+ ...s
34778
34777
  }) => {
34779
- const { collapsed: s } = $r();
34780
- return t ? t({ title: A, icon: e, active: o, ...i }) : /* @__PURE__ */ u(eB, { children: /* @__PURE__ */ tA(tB, { children: [
34778
+ const { collapsed: a } = $r();
34779
+ return n ? n({ title: e, icon: t, active: r, ...s }) : /* @__PURE__ */ u(eB, { children: /* @__PURE__ */ tA(tB, { children: [
34781
34780
  /* @__PURE__ */ u(nB, { asChild: !0, children: /* @__PURE__ */ tA(
34782
- "button",
34781
+ A || "a",
34783
34782
  {
34784
- disabled: r,
34785
34783
  className: nA(
34786
34784
  "text-muted-foreground hover:text-foreground flex h-9 w-fit cursor-pointer items-center gap-3",
34787
- o && "text-foreground",
34788
- r && "hover:text-muted-foreground cursor-default opacity-50 hover:bg-transparent",
34789
- n
34785
+ r && "text-foreground",
34786
+ i && "hover:text-muted-foreground cursor-default opacity-50 hover:bg-transparent",
34787
+ o
34790
34788
  ),
34791
- ...i,
34789
+ ...s,
34792
34790
  children: [
34793
- /* @__PURE__ */ u(Ae, { name: e, className: "size-6", strokeWidth: 1.3 }),
34794
- s ? null : /* @__PURE__ */ u(
34791
+ /* @__PURE__ */ u(Ae, { name: t, className: "size-6", strokeWidth: 1.3 }),
34792
+ a ? null : /* @__PURE__ */ u(
34795
34793
  zA.span,
34796
34794
  {
34797
34795
  initial: { opacity: 0 },
34798
34796
  animate: { opacity: 1 },
34799
34797
  transition: { duration: 0.2 },
34800
34798
  className: "typography-body-sm",
34801
- children: A
34799
+ children: e
34802
34800
  }
34803
34801
  )
34804
34802
  ]
@@ -34809,10 +34807,10 @@ const Mx = ({
34809
34807
  {
34810
34808
  className: "bg-foreground text-background border-foreground flex flex-row items-center gap-2 text-sm",
34811
34809
  side: "right",
34812
- hidden: !s || r,
34810
+ hidden: !a || i,
34813
34811
  children: [
34814
34812
  /* @__PURE__ */ u(x7, { className: "fill-foreground" }),
34815
- A
34813
+ e
34816
34814
  ]
34817
34815
  }
34818
34816
  )
@@ -49618,4 +49616,4 @@ export {
49618
49616
  vL as y,
49619
49617
  trA as z
49620
49618
  };
49621
- //# sourceMappingURL=index-DqLwaWEQ.mjs.map
49619
+ //# sourceMappingURL=index-DANjdSF9.mjs.map