@selfcommunity/react-ui 0.5.7-alpha.6 → 0.5.7-alpha.8
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/lib/cjs/components/Footer/Footer.d.ts.map +1 -1
- package/lib/cjs/components/Footer/Footer.js +8 -38
- package/lib/cjs/components/Footer/Footer.js.map +1 -1
- package/lib/esm/components/Footer/Footer.d.ts.map +1 -1
- package/lib/esm/components/Footer/Footer.js +8 -38
- package/lib/esm/components/Footer/Footer.js.map +1 -1
- package/lib/umd/react-ui.js +7 -7
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +5 -5
- package/lib/cjs/components/Footer/DetailDialog/index.d.ts +0 -23
- package/lib/cjs/components/Footer/DetailDialog/index.d.ts.map +0 -1
- package/lib/cjs/components/Footer/DetailDialog/index.js +0 -44
- package/lib/cjs/components/Footer/DetailDialog/index.js.map +0 -1
- package/lib/esm/components/Footer/DetailDialog/index.d.ts +0 -23
- package/lib/esm/components/Footer/DetailDialog/index.d.ts.map +0 -1
- package/lib/esm/components/Footer/DetailDialog/index.js +0 -38
- package/lib/esm/components/Footer/DetailDialog/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfcommunity/react-ui",
|
|
3
|
-
"version": "0.5.7-alpha.
|
|
3
|
+
"version": "0.5.7-alpha.8",
|
|
4
4
|
"description": "React UI Components to integrate a Community created with SelfCommunity.",
|
|
5
5
|
"author": "SelfCommunity <https://www.selfcommunity.com>",
|
|
6
6
|
"homepage": "https://www.selfcommunity.com",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@rpldy/upload-drop-zone": "^1.1.0",
|
|
68
68
|
"@rpldy/upload-preview": "^1.1.0",
|
|
69
69
|
"@rpldy/uploady": "^1.1.0",
|
|
70
|
-
"@selfcommunity/api-services": "^0.3.4-alpha.
|
|
71
|
-
"@selfcommunity/react-core": "^0.3.7-alpha.
|
|
72
|
-
"@selfcommunity/react-i18n": "^0.3.7-alpha.
|
|
70
|
+
"@selfcommunity/api-services": "^0.3.4-alpha.4",
|
|
71
|
+
"@selfcommunity/react-core": "^0.3.7-alpha.5",
|
|
72
|
+
"@selfcommunity/react-i18n": "^0.3.7-alpha.1",
|
|
73
73
|
"@selfcommunity/types": "^0.3.4-alpha.1",
|
|
74
74
|
"@selfcommunity/utils": "^0.1.42-alpha.0",
|
|
75
75
|
"@types/classnames": "^2.2.11",
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
"bugs": {
|
|
157
157
|
"url": "https://github.com/selfcommunity/community-js/issues"
|
|
158
158
|
},
|
|
159
|
-
"gitHead": "
|
|
159
|
+
"gitHead": "e4362695bff1566670e7b82c3a8784c9dae34bf6"
|
|
160
160
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface DetailDialogProps {
|
|
2
|
-
/**
|
|
3
|
-
* The page obj
|
|
4
|
-
*/
|
|
5
|
-
pageObj: any;
|
|
6
|
-
/**
|
|
7
|
-
* Overrides or extends the styles applied to the component.
|
|
8
|
-
* @default null
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Opens dialog
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
open: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* On dialog close callback function
|
|
18
|
-
* @default null
|
|
19
|
-
*/
|
|
20
|
-
onClose?: () => void;
|
|
21
|
-
}
|
|
22
|
-
export default function DetailDialog(inProps: DetailDialogProps): JSX.Element;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Footer/DetailDialog/index.tsx"],"names":[],"mappings":"AAmBA,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAc5E"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
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
|
-
const react_1 = __importDefault(require("react"));
|
|
18
|
-
const styles_1 = require("@mui/material/styles");
|
|
19
|
-
const material_1 = require("@mui/material");
|
|
20
|
-
const BaseDialog_1 = __importDefault(require("../../../shared/BaseDialog"));
|
|
21
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
22
|
-
const system_1 = require("@mui/system");
|
|
23
|
-
const PREFIX = 'SCDetailDialog';
|
|
24
|
-
const classes = {
|
|
25
|
-
root: `${PREFIX}-root`
|
|
26
|
-
};
|
|
27
|
-
const Root = (0, styles_1.styled)(BaseDialog_1.default, {
|
|
28
|
-
name: PREFIX,
|
|
29
|
-
slot: 'Root',
|
|
30
|
-
overridesResolver: (props, styles) => styles.root
|
|
31
|
-
})(({ theme }) => ({}));
|
|
32
|
-
function DetailDialog(inProps) {
|
|
33
|
-
// PROPS
|
|
34
|
-
const props = (0, system_1.useThemeProps)({
|
|
35
|
-
props: inProps,
|
|
36
|
-
name: PREFIX
|
|
37
|
-
});
|
|
38
|
-
const { pageObj, className, open, onClose } = props, rest = __rest(props, ["pageObj", "className", "open", "onClose"]);
|
|
39
|
-
// RENDER
|
|
40
|
-
return (react_1.default.createElement(Root, Object.assign({ title: pageObj.label, open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className) }, rest),
|
|
41
|
-
react_1.default.createElement(material_1.Box, { dangerouslySetInnerHTML: { __html: pageObj.html_body !== '<p></p>' ? pageObj.html_body : pageObj.html_summary } })));
|
|
42
|
-
}
|
|
43
|
-
exports.default = DetailDialog;
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Footer/DetailDialog/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,iDAA4C;AAC5C,4CAA6C;AAC7C,4EAAoD;AACpD,4DAAoC;AACpC,wCAA0C;AAE1C,MAAM,MAAM,GAAG,gBAAgB,CAAC;AAEhC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,oBAAU,EAAE;IAC9B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAwBtB,SAAwB,YAAY,CAAC,OAA0B;IAC7D,QAAQ;IACR,MAAM,KAAK,GAAsB,IAAA,sBAAa,EAAC;QAC7C,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;KACb,CAAC,CAAC;IACH,MAAM,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,KAAa,KAAK,EAAb,IAAI,UAAI,KAAK,EAApD,2CAA4C,CAAQ,CAAC;IAE3D,SAAS;IACT,OAAO,CACL,8BAAC,IAAI,kBAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAM,IAAI;QAChH,8BAAC,cAAG,IAAC,uBAAuB,EAAE,EAAC,MAAM,EAAE,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,EAAC,GAAI,CACjH,CACR,CAAC;AACJ,CAAC;AAdD,+BAcC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface DetailDialogProps {
|
|
2
|
-
/**
|
|
3
|
-
* The page obj
|
|
4
|
-
*/
|
|
5
|
-
pageObj: any;
|
|
6
|
-
/**
|
|
7
|
-
* Overrides or extends the styles applied to the component.
|
|
8
|
-
* @default null
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Opens dialog
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
open: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* On dialog close callback function
|
|
18
|
-
* @default null
|
|
19
|
-
*/
|
|
20
|
-
onClose?: () => void;
|
|
21
|
-
}
|
|
22
|
-
export default function DetailDialog(inProps: DetailDialogProps): JSX.Element;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Footer/DetailDialog/index.tsx"],"names":[],"mappings":"AAmBA,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAc5E"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { styled } from '@mui/material/styles';
|
|
14
|
-
import { Box } from '@mui/material';
|
|
15
|
-
import BaseDialog from '../../../shared/BaseDialog';
|
|
16
|
-
import classNames from 'classnames';
|
|
17
|
-
import { useThemeProps } from '@mui/system';
|
|
18
|
-
const PREFIX = 'SCDetailDialog';
|
|
19
|
-
const classes = {
|
|
20
|
-
root: `${PREFIX}-root`
|
|
21
|
-
};
|
|
22
|
-
const Root = styled(BaseDialog, {
|
|
23
|
-
name: PREFIX,
|
|
24
|
-
slot: 'Root',
|
|
25
|
-
overridesResolver: (props, styles) => styles.root
|
|
26
|
-
})(({ theme }) => ({}));
|
|
27
|
-
export default function DetailDialog(inProps) {
|
|
28
|
-
// PROPS
|
|
29
|
-
const props = useThemeProps({
|
|
30
|
-
props: inProps,
|
|
31
|
-
name: PREFIX
|
|
32
|
-
});
|
|
33
|
-
const { pageObj, className, open, onClose } = props, rest = __rest(props, ["pageObj", "className", "open", "onClose"]);
|
|
34
|
-
// RENDER
|
|
35
|
-
return (React.createElement(Root, Object.assign({ title: pageObj.label, open: open, onClose: onClose, className: classNames(classes.root, className) }, rest),
|
|
36
|
-
React.createElement(Box, { dangerouslySetInnerHTML: { __html: pageObj.html_body !== '<p></p>' ? pageObj.html_body : pageObj.html_summary } })));
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Footer/DetailDialog/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAY,GAAG,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,UAAU,MAAM,4BAA4B,CAAC;AACpD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1C,MAAM,MAAM,GAAG,gBAAgB,CAAC;AAEhC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE;IAC9B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAwBtB,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAA0B;IAC7D,QAAQ;IACR,MAAM,KAAK,GAAsB,aAAa,CAAC;QAC7C,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;KACb,CAAC,CAAC;IACH,MAAM,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,KAAa,KAAK,EAAb,IAAI,UAAI,KAAK,EAApD,2CAA4C,CAAQ,CAAC;IAE3D,SAAS;IACT,OAAO,CACL,oBAAC,IAAI,kBAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAM,IAAI;QAChH,oBAAC,GAAG,IAAC,uBAAuB,EAAE,EAAC,MAAM,EAAE,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,EAAC,GAAI,CACjH,CACR,CAAC;AACJ,CAAC"}
|