"use strict";

exports.__esModule = true;
exports.ColorViewUniDriver = ColorViewUniDriver;
var _unidriver = require("../../../../unidriver");
function ColorViewUniDriver(base) {
  const text = base.$('[data-hook="cell-color-view-text"]');
  const fillPreview = base.$('[data-hook="cell-color-view-fill-preview"]');
  return {
    ...(0, _unidriver.baseUniDriverFactory)(base),
    getHex: () => text.text(),
    hasText: () => text.exists(),
    hasFillPreview: () => fillPreview.exists(),
    /** Whether the FillPreview is filled (has a `fill` attribute style). */
    getFillStyle: () => fillPreview.attr('style')
  };
}
//# sourceMappingURL=View.uni.driver.js.map