UNPKG

@inkline/inkline

Version:

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

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