@tenancy.nz/ui 1.0.3 → 1.0.5
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/cjs/components/Alert.cjs +6 -11
- package/dist/cjs/components/Autocomplete.cjs +32 -34
- package/dist/cjs/components/Avatar.cjs +2 -5
- package/dist/cjs/components/AvatarCropDialog.cjs +40 -48
- package/dist/cjs/components/AvatarInput.cjs +86 -110
- package/dist/cjs/components/Badge.cjs +2 -5
- package/dist/cjs/components/BankAccountInput.cjs +74 -81
- package/dist/cjs/components/Bar.cjs +4 -6
- package/dist/cjs/components/BaseModal.cjs +3 -5
- package/dist/cjs/components/BooleanInput.cjs +37 -44
- package/dist/cjs/components/BorderedGrid.cjs +7 -9
- package/dist/cjs/components/Box.cjs +2 -5
- package/dist/cjs/components/Button.cjs +2 -5
- package/dist/cjs/components/Card.cjs +12 -21
- package/dist/cjs/components/CardContent.cjs +2 -5
- package/dist/cjs/components/Checkbox.cjs +14 -19
- package/dist/cjs/components/CircularProgress.cjs +2 -3
- package/dist/cjs/components/CollapsedText.cjs +29 -38
- package/dist/cjs/components/Confirmation.cjs +19 -26
- package/dist/cjs/components/Container.cjs +2 -5
- package/dist/cjs/components/CroppedImageInput.cjs +145 -167
- package/dist/cjs/components/CroppedImageInputActions.cjs +30 -39
- package/dist/cjs/components/DateInput.cjs +71 -79
- package/dist/cjs/components/DateNumberInput.cjs +49 -51
- package/dist/cjs/components/DatePicker.cjs +36 -41
- package/dist/cjs/components/DateSelect.cjs +100 -111
- package/dist/cjs/components/Divider.cjs +2 -3
- package/dist/cjs/components/DropZone.cjs +96 -112
- package/dist/cjs/components/Embed.cjs +11 -15
- package/dist/cjs/components/FileUpload.cjs +105 -126
- package/dist/cjs/components/FileUploadButton.cjs +9 -14
- package/dist/cjs/components/FileUploadButtonLoader.cjs +4 -5
- package/dist/cjs/components/FileViewer.cjs +50 -69
- package/dist/cjs/components/FlashMessage.cjs +7 -11
- package/dist/cjs/components/FormControl.cjs +45 -52
- package/dist/cjs/components/FormFocus.cjs +2 -3
- package/dist/cjs/components/FormLabel.cjs +1 -4
- package/dist/cjs/components/Grid.cjs +8 -14
- package/dist/cjs/components/Heading.cjs +3 -5
- package/dist/cjs/components/IconButton.cjs +2 -5
- package/dist/cjs/components/Icons.cjs +22 -41
- package/dist/cjs/components/LinearProgress.cjs +2 -3
- package/dist/cjs/components/Link.cjs +2 -5
- package/dist/cjs/components/Media.cjs +7 -10
- package/dist/cjs/components/Modal.cjs +23 -30
- package/dist/cjs/components/ModalActions.cjs +3 -5
- package/dist/cjs/components/ModalContent.cjs +3 -5
- package/dist/cjs/components/ModalHeader.cjs +10 -17
- package/dist/cjs/components/Nameplate.cjs +39 -64
- package/dist/cjs/components/Pagination.cjs +12 -17
- package/dist/cjs/components/Paper.cjs +3 -5
- package/dist/cjs/components/Popper.cjs +13 -17
- package/dist/cjs/components/PropertyCard.cjs +62 -90
- package/dist/cjs/components/Radio.cjs +14 -19
- package/dist/cjs/components/Rating.cjs +2 -3
- package/dist/cjs/components/Select.cjs +17 -24
- package/dist/cjs/components/Skeleton.cjs +3 -5
- package/dist/cjs/components/StatusMessage.cjs +3 -5
- package/dist/cjs/components/StepIcon.cjs +13 -20
- package/dist/cjs/components/Stepper.cjs +29 -35
- package/dist/cjs/components/SuccessModal.cjs +7 -16
- package/dist/cjs/components/Switch.cjs +17 -21
- package/dist/cjs/components/Tab.cjs +2 -3
- package/dist/cjs/components/TabPanel.cjs +4 -6
- package/dist/cjs/components/Table.cjs +2 -5
- package/dist/cjs/components/TableBody.cjs +2 -5
- package/dist/cjs/components/TableCell.cjs +2 -5
- package/dist/cjs/components/TableContainer.cjs +2 -5
- package/dist/cjs/components/TableFooter.cjs +2 -5
- package/dist/cjs/components/TableHead.cjs +2 -5
- package/dist/cjs/components/TableRow.cjs +2 -5
- package/dist/cjs/components/Tabs.cjs +4 -6
- package/dist/cjs/components/Tag.cjs +8 -16
- package/dist/cjs/components/Text.cjs +3 -5
- package/dist/cjs/components/TextInput.cjs +39 -47
- package/dist/cjs/components/ThemeProvider.cjs +8 -15
- package/dist/cjs/components/TimeInput.cjs +63 -71
- package/dist/cjs/components/Tooltip.cjs +5 -9
- package/dist/esm/components/Alert.js +6 -11
- package/dist/esm/components/Autocomplete.js +33 -35
- package/dist/esm/components/Avatar.js +2 -5
- package/dist/esm/components/AvatarCropDialog.js +41 -49
- package/dist/esm/components/AvatarInput.js +87 -111
- package/dist/esm/components/Badge.js +2 -5
- package/dist/esm/components/BankAccountInput.js +75 -82
- package/dist/esm/components/Bar.js +4 -6
- package/dist/esm/components/BaseModal.js +3 -5
- package/dist/esm/components/BooleanInput.js +38 -45
- package/dist/esm/components/BorderedGrid.js +7 -9
- package/dist/esm/components/Box.js +3 -6
- package/dist/esm/components/Button.js +2 -5
- package/dist/esm/components/Card.js +12 -21
- package/dist/esm/components/CardContent.js +2 -5
- package/dist/esm/components/Checkbox.js +14 -19
- package/dist/esm/components/CircularProgress.js +2 -3
- package/dist/esm/components/CollapsedText.js +30 -39
- package/dist/esm/components/Confirmation.js +19 -26
- package/dist/esm/components/Container.js +2 -5
- package/dist/esm/components/CroppedImageInput.js +146 -168
- package/dist/esm/components/CroppedImageInputActions.js +30 -39
- package/dist/esm/components/DateInput.js +72 -80
- package/dist/esm/components/DateNumberInput.js +50 -52
- package/dist/esm/components/DatePicker.js +37 -42
- package/dist/esm/components/DateSelect.js +95 -106
- package/dist/esm/components/Divider.js +2 -3
- package/dist/esm/components/DropZone.js +96 -112
- package/dist/esm/components/Embed.js +11 -15
- package/dist/esm/components/FileUpload.js +106 -127
- package/dist/esm/components/FileUploadButton.js +10 -15
- package/dist/esm/components/FileUploadButtonLoader.js +4 -5
- package/dist/esm/components/FileViewer.js +50 -69
- package/dist/esm/components/FlashMessage.js +7 -11
- package/dist/esm/components/FormControl.js +43 -50
- package/dist/esm/components/FormFocus.js +2 -3
- package/dist/esm/components/FormLabel.js +1 -4
- package/dist/esm/components/Grid.js +8 -14
- package/dist/esm/components/Heading.js +3 -5
- package/dist/esm/components/IconButton.js +2 -5
- package/dist/esm/components/Icons.js +22 -41
- package/dist/esm/components/LinearProgress.js +2 -3
- package/dist/esm/components/Link.js +2 -5
- package/dist/esm/components/Media.js +7 -10
- package/dist/esm/components/Modal.js +23 -30
- package/dist/esm/components/ModalActions.js +3 -5
- package/dist/esm/components/ModalContent.js +3 -5
- package/dist/esm/components/ModalHeader.js +10 -17
- package/dist/esm/components/Nameplate.js +39 -64
- package/dist/esm/components/Pagination.js +12 -17
- package/dist/esm/components/Paper.js +3 -5
- package/dist/esm/components/Popper.js +14 -18
- package/dist/esm/components/PropertyCard.js +62 -90
- package/dist/esm/components/Radio.js +14 -19
- package/dist/esm/components/Rating.js +2 -3
- package/dist/esm/components/Select.js +17 -24
- package/dist/esm/components/Skeleton.js +3 -5
- package/dist/esm/components/StatusMessage.js +3 -5
- package/dist/esm/components/StepIcon.js +13 -20
- package/dist/esm/components/Stepper.js +29 -35
- package/dist/esm/components/SuccessModal.js +8 -17
- package/dist/esm/components/Switch.js +17 -21
- package/dist/esm/components/Tab.js +2 -3
- package/dist/esm/components/TabPanel.js +4 -6
- package/dist/esm/components/Table.js +2 -5
- package/dist/esm/components/TableBody.js +2 -5
- package/dist/esm/components/TableCell.js +2 -5
- package/dist/esm/components/TableContainer.js +2 -5
- package/dist/esm/components/TableFooter.js +2 -5
- package/dist/esm/components/TableHead.js +2 -5
- package/dist/esm/components/TableRow.js +2 -5
- package/dist/esm/components/Tabs.js +4 -6
- package/dist/esm/components/Tag.js +8 -16
- package/dist/esm/components/Text.js +3 -5
- package/dist/esm/components/TextInput.js +36 -44
- package/dist/esm/components/ThemeProvider.js +8 -15
- package/dist/esm/components/TimeInput.js +64 -72
- package/dist/esm/components/Tooltip.js +5 -9
- package/package.json +3 -3
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import
|
|
4
|
-
import 'react';
|
|
3
|
+
import React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import MuiGrid from '@mui/material/GridLegacy';
|
|
7
6
|
import { useTheme } from '@mui/material/styles';
|
|
@@ -17,22 +16,17 @@ function Grid(_ref) {
|
|
|
17
16
|
container = _ref$container === void 0 ? false : _ref$container,
|
|
18
17
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
18
|
var theme = useTheme();
|
|
20
|
-
return marginFix && spacing && container ? /* @__PURE__ */
|
|
19
|
+
return marginFix && spacing && container ? /* @__PURE__ */React.createElement("div", {
|
|
21
20
|
style: {
|
|
22
21
|
padding: "".concat(theme.spacing(spacing))
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
children: children
|
|
29
|
-
}))
|
|
30
|
-
}) : /* @__PURE__ */jsx(MuiGrid, _objectSpread2(_objectSpread2({
|
|
22
|
+
}
|
|
23
|
+
}, /* @__PURE__ */React.createElement(MuiGrid, _objectSpread2({
|
|
24
|
+
container: true,
|
|
25
|
+
spacing: spacing
|
|
26
|
+
}, rest), children)) : /* @__PURE__ */React.createElement(MuiGrid, _objectSpread2({
|
|
31
27
|
spacing: spacing,
|
|
32
28
|
container: container
|
|
33
|
-
}, rest),
|
|
34
|
-
children: children
|
|
35
|
-
}));
|
|
29
|
+
}, rest), children);
|
|
36
30
|
}
|
|
37
31
|
Grid.propTypes = {
|
|
38
32
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
3
|
import Typography from '@mui/material/Typography';
|
|
5
4
|
|
|
6
5
|
var _excluded = ["as", "children", "color", "italic", "transform", "weight", "sx"];
|
|
@@ -25,14 +24,13 @@ function Heading(_ref) {
|
|
|
25
24
|
}), transform && {
|
|
26
25
|
textTransform: transform
|
|
27
26
|
});
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */React.createElement(Typography, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
29
28
|
color: color,
|
|
30
29
|
component: as,
|
|
31
30
|
variant: as,
|
|
32
31
|
paragraph: false,
|
|
33
|
-
sx: _objectSpread2(_objectSpread2({}, textStyles), sx)
|
|
34
|
-
|
|
35
|
-
}));
|
|
32
|
+
sx: _objectSpread2(_objectSpread2({}, textStyles), sx)
|
|
33
|
+
}), children);
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
export { Heading as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
3
|
import StyledIconButton from './IconButton.styled.js';
|
|
5
4
|
|
|
6
5
|
var _excluded = ["children", "color", "edges", "disabled", "size"];
|
|
@@ -18,14 +17,12 @@ function IconButton(_ref) {
|
|
|
18
17
|
var rest = _objectSpread2({
|
|
19
18
|
size: size
|
|
20
19
|
}, others);
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */React.createElement(StyledIconButton, _objectSpread2({
|
|
22
21
|
type: "button",
|
|
23
22
|
color: color,
|
|
24
23
|
edges: edges,
|
|
25
24
|
disabled: disabled
|
|
26
|
-
}, rest),
|
|
27
|
-
children: children
|
|
28
|
-
}));
|
|
25
|
+
}, rest), children);
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
export { IconButton as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import
|
|
4
|
-
import 'react';
|
|
3
|
+
import React from 'react';
|
|
5
4
|
import styled from 'styled-components';
|
|
6
5
|
import AddCircleIcon from '@mui/icons-material/AddCircle';
|
|
7
6
|
import Heading from './Heading.js';
|
|
@@ -11,45 +10,27 @@ import Text from './Text.js';
|
|
|
11
10
|
var _templateObject;
|
|
12
11
|
var Code = styled.code(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n line-height: 1;\n margin: 0 2px;\n padding: 3px 5px;\n white-space: nowrap;\n border-radius: 3px;\n font-size: 13px;\n border: 1px solid #eeeeee;\n color: rgba(51, 51, 51, 0.9);\n background-color: #f8f8f8;\n"])));
|
|
13
12
|
function Icons() {
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children: "Basic usage"
|
|
36
|
-
}), /* @__PURE__ */jsx(Text, {
|
|
37
|
-
as: "div",
|
|
38
|
-
children: /* @__PURE__ */jsx(Code, {
|
|
39
|
-
children: "import AddCircleIcon from '@mui/icons-material/AddCircle';"
|
|
40
|
-
})
|
|
41
|
-
}), /* @__PURE__ */jsx(Text, {
|
|
42
|
-
as: "div",
|
|
43
|
-
paragraph: false,
|
|
44
|
-
children: /* @__PURE__ */jsxs(Fragment, {
|
|
45
|
-
children: [/* @__PURE__ */jsx(AddCircleIcon, {}), " ", /* @__PURE__ */jsx(Text, {
|
|
46
|
-
as: "span",
|
|
47
|
-
paragraph: false,
|
|
48
|
-
children: "Add Circle Icon"
|
|
49
|
-
})]
|
|
50
|
-
})
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
13
|
+
return /* @__PURE__ */React.createElement("div", null, /* @__PURE__ */React.createElement(Heading, {
|
|
14
|
+
as: "h3"
|
|
15
|
+
}, "Icons"), /* @__PURE__ */React.createElement(Text, {
|
|
16
|
+
color: "inherit"
|
|
17
|
+
}, "This design system uses ", /* @__PURE__ */React.createElement(Code, null, "@mui/icons-material"), ", which includes the 1,100+ official Material icons converted to ", /* @__PURE__ */React.createElement(Code, null, "SvgIcon"), " ", "components."), /* @__PURE__ */React.createElement(Text, {
|
|
18
|
+
color: "inherit"
|
|
19
|
+
}, "Visit", " ", /* @__PURE__ */React.createElement(Link, {
|
|
20
|
+
href: "https://material-ui.com/components/material-icons/",
|
|
21
|
+
target: "_blank",
|
|
22
|
+
rel: "noreferrer"
|
|
23
|
+
}, "Material UI Documentation"), " ", "for full list and examples."), /* @__PURE__ */React.createElement("br", null), /* @__PURE__ */React.createElement(Heading, {
|
|
24
|
+
as: "h5"
|
|
25
|
+
}, "Basic usage"), /* @__PURE__ */React.createElement(Text, {
|
|
26
|
+
as: "div"
|
|
27
|
+
}, /* @__PURE__ */React.createElement(Code, null, "import AddCircleIcon from '@mui/icons-material/AddCircle';")), /* @__PURE__ */React.createElement(Text, {
|
|
28
|
+
as: "div",
|
|
29
|
+
paragraph: false
|
|
30
|
+
}, /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(AddCircleIcon, null), " ", /* @__PURE__ */React.createElement(Text, {
|
|
31
|
+
as: "span",
|
|
32
|
+
paragraph: false
|
|
33
|
+
}, "Add Circle Icon"))));
|
|
53
34
|
}
|
|
54
35
|
|
|
55
36
|
export { Icons as default };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { extends as _extends, objectDestructuringEmpty as _objectDestructuringEmpty, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import
|
|
4
|
-
import 'react';
|
|
3
|
+
import React from 'react';
|
|
5
4
|
import LinearProgress$1 from '@mui/material/LinearProgress';
|
|
6
5
|
|
|
7
6
|
function LinearProgress(_ref) {
|
|
8
7
|
var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */React.createElement(LinearProgress$1, _objectSpread2({}, rest));
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
export { LinearProgress as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import
|
|
4
|
-
import 'react';
|
|
3
|
+
import React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import { StyledLink } from './Link.styled.js';
|
|
7
6
|
|
|
@@ -17,9 +16,7 @@ function Link(_ref) {
|
|
|
17
16
|
color: color,
|
|
18
17
|
underline: underline
|
|
19
18
|
}, others);
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
children: children
|
|
22
|
-
}));
|
|
19
|
+
return /* @__PURE__ */React.createElement(StyledLink, _objectSpread2({}, rest), children);
|
|
23
20
|
}
|
|
24
21
|
Link.propTypes = {
|
|
25
22
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import 'react';
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import { StyledMediaEl, StyledMediaSkeleton, StyledMedia } from './Media.styled.js';
|
|
6
5
|
|
|
@@ -12,14 +11,12 @@ function Media(_ref) {
|
|
|
12
11
|
src = _ref.src,
|
|
13
12
|
_ref$title = _ref.title,
|
|
14
13
|
title = _ref$title === void 0 ? "" : _ref$title;
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})]
|
|
22
|
-
});
|
|
14
|
+
return /* @__PURE__ */React.createElement(StyledMediaEl, null, skeleton && /* @__PURE__ */React.createElement(StyledMediaSkeleton, null), /* @__PURE__ */React.createElement(StyledMedia, {
|
|
15
|
+
as: as,
|
|
16
|
+
src: !skeleton ? src : "",
|
|
17
|
+
title: title,
|
|
18
|
+
alt: as === "img" ? title : ""
|
|
19
|
+
}));
|
|
23
20
|
}
|
|
24
21
|
Media.propTypes = {
|
|
25
22
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
3
|
import BaseModal from './BaseModal.js';
|
|
5
4
|
import Heading from './Heading.js';
|
|
6
5
|
import LinearProgress from './LinearProgress.js';
|
|
@@ -33,12 +32,11 @@ function Modal(_ref) {
|
|
|
33
32
|
onClose(e);
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
|
-
var header = isString(heading) ? /* @__PURE__ */
|
|
35
|
+
var header = isString(heading) ? /* @__PURE__ */React.createElement(Heading, {
|
|
37
36
|
as: "h3",
|
|
38
|
-
gutterBottom: false
|
|
39
|
-
|
|
40
|
-
})
|
|
41
|
-
return /* @__PURE__ */jsxs(BaseModal, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
37
|
+
gutterBottom: false
|
|
38
|
+
}, heading) : heading;
|
|
39
|
+
return /* @__PURE__ */React.createElement(BaseModal, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
42
40
|
onClose: handleClose,
|
|
43
41
|
slotProps: {
|
|
44
42
|
paper: {
|
|
@@ -49,30 +47,25 @@ function Modal(_ref) {
|
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}), loading && /* @__PURE__ */jsx(ModalContent, {
|
|
72
|
-
disableGutter: true,
|
|
73
|
-
children: /* @__PURE__ */jsx(LinearProgress, {})
|
|
74
|
-
})]
|
|
75
|
-
}));
|
|
50
|
+
}
|
|
51
|
+
}), heading && /* @__PURE__ */React.createElement(ModalHeader, {
|
|
52
|
+
onClose: handleClose
|
|
53
|
+
}, loading && /* @__PURE__ */React.createElement(Skeleton, {
|
|
54
|
+
variant: "text",
|
|
55
|
+
height: 20,
|
|
56
|
+
width: 250
|
|
57
|
+
}), !loading && header), !loading && /* @__PURE__ */React.createElement(ModalContent, {
|
|
58
|
+
disableGutter: true
|
|
59
|
+
}, children, content), actions && /* @__PURE__ */React.createElement(ModalActions, {
|
|
60
|
+
sx: {
|
|
61
|
+
marginTop: {
|
|
62
|
+
xs: "20px",
|
|
63
|
+
md: "40px"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, actions), loading && /* @__PURE__ */React.createElement(ModalContent, {
|
|
67
|
+
disableGutter: true
|
|
68
|
+
}, /* @__PURE__ */React.createElement(LinearProgress, null)));
|
|
76
69
|
}
|
|
77
70
|
|
|
78
71
|
export { Modal as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
3
|
import DialogActions from '@mui/material/DialogActions';
|
|
5
4
|
|
|
6
5
|
function ModalActions(_ref) {
|
|
@@ -16,11 +15,10 @@ function ModalActions(_ref) {
|
|
|
16
15
|
}, gutter && {
|
|
17
16
|
gap: "8px"
|
|
18
17
|
}), sx);
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */React.createElement(DialogActions, {
|
|
20
19
|
disableSpacing: !gutter,
|
|
21
|
-
sx: styles
|
|
22
|
-
|
|
23
|
-
});
|
|
20
|
+
sx: styles
|
|
21
|
+
}, children);
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
export { ModalActions as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import DialogContent from '@mui/material/DialogContent';
|
|
6
5
|
|
|
@@ -13,11 +12,10 @@ function ModalContent(_ref) {
|
|
|
13
12
|
var styles = _objectSpread2(_objectSpread2({}, disableGutter && {
|
|
14
13
|
padding: 0
|
|
15
14
|
}), sx);
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */React.createElement(DialogContent, {
|
|
17
16
|
dividers: false,
|
|
18
|
-
sx: styles
|
|
19
|
-
|
|
20
|
-
});
|
|
17
|
+
sx: styles
|
|
18
|
+
}, children);
|
|
21
19
|
}
|
|
22
20
|
ModalContent.propTypes = {
|
|
23
21
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
3
|
import { Close } from '@mui/icons-material';
|
|
5
4
|
import Box from './Box.js';
|
|
6
5
|
import IconButton from './IconButton.js';
|
|
@@ -14,22 +13,16 @@ function ModalHeader(_ref) {
|
|
|
14
13
|
_ref$onClose = _ref.onClose,
|
|
15
14
|
onClose = _ref$onClose === void 0 ? void 0 : _ref$onClose,
|
|
16
15
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
size: "small",
|
|
28
|
-
onClick: onClose,
|
|
29
|
-
children: !closeIcon ? /* @__PURE__ */jsx(Close, {}) : closeIcon
|
|
30
|
-
})
|
|
31
|
-
})]
|
|
32
|
-
}));
|
|
16
|
+
return /* @__PURE__ */React.createElement(StyledModalHeader, _objectSpread2({}, rest), /* @__PURE__ */React.createElement(Box, {
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
width: "100%",
|
|
19
|
+
marginRight: "8px",
|
|
20
|
+
marginLeft: "0px"
|
|
21
|
+
}, children), onClose && /* @__PURE__ */React.createElement(Box, null, /* @__PURE__ */React.createElement(IconButton, {
|
|
22
|
+
color: "inherit",
|
|
23
|
+
size: "small",
|
|
24
|
+
onClick: onClose
|
|
25
|
+
}, !closeIcon ? /* @__PURE__ */React.createElement(Close, null) : closeIcon)));
|
|
33
26
|
}
|
|
34
27
|
|
|
35
28
|
export { ModalHeader as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import
|
|
4
|
-
import 'react';
|
|
3
|
+
import React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import Skeleton from '@mui/material/Skeleton';
|
|
7
6
|
import MuiContainer from '@mui/material/Container';
|
|
@@ -27,68 +26,44 @@ function Nameplate(_ref) {
|
|
|
27
26
|
var isMobile = useMediaQuery(function (theme) {
|
|
28
27
|
return theme.breakpoints.down("sm");
|
|
29
28
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
children: title
|
|
69
|
-
})
|
|
70
|
-
}), !isMobile && title]
|
|
71
|
-
}), /* @__PURE__ */jsxs(Heading, {
|
|
72
|
-
as: isMobile ? "h5" : "h3",
|
|
73
|
-
weight: "400",
|
|
74
|
-
color: "textPrimary",
|
|
75
|
-
gutterBottom: false,
|
|
76
|
-
children: [heading, subHeading && /* @__PURE__ */jsxs(Fragment, {
|
|
77
|
-
children: [/* @__PURE__ */jsx("br", {}), " ", subHeading]
|
|
78
|
-
})]
|
|
79
|
-
})]
|
|
80
|
-
}), /* @__PURE__ */jsxs(StyledImgWrapper, {
|
|
81
|
-
children: [logo && /* @__PURE__ */jsx(StyledImg, {
|
|
82
|
-
src: logo,
|
|
83
|
-
alt: heading
|
|
84
|
-
}), !logo && heading && /* @__PURE__ */jsx(StyledImgText, {
|
|
85
|
-
children: heading[0].toUpperCase()
|
|
86
|
-
})]
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
89
|
-
})
|
|
90
|
-
}))
|
|
91
|
-
});
|
|
29
|
+
return /* @__PURE__ */React.createElement(StyledWrapper, null, /* @__PURE__ */React.createElement(MuiContainer, _objectSpread2({
|
|
30
|
+
maxWidth: "lg"
|
|
31
|
+
}, rest), /* @__PURE__ */React.createElement(Box, {
|
|
32
|
+
sx: {
|
|
33
|
+
display: "flex",
|
|
34
|
+
justifyContent: "space-between",
|
|
35
|
+
flexWrap: "nowrap",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
px: isMobile ? 2 : 0,
|
|
38
|
+
py: 4
|
|
39
|
+
}
|
|
40
|
+
}, skeleton ? /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("div", {
|
|
41
|
+
style: {
|
|
42
|
+
flexGrow: 1
|
|
43
|
+
}
|
|
44
|
+
}, /* @__PURE__ */React.createElement(Skeleton, {
|
|
45
|
+
width: isMobile ? "80%" : "40%",
|
|
46
|
+
height: isMobile ? 22 : 30
|
|
47
|
+
}), /* @__PURE__ */React.createElement(Skeleton, {
|
|
48
|
+
width: isMobile ? "60%" : "30%",
|
|
49
|
+
height: isMobile ? 22 : 30
|
|
50
|
+
})), /* @__PURE__ */React.createElement(Skeleton, {
|
|
51
|
+
variant: "rect",
|
|
52
|
+
height: 100,
|
|
53
|
+
width: 100
|
|
54
|
+
})) : /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("div", null, title && /* @__PURE__ */React.createElement(Text, {
|
|
55
|
+
color: "textSecondary",
|
|
56
|
+
variant: "body1",
|
|
57
|
+
weight: "600"
|
|
58
|
+
}, isMobile && /* @__PURE__ */React.createElement("small", null, /* @__PURE__ */React.createElement("small", null, title)), !isMobile && title), /* @__PURE__ */React.createElement(Heading, {
|
|
59
|
+
as: isMobile ? "h5" : "h3",
|
|
60
|
+
weight: "400",
|
|
61
|
+
color: "textPrimary",
|
|
62
|
+
gutterBottom: false
|
|
63
|
+
}, heading, subHeading && /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("br", null), " ", subHeading))), /* @__PURE__ */React.createElement(StyledImgWrapper, null, logo && /* @__PURE__ */React.createElement(StyledImg, {
|
|
64
|
+
src: logo,
|
|
65
|
+
alt: heading
|
|
66
|
+
}), !logo && heading && /* @__PURE__ */React.createElement(StyledImgText, null, heading[0].toUpperCase()))))));
|
|
92
67
|
}
|
|
93
68
|
Nameplate.propTypes = {
|
|
94
69
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import
|
|
4
|
-
import 'react';
|
|
3
|
+
import React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import uuid from 'react-uuid';
|
|
7
6
|
import usePagination from '@mui/material/usePagination';
|
|
@@ -23,7 +22,7 @@ var getLabel = function getLabel(type) {
|
|
|
23
22
|
return "Next";
|
|
24
23
|
}
|
|
25
24
|
if (type === "start-ellipsis" || type === "end-ellipsis") {
|
|
26
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */React.createElement(MoreHorizIcon, {
|
|
27
26
|
fontSize: "inherit"
|
|
28
27
|
});
|
|
29
28
|
}
|
|
@@ -73,20 +72,16 @@ function Pagination(_ref) {
|
|
|
73
72
|
showLastButton: showFirstLastButtons
|
|
74
73
|
})),
|
|
75
74
|
items = _usePagination.items;
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}))
|
|
87
|
-
}, uuid(item));
|
|
88
|
-
})
|
|
89
|
-
});
|
|
75
|
+
return /* @__PURE__ */React.createElement(StyledList, null, items.map(function (item) {
|
|
76
|
+
return /* @__PURE__ */React.createElement(StyledListItem, {
|
|
77
|
+
key: uuid(item)
|
|
78
|
+
}, /* @__PURE__ */React.createElement(StyledButton, _objectSpread2({
|
|
79
|
+
color: color,
|
|
80
|
+
shape: shape,
|
|
81
|
+
size: size,
|
|
82
|
+
type: item.type
|
|
83
|
+
}, item), item.type !== "page" && getLabel(item.type), item.type === "page" && item.page));
|
|
84
|
+
}));
|
|
90
85
|
}
|
|
91
86
|
Pagination.propTypes = {
|
|
92
87
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import StyledPaper from './Paper.styled.js';
|
|
4
3
|
|
|
5
4
|
function Paper(_ref) {
|
|
@@ -18,16 +17,15 @@ function Paper(_ref) {
|
|
|
18
17
|
rounded = _ref$rounded === void 0 ? true : _ref$rounded,
|
|
19
18
|
_ref$sx = _ref.sx,
|
|
20
19
|
sx = _ref$sx === void 0 ? {} : _ref$sx;
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */React.createElement(StyledPaper, {
|
|
22
21
|
elevate: outlined ? false : elevate,
|
|
23
22
|
fill: fill,
|
|
24
23
|
inset: inset,
|
|
25
24
|
outlined: outlined,
|
|
26
25
|
rounded: rounded,
|
|
27
26
|
noOverflow: !overflow,
|
|
28
|
-
sx: sx
|
|
29
|
-
|
|
30
|
-
});
|
|
27
|
+
sx: sx
|
|
28
|
+
}, children);
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
export { Paper as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import {
|
|
4
|
-
import { forwardRef } from 'react';
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import MuiPopper from '@mui/material/Popper';
|
|
7
6
|
import MuiFade from '@mui/material/Fade';
|
|
@@ -9,7 +8,7 @@ import MuiPaper from '@mui/material/Paper';
|
|
|
9
8
|
|
|
10
9
|
var _excluded = ["children", "anchorEl", "open", "disablePortal", "placement"];
|
|
11
10
|
function Popper(_ref, ref) {
|
|
12
|
-
var
|
|
11
|
+
var children = _ref.children,
|
|
13
12
|
_ref$anchorEl = _ref.anchorEl,
|
|
14
13
|
anchorEl = _ref$anchorEl === void 0 ? null : _ref$anchorEl,
|
|
15
14
|
_ref$open = _ref.open,
|
|
@@ -25,26 +24,23 @@ function Popper(_ref, ref) {
|
|
|
25
24
|
disablePortal: disablePortal,
|
|
26
25
|
placement: placement
|
|
27
26
|
}, others);
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */React.createElement(MuiPopper, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
29
28
|
transition: true,
|
|
30
29
|
ref: ref,
|
|
31
30
|
style: {
|
|
32
31
|
zIndex: 9999
|
|
33
|
-
},
|
|
34
|
-
children: function children(_ref2) {
|
|
35
|
-
var TransitionProps = _ref2.TransitionProps;
|
|
36
|
-
return /* @__PURE__ */jsx(MuiFade, _objectSpread2(_objectSpread2({}, TransitionProps), {}, {
|
|
37
|
-
timeout: 350,
|
|
38
|
-
children: /* @__PURE__ */jsx(MuiPaper, {
|
|
39
|
-
elevation: 3,
|
|
40
|
-
style: {
|
|
41
|
-
margin: 5
|
|
42
|
-
},
|
|
43
|
-
children: _children
|
|
44
|
-
})
|
|
45
|
-
}));
|
|
46
32
|
}
|
|
47
|
-
}))
|
|
33
|
+
}), function (_ref2) {
|
|
34
|
+
var TransitionProps = _ref2.TransitionProps;
|
|
35
|
+
return /* @__PURE__ */React.createElement(MuiFade, _objectSpread2(_objectSpread2({}, TransitionProps), {}, {
|
|
36
|
+
timeout: 350
|
|
37
|
+
}), /* @__PURE__ */React.createElement(MuiPaper, {
|
|
38
|
+
elevation: 3,
|
|
39
|
+
style: {
|
|
40
|
+
margin: 5
|
|
41
|
+
}
|
|
42
|
+
}, children));
|
|
43
|
+
});
|
|
48
44
|
}
|
|
49
45
|
Popper.propTypes = {
|
|
50
46
|
/**
|