@medialane/ui 0.100.0 → 0.100.3
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/coin-launch-preview.cjs +1 -1
- package/dist/components/coin-launch-preview.cjs.map +1 -1
- package/dist/components/coin-launch-preview.js +1 -1
- package/dist/components/coin-launch-preview.js.map +1 -1
- package/dist/components/launchpad-services.cjs +4 -4
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.js +4 -4
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/components/launchpad-strip.cjs +4 -4
- package/dist/components/launchpad-strip.cjs.map +1 -1
- package/dist/components/launchpad-strip.js +4 -4
- package/dist/components/launchpad-strip.js.map +1 -1
- package/dist/components/rewards/badge-catalog.cjs +49 -0
- package/dist/components/rewards/badge-catalog.cjs.map +1 -0
- package/dist/components/rewards/badge-catalog.d.cts +22 -0
- package/dist/components/rewards/badge-catalog.d.ts +22 -0
- package/dist/components/rewards/badge-catalog.js +25 -0
- package/dist/components/rewards/badge-catalog.js.map +1 -0
- package/dist/components/rewards/leaderboard-table.cjs +11 -11
- package/dist/components/rewards/leaderboard-table.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-table.d.cts +3 -1
- package/dist/components/rewards/leaderboard-table.d.ts +3 -1
- package/dist/components/rewards/leaderboard-table.js +11 -11
- package/dist/components/rewards/leaderboard-table.js.map +1 -1
- package/dist/components/rewards/level-badge.cjs +7 -16
- package/dist/components/rewards/level-badge.cjs.map +1 -1
- package/dist/components/rewards/level-badge.d.cts +10 -4
- package/dist/components/rewards/level-badge.d.ts +10 -4
- package/dist/components/rewards/level-badge.js +8 -17
- package/dist/components/rewards/level-badge.js.map +1 -1
- package/dist/components/rewards/level-journey-list.cjs +52 -0
- package/dist/components/rewards/level-journey-list.cjs.map +1 -0
- package/dist/components/rewards/level-journey-list.d.cts +22 -0
- package/dist/components/rewards/level-journey-list.d.ts +22 -0
- package/dist/components/rewards/level-journey-list.js +28 -0
- package/dist/components/rewards/level-journey-list.js.map +1 -0
- package/dist/components/token-glyph.cjs.map +1 -1
- package/dist/components/token-glyph.d.cts +1 -1
- package/dist/components/token-glyph.d.ts +1 -1
- package/dist/components/token-glyph.js.map +1 -1
- package/dist/data/brand.cjs +4 -4
- package/dist/data/brand.cjs.map +1 -1
- package/dist/data/brand.d.cts +4 -4
- package/dist/data/brand.d.ts +4 -4
- package/dist/data/brand.js +4 -4
- package/dist/data/brand.js.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/preset/tailwind.cjs +1 -1
- package/dist/preset/tailwind.cjs.map +1 -1
- package/dist/preset/tailwind.js +1 -1
- package/dist/preset/tailwind.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/rewards/level-ladder.cjs +0 -54
- package/dist/components/rewards/level-ladder.cjs.map +0 -1
- package/dist/components/rewards/level-ladder.d.cts +0 -17
- package/dist/components/rewards/level-ladder.d.ts +0 -17
- package/dist/components/rewards/level-ladder.js +0 -30
- package/dist/components/rewards/level-ladder.js.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var level_ladder_exports = {};
|
|
20
|
-
__export(level_ladder_exports, {
|
|
21
|
-
LevelLadder: () => LevelLadder
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(level_ladder_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_cn = require("../../utils/cn.js");
|
|
26
|
-
function LevelLadder({ levels, currentLevel, className }) {
|
|
27
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("flex gap-2 overflow-x-auto pb-2", className), children: levels.map((l) => {
|
|
28
|
-
const state = l.level < currentLevel ? "done" : l.level === currentLevel ? "current" : "future";
|
|
29
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
title: `${l.xpRequired.toLocaleString()} XP`,
|
|
33
|
-
className: (0, import_cn.cn)(
|
|
34
|
-
"flex shrink-0 select-none flex-col items-center gap-0.5 rounded-lg border px-2.5 py-1.5",
|
|
35
|
-
state === "future" && "opacity-45"
|
|
36
|
-
),
|
|
37
|
-
style: {
|
|
38
|
-
borderColor: state === "current" ? l.badgeColor : `${l.badgeColor}40`,
|
|
39
|
-
backgroundColor: state === "current" ? `${l.badgeColor}22` : `${l.badgeColor}0d`
|
|
40
|
-
},
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-2xs font-black tabular-nums", style: { color: l.badgeColor }, children: l.level }),
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "whitespace-nowrap text-2xs font-semibold", style: { color: l.badgeColor }, children: l.name })
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
l.level
|
|
47
|
-
);
|
|
48
|
-
}) });
|
|
49
|
-
}
|
|
50
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
-
0 && (module.exports = {
|
|
52
|
-
LevelLadder
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=level-ladder.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/rewards/level-ladder.tsx"],"sourcesContent":["import { cn } from \"../../utils/cn.js\";\n\nexport interface LevelLadderProps {\n levels: { level: number; name: string; xpRequired: number; badgeColor: string }[];\n currentLevel: number;\n className?: string;\n}\n\n/** The full level arc as a horizontally scrollable chip rail; the current\n * level is highlighted, passed levels render solid, future ones muted. */\nexport function LevelLadder({ levels, currentLevel, className }: LevelLadderProps) {\n return (\n <div className={cn(\"flex gap-2 overflow-x-auto pb-2\", className)}>\n {levels.map((l) => {\n const state = l.level < currentLevel ? \"done\" : l.level === currentLevel ? \"current\" : \"future\";\n return (\n <div\n key={l.level}\n title={`${l.xpRequired.toLocaleString()} XP`}\n className={cn(\n \"flex shrink-0 select-none flex-col items-center gap-0.5 rounded-lg border px-2.5 py-1.5\",\n state === \"future\" && \"opacity-45\"\n )}\n style={{\n borderColor: state === \"current\" ? l.badgeColor : `${l.badgeColor}40`,\n backgroundColor: state === \"current\" ? `${l.badgeColor}22` : `${l.badgeColor}0d`,\n }}\n >\n <span className=\"text-2xs font-black tabular-nums\" style={{ color: l.badgeColor }}>\n {l.level}\n </span>\n <span className=\"whitespace-nowrap text-2xs font-semibold\" style={{ color: l.badgeColor }}>\n {l.name}\n </span>\n </div>\n );\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBU;AAhBV,gBAAmB;AAUZ,SAAS,YAAY,EAAE,QAAQ,cAAc,UAAU,GAAqB;AACjF,SACE,4CAAC,SAAI,eAAW,cAAG,mCAAmC,SAAS,GAC5D,iBAAO,IAAI,CAAC,MAAM;AACjB,UAAM,QAAQ,EAAE,QAAQ,eAAe,SAAS,EAAE,UAAU,eAAe,YAAY;AACvF,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,OAAO,GAAG,EAAE,WAAW,eAAe,CAAC;AAAA,QACvC,eAAW;AAAA,UACT;AAAA,UACA,UAAU,YAAY;AAAA,QACxB;AAAA,QACA,OAAO;AAAA,UACL,aAAa,UAAU,YAAY,EAAE,aAAa,GAAG,EAAE,UAAU;AAAA,UACjE,iBAAiB,UAAU,YAAY,GAAG,EAAE,UAAU,OAAO,GAAG,EAAE,UAAU;AAAA,QAC9E;AAAA,QAEA;AAAA,sDAAC,UAAK,WAAU,oCAAmC,OAAO,EAAE,OAAO,EAAE,WAAW,GAC7E,YAAE,OACL;AAAA,UACA,4CAAC,UAAK,WAAU,4CAA2C,OAAO,EAAE,OAAO,EAAE,WAAW,GACrF,YAAE,MACL;AAAA;AAAA;AAAA,MAhBK,EAAE;AAAA,IAiBT;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface LevelLadderProps {
|
|
4
|
-
levels: {
|
|
5
|
-
level: number;
|
|
6
|
-
name: string;
|
|
7
|
-
xpRequired: number;
|
|
8
|
-
badgeColor: string;
|
|
9
|
-
}[];
|
|
10
|
-
currentLevel: number;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/** The full level arc as a horizontally scrollable chip rail; the current
|
|
14
|
-
* level is highlighted, passed levels render solid, future ones muted. */
|
|
15
|
-
declare function LevelLadder({ levels, currentLevel, className }: LevelLadderProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { LevelLadder, type LevelLadderProps };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface LevelLadderProps {
|
|
4
|
-
levels: {
|
|
5
|
-
level: number;
|
|
6
|
-
name: string;
|
|
7
|
-
xpRequired: number;
|
|
8
|
-
badgeColor: string;
|
|
9
|
-
}[];
|
|
10
|
-
currentLevel: number;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/** The full level arc as a horizontally scrollable chip rail; the current
|
|
14
|
-
* level is highlighted, passed levels render solid, future ones muted. */
|
|
15
|
-
declare function LevelLadder({ levels, currentLevel, className }: LevelLadderProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { LevelLadder, type LevelLadderProps };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../utils/cn.js";
|
|
3
|
-
function LevelLadder({ levels, currentLevel, className }) {
|
|
4
|
-
return /* @__PURE__ */ jsx("div", { className: cn("flex gap-2 overflow-x-auto pb-2", className), children: levels.map((l) => {
|
|
5
|
-
const state = l.level < currentLevel ? "done" : l.level === currentLevel ? "current" : "future";
|
|
6
|
-
return /* @__PURE__ */ jsxs(
|
|
7
|
-
"div",
|
|
8
|
-
{
|
|
9
|
-
title: `${l.xpRequired.toLocaleString()} XP`,
|
|
10
|
-
className: cn(
|
|
11
|
-
"flex shrink-0 select-none flex-col items-center gap-0.5 rounded-lg border px-2.5 py-1.5",
|
|
12
|
-
state === "future" && "opacity-45"
|
|
13
|
-
),
|
|
14
|
-
style: {
|
|
15
|
-
borderColor: state === "current" ? l.badgeColor : `${l.badgeColor}40`,
|
|
16
|
-
backgroundColor: state === "current" ? `${l.badgeColor}22` : `${l.badgeColor}0d`
|
|
17
|
-
},
|
|
18
|
-
children: [
|
|
19
|
-
/* @__PURE__ */ jsx("span", { className: "text-2xs font-black tabular-nums", style: { color: l.badgeColor }, children: l.level }),
|
|
20
|
-
/* @__PURE__ */ jsx("span", { className: "whitespace-nowrap text-2xs font-semibold", style: { color: l.badgeColor }, children: l.name })
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
l.level
|
|
24
|
-
);
|
|
25
|
-
}) });
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
LevelLadder
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=level-ladder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/rewards/level-ladder.tsx"],"sourcesContent":["import { cn } from \"../../utils/cn.js\";\n\nexport interface LevelLadderProps {\n levels: { level: number; name: string; xpRequired: number; badgeColor: string }[];\n currentLevel: number;\n className?: string;\n}\n\n/** The full level arc as a horizontally scrollable chip rail; the current\n * level is highlighted, passed levels render solid, future ones muted. */\nexport function LevelLadder({ levels, currentLevel, className }: LevelLadderProps) {\n return (\n <div className={cn(\"flex gap-2 overflow-x-auto pb-2\", className)}>\n {levels.map((l) => {\n const state = l.level < currentLevel ? \"done\" : l.level === currentLevel ? \"current\" : \"future\";\n return (\n <div\n key={l.level}\n title={`${l.xpRequired.toLocaleString()} XP`}\n className={cn(\n \"flex shrink-0 select-none flex-col items-center gap-0.5 rounded-lg border px-2.5 py-1.5\",\n state === \"future\" && \"opacity-45\"\n )}\n style={{\n borderColor: state === \"current\" ? l.badgeColor : `${l.badgeColor}40`,\n backgroundColor: state === \"current\" ? `${l.badgeColor}22` : `${l.badgeColor}0d`,\n }}\n >\n <span className=\"text-2xs font-black tabular-nums\" style={{ color: l.badgeColor }}>\n {l.level}\n </span>\n <span className=\"whitespace-nowrap text-2xs font-semibold\" style={{ color: l.badgeColor }}>\n {l.name}\n </span>\n </div>\n );\n })}\n </div>\n );\n}\n"],"mappings":"AAgBU,SAYE,KAZF;AAhBV,SAAS,UAAU;AAUZ,SAAS,YAAY,EAAE,QAAQ,cAAc,UAAU,GAAqB;AACjF,SACE,oBAAC,SAAI,WAAW,GAAG,mCAAmC,SAAS,GAC5D,iBAAO,IAAI,CAAC,MAAM;AACjB,UAAM,QAAQ,EAAE,QAAQ,eAAe,SAAS,EAAE,UAAU,eAAe,YAAY;AACvF,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,OAAO,GAAG,EAAE,WAAW,eAAe,CAAC;AAAA,QACvC,WAAW;AAAA,UACT;AAAA,UACA,UAAU,YAAY;AAAA,QACxB;AAAA,QACA,OAAO;AAAA,UACL,aAAa,UAAU,YAAY,EAAE,aAAa,GAAG,EAAE,UAAU;AAAA,UACjE,iBAAiB,UAAU,YAAY,GAAG,EAAE,UAAU,OAAO,GAAG,EAAE,UAAU;AAAA,QAC9E;AAAA,QAEA;AAAA,8BAAC,UAAK,WAAU,oCAAmC,OAAO,EAAE,OAAO,EAAE,WAAW,GAC7E,YAAE,OACL;AAAA,UACA,oBAAC,UAAK,WAAU,4CAA2C,OAAO,EAAE,OAAO,EAAE,WAAW,GACrF,YAAE,MACL;AAAA;AAAA;AAAA,MAhBK,EAAE;AAAA,IAiBT;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":[]}
|