@medialane/ui 0.222.0 → 0.223.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/dist/components/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/drop/create/details-section.cjs +4 -3
- package/dist/components/drop/create/details-section.cjs.map +1 -1
- package/dist/components/drop/create/details-section.js +4 -3
- package/dist/components/drop/create/details-section.js.map +1 -1
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
|
|
7
7
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
|
|
7
7
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -24,6 +24,7 @@ __export(details_section_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(details_section_exports);
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
26
|
var import_lucide_react = require("lucide-react");
|
|
27
|
+
var import_sdk = require("@medialane/sdk");
|
|
27
28
|
var import_input = require("../../input.js");
|
|
28
29
|
var import_textarea = require("../../textarea.js");
|
|
29
30
|
var import_create_form_primitives = require("../../create-form-primitives.js");
|
|
@@ -49,7 +50,7 @@ function DetailsSection({ draft, setDraft, errors }) {
|
|
|
49
50
|
{
|
|
50
51
|
id: "drop-name",
|
|
51
52
|
value: draft.name,
|
|
52
|
-
maxLength:
|
|
53
|
+
maxLength: import_sdk.FIELD_LIMITS.name,
|
|
53
54
|
onChange: (e) => {
|
|
54
55
|
const name = e.target.value;
|
|
55
56
|
const auto = !draft.symbol || draft.symbol === (0, import_launchpad_defaults.suggestLaunchpadSymbol)(draft.name);
|
|
@@ -66,7 +67,7 @@ function DetailsSection({ draft, setDraft, errors }) {
|
|
|
66
67
|
{
|
|
67
68
|
id: "drop-symbol",
|
|
68
69
|
value: draft.symbol,
|
|
69
|
-
maxLength:
|
|
70
|
+
maxLength: import_sdk.FIELD_LIMITS.symbol,
|
|
70
71
|
className: "max-w-[10rem] uppercase",
|
|
71
72
|
onChange: (e) => setDraft({ symbol: e.target.value.toUpperCase().replace(/[^A-Z0-9]/g, "") })
|
|
72
73
|
}
|
|
@@ -75,7 +76,7 @@ function DetailsSection({ draft, setDraft, errors }) {
|
|
|
75
76
|
] }),
|
|
76
77
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
77
78
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { className: "text-sm font-medium", htmlFor: "drop-description", children: "Description" }),
|
|
78
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_textarea.Textarea, { id: "drop-description", value: draft.description, maxLength:
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_textarea.Textarea, { id: "drop-description", value: draft.description, maxLength: import_sdk.FIELD_LIMITS.description, rows: 3, onChange: (e) => setDraft({ description: e.target.value }) })
|
|
79
80
|
] }),
|
|
80
81
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3 border-t border-border/60 pt-4", children: [
|
|
81
82
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-sm font-medium", children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/drop/create/details-section.tsx"],"sourcesContent":["\"use client\";\n\nimport { FileText } from \"lucide-react\";\nimport { Input } from \"../../input.js\";\nimport { Textarea } from \"../../textarea.js\";\nimport { Section, ToggleGroup } from \"../../create-form-primitives.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../../select.js\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES } from \"../../../data/ip.js\";\nimport { suggestLaunchpadSymbol } from \"../../../utils/launchpad-defaults.js\";\nimport { FieldError, ImagePick, type SectionProps } from \"./artwork-section.js\";\n\nexport function DetailsSection({ draft, setDraft, errors }: SectionProps) {\n const license = draft.license;\n const setLicense = (patch: Partial<typeof license>) => setDraft({ license: { ...license, ...patch } });\n return (\n <Section title=\"Details\" icon={<FileText className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <p className=\"text-sm font-medium\">Cover image <span className=\"font-normal text-muted-foreground\">(optional — the artwork is used otherwise)</span></p>\n <ImagePick file={draft.cover} onPick={(f) => setDraft({ cover: f })} label=\"Choose a cover\" />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-name\">Name</label>\n <Input id=\"drop-name\" value={draft.name} maxLength={
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/drop/create/details-section.tsx"],"sourcesContent":["\"use client\";\n\nimport { FileText } from \"lucide-react\";\nimport { FIELD_LIMITS } from \"@medialane/sdk\";\nimport { Input } from \"../../input.js\";\nimport { Textarea } from \"../../textarea.js\";\nimport { Section, ToggleGroup } from \"../../create-form-primitives.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../../select.js\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES } from \"../../../data/ip.js\";\nimport { suggestLaunchpadSymbol } from \"../../../utils/launchpad-defaults.js\";\nimport { FieldError, ImagePick, type SectionProps } from \"./artwork-section.js\";\n\nexport function DetailsSection({ draft, setDraft, errors }: SectionProps) {\n const license = draft.license;\n const setLicense = (patch: Partial<typeof license>) => setDraft({ license: { ...license, ...patch } });\n return (\n <Section title=\"Details\" icon={<FileText className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <p className=\"text-sm font-medium\">Cover image <span className=\"font-normal text-muted-foreground\">(optional — the artwork is used otherwise)</span></p>\n <ImagePick file={draft.cover} onPick={(f) => setDraft({ cover: f })} label=\"Choose a cover\" />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-name\">Name</label>\n <Input id=\"drop-name\" value={draft.name} maxLength={FIELD_LIMITS.name}\n onChange={(e) => {\n const name = e.target.value;\n const auto = !draft.symbol || draft.symbol === suggestLaunchpadSymbol(draft.name);\n setDraft(auto ? { name, symbol: suggestLaunchpadSymbol(name) } : { name });\n }} />\n <FieldError message={errors.name} />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-symbol\">Symbol</label>\n <Input id=\"drop-symbol\" value={draft.symbol} maxLength={FIELD_LIMITS.symbol} className=\"max-w-[10rem] uppercase\"\n onChange={(e) => setDraft({ symbol: e.target.value.toUpperCase().replace(/[^A-Z0-9]/g, \"\") })} />\n <FieldError message={errors.symbol} />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-description\">Description</label>\n <Textarea id=\"drop-description\" value={draft.description} maxLength={FIELD_LIMITS.description} rows={3} onChange={(e) => setDraft({ description: e.target.value })} />\n </div>\n <div className=\"space-y-3 border-t border-border/60 pt-4\">\n <p className=\"text-sm font-medium\">License <span className=\"font-normal text-muted-foreground\">— saved with every token</span></p>\n <Select value={license.licenseType} onValueChange={(v) => {\n const def = LICENSE_TYPES.find((l) => l.value === v);\n setLicense(def ? { licenseType: v, commercialUse: def.commercialUse, derivatives: def.derivatives, attribution: def.attribution } : { licenseType: v });\n }}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{LICENSE_TYPES.map((l) => <SelectItem key={l.value} value={l.value}>{l.label}</SelectItem>)}</SelectContent>\n </Select>\n <p className=\"text-xs font-medium\">Commercial use</p>\n <ToggleGroup value={license.commercialUse} options={[\"Yes\", \"No\"]} onChange={(v) => setLicense({ commercialUse: v })} />\n <p className=\"text-xs font-medium\">Remixing</p>\n <ToggleGroup value={license.derivatives} options={DERIVATIVES_OPTIONS} onChange={(v) => setLicense({ derivatives: v })} />\n <p className=\"text-xs font-medium\">AI training</p>\n <ToggleGroup value={license.aiPolicy} options={AI_POLICIES} onChange={(v) => setLicense({ aiPolicy: v })} />\n <p className=\"text-xs font-medium\">Type</p>\n <Select value={license.ipType} onValueChange={(v) => setLicense({ ipType: v })}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{IP_TYPES.map((t) => <SelectItem key={t} value={t}>{t}</SelectItem>)}</SelectContent>\n </Select>\n </div>\n </Section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBmC;AAdnC,0BAAyB;AACzB,iBAA6B;AAC7B,mBAAsB;AACtB,sBAAyB;AACzB,oCAAqC;AACrC,oBAA8E;AAC9E,gBAA0E;AAC1E,gCAAuC;AACvC,6BAAyD;AAElD,SAAS,eAAe,EAAE,OAAO,UAAU,OAAO,GAAiB;AACxE,QAAM,UAAU,MAAM;AACtB,QAAM,a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AAE,CAAC,GAAG;AAAA,MACxH,4CAAC,OAAE,WAAU,uBAAsB,yBAAW;AAAA,MAC9C,4CAAC,6CAAY,OAAO,QAAQ,UAAU,SAAS,uBAAa,UAAU,CAAC,MAAM,WAAW,EAAE,UAAU,EAAE,CAAC,GAAG;AAAA,MAC1G,4CAAC,OAAE,WAAU,uBAAsB,kBAAI;AAAA,MACvC,6CAAC,wBAAO,OAAO,QAAQ,QAAQ,eAAe,CAAC,MAAM,WAAW,EAAE,QAAQ,EAAE,CAAC,GAC3E;AAAA,oDAAC,+BAAc,sDAAC,6BAAY,GAAE;AAAA,QAC9B,4CAAC,+BAAe,6BAAS,IAAI,CAAC,MAAM,4CAAC,4BAAmB,OAAO,GAAI,eAAd,CAAgB,CAAa,GAAE;AAAA,SACtF;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { FileText } from "lucide-react";
|
|
4
|
+
import { FIELD_LIMITS } from "@medialane/sdk";
|
|
4
5
|
import { Input } from "../../input.js";
|
|
5
6
|
import { Textarea } from "../../textarea.js";
|
|
6
7
|
import { Section, ToggleGroup } from "../../create-form-primitives.js";
|
|
@@ -26,7 +27,7 @@ function DetailsSection({ draft, setDraft, errors }) {
|
|
|
26
27
|
{
|
|
27
28
|
id: "drop-name",
|
|
28
29
|
value: draft.name,
|
|
29
|
-
maxLength:
|
|
30
|
+
maxLength: FIELD_LIMITS.name,
|
|
30
31
|
onChange: (e) => {
|
|
31
32
|
const name = e.target.value;
|
|
32
33
|
const auto = !draft.symbol || draft.symbol === suggestLaunchpadSymbol(draft.name);
|
|
@@ -43,7 +44,7 @@ function DetailsSection({ draft, setDraft, errors }) {
|
|
|
43
44
|
{
|
|
44
45
|
id: "drop-symbol",
|
|
45
46
|
value: draft.symbol,
|
|
46
|
-
maxLength:
|
|
47
|
+
maxLength: FIELD_LIMITS.symbol,
|
|
47
48
|
className: "max-w-[10rem] uppercase",
|
|
48
49
|
onChange: (e) => setDraft({ symbol: e.target.value.toUpperCase().replace(/[^A-Z0-9]/g, "") })
|
|
49
50
|
}
|
|
@@ -52,7 +53,7 @@ function DetailsSection({ draft, setDraft, errors }) {
|
|
|
52
53
|
] }),
|
|
53
54
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
54
55
|
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", htmlFor: "drop-description", children: "Description" }),
|
|
55
|
-
/* @__PURE__ */ jsx(Textarea, { id: "drop-description", value: draft.description, maxLength:
|
|
56
|
+
/* @__PURE__ */ jsx(Textarea, { id: "drop-description", value: draft.description, maxLength: FIELD_LIMITS.description, rows: 3, onChange: (e) => setDraft({ description: e.target.value }) })
|
|
56
57
|
] }),
|
|
57
58
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 border-t border-border/60 pt-4", children: [
|
|
58
59
|
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium", children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/drop/create/details-section.tsx"],"sourcesContent":["\"use client\";\n\nimport { FileText } from \"lucide-react\";\nimport { Input } from \"../../input.js\";\nimport { Textarea } from \"../../textarea.js\";\nimport { Section, ToggleGroup } from \"../../create-form-primitives.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../../select.js\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES } from \"../../../data/ip.js\";\nimport { suggestLaunchpadSymbol } from \"../../../utils/launchpad-defaults.js\";\nimport { FieldError, ImagePick, type SectionProps } from \"./artwork-section.js\";\n\nexport function DetailsSection({ draft, setDraft, errors }: SectionProps) {\n const license = draft.license;\n const setLicense = (patch: Partial<typeof license>) => setDraft({ license: { ...license, ...patch } });\n return (\n <Section title=\"Details\" icon={<FileText className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <p className=\"text-sm font-medium\">Cover image <span className=\"font-normal text-muted-foreground\">(optional — the artwork is used otherwise)</span></p>\n <ImagePick file={draft.cover} onPick={(f) => setDraft({ cover: f })} label=\"Choose a cover\" />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-name\">Name</label>\n <Input id=\"drop-name\" value={draft.name} maxLength={
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/drop/create/details-section.tsx"],"sourcesContent":["\"use client\";\n\nimport { FileText } from \"lucide-react\";\nimport { FIELD_LIMITS } from \"@medialane/sdk\";\nimport { Input } from \"../../input.js\";\nimport { Textarea } from \"../../textarea.js\";\nimport { Section, ToggleGroup } from \"../../create-form-primitives.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../../select.js\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES } from \"../../../data/ip.js\";\nimport { suggestLaunchpadSymbol } from \"../../../utils/launchpad-defaults.js\";\nimport { FieldError, ImagePick, type SectionProps } from \"./artwork-section.js\";\n\nexport function DetailsSection({ draft, setDraft, errors }: SectionProps) {\n const license = draft.license;\n const setLicense = (patch: Partial<typeof license>) => setDraft({ license: { ...license, ...patch } });\n return (\n <Section title=\"Details\" icon={<FileText className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <p className=\"text-sm font-medium\">Cover image <span className=\"font-normal text-muted-foreground\">(optional — the artwork is used otherwise)</span></p>\n <ImagePick file={draft.cover} onPick={(f) => setDraft({ cover: f })} label=\"Choose a cover\" />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-name\">Name</label>\n <Input id=\"drop-name\" value={draft.name} maxLength={FIELD_LIMITS.name}\n onChange={(e) => {\n const name = e.target.value;\n const auto = !draft.symbol || draft.symbol === suggestLaunchpadSymbol(draft.name);\n setDraft(auto ? { name, symbol: suggestLaunchpadSymbol(name) } : { name });\n }} />\n <FieldError message={errors.name} />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-symbol\">Symbol</label>\n <Input id=\"drop-symbol\" value={draft.symbol} maxLength={FIELD_LIMITS.symbol} className=\"max-w-[10rem] uppercase\"\n onChange={(e) => setDraft({ symbol: e.target.value.toUpperCase().replace(/[^A-Z0-9]/g, \"\") })} />\n <FieldError message={errors.symbol} />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-sm font-medium\" htmlFor=\"drop-description\">Description</label>\n <Textarea id=\"drop-description\" value={draft.description} maxLength={FIELD_LIMITS.description} rows={3} onChange={(e) => setDraft({ description: e.target.value })} />\n </div>\n <div className=\"space-y-3 border-t border-border/60 pt-4\">\n <p className=\"text-sm font-medium\">License <span className=\"font-normal text-muted-foreground\">— saved with every token</span></p>\n <Select value={license.licenseType} onValueChange={(v) => {\n const def = LICENSE_TYPES.find((l) => l.value === v);\n setLicense(def ? { licenseType: v, commercialUse: def.commercialUse, derivatives: def.derivatives, attribution: def.attribution } : { licenseType: v });\n }}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{LICENSE_TYPES.map((l) => <SelectItem key={l.value} value={l.value}>{l.label}</SelectItem>)}</SelectContent>\n </Select>\n <p className=\"text-xs font-medium\">Commercial use</p>\n <ToggleGroup value={license.commercialUse} options={[\"Yes\", \"No\"]} onChange={(v) => setLicense({ commercialUse: v })} />\n <p className=\"text-xs font-medium\">Remixing</p>\n <ToggleGroup value={license.derivatives} options={DERIVATIVES_OPTIONS} onChange={(v) => setLicense({ derivatives: v })} />\n <p className=\"text-xs font-medium\">AI training</p>\n <ToggleGroup value={license.aiPolicy} options={AI_POLICIES} onChange={(v) => setLicense({ aiPolicy: v })} />\n <p className=\"text-xs font-medium\">Type</p>\n <Select value={license.ipType} onValueChange={(v) => setLicense({ ipType: v })}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{IP_TYPES.map((t) => <SelectItem key={t} value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AAC,cAAyB,OAAO,EAAE,OAAQ,YAAE,SAA5B,EAAE,KAAgC,CAAa,GAAE;AAAA,SAC7G;AAAA,MACA,oBAAC,OAAE,WAAU,uBAAsB,4BAAc;AAAA,MACjD,oBAAC,eAAY,OAAO,QAAQ,eAAe,SAAS,CAAC,OAAO,IAAI,GAAG,UAAU,CAAC,MAAM,WAAW,EAAE,eAAe,EAAE,CAAC,GAAG;AAAA,MACtH,oBAAC,OAAE,WAAU,uBAAsB,sBAAQ;AAAA,MAC3C,oBAAC,eAAY,OAAO,QAAQ,aAAa,SAAS,qBAAqB,UAAU,CAAC,MAAM,WAAW,EAAE,aAAa,EAAE,CAAC,GAAG;AAAA,MACxH,oBAAC,OAAE,WAAU,uBAAsB,yBAAW;AAAA,MAC9C,oBAAC,eAAY,OAAO,QAAQ,UAAU,SAAS,aAAa,UAAU,CAAC,MAAM,WAAW,EAAE,UAAU,EAAE,CAAC,GAAG;AAAA,MAC1G,oBAAC,OAAE,WAAU,uBAAsB,kBAAI;AAAA,MACvC,qBAAC,UAAO,OAAO,QAAQ,QAAQ,eAAe,CAAC,MAAM,WAAW,EAAE,QAAQ,EAAE,CAAC,GAC3E;AAAA,4BAAC,iBAAc,8BAAC,eAAY,GAAE;AAAA,QAC9B,oBAAC,iBAAe,mBAAS,IAAI,CAAC,MAAM,oBAAC,cAAmB,OAAO,GAAI,eAAd,CAAgB,CAAa,GAAE;AAAA,SACtF;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { FastMintProps } from './types.cjs';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
import '@medialane/sdk';
|
|
6
6
|
import '@medialane/sdk/starknet';
|
|
7
7
|
|
|
8
|
-
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> |
|
|
8
|
+
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
9
9
|
|
|
10
10
|
export { FastMint };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { FastMintProps } from './types.js';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
import '@medialane/sdk';
|
|
6
6
|
import '@medialane/sdk/starknet';
|
|
7
7
|
|
|
8
|
-
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> |
|
|
8
|
+
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
9
9
|
|
|
10
10
|
export { FastMint };
|
|
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
10
10
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
11
11
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const sheetVariants: (props?: ({
|
|
13
|
-
side?: "
|
|
13
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
16
|
overlayClassName?: string;
|
|
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
10
10
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
11
11
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const sheetVariants: (props?: ({
|
|
13
|
-
side?: "
|
|
13
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
16
|
overlayClassName?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medialane/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.223.0",
|
|
4
4
|
"description": "Shared UI components for Medialane apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"preview": "vite --config preview/vite.config.ts"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@medialane/sdk": ">=0.
|
|
54
|
+
"@medialane/sdk": ">=0.201.0 <0.202.0",
|
|
55
55
|
"@radix-ui/react-checkbox": ">=1.1.0",
|
|
56
56
|
"@radix-ui/react-collapsible": ">=1.1.0",
|
|
57
57
|
"@radix-ui/react-dialog": ">=1.1.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@happy-dom/global-registrator": "^20.14.5",
|
|
86
|
-
"@medialane/sdk": "0.
|
|
86
|
+
"@medialane/sdk": "0.201.0",
|
|
87
87
|
"@radix-ui/react-checkbox": "^1.3.8",
|
|
88
88
|
"@radix-ui/react-collapsible": "^1.1.17",
|
|
89
89
|
"@radix-ui/react-dialog": "^1.1.20",
|