@medialane/ui 0.400.0 → 0.401.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,7 +1,7 @@
1
1
  import * as input_otp from 'input-otp';
2
2
  import * as React from 'react';
3
3
 
4
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "maxLength" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
4
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "maxLength" | "value" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
5
5
  value?: string;
6
6
  onChange?: (newValue: string) => unknown;
7
7
  maxLength: number;
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
14
14
  } & {
15
15
  render: (props: input_otp.RenderProps) => React.ReactNode;
16
16
  children?: never;
17
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "maxLength" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
17
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "maxLength" | "value" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
18
18
  value?: string;
19
19
  onChange?: (newValue: string) => unknown;
20
20
  maxLength: number;
@@ -1,7 +1,7 @@
1
1
  import * as input_otp from 'input-otp';
2
2
  import * as React from 'react';
3
3
 
4
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "maxLength" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
4
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "maxLength" | "value" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
5
5
  value?: string;
6
6
  onChange?: (newValue: string) => unknown;
7
7
  maxLength: number;
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
14
14
  } & {
15
15
  render: (props: input_otp.RenderProps) => React.ReactNode;
16
16
  children?: never;
17
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "maxLength" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
17
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "maxLength" | "value" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
18
18
  value?: string;
19
19
  onChange?: (newValue: string) => unknown;
20
20
  maxLength: number;
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "default" | "secondary" | "soft" | "destructive" | null | undefined;
7
+ variant?: "default" | "destructive" | "soft" | "secondary" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  }
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "default" | "secondary" | "soft" | "destructive" | null | undefined;
7
+ variant?: "default" | "destructive" | "soft" | "secondary" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  }
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "link" | "default" | "secondary" | "soft" | "destructive" | "ghost" | "tonal" | null | undefined;
7
- size?: "default" | "icon" | "sm" | "lg" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "soft" | "secondary" | "ghost" | "tonal" | null | undefined;
7
+ size?: "lg" | "sm" | "default" | "icon" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
10
  asChild?: boolean;
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "link" | "default" | "secondary" | "soft" | "destructive" | "ghost" | "tonal" | null | undefined;
7
- size?: "default" | "icon" | "sm" | "lg" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "soft" | "secondary" | "ghost" | "tonal" | null | undefined;
7
+ size?: "lg" | "sm" | "default" | "icon" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
10
  asChild?: boolean;
@@ -23,12 +23,16 @@ __export(drop_detail_page_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(drop_detail_page_exports);
25
25
  var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_react = require("react");
26
27
  var import_drop_page = require("./page/drop-page.js");
27
28
  var import_page_container = require("../page-container.js");
28
29
  var import_router = require("../router.js");
29
- function DropDetailPage({ contract }) {
30
+ function DropPageAtTab({ contract }) {
30
31
  const tab = (0, import_router.useSearchParams)()?.get("tab") ?? void 0;
31
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_page_container.PageContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_page.DropPage, { contract, initialTab: tab, portfolioHref: "/portfolio" }) });
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_page.DropPage, { contract, initialTab: tab, portfolioHref: "/portfolio" });
33
+ }
34
+ function DropDetailPage({ contract }) {
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_page_container.PageContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_page.DropPage, { contract, portfolioHref: "/portfolio" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropPageAtTab, { contract }) }) });
32
36
  }
33
37
  // Annotate the CommonJS export names for ESM import in node:
