@norges-domstoler/dds-components 0.0.0-dev-20240314094855 → 0.0.0-dev-20240319071429
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.
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -2030,6 +2030,8 @@ type FileUploaderProps = {
|
|
|
2030
2030
|
width?: Property.Width<string>;
|
|
2031
2031
|
/**Om drag-and-drop zone skal vises. */
|
|
2032
2032
|
withDragAndDrop?: boolean;
|
|
2033
|
+
/**Om listen med opplastede filer skal skjules. Brukes kun hvis listen blir vist på egen måte. */
|
|
2034
|
+
hideFileList?: boolean;
|
|
2033
2035
|
} & Partial<FileUploaderHookProps>;
|
|
2034
2036
|
declare const FileUploader: {
|
|
2035
2037
|
(props: FileUploaderProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -2030,6 +2030,8 @@ type FileUploaderProps = {
|
|
|
2030
2030
|
width?: Property.Width<string>;
|
|
2031
2031
|
/**Om drag-and-drop zone skal vises. */
|
|
2032
2032
|
withDragAndDrop?: boolean;
|
|
2033
|
+
/**Om listen med opplastede filer skal skjules. Brukes kun hvis listen blir vist på egen måte. */
|
|
2034
|
+
hideFileList?: boolean;
|
|
2033
2035
|
} & Partial<FileUploaderHookProps>;
|
|
2034
2036
|
declare const FileUploader: {
|
|
2035
2037
|
(props: FileUploaderProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
@@ -8660,7 +8661,8 @@ var FileUploader = (props) => {
|
|
|
8660
8661
|
disabled,
|
|
8661
8662
|
onChange,
|
|
8662
8663
|
width,
|
|
8663
|
-
errorMessage
|
|
8664
|
+
errorMessage,
|
|
8665
|
+
hideFileList
|
|
8664
8666
|
} = props;
|
|
8665
8667
|
const generatedId = (0, import_react63.useId)();
|
|
8666
8668
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
@@ -8748,7 +8750,7 @@ var FileUploader = (props) => {
|
|
|
8748
8750
|
button3
|
|
8749
8751
|
] }),
|
|
8750
8752
|
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(ErrorList, { errors: rootErrorsList }),
|
|
8751
|
-
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FileListElement, { children: fileListElements })
|
|
8753
|
+
!hideFileList && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FileListElement, { children: fileListElements })
|
|
8752
8754
|
] });
|
|
8753
8755
|
};
|
|
8754
8756
|
FileUploader.displayName = "FileUploader";
|