@selfcommunity/react-ui 0.7.50-events.28 → 0.7.50-events.36

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,5 @@
1
+ interface CalendarProps {
2
+ day: number;
3
+ }
4
+ export default function Calendar(props: CalendarProps): JSX.Element;
5
+ export {};
@@ -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,5 @@
1
+ interface CalendarProps {
2
+ day: number;
3
+ }
4
+ export default function Calendar(props: CalendarProps): JSX.Element;
5
+ export {};
@@ -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.28+b25030de1",
3
+ "version": "0.7.50-events.36+e4686835e",
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,10 +91,10 @@
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": "^0.4.50-events.28+b25030de1",
95
- "@selfcommunity/react-core": "^0.4.50-events.28+b25030de1",
96
- "@selfcommunity/react-i18n": "^0.5.50-events.28+b25030de1",
97
- "@selfcommunity/types": "^0.5.50-events.28+b25030de1",
94
+ "@selfcommunity/api-services": "^0.4.55",
95
+ "@selfcommunity/react-core": "^0.4.55",
96
+ "@selfcommunity/react-i18n": "^0.5.55",
97
+ "@selfcommunity/types": "^0.5.55",
98
98
  "@selfcommunity/utils": "^0.2.55",
99
99
  "@types/classnames": "^2.3.1",
100
100
  "@types/sortablejs": "1",
@@ -177,5 +177,5 @@
177
177
  "bugs": {
178
178
  "url": "https://github.com/selfcommunity/community-js/issues"
179
179
  },
180
- "gitHead": "b25030de12d55aaa79a5831559fd862bdcb3262e"
180
+ "gitHead": "e4686835e1235002b694748c95f697aa7dd12e7c"
181
181
  }