@amsterdam/bmi-component-library
Version:
A React component library based on ASC and Material-UI aimed at repurposing and sharing components across BMI projects
2 lines • 4.33 kB
JavaScript
;Object.defineProperty(exports,"__esModule",{value:true});function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:true,get:all[name]})}_export(exports,{FileUploadStyle:function(){return FileUploadStyle},FileUploadPlaceholderWrapper:function(){return FileUploadPlaceholderWrapper},FileUploadPlaceholderTextCss:function(){return FileUploadPlaceholderTextCss},FileUploadPlaceholderStyle:function(){return FileUploadPlaceholderStyle},FileUploadSelectFilesButtonStyle:function(){return FileUploadSelectFilesButtonStyle},FileUploadContentStyle:function(){return FileUploadContentStyle}});var _styledcomponents=_interop_require_wildcard(require("styled-components"));var _ascui=require("@amsterdam/asc-ui");var _FileListStyles=require("./FileList/FileListStyles");function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap;var cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interop_require_wildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj}}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj.default=obj;if(cache){cache.set(obj,newObj)}return newObj}function _tagged_template_literal(strings,raw){if(!raw){raw=strings.slice(0)}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _templateObject(){var data=_tagged_template_literal(["\n flex: 1;\n display: flex;\n flex-direction: column;\n min-width: 70px;\n padding: ",";\n border: 1px dashed ",";\n border-radius: 0;\n outline: none;\n"]);_templateObject=function _templateObject(){return data};return data}function _templateObject1(){var data=_tagged_template_literal(["\n display: flex;\n gap: ",";\n"]);_templateObject1=function _templateObject(){return data};return data}function _templateObject2(){var data=_tagged_template_literal(["\n font-weight: 400;\n font-size: 18px;\n line-height: 160%;\n color: ",";\n"]);_templateObject2=function _templateObject(){return data};return data}function _templateObject3(){var data=_tagged_template_literal(["\n ","\n padding-right: ",";\n display: none;\n\n @media screen and (",") {\n display: inline;\n }\n"]);_templateObject3=function _templateObject(){return data};return data}function _templateObject4(){var data=_tagged_template_literal(["\n ","\n\n display: inline-block;\n color: ",";\n text-decoration: underline;\n"]);_templateObject4=function _templateObject(){return data};return data}function _templateObject5(){var data=_tagged_template_literal(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n "," {\n display: none;\n }\n\n ",":not(:empty) {\n display: block;\n margin-top: ",";\n }\n"]);_templateObject5=function _templateObject(){return data};return data}var FileUploadStyle=_styledcomponents.default.div(_templateObject(),(0,_ascui.themeSpacing)(6),(0,_ascui.themeColor)("tint","level6"));var FileUploadPlaceholderWrapper=_styledcomponents.default.div(_templateObject1(),(0,_ascui.themeSpacing)(2));var FileUploadPlaceholderTextCss=(0,_styledcomponents.css)(_templateObject2(),(0,_ascui.themeColor)("tint","level7"));var FileUploadPlaceholderStyle=_styledcomponents.default.span(_templateObject3(),FileUploadPlaceholderTextCss,(0,_ascui.themeSpacing)(1),(0,_ascui.breakpoint)("min-width","laptop"));var FileUploadSelectFilesButtonStyle=(0,_styledcomponents.default)(_ascui.Button)(_templateObject4(),FileUploadPlaceholderTextCss,(0,_ascui.themeColor)("primary"));var FileUploadContentStyle=_styledcomponents.default.div(_templateObject5(),_FileListStyles.FileListStyle,_FileListStyles.FileListStyle,(0,_ascui.themeSpacing)(6));
//# sourceMappingURL=FileUploadStyles.js.map