UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

44 lines (43 loc) 1.13 kB
import normalizeComponent from "../../../_virtual/_plugin-vue2_normalizer.js"; const _sfc_main = { name: "DtRecipeTimePill", props: { /** * Date time display value */ dateTimeDisplay: { type: String, required: true }, /** * Machine-readable attribute * Accepts a string value of YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD */ dateTime: { type: String, required: true, validator: (t) => { const x = new Date(t); if (x instanceof Date && !isNaN(x)) { return true; } return false; } } } }; var _sfc_render = function render() { var _vm = this, _c = _vm._self._c; return _c("time", { staticClass: "d-recipe-time-pill", attrs: { "data-qa": "dt-recipe-time-pill", "dateTime": _vm.dateTime } }, [_vm._v(" " + _vm._s(_vm.dateTimeDisplay) + " ")]); }; var _sfc_staticRenderFns = []; var __component__ = /* @__PURE__ */ normalizeComponent( _sfc_main, _sfc_render, _sfc_staticRenderFns ); const time_pill = __component__.exports; export { time_pill as default }; //# sourceMappingURL=time_pill.vue.js.map