import type { Meta, StoryObj } from '@storybook/vue3' import ToolbarContainer from './ToolbarContainer.vue' import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue' import { VBtn, VBtnToggle, VCheckbox, VDivider } from 'vuetify/components' import { mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill } from '@mdi/js' import { ref } from 'vue' const meta = { title: 'Composants/Layout/ToolbarContainer', component: ToolbarContainer, argTypes: { default: { control: false, description: 'Contenu de la barre d\'outils', }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: (args) => { return { components: { VBtn, VBtnToggle, ToolbarContainer, SyIcon }, setup() { const justification = ref() return { args, justification, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter } }, template: `
`, } }, parameters: { sourceCode: [ { name: 'Template', code: ` `, }, ], }, } export const WithCheckboxes: Story = { render: (args) => { return { components: { VCheckbox, ToolbarContainer, SyIcon }, setup() { return { args } }, template: `
`, } }, parameters: { sourceCode: [ { name: 'Template', code: ``, }, ], }, } export const ManySections: Story = { render: (args) => { return { components: { VBtn, VDivider, ToolbarContainer, SyIcon, VBtnToggle }, setup() { const justification = ref() const textDecoration = ref([]) return { args, justification, textDecoration, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill } }, template: `
`, } }, parameters: { sourceCode: [ { name: 'Template', code: ` `, }, ], }, } export const Vertical: Story = { render: (args) => { return { components: { VBtn, ToolbarContainer, SyIcon, VBtnToggle }, setup() { const justification = ref() const textDecoration = ref([]) return { args, justification, textDecoration, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill } }, template: `
`, } }, parameters: { sourceCode: [ { name: 'Template', code: ` `, }, ], }, }