@tenancy.nz/ui 1.0.4 → 1.0.6
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/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/cjs/index.cjs +0 -2
- 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/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/dist/esm/index.js +0 -1
- package/package.json +1 -1
- package/dist/cjs/components/DatePicker.cjs +0 -167
- package/dist/cjs/components/DatePicker.styled.cjs +0 -22
- package/dist/esm/components/DatePicker.js +0 -163
- package/dist/esm/components/DatePicker.styled.js +0 -20
|
@@ -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 Alert from './Alert.js';
|
|
5
4
|
|
|
6
5
|
function StatusMessage(_ref) {
|
|
@@ -18,11 +17,10 @@ function StatusMessage(_ref) {
|
|
|
18
17
|
color: "".concat(color, ".main")
|
|
19
18
|
}
|
|
20
19
|
}, sx);
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */React.createElement(Alert, {
|
|
22
21
|
variant: "standard",
|
|
23
|
-
sx: styles
|
|
24
|
-
|
|
25
|
-
});
|
|
22
|
+
sx: styles
|
|
23
|
+
}, children);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
export { StatusMessage as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { 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 useMediaQuery from '@mui/material/useMediaQuery';
|
|
7
6
|
import CheckIcon from '@mui/icons-material/Check';
|
|
@@ -21,25 +20,19 @@ function StepIcon(_ref) {
|
|
|
21
20
|
error: error,
|
|
22
21
|
isMobile: isMobile
|
|
23
22
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return /* @__PURE__ */jsx(StyledText, _objectSpread2(_objectSpread2({
|
|
28
|
-
align: "center"
|
|
29
|
-
}, commonProps), {}, {
|
|
30
|
-
children: "!"
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
if (completed && !active) {
|
|
34
|
-
return /* @__PURE__ */jsx(CheckIcon, {});
|
|
35
|
-
}
|
|
36
|
-
return /* @__PURE__ */jsx(StyledText, _objectSpread2(_objectSpread2({
|
|
23
|
+
return /* @__PURE__ */React.createElement(StyledContainer, _objectSpread2({}, commonProps), function () {
|
|
24
|
+
if (error) {
|
|
25
|
+
return /* @__PURE__ */React.createElement(StyledText, _objectSpread2({
|
|
37
26
|
align: "center"
|
|
38
|
-
}, commonProps),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
}, commonProps), "!");
|
|
28
|
+
}
|
|
29
|
+
if (completed && !active) {
|
|
30
|
+
return /* @__PURE__ */React.createElement(CheckIcon, null);
|
|
31
|
+
}
|
|
32
|
+
return /* @__PURE__ */React.createElement(StyledText, _objectSpread2({
|
|
33
|
+
align: "center"
|
|
34
|
+
}, commonProps), icon);
|
|
35
|
+
}());
|
|
43
36
|
}
|
|
44
37
|
StepIcon.propTypes = {
|
|
45
38
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import StepButton from '@mui/material/StepButton';
|
|
@@ -33,40 +32,35 @@ function Stepper(_ref) {
|
|
|
33
32
|
onChange(step);
|
|
34
33
|
};
|
|
35
34
|
};
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
isMobile: isMobile
|
|
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
|
-
}, label);
|
|
67
|
-
})
|
|
68
|
-
}))]
|
|
69
|
-
});
|
|
35
|
+
return /* @__PURE__ */React.createElement(StyledContainer, {
|
|
36
|
+
isMobile: isMobile
|
|
37
|
+
}, isMobile && /* @__PURE__ */React.createElement(Heading, {
|
|
38
|
+
as: "h3",
|
|
39
|
+
align: "center",
|
|
40
|
+
gutterBottom: false
|
|
41
|
+
}, steps[activeStep].label), /* @__PURE__ */React.createElement(MuiStepper, _objectSpread2(_objectSpread2({
|
|
42
|
+
alternativeLabel: true,
|
|
43
|
+
activeStep: activeStep
|
|
44
|
+
}, rest), {}, {
|
|
45
|
+
style: {
|
|
46
|
+
padding: isMobile ? "18px 0" : "5px 0px 24px 0px"
|
|
47
|
+
}
|
|
48
|
+
}), steps.map(function (_ref2, index) {
|
|
49
|
+
var label = _ref2.label,
|
|
50
|
+
error = _ref2.error,
|
|
51
|
+
completed = _ref2.completed,
|
|
52
|
+
disabled = _ref2.disabled;
|
|
53
|
+
return /* @__PURE__ */React.createElement(Step, {
|
|
54
|
+
key: label,
|
|
55
|
+
completed: completed,
|
|
56
|
+
disabled: !!disabled
|
|
57
|
+
}, /* @__PURE__ */React.createElement(StepButton, {
|
|
58
|
+
onClick: handleStep(index)
|
|
59
|
+
}, /* @__PURE__ */React.createElement(StepLabel, {
|
|
60
|
+
error: error,
|
|
61
|
+
StepIconComponent: StepIcon
|
|
62
|
+
}, !isMobile && label)));
|
|
63
|
+
})));
|
|
70
64
|
}
|
|
71
65
|
Stepper.propTypes = {
|
|
72
66
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { slicedToArray as _slicedToArray } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import {
|
|
4
|
-
import { useState, useEffect } from 'react';
|
|
3
|
+
import React, { useState, useEffect } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';
|
|
7
6
|
import { StyledContent, StyledIcon } from './SuccessModal.styled.js';
|
|
@@ -28,24 +27,16 @@ function SuccessModal(_ref) {
|
|
|
28
27
|
}, duration);
|
|
29
28
|
}
|
|
30
29
|
}, [duration, show]);
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */React.createElement(Modal, {
|
|
32
31
|
open: isOpen,
|
|
33
32
|
fullWidth: true,
|
|
34
33
|
maxWidth: "sm",
|
|
35
|
-
hideBackdrop: true
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
align: "center",
|
|
42
|
-
as: "h4",
|
|
43
|
-
gutterBottom: false,
|
|
44
|
-
children: message
|
|
45
|
-
})]
|
|
46
|
-
})
|
|
47
|
-
})
|
|
48
|
-
});
|
|
34
|
+
hideBackdrop: true
|
|
35
|
+
}, /* @__PURE__ */React.createElement(ModalContent, null, /* @__PURE__ */React.createElement(StyledContent, null, /* @__PURE__ */React.createElement(StyledIcon, null, /* @__PURE__ */React.createElement(CheckCircleOutlineIcon, null)), /* @__PURE__ */React.createElement(Heading, {
|
|
36
|
+
align: "center",
|
|
37
|
+
as: "h4",
|
|
38
|
+
gutterBottom: false
|
|
39
|
+
}, message))));
|
|
49
40
|
}
|
|
50
41
|
SuccessModal.propTypes = {
|
|
51
42
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
3
|
import FormLabel from './FormLabel.js';
|
|
5
4
|
import { StyledSwitch, StyledSwitchInput, StyledSwitchTrack, StyledSwitchKnob } from './Switch.styled.js';
|
|
6
5
|
|
|
@@ -37,27 +36,24 @@ function Switch(_ref) {
|
|
|
37
36
|
}), value !== void 0 && {
|
|
38
37
|
value: value
|
|
39
38
|
});
|
|
40
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */React.createElement(StyledSwitch, {
|
|
41
40
|
disabled: disabled,
|
|
42
|
-
size: size
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
})
|
|
59
|
-
})]
|
|
60
|
-
});
|
|
41
|
+
size: size
|
|
42
|
+
}, /* @__PURE__ */React.createElement(StyledSwitchInput, _objectSpread2(_objectSpread2({
|
|
43
|
+
color: color,
|
|
44
|
+
name: name,
|
|
45
|
+
size: size
|
|
46
|
+
}, inputProps), {}, {
|
|
47
|
+
type: "checkbox"
|
|
48
|
+
})), label && /* @__PURE__ */React.createElement(FormLabel, {
|
|
49
|
+
required: required,
|
|
50
|
+
margin: "none",
|
|
51
|
+
size: size
|
|
52
|
+
}, label), /* @__PURE__ */React.createElement(StyledSwitchTrack, {
|
|
53
|
+
size: size
|
|
54
|
+
}, /* @__PURE__ */React.createElement(StyledSwitchKnob, {
|
|
55
|
+
size: size
|
|
56
|
+
})));
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
export { Switch 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 { StyledTab } from './Tab.styled.js';
|
|
7
6
|
|
|
@@ -11,7 +10,7 @@ function Tab(_ref) {
|
|
|
11
10
|
_ref$disabled = _ref.disabled,
|
|
12
11
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13
12
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */React.createElement(StyledTab, _objectSpread2(_objectSpread2({
|
|
15
14
|
label: label,
|
|
16
15
|
disabled: disabled
|
|
17
16
|
}, rest), {}, {
|
|
@@ -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 { StyledTabPanel } from './TabPanel.styled.js';
|
|
6
5
|
|
|
@@ -8,11 +7,10 @@ function TabPanel(_ref) {
|
|
|
8
7
|
var children = _ref.children,
|
|
9
8
|
index = _ref.index,
|
|
10
9
|
value = _ref.value;
|
|
11
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */React.createElement(StyledTabPanel, {
|
|
12
11
|
index: index,
|
|
13
|
-
value: value
|
|
14
|
-
|
|
15
|
-
});
|
|
12
|
+
value: value
|
|
13
|
+
}, children);
|
|
16
14
|
}
|
|
17
15
|
TabPanel.propTypes = {
|
|
18
16
|
/**
|
|
@@ -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 MuiTable from '@mui/material/Table';
|
|
7
6
|
|
|
@@ -9,9 +8,7 @@ var _excluded = ["children"];
|
|
|
9
8
|
function Table(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
children: children
|
|
14
|
-
}));
|
|
11
|
+
return /* @__PURE__ */React.createElement(MuiTable, _objectSpread2({}, rest), children);
|
|
15
12
|
}
|
|
16
13
|
Table.propTypes = {
|
|
17
14
|
/**
|
|
@@ -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 MuiTableBody from '@mui/material/TableBody';
|
|
7
6
|
|
|
@@ -9,9 +8,7 @@ var _excluded = ["children"];
|
|
|
9
8
|
function TableBody(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
children: children
|
|
14
|
-
}));
|
|
11
|
+
return /* @__PURE__ */React.createElement(MuiTableBody, _objectSpread2({}, rest), children);
|
|
15
12
|
}
|
|
16
13
|
TableBody.propTypes = {
|
|
17
14
|
/**
|
|
@@ -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 MuiTableCell from '@mui/material/TableCell';
|
|
7
6
|
|
|
@@ -9,9 +8,7 @@ var _excluded = ["children"];
|
|
|
9
8
|
function TableCell(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
children: children
|
|
14
|
-
}));
|
|
11
|
+
return /* @__PURE__ */React.createElement(MuiTableCell, _objectSpread2({}, rest), children);
|
|
15
12
|
}
|
|
16
13
|
TableCell.propTypes = {
|
|
17
14
|
/**
|
|
@@ -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 MuiTableContainer from '@mui/material/TableContainer';
|
|
7
6
|
|
|
@@ -9,9 +8,7 @@ var _excluded = ["children"];
|
|
|
9
8
|
function TableContainer(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
children: children
|
|
14
|
-
}));
|
|
11
|
+
return /* @__PURE__ */React.createElement(MuiTableContainer, _objectSpread2({}, rest), children);
|
|
15
12
|
}
|
|
16
13
|
TableContainer.propTypes = {
|
|
17
14
|
/**
|
|
@@ -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 MuiTableFooter from '@mui/material/TableFooter';
|
|
7
6
|
|
|
@@ -9,9 +8,7 @@ var _excluded = ["children"];
|
|
|
9
8
|
function TableFooter(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
children: children
|
|
14
|
-
}));
|
|
11
|
+
return /* @__PURE__ */React.createElement(MuiTableFooter, _objectSpread2({}, rest), children);
|
|
15
12
|
}
|
|
16
13
|
TableFooter.propTypes = {
|
|
17
14
|
/**
|
|
@@ -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 MuiTableHead from '@mui/material/TableHead';
|
|
7
6
|
|
|
@@ -9,9 +8,7 @@ var _excluded = ["children"];
|
|
|
9
8
|
function TableHead(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
children: children
|
|
14
|
-
}));
|
|
11
|
+
return /* @__PURE__ */React.createElement(MuiTableHead, _objectSpread2({}, rest), children);
|
|
15
12
|
}
|
|
16
13
|
TableHead.propTypes = {
|
|
17
14
|
/**
|
|
@@ -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 MuiTableRow from '@mui/material/TableRow';
|
|
7
6
|
|
|
@@ -9,9 +8,7 @@ var _excluded = ["children"];
|
|
|
9
8
|
function TableRow(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
children: children
|
|
14
|
-
}));
|
|
11
|
+
return /* @__PURE__ */React.createElement(MuiTableRow, _objectSpread2({}, rest), children);
|
|
15
12
|
}
|
|
16
13
|
TableRow.propTypes = {
|
|
17
14
|
/**
|
|
@@ -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 { StyledTabs } from './Tabs.styled.js';
|
|
7
6
|
|
|
@@ -14,13 +13,12 @@ function Tabs(_ref) {
|
|
|
14
13
|
_ref$value = _ref.value,
|
|
15
14
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
16
15
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */React.createElement(StyledTabs, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
18
17
|
action: action,
|
|
19
18
|
value: value,
|
|
20
19
|
activecolor: activecolor,
|
|
21
|
-
textColor: "inherit"
|
|
22
|
-
|
|
23
|
-
}));
|
|
20
|
+
textColor: "inherit"
|
|
21
|
+
}), children);
|
|
24
22
|
}
|
|
25
23
|
Tabs.propTypes = {
|
|
26
24
|
/**
|
|
@@ -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 StyledTag, { StyledTagIcon, StyledTagIconDot } from './Tag.styled.js';
|
|
5
4
|
|
|
6
5
|
var _excluded = ["endIcon", "label", "startIcon", "color", "edges", "size", "variant"];
|
|
@@ -19,25 +18,18 @@ function Tag(_ref) {
|
|
|
19
18
|
_ref$variant = _ref.variant,
|
|
20
19
|
variant = _ref$variant === void 0 ? "standard" : _ref$variant,
|
|
21
20
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */React.createElement(StyledTag, _objectSpread2({
|
|
23
22
|
color: color,
|
|
24
23
|
edges: edges,
|
|
25
24
|
variant: variant,
|
|
26
25
|
size: size
|
|
27
|
-
}, others),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}), /* @__PURE__ */jsx("span", {
|
|
35
|
-
children: label
|
|
36
|
-
}), endIcon && /* @__PURE__ */jsx(StyledTagIcon, {
|
|
37
|
-
size: size,
|
|
38
|
-
children: endIcon
|
|
39
|
-
})]
|
|
40
|
-
}));
|
|
26
|
+
}, others), startIcon && /* @__PURE__ */React.createElement(StyledTagIcon, {
|
|
27
|
+
size: size
|
|
28
|
+
}, startIcon), !startIcon && !endIcon && /* @__PURE__ */React.createElement(StyledTagIcon, {
|
|
29
|
+
size: size
|
|
30
|
+
}, /* @__PURE__ */React.createElement(StyledTagIconDot, null)), /* @__PURE__ */React.createElement("span", null, label), endIcon && /* @__PURE__ */React.createElement(StyledTagIcon, {
|
|
31
|
+
size: size
|
|
32
|
+
}, endIcon));
|
|
41
33
|
}
|
|
42
34
|
|
|
43
35
|
export { Tag 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 Typography from '@mui/material/Typography';
|
|
5
4
|
|
|
6
5
|
var _excluded = ["as", "children", "italic", "transform", "weight", "display", "paragraph", "sx"];
|
|
@@ -35,12 +34,11 @@ function Text(_ref) {
|
|
|
35
34
|
}, textStyles), paragraph && {
|
|
36
35
|
my: "8px"
|
|
37
36
|
}), sx);
|
|
38
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */React.createElement(Typography, _objectSpread2(_objectSpread2({
|
|
39
38
|
component: component
|
|
40
39
|
}, others), {}, {
|
|
41
|
-
sx: styles
|
|
42
|
-
|
|
43
|
-
}));
|
|
40
|
+
sx: styles
|
|
41
|
+
}), children);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
export { Text as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
3
|
import { forwardRef, useState } from 'react';
|
|
5
4
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
6
5
|
import FormControl from './FormControl.js';
|
|
@@ -88,11 +87,10 @@ var TextInput = /*#__PURE__*/forwardRef(function TextInput2(_ref, ref) {
|
|
|
88
87
|
autoFocus: autoFocus,
|
|
89
88
|
color: showError ? "error" : color,
|
|
90
89
|
disabled: disabled,
|
|
91
|
-
endAdornment: endAdornment && /* @__PURE__ */
|
|
90
|
+
endAdornment: endAdornment && /* @__PURE__ */React.createElement(InputAdornment, {
|
|
92
91
|
position: "end",
|
|
93
|
-
variant: "outlined"
|
|
94
|
-
|
|
95
|
-
}),
|
|
92
|
+
variant: "outlined"
|
|
93
|
+
}, endAdornment),
|
|
96
94
|
edges: edges,
|
|
97
95
|
fullWidth: fullWidth,
|
|
98
96
|
id: id || name,
|
|
@@ -104,11 +102,10 @@ var TextInput = /*#__PURE__*/forwardRef(function TextInput2(_ref, ref) {
|
|
|
104
102
|
$error: showError,
|
|
105
103
|
readOnly: readOnly,
|
|
106
104
|
size: size,
|
|
107
|
-
startAdornment: startAdornment && /* @__PURE__ */
|
|
105
|
+
startAdornment: startAdornment && /* @__PURE__ */React.createElement(InputAdornment, {
|
|
108
106
|
position: "start",
|
|
109
|
-
variant: "outlined"
|
|
110
|
-
|
|
111
|
-
}),
|
|
107
|
+
variant: "outlined"
|
|
108
|
+
}, startAdornment),
|
|
112
109
|
type: typeMap[type] || type
|
|
113
110
|
}, multiline && textareaProps), rest), {}, {
|
|
114
111
|
margin: "none"
|
|
@@ -117,36 +114,32 @@ var TextInput = /*#__PURE__*/forwardRef(function TextInput2(_ref, ref) {
|
|
|
117
114
|
var value = event.target.value;
|
|
118
115
|
setNoOfChars(value.length);
|
|
119
116
|
};
|
|
120
|
-
var controlLabel = showCounter ? /* @__PURE__ */
|
|
117
|
+
var controlLabel = showCounter ? /* @__PURE__ */React.createElement(Box, {
|
|
121
118
|
display: "flex",
|
|
122
|
-
mb: "8px"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if (size === "medium") {
|
|
141
|
-
return "".concat(theme.typography.fontSize, "px");
|
|
142
|
-
}
|
|
143
|
-
return null;
|
|
119
|
+
mb: "8px"
|
|
120
|
+
}, /* @__PURE__ */React.createElement(Box, {
|
|
121
|
+
as: "span"
|
|
122
|
+
}, /* @__PURE__ */React.createElement(FormLabel, {
|
|
123
|
+
disabled: disabled,
|
|
124
|
+
htmlFor: id,
|
|
125
|
+
required: required,
|
|
126
|
+
margin: "none",
|
|
127
|
+
size: size
|
|
128
|
+
}, label)), /* @__PURE__ */React.createElement(Box, {
|
|
129
|
+
as: "span",
|
|
130
|
+
sx: {
|
|
131
|
+
color: disabled ? "grey.400" : "grey.600",
|
|
132
|
+
flexShrink: 0,
|
|
133
|
+
ml: "auto",
|
|
134
|
+
fontSize: function fontSize(theme) {
|
|
135
|
+
if (size === "medium") {
|
|
136
|
+
return "".concat(theme.typography.fontSize, "px");
|
|
144
137
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
}) : label;
|
|
149
|
-
return /* @__PURE__ */
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}, noOfChars, maxLength ? " / ".concat(maxLength) : "")) : label;
|
|
142
|
+
return /* @__PURE__ */React.createElement(FormControl, {
|
|
150
143
|
color: color,
|
|
151
144
|
id: props.id,
|
|
152
145
|
label: controlLabel,
|
|
@@ -157,13 +150,12 @@ var TextInput = /*#__PURE__*/forwardRef(function TextInput2(_ref, ref) {
|
|
|
157
150
|
disabled: disabled,
|
|
158
151
|
required: required,
|
|
159
152
|
size: size,
|
|
160
|
-
ref: ref
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
});
|
|
153
|
+
ref: ref
|
|
154
|
+
}, /* @__PURE__ */React.createElement(StyledTextInput, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
155
|
+
error: true
|
|
156
|
+
}, showCounter && {
|
|
157
|
+
onKeyUp: handleChange
|
|
158
|
+
})));
|
|
167
159
|
});
|
|
168
160
|
|
|
169
161
|
export { TextInput as default };
|