@medialane/ui 0.291.0 → 0.293.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.
Files changed (106) hide show
  1. package/dist/components/account/input-otp.d.cts +2 -2
  2. package/dist/components/account/input-otp.d.ts +2 -2
  3. package/dist/components/action-button.cjs +3 -30
  4. package/dist/components/action-button.cjs.map +1 -1
  5. package/dist/components/action-button.d.cts +1 -2
  6. package/dist/components/action-button.d.ts +1 -2
  7. package/dist/components/action-button.js +1 -28
  8. package/dist/components/action-button.js.map +1 -1
  9. package/dist/components/button.d.cts +2 -2
  10. package/dist/components/button.d.ts +2 -2
  11. package/dist/components/drop/create/launch-dialog.cjs +10 -7
  12. package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
  13. package/dist/components/drop/create/launch-dialog.js +10 -7
  14. package/dist/components/drop/create/launch-dialog.js.map +1 -1
  15. package/dist/components/drop/page/drop-manage.cjs +6 -3
  16. package/dist/components/drop/page/drop-manage.cjs.map +1 -1
  17. package/dist/components/drop/page/drop-manage.js +6 -3
  18. package/dist/components/drop/page/drop-manage.js.map +1 -1
  19. package/dist/components/drop/page/drop-mint-dialog.cjs +9 -6
  20. package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
  21. package/dist/components/drop/page/drop-mint-dialog.js +9 -6
  22. package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
  23. package/dist/components/fast-mint/fast-mint.cjs +6 -13
  24. package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
  25. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  26. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  27. package/dist/components/fast-mint/fast-mint.js +7 -15
  28. package/dist/components/fast-mint/fast-mint.js.map +1 -1
  29. package/dist/components/gated-content.cjs +2 -1
  30. package/dist/components/gated-content.cjs.map +1 -1
  31. package/dist/components/gated-content.js +2 -1
  32. package/dist/components/gated-content.js.map +1 -1
  33. package/dist/components/launchpad/edition-mint-schema.d.cts +2 -2
  34. package/dist/components/launchpad/edition-mint-schema.d.ts +2 -2
  35. package/dist/components/media-wallet/action-button.cjs +0 -18
  36. package/dist/components/media-wallet/action-button.cjs.map +1 -1
  37. package/dist/components/media-wallet/action-button.d.cts +1 -3
  38. package/dist/components/media-wallet/action-button.d.ts +1 -3
  39. package/dist/components/media-wallet/action-button.js +0 -16
  40. package/dist/components/media-wallet/action-button.js.map +1 -1
  41. package/dist/components/media-wallet/activate-card.cjs +2 -2
  42. package/dist/components/media-wallet/activate-card.cjs.map +1 -1
  43. package/dist/components/media-wallet/activate-card.js +1 -1
  44. package/dist/components/media-wallet/activate-card.js.map +1 -1
  45. package/dist/components/media-wallet/media-wallet-activity.cjs +4 -6
  46. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  47. package/dist/components/media-wallet/media-wallet-activity.js +4 -6
  48. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  49. package/dist/components/media-wallet/media-wallet-home.cjs +2 -1
  50. package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
  51. package/dist/components/media-wallet/media-wallet-home.js +2 -1
  52. package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
  53. package/dist/components/media-wallet/quick-action.cjs +3 -3
  54. package/dist/components/media-wallet/quick-action.cjs.map +1 -1
  55. package/dist/components/media-wallet/quick-action.d.cts +1 -1
  56. package/dist/components/media-wallet/quick-action.d.ts +1 -1
  57. package/dist/components/media-wallet/quick-action.js +1 -1
  58. package/dist/components/media-wallet/quick-action.js.map +1 -1
  59. package/dist/components/media-wallet/success-dialog.cjs +2 -2
  60. package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
  61. package/dist/components/media-wallet/success-dialog.js +1 -1
  62. package/dist/components/media-wallet/success-dialog.js.map +1 -1
  63. package/dist/components/media-wallet/wallet-activity-icon.cjs +5 -4
  64. package/dist/components/media-wallet/wallet-activity-icon.cjs.map +1 -1
  65. package/dist/components/media-wallet/wallet-activity-icon.js +5 -4
  66. package/dist/components/media-wallet/wallet-activity-icon.js.map +1 -1
  67. package/dist/components/medialane-collection-card.cjs +6 -6
  68. package/dist/components/medialane-collection-card.cjs.map +1 -1
  69. package/dist/components/medialane-collection-card.js +6 -6
  70. package/dist/components/medialane-collection-card.js.map +1 -1
  71. package/dist/components/sheet.d.cts +1 -1
  72. package/dist/components/sheet.d.ts +1 -1
  73. package/dist/components/transaction-dialog.cjs +2 -10
  74. package/dist/components/transaction-dialog.cjs.map +1 -1
  75. package/dist/components/transaction-dialog.js +2 -10
  76. package/dist/components/transaction-dialog.js.map +1 -1
  77. package/dist/components/wallet/self-fund-consent-dialog.cjs +6 -4
  78. package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
  79. package/dist/components/wallet/self-fund-consent-dialog.js +6 -4
  80. package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
  81. package/dist/data/brand.cjs +54 -2
  82. package/dist/data/brand.cjs.map +1 -1
  83. package/dist/data/brand.d.cts +16 -1
  84. package/dist/data/brand.d.ts +16 -1
  85. package/dist/data/brand.js +47 -1
  86. package/dist/data/brand.js.map +1 -1
  87. package/dist/index.cjs +14 -3
  88. package/dist/index.cjs.map +1 -1
  89. package/dist/index.d.cts +3 -2
  90. package/dist/index.d.ts +3 -2
  91. package/dist/index.js +9 -3
  92. package/dist/index.js.map +1 -1
  93. package/dist/medialane.css +14 -23
  94. package/dist/utils/use-confetti.cjs +36 -0
  95. package/dist/utils/use-confetti.cjs.map +1 -0
  96. package/dist/utils/use-confetti.d.cts +3 -0
  97. package/dist/utils/use-confetti.d.ts +3 -0
  98. package/dist/utils/use-confetti.js +12 -0
  99. package/dist/utils/use-confetti.js.map +1 -0
  100. package/package.json +1 -1
  101. package/dist/components/action-dialog.cjs +0 -70
  102. package/dist/components/action-dialog.cjs.map +0 -1
  103. package/dist/components/action-dialog.d.cts +0 -12
  104. package/dist/components/action-dialog.d.ts +0 -12
  105. package/dist/components/action-dialog.js +0 -46
  106. package/dist/components/action-dialog.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/wallet/self-fund-consent-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { formatAmount } from \"@medialane/sdk\";\nimport type { SelfFundConsent, SelfFundFeeEstimate } from \"@medialane/sdk/starknet\";\nimport { ActionDialog } from \"../action-dialog.js\";\n\ninterface PendingRequest {\n resolve: (consented: boolean) => void;\n feeEstimate: SelfFundFeeEstimate | null | \"loading\";\n}\n\nfunction amountLabel(raw: bigint, unit: string): string {\n const [whole, fraction = \"\"] = formatAmount(raw.toString(), 18).split(\".\");\n const trimmed = fraction.slice(0, 6).replace(/0+$/, \"\");\n const amount = trimmed ? `${whole}.${trimmed}` : whole;\n return `${amount} ${unit === \"FRI\" ? \"STRK\" : \"ETH\"}`;\n}\n\nexport function feeLabelFor(estimate: SelfFundFeeEstimate | null | \"loading\"): string | null {\n if (estimate === \"loading\" || estimate == null) return null;\n return amountLabel(estimate.feeRaw, estimate.unit);\n}\n\nexport function SelfFundConsentDialog({ consent }: { consent: SelfFundConsent }) {\n const [pending, setPending] = useState<PendingRequest | null>(null);\n\n useEffect(() => {\n consent.registerHandler((feeEstimatePromise) => {\n return new Promise<boolean>((resolve) => {\n setPending({ resolve, feeEstimate: \"loading\" });\n void feeEstimatePromise.then((feeEstimate) => {\n setPending((current) => (current ? { ...current, feeEstimate } : current));\n });\n });\n });\n return () => consent.registerHandler(null);\n }, [consent]);\n\n const respond = (consented: boolean) => {\n pending?.resolve(consented);\n setPending(null);\n };\n\n const label = feeLabelFor(pending?.feeEstimate ?? null);\n const estimate = pending?.feeEstimate && pending.feeEstimate !== \"loading\" ? pending.feeEstimate : null;\n const balanceLabel = estimate?.balanceRaw != null ? amountLabel(estimate.balanceRaw, estimate.unit) : null;\n const notEnough = estimate?.balanceRaw != null && estimate.balanceRaw < estimate.feeRaw;\n\n return (\n <ActionDialog open={pending !== null} onClose={() => respond(false)} width={420} shadow={false}>\n <div className=\"p-6 space-y-4\">\n <h2 className=\"text-lg font-semibold\">Network fee needed</h2>\n <p className=\"text-sm text-muted-foreground\">\n Medialane usually covers network fees for you, but can&apos;t right now. You can pay this one from your\n wallet, or try again later.\n </p>\n <div className=\"rounded-lg bg-muted px-4 py-3 flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Network fee</span>\n <span className=\"text-sm font-semibold\">{label ? `≈ ${label}` : \"Estimating…\"}</span>\n </div>\n {balanceLabel && (\n <div className=\"flex items-center justify-between px-4\">\n <span className=\"text-sm text-muted-foreground\">Your balance</span>\n <span className=\"text-sm font-semibold\">{balanceLabel}</span>\n </div>\n )}\n {notEnough && (\n <p className=\"text-sm text-destructive\">\n You don&apos;t have enough to pay this fee. Try again later, when Medialane can cover it.\n </p>\n )}\n <div className=\"flex justify-end gap-2\">\n <button\n type=\"button\"\n onClick={() => respond(false)}\n className=\"px-4 py-2 rounded-lg text-sm font-medium text-muted-foreground hover:bg-muted transition-colors\"\n >\n Try again later\n </button>\n <button\n type=\"button\"\n onClick={() => respond(true)}\n disabled={notEnough}\n className=\"px-4 py-2 rounded-lg text-sm font-medium bg-primary text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n {label ? `Pay ${label}` : \"Pay from my wallet\"}\n </button>\n </div>\n </div>\n </ActionDialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoDQ;AAlDR,mBAAoC;AACpC,iBAA6B;AAE7B,2BAA6B;AAO7B,SAAS,YAAY,KAAa,MAAsB;AACtD,QAAM,CAAC,OAAO,WAAW,EAAE,QAAI,yBAAa,IAAI,SAAS,GAAG,EAAE,EAAE,MAAM,GAAG;AACzE,QAAM,UAAU,SAAS,MAAM,GAAG,CAAC,EAAE,QAAQ,OAAO,EAAE;AACtD,QAAM,SAAS,UAAU,GAAG,KAAK,IAAI,OAAO,KAAK;AACjD,SAAO,GAAG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U,iCAAgC,yBAAW;AAAA,MAC3D,4CAAC,UAAK,WAAU,yBAAyB,kBAAQ,UAAK,KAAK,KAAK,oBAAc;AAAA,OAChF;AAAA,IACC,gBACC,6CAAC,SAAI,WAAU,0CACb;AAAA,kDAAC,UAAK,WAAU,iCAAgC,0BAAY;AAAA,MAC5D,4CAAC,UAAK,WAAU,yBAAyB,wBAAa;AAAA,OACxD;AAAA,IAED,aACC,4CAAC,OAAE,WAAU,4BAA2B,kGAExC;AAAA,IAEF,6CAAC,SAAI,WAAU,0BACb;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,QAAQ,KAAK;AAAA,UAC5B,WAAU;AAAA,UACX;AAAA;AAAA,MAED;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,QAAQ,IAAI;AAAA,UAC3B,UAAU;AAAA,UACV,WAAU;AAAA,UAET,kBAAQ,OAAO,KAAK,KAAK;AAAA;AAAA,MAC5B;AAAA,OACF;AAAA,KACF,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/wallet/self-fund-consent-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { formatAmount } from \"@medialane/sdk\";\nimport type { SelfFundConsent, SelfFundFeeEstimate } from \"@medialane/sdk/starknet\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"../dialog.js\";\n\ninterface PendingRequest {\n resolve: (consented: boolean) => void;\n feeEstimate: SelfFundFeeEstimate | null | \"loading\";\n}\n\nfunction amountLabel(raw: bigint, unit: string): string {\n const [whole, fraction = \"\"] = formatAmount(raw.toString(), 18).split(\".\");\n const trimmed = fraction.slice(0, 6).replace(/0+$/, \"\");\n const amount = trimmed ? `${whole}.${trimmed}` : whole;\n return `${amount} ${unit === \"FRI\" ? \"STRK\" : \"ETH\"}`;\n}\n\nexport function feeLabelFor(estimate: SelfFundFeeEstimate | null | \"loading\"): string | null {\n if (estimate === \"loading\" || estimate == null) return null;\n return amountLabel(estimate.feeRaw, estimate.unit);\n}\n\nexport function SelfFundConsentDialog({ consent }: { consent: SelfFundConsent }) {\n const [pending, setPending] = useState<PendingRequest | null>(null);\n\n useEffect(() => {\n consent.registerHandler((feeEstimatePromise) => {\n return new Promise<boolean>((resolve) => {\n setPending({ resolve, feeEstimate: \"loading\" });\n void feeEstimatePromise.then((feeEstimate) => {\n setPending((current) => (current ? { ...current, feeEstimate } : current));\n });\n });\n });\n return () => consent.registerHandler(null);\n }, [consent]);\n\n const respond = (consented: boolean) => {\n pending?.resolve(consented);\n setPending(null);\n };\n\n const label = feeLabelFor(pending?.feeEstimate ?? null);\n const estimate = pending?.feeEstimate && pending.feeEstimate !== \"loading\" ? pending.feeEstimate : null;\n const balanceLabel = estimate?.balanceRaw != null ? amountLabel(estimate.balanceRaw, estimate.unit) : null;\n const notEnough = estimate?.balanceRaw != null && estimate.balanceRaw < estimate.feeRaw;\n\n return (\n <Dialog open={pending !== null} onOpenChange={(next) => { if (!next) respond(false); }}>\n <DialogContent className=\"sm:max-w-md\">\n <DialogTitle>Network fee needed</DialogTitle>\n <DialogDescription>\n Medialane usually covers network fees for you, but can&apos;t right now. You can pay this one from your\n wallet, or try again later.\n </DialogDescription>\n <div className=\"rounded-lg bg-muted px-4 py-3 flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Network fee</span>\n <span className=\"text-sm font-semibold\">{label ? `≈ ${label}` : \"Estimating…\"}</span>\n </div>\n {balanceLabel && (\n <div className=\"flex items-center justify-between px-4\">\n <span className=\"text-sm text-muted-foreground\">Your balance</span>\n <span className=\"text-sm font-semibold\">{balanceLabel}</span>\n </div>\n )}\n {notEnough && (\n <p className=\"text-sm text-destructive\">\n You don&apos;t have enough to pay this fee. Try again later, when Medialane can cover it.\n </p>\n )}\n <div className=\"flex justify-end gap-2\">\n <button\n type=\"button\"\n onClick={() => respond(false)}\n className=\"px-4 py-2 rounded-lg text-sm font-medium text-muted-foreground hover:bg-muted transition-colors\"\n >\n Try again later\n </button>\n <button\n type=\"button\"\n onClick={() => respond(true)}\n disabled={notEnough}\n className=\"px-4 py-2 rounded-lg text-sm font-medium bg-primary text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n {label ? `Pay ${label}` : \"Pay from my wallet\"}\n </button>\n </div>\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoDQ;AAlDR,mBAAoC;AACpC,iBAA6B;AAE7B,oBAAsE;AAOtE,SAAS,YAAY,KAAa,MAAsB;AACtD,QAAM,CAAC,OAAO,WAAW,EAAE,QAAI,yBAAa,IAAI,SAAS,GAAG,EAAE,EAAE,MAAM,GAAG;AACzE,QAAM,UAAU,SAAS,MAAM,GAAG,CAAC,EAAE,QAAQ,OAAO,EAAE;AACtD,QAAM,SAAS,UAAU,GAAG,KAAK,IAAI,OAAO,KAAK;AACjD,SAAO,GAAG,MAAM,IAAI,SAAS,QAAQ,SAAS,KAAK;AACrD;AAEO,SAAS,YAAY,UAAiE;AAC3F,MAAI,aAAa,aAAa,YAAY,KAAM,QAAO;AACvD,SAAO,YAAY,SAAS,QAAQ,SAAS,IAAI;AACnD;AAEO,SAAS,sBAAsB,EAAE,QAAQ,GAAiC;AAC/E,QAAM,CAAC,SAAS,UAAU,QAAI,uBAAgC,IAAI;AAElE,8BAAU,MAAM;AACd,YAAQ,gBAAgB,CAAC,uBAAuB;AAC9C,aAAO,IAAI,QAAiB,CAAC,YAAY;AACvC,mBAAW,EAAE,SAAS,aAAa,UAAU,CAAC;AAC9C,aAAK,mBAAmB,KAAK,CAAC,gBAAgB;AAC5C,qBAAW,CAAC,YAAa,UAAU,EAAE,GAAG,SAAS,YAAY,IAAI,OAAQ;AAAA,QAC3E,CAAC;AAAA,MACH,CAAC;AAAA,IACH,CAAC;AACD,WAAO,MAAM,Q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AA,UAET,kBAAQ,OAAO,KAAK,KAAK;AAAA;AAAA,MAC5B;AAAA,OACF;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  import { formatAmount } from "@medialane/sdk";
