{"version":3,"file":"UDivider.mjs","names":["genericComponent","propsFactory","makeComponentProps","makeTagProps","makeUDividerProps","_objectSpread","color","type","String","required","UDivider","name","props","setup","_createVNode","concat"],"sources":["../../../src/components/UDivider/UDivider.tsx"],"sourcesContent":["import { genericComponent, propsFactory } from '@/utils'\n\nimport { makeComponentProps } from '@/composables/component'\nimport { makeTagProps } from '@/composables/tag'\n\nimport { ExtractPropTypes } from 'vue'\n\nexport const makeUDividerProps = propsFactory(\n  {\n    color: {\n      type: String,\n      default: 'gray-200',\n      required: false,\n    },\n\n    ...makeComponentProps(),\n    ...makeTagProps(),\n  },\n  'UDivider'\n)\n\nexport type UDividerProps = ExtractPropTypes<typeof makeUDividerProps>\n\nexport const UDivider = genericComponent()({\n  name: 'UDivider',\n\n  props: makeUDividerProps(),\n\n  setup(props) {\n    return () => (\n      <div class={[`w-full h-0.25 bg-${props.color}`, props.class]}></div>\n    )\n  },\n})\n\nexport type UDivider = InstanceType<typeof UDivider>\n"],"mappings":";;;;;;;SAASA,gBAAgB,EAAEC,YAAY;AAAA,SAE9BC,kBAAkB;AAAA,SAClBC,YAAY;AAIrB,OAAO,IAAMC,iBAAiB,GAAGH,YAAY,CAAAI,aAAA,CAAAA,aAAA;EAEzCC,KAAK,EAAE;IACLC,IAAI,EAAEC,MAAM;IACZ,WAAS,UAAU;IACnBC,QAAQ,EAAE;EACZ;AAAC,GAEEP,kBAAkB,CAAC,CAAC,GACpBC,YAAY,CAAC,CAAC,GAEnB,UACF,CAAC;AAID,OAAO,IAAMO,QAAQ,GAAGV,gBAAgB,CAAC,CAAC,CAAC;EACzCW,IAAI,EAAE,UAAU;EAEhBC,KAAK,EAAER,iBAAiB,CAAC,CAAC;EAE1BS,KAAK,WAAAA,MAACD,KAAK,EAAE;IACX,OAAO;MAAA,OAAAE,YAAA;QAAA,SACO,qBAAAC,MAAA,CAAqBH,KAAK,CAACN,KAAK,GAAIM,KAAK,SAAM;MAAC;IAAA,CAC7D;EACH;AACF,CAAC,CAAC"}