Remove legacy docs

pull/6082/head
tugcekucukoglu 2024-07-18 09:55:17 +03:00
parent bda04bef75
commit 44ed1dc381
10 changed files with 0 additions and 370 deletions

View File

@ -1,11 +0,0 @@
<template>
<DocSectionText id="accessibility" label="Accessibility" v-bind="$attrs">
<h3>Screen Reader</h3>
<p>
InlineMessage component uses <i>alert</i> role that implicitly defines <i>aria-live</i> as "assertive" and <i>aria-atomic</i> as "true". Since any attribute is passed to the root element, attributes like <i>aria-labelledby</i> and
<i>aria-label</i> can optionally be used as well.
</p>
<h3>Keyboard Support</h3>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
</template>

View File

@ -1,43 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>InlineMessage component requires a content to display.</p>
</DocSectionText>
<div class="card flex justify-center">
<InlineMessage severity="info">Username is required</InlineMessage>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<InlineMessage severity="info">Username is required</InlineMessage>
`,
options: `
<template>
<div class="card flex justify-center">
<InlineMessage severity="info">Username is required</InlineMessage>
</div>
</template>
<script>
<\/script>
`,
composition: `
<template>
<div class="card flex justify-center">
<InlineMessage severity="info">Username is required</InlineMessage>
</div>
</template>
<script setup>
<\/script>
`
}
};
}
};
</script>

View File

@ -1,71 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>Message component is handy when displaying error messages next to form elements.</p>
</DocSectionText>
<div class="card">
<div class="flex flex-wrap items-center mb-4 gap-2">
<InputText placeholder="Username" aria-label="username" invalid />
<InlineMessage>Username is required</InlineMessage>
</div>
<div class="flex flex-wrap items-center gap-2">
<InputText placeholder="Email" aria-label="email" invalid />
<InlineMessage />
</div>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<div class="flex flex-wrap items-center mb-4 gap-2">
<InputText placeholder="Username" aria-label="username" invalid />
<InlineMessage>Username is required</InlineMessage>
</div>
<div class="flex flex-wrap items-center gap-2">
<InputText placeholder="Email" aria-label="email" invalid />
<InlineMessage />
</div>
`,
options: `
<template>
<div class="card">
<div class="flex flex-wrap items-center mb-4 gap-2">
<InputText placeholder="Username" aria-label="username" invalid />
<InlineMessage>Username is required</InlineMessage>
</div>
<div class="flex flex-wrap items-center gap-2">
<InputText placeholder="Email" aria-label="email" invalid />
<InlineMessage />
</div>
</div>
</template>
<script>
<\/script>
`,
composition: `
<template>
<div class="card">
<div class="flex flex-wrap items-center mb-4 gap-2">
<InputText placeholder="Username" aria-label="username" invalid />
<InlineMessage>Username is required</InlineMessage>
</div>
<div class="flex flex-wrap items-center gap-2">
<InputText placeholder="Email" aria-label="email" invalid />
<InlineMessage />
</div>
</div>
</template>
<script setup>
<\/script>
`
}
};
}
};
</script>

View File

@ -1,18 +0,0 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
import InlineMessage from 'primevue/inlinemessage';
`
}
};
}
};
</script>

View File

@ -1,63 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>The <i>severity</i> option specifies the type of the message.</p>
</DocSectionText>
<div class="card flex flex-wrap items-center justify-center gap-4">
<InlineMessage severity="success">Success Message</InlineMessage>
<InlineMessage severity="info">Info Message</InlineMessage>
<InlineMessage severity="warn">Warn Message</InlineMessage>
<InlineMessage severity="error">Error Message</InlineMessage>
<InlineMessage severity="secondary">Secondary Message</InlineMessage>
<InlineMessage severity="contrast">Contrast Message</InlineMessage>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<InlineMessage severity="success">Success Message</InlineMessage>
<InlineMessage severity="info">Info Message</InlineMessage>
<InlineMessage severity="warn">Warn Message</InlineMessage>
<InlineMessage severity="error">Error Message</InlineMessage>
<InlineMessage severity="secondary">Secondary Message</InlineMessage>
<InlineMessage severity="contrast">Contrast Message</InlineMessage>
`,
options: `
<template>
<div class="card flex flex-wrap items-center justify-center gap-4">
<InlineMessage severity="success">Success Message</InlineMessage>
<InlineMessage severity="info">Info Message</InlineMessage>
<InlineMessage severity="warn">Warn Message</InlineMessage>
<InlineMessage severity="error">Error Message</InlineMessage>
<InlineMessage severity="secondary">Secondary Message</InlineMessage>
<InlineMessage severity="contrast">Contrast Message</InlineMessage>
</div>
</template>
<script>
<\/script>
`,
composition: `
<template>
<div class="card flex flex-wrap items-center justify-center gap-4">
<InlineMessage severity="success">Success Message</InlineMessage>
<InlineMessage severity="info">Info Message</InlineMessage>
<InlineMessage severity="warn">Warn Message</InlineMessage>
<InlineMessage severity="error">Error Message</InlineMessage>
<InlineMessage severity="secondary">Secondary Message</InlineMessage>
<InlineMessage severity="contrast">Contrast Message</InlineMessage>
</div>
</template>
<script setup>
<\/script>
`
}
};
}
};
</script>

