UNPKG

@inkline/inkline

Version:

Inkline is the Vue.js UI/UX Library built for creating your next design system

543 lines (541 loc) 22 kB
export const manifest = { name: 'radio', slots: [ { description: 'Slot for default radio label', name: 'default' } ], events: [ { description: 'Event emitted for setting the modelValue', name: 'update:modelValue' } ], props: [ { name: 'color', type: [ 'light', 'dark' ], default: 'light', description: 'The color variant of the radio' }, { name: 'disabled', type: [ 'Boolean' ], default: 'false', description: 'The disabled state of the radio' }, { name: 'indeterminate', type: [ 'Boolean' ], default: 'false', description: 'The indeterminate state of the radio' }, { name: 'value', type: [], default: '\'\'', description: 'Used to set the radio value when used inside a radio group' }, { name: 'modelValue', type: [], default: 'false', description: 'Used to set the radio value when used by itself' }, { name: 'name', type: [ 'String' ], default: 'uid()', description: 'The unique identifier of the radio' }, { name: 'native', type: [ 'Boolean' ], default: 'false', description: 'Displays the native browser radio input indicator' }, { name: 'readonly', type: [ 'Boolean' ], default: 'false', description: 'The readonly state of the radio' }, { name: 'size', type: [ 'sm', 'md', 'lg' ], default: 'md', description: 'The size variant of the radio' }, { name: 'tabindex', type: [ 'Number', 'String' ], default: '0', description: 'The tabindex of the radio' } ], css: { selector: '.radio', type: 'form', defaults: { size: 'md', color: 'light' }, variables: [ { name: 'background', type: 'color', value: 'color(\'white\')', description: 'The background of the radio component indicator' }, { name: 'background--checked', type: 'color', value: 'color(\'primary\')', description: 'The background of the radio component indicator when checked' }, { name: 'background--disabled', type: 'color', value: 'color(\'light-25\')', description: 'The background of the radio component indicator when disabled' }, { name: 'background--checked-disabled', type: 'color', value: 'color(\'primary-25\')', description: 'The background of the radio component indicator when checked and disabled' }, { name: 'border-color', type: 'color', value: 'color(\'light-55\')', description: 'The border-color of the radio component indicator' }, { name: 'border-color--checked', type: 'color', value: 'color(\'primary-55\')', description: 'The border-color of the radio component indicator when checked' }, { name: 'border-color--disabled', type: 'color', value: 'color(\'light\')', description: 'The border-color of the radio component indicator when disabled' }, { name: 'border-color--checked-disabled', type: 'color', value: 'color(\'primary-30\')', description: 'The border-color of the radio component indicator when checked and disabled' }, { name: 'border-style', type: '', value: 'var(--border-style)', description: 'The border style of the radio component indicator' }, { name: 'border-top-width', type: '', value: 'var(--border-top-width)', description: 'The border top width of the radio component indicator' }, { name: 'border-right-width', type: '', value: 'var(--border-right-width)', description: 'The border right width of the radio component indicator' }, { name: 'border-bottom-width', type: '', value: 'var(--border-bottom-width)', description: 'The border bottom width of the radio component indicator' }, { name: 'border-left-width', type: '', value: 'var(--border-left-width)', description: 'The border left width of the radio component indicator' }, { name: 'border-width', type: '', value: 'var(----border-top-width) var(----border-right-width) var(----border-bottom-width) var(----border-left-width)', description: 'The border width of the radio component indicator' }, { name: 'border-top-left-radius', type: '', value: '50%', description: 'The border top left radius of the radio component indicator' }, { name: 'border-top-right-radius', type: '', value: '50%', description: 'The border top right radius of the radio component indicator' }, { name: 'border-bottom-right-radius', type: '', value: '50%', description: 'The border bottom right radius of the radio component indicator' }, { name: 'border-bottom-left-radius', type: '', value: '50%', description: 'The border bottom left radius of the radio component indicator' }, { name: 'border-radius', type: '', value: 'var(----border-top-left-radius) var(----border-top-right-radius) var(----border-bottom-right-radius) var(----border-bottom-left-radius)', description: 'The border radius of the radio component indicator' }, { name: 'box-shadow-offset-x', type: '', value: 'var(--box-shadow-offset-x)', description: 'The box shadow horizontal offset of the radio component indicator' }, { name: 'box-shadow-offset-y', type: '', value: 'var(--box-shadow-offset-y)', description: 'The box shadow vertical offset of the radio component indicator' }, { name: 'box-shadow-blur-radius', type: '', value: 'var(--box-shadow-blur-radius)', description: 'The box shadow blur radius of the radio component indicator' }, { name: 'box-shadow-spread-radius', type: '', value: 'var(--box-shadow-spread-radius)', description: 'The box shadow spread radius of the radio component indicator' }, { name: 'box-shadow-color', type: '', value: 'var(--box-shadow-color)', description: 'The box shadow spread radius of the radio component indicator' }, { name: 'box-shadow', type: '', value: 'var(----box-shadow-offset-x) var(----box-shadow-offset-y) var(----box-shadow-blur-radius) var(----box-shadow-spread-radius) var(----box-shadow-color)', description: 'The box shadow of the radio component indicator' }, { name: 'color', type: 'color', value: 'color(\'white\')', description: 'The color of the radio component indicator icon' }, { name: 'color--disabled', type: 'color', value: 'color(\'light-25\')', description: 'The color of the radio component indicator icon when disabled' }, { name: 'margin-right', type: '', value: 'calc(var(--margin-right) / 2)', description: 'The right margin of the radio component indicator' }, { name: 'size', type: 'size', value: '1rem', description: 'The size of the radio component indicator' }, { name: 'checkmark--size', type: 'size', value: '8px', description: 'The size of the radio component indicator check mark icon' }, { name: 'label--font-size', type: 'size', value: 'font-size()', description: 'The font size of the radio component label' }, { name: 'label--color', type: 'color', value: 'contrast-color($color-light)', description: 'The label color of the radio component label' }, { name: 'label--color--disabled', type: 'color', value: 'color(\'light-70\')', description: 'The label color of the radio component when disabled' } ], variants: [ { name: 'light', type: 'variant', description: 'Variables for the light color variant', variables: [ { name: 'background', type: '', value: 'color(\'white\')', description: 'The background of the radio component indicator, for the light color variant' }, { name: 'background--checked', type: '', value: 'color(\'primary\')', description: 'The background of the radio component indicator when checked, for the light color variant' }, { name: 'background--disabled', type: '', value: 'color(\'light-25\')', description: 'The background of the radio component indicator when disabled, for the light color variant' }, { name: 'background--checked-disabled', type: '', value: 'color(\'primary-25\')', description: 'The background of the radio component indicator when checked and disabled, for the light color variant' }, { name: 'border-color', type: '', value: 'color(\'light-55\')', description: 'The border-color of the radio component indicator, for the light color variant' }, { name: 'border-color--checked', type: '', value: 'color(\'primary-55\')', description: 'The border-color of the radio component indicator when checked, for the light color variant' }, { name: 'border-color--disabled', type: '', value: 'color(\'light\')', description: 'The border-color of the radio component indicator when disabled, for the light color variant' }, { name: 'border-color--checked-disabled', type: '', value: 'color(\'primary-30\')', description: 'The border-color of the radio component indicator when checked and disabled, for the light color variant' }, { name: 'color', type: '', value: 'color(\'white\')', description: 'The color of the radio component indicator icon, for the light color variant' }, { name: 'color--disabled', type: '', value: 'color(\'light-25\')', description: 'The color of the radio component indicator icon when disabled, for the light color variant' }, { name: 'label--color', type: '', value: 'contrast-color($color-light)', description: 'The label color of the radio component label, for the light color variant' }, { name: 'label--color--disabled', type: '', value: 'color(\'light-70\')', description: 'The label color of the radio component when disabled, for the light color variant' } ] }, { name: 'dark', type: 'variant', description: 'Variables for the dark color variant', variables: [ { name: 'background', type: '', value: 'color(\'dark\')', description: 'The background of the radio component indicator, for the dark color variant' }, { name: 'background--checked', type: '', value: 'color(\'primary\')', description: 'The background of the radio component indicator when checked, for the dark color variant' }, { name: 'background--disabled', type: '', value: 'color(\'dark-25\')', description: 'The background of the radio component indicator when disabled, for the dark color variant' }, { name: 'background--checked-disabled', type: '', value: 'color(\'primary-75\')', description: 'The background of the radio component indicator when checked and disabled, for the dark color variant' }, { name: 'border-color', type: '', value: 'color(\'dark\')', description: 'The border-color of the radio component indicator, for the dark color variant' }, { name: 'border-color--checked', type: '', value: 'color(\'primary-55\')', description: 'The border-color of the radio component indicator when checked, for the dark color variant' }, { name: 'border-color--disabled', type: '', value: 'color(\'dark\')', description: 'The border-color of the radio component indicator when disabled, for the dark color variant' }, { name: 'border-color--checked-disabled', type: '', value: 'color(\'primary-70\')', description: 'The border-color of the radio component indicator when checked and disabled, for the dark color variant' }, { name: 'color', type: '', value: 'color(\'white\')', description: 'The color of the radio component indicator icon, for the dark color variant' }, { name: 'color--disabled', type: '', value: 'color(\'dark-25\')', description: 'The color of the radio component indicator icon when disabled, for the dark color variant' }, { name: 'label--color', type: '', value: 'contrast-color($color-dark)', description: 'The label color of the radio component label, for the dark color variant' }, { name: 'label--color--disabled', type: '', value: 'color(\'dark-30\')', description: 'The label color of the radio component when disabled, for the dark color variant' } ] }, { name: 'sm', type: 'variant', description: 'Variables for the sm size variant', variables: [ { name: 'size', type: '', value: 'calc(#{1rem} * #{size-multiplier(\'sm\')})', description: 'The size of the radio component indicator, for the sm size variant' }, { name: 'checkmark--size', type: '', value: 'calc(#{8px} * #{size-multiplier(\'sm\')})', description: 'The size of the radio component indicator check mark icon, for the sm size variant' }, { name: 'label--font-size', type: '', value: 'calc(#{font-size()} * #{size-multiplier(\'sm\')})', description: 'The font size of the radio component label, for the sm size variant' } ] }, { name: 'md', type: 'variant', description: 'Variables for the md size variant', variables: [ { name: 'size', type: '', value: 'calc(#{1rem} * #{size-multiplier(\'md\')})', description: 'The size of the radio component indicator, for the md size variant' }, { name: 'checkmark--size', type: '', value: 'calc(#{8px} * #{size-multiplier(\'md\')})', description: 'The size of the radio component indicator check mark icon, for the md size variant' }, { name: 'label--font-size', type: '', value: 'calc(#{font-size()} * #{size-multiplier(\'md\')})', description: 'The font size of the radio component label, for the md size variant' } ] }, { name: 'lg', type: 'variant', description: 'Variables for the lg size variant', variables: [ { name: 'size', type: '', value: 'calc(#{1rem} * #{size-multiplier(\'lg\')})', description: 'The size of the radio component indicator, for the lg size variant' }, { name: 'checkmark--size', type: '', value: 'calc(#{8px} * #{size-multiplier(\'lg\')})', description: 'The size of the radio component indicator check mark icon, for the lg size variant' }, { name: 'label--font-size', type: '', value: 'calc(#{font-size()} * #{size-multiplier(\'lg\')})', description: 'The font size of the radio component label, for the lg size variant' } ] } ] } }; export default manifest;