@kumori/aurora-wui-components 0.0.273-dev4131.34 → 0.0.273-dev4131.36

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.
@@ -5,7 +5,7 @@ export interface QuickAction {
5
5
  extraContent?: string;
6
6
  hoverEffect?: boolean;
7
7
  visible: boolean;
8
- onClick: () => void;
8
+ onClick?: () => void;
9
9
  }
10
10
  /**
11
11
  * Trigger + flyout panel. Drops below the trigger, offset by the trigger's own
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-quick-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/axebow-header/parts/axebow-quick-actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,+BAA+B,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;GAKG;AACH,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAaX;IAE0B,KAAK,SAAM;IACZ,OAAO,EAAE,WAAW,EAAE,CAAM;IAE9C,OAAO,CAAC,IAAI,CAAS;IAE9B,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;IAKf,MAAM;CAyEP"}
1
+ {"version":3,"file":"axebow-quick-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/axebow-header/parts/axebow-quick-actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,+BAA+B,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAaX;IAE0B,KAAK,SAAM;IACZ,OAAO,EAAE,WAAW,EAAE,CAAM;IAE9C,OAAO,CAAC,IAAI,CAAS;IAE9B,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;IAQf,MAAM;CAyEP"}
package/dist/index.js CHANGED
@@ -1173,7 +1173,7 @@ var AxebowQuickActionCard = class AxebowQuickActionCard extends LitElement {
1173
1173
  render() {
1174
1174
  return html`
1175
1175
  <div
1176
- class="flex flex-col items-center justify-center gap-1 w-42 min-h-19 px-4 py-0.5 rounded bg-white ${this.hoverEffect ? "hover:bg-(--axebow-base) cursor-pointer transition-colors duration-150" : ""}"
1176
+ class="flex flex-col items-center justify-center gap-1 w-42 min-h-19 px-4 py-0.5 rounded bg-white ${this.hoverEffect ? "hover:bg-(--axebow-base) cursor-pointer transition-colors duration-150" : "cursor-default"}"
1177
1177
  @click=${this._onClick}
1178
1178
  >
1179
1179
  <axebow-icon iconName=${this.icon} iconColor="var(--axebow-primary)" size="xl"></axebow-icon>
@@ -1232,6 +1232,7 @@ var AxebowQuickActions = class AxebowQuickActions extends LitElement {
1232
1232
  this.open = !this.open;
1233
1233
  }
1234
1234
  _select(action) {
1235
+ if (!action.onClick) return;
1235
1236
  action.onClick();
1236
1237
  this.open = false;
1237
1238
  }