@medialane/ui 0.349.0 → 0.350.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/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/gradient-button.cjs +24 -10
- package/dist/components/gradient-button.cjs.map +1 -1
- package/dist/components/gradient-button.d.cts +2 -1
- package/dist/components/gradient-button.d.ts +2 -1
- package/dist/components/gradient-button.js +24 -10
- package/dist/components/gradient-button.js.map +1 -1
- package/dist/components/launchpad/edition-mint-schema.d.cts +4 -4
- package/dist/components/launchpad/edition-mint-schema.d.ts +4 -4
- package/dist/components/marketplace-dialog-primitives.cjs +2 -2
- package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
- package/dist/components/marketplace-dialog-primitives.d.cts +1 -2
- package/dist/components/marketplace-dialog-primitives.d.ts +1 -2
- package/dist/components/marketplace-dialog-primitives.js +2 -2
- package/dist/components/marketplace-dialog-primitives.js.map +1 -1
- package/dist/components/order-fields.cjs +100 -0
- package/dist/components/order-fields.cjs.map +1 -0
- package/dist/components/order-fields.d.cts +20 -0
- package/dist/components/order-fields.d.ts +20 -0
- package/dist/components/order-fields.js +76 -0
- package/dist/components/order-fields.js.map +1 -0
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/index.cjs +19 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
- package/dist/utils/order-form.cjs +57 -0
- package/dist/utils/order-form.cjs.map +1 -0
- package/dist/utils/order-form.d.cts +35 -0
- package/dist/utils/order-form.d.ts +35 -0
- package/dist/utils/order-form.js +21 -0
- package/dist/utils/order-form.js.map +1 -0
- package/dist/utils/use-session.cjs +65 -0
- package/dist/utils/use-session.cjs.map +1 -0
- package/dist/utils/use-session.d.cts +11 -0
- package/dist/utils/use-session.d.ts +11 -0
- package/dist/utils/use-session.js +28 -0
- package/dist/utils/use-session.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var order_fields_exports = {};
|
|
21
|
+
__export(order_fields_exports, {
|
|
22
|
+
OrderFields: () => OrderFields
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(order_fields_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_form = require("./form.js");
|
|
27
|
+
var import_input = require("./input.js");
|
|
28
|
+
var import_marketplace_dialog_primitives = require("./marketplace-dialog-primitives.js");
|
|
29
|
+
var import_order_form = require("../utils/order-form.js");
|
|
30
|
+
function OrderFields({ form, durationOptions, busy, priceLabel, quantity }) {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
32
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
33
|
+
import_form.FormField,
|
|
34
|
+
{
|
|
35
|
+
control: form.control,
|
|
36
|
+
name: "price",
|
|
37
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: priceLabel }),
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
+
import_input.Input,
|
|
41
|
+
{
|
|
42
|
+
type: "number",
|
|
43
|
+
step: "any",
|
|
44
|
+
placeholder: "0.00",
|
|
45
|
+
className: "h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40",
|
|
46
|
+
disabled: busy,
|
|
47
|
+
...field
|
|
48
|
+
}
|
|
49
|
+
) }),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
51
|
+
] })
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
+
import_form.FormField,
|
|
56
|
+
{
|
|
57
|
+
control: form.control,
|
|
58
|
+
name: "currency",
|
|
59
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Currency" }),
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_marketplace_dialog_primitives.CurrencyPicker, { currencies: import_order_form.LISTABLE_CURRENCIES, value: field.value, onChange: field.onChange, disabled: busy }) })
|
|
62
|
+
] })
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
quantity && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
|
+
import_form.FormField,
|
|
67
|
+
{
|
|
68
|
+
control: form.control,
|
|
69
|
+
name: "amount",
|
|
70
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Quantity" }),
|
|
73
|
+
quantity.owned != null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "text-xs text-muted-foreground", children: [
|
|
74
|
+
"You own ",
|
|
75
|
+
quantity.owned
|
|
76
|
+
] })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { type: "number", min: "1", step: "1", placeholder: "1", disabled: busy, ...field }) }),
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
+
import_form.FormField,
|
|
85
|
+
{
|
|
86
|
+
control: form.control,
|
|
87
|
+
name: "durationSeconds",
|
|
88
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Duration" }),
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_marketplace_dialog_primitives.DurationPicker, { options: durationOptions, value: field.value, onChange: field.onChange, disabled: busy }) })
|
|
91
|
+
] })
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
97
|
+
0 && (module.exports = {
|
|
98
|
+
OrderFields
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=order-fields.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/order-fields.tsx"],"sourcesContent":["\"use client\";\n\nimport type { UseFormReturn } from \"react-hook-form\";\nimport { FormControl, FormField, FormItem, FormLabel, FormMessage } from \"./form.js\";\nimport { Input } from \"./input.js\";\nimport { CurrencyPicker, DurationPicker } from \"./marketplace-dialog-primitives.js\";\nimport { LISTABLE_CURRENCIES, type OrderFormValues } from \"../utils/order-form.js\";\n\nexport interface OrderFieldsProps {\n form: UseFormReturn<OrderFormValues>;\n durationOptions: ReadonlyArray<{ label: string; seconds: number }>;\n busy: boolean;\n priceLabel: string;\n quantity?: { owned?: number };\n}\n\nexport function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps) {\n return (\n <>\n <FormField\n control={form.control}\n name=\"price\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>{priceLabel}</FormLabel>\n <FormControl>\n <Input\n type=\"number\"\n step=\"any\"\n placeholder=\"0.00\"\n className=\"h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40\"\n disabled={busy}\n {...field}\n />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"currency\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Currency</FormLabel>\n <FormControl>\n <CurrencyPicker currencies={LISTABLE_CURRENCIES} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n\n {quantity && (\n <FormField\n control={form.control}\n name=\"amount\"\n render={({ field }) => (\n <FormItem>\n <div className=\"flex items-center justify-between\">\n <FormLabel>Quantity</FormLabel>\n {quantity.owned != null && <span className=\"text-xs text-muted-foreground\">You own {quantity.owned}</span>}\n </div>\n <FormControl>\n <Input type=\"number\" min=\"1\" step=\"1\" placeholder=\"1\" disabled={busy} {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n )}\n\n <FormField\n control={form.control}\n name=\"durationSeconds\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Duration</FormLabel>\n <FormControl>\n <DurationPicker options={durationOptions} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBI;AAfJ,kBAAyE;AACzE,mBAAsB;AACtB,2CAA+C;AAC/C,wBAA0D;AAUnD,SAAS,YAAY,EAAE,MAAM,iBAAiB,MAAM,YAAY,SAAS,GAAqB;AACnG,SACE,4EACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,sDAAC,yBAAW,sBAAW;AAAA,UACvB,4CAAC,2BACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAK;AAAA,cACL,aAAY;AAAA,cACZ,WAAU;AAAA,cACV,UAAU;AAAA,cACT,GAAG;AAAA;AAAA,UACN,GACF;AAAA,UACA,4CAAC,2BAAY;AAAA,WACf;AAAA;AAAA,IAEJ;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,sDAAC,yBAAU,sBAAQ;AAAA,UACnB,4CAAC,2BACC,sDAAC,uDAAe,YAAY,uCAAqB,OAAO,MAAM,OAAO,UAAU,MAAM,UAAU,UAAU,MAAM,GACjH;AAAA,WACF;AAAA;AAAA,IAEJ;AAAA,IAEC,YACC;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,uDAAC,SAAI,WAAU,qCACb;AAAA,wDAAC,yBAAU,sBAAQ;AAAA,YAClB,SAAS,SAAS,QAAQ,6CAAC,UAAK,WAAU,iCAAgC;AAAA;AAAA,cAAS,SAAS;AAAA,eAAM;AAAA,aACrG;AAAA,UACA,4CAAC,2BACC,sDAAC,sBAAM,MAAK,UAAS,KAAI,KAAI,MAAK,KAAI,aAAY,KAAI,UAAU,MAAO,GAAG,OAAO,GACnF;AAAA,UACA,4CAAC,2BAAY;AAAA,WACf;AAAA;AAAA,IAEJ;AAAA,IAGF;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,sDAAC,yBAAU,sBAAQ;AAAA,UACnB,4CAAC,2BACC,sDAAC,uDAAe,SAAS,iBAAiB,OAAO,MAAM,OAAO,UAAU,MAAM,UAAU,UAAU,MAAM,GAC1G;AAAA,WACF;AAAA;AAAA,IAEJ;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
+
import { OrderFormValues } from '../utils/order-form.cjs';
|
|
4
|
+
import 'zod';
|
|
5
|
+
|
|
6
|
+
interface OrderFieldsProps {
|
|
7
|
+
form: UseFormReturn<OrderFormValues>;
|
|
8
|
+
durationOptions: ReadonlyArray<{
|
|
9
|
+
label: string;
|
|
10
|
+
seconds: number;
|
|
11
|
+
}>;
|
|
12
|
+
busy: boolean;
|
|
13
|
+
priceLabel: string;
|
|
14
|
+
quantity?: {
|
|
15
|
+
owned?: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { OrderFields, type OrderFieldsProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
+
import { OrderFormValues } from '../utils/order-form.js';
|
|
4
|
+
import 'zod';
|
|
5
|
+
|
|
6
|
+
interface OrderFieldsProps {
|
|
7
|
+
form: UseFormReturn<OrderFormValues>;
|
|
8
|
+
durationOptions: ReadonlyArray<{
|
|
9
|
+
label: string;
|
|
10
|
+
seconds: number;
|
|
11
|
+
}>;
|
|
12
|
+
busy: boolean;
|
|
13
|
+
priceLabel: string;
|
|
14
|
+
quantity?: {
|
|
15
|
+
owned?: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { OrderFields, type OrderFieldsProps };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { FormControl, FormField, FormItem, FormLabel, FormMessage } from "./form.js";
|
|
4
|
+
import { Input } from "./input.js";
|
|
5
|
+
import { CurrencyPicker, DurationPicker } from "./marketplace-dialog-primitives.js";
|
|
6
|
+
import { LISTABLE_CURRENCIES } from "../utils/order-form.js";
|
|
7
|
+
function OrderFields({ form, durationOptions, busy, priceLabel, quantity }) {
|
|
8
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9
|
+
/* @__PURE__ */ jsx(
|
|
10
|
+
FormField,
|
|
11
|
+
{
|
|
12
|
+
control: form.control,
|
|
13
|
+
name: "price",
|
|
14
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx(FormLabel, { children: priceLabel }),
|
|
16
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
17
|
+
Input,
|
|
18
|
+
{
|
|
19
|
+
type: "number",
|
|
20
|
+
step: "any",
|
|
21
|
+
placeholder: "0.00",
|
|
22
|
+
className: "h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40",
|
|
23
|
+
disabled: busy,
|
|
24
|
+
...field
|
|
25
|
+
}
|
|
26
|
+
) }),
|
|
27
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
28
|
+
] })
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
FormField,
|
|
33
|
+
{
|
|
34
|
+
control: form.control,
|
|
35
|
+
name: "currency",
|
|
36
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Currency" }),
|
|
38
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(CurrencyPicker, { currencies: LISTABLE_CURRENCIES, value: field.value, onChange: field.onChange, disabled: busy }) })
|
|
39
|
+
] })
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
quantity && /* @__PURE__ */ jsx(
|
|
43
|
+
FormField,
|
|
44
|
+
{
|
|
45
|
+
control: form.control,
|
|
46
|
+
name: "amount",
|
|
47
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
48
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Quantity" }),
|
|
50
|
+
quantity.owned != null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
51
|
+
"You own ",
|
|
52
|
+
quantity.owned
|
|
53
|
+
] })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { type: "number", min: "1", step: "1", placeholder: "1", disabled: busy, ...field }) }),
|
|
56
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
57
|
+
] })
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
FormField,
|
|
62
|
+
{
|
|
63
|
+
control: form.control,
|
|
64
|
+
name: "durationSeconds",
|
|
65
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
66
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Duration" }),
|
|
67
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(DurationPicker, { options: durationOptions, value: field.value, onChange: field.onChange, disabled: busy }) })
|
|
68
|
+
] })
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
OrderFields
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=order-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/order-fields.tsx"],"sourcesContent":["\"use client\";\n\nimport type { UseFormReturn } from \"react-hook-form\";\nimport { FormControl, FormField, FormItem, FormLabel, FormMessage } from \"./form.js\";\nimport { Input } from \"./input.js\";\nimport { CurrencyPicker, DurationPicker } from \"./marketplace-dialog-primitives.js\";\nimport { LISTABLE_CURRENCIES, type OrderFormValues } from \"../utils/order-form.js\";\n\nexport interface OrderFieldsProps {\n form: UseFormReturn<OrderFormValues>;\n durationOptions: ReadonlyArray<{ label: string; seconds: number }>;\n busy: boolean;\n priceLabel: string;\n quantity?: { owned?: number };\n}\n\nexport function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps) {\n return (\n <>\n <FormField\n control={form.control}\n name=\"price\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>{priceLabel}</FormLabel>\n <FormControl>\n <Input\n type=\"number\"\n step=\"any\"\n placeholder=\"0.00\"\n className=\"h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40\"\n disabled={busy}\n {...field}\n />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"currency\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Currency</FormLabel>\n <FormControl>\n <CurrencyPicker currencies={LISTABLE_CURRENCIES} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n\n {quantity && (\n <FormField\n control={form.control}\n name=\"amount\"\n render={({ field }) => (\n <FormItem>\n <div className=\"flex items-center justify-between\">\n <FormLabel>Quantity</FormLabel>\n {quantity.owned != null && <span className=\"text-xs text-muted-foreground\">You own {quantity.owned}</span>}\n </div>\n <FormControl>\n <Input type=\"number\" min=\"1\" step=\"1\" placeholder=\"1\" disabled={busy} {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n )}\n\n <FormField\n control={form.control}\n name=\"durationSeconds\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Duration</FormLabel>\n <FormControl>\n <DurationPicker options={durationOptions} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n </>\n );\n}\n"],"mappings":";AAkBI,mBAMQ,KADF,YALN;AAfJ,SAAS,aAAa,WAAW,UAAU,WAAW,mBAAmB;AACzE,SAAS,aAAa;AACtB,SAAS,gBAAgB,sBAAsB;AAC/C,SAAS,2BAAiD;AAUnD,SAAS,YAAY,EAAE,MAAM,iBAAiB,MAAM,YAAY,SAAS,GAAqB;AACnG,SACE,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,qBAAC,YACC;AAAA,8BAAC,aAAW,sBAAW;AAAA,UACvB,oBAAC,eACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAK;AAAA,cACL,aAAY;AAAA,cACZ,WAAU;AAAA,cACV,UAAU;AAAA,cACT,GAAG;AAAA;AAAA,UACN,GACF;AAAA,UACA,oBAAC,eAAY;AAAA,WACf;AAAA;AAAA,IAEJ;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,qBAAC,YACC;AAAA,8BAAC,aAAU,sBAAQ;AAAA,UACnB,oBAAC,eACC,8BAAC,kBAAe,YAAY,qBAAqB,OAAO,MAAM,OAAO,UAAU,MAAM,UAAU,UAAU,MAAM,GACjH;AAAA,WACF;AAAA;AAAA,IAEJ;AAAA,IAEC,YACC;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,qBAAC,YACC;AAAA,+BAAC,SAAI,WAAU,qCACb;AAAA,gCAAC,aAAU,sBAAQ;AAAA,YAClB,SAAS,SAAS,QAAQ,qBAAC,UAAK,WAAU,iCAAgC;AAAA;AAAA,cAAS,SAAS;AAAA,eAAM;AAAA,aACrG;AAAA,UACA,oBAAC,eACC,8BAAC,SAAM,MAAK,UAAS,KAAI,KAAI,MAAK,KAAI,aAAY,KAAI,UAAU,MAAO,GAAG,OAAO,GACnF;AAAA,UACA,oBAAC,eAAY;AAAA,WACf;AAAA;AAAA,IAEJ;AAAA,IAGF;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,qBAAC,YACC;AAAA,8BAAC,aAAU,sBAAQ;AAAA,UACnB,oBAAC,eACC,8BAAC,kBAAe,SAAS,iBAAiB,OAAO,MAAM,OAAO,UAAU,MAAM,UAAU,UAAU,MAAM,GAC1G;AAAA,WACF;AAAA;AAAA,IAEJ;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -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?: "top" | "right" | "bottom" | "left" | 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?: "top" | "right" | "bottom" | "left" | 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/dist/index.cjs
CHANGED
|
@@ -249,6 +249,7 @@ __export(index_exports, {
|
|
|
249
249
|
LAUNCHPAD_SERVICE_GROUPS: () => import_launchpad_services3.LAUNCHPAD_SERVICE_GROUPS,
|
|
250
250
|
LICENSE_TRAIT_TYPES: () => import_ip.LICENSE_TRAIT_TYPES,
|
|
251
251
|
LICENSE_TYPES: () => import_ip.LICENSE_TYPES,
|
|
252
|
+
LISTABLE_CURRENCIES: () => import_order_form.LISTABLE_CURRENCIES,
|
|
252
253
|
LIVING_RENDER_COLLECTIONS: () => import_living_render_collections.LIVING_RENDER_COLLECTIONS,
|
|
253
254
|
Label: () => import_label.Label,
|
|
254
255
|
LaunchpadCtaBanner: () => import_launchpad_cta_banner.LaunchpadCtaBanner,
|
|
@@ -299,6 +300,7 @@ __export(index_exports, {
|
|
|
299
300
|
NavThemeToggle: () => import_nav_theme_toggle.NavThemeToggle,
|
|
300
301
|
NavWalletTrigger: () => import_nav_shell.NavWalletTrigger,
|
|
301
302
|
NewCollectionMenu: () => import_new_collection_menu.NewCollectionMenu,
|
|
303
|
+
OrderFields: () => import_order_fields.OrderFields,
|
|
302
304
|
OrderSortControl: () => import_order_sort_control.OrderSortControl,
|
|
303
305
|
OrderSummaryHero: () => import_marketplace_dialog_primitives.OrderSummaryHero,
|
|
304
306
|
OwnerSetupPanel: () => import_owner_setup_panel.OwnerSetupPanel,
|
|
@@ -437,6 +439,7 @@ __export(index_exports, {
|
|
|
437
439
|
coinKindLabelPlural: () => import_coins.coinKindLabelPlural,
|
|
438
440
|
coinServiceIds: () => import_coins.coinServiceIds,
|
|
439
441
|
coinSupply: () => import_coins.coinSupply,
|
|
442
|
+
counterOfferFormSchema: () => import_order_form.counterOfferFormSchema,
|
|
440
443
|
createAppWallet: () => import_app_wallet.createAppWallet,
|
|
441
444
|
createImageResolver: () => import_ipfs2.createImageResolver,
|
|
442
445
|
derivePortfolioCounts: () => import_portfolio_counts.derivePortfolioCounts,
|
|
@@ -448,6 +451,7 @@ __export(index_exports, {
|
|
|
448
451
|
emptyMessages: () => import_empty_messages.emptyMessages,
|
|
449
452
|
fdvUsd: () => import_coins.fdvUsd,
|
|
450
453
|
feeLabelFor: () => import_self_fund_consent_dialog.feeLabelFor,
|
|
454
|
+
fetchSession: () => import_use_session.fetchSession,
|
|
451
455
|
fireConfetti: () => import_confetti.fireConfetti,
|
|
452
456
|
formatActivity: () => import_format_activity.formatActivity,
|
|
453
457
|
formatCoinPrice: () => import_coins.formatCoinPrice,
|
|
@@ -480,6 +484,7 @@ __export(index_exports, {
|
|
|
480
484
|
matchCommands: () => import_nav_command_menu.matchCommands,
|
|
481
485
|
navGroups: () => import_nav_commands.navGroups,
|
|
482
486
|
orderCoins: () => import_coin_order.orderCoins,
|
|
487
|
+
orderFormSchema: () => import_order_form.orderFormSchema,
|
|
483
488
|
orderUsd: () => import_order_usd.orderUsd,
|
|
484
489
|
parsePriceDisplay: () => import_format.parsePriceDisplay,
|
|
485
490
|
passkeyUnsupportedReason: () => import_wallet_failure.passkeyUnsupportedReason,
|
|
@@ -490,8 +495,10 @@ __export(index_exports, {
|
|
|
490
495
|
queryKeyPrefix: () => import_query_keys.queryKeyPrefix,
|
|
491
496
|
queryKeys: () => import_query_keys.queryKeys,
|
|
492
497
|
readBodyWithCap: () => import_proxy_body.readBodyWithCap,
|
|
498
|
+
refreshSession: () => import_use_session.refreshSession,
|
|
493
499
|
relevanceFilter: () => import_nav_command_menu.relevanceFilter,
|
|
494
500
|
runIntentCalls: () => import_run_intent_calls.runIntentCalls,
|
|
501
|
+
sessionEmail: () => import_use_session.sessionEmail,
|
|
495
502
|
setUploadDiagnosticsReporter: () => import_ipfs_upload.setUploadDiagnosticsReporter,
|
|
496
503
|
shortenAddress: () => import_address.shortenAddress,
|
|
497
504
|
sortOrders: () => import_order_sort_control.sortOrders,
|
|
@@ -577,6 +584,7 @@ __export(index_exports, {
|
|
|
577
584
|
useRewardsConfig: () => import_use_rewards.useRewardsConfig,
|
|
578
585
|
useRewardsEvents: () => import_use_rewards.useRewardsEvents,
|
|
579
586
|
useSearch: () => import_use_search.useSearch,
|
|
587
|
+
useSession: () => import_use_session.useSession,
|
|
580
588
|
useSponsorshipBids: () => import_use_sponsorship.useSponsorshipBids,
|
|
581
589
|
useSponsorshipLicenses: () => import_use_sponsorship.useSponsorshipLicenses,
|
|
582
590
|
useSponsorshipOffer: () => import_use_sponsorship.useSponsorshipOffer,
|
|
@@ -690,6 +698,9 @@ var import_activity_ticker = require("./components/activity-ticker.js");
|
|
|
690
698
|
var import_listing_card = require("./components/listing-card.js");
|
|
691
699
|
var import_listings_grid = require("./components/listings-grid.js");
|
|
692
700
|
var import_marketplace_dialog_primitives = require("./components/marketplace-dialog-primitives.js");
|
|
701
|
+
var import_use_session = require("./utils/use-session.js");
|
|
702
|
+
var import_order_fields = require("./components/order-fields.js");
|
|
703
|
+
var import_order_form = require("./utils/order-form.js");
|
|
693
704
|
var import_activity_row = require("./components/activity-row.js");
|
|
694
705
|
var import_activity_timeline_row = require("./components/activity-timeline-row.js");
|
|
695
706
|
var import_drop_item_list = require("./components/drop-item-list.js");
|
|
@@ -1137,6 +1148,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1137
1148
|
LAUNCHPAD_SERVICE_GROUPS,
|
|
1138
1149
|
LICENSE_TRAIT_TYPES,
|
|
1139
1150
|
LICENSE_TYPES,
|
|
1151
|
+
LISTABLE_CURRENCIES,
|
|
1140
1152
|
LIVING_RENDER_COLLECTIONS,
|
|
1141
1153
|
Label,
|
|
1142
1154
|
LaunchpadCtaBanner,
|
|
@@ -1187,6 +1199,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1187
1199
|
NavThemeToggle,
|
|
1188
1200
|
NavWalletTrigger,
|
|
1189
1201
|
NewCollectionMenu,
|
|
1202
|
+
OrderFields,
|
|
1190
1203
|
OrderSortControl,
|
|
1191
1204
|
OrderSummaryHero,
|
|
1192
1205
|
OwnerSetupPanel,
|
|
@@ -1325,6 +1338,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1325
1338
|
coinKindLabelPlural,
|
|
1326
1339
|
coinServiceIds,
|
|
1327
1340
|
coinSupply,
|
|
1341
|
+
counterOfferFormSchema,
|
|
1328
1342
|
createAppWallet,
|
|
1329
1343
|
createImageResolver,
|
|
1330
1344
|
derivePortfolioCounts,
|
|
@@ -1336,6 +1350,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1336
1350
|
emptyMessages,
|
|
1337
1351
|
fdvUsd,
|
|
1338
1352
|
feeLabelFor,
|
|
1353
|
+
fetchSession,
|
|
1339
1354
|
fireConfetti,
|
|
1340
1355
|
formatActivity,
|
|
1341
1356
|
formatCoinPrice,
|
|
@@ -1368,6 +1383,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1368
1383
|
matchCommands,
|
|
1369
1384
|
navGroups,
|
|
1370
1385
|
orderCoins,
|
|
1386
|
+
orderFormSchema,
|
|
1371
1387
|
orderUsd,
|
|
1372
1388
|
parsePriceDisplay,
|
|
1373
1389
|
passkeyUnsupportedReason,
|
|
@@ -1378,8 +1394,10 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1378
1394
|
queryKeyPrefix,
|
|
1379
1395
|
queryKeys,
|
|
1380
1396
|
readBodyWithCap,
|
|
1397
|
+
refreshSession,
|
|
1381
1398
|
relevanceFilter,
|
|
1382
1399
|
runIntentCalls,
|
|
1400
|
+
sessionEmail,
|
|
1383
1401
|
setUploadDiagnosticsReporter,
|
|
1384
1402
|
shortenAddress,
|
|
1385
1403
|
sortOrders,
|
|
@@ -1465,6 +1483,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1465
1483
|
useRewardsConfig,
|
|
1466
1484
|
useRewardsEvents,
|
|
1467
1485
|
useSearch,
|
|
1486
|
+
useSession,
|
|
1468
1487
|
useSponsorshipBids,
|
|
1469
1488
|
useSponsorshipLicenses,
|
|
1470
1489
|
useSponsorshipOffer,
|