@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
52 lines (49 loc) • 2.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledUploadedFilesList = exports.StyledMotionFileInputList = exports.StyledFileInputWrapper = exports.StyledFileInputText = exports.StyledFileInputContainer = exports.StyledFileInput = void 0;
var _react = require("motion/react");
var _styledComponents = _interopRequireWildcard(require("styled-components"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
const StyledFileInput = exports.StyledFileInput = _styledComponents.default.div``;
const StyledFileInputWrapper = exports.StyledFileInputWrapper = _styledComponents.default.div`
display: flex;
cursor: ${({
$isDisabled
}) => $isDisabled ? 'default' : 'pointer'};
opacity: ${({
$isDisabled
}) => $isDisabled ? 0.5 : 1};
`;
const StyledUploadedFilesList = exports.StyledUploadedFilesList = _styledComponents.default.div`
${({
$shouldShowBorder,
theme
}) => $shouldShowBorder && (0, _styledComponents.css)`
border-top: 1px solid ${theme.headline};
`}
`;
const StyledFileInputContainer = exports.StyledFileInputContainer = _styledComponents.default.div`
border: ${({
theme
}) => theme.text} 1px dotted;
display: flex;
gap: 10px;
align-items: center;
padding: 15px;
justify-content: center;
width: 100%;
${({
$isImageSelection
}) => $isImageSelection && (0, _styledComponents.css)`
border-left: none;
`}
`;
const StyledFileInputText = exports.StyledFileInputText = _styledComponents.default.p`
color: ${({
theme
}) => theme.text};
`;
const StyledMotionFileInputList = exports.StyledMotionFileInputList = (0, _styledComponents.default)(_react.motion.div)``;
//# sourceMappingURL=FileInput.styles.js.map