@epilot/base-elements 3.5.3 → 3.6.0

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.
Files changed (36) hide show
  1. package/dist/Autocomplete/Autocomplete.d.ts +1 -1
  2. package/dist/Autocomplete/Autocomplete.js +2 -2
  3. package/dist/Autocomplete/Autocomplete.js.map +1 -1
  4. package/dist/Autocomplete/types.d.ts +4 -0
  5. package/dist/Drawer360/Drawer360.d.ts +2 -1
  6. package/dist/Drawer360/Drawer360.js +13 -1
  7. package/dist/Drawer360/Drawer360.js.map +1 -1
  8. package/dist/Drawer360/Drawer360Context.d.ts +9 -0
  9. package/dist/Drawer360/Drawer360Context.js +28 -0
  10. package/dist/Drawer360/Drawer360Context.js.map +1 -0
  11. package/dist/Drawer360/index.d.ts +1 -0
  12. package/dist/Drawer360/index.js +1 -0
  13. package/dist/Drawer360/index.js.map +1 -1
  14. package/dist/Pagination/Pagination.js +7 -3
  15. package/dist/Pagination/Pagination.js.map +1 -1
  16. package/dist/Pagination/types.d.ts +1 -0
  17. package/dist/TextField/TextField.d.ts +1 -1
  18. package/dist/TextField/TextField.js +2 -2
  19. package/dist/TextField/TextField.js.map +1 -1
  20. package/dist/TextField/types.d.ts +4 -0
  21. package/dist/ThemeProvider/DefaultEpilotTheme.js +3 -1
  22. package/dist/ThemeProvider/DefaultEpilotTheme.js.map +1 -1
  23. package/dist/ThemeProvider/mapping.js +73 -65
  24. package/dist/ThemeProvider/mapping.js.map +1 -1
  25. package/dist/ThemeProvider/types.d.ts +1 -0
  26. package/dist/bundle.js +170 -164
  27. package/dist/bundle.js.map +1 -1
  28. package/package.json +17 -13
  29. package/.vscode/launch.json +0 -15
  30. package/CHANGELOG.md +0 -1176
  31. package/dist/Dialog/Dialog.d.ts +0 -7
  32. package/dist/Dialog/Dialog.js +0 -32
  33. package/dist/Dialog/Dialog.js.map +0 -1
  34. package/dist/Dialog/types.d.ts +0 -157
  35. package/dist/Dialog/types.js +0 -3
  36. package/dist/Dialog/types.js.map +0 -1
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps } from './types';
3
- export declare function Dialog(props: DialogProps): JSX.Element;
4
- export declare function DialogActions(props: DialogActionsProps): JSX.Element;
5
- export declare function DialogContent(props: DialogContentProps): JSX.Element;
6
- export declare function DialogContentText(props: DialogContentTextProps): JSX.Element;
7
- export declare function DialogTitle(props: DialogTitleProps): JSX.Element;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.DialogTitle = exports.DialogContentText = exports.DialogContent = exports.DialogActions = exports.Dialog = 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 Dialog(props) {
8
- var children = props.children, rest = tslib_1.__rest(props, ["children"]);
9
- return react_1["default"].createElement(core_1.Dialog, tslib_1.__assign({}, rest), children);
10
- }
11
- exports.Dialog = Dialog;
12
- function DialogActions(props) {
13
- var children = props.children, rest = tslib_1.__rest(props, ["children"]);
14
- return react_1["default"].createElement(core_1.DialogActions, tslib_1.__assign({}, rest), children);
15
- }
16
- exports.DialogActions = DialogActions;
17
- function DialogContent(props) {
18
- var children = props.children, rest = tslib_1.__rest(props, ["children"]);
19
- return react_1["default"].createElement(core_1.DialogContent, tslib_1.__assign({}, rest), children);
20
- }
21
- exports.DialogContent = DialogContent;
22
- function DialogContentText(props) {
23
- var children = props.children, rest = tslib_1.__rest(props, ["children"]);
24
- return react_1["default"].createElement(core_1.DialogContentText, tslib_1.__assign({}, rest), children);
25
- }
26
- exports.DialogContentText = DialogContentText;
27
- function DialogTitle(props) {
28
- var children = props.children, rest = tslib_1.__rest(props, ["children"]);
29
- return react_1["default"].createElement(core_1.DialogTitle, tslib_1.__assign({}, rest), children);
30
- }
31
- exports.DialogTitle = DialogTitle;
32
- //# sourceMappingURL=Dialog.js.map
@@ -1 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ogActionsProps as MuiDialogActionsProps, DialogClassKey, DialogContentProps as MuiDialogContentProps, DialogContentTextProps as MuiDialogContentTextProps, DialogTitleProps as MuiDialogTitleProps, ModalProps, PaperProps, PortalProps } from '@material-ui/core';
2
- import { TransitionHandlerProps, TransitionProps } from '@material-ui/core/transitions';
3
- import { MouseEventHandler } from 'react';
4
- export declare type DialogProps = {
5
- /**
6
- * The id(s) of the element(s) that describe the dialog.
7
- */
8
- 'aria-describedby'?: string;
9
- /**
10
- * The id(s) of the element(s) that label the dialog.
11
- */
12
- 'aria-labelledby'?: string;
13
- /**
14
- * Dialog children, usually the included sub-components.
15
- */
16
- children?: React.ReactNode;
17
- /**
18
- * Override or extend the styles applied to the component. See https://v4.mui.com/api/dialog/#css for more details.
19
- */
20
- classes?: Partial<{
21
- [P in DialogClassKey]: string;
22
- }>;
23
- /**
24
- * If `true`, clicking the backdrop will not fire the `onClose` callback.
25
- */
26
- disableBackdropClick?: boolean;
27
- /**
28
- * If `true`, hitting escape will not fire the `onClose` callback.
29
- */
30
- disableEscapeKeyDown?: boolean;
31
- /**
32
- * If true, the modal will not automatically shift focus to itself when it opens,
33
- * and replace it to the last focused element when it closes. This also works correctly
34
- * with any modal children that have the disableAutoFocus prop.
35
- */
36
- disableAutoFocus?: ModalProps['disableAutoFocus'];
37
- /**
38
- * If true, the modal will not prevent focus from leaving the modal while open.
39
- */
40
- disableEnforceFocus?: ModalProps['disableEnforceFocus'];
41
- /**
42
- * Disable the portal behavior. The children stay within it's parent DOM hierarchy.
43
- */
44
- disablePortal?: PortalProps['disablePortal'];
45
- /**
46
- * If true, the modal will not restore focus to previously focused element once modal is hidden.
47
- */
48
- disableRestoreFocus?: ModalProps['disableRestoreFocus'];
49
- /**
50
- * If `true`, the dialog will be full-screen
51
- */
52
- fullScreen?: boolean;
53
- /**
54
- * If `true`, the dialog stretches to `maxWidth`.
55
- *
56
- * Notice that the dialog width grow is limited by the default margin.
57
- */
58
- fullWidth?: boolean;
59
- /**
60
- * Determine the max-width of the dialog.
61
- * The dialog width grows with the size of the screen.
62
- * Set to `false` to disable `maxWidth`.
63
- */
64
- maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
65
- /**
66
- * Callback fired when the backdrop is clicked.
67
- */
68
- onBackdropClick?: ModalProps['onBackdropClick'];
69
- /**
70
- * Callback fired when the component requests to be closed.
71
- *
72
- * @param {object} event The event source of the callback.
73
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
74
- */
75
- onClose?: ModalProps['onClose'];
76
- /**
77
- * Callback fired before the dialog enters.
78
- */
79
- onEnter?: TransitionHandlerProps['onEnter'];
80
- /**
81
- * Callback fired when the dialog has entered.
82
- */
83
- onEntered?: TransitionHandlerProps['onEntered'];
84
- /**
85
- * Callback fired when the dialog is entering.
86
- */
87
- onEntering?: TransitionHandlerProps['onEntering'];
88
- /**
89
- * Callback fired when the mouse is clicked
90
- */
91
- onMouseDown?: MouseEventHandler<HTMLDivElement>;
92
- /**
93
- * Callback fired when the mouse is clicked, held and moved
94
- */
95
- onMouseMove?: MouseEventHandler<HTMLDivElement>;
96
- /**
97
- * Callback fired when the mouse is stopped clicking
98
- */
99
- onMouseUp?: MouseEventHandler<HTMLDivElement>;
100
- /**
101
- * Callback fired when the escape key is pressed,
102
- * `disableKeyboard` is false and the modal is in focus.
103
- */
104
- onEscapeKeyDown?: ModalProps['onEscapeKeyDown'];
105
- /**
106
- * Callback fired before the dialog exits.
107
- */
108
- onExit?: TransitionHandlerProps['onExit'];
109
- /**
110
- * Callback fired when the dialog has exited.
111
- */
112
- onExited?: TransitionHandlerProps['onExited'];
113
- /**
114
- * Callback fired when the dialog is exiting.
115
- */
116
- onExiting?: TransitionHandlerProps['onExiting'];
117
- /**
118
- * If `true`, the Dialog is open.
119
- */
120
- open: ModalProps['open'];
121
- /**
122
- * The component used to render the body of the dialog.
123
- */
124
- PaperComponent?: React.ComponentType<PaperProps>;
125
- /**
126
- * Props applied to the [`Paper`](/api/paper/) element.
127
- */
128
- PaperProps?: Partial<PaperProps>;
129
- /**
130
- * Determine the container for scrolling the dialog.
131
- */
132
- scroll?: 'body' | 'paper';
133
- /**
134
- * CSS override style
135
- */
136
- style?: React.CSSProperties;
137
- /**
138
- * The component used for the transition.
139
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
140
- */
141
- TransitionComponent?: React.ComponentType<TransitionProps & {
142
- children?: React.ReactElement<any, any>;
143
- }>;
144
- /**
145
- * The duration for the transition, in milliseconds.
146
- * You may specify a single timeout for all transitions, or individually with an object.
147
- */
148
- transitionDuration?: TransitionProps['timeout'];
149
- /**
150
- * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.
151
- */
152
- TransitionProps?: TransitionProps;
153
- };
154
- export declare type DialogActionsProps = MuiDialogActionsProps;
155
- export declare type DialogContentProps = MuiDialogContentProps;
156
- export declare type DialogContentTextProps = MuiDialogContentTextProps;
157
- export declare type DialogTitleProps = MuiDialogTitleProps;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Dialog/types.ts"],"names":[],"mappings":""}