2023-07-26 14:53:34 +00:00
|
|
|
<template>
|
|
|
|
<div class="doc-main">
|
|
|
|
<div class="doc-intro">
|
|
|
|
<h1>InputText Theming</h1>
|
|
|
|
</div>
|
|
|
|
<DocSections :docs="docs" />
|
|
|
|
</div>
|
|
|
|
<DocSectionNav :docs="docs" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-05-13 21:48:50 +00:00
|
|
|
import DocApiTable from '@/components/doc/DocApiTable.vue';
|
|
|
|
import { getStyleOptions, getTokenOptions } from '@/components/doc/helpers';
|
2023-08-07 11:27:39 +00:00
|
|
|
import TailwindDoc from './TailwindDoc.vue';
|
2023-07-26 14:53:34 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
docs: [
|
|
|
|
{
|
2023-08-11 10:50:32 +00:00
|
|
|
id: 'theming.styled',
|
2023-07-26 14:53:34 +00:00
|
|
|
label: 'Styled',
|
2024-05-13 21:48:50 +00:00
|
|
|
description: 'List of class names used in the styled mode.',
|
|
|
|
component: DocApiTable,
|
|
|
|
data: getStyleOptions('InputText')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'theming.tokens',
|
|
|
|
label: 'Design Tokens',
|
|
|
|
description: `List of design tokens used in <i>${this.$appState.preset}</i> Preset.`,
|
|
|
|
component: DocApiTable,
|
|
|
|
data: getTokenOptions(this.$appState.preset, 'InputText')
|
2023-07-26 14:53:34 +00:00
|
|
|
},
|
|
|
|
{
|
2023-08-11 10:50:32 +00:00
|
|
|
id: 'theming.unstyled',
|
2023-07-26 14:53:34 +00:00
|
|
|
label: 'Unstyled',
|
2023-08-07 11:27:39 +00:00
|
|
|
description: 'Theming is implemented with the pass through properties in unstyled mode.',
|
|
|
|
children: [
|
|
|
|
{
|
2023-08-11 10:50:32 +00:00
|
|
|
id: 'theming.tailwind',
|
2023-08-07 11:27:39 +00:00
|
|
|
label: 'Tailwind',
|
|
|
|
component: TailwindDoc
|
|
|
|
}
|
|
|
|
]
|
2023-07-26 14:53:34 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
2024-05-13 21:48:50 +00:00
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
'$appState.preset': {
|
|
|
|
flush: 'post',
|
|
|
|
handler(newValue) {
|
|
|
|
this.docs[1] = { ...this.docs[1], description: `List of design tokens used in <i>${newValue}</i> Preset.`, data: getTokenOptions(newValue, 'InputText') };
|
|
|
|
}
|
|
|
|
}
|
2023-07-26 14:53:34 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|