@medialane/ui 0.375.0 → 0.377.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 (101) 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 +9 -7
  4. package/dist/components/action-button.cjs.map +1 -1
  5. package/dist/components/action-button.d.cts +8 -4
  6. package/dist/components/action-button.d.ts +8 -4
  7. package/dist/components/action-button.js +10 -8
  8. package/dist/components/action-button.js.map +1 -1
  9. package/dist/components/alert.d.cts +1 -1
  10. package/dist/components/alert.d.ts +1 -1
  11. package/dist/components/archived-asset-notice.cjs +2 -1
  12. package/dist/components/archived-asset-notice.cjs.map +1 -1
  13. package/dist/components/archived-asset-notice.js +2 -1
  14. package/dist/components/archived-asset-notice.js.map +1 -1
  15. package/dist/components/asset-access-cards.cjs +2 -1
  16. package/dist/components/asset-access-cards.cjs.map +1 -1
  17. package/dist/components/asset-access-cards.js +2 -1
  18. package/dist/components/asset-access-cards.js.map +1 -1
  19. package/dist/components/asset-collection-bar.cjs +3 -2
  20. package/dist/components/asset-collection-bar.cjs.map +1 -1
  21. package/dist/components/asset-collection-bar.js +3 -2
  22. package/dist/components/asset-collection-bar.js.map +1 -1
  23. package/dist/components/asset-license-summary.cjs +4 -10
  24. package/dist/components/asset-license-summary.cjs.map +1 -1
  25. package/dist/components/asset-license-summary.js +4 -10
  26. package/dist/components/asset-license-summary.js.map +1 -1
  27. package/dist/components/asset-marketplace-panel.cjs +7 -17
  28. package/dist/components/asset-marketplace-panel.cjs.map +1 -1
  29. package/dist/components/asset-marketplace-panel.js +7 -17
  30. package/dist/components/asset-marketplace-panel.js.map +1 -1
  31. package/dist/components/asset-markets-tab.cjs +6 -23
  32. package/dist/components/asset-markets-tab.cjs.map +1 -1
  33. package/dist/components/asset-markets-tab.js +6 -23
  34. package/dist/components/asset-markets-tab.js.map +1 -1
  35. package/dist/components/asset-overview-content.cjs +27 -36
  36. package/dist/components/asset-overview-content.cjs.map +1 -1
  37. package/dist/components/asset-overview-content.js +27 -36
  38. package/dist/components/asset-overview-content.js.map +1 -1
  39. package/dist/components/asset-owners-panel.cjs +2 -1
  40. package/dist/components/asset-owners-panel.cjs.map +1 -1
  41. package/dist/components/asset-owners-panel.js +2 -1
  42. package/dist/components/asset-owners-panel.js.map +1 -1
  43. package/dist/components/asset-provenance-tab.cjs +15 -12
  44. package/dist/components/asset-provenance-tab.cjs.map +1 -1
  45. package/dist/components/asset-provenance-tab.js +15 -12
  46. package/dist/components/asset-provenance-tab.js.map +1 -1
  47. package/dist/components/asset-publication.cjs +2 -1
  48. package/dist/components/asset-publication.cjs.map +1 -1
  49. package/dist/components/asset-publication.js +2 -1
  50. package/dist/components/asset-publication.js.map +1 -1
  51. package/dist/components/asset-type-panels.cjs +4 -5
  52. package/dist/components/asset-type-panels.cjs.map +1 -1
  53. package/dist/components/asset-type-panels.js +4 -5
  54. package/dist/components/asset-type-panels.js.map +1 -1
  55. package/dist/components/badge.d.cts +1 -1
  56. package/dist/components/badge.d.ts +1 -1
  57. package/dist/components/button.d.cts +2 -2
  58. package/dist/components/button.d.ts +2 -2
  59. package/dist/components/hidden-content-banner.cjs +4 -3
  60. package/dist/components/hidden-content-banner.cjs.map +1 -1
  61. package/dist/components/hidden-content-banner.js +4 -3
  62. package/dist/components/hidden-content-banner.js.map +1 -1
  63. package/dist/components/ip-type-badge.cjs +2 -3
  64. package/dist/components/ip-type-badge.cjs.map +1 -1
  65. package/dist/components/ip-type-badge.js +2 -3
  66. package/dist/components/ip-type-badge.js.map +1 -1
  67. package/dist/components/ip-type-display.cjs +5 -2
  68. package/dist/components/ip-type-display.cjs.map +1 -1
  69. package/dist/components/ip-type-display.js +5 -2
  70. package/dist/components/ip-type-display.js.map +1 -1
  71. package/dist/components/launchpad/edition-mint-schema.d.cts +2 -2
  72. package/dist/components/launchpad/edition-mint-schema.d.ts +2 -2
  73. package/dist/components/panel.cjs +81 -0
  74. package/dist/components/panel.cjs.map +1 -0
  75. package/dist/components/panel.d.cts +22 -0
  76. package/dist/components/panel.d.ts +22 -0
  77. package/dist/components/panel.js +44 -0
  78. package/dist/components/panel.js.map +1 -0
  79. package/dist/components/sheet.d.cts +1 -1
  80. package/dist/components/sheet.d.ts +1 -1
  81. package/dist/components/soulbound-card.cjs +2 -1
  82. package/dist/components/soulbound-card.cjs.map +1 -1
  83. package/dist/components/soulbound-card.js +2 -1
  84. package/dist/components/soulbound-card.js.map +1 -1
  85. package/dist/data/brand.cjs +37 -25
  86. package/dist/data/brand.cjs.map +1 -1
  87. package/dist/data/brand.d.cts +31 -14
  88. package/dist/data/brand.d.ts +31 -14
  89. package/dist/data/brand.js +33 -24
  90. package/dist/data/brand.js.map +1 -1
  91. package/dist/data/ip-types.cjs +11 -9
  92. package/dist/data/ip-types.cjs.map +1 -1
  93. package/dist/data/ip-types.js +11 -9
  94. package/dist/data/ip-types.js.map +1 -1
  95. package/dist/index.cjs +9 -0
  96. package/dist/index.cjs.map +1 -1
  97. package/dist/index.d.cts +1 -0
  98. package/dist/index.d.ts +1 -0
  99. package/dist/index.js +5 -0
  100. package/dist/index.js.map +1 -1
  101. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/soulbound-card.tsx"],"sourcesContent":["\"use client\";\n\nimport { Fingerprint } from \"lucide-react\";\nimport { profileHref, type ApiActivity } from \"@medialane/sdk\";\nimport Link from \"./link.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { useLocale, useT } from \"../i18n/provider.js\";\nimport { formatDate } from \"../i18n/format.js\";\n\nexport function issuedAt(history: readonly ApiActivity[], locale?: string): string | null {\n const times = history\n .filter((event) => event.type === \"mint\")\n .map((event) => new Date(event.timestamp).getTime())\n .filter((time) => Number.isFinite(time));\n if (times.length === 0) return null;\n return formatDate(Math.min(...times), locale, { day: \"numeric\", month: \"short\", year: \"numeric\" });\n}\n\nexport function SoulboundBadge() {\n const t = useT();\n return (\n <span className=\"inline-flex items-center gap-1 text-xs font-semibold text-brand-purple\">\n <Fingerprint className=\"h-3.5 w-3.5\" aria-hidden />\n {t(\"Soulbound\")}\n </span>\n );\n}\n\nexport interface SoulboundCardProps {\n history?: readonly ApiActivity[];\n ownerAddress?: string | null;\n}\n\nexport function SoulboundCard({ history = [], ownerAddress }: SoulboundCardProps) {\n const t = useT();\n const locale = useLocale();\n const issued = issuedAt(history, locale);\n return (\n <section aria-label={t(\"Soulbound asset\")} className=\"flex items-center gap-4 overflow-hidden rounded-2xl bg-gradient-to-br from-muted/40 to-transparent p-4\">\n <Fingerprint className=\"h-7 w-7 shrink-0 text-brand-purple\" strokeWidth={1.5} aria-hidden />\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"font-display text-base font-bold leading-tight text-foreground\">{t(\"Soulbound\")}</h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">\n {ownerAddress ? (\n <>\n {t(\"Permanently bound to\")}{\" \"}\n <Link href={profileHref({ address: ownerAddress })} title={ownerAddress} className=\"font-mono font-medium text-foreground transition-colors hover:text-primary\">\n {shortenAddress(ownerAddress)}\n </Link>\n </>\n ) : (\n t(\"Permanently bound to the wallet it was issued to.\")\n )}\n </p>\n </div>\n {issued ? (\n <div className=\"shrink-0 text-right\">\n <p className=\"text-xs text-muted-foreground\">{t(\"Issued\")}</p>\n <p className=\"mt-0.5 text-sm font-semibold tabular-nums text-foreground\">{issued}</p>\n </div>\n ) : null}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBI;AAnBJ,0BAA4B;AAC5B,iBAA8C;AAC9C,kBAAiB;AACjB,qBAA+B;AAC/B,sBAAgC;AAChC,oBAA2B;AAEpB,SAAS,SAAS,SAAiC,QAAgC;AACxF,QAAM,QAAQ,QACX,OAAO,CAAC,UAAU,MAAM,SAAS,MAAM,EACvC,IAAI,CAAC,UAAU,IAAI,KAAK,MAAM,SAAS,EAAE,QAAQ,CAAC,EAClD,OAAO,CAAC,SAAS,OAAO,SAAS,IAAI,CAAC;AACzC,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,aAAO,0BAAW,KAAK,IAAI,GAAG,KAAK,GAAG,QAAQ,EAAE,KAAK,WAAW,OAAO,SAAS,MAAM,UAAU,CAAC;AACnG;AAEO,SAAS,iBAAiB;AAC/B,QAAM,QAAI,sBAAK;AACf,SACE,6CAAC,UAAK,WAAU,0EACd;AAAA,gDAAC,mCAAY,WAAU,eAAc,eAAW,MAAC;AAAA,IAChD,EAAE,WAAW;AAAA,KAChB;AAEJ;AAOO,SAAS,cAAc,EAAE,UAAU,CAAC,GAAG,aAAa,GAAuB;AAChF,QAAM,QAAI,sBAAK;AACf,QAAM,aAAS,2BAAU;AACzB,QAAM,SAAS,SAAS,SAAS,MAAM;AACvC,SACE,6CAAC,aAAQ,cAAY,EAAE,iBAAiB,GAAG,WAAU,0GACnD;AAAA,gDAAC,mCAAY,WAAU,sCAAqC,aAAa,KAAK,eAAW,MAAC;AAAA,IAC1F,6CAAC,SAAI,WAAU,kBACb;AAAA,kDAAC,QAAG,WAAU,kEAAkE,YAAE,WAAW,GAAE;AAAA,MAC/F,4CAAC,OAAE,WAAU,iDACV,yBACC,4EACG;AAAA,UAAE,sBAAsB;AAAA,QAAG;AAAA,QAC5B,4CAAC,YAAAA,SAAA,EAAK,UAAM,wBAAY,EAAE,SAAS,aAAa,CAAC,GAAG,OAAO,cAAc,WAAU,8EAChF,6CAAe,YAAY,GAC9B;AAAA,SACF,IAEA,EAAE,mDAAmD,GAEzD;AAAA,OACF;AAAA,IACC,SACC,6CAAC,SAAI,WAAU,uBACb;AAAA,kDAAC,OAAE,WAAU,iCAAiC,YAAE,QAAQ,GAAE;AAAA,MAC1D,4CAAC,OAAE,WAAU,6DAA6D,kBAAO;AAAA,OACnF,IACE;AAAA,KACN;AAEJ;","names":["Link"]}
1
+ {"version":3,"sources":["../../src/components/soulbound-card.tsx"],"sourcesContent":["\"use client\";\n\nimport { Fingerprint } from \"lucide-react\";\nimport { profileHref, type ApiActivity } from \"@medialane/sdk\";\nimport Link from \"./link.js\";\nimport { panelBackground } from \"./panel.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { useLocale, useT } from \"../i18n/provider.js\";\nimport { formatDate } from \"../i18n/format.js\";\n\nexport function issuedAt(history: readonly ApiActivity[], locale?: string): string | null {\n const times = history\n .filter((event) => event.type === \"mint\")\n .map((event) => new Date(event.timestamp).getTime())\n .filter((time) => Number.isFinite(time));\n if (times.length === 0) return null;\n return formatDate(Math.min(...times), locale, { day: \"numeric\", month: \"short\", year: \"numeric\" });\n}\n\nexport function SoulboundBadge() {\n const t = useT();\n return (\n <span className=\"inline-flex items-center gap-1 text-xs font-semibold text-brand-purple\">\n <Fingerprint className=\"h-3.5 w-3.5\" aria-hidden />\n {t(\"Soulbound\")}\n </span>\n );\n}\n\nexport interface SoulboundCardProps {\n history?: readonly ApiActivity[];\n ownerAddress?: string | null;\n}\n\nexport function SoulboundCard({ history = [], ownerAddress }: SoulboundCardProps) {\n const t = useT();\n const locale = useLocale();\n const issued = issuedAt(history, locale);\n return (\n <section aria-label={t(\"Soulbound asset\")} className=\"flex items-center gap-4 overflow-hidden rounded-2xl p-4\" style={{ backgroundImage: panelBackground() }}>\n <Fingerprint className=\"h-7 w-7 shrink-0 text-brand-purple\" strokeWidth={1.5} aria-hidden />\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"font-display text-base font-bold leading-tight text-foreground\">{t(\"Soulbound\")}</h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">\n {ownerAddress ? (\n <>\n {t(\"Permanently bound to\")}{\" \"}\n <Link href={profileHref({ address: ownerAddress })} title={ownerAddress} className=\"font-mono font-medium text-foreground transition-colors hover:text-primary\">\n {shortenAddress(ownerAddress)}\n </Link>\n </>\n ) : (\n t(\"Permanently bound to the wallet it was issued to.\")\n )}\n </p>\n </div>\n {issued ? (\n <div className=\"shrink-0 text-right\">\n <p className=\"text-xs text-muted-foreground\">{t(\"Issued\")}</p>\n <p className=\"mt-0.5 text-sm font-semibold tabular-nums text-foreground\">{issued}</p>\n </div>\n ) : null}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBI;AApBJ,0BAA4B;AAC5B,iBAA8C;AAC9C,kBAAiB;AACjB,mBAAgC;AAChC,qBAA+B;AAC/B,sBAAgC;AAChC,oBAA2B;AAEpB,SAAS,SAAS,SAAiC,QAAgC;AACxF,QAAM,QAAQ,QACX,OAAO,CAAC,UAAU,MAAM,SAAS,MAAM,EACvC,IAAI,CAAC,UAAU,IAAI,KAAK,MAAM,SAAS,EAAE,QAAQ,CAAC,EAClD,OAAO,CAAC,SAAS,OAAO,SAAS,IAAI,CAAC;AACzC,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,aAAO,0BAAW,KAAK,IAAI,GAAG,KAAK,GAAG,QAAQ,EAAE,KAAK,WAAW,OAAO,SAAS,MAAM,UAAU,CAAC;AACnG;AAEO,SAAS,iBAAiB;AAC/B,QAAM,QAAI,sBAAK;AACf,SACE,6CAAC,UAAK,WAAU,0EACd;AAAA,gDAAC,mCAAY,WAAU,eAAc,eAAW,MAAC;AAAA,IAChD,EAAE,WAAW;AAAA,KAChB;AAEJ;AAOO,SAAS,cAAc,EAAE,UAAU,CAAC,GAAG,aAAa,GAAuB;AAChF,QAAM,QAAI,sBAAK;AACf,QAAM,aAAS,2BAAU;AACzB,QAAM,SAAS,SAAS,SAAS,MAAM;AACvC,SACE,6CAAC,aAAQ,cAAY,EAAE,iBAAiB,GAAG,WAAU,2DAA0D,OAAO,EAAE,qBAAiB,8BAAgB,EAAE,GACzJ;AAAA,gDAAC,mCAAY,WAAU,sCAAqC,aAAa,KAAK,eAAW,MAAC;AAAA,IAC1F,6CAAC,SAAI,WAAU,kBACb;AAAA,kDAAC,QAAG,WAAU,kEAAkE,YAAE,WAAW,GAAE;AAAA,MAC/F,4CAAC,OAAE,WAAU,iDACV,yBACC,4EACG;AAAA,UAAE,sBAAsB;AAAA,QAAG;AAAA,QAC5B,4CAAC,YAAAA,SAAA,EAAK,UAAM,wBAAY,EAAE,SAAS,aAAa,CAAC,GAAG,OAAO,cAAc,WAAU,8EAChF,6CAAe,YAAY,GAC9B;AAAA,SACF,IAEA,EAAE,mDAAmD,GAEzD;AAAA,OACF;AAAA,IACC,SACC,6CAAC,SAAI,WAAU,uBACb;AAAA,kDAAC,OAAE,WAAU,iCAAiC,YAAE,QAAQ,GAAE;AAAA,MAC1D,4CAAC,OAAE,WAAU,6DAA6D,kBAAO;AAAA,OACnF,IACE;AAAA,KACN;AAEJ;","names":["Link"]}
@@ -3,6 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fingerprint } from "lucide-react";
4
4
  import { profileHref } from "@medialane/sdk";
5
5
  import Link from "./link.js";
6
+ import { panelBackground } from "./panel.js";
6
7
  import { shortenAddress } from "../utils/address.js";
7
8
  import { useLocale, useT } from "../i18n/provider.js";
8
9
  import { formatDate } from "../i18n/format.js";
@@ -22,7 +23,7 @@ function SoulboundCard({ history = [], ownerAddress }) {
22
23
  const t = useT();
23
24
  const locale = useLocale();
24
25
  const issued = issuedAt(history, locale);
25
- return /* @__PURE__ */ jsxs("section", { "aria-label": t("Soulbound asset"), className: "flex items-center gap-4 overflow-hidden rounded-2xl bg-gradient-to-br from-muted/40 to-transparent p-4", children: [
26
+ return /* @__PURE__ */ jsxs("section", { "aria-label": t("Soulbound asset"), className: "flex items-center gap-4 overflow-hidden rounded-2xl p-4", style: { backgroundImage: panelBackground() }, children: [
26
27
  /* @__PURE__ */ jsx(Fingerprint, { className: "h-7 w-7 shrink-0 text-brand-purple", strokeWidth: 1.5, "aria-hidden": true }),
27
28
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
28
29
  /* @__PURE__ */ jsx("h3", { className: "font-display text-base font-bold leading-tight text-foreground", children: t("Soulbound") }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/soulbound-card.tsx"],"sourcesContent":["\"use client\";\n\nimport { Fingerprint } from \"lucide-react\";\nimport { profileHref, type ApiActivity } from \"@medialane/sdk\";\nimport Link from \"./link.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { useLocale, useT } from \"../i18n/provider.js\";\nimport { formatDate } from \"../i18n/format.js\";\n\nexport function issuedAt(history: readonly ApiActivity[], locale?: string): string | null {\n const times = history\n .filter((event) => event.type === \"mint\")\n .map((event) => new Date(event.timestamp).getTime())\n .filter((time) => Number.isFinite(time));\n if (times.length === 0) return null;\n return formatDate(Math.min(...times), locale, { day: \"numeric\", month: \"short\", year: \"numeric\" });\n}\n\nexport function SoulboundBadge() {\n const t = useT();\n return (\n <span className=\"inline-flex items-center gap-1 text-xs font-semibold text-brand-purple\">\n <Fingerprint className=\"h-3.5 w-3.5\" aria-hidden />\n {t(\"Soulbound\")}\n </span>\n );\n}\n\nexport interface SoulboundCardProps {\n history?: readonly ApiActivity[];\n ownerAddress?: string | null;\n}\n\nexport function SoulboundCard({ history = [], ownerAddress }: SoulboundCardProps) {\n const t = useT();\n const locale = useLocale();\n const issued = issuedAt(history, locale);\n return (\n <section aria-label={t(\"Soulbound asset\")} className=\"flex items-center gap-4 overflow-hidden rounded-2xl bg-gradient-to-br from-muted/40 to-transparent p-4\">\n <Fingerprint className=\"h-7 w-7 shrink-0 text-brand-purple\" strokeWidth={1.5} aria-hidden />\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"font-display text-base font-bold leading-tight text-foreground\">{t(\"Soulbound\")}</h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">\n {ownerAddress ? (\n <>\n {t(\"Permanently bound to\")}{\" \"}\n <Link href={profileHref({ address: ownerAddress })} title={ownerAddress} className=\"font-mono font-medium text-foreground transition-colors hover:text-primary\">\n {shortenAddress(ownerAddress)}\n </Link>\n </>\n ) : (\n t(\"Permanently bound to the wallet it was issued to.\")\n )}\n </p>\n </div>\n {issued ? (\n <div className=\"shrink-0 text-right\">\n <p className=\"text-xs text-muted-foreground\">{t(\"Issued\")}</p>\n <p className=\"mt-0.5 text-sm font-semibold tabular-nums text-foreground\">{issued}</p>\n </div>\n ) : null}\n </section>\n );\n}\n"],"mappings":";AAqBI,SAuBQ,UAtBN,KADF;AAnBJ,SAAS,mBAAmB;AAC5B,SAAS,mBAAqC;AAC9C,OAAO,UAAU;AACjB,SAAS,sBAAsB;AAC/B,SAAS,WAAW,YAAY;AAChC,SAAS,kBAAkB;AAEpB,SAAS,SAAS,SAAiC,QAAgC;AACxF,QAAM,QAAQ,QACX,OAAO,CAAC,UAAU,MAAM,SAAS,MAAM,EACvC,IAAI,CAAC,UAAU,IAAI,KAAK,MAAM,SAAS,EAAE,QAAQ,CAAC,EAClD,OAAO,CAAC,SAAS,OAAO,SAAS,IAAI,CAAC;AACzC,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,SAAO,WAAW,KAAK,IAAI,GAAG,KAAK,GAAG,QAAQ,EAAE,KAAK,WAAW,OAAO,SAAS,MAAM,UAAU,CAAC;AACnG;AAEO,SAAS,iBAAiB;AAC/B,QAAM,IAAI,KAAK;AACf,SACE,qBAAC,UAAK,WAAU,0EACd;AAAA,wBAAC,eAAY,WAAU,eAAc,eAAW,MAAC;AAAA,IAChD,EAAE,WAAW;AAAA,KAChB;AAEJ;AAOO,SAAS,cAAc,EAAE,UAAU,CAAC,GAAG,aAAa,GAAuB;AAChF,QAAM,IAAI,KAAK;AACf,QAAM,SAAS,UAAU;AACzB,QAAM,SAAS,SAAS,SAAS,MAAM;AACvC,SACE,qBAAC,aAAQ,cAAY,EAAE,iBAAiB,GAAG,WAAU,0GACnD;AAAA,wBAAC,eAAY,WAAU,sCAAqC,aAAa,KAAK,eAAW,MAAC;AAAA,IAC1F,qBAAC,SAAI,WAAU,kBACb;AAAA,0BAAC,QAAG,WAAU,kEAAkE,YAAE,WAAW,GAAE;AAAA,MAC/F,oBAAC,OAAE,WAAU,iDACV,yBACC,iCACG;AAAA,UAAE,sBAAsB;AAAA,QAAG;AAAA,QAC5B,oBAAC,QAAK,MAAM,YAAY,EAAE,SAAS,aAAa,CAAC,GAAG,OAAO,cAAc,WAAU,8EAChF,yBAAe,YAAY,GAC9B;AAAA,SACF,IAEA,EAAE,mDAAmD,GAEzD;AAAA,OACF;AAAA,IACC,SACC,qBAAC,SAAI,WAAU,uBACb;AAAA,0BAAC,OAAE,WAAU,iCAAiC,YAAE,QAAQ,GAAE;AAAA,MAC1D,oBAAC,OAAE,WAAU,6DAA6D,kBAAO;AAAA,OACnF,IACE;AAAA,KACN;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/soulbound-card.tsx"],"sourcesContent":["\"use client\";\n\nimport { Fingerprint } from \"lucide-react\";\nimport { profileHref, type ApiActivity } from \"@medialane/sdk\";\nimport Link from \"./link.js\";\nimport { panelBackground } from \"./panel.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { useLocale, useT } from \"../i18n/provider.js\";\nimport { formatDate } from \"../i18n/format.js\";\n\nexport function issuedAt(history: readonly ApiActivity[], locale?: string): string | null {\n const times = history\n .filter((event) => event.type === \"mint\")\n .map((event) => new Date(event.timestamp).getTime())\n .filter((time) => Number.isFinite(time));\n if (times.length === 0) return null;\n return formatDate(Math.min(...times), locale, { day: \"numeric\", month: \"short\", year: \"numeric\" });\n}\n\nexport function SoulboundBadge() {\n const t = useT();\n return (\n <span className=\"inline-flex items-center gap-1 text-xs font-semibold text-brand-purple\">\n <Fingerprint className=\"h-3.5 w-3.5\" aria-hidden />\n {t(\"Soulbound\")}\n </span>\n );\n}\n\nexport interface SoulboundCardProps {\n history?: readonly ApiActivity[];\n ownerAddress?: string | null;\n}\n\nexport function SoulboundCard({ history = [], ownerAddress }: SoulboundCardProps) {\n const t = useT();\n const locale = useLocale();\n const issued = issuedAt(history, locale);\n return (\n <section aria-label={t(\"Soulbound asset\")} className=\"flex items-center gap-4 overflow-hidden rounded-2xl p-4\" style={{ backgroundImage: panelBackground() }}>\n <Fingerprint className=\"h-7 w-7 shrink-0 text-brand-purple\" strokeWidth={1.5} aria-hidden />\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"font-display text-base font-bold leading-tight text-foreground\">{t(\"Soulbound\")}</h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">\n {ownerAddress ? (\n <>\n {t(\"Permanently bound to\")}{\" \"}\n <Link href={profileHref({ address: ownerAddress })} title={ownerAddress} className=\"font-mono font-medium text-foreground transition-colors hover:text-primary\">\n {shortenAddress(ownerAddress)}\n </Link>\n </>\n ) : (\n t(\"Permanently bound to the wallet it was issued to.\")\n )}\n </p>\n </div>\n {issued ? (\n <div className=\"shrink-0 text-right\">\n <p className=\"text-xs text-muted-foreground\">{t(\"Issued\")}</p>\n <p className=\"mt-0.5 text-sm font-semibold tabular-nums text-foreground\">{issued}</p>\n </div>\n ) : null}\n </section>\n );\n}\n"],"mappings":";AAsBI,SAuBQ,UAtBN,KADF;AApBJ,SAAS,mBAAmB;AAC5B,SAAS,mBAAqC;AAC9C,OAAO,UAAU;AACjB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,WAAW,YAAY;AAChC,SAAS,kBAAkB;AAEpB,SAAS,SAAS,SAAiC,QAAgC;AACxF,QAAM,QAAQ,QACX,OAAO,CAAC,UAAU,MAAM,SAAS,MAAM,EACvC,IAAI,CAAC,UAAU,IAAI,KAAK,MAAM,SAAS,EAAE,QAAQ,CAAC,EAClD,OAAO,CAAC,SAAS,OAAO,SAAS,IAAI,CAAC;AACzC,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,SAAO,WAAW,KAAK,IAAI,GAAG,KAAK,GAAG,QAAQ,EAAE,KAAK,WAAW,OAAO,SAAS,MAAM,UAAU,CAAC;AACnG;AAEO,SAAS,iBAAiB;AAC/B,QAAM,IAAI,KAAK;AACf,SACE,qBAAC,UAAK,WAAU,0EACd;AAAA,wBAAC,eAAY,WAAU,eAAc,eAAW,MAAC;AAAA,IAChD,EAAE,WAAW;AAAA,KAChB;AAEJ;AAOO,SAAS,cAAc,EAAE,UAAU,CAAC,GAAG,aAAa,GAAuB;AAChF,QAAM,IAAI,KAAK;AACf,QAAM,SAAS,UAAU;AACzB,QAAM,SAAS,SAAS,SAAS,MAAM;AACvC,SACE,qBAAC,aAAQ,cAAY,EAAE,iBAAiB,GAAG,WAAU,2DAA0D,OAAO,EAAE,iBAAiB,gBAAgB,EAAE,GACzJ;AAAA,wBAAC,eAAY,WAAU,sCAAqC,aAAa,KAAK,eAAW,MAAC;AAAA,IAC1F,qBAAC,SAAI,WAAU,kBACb;AAAA,0BAAC,QAAG,WAAU,kEAAkE,YAAE,WAAW,GAAE;AAAA,MAC/F,oBAAC,OAAE,WAAU,iDACV,yBACC,iCACG;AAAA,UAAE,sBAAsB;AAAA,QAAG;AAAA,QAC5B,oBAAC,QAAK,MAAM,YAAY,EAAE,SAAS,aAAa,CAAC,GAAG,OAAO,cAAc,WAAU,8EAChF,yBAAe,YAAY,GAC9B;AAAA,SACF,IAEA,EAAE,mDAAmD,GAEzD;AAAA,OACF;AAAA,IACC,SACC,qBAAC,SAAI,WAAU,uBACb;AAAA,0BAAC,OAAE,WAAU,iCAAiC,YAAE,QAAQ,GAAE;AAAA,MAC1D,oBAAC,OAAE,WAAU,6DAA6D,kBAAO;AAAA,OACnF,IACE;AAAA,KACN;AAEJ;","names":[]}
@@ -20,11 +20,14 @@ var brand_exports = {};
20
20
  __export(brand_exports, {
21
21
  ACTION_FOREGROUNDS: () => ACTION_FOREGROUNDS,
22
22
  ACTION_GRADIENTS: () => ACTION_GRADIENTS,
23
+ ACTION_PAIRS: () => ACTION_PAIRS,
23
24
  BRAND: () => BRAND,
24
25
  BRAND_COLOR: () => BRAND_COLOR,
25
26
  BRAND_GRADIENT: () => BRAND_GRADIENT,
26
27
  TONE_FOREGROUNDS: () => TONE_FOREGROUNDS,
27
- TONE_GRADIENTS: () => TONE_GRADIENTS
28
+ TONE_GRADIENTS: () => TONE_GRADIENTS,
29
+ TONE_PAIRS: () => TONE_PAIRS,
30
+ brandTint: () => brandTint
28
31
  });
29
32
  module.exports = __toCommonJS(brand_exports);
30
33
  const BRAND = {
@@ -68,24 +71,37 @@ const BRAND = {
68
71
  to: "to-brand-navy/10"
69
72
  }
70
73
  };
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")
74
+ const TOKEN = {
75
+ blue: "brand-blue",
76
+ purple: "brand-purple",
77
+ rose: "brand-rose",
78
+ orange: "brand-orange",
79
+ maeve: "brand-maeve",
80
+ navy: "brand-navy",
81
+ red: "destructive"
80
82
  };
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")
83
+ const BRAND_COLOR = Object.fromEntries(
84
+ Object.entries(TOKEN).map(([name, token]) => [name, `hsl(var(--${token}))`])
85
+ );
86
+ const brandTint = (color, alpha) => `hsl(var(--${TOKEN[color]}) / ${alpha})`;
87
+ const ACTION_PAIRS = {
88
+ buy: ["blue", "purple"],
89
+ submit: ["maeve", "purple"],
90
+ offer: ["rose", "orange"],
91
+ remix: ["purple", "rose"],
92
+ license: ["blue", "purple"]
88
93
  };
94
+ const TONE_PAIRS = {
95
+ blue: ["blue", "purple"],
96
+ purple: ["purple", "rose"],
97
+ orange: ["orange", "rose"],
98
+ red: ["red", "rose"],
99
+ rose: ["rose", "orange"]
100
+ };
101
+ const loop = ([a, b]) => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];
102
+ const mapPairs = (pairs, fn) => Object.fromEntries(Object.entries(pairs).map(([key, pair]) => [key, fn(pair)]));
103
+ const ACTION_GRADIENTS = mapPairs(ACTION_PAIRS, loop);
104
+ const TONE_GRADIENTS = mapPairs(TONE_PAIRS, loop);
89
105
  const ACTION_FOREGROUNDS = {
90
106
  buy: BRAND_COLOR.blue,
91
107
  submit: BRAND_COLOR.purple,
@@ -93,13 +109,6 @@ const ACTION_FOREGROUNDS = {
93
109
  remix: BRAND_COLOR.purple,
94
110
  license: BRAND_COLOR.blue
95
111
  };
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
112
  const TONE_FOREGROUNDS = {
104
113
  blue: BRAND_COLOR.blue,
105
114
  purple: BRAND_COLOR.purple,
@@ -112,10 +121,13 @@ const BRAND_GRADIENT = `linear-gradient(115deg, ${[BRAND_COLOR.blue, BRAND_COLOR
112
121
  0 && (module.exports = {
113
122
  ACTION_FOREGROUNDS,
114
123
  ACTION_GRADIENTS,
124
+ ACTION_PAIRS,
115
125
  BRAND,
116
126
  BRAND_COLOR,
117
127
  BRAND_GRADIENT,
118
128
  TONE_FOREGROUNDS,
119
- TONE_GRADIENTS
129
+ TONE_GRADIENTS,
130
+ TONE_PAIRS,
131
+ brandTint
120
132
  });
121
133
  //# 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\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":[]}
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 = {\n blue: \"brand-blue\",\n purple: \"brand-purple\",\n rose: \"brand-rose\",\n orange: \"brand-orange\",\n maeve: \"brand-maeve\",\n navy: \"brand-navy\",\n red: \"destructive\",\n} as const;\n\nexport type BrandColorName = keyof typeof TOKEN;\n\nexport const BRAND_COLOR = Object.fromEntries(\n Object.entries(TOKEN).map(([name, token]) => [name, `hsl(var(--${token}))`]),\n) as { readonly [K in BrandColorName]: string };\n\n/** A brand colour at the given opacity. */\nexport const brandTint = (color: BrandColorName, alpha: number) => `hsl(var(--${TOKEN[color]}) / ${alpha})`;\n\ntype Pair = readonly [BrandColorName, BrandColorName];\n\nexport const ACTION_PAIRS = {\n buy: [\"blue\", \"purple\"],\n submit: [\"maeve\", \"purple\"],\n offer: [\"rose\", \"orange\"],\n remix: [\"purple\", \"rose\"],\n license: [\"blue\", \"purple\"],\n} as const satisfies Record<string, Pair>;\n\nexport const TONE_PAIRS = {\n blue: [\"blue\", \"purple\"],\n purple: [\"purple\", \"rose\"],\n orange: [\"orange\", \"rose\"],\n red: [\"red\", \"rose\"],\n rose: [\"rose\", \"orange\"],\n} as const satisfies Record<string, Pair>;\n\nconst loop = ([a, b]: Pair): [string, string, string] => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];\nconst mapPairs = <K extends string>(pairs: Record<K, Pair>, fn: (pair: Pair) => [string, string, string] | string) =>\n Object.fromEntries(Object.entries<Pair>(pairs).map(([key, pair]) => [key, fn(pair)]));\n\nexport const ACTION_GRADIENTS = mapPairs(ACTION_PAIRS, loop) as Record<keyof typeof ACTION_PAIRS, [string, string, string]>;\nexport const TONE_GRADIENTS = mapPairs(TONE_PAIRS, loop) as Record<keyof typeof TONE_PAIRS, [string, string, string]>;\n\nexport const ACTION_FOREGROUNDS: Record<keyof typeof ACTION_PAIRS, 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_FOREGROUNDS: Record<keyof typeof TONE_PAIRS, 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;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;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK;AACP;AAIO,MAAM,cAAc,OAAO;AAAA,EAChC,OAAO,QAAQ,KAAK,EAAE,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,aAAa,KAAK,IAAI,CAAC;AAC7E;AAGO,MAAM,YAAY,CAAC,OAAuB,UAAkB,aAAa,MAAM,KAAK,CAAC,OAAO,KAAK;AAIjG,MAAM,eAAe;AAAA,EAC1B,KAAK,CAAC,QAAQ,QAAQ;AAAA,EACtB,QAAQ,CAAC,SAAS,QAAQ;AAAA,EAC1B,OAAO,CAAC,QAAQ,QAAQ;AAAA,EACxB,OAAO,CAAC,UAAU,MAAM;AAAA,EACxB,SAAS,CAAC,QAAQ,QAAQ;AAC5B;AAEO,MAAM,aAAa;AAAA,EACxB,MAAM,CAAC,QAAQ,QAAQ;AAAA,EACvB,QAAQ,CAAC,UAAU,MAAM;AAAA,EACzB,QAAQ,CAAC,UAAU,MAAM;AAAA,EACzB,KAAK,CAAC,OAAO,MAAM;AAAA,EACnB,MAAM,CAAC,QAAQ,QAAQ;AACzB;AAEA,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,MAAsC,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,GAAG,YAAY,CAAC,CAAC;AACxG,MAAM,WAAW,CAAmB,OAAwB,OAC1D,OAAO,YAAY,OAAO,QAAc,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC;AAE/E,MAAM,mBAAmB,SAAS,cAAc,IAAI;AACpD,MAAM,iBAAiB,SAAS,YAAY,IAAI;AAEhD,MAAM,qBAAgE;AAAA,EAC3E,KAAK,YAAY;AAAA,EACjB,QAAQ,YAAY;AAAA,EACpB,OAAO,YAAY;AAAA,EACnB,OAAO,YAAY;AAAA,EACnB,SAAS,YAAY;AACvB;AAEO,MAAM,mBAA4D;AAAA,EACvE,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,20 +39,37 @@ 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;
42
+ declare const TOKEN: {
43
+ readonly blue: "brand-blue";
44
+ readonly purple: "brand-purple";
45
+ readonly rose: "brand-rose";
46
+ readonly orange: "brand-orange";
47
+ readonly maeve: "brand-maeve";
48
+ readonly navy: "brand-navy";
49
+ readonly red: "destructive";
50
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>;
51
+ type BrandColorName = keyof typeof TOKEN;
52
+ declare const BRAND_COLOR: { readonly [K in BrandColorName]: string; };
53
+ /** A brand colour at the given opacity. */
54
+ declare const brandTint: (color: BrandColorName, alpha: number) => string;
55
+ declare const ACTION_PAIRS: {
56
+ readonly buy: readonly ["blue", "purple"];
57
+ readonly submit: readonly ["maeve", "purple"];
58
+ readonly offer: readonly ["rose", "orange"];
59
+ readonly remix: readonly ["purple", "rose"];
60
+ readonly license: readonly ["blue", "purple"];
61
+ };
62
+ declare const TONE_PAIRS: {
63
+ readonly blue: readonly ["blue", "purple"];
64
+ readonly purple: readonly ["purple", "rose"];
65
+ readonly orange: readonly ["orange", "rose"];
66
+ readonly red: readonly ["red", "rose"];
67
+ readonly rose: readonly ["rose", "orange"];
68
+ };
69
+ declare const ACTION_GRADIENTS: Record<keyof typeof ACTION_PAIRS, [string, string, string]>;
70
+ declare const TONE_GRADIENTS: Record<keyof typeof TONE_PAIRS, [string, string, string]>;
71
+ declare const ACTION_FOREGROUNDS: Record<keyof typeof ACTION_PAIRS, string>;
72
+ declare const TONE_FOREGROUNDS: Record<keyof typeof TONE_PAIRS, string>;
56
73
  declare const BRAND_GRADIENT: string;
57
74
 
58
- export { ACTION_FOREGROUNDS, ACTION_GRADIENTS, BRAND, BRAND_COLOR, BRAND_GRADIENT, type BrandColorName, TONE_FOREGROUNDS, TONE_GRADIENTS };
75
+ export { ACTION_FOREGROUNDS, ACTION_GRADIENTS, ACTION_PAIRS, BRAND, BRAND_COLOR, BRAND_GRADIENT, type BrandColorName, TONE_FOREGROUNDS, TONE_GRADIENTS, TONE_PAIRS, brandTint };
@@ -39,20 +39,37 @@ 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;
42
+ declare const TOKEN: {
43
+ readonly blue: "brand-blue";
44
+ readonly purple: "brand-purple";
45
+ readonly rose: "brand-rose";
46
+ readonly orange: "brand-orange";
47
+ readonly maeve: "brand-maeve";
48
+ readonly navy: "brand-navy";
49
+ readonly red: "destructive";
50
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>;
51
+ type BrandColorName = keyof typeof TOKEN;
52
+ declare const BRAND_COLOR: { readonly [K in BrandColorName]: string; };
53
+ /** A brand colour at the given opacity. */
54
+ declare const brandTint: (color: BrandColorName, alpha: number) => string;
55
+ declare const ACTION_PAIRS: {
56
+ readonly buy: readonly ["blue", "purple"];
57
+ readonly submit: readonly ["maeve", "purple"];
58
+ readonly offer: readonly ["rose", "orange"];
59
+ readonly remix: readonly ["purple", "rose"];
60
+ readonly license: readonly ["blue", "purple"];
61
+ };
62
+ declare const TONE_PAIRS: {
63
+ readonly blue: readonly ["blue", "purple"];
64
+ readonly purple: readonly ["purple", "rose"];
65
+ readonly orange: readonly ["orange", "rose"];
66
+ readonly red: readonly ["red", "rose"];
67
+ readonly rose: readonly ["rose", "orange"];
68
+ };
69
+ declare const ACTION_GRADIENTS: Record<keyof typeof ACTION_PAIRS, [string, string, string]>;
70
+ declare const TONE_GRADIENTS: Record<keyof typeof TONE_PAIRS, [string, string, string]>;
71
+ declare const ACTION_FOREGROUNDS: Record<keyof typeof ACTION_PAIRS, string>;
72
+ declare const TONE_FOREGROUNDS: Record<keyof typeof TONE_PAIRS, string>;
56
73
  declare const BRAND_GRADIENT: string;
57
74
 
58
- export { ACTION_FOREGROUNDS, ACTION_GRADIENTS, BRAND, BRAND_COLOR, BRAND_GRADIENT, type BrandColorName, TONE_FOREGROUNDS, TONE_GRADIENTS };
75
+ export { ACTION_FOREGROUNDS, ACTION_GRADIENTS, ACTION_PAIRS, BRAND, BRAND_COLOR, BRAND_GRADIENT, type BrandColorName, TONE_FOREGROUNDS, TONE_GRADIENTS, TONE_PAIRS, brandTint };
@@ -39,24 +39,37 @@ 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")
42
+ const TOKEN = {
43
+ blue: "brand-blue",
44
+ purple: "brand-purple",
45
+ rose: "brand-rose",
46
+ orange: "brand-orange",
47
+ maeve: "brand-maeve",
48
+ navy: "brand-navy",
49
+ red: "destructive"
51
50
  };
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")
51
+ const BRAND_COLOR = Object.fromEntries(
52
+ Object.entries(TOKEN).map(([name, token]) => [name, `hsl(var(--${token}))`])
53
+ );
54
+ const brandTint = (color, alpha) => `hsl(var(--${TOKEN[color]}) / ${alpha})`;
55
+ const ACTION_PAIRS = {
56
+ buy: ["blue", "purple"],
57
+ submit: ["maeve", "purple"],
58
+ offer: ["rose", "orange"],
59
+ remix: ["purple", "rose"],
60
+ license: ["blue", "purple"]
59
61
  };
62
+ const TONE_PAIRS = {
63
+ blue: ["blue", "purple"],
64
+ purple: ["purple", "rose"],
65
+ orange: ["orange", "rose"],
66
+ red: ["red", "rose"],
67
+ rose: ["rose", "orange"]
68
+ };
69
+ const loop = ([a, b]) => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];
70
+ const mapPairs = (pairs, fn) => Object.fromEntries(Object.entries(pairs).map(([key, pair]) => [key, fn(pair)]));
71
+ const ACTION_GRADIENTS = mapPairs(ACTION_PAIRS, loop);
72
+ const TONE_GRADIENTS = mapPairs(TONE_PAIRS, loop);
60
73
  const ACTION_FOREGROUNDS = {
61
74
  buy: BRAND_COLOR.blue,
62
75
  submit: BRAND_COLOR.purple,
@@ -64,13 +77,6 @@ const ACTION_FOREGROUNDS = {
64
77
  remix: BRAND_COLOR.purple,
65
78
  license: BRAND_COLOR.blue
66
79
  };
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
80
  const TONE_FOREGROUNDS = {
75
81
  blue: BRAND_COLOR.blue,
76
82
  purple: BRAND_COLOR.purple,
@@ -82,10 +88,13 @@ const BRAND_GRADIENT = `linear-gradient(115deg, ${[BRAND_COLOR.blue, BRAND_COLOR
82
88
  export {
83
89
  ACTION_FOREGROUNDS,
84
90
  ACTION_GRADIENTS,
91
+ ACTION_PAIRS,
85
92
  BRAND,
86
93
  BRAND_COLOR,
87
94
  BRAND_GRADIENT,
88
95
  TONE_FOREGROUNDS,
89
- TONE_GRADIENTS
96
+ TONE_GRADIENTS,
97
+ TONE_PAIRS,
98
+ brandTint
90
99
  };
91
100
  //# 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\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,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":[]}
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 = {\n blue: \"brand-blue\",\n purple: \"brand-purple\",\n rose: \"brand-rose\",\n orange: \"brand-orange\",\n maeve: \"brand-maeve\",\n navy: \"brand-navy\",\n red: \"destructive\",\n} as const;\n\nexport type BrandColorName = keyof typeof TOKEN;\n\nexport const BRAND_COLOR = Object.fromEntries(\n Object.entries(TOKEN).map(([name, token]) => [name, `hsl(var(--${token}))`]),\n) as { readonly [K in BrandColorName]: string };\n\n/** A brand colour at the given opacity. */\nexport const brandTint = (color: BrandColorName, alpha: number) => `hsl(var(--${TOKEN[color]}) / ${alpha})`;\n\ntype Pair = readonly [BrandColorName, BrandColorName];\n\nexport const ACTION_PAIRS = {\n buy: [\"blue\", \"purple\"],\n submit: [\"maeve\", \"purple\"],\n offer: [\"rose\", \"orange\"],\n remix: [\"purple\", \"rose\"],\n license: [\"blue\", \"purple\"],\n} as const satisfies Record<string, Pair>;\n\nexport const TONE_PAIRS = {\n blue: [\"blue\", \"purple\"],\n purple: [\"purple\", \"rose\"],\n orange: [\"orange\", \"rose\"],\n red: [\"red\", \"rose\"],\n rose: [\"rose\", \"orange\"],\n} as const satisfies Record<string, Pair>;\n\nconst loop = ([a, b]: Pair): [string, string, string] => [BRAND_COLOR[a], BRAND_COLOR[b], BRAND_COLOR[a]];\nconst mapPairs = <K extends string>(pairs: Record<K, Pair>, fn: (pair: Pair) => [string, string, string] | string) =>\n Object.fromEntries(Object.entries<Pair>(pairs).map(([key, pair]) => [key, fn(pair)]));\n\nexport const ACTION_GRADIENTS = mapPairs(ACTION_PAIRS, loop) as Record<keyof typeof ACTION_PAIRS, [string, string, string]>;\nexport const TONE_GRADIENTS = mapPairs(TONE_PAIRS, loop) as Record<keyof typeof TONE_PAIRS, [string, string, string]>;\n\nexport const ACTION_FOREGROUNDS: Record<keyof typeof ACTION_PAIRS, 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_FOREGROUNDS: Record<keyof typeof TONE_PAIRS, 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;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK;AACP;AAIO,MAAM,cAAc,OAAO;AAAA,EAChC,OAAO,QAAQ,KAAK,EAAE,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,aAAa,KAAK,IAAI,CAAC;AAC7E;AAGO,MAAM,YAAY,CAAC,OAAuB,UAAkB,aAAa,MAAM,KAAK,CAAC,OAAO,KAAK;AAIjG,MAAM,eAAe;AAAA,EAC1B,KAAK,CAAC,QAAQ,QAAQ;AAAA,EACtB,QAAQ,CAAC,SAAS,QAAQ;AAAA,EAC1B,OAAO,CAAC,QAAQ,QAAQ;AAAA,EACxB,OAAO,CAAC,UAAU,MAAM;AAAA,EACxB,SAAS,CAAC,QAAQ,QAAQ;AAC5B;AAEO,MAAM,aAAa;AAAA,EACxB,MAAM,CAAC,QAAQ,QAAQ;AAAA,EACvB,QAAQ,CAAC,UAAU,MAAM;AAAA,EACzB,QAAQ,CAAC,UAAU,MAAM;AAAA,EACzB,KAAK,CAAC,OAAO,MAAM;AAAA,EACnB,MAAM,CAAC,QAAQ,QAAQ;AACzB;AAEA,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,MAAsC,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,GAAG,YAAY,CAAC,CAAC;AACxG,MAAM,WAAW,CAAmB,OAAwB,OAC1D,OAAO,YAAY,OAAO,QAAc,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC;AAE/E,MAAM,mBAAmB,SAAS,cAAc,IAAI;AACpD,MAAM,iBAAiB,SAAS,YAAY,IAAI;AAEhD,MAAM,qBAAgE;AAAA,EAC3E,KAAK,YAAY;AAAA,EACjB,QAAQ,YAAY;AAAA,EACpB,OAAO,YAAY;AAAA,EACnB,OAAO,YAAY;AAAA,EACnB,SAAS,YAAY;AACvB;AAEO,MAAM,mBAA4D;AAAA,EACvE,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":[]}
@@ -23,16 +23,18 @@ __export(ip_types_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(ip_types_exports);
25
25
  var import_translate = require("../i18n/translate.js");
26
+ var import_brand = require("./brand.js");
27
+ const brand = (color) => ({ colorClass: import_brand.BRAND[color].text, bgClass: import_brand.BRAND[color].bg });
26
28
  const IP_TYPE_DATA = [
27
- { slug: "audio", label: (0, import_translate.msg)("Audio"), apiValue: "Audio", colorClass: "text-violet-400", bgClass: "bg-violet-500/10" },
28
- { slug: "video", label: (0, import_translate.msg)("Video"), apiValue: "Video", colorClass: "text-red-400", bgClass: "bg-red-500/10" },
29
- { slug: "art", label: (0, import_translate.msg)("Art"), apiValue: "Art", colorClass: "text-pink-400", bgClass: "bg-pink-500/10" },
30
- { slug: "photography", label: (0, import_translate.msg)("Photography"), apiValue: "Photography", colorClass: "text-amber-400", bgClass: "bg-amber-500/10" },
31
- { slug: "nft", label: (0, import_translate.msg)("NFT"), apiValue: null, colorClass: "text-blue-400", bgClass: "bg-blue-500/10" },
32
- { slug: "rwa", label: (0, import_translate.msg)("RWA"), apiValue: "RWA", colorClass: "text-lime-400", bgClass: "bg-lime-500/10" },
33
- { slug: "posts", label: (0, import_translate.msg)("Posts"), apiValue: "Posts", colorClass: "text-orange-400", bgClass: "bg-orange-500/10" },
34
- { slug: "publications", label: (0, import_translate.msg)("Publications"), apiValue: "Publications", colorClass: "text-teal-400", bgClass: "bg-teal-500/10" },
35
- { slug: "documents", label: (0, import_translate.msg)("Documents"), apiValue: "Documents", colorClass: "text-slate-400", bgClass: "bg-slate-500/10" }
29
+ { slug: "audio", label: (0, import_translate.msg)("Audio"), apiValue: "Audio", ...brand("purple") },
30
+ { slug: "video", label: (0, import_translate.msg)("Video"), apiValue: "Video", ...brand("rose") },
31
+ { slug: "art", label: (0, import_translate.msg)("Art"), apiValue: "Art", ...brand("maeve") },
32
+ { slug: "photography", label: (0, import_translate.msg)("Photography"), apiValue: "Photography", ...brand("orange") },
33
+ { slug: "nft", label: (0, import_translate.msg)("NFT"), apiValue: null, ...brand("blue") },
34
+ { slug: "rwa", label: (0, import_translate.msg)("RWA"), apiValue: "RWA", ...brand("blue") },
35
+ { slug: "posts", label: (0, import_translate.msg)("Posts"), apiValue: "Posts", ...brand("orange") },
36
+ { slug: "publications", label: (0, import_translate.msg)("Publications"), apiValue: "Publications", ...brand("purple") },
37
+ { slug: "documents", label: (0, import_translate.msg)("Documents"), apiValue: "Documents", colorClass: "text-muted-foreground", bgClass: "bg-muted" }
36
38
  ];
37
39
  const IP_TYPE_DATA_MAP = Object.fromEntries(
38
40
  IP_TYPE_DATA.map((d) => [d.slug, d])
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/data/ip-types.ts"],"sourcesContent":["import { msg } from \"../i18n/translate.js\";\n\nexport interface IpTypeData {\n slug: string;\n label: string;\n\n apiValue: string | null;\n colorClass: string;\n bgClass: string;\n}\n\nexport const IP_TYPE_DATA: IpTypeData[] = [\n { slug: \"audio\", label: msg(\"Audio\"), apiValue: \"Audio\", colorClass: \"text-violet-400\", bgClass: \"bg-violet-500/10\" },\n { slug: \"video\", label: msg(\"Video\"), apiValue: \"Video\", colorClass: \"text-red-400\", bgClass: \"bg-red-500/10\" },\n { slug: \"art\", label: msg(\"Art\"), apiValue: \"Art\", colorClass: \"text-pink-400\", bgClass: \"bg-pink-500/10\" },\n { slug: \"photography\", label: msg(\"Photography\"), apiValue: \"Photography\", colorClass: \"text-amber-400\", bgClass: \"bg-amber-500/10\" },\n { slug: \"nft\", label: msg(\"NFT\"), apiValue: null, colorClass: \"text-blue-400\", bgClass: \"bg-blue-500/10\" },\n { slug: \"rwa\", label: msg(\"RWA\"), apiValue: \"RWA\", colorClass: \"text-lime-400\", bgClass: \"bg-lime-500/10\" },\n { slug: \"posts\", label: msg(\"Posts\"), apiValue: \"Posts\", colorClass: \"text-orange-400\", bgClass: \"bg-orange-500/10\" },\n { slug: \"publications\", label: msg(\"Publications\"), apiValue: \"Publications\", colorClass: \"text-teal-400\", bgClass: \"bg-teal-500/10\" },\n { slug: \"documents\", label: msg(\"Documents\"), apiValue: \"Documents\", colorClass: \"text-slate-400\", bgClass: \"bg-slate-500/10\" },\n];\n\nexport const IP_TYPE_DATA_MAP = Object.fromEntries(\n IP_TYPE_DATA.map((d) => [d.slug, d])\n) as Record<string, IpTypeData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAoB;AAWb,MAAM,eAA6B;AAAA,EACxC,EAAE,MAAM,SAAgB,WAAO,sBAAI,OAAO,GAAU,UAAU,SAAgB,YAAY,mBAAoB,SAAS,mBAAoB;AAAA,EAC3I,EAAE,MAAM,SAAgB,WAAO,sBAAI,OAAO,GAAU,UAAU,SAAgB,YAAY,gBAAoB,SAAS,gBAAoB;AAAA,EAC3I,EAAE,MAAM,OAAgB,WAAO,sBAAI,KAAK,GAAY,UAAU,OAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,eAAgB,WAAO,sBAAI,aAAa,GAAI,UAAU,eAAgB,YAAY,kBAAoB,SAAS,kBAAoB;AAAA,EAC3I,EAAE,MAAM,OAAgB,WAAO,sBAAI,KAAK,GAAY,UAAU,MAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,OAAgB,WAAO,sBAAI,KAAK,GAAY,UAAU,OAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,SAAgB,WAAO,sBAAI,OAAO,GAAU,UAAU,SAAgB,YAAY,mBAAoB,SAAS,mBAAoB;AAAA,EAC3I,EAAE,MAAM,gBAAgB,WAAO,sBAAI,cAAc,GAAG,UAAU,gBAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,aAAgB,WAAO,sBAAI,WAAW,GAAM,UAAU,aAAgB,YAAY,kBAAoB,SAAS,kBAAoB;AAC7I;AAEO,MAAM,mBAAmB,OAAO;AAAA,EACrC,aAAa,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AACrC;","names":[]}
1
+ {"version":3,"sources":["../../src/data/ip-types.ts"],"sourcesContent":["import { msg } from \"../i18n/translate.js\";\nimport { BRAND } from \"./brand.js\";\n\nexport interface IpTypeData {\n slug: string;\n label: string;\n\n apiValue: string | null;\n colorClass: string;\n bgClass: string;\n}\n\nconst brand = (color: keyof typeof BRAND) => ({ colorClass: BRAND[color].text, bgClass: BRAND[color].bg });\n\nexport const IP_TYPE_DATA: IpTypeData[] = [\n { slug: \"audio\", label: msg(\"Audio\"), apiValue: \"Audio\", ...brand(\"purple\") },\n { slug: \"video\", label: msg(\"Video\"), apiValue: \"Video\", ...brand(\"rose\") },\n { slug: \"art\", label: msg(\"Art\"), apiValue: \"Art\", ...brand(\"maeve\") },\n { slug: \"photography\", label: msg(\"Photography\"), apiValue: \"Photography\", ...brand(\"orange\") },\n { slug: \"nft\", label: msg(\"NFT\"), apiValue: null, ...brand(\"blue\") },\n { slug: \"rwa\", label: msg(\"RWA\"), apiValue: \"RWA\", ...brand(\"blue\") },\n { slug: \"posts\", label: msg(\"Posts\"), apiValue: \"Posts\", ...brand(\"orange\") },\n { slug: \"publications\", label: msg(\"Publications\"), apiValue: \"Publications\", ...brand(\"purple\") },\n { slug: \"documents\", label: msg(\"Documents\"), apiValue: \"Documents\", colorClass: \"text-muted-foreground\", bgClass: \"bg-muted\" },\n];\n\nexport const IP_TYPE_DATA_MAP = Object.fromEntries(\n IP_TYPE_DATA.map((d) => [d.slug, d])\n) as Record<string, IpTypeData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAoB;AACpB,mBAAsB;AAWtB,MAAM,QAAQ,CAAC,WAA+B,EAAE,YAAY,mBAAM,KAAK,EAAE,MAAM,SAAS,mBAAM,KAAK,EAAE,GAAG;AAEjG,MAAM,eAA6B;AAAA,EACxC,EAAE,MAAM,SAAgB,WAAO,sBAAI,OAAO,GAAU,UAAU,SAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,SAAgB,WAAO,sBAAI,OAAO,GAAU,UAAU,SAAgB,GAAG,MAAM,MAAM,EAAE;AAAA,EAC/F,EAAE,MAAM,OAAgB,WAAO,sBAAI,KAAK,GAAY,UAAU,OAAgB,GAAG,MAAM,OAAO,EAAE;AAAA,EAChG,EAAE,MAAM,eAAgB,WAAO,sBAAI,aAAa,GAAI,UAAU,eAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,OAAgB,WAAO,sBAAI,KAAK,GAAY,UAAU,MAAgB,GAAG,MAAM,MAAM,EAAE;AAAA,EAC/F,EAAE,MAAM,OAAgB,WAAO,sBAAI,KAAK,GAAY,UAAU,OAAgB,GAAG,MAAM,MAAM,EAAE;AAAA,EAC/F,EAAE,MAAM,SAAgB,WAAO,sBAAI,OAAO,GAAU,UAAU,SAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,gBAAgB,WAAO,sBAAI,cAAc,GAAG,UAAU,gBAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,aAAgB,WAAO,sBAAI,WAAW,GAAM,UAAU,aAAgB,YAAY,yBAAyB,SAAS,WAAW;AACzI;AAEO,MAAM,mBAAmB,OAAO;AAAA,EACrC,aAAa,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AACrC;","names":[]}
@@ -1,14 +1,16 @@
1
1
  import { msg } from "../i18n/translate.js";
2
+ import { BRAND } from "./brand.js";
3
+ const brand = (color) => ({ colorClass: BRAND[color].text, bgClass: BRAND[color].bg });
2
4
  const IP_TYPE_DATA = [
3
- { slug: "audio", label: msg("Audio"), apiValue: "Audio", colorClass: "text-violet-400", bgClass: "bg-violet-500/10" },
4
- { slug: "video", label: msg("Video"), apiValue: "Video", colorClass: "text-red-400", bgClass: "bg-red-500/10" },
5
- { slug: "art", label: msg("Art"), apiValue: "Art", colorClass: "text-pink-400", bgClass: "bg-pink-500/10" },
6
- { slug: "photography", label: msg("Photography"), apiValue: "Photography", colorClass: "text-amber-400", bgClass: "bg-amber-500/10" },
7
- { slug: "nft", label: msg("NFT"), apiValue: null, colorClass: "text-blue-400", bgClass: "bg-blue-500/10" },
8
- { slug: "rwa", label: msg("RWA"), apiValue: "RWA", colorClass: "text-lime-400", bgClass: "bg-lime-500/10" },
9
- { slug: "posts", label: msg("Posts"), apiValue: "Posts", colorClass: "text-orange-400", bgClass: "bg-orange-500/10" },
10
- { slug: "publications", label: msg("Publications"), apiValue: "Publications", colorClass: "text-teal-400", bgClass: "bg-teal-500/10" },
11
- { slug: "documents", label: msg("Documents"), apiValue: "Documents", colorClass: "text-slate-400", bgClass: "bg-slate-500/10" }
5
+ { slug: "audio", label: msg("Audio"), apiValue: "Audio", ...brand("purple") },
6
+ { slug: "video", label: msg("Video"), apiValue: "Video", ...brand("rose") },
7
+ { slug: "art", label: msg("Art"), apiValue: "Art", ...brand("maeve") },
8
+ { slug: "photography", label: msg("Photography"), apiValue: "Photography", ...brand("orange") },
9
+ { slug: "nft", label: msg("NFT"), apiValue: null, ...brand("blue") },
10
+ { slug: "rwa", label: msg("RWA"), apiValue: "RWA", ...brand("blue") },
11
+ { slug: "posts", label: msg("Posts"), apiValue: "Posts", ...brand("orange") },
12
+ { slug: "publications", label: msg("Publications"), apiValue: "Publications", ...brand("purple") },
13
+ { slug: "documents", label: msg("Documents"), apiValue: "Documents", colorClass: "text-muted-foreground", bgClass: "bg-muted" }
12
14
  ];
13
15
  const IP_TYPE_DATA_MAP = Object.fromEntries(
14
16
  IP_TYPE_DATA.map((d) => [d.slug, d])
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/data/ip-types.ts"],"sourcesContent":["import { msg } from \"../i18n/translate.js\";\n\nexport interface IpTypeData {\n slug: string;\n label: string;\n\n apiValue: string | null;\n colorClass: string;\n bgClass: string;\n}\n\nexport const IP_TYPE_DATA: IpTypeData[] = [\n { slug: \"audio\", label: msg(\"Audio\"), apiValue: \"Audio\", colorClass: \"text-violet-400\", bgClass: \"bg-violet-500/10\" },\n { slug: \"video\", label: msg(\"Video\"), apiValue: \"Video\", colorClass: \"text-red-400\", bgClass: \"bg-red-500/10\" },\n { slug: \"art\", label: msg(\"Art\"), apiValue: \"Art\", colorClass: \"text-pink-400\", bgClass: \"bg-pink-500/10\" },\n { slug: \"photography\", label: msg(\"Photography\"), apiValue: \"Photography\", colorClass: \"text-amber-400\", bgClass: \"bg-amber-500/10\" },\n { slug: \"nft\", label: msg(\"NFT\"), apiValue: null, colorClass: \"text-blue-400\", bgClass: \"bg-blue-500/10\" },\n { slug: \"rwa\", label: msg(\"RWA\"), apiValue: \"RWA\", colorClass: \"text-lime-400\", bgClass: \"bg-lime-500/10\" },\n { slug: \"posts\", label: msg(\"Posts\"), apiValue: \"Posts\", colorClass: \"text-orange-400\", bgClass: \"bg-orange-500/10\" },\n { slug: \"publications\", label: msg(\"Publications\"), apiValue: \"Publications\", colorClass: \"text-teal-400\", bgClass: \"bg-teal-500/10\" },\n { slug: \"documents\", label: msg(\"Documents\"), apiValue: \"Documents\", colorClass: \"text-slate-400\", bgClass: \"bg-slate-500/10\" },\n];\n\nexport const IP_TYPE_DATA_MAP = Object.fromEntries(\n IP_TYPE_DATA.map((d) => [d.slug, d])\n) as Record<string, IpTypeData>;\n"],"mappings":"AAAA,SAAS,WAAW;AAWb,MAAM,eAA6B;AAAA,EACxC,EAAE,MAAM,SAAgB,OAAO,IAAI,OAAO,GAAU,UAAU,SAAgB,YAAY,mBAAoB,SAAS,mBAAoB;AAAA,EAC3I,EAAE,MAAM,SAAgB,OAAO,IAAI,OAAO,GAAU,UAAU,SAAgB,YAAY,gBAAoB,SAAS,gBAAoB;AAAA,EAC3I,EAAE,MAAM,OAAgB,OAAO,IAAI,KAAK,GAAY,UAAU,OAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,eAAgB,OAAO,IAAI,aAAa,GAAI,UAAU,eAAgB,YAAY,kBAAoB,SAAS,kBAAoB;AAAA,EAC3I,EAAE,MAAM,OAAgB,OAAO,IAAI,KAAK,GAAY,UAAU,MAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,OAAgB,OAAO,IAAI,KAAK,GAAY,UAAU,OAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,SAAgB,OAAO,IAAI,OAAO,GAAU,UAAU,SAAgB,YAAY,mBAAoB,SAAS,mBAAoB;AAAA,EAC3I,EAAE,MAAM,gBAAgB,OAAO,IAAI,cAAc,GAAG,UAAU,gBAAgB,YAAY,iBAAoB,SAAS,iBAAoB;AAAA,EAC3I,EAAE,MAAM,aAAgB,OAAO,IAAI,WAAW,GAAM,UAAU,aAAgB,YAAY,kBAAoB,SAAS,kBAAoB;AAC7I;AAEO,MAAM,mBAAmB,OAAO;AAAA,EACrC,aAAa,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AACrC;","names":[]}
1
+ {"version":3,"sources":["../../src/data/ip-types.ts"],"sourcesContent":["import { msg } from \"../i18n/translate.js\";\nimport { BRAND } from \"./brand.js\";\n\nexport interface IpTypeData {\n slug: string;\n label: string;\n\n apiValue: string | null;\n colorClass: string;\n bgClass: string;\n}\n\nconst brand = (color: keyof typeof BRAND) => ({ colorClass: BRAND[color].text, bgClass: BRAND[color].bg });\n\nexport const IP_TYPE_DATA: IpTypeData[] = [\n { slug: \"audio\", label: msg(\"Audio\"), apiValue: \"Audio\", ...brand(\"purple\") },\n { slug: \"video\", label: msg(\"Video\"), apiValue: \"Video\", ...brand(\"rose\") },\n { slug: \"art\", label: msg(\"Art\"), apiValue: \"Art\", ...brand(\"maeve\") },\n { slug: \"photography\", label: msg(\"Photography\"), apiValue: \"Photography\", ...brand(\"orange\") },\n { slug: \"nft\", label: msg(\"NFT\"), apiValue: null, ...brand(\"blue\") },\n { slug: \"rwa\", label: msg(\"RWA\"), apiValue: \"RWA\", ...brand(\"blue\") },\n { slug: \"posts\", label: msg(\"Posts\"), apiValue: \"Posts\", ...brand(\"orange\") },\n { slug: \"publications\", label: msg(\"Publications\"), apiValue: \"Publications\", ...brand(\"purple\") },\n { slug: \"documents\", label: msg(\"Documents\"), apiValue: \"Documents\", colorClass: \"text-muted-foreground\", bgClass: \"bg-muted\" },\n];\n\nexport const IP_TYPE_DATA_MAP = Object.fromEntries(\n IP_TYPE_DATA.map((d) => [d.slug, d])\n) as Record<string, IpTypeData>;\n"],"mappings":"AAAA,SAAS,WAAW;AACpB,SAAS,aAAa;AAWtB,MAAM,QAAQ,CAAC,WAA+B,EAAE,YAAY,MAAM,KAAK,EAAE,MAAM,SAAS,MAAM,KAAK,EAAE,GAAG;AAEjG,MAAM,eAA6B;AAAA,EACxC,EAAE,MAAM,SAAgB,OAAO,IAAI,OAAO,GAAU,UAAU,SAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,SAAgB,OAAO,IAAI,OAAO,GAAU,UAAU,SAAgB,GAAG,MAAM,MAAM,EAAE;AAAA,EAC/F,EAAE,MAAM,OAAgB,OAAO,IAAI,KAAK,GAAY,UAAU,OAAgB,GAAG,MAAM,OAAO,EAAE;AAAA,EAChG,EAAE,MAAM,eAAgB,OAAO,IAAI,aAAa,GAAI,UAAU,eAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,OAAgB,OAAO,IAAI,KAAK,GAAY,UAAU,MAAgB,GAAG,MAAM,MAAM,EAAE;AAAA,EAC/F,EAAE,MAAM,OAAgB,OAAO,IAAI,KAAK,GAAY,UAAU,OAAgB,GAAG,MAAM,MAAM,EAAE;AAAA,EAC/F,EAAE,MAAM,SAAgB,OAAO,IAAI,OAAO,GAAU,UAAU,SAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,gBAAgB,OAAO,IAAI,cAAc,GAAG,UAAU,gBAAgB,GAAG,MAAM,QAAQ,EAAE;AAAA,EACjG,EAAE,MAAM,aAAgB,OAAO,IAAI,WAAW,GAAM,UAAU,aAAgB,YAAY,yBAAyB,SAAS,WAAW;AACzI;AAEO,MAAM,mBAAmB,OAAO;AAAA,EACrC,aAAa,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AACrC;","names":[]}
package/dist/index.cjs CHANGED
@@ -306,11 +306,14 @@ __export(index_exports, {
306
306
  OrderFields: () => import_order_fields.OrderFields,
307
307
  OrderSortControl: () => import_order_sort_control.OrderSortControl,
308
308
  OrderSummaryHero: () => import_marketplace_dialog_primitives.OrderSummaryHero,
309
+ PANEL_INSET: () => import_panel.PANEL_INSET,
309
310
  PINATA_PUBLIC_GATEWAY: () => import_ipfs.DEFAULT_GATEWAY,
310
311
  PORTFOLIO_TABS: () => import_portfolio_shell.PORTFOLIO_TABS,
311
312
  PageBackdrop: () => import_media_header.PageBackdrop,
312
313
  PageContainer: () => import_page_container.PageContainer,
314
+ Panel: () => import_panel.Panel,
313
315
  ParentAttributionBanner: () => import_parent_attribution_banner.ParentAttributionBanner,
316
+ Pill: () => import_panel.Pill,
314
317
  PopBurnButton: () => import_pop_burn_button.PopBurnButton,
315
318
  PopClaimButton: () => import_pop_claim_button.PopClaimButton,
316
319
  PopCreate: () => import_pop_create.PopCreate,
@@ -489,6 +492,7 @@ __export(index_exports, {
489
492
  orderCoins: () => import_coin_order.orderCoins,
490
493
  orderFormSchema: () => import_order_form.orderFormSchema,
491
494
  orderUsd: () => import_order_usd.orderUsd,
495
+ panelBackground: () => import_panel.panelBackground,
492
496
  parsePriceDisplay: () => import_format.parsePriceDisplay,
493
497
  passkeyUnsupportedReason: () => import_wallet_failure.passkeyUnsupportedReason,
494
498
  pinAssetMetadata: () => import_ipfs_upload.pinAssetMetadata,
@@ -850,6 +854,7 @@ var import_badge_unlocked = require("./components/rewards/badge-unlocked.js");
850
854
  var import_journey_path = require("./components/rewards/journey-path.js");
851
855
  var import_skeleton = require("./components/skeleton.js");
852
856
  var import_badge = require("./components/badge.js");
857
+ var import_panel = require("./components/panel.js");
853
858
  var import_label = require("./components/label.js");
854
859
  var import_input = require("./components/input.js");
855
860
  var import_switch = require("./components/switch.js");
@@ -1208,11 +1213,14 @@ var import_asset_accents = require("./utils/asset-accents.js");
1208
1213
  OrderFields,
1209
1214
  OrderSortControl,
1210
1215
  OrderSummaryHero,
1216
+ PANEL_INSET,
1211
1217
  PINATA_PUBLIC_GATEWAY,
1212
1218
  PORTFOLIO_TABS,
1213
1219
  PageBackdrop,
1214
1220
  PageContainer,
1221
+ Panel,
1215
1222
  ParentAttributionBanner,
1223
+ Pill,
1216
1224
  PopBurnButton,
1217
1225
  PopClaimButton,
1218
1226
  PopCreate,
@@ -1391,6 +1399,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1391
1399
  orderCoins,
1392
1400
  orderFormSchema,
1393
1401
  orderUsd,
1402
+ panelBackground,
1394
1403
  parsePriceDisplay,
1395
1404
  passkeyUnsupportedReason,
1396
1405
  pinAssetMetadata,