@uxf/cms 4.0.0-beta.8 → 4.0.0-beta.9
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/package.json
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Content, ContentComponent, ContentProps } from "../types";
|
2
|
+
import { FileResponse } from "../../../ui/FileUploadInput";
|
3
|
+
export declare type GalleryFormData = {
|
4
|
+
images?: FileResponse[];
|
5
|
+
};
|
6
|
+
export declare type GalleryContent = Content<"gallery", GalleryFormData>;
|
7
|
+
declare type Props = ContentProps;
|
8
|
+
export declare const Gallery: ContentComponent<GalleryContent, Props>;
|
9
|
+
export {};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
exports.Gallery = void 0;
|
18
|
+
var react_1 = __importDefault(require("react"));
|
19
|
+
var ContentHeader_1 = require("../ContentHeader");
|
20
|
+
var DropZone_1 = require("../../../forms/components/DropZone");
|
21
|
+
var Gallery = function (props) {
|
22
|
+
var name = props.name;
|
23
|
+
return (react_1.default.createElement("div", null,
|
24
|
+
react_1.default.createElement("div", { className: "pb-4" },
|
25
|
+
react_1.default.createElement(ContentHeader_1.ContentHeader, __assign({}, props))),
|
26
|
+
react_1.default.createElement("div", { className: "mt-2" },
|
27
|
+
react_1.default.createElement(DropZone_1.DropZone, { name: "".concat(name, ".images") }))));
|
28
|
+
};
|
29
|
+
exports.Gallery = Gallery;
|
30
|
+
exports.Gallery.getConfig = function () { return ({
|
31
|
+
type: "gallery",
|
32
|
+
label: "Galerie",
|
33
|
+
}); };
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2FsbGVyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWdlcy9Db250ZW50QnVpbGRlci9jb250ZW50L0dhbGxlcnkudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsZ0RBQTBCO0FBRTFCLGtEQUFpRDtBQUVqRCwrREFBOEQ7QUFVdkQsSUFBTSxPQUFPLEdBQTRDLFVBQUMsS0FBSztJQUMxRCxJQUFBLElBQUksR0FBSyxLQUFLLEtBQVYsQ0FBVztJQUV2QixPQUFPLENBQ0g7UUFDSSx1Q0FBSyxTQUFTLEVBQUMsTUFBTTtZQUNqQiw4QkFBQyw2QkFBYSxlQUFLLEtBQUssRUFBSSxDQUMxQjtRQUNOLHVDQUFLLFNBQVMsRUFBQyxNQUFNO1lBQ2pCLDhCQUFDLG1CQUFRLElBQUMsSUFBSSxFQUFFLFVBQUcsSUFBSSxZQUFTLEdBQUksQ0FDbEMsQ0FDSixDQUNULENBQUM7QUFDTixDQUFDLENBQUM7QUFiVyxRQUFBLE9BQU8sV0FhbEI7QUFFRixlQUFPLENBQUMsU0FBUyxHQUFHLGNBQU0sT0FBQSxDQUFDO0lBQ3ZCLElBQUksRUFBRSxTQUFTO0lBQ2YsS0FBSyxFQUFFLFNBQVM7Q0FDbkIsQ0FBQyxFQUh3QixDQUd4QixDQUFDIn0=
|