{"version":3,"file":"UExampleComponent.mjs","names":["makeComponentProps","makeTagProps","genericComponent","propsFactory","makeUExampleComponentProps","_objectSpread","type","String","UExampleComponent","name","props","setup","_ref","slots","console","log","_slots$default","_createVNode","call"],"sources":["../../../src/components/UExampleComponent/UExampleComponent.tsx"],"sourcesContent":["import { makeComponentProps } from '@/composables/component'\nimport { makeTagProps } from '@/composables/tag'\n\nimport { genericComponent, propsFactory } from '@/utils'\n\nimport { consoleWarn } from '@/utils'\n\nexport const makeUExampleComponentProps = propsFactory(\n  {\n    type: {\n      type: String,\n      default: 'example',\n    },\n\n    ...makeComponentProps(),\n    ...makeTagProps(),\n  },\n  'UExampleComponent'\n)\n\nexport type UExampleComponentSlots = {\n  default: never\n}\n\nexport const UExampleComponent = genericComponent<UExampleComponentSlots>()({\n  name: 'UExampleComponent',\n\n  props: makeUExampleComponentProps(),\n\n  setup(props, { slots }) {\n    const type = props.type\n    if (type === 'example') {\n      console.log('Hey')\n    }\n\n    return () => (\n      <div data-type={props.type} class=\"w-full\">\n        {slots.default?.()}\n      </div>\n    )\n  },\n})\n\nexport type UExampleComponent = InstanceType<typeof UExampleComponent>\n"],"mappings":";;;;;;;SAASA,kBAAkB;AAAA,SAClBC,YAAY;AAAA,SAEZC,gBAAgB,EAAEC,YAAY;AAIvC,OAAO,IAAMC,0BAA0B,GAAGD,YAAY,CAAAE,aAAA,CAAAA,aAAA;EAElDC,IAAI,EAAE;IACJA,IAAI,EAAEC,MAAM;IACZ,WAAS;EACX;AAAC,GAEEP,kBAAkB,CAAC,CAAC,GACpBC,YAAY,CAAC,CAAC,GAEnB,mBACF,CAAC;AAMD,OAAO,IAAMO,iBAAiB,GAAGN,gBAAgB,CAAyB,CAAC,CAAC;EAC1EO,IAAI,EAAE,mBAAmB;EAEzBC,KAAK,EAAEN,0BAA0B,CAAC,CAAC;EAEnCO,KAAK,WAAAA,MAACD,KAAK,EAAAE,IAAA,EAAa;IAAA,IAATC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAClB,IAAMP,IAAI,GAAGI,KAAK,CAACJ,IAAI;IACvB,IAAIA,IAAI,KAAK,SAAS,EAAE;MACtBQ,OAAO,CAACC,GAAG,CAAC,KAAK,CAAC;IACpB;IAEA,OAAO;MAAA,IAAAC,cAAA;MAAA,OAAAC,YAAA;QAAA,aACWP,KAAK,CAACJ,IAAI;QAAA;MAAA,KAAAU,cAAA,GACvBH,KAAK,WAAQ,qBAAbG,cAAA,CAAAE,IAAA,CAAAL,KAAgB,CAAC;IAAA,CAErB;EACH;AACF,CAAC,CAAC"}