UNPKG

vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

1 lines 3.82 kB
{"version":3,"file":"props.mjs","sources":["../../../components/typography/props.ts"],"sourcesContent":["import { booleanProp, buildProps, omitProps } from '@vexip-ui/config'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { ConfigurableProps } from '@vexip-ui/config'\nimport type { TitleLevel, TypographyType } from './symbol'\n\nexport const textProps = buildProps({\n type: String as PropType<TypographyType>,\n tag: String,\n delete: booleanProp,\n strong: booleanProp,\n italic: booleanProp,\n underline: booleanProp,\n code: booleanProp,\n mark: booleanProp,\n disabled: booleanProp,\n keyboard: booleanProp,\n thin: booleanProp,\n reversed: booleanProp,\n})\n\nexport type TextProps = ExtractPropTypes<typeof textProps>\nexport type TextCProps = ConfigurableProps<TextProps>\n\nexport const pProps = omitProps(textProps, ['tag', 'code'])\n\nexport type PProps = ExtractPropTypes<typeof pProps>\nexport type PCProps = ConfigurableProps<PProps>\n\nexport const strongProps = omitProps(textProps, ['tag', 'strong', 'code'])\n\nexport type StrongProps = ExtractPropTypes<typeof strongProps>\nexport type StrongCProps = ConfigurableProps<StrongProps>\n\nexport const titleProps = buildProps({\n type: String as PropType<TypographyType>,\n level: Number as PropType<TitleLevel>,\n top: booleanProp,\n marker: booleanProp,\n aligned: booleanProp,\n thin: booleanProp,\n markerType: String,\n})\n\nexport type TitleProps = ExtractPropTypes<typeof titleProps>\nexport type TitleCProps = ConfigurableProps<TitleProps>\n\nexport const hProps = omitProps(titleProps, ['level'])\n\nexport const h1Props = hProps\nexport const h2Props = hProps\nexport const h3Props = hProps\nexport const h4Props = hProps\nexport const h5Props = hProps\nexport const h6Props = hProps\n\nexport type HProps = ExtractPropTypes<typeof hProps>\nexport type HCProps = ConfigurableProps<HProps>\n\nexport type H1Props = HProps\nexport type H2Props = HProps\nexport type H3Props = HProps\nexport type H4Props = HProps\nexport type H5Props = HProps\nexport type H6Props = HProps\n\nexport type H1CProps = HCProps\nexport type H2CProps = HCProps\nexport type H3CProps = HCProps\nexport type H4CProps = HCProps\nexport type H5CProps = HCProps\nexport type H6CProps = HCProps\n\nexport const blockquoteProps = buildProps({\n type: String as PropType<TypographyType>,\n})\n\nexport type BlockquoteProps = ExtractPropTypes<typeof blockquoteProps>\nexport type BlockquoteCProps = ConfigurableProps<BlockquoteProps>\n\nexport const olProps = buildProps({\n type: String as PropType<'a' | 'A' | 'i' | 'I' | '1'>,\n})\n\nexport type OLProps = ExtractPropTypes<typeof olProps>\nexport type OLCProps = ConfigurableProps<OLProps>\n\nexport const ulProps = buildProps({\n listStyle: String,\n})\n\nexport type ULProps = ExtractPropTypes<typeof ulProps>\nexport type ULCProps = ConfigurableProps<ULProps>\n"],"names":["textProps","buildProps","booleanProp","pProps","omitProps","strongProps","titleProps","hProps","h1Props","h2Props","h3Props","h4Props","h5Props","h6Props","blockquoteProps","olProps","ulProps"],"mappings":";AAMO,MAAMA,IAAYC,EAAW;AAAA,EAClC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,QAAQC;AAAA,EACR,QAAQA;AAAA,EACR,QAAQA;AAAA,EACR,WAAWA;AAAA,EACX,MAAMA;AAAA,EACN,MAAMA;AAAA,EACN,UAAUA;AAAA,EACV,UAAUA;AAAA,EACV,MAAMA;AAAA,EACN,UAAUA;AACZ,CAAC,GAKYC,IAASC,EAAUJ,GAAW,CAAC,OAAO,MAAM,CAAC,GAK7CK,IAAcD,EAAUJ,GAAW,CAAC,OAAO,UAAU,MAAM,CAAC,GAK5DM,IAAaL,EAAW;AAAA,EACnC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAKC;AAAA,EACL,QAAQA;AAAA,EACR,SAASA;AAAA,EACT,MAAMA;AAAA,EACN,YAAY;AACd,CAAC,GAKYK,IAASH,EAAUE,GAAY,CAAC,OAAO,CAAC,GAExCE,IAAUD,GACVE,IAAUF,GACVG,IAAUH,GACVI,IAAUJ,GACVK,IAAUL,GACVM,IAAUN,GAmBVO,IAAkBb,EAAW;AAAA,EACxC,MAAM;AACR,CAAC,GAKYc,IAAUd,EAAW;AAAA,EAChC,MAAM;AACR,CAAC,GAKYe,IAAUf,EAAW;AAAA,EAChC,WAAW;AACb,CAAC;"}