Sha256: e6e6ffb6cc7a28ea0422d686c333108ec059a7f6c3339bd6c9b41e5ac382a685

Contents?: true

Size: 882 Bytes

Versions: 7

Compression:

Stored size: 882 Bytes

Contents

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

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

7 entries across 7 versions & 1 rubygems

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