UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

1 lines 3.7 kB
{"version":3,"file":"grouped-chip.cjs","sources":["../../../recipes/chips/grouped_chip/grouped_chip.vue"],"sourcesContent":["<template>\n <div\n data-qa=\"dt-recipe-grouped-chip\"\n class=\"d-recipe-grouped-chip\"\n >\n <dt-chip\n :hide-close=\"true\"\n :interactive=\"false\"\n size=\"xs\"\n :grouped-chip=\"true\"\n class=\"d-recipe-grouped-chip__content d-recipe-grouped-chip__content-left\"\n >\n <template\n v-if=\"hasSlotContent($slots.leftIcon)\"\n #icon\n >\n <!-- @slot Slot for left chip icon information -->\n <div\n v-if=\"hasSlotContent($slots.leftIcon)\"\n data-qa=\"left-grouped-chip-icon\"\n >\n <slot name=\"leftIcon\" />\n </div>\n </template>\n <template #default>\n <div\n v-if=\"hasSlotContent($slots.leftContent)\"\n data-qa=\"left-grouped-chip-content\"\n >\n <!-- @slot Slot for left chip content information -->\n <slot name=\"leftContent\" />\n </div>\n </template>\n </dt-chip>\n\n <!-- Right side split chip -->\n <dt-chip\n :hide-close=\"true\"\n :interactive=\"false\"\n size=\"xs\"\n :grouped-chip=\"true\"\n class=\"d-recipe-grouped-chip__content d-recipe-grouped-chip__content-right\"\n >\n <template #icon>\n <div\n v-if=\"hasSlotContent($slots.rightIcon)\"\n data-qa=\"right-grouped-chip-icon\"\n >\n <!-- @slot Slot for right chip content information -->\n <slot name=\"rightIcon\" />\n </div>\n </template>\n <template #default>\n <div\n v-if=\"hasSlotContent($slots.rightContent)\"\n data-qa=\"right-grouped-chip-content\"\n >\n <!-- @slot Slot for right chip content information -->\n <slot name=\"rightContent\" />\n </div>\n </template>\n </dt-chip>\n </div>\n</template>\n\n<script>\nimport { DtChip } from '@/components/chip';\nimport { hasSlotContent } from '@/common/utils';\n\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtRecipeGroupedChip',\n\n components: {\n DtChip,\n },\n\n data () {\n return {\n hasSlotContent,\n };\n },\n};\n</script>\n"],"names":["_sfc_main","DtChip","hasSlotContent","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_component_dt_chip","_createSlots","$data","_ctx","_hoisted_3","_renderSlot","_createCommentVNode","_withCtx","_hoisted_2","_hoisted_4","_hoisted_5"],"mappings":"qQAqEKA,EAAU,CACb,aAAc,CAAE,KAAM,GACtB,KAAM,sBAEN,WAAY,CACV,OAAAC,EAAAA,SAGF,MAAQ,CACN,MAAO,CACL,eAAAC,EAAAA,eAEJ,CACF,KAhFI,UAAQ,yBACR,MAAM,4BAHV,IAAA,EAmBU,UAAQ,6BAnBlB,IAAA,EA2BU,UAAQ,gCA3BlB,IAAA,EA8CU,UAAQ,8BA9ClB,IAAA,EAuDU,UAAQ,4FAtDhB,OAAAC,YAAA,EAAAC,qBA6DM,MA7DNC,EA6DM,CAzDJC,EAAAA,YA4BUC,EAAA,CA3BP,aAAY,GACZ,YAAa,GACd,KAAK,KACJ,eAAc,GACf,MAAM,oEAVZ,EAAAC,cAAA,CAwBiB,kBACT,IAMM,CALEC,EAAA,eAAeC,EAAA,OAAO,WAAW,GADzCP,EAAAA,YAAAC,EAAAA,mBAMM,MANNO,EAMM,CADJC,aAA2BF,EAAA,OAAA,aAAA,KA9BrCG,EAAAA,mBAAA,GAAA,EAAA,IAAA,EAAA,IAacJ,EAAA,eAAeC,EAAA,OAAO,QAAQ,GAb5C,KAcS,OAdT,GAAAI,EAAAA,QAiBQ,IAKM,CAJEL,EAAA,eAAeC,EAAA,OAAO,QAAQ,GADtCP,EAAAA,YAAAC,EAAAA,mBAKM,MALNW,EAKM,CADJH,aAAwBF,EAAA,OAAA,UAAA,KArBlCG,EAAAA,mBAAA,GAAA,EAAA,IAAA,IAAA,KAAA,eAoCIP,EAAAA,YAyBUC,EAAA,CAxBP,aAAY,GACZ,YAAa,GACd,KAAK,KACJ,eAAc,GACf,MAAM,wEAEK,eACT,IAMM,CALEE,EAAA,eAAeC,EAAA,OAAO,SAAS,GADvCP,EAAAA,YAAAC,EAAAA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