dibk-design 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,7 +86,7 @@ var DragAndDropFileInput = function DragAndDropFileInput(props) {
|
|
|
86
86
|
htmlFor: props.id
|
|
87
87
|
}, props.label, props.required && _react.default.createElement("span", {
|
|
88
88
|
className: _DragAndDropFileInputModule.default.requiredSymbol
|
|
89
|
-
}, "*"), !props.contentOnly ? _react.default.createElement("div", {
|
|
89
|
+
}, "*")), _react.default.createElement("div", null, props.children), !props.contentOnly ? _react.default.createElement("div", {
|
|
90
90
|
ref: containerElementRef,
|
|
91
91
|
className: "".concat(_DragAndDropFileInputModule.default.dragAndDropContainer, " ").concat(highlight ? _DragAndDropFileInputModule.default.highlighted : "")
|
|
92
92
|
}, props.selectedFileName ? _react.default.createElement("div", null, _react.default.createElement("span", null, _react.default.createElement("b", null, "Valgt fil:"), " ", props.selectedFileName)) : _react.default.createElement("div", null, "Slipp fil her"), _react.default.createElement("input", _extends({}, inputElementProps, {
|
|
@@ -102,7 +102,7 @@ var DragAndDropFileInput = function DragAndDropFileInput(props) {
|
|
|
102
102
|
},
|
|
103
103
|
content: buttonContent,
|
|
104
104
|
hasErrors: props.hasErrors
|
|
105
|
-
})) : null) : null
|
|
105
|
+
})) : null) : null, props.contentOnly ? _react.default.createElement("span", null, renderValueAsText(props.selectedFileName, props.defaultContent)) : "", _react.default.createElement(_ErrorMessage.default, {
|
|
106
106
|
id: getErrorElementId(),
|
|
107
107
|
content: props.errorMessage,
|
|
108
108
|
theme: props.theme
|