Sha256: 1897bc89d726dc9459113a13bbc60b71ad0402f3a2af0ba97989672d7d27884b

Contents?: true

Size: 889 Bytes

Versions: 25

Compression:

Stored size: 889 Bytes

Contents

import { CocoComponent } from "@js/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

25 entries across 25 versions & 1 rubygems

Version Path
coveragebook_components-0.10.0 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.9.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.9.0 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.9 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.8 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.7 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.6 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.5 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.4 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.3 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.2 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.0 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.0.beta.3 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.0.beta.2 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.8.0.beta.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.7.10 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.7.9 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.7.8 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.7.7 app/components/coco/app/elements/toast/toast.js