@epilot/base-elements 2.7.11 → 2.7.14
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/Accordion/Accordion.d.ts +3 -3
- package/dist/Accordion/Accordion.js +11 -11
- package/dist/Accordion/AccordionActions.d.ts +3 -3
- package/dist/Accordion/AccordionActions.js +11 -11
- package/dist/Accordion/AccordionDetails.d.ts +3 -3
- package/dist/Accordion/AccordionDetails.js +11 -11
- package/dist/Accordion/AccordionSummary.d.ts +3 -3
- package/dist/Accordion/AccordionSummary.js +12 -12
- package/dist/Accordion/index.d.ts +5 -5
- package/dist/Accordion/index.js +8 -8
- package/dist/Accordion/types.d.ts +57 -57
- package/dist/Accordion/types.js +2 -2
- package/dist/AppBar/AppBar.d.ts +4 -4
- package/dist/AppBar/AppBar.js +16 -16
- package/dist/AppBar/index.d.ts +2 -2
- package/dist/AppBar/index.js +5 -5
- package/dist/AppBar/types.d.ts +3 -3
- package/dist/AppBar/types.js +2 -2
- package/dist/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/Autocomplete/Autocomplete.js +48 -48
- package/dist/Autocomplete/index.d.ts +2 -2
- package/dist/Autocomplete/index.js +7 -7
- package/dist/Autocomplete/styles.d.ts +1 -1
- package/dist/Autocomplete/styles.js +14 -14
- package/dist/Autocomplete/types.d.ts +65 -65
- package/dist/Autocomplete/types.js +2 -2
- package/dist/AutocompleteX/AutocompleteX.d.ts +2 -2
- package/dist/AutocompleteX/AutocompleteX.js +5 -5
- package/dist/AutocompleteX/index.d.ts +2 -2
- package/dist/AutocompleteX/index.js +7 -7
- package/dist/AutocompleteX/types.d.ts +6 -6
- package/dist/AutocompleteX/types.js +2 -2
- package/dist/Avatar/Avatar.d.ts +3 -3
- package/dist/Avatar/Avatar.js +27 -27
- package/dist/Avatar/AvatarGroup.d.ts +3 -3
- package/dist/Avatar/AvatarGroup.js +21 -21
- package/dist/Avatar/index.d.ts +3 -3
- package/dist/Avatar/index.js +9 -9
- package/dist/Avatar/types.d.ts +48 -48
- package/dist/Avatar/types.js +2 -2
- package/dist/Badge/Badge.d.ts +3 -3
- package/dist/Badge/Badge.js +11 -11
- package/dist/Badge/index.d.ts +2 -2
- package/dist/Badge/index.js +5 -5
- package/dist/Badge/types.d.ts +2 -2
- package/dist/Badge/types.js +2 -2
- package/dist/Box/Box.d.ts +3 -3
- package/dist/Box/Box.js +11 -11
- package/dist/Box/index.d.ts +2 -2
- package/dist/Box/index.js +5 -5
- package/dist/Box/types.d.ts +2 -2
- package/dist/Box/types.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/dist/Breadcrumbs/Breadcrumbs.js +10 -10
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +7 -7
- package/dist/Breadcrumbs/types.d.ts +2 -2
- package/dist/Breadcrumbs/types.js +2 -2
- package/dist/Button/Button.d.ts +8 -8
- package/dist/Button/Button.js +125 -125
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +5 -5
- package/dist/Button/types.d.ts +21 -21
- package/dist/Button/types.js +2 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +3 -3
- package/dist/ButtonGroup/ButtonGroup.js +11 -11
- package/dist/ButtonGroup/index.d.ts +2 -2
- package/dist/ButtonGroup/index.js +5 -5
- package/dist/ButtonGroup/types.d.ts +37 -37
- package/dist/ButtonGroup/types.js +2 -2
- package/dist/Card/Card.d.ts +8 -8
- package/dist/Card/Card.js +36 -36
- package/dist/Card/index.d.ts +2 -2
- package/dist/Card/index.js +5 -5
- package/dist/Card/types.d.ts +7 -7
- package/dist/Card/types.js +2 -2
- package/dist/Checkbox/Checkbox.d.ts +3 -3
- package/dist/Checkbox/Checkbox.js +27 -27
- package/dist/Checkbox/index.d.ts +2 -2
- package/dist/Checkbox/index.js +5 -5
- package/dist/Checkbox/types.d.ts +84 -84
- package/dist/Checkbox/types.js +2 -2
- package/dist/Chip/Chip.d.ts +3 -3
- package/dist/Chip/Chip.js +16 -16
- package/dist/Chip/RandomColoredChip.d.ts +3 -3
- package/dist/Chip/RandomColoredChip.js +33 -33
- package/dist/Chip/index.d.ts +2 -2
- package/dist/Chip/index.js +5 -5
- package/dist/Chip/types.d.ts +13 -13
- package/dist/Chip/types.js +2 -2
- package/dist/Collapse/Collapse.d.ts +3 -3
- package/dist/Collapse/Collapse.js +11 -11
- package/dist/Collapse/index.d.ts +2 -2
- package/dist/Collapse/index.js +5 -5
- package/dist/Collapse/types.d.ts +2 -2
- package/dist/Collapse/types.js +2 -2
- package/dist/Dialog/Dialog.d.ts +7 -7
- package/dist/Dialog/Dialog.js +31 -31
- package/dist/Dialog/index.d.ts +2 -2
- package/dist/Dialog/index.js +5 -5
- package/dist/Dialog/types.d.ts +157 -157
- package/dist/Dialog/types.js +2 -2
- package/dist/Divider/Divider.d.ts +3 -3
- package/dist/Divider/Divider.js +10 -10
- package/dist/Divider/index.d.ts +2 -2
- package/dist/Divider/index.js +5 -5
- package/dist/Divider/types.d.ts +2 -2
- package/dist/Divider/types.js +2 -2
- package/dist/Drawer/Drawer.d.ts +3 -3
- package/dist/Drawer/Drawer.js +11 -11
- package/dist/Drawer/index.d.ts +2 -2
- package/dist/Drawer/index.js +5 -5
- package/dist/Drawer/types.d.ts +2 -2
- package/dist/Drawer/types.js +2 -2
- package/dist/Drawer360/ActionFooter.d.ts +13 -11
- package/dist/Drawer360/ActionFooter.js +108 -75
- package/dist/Drawer360/ActionFooter.js.map +1 -1
- package/dist/Drawer360/DiscardDialog.d.ts +10 -10
- package/dist/Drawer360/DiscardDialog.js +48 -48
- package/dist/Drawer360/Drawer360.d.ts +3 -3
- package/dist/Drawer360/Drawer360.js +95 -94
- package/dist/Drawer360/Drawer360.js.map +1 -1
- package/dist/Drawer360/helpers.d.ts +3 -3
- package/dist/Drawer360/helpers.js +61 -59
- package/dist/Drawer360/helpers.js.map +1 -1
- package/dist/Drawer360/index.d.ts +2 -2
- package/dist/Drawer360/index.js +5 -5
- package/dist/Drawer360/types.d.ts +30 -27
- package/dist/Drawer360/types.js +2 -2
- package/dist/Form/FormControl.d.ts +2 -2
- package/dist/Form/FormControl.js +4 -4
- package/dist/Form/FormControlLabel.d.ts +2 -2
- package/dist/Form/FormControlLabel.js +4 -4
- package/dist/Form/FormGroup.d.ts +2 -2
- package/dist/Form/FormGroup.js +5 -5
- package/dist/Form/FormHelperText.d.ts +2 -2
- package/dist/Form/FormHelperText.js +4 -4
- package/dist/Form/FormLabel.d.ts +2 -2
- package/dist/Form/FormLabel.js +4 -4
- package/dist/Form/InputAdornment.d.ts +2 -2
- package/dist/Form/InputAdornment.js +4 -4
- package/dist/Form/InputLabel.d.ts +2 -2
- package/dist/Form/InputLabel.js +4 -4
- package/dist/Form/index.d.ts +8 -8
- package/dist/Form/index.js +19 -19
- package/dist/Form/types.d.ts +9 -9
- package/dist/Form/types.js +2 -2
- package/dist/Grid/Grid.d.ts +3 -3
- package/dist/Grid/Grid.js +10 -10
- package/dist/Grid/index.d.ts +2 -2
- package/dist/Grid/index.js +5 -5
- package/dist/Grid/types.d.ts +2 -2
- package/dist/Grid/types.js +2 -2
- package/dist/Hidden/Hidden.d.ts +3 -3
- package/dist/Hidden/Hidden.js +11 -11
- package/dist/Hidden/index.d.ts +2 -2
- package/dist/Hidden/index.js +5 -5
- package/dist/Hidden/types.d.ts +8 -8
- package/dist/Hidden/types.js +2 -2
- package/dist/Icon/Icon.d.ts +5 -5
- package/dist/Icon/Icon.js +57 -57
- package/dist/Icon/index.d.ts +2 -2
- package/dist/Icon/index.js +9 -9
- package/dist/Icon/types.d.ts +46 -46
- package/dist/Icon/types.js +2 -2
- package/dist/Image/Image.d.ts +3 -3
- package/dist/Image/Image.js +22 -22
- package/dist/Image/index.d.ts +2 -2
- package/dist/Image/index.js +7 -7
- package/dist/Image/types.d.ts +21 -21
- package/dist/Image/types.js +2 -2
- package/dist/Link/Link.d.ts +3 -3
- package/dist/Link/Link.js +10 -10
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +7 -7
- package/dist/Link/types.d.ts +41 -41
- package/dist/Link/types.js +2 -2
- package/dist/List/List.d.ts +8 -8
- package/dist/List/List.js +36 -36
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +5 -5
- package/dist/List/types.d.ts +7 -7
- package/dist/List/types.js +2 -2
- package/dist/Menu/Menu.d.ts +6 -6
- package/dist/Menu/Menu.js +9 -9
- package/dist/Menu/index.d.ts +2 -2
- package/dist/Menu/index.js +5 -5
- package/dist/Menu/types.d.ts +71 -71
- package/dist/Menu/types.js +2 -2
- package/dist/Notification/Notification.d.ts +5 -5
- package/dist/Notification/Notification.js +51 -51
- package/dist/Notification/index.d.ts +2 -2
- package/dist/Notification/index.js +9 -9
- package/dist/Notification/types.d.ts +7 -7
- package/dist/Notification/types.js +2 -2
- package/dist/Pagination/Pagination.d.ts +4 -4
- package/dist/Pagination/Pagination.js +193 -190
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Pagination/PaginationHelper.d.ts +6 -6
- package/dist/Pagination/PaginationHelper.js +123 -123
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Pagination/index.js +7 -7
- package/dist/Pagination/types.d.ts +29 -29
- package/dist/Pagination/types.js +8 -8
- package/dist/Paper/Paper.d.ts +2 -2
- package/dist/Paper/Paper.js +5 -5
- package/dist/Paper/index.d.ts +2 -2
- package/dist/Paper/index.js +5 -5
- package/dist/Paper/types.d.ts +2 -2
- package/dist/Paper/types.js +2 -2
- package/dist/Pickers/DatePicker.d.ts +10 -10
- package/dist/Pickers/DatePicker.js +29 -29
- package/dist/Pickers/DateTimePicker.d.ts +3 -3
- package/dist/Pickers/DateTimePicker.js +24 -24
- package/dist/Pickers/TimePicker.d.ts +3 -3
- package/dist/Pickers/TimePicker.js +24 -24
- package/dist/Pickers/index.d.ts +4 -4
- package/dist/Pickers/index.js +7 -7
- package/dist/Pickers/types.d.ts +80 -80
- package/dist/Pickers/types.js +2 -2
- package/dist/Popover/Popover.d.ts +2 -2
- package/dist/Popover/Popover.js +5 -5
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +7 -7
- package/dist/Popover/types.d.ts +2 -2
- package/dist/Popover/types.js +2 -2
- package/dist/Progress/Progress.d.ts +5 -5
- package/dist/Progress/Progress.js +12 -12
- package/dist/Progress/index.d.ts +2 -2
- package/dist/Progress/index.js +5 -5
- package/dist/Progress/types.d.ts +3 -3
- package/dist/Progress/types.js +2 -2
- package/dist/Radio/Radio.d.ts +3 -3
- package/dist/Radio/Radio.js +26 -26
- package/dist/Radio/RadioGroup.d.ts +3 -3
- package/dist/Radio/RadioGroup.js +9 -9
- package/dist/Radio/index.d.ts +3 -3
- package/dist/Radio/index.js +9 -9
- package/dist/Radio/types.d.ts +46 -46
- package/dist/Radio/types.js +2 -2
- package/dist/Rating/Rating.d.ts +3 -3
- package/dist/Rating/Rating.js +71 -71
- package/dist/Rating/index.d.ts +2 -2
- package/dist/Rating/index.js +5 -5
- package/dist/Rating/types.d.ts +49 -49
- package/dist/Rating/types.js +2 -2
- package/dist/Select/Select.d.ts +3 -3
- package/dist/Select/Select.js +38 -38
- package/dist/Select/index.d.ts +2 -2
- package/dist/Select/index.js +7 -7
- package/dist/Select/types.d.ts +76 -76
- package/dist/Select/types.js +2 -2
- package/dist/Slide/Slide.d.ts +3 -3
- package/dist/Slide/Slide.js +11 -11
- package/dist/Slide/index.d.ts +2 -2
- package/dist/Slide/index.js +7 -7
- package/dist/Slide/types.d.ts +2 -2
- package/dist/Slide/types.js +2 -2
- package/dist/Snackbar/Snackbar.d.ts +3 -3
- package/dist/Snackbar/Snackbar.js +11 -11
- package/dist/Snackbar/index.d.ts +2 -2
- package/dist/Snackbar/index.js +7 -7
- package/dist/Snackbar/types.d.ts +2 -2
- package/dist/Snackbar/types.js +2 -2
- package/dist/Spacing/Spacing.d.ts +7 -7
- package/dist/Spacing/Spacing.js +71 -71
- package/dist/Spacing/index.d.ts +2 -2
- package/dist/Spacing/index.js +5 -5
- package/dist/Spacing/types.d.ts +15 -15
- package/dist/Spacing/types.js +2 -2
- package/dist/Stepper/MobileStepper.d.ts +3 -3
- package/dist/Stepper/MobileStepper.js +10 -10
- package/dist/Stepper/Stepper.d.ts +7 -7
- package/dist/Stepper/Stepper.js +27 -27
- package/dist/Stepper/index.d.ts +3 -3
- package/dist/Stepper/index.js +6 -6
- package/dist/Stepper/types.d.ts +14 -14
- package/dist/Stepper/types.js +2 -2
- package/dist/Switch/Switch.d.ts +3 -3
- package/dist/Switch/Switch.js +10 -10
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.js +7 -7
- package/dist/Switch/types.d.ts +12 -12
- package/dist/Switch/types.js +2 -2
- package/dist/Table/ResizeTableCell/ResizeTableCell.d.ts +11 -11
- package/dist/Table/ResizeTableCell/ResizeTableCell.js +94 -94
- package/dist/Table/ResizeTableCell/ResizeTableCellStyles.d.ts +2 -2
- package/dist/Table/ResizeTableCell/ResizeTableCellStyles.js +60 -60
- package/dist/Table/ResizeTableCell/ResizeTableContext.d.ts +15 -15
- package/dist/Table/ResizeTableCell/ResizeTableContext.js +16 -16
- package/dist/Table/ResizeTableCell/ResizeTableContext.js.map +1 -1
- package/dist/Table/Table.d.ts +8 -8
- package/dist/Table/Table.js +11 -11
- package/dist/Table/index.d.ts +4 -4
- package/dist/Table/index.js +7 -7
- package/dist/Table/types.d.ts +7 -7
- package/dist/Table/types.js +2 -2
- package/dist/TableColumnSettings/TableColumnSettings.d.ts +4 -4
- package/dist/TableColumnSettings/TableColumnSettings.js +131 -131
- package/dist/TableColumnSettings/TableColumnSettingsStyles.d.ts +1 -1
- package/dist/TableColumnSettings/TableColumnSettingsStyles.js +83 -83
- package/dist/TableColumnSettings/index.d.ts +3 -3
- package/dist/TableColumnSettings/index.js +7 -7
- package/dist/TableColumnSettings/types.d.ts +14 -14
- package/dist/TableColumnSettings/types.js +2 -2
- package/dist/Tabs/Tabs.d.ts +10 -10
- package/dist/Tabs/Tabs.js +135 -135
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +5 -5
- package/dist/Tabs/types.d.ts +13 -13
- package/dist/Tabs/types.js +2 -2
- package/dist/TextField/CurrencyTextField.d.ts +3 -3
- package/dist/TextField/CurrencyTextField.js +22 -22
- package/dist/TextField/InlineTextField.d.ts +3 -3
- package/dist/TextField/InlineTextField.js +142 -142
- package/dist/TextField/MaskedTextField.d.ts +3 -3
- package/dist/TextField/MaskedTextField.js +13 -13
- package/dist/TextField/TextField.d.ts +3 -3
- package/dist/TextField/TextField.js +13 -13
- package/dist/TextField/ValidatedTextField.d.ts +3 -3
- package/dist/TextField/ValidatedTextField.js +35 -35
- package/dist/TextField/index.d.ts +6 -6
- package/dist/TextField/index.js +9 -9
- package/dist/TextField/styles.d.ts +2 -2
- package/dist/TextField/styles.js +13 -13
- package/dist/TextField/types.d.ts +63 -63
- package/dist/TextField/types.js +2 -2
- package/dist/ThemeProvider/DefaultEpilotTheme.d.ts +2 -2
- package/dist/ThemeProvider/DefaultEpilotTheme.js +312 -312
- package/dist/ThemeProvider/ThemeProvider.d.ts +3 -3
- package/dist/ThemeProvider/ThemeProvider.js +30 -30
- package/dist/ThemeProvider/fonts.d.ts +8 -8
- package/dist/ThemeProvider/fonts.js +13 -13
- package/dist/ThemeProvider/index.d.ts +3 -3
- package/dist/ThemeProvider/index.js +8 -8
- package/dist/ThemeProvider/mapping.d.ts +10 -10
- package/dist/ThemeProvider/mapping.js +846 -846
- package/dist/ThemeProvider/mapping.js.map +1 -1
- package/dist/ThemeProvider/types.d.ts +136 -136
- package/dist/ThemeProvider/types.js +2 -2
- package/dist/ToggleButton/ToggleButton.d.ts +3 -3
- package/dist/ToggleButton/ToggleButton.js +12 -12
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/ToggleButton/index.js +5 -5
- package/dist/ToggleButton/types.d.ts +27 -27
- package/dist/ToggleButton/types.js +2 -2
- package/dist/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -3
- package/dist/ToggleButtonGroup/ToggleButtonGroup.js +12 -12
- package/dist/ToggleButtonGroup/index.d.ts +2 -2
- package/dist/ToggleButtonGroup/index.js +5 -5
- package/dist/ToggleButtonGroup/types.d.ts +2 -2
- package/dist/ToggleButtonGroup/types.js +2 -2
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.js +22 -22
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +5 -5
- package/dist/Tooltip/types.d.ts +8 -8
- package/dist/Tooltip/types.js +2 -2
- package/dist/Typography/Typography.d.ts +13 -13
- package/dist/Typography/Typography.js +60 -60
- package/dist/Typography/index.d.ts +3 -3
- package/dist/Typography/index.js +22 -22
- package/dist/Typography/types.d.ts +7 -7
- package/dist/Typography/types.js +2 -2
- package/dist/bundle.js +43 -43
- package/dist/bundle.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +6 -6
- package/dist/context/ClassPrefixContext.d.ts +9 -9
- package/dist/context/ClassPrefixContext.js +14 -14
- package/dist/index.d.ts +51 -51
- package/dist/index.js +54 -54
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.js +4 -4
- package/dist/styles/styles.d.ts +3 -3
- package/dist/styles/styles.js +18 -18
- package/dist/utils.d.ts +7 -7
- package/dist/utils.js +27 -27
- package/package.json +1 -1
- package/CHANGELOG.md +0 -990
package/dist/Image/Image.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Image = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var __1 = require("../");
|
|
7
|
-
function Image(props) {
|
|
8
|
-
var theme = __1.useTheme();
|
|
9
|
-
var image = props.image, alt = props.alt, caption = props.caption, _a = props.captionPosition, captionPosition = _a === void 0 ? 'under' : _a;
|
|
10
|
-
return typeof image === 'string' ? (captionPosition === 'overflow' ? (react_1["default"].createElement(__1.Box, { alignItems: "center", display: "flex", position: "relative" },
|
|
11
|
-
react_1["default"].createElement("img", { alt: alt, src: image, style: { width: '100%', height: 'auto' } }),
|
|
12
|
-
caption && (react_1["default"].createElement(__1.Box, { bgcolor: theme.palette.primary.main + 'aa', color: "primary.contrastText", position: "absolute", style: {
|
|
13
|
-
width: '100%',
|
|
14
|
-
padding: 10,
|
|
15
|
-
bottom: 0,
|
|
16
|
-
right: 0,
|
|
17
|
-
zIndex: 10
|
|
18
|
-
}, textAlign: "center" }, caption)))) : (react_1["default"].createElement(__1.StackSpacing, { alignItems: "stretch", scale: 3 },
|
|
19
|
-
react_1["default"].createElement("img", { alt: alt, src: image, style: { width: '100%', height: 'auto' } }),
|
|
20
|
-
react_1["default"].createElement(__1.BodyText, null, caption)))) : (react_1["default"].createElement(react_1["default"].Fragment, null, image));
|
|
21
|
-
}
|
|
22
|
-
exports.Image = Image;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.Image = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
var __1 = require("../");
|
|
7
|
+
function Image(props) {
|
|
8
|
+
var theme = __1.useTheme();
|
|
9
|
+
var image = props.image, alt = props.alt, caption = props.caption, _a = props.captionPosition, captionPosition = _a === void 0 ? 'under' : _a;
|
|
10
|
+
return typeof image === 'string' ? (captionPosition === 'overflow' ? (react_1["default"].createElement(__1.Box, { alignItems: "center", display: "flex", position: "relative" },
|
|
11
|
+
react_1["default"].createElement("img", { alt: alt, src: image, style: { width: '100%', height: 'auto' } }),
|
|
12
|
+
caption && (react_1["default"].createElement(__1.Box, { bgcolor: theme.palette.primary.main + 'aa', color: "primary.contrastText", position: "absolute", style: {
|
|
13
|
+
width: '100%',
|
|
14
|
+
padding: 10,
|
|
15
|
+
bottom: 0,
|
|
16
|
+
right: 0,
|
|
17
|
+
zIndex: 10
|
|
18
|
+
}, textAlign: "center" }, caption)))) : (react_1["default"].createElement(__1.StackSpacing, { alignItems: "stretch", scale: 3 },
|
|
19
|
+
react_1["default"].createElement("img", { alt: alt, src: image, style: { width: '100%', height: 'auto' } }),
|
|
20
|
+
react_1["default"].createElement(__1.BodyText, null, caption)))) : (react_1["default"].createElement(react_1["default"].Fragment, null, image));
|
|
21
|
+
}
|
|
22
|
+
exports.Image = Image;
|
|
23
23
|
//# sourceMappingURL=Image.js.map
|
package/dist/Image/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Image } from './Image';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { Image } from './Image';
|
|
2
|
+
export * from './types';
|
package/dist/Image/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Image = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var Image_1 = require("./Image");
|
|
6
|
-
tslib_1.__createBinding(exports, Image_1, "Image");
|
|
7
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.Image = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var Image_1 = require("./Image");
|
|
6
|
+
tslib_1.__createBinding(exports, Image_1, "Image");
|
|
7
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/Image/types.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type ImageProps = {
|
|
3
|
-
/**
|
|
4
|
-
* url of the image or a component
|
|
5
|
-
*/
|
|
6
|
-
image: string | React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* caption to be displayed inside the image
|
|
9
|
-
*/
|
|
10
|
-
caption?: string;
|
|
11
|
-
/**
|
|
12
|
-
* the alt prop that will be passed to the image tag
|
|
13
|
-
* @default "product image"
|
|
14
|
-
*/
|
|
15
|
-
alt?: string;
|
|
16
|
-
/**
|
|
17
|
-
* the position of the caption
|
|
18
|
-
* @default 'under'
|
|
19
|
-
*/
|
|
20
|
-
captionPosition?: 'overflow' | 'under';
|
|
21
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ImageProps = {
|
|
3
|
+
/**
|
|
4
|
+
* url of the image or a component
|
|
5
|
+
*/
|
|
6
|
+
image: string | React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* caption to be displayed inside the image
|
|
9
|
+
*/
|
|
10
|
+
caption?: string;
|
|
11
|
+
/**
|
|
12
|
+
* the alt prop that will be passed to the image tag
|
|
13
|
+
* @default "product image"
|
|
14
|
+
*/
|
|
15
|
+
alt?: string;
|
|
16
|
+
/**
|
|
17
|
+
* the position of the caption
|
|
18
|
+
* @default 'under'
|
|
19
|
+
*/
|
|
20
|
+
captionPosition?: 'overflow' | 'under';
|
|
21
|
+
};
|
package/dist/Image/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
3
|
//# sourceMappingURL=types.js.map
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LinkProps } from './types';
|
|
3
|
-
export declare function Link(props: LinkProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LinkProps } from './types';
|
|
3
|
+
export declare function Link(props: LinkProps): JSX.Element;
|
package/dist/Link/Link.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Link = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var core_1 = require("@material-ui/core");
|
|
6
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
function Link(props) {
|
|
8
|
-
return react_1["default"].createElement(core_1.Link, tslib_1.__assign({}, props));
|
|
9
|
-
}
|
|
10
|
-
exports.Link = Link;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.Link = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var core_1 = require("@material-ui/core");
|
|
6
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
+
function Link(props) {
|
|
8
|
+
return react_1["default"].createElement(core_1.Link, tslib_1.__assign({}, props));
|
|
9
|
+
}
|
|
10
|
+
exports.Link = Link;
|
|
11
11
|
//# sourceMappingURL=Link.js.map
|
package/dist/Link/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Link } from './Link';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { Link } from './Link';
|
|
2
|
+
export * from './types';
|
package/dist/Link/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Link = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var Link_1 = require("./Link");
|
|
6
|
-
tslib_1.__createBinding(exports, Link_1, "Link");
|
|
7
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.Link = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var Link_1 = require("./Link");
|
|
6
|
+
tslib_1.__createBinding(exports, Link_1, "Link");
|
|
7
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/Link/types.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type variantType = 'inherit' | 'button' | 'caption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'overline' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'srOnly';
|
|
3
|
-
declare type colorType = 'initial' | 'inherit' | 'primary' | 'secondary' | 'textPrimary' | 'textSecondary' | 'error';
|
|
4
|
-
declare type underlineType = 'none' | 'hover' | 'always';
|
|
5
|
-
export declare type LinkProps = {
|
|
6
|
-
/**
|
|
7
|
-
* elements rendered inside the component.
|
|
8
|
-
*/
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* the color of the link.
|
|
12
|
-
*/
|
|
13
|
-
color?: colorType;
|
|
14
|
-
/**
|
|
15
|
-
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
16
|
-
*/
|
|
17
|
-
component?: JSX.Element | HTMLElement | string;
|
|
18
|
-
/**
|
|
19
|
-
* the underline of the link
|
|
20
|
-
*/
|
|
21
|
-
underline?: underlineType;
|
|
22
|
-
/**
|
|
23
|
-
* element variant, border radiu is determined by this.
|
|
24
|
-
*/
|
|
25
|
-
variant?: variantType;
|
|
26
|
-
/**
|
|
27
|
-
* Link target.
|
|
28
|
-
*/
|
|
29
|
-
href?: string;
|
|
30
|
-
/**
|
|
31
|
-
* onclick function
|
|
32
|
-
*/
|
|
33
|
-
onClick?: (_?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
34
|
-
/**
|
|
35
|
-
* link target
|
|
36
|
-
*/
|
|
37
|
-
target?: string;
|
|
38
|
-
className?: string;
|
|
39
|
-
style?: React.CSSProperties;
|
|
40
|
-
};
|
|
41
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type variantType = 'inherit' | 'button' | 'caption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'overline' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'srOnly';
|
|
3
|
+
declare type colorType = 'initial' | 'inherit' | 'primary' | 'secondary' | 'textPrimary' | 'textSecondary' | 'error';
|
|
4
|
+
declare type underlineType = 'none' | 'hover' | 'always';
|
|
5
|
+
export declare type LinkProps = {
|
|
6
|
+
/**
|
|
7
|
+
* elements rendered inside the component.
|
|
8
|
+
*/
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* the color of the link.
|
|
12
|
+
*/
|
|
13
|
+
color?: colorType;
|
|
14
|
+
/**
|
|
15
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
16
|
+
*/
|
|
17
|
+
component?: JSX.Element | HTMLElement | string;
|
|
18
|
+
/**
|
|
19
|
+
* the underline of the link
|
|
20
|
+
*/
|
|
21
|
+
underline?: underlineType;
|
|
22
|
+
/**
|
|
23
|
+
* element variant, border radiu is determined by this.
|
|
24
|
+
*/
|
|
25
|
+
variant?: variantType;
|
|
26
|
+
/**
|
|
27
|
+
* Link target.
|
|
28
|
+
*/
|
|
29
|
+
href?: string;
|
|
30
|
+
/**
|
|
31
|
+
* onclick function
|
|
32
|
+
*/
|
|
33
|
+
onClick?: (_?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
34
|
+
/**
|
|
35
|
+
* link target
|
|
36
|
+
*/
|
|
37
|
+
target?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: React.CSSProperties;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
package/dist/Link/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
3
|
//# sourceMappingURL=types.js.map
|
package/dist/List/List.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ListProps, ListItemProps, ListItemContentProps, ListItemPrefixProps, ListItemSufixProps, ListSubheaderProps } from './types';
|
|
3
|
-
export declare function List(props: ListProps): JSX.Element;
|
|
4
|
-
export declare function ListItem(props: ListItemProps): JSX.Element;
|
|
5
|
-
export declare function ListItemContent(props: ListItemContentProps): JSX.Element;
|
|
6
|
-
export declare function ListItemPrefix(props: ListItemPrefixProps): JSX.Element;
|
|
7
|
-
export declare function ListItemSufix(props: ListItemSufixProps): JSX.Element;
|
|
8
|
-
export declare function ListSubheader(props: ListSubheaderProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListProps, ListItemProps, ListItemContentProps, ListItemPrefixProps, ListItemSufixProps, ListSubheaderProps } from './types';
|
|
3
|
+
export declare function List(props: ListProps): JSX.Element;
|
|
4
|
+
export declare function ListItem(props: ListItemProps): JSX.Element;
|
|
5
|
+
export declare function ListItemContent(props: ListItemContentProps): JSX.Element;
|
|
6
|
+
export declare function ListItemPrefix(props: ListItemPrefixProps): JSX.Element;
|
|
7
|
+
export declare function ListItemSufix(props: ListItemSufixProps): JSX.Element;
|
|
8
|
+
export declare function ListSubheader(props: ListSubheaderProps): JSX.Element;
|
package/dist/List/List.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.ListSubheader = exports.ListItemSufix = exports.ListItemPrefix = exports.ListItemContent = exports.ListItem = exports.List = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var core_1 = require("@material-ui/core");
|
|
6
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
function List(props) {
|
|
8
|
-
return react_1["default"].createElement(core_1.List, tslib_1.__assign({ component: "ul", disablePadding: true }, props));
|
|
9
|
-
}
|
|
10
|
-
exports.List = List;
|
|
11
|
-
function ListItem(props) {
|
|
12
|
-
var _a = props.button, button = _a === void 0 ? false : _a, rest = tslib_1.__rest(props
|
|
13
|
-
// Using `any` as a workaround for a ts issue: https://github.com/mui-org/material-ui/issues/14971
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
, ["button"]);
|
|
16
|
-
// Using `any` as a workaround for a ts issue: https://github.com/mui-org/material-ui/issues/14971
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
-
return react_1["default"].createElement(core_1.ListItem, tslib_1.__assign({ button: button }, rest));
|
|
19
|
-
}
|
|
20
|
-
exports.ListItem = ListItem;
|
|
21
|
-
function ListItemContent(props) {
|
|
22
|
-
return react_1["default"].createElement(core_1.ListItemText, tslib_1.__assign({}, props));
|
|
23
|
-
}
|
|
24
|
-
exports.ListItemContent = ListItemContent;
|
|
25
|
-
function ListItemPrefix(props) {
|
|
26
|
-
return react_1["default"].createElement(core_1.ListItemIcon, tslib_1.__assign({}, props));
|
|
27
|
-
}
|
|
28
|
-
exports.ListItemPrefix = ListItemPrefix;
|
|
29
|
-
function ListItemSufix(props) {
|
|
30
|
-
return react_1["default"].createElement(core_1.ListItemSecondaryAction, tslib_1.__assign({}, props));
|
|
31
|
-
}
|
|
32
|
-
exports.ListItemSufix = ListItemSufix;
|
|
33
|
-
function ListSubheader(props) {
|
|
34
|
-
return react_1["default"].createElement(core_1.ListSubheader, tslib_1.__assign({}, props));
|
|
35
|
-
}
|
|
36
|
-
exports.ListSubheader = ListSubheader;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.ListSubheader = exports.ListItemSufix = exports.ListItemPrefix = exports.ListItemContent = exports.ListItem = exports.List = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var core_1 = require("@material-ui/core");
|
|
6
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
+
function List(props) {
|
|
8
|
+
return react_1["default"].createElement(core_1.List, tslib_1.__assign({ component: "ul", disablePadding: true }, props));
|
|
9
|
+
}
|
|
10
|
+
exports.List = List;
|
|
11
|
+
function ListItem(props) {
|
|
12
|
+
var _a = props.button, button = _a === void 0 ? false : _a, rest = tslib_1.__rest(props
|
|
13
|
+
// Using `any` as a workaround for a ts issue: https://github.com/mui-org/material-ui/issues/14971
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
, ["button"]);
|
|
16
|
+
// Using `any` as a workaround for a ts issue: https://github.com/mui-org/material-ui/issues/14971
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
return react_1["default"].createElement(core_1.ListItem, tslib_1.__assign({ button: button }, rest));
|
|
19
|
+
}
|
|
20
|
+
exports.ListItem = ListItem;
|
|
21
|
+
function ListItemContent(props) {
|
|
22
|
+
return react_1["default"].createElement(core_1.ListItemText, tslib_1.__assign({}, props));
|
|
23
|
+
}
|
|
24
|
+
exports.ListItemContent = ListItemContent;
|
|
25
|
+
function ListItemPrefix(props) {
|
|
26
|
+
return react_1["default"].createElement(core_1.ListItemIcon, tslib_1.__assign({}, props));
|
|
27
|
+
}
|
|
28
|
+
exports.ListItemPrefix = ListItemPrefix;
|
|
29
|
+
function ListItemSufix(props) {
|
|
30
|
+
return react_1["default"].createElement(core_1.ListItemSecondaryAction, tslib_1.__assign({}, props));
|
|
31
|
+
}
|
|
32
|
+
exports.ListItemSufix = ListItemSufix;
|
|
33
|
+
function ListSubheader(props) {
|
|
34
|
+
return react_1["default"].createElement(core_1.ListSubheader, tslib_1.__assign({}, props));
|
|
35
|
+
}
|
|
36
|
+
exports.ListSubheader = ListSubheader;
|
|
37
37
|
//# sourceMappingURL=List.js.map
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './List';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './List';
|
|
2
|
+
export * from './types';
|
package/dist/List/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./List"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./List"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/List/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ListProps as MuiListProps, ListItemProps as MuiListItemProps, ListItemTextProps as MuiListItemTextProps, ListItemIconProps as MuiListItemIconProps, ListItemSecondaryActionProps as MuiListItemSecondaryActionProps, ListSubheaderProps as MuiListSubheaderProps } from '@material-ui/core';
|
|
2
|
-
export declare type ListProps = Omit<MuiListProps, 'disablePadding'>;
|
|
3
|
-
export declare type ListItemProps = MuiListItemProps;
|
|
4
|
-
export declare type ListItemContentProps = MuiListItemTextProps;
|
|
5
|
-
export declare type ListItemPrefixProps = MuiListItemIconProps;
|
|
6
|
-
export declare type ListItemSufixProps = MuiListItemSecondaryActionProps;
|
|
7
|
-
export declare type ListSubheaderProps = MuiListSubheaderProps;
|
|
1
|
+
import { ListProps as MuiListProps, ListItemProps as MuiListItemProps, ListItemTextProps as MuiListItemTextProps, ListItemIconProps as MuiListItemIconProps, ListItemSecondaryActionProps as MuiListItemSecondaryActionProps, ListSubheaderProps as MuiListSubheaderProps } from '@material-ui/core';
|
|
2
|
+
export declare type ListProps = Omit<MuiListProps, 'disablePadding'>;
|
|
3
|
+
export declare type ListItemProps = MuiListItemProps;
|
|
4
|
+
export declare type ListItemContentProps = MuiListItemTextProps;
|
|
5
|
+
export declare type ListItemPrefixProps = MuiListItemIconProps;
|
|
6
|
+
export declare type ListItemSufixProps = MuiListItemSecondaryActionProps;
|
|
7
|
+
export declare type ListSubheaderProps = MuiListSubheaderProps;
|
package/dist/List/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
3
|
//# sourceMappingURL=types.js.map
|
package/dist/Menu/Menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Menu, MenuItem, MenuList, ListItemIcon, ListItemText } from '@material-ui/core';
|
|
2
|
-
export { Menu };
|
|
3
|
-
export { MenuItem };
|
|
4
|
-
export { MenuList };
|
|
5
|
-
export { ListItemIcon };
|
|
6
|
-
export { ListItemText };
|
|
1
|
+
import { Menu, MenuItem, MenuList, ListItemIcon, ListItemText } from '@material-ui/core';
|
|
2
|
+
export { Menu };
|
|
3
|
+
export { MenuItem };
|
|
4
|
+
export { MenuList };
|
|
5
|
+
export { ListItemIcon };
|
|
6
|
+
export { ListItemText };
|
package/dist/Menu/Menu.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.ListItemText = exports.ListItemIcon = exports.MenuList = exports.MenuItem = exports.Menu = void 0;
|
|
4
|
-
var core_1 = require("@material-ui/core");
|
|
5
|
-
exports.Menu = core_1.Menu;
|
|
6
|
-
exports.MenuItem = core_1.MenuItem;
|
|
7
|
-
exports.MenuList = core_1.MenuList;
|
|
8
|
-
exports.ListItemIcon = core_1.ListItemIcon;
|
|
9
|
-
exports.ListItemText = core_1.ListItemText;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.ListItemText = exports.ListItemIcon = exports.MenuList = exports.MenuItem = exports.Menu = void 0;
|
|
4
|
+
var core_1 = require("@material-ui/core");
|
|
5
|
+
exports.Menu = core_1.Menu;
|
|
6
|
+
exports.MenuItem = core_1.MenuItem;
|
|
7
|
+
exports.MenuList = core_1.MenuList;
|
|
8
|
+
exports.ListItemIcon = core_1.ListItemIcon;
|
|
9
|
+
exports.ListItemText = core_1.ListItemText;
|
|
10
10
|
//# sourceMappingURL=Menu.js.map
|
package/dist/Menu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Menu';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './Menu';
|
|
2
|
+
export * from './types';
|
package/dist/Menu/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Menu"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Menu"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/Menu/types.d.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MenuClassKey, MenuItemProps as MuiMenuItemProps, MenuListProps as MuiMenuListProps, PopoverProps, StandardProps } from '@material-ui/core';
|
|
3
|
-
import { TransitionHandlerProps } from '@material-ui/core/transitions/transition';
|
|
4
|
-
export interface MenuProps extends StandardProps<PopoverProps & Partial<TransitionHandlerProps>, MenuClassKey> {
|
|
5
|
-
/**
|
|
6
|
-
* A HTML element, or a function that returns it.
|
|
7
|
-
* It's used to set the position of the menu.
|
|
8
|
-
* @document
|
|
9
|
-
*/
|
|
10
|
-
anchorEl?: PopoverProps['anchorEl'];
|
|
11
|
-
/**
|
|
12
|
-
* Menu contents, normally `MenuItem`s.
|
|
13
|
-
*/
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Props applied to the [`MenuList`](/api/menu-list/) element.
|
|
17
|
-
*/
|
|
18
|
-
MenuListProps?: Partial<MenuListProps>;
|
|
19
|
-
/**
|
|
20
|
-
* Callback fired when the component requests to be closed.
|
|
21
|
-
*
|
|
22
|
-
* @param {object} event The event source of the callback.
|
|
23
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
24
|
-
*/
|
|
25
|
-
onClose?: PopoverProps['onClose'];
|
|
26
|
-
/**
|
|
27
|
-
* Callback fired before the Menu enters.
|
|
28
|
-
* @document
|
|
29
|
-
*/
|
|
30
|
-
onEnter?: PopoverProps['onEnter'];
|
|
31
|
-
/**
|
|
32
|
-
* Callback fired when the Menu has entered.
|
|
33
|
-
* @document
|
|
34
|
-
*/
|
|
35
|
-
onEntered?: PopoverProps['onEntered'];
|
|
36
|
-
/**
|
|
37
|
-
* Callback fired when the Menu is entering.
|
|
38
|
-
* @document
|
|
39
|
-
*/
|
|
40
|
-
onEntering?: PopoverProps['onEntering'];
|
|
41
|
-
/**
|
|
42
|
-
* Callback fired before the Menu exits.
|
|
43
|
-
* @document
|
|
44
|
-
*/
|
|
45
|
-
onExit?: PopoverProps['onExit'];
|
|
46
|
-
/**
|
|
47
|
-
* Callback fired when the Menu has exited.
|
|
48
|
-
* @document
|
|
49
|
-
*/
|
|
50
|
-
onExited?: PopoverProps['onExited'];
|
|
51
|
-
/**
|
|
52
|
-
* Callback fired when the Menu is exiting.
|
|
53
|
-
* @document
|
|
54
|
-
*/
|
|
55
|
-
onExiting?: PopoverProps['onExiting'];
|
|
56
|
-
/**
|
|
57
|
-
* If `true`, the menu is visible.
|
|
58
|
-
*/
|
|
59
|
-
open: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* `classes` prop applied to the [`Popover`](/api/popover/) element.
|
|
62
|
-
*/
|
|
63
|
-
PopoverClasses?: PopoverProps['classes'];
|
|
64
|
-
/**
|
|
65
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
66
|
-
* and the vertical alignment relative to the anchor element.
|
|
67
|
-
*/
|
|
68
|
-
variant?: 'menu' | 'selectedMenu';
|
|
69
|
-
}
|
|
70
|
-
export declare type MenuItemProps = Omit<MuiMenuItemProps, 'button'>;
|
|
71
|
-
export declare type MenuListProps = MuiMenuListProps;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MenuClassKey, MenuItemProps as MuiMenuItemProps, MenuListProps as MuiMenuListProps, PopoverProps, StandardProps } from '@material-ui/core';
|
|
3
|
+
import { TransitionHandlerProps } from '@material-ui/core/transitions/transition';
|
|
4
|
+
export interface MenuProps extends StandardProps<PopoverProps & Partial<TransitionHandlerProps>, MenuClassKey> {
|
|
5
|
+
/**
|
|
6
|
+
* A HTML element, or a function that returns it.
|
|
7
|
+
* It's used to set the position of the menu.
|
|
8
|
+
* @document
|
|
9
|
+
*/
|
|
10
|
+
anchorEl?: PopoverProps['anchorEl'];
|
|
11
|
+
/**
|
|
12
|
+
* Menu contents, normally `MenuItem`s.
|
|
13
|
+
*/
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Props applied to the [`MenuList`](/api/menu-list/) element.
|
|
17
|
+
*/
|
|
18
|
+
MenuListProps?: Partial<MenuListProps>;
|
|
19
|
+
/**
|
|
20
|
+
* Callback fired when the component requests to be closed.
|
|
21
|
+
*
|
|
22
|
+
* @param {object} event The event source of the callback.
|
|
23
|
+
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
24
|
+
*/
|
|
25
|
+
onClose?: PopoverProps['onClose'];
|
|
26
|
+
/**
|
|
27
|
+
* Callback fired before the Menu enters.
|
|
28
|
+
* @document
|
|
29
|
+
*/
|
|
30
|
+
onEnter?: PopoverProps['onEnter'];
|
|
31
|
+
/**
|
|
32
|
+
* Callback fired when the Menu has entered.
|
|
33
|
+
* @document
|
|
34
|
+
*/
|
|
35
|
+
onEntered?: PopoverProps['onEntered'];
|
|
36
|
+
/**
|
|
37
|
+
* Callback fired when the Menu is entering.
|
|
38
|
+
* @document
|
|
39
|
+
*/
|
|
40
|
+
onEntering?: PopoverProps['onEntering'];
|
|
41
|
+
/**
|
|
42
|
+
* Callback fired before the Menu exits.
|
|
43
|
+
* @document
|
|
44
|
+
*/
|
|
45
|
+
onExit?: PopoverProps['onExit'];
|
|
46
|
+
/**
|
|
47
|
+
* Callback fired when the Menu has exited.
|
|
48
|
+
* @document
|
|
49
|
+
*/
|
|
50
|
+
onExited?: PopoverProps['onExited'];
|
|
51
|
+
/**
|
|
52
|
+
* Callback fired when the Menu is exiting.
|
|
53
|
+
* @document
|
|
54
|
+
*/
|
|
55
|
+
onExiting?: PopoverProps['onExiting'];
|
|
56
|
+
/**
|
|
57
|
+
* If `true`, the menu is visible.
|
|
58
|
+
*/
|
|
59
|
+
open: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* `classes` prop applied to the [`Popover`](/api/popover/) element.
|
|
62
|
+
*/
|
|
63
|
+
PopoverClasses?: PopoverProps['classes'];
|
|
64
|
+
/**
|
|
65
|
+
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
66
|
+
* and the vertical alignment relative to the anchor element.
|
|
67
|
+
*/
|
|
68
|
+
variant?: 'menu' | 'selectedMenu';
|
|
69
|
+
}
|
|
70
|
+
export declare type MenuItemProps = Omit<MuiMenuItemProps, 'button'>;
|
|
71
|
+
export declare type MenuListProps = MuiMenuListProps;
|
package/dist/Menu/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
3
|
//# sourceMappingURL=types.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseNotificationProps } from './types';
|
|
3
|
-
export declare function InfoNotification(props: BaseNotificationProps): JSX.Element;
|
|
4
|
-
export declare function ErrorNotification(props: BaseNotificationProps): JSX.Element;
|
|
5
|
-
export declare function SuccessNotification(props: BaseNotificationProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseNotificationProps } from './types';
|
|
3
|
+
export declare function InfoNotification(props: BaseNotificationProps): JSX.Element;
|
|
4
|
+
export declare function ErrorNotification(props: BaseNotificationProps): JSX.Element;
|
|
5
|
+
export declare function SuccessNotification(props: BaseNotificationProps): JSX.Element;
|