@medialane/ui 0.374.2 → 0.376.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/action-button.cjs +6 -6
- package/dist/components/action-button.cjs.map +1 -1
- package/dist/components/action-button.d.cts +6 -4
- package/dist/components/action-button.d.ts +6 -4
- package/dist/components/action-button.js +7 -7
- package/dist/components/action-button.js.map +1 -1
- package/dist/components/archived-asset-notice.cjs +2 -1
- package/dist/components/archived-asset-notice.cjs.map +1 -1
- package/dist/components/archived-asset-notice.js +2 -1
- package/dist/components/archived-asset-notice.js.map +1 -1
- package/dist/components/asset-access-cards.cjs +2 -1
- package/dist/components/asset-access-cards.cjs.map +1 -1
- package/dist/components/asset-access-cards.js +2 -1
- package/dist/components/asset-access-cards.js.map +1 -1
- package/dist/components/asset-collection-bar.cjs +3 -2
- package/dist/components/asset-collection-bar.cjs.map +1 -1
- package/dist/components/asset-collection-bar.js +3 -2
- package/dist/components/asset-collection-bar.js.map +1 -1
- package/dist/components/asset-license-summary.cjs +4 -10
- package/dist/components/asset-license-summary.cjs.map +1 -1
- package/dist/components/asset-license-summary.js +4 -10
- package/dist/components/asset-license-summary.js.map +1 -1
- package/dist/components/asset-marketplace-panel.cjs +6 -16
- package/dist/components/asset-marketplace-panel.cjs.map +1 -1
- package/dist/components/asset-marketplace-panel.js +6 -16
- package/dist/components/asset-marketplace-panel.js.map +1 -1
- package/dist/components/asset-markets-tab.cjs +6 -23
- package/dist/components/asset-markets-tab.cjs.map +1 -1
- package/dist/components/asset-markets-tab.js +6 -23
- package/dist/components/asset-markets-tab.js.map +1 -1
- package/dist/components/asset-overview-content.cjs +27 -36
- package/dist/components/asset-overview-content.cjs.map +1 -1
- package/dist/components/asset-overview-content.js +27 -36
- package/dist/components/asset-overview-content.js.map +1 -1
- package/dist/components/asset-owners-panel.cjs +2 -1
- package/dist/components/asset-owners-panel.cjs.map +1 -1
- package/dist/components/asset-owners-panel.js +2 -1
- package/dist/components/asset-owners-panel.js.map +1 -1
- package/dist/components/asset-provenance-tab.cjs +15 -12
- package/dist/components/asset-provenance-tab.cjs.map +1 -1
- package/dist/components/asset-provenance-tab.js +15 -12
- package/dist/components/asset-provenance-tab.js.map +1 -1
- package/dist/components/asset-publication.cjs +2 -1
- package/dist/components/asset-publication.cjs.map +1 -1
- package/dist/components/asset-publication.js +2 -1
- package/dist/components/asset-publication.js.map +1 -1
- package/dist/components/asset-type-panels.cjs +4 -5
- package/dist/components/asset-type-panels.cjs.map +1 -1
- package/dist/components/asset-type-panels.js +4 -5
- package/dist/components/asset-type-panels.js.map +1 -1
- package/dist/components/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/hidden-content-banner.cjs +4 -3
- package/dist/components/hidden-content-banner.cjs.map +1 -1
- package/dist/components/hidden-content-banner.js +4 -3
- package/dist/components/hidden-content-banner.js.map +1 -1
- package/dist/components/ip-type-display.cjs +5 -2
- package/dist/components/ip-type-display.cjs.map +1 -1
- package/dist/components/ip-type-display.js +5 -2
- package/dist/components/ip-type-display.js.map +1 -1
- package/dist/components/launchpad/edition-mint-schema.d.cts +4 -4
- package/dist/components/launchpad/edition-mint-schema.d.ts +4 -4
- package/dist/components/panel.cjs +81 -0
- package/dist/components/panel.cjs.map +1 -0
- package/dist/components/panel.d.cts +22 -0
- package/dist/components/panel.d.ts +22 -0
- package/dist/components/panel.js +44 -0
- package/dist/components/panel.js.map +1 -0
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/soulbound-card.cjs +2 -1
- package/dist/components/soulbound-card.cjs.map +1 -1
- package/dist/components/soulbound-card.js +2 -1
- package/dist/components/soulbound-card.js.map +1 -1
- package/dist/data/brand.cjs +37 -25
- package/dist/data/brand.cjs.map +1 -1
- package/dist/data/brand.d.cts +31 -14
- package/dist/data/brand.d.ts +31 -14
- package/dist/data/brand.js +33 -24
- package/dist/data/brand.js.map +1 -1
- package/dist/data/ip-types.cjs +11 -9
- package/dist/data/ip-types.cjs.map +1 -1
- package/dist/data/ip-types.js +11 -9
- package/dist/data/ip-types.js.map +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
- package/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
|
|
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":[]}
|
package/dist/data/brand.cjs
CHANGED
|
@@ -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
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
package/dist/data/brand.cjs.map
CHANGED
|
@@ -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
|
|
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":[]}
|
package/dist/data/brand.d.cts
CHANGED
|
@@ -39,20 +39,37 @@ declare const BRAND: {
|
|
|
39
39
|
readonly to: "to-brand-navy/10";
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
declare const
|
|
43
|
-
readonly blue:
|
|
44
|
-
readonly purple:
|
|
45
|
-
readonly rose:
|
|
46
|
-
readonly orange:
|
|
47
|
-
readonly maeve:
|
|
48
|
-
readonly navy:
|
|
49
|
-
readonly red:
|
|
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
|
|
52
|
-
declare const
|
|
53
|
-
|
|
54
|
-
declare const
|
|
55
|
-
declare const
|
|
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 };
|
package/dist/data/brand.d.ts
CHANGED
|
@@ -39,20 +39,37 @@ declare const BRAND: {
|
|
|
39
39
|
readonly to: "to-brand-navy/10";
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
declare const
|
|
43
|
-
readonly blue:
|
|
44
|
-
readonly purple:
|
|
45
|
-
readonly rose:
|
|
46
|
-
readonly orange:
|
|
47
|
-
readonly maeve:
|
|
48
|
-
readonly navy:
|
|
49
|
-
readonly red:
|
|
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
|
|
52
|
-
declare const
|
|
53
|
-
|
|
54
|
-
declare const
|
|
55
|
-
declare const
|
|
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 };
|
package/dist/data/brand.js
CHANGED
|
@@ -39,24 +39,37 @@ const BRAND = {
|
|
|
39
39
|
to: "to-brand-navy/10"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
package/dist/data/brand.js.map
CHANGED
|
@@ -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
|
|
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":[]}
|
package/dist/data/ip-types.cjs
CHANGED
|
@@ -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",
|
|
28
|
-
{ slug: "video", label: (0, import_translate.msg)("Video"), apiValue: "Video",
|
|
29
|
-
{ slug: "art", label: (0, import_translate.msg)("Art"), apiValue: "Art",
|
|
30
|
-
{ slug: "photography", label: (0, import_translate.msg)("Photography"), apiValue: "Photography",
|
|
31
|
-
{ slug: "nft", label: (0, import_translate.msg)("NFT"), apiValue: null,
|
|
32
|
-
{ slug: "rwa", label: (0, import_translate.msg)("RWA"), apiValue: "RWA",
|
|
33
|
-
{ slug: "posts", label: (0, import_translate.msg)("Posts"), apiValue: "Posts",
|
|
34
|
-
{ slug: "publications", label: (0, import_translate.msg)("Publications"), apiValue: "Publications",
|
|
35
|
-
{ slug: "documents", label: (0, import_translate.msg)("Documents"), apiValue: "Documents", colorClass: "text-
|
|
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\",
|
|
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":[]}
|
package/dist/data/ip-types.js
CHANGED
|
@@ -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",
|
|
4
|
-
{ slug: "video", label: msg("Video"), apiValue: "Video",
|
|
5
|
-
{ slug: "art", label: msg("Art"), apiValue: "Art",
|
|
6
|
-
{ slug: "photography", label: msg("Photography"), apiValue: "Photography",
|
|
7
|
-
{ slug: "nft", label: msg("NFT"), apiValue: null,
|
|
8
|
-
{ slug: "rwa", label: msg("RWA"), apiValue: "RWA",
|
|
9
|
-
{ slug: "posts", label: msg("Posts"), apiValue: "Posts",
|
|
10
|
-
{ slug: "publications", label: msg("Publications"), apiValue: "Publications",
|
|
11
|
-
{ slug: "documents", label: msg("Documents"), apiValue: "Documents", colorClass: "text-
|
|
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\",
|
|
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,
|