View File

@ -1,8 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>{{ $attrs.description }}</p>
</DocSectionText>
<div class="card">
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/inlinemessage.jpg" />
</div>
</template>

View File

@ -1,35 +0,0 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>InlineMessage Pass Through</h1>
</div>
<DocSections :docs="docs" />
</div>
<DocSectionNav :docs="docs" />
</template>
<script>
import DocApiTable from '@/components/doc/DocApiTable.vue';
import { getPTOptions } from '@/components/doc/helpers';
import PTImage from './PTImage.vue';
export default {
data() {
return {
docs: [
{
id: 'pt.image',
label: 'Wireframe',
component: PTImage
},
{
id: 'pt.doc.inlinemessage',
label: 'InlineMessage PT Options',
component: DocApiTable,
data: getPTOptions('InlineMessage')
}
]
};
}
};
</script>

View File

@ -1,8 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>
Visit <a href="https://github.com/primefaces/primevue-tailwind" target="_blank" rel="noopener noreferrer" class="doc-link">Tailwind Presets</a> project for detailed documentation, examples and ready-to-use presets about how to style
PrimeVue components with Tailwind CSS.
</p>
</DocSectionText>
</template>

View File

@ -1,56 +0,0 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>InlineMessage Theming</h1>
</div>
<DocSections :docs="docs" />
</div>
<DocSectionNav :docs="docs" />
</template>
<script>
import DocApiTable from '@/components/doc/DocApiTable.vue';
import { getStyleOptions, getTokenOptions } from '@/components/doc/helpers';
import TailwindDoc from './TailwindDoc.vue';
export default {
data() {
return {
docs: [
{
id: 'theming.styled',
label: 'Styled',
children: [
{
id: 'theming.classes',
label: 'CSS Classes',
description: 'List of class names used in the styled mode.',
component: DocApiTable,
data: getStyleOptions('InlineMessage')
},
{
id: 'theming.tokens',
label: 'Design Tokens',
description: 'List of design tokens used in a preset.',
component: DocApiTable,
data: getTokenOptions('InlineMessage')
}
]
},
{
id: 'theming.unstyled',
label: 'Unstyled',
description: 'Theming is implemented with the pass through properties in unstyled mode.',
children: [
{
id: 'theming.tailwind',
label: 'Tailwind',
component: TailwindDoc
}
]
}
]
};
}
};
</script>

View File

@ -1,57 +0,0 @@
<template>
<DocComponent
title="Vue InlineMessage Component"
header="InlineMessage"
description="Inline Message component displays information related to another element such as invalid input."
:componentDocs="docs"
:apiDocs="['InlineMessage']"
:ptTabComponent="ptComponent"
:themingDocs="themingDoc"
/>
</template>
<script>
import AccessibilityDoc from '@/doc/inlinemessage/AccessibilityDoc.vue';
import BasicDoc from '@/doc/inlinemessage/BasicDoc.vue';
import FormDoc from '@/doc/inlinemessage/FormDoc.vue';
import ImportDoc from '@/doc/inlinemessage/ImportDoc.vue';
import SeverityDoc from '@/doc/inlinemessage/SeverityDoc.vue';
import PTComponent from '@/doc/inlinemessage/pt/index.vue';
import ThemingDoc from '@/doc/inlinemessage/theming/index.vue';
export default {
data() {
return {
docs: [
{
id: 'import',
label: 'Import',
component: ImportDoc
},
{
id: 'basic',
label: 'Basic',
component: BasicDoc
},
{
id: 'severity',
label: 'Severity',
component: SeverityDoc
},
{
id: 'form',
label: 'Form',
component: FormDoc
},
{
id: 'accessibility',
label: 'Accessibility',
component: AccessibilityDoc
}
],
ptComponent: PTComponent,
themingDoc: ThemingDoc
};
}
};
</script>