amelia-booking-ui 0.0.539 → 0.0.540

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.
@@ -41968,10 +41968,12 @@ const HEe = Pfe(N2, "$message"), REe = { class: "am-tooltip" }, yo = /* @__PURE_
41968
41968
  fullWidth: { type: Boolean, default: !1 },
41969
41969
  showIcon: { type: Boolean, default: !0 },
41970
41970
  action: { type: Function, default: void 0 },
41971
- actionText: { default: void 0 }
41971
+ actionText: { default: void 0 },
41972
+ iconName: { default: void 0 },
41973
+ iconType: { default: "line" }
41972
41974
  },
41973
41975
  setup(t) {
41974
- const e = Wt(), n = t, r = () => n.type === "success" ? "check-circle" : n.type === "warning" ? "warning" : n.type === "error" ? "close-circle" : "info", l = () => n.type === "success" ? "var(--map-status-success-symbol-1)" : n.type === "warning" ? "var(--map-status-warning-symbol-1)" : n.type === "error" ? "var(--map-status-error-symbol-1)" : n.type === "neutral" ? "var(--map-accent-sky-blue-symbol-1)" : "var(--map-base-danube-symbol-2)", o = () => n.type === "neutral" ? "secondary" : n.type === "success" ? "success" : n.type === "warning" ? "warning" : n.type === "error" ? "danger" : "primary";
41976
+ const e = Wt(), n = t, r = () => n.iconName ? n.iconName : n.type === "success" ? "check-circle" : n.type === "warning" ? "warning" : n.type === "error" ? "close-circle" : "info", l = () => n.type === "success" ? "var(--map-status-success-symbol-1)" : n.type === "warning" ? "var(--map-status-warning-symbol-1)" : n.type === "error" ? "var(--map-status-error-symbol-1)" : n.type === "neutral" ? "var(--map-accent-sky-blue-symbol-1)" : "var(--map-base-danube-symbol-2)", o = () => n.type === "neutral" ? "secondary" : n.type === "success" ? "success" : n.type === "warning" ? "warning" : n.type === "error" ? "danger" : "primary";
41975
41977
  return (a, s) => {
41976
41978
  const i = At, u = yo, d = Vt;
41977
41979
  return h(), g("div", {
@@ -41983,9 +41985,10 @@ const HEe = Pfe(N2, "$message"), REe = { class: "am-tooltip" }, yo = /* @__PURE_
41983
41985
  H(i, {
41984
41986
  name: r(),
41985
41987
  color: l(),
41988
+ type: n.iconType,
41986
41989
  size: "xxl",
41987
41990
  "outer-size": "18px"
41988
- }, null, 8, ["name", "color"])
41991
+ }, null, 8, ["name", "color", "type"])
41989
41992
  ])) : q("", !0),
41990
41993
  c("div", qEe, he(n.title), 1)
41991
41994
  ])) : q("", !0),
@@ -42572,14 +42575,13 @@ const Hc = "am-theme-dark", MAe = () => {
42572
42575
  return "level-2-foreground";
42573
42576
  let e = null;
42574
42577
  if (t.value && typeof t.value == "object" && "$el" in t.value) {
42575
- const r = t.value.$el;
42576
- if (r && r.nodeType === globalThis.Node.TEXT_NODE) {
42577
- const l = r, o = l.previousElementSibling, a = l.nextElementSibling, s = l.parentElement;
42578
- e = o || a || s;
42579
- } else r instanceof globalThis.Element && (e = r);
42578
+ const n = t.value.$el;
42579
+ if (n && n.nodeType === globalThis.Node.TEXT_NODE) {
42580
+ const r = n, l = r.previousElementSibling, o = r.nextElementSibling, a = r.parentElement;
42581
+ e = l || o || a;
42582
+ } else n instanceof globalThis.Element && (e = n);
42580
42583
  } else t.value instanceof globalThis.Element, e = t.value;
42581
- const n = _Ae(e);
42582
- return console.log("background", n), n;
42584
+ return _Ae(e);
42583
42585
  })), jYe = /* @__PURE__ */ ee({
42584
42586
  __name: "AmCascader",
42585
42587
  props: {
@@ -7,6 +7,8 @@ interface Props {
7
7
  showIcon?: boolean;
8
8
  action?: () => void;
9
9
  actionText?: string;
10
+ iconName?: string;
11
+ iconType?: 'fill' | 'line' | 'outline';
10
12
  }
11
13
  declare function __VLS_template(): {
12
14
  attrs: Partial<{}>;
@@ -24,6 +26,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
24
26
  showIcon: boolean;
25
27
  action: () => void;
26
28
  actionText: string;
29
+ iconName: string;
30
+ iconType: "fill" | "line" | "outline";
27
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
28
32
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
33
  export default _default;
@@ -20,10 +20,10 @@ declare function __VLS_template(): {
20
20
  };
21
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
22
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
23
+ iconType: "fill" | "line" | "outline";
23
24
  size: "l" | "m" | "d" | "s" | "xs";
24
25
  maxWidth: string;
25
26
  iconCategory: IconCategory;
26
- iconType: "fill" | "line" | "outline";
27
27
  isEditable: boolean;
28
28
  showLabel: boolean;
29
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amelia-booking-ui",
3
- "version": "0.0.539",
3
+ "version": "0.0.540",
4
4
  "description": "A Vue 3 component library for Amelia Booking Plugin.",
5
5
  "type": "module",
6
6
  "repository": {