5
- import { ActionDialog } from "../action-dialog.js";
5
+ import { Dialog, DialogContent, DialogDescription, DialogTitle } from "../dialog.js";
6
6
  function amountLabel(raw, unit) {
7
7
  const [whole, fraction = ""] = formatAmount(raw.toString(), 18).split(".");
8
8
  const trimmed = fraction.slice(0, 6).replace(/0+$/, "");
@@ -34,9 +34,11 @@ function SelfFundConsentDialog({ consent }) {
34
34
  const estimate = pending?.feeEstimate && pending.feeEstimate !== "loading" ? pending.feeEstimate : null;
35
35
  const balanceLabel = estimate?.balanceRaw != null ? amountLabel(estimate.balanceRaw, estimate.unit) : null;
36
36
  const notEnough = estimate?.balanceRaw != null && estimate.balanceRaw < estimate.feeRaw;
37
- return /* @__PURE__ */ jsx(ActionDialog, { open: pending !== null, onClose: () => respond(false), width: 420, shadow: false, children: /* @__PURE__ */ jsxs("div", { className: "p-6 space-y-4", children: [
38
- /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: "Network fee needed" }),
39
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Medialane usually covers network fees for you, but can't right now. You can pay this one from your wallet, or try again later." }),
37
+ return /* @__PURE__ */ jsx(Dialog, { open: pending !== null, onOpenChange: (next) => {
38
+ if (!next) respond(false);
39
+ }, children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-md", children: [
40
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Network fee needed" }),
41
+ /* @__PURE__ */ jsx(DialogDescription, { children: "Medialane usually covers network fees for you, but can't right now. You can pay this one from your wallet, or try again later." }),
40
42
  /* @__PURE__ */ jsxs("div", { className: "rounded-lg bg-muted px-4 py-3 flex items-center justify-between", children: [
41
43
  /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "Network fee" }),
42
44
  /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold", children: label ? `\u2248 ${label}` : "Estimating\u2026" })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/wallet/self-fund-consent-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { formatAmount } from \"@medialane/sdk\";\nimport type { SelfFundConsent, SelfFundFeeEstimate } from \"@medialane/sdk/starknet\";\nimport { ActionDialog } from \"../action-dialog.js\";\n\ninterface PendingRequest {\n resolve: (consented: boolean) => void;\n feeEstimate: SelfFundFeeEstimate | null | \"loading\";\n}\n\nfunction amountLabel(raw: bigint, unit: string): string {\n const [whole, fraction = \"\"] = formatAmount(raw.toString(), 18).split(\".\");\n const trimmed = fraction.slice(0, 6).replace(/0+$/, \"\");\n const amount = trimmed ? `${whole}.${trimmed}` : whole;\n return `${amount} ${unit === \"FRI\" ? \"STRK\" : \"ETH\"}`;\n}\n\nexport function feeLabelFor(estimate: SelfFundFeeEstimate | null | \"loading\"): string | null {\n if (estimate === \"loading\" || estimate == null) return null;\n return amountLabel(estimate.feeRaw, estimate.unit);\n}\n\nexport function SelfFundConsentDialog({ consent }: { consent: SelfFundConsent }) {\n const [pending, setPending] = useState<PendingRequest | null>(null);\n\n useEffect(() => {\n consent.registerHandler((feeEstimatePromise) => {\n return new Promise<boolean>((resolve) => {\n setPending({ resolve, feeEstimate: \"loading\" });\n void feeEstimatePromise.then((feeEstimate) => {\n setPending((current) => (current ? { ...current, feeEstimate } : current));\n });\n });\n });\n return () => consent.registerHandler(null);\n }, [consent]);\n\n const respond = (consented: boolean) => {\n pending?.resolve(consented);\n setPending(null);\n };\n\n const label = feeLabelFor(pending?.feeEstimate ?? null);\n const estimate = pending?.feeEstimate && pending.feeEstimate !== \"loading\" ? pending.feeEstimate : null;\n const balanceLabel = estimate?.balanceRaw != null ? amountLabel(estimate.balanceRaw, estimate.unit) : null;\n const notEnough = estimate?.balanceRaw != null && estimate.balanceRaw < estimate.feeRaw;\n\n return (\n <ActionDialog open={pending !== null} onClose={() => respond(false)} width={420} shadow={false}>\n <div className=\"p-6 space-y-4\">\n <h2 className=\"text-lg font-semibold\">Network fee needed</h2>\n <p className=\"text-sm text-muted-foreground\">\n Medialane usually covers network fees for you, but can&apos;t right now. You can pay this one from your\n wallet, or try again later.\n </p>\n <div className=\"rounded-lg bg-muted px-4 py-3 flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Network fee</span>\n <span className=\"text-sm font-semibold\">{label ? `≈ ${label}` : \"Estimating…\"}</span>\n </div>\n {balanceLabel && (\n <div className=\"flex items-center justify-between px-4\">\n <span className=\"text-sm text-muted-foreground\">Your balance</span>\n <span className=\"text-sm font-semibold\">{balanceLabel}</span>\n </div>\n )}\n {notEnough && (\n <p className=\"text-sm text-destructive\">\n You don&apos;t have enough to pay this fee. Try again later, when Medialane can cover it.\n </p>\n )}\n <div className=\"flex justify-end gap-2\">\n <button\n type=\"button\"\n onClick={() => respond(false)}\n className=\"px-4 py-2 rounded-lg text-sm font-medium text-muted-foreground hover:bg-muted transition-colors\"\n >\n Try again later\n </button>\n <button\n type=\"button\"\n onClick={() => respond(true)}\n disabled={notEnough}\n className=\"px-4 py-2 rounded-lg text-sm font-medium bg-primary text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n {label ? `Pay ${label}` : \"Pay from my wallet\"}\n </button>\n </div>\n </div>\n </ActionDialog>\n );\n}\n"],"mappings":";AAoDQ,cAKA,YALA;AAlDR,SAAS,WAAW,gBAAgB;AACpC,SAAS,oBAAoB;AAE7B,SAAS,oBAAoB;AAO7B,SAAS,YAAY,KAAa,MAAsB;AACtD,QAAM,CAAC,OAAO,WAAW,EAAE,IAAI,aAAa,IAAI,SAAS,GAAG,EAAE,EAAE,MAAM,GAAG;AACzE,QAAM,UAAU,SAAS,MAAM,GAAG,CAAC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oBAAC,OAAE,WAAU,iCAAgC,4IAG7C;AAAA,IACA,qBAAC,SAAI,WAAU,mEACb;AAAA,0BAAC,UAAK,WAAU,iCAAgC,yBAAW;AAAA,MAC3D,oBAAC,UAAK,WAAU,yBAAyB,kBAAQ,UAAK,KAAK,KAAK,oBAAc;AAAA,OAChF;AAAA,IACC,gBACC,qBAAC,SAAI,WAAU,0CACb;AAAA,0BAAC,UAAK,WAAU,iCAAgC,0BAAY;AAAA,MAC5D,oBAAC,UAAK,WAAU,yBAAyB,wBAAa;AAAA,OACxD;AAAA,IAED,aACC,oBAAC,OAAE,WAAU,4BAA2B,kGAExC;AAAA,IAEF,qBAAC,SAAI,WAAU,0BACb;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,QAAQ,KAAK;AAAA,UAC5B,WAAU;AAAA,UACX;AAAA;AAAA,MAED;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,QAAQ,IAAI;AAAA,UAC3B,UAAU;AAAA,UACV,WAAU;AAAA,UAET,kBAAQ,OAAO,KAAK,KAAK;AAAA;AAAA,MAC5B;AAAA,OACF;AAAA,KACF,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/wallet/self-fund-consent-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { formatAmount } from \"@medialane/sdk\";\nimport type { SelfFundConsent, SelfFundFeeEstimate } from \"@medialane/sdk/starknet\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"../dialog.js\";\n\ninterface PendingRequest {\n resolve: (consented: boolean) => void;\n feeEstimate: SelfFundFeeEstimate | null | \"loading\";\n}\n\nfunction amountLabel(raw: bigint, unit: string): string {\n const [whole, fraction = \"\"] = formatAmount(raw.toString(), 18).split(\".\");\n const trimmed = fraction.slice(0, 6).replace(/0+$/, \"\");\n const amount = trimmed ? `${whole}.${trimmed}` : whole;\n return `${amount} ${unit === \"FRI\" ? \"STRK\" : \"ETH\"}`;\n}\n\nexport function feeLabelFor(estimate: SelfFundFeeEstimate | null | \"loading\"): string | null {\n if (estimate === \"loading\" || estimate == null) return null;\n return amountLabel(estimate.feeRaw, estimate.unit);\n}\n\nexport function SelfFundConsentDialog({ consent }: { consent: SelfFundConsent }) {\n const [pending, setPending] = useState<PendingRequest | null>(null);\n\n useEffect(() => {\n consent.registerHandler((feeEstimatePromise) => {\n return new Promise<boolean>((resolve) => {\n setPending({ resolve, feeEstimate: \"loading\" });\n void feeEstimatePromise.then((feeEstimate) => {\n setPending((current) => (current ? { ...current, feeEstimate } : current));\n });\n });\n });\n return () => consent.registerHandler(null);\n }, [consent]);\n\n const respond = (consented: boolean) => {\n pending?.resolve(consented);\n setPending(null);\n };\n\n const label = feeLabelFor(pending?.feeEstimate ?? null);\n const estimate = pending?.feeEstimate && pending.feeEstimate !== \"loading\" ? pending.feeEstimate : null;\n const balanceLabel = estimate?.balanceRaw != null ? amountLabel(estimate.balanceRaw, estimate.unit) : null;\n const notEnough = estimate?.balanceRaw != null && estimate.balanceRaw < estimate.feeRaw;\n\n return (\n <Dialog open={pending !== null} onOpenChange={(next) => { if (!next) respond(false); }}>\n <DialogContent className=\"sm:max-w-md\">\n <DialogTitle>Network fee needed</DialogTitle>\n <DialogDescription>\n Medialane usually covers network fees for you, but can&apos;t right now. You can pay this one from your\n wallet, or try again later.\n </DialogDescription>\n <div className=\"rounded-lg bg-muted px-4 py-3 flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Network fee</span>\n <span className=\"text-sm font-semibold\">{label ? `≈ ${label}` : \"Estimating…\"}</span>\n </div>\n {balanceLabel && (\n <div className=\"flex items-center justify-between px-4\">\n <span className=\"text-sm text-muted-foreground\">Your balance</span>\n <span className=\"text-sm font-semibold\">{balanceLabel}</span>\n </div>\n )}\n {notEnough && (\n <p className=\"text-sm text-destructive\">\n You don&apos;t have enough to pay this fee. Try again later, when Medialane can cover it.\n </p>\n )}\n <div className=\"flex justify-end gap-2\">\n <button\n type=\"button\"\n onClick={() => respond(false)}\n className=\"px-4 py-2 rounded-lg text-sm font-medium text-muted-foreground hover:bg-muted transition-colors\"\n >\n Try again later\n </button>\n <button\n type=\"button\"\n onClick={() => respond(true)}\n disabled={notEnough}\n className=\"px-4 py-2 rounded-lg text-sm font-medium bg-primary text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n {label ? `Pay ${label}` : \"Pay from my wallet\"}\n </button>\n </div>\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AAoDQ,cAKA,YALA;AAlDR,SAAS,WAAW,gBAAgB;AACpC,SAAS,oBAAoB;AAE7B,SAAS,QAAQ,eAAe,mBAAmB,mBAAmB;AAOtE,SAAS,YAAY,KAAa,MAAsB;AACtD,QAAM,CAAC,OAAO,WAAW,EAAE,IAAI,aAAa,IAAI,SAAS,GAAG,EAAE,EAAE,MAAM,GAAG;AACzE,QAAM,UAAU,SAAS,MAAM,GAAG,CAAC,EAAE,QAAQ,OAAO,EAAE;AACtD,QAAM,SAAS,UAAU,GAAG,KAAK,IAAI,OAAO,KAAK;AACjD,SAAO,GAAG,MAAM,IAAI,SAAS,QAAQ,SAAS,KAAK;AACrD;AAEO,SAAS,YAAY,UAAiE;AAC3F,MAAI,aAAa,aAAa,YAAY,KAAM,QAAO;AACvD,SAAO,YAAY,SAAS,QAAQ,SAAS,IAAI;AACnD;AAEO,SAAS,sBAAsB,EAAE,QAAQ,GAAiC;AAC/E,QAAM,CAAC,SAAS,UAAU,IAAI,SAAgC,IAAI;AAElE,YAAU,MAAM;AACd,YAAQ,gBAAgB,CAAC,uBAAuB;AAC9C,aAAO,IAAI,QAAiB,CAAC,YAAY;AACvC,mBAAW,EAAE,SAAS,aAAa,UAAU,CAAC;AAC9C,aAAK,mBAAmB,KAAK,CAAC,gBAAgB;AAC5C,qBAAW,CAAC,YAAa,UAAU,EAAE,GAAG,SAAS,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A,UACC,MAAK;AAAA,UACL,SAAS,MAAM,QAAQ,IAAI;AAAA,UAC3B,UAAU;AAAA,UACV,WAAU;AAAA,UAET,kBAAQ,OAAO,KAAK,KAAK;AAAA;AAAA,MAC5B;AAAA,OACF;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -18,7 +18,13 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var brand_exports = {};
20
20
  __export(brand_exports, {
21
- BRAND: () => BRAND
21
+ ACTION_FOREGROUNDS: () => ACTION_FOREGROUNDS,
22
+ ACTION_GRADIENTS: () => ACTION_GRADIENTS,
23
+ BRAND: () => BRAND,
24
+ BRAND_COLOR: () => BRAND_COLOR,
25
+ BRAND_GRADIENT: () => BRAND_GRADIENT,
26
+ TONE_FOREGROUNDS: () => TONE_FOREGROUNDS,
27
+ TONE_GRADIENTS: () => TONE_GRADIENTS
22
28
  });
23
29
  module.exports = __toCommonJS(brand_exports);
24
30
  const BRAND = {
@@ -62,8 +68,54 @@ const BRAND = {
62
68
  to: "to-brand-navy/10"
63
69
  }
64
70
  };
71
+ const token = (name) => `hsl(var(--${name}))`;
72
+ const BRAND_COLOR = {
73
+ blue: token("brand-blue"),
74
+ purple: token("brand-purple"),
75
+ rose: token("brand-rose"),
76
+ orange: token("brand-orange"),
77
+ maeve: token("brand-maeve"),
78
+ navy: token("brand-navy"),
79
+ red: token("destructive")
80
+ };
81
+ const loop = (a, b) => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];
82
+ const ACTION_GRADIENTS = {
83
+ buy: loop("blue", "purple"),
84
+ submit: loop("maeve", "purple"),
85
+ offer: loop("rose", "orange"),
86
+ remix: loop("purple", "rose"),
87
+ license: loop("blue", "purple")
88
+ };
89
+ const ACTION_FOREGROUNDS = {
90
+ buy: BRAND_COLOR.blue,
91
+ submit: BRAND_COLOR.purple,
92
+ offer: BRAND_COLOR.orange,
93
+ remix: BRAND_COLOR.purple,
94
+ license: BRAND_COLOR.blue
95
+ };
96
+ const TONE_GRADIENTS = {
97
+ blue: loop("blue", "purple"),
98
+ purple: loop("purple", "rose"),
99
+ orange: loop("orange", "rose"),
100
+ red: loop("red", "rose"),
101
+ rose: loop("rose", "orange")
102
+ };
103
+ const TONE_FOREGROUNDS = {
104
+ blue: BRAND_COLOR.blue,
105
+ purple: BRAND_COLOR.purple,
106
+ orange: BRAND_COLOR.orange,
107
+ red: BRAND_COLOR.red,
108
+ rose: BRAND_COLOR.rose
109
+ };
110
+ const BRAND_GRADIENT = `linear-gradient(115deg, ${[BRAND_COLOR.blue, BRAND_COLOR.purple, BRAND_COLOR.rose, BRAND_COLOR.orange, BRAND_COLOR.blue].join(", ")})`;
65
111
  // Annotate the CommonJS export names for ESM import in node:
66
112
  0 && (module.exports = {
67
- BRAND
113
+ ACTION_FOREGROUNDS,
114
+ ACTION_GRADIENTS,
115
+ BRAND,
116
+ BRAND_COLOR,
117
+ BRAND_GRADIENT,
118
+ TONE_FOREGROUNDS,
119
+ TONE_GRADIENTS
68
120
  });
69
121
  //# sourceMappingURL=brand.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/data/brand.ts"],"sourcesContent":["\nexport const BRAND = {\n blue: {\n text: \"text-brand-blue\",\n bg: \"bg-brand-blue/10\",\n bgSolid: \"bg-brand-blue/15\",\n from: \"from-brand-blue/20\",\n to: \"to-brand-blue/20\",\n },\n purple: {\n text: \"text-brand-purple\",\n bg: \"bg-brand-purple/10\",\n bgSolid: \"bg-brand-purple/15\",\n from: \"from-brand-purple/20\",\n to: \"to-brand-purple/20\",\n },\n rose: {\n text: \"text-brand-rose\",\n bg: \"bg-brand-rose/10\",\n bgSolid: \"bg-brand-rose/15\",\n from: \"from-brand-rose/20\",\n to: \"to-brand-rose/20\",\n },\n orange: {\n text: \"text-brand-orange\",\n bg: \"bg-brand-orange/10\",\n bgSolid: \"bg-brand-orange/15\",\n from: \"from-brand-orange/20\",\n to: \"to-brand-orange/20\",\n },\n maeve: {\n text: \"text-brand-maeve\",\n bg: \"bg-brand-maeve/10\",\n bgSolid: \"bg-brand-maeve/15\",\n },\n navy: {\n text: \"text-brand-navy\",\n bg: \"bg-brand-navy/10\",\n from: \"from-brand-navy/10\",\n to: \"to-brand-navy/10\",\n },\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,MAAM,QAAQ;AAAA,EACnB,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,OAAO;AAAA,IACL,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/data/brand.ts"],"sourcesContent":["\nexport const BRAND = {\n blue: {\n text: \"text-brand-blue\",\n bg: \"bg-brand-blue/10\",\n bgSolid: \"bg-brand-blue/15\",\n from: \"from-brand-blue/20\",\n to: \"to-brand-blue/20\",\n },\n purple: {\n text: \"text-brand-purple\",\n bg: \"bg-brand-purple/10\",\n bgSolid: \"bg-brand-purple/15\",\n from: \"from-brand-purple/20\",\n to: \"to-brand-purple/20\",\n },\n rose: {\n text: \"text-brand-rose\",\n bg: \"bg-brand-rose/10\",\n bgSolid: \"bg-brand-rose/15\",\n from: \"from-brand-rose/20\",\n to: \"to-brand-rose/20\",\n },\n orange: {\n text: \"text-brand-orange\",\n bg: \"bg-brand-orange/10\",\n bgSolid: \"bg-brand-orange/15\",\n from: \"from-brand-orange/20\",\n to: \"to-brand-orange/20\",\n },\n maeve: {\n text: \"text-brand-maeve\",\n bg: \"bg-brand-maeve/10\",\n bgSolid: \"bg-brand-maeve/15\",\n },\n navy: {\n text: \"text-brand-navy\",\n bg: \"bg-brand-navy/10\",\n from: \"from-brand-navy/10\",\n to: \"to-brand-navy/10\",\n },\n} as const;\n\nconst token = (name: string) => `hsl(var(--${name}))`;\n\nexport const BRAND_COLOR = {\n blue: token(\"brand-blue\"),\n purple: token(\"brand-purple\"),\n rose: token(\"brand-rose\"),\n orange: token(\"brand-orange\"),\n maeve: token(\"brand-maeve\"),\n navy: token(\"brand-navy\"),\n red: token(\"destructive\"),\n} as const;\n\nexport type BrandColorName = keyof typeof BRAND_COLOR;\n\nconst loop = (a: BrandColorName, b: BrandColorName): [string, string, string] => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];\n\nexport const ACTION_GRADIENTS: Record<string, [string, string, string]> = {\n buy: loop(\"blue\", \"purple\"),\n submit: loop(\"maeve\", \"purple\"),\n offer: loop(\"rose\", \"orange\"),\n remix: loop(\"purple\", \"rose\"),\n license: loop(\"blue\", \"purple\"),\n};\n\nexport const ACTION_FOREGROUNDS: Record<string, string> = {\n buy: BRAND_COLOR.blue,\n submit: BRAND_COLOR.purple,\n offer: BRAND_COLOR.orange,\n remix: BRAND_COLOR.purple,\n license: BRAND_COLOR.blue,\n};\n\nexport const TONE_GRADIENTS: Record<string, [string, string, string]> = {\n blue: loop(\"blue\", \"purple\"),\n purple: loop(\"purple\", \"rose\"),\n orange: loop(\"orange\", \"rose\"),\n red: loop(\"red\", \"rose\"),\n rose: loop(\"rose\", \"orange\"),\n};\n\nexport const TONE_FOREGROUNDS: Record<string, string> = {\n blue: BRAND_COLOR.blue,\n purple: BRAND_COLOR.purple,\n orange: BRAND_COLOR.orange,\n red: BRAND_COLOR.red,\n rose: BRAND_COLOR.rose,\n};\n\nexport const BRAND_GRADIENT = `linear-gradient(115deg, ${[BRAND_COLOR.blue, BRAND_COLOR.purple, BRAND_COLOR.rose, BRAND_COLOR.orange, BRAND_COLOR.blue].join(\", \")})`;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,MAAM,QAAQ;AAAA,EACnB,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,OAAO;AAAA,IACL,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AACF;AAEA,MAAM,QAAQ,CAAC,SAAiB,aAAa,IAAI;AAE1C,MAAM,cAAc;AAAA,EACzB,MAAM,MAAM,YAAY;AAAA,EACxB,QAAQ,MAAM,cAAc;AAAA,EAC5B,MAAM,MAAM,YAAY;AAAA,EACxB,QAAQ,MAAM,cAAc;AAAA,EAC5B,OAAO,MAAM,aAAa;AAAA,EAC1B,MAAM,MAAM,YAAY;AAAA,EACxB,KAAK,MAAM,aAAa;AAC1B;AAIA,MAAM,OAAO,CAAC,GAAmB,MAAgD,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,GAAG,YAAY,CAAC,CAAC;AAEzH,MAAM,mBAA6D;AAAA,EACxE,KAAK,KAAK,QAAQ,QAAQ;AAAA,EAC1B,QAAQ,KAAK,SAAS,QAAQ;AAAA,EAC9B,OAAO,KAAK,QAAQ,QAAQ;AAAA,EAC5B,OAAO,KAAK,UAAU,MAAM;AAAA,EAC5B,SAAS,KAAK,QAAQ,QAAQ;AAChC;AAEO,MAAM,qBAA6C;AAAA,EACxD,KAAK,YAAY;AAAA,EACjB,QAAQ,YAAY;AAAA,EACpB,OAAO,YAAY;AAAA,EACnB,OAAO,YAAY;AAAA,EACnB,SAAS,YAAY;AACvB;AAEO,MAAM,iBAA2D;AAAA,EACtE,MAAM,KAAK,QAAQ,QAAQ;AAAA,EAC3B,QAAQ,KAAK,UAAU,MAAM;AAAA,EAC7B,QAAQ,KAAK,UAAU,MAAM;AAAA,EAC7B,KAAK,KAAK,OAAO,MAAM;AAAA,EACvB,MAAM,KAAK,QAAQ,QAAQ;AAC7B;AAEO,MAAM,mBAA2C;AAAA,EACtD,MAAM,YAAY;AAAA,EAClB,QAAQ,YAAY;AAAA,EACpB,QAAQ,YAAY;AAAA,EACpB,KAAK,YAAY;AAAA,EACjB,MAAM,YAAY;AACpB;AAEO,MAAM,iBAAiB,2BAA2B,CAAC,YAAY,MAAM,YAAY,QAAQ,YAAY,MAAM,YAAY,QAAQ,YAAY,IAAI,EAAE,KAAK,IAAI,CAAC;","names":[]}
@@ -39,5 +39,20 @@ declare const BRAND: {
39
39
  readonly to: "to-brand-navy/10";
40
40
  };
41
41
  };
42
+ declare const BRAND_COLOR: {
43
+ readonly blue: string;
44
+ readonly purple: string;
45
+ readonly rose: string;
46
+ readonly orange: string;
47
+ readonly maeve: string;
48
+ readonly navy: string;
49
+ readonly red: string;
50
+ };
51
+ type BrandColorName = keyof typeof BRAND_COLOR;
52
+ declare const ACTION_GRADIENTS: Record<string, [string, string, string]>;
53
+ declare const ACTION_FOREGROUNDS: Record<string, string>;
54
+ declare const TONE_GRADIENTS: Record<string, [string, string, string]>;
55
+ declare const TONE_FOREGROUNDS: Record<string, string>;
56
+ declare const BRAND_GRADIENT: string;
42
57
 
43
- export { BRAND };
58
+ export { ACTION_FOREGROUNDS, ACTION_GRADIENTS, BRAND, BRAND_COLOR, BRAND_GRADIENT, type BrandColorName, TONE_FOREGROUNDS, TONE_GRADIENTS };
@@ -39,5 +39,20 @@ declare const BRAND: {
39
39
  readonly to: "to-brand-navy/10";
40
40
  };
41
41
  };
42
+ declare const BRAND_COLOR: {
43
+ readonly blue: string;
44
+ readonly purple: string;
45
+ readonly rose: string;
46
+ readonly orange: string;
47
+ readonly maeve: string;
48
+ readonly navy: string;
49
+ readonly red: string;
50
+ };
51
+ type BrandColorName = keyof typeof BRAND_COLOR;
52
+ declare const ACTION_GRADIENTS: Record<string, [string, string, string]>;
53
+ declare const ACTION_FOREGROUNDS: Record<string, string>;
54
+ declare const TONE_GRADIENTS: Record<string, [string, string, string]>;
55
+ declare const TONE_FOREGROUNDS: Record<string, string>;
56
+ declare const BRAND_GRADIENT: string;
42
57
 
43
- export { BRAND };
58
+ export { ACTION_FOREGROUNDS, ACTION_GRADIENTS, BRAND, BRAND_COLOR, BRAND_GRADIENT, type BrandColorName, TONE_FOREGROUNDS, TONE_GRADIENTS };
@@ -39,7 +39,53 @@ const BRAND = {
39
39
  to: "to-brand-navy/10"
40
40
  }
41
41
  };
42
+ const token = (name) => `hsl(var(--${name}))`;
43
+ const BRAND_COLOR = {
44
+ blue: token("brand-blue"),
45
+ purple: token("brand-purple"),
46
+ rose: token("brand-rose"),
47
+ orange: token("brand-orange"),
48
+ maeve: token("brand-maeve"),
49
+ navy: token("brand-navy"),
50
+ red: token("destructive")
51
+ };
52
+ const loop = (a, b) => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];
53
+ const ACTION_GRADIENTS = {
54
+ buy: loop("blue", "purple"),
55
+ submit: loop("maeve", "purple"),
56
+ offer: loop("rose", "orange"),
57
+ remix: loop("purple", "rose"),
58
+ license: loop("blue", "purple")
59
+ };
60
+ const ACTION_FOREGROUNDS = {
61
+ buy: BRAND_COLOR.blue,
62
+ submit: BRAND_COLOR.purple,
63
+ offer: BRAND_COLOR.orange,
64
+ remix: BRAND_COLOR.purple,
65
+ license: BRAND_COLOR.blue
66
+ };
67
+ const TONE_GRADIENTS = {
68
+ blue: loop("blue", "purple"),
69
+ purple: loop("purple", "rose"),
70
+ orange: loop("orange", "rose"),
71
+ red: loop("red", "rose"),
72
+ rose: loop("rose", "orange")
73
+ };
74
+ const TONE_FOREGROUNDS = {
75
+ blue: BRAND_COLOR.blue,
76
+ purple: BRAND_COLOR.purple,
77
+ orange: BRAND_COLOR.orange,
78
+ red: BRAND_COLOR.red,
79
+ rose: BRAND_COLOR.rose
80
+ };
81
+ const BRAND_GRADIENT = `linear-gradient(115deg, ${[BRAND_COLOR.blue, BRAND_COLOR.purple, BRAND_COLOR.rose, BRAND_COLOR.orange, BRAND_COLOR.blue].join(", ")})`;
42
82
  export {
43
- BRAND
83
+ ACTION_FOREGROUNDS,
84
+ ACTION_GRADIENTS,
85
+ BRAND,
86
+ BRAND_COLOR,
87
+ BRAND_GRADIENT,
88
+ TONE_FOREGROUNDS,
89
+ TONE_GRADIENTS
44
90
  };
45
91
  //# sourceMappingURL=brand.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/data/brand.ts"],"sourcesContent":["\nexport const BRAND = {\n blue: {\n text: \"text-brand-blue\",\n bg: \"bg-brand-blue/10\",\n bgSolid: \"bg-brand-blue/15\",\n from: \"from-brand-blue/20\",\n to: \"to-brand-blue/20\",\n },\n purple: {\n text: \"text-brand-purple\",\n bg: \"bg-brand-purple/10\",\n bgSolid: \"bg-brand-purple/15\",\n from: \"from-brand-purple/20\",\n to: \"to-brand-purple/20\",\n },\n rose: {\n text: \"text-brand-rose\",\n bg: \"bg-brand-rose/10\",\n bgSolid: \"bg-brand-rose/15\",\n from: \"from-brand-rose/20\",\n to: \"to-brand-rose/20\",\n },\n orange: {\n text: \"text-brand-orange\",\n bg: \"bg-brand-orange/10\",\n bgSolid: \"bg-brand-orange/15\",\n from: \"from-brand-orange/20\",\n to: \"to-brand-orange/20\",\n },\n maeve: {\n text: \"text-brand-maeve\",\n bg: \"bg-brand-maeve/10\",\n bgSolid: \"bg-brand-maeve/15\",\n },\n navy: {\n text: \"text-brand-navy\",\n bg: \"bg-brand-navy/10\",\n from: \"from-brand-navy/10\",\n to: \"to-brand-navy/10\",\n },\n} as const;\n"],"mappings":"AACO,MAAM,QAAQ;AAAA,EACnB,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,OAAO;AAAA,IACL,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/data/brand.ts"],"sourcesContent":["\nexport const BRAND = {\n blue: {\n text: \"text-brand-blue\",\n bg: \"bg-brand-blue/10\",\n bgSolid: \"bg-brand-blue/15\",\n from: \"from-brand-blue/20\",\n to: \"to-brand-blue/20\",\n },\n purple: {\n text: \"text-brand-purple\",\n bg: \"bg-brand-purple/10\",\n bgSolid: \"bg-brand-purple/15\",\n from: \"from-brand-purple/20\",\n to: \"to-brand-purple/20\",\n },\n rose: {\n text: \"text-brand-rose\",\n bg: \"bg-brand-rose/10\",\n bgSolid: \"bg-brand-rose/15\",\n from: \"from-brand-rose/20\",\n to: \"to-brand-rose/20\",\n },\n orange: {\n text: \"text-brand-orange\",\n bg: \"bg-brand-orange/10\",\n bgSolid: \"bg-brand-orange/15\",\n from: \"from-brand-orange/20\",\n to: \"to-brand-orange/20\",\n },\n maeve: {\n text: \"text-brand-maeve\",\n bg: \"bg-brand-maeve/10\",\n bgSolid: \"bg-brand-maeve/15\",\n },\n navy: {\n text: \"text-brand-navy\",\n bg: \"bg-brand-navy/10\",\n from: \"from-brand-navy/10\",\n to: \"to-brand-navy/10\",\n },\n} as const;\n\nconst token = (name: string) => `hsl(var(--${name}))`;\n\nexport const BRAND_COLOR = {\n blue: token(\"brand-blue\"),\n purple: token(\"brand-purple\"),\n rose: token(\"brand-rose\"),\n orange: token(\"brand-orange\"),\n maeve: token(\"brand-maeve\"),\n navy: token(\"brand-navy\"),\n red: token(\"destructive\"),\n} as const;\n\nexport type BrandColorName = keyof typeof BRAND_COLOR;\n\nconst loop = (a: BrandColorName, b: BrandColorName): [string, string, string] => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];\n\nexport const ACTION_GRADIENTS: Record<string, [string, string, string]> = {\n buy: loop(\"blue\", \"purple\"),\n submit: loop(\"maeve\", \"purple\"),\n offer: loop(\"rose\", \"orange\"),\n remix: loop(\"purple\", \"rose\"),\n license: loop(\"blue\", \"purple\"),\n};\n\nexport const ACTION_FOREGROUNDS: Record<string, string> = {\n buy: BRAND_COLOR.blue,\n submit: BRAND_COLOR.purple,\n offer: BRAND_COLOR.orange,\n remix: BRAND_COLOR.purple,\n license: BRAND_COLOR.blue,\n};\n\nexport const TONE_GRADIENTS: Record<string, [string, string, string]> = {\n blue: loop(\"blue\", \"purple\"),\n purple: loop(\"purple\", \"rose\"),\n orange: loop(\"orange\", \"rose\"),\n red: loop(\"red\", \"rose\"),\n rose: loop(\"rose\", \"orange\"),\n};\n\nexport const TONE_FOREGROUNDS: Record<string, string> = {\n blue: BRAND_COLOR.blue,\n purple: BRAND_COLOR.purple,\n orange: BRAND_COLOR.orange,\n red: BRAND_COLOR.red,\n rose: BRAND_COLOR.rose,\n};\n\nexport const BRAND_GRADIENT = `linear-gradient(115deg, ${[BRAND_COLOR.blue, BRAND_COLOR.purple, BRAND_COLOR.rose, BRAND_COLOR.orange, BRAND_COLOR.blue].join(\", \")})`;\n"],"mappings":"AACO,MAAM,QAAQ;AAAA,EACnB,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AAAA,EACA,OAAO;AAAA,IACL,MAAS;AAAA,IACT,IAAS;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,IACJ,MAAS;AAAA,IACT,IAAS;AAAA,IACT,MAAS;AAAA,IACT,IAAS;AAAA,EACX;AACF;AAEA,MAAM,QAAQ,CAAC,SAAiB,aAAa,IAAI;AAE1C,MAAM,cAAc;AAAA,EACzB,MAA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c) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var index_exports = {};
20
20
  __export(index_exports, {
21
+ ACTION_FOREGROUNDS: () => import_brand.ACTION_FOREGROUNDS,
22
+ ACTION_GRADIENTS: () => import_brand.ACTION_GRADIENTS,
21
23
  ACTIVITY_MESSAGES: () => import_activity_card.ACTIVITY_MESSAGES,
22
24
  ACTIVITY_TYPE_CONFIG: () => import_activity.ACTIVITY_TYPE_CONFIG,
23
25
  AI_POLICIES: () => import_ip.AI_POLICIES,
24
26
  ASSET_ACCENTS: () => import_asset_accents.ASSET_ACCENTS,
25
27
  AccountSection: () => import_account_section.AccountSection,
26
28
  ActionButton: () => import_action_button.ActionButton,
27
- ActionDialog: () => import_action_dialog.ActionDialog,
28
29
  ActiveFilters: () => import_marketplace_filters.ActiveFilters,
29
30
  ActivitiesFeed: () => import_activities_feed.ActivitiesFeed,
30
31
  ActivityCard: () => import_activity_card.ActivityCard,
@@ -60,6 +61,8 @@ __export(index_exports, {
60
61
  AssetUnavailable: () => import_asset_unavailable.AssetUnavailable,
61
62
  AssetUtilityIcons: () => import_asset_utility_icons.AssetUtilityIcons,
62
63
  BRAND: () => import_brand.BRAND,
64
+ BRAND_COLOR: () => import_brand.BRAND_COLOR,
65
+ BRAND_GRADIENT: () => import_brand.BRAND_GRADIENT,
63
66
  BackButton: () => import_back_button.BackButton,
64
67
  Badge: () => import_badge.Badge,
65
68
  BadgeCatalog: () => import_badge_catalog.BadgeCatalog,
@@ -432,6 +435,7 @@ __export(index_exports, {
432
435
  emptyMessages: () => import_empty_messages.emptyMessages,
433
436
  fdvUsd: () => import_coins.fdvUsd,
434
437
  feeLabelFor: () => import_self_fund_consent_dialog.feeLabelFor,
438
+ fireConfetti: () => import_confetti.fireConfetti,
435
439
  formatActivity: () => import_format_activity.formatActivity,
436
440
  formatAssetReceivedNotification: () => import_format_activity.formatAssetReceivedNotification,
437
441
  formatCoinPrice: () => import_coins.formatCoinPrice,
@@ -512,6 +516,7 @@ __export(index_exports, {
512
516
  useCollections: () => import_use_collections.useCollections,
513
517
  useCollectionsByOwner: () => import_use_collections.useCollectionsByOwner,
514
518
  useComments: () => import_use_comments.useComments,
519
+ useConfetti: () => import_use_confetti.useConfetti,
515
520
  useCounterOffers: () => import_use_orders.useCounterOffers,
516
521
  useCreatorByUsername: () => import_use_profiles.useCreatorByUsername,
517
522
  useCreatorProfile: () => import_use_profiles.useCreatorProfile,
@@ -622,6 +627,8 @@ var import_asset_attributes = require("./utils/asset-attributes.js");
622
627
  var import_asset_collection_bar = require("./components/asset-collection-bar.js");
623
628
  var import_asset_utility_icons = require("./components/asset-utility-icons.js");
624
629
  var import_asset_marketplace_panel = require("./components/asset-marketplace-panel.js");
630
+ var import_confetti = require("./utils/media-wallet/confetti.js");
631
+ var import_use_confetti = require("./utils/use-confetti.js");
625
632
  var import_brand = require("./data/brand.js");
626
633
  var import_living_render_collections = require("./data/living-render-collections.js");
627
634
  var import_currency_icon = require("./components/currency-icon.js");
@@ -799,7 +806,6 @@ var import_empty_messages = require("./utils/empty-messages.js");
799
806
  var import_medialane_collection_card = require("./components/medialane-collection-card.js");
800
807
  var import_token_glyph = require("./components/token-glyph.js");
801
808
  var import_stat_tile = require("./components/stat-tile.js");
802
- var import_action_dialog = require("./components/action-dialog.js");
803
809
  var import_hidden_content_banner = require("./components/hidden-content-banner.js");
804
810
  var import_use_rewards_celebrations = require("./components/rewards/use-rewards-celebrations.js");
805
811
  var import_level_up_celebration = require("./components/rewards/level-up-celebration.js");
@@ -879,13 +885,14 @@ var import_asset_provenance_tab = require("./components/asset-provenance-tab.js"
879
885
  var import_asset_accents = require("./utils/asset-accents.js");
880
886
  // Annotate the CommonJS export names for ESM import in node:
881
887
  0 && (module.exports = {
888
+ ACTION_FOREGROUNDS,
889
+ ACTION_GRADIENTS,
882
890
  ACTIVITY_MESSAGES,
883
891
  ACTIVITY_TYPE_CONFIG,
884
892
  AI_POLICIES,
885
893
  ASSET_ACCENTS,
886
894
  AccountSection,
887
895
  ActionButton,
888
- ActionDialog,
889
896
  ActiveFilters,
890
897
  ActivitiesFeed,
891
898
  ActivityCard,
@@ -921,6 +928,8 @@ var import_asset_accents = require("./utils/asset-accents.js");
921
928
  AssetUnavailable,
922
929
  AssetUtilityIcons,
923
930
  BRAND,
931
+ BRAND_COLOR,
932
+ BRAND_GRADIENT,
924
933
  BackButton,
925
934
  Badge,
926
935
  BadgeCatalog,
@@ -1293,6 +1302,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1293
1302
  emptyMessages,
1294
1303
  fdvUsd,
1295
1304
  feeLabelFor,
1305
+ fireConfetti,
1296
1306
  formatActivity,
1297
1307
  formatAssetReceivedNotification,
1298
1308
  formatCoinPrice,
@@ -1373,6 +1383,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1373
1383
  useCollections,
1374
1384
  useCollectionsByOwner,
1375
1385
  useComments,
1386
+ useConfetti,
1376
1387
  useCounterOffers,
1377
1388
  useCreatorByUsername,
1378
1389
  useCreatorProfile,