34
38
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/drop/drop-detail-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { DropPage } from \"./page/drop-page.js\";\nimport { PageContainer } from \"../page-container.js\";\nimport { useSearchParams } from \"../router.js\";\n\nexport function DropDetailPage({ contract }: { contract: string }) {\n const tab = useSearchParams()?.get(\"tab\") ?? undefined;\n return (\n <PageContainer>\n <DropPage contract={contract} initialTab={tab} portfolioHref=\"/portfolio\" />\n </PageContainer>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUM;AARN,uBAAyB;AACzB,4BAA8B;AAC9B,oBAAgC;AAEzB,SAAS,eAAe,EAAE,SAAS,GAAyB;AACjE,QAAM,UAAM,+BAAgB,GAAG,IAAI,KAAK,KAAK;AAC7C,SACE,4CAAC,uCACC,sDAAC,6BAAS,UAAoB,YAAY,KAAK,eAAc,cAAa,GAC5E;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/drop/drop-detail-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { Suspense } from \"react\";\nimport { DropPage } from \"./page/drop-page.js\";\nimport { PageContainer } from \"../page-container.js\";\nimport { useSearchParams } from \"../router.js\";\n\nfunction DropPageAtTab({ contract }: { contract: string }) {\n const tab = useSearchParams()?.get(\"tab\") ?? undefined;\n return <DropPage contract={contract} initialTab={tab} portfolioHref=\"/portfolio\" />;\n}\n\nexport function DropDetailPage({ contract }: { contract: string }) {\n return (\n <PageContainer>\n <Suspense fallback={<DropPage contract={contract} portfolioHref=\"/portfolio\" />}>\n <DropPageAtTab contract={contract} />\n </Suspense>\n </PageContainer>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASS;AAPT,mBAAyB;AACzB,uBAAyB;AACzB,4BAA8B;AAC9B,oBAAgC;AAEhC,SAAS,cAAc,EAAE,SAAS,GAAyB;AACzD,QAAM,UAAM,+BAAgB,GAAG,IAAI,KAAK,KAAK;AAC7C,SAAO,4CAAC,6BAAS,UAAoB,YAAY,KAAK,eAAc,cAAa;AACnF;AAEO,SAAS,eAAe,EAAE,SAAS,GAAyB;AACjE,SACE,4CAAC,uCACC,sDAAC,yBAAS,UAAU,4CAAC,6BAAS,UAAoB,eAAc,cAAa,GAC3E,sDAAC,iBAAc,UAAoB,GACrC,GACF;AAEJ;","names":[]}
@@ -1,11 +1,15 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { Suspense } from "react";
3
4
  import { DropPage } from "./page/drop-page.js";
4
5
  import { PageContainer } from "../page-container.js";
5
6
  import { useSearchParams } from "../router.js";
6
- function DropDetailPage({ contract }) {
7
+ function DropPageAtTab({ contract }) {
7
8
  const tab = useSearchParams()?.get("tab") ?? void 0;
8
- return /* @__PURE__ */ jsx(PageContainer, { children: /* @__PURE__ */ jsx(DropPage, { contract, initialTab: tab, portfolioHref: "/portfolio" }) });
9
+ return /* @__PURE__ */ jsx(DropPage, { contract, initialTab: tab, portfolioHref: "/portfolio" });
10
+ }
11
+ function DropDetailPage({ contract }) {
12
+ return /* @__PURE__ */ jsx(PageContainer, { children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(DropPage, { contract, portfolioHref: "/portfolio" }), children: /* @__PURE__ */ jsx(DropPageAtTab, { contract }) }) });
9
13
  }
