wafields 0.41.0 → 0.42.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.
@@ -38896,22 +38896,28 @@ function Mk({ onChange: e, pickedType: t, disabled: n = !1, className: r = "" })
38896
38896
  }
38897
38897
  //#endregion
38898
38898
  //#region src/main/profile/leaderboard/LeaderboardTypeTag.tsx
38899
- function Nk({ leaderboardType: e, label: t }) {
38899
+ function Nk({ leaderboardType: e, label: t, isHighlighted: n, onClick: r, className: i }) {
38900
38900
  return /* @__PURE__ */ x(GD, {
38901
38901
  label: t,
38902
38902
  color: e,
38903
- isHighlighted: !0
38903
+ isHighlighted: n,
38904
+ onClick: r,
38905
+ className: i
38904
38906
  });
38905
38907
  }
38906
38908
  //#endregion
38907
38909
  //#region src/main/profile/leaderboard/LeaderboardTypeTags.tsx
38908
- function Pk({ items: e, className: t = "" }) {
38909
- return /* @__PURE__ */ x(to, {
38910
- className: Pt("flex-wrap", t),
38911
- children: e.map(({ leaderboardType: e, label: t }) => /* @__PURE__ */ x(Nk, {
38910
+ function Pk({ className: e = "", tagClassName: t = "", leaderboardMetas: n, pickedLeaderboardType: r, setPickedLeaderboardType: i }) {
38911
+ return /* @__PURE__ */ x(Ka, {
38912
+ className: Pt("flex flex-row flex-wrap gap-1", e),
38913
+ items: n,
38914
+ itemRenderer: ({ leaderboardType: e, label: n }) => /* @__PURE__ */ x(Nk, {
38915
+ label: n,
38912
38916
  leaderboardType: e,
38913
- label: t
38914
- }, e))
38917
+ isHighlighted: r === e,
38918
+ onClick: () => i(e),
38919
+ className: t
38920
+ }, e)
38915
38921
  });
38916
38922
  }
38917
38923
  //#endregion
@@ -38945,22 +38951,28 @@ function Lk({ options: e, onChange: t, pickedType: n, disabled: r = !1, classNam
38945
38951
  }
38946
38952
  //#endregion
38947
38953
  //#region src/main/profile/game/GameTypeTag.tsx
38948
- function Rk({ gameType: e, label: t }) {
38954
+ function Rk({ gameType: e, label: t, isHighlighted: n, onClick: r, className: i }) {
38949
38955
  return /* @__PURE__ */ x(GD, {
38950
38956
  label: t,
38951
38957
  color: e,
38952
- isHighlighted: !0
38958
+ isHighlighted: n,
38959
+ onClick: r,
38960
+ className: i
38953
38961
  });
38954
38962
  }
38955
38963
  //#endregion
38956
38964
  //#region src/main/profile/game/GameTypeTags.tsx
38957
- function zk({ items: e, className: t = "" }) {
38958
- return /* @__PURE__ */ x(to, {
38959
- className: Pt("flex-wrap", t),
38960
- children: e.map(({ gameType: e, label: t }) => /* @__PURE__ */ x(Rk, {
38965
+ function zk({ className: e = "", tagClassName: t = "", gameMetas: n, pickedGameType: r, setPickedGameType: i }) {
38966
+ return /* @__PURE__ */ x(Ka, {
38967
+ className: Pt("flex flex-row flex-wrap gap-1", e),
38968
+ items: n,
38969
+ itemRenderer: ({ gameType: e, label: n }) => /* @__PURE__ */ x(Rk, {
38970
+ label: n,
38961
38971
  gameType: e,
38962
- label: t
38963
- }, e))
38972
+ isHighlighted: r === e,
38973
+ onClick: () => i(e),
38974
+ className: t
38975
+ }, e)
38964
38976
  });
38965
38977
  }
38966
38978
  //#endregion
@@ -39057,22 +39069,28 @@ function Gk({ options: e, pickedType: t, onChange: n, disabled: r = !1, classNam
39057
39069
  }
39058
39070
  //#endregion
39059
39071
  //#region src/main/profile/market/MarketTypeTag.tsx
39060
- function Kk({ marketType: e, label: t }) {
39072
+ function Kk({ marketType: e, label: t, isHighlighted: n, onClick: r, className: i }) {
39061
39073
  return /* @__PURE__ */ x(GD, {
39062
39074
  label: t,
39063
39075
  color: e,
39064
- isHighlighted: !0
39076
+ isHighlighted: n,
39077
+ onClick: r,
39078
+ className: i
39065
39079
  });
39066
39080
  }
39067
39081
  //#endregion
39068
39082
  //#region src/main/profile/market/MarketTypeTags.tsx
39069
- function qk({ items: e, className: t = "" }) {
39070
- return /* @__PURE__ */ x(to, {
39071
- className: Pt("flex-wrap", t),
39072
- children: e.map(({ marketType: e, label: t }) => /* @__PURE__ */ x(Kk, {
39083
+ function qk({ className: e = "", tagClassName: t = "", marketMetas: n, pickedMarketType: r, setPickedMarketType: i }) {
39084
+ return /* @__PURE__ */ x(Ka, {
39085
+ className: Pt("flex flex-row flex-wrap gap-1", e),
39086
+ items: n,
39087
+ itemRenderer: ({ marketType: e, label: n }) => /* @__PURE__ */ x(Kk, {
39088
+ label: n,
39073
39089
  marketType: e,
39074
- label: t
39075
- }, e))
39090
+ isHighlighted: r === e,
39091
+ onClick: () => i(e),
39092
+ className: t
39093
+ }, e)
39076
39094
  });
39077
39095
  }
39078
39096
  //#endregion
@@ -48203,22 +48221,28 @@ function tP({ options: e, pickedType: t, onChange: n, disabled: r = !1, classNam
48203
48221
  }
48204
48222
  //#endregion
48205
48223
  //#region src/main/collection/CollectionTypeTag.tsx
48206
- function nP({ collectionType: e, label: t }) {
48224
+ function nP({ collectionType: e, label: t, isHighlighted: n, onClick: r, className: i }) {
48207
48225
  return /* @__PURE__ */ x(GD, {
48208
48226
  label: t,
48209
48227
  color: e,
48210
- isHighlighted: !0
48228
+ isHighlighted: n,
48229
+ onClick: r,
48230
+ className: i
48211
48231
  });
48212
48232
  }
48213
48233
  //#endregion
48214
48234
  //#region src/main/collection/CollectionTypeTags.tsx
48215
- function rP({ items: e, className: t = "" }) {
48216
- return /* @__PURE__ */ x(to, {
48217
- className: Pt("flex-wrap", t),
48218
- children: e.map(({ collectionType: e, label: t }) => /* @__PURE__ */ x(nP, {
48235
+ function rP({ className: e = "", tagClassName: t = "", collectionMetas: n, pickedCollectionType: r, setPickedCollectionType: i }) {
48236
+ return /* @__PURE__ */ x(Ka, {
48237
+ className: Pt("flex flex-row flex-wrap gap-1", e),
48238
+ items: n,
48239
+ itemRenderer: ({ collectionType: e, label: n }) => /* @__PURE__ */ x(nP, {
48240
+ label: n,
48219
48241
  collectionType: e,
48220
- label: t
48221
- }, e))
48242
+ isHighlighted: r === e,
48243
+ onClick: () => i(e),
48244
+ className: t
48245
+ }, e)
48222
48246
  });
48223
48247
  }
48224
48248
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wafields",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "main": "dist/wafields.cjs.js",
5
5
  "module": "dist/wafields.es.js",
6
6
  "types": "dist/index.d.ts",