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.cjs","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":"oHAMaA,EAAYC,EAAAA,WAAW,CAClC,KAAM,OACN,IAAK,OACL,OAAQC,EAAA,YACR,OAAQA,EAAA,YACR,OAAQA,EAAA,YACR,UAAWA,EAAA,YACX,KAAMA,EAAA,YACN,KAAMA,EAAA,YACN,SAAUA,EAAA,YACV,SAAUA,EAAA,YACV,KAAMA,EAAA,YACN,SAAUA,EAAAA,WACZ,CAAC,EAKYC,EAASC,EAAAA,UAAUJ,EAAW,CAAC,MAAO,MAAM,CAAC,EAK7CK,EAAcD,EAAU,UAAAJ,EAAW,CAAC,MAAO,SAAU,MAAM,CAAC,EAK5DM,EAAaL,EAAAA,WAAW,CACnC,KAAM,OACN,MAAO,OACP,IAAKC,EAAA,YACL,OAAQA,EAAA,YACR,QAASA,EAAA,YACT,KAAMA,EAAA,YACN,WAAY,MACd,CAAC,EAKYK,EAASH,EAAA,UAAUE,EAAY,CAAC,OAAO,CAAC,EAExCE,EAAUD,EACVE,EAAUF,EACVG,EAAUH,EACVI,EAAUJ,EACVK,EAAUL,EACVM,EAAUN,EAmBVO,EAAkBb,EAAAA,WAAW,CACxC,KAAM,MACR,CAAC,EAKYc,EAAUd,EAAAA,WAAW,CAChC,KAAM,MACR,CAAC,EAKYe,EAAUf,EAAAA,WAAW,CAChC,UAAW,MACb,CAAC"}