Sha256: 86dcf50f3760f7abda531edbb390d19734252fc486c28327d0acf88602a0b22b

Contents?: true

Size: 903 Bytes

Versions: 22

Compression:

Stored size: 903 Bytes

Contents

import { CocoComponent } from "@assets/js/coco/component";

export default CocoComponent("toast", () => {
  return {
    notificationType: "toast",
    options: ["show", "dismiss", "showDelay", "dismissDelay", "position"],

    root: {
      "x-options": "options",
      "x-notification": "notificationType",
      "x-show": "notification.shown && !notification.dismissed",
      "x-transition:enter": "toast-enter",
      "x-transition:enter-start": "toast-enter-start",
      "x-transition:enter-end": "toast-enter-end",
      "x-transition:leave": "toast-leave",
      "x-transition:leave-start": "toast-leave-start",
      "x-transition:leave-end": "toast-leave-end",
      "@mouseover": "notification.clearAutoDismiss",
      "@mouseout": "notification.startAutoDismiss",
      "@alert:dismiss": "notification.dismiss",
      "@toast:show.document": "notification.clearFromQueue",
    },
  };
});

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
coveragebook_components-0.16.0 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.15.0 app/components/coco/messaging/toast/toast.js