<template>
  <div class="page-modal-dialog">
    <typo-text variant="title-bold">Modal Dialog</typo-text>
    <hr class="my-3" />
    <div class="pt-1">
      <typo-text variant="body-1-bold" class="text-capitalize">
        Modal Dialog
      </typo-text>
      <div class="wrap-snackbar">
        <div>
          <base-button variant="primary" @click="showDialog = true">
            Show Modal Dialog
          </base-button>
          <modal-dialog
            :show="showDialog"
            :closeOnBackground="true"
            size="500"
            @handleClose="showDialog = false"
          >
            <div class="py-5 px-5">
              <div>Content FIRST</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content</div>
              <div>Content LAST</div>
            </div>
          </modal-dialog>
          <br>
          <pre class="my-0">
  {{`<modal-dialog
    :show="showDialog"
    :closeOnBackground="true"
    size="500"
    @handleClose="showDialog = false"
  >
    <div class="py-5 px-5">
      <div>Content</div>
    </div>
  </modal-dialog>

  - size optional
                `
              }}
            </pre>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import TypoText from "@/components/Typography/TypoText";
import BaseButton from "@/components/Base/BaseButton";
import ModalDialog from "@/components/ModalDialog";

export default {
  components: {
    TypoText,
    BaseButton,
    ModalDialog
  },
  data() {
    return {
      showDialog: false
    }
  },
}
</script>

<style lang="scss" scoped>
@use "@/assets/style/_color.scss" as *;

.page-modal-dialog {
  .wrap-snackbar {
    background: $neutral-1;
    padding: 16px 8px;
    display: flex;
    flex-wrap: wrap;
  }
}
</style>