Sha256: 079b6273a2241ad0e3ff9d9010c7d884ad35964b36d78095cd7c15e1897c4196

Contents?: true

Size: 882 Bytes

Versions: 23

Compression:

Stored size: 882 Bytes

Contents

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

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

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

Version data entries

23 entries across 23 versions & 1 rubygems

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