@selfcommunity/react-ui 0.7.50-events.34 → 0.7.50-events.38
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.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const PREFIX = 'SCCalendar';
|
|
7
|
+
const Root = (0, material_1.styled)(material_1.Stack, {
|
|
8
|
+
name: PREFIX,
|
|
9
|
+
slot: 'Root',
|
|
10
|
+
overridesResolver: (_props, styles) => styles.root
|
|
11
|
+
})();
|
|
12
|
+
function Calendar(props) {
|
|
13
|
+
const day = props.day;
|
|
14
|
+
return (react_1.default.createElement(Root, { gap: "7px", position: "absolute", bottom: "-36px", left: "24px", width: "60px", height: "60px", borderRadius: "5px", boxShadow: "0px 3px 8px #00000040", bgcolor: "#fff", overflow: "hidden" },
|
|
15
|
+
react_1.default.createElement(material_1.Box, { width: "100%", height: "16px", bgcolor: "#b20404" }),
|
|
16
|
+
react_1.default.createElement(material_1.Typography, { variant: "h2", textAlign: "center" }, day)));
|
|
17
|
+
}
|
|
18
|
+
exports.default = Calendar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, Stack, styled, Typography } from '@mui/material';
|
|
3
|
+
const PREFIX = 'SCCalendar';
|
|
4
|
+
const Root = styled(Stack, {
|
|
5
|
+
name: PREFIX,
|
|
6
|
+
slot: 'Root',
|
|
7
|
+
overridesResolver: (_props, styles) => styles.root
|
|
8
|
+
})();
|
|
9
|
+
export default function Calendar(props) {
|
|
10
|
+
const day = props.day;
|
|
11
|
+
return (React.createElement(Root, { gap: "7px", position: "absolute", bottom: "-36px", left: "24px", width: "60px", height: "60px", borderRadius: "5px", boxShadow: "0px 3px 8px #00000040", bgcolor: "#fff", overflow: "hidden" },
|
|
12
|
+
React.createElement(Box, { width: "100%", height: "16px", bgcolor: "#b20404" }),
|
|
13
|
+
React.createElement(Typography, { variant: "h2", textAlign: "center" }, day)));
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfcommunity/react-ui",
|
|
3
|
-
"version": "0.7.50-events.
|
|
3
|
+
"version": "0.7.50-events.38+942fda048",
|
|
4
4
|
"description": "React UI Components to integrate a Community created with SelfCommunity Platform.",
|
|
5
5
|
"author": "SelfCommunity <https://www.selfcommunity.com>",
|
|
6
6
|
"homepage": "https://www.selfcommunity.com",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"@rpldy/upload-drop-zone": "^1.7.1",
|
|
92
92
|
"@rpldy/upload-preview": "^1.7.1",
|
|
93
93
|
"@rpldy/uploady": "^1.7.1",
|
|
94
|
-
"@selfcommunity/api-services": "
|
|
95
|
-
"@selfcommunity/react-core": "
|
|
96
|
-
"@selfcommunity/react-i18n": "
|
|
97
|
-
"@selfcommunity/types": "
|
|
98
|
-
"@selfcommunity/utils": "
|
|
94
|
+
"@selfcommunity/api-services": "0.4.50-events.38+942fda048",
|
|
95
|
+
"@selfcommunity/react-core": "0.4.50-events.38+942fda048",
|
|
96
|
+
"@selfcommunity/react-i18n": "0.5.50-events.38+942fda048",
|
|
97
|
+
"@selfcommunity/types": "0.5.50-events.38+942fda048",
|
|
98
|
+
"@selfcommunity/utils": "0.2.50-events.38+942fda048",
|
|
99
99
|
"@types/classnames": "^2.3.1",
|
|
100
100
|
"@types/sortablejs": "1",
|
|
101
101
|
"autosuggest-highlight": "^3.3.4",
|
|
@@ -177,5 +177,5 @@
|
|
|
177
177
|
"bugs": {
|
|
178
178
|
"url": "https://github.com/selfcommunity/community-js/issues"
|
|
179
179
|
},
|
|
180
|
-
"gitHead": "
|
|
180
|
+
"gitHead": "942fda048a961a8177dbeef8682ea8c980992b87"
|
|
181
181
|
}
|