@candy.thieves/ui-kit-lumos 0.0.38 → 0.0.40

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/index.js CHANGED
@@ -3274,13 +3274,17 @@ var Kr = {
3274
3274
  }));
3275
3275
  qr.displayName = "Logo";
3276
3276
  var j = {
3277
- root: "_root_1d45z_55",
3278
- error: "_error_1d45z_66",
3279
- success: "_success_1d45z_71",
3280
- warning: "_warning_1d45z_76",
3281
- content: "_content_1d45z_82",
3282
- title: "_title_1d45z_89",
3283
- closeBtn: "_closeBtn_1d45z_93"
3277
+ root: "_root_1qg9j_55",
3278
+ error: "_error_1qg9j_66",
3279
+ success: "_success_1qg9j_71",
3280
+ warning: "_warning_1qg9j_76",
3281
+ content: "_content_1qg9j_82",
3282
+ title: "_title_1qg9j_90",
3283
+ body: "_body_1qg9j_91",
3284
+ errorField: "_errorField_1qg9j_92",
3285
+ errorMessage: "_errorMessage_1qg9j_93",
3286
+ errorList: "_errorList_1qg9j_99",
3287
+ closeBtn: "_closeBtn_1qg9j_103"
3284
3288
  }, Jr = ({ className: e, onClose: t, title: n, children: r, errors: i, variant: a = "success", ...o }) => {
3285
3289
  let s = Array.isArray(i) && i.length > 0, c = typeof r == "string" && r.trim().length > 0;
3286
3290
  return !n && !c && !s ? null : /* @__PURE__ */ u("div", {
@@ -3296,6 +3300,7 @@ var j = {
3296
3300
  children: n
3297
3301
  }),
3298
3302
  c && /* @__PURE__ */ l(V, {
3303
+ className: j.body,
3299
3304
  variant: "subtitle1",
3300
3305
  children: r
3301
3306
  }),
@@ -3309,7 +3314,10 @@ var j = {
3309
3314
  children: [e.field, ":"]
3310
3315
  }),
3311
3316
  " ",
3312
- /* @__PURE__ */ l("span", { children: e.message })
3317
+ /* @__PURE__ */ l("span", {
3318
+ className: j.errorMessage,
3319
+ children: e.message
3320
+ })
3313
3321
  ]
3314
3322
  }) }, `${e.field}-${t}`))
3315
3323
  })
@@ -4264,19 +4272,22 @@ var Ci = { iconButton: "_iconButton_iqf7o_55" }, wi = ({ ...e }) => {
4264
4272
  });
4265
4273
  });
4266
4274
  Ti.displayName = "RadioGroup";
4267
- var Ei = { button: "_button_1sk9f_1" }, Di = ({ text: e, maxLength: t, expandLabel: n = "Show more", collapseLabel: r = "Hide", className: i }) => {
4268
- let [a, o] = s(!1);
4275
+ var Ei = { button: "_button_1sk9f_1" }, Di = ({ text: e, maxLength: t, expandLabel: n = "Show more", collapseLabel: r = "Hide", className: i, onExpandedChange: a }) => {
4276
+ let [o, c] = s(!1);
4269
4277
  return e.length > t ? /* @__PURE__ */ u(V, {
4270
4278
  className: i,
4271
4279
  variant: "body1",
4272
4280
  children: [
4273
- a ? e : ee(e, t),
4281
+ o ? e : ee(e, t),
4274
4282
  " ",
4275
4283
  /* @__PURE__ */ l(N, {
4276
4284
  as: "a",
4277
4285
  className: d("typography-link", Ei.button),
4278
- onClick: () => o((e) => !e),
4279
- children: a ? r : n
4286
+ onClick: () => {
4287
+ let e = !o;
4288
+ c(e), a?.(e);
4289
+ },
4290
+ children: o ? r : n
4280
4291
  })
4281
4292
  ]
4282
4293
  }) : /* @__PURE__ */ l(V, {
@@ -4434,25 +4445,25 @@ var Ei = { button: "_button_1sk9f_1" }, Di = ({ text: e, maxLength: t, expandLab
4434
4445
  activeItem: "_activeItem_watj5_118",
4435
4446
  disabled: "_disabled_watj5_131",
4436
4447
  line: "_line_watj5_137"
4437
- }, Pi = ({ items: e, activeId: t, onValueChange: n, onLogout: r, logOutIcon: i }) => /* @__PURE__ */ u("nav", {
4448
+ }, Pi = ({ items: e, userId: t, activeId: n, onValueChange: r, onLogout: i, logOutIcon: a, linkTag: o = "a" }) => /* @__PURE__ */ u("nav", {
4438
4449
  className: X.navBar,
4439
4450
  children: [
4440
4451
  /* @__PURE__ */ l("ul", { children: e.map((e) => {
4441
- let r = t === e.id, i = !!e.disabled, { handleClick: a, resolvedHref: o } = hi(e.href, () => n?.(e.id));
4452
+ let i = n === e.id, a = !!e.disabled, { handleClick: s, resolvedHref: c } = hi(typeof e.href == "function" ? t ? e.href(t) : void 0 : e.href, () => r?.(e.id));
4442
4453
  return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ u(N, {
4443
- as: "a",
4444
- href: i ? void 0 : o,
4445
- className: d(X.navItem, r && X.activeItem, i && X.disabled),
4454
+ as: o,
4455
+ href: a ? void 0 : c,
4456
+ className: d(X.navItem, i && X.activeItem, a && X.disabled),
4446
4457
  onClick: (e) => {
4447
- if (i) {
4458
+ if (a) {
4448
4459
  e.preventDefault();
4449
4460
  return;
4450
4461
  }
4451
- a(e);
4462
+ s(e);
4452
4463
  },
4453
- tabIndex: i ? oe.DISABLED : oe.ENABLED,
4454
- "aria-disabled": i,
4455
- children: [r && e.activeIcon ? e.activeIcon : e.icon, /* @__PURE__ */ l(V, {
4464
+ tabIndex: a ? oe.DISABLED : oe.ENABLED,
4465
+ "aria-disabled": a,
4466
+ children: [i && e.activeIcon ? e.activeIcon : e.icon, /* @__PURE__ */ l(V, {
4456
4467
  variant: "body2",
4457
4468
  children: e.label
4458
4469
  })]
@@ -4461,8 +4472,8 @@ var Ei = { button: "_button_1sk9f_1" }, Di = ({ text: e, maxLength: t, expandLab
4461
4472
  /* @__PURE__ */ u(N, {
4462
4473
  type: "button",
4463
4474
  className: X.logOutBtn,
4464
- onClick: r,
4465
- children: [i, /* @__PURE__ */ l(V, {
4475
+ onClick: i,
4476
+ children: [a, /* @__PURE__ */ l(V, {
4466
4477
  variant: "body2",
4467
4478
  children: "Log Out"
4468
4479
  })]