@citizenplane/pimp 16.0.2 → 16.0.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/pimp.es.js CHANGED
@@ -18540,33 +18540,37 @@ const Gr = /* @__PURE__ */ I(qg, [["render", hC]]), fC = { class: "cpAccordion"
18540
18540
  },
18541
18541
  emits: ["onClose", "primaryActionClick", "secondaryActionClick"],
18542
18542
  setup(t, { emit: e }) {
18543
- const n = t, o = e, i = St(), r = {
18544
- neutral: {
18545
- icon: "dashed-circle",
18546
- primaryActionAppearance: "secondary",
18547
- secondaryActionAppearance: "tertiary"
18548
- },
18549
- accent: {
18550
- icon: "info",
18551
- primaryActionAppearance: "primary",
18552
- secondaryActionAppearance: "secondary"
18553
- },
18554
- success: {
18555
- icon: "check",
18556
- primaryActionAppearance: "primary",
18557
- secondaryActionAppearance: "secondary"
18558
- },
18559
- warning: {
18560
- icon: "alert-triangle",
18561
- primaryActionAppearance: "primary",
18562
- secondaryActionAppearance: "secondary"
18563
- },
18564
- error: {
18565
- icon: "x-octagon",
18566
- primaryActionAppearance: "primary",
18543
+ const n = t, o = e, i = St(), r = b(() => {
18544
+ const $ = {
18545
+ primaryActionAppearance: a.value ? "primary" : "secondary",
18567
18546
  secondaryActionAppearance: "secondary"
18568
- }
18569
- }, s = b(() => n.icon ? n.icon : r[n.color].icon), a = b(() => n.type === "expanded"), l = b(() => !!n.title || !!i.title), d = b(() => a.value && (!!n.content || !!i.default)), u = b(() => c.value || p.value), c = b(() => !!n.primaryActionLabel || !!i["primary-action"]), p = b(() => !!n.secondaryActionLabel || !!i["secondary-action"]), f = b(() => r[n.color].primaryActionAppearance), m = b(() => r[n.color].secondaryActionAppearance), g = b(() => a.value ? "sm" : "xs"), C = b(() => [
18547
+ };
18548
+ return {
18549
+ neutral: {
18550
+ icon: "dashed-circle",
18551
+ primaryActionAppearance: a.value ? "secondary" : "tertiary",
18552
+ secondaryActionAppearance: "tertiary"
18553
+ },
18554
+ accent: {
18555
+ ...$,
18556
+ icon: "info"
18557
+ },
18558
+ success: {
18559
+ ...$,
18560
+ icon: "check"
18561
+ },
18562
+ warning: {
18563
+ ...$,
18564
+ icon: "alert-triangle"
18565
+ },
18566
+ error: {
18567
+ ...$,
18568
+ icon: "x-octagon"
18569
+ }
18570
+ };
18571
+ }), s = b(() => n.icon ? n.icon : r.value[n.color].icon), a = b(() => n.type === "expanded"), l = b(() => !!n.title || !!i.title), d = b(() => a.value && (!!n.content || !!i.default)), u = b(() => c.value || p.value), c = b(() => !!n.primaryActionLabel || !!i["primary-action"]), p = b(
18572
+ () => a.value && (!!n.secondaryActionLabel || !!i["secondary-action"])
18573
+ ), f = b(() => r.value[n.color].primaryActionAppearance), m = b(() => r.value[n.color].secondaryActionAppearance), g = b(() => a.value ? "sm" : "xs"), C = b(() => [
18570
18574
  `cpAlert--is${Ae(n.type)}`,
18571
18575
  `cpAlert--is${Ae(n.color)}`
18572
18576
  ]);