"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _FillPreview = _interopRequireDefault(require("../FillPreview/FillPreview"));
var _PaletteSt = require("./Palette.st.css.js");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/Palette/Palette.tsx";
var Palette = _ref => {
  var {
    dataHook,
    fill = []
  } = _ref;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: _PaletteSt.classes.root,
    "data-hook": dataHook,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 8,
      columnNumber: 5
    }
  }, fill.map((item, i) => /*#__PURE__*/_react.default.createElement(_FillPreview.default, {
    as: "div",
    key: i,
    tabIndex: -1,
    className: _PaletteSt.classes.fillPreview,
    aspectRatio: "none",
    fill: item,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 10,
      columnNumber: 9
    }
  })));
};
Palette.displayName = 'Palette';
var _default = exports.default = Palette;
//# sourceMappingURL=Palette.js.map