next-ui-lib 0.1.32 → 0.1.34
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/leaderboard/leaderboard.d.ts +2 -1
- package/dist/components/leaderboard/leaderboard.d.ts.map +1 -1
- package/dist/components/leaderboard/leaderboard.stories.d.ts +1 -1
- package/dist/ui.cjs.js +2 -2
- package/dist/ui.es.js +14 -12
- package/dist/ui.umd.js +2 -2
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -5904,7 +5904,7 @@ const Cn = ({
|
|
|
5904
5904
|
className: `
|
|
5905
5905
|
w-full max-w-full sm:max-w-md md:max-w-lg lg:max-w-xl
|
|
5906
5906
|
border-2 border-b-4 border-gray-200 border-opacity-80
|
|
5907
|
-
px-4 sm:px-6 py-4 sm:py-6 rounded-xl
|
|
5907
|
+
px-4 sm:px-6 py-4 sm:py-6 rounded-xl
|
|
5908
5908
|
flex flex-col relative
|
|
5909
5909
|
${s}
|
|
5910
5910
|
`,
|
|
@@ -6141,7 +6141,8 @@ const Cn = ({
|
|
|
6141
6141
|
profiles: e,
|
|
6142
6142
|
loading: i = !1,
|
|
6143
6143
|
buttonColor: n = "lightBlue",
|
|
6144
|
-
buttonLabel: a = "more"
|
|
6144
|
+
buttonLabel: a = "more",
|
|
6145
|
+
customClass: s = ""
|
|
6145
6146
|
}) => /* @__PURE__ */ w(
|
|
6146
6147
|
Cn,
|
|
6147
6148
|
{
|
|
@@ -6150,7 +6151,8 @@ const Cn = ({
|
|
|
6150
6151
|
buttonColor: n,
|
|
6151
6152
|
buttonLabel: a,
|
|
6152
6153
|
buttonSize: "small",
|
|
6153
|
-
|
|
6154
|
+
customClass: s,
|
|
6155
|
+
children: /* @__PURE__ */ w("section", { className: "flex flex-col space-y-2", children: i ? [...Array(10)].map((f, o) => /* @__PURE__ */ P(
|
|
6154
6156
|
"article",
|
|
6155
6157
|
{
|
|
6156
6158
|
className: "flex w-full rounded-md h-1/3 space-x-2 animate-pulse",
|
|
@@ -6162,29 +6164,29 @@ const Cn = ({
|
|
|
6162
6164
|
] })
|
|
6163
6165
|
]
|
|
6164
6166
|
},
|
|
6165
|
-
|
|
6166
|
-
)) : e.map((
|
|
6167
|
+
o
|
|
6168
|
+
)) : e.map((f, o) => /* @__PURE__ */ P(
|
|
6167
6169
|
"article",
|
|
6168
6170
|
{
|
|
6169
|
-
className: `flex items-center py-1 rounded-lg cursor-pointer ${
|
|
6171
|
+
className: `flex items-center py-1 rounded-lg cursor-pointer ${f.selected ? "border-2 border-[#ffd700] bg-[#ffecb3] hover:border-[#FFC200] hover:bg-[#FFE08A]" : "hover:bg-gray-100 hover:cursor-pointer"}`,
|
|
6170
6172
|
children: [
|
|
6171
|
-
/* @__PURE__ */ w("p", { className: "text-lg font-bold text-sec w-4", children:
|
|
6173
|
+
/* @__PURE__ */ w("p", { className: "text-lg font-bold text-sec w-4", children: o + 1 }),
|
|
6172
6174
|
/* @__PURE__ */ w("div", { className: "ml-2 w-10 h-10 bg-gray-300 rounded-full overflow-hidden", children: /* @__PURE__ */ w(
|
|
6173
6175
|
"img",
|
|
6174
6176
|
{
|
|
6175
|
-
src:
|
|
6176
|
-
alt: `${
|
|
6177
|
+
src: f.avatarUrl,
|
|
6178
|
+
alt: `${f.username} avatar`,
|
|
6177
6179
|
className: "inline select-none pointer-events-none object-cover"
|
|
6178
6180
|
}
|
|
6179
6181
|
) }),
|
|
6180
|
-
/* @__PURE__ */ w("p", { className: "ml-2 flex-grow text-lg font-gabaritoMedium text-sec", children:
|
|
6182
|
+
/* @__PURE__ */ w("p", { className: "ml-2 flex-grow text-lg font-gabaritoMedium text-sec", children: f.username }),
|
|
6181
6183
|
/* @__PURE__ */ P("p", { className: "text-sm font-regular text-sec", children: [
|
|
6182
|
-
|
|
6184
|
+
f.xp,
|
|
6183
6185
|
" XP"
|
|
6184
6186
|
] })
|
|
6185
6187
|
]
|
|
6186
6188
|
},
|
|
6187
|
-
|
|
6189
|
+
o
|
|
6188
6190
|
)) })
|
|
6189
6191
|
}
|
|
6190
6192
|
);
|