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.19.8 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.7 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.6 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.5 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.4 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.3 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.2 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.1 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.19.0 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.18.8 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.18.7 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.18.0 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.7 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.6 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.5 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.4 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.3 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.2 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.1 app/components/coco/messaging/toast/toast.js
coveragebook_components-0.17.0 app/components/coco/messaging/toast/toast.js