@smart-react-components/ui
Version:
SRC UI includes React and Styled components.
17 lines (16 loc) • 733 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const styled_components_1 = __importDefault(require("styled-components"));
const PickerElement_1 = __importDefault(require("./PickerElement"));
exports.default = (0, styled_components_1.default)(PickerElement_1.default).attrs({
getColorPickerSize: (v, t) => `
height: ${t.$.size.colorPicker[v].majorPickerSize};
width: ${t.$.size.colorPicker[v].minorPickerWidth};
`,
}) `
background: linear-gradient(to bottom, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
box-shadow: 0 0 3px rgba(0,0,0,.3) inset;
`;
;