{"version":3,"file":"UTableRow.mjs","names":["makeComponentProps","makeTagProps","genericComponent","propsFactory","computed","makeUTableRowProps","_objectSpread","height","type","String","required","divider","UTableRow","name","props","emits","setup","_ref","emit","slots","bgClasses","_slots$default","_createVNode","value","call"],"sources":["../../../src/components/UTable/UTableRow.tsx"],"sourcesContent":["import { makeComponentProps } from '@/composables/component'\nimport { makeTagProps } from '@/composables/tag'\nimport { genericComponent, propsFactory } from '@/utils'\nimport { ExtractPropTypes, computed } from 'vue'\n\nexport const makeUTableRowProps = propsFactory(\n  {\n    height: {\n      type: String,\n      default: '72',\n      required: false,\n    },\n\n    divider: {\n      type: String,\n      default: 'alternating fills',\n      required: false,\n    },\n    ...makeComponentProps(),\n    ...makeTagProps(),\n  },\n  'UTableRow'\n)\n\nexport type UTableRowProps = ExtractPropTypes<typeof makeUTableRowProps>\n\nexport type UTableRowSlots = {\n  default: never\n}\n\nexport const UTableRow = genericComponent<UTableRowSlots>()({\n  name: 'UTableRow',\n\n  props: makeUTableRowProps(),\n\n  emits: {\n    //\n  },\n\n  setup(props, { emit, slots }) {\n    const bgClasses = computed(() => {\n      return props.divider === 'alternating fills'\n        ? 'bg-gray-25 hover:bg-gray-25'\n        : `bg-white hover:bg-gray-50`\n    })\n\n    return () => (\n      <div class={[bgClasses.value, 'table-row ']}>{slots.default?.()}</div>\n    )\n  },\n})\n\nexport type UTableRow = InstanceType<typeof UTableRow>\n"],"mappings":";;;;;;;SAASA,kBAAkB;AAAA,SAClBC,YAAY;AAAA,SACZC,gBAAgB,EAAEC,YAAY;AACvC,SAA2BC,QAAQ,QAAQ,KAAK;AAEhD,OAAO,IAAMC,kBAAkB,GAAGF,YAAY,CAAAG,aAAA,CAAAA,aAAA;EAE1CC,MAAM,EAAE;IACNC,IAAI,EAAEC,MAAM;IACZ,WAAS,IAAI;IACbC,QAAQ,EAAE;EACZ,CAAC;EAEDC,OAAO,EAAE;IACPH,IAAI,EAAEC,MAAM;IACZ,WAAS,mBAAmB;IAC5BC,QAAQ,EAAE;EACZ;AAAC,GACEV,kBAAkB,CAAC,CAAC,GACpBC,YAAY,CAAC,CAAC,GAEnB,WACF,CAAC;AAQD,OAAO,IAAMW,SAAS,GAAGV,gBAAgB,CAAiB,CAAC,CAAC;EAC1DW,IAAI,EAAE,WAAW;EAEjBC,KAAK,EAAET,kBAAkB,CAAC,CAAC;EAE3BU,KAAK,EAAE;IACL;EAAA,CACD;EAEDC,KAAK,WAAAA,MAACF,KAAK,EAAAG,IAAA,EAAmB;IAAA,IAAfC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACxB,IAAMC,SAAS,GAAGhB,QAAQ,CAAC,YAAM;MAC/B,OAAOU,KAAK,CAACH,OAAO,KAAK,mBAAmB,GACxC,6BAA6B,8BACF;IACjC,CAAC,CAAC;IAEF,OAAO;MAAA,IAAAU,cAAA;MAAA,OAAAC,YAAA;QAAA,SACO,CAACF,SAAS,CAACG,KAAK,EAAE,YAAY;MAAC,KAAAF,cAAA,GAAGF,KAAK,WAAQ,qBAAbE,cAAA,CAAAG,IAAA,CAAAL,KAAgB,CAAC;IAAA,CAChE;EACH;AACF,CAAC,CAAC"}