2024-11-10 19:16:58 +00:00
|
|
|
<template>
|
|
|
|
<Fieldset legend="Form Field" :toggleable="true">
|
|
|
|
<div class="text-sm mb-1 font-semibold text-surface-950 dark:text-surface-0">Base</div>
|
|
|
|
<section class="grid grid-cols-4 mb-3 gap-2">
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.paddingX" label="Padding X" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.paddingY" label="Padding Y" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.borderRadius" label="Border Radius" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.transitionDuration" label="Transition Duration" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="text-sm mb-1 font-semibold text-surface-950 dark:text-surface-0">Small</div>
|
|
|
|
<section class="grid grid-cols-4 mb-3 gap-2">
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.sm.paddingX" label="Padding X" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.sm.paddingY" label="Padding Y" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.sm.fontSize" label="Font Size" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div></div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="text-sm mb-1 font-semibold text-surface-950 dark:text-surface-0">Large</div>
|
|
|
|
<section class="grid grid-cols-4 mb-3 gap-2">
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.lg.paddingX" label="Padding X" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.lg.paddingY" label="Padding Y" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.lg.fontSize" label="Font Size" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div></div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="text-sm mb-1 font-semibold text-surface-950 dark:text-surface-0">Focus Ring</div>
|
|
|
|
<section class="grid grid-cols-4 gap-2">
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.focusRing.width" label="Width" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.focusRing.style" label="Style" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.focusRing.color" label="Color" type="color" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-1">
|
2024-11-12 09:18:07 +00:00
|
|
|
<DesignTokenField v-model="$preset.semantic.formField.focusRing.offset" label="Offset" />
|
2024-11-10 19:16:58 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</Fieldset>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
inject: ['$preset']
|
|
|
|
};
|
|
|
|
</script>
|