10
14
  export {
11
15
  DropDetailPage
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/drop/drop-detail-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { DropPage } from \"./page/drop-page.js\";\nimport { PageContainer } from \"../page-container.js\";\nimport { useSearchParams } from \"../router.js\";\n\nexport function DropDetailPage({ contract }: { contract: string }) {\n const tab = useSearchParams()?.get(\"tab\") ?? undefined;\n return (\n <PageContainer>\n <DropPage contract={contract} initialTab={tab} portfolioHref=\"/portfolio\" />\n </PageContainer>\n );\n}\n"],"mappings":";AAUM;AARN,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAEzB,SAAS,eAAe,EAAE,SAAS,GAAyB;AACjE,QAAM,MAAM,gBAAgB,GAAG,IAAI,KAAK,KAAK;AAC7C,SACE,oBAAC,iBACC,8BAAC,YAAS,UAAoB,YAAY,KAAK,eAAc,cAAa,GAC5E;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/drop/drop-detail-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { Suspense } from \"react\";\nimport { DropPage } from \"./page/drop-page.js\";\nimport { PageContainer } from \"../page-container.js\";\nimport { useSearchParams } from \"../router.js\";\n\nfunction DropPageAtTab({ contract }: { contract: string }) {\n const tab = useSearchParams()?.get(\"tab\") ?? undefined;\n return <DropPage contract={contract} initialTab={tab} portfolioHref=\"/portfolio\" />;\n}\n\nexport function DropDetailPage({ contract }: { contract: string }) {\n return (\n <PageContainer>\n <Suspense fallback={<DropPage contract={contract} portfolioHref=\"/portfolio\" />}>\n <DropPageAtTab contract={contract} />\n </Suspense>\n </PageContainer>\n );\n}\n"],"mappings":";AASS;AAPT,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAEhC,SAAS,cAAc,EAAE,SAAS,GAAyB;AACzD,QAAM,MAAM,gBAAgB,GAAG,IAAI,KAAK,KAAK;AAC7C,SAAO,oBAAC,YAAS,UAAoB,YAAY,KAAK,eAAc,cAAa;AACnF;AAEO,SAAS,eAAe,EAAE,SAAS,GAAyB;AACjE,SACE,oBAAC,iBACC,8BAAC,YAAS,UAAU,oBAAC,YAAS,UAAoB,eAAc,cAAa,GAC3E,8BAAC,iBAAc,UAAoB,GACrC,GACF;AAEJ;","names":[]}
@@ -15,11 +15,11 @@ declare const editionMintSchema: z.ZodObject<{
15
15
  aiPolicy: z.ZodEnum<["Allowed", "Not Allowed", "Training Only"]>;
16
16
  royalty: z.ZodNumber;
17
17
  }, "strip", z.ZodTypeAny, {
18
- value: string;
18
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
19
19
  name: string;
20
+ value: string;
20
21
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
21
22
  recipient: string;
22
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
23
23
  licenseType: string;
24
24
  commercialUse: "Yes" | "No";
25
25
  attribution: "Required" | "Not Required";
@@ -29,11 +29,11 @@ declare const editionMintSchema: z.ZodObject<{
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
32
- value: string;
32
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
33
33
  name: string;
34
+ value: string;
34
35
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
35
36
  recipient: string;
36
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
37
37
  licenseType: string;
38
38
  commercialUse: "Yes" | "No";
39
39
  attribution: "Required" | "Not Required";
@@ -15,11 +15,11 @@ declare const editionMintSchema: z.ZodObject<{
15
15
  aiPolicy: z.ZodEnum<["Allowed", "Not Allowed", "Training Only"]>;
16
16
  royalty: z.ZodNumber;
17
17
  }, "strip", z.ZodTypeAny, {
18
- value: string;
18
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
19
19
  name: string;
20
+ value: string;
20
21
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
21
22
  recipient: string;
22
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
23
23
  licenseType: string;
24
24
  commercialUse: "Yes" | "No";
25
25
  attribution: "Required" | "Not Required";
@@ -29,11 +29,11 @@ declare const editionMintSchema: z.ZodObject<{
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
32
- value: string;
32
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
33
33
  name: string;
34
+ value: string;
34
35
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
35
36
  recipient: string;
36
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
37
37
  licenseType: string;
38
38
  commercialUse: "Yes" | "No";
39
39
  attribution: "Required" | "Not Required";
@@ -44,9 +44,9 @@ function localizeHref(href, locale) {
44
44
  if (typeof href.pathname === "string") return { ...href, pathname: (0, import_with_locale.withLocale)(href.pathname, locale) };
45
45
  return href;
46
46
  }
47
- const Link = (0, import_react.forwardRef)(function Link2({ href, ...props }, ref) {
47
+ const Link = (0, import_react.forwardRef)(function Link2({ href, prefetch = false, ...props }, ref) {
48
48
  const locale = (0, import_provider.useLocale)();
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { ref, href: localizeHref(href, locale), ...props });
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { ref, href: localizeHref(href, locale), prefetch, ...props });
50
50
  });
51
51
  var link_default = Link;
52
52
  //# sourceMappingURL=link.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/link.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type ComponentPropsWithoutRef } from \"react\";\nimport NextLink from \"next/link\";\nimport { DEFAULT_LOCALE } from \"../i18n/locales.js\";\nimport { useLocale } from \"../i18n/provider.js\";\nimport { withLocale } from \"../i18n/with-locale.js\";\n\ntype LinkProps = ComponentPropsWithoutRef<typeof NextLink>;\n\nfunction localizeHref(href: LinkProps[\"href\"], locale: string): LinkProps[\"href\"] {\n if (locale === DEFAULT_LOCALE) return href;\n if (typeof href === \"string\") return withLocale(href, locale);\n if (typeof href.pathname === \"string\") return { ...href, pathname: withLocale(href.pathname, locale) };\n return href;\n}\n\nconst Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link({ href, ...props }, ref) {\n const locale = useLocale();\n return <NextLink ref={ref} href={localizeHref(href, locale)} {...props} />;\n});\n\nexport default Link;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBS;AAjBT,mBAA0D;AAC1D,kBAAqB;AACrB,qBAA+B;AAC/B,sBAA0B;AAC1B,yBAA2B;AAI3B,SAAS,aAAa,MAAyB,QAAmC;AAChF,MAAI,WAAW,8BAAgB,QAAO;AACtC,MAAI,OAAO,SAAS,SAAU,YAAO,+BAAW,MAAM,MAAM;AAC5D,MAAI,OAAO,KAAK,aAAa,SAAU,QAAO,EAAE,GAAG,MAAM,cAAU,+BAAW,KAAK,UAAU,MAAM,EAAE;AACrG,SAAO;AACT;AAEA,MAAM,WAAO,yBAAyC,SAASA,MAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK;AAC3F,QAAM,aAAS,2BAAU;AACzB,SAAO,4CAAC,YAAAC,SAAA,EAAS,KAAU,MAAM,aAAa,MAAM,MAAM,GAAI,GAAG,OAAO;AAC1E,CAAC;AAED,IAAO,eAAQ;","names":["Link","NextLink"]}
1
+ {"version":3,"sources":["../../src/components/link.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type ComponentPropsWithoutRef } from \"react\";\nimport NextLink from \"next/link\";\nimport { DEFAULT_LOCALE } from \"../i18n/locales.js\";\nimport { useLocale } from \"../i18n/provider.js\";\nimport { withLocale } from \"../i18n/with-locale.js\";\n\ntype LinkProps = ComponentPropsWithoutRef<typeof NextLink>;\n\nfunction localizeHref(href: LinkProps[\"href\"], locale: string): LinkProps[\"href\"] {\n if (locale === DEFAULT_LOCALE) return href;\n if (typeof href === \"string\") return withLocale(href, locale);\n if (typeof href.pathname === \"string\") return { ...href, pathname: withLocale(href.pathname, locale) };\n return href;\n}\n\nconst Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link({ href, prefetch = false, ...props }, ref) {\n const locale = useLocale();\n return <NextLink ref={ref} href={localizeHref(href, locale)} prefetch={prefetch} {...props} />;\n});\n\nexport default Link;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBS;AAjBT,mBAA0D;AAC1D,kBAAqB;AACrB,qBAA+B;AAC/B,sBAA0B;AAC1B,yBAA2B;AAI3B,SAAS,aAAa,MAAyB,QAAmC;AAChF,MAAI,WAAW,8BAAgB,QAAO;AACtC,MAAI,OAAO,SAAS,SAAU,YAAO,+BAAW,MAAM,MAAM;AAC5D,MAAI,OAAO,KAAK,aAAa,SAAU,QAAO,EAAE,GAAG,MAAM,cAAU,+BAAW,KAAK,UAAU,MAAM,EAAE;AACrG,SAAO;AACT;AAEA,MAAM,WAAO,yBAAyC,SAASA,MAAK,EAAE,MAAM,WAAW,OAAO,GAAG,MAAM,GAAG,KAAK;AAC7G,QAAM,aAAS,2BAAU;AACzB,SAAO,4CAAC,YAAAC,SAAA,EAAS,KAAU,MAAM,aAAa,MAAM,MAAM,GAAG,UAAqB,GAAG,OAAO;AAC9F,CAAC;AAED,IAAO,eAAQ;","names":["Link","NextLink"]}
@@ -11,9 +11,9 @@ function localizeHref(href, locale) {
11
11
  if (typeof href.pathname === "string") return { ...href, pathname: withLocale(href.pathname, locale) };
12
12
  return href;
13
13
  }
14
- const Link = forwardRef(function Link2({ href, ...props }, ref) {
14
+ const Link = forwardRef(function Link2({ href, prefetch = false, ...props }, ref) {
15
15
  const locale = useLocale();
16
- return /* @__PURE__ */ jsx(NextLink, { ref, href: localizeHref(href, locale), ...props });
16
+ return /* @__PURE__ */ jsx(NextLink, { ref, href: localizeHref(href, locale), prefetch, ...props });
17
17
  });
18
18
  var link_default = Link;
19
19
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/link.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type ComponentPropsWithoutRef } from \"react\";\nimport NextLink from \"next/link\";\nimport { DEFAULT_LOCALE } from \"../i18n/locales.js\";\nimport { useLocale } from \"../i18n/provider.js\";\nimport { withLocale } from \"../i18n/with-locale.js\";\n\ntype LinkProps = ComponentPropsWithoutRef<typeof NextLink>;\n\nfunction localizeHref(href: LinkProps[\"href\"], locale: string): LinkProps[\"href\"] {\n if (locale === DEFAULT_LOCALE) return href;\n if (typeof href === \"string\") return withLocale(href, locale);\n if (typeof href.pathname === \"string\") return { ...href, pathname: withLocale(href.pathname, locale) };\n return href;\n}\n\nconst Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link({ href, ...props }, ref) {\n const locale = useLocale();\n return <NextLink ref={ref} href={localizeHref(href, locale)} {...props} />;\n});\n\nexport default Link;\n"],"mappings":";AAmBS;AAjBT,SAAS,kBAAiD;AAC1D,OAAO,cAAc;AACrB,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAI3B,SAAS,aAAa,MAAyB,QAAmC;AAChF,MAAI,WAAW,eAAgB,QAAO;AACtC,MAAI,OAAO,SAAS,SAAU,QAAO,WAAW,MAAM,MAAM;AAC5D,MAAI,OAAO,KAAK,aAAa,SAAU,QAAO,EAAE,GAAG,MAAM,UAAU,WAAW,KAAK,UAAU,MAAM,EAAE;AACrG,SAAO;AACT;AAEA,MAAM,OAAO,WAAyC,SAASA,MAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK;AAC3F,QAAM,SAAS,UAAU;AACzB,SAAO,oBAAC,YAAS,KAAU,MAAM,aAAa,MAAM,MAAM,GAAI,GAAG,OAAO;AAC1E,CAAC;AAED,IAAO,eAAQ;","names":["Link"]}
1
+ {"version":3,"sources":["../../src/components/link.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type ComponentPropsWithoutRef } from \"react\";\nimport NextLink from \"next/link\";\nimport { DEFAULT_LOCALE } from \"../i18n/locales.js\";\nimport { useLocale } from \"../i18n/provider.js\";\nimport { withLocale } from \"../i18n/with-locale.js\";\n\ntype LinkProps = ComponentPropsWithoutRef<typeof NextLink>;\n\nfunction localizeHref(href: LinkProps[\"href\"], locale: string): LinkProps[\"href\"] {\n if (locale === DEFAULT_LOCALE) return href;\n if (typeof href === \"string\") return withLocale(href, locale);\n if (typeof href.pathname === \"string\") return { ...href, pathname: withLocale(href.pathname, locale) };\n return href;\n}\n\nconst Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link({ href, prefetch = false, ...props }, ref) {\n const locale = useLocale();\n return <NextLink ref={ref} href={localizeHref(href, locale)} prefetch={prefetch} {...props} />;\n});\n\nexport default Link;\n"],"mappings":";AAmBS;AAjBT,SAAS,kBAAiD;AAC1D,OAAO,cAAc;AACrB,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAI3B,SAAS,aAAa,MAAyB,QAAmC;AAChF,MAAI,WAAW,eAAgB,QAAO;AACtC,MAAI,OAAO,SAAS,SAAU,QAAO,WAAW,MAAM,MAAM;AAC5D,MAAI,OAAO,KAAK,aAAa,SAAU,QAAO,EAAE,GAAG,MAAM,UAAU,WAAW,KAAK,UAAU,MAAM,EAAE;AACrG,SAAO;AACT;AAEA,MAAM,OAAO,WAAyC,SAASA,MAAK,EAAE,MAAM,WAAW,OAAO,GAAG,MAAM,GAAG,KAAK;AAC7G,QAAM,SAAS,UAAU;AACzB,SAAO,oBAAC,YAAS,KAAU,MAAM,aAAa,MAAM,MAAM,GAAG,UAAqB,GAAG,OAAO;AAC9F,CAAC;AAED,IAAO,eAAQ;","names":["Link"]}
@@ -7,7 +7,7 @@ declare function useTokenBalance(symbol: string | null, holderAddress: string |
7
7
  rawBalance: bigint | null;
8
8
  isLoading: boolean;
9
9
  error: any;
10
- decimals: 8 | 6 | 18;
10
+ decimals: 6 | 8 | 18;
11
11
  };
12
12
  declare function hasSufficientBalance(rawBalance: bigint | null, requiredHuman: string, decimals: number): boolean | null;
13
13
 
@@ -7,7 +7,7 @@ declare function useTokenBalance(symbol: string | null, holderAddress: string |
7
7
  rawBalance: bigint | null;
8
8
  isLoading: boolean;
9
9
  error: any;
10
- decimals: 8 | 6 | 18;
10
+ decimals: 6 | 8 | 18;
11
11
  };
12
12
  declare function hasSufficientBalance(rawBalance: bigint | null, requiredHuman: string, decimals: number): boolean | null;
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medialane/ui",
3
- "version": "0.400.0",
3
+ "version": "0.401.0",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,