@norges-domstoler/dds-components 0.0.0-dev-20240314094855 → 0.0.0-dev-20240314100410
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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
|
@@ -8660,7 +8660,8 @@ var FileUploader = (props) => {
|
|
|
8660
8660
|
disabled,
|
|
8661
8661
|
onChange,
|
|
8662
8662
|
width,
|
|
8663
|
-
errorMessage
|
|
8663
|
+
errorMessage,
|
|
8664
|
+
hideFileList
|
|
8664
8665
|
} = props;
|
|
8665
8666
|
const generatedId = (0, import_react63.useId)();
|
|
8666
8667
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
@@ -8748,7 +8749,7 @@ var FileUploader = (props) => {
|
|
|
8748
8749
|
button3
|
|
8749
8750
|
] }),
|
|
8750
8751
|
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(ErrorList, { errors: rootErrorsList }),
|
|
8751
|
-
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FileListElement, { children: fileListElements })
|
|
8752
|
+
!hideFileList && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FileListElement, { children: fileListElements })
|
|
8752
8753
|
] });
|
|
8753
8754
|
};
|
|
8754
8755
|
FileUploader.displayName = "FileUploader";
|