beeple-toolkit 1.0.40 → 1.0.41

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.
@@ -10482,17 +10482,29 @@ const Ac = { class: "toolkit-datepicker__calendar-section" }, Nc = {
10482
10482
  isShadow: { type: Boolean, default: !1 }
10483
10483
  },
10484
10484
  setup(e) {
10485
- const t = e, n = p(() => [
10486
- `toolkit-status-dot--${t.color}`,
10487
- `toolkit-status-dot--${t.variant}`,
10488
- `toolkit-status-dot--${t.size}`,
10489
- { "toolkit-status-dot--shadow": t.isShadow }
10490
- ]);
10491
- return (a, o) => (l(), m("div", {
10492
- class: Z(["toolkit-status-dot", n.value])
10485
+ const t = [
10486
+ "success",
10487
+ "warning",
10488
+ "danger",
10489
+ "primary"
10490
+ ], n = e, a = p(() => t.includes(n.color)), o = p(() => [
10491
+ a.value ? `toolkit-status-dot--${n.color}` : null,
10492
+ `toolkit-status-dot--${n.variant}`,
10493
+ `toolkit-status-dot--${n.size}`,
10494
+ { "toolkit-status-dot--shadow": n.isShadow }
10495
+ ]), i = p(() => {
10496
+ if (a.value) return;
10497
+ const r = n.color;
10498
+ return n.isShadow ? { backgroundColor: r, boxShadow: `0 0 5px 0 ${r}` } : { backgroundColor: r };
10499
+ });
10500
+ return (r, s) => (l(), m("div", {
10501
+ class: Z(["toolkit-status-dot", o.value])
10493
10502
  }, [
10494
10503
  e.variant === "label-left" && e.label ? (l(), m("span", Rh, H(e.label), 1)) : _("", !0),
10495
- o[0] || (o[0] = $("span", { class: "toolkit-status-dot__dot" }, null, -1)),
10504
+ $("span", {
10505
+ class: "toolkit-status-dot__dot",
10506
+ style: ie(i.value)
10507
+ }, null, 4),
10496
10508
  e.variant === "label-right" && e.label ? (l(), m("span", Yh, H(e.label), 1)) : _("", !0)
10497
10509
  ], 2));
10498
10510
  }
@@ -11512,6 +11524,7 @@ const df = ["id", "aria-labelledby"], cf = ["id"], mf = { class: "toolkit-team-c
11512
11524
  teamSummary: {},
11513
11525
  users: {},
11514
11526
  showUsers: { type: Boolean },
11527
+ showUserColor: { type: Boolean },
11515
11528
  moreLabel: {},
11516
11529
  minNeeded: {},
11517
11530
  maxNeeded: {},
@@ -11645,13 +11658,12 @@ const df = ["id", "aria-labelledby"], cf = ["id"], mf = { class: "toolkit-team-c
11645
11658
  color: "#424F5D",
11646
11659
  class: "toolkit-team-card__user-more"
11647
11660
  }),
11648
- S.statusColor || S.statusLabel ? (l(), F(Ta, {
11661
+ e.showUserColor !== !1 && S.color ? (l(), F(Ta, {
11649
11662
  key: 2,
11650
- color: S.statusColor ?? "success",
11651
- label: S.statusLabel,
11663
+ color: S.color,
11652
11664
  variant: "dot-only",
11653
11665
  size: "small"
11654
- }, null, 8, ["color", "label"])) : _("", !0)
11666
+ }, null, 8, ["color"])) : _("", !0)
11655
11667
  ], 40, Rf))), 128))
11656
11668
  ])) : _("", !0),
11657
11669
  !y.value && e.showUsers !== !1 && e.users && e.users.length ? (l(), m("div", Yf)) : _("", !0),
@@ -12071,6 +12083,7 @@ const df = ["id", "aria-labelledby"], cf = ["id"], mf = { class: "toolkit-team-c
12071
12083
  teamSummary: {},
12072
12084
  users: {},
12073
12085
  showUsers: { type: Boolean, default: !0 },
12086
+ showUserColor: { type: Boolean, default: !0 },
12074
12087
  selected: { type: Boolean, default: !1 },
12075
12088
  moreLabel: {},
12076
12089
  minNeeded: {},
@@ -12101,6 +12114,7 @@ const df = ["id", "aria-labelledby"], cf = ["id"], mf = { class: "toolkit-team-c
12101
12114
  "team-summary": e.teamSummary,
12102
12115
  users: e.users,
12103
12116
  "show-users": e.showUsers,
12117
+ "show-user-color": e.showUserColor,
12104
12118
  "more-label": e.moreLabel,
12105
12119
  "min-needed": e.minNeeded,
12106
12120
  "max-needed": e.maxNeeded,
@@ -12120,7 +12134,7 @@ const df = ["id", "aria-labelledby"], cf = ["id"], mf = { class: "toolkit-team-c
12120
12134
  ]),
12121
12135
  key: "0"
12122
12136
  } : void 0
12123
- ]), 1032, ["team-summary", "users", "show-users", "more-label", "min-needed", "max-needed", "saving", "saving-shift-time", "rights", "translations", "is-menu-open"])
12137
+ ]), 1032, ["team-summary", "users", "show-users", "show-user-color", "more-label", "min-needed", "max-needed", "saving", "saving-shift-time", "rights", "translations", "is-menu-open"])
12124
12138
  ], 2));
12125
12139
  }
12126
12140
  });