@tenancy.nz/ui 1.0.4 → 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 +1 -1
|
@@ -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 };
|
|
@@ -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 { ThemeProvider as ThemeProvider$2 } from '@emotion/react';
|
|
7
6
|
import { ThemeProvider as ThemeProvider$1 } from 'styled-components';
|
|
@@ -20,19 +19,13 @@ function ThemeProvider(_ref) {
|
|
|
20
19
|
cssVarPrefix: "tn"
|
|
21
20
|
}
|
|
22
21
|
}));
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, rest), {}, {
|
|
31
|
-
children: [/* @__PURE__ */jsx(CssBaseline, {}), children]
|
|
32
|
-
}))
|
|
33
|
-
})
|
|
34
|
-
})
|
|
35
|
-
});
|
|
22
|
+
return /* @__PURE__ */React.createElement(StyledEngineProvider, null, /* @__PURE__ */React.createElement(ThemeProvider$1, {
|
|
23
|
+
theme: mergedTheme
|
|
24
|
+
}, /* @__PURE__ */React.createElement(ThemeProvider$2, {
|
|
25
|
+
theme: mergedTheme
|
|
26
|
+
}, /* @__PURE__ */React.createElement(ThemeProvider$3, _objectSpread2({
|
|
27
|
+
theme: mergedTheme
|
|
28
|
+
}, rest), /* @__PURE__ */React.createElement(CssBaseline, null), children))));
|
|
36
29
|
}
|
|
37
30
|
ThemeProvider.propTypes = {
|
|
38
31
|
theme: PropTypes.shape({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, defineProperty as _defineProperty } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import {
|
|
4
|
-
import { useRef, useState, useEffect } from 'react';
|
|
3
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import FormControl from './FormControl.js';
|
|
7
6
|
import Select from './Select.js';
|
|
@@ -78,7 +77,7 @@ function TimeInput(_ref) {
|
|
|
78
77
|
setValues(newValues);
|
|
79
78
|
onChange(evt);
|
|
80
79
|
};
|
|
81
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */React.createElement(FormControl, {
|
|
82
81
|
fullWidth: fullWidth,
|
|
83
82
|
name: name,
|
|
84
83
|
label: label,
|
|
@@ -88,75 +87,68 @@ function TimeInput(_ref) {
|
|
|
88
87
|
required: required,
|
|
89
88
|
showError: showError,
|
|
90
89
|
errorMessage: errorMessage,
|
|
91
|
-
edges: "normal"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
onChange: function onChange(e) {
|
|
154
|
-
handleChange(e, "meridian");
|
|
155
|
-
}
|
|
156
|
-
})
|
|
157
|
-
})]
|
|
158
|
-
})]
|
|
159
|
-
});
|
|
90
|
+
edges: "normal"
|
|
91
|
+
}, /* @__PURE__ */React.createElement("input", {
|
|
92
|
+
defaultValue: rest.defaultValue || value,
|
|
93
|
+
name: name,
|
|
94
|
+
ref: inputRef,
|
|
95
|
+
style: {
|
|
96
|
+
height: 0,
|
|
97
|
+
width: 0,
|
|
98
|
+
appearance: "none",
|
|
99
|
+
border: "none",
|
|
100
|
+
outline: "none",
|
|
101
|
+
margin: 0,
|
|
102
|
+
padding: 0
|
|
103
|
+
}
|
|
104
|
+
}), /* @__PURE__ */React.createElement(StyledContainer, {
|
|
105
|
+
size: size
|
|
106
|
+
}, /* @__PURE__ */React.createElement(StyledSelect, {
|
|
107
|
+
required: required,
|
|
108
|
+
size: size,
|
|
109
|
+
value: inputRef.current ? inputRef.current.value : value
|
|
110
|
+
}, /* @__PURE__ */React.createElement(Select, {
|
|
111
|
+
disabled: disabled,
|
|
112
|
+
name: "".concat(name, "_hours"),
|
|
113
|
+
placeholder: "HH",
|
|
114
|
+
required: required,
|
|
115
|
+
native: true,
|
|
116
|
+
options: hourOptions,
|
|
117
|
+
value: values.hour,
|
|
118
|
+
onChange: function onChange(e) {
|
|
119
|
+
handleChange(e, "hour");
|
|
120
|
+
}
|
|
121
|
+
})), /* @__PURE__ */React.createElement(StyledSpacer, null, ":"), /* @__PURE__ */React.createElement(StyledSelect, {
|
|
122
|
+
required: required,
|
|
123
|
+
size: size,
|
|
124
|
+
value: inputRef.current ? inputRef.current.value : value
|
|
125
|
+
}, /* @__PURE__ */React.createElement(Select, {
|
|
126
|
+
disabled: disabled,
|
|
127
|
+
name: "".concat(name, "_minutes"),
|
|
128
|
+
placeholder: "MM",
|
|
129
|
+
required: required,
|
|
130
|
+
native: true,
|
|
131
|
+
options: minuteOptions,
|
|
132
|
+
value: values.minute,
|
|
133
|
+
onChange: function onChange(e) {
|
|
134
|
+
handleChange(e, "minute");
|
|
135
|
+
}
|
|
136
|
+
})), /* @__PURE__ */React.createElement(StyledSpacer, null), /* @__PURE__ */React.createElement(StyledSelect, {
|
|
137
|
+
required: required,
|
|
138
|
+
size: size,
|
|
139
|
+
value: inputRef.current ? inputRef.current.value : value
|
|
140
|
+
}, /* @__PURE__ */React.createElement(Select, {
|
|
141
|
+
disabled: disabled,
|
|
142
|
+
name: "".concat(name, "_meridian"),
|
|
143
|
+
placeholder: "AM",
|
|
144
|
+
required: required,
|
|
145
|
+
native: true,
|
|
146
|
+
options: meridianOptions,
|
|
147
|
+
value: values.meridian,
|
|
148
|
+
onChange: function onChange(e) {
|
|
149
|
+
handleChange(e, "meridian");
|
|
150
|
+
}
|
|
151
|
+
}))));
|
|
160
152
|
}
|
|
161
153
|
TimeInput.propTypes = {
|
|
162
154
|
/**
|
|
@@ -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 Box from './Box.js';
|
|
5
4
|
import StyledTooltip from './Tooltip.styled.js';
|
|
6
5
|
|
|
@@ -40,17 +39,14 @@ function Tooltip(_ref) {
|
|
|
40
39
|
leaveTouchDelay: leaveTouchDelay,
|
|
41
40
|
placement: placement
|
|
42
41
|
}, others);
|
|
43
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */React.createElement(StyledTooltip, _objectSpread2({
|
|
44
43
|
classes: {
|
|
45
44
|
popper: className
|
|
46
45
|
}
|
|
47
|
-
}, rest),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
children: children
|
|
52
|
-
})
|
|
53
|
-
}));
|
|
46
|
+
}, rest), /* @__PURE__ */React.createElement(Box, {
|
|
47
|
+
display: "inline-flex",
|
|
48
|
+
sx: boxProps
|
|
49
|
+
}, children));
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
export { Tooltip as default };
|