Sha256: 78d2b13cd2042a6cea7ebaf639bcd9f35299abd9ecf0110642820a73b050a998

Contents?: true

Size: 903 Bytes

Versions: 7

Compression:

Stored size: 903 Bytes

Contents

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

export default CocoComponent("appToast", () => {
  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

7 entries across 7 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.12.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.12.0 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.11.0 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.10.1.beta.2 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.10.1.beta.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.10.1.beta.0 app/components/coco/app/elements/toast/toast.js